:root {
  --ink: #0b0b0b;
  --ink-2: #141414;
  --card: #121212;
  --line: rgba(255, 255, 255, 0.09);
  --white: #f4f4f1;
  --dim: #8c8c88;
  --paper: #efeeea;
  --paper-ink: #111;
  --paper-dim: #9a9993;
  --red: #e5262a;
  --red-2: #ff4a3d;
  --r: 18px;
  --r-big: 36px;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ink); color: var(--white);
  font: 400 16px/1.5 var(--display); font-stretch: 100%;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.dim { color: var(--dim); }
.muted { color: var(--dim); padding: 28px 16px !important; }
.red { color: var(--red); }
.red-t { color: var(--red); }
.small-t { font-size: 13px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 8px; }

/* scroll progress */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; background: var(--red); transform-origin: 0 50%; transform: scaleX(0); z-index: 60; }
@supports (animation-timeline: scroll()) {
  .progress { animation: grow linear both; animation-timeline: scroll(root); }
  @keyframes grow { to { transform: scaleX(1); } }
}

/* nav */
.nav {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 24px;
  padding: 14px clamp(16px, 4vw, 56px); background: rgba(11, 11, 11, 0.72); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: 0.02em; font-size: 15px; font-stretch: 112%; }
.brand b { color: var(--red); margin-left: 6px; }
.links { display: flex; gap: 22px; margin-left: auto; font-size: 14px; }
.links a { text-decoration: none; color: var(--dim); transition: color 0.2s; }
.links a:hover { color: var(--white); }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; text-decoration: none;
  font-size: 13px; font-weight: 600; transition: transform 0.15s var(--ease), background 0.2s, color 0.2s;
  min-height: 44px;
}
.pill .i { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.pill:hover .i { transform: translate(2px, -2px); }
.pill:active { transform: scale(0.97); }
.pill-light { background: var(--white); color: var(--ink); }
.pill-light:hover { background: #fff; }
.pill-ghost { border: 1px solid var(--line); margin-top: 20px; }
.pill-ghost:hover { border-color: var(--white); }
.pill-ghost:hover .i { transform: translateY(2px); }

/* hero */
.hero {
  position: relative; min-height: calc(100svh - 64px); display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px;
  padding: clamp(32px, 6vw, 80px) clamp(16px, 4vw, 56px) 48px; align-items: end; overflow: hidden;
}
.grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%); opacity: 0.6;
}
.hero h1 { margin: 0; font-weight: 900; line-height: 0.84; letter-spacing: -0.035em; font-stretch: 118%; font-size: clamp(48px, 8.4vw, 150px); }
.hero h1 span { display: block; }
.hero .l2 { padding-left: 0.9em; }
.hero .l4 { padding-left: 0.5em; }
.hero-sub { max-width: 380px; font-size: 15px; color: var(--dim); margin: 28px 0 0 clamp(0px, 8vw, 220px); }
.phase { display: inline-flex; align-items: center; gap: 12px; margin-top: 32px; font-size: 14px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,0.03); }
.phase .mono { color: var(--white); font-weight: 500; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); display: inline-block; flex: none; box-shadow: 0 0 0 0 rgba(229, 38, 42, 0.6); animation: pulse 2s infinite; }
.dot.small { width: 7px; height: 7px; margin-right: 8px; }
.dot.big { width: 14px; height: 14px; margin-right: 18px; vertical-align: 0.35em; animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(229,38,42,.55); } 70% { box-shadow: 0 0 0 10px rgba(229,38,42,0); } 100% { box-shadow: 0 0 0 0 rgba(229,38,42,0); } }

.rise { opacity: 0; transform: translateY(24px); filter: blur(6px); animation: rise 0.9s var(--ease) forwards; }
.hero h1 .l1 { animation-delay: 0.05s; } .hero h1 .l2 { animation-delay: 0.15s; } .hero h1 .l3 { animation-delay: 0.28s; }
.hero h1 .l4 { animation-delay: 0.38s; } .hero-sub { animation-delay: 0.55s; } .phase { animation-delay: 0.65s; } .tape-card { animation-delay: 0.5s; }
@keyframes rise { to { opacity: 1; transform: none; filter: none; } }

