/* 10XAI companion - mobile-first, dark by default, light via system or Telegram theme. */
:root {
  --bg: #070b14;
  --bg-glow: #12193a;
  --surface: #0f1524;
  --surface-2: #151d31;
  --surface-3: #1c2640;
  --border: #243052;
  --border-strong: #33416a;
  --text: #eef2fb;
  --text-2: #b4bfd8;
  --muted: #7f8bab;
  --brand: #7c5cff;
  --brand-2: #22d3ee;
  --call: #19c37d;
  --call-soft: rgba(25, 195, 125, 0.14);
  --put: #f0484f;
  --put-soft: rgba(240, 72, 79, 0.14);
  --amber: #f5b13d;
  --amber-soft: rgba(245, 177, 61, 0.12);
  --amber-ink: #f7c873;
  --green-soft: rgba(25, 195, 125, 0.12);
  --red-soft: rgba(240, 72, 79, 0.12);
  --accent: var(--brand);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px -24px rgba(0, 0, 0, 0.7);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f4f6fb; --bg-glow: #e4e8ff; --surface: #ffffff; --surface-2: #f6f8fd; --surface-3: #eef1f9;
    --border: #e1e6f2; --border-strong: #cbd3e6; --text: #0e1426; --text-2: #3b4664; --muted: #6b7694; --amber-ink: #8a5300; --call: #0f9d63; --put: #d42f37;
    --shadow: 0 18px 50px -28px rgba(20, 30, 70, 0.35); color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f4f6fb; --bg-glow: #e4e8ff; --surface: #ffffff; --surface-2: #f6f8fd; --surface-3: #eef1f9;
  --border: #e1e6f2; --border-strong: #cbd3e6; --text: #0e1426; --text-2: #3b4664; --muted: #6b7694; --amber-ink: #8a5300; --call: #0f9d63; --put: #d42f37;
  --shadow: 0 18px 50px -28px rgba(20, 30, 70, 0.35); color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: radial-gradient(1200px 600px at 50% -200px, var(--bg-glow), transparent 70%), var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
button:disabled { cursor: not-allowed; opacity: 0.5; }
a { color: var(--brand-2); }
.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon.lg { width: 22px; height: 22px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- layout ---------- */
.shell { min-height: 100vh; display: flex; flex-direction: column; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
.content { width: 100%; max-width: 1080px; margin: 0 auto; padding: 8px 16px 24px; flex: 1; }
.page { width: 100%; max-width: 520px; margin: 0 auto; padding: 24px 16px 32px; min-height: 100vh; display: flex; flex-direction: column; }
.grid { display: grid; gap: 16px; }
@media (min-width: 900px) {
  .grid.dash { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: start; }
  .shell { padding-bottom: 0; }
}

.topbar { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid var(--border); }
.topbar-inner { max-width: 1080px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 12px; }
.topbar .spacer { flex: 1; }
.wordmark { font-weight: 800; letter-spacing: -0.02em; font-size: 20px; display: inline-flex; align-items: center; gap: 8px; }
.wordmark .x { background: linear-gradient(135deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mark { width: 30px; height: 30px; border-radius: 10px; background: conic-gradient(from 210deg, var(--brand), var(--brand-2), var(--brand)); display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 13px; box-shadow: 0 6px 18px -6px var(--brand); }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); }
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); }
.desktop-tabs { display: none; gap: 4px; }
@media (min-width: 900px) { .desktop-tabs { display: flex; } }

.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(3, 1fr); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--border); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); }
.tabbar button, .desktop-tabs button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px; border-radius: 12px; color: var(--muted); font-size: 12px; font-weight: 600; }
.desktop-tabs button { flex-direction: row; gap: 8px; padding: 8px 14px; font-size: 14px; }
.tabbar button[aria-current="page"], .desktop-tabs button[aria-current="page"] { color: var(--text); background: var(--surface-3); }
@media (min-width: 900px) { .tabbar { display: none; } }

