/* TSOY ID · компоненты и лейауты (§10). Без UI-библиотек, всё на токенах. */

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-ui); font-size: var(--fs-14); line-height: 1.5;
  min-height: 100vh;
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; font-weight: 600; }
h1 { font-size: var(--fs-28); } h2 { font-size: var(--fs-22); } h3 { font-size: var(--fs-16); }
p { margin: 0 0 12px; }
a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; }
code, .mono { font-family: var(--font-mono); font-size: 0.92em; }
small, .muted { color: var(--text-2); font-size: var(--fs-13); }
.hint { color: var(--text-3); font-size: var(--fs-12); }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--radius-s); }
::selection { background: color-mix(in srgb, var(--ink) 25%, transparent); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
img, svg, video { max-width: 100%; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 500 var(--fs-14)/1 var(--font-ui);
  border-radius: var(--radius-s); border: 1px solid transparent;
  padding: 10px 16px; cursor: pointer; text-decoration: none !important;
  transition: background .15s ease-out, border-color .15s ease-out, color .15s ease-out;
  white-space: nowrap;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover:not(:disabled) { background: color-mix(in srgb, var(--ink) 88%, #000); }
:root[data-theme="dark"] .btn-primary { color: #0B1220; }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.btn-secondary:hover:not(:disabled) { border-color: var(--text-3); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover:not(:disabled) { background: var(--ink-soft); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger-ghost { background: transparent; color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.btn-danger-ghost:hover:not(:disabled) { background: var(--danger-bg); }
.btn-s { padding: 6px 10px; font-size: var(--fs-13); }
.btn-block { width: 100%; }

/* ---------- Формы ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: var(--fs-13); font-weight: 500; margin-bottom: 6px; }
.input, .select, textarea.input {
  width: 100%; padding: 10px 12px; font: 400 var(--fs-14)/1.4 var(--font-ui);
  color: var(--text); background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius-s); transition: border-color .15s ease-out;
}
.input:focus, .select:focus, textarea.input:focus { outline: none; border-color: var(--ink); box-shadow: var(--focus); }
.input.is-invalid { border-color: var(--danger); }
/* Файловые инпуты: нативная кнопка «Выберите файл» — в стиле остальных кнопок */
.input[type="file"] { padding: 7px 10px; cursor: pointer; color: var(--text-2); }
input[type="file"]::file-selector-button {
  background: var(--surface); color: var(--text); border: 1px solid var(--line-strong);
  border-radius: var(--radius-s); padding: 6px 12px; margin-right: 10px;
  font: 500 var(--fs-13) var(--font-ui); cursor: pointer;
  transition: border-color .15s ease-out, background .15s ease-out;
}
input[type="file"]::file-selector-button:hover { border-color: var(--text-3); background: var(--surface-2); }
.input::placeholder { color: var(--text-3); }
.input.mono { font-family: var(--font-mono); }
.field-error { color: var(--danger); font-size: var(--fs-12); margin-top: 4px; }
.checkbox { display: flex; gap: 8px; align-items: flex-start; font-size: var(--fs-14); cursor: pointer; }
.checkbox input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--ink); }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 74px; }
.input-eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: var(--ink); font: 500 var(--fs-12) var(--font-ui);
  cursor: pointer; padding: 6px 8px; border-radius: var(--radius-s);
}
.pw-meter { height: 4px; border-radius: 2px; background: var(--line); margin-top: 6px; overflow: hidden; }
.pw-meter > i { display: block; height: 100%; width: 0; background: var(--danger); transition: width .2s ease-out, background .2s ease-out; }

/* OTP-инпут: 6 ячеек */
.otp { display: flex; gap: 8px; justify-content: center; }
.otp input {
  width: 46px; height: 54px; text-align: center; font: 500 var(--fs-22) var(--font-mono);
  border: 1px solid var(--line-strong); border-radius: var(--radius-s);
  background: var(--surface); color: var(--text);
}
.otp input:focus { outline: none; border-color: var(--ink); box-shadow: var(--focus); }

/* Toggle */
.toggle { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; }
.toggle i {
  width: 38px; height: 22px; border-radius: 11px; background: var(--line-strong);
  position: relative; transition: background .15s ease-out; flex: none;
}
.toggle i::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; box-shadow: var(--shadow-1); transition: transform .15s ease-out;
}
.toggle input:checked + i { background: var(--ink); }
.toggle input:checked + i::after { transform: translateX(16px); }
.toggle input:focus-visible + i { box-shadow: var(--focus); }

/* CopyField: секреты — показать/скопировать */
.copyfield { display: flex; gap: 8px; align-items: stretch; }
.copyfield .input { font-family: var(--font-mono); font-size: var(--fs-13); min-width: 0; }
.copyfield .btn { flex: none; }

