:root {
  color-scheme: light;
  --bg: #f3f4f6; --surface: #ffffff; --surface-2: #f8f9fb; --line: #e4e6eb; --grid: #eef0f3;
  --text: #0e1116; --text-2: #4a5160; --text-3: #848b98; --accent: #2a78d6; --accent-2: #1f63b8; --accent-soft: #e8f1fc; --on-accent: #fff;
  --ink: #0e1116; --on-ink: #fff; --hero-ink: #fff;
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100; --s5: #e87ba4; --s6: #008300; --s7: #4a3aa7; --s8: #e34948;
  --good: #0ca30c; --warn: #fab219; --crit: #d03b3b; --up: #0b7a0b; --down: #c22f2f;
  --ok-fg: #0a7a0a; --ok-bg: #e6f4e6; --bad-fg: #b02a2a; --bad-bg: #fbe9e9; --warn-fg: #8a5a00; --warn-bg: #fff4d6;
  --info-fg: #1d5aa6; --chip-fg: #164a8a; --callout-line: #c9ddf6; --callout-fg: #1d4f8f;
  --callout-warn-bg: #fff8e6; --callout-warn-line: #f3dca0; --callout-warn-fg: #6b4a00; --now-line: #cde8cd;
  --heat-lo: #eef4fc; --scrim: rgba(15,20,30,.35);
  --shadow-sm: 0 1px 2px rgba(16,24,40,.05); --shadow: 0 1px 3px rgba(16,24,40,.06), 0 1px 2px rgba(16,24,40,.04);
  --shadow-lg: 0 18px 50px rgba(16,24,40,.18);
  --side: 232px; --r: 14px;
}
/* Dark: the device's choice, unless the toggle says light; or the toggle says dark. */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  color-scheme: dark;
  --bg: #0d1117; --surface: #161b22; --surface-2: #1c222b; --line: #2a313c; --grid: #222a33;
  --text: #e6e9ef; --text-2: #b3bbc8; --text-3: #8a93a3; --accent: #5aa2f0; --accent-2: #7cb6f5; --accent-soft: #15263c; --on-accent: #0d1117;
  --ink: #e6e9ef; --on-ink: #0d1117;
  --s1: #4c93ee; --s2: #f07c4e; --s3: #34c08c; --s4: #f2b52a; --s5: #ef8fb4; --s6: #3fb33f; --s7: #8c7ef2; --s8: #f0605f;
  --good: #3fb950; --warn: #f2b52a; --crit: #f0605f; --up: #3fb950; --down: #f0605f;
  --ok-fg: #56d364; --ok-bg: #15301c; --bad-fg: #ff8a85; --bad-bg: #3a1a1c; --warn-fg: #f2c55c; --warn-bg: #352a10;
  --info-fg: #8cc0f7; --chip-fg: #9cc7f7; --callout-line: #23405f; --callout-fg: #a9cdf5;
  --callout-warn-bg: #2d2410; --callout-warn-line: #5a4716; --callout-warn-fg: #f2c55c; --now-line: #24452c;
  --heat-lo: #18263a; --scrim: rgba(0,0,0,.55);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3); --shadow: 0 1px 3px rgba(0,0,0,.35); --shadow-lg: 0 18px 50px rgba(0,0,0,.55);
} }
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1117; --surface: #161b22; --surface-2: #1c222b; --line: #2a313c; --grid: #222a33;
  --text: #e6e9ef; --text-2: #b3bbc8; --text-3: #8a93a3; --accent: #5aa2f0; --accent-2: #7cb6f5; --accent-soft: #15263c; --on-accent: #0d1117;
  --ink: #e6e9ef; --on-ink: #0d1117;
  --s1: #4c93ee; --s2: #f07c4e; --s3: #34c08c; --s4: #f2b52a; --s5: #ef8fb4; --s6: #3fb33f; --s7: #8c7ef2; --s8: #f0605f;
  --good: #3fb950; --warn: #f2b52a; --crit: #f0605f; --up: #3fb950; --down: #f0605f;
  --ok-fg: #56d364; --ok-bg: #15301c; --bad-fg: #ff8a85; --bad-bg: #3a1a1c; --warn-fg: #f2c55c; --warn-bg: #352a10;
  --info-fg: #8cc0f7; --chip-fg: #9cc7f7; --callout-line: #23405f; --callout-fg: #a9cdf5;
  --callout-warn-bg: #2d2410; --callout-warn-line: #5a4716; --callout-warn-fg: #f2c55c; --now-line: #24452c;
  --heat-lo: #18263a; --scrim: rgba(0,0,0,.55);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3); --shadow: 0 1px 3px rgba(0,0,0,.35); --shadow-lg: 0 18px 50px rgba(0,0,0,.55);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.45 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-feature-settings: "cv11", "ss01"; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input { font: inherit; color: inherit; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85em; }
