/* ---------------------------------------------------------------------------
   Unicornus Design System — Claude handoff migration

   Structure, state taxonomy and token *shape* are adapted from the HeroUI
   Figma Kit V3 (role / role-hover / role-foreground / role-soft triads,
   three-level surfaces, three-weight separators, ring-based focus).
   The palette, typography, radii and depth are Unicornus-owned.

   Only semantic tokens should be consumed by components. The raw ramps below
   exist so the semantic layer can be re-tuned in one place.
--------------------------------------------------------------------------- */

:root {
  /* -- raw ramps -------------------------------------------------------- */

  /* Cold neutral. Hue sits around 225deg with very low chroma so surfaces
     read as graphite/blue-grey rather than warm putty. */
  --ramp-neutral-0: #ffffff;
  --ramp-neutral-25: #fdfdfd;
  --ramp-neutral-50: #f8f8f8;
  --ramp-neutral-100: #f2f2f2;
  --ramp-neutral-150: #ebebeb;
  --ramp-neutral-200: #e3e3e3;
  --ramp-neutral-300: #d3d3d3;
  --ramp-neutral-400: #a7a7a7;
  --ramp-neutral-500: #777777;
  --ramp-neutral-600: #5c5c5c;
  --ramp-neutral-700: #454545;
  --ramp-neutral-800: #303030;
  --ramp-neutral-850: #262626;
  --ramp-neutral-900: #202020;
  --ramp-neutral-950: #191919;
  --ramp-neutral-1000: #141414;

  /* Violet-blue. Used sparingly: primary action, active navigation, focus,
     links. Never as a large decorative field. */
  --ramp-accent-200: #d8d7ff;
  --ramp-accent-300: #aaa8ff;
  --ramp-accent-400: #8482ff;
  --ramp-accent-500: #4d49fc;
  --ramp-accent-600: #3c38e0;
  --ramp-accent-700: #302dbd;

  /* Semantic families are built in three deliberate steps, because a single
     "the warning colour" cannot be both vivid and legible:

       -300  luminous   — dark-theme foreground text, and dark-theme marks.
       -500  vivid mark — the approved character. Graphical only: dots,
                          status marks, progress fills, icon glyphs, rules.
                          Never used as text, so it carries no contrast debt
                          and can stay as saturated as the character needs.
       -700  text-safe  — light-theme foreground, chosen to clear ~4.5:1 on
                          white while staying inside the family's hue.

     Amber is the family where this split is load-bearing. A golden yellow
     dark enough to read as text on white is, unavoidably, brown — that is a
     hue/lightness interaction, not a saturation deficiency — so amber gets a
     vivid mark step and *no* amber text step at all: in light theme warning
     text is ink, and the colour is carried entirely by the mark beside it.
     That is what removes the ochre/sepia reading the previous ramp had. */

  /* Sunny digital amber/gold. */
  --ramp-amber-300: #ffcf5c;
  --ramp-amber-500: #ffb800;

  /* Clean, vivid emerald/mint — never shifted toward the yellow-green that
     reads as olive/moss, never desaturated toward teal. */
  --ramp-green-300: #4ade9f;
  --ramp-green-500: #16c784;
  --ramp-green-700: #0b7f52;

  /* Energetic coral-crimson, held in rose/coral territory rather than brick
     so it reads as contemporary rather than burgundy or wine. */
  --ramp-red-300: #ff8a95;
  --ramp-red-500: #ff4d5e;
  --ramp-red-700: #d81f38;

  /* Ink used *on top of* a vivid mark fill (the check inside a completed
     mark, the bar inside a blocked one). White on a vivid mark fails even
     the 3:1 non-text contrast floor; a deep tint of the family's own hue
     clears it comfortably and reads sharper. */
  --mark-fg-success: #04291b;
  --mark-fg-danger: #40060f;

  /* -- semantic: light -------------------------------------------------- */

  color-scheme: light;

  /* canvas + surfaces (three levels, after HeroUI's surface hierarchy) */
  --canvas: var(--ramp-neutral-25);
  --canvas-sunken: var(--ramp-neutral-100);
  --chrome: #fbfbfb;
  --chrome-translucent: color-mix(in srgb, #fbfbfb 94%, transparent);
  --surface: var(--ramp-neutral-0);
  --surface-hover: var(--ramp-neutral-50);
  --surface-raised: var(--ramp-neutral-0);
  --surface-sunken: var(--ramp-neutral-100);
  --surface-subtle: var(--ramp-neutral-100);
  --surface-overlay: var(--ramp-neutral-0);

  /* -- environment atoms (per theme) ------------------------------------

     Depth in this system is built from light, not from outlines: an inset
     top highlight where a surface catches the ambient light, a hairline
     *ring* instead of a border, and a soft ambient shadow underneath. These
     eight atoms are the only per-theme part; the elevation recipes that
     consume them are declared once, further down. */

  --ink: 12 18 32;
  --edge-highlight: rgba(255, 255, 255, 0.9);
  --edge-highlight-strong: rgba(255, 255, 255, 1);
  --edge-ring: rgba(28, 28, 28, 0.09);
  --edge-ring-strong: rgba(28, 28, 28, 0.15);

  /* The recessed ambient wash a quiet zone sits in, and the raised fill a
     real object sits on. Both are consumed through the elevation recipes. */
  --depth-veil: #f8f8f8;
  --depth-panel: var(--ramp-neutral-0);
  --depth-panel-hover: var(--ramp-neutral-25);

  /* The atmosphere behind the whole application: a very low-chroma light
     field so the canvas reads as a space rather than a flat plate. */
  --atmosphere: none;

  /* text hierarchy */
  --text-primary: #1c1c1c;
  --text-secondary: #454545;
  --text-muted: #5c5c5c;
  --text-faint: #6d6d6d;
  --text-on-accent: #ffffff;

  /* borders — three weights, after HeroUI's separator variants */
  --line-soft: rgba(28, 28, 28, 0.07);
  --line: rgba(28, 28, 28, 0.11);
  --line-strong: rgba(28, 28, 28, 0.18);

  /* accent */
  --accent: var(--ramp-accent-500);
  --accent-hover: var(--ramp-accent-600);
  --accent-active: var(--ramp-accent-700);
  --accent-fg: #ffffff;
  --accent-text: var(--ramp-accent-600);
  --accent-soft: rgba(97, 105, 239, 0.1);
  --accent-soft-hover: rgba(97, 105, 239, 0.16);
  --accent-line: rgba(97, 105, 239, 0.38);

  /* semantic states

     Each family's soft/line tint is derived from its ramp step via
     color-mix rather than a hand-copied rgb() literal, so retuning a ramp
     value automatically keeps its tints in sync instead of relying on two
     edits staying identical by hand. Warning's tint derives from the medium
     `-mark` step, not the darker text step, the same relationship the
     original literals encoded (rgba(223, 160, 9, …) was the old amber-500,
     not amber-700) — a tint mixed from the very dark text-safe shade would
     read as a muddy wash rather than a warm one. */
  --success: var(--ramp-green-700);
  --success-mark: var(--ramp-green-500);
  --success-soft: color-mix(in srgb, var(--ramp-green-500) 13%, transparent);
  --success-line: color-mix(in srgb, var(--ramp-green-500) 34%, transparent);
  /* Warning text is ink, not amber — see the ramp note. The signal is the
     mark; the label only has to be readable next to it. */
  --warning: var(--ramp-neutral-800);
  --warning-mark: var(--ramp-amber-500);
  --warning-soft: color-mix(in srgb, var(--ramp-amber-500) 15%, transparent);
  --warning-line: color-mix(in srgb, var(--ramp-amber-500) 44%, transparent);
  --danger: var(--ramp-red-700);
  --danger-mark: var(--ramp-red-500);
  --danger-hover: #b3122a;
  --danger-fg: var(--mark-fg-danger);
  --danger-soft: color-mix(in srgb, var(--ramp-red-500) 11%, transparent);
  --danger-soft-hover: color-mix(in srgb, var(--ramp-red-500) 17%, transparent);
  --danger-line: color-mix(in srgb, var(--ramp-red-500) 34%, transparent);
  --info: var(--ramp-accent-600);
  --info-soft: rgba(97, 105, 239, 0.1);
  --info-line: rgba(97, 105, 239, 0.32);

  /* controls */
  --control: var(--ramp-neutral-0);
  --control-hover: var(--ramp-neutral-50);
  --control-line: rgba(28, 28, 28, 0.16);
  --control-placeholder: var(--ramp-neutral-400);
  /* Disabled controls are a separate neutral material, not an enabled
     control faded with opacity. This keeps labels readable and removes the
     misleading brand fill from disabled primary actions. These aliases stay
     theme-aware because their source tokens are overridden below. */
  --control-disabled: var(--surface-subtle);
  --control-disabled-line: var(--line-soft);
  --control-disabled-fg: var(--text-faint);
  --control-disabled-opacity: 0.5;

  /* interaction tints */
  --hover-tint: rgba(28, 28, 28, 0.045);
  --press-tint: rgba(28, 28, 28, 0.075);
  --selected-tint: rgba(77, 73, 252, 0.08);

  /* depth — borders carry hierarchy, shadow is reserved for things that
     genuinely float above the page */
  --shadow-xs: 0 1px 2px rgba(28, 28, 28, 0.04);
  --shadow-sm: 0 2px 8px rgba(28, 28, 28, 0.06);
  --shadow-overlay: 0 16px 40px rgba(28, 28, 28, 0.14);
  --shadow-chrome: 0 -6px 20px rgba(28, 28, 28, 0.07);

  /* focus */
  --focus-color: var(--ramp-accent-500);
  --focus-width: 2px;
  --focus-offset: 2px;

  /* -- non-color tokens (mode independent) ------------------------------ */

  --font-sans: "SF Pro Text", -apple-system, BlinkMacSystemFont,
    "Segoe UI Variable Text", "Segoe UI", Inter, system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, "JetBrains Mono",
    Menlo, Consolas, monospace;

  --text-micro: 0.6875rem;
  --text-micro-leading: 1rem;
  --text-xs: 0.75rem;
  --text-xs-leading: 1.125rem;
  --text-sm: 0.8125rem;
  --text-sm-leading: 1.25rem;
  --text-body: 0.875rem;
  --text-body-leading: 1.375rem;
  --text-md: 0.9375rem;
  --text-md-leading: 1.5rem;
  --text-lg: 1.0625rem;
  --text-lg-leading: 1.5rem;
  --text-xl: 1.25rem;
  --text-xl-leading: 1.625rem;
  --text-2xl: 1.5rem;
  --text-2xl-leading: 1.875rem;
  --text-display: clamp(1.625rem, 1.35rem + 0.85vw, 2.125rem);
  --text-display-leading: 1.12;

  /* The focal scale: the one statement a screen leads with, and the numeric
     treatment beside it. Deliberately below --text-display — this is
     operational software, not a marketing page — but far enough above
     --text-xl that the focal region cannot be mistaken for a section. */
  --text-focal: clamp(1.375rem, 1.05rem + 1vw, 1.9375rem);
  --text-focal-leading: 1.18;
  --text-metric: 1.75rem;
  --text-metric-leading: 1.05;

  --tracking-micro: 0.09em;
  --tracking-normal: 0;
  --tracking-tight: -0.011em;
  --tracking-display: -0.028em;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-strong: 660;
  --weight-bold: 700;

  /* 4px base, matching HeroUI's dimensions/spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-7: 1.75rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* -- spacing grammar ----------------------------------------------------

     The raw scale above answers "how big?"; these answer "how related?".
     Components consume these, so a *relationship* can be retuned once instead
     of being re-guessed per page — which is how a page intro, a collection
     and the form under it ended up separated by three unrelated values.

     The ladder, widest break to tightest:

       page    — page intro → first section, and section → section
       section — group → group inside one section (a collection and the form
                 that creates another one are two groups, not one)
       group   — a heading block → the content it introduces
       item    — item → item inside a collection
       control — control → control inside a group

     Related things sit at one rung; unrelated things must differ by at least
     one. Nothing should reach for a raw --space-* step to express a
     relationship this ladder already names. */
  --gap-page: var(--space-8);
  --gap-section: var(--space-7);
  --gap-group: var(--space-5);
  --gap-group-tight: var(--space-3);
  --gap-item: var(--space-3);
  --gap-control: var(--space-2);

  /* Radius is tiered by the *scale* of the thing, not applied uniformly:
     controls and chips stay tight, compact objects soften, a panel is
     rounder still, and the focal command surface carries the largest
     geometry on screen. Using one radius everywhere is what made the old
     screens read as a stack of identical rectangles. */
  --radius-xs: 0.25rem;
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 0.875rem;
  --radius-2xl: 1rem;
  --radius-3xl: 1.125rem;
  --radius-full: 999px;

  /* Per-role aliases, so a component asks for the radius of its *role*
     rather than picking a step off the scale by eye. */
  --radius-control: var(--radius-md);
  --radius-object: var(--radius-lg);
  --radius-panel: var(--radius-lg);
  --radius-popover: 0.625rem;
  --radius-zone: var(--radius-lg);
  --radius-focal: var(--radius-lg);

  /* Tonal accent surfaces, used for zones that need weight without a filled
     brand panel — module identity, operational summary, attention zones.
     Derived from --accent + --surface via color-mix rather than declared
     separately per theme: --accent is identical in both blocks and --surface
     is not, so the mix is correct in light and dark automatically. */
  --surface-accent: color-mix(in srgb, var(--accent) 7%, var(--surface));
  --surface-accent-strong: color-mix(in srgb, var(--accent) 15%, var(--surface));

  --duration-1: 110ms;
  --duration-2: 170ms;
  --duration-3: 260ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

  --control-height-sm: 2rem;
  --control-height-md: 2.5rem;
  --control-height-lg: 2.75rem;

  /* -- elevation recipes (mode independent) ------------------------------

     Composed once from the per-theme atoms above. Because both the atoms and
     these recipes live on :root, a recipe resolves against whichever theme
     block last set the atom — so there is exactly one definition of what
     "raised" means, in either mode.

     Note there is no `border` anywhere in the model: the hairline is the
     `0 0 0 1px` ring inside the shadow stack, which means it never adds to
     the box and never survives as a hard outline on a dark background.

     Restrained on purpose: hierarchy comes mainly from tonal contrast between
     surface steps (`--canvas` vs `--depth-veil` vs `--depth-panel`), not from
     shadow depth. `flat` is the resting state for most objects and carries no
     cast shadow at all — ring and top highlight only. `raised` is for a
     toned/stateful object that should sit fractionally forward of a plain
     one. `lifted` is reserved for an interactive hover state. `focal` is the
     one deliberately deeper recipe, reserved for the single focal surface a
     screen may have. */

  --elev-flat: 0 0 0 1px var(--edge-ring);
  --elev-raised:
    0 0 0 1px var(--edge-ring),
    0 2px 8px rgb(var(--ink) / 0.05);
  --elev-lifted:
    0 0 0 1px var(--edge-ring-strong),
    0 4px 14px rgb(var(--ink) / 0.08);
  --elev-focal:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(150, 168, 255, 0.1),
    0 3px 10px rgb(var(--ink) / 0.2),
    0 20px 48px -26px rgb(var(--ink) / 0.55);

  /* -- focal surface -----------------------------------------------------

     The one chromatic command surface a screen is allowed. It stays dark in
     both themes: it is the anchor the rest of the page is read against, and
     a single implementation means its contrast is fixed rather than
     re-derived per mode. Its foreground tokens are therefore absolute. */

  /* The one part of a fixed-dark surface that must stay theme-aware: it
     falls on the page, not on the panel. Declared per page theme on the root
     only — never inside the shared dark block `.focal-panel` joins, or the
     panel would light its own shadow from its own environment and cast pure
     black onto a light canvas. */
  --focal-shadow: none;
  --focal-base: linear-gradient(var(--surface), var(--surface));
  --focal-fg: var(--text-primary);
  --focal-fg-muted: var(--text-secondary);
  --focal-fg-faint: var(--text-muted);
  --focal-line: var(--line);
  --focal-inset: var(--surface-subtle);

  /* State is carried by the *light* falling on the focal surface and by its
     top edge, never by flooding the panel with a status colour. */
  --focal-wash-normal: linear-gradient(transparent, transparent);
  --focal-wash-attention: linear-gradient(transparent, transparent);
  --focal-wash-critical: linear-gradient(transparent, transparent);

  /* -- accent gradients ---------------------------------------------------
     Two only, and both are reserved: the primary action, and a progress fill
     that represents a real count. Anything else stays a flat token. */

  --gradient-accent: linear-gradient(var(--accent), var(--accent));
  --glow-accent: none;

  --nav-width: 14.5rem;
  --nav-bar-height: 3.5rem;
  --topbar-height: 3.25rem;
  /* The content container. Two layout modes only:
     - a standard page (dashboard, lists, hubs, detail pages, Studio) fills
       the shell's content column, capped at --content-max, with the shell
       gutter on each side — every such route shares one left and right edge;
     - the Mission project workspace is a full-bleed header over a single
       centered column: --content-reading plus its padding.
     Pages never set their own max-width or centering; a narrower measure is
     for a block inside a page (prose, a form), aligned to the page's left
     edge. */
  --content-max: 70rem;
  /* The single-column reading measure: the workspace column, and the cap
     for prose or a compact form inside a standard page. */
  --content-reading: 41rem;
  /* Horizontal page gutter, stepped with the shell breakpoints. */
  --shell-gutter: 1rem;
}

@media (min-width: 40rem) {
  :root {
    --shell-gutter: 2rem;
  }
}

@media (min-width: 64rem) {
  :root {
    --shell-gutter: 2.5rem;
  }
}

/* -- semantic: dark ------------------------------------------------------ */

/* The focal surface joins the dark environment here rather than re-declaring
   a hand-picked subset of it.

   `.focal-panel` is fixed-dark in *both* page themes, so it needs the whole
   dark semantic environment, not the eighteen tokens somebody remembered to
   copy: a badge, a field, a nested surface, a focus ring or a hover tint
   placed inside it must resolve against a dark ground automatically, and any
   token added to this block in future must reach it without a second edit.
   Listing the selector here is what makes that structural instead of a
   maintenance promise. The focal-specific overrides that sit *on top* of the
   dark environment follow immediately below. */
:root[data-theme="dark"] {
  color-scheme: dark;

  /* Deepened for the v2 environment: the canvas is near-black so the
     atmosphere above it and the raised surfaces on it both have somewhere to
     go. Surfaces keep a trace of the cold hue rather than reading as neutral
     greys — that is what lets four elevation steps stay distinguishable. */
  --canvas: #171717;
  --canvas-sunken: #171717;
  --chrome: #1c1c1c;
  --chrome-translucent: color-mix(in srgb, #1c1c1c 94%, transparent);
  --surface: #1f1f1f;
  --surface-hover: #252525;
  --surface-raised: #222222;
  --surface-sunken: #181818;
  --surface-subtle: #272727;
  --surface-overlay: #242424;

  --ink: 0 0 0;
  --edge-highlight: rgba(255, 255, 255, 0.045);
  --edge-highlight-strong: rgba(255, 255, 255, 0.08);
  --edge-ring: rgba(255, 255, 255, 0.09);
  --edge-ring-strong: rgba(255, 255, 255, 0.15);

  --depth-veil: #202020;
  --depth-panel: #1f1f1f;
  --depth-panel-hover: #252525;

  --atmosphere: none;

  --text-primary: #f2f2f2;
  --text-secondary: #c8c8c8;
  --text-muted: #a0a0a0;
  --text-faint: #8a8a8a;
  --text-on-accent: #ffffff;

  --line-soft: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.17);

  --accent: #6b68fd;
  --accent-hover: #5f5be8;
  --accent-active: #504cd4;
  --accent-fg: #ffffff;
  --accent-text: #9a98ff;
  --accent-soft: rgba(139, 147, 248, 0.14);
  --accent-soft-hover: rgba(139, 147, 248, 0.2);
  --accent-line: rgba(139, 147, 248, 0.42);

  --success: var(--ramp-green-300);
  --success-mark: var(--ramp-green-500);
  --success-soft: color-mix(in srgb, var(--ramp-green-500) 15%, transparent);
  --success-line: color-mix(in srgb, var(--ramp-green-500) 34%, transparent);
  /* Dark theme is the one place amber *can* be text: #ffcf5c on a
     near-black canvas is legible and still reads sunny. */
  --warning: var(--ramp-amber-300);
  --warning-mark: var(--ramp-amber-500);
  --warning-soft: color-mix(in srgb, var(--ramp-amber-500) 15%, transparent);
  --warning-line: color-mix(in srgb, var(--ramp-amber-500) 36%, transparent);
  --danger: var(--ramp-red-300);
  --danger-mark: var(--ramp-red-500);
  --danger-hover: #ffb3bb;
  --danger-fg: var(--mark-fg-danger);
  --danger-soft: color-mix(in srgb, var(--ramp-red-500) 15%, transparent);
  --danger-soft-hover: color-mix(in srgb, var(--ramp-red-500) 22%, transparent);
  --danger-line: color-mix(in srgb, var(--ramp-red-500) 36%, transparent);
  --info: var(--ramp-accent-300);
  --info-soft: rgba(139, 147, 248, 0.14);
  --info-line: rgba(139, 147, 248, 0.32);

  --control: #222222;
  --control-hover: #292929;
  --control-line: rgba(255, 255, 255, 0.14);
  --control-placeholder: #777777;
  --control-disabled-fg: #8f8f8f;

  --hover-tint: rgba(255, 255, 255, 0.055);
  --press-tint: rgba(255, 255, 255, 0.09);
  --selected-tint: rgba(139, 147, 248, 0.12);

  --shadow-xs: 0 1px 1px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.3);
  --shadow-overlay: 0 14px 36px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-chrome: 0 -1px 24px rgba(0, 0, 0, 0.45);

  --focus-color: var(--ramp-accent-400);
}

