:root {
  --bg: #0a0a0c;
  --panel: #0f1014;
  --panel-2: #14151a;
  --panel-3: #1a1c22;
  --border: #1f2128;
  --border-strong: #2a2d35;
  --border-soft: #16181d;
  --text: #ece9e0;
  --text-dim: #b8b4a8;
  --muted: #807c72;
  --muted-2: #4f4d47;
  --accent: #ffffff;
  --accent-dim: #cccccc;
  --up: #6eff95;
  --down: #ff7b7b;
  --warn: #ffd166;
  --c-model: #ffd166;
  --c-money: #6eff95;
  --c-infra: #7eb8ff;
  --c-regulatory: #ff7b7b;
  --c-oss: #ffd166;
  --c-other: #a3a3a3;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: var(--mono); font-size: 11px; line-height: 1.5; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dim); text-decoration: underline; }
button, input, select { font-family: inherit; font-size: inherit; }

/* Layout grid */
.app {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  min-height: 100vh;
  width: 100%;
  margin: 0;
  padding: 0;
}
.topbar {
  border-bottom: 1px solid var(--border-strong);
  background: var(--panel);
  padding: 0;
  display: flex;
  align-items: stretch;
  gap: 0;
  justify-content: space-between;
  height: 40px;
}
.topbar-left { display: flex; align-items: stretch; }
.icon-zone {
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--border-strong);
}
.brand {
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.02em;
  padding: 0 16px;
}
.icon-zone .icon { width: 20px; height: 20px; display: block; }
.brand .name { font-weight: 600; color: var(--text); font-size: 13px; }
.brand .ver { color: var(--muted); font-size: 11px; }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  padding: 0 16px;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--up); display: inline-block; }

/* Ticker */
.ticker {
  border-bottom: 1px solid var(--border-strong);
  background: var(--panel-2);
  overflow: hidden;
  padding: 10px 0;
  position: relative;
}
.ticker-track {
  display: inline-flex;
  gap: 32px;
  white-space: nowrap;
  animation: scroll-ticker 180s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: inline-flex; gap: 10px; align-items: center; color: var(--text-dim); font-size: 11px; }
.ticker-item .tick-date { color: var(--muted); }
.ticker-item .tick-cat { font-size: 11px; padding: 1px 5px; border: 1px solid currentColor; border-radius: 2px; }
.ticker-item a { color: var(--text-dim); }
.ticker-item a:hover { color: var(--text); }
@keyframes scroll-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Price ticker (slower) */
.ticker-slow .ticker-track { animation-duration: 200s; }

/* Three-column body */
.body {
  display: grid;
  grid-template-columns: 240px 1fr 280px;
  gap: 12px;
  padding: 12px;
}
@media (max-width: 1100px) {
  .body { grid-template-columns: 1fr; }
}

/* Panel */
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 14px;
}
.panel + .panel { margin-top: 12px; }
.panel-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 500;
}
.panel-title .right { color: var(--muted-2); font-size: 11px; text-transform: none; letter-spacing: 0; }

/* Stats */
.stats { display: grid; gap: 4px; }
.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px dashed var(--border-soft);
}
.stat-row:last-child { border-bottom: none; }
.stat-row .lbl { color: var(--text-dim); font-size: 11px; }
.stat-row .num { color: var(--accent); font-size: 11px; font-weight: 600; }


/* Calculator */
.field { margin-bottom: 10px; }
.field label { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.field select, .field input {
  width: 100%;
  padding: 7px 9px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 0;
  font-family: var(--mono);
  font-size: 11px;
}
.field select:focus, .field input:focus { outline: 1px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn {
  width: 100%;
  padding: 8px 12px;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 0;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}
.btn:hover { background: var(--accent-dim); }
.btn:disabled { background: var(--border-strong); color: var(--muted); cursor: not-allowed; }

#calc-result { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border-soft); display: none; }
#calc-result.show { display: block; }
#calc-result.error { color: var(--down); }
.total-line { font-size: 11px; color: var(--accent); margin: 4px 0 8px; letter-spacing: 0.02em; }
.calc-breakdown { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; font-size: 11px; color: var(--text-dim); }
.calc-breakdown .v { color: var(--text); }
.calc-up-block { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border-soft); font-size: 11px; color: var(--text-dim); }
.calc-up-block .pct { color: var(--warn); font-weight: 600; }
.try-json { margin-top: 10px; padding: 6px 8px; background: var(--bg); border: 1px solid var(--border); font-size: 11px; color: var(--muted); word-break: break-all; }
.try-json a { color: var(--text-dim); }
.calc-cta { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border-soft); }
.calc-cta .cta-link { display: inline-block; padding: 8px 12px; background: var(--bg); color: var(--text); border: 1px solid var(--border-strong); text-decoration: none; font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; font-weight: 600; }
.calc-cta .cta-link:hover { border-color: var(--accent); color: var(--accent); }

