/* Municipal Money Live: theme follows edu.namela.org (Namela family palette and type).
   Greens: header #15382b, accent #1f5240. Gold #c8952a for focus and warnings, clay #b4532f for alerts. */
:root {
  --navy: #17231d; --deep: #15382b; --deeper: #0f2a20; --teal: #1f5240; --teal-text: #1f5240; --teal-bright: #8fd0ab;
  --orange: #c8952a; --white: #FFFFFF; --grey: #f6f8f4; --charcoal: #17231d;
  --bg: var(--grey); --surface: var(--white); --sunken: #e9eee7; --ink: var(--charcoal); --ink-strong: #15382b;
  --muted: #55645b; --line: #d3dcd1; --line-strong: #a7b6aa;
  --hd-ink: #f3f7f2; --hd-muted: #b9cbbf; --hd-line: rgba(255,255,255,.22); --hd-soft: rgba(255,255,255,.12);
  --warn-bg: #f6e9c6; --warn-ink: #5e420b; --warn-line: #c8952a;
  --bad-ink: #9a3a1c; --focus: #c8952a; --clay: #b4532f; --good: #2e7d5b;
  --c1: #1f5240; --c2: #15382b; --c3: #c8952a; --c4: #b4532f; --c5: #8fd0ab; --c6: #6b5a2a; --c7: #b9c7bc; --c8: #2f6f8f; --c9: #3f7a5c; --c10: #e3c98a; --c11: #55645b;
  --radius-lg: 18px; --radius: 12px; --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(21, 56, 43, .06), 0 6px 20px rgba(21, 56, 43, .06);
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --deep: #0a110d; --deeper: #070c09; --bg: #0e1612; --surface: #17221c; --sunken: #111b16; --ink: #e8f0ea; --ink-strong: #f3f8f4; --muted: #a3b5a9;
    --line: #2b3b32; --line-strong: #44584b; --teal: #2e7d5b; --teal-text: #8fd0ab; --warn-bg: #3a3117; --warn-ink: #f1d58f;
    --bad-ink: #f0906a; --focus: #e3b653; --c1: #2e7d5b; --c2: #5f8a72; --c3: #e3b653; --c4: #d0704a; --c7: #6d7d73; --c8: #5b9bbd;
    --shadow: 0 1px 2px rgba(0,0,0,.3); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --deep: #0a110d; --deeper: #070c09; --bg: #0e1612; --surface: #17221c; --sunken: #111b16; --ink: #e8f0ea; --ink-strong: #f3f8f4; --muted: #a3b5a9;
  --line: #2b3b32; --line-strong: #44584b; --teal: #2e7d5b; --teal-text: #8fd0ab; --warn-bg: #3a3117; --warn-ink: #f1d58f;
  --bad-ink: #f0906a; --focus: #e3b653; --c1: #2e7d5b; --c2: #5f8a72; --c3: #e3b653; --c4: #d0704a; --c7: #6d7d73; --c8: #5b9bbd;
  --shadow: 0 1px 2px rgba(0,0,0,.3); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.55 var(--font); font-feature-settings: "tnum" 1; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink-strong); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2rem, 5.5vw, 3.6rem); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; max-width: 72ch; }
