/* Reset, type scale (12 / 13 / 14 / 16 / 20 / 28 / 40), focus, motion. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 14px/1.5 var(--font);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
h1, h2, h3, h4, p, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: 0.45; }
code, .mono, kbd { font-family: var(--mono); font-size: 0.92em; }
table { border-collapse: collapse; }
svg { display: block; }
[hidden] { display: none !important; }

.money, .kpi-value, .tabular, time, .mono, td, .board-count, .board-net { font-variant-numeric: tabular-nums; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.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;
}

.skip {
  position: fixed; left: 12px; top: -48px; z-index: 100;
  background: var(--accent); color: var(--accent-ink); border: 0; border-radius: var(--r-sm); padding: 8px 12px;
}
.skip:focus { top: 8px; }

.muted { color: var(--text-3); }
.small { font-size: 12px; }
.break { word-break: break-all; }
.tone-pos { color: var(--pos); }
.tone-neg { color: var(--neg); }
.tone-zero, .tone-unknown { color: var(--text-2); }
.tone-warn { color: var(--warn); }
.unit { color: var(--text-3); font-weight: 400; }

kbd {
  display: inline-block; min-width: 20px; padding: 1px 5px; border-radius: 4px;
  border: 1px solid var(--line-2); border-bottom-width: 2px; background: var(--panel-2);
  color: var(--text-2); font-size: 11px; line-height: 16px; text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

@media (forced-colors: active) {
  .ribbon-part, .cbar-fill, .hm-cell { forced-color-adjust: none; }
}
