/* Hallmark · shape: kept (/), Long Document (/releases/, /stats/) · genre: modern-minimal · theme: brand · redesign: restyle
 * paper: oklch(96.8% 0.014 89) · accent: oklch(76.5% 0.139 78) · display: Rethink Sans · body: Public Sans · hero: kept · nav: kept · footer: kept · signature: kept, HMRC's four Terminal steps beside one double-click
 * axes: light/grotesk-sans/warm · posture: committed, the icon's green field carries the header, hero and closing band · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P3 H4 E4 S4 R4 V3 · weakest: V, the layout is kept by request; the restyle moves the type, surfaces, controls and focus off the generated defaults instead */
/* Hallmark · waive 49b · three prose links at 320px (Read HMRC’s help page about this issue, Get Basic PAYE Tools from GOV.UK, report a problem on GitHub) wrap to two lines · each names where it goes in full, and a shorter label would hide that the link leaves for GOV.UK or GitHub */
/* Hallmark · waive 59 · 24px between the hero screenshot and the HMRC notice strip, parted by a change of paper and a hairline · the notice is the hero’s disclaimer and has to sit against the claim it qualifies */
/* Hallmark · waive 78 · /releases/ and /stats/ set h2 at 25px and 18px under a 60px h1 · those pages are long documents whose h2s are item titles: a version number, a chart name */
/* Hallmark · answered F4 · .cta is the closing download band’s green field, not a second button recipe; .btn-gold is the one filled control */
/* Hallmark · answered F7 · every bordered box is the site’s one card rung, kept for content of another kind; wells, hairlines and the green field carry the other seams */
/* Hallmark · answered F2 · the three dots sit inside GitHub’s compare URL in the release notes (v0.1.0...v0.1.1) and cannot change */
/* Hallmark · reworded "Run HMRC's Basic PAYE Tools on your modern Mac. Without the Terminal." to "Run HMRC’s Basic PAYE Tools on your modern Mac. Without the Terminal." · 38iii names the gold second sentence; now one colour, split by a line break */
/* Hallmark · reworded "Why Basic PAYE Tools won't open on newer Macs" to "Why Basic PAYE Tools won’t open on newer Macs" · F1 names the straight apostrophe */
/* Hallmark · dropped "The problem" above the problem heading · 54 names it, and the heading already says what the section is about */
/* Hallmark · dropped "With PayrollRTI" above "Double-click PayrollRTI. That’s it." · 54 names it, and the line under it already names the app */
/* Hallmark · reworded "Free and open source · For Mac" to "Free and open source" at the head of the hero’s facts list · 54 names it */
/* Hallmark · reworded the hero and closing meta lines joined with middle dots into lists · 63 names them */
/* Hallmark · reworded " — PayrollRTI" in every page title to " | PayrollRTI" · 19 names the dash */
:root {
  --space-3xs: 2px; --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px; --space-4xl: 144px;
  --text-xs: 0.8125rem; --text-sm: 0.875rem; --text-md: 1rem; --text-lg: 1.25rem; --text-xl: 1.5625rem; --text-2xl: 1.953rem; --text-3xl: 2.441rem;
  --text-display-s: clamp(2.25rem, 4vw + 0.5rem, 3.75rem); --text-display: clamp(2.75rem, 5vw + 1rem, 5.25rem);
  --text-section: clamp(2rem, 2.5vw + 1rem, 3.5rem); --text-title: clamp(1.25rem, 0.75vw + 0.875rem, 1.625rem); --text-lead: clamp(1.125rem, 0.35vw + 1rem, 1.375rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --ease-in: cubic-bezier(0.7, 0, 0.84, 0); --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms; --dur-short: 220ms; --dur-long: 420ms;
  --color-error: oklch(52% 0.19 27); --color-success: oklch(50% 0.12 150);
  --container: 1208px; --gutter: 64px; --gap-columns: 32px; --section-gap-s: 120px; --section-gap: 144px; --section-gap-l: 176px;
  --z-base: 1; --z-raised: 10; --z-dropdown: 100; --z-sticky: 200; --z-sticky-nav: 300; --z-modal: 400; --z-toast: 500; --z-tooltip: 600;
  /* Brand: the app icon's green field and gold £, on cream paper. */
  --color-paper: oklch(96.8% 0.014 89); --color-paper-2: oklch(93.2% 0.023 87); --color-paper-3: oklch(90.4% 0.025 89); --color-paper-raised: oklch(99.4% 0.007 89);
  --color-ink: oklch(23.4% 0.007 164); --color-ink-2: oklch(38% 0.01 157); --color-muted: oklch(44.8% 0.013 158);
  --color-rule: oklch(88.7% 0.03 88); --color-rule-soft: oklch(91.5% 0.022 89);
  --color-accent: oklch(76.5% 0.139 78); --color-accent-hover: oklch(80.9% 0.126 78); --color-accent-ink: var(--color-ink);
  --color-link: oklch(35.6% 0.059 171); --color-link-hover: oklch(29.8% 0.047 175);
  --color-focus: oklch(42.3% 0.069 171); --color-focus-on-field: var(--color-accent);
  --color-field: oklch(29.8% 0.047 175); --color-field-2: oklch(35.6% 0.059 171); --color-field-3: oklch(42.3% 0.069 171);
  --color-field-hi: oklch(46.1% 0.078 167); --color-field-lo: oklch(33.2% 0.055 173);
  --color-on-field: oklch(96.8% 0.014 89); --color-on-field-2: oklch(90.7% 0.013 160); --color-on-field-3: oklch(84.8% 0.019 161); --color-on-field-edge: oklch(66% 0.03 165);
  --color-night: oklch(25% 0.016 172); --color-on-night: oklch(92.9% 0.008 165); --color-on-night-2: oklch(76.6% 0.014 165);
  --color-tint: oklch(93.1% 0.022 163);
  --font-display: "Rethink Sans", ui-sans-serif, system-ui, sans-serif; --font-body: "Public Sans", ui-sans-serif, system-ui, sans-serif; --font-outlier: Georgia, "Times New Roman", serif;
  --display-weight: 800;
  --radius-card: 14px; --radius-control: 10px; --radius-inner: 8px; --radius-tag: 4px; --radius-icon: 23%; --radius-pill: 999px; --rule-hair: 1px;
  --shadow-card: 0 1px 2px oklch(20% 0.02 171 / 0.08), 0 10px 24px oklch(20% 0.02 171 / 0.10);
  --tracking-display: -0.015em;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scrollbar-color: var(--color-muted) var(--color-paper); scroll-padding-top: var(--space-3xl); }
body { margin: 0; background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-md); line-height: 1.55; -webkit-font-smoothing: antialiased; caret-color: var(--color-accent); }
::selection { background: color-mix(in oklab, var(--color-accent) 22%, transparent); color: var(--color-ink); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight, 700); font-synthesis: none; letter-spacing: var(--tracking-display); line-height: 1.05; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
h1 { max-width: 20ch; font-size: var(--text-display); } h2 { max-width: 30ch; font-size: var(--text-section); } h3 { max-width: 40ch; font-size: var(--text-title); line-height: 1.2; }
.lead { font-size: var(--text-lead); line-height: 1.45; max-width: 52ch; }
p { margin: 0; text-wrap: pretty; }
p:not([class]) { max-width: 65ch; }
img, video { max-width: 100%; height: auto; display: block; }
svg { display: block; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); box-sizing: border-box; }
.num, .figure, td.num { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[data-slot] { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--color-paper-2, var(--color-paper)), var(--color-paper-3, var(--color-paper))); }
[data-slot] > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
[data-slot]:has(> img) > :not(img):not([data-keep]) { display: none !important; }
@media (max-width: 60rem) { :root { --gutter: 24px; --section-gap-s: 80px; --section-gap: 96px; --section-gap-l: 120px; } }
@media (max-width: 40rem) { :root { --gutter: 16px; --section-gap-s: 56px; --section-gap: 72px; --section-gap-l: 96px; --gap-columns: 16px; } }
@media (prefers-reduced-motion: reduce) { *:not(.keep-motion), *:not(.keep-motion)::before, *:not(.keep-motion)::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }


