/* Structure — the Kwapso design language.
 * GENERATED FILE. Do not edit by hand: edit tokens/tokens.json and run
 * `npm run build:tokens`. Source of truth measured from https://kwapso.com.
 * SINGLE-FILE BUNDLE: dist/tokens.css + css/base.css + css/components.css, in load order.
 */
/* Structure — the Kwapso design language.
 * GENERATED FILE. Do not edit by hand: edit tokens/tokens.json and run
 * `npm run build:tokens`. Source of truth measured from https://kwapso.com.
 * 
 */
:root {
  /* ---- brand primitives ---- */
  --st-color-ink: #191817;
  --st-color-paper: #fffdf8;
  --st-color-sand: #f7f2eb;
  --st-color-mango: #ffd066;
  --st-color-sky: #89bce5;
  --st-color-forest: #1d9159;
  --st-color-poppy: #ea4832;
  --st-color-grey: #bab8b4;
  --st-color-ink-10: rgba(25, 24, 23, 0.10);
  --st-color-ink-15: rgba(25, 24, 23, 0.15);
  --st-color-ink-30: rgba(25, 24, 23, 0.30);
  --st-color-ink-50: rgba(25, 24, 23, 0.50);
  --st-color-ink-65: rgba(25, 24, 23, 0.65);
  --st-color-mango-deep: #e8b244;
  --st-color-sky-deep: #6489a7;

  /* ---- semantic (light) ---- */
  --st-background: #fffdf8;
  --st-foreground: #191817;
  --st-surface: #f7f2eb;
  --st-surface-foreground: #191817;
  --st-raised: #fffdf8;
  --st-muted: rgba(25, 24, 23, 0.65);
  --st-accent: #ffd066;
  --st-accent-hover: #e8b244;
  --st-accent-foreground: #191817;
  --st-border: rgba(25, 24, 23, 0.15);
  --st-border-control: rgba(25, 24, 23, 0.50);
  --st-divider: rgba(25, 24, 23, 0.10);
  --st-ring: rgba(25, 24, 23, 0.50);
  --st-placeholder: rgba(25, 24, 23, 0.50);
  --st-chart-stroke: rgba(25, 24, 23, 0.65);
  --st-disabled: #bab8b4;
  --st-info: #6489a7;
  --st-success: #1d9159;
  --st-danger: #ea4832;
  --st-warning: #e8b244;

  /* ---- chart series ---- */
  --st-chart-1: #ffd066;
  --st-chart-2: #89bce5;
  --st-chart-3: #1d9159;
  --st-chart-4: #ea4832;
  --st-chart-5: #bab8b4;
  --st-chart-6: #e8b244;
  --st-chart-stroke-width: 1px;

  /* ---- type ---- */
  --st-font-display: "Serrif Condensed", "Serrifcondensed", "Playfair Display", "Times New Roman", serif;
  --st-font-sans: "Saans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --st-font-mono: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --st-weight-light: 300;
  --st-weight-medium: 500;
  --st-text-2xs: 0.675rem;
  --st-leading-2xs: 1.1;
  --st-text-xs: 0.75rem;
  --st-leading-xs: 1.5;
  --st-text-sm: 0.9rem;
  --st-leading-sm: 1.5;
  --st-text-base: 1rem;
  --st-leading-base: 1.5;
  --st-text-md: 1.125rem;
  --st-leading-md: 1.5;
  --st-text-lg: 1.25rem;
  --st-leading-lg: 1.5;
  --st-text-xl: 1.8rem;
  --st-leading-xl: 1.2;
  --st-text-2xl: 2.925rem;
  --st-leading-2xl: 1.0;
  --st-text-3xl: 4.77rem;
  --st-leading-3xl: 1.05;
  --st-text-4xl: 6.75rem;
  --st-leading-4xl: 0.8;
  --st-tracking-normal: 0;
  --st-tracking-wide: 0.5px;
  --st-tracking-wider: 1px;

  /* ---- space ---- */
  --st-space-0: 0;
  --st-space-xs: 5px;
  --st-space-s: 10px;
  --st-space-base: 20px;
  --st-space-m: 40px;
  --st-space-l: 60px;
  --st-space-xl: 80px;
  --st-space-2xl: 100px;
  --st-space-section: 150px;

  /* ---- form ---- */
  --st-radius-none: 0;
  --st-radius-surface: 10px;
  --st-radius-pill: 50px;
  --st-radius-circle: 50%;
  --st-border-hairline: 1px;
  --st-border-accent: 2px;
  --st-elevation-flat: none;
  --st-elevation-escape-hatch: 0 4px 16px rgba(25, 24, 23, 0.08);
  --st-scrim: rgba(25, 24, 23, 0.55);

  /* ---- motion ---- */
  --st-motion-ease: cubic-bezier(0.645, 0.045, 0.355, 1);
  --st-motion-ease-entrance: cubic-bezier(0.16, 1, 0.3, 1);
  --st-motion-stagger: 45ms;
  --st-motion-stagger-max: 8;
  --st-motion-rise: 10px;
  --st-motion-press: 0.97;
  --st-motion-fast: 120ms;
  --st-motion-base: 200ms;
  --st-motion-slow: 400ms;
  --st-motion-reveal: 360ms;
  --st-motion-max-allowed: 400ms;

  /* ---- layout ---- */
  --st-layout-measure: 950px;
  --st-layout-frame: 1920px;
  --st-layout-gutter: 20px;
  --st-layout-gutter-wide: 60px;
  --st-control-height: 44px;
  --st-control-height-sm: 36px;
  --st-control-height-lg: 52px;
  --st-control-padding-x: 24px;
  --st-control-min-touch: 44px;
  --st-z-base: 0;
  --st-z-sticky: 100;
  --st-z-overlay: 200;
  --st-z-modal: 300;
  --st-z-toast: 400;

  /* ---- density: comfortable is the default ---- */
  --st-density-body: [object Object];
  --st-density-section-y: 100px;
  --st-density-block-y: 60px;
  --st-density-stack: 20px;
  --st-density-control-h: 44px;
  --st-density-control-px: 24px;
}

/* Density is a cognitive-load control, not a style. See COGNITIVE-LOAD.md. */
[data-density="compact"] {
  --st-density-body: [object Object];
  --st-density-section-y: 40px;
  --st-density-block-y: 20px;
  --st-density-stack: 10px;
  --st-density-control-h: 36px;
  --st-density-control-px: 16px;
}
[data-density="comfortable"] {
  --st-density-body: [object Object];
  --st-density-section-y: 100px;
  --st-density-block-y: 60px;
  --st-density-stack: 20px;
  --st-density-control-h: 44px;
  --st-density-control-px: 24px;
}

/* Dark. Explicit [data-theme] wins over the system preference in both directions. */
[data-theme="dark"] {
  --st-background: #191817;
  --st-foreground: #fffdf8;
  --st-surface: #232120;
  --st-surface-foreground: #fffdf8;
  --st-raised: #2c2a28;
  --st-muted: rgba(255, 253, 248, 0.60);
  --st-accent: #ffd066;
  --st-accent-hover: #ffdd8a;
  --st-accent-foreground: #191817;
  --st-border: rgba(255, 253, 248, 0.15);
  --st-border-control: rgba(255, 253, 248, 0.45);
  --st-divider: rgba(255, 253, 248, 0.10);
  --st-ring: rgba(255, 253, 248, 0.45);
  --st-placeholder: rgba(255, 253, 248, 0.40);
  --st-chart-stroke: rgba(255, 253, 248, 0.55);
  --st-disabled: rgba(255, 253, 248, 0.35);
  --st-info: #89bce5;
  --st-success: #2eb673;
  --st-danger: #f26350;
  --st-warning: #e8b244;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --st-background: #191817;
    --st-foreground: #fffdf8;
    --st-surface: #232120;
    --st-surface-foreground: #fffdf8;
    --st-raised: #2c2a28;
    --st-muted: rgba(255, 253, 248, 0.60);
    --st-accent: #ffd066;
    --st-accent-hover: #ffdd8a;
    --st-accent-foreground: #191817;
    --st-border: rgba(255, 253, 248, 0.15);
    --st-border-control: rgba(255, 253, 248, 0.45);
    --st-divider: rgba(255, 253, 248, 0.10);
    --st-ring: rgba(255, 253, 248, 0.45);
    --st-placeholder: rgba(255, 253, 248, 0.40);
    --st-chart-stroke: rgba(255, 253, 248, 0.55);
    --st-disabled: rgba(255, 253, 248, 0.35);
    --st-info: #89bce5;
    --st-success: #2eb673;
    --st-danger: #f26350;
    --st-warning: #e8b244;
  }
}

/* Inverted band — re-scopes semantics, so children need no special casing. */
.st-invert {
  --st-background: #191817;
  --st-foreground: #fffdf8;
  --st-surface: #232120;
  --st-surface-foreground: #fffdf8;
  --st-raised: #2c2a28;
  --st-muted: rgba(255, 253, 248, 0.60);
  --st-accent: #ffd066;
  --st-accent-hover: #ffdd8a;
  --st-accent-foreground: #191817;
  --st-border: rgba(255, 253, 248, 0.15);
  --st-border-control: rgba(255, 253, 248, 0.45);
  --st-divider: rgba(255, 253, 248, 0.10);
  --st-ring: rgba(255, 253, 248, 0.45);
  --st-placeholder: rgba(255, 253, 248, 0.40);
  --st-chart-stroke: rgba(255, 253, 248, 0.55);
  --st-disabled: rgba(255, 253, 248, 0.35);
  --st-info: #89bce5;
  --st-success: #2eb673;
  --st-danger: #f26350;
  --st-warning: #e8b244;
  color: var(--st-foreground);
  background-color: var(--st-background);
}
[data-theme="dark"] .st-invert {
  --st-background: #fffdf8;
  --st-foreground: #191817;
  --st-surface: #f7f2eb;
  --st-surface-foreground: #191817;
  --st-raised: #fffdf8;
  --st-muted: rgba(25, 24, 23, 0.65);
  --st-accent: #ffd066;
  --st-accent-hover: #e8b244;
  --st-accent-foreground: #191817;
  --st-border: rgba(25, 24, 23, 0.15);
  --st-border-control: rgba(25, 24, 23, 0.50);
  --st-divider: rgba(25, 24, 23, 0.10);
  --st-ring: rgba(25, 24, 23, 0.50);
  --st-placeholder: rgba(25, 24, 23, 0.50);
  --st-chart-stroke: rgba(25, 24, 23, 0.65);
  --st-disabled: #bab8b4;
  --st-info: #6489a7;
  --st-success: #1d9159;
  --st-danger: #ea4832;
  --st-warning: #e8b244;
  color: var(--st-foreground);
  background-color: var(--st-background);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .st-invert {
    --st-background: #fffdf8;
    --st-foreground: #191817;
    --st-surface: #f7f2eb;
    --st-surface-foreground: #191817;
    --st-raised: #fffdf8;
    --st-muted: rgba(25, 24, 23, 0.65);
    --st-accent: #ffd066;
    --st-accent-hover: #e8b244;
    --st-accent-foreground: #191817;
    --st-border: rgba(25, 24, 23, 0.15);
    --st-border-control: rgba(25, 24, 23, 0.50);
    --st-divider: rgba(25, 24, 23, 0.10);
    --st-ring: rgba(25, 24, 23, 0.50);
    --st-placeholder: rgba(25, 24, 23, 0.50);
    --st-chart-stroke: rgba(25, 24, 23, 0.65);
    --st-disabled: #bab8b4;
    --st-info: #6489a7;
    --st-success: #1d9159;
    --st-danger: #ea4832;
    --st-warning: #e8b244;
  }
}


/* Structure — base layer.
 *
 * THE RESKIN. This file styles plain semantic HTML, so an existing app can
 * adopt the language without changing a single line of markup: link this
 * file, and <h1>, <p>, <button>, <input>, <table> already speak Structure.
 *
 * It defines no class names except the escape hatches at the bottom. Every
 * value resolves to a token — there is not one literal colour or size below.
 *
 * Load order:  tokens.css  ->  base.css  ->  components.css
 * structure-definitions — this file DEFINES the vocabulary; view budgets do not apply.
 */

/* ---------------------------------------------------------------- reset */
/* Minimal, and only where a default actively fights the language. */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  /* No screen scrolls sideways. Designated scrollers opt in per component. */
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--st-background);
  color: var(--st-foreground);
  font-family: var(--st-font-sans);
  font-size: var(--st-density-body, var(--st-text-sm));
  font-weight: var(--st-weight-light);
  line-height: var(--st-leading-sm);
  /* Warm paper deserves proper rendering; the light weight needs it most. */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100svh;
}

/* A page with content that fits must not move. Sign-in, empty states and
 * confirmations sit perfectly still — including the mobile rubber-band. */
html, body { overscroll-behavior: none; }

img, svg, video, canvas, picture { display: block; max-width: 100%; height: auto; }
svg { fill: none; stroke: currentColor; }

/* ------------------------------------------------------------- headings */
/* Sans, weight 500, POSITIVE tracking. The positive tracking is measured and
 * deliberate — it is the opposite of the tight-tracking default, and it is a
 * large part of why the brand reads as calm rather than urgent. */

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--st-font-sans);
  font-weight: var(--st-weight-medium);
  letter-spacing: var(--st-tracking-wide);
  color: var(--st-foreground);
  text-wrap: balance;
}

h1 { font-size: var(--st-text-2xl);  line-height: var(--st-leading-2xl); }
h2 { font-size: var(--st-text-xl);   line-height: var(--st-leading-xl); }
h3 { font-size: var(--st-text-lg);   line-height: var(--st-leading-lg); }
h4 { font-size: var(--st-text-md);   line-height: var(--st-leading-md); }
h5 { font-size: var(--st-text-base); line-height: var(--st-leading-base); }
h6 { font-size: var(--st-text-sm);   line-height: var(--st-leading-sm); }

/* ------------------------------------------------------------ body copy */

p, ul, ol, dl, blockquote, pre, figure, table { margin: 0 0 var(--st-space-base); }
:where(p, ul, ol, dl, blockquote, pre, figure, table):last-child { margin-bottom: 0; }

p { max-width: 68ch; text-wrap: pretty; }

small { font-size: var(--st-text-xs); color: var(--st-muted); }
strong, b { font-weight: var(--st-weight-medium); }
em, i { font-style: italic; }

/* Links carry an ink underline, never the accent colour. Mango means "next
 * action" and a body link is not that — colouring links mango would spend the
 * accent budget on prose. */
a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--st-border-control);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
  transition: text-decoration-color var(--st-motion-base) var(--st-motion-ease);
}
a:hover { text-decoration-color: currentColor; }

blockquote {
  padding-left: var(--st-space-base);
  border-left: var(--st-border-accent) solid var(--st-accent);
  font-family: var(--st-font-display);
  font-size: var(--st-text-md);
  font-weight: var(--st-weight-light);
}

