@layer tokens, base, ui, shell, surface;
/* Tokens (docs/signal.md): the faces, Signal's scale and materials, and the theme palettes. The themes'
   colours are Geist's own and stay as they are; Signal owns shape, depth and motion. */
/* ============================================================================
   Faces. Self-hosted, all SIL OFL. Funnel Display: titles. Funnel Sans: the interface. Instrument Serif:
   documents and quotes. Red Hat Mono: numbers that change, ids, times, keys.
   ========================================================================== */
/* Tokens: the original Geist app's fonts, variables and themes (geist_app/public/css fonts.css,
   variables.css, themes.css token blocks), unchanged. Everything else reads these. */
/* ============================================================================
   Interface faces (docs/archive/design-language.md §5.1). Self-hosted, all SIL OFL.
   Funnel Display: wordmark, headlines, window titles. Funnel Sans: interface.
   Instrument Serif: notes, documents, subheadings (never the Assistant).
   Red Hat Mono: run steps, ids, measurements. Linked before variables.css.
   ========================================================================== */
@font-face {
  font-family: "Funnel Display";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src:
    url("../fonts/funnel-display-latin-ext.woff2") format("woff2-variations"),
    url("../fonts/funnel-display-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA,
    U+02BD-02C5,
    U+02C7-02CC,
    U+02CE-02D7,
    U+02DD-02FF,
    U+0304,
    U+0308,
    U+0329,
    U+1D00-1DBF,
    U+1E00-1E9F,
    U+1EF2-1EFF,
    U+2020,
    U+20A0-20AB,
    U+20AD-20C0,
    U+2113,
    U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "Funnel Display";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src:
    url("../fonts/funnel-display-latin.woff2") format("woff2-variations"),
    url("../fonts/funnel-display-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF,
    U+0131,
    U+0152-0153,
    U+02BB-02BC,
    U+02C6,
    U+02DA,
    U+02DC,
    U+0304,
    U+0308,
    U+0329,
    U+2000-206F,
    U+20AC,
    U+2122,
    U+2191,
    U+2193,
    U+2212,
    U+2215,
    U+FEFF,
    U+FFFD;
}
@font-face {
  font-family: "Funnel Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src:
    url("../fonts/funnel-sans-latin-ext.woff2") format("woff2-variations"),
    url("../fonts/funnel-sans-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA,
    U+02BD-02C5,
    U+02C7-02CC,
    U+02CE-02D7,
    U+02DD-02FF,
    U+0304,
    U+0308,
    U+0329,
    U+1D00-1DBF,
    U+1E00-1E9F,
    U+1EF2-1EFF,
    U+2020,
    U+20A0-20AB,
    U+20AD-20C0,
    U+2113,
    U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "Funnel Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src:
    url("../fonts/funnel-sans-latin.woff2") format("woff2-variations"),
    url("../fonts/funnel-sans-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF,
    U+0131,
    U+0152-0153,
    U+02BB-02BC,
    U+02C6,
    U+02DA,
    U+02DC,
    U+0304,
    U+0308,
    U+0329,
    U+2000-206F,
    U+20AC,
    U+2122,
    U+2191,
    U+2193,
    U+2212,
    U+2215,
    U+FEFF,
    U+FFFD;
}
@font-face {
  font-family: "Funnel Sans";
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
  src:
    url("../fonts/funnel-sans-italic-latin-ext.woff2") format("woff2-variations"),
    url("../fonts/funnel-sans-italic-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA,
    U+02BD-02C5,
    U+02C7-02CC,
    U+02CE-02D7,
    U+02DD-02FF,
    U+0304,
    U+0308,
    U+0329,
    U+1D00-1DBF,
    U+1E00-1E9F,
    U+1EF2-1EFF,
    U+2020,
    U+20A0-20AB,
    U+20AD-20C0,
    U+2113,
    U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "Funnel Sans";
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
  src:
    url("../fonts/funnel-sans-italic-latin.woff2") format("woff2-variations"),
    url("../fonts/funnel-sans-italic-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF,
    U+0131,
    U+0152-0153,
    U+02BB-02BC,
    U+02C6,
    U+02DA,
    U+02DC,
    U+0304,
    U+0308,
    U+0329,
    U+2000-206F,
    U+20AC,
    U+2122,
    U+2191,
    U+2193,
    U+2212,
    U+2215,
    U+FEFF,
    U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src:
    url("../fonts/instrument-serif-latin-ext.woff2") format("woff2"),
    url("../fonts/instrument-serif-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA,
    U+02BD-02C5,
    U+02C7-02CC,
    U+02CE-02D7,
    U+02DD-02FF,
    U+0304,
    U+0308,
    U+0329,
    U+1D00-1DBF,
    U+1E00-1E9F,
    U+1EF2-1EFF,
    U+2020,
    U+20A0-20AB,
    U+20AD-20C0,
    U+2113,
    U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src:
    url("../fonts/instrument-serif-latin.woff2") format("woff2"),
    url("../fonts/instrument-serif-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF,
    U+0131,
    U+0152-0153,
    U+02BB-02BC,
    U+02C6,
    U+02DA,
    U+02DC,
    U+0304,
    U+0308,
    U+0329,
    U+2000-206F,
    U+20AC,
    U+2122,
    U+2191,
    U+2193,
    U+2212,
    U+2215,
    U+FEFF,
    U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src:
    url("../fonts/instrument-serif-italic-latin-ext.woff2") format("woff2"),
    url("../fonts/instrument-serif-italic-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA,
    U+02BD-02C5,
    U+02C7-02CC,
    U+02CE-02D7,
    U+02DD-02FF,
    U+0304,
    U+0308,
    U+0329,
    U+1D00-1DBF,
    U+1E00-1E9F,
    U+1EF2-1EFF,
    U+2020,
    U+20A0-20AB,
    U+20AD-20C0,
    U+2113,
    U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src:
    url("../fonts/instrument-serif-italic-latin.woff2") format("woff2"),
    url("../fonts/instrument-serif-italic-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF,
    U+0131,
    U+0152-0153,
    U+02BB-02BC,
    U+02C6,
    U+02DA,
    U+02DC,
    U+0304,
    U+0308,
    U+0329,
    U+2000-206F,
    U+20AC,
    U+2122,
    U+2191,
    U+2193,
    U+2212,
    U+2215,
    U+FEFF,
    U+FFFD;
}
@font-face {
  font-family: "Red Hat Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src:
    url("../fonts/red-hat-mono-400-latin-ext.woff2") format("woff2"),
    url("../fonts/red-hat-mono-400-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA,
    U+02BD-02C5,
    U+02C7-02CC,
    U+02CE-02D7,
    U+02DD-02FF,
    U+0304,
    U+0308,
    U+0329,
    U+1D00-1DBF,
    U+1E00-1E9F,
    U+1EF2-1EFF,
    U+2020,
    U+20A0-20AB,
    U+20AD-20C0,
    U+2113,
    U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "Red Hat Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src:
    url("../fonts/red-hat-mono-400-latin.woff2") format("woff2"),
    url("../fonts/red-hat-mono-400-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF,
    U+0131,
    U+0152-0153,
    U+02BB-02BC,
    U+02C6,
    U+02DA,
    U+02DC,
    U+0304,
    U+0308,
    U+0329,
    U+2000-206F,
    U+20AC,
    U+2122,
    U+2191,
    U+2193,
    U+2212,
    U+2215,
    U+FEFF,
    U+FFFD;
}
@font-face {
  font-family: "Red Hat Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src:
    url("../fonts/red-hat-mono-500-latin-ext.woff2") format("woff2"),
    url("../fonts/red-hat-mono-500-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA,
    U+02BD-02C5,
    U+02C7-02CC,
    U+02CE-02D7,
    U+02DD-02FF,
    U+0304,
    U+0308,
    U+0329,
    U+1D00-1DBF,
    U+1E00-1E9F,
    U+1EF2-1EFF,
    U+2020,
    U+20A0-20AB,
    U+20AD-20C0,
    U+2113,
    U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "Red Hat Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src:
    url("../fonts/red-hat-mono-500-latin.woff2") format("woff2"),
    url("../fonts/red-hat-mono-500-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF,
    U+0131,
    U+0152-0153,
    U+02BB-02BC,
    U+02C6,
    U+02DA,
    U+02DC,
    U+0304,
    U+0308,
    U+0329,
    U+2000-206F,
    U+20AC,
    U+2122,
    U+2191,
    U+2193,
    U+2212,
    U+2215,
    U+FEFF,
    U+FFFD;
}


@layer tokens {
  /* ============================================================================
     Signal (docs/signal.md): quiet glass, live wire. The scale, the materials and the motion are here
     and nowhere else; the themes below only paint (their colours, unchanged). :root is solid Signal
     Dawn, what Reduce transparency shows.
     ========================================================================== */
  :root {
    /* ---- palette: solid Signal Dawn ----
       act (graphite) = the one thing to press, and "working"; measure (amber) = the system's own voice
       and "needs you"; danger = failure only. */
    --color-bg: #dde4ea;
    --color-bg-top: #cfd9e0;
    --color-zone: var(--color-bg);
    --color-surface: #eff0f2;
    --color-surface-top: #f6f7f8;
    --color-surface-raised: #fdfdfe;
    --color-overlay: var(--color-surface);
    --color-overlay-raised: var(--color-surface-raised);
    --color-ink: #141619;
    --color-ink-secondary: #45484b;
    --color-ink-faint: #5e6163;
    --color-accent-fill: #1a1d21;
    --color-accent-text: #344f6d;
    --color-on-accent: #ffffff;
    --color-measure: #935a00;
    --color-measure-text: #855006;
    --color-danger: #b23a2e;
    --color-danger-hover: #962f25;
    --color-on-danger: #ffffff;
    --color-shadow: rgba(41, 46, 52, 0.1);
    --color-shadow-strong: rgba(41, 46, 52, 0.26);
    --color-scrim: rgba(221, 228, 234, 0.72);
    --color-bubble: var(--color-ink);
    --color-on-bubble: var(--color-surface);

    /* derived: follow the theme */
    --color-border: color-mix(in srgb, var(--color-ink) 11%, transparent);
    --color-border-soft: color-mix(in srgb, var(--color-ink) 7%, transparent);
    --color-border-strong: color-mix(in srgb, var(--color-ink) 20%, transparent);
    --color-fill: color-mix(in srgb, var(--color-ink) 6%, transparent);
    --color-fill-strong: color-mix(in srgb, var(--color-ink) 11%, transparent);
    --color-wash: color-mix(in srgb, var(--color-accent-fill) 13%, transparent);
    --color-measure-wash: color-mix(in srgb, var(--color-measure) 14%, transparent);
    --color-danger-fill: color-mix(in srgb, var(--color-danger) 12%, transparent);
    --color-focus-outline: var(--color-accent-fill);

    --grad-desk: linear-gradient(180deg, var(--color-bg-top), var(--color-bg));
    --grad-face: linear-gradient(180deg, var(--color-surface-top), var(--color-surface));
    --grad-lit: linear-gradient(180deg, color-mix(in srgb, var(--color-accent-fill) 86%, #fff), var(--color-accent-fill));

    /* ---- fixed paints: the same in every theme ----
       Media sits on black; an app's page and an email are authored on white. */
    --paint-white: #ffffff;
    --paint-black: #000000;
    --media-stage: var(--paint-black);
    --media-ink: var(--paint-white);
    --app-page: var(--paint-white);
    --app-checker: #e6e6e6;
    --paper-ink: #111111;
    --mail-page: var(--paint-white);
    --mail-ink: #202124;
    --mail-ink-secondary: #5f6368;
    --edit-select: rgb(59, 130, 246);
    --edit-select-alt: rgb(94, 169, 80);
    --docx-mark: #e4572e;
    --stage-dark-surface: #151d19;
    --stage-dark-accent: #5cc7a6;

    /* ---- kind hues: a kind tints its glyph or dot, never a fill ---- */
    --kind-note: #4f7396;
    --kind-folder: #5a7086;
    --kind-project: #6e62a3;
    --kind-table: #4f7c84;
    --kind-canvas: #a0606e;
    --kind-person: #8e6480;
    --kind-reminder: #9a6a2a;
    --kind-mail: #4a6aa0;
    --kind-app: #2f7f6c;
    --kind-library: #7a6a3e;
    --kind-community: #5d6b64;
    --kind-chat: var(--color-ink-secondary);
    --entity-card: #4f7396;
    --entity-highlight: #a8743a;
    --entity-view: #7a6a9a;
    --entity-app: #3f8577;
    --entity-table: #5e7a80;
    --entity-memory: #8e6480;
    --entity-comp: #a0606e;
    /* Highlight moods: vivid on purpose (also extension/content/page.js, runtime/bridge.js, share/visit.css). */
    --mood-like: #0e9f6e;
    --mood-critique: #e8590c;
    --mood-question: #1c7ed6;
    --mood-info: #7048e8;
    --mood-star: #c79400;

    /* ---- faces ----
       Display: titles. Sans: the interface. Serif: documents and quotes, never the Assistant. Mono:
       numbers that change, ids, times, keys. */
    --font-sans: "Funnel Sans", ui-sans-serif, system-ui, sans-serif;
    --font-display: "Funnel Display", var(--font-sans);
    --font-serif: "Instrument Serif", ui-serif, Georgia, serif;
    --font-mono: "Red Hat Mono", ui-monospace, Menlo, monospace;

    /* ---- type: 13 px interface ---- */
    --t-10: 10px; /* mono micro only: kbd, counters */
    --t-11: 11px;
    --t-12: 12px;
    --t-13: 13px; /* the interface */
    --t-14: 14px;
    --t-16: 16px;
    --t-20: 20px;
    --t-28: 28px;
    --t-40: 40px;
    --lh-tight: 1.2;
    --lh: 1.45;
    --lh-read: 1.6;
    --track-ui: -0.003em;
    --track-display: -0.015em;
    --track-title: -0.03em;
    --w-title: 600;

    /* ---- heights ---- */
    --h-xs: 18px;
    --h-sm: 22px;
    --h-md: 28px;
    --h-lg: 32px;
    --h-xl: 36px;
    --h-bar: 46px;
    --h-touch: 44px;

    /* ---- radii ---- */
    --r-xs: 4px;
    --r-sm: 6px;
    --r-md: 7px;
    --r-lg: 9px;
    --r-xl: 12px;
    --r-2xl: 14px;
    --r-round: 999px;

    /* ---- materials ---- */
    --s-glass: color-mix(in srgb, var(--color-surface-raised) 74%, transparent);
    --s-glass-strong: color-mix(in srgb, var(--color-surface-raised) 88%, transparent);
    --s-float: var(--color-overlay-raised); /* popovers, menus, toasts, drawers: near-solid */
    /* What full-window places sit on (the phone): the desk. The classic themes put a face there instead. */
    --s-ground: var(--grad-desk);
    /* A whole window that is one place (the extension's panel): the desk, lit a little at the top. */
    --s-page: linear-gradient(180deg, color-mix(in srgb, var(--color-surface-raised) 50%, var(--color-bg)), var(--color-bg) 140px), var(--color-bg);
    --s-blur: blur(24px) saturate(1.3);
    --s-tint-1: color-mix(in srgb, var(--color-ink) 4%, transparent);
    --s-tint-2: color-mix(in srgb, var(--color-ink) 6%, transparent);
    --s-tint-3: color-mix(in srgb, var(--color-ink) 9%, transparent);
    --s-tint-4: color-mix(in srgb, var(--color-ink) 12%, transparent);
    --s-edge: color-mix(in srgb, var(--color-ink) 9%, transparent);
    --s-edge-2: color-mix(in srgb, var(--color-ink) 16%, transparent);
    --s-edge-focus: color-mix(in srgb, var(--color-ink) 26%, transparent);
    --s-hi: inset 0 1px 0 color-mix(in srgb, white 55%, transparent);
    --s-spot: radial-gradient(110px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--color-ink) 7%, transparent), transparent 70%);
    --s-spot-lit: radial-gradient(90px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.22), transparent 70%);
    --s-live: var(--color-accent-fill);
    --s-live-ring: 0 0 0 1px color-mix(in srgb, var(--s-live) 35%, transparent), 0 0 24px color-mix(in srgb, var(--s-live) 12%, transparent);
    --s-needs-ring: 0 0 0 1px color-mix(in srgb, var(--color-measure) 45%, transparent), 0 0 28px color-mix(in srgb, var(--color-measure) 10%, transparent);
    --s-act-rim: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 0 0 1px color-mix(in srgb, var(--color-accent-fill) 70%, black), 0 3px 10px color-mix(in srgb, var(--color-accent-fill) 26%, transparent);

    /* ---- elevation ---- */
    --e-flat: var(--s-hi), 0 0 0 1px var(--s-edge);
    --e-raise: var(--s-hi), 0 0 0 1px var(--s-edge), 0 1px 3px var(--color-shadow);
    --e-float: var(--s-hi), 0 0 0 1px var(--s-edge), 0 8px 28px var(--color-shadow);
    --e-pop: var(--s-hi), 0 0 0 1px var(--s-edge), 0 18px 50px var(--color-shadow-strong);
    --e-modal: var(--s-hi), 0 0 0 1px var(--s-edge), 0 28px 80px var(--color-shadow-strong);
    --e-focus: 0 0 0 1px var(--s-edge-focus);

    /* ---- focus ---- */
    --focus-outline: 2px solid color-mix(in srgb, var(--color-focus-outline) 70%, transparent);
    --focus-offset: 1px;

    /* ---- icons ---- */
    --icon-stroke: 1.5;
    --icon-cap: round;
    --icon-join: round;

    /* ---- motion: fast and quiet ---- */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out: cubic-bezier(0.4, 0, 1, 1);
    --d-fast: 100ms;
    --d: 140ms;
    --d-slow: 200ms;
    --d-panel: 240ms;
    --rise: 4px;
    --press: 0.97;

    /* ---- layers ---- */
    --z-floating: 10;
    --z-panel: 20;
    --z-overlay: 30;
    --z-popover: 35;
    --z-toast: 40;
    --z-fullscreen: 100;
    --z-top: 1000;
    --z-tip: 10000;
  }

  /* The dark hours: light kind and mood hues, and a fainter inner highlight on glass. */
  :root:is([data-theme="signal-dusk"], [data-theme="signal-night"], [data-theme="orbit-dusk"], [data-theme="orbit-night"]) {
    --s-hi: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    --s-spot: radial-gradient(110px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--color-ink) 9%, transparent), transparent 70%);
    --entity-card: #8fb0cf;
    --entity-highlight: #d6a870;
    --entity-view: #b0a2cf;
    --entity-app: #74c2b0;
    --entity-table: #9db6bb;
    --entity-memory: #c79dbb;
    --entity-comp: #d8949f;
    --kind-note: #8fb0cf;
    --kind-folder: #9fb2c4;
    --kind-project: #b0a6e0;
    --kind-table: #8fbcc4;
    --kind-canvas: #d8949f;
    --kind-person: #c79dbb;
    --kind-reminder: #dcae6a;
    --kind-mail: #93aee0;
    --kind-app: #74c2b0;
    --kind-library: #c8b67e;
    --kind-community: #a6b5ad;
    --mood-like: #34d399;
    --mood-critique: #ff8c42;
    --mood-question: #4dabf7;
    --mood-info: #9775fa;
    --mood-star: #f2c94c;
  }

  /* Phones: a finger needs 44 px; the type steps up one. */
  :root[data-form="phone"] {
    --t-13: 14px;
    --t-14: 15px;
    --h-md: 36px;
    --h-lg: 40px;
  }

  @media (forced-colors: active) {
    :root { --color-focus-outline: Highlight; }
  }

  /* ============================================================================
     Themes: paint only. Signal Dawn (no data-theme) is the default; the light hours are frosted glass,
     the dark hours dark glass; Reduce transparency paints the solid faces at the end.
     ========================================================================== */

  /* ---- Orbit and Signal, four hours each ------------------------------------------------------
     One hue per family in shades, its gradients within ~40° of hue. Light hours (Dawn, Day) are
     frosted glass over the desk; dark hours (Dusk, Night) are dark glass. Signal Dawn is the default
     (the absent data-theme); without glass (Reduce transparency) each paints the solid faces below.
     Generated values: OKLCH ramps from the Line and Fold buffet, laid out like the old Sky and Dusk. */

  /* ---- Signal Dawn (default): steel washed with first light, frosted glass --------------------- */
  :root:not([data-theme]) {
    color-scheme: light;

    --color-bg: #dde4ea;
    --color-bg-top: #cfd9e0;
    --color-zone: rgba(30, 34, 39, 0.06);
    --grad-desk: radial-gradient(120% 60% at 18% 18%, rgba(255, 255, 255, 0.3), transparent 55%),
      linear-gradient(180deg, #cfd9e0 0%, #d8e0e7 33.3%, #e1e8ee 66.7%, #eaeff4 100%);
    --color-surface: rgba(245, 247, 248, 0.55);
    --color-surface-top: rgba(251, 252, 253, 0.66);
    --grad-face: linear-gradient(180deg, rgba(249, 250, 251, 0.68), rgba(239, 240, 242, 0.56));
    --color-surface-raised: rgba(255, 255, 255, 0.74);
    --color-overlay: rgba(244, 245, 247, 0.97);
    --color-overlay-raised: rgba(255, 255, 255, 0.97);
    --color-ink: #141619;
    --color-ink-secondary: #45484b;
    --color-ink-faint: #5e6163;
    --color-accent-fill: #1a1d21;
    --color-accent-text: #344f6d;
    --color-on-accent: #ffffff;
    --grad-lit: linear-gradient(180deg, #32363a, #1a1d21);
    --color-wash: rgba(52, 79, 109, 0.12);
    --color-focus-outline: #344f6d;
    --color-measure: #935a00;
    --color-measure-text: #855006;
    --color-border: rgba(31, 34, 38, 0.1);
    --color-border-soft: rgba(31, 34, 38, 0.07);
    --color-border-strong: rgba(31, 34, 38, 0.18);
    --color-fill: rgba(31, 34, 38, 0.06);
    --color-fill-strong: rgba(31, 34, 38, 0.1);
    --color-shadow: rgba(41, 46, 52, 0.1);
    --color-shadow-strong: rgba(41, 46, 52, 0.26);
    --color-scrim: rgba(81, 86, 91, 0.28);
    --color-bubble: rgba(29, 32, 35, 0.9);
    --color-on-bubble: #f4f5f6;
    --logo-ink: #25292e;
    --logo-act: #344f6d;
    --logo-badge: #1a1d21;
    --logo-badge-ink: #ffffff;

    --icon-stroke: 1.4;
  }

  /* ---- Signal Day: almost white steel, frosted glass ------------------------------------------- */
  :root[data-theme="signal-day"] {
    color-scheme: light;

    --color-bg: #f5f8fb;
    --color-bg-top: #f0f4f7;
    --color-zone: rgba(30, 34, 39, 0.06);
    --grad-desk: radial-gradient(120% 60% at 18% 18%, rgba(255, 255, 255, 0.3), transparent 55%),
      linear-gradient(180deg, #f0f4f7 0%, #f4f7fa 33.3%, #f7f9fc 66.7%, #fafcfe 100%);
    --color-surface: rgba(245, 247, 248, 0.55);
    --color-surface-top: rgba(251, 252, 253, 0.66);
    --grad-face: linear-gradient(180deg, rgba(249, 250, 251, 0.68), rgba(239, 240, 242, 0.56));
    --color-surface-raised: rgba(255, 255, 255, 0.74);
    --color-overlay: rgba(244, 245, 247, 0.97);
    --color-overlay-raised: rgba(255, 255, 255, 0.97);
    --color-ink: #141619;
    --color-ink-secondary: #45484b;
    --color-ink-faint: #5e6163;
    --color-accent-fill: #1a1d21;
    --color-accent-text: #344f6d;
    --color-on-accent: #ffffff;
    --grad-lit: linear-gradient(180deg, #32363a, #1a1d21);
    --color-wash: rgba(52, 79, 109, 0.12);
    --color-focus-outline: #344f6d;
    --color-measure: #935a00;
    --color-measure-text: #855006;
    --color-border: rgba(31, 34, 38, 0.1);
    --color-border-soft: rgba(31, 34, 38, 0.07);
    --color-border-strong: rgba(31, 34, 38, 0.18);
    --color-fill: rgba(31, 34, 38, 0.06);
    --color-fill-strong: rgba(31, 34, 38, 0.1);
    --color-shadow: rgba(41, 46, 52, 0.1);
    --color-shadow-strong: rgba(41, 46, 52, 0.26);
    --color-scrim: rgba(81, 86, 91, 0.28);
    --color-bubble: rgba(29, 32, 35, 0.9);
    --color-on-bubble: #f4f5f6;
    --logo-ink: #25292e;
    --logo-act: #344f6d;
    --logo-badge: #1a1d21;
    --logo-badge-ink: #ffffff;

    --icon-stroke: 1.4;
  }

  /* ---- Signal Dusk: graphite rising into slate, dark glass ------------------------------------- */
  :root[data-theme="signal-dusk"] {
    color-scheme: dark;

    --color-bg: #565e68;
    --color-bg-top: #3d434d;
    --color-zone: rgba(255, 255, 255, 0.05);
    --color-surface-side: rgba(255, 255, 255, 0.06);
    --grad-desk: radial-gradient(110% 55% at 70% 14%, rgba(128, 135, 144, 0.28), transparent 60%),
      linear-gradient(180deg, #3d434d 0%, #4e555f 33.3%, #5f6872 66.7%, #727c85 100%);
    --color-surface: rgba(27, 32, 36, 0.5);
    --color-surface-top: rgba(37, 41, 46, 0.6);
    --grad-face: linear-gradient(180deg, rgba(37, 41, 46, 0.62), rgba(25, 29, 34, 0.52));
    --color-surface-raised: rgba(67, 72, 78, 0.72);
    --color-overlay: rgba(32, 37, 41, 0.97);
    --color-overlay-raised: rgba(54, 59, 64, 0.98);
    --color-ink: #f4f5f6;
    --color-ink-secondary: #cfd1d3;
    --color-ink-faint: #afb1b3;
    --color-accent-fill: #e3e5e7;
    --color-accent-text: #cad9eb;
    --color-on-accent: #1c2024;
    --grad-lit: linear-gradient(180deg, #edeef0, #d2d4d7);
    --color-wash: rgba(255, 255, 255, 0.14);
    --color-focus-outline: #cad9eb;
    --color-measure: #f4b768;
    --color-measure-text: #f9c37a;
    --color-danger: #f2806f;
    --color-danger-hover: #f79a8b;
    --color-on-danger: #1f0b08;
    --color-border: rgba(255, 255, 255, 0.12);
    --color-border-soft: rgba(255, 255, 255, 0.07);
    --color-border-strong: rgba(255, 255, 255, 0.22);
    --color-fill: rgba(255, 255, 255, 0.09);
    --color-fill-strong: rgba(255, 255, 255, 0.15);
    --color-shadow: rgba(4, 6, 9, 0.3);
    --color-shadow-strong: rgba(4, 6, 9, 0.5);
    --color-scrim: rgba(7, 9, 13, 0.45);
    --color-surface-overlay: rgba(4, 6, 9, 0.72);
    --color-bubble: rgba(67, 72, 78, 0.8);
    --color-on-bubble: #f4f5f6;
    --logo-ink: #e7e8e9;
    --logo-act: #cad9eb;
    --logo-badge: #565e68;
    --logo-badge-ink: #f4f5f6;

    --icon-stroke: 1.4;

    /* Glide: long, smooth, no overshoot; things arrive out of a soft blur. */
  }

  /* ---- Signal Night: near-black graphite, dark glass ------------------------------------------- */
  :root[data-theme="signal-night"] {
    color-scheme: dark;

    --color-bg: #0d1218;
    --color-bg-top: #06090e;
    --color-zone: rgba(255, 255, 255, 0.05);
    --color-surface-side: rgba(255, 255, 255, 0.06);
    --grad-desk: radial-gradient(110% 55% at 70% 14%, rgba(128, 135, 144, 0.28), transparent 60%),
      linear-gradient(180deg, #06090e 0%, #0b0f14 33.3%, #10151b 66.7%, #151b22 100%);
    --color-surface: rgba(27, 32, 36, 0.5);
    --color-surface-top: rgba(37, 41, 46, 0.6);
    --grad-face: linear-gradient(180deg, rgba(37, 41, 46, 0.62), rgba(25, 29, 34, 0.52));
    --color-surface-raised: rgba(67, 72, 78, 0.72);
    --color-overlay: rgba(32, 37, 41, 0.97);
    --color-overlay-raised: rgba(54, 59, 64, 0.98);
    --color-ink: #f4f5f6;
    --color-ink-secondary: #cfd1d3;
    --color-ink-faint: #afb1b3;
    --color-accent-fill: #e3e5e7;
    --color-accent-text: #cad9eb;
    --color-on-accent: #1c2024;
    --grad-lit: linear-gradient(180deg, #edeef0, #d2d4d7);
    --color-wash: rgba(255, 255, 255, 0.14);
    --color-focus-outline: #cad9eb;
    --color-measure: #f4b768;
    --color-measure-text: #f9c37a;
    --color-danger: #f2806f;
    --color-danger-hover: #f79a8b;
    --color-on-danger: #1f0b08;
    --color-border: rgba(255, 255, 255, 0.12);
    --color-border-soft: rgba(255, 255, 255, 0.07);
    --color-border-strong: rgba(255, 255, 255, 0.22);
    --color-fill: rgba(255, 255, 255, 0.09);
    --color-fill-strong: rgba(255, 255, 255, 0.15);
    --color-shadow: rgba(4, 6, 9, 0.3);
    --color-shadow-strong: rgba(4, 6, 9, 0.5);
    --color-scrim: rgba(7, 9, 13, 0.45);
    --color-surface-overlay: rgba(4, 6, 9, 0.72);
    --color-bubble: rgba(67, 72, 78, 0.8);
    --color-on-bubble: #f4f5f6;
    --logo-ink: #e7e8e9;
    --logo-act: #cad9eb;
    --logo-badge: #0d1218;
    --logo-badge-ink: #f4f5f6;

    --icon-stroke: 1.4;

    /* Glide: long, smooth, no overshoot; things arrive out of a soft blur. */
  }

  /* ---- Orbit Dawn: cobalt sky with light rising from below, frosted glass ---------------------- */
  :root[data-theme="orbit-dawn"] {
    color-scheme: light;

    --color-bg: #9bbeff;
    --color-bg-top: #7485da;
    --color-zone: rgba(12, 30, 74, 0.06);
    --grad-desk: radial-gradient(120% 60% at 18% 18%, rgba(255, 255, 255, 0.3), transparent 55%),
      radial-gradient(130% 95% at 50% 100%, #d8eafe 0%, #c2dcfe 16.7%, #aecdfd 33.3%, #9bbeff 50%, #8cabf3 66.7%, #7f98e7 83.3%, #7485da 100%);
    --color-surface: rgba(243, 247, 255, 0.55);
    --color-surface-top: rgba(250, 252, 255, 0.66);
    --grad-face: linear-gradient(180deg, rgba(248, 250, 255, 0.68), rgba(233, 240, 254, 0.56));
    --color-surface-raised: rgba(255, 255, 255, 0.74);
    --color-overlay: rgba(240, 245, 255, 0.97);
    --color-overlay-raised: rgba(255, 255, 255, 0.97);
    --color-ink: #0a152d;
    --color-ink-secondary: #3a4764;
    --color-ink-faint: #546179;
    --color-accent-fill: #0c1b3c;
    --color-accent-text: #2751b8;
    --color-on-accent: #ffffff;
    --grad-lit: linear-gradient(180deg, #233458, #0c1b3c);
    --color-wash: rgba(39, 81, 184, 0.12);
    --color-focus-outline: #2751b8;
    --color-measure: #935a00;
    --color-measure-text: #855006;
    --color-border: rgba(16, 32, 66, 0.1);
    --color-border-soft: rgba(16, 32, 66, 0.07);
    --color-border-strong: rgba(16, 32, 66, 0.18);
    --color-fill: rgba(16, 32, 66, 0.06);
    --color-fill-strong: rgba(16, 32, 66, 0.1);
    --color-shadow: rgba(18, 41, 96, 0.1);
    --color-shadow-strong: rgba(18, 41, 96, 0.26);
    --color-scrim: rgba(61, 84, 133, 0.28);
    --color-bubble: rgba(16, 30, 59, 0.9);
    --color-on-bubble: #f2f5fc;
    --logo-ink: #122652;
    --logo-act: #2751b8;
    --logo-badge: #0c1b3c;
    --logo-badge-ink: #ffffff;

    --icon-stroke: 1.4;
  }

  /* ---- Orbit Day: frost-blue sky, frosted glass ------------------------------------------------ */
  :root[data-theme="orbit-day"] {
    color-scheme: light;

    --color-bg: #e1ecff;
    --color-bg-top: #c7d7fd;
    --color-zone: rgba(12, 30, 74, 0.06);
    --grad-desk: radial-gradient(120% 60% at 18% 18%, rgba(255, 255, 255, 0.3), transparent 55%),
      radial-gradient(140% 110% at 50% 110%, #f7faff 0%, #eff6ff 20%, #e8f1fe 40%, #e1ecff 60%, #d8e5ff 73.3%, #cfdefd 86.7%, #c7d7fd 100%);
    --color-surface: rgba(243, 247, 255, 0.55);
    --color-surface-top: rgba(250, 252, 255, 0.66);
    --grad-face: linear-gradient(180deg, rgba(248, 250, 255, 0.68), rgba(233, 240, 254, 0.56));
    --color-surface-raised: rgba(255, 255, 255, 0.74);
    --color-overlay: rgba(240, 245, 255, 0.97);
    --color-overlay-raised: rgba(255, 255, 255, 0.97);
    --color-ink: #0a152d;
    --color-ink-secondary: #3a4764;
    --color-ink-faint: #546179;
    --color-accent-fill: #0c1b3c;
    --color-accent-text: #2751b8;
    --color-on-accent: #ffffff;
    --grad-lit: linear-gradient(180deg, #233458, #0c1b3c);
    --color-wash: rgba(39, 81, 184, 0.12);
    --color-focus-outline: #2751b8;
    --color-measure: #935a00;
    --color-measure-text: #855006;
    --color-border: rgba(16, 32, 66, 0.1);
    --color-border-soft: rgba(16, 32, 66, 0.07);
    --color-border-strong: rgba(16, 32, 66, 0.18);
    --color-fill: rgba(16, 32, 66, 0.06);
    --color-fill-strong: rgba(16, 32, 66, 0.1);
    --color-shadow: rgba(18, 41, 96, 0.1);
    --color-shadow-strong: rgba(18, 41, 96, 0.26);
    --color-scrim: rgba(61, 84, 133, 0.28);
    --color-bubble: rgba(16, 30, 59, 0.9);
    --color-on-bubble: #f2f5fc;
    --logo-ink: #122652;
    --logo-act: #2751b8;
    --logo-badge: #0c1b3c;
    --logo-badge-ink: #ffffff;

    --icon-stroke: 1.4;
  }

  /* ---- Orbit Dusk: violet light under deep cobalt, dark glass ---------------------------------- */
  :root[data-theme="orbit-dusk"] {
    color-scheme: dark;

    --color-bg: #39489e;
    --color-bg-top: #092661;
    --color-zone: rgba(255, 255, 255, 0.05);
    --color-surface-side: rgba(255, 255, 255, 0.06);
    --grad-desk: radial-gradient(110% 55% at 70% 14%, rgba(106, 129, 206, 0.28), transparent 60%),
      radial-gradient(130% 95% at 50% 100%, #7b73ca 0%, #6564bc 16.7%, #4f56ad 33.3%, #39489e 50%, #293d89 66.7%, #193175 83.3%, #092661 100%);
    --color-surface: rgba(9, 27, 71, 0.5);
    --color-surface-top: rgba(18, 38, 82, 0.6);
    --grad-face: linear-gradient(180deg, rgba(18, 38, 82, 0.62), rgba(7, 25, 68, 0.52));
    --color-surface-raised: rgba(48, 70, 117, 0.72);
    --color-overlay: rgba(14, 33, 76, 0.97);
    --color-overlay-raised: rgba(35, 56, 102, 0.98);
    --color-ink: #f2f5fc;
    --color-ink-secondary: #c9d1e1;
    --color-ink-faint: #a8b1c3;
    --color-accent-fill: #dce5f6;
    --color-accent-text: #bbd1fd;
    --color-on-accent: #0c1c43;
    --grad-lit: linear-gradient(180deg, #e9effa, #cad5e9);
    --color-wash: rgba(255, 255, 255, 0.14);
    --color-focus-outline: #bbd1fd;
    --color-measure: #f4b768;
    --color-measure-text: #f9c37a;
    --color-danger: #f2806f;
    --color-danger-hover: #f79a8b;
    --color-on-danger: #1f0b08;
    --color-border: rgba(255, 255, 255, 0.12);
    --color-border-soft: rgba(255, 255, 255, 0.07);
    --color-border-strong: rgba(255, 255, 255, 0.22);
    --color-fill: rgba(255, 255, 255, 0.09);
    --color-fill-strong: rgba(255, 255, 255, 0.15);
    --color-shadow: rgba(0, 2, 31, 0.3);
    --color-shadow-strong: rgba(0, 2, 31, 0.5);
    --color-scrim: rgba(0, 5, 37, 0.45);
    --color-surface-overlay: rgba(0, 2, 31, 0.72);
    --color-bubble: rgba(48, 70, 117, 0.8);
    --color-on-bubble: #f2f5fc;
    --logo-ink: #e3e8f1;
    --logo-act: #bbd1fd;
    --logo-badge: #39489e;
    --logo-badge-ink: #f2f5fc;

    --icon-stroke: 1.4;

    /* Glide: long, smooth, no overshoot; things arrive out of a soft blur. */
  }

  /* ---- Orbit Night: deep space, dark glass ----------------------------------------------------- */
  :root[data-theme="orbit-night"] {
    color-scheme: dark;

    --color-bg: #08183b;
    --color-bg-top: #020b1c;
    --color-zone: rgba(255, 255, 255, 0.05);
    --color-surface-side: rgba(255, 255, 255, 0.06);
    --grad-desk: radial-gradient(110% 55% at 70% 14%, rgba(106, 129, 206, 0.28), transparent 60%),
      radial-gradient(130% 100% at 50% 100%, #202d65 0%, #172656 18.3%, #0f1f48 36.7%, #08183b 55%, #051430 70%, #040f26 85%, #020b1c 100%);
    --color-surface: rgba(9, 27, 71, 0.5);
    --color-surface-top: rgba(18, 38, 82, 0.6);
    --grad-face: linear-gradient(180deg, rgba(18, 38, 82, 0.62), rgba(7, 25, 68, 0.52));
    --color-surface-raised: rgba(48, 70, 117, 0.72);
    --color-overlay: rgba(14, 33, 76, 0.97);
    --color-overlay-raised: rgba(35, 56, 102, 0.98);
    --color-ink: #f2f5fc;
    --color-ink-secondary: #c9d1e1;
    --color-ink-faint: #a8b1c3;
    --color-accent-fill: #dce5f6;
    --color-accent-text: #bbd1fd;
    --color-on-accent: #0c1c43;
    --grad-lit: linear-gradient(180deg, #e9effa, #cad5e9);
    --color-wash: rgba(255, 255, 255, 0.14);
    --color-focus-outline: #bbd1fd;
    --color-measure: #f4b768;
    --color-measure-text: #f9c37a;
    --color-danger: #f2806f;
    --color-danger-hover: #f79a8b;
    --color-on-danger: #1f0b08;
    --color-border: rgba(255, 255, 255, 0.12);
    --color-border-soft: rgba(255, 255, 255, 0.07);
    --color-border-strong: rgba(255, 255, 255, 0.22);
    --color-fill: rgba(255, 255, 255, 0.09);
    --color-fill-strong: rgba(255, 255, 255, 0.15);
    --color-shadow: rgba(0, 2, 31, 0.3);
    --color-shadow-strong: rgba(0, 2, 31, 0.5);
    --color-scrim: rgba(0, 5, 37, 0.45);
    --color-surface-overlay: rgba(0, 2, 31, 0.72);
    --color-bubble: rgba(48, 70, 117, 0.8);
    --color-on-bubble: #f2f5fc;
    --logo-ink: #e3e8f1;
    --logo-act: #bbd1fd;
    --logo-badge: #08183b;
    --logo-badge-ink: #f2f5fc;

    --icon-stroke: 1.4;

    /* Glide: long, smooth, no overshoot; things arrive out of a soft blur. */
  }

  /* ---- Millennium: XP-inspired. Blue title strips, cream bodies, green start, hills ---- */
  :root[data-theme="millennium"] {
    color-scheme: light;

    --color-bg: #5a9a3a;
    --color-bg-top: #2a64d6;
    /* Our own drawing: a blue sky, two soft clouds and rolling green hills. */
    --grad-desk:
      radial-gradient(140% 52% at 22% 108%, #74bd45 0%, #5aa232 50%, #4a8e27 59%, transparent 59.5%),
      radial-gradient(120% 48% at 92% 112%, #68b13c 0%, #4f962b 50%, #3f7f20 58%, transparent 58.5%),
      radial-gradient(30% 9% at 28% 26%, rgba(255, 255, 255, 0.85), transparent 70%), radial-gradient(
      24% 7% at 70% 18%,
      rgba(255, 255, 255, 0.7),
      transparent 70%
    ), linear-gradient(180deg, #1f5fd4 0%, #3d7fe6 30%, #7fb2f0 60%, #c4def8 100%);
    --color-zone: #f4f2e8;
    --color-surface: #ece9d8;
    --color-surface-top: #f1efe2;
    --color-surface-raised: #ffffff;
    --color-ink: #000000;
    --color-ink-secondary: #2f2f2f;
    --color-ink-faint: #5f5f5f;
    --color-accent-fill: #2559c9;
    --color-accent-text: #0b4dc2;
    --color-on-accent: #ffffff;
    --grad-lit: linear-gradient(180deg, #5b95f5 0%, #2f6be0 50%, #1f55c4 100%);
    --color-wash: rgba(49, 106, 197, 0.16);
    --color-focus-outline: #2559c9;
    --color-border: rgba(0, 40, 110, 0.18);
    --color-border-soft: rgba(0, 40, 110, 0.1);
    --color-border-strong: rgba(0, 40, 110, 0.3);
    --color-shadow: rgba(0, 0, 0, 0.18);
    --color-shadow-strong: rgba(0, 0, 0, 0.35);
    --color-scrim: rgba(20, 50, 120, 0.3);
    --color-bubble: #2559c9;
    --color-on-bubble: #ffffff;

    --window-title-paint: linear-gradient(180deg, #6f90da 0%, #8eaaea 10%, #6c8cd8 55%, #5d7ecc 100%);
    --window-title-paint-active: linear-gradient(
      180deg,
      #0a5ee8 0%,
      #3a8cff 7%,
      #1767ec 22%,
      #0b58e0 60%,
      #0452d8 88%,
      #0a45b8 100%
    );
    --field-paint: #ffffff;
    --field-shadow: inset 0 0 0 1px #7f9db9;

    --font-sans: Tahoma, Verdana, "Segoe UI", sans-serif;
    --font-display: "Trebuchet MS", Tahoma, sans-serif;
    --icon-stroke: 1.8;

    /* Logo (mark, tab icon). */
    --logo-ink: #1f55c4;
    --logo-act: #3fa22c;
    --logo-badge: #245edb;
    --logo-badge-ink: #ffffff;
  }

  /* ---- Retro: Windows 95-inspired. Teal desk, silver bevels, square everything ----- */
  :root[data-theme="retro"] {
    color-scheme: light;

    --color-bg: #008080;
    --color-bg-top: #008080;
    --grad-desk: linear-gradient(#008080, #008080);
    --color-zone: #c0c0c0;
    --color-surface: #c0c0c0;
    --color-surface-top: #c0c0c0;
    --color-surface-raised: #c0c0c0;
    --color-ink: #000000;
    --color-ink-secondary: #1a1a1a;
    --color-ink-faint: #4a4a4a;
    --color-accent-fill: #000080;
    --color-accent-text: #000080;
    --color-on-accent: #ffffff;
    --grad-lit: linear-gradient(#000080, #000080);
    --color-wash: rgba(0, 0, 128, 0.18);
    --color-focus-outline: #000000;
    --color-border: #808080;
    --color-border-soft: rgba(0, 0, 0, 0.18);
    --color-border-strong: #404040;
    --color-fill: rgba(0, 0, 0, 0.08);
    --color-fill-strong: rgba(0, 0, 0, 0.16);
    --color-shadow: rgba(0, 0, 0, 0.3);
    --color-shadow-strong: rgba(0, 0, 0, 0.5);
    --color-scrim: rgba(0, 64, 64, 0.4);
    --color-bubble: #000080;
    --color-on-bubble: #ffffff;
    --color-signal-empty: #808080;

    --bevel-raised:
      inset -1px -1px #0a0a0a, inset 1px 1px #ffffff, inset -2px -2px #808080, inset 2px 2px #dfdfdf;
    --bevel-sunken:
      inset -1px -1px #ffffff, inset 1px 1px #0a0a0a, inset -2px -2px #dfdfdf, inset 2px 2px #808080;
    --window-title-paint: linear-gradient(90deg, #808080, #b5b5b5);
    --window-title-paint-active: linear-gradient(90deg, #000080, #1084d0);
    --field-paint: #ffffff;
    --field-shadow: var(--bevel-sunken);

    --font-sans: Tahoma, Geneva, Verdana, sans-serif;
    --font-display: Tahoma, Geneva, Verdana, sans-serif;
    --icon-stroke: 2;
    --icon-cap: square;
    --icon-join: miter;

    /* Logo (mark, tab icon). */
    --logo-ink: #000080;
    --logo-act: #008080;
    --logo-badge: #008080;
    --logo-badge-ink: #ffffff;
  }

  /* ---- Reduce transparency (§7.1): solid faces in the glass themes ------------- */
  /* data-material is dropped too, so css/theme-surfaces.css paints no blur and keeps the fades. */
  :root:not([data-theme])[data-transparency="reduced"] {
    --color-surface: #eff0f2;
    --color-surface-top: #f6f7f8;
    --grad-face: linear-gradient(180deg, #f6f7f8, #eff0f2);
    --color-surface-raised: #fdfdfe;
  }
  :root[data-theme="signal-day"][data-transparency="reduced"] {
    --color-surface: #eff0f2;
    --color-surface-top: #f6f7f8;
    --grad-face: linear-gradient(180deg, #f6f7f8, #eff0f2);
    --color-surface-raised: #fdfdfe;
  }
  :root[data-theme="signal-dusk"][data-transparency="reduced"] {
    --color-surface: #22272c;
    --color-surface-top: #2c3136;
    --grad-face: linear-gradient(180deg, #2c3136, #22272c);
    --color-surface-raised: #43484e;
  }
  :root[data-theme="signal-night"][data-transparency="reduced"] {
    --color-surface: #22272c;
    --color-surface-top: #2c3136;
    --grad-face: linear-gradient(180deg, #2c3136, #22272c);
    --color-surface-raised: #43484e;
  }
  :root[data-theme="orbit-dawn"][data-transparency="reduced"] {
    --color-surface: #e9f0fe;
    --color-surface-top: #f3f7ff;
    --grad-face: linear-gradient(180deg, #f3f7ff, #e9f0fe);
    --color-surface-raised: #fdfdff;
  }
  :root[data-theme="orbit-day"][data-transparency="reduced"] {
    --color-surface: #e9f0fe;
    --color-surface-top: #f3f7ff;
    --grad-face: linear-gradient(180deg, #f3f7ff, #e9f0fe);
    --color-surface-raised: #fdfdff;
  }
  :root[data-theme="orbit-dusk"][data-transparency="reduced"] {
    --color-surface: #10234f;
    --color-surface-top: #1a2e5b;
    --grad-face: linear-gradient(180deg, #1a2e5b, #10234f);
    --color-surface-raised: #304675;
  }
  :root[data-theme="orbit-night"][data-transparency="reduced"] {
    --color-surface: #10234f;
    --color-surface-top: #1a2e5b;
    --grad-face: linear-gradient(180deg, #1a2e5b, #10234f);
    --color-surface-raised: #304675;
  }


  /* ---- Signal on the classic themes: their corners, their bevels, their pace ---- */
  :root[data-theme="millennium"] {
    --s-page: var(--color-surface);
    --s-ground: var(--color-surface);
    --r-xs: 2px; --r-sm: 3px; --r-md: 3px; --r-lg: 3px; --r-xl: 4px; --r-2xl: 6px;
    --s-hi: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    --e-flat: inset 0 0 0 1px rgba(0, 40, 110, 0.22);
    --e-raise: inset 0 0 0 1px #003c74, inset 0 -2px 0 rgba(0, 0, 0, 0.08);
    --s-act-rim: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 0 0 1px #0a3fc4;
    --d: 90ms; --d-slow: 120ms; --d-panel: 160ms; --press: 1;
    --icon-stroke: 1.8;
  }
  :root[data-theme="retro"] {
    --s-page: var(--color-surface);
    --s-ground: var(--color-surface);
    --r-xs: 0px; --r-sm: 0px; --r-md: 0px; --r-lg: 0px; --r-xl: 0px; --r-2xl: 0px; --r-round: 0px;
    --s-hi: none;
    --e-flat: var(--bevel-raised);
    --e-raise: var(--bevel-raised);
    --e-float: var(--bevel-raised), 1px 1px 0 #0a0a0a;
    --e-pop: var(--bevel-raised), 1px 1px 0 #0a0a0a;
    --e-modal: var(--bevel-raised), 2px 2px 0 #0a0a0a;
    --s-act-rim: var(--bevel-raised);
    --s-live-ring: 0 0 0 1px #000080;
    --s-spot: linear-gradient(transparent, transparent);
    --d-fast: 0ms; --d: 0ms; --d-slow: 0ms; --d-panel: 60ms; --press: 1; --rise: 0px;
  }
}
