@font-face {
  font-family: Geist;
  src: url('./assets/geist.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: IBM Plex Mono;
  src: url('./assets/ibm-plex-mono.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --page: #100e1a;
  --panel: #191627;
  --border: #332b48;
  --ink: #f1edf9;
  --dim: #b8afc9;
  --subtle: #a39ab7;
  --violet: #bdabff;
  --teal: #73e8cc;
  --rose: #ffa6b7;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  color: var(--ink);
  background: var(--page);
  font-family: Geist, system-ui, sans-serif;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 300px; background: radial-gradient(ellipse 66% 520px at 74% 1%, #201837 0%, transparent 74%); }
h1, h2, h3, p, ol, ul { margin: 0; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--violet); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 24px; }
#main:focus { outline: none; }
.wrap { width: min(1320px, calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 9; top: 10px; left: 10px; padding: 10px 13px; border-radius: 6px; background: var(--teal); color: var(--page); transform: translateY(-140%); }
.skip-link:focus { transform: none; }

.topbar { border-bottom: 1px solid #302840; background: #100d198c; }
.file-preview { display: none; }
[data-file-preview] .file-preview { display: block; position: sticky; top: 0; z-index: 10; padding: 12px 16px; border-bottom: 1px solid #655080; background: #312346; color: #f4e9ff; text-align: center; font-size: 14px; }
.file-preview a { font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.header-inner { min-height: 67px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; }
.wordmark { justify-self: start; display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; font-size: 16px; font-weight: 690; letter-spacing: -.044em; }
.wordmark-icon { flex: none; }
.top-nav { display: flex; justify-content: center; align-items: center; gap: 25px; height: 100%; }
.top-nav a { display: grid; place-items: center; min-height: 42px; white-space: nowrap; padding: 3px 2px; color: #c2b9d6; font-size: 13px; font-weight: 550; }
.top-nav a:hover { color: #fff; }
.freshness { display: inline-flex; justify-self: end; gap: 8px; align-items: center; white-space: nowrap; padding: 7px 9px; border: 1px solid #443958; border-radius: 8px; background: #211a31; color: #ddd4ed; font: 400 10px/1.2 var(--mono); }
.freshness:hover { border-color: #8370ad; }
.freshness[aria-busy=true] > span:last-child { animation: spin 1.1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #85799e; flex: none; }
.status-dot[data-state='live'], .tape-heading .status-dot { background: #73e8cc; box-shadow: 0 0 9px #73e8cc8c; }
.status-dot[data-state='saved'] { background: #ffcb8f; }

.overview-panel, .atlas-panel, .panel { position: relative; min-width: 0; border: 1px solid var(--border); border-radius: 16px; background: var(--panel); }
.overview-panel { margin-top: 23px; background: #15111f; }
.overview-title { padding: clamp(23px, 3.8vw, 47px) 16px 0; text-align: center; }
.overview-index { width: min(100%, 38rem); margin-inline: auto; padding: clamp(25px, 4vw, 46px) 20px 24px; }
.score-panel { border-top: 1px solid var(--border); }
.score-content { width: min(100%, 55rem); margin-inline: auto; padding: clamp(19px, 3.2vw, 34px); }
.score-content h2 { font-size: clamp(23px, 3vw, 29px); letter-spacing: -.035em; line-height: 1.1; }
.eyebrow, .meter-key, .tape-heading { font: 400 10px/1.4 var(--mono); letter-spacing: .11em; }
.eyebrow { color: var(--violet); }
h1 { font-size: clamp(34px, 5vw, 65px); font-weight: 670; line-height: 1.08; letter-spacing: -.036em; text-wrap: balance; }
.lede { max-width: 72ch; margin-top: 8px; font-size: clamp(15px, 1.25vw, 17px); line-height: 1.55; color: #e1d8ed; }
.score-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; margin-top: 5px; }
.score-actions a { display: block; min-height: 44px; padding-block: 12px; color: #dbc7ff; font-size: 13px; font-weight: 620; line-height: 20px; text-decoration: underline; text-underline-offset: 3px; }
.score-actions a:hover { color: #fff; }
.term-help { color: #ddd1ea; font-size: 13px; line-height: 1.5; }
.reading-label {
  color: #d8c7f5;
  font: 500 13px/1.4 var(--mono);
  letter-spacing: .14em;
  text-align: center;
  text-transform: uppercase;
}
.reading-value { display: flex; justify-content: center; align-items: baseline; gap: clamp(4px, 1vw, 12px); margin-top: 6px; font-variant-numeric: tabular-nums; }
.reading-value output { color: #f8f4ff; font-size: clamp(72px, 20vw, 208px); font-weight: 700; letter-spacing: -.072em; line-height: .94; }
.reading-value > span { color: #d0bfeb; font-size: clamp(17px, 3vw, 35px); letter-spacing: -.05em; white-space: nowrap; }
.reading-value output[data-waiting] { align-content: center; min-height: clamp(68px, 19vw, 196px); font-size: clamp(20px, 4vw, 36px); letter-spacing: -.025em; }
.reading-value output[data-waiting] + span { display: none; }
.reading-explainer { max-width: 52ch; margin: 12px auto 8px; color: #e1d8ed; font-size: 14px; line-height: 1.5; text-align: center; }
.reading-meta { display: flex; justify-content: center; align-items: baseline; flex-wrap: wrap; gap: 2px 14px; margin-top: 5px; font-size: 13px; }
.reading-meta .change { font-size: 12px; }
.reading-meta a { color: #d0c7df; text-decoration: underline; text-underline-offset: 3px; }
.reading-meta a:hover { color: #fff; }
.index-explainer { margin-top: 5px; color: #dfd5ec; font-size: 13px; line-height: 1.5; }
.index-breakdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; padding: 0; margin-top: 10px; list-style: none; }
.index-breakdown li { min-width: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 6px; padding: 6px 8px; border: 1px solid #493c60; border-radius: 6px; background: #252036a8; color: #e3d8f1; font-size: 12px; }
.index-breakdown li strong { color: #e3d2ff; font: 400 11px/1.4 var(--mono); white-space: nowrap; }
.change { color: var(--subtle); font: 400 11px/1.25 var(--mono); white-space: nowrap; }
.change[data-direction='up'] { color: var(--teal); }
.change[data-direction='down'] { color: var(--rose); }
.index-meter { position: relative; height: 6px; margin-top: 13px; border-radius: 6px; background: #403458; }
.index-meter-fill { width: 0; height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, #8769fa, #c1a9ff 64%, #73e8cc); transition: width .45s ease; }
.meter-scale { display: flex; justify-content: space-between; margin-top: 5px; color: #c0b5d4; font: 400 11px/1.4 var(--mono); }
.meter-key { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; margin-top: 8px; color: #c0b5d4; font-size: 11px; letter-spacing: normal; }
.meter-key a { text-decoration: underline; text-underline-offset: 2px; }
.threshold-state { display: flex; gap: 7px; align-items: center; margin-top: 12px; color: #dfd5f0; font-size: 11px; font-weight: 550; }
.threshold-light { display: block; width: 8px; height: 8px; border: 1px solid #d0b9ff; border-radius: 50%; flex: none; }

.atlas-panel { margin-top: 16px; padding-bottom: 8px; overflow: clip; background: linear-gradient(160deg, #201a33, #171325 75%); }
.atlas-visual { min-width: 0; padding: 0 8px; }
.atlas-panel:not([data-expanded]) .sw-terrain__stage:not([data-fallback]) { min-height: 0; height: clamp(320px, 54vh, 540px); }
.atlas-heading { padding: 18px 20px 10px; }
.atlas-heading h2 { margin-top: 1px; font-size: 26px; letter-spacing: -.052em; line-height: 1.15; }
.milestone-order { display: grid; gap: 8px; margin: 0 20px 12px; padding: 12px 14px; border: 1px solid #504365; border-radius: 10px; background: #251d36; }
.milestone-order h3 { font-size: 17px; line-height: 1.25; }
.milestone-order p, .milestone-order li { color: #e0d5ee; font-size: 13px; line-height: 1.5; }
.milestone-order strong { color: var(--ink); }
.milestone-order summary { width: fit-content; color: #dfc9ff; font-size: 13px; font-weight: 650; cursor: pointer; }
.milestone-order ul { display: grid; gap: 6px; padding-left: 18px; margin-top: 7px; }
.milestone-order a { color: #dfc9ff; text-decoration: underline; text-underline-offset: 3px; }
.atlas-controls { display: flex; align-items: center; justify-content: space-between; gap: 7px; flex-wrap: wrap; padding: 0 20px 10px; }
.atlas-modes { width: max-content; }
.atlas-modes button { min-height: 40px; font-size: 12px; }
.placeholder { color: var(--dim); font-size: 13px; padding: 14px 17px; }

.tape-shell { display: flex; align-items: center; min-width: 0; border: 1px solid var(--border); background: #171321; border-radius: 10px; margin-top: 13px; }
.tape-heading { align-self: stretch; display: flex; align-items: center; gap: 7px; padding: 0 13px; border-right: 1px solid var(--border); color: #c9bfdc; white-space: nowrap; }
.tape { display: flex; min-width: 0; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #5a4777 transparent; }
.tape-signal { display: grid; grid-template-columns: max-content max-content; align-items: center; gap: 4px 7px; flex: none; padding: 10px 14px; border-right: 1px solid #352b45; }
.tape-signal:last-child { border: 0; }
.tape-signal:hover { background: #251d36; }
.tape-signal span:first-child { grid-column: 1 / -1; color: #c9bedb; font-size: 10px; white-space: nowrap; }
.tape-signal strong { font: 400 12px/1.1 var(--mono); color: var(--ink); }
.tape-signal .change { font-size: 9px; }

.section { margin-top: clamp(31px, 4.3vw, 60px); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 10px; margin-bottom: 14px; }
.section-heading h2 { margin-top: 3px; font-size: clamp(27px, 3.6vw, 43px); line-height: 1.07; letter-spacing: -.064em; font-weight: 670; }
.section-heading p:not(.eyebrow) { color: var(--dim); font-size: 14px; margin-top: 5px; line-height: 1.5; }
.watchdog-panel { padding: clamp(14px, 2vw, 22px); }
.watchdog-panel > .section-heading { flex-wrap: wrap; }
.history-grid, .scenario-grid, .signal-grid { display: grid; grid-template-columns: minmax(0, 1.63fr) minmax(0, 1fr); gap: 13px; align-items: stretch; }
.history-origins { margin-bottom: 13px; }
.leader-board { margin-bottom: 13px; }
.dependency-timeline { border-top: 1px solid #3c314d; margin-top: 15px; padding-top: 12px; }
.dependency-timeline h3 { font-size: 17px; letter-spacing: -.025em; }
.dependency-timeline a { color: var(--violet); text-decoration: underline; text-underline-offset: 3px; }
.dependency-selection { margin: 3px 0 8px; color: var(--dim); font-size: 12px; }
.dependency-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; list-style: none; padding: 0; }
.dependency-steps li { display: grid; align-content: start; gap: 4px; padding: 7px 9px; border: 1px solid #463956; border-radius: 6px; font-size: 12px; }
.dependency-steps li[data-reached='true'] { border-color: #41756b; background: #1b3534; }
.dependency-steps time { color: var(--violet); font: 400 10px/1.4 var(--mono); }
.dependency-steps small { color: var(--subtle); font-size: 10px; }
.watch-line-explainer { margin-top: 16px; }
.readiness { border-left: 2px solid #7ccab6; padding: 6px 10px; margin: 13px 0; color: var(--dim); font-size: 12px; }
.readiness blockquote { margin: 0 0 4px; color: #c8f5e8; font-size: 15px; font-weight: 630; }
.panel { padding: 17px 19px 19px; }
.panel-heading { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.panel-heading h3, .method-grid h3 { font-size: 17px; letter-spacing: -.034em; line-height: 1.2; font-weight: 675; }
.panel-heading p:not(.eyebrow) { margin-top: 5px; color: var(--dim); font-size: 12px; line-height: 1.5; }
.segmented, .news-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.segmented { padding: 3px; border-radius: 7px; border: 1px solid #39304e; background: #141120; flex: none; }
.segmented button, .news-filters button, .calendar-step { white-space: nowrap; border: 1px solid transparent; background: transparent; border-radius: 5px; color: #cac0db; padding: 6px 8px; font: 400 10px/1.25 var(--mono); }
.segmented button[aria-pressed=true], .news-filters button[aria-pressed=true] { color: #e6dcff; background: #34254e; border-color: #4c3a69; }
.segmented button:hover, .news-filters button:hover, .calendar-step:hover { color: #fff; background: #302445; }
.plot { position: relative; min-height: 168px; margin-top: 12px; }
.plot svg { width: 100%; height: clamp(168px, 23vw, 262px); display: block; overflow: visible; }
.plot text { font: 400 10px var(--mono); fill: #b5a7c8; }
.plot .watch-label { fill: #e4c3ff; }
.plot .marker-label { fill: #d8fff1; }
.plot .data-line { stroke: #c4a9ff; }
.plot .trend-line { stroke: #77e6cb; }
.plot .guide-line { stroke: #39304d; }
.plot .watch-line { stroke: #a481c9; }
.plot .cursor-line { stroke: #88e7cd; }
.plot .plot-hit { cursor: crosshair; }
.replay-controls { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.calendar-step { min-height: 29px; min-width: 30px; border-color: #413657; background: #21192f; }
.calendar-step:disabled { cursor: default; opacity: .45; }
.calendar-step.latest { margin-left: 3px; }
input[type=range] { min-width: 0; cursor: pointer; accent-color: #c0a9ff; }
.replay-controls input { flex: 1; }
.small-note { color: var(--subtle); font-size: 11px; line-height: 1.55; margin-top: 10px; }
.replay-reading { display: flex; align-items: baseline; gap: 8px; margin-top: 11px; }
.replay-reading strong { font-size: 29px; letter-spacing: -.07em; font-weight: 675; }
.replay-list, .gate-list, .news-list, .source-list { padding: 0; list-style: none; }
.replay-list { margin-top: 8px; }
.replay-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 8px; padding-block: 6px; border-top: 1px solid #30283e; color: #e7dff5; font-size: 11px; }
.replay-list li small { color: var(--dim); font-size: 10px; }
.replay-list li > span:last-child { justify-self: end; }
.replay-events { font-size: 11px; color: var(--dim); line-height: 1.5; padding-top: 6px; }
.replay-events a { display: block; color: #d5c5ff; margin-top: 3px; }
.replay-events a:hover { text-decoration: underline; }

.scenario-inputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: 12px; margin-block: 12px 5px; }
.scenario-inputs label { display: grid; align-content: end; gap: 5px; color: var(--dim); font-size: 14px; }
.scenario-inputs input { width: 100%; min-width: 0; min-height: 44px; padding: 6px 10px; color: var(--ink); background: var(--page); border: 1px solid #6e5f83; border-radius: 6px; font: inherit; }
#scenario-caption:not(:empty) { color: var(--ink); font-size: 15px; margin-block: 10px; }
.gate-list { margin-top: 8px; }
.gate-list li { display: grid; grid-template-columns: 21px minmax(0, 1fr); gap: 8px; padding: 11px 0; border-bottom: 1px solid #372e48; }
.gate-marker { display: grid; place-items: center; width: 18px; height: 18px; border: 1px solid #835fb1; border-radius: 50%; font: 400 9px/1 var(--mono); color: #d9bfff; background: #2d2044; }
.gate-list li[data-met=true] .gate-marker { color: var(--teal); border-color: #4c927f; background: #173930; }
.gate-topline { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 7px; }
.gate-topline strong { font-size: 13px; letter-spacing: -.013em; }
.gate-topline { cursor: pointer; }
.gate-topline strong::before { content: '+ '; color: var(--violet); }
.gate-list details[open] .gate-topline strong::before { content: '− '; }
.gate-topline span { color: #d5b8fa; font: 400 9px/1.5 var(--mono); }
.gate-list p { font-size: 11px; color: var(--dim); line-height: 1.5; margin-top: 3px; }
.gate-list p a { color: var(--violet); }

.factor-panel { padding: 12px 15px; }
.factor-columns, .factor-summary { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(85px, 1fr) 62px; align-items: center; gap: 8px; }
.factor-columns { padding: 3px 12px 9px; color: var(--dim); font: 400 10px/1.3 var(--mono); }
.factor-columns span:last-child { text-align: right; }
.factor-row { border-top: 1px solid #382e47; }
.factor-summary { cursor: pointer; padding: 11px 12px; min-height: 43px; list-style: none; }
.factor-summary::-webkit-details-marker { display: none; }
.factor-summary:hover { background: #241b35; }
.factor-title { font-size: 13px; font-weight: 620; line-height: 1.24; }
.factor-title::before { content: '+'; display: inline-block; color: var(--violet); width: 15px; font: 400 13px/1 var(--mono); }
.factor-row[open] .factor-title::before { content: '−'; }
.factor-reading { font: 400 11px/1.5 var(--mono); }
.factor-reading .change { display: inline-block; margin-inline-start: 5px; font-size: 9px; }
.factor-weight { text-align: right; font: 400 10px/1.5 var(--mono); color: #c5b6df; }
.factor-detail { padding: 0 12px 13px 27px; color: #d2c7e0; font-size: 12px; line-height: 1.53; }
.factor-detail p + p { margin-top: 5px; }
.factor-detail strong { color: #f4ebff; }
.factor-detail a, .method-grid a { color: var(--violet); display: inline-block; margin-top: 5px; }
.factor-detail a:hover, .method-grid a:hover { text-decoration: underline; }
.factor-mini { margin-top: 8px; }
.factor-mini svg { width: min(260px, 100%); height: auto; display: block; overflow: visible; }
.observation-list { list-style: none; padding: 4px 0 0; }
.observation-list li { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; font-size: 11px; }
.observation-list li strong { font: 400 10px/1.5 var(--mono); white-space: nowrap; }
.observations-label { margin-top: 10px; font-weight: 650; }

.news-filters { margin-top: 10px; }
.news-filters button { border-color: #3a304b; padding: 5px 6px; }
.news-list { margin-top: 5px; }
.news-list li { padding: 8px 0; border-bottom: 1px solid #362c44; }
.news-list li:last-child { border-bottom: none; }
.news-meta { color: var(--dim); font: 400 9px/1.4 var(--mono); }
.news-title { display: block; margin-top: 2px; font-size: 12px; line-height: 1.32; font-weight: 625; }
.news-description { color: var(--dim); font-size: 11px; line-height: 1.46; margin-top: 4px; }
#more-news { margin-top: 7px; }

.methodology { padding: 19px; }
.methodology h2 { font-size: 25px; }
.method-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.method-grid p, .method-grid a { color: var(--dim); font-size: 12px; line-height: 1.56; margin-top: 6px; }
.method-grid a { color: var(--violet); }
.source-list { margin-top: 4px; }
.source-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 3px 8px; padding-block: 3px; }
.source-list li a { margin-top: 0; }
.source-list .source-state { color: var(--dim); font: 400 10px/1.45 var(--mono); }
.footer { display: flex; justify-content: space-between; padding: 18px 1px 25px; margin-top: 13px; color: var(--dim); font-size: 11px; }

@media (max-width: 970px) {
  .wrap { width: calc(100% - 46px); }
  .panel { padding: 14px; }
}
@media (max-width: 1040px) {
  .header-inner { grid-template-columns: auto 1fr; gap: 0 7px; min-height: 0; padding-top: 8px; }
  .top-nav { grid-row: 2; grid-column: 1 / -1; flex-wrap: wrap; justify-content: flex-start; gap: 0 16px; }
  .top-nav a { min-height: 40px; }
}
@media (max-width: 730px) {
  .wrap { width: calc(100% - 28px); }
  .wordmark { font-size: 14px; }
  .wordmark-icon { width: 25px; height: 25px; }
  .history-grid, .scenario-grid, .signal-grid, .method-grid { grid-template-columns: minmax(0, 1fr); }
  .dependency-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-panel { margin-top: 12px; }
  .atlas-panel { margin-top: 12px; }
  .index-breakdown { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  h1 { font-size: clamp(31px, 8.2vw, 54px); }
  .atlas-heading { padding: 12px 12px 8px; }
  .milestone-order { margin-inline: 12px; }
  .atlas-controls { padding-inline: 12px; }
  .tape-shell { margin-top: 9px; }
  .tape-heading { padding-inline: 8px; }
  .tape-signal { padding-inline: 9px; }
}
@media (max-width: 480px) {
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; padding-block: 4px; }
  .wordmark { min-height: 44px; gap: 7px; white-space: normal; }
  .freshness { min-height: 44px; max-width: 132px; gap: 5px; padding: 4px 7px; text-align: start; white-space: normal; }
  .top-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 3px; height: auto; }
  .top-nav a { min-height: 44px; border-radius: 5px; padding-inline: 4px; font-size: 12px; line-height: 1.2; text-align: center; white-space: normal; }
  .top-nav a:focus-visible { outline-offset: -2px; }

  .overview-title { padding: 19px 14px 0; }
  .overview-index { padding: 19px 14px 17px; }
  .reading-value output { font-size: min(22vw, 6.5rem); }
  .reading-value output[data-waiting] { min-height: min(21vw, 6.15rem); }
  .reading-meta { align-items: center; }
  .reading-meta a, .meter-key a { padding-block: 6px; }
  .index-meter { margin-top: 7px; }
  .meter-key { align-items: center; gap: 0 6px; margin-top: 2px; }
  .score-content { padding: 17px 14px; }
  .score-content .index-explainer { font-size: 14px; }
  .index-breakdown li { padding: 7px 8px; }
  .threshold-state { font-size: 12px; }
  .score-actions { gap: 0 12px; }

  .section-heading, .panel-heading, .footer { flex-wrap: wrap; }
  .atlas-modes button, .atlas-controls .chart-fullscreen { min-height: 44px; }
  .milestone-order summary { min-height: 44px; align-content: center; }
  .calendar-step { min-width: 44px; min-height: 44px; }
  .replay-controls { flex-wrap: wrap; }
  .replay-controls input { min-width: 72px; }
  .replay-controls input { min-height: 44px; }
  .footer { gap: 6px 12px; }
}
@media (max-width: 370px) {
  .factor-columns, .factor-summary { grid-template-columns: minmax(0, 1.4fr) minmax(76px, 1fr) 42px; }
  .factor-summary, .factor-columns { padding-inline: 5px; }
}

.dashboard-header {
  grid-template-areas: "brand views freshness" "sections sections sections";
  align-content: center;
  gap: 0 12px;
  padding-top: 8px;
}
.dashboard-header .wordmark { grid-area: brand; }
.dashboard-header .page-tools { grid-area: views; justify-self: center; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 5px 10px; }
.dashboard-header .freshness { grid-area: freshness; }
.dashboard-nav { grid-area: sections; min-width: 0; }
.dashboard-nav summary { display: none; }
@media (max-width: 1040px) {
  .dashboard-header { grid-template-columns: 1fr auto 1fr; }
  .dashboard-header .top-nav { justify-content: center; }
}
@media (max-width: 780px) {
  .dashboard-header {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand freshness" "views views" "sections sections";
    row-gap: 5px;
  }
}

@media (max-width: 780px) {
  .dashboard-nav { width: 100%; }
  .dashboard-nav details { border-block-start: 1px solid var(--border); }
  .dashboard-nav summary {
    display: flex; align-items: center; justify-content: space-between; gap: .5rem;
    min-height: 44px; padding-inline: 4px; color: var(--violet); font-size: 14px;
    font-weight: 600; cursor: pointer; list-style: none;
  }
  .dashboard-nav summary::-webkit-details-marker { display: none; }
  .dashboard-nav summary::after {
    content: ''; flex: none; width: 7px; height: 7px; margin-inline: 5px;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
  }
  .dashboard-nav details[open] > summary::after { transform: rotate(225deg); }
  .dashboard-header .top-nav {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px;
    height: auto; padding-block-end: 6px;
  }
  .dashboard-header .top-nav a {
    min-height: 44px; min-width: 0; padding: 5px 4px; justify-items: start;
    font-size: 14px; line-height: 1.3; text-align: start; white-space: normal;
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
.daily-reading:empty { display: none; }
.overview-index .daily-reading {
  border-inline-start: 2px solid var(--teal);
  padding-inline-start: .8rem;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.5;
  text-align: start;
}