@font-face {
  font-family: "Rethink Sans";
  src: url("/fonts/rethink-sans-latin-var.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("/fonts/public-sans-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-size: 1.125rem; line-height: 1.6; min-height: 100dvh; display: flex; flex-direction: column; }
body > main { flex: 1; }
a { color: var(--color-link); text-underline-offset: 0.18em; }
a:hover { color: var(--color-link-hover); text-decoration-thickness: 2px; }
a:active { color: var(--color-ink); }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; border-radius: var(--radius-tag); }
.site-header, .hero, .cta { --color-focus: var(--color-focus-on-field); }
code { font-size: 0.9em; background: var(--color-paper-2); padding: var(--space-3xs) var(--space-2xs); border-radius: var(--radius-tag); }

.wrap { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 928px; }
.center { text-align: center; }
.h2.center { margin-inline: auto; }
.muted { color: var(--color-muted); }

.skip {
  position: absolute; left: var(--space-sm); top: -100px; z-index: var(--z-modal);
  background: var(--color-accent); color: var(--color-accent-ink); padding: var(--space-xs) var(--space-md); border-radius: var(--radius-inner); font-weight: 700;
}
.skip:focus { top: var(--space-sm); }

/* Header */
.site-header { background: var(--color-field); color: var(--color-on-field); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-md); padding-block: var(--space-md); }
.brand { display: flex; align-items: center; gap: var(--space-sm); color: var(--color-on-field); text-decoration: none; font: 800 1.1875rem/1 var(--font-display); letter-spacing: -0.01em; }
.brand:hover { color: var(--color-on-field); }
.brand-mark {
  width: 36px; height: 36px; border-radius: var(--radius-inner);
  background: linear-gradient(160deg, var(--color-field-3), var(--color-field));
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--color-accent) 45%, var(--color-field));
  display: flex; align-items: center; justify-content: center;
  color: var(--color-accent); font: 700 1.25rem/1 var(--font-outlier);
}
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-lg); font-size: 1rem; }
.nav a { color: var(--color-on-field); }
.nav a:hover { color: var(--color-on-field); }
.nav a[aria-current="page"] { color: var(--color-accent); font-weight: 700; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs);
  min-height: 52px; padding: 0 var(--space-lg); border: 1px solid transparent; border-radius: var(--radius-control);
  font: 700 1.0625rem/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--color-accent); color: var(--color-accent-ink); }
