@import url("components/app/tokens.css");
/* Vanilla tokens: the source of truth for every color and value the design uses.
   Prefixed --vn- so products can adopt the system without colliding with their own names.
   Light is the default. Force a scheme with data-scheme="light" | "dark" on <html> (or any
   subtree), or omit it to follow prefers-color-scheme. Optional palettes in themes/ override
   these with data-theme="…". */

:root,
[data-theme="light"],
[data-scheme="light"] {
  color-scheme: light;
  --vn-theme-t: 0;

  /* Vanilla: callouts, marks, and cream surfaces. Primary buttons use the ink and bg colors. */
  --vn-color-vanilla-fill: linear-gradient(180deg, #fffdf7, #faf3e1);
  --vn-color-vanilla-fill-hover: linear-gradient(180deg, #fffdf7, #faf3e1);
  --vn-color-vanilla-fill-press: linear-gradient(180deg, #fbf6ea, #f5ecd6);
  --vn-color-vanilla-text: #2a2c31;
  --vn-color-vanilla-text-muted: #5d5646;
  --vn-color-vanilla-hairline: rgba(0, 0, 0, 0.1);
  --vn-color-vanilla-hairline-hover: rgba(120, 92, 30, 0.3);
  --vn-color-vanilla-focus: #2a2c31;
  --vn-color-vanilla-underline: rgba(42, 44, 49, 0.4);
  --vn-color-vanilla-code: rgba(255, 255, 255, 0.55);
  --vn-shadow-vanilla: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 1px 2px rgba(29, 31, 36, 0.06);
  --vn-color-vanilla-fill-top: #fffdf7;
  --vn-color-vanilla-fill-bottom: #faf3e1;

  /* Vanilla flower (V60, header icon and Vanilla logo) border. */
  --vn-color-flower-line: #8d929a;

  /* Brand palette: the badge face gradient runs cream to dark cream, top to bottom; dark (60% black) is the vanilla beans and every logo mark; light cream and dark cream draw the flower. */
  --vn-color-cream: #fcf7e1;
  --vn-color-dark-cream: #f3e5ab;
  --vn-color-dark: rgba(0, 0, 0, 0.6);
  --vn-color-light-cream: #fffdf7;

  /* Logo art. Every SVG for Badge, Vanilla and Barista reads these as var(--token, #fallback), so the colours live here. */
  /* Shades: black over whatever is behind. 30% draws the person on the Badge tile; 15% the unfilled bars of Sequence. */
  --vn-color-shade-30: rgba(0, 0, 0, 0.3);
  --vn-color-shade-15: rgba(0, 0, 0, 0.15);
  /* The same idea in white, for marks drawn for dark mode: 40% the Badge person and Records, 20% Sequence's unfilled bars. */
  --vn-color-white-40: rgba(255, 255, 255, 0.4);
  --vn-color-white-20: rgba(255, 255, 255, 0.2);
  --vn-color-vanilla-outline: #4a463d; /* petal and bean outlines on the Vanilla flower */
  --vn-color-strainer-line: #8a8d94; /* the strainer's outlines and ears' edge */
  --vn-color-strainer-fill: #e6e9ed; /* the strainer's body, ears and neck */

  --vn-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.06);

  /* Official Grouped buttons: default matches the pager card (white fill,
     --vn-color-line hairline, ink text). Hover, press, and focus are neutral gray. */
  --vn-color-surface: #fefdf9;
  --vn-color-surface-active: #f1f0ed;
  --vn-color-on-surface: #2a2c31;
  --vn-color-outline: #c9c9c6;
  --vn-color-line-active: color-mix(in srgb, var(--vn-color-ink) 40%, var(--vn-color-outline));

  /* Official Special buttons: the Vanilla callout surface as a pill. */
  --vn-color-special-fill: linear-gradient(180deg, #fffdf7, #faf3e1);
  --vn-color-special-fill-hover: linear-gradient(180deg, #faf6ea, #f3ead0);
  --vn-color-special-fill-press: linear-gradient(180deg, #fbf6ea, #f5ecd6);
  --vn-color-special-text: #2a2c31;
  --vn-color-special-hairline: rgba(0, 0, 0, 0.1);
  --vn-color-special-hairline-hover: rgba(120, 92, 30, 0.3);
  --vn-color-special-hairline-press: rgba(120, 92, 30, 0.36);
  --vn-color-special-focus: #2a2c31;
  --vn-shadow-special: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 1px 2px rgba(29, 31, 36, 0.06);

  /* Inputs: same default as Grouped / the pager card. Hover and focus only
     darken the hairline to the pager hover mix; the fill never changes. */
  --vn-input-fill: var(--vn-color-field); /* the field fill, the same as .vn-field */
  --vn-input-ink: #111111;
  --vn-input-line: var(--vn-color-outline);
  --vn-input-hover-fill: var(--vn-input-fill);
  --vn-input-hover-line: var(--vn-color-line-active);
  --vn-input-hover-ink: var(--vn-input-ink);
  --vn-input-hover-shadow: none;
  --vn-input-focus-fill: var(--vn-input-fill);
  --vn-input-focus-line: var(--vn-color-line-active);
  --vn-input-focus-ink: var(--vn-input-ink);
  --vn-input-focus-ring: transparent;
  --vn-input-focus-shadow: none;
  --vn-input-placeholder: #6b6e75;
  --vn-input-shadow: none;

  /* Icon chips and circles. */
  --vn-icon-fill: #f8f5f0;
  --vn-icon-line: #e4ded3;
  --vn-icon-ink: #2a2c31;
  --vn-icon-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 1px 1px rgba(42, 44, 49, 0.06);

  /* Page, text, rule, and surface colors: see "Scheme colors" below. */


  /* Graphite */
  --vn-color-graphite-top: #3a3d43;
  --vn-color-graphite-bot: #2a2c31;
  --vn-color-graphite-line: #1e2024;
  --vn-color-graphite-ink: #e6e8eb;
  --vn-color-graphite-fill: linear-gradient(180deg, #3a3d43 0%, #2a2c31 100%);

  /* Solid ink button */
  --vn-color-btn: #2a2c31;
  --vn-color-btn-ink: #ffffff;

  /* Info (links and notices in blue) */
  --vn-color-info: #1f6fe5;
  --vn-color-info-ink: #ffffff;
  --vn-color-info-bg: #eaf0ff;


  /* Status */
  --vn-color-ok: #0b5a50;
  --vn-color-ok-bg: #e6f2ef;
  --vn-color-warn: #8a6100;
  --vn-color-warn-bg: #fff4d6;
  --vn-color-danger: #b42318;
  --vn-color-danger-bg: #fde8e7;
  --vn-color-switch: #d5d7db;

  /* Focus */
  --vn-color-focus: #2a2c31;
  --vn-focus-ring: 2px solid var(--vn-color-focus);
  --vn-focus-offset: 0;

  /* Type */
  --vn-font-sans: "General Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --vn-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --vn-weight-light: 300;
  --vn-weight-regular: 400;
  --vn-weight-medium: 500;
  --vn-weight-semibold: 600;
  --vn-letter-tight: -0.028em;
  --vn-letter-snug: -0.015em;
  --vn-letter-wide: 0.06em;
  --vn-leading-tight: 1.2;
  --vn-leading: 1.45;
  --vn-leading-loose: 1.5;

  --vn-text-xs: 11px;
  --vn-text-caption: 12px;
  --vn-text-sm: 13px;
  --vn-text-md: 14px;
  --vn-text-base: 15px;
  --vn-text-lg: 16px;
  --vn-text-xl: 18px;
  --vn-text-2xl: 22px;
  --vn-text-3xl: 26px;
  --vn-text-4xl: 40px;

  /* Space (pixel value in the name) */
  --vn-space-2: 2px;
  --vn-space-4: 4px;
  --vn-space-6: 6px;
  --vn-space-8: 8px;
  --vn-space-10: 10px;
  --vn-space-12: 12px;
  --vn-space-14: 14px;
  --vn-space-16: 16px;
  --vn-space-20: 20px;
  --vn-space-24: 24px;
  --vn-space-32: 32px;
  --vn-space-40: 40px;
  --vn-space-48: 48px;
  --vn-space-64: 64px;
  --vn-space-80: 80px;

  /* Radius */
  --vn-radius-2: 2px;
  --vn-radius-4: 4px;
  --vn-radius-6: 6px;
  --vn-radius-8: 8px;
  --vn-radius-10: 10px;
  --vn-radius-12: 12px;
  --vn-radius-16: 16px;
  --vn-radius-20: 20px;
  --vn-radius-24: 24px;
  --vn-radius-pill: 999px;

  /* Shadow */
  --vn-shadow-hairline: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  --vn-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --vn-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
  --vn-shadow-lg: 0 8px 28px rgba(0, 0, 0, 0.18);
  --vn-shadow-graphite: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 4px 12px rgba(0, 0, 0, 0.16);
  --vn-shadow-silver: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 1px 2px rgba(0, 0, 0, 0.08);
  --vn-shadow-dialog: 0 18px 50px rgba(0, 0, 0, 0.08);
  --vn-backdrop: rgba(0, 0, 0, 0.6);

  /* Motion
     Ease-out for enter/exit and presses (starts fast, feels responsive).
     Ease-in-out for things already moving on screen.
     Never ease-in for UI. Durations stay short; sheets are the exception.
     Travel/arrive curves follow the product's motion craft (unhurried travel, soft landings). */
  --vn-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --vn-ease-move: cubic-bezier(0.77, 0, 0.175, 1);
  --vn-ease-travel: cubic-bezier(0.45, 0, 0.1, 1);
  --vn-ease-arrive: cubic-bezier(0.25, 0.8, 0.25, 1);
  --vn-ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --vn-duration-press: 120ms;
  --vn-duration-quick: 160ms;
  --vn-duration-ui: 200ms;
  --vn-duration-panel: 280ms;
  --vn-duration-sheet: 400ms;
  --vn-stagger: 50ms;
  --vn-ease: var(--vn-duration-ui) var(--vn-ease-out);
  --vn-ease-fast: var(--vn-duration-quick) var(--vn-ease-out);

  /* Controls + icons */
  --vn-control-sm: 32px;
  --vn-control-md: 44px;
  --vn-control-lg: 48px;
  --vn-icon-sm: 16px;
  --vn-icon-md: 18px;
  --vn-icon-lg: 20px;
  --vn-icon-xl: 24px;

  /* Layout (custom properties cannot be used as media-query breakpoints) */
  --vn-nav-height: 65px;
  --vn-z-nav: 30;
  --vn-z-menu: 40;
  --vn-z-modal: 50;
  --vn-disabled: 0.45;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-scheme="light"]) {
    color-scheme: dark;
    --vn-theme-t: 1;

    /* Vanilla in dark: umber fill, vanilla text (bone), vanilla hairline (bone). */
    --vn-color-vanilla-fill: #302b26;
    --vn-color-vanilla-fill-hover: #36302a;
    --vn-color-vanilla-fill-press: #2c2823;
    --vn-color-vanilla-text: #f1efed;
    --vn-color-vanilla-text-muted: #b2b0ae;
    --vn-color-vanilla-hairline: #73716f;
    --vn-color-vanilla-hairline-hover: #92908e;
    --vn-color-vanilla-focus: #dfdddb;
    --vn-color-vanilla-underline: rgba(196, 184, 164, 0.7);
    --vn-color-vanilla-code: #36302a;
    --vn-shadow-vanilla: inset 0 1px 0 rgba(242, 238, 230, 0.14), 0 1px 2px rgba(0, 0, 0, 0.28);
    --vn-color-vanilla-fill-top: #302b26;
    --vn-color-vanilla-fill-bottom: #302b26;

    /* Vanilla flower border in dark. */
    --vn-color-flower-line: #787b82;

    --vn-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.18);

    /* Official Grouped in dark: Grouped 2 fill and gray hairline.
       Hover, press, and focus are neutral gray. */
    --vn-color-surface: #1f1d1b;
    --vn-color-surface-active: #302e2c;
    --vn-color-on-surface: #f1efed;
    --vn-color-outline: #5a5856;
    --vn-color-line-active: #757372;

    /* Official Special in dark: the Vanilla umber callout surface as a pill. */
    --vn-color-special-fill: #302b26;
    --vn-color-special-fill-hover: #36302a;
    --vn-color-special-fill-press: #2c2823;
    --vn-color-special-text: #f1efed;
    --vn-color-special-hairline: #73716f;
    --vn-color-special-hairline-hover: #92908e;
    --vn-color-special-hairline-press: #73716f;
    --vn-color-special-focus: #dfdddb;
    --vn-shadow-special: inset 0 1px 0 rgba(242, 238, 230, 0.14), 0 1px 2px rgba(0, 0, 0, 0.28);

    /* Inputs in dark: transparent so they match the page (or a raised
       surface) and read as border-only, like light. Hover and focus only
       darken the hairline; the fill never changes. */
    --vn-input-fill: var(--vn-color-field);
    --vn-input-ink: #f1efed;
    --vn-input-line: rgba(190, 190, 190, 0.34);
    --vn-input-hover-fill: var(--vn-input-fill);
    --vn-input-hover-line: rgba(190, 190, 190, 0.7);
    --vn-input-hover-ink: var(--vn-input-ink);
    --vn-input-hover-shadow: none;
    --vn-input-focus-fill: var(--vn-input-fill);
    --vn-input-focus-line: rgba(190, 190, 190, 0.7);
    --vn-input-focus-ink: var(--vn-input-ink);
    --vn-input-focus-ring: transparent;
    --vn-input-focus-shadow: none;
    --vn-input-placeholder: #8d8d8d;
    --vn-input-shadow: none;

    /* Icon chips and circles in dark: Grouped 2. */
    --vn-icon-fill: #2a2c31;
    --vn-icon-line: rgba(154, 157, 166, 0.38);
    --vn-icon-ink: #ffffff;
    --vn-icon-shadow: none;

    --vn-color-graphite-top: #3a3d43;
    --vn-color-graphite-bot: #2a2c31;
    --vn-color-graphite-line: #1e2024;
    --vn-color-graphite-ink: #e6e8eb;
    --vn-color-graphite-fill: linear-gradient(180deg, #3a3d43 0%, #2a2c31 100%);

    --vn-color-btn: #f2f3f5;
    --vn-color-btn-ink: #121318;

    --vn-color-info: #5b8cff;
    --vn-color-info-ink: #0a1020;
    --vn-color-info-bg: #16224a;

    --vn-color-ok: #5fd0bd;
    --vn-color-ok-bg: #0f2a26;
    --vn-color-warn: #ffd979;
    --vn-color-warn-bg: #2e2610;
    --vn-color-danger: #ff6b70;
    --vn-color-danger-bg: #3a1518;
    --vn-color-switch: #3a3d43;

    --vn-color-focus: #f2f3f5;
    --vn-focus-ring: 2px solid var(--vn-color-focus);

    --vn-shadow-hairline: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    --vn-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --vn-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.45);
    --vn-shadow-lg: 0 8px 28px rgba(0, 0, 0, 0.5);
    --vn-shadow-graphite: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 4px 12px rgba(0, 0, 0, 0.4);
    --vn-shadow-silver: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 1px 2px rgba(0, 0, 0, 0.4);
    --vn-shadow-dialog: none;
    --vn-backdrop: rgba(0, 0, 0, 0.7);
  }
}

[data-theme="dark"],
[data-scheme="dark"] {
  color-scheme: dark;
  --vn-theme-t: 1;

  /* Vanilla in dark: umber fill, vanilla text (bone), vanilla hairline (bone). */
  --vn-color-vanilla-fill: #302b26;
  --vn-color-vanilla-fill-hover: #36302a;
  --vn-color-vanilla-fill-press: #2c2823;
  --vn-color-vanilla-text: #f1efed;
  --vn-color-vanilla-text-muted: #b2b0ae;
  --vn-color-vanilla-hairline: #73716f;
  --vn-color-vanilla-hairline-hover: #92908e;
  --vn-color-vanilla-focus: #dfdddb;
  --vn-color-vanilla-underline: rgba(196, 184, 164, 0.7);
  --vn-color-vanilla-code: #36302a;
  --vn-shadow-vanilla: inset 0 1px 0 rgba(242, 238, 230, 0.14), 0 1px 2px rgba(0, 0, 0, 0.28);
  --vn-color-vanilla-fill-top: #302b26;
  --vn-color-vanilla-fill-bottom: #302b26;

  /* Vanilla flower border in dark. */
  --vn-color-flower-line: #787b82;

  --vn-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.18);

  /* Official Grouped in dark: Grouped 2 fill and gray hairline.
     Hover, press, and focus are neutral gray. */
  --vn-color-surface: #1f1d1b;
  --vn-color-surface-active: #302e2c;
  --vn-color-on-surface: #f1efed;
  --vn-color-outline: #5a5856;
  --vn-color-line-active: #757372;

  /* Official Special in dark: the Vanilla umber callout surface as a pill. */
  --vn-color-special-fill: #302b26;
  --vn-color-special-fill-hover: #36302a;
  --vn-color-special-fill-press: #2c2823;
  --vn-color-special-text: #f1efed;
  --vn-color-special-hairline: #73716f;
  --vn-color-special-hairline-hover: #92908e;
  --vn-color-special-hairline-press: #73716f;
  --vn-color-special-focus: #dfdddb;
  --vn-shadow-special: inset 0 1px 0 rgba(242, 238, 230, 0.14), 0 1px 2px rgba(0, 0, 0, 0.28);

  /* Inputs in dark: transparent so they match the page (or a raised
     surface) and read as border-only, like light. Hover and focus only
     darken the hairline; the fill never changes. */
  --vn-input-fill: var(--vn-color-field);
  --vn-input-ink: #f1efed;
  --vn-input-line: rgba(190, 190, 190, 0.34);
  --vn-input-hover-fill: var(--vn-input-fill);
  --vn-input-hover-line: rgba(190, 190, 190, 0.7);
  --vn-input-hover-ink: var(--vn-input-ink);
  --vn-input-hover-shadow: none;
  --vn-input-focus-fill: var(--vn-input-fill);
  --vn-input-focus-line: rgba(190, 190, 190, 0.7);
  --vn-input-focus-ink: var(--vn-input-ink);
  --vn-input-focus-ring: transparent;
  --vn-input-focus-shadow: none;
  --vn-input-placeholder: #8d8d8d;
  --vn-input-shadow: none;

  /* Icon chips and circles in dark: Grouped 2. */
  --vn-icon-fill: #2a2c31;
  --vn-icon-line: rgba(154, 157, 166, 0.38);
  --vn-icon-ink: #ffffff;
  --vn-icon-shadow: none;

  --vn-color-graphite-top: #3a3d43;
  --vn-color-graphite-bot: #2a2c31;
  --vn-color-graphite-line: #1e2024;
  --vn-color-graphite-ink: #e6e8eb;
  --vn-color-graphite-fill: linear-gradient(180deg, #3a3d43 0%, #2a2c31 100%);

  --vn-color-btn: #f2f3f5;
  --vn-color-btn-ink: #121318;

  --vn-color-info: #5b8cff;
  --vn-color-info-ink: #0a1020;
  --vn-color-info-bg: #16224a;

  --vn-color-ok: #5fd0bd;
  --vn-color-ok-bg: #0f2a26;
  --vn-color-warn: #ffd979;
  --vn-color-warn-bg: #2e2610;
  --vn-color-danger: #ff6b70;
  --vn-color-danger-bg: #3a1518;
  --vn-color-switch: #3a3d43;

  --vn-color-focus: #f2f3f5;
  --vn-focus-ring: 2px solid var(--vn-color-focus);

  --vn-shadow-hairline: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  --vn-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --vn-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.45);
  --vn-shadow-lg: 0 8px 28px rgba(0, 0, 0, 0.5);
  --vn-shadow-graphite: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 4px 12px rgba(0, 0, 0, 0.4);
  --vn-shadow-silver: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 1px 2px rgba(0, 0, 0, 0.4);
  --vn-shadow-dialog: none;
  --vn-backdrop: rgba(0, 0, 0, 0.7);
}


/* Scheme colors. Each is "light, dark" mixed by --vn-theme-t (0 light, 1 dark), so a page
   that transitions --vn-theme-t (theme-toggle.css) crossfades instead of snapping.
   Themes override any of these with their own [data-theme] rules. */
:root,
[data-theme],
[data-scheme] {
  --vn-text-t: calc(var(--vn-theme-t) * var(--vn-theme-t) * (2 - var(--vn-theme-t)));

  /* Page, text, and rules */
  --vn-color-bg: color-mix(in oklab, #ffffff calc((1 - var(--vn-theme-t)) * 100%), #0f0e0d calc(var(--vn-theme-t) * 100%));
  --vn-color-ink: color-mix(in srgb, #2a2c31 calc((1 - var(--vn-text-t)) * 100%), #f1efed calc(var(--vn-text-t) * 100%));
  --vn-color-muted: color-mix(in srgb, #797a7b calc((1 - var(--vn-text-t)) * 100%), #a4a2a1 calc(var(--vn-text-t) * 100%));
  --vn-color-quiet: color-mix(in srgb, #8e8f8f calc((1 - var(--vn-text-t)) * 100%), #858381 calc(var(--vn-text-t) * 100%));
  --vn-color-contrast: color-mix(in oklab, #2a2c31 calc((1 - var(--vn-theme-t)) * 100%), #f1efed calc(var(--vn-theme-t) * 100%));
  --vn-color-hairline: color-mix(in oklab, #ecece7 calc((1 - var(--vn-theme-t)) * 100%), #232221 calc(var(--vn-theme-t) * 100%));
  --vn-color-line: color-mix(in srgb, #e0dfdc calc((1 - var(--vn-theme-t)) * 100%), #333231 calc(var(--vn-theme-t) * 100%));
  /* Blue: the default accent, #1976d2 in light and a baby blue, #a5d4f7, in dark. The current page and section, hovered
     header icons, and neutral callouts. */
  --vn-color-accent: color-mix(in srgb, #1976d2 calc((1 - var(--vn-theme-t)) * 100%), #a5d4f7 calc(var(--vn-theme-t) * 100%));
  /* The neutral callout's fill: the accent at 11% over the page. */
  --vn-color-surface-tint: color-mix(in srgb, var(--vn-color-accent) 11%, var(--vn-color-bg));
  /* The callout tones: neutral is the accent, positive is green and negative is red. Each is a palette of three,
     like the creams: a tint (the color at 11% over the page, a callout's fill), a soft middle (40%), and the color.
     The accent's tint is --vn-color-surface-tint. */
  --vn-color-accent-soft: color-mix(in srgb, var(--vn-color-accent) 40%, var(--vn-color-bg));
  --vn-color-positive: color-mix(in srgb, #1a7f37 calc((1 - var(--vn-theme-t)) * 100%), #6ee38d calc(var(--vn-theme-t) * 100%));
  --vn-color-positive-tint: color-mix(in srgb, var(--vn-color-positive) 11%, var(--vn-color-bg));
  --vn-color-positive-soft: color-mix(in srgb, var(--vn-color-positive) 40%, var(--vn-color-bg));
  --vn-color-negative: color-mix(in srgb, #b42318 calc((1 - var(--vn-theme-t)) * 100%), #ff6b70 calc(var(--vn-theme-t) * 100%));
  --vn-color-negative-tint: color-mix(in srgb, var(--vn-color-negative) 11%, var(--vn-color-bg));
  --vn-color-negative-soft: color-mix(in srgb, var(--vn-color-negative) 40%, var(--vn-color-bg));

  /* Surfaces (dark uses the Grouped 2 graphite fill) */
  --vn-color-panel: color-mix(in oklab, #f1f0eb calc((1 - var(--vn-theme-t)) * 100%), #1f1d1b calc(var(--vn-theme-t) * 100%));
  --vn-color-card: color-mix(in oklab, #fefdf9 calc((1 - var(--vn-theme-t)) * 100%), #1f1d1b calc(var(--vn-theme-t) * 100%));
  --vn-color-field: color-mix(in oklab, #fffefc calc((1 - var(--vn-theme-t)) * 100%), #1f1d1b calc(var(--vn-theme-t) * 100%));
  --vn-color-menu: color-mix(in oklab, #fffefc calc((1 - var(--vn-theme-t)) * 100%), #1f1d1b calc(var(--vn-theme-t) * 100%));
  --vn-color-hover: color-mix(in srgb, rgba(29, 31, 36, 0.05) calc((1 - var(--vn-theme-t)) * 100%), rgba(241, 239, 237, 0.07) calc(var(--vn-theme-t) * 100%));
  --vn-color-banner: color-mix(in oklab, #eeeee9 calc((1 - var(--vn-theme-t)) * 100%), #1f1d1b calc(var(--vn-theme-t) * 100%));
  --vn-color-banner-ink: color-mix(in srgb, #58595c calc((1 - var(--vn-text-t)) * 100%), #bfbebc calc(var(--vn-text-t) * 100%));

  /* Profile tables */
  --vn-color-table: color-mix(in oklab, #f5f4ef calc((1 - var(--vn-theme-t)) * 100%), #1f1d1b calc(var(--vn-theme-t) * 100%));
  --vn-color-table-line: color-mix(in srgb, rgba(0, 0, 0, 0.07) calc((1 - var(--vn-theme-t)) * 100%), rgba(241, 239, 237, 0.14) calc(var(--vn-theme-t) * 100%));
  --vn-color-table-key: color-mix(in srgb, #7e7e7f calc((1 - var(--vn-text-t)) * 100%), #92908f calc(var(--vn-text-t) * 100%));
}


/* Semantic hooks. Themes override these. */
:root,
[data-theme="light"],
[data-scheme="light"] {

  /* Button palette (see components/button.css). */
  --vn-btn-blue: #1976d2;
  --vn-btn-blue-ink: #ffffff;
  --vn-btn-blue-soft: #e3f0fb;
  --vn-btn-blue-soft-ink: #0d47a1;
  --vn-btn-blue-line: #1976d2;

  --vn-btn-graphite: linear-gradient(180deg, #3a3d43 0%, #2a2c31 100%);
  --vn-btn-graphite-ink: #ffffff;
  --vn-btn-graphite-soft: #ececee;
  --vn-btn-graphite-soft-ink: #2a2c31;
  --vn-btn-graphite-line: #2a2c31;

  --vn-btn-gray: #e8e9eb;
  --vn-btn-gray-ink: #1d1f24;
  --vn-btn-gray-soft: #e8e9eb;
  --vn-btn-gray-soft-ink: #3a3d43;
  --vn-btn-gray-line: #c5c7cb;

  --vn-btn-silver: linear-gradient(180deg, #e8eaed 0%, #c5c9d0 52%, #b4b8c0 100%);
  --vn-btn-silver-ink: #1a1c20;
  --vn-btn-silver-soft: #eef0f3;
  --vn-btn-silver-soft-ink: #3a3d43;
  --vn-btn-silver-line: #8e939c;

  --vn-btn-dark: #111111;
  --vn-btn-dark-ink: #ffffff;
  --vn-btn-dark-soft: #ececed;
  --vn-btn-dark-soft-ink: #111111;
  --vn-btn-dark-line: #111111;

  --vn-btn-white: #ffffff;
  --vn-btn-white-ink: #1d1f24;
  --vn-btn-white-soft: #f7f7f8;
  --vn-btn-white-soft-ink: #1d1f24;
  --vn-btn-white-line: rgba(17, 17, 17, 0.16);
  --vn-btn-white-ghost-ink: #1d1f24;
  --vn-btn-white-outline-line: rgba(17, 17, 17, 0.28);

  --vn-color-text: var(--vn-color-ink);
  /* Profile tables: 20px radius, #f6f6f4 fill, #6b6e75 keys. */
  --vn-radius-table: 20px;
  --vn-radius-card: var(--vn-radius-16);
  --vn-radius-soft: var(--vn-radius-8);
  --vn-radius-control: var(--vn-radius-pill);
  --vn-radius-sheet: var(--vn-radius-24);
  --vn-radius-input: var(--vn-radius-10);
  --vn-radius-menu: var(--vn-radius-12);
  --vn-radius-modal: var(--vn-radius-24);
  --vn-radius-photo: 0px;
  --vn-ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
  --vn-ease-sheet: var(--vn-duration-sheet) var(--vn-ease-drawer);
  --vn-ease-theme: 0.6s ease;
  --vn-backdrop-blur: 16px;
  --vn-measure: 640px;
  --vn-z-sheet: 60;
  --vn-z-toast: 70;
  --vn-scroll-progress: 0;
  --vn-color-handle: #d0d0d0;
  --vn-sheet-gap: 0px;
}

[data-theme="dark"],
[data-scheme="dark"] {

  --vn-btn-blue: #64b5f6;
  --vn-btn-blue-ink: #071018;
  --vn-btn-blue-soft: #0d2136;
  --vn-btn-blue-soft-ink: #64b5f6;
  --vn-btn-blue-line: #64b5f6;

  --vn-btn-graphite: linear-gradient(180deg, #3a3d43 0%, #2a2c31 100%);
  --vn-btn-graphite-ink: #ffffff;
  --vn-btn-graphite-soft: #2a2c31;
  --vn-btn-graphite-soft-ink: #e6e8eb;
  --vn-btn-graphite-line: #9a9da6;

  --vn-btn-gray: #3a3d43;
  --vn-btn-gray-ink: #f2f3f5;
  --vn-btn-gray-soft: #2a2c31;
  --vn-btn-gray-soft-ink: #d5d7db;
  --vn-btn-gray-line: #6b6e75;

  --vn-btn-silver: linear-gradient(180deg, #9aa0a8 0%, #7a8088 100%);
  --vn-btn-silver-ink: #111111;
  --vn-btn-silver-soft: #2c2e33;
  --vn-btn-silver-soft-ink: #d0d3d8;
  --vn-btn-silver-line: #9aa0a8;

  --vn-btn-dark: #111111;
  --vn-btn-dark-ink: #ffffff;
  --vn-btn-dark-soft: #2a2c31;
  --vn-btn-dark-soft-ink: #f2f3f5;
  --vn-btn-dark-line: rgba(255, 255, 255, 0.18);

  --vn-btn-white: #ffffff;
  --vn-btn-white-ink: #111111;
  --vn-btn-white-soft: #e8e9eb;
  --vn-btn-white-soft-ink: #111111;
  --vn-btn-white-line: rgba(255, 255, 255, 0.14);
  --vn-btn-white-ghost-ink: #f2f3f5;
  --vn-btn-white-outline-line: rgba(255, 255, 255, 0.55);

  --vn-color-text: var(--vn-color-ink);
  --vn-color-handle: #5c5f66;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-scheme="light"]) {

    --vn-btn-blue: #64b5f6;
    --vn-btn-blue-ink: #071018;
    --vn-btn-blue-soft: #0d2136;
    --vn-btn-blue-soft-ink: #64b5f6;
    --vn-btn-blue-line: #64b5f6;

    --vn-btn-graphite: linear-gradient(180deg, #3a3d43 0%, #2a2c31 100%);
    --vn-btn-graphite-ink: #ffffff;
    --vn-btn-graphite-soft: #2a2c31;
    --vn-btn-graphite-soft-ink: #e6e8eb;
    --vn-btn-graphite-line: #9a9da6;

    --vn-btn-gray: #3a3d43;
    --vn-btn-gray-ink: #f2f3f5;
    --vn-btn-gray-soft: #2a2c31;
    --vn-btn-gray-soft-ink: #d5d7db;
    --vn-btn-gray-line: #6b6e75;

    --vn-btn-silver: linear-gradient(180deg, #9aa0a8 0%, #7a8088 100%);
    --vn-btn-silver-ink: #111111;
    --vn-btn-silver-soft: #2c2e33;
    --vn-btn-silver-soft-ink: #d0d3d8;
    --vn-btn-silver-line: #9aa0a8;

    --vn-btn-dark: #111111;
    --vn-btn-dark-ink: #ffffff;
    --vn-btn-dark-soft: #2a2c31;
    --vn-btn-dark-soft-ink: #f2f3f5;
    --vn-btn-dark-line: rgba(255, 255, 255, 0.18);

    --vn-btn-white: #ffffff;
    --vn-btn-white-ink: #111111;
    --vn-btn-white-soft: #e8e9eb;
    --vn-btn-white-soft-ink: #111111;
    --vn-btn-white-line: rgba(255, 255, 255, 0.14);
    --vn-btn-white-ghost-ink: #f2f3f5;
    --vn-btn-white-outline-line: rgba(255, 255, 255, 0.55);

    --vn-color-text: var(--vn-color-ink);
    --vn-color-handle: #5c5f66;
  }
}
