/* SPDX-License-Identifier: MPL-2.0 */
/* TeamCraft skins – the TeamCraft house style (light and dark) and the distro skins.
 * Shared by the web UI (/static/shared/css/skins.css) and the desktop app
 * (desktop/build.rs copies shared/ into the app).
 *
 * Everything visual hangs on the custom properties below; style.css and the
 * desktop app.css never use literal colours. The selectors are not limited to
 * <html>, so the skin picker can render each card in its own skin.
 * Self-contained (CSP `style-src 'self'`): Montserrat (page titles and the
 * wordmark) is served from /static/shared/fonts, text uses the system UI face;
 * Oswald is still declared but unused (an unused face is never downloaded).
 *
 * Skins (src/domain.rs SKINS):
 *   teamcraft        follows the system: light, or dark when the OS is dark
 *   teamcraft-day    house style, always light
 *   teamcraft-night  house style, always dark
 *   distro skins     the dark base with their own hue
 *
 * Rules: colour means state or the one primary action; every token that the
 * contrast test reads is an opaque #rrggbb or a var() of one (src/domain.rs, skins_meet_contrast);
 * the two DARK-TOKENS blocks are identical (dark_token_blocks_identical).
 * Gradients appear only in the distro skins' --glow / --pattern, which only
 * .app-glow paints.
 */

/* ===========================================================================
   1. Light base: the default for every element with a data-skin.
   `:where()` keeps the specificity at zero, so the blocks below win.
   =========================================================================== */

/* LIGHT-TOKENS:BEGIN */
:where(:root, [data-skin]) {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --bg-raised: #ffffff;
  --surface-2: #eef0f3;
  --surface-hover: #f0f2f5;
  --surface-sunken: #eef0f3;
  --input-bg: #ffffff;
  --selected: #e8f1fb;
  --border: #dde1e6;
  --border-strong: #c4cad2;
  --control-border: #7d8795;
  --bar: #ffffff;
  --sidebar: #eef0f3;
  --text: #1a1d21;
  --text-muted: #4f5865;
  --text-dim: #626c7a;
  --link: #0761b0;
  --primary: #0761b0;
  --primary-hover: #054a86;
  --primary-active: #054a86;
  --on-primary: #ffffff;
  --focus: #0761b0;
  --count-bg: var(--primary);
  --count-fg: var(--on-primary);
  --viewer-bg: #eceff3;
  --viewer-model: #6f87a1;
  --axis-x: #c23b3b;
  --axis-y: #23804a;
  --axis-z: #0761b0;

  /* states: foreground, background, border (the markup adds a glyph) */
  --st-wip-fg: #4a5464;
  --st-wip-bg: #eef1f4;
  --st-wip-bd: #cfd5dd;
  --st-review-fg: #8a5300;
  --st-review-bg: #fdf3dc;
  --st-review-bd: #ecd08f;
  --st-ok-fg: #166a3f;
  --st-ok-bg: #e5f4eb;
  --st-ok-bd: #a9d8bd;
  --st-danger-fg: #b42318;
  --st-danger-bg: #fdecea;
  --st-danger-bd: #f3b8b2;
  --st-impact-fg: #b54708;
  --st-impact-bg: #fff1e7;
  --st-impact-edge: #d97a1e;
  --st-lock-other: #8a5300;

  /* avatar tints: identity, not data */
  --avatar-1: #dbe7f5;
  --avatar-2: #dcefe3;
  --avatar-3: #f3e6d3;
  --avatar-4: #ead9f2;
  --avatar-5: #d7eef0;
  --avatar-6: #f2dada;

  --shadow-pop: 0 1px 2px rgb(16 24 40 / 8%), 0 4px 16px rgb(16 24 40 / 12%);
  --backdrop: rgb(16 18 22 / 40%);
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%234f5865' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

  /* legacy names, kept for older selectors and the desktop app */
  --c1: #054a86;
  --c2: #0761b0;
  --c3: #0761b0;
  --c4: #e1f3fa;
  --accent: var(--primary);
  --accent-soft: var(--selected);
  --primary-from: var(--primary);
  --primary-to: var(--primary);
  --zebra: transparent;
  --ok: var(--st-ok-fg);
  --ok-soft: var(--st-ok-bg);
  --warn: var(--st-review-fg);
  --warn-soft: var(--st-review-bg);
  --danger: var(--st-danger-fg);
  --danger-soft: var(--st-danger-bg);
  --glow: none;
  --pattern: none;
  --pattern-size: auto;
  --mark-glow: none;
  --shadow-card: none;
  --swatch-1: initial;
  --swatch-2: initial;
  --swatch-3: initial;
  --swatch-4: initial;
  color-scheme: light;
}
/* LIGHT-TOKENS:END */