.btn-gold:hover { background: var(--color-accent-hover); color: var(--color-accent-ink); }
.btn-ghost { border-color: var(--color-on-field-edge); color: var(--color-on-field); }
.btn-ghost:hover { border-color: var(--color-on-field); background: var(--color-field-2); color: var(--color-on-field); }
.btn-sm { min-height: 44px; padding: 0 var(--space-md); font-size: 1rem; }
.btn svg { flex-shrink: 0; }

/* Hero */
.hero { background: var(--color-field); color: var(--color-on-field); padding-top: var(--space-2xl); overflow: clip; }
.hero .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; }
.app-icon {
  width: 96px; height: 96px; border-radius: var(--radius-icon);
  background: linear-gradient(160deg, var(--color-field-hi), var(--color-field-lo) 70%);
  box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--color-accent) 50%, var(--color-field-lo));
  display: flex; align-items: center; justify-content: center;
  color: var(--color-accent); font: 700 58px/1 var(--font-outlier);
}
.hero h1 { margin-top: var(--space-xl); max-width: 24ch; font-size: var(--text-display-s); line-height: 1.04; }
.lede { margin-top: var(--space-lg); max-width: 34em; font-size: var(--text-lead); line-height: 1.5; color: var(--color-on-field-2); }
.actions { margin-top: var(--space-xl); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-sm); }
.meta { list-style: none; margin: var(--space-md) 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2xs) var(--space-lg); font-size: 0.9375rem; color: var(--color-on-field-3); }
.meta a { color: var(--color-on-field); }
.meta a:hover { color: var(--color-on-field); }
.hero-shot { margin: var(--space-lg) 0 var(--space-lg); width: 100%; max-width: 1080px; }
.hero-shot img { width: 100%; mask-image: linear-gradient(to bottom, var(--color-ink) 88%, transparent); }

.notice { background: var(--color-paper-2); border-bottom: var(--rule-hair) solid var(--color-rule); }
.notice p { max-width: var(--container); margin: 0 auto; padding: var(--space-md) var(--gutter); font-size: 1rem; color: var(--color-ink-2); text-align: center; }

/* Sections */
.section { padding-block: var(--space-3xl); }
.section-alt { background: var(--color-paper-raised); border-block: var(--rule-hair) solid var(--color-rule-soft); }
.h2 { font-size: var(--text-section); line-height: 1.06; }
.sub { margin: var(--space-md) auto 0; max-width: 34em; color: var(--color-muted); }