/* ---------- surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card.flat { box-shadow: none; }
.card h2, .section-title { margin: 0 0 12px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.mono { font-family: var(--mono); }
hr.sep { border: 0; border-top: 1px solid var(--border); margin: 14px 0; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; border: 1px solid transparent; white-space: nowrap; }
.badge.green { color: var(--call); background: var(--green-soft); border-color: color-mix(in srgb, var(--call) 30%, transparent); }
.badge.amber { color: var(--amber-ink); background: var(--amber-soft); border-color: color-mix(in srgb, var(--amber) 30%, transparent); }
.badge.red { color: var(--put); background: var(--red-soft); border-color: color-mix(in srgb, var(--put) 30%, transparent); }
.badge.neutral { color: var(--text-2); background: var(--surface-3); border-color: var(--border); }
.badge.demo { color: #fff; background: linear-gradient(135deg, #b45309, #f59e0b); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.dot.pulse { animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 60%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }

.monogram { width: 42px; height: 42px; flex: none; border-radius: 13px; display: grid; place-items: center; font-weight: 800; font-size: 14px; letter-spacing: 0.02em; color: #fff; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #000)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.monogram.sm { width: 32px; height: 32px; border-radius: 10px; font-size: 12px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 18px; border-radius: 14px; font-weight: 750; letter-spacing: 0.01em; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); transition: transform .08s ease, border-color .15s ease, background .15s ease; }
.btn:hover:not(:disabled) { border-color: var(--border-strong); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn.block { width: 100%; }
.btn.primary { background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 60%, var(--brand-2))); border-color: transparent; color: #fff; box-shadow: 0 12px 30px -14px var(--brand); }
.btn.launch { background: color-mix(in srgb, var(--accent) 16%, var(--surface-2)); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 8px 12px; font-size: 13px; border-radius: 10px; }
.btn.danger { color: var(--put); }
.link-btn { color: var(--brand-2); font-weight: 650; padding: 6px 0; }

/* ---------- welcome & onboarding ---------- */
.hero { flex: 1; display: flex; flex-direction: column; justify-content: center; text-align: center; gap: 10px; padding: 32px 0; }
.hero .mark { width: 76px; height: 76px; border-radius: 24px; font-size: 26px; margin: 0 auto 18px; animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-6px); } }
.hero .kicker { color: var(--text-2); font-size: 17px; margin: 0; }
.hero h1 { margin: 0; font-size: 52px; letter-spacing: -0.04em; line-height: 1; }
.hero .tag { margin: 6px 0 0; color: var(--text-2); font-size: 17px; }
.hero .cta-note { margin: 28px 0 14px; font-weight: 650; }
.fine { color: var(--muted); font-size: 12px; line-height: 1.5; text-align: center; margin-top: 18px; }

