:root {
  --bg: #05080e;
  --panel: #0b1119;
  --panel-2: #0e1621;
  --line: #1c2836;
  --line-soft: #16212e;
  --text: #e6edf5;
  --text-dim: #8fa3b8;
  --text-faint: #63768a;
  --accent: #ff6b2c;
  --i5: #ff3b30; --i4: #ff6b2c; --i3: #ff9f0a; --i2: #ffd426; --i1: #5ac8fa;
  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;
  --radius: 10px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; height: 100%;
  background: var(--bg); color: var(--text);
  font: 14px/1.5 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body { display: flex; flex-direction: column; overflow: hidden; }

h1, h2, h3 { margin: 0; font-weight: 620; letter-spacing: -0.01em; }

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #223042; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #2e4058; }

/* ------------------------------------------------------------------ topbar */

.topbar {
  display: flex; align-items: center; gap: 24px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #0c141e, #080d15);
  flex: 0 0 auto;
}

/* The tab bar is the elastic element, not the brand: ten tabs used to squeeze
   the wordmark until the subtitle wrapped to four lines and the header grew to
   131px, which moved every view below it. */
/* Fixed width, not max-width. Sizing to content meant a short subtitle ("Tracking
   the end. Calmly.") made the brand narrow and a long one ("Structural indicators
   of civil-conflict risk…") made it wide — so the tab bar slid sideways every
   time you changed tab. */
.brand { display: flex; align-items: center; gap: 11px; flex: 0 0 268px; width: 268px; min-width: 0; }
.brand > div { min-width: 0; }
.brand h1 { font-size: 15.5px; white-space: nowrap; }
/* Two lines of room, always. Ellipsis kept the header from shifting but cut the
   subtitle mid-sentence; a fixed two-line box does both — the text wraps and
   reads, and the block is the same height whichever tab set it. */
.brand-sub {
  margin: 1px 0 0; font-size: 11.5px; line-height: 1.35; color: var(--text-faint);
  height: 31px; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.brand-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); flex: 0 0 auto;
  box-shadow: 0 0 0 4px rgba(255,107,44,0.15), 0 0 14px rgba(255,107,44,0.6);
  animation: breathe 2.6s ease-in-out infinite;
}
@keyframes breathe { 0%,100% { opacity: 1; } 50% { opacity: 0.45; } }

/* theater switcher */