hr {
  height: 0;
  margin: var(--st-space-m) 0;
  border: 0;
  border-top: var(--st-border-hairline) solid var(--st-divider);
}

ul, ol { padding-left: var(--st-space-base); }
li { margin-bottom: var(--st-space-xs); }
li::marker { color: var(--st-muted); }

code, kbd, samp, pre { font-family: var(--st-font-mono); font-size: 0.9em; }
code {
  padding: 0.1em 0.35em;
  background: var(--st-surface);
  border-radius: var(--st-radius-surface);
}
pre {
  padding: var(--st-space-base);
  overflow-x: auto;
  background: var(--st-surface);
  border-radius: var(--st-radius-surface);
}
pre code { padding: 0; background: none; }

kbd {
  padding: 0.15em 0.45em;
  font-size: var(--st-text-xs);
  background: var(--st-surface);
  border: var(--st-border-hairline) solid var(--st-border-control);
  border-radius: calc(var(--st-radius-surface) / 2);
}

/* ---------------------------------------------------------------- media */

figure { margin-inline: 0; }
figcaption {
  margin-top: var(--st-space-s);
  font-size: var(--st-text-xs);
  color: var(--st-muted);
}

/* ---------------------------------------------------------------- table */

table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--st-text-sm);
}
caption {
  margin-bottom: var(--st-space-s);
  font-size: var(--st-text-xs);
  color: var(--st-muted);
  text-align: left;
}
th {
  font-weight: var(--st-weight-medium);
  letter-spacing: var(--st-tracking-wide);
  text-align: left;
}
th, td {
  padding: var(--st-space-s) var(--st-space-base);
  border-bottom: var(--st-border-hairline) solid var(--st-divider);
}
thead th { border-bottom-color: var(--st-border-control); }
tbody tr:last-child td { border-bottom: 0; }

/* -------------------------------------------------------------- buttons */
/* Bare <button> gets the accent treatment, because in unstyled markup a
 * button is nearly always the primary action. Anything secondary should say
 * so with .st-btn--outline / --ghost from components.css. */

button, [type="button"], [type="submit"], [type="reset"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--st-space-s);
  min-height: var(--st-density-control-h, var(--st-control-height));
  padding-inline: var(--st-density-control-px, var(--st-control-padding-x));
  font-family: inherit;
  font-size: var(--st-text-sm);
  font-weight: var(--st-weight-medium);
  line-height: 1;
  color: var(--st-accent-foreground);
  background-color: var(--st-accent);
  border: var(--st-border-accent) solid transparent;
  border-radius: var(--st-radius-pill);
  cursor: pointer;
  transition:
    background-color var(--st-motion-base) var(--st-motion-ease),
    border-color var(--st-motion-base) var(--st-motion-ease),
    color var(--st-motion-base) var(--st-motion-ease),
    opacity var(--st-motion-base) var(--st-motion-ease);
}
button:hover, [type="button"]:hover, [type="submit"]:hover { background-color: var(--st-accent-hover); }
button:disabled, [type="button"]:disabled, [type="submit"]:disabled {
  background-color: var(--st-disabled);
  cursor: not-allowed;
  opacity: 0.7;
}

/* --------------------------------------------------------------- inputs */

input, textarea, select {
  width: 100%;
  min-height: var(--st-density-control-h, var(--st-control-height));
  padding: var(--st-space-s) var(--st-space-base);
  font-family: inherit;
  font-size: var(--st-text-sm);
  font-weight: var(--st-weight-light);
  color: var(--st-foreground);
  background-color: var(--st-background);
  /* border-control, NOT the decorative hairline: this edge is the only thing
   * telling a user where the field is, so it must clear 3:1. */
  border: var(--st-border-hairline) solid var(--st-border-control);
  border-radius: var(--st-radius-surface);
  transition:
    border-color var(--st-motion-base) var(--st-motion-ease),
    box-shadow var(--st-motion-base) var(--st-motion-ease);
}
textarea { min-height: calc(var(--st-control-height) * 2); resize: vertical; }

input::placeholder, textarea::placeholder {
  color: var(--st-placeholder);
  /* Never shear a letter: an overflowing placeholder ellipsises. */
  text-overflow: ellipsis;
}

input:disabled, textarea:disabled, select:disabled {
  background-color: var(--st-surface);
  color: var(--st-muted);
  cursor: not-allowed;
}

input[type="checkbox"], input[type="radio"] {
  width: var(--st-space-base);
  min-height: 0;
  height: var(--st-space-base);
  padding: 0;
  accent-color: var(--st-accent);
  cursor: pointer;
}
input[type="radio"] { border-radius: var(--st-radius-circle); }

input[type="range"] { padding: 0; border: 0; accent-color: var(--st-accent); }
input[type="file"] { padding: var(--st-space-s); }

select {
  /* Chevron drawn in ink so it inherits the theme; no image request. */
  appearance: none;
  padding-right: var(--st-space-m);
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 22px) calc(50% + 2px), calc(100% - 16px) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

label {
  display: inline-block;
  margin-bottom: var(--st-space-xs);
  font-size: var(--st-text-xs);
  font-weight: var(--st-weight-medium);
  letter-spacing: var(--st-tracking-wide);
}

fieldset {
  margin: 0 0 var(--st-space-base);
  padding: var(--st-space-base);
  border: var(--st-border-hairline) solid var(--st-border);
  border-radius: var(--st-radius-surface);
}
legend { padding-inline: var(--st-space-xs); font-weight: var(--st-weight-medium); }

/* ------------------------------------------------------------ disclosure */

details {
  border-bottom: var(--st-border-hairline) solid var(--st-divider);
}
summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--st-space-base);
  min-height: var(--st-control-min-touch);
  padding: var(--st-space-s) 0;
  font-weight: var(--st-weight-medium);
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "";
  flex: none;
  width: 8px; height: 8px;
  border-right: var(--st-border-hairline) solid currentColor;
  border-bottom: var(--st-border-hairline) solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform var(--st-motion-base) var(--st-motion-ease);
}
details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
details > :not(summary) { padding-bottom: var(--st-space-base); }

/* ----------------------------------------------------------------- focus */
/* One focus treatment for the entire language. Never removed, never mango:
 * a focus ring is not an accent, and it must survive on top of a mango
 * button — where a mango ring would be invisible. */

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--st-ring);
  outline-offset: 2px;
  border-radius: var(--st-radius-surface);
}
/* Pill controls get a pill-shaped ring rather than a rectangle around them. */
button:focus-visible,
[type="button"]:focus-visible,
[type="submit"]:focus-visible { border-radius: var(--st-radius-pill); }

::selection { background: var(--st-accent); color: var(--st-accent-foreground); }

/* ---------------------------------------------------------------- misc */

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--st-border-control);
  border-radius: var(--st-radius-pill);
}

[hidden] { display: none !important; }

/* Screen-reader-only, and the skip link that uses it. */
.st-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.st-skip-link {
  position: absolute;
  top: var(--st-space-s);
  left: var(--st-space-s);
  z-index: var(--st-z-toast);
  padding: var(--st-space-s) var(--st-space-base);
  background: var(--st-accent);
  color: var(--st-accent-foreground);
  border-radius: var(--st-radius-pill);
  transform: translateY(-200%);
  transition: transform var(--st-motion-base) var(--st-motion-ease);
}
.st-skip-link:focus-visible { transform: translateY(0); }

/* ------------------------------------------------------- reduced motion */
/* Not a courtesy. Motion in this language is functional only, so removing it
 * costs nothing and honouring the preference is unconditional. */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------- print */

@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; }
  button, [type="button"], .st-no-print { display: none !important; }
}


/* Structure — component layer.
 *
 * Framework-free component classes, prefixed `st-`. Usable from plain HTML,
 * Webflow, Rails, Django, PHP, Vue, Svelte — anything that can set a class.
 * The React package in /react renders exactly these class names, so the two
 * surfaces can never drift: there is one implementation, not two.
 *
 * Every value resolves to a token. No literal colours or sizes below.
 * structure-definitions — this file DEFINES the vocabulary; view budgets do not apply.
 */

/* ======================================================================
 * LAYOUT
 * ==================================================================== */

/* The reading column. 950px measured off the live site. */
.st-container {
  width: 100%;
  max-width: var(--st-layout-measure);
  margin-inline: auto;
  padding-inline: var(--st-layout-gutter);
}
.st-container--wide { max-width: var(--st-layout-frame); padding-inline: var(--st-layout-gutter-wide); }
.st-container--full { max-width: none; }

/* Vertical section rhythm — the single biggest carrier of "considered". */
.st-section { padding-block: var(--st-density-section-y, var(--st-space-2xl)); }
.st-section--tight { padding-block: var(--st-space-m); }
.st-section--loose { padding-block: var(--st-space-section); }

/* Stack: one-direction flow with a single gap. The workhorse. */
.st-stack { display: flex; flex-direction: column; gap: var(--st-density-stack, var(--st-space-base)); }
.st-stack--xs { gap: var(--st-space-xs); }
.st-stack--s  { gap: var(--st-space-s); }
.st-stack--m  { gap: var(--st-space-m); }
.st-stack--l  { gap: var(--st-space-l); }

/* Cluster: horizontal group that wraps instead of overflowing. */
.st-cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--st-space-s); }
.st-cluster--between { justify-content: space-between; }
.st-cluster--end { justify-content: flex-end; }
.st-cluster--center { justify-content: center; }

/* Grid: responsive without media queries — columns collapse on their own. */
.st-grid {
  display: grid;
  gap: var(--st-space-base);
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}
.st-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }
.st-grid--fixed-2 { grid-template-columns: 1fr 1fr; }
.st-grid--fixed-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) {
  .st-grid--fixed-2, .st-grid--fixed-3 { grid-template-columns: 1fr; }
}

.st-divider { height: 0; border: 0; border-top: var(--st-border-hairline) solid var(--st-divider); }
.st-spacer { flex: 1 1 auto; }

/* A designated horizontal scroller. The ONLY sanctioned way to overflow
 * sideways — it is contained, so it can never widen the page. */
.st-scroll-x { overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.st-scroll-x::-webkit-scrollbar { height: 6px; }
.st-no-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }
.st-no-scrollbar::-webkit-scrollbar { display: none; }

/* ======================================================================
 * TYPOGRAPHY
 * ==================================================================== */

/* The display face. Serif, weight 300, NEGATIVE leading. This is the single
 * most recognisable thing in the language — a 108px headline set at 0.8
 * line-height. It is for statements, never for UI. */
.st-display {
  font-family: var(--st-font-display);
  font-weight: var(--st-weight-light);
  font-size: var(--st-text-4xl);
  line-height: var(--st-leading-4xl);
  letter-spacing: var(--st-tracking-normal);
  text-wrap: balance;
}
.st-display--sm { font-size: var(--st-text-3xl); line-height: var(--st-leading-3xl); }
.st-display--xs { font-size: var(--st-text-2xl); line-height: var(--st-leading-2xl); }

/* Display sizes are set for a wide viewport; they must come down on a phone
 * or a two-word headline eats the screen. */
@media (max-width: 900px) {
  .st-display    { font-size: var(--st-text-3xl); line-height: var(--st-leading-3xl); }
  .st-display--sm { font-size: var(--st-text-2xl); line-height: var(--st-leading-2xl); }
}
@media (max-width: 560px) {
  .st-display    { font-size: var(--st-text-2xl); line-height: var(--st-leading-2xl); }
  .st-display--sm,
  .st-display--xs { font-size: var(--st-text-xl); line-height: var(--st-leading-xl); }
}

.st-eyebrow {
  font-size: var(--st-text-xs);
  font-weight: var(--st-weight-medium);
  letter-spacing: var(--st-tracking-wider);
  text-transform: uppercase;
  color: var(--st-muted);
}

.st-lead { font-size: var(--st-text-md); line-height: var(--st-leading-md); color: var(--st-muted); max-width: 60ch; }
.st-muted { color: var(--st-muted); }
.st-caption { font-size: var(--st-text-xs); color: var(--st-muted); }
.st-numeric { font-variant-numeric: tabular-nums; }
.st-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.st-clamp-2, .st-clamp-3 {
  display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden;
}
.st-clamp-2 { -webkit-line-clamp: 2; line-clamp: 2; }
.st-clamp-3 { -webkit-line-clamp: 3; line-clamp: 3; }

/* ======================================================================
 * BUTTONS
 * Measured: 44px tall, 24px padding, pill radius, weight 500, 0.2s ease.
 * ==================================================================== */

.st-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--st-space-s);
  min-height: var(--st-density-control-h, var(--st-control-height));
  /* Never below the 44px touch target, even in compact density. */
  min-width: var(--st-control-min-touch);
  padding-inline: var(--st-density-control-px, var(--st-control-padding-x));
  font-family: var(--st-font-sans);
  font-size: var(--st-text-sm);
  font-weight: var(--st-weight-medium);
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  border: var(--st-border-accent) solid transparent;
  border-radius: var(--st-radius-pill);
  cursor: pointer;
  transition:
    background-color var(--st-motion-base) var(--st-motion-ease),
    border-color var(--st-motion-base) var(--st-motion-ease),
    color var(--st-motion-base) var(--st-motion-ease);
}

/* THE accent. One per view — the linter counts these. */
.st-btn--accent { background: var(--st-accent); color: var(--st-accent-foreground); }
.st-btn--accent:hover:not(:disabled) { background: var(--st-accent-hover); }

/* Secondary. The 2px mango outline measured on the live site. */
.st-btn--outline { background: transparent; color: var(--st-foreground); border-color: var(--st-accent); }
.st-btn--outline:hover:not(:disabled) { background: var(--st-accent); }

/* Tertiary. No chrome until hovered. */
.st-btn--ghost { background: transparent; color: var(--st-foreground); }
.st-btn--ghost:hover:not(:disabled) { background: var(--st-surface); }

/* Ink-filled, for a dark counterweight (the site's footer CTA). */
.st-btn--solid { background: var(--st-foreground); color: var(--st-background); }
.st-btn--solid:hover:not(:disabled) { opacity: 0.88; }

/* Destructive. Ink text on poppy would fail, so poppy carries white here and
 * the pairing is checked: #ea4832 vs #fffdf8 is 3.78:1 — large-text only, so
 * destructive buttons keep weight 500 at 14.4px or above. */
.st-btn--danger { background: var(--st-danger); color: var(--st-background); }
.st-btn--danger:hover:not(:disabled) { opacity: 0.9; }

.st-btn--sm { min-height: var(--st-control-height-sm); padding-inline: var(--st-space-base); font-size: var(--st-text-xs); }
.st-btn--lg { min-height: var(--st-control-height-lg); padding-inline: var(--st-space-m); font-size: var(--st-text-base); }
.st-btn--block { display: flex; width: 100%; }

.st-btn:disabled, .st-btn[aria-disabled="true"] {
  background: var(--st-disabled);
  border-color: transparent;
  color: var(--st-background);
  cursor: not-allowed;
}