.tape-card {
  position: relative; align-self: stretch; display: flex; flex-direction: column; max-height: 620px;
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015)); border: 1px solid var(--line);
  border-radius: var(--r); padding: 20px; overflow: hidden;
}
.tape-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.eyebrow { display: inline-flex; align-items: center; font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 600; margin: 0; }
.eyebrow.dark { color: var(--paper-ink); }
.tape { list-style: none; margin: 16px 0 0; padding: 0; flex: 1; overflow: hidden; mask-image: linear-gradient(#000 75%, transparent); }
.tape li {
  display: grid; grid-template-columns: 64px 44px 1fr auto; gap: 10px; align-items: baseline; padding: 10px 0;
  border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 13px;
}
.tape li.new { animation: slide 0.5s var(--ease); }
.tape li.new .sym { animation: flash 2.4s var(--ease); }
@keyframes flash { from { color: var(--red); } to { color: var(--white); } }
@keyframes slide { from { opacity: 0; transform: translateY(-14px); background: rgba(229,38,42,0.14); } to { opacity: 1; transform: none; } }
.tape .sym { font-weight: 700; color: var(--white); transition: color 1.2s; }
.tape .buy { color: #d7f5d0; } .tape .sell { color: var(--red-2); }
.tape .usd { text-align: right; color: var(--white); }
.tape .ago { grid-column: 3 / 5; color: var(--dim); font-size: 11px; }
.tape-foot { font-size: 12px; margin: 12px 0 0; }

/* marquee */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 14px 0; }
.marquee-track { display: flex; gap: 40px; width: max-content; animation: scroll 60s linear infinite; font-family: var(--mono); font-size: 13px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span b { margin-right: 8px; }
.up { color: #d7f5d0; } .down { color: var(--red-2); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* paper sections */
.paper { background: var(--paper); color: var(--paper-ink); border-radius: var(--r-big); margin: 24px clamp(8px, 1.4vw, 20px); color-scheme: light; }
.paper-inner { max-width: 1180px; margin: 0 auto; padding: clamp(48px, 8vw, 110px) clamp(20px, 5vw, 64px); }
.statement { font-size: clamp(30px, 4.6vw, 64px); font-weight: 800; line-height: 1.04; letter-spacing: -0.03em; margin: 18px 0 0; font-stretch: 104%; max-width: 15em; }
.statement.sm { font-size: clamp(28px, 3.6vw, 48px); }
.statement .fade { color: var(--paper-dim); }

.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 64px; }
.track { position: absolute; left: 24px; right: 24px; top: 23px; height: 2px; background: #d7d5cf; }
.track-fill { height: 100%; width: 0; background: var(--red); transition: width 0.8s var(--ease); }
.step {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left;
  background: none; border: 0; padding: 0 8px 0 0; cursor: pointer; color: var(--paper-ink);
}
.step .i { width: 48px; height: 48px; padding: 13px; border-radius: 50%; background: var(--paper); border: 2px solid #d7d5cf; color: var(--paper-dim);
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s var(--ease); }
.step b { margin-top: 10px; font-size: 17px; }
.step span { font-size: 12px; color: var(--paper-dim); }
.step:hover .i { transform: translateY(-2px); border-color: var(--paper-ink); color: var(--paper-ink); }
.step.done .i { border-color: var(--red); color: var(--red); }
.step.now .i { background: var(--red); border-color: var(--red); color: #fff; }
.step[aria-selected="true"] b { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 6px; text-decoration-thickness: 2px; }
.step-panel { margin-top: 36px; padding: 24px; border-radius: var(--r); background: #e6e4de; min-height: 96px; font-size: 16px; max-width: 760px; }
.step-panel b { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 6px; color: var(--red); }

/* dark sections */
.dark-sec { padding: clamp(56px, 8vw, 110px) clamp(16px, 4vw, 56px); max-width: 1320px; margin: 0 auto; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.sec-head h2 { font-size: clamp(36px, 5.4vw, 72px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; margin: 0; font-stretch: 108%; }
.sec-head p { max-width: 420px; margin: 0; font-size: 14px; }

.controls { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.search { display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; min-height: 44px; flex: 1 1 240px; max-width: 360px; transition: border-color 0.2s; }
.search:focus-within { border-color: var(--white); }
.search input { background: none; border: 0; outline: none; width: 100%; padding: 10px 0; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.seg button { background: none; border: 0; padding: 8px 14px; border-radius: 999px; cursor: pointer; font-size: 13px; color: var(--dim); min-height: 36px; transition: background 0.2s, color 0.2s; }
.seg button:hover { color: var(--white); }
.seg button.on { background: var(--white); color: var(--ink); }
.toggle { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--dim); cursor: pointer; min-height: 44px; }
.toggle input { position: absolute; opacity: 0; }
.knob { width: 38px; height: 22px; border-radius: 999px; background: #2a2a2a; position: relative; transition: background 0.2s; }
.knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--white); transition: transform 0.2s var(--ease); }
.toggle input:checked + .knob { background: var(--red); }
.toggle input:checked + .knob::after { transform: translateX(16px); }
.toggle input:focus-visible + .knob { outline: 2px solid var(--red); outline-offset: 3px; }

.table-wrap { border: 1px solid var(--line); border-radius: var(--r); overflow: auto; background: var(--card); }
table.board { width: 100%; border-collapse: collapse; font-size: 14px; }
.board th { text-align: left; font-weight: 500; color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; padding: 14px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--card); }
.board td { padding: 14px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.board tr:last-child td { border-bottom: 0; }
.board .r { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.board th.r { font-family: var(--display); }
.board tbody tr.click { cursor: pointer; transition: background 0.15s; }
.board tbody tr.click:hover { background: rgba(255,255,255,0.04); }
.board tbody tr.click:hover .go { transform: translateX(3px); color: var(--white); }
.stock { display: flex; align-items: center; gap: 12px; }
.mono-badge { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #1e1e1e; border: 1px solid var(--line); font: 700 11px var(--mono); color: var(--white); flex: none; }
.stock b { display: block; font-size: 14px; }
.stock small { color: var(--dim); font-size: 12px; max-width: 180px; overflow: hidden; text-overflow: ellipsis; display: block; }
.go { width: 16px; height: 16px; color: var(--dim); transition: transform 0.2s var(--ease), color 0.2s; }
.gap { font-weight: 700; }
.badge { font: 500 11px var(--mono); padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--dim); }
.badge.high { color: var(--white); border-color: rgba(255,255,255,0.3); }
.badge.low { color: #6c6c69; }
.hit { color: var(--white); } .miss { color: var(--red-2); }

/* stats (verdict) */
.stats { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: auto auto; gap: 14px; margin-bottom: 18px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 170px; position: relative; overflow: hidden; }
.stat-chart { grid-row: span 2; min-height: 360px; justify-content: space-between; }
.stat-label { margin: 0; color: var(--dim); font-size: 13px; }
.stat-num { margin: 6px 0 0; font-size: clamp(44px, 5.4vw, 76px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; font-stretch: 100%; }
.stat-num.sm { font-size: clamp(30px, 3.4vw, 46px); }
.stat:nth-child(2) { grid-column: 2 / 4; }
.chart { flex: 1; min-height: 240px; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart .bar { transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); transition: transform 0.9s var(--ease); }
.chart .bar.neg { transform-origin: top; }
.in .chart .bar { transform: scaleY(1); }
.legend { display: flex; gap: 18px; font-size: 12px; color: var(--dim); margin: 10px 0; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.sw.red { background: var(--red); } .sw.white { background: var(--white); }

/* call monday */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.field { margin-top: 32px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 10px; }
select {
  width: 100%; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid #d0cec7; background: #fff; color: var(--paper-ink);
}
.big-call { font-size: clamp(48px, 7vw, 92px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; margin-bottom: 14px; }
input[type="range"] { width: 100%; accent-color: var(--red); height: 32px; cursor: pointer; }
.range-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--paper-dim); }
.score-line { font-size: 15px; margin: 10px 0 0; }
.score-line .dim { color: var(--paper-dim); font-size: 13px; }
.call-card { background: var(--ink); color: var(--white); border-radius: 28px; padding: 28px; position: sticky; top: 96px; color-scheme: dark; }
.call-card .eyebrow { color: var(--white); }
.call-sum { font-size: 26px; font-weight: 700; margin: 14px 0 20px; letter-spacing: -0.02em; }
.steps-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; font-size: 14px; color: var(--dim); }
.steps-list li { display: flex; align-items: center; gap: 10px; transition: color 0.2s; }
.steps-list .n { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font: 500 11px var(--mono); }
.steps-list li.ok { color: var(--white); } .steps-list li.ok .n { background: var(--red); border-color: var(--red); color: #fff; }
.btn {
  width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: 14px; cursor: pointer;
  border: 1px solid var(--line); background: #1b1b1b; font-weight: 600; transition: transform 0.15s var(--ease), background 0.2s, opacity 0.2s; margin-top: 10px;
}
.btn:hover:not(:disabled) { background: #242424; }
.btn:active:not(:disabled) { transform: scale(0.98); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-red { background: var(--red); border-color: var(--red); color: #fff; }
.btn-red:hover:not(:disabled) { background: var(--red-2); }
.btn .spin { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.35); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.call-msg { min-height: 22px; font-size: 13px; color: var(--dim); margin: 14px 0 0; }
.call-msg.ok { color: var(--white); } .call-msg.err { color: var(--red-2); }

/* drawer */
.drawer { position: fixed; inset: 0; z-index: 80; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer-bg { position: absolute; inset: 0; background: rgba(0,0,0,0.6); opacity: 0; transition: opacity 0.25s; }
.drawer.open .drawer-bg { opacity: 1; }
.drawer-panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(640px, 100%); background: var(--ink-2); border-left: 1px solid var(--line);
  padding: 28px; overflow: auto; transform: translateX(100%); transition: transform 0.3s var(--ease);
}
.drawer.open .drawer-panel { transform: none; }
.icon-btn { position: absolute; right: 18px; top: 18px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: none; cursor: pointer; display: grid; place-items: center; transition: border-color 0.2s, transform 0.15s; }
.icon-btn:hover { border-color: var(--white); } .icon-btn:active { transform: scale(0.94); }
.d-title { font-size: 48px; font-weight: 800; letter-spacing: -0.03em; margin: 8px 0 0; line-height: 1; }
.d-kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0; }
.d-kv div { border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.d-kv p { margin: 0; font-size: 12px; color: var(--dim); } .d-kv b { font-family: var(--mono); font-size: 18px; }
.d-chart { height: 260px; border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.d-chart svg { width: 100%; height: 100%; }
.d-trades { margin-top: 18px; font-family: var(--mono); font-size: 13px; }
.d-trades a { display: grid; grid-template-columns: 1fr 70px 90px 18px; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--white); }
.d-trades a:hover { color: var(--red-2); }

/* footer */
.foot { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 48px clamp(16px, 4vw, 56px) 64px; border-top: 1px solid var(--line); font-size: 14px; }
.foot p { margin: 8px 0 0; max-width: 520px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .tape-card { max-height: 420px; }
  .links { display: none; }
  .nav .pill { margin-left: auto; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat-chart { grid-column: 1 / 3; grid-row: auto; }
  .stat:nth-child(2) { grid-column: auto; }
  .split { grid-template-columns: 1fr; }
  .call-card { position: static; }
  .foot { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .track { display: none; }
  .hide-sm { display: none; }
  .board td, .board th { padding: 12px 10px; }
  .stats { grid-template-columns: 1fr; }
  .stat-chart { grid-column: auto; }
  .d-kv { grid-template-columns: 1fr 1fr; }
  .hero .l2, .hero .l4 { padding-left: 0.3em; }
  .hero-sub { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rise, .reveal { opacity: 1; transform: none; filter: none; }
  .marquee-track { transform: none; }
}

/* ---------- v2: GAPDAY ---------- */
.brand span { font-size: 17px; letter-spacing: 0.04em; }
.brand b { margin-left: 0; }
.hero { isolation: isolate; }
.hero-type, .side { position: relative; z-index: 2; }
.hero-type .eyebrow { margin-bottom: 18px; color: var(--dim); }

/* the gap: hands canvas */
.hands { position: absolute; z-index: 1; margin: 0; top: 0; height: min(100%, calc(100svh - 72px)); right: clamp(16px, 4vw, 56px); width: min(40vw, 620px);
  -webkit-mask-image: linear-gradient(transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(transparent, #000 10%, #000 90%, transparent);
  opacity: 0; animation: handsIn 1.2s 0.2s var(--ease) forwards; }
.hands canvas { width: 100%; height: 100%; display: block; }
@keyframes handsIn { to { opacity: 1; } }

/* falling ticker slips */
.slips { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }
.slip { position: absolute; top: -20px; width: 22px; height: 7px; border-radius: 2px; background: var(--red); opacity: 0.7; animation: fall linear infinite; }
.slip.w { background: var(--white); opacity: 0.25; width: 14px; height: 5px; }
@keyframes fall { to { transform: translate(var(--dx, 40px), calc(100svh + 40px)) rotate(var(--rot, 540deg)); } }

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn-big, .btn-ghost {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 999px; text-decoration: none;
  font-weight: 700; font-size: 15px; transition: transform 0.15s var(--ease), background 0.2s, border-color 0.2s;
}
.btn-big { background: var(--red); color: #fff; }
.btn-big:hover { background: var(--red-2); }
.btn-big:hover .i { transform: translateX(3px); }
.btn-big .i, .btn-ghost .i { transition: transform 0.2s var(--ease); }
.btn-ghost { border: 1px solid var(--line); background: rgba(11,11,11,0.6); }
.btn-ghost:hover { border-color: var(--white); }
.btn-ghost:hover .i { transform: rotate(-40deg); }
.btn-big:active, .btn-ghost:active { transform: scale(0.97); }

.side { display: flex; flex-direction: column; gap: 14px; align-self: stretch; justify-content: flex-end; }
.spy-card { border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; background: rgba(18,18,18,0.82); backdrop-filter: blur(6px); }
.spy-num { font-size: clamp(40px, 4.4vw, 60px); font-weight: 700; letter-spacing: -0.04em; margin: 8px 0 4px; line-height: 1; }
.spark { height: 56px; }
.spark svg { width: 100%; height: 100%; overflow: visible; }
.spark path.line { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 2.2s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.tape-card { max-height: 300px; background: rgba(18,18,18,0.86); backdrop-filter: blur(6px); }
.hero { grid-template-columns: 1.5fr 1fr; }
.live { padding: 8px clamp(16px, 4vw, 56px) 40px; }
.live .side { display: grid; grid-template-columns: 1fr 1.3fr; gap: 14px; }
.live .tape-card { max-height: 280px; }
.live .spy-card { display: flex; flex-direction: column; justify-content: space-between; }
@media (max-width: 960px) { .live .side { grid-template-columns: 1fr; } }

/* counters */
.counters { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.counters > div { padding: 26px clamp(16px, 3vw, 40px); border-right: 1px solid var(--line); }
.counters > div:last-child { border-right: 0; }
.c-num { font-size: clamp(28px, 3.4vw, 48px); font-weight: 700; margin: 0; letter-spacing: -0.03em; }
.counters .dim { margin: 4px 0 0; font-size: 13px; }

/* heatmap */
.heat { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 74px; grid-auto-flow: dense; gap: 6px; }
.tile {
  position: relative; border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; justify-content: space-between;
  cursor: pointer; border: 1px solid rgba(255,255,255,0.06); overflow: hidden; text-align: left; color: var(--white);
  transition: transform 0.18s var(--ease), filter 0.2s, background-color 0.6s; background: #1a1a1a;
}
.tile:hover, .tile:focus-visible { transform: scale(1.03); z-index: 2; filter: brightness(1.15); }
.tile b { font-size: 15px; letter-spacing: 0.01em; }
.tile span { font: 500 12px var(--mono); opacity: 0.9; }
.tile.s3 { grid-column: span 4; grid-row: span 2; } .tile.s3 b { font-size: 28px; } .tile.s3 span { font-size: 16px; }
.tile.s2 { grid-column: span 3; grid-row: span 2; } .tile.s2 b { font-size: 20px; }
.tile.s1 { grid-column: span 2; grid-row: span 1; }
.heat-scale { display: flex; align-items: center; gap: 10px; justify-content: flex-end; margin-top: 12px; font-size: 12px; }
.heat-scale i { width: 90px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #e5262a, #2a2a2a); }
.heat-scale i.pos { background: linear-gradient(90deg, #2a2a2a, #f4f4f1); }

/* tooltip */
.tip { position: fixed; z-index: 90; pointer-events: none; background: var(--white); color: var(--ink); border-radius: 12px; padding: 10px 12px; font-size: 13px; box-shadow: 0 10px 30px rgba(0,0,0,0.4); min-width: 180px; }
.tip b { font-size: 15px; } .tip p { margin: 2px 0 0; font-family: var(--mono); font-size: 12px; }

/* rewind */
.rw-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.rw-clock { text-align: right; }
.rw-time { font-size: clamp(26px, 3vw, 40px); font-weight: 700; margin: 0; letter-spacing: -0.02em; }
.rw-phase { margin: 4px 0 0; font-size: 13px; color: var(--paper-dim); }
.rw-controls { display: flex; align-items: center; gap: 16px; margin: 36px 0 22px; }
.play { width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--red); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; transition: transform 0.15s var(--ease), background 0.2s; }
.play:hover { background: var(--red-2); } .play:active { transform: scale(0.93); }
.play .i { fill: currentColor; stroke: none; width: 20px; height: 20px; }
.rw-controls input[type="range"] { flex: 1; }
.seg.light { border-color: #d0cec7; }
.seg.light button { color: var(--paper-dim); }
.seg.light button:hover { color: var(--paper-ink); }
.seg.light button.on { background: var(--paper-ink); color: var(--paper); }
.rw-body { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; }
.rw-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.rw-tile { aspect-ratio: 1.5; border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; justify-content: space-between; background: #ddd; color: var(--ink); transition: background-color 0.45s; cursor: pointer; border: 0; text-align: left; }
.rw-tile b { font-size: 13px; } .rw-tile span { font: 500 11px var(--mono); }
.rw-tile:hover { outline: 2px solid var(--paper-ink); }
.rw-movers { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.rw-movers li { display: grid; grid-template-columns: 70px 1fr 70px; align-items: center; gap: 10px; font: 500 14px var(--mono); }
.rw-movers .bar { height: 8px; border-radius: 4px; background: var(--paper-ink); transition: width 0.4s var(--ease); }
.rw-movers .bar.neg { background: var(--red); }
.rw-movers .v { text-align: right; }
.rw-final { margin-top: 24px; padding: 18px; border-radius: 14px; background: var(--paper-ink); color: var(--white); font-size: 14px; opacity: 0; transform: translateY(10px); transition: opacity 0.4s, transform 0.4s var(--ease); }
.rw-final.show { opacity: 1; transform: none; }
.rw-final b { color: var(--red-2); }
.stamp { display: inline-block; border: 2px solid var(--red-2); color: var(--red-2); padding: 2px 10px; border-radius: 8px; font: 700 12px var(--mono); transform: rotate(-4deg); margin-bottom: 8px; }

/* versus bars in call section */
.versus { margin-top: 26px; display: grid; gap: 10px; }
.vs-row { display: grid; grid-template-columns: 90px 1fr 70px; align-items: center; gap: 12px; font-size: 13px; }
.vs-track { position: relative; height: 10px; background: #dedcd5; border-radius: 5px; }
.vs-track::after { content: ""; position: absolute; left: 50%; top: -4px; bottom: -4px; width: 1px; background: #b5b3ab; }
.vs-dot { position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%; transform: translate(-50%, -50%); transition: left 0.35s var(--ease); border: 2px solid var(--paper); }
.vs-row .mono { text-align: right; }
.my-calls { margin-top: 18px; font-size: 13px; color: var(--dim); }
.my-calls li { font-family: var(--mono); }

/* toasts */
.toasts { position: fixed; left: 16px; bottom: 16px; z-index: 95; display: grid; gap: 8px; }
.toast { display: flex; align-items: center; gap: 10px; background: var(--white); color: var(--ink); border-radius: 14px; padding: 12px 16px; font-size: 14px; box-shadow: 0 12px 32px rgba(0,0,0,0.45); animation: toastIn 0.35s var(--ease); max-width: 340px; }
.toast .i { color: var(--red); }
.toast.out { animation: toastOut 0.3s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(0.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(-20px); } }

@media (max-width: 960px) {
  .hands { position: relative; inset: auto; width: 100%; height: 520px; grid-row: 2; }
  .counters { grid-template-columns: 1fr 1fr; }
  .counters > div:nth-child(2) { border-right: 0; }
  .counters > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .heat { grid-template-columns: repeat(6, 1fr); }
  .tile.s3 { grid-column: span 4; } .tile.s2 { grid-column: span 3; } .tile.s1 { grid-column: span 2; }
  .rw-body { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .rw-tiles { grid-template-columns: repeat(4, 1fr); }
  .rw-controls { flex-wrap: wrap; }
  .heat { grid-auto-rows: 64px; }
  .tile.s3 { grid-column: span 6; grid-row: span 2; } .tile.s2 { grid-column: span 3; } .tile.s1 { grid-column: span 3; }
}
@media (prefers-reduced-motion: reduce) {
  .slips { display: none; }
  .hands { opacity: 1; }
}

/* ---------- v3: interactive heatmap ---------- */
.heat-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 16px; }
.spot { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; color: var(--dim); border: 1px solid var(--line); border-radius: 999px; padding: 0 16px; min-height: 44px; }
.spot b { color: var(--white); }
.spot input { width: 120px; height: 24px; }
.heat-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 14px; align-items: start; }
.tile { will-change: transform; outline: none; }
.tile .row { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.tile small { font: 500 11px var(--mono); opacity: 0.65; }
.tile svg.mini { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 46%; opacity: 0.55; pointer-events: none; }
.tile.s1 svg.mini { display: none; }
.tile.dim { opacity: 0.18; filter: grayscale(1); }
.tile.sel { box-shadow: 0 0 0 2px var(--white), 0 12px 30px rgba(0,0,0,0.5); transform: scale(1.04); z-index: 3; }
.tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; }
.tile.flash-buy::after { animation: ring 0.9s var(--ease); box-shadow: inset 0 0 0 3px #d7f5d0; }
.tile.flash-sell::after { animation: ring 0.9s var(--ease); box-shadow: inset 0 0 0 3px var(--red-2); }
@keyframes ring { 0% { opacity: 1; } 100% { opacity: 0; } }
.tile .ping { position: absolute; top: 8px; right: 10px; font: 700 10px var(--mono); padding: 2px 6px; border-radius: 999px; background: rgba(0,0,0,0.55); color: #fff; opacity: 0; transform: translateY(4px); transition: opacity 0.2s, transform 0.2s var(--ease); }
.tile .ping.show { opacity: 1; transform: none; }

.heat-focus { position: sticky; top: 88px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); padding: 20px; min-height: 300px; }
.f-sym { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; margin: 10px 0 0; line-height: 1; }
.f-name { color: var(--dim); font-size: 13px; margin: 4px 0 14px; }
.f-big { font: 700 34px var(--mono); margin: 0; letter-spacing: -0.03em; }
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; }
.f-grid div { border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.f-grid p { margin: 0; font-size: 11px; color: var(--dim); } .f-grid b { font: 600 14px var(--mono); }
.f-chart { height: 90px; position: relative; }
.f-chart svg { width: 100%; height: 100%; overflow: visible; }
.f-chart .cross { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,0.35); pointer-events: none; display: none; }
.f-chart .read { position: absolute; top: -22px; font: 500 11px var(--mono); color: var(--white); transform: translateX(-50%); white-space: nowrap; display: none; }
.f-actions { display: flex; gap: 8px; margin-top: 14px; }
.f-actions button { flex: 1; min-height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #1b1b1b; cursor: pointer; font-weight: 600; font-size: 13px; transition: background 0.2s, transform 0.15s; }
.f-actions button:hover { background: #262626; } .f-actions button:active { transform: scale(0.97); }
.f-actions .call { background: var(--red); border-color: var(--red); color: #fff; } .f-actions .call:hover { background: var(--red-2); }
.f-feed { margin-top: 12px; font: 500 12px var(--mono); color: var(--dim); min-height: 18px; }
.heat-scale.vol i { background: linear-gradient(90deg, #202020, #f4f4f1); } .heat-scale.vol i.pos { display: none; }
@media (max-width: 1100px) { .heat-wrap { grid-template-columns: 1fr; } .heat-focus { position: static; } }
.tile.sel.dim { opacity: 0.75; filter: none; }
.tile.thin { border: 1px dashed rgba(255,255,255,0.28); }
.tile.thin::before { content: "thin"; position: absolute; right: 10px; bottom: 8px; font: 500 10px var(--mono); opacity: 0.55; }
.tile.s1.thin::before { display: none; }

/* ---------- v4: treemap heatmap ---------- */
.tm-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.crumbs { display: flex; align-items: center; gap: 10px; font-size: 14px; min-height: 40px; }
.crumbs button { background: none; border: 0; color: var(--dim); cursor: pointer; padding: 6px 0; text-decoration: underline; text-underline-offset: 4px; }
.crumbs button:hover { color: var(--white); }
.crumbs .dim { font-size: 12px; }
.treemap { position: relative; height: clamp(460px, 62vh, 680px); background: #050505; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.tm-group { position: absolute; transition: left .45s var(--ease), top .45s var(--ease), width .45s var(--ease), height .45s var(--ease); border-radius: 6px; }
.tm-head {
  position: absolute; left: 0; right: 0; top: 0; height: 22px; display: flex; align-items: center; gap: 8px; padding: 0 8px; background: none; border: 0;
  font: 700 11px var(--display); letter-spacing: 0.1em; color: var(--dim); cursor: zoom-in; text-align: left; white-space: nowrap; overflow: hidden;
}
.tm-head span { font: 600 11px var(--mono); letter-spacing: 0; flex-shrink: 0; }
.tm-head .tm-name { font-style: normal; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tm-head .i { width: 12px; height: 12px; margin-left: auto; opacity: 0; transition: opacity .2s; }
.tm-head:hover { color: var(--white); } .tm-head:hover .i { opacity: 1; }
.treemap .tile {
  position: absolute; padding: 0; border: 0; border-radius: 3px; overflow: hidden; display: block; color: var(--white); cursor: pointer;
  transition: left .45s var(--ease), top .45s var(--ease), width .45s var(--ease), height .45s var(--ease), background-color .6s, opacity .25s, filter .2s;
}
.treemap .tile:hover, .treemap .tile:focus-visible { transform: none; filter: brightness(1.22); box-shadow: inset 0 0 0 2px rgba(255,255,255,0.85); z-index: 2; outline: none; }
.treemap .tile.thin { border: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18); }
.treemap .tile.thin::before { display: none; }
.treemap .tile.dim { opacity: 0.14; filter: grayscale(1); }
.tm-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center; padding: 4px; pointer-events: none; }
.tm-in b { font-weight: 800; letter-spacing: -0.01em; line-height: 1; font-stretch: 105%; }
.tm-in .pct { font-family: var(--mono); font-weight: 600; opacity: 0.92; }
.tm-in small { font: 500 11px var(--mono); opacity: 0.7; margin-top: 2px; }
.treemap .tile svg.mini { position: absolute; left: 0; right: 0; bottom: 0; height: 38%; width: 100%; opacity: 0.35; pointer-events: none; display: block; }

.tm-pop {
  position: fixed; left: 0; top: 0; z-index: 90; width: 280px; pointer-events: none; background: rgba(20,20,20,0.96); border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px; padding: 14px; box-shadow: 0 18px 40px rgba(0,0,0,0.55); backdrop-filter: blur(8px); font-size: 13px;
}
.p-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.p-head b { font-size: 22px; font-weight: 800; display: block; line-height: 1; }
.p-head span { color: var(--dim); font-size: 12px; display: block; margin-top: 4px; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-head p { margin: 0; font-size: 18px; font-weight: 700; }
.p-spark { width: 100%; height: 56px; margin: 10px 0 6px; display: block; }
.p-grid { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 4px 10px; font-size: 12px; }
.p-grid span { color: var(--dim); } .p-grid b { font: 600 12px var(--mono); text-align: right; }
.p-sec { margin: 12px 0 6px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.p-peer { display: grid; grid-template-columns: 52px 1fr 64px; align-items: center; gap: 8px; font: 500 12px var(--mono); padding: 2px 0; }
.p-peer i { height: 6px; border-radius: 3px; background: var(--white); display: block; }
.p-peer i.neg { background: var(--red); }
.p-peer .mono { text-align: right; }
.p-hint { margin: 10px 0 0; font-size: 11px; color: var(--dim); }
@media (max-width: 600px) { .treemap { height: 520px; } .tm-pop { width: 240px; } }

/* ---------- v5: palette, watchlist, alerts, flow, compare ---------- */
.kbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--dim); cursor: pointer; font-size: 13px; transition: border-color .2s, color .2s; }
.kbtn:hover { border-color: var(--white); color: var(--white); }
kbd { font: 500 11px var(--mono); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line); color: var(--dim); background: #141414; }

.watch { display: flex; align-items: center; gap: 8px; overflow-x: auto; padding: 4px 0 14px; scrollbar-width: thin; }
.w-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--dim); white-space: nowrap; margin-right: 4px; }
.w-label .i { width: 14px; height: 14px; color: var(--red); }
.wchip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); cursor: pointer; white-space: nowrap; font-size: 13px; transition: border-color .2s, transform .15s var(--ease); }
.wchip:hover, .wchip:focus-visible { border-color: var(--white); }
.wchip:active { transform: scale(.97); }
.wchip .mono { font-size: 12px; }
.wspark { width: 60px; height: 20px; }
.bell .i { width: 14px; height: 14px; color: var(--red-2); }
.wx { width: 24px; height: 24px; border-radius: 50%; border: 0; background: #222; color: var(--dim); cursor: pointer; line-height: 1; }
.wx:hover { color: #fff; background: var(--red); }
.wadd { border: 1px dashed var(--line); background: none; color: var(--dim); border-radius: 999px; padding: 8px 14px; cursor: pointer; white-space: nowrap; }
.wadd:hover { color: var(--white); border-color: var(--white); }

.star { background: none; border: 0; color: #555; cursor: pointer; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; transition: color .2s, transform .15s var(--ease), background .2s; }
.star:hover { color: var(--white); background: rgba(255,255,255,.06); }
.star.on { color: var(--red); }
.star:active { transform: scale(.85); }
.star-c, .star-h { width: 44px; padding-right: 0 !important; }

.d-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.dbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: #1b1b1b; color: var(--white); cursor: pointer; font-size: 13px; font-weight: 600; text-decoration: none; transition: background .2s, transform .15s; }
.dbtn:hover:not(:disabled) { background: #262626; } .dbtn:active { transform: scale(.97); } .dbtn:disabled { opacity: .4; }
.dbtn.star { width: auto; height: auto; border-radius: 12px; }
.dbtn.ghost { background: none; }
.d-alert { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 4px; padding: 12px; border: 1px dashed var(--line); border-radius: 14px; font-size: 13px; color: var(--dim); }
.d-alert .i { color: var(--red-2); }
.d-alert input { width: 70px; min-height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #111; color: var(--white); padding: 0 8px; font-family: var(--mono); }

.kmodal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: start center; padding-top: 12vh; }
.kmodal[hidden] { display: none; }
.kbg { position: absolute; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(3px); }
.kbox { position: relative; width: min(640px, calc(100% - 32px)); background: #111; border: 1px solid rgba(255,255,255,.14); border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.6); overflow: hidden; animation: toastIn .2s var(--ease); }
.kin { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.kin input { flex: 1; background: none; border: 0; outline: none; font-size: 17px; color: var(--white); }
.klist { list-style: none; margin: 0; padding: 8px; max-height: 50vh; overflow: auto; }
.klist li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; cursor: pointer; font-size: 14px; }
.klist li.on { background: #1f1f1f; }
.klist li .dim { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.klist li .mono { margin-left: auto; font-size: 12px; }
.klist li .star { width: 30px; height: 30px; }
.klist .kk { font: 500 10px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--dim); width: 52px; flex: none; }
.klist .empty { cursor: default; }
.khint { margin: 0; padding: 10px 18px; border-top: 1px solid var(--line); font-size: 12px; }

#flow .sec-head .seg { align-self: center; }
.flow-top { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 14px; }
.flow-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.fcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.ratio { display: flex; height: 14px; border-radius: 7px; overflow: hidden; margin: 18px 0 10px; background: #222; }
.ratio i { display: block; height: 100%; transition: width .8s var(--ease); }
.ratio .a { background: var(--white); } .ratio .b { background: var(--red); }
.split-l { display: flex; justify-content: space-between; margin: 0; font-size: 13px; }
.buckets { height: 120px; margin-top: 10px; }
.buckets svg { width: 100%; height: 100%; }
.buckets .bk:hover rect { opacity: .7; }
.netlist { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 4px; }
.netlist li { display: grid; grid-template-columns: 60px 1fr 80px 74px; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; cursor: pointer; font-size: 13px; transition: background .15s; }
.netlist li:hover, .netlist li:focus-visible { background: rgba(255,255,255,.05); }
.netlist .nb { height: 8px; background: #1f1f1f; border-radius: 4px; overflow: hidden; }
.netlist .nb i { display: block; height: 100%; background: var(--white); border-radius: 4px; transition: width .6s var(--ease); }
.netlist .nb i.neg { background: var(--red); }
.netlist .mono { text-align: right; } .netlist small { text-align: right; }

.compare { margin-top: 14px; }
.cmp-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.cmp-head .stat-label { margin-right: auto; }
.cmp-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.cchip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 999px; border: 1px solid var(--line); font: 600 13px var(--mono); }
.cchip i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.cchip button { width: 22px; height: 22px; border-radius: 50%; border: 0; background: #222; color: var(--dim); cursor: pointer; }
.cchip button:hover { background: var(--red); color: #fff; }
.cmp-add select { min-height: 40px; border-radius: 999px; background: #161616; color: var(--white); border: 1px solid var(--line); padding: 0 14px; width: auto; }
.cmp-chart { position: relative; height: 220px; margin-top: 18px; }
.cmp-chart svg { width: 100%; height: 100%; display: block; }
.cmp-chart .cross { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,.35); display: none; pointer-events: none; }
.cmp-chart .cread { position: absolute; top: 6px; transform: translateX(-50%); background: rgba(20,20,20,.95); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: none; font: 500 12px var(--mono); pointer-events: none; white-space: nowrap; }
.cmp-chart .cread b { display: block; color: var(--dim); font-weight: 500; margin-bottom: 4px; }
.cmp-chart .cread span { display: block; }
.cmp-chart .cy { position: absolute; right: 0; font-size: 11px; color: var(--dim); }
.cmp-chart .cy.top { top: 0; } .cmp-chart .cy.bot { bottom: 0; }

@media (max-width: 960px) { .flow-top { grid-template-columns: 1fr 1fr; } .flow-top .wide { grid-column: 1 / 3; } .flow-lists { grid-template-columns: 1fr; } .kbtn span, .kbtn kbd { display: none; } }
@media (max-width: 600px) { .flow-top { grid-template-columns: 1fr; } .flow-top .wide { grid-column: auto; } .netlist li { grid-template-columns: 54px 1fr 70px; } .netlist small { display: none; } }

/* ---------- v6: barcode chart ---------- */
.chart-sec { padding: 24px clamp(8px, 1.4vw, 20px); }
.cpanel { background: var(--red); color: #fff; border-radius: var(--r-big); padding: clamp(20px, 3.4vw, 40px) clamp(20px, 3.4vw, 40px) 0; overflow: hidden; color-scheme: light; }
.cp-top { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cp-eyebrow { margin: 0; font-size: 15px; opacity: .85; }
.cp-value { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
#cp-price { font-size: clamp(40px, 5.6vw, 72px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.cp-badge { font: 600 18px var(--mono); padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.16); }
.cp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cp-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 999px; background: rgba(0,0,0,.18); font: 600 13px var(--mono); }
.cp-chip.main { background: rgba(0,0,0,.32); }
.cp-chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px rgba(0,0,0,.3); }
.cp-chip button { width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; cursor: pointer; }
.cp-chip button:hover { background: #fff; color: var(--red); }
.cp-right { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.cp-tools { display: flex; gap: 8px; }
.cp-add select { min-height: 44px; border-radius: 12px; border: 1px solid rgba(255,255,255,.4); background: transparent; color: #fff; padding: 0 12px; width: auto; }
.cp-add select option { color: #111; }
.cp-icon { width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255,255,255,.4); background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s, transform .15s; }
.cp-icon:hover { background: rgba(255,255,255,.14); } .cp-icon:active { transform: scale(.94); }
.cp-ranges { display: flex; gap: 6px; }
.cp-ranges button, .d-ranges button { min-width: 48px; min-height: 36px; border-radius: 10px; border: 1px solid rgba(255,255,255,.35); background: transparent; color: rgba(255,255,255,.8); cursor: pointer; font: 500 13px var(--mono); transition: background .2s, color .2s; }
.cp-ranges button:hover { color: #fff; border-color: #fff; }
.cp-ranges button.on { background: rgba(0,0,0,.25); color: #fff; border-color: #fff; }
.cp-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 26px 0 8px; }
.cp-kpi { background: rgba(0,0,0,.12); border-radius: 14px; padding: 14px 16px; }
.cp-kpi p { margin: 0; font-size: 13px; opacity: .75; }
.cp-kpi b { display: block; font: 600 clamp(18px, 2vw, 26px) var(--display); margin: 10px 0 4px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.cp-kpi span { font-size: 12px; opacity: .7; }
.cp-chart { position: relative; height: 340px; margin: 0 calc(-1 * clamp(20px, 3.4vw, 40px)); cursor: crosshair; outline: none; }
.cp-load { padding: 40px; opacity: .8; }

.bc { position: relative; }
.bc-svg { width: 100%; height: 100%; display: block; }
.bc-line { filter: drop-shadow(0 1px 0 rgba(0,0,0,.15)); }
.bc-pin { position: absolute; top: 0; bottom: 0; width: 0; pointer-events: none; }
.bc-stem { position: absolute; left: -1px; top: var(--top); bottom: 0; width: 2px; background: #fff; opacity: .9; }
.bc-ring { position: absolute; left: -9px; top: calc(var(--top) - 9px); width: 18px; height: 18px; border-radius: 50%; border: 4px solid #fff; background: var(--red); box-sizing: border-box; }
.bc-label { position: absolute; left: 16px; top: calc(var(--top) - 14px); white-space: nowrap; display: grid; gap: 2px; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.bc-label.left { left: auto; right: 16px; text-align: right; }
.bc-label b { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.bc-label span { font: 500 12px var(--mono); opacity: .9; }
.bc-label .bc-other { color: var(--c); background: var(--cb, rgba(11,11,11,.78)); padding: 1px 6px; border-radius: 4px; justify-self: start; opacity: 1; text-shadow: none; }
.bc-label.left .bc-other { justify-self: end; }
.bc-label .bc-vol { opacity: .7; }
.bc-dots i { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px rgba(0,0,0,.35); pointer-events: none; }
.bc-dark .bc-stem { background: var(--white); }
.bc-dark .bc-ring { background: var(--ink); border-color: var(--white); }
.d-ranges { display: flex; gap: 6px; margin: 18px 0 8px; }
.d-ranges button { border-color: var(--line); color: var(--dim); }
.d-ranges button.on { background: var(--white); color: var(--ink); }
.d-bc { height: 260px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #0e0e0e; cursor: crosshair; outline: none; }
@media (max-width: 900px) { .cp-kpis { grid-template-columns: 1fr 1fr; } .cp-right { align-items: flex-start; } .cp-chart { height: 280px; } }

/* ---------- v7: signals, catalysts, crypto link, track record ---------- */
.sig-note { max-width: 760px; font-size: 14px; margin: -8px 0 18px; }
.sig-feed { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.sig { display: grid; grid-template-columns: 44px 1fr auto auto 28px; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); cursor: pointer; transition: border-color .2s, background .2s; animation: toastIn .3s var(--ease); }
.sig:hover, .sig:focus-visible { border-color: rgba(255,255,255,.35); background: #161616; }
.sig-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #1f1f1f; color: var(--dim); }
.sig.sev3 .sig-ic { background: var(--red); color: #fff; } .sig.sev2 .sig-ic { background: rgba(229,38,42,.3); color: #fff; }
.sig-main p { margin: 0 0 4px; display: flex; gap: 10px; align-items: center; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--dim); }
.sig-sev { color: var(--red-2); letter-spacing: 2px; }
.sig-main b { font-size: 15px; font-weight: 600; }
.sig-sym { font-weight: 700; } .sig time { font-size: 12px; white-space: nowrap; }
.sig-tx { color: var(--dim); text-decoration: none; font-size: 16px; text-align: center; } .sig-tx:hover { color: var(--white); }
.sbadge { margin-left: 8px; font: 600 9px var(--mono); text-transform: uppercase; letter-spacing: .08em; padding: 2px 6px; border-radius: 999px; background: var(--red); color: #fff; vertical-align: 2px; }

.cat-legend { font-size: 13px; color: var(--paper-dim); }
.gr, .cat-day em { font: 700 10px var(--mono); letter-spacing: .08em; padding: 2px 6px; border-radius: 6px; background: var(--red); color: #fff; font-style: normal; }
.cat-days { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 12px; overflow-x: auto; margin-top: 32px; padding-bottom: 8px; }
.cat-day { background: #e5e3dd; border-radius: 18px; padding: 16px; min-height: 180px; }
.cat-day.open-day { background: var(--paper-ink); color: var(--white); }
.cat-date { margin: 0 0 12px; font-weight: 800; font-size: 17px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cat-date span { font: 600 10px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--red); }
.cat-k { margin: 10px 0 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; opacity: .6; }
.cat-day ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.cat-day button { width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; text-align: left; border: 0; background: rgba(0,0,0,.06); border-radius: 10px; padding: 8px 10px; cursor: pointer; color: inherit; transition: background .15s; }
.open-day button { background: rgba(255,255,255,.08); }
.cat-day button:hover { background: rgba(0,0,0,.12); } .open-day button:hover { background: rgba(255,255,255,.16); }
.cat-day button span { font-size: 12px; opacity: .7; }
.cat-day li.risk button { box-shadow: inset 0 0 0 1.5px var(--red); }
.cat-day .macro li { font-size: 13px; line-height: 1.35; }
.cat-day .macro span { font: 500 11px var(--mono); opacity: .55; margin-right: 6px; }
.cat-day .macro small { display: inline-block; margin-left: 6px; font: 500 11px var(--mono); opacity: .65; }
.cat-day .macro small.act { color: var(--red); opacity: 1; }

.crypto { margin-top: 14px; }
.cr-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.cr-body { display: grid; grid-template-columns: 260px 1fr; gap: 24px; margin: 16px 0 12px; align-items: start; }
.cr-k { margin: 0; font-weight: 800; letter-spacing: .1em; color: var(--dim); }
.cr-price { font-size: 40px; font-weight: 700; margin: 6px 0; letter-spacing: -0.03em; }
.cr-sub { margin: 0; font-size: 13px; }
.cr-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.cr-list li { display: grid; grid-template-columns: 64px 1fr 84px 64px; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; cursor: pointer; font-size: 13px; }
.cr-list li:hover, .cr-list li:focus-visible { background: rgba(255,255,255,.05); }
.cr-bar { height: 8px; background: #1f1f1f; border-radius: 4px; overflow: hidden; }
.cr-bar i { display: block; height: 100%; background: linear-gradient(90deg, #e5262a, #ffb020); border-radius: 4px; }
.cr-bar i.neg { background: #8c8c88; }

.trackrec { margin: 18px 0 0; }
.track-chart { margin-top: 14px; }
.tr-bars { display: flex; gap: 12px; align-items: flex-end; height: 200px; }
.tr-bar { position: relative; flex: 0 1 120px; height: 100%; border: 1px solid var(--line); border-radius: 14px; background: #101010; cursor: pointer; overflow: hidden; color: var(--white); transition: border-color .2s; }
.tr-bar:hover, .tr-bar.on { border-color: var(--white); }
.tr-fill { position: absolute; left: 0; right: 0; bottom: 0; background: repeating-linear-gradient(90deg, #e5262a 0 2px, transparent 2px 5px); transition: height .8s var(--ease); }
.tr-v { position: absolute; top: 10px; left: 12px; font-size: 22px; font-weight: 700; }
.tr-l { position: absolute; bottom: 30px; left: 12px; font-size: 13px; }
.tr-k { position: absolute; bottom: 10px; left: 12px; font-size: 11px; color: var(--dim); }

@media (max-width: 800px) {
  .sig { grid-template-columns: 40px 1fr auto; } .sig time, .sig-tx { display: none; }
  .cr-body { grid-template-columns: 1fr; }
  .cr-list li { grid-template-columns: 56px 1fr 76px; } .cr-list li .dim { display: none; }
}

/* ---------- mobile fixes (must stay last: later desktop rules above override earlier media queries) ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .statement { overflow-wrap: anywhere; }
}
@media (max-width: 600px) {
  .nav { gap: 10px; padding: 12px 16px; }
  .nav .pill { padding: 8px 12px; font-size: 12px; min-height: 40px; }
  .brand span { font-size: 15px; }
  .statement { font-size: 28px; }
  .statement.sm { font-size: 26px; }
  .tape li { grid-template-columns: 52px 40px 1fr auto; gap: 8px; }
  .tape-head .mono { display: none; }
  .cp-value { flex-wrap: wrap; }
  #cp-price { font-size: 40px; }
  .cp-ranges button { min-width: 40px; }
  .sec-head h2 { font-size: 40px; }
  .rw-clock { text-align: left; }
  .counters .c-num { font-size: 26px; }
  .hero-sub { font-size: 14px; }
}
html, body { max-width: 100%; }
@media (max-width: 600px) {
  .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .seg::-webkit-scrollbar { display: none; }
  .seg button { flex: none; }
}
.drawer { overflow: hidden; }
.vs-row { grid-template-columns: 90px 1fr 104px; } .vs-row .mono { white-space: nowrap; }

/* ---------- audit: contrast (WCAG AA) ---------- */
:root { --paper-dim: #696863; --red-bg: #d42127; }
.statement .fade { color: #84837d; }            /* large text: 3.2:1 on paper */
.step-panel b { color: #b3191e; }
.cpanel { background: var(--red-bg); }
.btn-big, .btn-red, .play, .sbadge, .gr, .cat-day em, .sig.sev3 .sig-ic { background: var(--red-bg); }
.btn-red { border-color: var(--red-bg); }
.btn-big:hover, .btn-red:hover:not(:disabled), .play:hover { background: #e5262a; }
.sr-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- motion layer ---------- */
.pulse { position: relative; height: 64px; border-bottom: 1px solid var(--line); overflow: hidden; }
.pulse canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pulse-l, .pulse-r { position: absolute; top: 10px; font: 600 10px var(--mono); letter-spacing: .14em; color: var(--dim); }
.pulse-l { left: clamp(16px, 3vw, 40px); } .pulse-r { right: clamp(16px, 3vw, 40px); letter-spacing: 0; }

.tick-up, .tick-down { animation: tickFlash 1.1s var(--ease); }
.tick-up { --tick: rgba(215, 245, 208, .28); } .tick-down { --tick: rgba(255, 74, 61, .3); }
@keyframes tickFlash { 0% { background: var(--tick); } 100% { background: transparent; } }

.fcard, .stat, .spy-card, .tape-card, .sig, .cat-day, .call-card, .cp-kpi { position: relative; }
.fcard::before, .stat::before, .spy-card::before, .tape-card::before, .sig::before, .cat-day::before, .call-card::before, .cp-kpi::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(229, 38, 42, .13), transparent 60%);
}
.cat-day::before, .cp-kpi::before { background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .16), transparent 60%); }
.lit::before { opacity: 1; }

.btn-big, .pill-light, .play, .btn-ghost { transition: transform .25s var(--ease), background .2s, border-color .2s; will-change: transform; }

.paper.closed, .cpanel.closed { transform: scale(.965); border-radius: 64px; opacity: .6; transition: transform .9s var(--ease), border-radius .9s var(--ease), opacity .9s var(--ease); }
.paper.closed.opened, .cpanel.closed.opened { transform: none; border-radius: var(--r-big); opacity: 1; }

.track-fill { position: relative; overflow: hidden; }
.track-fill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent); transform: translateX(-100%); animation: shimmer 2.4s ease-in-out infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

@media (prefers-reduced-motion: reduce) {
  .pulse { display: none; }
  .paper.closed, .cpanel.closed { transform: none; opacity: 1; }
}

/* ---------- second audit ---------- */
.sig { animation: none; }
.sig.fresh { animation: toastIn .3s var(--ease); }
.star.on .i { fill: currentColor; }
.cat-day .dim { color: var(--paper-dim); }
.open-day .dim { color: #b5b4ae; }

/* ---------- lighthouse: target sizes ---------- */
.wx, .cchip button, .cp-chip button { min-width: 24px; min-height: 24px; }
.treemap div.tile { cursor: pointer; }

/* ---------- verify section ---------- */
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.proof .stat-label { display: flex; align-items: center; gap: 8px; }
.proof .dot { animation: none; background: #555; }
.proof.is-live .dot { background: #4ade80; animation: pulse 2s infinite; box-shadow: 0 0 0 0 rgba(74,222,128,.5); }
.pf-big { display: block; font-size: clamp(24px, 2.4vw, 34px); font-weight: 700; margin: 12px 0 6px; color: var(--white); text-decoration: none; letter-spacing: -0.02em; word-break: break-all; }
.pf-mid { display: block; font-size: 18px; font-weight: 700; margin: 14px 0 8px; color: var(--white); }
a.pf-big:hover, .pf-mid:hover { color: var(--red-2); }
.pf-contracts { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; font-size: 13px; }
.pf-contracts li { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; }
.pf-contracts a { color: var(--white); }
.pf-copy, .pf-try { min-height: 32px; min-width: 44px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: #1b1b1b; color: var(--white); cursor: pointer; font-size: 12px; transition: background .2s, transform .15s; }
.pf-copy:hover, .pf-try:hover { background: #262626; } .pf-copy:active, .pf-try:active { transform: scale(.95); }
.proof-two { display: grid; grid-template-columns: 1fr 1.3fr; gap: 14px; margin-top: 14px; }
.pf-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; font-size: 14px; }
.pf-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
#pf-sources li { grid-template-columns: 1fr; }
.pf-list a { color: var(--white); text-underline-offset: 3px; }
.pf-list .dim { font-size: 12px; }
.pf-pre { margin: 14px 0 0; max-height: 320px; overflow: auto; background: #070707; border: 1px solid var(--line); border-radius: 12px; padding: 14px; font: 12px/1.5 var(--mono); color: #c9c9c5; white-space: pre-wrap; word-break: break-word; }
.method { margin-top: 14px; display: grid; gap: 8px; }
.method details { border: 1px solid var(--line); border-radius: 14px; background: var(--card); padding: 0 18px; }
.method summary { cursor: pointer; padding: 16px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.method summary::-webkit-details-marker { display: none; }
.method summary::after { content: "+"; font: 400 22px var(--mono); color: var(--dim); transition: transform .2s; }
.method details[open] summary::after { transform: rotate(45deg); }
.method p { margin: 0 0 16px; color: #c9c9c5; line-height: 1.6; max-width: 900px; font-size: 14px; }
.method code { font: 12px var(--mono); background: #1d1d1d; padding: 2px 6px; border-radius: 6px; }
.pf-repo { margin: 16px 0 0; font-size: 14px; }
@media (max-width: 960px) { .proof-grid { grid-template-columns: 1fr 1fr; } .proof-two { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .proof-grid { grid-template-columns: 1fr; } .pf-list li { grid-template-columns: 1fr auto; } .pf-list li .dim { grid-column: 1 / -1; } }
.marquee-track.js-driven { animation: none; will-change: transform; }
