:root {
  --bg: #060606;
  --panel: rgba(8, 8, 8, 0.94);
  --panel-solid: #0b0b0b;
  --line: #2a2a2a;
  --line-soft: #181818;
  --text: #f5f5f5;
  --muted: #9a9a9a;
  --muted-2: #686868;
  --white: #ffffff;
  --fireball: #ff3b30;
  --blast: #ff9500;
  --burn3: #ffd60a;
  --burn2: #64d2ff;
  --flash: #bf5af2;
  --font: "JetBrainsMono Nerd Font", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); }
body { overflow: hidden; }
button, input, select { font: inherit; }
button { color: inherit; }
.hidden { display: none !important; }

.app-shell { min-height: 100vh; background: var(--bg); }
main { min-height: 100vh; }
.view { display: none; width: 100%; height: 100vh; }
.view.active { display: block; }

.floating-bar {
  position: fixed;
  z-index: 2000;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 5px;
  border: 1px solid var(--line);
  background: rgba(6, 6, 6, 0.92);
  backdrop-filter: blur(14px);
  border-radius: 11px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.nav-tabs { display: flex; align-items: center; gap: 2px; }
.nav-btn, .quiet-btn, .primary-btn, .icon-btn {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav-btn { padding: 9px 11px; border-radius: 7px; font-size: 10px; color: var(--muted); }
.nav-btn:hover, .nav-btn.active { color: var(--white); background: #151515; }
.bar-divider { width: 1px; height: 20px; background: var(--line); }
.quiet-btn { padding: 8px 10px; border-radius: 7px; font-size: 10px; color: var(--muted); }
.quiet-btn:hover { color: var(--white); background: #151515; }
.quiet-btn.bordered { border: 1px solid var(--line); }
.primary-btn { padding: 10px 12px; border-radius: 8px; background: var(--white); color: #050505; font-size: 10px; font-weight: 700; }
.primary-btn:hover { background: #dedede; }
.icon-btn { width: 30px; height: 30px; color: var(--muted); border-radius: 7px; font-size: 18px; }
.icon-btn:hover { background: #181818; color: var(--white); }

.mode-switch { display: flex; align-items: center; gap: 7px; padding: 0 4px; font-size: 9px; color: var(--muted); cursor: pointer; user-select: none; }
.mode-switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-track { position: relative; width: 30px; height: 16px; border: 1px solid #444; border-radius: 999px; background: #101010; }
.switch-knob { position: absolute; width: 10px; height: 10px; top: 2px; left: 2px; border-radius: 50%; background: #777; transition: 120ms ease; }
.mode-switch input:checked + .switch-track { border-color: #8a8a8a; }
.mode-switch input:checked + .switch-track .switch-knob { transform: translateX(14px); background: var(--white); }

.simulator-view { position: relative; overflow: hidden; background: #050505; }
.map { position: absolute; inset: 0; background: #050505; }
.leaflet-container { background: #050505; font-family: var(--font); }
.leaflet-tile-pane { filter: grayscale(1) invert(.95) brightness(.52) contrast(1.18); }
.leaflet-control-zoom { border: 1px solid var(--line) !important; margin-top: 72px !important; }
.leaflet-bar a { background: #0c0c0c !important; color: #d8d8d8 !important; border-bottom-color: var(--line) !important; }
.leaflet-bar a:hover { background: #181818 !important; }
.leaflet-control-attribution { background: rgba(6,6,6,.78) !important; color: #777 !important; font-size: 8px !important; }
.leaflet-control-attribution a { color: #aaa !important; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: #090909; color: var(--text); border: 1px solid var(--line); }
.leaflet-popup-content { margin: 10px 12px; font-family: var(--font); font-size: 9px; line-height: 1.5; }
.leaflet-tooltip { background: #080808; color: #eee; border: 1px solid var(--line); box-shadow: none; font-family: var(--font); font-size: 9px; }

.floating-card {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(14px);
  border-radius: 11px;
  box-shadow: 0 16px 40px rgba(0,0,0,.34);
}
.control-card { position: absolute; z-index: 900; top: 74px; left: 14px; width: 310px; padding: 12px; }
.control-row { display: flex; gap: 8px; }
.control-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 8px; }
.field { display: grid; gap: 6px; }
.field.grow { width: 100%; }
.field > span { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .1em; }
select, input[type="search"] { width: 100%; min-height: 36px; border: 1px solid var(--line); background: #080808; color: var(--text); border-radius: 7px; outline: 0; padding: 0 9px; font-size: 10px; }
select:focus, input[type="search"]:focus { border-color: #5a5a5a; }
.pin-status { margin-top: 9px; color: var(--muted-2); font-size: 8.5px; line-height: 1.5; }

.result-panel { position: absolute; z-index: 920; top: 74px; right: 14px; bottom: 14px; width: 360px; padding: 14px; overflow-y: auto; }
.result-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.eyebrow { font-size: 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 5px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 15px; letter-spacing: -.03em; }
.summary-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; margin-top: 13px; }
body.advanced .summary-strip { grid-template-columns: repeat(3, 1fr); }
.summary-strip > div { min-width: 0; padding: 9px; background: #0d0d0d; border: 1px solid var(--line-soft); border-radius: 7px; }
.summary-strip span { display: block; font-size: 7.5px; color: var(--muted-2); text-transform: uppercase; letter-spacing: .08em; }
.summary-strip strong { display: block; margin-top: 5px; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.zone-list { margin-top: 12px; display: grid; gap: 6px; }
.zone-item { display: grid; grid-template-columns: 9px 1fr auto; gap: 9px; align-items: center; min-height: 38px; border-bottom: 1px solid var(--line-soft); }
.zone-item:last-child { border-bottom: 0; }
.zone-swatch, .indicator { display: block; border-radius: 50%; }
.zone-swatch { width: 8px; height: 8px; }
.zone-main strong { display: block; font-size: 9px; }
.zone-main span { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; line-height: 1.4; }
.zone-distance { font-size: 9px; color: var(--text); white-space: nowrap; }

.notice-box, .historical-box { margin-top: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #090909; }
.notice-box strong, .historical-box strong { display: block; font-size: 8px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.notice-box p, .historical-box p { margin: 7px 0 0; font-size: 8px; line-height: 1.55; color: #b5b5b5; }
.historical-box { border-left: 2px solid var(--burn3); }

.advanced-only { display: none !important; }
body.advanced .advanced-only { display: block !important; }
body.advanced .key-row.advanced-only { display: flex !important; }
.advanced-stack { margin-top: 13px; }
.detail-block { padding: 12px 0; border-top: 1px solid var(--line); }
.section-title { margin-bottom: 8px; font-size: 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .11em; }
.detail-block p, .record-copy { margin-bottom: 0; color: #a7a7a7; font-size: 8px; line-height: 1.6; }
.two-col-info { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.zone-table { border: 1px solid var(--line-soft); border-radius: 7px; overflow: hidden; }
.zone-table-row { display: grid; grid-template-columns: 10px 1fr auto; gap: 8px; align-items: center; padding: 8px; border-bottom: 1px solid var(--line-soft); font-size: 8px; }
.zone-table-row:last-child { border-bottom: 0; }
.zone-table-row .sub { color: var(--muted); margin-top: 2px; }
.radius-graph { display: grid; gap: 7px; }
.graph-row { display: grid; grid-template-columns: 82px 1fr 54px; gap: 7px; align-items: center; }
.graph-name, .graph-value { font-size: 7.5px; color: var(--muted); }
.graph-value { text-align: right; color: #d8d8d8; }
.graph-track { height: 7px; background: #141414; border-radius: 999px; overflow: hidden; }
.graph-fill { height: 100%; border-radius: 999px; }

.map-key { position: absolute; z-index: 900; left: 14px; bottom: 14px; padding: 9px 10px; }
.key-row { display: flex; align-items: center; gap: 7px; color: #a0a0a0; font-size: 7.5px; line-height: 1.85; }
.indicator { width: 7px; height: 7px; }
.fireball { background: var(--fireball); }
.blast { background: var(--blast); }
.burn3 { background: var(--burn3); }
.burn2 { background: var(--burn2); }
.flash { background: var(--flash); }

.map-fallback { position: absolute; inset: 0; z-index: 850; display: grid; place-items: center; background: #050505; }
.map-fallback > div { width: min(360px, calc(100vw - 40px)); padding: 20px; text-align: center; border: 1px solid var(--line); border-radius: 10px; background: #090909; }
.map-fallback strong { display: block; font-size: 10px; }
.map-fallback span { display: block; margin-top: 8px; color: var(--muted); font-size: 8px; line-height: 1.5; }

.page-view { overflow: auto; background: #070707; }
.page-shell { width: min(1320px, calc(100% - 36px)); margin: 0 auto; padding: 90px 0 36px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.count { color: var(--muted); font-size: 9px; }
.archive-toolbar { display: grid; grid-template-columns: minmax(220px, 1fr) 210px 210px; gap: 8px; margin-top: 12px; }
.archive-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, .7fr); gap: 12px; margin-top: 12px; }
.table-panel, .archive-detail, .data-card, .source-intro, .source-card { border: 1px solid var(--line); background: #0a0a0a; border-radius: 9px; }
.table-panel { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th { position: sticky; top: 0; z-index: 2; background: #0c0c0c; text-align: left; color: var(--muted); font-size: 7.5px; text-transform: uppercase; letter-spacing: .08em; font-weight: 500; padding: 9px 10px; border-bottom: 1px solid var(--line); }
td { padding: 10px; font-size: 8.5px; border-bottom: 1px solid var(--line-soft); color: #c6c6c6; }
tbody tr { cursor: pointer; }
tbody tr:hover, tbody tr.active { background: #101010; }
tbody tr.active td:first-child { box-shadow: inset 2px 0 0 #fff; }
.archive-detail { min-height: 480px; padding: 14px; }
.empty-copy { min-height: 450px; display: grid; place-items: center; color: var(--muted-2); font-size: 9px; }
.detail-title { font-size: 15px; font-weight: 700; }
.detail-meta { margin-top: 5px; color: var(--muted); font-size: 8px; }
.detail-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 12px; }
.detail-stats div { padding: 9px; border: 1px solid var(--line-soft); border-radius: 7px; }
.detail-stats span { display: block; color: var(--muted-2); font-size: 7px; text-transform: uppercase; }
.detail-stats strong { display: block; margin-top: 4px; font-size: 9px; }
.detail-copy { margin-top: 12px; color: #a8a8a8; font-size: 8px; line-height: 1.65; }
.detail-copy a, .source-card a { color: #efefef; }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-top: 12px; }
.metric-grid article { min-height: 100px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: #0a0a0a; }
.metric-grid span { display: block; color: var(--muted); font-size: 7.5px; text-transform: uppercase; letter-spacing: .08em; }
.metric-grid strong { display: block; margin-top: 14px; font-size: 19px; }
.metric-grid small { display: block; margin-top: 5px; color: var(--muted-2); font-size: 7.5px; }
.analytics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.data-card { padding: 14px; }
.data-card.full { grid-column: 1 / -1; }
.bar-chart { display: grid; gap: 8px; }
.bar-item { display: grid; grid-template-columns: 150px 1fr 58px; gap: 8px; align-items: center; }
.bar-label, .bar-number { font-size: 8px; color: var(--muted); }
.bar-number { text-align: right; color: #d5d5d5; }
.bar-track { height: 9px; background: #151515; border-radius: 2px; overflow: hidden; }
.bar-fill { height: 100%; background: #ececec; }
.timeline { display: grid; gap: 0; }
.timeline-row { display: grid; grid-template-columns: 70px 170px 1fr; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.timeline-row:first-child { border-top: 0; }
.timeline-row .year { font-size: 10px; font-weight: 700; }
.timeline-row .title { font-size: 8.5px; }
.timeline-row .text { font-size: 8px; color: var(--muted); line-height: 1.5; }

.source-intro { margin-top: 12px; padding: 14px; }
.source-intro p { margin: 0 0 8px; max-width: 900px; color: #aaa; font-size: 8.5px; line-height: 1.65; }
.source-intro p:last-child { margin-bottom: 0; }
.source-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.source-card { padding: 12px; }
.source-card strong { display: block; font-size: 9px; }
.source-card span { display: block; margin-top: 4px; color: var(--muted); font-size: 7.5px; }
.source-card p { margin: 8px 0; color: #8e8e8e; font-size: 8px; line-height: 1.55; }
.source-card a { font-size: 8px; }

@media (max-width: 980px) {
  .floating-bar { width: calc(100% - 20px); justify-content: space-between; }
  .nav-btn { padding: 9px 8px; }
  .result-panel { width: min(360px, calc(100vw - 28px)); }
  .archive-layout { grid-template-columns: 1fr; }
  .archive-detail { min-height: 280px; }
  .empty-copy { min-height: 250px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .source-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .floating-bar { top: 8px; }
  .nav-btn { font-size: 8px; padding: 8px 6px; }
  .mode-switch > span:last-child { display: none; }
  .bar-divider { display: none; }
  .control-card { top: 62px; left: 8px; width: calc(100vw - 16px); }
  .result-panel { top: auto; right: 8px; left: 8px; bottom: 8px; width: auto; max-height: 52vh; }
  .map-key { left: 8px; bottom: 8px; }
  .map-key:has(+ .nothing) { display: none; }
  .archive-toolbar { grid-template-columns: 1fr; }
  .archive-layout { grid-template-columns: 1fr; }
  .metric-grid, .analytics-grid, .source-grid { grid-template-columns: 1fr; }
  .data-card.full { grid-column: auto; }
  .bar-item { grid-template-columns: 110px 1fr 48px; }
  .timeline-row { grid-template-columns: 50px 110px 1fr; gap: 8px; }
  .two-col-info { grid-template-columns: 1fr; }
}

/* Offline map */
.world-map { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background: #050505; cursor: crosshair; touch-action: none; user-select: none; }
.map-ocean { fill: #050505; }
.map-grid-line { stroke: #111; stroke-width: .65; vector-effect: non-scaling-stroke; }
.map-equator { stroke: #1c1c1c; stroke-width: 1; vector-effect: non-scaling-stroke; }
.map-land { fill: #131313; stroke: #444; stroke-width: .8; vector-effect: non-scaling-stroke; }
.map-label { fill: #4e4e4e; font-size: 9px; letter-spacing: 1.5px; pointer-events: none; }
.effect-ring { fill: var(--zone-color); fill-opacity: .08; stroke: var(--zone-color); stroke-opacity: .92; stroke-width: 1.5; vector-effect: non-scaling-stroke; pointer-events: none; }
.map-pin-halo { fill: none; stroke: #fff; stroke-opacity: .35; stroke-width: 2; vector-effect: non-scaling-stroke; pointer-events: none; }
.map-pin { fill: #fff; stroke: #050505; stroke-width: 1.2; vector-effect: non-scaling-stroke; pointer-events: none; }
.offline-badge, .coord-readout { position: absolute; z-index: 40; bottom: 14px; color: #666; font-size: 7.5px; line-height: 1; pointer-events: none; }
.offline-badge { right: 14px; }
.coord-readout { right: 14px; bottom: 30px; color: #8a8a8a; }
.map-controls { position: absolute; z-index: 45; right: 14px; top: 74px; display: grid; gap: 5px; }
.map-control-btn { appearance: none; border: 1px solid var(--line); background: rgba(7,7,7,.94); color: #ddd; min-width: 34px; height: 34px; border-radius: 7px; font: inherit; font-size: 13px; cursor: pointer; }
.map-control-btn:hover { background: #151515; }
.map-reset-btn { min-width: 52px; font-size: 8px; }
.second-row { margin-top: 8px; }

/* Estimates */
.estimate-block { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.estimate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.estimate-grid > div, .model-grid > div { min-width: 0; padding: 9px; background: #0d0d0d; border: 1px solid var(--line-soft); border-radius: 7px; }
.estimate-grid > div.wide { grid-column: 1 / -1; }
.estimate-grid span, .model-grid span { display: block; color: var(--muted-2); font-size: 7px; text-transform: uppercase; letter-spacing: .07em; }
.estimate-grid strong, .model-grid strong { display: block; margin-top: 5px; font-size: 10px; line-height: 1.35; }
.estimate-grid small, .model-grid small, .zone-distance small, .zone-table-row small, .graph-value small { color: var(--muted-2); font-size: 6.5px; font-weight: 400; }
.model-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }

@media (max-width: 680px) {
  .map-controls { top: 116px; right: 8px; }
  .offline-badge, .coord-readout { right: 8px; }
  .coord-readout { bottom: 28px; }
}

/* Readability and advanced simulation controls */
:root {
  --fallout: #00d1ff;
}

body { font-size: 14px; }
.floating-bar { min-height: 54px; padding: 7px; gap: 10px; border-radius: 13px; }
.nav-btn { padding: 11px 14px; font-size: 13px; }
.quiet-btn { padding: 10px 12px; font-size: 13px; }
.primary-btn { min-height: 44px; padding: 11px 14px; font-size: 13px; }
.mode-switch { gap: 9px; font-size: 12px; }
.switch-track { width: 36px; height: 20px; }
.switch-knob { width: 12px; height: 12px; top: 3px; left: 3px; }
.mode-switch input:checked + .switch-track .switch-knob { transform: translateX(16px); }

.control-card { top: 82px; left: 18px; width: 390px; padding: 16px; }
.control-row { gap: 10px; }
.control-grid { gap: 9px; margin-top: 11px; }
.field { gap: 7px; }
.field > span { font-size: 11px; letter-spacing: .08em; }
select, input[type="search"] { min-height: 43px; padding: 0 11px; font-size: 13px; }
.pin-status { margin-top: 11px; font-size: 11.5px; line-height: 1.55; }
.second-row { margin-top: 10px; }

.advanced-controls { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); gap: 12px; }
body.advanced .advanced-controls { display: grid !important; }
.wind-slider { width: 100%; accent-color: #fff; cursor: ew-resize; }
.wind-scale { display: flex; justify-content: space-between; color: var(--muted-2); font-size: 9px; margin-top: -2px; }

.result-panel { top: 82px; right: 18px; bottom: 18px; width: 440px; padding: 18px; }
.eyebrow { font-size: 10px; margin-bottom: 6px; }
h1 { font-size: 21px; line-height: 1.15; }
.icon-btn { width: 36px; height: 36px; font-size: 21px; }
.summary-strip { gap: 9px; margin-top: 16px; }
.summary-strip > div { padding: 11px; }
.summary-strip span { font-size: 9px; }
.summary-strip strong { margin-top: 6px; font-size: 12.5px; }
.zone-list { margin-top: 15px; gap: 7px; }
.zone-item { grid-template-columns: 11px 1fr auto; gap: 11px; min-height: 54px; }
.zone-swatch { width: 10px; height: 10px; }
.zone-main strong { font-size: 12.5px; }
.zone-main span { margin-top: 4px; font-size: 11px; line-height: 1.45; }
.zone-distance { font-size: 12px; }

.estimate-block { margin-top: 15px; padding-top: 15px; }
.section-title { margin-bottom: 10px; font-size: 10.5px; }
.estimate-grid { gap: 9px; }
.estimate-grid > div, .model-grid > div { padding: 11px; }
.estimate-grid span, .model-grid span { font-size: 9px; }
.estimate-grid strong, .model-grid strong { margin-top: 6px; font-size: 13px; }
.estimate-grid small, .model-grid small, .zone-distance small, .zone-table-row small, .graph-value small { font-size: 9px; }
.notice-box, .historical-box { margin-top: 15px; padding: 12px; }
.notice-box strong, .historical-box strong { font-size: 10px; }
.notice-box p, .historical-box p { margin-top: 8px; font-size: 11px; line-height: 1.55; }
.advanced-stack { margin-top: 16px; }
.detail-block { padding: 15px 0; }
.detail-block p, .record-copy { font-size: 11.5px; line-height: 1.65; }
.zone-table-row { grid-template-columns: 12px 1fr auto; gap: 10px; padding: 11px; font-size: 11px; }
.graph-row { grid-template-columns: 112px 1fr 78px; gap: 9px; }
.graph-name, .graph-value { font-size: 10.5px; }
.graph-track { height: 9px; }

.fallout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.fallout-grid > div { padding: 10px; border: 1px solid var(--line-soft); border-radius: 7px; background: #0d0d0d; }
.fallout-grid span { display: block; color: var(--muted-2); font-size: 9px; text-transform: uppercase; letter-spacing: .07em; }
.fallout-grid strong { display: block; margin-top: 5px; font-size: 12px; }
.fallout-summary p { margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }

.map-key { left: 18px; bottom: 18px; padding: 11px 13px; }
.key-row { gap: 9px; font-size: 10.5px; line-height: 1.8; }
.indicator { width: 9px; height: 9px; }
.fallout { background: var(--fallout); }
.coord-readout { right: 18px; bottom: 35px; font-size: 10px; }
.map-controls { right: 18px; top: 82px; gap: 7px; }
.map-control-btn { min-width: 42px; height: 42px; font-size: 17px; }
.map-reset-btn { min-width: 62px; font-size: 10px; }
.leaflet-control-attribution { font-size: 10px !important; }
.leaflet-tooltip { max-width: 320px; padding: 9px 11px; font-size: 11px; line-height: 1.5; }

.zone-hover-card {
  position: absolute;
  z-index: 1100;
  width: min(390px, calc(100vw - 24px));
  padding: 14px;
  pointer-events: none;
  background: rgba(7,7,7,.97);
}
.hover-head { display: flex; align-items: center; gap: 9px; }
.hover-head strong { font-size: 13px; }
.hover-distance { margin-top: 6px; padding-bottom: 9px; color: var(--muted); font-size: 11px; border-bottom: 1px solid var(--line-soft); }
.hover-stat { padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.hover-stat:last-child { padding-bottom: 0; border-bottom: 0; }
.hover-stat > span { display: block; color: var(--muted-2); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.hover-stat p { margin: 4px 0 0; color: #d2d2d2; font-size: 11px; line-height: 1.45; }

/* Archive and data pages also use readable type sizes */
.page-shell { padding-top: 96px; }
.count { font-size: 12px; }
th { font-size: 10px; padding: 11px 12px; }
td { padding: 12px; font-size: 12px; }
.archive-detail { padding: 18px; }
.empty-copy { font-size: 12px; }
.detail-title { font-size: 20px; }
.detail-meta { margin-top: 6px; font-size: 11px; }
.detail-stats div { padding: 11px; }
.detail-stats span { font-size: 9px; }
.detail-stats strong { margin-top: 5px; font-size: 12px; }
.detail-copy { margin-top: 15px; font-size: 11.5px; line-height: 1.7; }
.metric-grid span { font-size: 10px; }
.metric-grid strong { font-size: 23px; }
.metric-grid small { font-size: 10px; }
.bar-label, .bar-number { font-size: 11px; }
.timeline-row .year { font-size: 13px; }
.timeline-row .title { font-size: 11.5px; }
.timeline-row .text { font-size: 11px; }
.source-intro p { font-size: 11.5px; }
.source-card strong { font-size: 12px; }
.source-card span { font-size: 10px; }
.source-card p, .source-card a { font-size: 11px; }

@media (max-width: 980px) {
  .control-card { width: min(390px, calc(100vw - 36px)); }
  .result-panel { width: min(440px, calc(100vw - 36px)); }
}

@media (max-width: 680px) {
  .floating-bar { width: calc(100% - 16px); top: 8px; gap: 4px; overflow-x: auto; }
  .nav-btn { font-size: 10.5px; padding: 9px 8px; }
  .quiet-btn { font-size: 10.5px; }
  .control-card { top: 72px; left: 8px; width: calc(100vw - 16px); padding: 13px; }
  .result-panel { top: auto; right: 8px; left: 8px; bottom: 8px; width: auto; max-height: 57vh; padding: 14px; }
  .map-controls { top: 178px; right: 8px; }
  .map-key { left: 8px; bottom: 8px; max-width: calc(100vw - 16px); }
  .zone-hover-card { display: none !important; }
  .fallout-grid { grid-template-columns: 1fr 1fr; }
}

/* Simulation sequence */
.simulation-stage {
  position: absolute;
  z-index: 1080;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: min(520px, calc(100vw - 40px));
  padding: 13px 15px;
  background: rgba(7,7,7,.96);
}
.stage-top { display: flex; align-items: center; gap: 11px; }
.stage-top > div { min-width: 0; }
.stage-top strong { display: block; font-size: 13px; text-transform: lowercase; }
.stage-top span:not(.stage-pulse) { display: block; margin-top: 3px; color: var(--muted); font-size: 10.5px; line-height: 1.35; }
.stage-pulse { width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.3); animation: stagePulse 900ms ease-out infinite; }
.stage-track { height: 3px; margin-top: 11px; background: #1a1a1a; overflow: hidden; border-radius: 999px; }
.stage-track span { display: block; width: 0; height: 100%; background: #fff; transition: width 70ms linear; }
@keyframes stagePulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.32); } 100% { box-shadow: 0 0 0 9px rgba(255,255,255,0); } }

.sequence-block { margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--line); }
.sequence-list { display: grid; gap: 0; border: 1px solid var(--line-soft); border-radius: 9px; overflow: hidden; }
.sequence-row { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 11px; border-bottom: 1px solid var(--line-soft); background: rgba(12,12,12,.7); }
.sequence-row:last-child { border-bottom: 0; }
.sequence-row > span { color: var(--muted-2); font-size: 10px; padding-top: 2px; }
.sequence-row strong { display: block; font-size: 12px; text-transform: lowercase; }
.sequence-row p { margin: 4px 0 0; color: #b8b8b8; font-size: 10.8px; line-height: 1.5; }
.sequence-row small { color: var(--muted); font-size: 9px; }

#runBtn:disabled { opacity: .6; cursor: default; }

@media (max-width: 680px) {
  .simulation-stage { bottom: 12px; width: calc(100vw - 16px); padding: 11px 12px; }
  .stage-top strong { font-size: 12px; }
  .stage-top span:not(.stage-pulse) { font-size: 9.5px; }
  .sequence-row { grid-template-columns: 28px 1fr; padding: 10px; }
  .sequence-row p { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .stage-pulse { animation: none; }
  .stage-track span { transition: none; }
}
