:root {
  --bg-root: #000; --bg-card: #0a0a0a; --bg-elevated: #111; --bg-hover: #1a1a1a;
  --border: #222; --border-hover: #333;
  --text-primary: #ededed; --text-secondary: #888; --text-tertiary: #555;
  --accent: #fff; --accent-subtle: rgba(255, 255, 255, 0.08);
  --signal: #0070f3; --signal-subtle: rgba(0, 112, 243, 0.12);
  --positive: #30a46c; --warning: #f5a623; --serious: #ec835a; --danger: #e5484d;
  --warning-subtle: rgba(245, 166, 35, 0.12); --serious-subtle: rgba(236, 131, 90, 0.13); --danger-subtle: rgba(229, 72, 77, 0.13);
  --series-now: #3987e5; --series-2011: #d95926;
  --rain-0: rgba(255, 255, 255, 0.05); --rain-1: #184f95; --rain-2: #256abf; --rain-3: #3987e5; --rain-4: #6da7ec; --rain-5: #b7d3f6;
  --chart-grid: #222; --chart-tick: #666;
  --font-sans: 'Inter', 'Sarabun', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Sarabun', monospace;
  --radius: 8px; --radius-lg: 12px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0 }
html { scroll-behavior: smooth; scroll-padding-top: 108px }
body { font-family: var(--font-sans); background: var(--bg-root); color: var(--text-primary); min-height: 100vh; -webkit-font-smoothing: antialiased; font-size: 14px; line-height: 1.55 }
a { color: inherit }
a.link { color: #6da7ec; text-decoration: none; border-bottom: 1px solid rgba(109, 167, 236, 0.35) }
a.link:hover { border-bottom-color: #6da7ec }
::selection { background: var(--signal); color: #fff }
::-webkit-scrollbar { width: 6px; height: 6px }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important } html { scroll-behavior: auto } }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums }
.muted { color: var(--text-secondary) }
.faint { color: var(--text-tertiary) }
.nowrap { white-space: nowrap }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 1000; background: rgba(0, 0, 0, 0.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border) }
.topbar-row { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 10px 16px; min-height: 56px }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0 }
.brand svg { flex: none }
.brand-name { font-size: 17px; font-weight: 700; letter-spacing: -0.3px; line-height: 1.2 }
.brand-sub { font-size: 12px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.live { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-secondary); white-space: nowrap }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-tertiary); flex: none }
.live[data-state="live"] .live-dot { background: var(--signal); box-shadow: 0 0 8px rgba(0, 112, 243, 0.5) }
.live[data-state="partial"] .live-dot { background: var(--warning) }
.live[data-state="offline"] .live-dot { background: var(--danger) }
.tabs { max-width: 1200px; margin: 0 auto; display: flex; gap: 4px; padding: 0 12px 8px; overflow-x: auto; scrollbar-width: none }
.tabs::-webkit-scrollbar { display: none }
.tabs a { flex: none; text-decoration: none; font-size: 13px; font-weight: 500; color: var(--text-secondary); padding: 6px 12px; border-radius: 20px; border: 1px solid transparent }
.tabs a:hover { color: var(--text-primary); background: var(--bg-hover) }
.tabs a.active { color: var(--text-primary); background: var(--accent-subtle); border-color: var(--border) }

/* layout */
main { max-width: 1200px; margin: 0 auto; padding: 16px 16px 48px }
section { padding: 28px 0 8px; border-top: 1px solid var(--border) }
section:first-of-type { border-top: 0; padding-top: 8px }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 14px }
.sec-head h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.4px; line-height: 1.35 }
.sec-head p { font-size: 13px; color: var(--text-secondary); flex-basis: 100% }
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px }
.card + .card { margin-top: 12px }
.card h3 { font-size: 15px; font-weight: 600; letter-spacing: -0.2px; line-height: 1.4 }
.card .card-sub { font-size: 12px; color: var(--text-secondary); margin-top: 2px }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px }
.grid-3 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px }
.card, .kpi, .claim { min-width: 0 }
@media (min-width: 769px) {
  main { padding: 20px 24px 64px }
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px }
  .sec-head h2 { font-size: 22px }
}

