Skip to content

AI media harness for planning, generating, and editing locally

TypeScript
27.4 KB
Raw Blame
/* ============================================================================
   Slopus — design tokens
   ----------------------------------------------------------------------------
   This file is the contract. Every other stylesheet consumes these variables
   and MUST NOT introduce raw px type sizes, raw greys, or off-grid spacing.

   The target is a native Windows 11 app: WinUI 3 / Fluent proportions, type
   and elevation, not a website. When in doubt, do what the Settings app does.

   RULES
   1. Body copy is 14px (--text-base), Fluent "Body". Captions, secondary
      labels and metadata are 12px (--text-xs), Fluent "Caption".
   2. 12px (--text-xs) is the ABSOLUTE FLOOR. Nothing in the app is smaller.
      Labels are sentence case at caption size: no uppercase, letter-spaced
      eyebrows, and no letter-spacing at all (there are no tracking tokens;
      a heading never gets negative tracking).
   3. Spacing follows an 8px rhythm with 4px half-steps. Use --space-*, never
      arbitrary values.
   4. Standard controls are 32px tall (--control-md): buttons, text fields,
      selects, combo boxes, square icon buttons (--icon-button). Compact
      controls packed into a dense toolbar or row are 24px (--control-sm).
      There is no taller "hero" size.
   5. Corners are 4px on controls (--radius-sm) and 8px on cards,
      flyouts, menus and dialogs (--radius-lg / --radius-xl). --radius-pill is
      for badges, toggle switches and dots ONLY — never for a button or field.
      The accent button is the one committed action on a surface; everything
      else is a standard (neutral) or subtle (transparent) button.
   6. Prose uses line-height 20/14 (--leading-normal). Captions use 16/12
      (--leading-snug); display type uses --leading-tight.
   7. The dimmest READABLE text allowed anywhere is --text-faint, which clears
      4.5:1 on --panel / --panel-3 IN BOTH THEMES. --text-disabled is dimmer on
      purpose and may only ever label a control that is actually disabled.
   8. Elevation is Fluent's: cards have a 1px stroke and NO shadow; flyouts,
      menus and tooltips use --shadow-sm; dialogs use --shadow. Hover changes a
      fill, never a shadow, a scale or a position.
   9. The cursor is the arrow on every control. `pointer` (the hand) means
      "hyperlink" on Windows and is reserved for a real a[href].
  10. Motion is quiet: state changes transition background-color and color
      only, over --motion-fast. Things that open use --motion-panel with
      --ease-decelerate. No springs, no bounces, no glows.
  11. Blur (acrylic) is for menus, flyouts and popovers only (--acrylic +
      --acrylic-filter). Modal scrims are a flat --scrim.
  12. Keyboard focus is the Fluent double ring: 2px --focus-outer outside a
      1px --focus-inner. Text inputs never draw it; they show a 2px accent
      underline (--field-focus-line) instead.

   THEMING
   ----------------------------------------------------------------------------
   Three choices, one attribute that always names the RESOLVED theme:

     system (default)  data-theme follows the OS, live (theme.ts listens to
                       prefers-color-scheme and rewrites it)
     light             <html data-theme="light">
     dark              <html data-theme="dark">

   The COMPLETE palette is defined once, on a bare `:root`, in DARK. Light only
   ever REDEFINES those same names — it never introduces a colour of its own, so
   a token can never be missing in one theme and paint one theme's ink on the
   other theme's ground. Light is written ONCE, under :root[data-theme="light"].
   There is no `@media (prefers-color-scheme)` block: resolving "system"
   against the OS is JavaScript's job (public/theme-boot.js before the first
   paint, src/lib/theme.ts after), so the palette never has to be copied into
   a second selector and kept in step by hand.

   A token written as `var(--other)` on :root is an ALIAS: it resolves against
   whichever theme is active, so light does not (and should not) restate it.

   src/lib/theme.ts owns the attribute; public/theme-boot.js sets it before
   the first paint.
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Match native text selection, including the OS high-contrast palette. */
  --selection-text: HighlightText;
  --selection-bg: Highlight;

  /* --- Font families ------------------------------------------------------
     The Windows system faces. Nothing is self-hosted any more: Segoe UI
     Variable and Cascadia Mono ship with Windows 11, which is the only
     platform this app targets, and a bundled geometric face was the first
     thing that made it read as a website. The Text optical size is for UI and
     body copy; Display is for titles at 20px and above. */
  --font-sans: "Segoe UI Variable Text", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Cascadia Mono", Consolas, ui-monospace, monospace;

  /* --- Type ramp (Fluent) --------------------------------------------------
     Caption 12/16 · Body 14/20 · Body large 18/24 · Subtitle 20/28 ·
     Title 28/36. One name per Fluent step; the t-shirt names predate the
     ramp, which is why there is no --text-sm or --text-xl. */
  --text-xs: 12px;                     /* Caption, and the absolute floor: secondary text, metadata, labels */
  --text-base: 14px;                   /* Body / default */
  --text-md: 18px;                     /* Body large: inspector titles */
  --text-lg: 20px;                     /* Subtitle: section and panel headings */
  --text-2xl: 28px;                    /* Title: page titles */

  /* --- Line height -------------------------------------------------------- */
  --leading-tight: 1.2857;             /* 36/28, Title */
  --leading-snug: 1.3333;              /* 16/12, Caption and tight labels */
  --leading-normal: 1.4286;            /* 20/14, Body */
  --leading-relaxed: 1.5;

  /* --- Weight ------------------------------------------------------------- */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* --- Spacing (8px rhythm, 4px half-steps) ------------------------------- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;
  --space-8: 48px;
  --space-9: 64px;

  /* --- Radii --------------------------------------------------------------
     4px on controls, 8px on the containers that hold them (ControlCornerRadius
     and OverlayCornerRadius in WinUI). */
  --radius-sm: 4px;                    /* buttons, fields, list items, chips */
  --radius-lg: 8px;                    /* cards, flyouts, menus */
  --radius-xl: 8px;                    /* dialogs */
  --radius-pill: 999px;                /* badges, toggle switches, dots ONLY */
  --radius-progress: 1.5px;            /* the 3px progress bar and its fill */

  /* --- Control sizing -----------------------------------------------------
     Fluent standard density. The hit target of a 24px compact control is
     still generous for a mouse; this is a desktop app. */
  --control-sm: 24px;                  /* compact: dense toolbars, row actions */
  --control-md: 32px;                  /* standard button / combo box */
  --icon-button: 32px;                 /* square subtle icon button */
  --field-height: 32px;                /* text inputs, selects, search */
  --progress-height: 3px;              /* ProgressBar track */
  --check-size: 20px;                  /* checkbox and radio box */
  --slider-thumb: 20px;                /* range thumb, outer disc */

  /* --- Pane anatomy -------------------------------------------------------
     The fixed heights a pane is assembled from. A pane is headed by the
     selected item (--item-header) or by its toolbar (--chrome-row), never by
     a title bar; sections inside it start with a --section-row header. */
  --chrome-row: 36px;                  /* pane toolbars */
  --command-row: 40px;                 /* a page's top bar: CommandBar, the Timeline sources toolbar */
  --chrome-row-sm: 24px;               /* pane footers, the status bar */
  --item-header: 48px;                 /* the selected-item header */
  --section-row: 28px;                 /* PropSection header, property rows */
  --prop-label: 104px;                 /* the one label column width */
  --inspector-action-width: 220px;     /* centered panel actions, shrink in narrow panes */
  --pane-side-default: 340px;          /* a side pane's default width */
  --titlebar-height: 48px;             /* the window caption / app header row */

  /* --- Motion -------------------------------------------------------------
     Fluent timings. Control state (hover, pressed) is a colour change over
     --motion-fast, linear. Things that open or slide use --motion-normal or
     --motion-panel with --ease-decelerate. Motion in an editor belongs to the
     content — the playhead, a clip being dragged, a render bar filling — not
     to the furniture. */
  --motion-fast: 83ms;
  --motion-normal: 167ms;
  --motion-panel: 250ms;
  --ease-decelerate: cubic-bezier(0, 0, 0, 1);
  --ease-accelerate: cubic-bezier(1, 0, 1, 1);
  /* The one transition a control is allowed. */
  --transition-control: background-color var(--motion-fast) linear, color var(--motion-fast) linear;

  /* --- Acrylic -------------------------------------------------------------
     The only backdrop-filter in the app, and only on menus, flyouts and
     popovers, always over --acrylic. */
  --acrylic-filter: blur(30px) saturate(125%);

  /* ==========================================================================
     COLOUR — dark (the base palette; light redefines every name below)
     ====================================================================== */

  /* --- Surfaces ----------------------------------------------------------- */
  --bg: #080a0f;                       /* the app's ground */
  --panel: #0d1016;                    /* cards, dialogs, the topbar */
  --panel-2: #12151d;                  /* a surface sitting on a panel */
  --panel-3: #171b24;                  /* chips, menus, skeletons, placeholders */

  /* --- Surface roles ---------------------------------------------------------
     The ladder every page is built from. Each region takes a ROLE, and
     neighbouring regions sit on different rungs, so a pane reads as a pane
     without a title bar telling you so:
       base    the window and title bar (Mica shows through when available)
       pane    pane bodies: sources, inspectors, agent, Library, Settings
       chrome  raised strips that hold controls: item headers, pane toolbars,
               command bars, section headers, ruler, track heads, footers,
               the status bar
       well    recessed ground where media is laid out: timeline lanes, the
               Generator board, the References grid (--surface-well-alt is
               its alternating row)
       stage   behind the picture: program monitor, Export preview. Dark in
               both themes (see --stage-bg).
     --line divides things INSIDE one surface; --stroke-divider is the
     stronger edge where two rungs meet (under a header or toolbar, beside the
     track-head column, between panes). */
  --surface-base: var(--bg);
  --surface-pane: var(--panel);
  --surface-chrome: #161a24;
  --surface-well: #07090d;
  --surface-well-alt: #0a0d12;
  --surface-stage: var(--stage-bg);
  --stroke-divider: rgba(255, 255, 255, 0.16);

  /* --- Fluent layers --------------------------------------------------------
     The WinUI surface stack, named the way the Fluent spec names it so the
     next person can look a value up. Opaque surfaces are aliases of the panel
     steps above; the fills and strokes are translucent overlays in the WinUI
     proportions (white over dark, black-or-white over light) so they read the
     same on whatever they sit on. */
  --layer: var(--surface-pane);        /* a pane laid on the ground (LayerFill) */
  --layer-alt: var(--surface-chrome);  /* a second pane on a layer (LayerFillAlt) */
  --card: rgba(255, 255, 255, 0.0512); /* CardBackgroundFill: settings rows, tiles */
  --card-hover: rgba(255, 255, 255, 0.0837);   /* a clickable card under the mouse */
  --card-pressed: rgba(255, 255, 255, 0.0326);
  --stroke-card: rgba(255, 255, 255, 0.0698);  /* the 1px edge every card has instead of a shadow */
  --stroke-surface: rgba(255, 255, 255, 0.093); /* flyout, menu and dialog edge */
  --stroke-control: rgba(255, 255, 255, 0.0698);   /* standard button / field edge */
  --stroke-control-bottom: rgba(255, 255, 255, 0.035); /* its bottom edge, a shade darker */
  --stroke-strong: rgba(255, 255, 255, 0.544); /* text-field underline at rest, unchecked box, slider track */
  --fill-control: rgba(255, 255, 255, 0.0605);         /* standard button / field at rest */
  --fill-control-hover: rgba(255, 255, 255, 0.0837);
  --fill-control-pressed: rgba(255, 255, 255, 0.0326);
  --fill-control-disabled: rgba(255, 255, 255, 0.0419);
  --fill-control-alt: rgba(0, 0, 0, 0.1);      /* an unchecked checkbox / radio */
  --fill-input-focus: rgba(30, 30, 30, 0.7);   /* a text field while typing */
  --fill-subtle-hover: rgba(255, 255, 255, 0.0605);    /* subtle button, list item, menu item */
  --fill-subtle-pressed: rgba(255, 255, 255, 0.0419);
  --thumb-bg: #454545;                 /* slider thumb disc, radio's inner dot on accent */
  /* Menus, flyouts, popovers (with --acrylic-filter). Tinted to the palette's
     blue-grey and thin enough that the blur shows. Over the app's own
     surfaces it lands near #1b1f28: --text-primary 14.5:1, --text-muted
     6.4:1, --text-faint 4.8:1. Over a pure-white frame in the monitor it
     lifts to ~#3e414a, where --text-faint drops to 3.0:1 — menu labels use
     primary / secondary ink (9.1:1 / 6.3:1 there), faint is only hints. */
  --acrylic: rgba(30, 34, 44, 0.86);
  --dialog-bg: var(--panel-2);         /* ContentDialog body */
  --dialog-footer-bg: var(--surface-pane); /* its button row, one step darker */
  --tooltip-bg: #1d212b;
  --tooltip-stroke: rgba(0, 0, 0, 0.2);

  /* --- Lines --------------------------------------------------------------
     --line is translucent so it works over any surface.
     --line-solid is the opaque equivalent for a border between two known
     surfaces (topbar bottom, dock top) where a wash would double up. */
  --line: rgba(255, 255, 255, 0.085);
  --line-solid: #232630;

  /* --- Neutral washes ------------------------------------------------------
     Hover / rest / pressed tints laid over whatever surface is underneath.
     White in dark, BLACK in light — this is the single most common reason a
     converted stylesheet looks broken in the other theme. Not folded into
     the Fluent --fill-subtle-* pair: the compact segmented control rests on
     --wash-1, which has to stay fainter than a hovered segment, and the
     window caption buttons (titlebar.css) were tuned against the system's
     own caption hover on Mica with this pair — swapping them is a visual
     change, not a rename, so it waits for a side-by-side check. */
  --wash-1: rgba(255, 255, 255, 0.025); /* resting fill on a segmented control */
  --wash-2: rgba(255, 255, 255, 0.045); /* hover */
  --grid-line: rgba(255, 255, 255, 0.14);    /* beat grid + empty-stage dots, on --bg */

  /* --- Floating chrome -----------------------------------------------------
     Opaque now. These used to be translucent and paired with a backdrop
     blur; blur is reserved for menus and flyouts (rule 11), so a floating
     control is simply a layer. */
  --glass: var(--panel);               /* floating control / overlay panel */
  --scrim: rgba(0, 0, 0, 0.5);         /* behind a modal: flat, never blurred */

  /* --- Text (contrast-checked against --panel / --panel-3) ---------------- */
  --text-primary: #eff1f7;             /* 16.9:1 on --panel */
  --text-secondary: #c5cbd7;           /* 11.7:1 */
  --text-muted: #9aa2b1;               /*  7.4:1 — replaces every #86..#9x grey */
  --text-faint: #838b9a;               /* DIMMEST readable text — 5.6:1 on --panel */
  --text-disabled: rgba(255, 255, 255, 0.362); /* disabled controls only (rule 7) */

  /* --- Accent --------------------------------------------------------------
     --accent is 4.2:1 on --panel: BORDERS, dots and fills only, never text.
     --accent-bright is the accent AT READING CONTRAST (6.2:1) and is the one
     that may carry a label. */
  --accent: #3d6df2;
  --accent-bright: #6b8dff;
  --accent-fill: #3f64d9;              /* a FILLED accent control: white on it is 5.2:1,
                                          where white on --accent is only 4.5:1 */
  --accent-dark: #173ca6;              /* solid accent chip, always wears --on-accent */
  --accent-soft: rgba(60, 105, 239, 0.15);
  --accent-soft-strong: rgba(60, 105, 239, 0.22);
  --accent-on-soft: #c7d2ff;           /* label sitting on --accent-soft */
  --accent-line: rgba(107, 141, 255, 0.28);
  --accent-line-strong: rgba(103, 138, 245, 0.55);
  --accent-disabled: rgba(255, 255, 255, 0.158); /* a checked box / accent button, disabled */

  /* --- On-accent -----------------------------------------------------------
     The primary button and the send button stay blue in BOTH themes, so what
     sits on them is white in both. Deliberately theme-independent. */
  --on-accent: #ffffff;
  --on-accent-dim: rgba(255, 255, 255, 0.35);
  --on-accent-disabled: rgba(255, 255, 255, 0.53);

  /* --- The export stage -----------------------------------------------------
     The stage behind the picture stays BLACK in both themes on purpose: a
     surround that matched the page would hide where the frame ends. That makes
     everything sitting on it theme-independent too — a themed --text-muted on
     this ground is 2.6:1 in light, which is exactly how the caption went
     unreadable. These five are the only ink allowed on the stage. */
  --stage-bg: #05070b;
  --on-stage: #c9cfdb;                 /* 12.9:1 on --stage-bg, both themes */
  --stage-alert-bg: rgba(12, 8, 10, 0.9);
  --stage-alert-ink: #f19aa1;          /* 9.3:1 on --stage-alert-bg over the stage */

  /* --- Accent button (Fluent AccentButtonStyle) ----------------------------
     One flat fill with the faint Fluent elevation edge. No gradient, no
     coloured shadow. */
  --button-primary-bg: #3557c7;        /* white on it is 6.3:1 */
  --button-primary-hover: var(--accent-fill); /* 5.2:1 — lighter, as dark-theme hover should be */
  --button-primary-active: #2c49ac;    /* 7.9:1 */
  --button-primary-off-bg: var(--panel-3);
  --button-primary-off-ink: var(--text-muted);
  --button-primary-stroke: rgba(255, 255, 255, 0.08);
  --button-primary-stroke-bottom: rgba(0, 0, 0, 0.14);

  /* --- Filled neutral -------------------------------------------------------
     A row's own verb: louder than a subtle control, quieter than the one
     accent action on the surface. */
  --button-fill-bg: #252b36;           /* --text-primary on it is 12.6:1 */
  --button-fill-hover: #2d3442;

  /* --- Progress ----------------------------------------------------------- */
  --track: #20252e;
  --progress-fill: #9aa2b1;            /* 6.0:1 on --track */

  /* --- Status --------------------------------------------------------------
     Each hue has a text/dot value, a border tint and a surface tint. Status
     dots are flat: no glow. */
  --success: #6ecf95;
  --success-soft: rgba(110, 207, 149, 0.07);

  --warning: #e3a862;
  --warning-soft: rgba(227, 168, 98, 0.1);

  --danger: #ec7d86;
  --danger-line: rgba(236, 125, 134, 0.3);
  --danger-line-strong: rgba(236, 125, 134, 0.5);
  --danger-soft: #26171b;              /* opaque: destructive button, error toast */
  --danger-soft-strong: #2e1b20;

  /* --- Audio ---------------------------------------------------------------
     The second hue in the app. Audio is teal everywhere it appears: the track
     badge, the clip, the waveform. */
  --audio: #7cc3bc;

  /* --- Clip kinds -----------------------------------------------------------
     One colour per kind of item, used wherever that kind appears: timeline
     clips, track chips, the inspector's kind chip, media cards, Generator
     shots. Saturated blocks that wear white ink, so they are the same in both
     themes. --clip-color on a clip still comes from its MEDIA when it has
     one; these are what it falls back to. The *-default names are the old
     spelling, kept as aliases. */
  --clip-video: #4a68c8;               /* film strip */
  --clip-generated: #7d58c9;           /* sparkle */
  --clip-image: #3f8a5c;               /* picture */
  --clip-audio: #2f7d77;               /* waveform */
  --clip-caption: #9c6a1c;             /* text "T" */
  --clip-video-default: var(--clip-video);
  --clip-audio-default: var(--clip-audio);
  --snap: #f2c94c;                     /* snap target line while dragging */

  /* --- Elevation ------------------------------------------------------------
     Fluent's two shadows, and nothing else. Cards have none (rule 8). */
  --shadow: 0 32px 64px rgba(0, 0, 0, 0.37), 0 2px 21px rgba(0, 0, 0, 0.37); /* dialog */
  --shadow-sm: 0 8px 16px rgba(0, 0, 0, 0.26);    /* flyout, menu, popover */
  --shadow-tooltip: 0 4px 8px rgba(0, 0, 0, 0.26);

  /* --- Focus --------------------------------------------------------------
     The Fluent focus visual, keyboard only (base.css). Two rings: a 2px
     --focus-outer in the text colour and a 1px --focus-inner in the ground
     colour just inside it, so the ring reads on any fill, including the
     accent. Composite controls apply it to the wrapper that reads as the
     control. Text inputs never draw it: they get --field-focus-line as a 2px
     bottom border instead. --focus-ring-color is the old single-ring name,
     kept as an alias of the outer ring. */
  --focus-ring-width: 2px;
  --focus-outer: #ffffff;
  --focus-inner: rgba(0, 0, 0, 0.7);
  --focus-ring-color: var(--focus-outer);
  --focus-ring:
    0 0 0 1px var(--focus-inner),
    0 0 0 3px var(--focus-outer);      /* as a box-shadow, where outline cannot reach */
  --field-focus-line: var(--accent-bright);

  /* --- Glyphs ---------------------------------------------------------------
     Shapes used as CSS masks, painted with background-color so they take the
     palette's ink. They live here because an SVG inside a data URI would
     otherwise have to spell a colour outside this file; a mask only reads
     alpha, so the fill in these is irrelevant. */
  --glyph-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.2 6.3 4.7 8.8 9.8 3.4' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --glyph-dash: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6h6' stroke='black' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ============================================================================
   LIGHT — <html data-theme="light">, which theme.ts writes whether the user
   picked Light or picked System on a light computer.

   Designed, not inverted. The ground is a cool grey (#eef1f6) and panels are
   WHITE, so a card still reads as raised; a straight inversion would have put
   white paper behind everything and left the cards invisible. The neutral
   washes flip from white-over-dark to black-over-light, and the Fluent fills
   take the WinUI light values (white control fills over a grey ground, black
   subtle fills). The accent darkens rather than brightens, because "more
   contrast" points the other way here. Aliases (--layer, --glass, the focus
   ring colour, --surface-base / -pane / -stage) are not restated: they
   follow the names they point at. The two dialog aliases ARE restated,
   because light swaps which rung is the body and which the footer (white
   body over a grey button row, where dark puts the lighter step on top).
   ========================================================================== */

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

  --bg: #eef1f6;
  --panel: #ffffff;
  --panel-2: #f5f7fa;
  --panel-3: #e9ecf3;

  --surface-chrome: #f5f7fa;
  --surface-well: #e4e8ef;
  --surface-well-alt: #eaedf3;
  --stroke-divider: rgba(15, 23, 42, 0.18);

  --card: rgba(255, 255, 255, 0.7);
  --card-hover: rgba(249, 249, 249, 0.5);
  --card-pressed: rgba(249, 249, 249, 0.3);
  --stroke-card: rgba(0, 0, 0, 0.0578);
  --stroke-surface: rgba(0, 0, 0, 0.0578);
  --stroke-control: rgba(0, 0, 0, 0.0578);
  --stroke-control-bottom: rgba(0, 0, 0, 0.1622);
  --stroke-strong: rgba(0, 0, 0, 0.4458);
  --fill-control: rgba(255, 255, 255, 0.7);
  --fill-control-hover: rgba(249, 249, 249, 0.5);
  --fill-control-pressed: rgba(249, 249, 249, 0.3);
  --fill-control-disabled: rgba(249, 249, 249, 0.3);
  --fill-control-alt: rgba(0, 0, 0, 0.0241);
  --fill-input-focus: #ffffff;
  --fill-subtle-hover: rgba(0, 0, 0, 0.0373);
  --fill-subtle-pressed: rgba(0, 0, 0, 0.0241);
  --thumb-bg: #ffffff;
  --acrylic: rgba(252, 252, 252, 0.85);
  --dialog-bg: var(--panel);
  --dialog-footer-bg: var(--panel-2);
  --tooltip-bg: #f9f9f9;
  --tooltip-stroke: rgba(0, 0, 0, 0.0578);

  --line: rgba(15, 23, 42, 0.1);
  --line-solid: #dde1ea;

  --wash-1: rgba(15, 23, 42, 0.035);
  --wash-2: rgba(15, 23, 42, 0.055);
  --grid-line: rgba(15, 23, 42, 0.16);

  --scrim: rgba(0, 0, 0, 0.3);       /* lighter than dark's: a white dialog needs less */

  --text-primary: #101420;           /* 18.4:1 on --panel */
  --text-secondary: #333c4e;         /* 11.1:1 */
  --text-muted: #4a5365;             /*  7.7:1 */
  --text-faint: #5a6377;             /*  6.0:1 on --panel, 5.1:1 on --panel-3 */
  --text-disabled: rgba(0, 0, 0, 0.361);

  --accent: #2d5bd7;
  --accent-bright: #1e4fd0;          /* 6.8:1 — the readable accent */
  --accent-fill: #2d5bd7;            /* 5.9:1 under white */
  --accent-dark: #1e40af;
  --accent-soft: rgba(45, 91, 215, 0.1);
  --accent-soft-strong: rgba(45, 91, 215, 0.16);
  --accent-on-soft: #1e40af;
  --accent-line: rgba(45, 91, 215, 0.3);
  --accent-line-strong: rgba(30, 79, 208, 0.6);
  --accent-disabled: rgba(0, 0, 0, 0.2169);

  --on-accent-disabled: #ffffff;

  --button-primary-bg: #2d5bd7;      /* white on it is 5.9:1 */
  --button-primary-hover: #2450c4;   /* 7.0:1 — darker in light, so not the --accent-fill alias */
  --button-primary-active: #1e40af;  /* 8.7:1 */
  --button-primary-stroke: rgba(255, 255, 255, 0.08);
  --button-primary-stroke-bottom: rgba(0, 0, 0, 0.4);

  --button-fill-bg: #e2e6ee;         /* --text-primary on it is 14.7:1 */
  --button-fill-hover: #d6dbe6;

  --track: #dfe3ec;
  --progress-fill: #4a5365;          /* 6.0:1 on --track */

  --success: #0f7a45;                /* 5.4:1 */
  --success-soft: rgba(15, 122, 69, 0.08);

  --warning: #8a5a09;                /* 5.9:1 */
  --warning-soft: rgba(138, 90, 9, 0.08);

  --danger: #c02c3a;                 /* 5.7:1 */
  --danger-line: rgba(192, 44, 58, 0.3);
  --danger-line-strong: rgba(192, 44, 58, 0.55);
  --danger-soft: #fdf1f2;
  --danger-soft-strong: #fbe4e6;

  --audio: #10706a;                  /* 5.9:1 on --panel */

  --clip-video: #4a68c8;             /* the kind colours: unchanged */
  --clip-generated: #7d58c9;
  --clip-image: #3f8a5c;
  --clip-audio: #2f7d77;
  --clip-caption: #9c6a1c;
  --snap: #a27800;

  --shadow: 0 32px 64px rgba(0, 0, 0, 0.1876), 0 2px 21px rgba(0, 0, 0, 0.1474);
  --shadow-sm: 0 8px 16px rgba(0, 0, 0, 0.14);
  --shadow-tooltip: 0 4px 8px rgba(0, 0, 0, 0.14);

  --focus-outer: rgba(0, 0, 0, 0.8956);
  --focus-inner: rgba(255, 255, 255, 0.7);
}