/* Amos design tokens - Nov 2026 redesign (docs/redesign-2026-11/BRIEF.md 4).
   The ONLY file in web/static/rd/ allowed to hold raw colour values
   (tests/test_redesign_system.py). Components use var(--token) only.

   Every token is declared on .am-ui, never on :root. Until Phase 8 the old
   stylesheets are still loaded for screens not yet rebuilt, and eight
   names are shared (--accent, --text, --border, --scrim, --gutter,
   --hairline, --control-h, --ease): declared on :root, these values would
   repaint every old screen. Scoped, they reach only what the redesign
   draws - the shell and rebuilt screens carry class="am-ui".

   Theme: the existing contract on <html> - data-theme="dark" (the
   default, set before first paint) or NO attribute for light. A frame
   can also pin itself with its own data-theme (the component page). */

.am-ui {
  /* ---- type (4.2) - rem, so the phone's text-size setting scales it */
  --font-ui:   "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  --fs-11: .6875rem;  --lh-11: .875rem;   /* tab-bar labels only */
  --fs-12: .75rem;    --lh-12: 1rem;      /* action-row labels */
  --fs-13: .8125rem;  --lh-13: 1.125rem;  /* group headers, meta */
  --fs-15: .9375rem;  --lh-15: 1.375rem;  /* secondary lines, buttons */
  --fs-16: 1rem;      --lh-16: 1.5rem;    /* body, row titles */
  --fs-17: 1.0625rem; --lh-17: 1.5rem;    /* top-bar title, sheet titles */
  --fs-20: 1.25rem;   --lh-20: 1.75rem;   /* section titles */
  --fs-28: 1.75rem;   --lh-28: 2.125rem;  /* large titles, record names */
  --fs-34: 2.125rem;  --lh-34: 2.5rem;    /* hero numbers, gate code */

  --fw-regular: 400; --fw-medium: 500; --fw-semi: 600;
  --track-tight: -0.015em;  /* 20px and larger */

  /* ---- space, shape, motion (4.3) */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-10: 40px;

  --gutter: 16px;
  --row-h: 56px;
  --row-h-1: 48px;
  --control-h: 44px;
  --control-h-lg: 52px;
  --tabbar-h: 56px; --topbar-h: 44px;

  --radius-1: 6px;
  --radius-2: 10px;
  --radius-3: 12px;
  --radius-4: 16px;
  --radius-full: 999px;

  --hairline: 1px;
  --focus-ring: 0 0 0 2px var(--bg-app), 0 0 0 4px var(--accent);

  --dur-1: 90ms;
  --dur-2: 160ms;
  --dur-3: 200ms;
  --ease: cubic-bezier(.2, 0, 0, 1);

  /* Depth is a lighter surface plus a hairline; these two shadows are the
     only ones in the system (sheets and toasts, 4.3). */
  --shadow-sheet: 0 -6px 24px rgba(0, 0, 0, 0.40);
  --shadow-toast: 0 6px 20px rgba(0, 0, 0, 0.45);
}