.st-btn--icon { padding-inline: 0; width: var(--st-density-control-h, var(--st-control-height)); }
.st-btn--icon.st-btn--sm { width: var(--st-control-height-sm); }

/* Circular floating action — the forest scroll-to-top on the live site. */
.st-fab {
  position: fixed;
  right: var(--st-space-base);
  bottom: var(--st-space-base);
  z-index: var(--st-z-sticky);
  display: grid;
  place-items: center;
  width: var(--st-control-height);
  height: var(--st-control-height);
  background: var(--st-success);
  color: var(--st-background);
  border: 0;
  border-radius: var(--st-radius-circle);
  cursor: pointer;
}

.st-btn-group { display: inline-flex; gap: var(--st-space-s); flex-wrap: wrap; }

/* A loading button reserves its own width so the layout cannot jump. */
.st-btn[data-loading="true"] { color: transparent; position: relative; pointer-events: none; }
.st-btn[data-loading="true"]::after {
  content: "";
  position: absolute;
  width: 1em; height: 1em;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: var(--st-radius-circle);
  color: var(--st-accent-foreground);
  animation: st-spin 600ms linear infinite;
}
@keyframes st-spin { to { transform: rotate(360deg); } }

/* ======================================================================
 * FORMS
 * ==================================================================== */

.st-field { display: flex; flex-direction: column; gap: var(--st-space-xs); }
.st-field__label { font-size: var(--st-text-xs); font-weight: var(--st-weight-medium); letter-spacing: var(--st-tracking-wide); }
/* The asterisk is never the only signal — it pairs with the word "required"
 * for screen readers via aria-required on the control itself. */
.st-field__label[data-required]::after { content: " *"; color: var(--st-danger); }
.st-field__hint { font-size: var(--st-text-xs); color: var(--st-muted); }
.st-field__error { font-size: var(--st-text-xs); color: var(--st-danger); display: flex; gap: var(--st-space-xs); align-items: center; }
.st-field[data-invalid="true"] .st-input,
.st-input[aria-invalid="true"] { border-color: var(--st-danger); }

.st-input {
  width: 100%;
  min-height: var(--st-density-control-h, var(--st-control-height));
  padding: var(--st-space-s) var(--st-space-base);
  font-family: var(--st-font-sans);
  font-size: var(--st-text-sm);
  font-weight: var(--st-weight-light);
  color: var(--st-foreground);
  background: var(--st-background);
  border: var(--st-border-hairline) solid var(--st-border-control);
  border-radius: var(--st-radius-surface);
  transition: border-color var(--st-motion-base) var(--st-motion-ease);
}
.st-input:hover:not(:disabled) { border-color: var(--st-foreground); }

/* Search field with a leading glyph slot. */
.st-search { position: relative; }
.st-search .st-input { padding-left: var(--st-space-m); }
.st-search__icon { position: absolute; left: var(--st-space-s); top: 50%; transform: translateY(-50%); color: var(--st-muted); pointer-events: none; }

/* Switch. Ink track when off, mango when on — the accent means "active". */
.st-switch { display: inline-flex; align-items: center; gap: var(--st-space-s); cursor: pointer; }
.st-switch__control {
  position: relative;
  flex: none;
  width: 44px; height: 24px;
  background: var(--st-border-control);
  border-radius: var(--st-radius-pill);
  transition: background-color var(--st-motion-base) var(--st-motion-ease);
}
.st-switch__control::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  background: var(--st-background);
  border-radius: var(--st-radius-circle);
  transition: transform var(--st-motion-base) var(--st-motion-ease);
}
.st-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.st-switch input:checked + .st-switch__control { background: var(--st-accent); }
.st-switch input:checked + .st-switch__control::after { transform: translateX(20px); }
.st-switch input:focus-visible + .st-switch__control { outline: 2px solid var(--st-ring); outline-offset: 2px; }

/* Choice card — a radio or checkbox with a whole tappable surface. Reduces
 * cognitive load over a bare radio: the target is the statement, not a dot. */
.st-choice {
  display: flex;
  align-items: flex-start;
  gap: var(--st-space-s);
  padding: var(--st-space-base);
  background: var(--st-surface);
  border: var(--st-border-accent) solid transparent;
  border-radius: var(--st-radius-surface);
  cursor: pointer;
  transition: border-color var(--st-motion-base) var(--st-motion-ease);
}
.st-choice:hover { border-color: var(--st-border-control); }
.st-choice[data-selected="true"] { border-color: var(--st-accent); }
.st-choice__title { font-weight: var(--st-weight-medium); }
.st-choice__desc { font-size: var(--st-text-xs); color: var(--st-muted); }

/* Likert / scale row — the scorecard's core interaction. */
.st-scale { display: flex; gap: var(--st-space-xs); }
.st-scale__item {
  flex: 1;
  min-height: var(--st-control-min-touch);
  padding: var(--st-space-s);
  font-size: var(--st-text-sm);
  background: var(--st-surface);
  border: var(--st-border-accent) solid transparent;
  border-radius: var(--st-radius-surface);
  cursor: pointer;
  transition: border-color var(--st-motion-base) var(--st-motion-ease);
}
.st-scale__item[aria-pressed="true"], .st-scale__item[data-selected="true"] { border-color: var(--st-accent); }

/* ======================================================================
 * SURFACES
 * ==================================================================== */

/* A card is sand on paper. That colour step IS the elevation — there is no
 * shadow, and adding one is the single most common way to break the look. */
.st-card {
  padding: var(--st-space-base);
  background: var(--st-surface);
  border-radius: var(--st-radius-surface);
}
.st-card--outline { background: transparent; border: var(--st-border-hairline) solid var(--st-border); }
.st-card--accent { background: var(--st-accent); color: var(--st-accent-foreground); }
.st-card--flush { padding: 0; overflow: hidden; }
.st-card--interactive { cursor: pointer; transition: background-color var(--st-motion-base) var(--st-motion-ease); }
.st-card--interactive:hover { background: var(--st-raised); outline: var(--st-border-hairline) solid var(--st-border-control); }

.st-card__header { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--st-space-base); margin-bottom: var(--st-space-s); }
.st-card__title { font-size: var(--st-text-md); font-weight: var(--st-weight-medium); }
.st-card__footer { margin-top: var(--st-space-base); padding-top: var(--st-space-s); border-top: var(--st-border-hairline) solid var(--st-divider); }

/* List row — the sand-filled rows measured on the live services list. */
.st-row {
  display: flex;
  align-items: center;
  gap: var(--st-space-base);
  min-height: var(--st-control-min-touch);
  padding: var(--st-space-base);
  background: var(--st-surface);
  border-radius: var(--st-radius-surface);
}
.st-row--plain { background: transparent; border-bottom: var(--st-border-hairline) solid var(--st-divider); border-radius: 0; }

/* Stat tile. */
.st-stat { display: flex; flex-direction: column; gap: var(--st-space-xs); }
.st-stat__value { font-family: var(--st-font-display); font-size: var(--st-text-2xl); line-height: var(--st-leading-2xl); font-weight: var(--st-weight-light); font-variant-numeric: tabular-nums; }
.st-stat__label { font-size: var(--st-text-xs); color: var(--st-muted); letter-spacing: var(--st-tracking-wide); }
.st-stat__delta { font-size: var(--st-text-xs); font-weight: var(--st-weight-medium); }
.st-stat__delta[data-dir="up"] { color: var(--st-success); }
.st-stat__delta[data-dir="down"] { color: var(--st-danger); }

/* ======================================================================
 * MARKS — badge, chip, tag, dot, avatar
 * Marks are never section backgrounds. They are small by definition.
 * ==================================================================== */

.st-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--st-space-xs);
  padding: 2px var(--st-space-s);
  font-size: var(--st-text-xs);
  font-weight: var(--st-weight-medium);
  line-height: 1.6;
  background: var(--st-surface);
  color: var(--st-foreground);
  border-radius: var(--st-radius-pill);
  white-space: nowrap;
}
.st-badge--accent  { background: var(--st-accent); color: var(--st-accent-foreground); }
.st-badge--info    { background: var(--st-info);    color: var(--st-background); }
.st-badge--success { background: var(--st-success); color: var(--st-background); }
.st-badge--danger  { background: var(--st-danger);  color: var(--st-background); }
.st-badge--outline { background: transparent; border: var(--st-border-hairline) solid var(--st-border-control); }

/* Status dot. Colour alone never carries meaning — the dot always sits beside
 * a text label, which is why this class has no standalone variant. */
.st-dot { display: inline-block; width: 8px; height: 8px; border-radius: var(--st-radius-circle); background: currentColor; flex: none; }
.st-dot--info { color: var(--st-info); }
.st-dot--success { color: var(--st-success); }
.st-dot--danger { color: var(--st-danger); }
.st-dot--warning { color: var(--st-warning); }
.st-dot--muted { color: var(--st-muted); }

/* Removable chip. */
.st-chip {
  display: inline-flex; align-items: center; gap: var(--st-space-xs);
  min-height: var(--st-control-height-sm);
  padding: 0 var(--st-space-s) 0 var(--st-space-base);
  font-size: var(--st-text-xs);
  background: var(--st-surface);
  border-radius: var(--st-radius-pill);
}
.st-chip__remove {
  display: grid; place-items: center;
  width: 20px; height: 20px; padding: 0;
  min-height: 0; min-width: 0;
  background: transparent; border: 0; border-radius: var(--st-radius-circle);
  color: var(--st-muted); cursor: pointer;
}
.st-chip__remove:hover { background: var(--st-border); color: var(--st-foreground); }

.st-avatar {
  display: grid; place-items: center; flex: none;
  width: var(--st-control-height-sm); height: var(--st-control-height-sm);
  font-size: var(--st-text-xs); font-weight: var(--st-weight-medium);
  background: var(--st-accent); color: var(--st-accent-foreground);
  border-radius: var(--st-radius-circle);
  overflow: hidden;
}
.st-avatar img { width: 100%; height: 100%; object-fit: cover; }
.st-avatar--lg { width: var(--st-control-height-lg); height: var(--st-control-height-lg); font-size: var(--st-text-sm); }
.st-avatar-group { display: flex; }
.st-avatar-group .st-avatar + .st-avatar { margin-left: -10px; outline: 2px solid var(--st-background); }

/* ======================================================================
 * PROGRESS
 * ==================================================================== */

.st-progress { height: 6px; background: var(--st-border); border-radius: var(--st-radius-pill); overflow: hidden; }
.st-progress__bar { height: 100%; background: var(--st-accent); border-radius: inherit; transition: width var(--st-motion-slow) var(--st-motion-ease); }

.st-meter { display: flex; flex-direction: column; gap: var(--st-space-xs); }
.st-meter__head { display: flex; justify-content: space-between; font-size: var(--st-text-xs); }

/* Skeleton. A calm opacity pulse — never a sweeping shimmer, which reads as
 * decorative motion and violates the motion rule. */
.st-skeleton {
  background: var(--st-surface);
  border-radius: var(--st-radius-surface);
  animation: st-pulse 1.6s ease-in-out infinite;
}
@keyframes st-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }

.st-spinner {
  width: 1em; height: 1em;
  border: 2px solid var(--st-border-control);
  border-top-color: var(--st-foreground);
  border-radius: var(--st-radius-circle);
  animation: st-spin 600ms linear infinite;
}

/* ======================================================================
 * NAVIGATION
 * ==================================================================== */

.st-navbar {
  position: sticky; top: 0; z-index: var(--st-z-sticky);
  display: flex; align-items: center; justify-content: space-between; gap: var(--st-space-base);
  min-height: var(--st-control-height-lg);
  padding: var(--st-space-s) var(--st-layout-gutter);
  background: var(--st-background);
  border-bottom: var(--st-border-hairline) solid var(--st-divider);
}
.st-navbar__links { display: flex; align-items: center; gap: var(--st-space-base); }
.st-navbar__link {
  font-size: var(--st-text-sm);
  text-decoration: none;
  color: var(--st-muted);
  transition: color var(--st-motion-base) var(--st-motion-ease);
}
.st-navbar__link:hover, .st-navbar__link[aria-current] { color: var(--st-foreground); }

/* Tabs. The active tab is marked by an ink rule, not by the accent — the
 * accent is reserved for the next action, and a tab is a location. */
.st-tabs { display: flex; gap: var(--st-space-base); border-bottom: var(--st-border-hairline) solid var(--st-divider); }
.st-tabs__tab {
  min-height: var(--st-control-min-touch);
  padding: var(--st-space-s) 0;
  background: none; border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-size: var(--st-text-sm);
  color: var(--st-muted);
  cursor: pointer;
  transition: color var(--st-motion-base) var(--st-motion-ease), border-color var(--st-motion-base) var(--st-motion-ease);
}
.st-tabs__tab[aria-selected="true"] { color: var(--st-foreground); border-bottom-color: var(--st-foreground); }

/* Segmented control — a pill track with a sliding sand thumb. */
.st-segmented { display: inline-flex; padding: 3px; gap: 2px; background: var(--st-surface); border-radius: var(--st-radius-pill); }
.st-segmented__item {
  min-height: var(--st-control-height-sm);
  padding-inline: var(--st-space-base);
  background: transparent; border: 0;
  border-radius: var(--st-radius-pill);
  font-size: var(--st-text-xs); color: var(--st-muted);
  cursor: pointer;
  transition: background-color var(--st-motion-base) var(--st-motion-ease), color var(--st-motion-base) var(--st-motion-ease);
}
.st-segmented__item[aria-pressed="true"] { background: var(--st-background); color: var(--st-foreground); }

.st-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: var(--st-space-xs); font-size: var(--st-text-xs); color: var(--st-muted); }
.st-breadcrumb__sep { opacity: 0.6; }

.st-pagination { display: flex; align-items: center; gap: var(--st-space-xs); }

/* Stepper — progressive disclosure made visible. */
.st-stepper { display: flex; align-items: center; gap: var(--st-space-s); }
.st-stepper__step { display: flex; align-items: center; gap: var(--st-space-xs); font-size: var(--st-text-xs); color: var(--st-muted); }
.st-stepper__dot {
  display: grid; place-items: center; flex: none;
  width: 24px; height: 24px;
  font-size: var(--st-text-2xs);
  background: var(--st-surface);
  border-radius: var(--st-radius-circle);
}
.st-stepper__step[data-state="current"] { color: var(--st-foreground); }
.st-stepper__step[data-state="current"] .st-stepper__dot { background: var(--st-accent); color: var(--st-accent-foreground); }
.st-stepper__step[data-state="done"] .st-stepper__dot { background: var(--st-success); color: var(--st-background); }
.st-stepper__line { flex: 1; height: 1px; background: var(--st-divider); min-width: var(--st-space-base); }

