/* --- Аванс Контроль: UI-kit (локальный канон) --- */
/* Брендбук + основы + расширенные компоненты */

/* Syncopate Cyr (Ksenia Petova) — кириллица ТОЛЬКО uppercase (А–Я).
   Нижний регистр кириллицы в файле отсутствует → обязателен text-transform: uppercase.
   Google Fonts Syncopate — латиница only, не подключаем как fallback для кириллицы. */
@font-face {
  font-family: 'Syncopate Cyr';
  src:
    url('brand/fonts/Syncopate-Bold.woff2') format('woff2'),
    url('brand/fonts/SyncopateCyr-Bold.otf') format('opentype');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand-primary: #3875f9;
  --brand-primary-soft: #64b4ff;
  --brand-primary-bg: #eef3fe;
  --neutral-ink: #3d3d3d;
  --neutral-ink-strong: #222222;
  --neutral-muted: #aeaeae;
  --neutral-border: #d9d9d9;
  --neutral-canvas: #f6f6f6;
  --neutral-surface: #ffffff;
  --neutral-cream: #fbf6ed;
  --status-success: #16a34a;
  --status-success-bg: #f0fdf4;
  --status-warning: #f2c534;
  --status-warning-bg: #fffbeb;
  --status-error: #dc2626;
  --status-error-bg: #fef2f2;
  --radius-m: 24px;
  --radius-s: 12px;
  --radius-pill: 9999px;
  --font-ui: 'Roboto', sans-serif;
  /* Без Google Syncopate: иначе латиница маскирует отсутствие кириллицы */
  --font-brand: 'Syncopate Cyr', sans-serif;
  --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.05);
}

body {
  font-family: var(--font-ui);
  background-color: var(--neutral-canvas);
  margin: 0;
  line-height: 1.6;
  color: var(--neutral-ink);
}
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px 80px; }
.block { margin-top: 64px; }
h1, h2, h3 {
  font-family: var(--font-brand);
  text-transform: uppercase;
  font-weight: 700;
  color: var(--neutral-ink-strong);
}
h1 { font-size: 38px; margin: 0 0 12px; }
h2 {
  font-size: 28px;
  margin: 0 0 24px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--neutral-border);
}
h3 { font-size: 20px; margin: 0 0 16px; }
.lead { font-size: 18px; color: var(--neutral-muted); max-width: 640px; margin: 0; }
.muted { color: var(--neutral-muted); font-size: 14px; }
.amount {
  font-size: 28px;
  font-weight: 500;
  color: var(--neutral-ink-strong);
  letter-spacing: -0.02em;
}

