/* Restage app. Tokens match the Restage design system (dark first). */
:root {
  --surface: #0e0f0c; --raised: #181a15; --raised2: #24271f; --line: #2c2f27;
  --ink: #f2f3ec; --muted: #a2a597; --volt: #c6f432; --onvolt: #12130f;
  --voltsoft: #263010; --coral: #ff6a47; --focus: #c6f432;
  --sans: Inter, system-ui, sans-serif;
  --display: "Space Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --surface: #f6f6f1; --raised: #ffffff; --raised2: #efefe8; --line: #dcdcd3;
    --ink: #12130f; --muted: #5c5f54; --voltsoft: #eaf6c4; --coral: #c93412; --focus: #12130f;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --surface: #f6f6f1; --raised: #ffffff; --raised2: #efefe8; --line: #dcdcd3;
  --ink: #12130f; --muted: #5c5f54; --voltsoft: #eaf6c4; --coral: #c93412; --focus: #12130f;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--surface); color: var(--ink); font-family: var(--sans); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
svg { flex: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 50; padding: 10px 14px; border-radius: 999px; background: var(--volt); color: var(--onvolt); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.tag { padding: 1px 6px; border-radius: 4px; border: 1px solid var(--line); font-family: var(--mono); font-size: 10px; line-height: 14px; font-weight: 600; letter-spacing: .06em; color: var(--muted); white-space: nowrap; }

/* Shell + rail */
.shell { display: flex; min-height: 100vh; }
.rail { flex: 0 0 76px; border-right: 1px solid var(--line); padding: 16px 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; position: sticky; top: 0; height: 100vh; }
.rail-logo { display: flex; margin-bottom: 14px; }
.rail-item { width: 56px; min-height: 54px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); text-decoration: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 10px; line-height: 12px; font-weight: 500; cursor: pointer; }
.rail-item svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.rail-item:hover { color: var(--ink); }
.rail-item.is-active { background: var(--voltsoft); color: var(--ink); font-weight: 600; }
.rail-item[aria-disabled="true"] { cursor: not-allowed; }
.main { flex: 1; min-width: 0; padding: 16px 28px 40px; display: flex; flex-direction: column; gap: 16px; }

/* Top bar */
.topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.today { display: flex; align-items: center; gap: 4px; padding: 3px; border-radius: 999px; border: 1px solid var(--line); }
.today-tag { padding: 5px 12px; border-radius: 999px; background: var(--raised2); font-size: 13px; font-weight: 600; }
.today-live { padding: 5px 8px; display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.today-count { padding: 5px 12px 5px 2px; font-size: 13px; font-weight: 600; }
.dot-live { width: 7px; height: 7px; border-radius: 999px; background: var(--coral); }
.sections { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.navtab { min-height: 36px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; text-decoration: none; }
.navtab svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.navtab:hover { color: var(--ink); }
.navtab[aria-disabled="true"] { cursor: not-allowed; }
.navtab.is-active { color: var(--ink); background: var(--raised2); padding-right: 6px; }
.platforms { display: inline-flex; gap: 2px; margin-left: 4px; padding: 2px; border-radius: 999px; background: var(--surface); }
.platform { width: 28px; height: 22px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; }
.platform.is-on { background: var(--voltsoft); }
.platform.is-soon { opacity: .6; }
.logo-meta { width: 18px; height: 18px; }
.logo-meta path { fill: none; stroke: #0a7cff; stroke-width: 2.3; stroke-linejoin: round; }
.logo-tiktok { width: 16px; height: 16px; fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.tt-a { stroke: #25f4ee; } .tt-b { stroke: #fe2c55; } .tt-c { stroke: var(--ink); }
.icon-btn { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: transparent; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.icon-btn.small { width: 36px; height: 36px; }
.icon-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover, .icon-btn[aria-pressed="true"] { background: var(--raised2); }

/* Search + market */
.search-row { display: flex; justify-content: center; }
.search { width: 100%; max-width: 520px; position: relative; display: flex; align-items: center; }
.search svg { position: absolute; left: 14px; width: 17px; height: 17px; fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; }
.search input { width: 100%; min-height: 44px; padding: 0 14px 0 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--raised2); font-size: 14px; }
.search input::placeholder { color: var(--muted); }
.market-row { display: flex; justify-content: center; align-items: center; gap: 8px; }
.market { display: flex; align-items: center; gap: 2px; padding: 3px 3px 3px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--raised); }
.market-label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; margin-right: 6px; white-space: nowrap; }
.market button { min-height: 32px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; cursor: pointer; }
.market button[aria-selected="true"] { background: var(--volt); color: var(--onvolt); }
.market .count { font-family: var(--mono); font-size: 11px; font-weight: 500; opacity: .75; }

/* Filters */
.filters { border: 1px solid var(--line); background: var(--raised); border-radius: 14px; padding: 14px 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px 24px; }
.filters[hidden] { display: none; }
.fgroup { display: flex; flex-direction: column; gap: 10px; }
.fgroup h2 { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 13px; line-height: 18px; font-weight: 600; }
.fgroup h2 svg, .fgroup-head span svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fgroup-head { justify-content: space-between; }
.fgroup-head > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-height: 34px; padding: 0 10px; border-radius: 999px; border: 1px dashed var(--line); background: transparent; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; cursor: not-allowed; white-space: nowrap; }
.chip svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chip .chev { width: 12px; height: 12px; stroke-width: 2; }
.fnote { margin: 0; font-size: 12px; line-height: 17px; color: var(--muted); }

/* Sort row */
.sort-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.sort { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.sort select { min-height: 36px; padding: 0 6px; border-radius: 8px; border: 1px solid transparent; background: transparent; font-size: 13px; font-weight: 600; cursor: pointer; }
.sort select:hover { border-color: var(--line); }
.sort select option { background: var(--raised); color: var(--ink); }
.sort-hint { font-size: 12px; color: var(--muted); }
.showing { display: flex; align-items: center; gap: 10px; }
.showing > div { display: flex; flex-direction: column; align-items: flex-end; }
.showing-label { font-size: 11px; line-height: 14px; color: var(--muted); }
.showing-count { font-size: 13px; line-height: 17px; font-weight: 600; }

/* Grid + card */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; align-items: start; }
.card { background: var(--raised); border: 1px solid var(--line); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.strip { display: flex; flex-direction: column; gap: 6px; }
.srow { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px; min-width: 0; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 8px; border: 1px solid var(--line); font-family: var(--mono); font-size: 11px; line-height: 18px; color: var(--muted); white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pill strong { color: var(--ink); font-weight: 600; }
.pill .vdot { width: 6px; height: 6px; border-radius: 999px; background: var(--volt); flex: none; }
.score-chip { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 8px; background: var(--raised2); font-family: var(--mono); font-size: 11px; line-height: 18px; white-space: nowrap; cursor: help; }
.score-chip .lbl { color: var(--muted); }
.score-chip strong { font-weight: 600; }
.mini { width: 18px; height: 3px; border-radius: 999px; background: var(--line); overflow: hidden; }
.mini > span { display: block; height: 100%; background: var(--volt); }
.spend-row { display: flex; gap: 6px; align-items: stretch; min-width: 0; }
.spend-row .pill { flex: none; font-weight: 600; }
.spend { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 3px 9px; border-radius: 8px; background: var(--raised2); font-family: var(--mono); font-size: 12px; line-height: 18px; font-weight: 600; white-space: nowrap; }
.spend.is-est { background: var(--voltsoft); }
.spend .val { display: inline-flex; align-items: center; gap: 6px; overflow: hidden; text-overflow: ellipsis; }
.spend .kind { font-size: 10px; letter-spacing: .06em; color: var(--muted); }
.bars { display: inline-flex; align-items: flex-end; gap: 2px; }
.bars span { width: 3px; border-radius: 1px; background: var(--line); }
.bars span.on { background: var(--ink); }
.bars span:nth-child(1) { height: 5px; } .bars span:nth-child(2) { height: 8px; } .bars span:nth-child(3) { height: 11px; }
.growth { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 3px 9px; border: 1px solid var(--line); border-radius: 8px; font-family: var(--mono); font-size: 12px; line-height: 18px; white-space: nowrap; min-width: 0; }
.growth .g { display: inline-flex; align-items: center; gap: 6px; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.growth svg { width: 13px; height: 13px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.growth strong { font-weight: 600; }
.growth .sub, .growth .top { color: var(--muted); }
.growth .top { flex: none; }

.preview { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.brand { padding: 10px; display: flex; gap: 8px; align-items: center; min-width: 0; }
.avatar { flex: none; width: 28px; height: 28px; border-radius: 999px; color: #f2f3ec; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 12px; }
.brand-text { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.brand-name { font-size: 13px; line-height: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-domain { font-size: 11px; line-height: 15px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
.brand-domain:hover { text-decoration: underline; }
/* Padding lives on the wrapper: a clamped element with bottom padding shows a sliver of the next line. */
.copy-wrap { padding: 0 10px 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
/* Every card reserves two lines plus the Show more row, so videos line up across the grid. */
.copy { margin: 0; min-height: 34px; font-size: 12px; line-height: 17px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.copy.is-open { display: block; -webkit-line-clamp: unset; white-space: pre-line; }
.more { border: 0; padding: 2px 0; background: none; color: var(--muted); font-size: 11px; line-height: 15px; font-weight: 600; cursor: pointer; }
.more[hidden] { display: inline-block; visibility: hidden; } /* keeps its space, invisible and not focusable */
.more:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.media { position: relative; aspect-ratio: 9 / 16; overflow: hidden; background: #1b1d17; }
.compact .media { aspect-ratio: 4 / 5; }
.media img, .media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.media video { background: #000; }
.media-open { position: absolute; inset: 0; border: 0; padding: 0; background: transparent; cursor: pointer; }
.caption { position: absolute; left: 8px; right: 8px; bottom: 8px; background: rgba(10, 11, 9, .74); color: #f2f3ec; border-radius: 6px; padding: 7px 9px; font-size: 12px; line-height: 17px; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; pointer-events: none; }
.fallback { position: absolute; inset: 0; background: var(--raised2); padding: 44px 14px 14px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; }
.fallback .avatar { width: 40px; height: 40px; font-size: 16px; }
.fallback .quote { font-family: var(--display); font-size: 16px; line-height: 21px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.fallback .note { font-size: 11px; line-height: 15px; color: var(--muted); }
.flags { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; pointer-events: none; }
.flag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 7px; border-radius: 6px; font-size: 11px; line-height: 16px; font-weight: 600; background: rgba(14, 15, 12, .82); color: #f2f3ec; border: 1px solid transparent; }
.flag svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.flag.hot { background: #c6f432; color: #12130f; }
.flag.warn { border: 1px dashed rgba(242, 243, 236, .7); }
.flag.muted { color: #c9cbbf; }
.play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px; border-radius: 999px; border: 0; background: rgba(14, 15, 12, .72); color: #f2f3ec; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.play svg { width: 18px; height: 18px; fill: currentColor; }
.play:hover { background: rgba(14, 15, 12, .9); }
.cta-bar { padding: 9px 10px; display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); }
.cta-bar .d { flex: 1; min-width: 0; font-size: 11px; line-height: 15px; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cta-bar .c { flex: none; padding: 5px 10px; border-radius: 6px; background: var(--raised2); font-size: 12px; line-height: 16px; font-weight: 600; }
.why { display: flex; flex-direction: column; gap: 5px; padding: 0 2px; }
.why-row { display: grid; grid-template-columns: minmax(0, 1fr) 36px 34px; align-items: center; gap: 8px; font-size: 11px; line-height: 15px; color: var(--muted); }
.why-row > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.why-row .b { height: 3px; background: var(--line); border-radius: 999px; overflow: hidden; }
.why-row .b > span { display: block; height: 100%; background: var(--muted); }
.why-row .p { font-family: var(--mono); text-align: right; }
.why-foot { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; line-height: 15px; }
.why-foot .m { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.linkbtn { flex: none; border: 0; padding: 0; background: none; font-size: 11px; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.actions { display: flex; gap: 6px; }
.btn-volt { flex: 1; min-height: 44px; border-radius: 999px; background: var(--volt); color: var(--onvolt); display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 600; text-decoration: none; border: 0; padding: 0 16px; cursor: pointer; white-space: nowrap; }
.btn-volt svg, .btn-ghost svg, .round svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn-volt:hover { filter: brightness(1.05); }
.round { flex: none; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: transparent; display: flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer; }
.round:hover { background: var(--raised2); }
.round[aria-disabled="true"] { cursor: not-allowed; }
.btn-ghost { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn-ghost:hover { background: var(--raised2); }

/* Skeleton + states */
.skel { background: var(--raised); border: 1px solid var(--line); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.skel div { background: var(--raised2); border-radius: 6px; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .skel div { animation: none; } }
.empty { border: 1px dashed var(--line); border-radius: 12px; padding: 56px 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.empty h2 { margin: 0; font-family: var(--display); font-size: 24px; line-height: 30px; font-weight: 600; }
.empty p { margin: 0; max-width: 460px; font-size: 15px; line-height: 22px; color: var(--muted); }
.empty svg { width: 40px; height: 40px; fill: none; stroke: var(--muted); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.empty .btn-volt { flex: none; }

.foot { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 28px; font-family: var(--mono); font-size: 12px; line-height: 18px; color: var(--muted); }
.foot p { margin: 0; flex-basis: 100%; font-family: var(--sans); font-size: 13px; }

/* Drawer */
.drawer-wrap { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; padding: 32px; }
.drawer-wrap[hidden] { display: none; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(5, 6, 4, .72); }
.drawer { position: relative; width: min(1280px, 100%); max-height: 100%; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; display: grid; grid-template-columns: 380px minmax(0, 1fr); }
.d-left { background: var(--raised); border-right: 1px solid var(--line); padding: 24px 28px; display: flex; flex-direction: column; align-items: center; gap: 14px; overflow-y: auto; }
.d-media { position: relative; width: 100%; max-width: 320px; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: #1b1d17; }
.d-media video, .d-media img { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
.d-nav { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.d-hint { margin: 0; font-size: 12px; color: var(--muted); text-align: center; }
.d-right { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; }
.d-head { padding: 22px 26px 0; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; }
.d-head .avatar { width: 44px; height: 44px; font-size: 18px; }
.d-title { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.d-title h2 { margin: 0; font-family: var(--display); font-size: 24px; line-height: 30px; font-weight: 600; overflow-wrap: anywhere; }
.d-title p { margin: 0; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.d-title a { color: var(--muted); }
.d-head .btn-volt { flex: none; }
.tabs { padding: 16px 26px 0; display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { min-height: 44px; padding: 0 14px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.tabs button[aria-selected="true"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--volt); }
.tabs button[aria-disabled="true"] { cursor: not-allowed; }
.d-body { padding: 20px 26px 26px; overflow-y: auto; }
.d-cols { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; }
.d-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.panel { border: 1px solid var(--line); background: var(--raised); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.panel h3 { margin: 0; font-size: 15px; line-height: 20px; font-weight: 600; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.panel-head span { font-size: 12px; color: var(--muted); }
.big-score { display: flex; gap: 18px; align-items: center; }
.big-score .n { font-family: var(--mono); font-size: 52px; line-height: 52px; font-weight: 600; letter-spacing: -.03em; }
.big-score .l { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.big-score .r { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.meter { height: 8px; background: var(--raised2); border-radius: 999px; overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--volt); border-radius: 999px; }
.big-score p { margin: 0; font-size: 14px; line-height: 21px; }
.big-score p.m { font-size: 13px; color: var(--muted); }
.signals { display: grid; grid-template-columns: minmax(0, 1fr) 110px 52px; gap: 4px 14px; align-items: center; }
.signals .s-l { font-size: 14px; font-weight: 500; }
.signals .s-b { height: 6px; background: var(--raised2); border-radius: 999px; overflow: hidden; }
.signals .s-b > span { display: block; height: 100%; background: var(--volt); }
.signals .s-p { font-family: var(--mono); font-size: 13px; text-align: right; }
.signals .s-d { grid-column: 1 / -1; font-size: 12px; line-height: 16px; color: var(--muted); margin-bottom: 8px; }
.signals .is-missing { color: var(--muted); }
.chart { width: 100%; height: 130px; display: block; }
.chart .axis { stroke: var(--line); }
.chart .line { fill: none; stroke: var(--volt); stroke-width: 2.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.chart circle { fill: var(--volt); }
.chart-labels { display: flex; justify-content: space-between; gap: 8px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.money { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.money .v { font-family: var(--mono); font-size: 26px; line-height: 32px; font-weight: 600; }
.money .k { font-size: 12px; color: var(--muted); }
.small-note { margin: 0; font-size: 12px; line-height: 18px; color: var(--muted); }
.facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.facts dt { font-family: var(--mono); font-size: 10px; line-height: 14px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-family: var(--mono); font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.facts .wide { grid-column: 1 / -1; }
.facts .wide dd { font-family: var(--sans); font-weight: 400; font-size: 13px; }
.hook { margin: 0; font-family: var(--display); font-size: 17px; line-height: 24px; font-weight: 600; overflow-wrap: anywhere; }
.longtext { margin: 0; font-size: 14px; line-height: 22px; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Sign-in and no-access pages */
.gate { min-height: 100vh; padding: 48px 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.gate-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.gate-sub { margin: 0 0 8px; color: var(--muted); font-size: 15px; }
.gate-box { min-height: 320px; display: flex; justify-content: center; }
.gate-error { margin: 0; color: var(--coral); font-size: 14px; }
.gate-card { max-width: 440px; border: 1px solid var(--line); background: var(--raised); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.gate-card h1 { margin: 0; font-family: var(--display); font-size: 24px; line-height: 30px; }
.gate-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 22px; overflow-wrap: anywhere; }
.gate-card .btn-volt { flex: none; }
.user-btn { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }
.top-right { display: flex; align-items: center; gap: 8px; }

/* Phone */
@media (max-width: 760px) {
  .rail { display: none; }
  .main { padding: 14px 16px 32px; }
  .topbar { gap: 10px; }
  .sections { order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .sections .tag { display: none; }
  .market-label { display: none; }
  .market { padding-left: 3px; }
  .grid { grid-template-columns: 1fr; }
  .drawer-wrap { padding: 0; }
  .drawer { grid-template-columns: 1fr; height: 100%; border-radius: 0; overflow-y: auto; display: block; }
  .d-left { border-right: 0; border-bottom: 1px solid var(--line); }
  .d-media { max-width: 260px; }
  .d-right { overflow: visible; }
  .d-body { overflow: visible; }
  .d-cols { grid-template-columns: 1fr; }
}