@media (min-resolution: 2dppx) {
  .am-ui { --hairline: 0.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .am-ui { --dur-1: 0ms; --dur-2: 0ms; --dur-3: 0ms; }
}

/* ---- colour (4.1)
   Console (Yasuke's pick after Phase 2, Nov 22 - BRIEF.md amendment; it
   replaced palette B). Dark is the default and the theme designed first;
   light is its companion. Values are
   generated by scripts/redesign/palettes.py and measured there and off the
   running app (docs/redesign-2026-11/contrast.md). --accent-edge is the
   primary button's 1px edge: the fill itself on dark, a deep olive on
   light, where volt alone is under 3:1 against white. --watermark-opacity
   is the tonal sheep on the Today hero (4.6). */

/* The page ground behind everything on a phone, so old screens shown in
   the new frame sit on the Console ground too (Phase 3). Body only: the
   eight shared token names still never reach the old screens. Same values
   as --bg-app below; keep them in step. The desktop is untouched. */
@media (max-width: 767.98px) {
  :root[data-theme="dark"] body.cs { background: #0b0d10; }
  :root:not([data-theme="dark"]) body.cs { background: #f3f5f7; }
}

/* palettes:start - GENERATED by scripts/redesign/palettes.py --write; do not edit by hand */
/* Console - Yasuke's pick after Phase 2, Nov 22 (BRIEF.md amendment). Dark is the default. */
.am-ui, .am-ui[data-theme="dark"] {
  color-scheme: dark;
  --bg-app: #0b0d10;
  --bg-surface: #13171c;
  --bg-raised: #1a1f25;
  --bg-overlay: #1f252c;
  --bg-pressed: #262d35;
  --border-subtle: #1d232a;
  --border: #262d36;
  --border-control: #66717e;
  --text: #e8ebef;
  --text-2: #aab2bc;
  --text-3: #909aa5;
  --accent: #5a9cff;
  --accent-solid: #2563d8;
  --accent-on: #ffffff;
  --accent-soft: #13243d;
  --accent-edge: #2563d8;
  --ok: #36cf80;
  --ok-soft: #0f2a1d;
  --bad: #ff6369;
  --bad-soft: #36171a;
  --info: #a796ff;
  --info-soft: #211d3a;
  --scrim: rgba(0, 0, 0, 0.62);
  --watermark-opacity: 0.05;
}
:root:not([data-theme="dark"]) .am-ui, .am-ui[data-theme="light"] {
  color-scheme: light;
  --bg-app: #f3f5f7;
  --bg-surface: #ffffff;
  --bg-raised: #eef1f4;
  --bg-overlay: #ffffff;
  --bg-pressed: #e3e7eb;
  --border-subtle: #e7eaee;
  --border: #d8dde3;
  --border-control: #7b8591;
  --text: #111519;
  --text-2: #46505b;
  --text-3: #58626d;
  --accent: #1d5dcc;
  --accent-solid: #2563d8;
  --accent-on: #ffffff;
  --accent-soft: #e7efff;
  --accent-edge: #2563d8;
  --ok: #107a3e;
  --ok-soft: #e2f4e9;
  --bad: #c4232b;
  --bad-soft: #fde9ea;
  --info: #5b43c9;
  --info-soft: #eeeaff;
  --scrim: rgba(0, 0, 0, 0.38);
  --watermark-opacity: 0.05;
  --shadow-sheet: 0 -6px 24px rgba(0, 0, 0, 0.12);
  --shadow-toast: 0 6px 20px rgba(0, 0, 0, 0.16);
}

@media (max-width: 767.98px) {
  .am-phone {
    /* ---- type (4.2) - rem, so the phone's text-size setting scales it */
    --font-ui:   "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

    --fs-11: .6875rem;  --lh-11: .875rem;   /* tab-bar labels only */
    --fs-12: .75rem;    --lh-12: 1rem;      /* action-row labels */
    --fs-13: .8125rem;  --lh-13: 1.125rem;  /* group headers, meta */
    --fs-15: .9375rem;  --lh-15: 1.375rem;  /* secondary lines, buttons */
    --fs-16: 1rem;      --lh-16: 1.5rem;    /* body, row titles */
    --fs-17: 1.0625rem; --lh-17: 1.5rem;    /* top-bar title, sheet titles */
    --fs-20: 1.25rem;   --lh-20: 1.75rem;   /* section titles */
    --fs-28: 1.75rem;   --lh-28: 2.125rem;  /* large titles, record names */
    --fs-34: 2.125rem;  --lh-34: 2.5rem;    /* hero numbers, gate code */

    --fw-regular: 400; --fw-medium: 500; --fw-semi: 600;
    --track-tight: -0.015em;  /* 20px and larger */

    /* ---- space, shape, motion (4.3) */
    --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
    --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-10: 40px;

    --gutter: 16px;
    --row-h: 56px;
    --row-h-1: 48px;
    --control-h: 44px;
    --control-h-lg: 52px;
    --tabbar-h: 56px; --topbar-h: 44px;

    --radius-1: 6px;
    --radius-2: 10px;
    --radius-3: 12px;
    --radius-4: 16px;
    --radius-full: 999px;

    --hairline: 1px;
    --focus-ring: 0 0 0 2px var(--bg-app), 0 0 0 4px var(--accent);

    --dur-1: 90ms;
    --dur-2: 160ms;
    --dur-3: 200ms;
    --ease: cubic-bezier(.2, 0, 0, 1);

    /* Depth is a lighter surface plus a hairline; these two shadows are the
       only ones in the system (sheets and toasts, 4.3). */
    --shadow-sheet: 0 -6px 24px rgba(0, 0, 0, 0.40);
    --shadow-toast: 0 6px 20px rgba(0, 0, 0, 0.45);
  }
  .am-phone {
    color-scheme: dark;
    --bg-app: #0b0d10;
    --bg-surface: #13171c;
    --bg-raised: #1a1f25;
    --bg-overlay: #1f252c;
    --bg-pressed: #262d35;
    --border-subtle: #1d232a;
    --border: #262d36;
    --border-control: #66717e;
    --text: #e8ebef;
    --text-2: #aab2bc;
    --text-3: #909aa5;
    --accent: #5a9cff;
    --accent-solid: #2563d8;
    --accent-on: #ffffff;
    --accent-soft: #13243d;
    --accent-edge: #2563d8;
    --ok: #36cf80;
    --ok-soft: #0f2a1d;
    --bad: #ff6369;
    --bad-soft: #36171a;
    --info: #a796ff;
    --info-soft: #211d3a;
    --scrim: rgba(0, 0, 0, 0.62);
    --watermark-opacity: 0.05;
  }
  :root:not([data-theme="dark"]) .am-phone {
    color-scheme: light;
    --bg-app: #f3f5f7;
    --bg-surface: #ffffff;
    --bg-raised: #eef1f4;
    --bg-overlay: #ffffff;
    --bg-pressed: #e3e7eb;
    --border-subtle: #e7eaee;
    --border: #d8dde3;
    --border-control: #7b8591;
    --text: #111519;
    --text-2: #46505b;
    --text-3: #58626d;
    --accent: #1d5dcc;
    --accent-solid: #2563d8;
    --accent-on: #ffffff;
    --accent-soft: #e7efff;
    --accent-edge: #2563d8;
    --ok: #107a3e;
    --ok-soft: #e2f4e9;
    --bad: #c4232b;
    --bad-soft: #fde9ea;
    --info: #5b43c9;
    --info-soft: #eeeaff;
    --scrim: rgba(0, 0, 0, 0.38);
    --watermark-opacity: 0.05;
    --shadow-sheet: 0 -6px 24px rgba(0, 0, 0, 0.12);
    --shadow-toast: 0 6px 20px rgba(0, 0, 0, 0.16);
  }
}

@media (max-width: 1099.98px) {
  .am-record, body.am-door, main.cs-content:has(> .am-page) {
    /* ---- type (4.2) - rem, so the phone's text-size setting scales it */
    --font-ui:   "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

    --fs-11: .6875rem;  --lh-11: .875rem;   /* tab-bar labels only */
    --fs-12: .75rem;    --lh-12: 1rem;      /* action-row labels */
    --fs-13: .8125rem;  --lh-13: 1.125rem;  /* group headers, meta */
    --fs-15: .9375rem;  --lh-15: 1.375rem;  /* secondary lines, buttons */
    --fs-16: 1rem;      --lh-16: 1.5rem;    /* body, row titles */
    --fs-17: 1.0625rem; --lh-17: 1.5rem;    /* top-bar title, sheet titles */
    --fs-20: 1.25rem;   --lh-20: 1.75rem;   /* section titles */
    --fs-28: 1.75rem;   --lh-28: 2.125rem;  /* large titles, record names */
    --fs-34: 2.125rem;  --lh-34: 2.5rem;    /* hero numbers, gate code */

    --fw-regular: 400; --fw-medium: 500; --fw-semi: 600;
    --track-tight: -0.015em;  /* 20px and larger */

    /* ---- space, shape, motion (4.3) */
    --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
    --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-10: 40px;

    --gutter: 16px;
    --row-h: 56px;
    --row-h-1: 48px;
    --control-h: 44px;
    --control-h-lg: 52px;
    --tabbar-h: 56px; --topbar-h: 44px;

    --radius-1: 6px;
    --radius-2: 10px;
    --radius-3: 12px;
    --radius-4: 16px;
    --radius-full: 999px;

    --hairline: 1px;
    --focus-ring: 0 0 0 2px var(--bg-app), 0 0 0 4px var(--accent);

    --dur-1: 90ms;
    --dur-2: 160ms;
    --dur-3: 200ms;
    --ease: cubic-bezier(.2, 0, 0, 1);

    /* Depth is a lighter surface plus a hairline; these two shadows are the
       only ones in the system (sheets and toasts, 4.3). */
    --shadow-sheet: 0 -6px 24px rgba(0, 0, 0, 0.40);
    --shadow-toast: 0 6px 20px rgba(0, 0, 0, 0.45);
  }
  .am-record, body.am-door, main.cs-content:has(> .am-page) {
    color-scheme: dark;
    --bg-app: #0b0d10;
    --bg-surface: #13171c;
    --bg-raised: #1a1f25;
    --bg-overlay: #1f252c;
    --bg-pressed: #262d35;
    --border-subtle: #1d232a;
    --border: #262d36;
    --border-control: #66717e;
    --text: #e8ebef;
    --text-2: #aab2bc;
    --text-3: #909aa5;
    --accent: #5a9cff;
    --accent-solid: #2563d8;
    --accent-on: #ffffff;
    --accent-soft: #13243d;
    --accent-edge: #2563d8;
    --ok: #36cf80;
    --ok-soft: #0f2a1d;
    --bad: #ff6369;
    --bad-soft: #36171a;
    --info: #a796ff;
    --info-soft: #211d3a;
    --scrim: rgba(0, 0, 0, 0.62);
    --watermark-opacity: 0.05;
  }
  :root:not([data-theme="dark"]) .am-record, :root:not([data-theme="dark"]) body.am-door, :root:not([data-theme="dark"]) main.cs-content:has(> .am-page) {
    color-scheme: light;
    --bg-app: #f3f5f7;
    --bg-surface: #ffffff;
    --bg-raised: #eef1f4;
    --bg-overlay: #ffffff;
    --bg-pressed: #e3e7eb;
    --border-subtle: #e7eaee;
    --border: #d8dde3;
    --border-control: #7b8591;
    --text: #111519;
    --text-2: #46505b;
    --text-3: #58626d;
    --accent: #1d5dcc;
    --accent-solid: #2563d8;
    --accent-on: #ffffff;
    --accent-soft: #e7efff;
    --accent-edge: #2563d8;
    --ok: #107a3e;
    --ok-soft: #e2f4e9;
    --bad: #c4232b;
    --bad-soft: #fde9ea;
    --info: #5b43c9;
    --info-soft: #eeeaff;
    --scrim: rgba(0, 0, 0, 0.38);
    --watermark-opacity: 0.05;
    --shadow-sheet: 0 -6px 24px rgba(0, 0, 0, 0.12);
    --shadow-toast: 0 6px 20px rgba(0, 0, 0, 0.16);
  }
}

/* customer pages: every width, the device's theme */
body.am-public {
  /* ---- type (4.2) - rem, so the phone's text-size setting scales it */
  --font-ui:   "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  --fs-11: .6875rem;  --lh-11: .875rem;   /* tab-bar labels only */
  --fs-12: .75rem;    --lh-12: 1rem;      /* action-row labels */
  --fs-13: .8125rem;  --lh-13: 1.125rem;  /* group headers, meta */
  --fs-15: .9375rem;  --lh-15: 1.375rem;  /* secondary lines, buttons */
  --fs-16: 1rem;      --lh-16: 1.5rem;    /* body, row titles */
  --fs-17: 1.0625rem; --lh-17: 1.5rem;    /* top-bar title, sheet titles */
  --fs-20: 1.25rem;   --lh-20: 1.75rem;   /* section titles */
  --fs-28: 1.75rem;   --lh-28: 2.125rem;  /* large titles, record names */
  --fs-34: 2.125rem;  --lh-34: 2.5rem;    /* hero numbers, gate code */

  --fw-regular: 400; --fw-medium: 500; --fw-semi: 600;
  --track-tight: -0.015em;  /* 20px and larger */

  /* ---- space, shape, motion (4.3) */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-10: 40px;

  --gutter: 16px;
  --row-h: 56px;
  --row-h-1: 48px;
  --control-h: 44px;
  --control-h-lg: 52px;
  --tabbar-h: 56px; --topbar-h: 44px;

  --radius-1: 6px;
  --radius-2: 10px;
  --radius-3: 12px;
  --radius-4: 16px;
  --radius-full: 999px;

  --hairline: 1px;
  --focus-ring: 0 0 0 2px var(--bg-app), 0 0 0 4px var(--accent);

  --dur-1: 90ms;
  --dur-2: 160ms;
  --dur-3: 200ms;
  --ease: cubic-bezier(.2, 0, 0, 1);

  /* Depth is a lighter surface plus a hairline; these two shadows are the
     only ones in the system (sheets and toasts, 4.3). */
  --shadow-sheet: 0 -6px 24px rgba(0, 0, 0, 0.40);
  --shadow-toast: 0 6px 20px rgba(0, 0, 0, 0.45);
}
body.am-public {
  color-scheme: dark;
  --bg-app: #0b0d10;
  --bg-surface: #13171c;
  --bg-raised: #1a1f25;
  --bg-overlay: #1f252c;
  --bg-pressed: #262d35;
  --border-subtle: #1d232a;
  --border: #262d36;
  --border-control: #66717e;
  --text: #e8ebef;
  --text-2: #aab2bc;
  --text-3: #909aa5;
  --accent: #5a9cff;
  --accent-solid: #2563d8;
  --accent-on: #ffffff;
  --accent-soft: #13243d;
  --accent-edge: #2563d8;
  --ok: #36cf80;
  --ok-soft: #0f2a1d;
  --bad: #ff6369;
  --bad-soft: #36171a;
  --info: #a796ff;
  --info-soft: #211d3a;
  --scrim: rgba(0, 0, 0, 0.62);
  --watermark-opacity: 0.05;
}
:root:not([data-theme="dark"]) body.am-public {
  color-scheme: light;
  --bg-app: #f3f5f7;
  --bg-surface: #ffffff;
  --bg-raised: #eef1f4;
  --bg-overlay: #ffffff;
  --bg-pressed: #e3e7eb;
  --border-subtle: #e7eaee;
  --border: #d8dde3;
  --border-control: #7b8591;
  --text: #111519;
  --text-2: #46505b;
  --text-3: #58626d;
  --accent: #1d5dcc;
  --accent-solid: #2563d8;
  --accent-on: #ffffff;
  --accent-soft: #e7efff;
  --accent-edge: #2563d8;
  --ok: #107a3e;
  --ok-soft: #e2f4e9;
  --bad: #c4232b;
  --bad-soft: #fde9ea;
  --info: #5b43c9;
  --info-soft: #eeeaff;
  --scrim: rgba(0, 0, 0, 0.38);
  --watermark-opacity: 0.05;
  --shadow-sheet: 0 -6px 24px rgba(0, 0, 0, 0.12);
  --shadow-toast: 0 6px 20px rgba(0, 0, 0, 0.16);
}

/* the old names, Console's values - every width (Phase 7 desk, Phase 8 all) */
:root:root {
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-control: 10px;
  --r-panel: 12px;
  --r-sheet: 16px;
}
:root:not(:has(> body.am-public))[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #0b0d10;
  --panel: #13171c;
  --sunken: #0b0d10;
  --overlay: #1f252c;
  --hover: #1a1f25;
  --hairline: #262d36;
  --line-strong: #66717e;
  --scrim: rgba(0, 0, 0, 0.62);
  --ink-1: #e8ebef;
  --ink-2: #aab2bc;
  --ink-3: #909aa5;
  --accent: #2563d8;
  --accent-pressed: #2563d8;
  --accent-text: #5a9cff;
  --accent-tint: #13243d;
  --on-accent: #ffffff;
  --focus: #5a9cff;
  --danger: #ff6369;
  --danger-pressed: #ff6369;
  --on-danger: #ffffff;
  --live-fill: #1a1f25;
  --live-ink: #e8ebef;
  --live-text: #5a9cff;
  --live-mark: #5a9cff;
  --planned-fill: #211d3a;
  --planned-ink: #a796ff;
  --planned-text: #a796ff;
  --planned-mark: #a796ff;
  --money-in-fill: #0f2a1d;
  --money-in-ink: #36cf80;
  --money-in-text: #36cf80;
  --money-in-mark: #36cf80;
  --attention-fill: #36171a;
  --attention-ink: #ff6369;
  --attention-text: #ff6369;
  --attention-mark: #ff6369;
  --owed-fill: #1a1f25;
  --owed-ink: #aab2bc;
  --owed-text: #aab2bc;
  --owed-mark: #909aa5;
}
:root:not(:has(> body.am-public)):not([data-theme="dark"]) {
  color-scheme: light;
  --canvas: #f3f5f7;
  --panel: #ffffff;
  --sunken: #f3f5f7;
  --overlay: #ffffff;
  --hover: #eef1f4;
  --hairline: #d8dde3;
  --line-strong: #7b8591;
  --scrim: rgba(0, 0, 0, 0.38);
  --ink-1: #111519;
  --ink-2: #46505b;
  --ink-3: #58626d;
  --accent: #2563d8;
  --accent-pressed: #2563d8;
  --accent-text: #1d5dcc;
  --accent-tint: #e7efff;
  --on-accent: #ffffff;
  --focus: #1d5dcc;
  --danger: #c4232b;
  --danger-pressed: #c4232b;
  --on-danger: #ffffff;
  --live-fill: #eef1f4;
  --live-ink: #111519;
  --live-text: #1d5dcc;
  --live-mark: #1d5dcc;
  --planned-fill: #eeeaff;
  --planned-ink: #5b43c9;
  --planned-text: #5b43c9;
  --planned-mark: #5b43c9;
  --money-in-fill: #e2f4e9;
  --money-in-ink: #107a3e;
  --money-in-text: #107a3e;
  --money-in-mark: #107a3e;
  --attention-fill: #fde9ea;
  --attention-ink: #c4232b;
  --attention-text: #c4232b;
  --attention-mark: #c4232b;
  --owed-fill: #eef1f4;
  --owed-ink: #46505b;
  --owed-text: #46505b;
  --owed-mark: #58626d;
}

/* the desk repaint: the desktop-trial layer's own literals (1100px and up) */
@media (min-width: 1100px) {
  :root:not(:has(> body.am-public)) body:has(.dk-trial) {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --ledger-font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --dk-shadow: none;
    --dk-lift: 0 6px 20px rgba(0, 0, 0, 0.24);
  }
  :root:not(:has(> body.am-public))[data-theme="dark"] body:has(.dk-trial) {
    --dk-nav: #0b0d10;
    --dk-nav-ink: #aab2bc;
    --dk-danger: #ff6369;
    --dk-danger-bg: #36171a;
    --dk-good: #36cf80;
  }
  :root:not(:has(> body.am-public)):not([data-theme="dark"]) body:has(.dk-trial) {
    --dk-nav: #ffffff;
    --dk-nav-ink: #46505b;
    --dk-danger: #c4232b;
    --dk-danger-bg: #fde9ea;
    --dk-good: #107a3e;
  }
}

/* the clean-sheet palette, at zero specificity (palettes.py: the layout layer) */
:where(:root, [data-theme="light"]) {
  color-scheme: light;
  --canvas: #faf8f5;
  --panel: #ffffff;
  --overlay: #ffffff;
  --sunken: #f3f0eb;
  --hover: #efece8;
  --hairline: #e7e2db;
  --scrim: rgb(24 20 32 / 0.44);
  --ink-1: #1c1917;
  --ink-2: #57534e;
  --ink-3: #706a62;
  --line-strong: #908a82;
  --on-accent: #1a1410;
  --accent: #bb7e06;
  --accent-pressed: #cd8d1d;
  --accent-text: #9a5b0b;
  --accent-tint: #fcf4e7;
  --focus: #9a5b0b;
  --danger: #c8443c;
  --danger-pressed: #b32f2b;
  --on-danger: #ffffff;
  --money-in-fill: #e0f7e5;
  --money-in-ink: #035e2e;
  --money-in-text: #017d3e;
  --money-in-mark: #079e51;
  --owed-fill: #ffebe5;
  --owed-ink: #89361b;
  --owed-text: #c2410c;
  --owed-mark: #c2410c;
  --attention-fill: #feebe9;
  --attention-ink: #8a332d;
  --attention-text: #be423b;
  --attention-mark: #e06258;
  --live-fill: #f3f0eb;
  --live-ink: #1c1917;
  --live-text: #1c1917;
  --live-mark: #57534e;
  --planned-fill: #e8edf5;
  --planned-ink: #264d8d;
  --planned-text: #3d66a8;
  --planned-mark: #3d66a8;
}
:where([data-theme="dark"]) {
  color-scheme: dark;
  --canvas: #141210;
  --panel: #1e1b18;
  --overlay: #282420;
  --sunken: #0d0b08;
  --hover: #302d2a;
  --hairline: #3a3530;
  --scrim: rgb(0 0 0 / 0.62);
  --ink-1: #f5f2ee;
  --ink-2: #ada59d;
  --ink-3: #9a9289;
  --line-strong: #746d66;
  --on-accent: #1a1410;
  --accent: #e3a23b;
  --accent-pressed: #edb255;
  --accent-text: #e3a23b;
  --accent-tint: #362b1c;
  --focus: #e3a23b;
  --danger: #c8443c;
  --danger-pressed: #b32f2b;
  --on-danger: #ffffff;
  --money-in-fill: #11351d;
  --money-in-ink: #78cd90;
  --money-in-text: #3ebd6d;
  --money-in-mark: #049e50;
  --owed-fill: #44230d;
  --owed-ink: #f8a371;
  --owed-text: #f0843c;
  --owed-mark: #f0843c;
  --attention-fill: #461f1c;
  --attention-ink: #fe9c91;
  --attention-text: #ff8175;
  --attention-mark: #e06257;
  --live-fill: #282420;
  --live-ink: #f5f2ee;
  --live-text: #f5f2ee;
  --live-mark: #ada59d;
  --planned-fill: #292a2f;
  --planned-ink: #94b7f2;
  --planned-text: #7a9cd6;
  --planned-mark: #7a9cd6;
}

/* the layout layer's own colours, as written (rd/layout-*.css) */
:where(:root) {
  --v1-ffffff: #fff;
  --v1-rgb-0-0-0-055: rgb(0 0 0 / 0.55);
  --v1-rgb-0-0-0-06: rgb(0 0 0 / 0.6);
  --v1-000000: #000;
  --v1-00000099: #0009;
  --v1-0a6c38: #0a6c38;
  --v1-77d49e: #77d49e;
  --v1-9a1e1d: #9a1e1d;
  --v1-ffa9a3: #ffa9a3;
  --v1-f8f6fb: #F8F6FB;
  --v1-f2eef8: #F2EEF8;
  --v1-e4ddee: #E4DDEE;
  --v1-12101a: #12101A;
  --v1-4e4759: #4E4759;
  --v1-45454f: #45454F;
  --v1-101218: #101218;
  --v1-5c5568: #5C5568;
  --v1-096349: #096349;
  --v1-ab2034: #AB2034;
  --v1-ffe3e7: #FFE3E7;
  --v1-0b0810: #0B0810;
  --v1-16111d: #16111D;
  --v1-211829: #211829;
  --v1-f4f1f8: #F4F1F8;
  --v1-b5aac4: #B5AAC4;
  --v1-bebec9: #BEBEC9;
  --v1-f3f4f8: #F3F4F8;
  --v1-a198b0: #A198B0;
  --v1-3dd9a4: #3DD9A4;
  --v1-ff8a99: #FF8A99;
  --v1-2c0f16: #2C0F16;
  --v1-ffffff12: #ffffff12;
  --v1-ffffff0e: #ffffff0e;
  --v1-bcb0be: #bcb0be;
  --v1-ffffff16: #ffffff16;
  --v1-35252c06: #35252c06;
  --v1-36223820: #36223820;
  --v1-00000011: #0001;
  --v1-00000008: #00000008;
}
/* palettes:end */