.progress { display: flex; gap: 6px; margin: 4px 0 22px; }
.progress span { flex: 1; height: 4px; border-radius: 4px; background: var(--surface-3); }
.progress span.on { background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.step-head { margin-bottom: 18px; }
.step-head .count { color: var(--muted); font-size: 13px; font-weight: 650; }
.step-head h1 { margin: 6px 0 4px; font-size: 26px; letter-spacing: -0.02em; }
.step-head p { margin: 0; color: var(--text-2); }
.step-body { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.step-foot { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; position: sticky; bottom: 0; padding: 12px 0 calc(8px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 30%); }
.step-foot .row { justify-content: space-between; }

.choice { width: 100%; text-align: left; display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); transition: border-color .15s ease, background .15s ease; }
.choice:hover:not(:disabled) { border-color: var(--border-strong); }
.choice[aria-pressed="true"], .choice[aria-checked="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--surface)); box-shadow: 0 0 0 1px var(--accent) inset; }
.choice .body { flex: 1; min-width: 0; }
.choice .title { font-weight: 750; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.choice .desc { color: var(--text-2); font-size: 13.5px; margin-top: 2px; }
.choice .tick { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border-strong); display: grid; place-items: center; flex: none; margin-top: 2px; }
.choice[aria-pressed="true"] .tick, .choice[aria-checked="true"] .tick { background: var(--accent); border-color: var(--accent); color: #fff; }
.choice[aria-pressed="true"] .tick .icon, .choice[aria-checked="true"] .tick .icon { width: 14px; height: 14px; stroke-width: 3; }
.caps { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; font-size: 13.5px; }
.caps li { display: flex; align-items: center; gap: 8px; color: var(--text-2); }
.caps li .icon { width: 15px; height: 15px; stroke-width: 3; }
.caps li.ok .icon { color: var(--call); }
.caps li.no { color: var(--muted); }
.caps li.no .icon { color: var(--muted); }
.notice { border-radius: 12px; padding: 10px 12px; font-size: 13px; line-height: 1.45; display: flex; gap: 8px; }
.notice.amber { background: var(--amber-soft); color: var(--amber-ink); }
.notice.red { background: var(--red-soft); color: color-mix(in srgb, var(--put) 80%, var(--text)); }
.notice.info { background: var(--surface-3); color: var(--text-2); }
.notice .icon { width: 16px; height: 16px; margin-top: 1px; }

/* Measured win rate line on the active signal card. */
.winrate { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 2px; padding: 9px 11px; border-radius: 11px; font-size: 13px; line-height: 1.4; background: var(--surface-3); color: var(--text-2); }
.winrate .icon { width: 16px; height: 16px; margin-top: 1px; flex: none; }
.winrate strong { color: var(--text); }
.winrate.ok { background: var(--green-soft); color: color-mix(in srgb, var(--call) 82%, var(--text)); }
.winrate.ok strong { color: color-mix(in srgb, var(--call) 90%, var(--text)); }
.winrate.warn { background: var(--amber-soft); color: var(--amber-ink); }
.winrate.building { background: var(--surface-3); color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 10px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-weight: 650; font-size: 14px; }
.chip[aria-pressed="true"] { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 16%, var(--surface)); color: var(--text); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field .label { font-size: 13px; font-weight: 650; color: var(--text-2); }
.field .hint { font-size: 12px; color: var(--muted); }
.input, select.input, textarea.input { width: 100%; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); outline: none; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; }
.toggle { width: 46px; height: 28px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--border-strong); position: relative; flex: none; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--text-2); transition: transform .15s ease; }
.toggle[aria-checked="true"] { background: var(--brand); border-color: var(--brand); }
.toggle[aria-checked="true"]::after { transform: translateX(18px); background: #fff; }
input[type="range"] { width: 100%; accent-color: var(--brand); }

/* ---------- dashboard ---------- */
.broker-strip { display: flex; align-items: center; gap: 12px; }
.broker-bar { padding: 12px 14px; }
.desktop-only { display: none; }
@media (min-width: 900px) {
  .mobile-only { display: none !important; }
  .desktop-only { display: block; }
}
.broker-strip .name { font-weight: 800; font-size: 17px; }
.broker-strip .sub { color: var(--muted); font-size: 13px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 13.5px; margin-top: 12px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-weight: 650; }

.signal { position: relative; overflow: hidden; }
.signal::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--dir, var(--brand)); }
.signal.call { --dir: var(--call); --dir-soft: var(--call-soft); }
.signal.put { --dir: var(--put); --dir-soft: var(--put-soft); }
.signal .label { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 0.1em; font-weight: 800; text-transform: uppercase; color: var(--amber-ink); }
.signal .asset { font-size: 30px; font-weight: 850; letter-spacing: -0.02em; margin: 10px 0 2px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.direction { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 14px; background: var(--dir-soft); color: var(--dir); font-weight: 900; font-size: 22px; letter-spacing: 0.02em; margin: 10px 0 14px; }
.direction .icon { width: 24px; height: 24px; stroke-width: 3; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.metric { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 10px; min-width: 0; }
.metric .k { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.metric .v { font-weight: 800; font-size: 17px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metric .v small { color: var(--muted); font-weight: 650; font-size: 12px; }
@media (max-width: 380px) { .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.scorebar { height: 4px; border-radius: 4px; background: var(--surface-3); margin-top: 6px; overflow: hidden; }
.scorebar span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.countdown { font-variant-numeric: tabular-nums; }
.countdown.closed { color: var(--put); }
.actions { display: grid; gap: 10px; margin-top: 16px; }
.why { margin-top: 12px; }
.why summary { cursor: pointer; color: var(--text-2); font-weight: 650; font-size: 13.5px; }
.why ul { margin: 8px 0 0; padding-left: 18px; color: var(--text-2); font-size: 13.5px; }
.steps { margin: 12px 0 0; padding-left: 20px; color: var(--text-2); font-size: 14px; }
.steps li { margin: 3px 0; }
.copied-box { margin-top: 14px; border: 1px dashed var(--border-strong); border-radius: 14px; padding: 12px 14px; }
.copied-box pre { margin: 8px 0 0; font-family: var(--mono); font-size: 14px; white-space: pre-wrap; }
.report { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

.empty { text-align: center; padding: 34px 20px; }
.radar { width: 92px; height: 92px; margin: 0 auto 16px; border-radius: 50%; position: relative; background: radial-gradient(circle, color-mix(in srgb, var(--brand) 20%, transparent) 0 30%, transparent 31%), repeating-radial-gradient(circle, var(--border) 0 1px, transparent 1px 15px); }
.radar::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, color-mix(in srgb, var(--brand-2) 45%, transparent), transparent 25%); animation: spin 2.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .radar::after, .dot.pulse, .hero .mark { animation: none; } }
.empty h3 { margin: 0 0 6px; font-size: 18px; }
.empty p { margin: 0 auto; max-width: 380px; color: var(--text-2); }

.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.list-item:first-child { border-top: 0; }
.list-item .main { flex: 1; min-width: 0; }
.list-item .title { font-weight: 750; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.list-item .sub { color: var(--muted); font-size: 12.5px; }
.dir-tag { font-weight: 850; font-size: 12px; padding: 2px 8px; border-radius: 8px; }
.dir-tag.call { color: var(--call); background: var(--call-soft); }
.dir-tag.put { color: var(--put); background: var(--put-soft); }
.platform-status { font-size: 13px; font-weight: 700; text-align: right; }
.platform-status.ok { color: var(--call); }
.platform-status.warn { color: var(--amber); }
.platform-status.no { color: var(--muted); font-weight: 600; }

/* ---------- performance ---------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stat { background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 12px; }
.stat .k { color: var(--muted); font-size: 12px; font-weight: 650; }
.stat .v { font-size: 22px; font-weight: 850; margin-top: 2px; }
.stat .v small { font-size: 12px; color: var(--muted); font-weight: 650; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; color: var(--muted); font-weight: 650; font-size: 12px; padding: 6px 0; }
.table td { padding: 8px 0; border-top: 1px solid var(--border); }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- modal & toast ---------- */
.backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(3, 6, 14, 0.62); backdrop-filter: blur(3px); display: grid; place-items: end center; padding: 16px; }
@media (min-width: 640px) { .backdrop { place-items: center; } }
.sheet { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 22px; box-shadow: var(--shadow); animation: rise .18s ease-out; }
@keyframes rise { from { transform: translateY(12px); opacity: 0; } }
.sheet h3 { margin: 10px 0 8px; font-size: 21px; }
.sheet p { margin: 0 0 6px; color: var(--text-2); }
.sheet .buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); transform: translateX(-50%); max-width: min(92vw, 460px); background: var(--text); color: var(--bg); padding: 12px 16px; border-radius: 14px; font-weight: 650; font-size: 14px; box-shadow: var(--shadow); animation: rise .18s ease-out; }
@media (min-width: 900px) { .toast { bottom: 28px; } }

.footer { max-width: 1080px; margin: 8px auto 0; padding: 18px 16px 28px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.footer p { margin: 0 0 6px; }

/* ---------- admin ---------- */
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th { text-align: left; color: var(--muted); font-weight: 650; padding: 4px 4px; }
.admin-table td { padding: 4px; border-top: 1px solid var(--border); vertical-align: middle; }
.admin-table .input { padding: 6px 8px; border-radius: 8px; font-size: 13px; }
.scroll-x { overflow-x: auto; }
.error-text { color: var(--put); font-size: 13px; white-space: pre-wrap; }
.skeleton { height: 220px; border-radius: var(--radius); background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- side-by-side mode (broker opens in its own window beside 10XAI) ---------- */
.sbs-toggle .sbs-label { white-space: nowrap; }
@media (max-width: 560px) { .sbs-toggle .sbs-label { display: none; } }
.sbs-banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; max-width: 1080px; margin: 0 auto; padding: 10px 16px; font-size: 13px; color: var(--amber-ink); background: var(--amber-soft); border-bottom: 1px solid color-mix(in srgb, var(--amber) 30%, transparent); }
.sbs-banner .icon { flex: none; }
.sbs-banner .link-btn { margin-left: auto; }

/* When side-by-side is on, collapse the dashboard to a single narrow rail that fits half the screen. */
html.sbs .content { max-width: 400px; }
html.sbs .grid.dash { grid-template-columns: minmax(0, 1fr); }
html.sbs .desktop-only { display: none; }      /* duplicate broker strip not needed in the rail */
html.sbs .mobile-only { display: block; }        /* keep the compact broker bar + launch button */
html.sbs .desktop-tabs { display: none; }         /* use the bottom tab bar to save width */
html.sbs .tabbar { display: grid; }
html.sbs .shell { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
html.sbs .footer { font-size: 11px; }

.chip.sm { padding: 5px 10px; font-size: 12.5px; }

.chip.off-broker { opacity: 0.72; border-style: dashed; }
.chip .chip-dot { color: var(--amber-ink); font-weight: 800; margin-left: 2px; }

/* ---------- access gate (free unlock) ---------- */
.access-page { max-width: 560px; }
.free-banner { margin-top: 16px; border-radius: var(--radius); padding: 18px; text-align: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--call) 22%, var(--surface)), color-mix(in srgb, var(--brand) 18%, var(--surface)));
  border: 1px solid color-mix(in srgb, var(--call) 40%, var(--border)); }
.free-big { font-size: 34px; font-weight: 900; letter-spacing: -0.02em; line-height: 1;
  background: linear-gradient(135deg, var(--call), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.free-banner p { margin: 8px 0 0; color: var(--text-2); font-size: 13.5px; line-height: 1.5; }
.access-steps { display: flex; flex-direction: column; gap: 14px; }
.access-step { display: flex; gap: 12px; align-items: flex-start; }
.access-step .step-num { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 14px; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); margin-top: 2px; }
.access-step .step-main { flex: 1; min-width: 0; }
.access-step .step-title { font-weight: 750; }
.access-step .step-desc { color: var(--text-2); font-size: 13.5px; margin: 2px 0 6px; }
