/* ZoneDesk — terminal UI. Tokens sampled from the reference product's design system. */
:root {
  --font-ui: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-num: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r-xs: 6px; --r-sm: 9px; --r: 12px; --r-lg: 16px; --r-xl: 22px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --rail: 236px;
  --bull: #0E9F63; --bull-soft: rgba(14, 159, 99, .09);
  --bear: #E23D4F; --bear-soft: rgba(226, 61, 79, .08);
  --amber: #D98A06; --amber-soft: rgba(217, 138, 6, .1);
  --sky: #0A84D6; --sky-soft: rgba(10, 132, 214, .08);
  --teal: #0C9A93; --violet: #7C4DEB;
  --bg: #F5F6F8; --bg-2: #EDEFF3;
  --surface: #FFFFFF; --surface-2: #F7F8FA; --surface-3: #EFF1F5;
  --line: #E7E9EE; --line-2: #D8DCE4;
  --ink: #0B1220; --ink-2: #475264; --ink-3: #8691A3; --ink-4: #B7BFCB;
  --brand: #5856F2; --brand-2: #8B5CF6;
  --brand-soft: rgba(88, 86, 242, .09); --brand-line: rgba(88, 86, 242, .28);
  --glass: rgba(255, 255, 255, .82);
  --pop: 0 18px 48px -24px rgba(16, 24, 40, .22), 0 2px 6px rgba(16, 24, 40, .04);
  --shadow-lg: 0 40px 90px -40px rgba(16, 24, 40, .3);
  --grid: rgba(11, 18, 32, .055);
  color-scheme: light;
}
[data-theme="dark"] {
  --bull: #19E58C; --bull-soft: rgba(25, 229, 140, .11);
  --bear: #FF4D67; --bear-soft: rgba(255, 77, 103, .11);
  --amber: #FFB020; --amber-soft: rgba(255, 176, 32, .12);
  --sky: #45B8FF; --sky-soft: rgba(69, 184, 255, .12);
  --teal: #2DD4BF; --violet: #A78BFA;
  --bg: #07090D; --bg-2: #0A0D13;
  --surface: #0D1118; --surface-2: #11161F; --surface-3: #161C27;
  --line: #1A212D; --line-2: #242D3C;
  --ink: #EDF2F9; --ink-2: #A2AEC1; --ink-3: #6A768A; --ink-4: #434E61;
  --brand: #7B7BFF; --brand-2: #A78BFA;
  --brand-soft: rgba(123, 123, 255, .13); --brand-line: rgba(123, 123, 255, .35);
  --glass: rgba(7, 9, 13, .78);
  --pop: 0 24px 64px -24px rgba(0, 0, 0, .85), 0 1px 0 rgba(255, 255, 255, .03) inset;
  --shadow-lg: 0 50px 120px -40px rgba(0, 0, 0, .9);
  --grid: rgba(255, 255, 255, .035);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  font-family: var(--font-ui); font-size: 14px; line-height: 1.5;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  background-image:
    radial-gradient(900px 460px at 72% -12%, var(--brand-soft), transparent 62%),
    radial-gradient(760px 380px at 6% -8%, var(--bull-soft), transparent 64%);
  background-repeat: no-repeat;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { display: block; }
::selection { background: var(--brand); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; border: 3px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 15px; height: 15px; }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.mono { font-family: var(--font-num); }
.muted { color: var(--ink-2); }
.dim { color: var(--ink-3); }
.bull { color: var(--bull); }
.bear { color: var(--bear); }
.amber { color: var(--amber); }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.eyebrow {
  font-family: var(--font-num); font-size: 10.5px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 10px;
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink);
  font-size: 13px; font-weight: 600; letter-spacing: -.005em;
  transition: background .16s var(--ease), border-color .16s var(--ease), transform .16s var(--ease), color .16s var(--ease);
}
.btn:hover { border-color: var(--ink-4); background: var(--surface-3); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 10px 24px -12px var(--brand-line); }
.btn-primary:hover { background: var(--brand-2); border-color: var(--brand-2); }
[data-theme="light"] .btn-primary:hover { background: var(--brand); filter: brightness(1.06); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-3); color: var(--ink); border-color: transparent; }
.btn-sm { height: 31px; padding: 0 10px; border-radius: 8px; font-size: 12px; gap: 6px; }
.btn-lg { height: 46px; padding: 0 22px; font-size: 14px; border-radius: 12px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); color: var(--ink-2);
  transition: color .15s, border-color .15s, background .15s;
}
.icon-btn:hover { color: var(--ink); border-color: var(--line-2); background: var(--surface-3); }

.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 25px; padding: 0 8px;
  border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2);
  font-family: var(--font-num); font-size: 9.5px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-2); white-space: nowrap;
}
.chip .led { width: 5px; height: 5px; border-radius: 50%; background: var(--bull); box-shadow: 0 0 0 3px var(--bull-soft); }
.chip.brand { border-color: var(--brand-line); background: var(--brand-soft); color: var(--brand-2); }
.chip.bull { border-color: transparent; background: var(--bull-soft); color: var(--bull); }
.chip.bear { border-color: transparent; background: var(--bear-soft); color: var(--bear); }
.chip.amber { border-color: transparent; background: var(--amber-soft); color: var(--amber); }
.chip.solid { background: var(--surface-3); color: var(--ink-2); border-color: var(--line-2); }

