/* Design tokens: the ONLY file with raw colours, fonts, sizes, radii, shadows and spacing.
   Source: design-v2/*.dc.html (KEA V4 design v2, 20 Nov 2026). When the designs change, update here first.
   Layers: 1) raw palette  2) role tokens (what things mean)  3) component tokens (what each piece uses). */

/* Self-hosted fonts (public/fonts, licences + checksums in public/fonts/FONTS.md). No CDN: CSP is 'self'.
   docs/DESIGN.md §4 (owner 22 Nov): Inter for everything (400 text, 600 labels, 700 headings, 800 the logo);
   JetBrains Mono only for receipt labels and IDs. Five files; the four Inter ones are preloaded (index.html). */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/inter/Inter-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/fonts/inter/Inter-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/fonts/inter/Inter-Bold.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('/fonts/inter/Inter-ExtraBold.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/jetbrains-mono/JetBrainsMono-Regular.woff2') format('woff2'); }

:root {
  /* 1) Raw palette (owner 25 Nov, KEA-APP-PALETTE-SPEC.md): the brand's 7 colours, the same as the website and the web
     dashboard — Warm Stone #F0EEE9, Porcelain #FAF9F6, Charcoal #1C1B19, Burnt Orange #E8622C (logo dot, active tab,
     chart lines, small highlights only), Forest Green #2E6B4F, Warm Gray #5F5B53, Stone Border #E0DCD3 — plus the three
     status pairs: Urgent #B42318 on #FBE9E7, Due soon #8A5A00 on #FAF0D7, Paid/Confirmed #2E6B4F on #E6EEE9. Flat only,
     no glass. Orange no longer means urgency. No blue. */
  --palette-paper: #F0EEE9;          /* Warm Stone: page background */
  --palette-card: #FAF9F6;           /* Porcelain: cards, inputs, chips */
  --palette-receipt: #FAF9F6;        /* thermal receipt paper */
  --palette-white: #FAF9F6;
  --palette-tile-stone: #F0EEE9;     /* DESIGN.md §3 soft tiles: Vault sections */
  --palette-tile-sage: #E6EEE9;
  --palette-tile-rose: #F0EEE9;
  --palette-rose: #5F5B53;           /* Bills edge on Wallet cards: Warm Gray */
  --palette-plum: #1C1B19;           /* Loans & finance edge: Charcoal */
  --palette-tile-mauve: #F0EEE9;
  --palette-olive: #5F5B53;          /* Cards & memberships edge: Warm Gray */
  --palette-tile-olive: #F0EEE9;
  --palette-edge-insurance: #1C1B19; /* Insurance edge: Charcoal (gold is now the reward green) */

  /* Orb Live (owner 25 Nov, KEA-ORB-LIVE-SPEC.md): the canvas orb reads these once; ink dots on paper. Pinned to their
     own values (KEA-APP-PALETTE-SPEC.md: the orb does not change with the app palette). */
  --orb-live-ink: var(--palette-ink);
  --orb-live-calm: #77736A;
  --orb-live-alert: #A3361F;
  --orb-live-done: var(--palette-green);
  --orb-live-accent: var(--palette-orange);
  --orb-live-tear: var(--palette-muted);
  --orb-live-confetti-1: #C9A23F;
  --orb-live-confetti-2: #A3361F;
  --orb-live-confetti-3: #3F8F5F;
  --orb-live-confetti-4: var(--palette-orange);
  --orb-live-confetti-5: #A8566A;
  --orb-live-confetti-6: #6E4B63;
  --orb-live-size: 340px;            /* the canvas on Home; smaller sizes are a scale of it (transform only) */
  --orb-live-h-home: 340px;
  --orb-live-h-chat: 124px;
  --orb-live-h-react: 230px;
  --orb-live-h-big: 310px;
  --orb-live-scale-chat: 0.365;
  --orb-live-scale-react: 0.676;
  --orb-live-scale-big: 0.912;
  --orb-live-resize-ms: 700ms;
  --palette-ink: #1C1B19;            /* Charcoal */
  --palette-black: #1C1B19;
  --palette-muted: #5F5B53;          /* Warm Gray: supporting text, labels */
  --palette-idle: #5F5B53;           /* idle tab */
  --palette-stone: #5F5B53;          /* not-yet steps */
  --palette-pebble: #E0DCD3;         /* dashed tags, "others" */
  --palette-line: #E0DCD3;           /* Stone Border */
  --palette-on-ink-muted: #E0DCD3;
  --palette-orange: #E8622C;         /* Burnt Orange: small highlights only */
  --palette-gold: #2E6B4F;           /* reward text: Forest Green (rewards, savings) */
  --palette-gold-deep: #2E6B4F;      /* text on gold-soft */
  --palette-gold-soft: #E6EEE9;
  --palette-gold-light: #E8622C;     /* labels on ink */
  --palette-gold-mid: #5F5B53;
  --palette-amber: #8A5A00;          /* Due soon (within 7 days), pending, estimated */
  --palette-amber-soft: #FAF0D7;
  --palette-green: #2E6B4F;          /* Paid / Confirmed */
  --palette-green-soft: #E6EEE9;
  --palette-green-mid: #2E6B4F;
  --palette-red: #B42318;            /* Urgent (due within 2 days, overdue) */
  --palette-red-soft: #FBE9E7;
  --palette-ink-10: rgba(28, 27, 25, 0.10);
  --palette-ink-06: rgba(28, 27, 25, 0.06);
  --palette-ink-18: rgba(28, 27, 25, 0.18);
  --palette-ink-25: rgba(28, 27, 25, 0.25);
  --palette-ink-45: rgba(28, 27, 25, 0.45);
  --palette-orange-35: rgba(232, 98, 44, 0.35);
  --palette-orange-28: rgba(232, 98, 44, 0.28);
  --palette-gold-mid-12: rgba(201, 162, 63, 0.12);
  --palette-gold-soft-60: rgba(230, 238, 233, 0.6);
  --palette-card-98: rgba(250, 249, 246, 0.98);

  /* 2) Role tokens (components use these) */
  --color-page: var(--palette-paper);
  --color-surface: var(--palette-card);
  --color-on-accent: var(--palette-card);       /* text on the orange badge */
  --color-text: var(--palette-ink);
  --color-text-muted: var(--palette-muted);
  --color-text-idle: var(--palette-idle);
  --color-text-faint: var(--palette-stone);
  --color-on-ink: var(--palette-paper);
  --color-on-ink-muted: var(--palette-on-ink-muted);
  --color-on-ink-label: var(--palette-gold-light);
  --color-line: var(--palette-line);
  --color-line-strong: var(--palette-ink);
  --color-line-dashed: var(--palette-pebble);
  --color-link: var(--palette-ink);
  --color-link-hover: var(--palette-black);
  --color-primary: var(--palette-ink);          /* primary buttons, selected segments */
  --color-primary-hover: var(--palette-black);
  --color-primary-text: var(--palette-paper);
  --color-accent: var(--palette-orange);        /* logo dot, active tab dot, usage, send */
  --color-accent-text: var(--palette-white);
  --color-reward: var(--palette-gold);
  --color-reward-soft: var(--palette-gold-soft);
  --color-reward-deep: var(--palette-gold-deep);
  --color-reward-mid: var(--palette-gold-mid);
  --color-due: var(--palette-amber);
  --color-due-soft: var(--palette-amber-soft);
  --color-positive: var(--palette-green);
  --color-positive-soft: var(--palette-green-soft);
  --color-danger: var(--palette-red);
  --color-danger-soft: var(--palette-red-soft);
  --color-scrim: var(--palette-ink-45);
  --color-receipt: var(--palette-receipt);

  /* Chart categories (Money) */
  --chart-shopping: #1C1B19;
  --chart-bills: #E8622C;
  --chart-groceries: #2E6B4F;
  --chart-insurance: #5F5B53;
  --chart-others: #E0DCD3;

  /* Page background: dot grid on paper */
  --dotgrid-image: radial-gradient(var(--palette-ink-10) 1px, transparent 1.2px);
  --dotgrid-size: 16px 16px;

  /* Fonts */
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  /* small labels, amounts and dates: Inter with tabular figures (DESIGN.md §4: no other fonts) */
  --font-mono: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-receipt: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;   /* receipt labels + IDs only */
  --tracking-heading: -0.025em;
  --font-logo: var(--font-body);
  --font-system: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;   /* dev ?dbg=nofont only */

  /* Type scale (sizes in the design: 10 11 12 13 14 15 16 17 18 20 22 23 24 26 28 30 40) */
  --text-3xs: 10px;
  --text-2xs: 11px;
  --text-xs: 12px;
  --text-sm: 13px;
  --text-md: 14px;
  --text-base: 15px;
  --text-lg: 16px;
  --text-price: 17px;
  --text-xl: 18px;
  --text-2xl: 20px;
  --text-3xl: 22px;
  --text-logo: 23px;
  --text-4xl: 24px;
  --text-5xl: 26px;
  --text-6xl: 28px;
  --text-7xl: 30px;
  --text-hero: 40px;
  --text-stat: clamp(15px, 5vw, 22px);   /* stat tiles: 22px, smaller on 320 px screens so an amount stays on one line */
  --weight-regular: 400;
  --weight-medium: 600;   /* DESIGN.md §4: labels are 600; no 500 file */
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-heavy: 800;
  --leading-none: 1;
  --leading-tight: 1.2;
  --leading-snug: 1.35;
  --leading-normal: 1.45;
  --leading-relaxed: 1.5;
  --leading-loose: 1.6;
  --tracking-tight: -0.01em;
  --tracking-logo: 0.01em;
  --tracking-tab: 0.04em;
  --tracking-caps-sm: 0.06em;
  --tracking-caps: 0.1em;
  --tracking-caps-wide: 0.12em;
  --tracking-receipt: 0.14em;
  --tracking-barcode: 2px;

  /* Spacing */
  --space-0: 0;
  --space-1: 2px;
  --space-1h: 3px;
  --space-2: 4px;
  --space-2h: 5px;
  --space-3: 6px;
  --space-3h: 7px;
  --space-4: 8px;
  --space-5: 10px;
  --space-5h: 11px;
  --space-6: 12px;
  --space-6h: 13px;
  --space-7: 14px;
  --space-8: 16px;
  --space-9: 18px;
  --space-10: 20px;
  --space-11: 22px;
  --space-12: 24px;
  --space-14: 28px;
  --space-15: 30px;
  --space-16: 32px;
  --gutter: var(--space-10);

  /* Radii */
  --radius-xs: 2px;
  --radius-bar: 3px;
  --radius-stamp: 6px;
  --radius-tag: 8px;
  --radius-sm: 14px;
  --radius-card: 16px;
  --radius-bubble: 18px;
  --radius-bubble-tail: 4px;
  --radius-toast: 20px;
  --radius-hero: 22px;
  --radius-sheet: 26px;
  --radius-pill: 999px;
  --radius-round: 50%;

  /* Borders, shadows */
  --border-width: 1px;
  --border-width-strong: 1.5px;
  --border-width-stamp: 2px;
  --shadow-sm: 0 6px 20px var(--palette-ink-06);
  --shadow-card: 0 10px 30px var(--palette-ink-10);
  --shadow-toast: 0 14px 34px var(--palette-ink-18);
  --shadow-slot: 0 4px 10px var(--palette-ink-25);
  --focus-ring: 0 0 0 3px var(--palette-orange-35);

  /* Sizes */
  --size-touch: 44px;
  --size-input: 50px;
  --size-button: 50px;
  --size-button-md: 42px;
  --size-chip: 36px;
  --size-pill-button: 34px;
  --size-appbar: 66px;
  --size-backbar: 64px;
  --size-logo-dot: 6px;
  --size-keai-badge: 28px;
  --size-otp-box: 48px;         /* sign-in code boxes */
  --text-input-min: 16px;       /* inputs: below 16px iPhone Safari zooms the page on focus */
  --size-otp-tick: 44px;
  --otp-shift: 6px;          /* the static KEAi badge (owner 22 Nov) */
  --size-keai-badge-dot: 4px;
  --size-badge: 16px;                           /* unread count on the bell */
  --size-tab-dot: 4px;
  --size-status-dot: 8px;
  --size-legend-dot: 10px;
  --size-step: 26px;
  --size-button-lg: 54px;
  --size-letter-tile: 44px;
  --size-letter-tile-row: 42px;
  --size-letter-tile-lg: 58px;
  --size-icon-tile: 36px;
  --size-avatar: 54px;
  --size-icon: 20px;
  --size-icon-sm: 18px;
  --size-icon-tab: 24px;
  --size-tab-min: 64px;
  --size-tabbar: 84px;
  --size-bar: 6px;                              /* warranty time-used bar (design 09) */
  --size-usage: 4px;
  --size-usage-lg: 6px;
  --size-receipt: 300px;
  --size-receipt-slot: 14px;
  --size-tear: 10px;
  --size-sheet-max: 90vh;
  --size-app-max: 430px;
  --size-desk-side: 232px;           /* web dashboard (owner 25 Nov): the left menu */
  --size-desk-chat: 360px;           /* web dashboard: Ask KEAi on the right of Home */
  --size-desk-chat-narrow: 288px;    /* ...between 1024 and 1279 px (owner 26 Nov: no squeezed text at 1024) */
  --size-admin-max: 720px;
  --stroke-icon: 1.7;

  /* Layers, motion */
  --z-tabbar: 10;
  --z-label: 20;
  --z-sheet: 25;
  --z-reader: 28;               /* the legal pages reader (owner 26 Nov): over sheets, under toasts */
  --z-toast: 30;
  --motion-welcome-fade: 220ms; /* welcome cards with reduced motion: a fade instead of the slide */
  --motion-splash-fade: 300ms;  /* the splash (owner 26 Nov 19:19): the orb fades in, the whole splash fades out */
  --motion-splash-cap: 1.2s;    /* never longer: the fade-out starts here even if the app is still loading */
  --z-splash: 40;               /* over everything while it shows */
  --splash-mask-solid: #1C1B19; /* the orb's sphere mask (only its alpha counts): solid centre, softer rim */
  --splash-mask-soft: rgba(28, 27, 25, 0.45);
  --welcome-dot: 8px;
  --motion-fast: 120ms;
  --motion-otp: 250ms;          /* sign-in code: digits fade into the tick; the tick grows in after them (< 0.8 s in all) */
  --motion-otp-tick-delay: 300ms;
  --motion-otp-stagger: 25ms;
  --motion-shake: 320ms;
  --motion-print: 1.6s;
  --ease-print: cubic-bezier(.2, .7, .2, 1);
  --motion-stamp: .5s;
  --motion-stamp-delay: 1.5s;
  --ease-stamp: cubic-bezier(.2, 1.6, .4, 1);
  --stamp-angle: -8deg;
  --stamp-angle-start: -14deg;
  --stamp-scale-start: 1.8;
  --opacity-disabled: 0.45;

  /* 3) Component tokens */
  --logo-size: var(--text-logo);
  --logo-weight: var(--weight-heavy);
  --logo-dot: var(--color-accent);
  --logo-i: var(--palette-orange);              /* the "i" of KEAi (design-v2, 21 Nov) */
  --logo-dot-gap: 2px;                          /* KEAi: the dot sits 2 px after the i */
  --logo-dot-gap-lg: 2px;
  --tabbar-bg: var(--color-page);
  --tabbar-idle: var(--color-text-idle);
  --tabbar-active: var(--color-text);
  --color-dot: var(--color-accent);

  /* KEAi orb (design-v2 01-Home + orb-final-v2, owner 21 Nov). Idle values first, listening values second. */
  --orb-dot-ink: var(--palette-ink);             /* the sphere's dots: ink, a mid grey every 3rd, a light grey every 5th */
  --orb-dot-mid: #6E6A61;
  --orb-dot-light: #A39E93;
  --orb-accent: var(--palette-orange);           /* every 7th dot while listening */
  --orb-dot-size: 4px;
  --orb-dot-radius: 96px;                        /* sphere radius: the dots fill 80% of the 240 px stage */
  --orb-spin-ms: 32000ms;                        /* the slowest spin, in every state */
  --orb-glow-from: var(--palette-orange-28);     /* core glow centre */
  --orb-glow-to: var(--palette-gold-mid-12);     /* core glow edge */
  --orb-ripple-line: var(--palette-ink-18);
  --orb-ripple-line-listening: var(--palette-orange-35);
  --orb-size-large: 240px;
  --orb-size-small: 36px;                        /* design-v2 02 header orb */
  --orb-perspective-ratio: 2.9;                  /* perspective = stage size x ratio */
  --orb-beat-ms: 1400ms;
  --orb-beat-listening-ms: 1400ms;               /* orb-final-v2: the same 1.4 s heartbeat while typing */
  --orb-beat-rise: 1.07;
  --orb-beat-dip: 0.99;
  --orb-beat-echo: 1.045;
  --orb-glow-rest: 0.45;
  --orb-glow-peak: 1;
  --orb-glow-echo: 0.85;
  --orb-glow-mid-stop: 45%;
  --orb-glow-end-stop: 70%;
  --orb-core-size: 29%;
  --orb-core-size-listening: 46%;
  --orb-ripple-size: 83%;
  --orb-ripple-from: 0.55;
  --orb-ripple-scale: 1.15;
  --orb-ripple-opacity: 0.7;
  --orb-tilt: -16deg;
  --orb-tilt-listening: -64deg;
  --orb-tilt-ms: 1100ms;
  --orb-ease: cubic-bezier(.4, 0, .2, 1);
  /* small orb (design-v2 02 header + orb-final-v2) */
  --orb-ring-a-ms: 52000ms;
  --orb-ring-b-ms: 36000ms;
  --orb-ring-b-opacity: 0.75;
  --orb-breathe-ms: 5000ms;
  --orb-breathe-scale: 1.045;
  --orb-small-glow: rgba(201, 162, 63, .18);
  --orb-small-glow-inset: 18%;
  --orb-small-glow-ms: 3200ms;
  --orb-small-glow-rest: 0.4;
  --orb-caption-gap: var(--space-4);
  --card-bg: var(--color-surface);
  --card-border: var(--color-line);
  --card-border-selected: var(--color-line-strong);
  --chip-bg: var(--color-surface);
  --chip-selected-bg: var(--color-primary);
  --chip-selected-text: var(--color-primary-text);
  --pill-gold-bg: var(--color-reward-soft);
  --pill-gold-text: var(--color-reward);
  --pill-green-bg: var(--color-positive-soft);
  --pill-green-text: var(--color-positive);
  --pill-amber-bg: var(--color-due-soft);
  --pill-amber-text: var(--color-due);
  --usage-track: var(--color-line);
  --usage-fill: var(--color-accent);
  --receipt-bg: var(--color-receipt);
  --receipt-divider: var(--color-line);
  --receipt-stamp: var(--color-reward);
  --receipt-stamp-bg: var(--palette-gold-soft-60);
  --receipt-slot: var(--color-text);
  --receipt-tear-image: radial-gradient(circle at 6px -2px, transparent 6px, var(--palette-receipt) 6.5px);
  --receipt-tear-size: 12px 10px;
  --sheet-bg: var(--color-page);
  --toast-bg: var(--palette-card-98);
  --label-bg: var(--color-reward-soft);
  --label-text: var(--color-reward-deep);

  /* Home + chat (design-v2 01 Home, 02 Chat) */
  --tracking-caps-md: 0.08em;
  --leading-note: 1.4;
  --size-icon-xs: 14px;
  --stroke-icon-bold: 2.2;
  --size-composer-button: 46px;
  --composer-bg: var(--color-page);              /* solid: messages scroll under it */
  --composer-pad-block-end: var(--space-5);
  --usage-link-inset: var(--space-3);            /* 22 px from the edge = 16 px bar padding + 6 */
  --home-hero-gap: var(--space-5);
  --home-feed-dim: 0.35;                         /* feed while typing */
  --home-feed-shift: 6px;
  --home-swap-shift: 8px;
  --home-swap-block: 66px;                       /* greeting / "I'm listening…" swap area */
  --home-msg-shift: 10px;
  --motion-swap: 200ms;   /* Home greeting ↔ listening (frequent: motion audit 22 Nov) */
  --motion-msg: 180ms;    /* a new chat message (frequent) */
  --ease-out: cubic-bezier(.2, .7, .1, 1);   /* DESIGN.md §7 */
  --motion-dot: 1s;
  --dot-dim: 0.25;
  --bubble-user-max: 78%;
  --bubble-kea-max: 88%;
  --offers-max: 92%;
  --feed-tag-min: 58px;
  --feed-tag-due: var(--color-due);
  --feed-tag-positive: var(--color-positive);

  /* Money, Receipts, Reward receipt (design-v2 04, 08, 07) */
  --size-budget-bar: 150px;
  --size-donut: 118px;
  --chart-arc-width: 16;
  --size-chart-line: 2px;
  --size-chart-budget: 4px;
  --size-chart-rewards: 14px;
  --size-chart-trend-max: 360px;
  --size-cat-row: 27px;
  --size-cat-pct: 40px;
  --size-cat-value: 74px;
  --size-due-value: 70px;
  --size-receipt-tile-inline: 40px;
  --size-receipt-tile-block: 48px;
  --size-barcode: 22px;
  --orb-size-mini: 28px;
  --money-total-size: var(--text-7xl);
  --money-tile-size: var(--text-xl);
  --paid-pill-bg: var(--color-reward-soft);
  --paid-pill-text: var(--color-reward);

  /* You, Upgrade, Reward tracker (design-v2 05, 14, 13) */
  --tracking-title-tight: -0.02em;
  --size-logo-dot-lg: 8px;
  --logo-size-lg: var(--text-7xl);
  /* the sign-in hero (owner 28 Nov, option A): the logo's exact colours, the dot's double pulse, the one-time rise */
  --signin-logo-ink: #1C1B18;
  --signin-logo-accent: #E9602B;
  --signin-dot-beat-ms: 1600ms;
  --signin-rise-ms: 700ms;
  --signin-rise-shift: 14px;
  --size-plan-tab: var(--size-touch);           /* design 40 px; 44 px touch target */
  --size-step-mark: var(--size-step);
  --radius-option: var(--radius-bubble);       /* 18 px billing options, pill-tab buttons */
  --plan-card-border: var(--color-line);
  --plan-card-current-border: var(--color-line-strong);
  --plan-current-text: var(--color-accent);
  --step-done: var(--color-positive);
  --step-current: var(--color-due);
  --step-upcoming: var(--color-text-faint);
  --step-declined: var(--color-danger);
}