.st-sidebar {
  display: flex; flex-direction: column; gap: var(--st-space-xs);
  width: 240px; padding: var(--st-space-base);
  background: var(--st-surface);
  border-radius: var(--st-radius-surface);
}
.st-sidebar__link {
  display: flex; align-items: center; gap: var(--st-space-s);
  min-height: var(--st-control-height-sm);
  padding: var(--st-space-xs) var(--st-space-s);
  font-size: var(--st-text-sm); text-decoration: none;
  color: var(--st-muted);
  border-radius: var(--st-radius-surface);
  transition: background-color var(--st-motion-base) var(--st-motion-ease), color var(--st-motion-base) var(--st-motion-ease);
}
.st-sidebar__link:hover { background: var(--st-background); color: var(--st-foreground); }
.st-sidebar__link[aria-current="page"] { background: var(--st-background); color: var(--st-foreground); font-weight: var(--st-weight-medium); }

/* ======================================================================
 * OVERLAYS — the ONLY place a shadow is permitted
 * ==================================================================== */

.st-overlay {
  position: fixed; inset: 0; z-index: var(--st-z-overlay);
  background: var(--st-scrim);
  animation: st-fade var(--st-motion-base) var(--st-motion-ease);
}
@keyframes st-fade { from { opacity: 0; } to { opacity: 1; } }

.st-modal {
  position: fixed; z-index: var(--st-z-modal);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(540px, calc(100vw - var(--st-space-m)));
  max-height: calc(100svh - var(--st-space-m));
  overflow-y: auto;
  padding: var(--st-space-m);
  background: var(--st-background);
  border-radius: var(--st-radius-surface);
  /* Detached from the page, so the escape hatch applies. Counted by the
   * cognitive-load linter every time it is used. */
  box-shadow: var(--st-elevation-escape-hatch);
}
.st-modal__title { font-size: var(--st-text-md); font-weight: var(--st-weight-medium); margin-bottom: var(--st-space-s); }
.st-modal__actions { display: flex; justify-content: flex-end; gap: var(--st-space-s); margin-top: var(--st-space-m); }

.st-drawer {
  position: fixed; z-index: var(--st-z-modal);
  top: 0; right: 0; bottom: 0;
  width: min(420px, 100vw);
  overflow-y: auto;
  padding: var(--st-space-m);
  background: var(--st-background);
  box-shadow: var(--st-elevation-escape-hatch);
}
/* Bottom sheet on small screens — a side drawer on a phone is a mis-fit. */
@media (max-width: 560px) {
  .st-drawer { top: auto; left: 0; width: 100%; max-height: 85svh; border-radius: var(--st-radius-surface) var(--st-radius-surface) 0 0; }
}

.st-popover {
  z-index: var(--st-z-overlay);
  min-width: 200px;
  padding: var(--st-space-s);
  background: var(--st-background);
  border: var(--st-border-hairline) solid var(--st-border);
  border-radius: var(--st-radius-surface);
  box-shadow: var(--st-elevation-escape-hatch);
}

.st-menu { display: flex; flex-direction: column; gap: 2px; }
.st-menu__item {
  display: flex; align-items: center; gap: var(--st-space-s);
  min-height: var(--st-control-height-sm);
  padding: var(--st-space-xs) var(--st-space-s);
  width: 100%;
  font-size: var(--st-text-sm); text-align: left;
  background: transparent; border: 0; border-radius: var(--st-radius-surface);
  cursor: pointer;
}
.st-menu__item:hover { background: var(--st-surface); }
.st-menu__item[data-danger] { color: var(--st-danger); }

.st-tooltip {
  z-index: var(--st-z-overlay);
  padding: var(--st-space-xs) var(--st-space-s);
  font-size: var(--st-text-xs);
  background: var(--st-foreground);
  color: var(--st-background);
  border-radius: calc(var(--st-radius-surface) / 2);
  max-width: 240px;
}

.st-toast {
  display: flex; align-items: flex-start; gap: var(--st-space-s);
  min-width: 280px; max-width: 400px;
  padding: var(--st-space-base);
  background: var(--st-background);
  border: var(--st-border-hairline) solid var(--st-border);
  border-radius: var(--st-radius-surface);
  box-shadow: var(--st-elevation-escape-hatch);
}
.st-toast-region { position: fixed; z-index: var(--st-z-toast); right: var(--st-space-base); bottom: var(--st-space-base); display: flex; flex-direction: column; gap: var(--st-space-s); }

/* Inline messages. Flat — a banner is part of the page, not floating above it.
 * The left rule carries the semantic colour so the fill can stay neutral. */
.st-alert {
  display: flex; gap: var(--st-space-s);
  padding: var(--st-space-base);
  background: var(--st-surface);
  border-left: 3px solid var(--st-border-control);
  border-radius: var(--st-radius-surface);
  font-size: var(--st-text-sm);
}
.st-alert--info    { border-left-color: var(--st-info); }
.st-alert--success { border-left-color: var(--st-success); }
.st-alert--warning { border-left-color: var(--st-warning); }
.st-alert--danger  { border-left-color: var(--st-danger); }

/* ======================================================================
 * DATA
 * ==================================================================== */

.st-table-wrap { overflow-x: auto; border-radius: var(--st-radius-surface); }
.st-table { width: 100%; border-collapse: collapse; font-size: var(--st-text-sm); }
.st-table th {
  position: sticky; top: 0;
  padding: var(--st-space-s) var(--st-space-base);
  font-weight: var(--st-weight-medium);
  letter-spacing: var(--st-tracking-wide);
  text-align: left;
  background: var(--st-surface);
  border-bottom: var(--st-border-hairline) solid var(--st-border-control);
  white-space: nowrap;
}
.st-table td { padding: var(--st-space-s) var(--st-space-base); border-bottom: var(--st-border-hairline) solid var(--st-divider); }
.st-table tbody tr:hover { background: var(--st-surface); }
.st-table [data-numeric] { text-align: right; font-variant-numeric: tabular-nums; }

.st-empty { display: flex; flex-direction: column; align-items: center; gap: var(--st-space-s); padding: var(--st-space-xl) var(--st-space-base); text-align: center; color: var(--st-muted); }
.st-empty__title { font-size: var(--st-text-md); color: var(--st-foreground); font-weight: var(--st-weight-medium); }

.st-kv { display: grid; grid-template-columns: auto 1fr; gap: var(--st-space-s) var(--st-space-base); font-size: var(--st-text-sm); }
.st-kv dt { color: var(--st-muted); }
.st-kv dd { margin: 0; }

.st-timeline { display: flex; flex-direction: column; gap: var(--st-space-base); }
.st-timeline__item { display: grid; grid-template-columns: auto 1fr; gap: var(--st-space-base); position: relative; }
.st-timeline__marker { width: 10px; height: 10px; margin-top: 6px; background: var(--st-accent); border-radius: var(--st-radius-circle); }

/* Chart marks. THE STROKE RULE: every fill carries a boundary, because mango
 * at 1.43:1 and sky at 1.99:1 on paper are not identifiable on their own. */
.st-chart-mark { stroke: var(--st-chart-stroke); stroke-width: 1px; }
.st-chart-1 { fill: var(--st-chart-1); color: var(--st-chart-1); }
.st-chart-2 { fill: var(--st-chart-2); color: var(--st-chart-2); }
.st-chart-3 { fill: var(--st-chart-3); color: var(--st-chart-3); }
.st-chart-4 { fill: var(--st-chart-4); color: var(--st-chart-4); }
.st-chart-5 { fill: var(--st-chart-5); color: var(--st-chart-5); }
.st-chart-6 { fill: var(--st-chart-6); color: var(--st-chart-6); }

/* ======================================================================
 * CHAT / AI SURFACES
 * ==================================================================== */

.st-chat { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.st-chat__log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: var(--st-space-base); padding: var(--st-space-base); }

.st-msg { display: flex; gap: var(--st-space-s); max-width: 100%; }
.st-msg--user { flex-direction: row-reverse; }
.st-msg__body {
  max-width: 78%;
  padding: var(--st-space-s) var(--st-space-base);
  border-radius: var(--st-radius-surface);
  font-size: var(--st-text-sm);
  line-height: var(--st-leading-sm);
  /* A long token with no spaces (a URL, a hash) must not widen the page. */
  overflow-wrap: anywhere;
}
/* The user speaks in sand; the assistant speaks on paper. Neither is mango —
 * an accent-coloured bubble would spend the view's one accent on every
 * single message, which is exactly the mistake the budget exists to prevent. */
.st-msg--user .st-msg__body { background: var(--st-surface); }
.st-msg--assistant .st-msg__body { background: transparent; padding-inline: 0; max-width: 100%; }
.st-msg--system .st-msg__body { background: transparent; font-size: var(--st-text-xs); color: var(--st-muted); text-align: center; max-width: 100%; }
.st-msg__meta { font-size: var(--st-text-2xs); color: var(--st-muted); margin-top: var(--st-space-xs); }

/* Actions appear on hover, but stay permanently visible on touch, where
 * there is no hover and a hidden control is simply an unreachable one. */
.st-msg__actions { display: flex; gap: var(--st-space-xs); opacity: 0; transition: opacity var(--st-motion-base) var(--st-motion-ease); }
.st-msg:hover .st-msg__actions, .st-msg:focus-within .st-msg__actions { opacity: 1; }
@media (hover: none) { .st-msg__actions { opacity: 1; } }

.st-typing { display: inline-flex; gap: 4px; align-items: center; padding: var(--st-space-s) 0; }
.st-typing span { width: 6px; height: 6px; background: var(--st-muted); border-radius: var(--st-radius-circle); animation: st-typing 1.2s ease-in-out infinite; }
.st-typing span:nth-child(2) { animation-delay: 0.15s; }
.st-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes st-typing { 0%, 80%, 100% { opacity: 0.3; } 40% { opacity: 1; } }

/* Streaming caret — the only continuously animating element in the language,
 * permitted because it communicates live state rather than decorating. */
.st-stream::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; background: currentColor; vertical-align: text-bottom; animation: st-caret 1s steps(2) infinite; }
@keyframes st-caret { 50% { opacity: 0; } }

.st-composer {
  display: flex; align-items: flex-end; gap: var(--st-space-s);
  padding: var(--st-space-s);
  background: var(--st-background);
  border: var(--st-border-hairline) solid var(--st-border-control);
  border-radius: var(--st-radius-surface);
}
.st-composer:focus-within { border-color: var(--st-foreground); }
.st-composer__input {
  flex: 1;
  min-height: var(--st-control-height-sm);
  max-height: 200px;
  padding: var(--st-space-xs) var(--st-space-s);
  font-family: inherit; font-size: var(--st-text-sm); font-weight: var(--st-weight-light);
  color: var(--st-foreground);
  background: transparent; border: 0; outline: none; resize: none;
}

/* Tool call / reasoning — collapsed by default. Progressive disclosure is the
 * default state for machine detail, not an option the user has to discover. */
.st-toolcall {
  border: var(--st-border-hairline) solid var(--st-border);
  border-radius: var(--st-radius-surface);
  font-size: var(--st-text-xs);
  overflow: hidden;
}
.st-toolcall__head { display: flex; align-items: center; gap: var(--st-space-s); padding: var(--st-space-s) var(--st-space-base); background: var(--st-surface); cursor: pointer; width: 100%; border: 0; text-align: left; min-height: var(--st-control-min-touch); }
.st-toolcall__body { padding: var(--st-space-base); font-family: var(--st-font-mono); overflow-x: auto; }

.st-citation {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding-inline: 5px;
  font-size: var(--st-text-2xs); vertical-align: super;
  background: var(--st-surface); color: var(--st-muted);
  border-radius: var(--st-radius-pill); text-decoration: none;
}
.st-citation:hover { background: var(--st-accent); color: var(--st-accent-foreground); }

.st-prompts { display: flex; flex-wrap: wrap; gap: var(--st-space-s); }
.st-prompts__item {
  padding: var(--st-space-s) var(--st-space-base);
  min-height: var(--st-control-min-touch);
  font-size: var(--st-text-xs); text-align: left;
  background: transparent;
  border: var(--st-border-hairline) solid var(--st-border-control);
  border-radius: var(--st-radius-pill);
  cursor: pointer;
  transition: background-color var(--st-motion-base) var(--st-motion-ease);
}
.st-prompts__item:hover { background: var(--st-surface); }

/* ======================================================================
 * MARKETING
 * ==================================================================== */

.st-hero { display: flex; flex-direction: column; gap: var(--st-space-base); padding-block: var(--st-space-section) var(--st-space-2xl); }
.st-hero--center { align-items: center; text-align: center; }

.st-section-header { display: flex; flex-direction: column; gap: var(--st-space-s); margin-bottom: var(--st-space-m); max-width: 60ch; }
.st-section-header--center { align-items: center; text-align: center; margin-inline: auto; }

.st-feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--st-space-l); align-items: center; }
.st-feature-row--flip > :first-child { order: 2; }
@media (max-width: 800px) { .st-feature-row { grid-template-columns: 1fr; } .st-feature-row--flip > :first-child { order: 0; } }

.st-logo-wall { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--st-space-m); opacity: 0.7; }

.st-quote { display: flex; flex-direction: column; gap: var(--st-space-base); }
.st-quote__text { font-family: var(--st-font-display); font-size: var(--st-text-xl); line-height: var(--st-leading-xl); font-weight: var(--st-weight-light); }

.st-cta-band { display: flex; flex-direction: column; align-items: center; gap: var(--st-space-base); padding: var(--st-space-xl) var(--st-space-base); text-align: center; background: var(--st-surface); border-radius: var(--st-radius-surface); }

.st-price { display: flex; flex-direction: column; gap: var(--st-space-base); padding: var(--st-space-m); background: var(--st-surface); border: var(--st-border-accent) solid transparent; border-radius: var(--st-radius-surface); }
.st-price[data-featured="true"] { border-color: var(--st-accent); }
.st-price__amount { font-family: var(--st-font-display); font-size: var(--st-text-2xl); line-height: 1; font-weight: var(--st-weight-light); }

/* ======================================================================
 * REVEAL — the one sanctioned entrance animation
 * ==================================================================== */

.st-reveal { animation: st-reveal var(--st-motion-reveal) var(--st-motion-ease) both; }
@keyframes st-reveal { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }


/* Structure — extended components.
 * structure-definitions — this file DEFINES the vocabulary; view budgets do not apply.
 *
 * The rest of the inventory: everything shadcn/ui and swift-struck-ui ship
 * that components.css did not already cover, plus the states and patterns a
 * real product needs. Same rules — tokens only, flat, one accent.
 */

/* ======================================================================
 * LAYOUT ADDITIONS
 * ==================================================================== */

.st-box { display: block; }
.st-center { display: grid; place-items: center; }
.st-aspect { position: relative; overflow: hidden; border-radius: var(--st-radius-surface); }
.st-aspect > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.st-resizable { display: grid; grid-template-columns: 1fr auto 1fr; }
.st-resizable__handle {
  width: 9px; cursor: col-resize;
  background: transparent;
  border-inline: var(--st-border-hairline) solid var(--st-divider);
}
.st-resizable__handle:hover { background: var(--st-surface); }

