/* Outcraft Design System v2 — tokens
 *
 * Promoted 2026-10-31 from the micro-interactions library, where this system was
 * built against ~87 real interactions and corrected repeatedly. That version is
 * canonical: it is a strict superset of the previous tokens.css, it moves the
 * motion tokens (springs, durations, eases, press scales, stagger) out of the
 * component CSS and into tokens where they belong, and it adds the token families
 * that earlier guidance got wrong by hand: the fixed-lightness tint system, soft
 * danger fills, inverse, sheet, hover-vs-selected, and graded marks.
 *
 * Inline comments on individual tokens record the measured failure that produced
 * them. Do not strip those comments; they are the reason the value is what it is.
 *
 * See ../DESIGN_SYSTEM_RULES.md for which layer and surface profile applies,
 * and ./detail-rules.md for the component-level rules these tokens serve.
 */

/* Outcraft Design System v2 — tokens.
   Colors: the Outcraft palette. Fonts: Geist and Geist Mono (SIL OFL). Designed by Outcraft©.
   Light by default; dark via [data-theme="dark"], .dark, or the OS setting (unless data-theme="light" / .light). */
/* NEUTRAL RAMP UNIFIED 2026-11-01, on Salman's instruction.
 *
 * Before this, two ramps existed: a warm, green-cast one here for web and
 * product surfaces (canvas #FAFAF8, line #DCDED9, slate #4A504D) and a pure
 * gray one in the post-visual profile (ground #EBEBEB, border #DDDDDD,
 * secondary #4D4D4D). A tool and a post visual sitting side by side did not
 * read as the same company's work, which is the whole point of a system.
 *
 * They are now one ramp. Measured in OKLCH, the two were already the SAME
 * LIGHTNESSES and differed only in hue: #DCDED9 and #DDDDDD are both L 0.898,
 * #8A908C and #8C8C8C are both L ~0.64. So every neutral was replaced by the
 * nearest pure gray at its own lightness, which preserves every separation
 * and contrast relationship the system was built on. Dark mode got the same
 * treatment.
 *
 * ONE deliberate lightness change: --canvas, the page ground, moved from
 * #FAFAF8 (L 0.985) to #EBEBEB (L 0.940), the post ground. It separates 0.060
 * from a white card, the same figure the post profile verified.
 *
 * --soft-ground (--subtle, the inset panel) was re-derived rather than
 * lightness-matched, in both themes. On the old near-white ground an inset only
 * had to separate from the white CARD it sat in. On the new ground it has two
 * neighbours, and the ground is the binding constraint: a lightness-matched
 * #F2F2F2 sat between card white and the #EBEBEB ground and the bottom of every
 * card visually merged into the page. It is #F7F7F7, the post profile's
 * inner-box value, which clears the ground by 0.036 and reads as a gentle tint
 * on the card. Dark mode had the same collision already, inset #0C0D0C against
 * ground #0B0C0B, and is now #1F1F1F: lighter than the card, which is how depth
 * reads in dark.
 *
 * CONSEQUENCE worth knowing: --mist (--muted, --accent, --secondary) is
 * #EBEBEB, which is now the same value as the ground. That is correct by its
 * own rule, since a quiet fill is calibrated against a white CARD and keeps
 * its documented 0.060 gap there. But a quiet fill placed DIRECTLY on the page
 * ground will not separate from it. On the ground, put the control on a card,
 * or use --fill-on-subtle.
 *
 * The old warm values are kept only in this note as a record of the previous
 * version. Do not reintroduce them.
 */
