/* Tokens: chart chrome and the 8 categorical slots follow the validated reference
   palette (light and dark are each selected, not flipped). */
:root {
  color-scheme: light;
  --page: #f9f9f7;
  --surface: #fcfcfb;
  --surface-2: #f2f1ed;
  --ink: #0b0b0b;
  --ink-2: #52514e;
  --muted: #6f6d68;
  --axis-ink: #898781;
  --grid: #e1e0d9;
  --axis: #c3c2b7;
  --border: rgba(11, 11, 11, 0.1);
  --accent: #2a78d6;
  --accent-ink: #ffffff;
  --up: #006300;
  --down: #c02f2f;
  --warning: #fab219;
  --critical: #d03b3b;
  --good: #0ca30c;
  --wash: 0.1;
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --series-3: #1baf7a;
  --series-4: #eda100;
  --series-5: #e87ba4;
  --series-6: #008300;
  --series-7: #6250d6;
  --series-8: #e34948;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(11, 11, 11, 0.04);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #0d0d0d;
    --surface: #1a1a19;
    --surface-2: #242422;
    --ink: #f0efec;
    --ink-2: #c3c2b7;
    --muted: #9a988f;
    --axis-ink: #898781;
    --grid: #2c2c2a;
    --axis: #383835;
    --border: rgba(255, 255, 255, 0.1);
    --accent: #3987e5;
    --up: #0ca30c;
    --down: #e66767;
    --wash: 0.14;
    --series-1: #3987e5;
    --series-2: #d95926;
    --series-3: #199e70;
    --series-4: #c98500;
    --series-5: #d55181;
    --series-6: #008300;
    --series-7: #9085e9;
    --series-8: #e66767;
    --shadow: none;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0d0d0d;
  --surface: #1a1a19;
  --surface-2: #242422;
  --ink: #f0efec;
  --ink-2: #c3c2b7;
  --muted: #9a988f;
  --axis-ink: #898781;
  --grid: #2c2c2a;
  --axis: #383835;
  --border: rgba(255, 255, 255, 0.1);
  --accent: #3987e5;
  --up: #0ca30c;
  --down: #e66767;
  --wash: 0.14;
  --series-1: #3987e5;
  --series-2: #d95926;
  --series-3: #199e70;
  --series-4: #c98500;
  --series-5: #d55181;
  --series-6: #008300;
  --series-7: #9085e9;
  --series-8: #e66767;
  --shadow: none;
}

/* Identity colour per channel slot: marks read var(--c). */
.c1 { --c: var(--series-1); }
.c2 { --c: var(--series-2); }
.c3 { --c: var(--series-3); }
.c4 { --c: var(--series-4); }
.c5 { --c: var(--series-5); }
.c6 { --c: var(--series-6); }
.c7 { --c: var(--series-7); }
.c8 { --c: var(--series-8); }

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 14px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif;
}

a { color: inherit; }
a:hover { color: var(--accent); }

h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.25; }
h1 { font-size: 22px; }
h2 { font-size: 16px; }
h3 { font-size: 14px; }

button, input, select, textarea { font: inherit; color: inherit; }

/* ---------------------------------------------------------------- shell */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.brand { font-weight: 650; text-decoration: none; white-space: nowrap; }
.topbar nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; }
.topbar nav a {
  padding: 6px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink-2);
  white-space: nowrap;
}
.topbar nav a[aria-current="page"] { background: var(--surface-2); color: var(--ink); font-weight: 600; }
.topbar form { margin: 0; }

main { max-width: 1240px; margin: 0 auto; padding: 20px 24px 64px; }

.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.page-head .sub { color: var(--ink-2); margin-top: 4px; }
.page-head .avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.title-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.title-row h1 { overflow-wrap: anywhere; }

.banner {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.banner.info { border-left: 4px solid var(--accent); }
.banner.error { border-left: 4px solid var(--critical); }
.banner.ok { border-left: 4px solid var(--good); }
.banner .icon { font-weight: 700; }

/* Filter row: one row above everything it scopes. */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.segmented { display: inline-flex; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; background: var(--surface); }
.segmented button { border: 0; background: none; padding: 6px 12px; cursor: pointer; color: var(--ink-2); }
.segmented button + button { border-left: 1px solid var(--border); }
.segmented button[aria-pressed="true"] { background: var(--surface-2); color: var(--ink); font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: 12px; }

/* ---------------------------------------------------------------- cards & tiles */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  min-width: 0;
}
.card > h2 { margin-bottom: 4px; }
.card > .desc { color: var(--ink-2); margin: 0 0 12px; font-size: 13px; }
.section { margin-top: 20px; }
.section > h2 { margin-bottom: 10px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; min-width: 0; }
.tile .label { color: var(--ink-2); font-size: 12.5px; }
.tile .value { font-size: 22px; font-weight: 600; margin-top: 2px; white-space: nowrap; }
.tile .delta { font-size: 12px; margin-top: 2px; color: var(--muted); }
.tile.na .value { color: var(--muted); font-weight: 500; }
.delta.up { color: var(--up); }
.delta.down { color: var(--down); }