/* Problem */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: var(--space-2xl); align-items: center; }
.split .copy p { margin-top: var(--space-md); }
.split .copy .h2 + p { margin-top: var(--space-lg); }
.compare { display: flex; flex-direction: column; gap: var(--space-md); }
.card-dark { background: var(--color-night); color: var(--color-on-night); border-radius: var(--radius-card); padding: var(--space-lg); }
.card-dark .label { margin-bottom: var(--space-sm); font-size: 0.9375rem; font-weight: 700; color: var(--color-on-night-2); }
.card-dark ol { margin: 0; padding-left: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-xs); font-size: 1.0625rem; }
.card-light { border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); padding: var(--space-lg); display: flex; align-items: center; gap: var(--space-md); }
.card-light .app-icon { width: 56px; height: 56px; font-size: 32px; flex-shrink: 0; }
.card-light .big { font: 800 var(--text-lg)/1.3 var(--font-display); letter-spacing: -0.01em; }

/* Features */
.features { list-style: none; margin: var(--space-2xl) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: var(--space-lg); }
.features li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; column-gap: var(--space-sm); background: var(--color-paper); border-radius: var(--radius-card); padding: var(--space-lg); }
.feature-icon { grid-row: 1; color: var(--color-field-3); padding-top: var(--space-3xs); }
.features h3 { grid-column: 2; font-size: 1.125rem; line-height: 1.25; text-wrap: pretty; }
.features p { grid-column: 1 / -1; margin-top: var(--space-sm); font-size: 1rem; color: var(--color-muted); }
.signed { margin-top: var(--space-xl); font-size: 1rem; color: var(--color-muted); }

/* Install */
.steps { list-style: none; margin: var(--space-2xl) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--space-lg); }
.step { display: flex; flex-direction: column; border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); overflow: clip; }
.step-art { height: 200px; background: var(--color-paper-2); display: flex; align-items: center; justify-content: center; padding: var(--space-md); }
.step-body { padding: var(--space-lg); }
.step-num { display: block; font: 800 var(--text-2xl)/1 var(--font-display); color: var(--color-field-3); font-variant-numeric: tabular-nums; }
.step h3 { margin-top: var(--space-sm); font-size: 1.25rem; line-height: 1.25; }
.step-body p { margin-top: var(--space-xs); font-size: 1rem; color: var(--color-muted); }
.step-shot { width: 100%; max-width: 256px; border-radius: var(--radius-inner); box-shadow: var(--shadow-card); }
.step-capture { width: auto; max-height: 168px; }

.mock { width: 100%; max-width: 250px; background: var(--color-paper-raised); border-radius: var(--radius-inner); box-shadow: var(--shadow-card); }
.mock-dl { padding: var(--space-sm); display: flex; flex-direction: column; gap: var(--space-xs); }
.mock-dl .t { font-size: 0.75rem; font-weight: 700; color: var(--color-muted); }
.mock-row { display: flex; align-items: center; gap: var(--space-sm); }
.mock-file { width: 40px; height: 44px; border-radius: var(--radius-inner); background: var(--color-paper-2); display: flex; align-items: center; justify-content: center; }
.mini-icon { width: 24px; height: 24px; border-radius: var(--radius-icon); background: var(--color-field-2); color: var(--color-accent); font: 700 15px/1 var(--font-outlier); display: flex; align-items: center; justify-content: center; }
.mock-name { font-size: 0.875rem; font-weight: 700; }
.mock-bar { height: 5px; margin-top: var(--space-xs); border-radius: var(--radius-pill); background: var(--color-success); }

.not-installed { margin: var(--space-xl) 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: var(--space-xl); align-items: center; border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); padding: var(--space-lg); }
.not-installed img { width: 100%; border-radius: var(--radius-inner); box-shadow: var(--shadow-card); }
.not-installed .t { font: 800 var(--text-lg)/1.3 var(--font-display); letter-spacing: -0.01em; }
.not-installed .d { margin-top: var(--space-xs); color: var(--color-muted); }
.not-installed .l { margin-top: var(--space-sm); }

