/* Apex layout + components. Every color comes from theme.css. 8px grid, 24px gutters. */
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; height: auto; background: var(--bg); color: var(--text); }
body { font: 500 16px/1.55 var(--font-display); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; transition: color var(--dur), text-decoration-color var(--dur); }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.num, .mono { font-family: var(--font-mono); font-weight: 600; font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Grain — very subtle atmosphere */
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: 0.012;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.label { display: flex; align-items: center; gap: 8px; margin: 0; font: 500 14px/1.3 var(--font-display); color: var(--text-2); letter-spacing: 0; text-transform: none; }
.label::before { display: none; }
.panel { background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.explainer { margin: 0; color: var(--text-2); font: 500 16px/1.55 var(--font-display); max-width: 62ch; }
.intro { display: grid; gap: 12px; padding: 8px 0 4px; }
.intro-hero { margin: 0; font: 600 32px/1.2 var(--font-display); letter-spacing: -0.03em; color: var(--text); max-width: 1080px; }
.intro-nfa { margin: 0; font: 500 16px/1.5 var(--font-display); color: var(--text-2); max-width: 62ch; }

/* Load: fade + rise 8px with 40ms stagger */
.rise { animation: rise 300ms var(--ease-out) both; }
.d1 { animation-delay: 40ms; } .d2 { animation-delay: 80ms; } .d3 { animation-delay: 120ms; } .d4 { animation-delay: 160ms; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Shell ---------- */
 .app { display: grid; height: auto; min-height: 100%; grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto auto auto;
  grid-template-areas: "topbar" "coins" "main" "ticker" "foot"; }
.app > .topbar { grid-area: topbar; }
.app > .top-coins { grid-area: coins; }

/* ---------- Rail ---------- */
.rail { grid-area: rail; background: transparent; border-right: 1px solid var(--border); padding: 28px 20px; display: flex; flex-direction: column; gap: 28px; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; text-decoration: none; }
.brand b { font: 600 22px/1 var(--font-display); letter-spacing: -0.02em; color: var(--text); }
.brand b i { font-style: normal; color: var(--accent); }
.brand svg { width: 22px; height: 22px; color: var(--accent); }
.nav { display: flex; gap: 4px; padding: 0; border: 0; border-radius: 0; background: transparent; }
.nav a { flex: 1; text-align: center; padding: 10px 14px 12px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 0; color: var(--text-2); font: 500 15px var(--font-display); text-decoration: none; border-bottom: 2px solid transparent; transition: color var(--dur), border-color var(--dur); }
.nav a:hover { color: var(--text); background: transparent; }
.nav a[aria-current="page"] { background: transparent; color: var(--text); box-shadow: none; border-bottom-color: var(--accent); }

/* Shared page header: same box on Radar and Caught (desktop and mobile). */
.topbar { display: flex; align-items: center; gap: 16px; height: 64px; padding: 0 28px; border-bottom: 1px solid var(--border);
  background: var(--bg); position: sticky; top: 0; z-index: 20; box-sizing: border-box; flex: none; }
.topbar .brand { padding: 0; }
.topbar .nav { width: 260px; margin: 0; flex: none; }
.rail section { display: grid; gap: 8px; }
.rail .explainer { font-size: 13px; line-height: 1.45; }
.chips { display: grid; gap: 2px; }
.chip { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 10px; padding: 10px 14px; min-height: 44px; border-radius: 999px; cursor: pointer;
  color: var(--text-2); font: 500 15px var(--font-display); letter-spacing: 0; text-transform: none; transition: background var(--dur), color var(--dur); }
.chip:hover { background: var(--raised); color: var(--text); box-shadow: none; }
.chip:active { transform: none; }
.chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.chip[aria-pressed="true"] { background: var(--raised); color: var(--text); box-shadow: none; }
.chip .sw { width: 8px; height: 8px; border-radius: 50%; background: var(--text-muted); flex: none; }
.sw.GROWING { background: var(--stage-growing); } .sw.PEAKING { background: var(--stage-peaking); }
.sw.DEAD { background: var(--stage-dead); box-shadow: 0 0 0 1px var(--stage-dead-text); }
.sw.INSUFFICIENT_DATA { background: transparent; border: 1px dashed var(--text-muted); }
.chip .n { margin-left: auto; font: 600 12px var(--font-display); font-variant-numeric: tabular-nums; color: var(--text-muted); }
.chip[aria-pressed="true"] .n { color: var(--text); }
.toggle { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; cursor: pointer; color: var(--text-2); font-size: 14px; }
.toggle:hover { background: var(--raised); }
.toggle input { appearance: none; width: 30px; height: 18px; border-radius: 9px; background: var(--raised); border: 1px solid var(--border); position: relative; margin: 0; cursor: pointer; transition: background var(--dur-fast); flex: none; }
.toggle input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--text-2); transition: transform var(--dur) var(--ease-out), background var(--dur); }
.toggle input:checked { background: var(--select); border-color: var(--accent-dim); }
.toggle input:checked::after { transform: translateX(12px); background: var(--accent); }
.srcs { display: grid; gap: 8px; padding: 0 8px; }
.src { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); }
.src .dot { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--text-muted); flex: none; position: relative; }
.src[data-state="ok"] .dot { background: var(--accent); border-color: var(--accent); }
.src[data-state="ok"] .dot::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--accent); animation: ping 2s var(--ease-out) infinite; }
@keyframes ping { from { transform: scale(1); opacity: .8; } to { transform: scale(2.6); opacity: 0; } }
.src[data-state="error"] .dot, .src[data-state="budget_exhausted"] .dot { background: var(--risk); border-color: var(--risk); }
.src .st { margin-left: auto; font: 500 12px var(--font-display); color: var(--text-muted); }
.src[data-state="ok"] .st { color: var(--accent); }
.src[data-state="error"] .st, .src[data-state="budget_exhausted"] .st { color: var(--risk); }
.worker { margin: 0; padding: 0 8px; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 13px; }
.worker dt { color: var(--text-muted); }
.worker dd { margin: 0; text-align: right; font: 500 12px var(--font-mono); color: var(--text-2); }
.worker dd.live { color: var(--accent); }

/* ---------- Main radar ---------- */
.main { grid-area: main; display: flex; flex-direction: column; gap: 28px; padding: 32px 28px 40px; min-width: 0; min-height: 0;
  width: 100%; max-width: 1280px; margin: 0 auto; overflow: visible; }
.intro, .search, .hero, .filters, .headlines-panel, #vizRow, .tbl { flex: none; min-height: min-content; overflow: visible; }

/* Two horizontal filter bars (fomo-style tabs). */
.filters { display: grid; gap: 4px; padding: 4px 0 8px; border-bottom: 1px solid var(--border); }
.filter-bar { display: flex; align-items: flex-end; gap: 16px; min-width: 0; }
.filter-bar .tabs { display: flex; align-items: stretch; flex-wrap: nowrap; gap: 0; min-width: 0; flex: 1; }
.filter-bar .toggle { margin-left: auto; flex: none; padding: 8px 0 10px; white-space: nowrap; }
.filters .chip { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px 12px; min-height: 44px; border-radius: 0; border-bottom: 2px solid transparent; white-space: nowrap;
  color: var(--text-2); font: 500 15px var(--font-display); letter-spacing: 0; text-transform: none;
  transition: color var(--dur), border-color var(--dur); }
.filters .chip:hover { color: var(--text); background: transparent; box-shadow: none; }
.filters .chip[aria-pressed="true"] { color: var(--text); background: transparent; box-shadow: none; border-bottom-color: var(--accent); }
.filters .chip.quiet { color: var(--text-muted); }
.filters .chip.quiet[aria-pressed="true"] { color: var(--text); }
.filters .chip .n { margin-left: 6px; font: 600 13px/1 var(--font-display); font-variant-numeric: tabular-nums; color: var(--text-muted); }
.filters .chip[aria-pressed="true"] .n { color: var(--text-2); }
.filter-note { margin: 0; padding: 6px 0 4px; color: var(--text-muted); font: 500 13px/1.45 var(--font-display); max-width: 90ch; }
.radar-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: var(--text-muted); font-size: 13px; }
.radar-status .srcs { padding: 0; }

/* Hero */
.hero { position: relative; overflow: visible; display: grid; grid-template-columns: minmax(0, 1.1fr) auto minmax(220px, 1fr); gap: 32px; align-items: center; padding: 8px 0 24px; cursor: pointer;
  border-bottom: 1px solid var(--border); transition: box-shadow var(--dur); }
.hero::before { content: ""; position: absolute; inset: -40% auto auto -10%; width: 70%; height: 180%; pointer-events: none;
  background: radial-gradient(closest-side, rgb(var(--accent-rgb) / 0.05), transparent); }
