/* One visual system. Light is the default. Gains stay green, losses stay red. Buttons are ink, not a crypto green. */
:root, [data-theme="light"] {
  --bg: #f4f6f8; --surface: #ffffff; --surface-2: #f7f8fa; --surface-3: #eef1f4;
  --border: #e4e7ec; --border-strong: #d5dae1;
  --text: #101828; --text-2: #344054; --muted: #667085;
  --accent: #101828; --accent-hover: #1d2939; --accent-soft: rgba(16,24,40,.06); --accent-fg: #ffffff;
  --good: #067647; --good-soft: #e7f6ee; --bad: #b42318; --bad-soft: #fdecea;
  --warn: #b54708; --warn-soft: #fef4e6; --info: #175cd3; --info-soft: #eff4ff;
  --shadow: 0 1px 2px rgba(16,24,40,.06); --overlay: rgba(16,24,40,.45);
}
[data-theme="dark"] {
  --bg: #0c111d; --surface: #161b26; --surface-2: #1d2433; --surface-3: #2a3346;
  --border: #2a3346; --border-strong: #3a455c;
  --text: #f5f7fa; --text-2: #d0d5dd; --muted: #98a2b3;
  --accent: #f5f7fa; --accent-hover: #ffffff; --accent-soft: rgba(245,247,250,.08); --accent-fg: #101828;
  --good: #75e0a7; --good-soft: rgba(7,148,85,.2); --bad: #fda29b; --bad-soft: rgba(180,35,24,.22);
  --warn: #fec84b; --warn-soft: rgba(181,71,8,.2); --info: #b2ccff; --info-soft: rgba(23,92,211,.25);
  --shadow: none; --overlay: rgba(0,0,0,.6);
}
:root { --radius: 14px; --radius-sm: 8px; --sidebar: 248px; --topbar: 60px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; }
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p { margin: 0; }
a { color: var(--accent); text-decoration: none; } a:hover { color: var(--accent-hover); }
button { font: inherit; color: inherit; }
.num, .mono { font-variant-numeric: tabular-nums; } .mono { font-family: var(--mono); font-size: .92em; }
.muted { color: var(--muted); } .good { color: var(--good); } .bad { color: var(--bad); } .warn { color: var(--warn); }
.hidden { display: none !important; }

