/* Base: reset, typography, layout shell, focus. Mobile-first; no horizontal page scroll at 320 px. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 1rem; line-height: 1.55; overflow-wrap: anywhere; }
img, svg { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.2; margin: 1.2em 0 .5em; }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); margin-top: .4em; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
p, ul, ol, dl { margin: 0 0 1em; }
a { color: var(--primary); text-underline-offset: .15em; }
a:hover { color: var(--primary-strong); }
code, pre { font-family: var(--mono); font-size: .95em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
/* Chromium moves keyboard focus into the date/time picker's inner fields, so the host never matches :focus-visible
   (WCAG 2.4.7, A11Y-01 of the 2026-10-06 verification): show the same ring whenever such a field has focus. */
input:is([type="date"], [type="time"], [type="datetime-local"], [type="month"], [type="week"]):is(:focus, :focus-within) { outline: 3px solid var(--focus); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: .5rem; top: -4rem; z-index: 100; background: var(--bg); color: var(--primary); padding: .75rem 1rem; border: 2px solid var(--focus); border-radius: var(--radius-sm); }
.skip-link:focus { top: .5rem; }
.num, td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.lead { font-size: 1.125rem; color: var(--ink-muted); max-width: 46rem; }
.hint { color: var(--ink-muted); font-size: .95rem; }
.narrow { max-width: 34rem; }
.prose { max-width: 46rem; }
.shell { max-width: var(--max); margin: 0 auto; padding: 0 1rem 2rem; display: block; }
.shell--staff, .shell--account { display: grid; grid-template-columns: 1fr; gap: 1.5rem; max-width: 84rem; }
.main { min-width: 0; padding-top: 1rem; }
.main:focus { outline: none; }
@media (min-width: 960px) {
  .shell--staff { grid-template-columns: 15rem 1fr; }
  .shell--account { grid-template-columns: 14rem 1fr; }
}
.grid-2 { display: grid; gap: 0 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.stack > * + * { margin-top: .25rem; }
.inline-form { display: inline; margin: 0; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