.hero { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-bottom: 12px; }
.hero .value { font-size: 48px; font-weight: 600; line-height: 1; }
.hero .label { color: var(--ink-2); }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 12px; }
.channel-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 12px; }

.channel-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.channel-card:hover { border-color: var(--axis); color: inherit; }
.channel-card .head { display: flex; align-items: flex-start; gap: 8px; }
.channel-card .head h3 { flex: 1; overflow-wrap: anywhere; }
.key { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; margin-top: 4px; }
.line-key { display: inline-block; width: 14px; height: 2px; border-radius: 1px; background: var(--c); vertical-align: middle; }
.mini-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 10px; }
.mini-metrics div { min-width: 0; }
.mini-metrics .l { color: var(--muted); font-size: 11.5px; }
.mini-metrics .v { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 12px;
  background: var(--surface-2);
  color: var(--ink-2);
  white-space: nowrap;
}
.chip.status-due::before { content: "!"; font-weight: 700; color: var(--critical); }
.chip.status-live::before { content: "●"; color: var(--good); font-size: 9px; }
.chip.status-error::before { content: "✕"; font-weight: 700; color: var(--critical); }
.chip.sample { border: 1px dashed var(--axis); background: transparent; }

/* ---------------------------------------------------------------- tables */

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -16px; padding: 0 16px; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th, td { padding: 7px 10px; text-align: left; border-bottom: 1px solid var(--grid); white-space: nowrap; vertical-align: top; }
th { font-weight: 600; color: var(--ink-2); font-size: 12px; position: relative; }
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: var(--ink); }
th[aria-sort="ascending"]::after { content: " ↑"; }
th[aria-sort="descending"]::after { content: " ↓"; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.title-cell { white-space: normal; min-width: 220px; max-width: 360px; }
tbody tr:hover { background: var(--surface-2); }
.sticky-col { position: sticky; left: 0; background: var(--surface); z-index: 1; }
tbody tr:hover .sticky-col { background: var(--surface-2); }

details.data-table { margin-top: 8px; }
details.data-table summary { cursor: pointer; color: var(--muted); font-size: 12px; }
details.data-table .table-wrap { max-height: 280px; overflow-y: auto; margin-top: 6px; }

/* ---------------------------------------------------------------- forms */

.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 10px 12px; }
.form-grid .wide { grid-column: 1 / -1; }
label.field { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--ink-2); }
input[type="text"], input[type="number"], input[type="date"], input[type="password"], select, textarea {
  width: 100%;
  padding: 7px 9px;
  border: 1px solid var(--axis);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  min-width: 0;
}
textarea { min-height: 70px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.check { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin-top: 12px; }
.row-actions { display: inline-flex; gap: 6px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid var(--axis);
  background: var(--surface);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { background: var(--surface-2); color: var(--ink); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); color: var(--accent-ink); }
.btn.danger { color: var(--down); }
.btn.small { padding: 3px 9px; font-size: 12.5px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
button.ghost { border: 0; background: none; color: var(--ink-2); cursor: pointer; padding: 6px 8px; }
button.ghost:hover { color: var(--ink); }

.list { display: flex; flex-direction: column; }
.list-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 0; border-bottom: 1px solid var(--grid); }
.list-row:last-child { border-bottom: 0; }
.list-row .grow { flex: 1 1 220px; min-width: 0; }
.list-row .inline-field { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--muted); }
.list-row .inline-field select, .list-row .inline-field input { width: auto; min-width: 150px; }

pre.code {
  background: var(--surface-2);
  border-radius: 8px;
  padding: 10px 12px;
  overflow-x: auto;
  font-size: 12px;
  line-height: 1.5;
}

/* ---------------------------------------------------------------- charts */