.st-hide { display: none !important; }
@media (max-width: 860px) { .st-hide-mobile { display: none !important; } }
@media (min-width: 861px) { .st-hide-desktop { display: none !important; } }

/* ======================================================================
 * TYPOGRAPHY ADDITIONS
 * ==================================================================== */

.st-heading { font-weight: var(--st-weight-medium); letter-spacing: var(--st-tracking-wide); line-height: 1.2; }
.st-text { font-size: var(--st-text-sm); line-height: var(--st-leading-sm); }
.st-quote {
  padding-left: var(--st-space-base);
  border-left: var(--st-border-accent) solid var(--st-accent);
  font-family: var(--st-font-display);
  font-size: var(--st-text-md);
  font-weight: var(--st-weight-light);
}
.st-code {
  font-family: var(--st-font-mono); font-size: .9em;
  padding: .1em .35em; background: var(--st-surface);
  border-radius: calc(var(--st-radius-surface) / 2);
}
.st-kbd {
  font-family: var(--st-font-mono); font-size: var(--st-text-xs);
  padding: .15em .45em;
  background: var(--st-surface);
  border: var(--st-border-hairline) solid var(--st-border-control);
  border-radius: calc(var(--st-radius-surface) / 2);
}
.st-link {
  color: inherit; text-decoration: underline;
  text-decoration-color: var(--st-border-control);
  text-underline-offset: .2em;
}
.st-link:hover { text-decoration-color: currentColor; }

/* Long-form editorial. The one place the measure is enforced, because a
 * 120-character line is unreadable however good the type is. */
.st-prose { max-width: 68ch; }
.st-prose > * + * { margin-top: var(--st-space-base); }
.st-prose h2 { font-size: var(--st-text-xl); line-height: 1.2; margin-top: var(--st-space-l); }
.st-prose h3 { font-size: var(--st-text-lg); line-height: 1.3; margin-top: var(--st-space-m); }
.st-prose img { border-radius: var(--st-radius-surface); }

/* ======================================================================
 * SURFACES ADDITIONS
 * ==================================================================== */

.st-panel { padding: var(--st-space-m); background: var(--st-background); border: var(--st-border-hairline) solid var(--st-border); border-radius: var(--st-radius-surface); }
.st-well { padding: var(--st-space-base); background: var(--st-surface); border-radius: var(--st-radius-surface); }

/* Device / browser frame — for showing a product inside a page. */
.st-frame { border: var(--st-border-hairline) solid var(--st-border-control); border-radius: var(--st-radius-surface); overflow: hidden; background: var(--st-background); }
.st-frame__bar { display: flex; align-items: center; gap: 6px; padding: 10px var(--st-space-base); background: var(--st-surface); border-bottom: var(--st-border-hairline) solid var(--st-divider); }
.st-frame__dot { width: 9px; height: 9px; border-radius: var(--st-radius-circle); background: var(--st-border-control); }
.st-frame__body { padding: var(--st-space-m); }

.st-icon { width: 1em; height: 1em; flex: none; }

/* ======================================================================
 * FORM CONTROLS — the ones components.css did not cover
 * ==================================================================== */

/* Checkbox & radio, drawn rather than native, so they can carry the ink
 * language. The input stays in the DOM and keeps all its keyboard behaviour. */
.st-checkbox, .st-radio {
  display: inline-flex; align-items: flex-start; gap: var(--st-space-s);
  min-height: var(--st-control-min-touch);
  cursor: pointer;
}
.st-checkbox input, .st-radio input { position: absolute; opacity: 0; width: 0; height: 0; }
.st-checkbox__box, .st-radio__box {
  display: grid; place-items: center;
  width: 18px; height: 18px; flex: none;
  margin-top: 2px;
  border: var(--st-border-hairline) solid var(--st-border-control);
  border-radius: calc(var(--st-radius-surface) / 2);
  transition: background-color var(--st-motion-fast) var(--st-motion-ease),
              border-color var(--st-motion-fast) var(--st-motion-ease);
}
.st-radio__box { border-radius: var(--st-radius-circle); }
.st-checkbox input:checked + .st-checkbox__box,
.st-radio input:checked + .st-radio__box { background: var(--st-accent); border-color: var(--st-accent); }
.st-checkbox__box::after {
  content: ""; width: 9px; height: 5px;
  border-left: 2px solid var(--st-accent-foreground);
  border-bottom: 2px solid var(--st-accent-foreground);
  transform: rotate(-45deg) translate(1px, -1px);
  opacity: 0;
}
.st-checkbox input:checked + .st-checkbox__box::after { opacity: 1; }
.st-radio__box::after { content: ""; width: 7px; height: 7px; border-radius: var(--st-radius-circle); background: var(--st-accent-foreground); opacity: 0; }
.st-radio input:checked + .st-radio__box::after { opacity: 1; }
.st-checkbox input:focus-visible + .st-checkbox__box,
.st-radio input:focus-visible + .st-radio__box { outline: 2px solid var(--st-ring); outline-offset: 2px; }
.st-checkbox input:indeterminate + .st-checkbox__box { background: var(--st-accent); border-color: var(--st-accent); }
.st-checkbox input:indeterminate + .st-checkbox__box::after {
  opacity: 1; width: 9px; height: 0; border-bottom: 2px solid var(--st-accent-foreground);
  border-left: 0; transform: none;
}

.st-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; padding: 0; border: 0; }
.st-slider::-webkit-slider-runnable-track { height: 4px; background: var(--st-border); border-radius: var(--st-radius-pill); }
.st-slider::-moz-range-track { height: 4px; background: var(--st-border); border-radius: var(--st-radius-pill); }
.st-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; margin-top: -7px;
  background: var(--st-accent);
  border: var(--st-border-hairline) solid var(--st-foreground);
  border-radius: var(--st-radius-circle);
  cursor: pointer;
}
.st-slider::-moz-range-thumb {
  width: 18px; height: 18px;
  background: var(--st-accent);
  border: var(--st-border-hairline) solid var(--st-foreground);
  border-radius: var(--st-radius-circle);
  cursor: pointer;
}
.st-slider:focus-visible { outline: 2px solid var(--st-ring); outline-offset: 4px; border-radius: var(--st-radius-pill); }

.st-rating { display: inline-flex; gap: 2px; }
.st-rating__star {
  background: none; border: 0; padding: 2px; cursor: pointer;
  color: var(--st-border-control);
  min-height: var(--st-control-min-touch); min-width: var(--st-control-min-touch);
  display: grid; place-items: center;
}
.st-rating__star[data-on="true"] { color: var(--st-accent); }

.st-tag-input {
  display: flex; flex-wrap: wrap; gap: var(--st-space-xs);
  min-height: var(--st-control-height);
  padding: var(--st-space-xs);
  background: var(--st-background);
  border: var(--st-border-hairline) solid var(--st-border-control);
  border-radius: var(--st-radius-surface);
}
.st-tag-input:focus-within { border-color: var(--st-foreground); }
/* structure-ignore touch-target: the inner field is 28px, but <TagInput> renders
 * the 44px container as a <label>, so the whole control is the tap target and
 * clicking any part of it focuses this input. Inflating the field itself would
 * only make the box taller without enlarging what is actually clickable. */
.st-tag-input input { flex: 1; min-width: 8ch; min-height: 28px; align-self: stretch; border: 0; outline: none; background: transparent; padding: 0 var(--st-space-xs); }

/* One-time code. Monospaced and evenly spaced so a 6-digit code is scannable. */
.st-otp { display: flex; gap: var(--st-space-s); }
.st-otp input {
  width: 44px; height: 52px; padding: 0;
  font-family: var(--st-font-mono); font-size: var(--st-text-lg); text-align: center;
  border: var(--st-border-hairline) solid var(--st-border-control);
  border-radius: var(--st-radius-surface);
  background: var(--st-background);
}
.st-otp input:focus-visible { outline: 2px solid var(--st-ring); outline-offset: 2px; border-color: var(--st-foreground); }

.st-dropzone {
  display: grid; place-items: center; gap: var(--st-space-s);
  padding: var(--st-space-l) var(--st-space-base);
  text-align: center;
  border: 1px dashed var(--st-border-control);
  border-radius: var(--st-radius-surface);
  background: var(--st-surface);
  cursor: pointer;
  transition: border-color var(--st-motion-base) var(--st-motion-ease), background-color var(--st-motion-base) var(--st-motion-ease);
}
.st-dropzone[data-over="true"] { border-color: var(--st-accent); border-style: solid; }

.st-signature { border: var(--st-border-hairline) solid var(--st-border-control); border-radius: var(--st-radius-surface); background: var(--st-background); touch-action: none; display: block; width: 100%; }

.st-color { display: inline-flex; align-items: center; gap: var(--st-space-s); }
.st-color__swatch { width: var(--st-control-height-sm); height: var(--st-control-height-sm); border-radius: var(--st-radius-surface); border: var(--st-border-hairline) solid var(--st-border-control); }

.st-combobox { position: relative; }
.st-combobox__list {
  position: absolute; z-index: var(--st-z-overlay);
  top: calc(100% + 4px); left: 0; right: 0;
  max-height: 260px; overflow-y: auto;
  padding: var(--st-space-xs);
  background: var(--st-background);
  border: var(--st-border-hairline) solid var(--st-border);
  border-radius: var(--st-radius-surface);
  box-shadow: var(--st-elevation-escape-hatch);
}
.st-combobox__option {
  display: flex; align-items: center; gap: var(--st-space-s);
  min-height: var(--st-control-height-sm);
  padding: var(--st-space-xs) var(--st-space-s);
  border-radius: var(--st-radius-surface);
  cursor: pointer;
}
.st-combobox__option[aria-selected="true"], .st-combobox__option:hover { background: var(--st-surface); }

.st-form { display: flex; flex-direction: column; gap: var(--st-space-base); }
.st-fieldset { border: var(--st-border-hairline) solid var(--st-border); border-radius: var(--st-radius-surface); padding: var(--st-space-base); margin: 0; }

/* ======================================================================
 * CALENDAR — used by date picker, range picker, and calendar view
 * ==================================================================== */

.st-calendar { display: inline-block; padding: var(--st-space-s); background: var(--st-background); border-radius: var(--st-radius-surface); }
.st-calendar__head { display: flex; align-items: center; justify-content: space-between; gap: var(--st-space-s); margin-bottom: var(--st-space-s); }
.st-calendar__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.st-calendar__dow { font-size: var(--st-text-2xs); color: var(--st-muted); text-align: center; padding: var(--st-space-xs) 0; }
.st-calendar__day {
  display: grid; place-items: center;
  min-height: 36px; min-width: 36px;
  font-size: var(--st-text-xs);
  background: none; border: 0; cursor: pointer;
  border-radius: var(--st-radius-surface);
  font-variant-numeric: tabular-nums;
}
.st-calendar__day:hover { background: var(--st-surface); }
.st-calendar__day[data-outside="true"] { color: var(--st-muted); opacity: .5; }
.st-calendar__day[data-today="true"] { border: var(--st-border-hairline) solid var(--st-border-control); }
.st-calendar__day[aria-selected="true"] { background: var(--st-accent); color: var(--st-accent-foreground); }
.st-calendar__day[data-in-range="true"] { background: var(--st-surface); border-radius: 0; }

/* ======================================================================
 * DISCLOSURE & TOGGLES
 * ==================================================================== */

.st-accordion { border-top: var(--st-border-hairline) solid var(--st-divider); }
.st-accordion > details { border-bottom: var(--st-border-hairline) solid var(--st-divider); }

.st-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--st-space-xs);
  min-height: var(--st-control-height-sm); min-width: var(--st-control-height-sm);
  padding-inline: var(--st-space-s);
  background: transparent; border: var(--st-border-hairline) solid transparent;
  border-radius: var(--st-radius-surface);
  font-size: var(--st-text-xs); cursor: pointer;
}
.st-toggle:hover { background: var(--st-surface); }
.st-toggle[aria-pressed="true"] { background: var(--st-surface); border-color: var(--st-border-control); }

.st-toggle-group { display: inline-flex; gap: 2px; padding: 2px; background: var(--st-surface); border-radius: var(--st-radius-surface); }
.st-toggle-group .st-toggle[aria-pressed="true"] { background: var(--st-background); }

.st-carousel { position: relative; }
.st-carousel__track {
  display: flex; gap: var(--st-space-base);
  overflow-x: auto; scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
}
.st-carousel__slide { flex: 0 0 auto; scroll-snap-align: start; }
.st-carousel__dots { display: flex; gap: var(--st-space-xs); justify-content: center; margin-top: var(--st-space-s); }
.st-carousel__dot { width: 6px; height: 6px; padding: 0; min-height: 0; min-width: 0; border: 0; border-radius: var(--st-radius-circle); background: var(--st-border-control); cursor: pointer; }
.st-carousel__dot[aria-current="true"] { background: var(--st-foreground); }

/* ======================================================================
 * NAVIGATION ADDITIONS
 * ==================================================================== */

.st-anchor-nav { display: flex; flex-direction: column; gap: var(--st-space-xs); }
.st-anchor-nav a { font-size: var(--st-text-xs); color: var(--st-muted); text-decoration: none; padding: var(--st-space-xs) 0; }
.st-anchor-nav a[aria-current] { color: var(--st-foreground); }

.st-menubar { display: flex; gap: var(--st-space-xs); border-bottom: var(--st-border-hairline) solid var(--st-divider); }
.st-menubar__item { padding: var(--st-space-xs) var(--st-space-s); background: none; border: 0; font-size: var(--st-text-sm); cursor: pointer; border-radius: var(--st-radius-surface); }
.st-menubar__item:hover, .st-menubar__item[aria-expanded="true"] { background: var(--st-surface); }

/* Command palette — the keyboard front door. */
.st-command {
  width: min(560px, calc(100vw - var(--st-space-m)));
  max-height: 60svh;
  display: flex; flex-direction: column;
  background: var(--st-background);
  border: var(--st-border-hairline) solid var(--st-border);
  border-radius: var(--st-radius-surface);
  box-shadow: var(--st-elevation-escape-hatch);
  overflow: hidden;
}
.st-command__input { border: 0; border-bottom: var(--st-border-hairline) solid var(--st-divider); border-radius: 0; }
.st-command__list { overflow-y: auto; padding: var(--st-space-xs); }
.st-command__group-label { font-size: var(--st-text-2xs); color: var(--st-muted); letter-spacing: var(--st-tracking-wider); text-transform: uppercase; padding: var(--st-space-s) var(--st-space-s) var(--st-space-xs); }
.st-command__item {
  display: flex; align-items: center; gap: var(--st-space-s);
  width: 100%; min-height: var(--st-control-height-sm);
  padding: var(--st-space-xs) var(--st-space-s);
  background: none; border: 0; text-align: left; cursor: pointer;
  border-radius: var(--st-radius-surface);
  font-size: var(--st-text-sm);
}
.st-command__item[aria-selected="true"] { background: var(--st-surface); }

