/* ایران‌سنس: فایل‌های خریداری‌شده را در پوشه public/fonts بگذارید (نسخه FaNum یا معمولی) */
@font-face { font-family: 'IRANSans'; src: url('/fonts/IRANSansWeb_Light.woff2') format('woff2'); font-weight: 100 300; font-display: swap; }
@font-face { font-family: 'IRANSans'; src: url('/fonts/IRANSansWeb.woff2') format('woff2'); font-weight: 400 500; font-display: swap; }
@font-face { font-family: 'IRANSans'; src: url('/fonts/IRANSansWeb_Bold.woff2') format('woff2'); font-weight: 600 900; font-display: swap; }
@font-face {
  font-family: 'Vazirmatn';
  src: url('/fonts/Vazirmatn.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #F4F5F7;
  --card: #FFFFFF;
  --ink: #14171C;
  --muted: #5B6270;
  --line: #E3E6EB;
  --line-strong: #CDD2DA;
  --soft: #F0F1F4;
  --accent: #0E6E64;
  --accent-ink: #0A524A;
  --accent-soft: #E3F2EF;
  --buy: #1D5FBF;
  --buy-soft: #E8F0FC;
  --sell: #B4530B;
  --sell-soft: #FDF0E4;
  --purple: #5B3FA0;
  --purple-soft: #EFEAFB;
  --danger: #B42318;
  --danger-soft: #FDECEA;
  --side: #14171C;
  --side-ink: #C9CDD4;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(20, 23, 28, .04), 0 4px 16px rgba(20, 23, 28, .04);
  --font: 'IRANSans', 'Vazirmatn', 'Segoe UI', Tahoma, system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1115; --card: #181B21; --ink: #E9EBEF; --muted: #9AA1AD; --line: #2A2F38; --line-strong: #3A404B; --soft: #20242B;
    --accent: #2BA597; --accent-ink: #7FD8CC; --accent-soft: #15302C;
    --buy: #79A8F0; --buy-soft: #1A2740; --sell: #F0A365; --sell-soft: #3A2615;
    --purple: #B9A3EE; --purple-soft: #2A2340; --danger: #F2877D; --danger-soft: #3A1C1A;
    --side: #0B0D10; --shadow: none; color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.6; -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
a { color: var(--accent); }
h1, h2, h3 { margin: 0; line-height: 1.4; }
.boot { display: grid; place-items: center; min-height: 100vh; color: var(--muted); }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.bold { font-weight: 700; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout ---------- */
.shell { display: flex; min-height: 100vh; }
.side { width: 240px; flex: none; background: var(--side); color: var(--side-ink); padding: 22px 14px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px 20px; color: #fff; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; background: var(--accent); display: grid; place-items: center; flex: none; }
.brand b { font-size: 17px; font-weight: 800; display: block; }
.brand span { font-size: 12px; color: #A9AFBA; }
.nav-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--side-ink); font-size: 14px; font-weight: 500; }
.nav-link:hover { background: #1F242C; color: #fff; }
.nav-link.on { background: var(--accent); color: #fff; font-weight: 700; }
.nav-link svg { flex: none; opacity: .9; }
.nav-badge { margin-inline-start: auto; background: #E07A2E; color: #14171C; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 0 8px; }
.side-foot { margin-top: auto; border-top: 1px solid #2A2F38; padding: 14px 8px 0; display: flex; align-items: center; gap: 10px; color: #E9EBEF; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: #2A2F38; display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; color: #fff; }
.main { flex: 1; min-width: 0; padding: 24px 28px 48px; max-width: 1400px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.topbar h1 { font-size: 23px; font-weight: 800; }
.topbar .sub { font-size: 13px; color: var(--muted); }
.mobile-head { display: none; }
.tabbar { display: none; }
.fab { display: none; }

@media (max-width: 860px) {
  .side { display: none; }
  .main { padding: 14px 14px calc(96px + env(safe-area-inset-bottom)); }
  .mobile-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; background: var(--side); color: #fff; position: sticky; top: 0; z-index: 20; padding-top: calc(12px + env(safe-area-inset-top)); }
  .mobile-head .brand { padding: 0; }
  .shell { flex-direction: column; }
  .topbar { margin-bottom: 14px; }
  .topbar h1 { font-size: 20px; }
  .tabbar { display: flex; position: fixed; bottom: 0; inset-inline: 0; background: var(--card); border-top: 1px solid var(--line); z-index: 30; padding-bottom: env(safe-area-inset-bottom); }
  .tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 7px; font-size: 11px; color: var(--muted); text-decoration: none; min-height: 56px; justify-content: center; }
  .tab.on { color: var(--accent); font-weight: 700; }
  .fab { display: flex; position: fixed; bottom: calc(70px + env(safe-area-inset-bottom)); inset-inline-start: 16px; z-index: 31; height: 56px; padding: 0 20px; border-radius: 28px; border: 0; background: var(--accent); color: #fff; font-weight: 800; font-size: 15px; align-items: center; gap: 8px; box-shadow: 0 6px 20px rgba(14, 110, 100, .35); cursor: pointer; }
  .hide-mobile { display: none !important; }
  .show-mobile { display: block !important; }
}
.show-mobile { display: none; }
.deal-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; background: var(--card); }
.deal-card + .deal-card { margin-top: 10px; }
.deal-card .nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; font-size: 13px; }
.deal-card .nums b { display: block; font-size: 14px; }

/* ---------- Cards / grid ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.card-head h2 { font-size: 16px; font-weight: 800; }
.grid { display: grid; gap: 14px; }
.kpis { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 18px; }
.cols { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.col-main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.col-side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spacer { flex: 1; }
.kpi .label { font-size: 13px; color: var(--muted); }
.kpi .value { font-size: 25px; font-weight: 800; line-height: 1.5; }
.kpi .value small { font-size: 13px; font-weight: 500; color: var(--muted); margin-inline-start: 4px; }
.kpi .hint { font-size: 12px; font-weight: 600; }
.up { color: var(--accent); }
.down { color: var(--sell); }

/* ---------- Buttons / inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--soft); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-danger { color: var(--danger); border-color: var(--danger-soft); }
.btn-sm { height: 36px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn-lg { height: 52px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.icon-btn { width: 40px; height: 40px; padding: 0; border-radius: 10px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field > .label { font-size: 13px; font-weight: 600; }
.field .opt { font-weight: 400; color: var(--muted); }
.input, select.input, textarea.input { height: 46px; border: 1px solid var(--line-strong); border-radius: 12px; padding: 0 14px; background: var(--card); width: 100%; outline: none; font-size: 15px; }
textarea.input { height: auto; min-height: 80px; padding: 10px 14px; resize: vertical; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input-lg { height: 54px; font-size: 19px; letter-spacing: .5px; }
.input.ltr-in { direction: ltr; text-align: left; }
.help { font-size: 12px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.seg { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: 8px; }
.seg button { height: 48px; border-radius: 12px; border: 2px solid var(--line); background: var(--card); font-weight: 700; cursor: pointer; font-size: 14px; padding: 0 6px; }
.seg button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.seg.sm button { height: 40px; font-size: 13px; border-width: 1.5px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip-btn { height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.chip-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--card) !important; }
.search { position: relative; flex: 1 1 220px; min-width: 0; }
.search .input { padding-inline-start: 40px; }
.search svg { position: absolute; inset-inline-start: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }

/* ---------- Tags ---------- */
.tag { display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; white-space: nowrap; background: var(--soft); color: var(--ink); }
.tag.buyer { background: var(--buy-soft); color: var(--buy); }
.tag.seller { background: var(--sell-soft); color: var(--sell); }
.tag.both { background: var(--purple-soft); color: var(--purple); }
.tag.ok { background: var(--accent-soft); color: var(--accent-ink); }
.tag.late { background: var(--sell-soft); color: var(--sell); }
.tag.purple { background: var(--purple-soft); color: var(--purple); }
.tag.danger { background: var(--danger-soft); color: var(--danger); }

/* ---------- Lists ---------- */
.list { display: flex; flex-direction: column; }
.item { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-top: 1px solid var(--soft); text-decoration: none; color: inherit; flex-wrap: wrap; }
.item:first-child { border-top: 0; }
a.item:hover { background: var(--soft); border-radius: 10px; }
.item .grow { flex: 1 1 180px; min-width: 0; }
.item .title { font-weight: 700; font-size: 15px; }
.item .meta { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.empty { text-align: center; color: var(--muted); padding: 28px 10px; font-size: 14px; }
.contact-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; background: var(--card); }
.contact-card.is-late { background: color-mix(in srgb, var(--sell-soft) 45%, var(--card)); }
.contact-card .grow { flex: 1 1 200px; min-width: 0; }
.contact-card .actions { display: flex; gap: 6px; flex-wrap: wrap; }
.call-link { color: inherit; text-decoration: none; }
.call-link:hover { color: var(--accent); }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; margin: 0 -4px; }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
.t th { text-align: right; color: var(--muted); font-weight: 600; padding: 10px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.t td { padding: 12px 8px; border-bottom: 1px solid var(--soft); vertical-align: middle; }
.t tr.click { cursor: pointer; }
.t tr.click:hover td { background: var(--soft); }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.profit { color: var(--accent); font-weight: 800; }
.loss { color: var(--danger); font-weight: 800; }

/* ---------- Progress / pipeline / chart ---------- */
.bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.bar.blue > i { background: var(--buy); }
.pipe { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.pipe a { background: var(--soft); border-radius: 12px; padding: 12px 14px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 4px; }
.pipe a:hover { outline: 2px solid var(--accent-soft); }
.pipe .n { font-size: 22px; font-weight: 800; }
.chart { display: flex; align-items: flex-end; gap: 10px; height: 170px; padding-top: 10px; }
.chart .c { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.chart .b { width: 100%; max-width: 38px; border-radius: 6px 6px 2px 2px; background: color-mix(in srgb, var(--accent) 30%, var(--card)); min-height: 3px; }
.chart .c.cur .b { background: var(--accent); }
.chart .v { font-size: 11px; font-weight: 700; white-space: nowrap; }
.chart .l { font-size: 11px; color: var(--muted); }
.stepper { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.step { flex: 1 0 auto; min-width: 92px; border: 0; background: transparent; cursor: pointer; display: flex; flex-direction: column; gap: 6px; padding: 0; text-align: right; }
.step i { height: 6px; border-radius: 3px; background: var(--line); display: block; }
.step span { font-size: 12px; color: var(--muted); font-weight: 600; }
.step.done i { background: var(--accent); }
.step.cur span { color: var(--ink); font-weight: 800; }
.step.cur i { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---------- Figures ---------- */
.figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.fig { background: var(--soft); border-radius: 12px; padding: 12px; }
.fig .k { font-size: 12px; color: var(--muted); }
.fig .v { font-size: 18px; font-weight: 800; }
.fig.hl { background: var(--accent-soft); }
.fig.hl .v { color: var(--accent-ink); }

/* ---------- Timeline ---------- */
.timeline { display: flex; flex-direction: column; }
.tl { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--soft); }
.tl:first-child { border-top: 0; }
.tl .dot { width: 30px; height: 30px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; flex: none; color: var(--muted); }
.tl .dot.call { background: var(--accent-soft); color: var(--accent); }
.tl .dot.refer { background: var(--purple-soft); color: var(--purple); }
.tl .dot.stage { background: var(--buy-soft); color: var(--buy); }

/* ---------- Banner / notice ---------- */
.notice { display: flex; gap: 10px; align-items: flex-start; border-radius: 12px; padding: 10px 12px; font-size: 13px; background: var(--buy-soft); color: var(--ink); }
.notice.ok { background: var(--accent-soft); }
.notice.warn { background: var(--sell-soft); }
.notice svg { flex: none; margin-top: 2px; }

/* ---------- Sheet (modal) ---------- */
.overlay { position: fixed; inset: 0; background: rgba(15, 17, 21, .55); z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; animation: fade .15s ease; }
.sheet { width: 100%; max-width: 560px; background: var(--card); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 16px; animation: rise .18s ease; }
.sheet.wide { max-width: 760px; }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.sheet-head h2 { font-size: 19px; font-weight: 800; }
@media (max-width: 860px) {
  .overlay { align-items: flex-end; padding: 0; }
  .sheet { border-radius: 20px 20px 0 0; max-height: 92vh; overflow-y: auto; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); animation: up .2s ease; }
}
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } }
@keyframes up { from { transform: translateY(40px); } }
details.more summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--accent); list-style: none; padding: 4px 0; }
details.more summary::-webkit-details-marker { display: none; }
details.more[open] summary { margin-bottom: 10px; }

/* ---------- Toast ---------- */
#toast { position: fixed; top: 16px; inset-inline: 0; margin: 0 auto; width: max-content; max-width: calc(100% - 32px); z-index: 80; pointer-events: none; }
#toast .tm { background: var(--ink); color: var(--card); padding: 10px 18px; border-radius: 12px; font-size: 14px; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.2); animation: rise .2s ease; }
#toast .tm.err { background: var(--danger); color: #fff; }

/* ---------- Login ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: var(--side); }
.login-card { width: 100%; max-width: 400px; background: var(--card); border-radius: 22px; padding: 28px 24px; display: flex; flex-direction: column; gap: 16px; }
.login-card .brand { color: var(--ink); padding: 0 0 6px; }
.login-card .brand span { color: var(--muted); }

/* ---------- Picker ---------- */
.picker { position: relative; }
.picker-list { position: absolute; top: 100%; inset-inline: 0; margin-top: 4px; background: var(--card); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.12); z-index: 5; max-height: 260px; overflow-y: auto; }
.picker-list button { display: flex; width: 100%; text-align: right; gap: 8px; align-items: center; padding: 10px 12px; border: 0; background: transparent; cursor: pointer; border-top: 1px solid var(--soft); }
.picker-list button:hover { background: var(--soft); }
.picked { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-strong); border-radius: 12px; padding: 0 8px 0 14px; height: 46px; }
.picked .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- نسخه ۳ ---------- */
.item.click, tr.click { cursor: pointer; }
.item.click:hover { background: var(--soft); }
.down { color: var(--danger); }
.blank { display: inline-block; min-width: 90px; border-bottom: 1px dotted currentColor; height: 1em; vertical-align: baseline; }
.contract { background: #fff; color: #111; border: 1px solid var(--line); border-radius: 12px; padding: 32px 36px; max-width: 860px; margin: 0 auto; font-size: 13.5px; line-height: 2.1; }
.contract h2 { font-size: 17px; text-align: center; margin: 4px 0; }
.contract h3 { font-size: 15px; margin: 18px 0 6px; border-bottom: 1px solid #ccc; padding-bottom: 2px; }
.contract h4 { font-size: 14px; margin: 10px 0 4px; }
.contract p { margin: 4px 0; text-align: justify; }
.contract table.ct { width: 100%; border-collapse: collapse; margin: 6px 0 10px; }
.contract table.ct td, .contract table.ct th { border: 1px solid #999; padding: 4px 8px; vertical-align: top; }
.contract table.ct th { background: #f1f1f1; }
.contract table.ct td:first-child { width: 36%; }
@media print {
  .side, .mobile-head, .tabbar, .fab, .no-print, #toast { display: none !important; }
  body, .main { background: #fff !important; padding: 0 !important; margin: 0 !important; }
  .card { box-shadow: none; border-color: #ccc; break-inside: avoid; }
  .contract { border: 0; padding: 0; max-width: none; font-size: 12.5px; }
  .contract h3 { break-after: avoid; }
}
.kpi .value { font-size: clamp(19px, 2.1vw, 25px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- نشان پلاکی و صفحه ورود ---------- */
:root { --night: #12202E; --plate-blue: #1C4FA0; --signal: #E7B416; }
.plate { display: inline-flex; align-items: stretch; direction: ltr; height: 40px; border-radius: 7px; background: #fff; border: 2px solid #12202E; overflow: hidden; color: #12202E; text-decoration: none; flex: none; }
.plate .strip { width: 15px; background: var(--plate-blue); display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 0 3px; }
.plate .strip i { display: block; height: 3px; border-radius: 1px; background: #fff; opacity: .9; }
.plate .strip i:nth-child(2) { background: #E2001A; }
.plate .strip i:nth-child(1) { background: #239F40; }
.plate .txt { direction: rtl; display: flex; align-items: center; gap: 8px; padding: 0 12px; font-weight: 900; font-size: 17px; letter-spacing: -.2px; white-space: nowrap; }
.plate .txt small { font-size: 11px; font-weight: 700; color: #4A5868; border-inline-start: 1.5px solid #12202E; padding-inline-start: 8px; line-height: 1.2; }
.plate.lg { height: 56px; border-width: 2.5px; border-radius: 9px; }
.plate.lg .strip { width: 20px; }
.plate.lg .txt { font-size: 24px; padding: 0 16px; }
.plate.lg .txt small { font-size: 13px; }

.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); background: var(--card); }
.auth-side { background: var(--night); color: #E7ECF2; padding: 48px clamp(28px, 5vw, 64px); display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-side::after { content: ''; position: absolute; inset-block: 0; inset-inline-end: 12%; width: 6px; background: repeating-linear-gradient(to bottom, rgba(255,255,255,.16) 0 34px, transparent 34px 68px); }
.auth-side .say { font-size: clamp(24px, 2.6vw, 34px); font-weight: 900; line-height: 1.55; max-width: 15em; position: relative; z-index: 1; }
.auth-side .say span { display: block; font-size: 15px; font-weight: 500; color: #9FB0C2; margin-top: 14px; line-height: 2; }
.auth-side .foot { font-size: 12.5px; color: #8496A9; position: relative; z-index: 1; }
.auth-main { display: grid; place-items: center; padding: 40px 24px; }
.auth-form { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 18px; }
.auth-form h1 { font-size: 26px; font-weight: 900; margin: 0; }
.auth-form .lead { color: var(--muted); font-size: 14px; margin: -8px 0 4px; line-height: 1.9; }
.auth-form .input { height: 52px; font-size: 16px; border-radius: 12px; }
.auth-form .btn-primary { height: 52px; font-size: 16px; border-radius: 12px; }
.auth-form .code-input { height: 64px; font-size: 30px; letter-spacing: 14px; text-align: center; direction: ltr; font-weight: 800; }
.auth-form .back { font-size: 13px; color: var(--muted); }
@media (max-width: 820px) {
  .auth { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .auth-side { padding: 22px 20px 26px; gap: 18px; }
  .auth-side::after { display: none; }
  .auth-side .say { font-size: 19px; }
  .auth-side .say span, .auth-side .foot { display: none; }
  .auth-main { place-items: start center; padding: 30px 20px; }
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .auth { background: var(--bg); } }
.auth-side .plate { align-self: flex-start; }
.auth-side .say { max-width: min(15em, 76%); }