.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart.loading { opacity: 0.45; transition: opacity 0.15s; }
.chart:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.chart .gridline { stroke: var(--grid); stroke-width: 1; shape-rendering: crispEdges; }
.chart .baseline { stroke: var(--axis); stroke-width: 1; shape-rendering: crispEdges; }
.chart .tick { fill: var(--axis-ink); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .series-line { fill: none; stroke: var(--c); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .series-area { fill: var(--c); opacity: var(--wash); stroke: none; }
.chart .series-dot { fill: var(--c); stroke: var(--surface); stroke-width: 2; }
.chart .bar { fill: var(--c); }
.chart .bar-hit { fill: transparent; }
.chart .bar-hit:hover + .bar, .chart .bar.active { filter: brightness(1.12); }
.chart .crosshair { stroke: var(--axis); stroke-width: 1; shape-rendering: crispEdges; }
.chart .end-label { fill: var(--ink-2); font-size: 11.5px; }
.chart .ref-line { stroke: var(--axis); stroke-width: 1; stroke-dasharray: none; }
.chart .empty { fill: var(--muted); font-size: 13px; }

.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 8px; font-size: 12.5px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .swatch { width: 10px; height: 10px; border-radius: 2px; background: var(--c); }

.tooltip {
  position: absolute;
  z-index: 10;
  pointer-events: none;
  min-width: 140px;
  max-width: 260px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  padding: 8px 10px;
  font-size: 12px;
}
.tooltip .t-head { color: var(--muted); margin-bottom: 4px; }
.tooltip .t-row { display: flex; align-items: center; gap: 8px; }
.tooltip .t-row strong { font-variant-numeric: tabular-nums; color: var(--ink); }
.tooltip .t-row .name { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.spark { display: block; width: 100%; height: 34px; }

/* ---------------------------------------------------------------- plain-language help */

.help { display: inline-block; margin-left: 4px; vertical-align: middle; }
.help > summary {
  list-style: none; cursor: pointer; display: inline-grid; place-items: center;
  width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--border);
  font-size: 11px; font-weight: 600; line-height: 1; color: var(--ink-2); background: var(--surface-2);
}
.help > summary::-webkit-details-marker { display: none; }
.help > summary:hover, .help[open] > summary { color: var(--ink); border-color: var(--axis); }
.help > p { margin: 6px 0 2px; font-size: 12.5px; line-height: 1.4; color: var(--ink-2); font-weight: 400; white-space: normal; }
.tile .label .help[open] { display: block; margin-left: 0; }
.tile .label .help[open] > summary { margin-top: 4px; }
.empty-note { color: var(--ink-2); margin: 8px 0 4px; }

/* ---------------------------------------------------------------- app shell (Kit-style: white cards on a grey page) */

body.app { --page: #f2f2ef; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body.app { --page: #0d0d0d; }
}
:root[data-theme="dark"] body.app { --page: #0d0d0d; }

body.app .topbar { padding: 12px 24px; }
body.app .brand { font-size: 16px; font-weight: 800; letter-spacing: -0.02em; }
body.app .topbar nav a { color: var(--ink); }
body.app h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.025em; }
body.app .card { border-color: transparent; border-radius: 12px; padding: 20px; }
body.app .btn.primary { background: var(--ink); border-color: var(--ink); color: var(--page); font-weight: 600; }
body.app .btn.primary:hover { filter: none; opacity: 0.85; color: var(--page); }

/* ---------------------------------------------------------------- home */

.kit-home { max-width: 1040px; }
.kit-home > * + * { margin-top: 16px; }
.kit-home .page-head { margin-bottom: 8px; }
.kit-card > h2 { font-size: 17px; }
.kit-card > .desc { margin: 4px 0 14px; }
.big-line { font-size: 17px; }

/* Number tiles: small label, big number, one line under it. */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.stat { background: var(--surface-2); border-radius: 10px; padding: 14px 16px; min-width: 0; }
.stat .label { color: var(--ink-2); font-size: 13px; }
.stat .label .help[open] { display: block; margin-left: 0; }
.stat .value { font-size: 28px; font-weight: 750; letter-spacing: -0.02em; margin-top: 2px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat .note { font-size: 12.5px; color: var(--ink-2); margin-top: 4px; }
.pill { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--surface); color: var(--ink-2); font-weight: 600; }
.pill.up { color: var(--up); background: color-mix(in srgb, var(--up) 12%, var(--surface)); }
.pill.down { color: var(--down); background: color-mix(in srgb, var(--down) 12%, var(--surface)); }

/* A bordered box inside a card, with a two-column list of people-style rows. */
.inner-box { margin-top: 14px; border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; }
.inner-box > h3 { margin-bottom: 10px; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px 28px; }
.person { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.person:hover .name { color: var(--accent); }
.person .who { display: flex; flex-direction: column; min-width: 0; }
.person .name { font-weight: 600; overflow-wrap: anywhere; }
.person .line { color: var(--ink-2); font-size: 12.5px; }
.person .avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--surface-2); flex: none; }
.person .avatar.letter { display: grid; place-items: center; background: var(--c); color: #fff; font-weight: 700; }

.todo { list-style: none; margin: 12px 0 0; padding: 0; }
.todo li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 8px 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.todo li:first-child { border-top: 0; padding-top: 0; }
.icon-dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; font-weight: 700; line-height: 1; }

.video-grid { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 4px 28px; }
.video-grid a { display: flex; align-items: flex-start; gap: 12px; padding: 8px 0; text-decoration: none; }
.video-grid a:hover .vl-title { color: var(--accent); }
.video-grid img, .thumb-ph { width: 120px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: var(--surface-2); flex: none; }
.vl-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.vl-title { font-weight: 600; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* "For you": three columns, each a heading over one feature card. */
.for-you { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; margin-top: 12px; }
.for-you h3 { margin-bottom: 10px; }
.feature { display: flex; flex-direction: column; gap: 6px; border-radius: 10px; text-decoration: none; }
.feature p { margin: 0; }
.feature.video img, .feature.video .thumb-ph { width: 100%; border-radius: 10px; }
.feature.video:hover .f-title { color: var(--accent); }
.feature .f-title { font-size: 15px; font-weight: 650; overflow-wrap: anywhere; }
.feature .why { margin-top: 4px; font-size: 13px; }
.feature .reasons { margin: 4px 0 0; padding-left: 18px; color: var(--ink-2); }
.feature .reasons li { margin-bottom: 4px; }
.feature.tint { background: color-mix(in srgb, var(--accent) 9%, var(--surface)); padding: 16px; gap: 8px; }
.feature.tint .btn { align-self: flex-start; }
.feature .word { font-size: 18px; font-weight: 700; }
.feature.poster { background: var(--surface-2); padding: 18px; gap: 10px; }
.poster-text { font-size: 30px; font-weight: 850; line-height: 1.02; letter-spacing: -0.02em; text-transform: uppercase; color: color-mix(in srgb, var(--accent) 55%, var(--ink)); }

.steps { padding-left: 20px; margin: 8px 0; }
.steps li { margin-bottom: 8px; }

.glossary > summary { cursor: pointer; font-weight: 600; }
.glossary dl { margin: 10px 0 0; display: grid; grid-template-columns: minmax(120px, max-content) 1fr; gap: 6px 16px; }
.glossary dt { font-weight: 600; }
.glossary dd { margin: 0; color: var(--ink-2); }

@media (max-width: 640px) {
  body.app h1 { font-size: 24px; }
  body.app .card { padding: 16px; }
  .stat .value { font-size: 24px; }
  .video-grid img, .video-grid .thumb-ph { width: 96px; }
  .todo li { grid-template-columns: 32px minmax(0, 1fr); align-items: start; }
  .todo li > .btn { grid-column: 2; justify-self: start; }
  .poster-text { font-size: 26px; }
  .glossary dl { grid-template-columns: 1fr; }
  .glossary dd { margin-bottom: 6px; }
}

/* ---------------------------------------------------------------- login */

.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login .card { width: min(100%, 380px); padding: 24px; }
.login h1 { margin-bottom: 6px; }
.login p { color: var(--ink-2); margin: 0 0 16px; }
.login .error { color: var(--down); margin-bottom: 12px; }

.login .fine { margin: 16px 0 0; font-size: 13px; }

/* ---------------------------------------------------------------- public pages (home, privacy, terms) */

.site-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  max-width: 712px; margin: 0 auto; padding: 16px;
}
.site-name { font-weight: 600; text-decoration: none; }
.site-head nav { display: flex; gap: 16px; }
.site-head nav a { color: var(--ink-2); text-decoration: none; }
.site-head nav a:hover, .site-head nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }
.site-foot { max-width: 680px; margin: 0 auto; padding: 0 16px 40px; color: var(--ink-2); font-size: 14px; }
.site-foot a { color: inherit; }

