/* Base: reset, typography, focus, scrollbars. Colours from tokens.css only. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; background: var(--c-bg-subtle); color: var(--c-text);
  font-family: var(--font-sans); font-size: var(--fs-sm); line-height: var(--lh-base);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: var(--fw-bold); line-height: var(--lh-tight); color: var(--c-text); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--c-link); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg, video { display: block; max-width: 100%; }
svg { flex: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
table { border-collapse: collapse; }
hr { border: 0; border-top: 1px solid var(--c-border); margin: var(--sp-4) 0; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 1px; border-radius: 0.25rem; }
::selection { background: #cce4ff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
* { scrollbar-width: thin; scrollbar-color: #c4cbd3 transparent; }
code, kbd, .mono { font-family: var(--font-mono); font-size: 0.92em; letter-spacing: 0; }
kbd { border: 1px solid var(--c-border-strong); border-bottom-width: 2px; border-radius: 0.25rem; padding: 0 0.3rem; background: var(--c-bg); font-size: var(--fs-2xs); }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--c-text-label); }
.small { font-size: var(--fs-xs); }
.xsmall { font-size: var(--fs-2xs); }
.strong { font-weight: var(--fw-bold); }
.semibold { font-weight: var(--fw-semibold); }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.right { text-align: end; }
.center { text-align: center; }
.pos { color: var(--c-positive); }
.neg { color: var(--c-negative); }
.crit { color: var(--c-critical); }
.info { color: var(--c-info); }
.hidden { display: none !important; }