/* ======================================================================
 * DATA ADDITIONS
 * ==================================================================== */

.st-list { display: flex; flex-direction: column; }
.st-list > * + * { border-top: var(--st-border-hairline) solid var(--st-divider); }

.st-filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--st-space-s); padding-block: var(--st-space-s); }

/* A designated scroller: it scrolls inside itself and never widens its parent.
 * min-width:0 is what actually enforces that when the board is a grid child. */
.st-kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: var(--st-space-base); overflow-x: auto; overscroll-behavior-x: contain; align-items: start; min-width: 0; }
.st-kanban__col { display: flex; flex-direction: column; gap: var(--st-space-s); padding: var(--st-space-s); background: var(--st-surface); border-radius: var(--st-radius-surface); min-height: 120px; }
.st-kanban__head { display: flex; align-items: center; justify-content: space-between; gap: var(--st-space-s); font-size: var(--st-text-xs); font-weight: var(--st-weight-medium); letter-spacing: var(--st-tracking-wide); }
.st-kanban__card { padding: var(--st-space-s); background: var(--st-background); border-radius: var(--st-radius-surface); font-size: var(--st-text-sm); cursor: grab; }

.st-tree { font-size: var(--st-text-sm); }
.st-tree ul { list-style: none; margin: 0; padding-left: var(--st-space-base); border-left: var(--st-border-hairline) solid var(--st-divider); }
.st-tree__item { display: flex; align-items: center; gap: var(--st-space-xs); min-height: var(--st-control-height-sm); padding: 2px var(--st-space-xs); border-radius: var(--st-radius-surface); cursor: pointer; }
.st-tree__item:hover { background: var(--st-surface); }
.st-tree__item[aria-selected="true"] { background: var(--st-surface); font-weight: var(--st-weight-medium); }

.st-detail { display: grid; grid-template-columns: 1fr 320px; gap: var(--st-space-l); align-items: start; }
@media (max-width: 900px) { .st-detail { grid-template-columns: 1fr; } }

.st-checklist { display: flex; flex-direction: column; gap: var(--st-space-xs); }
.st-checklist__item { display: flex; align-items: flex-start; gap: var(--st-space-s); padding: var(--st-space-xs) 0; }
.st-checklist__item[data-done="true"] { color: var(--st-muted); text-decoration: line-through; }

.st-comments { display: flex; flex-direction: column; gap: var(--st-space-base); }
.st-comment { display: grid; grid-template-columns: auto 1fr; gap: var(--st-space-s); }
.st-comment__body { font-size: var(--st-text-sm); }
.st-comment__meta { font-size: var(--st-text-2xs); color: var(--st-muted); }

.st-gauge { display: inline-grid; place-items: center; position: relative; }
.st-gauge__value { position: absolute; font-family: var(--st-font-display); font-size: var(--st-text-xl); font-variant-numeric: tabular-nums; }

.st-chart { width: 100%; }
.st-chart svg { width: 100%; height: auto; overflow: visible; }
.st-chart__grid { stroke: var(--st-divider); stroke-width: 1; }
.st-chart__axis { fill: var(--st-muted); font-size: 10px; }

.st-heatmap { display: grid; gap: 3px; grid-template-columns: repeat(auto-fill, minmax(12px, 1fr)); }
.st-heatmap__cell { aspect-ratio: 1; border-radius: 2px; background: var(--st-surface); }

.st-run-steps { display: flex; flex-direction: column; gap: var(--st-space-xs); font-size: var(--st-text-xs); }
.st-run-steps__item { display: flex; align-items: center; gap: var(--st-space-s); padding: var(--st-space-xs) var(--st-space-s); background: var(--st-surface); border-radius: var(--st-radius-surface); }

.st-copilot {
  position: fixed; right: var(--st-space-base); bottom: var(--st-space-base);
  z-index: var(--st-z-modal);
  width: min(380px, calc(100vw - var(--st-space-m)));
  max-height: min(600px, 80svh);
  display: flex; flex-direction: column;
  background: var(--st-background);
  border: var(--st-border-hairline) solid var(--st-border);
  border-radius: var(--st-radius-surface);
  box-shadow: var(--st-elevation-escape-hatch);
  overflow: hidden;
}

/* ======================================================================
 * BANNER — full-width message, part of the page
 * ==================================================================== */

.st-banner {
  display: flex; align-items: center; gap: var(--st-space-s);
  padding: var(--st-space-s) var(--st-space-base);
  font-size: var(--st-text-xs);
  background: var(--st-surface);
  border-bottom: var(--st-border-hairline) solid var(--st-divider);
}
.st-banner--danger { background: var(--st-danger); color: var(--st-background); border-bottom-color: transparent; }
.st-banner--accent { background: var(--st-accent); color: var(--st-accent-foreground); border-bottom-color: transparent; }

.st-lightbox {
  position: fixed; inset: 0; z-index: var(--st-z-modal);
  display: grid; place-items: center;
  padding: var(--st-space-m);
  background: var(--st-scrim);
}
.st-lightbox img { max-width: 100%; max-height: 90svh; object-fit: contain; }

.st-split-btn { display: inline-flex; }
.st-split-btn > .st-btn:first-child { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.st-split-btn > .st-btn:last-child { border-top-left-radius: 0; border-bottom-left-radius: 0; min-width: var(--st-control-height); padding-inline: 0; margin-left: 1px; }


/* Structure — the waiting vocabulary.
 * structure-definitions — this file DEFINES the vocabulary; view budgets do not apply.
 *
 * A design system is judged on its loading states more than its buttons,
 * because loading is when the user is least patient and most likely to leave.
 *
 * THE RULE THAT PICKS THE LOADER — match the shape of the wait, not the taste
 * of the designer:
 *
 *   < 300ms   nothing at all. A flash of spinner is worse than a pause.
 *   0.3–1s    inline: the control itself shows it is busy.
 *   1–5s      skeleton in the shape of the content that is coming.
 *   > 5s      determinate progress, with a number, and something to read.
 *   unknown   indeterminate bar at the top; never block the whole screen.
 *
 * WHY SKELETONS DO NOT SHIMMER HERE. The sweeping-gradient shimmer everyone
 * ships is a gradient (forbidden), it moves for decoration rather than
 * information, and it draws the eye to the emptiest part of the screen. A
 * calm opacity pulse says the same thing and says it quietly.
 */

/* ======================================================================
 * SPINNER — the smallest indicator. Never alone on a page.
 * ==================================================================== */

.st-spinner {
  display: inline-block;
  width: 1em; height: 1em;
  border: 2px solid var(--st-border-control);
  border-top-color: var(--st-foreground);
  border-radius: var(--st-radius-circle);
  animation: st-spin 600ms linear infinite;
}
.st-spinner--sm { width: .75em; height: .75em; border-width: 1.5px; }
.st-spinner--lg { width: 2em; height: 2em; border-width: 2.5px; }
.st-spinner--accent { border-top-color: var(--st-accent); }
/* No --invert variant is needed: .st-invert re-scopes --st-border-control and
 * --st-foreground, so a spinner inside an inverted band is already correct. */

@keyframes st-spin { to { transform: rotate(360deg); } }

/* ======================================================================
 * SKELETON — a silhouette of the content that is coming.
 * ==================================================================== */

.st-skeleton {
  background: var(--st-surface);
  border-radius: var(--st-radius-surface);
  animation: st-pulse 1600ms ease-in-out infinite;
}
@keyframes st-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }

/* Staggering by a fraction of the cycle stops a wall of skeletons pulsing in
 * lockstep, which reads as a broken screen rather than a loading one. */
.st-skeleton:nth-child(2) { animation-delay: 120ms; }
.st-skeleton:nth-child(3) { animation-delay: 240ms; }
.st-skeleton:nth-child(4) { animation-delay: 360ms; }
.st-skeleton:nth-child(5) { animation-delay: 480ms; }

.st-skeleton--text   { height: 1em; border-radius: calc(var(--st-radius-surface) / 2); }
.st-skeleton--title  { height: 1.6em; width: 45%; }
.st-skeleton--circle { border-radius: var(--st-radius-circle); aspect-ratio: 1; }
.st-skeleton--pill   { border-radius: var(--st-radius-pill); height: var(--st-control-height); }
.st-skeleton--block  { min-height: 120px; }

/* Text runs end on a short line, like real prose does. Without this the block
 * reads as a grey rectangle rather than as a paragraph. */
.st-skeleton-text { display: flex; flex-direction: column; gap: .55em; }
.st-skeleton-text > span {
  display: block; height: 1em;
  background: var(--st-surface);
  border-radius: calc(var(--st-radius-surface) / 2);
  animation: st-pulse 1600ms ease-in-out infinite;
}
.st-skeleton-text > span:nth-child(2) { animation-delay: 120ms; }
.st-skeleton-text > span:nth-child(3) { animation-delay: 240ms; }
.st-skeleton-text > span:last-child { width: 62%; }

/* ======================================================================
 * LOADING BAR — indeterminate, page-top. Never blocks.
 * ==================================================================== */

.st-loading-bar {
  position: fixed; inset: 0 0 auto 0;
  z-index: var(--st-z-toast);
  height: 2px;
  background: transparent;
  overflow: hidden;
}
.st-loading-bar::after {
  content: "";
  position: absolute; inset: 0;
  width: 40%;
  background: var(--st-accent);
  animation: st-slide 1200ms var(--st-motion-ease) infinite;
}
.st-loading-bar--inline { position: relative; height: 2px; }
@keyframes st-slide {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* ======================================================================
 * PAGE LOADER — first paint only. After that, skeletons.
 * ==================================================================== */

.st-page-loader {
  display: grid; place-items: center;
  gap: var(--st-space-base);
  min-height: 60svh;
  text-align: center;
}
.st-page-loader__mark {
  font-family: var(--st-font-display);
  font-weight: var(--st-weight-light);
  font-size: var(--st-text-2xl);
  line-height: 1;
  animation: st-pulse 1600ms ease-in-out infinite;
}

/* ======================================================================
 * INLINE LOADER — busy, in place, without losing the layout.
 * ==================================================================== */

.st-inline-loader {
  display: inline-flex; align-items: center; gap: var(--st-space-s);
  font-size: var(--st-text-xs);
  color: var(--st-muted);
}

/* A region that is refreshing: readable, dimmed, non-interactive. Content
 * stays visible on purpose — replacing loaded data with a spinner throws away
 * something the user was already reading. */
.st-busy { position: relative; opacity: .55; pointer-events: none; transition: opacity var(--st-motion-base) var(--st-motion-ease); }
.st-busy[aria-busy="false"] { opacity: 1; pointer-events: auto; }

/* ======================================================================
 * PROGRESS RING — determinate, compact. Pair with a number.
 * ==================================================================== */

.st-ring { display: inline-grid; place-items: center; position: relative; }
.st-ring svg { transform: rotate(-90deg); }
.st-ring__track { stroke: var(--st-border); }
.st-ring__bar {
  stroke: var(--st-accent);
  stroke-linecap: round;
  transition: stroke-dashoffset var(--st-motion-slow) var(--st-motion-ease);
}
.st-ring__label {
  position: absolute;
  font-size: var(--st-text-xs);
  font-variant-numeric: tabular-nums;
}

/* ======================================================================
 * STEP LOADER — a long job with named stages. The honest one: it tells the
 * user what is happening rather than asking them to trust a bar.
 * ==================================================================== */

.st-step-loader { display: flex; flex-direction: column; gap: var(--st-space-s); }
.st-step-loader__item {
  display: flex; align-items: center; gap: var(--st-space-s);
  font-size: var(--st-text-sm);
  color: var(--st-muted);
}
.st-step-loader__item[data-state="active"] { color: var(--st-foreground); }
.st-step-loader__item[data-state="done"] { color: var(--st-muted); }
.st-step-loader__mark {
  display: grid; place-items: center;
  width: 20px; height: 20px; flex: none;
  border-radius: var(--st-radius-circle);
  background: var(--st-surface);
  font-size: var(--st-text-2xs);
}
.st-step-loader__item[data-state="done"] .st-step-loader__mark { background: var(--st-success); color: var(--st-background); }
.st-step-loader__item[data-state="error"] .st-step-loader__mark { background: var(--st-danger); color: var(--st-background); }

/* ======================================================================
 * OPTIMISTIC — the row exists but the server has not confirmed it.
 * ==================================================================== */

.st-optimistic { opacity: .6; }
.st-optimistic[data-failed="true"] {
  opacity: 1;
  border-left: 3px solid var(--st-danger);
  padding-left: var(--st-space-s);
}

/* ======================================================================
 * LAZY IMAGE — reserves its own space, so nothing below it jumps.
 * ==================================================================== */

.st-lazy-img { position: relative; overflow: hidden; background: var(--st-surface); border-radius: var(--st-radius-surface); }
.st-lazy-img img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity var(--st-motion-slow) var(--st-motion-ease); }
.st-lazy-img img[data-loaded="true"] { opacity: 1; }
.st-lazy-img::before { content: ""; position: absolute; inset: 0; animation: st-pulse 1600ms ease-in-out infinite; background: var(--st-surface); }
.st-lazy-img[data-loaded="true"]::before { display: none; }

/* ======================================================================
 * REFRESH — pull-to-refresh / manual refresh affordance.
 * ==================================================================== */

.st-refresh { display: flex; justify-content: center; padding: var(--st-space-s); color: var(--st-muted); font-size: var(--st-text-xs); }

/* ======================================================================
 * REDUCED MOTION — every indicator degrades to a static, still-legible form.
 * A user who cannot tolerate motion must still be able to tell it is loading.
 * ==================================================================== */

@media (prefers-reduced-motion: reduce) {
  .st-spinner {
    animation: none;
    border-top-color: var(--st-accent);
    /* Keep the gap in the ring visible so it still reads as an indicator. */
  }
  .st-skeleton,
  .st-skeleton-text > span,
  .st-page-loader__mark,
  .st-lazy-img::before { animation: none; opacity: .75; }
  .st-loading-bar::after { animation: none; width: 100%; opacity: .5; }
}


/* Structure — screens.
 * structure-definitions — this file DEFINES the vocabulary; view budgets do not apply.
 *
 * Components are not enough to build software. Every product re-invents the
 * same dozen scaffolds — an app shell, a sign-in page, a settings layout, a
 * wizard, a 404 — and re-invents them slightly differently each time, which is
 * where a design system actually leaks.
 *
 * These are whole-screen layouts. They own the page: viewport height, scroll
 * ownership, and where the one scrollable region is. That last point matters
 * most — nested scrollbars are the single most common app-shell bug, and they
 * happen because nobody decided which element scrolls.
 */