.theater-tabs {
  display: flex; gap: 3px; padding: 3px;
  background: #0a1017; border: 1px solid var(--line-soft); border-radius: 9px;
  flex: 0 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none;
}
.theater-tabs::-webkit-scrollbar { height: 0; }
.theater-tab {
  padding: 6px 11px; border-radius: 7px; font-size: 12.5px; font-weight: 520;
  color: var(--text-dim); white-space: nowrap; transition: background .15s, color .15s;
}
.theater-tab:hover { color: var(--text); }
.theater-tab.active { background: #1d2c3d; color: var(--text); box-shadow: inset 0 0 0 1px #2c4159; }

/* gauge */

.gauge {
  margin-left: auto;
  display: flex; align-items: center; gap: 13px;
  padding: 5px 14px 5px 10px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel-2);
  transition: border-color .15s, background .15s;
}
.gauge:hover { border-color: #2a3a4e; background: #111b27; }
.gauge:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.gauge-meter { position: relative; width: 92px; height: 52px; }
.gauge-meter svg { width: 92px; height: 52px; overflow: visible; }
.gauge-track { fill: none; stroke: #1e2b3a; stroke-width: 9; stroke-linecap: round; }
.gauge-fill {
  fill: none; stroke: var(--warn); stroke-width: 9; stroke-linecap: round;
  stroke-dasharray: 157; stroke-dashoffset: 157;
  transition: stroke-dashoffset .9s cubic-bezier(.2,.8,.2,1), stroke .6s;
}
.gauge-readout {
  position: absolute; inset: auto 0 -1px 0; text-align: center;
  display: flex; flex-direction: column; line-height: 1.05;
}
.gauge-score { font-size: 21px; font-weight: 700; font-variant-numeric: tabular-nums; }
.gauge-band { font-size: 9.5px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .07em; }
/* Fixed box for the label. "Escalation Index" is one line and "Civil Conflict
   Risk Index" is two, so an auto-height gauge made the whole header taller on
   some tabs and shorter on others — every view below it moved. Two lines of
   room always, clamped. */
.gauge-meta { display: flex; flex-direction: column; gap: 2px; width: 150px; flex: 0 0 auto; }
.gauge-label {
  font-size: 12px; font-weight: 600; line-height: 1.25; height: 30px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.gauge-hint { font-size: 10.5px; color: var(--text-faint); }

.status { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--text-dim); white-space: nowrap; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-faint); }
.status-dot.ok { background: var(--ok); box-shadow: 0 0 8px rgba(52,211,153,.6); }
.status-dot.warn { background: var(--warn); }
.status-dot.bad { background: var(--bad); }

/* ------------------------------------------------------------------ layout */

.layout { flex: 1 1 auto; display: grid; grid-template-columns: 310px 1fr 380px; min-height: 0; }

.panel { display: flex; flex-direction: column; min-height: 0; background: var(--panel); }
.panel-left { border-right: 1px solid var(--line); }
.panel-right { border-left: 1px solid var(--line); }

.panel-head { padding: 10px 12px 0; }
.tabs { display: flex; gap: 4px; background: #0a1017; padding: 3px; border-radius: 8px; border: 1px solid var(--line-soft); }
.tab {
  flex: 1; padding: 6px 10px; border-radius: 6px; font-size: 12.5px;
  color: var(--text-dim); transition: background .15s, color .15s;
}
.tab.active { background: #1a2534; color: var(--text); }

.filters { padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
#search {
  width: 100%; padding: 7px 10px; font-size: 12.5px;
  background: #0a1017; color: var(--text);
  border: 1px solid var(--line); border-radius: 7px;
}
#search::placeholder { color: var(--text-faint); }
#search:focus { outline: none; border-color: #2f4257; }

.chips { display: flex; gap: 5px; flex-wrap: wrap; }
.chip {
  padding: 4px 9px; font-size: 11px; border-radius: 20px;
  border: 1px solid var(--line); color: var(--text-dim);
  transition: all .15s;
}
.chip:hover { border-color: #2c3d51; color: var(--text); }
.chip.active { background: #1d2c3d; border-color: #33485f; color: var(--text); }

.list { flex: 1 1 auto; overflow-y: auto; padding: 4px 8px 16px; }
.hidden { display: none !important; }

/* conflict rows */

.crow {
  display: grid; grid-template-columns: auto 1fr auto; gap: 9px; align-items: center;
  padding: 9px 9px; margin-bottom: 3px;
  border-radius: 8px; cursor: pointer;
  border: 1px solid transparent;
  transition: background .13s, border-color .13s;
}
.crow:hover { background: #101a26; }
.crow.selected { background: #16212f; border-color: #2b3f56; }

.crow-bar { width: 3px; height: 30px; border-radius: 2px; }
.crow-main { min-width: 0; }
.crow-name {
  font-size: 13px; font-weight: 560; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: flex; align-items: center; gap: 6px;
}
.crow-meta { font-size: 11px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.crow-count {
  font-size: 10.5px; color: var(--text-dim); font-variant-numeric: tabular-nums;
  background: #131e2b; border: 1px solid var(--line-soft);
  padding: 2px 6px; border-radius: 20px; white-space: nowrap;
}

.i5 { background: var(--i5); } .i4 { background: var(--i4); }
.i3 { background: var(--i3); } .i2 { background: var(--i2); } .i1 { background: var(--i1); }

/* country rows */

.krow {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 9px; margin-bottom: 2px; border-radius: 8px; cursor: pointer;
  border: 1px solid transparent; transition: background .13s;
}
.krow:hover { background: #101a26; }
.krow-flag { font-size: 17px; width: 22px; text-align: center; flex: 0 0 auto; }
/* US states have no flag emoji, so the postal code stands in. */
.krow-flag.krow-code {
  font-size: 9.5px; font-weight: 700; letter-spacing: .03em;
  color: var(--text-dim); background: #16212e;
  border: 1px solid var(--line-soft); border-radius: 4px; padding: 3px 0;
}
.krow-main { flex: 1; min-width: 0; }
.krow-name { font-size: 12.8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.krow-sub { font-size: 10.8px; color: var(--text-faint); }
.krow-tags { display: flex; gap: 4px; flex: 0 0 auto; }
.ktag {
  font-size: 9.5px; padding: 2px 5px; border-radius: 4px;
  border: 1px solid var(--line); color: var(--text-dim); white-space: nowrap;
}
.ktag.fight { border-color: #5c2a20; background: #24120d; color: #ffab8f; }
.ktag.back { border-color: #2a3f5c; background: #0f1a28; color: #9dc0e8; }
.ktag.nuke { border-color: #5c4a20; background: #241d0d; color: #ffd98f; }

/* ------------------------------------------------------- lanes status board */

.lane-open { --lane: #34d399; }
.lane-watch { --lane: #ffd426; }
.lane-recovering { --lane: #5ac8fa; }
.lane-disrupted { --lane: #ff6b2c; }
.lane-closed { --lane: #ff3b30; }
/* Not a status — "we have not looked yet", deliberately grey so it never
   reads as a clean bill of health. */
.lane-pending { --lane: #64748b; }

.lane-summary { display: flex; flex-wrap: wrap; gap: 5px; padding: 4px 2px 10px; }
.lane-pill {
  font-size: 10.5px; padding: 3px 8px; border-radius: 20px;
  color: var(--lane); border: 1px solid color-mix(in srgb, var(--lane) 40%, transparent);
  background: color-mix(in srgb, var(--lane) 10%, transparent);
}
.lane-pill b { font-variant-numeric: tabular-nums; }

.lrow {
  display: grid; grid-template-columns: auto 1fr auto; gap: 9px; align-items: center;
  padding: 9px; margin-bottom: 3px; border-radius: 8px; cursor: pointer;
  border: 1px solid transparent; transition: background .13s, border-color .13s;
}
.lrow:hover { background: #101a26; }
.lrow.selected { background: #16212f; border-color: #2b3f56; }
.lane-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--lane);
  box-shadow: 0 0 8px color-mix(in srgb, var(--lane) 55%, transparent);
}
.lrow-main { min-width: 0; }
.lrow-name { font-size: 13px; font-weight: 560; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrow-because { font-size: 10.8px; color: var(--text-faint); line-height: 1.35; margin-top: 2px; }
.lrow-right { text-align: right; flex: 0 0 auto; }
.lrow-mentions { font-size: 9.5px; color: var(--text-faint); margin-top: 3px; }
.lane-badge {
  font-size: 9px; font-weight: 700; letter-spacing: .07em; white-space: nowrap;
  padding: 3px 7px; border-radius: 5px; color: var(--lane);
  border: 1px solid color-mix(in srgb, var(--lane) 45%, transparent);
  background: color-mix(in srgb, var(--lane) 12%, transparent);
}

.lane-detail { margin: 0 18px 4px; padding: 12px 13px; border-radius: 9px; background: var(--panel-2); border: 1px solid var(--line-soft); }
.lane-detail-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 6px; }
.lane-detail-because { font-size: 11.8px; color: #cbd8e6; }
.lane-detail-meta { font-size: 10.3px; color: var(--text-faint); margin-bottom: 10px; }
.lane-evidence-tag {
  padding: 1px 5px; border-radius: 4px; font-size: 9.5px; font-weight: 600;
  color: var(--lane); border: 1px solid color-mix(in srgb, var(--lane) 40%, transparent);
}

/* ------------------------------------------------------ provenance + actors */

.chips-label {
  font-size: 9.5px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-faint); align-self: center; margin-right: 2px;
}
.unverified-tag {
  font-size: 8.5px; font-weight: 700; letter-spacing: .06em; flex: 0 0 auto;
  padding: 1px 4px; border-radius: 3px;
  background: #2a1d05; border: 1px solid #6b4d10; color: #ffc857;
}
.unverified-banner {
  margin: 0 18px; padding: 10px 12px;
  border: 1px solid #6b4d10; border-left: 3px solid #ffc857;
  border-radius: 0 8px 8px 0; background: #17120333;
}
.unverified-head { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; color: #ffc857; margin-bottom: 5px; }
.unverified-body { font-size: 11.3px; line-height: 1.55; color: #d8c9a4; }

.actor-chart { display: flex; flex-direction: column; gap: 5px; margin-bottom: 8px; }
.actor-row { display: grid; grid-template-columns: 118px 1fr auto; gap: 8px; align-items: center; }
.actor-label { font-size: 11.5px; color: #cbd8e6; display: flex; align-items: center; gap: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.actor-track { height: 6px; background: #131e2b; border-radius: 3px; overflow: hidden; }
.actor-fill { height: 100%; background: linear-gradient(90deg, #3b82f6, var(--accent)); border-radius: 3px; }
.actor-count { font-size: 10.5px; color: var(--text-faint); font-variant-numeric: tabular-nums; min-width: 18px; text-align: right; }

/* --------------------------------------------------------------------- map */

.map-wrap { position: relative; min-width: 0; background: #070b12; display: flex; flex-direction: column; }
#map { width: 100%; flex: 1 1 auto; display: block; cursor: grab; touch-action: none; min-height: 0; }

/* ------------------------------------------------------------------ ticker */

/* Rounded and considerably quieter. A full-bleed rectangle of saturated red
   under the header read as an error state rather than as a feed, and it was the
   loudest thing on a page whose whole tone is understatement. */
.ticker {
  flex: 0 0 auto; display: flex; align-items: stretch;
  height: 32px; margin: 8px 14px 0; border-radius: 9px;
  background: #150e10; border: 1px solid #3a2024; overflow: hidden;
}
.ticker-label {
  flex: 0 0 auto; display: flex; align-items: center; gap: 6px;
  padding: 0 13px; font-size: 10.5px; font-weight: 640; letter-spacing: .05em;
  background: transparent; color: #ff8b7d;
  border-right: 1px solid #3a2024;
}
.ticker-label::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--i5); animation: breathe 2.2s ease-in-out infinite;
}
.ticker-viewport { flex: 1 1 auto; overflow: hidden; position: relative; }
/* No flex `gap` here. The loop works by duplicating the strip and translating
   -50%, which only lands seamlessly if the two halves are identical widths —
   and `gap` adds one extra space between the halves that is not inside either
   of them, so the strip jumped by 30px on every cycle. The spacing lives on the
   items instead. */
/* `width: max-content` is what makes the loop seamless, and it is the whole
   trick. The strip is duplicated and translated -50%, which is one pass exactly
   — but only if the track is as wide as its contents. A flex container is a
   block box by default, so it was 1165px (the viewport) while one pass of items
   was 6416px, and -50% moved an arbitrary 582px. That was the jump.
   `flex-shrink: 0` stops the items being squeezed to fit instead. */
.ticker-track {
  display: flex; align-items: center; height: 100%; width: max-content;
  white-space: nowrap; will-change: transform;
  animation: ticker-scroll linear infinite;
}
.ticker-track > .ticker-item { margin-right: 30px; flex: 0 0 auto; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ticker-item {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; color: #d8c4c0; text-decoration: none; cursor: pointer;
}
.ticker-item:hover { color: #fff; }
.ticker-conflict {
  font-size: 9.5px; font-weight: 600; letter-spacing: .04em;
  padding: 2px 7px; border-radius: 20px;
  background: rgba(255,107,44,.12); border: 1px solid rgba(255,107,44,.32); color: #ffab8f;
}
.ticker-term { font-size: 9.5px; color: #8a6560; text-transform: uppercase; letter-spacing: .05em; }
.ticker-quiet { font-size: 11.5px; color: #8a615c; padding-left: 14px; }
/* A class, not an inline style: clearing `style.animation` also cleared the
   duration set alongside it, leaving the shorthand at 0s and the strip frozen. */
.ticker-track.ticker-quiet-state { animation: none; }
#map:active { cursor: grabbing; }

.map-legend {
  position: absolute; left: 14px; bottom: 14px;
  background: rgba(9,14,21,0.9); backdrop-filter: blur(9px);
  border: 1px solid var(--line); border-radius: 9px;
  padding: 9px 11px; font-size: 10.5px; color: var(--text-dim);
  display: flex; flex-direction: column; gap: 5px; pointer-events: none;
  max-width: 230px;
}
.legend-title { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); }
.legend-scale { display: flex; gap: 3px; }
.legend-scale .sw { width: 30px; height: 6px; border-radius: 2px; }
.legend-ends { display: flex; justify-content: space-between; font-size: 9.5px; color: var(--text-faint); }
.legend-row { display: flex; gap: 11px; flex-wrap: wrap; }
.legend-note { font-size: 10px; color: var(--text-faint); }
.legend-note span { display: flex; align-items: center; gap: 4px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.solid { background: var(--i4); }
.dot.hollow { background: transparent; border: 2px solid #7dd3fc; }

/* Charts for layers with no geography. `full` replaces the map; `strip` sits
   along the bottom for layers that have both. */
.map-chart {
  position: absolute; left: 0; right: 0; z-index: 6;
  background: rgba(7, 11, 18, 0.94); backdrop-filter: blur(6px);
  padding: 14px 18px; overflow: hidden;
}
.map-chart.full { top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; }
.map-chart.strip { bottom: 0; border-top: 1px solid var(--line); }
.map-chart.strip .chart-svg { max-height: 130px; }

.chart-title { font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em; color: var(--text-faint); margin-bottom: 10px; }
.chart-svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart-axis { stroke: #2a3a4e; stroke-width: 1; }
.chart-threshold { stroke: #ff9f0a; stroke-width: 1; stroke-dasharray: 3 3; opacity: .7; }
.chart-tick { font-size: 8.5px; fill: var(--text-faint); }
.chart-series-label { font-size: 9.5px; font-weight: 600; }
.chart-foot { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.chart-chip {
  font-size: 10px; padding: 2px 7px; border-radius: 20px;
  border: 1px solid var(--line); color: var(--text-dim); white-space: nowrap;
}
.chart-chip b { color: var(--text); font-weight: 600; }
.chart-note { font-size: 10.5px; color: var(--text-faint); line-height: 1.5; margin-top: 9px; max-width: 76ch; }

.data-table { width: 100%; border-collapse: collapse; font-size: 12.2px; }
.data-table th {
  text-align: left; font-size: 9.5px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-faint); font-weight: 600; padding: 0 12px 8px 0;
  border-bottom: 1px solid var(--line);
}
.data-table td { padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line-soft); }
.data-table tr:last-child td { border-bottom: none; }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table th.num { text-align: right; }
.data-table .strong { font-weight: 600; }
.data-table .dim { color: var(--text-faint); }
.data-table .up { color: #6ee7b7; }
.data-table .down { color: #ff9b8f; }
.sparkline { width: 120px; height: 22px; display: block; }

.map-controls { position: absolute; right: 14px; top: 14px; display: flex; flex-direction: column; gap: 5px; }
.map-controls button {
  width: 29px; height: 29px; border-radius: 7px;
  background: rgba(9,14,21,0.9); border: 1px solid var(--line);
  color: var(--text-dim); font-size: 14px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(9px); transition: all .13s;
}
.map-controls button:hover { color: var(--text); border-color: #33485f; background: #131f2c; }

.map-tooltip {
  position: absolute; pointer-events: none; z-index: 20;
  background: rgba(10,16,24,0.97); border: 1px solid #2a3a4e;
  border-radius: 8px; padding: 7px 10px; font-size: 11.5px;
  max-width: 250px; box-shadow: 0 8px 26px rgba(0,0,0,.6);
}
.map-tooltip strong { display: block; font-size: 12.5px; margin-bottom: 2px; }
.map-tooltip span { color: var(--text-dim); font-size: 10.8px; }

/* ------------------------------------------------------------- detail panel */

.empty-state { padding: 22px 18px; overflow-y: auto; height: 100%; }
.empty-state h2 { font-size: 14.5px; margin-bottom: 7px; }
.empty-state > p { color: var(--text-dim); font-size: 12.5px; margin: 0 0 20px; line-height: 1.55; }
.empty-feed h3 { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); margin-bottom: 9px; }

.detail-body { overflow-y: auto; height: 100%; padding: 0 0 26px; }

.dhead { padding: 17px 18px 14px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel); z-index: 5; }
.dhead h2 { font-size: 16px; line-height: 1.28; }
.dhead-meta { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 9px; }
.badge {
  font-size: 10.5px; padding: 2.5px 7px; border-radius: 5px;
  border: 1px solid var(--line); color: var(--text-dim); white-space: nowrap;
}
.badge.hot { border-color: #5c2a20; background: #24120d; color: #ffab8f; }
.badge.cool { border-color: #24425c; background: #0d1a24; color: #8fd4ff; }
.badge.nuke { border-color: #5c4a20; background: #241d0d; color: #ffd98f; }

.dsection { padding: 15px 18px 0; }
.dsection h3 {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em;
  color: var(--text-faint); margin-bottom: 9px;
}
.dsummary { font-size: 12.8px; line-height: 1.62; color: #cbd8e6; }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stat { background: var(--panel-2); border: 1px solid var(--line-soft); border-radius: 8px; padding: 9px 10px; }
.stat-label { font-size: 9.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--text-faint); }
.stat-value { font-size: 15px; font-weight: 640; margin-top: 3px; font-variant-numeric: tabular-nums; }
.stat-note { font-size: 10px; color: var(--text-faint); margin-top: 3px; line-height: 1.4; }

.side { border: 1px solid var(--line-soft); border-radius: 8px; padding: 10px 11px; margin-bottom: 8px; background: var(--panel-2); }
.side-label { font-size: 12.2px; font-weight: 600; margin-bottom: 7px; }
.side-group { margin-bottom: 7px; }
.side-group:last-child { margin-bottom: 0; }
.side-group-label { font-size: 9.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--text-faint); margin-bottom: 4px; }
.flags { display: flex; flex-wrap: wrap; gap: 4px; }
.flag-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; padding: 2.5px 7px 2.5px 5px; border-radius: 5px;
  background: #131e2b; border: 1px solid var(--line-soft); color: #cbd8e6;
}
.flag-chip.main { background: #1d2c3d; border-color: #33485f; }
.side-note { font-size: 10.8px; color: var(--text-faint); line-height: 1.5; margin-top: 6px; font-style: italic; }
.chip-flag { font-size: 12px; }
.chip-code {
  font-size: 8.5px; font-weight: 700; letter-spacing: .04em;
  padding: 1px 3px; border-radius: 3px;
  background: #0d1620; border: 1px solid var(--line-soft); color: var(--text-faint);
}

.theater-note {
  border: 1px solid var(--line-soft); border-left: 2px solid var(--accent);
  border-radius: 0 8px 8px 0; background: #0d1119;
  padding: 11px 13px; margin-bottom: 20px;
}
.theater-note-title {
  font-size: 9.5px; text-transform: uppercase; letter-spacing: .09em;
  color: var(--accent); margin-bottom: 5px;
}
.theater-note-title:not(:first-child) { margin-top: 11px; }
.theater-note p { margin: 0; font-size: 11.5px; line-height: 1.55; color: var(--text-dim); }

.vector-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 5px; }
.vector-list li {
  font-size: 11.8px; color: #c3d2e2; padding-left: 15px; position: relative; line-height: 1.45;
}
.vector-list li::before { content: '→'; position: absolute; left: 0; color: var(--accent); }

/* feed */

.feed-tabs { display: flex; gap: 4px; margin-bottom: 10px; flex-wrap: wrap; }
.feed-tab {
  font-size: 10.8px; padding: 3.5px 8px; border-radius: 20px;
  border: 1px solid var(--line); color: var(--text-dim); transition: all .13s;
}
.feed-tab:hover { border-color: #2c3d51; color: var(--text); }
.feed-tab.active { background: #1d2c3d; border-color: #33485f; color: var(--text); }

.feed { display: flex; flex-direction: column; gap: 2px; }
.fitem {
  display: block; padding: 8px 9px; border-radius: 7px;
  text-decoration: none; color: inherit; border: 1px solid transparent;
  transition: background .13s;
}
.fitem:hover { background: #101a26; border-color: var(--line-soft); }
.fitem-title { font-size: 12.2px; line-height: 1.42; color: #dbe6f2; }
.fitem-meta { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 10.3px; color: var(--text-faint); flex-wrap: wrap; }
.fitem-scope { padding: 1px 5px; border-radius: 4px; border: 1px solid var(--line); }
.fitem-scope.domestic { border-color: #5c4a20; background: #241d0d; color: #ffd98f; }
.fitem-scope.us { border-color: #2a3f5c; background: #0f1a28; color: #9dc0e8; }
.fitem-scope.international { border-color: #24523f; background: #0d211a; color: #86e0bd; }
.fitem-domain { color: var(--text-dim); }

/* breaking + summary + translation */

.breaking-banner {
  margin: 0 18px 0; padding: 10px 12px;
  border: 1px solid #5c2028; border-left: 3px solid var(--i5);
  border-radius: 0 8px 8px 0; background: #180a0d;
}
.breaking-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 6px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .09em; color: #ff6f61;
}
.breaking-head::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--i5); animation: breathe 1.1s ease-in-out infinite;
}
.breaking-reason { font-size: 11.8px; color: #f0cdc7; line-height: 1.5; margin-bottom: 3px; }
.breaking-detail { font-size: 10.2px; color: #a4746d; }

.crow-flag {
  width: 7px; height: 7px; border-radius: 50%; background: var(--i5);
  flex: 0 0 auto; animation: breathe 1.2s ease-in-out infinite;
}

.summary-terms { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.sterm {
  font-size: 11.5px; padding: 3px 8px; border-radius: 5px;
  background: #16212e; border: 1px solid #24344a; color: #cbd8e6;
}
.sterm.top { background: #1e2c3d; border-color: #35506e; color: #fff; font-weight: 560; }
.summary-trend { font-size: 11.5px; color: var(--text-dim); }
.summary-trend b { font-variant-numeric: tabular-nums; }
.trend-up { color: #ff9b8f; }
.trend-down { color: #86e0bd; }

.fitem-lang {
  padding: 1px 5px; border-radius: 4px;
  border: 1px solid #3a3560; background: #16132a; color: #b9aef0;
}
.translate-btn {
  padding: 1px 6px; border-radius: 4px; font-size: 10.3px;
  border: 1px solid var(--line); color: var(--text-dim); transition: all .13s;
}
.translate-btn:hover { border-color: #3f5a78; color: #fff; background: #16212e; }
.translated {
  font-size: 12.2px; line-height: 1.42; color: #a5e5c6;
  margin-top: 5px; padding-left: 9px; border-left: 2px solid #2a6e52;
}

.mix-bar { display: flex; height: 5px; border-radius: 3px; overflow: hidden; margin-bottom: 7px; background: #131e2b; }
.mix-seg { height: 100%; }
.mix-legend { display: flex; flex-wrap: wrap; gap: 3px 9px; font-size: 10.2px; color: var(--text-faint); }
.mix-legend span { display: flex; align-items: center; gap: 4px; }
.mix-swatch { width: 7px; height: 7px; border-radius: 2px; }

.loading { padding: 14px 2px; font-size: 11.8px; color: var(--text-faint); display: flex; align-items: center; gap: 8px; }
.spinner {
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid #223042; border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.disclaimer {
  margin: 16px 18px 0; padding: 9px 11px;
  border: 1px solid var(--line-soft); border-left: 2px solid #3d4f63;
  border-radius: 0 7px 7px 0; background: #0a121a;
  font-size: 10.8px; color: var(--text-faint); line-height: 1.55;
}

/* ------------------------------------------------------------------- modal */

.modal {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(3,6,10,.78); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 26px;
}
.modal-card {
  position: relative; width: min(760px, 100%); max-height: 86vh; overflow-y: auto;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 13px; padding: 22px 24px;
  box-shadow: 0 26px 70px rgba(0,0,0,.7);
}
.modal-close {
  position: absolute; top: 13px; right: 15px;
  font-size: 21px; color: var(--text-faint); line-height: 1;
}
.modal-close:hover { color: var(--text); }
.modal-card h2 { font-size: 17px; margin-bottom: 5px; }
.modal-sub { font-size: 12.2px; color: var(--text-dim); margin: 0 0 18px; line-height: 1.55; }

.comp {
  border: 1px solid var(--line-soft); border-radius: 9px;
  padding: 12px 13px; margin-bottom: 9px; background: var(--panel-2);
}
.comp-head { display: flex; align-items: baseline; gap: 9px; margin-bottom: 5px; flex-wrap: wrap; }
.comp-name { font-size: 13px; font-weight: 600; }
.comp-score { font-size: 12.5px; font-variant-numeric: tabular-nums; color: var(--accent); font-weight: 640; }
.comp-weight { font-size: 10.5px; color: var(--text-faint); margin-left: auto; }
.comp-summary { font-size: 12px; color: #cbd8e6; margin-bottom: 7px; line-height: 1.5; }
.comp-method { font-size: 10.8px; color: var(--text-faint); line-height: 1.55; font-style: italic; margin-bottom: 8px; }
.comp-track { height: 4px; background: #16212e; border-radius: 3px; overflow: hidden; margin-bottom: 9px; }
.comp-fill { height: 100%; background: linear-gradient(90deg, var(--i2), var(--i5)); border-radius: 3px; transition: width .6s; }
.comp-inputs { display: flex; flex-direction: column; gap: 3px; }
.comp-input { display: flex; gap: 9px; font-size: 10.8px; line-height: 1.45; }
.comp-input b { font-weight: 500; color: #b9c9da; flex: 0 0 auto; max-width: 45%; }
.comp-input span { color: var(--text-faint); }
.comp-unavailable { font-size: 11px; color: var(--warn); }

.band-scale { display: flex; gap: 3px; margin: 14px 0 6px; }
.band { flex: 1; padding: 6px 5px; border-radius: 6px; text-align: center; border: 1px solid var(--line-soft); background: var(--panel-2); }
.band.on { border-color: var(--accent); background: #1e1410; }
.band-name { font-size: 10.5px; font-weight: 600; }
.band-range { font-size: 9.5px; color: var(--text-faint); }

@media (max-width: 1180px) {
  .layout { grid-template-columns: 270px 1fr 330px; }
}
@media (max-width: 940px) {
  .layout { grid-template-columns: 1fr; grid-template-rows: 250px 1fr; }
  .panel-left { border-right: none; border-bottom: 1px solid var(--line); }
  .panel-right { display: none; }
  .panel-right.open { display: flex; position: fixed; inset: 0; z-index: 60; }
}

/* Open questions: no severity is asserted, so the marker bar is neutral grey
   rather than borrowing a colour from the intensity scale. */
.i0 { background: #475569; }
.badge.unverified-badge { border-color: #6b4d10; background: #2a1d05; color: #ffc857; }

/* Legend marks: grey means "no claim", used for unverified entries and
   lanes with no coverage — never borrow a severity colour for those. */
.dot.grey { background: transparent; border: 2px solid #64748b; }
.sw.i0 { background: #475569; }
.sw.lane-open { background: #34d399; }
.sw.lane-watch { background: #ffd426; }
.sw.lane-recovering { background: #5ac8fa; }
.sw.lane-disrupted { background: #ff6b2c; }
.sw.lane-closed { background: #ff3b30; }

/* ------------------------------------------------- story clusters + sources */

.src-badge { padding: 1px 6px; border-radius: 4px; font-size: 9.8px; font-weight: 600; }
.src-strong { background: #0d211a; border: 1px solid #24523f; color: #86e0bd; }
.src-weak   { background: #241d0d; border: 1px solid #5c4a20; color: #ffd98f; }
.src-state  { background: #24120d; border: 1px solid #5c2a20; color: #ffab8f; }
.src-unknown{ background: #16212e; border: 1px solid var(--line); color: var(--text-faint); }

.carriers-toggle {
  font-size: 10px; color: var(--text-faint); padding: 3px 0 0 9px;
  text-decoration: underline dotted;
}
.carriers-toggle:hover { color: var(--text-dim); }
.carriers { display: flex; flex-direction: column; gap: 2px; padding: 5px 0 2px 9px; }
.carrier-row {
  display: flex; align-items: center; gap: 6px; font-size: 10.5px;
  color: var(--text-dim); text-decoration: none; padding: 2px 0;
}
.carrier-row:hover { color: var(--text); }
.carrier-name { flex: 0 0 auto; }
.carrier-tag { font-size: 8.5px; padding: 1px 4px; border-radius: 3px; }
.carrier-tag.state { background: #24120d; border: 1px solid #5c2a20; color: #ffab8f; }
.carrier-tag.unknown { background: #16212e; border: 1px solid var(--line); color: var(--text-faint); }

.load-more {
  width: 100%; margin-top: 8px; padding: 7px; border-radius: 7px;
  border: 1px solid var(--line); color: var(--text-dim); font-size: 11.5px;
  transition: all .13s;
}
.load-more:hover { border-color: #33485f; color: var(--text); background: #101a26; }

/* --------------------------------------------------------------------- home */

.home { flex: 1 1 auto; overflow-y: auto; background: var(--bg); }
.home-inner { max-width: 1180px; margin: 0 auto; padding: 40px 28px 64px; }

/* Masthead beside the dashboards rather than above them. Centring the hero left
   the right half of the page empty, and the gauges are the reason to be here. */
.home-top { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 44px; align-items: start; margin-bottom: 34px; }
.home-hero { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.home-hero h1 { font-size: 44px; letter-spacing: -0.03em; }
.home-tagline { margin: 4px 0 0; font-size: 15px; color: var(--accent); letter-spacing: .01em; }
.home-lede { margin: 16px 0 0; font-size: 13px; line-height: 1.65; color: var(--text-dim); }
/* The first heading in the right column aligns with the top of the logo. */
.home-h2-flush { margin-top: 4px; }
@media (max-width: 900px) { .home-top { grid-template-columns: 1fr; gap: 24px; } }

.home-h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-faint); margin: 34px 0 4px; }
.home-note { margin: 0 0 12px; font-size: 11.5px; line-height: 1.5; color: var(--text-faint); max-width: 54ch; }

/* clocks */
.home-clocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; margin-bottom: 22px; }
.clock-card { background: var(--panel); border: 1px solid var(--line); border-radius: 11px; padding: 15px 16px; }
.clock-value { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.clock-unit { font-size: 11px; color: var(--text-dim); margin-top: 1px; }
.clock-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); margin-bottom: 7px; }
.clock-note { font-size: 10.3px; color: var(--text-faint); margin-top: 8px; line-height: 1.45; }
.clock-unverified { color: #ffc857; }

/* boundary strip */
.pb-strip { display: flex; gap: 3px; margin-top: 9px; }
.pb-cell { flex: 1; height: 6px; border-radius: 2px; background: #24523f; }
.pb-cell.transgressed { background: var(--i5); }
.pb-cell.at-boundary { background: var(--i3); }

/* Alerts sit in a column beside the corroborated feed, so they are compact:
   kind above the label rather than in its own gutter. */
.home-alerts { display: flex; flex-direction: column; gap: 5px; }
.alert-row {
  display: block;
  padding: 9px 12px; border-radius: 9px; background: var(--panel);
  border: 1px solid var(--line); border-left: 3px solid var(--line);
}
.alert-row .alert-kind { display: block; margin-bottom: 3px; }
.alert-row .alert-src { display: block; margin-top: 4px; }
.alert-row.high { border-left-color: var(--i5); }
.alert-row.medium { border-left-color: var(--i3); }
.alert-row.info { border-left-color: #3d5570; }
.alert-kind { font-size: 9.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); white-space: nowrap; }
.alert-label { font-size: 13px; color: var(--text); }
.alert-detail { font-size: 11.3px; color: var(--text-dim); margin-top: 2px; line-height: 1.45; }
.alert-src { font-size: 10px; color: var(--text-faint); white-space: nowrap; }

/* two-column lists */
.home-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.home-list { display: flex; flex-direction: column; gap: 3px; }
/* Full-width lists run to two columns rather than one very long line. */
.home-list-wide { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 26px; }
@media (max-width: 860px) { .home-list-wide { grid-template-columns: 1fr; } }
.home-item { padding: 9px 11px; border-radius: 8px; text-decoration: none; color: inherit; border: 1px solid transparent; display: block; }
.home-item:hover { background: var(--panel); border-color: var(--line-soft); }
.home-item-title { font-size: 12.8px; line-height: 1.45; color: #dbe6f2; }
.home-item-meta { display: flex; gap: 8px; margin-top: 4px; font-size: 10.2px; color: var(--text-faint); flex-wrap: wrap; }

/* Gauge cards: the dashboards index, carrying each tab's live reading instead
   of a paragraph describing what the tab contains. */
.home-gauges { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: 9px; }
.gauge-card {
  text-align: left; background: var(--panel); border: 1px solid var(--line);
  border-radius: 11px; padding: 13px 14px; transition: border-color .14s, background .14s;
}
.gauge-card:hover { border-color: #2f4257; background: #101a26; }
.gauge-card-label { font-size: 12.5px; font-weight: 600; margin-bottom: 8px; }
.gauge-card-row { display: flex; align-items: baseline; gap: 7px; }
.gauge-card-score { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.gauge-card-band { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim); }
.gauge-card-meter { height: 3px; background: #16212e; border-radius: 2px; overflow: hidden; margin-top: 8px; }
.gauge-card-fill { height: 100%; border-radius: 2px; transition: width .6s; }
.gauge-card-sub { font-size: 10px; color: var(--text-faint); margin-top: 7px; }
.gauge-card-trend { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--text-faint); }
.gauge-spark { width: 70px; height: 20px; flex: 0 0 auto; }
.gauge-card-delta { font-size: 10px; font-variant-numeric: tabular-nums; }
.gauge-card-delta.up { color: #ff9b8f; }
.gauge-card-delta.down { color: #6ee7b7; }

/* The app's argument, stated once. Two columns so it reads as principles
   rather than as a wall of caveats. */
.home-principles { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 34px; margin-top: 14px; }
.principle h3 { font-size: 13px; margin-bottom: 5px; color: var(--text); }
.principle p { margin: 0; font-size: 12px; line-height: 1.62; color: var(--text-dim); }
.principle em { color: #cbd8e6; font-style: italic; }
@media (max-width: 860px) { .home-principles { grid-template-columns: 1fr; } }

.home-foot { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 10.8px; color: var(--text-faint); line-height: 1.6; }

@media (max-width: 860px) { .home-cols { grid-template-columns: 1fr; } }

/* Brand mark. `src` points at /logo.png first so dropping a real file into
   public/ overrides the vector with no code change. */
.brand-mark {
  width: 40px; height: 34px; flex: 0 0 auto; display: block;
  object-fit: cover;
  /* Character occupies the upper portion; the wordmark below is cropped out
     so the header does not print "Oopsy." twice. */
  object-position: 50% 30%;
}
.home-mark { width: 100%; max-width: 300px; height: auto; display: block; margin: 0 0 2px -6px; }

/* ------------------------------------------------------------ country focus */

.country-back {
  margin: 12px 18px 0; padding: 4px 9px; border-radius: 6px;
  font-size: 11px; color: var(--text-dim);
  border: 1px solid var(--line); transition: all .13s;
}
.country-back:hover { border-color: #33485f; color: var(--text); background: #101a26; }

/* State chips lead somewhere; institutional actors carry no code and stay inert. */
.flag-chip.linked { cursor: pointer; }
.flag-chip.linked:hover { border-color: #3f5a78; color: #fff; }
.flag-chip.opponent { border-color: #5c2a20; background: #1d0f0b; color: #ffab8f; }
.flag-chip.opponent:hover { border-color: #8a3f30; }
.flag-chip.backer { border-color: #24425c; background: #0c1620; color: #8fd4ff; }
.flag-chip.backer:hover { border-color: #37628a; }
.chip-via { font-size: 9px; color: var(--text-faint); margin-left: 2px; }

/* ---------------------------------------------------- overlay views (tabs) */

/* The gauge keeps its slot on views that have no score, so switching tabs
   never shifts the header. Hiding it outright moved the tab bar sideways. */
.gauge-empty { visibility: hidden; }

.overlay-controls { padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.chip.chip-out { opacity: .45; text-decoration: line-through; }

.overlay-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.overlay-cadence {
  font-size: 9.5px; font-weight: 600; letter-spacing: .04em;
  padding: 2px 6px; border-radius: 4px;
  background: #0f1a28; border: 1px solid #2a3f5c; color: #9dc0e8;
}
.overlay-source { font-size: 10px; color: var(--text-faint); }
.overlay-note { margin: 0; font-size: 10.8px; line-height: 1.5; color: var(--text-faint); }

.layer-head {
  display: flex; align-items: baseline; gap: 6px;
  padding: 4px 4px 10px; font-size: 10.5px; color: var(--text-faint);
}
.layer-count { font-size: 15px; font-weight: 640; color: var(--text); font-variant-numeric: tabular-nums; }
.layer-age { margin-left: auto; }

.slow-card {
  background: var(--panel-2); border: 1px solid var(--line-soft);
  border-radius: 9px; padding: 11px 12px; margin-bottom: 6px;
}
.slow-card .clock-value { font-size: 22px; }
.slow-card .clock-note:last-child { color: var(--text-faint); opacity: .75; margin-top: 4px; }

.layer-out {
  margin: 4px 2px; padding: 11px 12px;
  border: 1px solid #6b4d10; border-left: 3px solid #ffc857;
  border-radius: 0 8px 8px 0; background: #17120333;
}
.layer-out-head { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; color: #ffc857; margin-bottom: 5px; }
.layer-out-body { font-size: 11.3px; line-height: 1.55; color: #d8c9a4; margin-bottom: 4px; }

/* measured-reading rows */
.prow {
  display: grid; grid-template-columns: auto 1fr auto; gap: 9px; align-items: center;
  padding: 8px 9px; margin-bottom: 2px; border-radius: 8px; cursor: pointer;
  border: 1px solid transparent; transition: background .13s;
}
.prow:hover { background: #101a26; }
.prow-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.prow-main { min-width: 0; }
.prow-name { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow-detail { font-size: 10.5px; color: var(--text-faint); margin-top: 2px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prow-at { font-size: 9.8px; color: var(--text-faint); white-space: nowrap; }

/* --------------------------------------------- full-width sheets (info/status) */

.sheet { flex: 1 1 auto; overflow-y: auto; background: var(--bg); }
.sheet-inner { max-width: 1080px; margin: 0 auto; padding: 34px 28px 64px; }
.sheet-hero { margin-bottom: 24px; }
.sheet-hero h2 { font-size: 26px; letter-spacing: -0.02em; }
.sheet-lede { margin: 10px 0 0; max-width: 68ch; font-size: 13px; line-height: 1.65; color: var(--text-dim); }
.sheet-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.sheet-inner .clock-value { font-size: 24px; }

/* state-media sources */
.pusher-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.pusher-card {
  text-align: left; padding: 11px 13px; border-radius: 9px;
  background: var(--panel); border: 1px solid var(--line); transition: border-color .14s, background .14s;
}
.pusher-card:hover { border-color: #2f4257; background: #101a26; }
.pusher-card.active { border-color: var(--accent); background: #1e1410; }
.pusher-country { font-size: 13px; font-weight: 600; }
.pusher-count { font-size: 10.5px; color: var(--text-faint); margin-top: 2px; }

/* source health */
.health-list { display: flex; flex-direction: column; gap: 2px; }
.health-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center;
  padding: 9px 11px; border-radius: 8px; border: 1px solid transparent;
}
.health-row:hover { background: var(--panel); border-color: var(--line-soft); }
.health-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 8px rgba(52,211,153,.5); flex: 0 0 auto;
}
.health-dot.bad { background: var(--bad); box-shadow: 0 0 8px rgba(248,113,113,.5); }
.health-name { font-size: 12.5px; }
.health-detail { font-size: 10.5px; color: var(--text-faint); margin-top: 2px; line-height: 1.45; }
.health-meta { font-size: 10.5px; color: var(--text-dim); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* A failing source stays visible from every tab without a widget narrating
   normal operation the rest of the time. */
.tab-health {
  width: 6px; height: 6px; border-radius: 50%; background: var(--bad);
  display: inline-block; margin-left: 6px; vertical-align: middle;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