/* Honour the OS when no explicit choice has been stored. The inline script in
   index.html normally stamps data-theme before first paint; this is the
   fallback if it ever does not run. */
/* Root-scoped on purpose: see `--focal-shadow` above. */
/* What the focal surface changes *about* the dark environment: its own
   foreground family, its own hairline, and its own recessed ground. Placed
   after the block above and in the same origin, so these win. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --text-on-accent: #ffffff;
    --accent-fg: #ffffff;
    color-scheme: dark;

    --canvas: #171717;
    --canvas-sunken: #171717;
    --chrome: #1c1c1c;
    --chrome-translucent: color-mix(in srgb, #1c1c1c 94%, transparent);
    --surface: #1f1f1f;
    --surface-hover: #252525;
    --surface-raised: #222222;
    --surface-sunken: #181818;
    --surface-subtle: #272727;
    --surface-overlay: #242424;

    --ink: 0 0 0;
    --edge-highlight: rgba(255, 255, 255, 0.045);
    --edge-highlight-strong: rgba(255, 255, 255, 0.08);
    --edge-ring: rgba(255, 255, 255, 0.09);
    --edge-ring-strong: rgba(255, 255, 255, 0.15);

    --depth-veil: #202020;
    --depth-panel: #1f1f1f;
    --depth-panel-hover: #252525;

    --atmosphere: none;

    --text-primary: #f2f2f2;
    --text-secondary: #c8c8c8;
    --text-muted: #a0a0a0;
    --text-faint: #8a8a8a;

    --line-soft: rgba(255, 255, 255, 0.06);
    --line: rgba(255, 255, 255, 0.1);
    --line-strong: rgba(255, 255, 255, 0.17);

    --accent: #6b68fd;
    --accent-hover: #5f5be8;
    --accent-active: #504cd4;
    --accent-text: #9a98ff;
    --accent-soft: rgba(139, 147, 248, 0.14);
    --accent-soft-hover: rgba(139, 147, 248, 0.2);
    --accent-line: rgba(139, 147, 248, 0.42);

    --success: var(--ramp-green-300);
    --success-mark: var(--ramp-green-500);
    --success-soft: color-mix(in srgb, var(--ramp-green-500) 15%, transparent);
    --success-line: color-mix(in srgb, var(--ramp-green-500) 34%, transparent);
    /* Dark theme is the one place amber *can* be text: #ffcf5c on a
       near-black canvas is legible and still reads sunny. */
    --warning: var(--ramp-amber-300);
    --warning-mark: var(--ramp-amber-500);
    --warning-soft: color-mix(in srgb, var(--ramp-amber-500) 15%, transparent);
    --warning-line: color-mix(in srgb, var(--ramp-amber-500) 36%, transparent);
    --danger: var(--ramp-red-300);
    --danger-mark: var(--ramp-red-500);
    --danger-hover: #ffb3bb;
    --danger-fg: var(--mark-fg-danger);
    --danger-soft: color-mix(in srgb, var(--ramp-red-500) 15%, transparent);
    --danger-soft-hover: color-mix(in srgb, var(--ramp-red-500) 22%, transparent);
    --danger-line: color-mix(in srgb, var(--ramp-red-500) 36%, transparent);
    --info: var(--ramp-accent-300);
    --info-soft: rgba(139, 147, 248, 0.14);
    --info-line: rgba(139, 147, 248, 0.32);

    --control: #222222;
    --control-hover: #292929;
    --control-line: rgba(255, 255, 255, 0.14);
    --control-placeholder: #777777;
    --control-disabled-fg: #8f8f8f;

    --hover-tint: rgba(255, 255, 255, 0.055);
    --press-tint: rgba(255, 255, 255, 0.09);
    --selected-tint: rgba(139, 147, 248, 0.12);

    --shadow-xs: 0 1px 1px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.3);
    --shadow-overlay: 0 14px 36px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-chrome: 0 -1px 24px rgba(0, 0, 0, 0.45);

    --focus-color: var(--ramp-accent-400);
  }
}