/* ===========================================================================
   2. The System skin on a dark OS.
   =========================================================================== */

@media (prefers-color-scheme: dark) {
  /* DARK-TOKENS:BEGIN media */
  :where([data-skin="teamcraft"]) {
    --bg: #101216;
    --surface: #171a1f;
    --bg-raised: #171a1f;
    --surface-2: #1e2228;
    --surface-hover: #1d2127;
    --surface-sunken: #101216;
    --input-bg: #101216;
    --selected: #17304a;
    --border: #2b3038;
    --border-strong: #3a414b;
    --control-border: #69737f;
    --bar: #101216;
    --sidebar: #1e2228;
    --text: #e6e9ed;
    --text-muted: #a3acb8;
    --text-dim: #98a2af;
    --link: #6cb2f5;
    --primary: #1f6fc5;
    --primary-hover: #2574cc;
    --primary-active: #2676ce;
    --on-primary: #ffffff;
    --focus: #6cb2f5;
    --count-bg: var(--primary);
    --count-fg: var(--on-primary);
    --viewer-bg: #0d1014;
    --viewer-model: #a7b6c6;
    --axis-x: #e5534b;
    --axis-y: #3fb36f;
    --axis-z: #6cb2f5;
    --st-wip-fg: #b8c1cc;
    --st-wip-bg: #262c34;
    --st-wip-bd: #3a414b;
    --st-review-fg: #e9b949;
    --st-review-bg: #33290f;
    --st-review-bd: #5c4a1a;
    --st-ok-fg: #5fcb8f;
    --st-ok-bg: #12301f;
    --st-ok-bd: #22543a;
    --st-danger-fg: #f28b82;
    --st-danger-bg: #3a1b19;
    --st-danger-bd: #61302c;
    --st-impact-fg: #f3a15f;
    --st-impact-bg: #3a2414;
    --st-impact-edge: #f3a15f;
    --st-lock-other: #e9b949;
    --avatar-1: #1f3550;
    --avatar-2: #1e3a2b;
    --avatar-3: #3d2f1a;
    --avatar-4: #33244a;
    --avatar-5: #1b3a3e;
    --avatar-6: #3f2224;
    --shadow-pop: 0 0 0 1px #2f343c, 0 8px 24px rgb(0 0 0 / 50%);
    --backdrop: rgb(0 0 0 / 55%);
    --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23a3acb8' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --c3: #6cb2f5;
    --c4: #17304a;
    --accent: var(--link);
    color-scheme: dark;
  }
  /* DARK-TOKENS:END media */
}

/* ===========================================================================
   3. Forced dark: the house night skin; every distro skin starts from it.
   =========================================================================== */

