@font-face { font-family: "Space Grotesk"; src: url("/fonts/space-grotesk.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/plex-mono-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

/* ------------------------------------------------------------------
   Type and colour
   Prose reads in Space Grotesk at 16-17 px. Numbers, labels, tables and
   anything that lines up in columns stay in IBM Plex Mono. Nothing on the
   page is set under 13 px, and no text is gradient-clipped.
   ------------------------------------------------------------------ */
:root {
  color-scheme: dark;
  --void: #050712;
  --panel: rgba(11, 15, 31, .88);
  --panel-solid: #0b0f1f;
  --line: rgba(135, 162, 255, .16);
  --line-hot: rgba(92, 242, 255, .5);
  --text: #f5f7ff;
  --soft: #c3cae0;
  --muted: #9aa4c0;
  --dim: #7b86a3;
  --cyan: #5cf2ff;
  --violet: #9574ff;
  --lime: #b8ff63;
  --amber: #ffc55c;
  --red: #ff5178;
  --sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --fs-label: 13px;
  --fs-small: 14px;
  --fs-body: 16px;
  --fs-lede: 18px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--void); scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 82% 6%, rgba(149, 116, 255, .13), transparent 60%),
    radial-gradient(700px 440px at 6% 28%, rgba(92, 242, 255, .09), transparent 64%),
    var(--void);
  font: 500 var(--fs-body)/1.55 var(--sans);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image: linear-gradient(rgba(112, 167, 255, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(112, 167, 255, .025) 1px, transparent 1px);
  background-size: 56px 56px;
}
#neural-bg { position: fixed; inset: 0; z-index: -2; width: 100%; height: 100%; opacity: .5; pointer-events: none; }

h1, h2, h3 { font-family: var(--sans); }
h1 { margin: 0; font-size: clamp(42px, 5.6vw, 82px); font-weight: 700; line-height: .98; letter-spacing: -.045em; color: var(--text); text-wrap: balance; }
h2 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; text-wrap: balance; }
h3 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.accent { color: var(--cyan); font-style: normal; }
.accent-violet { color: var(--violet); font-style: normal; }
.accent-lime { color: var(--lime); font-style: normal; }
p { margin: 0; }
b, strong { font-weight: 700; }
small, time, .num, dd, td, th, .ret, .vs, .eq, .delta { font-variant-numeric: tabular-nums; }
.mono, time, .telemetry, .eyebrow, .label, .board-head, .lb-row .eq, .lb-row .ret, .lb-row .vs, .lb-row .rank, .ticker-item strong, .ticker-item small, .ticker-item .src,
.matrix, .pulse span, .stats .label, .stats small, .session-metrics span, .check strong, .check em, .wire li time, .wire li .tag, .chip, .tag, .bar-label, .radar-row b,
.replay-stats span, .forward-card dt, .forward-card dd, .ring span, .ring-wrap small, .card-sub, .curve-key, .panel-head span, .ladder li span, .hero-badges span, .status-line p, #log li, .blot span, .blot b,
.drawer-params span, .drawer-stats span, .drawer-trades li, .chart-tip, footer p, .brand small, .report-card span, .report-card small, .wire-filter button, .matrix-note, .drawer-holdings li {
  font-family: var(--mono);
}

