:root {
  color-scheme:dark;
  --bg-primary:#0b1017;
  --bg-card:#141c28;
  --text-primary:#edf2f8;
  --text-muted:#a4b0c2;
  --color-s:#41d58b;
  --color-e:#f3c64b;
  --color-i:#ff737d;
  --color-r:#76a8ff;
  --color-vol:#54d5e7;
  --accent-spooky:#ffab66;
  --line:#2c394b;
  --soft:#101722
}
* {
  box-sizing:border-box
}
body {
  margin:0;
  background:radial-gradient(ellipse at 85% 0,#18202b 0,transparent 48%),var(--bg-primary);
  color:var(--text-primary);
  font:14px/1.55 system-ui,-apple-system,"Segoe UI",sans-serif
}
button,input,select {
  font:inherit
}
button,input,select,summary {
  -webkit-tap-highlight-color:transparent
}
h1,h2,h3,p {
  margin:0
}
button {
  cursor:pointer
}
button:disabled {
  opacity:.4;
  cursor:not-allowed
}
button:not(:disabled):hover {
  filter:brightness(1.12)
}
button:not(:disabled):active {
  transform:translateY(1px)
}
:focus-visible {
  outline:3px solid var(--color-vol);
  outline-offset:3px
}
[hidden] {
  display:none!important
}
.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
}
.eyebrow {
  font-size:10px;
  font-weight:750;
  letter-spacing:.15em;
  color:var(--text-muted)
}
.site-header {
  max-width:1600px;
  margin:auto;
  padding:24px 36px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  border-bottom:1px solid var(--line)
}
.sidebar-toggle {
  display:grid;
  place-items:center;
  flex:0 0 38px;
  width:38px;
  height:38px;
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--bg-card);
  color:var(--text-primary);
  font-size:19px
}
.brand {
  display:flex;
  align-items:center;
  gap:14px
}
.brand-track {
  font-size:11px;
  font-weight:600;
  color:var(--accent-spooky);
  letter-spacing:.06em;
  text-transform:uppercase
}
.brand-mark {
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  position:relative;
  border:1px solid #825738;
  border-radius:12px;
  color:var(--accent-spooky);
  font-size:26px;
  font-weight:850;
  letter-spacing:-4px;
  padding-right:4px;
  background:#251c18
}
.brand-mark span {
  color:var(--text-primary)
}
h1 {
  font-size:17px;
  letter-spacing:-.025em;
  font-weight:650;
  margin-top:3px
}
.brand-divider {
  color:#4b596c;
  margin:0 12px;
  font-weight:400
}
.status-pill {
  display:flex;
  align-items:center;
  gap:9px;
  font-size:12px;
  color:var(--text-muted);
  border:1px solid var(--line);
  padding:7px 12px;
  border-radius:99px;
  white-space:nowrap
}
.status-pill:before {
  content:"";
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--color-s)
}
.status-pill[data-state="loading"]:before {
  background:var(--accent-spooky);
  animation:pulse 1s infinite
}
.status-pill[data-state="error"]:before {
  background:var(--color-i)
}
.intro,.disclaimer,.layout,.site-footer {
  max-width:1600px;
  margin-left:auto;
  margin-right:auto
}
.intro {
  padding:28px 36px 18px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px
}
.intro .eyebrow {
  color:var(--accent-spooky);
  margin-bottom:8px
}
.intro h2 {
  font-size:30px;
  font-weight:650;
  letter-spacing:-.045em;
  line-height:1.2
}
.intro p:last-child {
  color:var(--text-muted);
  margin-top:8px
}
.model-tag {
  color:var(--accent-spooky);
  border:1px solid #665039;
  padding:7px 12px;
  border-radius:8px;
  font-weight:750;
  white-space:nowrap
}
.model-tag span {
  font-weight:450;
  color:var(--text-muted);
  margin-left:8px
}
.disclaimer {
  padding:10px 36px 18px;
  font-size:11px;
  color:var(--text-muted)
}
.disclaimer strong {
  color:var(--accent-spooky);
  font-weight:600
}
.layout {
  display:grid;
  grid-template-columns:310px minmax(0,1fr);
  align-items:start;
  gap:22px;
  padding:24px 36px 36px
}
.layout[data-controls-open="false"] {
  grid-template-columns:minmax(0,1fr)
}
.layout[data-controls-open="false"] .controls-panel {
  display:none
}
.results {
  display:grid;
  gap:20px;
  min-width:0
}
.panel {
  border:1px solid var(--line);
  border-radius:16px;
  padding:22px;
  background:var(--bg-card);
  min-width:0
}
.section-title {
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:center
}
.section-title h2 {
  font-size:18px;
  line-height:1.3;
  letter-spacing:-.025em;
  margin-top:4px;
  font-weight:650
}
.step-tag {
  color:#7d8da3;
  font-size:12px;
  font-variant-numeric:tabular-nums
}
.panel-description {
  font-size:12px;
  color:var(--text-muted);
  margin:9px 0 18px
}
.controls-panel {
  padding:22px 18px;
  position:sticky;
  top:16px
}
.controls-panel h2 {
  font-size:19px
}
.action-row {
  display:flex;
  gap:9px
}
.scenario-note {
  margin:10px 0 12px;
  padding:9px 10px;
  border-left:2px solid var(--accent-spooky);
  border-radius:0 7px 7px 0;
  background:#1d222b;
  color:#c4ceda;
  font-size:11px;
  line-height:1.5
}
.strategy-picker {
  margin-top:16px;
  padding-top:13px;
  border-top:1px solid var(--line)
}
.strategy-picker p {
  margin-bottom:8px;
  color:var(--text-muted);
  font-size:10px
}
.strategy-picker>div {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:6px
}
.strategy-picker>span {
  display:block;
  margin-top:7px;
  color:var(--text-muted);
  font-size:10px;
  line-height:1.45
}
.strategy-button {
  min-height:32px;
  padding:6px 9px;
  border:1px solid var(--line);
  border-radius:7px;
  background:#1b2634;
  color:var(--text-primary);
  text-align:center;
  font-size:11px
}
.field-help {
  position:relative;
  display:inline-grid;
  place-items:center;
  width:16px;
  height:16px;
  margin-left:5px;
  border:1px solid #73859c;
  border-radius:50%;
  color:#d4e1ef;
  font-size:10px;
  cursor:help
}
.field-help:hover::after,.field-help:focus-visible::after {
  content:attr(data-tip);
  position:absolute;
  left:50%;
  bottom:calc(100% + 8px);
  z-index:30;
  width:min(240px,70vw);
  padding:8px 10px;
  border:1px solid #4b6078;
  border-radius:7px;
  background:#111b28;
  color:var(--text-primary);
  font-size:11px;
  font-weight:450;
  line-height:1.45;
  white-space:normal;
  transform:translateX(-50%);
  box-shadow:0 6px 18px #0008
}
.primary-button {
  background:var(--accent-spooky);
  color:#25160d;
  border:1px solid var(--accent-spooky);
  border-radius:9px;
  min-height:43px;
  flex:1;
  font-weight:750;
  font-size:13px;
  padding:8px 10px
}
.dice-button {
  flex:0 0 44px;
  display:grid;
  place-items:center;
  min-height:43px;
  border:1px solid #8d6545;
  border-radius:9px;
  background:#2b221e;
  color:var(--accent-spooky)
}
.dice-button svg {
  width:23px;
  height:23px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.6
}
.dice-button circle {
  fill:currentColor;
  stroke:none
}
.scenario-note {
  font-size:11px;
  line-height:1.6;
  color:var(--text-muted);
  margin:9px 0 20px;
  min-height:34px
}
fieldset {
  border:0;
  border-top:1px solid var(--line);
  display:grid;
  grid-template-columns:minmax(0,1fr) 114px;
  align-items:center;
  gap:14px 10px;
  margin:0 0 24px;
  padding:18px 0 0;
  min-width:0
}
legend {
  padding:0 9px 0 0;
  color:var(--text-primary);
  font-size:12px;
  font-weight:700
}
label {
  font-size:12px;
  color:#c6d0de;
  cursor:pointer;
  line-height:1.4
}
label span {
  display:block;
  font-size:10px;
  color:var(--text-muted);
  margin-top:2px
}
input,select {
  max-width:100%;
  min-height:36px
}
input[type="number"],select {
  width:100%;
  border:1px solid #45546a;
  border-radius:7px;
  background:var(--soft);
  color:var(--text-primary);
  padding:6px 9px;
  font-variant-numeric:tabular-nums;
  font-size:12px
}
input[type="range"] {
  width:100%;
  accent-color:var(--accent-spooky);
  min-width:0;
  cursor:pointer
}
input[type="checkbox"] {
  width:17px;
  height:17px;
  min-height:17px;
  accent-color:var(--accent-spooky);
  justify-self:end;
  cursor:pointer
}
.slider {
  display:flex;
  align-items:center;
  gap:7px;
  min-width:0
}
.slider output {
  font-size:11px;
  min-width:29px;
  color:var(--accent-spooky);
  text-align:right;
  font-variant-numeric:tabular-nums
}
.control-details {
  border-top:1px solid var(--line);
  padding:12px 0
}
.control-details summary {
  font-size:12px;
  font-weight:600;
  color:#d3dbe6;
  cursor:pointer
}
.control-details summary span {
  font-size:10px;
  color:var(--text-muted);
  font-weight:400;
  float:right
}
.control-details fieldset {
  margin:12px 0 3px;
  border:0;
  padding-top:8px
}
.control-footnote {
  font-size:10px;
  color:var(--text-muted);
  border-top:1px solid var(--line);
  margin-top:8px;
  padding-top:16px;
  line-height:1.75
}
#error {
  margin-top:14px;
  font-size:12px;
  border:1px solid #a75360;
  border-radius:8px;
  background:#321d26;
  color:#ffc3c8;
  padding:12px;
  overflow-wrap:anywhere
}
.overview-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px
}
.overview-heading h2 {
  font-size:12px;
  font-weight:650;
  color:#c5d0de
}
.overview-heading p {
  font-size:10px;
  color:var(--text-muted)
}
.result-explainer {
  max-width:720px;
  margin-top:6px!important;
  font-size:12px!important;
  line-height:1.55
}
.kpis {
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:10px
}
.kpi {
  background:var(--bg-card);
  border:1px solid var(--line);
  border-radius:12px;
  padding:17px 15px;
  min-width:0
}
.kpi h3 {
  font-size:10px;
  color:#b8c4d4;
  font-weight:600
}
.kpi p {
  font-size:29px;
  font-weight:650;
  letter-spacing:-.05em;
  line-height:1.4;
  margin:7px 0 2px;
  font-variant-numeric:tabular-nums;
  overflow-wrap:anywhere
}
.kpi>span {
  font-size:9px;
  color:var(--text-muted);
  display:block
}
.kpi #r0-meaning {
  font-size:9px
}
.kpi.featured {
  background:linear-gradient(120deg,#29231d,#1b2028);
  border-color:#79573b
}
.featured p {
  color:var(--accent-spooky)
}
#peak {
  font-size:20px;
  line-height:2.03;
  letter-spacing:-.03em
}
.map-badge,.table-tag {
  background:#162d28;
  color:#83dfb1;
  padding:5px 9px;
  border-radius:6px;
  font-size:10px;
  white-space:nowrap
}
.map-badge[data-playing="true"] {
  color:var(--accent-spooky);
  background:#30251d
}
#map-status,#monte-carlo-status {
  font-size:11px;
  color:var(--text-muted);
  margin-top:9px;
  line-height:1.65
}
.map-surface {
  position:relative;
  min-height:505px;
  background:radial-gradient(ellipse at 50% 50%,#152536 0,#0e1621 66%);
  border:1px solid #27364a;
  border-radius:12px;
  overflow:hidden;
  margin-top:16px;
  padding:50px 12px 76px
}
.map-toolbar {
  position:absolute;
  top:10px;
  right:10px;
  display:flex;
  align-items:center;
  gap:5px;
  background:rgba(14,22,33,.88);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  border:1px solid var(--line);
  border-radius:8px;
  padding:4px 8px;
  z-index:10;
  box-shadow:0 4px 12px rgba(0,0,0,.3)
}
.tool-btn {
  background:#1c2738;
  border:1px solid #364860;
  color:var(--text-primary);
  width:26px;
  height:26px;
  border-radius:6px;
  font-size:13px;
  font-weight:600;
  display:grid;
  place-items:center;
  padding:0;
  transition:background .15s,border-color .15s,transform .1s
}
.tool-btn:hover {
  background:#2b3b52;
  border-color:#4f688a
}
.tool-btn:active {
  transform:scale(.94)
}
.bridge-filter {
  display:flex;
  align-items:center;
  gap:6px;
  margin-left:5px;
  padding-left:8px;
  border-left:1px solid var(--line);
  font-size:11px;
  color:#cbd5e1;
  cursor:pointer;
  user-select:none;
  white-space:nowrap
}
.bridge-filter input[type="checkbox"] {
  accent-color:var(--accent-spooky);
  cursor:pointer
}
#map {
  display:block;
  width:100%;
  height:365px;
  margin-top:0;
  transition:opacity .2s;
  cursor:grab;
  user-select:none;
  touch-action:none
}
#map .territory-shape {
  fill:#1b3142;
  fill-opacity:.62;
  stroke:#8ba5bd;
  stroke-opacity:.48;
  stroke-width:.55;
  stroke-linejoin:round
}
#map .sector-region {
  fill:#54829a;
  fill-opacity:.11;
  stroke:#a6c2d4;
  stroke-opacity:.48;
  stroke-width:.24;
  stroke-dasharray:1.2 .7
}
#map .sector-region:nth-of-type(even) {
  fill:#367b83;
  fill-opacity:.2
}
#map:active {
  cursor:grabbing
}
#workspace[aria-busy="true"] #map {
  opacity:.25
}
.map-empty,.loading-overlay {
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  gap:9px;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:28px
}
.map-empty>span:last-child,.loading-overlay>span:last-child {
  font-size:12px;
  color:var(--text-muted);
  max-width:310px
}
.empty-orbit {
  font-size:55px;
  color:#6887a6;
  line-height:1.2
}
.map-empty strong,.loading-overlay strong {
  font-size:16px;
  font-weight:550
}
.loading-overlay {
  background:#0d1521d9;
  backdrop-filter:blur(3px)
}
.spinner {
  width:29px;
  height:29px;
  border:2px solid #4c3c2d;
  border-top-color:var(--accent-spooky);
  border-radius:50%;
  animation:spin .8s linear infinite;
  margin-bottom:7px
}
.node-s {
  color:var(--color-s)
}
.node-e {
  color:var(--color-e)
}
.node-i {
  color:var(--color-i)
}
.node-r {
  color:var(--color-r)
}
.node-vol {
  color:var(--color-vol)
}
#map .node-s,#map .node-e,#map .node-i,#map .node-r,#map .node-vol {
  fill:currentColor;
  stroke:#0c1723;
  stroke-width:.26;
  stroke-linejoin:round
}
#map .edge {
  stroke-linecap:round;
  transition:opacity .15s
}
#map .edge-internal {
  stroke:#53708e;
  stroke-opacity:.18;
  stroke-width:.18
}
#map .edge-bridge {
  stroke:var(--accent-spooky);
  stroke-opacity:.72;
  stroke-width:.38
}
#map[data-filter-bridges="true"] .edge-internal {
  display:none
}
#map .mark {
  stroke:#0b1724;
  stroke-width:.5;
  fill:none;
  pointer-events:none
}
#map .sector-halo {
  fill:#243b54;
  fill-opacity:.12;
  stroke:#68839d;
  stroke-opacity:.22;
  stroke-width:.12;
  stroke-dasharray:.6 .7
}
#map .sector-label {
  fill:#c0cee0;
  font-size:2px;
  font-weight:600;
  letter-spacing:.04px;
  paint-order:stroke;
  stroke:#0e1723;
  stroke-width:.6;
  stroke-linejoin:round
}
.day-balance {
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:8px;
  min-height:74px;
  border-bottom:1px solid var(--line);
  padding:10px 0;
  font-size:10px
}
.day-balance>span {
  display:flex;
  gap:5px;
  align-items:center;
  min-height:48px;
  padding:7px 12px;
  border:1px solid currentColor;
  border-radius:9px;
  background:#101722;
  font-size:11px
}
.day-balance i {
  font-style:normal;
  font-size:10px
}
.day-balance strong {
  font-size:14px;
  margin-left:5px;
  font-variant-numeric:tabular-nums
}
.map-surface .day-balance {
  position:absolute;
  top:10px;
  left:10px;
  z-index:9;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:5px;
  width:min(250px,calc(100% - 20px));
  min-height:0;
  padding:6px;
  border:1px solid #526275;
  border-radius:10px;
  background:rgba(10,17,26,.94);
  box-shadow:0 4px 12px #0007
}
.map-surface .day-balance>span {
  display:grid;
  grid-template-columns:14px minmax(0,1fr) auto;
  gap:4px;
  min-height:34px;
  padding:5px 7px;
  border:0;
  border-radius:6px;
  color:#111923;
  font-size:10px;
  font-weight:700
}
.map-surface .day-balance .node-s { background:#41d58b }
.map-surface .day-balance .node-e { background:#f3c64b }
.map-surface .day-balance .node-i { background:var(--color-i) }
.map-surface .day-balance .node-r { background:#76a8ff }
.map-surface .day-balance i { font-size:10px }
.map-surface .day-balance strong {
  margin:0;
  font-size:12px
}
.playback {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:9px;
  position:absolute;
  left:12px;
  right:12px;
  bottom:10px;
  z-index:11;
  min-height:54px;
  gap:8px;
  padding:8px 10px;
  border:1px solid #3b4b5e;
  border-radius:10px;
  background:rgba(12,19,29,.94);
  box-shadow:0 5px 16px #0007;
  backdrop-filter:blur(8px)
}
.playback-buttons {
  display:flex;
  gap:5px
}
.playback-buttons .small-button,.playback-buttons .quiet-button {
  width:34px;
  height:34px;
  padding:0;
  border-radius:50%;
  font-size:14px
}
.small-button,.quiet-button,.secondary-button {
  min-height:32px;
  border-radius:7px;
  font-size:11px;
  padding:5px 9px;
  font-weight:600
}
.small-button {
  background:#2a394b;
  color:var(--text-primary);
  border:1px solid #4b5f77
}
.quiet-button {
  background:transparent;
  border:1px solid var(--line);
  color:#c3cede
}
.secondary-button {
  background:#2d251e;
  border:1px solid #795537;
  color:var(--accent-spooky);
  white-space:nowrap
}
.playback #day {
  font-size:12px;
  font-weight:650;
  color:var(--text-primary);
  margin-left:auto;
  font-variant-numeric:tabular-nums
}
.playback #speed {
  width:59px;
  min-height:30px
}
.playback #timeline {
  flex-basis:100%;
  min-height:22px
}
.map-caption {
  margin-top:3px;
  color:var(--text-muted);
  font-size:11px
}
.legend {
  display:flex;
  list-style:none;
  padding:0;
  flex-wrap:wrap;
  gap:8px 17px
}
.map-legend {
  font-size:9px;
  color:var(--text-muted);
  margin:9px 0 0
}
.map-legend li:before {
  content:"";
  display:inline-block;
  width:5px;
  height:5px;
  background:currentColor;
  border-radius:50%;
  margin:0 5px 1px 0
}
#curve {
  display:block;
  width:100%;
  height:auto;
  min-height:180px;
  margin-top:15px
}
#curve text {
  fill:var(--text-muted);
  font-size:11px
}
#curve .grid {
  stroke:#34445a;
  stroke-opacity:.7;
  stroke-width:.7
}
#curve .range {
  fill:#9aaecb;
  fill-opacity:.18
}
#curve .line-proposed {
  stroke:var(--accent-spooky);
  stroke-width:2.8;
  fill:none;
  stroke-linejoin:round
}
#curve .line-random {
  stroke:var(--color-e);
  stroke-width:2;
  stroke-dasharray:2 5;
  fill:none
}
#curve .line-none {
  stroke:var(--color-i);
  stroke-width:2;
  stroke-dasharray:8 5;
  fill:none
}
#curve .day-cursor {
  stroke:#d5e3f8;
  stroke-opacity:.6;
  stroke-width:1;
  stroke-dasharray:3 5
}
.chart-legend {
  justify-content:center;
  font-size:11px;
  margin:0
}
.chart-legend li:before {
  content:"";
  display:inline-block;
  width:20px;
  border-top:2px solid currentColor;
  margin-right:7px;
  vertical-align:middle
}
.key-proposed {
  color:var(--accent-spooky)
}
.key-random {
  color:var(--color-e)
}
.key-random:before {
  border-top-style:dotted!important
}
.key-none {
  color:var(--color-i)
}
.key-none:before {
  border-top-style:dashed!important
}
#range-status {
  font-size:10px;
  color:var(--text-muted);
  margin-top:13px;
  text-align:center
}
.table-tag {
  color:var(--text-muted);
  background:#202c3c
}
.table-scroll {
  overflow:auto;
  margin-top:18px
}
table {
  width:100%;
  border-collapse:collapse;
  font-size:12px
}
th {
  text-align:right;
  color:var(--text-muted);
  font-size:10px;
  font-weight:500;
  padding:0 9px 12px;
  white-space:nowrap
}
th:first-child,td:first-child {
  text-align:left;
  padding-left:0
}
td {
  border-top:1px solid var(--line);
  padding:13px 9px;
  text-align:right;
  font-variant-numeric:tabular-nums
}
tbody tr:first-child td {
  color:var(--accent-spooky)
}
.report-panel summary,
.report-panel-compact summary {
  cursor:pointer;
  font-weight:600;
  font-size:12px;
  color:var(--text-muted);
  user-select:none;
}
.report-panel summary:hover,
.report-panel-compact summary:hover {
  color:var(--text-primary);
}
.report-panel summary span,
.report-panel-compact summary span {
  font-size:10px;
  color:#64748b;
  font-weight:400;
  margin-left:10px;
}
.report-panel-compact {
  grid-column:1 / -1;
  background:rgba(20,28,40,.35);
  border:1px dashed var(--line);
  border-radius:10px;
  padding:12px 16px;
  margin-top:4px;
  transition:background .15s,border-color .15s;
}
.report-panel-compact:hover {
  border-color:#3f526c;
}
.report-panel-compact[open] {
  background:var(--bg-card);
  border-style:solid;
}
#report-body {
  font-size:12px;
  color:#bdc9d9;
  line-height:1.95;
  margin-top:15px;
  max-width:90ch
}
.site-footer {
  max-width:1600px;
  margin:0 auto;
  padding:20px 36px 30px;
  color:#64748b;
  font-size:10px;
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:24px;
  border-top:1px solid var(--line);
}
.footer-left strong {
  color:var(--accent-spooky);
  letter-spacing:.04em;
}
.disclaimer-text {
  font-size:10px;
  color:#64748b;
  margin-top:4px;
  line-height:1.5;
  max-width:700px;
}
.status-pill[data-state="stale"]:before {
  background:var(--color-e)
}
@keyframes spin {
  to {
    transform:rotate(360deg)
  }
}
@keyframes pulse {
  50% {
    opacity:.35
  }
}
@media(min-width:1024px) {
  .results {
    grid-template-columns:minmax(0,1.15fr) minmax(0,0.85fr);
    align-items:stretch;
  }
  .overview,.map-panel,.report-panel,.report-panel-compact {
    grid-column:1 / -1;
  }
  .chart-panel {
    grid-column:1 / 2;
  }
  .comparison-panel {
    grid-column:2 / 3;
    display:flex;
    flex-direction:column;
  }
  .comparison-panel .table-scroll {
    flex:1;
  }
}
@media(min-width:1600px) {
  .layout {
    grid-template-columns:330px minmax(0,1fr)
  }
  #map {
    height:450px
  }
  .kpi p {
    font-size:33px
  }
}
@media(max-width:1150px) {
  .layout {
    grid-template-columns:285px minmax(0,1fr);
    gap:16px;
    padding-left:22px;
    padding-right:22px
  }
  .site-header,.intro {
    padding-left:22px;
    padding-right:22px
  }
  .disclaimer {
    padding-left:22px;
    padding-right:22px
  }
  .kpis {
    gap:7px
  }
  .kpi {
    padding:14px 10px
  }
  .kpi p {
    font-size:25px
  }
  .kpi h3 {
    font-size:9px
  }
  .panel {
    padding:18px
  }
  .controls-panel {
    padding:20px 16px
  }
  #peak {
    font-size:17px
  }
  .chart-panel .section-title {
    align-items:flex-start;
    flex-direction:column;
    gap:12px
  }
}
@media(max-width:900px) {
  .kpis {
    grid-template-columns:repeat(3,minmax(0,1fr))
  }
  .kpi.featured {
    grid-column:span 2
  }
  .kpi p {
    font-size:28px
  }
  #peak {
    font-size:20px
  }
  .overview-heading {
    align-items:flex-start;
    flex-direction:column;
    gap:2px
  }
  .day-balance {
    justify-content:flex-start;
    gap:9px 17px
  }
  .brand-divider {
    margin:0 7px
  }
  .intro h2 {
    font-size:27px
  }
}
@media(max-width:780px) {
  .layout {
    grid-template-columns:minmax(0,1fr);
    padding:0 16px 24px;
    gap:18px
  }
  .controls-panel {
    position:static
  }
  .site-header {
    padding:18px 16px;
    align-items:flex-start
  }
  .brand-mark {
    width:35px;
    height:35px;
    font-size:23px;
    flex-shrink:0
  }
  h1 {
    font-size:13px
  }
  .brand .eyebrow {
    font-size:8px
  }
  .brand-divider {
    margin:0 5px
  }
  .status-pill {
    font-size:10px;
    padding:5px 8px
  }
  .intro {
    padding:23px 16px 13px
  }
  .intro h2 {
    font-size:27px
  }
  .intro p:last-child {
    font-size:12px
  }
  .model-tag {
    display:none
  }
  .disclaimer {
    padding:0 16px 20px;
    font-size:10px
  }
  .controls-panel .section-title h2 {
    font-size:19px
  }
  .controls-panel fieldset {
    grid-template-columns:minmax(0,1fr) minmax(100px,40%);
    gap:12px
  }
  .scenario-note {
    min-height:0
  }
  .control-footnote {
    margin-top:0
  }
  .panel-description {
    margin-bottom:14px
  }
  .control-details {
    padding:11px 0
  }
  .results {
    gap:16px
  }
  .kpis {
    grid-template-columns:repeat(3,minmax(0,1fr))
  }
  .kpi.featured {
    grid-column:span 2
  }
  .kpi {
    padding:15px
  }
  .kpi h3 {
    font-size:10px
  }
  .kpi p {
    font-size:30px
  }
  .overview-heading {
    flex-direction:row;
    align-items:center
  }
  .overview-heading p {
    font-size:9px
  }
  #map {
    height:350px
  }
  .map-surface {
    min-height:525px;
    padding-bottom:95px
  }
  .chart-panel .section-title {
    flex-direction:row;
    align-items:center
  }
  .site-footer {
    padding:0 16px 22px;
    flex-direction:column;
    gap:5px
  }
}
@media(max-width:440px) {
  .status-pill {
    max-width:116px;
    white-space:normal;
    line-height:1.3
  }
  .brand {
    gap:8px
  }
  h1 .brand-divider {
    display:block;
    font-size:0;
    height:3px
  }
  .intro h2 {
    font-size:25px
  }
  .panel {
    padding:17px 14px;
    border-radius:12px
  }
  .section-title h2 {
    font-size:17px
  }
  .kpis {
    gap:7px
  }
  .kpi {
    padding:13px 11px
  }
  .kpi p {
    font-size:27px
  }
  .kpi h3 {
    font-size:9px
  }
  .kpi>span {
    font-size:9px
  }
  #peak {
    font-size:17px
  }
  .overview-heading {
    align-items:flex-start;
    flex-direction:column
  }
  .chart-panel .section-title {
    flex-direction:column;
    align-items:flex-start
  }
  .playback {
    gap:7px
  }
  .playback-buttons {
    gap:4px
  }
  .small-button,.quiet-button {
    padding:5px 7px;
    font-size:10px
  }
  .playback #speed {
    width:49px
  }
  .day-balance>span {
    font-size:9px
  }
  .map-surface .day-balance {
    top:56px;
    left:8px;
    width:min(230px,calc(100% - 16px))
  }
  .map-surface .day-balance>span {
    min-height:30px;
    padding:4px 5px;
    font-size:9px
  }
  .map-surface .day-balance strong {
    font-size:11px
  }
  .map-legend {
    gap:5px 12px
  }
  .site-footer {
    font-size:8px
  }
  .report-panel summary span {
    display:block;
    margin:4px 0 0 17px
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    scroll-behavior:auto!important;
    transition-duration:0s!important;
    animation-duration:0s!important
  }
  .spinner {
    border-top-color:var(--accent-spooky)
  }
}
.brand-mark {
  display:flex;
  align-items:center;
  justify-content:center;
  letter-spacing:-1px
}
.brand-mark span {
  position:absolute;
  right:6px;
  bottom:1px;
  font-size:18px
}
@media(max-width:780px) {
  #map .sector-label {
    font-size:2.9px
  }
}

@media(max-width:1000px) {
  .map-surface .day-balance {
    top:56px
  }
}

.parameter-toggle { display:none; }
@media (max-width:780px) {
  .parameter-toggle { display:block; width:100%; text-align:left; padding:10px 0; margin-top:10px; background:none; border:0; border-top:1px solid var(--line); color:var(--accent-spooky); font-size:12px; }
  .parameter-fields:not([data-open="true"]) { display:none; }
  .parameter-fields { padding-top:18px; }
  .controls-panel .control-footnote { display:none; }
  .controls-panel .scenario-note { margin-bottom:0; }
}
