:root {
  color-scheme: dark;
  --bg: #07111c;
  --bg-soft: #0b1724;
  --panel: #0e1c2b;
  --panel-raised: #122338;
  --line: #1e3245;
  --line-bright: #294259;
  --text: #e8f0f7;
  --muted: #8fa3b7;
  --dim: #7b91a5;
  --cyan: #72d4e6;
  --cyan-strong: #2bb5ce;
  --amber: #f0bb68;
  --green: #86d5af;
  --red: #f18c8c;
  --radius: 16px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .18);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { margin: 0; min-width: 320px; min-height: 100vh; background: radial-gradient(ellipse at 68% -12%, rgba(34, 88, 121, .16), transparent 43%), var(--bg); }
button { font: inherit; }
button:focus-visible, .skip-link:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; transform: translateY(-160%); padding: 11px 14px; border: 1px solid var(--cyan); border-radius: 8px; background: #0e1c2b; color: var(--text); font-size: 14px; text-decoration: none; }
.skip-link:focus-visible { transform: translateY(0); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.noscript-notice { margin: 12px; padding: 14px; border: 1px solid var(--amber); border-radius: 10px; background: #0e1c2b; color: var(--text); font-size: 14px; line-height: 1.5; }
.app-startup-error { max-width: 720px; margin: clamp(16px, 5vw, 48px) auto; padding: clamp(18px, 4vw, 30px); border: 1px solid rgba(240,187,104,.45); border-radius: 16px; background: #0e1c2b; color: var(--text); box-shadow: var(--shadow); }
.app-startup-error h1 { margin: 8px 0; font-size: clamp(21px, 4vw, 28px); line-height: 1.2; }
.app-startup-error > p:not(.eyebrow) { color: var(--muted); font-size: 13px; line-height: 1.6; }
.app-startup-error details { margin: 16px 0; border: 1px solid var(--line); border-radius: 9px; padding: 0 11px; }
.app-startup-error summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--cyan); }
.app-startup-error pre { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--dim); font: 12px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; }
.app-startup-error button:focus-visible, .app-startup-error summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.app-startup-error > button { min-height: 44px; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 244px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 26px 16px 18px; border-right: 1px solid var(--line); background: rgba(8, 19, 31, .92); display: flex; flex-direction: column; z-index: 5; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 10px 32px; }
.brand-mark { width: 40px; height: 40px; border: 1px solid rgba(114, 212, 230, .4); border-radius: 13px; background: linear-gradient(145deg, rgba(43,181,206,.22), rgba(43,181,206,.04)); display: grid; place-items: center; }
.brand-mark svg { width: 23px; height: 23px; fill: var(--cyan); }
.brand-name { margin: 0; font-size: 15px; letter-spacing: .16em; font-weight: 800; }
.brand-caption { color: var(--muted); margin: 4px 0 0; font-size: 10px; letter-spacing: .16em; }
.sidebar-label, .eyebrow { color: var(--muted); font-size: 11px; letter-spacing: .16em; font-weight: 700; margin: 0; }
.sidebar-label { padding: 0 12px 12px; }
.primary-nav { display: grid; gap: 5px; }
.nav-link { border: 1px solid transparent; background: transparent; color: #9fb0c1; display: flex; align-items: center; text-align: left; gap: 11px; width: 100%; border-radius: 10px; padding: 11px 12px; font-size: 13px; cursor: pointer; transition: background .18s ease, color .18s ease, border-color .18s ease; }
.nav-link:hover { background: rgba(255,255,255,.035); color: var(--text); }
.nav-link.is-active { color: #e8fbff; background: rgba(43, 181, 206, .12); border-color: rgba(114, 212, 230, .14); }
.nav-symbol { color: #6f8ba3; width: 18px; text-align: center; font-size: 16px; }
.nav-link.is-active .nav-symbol { color: var(--cyan); }
.sidebar-bottom { margin-top: auto; padding: 16px 10px 0; border-top: 1px solid var(--line); color: var(--dim); font-size: 11px; line-height: 1.7; }
.sidebar-bottom p { margin: 12px 0 0; }
.local-status { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.status-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px currentColor; flex: 0 0 auto; }
.status-dot--amber { color: var(--amber); background: var(--amber); }
.status-dot--muted { color: #6c8398; background: #6c8398; box-shadow: none; }

.main-area { min-width: 0; display: flex; flex-direction: column; }
.topbar { min-height: 91px; padding: 0 38px; border-bottom: 1px solid rgba(30,50,69,.8); display: flex; align-items: center; justify-content: space-between; background: rgba(7,17,28,.64); }
.topbar h1 { font-size: 20px; margin: 5px 0 0; font-weight: 650; letter-spacing: -.025em; }
.topbar-meta { display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 11px; }
.mode-chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); padding: 8px 11px; border-radius: 999px; color: #c6d4df; }
.content-wrap { width: min(100%, 1480px); margin: 0 auto; padding: 28px 38px 42px; flex: 1; }
.app-footer { padding: 15px 38px 20px; color: var(--dim); font-size: 11px; border-top: 1px solid rgba(30,50,69,.7); display: flex; justify-content: space-between; gap: 20px; }

.hero-card { min-height: 260px; border: 1px solid #234257; border-radius: 20px; background: radial-gradient(circle at 77% 54%, rgba(35,111,139,.22), transparent 27%), linear-gradient(110deg, #0e2030 0%, #10283a 60%, #0b1c2a 100%); position: relative; overflow: hidden; display: flex; align-items: center; padding: 32px 38px; box-shadow: var(--shadow); }
.hero-card:after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(143,163,183,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(143,163,183,.035) 1px, transparent 1px); background-size: 34px 34px; mask-image: linear-gradient(90deg, black, transparent 88%); pointer-events: none; }
.hero-copy { max-width: 600px; z-index: 1; }
.hero-copy h2 { font-size: clamp(26px, 3vw, 39px); line-height: 1.1; letter-spacing: -.045em; margin: 14px 0 12px; }
.hero-copy h2 span { color: var(--cyan); }
.hero-copy > p:not(.eyebrow) { color: #a9bbc9; font-size: 13px; line-height: 1.6; max-width: 480px; margin: 0; }
.eyebrow--bright { color: var(--cyan); }
.hero-tags { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.tag { font-size: 11px; padding: 6px 9px; border-radius: 99px; border: 1px solid transparent; }
.tag--cyan { color: #b6eff7; border-color: rgba(114,212,230,.25); background: rgba(43,181,206,.1); }
.tag--slate { color: #bac8d3; border-color: rgba(143,163,183,.18); background: rgba(7,17,28,.24); }
.hero-orbit { position: absolute; width: 230px; height: 230px; right: 9%; top: 15px; display: grid; place-items: center; opacity: .9; }
.orbit { border: 1px solid rgba(114,212,230,.18); border-radius: 50%; position: absolute; transform: rotate(-28deg); }
.orbit--outer { width: 208px; height: 110px; }
.orbit--inner { width: 150px; height: 212px; transform: rotate(47deg); border-color: rgba(114,212,230,.12); }
.orbit-core { width: 86px; height: 86px; border-radius: 50%; background: radial-gradient(circle, rgba(114,212,230,.25), rgba(43,181,206,.02) 70%); border: 1px solid rgba(114,212,230,.35); box-shadow: 0 0 55px rgba(43,181,206,.18); display: grid; place-items: center; color: var(--cyan); font-size: 50px; font-weight: 200; }
.orbit-point { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 16px var(--cyan); }
.orbit-point--one { top: 46px; left: 39px; }
.orbit-point--two { right: 20px; bottom: 48px; width: 5px; height: 5px; background: var(--amber); box-shadow: 0 0 12px var(--amber); }

.notice-banner { display: flex; align-items: center; gap: 12px; border: 1px solid rgba(114,212,230,.18); background: rgba(43,181,206,.055); padding: 12px 15px; border-radius: 12px; margin: 18px 0 27px; color: #bfd3df; font-size: 12px; }
.notice-banner p { margin: 0; line-height: 1.55; flex: 1; }
.notice-banner strong { color: var(--text); }
.notice-icon { flex: 0 0 auto; width: 21px; height: 21px; display: grid; place-items: center; color: var(--cyan); border: 1px solid rgba(114,212,230,.35); border-radius: 50%; font-weight: 700; font-size: 11px; }
.notice-banner--amber { border-color: rgba(240,187,104,.24); background: rgba(240,187,104,.055); }
.notice-banner--amber .notice-icon { color: var(--amber); border-color: rgba(240,187,104,.4); }
.section-heading { margin: 26px 0 13px; display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.section-heading h2, .page-intro h2 { font-size: 19px; letter-spacing: -.025em; margin: 5px 0 0; }
.section-note { color: var(--muted); font-size: 11px; }
.section-heading--spaced { margin-top: 29px; }
.text-button { border: 0; background: transparent; color: var(--cyan); font-size: 11px; cursor: pointer; padding: 5px; }
.text-button:hover, .panel-link:hover { color: #c3f7ff; }

.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.metric-card, .panel-card { background: linear-gradient(145deg, rgba(15,30,45,.96), rgba(11,23,36,.96)); border: 1px solid var(--line); border-radius: var(--radius); }
.metric-card { min-width: 0; padding: 16px 17px 13px; }
.metric-card--featured { border-color: rgba(114,212,230,.24); background: linear-gradient(145deg, rgba(19,45,59,.92), rgba(11,23,36,.96)); }
.metric-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; letter-spacing: .11em; font-weight: 700; }
.metric-icon { width: 27px; height: 27px; border-radius: 8px; display: grid; place-items: center; font-size: 15px; }
.metric-icon--cyan { color: var(--cyan); background: rgba(43,181,206,.11); }
.metric-icon--amber { color: var(--amber); background: rgba(240,187,104,.11); }
.metric-icon--slate { color: #abbacd; background: rgba(143,163,183,.11); }
.metric-value { margin: 13px 0 0; font-size: 28px; font-weight: 640; letter-spacing: -.04em; }
.metric-value small { color: var(--muted); font-size: 13px; font-weight: 500; }
.metric-empty { margin: 15px 0 1px; font-size: 18px; color: #b2bfca; }
.metric-label { margin: 3px 0 13px; color: #a2b2c0; font-size: 11px; }
.metric-foot { border-top: 1px solid rgba(30,50,69,.72); padding-top: 9px; display: flex; justify-content: space-between; gap: 8px; color: var(--dim); font-size: 10px; }
.dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 13px; }
.panel-card { padding: 17px; min-width: 0; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 13px; }
.panel-heading h3 { margin: 5px 0 0; font-size: 14px; letter-spacing: -.015em; }
.state-pill { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; border: 1px solid transparent; border-radius: 999px; font-size: 10px; font-weight: 650; padding: 5px 8px; line-height: 1.2; }
.state-pill--fixture { color: #bfeef5; background: rgba(43,181,206,.1); border-color: rgba(114,212,230,.2); }
.state-pill--pending { color: #f4d49e; background: rgba(240,187,104,.09); border-color: rgba(240,187,104,.18); }
.state-pill--muted { color: #b6c3ce; background: rgba(143,163,183,.08); border-color: rgba(143,163,183,.16); }
.state-pill--ok { color: #a8e4c3; background: rgba(91,186,135,.08); border-color: rgba(134,213,175,.2); }
.state-pill--bad { color: #f3a5a5; background: rgba(241,140,140,.08); border-color: rgba(241,140,140,.2); }
.state-pill--stale { color: #e9c27e; background: rgba(240,187,104,.08); border-color: rgba(240,187,104,.2); }
.empty-state { display: flex; align-items: center; gap: 13px; color: var(--muted); }
.empty-state--compact { min-height: 75px; }
.empty-mark { width: 37px; height: 37px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; background: rgba(240,187,104,.08); border: 1px solid rgba(240,187,104,.16); color: var(--amber); font-size: 21px; }
.empty-state strong { display: block; color: #dce5ec; font-size: 11px; }
.empty-state p { margin: 5px 0 0; font-size: 11px; }
.panel-link { margin-top: 10px; border: 0; background: transparent; color: var(--cyan); font-size: 11px; cursor: pointer; padding: 5px 0 0; }
.enso-snapshot { display: flex; align-items: center; gap: 14px; min-height: 76px; }
.enso-snapshot > div:first-child { display: grid; gap: 4px; }
.snapshot-label { color: var(--muted); font-size: 10px; letter-spacing: .06em; }
.enso-snapshot strong { font-size: 24px; letter-spacing: -.04em; }
.enso-snapshot small { color: var(--muted); font-size: 11px; }
.snapshot-divider { height: 40px; border-left: 1px solid var(--line-bright); }
.enso-snapshot p { max-width: 210px; color: var(--muted); font-size: 11px; line-height: 1.5; margin: 0; }
.source-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.source-summary-item { background: rgba(14,28,43,.78); border: 1px solid var(--line); border-radius: 12px; padding: 12px; min-width: 0; }
.source-summary-item strong { display: block; font-size: 12px; margin: 0 0 8px; }
.source-summary-item span:last-child { display: block; margin-top: 7px; color: var(--dim); font-size: 10px; line-height: 1.4; }

.page-intro { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 2px 0 18px; }
.page-intro h2 { font-size: 25px; margin-top: 7px; }
.page-intro p:not(.eyebrow) { color: var(--muted); margin: 8px 0 0; font-size: 12px; line-height: 1.55; max-width: 660px; }
.page-intro > .state-pill, .page-intro > .mode-chip { margin-bottom: 3px; }
.enso-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 13px; }
.enso-value-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: linear-gradient(145deg, rgba(15,30,45,.98), rgba(11,23,36,.94)); }
.enso-value-card .index-name { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.enso-value-card .index-value { display: block; font-size: 26px; letter-spacing: -.045em; margin-top: 10px; }
.enso-value-card .index-value small { color: var(--muted); font-size: 12px; }
.enso-value-card .index-period { color: #c8d5df; font-size: 11px; margin-top: 3px; }
.enso-value-card .index-meta { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--dim); font-size: 10px; line-height: 1.5; }
.chart-panel, .table-panel { margin-top: 13px; }
.chart-explainer { color: var(--muted); font-size: 11px; line-height: 1.55; margin: -3px 0 14px; }
.chart-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.chart-card { border: 1px solid var(--line); border-radius: 12px; background: rgba(7,17,28,.52); padding: 11px; min-width: 0; }
.chart-card h4 { font-size: 11px; margin: 0 0 3px; }
.chart-card p { color: var(--dim); font-size: 10px; margin: 0; }
.chart-card .chart-axis-note { color: var(--muted); margin-top: 2px; }
.chart-card svg { display: block; width: 100%; height: auto; margin-top: 6px; overflow: visible; }
.chart-axis { stroke: #284054; stroke-width: 1; }
.chart-zero { stroke: #61798d; stroke-dasharray: 4 4; stroke-width: 1; }
.chart-tick { fill: #72899d; font-size: 10px; }
.chart-point { fill: var(--cyan); stroke: #d4f7fa; stroke-width: 1.2; }
.chart-point--warm { fill: var(--amber); stroke: #fff0cf; }
.chart-value { fill: #e9f3f8; font-size: 10px; font-weight: 700; }
.chart-disclaimer { margin-top: 3px !important; color: #9bacbb !important; line-height: 1.4; }
.science-note { color: #9eafbc; font-size: 11px; line-height: 1.6; padding: 12px 14px; border-left: 2px solid var(--cyan-strong); background: rgba(43,181,206,.04); border-radius: 0 10px 10px 0; margin: 14px 0 0; }
.science-note strong { color: #dce8ef; }

.table-scroll { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; min-width: 590px; }
th { color: var(--dim); font-weight: 650; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; padding: 10px 11px; border-bottom: 1px solid var(--line-bright); }
td { color: #c4d0da; font-size: 11px; padding: 12px 11px; border-bottom: 1px solid rgba(30,50,69,.65); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
.table-value { color: var(--text); font-weight: 700; white-space: nowrap; }
.table-source { color: var(--muted); max-width: 250px; line-height: 1.45; overflow-wrap: anywhere; }
.small-badge { display: inline-block; border: 1px solid var(--line-bright); border-radius: 5px; padding: 3px 5px; color: #b8c7d2; font-size: 10px; }

.local-empty-card { margin-top: 22px; padding: 27px; border: 1px dashed #35495a; border-radius: 18px; background: radial-gradient(circle at 50% -25%, rgba(43,181,206,.08), transparent 55%), rgba(14,28,43,.7); text-align: center; }
.empty-mark--large { margin: 0 auto 16px; width: 52px; height: 52px; font-size: 28px; }
.local-empty-card h3 { font-size: 18px; margin: 8px 0; }
.local-empty-card > p:not(.eyebrow) { color: var(--muted); font-size: 11px; line-height: 1.6; max-width: 620px; margin: 0 auto; }
.source-ref { display: inline-grid; gap: 5px; margin-top: 19px; padding: 10px 13px; background: rgba(7,17,28,.7); border: 1px solid var(--line); border-radius: 9px; font-size: 10px; }
.source-ref span { color: var(--dim); }
.source-ref strong { color: #d3dfe7; font-weight: 600; }
.metric-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.weather-empty-metric { min-height: 103px; }
.weather-empty-metric span { color: var(--muted); font-size: 11px; }
.weather-empty-metric strong { display: block; color: #b8c5cf; font-size: 13px; margin-top: 13px; }
.notice-status-card { margin-top: 14px; }
.notice-status-card > p { color: var(--muted); font-size: 11px; line-height: 1.55; }
.notice-status-card .small-muted, .small-muted { color: var(--dim); font-size: 11px; }

.legend-row { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0 15px; }
.source-list { display: grid; gap: 9px; }
.source-row { display: grid; grid-template-columns: minmax(150px, 1.1fr) minmax(125px, .7fr) minmax(180px, 1.5fr); gap: 15px; align-items: center; background: rgba(14,28,43,.8); border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; }
.source-row strong { display: block; font-size: 11px; }
.source-row .source-kind { display: block; color: var(--dim); font-size: 10px; margin-top: 4px; }
.source-row p { color: var(--muted); font-size: 11px; line-height: 1.45; margin: 0; }
.source-age { color: var(--dim); font-size: 10px; }

.button { border: 1px solid var(--line-bright); border-radius: 9px; background: rgba(255,255,255,.03); color: #d8e5ed; padding: 9px 12px; font-size: 11px; cursor: pointer; }
.button:hover { border-color: var(--cyan); color: white; }
.button--primary { background: rgba(43,181,206,.16); border-color: rgba(114,212,230,.36); color: #c4f4fb; }
.button--quiet { color: var(--cyan); background: transparent; }
.report-preview { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; min-height: 270px; max-height: 540px; overflow: auto; color: #b9cad6; font: 12px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: rgba(5,13,21,.65); }
.settings-card { padding: 0 17px; }
.settings-row { display: flex; justify-content: space-between; gap: 15px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.settings-row:last-child { border-bottom: 0; }
.settings-row strong { font-size: 11px; }
.settings-row p { color: var(--muted); font-size: 11px; margin: 5px 0 0; line-height: 1.5; }
.limitations-card { margin-top: 13px; border-color: rgba(240,187,104,.2); }
.limitations-card h3 { font-size: 15px; margin: 8px 0; }
.limitations-card > p:last-child { color: var(--muted); font-size: 11px; line-height: 1.6; max-width: 760px; }

.live-top-button { padding: 7px 9px; font-size: 10px; white-space: nowrap; }
.live-top-button:disabled { opacity: .45; cursor: not-allowed; }
.chart-series-line { fill: none; stroke: var(--cyan); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.enso-value-card--live { border-color: rgba(43,181,206,.24); }
.live-provenance { display: grid; gap: 5px; }
.live-provenance p { margin: 0; line-height: 1.5; overflow-wrap: anywhere; }
.live-empty-note { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.source-link { color: var(--cyan); font-size: 11px; width: fit-content; }
.documentary-archive { margin-top: 14px; padding: 15px; }
.documentary-archive > summary { color: #b4c4d0; font-size: 12px; cursor: pointer; }
.documentary-archive > p { color: var(--muted); font-size: 11px; line-height: 1.5; }
.documentary-archive .table-scroll { margin-top: 12px; }
.live-privacy-note { padding: 12px 0; line-height: 1.6; }
.weather-live-metric { min-height: 132px; }
.weather-live-metric .metric-card-top { min-height: 26px; line-height: 1.4; }
.weather-live-metric .metric-value { font-size: 22px; }
.weather-live-metric .metric-label { line-height: 1.45; }
.weather-live-metric .metric-foot { line-height: 1.45; overflow-wrap: anywhere; }

@media (max-width: 1050px) {
  .app-shell { grid-template-columns: 210px minmax(0,1fr); }
  .content-wrap { padding-left: 24px; padding-right: 24px; }
  .topbar { padding-left: 24px; padding-right: 24px; }
  .hero-orbit { right: 2%; opacity: .55; }
  .source-summary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .metric-grid--four { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 800px) {
  button { min-height: 44px; }
  .app-shell { display: flex; flex-direction: column; }
  .sidebar { position: sticky; top: 0; height: auto; padding: 10px 12px 8px; border-right: 0; border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
  .brand { padding: 0 4px 9px; gap: 9px; }
  .brand-mark { width: 32px; height: 32px; border-radius: 10px; }
  .brand-mark svg { width: 19px; height: 19px; }
  .brand-name { font-size: 12px; }
  .brand-caption { font-size: 9px; }
  .sidebar-label, .sidebar-bottom { display: none; }
  .primary-nav { display: flex; overflow-x: auto; gap: 5px; padding: 0 0 1px; scrollbar-width: thin; }
  .nav-link { width: auto; min-height: 44px; flex: 0 0 auto; padding: 8px 11px; gap: 6px; font-size: 12px; border-radius: 8px; }
  .nav-symbol { width: auto; font-size: 13px; }
  .topbar { min-height: 70px; padding: 12px 16px; align-items: flex-start; flex-direction: column; gap: 9px; }
  .topbar .eyebrow { font-size: 9px; }
  .topbar h1 { font-size: 17px; }
  .topbar-meta { gap: 6px; font-size: 10px; flex-wrap: wrap; width: 100%; }
  .mode-chip { padding: 6px 8px; }
  .content-wrap { padding: 16px 14px 30px; }
  .hero-card { min-height: 225px; padding: 24px 21px; }
  .hero-copy { max-width: 78%; }
  .hero-copy h2 { font-size: 27px; }
  .hero-copy > p:not(.eyebrow) { font-size: 11px; }
  .hero-orbit { right: -62px; top: 30px; transform: scale(.72); opacity: .36; }
  .notice-banner { align-items: flex-start; padding: 11px; gap: 9px; font-size: 11px; margin: 13px 0 22px; }
  .notice-banner .text-button { display: none; }
  .section-heading { align-items: start; flex-direction: column; gap: 6px; margin-top: 21px; }
  .section-heading h2 { font-size: 16px; }
  .section-note { font-size: 10px; }
  .metric-grid, .dashboard-grid, .enso-card-grid, .chart-grid { grid-template-columns: 1fr; }
  .metric-grid--four { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .metric-card { padding: 14px; }
  .metric-value { font-size: 25px; }
  .panel-card { padding: 14px; }
  .page-intro { align-items: flex-start; flex-direction: column; gap: 11px; }
  .page-intro h2 { font-size: 22px; }
  .page-intro p:not(.eyebrow) { font-size: 11px; }
  .source-summary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .source-row { grid-template-columns: 1fr auto; gap: 8px 12px; }
  .source-row p { grid-column: 1 / -1; }
  .source-age { grid-column: 1 / -1; }
  .legend-row { gap: 5px; }
  .state-pill { font-size: 10px; padding: 6px 8px; }
  .panel-heading { align-items: flex-start; }
  .panel-heading h3 { font-size: 13px; }
  .chart-card svg { max-height: 150px; }
  .live-top-button { min-height: 40px; padding: 6px 8px; }
  .weather-live-metric { min-height: 110px; }
  .app-footer { padding: 13px 15px 17px; font-size: 10px; flex-direction: column; gap: 5px; }
}
@media (max-width: 380px) {
  .nav-link { min-height: 44px; font-size: 12px; padding: 8px 10px; }
  .topbar-meta time { display: none; }
  .topbar-meta { gap: 4px; }
  .live-top-button { flex: 1 1 auto; white-space: normal; min-height: 42px; }
  .hero-copy { max-width: 90%; }
  .hero-copy h2 { font-size: 24px; }
  .metric-grid--four, .source-summary-grid { grid-template-columns: 1fr 1fr; }
  .source-summary-item { padding: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