/* DARK-TOKENS:BEGIN forced */
:where([data-skin="teamcraft-night"], [data-skin="arch"], [data-skin="cachyos"], [data-skin="endeavouros"],
       [data-skin="kde"], [data-skin="kubuntu"], [data-skin="opensuse"], [data-skin="ubuntu"]) {
  --bg: #101216;
  --surface: #171a1f;
  --bg-raised: #171a1f;
  --surface-2: #1e2228;
  --surface-hover: #1d2127;
  --surface-sunken: #101216;
  --input-bg: #101216;
  --selected: #17304a;
  --border: #2b3038;
  --border-strong: #3a414b;
  --control-border: #69737f;
  --bar: #101216;
  --sidebar: #1e2228;
  --text: #e6e9ed;
  --text-muted: #a3acb8;
  --text-dim: #98a2af;
  --link: #6cb2f5;
  --primary: #1f6fc5;
  /* dark skins: hover and press get lighter, so the button never sinks into the page */
  --primary-hover: #2574cc;
  --primary-active: #2676ce;
  --on-primary: #ffffff;
  --focus: #6cb2f5;
  --count-bg: var(--primary);
  --count-fg: var(--on-primary);
  --viewer-bg: #0d1014;
  --viewer-model: #a7b6c6;
  --axis-x: #e5534b;
  --axis-y: #3fb36f;
  --axis-z: #6cb2f5;
  --st-wip-fg: #b8c1cc;
  --st-wip-bg: #262c34;
  --st-wip-bd: #3a414b;
  --st-review-fg: #e9b949;
  --st-review-bg: #33290f;
  --st-review-bd: #5c4a1a;
  --st-ok-fg: #5fcb8f;
  --st-ok-bg: #12301f;
  --st-ok-bd: #22543a;
  --st-danger-fg: #f28b82;
  --st-danger-bg: #3a1b19;
  --st-danger-bd: #61302c;
  --st-impact-fg: #f3a15f;
  --st-impact-bg: #3a2414;
  --st-impact-edge: #f3a15f;
  --st-lock-other: #e9b949;
  --avatar-1: #1f3550;
  --avatar-2: #1e3a2b;
  --avatar-3: #3d2f1a;
  --avatar-4: #33244a;
  --avatar-5: #1b3a3e;
  --avatar-6: #3f2224;
  --shadow-pop: 0 0 0 1px #2f343c, 0 8px 24px rgb(0 0 0 / 50%);
  --backdrop: rgb(0 0 0 / 55%);
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23a3acb8' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --c3: #6cb2f5;
  --c4: #17304a;
  --accent: var(--link);
  color-scheme: dark;
}
/* DARK-TOKENS:END forced */

/* ===========================================================================
   4. House skins in the picker, logos for light and dark
   =========================================================================== */

[data-skin="teamcraft"], [data-skin="teamcraft-day"], [data-skin="teamcraft-night"] {
  --swatch-1: #0761b0;
  --swatch-2: #9bdafa;
  --swatch-3: #e1f3fa;
  --swatch-4: #ffea52;
}
/* TeamCraft Light: exactly the light base. */
[data-skin="teamcraft-day"] {
  color-scheme: light;
}
/* TeamCraft Dark: exactly the dark base. */
[data-skin="teamcraft-night"] {
  color-scheme: dark;
}
/* The web System card shows a light and a dark mock side by side (account.html). */
/* The desktop app's System card: the swatch row on a light and a dark half. */
.skin-card[data-skin="teamcraft"] .skin-swatch {
  background: #f5f6f8;
  box-shadow: inset -34px 0 0 #101216;
}

/* Both logos are in the page and CSS shows one, because the server cannot
   know the OS scheme. .on-light: the blue logo, .on-dark: the white one
   (the desktop app's .skin-logo-light / .skin-logo-dark the same). */
.on-dark, .skin-logo-dark { display: none; }
:where([data-skin="teamcraft-night"], [data-skin="arch"], [data-skin="cachyos"], [data-skin="endeavouros"],
       [data-skin="kde"], [data-skin="kubuntu"], [data-skin="opensuse"], [data-skin="ubuntu"]) :is(.on-dark, .skin-logo-dark) { display: revert; }