/* Header + nav */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 32px 0;
  border-bottom: 1px solid var(--neutral-border);
  margin-bottom: 40px;
}
.header img { height: 32px; width: auto; display: block; }
.nav { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.nav a {
  color: var(--neutral-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.nav a:hover { color: var(--brand-primary); }

.card {
  background: var(--neutral-surface);
  border-radius: var(--radius-m);
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.card.cream { background: var(--neutral-cream); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.span-all { grid-column: 1 / -1; }

/* Brand book */
.brand-hero {
  background: var(--neutral-surface);
  border-radius: var(--radius-m);
  padding: 32px;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}
.brand-hero .kicker {
  font-size: 13px;
  font-weight: 500;
  color: var(--brand-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 8px;
  font-family: var(--font-ui);
}
.principle-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.principle-list li {
  padding: 14px 16px;
  background: var(--neutral-canvas);
  border-radius: var(--radius-s);
  border-left: 3px solid var(--brand-primary);
}
.principle-list strong {
  display: block;
  font-family: var(--font-brand);
  text-transform: uppercase;
  font-size: 14px;
  margin-bottom: 4px;
  color: var(--neutral-ink-strong);
}
.voice-meter {
  display: grid;
  gap: 10px;
}
.voice-row {
  display: grid;
  grid-template-columns: 110px 1fr 36px;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}
.voice-bar {
  height: 8px;
  background: var(--neutral-border);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.voice-bar > span {
  display: block;
  height: 100%;
  background: var(--brand-primary);
  border-radius: var(--radius-pill);
}
.anti-ai {
  display: grid;
  gap: 10px;
}
.anti-ai-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px 14px;
  background: var(--neutral-canvas);
  border-radius: var(--radius-s);
  font-size: 14px;
}
.anti-ai-item .bad { color: var(--status-error); }
.anti-ai-item .good { color: var(--status-success); }
@media (max-width: 700px) {
  .anti-ai-item { grid-template-columns: 1fr; }
  .voice-row { grid-template-columns: 1fr; gap: 4px; }
}

/* Colors */
.color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}
.color-swatch {
  border: 1px solid var(--neutral-border);
  border-radius: var(--radius-s);
  overflow: hidden;
  background: var(--neutral-surface);
}
.color-preview { height: 72px; }
.color-info { padding: 8px 12px; font-size: 13px; }
.color-info strong { display: block; }
.color-info span { color: var(--neutral-muted); }

/* Type */
.type-sample { margin-bottom: 20px; }
.type-sample:last-child { margin-bottom: 0; }
.type-sample .label { font-size: 13px; color: var(--neutral-muted); display: block; margin-bottom: 4px; }
.type-sample .display {
  font-family: var(--font-brand);
  font-size: clamp(48px, 12vw, 94px);
  line-height: 1;
  text-transform: uppercase;
  margin: 0;
}
.type-sample .title-l {
  font-family: var(--font-brand);
  font-size: 33px;
  text-transform: uppercase;
  margin: 0;
  border: 0;
  padding: 0;
}
.type-sample .body-l { font-size: 18px; margin: 0; }
.type-sample .body-m { font-size: 16px; margin: 0; }
.type-sample .caption { font-size: 13px; color: var(--neutral-muted); margin: 0; }

/* Icons */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 12px;
}
.icon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  background: #fff;
  border-radius: var(--radius-s);
  border: 1px solid var(--neutral-border);
}
.icon-card img { width: 24px; height: 24px; }
.icon-card span { font-size: 12px; color: var(--neutral-muted); }

/* Buttons */
.btn {
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  color: var(--neutral-ink);
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--brand-primary); color: #fff; }
.btn-primary:hover:not(:disabled) { filter: brightness(0.95); }
.btn-secondary {
  background: transparent;
  border-color: var(--neutral-border);
  color: var(--neutral-ink);
}
.btn-ghost { color: var(--brand-primary); }
.btn-danger { background: var(--status-error); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 14px; }

/* Pills / statuses */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-pill);
  background: var(--neutral-canvas);
  color: var(--neutral-ink);
}
.pill.info { background: var(--brand-primary-bg); color: var(--brand-primary); }
.pill.success { background: var(--status-success-bg); color: var(--status-success); }
.pill.warn { background: var(--status-warning-bg); color: #a16207; }
.pill.error { background: var(--status-error-bg); color: var(--status-error); }
.pill.draft { background: var(--neutral-canvas); color: var(--neutral-muted); }
.pill.fns { background: var(--brand-primary-bg); color: var(--brand-primary); }

/* Fields */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; color: var(--neutral-ink); }
.field input,
.field textarea,
.field select {
  font-family: var(--font-ui);
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--neutral-border);
  border-radius: var(--radius-s);
  background: var(--neutral-surface);
  color: var(--neutral-ink);
  outline: none;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(56, 117, 249, 0.15);
}
.field textarea { min-height: 88px; resize: vertical; }
.field .hint { font-size: 13px; color: var(--neutral-muted); }
.field.error input { border-color: var(--status-error); }
.field.error .hint { color: var(--status-error); }

/* Alerts */
.alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--radius-s);
  font-size: 14px;
}
.alert img { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.alert.info { background: var(--brand-primary-bg); color: var(--neutral-ink); }
.alert.success { background: var(--status-success-bg); }
.alert.warn { background: var(--status-warning-bg); }
.alert.error { background: var(--status-error-bg); }
.alert strong { display: block; margin-bottom: 2px; }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--neutral-border); margin-bottom: 16px; }
.tab {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 14px;
  border: 0;
  background: transparent;
  color: var(--neutral-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tab.active { color: var(--brand-primary); border-bottom-color: var(--brand-primary); }

/* Progress / limit */
.meter-label {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 8px;
}
.meter {
  height: 10px;
  background: var(--neutral-border);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.meter > span {
  display: block;
  height: 100%;
  background: var(--brand-primary);
  border-radius: var(--radius-pill);
}
.meter.warn > span { background: var(--status-warning); }
.meter.danger > span { background: var(--status-error); }

/* Product cards */
.product-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  align-items: center;
}
.empty-state {
  text-align: center;
  padding: 40px 24px;
  color: var(--neutral-muted);
}
.empty-state strong {
  display: block;
  color: var(--neutral-ink-strong);
  font-size: 16px;
  margin-bottom: 6px;
  font-weight: 500;
  text-transform: none;
  font-family: var(--font-ui);
}

/* Avatar / list row */
.list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--neutral-border);
}
.list-row:last-child { border-bottom: 0; padding-bottom: 0; }
.list-row:first-child { padding-top: 0; }
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-primary-bg);
  color: var(--brand-primary);
  display: grid;
  place-items: center;
  font-weight: 500;
  font-size: 14px;
  flex-shrink: 0;
}
.list-row .title { font-weight: 500; color: var(--neutral-ink-strong); }
.list-row .sub { font-size: 13px; color: var(--neutral-muted); }
.list-row .side { margin-left: auto; text-align: right; }