/* layout */
.app { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
aside.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--surface); border-right: 1px solid var(--line); padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand .pair, .mobile-brand .pair { display: flex; align-items: center; gap: 5px; flex: none; }
.pair > img, .brand .pair .jj, .mobile-brand .pair .jj { width: 30px; height: 30px; border-radius: 9px; box-shadow: 0 3px 10px rgba(16,24,40,.16); }
.brand .pair .jj, .mobile-brand .pair .jj { display: grid; place-items: center; background: linear-gradient(140deg, #5a46c8 0%, #3b2a86 55%, #1f1650 100%); }
.pair .jj img { display: block; width: 28px; height: 28px; }
.brand { white-space: nowrap; }
.brand b { font-size: 0.95rem; }
.brand .dom, .mobile-brand .dom { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.72rem; color: var(--accent); }
.brand b { display: block; font-size: 0.98rem; letter-spacing: -0.01em; }
.brand span { display: block; color: var(--text-3); font-size: 0.74rem; }
nav.side-nav button { display: flex; width: 100%; align-items: center; gap: 10px; border: 0; background: none; padding: 8px 10px; border-radius: 9px; cursor: pointer; color: var(--text-2); font-weight: 500; text-align: left; }
nav.side-nav button svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
nav.side-nav button:hover { background: var(--surface-2); color: var(--text); }
nav.side-nav button[aria-current="true"] { background: var(--accent-soft); color: var(--accent); }
nav.side-nav .count { margin-left: auto; font-size: 0.7rem; font-weight: 700; border-radius: 99px; padding: 1px 7px; background: var(--good); color: #fff; font-variant-numeric: tabular-nums; }
.side-foot { margin-top: auto; padding: 14px 10px 4px; color: var(--text-3); font-size: 0.74rem; border-top: 1px solid var(--line); }
.side-foot a { color: var(--text-2); }
.side-links { display: grid; gap: 2px; margin: 0 0 12px; }
.side-links a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--text-2); font-size: 0.8rem; }
.side-links a:hover { background: var(--surface-2); color: var(--accent); text-decoration: none; }
.mobile-brand { display: none; }
.show-sm { display: none; }
main { min-width: 0; padding: 20px 28px 40px; }
.top { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-end; justify-content: space-between; margin-bottom: 14px; }
.top h1 { margin: 0; font-size: 1.45rem; letter-spacing: -0.02em; }
.top .sub { color: var(--text-3); font-size: 0.84rem; margin-top: 2px; }
.controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.live { display: inline-flex; align-items: center; gap: 7px; font-size: 0.78rem; color: var(--text-2); background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 5px 11px; box-shadow: var(--shadow-sm); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--good); animation: pulse 2s infinite; }
.live.stale i { background: var(--warn); animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(12,163,12,.45); } 70% { box-shadow: 0 0 0 7px rgba(12,163,12,0); } 100% { box-shadow: 0 0 0 0 rgba(12,163,12,0); } }
.theme { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); cursor: pointer; box-shadow: var(--shadow-sm); padding: 0; }
.theme:hover { color: var(--accent); border-color: var(--accent); }
.theme svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 3px; box-shadow: var(--shadow-sm); }
.seg button { border: 0; background: none; color: var(--text-2); padding: 5px 11px; border-radius: 7px; cursor: pointer; font-weight: 500; font-size: 0.84rem; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
nav.tabs { display: flex; gap: 4px; overflow-x: auto; margin: 4px 0 16px; scrollbar-width: none; border-bottom: 1px solid var(--line); }
nav.tabs button { border: 0; background: none; color: var(--text-2); padding: 9px 12px; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; font-weight: 500; margin-bottom: -1px; }
nav.tabs button:hover { color: var(--text); }
nav.tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }
/* tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 14px; }
.tiles:empty { display: none; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px 12px; min-width: 0; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.tile .k { color: var(--text-2); font-size: 0.78rem; font-weight: 500; }
.tile .v { font-size: 1.7rem; font-weight: 700; letter-spacing: -0.025em; margin-top: 4px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.15; }
.tile .v small { font-size: 0.55em; font-weight: 600; color: var(--text-3); margin-left: 2px; letter-spacing: 0; }
.tile .n { color: var(--text-3); font-size: 0.75rem; margin-top: 3px; min-height: 1.1em; }
.tile .sp { height: 30px; margin-top: 6px; }
.tile.hero { background: linear-gradient(140deg, #43a6df 0%, #2a78d6 60%, #2563c4 100%); border-color: transparent; color: #fff; }
.tile.hero .k, .tile.hero .n, .tile.hero .v small { color: rgba(255,255,255,.82); }
.tile.hero .delta { background: rgba(255,255,255,.18); color: #fff; }
.delta { display: inline-block; font-size: 0.72rem; font-weight: 700; font-variant-numeric: tabular-nums; padding: 1px 6px; border-radius: 99px; }
.delta.up { color: var(--up); background: var(--ok-bg); } .delta.down { color: var(--down); background: var(--bad-bg); } .delta.flat { color: var(--text-3); background: var(--surface-2); }
/* cards */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.card { grid-column: span 6; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; min-width: 0; box-shadow: var(--shadow); }
.card.w12 { grid-column: 1 / -1; } .card.w4 { grid-column: span 4; } .card.w8 { grid-column: span 8; }
.card h2 { font-size: 0.95rem; margin: 0 0 2px; display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; letter-spacing: -0.005em; }
.card .note { color: var(--text-3); font-size: 0.8rem; margin: 0 0 12px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 2px 0 8px; font-size: 0.78rem; color: var(--text-2); }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: var(--c); }
.legend span.dash::before { height: 0; border-top: 2px dashed var(--c); background: none; width: 14px; vertical-align: 3px; }
svg { display: block; width: 100%; height: auto; overflow: visible; }
svg text { fill: var(--text-3); font-size: 11px; font-family: inherit; }
.gridline { stroke: var(--grid); }
.axis { stroke: var(--line); }
.mark line { stroke: var(--text-3); stroke-dasharray: 1 4; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--grid); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
th { color: var(--text-3); font-weight: 600; font-size: 0.72rem; text-transform: uppercase; letter-spacing: .04em; position: sticky; top: 0; background: var(--surface); z-index: 1; white-space: nowrap; }
tbody tr:hover td { background: var(--surface-2); }
td.num, th.num { text-align: right; white-space: nowrap; }
td .meta { color: var(--text-3); font-size: 0.75rem; overflow-wrap: anywhere; }
td.wrap { overflow-wrap: anywhere; }
td.spark { width: 120px; }
td.spark svg { height: 24px; }
tr.clickable { cursor: pointer; }
.bar { height: 5px; border-radius: 3px; margin-top: 5px; min-width: 2px; opacity: .9; }
.fill { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.fill .meter { width: 64px; margin: 0; }
.scroll { max-height: 560px; overflow: auto; }
.tip { position: fixed; pointer-events: none; background: rgba(17,21,28,.94); color: #fff; border-radius: 9px; padding: 8px 11px; font-size: 0.78rem; box-shadow: var(--shadow-lg); display: none; z-index: 30; max-width: 320px; }
.tip .row { display: flex; gap: 14px; justify-content: space-between; }
.tip .row span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; }
.tip .row span:first-child::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; background: var(--c); }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 0.68rem; font-weight: 600; padding: 1px 7px; border-radius: 99px; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); white-space: nowrap; vertical-align: 1px; margin-left: 4px; }
.pill.ok { color: var(--ok-fg); background: var(--ok-bg); border-color: transparent; }
.pill.bad { color: var(--bad-fg); background: var(--bad-bg); border-color: transparent; }
.pill.warn { color: var(--warn-fg); background: var(--warn-bg); border-color: transparent; }
.pill.info { color: var(--info-fg); background: var(--accent-soft); border-color: transparent; }
.empty { color: var(--text-3); padding: 22px 0; text-align: center; }
.linkbtn { border: 0; background: none; color: var(--accent); padding: 0; cursor: pointer; text-align: left; font-weight: 600; }
.linkbtn:hover { text-decoration: underline; }
.play { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--on-accent); vertical-align: middle; box-shadow: 0 2px 6px rgba(42,120,214,.35); }
.play svg { width: 12px; height: 12px; fill: currentColor; margin-left: 2px; }
.play:hover { background: var(--accent-2); text-decoration: none; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 8px 0 4px; }
.kv div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; min-width: 0; }
.kv b { display: block; font-size: 1.15rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kv span { color: var(--text-3); font-size: 0.75rem; }
.meter { height: 8px; background: var(--grid); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.meter i { display: block; height: 100%; border-radius: 99px; background: var(--s1); }
.meter.full i { background: var(--s2); }
.nodes { display: grid; gap: 8px; }
.node { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.node .dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--good); }
.node.quiet .dot { background: var(--warn); }
.node b { display: block; font-size: 0.86rem; }
.node span { color: var(--text-3); font-size: 0.76rem; }
.node .n { margin-left: auto; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.callout { background: var(--accent-soft); border: 1px solid var(--callout-line); border-radius: 10px; padding: 10px 12px; font-size: 0.84rem; color: var(--callout-fg); margin-bottom: 14px; }
.callout.warn { background: var(--callout-warn-bg); border-color: var(--callout-warn-line); color: var(--callout-warn-fg); }
.timeline .day { font-weight: 700; font-size: 0.8rem; color: var(--text-2); margin: 14px 0 6px; }
.timeline .day:first-child { margin-top: 0; }
.timeline .ev { display: flex; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--grid); font-size: 0.86rem; align-items: baseline; }
.timeline .ev time { color: var(--text-3); font-variant-numeric: tabular-nums; flex: none; width: 46px; }
.timeline .ev .dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--text-3); align-self: center; }
.timeline .ev.new .dot { background: var(--s3); } .timeline .ev.back .dot { background: var(--s1); } .timeline .ev.gone .dot { background: var(--s8); }
.timeline .ev.rename .dot { background: var(--s4); } .timeline .ev.record .dot { background: var(--s7); }
.heat rect.c { stroke: var(--surface); stroke-width: 2; rx: 3; }
.heatkey { display: flex; align-items: center; gap: 8px; font-size: 0.75rem; color: var(--text-3); margin-top: 8px; }
.heatkey i { display: inline-block; width: 120px; height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--heat-lo), var(--s1)); }
.search { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.search input { flex: 1 1 220px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.tscore { display: inline-block; min-width: 22px; text-align: center; padding: 0 6px; border-radius: 6px; font-variant-numeric: tabular-nums; color: var(--text); background: color-mix(in srgb, var(--c) 14%, var(--surface)); border-left: 3px solid var(--c); }
.tscore.win { font-weight: 800; }
.dash { color: var(--text-3); margin: 0 4px; }
.share { display: flex; height: 14px; border-radius: 99px; overflow: hidden; background: var(--grid); margin: 10px 0 14px; gap: 2px; }
.share i { display: block; height: 100%; min-width: 3px; }
.share-legend { display: grid; gap: 8px; }
.share-legend div { display: grid; grid-template-columns: 1fr auto 48px; gap: 10px; align-items: baseline; font-size: 0.84rem; }
.share-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; background: var(--c); vertical-align: -1px; }
.share-legend b { font-variant-numeric: tabular-nums; }
.share-legend em { font-style: normal; color: var(--text-3); text-align: right; font-variant-numeric: tabular-nums; }
.who { display: flex; flex-wrap: wrap; gap: 5px; }
.who.none { color: var(--text-3); font-size: 0.8rem; font-style: italic; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px; background: var(--accent-soft); color: var(--chip-fg); font-size: 0.8rem; font-weight: 600; cursor: pointer; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 1px solid transparent; }
.chip:hover, .chip:focus-visible { border-color: var(--accent); outline: none; }
.chip b { font-variant-numeric: tabular-nums; color: var(--accent); font-weight: 700; }
.chip em { font-style: normal; font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; opacity: .75; }
.chip.spec { background: var(--surface-2); color: var(--text-2); border-color: var(--line); }
.tdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.chip.bot, .chip.host { background: transparent; color: var(--text-3); border: 1px dashed var(--line); cursor: default; font-weight: 500; }
.now-card { border-color: var(--now-line); }
td.ret { background: color-mix(in srgb, var(--s1) calc(var(--a) * 34%), var(--surface)); }
td.ret b { display: block; }
td.ret span { color: var(--text-3); font-size: 0.72rem; }
.drawer-bg { position: fixed; inset: 0; background: var(--scrim); display: none; z-index: 20; backdrop-filter: blur(2px); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(780px, 100%); background: var(--bg); box-shadow: var(--shadow-lg); z-index: 21; overflow: auto; transform: translateX(105%); transition: transform .22s ease; padding: 20px 18px 40px; }
.drawer.open { transform: none; }
.drawer-bg.open { display: block; }
.drawer .close { position: sticky; top: 0; float: right; border: 1px solid var(--line); background: var(--surface); border-radius: 9px; padding: 5px 11px; cursor: pointer; box-shadow: var(--shadow-sm); z-index: 2; }
.drawer h2.title { margin: 0 0 4px; font-size: 1.15rem; padding-right: 80px; overflow-wrap: anywhere; }
.drawer .sub { color: var(--text-3); font-size: 0.84rem; }
.drawer .card { margin-top: 12px; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
footer { color: var(--text-3); font-size: 0.78rem; padding-top: 26px; }
footer p { margin: 6px 0; }
details summary { cursor: pointer; color: var(--text-2); }
.mobile-nav { display: none; }
@media (max-width: 1100px) { .card, .card.w4, .card.w8 { grid-column: 1 / -1; } .hide-md { display: none; } }
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  aside.side { display: none; }
  main { padding: 12px 16px 32px; }
  .mobile-brand { display: flex; align-items: center; gap: 8px; color: var(--text); margin-bottom: 8px; }
  .mobile-brand:hover { text-decoration: none; }
  .mobile-brand .pair { width: 42px; height: 28px; }
  .mobile-brand .pair > img, .mobile-brand .pair .jj { width: 26px; height: 26px; border-radius: 7px; }
  .mobile-brand .pair .jj img { width: 24px; height: 24px; }
  .mobile-nav { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 10px; scrollbar-width: none; }
  .mobile-nav button { flex: none; border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 6px 13px; font-weight: 500; color: var(--text-2); cursor: pointer; }
  .mobile-nav button[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
  .tile .v { font-size: 1.3rem; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile { padding: 12px; }
  .tile.hero { grid-column: 1 / -1; }
  .seg button { padding: 5px 8px; }
  td.spark, th.spark, .hide-sm, .fill .meter { display: none; }
    .show-sm { display: block; margin-top: 3px; }
}
@media (prefers-reduced-motion: reduce) { .drawer { transition: none; } .live i { animation: none; } }