.panel { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.panel-title { font-size: 13px; font-weight: 650; letter-spacing: -.01em; }
.panel-body { padding: 16px; }

.brand-mark { width: 28px; height: 28px; color: var(--brand); flex: 0 0 auto; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-word { font-size: 17px; font-weight: 800; letter-spacing: -.035em; }
.logo-word span { color: var(--brand-2); }

/* ---------------- app shell ---------------- */
.app { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); min-height: 100vh; }
.rail {
  position: sticky; top: 0; height: 100vh; z-index: 30;
  display: flex; flex-direction: column; gap: 22px;
  padding: 22px 14px 16px; border-right: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
}
.rail-top { padding: 0 6px; }
.rail-nav { display: flex; flex-direction: column; gap: 3px; }
.nav-label { padding: 0 10px 8px; font-family: var(--font-num); font-size: 9px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-4); }
.nav-item {
  position: relative; display: flex; align-items: center; gap: 11px; height: 40px; padding: 0 10px;
  border: 1px solid transparent; border-radius: 9px; color: var(--ink-2);
  font-size: 13px; font-weight: 550; transition: background .15s, color .15s, border-color .15s;
}
.nav-item .icon { width: 17px; height: 17px; color: var(--ink-3); transition: color .15s; }
.nav-item:hover { background: var(--surface-2); color: var(--ink); }
.nav-item:hover .icon { color: var(--ink-2); }
.nav-item[aria-current="page"] { background: var(--surface); border-color: var(--line); color: var(--ink); box-shadow: 0 1px 0 rgba(255,255,255,.02) inset; }
.nav-item[aria-current="page"] .icon { color: var(--brand-2); }
.nav-item[aria-current="page"]::before { content: ""; position: absolute; left: -15px; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; background: var(--brand); }
.nav-key { margin-left: auto; font-family: var(--font-num); font-size: 9px; color: var(--ink-4); border: 1px solid var(--line); border-radius: 4px; padding: 1px 4px; }
.rail-pulse { margin-top: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 12px; }
.rail-pulse-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rail-pulse-label { font-family: var(--font-num); font-size: 9px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.pulse-bar { display: flex; height: 4px; border-radius: 4px; overflow: hidden; margin: 10px 0 8px; background: var(--line); }
.pulse-bar .up { background: var(--bull); }
.pulse-bar .down { background: var(--bear); }
.rail-pulse-nums { display: flex; align-items: baseline; justify-content: space-between; font-family: var(--font-num); font-size: 11px; }
.rail-pulse-nums b { font-weight: 600; }
.rail-actions { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.rail-user { display: flex; align-items: center; gap: 9px; padding: 8px 6px 0; margin-top: 12px; border-top: 1px solid var(--line); }
.rail-user .who { min-width: 0; flex: 1; }
.rail-user .who b { display: block; font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-user .who span { display: block; font-family: var(--font-num); font-size: 9px; letter-spacing: .04em; color: var(--ink-3); text-transform: uppercase; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 12px;
  height: 62px; padding: 0 24px;
  border-bottom: 1px solid var(--line); background: var(--glass);
  backdrop-filter: blur(18px) saturate(135%); -webkit-backdrop-filter: blur(18px) saturate(135%);
}
.topbar-logo { display: none; }
.crumb { min-width: 0; display: flex; align-items: center; gap: 10px; }
.crumb-title { font-size: 13px; font-weight: 600; letter-spacing: -.01em; }
.crumb-sep { width: 1px; height: 14px; background: var(--line-2); }
.crumb-meta { display: flex; align-items: center; gap: 7px; font-family: var(--font-num); font-size: 10.5px; color: var(--ink-3); white-space: nowrap; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--bull); box-shadow: 0 0 0 3px var(--bull-soft); }
.live-dot.paused { background: var(--ink-4); box-shadow: 0 0 0 3px var(--line); }
.live-dot.closed { background: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); }

.search { position: relative; width: min(300px, 30vw); margin-left: auto; }
.search input {
  width: 100%; height: 36px; padding: 0 48px 0 34px;
  border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2);
  font-family: var(--font-ui); font-size: 12.5px; color: var(--ink); outline: none;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.search input::placeholder { color: var(--ink-3); }
.search input:focus { border-color: var(--brand-line); background: var(--surface); box-shadow: 0 0 0 3px var(--brand-soft); }
.search .s-icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search kbd { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-family: var(--font-num); font-size: 9px; color: var(--ink-3); border: 1px solid var(--line); border-radius: 4px; padding: 2px 4px; background: var(--surface); }
.search-pop {
  position: absolute; top: calc(100% + 6px); right: 0; width: 360px; max-height: 380px; overflow: auto;
  border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface);
  box-shadow: var(--pop); z-index: 80; padding: 5px;
}
.search-pop .sr-row { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 9px; border: 0; border-radius: 7px; background: transparent; text-align: left; }
.search-pop .sr-row:hover, .search-pop .sr-row[aria-selected="true"] { background: var(--surface-3); }
.search-pop .sr-sym { font-family: var(--font-num); font-size: 11px; font-weight: 600; }
.search-pop .sr-sec { font-size: 10.5px; color: var(--ink-3); }
.search-pop .sr-chg { margin-left: auto; font-family: var(--font-num); font-size: 10.5px; }
.search-empty { padding: 18px 12px; font-size: 12px; color: var(--ink-3); text-align: center; }
.search .s-close { display: none; position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; place-items: center; border: 0; border-radius: 5px; background: transparent; color: var(--ink-3); }

.replay { display: flex; align-items: center; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); }
.replay-btn { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 6px; background: transparent; color: var(--ink-2); }
.replay-btn:hover { background: var(--surface-3); color: var(--ink); }
.replay-clock { padding: 0 6px 0 3px; font-family: var(--font-num); font-size: 10.5px; font-weight: 500; color: var(--ink-2); }

.top-actions { display: flex; align-items: center; gap: 7px; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--brand-line);
  display: grid; place-items: center; background: linear-gradient(140deg, var(--brand), var(--brand-2));
  color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .02em; flex: 0 0 auto;
}
.avatar.sm { width: 26px; height: 26px; font-size: 9.5px; }
.user-wrap { position: relative; }
.user-btn { display: flex; align-items: center; gap: 6px; padding: 2px; border: 0; border-radius: 50%; background: transparent; }
.menu {
  position: absolute; right: 0; top: calc(100% + 8px); width: 240px; padding: 6px; z-index: 90;
  border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); box-shadow: var(--pop);
}
.menu-head { padding: 9px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 5px; }
.menu-head b { display: block; font-size: 12.5px; font-weight: 600; }
.menu-head span { display: block; font-size: 10.5px; color: var(--ink-3); margin-top: 1px; }
.menu-item { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 9px; border: 0; border-radius: 7px; background: transparent; color: var(--ink-2); font-size: 12.5px; text-align: left; }
.menu-item:hover { background: var(--surface-3); color: var(--ink); }
.menu-item .icon { width: 15px; height: 15px; color: var(--ink-3); }
.menu-item .key { margin-left: auto; font-family: var(--font-num); font-size: 9px; color: var(--ink-4); }
.menu-note { padding: 9px 10px 4px; font-size: 10px; line-height: 1.5; color: var(--ink-3); border-top: 1px solid var(--line); margin-top: 4px; }