/* ======================================================================
 * APP SHELL — sidebar + topbar + one scrolling main.
 *
 * Grid, not flex: a grid can pin the rails and let exactly one cell scroll.
 * `min-height: 0` on the scroller is load-bearing — a grid child defaults to
 * min-content, so without it the main region refuses to shrink and the whole
 * page scrolls instead of the panel.
 * ==================================================================== */

.st-shell {
  display: grid;
  grid-template-areas: "rail head" "rail main";
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr;
  height: 100svh;
  overflow: hidden;
}
.st-shell__rail { grid-area: rail; overflow-y: auto; border-right: var(--st-border-hairline) solid var(--st-divider); }
.st-shell__head { grid-area: head; border-bottom: var(--st-border-hairline) solid var(--st-divider); }
.st-shell__main {
  grid-area: main;
  min-height: 0;          /* the line that makes the panel scroll, not the page */
  overflow-y: auto;
  padding: var(--st-space-m);
}

/* On a phone the rail becomes a bottom bar; a 240px sidebar on a 375px screen
 * is not a layout, it is a mistake. */
@media (max-width: 860px) {
  .st-shell {
    grid-template-areas: "head" "main" "rail";
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
  }
  .st-shell__rail { border-right: 0; border-top: var(--st-border-hairline) solid var(--st-divider); overflow-x: auto; }
  .st-shell__main { padding: var(--st-space-base); }
}

/* Marketing shell: header, flowing document, footer. The page scrolls. */
.st-shell--marketing {
  display: block;
  height: auto;
  overflow: visible;
}

/* Split shell — list beside detail. Inbox, records, anything master/detail.
 * Each pane scrolls independently; the page never does. */
.st-split-shell {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
.st-split-shell > * { min-height: 0; overflow-y: auto; }
.st-split-shell > :first-child { border-right: var(--st-border-hairline) solid var(--st-divider); }
@media (max-width: 860px) {
  /* One pane at a time on a phone. The app toggles data-pane. */
  .st-split-shell { grid-template-columns: 1fr; }
  .st-split-shell[data-pane="detail"] > :first-child,
  .st-split-shell[data-pane="list"] > :last-child { display: none; }
}

/* Focus shell — one task, no navigation. Checkout, onboarding, a wizard.
 * Deliberately has no nav: removing the exits is the point. */
.st-focus-shell {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
}
.st-focus-shell__body { display: grid; place-items: center; padding: var(--st-space-m); }
.st-focus-shell__inner { width: 100%; max-width: 560px; }

.st-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--st-space-l); }
@media (max-width: 860px) { .st-split { grid-template-columns: 1fr; } }

/* ======================================================================
 * AUTH — sign in, sign up, reset, verify.
 * ==================================================================== */

.st-auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100svh;
}
.st-auth__panel { display: grid; place-items: center; padding: var(--st-space-m); }
.st-auth__form { width: 100%; max-width: 380px; }
/* The aside carries the brand statement. It is decorative, so it is the half
 * that disappears on a phone — never the form. */
.st-auth__aside {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: var(--st-space-xl);
}
@media (max-width: 860px) {
  .st-auth { grid-template-columns: 1fr; }
  .st-auth__aside { display: none; }
}

/* ======================================================================
 * STATUS PAGE — 404, 500, 403, maintenance, offline.
 *
 * These are the screens nobody designs and everybody sees. The display face
 * carries the code; the useful part is the way out, which is why the layout
 * reserves a place for actions rather than leaving the user at a dead end.
 * ==================================================================== */

.st-status-page {
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: var(--st-space-m);
  text-align: center;
}
.st-status-page__inner { max-width: 46ch; }
.st-status-page__code {
  font-family: var(--st-font-display);
  font-weight: var(--st-weight-light);
  font-size: clamp(4rem, 16vw, 10rem);
  line-height: .85;
  opacity: .22;
}
.st-status-page__title { font-size: var(--st-text-xl); line-height: 1.2; margin-top: var(--st-space-base); }
.st-status-page__body { margin-top: var(--st-space-s); color: var(--st-muted); }
.st-status-page__actions { display: flex; flex-wrap: wrap; gap: var(--st-space-s); justify-content: center; margin-top: var(--st-space-m); }

/* ======================================================================
 * SETTINGS — a nav rail beside sections of grouped rows.
 * ==================================================================== */

.st-settings { display: grid; grid-template-columns: 220px 1fr; gap: var(--st-space-l); align-items: start; }
@media (max-width: 860px) { .st-settings { grid-template-columns: 1fr; } }

.st-settings__group { border-top: var(--st-border-hairline) solid var(--st-divider); }
.st-settings__row {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--st-space-m);
  padding-block: var(--st-space-base);
  border-bottom: var(--st-border-hairline) solid var(--st-divider);
}
.st-settings__row > :first-child { min-width: 0; }
.st-settings__row-title { font-weight: var(--st-weight-medium); }
.st-settings__row-desc { font-size: var(--st-text-xs); color: var(--st-muted); margin-top: 2px; }
@media (max-width: 560px) {
  .st-settings__row { flex-direction: column; align-items: stretch; gap: var(--st-space-s); }
}

/* Destructive settings are visually quarantined, so "delete everything" can
 * never sit one row below "change your display name". */
.st-danger-zone {
  margin-top: var(--st-space-l);
  padding: var(--st-space-base);
  border: var(--st-border-hairline) solid var(--st-danger);
  border-radius: var(--st-radius-surface);
}

/* ======================================================================
 * WIZARD — one decision per screen. The scorecard's shape, generalised.
 * ==================================================================== */

.st-wizard { display: grid; grid-template-rows: auto 1fr auto; min-height: 100svh; }
.st-wizard__head { padding: var(--st-space-base) var(--st-space-m); border-bottom: var(--st-border-hairline) solid var(--st-divider); }
.st-wizard__body { display: grid; place-items: center; padding: var(--st-space-m); }
.st-wizard__inner { width: 100%; max-width: 620px; }
.st-wizard__foot {
  display: flex; justify-content: space-between; gap: var(--st-space-s);
  padding: var(--st-space-base) var(--st-space-m);
  border-top: var(--st-border-hairline) solid var(--st-divider);
  /* Sticky, so Next is always reachable without scrolling to find it. */
  position: sticky; bottom: 0;
  background: var(--st-background);
}

/* ======================================================================
 * CHECKOUT — summary that stays put beside the form.
 * ==================================================================== */

.st-checkout { display: grid; grid-template-columns: 1fr 380px; gap: var(--st-space-l); align-items: start; }
.st-checkout__summary { position: sticky; top: var(--st-space-base); }
@media (max-width: 900px) {
  .st-checkout { grid-template-columns: 1fr; }
  /* Summary first on mobile: the total is what the user wants to confirm. */
  .st-checkout__summary { position: static; order: -1; }
}

/* ======================================================================
 * PAGE FURNITURE — headers and toolbars every app screen needs.
 * ==================================================================== */

.st-page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: var(--st-space-base); flex-wrap: wrap;
  padding-bottom: var(--st-space-base);
  border-bottom: var(--st-border-hairline) solid var(--st-divider);
  margin-bottom: var(--st-space-base);
}
.st-page-header__title { font-size: var(--st-text-xl); line-height: 1.2; }
.st-page-header__meta { font-size: var(--st-text-xs); color: var(--st-muted); margin-top: 2px; }

.st-toolbar {
  display: flex; align-items: center; gap: var(--st-space-s); flex-wrap: wrap;
  padding: var(--st-space-s) 0;
}
.st-toolbar--sticky {
  position: sticky; top: 0; z-index: var(--st-z-sticky);
  background: var(--st-background);
  border-bottom: var(--st-border-hairline) solid var(--st-divider);
}

.st-footer { padding-block: var(--st-space-l); border-top: var(--st-border-hairline) solid var(--st-divider); }
.st-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--st-space-m); }

/* Mobile bottom navigation. Respects the home-indicator inset. */
.st-bottom-nav {
  display: flex; justify-content: space-around;
  padding: var(--st-space-xs) 0 calc(var(--st-space-xs) + env(safe-area-inset-bottom));
  background: var(--st-background);
  border-top: var(--st-border-hairline) solid var(--st-divider);
}
.st-bottom-nav__item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  flex: 1;
  min-height: var(--st-control-min-touch);
  padding: var(--st-space-xs);
  font-size: var(--st-text-2xs);
  color: var(--st-muted);
  background: none; border: 0; text-decoration: none;
  cursor: pointer;
}
.st-bottom-nav__item[aria-current] { color: var(--st-foreground); }


/* Structure — refinement.
 * structure-definitions — this file DEFINES the vocabulary; view budgets do not apply.
 *
 * Deference, clarity, depth — applied honestly rather than imitated.
 *
 * The temptation when someone says "design it like Apple" is to reach for
 * frosted glass and a spring curve. Neither is the actual idea, and both are
 * forbidden here anyway. The actual ideas are:
 *
 *   DEFERENCE  the content is the interface. Chrome recedes when it is not
 *              needed and returns when it is. A title is large when you
 *              arrive and small once you are reading.
 *   CLARITY    grouping, alignment and negative space do the explaining, so
 *              the copy does not have to. This is the single largest
 *              cognitive-load lever in the whole system.
 *   DEPTH      layers and transitions convey where you are and where you came
 *              from. Apple does that with translucency; we do it with surface,
 *              inset and motion, which say the same thing on paper.
 *
 * Nothing here breaks a rule: still flat, still one accent, still two
 * typefaces, still under 400ms.
 */

/* ======================================================================
 * INSET GROUPED LIST — the highest-value pattern in this file
 *
 * A settings screen as fifteen equal rows is fifteen decisions. The same
 * fifteen in four labelled groups is four decisions and then a short scan.
 * The grouping is doing the work, not the styling.
 *
 * Details that matter and are usually missed:
 *   · the divider starts where the LABEL starts, not at the container edge,
 *     so the eye reads one column rather than a grid;
 *   · the last row has no divider, so the group closes cleanly;
 *   · the corners round only on the first and last row.
 * ==================================================================== */

.st-inset {
  background: var(--st-surface);
  border-radius: var(--st-radius-surface);
  overflow: clip;                       /* clip, so rounded corners cut rows */
}
.st-inset__row {
  display: flex;
  align-items: center;
  gap: var(--st-space-base);
  min-height: var(--st-control-min-touch);
  padding: var(--st-space-s) var(--st-space-base);
  /* The inset divider: drawn on the row, offset to the content's left edge. */
  box-shadow: inset 0 -1px 0 var(--st-divider);
  transition: background-color var(--st-motion-fast) var(--st-motion-ease);
}
.st-inset__row:last-child { box-shadow: none; }
.st-inset__row > :first-child { flex: 1; min-width: 0; }

/* When rows carry a leading glyph, the divider starts after it. */
.st-inset--iconic .st-inset__row {
  box-shadow: inset calc(var(--st-space-base) + 28px) -1px 0 -0px var(--st-divider);
}

/* Tappable rows respond, and show the affordance only where it belongs. */
a.st-inset__row,
button.st-inset__row {
  width: 100%;
  text-align: left;
  border: 0;
  background: var(--st-surface);
  font: inherit;
  color: inherit;
  cursor: pointer;
}
a.st-inset__row:hover,
button.st-inset__row:hover { background: var(--st-raised); }
a.st-inset__row:active,
button.st-inset__row:active { background: var(--st-border); }

.st-inset__label { font-size: var(--st-text-sm); }
.st-inset__value { color: var(--st-muted); font-size: var(--st-text-sm); white-space: nowrap; }
.st-inset__chevron { color: var(--st-muted); flex: none; }

/* The group header and footer. The footer is where the explanation goes —
 * moving it out of the row is what lets the row stay one short line. */
.st-inset-group { margin-bottom: var(--st-space-m); }
.st-inset-group__title {
  font-size: var(--st-text-xs);
  letter-spacing: var(--st-tracking-wider);
  text-transform: uppercase;
  color: var(--st-muted);
  padding: 0 var(--st-space-base) var(--st-space-xs);
}
.st-inset-group__note {
  font-size: var(--st-text-xs);
  color: var(--st-muted);
  padding: var(--st-space-xs) var(--st-space-base) 0;
  max-width: 60ch;
}

/* ======================================================================
 * LARGE TITLE — deference, made literal
 *
 * The title is large on arrival, because that is when you need to know where
 * you are. It shrinks into the bar as you read, because by then you don't.
 *
 * Driven by a scroll-timeline where supported, so it runs on the compositor
 * and costs nothing; the JS fallback in react/refined.tsx does the same for
 * the rest.
 * ==================================================================== */

.st-large-title {
  font-family: var(--st-font-display);
  font-weight: var(--st-weight-light);
  font-size: var(--st-text-2xl);
  line-height: 1.05;
  letter-spacing: var(--st-tracking-normal);
  padding-block: var(--st-space-s) var(--st-space-base);
  transform-origin: left center;
}

@supports (animation-timeline: scroll()) {
  .st-large-title[data-collapse] {
    animation: st-title-collapse linear both;
    animation-timeline: scroll(nearest block);
    animation-range: 0 120px;
  }
  @keyframes st-title-collapse {
    to { font-size: var(--st-text-md); opacity: .999; }
  }
  /* The bar's own hairline only appears once content has moved under it. */
  .st-shell__head[data-collapse],
  .st-navbar[data-collapse] {
    animation: st-bar-settle linear both;
    animation-timeline: scroll(nearest block);
    animation-range: 0 80px;
  }
  @keyframes st-bar-settle {
    from { border-bottom-color: transparent; }
    to   { border-bottom-color: var(--st-divider); }
  }
}

/* Fallback + JS-driven state. */
.st-large-title[data-collapsed="true"] { font-size: var(--st-text-md); }
.st-large-title { transition: font-size var(--st-motion-base) var(--st-motion-ease); }

/* ======================================================================
 * SCROLL PROGRESS — where am I in this document
 * ==================================================================== */

.st-scroll-progress {
  position: fixed; inset: 0 0 auto 0;
  z-index: var(--st-z-sticky);
  height: 2px;
  background: var(--st-accent);
  transform-origin: left;
  transform: scaleX(0);
}
@supports (animation-timeline: scroll()) {
  .st-scroll-progress {
    animation: st-progress-scroll linear both;
    animation-timeline: scroll(root block);
  }
  @keyframes st-progress-scroll { to { transform: scaleX(1); } }
}

/* ======================================================================
 * SHEET WITH DETENTS — depth, without translucency
 *
 * A half-height sheet keeps the screen behind it visible and in place, so
 * the user never loses their context. The grabber is what tells them it moves.
 * ==================================================================== */