/* ---------- Значки и статусы ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px;
  font-size: var(--fs-12); font-weight: 500; border-radius: 999px; white-space: nowrap;
}
.badge-ok { background: var(--success-bg); color: var(--success); }
.badge-warn { background: var(--warning-bg); color: var(--warning); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-muted { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); }
.badge-ink { background: var(--ink-soft); color: var(--ink); }
.verified-badge { color: var(--ink); vertical-align: -2px; }

/* ---------- Аватар ---------- */
.avatar {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  border-radius: 50%; overflow: hidden; color: #fff; font-weight: 600;
  background: var(--line-strong); user-select: none;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-24 { width: 24px; height: 24px; font-size: 11px; }
.avatar-32 { width: 32px; height: 32px; font-size: 13px; }
.avatar-48 { width: 48px; height: 48px; font-size: 18px; }
.avatar-96 { width: 96px; height: 96px; font-size: 34px; }

/* ---------- Бенто ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.bento-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l);
  box-shadow: var(--shadow-1); padding: 20px; display: flex; flex-direction: column; min-width: 0;
}
.bento-card > .bc-title {
  font-size: var(--fs-12); font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 12px;
}
.bento-card > .bc-footer { margin-top: auto; padding-top: 12px; font-size: var(--fs-13); }
.col-12 { grid-column: span 12; } .col-8 { grid-column: span 8; } .col-6 { grid-column: span 6; }
.col-4 { grid-column: span 4; } .col-3 { grid-column: span 3; }
@media (max-width: 1024px) {
  .col-8, .col-6, .col-4, .col-3 { grid-column: span 6; }
}
@media (max-width: 640px) {
  .bento { gap: 12px; }
  .col-12, .col-8, .col-6, .col-4, .col-3 { grid-column: span 12; }
}

/* KPI-плитка */
.kpi-value { font-size: var(--fs-36); font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi-sub { color: var(--text-2); font-size: var(--fs-13); margin-top: 4px; }

/* ---------- ID-карта (signature, §10.1) ---------- */
.id-card { display: flex; gap: 20px; }
.id-card .id-fields { flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; align-content: start; }
.id-field .k { font-size: var(--fs-12); letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); }
.id-field .v { font-size: var(--fs-14); overflow-wrap: anywhere; }
.mrz {
  margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--line-strong);
  font-family: var(--font-mono); font-size: var(--fs-13); letter-spacing: .12em;
  color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: clip;
}
@media (max-width: 640px) {
  .id-card { flex-direction: column; align-items: center; text-align: center; }
  .id-card .id-fields { grid-template-columns: 1fr; }
}

/* ---------- Карточка входа (не бенто: одиночная 420px, §10.4) ---------- */
.auth-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px; }
.auth-card {
  width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-l); box-shadow: var(--shadow-2); padding: 28px;
}
.auth-logo { text-align: center; margin-bottom: 18px; font-weight: 600; font-size: var(--fs-18); }
.auth-logo .logo-mark { color: var(--ink); }
.auth-context {
  display: flex; align-items: center; gap: 10px; justify-content: center;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 10px 14px; margin-bottom: 18px; font-size: var(--fs-14);
}
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: var(--fs-12); margin: 16px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; border-top: 1px solid var(--line); }
.auth-footer { margin-top: 20px; text-align: center; font-size: var(--fs-13); color: var(--text-2); }
body.popup .auth-wrap { min-height: 100vh; padding: 12px; }
body.popup .auth-card { box-shadow: none; border: 0; }
body.popup .page-footer { display: none; }

/* ---------- Шапка и навигация ---------- */
.topbar {
  background: var(--surface); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 40;
}
.topbar-in { display: flex; align-items: center; gap: 20px; height: 56px; }
.topbar .brand { font-weight: 600; font-size: var(--fs-16); color: var(--text); text-decoration: none; }
.topbar .brand .logo-mark { color: var(--ink); }
.topbar nav { display: flex; gap: 4px; flex: 1; min-width: 0; overflow-x: auto; }
.topbar nav a {
  padding: 8px 12px; border-radius: var(--radius-s); color: var(--text-2);
  font-size: var(--fs-14); text-decoration: none; white-space: nowrap;
}
.topbar nav a:hover { background: var(--surface-2); color: var(--text); }
.topbar nav a.active { background: var(--ink-soft); color: var(--ink); font-weight: 500; }

/* Бургер: на широких экранах его НЕТ; появляется только когда навигация
   не помещается — профиль (5 пунктов) до 768px, админка (8 пунктов, body.nav-wide)
   до 1080px. Вид — как у остальных icon-кнопок: 40×40, скругление, hover. */