/* FAQ */
.faq { margin-top: var(--space-xl); border-top: var(--rule-hair) solid var(--color-rule); }
.faq details { border-bottom: var(--rule-hair) solid var(--color-rule); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-md);
  min-height: 44px; padding: var(--space-lg) var(--space-2xs); font: 700 1.1875rem/1.35 var(--font-display);
}
.faq summary:hover { color: var(--color-link); }
.faq summary::-webkit-details-marker { display: none; }
.faq .plus { flex-shrink: 0; font-size: 1.75rem; font-weight: 400; color: var(--color-field-3); line-height: 1; transition: transform var(--dur-short) var(--ease-out); }
.faq details[open] .plus { transform: rotate(45deg); }
.faq .answer { padding: 0 var(--space-2xs) var(--space-lg); color: var(--color-ink-2); }

/* CTA band */
.cta { background: var(--color-field); color: var(--color-on-field); padding-block: var(--space-3xl); }
.cta .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; }
.cta p.sub { color: var(--color-on-field-2); }
.cta .actions { margin-top: var(--space-xl); }

/* Footer */
.site-footer { background: var(--color-paper-2); color: var(--color-ink-2); font-size: 1rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-lg); padding-block: var(--space-xl); }
.site-footer .about { max-width: 520px; }
.site-footer .about p + p { margin-top: var(--space-xs); }
.site-footer .name { font: 800 1.125rem/1.3 var(--font-display); color: var(--color-ink); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-xs); }
.site-footer .small { font-size: 0.9375rem; color: var(--color-muted); }

/* Releases page */
.page { padding-block: var(--space-2xl) var(--space-3xl); }
.page h1 { margin-top: var(--space-md); font-size: var(--text-display-s); }
.page .intro { margin-top: var(--space-md); max-width: 62ch; color: var(--color-muted); }
.releases { margin-top: var(--space-xl); display: flex; flex-direction: column; gap: var(--space-lg); }
.release { border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); padding: var(--space-lg); }
.release.latest { border-color: var(--color-field-3); }
.release-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-sm); }
.release-head .left { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); }
.release h2 { font-size: var(--text-lg); line-height: 1.25; }
.release.latest h2 { font-size: var(--text-xl); }
.badge { font-size: 0.8125rem; font-weight: 700; color: var(--color-field-2); background: var(--color-tint); padding: var(--space-2xs) var(--space-sm); border-radius: var(--radius-pill); }
.release time { font-size: 1rem; color: var(--color-muted); }
.notes { margin-top: var(--space-md); color: var(--color-ink-2); overflow-wrap: anywhere; }
.notes ul { margin: var(--space-xs) 0 0; padding-left: var(--space-lg); }
.notes li + li { margin-top: var(--space-xs); }
.notes p + p, .notes p + ul, .notes ul + p { margin-top: var(--space-sm); }
.notes h3, .notes h4 { margin-top: var(--space-md); font-size: 1.0625rem; color: var(--color-ink); }
.release .btn { margin-top: var(--space-lg); }
.release .more { margin-top: var(--space-md); font-size: 1rem; }
.callout { margin-top: var(--space-xl); padding: var(--space-lg); border-radius: var(--radius-card); background: var(--color-paper-2); font-size: 1rem; color: var(--color-ink-2); }
.callout strong { color: var(--color-ink); }
.empty { padding: var(--space-lg); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); }

/* Stats page */
.stat-grid { margin-top: var(--space-xl); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: var(--space-md); }
.stat { border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); padding: var(--space-lg); }
.stat .n { font: 800 var(--text-3xl)/1.1 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat .l { margin-top: var(--space-2xs); font-size: 1rem; color: var(--color-muted); }
.chart { margin-top: var(--space-xl); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); padding: var(--space-lg); }
.chart svg { width: 100%; height: auto; display: block; }
.chart .bar { fill: var(--color-field-3); }
.chart .tick { fill: var(--color-muted); }
.chart .grid { stroke: var(--color-rule); }
.chart-title { margin-bottom: var(--space-sm); font-size: 1.125rem; line-height: 1.3; }
.table-wrap { margin-top: var(--space-lg); overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 1rem; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: var(--space-xs) var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); }
th { font-weight: 700; }
td.num, th.num { text-align: right; }
caption { text-align: left; padding-bottom: var(--space-xs); color: var(--color-muted); }

/* 404 */
.notfound { padding-block: var(--space-4xl); text-align: center; }
.notfound .h2 { margin-inline: auto; }
.notfound p { margin: var(--space-md) auto 0; }

.grow { flex: 1; min-width: 0; }