.st-sheet {
  position: fixed; z-index: var(--st-z-modal);
  left: 0; right: 0; bottom: 0;
  max-height: 92svh;
  display: flex; flex-direction: column;
  background: var(--st-background);
  border-radius: var(--st-radius-surface) var(--st-radius-surface) 0 0;
  box-shadow: var(--st-elevation-escape-hatch);
  animation: st-enter-up var(--st-motion-base) var(--st-motion-ease-entrance) both;
  transition: height var(--st-motion-base) var(--st-motion-ease);
}
.st-sheet[data-detent="half"]  { height: 50svh; }
.st-sheet[data-detent="large"] { height: 92svh; }
.st-sheet[data-detent="auto"]  { height: auto; }
.st-sheet__grabber {
  flex: none;
  width: 36px; height: 5px;
  margin: var(--st-space-s) auto;
  border-radius: var(--st-radius-pill);
  background: var(--st-border-control);
}
.st-sheet__body { overflow-y: auto; padding: var(--st-space-base) var(--st-space-base) calc(var(--st-space-base) + env(safe-area-inset-bottom)); }

/* On a wide screen a bottom sheet is wrong — it becomes a centred panel. */
@media (min-width: 720px) {
  .st-sheet {
    left: 50%; bottom: var(--st-space-m);
    transform: translateX(-50%);
    width: min(560px, calc(100vw - var(--st-space-m)));
    border-radius: var(--st-radius-surface);
  }
}

/* ======================================================================
 * CLARITY — optical corrections
 *
 * Small, and the reason well-set text looks effortless.
 * ==================================================================== */

/* Punctuation hangs into the margin so the text edge reads straight. */
.st-prose, .st-lead, .st-display { hanging-punctuation: first last; }

/* Headings balance across lines; body avoids a one-word last line. */
h1, h2, h3, .st-display, .st-large-title { text-wrap: balance; }
p, .st-lead { text-wrap: pretty; }

/* Figures in a column must align, always. */
.st-table [data-numeric], .st-stat__value, .st-numeric, .st-count,
.st-inset__value { font-variant-numeric: tabular-nums; }

/* A focus ring that follows the shape it is on, rather than boxing it. */
:focus-visible { transition: outline-offset var(--st-motion-fast) var(--st-motion-ease); }
.st-inset__row:focus-visible { outline-offset: -2px; }

/* ======================================================================
 * DEPTH — hierarchy by inset, not by shadow
 * ==================================================================== */

/* A surface that sits *below* the page rather than above it. Reads as a
 * container for something, which a raised card does not. */
.st-recessed {
  background: var(--st-surface);
  box-shadow: inset 0 1px 0 var(--st-divider);
  border-radius: var(--st-radius-surface);
}

/* ======================================================================
 * DISCLOSURE — the row that opens
 * ==================================================================== */

.st-inset__row[aria-expanded] .st-inset__chevron {
  transition: transform var(--st-motion-base) var(--st-motion-ease);
}
.st-inset__row[aria-expanded="true"] .st-inset__chevron { transform: rotate(90deg); }

@media (prefers-reduced-motion: reduce) {
  .st-large-title, .st-sheet, .st-scroll-progress,
  .st-shell__head[data-collapse], .st-navbar[data-collapse] {
    animation: none !important;
    transition: none !important;
  }
  .st-scroll-progress { transform: scaleX(1); }
}


/* Structure — motion.
 * structure-definitions — this file DEFINES the vocabulary; view budgets do not apply.
 *
 * Liveliness, on this language's terms.
 *
 * The temptation with "make it feel alive" is to reach for gradients, glow,
 * bounce and drift. All four are forbidden here, and for a reason: they are
 * decoration, and decoration is what makes a considered interface look
 * generated. So life comes from somewhere else —
 *
 *   1. ARRIVAL. Things enter rather than appear. A card that rises 10px into
 *      place reads as placed; the same card popping in reads as a repaint.
 *   2. STAGGER. A list whose items arrive 45ms apart reads as a sequence
 *      rather than a flash. This is the single highest-value effect here and
 *      it costs nothing but a delay.
 *   3. RESPONSE. Every pressable thing acknowledges the press within 120ms.
 *      Touch UI feels dead almost entirely because nothing answers the finger.
 *   4. CONTINUITY. When a number changes, it counts. When a bar moves, it
 *      travels. The eye follows the change instead of re-reading the screen.
 *
 * Rules that still hold: no gradients, no shadows outside overlays, nothing
 * over 400ms, two easings only, and everything below collapses to a still,
 * legible state under prefers-reduced-motion.
 */

/* ======================================================================
 * 1 · ARRIVAL
 * ==================================================================== */

/* The base entrance: rise and fade. Used on almost everything. */
@keyframes st-enter {
  from { opacity: 0; transform: translateY(var(--st-motion-rise)); }
  to   { opacity: 1; transform: none; }
}
@keyframes st-enter-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes st-enter-scale {
  from { opacity: 0; transform: scale(.96); }
  to   { opacity: 1; transform: none; }
}
/* Directional, for panels and drawers that come from an edge. */
@keyframes st-enter-right { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@keyframes st-enter-left  { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
@keyframes st-enter-up    { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.st-enter        { animation: st-enter var(--st-motion-reveal) var(--st-motion-ease-entrance) both; }
.st-enter--fade  { animation-name: st-enter-fade; }
.st-enter--scale { animation-name: st-enter-scale; }
.st-enter--right { animation-name: st-enter-right; }
.st-enter--left  { animation-name: st-enter-left; }
.st-enter--up    { animation-name: st-enter-up; }

/* ======================================================================
 * 2 · STAGGER
 *
 * Applied to a CONTAINER; children inherit an increasing delay. Capped at
 * eight, because past that the last item arrives late enough to feel broken
 * rather than choreographed — a twenty-item list would keep someone waiting
 * nearly a second for the bottom row.
 * ==================================================================== */

.st-stagger > * { animation: st-enter var(--st-motion-reveal) var(--st-motion-ease-entrance) both; }
.st-stagger > *:nth-child(1) { animation-delay: 0ms; }
.st-stagger > *:nth-child(2) { animation-delay: 45ms; }
.st-stagger > *:nth-child(3) { animation-delay: 90ms; }
.st-stagger > *:nth-child(4) { animation-delay: 135ms; }
.st-stagger > *:nth-child(5) { animation-delay: 180ms; }
.st-stagger > *:nth-child(6) { animation-delay: 225ms; }
.st-stagger > *:nth-child(7) { animation-delay: 270ms; }
.st-stagger > *:nth-child(8) { animation-delay: 315ms; }
/* Everything past the cap arrives together rather than ever later. */
.st-stagger > *:nth-child(n+9) { animation-delay: 360ms; }

/* ======================================================================
 * 3 · RESPONSE — the press
 *
 * The most under-rated interaction in mobile UI. A control that does not
 * acknowledge the finger feels broken even when it works, because the only
 * feedback arrives after the network does.
 *
 * :active is used rather than a JS handler so it fires on the DOWN stroke,
 * which is the whole point — waiting for a click event is already too late.
 * ==================================================================== */

.st-btn,
.st-choice,
.st-scale__item,
.st-prompts__item,
.st-card--interactive,
.st-kanban__card,
.st-segmented__item,
.st-menu__item,
.st-command__item,
.st-bottom-nav__item {
  transition:
    transform var(--st-motion-fast) var(--st-motion-ease),
    background-color var(--st-motion-base) var(--st-motion-ease),
    border-color var(--st-motion-base) var(--st-motion-ease),
    color var(--st-motion-base) var(--st-motion-ease);
}
.st-btn:active:not(:disabled),
.st-choice:active,
.st-scale__item:active,
.st-prompts__item:active,
.st-card--interactive:active,
.st-kanban__card:active,
.st-segmented__item:active,
.st-menu__item:active,
.st-command__item:active,
.st-bottom-nav__item:active {
  transform: scale(var(--st-motion-press));
}

/* A card lifts by changing surface, never by casting a shadow. */
.st-card--interactive { transition: background-color var(--st-motion-base) var(--st-motion-ease), transform var(--st-motion-fast) var(--st-motion-ease); }

/* ======================================================================
 * 4 · CONTINUITY — things travel to their new value
 * ==================================================================== */

/* Bars grow from zero on first paint, then animate between values. */
.st-progress__bar { transition: width var(--st-motion-slow) var(--st-motion-ease-entrance); }
.st-progress--enter .st-progress__bar { animation: st-grow var(--st-motion-slow) var(--st-motion-ease-entrance) both; }
@keyframes st-grow { from { width: 0 !important; } }

.st-ring__bar { transition: stroke-dashoffset var(--st-motion-slow) var(--st-motion-ease-entrance); }

/* Chart marks grow from their baseline. transform-box + transform-origin are
 * required or an SVG rect scales from the viewport corner, not its own foot. */
.st-chart-mark {
  transform-box: fill-box;
  transform-origin: bottom;
  animation: st-rise-bar var(--st-motion-slow) var(--st-motion-ease-entrance) both;
}
@keyframes st-rise-bar { from { transform: scaleY(0); opacity: 0; } to { transform: none; opacity: 1; } }

/* Tabular figures so a counting number does not jitter its own width. */
.st-count { font-variant-numeric: tabular-nums; }

/* ======================================================================
 * 5 · SELECTION — the moving indicator
 *
 * A thumb that slides between options carries the relationship between them.
 * Two states that simply swap highlight do not.
 * ==================================================================== */

.st-segmented { position: relative; isolation: isolate; }
.st-segmented__thumb {
  position: absolute; z-index: -1;
  top: 3px; bottom: 3px; left: 0;
  border-radius: var(--st-radius-pill);
  background: var(--st-background);
  transition: transform var(--st-motion-base) var(--st-motion-ease),
              width var(--st-motion-base) var(--st-motion-ease);
}
/* With a thumb present the item's own fill is redundant. */
.st-segmented:has(.st-segmented__thumb) .st-segmented__item[aria-pressed="true"] { background: transparent; }

.st-tabs { position: relative; }
.st-tabs__ink {
  position: absolute; bottom: -1px; left: 0;
  height: 2px;
  background: var(--st-foreground);
  transition: transform var(--st-motion-base) var(--st-motion-ease),
              width var(--st-motion-base) var(--st-motion-ease);
}
.st-tabs:has(.st-tabs__ink) .st-tabs__tab[aria-selected="true"] { border-bottom-color: transparent; }

/* ======================================================================
 * 6 · DISCLOSURE — height that animates
 *
 * interpolate-size lets `height: auto` be animated where supported; the
 * grid-rows fallback does the same job everywhere else. Both are opt-in via
 * a class, because animating every <details> on a page is its own kind of noise.
 * ==================================================================== */

@supports (interpolate-size: allow-keywords) {
  .st-reveal-h { interpolate-size: allow-keywords; }
  .st-reveal-h > :not(summary) { transition: height var(--st-motion-base) var(--st-motion-ease); }
}
.st-collapse {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--st-motion-base) var(--st-motion-ease);
}
.st-collapse[data-open="true"] { grid-template-rows: 1fr; }
.st-collapse > * { overflow: hidden; }

/* ======================================================================
 * 7 · OVERLAYS — entrance, so a modal is placed rather than pasted
 * ==================================================================== */

.st-overlay { animation: st-enter-fade var(--st-motion-base) var(--st-motion-ease) both; }
.st-modal   { animation: st-enter-scale var(--st-motion-base) var(--st-motion-ease-entrance) both; }
.st-drawer  { animation: st-enter-right var(--st-motion-base) var(--st-motion-ease-entrance) both; }
.st-popover,
.st-menu,
.st-command { animation: st-enter var(--st-motion-fast) var(--st-motion-ease-entrance) both; }
.st-toast   { animation: st-enter-up var(--st-motion-base) var(--st-motion-ease-entrance) both; }
@media (max-width: 560px) {
  /* The drawer becomes a bottom sheet on a phone, so it must arrive upward. */
  .st-drawer { animation-name: st-enter-up; }
}

/* ======================================================================
 * 8 · SKELETON → CONTENT
 *
 * The swap is where a loading state usually betrays itself: the skeleton
 * vanishes and the content snaps in, so the whole screen flinches. Fading the
 * arrival makes the two read as one object resolving.
 * ==================================================================== */

.st-settled { animation: st-enter-fade var(--st-motion-base) var(--st-motion-ease) both; }

/* ======================================================================
 * 9 · FLOATING TAB BAR
 *
 * Taken from the reference: a detached pill with a circular accent action in
 * the middle. It earns its shadow — it is genuinely detached from the page,
 * which is the one case the elevation escape hatch exists for.
 * ==================================================================== */

.st-tabbar {
  position: fixed; z-index: var(--st-z-sticky);
  left: 50%; bottom: calc(var(--st-space-base) + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex; align-items: center; gap: var(--st-space-s);
  padding: var(--st-space-xs);
  background: var(--st-surface);
  border-radius: var(--st-radius-pill);
  box-shadow: var(--st-elevation-escape-hatch);
  animation: st-enter-up var(--st-motion-reveal) var(--st-motion-ease-entrance) both;
}
.st-tabbar__item {
  display: grid; place-items: center;
  width: var(--st-control-height); height: var(--st-control-height);
  border: 0; border-radius: var(--st-radius-circle);
  background: transparent; color: var(--st-muted);
  cursor: pointer;
  transition: color var(--st-motion-base) var(--st-motion-ease),
              background-color var(--st-motion-base) var(--st-motion-ease),
              transform var(--st-motion-fast) var(--st-motion-ease);
}
.st-tabbar__item:active { transform: scale(var(--st-motion-press)); }
.st-tabbar__item[aria-current] { color: var(--st-foreground); background: var(--st-background); }
/* The one accent in the bar — the primary action, per the accent doctrine. */
.st-tabbar__action {
  width: var(--st-control-height-lg); height: var(--st-control-height-lg);
  background: var(--st-accent); color: var(--st-accent-foreground);
}
.st-tabbar__action:hover { background: var(--st-accent-hover); }

/* ======================================================================
 * 10 · VIEW TRANSITIONS — cross-document where the browser supports it
 * ==================================================================== */

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: st-enter-fade var(--st-motion-fast) var(--st-motion-ease) reverse both; }
::view-transition-new(root) { animation: st-enter var(--st-motion-base) var(--st-motion-ease-entrance) both; }

/* ======================================================================
 * REDUCED MOTION
 *
 * Not a downgrade — a different, equally complete rendering. Everything
 * arrives at its final state immediately and stays fully legible. Nothing
 * here carries information that only motion conveys, which is exactly why
 * turning it all off costs nothing.
 * ==================================================================== */

@media (prefers-reduced-motion: reduce) {
  .st-enter, .st-stagger > *, .st-settled, .st-tabbar,
  .st-chart-mark, .st-overlay, .st-modal, .st-drawer,
  .st-popover, .st-menu, .st-command, .st-toast {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .st-btn:active, .st-choice:active, .st-card--interactive:active,
  .st-tabbar__item:active { transform: none; }
  .st-progress__bar, .st-ring__bar, .st-segmented__thumb, .st-tabs__ink { transition: none; }
  @view-transition { navigation: none; }
}