.hero:hover { box-shadow: 0 0 32px var(--accent-glow); }
.hero.is-empty { cursor: default; }
.hero > * { position: relative; }
.hero-k { display: flex; align-items: center; gap: 10px; font: 500 13px var(--font-display); color: var(--text-2); letter-spacing: 0; text-transform: none; }
.hero-name { margin: 8px 0 8px; font: 600 40px/1.05 var(--font-display); letter-spacing: -0.03em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-why { margin: 0; color: var(--text-2); font-size: 16px; font-weight: 500; line-height: 1.5; max-width: 52ch; }
.hero-stats { display: grid; grid-template-columns: auto repeat(3, auto); gap: 24px; align-items: center; }
.hero-stats .ring svg { width: 72px; height: 72px; }
.stat { display: grid; gap: 2px; }
.stat b { font: 600 24px/1 var(--font-mono); font-variant-numeric: tabular-nums; color: var(--text); }
.stat b.g { color: var(--accent); }
.stat span { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.hero-chart { height: 88px; }
.hero-chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.hero-chart .line { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.reveal { animation: reveal 900ms var(--ease-out) 150ms both; }
@keyframes reveal { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.now-dot { fill: var(--accent); }
.now-halo { fill: var(--accent); animation: breathe 2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes breathe { 0%, 100% { opacity: .35; transform: scale(1); } 50% { opacity: 0; transform: scale(2.4); } }
.hero-none { color: var(--text-2); }
.hero-none p { margin: 6px 0 0; color: var(--text-muted); font-size: 13px; }

/* Row 2: lifecycle + heat */
.row2 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; padding: 4px 0 16px; border-top: 0; border-bottom: 1px solid var(--border); background: transparent; }
.row2 .panel { padding: 8px 0 16px; display: grid; gap: 12px; background: transparent; border: 0; box-shadow: none; border-radius: 0; }
.p-head { display: flex; align-items: center; gap: 12px; }
.legend { margin-left: auto; display: flex; gap: 14px; font: 500 13px var(--font-display); color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .sw { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
#rail { width: 100%; height: 84px; display: block; overflow: visible; }
.zone-bg { fill: none; }
.zone-bg.GROWING, .zone-bg.PEAKING, .zone-bg.DEAD { fill: none; }
.zone-line { stroke: var(--border); stroke-dasharray: none; }
.trail { fill: none; stroke-width: 1; opacity: .45; }
.trail.GROWING { stroke: var(--stage-growing); } .trail.PEAKING { stroke: var(--stage-peaking); } .trail.DEAD { stroke: var(--stage-dead-text); }
.pt { cursor: pointer; transition: r var(--dur) var(--ease-out); }
.pt.GROWING { fill: var(--stage-growing); } .pt.PEAKING { fill: var(--stage-peaking); }
.pt.DEAD { fill: var(--stage-dead); stroke: var(--stage-dead-text); stroke-width: 1; }
.pt.sel, .pt:hover { stroke: var(--text); stroke-width: 1.5; }
.pulse { fill: none; stroke: var(--accent); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: ring 1.8s var(--ease-out) infinite; pointer-events: none; }
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(3); opacity: 0; } }
.pt-label { font: 600 11px var(--font-display); fill: var(--text); pointer-events: none; }
.rail-empty { font: 500 12px var(--font-display); fill: var(--text-muted); }
.heat { display: grid; grid-template-columns: repeat(72, minmax(0, 1fr)); gap: 1px; height: 36px; border-radius: 0; overflow: hidden; border-bottom: 1px solid var(--border); }
.heat i { display: block; }
.h0 { background: var(--heat-0); } .h1 { background: var(--heat-1); } .h2 { background: var(--heat-2); } .h3 { background: var(--heat-3); } .h4 { background: var(--heat-4); }
.hn { background: repeating-linear-gradient(0deg, transparent 0 3px, var(--muted) 3px 4px); }
.heat-axis { display: flex; justify-content: space-between; font: 500 12px var(--font-display); color: var(--text-muted); }
.heat-meta { font: 500 13px var(--font-display); color: var(--text-2); margin-left: auto; }

/* Table */
.tbl { display: block; min-height: 0; overflow: visible; }
.tbl-head { display: flex; align-items: center; gap: 12px; padding: 8px 0 16px; border-bottom: 0; }
.tbl-head .meta { margin-left: auto; font: 500 13px var(--font-display); color: var(--text-muted); }
.scroll { overflow: visible; min-height: 0; transition: opacity 150ms var(--ease-out); }
.scroll.fading { opacity: 0; }
table.grid { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.grid th { position: sticky; top: 0; z-index: 2; background: var(--bg); height: 48px; padding: 0 20px; text-align: left; border-bottom: 1px solid var(--border);
  font: 500 13px/1.2 var(--font-display); letter-spacing: 0; text-transform: none; color: var(--text-muted); white-space: nowrap; }
.grid th .sort { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; border-radius: 4px; }
.grid th .sort:hover, .grid th[aria-sort] .sort { color: var(--text); }
.grid th .sort:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.grid th .arrow { display: inline-block; width: 8px; color: var(--accent); opacity: 0; transition: transform var(--dur) var(--ease-out), opacity var(--dur); }
.grid th[aria-sort] .arrow { opacity: 1; }
.grid th[aria-sort="ascending"] .arrow { transform: rotate(180deg); }
.grid td { height: 68px; padding: 0 20px; border-bottom: 1px solid var(--border); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 16px; font-weight: 500;
  transition: background-color var(--dur) var(--ease-out); }
.grid tbody tr { cursor: pointer; --sc: var(--text-muted); }
.grid tbody tr.s-GROWING { --sc: var(--stage-growing); } .grid tbody tr.s-PEAKING { --sc: var(--stage-peaking); } .grid tbody tr.s-DEAD { --sc: var(--stage-dead-text); }
.grid tbody tr td:first-child { box-shadow: inset 0 0 0 transparent; transition: box-shadow 120ms var(--ease-out), background-color 120ms; }
.grid tbody tr:hover td, .grid tbody tr:focus-visible td, .grid tbody tr[aria-selected="true"] td { background: var(--raised); }
.grid tbody tr:hover td:first-child, .grid tbody tr:focus-visible td:first-child, .grid tbody tr[aria-selected="true"] td:first-child { box-shadow: inset 2px 0 0 var(--sc); }
.grid tbody tr:focus-visible { outline: none; }
.grid tbody tr:focus-visible td:first-child { box-shadow: inset 2px 0 0 var(--accent), inset 0 0 0 1px var(--accent); }
.grid tbody tr.enter { animation: rise 260ms var(--ease-out) both; }
.grid tbody tr.flash td:first-child { animation: flash 900ms var(--ease-out); }
@keyframes flash { 0% { box-shadow: inset 4px 0 0 var(--sc); background: var(--select); } 100% { box-shadow: inset 0 0 0 transparent; } }
.c-trend { display: flex; align-items: center; gap: 10px; min-width: 0; }
td .c-trend b { font: 500 16px var(--font-display); letter-spacing: -0.01em; color: var(--text); overflow: hidden; text-overflow: ellipsis; }
.srcicon { width: 18px; height: 18px; flex: none; color: var(--text-muted); }
.new { flex: none; font: 500 11px/1 var(--font-display); color: var(--bg); background: var(--accent); padding: 4px 8px; border-radius: 999px; letter-spacing: 0; text-transform: none; transition: opacity 600ms; }
.new.gone { opacity: 0; }
td.r, th.r { text-align: right; }
.grid .c-mom, .grid .c-conf, .grid .c-mentions, .grid .c-updated, .grid .c-kill { text-align: right; font-family: var(--font-mono); font-weight: 600; font-variant-numeric: tabular-nums; }

.stage { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; border: 0; background: var(--raised);
  font: 500 12px/1 var(--font-display); letter-spacing: 0; text-transform: none; white-space: nowrap; }
.stage .g { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.stage-GROWING { color: var(--stage-growing); }
.stage-PEAKING { color: var(--stage-peaking); }
.stage-DEAD { color: var(--stage-dead-text); }
.stage-DEAD .g { background: var(--stage-dead); box-shadow: 0 0 0 1px var(--stage-dead-text); }
.stage-INSUFFICIENT_DATA { color: var(--text-muted); border-style: dashed; }
.stage-INSUFFICIENT_DATA .g { background: transparent; border: 1px dashed currentColor; }
.grid .stage-GROWING, .hero .stage-GROWING, .drawer .stage-GROWING { background: var(--stage-growing); color: var(--bg); }
.grid .stage-GROWING .g, .hero .stage-GROWING .g, .drawer .stage-GROWING .g { background: var(--bg); }
.stage.pulse-once { animation: badge 600ms var(--ease-out); }
@keyframes badge { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }

.ring { display: inline-flex; align-items: center; gap: 8px; }
.ring svg { width: 28px; height: 28px; display: block; flex: none; }
.ring .track { fill: none; stroke: var(--border); }
.ring .arc { fill: none; stroke: var(--accent); stroke-linecap: round; }
.ring b { font: 600 14px var(--font-mono); font-variant-numeric: tabular-nums; }
.early { font: 500 11px/1 var(--font-display); color: var(--bg); background: var(--accent); padding: 4px 8px 4px 14px; border-radius: 999px; letter-spacing: 0; text-transform: none; position: relative; }
.early::before { content: ""; position: absolute; left: 5px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--bg); animation: blink 1.2s steps(2, end) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.dash { color: var(--text-muted); }
.kills { display: inline-flex; gap: 4px; vertical-align: middle; }
.kills i { width: 10px; height: 10px; border-radius: 2px; border: 1px solid var(--muted); }
.kills i.on { background: var(--risk); border-color: var(--risk); }
svg.spark { width: 100%; height: 24px; display: block; }
.spark .line { fill: none; stroke: var(--accent); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.s-DEAD .spark .line { stroke: var(--stage-dead-text); }
.upd { font: 500 13px var(--font-display); font-variant-numeric: tabular-nums; color: var(--text-muted); }

.skel td { pointer-events: none; }
.skel span { display: block; height: 12px; border-radius: 4px; background: linear-gradient(90deg, var(--raised) 0%, var(--shimmer) 50%, var(--raised) 100%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.empty { padding: 48px 24px; text-align: center; color: var(--text-2); }
.empty p { margin: 8px auto; max-width: 60ch; font-size: 16px; line-height: 1.55; }
.empty small { color: var(--text-muted); font-size: 15px; }

/* Tooltips (text comes from data-tip, rendered as plain text) */
[data-tip] { position: relative; }
[data-tip] { cursor: help; }
.tip-term { border-bottom: 1px dotted var(--text-muted); }
[data-tip]::after { content: attr(data-tip); position: absolute; z-index: 30; left: 0; top: calc(100% + 6px); width: max-content; max-width: 280px; white-space: normal;
  padding: 10px 12px; border-radius: 6px; background: var(--raised); border: 1px solid var(--border); color: var(--text); font: 400 14px/1.45 var(--font-display); letter-spacing: 0;
  text-align: left; text-transform: none; opacity: 0; transform: translateY(-2px); pointer-events: none; transition: opacity var(--dur), transform var(--dur); box-shadow: 0 8px 24px rgb(0 0 0 / .45); }
[data-tip]:hover::after, [data-tip]:focus::after, [data-tip]:focus-visible::after, [data-tip].tip-open::after { opacity: 1; transform: none; }
th[data-tip]::after { left: 16px; }
.tip-r[data-tip]::after { left: auto; right: 0; }

/* ---------- Drawer (overlay) ---------- */
.backdrop { position: fixed; inset: 0; z-index: 40; background: rgb(0 0 0 / .6); opacity: 0; pointer-events: none; transition: opacity 250ms var(--ease-out); }
.backdrop.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; z-index: 50; top: 0; right: 0; bottom: 0; width: 420px; max-width: 100%; background: var(--panel); border-left: 1px solid var(--border);
  box-shadow: -24px 0 48px rgb(0 0 0 / .5); transform: translateX(100%); transition: transform 250ms var(--ease-out); display: flex; flex-direction: column; visibility: hidden; }
.drawer.open { transform: none; visibility: visible; }
.drawer.closing { visibility: visible; }
.d-top { display: flex; align-items: flex-start; gap: 12px; padding: 24px 24px 16px; border-bottom: 1px solid var(--border); }
.d-top h2 { margin: 0 0 8px; font: 600 28px/1.1 var(--font-display); letter-spacing: -0.03em; overflow-wrap: anywhere; }
.d-top .tags { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.d-top .sub { margin-top: 8px; font: 400 12px var(--font-mono); color: var(--text-muted); }
.x { margin-left: auto; flex: none; width: 44px; height: 44px; border-radius: 999px; border: 0; background: var(--raised); color: var(--text-2); cursor: pointer; display: grid; place-items: center;
  transition: color var(--dur), background var(--dur); }
.x:hover { color: var(--text); box-shadow: 0 0 12px rgb(var(--accent-rgb) / .12); }
.x:active { transform: scale(.98); }
.d-body { overflow-y: auto; padding: 0 24px 24px; opacity: 0; transition: opacity 200ms var(--ease-out) 120ms; }
.drawer.open .d-body { opacity: 1; }
.d-sec { padding: 16px 0; border-bottom: 1px solid var(--border); display: grid; gap: 10px; }
.d-sec:last-child { border-bottom: 0; }
.d-chart { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
.d-chart .ring svg { width: 64px; height: 64px; }
.d-chart .ring b { font-size: 22px; }
.d-chart svg.mchart { width: 100%; height: 96px; display: block; overflow: visible; }
.mchart .line { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }

.mchart-empty { font: 400 12px var(--font-mono); color: var(--text-muted); }
.d-p { margin: 0; color: var(--text-2); font-size: 14px; }
dl.nums { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; font-size: 13px; }
dl.nums dt { color: var(--text-2); }
dl.nums dd { margin: 0; text-align: right; font: 600 13px var(--font-mono); font-variant-numeric: tabular-nums; }
ul.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13px; }
ul.checks li { display: flex; align-items: center; gap: 10px; color: var(--text-2); }
ul.checks .box { width: 14px; height: 14px; border-radius: 3px; border: 1px solid var(--text-muted); display: grid; place-items: center; font: 600 10px/1 var(--font-mono); flex: none; }
ul.checks li.on { color: var(--text); }
ul.checks li.on .box { background: var(--risk); border-color: var(--risk); color: var(--bg); }
ul.checks li.ok .box { background: var(--accent); border-color: var(--accent); color: var(--bg); }
ul.checks li.ok { color: var(--text); }
ul.checks .why { margin-left: auto; font: 400 12px var(--font-mono); color: var(--text-muted); }
.corr { justify-self: start; font: 400 11px var(--font-mono); color: var(--text-2); border: 1px dashed var(--text-muted); border-radius: 4px; padding: 3px 7px; }
.card { background: var(--raised); border: 1px solid var(--border); border-radius: 8px; padding: 12px; display: grid; gap: 10px; }
.card-head { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.card-head b { font: 600 16px var(--font-display); }
.card-head span { font: 400 12px var(--font-mono); color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-head a { margin-left: auto; font: 500 12px var(--font-mono); flex: none; }
.card dl { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px 8px; }
.card dt { font: 400 11px var(--font-mono); color: var(--text-muted); }
.card dd { margin: 0; font: 500 13px var(--font-mono); }
.up { color: var(--accent); } .down { color: var(--risk); }
.press { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: var(--risk); }
.press i { background: var(--accent); transition: width 600ms var(--ease-out); }
.press-l { display: flex; justify-content: space-between; font: 400 11px var(--font-mono); color: var(--text-muted); }
.note { margin: 0; font: 400 12px var(--font-mono); color: var(--text-muted); }

/* ---------- Ticker + footer ---------- */
.ticker { grid-area: ticker; border-top: 1px solid var(--border); background: var(--bg); overflow: hidden; display: flex; align-items: center; white-space: nowrap; font: 500 13px var(--font-display); }
.tape { display: inline-flex; flex: none; will-change: transform; animation: tape var(--tape-dur, 60s) linear infinite; }
.tape > div { display: inline-flex; gap: 32px; padding-right: 32px; }
.ticker:hover .tape { animation-play-state: paused; }
@keyframes tape { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tape span { color: var(--text-2); }
.tape time { color: var(--text-muted); margin-right: 8px; }
.tape b { font-weight: 600; padding: 2px 6px; border-radius: 3px; margin-right: 6px; }
.tape b.t-new { background: var(--accent); color: var(--bg); }
.tape b.t-kill { background: var(--risk); color: var(--bg); }
.tape b.t-GROWING { color: var(--stage-growing); border: 1px solid var(--stage-growing); }
.tape b.t-PEAKING { color: var(--stage-peaking); border: 1px solid var(--stage-peaking); }
.tape b.t-DEAD { color: var(--stage-dead-text); border: 1px solid var(--stage-dead-text); }
.tape b.t-INSUFFICIENT_DATA { color: var(--text-muted); border: 1px dashed var(--text-muted); }
.idle { padding-left: 24px; color: var(--text-muted); }
.foot { grid-area: foot; padding: 12px 24px 16px; border-top: 1px solid var(--border); font: 400 13px/1.55 var(--font-display); color: var(--text-muted); background: var(--bg); overflow: visible; flex-shrink: 0; }
html:has(body.page) { height: auto; min-height: 100%; }
body.page { display: flex; flex-direction: column; min-height: 100%; height: auto; overflow-x: hidden; overflow-y: auto; }
body.page .foot { position: relative; z-index: 1; margin-top: auto; padding: 16px 24px 24px; white-space: normal; }


/* Source connection pills (real /api/status state) and news headlines */
.status-strip { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; min-width: 0; }
.topbar-status { padding: 8px 24px; border-bottom: 1px solid var(--border); background: var(--panel); }
.topbar-status .status-strip { padding: 0; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 8px; border: 1px solid var(--border); border-radius: 999px; background: var(--raised); color: var(--text-2); font: 500 12px/1.2 var(--font-display); white-space: nowrap; min-width: 0; }
.status-pill .status-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--text-muted); flex: none; position: relative; }
.status-pill[data-connected="true"] { color: var(--text); }
.status-pill[data-connected="true"] .dot { background: var(--accent); border-color: var(--accent); }
.status-pill[data-connected="true"] .dot::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--accent); animation: ping 2s var(--ease-out) infinite; }
.status-pill[data-connected="false"] .status-label { color: var(--text-muted); }
.headlines-panel { padding: 16px 20px; }
.headlines { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.headlines li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); font-size: 16px; }
.headlines li:first-child { border-top: 0; padding-top: 2px; }
.headlines a { color: var(--text); text-decoration: none; min-width: 0; }
.headlines a:hover { color: var(--accent); }
.headlines .h-meta { margin: 0; font: 500 12px var(--font-display); color: var(--text-muted); white-space: nowrap; }
#marketAsOf { margin-left: auto; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .tape { animation: none; } .ticker { overflow-x: auto; }
  .reveal { clip-path: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1279px) { .col-mentions, .col-updated, .c-mentions, .c-updated { display: none; } }


/* Copy + short CA (shared with Radar / top coins; Caught reuses the same button class) */
.copy { flex: none; cursor: pointer; border: 0; background: var(--raised); color: var(--text-2); border-radius: 999px; padding: 8px 14px; min-height: 36px; font: 500 13px var(--font-display); transition: color var(--dur), background var(--dur); }
.copy:hover { color: var(--text); box-shadow: 0 0 12px rgb(var(--accent-rgb) / .12); }
.copy:active { transform: scale(.98); }
.copy:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ca-line, .tc-ca { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.ca-short, .tc-ca .ca-short { font: 500 11px/1.2 var(--font-mono); color: var(--text-muted); }
.ca-copy { padding: 1px 6px; font-size: 10px; line-height: 1.2; }
.t-avatar, .cs-avatar-wrap { position: relative; width: 24px; height: 24px; flex: none; }
.t-avatar img, .t-avatar .tc-fallback { width: 24px; height: 24px; border-radius: 50%; display: block; object-fit: cover; background: var(--bg); border: 1px solid var(--border); }
.t-avatar .tc-fallback { display: grid; place-items: center; font: 600 9px/1 var(--font-mono); color: var(--accent); }
.t-avatar img[hidden] + .tc-fallback { display: grid; }
.t-avatar:has(img:not([hidden])) .tc-fallback { display: none; }
.c-name { vertical-align: middle; }
.c-name .c-trend { display: flex; align-items: center; gap: 8px; min-width: 0; }
.c-chg { font: 600 11px/1.2 var(--font-mono); font-variant-numeric: tabular-nums; margin-left: 6px; }
.holders-note { display: block; margin-top: 2px; font: 400 10px/1.3 var(--font-mono); color: var(--text-muted); }
.tc-card .tc-ca { margin-top: 1px; }
/* ---------- Top coins strip (Payday-style compact row, on-brand) ---------- */
.top-coins { min-width: 0; overflow: hidden; border-bottom: 1px solid var(--border); background: var(--panel); }
.top-coins-inner { display: flex; align-items: center; gap: 14px; padding: 8px 16px 10px 24px; min-width: 0; }
.top-coins .label { flex: none; letter-spacing: 0; text-transform: none; }
.top-coins-viewport { flex: 1; min-width: 0; overflow: hidden; }
.top-coins-track { display: flex; align-items: center; gap: 8px; width: max-content; will-change: transform;
  animation: top-coins-marquee var(--top-coins-dur, 48s) linear infinite; }
.top-coins-viewport:hover .top-coins-track,
.top-coins-viewport:focus-within .top-coins-track { animation-play-state: paused; }
@keyframes top-coins-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.tc-card { flex: none; display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--raised); color: var(--text);
  text-decoration: none; cursor: pointer; font: inherit; max-width: 280px;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast), transform var(--dur-fast), background var(--dur-fast); }
button.tc-card { appearance: none; }
.tc-card:hover { text-decoration: none; border-color: var(--border); background: var(--raised);
  box-shadow: none; transform: none; }
.tc-avatar { position: relative; width: 32px; height: 32px; flex: none; }
.tc-avatar img, .tc-fallback { width: 32px; height: 32px; border-radius: 50%; display: block; object-fit: cover; background: var(--bg); border: 1px solid var(--border); }
.tc-fallback { display: grid; place-items: center; font: 600 12px/1 var(--font-mono); color: var(--accent); background: var(--bg); }
.tc-avatar img[hidden] + .tc-fallback { display: grid; }
.tc-avatar:has(img:not([hidden])) .tc-fallback { display: none; }
.tc-meta { display: grid; gap: 1px; min-width: 0; }
.tc-sym { font: 600 12px/1.2 var(--font-mono); color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-row { display: flex; align-items: baseline; gap: 8px; font: 500 11px/1.2 var(--font-mono); font-variant-numeric: tabular-nums; }
.tc-mcap { color: var(--text-2); }
.tc-chg.up { color: var(--accent); }
.tc-chg.down { color: var(--risk); }
@media (prefers-reduced-motion: reduce) {
  .top-coins-track { animation: none; }
  .top-coins-viewport { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .top-coins-viewport::-webkit-scrollbar { display: none; }
}

@media (max-width: 1099px) {
  .col-conf, .c-conf { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr) auto; }
  .hero-chart { display: none; }
  .hero-name { font-size: 32px; }
}
@media (max-width: 760px) {
  .app { display: block; height: auto; min-height: 100%; padding-bottom: 48px; }
  .app { grid-template-rows: 56px auto minmax(0, 1fr) 40px auto; }
  .topbar { height: 56px; padding: 0 16px; }
  .top-coins-inner { padding: 8px 16px 10px; }
  .topbar .nav { margin-left: auto; width: 210px; }
  .brand { padding: 0; }
  .filters { margin: 0 -16px; padding: 0 0 8px; }
  .filter-bar { flex-wrap: nowrap; align-items: center; gap: 8px; }
  .filter-bar .tabs { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; padding: 0 16px; -webkit-overflow-scrolling: touch; }
  .filter-bar .tabs::-webkit-scrollbar { display: none; }
  .filters .chip { flex: none; padding: 8px 12px 10px; min-height: 40px; font-size: 14px; }
  .filters .chip .n { margin-left: 4px; }
  .filter-bar .toggle { padding: 8px 16px 8px 0; font-size: 13px; }
  .filter-note { padding: 6px 16px 4px; }
  .srcs { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 0; }
  .status-strip { padding: 0; }
  .topbar-status { padding: 8px 16px; }
  .src { font-size: 12px; gap: 6px; } .src .st { display: none; }
  .main { padding: 16px; gap: 12px; display: grid; grid-template-rows: none; }
  .hero { grid-template-columns: 1fr; gap: 16px; padding: 16px; }
  .hero-chart { display: block; height: 64px; }
  .hero-name { font-size: 28px; }
  .hero-stats { grid-template-columns: auto repeat(3, 1fr); gap: 12px; }
  .hero-stats .ring svg { width: 56px; height: 56px; }
  .stat b { font-size: 18px; }
  .row2 { grid-template-columns: 1fr; gap: 12px; }
  .legend { display: none; }
  .tbl { overflow: visible; border: 0; background: none; box-shadow: none; }
  .tbl-head { padding: 0 0 8px; border: 0; }
  .scroll { overflow: visible; }
  table.grid, .grid tbody { display: block; }
  .grid thead, .grid colgroup { display: none; }
  .grid tbody { display: grid; gap: 8px; }
  .grid tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t s" "m e" "k p"; gap: 10px 12px; padding: 14px 16px;
    background: var(--panel); border: 1px solid var(--border); border-radius: 12px; box-shadow: inset 0 1px 0 rgb(230 255 242 / .04); }
  .grid tbody tr[aria-selected="true"] { border-color: var(--accent-dim); }
  .grid td { display: block; height: auto; padding: 0; border: 0; background: none !important; box-shadow: none !important; overflow: visible; }
  .grid td.c-name { grid-area: t; min-width: 0; overflow: hidden; } .grid td.c-stage { grid-area: s; justify-self: end; }
  .grid td.c-mom { grid-area: m; } .grid td.c-early { grid-area: e; justify-self: end; align-self: center; }
  .grid td.c-kill { grid-area: k; align-self: center; } .grid td.c-spark { grid-area: p; width: 120px; align-self: center; }
  .grid td.c-conf, .grid td.c-mentions, .grid td.c-updated { display: none; }
  .grid tbody tr.skel { display: block; } .grid tbody tr.skel td { display: none; } .grid tbody tr.skel td:first-child { display: block; }
  .drawer { top: auto; left: 0; width: 100%; max-height: 85vh; border-left: 0; border-top: 1px solid var(--border); border-radius: 16px 16px 0 0; transform: translateY(100%); }
  .drawer::before { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--muted); }
  .d-top { padding: 24px 16px 12px; } .d-body { padding: 0 16px 24px; }
  .ticker { position: fixed; left: 0; right: 0; bottom: 0; height: 40px; z-index: 30; }
  .foot { padding: 16px; }
  body.page .foot { padding: 16px 16px 24px; }
  .topbar-status { padding: 8px 16px; }
}

/* Column widths (include 16px cell padding each side) */
.col-trend { width: auto; } .col-stage { width: 168px; } .col-mom { width: 104px; } .col-conf { width: 84px; } .col-early { width: 84px; }
.col-kill { width: 104px; } .col-mentions { width: 112px; } .col-spark { width: 112px; } .col-updated { width: 96px; }
@media (max-width: 1279px) { .col-stage { width: 160px; } .col-mom { width: 96px; } }
@media (max-width: 1439px) and (min-width: 1280px) {
  .col-conf { width: 72px; } .col-early { width: 84px; } .col-kill { width: 104px; } .col-mentions { width: 112px; } .col-spark { width: 80px; } .col-updated { width: 92px; }
}

/* Premium polish: sweep, highlight cards, proof, update toast. Existing tokens unchanged. */
body { background:
  radial-gradient(1200px 500px at 50% -80px, rgb(var(--accent-rgb) / 0.03), transparent 60%),
  var(--bg); }
.panel { box-shadow: none; }
.radar-stage { position: relative; isolation: isolate; }
.radar-sweep { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.radar-sweep::after { content: ""; position: absolute; top: 0; bottom: 0; width: 28%;
  background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
  animation: radar-scan 3.6s var(--ease) infinite; }
#rail { position: relative; z-index: 1; }
@keyframes radar-scan {
  from { transform: translateX(-120%); }
  to { transform: translateX(420%); }
}
.tc-set { display: inline-flex; align-items: center; gap: 8px; }
.tc-card { padding: 8px 16px 8px 8px; gap: 12px; max-width: 300px;
  background: linear-gradient(180deg, rgb(230 255 242 / 0.03), transparent 48%), var(--raised); }
.tc-avatar, .tc-avatar img, .tc-fallback { width: 36px; height: 36px; }
.tc-sym { font-size: 13px; }
.tc-chg { padding: 0 6px; border-radius: 999px; font-weight: 600; }
.tc-chg.up { background: rgb(var(--accent-rgb) / 0.12); }
.tc-chg.down { background: rgb(255 77 77 / 0.12); }

.proof-panel { display: grid; gap: 16px; }
.proof-panel[hidden], .proof-block[hidden] { display: none; }
.proof-cards, .proof-wallets { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.proof-card, .proof-wallet { border: 1px solid var(--border); border-radius: var(--r-md); background: var(--raised);
  padding: 12px 14px; display: grid; gap: 6px; color: var(--text); }
.proof-card a { color: var(--text); font: 600 14px var(--font-display); }
.proof-meta, .proof-asof { color: var(--text-muted); font: 400 11px/1.4 var(--font-mono); }
.proof-wallet .pw-addr { font: 600 12px var(--font-mono); color: var(--text); }
.proof-wallet .pw-net { font: 500 12px var(--font-mono); color: var(--accent); }

.update-toast { position: fixed; right: 16px; bottom: 56px; z-index: 80; display: flex; align-items: center; gap: 12px;
  padding: 12px 14px 12px 16px; border: 1px solid var(--accent-dim); border-radius: var(--r-md);
  background: var(--raised); color: var(--text); box-shadow: 0 8px 32px rgb(0 0 0 / 0.5), 0 0 24px var(--accent-glow);
  font: 500 15px var(--font-display); }
.update-toast p { margin: 0; }
.update-toast-btn { appearance: none; border: 0; border-radius: 999px; background: var(--accent); color: var(--bg);
  font: 600 14px var(--font-display); padding: 8px 12px; min-height: 36px; cursor: pointer; transition: filter var(--dur), box-shadow var(--dur); }
.update-toast-btn:hover { filter: brightness(1.08); }

@media (prefers-reduced-motion: reduce) {
  .radar-sweep { display: none; }
  .update-toast { box-shadow: none; }
}
@media (max-width: 720px) {
  .update-toast { left: 12px; right: 12px; bottom: 52px; }
  .proof-cards, .proof-wallets { grid-template-columns: 1fr; }
}

/* ---------- Audit update: search, categories, chart links, quiet status ---------- */
.search { display: flex; gap: 10px; padding: 0; align-items: center; }
.search input { flex: 1; min-width: 0; background: var(--raised); color: var(--text); border: 1px solid var(--border); border-radius: 999px;
  padding: 12px 18px; min-height: 44px; font: 500 16px var(--font-display); transition: border-color var(--dur), box-shadow var(--dur); }
.search input:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; box-shadow: 0 0 16px var(--accent-glow); }
.btn { cursor: pointer; border: 0; border-radius: 999px; padding: 12px 20px; min-height: 44px; background: var(--accent); color: var(--bg); font: 600 16px var(--font-display);
  transition: filter var(--dur), box-shadow var(--dur); }
.btn:hover { filter: brightness(1.08); box-shadow: 0 0 18px var(--accent-glow); }
.btn:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.search-out { padding: 16px; display: grid; gap: 10px; }
.search-out h3 { margin: 0; font: 600 14px var(--font-display); color: var(--text); }
.search-out p { margin: 0; color: var(--text-2); font-size: 15px; }
.sr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sr-item { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--raised); }
.sr-item b { color: var(--text); }
.sr-item .why { color: var(--text-2); font-size: 14px; }
.sr-item .open { cursor: pointer; border: 0; background: var(--raised); color: var(--text); border-radius: 999px; padding: 8px 14px; min-height: 36px; font: 500 13px var(--font-display); transition: background var(--dur), color var(--dur), box-shadow var(--dur); }
.sr-item .open:hover { background: var(--accent); color: var(--bg); box-shadow: 0 0 14px var(--accent-glow); }
.chart-links { display: inline-flex; flex-wrap: wrap; gap: 6px; font: 500 13px var(--font-display); }
.chart-links a { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; padding: 6px 12px; min-height: 32px; border-radius: 999px; background: var(--raised); transition: background var(--dur), color var(--dur), box-shadow var(--dur); }
.chart-links a:hover { text-decoration: none; background: var(--accent); color: var(--bg); box-shadow: 0 0 14px var(--accent-glow); }
.cat { display: inline-block; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--border); font: 600 12px var(--font-display); color: var(--text-2); white-space: nowrap; }
.cat-attention { color: var(--cat-attention); }
.cat-community { color: var(--cat-community); }
.cat-tech { color: var(--cat-tech); }
.cat-uncategorized { color: var(--cat-uncategorized); }
.updated { margin: 4px 0 0; font: 500 13px var(--font-display); color: var(--text-muted); }
.srcs .src-none { font: 500 13px var(--font-display); color: var(--text-muted); }
.screened { color: var(--text-2); }
.footnote { margin: 0; font: 400 14px/1.55 var(--font-display); color: var(--text-muted); }
.d-links { display: grid; gap: 6px; }
.risk-badge { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 4px; border: 1px solid var(--risk); color: var(--risk); font: 500 11px var(--font-mono); }
@media (max-width: 760px) {
  .intro-hero { font-size: 26px; }
  .rail .explainer { display: none; }
  /* Chips wrap instead of clipping "Dead" off-screen; empty states collapse. */
  .chips { flex-wrap: wrap; overflow-x: visible; margin: 0; padding: 0; }
  .search { padding: 8px; }
  .search .btn { padding: 10px 12px; }
  .tc-meta { min-width: max-content; }
  .tc-mcap, .tc-chg, .tc-sym { overflow: visible; text-overflow: clip; white-space: nowrap; }
  .tc-card { max-width: none; }
  .empty { padding: 24px 16px; }
}

/* ---------- v2: lifecycle tab bar, data-driven columns, signal dots, confidence words, CA lookup + holder check ---------- */
.filters { gap: 12px; padding: 4px 0 16px; }
.filter-bar .tabs.life-tabs { flex-wrap: wrap; gap: 8px; }
.filters .life-tabs .chip { border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; min-height: 40px; gap: 8px; }
.filters .life-tabs .chip:hover { border-color: var(--text-muted); }
.filters .life-tabs .chip[aria-pressed="true"] { border-color: var(--accent); background: var(--raised); color: var(--text); }
.filters .life-tabs .chip .n { margin-left: 2px; }
.filters .life-tabs .chip[data-stage="EARLY"] .n { color: var(--accent); }
.filters .chip[hidden] { display: none; }
.cat-bar .tabs { gap: 4px; }

table.grid { table-layout: fixed; }
.grid th, .grid td { padding: 0 12px; }
.grid th.c-name { width: 23%; } .grid th.c-why { width: auto; } .grid th.c-stage { width: 172px; } .grid th.c-sig { width: 124px; }
.grid th.c-mom { width: 96px; } .grid th.c-conf { width: 104px; } .grid th.c-mcap { width: 88px; } .grid th.c-chg24 { width: 84px; }
.grid th.c-kill { width: 96px; } .grid th.c-mentions { width: 108px; } .grid th.c-spark { width: 88px; } .grid th.c-updated { width: 84px; }
.grid td { height: 72px; }
.row2.solo { grid-template-columns: minmax(0, 1fr); }
#heatPanel[hidden] { display: none; }
.c-sub { display: flex; align-items: center; gap: 8px; margin-top: 4px; padding-left: 34px; min-width: 0; }
.grid td.c-stage { white-space: nowrap; }
.grid td.c-stage .early, .grid td.c-stage .late { margin-left: 6px; }
.grid td.c-why { white-space: normal; }
.c-why span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font: 500 14px/1.4 var(--font-display); color: var(--text-2); }
.grid th.c-conf, .grid td.c-conf { text-align: left; font-family: var(--font-display); }
.grid th.c-sig, .grid td.c-sig { text-align: left; }
.grid .c-mcap, .grid .c-chg24 { font-family: var(--font-mono); font-weight: 600; font-variant-numeric: tabular-nums; font-size: 14px; }
.grid .c-chg24.up { color: var(--accent); }
.grid .c-chg24.down { color: var(--risk); }
.sigs { display: inline-flex; align-items: center; gap: 8px; }
.sig-dots { display: inline-flex; gap: 3px; }
.sig-dots i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--text-muted); }
.sig-dots i.on { background: var(--accent); border-color: var(--accent); }
.sig-dots i.na { border-style: dashed; opacity: .6; }
.sigs b { font: 600 13px var(--font-mono); font-variant-numeric: tabular-nums; color: var(--text); }
.conf { display: inline-block; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); font: 600 12px/1 var(--font-display); color: var(--text-2); white-space: nowrap; }
.conf-high { color: var(--accent); border-color: var(--accent-dim); }
.conf-medium { color: var(--stage-peaking); }
.conf-low { color: var(--text-muted); }
.late { display: inline-block; font: 500 11px/1 var(--font-display); color: var(--stage-peaking); border: 1px solid var(--border); padding: 4px 8px; border-radius: 999px; white-space: nowrap; }

