/* Design tokens. Light (paper) is the default and dark follows the device; the signed-in pages stamp data-theme on <html> when the person picks one. The side navigation is always dark. One loud color: the highlighter yellow, kept for the thing being marked (the final count, the main button). */
:root {
  --ab-font: 'Sofia Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ab-font-display: 'Sofia Sans Condensed', 'Sofia Sans', system-ui, sans-serif;
  --ab-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ab-bg: #F2F4F6;
  --ab-surface: #FFFFFF;
  --ab-line: #D3D9E0;
  --ab-line-strong: #AEB8C4;

  --ab-text: #18212B;
  --ab-muted: #3B4755;
  --ab-subtle: #5E6B7A;

  --ab-mark: #FFD84A;
  --ab-mint: #FFD84A;
  --ab-accent: #FFD84A;
  --ab-accent-ink: #6B5300;
  --ab-on-accent: #18212B;

  --ab-success: #1F7A4D;
  --ab-danger: #B5371A;
  --ab-warn: #8A5A00;

  --ab-radius-control: 0;
  --ab-radius-card: 0;

  --ab-space-1: 4px;
  --ab-space-2: 8px;
  --ab-space-3: 12px;
  --ab-space-4: 16px;
  --ab-space-5: 24px;
  --ab-space-7: 48px;

  color-scheme: light;
}

/* The dark values are written three times, for the side navigation and the phone top bar, the device and an explicit choice: resolving "system" in JS would paint light first and flash. */
.ab-side,
.ab-topbar {
  --ab-bg: #141A21;
  --ab-surface: #1C242E;
  --ab-line: #2D3845;
  --ab-line-strong: #44515F;

  --ab-text: #EEF1F4;
  --ab-muted: #BAC4CF;
  --ab-subtle: #8C99A8;

  --ab-accent-ink: #FFD84A;

  --ab-success: #5FD39A;
  --ab-danger: #FF8F73;
  --ab-warn: #FFC857;

  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --ab-bg: #141A21;
    --ab-surface: #1C242E;
    --ab-line: #2D3845;
    --ab-line-strong: #44515F;

    --ab-text: #EEF1F4;
    --ab-muted: #BAC4CF;
    --ab-subtle: #8C99A8;

    --ab-accent-ink: #FFD84A;

    --ab-success: #5FD39A;
    --ab-danger: #FF8F73;
    --ab-warn: #FFC857;

    color-scheme: dark;
  }
}

:root[data-theme='dark'] {
  --ab-bg: #141A21;
  --ab-surface: #1C242E;
  --ab-line: #2D3845;
  --ab-line-strong: #44515F;

  --ab-text: #EEF1F4;
  --ab-muted: #BAC4CF;
  --ab-subtle: #8C99A8;

  --ab-accent-ink: #FFD84A;

  --ab-success: #5FD39A;
  --ab-danger: #FF8F73;
  --ab-warn: #FFC857;

  color-scheme: dark;
}
