/* VICE RADAR shell — layout, typography, and the five screens.
   Colors come from theme.css tokens only. */

body.vice {
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 80% 5%, var(--glow-spot) 0, transparent 33%),
    var(--bg);
  color: var(--text);
}

body.vice h1, body.vice h2, body.vice .intro-hero, body.vice .brand b,
body.vice .section-head h2, body.vice .vr-metric strong,
body.vice .night-card strong, body.vice .vr-hero h1 {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

.app-shell { min-height: 100vh; display: flex; background: transparent; }
.app-shell > .app { flex: 1; min-width: 0; }

/* ---------- Sidebar ---------- */
.vr-sidebar {
  width: var(--rail-w);
  flex-shrink: 0;
  background: var(--panel);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 28px 16px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 30;
}
.vr-logo { padding: 0 8px 36px; display: flex; align-items: center; justify-content: space-between; }
.vr-sidebar .brand { padding: 0; gap: 12px; }
.brand-mark {
  width: 40px; height: 40px; flex: none;
  border: 1px solid var(--accent);
  border-radius: 9px;
  color: var(--accent);
  display: grid; place-items: center;
  position: relative;
  background: linear-gradient(155deg, #2f1936, #11141d);
  box-shadow: 0 0 30px rgb(var(--accent-rgb) / 0.1);
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-mark i {
  position: absolute; right: 5px; top: 5px;
  width: 4px; height: 4px; background: #f998c3; border-radius: 50%;
}
.vr-sidebar .brand b { display: block; font: 800 23px/0.95 var(--font-display); letter-spacing: 1.3px; color: var(--text); }
.vr-sidebar .brand b i { color: var(--accent); }
.vr-sidebar .brand small {
  font: 600 8px/1.1 var(--font-body); letter-spacing: 2px;
  color: var(--text-muted); display: block; margin-top: 6px;
}
.side-label {
  color: var(--text-muted); font-size: 10px; letter-spacing: 1.65px; font-weight: 800;
  display: flex; justify-content: space-between; padding: 0 12px; margin: 0 0 12px;
  text-transform: uppercase;
}
.side-nav, .side-quick { display: flex; flex-direction: column; gap: 5px; }
.nav-item {
  width: 100%; height: 46px; background: transparent; border: 1px solid transparent;
  border-radius: 7px; color: var(--text-2);
  display: flex; gap: 12px; align-items: center; padding: 0 13px;
  text-align: left; font: 700 13px/1 var(--font-body);
  text-decoration: none; cursor: pointer;
  transition: background var(--dur), color var(--dur), border-color var(--dur);
}
.nav-item:hover { background: var(--raised); color: var(--text); text-decoration: none; }
.nav-item.active, .nav-item[aria-current="page"] {
  background: #2e1a31; border-color: #68374f; color: #ffa4d0;
}
.nav-item svg { flex: none; opacity: 0.9; }
.nav-index { margin-left: auto; font-size: 10px; letter-spacing: 1px; opacity: 0.55; }
.side-divider { height: 1px; background: var(--border); margin: 24px 11px 18px; }
.nav-item.alt { height: 42px; font-size: 12px; }
.sidebar-bottom { margin-top: auto; }
.night-card {
  height: 168px; border: 1px solid #4f3455; border-radius: 10px;
  background: linear-gradient(180deg, #381a45 0%, #2b1e49 44%, #0e1325 80%);
  position: relative; overflow: hidden; padding: 17px;
}
.night-pill { position: relative; z-index: 2; font-size: 9px; letter-spacing: 1.3px; color: #ffc4e0; font-weight: 800; }
.night-card strong {
  font: 800 22px/0.95 var(--font-display); display: block; margin-top: 14px;
  position: relative; z-index: 2; color: var(--text);
}
.horizon {
  position: absolute; bottom: 17px; left: -10px; width: 120%; height: 65px;
  background: linear-gradient(90deg, #241a38 5%, transparent 5% 8%, #201b37 8% 15%, transparent 15% 18%, #281b3c 18% 31%, transparent 31% 34%, #1f1a35 34% 44%, transparent 44% 48%, #281b39 48% 64%, transparent 64% 68%, #1b1a37 68% 79%, transparent 79% 82%, #191d38 82%);
  clip-path: polygon(0 100%,0 50%,10% 50%,10% 10%,18% 10%,18% 42%,28% 42%,28% 0,39% 0,39% 50%,55% 50%,55% 19%,65% 19%,65% 40%,80% 40%,80% 0,88% 0,88% 60%,100% 60%,100% 100%);
}
.horizon-road {
  position: absolute; bottom: -55px; width: 220px; height: 105px;
  background: linear-gradient(180deg, rgb(var(--accent-rgb) / 0.2), #16182d);
  transform: rotate(-13deg); left: 25px;
  box-shadow: 0 0 50px rgb(var(--accent-rgb) / 0.27);
}
.footer-meta {
  display: flex; justify-content: space-between; margin: 15px 0 0;
  color: var(--text-muted); font-size: 8px; font-weight: 700; letter-spacing: 0.6px; gap: 8px;
}
.close-nav { display: none; background: none; border: 0; color: var(--text-2); padding: 6px; border-radius: 8px; }
.close-nav:hover { color: var(--text); }

/* ---------- Topbar ---------- */
body.vice .topbar {
  height: 70px; padding: 0 28px 0 24px;
  background: rgb(13 16 25 / 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  gap: 16px;
}
body.vice .topbar .brand { display: none; }
body.vice .topbar .nav { display: none; }
.vr-menu {
  display: none; background: none; border: 0; color: var(--text);
  width: 44px; height: 44px; place-items: center; border-radius: 8px; cursor: pointer;
}
.breadcrumb {
  font-size: 11px; color: var(--text-muted); letter-spacing: 1.15px; font-weight: 800;
  display: flex; gap: 10px; align-items: center; text-transform: uppercase;
}
.breadcrumb span { color: var(--text); }
.vr-top-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.data-state {
  display: flex; align-items: center; gap: 8px;
  font: 800 10px/1 var(--font-body); letter-spacing: 1.2px;
  padding: 7px 10px; border-radius: 999px; border: 1px solid var(--border);
  color: var(--text-2);
}
.data-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--stage-peaking); flex: none; }
.data-state.online i { background: var(--stage-growing); box-shadow: 0 0 8px var(--stage-growing); }
.data-state.sample i { background: var(--stage-peaking); }
.icon-button {
  width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--border);
  background: transparent; color: var(--text-2); display: grid; place-items: center; cursor: pointer;
}
.icon-button:hover { color: var(--text); background: var(--raised); }
.top-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  font: 800 10px/1 var(--font-display); letter-spacing: 1px;
  color: #ffc4e0; border: 1px solid #68374f; background: #2e1a31;
}

/* ---------- Screens ---------- */
.screen { display: none; flex-direction: column; gap: 28px; }
body.tab-meme .screen[data-screen="Meme Radar"],
body.tab-dispatch .screen[data-screen="Dispatch"],
body.tab-wanted .screen[data-screen="Most Wanted"],
body.tab-undercover .screen[data-screen="Undercover"],
body.tab-heatmap .screen[data-screen="Heat Map"] { display: flex; }

body.vice .main { padding-top: 24px; max-width: 1280px; }

/* Snapshot honesty strip */
.vr-snapshot {
  margin: 0; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--raised); color: var(--text-2); font: 500 13px/1.45 var(--font-body);
}
.vr-snapshot strong { color: var(--text); font-weight: 700; }

/* ---------- Cinematic hero (Dispatch) ---------- */
.vr-hero {
  position: relative; overflow: hidden; border: 1px solid var(--border);
  border-radius: var(--r-lg); min-height: 280px;
  padding: 36px 40px 32px;
  background:
    linear-gradient(180deg, rgb(47 25 54 / 0.55), rgb(9 11 18 / 0.2) 55%, var(--panel)),
    var(--panel);
}
.vr-hero-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.18;
  background-image:
    linear-gradient(rgb(241 241 246 / 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgb(241 241 246 / 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(#000, transparent 85%);
}
.vr-sun {
  position: absolute; right: 12%; top: 18px; width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, #ffb3c9 0%, #f271aa 35%, transparent 70%);
  opacity: 0.35; pointer-events: none; filter: blur(2px);
}
.vr-skyline {
  position: absolute; left: 0; right: 0; bottom: 0; height: 90px; display: flex;
  align-items: flex-end; gap: 6px; padding: 0 8% 0 42%; pointer-events: none;
}
.vr-skyline span {
  display: block; flex: 1; background: linear-gradient(180deg, #3a2150, #15101f);
  border-top: 1px solid rgb(var(--accent-rgb) / 0.25);
  min-width: 10px;
}
.vr-skyline span:nth-child(odd) { height: 55%; }
.vr-skyline span:nth-child(3n) { height: 90%; }
.vr-skyline span:nth-child(5n) { height: 40%; }
.vr-skyline span:nth-child(2) { height: 72%; }
.vr-hero-copy { position: relative; z-index: 1; max-width: 720px; }
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font: 800 11px/1 var(--font-body); letter-spacing: 1.6px; color: var(--text-muted);
  text-transform: uppercase; margin-bottom: 14px;
}
.eyebrow.pink { color: #ffc4e0; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.eyebrow-line { flex: 1; max-width: 80px; height: 1px; background: rgb(var(--accent-rgb) / 0.4); }
.vr-hero h1 {
  margin: 0; font: 800 64px/0.92 var(--font-display); letter-spacing: 0.5px; color: var(--text);
  text-transform: uppercase;
}
.vr-hero h1 em { font-style: italic; color: var(--accent); text-shadow: 0 0 32px rgb(var(--accent-rgb) / 0.35); }
.vr-hero-copy > p { margin: 16px 0 0; max-width: 52ch; color: var(--text-2); font: 500 16px/1.55 var(--font-body); }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn-primary, .btn-secondary, button.primary, button.secondary {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 16px; border-radius: 8px; cursor: pointer;
  font: 800 13px/1 var(--font-body); letter-spacing: 0.8px; text-transform: uppercase;
}
.btn-primary, button.primary {
  background: var(--accent); color: var(--bg); border: 0;
}
.btn-primary:hover, button.primary:hover { filter: brightness(1.08); }
.btn-secondary, button.secondary {
  background: transparent; color: var(--text); border: 1px solid var(--border);
}
.btn-secondary:hover, button.secondary:hover { border-color: var(--accent); color: var(--accent); }
.hero-tag {
  position: absolute; right: 24px; bottom: 18px; z-index: 1;
  display: flex; align-items: center; gap: 8px;
  font: 800 10px/1 var(--font-body); letter-spacing: 1.3px; color: var(--text-muted);
}

/* Metrics + feed */
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.vr-metric {
  border: 1px solid var(--border); border-radius: 10px; padding: 16px 16px 14px;
  background: var(--panel);
}
.metric-header { display: flex; justify-content: space-between; align-items: center; color: var(--text-muted); font: 800 10px/1 var(--font-body); letter-spacing: 1.2px; }
.vr-metric strong { display: block; margin-top: 10px; font: 800 28px/1 var(--font-display); color: var(--text); }
.vr-metric small { display: block; margin-top: 6px; color: var(--text-muted); font: 600 10px/1.3 var(--font-body); letter-spacing: 0.8px; }
.dashboard-grid { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: 16px; }
.vr-panel {
  border: 1px solid var(--border) !important; border-radius: 12px !important;
  background: var(--panel) !important; padding: 18px 18px 12px; box-shadow: var(--panel-glow);
}
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 16px; }
.section-head h2 { margin: 0; font: 800 22px/1 var(--font-display); text-transform: uppercase; letter-spacing: 0.6px; }
.section-chip, .inline-link {
  font: 800 10px/1 var(--font-body); letter-spacing: 1.1px; color: var(--text-muted);
  background: none; border: 0; cursor: pointer; text-transform: uppercase;
}
.inline-link { color: var(--accent); }
.inline-link:hover { text-decoration: underline; }
.feed { display: flex; flex-direction: column; gap: 4px; }
.feed-item {
  display: grid; grid-template-columns: 12px 1fr auto; gap: 12px; align-items: start;
  width: 100%; text-align: left; background: transparent; border: 0; border-radius: 8px;
  padding: 10px 8px; color: inherit; cursor: pointer;
}
.feed-item:hover { background: var(--raised); }
.feed-line { display: flex; justify-content: center; padding-top: 6px; }
.feed-line i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-3); }
.feed-line i.red, .feed-line i.critical { background: var(--risk); }
.feed-line i.high { background: var(--stage-peaking); }
.feed-title { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.feed-title strong { font: 700 14px/1.3 var(--font-body); color: var(--text); }
.severity { font: 800 9px/1 var(--font-body); letter-spacing: 1px; color: var(--text-muted); }
.severity.critical { color: var(--risk); }
.severity.high { color: var(--stage-peaking); }
.feed-body p { margin: 4px 0 0; color: var(--text-2); font-size: 13px; }
.feed-body small { display: inline-flex; gap: 6px; margin-top: 6px; color: var(--text-muted); font-size: 11px; }
.narrative-list { display: flex; flex-direction: column; gap: 12px; }
.narrative-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.narrative-number { font: 800 12px/1 var(--font-mono); color: var(--text-muted); }
.narrative-title { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.narrative-title strong { font-weight: 700; }
.progress { height: 6px; border-radius: 99px; background: var(--raised); margin-top: 6px; overflow: hidden; }
.progress > div { height: 100%; border-radius: inherit; }
.narrative-heat { font: 800 18px/1 var(--font-display); }
.panel-foot { display: flex; justify-content: space-between; margin-top: 16px; color: var(--text-muted); font: 700 10px/1 var(--font-body); letter-spacing: 0.8px; }
.page-desc { margin: 0 0 14px; color: var(--text-2); font: 500 14px/1.5 var(--font-body); max-width: 72ch; }
.vr-empty, .empty { color: var(--text-2); font: 500 14px/1.5 var(--font-body); padding: 18px 8px; }

/* Heat city (schematic, not a geographic map) */
.heat-layout { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: 16px; }
.heat-city {
  position: relative; min-height: 320px; border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; background: #0b0d16;
}
.heat-city-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgb(241 241 246 / 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgb(241 241 246 / 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
}
.district {
  position: absolute; border: 1px solid rgb(var(--accent-rgb) / 0.35);
  background: color-mix(in srgb, var(--district, var(--accent)) 22%, transparent);
  color: var(--text); border-radius: 10px; padding: 12px 14px; text-align: left; cursor: pointer;
  display: flex; flex-direction: column; gap: 6px;
}
.district:hover { filter: brightness(1.15); }
.district span { font: 800 10px/1 var(--font-body); letter-spacing: 1px; color: var(--text-2); }
.district strong { font: 800 28px/1 var(--font-display); }
.district-0 { left: 8%; top: 14%; width: 34%; height: 38%; }
.district-1 { left: 46%; top: 10%; width: 28%; height: 32%; }
.district-2 { left: 62%; top: 46%; width: 30%; height: 36%; }
.district-3 { left: 12%; top: 58%; width: 42%; height: 30%; }
.district-4 { left: 46%; top: 46%; width: 14%; height: 22%; }
.watermark {
  position: absolute; right: 12px; bottom: 10px; z-index: 1;
  font: 800 9px/1 var(--font-body); letter-spacing: 1.4px; color: var(--text-muted); opacity: 0.7;
}
.heat-list { display: flex; flex-direction: column; gap: 10px; }
.heat-row {
  display: grid; grid-template-columns: 8px 1fr auto; gap: 12px; align-items: center;
  border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; background: var(--panel);
}
.heat-indicator { width: 8px; height: 28px; border-radius: 99px; }
.heat-row small { display: block; color: var(--text-muted); font-size: 11px; margin-top: 2px; }
.heat-row strong { font: 800 20px/1 var(--font-display); }
.heat-row strong small { font-size: 11px; font-weight: 600; }

/* Undercover / wallets */
.wallet-list { display: flex; flex-direction: column; gap: 8px; }
.wallet-item {
  display: grid; grid-template-columns: 44px 1.2fr 1fr 1fr auto; gap: 12px; align-items: center;
  border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; background: var(--panel);
}
.wallet-glyph {
  width: 40px; height: 40px; border-radius: 9px; display: grid; place-items: center;
  border: 1px solid #68374f; color: var(--accent); background: #2e1a31;
}
.wallet-name strong { display: block; font: 600 13px/1.3 var(--font-mono); }
.wallet-name small, .wallet-stat small { color: var(--text-muted); font-size: 11px; letter-spacing: 0.6px; }
.wallet-stat strong { display: block; margin-top: 2px; }
.wallet-tag { font: 800 9px/1 var(--font-body); letter-spacing: 1px; color: #ffc4e0; }

/* ---------- Case file (existing drawer, restyled) ---------- */
body.vice .drawer {
  background: var(--panel);
  border-left: 1px solid #4f3455;
  box-shadow: -20px 0 60px rgb(0 0 0 / 0.45);
}
body.vice .drawer .d-top {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "label close" "body close";
  align-items: start;
  column-gap: 12px;
  padding-top: 20px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgb(47 25 54 / 0.55), transparent);
}
body.vice .drawer .d-top::before {
  content: "CLASSIFIED // CASE FILE";
  display: block;
  grid-area: label;
  font: 800 10px/1 var(--font-body);
  letter-spacing: 1.6px;
  color: #ffc4e0;
  margin: 0 0 8px;
}
body.vice .drawer .d-top > div { grid-area: body; min-width: 0; }
body.vice .drawer .d-top .x { grid-area: close; margin-left: 0; }
body.vice #dTitle { font-family: var(--font-display); font-weight: 800; letter-spacing: 0.4px; text-transform: uppercase; }
body.vice .drawer .nfa { color: var(--text-muted); }

/* Buttons / chips already use accent tokens after theme swap */
body.vice .btn { font-family: var(--font-body); }

/* Existing intro hidden — replaced by cinematic hero on Dispatch */
body.vice .intro { display: none; }

.scrim {
  display: none; position: fixed; inset: 0; border: 0; padding: 0;
  background: rgb(0 0 0 / 0.55); z-index: 25; cursor: pointer;
}
body.nav-open .scrim { display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid, .heat-layout { grid-template-columns: 1fr; }
  .wallet-item { grid-template-columns: 44px 1fr auto; }
  .wallet-stat { display: none; }
  .vr-hero h1 { font-size: 48px; }
}
@media (max-width: 760px) {
  .vr-sidebar {
    position: fixed; left: 0; top: 0; transform: translateX(-105%);
    transition: transform var(--dur-slow) var(--ease-out);
    box-shadow: 20px 0 60px rgb(0 0 0 / 0.4);
  }
  body.nav-open .vr-sidebar { transform: none; }
  .close-nav, .vr-menu { display: grid; }
  body.vice .topbar { padding: 0 12px; gap: 8px; }
  body.vice .topbar .brand { display: flex; }
  body.vice .topbar .brand b { font: 800 20px/1 var(--font-display); letter-spacing: 1px; }
  body.vice .topbar .brand small { display: none; }
  .breadcrumb { display: none; }
  .vr-hero { padding: 28px 18px 88px; min-height: 240px; }
  .vr-hero h1 { font-size: 40px; }
  .vr-sun { width: 110px; height: 110px; right: 4%; }
  .vr-skyline { padding-left: 8%; }
  .hero-tag { left: 18px; right: auto; }
  .data-state { max-width: 42vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body.vice .main { padding: 16px 14px 32px; }
  .top-avatar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .vr-sidebar, .rise, .scrim { transition: none; animation: none; }
}

/* Don't keep the old two-column home grid — screens are full width. */
body.vice .main.home-split {
  display: flex;
  flex-direction: column;
  max-width: 1280px;
  margin: 0 auto;
  gap: 0;
  padding: 24px 28px 40px;
}
body.vice .page-app .tk, body.vice .page-app .cs-page { padding-left: 28px; padding-right: 28px; }

@media (max-width: 760px) {
  body.vice .main.home-split { padding: 16px 14px 32px; }
  body.vice .page-app .tk, body.vice .page-app .cs-page { padding-left: 14px; padding-right: 14px; }
}


/* Keep the top-coins marquee and wide tables from stretching the flex screens. */
body.vice .screen { min-width: 0; width: 100%; max-width: 100%; }
body.vice .top-coins, body.vice .top-coins-inner, body.vice .top-coins-viewport { min-width: 0; max-width: 100%; overflow: hidden; }
body.vice .tbl, body.vice #scroll, body.vice table.grid { min-width: 0; max-width: 100%; }
body.vice .main, body.vice .app, body.vice .app-shell > .app { min-width: 0; }

@media (max-width: 760px) {
  body.vice .main.home-split { padding-bottom: 16px; }
  body.vice .vr-hero { min-height: 0; padding: 22px 16px 32px; }
  body.vice .vr-hero h1 { font-size: 36px; }
  body.vice .drawer .d-top { padding: 12px 16px 10px; }
  body.vice .drawer .d-top::before { font-size: 9px; letter-spacing: 1.2px; margin-bottom: 4px; }
  body.vice .drawer .d-top h2 { font-size: 22px; line-height: 1.15; margin-bottom: 4px; }
  body.vice .drawer .d-top .sub { margin-top: 4px; }
  body.vice .drawer .d-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
  body.vice .drawer .d-links .chart-links { display: contents; }
}


/* Compact honesty banner (single #staleBanner at the top) */
:root { --stale-banner-h: 0px; }
body.vice .app > .stale-banner {
  padding: 8px 28px;
  font: 500 13px/1.4 var(--font-body);
  z-index: 40;
}
body.vice .app > .stale-banner .banner-short { display: none; }
@media (max-width: 760px) {
  body.vice .app > .stale-banner { padding: 10px 16px; }
  body.is-stale .topbar { top: var(--stale-banner-h); }
  body.is-stale { scroll-padding-top: calc(var(--stale-banner-h) + 70px); }
  body.is-stale .grid th,
  body.is-stale .tbl-head,
  body.is-stale .news-col { top: calc(var(--stale-banner-h) + 70px); }
  body.is-stale .screen h2,
  body.is-stale .tbl-head,
  body.is-stale .label,
  body.is-stale #liveCoins,
  body.is-stale [data-tab-panel] h2 { scroll-margin-top: calc(var(--stale-banner-h) + 12px); }
  body.banner-compact .app > .stale-banner,
  body.vice .app > .stale-banner.is-compact {
    padding: 6px 12px;
    font: 600 12px/1.3 var(--font-body);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: 0 0 999px 999px;
    max-width: calc(100% - 16px);
    margin: 0 8px;
    border-width: 0 1px 1px;
    border-style: solid;
    border-color: var(--risk);
  }
  body.banner-compact .app > .stale-banner .banner-full,
  body.banner-compact .app > .stale-banner .banner-lead,
  body.vice .app > .stale-banner.is-compact .banner-full,
  body.vice .app > .stale-banner.is-compact .banner-lead { display: none; }
  body.banner-compact .app > .stale-banner .banner-short,
  body.vice .app > .stale-banner.is-compact .banner-short { display: inline; }
}

.c-dyor {
  display: block;
  margin-top: 3px;
  padding-left: 34px;
  font: 500 11px/1.3 var(--font-body);
  color: var(--text-muted);
  letter-spacing: 0.01em;
}
@media (max-width: 760px) {
  .c-dyor { padding-left: 0; }
}
.data-state.stale i { background: var(--risk); box-shadow: 0 0 8px rgb(255 77 77 / 0.45); }

/* Confidence column fallback when every value would be a dash */
#confNote { color: var(--text-muted); font-size: 12px; font-weight: 500; }

/* Compact one-line empty runners (hide the long intro) */
#runnersPanel.rn-is-empty .rn-intro { display: none; }
#runnersPanel.rn-is-empty { padding: 10px 16px; }
#runnersPanel.rn-is-empty .rn-list { margin: 0; }
#runnersPanel.rn-is-empty .rn-empty { padding: 2px 0 0; font-size: 13px; line-height: 1.4; }

/* Taller rail so stacked dots stay readable */
body.vice #rail { height: 120px; }

/* Mobile: ticker stays in document flow so it cannot cover metric sublabels */
@media (max-width: 760px) {
  body.vice .ticker {
    position: static;
    z-index: auto;
    height: auto;
    min-height: 40px;
  }
  body.vice .app,
  body.vice .main.home-split { padding-bottom: 16px; }
}