.content { width: 100%; max-width: 1580px; margin: 0 auto; padding: 26px 28px 90px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.08; font-weight: 700; letter-spacing: -.035em; }
.page-head .sub { margin-top: 7px; max-width: 620px; font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.page-head-side { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ---------------- session replay ---------------- */
.session { display: flex; align-items: center; gap: 14px; padding: 9px 14px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.session-play { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 auto; border: 1px solid var(--line-2); border-radius: 50%; background: var(--surface-2); color: var(--ink); }
.session-play:hover { border-color: var(--brand-line); color: var(--brand-2); }
.session-clock { display: flex; align-items: baseline; gap: 7px; min-width: 108px; }
.session-clock b { font-family: var(--font-num); font-size: 12px; font-weight: 600; }
.session-clock span { font-family: var(--font-num); font-size: 9px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.scrub { position: relative; flex: 1; display: flex; align-items: center; min-width: 80px; }
.scrub input { width: 100%; margin: 0; height: 4px; -webkit-appearance: none; appearance: none; border-radius: 4px; background: linear-gradient(90deg, var(--brand) var(--fill, 40%), var(--line) var(--fill, 40%)); outline: none; }
.scrub input::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); cursor: default; }
.scrub input::-moz-range-thumb { width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--brand); }
.session-meta { display: flex; align-items: center; gap: 10px; font-family: var(--font-num); font-size: 9.5px; color: var(--ink-3); white-space: nowrap; }
.session-meta b { font-weight: 500; color: var(--ink-2); }

/* ---------------- market picture ---------------- */
.picture { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: linear-gradient(180deg, var(--surface), var(--surface-2)); padding: 15px 18px 6px; }
.picture::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(600px 180px at 50% 0%, var(--brand-soft), transparent 70%); opacity: .55; }
.picture-head { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.picture-title { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 600; letter-spacing: -.01em; }
.picture-title .icon { width: 15px; height: 15px; color: var(--brand-2); }
.picture-sub { margin-top: 3px; font-family: var(--font-num); font-size: 9px; letter-spacing: .04em; color: var(--ink-3); }
.sector-callouts { display: flex; align-items: center; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.callout { display: inline-flex; align-items: center; gap: 6px; height: 23px; padding: 0 8px; border-radius: 5px; border: 1px solid var(--line); background: var(--surface-2); font-size: 10px; color: var(--ink-2); }
.callout b { font-family: var(--font-num); font-size: 9.5px; font-weight: 600; }
.callout.lead b { color: var(--bull); }
.callout.lag b { color: var(--bear); }
.callout .tag { font-family: var(--font-num); font-size: 8px; letter-spacing: .08em; color: var(--ink-3); text-transform: uppercase; }
.tape-counts { display: flex; align-items: flex-end; gap: 20px; flex: 0 0 auto; }
.tape-count { text-align: right; }
.tape-count .k { display: flex; align-items: center; justify-content: flex-end; gap: 5px; font-family: var(--font-num); font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.tape-count .k i { width: 5px; height: 5px; border-radius: 50%; }
.tape-count b { display: block; font-family: var(--font-num); font-size: 24px; line-height: 1.15; font-weight: 600; letter-spacing: -.04em; }
.tape-count.bull b { color: var(--bull); }
.tape-count.bear b { color: var(--bear); }
.tape-count .k i.b { background: var(--bull); }
.tape-count .k i.r { background: var(--bear); }
.breadth-wrap { position: relative; height: 150px; margin: 4px -2px 0; }
.breadth-wrap canvas { display: block; width: 100%; height: 100%; }
.picture-foot { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 0 9px; font-size: 10px; color: var(--ink-3); flex-wrap: wrap; }
.legend { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; color: var(--ink-3); white-space: nowrap; }
.legend i { width: 6px; height: 6px; border-radius: 50%; display: inline-block; background: var(--ink-3); }
.legend .ring { background: transparent; border: 1px solid var(--ink-2); width: 7px; height: 7px; }
.legend .amber-dot { background: var(--amber); }
.legend .brand-dot { background: var(--brand-2); }

.sector-strip { display: flex; gap: 7px; overflow-x: auto; padding: 10px 1px 4px; scrollbar-width: none; -ms-overflow-style: none; scroll-snap-type: x proximity; }
.sector-strip::-webkit-scrollbar { display: none; }
.sector-chip { flex: 1 0 124px; max-width: 180px; padding: 8px 9px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); scroll-snap-align: start; }
.sector-chip:hover { border-color: var(--line-2); }
.sector-chip .s-top { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.sector-chip .s-name { font-size: 9.5px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sector-chip .s-avg { font-family: var(--font-num); font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.sector-cells { display: flex; gap: 2px; margin-top: 7px; height: 9px; }
.sector-cells i { flex: 1; border-radius: 1.5px; min-width: 2px; background: var(--line); }

/* ---------------- board ---------------- */
.board-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 16px 0 11px; flex-wrap: wrap; }
.tabs { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.tab { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 11px; border: 0; border-radius: 7px; background: transparent; color: var(--ink-2); font-size: 12px; font-weight: 600; transition: background .15s, color .15s; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--surface-3); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.tab .cnt { font-family: var(--font-num); font-size: 9px; font-weight: 600; color: var(--ink-3); background: var(--surface-2); border-radius: 4px; padding: 2px 5px; }
.tab[aria-selected="true"] .cnt { color: var(--ink-2); background: var(--surface); }
.tab .tdot { width: 5px; height: 5px; border-radius: 50%; }
.tab .tdot.b { background: var(--bull); } .tab .tdot.r { background: var(--bear); } .tab .tdot.p { background: var(--brand-2); }
.board-bar-side { display: flex; align-items: center; gap: 10px; font-size: 10.5px; color: var(--ink-3); flex-wrap: wrap; }
.board-bar-side b { color: var(--ink-2); font-weight: 500; }
.seg { display: inline-flex; padding: 2px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.seg button { height: 24px; padding: 0 8px; border: 0; border-radius: 5px; background: transparent; color: var(--ink-3); font-family: var(--font-num); font-size: 9px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.seg button[aria-pressed="true"] { background: var(--surface-3); color: var(--ink); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(252px, 1fr)); gap: 10px; }
.card {
  position: relative; min-width: 0; display: flex; flex-direction: column; padding: 12px 12px 10px;
  border: 1px solid var(--line); border-radius: 13px; overflow: hidden; text-align: left;
  background: linear-gradient(180deg, var(--surface), var(--surface-2)); color: var(--ink);
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s, background .2s;
}
.card:hover { transform: translateY(-2px); border-color: var(--line-2); box-shadow: var(--pop); }
.card::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 2px; border-radius: 0 2px 2px 0; background: var(--bull); opacity: .55; }
.card.is-bear::before { background: var(--bear); }
.card.is-pick { border-color: color-mix(in srgb, var(--bull) 32%, var(--line)); }
.card.is-bear.is-pick { border-color: color-mix(in srgb, var(--bear) 34%, var(--line)); }
[data-theme="dark"] .card { background: linear-gradient(180deg, var(--surface), #0B0F16); }
.card-top { display: flex; align-items: flex-start; gap: 9px; }
.card-avatar { width: 31px; height: 31px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-3); font-family: var(--font-num); font-size: 10px; font-weight: 600; color: var(--ink-2); letter-spacing: .02em; }
.card-id { min-width: 0; flex: 1; padding-top: 1px; }
.card-sym { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 650; letter-spacing: -.01em; }
.card-sym .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-badge { flex: 0 0 auto; font-family: var(--font-num); font-size: 7.5px; font-weight: 700; letter-spacing: .09em; color: #04110B; background: var(--bull); border-radius: 3px; padding: 2px 4px; line-height: 1.2; }
.is-bear .pick-badge { background: var(--bear); color: #17040A; }
.card-sector { margin-top: 3px; font-family: var(--font-num); font-size: 8.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-rank { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: 0 0 auto; }
.rank-chip { font-family: var(--font-num); font-size: 9.5px; font-weight: 600; letter-spacing: .03em; color: var(--ink-2); background: var(--surface-3); border: 1px solid var(--line); border-radius: 5px; padding: 2px 5px; }
.rank-chip.top { color: var(--brand-2); background: var(--brand-soft); border-color: var(--brand-line); }
.rank-delta { font-family: var(--font-num); font-size: 8.5px; color: var(--ink-4); display: flex; align-items: center; gap: 2px; min-height: 11px; }
.rank-delta.up { color: var(--bull); } .rank-delta.down { color: var(--bear); }
.card-quote { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; margin-top: 10px; }
.quote-left { min-width: 0; }
.quote-price { font-family: var(--font-num); font-size: 20px; font-weight: 600; line-height: 1; letter-spacing: -.035em; white-space: nowrap; }
.quote-chg { display: flex; align-items: center; gap: 6px; margin-top: 5px; font-family: var(--font-num); font-size: 9.5px; font-weight: 500; color: var(--ink-3); white-space: nowrap; }
.quote-chg b { font-weight: 600; }
.quote-chg .pill { font-size: 9.5px; font-weight: 600; padding: 2px 4px; border-radius: 3px; background: var(--bull-soft); color: var(--bull); }
.is-bear .quote-chg .pill { background: var(--bear-soft); color: var(--bear); }
.quote-spark { flex: 0 0 auto; opacity: .95; }
.spark { display: block; overflow: visible; }
.spark-bull { color: var(--bull); } .spark-bear { color: var(--bear); }
.card-profile { position: relative; height: 54px; margin: 8px -2px 0; }
.card-profile canvas { display: block; width: 100%; height: 100%; }
.card-foot { display: flex; align-items: center; gap: 10px; margin-top: 7px; padding-top: 8px; border-top: 1px solid var(--line); }
.metric { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.metric .k { font-family: var(--font-num); font-size: 7.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.metric .v { font-family: var(--font-num); font-size: 9.5px; font-weight: 500; color: var(--ink-2); display: flex; align-items: center; gap: 4px; }
.liq-bar { width: 34px; height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; }
.liq-bar i { display: block; height: 100%; border-radius: 2px; background: var(--bull); }
.is-bear .liq-bar i { background: var(--bear); }
.conv { display: flex; gap: 2.5px; align-items: center; height: 9px; }
.conv i { width: 3.5px; height: 3.5px; border-radius: 50%; background: var(--line-2); }
.conv i.on { background: var(--bull); }
.is-bear .conv i.on { background: var(--bear); }
.metric.rr { margin-left: auto; text-align: right; align-items: flex-end; }
.metric.rr .v { color: var(--ink); font-weight: 600; }
.rule-line { margin-top: 6px; font-family: var(--font-num); font-size: 8px; letter-spacing: .04em; color: var(--ink-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rule-line.pick-rule { color: var(--bull); }
.is-bear .rule-line.pick-rule { color: var(--bear); }

.board-empty { padding: 60px 20px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--r-lg); color: var(--ink-3); font-size: 13px; }
.board-note { display: flex; align-items: center; gap: 7px; margin-top: 14px; font-size: 10px; color: var(--ink-3); flex-wrap: wrap; }
.board-note .icon { width: 12px; height: 12px; }
/* ---------------- stock sheet ---------------- */
.sheet-layer { position: fixed; inset: 0; z-index: 100; display: flex; justify-content: flex-end; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(3, 5, 10, .58); backdrop-filter: blur(3px); animation: fade .2s ease both; }
.sheet {
  position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr);
  width: min(760px, 100%); height: 100%; background: var(--bg-2);
  border-left: 1px solid var(--line); box-shadow: var(--shadow-lg);
  animation: sheetIn .34s var(--ease) both;
}
.sheet-head { padding: 14px 22px 0; border-bottom: 1px solid var(--line); background: var(--surface); }
.sheet-top { display: flex; align-items: flex-start; gap: 11px; }
.sheet-avatar { width: 38px; height: 38px; border-radius: 10px; font-size: 12px; }
.sheet-id { min-width: 0; flex: 1; }
.sheet-sym { display: flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 700; letter-spacing: -.025em; }
.sheet-name { margin-top: 2px; font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-tools { display: flex; align-items: center; gap: 5px; flex: 0 0 auto; }
.sheet-quote { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-top: 13px; flex-wrap: wrap; }
.sheet-price { display: flex; align-items: baseline; gap: 9px; font-family: var(--font-num); }
.sheet-price b { font-size: 27px; font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.sheet-price .chg { font-size: 11.5px; font-weight: 600; padding: 3px 6px; border-radius: 4px; background: var(--bull-soft); color: var(--bull); }
.sheet-price .chg.bear { background: var(--bear-soft); color: var(--bear); }
.sheet-price .prev { font-size: 10px; color: var(--ink-3); }
.sheet-quick { display: flex; align-items: center; gap: 14px; padding-bottom: 2px; }
.quick-stat { text-align: right; }
.quick-stat .k { font-family: var(--font-num); font-size: 7.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.quick-stat .v { font-family: var(--font-num); font-size: 12px; font-weight: 600; margin-top: 2px; }
.rule-banner { display: flex; align-items: center; gap: 9px; padding: 8px 22px; border-top: 1px solid var(--line); background: var(--surface); }
.rule-banner .rule { font-family: var(--font-num); font-size: 9px; font-weight: 600; letter-spacing: .07em; color: var(--bull); white-space: nowrap; }
.rule-banner.is-bear .rule { color: var(--bear); }
.rule-banner .why { font-size: 10.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rule-banner .spacer { flex: 1; }
.rule-banner .pct { font-family: var(--font-num); font-size: 9.5px; color: var(--ink-3); white-space: nowrap; }
.sheet-scroll { overflow-y: auto; padding: 16px 22px 80px; }
.rule-explain { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 14px; padding: 9px 11px; border: 1px solid var(--amber-soft); border-radius: 8px; background: var(--amber-soft); font-size: 10.5px; line-height: 1.5; color: var(--ink-2); }
.rule-explain .icon { width: 13px; height: 13px; flex: 0 0 auto; margin-top: 1px; color: var(--amber); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.stat-cell { padding: 10px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.stat-cell:nth-child(4n) { border-right: 0; }
.stat-cell:nth-last-child(-n+4) { border-bottom: 0; }
.stat-cell .k { display: flex; align-items: center; gap: 4px; font-family: var(--font-num); font-size: 7.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.stat-cell .v { margin-top: 4px; font-family: var(--font-num); font-size: 12.5px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-cell .v.hl { color: var(--brand-2); }
.stat-cell .v.bullv { color: var(--bull); } .stat-cell .v.bearv { color: var(--bear); } .stat-cell .v.amb { color: var(--amber); }
.stat-cell .v small { font-family: var(--font-ui); font-size: 9px; font-weight: 500; color: var(--ink-3); margin-left: 4px; letter-spacing: 0; }
.chart-card { margin-top: 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.chart-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px 2px; flex-wrap: wrap; }
.chart-card-title { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; }
.chart-legend { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; }
.chart-legend span { display: inline-flex; align-items: center; gap: 5px; font-size: 9px; color: var(--ink-3); white-space: nowrap; }
.chart-legend i { width: 12px; height: 0; border-top: 1px dashed var(--sky); }
.chart-legend .obk { width: 9px; height: 8px; border: 1px dashed var(--ink-3); background: var(--surface-3); }
.chart-legend .lvl { width: 12px; border-top: 1px dashed var(--bull); }
.chart-legend .aml { border-top: 1px dotted var(--amber); }
.stock-chart-wrap { position: relative; height: 330px; padding: 2px 4px 0; }
.stock-chart-wrap canvas { display: block; width: 100%; height: 100%; }
.sheet-section-title { display: flex; align-items: center; gap: 7px; margin: 18px 0 8px; font-family: var(--font-num); font-size: 9px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.read-list { display: grid; gap: 7px; }
.read-item { display: flex; align-items: flex-start; gap: 9px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-size: 11px; line-height: 1.5; color: var(--ink-2); }
.read-item b { color: var(--ink); font-weight: 600; }
.read-item .idx { font-family: var(--font-num); font-size: 8.5px; color: var(--ink-3); padding-top: 2px; flex: 0 0 auto; }
.sheet-actions { display: flex; align-items: center; gap: 7px; margin-top: 16px; flex-wrap: wrap; }
.sheet-actions .btn { flex: 1; min-width: 140px; }
.sheet-actions .nav { flex: 0 0 auto; min-width: 0; }
.sheet-foot-note { margin-top: 14px; font-size: 9.5px; line-height: 1.5; color: var(--ink-3); }

/* ---------------- x-ray ---------------- */
.xray-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 12px; align-items: start; }
.xray-main, .xray-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.xray-picture .breadth-wrap { height: 224px; }
.xray-picture .tape-count b { font-size: 28px; }
.xray-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); margin-top: 2px; }
.xray-stat { padding: 11px 12px; border-right: 1px solid var(--line); }
.xray-stat:last-child { border-right: 0; }
.xray-stat .k { font-family: var(--font-num); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.xray-stat .v { margin-top: 3px; font-family: var(--font-num); font-size: 13px; font-weight: 600; }
.table-scroll { max-height: none; }
.sector-row { display: grid; grid-template-columns: 118px minmax(70px, 1fr) 58px 38px; align-items: center; gap: 10px; padding: 7px 14px; border-bottom: 1px solid var(--line); }
.sector-row:last-child { border-bottom: 0; }
.sector-row:hover { background: var(--surface-2); }
.sector-row .nm { font-size: 11px; font-weight: 550; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sector-row .cells { display: flex; gap: 2px; height: 12px; }
.sector-row .cells i { flex: 1; min-width: 2px; border-radius: 1.5px; }
.sector-row .avg { text-align: right; font-family: var(--font-num); font-size: 10.5px; font-weight: 600; }
.sector-row .up { text-align: right; font-family: var(--font-num); font-size: 9px; color: var(--ink-3); }
.pick-list { display: flex; flex-direction: column; }
.pick-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 14px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.pick-item:last-child { border-bottom: 0; }
.pick-item:hover { background: var(--surface-2); }
.pick-n { font-family: var(--font-num); font-size: 13px; font-weight: 600; color: var(--ink-4); width: 16px; flex: 0 0 auto; }
.pick-item.is-bear .pick-n { color: var(--ink-4); }
.pick-info { min-width: 0; flex: 1; }
.pick-info b { display: block; font-family: var(--font-num); font-size: 10.5px; font-weight: 600; }
.pick-info span { display: block; font-family: var(--font-num); font-size: 8.5px; color: var(--ink-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-chg { font-family: var(--font-num); font-size: 10px; font-weight: 600; }
.mover-tabs { display: flex; gap: 3px; }
.mover-row { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 14px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.mover-row:last-child { border-bottom: 0; }
.mover-row:hover { background: var(--surface-2); }
.mover-row b { font-family: var(--font-num); font-size: 10px; font-weight: 600; width: 78px; flex: 0 0 auto; }
.mover-row .bar { flex: 1; height: 5px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.mover-row .bar i { display: block; height: 100%; border-radius: 3px; }
.mover-row .v { font-family: var(--font-num); font-size: 9.5px; font-weight: 600; width: 50px; text-align: right; }
.trend-wrap { height: 110px; padding: 4px 10px 6px; }
.trend-wrap canvas { display: block; width: 100%; height: 100%; }

/* ---------------- journal ---------------- */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kpi { padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); min-width: 0; }
.kpi .k { font-family: var(--font-num); font-size: 8px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.kpi .v { margin-top: 6px; font-family: var(--font-num); font-size: 21px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.kpi .s { margin-top: 3px; font-size: 9.5px; color: var(--ink-3); }
.journal-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(290px, 1fr); grid-template-areas: "main side" "trades trades"; gap: 12px; align-items: start; margin-top: 12px; }
.journal-main { grid-area: main; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.journal-side { grid-area: side; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.trades-panel { grid-area: trades; }
.trade-form { padding: 14px 16px 16px; }
.fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-top: 12px; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-num); font-size: 8px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.field input, .field select, .field textarea { width: 100%; height: 35px; padding: 0 9px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-2); color: var(--ink); font-size: 12px; outline: none; transition: border-color .15s, box-shadow .15s; }
.field textarea { height: 58px; padding: 8px 9px; resize: vertical; line-height: 1.4; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand-line); box-shadow: 0 0 0 3px var(--brand-soft); background: var(--surface); }
.field input.num, .field select.num { font-family: var(--font-num); }
.form-foot { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.form-foot .err { font-size: 10.5px; color: var(--bear); flex: 1; }
.heat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.heat-month { font-family: var(--font-num); font-size: 10px; color: var(--ink-2); }
.heat-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin-top: 10px; }
.heat-dow { text-align: center; font-family: var(--font-num); font-size: 7.5px; color: var(--ink-4); padding-bottom: 2px; }
.heat-cell { aspect-ratio: 1 / .8; border-radius: 3px; background: var(--surface-3); display: flex; align-items: center; justify-content: center; font-family: var(--font-num); font-size: 7.5px; color: var(--ink-3); }
.heat-cell.empty { background: transparent; }
.heat-cell.has { color: var(--ink-2); }
.heat-legend { display: flex; align-items: center; gap: 4px; margin-top: 10px; font-family: var(--font-num); font-size: 8px; color: var(--ink-3); }
.heat-legend i { width: 9px; height: 9px; border-radius: 2px; }
.trades-panel { overflow: hidden; margin-top: 0; }
.trades-scroll { overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.trades { width: 100%; border-collapse: collapse; min-width: 680px; table-layout: auto; }
.trades th { padding: 8px 12px; text-align: left; font-family: var(--font-num); font-size: 7.5px; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.trades td { padding: 9px 12px; border-bottom: 1px solid var(--line); font-size: 11px; color: var(--ink-2); white-space: nowrap; }
.trades tr:last-child td { border-bottom: 0; }
.trades tbody tr:hover { background: var(--surface-2); }
.trades .sym { font-family: var(--font-num); font-weight: 600; color: var(--ink); }
.trades .side, .trade-card .side { font-family: var(--font-num); font-size: 8px; font-weight: 600; letter-spacing: .06em; padding: 2px 5px; border-radius: 3px; background: var(--bull-soft); color: var(--bull); }
.trades .side.short, .trade-card .side.short { background: var(--bear-soft); color: var(--bear); }
.trades .pnl { font-family: var(--font-num); font-weight: 600; }
.trades .note { max-width: 300px; overflow: hidden; text-overflow: ellipsis; color: var(--ink-3); }
.trades-mobile { display: none; }
.trade-card { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.trade-card:last-child { border-bottom: 0; }
.tc-head { display: flex; align-items: center; gap: 8px; }
.tc-date { font-family: var(--font-num); font-size: 9px; color: var(--ink-3); }
.tc-head .trade-del { margin-left: auto; }
.tc-main { display: flex; align-items: baseline; gap: 7px; margin-top: 6px; }
.tc-sym { font-family: var(--font-num); font-size: 14px; font-weight: 600; color: var(--ink); }
.tc-qty { font-family: var(--font-num); font-size: 9px; color: var(--ink-3); }
.tc-pnl { margin-left: auto; font-family: var(--font-num); font-size: 12px; font-weight: 600; }
.tc-levels { display: grid; grid-template-columns: 1fr 1fr 82px; gap: 10px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
.tc-levels span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tc-levels i { font-style: normal; font-family: var(--font-num); font-size: 7.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.tc-levels b { font-family: var(--font-num); font-weight: 500; font-size: 11px; color: var(--ink-2); }
.tc-levels b.bull { color: var(--bull); }
.tc-levels b.bear { color: var(--bear); }
.tc-levels .exit-input { width: 100%; max-width: 96px; height: 26px; }
.tc-note { margin: 7px 0 0; font-size: 10px; line-height: 1.5; color: var(--ink-3); }
.trade-del { border: 0; background: transparent; color: var(--ink-4); padding: 2px; border-radius: 3px; }
.trade-del:hover { color: var(--bear); }
.empty-state { padding: 34px 18px; text-align: center; color: var(--ink-3); font-size: 12px; line-height: 1.6; }
.empty-state .icon { width: 26px; height: 26px; margin: 0 auto 10px; color: var(--ink-4); }
.empty-state b { display: block; color: var(--ink-2); font-size: 12.5px; margin-bottom: 4px; }
.empty-state .btn { margin-top: 12px; }

/* ---------------- public site ---------------- */
.landing { min-height: 100vh; overflow-x: hidden; }
.land-nav { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(18px) saturate(140%); }
.land-nav-in { display: flex; align-items: center; gap: 26px; height: 64px; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.land-links { display: flex; align-items: center; gap: 22px; margin-left: 8px; }
.land-links a { font-size: 12.5px; font-weight: 500; color: var(--ink-2); transition: color .15s; }
.land-links a:hover { color: var(--ink); }
.land-nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.land-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.hero { position: relative; padding: 70px 0 58px; }
.hero::before {
  content: ""; position: absolute; inset: -64px -10vw -20px; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(700px 500px at 60% 10%, #000 10%, transparent 80%);
  -webkit-mask-image: radial-gradient(700px 500px at 60% 10%, #000 10%, transparent 80%);
}
.hero::after {
  content: ""; position: absolute; z-index: -1; width: 620px; height: 420px; right: -120px; top: -80px; pointer-events: none;
  background: radial-gradient(closest-side, var(--brand-soft), transparent); filter: blur(10px);
}
.hero-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: 54px; align-items: center; }
.hero-copy { position: relative; z-index: 1; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 9px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); font-family: var(--font-num); font-size: 9px; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-2); }
.hero-eyebrow .led { width: 5px; height: 5px; border-radius: 50%; background: var(--bull); box-shadow: 0 0 0 3px var(--bull-soft); }
.hero h1 { margin-top: 20px; font-size: clamp(38px, 4.9vw, 61px); font-weight: 750; line-height: 1.01; letter-spacing: -.052em; }
.hero h1 .accent { position: relative; color: var(--brand-2); white-space: nowrap; }
.hero h1 .accent::after { content: ""; position: absolute; left: 0; right: 2px; bottom: 5px; height: 7px; border-radius: 2px; background: var(--brand-soft); z-index: -1; }
.hero .lede { margin-top: 20px; max-width: 490px; font-size: 15px; line-height: 1.62; color: var(--ink-2); }
.hero-actions { display: flex; align-items: center; gap: 9px; margin-top: 27px; flex-wrap: wrap; }
.hero-proof { display: flex; align-items: center; gap: 28px; margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.proof b { display: block; font-family: var(--font-num); font-size: 17px; font-weight: 600; letter-spacing: -.03em; }
.proof span { display: block; margin-top: 2px; font-family: var(--font-num); font-size: 8px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.proof i { width: 1px; height: 24px; background: var(--line); }
.preview { position: relative; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: linear-gradient(180deg, var(--surface), var(--surface-2)); box-shadow: var(--shadow-lg); padding: 10px; }
.preview-top { display: flex; align-items: center; gap: 7px; padding: 3px 4px 10px; }
.preview-dots { display: flex; gap: 4px; }
.preview-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); }
.preview-tab { font-family: var(--font-num); font-size: 8.5px; color: var(--ink-3); padding: 3px 7px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface-2); }
.preview-live { margin-left: auto; font-family: var(--font-num); font-size: 8px; letter-spacing: .06em; color: var(--bull); display: flex; align-items: center; gap: 5px; }
.preview-live .led { width: 4px; height: 4px; border-radius: 50%; background: var(--bull); }
.preview-breadth { height: 76px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); padding: 2px; }
.preview-breadth canvas { width: 100%; height: 100%; display: block; }
.preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 7px; }
.preview-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 3px 1px; font-family: var(--font-num); font-size: 7.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.card.compact { padding: 9px; border-radius: 9px; }
.card.compact .card-avatar { width: 24px; height: 24px; border-radius: 6px; font-size: 8px; }
.card.compact .card-sym { font-size: 11px; }
.card.compact .card-sector { font-size: 7px; margin-top: 1px; }
.card.compact .rank-chip { font-size: 8px; padding: 1px 4px; }
.card.compact .card-quote { margin-top: 8px; }
.card.compact .quote-price { font-size: 15px; }
.card.compact .quote-chg { font-size: 8px; margin-top: 3px; }
.card.compact .quote-spark svg { width: 48px; height: 20px; }
.card.compact .card-profile { height: 34px; margin-top: 5px; }
.card.compact .card-foot { display: none; }
.card.compact .rule-line { display: none; }
.card.compact::before { top: 8px; bottom: 8px; }

.band { padding: 72px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 660px; margin-bottom: 30px; }
.section-head h2 { margin-top: 10px; font-size: clamp(28px, 3.2vw, 38px); font-weight: 700; line-height: 1.08; letter-spacing: -.04em; }
.section-head p { margin-top: 11px; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.feature { padding: 20px 21px 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); transition: border-color .2s, transform .2s var(--ease); }
.feature:hover { border-color: var(--line-2); transform: translateY(-2px); }
.feature .ficon { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: var(--brand-2); }
.feature .ficon .icon { width: 16px; height: 16px; }
.feature h3 { margin-top: 16px; font-size: 15px; font-weight: 650; letter-spacing: -.02em; }
.feature p { margin-top: 7px; font-size: 12px; line-height: 1.6; color: var(--ink-2); }
.feature .meta { display: flex; align-items: center; gap: 5px; margin-top: 14px; font-family: var(--font-num); font-size: 8px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.feature .meta i { width: 4px; height: 4px; border-radius: 50%; background: var(--bull); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--line); gap: 1px; }
.step { padding: 22px 20px 26px; background: var(--surface); }
.step .n { font-family: var(--font-num); font-size: 9px; letter-spacing: .08em; color: var(--brand-2); }
.step h3 { margin-top: 14px; font-size: 15px; font-weight: 650; letter-spacing: -.02em; }
.step p { margin-top: 7px; font-size: 11.5px; line-height: 1.6; color: var(--ink-2); }
.pricing-band { display: grid; grid-template-columns: 1fr 400px; gap: 48px; align-items: center; }
.pricing-copy h2 { margin-top: 10px; font-size: clamp(30px, 3.4vw, 42px); font-weight: 700; line-height: 1.05; letter-spacing: -.045em; }
.pricing-copy p { margin-top: 12px; font-size: 13.5px; line-height: 1.65; color: var(--ink-2); max-width: 420px; }
.price-list { margin-top: 22px; display: grid; gap: 8px; }
.price-list li { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); }
.price-list .icon { width: 13px; height: 13px; color: var(--bull); }
.price-card { border: 1px solid var(--brand-line); border-radius: var(--r-xl); padding: 24px; background: linear-gradient(180deg, var(--brand-soft), var(--surface) 46%); box-shadow: var(--pop); }
.price-badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-num); font-size: 8px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--brand-2); }
.price-amount { display: flex; align-items: baseline; gap: 7px; margin-top: 14px; }
.price-amount b { font-family: var(--font-num); font-size: 40px; font-weight: 600; letter-spacing: -.05em; line-height: 1; }
.price-amount span { font-size: 11px; color: var(--ink-3); }
.price-sub { margin-top: 8px; font-family: var(--font-num); font-size: 9.5px; color: var(--ink-2); }
.price-sub s { color: var(--ink-3); }
.price-daily { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 3px 7px; border-radius: 4px; background: var(--bull-soft); color: var(--bull); font-family: var(--font-num); font-size: 9px; font-weight: 500; }
.price-card .btn { width: 100%; margin-top: 18px; }
.price-fine { margin-top: 9px; text-align: center; font-size: 9px; color: var(--ink-3); }
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 3px 0; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 2px; cursor: pointer; list-style: none; font-size: 13.5px; font-weight: 550; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { font-family: var(--font-num); font-size: 16px; font-weight: 400; color: var(--ink-3); transition: transform .2s; }
.faq details[open] summary .plus { transform: rotate(45deg); }
.faq details p { padding: 0 2px 16px; max-width: 660px; font-size: 12.5px; line-height: 1.65; color: var(--ink-2); }
.cta-band { padding: 20px 0 80px; border-top: 1px solid var(--line); }
.cta { position: relative; overflow: hidden; margin-top: 56px; padding: 46px 32px; border: 1px solid var(--line); border-radius: var(--r-xl); text-align: center; background: radial-gradient(600px 240px at 50% 0%, var(--brand-soft), transparent 70%), var(--surface); }
.cta h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; letter-spacing: -.04em; }
.cta p { margin: 10px auto 0; max-width: 460px; font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }
.cta .hero-actions { justify-content: center; }
.footer { border-top: 1px solid var(--line); padding: 30px 0 36px; }
.footer-in { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { max-width: 360px; }
.footer-brand p { margin-top: 10px; font-size: 10.5px; line-height: 1.6; color: var(--ink-3); }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-col b { display: block; font-family: var(--font-num); font-size: 8px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.footer-col a { display: block; font-size: 11px; color: var(--ink-2); padding: 3px 0; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 9.5px; color: var(--ink-3); flex-wrap: wrap; }

/* ---------------- auth ---------------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.02fr .98fr; }
.auth-left { position: relative; display: flex; flex-direction: column; padding: 28px 32px 40px; }
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-top .btn { border: 0; background: transparent; color: var(--ink-2); }
.auth-center { flex: 1; display: flex; align-items: center; justify-content: center; padding: 30px 0; }
.auth-card { width: min(400px, 100%); }
.auth-card h1 { font-size: 27px; font-weight: 700; letter-spacing: -.04em; line-height: 1.12; }
.auth-card .lede { margin-top: 9px; font-size: 12.5px; line-height: 1.6; color: var(--ink-2); }
.auth-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 11px; }
.auth-field label { font-family: var(--font-num); font-size: 8.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.phone-field { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: var(--surface-2); transition: border-color .15s, box-shadow .15s; }
.phone-field:focus-within { border-color: var(--brand-line); box-shadow: 0 0 0 3px var(--brand-soft); background: var(--surface); }
.phone-field .prefix { display: flex; align-items: center; gap: 5px; padding: 0 11px; border-right: 1px solid var(--line); font-family: var(--font-num); font-size: 11.5px; color: var(--ink-2); background: var(--surface-3); }
.phone-field input { flex: 1; min-width: 0; height: 43px; padding: 0 11px; border: 0; background: transparent; outline: none; font-family: var(--font-num); font-size: 12px; letter-spacing: .02em; }
.pw-reveal { border: 0; border-left: 1px solid var(--line); background: var(--surface-3); padding: 0 12px; color: var(--ink-2); font-family: var(--font-num); font-size: 8.5px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: color .15s, background .15s; }
.pw-reveal:hover { color: var(--ink); background: var(--surface); }
.auth-submit { width: 100%; margin-top: 4px; }
.auth-note { margin-top: 14px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-2); font-size: 9.5px; line-height: 1.55; color: var(--ink-3); }
.auth-note b { color: var(--ink-2); font-weight: 500; }
.auth-legal { margin-top: 18px; text-align: center; font-size: 9px; line-height: 1.5; color: var(--ink-3); }
.auth-legal a { text-decoration: underline; text-underline-offset: 2px; }
.auth-right { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 44px; border-left: 1px solid var(--line); background: var(--bg-2); }
.auth-right::before { content: ""; position: absolute; inset: 0; background: radial-gradient(520px 380px at 20% 15%, var(--brand-soft), transparent 65%), radial-gradient(420px 300px at 90% 90%, var(--bull-soft), transparent 70%); }
.auth-visual { position: relative; width: min(430px, 100%); }
.auth-quote { font-size: 20px; font-weight: 600; letter-spacing: -.03em; line-height: 1.38; }
.auth-quote span { color: var(--brand-2); }
.auth-quote-sub { margin-top: 11px; font-size: 11px; color: var(--ink-3); line-height: 1.55; }
.auth-panel { margin-top: 24px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); box-shadow: var(--pop); padding: 10px; }
.auth-panel-top { display: flex; align-items: center; justify-content: space-between; padding: 2px 3px 9px; font-family: var(--font-num); font-size: 8px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.auth-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.auth-panel .breadth-wrap { height: 88px; margin: 0 0 7px; }
.auth-list { margin-top: 18px; display: flex; flex-direction: column; gap: 7px; }
.auth-list div { display: flex; align-items: center; gap: 7px; font-size: 10.5px; color: var(--ink-3); }
.auth-list .icon { width: 12px; height: 12px; color: var(--bull); }

.toast { position: fixed; left: 50%; bottom: 26px; z-index: 200; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--surface); box-shadow: var(--pop); font-size: 11.5px; color: var(--ink-2); animation: toastIn .3s var(--ease) both; }
.toast .icon { width: 14px; height: 14px; color: var(--bull); }

/* ---------------- mobile ---------------- */
.tabbar { display: none; }
@keyframes fade { from { opacity: 0; } }
@keyframes sheetIn { from { transform: translateX(26px); opacity: .3; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 8px); } }

@media (max-width: 1240px) {
  .content { padding: 22px 20px 80px; }
  .cards { grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); }
  .hero-grid { gap: 36px; }
  .xray-grid { grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); }
}
@media (max-width: 1060px) {
  :root { --rail: 212px; }
  .rail { padding: 18px 12px 14px; }
  .nav-key { display: none; }
  .tape-count b { font-size: 21px; }
  .xray-grid { display: flex; flex-direction: column; gap: 12px; }
  .xray-main, .xray-side { display: contents; }
  .xray-main > .picture { order: 1; }
  .xray-side > .panel:nth-child(1) { order: 2; }
  .xray-main > .panel { order: 3; }
  .xray-side > .panel:nth-child(2) { order: 4; }
  .xray-side > .panel:nth-child(3) { order: 5; }
  .journal-grid { grid-template-columns: 1fr; grid-template-areas: "main" "trades" "side"; }
  .journal-side { display: grid; grid-template-columns: 1fr 1fr; }
  .pricing-band { grid-template-columns: 1fr 360px; gap: 30px; }
  .hero h1 { font-size: clamp(36px, 5vw, 50px); }
}
@media (max-width: 900px) {
  .app { display: block; }
  .rail { display: none; }
  .topbar { height: 58px; padding: 0 16px; gap: 9px; }
  .topbar-logo { display: inline-flex; }
  .topbar-logo .logo-word { font-size: 15px; }
  .topbar-logo .brand-mark { width: 24px; height: 24px; }
  .crumb { display: none; }
  .search { margin-left: auto; width: min(240px, 34vw); }
  .top-actions .theme-toggle { display: none; }
  .content { padding: 18px 16px 92px; }
  .page-head { gap: 14px; margin-bottom: 14px; }
  .page-head h1 { font-size: 26px; }
  .page-head .sub { font-size: 12px; }
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    height: calc(56px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid var(--line); background: var(--glass);
    backdrop-filter: blur(18px) saturate(140%);
  }
  .tabbar a, .tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 0; background: transparent; color: var(--ink-3); font-size: 9px; font-weight: 500; }
  .tabbar .icon { width: 19px; height: 19px; }
  .tabbar [aria-current="page"] { color: var(--brand-2); }
  .tabbar .avatar { width: 20px; height: 20px; font-size: 8px; }
  .hero { padding: 44px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { max-width: 620px; }
  .hero .lede { max-width: 560px; }
  .hero::before { inset: -40px -20vw 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .pricing-band { grid-template-columns: 1fr; gap: 26px; }
  .price-card { max-width: 460px; }
  .band { padding: 54px 0; }
  .auth { grid-template-columns: 1fr; }
  .auth-right { display: none; }
  .auth-left { padding: 22px 22px 34px; min-height: 100vh; }
  .land-links { display: none; }
  .land-nav-in { gap: 12px; }
  .land-nav-actions .btn-ghost { display: none; }
  .footer-in { flex-direction: column; gap: 22px; }
  .session-meta { display: none; }
  .xray-picture .breadth-wrap { height: 190px; }
  .xray-stats { grid-template-columns: 1fr 1fr; }
  .xray-stat:nth-child(2) { border-right: 0; }
  .xray-stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .sheet { width: 100%; }
  .sheet-head { padding: 12px 16px 0; }
  .sheet-scroll { padding: 14px 16px 70px; }
  .rule-banner { padding: 8px 16px; }
  .stock-chart-wrap { height: 300px; }
  .sheet-actions { position: sticky; bottom: 0; background: var(--bg-2); padding: 10px 0 2px; margin-top: 12px; }
}
@media (max-width: 640px) {
  .content { padding: 14px 12px 88px; }
  .page-head h1 { font-size: 23px; letter-spacing: -.03em; }
  .page-head .sub { display: none; }
  .picture { padding: 12px 12px 2px; border-radius: var(--r); }
  .picture-head { flex-wrap: wrap; gap: 8px; }
  .picture-sub { display: none; }
  .sector-callouts { margin-top: 6px; }
  .tape-counts { gap: 13px; }
  .tape-count b { font-size: 18px; }
  .tape-count .k { font-size: 7.5px; }
  .breadth-wrap { height: 126px; }
  .picture-foot { padding-bottom: 8px; }
  .picture-foot .legend { gap: 9px; }
  .legend span { font-size: 9px; }
  .session { gap: 8px; padding: 8px 10px; }
  .session-clock { min-width: 0; gap: 5px; }
  .session-clock b { font-size: 10.5px; }
  .session-clock span { display: none; }
  .session-play { width: 27px; height: 27px; }
  .cards { grid-template-columns: 1fr; gap: 8px; }
  .card-profile { height: 62px; }
  .quote-price { font-size: 22px; }
  .board-bar { gap: 8px; margin-top: 12px; }
  .board-bar-side { width: 100%; justify-content: space-between; }
  .tab { padding: 0 9px; font-size: 11.5px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-cell:nth-child(2n) { border-right: 0; }
  .stat-cell:nth-child(4n) { border-right: 0; }
  .stat-cell:nth-last-child(-n+4) { border-bottom: 1px solid var(--line); }
  .stat-cell:nth-last-child(-n+2) { border-bottom: 0; }
  .stock-chart-wrap { height: 268px; }
  .sheet-sym { font-size: 17px; }
  .sheet-price b { font-size: 23px; }
  .sheet-quick { gap: 10px; }
  .quick-stat .v { font-size: 11px; }
  .sheet-section-title { margin-top: 14px; }
  .read-item { font-size: 10.5px; }
  .rule-banner .why { display: none; }
  .journal-side { grid-template-columns: 1fr; }
  .kpi .v { font-size: 18px; }
  .fields { grid-template-columns: 1fr 1fr; }
  .field.full { grid-column: 1 / -1; }
  .sector-row { grid-template-columns: 96px minmax(50px, 1fr) 50px 34px; gap: 7px; padding: 7px 11px; }
  .trades { min-width: 520px; }
  .hero { padding-top: 34px; }
  .hero h1 { font-size: clamp(34px, 10vw, 44px); }
  .hero .lede { font-size: 13.5px; }
  .hero-proof { gap: 16px; }
  .proof b { font-size: 14px; }
  .proof span { font-size: 7.5px; }
  .proof i { display: none; }
  .preview { padding: 8px; }
  .preview-grid { grid-template-columns: 1fr; gap: 5px; }
  .preview-grid > :nth-child(n+3) { display: none; }
  .card.compact .card-profile { display: none; }
  .card.compact .quote-spark { display: none; }
  .land-wrap { padding: 0 16px; }
  .land-nav-in { padding: 0 16px; height: 58px; }
  .land-nav-actions .btn { height: 34px; padding: 0 11px; font-size: 11.5px; }
  .band { padding: 44px 0; }
  .section-head { margin-bottom: 22px; }
  .cta { padding: 34px 18px; margin-top: 40px; }
  .faq summary { font-size: 12.5px; }
  .footer-bottom { font-size: 9px; }
  .auth-quote { font-size: 18px; }
  .auth-left { padding: 18px 18px 28px; }
  .auth-card h1 { font-size: 24px; }
  .toast { bottom: 76px; width: calc(100% - 24px); justify-content: center; }
  .search { width: 36px; }
  .search input { padding: 0; color: transparent; cursor: pointer; }
  .search input::placeholder { color: transparent; }
  .search .s-icon { left: 10px; }
  .search kbd { display: none; }
  .search.mobile-open { position: fixed; left: 12px; right: 12px; top: 8px; width: auto; z-index: 120; }
  .search.mobile-open input { padding: 0 36px 0 34px; color: var(--ink); background: var(--surface); cursor: text; box-shadow: var(--pop); }
  .search.mobile-open input::placeholder { color: var(--ink-3); }
  .search.mobile-open .search-pop { width: 100%; }
  .search.mobile-open .s-close { display: grid; }
  .s-close { display: none; position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; place-items: center; border: 0; border-radius: 5px; background: transparent; color: var(--ink-3); }
}
@media (max-width: 400px) {
  .preview-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1; min-width: 0; padding: 0 10px; }
  .tape-counts { gap: 10px; }
  .tape-count b { font-size: 16px; }
    .sheet-quote { gap: 8px; }
  .sheet-quick { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------------- helpers added after the first pass ---------------- */
html { scroll-behavior: smooth; }
body.no-scroll { overflow: hidden; }
[id] { scroll-margin-top: 78px; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 300; display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 8px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 600; box-shadow: var(--pop); transition: top .18s var(--ease); }
.skip-link:focus { top: 12px; }
.search-pop:empty { display: none; }
.sheet-head .rule-banner { margin: 10px -22px 0; }
.trades .exit-input { width: 68px; height: 25px; padding: 0 5px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-2); color: var(--ink); font-family: var(--font-num); font-size: 10px; outline: none; }
.trades .exit-input:focus { border-color: var(--brand-line); box-shadow: 0 0 0 2px var(--brand-soft); background: var(--surface); }
@media (max-width: 760px) {
  .sheet-head .rule-banner { margin: 10px -16px 0; }
  .trades-desktop { display: none; }
  .trades-mobile { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}