/* Events feed in right column */
.col-right { display: block; align-self: start; }
.col-right .panel { display: flex; flex-direction: column; }
.col-right .panel > .events-feed { flex: 1; min-height: 320px; }
.events-feed { display: grid; gap: 8px; align-content: start; max-height: none; overflow-y: auto; padding-right: 4px; }
.events-feed::-webkit-scrollbar { width: 6px; }
.events-feed::-webkit-scrollbar-track { background: var(--bg); }
.events-feed::-webkit-scrollbar-thumb { background: var(--border-strong); }
.ev-item { padding: 8px; border: 1px solid var(--border); background: var(--panel-2); cursor: pointer; }
.ev-item:hover { border-color: var(--accent-dim); }
.ev-item .ev-date { color: var(--muted); font-size: 11px; margin-bottom: 4px; }
.ev-item .ev-headline { color: var(--text); font-size: 11px; line-height: 1.4; }

/* Chart */
.chart-panel { padding: 0; overflow: hidden; }
.chart-header { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px; border-bottom: 1px solid var(--border); }
.chart-header .chart-title { font-size: 11px; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; flex: 0 0 auto; }
.chart-header .chart-controls { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 auto; align-items: center; }
.chart-header select, .chart-header input { padding: 6px 8px; background: var(--bg); color: var(--text); border: 1px solid var(--border-strong); border-radius: 0; font-family: var(--mono); font-size: 11px; }
.chip-group { display: inline-flex; gap: 0; border: 1px solid var(--border-strong); }
.chip { padding: 5px 9px; background: var(--bg); color: var(--muted); border: none; border-right: 1px solid var(--border-strong); font-family: var(--mono); font-size: 11px; cursor: pointer; text-transform: uppercase; letter-spacing: 0.05em; }
.chip:last-child { border-right: none; }
.chip.active { background: var(--accent); color: #000; font-weight: 600; }
.chip:hover:not(.active) { color: var(--text); background: var(--panel-2); }

.chart-svg .grid-line { stroke: var(--border-strong); stroke-width: 0.5; }

.chart-canvas-wrap { position: relative; padding: 16px; min-height: 420px; }
.chart-svg { width: 100%; height: 420px; display: block; }
.chart-empty { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 11px; text-align: center; padding: 60px 20px; }
.chart-empty .loader { display: inline-block; margin-right: 8px; }

.chart-legend { display: flex; flex-wrap: wrap; gap: 16px; padding: 10px 14px; border-top: 1px solid var(--border); color: var(--muted); font-size: 11px; }
.chart-legend .swatch { width: 10px; height: 10px; display: inline-block; margin-right: 6px; vertical-align: middle; }
.chart-legend .swatch.line { height: 2px; vertical-align: middle; }

/* Event swimlane */
.swimlane-panel { padding: 0; overflow: visible; }
.swimlane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 8px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 6px;
}
.swimlane-title { font-size: 11px; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.swimlane-cat-legend { display: flex; flex-wrap: wrap; gap: 10px; }
.swimlane-cat-legend .sl-cat { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 11px; cursor: pointer; user-select: none; }
.swimlane-cat-legend .sl-cat .swatch { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.swimlane-cat-legend .sl-cat.dimmed { opacity: 0.3; }
.swimlane-canvas-wrap { position: relative; padding: 0 16px 6px; }
.swimlane-svg { width: 100%; display: block; overflow: visible; }
.swimlane-svg .sl-label { fill: var(--muted); font-family: var(--mono); font-size: 10px; }
.swimlane-svg .sl-grid { stroke: var(--border-soft); stroke-width: 0.5; }
.swimlane-svg .sl-event { cursor: pointer; transition: r 0.1s; }
.swimlane-svg .sl-event:hover { stroke: var(--accent) !important; stroke-width: 2 !important; }
.swimlane-svg .sl-event.dimmed { opacity: 0.1; }
.chart-svg .chart-crosshair { stroke: var(--accent); stroke-width: 1; stroke-dasharray: 4,3; opacity: 0.45; pointer-events: none; }
.swimlane-svg .sl-crosshair { stroke: var(--accent); stroke-width: 1; stroke-dasharray: 4,3; opacity: 0.45; pointer-events: none; }

/* Privacy Premium panel */
.pp-subtitle { color: var(--muted); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; margin: -6px 0 10px; }
#privacy-pairs { display: grid; gap: 0; }
.pp-row { display: grid; grid-template-columns: 20px 1fr auto auto; gap: 5px; align-items: center; padding: 6px 0; border-bottom: 1px dashed var(--border-soft); font-size: 11px; }
.pp-row:last-child { border-bottom: none; }
.pp-prov-dash { display: inline-block; width: 16px; height: 2px; border-radius: 1px; vertical-align: middle; }
.pp-model { color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pp-pct { color: var(--accent); font-weight: 600; white-space: nowrap; }
.pp-run { color: var(--muted); font-size: 11px; text-decoration: none; padding-left: 4px; }
.pp-run:hover { color: var(--accent); }
.pp-na .pp-pct { color: var(--muted-2); }
.pp-cta { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--border-soft); }
.pp-cta-link { display: block; text-align: center; padding: 7px 10px; background: var(--bg); color: var(--text-dim); border: 1px solid var(--border-strong); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; font-weight: 600; text-decoration: none; }
.pp-cta-link:hover { border-color: var(--accent); color: var(--accent); }


/* Severity (status colors — reserved semantics, match up/down/warn) */
.sev-breaking { color: var(--down) !important; }
.sev-action { color: var(--warn) !important; }
.sev-chip { font-size: 10px; padding: 1px 5px; border: 1px solid currentColor; border-radius: 2px; text-transform: uppercase; letter-spacing: 0.04em; }
.sev-chip.breaking { color: var(--down); }
.sev-chip.action_required { color: var(--warn); }
.sev-chip.informational { color: var(--muted); }

/* Sunset board (full-width strip above the grid) */
.sunset-section { padding: 12px 12px 0; }
.sunset-panel { padding: 0; overflow: hidden; }
.sunset-header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.sunset-title { font-size: 11px; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.sunset-sub { color: var(--muted-2); font-size: 11px; }
.sunset-board { display: grid; }
.sun-row {
  display: grid;
  grid-template-columns: 74px 92px 88px minmax(0, 1fr) minmax(0, 200px);
  gap: 10px;
  align-items: center;
  padding: 8px 14px;
  border-bottom: 1px dashed var(--border-soft);
  cursor: pointer;
}
.sun-row:last-child { border-bottom: none; }
.sun-row:hover { background: var(--panel-2); }
.sun-days { font-weight: 600; font-size: 12px; white-space: nowrap; }
.sun-days.past { color: var(--muted-2); font-weight: 400; }
.sun-date { color: var(--muted); white-space: nowrap; }
.sun-prov { color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sun-what { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sun-what .models { color: var(--text-dim); }
.sun-target { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; }
.sun-target .arrow { color: var(--muted-2); margin-right: 4px; }
.sun-more { padding: 8px 14px; color: var(--muted); font-size: 11px; cursor: pointer; user-select: none; }
.sun-more:hover { color: var(--text); background: var(--panel-2); }
@media (max-width: 720px) {
  .sun-row { grid-template-columns: 64px 1fr; }
  .sun-date, .sun-target { display: none; }
}

/* Notice-given panel */
#notice-rows { display: grid; }
.notice-row { display: grid; grid-template-columns: 20px 1fr auto auto; gap: 6px; align-items: baseline; padding: 6px 0; border-bottom: 1px dashed var(--border-soft); font-size: 11px; }
.notice-row:last-child { border-bottom: none; }
.notice-prov { color: var(--text-dim); }
.notice-med { color: var(--accent); font-weight: 600; white-space: nowrap; }
.notice-n { color: var(--muted-2); white-space: nowrap; }
.notice-note { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--border-soft); color: var(--muted); font-size: 10px; line-height: 1.5; }

/* Feed severity filter */
.feed-sev-chips { margin-bottom: 10px; }

/* Check your stack */
#check-result { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border-soft); display: none; }
#check-result.show { display: grid; gap: 6px; }
.chk-row { display: grid; gap: 2px; padding: 6px 8px; border: 1px solid var(--border); background: var(--panel-2); font-size: 11px; cursor: pointer; }
.chk-row:hover { border-color: var(--accent-dim); }
.chk-id { color: var(--text); font-weight: 600; }
.chk-verdict { color: var(--text-dim); line-height: 1.4; }
.chk-note { color: var(--muted); font-size: 10px; margin-top: 4px; }
.chk-note a { color: var(--text-dim); }

/* Tooltip (shared) */
.tooltip {
  position: absolute;
  pointer-events: none;
  background: var(--panel-3);
  border: 1px solid var(--border-strong);
  padding: 10px 12px;
  max-width: 340px;
  font-size: 11px;
  line-height: 1.4;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.08s;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.tooltip.show { opacity: 1; }
.tooltip .tdate { color: var(--muted); font-size: 11px; margin-bottom: 4px; }
.tooltip .thead { color: var(--text); font-weight: 600; margin-bottom: 6px; font-size: 11px; }
.tooltip .tbody { color: var(--text-dim); font-size: 11px; }
.tooltip .tfoot { margin-top: 8px; padding-top: 6px; border-top: 1px dashed var(--border-soft); color: var(--muted); font-size: 11px; display: flex; justify-content: space-between; gap: 12px; }

/* Footer */
.footer-bar {
  border-top: 1px solid var(--border-strong);
  background: var(--panel);
  padding: 10px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.footer-bar a { color: var(--text-dim); }
.footer-bar a:hover { color: var(--accent); }
.footer-bar .sep { color: var(--muted-2); }

/* Current-price table (full width, below the body grid) */
.table-section { padding: 0 12px 12px; }
.table-panel { padding: 0; }
.table-header { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px; border-bottom: 1px solid var(--border); }
.table-title { font-size: 11px; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; flex: 0 0 auto; }
.table-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-left: auto; }
#table-search { padding: 6px 8px; background: var(--bg); color: var(--text); border: 1px solid var(--border-strong); border-radius: 0; font-family: var(--mono); font-size: 11px; width: 160px; }
#table-search::placeholder { color: var(--muted-2); }
.table-count { color: var(--muted); font-size: 11px; white-space: nowrap; }
.table-wrap { max-height: 640px; overflow: auto; }

.price-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.price-table thead th {
  position: sticky; top: 0; z-index: 1;
  background: var(--panel-2); color: var(--muted);
  text-align: left; text-transform: uppercase; letter-spacing: 0.05em;
  font-weight: 600; padding: 8px 12px; border-bottom: 1px solid var(--border-strong);
  white-space: nowrap;
}
.price-table th.th-num { text-align: right; }
.price-table th.th-sort { cursor: pointer; user-select: none; }
.price-table th.th-sort:hover { color: var(--text); }
.price-table th.sorted { color: var(--accent); }
.price-table th.sorted[data-dir="asc"]::after { content: " ▲"; font-size: 8px; }
.price-table th.sorted[data-dir="desc"]::after { content: " ▼"; font-size: 8px; }

.price-table tbody td { padding: 7px 12px; border-bottom: 1px solid var(--border-soft); vertical-align: baseline; }
.price-table tbody tr:hover { background: var(--panel-2); }
.price-table tbody tr.row-deprecated { opacity: 0.45; }
.price-table .c-num { text-align: right; font-variant-numeric: tabular-nums; color: var(--text-dim); white-space: nowrap; }
.price-table .c-prov { color: var(--text-dim); white-space: nowrap; }
.price-table .prov-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.price-table .c-model a { color: var(--text); }
.price-table .c-model a:hover { color: var(--accent); }
.price-table .ptags { display: inline-flex; gap: 4px; margin-left: 6px; vertical-align: middle; }
.price-table .ptag { color: var(--muted); background: var(--panel-3); padding: 1px 5px; font-size: 9px; text-transform: uppercase; letter-spacing: 0.04em; }
.table-foot { padding: 8px 14px; border-top: 1px solid var(--border); color: var(--muted); font-size: 10px; }
.table-foot code { color: var(--text-dim); }

@media (max-width: 720px) {
  .price-table .c-model a { word-break: break-word; }
  #table-search { width: 110px; }
}

/* ============ site rework: hero / tabs / feed grid / mobile ============ */

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border-strong);
  background: var(--panel);
}
.hero-copy h1 { margin: 0 0 10px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #ffffff; line-height: 1.3; }
.hero-copy p { margin: 0 0 10px; color: var(--text-dim); font-size: 12px; line-height: 1.6; max-width: 56ch; }
.hero-links { display: flex; gap: 16px; }
.hero-links a { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }
.hero-links a:hover { color: var(--accent); }

/* Main tabs */
.main-tabs { margin-bottom: 12px; }
.main-tabs .chip { padding: 7px 14px; font-size: 11px; }


/* Left rail slimmer */
.body { grid-template-columns: 315px 1fr; }
.col-left { min-width: 0; }
.col-center { min-width: 0; }

/* Lifecycles chart: keep legible on narrow screens via horizontal scroll */
.svg-scroll { overflow-x: auto; }
.chart-svg { min-width: 760px; }
.swimlane-svg { min-width: 760px; }

/* ============ mobile ============ */
@media (max-width: 1100px) {
  .body { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 720px) {
  html, body { font-size: 12px; }
  .hero { padding: 20px 12px 16px; }
  .ticker { display: none; }
  .sunset-section, .feed-section { padding-left: 8px; padding-right: 8px; }
  .body { padding: 8px; gap: 8px; }
  .panel { padding: 12px; }
  .chart-header { padding: 10px 12px; }
  .footer-bar { padding: 10px 12px; gap: 6px 12px; }
  .hero-check-row { flex-direction: column; }
  .hero-check-row .btn { width: 100%; }
}

/* ============ rework round 2 ============ */

/* topbar info button */
.info-zone {
  width: 40px; align-self: stretch;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none;
  border-left: 1px solid var(--border-strong); border-right: 1px solid var(--border-strong);
  color: var(--muted); font-family: var(--mono); font-size: 12px; cursor: pointer;
}
.info-zone:hover { color: var(--accent); background: var(--panel-2); }

/* hero split: info | divider | sunsets */
.hero { grid-template-columns: 1fr 1.15fr; gap: 0; }
.hero-copy { padding: 24px 24px 20px 0; }
.hero-sunsets { border-left: 1px solid var(--border-strong); padding: 20px 0 16px 24px; min-width: 0; position: relative; }
.hero-sunsets .sunset-header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.hero-sunsets .sunset-board { display: grid; align-content: start; position: absolute; top: 60px; bottom: 14px; left: 24px; right: 0; overflow-y: auto; padding-right: 4px; }
.hero-sunsets .sunset-board::-webkit-scrollbar { width: 6px; }
.hero-sunsets .sunset-board::-webkit-scrollbar-track { background: var(--bg); }
.hero-sunsets .sunset-board::-webkit-scrollbar-thumb { background: var(--border-strong); }
.hero-stats { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border-strong); }
.hero-stats-title { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; display: flex; justify-content: space-between; }
.hero-stats-title span { color: var(--muted-2); text-transform: none; letter-spacing: 0; }
.hero-stats-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; gap: 0 24px; }

/* compact sunset rows (hero + mobile safe) */
.sun-row {
  display: grid;
  grid-template-columns: 36px 14px minmax(0, 1fr);
  gap: 8px; align-items: center;
  padding: 6px 0; border-bottom: 1px dashed var(--border-soft); cursor: pointer;
}
.sun-row:hover { background: var(--panel-2); }
.sun-row .pp-prov-dash { margin: 0; }
.sun-what { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; font-size: 11px; }
.sun-prov-inline { color: var(--muted); }
.sun-target-inline { color: var(--muted); }
.sun-more { padding: 8px 0 2px; }

/* check bar: thin full-width strip above the chart */
.check-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-strong);
  background: var(--panel-2);
}
.check-bar label { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; }
.check-bar input {
  flex: 1; padding: 7px 10px; background: var(--bg); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: 0; font-family: var(--mono); font-size: 11px; min-width: 0;
}
.check-bar input:focus { outline: 1px solid var(--accent); outline-offset: -1px; }
.check-bar .btn { width: auto; padding: 8px 18px; }
.check-results-wrap { padding: 0 16px; background: var(--panel-2); }
.check-results-wrap #check-result { margin: 0; border-top: none; padding: 0; }
.check-results-wrap #check-result.show { padding: 10px 0 12px; border-bottom: 1px solid var(--border-strong); }

/* rail feed */
.feed-rail-panel { display: flex; flex-direction: column; min-height: 320px; }
.feed-rail-panel .events-feed { flex: 1; overflow-y: auto; align-content: start; }

/* about modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(4, 4, 6, 0.72);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal {
  background: var(--panel); border: 1px solid var(--border-strong);
  max-width: 460px; width: 100%; padding: 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
}
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.modal-close { background: none; border: none; color: var(--muted); font-family: var(--mono); font-size: 12px; cursor: pointer; padding: 4px 6px; }
.modal-close:hover { color: var(--accent); }

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 20px 0 16px; }
  .hero-sunsets { border-left: none; border-top: 1px solid var(--border-strong); padding: 16px 0 12px; }
  .hero-sunsets .sunset-board { position: static; max-height: 220px; }
  .feed-rail-panel { max-height: 480px; }
}
@media (max-width: 720px) {
  .check-bar { flex-wrap: wrap; }
  .check-bar label { width: 100%; }
  .sun-target-inline { display: none; }
}

/* trust presentation round */
.feed-mode-chips { margin-bottom: 10px; align-self: flex-start; }
.price-table .c-verified a { color: var(--muted); font-size: 10px; }
.price-table .c-verified a:hover { color: var(--accent); }