:where([data-skin="teamcraft-night"], [data-skin="arch"], [data-skin="cachyos"], [data-skin="endeavouros"],
       [data-skin="kde"], [data-skin="kubuntu"], [data-skin="opensuse"], [data-skin="ubuntu"]) :is(.on-light, .skin-logo-light) { display: none; }
@media (prefers-color-scheme: dark) {
  :where([data-skin="teamcraft"]) :is(.on-dark, .skin-logo-dark) { display: revert; }
  :where([data-skin="teamcraft"]) :is(.on-light, .skin-logo-light) { display: none; }
}

/* ===========================================================================
   5. Distro skins: the dark base with their own hue. Components stay flat;
   the glow and the texture are painted only on .app-glow behind the page.
   =========================================================================== */

[data-skin="arch"] {
  --c1: #0f4c6e;
  --c2: #1793d1;
  --c3: #40bfde;
  --c4: #9be4f5;
  --bg: #0b0f13;
  --bg-raised: #121920;
  --surface: #121920;
  --surface-2: #19222b;
  --surface-hover: #18212a;
  --surface-sunken: #0b0f13;
  --input-bg: #0b0f13;
  --bar: #0b0f13;
  --sidebar: #19222b;
  --selected: #0f3349;
  --accent: #40bfde;
  --link: #40bfde;
  --focus: #40bfde;
  --primary: #0f6fa3;
  --primary-hover: #1376ab;
  --primary-active: #157cb3;
  --on-primary: #ffffff;
  --glow:
    radial-gradient(65% 55% at 85% -10%, rgb(23 147 209 / 18%), transparent 70%),
    radial-gradient(55% 45% at 0% 100%, rgb(64 191 222 / 8%), transparent 70%);
  /* blueprint grid */
  --pattern:
    linear-gradient(rgb(64 191 222 / 3%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(64 191 222 / 3%) 1px, transparent 1px);
  --pattern-size: 32px 32px;
  --mark-glow: none;
}

[data-skin="cachyos"] {
  --c1: #004d3d;
  --c2: #00aa88;
  --c3: #00ccff;
  --c4: #00ffcc;
  --bg: #000e0e;
  --bg-raised: #021a19;
  --surface: #021a19;
  --surface-2: #072523;
  --surface-hover: #062220;
  --surface-sunken: #000e0e;
  --input-bg: #000e0e;
  --bar: #000e0e;
  --sidebar: #072523;
  --selected: #003b33;
  --accent: #00c9a7;
  --link: #00ccff;
  --focus: #00c9a7;
  --primary: #007a63;
  --primary-hover: #00836a;
  --primary-active: #00856c;
  --on-primary: #ffffff;
  --glow:
    radial-gradient(60% 50% at 10% -10%, rgb(0 170 136 / 20%), transparent 70%),
    radial-gradient(60% 50% at 60% 110%, rgb(0 128 102 / 18%), transparent 70%);
  /* dot matrix */
  --pattern: radial-gradient(rgb(0 255 204 / 5%) 1px, transparent 1.6px);
  --pattern-size: 22px 22px;
  --mark-glow: none;
}

[data-skin="endeavouros"] {
  --c1: #3b1d63;
  --c2: #7f3fbf;
  --c3: #7f7fff;
  --c4: #ff7f7f;
  --bg: #0d0614;
  --bg-raised: #170c22;
  --surface: #170c22;
  --surface-2: #20132e;
  --surface-hover: #1e112b;
  --surface-sunken: #0d0614;
  --input-bg: #0d0614;
  --bar: #0d0614;
  --sidebar: #20132e;
  --selected: #2e1a4d;
  --accent: #a9a9ff;
  --link: #a9a9ff;
  --focus: #a9a9ff;
  --primary: #7f3fbf;
  --primary-hover: #8a4ccb;
  --primary-active: #9255d2;
  --on-primary: #ffffff;
  --glow:
    radial-gradient(65% 55% at 20% -10%, rgb(127 63 191 / 22%), transparent 70%),
    radial-gradient(60% 50% at 50% 115%, rgb(127 127 255 / 14%), transparent 70%);
  /* sunset stripes */
  --pattern: repeating-linear-gradient(115deg, rgb(255 127 127 / 2%) 0 2px, transparent 2px 26px);
  --mark-glow: none;
}

[data-skin="kde"] {
  --c1: #0b4f80;
  --c2: #1d99f3;
  --c3: #3daee9;
  --c4: #93cee9;
  --bg: #1b1e20;
  --bg-raised: #232629;
  --surface: #232629;
  --surface-2: #272a2e;
  --surface-hover: #292c30;
  --surface-sunken: #1b1e20;
  --input-bg: #1b1e20;
  --bar: #1b1e20;
  --sidebar: #272a2e;
  --selected: #1d3a52;
  /* Breeze greys: the hairlines of the dark base vanish on these surfaces */
  --border: #383c41;
  --border-strong: #4a4f55;
  --control-border: #737d89;
  --accent: #3daee9;
  --link: #3daee9;
  --focus: #3daee9;
  --primary: #1574c4;
  --primary-hover: #1777c6;
  --primary-active: #1878c7;
  --on-primary: #ffffff;
  /* Breeze: calm and flat */
  --glow: radial-gradient(60% 50% at 50% -15%, rgb(29 153 243 / 12%), transparent 70%);
  --pattern: none;
  --mark-glow: none;
}

[data-skin="kubuntu"] {
  --c1: #00307a;
  --c2: #0064ff;
  --c3: #4d94ff;
  --c4: #a6c8ff;
  --bg: #050b18;
  --bg-raised: #0b1630;
  --surface: #0b1630;
  --surface-2: #111e3c;
  --surface-hover: #101c39;
  --surface-sunken: #050b18;
  --input-bg: #050b18;
  --bar: #050b18;
  --sidebar: #111e3c;
  --selected: #102c5c;
  --accent: #6ea4ff;
  --link: #6ea4ff;
  --focus: #6ea4ff;
  --primary: #0064ff;
  --primary-hover: #0a6bff;
  --primary-active: #086aff;
  --on-primary: #ffffff;
  --glow:
    radial-gradient(70% 55% at 80% -10%, rgb(0 100 255 / 20%), transparent 70%),
    radial-gradient(55% 45% at 0% 110%, rgb(77 148 255 / 10%), transparent 70%);
  /* concentric rings, like the Kubuntu circle */
  --pattern: repeating-radial-gradient(circle at 100% 0%, rgb(166 200 255 / 2%) 0 1px, transparent 1px 42px);
  --mark-glow: none;
}

[data-skin="opensuse"] {
  --c1: #173f4f;
  --c2: #35b9ab;
  --c3: #73ba25;
  --c4: #c0e58b;
  --bg: #07130f;
  --bg-raised: #0d1f19;
  --surface: #0d1f19;
  --surface-2: #132a22;
  --surface-hover: #122720;
  --surface-sunken: #07130f;
  --input-bg: #07130f;
  --bar: #07130f;
  --sidebar: #132a22;
  --selected: #1b3a1c;
  --border: #22382f;
  --accent: #8fd14f;
  --link: #8fd14f;
  --focus: #8fd14f;
  /* light green with dark text */
  --primary: #73ba25;
  --primary-hover: #63a51f;
  --primary-active: #63a51f;
  --on-primary: #0b1a05;
  --glow:
    radial-gradient(60% 50% at 15% -10%, rgb(115 186 37 / 16%), transparent 70%),
    radial-gradient(60% 50% at 50% 115%, rgb(23 63 79 / 40%), transparent 70%);
  /* chameleon scales */
  --pattern:
    radial-gradient(circle at 50% 100%, transparent 9px, rgb(115 186 37 / 3%) 10px, transparent 11px);
  --pattern-size: 24px 14px;
  --mark-glow: none;
}

[data-skin="ubuntu"] {
  --c1: #5e2750;
  --c2: #e95420;
  --c3: #f47421;
  --c4: #ffb07a;
  --bg: #16020f;
  --bg-raised: #2c001e;
  --surface: #2c001e;
  --surface-2: #360a28;
  --surface-hover: #330826;
  --surface-sunken: #16020f;
  --input-bg: #16020f;
  --bar: #16020f;
  --sidebar: #360a28;
  --selected: #4a1236;
  --accent: #ff9a57;
  --link: #ff9a57;
  --focus: #ff9a57;
  --primary: #c2410c;
  --primary-hover: #cc4610;
  --primary-active: #ce4711;
  --on-primary: #ffffff;
  --glow:
    radial-gradient(65% 55% at 85% -10%, rgb(233 84 32 / 16%), transparent 70%),
    radial-gradient(60% 50% at 0% 100%, rgb(119 33 111 / 26%), transparent 70%);
  /* circle of friends: three dots on a grid */
  --pattern:
    radial-gradient(circle at 25% 30%, rgb(244 116 33 / 4%) 1.5px, transparent 2.5px),
    radial-gradient(circle at 75% 30%, rgb(244 116 33 / 4%) 1.5px, transparent 2.5px),
    radial-gradient(circle at 50% 75%, rgb(244 116 33 / 4%) 1.5px, transparent 2.5px);
  --pattern-size: 36px 36px;
  --mark-glow: none;
}

/* ===========================================================================
   Fonts
   =========================================================================== */

/* Fonts (SIL Open Font License, shared/fonts/OFL-*.txt): Montserrat for the
   wordmark and page titles only; text uses the system UI face. Oswald is
   declared but unused, so browsers never download it. Variable fonts, Latin
   + Latin Extended (names such as "Uścinowicz"). */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/static/shared/fonts/montserrat-latin-ext-wght-normal.woff2) format('woff2-variations');
  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: 'Montserrat';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/static/shared/fonts/montserrat-latin-wght-normal.woff2) format('woff2-variations');
  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: 'Oswald';
  font-style: normal;
  font-display: swap;
  font-weight: 200 700;
  src: url(/static/shared/fonts/oswald-latin-ext-wght-normal.woff2) format('woff2-variations');
  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: 'Oswald';
  font-style: normal;
  font-display: swap;
  font-weight: 200 700;
  src: url(/static/shared/fonts/oswald-latin-wght-normal.woff2) format('woff2-variations');
  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;
}