.doc { max-width: 680px; margin: 0 auto; padding: 24px 16px 40px; font-size: 16px; line-height: 1.6; }
.doc .lede { font-size: 18px; color: var(--ink-2); }
.doc code { font: 0.9em ui-monospace, "Cascadia Mono", Consolas, monospace; background: var(--surface-2); padding: 1px 4px; border-radius: 4px; overflow-wrap: anywhere; }
.doc .actions { align-items: center; margin: 16px 0; }
.doc .btn.primary { color: var(--accent-ink); text-decoration: none; }
.doc h1 { font-size: 26px; margin-bottom: 4px; }
.doc h2 { font-size: 17px; margin: 28px 0 6px; }
.doc p, .doc ul { margin: 0 0 12px; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc .updated { color: var(--ink-2); margin-bottom: 24px; }
.doc a { color: var(--accent); overflow-wrap: anywhere; }
.doc .fill { background: var(--surface-2); outline: 1px dashed var(--down); }

@media (max-width: 640px) {
  .topbar { padding: 8px 16px; gap: 8px; }
  .brand { display: none; }
  main { padding: 14px 16px 48px; }
  .hero .value { font-size: 40px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile .value { font-size: 19px; }
  .card { padding: 14px; }
  .table-wrap { margin: 0 -14px; padding: 0 14px; }
}

@media (forced-colors: active) {
  .chart .series-line { stroke: CanvasText; }
  .chart .bar { fill: CanvasText; }
}