ul.hero-why { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; max-width: 56ch; }
ul.hero-why li { position: relative; padding-left: 16px; color: var(--text-2); font: 500 15px/1.45 var(--font-display); }
ul.hero-why li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.nfa { margin: 10px 0 0; font: 500 12px/1.45 var(--font-display); color: var(--text-muted); }
.stat b.down, dl.nums dd.down { color: var(--risk); }

ul.checks li.no .box { border-color: var(--text-muted); }
ul.checks li.na { color: var(--text-muted); }
ul.checks li.na .box { border-style: dashed; color: var(--text-muted); }
.sig-checks .why { text-align: right; }

.lookup { display: grid; gap: 14px; }
.lk-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lk-head .t-avatar, .lk-head .t-avatar img, .lk-head .t-avatar .tc-fallback { width: 40px; height: 40px; }
.lk-title { display: grid; gap: 4px; min-width: 0; }
.lk-title h3 { display: flex; align-items: baseline; gap: 8px; margin: 0; font: 600 22px/1.1 var(--font-display); color: var(--text); }
.lk-name { font: 500 14px var(--font-display); color: var(--text-2); }
.lk-tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.lk-head .ca-line { margin-left: auto; }
.lk-src { margin: 0; font: 500 13px var(--font-display); color: var(--text-muted); }
dl.nums.lk-nums { grid-template-columns: repeat(3, auto minmax(0, 1fr)); gap: 8px 16px; }
.lk-sec { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--border); }
.lk-sec h4 { margin: 0; }
.lk-conf { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font: 500 13px var(--font-display); color: var(--text-2); }
.lk-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lk-links .open { cursor: pointer; border: 0; background: var(--raised); color: var(--text); border-radius: 999px; padding: 8px 14px; min-height: 36px; font: 500 13px var(--font-display); }
.lk-links .open:hover { background: var(--accent); color: var(--bg); }
.holder-panel { display: grid; gap: 10px; }
.hflags { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hflags li { padding: 8px 12px; border-radius: 8px; background: var(--raised); border-left: 2px solid var(--border); font: 500 14px/1.4 var(--font-display); color: var(--text); }
.hflags li.hf-warn { border-left-color: var(--risk); }
.hflags li.hf-ok { border-left-color: var(--accent-dim); color: var(--text-2); }
.deep { display: grid; gap: 6px; }
.deep-k { margin: 0; font: 500 12px var(--font-display); color: var(--text-muted); }
ol.holders-top { margin: 0; padding-left: 22px; display: grid; gap: 4px; font: 500 12px var(--font-mono); color: var(--text-2); }
ol.holders-top li b { float: right; color: var(--text); }
ol.holders-top .hl { margin-left: 8px; color: var(--accent); font-size: 11px; }

@media (max-width: 1279px) { .grid th.c-kill, .grid td.c-kill, .grid th.c-sig .sort { font-size: 12px; } .grid th.c-kill, .grid td.c-kill { display: none; } }
@media (max-width: 1099px) {
  .grid th.c-conf, .grid td.c-conf { display: table-cell; }
  .grid th.c-name { width: 30%; }
  .grid th.c-chg24, .grid td.c-chg24 { display: none; }
}
@media (max-width: 760px) {
  .main > * { min-width: 0; max-width: 100%; }
  .filters { margin: 0; }
  .filter-bar .tabs.life-tabs { flex-wrap: nowrap; padding: 0 2px 4px; }
  .grid td { height: auto !important; }
  .filters .life-tabs .chip { padding: 6px 12px; min-height: 36px; }
  .grid tbody tr { display: flex !important; flex-wrap: wrap; align-items: flex-start; gap: 10px 12px; grid-template-areas: none; }
  .grid td.c-name { flex: 1 1 55%; max-width: none; }
  .c-sub { padding-left: 0; flex-wrap: wrap; }
  .grid td.c-stage { flex: none; margin-left: auto; display: flex !important; flex-direction: column; align-items: flex-end; gap: 6px; }
  .grid td.c-stage .early, .grid td.c-stage .late { margin-left: 0; }
  .grid td.c-why { flex: 1 1 100%; max-width: none; min-width: 0; }
  .grid td.c-sig, .grid td.c-conf, .grid td.c-mcap, .grid td.c-chg24, .grid td.c-mom { display: flex !important; flex-direction: column; gap: 4px; flex: 1 1 0; min-width: 0; text-align: left; }
  .grid td.c-sig { flex: 1.3 1 0; }
  .grid td.c-conf .conf { align-self: flex-start; }
  .grid td[data-label]::before { content: attr(data-label); font: 500 11px var(--font-display); color: var(--text-muted); }
  .grid td.c-kill, .grid td.c-spark, .grid td.c-mentions, .grid td.c-updated { display: none !important; }
  dl.nums.lk-nums { grid-template-columns: auto minmax(0, 1fr); }
  .lk-head .ca-line { margin-left: 0; }
  ul.hero-why li { font-size: 14px; }
}
/* Hidden tooltips (::after, opacity 0) must not widen the page on phones. */
html, body { overflow-x: clip; }
@media (max-width: 760px) {
  .grid tbody { grid-template-columns: minmax(0, 1fr); }
  .grid tbody tr { min-width: 0; }
  .grid tbody td.c-name, .grid tbody td.c-why { min-width: 0; }
}

/* ---- Audit v2 homepage pass (unshipped): clear hero, one filter bar, coins above the fold, roomier ticker ---- */
.intro { gap: 14px; padding: 28px 0 8px; }
.intro-hero { font: 600 48px/1.08 var(--font-display); letter-spacing: -0.035em; max-width: 18ch; }
.intro-hero .g { color: var(--accent); text-shadow: 0 0 28px rgba(0, 255, 136, 0.18); }
.intro-sub { margin: 0; font: 500 18px/1.5 var(--font-display); color: var(--text-2); max-width: 58ch; }
.intro-proof { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.intro-proof li { padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; font: 500 13px/1.3 var(--font-display); color: var(--text-2); }
.intro-proof a { color: var(--text); text-decoration: none; }
.intro-proof a:hover { color: var(--accent); }
.intro-nfa { font: 500 13px/1.5 var(--font-display); color: var(--text-muted); }
.filter-bar.stage-bar { align-items: center; gap: 12px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.filter-bar.stage-bar::-webkit-scrollbar { display: none; }
.filter-bar.stage-bar .tabs { flex: none; flex-wrap: nowrap; }
.filter-bar .tabs.life-tabs { flex-wrap: nowrap; }
.bar-div { flex: none; width: 1px; height: 20px; background: var(--border); }
.cat-tabs .chip { color: var(--text-muted); font-size: 13px; }
.filters .chip[data-tip] { position: relative; }
.filters .cat-tabs .chip[data-tip]::after { left: auto; right: 0; }
.top-coins-track { gap: 12px; }
.tc-card { padding: 8px 18px 8px 8px; gap: 12px; }
@media (max-width: 760px) {
  .intro { padding: 16px 0 4px; }
  .intro-hero { font-size: 32px; }
  .intro-sub { font-size: 16px; }
  .intro-proof li:nth-child(n+2) { display: none; }
  .intro-proof li:first-child + li + li { display: list-item; }
  .filters { min-width: 0; max-width: 100vw; overflow: hidden; contain: paint; }
  .filter-bar.stage-bar { padding: 0 16px 4px; max-width: 100%; }
  .filter-bar.stage-bar .tabs { padding: 0; overflow: visible; }
}

/* ---- v2.1: full-width home. Headlines in a narrow left column, radar fills the rest ---- */
.main.home-split { max-width: none; display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; padding: 24px 28px 40px; }
.main.home-split.no-news { grid-template-columns: minmax(0, 1fr); }
.main.home-split.no-news .news-col { display: none; }
.radar-col { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.news-col { position: sticky; top: 72px; max-height: calc(100vh - 96px); overflow-y: auto; scrollbar-width: thin; min-width: 0; }
.news-col .headlines-panel { padding: 14px 16px; }
.news-col .p-head { margin-bottom: 8px; }
.news-col .headlines li { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 10px 0; font-size: 14px; line-height: 1.4; }
.news-col .headlines a { color: var(--text-2); }
.news-col .headlines a:hover { color: var(--text); }
@media (min-width: 1800px) { .main.home-split { grid-template-columns: 340px minmax(0, 1fr); gap: 36px; padding: 28px 40px 48px; } }
@media (max-width: 1099px) {
  .main.home-split { grid-template-columns: minmax(0, 1fr); padding: 16px; gap: 16px; }
  .news-col { order: 2; position: static; max-height: none; overflow: visible; }
  .radar-col { order: 1; gap: 12px; }
}
@media (min-width: 1100px) and (max-width: 1599px) {
  .home-split .hero { grid-template-columns: minmax(0, 1fr) auto; gap: 24px; }
  .home-split .hero-chart { display: none; }
  .home-split .hero-name { font-size: 34px; white-space: normal; }
  .home-split .intro { padding-top: 8px; }
  .home-split .intro-hero { font-size: 44px; }
}

/* =====================================================================
   v2.2 visual polish (fomo-calm): 8px rhythm, hairlines, soft chips,
   one green accent, subtle glow only. Overrides earlier rules on purpose.
   ===================================================================== */
:root { --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --hair: rgb(212 216 228 / 0.07); --hover: rgb(212 216 228 / 0.035);
  --soft-green: rgb(var(--accent-rgb) / 0.10); --soft-teal: rgb(94 234 212 / 0.10); --amber: var(--stage-peaking); --soft-amber: rgb(245 179 1 / 0.10);
  --soft-grey: rgb(139 147 163 / 0.12); }
body { background: radial-gradient(1200px 520px at 60% -120px, rgb(var(--accent-rgb) / 0.045), transparent 70%), var(--bg); }

/* Top bar + ticker: calmer */
.topbar { border-bottom: 1px solid var(--hair); }
.top-coins { background: transparent; border-bottom: 1px solid var(--hair); }
.top-coins-inner { padding: 8px 24px; gap: 16px; }
.top-coins .label { color: var(--text-muted); font-size: 12px; }
.top-coins-track { gap: 16px; animation-duration: var(--top-coins-dur, 90s); }
.tc-card { border: 1px solid transparent; background: transparent; padding: 6px 16px 6px 6px; }
.tc-card:hover { background: var(--hover); border-color: var(--hair); box-shadow: none; transform: none; }
.top-coins-viewport { -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent); }

/* Hero: one calm headline, one line, search */
.radar-col { gap: 16px; }
.home-split .intro, .intro { gap: 8px; padding: 24px 0 0; }
.intro-hero, .home-split .intro-hero { font: 600 52px/1.05 var(--font-display); letter-spacing: -0.04em; max-width: none; }
.intro-hero .g { color: var(--accent); text-shadow: 0 0 32px rgb(var(--accent-rgb) / 0.16); }
.intro-sub { font: 500 17px/1.5 var(--font-display); color: var(--text-2); }
.search { border-radius: 999px; padding: 6px; border: 1px solid var(--hair); background: rgb(255 255 255 / 0.02); box-shadow: none; }
.search:focus-within { border-color: rgb(var(--accent-rgb) / 0.35); box-shadow: 0 0 0 4px rgb(var(--accent-rgb) / 0.06); }
.search input { background: transparent; border: 0; height: 44px; padding: 0 16px; font-size: 15px; }
.search .btn { border-radius: 999px; height: 44px; padding: 0 24px; }
.intro-fine { margin: -4px 0 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font: 500 12px/1.5 var(--font-display); color: var(--text-muted); }
.intro-fine a { color: var(--text-2); text-decoration: none; }
.intro-fine a:hover { color: var(--accent); }

/* Top signal: slim banner */
#hero.hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 8px 24px; padding: 12px 16px 12px 20px; min-height: 0;
  border: 1px solid rgb(var(--accent-rgb) / 0.16); border-radius: var(--r-lg); background: linear-gradient(90deg, rgb(var(--accent-rgb) / 0.06), rgb(var(--accent-rgb) / 0.01) 60%, transparent); box-shadow: none; }
#hero.hero:hover { border-color: rgb(var(--accent-rgb) / 0.32); }
#hero.hero.is-empty { display: block; padding: 16px 20px; border-color: var(--hair); background: transparent; }
#hero .hb-k { display: flex; align-items: center; gap: 8px; font: 500 12px var(--font-display); color: var(--text-muted); white-space: nowrap; }
#hero .hb-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
#hero .hero-name { margin: 0; font: 600 18px/1.2 var(--font-display); letter-spacing: -0.01em; white-space: nowrap; overflow: visible; flex: none; }
#hero .hb-why { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 13px var(--font-display); color: var(--text-muted); }
#hero .hb-stats { display: flex; gap: 24px; }
#hero .hb-stat { display: grid; gap: 0; text-align: right; }
#hero .hb-stat b { font: 600 15px var(--font-mono); font-variant-numeric: tabular-nums; color: var(--text); }
#hero .hb-stat b.g { color: var(--accent); } #hero .hb-stat b.down { color: var(--down); }
#hero .hb-stat small { font: 500 11px var(--font-display); color: var(--text-muted); }
#hero .hb-open { font: 500 13px var(--font-display); color: var(--text-2); white-space: nowrap; }
#hero:hover .hb-open { color: var(--accent); }
#hero .sr-nfa { grid-column: 1 / -1; margin: 0; font: 500 11px var(--font-display); color: var(--text-muted); }
#hero .hero-chart, #hero .hero-stats, #hero .hero-why { display: none; }

/* Filter bar */
.filters { padding: 0 0 8px; border-bottom: 0; }
.filters .life-tabs .chip { min-height: 36px; padding: 6px 14px; border-color: var(--hair); font-size: 14px; }
.filters .life-tabs .chip[aria-pressed="true"] { border-color: rgb(var(--accent-rgb) / 0.5); background: var(--soft-green); }

/* Coin list: refined rows */
.tbl { border: 1px solid var(--hair); border-radius: var(--r-lg); background: rgb(255 255 255 / 0.012); box-shadow: none; overflow: hidden; }
.tbl-head { padding: 16px 20px; border-bottom: 1px solid var(--hair); }
#grid { table-layout: fixed; width: 100%; border-collapse: separate; border-spacing: 0; }
#grid th { height: 40px; padding: 0 16px; font: 500 12px var(--font-display); color: var(--text-muted); text-transform: none; letter-spacing: 0; border-bottom: 1px solid var(--hair); background: var(--bg); }
#grid td { height: 64px; padding: 0 16px; border-bottom: 1px solid var(--hair); font-variant-numeric: tabular-nums; vertical-align: middle; }
#grid tbody tr:last-child td { border-bottom: 0; }
#grid tbody tr[data-id] { transition: background 160ms ease; }
#grid tbody tr[data-id]:hover td { background: var(--hover); }
#grid tbody tr.is-early td:first-child { box-shadow: inset 2px 0 0 rgb(var(--accent-rgb) / 0.7); }
#grid th.c-name { width: auto; } #grid th.c-spk { width: 128px; } #grid th.c-stage { width: 196px; }
#grid th.c-chg24 { width: 96px; } #grid th.c-sig { width: 128px; } #grid th.c-conf { width: 120px; } #grid th.c-mcap { width: 112px; }
#grid th.c-mom { width: 104px; } #grid th.c-mentions { width: 120px; }
#grid td.c-name b { font: 600 15px var(--font-display); }
#grid .c-sub { gap: 8px; opacity: 0.9; }
#grid td.r, #grid th.r { text-align: right; }
#grid td.c-chg24, #grid td.c-mcap { font: 500 14px var(--font-mono); }
#grid td.c-chg24.up { color: var(--accent); } #grid td.c-chg24.down { color: var(--down); }
.mspark { width: 96px; height: 28px; display: block; overflow: visible; }
.mspark .ml { fill: none; stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.mspark.up .ml { stroke: var(--accent); filter: drop-shadow(0 0 4px rgb(var(--accent-rgb) / 0.25)); }
.mspark.down .ml { stroke: var(--down); opacity: 0.75; }

/* Soft stage chips: Early green, Growing teal, Peaking amber, Already ran muted, Dead grey */
#grid td.c-stage { white-space: nowrap; }
#grid .early, #grid .late, #grid .stage, #hero .early { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; border: 0;
  font: 600 12px var(--font-display); letter-spacing: 0; text-transform: none; box-shadow: none; }
#grid .early, #hero .early { background: var(--soft-green); color: var(--accent); }
#grid .late { background: var(--soft-grey); color: var(--text-2); }
#grid .stage { text-transform: lowercase; }
#grid .stage::first-letter { text-transform: uppercase; }
#grid .stage.stage-GROWING { background: var(--soft-teal); color: var(--teal); }
#grid .stage.stage-PEAKING { background: var(--soft-amber); color: var(--amber); }
#grid .stage.stage-DEAD, #grid .stage.stage-INSUFFICIENT_DATA { background: var(--soft-grey); color: var(--stage-dead-text); }
#grid .stage .g { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.8; }
#grid .stage.sub { background: transparent !important; padding: 0 0 0 8px; font-weight: 500; color: var(--text-muted) !important; }
#grid .stage.sub .g { display: none; }
#grid .conf { border: 0; background: var(--soft-grey); color: var(--text-2); border-radius: 999px; padding: 3px 10px; font: 500 12px var(--font-display); }
#grid .conf.conf-medium { background: var(--soft-amber); color: var(--amber); }
#grid .conf.conf-high { background: var(--soft-green); color: var(--accent); }

/* Gentle motion */
@keyframes row-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
#grid tbody tr.enter { animation: row-in 360ms cubic-bezier(0.16, 1, 0.3, 1) both; }
@media (prefers-reduced-motion: reduce) { #grid tbody tr.enter { animation: none; } .top-coins-track { animation: none; } }

/* News column: badges, 2-line clamp, soft fade, sticky */
.news-col { top: 16px; max-height: calc(100vh - 32px); -webkit-mask-image: linear-gradient(#000 calc(100% - 64px), transparent); mask-image: linear-gradient(#000 calc(100% - 64px), transparent); padding-bottom: 48px; }
.news-col .headlines-panel { border: 0; background: transparent; box-shadow: none; padding: 8px 0 0; }
.news-col .p-head { padding: 0 0 8px; }
.news-col .headlines li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--hair); }
.news-col .headlines li:first-child { border-top: 0; }
.h-badge { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font: 600 11px var(--font-display);
  color: hsl(var(--h, 150) 70% 78%); background: hsl(var(--h, 150) 40% 20% / 0.55); }
.h-body { display: grid; gap: 4px; min-width: 0; }
.news-col .headlines a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font: 500 14px/1.4 var(--font-display); color: var(--text-2); }
.news-col .headlines a:hover { color: var(--text); }
.news-col .h-meta { font: 500 11px var(--font-display); color: var(--text-muted); white-space: normal; }

/* Status + footer quieter */
.radar-status, .footnote { opacity: 0.85; }
.foot { border-top: 1px solid var(--hair); color: var(--text-muted); font-size: 12px; }

@media (max-width: 1599px) and (min-width: 1100px) { #hero .hb-why { display: none; } }
@media (max-width: 1099px) {
  #hero.hero { grid-template-columns: minmax(0, 1fr) auto; }
  #hero .hb-stats { grid-column: 1 / -1; justify-content: space-between; }
  #hero .hb-stat { text-align: left; }
  #hero .hb-open { grid-row: 1; grid-column: 2; }
  #hero .hb-why { display: none; }
}
@media (max-width: 760px) {
  .intro-hero, .home-split .intro-hero { font-size: 34px; }
  .intro-sub { font-size: 15px; }
  .intro-fine span { display: block; }
  .tbl { border: 0; background: transparent; border-radius: 0; overflow: visible; }
  .tbl-head { padding: 0 0 8px; border: 0; }
  #grid td { height: auto; border-bottom: 0; padding: 0; }
  .grid tbody tr { background: rgb(255 255 255 / 0.015); border: 1px solid var(--hair); border-radius: var(--r-md); padding: 14px 16px; box-shadow: none; }
  #grid tbody tr.is-early td:first-child { box-shadow: none; }
  #grid tbody tr.is-early { border-color: rgb(var(--accent-rgb) / 0.28); }
  .grid td.c-spk { display: none !important; }
  .grid td[data-label]::before { font-size: 11px; }
}
/* v2.2: list header on one calm line */
.tbl-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.tbl-head .label { white-space: nowrap; font-size: 15px; }
.tbl-head .meta { font: 500 12px var(--font-display); color: var(--text-muted); white-space: normal; max-width: none; }
.tbl-head .meta.screened { flex-basis: 100%; }
.intro-sub { max-width: 72ch; }
#grid td.c-spk { padding-right: 24px; }
@media (max-width: 760px) { .tbl-head .meta { flex-basis: 100%; } }
#grid th.c-stage { width: 172px; } #grid th.c-sig { width: 136px; } #grid th.c-conf { width: 112px; }
#grid .c-sub { display: flex; align-items: center; flex-wrap: nowrap; overflow: hidden; white-space: nowrap; }
@media (max-width: 760px) {
  /* Name + stage on the first line, the four numbers on the second. */
  #grid tbody tr[data-id]::before { content: ""; order: 2; flex: 1 1 100%; height: 0; }
  #grid tbody tr[data-id] td.c-name, #grid tbody tr[data-id] td.c-stage { order: 1; }
  #grid tbody tr[data-id] td.c-chg24, #grid tbody tr[data-id] td.c-sig, #grid tbody tr[data-id] td.c-conf, #grid tbody tr[data-id] td.c-mcap,
  #grid tbody tr[data-id] td.c-mom, #grid tbody tr[data-id] td.c-mentions { order: 3; flex: 1 1 0; min-width: 0; text-align: left; }
  #grid tbody tr[data-id] td.c-stage .stage.sub { display: none; }
}
@media (max-width: 760px) {
  #grid tbody tr[data-id] td.c-sig .sig-dots { display: none; }
  #grid tbody tr[data-id] td.c-sig b { font: 500 15px var(--font-mono); }
  #grid tbody tr[data-id] td.c-conf .conf { align-self: flex-start; padding: 2px 8px; }
  #grid tbody tr[data-id] { gap: 8px 12px; }
}

/* ---- v2.3: thesis + accumulation (two calm lines per coin; details live in the drawer) ---- */
.grid th.c-name { width: 21%; }
.grid th.c-thesis { width: 34%; }
.grid td.c-thesis { white-space: normal; padding-top: 10px; padding-bottom: 10px; }
.th-line { display: flex; align-items: center; gap: 8px; min-width: 0; line-height: 1.35; }
.th-line + .th-line { margin-top: 6px; }
.th-txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 13px/1.35 var(--font-display); color: var(--text-2); }
.th-txt.muted { color: var(--text-muted); }
.tpill, .apill { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--border); font: 600 11px/1.2 var(--font-display); letter-spacing: .01em; white-space: nowrap; color: var(--text-muted); }
.tpill.t-strong { color: var(--bg); background: var(--accent); border-color: var(--accent); }
.tpill.t-partial { color: var(--accent); border-color: var(--accent-dim); }
.tpill.t-none { color: var(--text-muted); border-style: dashed; }
.tpill.t-unchecked, .apill.a-unchecked { color: var(--text-muted); border-style: dotted; }
.apill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.apill.a-building { color: var(--accent); }
.apill.a-flat { color: var(--text-2); }
.apill.a-exiting { color: var(--risk); border-color: rgb(255 77 77 / 0.35); }
.th-pending .th-txt { color: var(--text-muted); }
.hb-k .tpill { margin-left: 4px; }
.d-thesis .th-head, .d-acc .th-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.d-thesis .th-head b { font: 600 14px var(--font-display); color: var(--text); }
.d-acc .th-head .th-txt { white-space: normal; }
ul.checks.legs li { align-items: flex-start; }
ul.checks.legs .why { white-space: normal; text-align: right; display: grid; justify-items: end; gap: 4px; }
ul.checks li.flat .box { color: var(--text-2); }
.proof-links { display: inline-flex; flex-wrap: wrap; gap: 6px 10px; justify-content: flex-end; }
a.proof-link { font: 500 12px var(--font-display); color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent; }
a.proof-link:hover, a.proof-link:focus-visible { border-bottom-color: var(--accent); }
ul.risks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
ul.risks li { padding: 8px 12px; border-radius: 8px; background: var(--raised); border-left: 2px solid rgb(255 77 77 / 0.55); font: 500 13px/1.45 var(--font-display); color: var(--text-2); }
.d-checked { margin-top: -4px; }
@media (max-width: 1279px) and (min-width: 761px) { .grid th.c-thesis { width: 38%; } .grid th.c-sig { width: 96px; } }
@media (max-width: 760px) {
  #grid tbody tr[data-id] td.c-thesis { order: 2; flex: 1 1 100%; max-width: none; min-width: 0; padding: 0 !important; display: block !important; }
  .th-line .th-txt { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  ul.checks.legs .why { text-align: left; justify-items: start; }
  .proof-links { justify-content: flex-start; }
}
/* v2.3 fit: the thesis column takes the room; Confidence moves to the drawer until the screen is wide enough. */
#grid:has(th.c-thesis) th.c-stage { width: 118px; }
#grid:has(th.c-thesis) th.c-sig { width: 96px; }
#grid:has(th.c-thesis) th.c-mcap { width: 80px; }
#grid:has(th.c-thesis) th.c-chg24 { width: 76px; }
#grid:has(th.c-thesis) th.c-name { width: 24%; }
#grid:has(th.c-thesis) th.c-thesis { width: auto; }
.th-quiet .th-txt { font-size: 12px; }
@media (min-width: 761px) and (max-width: 1599px) { #grid:has(th.c-thesis) th.c-conf, #grid:has(th.c-thesis) td.c-conf { display: none; } }
@media (max-width: 760px) { .hb-k .tpill { display: none; } }

/* ---- v2.3 polish: trader pass (fit, quiet empties, watchlist, share, at-a-glance, no layout shift) ---- */
/* Numbers never truncate: 24h and market cap get room; cells use 12px side padding. */
#grid:has(th.c-thesis) th.c-chg24 { width: 92px; }
#grid:has(th.c-thesis) th.c-mcap { width: 92px; }
#grid:has(th.c-thesis) th.c-sig { width: 112px; }
#grid:has(th.c-thesis) th.c-stage { width: 128px; }
#grid th, #grid td { padding-left: 12px; padding-right: 12px; }
#grid th:first-child, #grid td:first-child { padding-left: 20px; }
#grid th:last-child, #grid td:last-child { padding-right: 20px; }
#grid td.c-chg24, #grid td.c-mcap { white-space: nowrap; overflow: visible; text-overflow: clip; }
#grid td.c-sig .sigs { white-space: nowrap; }

/* CA line: small mono address + a compact Copy pill that never overlaps the category tag.
   The visible pill is 22px; ::after widens the tap area to 36px without moving anything. */
#grid .c-sub { gap: 6px; overflow: visible; }
#grid .c-sub .ca-line { flex: none; gap: 4px; }
.copy.ca-copy { position: relative; min-height: 0; height: 22px; padding: 0 8px; font: 500 11px/22px var(--font-display); border: 1px solid var(--hair); background: transparent; color: var(--text-muted); min-width: 48px; text-align: center; }
.copy.ca-copy::after { content: ""; position: absolute; inset: -7px -2px; }
.copy.ca-copy:hover { color: var(--text); border-color: var(--border); box-shadow: none; }
.copy.done { color: var(--accent) !important; border-color: rgb(var(--accent-rgb) / 0.35) !important; }
#grid .c-sub .cat { flex: none; }
.tc-card .copy.ca-copy { height: 20px; line-height: 20px; min-width: 44px; }

/* Watch star: quiet until used; 32px tap target. */
button.watch { all: unset; box-sizing: border-box; cursor: pointer; flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 32px; height: 32px; margin: -4px 0 -4px auto; border-radius: 999px; color: var(--text-muted); font: 500 16px/1 var(--font-display); transition: color var(--dur), background var(--dur); }
button.watch:hover { color: var(--text); background: var(--hover); }
button.watch:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
button.watch[aria-pressed="true"] { color: var(--accent); }
#grid tbody tr[data-id] button.watch:not([aria-pressed="true"]) { opacity: 0; }
#grid tbody tr[data-id]:hover button.watch, #grid tbody tr[data-id]:focus-within button.watch { opacity: 1; }
@media (hover: none) { #grid tbody tr[data-id] button.watch:not([aria-pressed="true"]) { opacity: .7; } }
button.watch.watch-lg { margin: 0; height: 32px; padding: 0 12px; border: 1px solid var(--hair); font-size: 13px; }
button.watch.watch-lg .wg { font-size: 14px; }
.filters .chip.watch-chip { color: var(--text-2); }

/* Thesis column: rows with no thesis step back (one muted line, no outlined pill). */
.tpill.t-none { border-color: transparent; padding-left: 0; padding-right: 2px; font-weight: 500; }
td.c-thesis.is-quiet .th-line { opacity: .85; }
td.c-thesis.is-quiet .th-txt { font-size: 12px; }

/* Drawer header: actions in one row, links in one row, no stray "holders unchecked" note. */
.d-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.d-actions .ca-line { padding: 0 4px 0 10px; height: 32px; border-radius: 999px; border: 1px solid var(--hair); }
.d-actions .ca-short { font-size: 12px; color: var(--text-2); }
.d-actions .copy.ca-copy { border: 0; height: 24px; }
.copy.share { min-height: 0; height: 32px; padding: 0 14px; border: 1px solid var(--hair); background: transparent; color: var(--text-2); font: 500 13px var(--font-display); min-width: 64px; }
.copy.share:hover { color: var(--text); }
.d-links { display: flex !important; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.d-links .chart-links { gap: 6px; }
.d-links .chart-links a, a.x-search { min-height: 30px; padding: 4px 11px; font: 500 12px var(--font-display); background: transparent; border: 1px solid var(--hair); color: var(--text-2); border-radius: 999px; display: inline-flex; align-items: center; }
.d-links .chart-links a:hover, a.x-search:hover { background: var(--hover); color: var(--text); box-shadow: none; border-color: var(--border); }
.d-top .tags .cat { margin: 0; }

/* At a glance: the four answers a trader wants in three seconds. */
.d-glance { padding-top: 16px; }
dl.glance { margin: 0; display: grid; gap: 0; border: 1px solid var(--hair); border-radius: 12px; overflow: hidden; }
.gl-row { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 9px 12px; border-top: 1px solid var(--hair); }
.gl-row:first-child { border-top: 0; }
.gl-row dt { font: 500 12px var(--font-display); color: var(--text-muted); }
.gl-row dd { margin: 0; font: 500 13px/1.45 var(--font-display); color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gl-row.gl-ok dd { color: var(--accent); }
.gl-row.gl-part dd { color: var(--text); }
.gl-row.gl-no dd { color: var(--down); }
.d-glance .nfa { margin-top: 2px; }

/* Thesis legs: label on the left, proof under it in readable type (not right-aligned mono). */
ul.checks.legs li { display: grid; grid-template-columns: 14px minmax(0, 1fr); column-gap: 10px; row-gap: 2px; align-items: start; }
ul.checks.legs li .box { margin-top: 2px; }
ul.checks.legs li > span:nth-child(2) { color: var(--text); font: 500 13px/1.4 var(--font-display); }
ul.checks.legs .why { grid-column: 2; margin: 0; text-align: left; justify-items: start; font: 400 12px/1.45 var(--font-display); color: var(--text-muted); }
ul.checks.legs .proof-links { justify-content: flex-start; }

/* Early tab empty state: honest, with "closest to early" and what's missing. */
.empty .near { max-width: 720px; margin: 20px auto 0; text-align: left; }
.empty .near .label { margin: 0 0 8px; font: 500 12px var(--font-display); color: var(--text-muted); text-transform: none; letter-spacing: 0; }
ul.near-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
button.near-row { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto auto; gap: 12px; align-items: center;
  padding: 10px 14px; border: 1px solid var(--hair); border-radius: 12px; transition: background var(--dur), border-color var(--dur); }
button.near-row:hover { background: var(--hover); border-color: var(--border); }
button.near-row:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.near-main { display: grid; gap: 4px; min-width: 0; }
.near-main b { font: 600 14px var(--font-display); color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.near-miss { display: flex; flex-wrap: wrap; gap: 4px 10px; font: 500 12px/1.4 var(--font-display); color: var(--text-muted); }
.near-miss .miss::before { content: "✕ "; color: var(--down); }
.near-sig { font: 600 13px var(--font-mono); color: var(--text-2); }
.near-go { color: var(--text-muted); }
button.near-row:hover .near-go { color: var(--accent); }
.empty .near .nfa { text-align: left; }

/* No layout shift: reserve the top strip and the hero while data loads. */
.top-coins.is-loading { min-height: 64px; }
.top-coins.is-loading .top-coins-viewport { height: 44px; border-radius: 12px; background: linear-gradient(90deg, transparent 0%, var(--shimmer) 50%, transparent 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
#hero:empty { min-height: 74px; border-color: var(--hair); background: linear-gradient(90deg, transparent 0%, var(--shimmer) 50%, transparent 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; cursor: default; }
#grid tbody tr.skel td { height: 64px; }
@media (prefers-reduced-motion: reduce) {
  .top-coins.is-loading .top-coins-viewport, #hero:empty, .skel span { animation: none; }
  button.watch, button.near-row, .copy { transition: none; }
}

@media (max-width: 760px) {
  /* Hero banner: label wraps instead of running under "View →". */
  #hero.hero { grid-template-columns: minmax(0, 1fr) auto; }
  #hero .hb-k { white-space: normal; flex-wrap: wrap; min-width: 0; row-gap: 4px; }
  #hero .hb-open { align-self: start; }
  /* Cards: star sits top-right next to the name; CA + Copy + tag wrap cleanly. */
  #grid .c-sub { flex-wrap: wrap; row-gap: 6px; }
  button.watch { margin: -6px 0 -6px 4px; }
  .gl-row { grid-template-columns: 72px minmax(0, 1fr); }
  button.near-row { grid-template-columns: 24px minmax(0, 1fr) auto; }
  .near-go { display: none; }
  /* Fixed ticker never covers the last card. */
  .app { padding-bottom: 44px; }
  .ticker .tape { padding-left: 12px; }
}
/* polish pass 2 */
#grid:has(th.c-thesis) th.c-name { width: 25%; }
#grid:has(th.c-thesis) th.c-sig { width: 120px; }
#grid:has(th.c-thesis) th.c-chg24 { width: 88px; }
#grid:has(th.c-thesis) th.c-mcap { width: 88px; }
#grid:has(th.c-thesis) th.c-stage { width: 124px; }
/* "Uncategorized" tells a trader nothing: hide it on rows and cards (the filter tab still exists). */
#grid .c-sub .cat-uncategorized { display: none; }
#grid .c-sub { overflow: hidden; }
.d-links .chart-links { display: contents; }
.drawer .late { display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: 999px; background: var(--soft-grey); color: var(--text-2); font: 600 12px var(--font-display); }
.d-top .tags .cat { font-size: 12px; }
@media (max-width: 760px) {
  #grid .c-sub { flex-wrap: nowrap; }
  /* Cards keep the name readable: an unstarred star hides (Watch lives in the card details); a starred one stays. */
  #grid tbody tr[data-id] button.watch:not([aria-pressed="true"]) { display: none; }
  #grid tbody tr[data-id] button.watch { min-width: 24px; height: 24px; margin: 0 0 0 2px; font-size: 14px; }
  .d-top .sub { margin-top: 6px; }
  .d-actions, .d-links { margin-top: 8px; }
}
.row2.rail-off { display: none; }
.empty .near .nfa { font-size: 12px; margin: 10px 0 0; max-width: none; color: var(--text-muted); }
#grid tbody tr.more-row td { height: auto; padding: 12px 20px; text-align: center; border-bottom: 0; }
button.more { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--hair); color: var(--text-2); font: 500 13px var(--font-display); transition: background var(--dur), color var(--dur); }
button.more:hover { background: var(--hover); color: var(--text); }
button.more:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 760px) { #grid tbody tr.more-row { display: block; border: 0; background: transparent; padding: 4px 0; } #grid tbody tr.more-row td { display: block; padding: 0; } button.more { width: 100%; justify-content: center; } }
@media (max-width: 760px) {
  #grid th:first-child, #grid td:first-child, #grid th:last-child, #grid td:last-child { padding-left: 0; padding-right: 0; }
  #grid tbody tr[data-id] td { padding-left: 0; padding-right: 0; }
  #grid .c-sub { flex-wrap: wrap; overflow: visible; }
}
/* Copycat guard: one red pill on the row, a red note with the bio link in the card. */
.tpill.t-copycat { color: var(--down); border-color: rgb(255 107 107 / 0.45); background: rgb(255 107 107 / 0.08); }
p.copycat-note { margin: 0 0 8px; padding: 8px 12px; border-radius: 8px; background: rgb(255 107 107 / 0.08); border-left: 2px solid var(--down); font: 500 13px/1.45 var(--font-display); color: var(--text-2); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
p.copycat-note b { color: var(--down); font-weight: 600; }
