/* Titli Video SDK — shared design system for the vendor console and the operator (admin) panel. */
:root {
  --font: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --bg: #f2f3f7;
  --surface: #ffffff;
  --surface-2: #f6f7fa;
  --surface-3: #eceef4;
  --line: #e1e4ec;
  --line-strong: #cdd2df;
  --ink: #131a2c;
  --ink-2: #464e69;
  --ink-3: #757d98;
  --accent: #5a45df;
  --accent-hover: #4b37cc;
  --accent-ink: #ffffff;
  --accent-soft: #ebe8ff;
  --audio: #d68a1c;
  --video: #5a45df;
  --live: #0c9b86;
  --live-soft: #dcf5f0;
  --warn: #b7700a;
  --warn-soft: #fdf1dc;
  --danger: #cf3546;
  --danger-soft: #fde6e8;
  --ok: #1d8f52;
  --ok-soft: #def4e7;
  --shadow: 0 1px 2px rgba(19, 26, 44, .06), 0 4px 16px rgba(19, 26, 44, .05);
  --shadow-pop: 0 12px 40px rgba(19, 26, 44, .18);
  --r-s: 6px;
  --r-m: 10px;
  --r-l: 16px;
  --side: 248px;
  color-scheme: light;
}
body[data-app="admin"] {
  --accent: #0a7f73;
  --accent-hover: #086d63;
  --accent-soft: #dcf2ef;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1120; --surface: #131a2d; --surface-2: #182038; --surface-3: #1f2843; --line: #252f4d; --line-strong: #34406a;
    --ink: #e8ebf6; --ink-2: #b2b9d1; --ink-3: #7d87a8;
    --accent: #8b7aff; --accent-hover: #9d8fff; --accent-ink: #0c1120; --accent-soft: #252050;
    --audio: #f0aa45; --video: #8b7aff; --live: #35c9b0; --live-soft: #123a37;
    --warn: #f0aa45; --warn-soft: #3a2c12; --danger: #ff6b7a; --danger-soft: #3d1a22; --ok: #4fd08a; --ok-soft: #133524;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25); --shadow-pop: 0 16px 48px rgba(0, 0, 0, .55);
    color-scheme: dark;
  }
  :root:not([data-theme="light"]) body[data-app="admin"] { --accent: #3cc9b6; --accent-hover: #5fd8c7; --accent-soft: #10383a; }
}
:root[data-theme="dark"] {
  --bg: #0c1120; --surface: #131a2d; --surface-2: #182038; --surface-3: #1f2843; --line: #252f4d; --line-strong: #34406a;
  --ink: #e8ebf6; --ink-2: #b2b9d1; --ink-3: #7d87a8;
  --accent: #8b7aff; --accent-hover: #9d8fff; --accent-ink: #0c1120; --accent-soft: #252050;
  --audio: #f0aa45; --video: #8b7aff; --live: #35c9b0; --live-soft: #123a37;
  --warn: #f0aa45; --warn-soft: #3a2c12; --danger: #ff6b7a; --danger-soft: #3d1a22; --ok: #4fd08a; --ok-soft: #133524;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25); --shadow-pop: 0 16px 48px rgba(0, 0, 0, .55);
  color-scheme: dark;
}
:root[data-theme="dark"] body[data-app="admin"] { --accent: #3cc9b6; --accent-hover: #5fd8c7; --accent-soft: #10383a; }

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 14.5px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -0.01em; }
h1 { font-size: 26px; line-height: 1.2; letter-spacing: -0.02em; }
h2 { font-size: 17px; }
h3 { font-size: 15px; }
p { margin: 0 0 8px; }
code, .mono { font-family: var(--mono); font-size: 12.5px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent-soft); }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; background: linear-gradient(to right, var(--surface) calc(var(--side) - 1px), var(--line) calc(var(--side) - 1px), var(--line) var(--side), transparent var(--side)); }
.side {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px;
  padding: 18px 14px; border-right: 1px solid var(--line); background: var(--surface); overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name { font-weight: 700; font-size: 15px; line-height: 1.1; }
.brand-sub { font-size: 12px; color: var(--ink-3); }
.nav { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.nav a {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-s);
  color: var(--ink-2); font-weight: 500; text-decoration: none;
}
.nav a svg { width: 18px; height: 18px; flex: none; opacity: .8; }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.nav a[aria-current="page"] svg { opacity: 1; }
.nav .count { margin-left: auto; font-size: 11.5px; background: var(--danger); color: #fff; border-radius: 99px; padding: 0 7px; font-weight: 600; }
.side-foot { margin-top: auto; padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.side-user { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: var(--r-s); }
.side-user .who { min-width: 0; flex: 1; }
.side-user .who div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }

.main { min-width: 0; padding: 26px 34px 60px; }
.page { max-width: 1240px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head .sub { color: var(--ink-3); margin-top: 4px; max-width: 70ch; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.topbar { display: none; }
.env-flag { font-size: 11.5px; font-weight: 600; color: var(--warn); background: var(--warn-soft); border-radius: 99px; padding: 2px 9px; align-self: flex-start; margin-left: 8px; }

/* ---------- balance meter (signature element) ---------- */
.meter { border: 1px solid var(--line); border-radius: var(--r-m); padding: 12px; background: var(--surface-2); }
.meter .label { font-size: 12px; color: var(--ink-3); display: flex; justify-content: space-between; }
.meter .amount { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin: 2px 0 8px; }
.meter .bar { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; position: relative; }
.meter .fill { height: 100%; border-radius: 99px; background: var(--live); transition: width .6s ease; }
.meter.low .fill { background: var(--warn); }
.meter.empty .fill { background: var(--danger); }
.meter .runway { font-size: 12px; color: var(--ink-2); margin-top: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; }
.meter .runway b { font-weight: 650; color: var(--ink); }

.hero-balance { display: grid; grid-template-columns: 1.3fr 1fr; gap: 0; border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); margin-bottom: 18px; }
.hero-balance .left { padding: 22px 24px; }
.hero-balance .right { padding: 22px 24px; background: var(--surface-2); border-left: 1px solid var(--line); display: grid; gap: 12px; align-content: center; }
.hero-balance .big { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin: 6px 0 14px; }
.hero-balance .gauge { height: 10px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.hero-balance .gauge > div { height: 100%; background: linear-gradient(90deg, var(--live), var(--accent)); border-radius: 99px; }
.hero-balance.low .gauge > div { background: var(--warn); }
.hero-balance.empty .gauge > div { background: var(--danger); }
.runway-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.runway-row .k { color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.runway-row .v { font-weight: 650; font-size: 18px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.dot.audio { background: var(--audio); } .dot.video { background: var(--video); } .dot.live { background: var(--live); }
.dot.pulse { box-shadow: 0 0 0 0 var(--live); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 60%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .dot.pulse { animation: none; } .meter .fill { transition: none; } }

/* ---------- surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 0; flex-wrap: wrap; }
.card-head .hint { color: var(--ink-3); font-size: 13px; }
.card-body { padding: 16px 20px 20px; }
.card + .card, .grid + .card, .card + .grid, .stats + .card, .stats + .grid { margin-top: 18px; }
.grid { display: grid; gap: 18px; align-items: start; }
.grid > .card + .card { margin-top: 0; }
.grid.two { grid-template-columns: 1fr 1fr; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.side-r { grid-template-columns: 1.6fr 1fr; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow); }
.stat { background: var(--surface); padding: 16px 18px; min-width: 0; }
.stat .k { color: var(--ink-3); font-size: 12.5px; display: flex; align-items: center; gap: 6px; }
.stat .v { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin-top: 4px; white-space: nowrap; }
.stat .s { color: var(--ink-3); font-size: 12.5px; margin-top: 2px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 26px 0 10px; }

/* ---------- controls ---------- */
.btn {
  appearance: none; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  font: inherit; font-weight: 600; font-size: 13.5px; padding: 8px 14px; border-radius: var(--r-s);
  cursor: pointer; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; line-height: 1.2;
}
.btn:hover { background: var(--surface-2); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-hover); }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.danger-ghost { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.sm { padding: 5px 10px; font-size: 12.5px; }
.btn.block { width: 100%; justify-content: center; padding: 11px 14px; }
.icon-btn { appearance: none; border: 0; background: transparent; color: var(--ink-2); padding: 6px; border-radius: var(--r-s); cursor: pointer; display: inline-grid; place-items: center; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label, .label-text { font-weight: 600; font-size: 13px; color: var(--ink-2); }
.field .help { font-size: 12.5px; color: var(--ink-3); }
.input, select.input, textarea.input {
  font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--r-s); padding: 9px 11px; width: 100%; min-width: 0;
}
textarea.input { min-height: 80px; resize: vertical; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input-group { display: flex; align-items: stretch; }
.input-group .prefix, .input-group .suffix { display: grid; place-items: center; padding: 0 10px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--ink-3); font-size: 13px; }
.input-group .prefix { border-right: 0; border-radius: var(--r-s) 0 0 var(--r-s); }
.input-group .suffix { border-left: 0; border-radius: 0 var(--r-s) var(--r-s) 0; }
.input-group .input { border-radius: 0; }
.input-group .input:first-child { border-radius: var(--r-s) 0 0 var(--r-s); }
.input-group .prefix + .input { border-radius: 0 var(--r-s) var(--r-s) 0; }
.input-group .prefix + .input:not(:last-child) { border-radius: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-row.three { grid-template-columns: 1fr 1fr 1fr; }
.search { max-width: 280px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filters .input { width: auto; }

.toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.toggle:last-child { border-bottom: 0; }
.toggle .t { font-weight: 600; }
.toggle .d { color: var(--ink-3); font-size: 12.5px; }
.switch { position: relative; width: 40px; height: 23px; flex: none; }
.switch input { opacity: 0; width: 100%; height: 100%; margin: 0; position: absolute; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; background: var(--line-strong); border-radius: 99px; transition: background .15s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(17px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--r-s); overflow: hidden; }
.seg button { appearance: none; border: 0; background: var(--surface); color: var(--ink-2); font: inherit; font-weight: 600; font-size: 13px; padding: 7px 12px; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line-strong); }
.seg button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs button { appearance: none; border: 0; background: none; font: inherit; font-weight: 600; color: var(--ink-3); padding: 10px 12px; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }

/* ---------- table ---------- */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.t th { text-align: left; font-weight: 600; color: var(--ink-3); font-size: 12.5px; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); }
table.t td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tbody tr.click { cursor: pointer; }
table.t tbody tr.click:hover td { background: var(--surface-2); }
table.t .num { text-align: right; white-space: nowrap; }
table.t .muted { color: var(--ink-3); }
.card .table-wrap { border-top: 1px solid var(--line); margin-top: 14px; }
.card .table-wrap table.t th:first-child, .card .table-wrap table.t td:first-child { padding-left: 20px; }
.card .table-wrap table.t th:last-child, .card .table-wrap table.t td:last-child { padding-right: 20px; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--surface-3); color: var(--ink-2); white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.live { background: var(--live-soft); color: var(--live); }
.badge.accent { background: var(--accent-soft); color: var(--accent); }
.badge.audio { background: color-mix(in srgb, var(--audio) 16%, transparent); color: var(--audio); }
.badge.video { background: color-mix(in srgb, var(--video) 16%, transparent); color: var(--video); }

.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; font-size: 13.5px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

.secret { display: flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-s); padding: 7px 8px 7px 11px; font-family: var(--mono); font-size: 12.5px; min-width: 0; }
.secret span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.callout { border-radius: var(--r-m); padding: 12px 14px; background: var(--accent-soft); color: var(--ink); font-size: 13.5px; display: flex; gap: 10px; align-items: flex-start; }
.callout.warn { background: var(--warn-soft); }
.callout.danger { background: var(--danger-soft); }
.callout svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }

pre.code { background: #0f1526; color: #dfe4f3; border-radius: var(--r-m); padding: 14px 16px; overflow-x: auto; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; margin: 0; border: 1px solid var(--line); }
pre.code .c { color: #7f8aad; } pre.code .s { color: #9ce0c6; } pre.code .k { color: #b7a9ff; }

.empty { text-align: center; padding: 38px 20px; color: var(--ink-3); }
.empty h3 { color: var(--ink); margin-bottom: 4px; }
.empty .btn { margin-top: 12px; }
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--r-s); height: 14px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- chart ---------- */
.chart { width: 100%; display: block; }
.chart .gridline { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--ink-3); font-size: 11px; font-family: var(--font); }
.chart .bar-audio { fill: var(--audio); }
.chart .bar-video { fill: var(--video); }
.chart .bar-hover { fill: var(--surface-3); }
.chart .line-rev { fill: none; stroke: var(--live); stroke-width: 2; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-tip { position: absolute; pointer-events: none; background: var(--ink); color: var(--surface); padding: 7px 10px; border-radius: var(--r-s); font-size: 12px; white-space: nowrap; box-shadow: var(--shadow-pop); z-index: 5; }
.chart-box { position: relative; }

/* ---------- overlays ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(8, 12, 24, .5); display: grid; place-items: center; padding: 16px; z-index: 50; animation: fade .15s ease; }
.modal { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow-pop); border: 1px solid var(--line); animation: rise .18s ease; }
.modal.wide { width: min(820px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 0; gap: 12px; }
.modal-body { padding: 14px 20px 6px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px 18px; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .modal-back, .modal { animation: none; } }
.toasts { position: fixed; bottom: 18px; right: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 60; }
.toast { background: var(--ink); color: var(--surface); padding: 10px 14px; border-radius: var(--r-m); box-shadow: var(--shadow-pop); font-size: 13.5px; max-width: 380px; animation: rise .18s ease; }
.toast.error { background: var(--danger); color: #fff; }

/* ---------- auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: #10162b; color: #e8ebf6; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
body[data-app="admin"] .auth-side { background: #0b1d22; }
.auth-side h2 { font-size: 30px; line-height: 1.2; letter-spacing: -0.02em; max-width: 16ch; font-weight: 650; }
.auth-side p { color: #aab2cc; max-width: 42ch; }
.auth-side .wave { position: absolute; right: -40px; bottom: 90px; width: 520px; opacity: .9; }
.auth-form { display: grid; place-items: center; padding: 32px 20px; background: var(--surface); }
.auth-form form { width: min(380px, 100%); }
.auth-form h1 { margin-bottom: 6px; }
.auth-form .sub { color: var(--ink-3); margin-bottom: 22px; }
.auth-switch { margin-top: 16px; color: var(--ink-3); font-size: 13.5px; text-align: center; }
.err { color: var(--danger); font-size: 13px; margin: -4px 0 12px; }

/* ---------- misc ---------- */
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.muted { color: var(--ink-3); }
.small { font-size: 12.5px; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.mt { margin-top: 14px; } .mt-l { margin-top: 24px; } .mb { margin-bottom: 14px; }
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.list-plain li:last-child { border-bottom: 0; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 18px 40px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; display: grid; place-items: center; font-size: 13px; }
.steps li h3 { margin-bottom: 6px; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { padding: 0 0 14px 16px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .grid.three { grid-template-columns: 1fr 1fr; }
  .grid.side-r { grid-template-columns: 1fr; }
  .hero-balance { grid-template-columns: 1fr; }
  .hero-balance .right { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; background: none; }
  .side { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 40; transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--shadow-pop); }
  .shell.nav-open .side { transform: none; }
  .shell.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(8,12,24,.45); z-index: 30; }
  .topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 20; }
  .main { padding: 18px 16px 48px; }
  .grid.two, .grid.three, .form-row, .form-row.three { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  h1 { font-size: 22px; }
  .hero-balance .big { font-size: 32px; }
  .search { max-width: none; flex: 1; }
}
