.cabinet-btn-circle {
  min-width: 48px;
  min-height: 48px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: var(--btn-outline-width) solid var(--border-strong);
  color: var(--text);
  cursor: pointer;
  user-select: none;
  box-sizing: border-box;
  flex-shrink: 0;
  padding: 0;
  transition: transform 0.1s ease, background 0.15s ease, border-color 0.15s ease;
}
.cabinet-btn-circle:hover {
  background: var(--surface-active);
  border-color: var(--sec-color);
}
.cabinet-btn-circle:active {
  transform: scale(0.95);
  background: var(--surface-active);
}
.cabinet-btn-circle .cabinet-btn-icon {
  width: 24px;
  height: 24px;
  color: var(--text-muted);
}
[data-section="cabinet"] .cabinet-btn-circle {
  border-color: var(--sec-color);
}
[data-section="cabinet"] .cabinet-btn-circle .cabinet-btn-icon {
  color: var(--sec-color);
}

.cabinet-access-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sec-bg-tint);
  border: 1px solid var(--sec-border);
  color: var(--sec-color);
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
}
.cabinet-summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--card-shadow);
}
.cabinet-summary-title {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
}
.cabinet-summary-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--success);
  margin-top: 4px;
}
.cabinet-empty-hint {
  font-size: 17px;
  color: var(--text-muted);
  text-align: center;
  padding: 24px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.cabinet-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.scale-buttons-grid {
  display: flex;
  gap: 8px;
}
.scale-opt-btn {
  flex: 1;
  min-height: 48px;
  padding: 8px 6px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.scale-opt-btn:active {
  transform: scale(0.97);
}
.scale-opt-btn.active {
  background: var(--sec-bg-tint);
  border: 2px solid var(--sec-color);
  color: var(--sec-color);
}
[data-text-scale="large"] .scale-opt-btn {
  font-size: 17px;
  min-height: 52px;
}
[data-text-scale="xlarge"] .scale-opt-btn {
  font-size: 18px;
  min-height: 56px;
}
.brand-entry-btn {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}
.brand-entry-btn:active { background: var(--surface-active); }
.brand-sheet-card { max-height: 92vh; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.brand-logo-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.brand-logo-preview { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; border: 1px solid var(--border); background: var(--surface); flex-shrink: 0; }
.brand-logo-fallback {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--sec-bg-tint); color: var(--sec-color); border: 1.5px solid var(--sec-border);
  display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 800; flex-shrink: 0;
}
.brand-toggle-item {
  display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 10px 12px;
  border-radius: 12px; background: var(--surface); border: 1px solid var(--border);
  font-size: 17px; font-weight: 600; color: var(--text); cursor: pointer;
}
.brand-toggle-item.is-disabled { opacity: 0.5; cursor: not-allowed; }
.brand-preview-box {
  background: var(--surface); border: 1.5px solid var(--border-strong); border-radius: var(--radius-card);
  padding: 14px; display: flex; flex-direction: column; gap: 10px;
}
.brand-preview-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.brand-preview-btn {
  min-height: 48px; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--border-strong);
  background: var(--surface-2); color: var(--text); font-size: 16px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
/* Язык интерфейса */
.lang-switch { margin-bottom: 12px; }
.lang-switch-title { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.lang-switch-btns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.lang-switch-btn {
  min-height: 48px; padding: 0 4px; border-radius: var(--radius-btn); border: 1.5px solid var(--border-strong);
  background: var(--surface); color: var(--text); font-family: inherit; font-size: 17px; font-weight: 600; cursor: pointer;
}
.lang-switch-btn.active { background: var(--primary); border-color: var(--primary); color: var(--primary-text); }