/* Toggle / checkbox */
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  cursor: pointer;
}
.check input { width: 18px; height: 18px; accent-color: var(--brand-primary); }

/* Segmented */
.segmented {
  display: inline-flex;
  padding: 4px;
  background: var(--neutral-canvas);
  border-radius: var(--radius-pill);
  gap: 2px;
}
.segmented button {
  font-family: var(--font-ui);
  border: 0;
  background: transparent;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--neutral-muted);
  cursor: pointer;
}
.segmented button.active {
  background: var(--neutral-surface);
  color: var(--neutral-ink-strong);
  box-shadow: var(--shadow-card);
}

/* Table */
.table { width: 100%; border-collapse: collapse; }
.table th,
.table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--neutral-border);
}
.table th {
  color: var(--neutral-muted);
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 500;
}
.table tr:last-child td { border-bottom: 0; }

/* Toast strip */
.toast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: var(--neutral-ink-strong);
  color: #fff;
  border-radius: var(--radius-s);
  font-size: 14px;
}
.toast button {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}

/* Modal mock */
.modal-mock {
  border: 1px solid var(--neutral-border);
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--neutral-surface);
}
.modal-mock .modal-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--neutral-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-mock .modal-head h3 {
  margin: 0;
  font-size: 16px;
  border: 0;
}
.modal-mock .modal-body { padding: 20px; }
.modal-mock .modal-foot {
  padding: 16px 20px;
  border-top: 1px solid var(--neutral-border);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  background: var(--neutral-canvas);
}

.footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--neutral-border);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--neutral-muted);
}
.footer code {
  font-size: 12px;
  background: var(--neutral-surface);
  padding: 2px 6px;
  border-radius: 4px;
}


/* Aliases for designer .button classes */
.button {
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  border: 1px solid transparent;
  background: var(--brand-primary);
  color: #fff;
}
.button:hover:not(:disabled):not(.disabled) { filter: brightness(0.95); }

/* --- Header Actions --- */
.header-actions {
  display: flex;
  gap: 12px;
}
.button-outline {
  background: transparent;
  border: 1px solid var(--neutral-border);
  color: var(--neutral-ink);
}
.button-outline:hover {
  background: var(--neutral-canvas);
  border-color: var(--neutral-muted);
}
.button-danger-outline {
  background: transparent;
  border: 1px solid var(--status-error);
  color: var(--status-error);
}
.button-danger-outline:hover {
  background: #fef2f2;
}

/* --- App Shell Pattern --- */
.app-shell-preview {
  display: flex;
  height: 700px;
  border: 1px solid var(--neutral-border);
  border-radius: 16px;
  background-color: var(--neutral-canvas);
  overflow: hidden;
  font-family: var(--font-ui);
}
.app-sidebar {
  width: 260px;
  background-color: var(--neutral-surface);
  border-right: 1px solid var(--neutral-border);
  display: flex;
  flex-direction: column;
  padding: 16px;
  transition: width 0.2s ease;
}
.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Org Switcher */
.org-switcher {
  display: flex;
  align-items: center;
  padding: 8px;
  border-radius: 12px;
  cursor: pointer;
  background-color: transparent;
  transition: background-color 0.15s ease;
}
.org-switcher:hover {
  background-color: var(--neutral-canvas);
}
.org-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background-color: var(--brand-primary);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 500;
  margin-right: 12px;
  font-size: 14px;
}
.org-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.org-name {
  font-weight: 500;
  font-size: 15px;
  color: var(--neutral-ink-strong);
}
.org-role {
  font-size: 13px;
  color: var(--neutral-muted);
}
.org-chevron {
  color: var(--neutral-muted);
}

/* App Menu */
.app-menu {
  flex: 1;
  margin-top: 16px;
}
.app-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.app-menu li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--neutral-ink);
  cursor: pointer;
  margin-bottom: 4px;
}
.app-menu li svg {
  width: 20px;
  height: 20px;
}
.app-menu li:hover {
  background-color: var(--neutral-canvas);
}
.app-menu li.active {
  background-color: var(--brand-primary-bg);
  color: var(--brand-primary);
}

/* User Block */
.user-block {
  margin-top: auto;
  padding: 8px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.user-block:hover {
  background-color: var(--neutral-canvas);
}
.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--neutral-border);
  display: grid;
  place-items: center;
  font-weight: 500;
  font-size: 14px;
  margin-right: 12px;
}
.user-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.user-name {
  font-size: 15px;
  font-weight: 500;
}
.user-email {
  font-size: 13px;
  color: var(--neutral-muted);
}
.user-chevron {
  color: var(--neutral-muted);
}