button, input, select { font: inherit; }
button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #d5dbee;
  background: #0e1428;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s, color .15s, transform .15s, background .15s;
}
button:hover { color: #fff; border-color: var(--line-hot); transform: translateY(-1px); }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
button:disabled { opacity: .5; cursor: progress; transform: none; }
button.go { color: #041013; border-color: transparent; background: var(--cyan); box-shadow: 0 0 20px rgba(92, 242, 255, .2); }
button.go i { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: #071416; }
button.go.running { background: var(--lime); }
button.kill { color: #ff9db2; border-color: rgba(255, 81, 120, .4); }

.top, main, footer { width: min(1480px, calc(100% - 40px)); margin-inline: auto; }
.top { padding-top: 18px; }
.masthead { display: flex; gap: 18px; align-items: center; justify-content: space-between; padding-bottom: 14px; }
.brand { display: flex; min-width: 0; gap: 12px; align-items: center; color: inherit; text-decoration: none; font: 700 18px var(--sans); letter-spacing: .08em; }
.brand small { display: block; color: var(--muted); font-size: var(--fs-label); line-height: 1.5; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.site-nav { display: flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: rgba(9, 13, 27, .6); }
.site-nav a { padding: 8px 13px; border-radius: 6px; color: var(--muted); font: 600 13px var(--mono); letter-spacing: .05em; text-decoration: none; text-transform: uppercase; white-space: nowrap; }
.site-nav a:hover, .site-nav a.active { color: var(--text); background: rgba(92, 242, 255, .1); }
.telemetry { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.telemetry span, .telemetry time { padding: 7px 11px; border: 1px solid rgba(135, 162, 255, .12); border-radius: 7px; color: var(--soft); background: rgba(9, 13, 27, .62); font-size: var(--fs-label); letter-spacing: .03em; text-transform: uppercase; }
.telemetry .bad { color: var(--red); border-color: rgba(255, 81, 120, .35); }
.live-chip b { color: var(--lime); font-weight: 600; letter-spacing: .1em; }
.live-chip em { color: var(--muted); font-style: normal; text-transform: none; }
.live-chip.beat .live-dot { animation: beat .6s ease-out; }
.live-dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; vertical-align: 1px; background: var(--lime); box-shadow: 0 0 10px var(--lime); }
.bad .live-dot { background: var(--red); box-shadow: 0 0 10px var(--red); }
@keyframes beat { 0% { transform: scale(1.9); box-shadow: 0 0 0 6px rgba(184, 255, 99, .35); } 100% { transform: scale(1); } }

/* ---------------------------------------------------------------- hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(380px, .8fr); gap: 34px; align-items: center; padding: 44px 4px 26px; }
.hero-copy { min-width: 0; }
.eyebrow { margin: 0 0 12px; color: var(--cyan); font-size: var(--fs-label); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.lede { max-width: 720px; margin: 22px 0 20px; color: var(--soft); font-size: var(--fs-lede); line-height: 1.6; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; }
.cta { display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 20px; border: 1px solid rgba(92, 242, 255, .35); border-radius: 10px; color: var(--text); background: rgba(8, 12, 25, .7); font: 700 16px var(--sans); letter-spacing: .01em; text-decoration: none; transition: border-color .2s, background .2s, transform .2s; }
.cta:hover { border-color: rgba(92, 242, 255, .7); background: rgba(92, 242, 255, .08); }
.cta-main { border-color: transparent; color: #031216; background: var(--cyan); box-shadow: 0 0 28px rgba(92, 242, 255, .28); }
.cta-main:hover { background: #8ff7ff; transform: translateY(-1px); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-badges span { padding: 7px 11px; border: 1px solid rgba(92, 242, 255, .2); border-radius: 7px; color: var(--soft); background: rgba(8, 12, 25, .6); font-size: var(--fs-label); letter-spacing: .06em; }
.forward-card { padding: 22px; border: 1px solid rgba(92, 242, 255, .32); border-radius: 16px; background: rgba(9, 13, 28, .92); box-shadow: 0 0 50px rgba(92, 242, 255, .08); cursor: pointer; transition: border-color .2s; }
.forward-card:hover { border-color: rgba(92, 242, 255, .6); }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.forward-card > strong { display: block; margin-top: 10px; font: 700 50px/1 var(--sans); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.forward-card > span { display: block; color: var(--soft); font-size: var(--fs-small); }
.forward-card .delta { min-height: 1.5em; margin-top: 6px; font-size: var(--fs-small); font-weight: 600; }
.forward-card .now { margin-top: 4px; color: var(--text); font-size: var(--fs-small); }
.forward-card .now b { color: var(--lime); }
.forward-card canvas { display: block; width: 100%; height: 96px; margin: 12px 0; }
.forward-card dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; }
.forward-card dt { color: var(--muted); font-size: var(--fs-label); text-transform: uppercase; }
.forward-card dd { margin: 3px 0 0; font-size: 16px; font-weight: 600; }
.forward-card .fine { margin: 12px 0 0; }
.forward-card .open-hint { display: block; margin-top: 12px; color: var(--cyan); font: 600 13px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.ring { position: relative; flex: 0 0 auto; width: 66px; height: 66px; }
.ring svg { width: 66px; height: 66px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 3.5; }
.ring-track { stroke: rgba(135, 162, 255, .18); }
.ring-fill { stroke: var(--cyan); stroke-linecap: round; stroke-dasharray: 119.4; stroke-dashoffset: 119.4; transition: stroke-dashoffset 1s linear; }
.ring span { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text); font-size: 13px; font-weight: 600; }
.ring-wrap { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ring-wrap small { color: var(--muted); font-size: var(--fs-label); white-space: nowrap; }
.card-sub { display: block; color: var(--muted); font-size: var(--fs-label); }
.forward-card .eyebrow { margin-bottom: 4px; }
.curve-key { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin: -6px 0 12px; color: var(--muted); font-size: var(--fs-label); }
.curve-key i { display: inline-block; width: 14px; height: 2px; margin-right: -8px; vertical-align: middle; }
.key-cyan { background: var(--cyan); }
.key-violet { background: var(--violet); }

/* ---------------------------------------------------------------- pulse + tape */
.pulse { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; margin-bottom: 12px; overflow: hidden; border: 1px solid rgba(92, 242, 255, .22); border-radius: 12px; background: rgba(92, 242, 255, .14); }
.pulse > div { min-width: 0; padding: 14px 16px; background: rgba(7, 10, 22, .96); }
.pulse span { display: block; color: var(--muted); font-size: var(--fs-label); letter-spacing: .06em; }
.pulse strong { display: block; margin-top: 5px; font: 700 21px/1.2 var(--sans); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

.ticker-shell { display: grid; grid-template-columns: 124px minmax(0, 1fr); overflow: hidden; border: 1px solid rgba(92, 242, 255, .2); border-radius: 12px; background: rgba(8, 12, 25, .8); }
.ticker-title { display: flex; flex-direction: column; justify-content: center; padding: 10px 14px; border-right: 1px solid var(--line); background: rgba(92, 242, 255, .06); }
.ticker-title span { color: var(--cyan); font: 600 13px var(--mono); letter-spacing: .12em; }
.ticker-title small { color: var(--muted); font-size: var(--fs-label); }
.ticker { display: flex; min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 48px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 48px), transparent 100%); }
.ticker::-webkit-scrollbar { display: none; }
.ticker-item { position: relative; flex: 0 0 180px; padding: 11px 14px 9px; border-right: 1px solid var(--line); transition: background .4s; }
.ticker-item div { display: flex; justify-content: space-between; gap: 6px; align-items: baseline; }
.ticker-item b { font: 700 15px var(--mono); }
.ticker-item strong { display: block; margin-top: 2px; font: 700 22px var(--sans); font-variant-numeric: tabular-nums; transition: color .3s; }
.ticker-item small { color: var(--muted); font-size: var(--fs-label); }
.ticker-item canvas { display: block; width: 100%; height: 30px; margin: 4px 0 2px; }
.ticker-item .src { padding: 1px 5px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: 13px; }
.ticker-item.held { background: rgba(184, 255, 99, .06); box-shadow: inset 0 -2px 0 var(--lime); }
.ticker-item.hot-up { background: rgba(184, 255, 99, .09); }
.ticker-item.hot-down { background: rgba(255, 81, 120, .09); }

/* ---------------------------------------------------------------- leaderboard + wire */
.live-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(340px, 1fr); gap: 12px; margin-top: 12px; }
.board-head, .lb-row { display: grid; grid-template-columns: 34px minmax(0, 2.2fr) 1.1fr .8fr .8fr 1.1fr 120px; gap: 10px; align-items: center; }
.board-head { padding: 6px 10px; color: var(--muted); font-size: var(--fs-label); letter-spacing: .06em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.board { position: relative; }
.lb-row { padding: 11px 10px; border-bottom: 1px solid rgba(135, 162, 255, .08); font-size: 15px; font-variant-numeric: tabular-nums; transition: background .4s; will-change: transform; cursor: pointer; }
.lb-row:hover { background: rgba(92, 242, 255, .05); }
.lb-row .rank { color: var(--muted); font-size: 15px; font-weight: 600; }
.lb-row .name { min-width: 0; }
.lb-row .name b { display: -webkit-box; overflow: hidden; font: 700 15px/1.3 var(--sans); -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lb-row .name small { color: var(--muted); font: 13px var(--mono); text-transform: uppercase; letter-spacing: .05em; }
.lb-row .eq { font: 700 17px var(--sans); }
.lb-row .hold { overflow: hidden; color: var(--soft); font: 14px/1.35 var(--mono); }
.lb-row .hold.cash { color: var(--muted); }
.lb-row canvas { width: 120px; height: 30px; }
.lb-row.primary { background: rgba(92, 242, 255, .06); box-shadow: inset 3px 0 0 var(--cyan); }
.lb-row.benchmark { box-shadow: inset 3px 0 0 var(--violet); }
.lb-row.flash { background: rgba(255, 197, 92, .12); }
.lb-row.open { outline: 1px solid rgba(92, 242, 255, .45); outline-offset: -1px; }

.wire { max-height: 560px; margin: 0; padding: 0; overflow: auto; list-style: none; }
.wire li { display: grid; grid-template-columns: 76px 1fr; gap: 10px; padding: 9px 4px; border-top: 1px solid rgba(135, 162, 255, .08); color: var(--soft); font-size: var(--fs-small); line-height: 1.45; }
.wire li time { color: var(--muted); font-size: var(--fs-label); padding-top: 1px; }
.wire li .tag { display: inline-block; margin-right: 6px; padding: 1px 6px; border-radius: 4px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; border: 1px solid var(--line); color: var(--muted); }
.wire li.fill .tag { color: #0a1a02; background: var(--lime); border-color: transparent; }
.wire li.decision .tag { color: #1a1200; background: var(--amber); border-color: transparent; }
.wire li.bar .tag { color: #021316; background: var(--cyan); border-color: transparent; }
.wire li.move .tag { color: var(--violet); border-color: rgba(149, 116, 255, .55); }
.wire li.error .tag { color: #fff; background: var(--red); border-color: transparent; }
.wire li.fill, .wire li.decision { color: var(--text); }
.wire li.go span.text { color: #d9ffc0; }
.wire li.veto span.text { color: #ffc1cd; }
.wire li.enter { animation: enter .7s ease-out; }
.wire li.cost { padding-top: 6px; padding-bottom: 6px; opacity: .78; }
.wire li.cost span.text { color: var(--muted); }
.wire li.cost .cost-row { display: inline-flex; flex-wrap: wrap; gap: 4px 10px; }
.wire li.cost .cost-row b { color: var(--soft); font-weight: 600; }
.wire li.cost .cost-row .cheap { color: var(--lime); }
.wire-filter { display: flex; flex-wrap: wrap; gap: 4px; margin: -2px 0 8px; }
.wire-filter button { min-height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: transparent; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.wire-filter button[aria-pressed="true"] { color: #061016; background: var(--cyan); border-color: transparent; font-weight: 600; }
#wire[data-filter="trades"] li:not(.fill):not(.decision):not(.error),
#wire[data-filter="moves"] li:not(.move):not(.bar),
#wire[data-filter="costs"] li:not(.cost) { display: none; }
.wire-empty { padding: 14px 4px; color: var(--muted); font-size: var(--fs-small); }
@keyframes enter { from { opacity: 0; transform: translateX(-14px); background: rgba(92, 242, 255, .16); } to { opacity: 1; transform: none; background: transparent; } }

/* ---------------------------------------------------------------- radar */
.radar-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.radar { display: grid; gap: 9px; }
.radar-row { display: grid; grid-template-columns: 76px 1fr 124px; gap: 12px; align-items: center; font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
.radar-row b { font-size: 15px; }
.bar-track { position: relative; height: 28px; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: rgba(5, 8, 18, .7); }
.bar-track .zero { position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: rgba(255, 255, 255, .25); }
.bar-fill { position: absolute; top: 3px; bottom: 3px; border-radius: 4px; transition: left .9s cubic-bezier(.2, .8, .2, 1), width .9s cubic-bezier(.2, .8, .2, 1), background .4s; }
.bar-fill.pos { background: rgba(184, 255, 99, .8); }
.bar-fill.neg { background: rgba(255, 81, 120, .8); }
.bar-fill.rsi { left: 0; background: rgba(92, 242, 255, .55); }
.bar-fill.rsi.oversold { background: rgba(184, 255, 99, .8); }
.bar-track .mark { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--amber); opacity: .85; }
.bar-label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--text); font-size: 13px; font-weight: 600; text-shadow: 0 1px 3px #000, 0 0 6px rgba(0, 0, 0, .8); }
.chip { justify-self: end; padding: 4px 9px; border-radius: 5px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.chip.in { color: #0a1a02; background: var(--lime); border-color: transparent; }
.chip.near { color: #1a1200; background: var(--amber); border-color: transparent; }
.chip.block { color: var(--red); border-color: rgba(255, 81, 120, .4); }

/* ---------------------------------------------------------------- paper desk */
.command-bar { position: sticky; top: 8px; z-index: 10; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 8px; border: 1px solid rgba(92, 242, 255, .28); border-radius: 12px; background: rgba(7, 10, 22, .94); box-shadow: 0 14px 44px rgba(0, 0, 0, .3); backdrop-filter: blur(14px); }
.mode-hint { margin: 10px 4px 0; color: var(--soft); font-size: var(--fs-small); }
.mode-hint b { color: var(--text); }
.desk { margin-top: 18px; scroll-margin-top: 16px; }
.desk .section-head { padding-top: 22px; }
.switch { display: flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: #070a16; }
.switch button { min-height: 38px; border: 0; background: transparent; }
.switch button[aria-pressed="true"] { color: #061016; background: var(--cyan); font-weight: 700; }
.switch #mode-live[aria-pressed="true"] { background: var(--amber); }
.picker { display: flex; gap: 8px; align-items: center; color: var(--muted); font: 600 13px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.picker select { max-width: 380px; min-height: 44px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--text); background: #0e1428; font: 600 15px var(--sans); }
.command-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }

.stats { display: grid; grid-template-columns: 1.4fr repeat(5, 1fr); gap: 9px; margin-top: 12px; }
.stats > div, .panel, .ladder, .approve { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.stats > div { min-width: 0; padding: 15px; }
.label { display: block; overflow: hidden; color: var(--muted); font-size: var(--fs-label); letter-spacing: .06em; text-overflow: ellipsis; white-space: nowrap; }
.stats strong { display: block; overflow: hidden; margin-top: 8px; font: 700 22px var(--sans); text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.stats small { display: block; margin-top: 3px; color: var(--muted); font-size: var(--fs-label); }
.equity-card strong { font-size: 32px; }
#curve { display: block; width: 100%; height: 60px; margin-top: 4px; }
.up { color: var(--lime) !important; }
.down { color: var(--red) !important; }
.flash-up { animation: flash-up .9s; }
.flash-down { animation: flash-down .9s; }
@keyframes flash-up { from { color: var(--lime); text-shadow: 0 0 14px rgba(184, 255, 99, .7); } }
@keyframes flash-down { from { color: var(--red); text-shadow: 0 0 14px rgba(255, 81, 120, .7); } }

.session-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 9px; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--line); }
.session-metrics > div { display: flex; min-width: 0; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 15px; background: rgba(7, 10, 22, .95); }
.session-metrics span { color: var(--muted); font-size: var(--fs-label); letter-spacing: .06em; }
.session-metrics strong { color: #e6ebf7; font: 600 15px var(--mono); white-space: nowrap; }

.verdict-strip { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; margin-top: 10px; padding: 15px 18px; border: 1px solid rgba(255, 197, 92, .35); border-radius: 10px; color: var(--soft); background: rgba(255, 197, 92, .04); font-size: var(--fs-small); line-height: 1.5; text-decoration: none; }
.verdict-strip b { color: var(--amber); font: 600 13px var(--mono); letter-spacing: .1em; }
.verdict-strip em { color: var(--cyan); font-style: normal; font-weight: 700; white-space: nowrap; }
.verdict-strip:hover { border-color: rgba(255, 197, 92, .6); }
.status-line { display: flex; gap: 10px; align-items: center; min-height: 48px; }
.status-line p { margin: 0; color: var(--soft); font-size: var(--fs-small); }
.status-mark { flex: 0 0 auto; width: 8px; height: 8px; border: 1px solid var(--cyan); transform: rotate(45deg); }
.status-rule { flex: 1; height: 1px; background: var(--line); }

.approve { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; margin-bottom: 16px; padding: 18px 20px; border-color: rgba(255, 197, 92, .5); }
.approve-sigil { display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid var(--amber); border-radius: 50%; color: var(--amber); font: 700 22px var(--sans); }
.approve p { margin: 4px 0 0; color: var(--soft); font-size: var(--fs-small); }
.approve form { min-width: min(100%, 340px); }
label { display: block; margin-bottom: 6px; color: var(--soft); font-size: var(--fs-label); }
input { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid rgba(255, 197, 92, .45); border-radius: 8px; color: #fff; background: rgba(3, 5, 12, .8); font: 600 16px var(--mono); }
.row-actions { display: flex; gap: 7px; margin-top: 7px; }

.section-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; padding: 34px 4px 14px; }
.section-head h2 { font-size: clamp(26px, 2.6vw, 34px); }
.section-head p { max-width: 520px; margin: 0; color: var(--soft); font-size: var(--fs-small); line-height: 1.55; }
.section-head .eyebrow { margin-bottom: 6px; }

/* ---------------------------------------------------------------- panels, matrix, risk */
.floor { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 12px; }
.panel { min-width: 0; padding: 18px; }
.panel-head { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.panel-head h2 { font-size: 20px; }
.panel-head span { color: var(--muted); font-size: var(--fs-label); letter-spacing: .06em; text-transform: uppercase; text-align: right; }
.fine { color: var(--soft); font-size: var(--fs-small); line-height: 1.55; }
.panel > .fine { margin-bottom: 12px; }
.table-wrap { overflow-x: auto; }
.matrix { width: 100%; border-collapse: collapse; font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
.matrix th { padding: 9px 8px; color: var(--muted); font-size: var(--fs-label); font-weight: 600; letter-spacing: .06em; text-align: right; text-transform: uppercase; border-bottom: 1px solid var(--line); white-space: nowrap; }
.matrix th button { min-height: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.matrix th button:hover { color: var(--text); transform: none; }
.matrix th button::after { content: " ↕"; opacity: .5; }
.matrix th[aria-sort="descending"] button::after { content: " ↓"; opacity: 1; color: var(--cyan); }
.matrix th[aria-sort="ascending"] button::after { content: " ↑"; opacity: 1; color: var(--cyan); }
.matrix td { padding: 10px 8px; text-align: right; border-bottom: 1px solid rgba(135, 162, 255, .07); white-space: nowrap; }
.matrix th:first-child, .matrix td:first-child { text-align: left; }
.matrix td:first-child b { font-weight: 700; }
.matrix td:first-child a { margin-left: 8px; color: var(--muted); font-size: 13px; text-decoration: none; }
.matrix td:first-child a:hover { color: var(--cyan); }
.matrix td canvas { display: inline-block; width: 90px; height: 24px; vertical-align: middle; }
.matrix tr.held td { background: rgba(184, 255, 99, .05); }
.matrix .tag { padding: 3px 8px; border-radius: 4px; font-size: 13px; }
.matrix .cost-cheap { color: var(--lime); }
.matrix .cost-mid { color: var(--amber); }
.matrix .cost-dear { color: var(--red); }
.matrix-note { margin-top: 10px; color: var(--muted); font-size: var(--fs-label); }
.tag.in { color: #0a1a02; background: var(--lime); }
.tag.out { color: var(--muted); border: 1px solid var(--line); }
.tag.dear { color: var(--red); border: 1px solid rgba(255, 81, 120, .35); }

.check { display: grid; grid-template-columns: 1fr auto; gap: 2px 9px; padding: 10px 0; border-top: 1px solid rgba(135, 162, 255, .08); }
.check span { color: var(--text); font-size: 15px; font-weight: 600; }
.check strong { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.check em { grid-column: 1 / -1; color: var(--muted); font-size: 13px; font-style: normal; }
.verdict { margin: 12px 0 0; padding: 12px; border: 1px solid currentColor; border-radius: 8px; font: 700 14px var(--sans); letter-spacing: .1em; text-align: center; }
.verdict.hold { color: var(--amber); }
.verdict.go { color: var(--lime); }
.verdict.veto { color: var(--red); }

/* ---------------------------------------------------------------- charts */
.replay-panel { margin-top: 12px; }
.replay-stage, .chart-stage { position: relative; }
#replay-curve { display: block; width: 100%; height: 260px; }
.chart-canvas { display: block; width: 100%; }
.replay-empty { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 0 12%; color: var(--muted); font-size: var(--fs-small); text-align: center; border: 1px dashed rgba(135, 162, 255, .16); border-radius: 10px; }
.replay-panel.done .replay-empty { display: none; }
.chart-tip { position: absolute; z-index: 3; min-width: 150px; padding: 8px 10px; border: 1px solid var(--line-hot); border-radius: 8px; background: rgba(5, 8, 18, .96); color: var(--text); font-size: 13px; line-height: 1.5; pointer-events: none; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.chart-tip b { display: block; color: var(--muted); font-weight: 400; }
.chart-tip i { display: inline-block; width: 10px; height: 2px; margin-right: 6px; vertical-align: middle; }
.chart-tip .trade { color: var(--amber); }
.chart-stage[data-hover="true"] { cursor: crosshair; }
.replay-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 10px; }
.replay-stats div { padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; }
.replay-stats span { display: block; color: var(--muted); font-size: var(--fs-label); text-transform: uppercase; }
.replay-stats strong { display: block; margin-top: 4px; font: 700 19px var(--sans); }
.replay-key { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 8px 0 0; color: var(--muted); font: 13px var(--mono); }
.replay-key i { display: inline-block; width: 14px; height: 2px; margin-right: 6px; vertical-align: middle; }
.replay-key .k-buy, .replay-key .k-sell { width: 8px; height: 8px; border-radius: 50%; }
.replay-key .k-buy { background: var(--lime); }
.replay-key .k-sell { background: var(--red); }

/* ---------------------------------------------------------------- ladder, lower, footer */
.ladder { display: grid; grid-template-columns: 340px 1fr; gap: 30px; margin-top: 30px; padding: 26px; border-color: rgba(149, 116, 255, .24); }
.ladder-copy h2 { font-size: clamp(26px, 2.6vw, 34px); }
.ladder-copy p:last-child { margin-top: 12px; color: var(--soft); font-size: 15px; line-height: 1.55; }
.ladder ol { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; align-items: end; margin: 0; padding: 0; list-style: none; }
.ladder li { min-height: 120px; padding: 13px; border: 1px solid rgba(135, 162, 255, .12); border-radius: 8px; background: rgba(5, 8, 18, .55); }
.ladder li:nth-child(2) { min-height: 140px; }
.ladder li:nth-child(3) { min-height: 160px; }
.ladder li:nth-child(4) { min-height: 180px; }
.ladder li:nth-child(5) { min-height: 200px; }
.ladder li.on { border-color: rgba(92, 242, 255, .6); box-shadow: 0 0 24px rgba(92, 242, 255, .1); }
.ladder li.locked { opacity: .55; }
.ladder li span { color: var(--cyan); font-size: var(--fs-label); font-weight: 600; }
.ladder li strong { display: block; margin-top: 8px; font: 700 17px var(--sans); }
.ladder li small { display: block; margin-top: 6px; color: var(--soft); font-size: var(--fs-label); line-height: 1.45; }

.lower { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0 24px; }
.lower .panel { min-height: 200px; }
#log { max-height: 340px; margin: 0; padding: 0; overflow: auto; list-style: none; }
#log:empty::before { content: "Decisions show up here once the engine runs: what the bot wanted, what the risk checks allowed, and what filled."; display: block; color: var(--soft); font: 500 var(--fs-small)/1.55 var(--sans); }
#blotter .fine b { color: var(--text); }
#log li { padding: 8px 2px; border-top: 1px solid rgba(135, 162, 255, .08); color: var(--soft); font-size: 13px; line-height: 1.5; }
#log li.go { color: var(--lime); }
#log li.hold { color: var(--amber); }
#log li.veto { color: var(--red); }
.blot { display: grid; grid-template-columns: 1fr auto; gap: 2px 9px; padding: 10px 0; border-top: 1px solid rgba(135, 162, 255, .08); }
.blot strong { font: 700 15px var(--sans); }
.blot b { font-size: 15px; }
.blot span { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }

footer { display: flex; gap: 20px; align-items: center; justify-content: space-between; padding: 24px 0 40px; border-top: 1px solid rgba(135, 162, 255, .09); }
.brand-mini { display: flex; gap: 8px; align-items: center; font: 700 14px var(--sans); letter-spacing: .08em; }
footer p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; text-transform: uppercase; }

/* ---------------------------------------------------------------- bot drawer */
.drawer-scrim { position: fixed; inset: 0; z-index: 40; background: rgba(2, 4, 10, .62); backdrop-filter: blur(3px); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 41; width: min(560px, 100%); overflow-y: auto; padding: 22px 24px 32px; border-left: 1px solid rgba(92, 242, 255, .35); background: #070a16; box-shadow: -30px 0 80px rgba(0, 0, 0, .55); animation: slide-in .32s cubic-bezier(.2, .8, .2, 1); }
@keyframes slide-in { from { transform: translateX(40px); opacity: 0; } }
.drawer-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.drawer-head h2 { font-size: 26px; }
.drawer-close { flex: 0 0 auto; min-height: 40px; padding: 0 12px; }
.drawer-role { display: inline-block; margin: 0 0 8px; padding: 3px 8px; border-radius: 5px; font: 600 13px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.drawer-role.primary { color: #021316; background: var(--cyan); }
.drawer-role.candidate { color: var(--soft); border: 1px solid var(--line); }
.drawer-role.benchmark { color: #120a2a; background: var(--violet); }
.drawer .lede { margin: 12px 0 14px; font-size: 16px; }
.drawer-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.drawer-stats div { padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; }
.drawer-stats span { display: block; color: var(--muted); font-size: var(--fs-label); text-transform: uppercase; }
.drawer-stats strong { display: block; margin-top: 4px; font: 700 19px var(--sans); font-variant-numeric: tabular-nums; }
.drawer h3 { margin: 18px 0 8px; }
.drawer-params { display: flex; flex-wrap: wrap; gap: 6px; }
.drawer-params span { padding: 4px 9px; border: 1px solid var(--line); border-radius: 6px; color: var(--soft); font-size: 13px; }
.drawer-params span b { color: var(--text); }
.drawer-holdings, .drawer-trades { margin: 0; padding: 0; list-style: none; }
.drawer-holdings li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid rgba(135, 162, 255, .08); font-size: var(--fs-small); }
.drawer-holdings li b { color: var(--text); }
.drawer-holdings li.cash span { color: var(--muted); }
.drawer-trades li { display: grid; grid-template-columns: 58px 1fr auto; gap: 10px; padding: 9px 0; border-top: 1px solid rgba(135, 162, 255, .08); font-size: 13px; color: var(--soft); align-items: baseline; }
.drawer-trades li .side { font-weight: 600; text-transform: uppercase; }
.drawer-trades li .side.buy { color: var(--lime); }
.drawer-trades li .side.sell { color: var(--red); }
.drawer-trades li small { display: block; color: var(--muted); font-size: 13px; }
.drawer-trades li .usd { color: var(--text); font-weight: 600; }
.drawer-empty, .drawer-trades li.drawer-empty { display: block; padding: 10px 0; color: var(--muted); font: 500 var(--fs-small)/1.55 var(--sans); }
.drawer canvas { display: block; width: 100%; height: 200px; }
.drawer .fine { margin-top: 10px; }
body.drawer-open { overflow: hidden; }

/* ---------------------------------------------------------------- research */
.research-hero { max-width: 1040px; padding: 70px 4px 40px; }
.research-hero h1 { font-size: clamp(40px, 5vw, 72px); }
.report-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 10px 0; }
.report-card { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.report-card span, .report-card small { display: block; color: var(--muted); font-size: var(--fs-label); text-transform: uppercase; line-height: 1.5; }
.report-card strong { display: block; margin: 8px 0 4px; font: 700 28px var(--sans); }
.prose { max-width: 940px; color: var(--soft); font-size: 16px; line-height: 1.65; }
.prose h2 { margin-top: 34px; color: var(--text); }
.prose p { margin: 10px 0; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose b { color: var(--text); }
.prose table, .matrix-like { font-family: var(--mono); }

@keyframes pulse { 50% { opacity: .55; } }
.live-dot { animation: pulse 2.4s ease-in-out infinite; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1240px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .equity-card { grid-column: span 2; }
  .hero { grid-template-columns: 1fr; }
  .ladder { grid-template-columns: 1fr; }
  .replay-stats { grid-template-columns: repeat(3, 1fr); }
  .live-grid, .radar-grid { grid-template-columns: 1fr; }
  .pulse { grid-template-columns: repeat(3, 1fr); }
  .floor { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  :root { --fs-body: 16px; }
  .top, main, footer { width: calc(100% - 24px); }
  .telemetry { display: none; }
  .site-nav { min-width: 0; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { flex: 0 0 auto; padding: 7px 9px; font-size: 13px; }
  .site-nav .nav-home { display: none; }
  .command-bar { position: relative; top: 0; }
  .switch { width: 100%; overflow: hidden; }
  .switch button { flex: 1 1 0; min-width: 0; padding: 4px; line-height: 1.15; white-space: normal; overflow-wrap: anywhere; }
  .picker { width: 100%; }
  .picker select { flex: 1; max-width: none; min-width: 0; }
  .command-actions { display: grid; width: 100%; grid-template-columns: repeat(3, 1fr); margin-left: 0; }
  .command-actions .go { grid-column: 1 / -1; }
  .hero { padding-top: 26px; }
  .ticker-shell { grid-template-columns: 1fr; }
  .ticker-title { flex-direction: row; gap: 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .stats, .session-metrics, .pulse { grid-template-columns: 1fr 1fr; }
  .equity-card { grid-column: 1 / -1; }
  .board-head { display: none; }
  .lb-row { grid-template-columns: 28px minmax(0, 1fr) auto; grid-template-areas: "rank name eq" "rank hold ret"; row-gap: 2px; }
  .lb-row .rank { grid-area: rank; }
  .lb-row .name { grid-area: name; }
  .lb-row .eq { grid-area: eq; text-align: right; }
  .lb-row .ret { grid-area: ret; text-align: right; }
  .lb-row .hold { grid-area: hold; }
  .lb-row .vs, .lb-row canvas { display: none; }
  .panel-head { flex-wrap: wrap; }
  .panel-head span { flex: 1 1 100%; text-align: left; }
  .radar-row { grid-template-columns: 1fr auto; grid-template-areas: "name chip" "bar bar"; gap: 6px 8px; }
  .radar-row b { grid-area: name; }
  .radar-row .bar-track { grid-area: bar; }
  .radar-row .chip { grid-area: chip; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .floor, .lower { grid-template-columns: 1fr; }
  .ladder ol { grid-template-columns: 1fr; }
  .ladder li, .ladder li:nth-child(n) { min-height: auto; }
  .approve { grid-template-columns: 1fr; }
  .approve-sigil { display: none; }
  .verdict-strip { grid-template-columns: 1fr; gap: 6px; }
  .verdict-strip em { white-space: normal; }
  .replay-stats, .report-grid, .drawer-stats { grid-template-columns: 1fr 1fr; }
  footer { flex-direction: column; align-items: flex-start; }
  .drawer { width: 100%; padding: 18px 16px 28px; }
  #replay-curve { height: 220px; }
}
@media (max-width: 600px) {
  .masthead { flex-wrap: wrap; gap: 10px; }
  .brand { flex: 1 1 100%; }
  .site-nav { flex: 1 1 100%; justify-content: space-between; margin-left: 0; }
  .site-nav a { flex: 1 1 auto; text-align: center; }
  .hero-cta .cta { flex: 1 1 auto; justify-content: center; }
}
@media (max-width: 440px) {
  .top, main, footer { width: calc(100% - 16px); }
  .brand { font-size: 15px; }
  .brand img { width: 38px; height: 38px; }
  .brand small { display: block; font-size: 13px; letter-spacing: .04em; white-space: normal; }
  .site-nav .nav-radar { display: none; }
  h1 { font-size: 36px; }
  .lede { font-size: 16px; }
  .session-metrics { grid-template-columns: 1fr; }
  .stats, .pulse { grid-template-columns: 1fr 1fr; }
  .pulse strong { font-size: 17px; white-space: normal; }
  .pulse > div { padding: 11px 12px; }
  .forward-card { padding: 18px; }
  .forward-card > strong { font-size: 40px; }
  .forward-card dl { grid-template-columns: 1fr 1fr; }
  .command-actions { grid-template-columns: 1fr 1fr; }
  .switch button, .command-actions button { font-size: 14px; }
  .ticker-item { flex-basis: 156px; }
  .drawer-head h2 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