/* Founder Command Centre (/admin, KEA-FOUNDER-COMMAND-CENTRE-SPEC.md A4): the KEAi palette in light, and a dark theme
   from the same family (warm charcoals, porcelain text, the same orange a step lighter). Owner-approved mockup:
   motion-audits/admin/ (27 Nov). The admin page sets data-cc-theme on <html>: light, dark, or system. */
:root {
  --cc-page: var(--palette-paper);
  --cc-surface: var(--palette-card);
  --cc-raised: var(--palette-card);
  --cc-side: #E9E6DF;
  --cc-text: var(--palette-ink);
  --cc-muted: var(--palette-muted);
  --cc-faint: #8C877D;
  --cc-line: var(--palette-line);
  --cc-accent: var(--palette-orange);
  --cc-ink: var(--palette-ink);
  --cc-on-ink: var(--palette-paper);
  --cc-good: var(--palette-green);
  --cc-good-soft: var(--palette-green-soft);
  --cc-warn: var(--palette-amber);
  --cc-warn-soft: var(--palette-amber-soft);
  --cc-bad: var(--palette-red);
  --cc-bad-soft: var(--palette-red-soft);
  --cc-on-bad: var(--palette-card);
  --cc-scrim: rgba(20, 19, 17, 0.45);
  --cc-shadow: 0 20px 60px rgba(20, 19, 17, 0.25);
  --cc-side-width: 248px;
  --cc-radius: 14px;
  --cc-radius-sm: 8px;
  --cc-radius-md: 10px;
  --cc-gap: 16px;
  --cc-ring: 0 0 0 3px var(--palette-orange-35);
}
:root[data-cc-theme="dark"] {
  --cc-page: #141311;
  --cc-surface: #1C1B19;
  --cc-raised: #25231F;
  --cc-side: #181715;
  --cc-text: #F0EEE9;
  --cc-muted: #B3AEA4;
  --cc-faint: #858076;
  --cc-line: #34312C;
  --cc-accent: #F0743F;
  --cc-ink: #F0EEE9;
  --cc-on-ink: #1C1B19;
  --cc-good: #6FB48F;
  --cc-good-soft: #1E2E25;
  --cc-warn: #E0AE4F;
  --cc-warn-soft: #33290F;
  --cc-bad: #F07A6E;
  --cc-bad-soft: #3A1A16;
  --cc-on-bad: #1C1B19;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root[data-cc-theme="system"] {
    --cc-page: #141311;
    --cc-surface: #1C1B19;
    --cc-raised: #25231F;
    --cc-side: #181715;
    --cc-text: #F0EEE9;
    --cc-muted: #B3AEA4;
    --cc-faint: #858076;
    --cc-line: #34312C;
    --cc-accent: #F0743F;
    --cc-ink: #F0EEE9;
    --cc-on-ink: #1C1B19;
    --cc-good: #6FB48F;
    --cc-good-soft: #1E2E25;
    --cc-warn: #E0AE4F;
    --cc-warn-soft: #33290F;
    --cc-bad: #F07A6E;
    --cc-bad-soft: #3A1A16;
    --cc-on-bad: #1C1B19;
    color-scheme: dark;
  }
}

/* Dev-only ?dbg=nofont (KEA_DEV=1): system fonts only, so no web font is loaded or swapped in */
html.dbg-nofont { --font-body: var(--font-system); --font-heading: var(--font-system); --font-mono: var(--font-system); --font-receipt: ui-monospace, Menlo, monospace; }