.nav-burger {
  display: none; background: none; border: 0; cursor: pointer; color: var(--text);
  width: 40px; height: 40px; align-items: center; justify-content: center;
  margin-left: -8px; border-radius: var(--radius-s); flex: none;
  transition: background .15s ease-out;
}
.nav-burger:hover { background: var(--surface-2); }
.nav-burger:active { background: var(--ink-soft); color: var(--ink); }
.nav-burger[aria-expanded="true"] { background: var(--ink-soft); color: var(--ink); }
.nav-burger svg { display: block; }

/* Профиль: 5 пунктов помещаются почти везде — бургер только до 768px */
@media (max-width: 768px) {
  body:not(.nav-wide) .nav-burger { display: flex; }
  body:not(.nav-wide) .topbar .brand { margin-right: auto; white-space: nowrap; }
  body:not(.nav-wide) .topbar nav {
    position: fixed; top: 56px; left: 0; right: 0; z-index: 60;
    background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-3); flex-direction: column; gap: 2px;
    padding: 10px 14px 14px; display: none; overflow: visible;
  }
  body:not(.nav-wide) .topbar nav.open { display: flex; animation: pop .15s ease-out; }
  body:not(.nav-wide) .topbar nav a { padding: 12px; font-size: var(--fs-16); }
}
/* Админка (body.nav-wide): 8 пунктов — бургер до 1080px */
@media (max-width: 1080px) {
  body.nav-wide .nav-burger { display: flex; }
  body.nav-wide .topbar .brand { margin-right: auto; white-space: nowrap; }
  body.nav-wide .topbar nav {
    position: fixed; top: 56px; left: 0; right: 0; z-index: 60;
    background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-3); flex-direction: column; gap: 2px;
    padding: 10px 14px 14px; display: none; overflow: visible;
  }
  body.nav-wide .topbar nav.open { display: flex; animation: pop .15s ease-out; }
  body.nav-wide .topbar nav a { padding: 12px; font-size: var(--fs-16); }
}
.impersonation-bar {
  background: var(--warning-bg); color: var(--warning); border-bottom: 1px solid color-mix(in srgb, var(--warning) 30%, transparent);
  padding: 8px 0; font-size: var(--fs-13);
}
.impersonation-bar .container { display: flex; align-items: center; gap: 12px; }
.page { padding: 28px 0 48px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-footer { padding: 20px 0 28px; color: var(--text-3); font-size: var(--fs-12); }
.page-footer .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Dropdown-меню */
.menu { position: relative; }
.menu-btn { background: none; border: 0; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 4px; border-radius: var(--radius-s); color: var(--text); font: inherit; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 200px; z-index: 50;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m);
  box-shadow: var(--shadow-3); padding: 6px; display: none;
}
.menu.open .menu-panel { display: block; animation: pop .15s ease-out; }
.menu-panel a, .menu-panel button {
  display: block; width: 100%; text-align: left; padding: 8px 10px; border: 0; background: none;
  border-radius: var(--radius-s); color: var(--text); font: 400 var(--fs-14) var(--font-ui);
  cursor: pointer; text-decoration: none;
}
.menu-panel a:hover, .menu-panel button:hover { background: var(--surface-2); text-decoration: none; }
.menu-panel .danger { color: var(--danger); }
.menu-sep { border-top: 1px solid var(--line); margin: 6px 0; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- Таблицы (на мобиле → карточки) ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); }
table.table { width: 100%; border-collapse: collapse; font-size: var(--fs-14); }
.table th {
  text-align: left; font-size: var(--fs-12); text-transform: uppercase; letter-spacing: .05em;
  color: var(--text-3); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface-2); }
.table .cell-main { font-weight: 500; }
@media (max-width: 640px) {
  .table-cards thead { display: none; }
  .table-cards, .table-cards tbody, .table-cards tr, .table-cards td { display: block; width: 100%; }
  .table-cards tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .table-cards td { border: 0; padding: 4px 14px; }
  .table-cards td[data-label]::before {
    content: attr(data-label); display: block; font-size: var(--fs-12); color: var(--text-3);
  }
}

/* ---------- Tabs ---------- */
/* overflow-y:hidden обязателен: вкладки на 1px выше контейнера (margin -1px),
   и Windows-скроллбар иначе рисует уродливые стрелки ▲▼ справа */