:root, [data-theme="light"], .light {
  color-scheme: light;
  --aqua: #79EEEC;
  --aqua-100: #CFF8F6;
  --aqua-700: #0B7573;
  --black: #000000;
  --pink: #FFC7F6;
  --pink-100: #FFE2F9;
  --orange: #FE8C5F;
  --orange-100: #FFE9DF;
  --orange-700: #B5481A;
  --sage: #99AD88;
  --sage-100: #EBEFE5;
  --sage-700: #4F6340;
  --olive: #AA9856;
  --olive-100: #F1EEE0;
  --olive-700: #6F6228;
  --canvas: #EBEBEB;
  --paper: #E2E2E2;
  --soft-ground: #F7F7F7;
  --white: #FFFFFF;
  --line: #DDDDDD;
  --stone: #8E8E8E;
  --slate: #4E4E4E;
  --mist: #EBEBEB;
  --mist-strong: #E2E2E2;
  --lift: #FFFFFF;
  --line-strong: #C8C8C8;
  --ash: #686868;
  --aqua-hover: #5FE3E0;
  --aqua-border: #8FE0DD;
  --red-3: #feebec;
  --red-7: #f4a9aa;
  --red-9: #e5484d;
  --red-11: #ce2c31;
  --green-3: #e6f6eb;
  --green-7: #8eceaa;
  --green-9: #30a46c;
  --green-11: #218358;
  --amber-3: #fff7c2;
  --amber-7: #e9c162;
  --amber-9: #ffc53d;
  --amber-11: #ab6400;
  --blue-3: #e6f4fe;
  --blue-7: #8ec8f6;
  --blue-9: #0090ff;
  --blue-11: #0d74ce;
  --background: var(--canvas);
  --foreground: var(--black);
  --body: var(--slate);
  --card: var(--white);
  --card-foreground: var(--black);
  --popover: var(--white);
  --popover-foreground: var(--black);
  --subtle: var(--soft-ground);
  --band: var(--paper);
  --muted: var(--mist);
  --muted-hover: var(--mist-strong);
  --raised: var(--lift); /* a surface sitting on a muted track: segmented thumbs, switch knobs, slider thumbs. White in light; lighter than the track in dark, never darker. */
  --fill-on-subtle: color-mix(in oklab, var(--muted) 95%, var(--foreground)); /* a gray button or control on a gray inset panel (--subtle): a clear gray step darker than the panel in light (L 0.89 on 0.96). Not --muted (only 0.02 apart) and not white (it matches the card around the panel and looks see-through). Lighter than the panel in dark. Also the track of a segmented control on a gray panel, and tags on one. Gray text on it uses --muted-on-tint. */
  --sheet: var(--white); /* a blank sheet of paper drawn as an object (queued changes, copied slips, archived papers): white in both themes */
  --muted-foreground: var(--ash);
  --placeholder: var(--stone);
  --accent: var(--mist);
  --accent-foreground: var(--black);
  --border: var(--line);
  --border-strong: var(--line-strong);
  --input: var(--line-strong);
  --primary: var(--black);
  --primary-foreground: #ffffff;
  --secondary: var(--mist);
  --secondary-foreground: var(--black);
  --ring: var(--aqua-700);
  --brand: var(--aqua);
  --brand-hover: var(--aqua-hover);
  --brand-foreground: #000000;
  --brand-strong: var(--aqua-700);
  --brand-subtle: var(--aqua-100);
  --brand-border: var(--aqua-border);
  --brand-text: var(--aqua-700);
  --highlight: var(--aqua);
  --switch-on: var(--black);
  --danger: #ce2c31;
  --danger-foreground: #ffffff;
  --danger-subtle: var(--red-3);
  --danger-border: var(--red-7);
  --danger-text: #ca2b30;
  --danger-soft: color-mix(in srgb, var(--danger) 16%, transparent); /* soft destructive button (Decline, Delete, Cancel Subscription): tint only, never a stroke */
  --danger-soft-hover: color-mix(in srgb, var(--danger) 22%, transparent);
  --danger-soft-foreground: #AC2529; /* deeper than --danger-text so it stays above 5:1 on the stronger tint */
  --warning: var(--amber-9);
  --warning-foreground: #000000;
  --warning-subtle: var(--amber-3);
  --warning-border: var(--amber-7);
  --warning-text: #a15e00;
  --success: var(--green-11);
  --success-foreground: #ffffff;
  --success-subtle: var(--green-3);
  --success-border: var(--green-7);
  --success-text: #1f7b53;
  --info: var(--blue-11);
  --info-foreground: #ffffff;
  --info-subtle: var(--blue-3);
  --info-border: var(--blue-7);
  --info-text: #0c6cc0;
  --dot-danger: var(--red-9);
  --dot-success: var(--green-9);
  --dot-warning: var(--amber-9);
  --dot-info: var(--blue-9);
  --ai: var(--orange);
  --ai-foreground: #000000;
  --ai-subtle: var(--orange-100);
  --ai-text: var(--orange-700);
  --pop: var(--pink);
  --pop-foreground: #000000;
  --pop-subtle: var(--pink-100);
  --pop-text: var(--pink); /* Pink text by choice; decorative only on light grounds (1.4:1 on white) */
  --zone-outcraft: var(--aqua-100);
  --zone-ai: var(--orange-100);
  --zone-research: var(--sage-100);
  --zone-third: var(--pink-100);
  --zone-alt: var(--olive-100);
  --chart-1: var(--aqua);
  --chart-2: var(--pink);
  --chart-3: var(--orange);
  --chart-4: var(--sage);
  --chart-5: var(--olive);
  --chart-6: var(--aqua-700);
  --chart-7: var(--orange-700);
  --chart-8: var(--sage-700);
  --on-chart: #000000;
  --on-chart-strong: #ffffff;
  --frost: rgba(255, 255, 255, 0.74);
  --frost-border: rgba(0, 0, 0, 0.08);
  --overlay: rgba(0, 0, 0, 0.4);
  --on-color: #ffffff; /* text on status colors (red, green, blue) only. On --primary or --brand use --primary-foreground / --brand-foreground (black on Aqua in dark mode). */
  --tint-l: 0.92; /* every tinted fill (panels, chips, soft buttons, selected rows) lands on this OKLCH lightness, whatever its color: oklch(from var(--x) var(--tint-l) calc(c * var(--tint-c)) h). Pale colors like Aqua and Pink no longer wash out. */
  --tint-c: 0.4; /* share of the color's chroma the tint keeps */
  --tint-mark-l: 0.88; /* a highlight on words inside an inset or tinted box (added / removed text): a clear step from the box in both themes */
  --tint-inset-l: 0.955; /* a tinted inset (a sunken box that takes a color, like a past-version document): it keeps the inset's depth below the card and only gains the hue: oklch(from var(--x) var(--tint-inset-l) calc(c * 0.12) h) */
  --tint-ink-l: 0.48; /* colored text on a tint stays between --tint-ink-min and this lightness: oklch(from var(--x) clamp(var(--tint-ink-min), l, var(--tint-ink-l)) c h). Keeps it above 4.5:1 on the tint. */
  --tint-ink-min: 0; /* light: no floor, only the cap darkens pale text */
  --mark-thickness: 2px; /* every underline mark (dotted "unsure" words, flags): one thickness, so dots are the same size on every word */
  --mark-offset: 4px;
  --mark-l-weak: 0.70; /* a graded mark shows strength by lightness only: oklch(from var(--mark-ink) calc(var(--mark-l-weak) + (var(--mark-l-strong) - var(--mark-l-weak)) * strength) c h). Light: a vivid amber from about 2.4:1 (weak) to 4:1 (strong) on the gray panel, never brown. */
  --mark-l-strong: 0.56;
  --mark-ink: var(--warning); /* the color a graded mark is drawn from: the bright amber in light (the dark amber text color went brown), the amber text color in dark */
  --muted-on-tint: var(--body); /* secondary text on a tint: the gray muted text drops under 4.5:1 there */
  --hover: color-mix(in srgb, var(--muted) 50%, transparent); /* hover on a list row, tab or option: a lighter step than the selected fill (--muted), so the two never look the same */
  --inverse: var(--primary); /* the strongest neutral fill: black in light, off-white in dark (not Aqua). Copied states, a hint that must stand out. */
  --inverse-foreground: var(--primary-foreground); /* text or icon on --inverse: white in light, dark in dark */
  --fill-on-tint: color-mix(in srgb, var(--raised) 65%, transparent); /* secondary button sitting on a tinted panel: a lighter step of the panel's own color in both themes (a white wash here, a text-color wash in dark), never solid white, plain gray or a stroke */
  --shadow-xs: 0 1px 2px rgba(17, 17, 16, 0.05);
  --shadow-sm: 0 1px 2px rgba(17, 17, 16, 0.04), 0 1px 3px rgba(17, 17, 16, 0.07);
  --shadow-md: 0 2px 4px -1px rgba(17, 17, 16, 0.05), 0 6px 14px -3px rgba(17, 17, 16, 0.09);
  --shadow-lg: 0 4px 8px -2px rgba(17, 17, 16, 0.06), 0 16px 32px -8px rgba(17, 17, 16, 0.14);
  --shadow-xl: 0 8px 16px -4px rgba(17, 17, 16, 0.08), 0 28px 56px -12px rgba(17, 17, 16, 0.22);
}
[data-theme="dark"], .dark {
  color-scheme: dark;
  /* Dark neutrals are tuned to match how light mode *looks*, not its numbers.
     Dark grounds compress perceived difference, so fills and surfaces step about
     1.5x the light-mode lightness gap (OKLCH L), as shadcn/ui's dark muted
     (about 2x the gap) does. Card to fill
     (--mist): 0.061 light, 0.091 dark. Card to inset (--soft-ground): 0.039 light,
     0.048 dark (insets stay gentle). Lines stay at about 1.1x because thin edges already read clearly. */
  --aqua: #79EEEC;
  --aqua-100: #0E2E2D;
  --aqua-700: #79EEEC;
  --black: #000000;
  --pink: #FFC7F6;
  --pink-100: #36202F;
  --orange: #FE8C5F;
  --orange-100: #3A2117;
  --orange-700: #FE8C5F;
  --sage: #99AD88;
  --sage-100: #222A1C;
  --sage-700: #B4C5A4;
  --olive: #AA9856;
  --olive-100: #2C2816;
  --olive-700: #CBBB7E;
  --canvas: #0C0C0C;
  --paper: #0E0E0E;
  --soft-ground: #1F1F1F;
  --white: #171717;
  --line: #333333;
  --stone: #808080;
  --slate: #CCCCCC;
  --mist: #2D2D2D;
  --mist-strong: #363636;
  --lift: #424242;
  --line-strong: #464646;
  --ash: #A6A6A6;
  --aqua-hover: #9AF3F1;
  --aqua-border: #1F5654;
  --red-3: #3b1219;
  --red-7: #8c333a;
  --red-9: #e5484d;
  --red-11: #ff9592;
  --green-3: #132d21;
  --green-7: #2f7c57;
  --green-9: #30a46c;
  --green-11: #3dd68c;
  --amber-3: #302008;
  --amber-7: #824e00;
  --amber-9: #ffc53d;
  --amber-11: #ffca16;
  --blue-3: #0d2847;
  --blue-7: #205d9e;
  --blue-9: #0090ff;
  --blue-11: #70b8ff;
  --background: var(--canvas);
  --foreground: #F2F2F2;
  --body: var(--slate);
  --card: var(--white);
  --card-foreground: #F2F2F2;
  --popover: var(--white);
  --popover-foreground: #F2F2F2;
  --subtle: var(--soft-ground);
  --band: var(--paper);
  --muted: var(--mist);
  --muted-hover: var(--mist-strong);
  --raised: var(--lift);
  --fill-on-subtle: var(--muted); /* dark: the gray fill is already a clear step lighter than the inset; not --raised, which is the thumb color on a track */
  --sheet: #F2F2F2; /* dark: paper stays white (the canvas white), so a stack of pages still reads as paper */
  --muted-foreground: var(--ash);
  --placeholder: var(--stone);
  --accent: var(--mist);
  --accent-foreground: #F2F2F2;
  --border: var(--line);
  --border-strong: var(--line-strong);
  --input: var(--line-strong);
  --primary: var(--aqua);
  --primary-foreground: #000000;
  --secondary: var(--mist);
  --secondary-foreground: #F2F2F2;
  --ring: var(--aqua);
  --brand: var(--aqua);
  --brand-hover: var(--aqua-hover);
  --brand-foreground: #000000;
  --brand-strong: var(--aqua);
  --brand-subtle: var(--aqua-100);
  --brand-border: var(--aqua-border);
  --brand-text: var(--aqua);
  --highlight: var(--aqua);
  --switch-on: var(--aqua);
  --danger: #d4373c;
  --danger-foreground: #ffffff;
  --danger-subtle: var(--red-3);
  --danger-border: var(--red-7);
  --danger-text: var(--red-11);
  --danger-soft: color-mix(in srgb, var(--danger) 30%, transparent); /* dark needs about twice the light tint to separate from the card */
  --danger-soft-hover: color-mix(in srgb, var(--danger) 38%, transparent);
  --danger-soft-foreground: var(--red-11);
  --warning: var(--amber-9);
  --warning-foreground: #000000;
  --warning-subtle: var(--amber-3);
  --warning-border: var(--amber-7);
  --warning-text: var(--amber-11);
  --success: #218358;
  --success-foreground: #ffffff;
  --success-subtle: var(--green-3);
  --success-border: var(--green-7);
  --success-text: var(--green-11);
  --info: #0d74ce;
  --info-foreground: #ffffff;
  --info-subtle: var(--blue-3);
  --info-border: var(--blue-7);
  --info-text: var(--blue-11);
  --dot-danger: var(--red-9);
  --dot-success: var(--green-9);
  --dot-warning: var(--amber-9);
  --dot-info: var(--blue-9);
  --ai: var(--orange);
  --ai-foreground: #000000;
  --ai-subtle: var(--orange-100);
  --ai-text: var(--orange-700);
  --pop: var(--pink);
  --pop-foreground: #000000;
  --pop-subtle: var(--pink-100);
  --pop-text: var(--pink); /* Pink reads on dark grounds, 12.5:1 */
  --zone-outcraft: var(--aqua-100);
  --zone-ai: var(--orange-100);
  --zone-research: var(--sage-100);
  --zone-third: var(--pink-100);
  --zone-alt: var(--olive-100);
  --chart-1: var(--aqua);
  --chart-2: var(--pink);
  --chart-3: var(--orange);
  --chart-4: var(--sage);
  --chart-5: var(--olive);
  --chart-6: var(--aqua-700);
  --chart-7: var(--orange-700);
  --chart-8: var(--sage-700);
  --on-chart: #000000;
  --on-chart-strong: #000000;
  --frost: rgba(21, 23, 22, 0.74);
  --frost-border: rgba(243, 242, 238, 0.1);
  --overlay: rgba(0, 0, 0, 0.6);
  --on-color: #ffffff;
  --tint-l: 0.32; /* dark grounds: a fixed step up from the card, the same for every color */
  --tint-c: 0.45;
  --tint-inset-l: 0.15; /* dark: below the card, like --subtle, so the box still reads as an inset */
  --tint-mark-l: 0.32;
  --tint-ink-l: 1; /* dark: no cap */
  --tint-ink-min: 0.75; /* dark: a floor, so a dark color (green, Aqua 700) is lifted enough to read on the dark tint */
  --mark-l-weak: 0.55; /* dark: brighter is stronger */
  --mark-l-strong: 0.87;
  --mark-ink: var(--warning-text);
  --muted-on-tint: var(--muted-foreground);
  --inverse: var(--foreground);
  --inverse-foreground: var(--background);
  --fill-on-tint: color-mix(in srgb, var(--foreground) 14%, transparent);
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 2px 4px -1px rgba(0, 0, 0, 0.45), 0 6px 14px -3px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 4px 8px -2px rgba(0, 0, 0, 0.5), 0 16px 32px -8px rgba(0, 0, 0, 0.55);
  --shadow-xl: 0 8px 16px -4px rgba(0, 0, 0, 0.55), 0 28px 56px -12px rgba(0, 0, 0, 0.65);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not(.light) {
    color-scheme: dark;
    --aqua: #79EEEC;
    --aqua-100: #0E2E2D;
    --aqua-700: #79EEEC;
    --black: #000000;
    --pink: #FFC7F6;
    --pink-100: #36202F;
    --orange: #FE8C5F;
    --orange-100: #3A2117;
    --orange-700: #FE8C5F;
    --sage: #99AD88;
    --sage-100: #222A1C;
    --sage-700: #B4C5A4;
    --olive: #AA9856;
    --olive-100: #2C2816;
    --olive-700: #CBBB7E;
    --canvas: #0C0C0C;
    --paper: #0E0E0E;
    --soft-ground: #1F1F1F;
    --white: #171717;
    --line: #333333;
    --stone: #808080;
    --slate: #CCCCCC;
    --mist: #2D2D2D;
    --mist-strong: #363636;
    --lift: #424242;
    --line-strong: #464646;
    --ash: #A6A6A6;
    --aqua-hover: #9AF3F1;
    --aqua-border: #1F5654;
    --red-3: #3b1219;
    --red-7: #8c333a;
    --red-9: #e5484d;
    --red-11: #ff9592;
    --green-3: #132d21;
    --green-7: #2f7c57;
    --green-9: #30a46c;
    --green-11: #3dd68c;
    --amber-3: #302008;
    --amber-7: #824e00;
    --amber-9: #ffc53d;
    --amber-11: #ffca16;
    --blue-3: #0d2847;
    --blue-7: #205d9e;
    --blue-9: #0090ff;
    --blue-11: #70b8ff;
    --background: var(--canvas);
    --foreground: #F2F2F2;
    --body: var(--slate);
    --card: var(--white);
    --card-foreground: #F2F2F2;
    --popover: var(--white);
    --popover-foreground: #F2F2F2;
    --subtle: var(--soft-ground);
    --band: var(--paper);
    --muted: var(--mist);
    --muted-hover: var(--mist-strong);
    --raised: var(--lift);
    --fill-on-subtle: var(--muted);
    --sheet: #F2F2F2; /* dark: paper stays white (the canvas white), so a stack of pages still reads as paper */
    --muted-foreground: var(--ash);
    --placeholder: var(--stone);
    --accent: var(--mist);
    --accent-foreground: #F2F2F2;
    --border: var(--line);
    --border-strong: var(--line-strong);
    --input: var(--line-strong);
    --primary: var(--aqua);
    --primary-foreground: #000000;
    --secondary: var(--mist);
    --secondary-foreground: #F2F2F2;
    --ring: var(--aqua);
    --brand: var(--aqua);
    --brand-hover: var(--aqua-hover);
    --brand-foreground: #000000;
    --brand-strong: var(--aqua);
    --brand-subtle: var(--aqua-100);
    --brand-border: var(--aqua-border);
    --brand-text: var(--aqua);
    --highlight: var(--aqua);
    --switch-on: var(--aqua);
    --danger: #d4373c;
    --danger-foreground: #ffffff;
    --danger-subtle: var(--red-3);
    --danger-border: var(--red-7);
    --danger-text: var(--red-11);
    --danger-soft: color-mix(in srgb, var(--danger) 30%, transparent);
    --danger-soft-hover: color-mix(in srgb, var(--danger) 38%, transparent);
    --danger-soft-foreground: var(--red-11);
    --warning: var(--amber-9);
    --warning-foreground: #000000;
    --warning-subtle: var(--amber-3);
    --warning-border: var(--amber-7);
    --warning-text: var(--amber-11);
    --success: #218358;
    --success-foreground: #ffffff;
    --success-subtle: var(--green-3);
    --success-border: var(--green-7);
    --success-text: var(--green-11);
    --info: #0d74ce;
    --info-foreground: #ffffff;
    --info-subtle: var(--blue-3);
    --info-border: var(--blue-7);
    --info-text: var(--blue-11);
    --dot-danger: var(--red-9);
    --dot-success: var(--green-9);
    --dot-warning: var(--amber-9);
    --dot-info: var(--blue-9);
    --ai: var(--orange);
    --ai-foreground: #000000;
    --ai-subtle: var(--orange-100);
    --ai-text: var(--orange-700);
    --pop: var(--pink);
    --pop-foreground: #000000;
    --pop-subtle: var(--pink-100);
    --pop-text: var(--pink);
    --zone-outcraft: var(--aqua-100);
    --zone-ai: var(--orange-100);
    --zone-research: var(--sage-100);
    --zone-third: var(--pink-100);
    --zone-alt: var(--olive-100);
    --chart-1: var(--aqua);
    --chart-2: var(--pink);
    --chart-3: var(--orange);
    --chart-4: var(--sage);
    --chart-5: var(--olive);
    --chart-6: var(--aqua-700);
    --chart-7: var(--orange-700);
    --chart-8: var(--sage-700);
    --on-chart: #000000;
    --on-chart-strong: #000000;
    --frost: rgba(21, 23, 22, 0.74);
    --frost-border: rgba(243, 242, 238, 0.1);
    --overlay: rgba(0, 0, 0, 0.6);
    --on-color: #ffffff;
    --tint-l: 0.32;
    --tint-c: 0.45;
    --tint-inset-l: 0.15;
    --tint-mark-l: 0.32;
    --tint-ink-l: 1;
    --tint-ink-min: 0.75;
    --mark-l-weak: 0.55;
    --mark-l-strong: 0.87;
    --mark-ink: var(--warning-text);
    --muted-on-tint: var(--muted-foreground);
    --inverse: var(--foreground);
    --inverse-foreground: var(--background);
    --fill-on-tint: color-mix(in srgb, var(--foreground) 14%, transparent);
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 2px 4px -1px rgba(0, 0, 0, 0.45), 0 6px 14px -3px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 4px 8px -2px rgba(0, 0, 0, 0.5), 0 16px 32px -8px rgba(0, 0, 0, 0.55);
    --shadow-xl: 0 8px 16px -4px rgba(0, 0, 0, 0.55), 0 28px 56px -12px rgba(0, 0, 0, 0.65);
  }
}
:root {
  --font-sans: "Geist", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --hit-target: 44px;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  --control-sm: 32px;
  --control-md: 36px;
  --control-lg: 40px;
  --control-xl: 44px;
  --blur-sm: 8px;
  --blur-md: 16px;
  --blur-lg: 24px;
  --text-display: 48px; --leading-display: 52px; --tracking-display: -0.035em;
  --text-h1: 36px; --leading-h1: 40px; --tracking-h1: -0.03em;
  --text-h2: 30px; --leading-h2: 36px; --tracking-h2: -0.025em;
  --text-h3: 24px; --leading-h3: 32px; --tracking-h3: -0.02em;
  --text-title: 20px; --leading-title: 28px; --tracking-title: -0.015em;
  --text-title-sm: 17px; --leading-title-sm: 24px; --tracking-title-sm: -0.01em;
  --text-body-lg: 16px; --leading-body-lg: 24px; --tracking-body-lg: -0.005em;
  --text-body: 15px; --leading-body: 22px; --tracking-body: 0em;
  --text-ui: 14px; --leading-ui: 20px; --tracking-ui: 0em;
  --text-small: 13px; --leading-small: 18px; --tracking-small: 0em;
  --text-caption: 12px; --leading-caption: 16px; --tracking-caption: 0.005em;
  --text-code: 13px; --leading-code: 20px; --tracking-code: 0em;
  --text-numeric: 14px; --leading-numeric: 20px; --tracking-numeric: 0em;

  /* Weights. Merged in from design-system-v2's own tokens 2026-10-31: the library's
     tokens.css carried size, leading and tracking but no weights, while v2 carried
     weights and no sizes. Together they are one complete type scale. */
  --weight-display: 600;
  --weight-h1: 600;
  --weight-h2: 600;
  --weight-h3: 600;
  --weight-title: 600;
  --weight-title-sm: 600;
  --weight-body-lg: 400;
  --weight-body: 400;
  --weight-ui: 500;
  --weight-small: 400;
  --weight-caption: 500;
  --weight-code: 400;
  --weight-numeric: 500;

  /* Outcraft motion. Springs are baked to linear() from our own stiffness/damping/mass. */
  --spring-press: linear(0, 0.0189, 0.0676, 0.1361, 0.2164, 0.3025, 0.3896, 0.4743, 0.5543, 0.628, 0.6945, 0.7535, 0.8049, 0.849, 0.8863, 0.9172, 0.9425, 0.9629, 0.9789, 0.9912, 1.0004, 1.0071, 1.0116, 1.0145, 1.016, 1.0166, 1.0164, 1.0156, 1.0146, 1.0133, 1.0118, 1.0104, 1.009, 1.0076, 1.0064, 1.0053, 1.0043, 1.0034, 1.0026, 1.002, 1);
  --spring-press-duration: 310ms; /* stiffness 700, damping 42, mass 1 (ζ 0.79) */
  --spring-ui: linear(0, 0.0237, 0.0849, 0.1704, 0.2697, 0.3746, 0.4788, 0.5777, 0.6685, 0.7491, 0.8189, 0.8776, 0.9257, 0.9639, 0.9931, 1.0147, 1.0296, 1.0391, 1.0442, 1.046, 1.0451, 1.0425, 1.0387, 1.0342, 1.0294, 1.0246, 1.02, 1.0158, 1.012, 1.0087, 1.0059, 1.0037, 1.0019, 1.0005, 0.9994, 0.9987, 0.9982, 0.998, 0.9979, 0.9979, 1);
  --spring-ui-duration: 460ms; /* stiffness 400, damping 28, mass 1 (ζ 0.70) */
  --spring-panel: linear(0, 0.0198, 0.069, 0.1356, 0.211, 0.2893, 0.3667, 0.4407, 0.5096, 0.5727, 0.6297, 0.6805, 0.7255, 0.765, 0.7995, 0.8294, 0.8552, 0.8774, 0.8964, 0.9127, 0.9265, 0.9382, 0.9482, 0.9566, 0.9637, 0.9696, 0.9746, 0.9788, 0.9824, 0.9853, 0.9878, 0.9899, 0.9916, 0.993, 0.9942, 0.9952, 0.996, 0.9967, 0.9973, 0.9978, 1);
  --spring-panel-duration: 530ms; /* stiffness 260, damping 32.25, mass 1 (ζ 1.00) */
  --spring-pop: linear(0, 0.0413, 0.1464, 0.2895, 0.4487, 0.6073, 0.7529, 0.8776, 0.9776, 1.0517, 1.1013, 1.1292, 1.1394, 1.1357, 1.1225, 1.1033, 1.0813, 1.059, 1.0382, 1.0202, 1.0055, 0.9945, 0.9869, 0.9825, 0.9807, 0.9808, 0.9825, 0.985, 0.9881, 0.9912, 0.9941, 0.9967, 0.9989, 1.0005, 1.0017, 1.0024, 1.0027, 1.0027, 1.0025, 1.0022, 1);
  --spring-pop-duration: 680ms; /* stiffness 320, damping 19, mass 1 (ζ 0.53) */
  --ease-out: cubic-bezier(0.22, 0.9, 0.24, 1);
  --ease-in-out: cubic-bezier(0.62, 0, 0.32, 1);
  --ease-in: cubic-bezier(0.5, 0, 0.78, 0.24);
  --duration-instant: 80ms;
  --duration-fast: 140ms;
  --duration-base: 200ms;
  --duration-slow: 320ms;
  --duration-slower: 480ms;
  --duration-reduced: 120ms;
  --press-scale: 0.97;
  --press-scale-sm: 0.94;
  --press-scale-lg: 0.985;
  --hover-lift: -1px;
  --stagger: 40ms;
  --stagger-tight: 24ms;
  --stagger-loose: 70ms;
  --frost-saturate: 160%;
  --focus-ring: 0 0 0 2px var(--background), 0 0 0 4px var(--ring);
}