/* Design tokens shared by the web UI and the desktop app. */
:root {
  /* spacing scale – margins, gaps and paddings use these steps */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  /* radii: chips and letter boxes, controls, panels, dialogs */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 10px;
  /* density: body text, table rows, tree rows, controls, the top bar.
     The web UI uses these defaults, the desktop app the compact set below. */
  --fs-body: 14px;
  --lh-body: 20px;
  --row-h: 32px;
  --row-h-dense: 28px;
  --tree-row-h: 24px;
  --ctl-h: 32px;
  --ctl-h-sm: 28px;
  --ctl-h-xs: 24px;
  --topbar-h: 48px;
  /* motion: strong ease-out for presses and entrances, short durations */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --dur-press: 100ms;
  --dur-enter: 140ms;
  --sans: system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", "Noto Sans", Cantarell, Ubuntu, "Helvetica Neue", arial, sans-serif;
  /* page titles and the wordmark only */
  --display: 'Montserrat', var(--sans);
  --mono: ui-monospace, 'SF Mono', 'Cascadia Code', 'JetBrains Mono', consolas, monospace;
}

/* Compact density (the desktop app sets data-density="compact" on <html>):
   smaller body text, shorter rows and controls. */
:root[data-density="compact"] {
  --fs-body: 13px;
  --lh-body: 18px;
  --row-h: 28px;
  --ctl-h: 28px;
  --ctl-h-sm: 24px;
}
