/* Gelim Account's design tokens. Generated by scripts/sync_design.py from
   design/gelim-tokens.json (Gelim, 2026-10-01: the design pack's token file, byte
   for byte) and design/roles.json. Do not edit: change the roles and run the script.
   tests/test_design_tokens.py checks every text pair at 4.5:1 and every input border and chart
   colour at 3:1, in both modes. */
:root {
  color-scheme: light dark;

  /* Gelim's colours that mean the same in both modes. */
  --ink: #1b1816; /* dark wool: the sign-in pages' account side, toasts */
  --ink-2: #242020; /* panels on ink: the app being signed in to */
  --tile: #2e2825; /* logo tiles: the mark's tile, app icons */
  --wool: #f3ede2;
  --indigo: #2f4c9c; /* the one colour that means do this, as a fill: switches, checkboxes, bars; the mark's field */
  --madder: #c9423a; /* brand: the mark's border */
  --green: #3e9e6a; /* ready: done steps, what an app may do */
  --on-ink: #f3ede2; /* words on ink, in both modes */
  --on-ink-muted: #b9b1a6;
  --on-ink-accent: #7d95e6;

  /* Light mode (the default). */
  --bg: #f3ede2;
  --surface: #faf7f1; /* a card: the light references' glass, opaque (gelim web/packages/tokens/board-derived.json) */
  --surface-tint: #f3ede2; /* a detail inside a card */
  --text: #1b1816;
  --muted: #5e5750;
  --subtle: #6b655c; /* notes, dates, kickers: tertiary text on light */
  --accent: #2f4c9c; /* links in indigo on light */
  --primary: #2f4c9c; /* primary buttons */
  --on-primary: #ffffff; /* on-accent (board-derived) */
  --highlight: #dedfe5; /* the shown pill: indigoFill on the card */
  --on-highlight: #2f4c9c;
  --border: #e4e1db; /* hairlineLight on the card */
  --hover: rgba(27, 24, 22, 0.06); /* ink veil at 6 % (board-derived light veil) */
  --selected: rgba(27, 24, 22, 0.11); /* ink veil at 11 % */
  --input-border: #8c8579; /* wool 3: borders and icons, never text */
  --danger: #a8332c; /* madder text on light (board-derived) */
  --on-danger: #ffffff;
  --danger-bg: #f2dad4; /* madderFill on the card */
  --warning: #8a6210; /* saffron text on light (board-derived) */
  --warning-bg: #f6ecda; /* the saffron banner's fill on light (board-derived) on the card */
  --success-bg: #dce9db; /* greenFill on the card */
  --chart-text: #2f4c9c;
  --chart-image: #2e7a52; /* green text on light (board-derived) */
  --chart-video: #8a6210; /* saffron text on light */
  --chart-audio: #a8332c; /* madder text on light: audio is recording */
  --chart-none: #6b655c;
  --shadow: 0 2px 6px rgba(27, 24, 22, 0.08);
  --shadow-dialog: 0 30px 80px rgba(27, 24, 22, 0.22);
  --backdrop: rgba(0, 0, 0, 0.45); /* the scrim (board-derived), both modes */
  --focus-ring: rgba(47,76,156,0.45); /* the 3 px ring, indigo */

  /* Type, space, shape and focus. */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; /* titles: Inter 700, -0.02em (type.scale.title) */
  --font-wordmark: "Inter Tight", "Inter", system-ui, sans-serif; /* the wordmark only: Inter Tight 800, -0.04em */
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --text-xs: 11px;
  --text-sm: 12.5px;
  --text-md: 14px;
  --text-lg: 16px;
  --text-xl: 20px;
  --text-2xl: 28px;
  --text-3xl: 36px;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-strong: 600;
  --weight-display: 700;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 28px;
  --space-7: 44px;
  --radius: 8px; /* buttons */
  --radius-input: 8px;
  --radius-card: 12px;
  --radius-dialog: 18px;
  --radius-chip: 7px;
  --radius-pill: 999px;
  --radius-mark-tile: 6px; /* the mark's tile (board-derived) */
  --control-height: 38px; /* the Account boards' layout */
  --input-height: 40px;
  --touch: 44px;
  --rail: 232px;
  --header: 64px;
  --focus-width: 3px;
  --focus-offset: 1px;
}

/* Dark mode: the system's choice unless the person chose Light or Dark in Settings, which
   sets `data-theme` on the root. The two blocks are the same values (a test holds them). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1b1816;
    --surface: #242020;
    --surface-tint: #2d2929; /* white veil at 4 % on the card */
    --text: #f3ede2;
    --muted: #b9b1a6;
    --subtle: #b9b1a6; /* tertiary reads 4.4:1 on ink2, under AA: secondary */
    --accent: #7d95e6; /* links on dark */
    --primary: #2f4c9c;
    --on-primary: #ffffff;
    --highlight: #262631;
    --on-highlight: #7d95e6;
    --border: #363232; /* hairline on the card */
    --hover: rgba(255,255,255,0.06);
    --selected: rgba(255,255,255,0.11);
    --input-border: #8c8579;
    --danger: #f08077;
    --on-danger: #1b1816;
    --danger-bg: #3e2524;
    --warning: #f1c56a;
    --warning-bg: #362c21; /* the saffron banner's fill on dark (board-derived) */
    --success-bg: #28342c;
    --chart-text: #7d95e6;
    --chart-image: #79cc98;
    --chart-video: #f1c56a;
    --chart-audio: #f08077;
    --chart-none: #8c8579;
    --shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    --shadow-dialog: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 30px 80px rgba(0, 0, 0, 0.6); /* the dialog's (board-derived) */
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1b1816;
  --surface: #242020;
  --surface-tint: #2d2929; /* white veil at 4 % on the card */
  --text: #f3ede2;
  --muted: #b9b1a6;
  --subtle: #b9b1a6; /* tertiary reads 4.4:1 on ink2, under AA: secondary */
  --accent: #7d95e6; /* links on dark */
  --primary: #2f4c9c;
  --on-primary: #ffffff;
  --highlight: #262631;
  --on-highlight: #7d95e6;
  --border: #363232; /* hairline on the card */
  --hover: rgba(255,255,255,0.06);
  --selected: rgba(255,255,255,0.11);
  --input-border: #8c8579;
  --danger: #f08077;
  --on-danger: #1b1816;
  --danger-bg: #3e2524;
  --warning: #f1c56a;
  --warning-bg: #362c21; /* the saffron banner's fill on dark (board-derived) */
  --success-bg: #28342c;
  --chart-text: #7d95e6;
  --chart-image: #79cc98;
  --chart-video: #f1c56a;
  --chart-audio: #f08077;
  --chart-none: #8c8579;
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  --shadow-dialog: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 30px 80px rgba(0, 0, 0, 0.6); /* the dialog's (board-derived) */
}

:root[data-theme="light"] {
  color-scheme: light;
}