/* ---------- shell ---------- */
.app { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 16px 12px; z-index: 40; }
.brand .logo-mark { width: 52px; height: auto; display: block; flex: none; }
.brand-mark { padding-bottom: 12px; }
.foot-disclaimer { color: var(--muted); font-size: 12px; line-height: 1.45; margin: 0 4px 8px; }
.ack-block { border: 1px solid var(--border); border-radius: 12px; padding: 14px; background: var(--surface-2); }
.ack-block p { margin: 0 0 10px; color: var(--text-2); font-size: 14px; line-height: 1.5; }
.ack-block label { font-weight: 700; display: flex; gap: 8px; align-items: center; }
.btn.is-disabled { opacity: .45; pointer-events: none; }
.venue-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.venue { text-align: left; border: 1px solid var(--border); background: var(--surface); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.venue.on { border-color: #175cd3; }
.venue:disabled { opacity: .55; cursor: not-allowed; }
.venue span { color: var(--muted); font-size: 12px; }
.foot-brand { display: flex; gap: 10px; align-items: center; }
.foot-brand .word { font-weight: 700; letter-spacing: -.03em; }
.foot-brand small { display: block; color: #667085; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; font-weight: 650; letter-spacing: -.01em; font-size: 15px; }
.brand .mark { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--accent), #8b5cf6); display: grid; place-items: center; color: #fff; box-shadow: 0 4px 14px rgba(109,112,245,.35); }
.brand small { display: block; font-weight: 500; color: var(--muted); font-size: 11px; letter-spacing: .02em; }
.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 14px 10px 6px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--text-2); font-weight: 500; position: relative; }
.nav a:hover { background: var(--surface-3); color: var(--text); }
.nav a.active { background: var(--accent-soft); color: var(--text); }
.nav a.active::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.nav a .count { margin-left: auto; font-size: 11px; background: var(--bad-soft); color: var(--bad); padding: 1px 7px; border-radius: 99px; }
.sidebar-foot { border-top: 1px solid var(--border); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.main { min-width: 0; display: flex; flex-direction: column; }
.app, .content { min-width: 0; } .stack > *, .grid > *, .card { min-width: 0; } .card-body.flush { overflow: hidden; border-radius: 0 0 var(--radius) var(--radius); }
.topbar { position: sticky; top: 0; z-index: 30; height: var(--topbar); display: flex; align-items: center; gap: 14px; padding: 0 28px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.topbar .title { font-size: 16px; font-weight: 650; letter-spacing: -.01em; }
.topbar .crumbs { color: var(--muted); font-size: 13px; }
.spacer { flex: 1; }
.content { padding: 28px; width: 100%; max-width: 1360px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.page-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.page-head h1 { font-size: 22px; letter-spacing: -.02em; font-weight: 700; }
.page-head p { color: var(--muted); margin-top: 2px; }
.btn.menu-btn { display: none; }

/* ---------- primitives ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.card-head h3 { font-size: 14px; font-weight: 650; } .card-head .sub { color: var(--muted); font-size: 12.5px; }
.card-body { padding: 20px; } .card-body.flush { padding: 0; }
.grid { display: grid; gap: 16px; } .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .g-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.stack { display: flex; flex-direction: column; gap: 16px; } .row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); font-weight: 550; cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s, transform .05s; }
.btn:hover { background: var(--surface-3); } .btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: transparent; color: var(--accent-fg); } .btn.primary:hover { background: var(--accent-hover); }
.btn.danger { background: var(--bad-soft); border-color: transparent; color: var(--bad); } .btn.danger:hover { background: var(--bad); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); } .btn.ghost:hover { background: var(--surface-3); color: var(--text); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; } .btn.icon { width: 36px; padding: 0; } .btn.sm.icon { width: 30px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn .spin { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 99px; font-size: 11.5px; font-weight: 600; letter-spacing: .01em; background: var(--surface-3); color: var(--text-2); white-space: nowrap; }
.badge.dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.good { background: var(--good-soft); color: var(--good); } .badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.warn { background: var(--warn-soft); color: var(--warn); } .badge.info { background: var(--info-soft); color: var(--info); } .badge.accent { background: var(--accent-soft); color: var(--accent); }
.kpi { padding: 16px 18px; } .kpi .label { color: var(--muted); font-size: 12.5px; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.kpi .value { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin-top: 6px; font-variant-numeric: tabular-nums; } .kpi .hint { color: var(--muted); font-size: 12px; margin-top: 4px; }
.table-wrap { overflow-x: auto; } table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: 11px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); white-space: nowrap; }
td { padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; white-space: nowrap; }
tr:last-child td { border-bottom: 0; } tbody tr.click { cursor: pointer; } tbody tr.click:hover td { background: var(--surface-2); }
td.r, th.r { text-align: right; font-variant-numeric: tabular-nums; }
.empty { padding: 44px 20px; text-align: center; color: var(--muted); } .empty h4 { color: var(--text); font-size: 15px; margin-bottom: 4px; } .empty .btn { margin-top: 14px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 10px 14px; color: var(--muted); font-weight: 550; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button:hover { color: var(--text); } .tabs button.active { color: var(--text); border-bottom-color: var(--accent); }
.field { display: flex; flex-direction: column; gap: 6px; } .field label { font-size: 13px; font-weight: 550; color: var(--text-2); } .field .hint { font-size: 12px; color: var(--muted); }
.input, .select { height: 38px; width: 100%; padding: 0 12px; background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); color: var(--text); font: inherit; outline: none; transition: border-color .12s, box-shadow .12s; }
.input:focus, .select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); } .input::placeholder { color: var(--muted); }
.seg { display: inline-flex; padding: 3px; background: var(--surface-3); border-radius: 10px; gap: 2px; } .seg button { border: 0; background: none; padding: 6px 14px; border-radius: 8px; font-weight: 550; color: var(--text-2); cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch { position: relative; width: 40px; height: 22px; border-radius: 99px; background: var(--border-strong); border: 0; cursor: pointer; transition: background .15s; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; } .switch.on { background: var(--accent); } .switch.on::after { transform: translateX(18px); }
.alert { display: flex; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 13.5px; background: var(--info-soft); color: var(--text); border: 1px solid transparent; }
.alert.warn { background: var(--warn-soft); } .alert.bad { background: var(--bad-soft); } .alert.good { background: var(--good-soft); } .alert svg { flex: none; margin-top: 2px; }
.alert.warn svg { color: var(--warn); } .alert.bad svg { color: var(--bad); } .alert.good svg { color: var(--good); } .alert.info svg { color: var(--info); }
.list { display: flex; flex-direction: column; } .list > div { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--border); } .list > div:last-child { border-bottom: 0; }
.dl { display: grid; grid-template-columns: 160px 1fr; gap: 10px 16px; } .dl dt { color: var(--muted); } .dl dd { margin: 0; }
.bar { height: 8px; background: var(--surface-3); border-radius: 99px; overflow: hidden; } .bar > i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: sh 1.2s infinite; border-radius: 8px; } @keyframes sh { to { background-position: -200% 0; } }
.avatar { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: 12px; background: var(--accent-soft); color: var(--accent); font-family: var(--mono); flex: none; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: pu 2s infinite; } .pulse.bad { background: var(--bad); animation: none; } @keyframes pu { 70% { box-shadow: 0 0 0 7px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
.chart { width: 100%; height: auto; display: block; } .chart text { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.tooltip { position: absolute; pointer-events: none; background: var(--surface-3); border: 1px solid var(--border-strong); border-radius: 8px; padding: 8px 10px; font-size: 12px; box-shadow: var(--shadow); z-index: 5; white-space: nowrap; }
.legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--text-2); } .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }

/* ---------- overlays ---------- */
.overlay { position: fixed; inset: 0; background: var(--overlay); display: grid; place-items: center; z-index: 100; padding: 16px; animation: fade .12s; }
.modal { width: min(520px, 100%); max-height: 90vh; overflow: auto; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 16px; box-shadow: var(--shadow); animation: pop .14s; }
.modal-head { padding: 18px 22px 0; font-size: 16px; font-weight: 650; } .modal-body { padding: 12px 22px 8px; color: var(--text-2); display: flex; flex-direction: column; gap: 14px; } .modal-foot { padding: 14px 22px 20px; display: flex; justify-content: flex-end; gap: 10px; }
@keyframes fade { from { opacity: 0; } } @keyframes pop { from { opacity: 0; transform: scale(.97) translateY(6px); } }
#toasts { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 10px; z-index: 200; }
.toast { min-width: 260px; max-width: 420px; padding: 12px 14px; border-radius: 10px; background: var(--surface-3); border: 1px solid var(--border-strong); box-shadow: var(--shadow); display: flex; gap: 10px; animation: pop .16s; }
.toast.good { border-left: 3px solid var(--good); } .toast.bad { border-left: 3px solid var(--bad); } .toast.warn { border-left: 3px solid var(--warn); }

/* ---------- auth + wizard ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(900px 500px at 15% -10%, rgba(109,112,245,.18), transparent), radial-gradient(700px 400px at 100% 110%, rgba(139,92,246,.14), transparent), var(--bg); }
.auth-card { width: min(420px, 100%); padding: 32px; } .auth-card .brand { padding: 0 0 22px; }
.stepper { display: flex; gap: 8px; } .step { flex: 1; display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 550; } .step .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); font-size: 12px; flex: none; }
.step.on { color: var(--text); } .step.on .n { background: var(--accent); color: #fff; } .step.done .n { background: var(--good-soft); color: var(--good); } .step .line { flex: 1; height: 1px; background: var(--border); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-main { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .2s; width: 270px; box-shadow: var(--shadow); }
  .sidebar.open { transform: none; } .btn.menu-btn { display: inline-flex; }
  .topbar { padding: 0 16px; } .content { padding: 16px; } .g2, .g3 { grid-template-columns: 1fr; } .dl { grid-template-columns: 1fr; gap: 2px; } .dl dd { margin-bottom: 8px; }
}
@media (max-width: 560px) { .g4 { grid-template-columns: 1fr 1fr; } .kpi .value { font-size: 20px; } }

/* ---------- per-account console + compare ---------- */
.acct-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; margin-bottom: 10px; }
.acct-card .select { height: 34px; margin-top: 4px; }
.cmp-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.stackbar { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: var(--surface-3); }
.stackbar > i { display: block; height: 100%; }
.dot-key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; }
.diff.good { color: var(--good); } .diff.bad { color: var(--bad); }


/* ================= WEEX look overrides ================= */
body { font-size: 14px; letter-spacing: -.003em; }
.num, td.r, .kpi .value, .big { font-variant-numeric: tabular-nums; }
.card { box-shadow: none; background: var(--surface); }
.card-head { border-bottom-color: var(--border); }
.card-head h3 { font-size: 15px; font-weight: 650; }
/* chips: rounded rectangles like the app, not pills */
.badge { border-radius: 6px; height: 24px; padding: 0 10px; font-size: 12.5px; font-weight: 600; background: var(--surface-3); color: var(--text); }
.badge.good { background: var(--good-soft); color: var(--good); } .badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.warn { background: var(--warn-soft); color: var(--warn); } .badge.info { background: var(--info-soft); color: var(--info); } .badge.accent { background: var(--accent-soft); color: var(--accent); }
/* buttons: bright green primary with dark text, flat dark secondary */
.btn { border-color: transparent; background: var(--surface-3); color: var(--text); font-weight: 600; border-radius: 10px; }
.btn:hover { background: var(--border-strong); }
.btn.primary { background: var(--accent); color: var(--accent-fg); } .btn.primary:hover { background: var(--accent-hover); }
.btn.danger { background: var(--bad-soft); color: var(--bad); } .btn.danger:hover { background: var(--bad); color: #fff; }
.btn.ghost { background: transparent; color: var(--text-2); } .btn.ghost:hover { background: var(--surface-3); color: var(--text); }
.input, .select { background: var(--surface-2); border-color: var(--border); border-radius: 10px; height: 40px; }
.input:focus, .select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.seg { background: var(--surface-3); border-radius: 10px; } .seg button { color: var(--muted); } .seg button.on { background: var(--bg); color: var(--text); box-shadow: none; }
/* tables: no header fill, grey small caps, hairlines */
th { background: transparent; color: var(--muted); font-size: 12px; text-transform: none; letter-spacing: 0; font-weight: 500; padding: 12px 16px; }
td { padding: 14px 16px; font-weight: 500; }
tbody tr.click:hover td { background: var(--surface-2); }
/* KPI tiles: big bold values, grey labels */
.kpi .label { color: var(--muted); font-size: 13px; font-weight: 500; } .kpi .value { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
/* nav + shell */
.sidebar { background: var(--bg); } .topbar { background: color-mix(in srgb, var(--bg) 88%, transparent); }
.nav a { font-weight: 550; } .nav a.active { background: var(--surface-3); color: var(--text); } .nav a.active::before { background: var(--accent); }
.brand .mark { background: var(--accent); color: var(--accent-fg); box-shadow: none; }
.tabs button.active { border-bottom-color: var(--accent); }
.avatar { background: var(--surface-3); color: var(--text); }
.acct-card { background: var(--surface); }
.auth { background: var(--bg); }
.alert { border-radius: 10px; }
.switch.on { background: var(--accent); }
.step.on .n { background: var(--accent); color: var(--accent-fg); }
.bar > i { background: var(--accent); }
.good { color: var(--good) !important; } .bad { color: var(--bad) !important; }
.kpi .value.good, .big.good { color: var(--good) !important; } .kpi .value.bad, .big.bad { color: var(--bad) !important; }

/* ================= position card (mirrors the WEEX app card) ================= */
.pos-grid-wrap { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 16px; }
.pos { padding: 22px 22px 18px; display: flex; flex-direction: column; gap: 18px; }
.pos-top { display: flex; align-items: center; justify-content: space-between; }
.pos-title { font-size: 26px; font-weight: 750; letter-spacing: -.02em; display: flex; align-items: center; gap: 8px; color: var(--text); }
.pos-title .chev { color: var(--text-2); }
.pos-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: -4px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 8px; background: var(--surface-3); font-size: 17px; font-weight: 500; color: var(--text); white-space: nowrap; }
.chip.short { background: var(--bad-soft); color: var(--bad); } .chip.long { background: var(--good-soft); color: var(--good); }
.chip.small { height: 26px; font-size: 12.5px; font-weight: 600; padding: 0 9px; border-radius: 6px; }
.pos-pnl { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.lbl { color: var(--muted); font-size: 16px; font-weight: 400; }
.lbl.dash { border-bottom: 1px dashed var(--muted); padding-bottom: 1px; display: inline-block; }
.big { font-size: 34px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin-top: 4px; }
.pos-cols { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 20px 12px; }
.pos-cols > div:last-child, .pos-cols > div:nth-child(3n) { text-align: right; }
.pos-cols .val { font-size: 22px; font-weight: 600; margin-top: 4px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.pos-foot { display: flex; flex-wrap: wrap; gap: 8px 14px; border-top: 1px solid var(--border); padding-top: 14px; font-size: 13px; color: var(--muted); align-items: center; }
.pos-foot b { color: var(--text-2); font-weight: 600; }
.acct-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.acct-strip > div { padding: 16px 18px; border-right: 1px solid var(--border); } .acct-strip > div:last-child { border-right: 0; }
.acct-strip .v { font-size: 22px; font-weight: 700; margin-top: 4px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .pos-grid-wrap { grid-template-columns: 1fr; } .big { font-size: 28px; } .pos-title { font-size: 22px; } .chip { font-size: 15px; } .pos-cols .val { font-size: 19px; } }

/* ================= WZ portal trade card (same look as the Discord image) ================= */
@media (max-width: 560px) { .wz-grid { grid-template-columns: 1fr; } .wzc-title { font-size: 26px; } .wzc-val { font-size: 20px; } }

/* ================= compact cards (smaller type + tighter spacing) ================= */
.pos-grid-wrap { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.pos { padding: 14px 16px 12px; gap: 11px; }
.pos-title { font-size: 19px; gap: 6px; } .pos-title .chev svg { width: 16px; height: 16px; }
.pos-chips { gap: 6px; margin-top: -2px; }
.chip { height: 25px; padding: 0 9px; font-size: 13px; border-radius: 6px; }
.lbl { font-size: 12px; } .big { font-size: 23px; margin-top: 2px; }
.pos-cols { gap: 10px 8px; } .pos-cols .val { font-size: 15px; margin-top: 2px; }
.pos-foot { padding-top: 9px; font-size: 11.5px; gap: 4px 10px; }
.acct-strip > div { padding: 11px 14px; } .acct-strip .v { font-size: 17px; margin-top: 2px; }

@media (max-width: 560px) { .pos-grid-wrap, .wz-grid { grid-template-columns: 1fr; } .big { font-size: 22px; } .pos-title { font-size: 18px; } .chip { font-size: 12.5px; } .pos-cols .val { font-size: 15px; } .wzc-title { font-size: 19px; } .wzc-val { font-size: 15px; } }


/* ================= WZ Feed page + mobile ================= */
.wzfeed { display: flex; flex-direction: column; gap: 14px; }
.wz-tabs { position: sticky; top: var(--topbar); z-index: 20; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; background: var(--surface-3); border-radius: 14px; }
.wz-tabs button { height: 46px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: inherit; font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.wz-tabs button.on { background: var(--bg); color: var(--text); box-shadow: 0 0 0 1px var(--border-strong) inset; }
.wz-tabs button .n { min-width: 24px; height: 22px; padding: 0 7px; border-radius: 99px; background: var(--surface-3); color: var(--text-2); font-size: 12.5px; display: inline-grid; place-items: center; }
.wz-tabs button.on .n { background: var(--accent-soft); color: var(--accent); }
.wz-stats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(104px, 1fr); gap: 8px; overflow-x: auto; scrollbar-width: none; }
.wz-stats::-webkit-scrollbar { display: none; }
.wz-stat { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.wz-stat .l { color: var(--muted); font-size: 12px; } .wz-stat .v { font-size: 18px; font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; }
.wz-filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.wz-search { position: relative; flex: 1 1 200px; } .wz-search svg { position: absolute; left: 12px; top: 12px; color: var(--muted); } .wz-search .input { padding-left: 36px; }
.pills { display: flex; gap: 6px; } .pill { height: 40px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--border-strong); background: transparent; color: var(--text-2); font: inherit; font-weight: 650; cursor: pointer; }
.pill.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.wz-live { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 12.5px; } .wz-live .btn { margin-left: auto; }
.wz-empty { grid-column: 1 / -1; }
.bottomnav { display: none; }

@media (max-width: 900px) {
  .topbar { height: 54px; } .wz-tabs { top: 54px; }
  .content { padding: 12px 12px 92px; gap: 14px; }
  .bottomnav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(14px);
    border-top: 1px solid var(--border); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bottomnav a, .bottomnav button { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 11px; font-weight: 600; border-radius: 10px; }
  .bottomnav a.active { color: var(--accent); } .bottomnav span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  #toasts { bottom: 78px; right: 10px; left: 10px; } .toast { min-width: 0; max-width: none; }
  .sidebar { z-index: 60; } .modal { max-height: 86vh; }
  .btn { height: 42px; } .btn.sm { height: 36px; } .page-head h1 { font-size: 20px; }
  .input, .select { height: 44px; font-size: 16px; }              /* 16px stops iOS zooming into inputs */
  .tabs button { padding: 12px 14px; }
}
@media (max-width: 560px) {
  .topbar .crumbs { display: none; } .topbar .title { font-size: 17px; }
  #status-chips .badge:not(.dot) { display: none; }                 /* keep only the poller light in the top bar */
  .pills { width: 100%; } .pill { flex: 1; }
  .kpi .value { font-size: 20px; } .g4 { gap: 10px; }
  td, th { padding: 11px 12px; }
}
@media (max-width: 380px) { .wzc-val { font-size: 14px; } .wzc-side { font-size: 12px; padding: 5px 9px; } .wz-tabs button { font-size: 14px; } }


/* ================= WZ trade cards: the panel's own theme + font, compact (4 per row) ================= */
.wz-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.wzc { --edge: var(--good); font-family: var(--font); background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--edge);
  border-radius: 12px; padding: 10px 12px 8px; display: flex; flex-direction: column; gap: 8px; color: var(--text); min-width: 0; }
.wzc.sell { --edge: var(--bad); } .wzc.buy { --edge: var(--good); }
.wzc-head { display: flex; align-items: center; gap: 8px; } .wzc-coin { display: none; }
.wzc-title { font: 700 14px/1.2 var(--font); letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wzc-sub { font: 500 10.5px var(--font); color: var(--muted); display: flex; align-items: center; gap: 5px; margin-top: 1px; }
.wzc-sub i { width: 5px; height: 5px; border-radius: 50%; background: var(--edge); }
.wzc-side { padding: 3px 8px; border: 0; border-radius: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; color: var(--edge); background: color-mix(in srgb, var(--edge) 15%, transparent); }
.wzc-chips { display: flex; gap: 4px; flex-wrap: wrap; }
.wzc-chips span { padding: 2px 6px; border-radius: 5px; font-size: 9.5px; font-weight: 700; letter-spacing: .03em; background: var(--surface-3); color: var(--text-2); }
.wzc-chips .y { background: var(--warn-soft); color: var(--warn); } .wzc-chips .b { background: var(--info-soft); color: var(--info); }
.wzc-chips .open { margin-left: auto; background: var(--good-soft); color: var(--good); } .wzc-chips .sl { margin-left: auto; background: var(--bad-soft); color: var(--bad); }
.wzc-chips .new { background: var(--accent-soft); color: var(--accent); }
.wzc-chips .dot::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 4px; vertical-align: 1px; }
.wzc-row { display: grid; border-top: 1px solid var(--border); padding-top: 7px; } .wzc-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } .wzc-row.two { grid-template-columns: 1fr 1fr; }
.wzc-row.three > div { padding: 0 7px; border-left: 1px solid var(--border); min-width: 0; } .wzc-row.three > div:first-child { border-left: 0; padding-left: 0; }
.wzc-lbl { font-size: 9px; font-weight: 700; letter-spacing: .07em; color: var(--muted); text-transform: uppercase; }
.wzc-val { font: 650 12.5px/1.25 var(--font); font-variant-numeric: tabular-nums; margin-top: 2px; overflow-wrap: anywhere; }
.wzc-val.sm { font-size: 12px; } .wzc-val small { font-size: 9px; color: var(--muted); font-weight: 500; } .wzc-val.up { color: var(--good); } .wzc-val.dn { color: var(--bad); }
.wzc-note { font-size: 11px; line-height: 1.4; color: var(--text-2); background: var(--surface-2); border-radius: 8px; padding: 6px 8px; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.wzc-foot { border-top: 1px solid var(--border); padding-top: 6px; font: 500 10px var(--font); color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .wzc-foot .cal { display: none; }
.wzc-foot .badge { height: 18px; font-size: 9.5px; padding: 0 6px; }
@media (max-width: 1180px) { .wz-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) { .wz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .wz-grid { grid-template-columns: 1fr; gap: 10px; } .wzc { padding: 12px 14px 10px; gap: 9px; } .wzc-title { font-size: 15px; }
  .wzc-chips span { font-size: 10.5px; padding: 3px 7px; } .wzc-val { font-size: 14px; } .wzc-lbl { font-size: 10px; } .wzc-foot { font-size: 11px; } .wzc-side { font-size: 11.5px; } }

/* ================= WZ Feed: toolbar, list view (Open | Closed side by side) ================= */
.wz-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .wz-toolbar .wz-tabs { flex: 1 1 260px; position: static; }
.viewtoggle { display: inline-flex; padding: 3px; background: var(--surface-3); border-radius: 12px; gap: 2px; }
.viewtoggle button { height: 40px; min-width: 56px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: 600 13px var(--font); display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; }
.viewtoggle button.on { background: var(--bg); color: var(--text); box-shadow: 0 0 0 1px var(--border-strong) inset; }
.wz-lists { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.wz-col { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.wz-col-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--border); font-weight: 700; background: var(--surface); }
.wz-col-head .n { min-width: 24px; height: 22px; padding: 0 7px; border-radius: 99px; background: var(--surface-3); color: var(--text-2); font-size: 12px; display: inline-grid; place-items: center; }
.wz-col-head .open { background: var(--good-soft); color: var(--good); }
.wz-rows { max-height: calc(100vh - 250px); min-height: 160px; overflow: auto; overscroll-behavior: contain; }
.wzr { --edge: var(--good); display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 11px; border-bottom: 1px solid var(--border); border-left: 3px solid var(--edge); min-width: 0; }
.wzr.sell { --edge: var(--bad); } .wzr:last-child { border-bottom: 0; } .wzr:hover { background: var(--surface-2); }
.wzr-main { flex: 1; min-width: 0; } .wzr-l1 { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; } .wzr-l1 b { font-weight: 700; letter-spacing: -.01em; }
.wzr-l2 { font-size: 11.5px; color: var(--muted); margin-top: 3px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; } .wzr-l2 .up { color: var(--good); } .wzr-l2 .dn { color: var(--bad); }
.wzr-right { text-align: right; flex: none; font-variant-numeric: tabular-nums; } .wzr-r1 { font-weight: 700; font-size: 14px; } .wzr-r2 { font-size: 11px; color: var(--muted); margin-top: 3px; }
.wzr .tag { padding: 1px 6px; border-radius: 5px; font-size: 10px; font-weight: 800; letter-spacing: .03em; background: var(--surface-3); color: var(--text-2); }
.wzr .tag.side { color: var(--edge); background: color-mix(in srgb, var(--edge) 15%, transparent); } .wzr .tag.y { background: var(--warn-soft); color: var(--warn); } .wzr .tag.new { background: var(--accent-soft); color: var(--accent); }
.wz-more { padding: 10px; display: grid; place-items: center; } .wz-col .wz-more .btn { width: 100%; }
@media (max-width: 900px) { .wz-lists { grid-template-columns: 1fr; } .wz-rows { max-height: none; } .wz-toolbar .wz-tabs { flex-basis: 100%; order: 2; } .viewtoggle { order: 1; margin-left: auto; } }
@media (max-width: 900px) { .wz-toolbar { position: sticky; top: 54px; z-index: 20; background: var(--bg); padding: 6px 0; } }

.wzc-row.three > div { padding: 0 5px; } .wzc-row.three .wzc-val { font-size: 12px; letter-spacing: -.02em; overflow-wrap: normal; white-space: nowrap; }
@media (max-width: 560px) { .wzc-row.three .wzc-val { font-size: 14px; letter-spacing: 0; } }

/* ================= WZ cards = the position card, compact (4 per row) ================= */
.wz-grid .wzp, .wzp { padding: 11px 12px 9px; gap: 8px; border-left: 3px solid var(--edge, var(--good)); }
.wzp.sell { --edge: var(--bad); } .wzp.buy { --edge: var(--good); }
.wzp .pos-title { font-size: 15px; gap: 3px; min-width: 0; } .wzp .pos-top { gap: 6px; }
.wzp .pos-chips { gap: 4px; margin-top: 0; } .wzp .chip { height: 19px; padding: 0 6px; font-size: 10.5px; border-radius: 5px; }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.wzp .lbl { font-size: 10px; } .wzp .big { font-size: 17px; margin-top: 1px; }
.wzp .pos-cols { gap: 6px; } .wzp .pos-cols .val { font-size: 11.5px; margin-top: 1px; overflow-wrap: anywhere; }
.wzp .pos-cols .val.good { color: var(--good); } .wzp .pos-cols .val.bad { color: var(--bad); }
.wzp .pos-foot { padding-top: 6px; font-size: 10px; gap: 2px 8px; } .wzp .badge { height: 17px; font-size: 9.5px; padding: 0 6px; }
.wzp .wzc-note { font-size: 10.5px; padding: 5px 7px; }
@media (max-width: 560px) { .wzp .pos-title { font-size: 17px; } .wzp .big { font-size: 20px; } .wzp .pos-cols .val { font-size: 13px; } .wzp .lbl { font-size: 11px; } }

/* ---------- source chips ---------- */
.src { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .02em; background: var(--surface-3); color: var(--text-2); }
.src-portal { background: var(--info-soft); color: var(--info); }
.src-weex { background: var(--warn-soft); color: var(--warn); }
.src-mexc { background: var(--accent-soft); color: var(--text); }
.src-exchange { background: var(--warn-soft); color: var(--warn); }
.src-app { background: var(--surface-3); color: var(--text-2); }
.src-discord { background: var(--info-soft); color: var(--info); }
.src-redis { background: var(--good-soft); color: var(--good); }
.source-banner { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text-2); font-size: 13px; }
.hero-num { font-size: 40px; font-weight: 720; letter-spacing: -.03em; line-height: 1.1; }
.disclaimer { color: var(--text-2); font-size: 13px; line-height: 1.5; }
.auth { background: #f4f6f8; }
.auth-card { animation: panel-in 1s cubic-bezier(.16,1,.3,1) both; }
.auth-card > * { animation: hero-in .9s cubic-bezier(.16,1,.3,1) both; }
.auth-card > *:nth-child(2) { animation-delay: .08s; }
.auth-card > *:nth-child(3) { animation-delay: .16s; }
.auth-card > *:nth-child(4) { animation-delay: .24s; }
.auth-title { font-size: 26px; letter-spacing: -.03em; margin: 0; }
.auth-lead { margin: 8px 0 18px; }
.auth-alt, .auth-quiet { text-align: center; color: var(--muted); font-size: 13.5px; }
.auth-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.auth-or::before, .auth-or::after { content: ""; height: 1px; background: var(--border); flex: 1; }
.btn.google { width: 100%; height: 40px; background: #fff; color: #1f1f1f; border: 1px solid #747775; border-radius: 4px; font-weight: 500; padding: 0 12px; gap: 10px; box-shadow: none; }
.btn.google:hover { background: #f8f9fa; border-color: #747775; box-shadow: 0 1px 2px rgba(60, 64, 67, .3); transform: none; }
.btn.google:disabled, .btn.google.is-disabled { opacity: .55; box-shadow: none; }
.glogo { width: 18px; height: 18px; flex: none; display: block; }
.gmark { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--border-strong); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.btn[disabled]:hover { background: var(--surface-2); transform: none; }
.explain { color: var(--text-2); font-size: 14.5px; line-height: 1.5; margin: 0; }
.onboard-card .lede { font-size: 15.5px; max-width: none; }
.kpi .src { margin-left: 6px; }
.btn, .card, .nav a, .switch { transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease; }
.btn:hover { transform: translateY(-1px); }
.card:hover { box-shadow: 0 10px 28px rgba(16,24,40,.06); }
.page-enter { animation: route-in .55s cubic-bezier(.16,1,.3,1); }
.status-hero { animation: panel-in .95s cubic-bezier(.16,1,.3,1) both; }
.check-item { animation: panel-in 1.05s cubic-bezier(.16,1,.3,1) both; }
.check-item:nth-child(2) { animation-delay: .1s; }
.check-item:nth-child(3) { animation-delay: .2s; }
.alert.bad { animation: shake .35s ease; }

/* landing is always the light marketing page */
.landing { --bg: #fff; --text: #101828; --text-2: #344054; --muted: #667085; --surface: #fff; --border: #e4e7ec; background: #fff; color: #101828; min-height: 100vh; }
.landing .brand { color: #101828; text-decoration: none; font-weight: 700; }
.brand .word, .ps-top .word { letter-spacing: -.03em; font-weight: 700; }
.landing .brand .word { animation: rise .4s ease; }
.land-nav { display: flex; align-items: center; gap: 22px; padding: 16px 28px; background: #fff; border-bottom: 1px solid #eef0f3; }
.land-links { display: flex; gap: 18px; }
.land-links a { color: #344054; font-weight: 600; }
.land-links a:hover { color: #101828; }
.land-cta { margin-left: auto; display: flex; gap: 8px; }
.land-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 72px 0 56px; }
.land-hero h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.02; letter-spacing: -.04em; max-width: 12ch; margin: 10px 0 14px; }
.lede { max-width: 46ch; color: #344054; font-size: 18px; line-height: 1.5; }
.eyebrow { color: #667085; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
.btn.lg { height: 46px; padding: 0 18px; border-radius: 999px; }
.landing .btn.primary { background: #101828; color: #fff; }
.landing .btn.primary:hover { background: #1d2939; }
.landing .btn { border-radius: 999px; background: #fff; border: 1px solid #d5dae1; }
.hero-visual { display: flex; justify-content: center; }
.product-shot { width: min(420px, 100%); background: #fff; border: 1px solid #e4e7ec; border-radius: 20px; box-shadow: 0 24px 60px rgba(16,24,40,.12); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.ps-top, .ps-roi { display: flex; align-items: center; justify-content: space-between; }
.ps-dot { width: 28px; height: 28px; border-radius: 8px; background: #101828; }
.ps-off { font-size: 12px; font-weight: 700; background: #f2f4f7; padding: 4px 8px; border-radius: 999px; }
.ps-title { font-size: 20px; font-weight: 720; }
.ps-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ps-steps li { display: flex; align-items: center; gap: 10px; color: #667085; }
.ps-steps i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; background: #f2f4f7; }
.ps-steps .done { color: #067647; } .ps-steps .done i { background: #e7f6ee; }
.ps-steps .now { color: #101828; font-weight: 700; } .ps-steps .now i { background: #101828; color: #fff; }
.ps-roi { border-top: 1px solid #eef0f3; padding-top: 10px; color: #667085; font-size: 13px; }
.ps-roi strong { color: #101828; font-size: 18px; }
.land-band { background: #f7f8fa; border-top: 1px solid #eef0f3; border-bottom: 1px solid #eef0f3; }
.land-wrap { width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 28px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(32px, 4vw, 44px); letter-spacing: -.03em; line-height: 1.1; }
.section-head p { color: #475467; margin-top: 10px; font-size: 16px; }
.result-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; }
.result-figure, .legal, .how-card, .control-card, .price-card, .faq details { background: #fff; border: 1px solid #e4e7ec; border-radius: 18px; }
.result-figure { padding: 28px; }
.result-kicker { color: #667085; font-weight: 650; }
.result-dash, .result-num { font-size: 72px; font-weight: 720; letter-spacing: -.04em; line-height: 1; margin: 8px 0; }
.legal { padding: 28px; }
.legal b { display: block; margin-bottom: 8px; }
.how-grid, .control-grid { display: grid; gap: 14px; }
.how-grid { grid-template-columns: repeat(3, 1fr); list-style: none; margin: 0; padding: 0; }
.control-grid { grid-template-columns: repeat(4, 1fr); }
.how-card, .control-card { padding: 22px; min-height: 180px; }
.how-n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #101828; color: #fff; font-weight: 700; margin-bottom: 14px; }
.how-card h3, .control-card h3 { font-size: 18px; margin-bottom: 8px; }
.how-card p, .control-card p { color: #475467; }
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 440px)); gap: 16px; justify-content: center; }
.price-card { width: auto; margin: 0; padding: 28px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 16px 40px rgba(16,24,40,.06); }
.price-card.save { box-shadow: 0 18px 48px rgba(16,24,40,.12); }
.price-top { display: flex; justify-content: space-between; align-items: center; }
.price-tag { font-size: 12px; font-weight: 700; background: #f2f4f7; border-radius: 999px; padding: 4px 8px; }
.price-amt { font-size: 56px; font-weight: 720; letter-spacing: -.04em; line-height: 1; }
.price-amt small { font-size: 16px; margin-left: 6px; color: #667085; }
.price-card ul { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.price-card li::before { content: "✓ "; color: #067647; font-weight: 700; }
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { padding: 4px 18px; }
.faq summary { cursor: pointer; font-weight: 680; padding: 14px 0; }
.faq p { color: #475467; padding-bottom: 14px; }
.land-foot { width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 28px 0 40px; border-top: 1px solid #e4e7ec; display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; }
.land-foot .legal { border: 0; padding: 8px 0 0; background: transparent; max-width: 640px; color: #667085; font-size: 13px; }

/* user onboarding + checklist */
.onboard { max-width: 640px; margin: 12px auto; display: flex; flex-direction: column; gap: 18px; }
.onboard-card { animation: panel-in 1.05s cubic-bezier(.16,1,.3,1); }
.onboard-card h1 { animation: hero-in 1.05s cubic-bezier(.16,1,.3,1); }
.onboard-preview .rowline { animation: panel-in .9s cubic-bezier(.16,1,.3,1) both; }
.onboard-preview .rowline:nth-child(1) { animation-delay: .12s; }
.onboard-preview .rowline:nth-child(2) { animation-delay: .24s; }
.onboard-preview .rowline:nth-child(3) { animation-delay: .36s; }
.crawl .land-hero { grid-template-columns: minmax(0, 720px); }
.dash-top { display: flex; flex-direction: column; gap: 14px; }
.pair-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pair-card { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 20px 22px; text-decoration: none; color: inherit; min-height: 148px; animation: panel-in 1.05s cubic-bezier(.16,1,.3,1) both; }
.pair-card:nth-child(2) { animation-delay: .1s; }
.pair-card:hover { transform: translateY(-2px); }
.pair-card h2 { margin: 0; font-size: 26px; letter-spacing: -.03em; }
.pair-card p { margin: 0; color: var(--text-2); }
.pair-card b { margin-top: auto; font-size: 15px; }
.pair-card.paper { box-shadow: inset 3px 0 0 var(--accent); }
.fact-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fact-row > div { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; animation: panel-in .9s cubic-bezier(.16,1,.3,1) both; }
.fact-row > div:nth-child(2) { animation-delay: .08s; }
.fact-row > div:nth-child(3) { animation-delay: .16s; }
.fact-row span { display: block; color: var(--muted); font-size: 12px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; }
.fact-row b { display: block; margin-top: 4px; font-size: 18px; }
.book-filters { display: grid; grid-template-columns: 1.2fr .9fr .7fr .7fr; gap: 12px; margin-bottom: 12px; }
.book-tabs { margin: 2px 0 8px; }
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 12px; }
.dash-panel { animation: panel-in .9s cubic-bezier(.16,1,.3,1); }
@media (max-width: 800px) {
  .pair-cards, .fact-row, .book-filters { grid-template-columns: 1fr; }
  .book-table thead { display: none; }
  .book-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .book-table td { display: flex; flex-direction: column; gap: 2px; white-space: normal; }
  .book-table td::before { content: attr(data-h); color: var(--muted); font-size: 11px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; }
}
.gs-intro { animation: panel-in 1.05s cubic-bezier(.16,1,.3,1); }
.gs-intro h1 { font-size: 32px; letter-spacing: -.03em; margin: 0 0 6px; }
.gs-flow { display: flex; align-items: center; gap: 8px; margin: 8px 0; flex-wrap: wrap; }
.gs-flow .chip { animation: chip-in .85s cubic-bezier(.16,1,.3,1) both; }
.gs-flow .chip:nth-child(1) { animation-delay: .12s; }
.gs-flow .chip:nth-child(3) { animation-delay: .36s; }
.gs-flow .chip:nth-child(5) { animation-delay: .6s; }
.gs-flow .arrow:nth-child(2) { animation: chip-in .7s cubic-bezier(.16,1,.3,1) .24s both; }
.gs-flow .arrow:nth-child(4) { animation: chip-in .7s cubic-bezier(.16,1,.3,1) .48s both; }
.onboard-card h1 { font-size: 36px; letter-spacing: -.03em; margin: 8px 0 10px; }
.onboard-list { margin: 8px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; color: var(--text-2); }
.onboard-preview { margin-top: 18px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.onboard-preview .rowline { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.onboard-preview b { display: block; }
.onboard-preview span { color: var(--muted); font-size: 13px; }
.onboard-top { display: flex; justify-content: space-between; align-items: center; }
.dots { display: flex; gap: 6px; }
.dots i { width: 8px; height: 8px; border-radius: 99px; background: var(--border-strong); display: block; }
.dots i.on { width: 22px; background: var(--text); }
.dots i.done { background: var(--good); }
.status-hero { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 22px; }
.status-hero h1 { font-size: 32px; letter-spacing: -.03em; }
.switch.lg { width: 64px; height: 36px; }
.switch.lg::after { width: 28px; height: 28px; top: 4px; left: 4px; }
.switch.lg.on::after { transform: translateX(28px); }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.check-item { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; }
.check-item.later { opacity: .72; }
.check-item.now { border-color: var(--text); }
.check-mark { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); font-weight: 700; }
.check-item.done .check-mark { background: var(--good-soft); color: var(--good); animation: pop .35s ease; }
.check-item p { color: var(--muted); margin: 2px 0 0; }
.rise { animation: rise .4s ease; }
.d2 { animation-delay: .08s; }
@keyframes rise { from { transform: translateY(28px); } to { transform: none; } }
@keyframes shake { 20% { transform: translateX(-3px); } 40% { transform: translateX(3px); } 60% { transform: translateX(-2px); } 80% { transform: translateX(2px); } }
@media (max-width: 900px) {
  .land-links { display: none; }
  .land-hero, .result-grid, .how-grid, .control-grid { grid-template-columns: 1fr; }
  .land-hero { padding-top: 36px; }
  .land-foot { flex-direction: column; align-items: flex-start; }
  .status-hero { align-items: flex-start; }
  .check-item { grid-template-columns: 36px 1fr; }
  .check-item .btn { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .device, .parallax { transform: none !important; }
}

.risk-notice { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; background: #fff; border: 1px solid #e4e7ec; border-left: 4px solid #b54708; border-radius: 16px; padding: 20px 22px; }
.risk-notice b { font-size: 16px; letter-spacing: -.01em; }
.risk-notice p { margin: 0; color: #344054; font-size: 15px; line-height: 1.55; }
[data-theme="dark"] .risk-notice { background: var(--surface); border-color: var(--border); }
[data-theme="dark"] .risk-notice p { color: var(--text-2); }
.auth-card { width: min(480px, 100%); }
.track-panel { display: flex; flex-direction: column; gap: 14px; }
.track-kpis { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 12px; }
.track-kpis .k, .device-kpis span { color: #667085; font-size: 12px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; }
.kpi-num { font-size: 40px; font-weight: 720; letter-spacing: -.04em; line-height: 1.05; margin-top: 4px; font-variant-numeric: tabular-nums; min-width: 7.2ch; }
.wl { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: #f2f4f7; }
.wl-empty { background: #e4e7ec; }
.wl-win { background: #067647; display: block; height: 100%; }
.wl-loss { background: #b42318; display: block; flex: 1; height: 100%; }
.track-chart, .chart-empty { width: 100%; }
.chart-empty { min-height: 120px; display: flex; flex-direction: column; justify-content: center; gap: 6px; border: 1px dashed #d5dae1; border-radius: 14px; padding: 16px; }
.chart-dash { font-size: 36px; font-weight: 720; line-height: 1; }
.chart-empty p, .track-panel .muted { color: #667085; margin: 0; }
.chart-line { fill: none; stroke: #175cd3; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.chart-line.draw { animation: draw 2.6s cubic-bezier(.16,1,.3,1) forwards; }
.chart-dot { fill: #175cd3; opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.4); }
.chart-dot.show { opacity: 1; transform: none; }
.chart-line.draw + .chart-dot { animation: dot-in .4s cubic-bezier(.16,1,.3,1) 2.35s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes dot-in { to { opacity: 1; transform: scale(1); } }
.wl-win { transform-origin: left center; animation: bar-in 1.05s cubic-bezier(.16,1,.3,1) both; }
@keyframes bar-in { from { transform: scaleX(0); } to { transform: none; } }
.result-layout { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: stretch; }
.result-layout .result-figure { padding: 28px; }
.device { background: #fff; border: 1px solid #e4e7ec; border-radius: 28px; box-shadow: 0 30px 70px rgba(16,24,40,.14); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.device .panel { animation: panel-in 1.05s cubic-bezier(.16,1,.3,1) both; }
.device .panel:nth-child(1) { animation-delay: .34s; }
.device .panel:nth-child(2) { animation-delay: .46s; }
.device .panel:nth-child(3) { animation-delay: .58s; }
.device .panel:nth-child(4) { animation-delay: .7s; }
@keyframes route-in { from { transform: translate3d(0, 18px, 0); } to { transform: none; } }
@keyframes panel-in { from { transform: translate3d(0, 72px, 0); } to { transform: none; } }
@keyframes hero-in { from { transform: translate3d(0, 56px, 0); } to { transform: none; } }
@keyframes mark-in { from { transform: scale(.7); } to { transform: none; } }
@keyframes chip-in { from { transform: translate3d(-16px, 0, 0); } to { transform: none; } }
.device-top, .device-chart-h, .device-kpis { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.device-top small { display: block; color: #667085; font-size: 11px; }
.device-top .logo-mark { width: 40px; }
.live-pip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #067647; background: #e7f6ee; border-radius: 99px; padding: 4px 8px; }
.live-pip i { width: 7px; height: 7px; border-radius: 50%; background: #067647; display: block; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.65); opacity: .55; } }
.device-chart { background: #f7f8fa; border-radius: 16px; padding: 12px; }
.device-chart-h strong { font-size: 20px; }
.device-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.device-kpis div { background: #f7f8fa; border-radius: 12px; padding: 10px; }
.device-kpis b { display: block; font-size: 18px; margin-top: 2px; }
.device-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.device-steps li { padding: 8px 10px; border-radius: 10px; background: #f7f8fa; color: #667085; }
.device-steps .now { background: #101828; color: #fff; font-weight: 650; transform: translate3d(14px, 0, 0); transition: transform .2s cubic-bezier(.16,1,.3,1), background .2s ease, color .2s ease; }
.does-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.does-card, .how-card .mini { background: #fff; }
.does-card { border: 1px solid #e4e7ec; border-radius: 18px; padding: 22px; }
.does-n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #101828; color: #fff; font-weight: 700; margin-bottom: 12px; }
.does-card h3 { margin: 8px 0; }
.does-card p, .how-card p { color: #475467; }
.does-vis { display: flex; align-items: center; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.does-vis .bar { height: auto; overflow: visible; display: flex; align-items: center; justify-content: center; line-height: 1.3; padding: 8px 14px; white-space: nowrap; }
.month-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.month-col { background: #f7f8fa; border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.month-name { color: #667085; font-size: 13px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.month-roi { font-size: 32px; font-weight: 720; letter-spacing: -.04em; font-variant-numeric: tabular-nums; min-height: 1.1em; }
.month-wl { color: #475467; font-size: 13px; }
.mtrack { height: 88px; margin-top: 8px; border-radius: 12px; background: #fff; display: flex; align-items: flex-end; overflow: hidden; }
.mfill { display: block; width: 100%; height: 100%; background: #175cd3; transform-origin: bottom center; border-radius: 8px 8px 0 0; }
.reveal.in .mfill { animation: grow-up 1.05s cubic-bezier(.16,1,.3,1) both; }
@keyframes grow-up { from { transform: scaleY(0); } }
.month-line { margin-top: 16px; background: #fff; border: 1px solid #e4e7ec; border-radius: 16px; padding: 16px 12px 8px; min-height: 160px; }
.calc-card { margin-top: 22px; background: #fff; border: 1px solid #e4e7ec; border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 16px 40px rgba(16,24,40,.04); }
.calc-card h3 { margin: 0; font-size: 28px; letter-spacing: -.03em; line-height: 1.15; }
.calc { display: grid; grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); gap: 36px; align-items: start; }
.calc-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.calc-lead { margin: 0; color: #475467; font-size: 15px; line-height: 1.5; }
.calc-side .input { height: 52px; border-radius: 12px; font-size: 18px; background: #fff; }
.calc-bars { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.gain-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "meta amt" "bar amt"; column-gap: 18px; row-gap: 8px; align-items: center; min-width: 0; }
.gain-meta { grid-area: meta; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; min-width: 0; }
.gain-label { font-weight: 700; color: #101828; }
.gain-pct { color: #175cd3; font-weight: 700; font-variant-numeric: tabular-nums; }
.gain-sub { flex-basis: 100%; color: #667085; font-size: 13px; font-weight: 600; }
.gain-amt { grid-area: amt; font-size: 28px; font-weight: 720; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gain-track { grid-area: bar; height: 12px; background: #eef2f6; border-radius: 99px; overflow: hidden; min-width: 0; }
.gain-fill { display: block; height: 100%; width: 100%; background: #175cd3; border-radius: 99px; transform-origin: left center; transform: scaleX(var(--gain, 0)); }
.gain-fill.grow { animation: gain-in .9s cubic-bezier(.16,1,.3,1) both; }
@keyframes gain-in { from { transform: scaleX(0); } to { transform: scaleX(var(--gain, 0)); } }
.gain-row.past30 { margin-top: 6px; padding-top: 14px; border-top: 1px solid #eef0f3; }
.gain-row.past30 .gain-label, .gain-row.past30 .gain-pct, .gain-row.past30 .gain-amt { color: #667085; font-size: 15px; font-weight: 650; }
.gain-row.past30 .gain-amt { font-size: 18px; }
.gain-row.past30 .gain-fill { background: #98a2b3; height: 8px; }
.gain-row.past30 .gain-track { height: 8px; }
.calc-card .legal, .calc-card > .muted { margin: 0; max-width: none; width: 100%; white-space: normal; overflow: visible; overflow-wrap: break-word; }
.calc-card .legal { padding: 0; border: 0; border-radius: 0; background: transparent; color: #475467; font-size: 14px; line-height: 1.55; }
.chip, .bar { border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 700; background: #f2f4f7; }
.chip.in { background: #e7f6ee; color: #067647; }
.chip.out { background: #f2f4f7; }
.arrow { width: 18px; height: 2px; background: #101828; position: relative; }
.arrow::after { content: ""; position: absolute; right: -1px; top: -3px; border: 4px solid transparent; border-left-color: #101828; }
.bars { flex-direction: column; align-items: stretch; }
.bar.tp { background: #e7f6ee; color: #067647; }
.bar.sl { background: #fdecea; color: #b42318; }
.mini { border: 1px solid #e4e7ec; border-radius: 14px; padding: 12px; margin: 12px 0; display: flex; flex-direction: column; gap: 8px; }
.mini-field, .mini-line { background: #f7f8fa; border-radius: 8px; padding: 8px 10px; color: #667085; font-size: 12px; }
.mini-btn { background: #101828; color: #fff; border-radius: 999px; text-align: center; padding: 8px; font-weight: 650; font-size: 13px; }
.mini-amt { font-size: 28px; font-weight: 720; letter-spacing: -.03em; }
.mini-switch { display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.sw { width: 36px; height: 22px; border-radius: 99px; background: #101828; display: block; position: relative; }
.sw::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: #fff; top: 3px; right: 3px; }
.land-nav .logo-mark { transform-origin: left center; animation: mark-in 1s cubic-bezier(.16,1,.3,1) both; }
.landing .btn { transition: transform .16s cubic-bezier(.16,1,.3,1); }
.landing .btn:hover { transform: translateY(-2px); }
.landing .btn:active { transform: translateY(0) scale(.97); }
.landing .btn:focus-visible { outline: 2px solid #175cd3; outline-offset: 3px; }
.reveal { transform: translate3d(0, 72px, 0); }
.reveal.in { transform: none; transition: transform 1.05s cubic-bezier(.16,1,.3,1); }
.reveal.in .does-card, .reveal.in .how-card, .reveal.in .control-card, .reveal.in .price-card { animation: panel-in 1s cubic-bezier(.16,1,.3,1) both; }
.reveal.in .does-card:nth-child(2), .reveal.in .how-card:nth-child(2), .reveal.in .control-card:nth-child(2), .reveal.in .price-card:nth-child(2) { animation-delay: .1s; }
.reveal.in .does-card:nth-child(3), .reveal.in .how-card:nth-child(3), .reveal.in .control-card:nth-child(3) { animation-delay: .2s; }
.reveal.in .how-card:nth-child(4), .reveal.in .control-card:nth-child(4) { animation-delay: .3s; }
.reveal.in .does-vis.seq .chip, .reveal.in .does-vis.seq .arrow { animation: chip-in .55s cubic-bezier(.16,1,.3,1) both; }
.reveal.in .does-vis.seq > :nth-child(1) { animation-delay: .55s; }
.reveal.in .does-vis.seq > :nth-child(2) { animation-delay: .68s; }
.reveal.in .does-vis.seq > :nth-child(3) { animation-delay: .82s; }
.reveal.in .does-vis.seq > :nth-child(4) { animation-delay: .96s; }
.reveal.in .does-vis.seq > :nth-child(5) { animation-delay: 1.1s; }
.hero-copy > * { animation: hero-in 1.05s cubic-bezier(.16,1,.3,1) both; }
.hero-copy > *:nth-child(1) { animation-delay: .08s; }
.hero-copy > *:nth-child(2) { animation-delay: .2s; }
.hero-copy > *:nth-child(3) { animation-delay: .36s; }
.hero-copy > *:nth-child(4) { animation-delay: .52s; }
.auth-legal { width: min(480px, 100%); margin: 18px auto 0; color: #667085; font-size: 13px; line-height: 1.5; }
@media (max-width: 900px) {
  .result-layout, .does-grid, .track-kpis, .price-grid, .venue-row, .month-cols { grid-template-columns: 1fr; }
  .calc { grid-template-columns: 1fr; gap: 22px; }
  .calc-card { padding: 20px; }
  .calc-card h3 { font-size: 24px; }
  .gain-row { grid-template-columns: 1fr; grid-template-areas: "meta" "bar" "amt"; }
  .gain-amt { justify-self: start; font-size: 22px; }
  .brand .logo-mark { width: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .device, .parallax, .hero-copy > * { transform: none !important; animation: none !important; }
}

/* Hero H1 word-expand. Motion is in hero-expand.js. */
.land-hero h1.hx { max-width: 12ch; }
.hx-w { display: inline-block; }
.hx-i { display: inline-block; transform-origin: 0 82%; will-change: transform, opacity; }
.hx-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hero-copy > h1.hx { animation: none; }
.hero-copy > p.lede { animation-delay: .72s; }
.hero-copy > .row { animation-delay: .88s; }
.foot-links { display: flex; gap: 14px; margin-top: 8px; font-size: 13px; }
.foot-links a { color: #667085; }
@media (prefers-reduced-motion: reduce) { .hx-i { will-change: auto; } }

/* Logged-in portal. The public landing keeps the T mark. */
:root { --brand: #1d39d8; --shadow-lg: 0 24px 48px -12px rgba(16,24,40,.25); }
.lockup-wrap { display: flex; align-items: center; }
.lockup { height: 30px; width: auto; display: block; }
.lockup-dark { display: none; }
[data-theme="dark"] .lockup-light { display: none; }
[data-theme="dark"] .lockup-dark { display: block; }
.brand-lockup { padding: 4px 8px 18px; }
.topbar .lockup-wrap.m-lockup { display: none; }
.nav-invest { display: flex; flex-direction: column; gap: 1px; margin-top: 8px; }
.nav-mode { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 0 10px 2px; line-height: 1.2; }
.nav-mode.demo { color: var(--info); } .nav-mode.live { color: var(--good); } .nav-mode.setup { color: var(--warn); } .nav-mode.off { color: var(--muted); }
.nav .tag { margin-left: auto; font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 99px; }
.tag.paper { background: var(--info-soft); color: var(--info); } .tag.live { background: var(--good-soft); color: var(--good); }
.tag.warn { background: var(--warn-soft); color: var(--warn); } .tag.off { background: var(--surface-3); color: var(--muted); }
.foot-brand { font-size: 11px; color: var(--muted); padding: 8px 10px 0; }
.mode-wrap { position: relative; display: flex; align-items: center; gap: 10px; }
.mode-label { font-size: 12px; color: var(--muted); font-weight: 550; white-space: nowrap; }
.mode-label b { color: var(--text); }
.mswitch { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--surface-3); border: 1px solid var(--border); gap: 2px; }
.mswitch button { border: 0; background: transparent; border-radius: 9px; padding: 7px 14px; font-weight: 600; font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; cursor: pointer; }
.mswitch button .dot { width: 8px; height: 8px; border-radius: 99px; background: var(--border-strong); }
.mswitch button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(16,24,40,.12), 0 0 0 1px var(--border); }
.mswitch button.on.paper .dot { background: #2e6be6; box-shadow: 0 0 0 3px rgba(46,107,230,.18); }
.mswitch button.on.live .dot { background: #12b76a; box-shadow: 0 0 0 3px rgba(18,183,106,.18); }
.mswitch button.on.setup .dot { background: #f79009; box-shadow: 0 0 0 3px rgba(247,144,9,.2); }
.mswitch.hl { outline: 3px solid rgba(46,107,230,.35); outline-offset: 3px; }
.strip { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px 0 28px; font-size: 12.5px; font-weight: 550; border-bottom: 1px solid var(--border); flex-wrap: nowrap; overflow: hidden; }
.strip .ic { width: 8px; height: 8px; border-radius: 99px; flex: none; }
.strip-msg { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.strip-x { margin-left: 4px; width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: inherit; font-size: 16px; cursor: pointer; flex: none; }
.strip-x:hover { background: color-mix(in srgb, currentColor 12%, transparent); }
.strip-x:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.strip.off { background: var(--surface-2); color: var(--text-2); } .strip.off .ic { background: var(--border-strong); }
.strip.paper { background: var(--info-soft); color: var(--info); } .strip.paper .ic { background: #2e6be6; }
.strip.setup { background: var(--warn-soft); color: var(--warn); } .strip.setup .ic { background: #f79009; }
.strip.live { background: var(--good-soft); color: var(--good); } .strip.live .ic { background: #12b76a; }
.strip-link { margin-left: auto; background: none; border: 0; color: inherit; font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; white-space: nowrap; }
.status-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 99px; white-space: nowrap; margin-left: auto; }
.status-chip.paper { background: var(--info-soft); color: var(--info); } .status-chip.live { background: var(--good-soft); color: var(--good); }
.status-chip.warn { background: var(--warn-soft); color: var(--warn); } .status-chip.off { background: var(--surface-3); color: var(--muted); }
.status-chip.ex { background: #fff1c2; color: #7a4b00; letter-spacing: .04em; margin-left: 0; }
.page-head h1, .inv-head h1 { font-size: 28px; letter-spacing: -.03em; font-weight: 700; line-height: 1.15; }
.page-head p, .inv-lede { color: var(--muted); margin-top: 6px; max-width: 680px; }
.page-kicker { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; line-height: 1.2; }
.page-kicker.demo { color: var(--info); } .page-kicker.live { color: var(--good); } .page-kicker.setup { color: var(--warn); } .page-kicker.off { color: var(--muted); }
.inv-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.page-tabs button { white-space: nowrap; flex: none; }
#paper-gear[hidden] { display: none !important; }
.tv-host { width: 100%; min-height: 280px; }
.page-tabs button { border: 0; background: none; padding: 11px 2px; margin-right: 18px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: 13.5px; cursor: pointer; }
.page-tabs button.on { color: var(--text); border-color: var(--text); }
.gm { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.choice { border: 1px solid var(--border); border-radius: 16px; padding: 22px; background: var(--surface); display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); }
.choice-badge { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.choice.paper .choice-badge, .mh .choice-badge { background: var(--info-soft); color: #2e6be6; }
.choice.live .choice-badge { background: var(--good-soft); color: #12b76a; }
.choice h3 { font-size: 17px; }
.choice ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; color: var(--text-2); font-size: 13.5px; }
.choice li { display: flex; gap: 8px; align-items: flex-start; }
.choice li::before { content: ""; width: 16px; height: 16px; flex: none; margin-top: 2px; border-radius: 99px; background: var(--good-soft); box-shadow: inset 0 0 0 4px var(--good); }
.choice .foot { margin-top: auto; display: flex; gap: 10px; align-items: center; padding-top: 6px; }
.btn.paperbtn { background: #2e6be6; border-color: #2e6be6; color: #fff; }
.btn.block { width: 100%; } .btn.lg { height: 44px; }
.mode-hero { border-radius: 18px; padding: 24px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; border: 1px solid var(--border); background: var(--surface); }
.mode-hero.paper { background: linear-gradient(135deg, #f3f7ff 0%, var(--surface) 60%); border-color: #d6e4ff; }
.mode-hero.live { background: linear-gradient(135deg, #effaf4 0%, var(--surface) 60%); border-color: #c7ebd6; }
.mode-hero.setup { background: linear-gradient(135deg, #fff8ee 0%, var(--surface) 60%); border-color: #fde3bf; }
[data-theme="dark"] .mode-hero.paper, [data-theme="dark"] .mode-hero.live, [data-theme="dark"] .mode-hero.setup { background: var(--surface); border-color: var(--border); }
.mode-hero h2 { font-size: 22px; letter-spacing: -.02em; margin-top: 6px; }
.mode-hero p { color: var(--text-2); margin-top: 4px; max-width: 640px; }
.mode-hero .stats { display: flex; gap: 28px; margin-top: 16px; flex-wrap: wrap; }
.mode-hero .stats b { display: block; font-size: 18px; } .mode-hero .stats span { font-size: 12px; color: var(--muted); }
.lmr-empty { border: 1px dashed var(--border-strong); border-radius: 12px; min-height: 150px; display: grid; place-items: center; text-align: center; color: var(--muted); font-size: 13px; padding: 16px; background: repeating-linear-gradient(0deg, transparent 0 29px, var(--surface-3) 29px 30px); }
.lmr-empty b { color: var(--text-2); display: block; font-size: 13.5px; }
.setup-steps { display: flex; flex-direction: column; }
.setup-step { display: grid; grid-template-columns: 32px 1fr auto; gap: 14px; align-items: center; padding: 16px 20px; border-top: 1px solid var(--border); }
.setup-step:first-child { border-top: 0; }
.setup-step .n { width: 30px; height: 30px; border-radius: 99px; border: 1.5px solid var(--border-strong); display: grid; place-items: center; font-weight: 700; font-size: 13px; color: var(--muted); }
.setup-step.done .n { background: var(--good); border-color: var(--good); color: #fff; }
.setup-step.cur .n { border-color: var(--text); color: var(--text); }
.setup-step h4 { font-size: 14px; } .setup-step p { color: var(--muted); font-size: 12.5px; }
.progress-wrap { margin-top: 14px; max-width: 360px; }
.row.between { justify-content: space-between; }
.progress { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress i { display: block; height: 100%; background: #f79009; }
.venues { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.venue { border: 1.5px solid var(--border); border-radius: 14px; padding: 14px 16px; background: var(--surface); display: flex; gap: 12px; align-items: center; text-align: left; color: inherit; }
.venue .lg { width: 36px; height: 36px; border-radius: 10px; background: var(--surface-3); display: grid; place-items: center; font-weight: 800; font-size: 12px; }
.venue b { display: block; font-size: 14px; } .venue span { font-size: 12px; color: var(--muted); }
.venue.on { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(29,57,216,.12); }
.venue.dis { opacity: .55; cursor: not-allowed; }
.venue .rd { margin-left: auto; width: 18px; height: 18px; border-radius: 99px; border: 1.5px solid var(--border-strong); }
.venue.on .rd { border: 5px solid var(--brand); }
.ack-box { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; background: var(--surface-2); }
.ack-box p { color: var(--text-2); font-size: 13px; margin-bottom: 10px; }
.ack-box label { display: flex; gap: 9px; align-items: center; font-weight: 650; cursor: pointer; }
.cb { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--border-strong); display: inline-grid; place-items: center; }
.cb.on { background: var(--accent); border-color: var(--accent); }
.cb.on::after { content: ""; width: 9px; height: 5px; border-left: 2px solid var(--accent-fg); border-bottom: 2px solid var(--accent-fg); transform: rotate(-45deg) translate(1px, -1px); }
.kv-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.kv-row span { color: var(--muted); }
.inp-suffix { position: relative; } .inp-suffix span { position: absolute; right: 12px; top: 10px; color: var(--muted); font-weight: 600; }
.inp-suffix .input { padding-right: 58px; }
.sizing-note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; color: var(--text-2); }
.plan-opt { border: 1.5px solid var(--border); border-radius: 14px; padding: 16px 18px; display: flex; align-items: center; gap: 14px; background: var(--surface); text-align: left; width: 100%; cursor: pointer; color: inherit; }
.plan-opt.on { border-color: var(--text); box-shadow: 0 0 0 3px var(--accent-soft); }
.plan-opt .rd { width: 18px; height: 18px; border-radius: 99px; border: 1.5px solid var(--border-strong); flex: none; }
.plan-opt.on .rd { border: 5px solid var(--text); }
.plan-opt .p { margin-left: auto; text-align: right; } .plan-opt .p b { font-size: 20px; }
.seg .save { font-size: 10.5px; background: var(--good-soft); color: var(--good); padding: 1px 6px; border-radius: 99px; }
.page-foot { color: var(--muted); font-size: 12px; padding: 8px 0 4px; border-top: 1px solid var(--border); }
.help.center { text-align: center; }
.promo-row { flex-wrap: nowrap; align-items: center; }
.promo-row .input { flex: 1; width: auto; min-width: 0; }
.kpi .v { font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin-top: 4px; } .kpi .s { color: var(--muted); font-size: 12.5px; }
.book-filters { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.tbl-wrap { overflow-x: auto; }
.side-l { color: var(--good); font-weight: 600; } .side-s { color: var(--bad); font-weight: 600; }
th.r, td.r { text-align: right; }
.ex-banner { display: flex; gap: 8px; align-items: center; padding: 9px 12px; background: #fffbeb; color: #7a4b00; font-size: 12.5px; font-weight: 600; }
[data-theme="dark"] .ex-banner { background: rgba(250,204,21,.1); color: #fde68a; }
.size-tbl { width: 100%; border-collapse: collapse; } .size-tbl td, .size-tbl th { padding: 8px 12px; }
.example-box { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.ls-banner { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.ls-banner h3 { font-size: 16px; margin-top: 2px; } .ls-banner p { color: var(--muted); font-size: 13px; margin-top: 4px; max-width: 560px; }
.connect-steps .row { align-items: flex-start; }
.empty .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--surface-3); display: grid; place-items: center; margin: 0 auto 6px; }
.portal-overlay { position: fixed; inset: 0; background: var(--overlay); z-index: 80; display: grid; place-items: center; padding: 24px; }
.portal-modal { background: var(--surface); border-radius: 20px; width: min(480px, 100%); max-height: 90vh; overflow: auto; border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.portal-modal.wide { width: min(620px, 100%); }
.portal-modal .mh { padding: 22px 24px 0; display: flex; align-items: flex-start; gap: 12px; }
.portal-modal .mh h3 { font-size: 18px; } .portal-modal .mh p { color: var(--muted); margin-top: 3px; }
.portal-modal .mb { padding: 18px 24px; } .portal-modal .mf { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; background: var(--surface-2); }
.portal-modal .x { margin-left: auto; border: 0; background: var(--surface-3); width: 30px; height: 30px; border-radius: 99px; cursor: pointer; color: var(--muted); }
.coach { position: absolute; z-index: 20; top: calc(100% + 14px); right: 0; background: #2e6be6; color: #fff; border-radius: 14px; padding: 16px 18px; width: 310px; box-shadow: 0 18px 40px rgba(46,107,230,.35); font-size: 13.5px; }
.coach.flow { position: static; width: 100%; max-width: none; z-index: auto; margin: 0; }
.coach.flow::before { display: none; }
button.avatar { border: 1px solid var(--border); padding: 0; cursor: pointer; font: inherit; }
.avatar-slot { position: relative; flex: none; }
.user-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 5; width: min(260px, calc(100vw - 24px)); background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 8px; }
.user-menu[hidden] { display: none; }
.user-menu .who { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px 10px; border-bottom: 1px solid var(--border); font-size: 13px; }
.user-menu .who span { color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.user-menu .btn { width: 100%; justify-content: flex-start; margin-top: 6px; }
.coach h4 { font-size: 15px; margin-bottom: 4px; color: #fff; }
.coach::before { content: ""; position: absolute; top: -6px; right: 78px; width: 14px; height: 14px; background: #2e6be6; transform: rotate(45deg); border-radius: 2px; }
.coach .row { margin-top: 12px; justify-content: flex-end; }
.coach .btn { background: #fff; color: #123; border-color: #fff; height: 32px; }
.coach .btn.ghost { background: transparent; color: #fff; }
.bn-mode { font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1; font-style: normal; }
.bn-mode.demo { color: var(--info); } .bn-mode.live { color: var(--good); } .bn-mode.setup { color: var(--warn); } .bn-mode.off { color: var(--muted); }
.seeking { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 24px 28px; min-height: 268px; }
.seeking-stage { position: relative; width: min(100%, 440px); height: 124px; margin: 4px 0 8px; overflow: hidden; }
.seeking-chart { width: 100%; height: 124px; display: block; }
.seeking-chart .grid { stroke: var(--border-strong); stroke-width: 1; opacity: .55; }
.seeking-chart .path { fill: none; stroke: var(--info); stroke-width: 1.6; stroke-linecap: round; opacity: .4; }
.seeking-chart .path-soft { fill: none; stroke: var(--info); stroke-width: 1; opacity: .12; }
.seeking-scan { position: absolute; top: 6px; bottom: 6px; left: 0; width: 24px; opacity: 0; pointer-events: none; }
.seeking-scan i { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: linear-gradient(to bottom, transparent, var(--info), transparent); }
.seeking-scan b { position: absolute; left: 50%; top: 38%; width: 8px; height: 8px; border-radius: 99px; background: var(--info); transform: translate(-50%, -50%); }
.seeking-rings { position: absolute; left: 61.9%; top: 53.5%; width: 56px; height: 56px; transform: translate(-50%, -50%); pointer-events: none; }
.seeking-rings .ring { position: absolute; inset: 0; border-radius: 99px; border: 1px solid var(--info); opacity: 0; }
.seeking-core { position: absolute; left: 61.9%; top: 53.5%; width: 8px; height: 8px; border-radius: 99px; background: var(--info); transform: translate(-50%, -50%); opacity: 0; }
.seeking-status { height: 18px; position: relative; margin-bottom: 8px; }
.seeking-status span { position: absolute; left: 0; right: 0; top: 0; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 650; color: var(--info); opacity: 0; }
.seeking h4 { font-size: 16.5px; letter-spacing: -.02em; }
.seeking-sub { color: var(--muted); font-size: 13px; margin: 8px auto 0; max-width: 440px; }
.seeking.is-reduced .seeking-status { visibility: hidden; }
.seeking.is-reduced .seeking-core { opacity: .85; }
.seeking.is-reduced .path { opacity: .35; }
.pos-list { display: flex; flex-direction: column; gap: 10px; }
.pos-card { width: 100%; text-align: left; border: 1px solid var(--border); background: var(--surface); border-radius: 14px; padding: 14px; cursor: pointer; color: inherit; }
.pos-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 12px; margin-top: 10px; }
.pos-grid span { display: block; color: var(--muted); font-size: 11px; }
.pos-grid b { font-size: 13.5px; }
.eq-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding: 14px 16px; }
.eq-row span { display: block; color: var(--muted); font-size: 11px; }
.eq-hero, .stat-tile, .hold-card, .empty-line { border-radius: 16px; box-shadow: 0 8px 24px rgba(16, 24, 40, .06); }
[data-theme="dark"] .eq-hero, [data-theme="dark"] .stat-tile, [data-theme="dark"] .hold-card, [data-theme="dark"] .empty-line { box-shadow: 0 10px 28px rgba(0, 0, 0, .35); }
.eq-hero { background: var(--surface); border: 1px solid var(--border); padding: 22px 22px 18px; display: flex; flex-direction: column; gap: 8px; }
.eq-kicker { color: var(--muted); font-size: 13px; font-weight: 650; letter-spacing: .01em; }
.eq-total { font-size: 40px; letter-spacing: -.03em; line-height: 1.05; font-weight: 680; }
.eq-change { font-size: 14px; color: var(--text-2); }
.eq-note { color: var(--muted); font-size: 12px; margin-top: 4px; }
.stack-bar { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.stack-track { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: var(--surface-3); }
.stack-track i { display: block; height: 100%; }
.stack-track .used { background: var(--info); }
.stack-track .avail { background: var(--border-strong); }
.stack-track .upnl { background: var(--good); }
.stack-key { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.stack-key .lg { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 12.5px; }
.stack-key .lg i { width: 8px; height: 8px; border-radius: 99px; background: var(--border-strong); }
.stack-key .lg.used i { background: var(--info); }
.stack-key .lg.avail i { background: var(--border-strong); }
.stack-key .lg.upnl i { background: var(--good); }
.stack-key .lg em { font-style: normal; color: var(--muted); }
.stack-key .lg b { font-weight: 650; }
.stat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.stat-tile { background: var(--surface); border: 1px solid var(--border); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stat-tile span { color: var(--muted); font-size: 12px; }
.stat-tile b { font-size: 22px; letter-spacing: -.02em; line-height: 1.15; }
.stat-tile small { color: var(--muted); font-size: 12px; }
.hold-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.hold-card { width: 100%; text-align: left; border: 1px solid var(--border); background: var(--surface); padding: 14px; cursor: pointer; color: inherit; display: flex; flex-direction: column; gap: 12px; }
.hold-card:hover { border-color: var(--border-strong); }
.hold-top, .hold-mid, .hold-levels, .hold-liq { display: flex; align-items: center; gap: 10px; }
.hold-top { justify-content: space-between; }
.hold-id { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hold-id b { font-size: 15px; }
.hold-id span, .hold-levels span, .hold-liq span, .hold-mid .k { color: var(--muted); font-size: 11px; }
.coin { width: 36px; height: 36px; border-radius: 99px; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700; flex: none; letter-spacing: .02em; }
.side-pill { border-radius: 99px; padding: 4px 8px; font-size: 12px; font-weight: 700; background: var(--surface-3); }
.side-pill.long { background: var(--good-soft); color: var(--good); }
.side-pill.short { background: var(--bad-soft); color: var(--bad); }
.hold-mid { justify-content: space-between; align-items: center; }
.hold-mid .mark-px { display: block; font-size: 16px; white-space: nowrap; }
.hold-pnl { text-align: left; }
.hold-pnl b { display: block; font-size: 22px; letter-spacing: -.02em; white-space: nowrap; }
.hold-pnl span { color: inherit; font-size: 13px; }
.spark { display: block; flex: none; }
.hold-levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hold-levels b, .hold-liq b { display: block; font-size: 13px; white-space: nowrap; }
.hold-liq { justify-content: space-between; }
.band { display: flex; flex-direction: column; gap: 4px; }
.band-track { position: relative; height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--bad-soft), var(--surface-3) 50%, var(--good-soft)); }
.band-track i { position: absolute; top: 50%; width: 10px; height: 10px; border-radius: 99px; background: var(--text); transform: translate(-50%, -50%); box-shadow: 0 0 0 2px var(--surface); }
.band-key { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; letter-spacing: .04em; }
.empty-line { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); padding: 16px; color: var(--text-2); }
.empty-line p { margin: 0; }
.empty-line .ico { color: var(--muted); }
.skel { display: block; border-radius: 8px; background: linear-gradient(90deg, var(--surface-3) 0%, var(--surface) 50%, var(--surface-3) 100%); background-size: 200% 100%; animation: skel 1.1s ease-in-out infinite; }
.skel-k { width: 120px; height: 12px; }
.skel-hero { width: 180px; height: 36px; margin: 8px 0; }
.skel-bar { width: 100%; height: 10px; border-radius: 99px; }
.skel-tile { height: 84px; }
.skel-card { min-height: 168px; display: flex; flex-direction: column; gap: 12px; }
.skel-lg { width: 70%; height: 22px; }
.skel-md { width: 46%; height: 14px; }
.skel-chart { height: 280px; border-radius: 16px; }
@keyframes skel { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.book-error { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } }
.auth:has(.ack-form) { align-items: start; padding: 28px 16px 48px; }
.auth:has(.ack-form) .auth-card { width: min(560px, 100%); }
.ack-form .ack-lead { color: var(--text-2); font-size: 13.5px; line-height: 1.5; }
.ack-slot { min-height: 48px; }
.content.detail-open { padding-top: 12px; gap: 12px; }
.topbar .title.is-crumb { display: flex; align-items: center; gap: 2px; min-width: 0; font-size: 14px; font-weight: 650; }
.crumb-back, .crumb-link { border: 0; background: transparent; color: var(--text-2); font: inherit; font-weight: 650; cursor: pointer; border-radius: 8px; }
.crumb-back { width: 28px; height: 28px; display: grid; place-items: center; color: var(--text); flex: none; }
.crumb-link { padding: 4px 6px; }
.crumb-back:hover, .crumb-link:hover { background: var(--surface-3); color: var(--text); }
.crumb-back:focus-visible, .crumb-link:focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; }
.crumb-sep { color: var(--muted); padding: 0 2px; }
.crumb-here { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detail-page { display: flex; flex-direction: column; gap: 14px; }
.detail-stage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
.ticker { display: flex; align-items: center; gap: 14px; height: 68px; padding: 0 12px 0 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.ticker-id { display: flex; align-items: center; gap: 8px; flex: none; }
.ticker .coin { width: 28px; height: 28px; font-size: 10px; }
.ticker-name { display: flex; flex-direction: column; line-height: 1.15; }
.ticker-name b { font-size: 14px; letter-spacing: -.01em; }
.ticker-name span { font-size: 11px; color: var(--muted); }
.ticker-pill { font-size: 11px; font-weight: 700; border-radius: 99px; padding: 2px 7px; line-height: 1.3; }
.ticker-pill.long { background: rgba(14, 203, 129, .16); color: #0ecb81; }
.ticker-pill.short { background: rgba(246, 70, 93, .16); color: #f6465d; }
.ticker-pill.lev { background: var(--surface-3); color: var(--text); }
.ticker-pill.paper, .ticker-pill.live { background: var(--surface-3); color: var(--muted); }
.ticker-rule { width: 1px; align-self: stretch; margin: 12px 0; background: var(--border); flex: none; }
.ticker-px { flex: none; min-width: 108px; }
.ticker-px .px { display: inline-block; font-size: 22px; font-weight: 720; line-height: 1.05; font-variant-numeric: tabular-nums; border-radius: 6px; padding: 0 4px; margin-left: -4px; }
.ticker-px .sub { display: block; font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; }
.ticker .good, .ohlc-legend .good { color: #0ecb81 !important; }
.ticker .bad, .ohlc-legend .bad { color: #f6465d !important; }
.ticker-scroll { position: relative; flex: 1; min-width: 0; }
.ticker-scroll::before, .ticker-scroll::after { content: ""; position: absolute; top: 0; bottom: 0; width: 16px; z-index: 1; pointer-events: none; }
.ticker-scroll::before { left: 0; background: linear-gradient(90deg, var(--surface), transparent); }
.ticker-scroll::after { right: 0; background: linear-gradient(270deg, var(--surface), transparent); }
.ticker-stats { display: flex; align-items: center; gap: 0; overflow-x: auto; scrollbar-width: none; }
.ticker-stats::-webkit-scrollbar { display: none; }
.ticker-stat { flex: none; padding: 0 12px; border-left: 1px solid var(--border); }
.ticker-stat span { display: block; color: var(--muted); font-size: 10px; letter-spacing: .02em; white-space: nowrap; }
.ticker-stat b { display: block; font-size: 12.5px; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.detail-facts .pos-grid { margin-top: 0; }
.level-pins { position: absolute; inset: 0 0 0 auto; width: 0; z-index: 3; pointer-events: none; }
.level-pin { position: absolute; right: 2px; font-size: 10px; font-weight: 700; line-height: 1.3; background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px dashed currentColor; border-radius: 4px; padding: 1px 5px; white-space: nowrap; }
.detail-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
@media (min-width: 1280px) {
  .detail-stage { grid-template-columns: minmax(0, 1fr) 320px; align-items: stretch; }
  .detail-facts .pos-grid { grid-template-columns: 1fr 1fr; }
  .detail-side { min-height: 0; }
  .detail-facts { flex: none; }
  .detail-timeline { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
  .detail-timeline .card-body { flex: 1 1 auto; overflow: auto; min-height: 0; }
}
.chart-box { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 12px; overflow: hidden; box-shadow: 0 8px 24px rgba(16, 24, 40, .06); }
.chart-box.chart-full { position: fixed; inset: 12px; z-index: 40; overflow: auto; background: var(--bg); }
.chart-tools { display: flex; margin-bottom: 8px; }
.tf-row, .ind-row { display: flex; gap: 6px; overflow-x: auto; align-items: center; }
.ind-row { margin-top: 8px; }
.chip-btn { border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2); border-radius: 99px; padding: 4px 10px; font: inherit; font-size: 12px; font-weight: 650; cursor: pointer; white-space: nowrap; }
.chip-btn.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.ind-menu { position: relative; }
.ind-menu summary { list-style: none; }
.ind-menu summary::-webkit-details-marker { display: none; }
.ind-panel { position: absolute; z-index: 6; top: calc(100% + 6px); left: 0; min-width: 148px; display: grid; gap: 6px; padding: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
.ind-panel label { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.ohlc-legend, .ema-readout, .vol-readout { display: flex; flex-wrap: wrap; gap: 8px; font-variant-numeric: tabular-nums; font-size: 12px; color: var(--text-2); min-height: 16px; }
.ohlc-legend b { font-weight: 550; }
.ema-readout, .vol-readout { color: var(--muted); }
.tv-wrap { position: relative; }
.candle-count { position: absolute; top: 8px; right: 72px; z-index: 2; font-size: 11px; font-variant-numeric: tabular-nums; color: var(--text-2); background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--border); border-radius: 6px; padding: 2px 6px; }
.tv-host, .tv-rsi, .tv-macd { width: 100%; }
.hold-pnl.est b { font-size: 16px; }
.hold-pnl.est span, .est-pnl { display: block; font-size: 12.5px; }
[data-theme="dark"] .chart-box { box-shadow: none; }
.px-chart { width: 100%; height: auto; display: block; }
.chart-key { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 12px; margin-top: 8px; }
.ack-list { display: flex; flex-direction: column; gap: 10px; }
.ack-item { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.ack-item input { margin-top: 3px; }
.agree-line { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.agree-line input { margin-top: 3px; flex: none; }
.agree-line p { margin: 0; }
.agree-line a { color: var(--info); }
.sidebar .side-legal { padding: 0 4px; flex-wrap: wrap; }
.sidebar .side-legal a { color: var(--muted); }
.row.between { width: 100%; justify-content: space-between; }
@media (max-width: 900px) {
  .user-app .sidebar { display: none; }
  .user-app .btn.menu-btn { display: none; }
  .user-app .topbar .lockup-wrap.m-lockup { display: flex; }
  .user-app .mode-label.desk, .user-app .topbar .title { display: none; }
  .user-app .topbar .title.is-crumb { display: flex; }
  .user-app .topbar .title.is-crumb .crumb-link,
  .user-app .topbar .title.is-crumb .crumb-sep,
  .user-app .topbar .title.is-crumb .crumb-here { display: none; }
  .ticker { height: auto; flex-wrap: wrap; align-items: flex-start; padding: 10px 12px; gap: 8px; }
  .ticker-rule { display: none; }
  .ticker-px { min-width: 0; }
  .ticker-scroll { flex: 1 0 100%; }
  .detail-facts .pos-grid { grid-template-columns: 1fr 1fr; }
  .user-app .topbar .lockup { height: 22px; }
  .strip { padding: 8px 14px; } .strip-link { display: none; }
  .gm, .g2, .g3 { grid-template-columns: 1fr; }
  .mode-hero { grid-template-columns: 1fr; }
  .venues { grid-template-columns: 1fr; }
  .book-filters { grid-template-columns: 1fr; }
  .mode-wrap > .coach { display: none; }
  .coach.flow { display: block; }
  .pos-grid, .eq-row { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .hold-grid { grid-template-columns: 1fr; }
  .eq-total { font-size: 32px; }
  .user-app { overflow-x: hidden; }
  .tbl-wrap { max-width: 100%; }
  .page-tabs { margin: 0 -4px; }
}
@media (max-width: 400px) {
  .user-app .topbar { padding: 0 8px; gap: 6px; }
  .mswitch button { padding: 6px 8px; font-size: 12px; }
  .content { padding-left: 10px; padding-right: 10px; }
  .pos-grid, .eq-row { grid-template-columns: 1fr 1fr; }
  .portal-modal, .portal-overlay { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .seeking-scan { opacity: 0; }
  .seeking-status { visibility: hidden; }
  .seeking-core { opacity: .85; }
}