/* hero */
.hero h1 { font-size: 24px; font-weight: 700; letter-spacing: -0.5px; line-height: 1.35 }
.hero .lede { margin-top: 10px; font-size: 15px; color: #c9c9c9; line-height: 1.65; max-width: 860px }
.asof { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-top: 12px }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text-secondary); font-size: 12px; border-radius: 20px; padding: 4px 10px; white-space: nowrap }
.chip b { color: var(--text-primary); font-weight: 600 }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-tertiary) }
.chip[data-state="live"] .dot { background: var(--signal) }
.chip[data-state="snapshot"] .dot { background: var(--warning) }
.chip[data-state="error"] .dot { background: var(--danger) }
@media (min-width: 769px) { .hero h1 { font-size: 30px; letter-spacing: -0.8px } }

.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px }
@media (min-width: 769px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px } }
@media (min-width: 1025px) { .kpis { grid-template-columns: repeat(6, minmax(0, 1fr)) } }
.kpi { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px; min-width: 0; display: flex; flex-direction: column; gap: 6px }
.kpi-label { font-size: 12px; color: var(--text-secondary); font-weight: 500; line-height: 1.4 }
.kpi-value { font-size: 26px; font-weight: 700; line-height: 1.1; letter-spacing: -0.5px }
.kpi-value small { font-size: 13px; font-weight: 500; color: var(--text-secondary); letter-spacing: 0; margin-left: 2px }
.kpi-note { font-size: 12px; color: var(--text-secondary); line-height: 1.45; overflow-wrap: anywhere }
.kpi[data-tone="critical"] { border-color: rgba(229, 72, 77, 0.45) }
.kpi[data-tone="critical"] .kpi-value { color: #ff8a8d }
.kpi[data-tone="serious"] .kpi-value { color: #f3a584 }
.kpi[data-tone="warning"] .kpi-value { color: #f7c46a }

.takeaways { margin-top: 16px; display: grid; gap: 10px }
.take { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 12px 14px; font-size: 14px; line-height: 1.6 }
.take .n { width: 24px; height: 24px; border-radius: 50%; background: var(--bg-elevated); border: 1px solid var(--border-hover); display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--text-secondary) }
.take b { font-weight: 600 }

/* badges */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; line-height: 1.3; border-radius: 20px; padding: 2px 9px; white-space: nowrap; border: 1px solid transparent }
.badge svg { flex: none }
.badge.true { background: rgba(48, 164, 108, 0.14); color: #5fd49a; border-color: rgba(48, 164, 108, 0.35) }
.badge.partial { background: var(--warning-subtle); color: #f7c46a; border-color: rgba(245, 166, 35, 0.35) }
.badge.false { background: var(--danger-subtle); color: #ff8a8d; border-color: rgba(229, 72, 77, 0.4) }
.badge.unknown { background: var(--accent-subtle); color: var(--text-secondary); border-color: var(--border-hover) }
.badge.lv0 { background: var(--accent-subtle); color: var(--text-secondary) }
.badge.lv1 { background: var(--warning-subtle); color: #f7c46a }
.badge.lv2 { background: var(--serious-subtle); color: #f3a584 }
.badge.lv3 { background: var(--danger-subtle); color: #ff8a8d }

/* fact check */
.verdict { display: grid; gap: 14px }
.verdict-top { display: flex; flex-wrap: wrap; gap: 10px; align-items: center }
.verdict-big { font-size: 20px; font-weight: 700; letter-spacing: -0.3px }
.post-quote { border-left: 3px solid var(--border-hover); padding: 4px 0 4px 12px; color: #bdbdbd; font-size: 14px; line-height: 1.7 }
.claims { display: grid; gap: 10px }
.claim { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px }
.claim-q { font-weight: 600; font-size: 14px; line-height: 1.55; display: flex; gap: 10px; justify-content: space-between; align-items: flex-start }
.claim-q span { min-width: 0 }
.claim-a { margin-top: 8px; color: #c4c4c4; font-size: 13.5px; line-height: 1.65 }
.claim-a .num { font-family: var(--font-sans); font-weight: 600; color: var(--text-primary) }
@media (min-width: 769px) { .claims { grid-template-columns: repeat(2, minmax(0, 1fr)) } }

/* controls */
.controls { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-bottom: 14px }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 3px }
.seg button { font-size: 13px; font-weight: 500; color: var(--text-secondary); padding: 7px 11px; border-radius: 7px; min-height: 34px; white-space: nowrap }
.seg button:hover { color: var(--text-primary); background: var(--bg-hover) }
.seg button[aria-pressed="true"] { background: var(--accent); color: #000 }
.ctl-label { font-size: 12px; color: var(--text-secondary); margin-right: 2px }
select.sel { font: inherit; font-size: 13px; background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 10px; min-height: 38px }

/* map */
.map-wrap { position: relative; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: #0b0e12 }
#map { height: 62vh; min-height: 380px; max-height: 720px; background: #0b0e12 }
.map-layers { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px }
.toggle { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: var(--text-secondary); background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 6px 12px; min-height: 36px }
.toggle[aria-pressed="true"] { color: var(--text-primary); border-color: #3a3a3a; background: var(--bg-elevated) }
.toggle .sw { width: 10px; height: 10px; border-radius: 3px; background: var(--text-tertiary) }
.toggle[aria-pressed="true"] .sw { background: var(--signal) }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 12px; color: var(--text-secondary) }
.legend .item { display: inline-flex; align-items: center; gap: 6px }
.legend .sq { width: 12px; height: 12px; border-radius: 3px; flex: none }
.legend .cir { width: 10px; height: 10px; border-radius: 50%; flex: none; box-shadow: 0 0 0 1.5px #000 }
.legend-title { color: var(--text-primary); font-weight: 600; margin-right: 2px }
.radar-bar { position: absolute; left: 10px; bottom: 10px; z-index: 500; display: none; align-items: center; gap: 8px; background: rgba(0, 0, 0, 0.78); border: 1px solid var(--border); border-radius: 20px; padding: 4px 10px 4px 4px; font-size: 12px }
.radar-bar.show { display: inline-flex }
.radar-bar button { width: 28px; height: 28px; border-radius: 50%; background: var(--bg-elevated); display: grid; place-items: center }
.leaflet-container { font-family: var(--font-sans); background: #0b0e12 }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--bg-elevated); color: var(--text-primary); border: 1px solid var(--border-hover); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) }
.leaflet-popup-content { margin: 12px 14px; font-size: 13px; line-height: 1.55 }
.leaflet-popup-content b { font-weight: 600 }
.leaflet-container a.leaflet-popup-close-button { color: var(--text-secondary) }
.leaflet-control-attribution { background: rgba(0, 0, 0, 0.6) !important; color: #777 !important; font-size: 10px }
.leaflet-control-attribution a { color: #999 !important }
.leaflet-bar a { background: var(--bg-elevated); color: var(--text-primary); border-bottom-color: var(--border) }
.leaflet-bar a:hover { background: var(--bg-hover); color: #fff }
.leaflet-bar { border: 1px solid var(--border-hover) !important }
.map-hint { font-size: 12px; color: var(--text-tertiary); margin-top: 8px }

/* ranking */
.rank { display: grid; gap: 2px }
.rank-row { display: grid; grid-template-columns: 22px minmax(88px, 1.1fr) 2.4fr 64px; gap: 8px; align-items: center; padding: 7px 6px; border-radius: 8px; cursor: pointer }
.rank-row:hover, .rank-row:focus-visible { background: var(--bg-hover) }
.rank-row .i { font-size: 11px; color: var(--text-tertiary); text-align: right }
.rank-row .nm { font-size: 13px; font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.rank-row .nm small { display: block; font-size: 11px; color: var(--text-tertiary); font-weight: 400 }
.rank-row .v { text-align: right; font-size: 13px }
.rbar { position: relative; height: 16px }
.rbar .rng { position: absolute; top: 7px; height: 2px; background: #444; border-radius: 1px }
.rbar .med { position: absolute; top: 2px; height: 12px; border-radius: 0 4px 4px 0; left: 0 }
.rbar .tick { position: absolute; top: 3px; width: 2px; height: 10px; background: #777; border-radius: 1px }
.rank-scale { display: grid; grid-template-columns: 22px minmax(88px, 1.1fr) 2.4fr 64px; gap: 8px; font-size: 11px; color: var(--text-tertiary); padding: 0 6px 6px }
.rank-scale .ax { position: relative; height: 14px }
.rank-scale .ax span { position: absolute; transform: translateX(-50%) }

/* heat table */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-card) }
table.heat { border-collapse: separate; border-spacing: 2px; width: 100%; font-size: 12px }
table.heat th { font-weight: 600; color: var(--text-secondary); font-size: 11px; padding: 6px 4px; text-align: center; white-space: nowrap; position: sticky; top: 0; background: var(--bg-card) }
table.heat th.win { color: var(--text-primary) }
table.heat td { text-align: center; padding: 0; height: 26px; min-width: 34px; border-radius: 3px; font-family: var(--font-mono); font-size: 11px; color: #e8e8e8 }
table.heat td.p { text-align: left; font-family: var(--font-sans); font-size: 12px; color: var(--text-primary); padding: 0 8px; position: sticky; left: 0; background: var(--bg-card); white-space: nowrap; min-width: 96px; z-index: 1 }
table.heat td.tot { font-weight: 600; min-width: 48px; background: var(--bg-elevated) }
table.heat td.dk { color: #06121f }
table.heat tr.reg td { font-family: var(--font-sans); font-size: 12px; font-weight: 600; color: var(--text-secondary); text-align: left; padding: 10px 8px 4px; height: auto; background: transparent }
.more-btn { display: block; width: 100%; margin-top: 8px; font-size: 13px; color: var(--text-secondary); border: 1px dashed var(--border-hover); border-radius: var(--radius); padding: 9px }
.more-btn:hover { color: var(--text-primary); border-color: #555 }

/* generic data tables */
table.data { width: 100%; border-collapse: collapse; font-size: 13px }
table.data th { font-size: 11px; font-weight: 600; color: var(--text-tertiary); text-align: left; padding: 8px 10px; background: var(--bg-elevated); white-space: nowrap }
table.data th.r, table.data td.r { text-align: right }
table.data td { padding: 9px 10px; border-top: 1px solid var(--border); vertical-align: middle }
table.data tr:hover td { background: var(--bg-hover) }
table.data td small { display: block; color: var(--text-tertiary); font-size: 11px }
.pbar { display: inline-block; vertical-align: middle; width: 72px; height: 6px; background: #1c1c1c; border-radius: 3px; position: relative; margin-right: 8px }
.pbar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px }
.pbar .cap { position: absolute; top: -3px; width: 1px; height: 12px; background: #666 }

/* charts */
.chart { position: relative; width: 100%; margin-top: 10px }
.chart svg { display: block; width: 100%; overflow: visible }
.chart text { font-family: var(--font-sans); font-size: 11px; fill: var(--chart-tick) }
.chart .lbl { fill: var(--text-secondary) }
.chart .lbl-strong { fill: var(--text-primary); font-weight: 600 }
.chart-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--text-secondary); margin-top: 8px }
.chart-legend .k { display: inline-flex; align-items: center; gap: 6px }
.chart-legend .sw { width: 14px; height: 3px; border-radius: 2px }
.chart-legend .swb { width: 12px; height: 12px; border-radius: 3px }
.chart-legend .swd { width: 9px; height: 9px; border-radius: 50% }
#tip { position: fixed; z-index: 2000; pointer-events: none; background: var(--bg-elevated); border: 1px solid var(--border-hover); border-radius: var(--radius); padding: 8px 10px; font-size: 12px; line-height: 1.5; color: var(--text-primary); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5); max-width: 280px; opacity: 0; transition: opacity .12s }
#tip.show { opacity: 1 }
#tip .t { font-weight: 600; margin-bottom: 2px }
#tip .row { display: flex; justify-content: space-between; gap: 14px }
#tip .row span:last-child { font-family: var(--font-mono) }

/* focus cards */
.focus-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px }
@media (min-width: 769px) { .focus-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
@media (min-width: 1100px) { .focus-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) } }
.focus-head { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start }
.focus-tot { text-align: right; flex: none }
.focus-tot b { font-size: 22px; font-weight: 700; letter-spacing: -0.4px; display: block; line-height: 1.1 }
.focus-tot span { font-size: 11px; color: var(--text-secondary) }
.probs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px }
.prob { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 8px; padding: 6px 8px }
.prob span { display: block; font-size: 11px; color: var(--text-secondary) }
.prob b { font-size: 15px; font-weight: 700 }
.near { margin-top: 12px; display: grid; gap: 4px; font-size: 12.5px }
.near-row { display: flex; justify-content: space-between; gap: 10px; color: #c4c4c4 }
.near-row span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }

/* lists */
.list { display: grid; gap: 0 }
.li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 10px 2px; border-top: 1px solid var(--border); align-items: center }
.li:first-child { border-top: 0 }
.li .main { min-width: 0 }
.li .main b { font-weight: 600; font-size: 13.5px }
.li .main small { display: block; color: var(--text-secondary); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.li .side { text-align: right; font-size: 13px }
.li .side small { display: block; font-size: 11px; color: var(--text-secondary) }
.trend-up { color: #ff8a8d }
.trend-down { color: #5fd49a }

/* warnings */
.warn-latest h3 { font-size: 16px; line-height: 1.5 }
.warn-body { white-space: pre-line; color: #c9c9c9; font-size: 13.5px; line-height: 1.75; margin-top: 10px; max-height: 340px; overflow: auto; padding-right: 6px }
.region-fc { display: grid; gap: 8px; margin-top: 10px }
.region-fc div { font-size: 13px; line-height: 1.65; color: #c4c4c4; white-space: pre-line }
.region-fc b { color: var(--text-primary); display: block; font-weight: 600 }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px }
@media (min-width: 769px) { .gallery { grid-template-columns: repeat(4, 1fr) } }
.gallery a { display: block; text-decoration: none; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; overflow: hidden }
.gallery img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #0b0b0b }
.gallery .cap { font-size: 11.5px; padding: 6px 8px; color: var(--text-secondary); line-height: 1.4 }
.gallery .cap b { color: var(--text-primary); font-weight: 500; display: block }

/* sources */
.sources { display: grid; gap: 8px; grid-template-columns: 1fr }
@media (min-width: 769px) { .sources { grid-template-columns: 1fr 1fr } }
.src { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 12px 14px; font-size: 13px; line-height: 1.6 }
.src b { font-weight: 600 }
.src .st { float: right }
.method { font-size: 13.5px; line-height: 1.75; color: #c4c4c4 }
.method h3 { color: var(--text-primary); margin: 14px 0 4px; font-size: 14px }
.method ul { padding-left: 18px }

footer { max-width: 1200px; margin: 0 auto; padding: 24px 16px 40px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-tertiary); line-height: 1.7 }
.skeleton { color: var(--text-tertiary); font-size: 13px; padding: 12px 0 }
.err { color: #ff8a8d; font-size: 12.5px }
.stale { opacity: .55; transition: opacity .2s }
.gesture-hint { position: absolute; inset: 0; z-index: 650; display: grid; place-items: center; background: rgba(0, 0, 0, 0.5); color: #fff; font-size: 15px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s }
.gesture-hint.show { opacity: 1 }
.detail { padding: 4px 6px 12px 36px }
.detail .parts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px }
.rank-row[aria-expanded="true"] { background: var(--bg-elevated) }
.river-card h4 { font-size: 13.5px; font-weight: 600 }
.river-card .rs { font-size: 12px; color: var(--text-secondary); margin-top: 2px }
.river-card .rs b { color: var(--text-primary); font-weight: 600 }
.storm { display: grid; gap: 6px }
.storm b { font-weight: 600 }

.li .main small.wrap { white-space: normal; overflow: visible }
details.fold { margin-top: 10px; border-top: 1px solid var(--border); padding-top: 8px }
details.fold summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text-secondary); padding: 4px 0; list-style-position: inside }
details.fold[open] summary { color: var(--text-primary) }