a { color: var(--teal-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--deep); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

/* Status bar */
.status { background: var(--deeper); color: var(--hd-ink); font-size: .875rem; }
.status-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 10px 0; }
.status-state { margin: 0; font-weight: 700; letter-spacing: .02em; display: flex; align-items: center; gap: 8px; }
.status-state::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--hd-muted); flex: none; }
.status[data-state="connected"] .status-state::before { background: var(--teal-bright); }
.status[data-state="stale"] .status-state::before, .status[data-state="partial"] .status-state::before { background: var(--orange); }
.status[data-state="failed"] .status-state::before { background: #f0906a; }
.status-meta { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; flex: 1 1 520px; }
.status-meta div { display: flex; gap: 6px; }
.status-meta dt { color: var(--hd-muted); }
.status-meta dt::after { content: ":"; }
.status-meta dd { margin: 0; color: #fff; font-weight: 500; }
.btn-refresh { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--hd-line); background: transparent; color: #fff; font: 600 .875rem var(--font); cursor: pointer; }
.btn-refresh:hover { background: var(--hd-soft); }
.btn-refresh[aria-busy="true"] svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.status-warning { background: var(--warn-bg); color: var(--warn-ink); margin: 0; max-width: none; width: 100%; padding: 10px max(16px, calc((100% - 1160px) / 2)); border-top: 3px solid var(--orange); }

/* Header */
.site-header { background: var(--deep); color: var(--hd-ink); border-bottom: 1px solid var(--hd-line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0 8px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand-mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--gold, #c8952a); color: #15382b; font-family: var(--display); font-weight: 700; font-size: .9rem; letter-spacing: .02em; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-family: var(--display); color: var(--hd-ink); font-size: 1.15rem; letter-spacing: -0.01em; }
.brand-text span { color: var(--hd-muted); font-size: .85rem; }
.theme-toggle { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--hd-line); background: var(--hd-soft); color: var(--hd-ink); cursor: pointer; display: grid; place-items: center; }
.site-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0 0 4px; overflow-x: auto; scrollbar-width: none; }
.site-nav a { display: block; padding: 12px 14px; white-space: nowrap; color: var(--hd-muted); text-decoration: none; font-weight: 500; border-bottom: 3px solid transparent; }
.site-nav a[aria-current="page"] { color: var(--hd-ink); border-bottom-color: #c8952a; font-weight: 600; }
.site-nav a:hover { color: var(--hd-ink); }

main { display: block; min-height: 60vh; }
main:focus { outline: none; }
.loading-block { padding: 64px 0; }

/* Hero and search */
.hero { background: var(--deep); border-top: 0; color: #fff; padding: clamp(40px, 7vw, 88px) 0 clamp(36px, 6vw, 64px); }
.hero h1 { color: #fff; max-width: 20ch; }
.hero p.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: #d6e4da; max-width: 60ch; }
.search { position: relative; margin-top: 28px; max-width: 760px; }
.search label { display: block; font-weight: 600; margin-bottom: 8px; }
.hero .search label { color: #fff; }
.search-row { display: flex; gap: 8px; }
.search input, .select, .field select { font: 500 1.0625rem var(--font); color: var(--navy); background: #fff; border: 2px solid transparent; border-radius: var(--radius); min-height: 56px; padding: 0 16px; width: 100%; }
.search input::placeholder { color: #6b7a70; }
.search input:focus { border-color: var(--focus); outline: none; }
.search .province-filter { max-width: 210px; }
.listbox { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(0,0,0,.18); max-height: 360px; overflow-y: auto; margin: 0; padding: 6px; list-style: none; }
.listbox li { padding: 10px 12px; border-radius: 8px; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; }
.listbox li[aria-selected="true"] { background: var(--sunken); outline: 2px solid var(--teal); }
:root[data-theme="dark"] .listbox li[aria-selected="true"] { background: #1f3328; }
.listbox li .opt-name { font-weight: 600; color: var(--ink-strong); }
.listbox li .opt-meta { color: var(--muted); font-size: .85rem; text-align: right; }
.listbox .tag-old { display: inline-block; font-size: .75rem; color: var(--warn-ink); background: var(--warn-bg); border-radius: 6px; padding: 1px 6px; margin-left: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding: 0; list-style: none; }
.chips a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--hd-line); color: #fff; text-decoration: none; font-weight: 500; font-size: .95rem; }
.chips a:hover { background: var(--hd-soft); border-color: #c8952a; }
.chips-label { color: var(--hd-muted); font-size: .9rem; margin: 22px 0 0; }

/* National strip */
.strip { background: var(--surface); border-bottom: 1px solid var(--line); }
.strip-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin: 0; padding: 0; list-style: none; }
.strip-list li { padding: 22px 20px 22px 0; border-right: 1px solid var(--line); margin-right: 20px; }
.strip-list li:last-child { border-right: 0; }
.strip-value { font-family: var(--display); display: block; font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 700; color: var(--ink-strong); letter-spacing: -0.02em; }
.strip-label { display: block; color: var(--muted); font-size: .9rem; }
.strip-note { color: var(--muted); font-size: .85rem; padding: 0 0 18px; margin: 0; }

.section { padding: clamp(32px, 5vw, 56px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 20px; }
.section-head p { margin: 0; color: var(--muted); }

/* Dashboard header */
.dash-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 28px 0 0; }
.dash-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.dash-title h1 { font-size: clamp(1.8rem, 4.4vw, 2.9rem); margin: 0; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 12px 0 0; padding: 0; list-style: none; color: var(--muted); }
.facts strong { color: var(--ink-strong); font-weight: 600; }
.controls { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: end; margin: 20px 0 0; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 200px; }
.field label { font-weight: 600; font-size: .9rem; color: var(--ink-strong); }
.field select { min-height: 48px; border: 1px solid var(--line-strong); font-size: 1rem; background: var(--surface); color: var(--ink-strong); }
.subnav { display: flex; gap: 2px; overflow-x: auto; margin: 22px 0 0; padding: 0; list-style: none; scrollbar-width: none; }
.subnav button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 12px 12px; font: 500 .95rem var(--font); color: var(--ink); cursor: pointer; white-space: nowrap; }
.subnav button:hover { color: var(--teal-text); border-bottom-color: var(--line-strong); }

.notice { background: var(--warn-bg); color: var(--warn-ink); border-left: 4px solid var(--warn-line); padding: 12px 16px; border-radius: var(--radius-sm); margin: 16px 0; max-width: 80ch; }
.notice p { margin: 0; }
.notice.info { background: var(--surface); color: var(--ink); border-left-color: var(--teal); }

/* Summary cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; }
.card-label { display: flex; justify-content: space-between; align-items: start; gap: 8px; font-weight: 600; color: var(--ink-strong); }
.card-value { font-family: var(--display); font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 700; letter-spacing: -0.03em; color: var(--ink-strong); line-height: 1.1; }
.card-value.na { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.card-sub { color: var(--muted); font-size: .9rem; margin: 0; }
.card-foot { margin-top: auto; padding-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; }

.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-strong); cursor: pointer; font: 700 .9rem var(--font); }
.icon-btn:hover { border-color: var(--teal); color: var(--teal-text); }
.link-btn { background: none; border: 0; padding: 6px 0; color: var(--teal-text); font: 500 .875rem var(--font); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 32px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--teal); color: #fff; font: 600 .95rem var(--font); cursor: pointer; text-decoration: none; }
.btn.secondary { background: transparent; color: var(--ink-strong); border: 1px solid var(--line-strong); }
:root[data-theme="dark"] .btn { background: var(--teal-bright); color: #0b1a12; }

/* Per-R100 bar: the one bold element */
.r100 { margin: 8px 0 4px; }
.r100-bar { display: flex; height: 64px; border-radius: 14px; overflow: hidden; background: var(--line); }
.r100-seg { min-width: 2px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: .95rem; border-right: 2px solid var(--surface); }
.r100-seg:last-child { border-right: 0; }
.r100-seg.dark-text { color: #17231d; }
.r100-key { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px 24px; margin: 18px 0 0; padding: 0; list-style: none; }
.r100-key li { display: grid; grid-template-columns: 14px auto 1fr; gap: 10px; align-items: baseline; }
.swatch { width: 14px; height: 14px; border-radius: 4px; display: inline-block; transform: translateY(2px); }
.r100-amt { font-family: var(--display); font-weight: 700; color: var(--ink-strong); font-size: 1.15rem; }

/* Horizontal bars */
.hbar { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.hbar-row { display: grid; grid-template-columns: minmax(130px, 1.1fr) 2fr auto; gap: 12px; align-items: center; padding: 8px 6px; border-radius: 8px; }
.hbar-row.clickable { cursor: pointer; width: 100%; background: none; border: 0; text-align: left; font: inherit; color: inherit; }
.hbar-row.clickable:hover { background: var(--bg); }
.hbar-label { font-weight: 500; color: var(--ink-strong); }
.hbar-track { display: block; height: 14px; background: var(--bg); border-radius: 999px; overflow: hidden; }
:root[data-theme="dark"] .hbar-track { background: var(--sunken); }
.hbar-fill { display: block; height: 100%; border-radius: 999px; background: var(--c1); width: 0; }
.hbar-val { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hbar-val small { color: var(--muted); margin-left: 6px; }
.hbar-detail { padding: 6px 6px 14px 22px; border-left: 3px solid var(--teal); margin: 0 0 8px 6px; }
.chev { display: inline-block; transition: transform .15s; margin-right: 6px; color: var(--muted); }
[aria-expanded="true"] .chev { transform: rotate(90deg); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; }
.panel + .panel { margin-top: 16px; }
.panel h3 { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.donut-wrap { display: grid; place-items: center; }
.donut-wrap svg { width: min(100%, 280px); height: auto; }
.donut-total { font: 700 22px var(--display); fill: var(--ink-strong); }
.donut-cap { font: 500 12px var(--font); fill: var(--muted); }
.toggle { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px; gap: 2px; }
.toggle button { border: 0; background: none; border-radius: 999px; padding: 8px 14px; font: 500 .9rem var(--font); color: var(--ink); cursor: pointer; min-height: 38px; }
.toggle button[aria-pressed="true"] { background: var(--teal); color: #fff; }
:root[data-theme="dark"] .toggle button[aria-pressed="true"] { background: var(--teal-bright); color: #0b1a12; }

/* Ledger rows for indicators */
.ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ledger > li { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 12px 20px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.ledger-name { font-weight: 600; color: var(--ink-strong); }
.ledger-name small { display: block; font-weight: 400; color: var(--muted); margin-top: 2px; }
.ledger-value { font-family: var(--display); font-size: 1.35rem; font-weight: 700; color: var(--ink-strong); font-variant-numeric: tabular-nums; }
.ledger-value.na { font-size: .95rem; font-weight: 500; color: var(--muted); }
.ledger-value small { display: block; font-size: .85rem; font-weight: 400; color: var(--muted); }
.ledger-actions { display: flex; gap: 6px; align-items: center; }

/* Charts */
.chart { width: 100%; overflow-x: auto; }
.chart svg { display: block; width: 100%; min-width: 520px; height: auto; }
.chart text { font: 12px var(--font); fill: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 8px 0 0; padding: 0; list-style: none; font-size: .9rem; }
.legend li { display: flex; align-items: center; gap: 8px; }
details.table-toggle { margin-top: 12px; }
details.table-toggle summary { cursor: pointer; color: var(--teal-text); font-weight: 500; min-height: 32px; }
.table-scroll { overflow-x: auto; }
table.data { border-collapse: collapse; width: 100%; font-size: .92rem; margin-top: 8px; }
table.data th, table.data td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data td.n, table.data th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data thead th { color: var(--ink-strong); border-bottom: 2px solid var(--line-strong); }
table.data tr.subtotal td { font-weight: 600; color: var(--ink-strong); }

/* Audit timeline */
.audit-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.audit-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: var(--surface); border-top: 6px solid var(--line-strong); }
.audit-item[data-tone="clean"] { border-top-color: var(--good); }
.audit-item[data-tone="findings"] { border-top-color: var(--teal); }
.audit-item[data-tone="qualified"] { border-top-color: var(--orange); }
.audit-item[data-tone="adverse"], .audit-item[data-tone="disclaimer"] { border-top-color: var(--clay); }
.audit-year { font-weight: 700; color: var(--ink-strong); }
.audit-plain { font-weight: 600; margin: 4px 0; }
.audit-source { color: var(--muted); font-size: .85rem; margin: 0 0 6px; }

/* Compare */
.compare-pickers { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.compare-pickers .search input { border: 1px solid var(--line-strong); }
.pair { display: grid; gap: 6px; }
.pair-row { display: grid; grid-template-columns: 110px 1fr auto; gap: 10px; align-items: center; font-size: .92rem; }
.pair-row .hbar-fill.b { background: var(--orange); }

.prose { max-width: 75ch; }
.prose h2 { margin-top: 1.6em; }
.prose li { margin-bottom: .4em; }

.skeleton { color: var(--muted); padding: 12px 0; }
.skeleton::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 10px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--teal); animation: spin .9s linear infinite; vertical-align: -2px; }
.error-box { border-left: 4px solid var(--bad-ink); background: var(--surface); padding: 12px 16px; border-radius: var(--radius-sm); }

dialog { border: 0; border-radius: var(--radius-lg); padding: 0; width: min(640px, 100% - 24px); max-height: 85vh; background: var(--surface); color: var(--ink); box-shadow: 0 24px 60px rgba(0,0,0,.35); }
dialog::backdrop { background: rgba(8, 20, 14, .55); }
.dialog-body { padding: 24px; }
.dialog-body dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0 0 16px; }
.dialog-body dt { font-weight: 600; color: var(--ink-strong); }
.dialog-body dd { margin: 0; overflow-wrap: anywhere; }
.dialog-body h3 { margin-top: 1.1em; font-size: 1rem; }

.site-footer { background: var(--deep); color: var(--hd-muted); padding: 36px 0 48px; margin-top: 48px; font-size: .92rem; }
.site-footer a { color: var(--teal-bright); }
.site-footer strong { color: #fff; font-size: 1.05rem; }

@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; }
  .ledger > li { grid-template-columns: 1fr auto; }
  .ledger-value { grid-column: 1 / 2; }
  .ledger-actions { grid-row: 1 / 2; grid-column: 2; }
  .hbar-row { grid-template-columns: 1fr auto; }
  .hbar-track { grid-column: 1 / -1; grid-row: 2; }
  .search-row { flex-direction: column; }
  .search .province-filter { max-width: none; }
  .strip-list li { border-right: 0; border-bottom: 1px solid var(--line); margin-right: 0; padding: 14px 0; }
  .status-meta { flex-basis: 100%; }
  .brand-text span { display: none; }
  .r100-bar { height: 48px; }
  .r100-seg span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .status, .site-nav, .subnav, .controls, .btn-refresh, .theme-toggle { display: none; }
}
.mt-s { margin-top: 12px; } .mt-m { margin-top: 16px; } .mt-l { margin-top: 24px; } .mt-xl { margin-top: 32px; } .mb-s { margin-bottom: 12px; }
.narrow { max-width: 280px; } .pair-cell { min-width: 160px; }
.lead-num { font-size: 1.15rem; color: var(--ink-strong); }
.panel h4 { margin: 20px 0 6px; font-size: .95rem; color: var(--ink-strong); }
.panel .card-value { margin: 4px 0 0; }

.split > .panel + .panel, .split > div > .panel:first-child { margin-top: 0; }
.split + .panel { margin-top: 16px; }
:root[data-theme="dark"] .brand-mark { box-shadow: inset 0 0 0 1px var(--hd-line); }
.status-more { display: none; }
@media (max-width: 760px) {
  .status-more { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--hd-line); background: transparent; color: #fff; font: 500 .85rem var(--font); cursor: pointer; }
  .status-meta div:not(:first-child) { display: none; }
  .status.expanded .status-meta div { display: flex; }
  .status-inner { gap: 8px 12px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card { padding: 14px; border-radius: var(--radius); }
  .card-value { font-size: 1.35rem; }
  .card-value.na { font-size: .85rem; }
  .card-sub { font-size: .8rem; }
}
