:root {
  --bg: #E3E5E0;          /* bunker concrete */
  --surface: #F2F3EF;
  --ink: #1B2420;         /* bunker green-black */
  --muted: #56615B;
  --rule: #C3C8C0;
  --siren: #C8410B;
  --placard: #F2B705;
  --calm: #4E7A5A;
  --l0: #4E7A5A; --l1: #8A9A4B; --l2: #F2B705; --l3: #E8812A; --l4: #C8410B; --l5: #7E1A10;
  --display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121714; --surface: #1A201D; --ink: #E4E8E2; --muted: #9AA59E; --rule: #2C3530;
    --siren: #F0682A; --calm: #6FA07C; --l0: #6FA07C; --l1: #A3B262; --l5: #C23A2A;
    color-scheme: dark;
  }
}
*, *::before, *::after { box-sizing: inherit; }
[hidden] { display: none !important; }
html { scroll-padding-top: env(safe-area-inset-top, 0px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--placard); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; background: var(--placard); color: #1B2420; padding: 8px 12px; z-index: 9; }
button { font: inherit; color: inherit; cursor: pointer; }

/* header */
.top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  max-width: 1120px; margin: 0 auto; padding: 22px 20px 14px; }
.wordmark { font: 800 30px/1 var(--display); font-stretch: 125%; letter-spacing: -0.01em; text-decoration: none; }
.top nav { display: flex; gap: 20px; font-weight: 500; }
.top nav a { text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.top nav a[aria-current="page"], .top nav a:hover { border-color: var(--ink); }
.top nav .rss { color: var(--siren); }

main { max-width: 1120px; margin: 0 auto; padding: 0 20px 48px; }

/* site intro: the page's h1, kept quiet so the meter stays the loud element */
.intro { margin: 2px 0 18px; max-width: 72ch; }
.intro h1, .intro .intro-h { margin: 0 0 4px; font: 700 20px/1.3 var(--display); font-stretch: 105%; }
.intro p { margin: 0; color: var(--muted); font-size: 15px; }
.meter h2 { margin: 0; font: 700 17px/1.2 var(--display); font-stretch: 112%; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 10px; font-size: 14px; }
.d-summary { max-width: 70ch; margin: 0 0 18px; }
.d-more { margin: 18px 0 0; font-weight: 600; }
#d-related h2 { margin-top: 24px; }

/* panic meter: the one loud element */
.meter { background: var(--placard); color: #1B2420; border-radius: 4px; padding: 22px 26px 18px; margin-top: 4px;
  border: 3px solid #1B2420; }
.meter-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.meter h1 { margin: 0; font: 700 17px/1.2 var(--display); font-stretch: 112%; }
.live { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 500; }
.live .dot { width: 9px; height: 9px; border-radius: 50%; background: #1B2420; opacity: .35; }
.live.on .dot { opacity: 1; background: #1B2420; animation: pulse 2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .live.on .dot { animation: none; } }
@keyframes pulse { 50% { opacity: .3; } }
.meter-body { display: grid; grid-template-columns: auto 1fr; gap: 12px 40px; align-items: end; margin: 6px 0 16px; }
.score { display: block; font: 800 128px/0.9 var(--display); font-stretch: 125%; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.level { font: 700 26px/1.1 var(--display); font-stretch: 100%; margin-top: 8px; }
.inputs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; }
.inputs div { border-top: 2px solid #1B2420; padding-top: 8px; }
.inputs dt { font-size: 14px; font-weight: 500; }
.inputs dd { margin: 2px 0 0; font: 700 40px/1 var(--display); font-stretch: 110%; font-variant-numeric: tabular-nums; }
.scale { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3px; }
.scale span { display: block; padding: 6px 7px 5px; font-size: 12px; font-weight: 600; color: #1B2420; background: rgba(27,36,32,.12); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scale span.on { background: #1B2420; color: var(--placard); }
.meter-note { margin: 10px 0 0; font-size: 14px; }

/* section heads + segmented control */
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; margin: 40px 0 12px; }
h2 { margin: 0; font: 700 24px/1.2 var(--display); font-stretch: 110%; }
.seg { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 4px; overflow: hidden; }
.seg button { border: 0; background: transparent; padding: 6px 12px; font-size: 14px; font-weight: 500; }
.seg button + button { border-left: 1.5px solid var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.feed-tools { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.search input { font: inherit; font-size: 15px; padding: 6px 10px; width: 260px; max-width: 100%; border: 1.5px solid var(--ink); border-radius: 4px; background: var(--surface); color: var(--ink); }

/* chart */
.chart-wrap { position: relative; background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; padding: 12px 8px 4px; }
#chart { display: block; width: 100%; height: 240px; overflow: visible; }
#chart .grid { stroke: var(--rule); stroke-width: 1; }
#chart .axis { fill: var(--muted); font: 12px var(--body); }
#chart .area { fill: var(--siren); opacity: .1; }
#chart .line { fill: none; stroke: var(--siren); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
#chart .peak { fill: var(--siren); stroke: var(--surface); stroke-width: 2; }
#chart .peak-label { fill: var(--ink); font: 600 12px var(--body); }
#chart .cursor { stroke: var(--muted); stroke-dasharray: 3 3; opacity: 0; }
#chart .cursor.on { opacity: 1; }
.tip { position: absolute; pointer-events: none; width: 300px; background: var(--surface); color: var(--ink); border: 1.5px solid var(--ink);
  border-radius: 4px; padding: 10px 12px; font-size: 14px; opacity: 0; transition: opacity .1s; z-index: 2; }
.tip.on { opacity: 1; }
.tip .t-head { font-weight: 600; }
.tip .t-score { font: 700 20px/1.2 var(--display); }
.tip .t-sub { color: var(--muted); font-size: 13px; margin: 2px 0 8px; }
.tip .t-row { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; line-height: 1.45; }
.tip .t-row span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tip .t-row span:last-child { font-variant-numeric: tabular-nums; color: var(--muted); }
.day-detail { margin-top: 12px; background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; padding: 14px 16px; }
.day-detail h3 { margin: 0 0 8px; font: 600 16px var(--body); }

/* feed rows: dense, quiet */
.rows { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 4px 16px; padding: 14px 4px; border-bottom: 1px solid var(--rule); align-items: start; }
.row:hover { background: var(--surface); }
.row.fresh { animation: fresh 2.4s ease-out; }
@keyframes fresh { from { background: color-mix(in srgb, var(--placard) 45%, transparent); } }
@media (prefers-reduced-motion: reduce) { .row.fresh { animation: none; } }
.badge { font: 800 26px/1 var(--display); font-stretch: 110%; font-variant-numeric: tabular-nums; text-align: center; padding: 8px 0 7px; border-radius: 3px; color: #1B2420; }
.badge small { display: block; font: 500 11px var(--body); margin-top: 2px; }
.b5, .b4 { background: var(--siren); color: #fff; } .b3 { background: var(--l3); } .b2 { background: var(--placard); } .b1, .b0 { background: var(--rule); color: var(--ink); }
.row h3 { margin: 0; font: 600 17px/1.35 var(--body); }
.row h3 a { text-decoration: none; } .row h3 a:hover { text-decoration: underline; }
.meta { color: var(--muted); font-size: 14px; margin-top: 2px; }
.ids { font: 13px var(--mono); color: var(--muted); white-space: nowrap; }
.chips { display: flex; gap: 6px 14px; flex-wrap: wrap; margin-top: 7px; font-size: 14px; }
.chip { display: inline-flex; gap: 5px; align-items: center; white-space: nowrap; }
.chip b { font-weight: 600; font-variant-numeric: tabular-nums; }
.chip.ex { font-weight: 600; color: var(--siren); }
.chip.ex.l1 { color: var(--ink); font-weight: 500; }
.chip.ex::before { content: ""; width: 8px; height: 8px; background: currentColor; transform: rotate(45deg); }
.when { font-size: 13px; color: var(--muted); white-space: nowrap; text-align: right; }
.new-pill { display: block; margin: 0 auto 10px; border: 0; background: var(--ink); color: var(--bg); border-radius: 999px; padding: 7px 16px; font-weight: 600; }
.more { margin: 18px auto 0; display: block; background: transparent; border: 1.5px solid var(--ink); border-radius: 4px; padding: 8px 16px; font-weight: 500; }
.empty { padding: 28px 4px; color: var(--muted); }

/* detail */
.back { display: inline-block; margin: 8px 0 14px; font-weight: 500; }
.d-head { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; align-items: start; }
.d-head .badge { font-size: 40px; padding: 14px 0 10px; }
.page-h, .d-head h1 { margin: 0; font: 700 34px/1.12 var(--display); font-stretch: 100%; letter-spacing: -0.01em; }
.d-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px; margin-top: 28px; }
.panel h2 { font-size: 19px; margin-bottom: 10px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin: 0 0 24px; }
.facts div { border-top: 2px solid var(--ink); padding-top: 6px; }
.facts dt { font-size: 13px; color: var(--muted); } .facts dd { margin: 0; font-weight: 600; }
.ladder { list-style: none; padding: 0; margin: 0 0 24px; }
.ladder li { padding: 6px 0 6px 22px; position: relative; color: var(--muted); border-bottom: 1px solid var(--rule); }
.ladder li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 9px; height: 9px; border: 1.5px solid currentColor; transform: rotate(45deg); }
.ladder li.hit { color: var(--ink); font-weight: 600; } .ladder li.hit::before { background: var(--siren); border-color: var(--siren); }
.bars div { display: grid; grid-template-columns: 110px 1fr 40px; gap: 8px; align-items: center; font-size: 14px; margin: 4px 0; }
.bars .bar { height: 8px; background: var(--rule); border-radius: 2px; overflow: hidden; }
.bars .bar i { display: block; height: 100%; background: var(--ink); }
.bars span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.evidence { list-style: none; padding: 0; margin: 0; }
.evidence li { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.evidence .src { font-size: 13px; color: var(--muted); }
.evidence .claim { font-size: 12px; font-weight: 600; color: var(--siren); margin-left: 6px; }
.evidence .claim.neg { color: var(--calm); }
.kind-h { margin: 18px 0 2px; font: 600 14px var(--body); color: var(--muted); }
.checks li { font-size: 14px; }

/* sources */
.lede { font-size: 18px; max-width: 70ch; color: var(--muted); }
.src-summary { display: flex; gap: 24px; flex-wrap: wrap; margin: 18px 0; font-size: 15px; }
.table-wrap { overflow-x: auto; }
table.src { width: 100%; border-collapse: collapse; font-size: 14px; }
.src th { text-align: left; font-weight: 600; border-bottom: 2px solid var(--ink); padding: 6px 8px; white-space: nowrap; }
.src td { border-bottom: 1px solid var(--rule); padding: 7px 8px; vertical-align: top; }
.health { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.health::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--rule); }
.health.ok::before { background: var(--calm); } .health.degraded::before { background: var(--placard); }
.health.failing::before, .health.quarantined::before { background: var(--siren); }

.prose { max-width: 72ch; } .prose h2 { margin: 32px 0 6px; font-size: 21px; }
.prose pre { background: var(--surface); border: 1px solid var(--rule); padding: 12px 14px; border-radius: 4px; overflow-x: auto; }
code { font: 0.92em var(--mono); }
.feeds li { margin: 6px 0; }
.foot { max-width: 1120px; margin: 0 auto; padding: 18px 20px 40px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--rule); }

@media (max-width: 760px) {
  .meter { padding: 18px 16px 14px; }
  .meter-body { grid-template-columns: 1fr; }
  .score { font-size: 96px; }
  .inputs dd { font-size: 30px; }
  .inputs dt { font-size: 12px; }
  .scale { grid-template-columns: repeat(6, 1fr); }
  .scale span { font-size: 0; padding: 5px 0; }
  .row { grid-template-columns: 52px minmax(0,1fr); }
  .when { grid-column: 2; text-align: left; }
  .badge { font-size: 21px; }
  .d-grid { grid-template-columns: 1fr; }
  .d-head { grid-template-columns: 70px minmax(0,1fr); }
  .d-head .badge { font-size: 28px; }
  .page-h, .d-head h1 { font-size: 26px; }
  .search, .search input { width: 100%; }
  .feed-tools { width: 100%; }
  #views { max-width: 100%; overflow-x: auto; }
  #views button { white-space: nowrap; }
  .tip { width: min(300px, calc(100vw - 48px)); }
}

/* ---------------------------------------------------------------- outbreak map (fixed dark "situation room" in both themes) */
.om-panel { --om-bg: #111613; --om-land: #27302B; --om-edge: #111613; --om-text: #E4E8E2; --om-muted: #95A199;
  background: var(--om-bg); color: var(--om-text); border-radius: 4px; border: 3px solid #1B2420; padding: 16px 18px 12px; }
.om-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.om-select select { width: 100%; font: inherit; font-size: 15px; padding: 7px 10px; background: #1B2420; color: var(--om-text);
  border: 1.5px solid #3A453F; border-radius: 4px; }
.om-stats { display: grid; grid-template-columns: repeat(3, auto) minmax(0, 1fr); gap: 10px 28px; margin: 0; }
.om-stats dt { font-size: 13px; color: var(--om-muted); }
.om-stats dd { margin: 0; font: 700 30px/1.1 var(--display); font-stretch: 110%; font-variant-numeric: tabular-nums; }
.om-stats .om-zero dd { font: 600 16px/1.35 var(--body); padding-top: 6px; }
.om-muted { color: var(--muted); }
.om-panel .om-muted { color: var(--om-muted); }
.om-stage-wrap { position: relative; margin-top: 10px; }
.om-stage svg { display: block; width: 100%; height: auto; }
.om-empty { color: var(--om-muted); padding: 60px 0; text-align: center; }
.om-c { fill: var(--om-land); stroke: var(--om-edge); stroke-width: 0.5; cursor: pointer; transition: fill .35s; }
.om-c:hover { stroke: #E4E8E2; stroke-width: 1; }
.om-c.gap { fill: url(#om-gap); }
.om-gap-line { stroke: #3A453F; stroke-width: 1.4; }
.om-c.h1 { fill: #7A3416; } .om-c.h2 { fill: #A9420F; } .om-c.h3 { fill: #D9530F; } .om-c.h4 { fill: #FF7A2F; }
.om-c.sel { stroke: #F2B705; stroke-width: 1.6; }
.om-ring { pointer-events: none; }
.om-dot { fill: #F2B705; stroke: #111613; stroke-width: 1.2; }
.om-pulse { fill: none; stroke: #F2B705; stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: om-pulse 2.4s ease-out infinite; }
@keyframes om-pulse { from { transform: scale(.6); opacity: .9; } to { transform: scale(2.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .om-pulse { animation: none; opacity: .6; } .om-c { transition: none; } }
.om-tip { position: absolute; pointer-events: none; width: 260px; background: #1B2420; color: var(--om-text); border: 1.5px solid #F2B705;
  border-radius: 4px; padding: 10px 12px; font-size: 13px; line-height: 1.45; opacity: 0; transition: opacity .1s; z-index: 3; }
.om-tip.on { opacity: 1; }
.om-tip-h { font: 700 16px var(--display); font-stretch: 105%; margin-bottom: 4px; }
.om-tip .om-warn { color: #F2B705; }
.om-tip ul { margin: 6px 0 0; padding-left: 16px; color: var(--om-muted); }
.om-replay { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; margin-top: 10px; }
.om-replay button { background: #F2B705; color: #1B2420; border: 0; border-radius: 4px; padding: 7px 14px; font-weight: 700; }
.om-replay input { width: 100%; accent-color: #F2B705; }
.om-replay output { font-variant-numeric: tabular-nums; font-size: 14px; min-width: 9em; text-align: right; color: var(--om-muted); }
.om-legend { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 10px; font-size: 12px; color: var(--om-muted); }
.om-legend span { display: inline-flex; align-items: center; gap: 4px; }
.om-legend .sw { display: inline-block; width: 14px; height: 10px; }
.om-legend .sw.h1 { background: #7A3416; } .om-legend .sw.h2 { background: #A9420F; } .om-legend .sw.h3 { background: #D9530F; } .om-legend .sw.h4 { background: #FF7A2F; }
.om-legend .sw.gap { background: repeating-linear-gradient(45deg, #27302B 0 2px, #3A453F 2px 4px); }
.om-legend .ring { width: 10px; height: 10px; border-radius: 50%; background: #F2B705; box-shadow: 0 0 0 2px #111613, 0 0 0 3.5px #F2B705; margin-right: 4px; }
.om-filter-note { margin: 12px 0 0; font-size: 14px; }
.om-filter-note button { background: none; border: 0; padding: 0; text-decoration: underline; font-weight: 600; }
.om-ticker { list-style: none; margin: 10px 0 0; padding: 0; }
.om-ticker li { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 0 12px; padding: 7px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.om-ticker li .om-muted { grid-column: 2; font-size: 13px; }
/* ticker markers match the map legend: orange square = national news, yellow dot = CERT/agency warning */
.om-where::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; vertical-align: 0;
  background: #D9530F; border-radius: 2px; }
.om-ticker li.cert .om-where::before { background: #F2B705; border-radius: 50%; box-shadow: 0 0 0 1.5px #1B2420; }
.om-where { font-weight: 600; grid-row: span 2; }
.om-ticker a { text-decoration: none; } .om-ticker a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- admin */
.a-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.a-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; max-width: 900px; }
.a-form label { display: grid; gap: 4px; font-size: 14px; font-weight: 500; }
.a-form label:first-child { grid-column: 1 / -1; }
.a-form .a-row, .a-form .a-msg { grid-column: 1 / -1; }
#view-admin input, #view-admin select { font: inherit; font-size: 15px; padding: 6px 9px; border: 1.5px solid var(--ink); border-radius: 4px; background: var(--surface); color: var(--ink); max-width: 100%; }
#view-admin button { background: transparent; border: 1.5px solid var(--ink); border-radius: 4px; padding: 6px 12px; font-weight: 500; }
#view-admin button[type="submit"], #a-login-form button { background: var(--ink); color: var(--bg); }
#view-admin h2 { margin: 34px 0 12px; }
.a-msg { min-height: 1.4em; margin: 6px 0; font-size: 14px; } .a-msg.bad, .bad { color: var(--siren); } .a-ok { color: var(--calm); font-weight: 600; }
.a-test-out { max-width: 900px; } .a-sample { font-size: 14px; padding-left: 18px; } .a-sample .dim { color: var(--muted); }
.a-gaps details { margin: 8px 0; } .a-gaps summary { cursor: pointer; font-weight: 600; }
.a-gap-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
#view-admin .a-gap { padding: 3px 9px; font-size: 13px; border-width: 1px; }
.a-filters { margin-bottom: 8px; }
.a-table td { font-size: 13px; } .a-table tr.off { opacity: .55; }
.a-url { font-size: 12px; color: var(--muted); max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-reason { font-size: 12px; color: var(--muted); max-width: 220px; }
.a-actions { white-space: nowrap; } #view-admin .a-actions button { padding: 3px 8px; font-size: 12px; margin: 2px 0; }
.a-edit { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }

@media (max-width: 760px) {
  .om-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .om-stats .om-zero { grid-column: 1 / -1; }
  .om-stats dd { font-size: 24px; }
  .om-replay output { min-width: 0; font-size: 12px; }
  .om-ticker li { grid-template-columns: 1fr; } .om-where { grid-row: auto; } .om-ticker li .om-muted { grid-column: 1; }
  .a-form { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- trending now (a ranking, so ranks are shown) */
.tr-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.tr-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) 132px; gap: 4px 16px; padding: 14px 4px; border-bottom: 1px solid var(--rule); align-items: start; }
.tr-rank { font: 800 28px/1 var(--display); font-stretch: 110%; font-variant-numeric: tabular-nums; color: var(--siren); padding-top: 2px; }
.tr-title { font: 600 17px/1.35 var(--body); text-decoration: none; } .tr-title:hover { text-decoration: underline; }
.tr-latest { font-size: 13px; margin-top: 6px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-latest a { color: var(--ink); }
.tr-side { display: grid; justify-items: end; gap: 6px; }
.tr-spark { width: 120px; height: 28px; overflow: visible; }
.tr-spark polyline { fill: none; stroke: var(--siren); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.tr-change { font: 700 15px var(--display); font-variant-numeric: tabular-nums; }
.tr-up { color: var(--siren); } .tr-down { color: var(--calm); } .tr-flat { color: var(--muted); }
.tr-new { background: var(--placard); color: #1B2420; padding: 1px 7px; border-radius: 3px; font-size: 13px; }
@media (max-width: 760px) {
  .tr-row { grid-template-columns: 30px minmax(0, 1fr); }
  .tr-side { grid-column: 2; justify-items: start; grid-auto-flow: column; align-items: center; }
  .tr-rank { font-size: 22px; }
}