.tabs {
  display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 20px;
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button {
  padding: 10px 14px; border: 0; background: none; cursor: pointer; white-space: nowrap;
  font: 500 var(--fs-14) var(--font-ui); color: var(--text-2); text-decoration: none;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs .active { color: var(--ink); border-bottom-color: var(--ink); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ---------- Модалка и мастер ---------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgb(0 0 0 / .45); z-index: 90;
  display: none; align-items: flex-start; justify-content: center; padding: 6vh 16px; overflow-y: auto;
}
.modal-backdrop.open { display: flex; animation: fade .15s ease-out; }
.modal {
  width: 100%; max-width: 640px; background: var(--surface); border-radius: var(--radius-l);
  box-shadow: var(--shadow-3); padding: 24px; animation: pop .18s ease-out;
}
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.modal-close { background: none; border: 0; font-size: 20px; cursor: pointer; color: var(--text-3); padding: 4px 8px; border-radius: var(--radius-s); }
.wizard-dots { display: flex; gap: 6px; align-items: center; }
.wizard-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.wizard-dots i.active { background: var(--ink); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Тосты ---------- */
.toasts { position: fixed; bottom: 20px; right: 20px; z-index: 100; display: flex; flex-direction: column; gap: 8px; max-width: 360px; }
.toast {
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--ink);
  border-radius: var(--radius-m); box-shadow: var(--shadow-3); padding: 12px 16px;
  font-size: var(--fs-14); animation: pop .2s ease-out;
}
.toast-success { border-left-color: var(--success); }
.toast-error { border-left-color: var(--danger); }

/* ---------- EmptyState / Skeleton ---------- */
.empty { text-align: center; padding: 40px 20px; color: var(--text-2); }
.empty .glyph { font-size: 40px; margin-bottom: 12px; opacity: .5; }
.skeleton {
  background: linear-gradient(90deg, var(--line) 25%, var(--surface-2) 50%, var(--line) 75%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius-s);
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Прогресс защищённости ---------- */
.score-bar { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; }
.score-bar > i { display: block; height: 100%; background: var(--ink); border-radius: 4px; transition: width .3s ease-out; }
.check-list { list-style: none; padding: 0; margin: 12px 0 0; }
.check-list li { display: flex; gap: 8px; align-items: center; padding: 4px 0; font-size: var(--fs-13); }
.check-list .no { color: var(--text-3); }
.check-list .yes { color: var(--success); }

/* ---------- Спарклайны и графики ---------- */
.sparkline { width: 100%; height: 36px; }
.chart svg { width: 100%; height: auto; display: block; }

/* ---------- Разное ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; }
.w-100 { width: 100%; }
.text-danger { color: var(--danger); } .text-success { color: var(--success); } .text-warn { color: var(--warning); }
.nowrap { white-space: nowrap; }
.secret-plate {
  background: var(--danger-bg); border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent);
  color: var(--danger); border-radius: var(--radius-m); padding: 10px 14px; font-size: var(--fs-13);
}
.code-block {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 12px 14px; font-family: var(--font-mono); font-size: var(--fs-13);
  overflow-x: auto; white-space: pre;
}
.pagination { display: flex; gap: 6px; margin-top: 16px; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: 6px 11px; border-radius: var(--radius-s); border: 1px solid var(--line);
  font-size: var(--fs-13); color: var(--text-2); text-decoration: none; background: var(--surface);
}
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.health-row { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.health-row:last-child { border-bottom: 0; }
.health-icon { font-size: var(--fs-16); flex: none; width: 24px; text-align: center; }
.qr-box { background: #fff; padding: 12px; border-radius: var(--radius-m); display: inline-block; border: 1px solid var(--line); }
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; align-items: flex-end; }
.filter-bar .field { margin-bottom: 0; min-width: 140px; }

/* ---------- Мобильный полиш: ничего не выходит за экран ---------- */
.bento-card, .auth-card { overflow-wrap: break-word; }
.row > form, .row-between > form { min-width: 0; max-width: 100%; }
@media (max-width: 640px) {
  .container { padding: 0 14px; }
  .auth-card { padding: 22px 18px; }
  .auth-wrap { padding: 16px 10px; }
  .otp { gap: 6px; }
  .otp input { width: 40px; height: 48px; font-size: var(--fs-18); }
  .toasts { left: 14px; right: 14px; bottom: 14px; max-width: none; }
  .mrz { font-size: 11px; letter-spacing: .08em; }
  .kpi-value { font-size: var(--fs-28); }
  .impersonation-bar .container { flex-wrap: wrap; row-gap: 6px; }
  .page-head { gap: 10px; }
  .page-head h1 { font-size: var(--fs-22); }
  .row-between { row-gap: 10px; }
  .modal { padding: 18px 14px; }
  .modal-backdrop { padding: 3vh 8px; }
  .code-block { font-size: var(--fs-12); }
  .bc-footer .row { row-gap: 8px; }
}
@media (max-width: 360px) {
  .otp input { width: 34px; height: 44px; }
}