/* App Content */
.app-content-header {
  padding: 24px 32px;
  border-bottom: 1px solid var(--neutral-border);
  background: var(--neutral-surface);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.app-content-header h1 {
  font-size: 22px;
  margin: 0;
}
.app-content-body {
  padding: 32px;
  flex: 1;
}
.placeholder-card {
  border: 2px dashed var(--neutral-border);
  padding: 40px;
  border-radius: 16px;
  text-align: center;
  color: var(--neutral-muted);
}
.placeholder-card p {
  margin: 0 0 16px;
}

/* --- Modal Pattern --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.modal-overlay.visible {
  opacity: 1;
  visibility: visible;
}
.modal {
  background: var(--neutral-surface);
  border-radius: 16px;
  width: 90%;
  max-width: 640px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}
.modal-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--neutral-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-header h3 {
  margin: 0;
  font-size: 18px;
}
.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: var(--neutral-muted);
}
.modal-body {
  padding: 24px;
}
.tariff-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.tariff-card {
  border: 1px solid var(--neutral-border);
  border-radius: 12px;
  padding: 20px;
}
.tariff-card.recommended {
  border-color: var(--brand-primary);
  border-width: 2px;
  position: relative;
}
.tariff-card.recommended::after {
  content: "Рекомендуем";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--brand-primary);
  color: white;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 99px;
}
.tariff-card h4 {
  margin: 0 0 4px;
  font-size: 18px;
}
.tariff-card .price {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 16px;
}
.tariff-card ul {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  font-size: 14px;
  color: var(--neutral-ink);
}
.tariff-card li {
  margin-bottom: 8px;
  padding-left: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2316a34a'%3E%3Cpath fill-rule='evenodd' d='M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z' clip-rule='evenodd' /%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 16px;
}
.tariff-card .button {
  width: 100%;
}
.button.disabled {
  background: var(--neutral-canvas);
  color: var(--neutral-muted);
  cursor: not-allowed;
  border: 1px solid var(--neutral-border);
}

/* --- v2 tabs --- */
.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
  justify-content: center;
}
.tab-btn {
  appearance: none;
  border: 1px solid var(--neutral-border);
  background: var(--neutral-surface);
  color: var(--neutral-ink);
  font: 500 13px/1.2 var(--font-ui);
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.tab-btn:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.tab-btn.is-active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}
.tab-panel { display: none; margin-top: 8px; }
.tab-panel.is-active { display: block; }
.tab-panel-head h2 { margin-top: 0; }

/* Auth screens (ЛК) */
.auth-screens {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 8px;
}
.auth-screen {
  background: var(--neutral-canvas);
  border-radius: var(--radius-m);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
}
.auth-screen-top {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.auth-screen-top img { display: block; }
.auth-logo-slot {
  height: 28px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
}
.auth-title {
  font-family: var(--font-brand);
  text-transform: uppercase;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: var(--neutral-ink-strong);
  margin: 0;
  border: 0;
  padding: 0;
}
.auth-sub {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.45;
  color: var(--neutral-muted);
  text-transform: none;
  font-weight: 400;
  max-width: 32ch;
}
.auth-card { margin: 0; }
.auth-card .btn { margin-top: 4px; }
.otp-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 4px;
}
.otp-row input {
  width: 48px;
  height: 52px;
  text-align: center;
  font-size: 20px;
  font-weight: 500;
  font-family: var(--font-ui);
  border: 1px solid var(--neutral-border);
  border-radius: var(--radius-s);
  background: var(--neutral-surface);
  color: var(--neutral-ink-strong);
}
.otp-row input:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px var(--brand-primary-bg);
}
.auth-legal {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--neutral-muted);
  text-align: center;
}
.auth-legal a { color: var(--brand-primary); text-decoration: none; }
.auth-legal a:hover { text-decoration: underline; }
.auth-resend {
  margin: 14px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--neutral-muted);
}
.auth-alt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}
.btn-text {
  background: none;
  border: 0;
  padding: 0;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  color: var(--brand-primary);
  cursor: pointer;
}
.btn-text:hover { text-decoration: underline; }
.btn-text.muted { color: var(--neutral-muted); font-weight: 400; }
.tab-lock-banner {
  margin: 0 0 20px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--brand-primary-bg);
  color: var(--neutral-ink-strong);
  font-size: 14px;
}
.kit-intro { margin-bottom: 8px; }
.empty-tab { border: 1px dashed var(--neutral-border); box-shadow: none; }
