/* scaffold-desktop: core.css + the 45 components its markup uses (alert-dialog, avatar, badge, blog-header, blog-item, button, calendar, combobox, context-menu, desktop, desktop-manager, dialog, dropdown, feature-details, hero, icon, input, label, language-switcher, logon, menubar, navigation-menu, news-item, popover, pricing, radio, select, sheet, site-footer, site-header, slider, spinner, start-button, start-menu, swap, switch, tabs, taskbar, terminal, toast, toggle, tray, typography, window, window-manager) - generated by scripts/bundle.ts */
/* ── theme/utils/default-semantic-tokens.css ── */
/**
 * defuss-shadcn - Token Layer
 * Semantic CSS custom properties matching the tweakcn.com export format.
 * OKLCH color space. Full surface/foreground pair model.
 *
 * Export a theme from tweakcn.com, replace the :root and .dark blocks,
 * and every component rethemes instantly.
 */

:root {
  color-scheme: light;

  /* -- Surface / Foreground pairs ------------------------------ */
  --background: oklch(1 0 0);
  --foreground: oklch(0.145 0 0);

  --card: oklch(1 0 0);
  --card-foreground: oklch(0.145 0 0);

  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.145 0 0);

  --primary: oklch(0.205 0 0);
  --primary-foreground: oklch(0.985 0 0);

  --secondary: oklch(0.97 0 0);
  --secondary-foreground: oklch(0.205 0 0);

  --muted: oklch(0.97 0 0);
  --muted-foreground: oklch(0.556 0 0);

  --accent: oklch(0.97 0 0);
  --accent-foreground: oklch(0.205 0 0);

  --destructive: oklch(0.577 0.245 27.325);
  --destructive-foreground: oklch(1 0 0);

  /* -- Utility tokens ------------------------------------------- */
  --border: oklch(0.922 0 0);
  --input: oklch(0.922 0 0);
  --ring: oklch(0.708 0 0);

  /* -- Sidebar tokens ------------------------------------------- */
  --sidebar: oklch(0.985 0 0);
  --sidebar-foreground: oklch(0.145 0 0);
  --sidebar-primary: oklch(0.205 0 0);
  --sidebar-primary-foreground: oklch(0.985 0 0);
  /* 0.97 was within 1.1 contrast of --sidebar - the active nav pill read as
     "no background at all"; 0.94 keeps 12+ text contrast and separates */
  --sidebar-accent: oklch(0.94 0 0);
  --sidebar-accent-foreground: oklch(0.205 0 0);
  --sidebar-border: oklch(0.922 0 0);
  --sidebar-ring: oklch(0.708 0 0);

  /* -- Chart tokens --------------------------------------------- */
  --chart-1: oklch(0.81 0.1 252);
  --chart-2: oklch(0.62 0.19 260);
  --chart-3: oklch(0.55 0.22 263);
  --chart-4: oklch(0.49 0.22 264);
  --chart-5: oklch(0.42 0.18 266);

  /* -- Typography tokens ---------------------------------------- */
  --font-sans:
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* -- Radius --------------------------------------------------- */
  --radius: 0.625rem;
  /* Derived - matches tweakcn/shadcn scale */
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);

  /* -- Spacing -------------------------------------------------- */
  --spacing: 0.25rem;

  /* -- Tracking ------------------------------------------------- */
  --tracking-normal: 0em;

  /* -- Links ---------------------------------------------------- */
  /* not part of the tweakcn export: a tweakcn theme leaves them unset and
     .link falls back to these same values */
  --link-text-decoration: underline;
  --link-underline-offset: 4px;

  /* -- Shadow scale --------------------------------------------- */
  --shadow-2xs: 0 1px 3px 0px hsl(0 0% 0% / 0.05);
  --shadow-xs: 0 1px 3px 0px hsl(0 0% 0% / 0.05);
  --shadow-sm: 0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 1px 2px -1px hsl(0 0% 0% / 0.1);
  --shadow: 0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 1px 2px -1px hsl(0 0% 0% / 0.1);
  --shadow-md: 0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 2px 4px -1px hsl(0 0% 0% / 0.1);
  --shadow-lg: 0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 4px 6px -1px hsl(0 0% 0% / 0.1);
  --shadow-xl: 0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 8px 10px -1px hsl(0 0% 0% / 0.1);
  --shadow-2xl: 0 1px 3px 0px hsl(0 0% 0% / 0.25);
}

/* -- Dark mode -------------------------------------------------- */
.dark {
  color-scheme: dark;

  --background: oklch(0.145 0 0);
  --foreground: oklch(0.985 0 0);

  --card: oklch(0.205 0 0);
  --card-foreground: oklch(0.985 0 0);

  --popover: oklch(0.269 0 0);
  --popover-foreground: oklch(0.985 0 0);

  --primary: oklch(0.922 0 0);
  --primary-foreground: oklch(0.205 0 0);

  --secondary: oklch(0.269 0 0);
  --secondary-foreground: oklch(0.985 0 0);

  --muted: oklch(0.269 0 0);
  --muted-foreground: oklch(0.708 0 0);

  --accent: oklch(0.371 0 0);
  --accent-foreground: oklch(0.985 0 0);

  --destructive: oklch(0.704 0.191 22.216);
  --destructive-foreground: oklch(0.985 0 0);

  --border: oklch(0.275 0 0);
  --input: oklch(0.325 0 0);
  --ring: oklch(0.556 0 0);

  --sidebar: oklch(0.205 0 0);
  --sidebar-foreground: oklch(0.985 0 0);
  --sidebar-primary: oklch(0.488 0.243 264.376);
  --sidebar-primary-foreground: oklch(0.985 0 0);
  --sidebar-accent: oklch(0.269 0 0);
  --sidebar-accent-foreground: oklch(0.985 0 0);
  --sidebar-border: oklch(0.275 0 0);
  --sidebar-ring: oklch(0.439 0 0);

  --chart-1: oklch(0.81 0.1 252);
  --chart-2: oklch(0.62 0.19 260);
  --chart-3: oklch(0.55 0.22 263);
  --chart-4: oklch(0.49 0.22 264);
  --chart-5: oklch(0.42 0.18 266);
}

/* ── theme/utils/sizing.css ── */
/* defuss-shadcn - optional sizing utilities.
 * Standalone native CSS. No Tailwind, scan, runtime or consumer build.
 * Numeric dimensions = n × --size-base. Spacing additionally uses density.
 * Theme export remains untouched. Place this sheet before component CSS.
 * Unlayered application rules override normal library rules.
 */
@layer components, utilities;

@layer components {
  :where(:root) {
    --size-base: var(--spacing, 0.25rem);
    --layout-density: 1;
  }

  /* Custom-property formulas resolve before inheritance. Recompute aliases
     at an explicit boundary after overriding --size-base on that boundary. */
  :where(:root, [data-size-scope]) {
    --size-xs: calc(var(--size-base) * 2);
    --size-sm: calc(var(--size-base) * 3);
    --size-md: calc(var(--size-base) * 4);
    --size-lg: calc(var(--size-base) * 6);
    --size-xl: calc(var(--size-base) * 8);
  }

  :where([data-density="compact"]) {
    --layout-density: 0.75;
  }
  :where([data-density="comfortable"]) {
    --layout-density: 1;
  }
  :where([data-density="spacious"]) {
    --layout-density: 1.25;
  }
}

@layer utilities {
  /* These helpers do not change box-sizing: native CSS sizing semantics. */
  :where(.w-0) {
    width: 0px;
  }
  :where(.h-0) {
    height: 0px;
  }
  :where(.size-0) {
    width: 0px;
    height: 0px;
  }
  :where(.min-w-0) {
    min-width: 0px;
  }
  :where(.min-h-0) {
    min-height: 0px;
  }
  :where(.max-w-0) {
    max-width: 0px;
  }
  :where(.max-h-0) {
    max-height: 0px;
  }
  :where(.inline-0) {
    inline-size: 0px;
  }
  :where(.block-0) {
    block-size: 0px;
  }
  :where(.w-0\.5) {
    width: calc(var(--size-base, var(--spacing, 0.25rem)) * 0.5);
  }
  :where(.h-0\.5) {
    height: calc(var(--size-base, var(--spacing, 0.25rem)) * 0.5);
  }
  :where(.size-0\.5) {
    width: calc(var(--size-base, var(--spacing, 0.25rem)) * 0.5);
    height: calc(var(--size-base, var(--spacing, 0.25rem)) * 0.5);
  }
  :where(.min-w-0\.5) {
    min-width: calc(var(--size-base, var(--spacing, 0.25rem)) * 0.5);
  }
  :where(.min-h-0\.5) {
    min-height: calc(var(--size-base, var(--spacing, 0.25rem)) * 0.5);
  }
  :where(.max-w-0\.5) {
    max-width: calc(var(--size-base, var(--spacing, 0.25rem)) * 0.5);
  }
  :where(.max-h-0\.5) {
    max-height: calc(var(--size-base, var(--spacing, 0.25rem)) * 0.5);
  }
  :where(.inline-0\.5) {
    inline-size: calc(var(--size-base, var(--spacing, 0.25rem)) * 0.5);
  }
  :where(.block-0\.5) {
    block-size: calc(var(--size-base, var(--spacing, 0.25rem)) * 0.5);
  }
  :where(.w-1) {
    width: calc(var(--size-base, var(--spacing, 0.25rem)) * 1);
  }
  :where(.h-1) {
    height: calc(var(--size-base, var(--spacing, 0.25rem)) * 1);
  }
  :where(.size-1) {
    width: calc(var(--size-base, var(--spacing, 0.25rem)) * 1);
    height: calc(var(--size-base, var(--spacing, 0.25rem)) * 1);
  }
  :where(.min-w-1) {
    min-width: calc(var(--size-base, var(--spacing, 0.25rem)) * 1);
  }
  :where(.min-h-1) {
    min-height: calc(var(--size-base, var(--spacing, 0.25rem)) * 1);
  }
  :where(.max-w-1) {
    max-width: calc(var(--size-base, var(--spacing, 0.25rem)) * 1);
  }
  :where(.max-h-1) {
    max-height: calc(var(--size-base, var(--spacing, 0.25rem)) * 1);
  }
  :where(.inline-1) {
    inline-size: calc(var(--size-base, var(--spacing, 0.25rem)) * 1);
  }
  :where(.block-1) {
    block-size: calc(var(--size-base, var(--spacing, 0.25rem)) * 1);
  }
  :where(.w-1\.5) {
    width: calc(var(--size-base, var(--spacing, 0.25rem)) * 1.5);
  }
  :where(.h-1\.5) {
    height: calc(var(--size-base, var(--spacing, 0.25rem)) * 1.5);
  }
  :where(.size-1\.5) {
    width: calc(var(--size-base, var(--spacing, 0.25rem)) * 1.5);
    height: calc(var(--size-base, var(--spacing, 0.25rem)) * 1.5);
  }
  :where(.min-w-1\.5) {
    min-width: calc(var(--size-base, var(--spacing, 0.25rem)) * 1.5);
  }
  :where(.min-h-1\.5) {
    min-height: calc(var(--size-base, var(--spacing, 0.25rem)) * 1.5);
  }
  :where(.max-w-1\.5) {
    max-width: calc(var(--size-base, var(--spacing, 0.25rem)) * 1.5);
  }
  :where(.max-h-1\.5) {
    max-height: calc(var(--size-base, var(--spacing, 0.25rem)) * 1.5);
  }
  :where(.inline-1\.5) {
    inline-size: calc(var(--size-base, var(--spacing, 0.25rem)) * 1.5);
  }
  :where(.block-1\.5) {
    block-size: calc(var(--size-base, var(--spacing, 0.25rem)) * 1.5);
  }
  :where(.w-2) {
    width: calc(var(--size-base, var(--spacing, 0.25rem)) * 2);
  }
  :where(.h-2) {
    height: calc(var(--size-base, var(--spacing, 0.25rem)) * 2);
  }
  :where(.size-2) {
    width: calc(var(--size-base, var(--spacing, 0.25rem)) * 2);
    height: calc(var(--size-base, var(--spacing, 0.25rem)) * 2);
  }
  :where(.min-w-2) {
    min-width: calc(var(--size-base, var(--spacing, 0.25rem)) * 2);
  }
  :where(.min-h-2) {
    min-height: calc(var(--size-base, var(--spacing, 0.25rem)) * 2);
  }
  :where(.max-w-2) {
    max-width: calc(var(--size-base, var(--spacing, 0.25rem)) * 2);
  }
  :where(.max-h-2) {
    max-height: calc(var(--size-base, var(--spacing, 0.25rem)) * 2);
  }
  :where(.inline-2) {
    inline-size: calc(var(--size-base, var(--spacing, 0.25rem)) * 2);
  }
  :where(.block-2) {
    block-size: calc(var(--size-base, var(--spacing, 0.25rem)) * 2);
  }
  :where(.w-2\.5) {
    width: calc(var(--size-base, var(--spacing, 0.25rem)) * 2.5);
  }
  :where(.h-2\.5) {
    height: calc(var(--size-base, var(--spacing, 0.25rem)) * 2.5);
  }
  :where(.size-2\.5) {
    width: calc(var(--size-base, var(--spacing, 0.25rem)) * 2.5);
    height: calc(var(--size-base, var(--spacing, 0.25rem)) * 2.5);
  }
  :where(.min-w-2\.5) {
    min-width: calc(var(--size-base, var(--spacing, 0.25rem)) * 2.5);
  }
  :where(.min-h-2\.5) {
    min-height: calc(var(--size-base, var(--spacing, 0.25rem)) * 2.5);
  }
  :where(.max-w-2\.5) {
    max-width: calc(var(--size-base, var(--spacing, 0.25rem)) * 2.5);
  }
  :where(.max-h-2\.5) {
    max-height: calc(var(--size-base, var(--spacing, 0.25rem)) * 2.5);
  }
  :where(.inline-2\.5) {
    inline-size: calc(var(--size-base, var(--spacing, 0.25rem)) * 2.5);
  }
  :where(.block-2\.5) {
    block-size: calc(var(--size-base, var(--spacing, 0.25rem)) * 2.5);
  }
  :where(.w-3) {
    width: calc(var(--size-base, var(--spacing, 0.25rem)) * 3);
  }
  :where(.h-3) {
    height: calc(var(--size-base, var(--spacing, 0.25rem)) * 3);
  }
  :where(.size-3) {
    width: calc(var(--size-base, var(--spacing, 0.25rem)) * 3);
    height: calc(var(--size-base, var(--spacing, 0.25rem)) * 3);
  }
  :where(.min-w-3) {
    min-width: calc(var(--size-base, var(--spacing, 0.25rem)) * 3);
  }
  :where(.min-h-3) {
    min-height: calc(var(--size-base, var(--spacing, 0.25rem)) * 3);
  }
  :where(.max-w-3) {
    max-width: calc(var(--size-base, var(--spacing, 0.25rem)) * 3);
  }
  :where(.max-h-3) {
    max-height: calc(var(--size-base, var(--spacing, 0.25rem)) * 3);
  }
  :where(.inline-3) {
    inline-size: calc(var(--size-base, var(--spacing, 0.25rem)) * 3);
  }
  :where(.block-3) {
    block-size: calc(var(--size-base, var(--spacing, 0.25rem)) * 3);
  }
  :where(.w-3\.5) {
    width: calc(var(--size-base, var(--spacing, 0.25rem)) * 3.5);
  }
  :where(.h-3\.5) {
    height: calc(var(--size-base, var(--spacing, 0.25rem)) * 3.5);
  }
  :where(.size-3\.5) {
    width: calc(var(--size-base, var(--spacing, 0.25rem)) * 3.5);
    height: calc(var(--size-base, var(--spacing, 0.25rem)) * 3.5);
  }
  :where(.min-w-3\.5) {
    min-width: calc(var(--size-base, var(--spacing, 0.25rem)) * 3.5);
  }
  :where(.min-h-3\.5) {
    min-height: calc(var(--size-base, var(--spacing, 0.25rem)) * 3.5);
  }
  :where(.max-w-3\.5) {
    max-width: calc(var(--size-base, var(--spacing, 0.25rem)) * 3.5);
  }
  :where(.max-h-3\.5) {
    max-height: calc(var(--size-base, var(--spacing, 0.25rem)) * 3.5);
  }
  :where(.inline-3\.5) {
    inline-size: calc(var(--size-base, var(--spacing, 0.25rem)) * 3.5);
  }
  :where(.block-3\.5) {
    block-size: calc(var(--size-base, var(--spacing, 0.25rem)) * 3.5);
  }
  :where(.w-4) {
    width: calc(var(--size-base, var(--spacing, 0.25rem)) * 4);
  }
  :where(.h-4) {
    height: calc(var(--size-base, var(--spacing, 0.25rem)) * 4);
  }
  :where(.size-4) {
    width: calc(var(--size-base, var(--spacing, 0.25rem)) * 4);
    height: calc(var(--size-base, var(--spacing, 0.25rem)) * 4);
  }
  :where(.min-w-4) {
    min-width: calc(var(--size-base, var(--spacing, 0.25rem)) * 4);
  }
  :where(.min-h-4) {
    min-height: calc(var(--size-base, var(--spacing, 0.25rem)) * 4);
  }
  :where(.max-w-4) {
    max-width: calc(var(--size-base, var(--spacing, 0.25rem)) * 4);
  }
  :where(.max-h-4) {
    max-height: calc(var(--size-base, var(--spacing, 0.25rem)) * 4);
  }
  :where(.inline-4) {
    inline-size: calc(var(--size-base, var(--spacing, 0.25rem)) * 4);
  }
  :where(.block-4) {
    block-size: calc(var(--size-base, var(--spacing, 0.25rem)) * 4);
  }
  :where(.w-5) {
    width: calc(var(--size-base, var(--spacing, 0.25rem)) * 5);
  }
  :where(.h-5) {
    height: calc(var(--size-base, var(--spacing, 0.25rem)) * 5);
  }
  :where(.size-5) {
    width: calc(var(--size-base, var(--spacing, 0.25rem)) * 5);
    height: calc(var(--size-base, var(--spacing, 0.25rem)) * 5);
  }
  :where(.min-w-5) {
    min-width: calc(var(--size-base, var(--spacing, 0.25rem)) * 5);
  }
  :where(.min-h-5) {
    min-height: calc(var(--size-base, var(--spacing, 0.25rem)) * 5);
  }
  :where(.max-w-5) {
    max-width: calc(var(--size-base, var(--spacing, 0.25rem)) * 5);
  }
  :where(.max-h-5) {
    max-height: calc(var(--size-base, var(--spacing, 0.25rem)) * 5);
  }
  :where(.inline-5) {
    inline-size: calc(var(--size-base, var(--spacing, 0.25rem)) * 5);
  }
  :where(.block-5) {
    block-size: calc(var(--size-base, var(--spacing, 0.25rem)) * 5);
  }
  :where(.w-6) {
    width: calc(var(--size-base, var(--spacing, 0.25rem)) * 6);
  }
  :where(.h-6) {
    height: calc(var(--size-base, var(--spacing, 0.25rem)) * 6);
  }
  :where(.size-6) {
    width: calc(var(--size-base, var(--spacing, 0.25rem)) * 6);
    height: calc(var(--size-base, var(--spacing, 0.25rem)) * 6);
  }
  :where(.min-w-6) {
    min-width: calc(var(--size-base, var(--spacing, 0.25rem)) * 6);
  }
  :where(.min-h-6) {
    min-height: calc(var(--size-base, var(--spacing, 0.25rem)) * 6);
  }
  :where(.max-w-6) {
    max-width: calc(var(--size-base, var(--spacing, 0.25rem)) * 6);
  }
  :where(.max-h-6) {
    max-height: calc(var(--size-base, var(--spacing, 0.25rem)) * 6);
  }
  :where(.inline-6) {
    inline-size: calc(var(--size-base, var(--spacing, 0.25rem)) * 6);
  }
  :where(.block-6) {
    block-size: calc(var(--size-base, var(--spacing, 0.25rem)) * 6);
  }
  :where(.w-7) {
    width: calc(var(--size-base, var(--spacing, 0.25rem)) * 7);
  }
  :where(.h-7) {
    height: calc(var(--size-base, var(--spacing, 0.25rem)) * 7);
  }
  :where(.size-7) {
    width: calc(var(--size-base, var(--spacing, 0.25rem)) * 7);
    height: calc(var(--size-base, var(--spacing, 0.25rem)) * 7);
  }
  :where(.min-w-7) {
    min-width: calc(var(--size-base, var(--spacing, 0.25rem)) * 7);
  }
  :where(.min-h-7) {
    min-height: calc(var(--size-base, var(--spacing, 0.25rem)) * 7);
  }
  :where(.max-w-7) {
    max-width: calc(var(--size-base, var(--spacing, 0.25rem)) * 7);
  }
  :where(.max-h-7) {
    max-height: calc(var(--size-base, var(--spacing, 0.25rem)) * 7);
  }
  :where(.inline-7) {
    inline-size: calc(var(--size-base, var(--spacing, 0.25rem)) * 7);
  }
  :where(.block-7) {
    block-size: calc(var(--size-base, var(--spacing, 0.25rem)) * 7);
  }
  :where(.w-8) {
    width: calc(var(--size-base, var(--spacing, 0.25rem)) * 8);
  }
  :where(.h-8) {
    height: calc(var(--size-base, var(--spacing, 0.25rem)) * 8);
  }
  :where(.size-8) {
    width: calc(var(--size-base, var(--spacing, 0.25rem)) * 8);
    height: calc(var(--size-base, var(--spacing, 0.25rem)) * 8);
  }
  :where(.min-w-8) {
    min-width: calc(var(--size-base, var(--spacing, 0.25rem)) * 8);
  }
  :where(.min-h-8) {
    min-height: calc(var(--size-base, var(--spacing, 0.25rem)) * 8);
  }
  :where(.max-w-8) {
    max-width: calc(var(--size-base, var(--spacing, 0.25rem)) * 8);
  }
  :where(.max-h-8) {
    max-height: calc(var(--size-base, var(--spacing, 0.25rem)) * 8);
  }
  :where(.inline-8) {
    inline-size: calc(var(--size-base, var(--spacing, 0.25rem)) * 8);
  }
  :where(.block-8) {
    block-size: calc(var(--size-base, var(--spacing, 0.25rem)) * 8);
  }
  :where(.w-9) {
    width: calc(var(--size-base, var(--spacing, 0.25rem)) * 9);
  }
  :where(.h-9) {
    height: calc(var(--size-base, var(--spacing, 0.25rem)) * 9);
  }
  :where(.size-9) {
    width: calc(var(--size-base, var(--spacing, 0.25rem)) * 9);
    height: calc(var(--size-base, var(--spacing, 0.25rem)) * 9);
  }
  :where(.min-w-9) {
    min-width: calc(var(--size-base, var(--spacing, 0.25rem)) * 9);
  }
  :where(.min-h-9) {
    min-height: calc(var(--size-base, var(--spacing, 0.25rem)) * 9);
  }
  :where(.max-w-9) {
    max-width: calc(var(--size-base, var(--spacing, 0.25rem)) * 9);
  }
  :where(.max-h-9) {
    max-height: calc(var(--size-base, var(--spacing, 0.25rem)) * 9);
  }
  :where(.inline-9) {
    inline-size: calc(var(--size-base, var(--spacing, 0.25rem)) * 9);
  }
  :where(.block-9) {
    block-size: calc(var(--size-base, var(--spacing, 0.25rem)) * 9);
  }
  :where(.w-10) {
    width: calc(var(--size-base, var(--spacing, 0.25rem)) * 10);
  }
  :where(.h-10) {
    height: calc(var(--size-base, var(--spacing, 0.25rem)) * 10);
  }
  :where(.size-10) {
    width: calc(var(--size-base, var(--spacing, 0.25rem)) * 10);
    height: calc(var(--size-base, var(--spacing, 0.25rem)) * 10);
  }
  :where(.min-w-10) {
    min-width: calc(var(--size-base, var(--spacing, 0.25rem)) * 10);
  }
  :where(.min-h-10) {
    min-height: calc(var(--size-base, var(--spacing, 0.25rem)) * 10);
  }
  :where(.max-w-10) {
    max-width: calc(var(--size-base, var(--spacing, 0.25rem)) * 10);
  }
  :where(.max-h-10) {
    max-height: calc(var(--size-base, var(--spacing, 0.25rem)) * 10);
  }
  :where(.inline-10) {
    inline-size: calc(var(--size-base, var(--spacing, 0.25rem)) * 10);
  }
  :where(.block-10) {
    block-size: calc(var(--size-base, var(--spacing, 0.25rem)) * 10);
  }
  :where(.w-11) {
    width: calc(var(--size-base, var(--spacing, 0.25rem)) * 11);
  }
  :where(.h-11) {
    height: calc(var(--size-base, var(--spacing, 0.25rem)) * 11);
  }
  :where(.size-11) {
    width: calc(var(--size-base, var(--spacing, 0.25rem)) * 11);
    height: calc(var(--size-base, var(--spacing, 0.25rem)) * 11);
  }
  :where(.min-w-11) {
    min-width: calc(var(--size-base, var(--spacing, 0.25rem)) * 11);
  }
  :where(.min-h-11) {
    min-height: calc(var(--size-base, var(--spacing, 0.25rem)) * 11);
  }
  :where(.max-w-11) {
    max-width: calc(var(--size-base, var(--spacing, 0.25rem)) * 11);
  }
  :where(.max-h-11) {
    max-height: calc(var(--size-base, var(--spacing, 0.25rem)) * 11);
  }
  :where(.inline-11) {
    inline-size: calc(var(--size-base, var(--spacing, 0.25rem)) * 11);
  }
  :where(.block-11) {
    block-size: calc(var(--size-base, var(--spacing, 0.25rem)) * 11);
  }
  :where(.w-12) {
    width: calc(var(--size-base, var(--spacing, 0.25rem)) * 12);
  }
  :where(.h-12) {
    height: calc(var(--size-base, var(--spacing, 0.25rem)) * 12);
  }
  :where(.size-12) {
    width: calc(var(--size-base, var(--spacing, 0.25rem)) * 12);
    height: calc(var(--size-base, var(--spacing, 0.25rem)) * 12);
  }
  :where(.min-w-12) {
    min-width: calc(var(--size-base, var(--spacing, 0.25rem)) * 12);
  }
  :where(.min-h-12) {
    min-height: calc(var(--size-base, var(--spacing, 0.25rem)) * 12);
  }
  :where(.max-w-12) {
    max-width: calc(var(--size-base, var(--spacing, 0.25rem)) * 12);
  }
  :where(.max-h-12) {
    max-height: calc(var(--size-base, var(--spacing, 0.25rem)) * 12);
  }
  :where(.inline-12) {
    inline-size: calc(var(--size-base, var(--spacing, 0.25rem)) * 12);
  }
  :where(.block-12) {
    block-size: calc(var(--size-base, var(--spacing, 0.25rem)) * 12);
  }
  :where(.w-14) {
    width: calc(var(--size-base, var(--spacing, 0.25rem)) * 14);
  }
  :where(.h-14) {
    height: calc(var(--size-base, var(--spacing, 0.25rem)) * 14);
  }
  :where(.size-14) {
    width: calc(var(--size-base, var(--spacing, 0.25rem)) * 14);
    height: calc(var(--size-base, var(--spacing, 0.25rem)) * 14);
  }
  :where(.min-w-14) {
    min-width: calc(var(--size-base, var(--spacing, 0.25rem)) * 14);
  }
  :where(.min-h-14) {
    min-height: calc(var(--size-base, var(--spacing, 0.25rem)) * 14);
  }
  :where(.max-w-14) {
    max-width: calc(var(--size-base, var(--spacing, 0.25rem)) * 14);
  }
  :where(.max-h-14) {
    max-height: calc(var(--size-base, var(--spacing, 0.25rem)) * 14);
  }
  :where(.inline-14) {
    inline-size: calc(var(--size-base, var(--spacing, 0.25rem)) * 14);
  }
  :where(.block-14) {
    block-size: calc(var(--size-base, var(--spacing, 0.25rem)) * 14);
  }
  :where(.w-16) {
    width: calc(var(--size-base, var(--spacing, 0.25rem)) * 16);
  }
  :where(.h-16) {
    height: calc(var(--size-base, var(--spacing, 0.25rem)) * 16);
  }
  :where(.size-16) {
    width: calc(var(--size-base, var(--spacing, 0.25rem)) * 16);
    height: calc(var(--size-base, var(--spacing, 0.25rem)) * 16);
  }
  :where(.min-w-16) {
    min-width: calc(var(--size-base, var(--spacing, 0.25rem)) * 16);
  }
  :where(.min-h-16) {
    min-height: calc(var(--size-base, var(--spacing, 0.25rem)) * 16);
  }
  :where(.max-w-16) {
    max-width: calc(var(--size-base, var(--spacing, 0.25rem)) * 16);
  }
  :where(.max-h-16) {
    max-height: calc(var(--size-base, var(--spacing, 0.25rem)) * 16);
  }
  :where(.inline-16) {
    inline-size: calc(var(--size-base, var(--spacing, 0.25rem)) * 16);
  }
  :where(.block-16) {
    block-size: calc(var(--size-base, var(--spacing, 0.25rem)) * 16);
  }
  :where(.w-20) {
    width: calc(var(--size-base, var(--spacing, 0.25rem)) * 20);
  }
  :where(.h-20) {
    height: calc(var(--size-base, var(--spacing, 0.25rem)) * 20);
  }
  :where(.size-20) {
    width: calc(var(--size-base, var(--spacing, 0.25rem)) * 20);
    height: calc(var(--size-base, var(--spacing, 0.25rem)) * 20);
  }
  :where(.min-w-20) {
    min-width: calc(var(--size-base, var(--spacing, 0.25rem)) * 20);
  }
  :where(.min-h-20) {
    min-height: calc(var(--size-base, var(--spacing, 0.25rem)) * 20);
  }
  :where(.max-w-20) {
    max-width: calc(var(--size-base, var(--spacing, 0.25rem)) * 20);
  }
  :where(.max-h-20) {
    max-height: calc(var(--size-base, var(--spacing, 0.25rem)) * 20);
  }
  :where(.inline-20) {
    inline-size: calc(var(--size-base, var(--spacing, 0.25rem)) * 20);
  }
  :where(.block-20) {
    block-size: calc(var(--size-base, var(--spacing, 0.25rem)) * 20);
  }
  :where(.w-24) {
    width: calc(var(--size-base, var(--spacing, 0.25rem)) * 24);
  }
  :where(.h-24) {
    height: calc(var(--size-base, var(--spacing, 0.25rem)) * 24);
  }
  :where(.size-24) {
    width: calc(var(--size-base, var(--spacing, 0.25rem)) * 24);
    height: calc(var(--size-base, var(--spacing, 0.25rem)) * 24);
  }
  :where(.min-w-24) {
    min-width: calc(var(--size-base, var(--spacing, 0.25rem)) * 24);
  }
  :where(.min-h-24) {
    min-height: calc(var(--size-base, var(--spacing, 0.25rem)) * 24);
  }
  :where(.max-w-24) {
    max-width: calc(var(--size-base, var(--spacing, 0.25rem)) * 24);
  }
  :where(.max-h-24) {
    max-height: calc(var(--size-base, var(--spacing, 0.25rem)) * 24);
  }
  :where(.inline-24) {
    inline-size: calc(var(--size-base, var(--spacing, 0.25rem)) * 24);
  }
  :where(.block-24) {
    block-size: calc(var(--size-base, var(--spacing, 0.25rem)) * 24);
  }
  :where(.w-28) {
    width: calc(var(--size-base, var(--spacing, 0.25rem)) * 28);
  }
  :where(.h-28) {
    height: calc(var(--size-base, var(--spacing, 0.25rem)) * 28);
  }
  :where(.size-28) {
    width: calc(var(--size-base, var(--spacing, 0.25rem)) * 28);
    height: calc(var(--size-base, var(--spacing, 0.25rem)) * 28);
  }
  :where(.min-w-28) {
    min-width: calc(var(--size-base, var(--spacing, 0.25rem)) * 28);
  }
  :where(.min-h-28) {
    min-height: calc(var(--size-base, var(--spacing, 0.25rem)) * 28);
  }
  :where(.max-w-28) {
    max-width: calc(var(--size-base, var(--spacing, 0.25rem)) * 28);
  }
  :where(.max-h-28) {
    max-height: calc(var(--size-base, var(--spacing, 0.25rem)) * 28);
  }
  :where(.inline-28) {
    inline-size: calc(var(--size-base, var(--spacing, 0.25rem)) * 28);
  }
  :where(.block-28) {
    block-size: calc(var(--size-base, var(--spacing, 0.25rem)) * 28);
  }
  :where(.w-32) {
    width: calc(var(--size-base, var(--spacing, 0.25rem)) * 32);
  }
  :where(.h-32) {
    height: calc(var(--size-base, var(--spacing, 0.25rem)) * 32);
  }
  :where(.size-32) {
    width: calc(var(--size-base, var(--spacing, 0.25rem)) * 32);
    height: calc(var(--size-base, var(--spacing, 0.25rem)) * 32);
  }
  :where(.min-w-32) {
    min-width: calc(var(--size-base, var(--spacing, 0.25rem)) * 32);
  }
  :where(.min-h-32) {
    min-height: calc(var(--size-base, var(--spacing, 0.25rem)) * 32);
  }
  :where(.max-w-32) {
    max-width: calc(var(--size-base, var(--spacing, 0.25rem)) * 32);
  }
  :where(.max-h-32) {
    max-height: calc(var(--size-base, var(--spacing, 0.25rem)) * 32);
  }
  :where(.inline-32) {
    inline-size: calc(var(--size-base, var(--spacing, 0.25rem)) * 32);
  }
  :where(.block-32) {
    block-size: calc(var(--size-base, var(--spacing, 0.25rem)) * 32);
  }
  :where(.w-36) {
    width: calc(var(--size-base, var(--spacing, 0.25rem)) * 36);
  }
  :where(.h-36) {
    height: calc(var(--size-base, var(--spacing, 0.25rem)) * 36);
  }
  :where(.size-36) {
    width: calc(var(--size-base, var(--spacing, 0.25rem)) * 36);
    height: calc(var(--size-base, var(--spacing, 0.25rem)) * 36);
  }
  :where(.min-w-36) {
    min-width: calc(var(--size-base, var(--spacing, 0.25rem)) * 36);
  }
  :where(.min-h-36) {
    min-height: calc(var(--size-base, var(--spacing, 0.25rem)) * 36);
  }
  :where(.max-w-36) {
    max-width: calc(var(--size-base, var(--spacing, 0.25rem)) * 36);
  }
  :where(.max-h-36) {
    max-height: calc(var(--size-base, var(--spacing, 0.25rem)) * 36);
  }
  :where(.inline-36) {
    inline-size: calc(var(--size-base, var(--spacing, 0.25rem)) * 36);
  }
  :where(.block-36) {
    block-size: calc(var(--size-base, var(--spacing, 0.25rem)) * 36);
  }
  :where(.w-40) {
    width: calc(var(--size-base, var(--spacing, 0.25rem)) * 40);
  }
  :where(.h-40) {
    height: calc(var(--size-base, var(--spacing, 0.25rem)) * 40);
  }
  :where(.size-40) {
    width: calc(var(--size-base, var(--spacing, 0.25rem)) * 40);
    height: calc(var(--size-base, var(--spacing, 0.25rem)) * 40);
  }
  :where(.min-w-40) {
    min-width: calc(var(--size-base, var(--spacing, 0.25rem)) * 40);
  }
  :where(.min-h-40) {
    min-height: calc(var(--size-base, var(--spacing, 0.25rem)) * 40);
  }
  :where(.max-w-40) {
    max-width: calc(var(--size-base, var(--spacing, 0.25rem)) * 40);
  }
  :where(.max-h-40) {
    max-height: calc(var(--size-base, var(--spacing, 0.25rem)) * 40);
  }
  :where(.inline-40) {
    inline-size: calc(var(--size-base, var(--spacing, 0.25rem)) * 40);
  }
  :where(.block-40) {
    block-size: calc(var(--size-base, var(--spacing, 0.25rem)) * 40);
  }
  :where(.w-48) {
    width: calc(var(--size-base, var(--spacing, 0.25rem)) * 48);
  }
  :where(.h-48) {
    height: calc(var(--size-base, var(--spacing, 0.25rem)) * 48);
  }
  :where(.size-48) {
    width: calc(var(--size-base, var(--spacing, 0.25rem)) * 48);
    height: calc(var(--size-base, var(--spacing, 0.25rem)) * 48);
  }
  :where(.min-w-48) {
    min-width: calc(var(--size-base, var(--spacing, 0.25rem)) * 48);
  }
  :where(.min-h-48) {
    min-height: calc(var(--size-base, var(--spacing, 0.25rem)) * 48);
  }
  :where(.max-w-48) {
    max-width: calc(var(--size-base, var(--spacing, 0.25rem)) * 48);
  }
  :where(.max-h-48) {
    max-height: calc(var(--size-base, var(--spacing, 0.25rem)) * 48);
  }
  :where(.inline-48) {
    inline-size: calc(var(--size-base, var(--spacing, 0.25rem)) * 48);
  }
  :where(.block-48) {
    block-size: calc(var(--size-base, var(--spacing, 0.25rem)) * 48);
  }
  :where(.w-56) {
    width: calc(var(--size-base, var(--spacing, 0.25rem)) * 56);
  }
  :where(.h-56) {
    height: calc(var(--size-base, var(--spacing, 0.25rem)) * 56);
  }
  :where(.size-56) {
    width: calc(var(--size-base, var(--spacing, 0.25rem)) * 56);
    height: calc(var(--size-base, var(--spacing, 0.25rem)) * 56);
  }
  :where(.min-w-56) {
    min-width: calc(var(--size-base, var(--spacing, 0.25rem)) * 56);
  }
  :where(.min-h-56) {
    min-height: calc(var(--size-base, var(--spacing, 0.25rem)) * 56);
  }
  :where(.max-w-56) {
    max-width: calc(var(--size-base, var(--spacing, 0.25rem)) * 56);
  }
  :where(.max-h-56) {
    max-height: calc(var(--size-base, var(--spacing, 0.25rem)) * 56);
  }
  :where(.inline-56) {
    inline-size: calc(var(--size-base, var(--spacing, 0.25rem)) * 56);
  }
  :where(.block-56) {
    block-size: calc(var(--size-base, var(--spacing, 0.25rem)) * 56);
  }
  :where(.w-64) {
    width: calc(var(--size-base, var(--spacing, 0.25rem)) * 64);
  }
  :where(.h-64) {
    height: calc(var(--size-base, var(--spacing, 0.25rem)) * 64);
  }
  :where(.size-64) {
    width: calc(var(--size-base, var(--spacing, 0.25rem)) * 64);
    height: calc(var(--size-base, var(--spacing, 0.25rem)) * 64);
  }
  :where(.min-w-64) {
    min-width: calc(var(--size-base, var(--spacing, 0.25rem)) * 64);
  }
  :where(.min-h-64) {
    min-height: calc(var(--size-base, var(--spacing, 0.25rem)) * 64);
  }
  :where(.max-w-64) {
    max-width: calc(var(--size-base, var(--spacing, 0.25rem)) * 64);
  }
  :where(.max-h-64) {
    max-height: calc(var(--size-base, var(--spacing, 0.25rem)) * 64);
  }
  :where(.inline-64) {
    inline-size: calc(var(--size-base, var(--spacing, 0.25rem)) * 64);
  }
  :where(.block-64) {
    block-size: calc(var(--size-base, var(--spacing, 0.25rem)) * 64);
  }
  :where(.w-72) {
    width: calc(var(--size-base, var(--spacing, 0.25rem)) * 72);
  }
  :where(.h-72) {
    height: calc(var(--size-base, var(--spacing, 0.25rem)) * 72);
  }
  :where(.size-72) {
    width: calc(var(--size-base, var(--spacing, 0.25rem)) * 72);
    height: calc(var(--size-base, var(--spacing, 0.25rem)) * 72);
  }
  :where(.min-w-72) {
    min-width: calc(var(--size-base, var(--spacing, 0.25rem)) * 72);
  }
  :where(.min-h-72) {
    min-height: calc(var(--size-base, var(--spacing, 0.25rem)) * 72);
  }
  :where(.max-w-72) {
    max-width: calc(var(--size-base, var(--spacing, 0.25rem)) * 72);
  }
  :where(.max-h-72) {
    max-height: calc(var(--size-base, var(--spacing, 0.25rem)) * 72);
  }
  :where(.inline-72) {
    inline-size: calc(var(--size-base, var(--spacing, 0.25rem)) * 72);
  }
  :where(.block-72) {
    block-size: calc(var(--size-base, var(--spacing, 0.25rem)) * 72);
  }
  :where(.w-80) {
    width: calc(var(--size-base, var(--spacing, 0.25rem)) * 80);
  }
  :where(.h-80) {
    height: calc(var(--size-base, var(--spacing, 0.25rem)) * 80);
  }
  :where(.size-80) {
    width: calc(var(--size-base, var(--spacing, 0.25rem)) * 80);
    height: calc(var(--size-base, var(--spacing, 0.25rem)) * 80);
  }
  :where(.min-w-80) {
    min-width: calc(var(--size-base, var(--spacing, 0.25rem)) * 80);
  }
  :where(.min-h-80) {
    min-height: calc(var(--size-base, var(--spacing, 0.25rem)) * 80);
  }
  :where(.max-w-80) {
    max-width: calc(var(--size-base, var(--spacing, 0.25rem)) * 80);
  }
  :where(.max-h-80) {
    max-height: calc(var(--size-base, var(--spacing, 0.25rem)) * 80);
  }
  :where(.inline-80) {
    inline-size: calc(var(--size-base, var(--spacing, 0.25rem)) * 80);
  }
  :where(.block-80) {
    block-size: calc(var(--size-base, var(--spacing, 0.25rem)) * 80);
  }
  :where(.w-96) {
    width: calc(var(--size-base, var(--spacing, 0.25rem)) * 96);
  }
  :where(.h-96) {
    height: calc(var(--size-base, var(--spacing, 0.25rem)) * 96);
  }
  :where(.size-96) {
    width: calc(var(--size-base, var(--spacing, 0.25rem)) * 96);
    height: calc(var(--size-base, var(--spacing, 0.25rem)) * 96);
  }
  :where(.min-w-96) {
    min-width: calc(var(--size-base, var(--spacing, 0.25rem)) * 96);
  }
  :where(.min-h-96) {
    min-height: calc(var(--size-base, var(--spacing, 0.25rem)) * 96);
  }
  :where(.max-w-96) {
    max-width: calc(var(--size-base, var(--spacing, 0.25rem)) * 96);
  }
  :where(.max-h-96) {
    max-height: calc(var(--size-base, var(--spacing, 0.25rem)) * 96);
  }
  :where(.inline-96) {
    inline-size: calc(var(--size-base, var(--spacing, 0.25rem)) * 96);
  }
  :where(.block-96) {
    block-size: calc(var(--size-base, var(--spacing, 0.25rem)) * 96);
  }
  :where(.w-px) {
    width: 1px;
  }
  :where(.h-px) {
    height: 1px;
  }
  :where(.size-px) {
    width: 1px;
    height: 1px;
  }
  :where(.min-w-px) {
    min-width: 1px;
  }
  :where(.min-h-px) {
    min-height: 1px;
  }
  :where(.max-w-px) {
    max-width: 1px;
  }
  :where(.max-h-px) {
    max-height: 1px;
  }
  :where(.inline-px) {
    inline-size: 1px;
  }
  :where(.block-px) {
    block-size: 1px;
  }

  /* Content-, parent- and viewport-relative dimensions. */
  :where(.w-auto) {
    width: auto;
  }
  :where(.w-full) {
    width: 100%;
  }
  :where(.w-min) {
    width: min-content;
  }
  :where(.w-max) {
    width: max-content;
  }
  :where(.w-fit) {
    width: fit-content;
  }
  :where(.w-1\/2) {
    width: 50%;
  }
  :where(.w-1\/3) {
    width: calc(100% / 3);
  }
  :where(.w-2\/3) {
    width: calc(200% / 3);
  }
  :where(.w-1\/4) {
    width: 25%;
  }
  :where(.w-3\/4) {
    width: 75%;
  }
  :where(.h-auto) {
    height: auto;
  }
  :where(.h-full) {
    height: 100%;
  }
  :where(.h-min) {
    height: min-content;
  }
  :where(.h-max) {
    height: max-content;
  }
  :where(.h-fit) {
    height: fit-content;
  }
  :where(.h-1\/2) {
    height: 50%;
  }
  :where(.h-1\/3) {
    height: calc(100% / 3);
  }
  :where(.h-2\/3) {
    height: calc(200% / 3);
  }
  :where(.h-1\/4) {
    height: 25%;
  }
  :where(.h-3\/4) {
    height: 75%;
  }
  :where(.inline-auto) {
    inline-size: auto;
  }
  :where(.inline-full) {
    inline-size: 100%;
  }
  :where(.inline-min) {
    inline-size: min-content;
  }
  :where(.inline-max) {
    inline-size: max-content;
  }
  :where(.inline-fit) {
    inline-size: fit-content;
  }
  :where(.inline-1\/2) {
    inline-size: 50%;
  }
  :where(.inline-1\/3) {
    inline-size: calc(100% / 3);
  }
  :where(.inline-2\/3) {
    inline-size: calc(200% / 3);
  }
  :where(.inline-1\/4) {
    inline-size: 25%;
  }
  :where(.inline-3\/4) {
    inline-size: 75%;
  }
  :where(.block-auto) {
    block-size: auto;
  }
  :where(.block-full) {
    block-size: 100%;
  }
  :where(.block-min) {
    block-size: min-content;
  }
  :where(.block-max) {
    block-size: max-content;
  }
  :where(.block-fit) {
    block-size: fit-content;
  }
  :where(.block-1\/2) {
    block-size: 50%;
  }
  :where(.block-1\/3) {
    block-size: calc(100% / 3);
  }
  :where(.block-2\/3) {
    block-size: calc(200% / 3);
  }
  :where(.block-1\/4) {
    block-size: 25%;
  }
  :where(.block-3\/4) {
    block-size: 75%;
  }
  :where(.min-w-full) {
    min-width: 100%;
  }
  :where(.min-w-min) {
    min-width: min-content;
  }
  :where(.min-w-max) {
    min-width: max-content;
  }
  :where(.min-w-fit) {
    min-width: fit-content;
  }
  :where(.min-h-full) {
    min-height: 100%;
  }
  :where(.min-h-min) {
    min-height: min-content;
  }
  :where(.min-h-max) {
    min-height: max-content;
  }
  :where(.min-h-fit) {
    min-height: fit-content;
  }
  :where(.max-w-full) {
    max-width: 100%;
  }
  :where(.max-w-min) {
    max-width: min-content;
  }
  :where(.max-w-max) {
    max-width: max-content;
  }
  :where(.max-w-fit) {
    max-width: fit-content;
  }
  :where(.max-h-full) {
    max-height: 100%;
  }
  :where(.max-h-min) {
    max-height: min-content;
  }
  :where(.max-h-max) {
    max-height: max-content;
  }
  :where(.max-h-fit) {
    max-height: fit-content;
  }
  :where(.max-w-none) {
    max-width: none;
  }
  :where(.max-h-none) {
    max-height: none;
  }
  :where(.h-screen) {
    height: 100vh;
  }
  :where(.min-h-screen) {
    min-height: 100vh;
  }
  :where(.max-h-screen) {
    max-height: 100vh;
  }
  :where(.h-dvh) {
    height: 100dvh;
  }
  :where(.min-h-dvh) {
    min-height: 100dvh;
  }
  :where(.max-h-dvh) {
    max-height: 100dvh;
  }
  :where(.h-svh) {
    height: 100svh;
  }
  :where(.min-h-svh) {
    min-height: 100svh;
  }
  :where(.max-h-svh) {
    max-height: 100svh;
  }
  :where(.h-lvh) {
    height: 100lvh;
  }
  :where(.min-h-lvh) {
    min-height: 100lvh;
  }
  :where(.max-h-lvh) {
    max-height: 100lvh;
  }
  :where(.w-screen) {
    width: 100vw;
  }
  :where(.box-border) {
    box-sizing: border-box;
  }
  :where(.box-content) {
    box-sizing: content-box;
  }

  /* Spacing: compatible names; density is an explicit extension. */
  :where(.gap-0) {
    gap: 0px;
  }
  :where(.gap-x-0) {
    column-gap: 0px;
  }
  :where(.gap-y-0) {
    row-gap: 0px;
  }
  :where(.p-0) {
    padding: 0px;
  }
  :where(.px-0) {
    padding-inline: 0px;
  }
  :where(.py-0) {
    padding-block: 0px;
  }
  :where(.pt-0) {
    padding-top: 0px;
  }
  :where(.pr-0) {
    padding-right: 0px;
  }
  :where(.pb-0) {
    padding-bottom: 0px;
  }
  :where(.pl-0) {
    padding-left: 0px;
  }
  :where(.ps-0) {
    padding-inline-start: 0px;
  }
  :where(.pe-0) {
    padding-inline-end: 0px;
  }
  :where(.m-0) {
    margin: 0px;
  }
  :where(.mx-0) {
    margin-inline: 0px;
  }
  :where(.my-0) {
    margin-block: 0px;
  }
  :where(.mt-0) {
    margin-top: 0px;
  }
  :where(.mr-0) {
    margin-right: 0px;
  }
  :where(.mb-0) {
    margin-bottom: 0px;
  }
  :where(.ml-0) {
    margin-left: 0px;
  }
  :where(.ms-0) {
    margin-inline-start: 0px;
  }
  :where(.me-0) {
    margin-inline-end: 0px;
  }
  :where(.gap-0\.5) {
    gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 0.5 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-x-0\.5) {
    column-gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 0.5 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-y-0\.5) {
    row-gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 0.5 * max(0, var(--layout-density, 1)));
  }
  :where(.p-0\.5) {
    padding: calc(var(--size-base, var(--spacing, 0.25rem)) * 0.5 * max(0, var(--layout-density, 1)));
  }
  :where(.px-0\.5) {
    padding-inline: calc(var(--size-base, var(--spacing, 0.25rem)) * 0.5 * max(0, var(--layout-density, 1)));
  }
  :where(.py-0\.5) {
    padding-block: calc(var(--size-base, var(--spacing, 0.25rem)) * 0.5 * max(0, var(--layout-density, 1)));
  }
  :where(.pt-0\.5) {
    padding-top: calc(var(--size-base, var(--spacing, 0.25rem)) * 0.5 * max(0, var(--layout-density, 1)));
  }
  :where(.pr-0\.5) {
    padding-right: calc(var(--size-base, var(--spacing, 0.25rem)) * 0.5 * max(0, var(--layout-density, 1)));
  }
  :where(.pb-0\.5) {
    padding-bottom: calc(var(--size-base, var(--spacing, 0.25rem)) * 0.5 * max(0, var(--layout-density, 1)));
  }
  :where(.pl-0\.5) {
    padding-left: calc(var(--size-base, var(--spacing, 0.25rem)) * 0.5 * max(0, var(--layout-density, 1)));
  }
  :where(.ps-0\.5) {
    padding-inline-start: calc(var(--size-base, var(--spacing, 0.25rem)) * 0.5 * max(0, var(--layout-density, 1)));
  }
  :where(.pe-0\.5) {
    padding-inline-end: calc(var(--size-base, var(--spacing, 0.25rem)) * 0.5 * max(0, var(--layout-density, 1)));
  }
  :where(.m-0\.5) {
    margin: calc(var(--size-base, var(--spacing, 0.25rem)) * 0.5 * max(0, var(--layout-density, 1)));
  }
  :where(.mx-0\.5) {
    margin-inline: calc(var(--size-base, var(--spacing, 0.25rem)) * 0.5 * max(0, var(--layout-density, 1)));
  }
  :where(.my-0\.5) {
    margin-block: calc(var(--size-base, var(--spacing, 0.25rem)) * 0.5 * max(0, var(--layout-density, 1)));
  }
  :where(.mt-0\.5) {
    margin-top: calc(var(--size-base, var(--spacing, 0.25rem)) * 0.5 * max(0, var(--layout-density, 1)));
  }
  :where(.mr-0\.5) {
    margin-right: calc(var(--size-base, var(--spacing, 0.25rem)) * 0.5 * max(0, var(--layout-density, 1)));
  }
  :where(.mb-0\.5) {
    margin-bottom: calc(var(--size-base, var(--spacing, 0.25rem)) * 0.5 * max(0, var(--layout-density, 1)));
  }
  :where(.ml-0\.5) {
    margin-left: calc(var(--size-base, var(--spacing, 0.25rem)) * 0.5 * max(0, var(--layout-density, 1)));
  }
  :where(.ms-0\.5) {
    margin-inline-start: calc(var(--size-base, var(--spacing, 0.25rem)) * 0.5 * max(0, var(--layout-density, 1)));
  }
  :where(.me-0\.5) {
    margin-inline-end: calc(var(--size-base, var(--spacing, 0.25rem)) * 0.5 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-1) {
    gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 1 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-x-1) {
    column-gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 1 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-y-1) {
    row-gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 1 * max(0, var(--layout-density, 1)));
  }
  :where(.p-1) {
    padding: calc(var(--size-base, var(--spacing, 0.25rem)) * 1 * max(0, var(--layout-density, 1)));
  }
  :where(.px-1) {
    padding-inline: calc(var(--size-base, var(--spacing, 0.25rem)) * 1 * max(0, var(--layout-density, 1)));
  }
  :where(.py-1) {
    padding-block: calc(var(--size-base, var(--spacing, 0.25rem)) * 1 * max(0, var(--layout-density, 1)));
  }
  :where(.pt-1) {
    padding-top: calc(var(--size-base, var(--spacing, 0.25rem)) * 1 * max(0, var(--layout-density, 1)));
  }
  :where(.pr-1) {
    padding-right: calc(var(--size-base, var(--spacing, 0.25rem)) * 1 * max(0, var(--layout-density, 1)));
  }
  :where(.pb-1) {
    padding-bottom: calc(var(--size-base, var(--spacing, 0.25rem)) * 1 * max(0, var(--layout-density, 1)));
  }
  :where(.pl-1) {
    padding-left: calc(var(--size-base, var(--spacing, 0.25rem)) * 1 * max(0, var(--layout-density, 1)));
  }
  :where(.ps-1) {
    padding-inline-start: calc(var(--size-base, var(--spacing, 0.25rem)) * 1 * max(0, var(--layout-density, 1)));
  }
  :where(.pe-1) {
    padding-inline-end: calc(var(--size-base, var(--spacing, 0.25rem)) * 1 * max(0, var(--layout-density, 1)));
  }
  :where(.m-1) {
    margin: calc(var(--size-base, var(--spacing, 0.25rem)) * 1 * max(0, var(--layout-density, 1)));
  }
  :where(.mx-1) {
    margin-inline: calc(var(--size-base, var(--spacing, 0.25rem)) * 1 * max(0, var(--layout-density, 1)));
  }
  :where(.my-1) {
    margin-block: calc(var(--size-base, var(--spacing, 0.25rem)) * 1 * max(0, var(--layout-density, 1)));
  }
  :where(.mt-1) {
    margin-top: calc(var(--size-base, var(--spacing, 0.25rem)) * 1 * max(0, var(--layout-density, 1)));
  }
  :where(.mr-1) {
    margin-right: calc(var(--size-base, var(--spacing, 0.25rem)) * 1 * max(0, var(--layout-density, 1)));
  }
  :where(.mb-1) {
    margin-bottom: calc(var(--size-base, var(--spacing, 0.25rem)) * 1 * max(0, var(--layout-density, 1)));
  }
  :where(.ml-1) {
    margin-left: calc(var(--size-base, var(--spacing, 0.25rem)) * 1 * max(0, var(--layout-density, 1)));
  }
  :where(.ms-1) {
    margin-inline-start: calc(var(--size-base, var(--spacing, 0.25rem)) * 1 * max(0, var(--layout-density, 1)));
  }
  :where(.me-1) {
    margin-inline-end: calc(var(--size-base, var(--spacing, 0.25rem)) * 1 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-1\.5) {
    gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 1.5 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-x-1\.5) {
    column-gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 1.5 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-y-1\.5) {
    row-gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 1.5 * max(0, var(--layout-density, 1)));
  }
  :where(.p-1\.5) {
    padding: calc(var(--size-base, var(--spacing, 0.25rem)) * 1.5 * max(0, var(--layout-density, 1)));
  }
  :where(.px-1\.5) {
    padding-inline: calc(var(--size-base, var(--spacing, 0.25rem)) * 1.5 * max(0, var(--layout-density, 1)));
  }
  :where(.py-1\.5) {
    padding-block: calc(var(--size-base, var(--spacing, 0.25rem)) * 1.5 * max(0, var(--layout-density, 1)));
  }
  :where(.pt-1\.5) {
    padding-top: calc(var(--size-base, var(--spacing, 0.25rem)) * 1.5 * max(0, var(--layout-density, 1)));
  }
  :where(.pr-1\.5) {
    padding-right: calc(var(--size-base, var(--spacing, 0.25rem)) * 1.5 * max(0, var(--layout-density, 1)));
  }
  :where(.pb-1\.5) {
    padding-bottom: calc(var(--size-base, var(--spacing, 0.25rem)) * 1.5 * max(0, var(--layout-density, 1)));
  }
  :where(.pl-1\.5) {
    padding-left: calc(var(--size-base, var(--spacing, 0.25rem)) * 1.5 * max(0, var(--layout-density, 1)));
  }
  :where(.ps-1\.5) {
    padding-inline-start: calc(var(--size-base, var(--spacing, 0.25rem)) * 1.5 * max(0, var(--layout-density, 1)));
  }
  :where(.pe-1\.5) {
    padding-inline-end: calc(var(--size-base, var(--spacing, 0.25rem)) * 1.5 * max(0, var(--layout-density, 1)));
  }
  :where(.m-1\.5) {
    margin: calc(var(--size-base, var(--spacing, 0.25rem)) * 1.5 * max(0, var(--layout-density, 1)));
  }
  :where(.mx-1\.5) {
    margin-inline: calc(var(--size-base, var(--spacing, 0.25rem)) * 1.5 * max(0, var(--layout-density, 1)));
  }
  :where(.my-1\.5) {
    margin-block: calc(var(--size-base, var(--spacing, 0.25rem)) * 1.5 * max(0, var(--layout-density, 1)));
  }
  :where(.mt-1\.5) {
    margin-top: calc(var(--size-base, var(--spacing, 0.25rem)) * 1.5 * max(0, var(--layout-density, 1)));
  }
  :where(.mr-1\.5) {
    margin-right: calc(var(--size-base, var(--spacing, 0.25rem)) * 1.5 * max(0, var(--layout-density, 1)));
  }
  :where(.mb-1\.5) {
    margin-bottom: calc(var(--size-base, var(--spacing, 0.25rem)) * 1.5 * max(0, var(--layout-density, 1)));
  }
  :where(.ml-1\.5) {
    margin-left: calc(var(--size-base, var(--spacing, 0.25rem)) * 1.5 * max(0, var(--layout-density, 1)));
  }
  :where(.ms-1\.5) {
    margin-inline-start: calc(var(--size-base, var(--spacing, 0.25rem)) * 1.5 * max(0, var(--layout-density, 1)));
  }
  :where(.me-1\.5) {
    margin-inline-end: calc(var(--size-base, var(--spacing, 0.25rem)) * 1.5 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-2) {
    gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 2 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-x-2) {
    column-gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 2 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-y-2) {
    row-gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 2 * max(0, var(--layout-density, 1)));
  }
  :where(.p-2) {
    padding: calc(var(--size-base, var(--spacing, 0.25rem)) * 2 * max(0, var(--layout-density, 1)));
  }
  :where(.px-2) {
    padding-inline: calc(var(--size-base, var(--spacing, 0.25rem)) * 2 * max(0, var(--layout-density, 1)));
  }
  :where(.py-2) {
    padding-block: calc(var(--size-base, var(--spacing, 0.25rem)) * 2 * max(0, var(--layout-density, 1)));
  }
  :where(.pt-2) {
    padding-top: calc(var(--size-base, var(--spacing, 0.25rem)) * 2 * max(0, var(--layout-density, 1)));
  }
  :where(.pr-2) {
    padding-right: calc(var(--size-base, var(--spacing, 0.25rem)) * 2 * max(0, var(--layout-density, 1)));
  }
  :where(.pb-2) {
    padding-bottom: calc(var(--size-base, var(--spacing, 0.25rem)) * 2 * max(0, var(--layout-density, 1)));
  }
  :where(.pl-2) {
    padding-left: calc(var(--size-base, var(--spacing, 0.25rem)) * 2 * max(0, var(--layout-density, 1)));
  }
  :where(.ps-2) {
    padding-inline-start: calc(var(--size-base, var(--spacing, 0.25rem)) * 2 * max(0, var(--layout-density, 1)));
  }
  :where(.pe-2) {
    padding-inline-end: calc(var(--size-base, var(--spacing, 0.25rem)) * 2 * max(0, var(--layout-density, 1)));
  }
  :where(.m-2) {
    margin: calc(var(--size-base, var(--spacing, 0.25rem)) * 2 * max(0, var(--layout-density, 1)));
  }
  :where(.mx-2) {
    margin-inline: calc(var(--size-base, var(--spacing, 0.25rem)) * 2 * max(0, var(--layout-density, 1)));
  }
  :where(.my-2) {
    margin-block: calc(var(--size-base, var(--spacing, 0.25rem)) * 2 * max(0, var(--layout-density, 1)));
  }
  :where(.mt-2) {
    margin-top: calc(var(--size-base, var(--spacing, 0.25rem)) * 2 * max(0, var(--layout-density, 1)));
  }
  :where(.mr-2) {
    margin-right: calc(var(--size-base, var(--spacing, 0.25rem)) * 2 * max(0, var(--layout-density, 1)));
  }
  :where(.mb-2) {
    margin-bottom: calc(var(--size-base, var(--spacing, 0.25rem)) * 2 * max(0, var(--layout-density, 1)));
  }
  :where(.ml-2) {
    margin-left: calc(var(--size-base, var(--spacing, 0.25rem)) * 2 * max(0, var(--layout-density, 1)));
  }
  :where(.ms-2) {
    margin-inline-start: calc(var(--size-base, var(--spacing, 0.25rem)) * 2 * max(0, var(--layout-density, 1)));
  }
  :where(.me-2) {
    margin-inline-end: calc(var(--size-base, var(--spacing, 0.25rem)) * 2 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-2\.5) {
    gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 2.5 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-x-2\.5) {
    column-gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 2.5 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-y-2\.5) {
    row-gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 2.5 * max(0, var(--layout-density, 1)));
  }
  :where(.p-2\.5) {
    padding: calc(var(--size-base, var(--spacing, 0.25rem)) * 2.5 * max(0, var(--layout-density, 1)));
  }
  :where(.px-2\.5) {
    padding-inline: calc(var(--size-base, var(--spacing, 0.25rem)) * 2.5 * max(0, var(--layout-density, 1)));
  }
  :where(.py-2\.5) {
    padding-block: calc(var(--size-base, var(--spacing, 0.25rem)) * 2.5 * max(0, var(--layout-density, 1)));
  }
  :where(.pt-2\.5) {
    padding-top: calc(var(--size-base, var(--spacing, 0.25rem)) * 2.5 * max(0, var(--layout-density, 1)));
  }
  :where(.pr-2\.5) {
    padding-right: calc(var(--size-base, var(--spacing, 0.25rem)) * 2.5 * max(0, var(--layout-density, 1)));
  }
  :where(.pb-2\.5) {
    padding-bottom: calc(var(--size-base, var(--spacing, 0.25rem)) * 2.5 * max(0, var(--layout-density, 1)));
  }
  :where(.pl-2\.5) {
    padding-left: calc(var(--size-base, var(--spacing, 0.25rem)) * 2.5 * max(0, var(--layout-density, 1)));
  }
  :where(.ps-2\.5) {
    padding-inline-start: calc(var(--size-base, var(--spacing, 0.25rem)) * 2.5 * max(0, var(--layout-density, 1)));
  }
  :where(.pe-2\.5) {
    padding-inline-end: calc(var(--size-base, var(--spacing, 0.25rem)) * 2.5 * max(0, var(--layout-density, 1)));
  }
  :where(.m-2\.5) {
    margin: calc(var(--size-base, var(--spacing, 0.25rem)) * 2.5 * max(0, var(--layout-density, 1)));
  }
  :where(.mx-2\.5) {
    margin-inline: calc(var(--size-base, var(--spacing, 0.25rem)) * 2.5 * max(0, var(--layout-density, 1)));
  }
  :where(.my-2\.5) {
    margin-block: calc(var(--size-base, var(--spacing, 0.25rem)) * 2.5 * max(0, var(--layout-density, 1)));
  }
  :where(.mt-2\.5) {
    margin-top: calc(var(--size-base, var(--spacing, 0.25rem)) * 2.5 * max(0, var(--layout-density, 1)));
  }
  :where(.mr-2\.5) {
    margin-right: calc(var(--size-base, var(--spacing, 0.25rem)) * 2.5 * max(0, var(--layout-density, 1)));
  }
  :where(.mb-2\.5) {
    margin-bottom: calc(var(--size-base, var(--spacing, 0.25rem)) * 2.5 * max(0, var(--layout-density, 1)));
  }
  :where(.ml-2\.5) {
    margin-left: calc(var(--size-base, var(--spacing, 0.25rem)) * 2.5 * max(0, var(--layout-density, 1)));
  }
  :where(.ms-2\.5) {
    margin-inline-start: calc(var(--size-base, var(--spacing, 0.25rem)) * 2.5 * max(0, var(--layout-density, 1)));
  }
  :where(.me-2\.5) {
    margin-inline-end: calc(var(--size-base, var(--spacing, 0.25rem)) * 2.5 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-3) {
    gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 3 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-x-3) {
    column-gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 3 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-y-3) {
    row-gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 3 * max(0, var(--layout-density, 1)));
  }
  :where(.p-3) {
    padding: calc(var(--size-base, var(--spacing, 0.25rem)) * 3 * max(0, var(--layout-density, 1)));
  }
  :where(.px-3) {
    padding-inline: calc(var(--size-base, var(--spacing, 0.25rem)) * 3 * max(0, var(--layout-density, 1)));
  }
  :where(.py-3) {
    padding-block: calc(var(--size-base, var(--spacing, 0.25rem)) * 3 * max(0, var(--layout-density, 1)));
  }
  :where(.pt-3) {
    padding-top: calc(var(--size-base, var(--spacing, 0.25rem)) * 3 * max(0, var(--layout-density, 1)));
  }
  :where(.pr-3) {
    padding-right: calc(var(--size-base, var(--spacing, 0.25rem)) * 3 * max(0, var(--layout-density, 1)));
  }
  :where(.pb-3) {
    padding-bottom: calc(var(--size-base, var(--spacing, 0.25rem)) * 3 * max(0, var(--layout-density, 1)));
  }
  :where(.pl-3) {
    padding-left: calc(var(--size-base, var(--spacing, 0.25rem)) * 3 * max(0, var(--layout-density, 1)));
  }
  :where(.ps-3) {
    padding-inline-start: calc(var(--size-base, var(--spacing, 0.25rem)) * 3 * max(0, var(--layout-density, 1)));
  }
  :where(.pe-3) {
    padding-inline-end: calc(var(--size-base, var(--spacing, 0.25rem)) * 3 * max(0, var(--layout-density, 1)));
  }
  :where(.m-3) {
    margin: calc(var(--size-base, var(--spacing, 0.25rem)) * 3 * max(0, var(--layout-density, 1)));
  }
  :where(.mx-3) {
    margin-inline: calc(var(--size-base, var(--spacing, 0.25rem)) * 3 * max(0, var(--layout-density, 1)));
  }
  :where(.my-3) {
    margin-block: calc(var(--size-base, var(--spacing, 0.25rem)) * 3 * max(0, var(--layout-density, 1)));
  }
  :where(.mt-3) {
    margin-top: calc(var(--size-base, var(--spacing, 0.25rem)) * 3 * max(0, var(--layout-density, 1)));
  }
  :where(.mr-3) {
    margin-right: calc(var(--size-base, var(--spacing, 0.25rem)) * 3 * max(0, var(--layout-density, 1)));
  }
  :where(.mb-3) {
    margin-bottom: calc(var(--size-base, var(--spacing, 0.25rem)) * 3 * max(0, var(--layout-density, 1)));
  }
  :where(.ml-3) {
    margin-left: calc(var(--size-base, var(--spacing, 0.25rem)) * 3 * max(0, var(--layout-density, 1)));
  }
  :where(.ms-3) {
    margin-inline-start: calc(var(--size-base, var(--spacing, 0.25rem)) * 3 * max(0, var(--layout-density, 1)));
  }
  :where(.me-3) {
    margin-inline-end: calc(var(--size-base, var(--spacing, 0.25rem)) * 3 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-3\.5) {
    gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 3.5 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-x-3\.5) {
    column-gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 3.5 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-y-3\.5) {
    row-gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 3.5 * max(0, var(--layout-density, 1)));
  }
  :where(.p-3\.5) {
    padding: calc(var(--size-base, var(--spacing, 0.25rem)) * 3.5 * max(0, var(--layout-density, 1)));
  }
  :where(.px-3\.5) {
    padding-inline: calc(var(--size-base, var(--spacing, 0.25rem)) * 3.5 * max(0, var(--layout-density, 1)));
  }
  :where(.py-3\.5) {
    padding-block: calc(var(--size-base, var(--spacing, 0.25rem)) * 3.5 * max(0, var(--layout-density, 1)));
  }
  :where(.pt-3\.5) {
    padding-top: calc(var(--size-base, var(--spacing, 0.25rem)) * 3.5 * max(0, var(--layout-density, 1)));
  }
  :where(.pr-3\.5) {
    padding-right: calc(var(--size-base, var(--spacing, 0.25rem)) * 3.5 * max(0, var(--layout-density, 1)));
  }
  :where(.pb-3\.5) {
    padding-bottom: calc(var(--size-base, var(--spacing, 0.25rem)) * 3.5 * max(0, var(--layout-density, 1)));
  }
  :where(.pl-3\.5) {
    padding-left: calc(var(--size-base, var(--spacing, 0.25rem)) * 3.5 * max(0, var(--layout-density, 1)));
  }
  :where(.ps-3\.5) {
    padding-inline-start: calc(var(--size-base, var(--spacing, 0.25rem)) * 3.5 * max(0, var(--layout-density, 1)));
  }
  :where(.pe-3\.5) {
    padding-inline-end: calc(var(--size-base, var(--spacing, 0.25rem)) * 3.5 * max(0, var(--layout-density, 1)));
  }
  :where(.m-3\.5) {
    margin: calc(var(--size-base, var(--spacing, 0.25rem)) * 3.5 * max(0, var(--layout-density, 1)));
  }
  :where(.mx-3\.5) {
    margin-inline: calc(var(--size-base, var(--spacing, 0.25rem)) * 3.5 * max(0, var(--layout-density, 1)));
  }
  :where(.my-3\.5) {
    margin-block: calc(var(--size-base, var(--spacing, 0.25rem)) * 3.5 * max(0, var(--layout-density, 1)));
  }
  :where(.mt-3\.5) {
    margin-top: calc(var(--size-base, var(--spacing, 0.25rem)) * 3.5 * max(0, var(--layout-density, 1)));
  }
  :where(.mr-3\.5) {
    margin-right: calc(var(--size-base, var(--spacing, 0.25rem)) * 3.5 * max(0, var(--layout-density, 1)));
  }
  :where(.mb-3\.5) {
    margin-bottom: calc(var(--size-base, var(--spacing, 0.25rem)) * 3.5 * max(0, var(--layout-density, 1)));
  }
  :where(.ml-3\.5) {
    margin-left: calc(var(--size-base, var(--spacing, 0.25rem)) * 3.5 * max(0, var(--layout-density, 1)));
  }
  :where(.ms-3\.5) {
    margin-inline-start: calc(var(--size-base, var(--spacing, 0.25rem)) * 3.5 * max(0, var(--layout-density, 1)));
  }
  :where(.me-3\.5) {
    margin-inline-end: calc(var(--size-base, var(--spacing, 0.25rem)) * 3.5 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-4) {
    gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 4 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-x-4) {
    column-gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 4 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-y-4) {
    row-gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 4 * max(0, var(--layout-density, 1)));
  }
  :where(.p-4) {
    padding: calc(var(--size-base, var(--spacing, 0.25rem)) * 4 * max(0, var(--layout-density, 1)));
  }
  :where(.px-4) {
    padding-inline: calc(var(--size-base, var(--spacing, 0.25rem)) * 4 * max(0, var(--layout-density, 1)));
  }
  :where(.py-4) {
    padding-block: calc(var(--size-base, var(--spacing, 0.25rem)) * 4 * max(0, var(--layout-density, 1)));
  }
  :where(.pt-4) {
    padding-top: calc(var(--size-base, var(--spacing, 0.25rem)) * 4 * max(0, var(--layout-density, 1)));
  }
  :where(.pr-4) {
    padding-right: calc(var(--size-base, var(--spacing, 0.25rem)) * 4 * max(0, var(--layout-density, 1)));
  }
  :where(.pb-4) {
    padding-bottom: calc(var(--size-base, var(--spacing, 0.25rem)) * 4 * max(0, var(--layout-density, 1)));
  }
  :where(.pl-4) {
    padding-left: calc(var(--size-base, var(--spacing, 0.25rem)) * 4 * max(0, var(--layout-density, 1)));
  }
  :where(.ps-4) {
    padding-inline-start: calc(var(--size-base, var(--spacing, 0.25rem)) * 4 * max(0, var(--layout-density, 1)));
  }
  :where(.pe-4) {
    padding-inline-end: calc(var(--size-base, var(--spacing, 0.25rem)) * 4 * max(0, var(--layout-density, 1)));
  }
  :where(.m-4) {
    margin: calc(var(--size-base, var(--spacing, 0.25rem)) * 4 * max(0, var(--layout-density, 1)));
  }
  :where(.mx-4) {
    margin-inline: calc(var(--size-base, var(--spacing, 0.25rem)) * 4 * max(0, var(--layout-density, 1)));
  }
  :where(.my-4) {
    margin-block: calc(var(--size-base, var(--spacing, 0.25rem)) * 4 * max(0, var(--layout-density, 1)));
  }
  :where(.mt-4) {
    margin-top: calc(var(--size-base, var(--spacing, 0.25rem)) * 4 * max(0, var(--layout-density, 1)));
  }
  :where(.mr-4) {
    margin-right: calc(var(--size-base, var(--spacing, 0.25rem)) * 4 * max(0, var(--layout-density, 1)));
  }
  :where(.mb-4) {
    margin-bottom: calc(var(--size-base, var(--spacing, 0.25rem)) * 4 * max(0, var(--layout-density, 1)));
  }
  :where(.ml-4) {
    margin-left: calc(var(--size-base, var(--spacing, 0.25rem)) * 4 * max(0, var(--layout-density, 1)));
  }
  :where(.ms-4) {
    margin-inline-start: calc(var(--size-base, var(--spacing, 0.25rem)) * 4 * max(0, var(--layout-density, 1)));
  }
  :where(.me-4) {
    margin-inline-end: calc(var(--size-base, var(--spacing, 0.25rem)) * 4 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-5) {
    gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 5 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-x-5) {
    column-gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 5 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-y-5) {
    row-gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 5 * max(0, var(--layout-density, 1)));
  }
  :where(.p-5) {
    padding: calc(var(--size-base, var(--spacing, 0.25rem)) * 5 * max(0, var(--layout-density, 1)));
  }
  :where(.px-5) {
    padding-inline: calc(var(--size-base, var(--spacing, 0.25rem)) * 5 * max(0, var(--layout-density, 1)));
  }
  :where(.py-5) {
    padding-block: calc(var(--size-base, var(--spacing, 0.25rem)) * 5 * max(0, var(--layout-density, 1)));
  }
  :where(.pt-5) {
    padding-top: calc(var(--size-base, var(--spacing, 0.25rem)) * 5 * max(0, var(--layout-density, 1)));
  }
  :where(.pr-5) {
    padding-right: calc(var(--size-base, var(--spacing, 0.25rem)) * 5 * max(0, var(--layout-density, 1)));
  }
  :where(.pb-5) {
    padding-bottom: calc(var(--size-base, var(--spacing, 0.25rem)) * 5 * max(0, var(--layout-density, 1)));
  }
  :where(.pl-5) {
    padding-left: calc(var(--size-base, var(--spacing, 0.25rem)) * 5 * max(0, var(--layout-density, 1)));
  }
  :where(.ps-5) {
    padding-inline-start: calc(var(--size-base, var(--spacing, 0.25rem)) * 5 * max(0, var(--layout-density, 1)));
  }
  :where(.pe-5) {
    padding-inline-end: calc(var(--size-base, var(--spacing, 0.25rem)) * 5 * max(0, var(--layout-density, 1)));
  }
  :where(.m-5) {
    margin: calc(var(--size-base, var(--spacing, 0.25rem)) * 5 * max(0, var(--layout-density, 1)));
  }
  :where(.mx-5) {
    margin-inline: calc(var(--size-base, var(--spacing, 0.25rem)) * 5 * max(0, var(--layout-density, 1)));
  }
  :where(.my-5) {
    margin-block: calc(var(--size-base, var(--spacing, 0.25rem)) * 5 * max(0, var(--layout-density, 1)));
  }
  :where(.mt-5) {
    margin-top: calc(var(--size-base, var(--spacing, 0.25rem)) * 5 * max(0, var(--layout-density, 1)));
  }
  :where(.mr-5) {
    margin-right: calc(var(--size-base, var(--spacing, 0.25rem)) * 5 * max(0, var(--layout-density, 1)));
  }
  :where(.mb-5) {
    margin-bottom: calc(var(--size-base, var(--spacing, 0.25rem)) * 5 * max(0, var(--layout-density, 1)));
  }
  :where(.ml-5) {
    margin-left: calc(var(--size-base, var(--spacing, 0.25rem)) * 5 * max(0, var(--layout-density, 1)));
  }
  :where(.ms-5) {
    margin-inline-start: calc(var(--size-base, var(--spacing, 0.25rem)) * 5 * max(0, var(--layout-density, 1)));
  }
  :where(.me-5) {
    margin-inline-end: calc(var(--size-base, var(--spacing, 0.25rem)) * 5 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-6) {
    gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 6 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-x-6) {
    column-gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 6 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-y-6) {
    row-gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 6 * max(0, var(--layout-density, 1)));
  }
  :where(.p-6) {
    padding: calc(var(--size-base, var(--spacing, 0.25rem)) * 6 * max(0, var(--layout-density, 1)));
  }
  :where(.px-6) {
    padding-inline: calc(var(--size-base, var(--spacing, 0.25rem)) * 6 * max(0, var(--layout-density, 1)));
  }
  :where(.py-6) {
    padding-block: calc(var(--size-base, var(--spacing, 0.25rem)) * 6 * max(0, var(--layout-density, 1)));
  }
  :where(.pt-6) {
    padding-top: calc(var(--size-base, var(--spacing, 0.25rem)) * 6 * max(0, var(--layout-density, 1)));
  }
  :where(.pr-6) {
    padding-right: calc(var(--size-base, var(--spacing, 0.25rem)) * 6 * max(0, var(--layout-density, 1)));
  }
  :where(.pb-6) {
    padding-bottom: calc(var(--size-base, var(--spacing, 0.25rem)) * 6 * max(0, var(--layout-density, 1)));
  }
  :where(.pl-6) {
    padding-left: calc(var(--size-base, var(--spacing, 0.25rem)) * 6 * max(0, var(--layout-density, 1)));
  }
  :where(.ps-6) {
    padding-inline-start: calc(var(--size-base, var(--spacing, 0.25rem)) * 6 * max(0, var(--layout-density, 1)));
  }
  :where(.pe-6) {
    padding-inline-end: calc(var(--size-base, var(--spacing, 0.25rem)) * 6 * max(0, var(--layout-density, 1)));
  }
  :where(.m-6) {
    margin: calc(var(--size-base, var(--spacing, 0.25rem)) * 6 * max(0, var(--layout-density, 1)));
  }
  :where(.mx-6) {
    margin-inline: calc(var(--size-base, var(--spacing, 0.25rem)) * 6 * max(0, var(--layout-density, 1)));
  }
  :where(.my-6) {
    margin-block: calc(var(--size-base, var(--spacing, 0.25rem)) * 6 * max(0, var(--layout-density, 1)));
  }
  :where(.mt-6) {
    margin-top: calc(var(--size-base, var(--spacing, 0.25rem)) * 6 * max(0, var(--layout-density, 1)));
  }
  :where(.mr-6) {
    margin-right: calc(var(--size-base, var(--spacing, 0.25rem)) * 6 * max(0, var(--layout-density, 1)));
  }
  :where(.mb-6) {
    margin-bottom: calc(var(--size-base, var(--spacing, 0.25rem)) * 6 * max(0, var(--layout-density, 1)));
  }
  :where(.ml-6) {
    margin-left: calc(var(--size-base, var(--spacing, 0.25rem)) * 6 * max(0, var(--layout-density, 1)));
  }
  :where(.ms-6) {
    margin-inline-start: calc(var(--size-base, var(--spacing, 0.25rem)) * 6 * max(0, var(--layout-density, 1)));
  }
  :where(.me-6) {
    margin-inline-end: calc(var(--size-base, var(--spacing, 0.25rem)) * 6 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-7) {
    gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 7 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-x-7) {
    column-gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 7 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-y-7) {
    row-gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 7 * max(0, var(--layout-density, 1)));
  }
  :where(.p-7) {
    padding: calc(var(--size-base, var(--spacing, 0.25rem)) * 7 * max(0, var(--layout-density, 1)));
  }
  :where(.px-7) {
    padding-inline: calc(var(--size-base, var(--spacing, 0.25rem)) * 7 * max(0, var(--layout-density, 1)));
  }
  :where(.py-7) {
    padding-block: calc(var(--size-base, var(--spacing, 0.25rem)) * 7 * max(0, var(--layout-density, 1)));
  }
  :where(.pt-7) {
    padding-top: calc(var(--size-base, var(--spacing, 0.25rem)) * 7 * max(0, var(--layout-density, 1)));
  }
  :where(.pr-7) {
    padding-right: calc(var(--size-base, var(--spacing, 0.25rem)) * 7 * max(0, var(--layout-density, 1)));
  }
  :where(.pb-7) {
    padding-bottom: calc(var(--size-base, var(--spacing, 0.25rem)) * 7 * max(0, var(--layout-density, 1)));
  }
  :where(.pl-7) {
    padding-left: calc(var(--size-base, var(--spacing, 0.25rem)) * 7 * max(0, var(--layout-density, 1)));
  }
  :where(.ps-7) {
    padding-inline-start: calc(var(--size-base, var(--spacing, 0.25rem)) * 7 * max(0, var(--layout-density, 1)));
  }
  :where(.pe-7) {
    padding-inline-end: calc(var(--size-base, var(--spacing, 0.25rem)) * 7 * max(0, var(--layout-density, 1)));
  }
  :where(.m-7) {
    margin: calc(var(--size-base, var(--spacing, 0.25rem)) * 7 * max(0, var(--layout-density, 1)));
  }
  :where(.mx-7) {
    margin-inline: calc(var(--size-base, var(--spacing, 0.25rem)) * 7 * max(0, var(--layout-density, 1)));
  }
  :where(.my-7) {
    margin-block: calc(var(--size-base, var(--spacing, 0.25rem)) * 7 * max(0, var(--layout-density, 1)));
  }
  :where(.mt-7) {
    margin-top: calc(var(--size-base, var(--spacing, 0.25rem)) * 7 * max(0, var(--layout-density, 1)));
  }
  :where(.mr-7) {
    margin-right: calc(var(--size-base, var(--spacing, 0.25rem)) * 7 * max(0, var(--layout-density, 1)));
  }
  :where(.mb-7) {
    margin-bottom: calc(var(--size-base, var(--spacing, 0.25rem)) * 7 * max(0, var(--layout-density, 1)));
  }
  :where(.ml-7) {
    margin-left: calc(var(--size-base, var(--spacing, 0.25rem)) * 7 * max(0, var(--layout-density, 1)));
  }
  :where(.ms-7) {
    margin-inline-start: calc(var(--size-base, var(--spacing, 0.25rem)) * 7 * max(0, var(--layout-density, 1)));
  }
  :where(.me-7) {
    margin-inline-end: calc(var(--size-base, var(--spacing, 0.25rem)) * 7 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-8) {
    gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 8 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-x-8) {
    column-gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 8 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-y-8) {
    row-gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 8 * max(0, var(--layout-density, 1)));
  }
  :where(.p-8) {
    padding: calc(var(--size-base, var(--spacing, 0.25rem)) * 8 * max(0, var(--layout-density, 1)));
  }
  :where(.px-8) {
    padding-inline: calc(var(--size-base, var(--spacing, 0.25rem)) * 8 * max(0, var(--layout-density, 1)));
  }
  :where(.py-8) {
    padding-block: calc(var(--size-base, var(--spacing, 0.25rem)) * 8 * max(0, var(--layout-density, 1)));
  }
  :where(.pt-8) {
    padding-top: calc(var(--size-base, var(--spacing, 0.25rem)) * 8 * max(0, var(--layout-density, 1)));
  }
  :where(.pr-8) {
    padding-right: calc(var(--size-base, var(--spacing, 0.25rem)) * 8 * max(0, var(--layout-density, 1)));
  }
  :where(.pb-8) {
    padding-bottom: calc(var(--size-base, var(--spacing, 0.25rem)) * 8 * max(0, var(--layout-density, 1)));
  }
  :where(.pl-8) {
    padding-left: calc(var(--size-base, var(--spacing, 0.25rem)) * 8 * max(0, var(--layout-density, 1)));
  }
  :where(.ps-8) {
    padding-inline-start: calc(var(--size-base, var(--spacing, 0.25rem)) * 8 * max(0, var(--layout-density, 1)));
  }
  :where(.pe-8) {
    padding-inline-end: calc(var(--size-base, var(--spacing, 0.25rem)) * 8 * max(0, var(--layout-density, 1)));
  }
  :where(.m-8) {
    margin: calc(var(--size-base, var(--spacing, 0.25rem)) * 8 * max(0, var(--layout-density, 1)));
  }
  :where(.mx-8) {
    margin-inline: calc(var(--size-base, var(--spacing, 0.25rem)) * 8 * max(0, var(--layout-density, 1)));
  }
  :where(.my-8) {
    margin-block: calc(var(--size-base, var(--spacing, 0.25rem)) * 8 * max(0, var(--layout-density, 1)));
  }
  :where(.mt-8) {
    margin-top: calc(var(--size-base, var(--spacing, 0.25rem)) * 8 * max(0, var(--layout-density, 1)));
  }
  :where(.mr-8) {
    margin-right: calc(var(--size-base, var(--spacing, 0.25rem)) * 8 * max(0, var(--layout-density, 1)));
  }
  :where(.mb-8) {
    margin-bottom: calc(var(--size-base, var(--spacing, 0.25rem)) * 8 * max(0, var(--layout-density, 1)));
  }
  :where(.ml-8) {
    margin-left: calc(var(--size-base, var(--spacing, 0.25rem)) * 8 * max(0, var(--layout-density, 1)));
  }
  :where(.ms-8) {
    margin-inline-start: calc(var(--size-base, var(--spacing, 0.25rem)) * 8 * max(0, var(--layout-density, 1)));
  }
  :where(.me-8) {
    margin-inline-end: calc(var(--size-base, var(--spacing, 0.25rem)) * 8 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-9) {
    gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 9 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-x-9) {
    column-gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 9 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-y-9) {
    row-gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 9 * max(0, var(--layout-density, 1)));
  }
  :where(.p-9) {
    padding: calc(var(--size-base, var(--spacing, 0.25rem)) * 9 * max(0, var(--layout-density, 1)));
  }
  :where(.px-9) {
    padding-inline: calc(var(--size-base, var(--spacing, 0.25rem)) * 9 * max(0, var(--layout-density, 1)));
  }
  :where(.py-9) {
    padding-block: calc(var(--size-base, var(--spacing, 0.25rem)) * 9 * max(0, var(--layout-density, 1)));
  }
  :where(.pt-9) {
    padding-top: calc(var(--size-base, var(--spacing, 0.25rem)) * 9 * max(0, var(--layout-density, 1)));
  }
  :where(.pr-9) {
    padding-right: calc(var(--size-base, var(--spacing, 0.25rem)) * 9 * max(0, var(--layout-density, 1)));
  }
  :where(.pb-9) {
    padding-bottom: calc(var(--size-base, var(--spacing, 0.25rem)) * 9 * max(0, var(--layout-density, 1)));
  }
  :where(.pl-9) {
    padding-left: calc(var(--size-base, var(--spacing, 0.25rem)) * 9 * max(0, var(--layout-density, 1)));
  }
  :where(.ps-9) {
    padding-inline-start: calc(var(--size-base, var(--spacing, 0.25rem)) * 9 * max(0, var(--layout-density, 1)));
  }
  :where(.pe-9) {
    padding-inline-end: calc(var(--size-base, var(--spacing, 0.25rem)) * 9 * max(0, var(--layout-density, 1)));
  }
  :where(.m-9) {
    margin: calc(var(--size-base, var(--spacing, 0.25rem)) * 9 * max(0, var(--layout-density, 1)));
  }
  :where(.mx-9) {
    margin-inline: calc(var(--size-base, var(--spacing, 0.25rem)) * 9 * max(0, var(--layout-density, 1)));
  }
  :where(.my-9) {
    margin-block: calc(var(--size-base, var(--spacing, 0.25rem)) * 9 * max(0, var(--layout-density, 1)));
  }
  :where(.mt-9) {
    margin-top: calc(var(--size-base, var(--spacing, 0.25rem)) * 9 * max(0, var(--layout-density, 1)));
  }
  :where(.mr-9) {
    margin-right: calc(var(--size-base, var(--spacing, 0.25rem)) * 9 * max(0, var(--layout-density, 1)));
  }
  :where(.mb-9) {
    margin-bottom: calc(var(--size-base, var(--spacing, 0.25rem)) * 9 * max(0, var(--layout-density, 1)));
  }
  :where(.ml-9) {
    margin-left: calc(var(--size-base, var(--spacing, 0.25rem)) * 9 * max(0, var(--layout-density, 1)));
  }
  :where(.ms-9) {
    margin-inline-start: calc(var(--size-base, var(--spacing, 0.25rem)) * 9 * max(0, var(--layout-density, 1)));
  }
  :where(.me-9) {
    margin-inline-end: calc(var(--size-base, var(--spacing, 0.25rem)) * 9 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-10) {
    gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 10 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-x-10) {
    column-gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 10 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-y-10) {
    row-gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 10 * max(0, var(--layout-density, 1)));
  }
  :where(.p-10) {
    padding: calc(var(--size-base, var(--spacing, 0.25rem)) * 10 * max(0, var(--layout-density, 1)));
  }
  :where(.px-10) {
    padding-inline: calc(var(--size-base, var(--spacing, 0.25rem)) * 10 * max(0, var(--layout-density, 1)));
  }
  :where(.py-10) {
    padding-block: calc(var(--size-base, var(--spacing, 0.25rem)) * 10 * max(0, var(--layout-density, 1)));
  }
  :where(.pt-10) {
    padding-top: calc(var(--size-base, var(--spacing, 0.25rem)) * 10 * max(0, var(--layout-density, 1)));
  }
  :where(.pr-10) {
    padding-right: calc(var(--size-base, var(--spacing, 0.25rem)) * 10 * max(0, var(--layout-density, 1)));
  }
  :where(.pb-10) {
    padding-bottom: calc(var(--size-base, var(--spacing, 0.25rem)) * 10 * max(0, var(--layout-density, 1)));
  }
  :where(.pl-10) {
    padding-left: calc(var(--size-base, var(--spacing, 0.25rem)) * 10 * max(0, var(--layout-density, 1)));
  }
  :where(.ps-10) {
    padding-inline-start: calc(var(--size-base, var(--spacing, 0.25rem)) * 10 * max(0, var(--layout-density, 1)));
  }
  :where(.pe-10) {
    padding-inline-end: calc(var(--size-base, var(--spacing, 0.25rem)) * 10 * max(0, var(--layout-density, 1)));
  }
  :where(.m-10) {
    margin: calc(var(--size-base, var(--spacing, 0.25rem)) * 10 * max(0, var(--layout-density, 1)));
  }
  :where(.mx-10) {
    margin-inline: calc(var(--size-base, var(--spacing, 0.25rem)) * 10 * max(0, var(--layout-density, 1)));
  }
  :where(.my-10) {
    margin-block: calc(var(--size-base, var(--spacing, 0.25rem)) * 10 * max(0, var(--layout-density, 1)));
  }
  :where(.mt-10) {
    margin-top: calc(var(--size-base, var(--spacing, 0.25rem)) * 10 * max(0, var(--layout-density, 1)));
  }
  :where(.mr-10) {
    margin-right: calc(var(--size-base, var(--spacing, 0.25rem)) * 10 * max(0, var(--layout-density, 1)));
  }
  :where(.mb-10) {
    margin-bottom: calc(var(--size-base, var(--spacing, 0.25rem)) * 10 * max(0, var(--layout-density, 1)));
  }
  :where(.ml-10) {
    margin-left: calc(var(--size-base, var(--spacing, 0.25rem)) * 10 * max(0, var(--layout-density, 1)));
  }
  :where(.ms-10) {
    margin-inline-start: calc(var(--size-base, var(--spacing, 0.25rem)) * 10 * max(0, var(--layout-density, 1)));
  }
  :where(.me-10) {
    margin-inline-end: calc(var(--size-base, var(--spacing, 0.25rem)) * 10 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-11) {
    gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 11 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-x-11) {
    column-gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 11 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-y-11) {
    row-gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 11 * max(0, var(--layout-density, 1)));
  }
  :where(.p-11) {
    padding: calc(var(--size-base, var(--spacing, 0.25rem)) * 11 * max(0, var(--layout-density, 1)));
  }
  :where(.px-11) {
    padding-inline: calc(var(--size-base, var(--spacing, 0.25rem)) * 11 * max(0, var(--layout-density, 1)));
  }
  :where(.py-11) {
    padding-block: calc(var(--size-base, var(--spacing, 0.25rem)) * 11 * max(0, var(--layout-density, 1)));
  }
  :where(.pt-11) {
    padding-top: calc(var(--size-base, var(--spacing, 0.25rem)) * 11 * max(0, var(--layout-density, 1)));
  }
  :where(.pr-11) {
    padding-right: calc(var(--size-base, var(--spacing, 0.25rem)) * 11 * max(0, var(--layout-density, 1)));
  }
  :where(.pb-11) {
    padding-bottom: calc(var(--size-base, var(--spacing, 0.25rem)) * 11 * max(0, var(--layout-density, 1)));
  }
  :where(.pl-11) {
    padding-left: calc(var(--size-base, var(--spacing, 0.25rem)) * 11 * max(0, var(--layout-density, 1)));
  }
  :where(.ps-11) {
    padding-inline-start: calc(var(--size-base, var(--spacing, 0.25rem)) * 11 * max(0, var(--layout-density, 1)));
  }
  :where(.pe-11) {
    padding-inline-end: calc(var(--size-base, var(--spacing, 0.25rem)) * 11 * max(0, var(--layout-density, 1)));
  }
  :where(.m-11) {
    margin: calc(var(--size-base, var(--spacing, 0.25rem)) * 11 * max(0, var(--layout-density, 1)));
  }
  :where(.mx-11) {
    margin-inline: calc(var(--size-base, var(--spacing, 0.25rem)) * 11 * max(0, var(--layout-density, 1)));
  }
  :where(.my-11) {
    margin-block: calc(var(--size-base, var(--spacing, 0.25rem)) * 11 * max(0, var(--layout-density, 1)));
  }
  :where(.mt-11) {
    margin-top: calc(var(--size-base, var(--spacing, 0.25rem)) * 11 * max(0, var(--layout-density, 1)));
  }
  :where(.mr-11) {
    margin-right: calc(var(--size-base, var(--spacing, 0.25rem)) * 11 * max(0, var(--layout-density, 1)));
  }
  :where(.mb-11) {
    margin-bottom: calc(var(--size-base, var(--spacing, 0.25rem)) * 11 * max(0, var(--layout-density, 1)));
  }
  :where(.ml-11) {
    margin-left: calc(var(--size-base, var(--spacing, 0.25rem)) * 11 * max(0, var(--layout-density, 1)));
  }
  :where(.ms-11) {
    margin-inline-start: calc(var(--size-base, var(--spacing, 0.25rem)) * 11 * max(0, var(--layout-density, 1)));
  }
  :where(.me-11) {
    margin-inline-end: calc(var(--size-base, var(--spacing, 0.25rem)) * 11 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-12) {
    gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 12 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-x-12) {
    column-gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 12 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-y-12) {
    row-gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 12 * max(0, var(--layout-density, 1)));
  }
  :where(.p-12) {
    padding: calc(var(--size-base, var(--spacing, 0.25rem)) * 12 * max(0, var(--layout-density, 1)));
  }
  :where(.px-12) {
    padding-inline: calc(var(--size-base, var(--spacing, 0.25rem)) * 12 * max(0, var(--layout-density, 1)));
  }
  :where(.py-12) {
    padding-block: calc(var(--size-base, var(--spacing, 0.25rem)) * 12 * max(0, var(--layout-density, 1)));
  }
  :where(.pt-12) {
    padding-top: calc(var(--size-base, var(--spacing, 0.25rem)) * 12 * max(0, var(--layout-density, 1)));
  }
  :where(.pr-12) {
    padding-right: calc(var(--size-base, var(--spacing, 0.25rem)) * 12 * max(0, var(--layout-density, 1)));
  }
  :where(.pb-12) {
    padding-bottom: calc(var(--size-base, var(--spacing, 0.25rem)) * 12 * max(0, var(--layout-density, 1)));
  }
  :where(.pl-12) {
    padding-left: calc(var(--size-base, var(--spacing, 0.25rem)) * 12 * max(0, var(--layout-density, 1)));
  }
  :where(.ps-12) {
    padding-inline-start: calc(var(--size-base, var(--spacing, 0.25rem)) * 12 * max(0, var(--layout-density, 1)));
  }
  :where(.pe-12) {
    padding-inline-end: calc(var(--size-base, var(--spacing, 0.25rem)) * 12 * max(0, var(--layout-density, 1)));
  }
  :where(.m-12) {
    margin: calc(var(--size-base, var(--spacing, 0.25rem)) * 12 * max(0, var(--layout-density, 1)));
  }
  :where(.mx-12) {
    margin-inline: calc(var(--size-base, var(--spacing, 0.25rem)) * 12 * max(0, var(--layout-density, 1)));
  }
  :where(.my-12) {
    margin-block: calc(var(--size-base, var(--spacing, 0.25rem)) * 12 * max(0, var(--layout-density, 1)));
  }
  :where(.mt-12) {
    margin-top: calc(var(--size-base, var(--spacing, 0.25rem)) * 12 * max(0, var(--layout-density, 1)));
  }
  :where(.mr-12) {
    margin-right: calc(var(--size-base, var(--spacing, 0.25rem)) * 12 * max(0, var(--layout-density, 1)));
  }
  :where(.mb-12) {
    margin-bottom: calc(var(--size-base, var(--spacing, 0.25rem)) * 12 * max(0, var(--layout-density, 1)));
  }
  :where(.ml-12) {
    margin-left: calc(var(--size-base, var(--spacing, 0.25rem)) * 12 * max(0, var(--layout-density, 1)));
  }
  :where(.ms-12) {
    margin-inline-start: calc(var(--size-base, var(--spacing, 0.25rem)) * 12 * max(0, var(--layout-density, 1)));
  }
  :where(.me-12) {
    margin-inline-end: calc(var(--size-base, var(--spacing, 0.25rem)) * 12 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-14) {
    gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 14 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-x-14) {
    column-gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 14 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-y-14) {
    row-gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 14 * max(0, var(--layout-density, 1)));
  }
  :where(.p-14) {
    padding: calc(var(--size-base, var(--spacing, 0.25rem)) * 14 * max(0, var(--layout-density, 1)));
  }
  :where(.px-14) {
    padding-inline: calc(var(--size-base, var(--spacing, 0.25rem)) * 14 * max(0, var(--layout-density, 1)));
  }
  :where(.py-14) {
    padding-block: calc(var(--size-base, var(--spacing, 0.25rem)) * 14 * max(0, var(--layout-density, 1)));
  }
  :where(.pt-14) {
    padding-top: calc(var(--size-base, var(--spacing, 0.25rem)) * 14 * max(0, var(--layout-density, 1)));
  }
  :where(.pr-14) {
    padding-right: calc(var(--size-base, var(--spacing, 0.25rem)) * 14 * max(0, var(--layout-density, 1)));
  }
  :where(.pb-14) {
    padding-bottom: calc(var(--size-base, var(--spacing, 0.25rem)) * 14 * max(0, var(--layout-density, 1)));
  }
  :where(.pl-14) {
    padding-left: calc(var(--size-base, var(--spacing, 0.25rem)) * 14 * max(0, var(--layout-density, 1)));
  }
  :where(.ps-14) {
    padding-inline-start: calc(var(--size-base, var(--spacing, 0.25rem)) * 14 * max(0, var(--layout-density, 1)));
  }
  :where(.pe-14) {
    padding-inline-end: calc(var(--size-base, var(--spacing, 0.25rem)) * 14 * max(0, var(--layout-density, 1)));
  }
  :where(.m-14) {
    margin: calc(var(--size-base, var(--spacing, 0.25rem)) * 14 * max(0, var(--layout-density, 1)));
  }
  :where(.mx-14) {
    margin-inline: calc(var(--size-base, var(--spacing, 0.25rem)) * 14 * max(0, var(--layout-density, 1)));
  }
  :where(.my-14) {
    margin-block: calc(var(--size-base, var(--spacing, 0.25rem)) * 14 * max(0, var(--layout-density, 1)));
  }
  :where(.mt-14) {
    margin-top: calc(var(--size-base, var(--spacing, 0.25rem)) * 14 * max(0, var(--layout-density, 1)));
  }
  :where(.mr-14) {
    margin-right: calc(var(--size-base, var(--spacing, 0.25rem)) * 14 * max(0, var(--layout-density, 1)));
  }
  :where(.mb-14) {
    margin-bottom: calc(var(--size-base, var(--spacing, 0.25rem)) * 14 * max(0, var(--layout-density, 1)));
  }
  :where(.ml-14) {
    margin-left: calc(var(--size-base, var(--spacing, 0.25rem)) * 14 * max(0, var(--layout-density, 1)));
  }
  :where(.ms-14) {
    margin-inline-start: calc(var(--size-base, var(--spacing, 0.25rem)) * 14 * max(0, var(--layout-density, 1)));
  }
  :where(.me-14) {
    margin-inline-end: calc(var(--size-base, var(--spacing, 0.25rem)) * 14 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-16) {
    gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 16 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-x-16) {
    column-gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 16 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-y-16) {
    row-gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 16 * max(0, var(--layout-density, 1)));
  }
  :where(.p-16) {
    padding: calc(var(--size-base, var(--spacing, 0.25rem)) * 16 * max(0, var(--layout-density, 1)));
  }
  :where(.px-16) {
    padding-inline: calc(var(--size-base, var(--spacing, 0.25rem)) * 16 * max(0, var(--layout-density, 1)));
  }
  :where(.py-16) {
    padding-block: calc(var(--size-base, var(--spacing, 0.25rem)) * 16 * max(0, var(--layout-density, 1)));
  }
  :where(.pt-16) {
    padding-top: calc(var(--size-base, var(--spacing, 0.25rem)) * 16 * max(0, var(--layout-density, 1)));
  }
  :where(.pr-16) {
    padding-right: calc(var(--size-base, var(--spacing, 0.25rem)) * 16 * max(0, var(--layout-density, 1)));
  }
  :where(.pb-16) {
    padding-bottom: calc(var(--size-base, var(--spacing, 0.25rem)) * 16 * max(0, var(--layout-density, 1)));
  }
  :where(.pl-16) {
    padding-left: calc(var(--size-base, var(--spacing, 0.25rem)) * 16 * max(0, var(--layout-density, 1)));
  }
  :where(.ps-16) {
    padding-inline-start: calc(var(--size-base, var(--spacing, 0.25rem)) * 16 * max(0, var(--layout-density, 1)));
  }
  :where(.pe-16) {
    padding-inline-end: calc(var(--size-base, var(--spacing, 0.25rem)) * 16 * max(0, var(--layout-density, 1)));
  }
  :where(.m-16) {
    margin: calc(var(--size-base, var(--spacing, 0.25rem)) * 16 * max(0, var(--layout-density, 1)));
  }
  :where(.mx-16) {
    margin-inline: calc(var(--size-base, var(--spacing, 0.25rem)) * 16 * max(0, var(--layout-density, 1)));
  }
  :where(.my-16) {
    margin-block: calc(var(--size-base, var(--spacing, 0.25rem)) * 16 * max(0, var(--layout-density, 1)));
  }
  :where(.mt-16) {
    margin-top: calc(var(--size-base, var(--spacing, 0.25rem)) * 16 * max(0, var(--layout-density, 1)));
  }
  :where(.mr-16) {
    margin-right: calc(var(--size-base, var(--spacing, 0.25rem)) * 16 * max(0, var(--layout-density, 1)));
  }
  :where(.mb-16) {
    margin-bottom: calc(var(--size-base, var(--spacing, 0.25rem)) * 16 * max(0, var(--layout-density, 1)));
  }
  :where(.ml-16) {
    margin-left: calc(var(--size-base, var(--spacing, 0.25rem)) * 16 * max(0, var(--layout-density, 1)));
  }
  :where(.ms-16) {
    margin-inline-start: calc(var(--size-base, var(--spacing, 0.25rem)) * 16 * max(0, var(--layout-density, 1)));
  }
  :where(.me-16) {
    margin-inline-end: calc(var(--size-base, var(--spacing, 0.25rem)) * 16 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-20) {
    gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 20 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-x-20) {
    column-gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 20 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-y-20) {
    row-gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 20 * max(0, var(--layout-density, 1)));
  }
  :where(.p-20) {
    padding: calc(var(--size-base, var(--spacing, 0.25rem)) * 20 * max(0, var(--layout-density, 1)));
  }
  :where(.px-20) {
    padding-inline: calc(var(--size-base, var(--spacing, 0.25rem)) * 20 * max(0, var(--layout-density, 1)));
  }
  :where(.py-20) {
    padding-block: calc(var(--size-base, var(--spacing, 0.25rem)) * 20 * max(0, var(--layout-density, 1)));
  }
  :where(.pt-20) {
    padding-top: calc(var(--size-base, var(--spacing, 0.25rem)) * 20 * max(0, var(--layout-density, 1)));
  }
  :where(.pr-20) {
    padding-right: calc(var(--size-base, var(--spacing, 0.25rem)) * 20 * max(0, var(--layout-density, 1)));
  }
  :where(.pb-20) {
    padding-bottom: calc(var(--size-base, var(--spacing, 0.25rem)) * 20 * max(0, var(--layout-density, 1)));
  }
  :where(.pl-20) {
    padding-left: calc(var(--size-base, var(--spacing, 0.25rem)) * 20 * max(0, var(--layout-density, 1)));
  }
  :where(.ps-20) {
    padding-inline-start: calc(var(--size-base, var(--spacing, 0.25rem)) * 20 * max(0, var(--layout-density, 1)));
  }
  :where(.pe-20) {
    padding-inline-end: calc(var(--size-base, var(--spacing, 0.25rem)) * 20 * max(0, var(--layout-density, 1)));
  }
  :where(.m-20) {
    margin: calc(var(--size-base, var(--spacing, 0.25rem)) * 20 * max(0, var(--layout-density, 1)));
  }
  :where(.mx-20) {
    margin-inline: calc(var(--size-base, var(--spacing, 0.25rem)) * 20 * max(0, var(--layout-density, 1)));
  }
  :where(.my-20) {
    margin-block: calc(var(--size-base, var(--spacing, 0.25rem)) * 20 * max(0, var(--layout-density, 1)));
  }
  :where(.mt-20) {
    margin-top: calc(var(--size-base, var(--spacing, 0.25rem)) * 20 * max(0, var(--layout-density, 1)));
  }
  :where(.mr-20) {
    margin-right: calc(var(--size-base, var(--spacing, 0.25rem)) * 20 * max(0, var(--layout-density, 1)));
  }
  :where(.mb-20) {
    margin-bottom: calc(var(--size-base, var(--spacing, 0.25rem)) * 20 * max(0, var(--layout-density, 1)));
  }
  :where(.ml-20) {
    margin-left: calc(var(--size-base, var(--spacing, 0.25rem)) * 20 * max(0, var(--layout-density, 1)));
  }
  :where(.ms-20) {
    margin-inline-start: calc(var(--size-base, var(--spacing, 0.25rem)) * 20 * max(0, var(--layout-density, 1)));
  }
  :where(.me-20) {
    margin-inline-end: calc(var(--size-base, var(--spacing, 0.25rem)) * 20 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-24) {
    gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 24 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-x-24) {
    column-gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 24 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-y-24) {
    row-gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 24 * max(0, var(--layout-density, 1)));
  }
  :where(.p-24) {
    padding: calc(var(--size-base, var(--spacing, 0.25rem)) * 24 * max(0, var(--layout-density, 1)));
  }
  :where(.px-24) {
    padding-inline: calc(var(--size-base, var(--spacing, 0.25rem)) * 24 * max(0, var(--layout-density, 1)));
  }
  :where(.py-24) {
    padding-block: calc(var(--size-base, var(--spacing, 0.25rem)) * 24 * max(0, var(--layout-density, 1)));
  }
  :where(.pt-24) {
    padding-top: calc(var(--size-base, var(--spacing, 0.25rem)) * 24 * max(0, var(--layout-density, 1)));
  }
  :where(.pr-24) {
    padding-right: calc(var(--size-base, var(--spacing, 0.25rem)) * 24 * max(0, var(--layout-density, 1)));
  }
  :where(.pb-24) {
    padding-bottom: calc(var(--size-base, var(--spacing, 0.25rem)) * 24 * max(0, var(--layout-density, 1)));
  }
  :where(.pl-24) {
    padding-left: calc(var(--size-base, var(--spacing, 0.25rem)) * 24 * max(0, var(--layout-density, 1)));
  }
  :where(.ps-24) {
    padding-inline-start: calc(var(--size-base, var(--spacing, 0.25rem)) * 24 * max(0, var(--layout-density, 1)));
  }
  :where(.pe-24) {
    padding-inline-end: calc(var(--size-base, var(--spacing, 0.25rem)) * 24 * max(0, var(--layout-density, 1)));
  }
  :where(.m-24) {
    margin: calc(var(--size-base, var(--spacing, 0.25rem)) * 24 * max(0, var(--layout-density, 1)));
  }
  :where(.mx-24) {
    margin-inline: calc(var(--size-base, var(--spacing, 0.25rem)) * 24 * max(0, var(--layout-density, 1)));
  }
  :where(.my-24) {
    margin-block: calc(var(--size-base, var(--spacing, 0.25rem)) * 24 * max(0, var(--layout-density, 1)));
  }
  :where(.mt-24) {
    margin-top: calc(var(--size-base, var(--spacing, 0.25rem)) * 24 * max(0, var(--layout-density, 1)));
  }
  :where(.mr-24) {
    margin-right: calc(var(--size-base, var(--spacing, 0.25rem)) * 24 * max(0, var(--layout-density, 1)));
  }
  :where(.mb-24) {
    margin-bottom: calc(var(--size-base, var(--spacing, 0.25rem)) * 24 * max(0, var(--layout-density, 1)));
  }
  :where(.ml-24) {
    margin-left: calc(var(--size-base, var(--spacing, 0.25rem)) * 24 * max(0, var(--layout-density, 1)));
  }
  :where(.ms-24) {
    margin-inline-start: calc(var(--size-base, var(--spacing, 0.25rem)) * 24 * max(0, var(--layout-density, 1)));
  }
  :where(.me-24) {
    margin-inline-end: calc(var(--size-base, var(--spacing, 0.25rem)) * 24 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-28) {
    gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 28 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-x-28) {
    column-gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 28 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-y-28) {
    row-gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 28 * max(0, var(--layout-density, 1)));
  }
  :where(.p-28) {
    padding: calc(var(--size-base, var(--spacing, 0.25rem)) * 28 * max(0, var(--layout-density, 1)));
  }
  :where(.px-28) {
    padding-inline: calc(var(--size-base, var(--spacing, 0.25rem)) * 28 * max(0, var(--layout-density, 1)));
  }
  :where(.py-28) {
    padding-block: calc(var(--size-base, var(--spacing, 0.25rem)) * 28 * max(0, var(--layout-density, 1)));
  }
  :where(.pt-28) {
    padding-top: calc(var(--size-base, var(--spacing, 0.25rem)) * 28 * max(0, var(--layout-density, 1)));
  }
  :where(.pr-28) {
    padding-right: calc(var(--size-base, var(--spacing, 0.25rem)) * 28 * max(0, var(--layout-density, 1)));
  }
  :where(.pb-28) {
    padding-bottom: calc(var(--size-base, var(--spacing, 0.25rem)) * 28 * max(0, var(--layout-density, 1)));
  }
  :where(.pl-28) {
    padding-left: calc(var(--size-base, var(--spacing, 0.25rem)) * 28 * max(0, var(--layout-density, 1)));
  }
  :where(.ps-28) {
    padding-inline-start: calc(var(--size-base, var(--spacing, 0.25rem)) * 28 * max(0, var(--layout-density, 1)));
  }
  :where(.pe-28) {
    padding-inline-end: calc(var(--size-base, var(--spacing, 0.25rem)) * 28 * max(0, var(--layout-density, 1)));
  }
  :where(.m-28) {
    margin: calc(var(--size-base, var(--spacing, 0.25rem)) * 28 * max(0, var(--layout-density, 1)));
  }
  :where(.mx-28) {
    margin-inline: calc(var(--size-base, var(--spacing, 0.25rem)) * 28 * max(0, var(--layout-density, 1)));
  }
  :where(.my-28) {
    margin-block: calc(var(--size-base, var(--spacing, 0.25rem)) * 28 * max(0, var(--layout-density, 1)));
  }
  :where(.mt-28) {
    margin-top: calc(var(--size-base, var(--spacing, 0.25rem)) * 28 * max(0, var(--layout-density, 1)));
  }
  :where(.mr-28) {
    margin-right: calc(var(--size-base, var(--spacing, 0.25rem)) * 28 * max(0, var(--layout-density, 1)));
  }
  :where(.mb-28) {
    margin-bottom: calc(var(--size-base, var(--spacing, 0.25rem)) * 28 * max(0, var(--layout-density, 1)));
  }
  :where(.ml-28) {
    margin-left: calc(var(--size-base, var(--spacing, 0.25rem)) * 28 * max(0, var(--layout-density, 1)));
  }
  :where(.ms-28) {
    margin-inline-start: calc(var(--size-base, var(--spacing, 0.25rem)) * 28 * max(0, var(--layout-density, 1)));
  }
  :where(.me-28) {
    margin-inline-end: calc(var(--size-base, var(--spacing, 0.25rem)) * 28 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-32) {
    gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 32 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-x-32) {
    column-gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 32 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-y-32) {
    row-gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 32 * max(0, var(--layout-density, 1)));
  }
  :where(.p-32) {
    padding: calc(var(--size-base, var(--spacing, 0.25rem)) * 32 * max(0, var(--layout-density, 1)));
  }
  :where(.px-32) {
    padding-inline: calc(var(--size-base, var(--spacing, 0.25rem)) * 32 * max(0, var(--layout-density, 1)));
  }
  :where(.py-32) {
    padding-block: calc(var(--size-base, var(--spacing, 0.25rem)) * 32 * max(0, var(--layout-density, 1)));
  }
  :where(.pt-32) {
    padding-top: calc(var(--size-base, var(--spacing, 0.25rem)) * 32 * max(0, var(--layout-density, 1)));
  }
  :where(.pr-32) {
    padding-right: calc(var(--size-base, var(--spacing, 0.25rem)) * 32 * max(0, var(--layout-density, 1)));
  }
  :where(.pb-32) {
    padding-bottom: calc(var(--size-base, var(--spacing, 0.25rem)) * 32 * max(0, var(--layout-density, 1)));
  }
  :where(.pl-32) {
    padding-left: calc(var(--size-base, var(--spacing, 0.25rem)) * 32 * max(0, var(--layout-density, 1)));
  }
  :where(.ps-32) {
    padding-inline-start: calc(var(--size-base, var(--spacing, 0.25rem)) * 32 * max(0, var(--layout-density, 1)));
  }
  :where(.pe-32) {
    padding-inline-end: calc(var(--size-base, var(--spacing, 0.25rem)) * 32 * max(0, var(--layout-density, 1)));
  }
  :where(.m-32) {
    margin: calc(var(--size-base, var(--spacing, 0.25rem)) * 32 * max(0, var(--layout-density, 1)));
  }
  :where(.mx-32) {
    margin-inline: calc(var(--size-base, var(--spacing, 0.25rem)) * 32 * max(0, var(--layout-density, 1)));
  }
  :where(.my-32) {
    margin-block: calc(var(--size-base, var(--spacing, 0.25rem)) * 32 * max(0, var(--layout-density, 1)));
  }
  :where(.mt-32) {
    margin-top: calc(var(--size-base, var(--spacing, 0.25rem)) * 32 * max(0, var(--layout-density, 1)));
  }
  :where(.mr-32) {
    margin-right: calc(var(--size-base, var(--spacing, 0.25rem)) * 32 * max(0, var(--layout-density, 1)));
  }
  :where(.mb-32) {
    margin-bottom: calc(var(--size-base, var(--spacing, 0.25rem)) * 32 * max(0, var(--layout-density, 1)));
  }
  :where(.ml-32) {
    margin-left: calc(var(--size-base, var(--spacing, 0.25rem)) * 32 * max(0, var(--layout-density, 1)));
  }
  :where(.ms-32) {
    margin-inline-start: calc(var(--size-base, var(--spacing, 0.25rem)) * 32 * max(0, var(--layout-density, 1)));
  }
  :where(.me-32) {
    margin-inline-end: calc(var(--size-base, var(--spacing, 0.25rem)) * 32 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-36) {
    gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 36 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-x-36) {
    column-gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 36 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-y-36) {
    row-gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 36 * max(0, var(--layout-density, 1)));
  }
  :where(.p-36) {
    padding: calc(var(--size-base, var(--spacing, 0.25rem)) * 36 * max(0, var(--layout-density, 1)));
  }
  :where(.px-36) {
    padding-inline: calc(var(--size-base, var(--spacing, 0.25rem)) * 36 * max(0, var(--layout-density, 1)));
  }
  :where(.py-36) {
    padding-block: calc(var(--size-base, var(--spacing, 0.25rem)) * 36 * max(0, var(--layout-density, 1)));
  }
  :where(.pt-36) {
    padding-top: calc(var(--size-base, var(--spacing, 0.25rem)) * 36 * max(0, var(--layout-density, 1)));
  }
  :where(.pr-36) {
    padding-right: calc(var(--size-base, var(--spacing, 0.25rem)) * 36 * max(0, var(--layout-density, 1)));
  }
  :where(.pb-36) {
    padding-bottom: calc(var(--size-base, var(--spacing, 0.25rem)) * 36 * max(0, var(--layout-density, 1)));
  }
  :where(.pl-36) {
    padding-left: calc(var(--size-base, var(--spacing, 0.25rem)) * 36 * max(0, var(--layout-density, 1)));
  }
  :where(.ps-36) {
    padding-inline-start: calc(var(--size-base, var(--spacing, 0.25rem)) * 36 * max(0, var(--layout-density, 1)));
  }
  :where(.pe-36) {
    padding-inline-end: calc(var(--size-base, var(--spacing, 0.25rem)) * 36 * max(0, var(--layout-density, 1)));
  }
  :where(.m-36) {
    margin: calc(var(--size-base, var(--spacing, 0.25rem)) * 36 * max(0, var(--layout-density, 1)));
  }
  :where(.mx-36) {
    margin-inline: calc(var(--size-base, var(--spacing, 0.25rem)) * 36 * max(0, var(--layout-density, 1)));
  }
  :where(.my-36) {
    margin-block: calc(var(--size-base, var(--spacing, 0.25rem)) * 36 * max(0, var(--layout-density, 1)));
  }
  :where(.mt-36) {
    margin-top: calc(var(--size-base, var(--spacing, 0.25rem)) * 36 * max(0, var(--layout-density, 1)));
  }
  :where(.mr-36) {
    margin-right: calc(var(--size-base, var(--spacing, 0.25rem)) * 36 * max(0, var(--layout-density, 1)));
  }
  :where(.mb-36) {
    margin-bottom: calc(var(--size-base, var(--spacing, 0.25rem)) * 36 * max(0, var(--layout-density, 1)));
  }
  :where(.ml-36) {
    margin-left: calc(var(--size-base, var(--spacing, 0.25rem)) * 36 * max(0, var(--layout-density, 1)));
  }
  :where(.ms-36) {
    margin-inline-start: calc(var(--size-base, var(--spacing, 0.25rem)) * 36 * max(0, var(--layout-density, 1)));
  }
  :where(.me-36) {
    margin-inline-end: calc(var(--size-base, var(--spacing, 0.25rem)) * 36 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-40) {
    gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 40 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-x-40) {
    column-gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 40 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-y-40) {
    row-gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 40 * max(0, var(--layout-density, 1)));
  }
  :where(.p-40) {
    padding: calc(var(--size-base, var(--spacing, 0.25rem)) * 40 * max(0, var(--layout-density, 1)));
  }
  :where(.px-40) {
    padding-inline: calc(var(--size-base, var(--spacing, 0.25rem)) * 40 * max(0, var(--layout-density, 1)));
  }
  :where(.py-40) {
    padding-block: calc(var(--size-base, var(--spacing, 0.25rem)) * 40 * max(0, var(--layout-density, 1)));
  }
  :where(.pt-40) {
    padding-top: calc(var(--size-base, var(--spacing, 0.25rem)) * 40 * max(0, var(--layout-density, 1)));
  }
  :where(.pr-40) {
    padding-right: calc(var(--size-base, var(--spacing, 0.25rem)) * 40 * max(0, var(--layout-density, 1)));
  }
  :where(.pb-40) {
    padding-bottom: calc(var(--size-base, var(--spacing, 0.25rem)) * 40 * max(0, var(--layout-density, 1)));
  }
  :where(.pl-40) {
    padding-left: calc(var(--size-base, var(--spacing, 0.25rem)) * 40 * max(0, var(--layout-density, 1)));
  }
  :where(.ps-40) {
    padding-inline-start: calc(var(--size-base, var(--spacing, 0.25rem)) * 40 * max(0, var(--layout-density, 1)));
  }
  :where(.pe-40) {
    padding-inline-end: calc(var(--size-base, var(--spacing, 0.25rem)) * 40 * max(0, var(--layout-density, 1)));
  }
  :where(.m-40) {
    margin: calc(var(--size-base, var(--spacing, 0.25rem)) * 40 * max(0, var(--layout-density, 1)));
  }
  :where(.mx-40) {
    margin-inline: calc(var(--size-base, var(--spacing, 0.25rem)) * 40 * max(0, var(--layout-density, 1)));
  }
  :where(.my-40) {
    margin-block: calc(var(--size-base, var(--spacing, 0.25rem)) * 40 * max(0, var(--layout-density, 1)));
  }
  :where(.mt-40) {
    margin-top: calc(var(--size-base, var(--spacing, 0.25rem)) * 40 * max(0, var(--layout-density, 1)));
  }
  :where(.mr-40) {
    margin-right: calc(var(--size-base, var(--spacing, 0.25rem)) * 40 * max(0, var(--layout-density, 1)));
  }
  :where(.mb-40) {
    margin-bottom: calc(var(--size-base, var(--spacing, 0.25rem)) * 40 * max(0, var(--layout-density, 1)));
  }
  :where(.ml-40) {
    margin-left: calc(var(--size-base, var(--spacing, 0.25rem)) * 40 * max(0, var(--layout-density, 1)));
  }
  :where(.ms-40) {
    margin-inline-start: calc(var(--size-base, var(--spacing, 0.25rem)) * 40 * max(0, var(--layout-density, 1)));
  }
  :where(.me-40) {
    margin-inline-end: calc(var(--size-base, var(--spacing, 0.25rem)) * 40 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-48) {
    gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 48 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-x-48) {
    column-gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 48 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-y-48) {
    row-gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 48 * max(0, var(--layout-density, 1)));
  }
  :where(.p-48) {
    padding: calc(var(--size-base, var(--spacing, 0.25rem)) * 48 * max(0, var(--layout-density, 1)));
  }
  :where(.px-48) {
    padding-inline: calc(var(--size-base, var(--spacing, 0.25rem)) * 48 * max(0, var(--layout-density, 1)));
  }
  :where(.py-48) {
    padding-block: calc(var(--size-base, var(--spacing, 0.25rem)) * 48 * max(0, var(--layout-density, 1)));
  }
  :where(.pt-48) {
    padding-top: calc(var(--size-base, var(--spacing, 0.25rem)) * 48 * max(0, var(--layout-density, 1)));
  }
  :where(.pr-48) {
    padding-right: calc(var(--size-base, var(--spacing, 0.25rem)) * 48 * max(0, var(--layout-density, 1)));
  }
  :where(.pb-48) {
    padding-bottom: calc(var(--size-base, var(--spacing, 0.25rem)) * 48 * max(0, var(--layout-density, 1)));
  }
  :where(.pl-48) {
    padding-left: calc(var(--size-base, var(--spacing, 0.25rem)) * 48 * max(0, var(--layout-density, 1)));
  }
  :where(.ps-48) {
    padding-inline-start: calc(var(--size-base, var(--spacing, 0.25rem)) * 48 * max(0, var(--layout-density, 1)));
  }
  :where(.pe-48) {
    padding-inline-end: calc(var(--size-base, var(--spacing, 0.25rem)) * 48 * max(0, var(--layout-density, 1)));
  }
  :where(.m-48) {
    margin: calc(var(--size-base, var(--spacing, 0.25rem)) * 48 * max(0, var(--layout-density, 1)));
  }
  :where(.mx-48) {
    margin-inline: calc(var(--size-base, var(--spacing, 0.25rem)) * 48 * max(0, var(--layout-density, 1)));
  }
  :where(.my-48) {
    margin-block: calc(var(--size-base, var(--spacing, 0.25rem)) * 48 * max(0, var(--layout-density, 1)));
  }
  :where(.mt-48) {
    margin-top: calc(var(--size-base, var(--spacing, 0.25rem)) * 48 * max(0, var(--layout-density, 1)));
  }
  :where(.mr-48) {
    margin-right: calc(var(--size-base, var(--spacing, 0.25rem)) * 48 * max(0, var(--layout-density, 1)));
  }
  :where(.mb-48) {
    margin-bottom: calc(var(--size-base, var(--spacing, 0.25rem)) * 48 * max(0, var(--layout-density, 1)));
  }
  :where(.ml-48) {
    margin-left: calc(var(--size-base, var(--spacing, 0.25rem)) * 48 * max(0, var(--layout-density, 1)));
  }
  :where(.ms-48) {
    margin-inline-start: calc(var(--size-base, var(--spacing, 0.25rem)) * 48 * max(0, var(--layout-density, 1)));
  }
  :where(.me-48) {
    margin-inline-end: calc(var(--size-base, var(--spacing, 0.25rem)) * 48 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-56) {
    gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 56 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-x-56) {
    column-gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 56 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-y-56) {
    row-gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 56 * max(0, var(--layout-density, 1)));
  }
  :where(.p-56) {
    padding: calc(var(--size-base, var(--spacing, 0.25rem)) * 56 * max(0, var(--layout-density, 1)));
  }
  :where(.px-56) {
    padding-inline: calc(var(--size-base, var(--spacing, 0.25rem)) * 56 * max(0, var(--layout-density, 1)));
  }
  :where(.py-56) {
    padding-block: calc(var(--size-base, var(--spacing, 0.25rem)) * 56 * max(0, var(--layout-density, 1)));
  }
  :where(.pt-56) {
    padding-top: calc(var(--size-base, var(--spacing, 0.25rem)) * 56 * max(0, var(--layout-density, 1)));
  }
  :where(.pr-56) {
    padding-right: calc(var(--size-base, var(--spacing, 0.25rem)) * 56 * max(0, var(--layout-density, 1)));
  }
  :where(.pb-56) {
    padding-bottom: calc(var(--size-base, var(--spacing, 0.25rem)) * 56 * max(0, var(--layout-density, 1)));
  }
  :where(.pl-56) {
    padding-left: calc(var(--size-base, var(--spacing, 0.25rem)) * 56 * max(0, var(--layout-density, 1)));
  }
  :where(.ps-56) {
    padding-inline-start: calc(var(--size-base, var(--spacing, 0.25rem)) * 56 * max(0, var(--layout-density, 1)));
  }
  :where(.pe-56) {
    padding-inline-end: calc(var(--size-base, var(--spacing, 0.25rem)) * 56 * max(0, var(--layout-density, 1)));
  }
  :where(.m-56) {
    margin: calc(var(--size-base, var(--spacing, 0.25rem)) * 56 * max(0, var(--layout-density, 1)));
  }
  :where(.mx-56) {
    margin-inline: calc(var(--size-base, var(--spacing, 0.25rem)) * 56 * max(0, var(--layout-density, 1)));
  }
  :where(.my-56) {
    margin-block: calc(var(--size-base, var(--spacing, 0.25rem)) * 56 * max(0, var(--layout-density, 1)));
  }
  :where(.mt-56) {
    margin-top: calc(var(--size-base, var(--spacing, 0.25rem)) * 56 * max(0, var(--layout-density, 1)));
  }
  :where(.mr-56) {
    margin-right: calc(var(--size-base, var(--spacing, 0.25rem)) * 56 * max(0, var(--layout-density, 1)));
  }
  :where(.mb-56) {
    margin-bottom: calc(var(--size-base, var(--spacing, 0.25rem)) * 56 * max(0, var(--layout-density, 1)));
  }
  :where(.ml-56) {
    margin-left: calc(var(--size-base, var(--spacing, 0.25rem)) * 56 * max(0, var(--layout-density, 1)));
  }
  :where(.ms-56) {
    margin-inline-start: calc(var(--size-base, var(--spacing, 0.25rem)) * 56 * max(0, var(--layout-density, 1)));
  }
  :where(.me-56) {
    margin-inline-end: calc(var(--size-base, var(--spacing, 0.25rem)) * 56 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-64) {
    gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 64 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-x-64) {
    column-gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 64 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-y-64) {
    row-gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 64 * max(0, var(--layout-density, 1)));
  }
  :where(.p-64) {
    padding: calc(var(--size-base, var(--spacing, 0.25rem)) * 64 * max(0, var(--layout-density, 1)));
  }
  :where(.px-64) {
    padding-inline: calc(var(--size-base, var(--spacing, 0.25rem)) * 64 * max(0, var(--layout-density, 1)));
  }
  :where(.py-64) {
    padding-block: calc(var(--size-base, var(--spacing, 0.25rem)) * 64 * max(0, var(--layout-density, 1)));
  }
  :where(.pt-64) {
    padding-top: calc(var(--size-base, var(--spacing, 0.25rem)) * 64 * max(0, var(--layout-density, 1)));
  }
  :where(.pr-64) {
    padding-right: calc(var(--size-base, var(--spacing, 0.25rem)) * 64 * max(0, var(--layout-density, 1)));
  }
  :where(.pb-64) {
    padding-bottom: calc(var(--size-base, var(--spacing, 0.25rem)) * 64 * max(0, var(--layout-density, 1)));
  }
  :where(.pl-64) {
    padding-left: calc(var(--size-base, var(--spacing, 0.25rem)) * 64 * max(0, var(--layout-density, 1)));
  }
  :where(.ps-64) {
    padding-inline-start: calc(var(--size-base, var(--spacing, 0.25rem)) * 64 * max(0, var(--layout-density, 1)));
  }
  :where(.pe-64) {
    padding-inline-end: calc(var(--size-base, var(--spacing, 0.25rem)) * 64 * max(0, var(--layout-density, 1)));
  }
  :where(.m-64) {
    margin: calc(var(--size-base, var(--spacing, 0.25rem)) * 64 * max(0, var(--layout-density, 1)));
  }
  :where(.mx-64) {
    margin-inline: calc(var(--size-base, var(--spacing, 0.25rem)) * 64 * max(0, var(--layout-density, 1)));
  }
  :where(.my-64) {
    margin-block: calc(var(--size-base, var(--spacing, 0.25rem)) * 64 * max(0, var(--layout-density, 1)));
  }
  :where(.mt-64) {
    margin-top: calc(var(--size-base, var(--spacing, 0.25rem)) * 64 * max(0, var(--layout-density, 1)));
  }
  :where(.mr-64) {
    margin-right: calc(var(--size-base, var(--spacing, 0.25rem)) * 64 * max(0, var(--layout-density, 1)));
  }
  :where(.mb-64) {
    margin-bottom: calc(var(--size-base, var(--spacing, 0.25rem)) * 64 * max(0, var(--layout-density, 1)));
  }
  :where(.ml-64) {
    margin-left: calc(var(--size-base, var(--spacing, 0.25rem)) * 64 * max(0, var(--layout-density, 1)));
  }
  :where(.ms-64) {
    margin-inline-start: calc(var(--size-base, var(--spacing, 0.25rem)) * 64 * max(0, var(--layout-density, 1)));
  }
  :where(.me-64) {
    margin-inline-end: calc(var(--size-base, var(--spacing, 0.25rem)) * 64 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-72) {
    gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 72 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-x-72) {
    column-gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 72 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-y-72) {
    row-gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 72 * max(0, var(--layout-density, 1)));
  }
  :where(.p-72) {
    padding: calc(var(--size-base, var(--spacing, 0.25rem)) * 72 * max(0, var(--layout-density, 1)));
  }
  :where(.px-72) {
    padding-inline: calc(var(--size-base, var(--spacing, 0.25rem)) * 72 * max(0, var(--layout-density, 1)));
  }
  :where(.py-72) {
    padding-block: calc(var(--size-base, var(--spacing, 0.25rem)) * 72 * max(0, var(--layout-density, 1)));
  }
  :where(.pt-72) {
    padding-top: calc(var(--size-base, var(--spacing, 0.25rem)) * 72 * max(0, var(--layout-density, 1)));
  }
  :where(.pr-72) {
    padding-right: calc(var(--size-base, var(--spacing, 0.25rem)) * 72 * max(0, var(--layout-density, 1)));
  }
  :where(.pb-72) {
    padding-bottom: calc(var(--size-base, var(--spacing, 0.25rem)) * 72 * max(0, var(--layout-density, 1)));
  }
  :where(.pl-72) {
    padding-left: calc(var(--size-base, var(--spacing, 0.25rem)) * 72 * max(0, var(--layout-density, 1)));
  }
  :where(.ps-72) {
    padding-inline-start: calc(var(--size-base, var(--spacing, 0.25rem)) * 72 * max(0, var(--layout-density, 1)));
  }
  :where(.pe-72) {
    padding-inline-end: calc(var(--size-base, var(--spacing, 0.25rem)) * 72 * max(0, var(--layout-density, 1)));
  }
  :where(.m-72) {
    margin: calc(var(--size-base, var(--spacing, 0.25rem)) * 72 * max(0, var(--layout-density, 1)));
  }
  :where(.mx-72) {
    margin-inline: calc(var(--size-base, var(--spacing, 0.25rem)) * 72 * max(0, var(--layout-density, 1)));
  }
  :where(.my-72) {
    margin-block: calc(var(--size-base, var(--spacing, 0.25rem)) * 72 * max(0, var(--layout-density, 1)));
  }
  :where(.mt-72) {
    margin-top: calc(var(--size-base, var(--spacing, 0.25rem)) * 72 * max(0, var(--layout-density, 1)));
  }
  :where(.mr-72) {
    margin-right: calc(var(--size-base, var(--spacing, 0.25rem)) * 72 * max(0, var(--layout-density, 1)));
  }
  :where(.mb-72) {
    margin-bottom: calc(var(--size-base, var(--spacing, 0.25rem)) * 72 * max(0, var(--layout-density, 1)));
  }
  :where(.ml-72) {
    margin-left: calc(var(--size-base, var(--spacing, 0.25rem)) * 72 * max(0, var(--layout-density, 1)));
  }
  :where(.ms-72) {
    margin-inline-start: calc(var(--size-base, var(--spacing, 0.25rem)) * 72 * max(0, var(--layout-density, 1)));
  }
  :where(.me-72) {
    margin-inline-end: calc(var(--size-base, var(--spacing, 0.25rem)) * 72 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-80) {
    gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 80 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-x-80) {
    column-gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 80 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-y-80) {
    row-gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 80 * max(0, var(--layout-density, 1)));
  }
  :where(.p-80) {
    padding: calc(var(--size-base, var(--spacing, 0.25rem)) * 80 * max(0, var(--layout-density, 1)));
  }
  :where(.px-80) {
    padding-inline: calc(var(--size-base, var(--spacing, 0.25rem)) * 80 * max(0, var(--layout-density, 1)));
  }
  :where(.py-80) {
    padding-block: calc(var(--size-base, var(--spacing, 0.25rem)) * 80 * max(0, var(--layout-density, 1)));
  }
  :where(.pt-80) {
    padding-top: calc(var(--size-base, var(--spacing, 0.25rem)) * 80 * max(0, var(--layout-density, 1)));
  }
  :where(.pr-80) {
    padding-right: calc(var(--size-base, var(--spacing, 0.25rem)) * 80 * max(0, var(--layout-density, 1)));
  }
  :where(.pb-80) {
    padding-bottom: calc(var(--size-base, var(--spacing, 0.25rem)) * 80 * max(0, var(--layout-density, 1)));
  }
  :where(.pl-80) {
    padding-left: calc(var(--size-base, var(--spacing, 0.25rem)) * 80 * max(0, var(--layout-density, 1)));
  }
  :where(.ps-80) {
    padding-inline-start: calc(var(--size-base, var(--spacing, 0.25rem)) * 80 * max(0, var(--layout-density, 1)));
  }
  :where(.pe-80) {
    padding-inline-end: calc(var(--size-base, var(--spacing, 0.25rem)) * 80 * max(0, var(--layout-density, 1)));
  }
  :where(.m-80) {
    margin: calc(var(--size-base, var(--spacing, 0.25rem)) * 80 * max(0, var(--layout-density, 1)));
  }
  :where(.mx-80) {
    margin-inline: calc(var(--size-base, var(--spacing, 0.25rem)) * 80 * max(0, var(--layout-density, 1)));
  }
  :where(.my-80) {
    margin-block: calc(var(--size-base, var(--spacing, 0.25rem)) * 80 * max(0, var(--layout-density, 1)));
  }
  :where(.mt-80) {
    margin-top: calc(var(--size-base, var(--spacing, 0.25rem)) * 80 * max(0, var(--layout-density, 1)));
  }
  :where(.mr-80) {
    margin-right: calc(var(--size-base, var(--spacing, 0.25rem)) * 80 * max(0, var(--layout-density, 1)));
  }
  :where(.mb-80) {
    margin-bottom: calc(var(--size-base, var(--spacing, 0.25rem)) * 80 * max(0, var(--layout-density, 1)));
  }
  :where(.ml-80) {
    margin-left: calc(var(--size-base, var(--spacing, 0.25rem)) * 80 * max(0, var(--layout-density, 1)));
  }
  :where(.ms-80) {
    margin-inline-start: calc(var(--size-base, var(--spacing, 0.25rem)) * 80 * max(0, var(--layout-density, 1)));
  }
  :where(.me-80) {
    margin-inline-end: calc(var(--size-base, var(--spacing, 0.25rem)) * 80 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-96) {
    gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 96 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-x-96) {
    column-gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 96 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-y-96) {
    row-gap: calc(var(--size-base, var(--spacing, 0.25rem)) * 96 * max(0, var(--layout-density, 1)));
  }
  :where(.p-96) {
    padding: calc(var(--size-base, var(--spacing, 0.25rem)) * 96 * max(0, var(--layout-density, 1)));
  }
  :where(.px-96) {
    padding-inline: calc(var(--size-base, var(--spacing, 0.25rem)) * 96 * max(0, var(--layout-density, 1)));
  }
  :where(.py-96) {
    padding-block: calc(var(--size-base, var(--spacing, 0.25rem)) * 96 * max(0, var(--layout-density, 1)));
  }
  :where(.pt-96) {
    padding-top: calc(var(--size-base, var(--spacing, 0.25rem)) * 96 * max(0, var(--layout-density, 1)));
  }
  :where(.pr-96) {
    padding-right: calc(var(--size-base, var(--spacing, 0.25rem)) * 96 * max(0, var(--layout-density, 1)));
  }
  :where(.pb-96) {
    padding-bottom: calc(var(--size-base, var(--spacing, 0.25rem)) * 96 * max(0, var(--layout-density, 1)));
  }
  :where(.pl-96) {
    padding-left: calc(var(--size-base, var(--spacing, 0.25rem)) * 96 * max(0, var(--layout-density, 1)));
  }
  :where(.ps-96) {
    padding-inline-start: calc(var(--size-base, var(--spacing, 0.25rem)) * 96 * max(0, var(--layout-density, 1)));
  }
  :where(.pe-96) {
    padding-inline-end: calc(var(--size-base, var(--spacing, 0.25rem)) * 96 * max(0, var(--layout-density, 1)));
  }
  :where(.m-96) {
    margin: calc(var(--size-base, var(--spacing, 0.25rem)) * 96 * max(0, var(--layout-density, 1)));
  }
  :where(.mx-96) {
    margin-inline: calc(var(--size-base, var(--spacing, 0.25rem)) * 96 * max(0, var(--layout-density, 1)));
  }
  :where(.my-96) {
    margin-block: calc(var(--size-base, var(--spacing, 0.25rem)) * 96 * max(0, var(--layout-density, 1)));
  }
  :where(.mt-96) {
    margin-top: calc(var(--size-base, var(--spacing, 0.25rem)) * 96 * max(0, var(--layout-density, 1)));
  }
  :where(.mr-96) {
    margin-right: calc(var(--size-base, var(--spacing, 0.25rem)) * 96 * max(0, var(--layout-density, 1)));
  }
  :where(.mb-96) {
    margin-bottom: calc(var(--size-base, var(--spacing, 0.25rem)) * 96 * max(0, var(--layout-density, 1)));
  }
  :where(.ml-96) {
    margin-left: calc(var(--size-base, var(--spacing, 0.25rem)) * 96 * max(0, var(--layout-density, 1)));
  }
  :where(.ms-96) {
    margin-inline-start: calc(var(--size-base, var(--spacing, 0.25rem)) * 96 * max(0, var(--layout-density, 1)));
  }
  :where(.me-96) {
    margin-inline-end: calc(var(--size-base, var(--spacing, 0.25rem)) * 96 * max(0, var(--layout-density, 1)));
  }
  :where(.gap-px) {
    gap: 1px;
  }
  :where(.gap-x-px) {
    column-gap: 1px;
  }
  :where(.gap-y-px) {
    row-gap: 1px;
  }
  :where(.p-px) {
    padding: 1px;
  }
  :where(.px-px) {
    padding-inline: 1px;
  }
  :where(.py-px) {
    padding-block: 1px;
  }
  :where(.pt-px) {
    padding-top: 1px;
  }
  :where(.pr-px) {
    padding-right: 1px;
  }
  :where(.pb-px) {
    padding-bottom: 1px;
  }
  :where(.pl-px) {
    padding-left: 1px;
  }
  :where(.ps-px) {
    padding-inline-start: 1px;
  }
  :where(.pe-px) {
    padding-inline-end: 1px;
  }
  :where(.m-px) {
    margin: 1px;
  }
  :where(.mx-px) {
    margin-inline: 1px;
  }
  :where(.my-px) {
    margin-block: 1px;
  }
  :where(.mt-px) {
    margin-top: 1px;
  }
  :where(.mr-px) {
    margin-right: 1px;
  }
  :where(.mb-px) {
    margin-bottom: 1px;
  }
  :where(.ml-px) {
    margin-left: 1px;
  }
  :where(.ms-px) {
    margin-inline-start: 1px;
  }
  :where(.me-px) {
    margin-inline-end: 1px;
  }
  :where(.m-auto) {
    margin: auto;
  }
  :where(.mx-auto) {
    margin-inline: auto;
  }
  :where(.my-auto) {
    margin-block: auto;
  }
  :where(.mt-auto) {
    margin-top: auto;
  }
  :where(.mr-auto) {
    margin-right: auto;
  }
  :where(.mb-auto) {
    margin-bottom: auto;
  }
  :where(.ml-auto) {
    margin-left: auto;
  }
  :where(.ms-auto) {
    margin-inline-start: auto;
  }
  :where(.me-auto) {
    margin-inline-end: auto;
  }
}

/* ── theme/utils/layout.css ── */
/* defuss-shadcn - optional native layout utilities.
 * .flex / .grid only select a formatting context: no default gap or tracks.
 * .stack / .center / .container / .query and .grid-cols-auto are extensions.
 * Params are instance-owned: nested primitives do not inherit outer configs.
 * Native hidden/closed states are not overridden by display helpers.
 */
@layer components, utilities;

@layer components {
  :where(.flex, .inline-flex, .grid, .inline-grid, .stack, .center) {
    --layout-gap: initial;
  }
  :where(.grid, .inline-grid) {
    --layout-min: 16rem;
  }
  :where(.stack) {
    gap: var(--layout-gap, calc(var(--size-base, var(--spacing, 0.25rem)) * 4 * max(0, var(--layout-density, 1))));
    flex-direction: column;
  }
  :where(.flex, .inline-flex, .grid, .inline-grid, .center) {
    gap: var(--layout-gap, 0px);
  }
  :where(.container) {
    --layout-max: 80rem;
    --layout-gutter: calc(var(--size-base, var(--spacing, 0.25rem)) * 4 * max(0, var(--layout-density, 1)));
    box-sizing: border-box;
    inline-size: 100%;
    max-inline-size: var(--layout-max);
    min-inline-size: 0;
    margin-inline: auto;
    padding-inline: var(--layout-gutter);
  }
  :where(.center) {
    place-items: center;
  }
  :where(.query) {
    container: layout / inline-size;
  }
}

@layer utilities {
  :where(
    .flex:not([hidden]):not(dialog:not([open])):not([popover]:not(:popover-open)),
    .stack:not([hidden]):not(dialog:not([open])):not([popover]:not(:popover-open))
  ) {
    display: flex;
  }
  :where(.inline-flex:not([hidden]):not(dialog:not([open])):not([popover]:not(:popover-open))) {
    display: inline-flex;
  }
  :where(
    .grid:not([hidden]):not(dialog:not([open])):not([popover]:not(:popover-open)),
    .center:not([hidden]):not(dialog:not([open])):not([popover]:not(:popover-open))
  ) {
    display: grid;
  }
  :where(.inline-grid:not([hidden]):not(dialog:not([open])):not([popover]:not(:popover-open))) {
    display: inline-grid;
  }
  :where(.block:not([hidden]):not(dialog:not([open])):not([popover]:not(:popover-open))) {
    display: block;
  }
  :where(.inline-block:not([hidden]):not(dialog:not([open])):not([popover]:not(:popover-open))) {
    display: inline-block;
  }
  :where(.inline:not([hidden]):not(dialog:not([open])):not([popover]:not(:popover-open))) {
    display: inline;
  }
  :where(.hidden) {
    display: none;
  }
  :where(.flex-row) {
    flex-direction: row;
  }
  :where(.flex-col) {
    flex-direction: column;
  }
  :where(.flex-wrap) {
    flex-wrap: wrap;
  }
  :where(.flex-nowrap) {
    flex-wrap: nowrap;
  }
  :where(.flex-1) {
    flex: 1 1 0%;
  }
  :where(.flex-auto) {
    flex: 1 1 auto;
  }
  :where(.flex-initial) {
    flex: 0 1 auto;
  }
  :where(.flex-none) {
    flex: none;
  }
  :where(.grow) {
    flex-grow: 1;
  }
  :where(.grow-0) {
    flex-grow: 0;
  }
  :where(.shrink) {
    flex-shrink: 1;
  }
  :where(.shrink-0) {
    flex-shrink: 0;
  }
  :where(.basis-0) {
    flex-basis: 0px;
  }
  :where(.basis-auto) {
    flex-basis: auto;
  }
  :where(.basis-full) {
    flex-basis: 100%;
  }
  :where(.items-start) {
    align-items: flex-start;
  }
  :where(.items-end) {
    align-items: flex-end;
  }
  :where(.items-center) {
    align-items: center;
  }
  :where(.items-baseline) {
    align-items: baseline;
  }
  :where(.items-stretch) {
    align-items: stretch;
  }
  :where(.justify-start) {
    justify-content: flex-start;
  }
  :where(.justify-end) {
    justify-content: flex-end;
  }
  :where(.justify-center) {
    justify-content: center;
  }
  :where(.justify-between) {
    justify-content: space-between;
  }
  :where(.justify-around) {
    justify-content: space-around;
  }
  :where(.justify-evenly) {
    justify-content: space-evenly;
  }
  :where(.justify-normal) {
    justify-content: normal;
  }
  :where(.self-auto) {
    align-self: auto;
  }
  :where(.self-start) {
    align-self: flex-start;
  }
  :where(.self-end) {
    align-self: flex-end;
  }
  :where(.self-center) {
    align-self: center;
  }
  :where(.self-baseline) {
    align-self: baseline;
  }
  :where(.self-stretch) {
    align-self: stretch;
  }
  :where(.content-start) {
    align-content: flex-start;
  }
  :where(.content-end) {
    align-content: flex-end;
  }
  :where(.content-center) {
    align-content: center;
  }
  :where(.content-between) {
    align-content: space-between;
  }
  :where(.content-around) {
    align-content: space-around;
  }
  :where(.content-evenly) {
    align-content: space-evenly;
  }
  :where(.content-stretch) {
    align-content: stretch;
  }
  :where(.content-normal) {
    align-content: normal;
  }
  :where(.justify-items-start) {
    justify-items: start;
  }
  :where(.justify-items-end) {
    justify-items: end;
  }
  :where(.justify-items-center) {
    justify-items: center;
  }
  :where(.justify-items-stretch) {
    justify-items: stretch;
  }
  :where(.justify-self-auto) {
    justify-self: auto;
  }
  :where(.justify-self-start) {
    justify-self: start;
  }
  :where(.justify-self-end) {
    justify-self: end;
  }
  :where(.justify-self-center) {
    justify-self: center;
  }
  :where(.justify-self-stretch) {
    justify-self: stretch;
  }
  :where(.place-items-start) {
    place-items: start;
  }
  :where(.place-items-end) {
    place-items: end;
  }
  :where(.place-items-center) {
    place-items: center;
  }
  :where(.place-items-stretch) {
    place-items: stretch;
  }
  :where(.place-items-baseline) {
    place-items: baseline;
  }
  :where(.place-self-auto) {
    place-self: auto;
  }
  :where(.place-self-start) {
    place-self: start;
  }
  :where(.place-self-end) {
    place-self: end;
  }
  :where(.place-self-center) {
    place-self: center;
  }
  :where(.place-self-stretch) {
    place-self: stretch;
  }

  /* Intrinsic and explicit tracks; no implicit breakpoint generator. */
  :where(.grid-cols-auto) {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--layout-min, 16rem)), 1fr));
  }
  :where(.grid-cols-1) {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  :where(.col-span-1) {
    grid-column: span 1 / span 1;
  }
  :where(.grid-cols-2) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  :where(.col-span-2) {
    grid-column: span 2 / span 2;
  }
  :where(.grid-cols-3) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  :where(.col-span-3) {
    grid-column: span 3 / span 3;
  }
  :where(.grid-cols-4) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  :where(.col-span-4) {
    grid-column: span 4 / span 4;
  }
  :where(.grid-cols-5) {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  :where(.col-span-5) {
    grid-column: span 5 / span 5;
  }
  :where(.grid-cols-6) {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  :where(.col-span-6) {
    grid-column: span 6 / span 6;
  }
  :where(.grid-cols-7) {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
  :where(.col-span-7) {
    grid-column: span 7 / span 7;
  }
  :where(.grid-cols-8) {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
  :where(.col-span-8) {
    grid-column: span 8 / span 8;
  }
  :where(.grid-cols-9) {
    grid-template-columns: repeat(9, minmax(0, 1fr));
  }
  :where(.col-span-9) {
    grid-column: span 9 / span 9;
  }
  :where(.grid-cols-10) {
    grid-template-columns: repeat(10, minmax(0, 1fr));
  }
  :where(.col-span-10) {
    grid-column: span 10 / span 10;
  }
  :where(.grid-cols-11) {
    grid-template-columns: repeat(11, minmax(0, 1fr));
  }
  :where(.col-span-11) {
    grid-column: span 11 / span 11;
  }
  :where(.grid-cols-12) {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  :where(.col-span-12) {
    grid-column: span 12 / span 12;
  }
  :where(.grid-rows-1) {
    grid-template-rows: repeat(1, minmax(0, 1fr));
  }
  :where(.row-span-1) {
    grid-row: span 1 / span 1;
  }
  :where(.grid-rows-2) {
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }
  :where(.row-span-2) {
    grid-row: span 2 / span 2;
  }
  :where(.grid-rows-3) {
    grid-template-rows: repeat(3, minmax(0, 1fr));
  }
  :where(.row-span-3) {
    grid-row: span 3 / span 3;
  }
  :where(.grid-rows-4) {
    grid-template-rows: repeat(4, minmax(0, 1fr));
  }
  :where(.row-span-4) {
    grid-row: span 4 / span 4;
  }
  :where(.grid-rows-5) {
    grid-template-rows: repeat(5, minmax(0, 1fr));
  }
  :where(.row-span-5) {
    grid-row: span 5 / span 5;
  }
  :where(.grid-rows-6) {
    grid-template-rows: repeat(6, minmax(0, 1fr));
  }
  :where(.row-span-6) {
    grid-row: span 6 / span 6;
  }
  :where(.col-span-full) {
    grid-column: 1 / -1;
  }
  :where(.row-span-full) {
    grid-row: 1 / -1;
  }
  :where(.grid-cols-none) {
    grid-template-columns: none;
  }
  :where(.grid-rows-none) {
    grid-template-rows: none;
  }
  :where(.grid-cols-subgrid) {
    grid-template-columns: subgrid;
  }
  :where(.grid-rows-subgrid) {
    grid-template-rows: subgrid;
  }
  :where(.auto-rows-auto) {
    grid-auto-rows: auto;
  }
  :where(.auto-cols-auto) {
    grid-auto-columns: auto;
  }

  /* Box clipping/scrolling and text-flow control - orthogonal to gap/track
     selection; the generic pairing for constrained containers (a scrollable
     table on a capped width needs both overflow-x-auto and nowrap cells). */
  :where(.overflow-x-auto) {
    overflow-x: auto;
  }
  :where(.overflow-y-auto) {
    overflow-y: auto;
  }
  :where(.overflow-auto) {
    overflow: auto;
  }
  :where(.overflow-hidden) {
    overflow: hidden;
  }
  :where(.overflow-visible) {
    overflow: visible;
  }
  :where(.overflow-clip) {
    overflow: clip;
  }
  :where(.overflow-x-hidden) {
    overflow-x: hidden;
  }
  :where(.overflow-y-hidden) {
    overflow-y: hidden;
  }
  /* Text-overflow applies to the block axis of an overflowing line box —
     pair with overflow-hidden (truncate bundles all three parts). */
  :where(.text-ellipsis) {
    text-overflow: ellipsis;
  }
  :where(.text-clip) {
    text-overflow: clip;
  }
  :where(.truncate) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  /* Overflowing WORDS: break-word/anywhere split on demand, break-all splits
     per character, break-normal restores. `wrap-anywhere` also shrinks
     min-content - the flex min-w-0 companion that lets a long identifier wrap
     inside a shrinkable track. */
  :where(.break-normal) {
    overflow-wrap: normal;
    word-break: normal;
  }
  :where(.break-words) {
    overflow-wrap: break-word;
  }
  :where(.break-all) {
    word-break: break-all;
  }
  :where(.wrap-anywhere) {
    overflow-wrap: anywhere;
  }
  :where(.whitespace-nowrap) {
    white-space: nowrap;
  }
  :where(.whitespace-normal) {
    white-space: normal;
  }
  :where(.whitespace-pre-wrap) {
    white-space: pre-wrap;
  }
}

/* ── theme/utils/accessibility.css ── */
/* defuss-shadcn - optional accessibility utilities.
 * Text meant for assistive technology only (.sr-only) and its inverse
 * (.not-sr-only). The clip pattern keeps content in the AT tree while
 * removing it visually - display:none would hide it from screen readers too.
 * Focusable elements re-reveal via :focus / :focus-within so keyboard users
 * never lose the control entirely (the Tailwind idiom, kept intact).
 */
@layer components, utilities;

@layer utilities {
  :where(.sr-only) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border-width: 0;
  }

  /* Undo .sr-only back to ordinary flow content. */
  :where(.not-sr-only) {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    overflow: visible;
    clip: auto;
    clip-path: none;
    white-space: normal;
  }
}

/* ── components/alert-dialog/alert-dialog.css ── */
@layer components {
  dialog.alert-dialog {
    border: none;
    border-radius: var(--radius-xl);
    background: var(--background);
    color: var(--foreground);
    padding: 0;
    max-width: 28rem;
    width: calc(100% - 2rem);
    box-shadow: var(--shadow-lg);
    margin: auto;
    position: fixed;
    inset: 0;

    /* Entry/exit animation */
    opacity: 0;
    transform: translateY(-0.5rem) scale(0.98);
    transition:
      opacity 200ms ease,
      transform 200ms ease,
      display 200ms allow-discrete;

    &[open] {
      opacity: 1;
      transform: translateY(0) scale(1);
    }

    &::backdrop {
      background: oklch(0 0 0 / 0);
      backdrop-filter: blur(0px);
      transition:
        all 200ms ease,
        display 200ms allow-discrete;
    }

    &[open]::backdrop {
      background: oklch(0 0 0 / 0.45);
      backdrop-filter: blur(3px);
    }

    /* Block Escape key - user must choose an action */
    &::backdrop {
      pointer-events: auto;
    }
  }

  @starting-style {
    dialog.alert-dialog[open] {
      opacity: 0;
      transform: translateY(-0.5rem) scale(0.98);
    }
    dialog.alert-dialog[open]::backdrop {
      background: oklch(0 0 0 / 0);
      backdrop-filter: blur(0px);
    }
  }

  /* -- Scroll lock ------------------------------------------- */
  /* Page behind stays put while the alert is modal (see dialog.css):
     `:modal` + overflow:hidden freezes the viewport at its current offset. */
  html:has(dialog.alert-dialog:modal) {
    overflow: hidden;
    scrollbar-gutter: stable;
  }

  .alert-dialog-content {
    padding: 1.5rem;
  }

  /* -- Density ------------------------------------------------
     data-density on the .alert-dialog root scales the content padding
     (0.75 / 1 / 1.25 of the 1.5rem default); comfortable matches the
     unsized default. */
  .alert-dialog:where([data-density="compact"]) .alert-dialog-content {
    padding: 1rem;
  }
  .alert-dialog:where([data-density="comfortable"]) .alert-dialog-content {
    padding: 1.5rem;
  }
  .alert-dialog:where([data-density="spacious"]) .alert-dialog-content {
    padding: 2rem;
  }

  .alert-dialog-header {
    margin-bottom: 1.25rem;
  }

  .alert-dialog-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.3;
  }

  .alert-dialog-description {
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.5;
  }

  .alert-dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
  }
}

/* Accessibility: suppress motion for users who request it (REQUIRED for all
   components - AGENTS.md "Accessibility CSS"). Near-zero duration instead of
   `none` keeps transitionend/animationend (and discrete display flips)
   firing so JS state machines that await them keep working. */
@media (prefers-reduced-motion: reduce) {
  @layer components {
    .alert-dialog,
    .alert-dialog *,
    .alert-dialog::before,
    .alert-dialog::after,
    .alert-dialog *::before,
    .alert-dialog *::after,
    .alert-dialog::backdrop,
    .alert-dialog-content,
    .alert-dialog-content *,
    .alert-dialog-content::before,
    .alert-dialog-content::after,
    .alert-dialog-content *::before,
    .alert-dialog-content *::after,
    .alert-dialog-content::backdrop,
    .alert-dialog-header,
    .alert-dialog-header *,
    .alert-dialog-header::before,
    .alert-dialog-header::after,
    .alert-dialog-header *::before,
    .alert-dialog-header *::after,
    .alert-dialog-header::backdrop,
    .alert-dialog-title,
    .alert-dialog-title *,
    .alert-dialog-title::before,
    .alert-dialog-title::after,
    .alert-dialog-title *::before,
    .alert-dialog-title *::after,
    .alert-dialog-title::backdrop,
    .alert-dialog-description,
    .alert-dialog-description *,
    .alert-dialog-description::before,
    .alert-dialog-description::after,
    .alert-dialog-description *::before,
    .alert-dialog-description *::after,
    .alert-dialog-description::backdrop,
    .alert-dialog-footer,
    .alert-dialog-footer *,
    .alert-dialog-footer::before,
    .alert-dialog-footer::after,
    .alert-dialog-footer *::before,
    .alert-dialog-footer *::after,
    .alert-dialog-footer::backdrop {
      transition-duration: 0.01ms !important;
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
    }
  }
}

/* ── components/avatar/avatar.css ── */
@layer components {
  .avatar {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    flex-shrink: 0;
    background-color: var(--muted);

    /* No overflow:hidden: the badge dot sits half outside the circle (like
       shadcn's -right-1 dot) and clipping cut it to a sliver. Circular
       rendering comes from border-radius: inherit on image/fallback instead. */

    &[data-size="xs"] {
      width: 1.5rem;
      height: 1.5rem;
      --_badge: 0.75rem;
      font-size: 0.5625rem;
    }

    &[data-size="sm"] {
      width: 2rem;
      height: 2rem;
      --_badge: 1rem;
      font-size: 0.6875rem;
    }

    &[data-size="md"] {
      width: 2.5rem;
      height: 2.5rem;
      --_badge: 1.25rem;
      font-size: 0.75rem;
    }

    &[data-size="lg"] {
      width: 3rem;
      height: 3rem;
      --_badge: 1.5rem;
      font-size: 0.875rem;
    }

    &[data-size="xl"] {
      width: 4rem;
      height: 4rem;
      --_badge: 1.75rem;
      font-size: 1rem;
    }

    /* -- Shape: the image and fallback inherit the radius, so one
       attribute reshapes the whole avatar (the badge is never clipped).
       For silhouettes (heart, squircle, hexagon…) put a shape-* class from
       theme/utils/shapes.css on the .avatar-image instead. */
    &[data-shape="rounded"] {
      border-radius: var(--radius-lg);
    }
    &[data-shape="square"] {
      border-radius: var(--radius-sm);
    }

    /* a loaded photo covers the box: no muted plate behind a shaped image */
    &:has(> .avatar-image:not([data-error])) {
      background-color: transparent;
    }

    /* -- Ring: a colored ring with a background-colored gap, following
       the avatar's shape */
    &[data-ring] {
      box-shadow:
        0 0 0 2px var(--background),
        0 0 0 4px var(--primary);
    }
    &[data-ring="secondary"] {
      box-shadow:
        0 0 0 2px var(--background),
        0 0 0 4px var(--muted-foreground);
    }
    &[data-ring="destructive"] {
      box-shadow:
        0 0 0 2px var(--background),
        0 0 0 4px var(--destructive);
    }
  }

  .avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
  }

  .avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--muted-foreground);
    background-color: var(--muted);
    position: absolute;
    inset: 0;
    border-radius: inherit; /* .avatar no longer clips - the fallback must round itself */

    /* placeholder colors (letters on a solid plate) */
    &[data-variant="primary"] {
      background-color: var(--primary);
      color: var(--primary-foreground);
    }
    &[data-variant="neutral"] {
      background-color: var(--foreground);
      color: var(--background);
    }
  }

  /* Hide fallback when image is loaded */
  .avatar:has(.avatar-image:not([data-error])) .avatar-fallback {
    display: none;
  }

  /* Status dot. data-variant picks the presence state; no variant = online
     (the historical green). Status colours are literals by design - the
     tweakcn token set has no success/warning pair (AGENTS.md token rule).
     Colour is never the only cue (WCAG 1.4.1): offline is a hollow ring,
     busy carries a bar, away clock hands - the four read apart in greyscale
     and in forced-colors mode. Every cue is PAINTED inside a full circle
     (no mask): the silhouette and its separating rim stay whole, so the dot
     always sits in front of the avatar. Size scales with the avatar
     (--_badge, set per data-size below); rim and cues scale with it.
     Name it with role="img" + aria-label. */
  .avatar-badge {
    --_rim: max(2px, calc(var(--_badge, 1.25rem) * 0.15));
    position: absolute;
    inset-inline-end: calc(var(--_rim) * -0.5);
    inset-block-end: calc(var(--_rim) * -0.5);
    z-index: 1;
    width: var(--_badge, 1.25rem);
    height: var(--_badge, 1.25rem);
    box-sizing: border-box;
    border-radius: 9999px;
    background-color: #16a34a;
    border: var(--_rim) solid var(--background);
    background-repeat: no-repeat;

    &[data-variant="online"] {
      background-color: #16a34a;
    }

    /* data-position: any of the four corners (default bottom-end); start /
       end are logical - in RTL, start is the right */
    &[data-position^="top"] {
      inset-block: calc(var(--_rim) * -0.5) auto;
    }
    &[data-position$="start"] {
      inset-inline: calc(var(--_rim) * -0.5) auto;
    }

    /* hollow ring: "not here" */
    &[data-variant="offline"] {
      background-color: var(--background);
      box-shadow: inset 0 0 0 max(2px, calc(var(--_badge, 1.25rem) * 0.14)) #9ca3af;
    }

    /* red with a bar: do not disturb */
    &[data-variant="busy"] {
      background-color: #dc2626;
      background-image: linear-gradient(#fff 0 0);
      background-size: 56% max(2px, calc(var(--_badge, 1.25rem) * 0.14));
      background-position: center;
    }

    /* amber with clock hands (12 → 3 o'clock): away / be right back */
    &[data-variant="away"] {
      background-color: #f59e0b;
      background-image: linear-gradient(#fff 0 0), linear-gradient(#fff 0 0);
      background-size:
        max(2px, calc(var(--_badge, 1.25rem) * 0.12)) 34%,
        30% max(2px, calc(var(--_badge, 1.25rem) * 0.12));
      /* hour hand: centred, from ~16% down to the centre; minute hand: from
         the centre to ~80% (percent positions: (box - layer) * p) */
      background-position:
        50% 24%,
        71% 50%;
    }
  }

  /* Avatar group - data-overlap="sm|lg" tightens / loosens the stack */
  .avatar-group {
    display: flex;
    align-items: center;

    & .avatar {
      border: 2px solid var(--background);
      margin-left: -0.5rem;

      &:first-child {
        margin-left: 0;
      }
    }
    &[data-overlap="sm"] :is(.avatar, .avatar-group-count):not(:first-child) {
      margin-left: -0.25rem;
    }
    &[data-overlap="lg"] :is(.avatar, .avatar-group-count):not(:first-child) {
      margin-left: -1rem;
    }
  }

  .avatar-group-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background-color: var(--muted);
    color: var(--muted-foreground);
    font-size: 0.75rem;
    font-weight: 500;
    border: 2px solid var(--background);
    margin-left: -0.5rem;
  }
}

/* Forced colors (Windows High Contrast) would repaint the status fills with
   the system Canvas colour and erase the dot. Presence colour carries meaning
   (like a chart series), so the badge keeps its own palette; the ring / bar /
   crescent shape cues stay as well. */
@media (forced-colors: active) {
  @layer components {
    .avatar-badge {
      forced-color-adjust: none;
    }
  }
}

/* ── components/badge/badge.css ── */
/* -- Badge component ------------------------------------------- */

@layer components {
  .badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: 0.125rem 0.625rem;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.5rem;
    /* a pill never breaks its label or gets squeezed in a flex row (as in
       shadcn/ui) - a wrapped badge doubles its line-height into a lozenge */
    white-space: nowrap;
    flex-shrink: 0;

    /* -- Sizes: font, vertical padding and the line-height (which gives the
       pill its height) scale together. Default (no attribute) == md. */
    &[data-size="xs"] {
      font-size: 0.5625rem;
      padding: 0 0.375rem;
      line-height: 1.125rem;
    }
    &[data-size="sm"] {
      font-size: 0.625rem;
      padding: 0.0625rem 0.5rem;
      line-height: 1.25rem;
    }
    &[data-size="md"] {
      font-size: 0.6875rem;
      padding: 0.125rem 0.625rem;
      line-height: 1.5rem;
    }
    &[data-size="lg"] {
      font-size: 0.8125rem;
      padding: 0.1875rem 0.75rem;
      line-height: 1.75rem;
    }
    &[data-size="xl"] {
      font-size: 0.9375rem;
      padding: 0.25rem 0.875rem;
      line-height: 2rem;
    }

    &[data-variant="outline"] {
      border: 1px solid var(--border);
      color: var(--muted-foreground);
    }

    &[data-variant="secondary"] {
      background: var(--secondary);
      color: var(--secondary-foreground);
    }

    &[data-variant="default"] {
      background: var(--primary);
      color: var(--primary-foreground);
    }

    &[data-variant="destructive"] {
      background: var(--destructive);
      color: var(--destructive-foreground);
    }
  }
}

/* ── components/blog-header/blog-header.css ── */
/* -- Blog Header (website) ------------------------------------------
   Introduces a blog: eyebrow, title, editorial description, optional
   actions (subscribe, RSS) and the category chips - the current category
   marked with aria-current. Centered, or set on a banner surface. */

@layer components {
  .mk-blog-header {
    container: mk-blog-header / inline-size;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    box-sizing: border-box;
    width: 100%;
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: 1.25rem;
  }

  .mk-blog-header-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    max-width: 46rem;
  }

  .mk-blog-header-eyebrow {
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 500;
  }

  .mk-blog-header-title {
    margin: 0;
    font-size: 2.25rem;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-wrap: balance;
  }

  .mk-blog-header-desc {
    margin: 0;
    color: var(--muted-foreground);
    font-size: 1.0625rem;
    line-height: 1.6;
    text-wrap: pretty;
  }

  .mk-blog-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  /* categories: chips, the current one filled */
  .mk-blog-header-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;

    & a {
      display: inline-flex;
      align-items: center;
      gap: 0.375rem;
      padding: 0.3125rem 0.875rem;
      border: 1px solid var(--border);
      border-radius: 999px;
      color: var(--foreground);
      font-size: 0.8125rem;
      font-weight: 500;
      text-decoration: none;
      transition:
        background-color 120ms,
        border-color 120ms,
        color 120ms;

      &:hover {
        background: var(--accent);
        color: var(--accent-foreground);
      }
      &[aria-current] {
        border-color: var(--primary);
        background: var(--primary);
        color: var(--primary-foreground);
      }
      &:focus-visible {
        outline: 2px solid var(--ring);
        outline-offset: 2px;
      }
    }
  }

  .mk-blog-header[data-align="center"] {
    align-items: center;
    text-align: center;

    & .mk-blog-header-copy {
      align-items: center;
    }
    & :is(.mk-blog-header-actions, .mk-blog-header-categories) {
      justify-content: center;
    }
  }

  /* banner: the header on a muted surface */
  .mk-blog-header[data-variant="banner"] {
    padding: 2.5rem 1.5rem;
    border-radius: var(--radius-xl);
    background:
      radial-gradient(120% 140% at 0% 0%, color-mix(in oklch, var(--primary) 14%, transparent), transparent 60%),
      var(--muted);
  }

  /* a count inside a category chip */
  .mk-blog-header-categories a .mk-blog-header-count {
    padding: 0 0.375rem;
    border-radius: 999px;
    background: color-mix(in oklch, currentColor 12%, transparent);
    font-size: 0.6875rem;
    font-variant-numeric: tabular-nums;
  }

  /* a toolbar row: search on the left, view / sort on the right */
  .mk-blog-header-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    padding-block-start: 1rem;
    border-block-start: 1px solid var(--border);
  }

  /* an inline subscribe form: email + button */
  .mk-blog-header-subscribe {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
    max-width: 26rem;

    & .input {
      flex: 1 1 12rem;
    }
  }

  /* split: the copy beside a featured image */
  .mk-blog-header[data-variant="split"] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
    align-items: center;
    gap: 2rem;
  }
  .mk-blog-header-media {
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--muted);
    box-shadow: var(--shadow-lg);
    rotate: 1.5deg;

    & img {
      display: block;
      width: 100%;
      aspect-ratio: 4 / 3;
      object-fit: cover;
    }
  }

  /* editorial: a serif masthead, centered between ornaments */
  .mk-blog-header[data-variant="editorial"] {
    align-items: center;
    text-align: center;

    & .mk-blog-header-copy {
      align-items: center;
    }
    & .mk-blog-header-eyebrow {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      color: var(--muted-foreground);
      font-size: 0.75rem;
      letter-spacing: 0.2em;
      text-transform: uppercase;

      &::before,
      &::after {
        content: "";
        width: 2.5rem;
        height: 1px;
        background: currentColor;
      }
    }
    & .mk-blog-header-title {
      font-family: var(--font-serif);
      font-weight: 700;
      font-style: italic;
      letter-spacing: -0.01em;
    }
    & .mk-blog-header-categories {
      justify-content: center;
    }
    & .mk-blog-header-categories a {
      border: 0;
      border-radius: 0;
      padding-inline: 0.25rem;
    }
    & .mk-blog-header-categories a[aria-current] {
      background: transparent;
      color: var(--foreground);
      box-shadow: inset 0 -2px var(--primary);
    }
  }

  @container mk-blog-header (min-width: 48rem) {
    .mk-blog-header-title {
      font-size: 3rem;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .mk-blog-header-categories a {
      transition: none;
    }
  }

  @media (prefers-contrast: more) {
    .mk-blog-header-desc {
      color: var(--foreground);
    }
    .mk-blog-header-categories a {
      border-color: var(--foreground);
    }
  }

  @media (forced-colors: active) {
    .mk-blog-header-categories a[aria-current] {
      forced-color-adjust: none;
      background: Highlight;
      color: HighlightText;
      border-color: Highlight;
    }
  }
}

/* ── components/blog-item/blog-item.css ── */
/* -- Blog Item (website) --------------------------------------------
   Previews one post: image, category + read time, the title (its link
   stretches over the whole item), a clamped excerpt and the byline (Avatar).
   Default: a vertical card; horizontal: image beside the copy; featured:
   the copy laid over the image. */

@layer components {
  .mk-blog-item {
    container: mk-blog-item / inline-size;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
    color: var(--foreground);

    &:has(.mk-blog-item-title a:focus-visible) {
      outline: 2px solid var(--ring);
      outline-offset: 4px;
      border-radius: var(--radius-lg);
    }
  }

  .mk-blog-item-media {
    aspect-ratio: 3 / 2;
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--muted);

    & img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: scale 300ms ease;
    }
  }
  .mk-blog-item:hover .mk-blog-item-media img {
    scale: 1.03;
  }

  .mk-blog-item-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
  }

  .mk-blog-item-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted-foreground);
    font-size: 0.8125rem;
  }

  .mk-blog-item-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.02em;
    text-wrap: balance;

    & a {
      color: inherit;
      text-decoration: none;
      outline: none;

      &::after {
        content: "";
        position: absolute;
        inset: 0;
      }
    }
  }

  .mk-blog-item-excerpt {
    margin: 0;
    color: var(--muted-foreground);
    font-size: 0.9375rem;
    line-height: 1.6;
    text-wrap: pretty;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .mk-blog-item-byline {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-block-start: auto;
    padding-block-start: 0.5rem;
    font-size: 0.8125rem;
  }

  .mk-blog-item-author {
    font-weight: 500;
  }
  .mk-blog-item-date {
    color: var(--muted-foreground);
  }

  /* horizontal: image beside the copy - the row wraps (image above) once
     the copy would drop under 18rem; no query needed */
  .mk-blog-item[data-variant="horizontal"] {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1rem 1.5rem;

    & .mk-blog-item-media {
      flex: 1 1 14rem;
      max-width: 100%;
    }
    & .mk-blog-item-body {
      flex: 999 1 18rem;
    }
  }

  /* featured: the copy over the image, on a darkening gradient */
  .mk-blog-item[data-variant="featured"] {
    justify-content: flex-end;
    isolation: isolate;
    min-height: 24rem;
    padding: 1.5rem;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #0b0b0f;
    color: #fff;

    & .mk-blog-item-media {
      position: absolute;
      inset: 0;
      z-index: -1;
      aspect-ratio: auto;
      border-radius: 0;

      &::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgb(0 0 0 / 0.85), rgb(0 0 0 / 0.35) 55%, transparent);
      }
    }
    & .mk-blog-item-body {
      flex: none;
      max-width: 40rem;
    }
    & .mk-blog-item-title {
      font-size: 1.75rem;
    }
    & :is(.mk-blog-item-meta, .mk-blog-item-excerpt, .mk-blog-item-date) {
      color: rgb(255 255 255 / 0.8);
    }
  }
  @container mk-blog-item (min-width: 40rem) {
    .mk-blog-item[data-variant="featured"] .mk-blog-item-title {
      font-size: 2.25rem;
    }
  }

  /* tags under the excerpt, actions on the image (a bookmark Swap…): raised
     above the stretched link so they stay clickable */
  .mk-blog-item-tags {
    position: relative;
    z-index: 1;

    & a {
      text-decoration: none;
    }
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
  }
  .mk-blog-item-actions {
    position: absolute;
    inset-block-start: 0.625rem;
    inset-inline-end: 0.625rem;
    z-index: 1;
    display: flex;
    gap: 0.25rem;

    & .swap,
    & .btn {
      border-radius: 999px;
      background: color-mix(in oklch, var(--background) 85%, transparent);
      backdrop-filter: blur(6px);
      box-shadow: var(--shadow-sm);
    }
  }

  /* card: on a card surface, lifted on hover */
  .mk-blog-item[data-variant="card"] {
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--card);
    transition:
      translate 200ms ease,
      box-shadow 200ms ease;

    &:hover {
      translate: 0 -3px;
      box-shadow: var(--shadow-lg);
    }
    & .mk-blog-item-media {
      border-radius: 0;
    }
    & .mk-blog-item-body {
      padding: 1.125rem 1.25rem 1.25rem;
    }
    & .mk-blog-item-byline {
      padding-block-start: 0.75rem;
      margin-block-start: auto;
      border-block-start: 1px solid var(--border);
    }
  }

  /* minimal: typographic - the date in a column, no image */
  .mk-blog-item[data-variant="minimal"] {
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 1fr);
    gap: 0 1.5rem;
    padding-block: 1.25rem;
    border-block-end: 1px solid var(--border);

    & .mk-blog-item-media {
      display: none;
    }
    & .mk-blog-item-body {
      display: contents;
    }
    & .mk-blog-item-byline {
      grid-column: 1;
      grid-row: 1 / span 3;
      flex-direction: column;
      align-items: flex-start;
      gap: 0.125rem;
      padding: 0.25rem 0 0;
      margin: 0;
    }
    & :is(.mk-blog-item-byline .avatar, .mk-blog-item-author) {
      display: none;
    }
    & :is(.mk-blog-item-meta, .mk-blog-item-title, .mk-blog-item-excerpt, .mk-blog-item-tags) {
      grid-column: 2;
    }
    & .mk-blog-item-title {
      font-size: 1.375rem;
    }
    &:hover .mk-blog-item-title {
      text-decoration: underline;
      text-underline-offset: 0.2em;
    }
  }

  /* quote: a post that leads with a pull quote */
  .mk-blog-item[data-variant="quote"] {
    justify-content: space-between;
    min-height: 16rem;
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    background: var(--primary);
    color: var(--primary-foreground);

    & .mk-blog-item-media {
      display: none;
    }
    & .mk-blog-item-title {
      font-family: var(--font-serif);
      font-size: 1.5rem;
      font-weight: 600;
      line-height: 1.3;

      &::before {
        content: "“";
        display: block;
        font-size: 3rem;
        line-height: 0.6;
        opacity: 0.5;
      }
    }
    & :is(.mk-blog-item-meta, .mk-blog-item-excerpt, .mk-blog-item-date) {
      color: color-mix(in oklch, var(--primary-foreground) 75%, transparent);
    }
    & .mk-blog-item-meta .badge {
      background: color-mix(in oklch, var(--primary-foreground) 15%, transparent);
      color: inherit;
    }
  }

  /* podcast: a square cover beside the copy, a player under it */
  .mk-blog-item[data-variant="podcast"] {
    display: grid;
    grid-template-columns: 7rem minmax(0, 1fr);
    gap: 0 1.25rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--card);

    & .mk-blog-item-media {
      aspect-ratio: 1;
      border-radius: var(--radius-md);
    }
    & .mk-blog-item-excerpt {
      -webkit-line-clamp: 2;
    }
    & .mk-blog-item-byline {
      padding-block-start: 0.25rem;
    }
  }
  .mk-blog-item-player {
    position: relative;
    z-index: 1;
    grid-column: 1 / -1;
    width: 100%;
    height: 2.5rem;
    margin-block-start: 0.875rem;
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .mk-blog-item-media img {
      transition: none;
    }
    .mk-blog-item:hover .mk-blog-item-media img {
      scale: none;
    }
    .mk-blog-item[data-variant="card"] {
      transition: none;
    }
    .mk-blog-item[data-variant="card"]:hover {
      translate: none;
    }
  }

  @media (prefers-contrast: more) {
    .mk-blog-item-excerpt,
    .mk-blog-item-meta {
      color: var(--foreground);
    }
  }

  @media (forced-colors: active) {
    .mk-blog-item-title a {
      color: LinkText;
    }
    .mk-blog-item[data-variant="featured"] {
      border: 1px solid CanvasText;
    }
  }
}

/* ── components/button/button.css ── */
/* -- Button component ------------------------------------------ */

@layer components {
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: var(--font-sans);
    line-height: 1;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 150ms ease;
    outline: none;
    flex-shrink: 0;
    height: 2.25rem;
    padding: 0 1rem;
    background-color: var(--primary);
    color: var(--primary-foreground);

    & svg {
      pointer-events: none;
      flex-shrink: 0;

      &:not([class*="size-"]) {
        width: 1rem;
        height: 1rem;
      }
    }

    /* a loading .spinner inside a button takes the button's own text color —
       spinner.css defaults it to --muted-foreground, invisible on a primary */
    & .spinner {
      color: inherit;
    }

    &:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: 2px;
    }

    &:disabled,
    &[aria-disabled="true"] {
      pointer-events: none;
      opacity: 0.5;
    }

    /* Loading state (aria-busy + a .spinner child): a disabled button must
       freeze its spinner - "pending" is signaled by the dimming, a frozen
       wheel is the accepted pattern; only an ENABLED busy button spins. */
    &:disabled .spinner,
    &[aria-disabled="true"] .spinner {
      animation-play-state: paused;
    }

    /* -- Variants -------------------------------------------- */
    &[data-variant="default"] {
      background-color: var(--primary);
      color: var(--primary-foreground);

      &:hover {
        opacity: 0.9;
      }
    }

    &[data-variant="secondary"] {
      background-color: var(--secondary);
      color: var(--secondary-foreground);

      /* --secondary is near-white in light themes, so an opacity fade would
         wash the button further into the page background (invisible hover).
         Mixing in the foreground color instead darkens light themes and
         lightens dark ones - always moving away from the page surface. */
      &:hover {
        background-color: color-mix(in oklch, var(--secondary) 85%, var(--secondary-foreground));
      }
    }

    &[data-variant="outline"] {
      background-color: var(--background);
      color: var(--foreground);
      border: 1px solid var(--border);
      box-shadow: var(--shadow-xs);

      &:hover {
        background-color: var(--accent);
        color: var(--accent-foreground);
      }
    }

    &[data-variant="ghost"] {
      background-color: transparent;
      color: var(--foreground);
      border-color: transparent;

      &:hover {
        background-color: var(--accent);
        color: var(--accent-foreground);
      }
    }

    &[data-variant="destructive"] {
      background-color: var(--destructive);
      color: var(--destructive-foreground);

      &:hover {
        opacity: 0.9;
      }
    }

    &[data-variant="link"] {
      background-color: transparent;
      color: var(--primary);
      height: auto;
      padding: 0;
      text-underline-offset: 4px;

      &:hover {
        text-decoration: underline;
      }
    }

    /* soft: a tint of the color, text in the color */
    &[data-variant="soft"] {
      background-color: color-mix(in oklch, var(--primary) 12%, transparent);
      color: color-mix(in oklch, var(--primary) 80%, var(--foreground));

      &:hover {
        background-color: color-mix(in oklch, var(--primary) 20%, transparent);
      }
    }

    /* dashed: a drop-zone / "add" look */
    &[data-variant="dashed"] {
      background-color: transparent;
      color: var(--foreground);
      border: 1px dashed color-mix(in oklch, var(--foreground) 35%, transparent);

      &:hover {
        background-color: var(--accent);
        color: var(--accent-foreground);
        border-style: solid;
      }
    }

    /* -- Tones: any variant in another color -------------------
       data-tone="success" / "warning" / "info" / "destructive" - or
       data-tone="custom" with style="--btn-color: …; --btn-color-fg: …"
       (the text on a solid fill, default white). Solid buttons fill with the
       tone; outline / ghost / soft / dashed / link write in it, mixed toward
       the foreground so a light tone (amber) stays readable. */
    &[data-tone] {
      --_tone: var(--btn-color, var(--primary));
      --_tone-fg: var(--btn-color-fg, #fff);
      --_tone-ink: color-mix(in oklch, var(--_tone) 78%, var(--foreground));
    }
    &[data-tone="success"] {
      --_tone: oklch(0.6 0.15 150);
    }
    &[data-tone="warning"] {
      --_tone: oklch(0.8 0.16 80);
      --_tone-fg: oklch(0.28 0.06 60);
    }
    &[data-tone="info"] {
      --_tone: oklch(0.6 0.16 250);
    }
    &[data-tone="destructive"] {
      --_tone: var(--destructive);
      --_tone-fg: var(--destructive-foreground, #fff);
    }

    &[data-tone]:is(:not([data-variant]), [data-variant="default"]) {
      background-color: var(--_tone);
      color: var(--_tone-fg);

      &:hover {
        opacity: 0.9;
      }
    }
    &[data-tone][data-variant="outline"] {
      background-color: transparent;
      color: var(--_tone-ink);
      border-color: var(--_tone);

      &:hover {
        background-color: color-mix(in oklch, var(--_tone) 12%, transparent);
        color: var(--_tone-ink);
      }
    }
    &[data-tone]:is([data-variant="ghost"], [data-variant="dashed"]) {
      color: var(--_tone-ink);

      &:hover {
        background-color: color-mix(in oklch, var(--_tone) 14%, transparent);
        color: var(--_tone-ink);
      }
    }
    &[data-tone][data-variant="dashed"] {
      border-color: var(--_tone);
    }
    &[data-tone][data-variant="soft"] {
      background-color: color-mix(in oklch, var(--_tone) 16%, transparent);
      color: var(--_tone-ink);

      &:hover {
        background-color: color-mix(in oklch, var(--_tone) 26%, transparent);
      }
    }
    &[data-tone][data-variant="link"] {
      color: var(--_tone-ink);
    }

    /* -- RTL: arrows and other directional icons mirror ----------
       mark them data-rtl-flip; symmetric icons stay as they are */
    &:dir(rtl) [data-rtl-flip] {
      scale: -1 1;
    }

    /* -- Sizes ----------------------------------------------- */
    &[data-size="xs"] {
      height: 1.75rem;
      padding: 0 0.5rem;
      font-size: 0.75rem;
      border-radius: var(--radius-sm);
    }
    &[data-size="sm"] {
      height: 2rem;
      padding: 0 0.75rem;
      font-size: 0.8125rem;
    }
    &[data-size="md"] {
      height: 2.25rem;
      padding: 0 1rem;
      font-size: 0.875rem;
    }
    &[data-size="lg"] {
      height: 2.75rem;
      padding: 0 2rem;
      font-size: 1rem;
    }
    &[data-size="xl"] {
      height: 3.25rem;
      padding: 0 2.5rem;
      font-size: 1.125rem;
    }
    &[data-size="icon"] {
      height: 2.25rem;
      width: 2.25rem;
      padding: 0;
    }
    &[data-size="icon-xs"] {
      height: 1.75rem;
      width: 1.75rem;
      padding: 0;
      border-radius: var(--radius-sm);
    }
    &[data-size="icon-sm"] {
      height: 2rem;
      width: 2rem;
      padding: 0;
    }
    &[data-size="icon-lg"] {
      height: 2.75rem;
      width: 2.75rem;
      padding: 0;
    }
    &[data-size="icon-xl"] {
      height: 3.25rem;
      width: 3.25rem;
      padding: 0;
    }
  }

  /* -- Accessibility ------------------------------------------ */

  @media (prefers-reduced-motion: reduce) {
    .btn {
      transition: none;
    }
  }

  @media (prefers-contrast: more) {
    .btn {
      border: 2px solid transparent;

      &[data-variant="default"],
      &[data-variant="secondary"],
      &[data-variant="destructive"] {
        border-color: currentColor;
      }

      &[data-variant="outline"],
      &[data-variant="ghost"] {
        border-color: var(--foreground);
      }
    }
  }

  @media (forced-colors: active) {
    .btn {
      border: 1px solid ButtonText;

      &:disabled,
      &[aria-disabled="true"] {
        border-color: GrayText;
        color: GrayText;
      }
    }
  }
}

/* ── components/calendar/calendar.css ── */
@layer components {
  .calendar {
    display: inline-flex;
    flex-direction: column;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background-color: var(--card);
    user-select: none;
  }

  .calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.25rem 0.5rem;
  }

  .calendar-heading {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
  }

  /* The heading as a button (the JS upgrades a plain heading): the month +
     year are the obvious thing to click - it opens the month grid, and in
     the month grid the year opens the year grid. The chevron says "menu". */
  button.calendar-heading {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.5rem;
    border: none;
    border-radius: var(--radius-md);
    background: transparent;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 150ms ease;

    &::after {
      content: "";
      width: 0.375rem;
      height: 0.375rem;
      margin-top: -0.1875rem;
      border: solid currentColor;
      border-width: 0 1.5px 1.5px 0;
      rotate: 45deg;
      transition: rotate 150ms ease;
    }

    &[aria-expanded="true"]::after {
      rotate: -135deg;
      margin-top: 0.1875rem;
    }
    &:hover {
      background-color: var(--accent);
    }
    &:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: 2px;
    }
  }

  /* data-caption="dropdown": native month + year selects between the arrows
     (the fastest way to a date decades away - type the year) */
  .calendar-caption {
    display: inline-flex;
    gap: 0.25rem;
  }

  .calendar-select {
    padding: 0.25rem 0.375rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background-color: transparent;
    color: var(--foreground);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;

    &:hover {
      background-color: var(--accent);
    }
    &:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: 2px;
    }
  }

  /* -- Month / year picker (data-view="months" | "years") -------
     Swaps in for the day grid at the same size: 12 months or 12 years in a
     4-column grid. The current one is filled, this month / year is tinted. */
  .calendar-picker {
    display: none;
  }

  .calendar[data-view] {
    & .calendar-grid {
      display: none;
    }

    & .calendar-picker {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      align-content: center;
      gap: 0.375rem;
      box-sizing: border-box;
      padding: 0.25rem;
    }
  }

  .calendar-pick {
    height: 2.25rem;
    padding: 0;
    border: none;
    border-radius: var(--radius-md);
    background-color: transparent;
    color: var(--foreground);
    font: inherit;
    font-size: 0.8125rem;
    cursor: pointer;
    transition:
      background-color 150ms ease,
      color 150ms ease;

    &:hover {
      background-color: var(--accent);
    }
    &:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: 2px;
    }
    &[data-today] {
      background-color: var(--accent);
      font-weight: 600;
    }

    &[aria-current="true"] {
      background-color: var(--primary);
      color: var(--primary-foreground);
    }

    /* legible but inert (outside min / max), like every disabled control */
    &:disabled {
      background-color: transparent;
      color: var(--muted-foreground);
      text-decoration: line-through;
      cursor: not-allowed;
    }
  }

  .calendar-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background-color: transparent;
    color: var(--foreground);
    cursor: pointer;
    transition: background-color 150ms ease;

    &:hover {
      background-color: var(--accent);
    }

    &:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: 2px;
    }

    & svg {
      width: 0.875rem;
      height: 0.875rem;
    }
  }

  .calendar-grid {
    border-collapse: collapse;
    border-spacing: 0;
  }

  /* the ISO week column (data-week-numbers): quieter and narrower than the days */
  .calendar-week-label,
  .calendar-week {
    width: 1.75rem;
    padding: 0;
    font-size: 0.6875rem;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
    color: color-mix(in oklch, var(--muted-foreground) 80%, transparent);
    text-align: center;
    vertical-align: middle;
  }

  .calendar-week {
    border-inline-end: 1px solid var(--border);
  }

  .calendar-day-label {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--muted-foreground);
    text-align: center;
    vertical-align: middle;
  }

  /* -- Density --------------------------------------------------
     data-density on the .calendar root scales the whitespace between the
     frame and the grid plus the day hit-areas (0.75 / 1 / 1.25-ish scale of
     the 2rem/2.25rem cells); comfortable matches the unsized default.
     Typography stays put - a spacing policy, not a zoom. */
  .calendar:where([data-density="compact"]) {
    padding: 0.5rem;
    & .calendar-day-label,
    & .calendar-day {
      width: 1.75rem;
      height: 1.75rem;
    }
    & .calendar-day button {
      width: 1.5rem;
      height: 1.5rem;
    }
  }
  .calendar:where([data-density="comfortable"]) {
    padding: 0.75rem;
  }
  .calendar:where([data-density="spacious"]) {
    padding: 1rem;
    & .calendar-day-label,
    & .calendar-day {
      width: 2.75rem;
      height: 2.75rem;
    }
    & .calendar-day button {
      width: 2.5rem;
      height: 2.5rem;
    }
  }

  .calendar-day {
    width: 2.25rem;
    height: 2.25rem;
    text-align: center;
    vertical-align: middle;
    padding: 0;

    & button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 2rem;
      height: 2rem;
      font-size: 0.8125rem;
      border: none;
      border-radius: var(--radius-md);
      background-color: transparent;
      color: var(--foreground);
      cursor: pointer;
      transition:
        background-color 150ms ease,
        color 150ms ease;

      &:hover {
        background-color: var(--accent);
      }

      &:focus-visible {
        outline: 2px solid var(--ring);
        outline-offset: 2px;
      }
    }

    &[data-today] button {
      background-color: var(--accent);
      font-weight: 600;
    }

    &[data-selected] button {
      background-color: var(--primary);
      color: var(--primary-foreground);

      &:hover {
        opacity: 0.9;
      }
    }

    &[data-outside] button {
      color: var(--muted-foreground);
      opacity: 0.5;
    }

    &[data-disabled] button {
      color: var(--muted-foreground);
      opacity: 0.35;
      cursor: not-allowed;
    }
  }

  /* -- Day data: marks + notes -----------------------------------
     data-mark="…" is the page's own classification of a day (a holiday, a
     booked night, a scheduled event): a dot centered under the number (in
     the cell's corner when the calendar has notes - the note takes that
     line) plus, for the built-in names, a look of its own. Any other name
     gets the neutral dot - style it with .calendar-day[data-mark="name"].
     A note is a second line under the number (a price, a count); a calendar
     with notes gets taller cells (data-notes, set by the JS). The dot keeps
     a gap to the digits at every density: in a corner it touched a
     two-digit number of a compact 1.5rem button. */
  .calendar-day button {
    position: relative;
  }

  .calendar-day[data-mark] button::after {
    content: "";
    position: absolute;
    bottom: 0.125rem;
    inset-inline-start: calc(50% - 0.125rem);
    width: 0.25rem;
    height: 0.25rem;
    border-radius: 50%;
    background-color: var(--muted-foreground);
  }

  /* a calendar with marks lifts every number (not only the marked ones, so a
     row stays on one line) to make room for the dot */
  .calendar:not([data-notes]):has(.calendar-day[data-mark]) .calendar-day button {
    padding-block-end: 0.375rem;
  }

  .calendar[data-notes] .calendar-day[data-mark] button::after {
    bottom: auto;
    top: 0.1875rem;
    inset-inline: auto 0.1875rem;
    width: 0.3125rem;
    height: 0.3125rem;
  }

  .calendar-day[data-mark="holiday"] button {
    color: var(--destructive);
    font-weight: 600;

    &::after {
      background-color: var(--destructive);
    }
  }

  .calendar-day[data-mark="event"] button::after {
    background-color: var(--primary);
  }

  .calendar-day[data-mark="booked"] button {
    color: var(--muted-foreground);
    text-decoration: line-through;
    background-image: repeating-linear-gradient(
      135deg,
      transparent 0 4px,
      color-mix(in oklch, var(--muted-foreground) 18%, transparent) 4px 5px
    );

    &::after {
      display: none;
    }
  }

  /* a marked day that is also blocked (booked, a blackout date) keeps its
     look at full strength - the mark IS the information, the 0.35 fade of
     a plain disabled day would erase it */
  .calendar-day[data-mark][data-disabled]:not([data-outside]) button {
    opacity: 1;
  }

  /* on a filled (selected / endpoint) day the marks follow its foreground */
  .calendar-day:is([data-selected], [data-range-start], [data-range-end])[data-mark] button {
    color: var(--primary-foreground);
    &::after {
      background-color: currentColor;
    }
  }

  .calendar-day-note {
    display: block;
    font-size: 0.625rem;
    line-height: 1;
    font-weight: 400;
    color: var(--muted-foreground);
    text-decoration: none;
  }

  .calendar-day:is([data-selected], [data-range-start], [data-range-end]) .calendar-day-note {
    color: inherit;
    opacity: 0.85;
  }

  .calendar[data-notes] {
    & .calendar-day-label {
      width: 2.75rem;
    }

    & .calendar-day {
      width: 2.75rem;
      height: 3rem;

      & button {
        flex-direction: column;
        gap: 0.1875rem;
        width: 2.5rem;
        height: 2.75rem;
      }
    }
  }

  /* -- Range mode ------------------------------------------------
     A range picker is a .calendar[data-mode="range"] or a .calendar-range
     wrapper around several calendars (consecutive months, one shared range).
     Look: endpoints (data-range-start / -end) are filled with --primary,
     the days between (data-in-range) form a continuous --accent band that
     runs half into each endpoint cell (data-range-span). While only the start
     is chosen, the hovered/focused day previews the span (data-range-preview:
     lighter band, outlined end). Outside days are hidden - each month grid
     shows only its own days, so the band never jumps between months. */
  .calendar-range {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background-color: var(--card);

    /* the months sit on the wrapper's card */
    & > .calendar {
      padding: 0;
      border: none;
      border-radius: 0;
      background-color: transparent;
    }

    /* one pair of arrows for the whole picker: back on the first month,
       forward on the last (visibility keeps the headings centred) */
    & > .calendar ~ .calendar [data-action="prev-month"],
    & > .calendar:has(~ .calendar) [data-action="next-month"] {
      visibility: hidden;
    }
  }

  /* summary row under the months: the chosen range as one answer.
     contain: inline-size - the row takes the months' width instead of
     widening the picker to its own (a 100%-basis row would stretch the
     inline-flex card across the page) */
  .calendar-range-footer {
    flex-basis: 100%;
    contain: inline-size;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    font-size: 0.875rem;
    color: var(--foreground);
  }

  :is(.calendar[data-mode="range"], .calendar-range .calendar) .calendar-day[data-outside] {
    visibility: hidden;
    pointer-events: none;
  }

  .calendar-day {
    &[data-in-range] {
      background-color: var(--accent);

      & button {
        color: var(--accent-foreground);
      }
    }

    &[data-range-start][data-range-span] {
      background: linear-gradient(to right, transparent 50%, var(--accent) 50%);
    }

    &[data-range-end][data-range-span] {
      background: linear-gradient(to left, transparent 50%, var(--accent) 50%);
    }

    &:is([data-range-start], [data-range-end]) button {
      background-color: var(--primary);
      color: var(--primary-foreground);
      font-weight: 500;
    }

    /* preview (start chosen, end not yet): lighter band, outlined end */
    &[data-in-range][data-range-preview] {
      background-color: color-mix(in oklch, var(--accent) 60%, transparent);
    }

    &[data-range-end][data-range-preview][data-range-span] {
      background: linear-gradient(to left, transparent 50%, color-mix(in oklch, var(--accent) 60%, transparent) 50%);
    }

    &[data-range-end][data-range-preview] button {
      background-color: var(--background);
      color: var(--foreground);
      box-shadow: inset 0 0 0 1.5px var(--primary);
    }
  }
}

/* Accessibility: suppress motion for users who request it (REQUIRED for all
   components - AGENTS.md "Accessibility CSS"). Near-zero duration instead of
   `none` keeps transitionend/animationend (and discrete display flips)
   firing so JS state machines that await them keep working. */
@media (prefers-reduced-motion: reduce) {
  @layer components {
    .calendar,
    .calendar *,
    .calendar::before,
    .calendar::after,
    .calendar *::before,
    .calendar *::after,
    .calendar::backdrop,
    .calendar-header,
    .calendar-header *,
    .calendar-header::before,
    .calendar-header::after,
    .calendar-header *::before,
    .calendar-header *::after,
    .calendar-header::backdrop,
    .calendar-heading,
    .calendar-heading *,
    .calendar-heading::before,
    .calendar-heading::after,
    .calendar-heading *::before,
    .calendar-heading *::after,
    .calendar-heading::backdrop,
    .calendar-nav,
    .calendar-nav *,
    .calendar-nav::before,
    .calendar-nav::after,
    .calendar-nav *::before,
    .calendar-nav *::after,
    .calendar-nav::backdrop,
    .calendar-grid,
    .calendar-grid *,
    .calendar-grid::before,
    .calendar-grid::after,
    .calendar-grid *::before,
    .calendar-grid *::after,
    .calendar-grid::backdrop,
    .calendar-day-label,
    .calendar-day-label *,
    .calendar-day-label::before,
    .calendar-day-label::after,
    .calendar-day-label *::before,
    .calendar-day-label *::after,
    .calendar-day-label::backdrop,
    .calendar-day,
    .calendar-day *,
    .calendar-day::before,
    .calendar-day::after,
    .calendar-day *::before,
    .calendar-day *::after,
    .calendar-day::backdrop {
      transition-duration: 0.01ms !important;
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
    }
  }
}

/* Forced colors (Windows High Contrast) drop the accent band and the primary
   fills: selected days (the single selection, both endpoints and the days
   between) take the system Highlight pair instead. */
@media (forced-colors: active) {
  @layer components {
    .calendar-day[aria-selected="true"] button {
      forced-color-adjust: none;
      background-color: Highlight;
      color: HighlightText;
    }

    .calendar-pick[aria-current="true"] {
      forced-color-adjust: none;
      background-color: Highlight;
      color: HighlightText;
    }

    .calendar-day[data-mark] button::after {
      forced-color-adjust: none;
      background-color: CanvasText;
    }

    .calendar-pick:disabled,
    .calendar-day[data-mark="booked"] button {
      color: GrayText;
    }
  }
}

/* ── components/combobox/combobox.css ── */
/* -- Combobox component ---------------------------------------- */

@layer components {
  .combobox {
    position: relative;

    /* -- Sizes: set data-size on the .combobox wrapper; the trigger (a
       .btn) and the popover's rows scale together. Heights/fonts mirror the
       field ladder the .input defines: the unsized trigger renders 2.5rem —
       the .input default - via the .combobox-trigger rule below, md = 2.25rem
       is the ladder's md, exactly like .input goes 2.5rem → 2.25rem at md. */
    &[data-size="xs"] {
      & .combobox-trigger {
        height: 1.75rem;
        padding: 0 0.5rem;
        font-size: 0.75rem;
      }
      & .combobox-item,
      & .combobox-group-label {
        font-size: 0.75rem;
        padding-block: 0.25rem;
      }
    }
    &[data-size="sm"] {
      & .combobox-trigger {
        height: 2rem;
        padding: 0 0.625rem;
        font-size: 0.8125rem;
      }
      & .combobox-item,
      & .combobox-group-label {
        font-size: 0.8125rem;
        padding-block: 0.3125rem;
      }
    }
    &[data-size="md"] {
      & .combobox-trigger {
        height: 2.25rem;
      }
    }
    &[data-size="lg"] {
      & .combobox-trigger {
        height: 2.75rem;
        padding: 0 1rem;
        font-size: 1rem;
      }
      & .combobox-item,
      & .combobox-group-label {
        font-size: 1rem;
        padding-block: 0.5rem;
      }
    }
    &[data-size="xl"] {
      & .combobox-trigger {
        height: 3.25rem;
        padding: 0 1.25rem;
        font-size: 1.125rem;
      }
      & .combobox-item,
      & .combobox-group-label {
        font-size: 1.125rem;
        padding-block: 0.625rem;
      }
    }
  }

  .combobox-trigger {
    width: 100%;
    justify-content: space-between;
    /* the field standard for the unsized default (see .input): the ladder's
       md step - identical to what a bare .btn renders, so no override is
       needed beyond pinning it explicitly against .btn base drift */
    height: 2.25rem;
  }

  .combobox-value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    text-align: left;
    font-weight: 400;
  }

  .combobox-value[data-placeholder] {
    color: var(--muted-foreground);
  }

  .combobox-chevron {
    flex-shrink: 0;
    color: var(--muted-foreground);
    opacity: 0.5;
  }

  /* Clear button (injected by combobox.js after the trigger). Anchor-positioned
     over the trigger's chevron slot; anchored via the same per-instance anchor
     name the popover uses. `data-placeholder` presence is the single
     selection marker - the :has() rules below flip chevron and clear in sync,
     so no JS toggles visibility. */
  .combobox-clear {
    position: fixed;
    inset: auto;
    margin: 0;
    top: anchor(top);
    bottom: anchor(bottom);
    right: anchor(right);
    /* center the 20px box exactly over the 16px chevron (1rem trigger padding) */
    margin-inline-end: 0.875rem;
    width: 1.25rem;
    display: none;
    place-items: center;
    padding: 0;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--muted-foreground);
    cursor: pointer;

    &:hover {
      color: var(--foreground);
    }
    &:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: 1px;
    }
  }

  .combobox:has(.combobox-value:not([data-placeholder])) {
    & .combobox-clear {
      display: grid;
    }
    & .combobox-chevron {
      display: none;
    }
  }

  /* -- Multi-select (data-multiple) --------------------------------
     Options show a checkbox (empty box → filled with a check), the chosen
     options sit as removable tags under the trigger. The check is ::after,
     painted in --primary-foreground over the ::before box, so it stays
     visible in light and dark (primary flips, its foreground flips with it). */
  .combobox[data-multiple] .combobox-item {
    padding-inline-start: 1.875rem;

    &::before {
      content: "";
      position: absolute;
      inset-inline-start: 0.5rem;
      top: 50%;
      width: 1rem;
      height: 1rem;
      transform: translateY(-50%);
      box-sizing: border-box;
      border: 1px solid var(--input);
      border-radius: calc(var(--radius-sm) * 0.75);
      background: var(--background);
      mask: none;
    }

    &[aria-selected="true"]::before {
      border-color: var(--primary);
      background-color: var(--primary);
      mask: none;
    }

    &[aria-selected="true"]::after {
      content: "";
      position: absolute;
      inset-inline-start: 0.625rem;
      top: 50%;
      width: 0.75rem;
      height: 0.75rem;
      transform: translateY(-50%);
      background-color: var(--primary-foreground);
      mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
        center / contain no-repeat;
    }
  }

  .combobox-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 0.5rem;

    /* nothing chosen: no empty gap under the trigger */
    &:not(:has(.combobox-tag)) {
      display: none;
    }
  }

  .combobox-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    max-width: 100%;
    padding: 0.125rem 0.25rem 0.125rem 0.5rem;
    border-radius: var(--radius-sm);
    background-color: var(--secondary);
    color: var(--secondary-foreground);
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.25rem;
  }

  .combobox-tag-remove {
    display: inline-grid;
    place-items: center;
    width: 1rem;
    height: 1rem;
    padding: 0;
    border: none;
    border-radius: calc(var(--radius-sm) * 0.75);
    background: transparent;
    color: var(--muted-foreground);
    cursor: pointer;

    &:hover {
      background-color: color-mix(in oklch, var(--foreground) 10%, transparent);
      color: var(--foreground);
    }

    &:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: 1px;
    }
  }

  /* -- Tag input (data-tags) ----------------------------------------
     Tags INSIDE a field-like box, typed into directly: .combobox-field looks
     like .input (same border, radius, ring on focus-within), the tags and the
     text input wrap together, the input takes the remaining width. */
  .combobox-field {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    box-sizing: border-box;
    min-height: 2.25rem;
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--input);
    border-radius: var(--radius-md);
    background: var(--background);
    box-shadow: var(--shadow-xs);
    cursor: text;
    transition:
      border-color 150ms,
      box-shadow 150ms;

    &:focus-within {
      border-color: var(--ring);
      box-shadow: 0 0 0 2px oklch(from var(--ring) l c h / 0.2);
    }

    /* the tag span dissolves into the field's wrap (tags + input flow together) */
    & > .combobox-tags {
      display: contents;
    }

    & .combobox-tag {
      line-height: 1.375rem;
    }
  }

  .combobox-field-input {
    flex: 1 1 6rem;
    min-width: 6rem;
    height: 1.625rem;
    padding: 0 0.25rem;
    border: none;
    outline: none;
    background: transparent;
    color: var(--foreground);
    font: inherit;
    font-size: 0.875rem;

    &::placeholder {
      color: var(--muted-foreground);
    }
  }

  /* "Create …" row: a plus instead of the checkbox */
  .combobox[data-multiple] .combobox-item.combobox-create {
    color: var(--muted-foreground);

    &::before {
      border: none;
      border-radius: 0;
      background-color: currentColor;
      mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E")
        center / contain no-repeat;
    }

    &[data-highlighted] {
      color: var(--accent-foreground);
    }
  }

  .combobox-content {
    position: fixed;
    inset: auto;
    margin: 0;
    padding: 0;
    background-color: var(--popover);
    color: var(--popover-foreground);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;

    /* -- Anchor positioning -- */
    top: anchor(bottom);
    left: anchor(left);
    width: anchor-size(width);
    margin-top: 4px;
    position-try-fallbacks: flip-block;

    /* -- Animation --------------------------------------------- */
    opacity: 0;
    transform: scale(0.96) translateY(-0.25rem);
    transition:
      opacity 150ms ease,
      transform 150ms ease,
      display 150ms allow-discrete;

    &:popover-open {
      opacity: 1;
      transform: scale(1) translateY(0);
    }
  }

  @starting-style {
    .combobox-content:popover-open {
      opacity: 0;
      transform: scale(0.96) translateY(-0.25rem);
    }
  }

  .combobox-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--border);
  }

  .combobox-search-icon {
    flex-shrink: 0;
    color: var(--muted-foreground);
  }

  .combobox-search-input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 0.875rem;
    font-family: var(--font-sans);
    color: var(--foreground);
    outline: none;

    &::placeholder {
      color: var(--muted-foreground);
    }
  }

  .combobox-listbox {
    max-height: 16rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0.25rem;
  }

  .combobox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.5rem;
    border-radius: calc(var(--radius) * 0.6);
    font-size: 0.875rem;
    cursor: pointer;
    outline: none;
    transition: background 100ms;
    /* room for the selection check; the ::before is absolute (like
       .dropdown-check) so unselected rows never shift horizontally */
    padding-inline-start: 1.5rem;
    position: relative;

    &:hover,
    &[data-highlighted] {
      background-color: var(--accent);
      color: var(--accent-foreground);
    }

    /* Mask (not background-image): a data: URI SVG resolves currentColor to
       BLACK when used as an image, making the check invisible in dark mode.
       Masking paints it with background-color: currentColor - the real text
       color, hover/foreground included. */
    &[aria-selected="true"]::before {
      content: "";
      position: absolute;
      inset-inline-start: 0.375rem;
      top: 50%;
      transform: translateY(-50%);
      width: 1rem;
      height: 1rem;
      background-color: currentColor;
      mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
      mask-size: contain;
      mask-repeat: no-repeat;
      flex-shrink: 0;
    }

    &[aria-disabled="true"] {
      pointer-events: none;
      opacity: 0.5;
    }

    /* Author `display: flex` overrides the UA's [hidden] { display: none }
       (author origin always wins), so filter()'s item.hidden = true left
       non-matching options rendered - and clickable - in the list. */
    &[hidden] {
      display: none;
    }
  }

  .combobox-empty {
    padding: 1.5rem 0.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--muted-foreground);
  }

  .combobox-group-label {
    padding: 0.375rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted-foreground);
  }

  .combobox-separator {
    height: 1px;
    background: var(--border);
    margin: 0.25rem -0.25rem;
  }

  /* -- Accessibility ------------------------------------------ */

  @media (prefers-reduced-motion: reduce) {
    .combobox-content {
      transition: none;
    }
    .combobox-item {
      transition: none;
    }
  }

  @media (forced-colors: active) {
    .combobox-content {
      border-color: ButtonText;
    }
    .combobox-item {
      &:hover,
      &[data-highlighted] {
        forced-color-adjust: none;
        background: Highlight;
        color: HighlightText;
      }
    }
  }
}

/* ── components/context-menu/context-menu.css ── */
@layer components {
  .context-menu-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 3rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    cursor: default;
  }

  .context-menu {
    margin: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background-color: var(--popover);
    color: var(--popover-foreground);
    padding: 0.25rem;
    box-shadow: var(--shadow-md);
    min-width: 10rem;
    opacity: 0;
    transform: scale(0.95);
    transition:
      opacity 100ms ease,
      transform 100ms ease,
      display 100ms allow-discrete;

    &:popover-open {
      opacity: 1;
      transform: scale(1);
    }
  }

  @starting-style {
    .context-menu:popover-open {
      opacity: 0;
      transform: scale(0.95);
    }
  }

  .context-menu-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.375rem 0.5rem;
    border: none;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--popover-foreground);
    font-size: 0.8125rem;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: background-color 100ms ease;

    &:hover,
    &[data-highlighted] {
      background-color: var(--accent);
      color: var(--accent-foreground);
    }
    &:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: -2px;
    }
  }

  .context-menu-separator {
    height: 1px;
    background-color: var(--border);
    margin: 0.25rem -0.25rem;
  }
  /* -- Density ----------------------------------------------------
     data-density on the .context-menu root scales the container padding and
     the item rows. comfortable == the unsized default. */
  .context-menu:where([data-density="compact"]) {
    padding: 0.125rem;
    & .context-menu-item {
      padding: 0.25rem 0.5rem;
    }
  }
  .context-menu:where([data-density="comfortable"]) {
    padding: 0.25rem;
    & .context-menu-item {
      padding: 0.375rem 0.5rem;
    }
  }
  .context-menu:where([data-density="spacious"]) {
    padding: 0.375rem;
    & .context-menu-item {
      padding: 0.5rem 0.625rem;
    }
  }
}

/* Accessibility: suppress motion for users who request it (REQUIRED for all
   components - AGENTS.md "Accessibility CSS"). Near-zero duration instead of
   `none` keeps transitionend/animationend (and discrete display flips)
   firing so JS state machines that await them keep working. */
@media (prefers-reduced-motion: reduce) {
  @layer components {
    .context-menu-trigger,
    .context-menu-trigger *,
    .context-menu-trigger::before,
    .context-menu-trigger::after,
    .context-menu-trigger *::before,
    .context-menu-trigger *::after,
    .context-menu-trigger::backdrop,
    .context-menu,
    .context-menu *,
    .context-menu::before,
    .context-menu::after,
    .context-menu *::before,
    .context-menu *::after,
    .context-menu::backdrop,
    .context-menu-item,
    .context-menu-item *,
    .context-menu-item::before,
    .context-menu-item::after,
    .context-menu-item *::before,
    .context-menu-item *::after,
    .context-menu-item::backdrop,
    .context-menu-separator,
    .context-menu-separator *,
    .context-menu-separator::before,
    .context-menu-separator::after,
    .context-menu-separator *::before,
    .context-menu-separator *::after,
    .context-menu-separator::backdrop {
      transition-duration: 0.01ms !important;
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
    }
  }
}

/* ── components/desktop/desktop.css ── */
/* -- Desktop component --------------------------------------------
   A whole desktop: a Window Manager (with a Desktop Manager under its
   windows), a Taskbar on any edge, a Start Menu and a Logon screen, laid out
   by one .desktop element - and its LOOK. data-variant restyles everything
   inside with remade, look-alike chrome, icons and wallpapers: win7 (glass),
   winxp (the blue bars and the green start), win98 and win95 (bevelled grey,
   the pixel font); none is the modern look of the system's own tokens. The
   markup never changes between looks - a look is tokens on the .desktop plus
   chrome rules for the components inside.

   The icons are .desktop-glyph elements (data-glyph): our own drawings, in
   three art styles that follow the look. The 95 / 98 looks set type in
   "Pixelated MS Sans Serif" by lou (FontStruct), licensed CC BY-SA 3.0
   (https://creativecommons.org/licenses/by-sa/3.0/) - the font files below
   are that work, embedded unchanged; the rest of this file is MIT. Chrome
   proportions follow the MIT frameworks 98.css, xp.css and 7.css by Jordan
   Scales and Khang Nguyen-Kim; colours and drawings are our own. */

@font-face {
  font-family: "Desktop Pixel Sans";
  src: url("data:font/woff2;base64,d09GMgABAAAAABlsABAAAAAATfgAABkMAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP0ZGVE0cGh4GYACDKggeCYRlEQgK+jzrTwuBcAABNgIkA4NcBCAFiXcHgzkMgVsbfkSVBwAAALgdBJRS29BoZNTKPQnK/v+Y3BiiuA6ofStgEES0KtgdM1B0uOWilIi4QeDkDy+DDW7cozUEKWtgDAiVEb6GgzOgBWZGLj1YTzYTVryJf2cfjrIrCQy2Uj3jQt6PuLdYaKW8KdefAe7kiISd8Py3xv6+2cFMEh6taoQoFk0jDTKHZBaKNxPr+v8a/P3wLWiNUbfqxh8ZQBNo4QFOaGJFGLvbDyTAlwyjluEyKCFBgtX8dt1eREe3hfw7+ESlJegd9/2p/yLAIAwu8i+t6JxLGsu0vCnDQsqYLSYurRmr2Cut10mOPntISyn4mmMMD/L/X10qHQA5bb+jsOU7DqBzYZJKAFPzXJjGvl/ACVfEYeww9nW2sb2NSrT/C8Fhw//XntvX0GwhCGSFt2lnhBrOuZ9f2fo1olc5rtuDiXybw2V7EPV49kuK2L4OsciDSKzvUshp2HSHlfep2tvOAOQJi4t0pkOmUyoan35Ir3dVC7PELHcXECmAuhOBCxJ5SekH8adAEORZlENMXciVziGkLsSmsjvX7t30Ln/runfRFTaVrVw38PJSxCYGl21WlVDzQBTYKIu087/XvVUpszmPIZ0mt1nsRERERAb6+DR5dVkt6zl79rRfxRENkJDMhkodkP+AHH4O/YCDr5AjBM6WQt1EAHvAE0EhCA0q0IAClJEnvVigNRowqUYDGsrTB6ABgC4Is58v99/dkC24P5b7f5EQq1zpJ7tuPeMw2OCn2Nhb/34NhqxMa9V0//4DNanCkUzrKJnSs+mN4H20oAOToPp/TBBs3SZGkfWiwEEz2v/dkGbeu3PrxrUF+bvZcCNulm+GbhI/z0MhrxdLw2w8UhzK2c3VdoezU+Xulf9o9X9BSBeBWsvq6hsam5pbNK5nc/lCsVSutLa1d3R2dff09hmkvzowODQ8Mjo2PjE5NT0zOze/sLi0vCLk+g2EqcYT8YtU/CcQr7Dde+jvBU8iEhQ3dvff1gijrj2MhCOJTuDkrMDx0xIJ60uhQxM98v13fknCZ6TRbEpHyuEn+jQdLXxiXgwxqepo5ftSgMasUNGQOtq42D4qU8+LP8ob6VeyKv4pf/cFp4N27xNw+LRc+P72KR3t3L9xvY4OfreWrs4KhNWNGxUkUkcnv1v3Omdc2cUjYejI6ejmcCmHn/i18kYGo7V+jAHaGsaRzApzl7kNLsPtiqpKxXxy52VukQfYSkgJmUM6ejl8NOVn83HIoVPbKABG2PC2/SBg53Zx4jH+QoOqA2YMzA4zd8vyMkxxB40myAounDW7xkG5DRSyb8/XlKoq8NWcmBfD9hggWYJlVZaVIGeJMOdvzUBMLCgqUilMtDWMseyFrjXWmG0DOSUSsAmFACMmXHqMXFXEmKcW22a2WkHj1SgHczLXXdYZ38krToS21608D37XGL9PDGpUq3TiSYhw5EiMyZLo7zMv2HZAwqpKBXRVAhrufvcIkN0d1XsUKO6MsAPTu2qK6cU5BnoMyfzddFJBTAygiz+M4f867wFvvPYkyS0ngue366cty5c2DAQIOW1gK6fVHGpE1eWoGVRbo0VqjiCk1bG1Q03QaGmVsCao1NUS3dYkkUQgiVCtXBFhjVCrKScafNpQ6dBqCkywneUICyKlpvhZnjrN7Bdv2ByGC4TTxkyhFQdd90PkYHU37Yxh41b9RHhbbm0JIfsLxNNvmbM5rbZ2kJj4dtpse2nkK+adcc7SZJ1j0u2Pl2vMb33bycS7lXOz1C5PFaZFXbL0eiK0XkL2/HU3rP4UjB0TSOBwF8gagt9TcPVAg4K+/okdv+Rpj0yU6qd4QvgPiS7r7mWpV8nS4GAznxLzBhKjliS/JFZOJmItA0VP11RdlCiH58zYBwZaCB+9vpe8msFFyftaKldOcOAqRNVaJU9jzlgGAAu1Q1FMwaw4nlX6D7SGzCdjn0MS3eIUs1k6+CVZ7NynnjnKwAEtj8is1Wwre+AS5ddbPCsPHy3VZMYk1o74PsfznmhH4XXLGbYpX1g/nXvCs8rOLChUZN7Rh6rIjqSI08eu0jcwz078Ur30b3hoyEd2kYNegmaCwVjWe6G6CM6ES1kzsfii2SyOMDBVkFZqOtrnOnUOV2x4f3gwnGAWNkrdTYRleJKOM8HbWUI/hylWjrgVmBJjxlIXTv2zAhWTloRFVAQ2GcsgpTe1J+MzInTX0mqJUyF6/7eJUEdGlrhIuRCHhD2UIROVzSVZ1K1RoWFgyuFJcEhqwrZbU9JQscJxwxE195FXuoKbixoHb8wKcAgV8gPL6oiZ2KRw+uLIFexzX7gY6RxvuPiZDTms7PrVgNFoIdkFlhrep3Y0RWBovHuHchSMdBxAnB+HgcPw5C0FB3BqsYcy27Klelk5qRL9jel7k2IP1DC3gd27Pap6BmRFyWQHt8xyeVCkhDxIuHWE06WQgV2qfrfhBwuaskYotljT0fXdxbIFzdtjukH1zFkhDWk/DWzv0339Rcf+ObxDrSPKiuItwQeo/kGLFdexd9gxz/Gk0QA3YAyA1FGP2+ONXVjh/u5+vie3G+tBWK5seTC+7fnUB+8fMGEGeUrN2kKea7B3cLJQAVYBhFYL1RXq6gKRnXkuTo5BSP+JDCLAbEtAG2GYCkgrVU+FFLLspfEOAAq1HrPV3CCxeqqiIXOSJwfklyFrgwBJ+4lClbYz2fWvYPDUF4jXQACWcktLpZp99HkR2sxDizY6g/zynoztUZ2uTs7CjWjNtKVZkeO87CegD9kKhhPI+hwyx2E6hx7kS9DlcbkfeYZYNoODW2gA7e8JRvdfn5X1Fr6bmvMOUZBfebznIBLAMKZXJtsYfJI2U++SXHRwt50nNfLIpE7clxmc/3Fw50Q67bpcUXRpJmkKpumJK9ZGNWFlGLiw1A7oSRxLFyAGVjOflf3UjLMYsCWO0LoT61GYjlOS/DlEJsYf7e78CumRK7VkSlKyxGSejhNX8vPO8YKIMd2Opj1zDUDeZvrnakq5h97YOiMllJ6yNtP8hXxzLkNmiLudlrT7P4+fn845SJ4gOJS6/80QRPHfxgt4B4uyJS4K973Ck+h/jiuE5leMXENjtmrXjrA+zsBnHbsNFIWnfok3iEg/jCK+n2m253Me1bS9vWHy4xu1MZXFWFw3XVQgnJniBOs6ylbWraP2taNfAkm6oLLTPCP7srdLqR/nEGANSpek2dDQZ4W6NqjfYZ+haGAlmdzQf4oBIuNZRjzVgNU0Xs7cVAh87QdowBYBvWkcckzQ0Wlxs7H/iMGMT0enrsLkDF65Qpm8zTQf7vdX6J1l8O2rFZ4Imi3FTlIFGb3uiUTFykAWR7mHoNFZq+hF1A8Iru0r2BuQdqFX73ra6DOqBWvyirBn6tjDdu4M4KwwIPxgeK5tbnvu6FMx3PFsx4gYOz+Lcpjb0F1xcfisi3dTAMYMM1CRkG24VqglibZ4CVzrR1WaS5ouxEerDGaU31kqRiH3A1aTh2+PqYyFA3O/yKejsu7H1TlWthbEVBwkYs2PrEVrdeNKmrY843BDK1LyTsSENdlEkaEWy8RIZdApYm0WtQYvCtjvA7BOwopjTAXEpFAnsDgwvkmhoUVvoni4FgDnqbfpJisLOTXY29ebzjB5VoniaBt0YrqH5jPWxsAwNflZ88IFliSZM2AyaK2CvHTt/r8i+dOTNZK+ffJV0e2pRkBOMPa+PQcZsh+pKTXY16+wEPK3Jt7eBaoXroxEWzpPlWyiRgg/5BV5PgmSHnMATMROShgxzi0AoCTJToNszRFZGWW/9ajOoBMb6UYuVKmIaCMmUayMzZIv5d50cGjzBAH8olVfNiR16VDxe1O96FvtjVIa/YX89LfF4ScLZRd8jnL0pVCY/1eu/BtHmPFWUkdrMYrYAVDFDkKKXUtvQ00ygfb5DoQCVRk6GqdQQs7uolaB3pZB7j0ym/Gmq1izOVrN/tQt592Ami4t1MJOPy4pvpZTmXdWAe0U05T92JlPLj/+z+L8BoBptafrLuLYCV797lB0zfkIbwU75m5H1VJnY98kYR4GQrmAZJHmg5CPa6s6FbV4xQDP8UVLv/Gfv4jnABkGKF8OHWi0vPYX2Q8Pt4qbt24P3NbSHj/OLLdbBd5t+SPaX3bzsB7m9rQ3eV3LI8dt9aLzHD6L8RK+MQGvjo8tefDw+MWbvpLfo+em3fsFaNWOsgA3eO29sS1OwnsM8AFg+fzhcHFrX0lWi638HiQmlysYwXfw0K3ZH2Ia1WEAjkvrdUovHrHfwoKvxfWs3z2Ad/je+8Ti6RU+wecO32v41uHnOvMnRJXT3GyguEB3L+VDd9oDp5k28rD+E0EBZaxq15nAX81zZMdgGtQgzXNGzA+5U1z1EW0dLZ5wwX2DJ/gC9aJNX29rdBJeLvfGf7N/AORe61LKALoXUMeotlQzXDfuQfkNA9HoOxi0exBXVaY1q0aQy8BuVGtQmaAer1jrsMq4SgUVGIpMcyCEEyYDgAW96BorMtg0AJBUmJKrwGdMQWkjz0EHPkF2YGpnodSI1KwdviAhXKq0nOCgQtuCmG9Hz1IaV/88J1KDlrD9AZUELqBlewIKK6yqWRVKM9qT9++qyG+qNFOdGV/KY8RMGVaBdoLSvBwW90YhL9Assfjas2bnIf3A9zcXK+Aq6PNyBXzKbwzSI7R/nDJloSrQV05tOrCam17E0GbpXDAugs6Cw8ygO6/SJsrQPSU7uKfoW/WKDfQ4ACJtLAhGLoEzRJNKD/um3IGYJwZzdBC9EFsBWOvuhA57nGz+MTZ7c7Zb3V/fY7yl8YQWURc7yFgAUA8mBALyYJSzmFx5VStAgz7wss8zacYPdwv9Vd3oeieT3DzATNYhgHoHPLLz9RrFaukVWbNieF6mZeBZcswh9CAvBUKVFFMmzVBKr3Fb0WHblTMx7EqaX2MD3LHW8TkJBjCgpRMq2IuaAkfRpxmuVaiOcPhylJFpXNpOd4raCD46gaKdF8VJieQ6o2z5VjXNp0MwY4YWG+hhyoaIjlA+UAl1o56Rtk8FgIUW6hR3xtomYoMRCxQEUGnAS4TUBtcgbPxpzHN3lALJDKs4JG1eDfPDq7cut8mhUwZct4TPlCWUjyKkSCeULF2TsbKf0n/FGiKUZhq9UE5JHjCOaMvpP5EwK8fPIvUU56j8UCU1TZUNIPmgcSGHo8l3andojy37NjNiXdcQbC7ETvwqTQvf+XlPZIgbScHRi5wMI9+gCPErZppXSew/JEt9IkjDOhCPa7Gduz0Dp3qzg5Av/nkjzgvaVae8y/G8s29c0ZEZXsNoJr/3/IjT4DKbuvsVAottno+7MbIM+7/EUMPgXWTv7ZLluru0e51cpXUP4/vOOy7236t4/5S8BjPC596rqD+lfvvr6DrZG3fhaMPz4hE6uLV7IBCgD0pnAbNX1IMB1nIHHAw+Ldro5WsMGVM71WI0+8sMROcyjrjYDZQ43DDvoUXTbBohreQQ4brv60sX8DJpb5RJPGRaU2RcwJggVJLEp5bCBQrI2ZpSKUAUI40YSSHDVjlWZekAJyqaDkYmUSuwwBGSR1n1jhoYHutxQck162vjaUUDjboc4stchJyyFI4Iw+Tpc5k5k2tA9XC47EU/x97zGrjQVL0DB1O1dT7jJlrmBMW0zpuJ/vz2EBhGPy9J5mcQud5zyfRcfj381wyqUgTVzVLRNejIrx30QAAecTHcN0sql1NNYq34LOKQ4sjSMbAJOcBb/AY19uVzHlhBVghPSg7cJEow7MZBpHDoAvvxEuWi0U9TnTrUJmN/URfq8QVWXGCHBc4h75yPjYRyCAdXHQegZGKqqGQf6DeQ0jeYKob7+9alIHK4ikqBw6tefWcWPAmG5DNdEARPMKXtmBQ5O04YM9MP2EioApy+Jav5CprrZsx7+nBHzM3sWBlJIYKNKNtGED3blGmbgqUzcpB5SyxmOsZe3p/XIOYgGBFSn7vJf6G56yY0dL3LTg8TB6HkPMR26lfFXucIJlr8/siFPhXzktltwgPC3Zjk4Gm9eihCOISYPJdvU0uIy7Vn3BOqV2kkFecbdfV0reqMiBNh9WLTJBTokJbwLFRQ20g1IU91hJCNpMa0pckfT8QIDwMWiEh2UYWMLEZaOBBKz8a4TgRwsGXT6bpheirkMT3swkEdQBBTcHwY7tTH2nJRgDyOC3imvD5hkB3urLUFZzbiGEo+fq7l2FbKyau3fX57D0F0DyCi5w7iC/f1y/8NWDQdRlCSYd6VSVnb9Ux4zbzBxei1uLJvtmqVCx6TrIH5hRhYSat61cHOGg6jZiBZBXwP/lN+QPkMtemWQDGInBOn5AEnuOR+0GGKAl53ea+3nfsIv8RSBMc8+19HF+V6BDBLObVAQz7OG0xAIN5MgHuHcmoSr4FitOWAcBkcy9T2bWvHyOVUkVlClURcI7gBztjsgv5oC0WqR0KXOnCaQssoQFVhi3YobBX6qzJODvpPLhxRmiLqe0QSckHpe6+XtrL8W1VN/iPhVcK3ms+SxzK6o+c1NK8GlOecpFi5E0JuZiB/V1RpNglCmXelqig7E1FjgJKJ3x0Fw9mQORyeN4BItRqPkHER1eU9ZpRv9Er3pGViI8U7O3lSwBAoIU2aBMfNegkPRnbYHJ/UKITbo40q8q1kJ4dqHlnkbdJo8cM8n4kKj1pUtzntBUBF8LGwsPnVF8isbbPyBHULAAIoD/niQUUmypnBpA4bMue24cTIh8i7eg5zuHrdplEIoXJNckzirxITjoo6jpAKh5c3T+pO5jj13kDonboZzzOmOGCEjl+jdfoPPKMnO5+Y9qDliD7Odd0UuVcWEo8KlpwlkwHkrZ8XCYoc9sSGPsQMEViui/4QTDlx+ZxI0ay7lNcPHtY7+0XztG81ofz/2sQiSrHL86LHZLEF8nBWlaefJigU9b0qrOObktTQytie9skjO1hcgY7bXoPzNbrQNI27FY/EkqhLNtvz7OiEmh6ZELoEL61B0ciydPTz8q6I0W7E+IYWzu5E5R2TseOYph3/SqPkTYFlvsCHovzHFpzt2HdNrHc+M7gk1XByf7iJvNQOW7xih55VOtN2rzReC38N0yhR3MVRD4/tvK2VVBcHmR1IBOIHH5R8WlksP7AX/BsSECgbOhFWJz/L1DK1nJNe27YoOFkYOAxJ1o/19a7V55lIbByIlXRcTBSyG3RfSvDF4GI8EpAcQhTWkrRQ/tJy+f6++VFkAxZKzZUlXHVdU51XMtShyTcs3DeGnYWRtcLJX2ef5obL9j6Vy3zbEnq8418VE/3bH37+f8XS/oBA2Zv4pEbWP2uNSfYH1dV/+v8p4FnlPh5r1FMRsLrEE2I9k/BMAilsv1fjfMhGQE2A1GXPGPAsvDxdmlrsFgktq8RsX+75mvHUMTx5ZhruTlqZHMTJvIXrUknyzLm8BnZT65micqoSKRS3whdzQRpbwmeWWchjKVke3VNOTQrbl6S0SLwZ9GekeKp2SXalktLlBff6VFiPiXZGV8EvmeV12CWIu5vWNDJaQuR+nogglkwTjwCUvr+bYQQD0TZAuOFzQ/B13lA4UtEwSBY0NLE+GhZ4+mpY4uu7YUWT/4Y18Wls2GApgw1bijPesKcj/xoO5E9rw5GSWW+4uWlUYwXPNjdWSW5PYw1HYxHXK5s7Tsu35x+nO8Mq0r/5lG8M+eungi0nrgfV0n0YCSImBivwZJfFlnApJDIf6CwBmDFl2qJztyCbDJO3tAK2J7pBTxKwZpzeASup/Rr9PMARTVY5KbgXSO1Dyj0K+TBMmzDVzY0fP14uIgB6OQNAj8GTNah7GigU9UG5PS5cbWVzcji+JnJtlse+jB5D5+FDBtaRddovvOOKSZPE+t2eAD2xaEtFkwa/mdtuwNJ2NHmEAXqsoH6Ezg+o5pNLNb6WagSU97Aq7cF6yvePTJo2a8mcRdlcMMkwu+3ZPufpXcSCOTo8ctjliQ3CHLalEZIUMZeFzZappH6tM2jjlOzFEc9y494ES+WSyTFwErCCjtOsRGw+aTY6ZycdyLNs9NfBESR7HM205kSnqdwmtwcJP62yPDhtSNxx43UB75HarKEcUgIsryi3uU1lZ2A9TdRcWytmLDUbZRlKECn6UrdcBgsE7DdZJYVqhWkS67+MPf5vvSvdPrgRESUGxhth/jfCGhtsH8ZjQZRkAIRgBMVwApFEplDpDCaLzeHy+AKhSCyRyuQKpUqt0er0BqPJbLHaABBGUAwnSIpmWI4XRElWVE03TMt2XM+P0uisbNwYTO7sPDh4IiAkwuny+tyetCSkfuiJbeG9ha8HFp2nDu/L5/vzxRnsFPMUpmqhWqyWquVqpdpabau2Vzsq/YcL+W7B8wmPczu3ndh72y0Op0plQf/aA0/o/0ZvkQl0zYq7lN6Wd4cdmlAxJCcwNt+sXpVr0PlpNwqChCG0aoNogaFnhOq9xBI3Buvpexbv1NiePMaqr6H9sM3lOB5t13dOU3S+znG5zrW71uHTDbrBxZfgueUZcav8U4Heox6X9uGI19mXGNMAAA==")
    format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Desktop Pixel Sans";
  src: url("data:font/woff2;base64,d09GMgABAAAAABh4ABAAAAAAQfQAABgWAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP0ZGVE0cGh4GYACDOggkCYRlEQgK4izWYguBVAABNgIkA4MkBCAFijMHgx0MgggbPDoVbFxlho0DGGTtQqKoCWuTJfn/WwInYxxrXLXKkpieimBoUtdUauZuHe2Up1KgmVrHBlFwLTygB5PLMpxXj+n7LD+1YjY+3IX9YX74k9KlOzYmuFx3ctyrFAZzDerxIzT2SS788+VRf19VhW1lIGI588Gd0wOd/RewhIOwuSGWqGDOxsPz4b5p+9QTLAjshbsA1+nqTFqgMqn9baU/9nlIaR7kQsAvmGiCWi3eM+mqBf8mrWpV/hO3JD/+WrNLKgq8ibSOiA/z3Ie5ioQAMW1HV07MX+eHe2tjrlLdl7T6J+B6U61l6e0NtQvH6WSx+LwRGmO5ZIUk/ssIdZtWIowxFsKWOPa533f5HiWi8kyapt4qRWPoX1fsV4Lbcp7xe6gmCCtmXldpjEM4On0FNqL//8ss0Z5zX1X36FdP1GxIyKEdoAGy5JCQUcImpPq97l9V/1dJXVXdI3UpjNQTjtQ9URoHaTa1eoMkpwmRLVwze5nZhhSYqZEzNTZBGYEFzBgYIODXXt8juJONC5Vnu3/ba2z9j5f6oq8xkBaWEDB+mlrN3QUMPc5whciKXDMyrmtFPF7tq3/hgADe/XXEHQDe+fOXAnz0XOEZBOQC5YBBiNUIBxjAOOkyHs7hgIzDAQ5W6j4AR/m14h2NnDZ9KoNJWvz73P8rEYzUA/VuC+/lVeQkNxK7tbXFKNywOo46rvx2m5LgMDShJW3oQD/msZB9HOQRnk7ipBRw+GvxbwaR0IzWdKAzg1nAYg7Uu4Wk8D/R7Ouvvvzskw/ef+/dG9kvTn+x/CL/hf29HvFxjnyOPZntzAZ6R9bh+UFIFAM5kJuXX+B/CdHJ2P+LKExl6eyc3Lz8gsIiNsUlpWXlFSJTJXI1tXX1DY1NzS2tbe0dnV3dPb19/QODQ8Mjo2NifEJsKifFt/T6hnh+8kR7wX5IcUgIqabZzATHD0lneAxgEDeA8aMWYw8c0C3J8Itsk7v9Gz939BWKK042ENNv5BYZGB4Yt13aKQPLO8mEwaNWYbAzcNz8cZRWJ/affOekdMH+l79mPtuE17wTIw+cf334ZAOPIy7OGvh82TT4OWqRXMyfl8AZBHzZ/PrI4CcOOTaG6koMIqbznt7wW/nOEWxOnya43H4wav0Kv4TOVtdKpZz0N9xx6TWOGZyOltGcj4dymD7z9NZymUoQFM1boh7dvbJLltZXu+G6Jo94TTfJj8CHOs59sz6N7iHFYJs6WdKo2djX5mw+scdt+p6slKTvfty4XY/3EZhizyrU6QLWggYFS5rswMT2GJCzPtXcPv2S78Mx1qxs5Mgftd0UDgUVmyIuqPgLFRv/M9R6y7IwvF8oYfK3OSW7U/vXtQ9AptMoX3ZftJSvaQ1a29uDgYdCQYsTbpDNsMXjTLV6lYBulxpacITB/ONdQaK91n4lCuAHkayhaiONXKeM0eloED2BIYEIZRmdj8oa1Fu8u33g/QT+/wBQCLV/Was1/i7xvN5WnZI5aDGfib09pCibL0Uw9z3ZovoPpLXhe/hhRESqTUSvU96FT0+kEL5Arn50+/DE4UULVyBd1E0/p1FWlmlLfzH2Bj/Fp0bqeqSm71K+2n5et7TdCH1fh3qFbNqw3/YqtIz8Xlo+UR6TzdrCLg6vLWYfP2tPoOjvrCEIc3+jFI+S635OMb/u/x2ixOESCBQFBSUHBTs5JRxAfH5zkUeP0OkUBZqvL+TjVhcWgt0UzkXu5NA5FI2cJr71IyhBMR3tSYZTfkMnTEzuWFszJwo14kSGQA5bUqpB6x9ZJ8u/UJYohpReg0isZlGbffMVr95zCuV6uwYNdkO/T4nUumCQFbf3j1lNk3sUsICbVhJXUZe3jaPNJN9a0YMaN5PNvQiJhRROVxz6iCLr+t30HY08sM8IOrm0739ILoFQm6jZZw9OafytJDFPlOQfsR33nGmjf2l+iOsbLDx/DLE6+remvdzndEBgbSEk0ZfLrivtViON5acGMDWo+3ducU5mOehjf8KlJ+/ETLl+BwtxINLMKExFK5/BM6kRzADvRp8NTpw+qWu3xhANdl/BJ1fmkdA0dhDHkHB7E7fLdDGcGLn90JRMK5g+uzpDzotba7tqJ8nRCRW7zC+owBU/XOLVo0SS8+QUS669IhN8FBdMRjD3b3j2sRF6ZB9tYnAPIWme2pQqOprlQ8sBkZFrSjvd1487CkVc53C5J2DNcGOSDAP1wQUf84U6bqw5b938ujIdtrOSXLHXlvcuzxqHQKL5GMiGYZrFPnulXIP9FKqjBAOWcNaLxkZyDe2U4evtnXzZNoKYgFGtGiR1hly9KtZa7ilrazvApLhIh56KGSvLhEZ9DBLidbBEupa/lLmVBvIPf96pBXm04fR3qEOGMAdIrVL9/MfdHCWXW7ljN3xPnf4TNyp0P94k7HfSdKcYm0H0vH/2zvydUSH47JmMVYI+YyPIwH0Gg9UrnwsDATwr6Xua33GtGnYcrn0sm+Fd3G58CILFBRfETrcvMlb3Vqu5Ob87QnLidz3/XxjRbW3JLVQ2E+h9o4yfu8WnfPVCe7h/3gOlp3IRZayCXt1Tvx1V05OxClwt/XHAnL81t0FAWxrwXaXNRHgtGu/0kkJpAEUEOF75HaA0GtSXAZRy2KvNqC4NozeIM6/V5DOauF07KB7uYd0bGXvTozm+rkKJOedAPdsEopqe+CFtiSJpIdMy2/eey0K3N/nZ6mVIFjFneLG2bxvak8CzG9iOfUSY9RZEjsMe7Aw5GE1ny9TMP8Fg+IEZNGoEz95QegAfRMbPp7d2X3bxE15HszPS0ipQ5jIvN+KNZSEvFo/+2ugtKFUbd1+7YN3SoYXx9VqKfPq6jJGOLO1b1br5ao3MIkaXKWNvARhk9txDgWtshgirOX1Wk5mPO24z17j2IHwLUIwOry9zT4lJ5hwSrkt4ql5klE+ZMxE9vioMS/dXt5o06Om6wkBSdTSf9WcLxsoicavtbgz1IHjsa+CkbmcEmtjEd6RAxsxExxTb8qGA4Kc5wdHDwPD9fmR3QhQfYA20a/4IHFleaoq87tDkrG4/JSQN5wBakZCqTZ9xcXU8elwoeOofd4tcCZlErTgJVm30ti1IrCYG6krIuEp4i+tmyb1CqQrKU6bJ3teVCa4npnay4jTrs6lDyIW5fCfTMJjItTM5XnMeDYenKT2IByJjb3qjRWc6ipmyvs2O10nP+jeYfNRzkSwN48rDEhG7/ay212OYOt3B/bV4LXgFayAbMcYpXIXxksRjj6U1k5AkeTKdkJjwJ3uZ5dAi9JurBEy6yiFECx3lxqxBOVwpUZ1prdr0h0Bp4FaXyl/wNOBWnrqnmBF41zaLmXur4e6bOQiSg/vRrMU04yGkt8XzHflu1D77dilQNrSCsbNLJSA878lYiFauZlTxibBRg/S2FBs+aj+OY4gepezKwP/j5cSV9KOkTRlc32iFPJdX81I5/YkE/tvl8f/pofdbDjq0FInyr131OxdwokgFB6TtSYEbxkQ8YFPw0MGPkkA6Zl+3yslVEasD6rgchwoO29O+Y9TyUiXyXHm9ooTevimnmzra7hFp5a87p/vL5r8TXIQxjuwG6Z/H1CIvcmWdvTUWsnnvzq51K0DZyRYBKDx4+pGuFjiQkAct6UJIZy/WyvnJO+9hZSqXR3UB5tTcc0l99aR4uv2+e6YvXb+B/e5X3Xv9d+GnckS8bYIGT8JWoWcI4WXcKx/o6qW3s1+qt177P9niQufX98w4s68g+du++w053/cX/MY83n4XnxQ8UbU81ePibVv4asD5ktrfHfV5yeufZk/kd4hofkSKwu/n8vx56ZpxH7wSDsltjyvH5W+iz3z4nUFf91kYe/lWs9P7ztRtcXgV4Z1J26nNqMpBR7kCBYOgaDBOv77DA7THDamJNZXkvRRO1Qxsv8uk79SGT5zYPWdDaZet1wq6OWtAbW0dsFOFtV/GqWLAxkjRIZ8FGo8XGo6hahKGXTKfxRLl8z6wIBCMQSiyTgCSL5MHGXYJRZ5VH1MRTAAo/jYN4k8IkFgOCX6UuhxPsVtU7AsMoLgY2TShhNCez+ikRw+4j6GUctSkOaptSbri4MUpcio/pvzxboAV1ghxg5EW6KRgaFARHpWpGNo6phygM2KcBrLr1cKeeZFDiwhE15MtBjFPc2s+AMxsWekI7YmtP6r1wioej081pTsrcU7AwClFYz9eiOPJhRICYZax5u7R6arQ7Tt5ih70tHtglmZt9w+qhophpes8BgLePrEyGaGcU4xzbwU0ymNlZIkShqXxcaMxxRgZYr26OUin7qXw0lXVJgJRR1o/+SPchWLLfBvHrXt27VGZ7JjaHHxpZwGWbGHdHq1XY3DZKtyv02ku7mpwsDHZYeJNzb3GU6GYpUUFTMd4Qs6paTltdxrixZvVK25plyReakUYdjdPeJNjQqjwcEX8zK/noeuZGIzYIlc5Nucf5lihxSPEELssrMKfAjwPPIg6qWDMkgmKg/YxbnzYWRXwwNDEwfT+n1XHfthWWjIZlI7wuE4WwTJq7QWqDWTZwkJzZGKhSEHYm4y5wpJKFKiMQXGnpOPTYVlcwwFSXaPS0/2Kq0EDyIEQu4kFE8hVMMwZUqYxFEVR2jsP6Qk9lSB5W/cFvMAwXqvNU822O364msoMEJxAp0DsJUB/t/bfYKLb5FlwVQ8LTtk9+oYet2zuv/l5r+NFnhe6Vi8eN3nRppd28NZkMDQRUt+mUw/f1LWWF0LaHT/Y/dv1AdPuwDM2uOBDxi1qN2nZUDa9dgcC0aAd4GL7u1g6rla7gcQaoWVxsnzEzjxVBZQehUm11KIjS03D2x4+VmZWg634rKQdnZgpFdgMXt5UCTfsY7KF+na1ahXNdBSZOKAoVxanjviXzmKSgzPFemobqqLUZHAeRqsyLG24FFABlLcXH+A2CmFw4yOtcQHUioHtAFdDhOEyLlFLVHYdrYvklO9CzF5EGIcObHKeKzF9OdSI3EWcMyTPYeotg5xrsosNO/gSsFGWw6Ypv4vbynHnUnZHkXyHWeV6jrscnZaPJf+9vgyZimY3l06CiR1VqPNLIdP2RBYGsgGnTaVyNwDlezC1ABZBZEyhlhR9glrosYXDyUR6gycptPPBQ1QwnQGJNjuUswPCdXAJmUYZuJu9ZbprKYfj48Rbtpwj1rikc/EISHQ/dVqdnE3BS1csf1so16Xd8fhgfo2Xk+Lw/GpTQBF/R5wJOl5B5ylKykJXKzm3xYNJos3DxbUbaO1mvAR7Bm63VC5sojzwju+DzSXKbp6R7jKEM8gSnsaBinKQj0A66AAs+SQ5x8iSeQt7FHpEh+XUZFJ5nPArn5qQ2TZ5nbKTdEqHORkpB/MNqnGVEa265VRi9uKgY6nS0iMKLcgXmkSD+NmWOHNRds3cg+136jHCKlwnqudL2pNbKSEjkR8pzgDCib2EIHuU0OocQ+5v4kqjVOHQx4SSRTenOPJsjP3wuDK2BK9FzWXdHCSsdXGVJJ3LM2HCtj+Keva0Iw7N6R0feJihfuDLpTHK7ZJvVVQQLWOboGhKCKJODU1xVomQnKAswu4KmOM5q82g0NjRCoOMZEoKaGrsGB2ntMFgcG6iaIqdj6mvKCiclWSm0y0eCdsXuaETHUtHcpE7kCXez7FeDMlaUTLvaaYX94KrF0/oaDQUPXXTnl9hDLT9yXmJhwrH/NauSVKC+y4yFB5xVS+G7LFpNzxXVAkYiNgpxcuE7xEPjtb+c1ZEL5GNxgNvn2cVipf0CFM9xNWb8ZC5XyBwqEk32T0lxSt9DfnSexJvTG2ez2LDJ+x+eXpZ8Uhyenm76N5XzqYByHmqAjxTPl1rqwaCiUJ4vhhYzkCxWxyULVcoomtzURYCaJTcUpeY0dat0uMJ1uYckEq2tXsYgyhB1yTPH1ubLtKk+Vm4U8kUkiM42k1KSn1ynIo5WCyp3oQAWDYr5QaajNplFdoYX3DbPahaAg40pMKseRTASUNtk4aVwL4B55iS6lPUgY1fwJvEwznZd1RgEPKU0OqVOKuj+ToVVkmZvUwAtFHlS0ce9nMcvupxAjiP0oo8dMmXxZGbTJrJueJRAv5YTk0ple3nfzvL+HiSUhSkN7HHF6eCEgErBbMw7VRybi4F6ltXRhi7AB+78QUjTlvaS87hSsLKsvrLj6sjmCRVG65bIXC0rASngpPXhkKgLADQtEuDg5SRCNASC5cm3fwOI4UCLyai8tgNTole5aEw0EFByfH+rBt28qSHbdGRjdPYQcCUEtI4i3QAAxbQeSgZyqUpnfoCB1zrgdfWEct3cRnChOl0r6UdOyZ3ghKsgeBSX/X0iiyWpVa90fpWphkWex9oOu5Al+Z+6DSRETxQEpfwetZJDBJleRRJOxEINcZk1EXaRhtLEroBjUtlS/qjkHAGVvnfAloEmF0GbmTrxAhfGSIIYgHFRmK1wwWzis03+V/pfOho+JU9CoeKMSudcfAK09N5LczXfQeiNCFm98qcR+VPGDww6oyoQZYBPsNI5Hw3X6BBUezjhRX/JrccXK93A/NgSqhQDSx997RF3F0llGNfW0raN7AIHmI2zBy/oBCPddLNLsQdKom5YkmItvC7irkB2ymTIdctgTJvhMCGbfp9USWsSIpmHS8kveZya5vXTiHJRJuwgkPZzfed3F0Up5UivZxIQfd3LcZWq5I6QgFLHoPdrWPhtBV3Ei2aHlWqknuguTCD7X45xJAxwkfrDo3zQlISrMEQ37k4V0KG/Egj8hq1N7f1v6TNXz0ru1SmxL7wQNoybb3VToac/psBJJ6ylyuKjsB5rV4xGBkQekp0VPzSGgy4M4SRpZJCoQgpWygQVQRnQKiXXKtDuKLKvpecp4dWlBHIyqjk2A3yLEMJVhNXIZwSS7OGBOrvP3GNTeDa/dThmvS3FNz4/6mOiwr6/xbehPxLwUtm/j8f3gtGAiEGdrvCoLO0HNF2gcoyrg6+99aYXxg+p+YJKnX0vDdR0fLPHbbMD/OCfYx7nByCB7CIHH6YCu9JsbSWH6gJ/zy3QFtmXYb2Ci+Ptq/0SqMG2MPRgpa2rE9lHtojeEGvIHKdi8pGsicyazvilbKPcxz6UJn1qd6kUs+UH4C2x6t69KK87RRBMrNGhsLq0x+PjUI55Zfs39XboEwQGC2hzVqLXAQ0Z+pEKk+oGvLZUrX05VDV0Z27VY9yfq36NJetBuxWq2pIez1cjfD1cjVmod6s5nLadKrmMdncruYz3wbVEqbaZdUXKLc3j75IZytbfYl8+0/4Muxy0YoP7T065f63IPMr8v+jTn6p+YfzWUMILRuOrjhwQ3hkAMsySJvOELKIeAIHUOhcICUhKW9qDayRNDZZtuezOaBF7zBWfIfnYkT2Oz26PHIMOYWLln7AUg+ctx0o2t0c2laUV4MkTGI1go5FR9DhqDUge4YEjQ6JAauq9WVAx4l6c3Z4qEWs4GYBhjXR89OC5IDJy5MpQJ+KMvA6cia+vwSH42Q22yARlkQ6xngglz3lTjptQ18ktExxiR3rkF+MOoShpn9GcaThDG0zssHaXjyeD5eUVpCh1TkpODWISTuSsXaZitqQsM5FXhEBy8qJqtEHTc6LFS3qFwsRGFJAeJGyQ97I2na0wlaaOhgdZ3g4gZaGZY3NUUL8EAdJ2EFcD9NS47MMTK5oNU0m0qpRtBUGYcTEwJxED2VOFcblBsssxn6ZoDzWWZaGZYzNGKzBtKl2mFxkQI+XpBQHlgsnFhwPiNiX51oCVyeAPRPgUNxl62Meg398z/9fw+mvgSg836jB/0NYThBVBw4dOXbi1JlzFy5duXbrzr0Hj548e/HqDQqDS0hKScvIyskrKCopq6iqaWhq6+jq6RsYGhmbmJqZW1haWdvY2tl79+HTl28/fgFbzBI5efIVKFSkWDnKVZ7yVaBCFalYJVzjukpVpnJ/1fo9m1d3+Xn3rsGOjWs6d2523jvD+T9+bygny6lyupwpZ8u5cr5cKBdLzd3JRCsZ/+fKw8uXbFt9vZXqFaWsj29s2B2VnUiDC4xL7eTZjUoX5zT+/zev6bRwDqZzarZw2NWl4c3On02qZESK7YanOhlxD+RWY9odgHPXdE5pDMIt1h0h2m1Ch2/x3DMkuzlw7C2Be5TcLhvNKY0pcMJofChbbLQjd1rE4h7kENU3o7Qj6jeTX6/JM3uRqOzJQXdOOtsBAAAA")
    format("woff2");
  font-weight: 700;
  font-display: swap;
}

@layer components {
  /* -- The desktop: the window area and the bar beside it ------------ */
  .desktop {
    --desktop-wallpaper:
      radial-gradient(60% 80% at 15% 20%, oklch(0.72 0.12 260 / 0.85), transparent 70%),
      radial-gradient(55% 70% at 85% 30%, oklch(0.75 0.11 320 / 0.7), transparent 70%),
      radial-gradient(70% 70% at 60% 100%, oklch(0.7 0.1 210 / 0.8), transparent 70%), oklch(0.86 0.04 250);
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: 24rem;
    overflow: hidden;
    color: var(--foreground);
    font-family: var(--font-sans);

    & > .window-manager {
      flex: 1;
      min-width: 0;
      min-height: 0;
      border-radius: 0;
      background: var(--desktop-wallpaper);
      background-size: cover;
      background-position: center;
    }
    & > .window-manager > .desktop-manager {
      background: none;
    }
    & .window .desktop-manager {
      background: var(--background);
    }
    &:has(> .taskbar[data-position="top"]) {
      flex-direction: column-reverse;
    }
    &:has(> .taskbar[data-position="left"]) {
      flex-direction: row-reverse;
    }
    &:has(> .taskbar[data-position="right"]) {
      flex-direction: row;
    }
    & .logon {
      --logon-background: var(--desktop-wallpaper);
      background-size: cover;
    }
  }

  /* the glyph art of each look, once: the modern art at no specificity (a desktop's default, and a glyph outside any
     desktop), the 95 / 98 art in their block, the glossy art shared by XP and 7 */
  :where(.desktop, .desktop-glyph:not(.desktop .desktop-glyph)) {
    --desktop-glyph-computer: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect x='4.5' y='4.5' width='23' height='17' rx='2' fill='%23cbd5e1'/%3E%3Crect x='7.5' y='7.5' width='17' height='11' rx='1' fill='%2360a5fa'/%3E%3Cpath d='M12.5 21.5h7l1.5 4h-10z' fill='%23cbd5e1'/%3E%3Crect x='7.5' y='25.5' width='17' height='3' rx='1' fill='%23cbd5e1'/%3E%3C/svg%3E");
    --desktop-glyph-folder: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M3.5 8.5h9l2 2.5h14v16h-25z' fill='%23f6c453'/%3E%3Cpath d='M3.5 13.5h25v13h-25z' fill='%23f6c453'/%3E%3C/svg%3E");
    --desktop-glyph-documents: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M3.5 8.5h9l2 2.5h14v16h-25z' fill='%23f6c453'/%3E%3Crect x='9.5' y='5.5' width='14' height='17' rx='1' fill='%23f8fafc'/%3E%3Cpath d='M12 10h9M12 13h9M12 16h6' fill='none' stroke='%232563eb' stroke-width='1' stroke-linecap='round'/%3E%3Cpath d='M3.5 15.5h25v11h-25z' fill='%23f6c453'/%3E%3C/svg%3E");
    --desktop-glyph-trash: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M8.5 9.5h15l-1.5 18h-12z' fill='%23cbd5e1'/%3E%3Crect x='6.5' y='6.5' width='19' height='3' rx='1' fill='%23cbd5e1'/%3E%3Crect x='13.5' y='4.5' width='5' height='2' rx='1' fill='%23cbd5e1'/%3E%3Cpath d='M13 12.5v12M16 12.5v12M19 12.5v12' fill='none' stroke='%2394a3b8' stroke-width='1' stroke-linecap='round'/%3E%3C/svg%3E");
    --desktop-glyph-text: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M7.5 3.5h13l5 5v20h-18z' fill='%23f8fafc'/%3E%3Cpath d='M20.5 3.5v5h5' fill='%23f8fafc'/%3E%3Cpath d='M10.5 12.5h11M10.5 15.5h11M10.5 18.5h11M10.5 21.5h7' fill='none' stroke='%232563eb' stroke-width='1' stroke-linecap='round'/%3E%3C/svg%3E");
    --desktop-glyph-terminal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect x='3.5' y='5.5' width='25' height='21' rx='2' fill='%23334155'/%3E%3Crect x='3.5' y='5.5' width='25' height='4' rx='2' fill='%23cbd5e1'/%3E%3Cpath d='M7.5 14.5l3.5 3-3.5 3' fill='none' stroke='%23e5e7eb' stroke-width='1.5' stroke-linecap='round'/%3E%3Cpath d='M13.5 21h6' fill='none' stroke='%23e5e7eb' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    --desktop-glyph-settings: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='10.5' fill='%23cbd5e1'/%3E%3Ccircle cx='16' cy='16' r='4.5' fill='%23f8fafc'/%3E%3Cpath d='M16 3.5v4M16 24.5v4M3.5 16h4M24.5 16h4M7.2 7.2l2.8 2.8M22 22l2.8 2.8M7.2 24.8l2.8-2.8M22 10l2.8-2.8' fill='none' stroke='%23334155' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E");
    --desktop-glyph-browser: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='12' fill='%2360a5fa'/%3E%3Cpath d='M9 9.5c3 0 5 2 4 5s-4 2-4 5-3 1-4-1c0-4 1-7 4-9z' fill='%234ade80'/%3E%3Cpath d='M19 6.5c2 1 2 3 4 3s3 3 2 6-3 1-4 3-3 0-3-3 1-3 0-5z' fill='%234ade80'/%3E%3C/svg%3E");
    --desktop-glyph-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect x='3.5' y='8.5' width='25' height='17' rx='1' fill='%23f8fafc'/%3E%3Cpath d='M4 9l12 9 12-9' fill='none' stroke='%23334155' stroke-width='1.2' stroke-linecap='round'/%3E%3Cpath d='M4 25l9-8M28 25l-9-8' fill='none' stroke='%2394a3b8' stroke-width='1' stroke-linecap='round'/%3E%3C/svg%3E");
    --desktop-glyph-picture: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect x='3.5' y='5.5' width='25' height='21' rx='2' fill='%23f8fafc'/%3E%3Crect x='6.5' y='8.5' width='19' height='15' rx='1' fill='%232dd4bf'/%3E%3Ccircle cx='11.5' cy='13' r='2.5' fill='%23fde047'/%3E%3Cpath d='M6.5 23.5l6-7 4 4 3-3 6 6z' fill='%234ade80'/%3E%3C/svg%3E");
    --desktop-glyph-calculator: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect x='7.5' y='3.5' width='17' height='25' rx='2' fill='%23cbd5e1'/%3E%3Crect x='10.5' y='6.5' width='11' height='5' rx='1' fill='%234ade80'/%3E%3Crect x='10.5' y='13.5' width='3' height='3' rx='0.5' fill='%23f8fafc'/%3E%3Crect x='14.5' y='13.5' width='3' height='3' rx='0.5' fill='%23f8fafc'/%3E%3Crect x='18.5' y='13.5' width='3' height='3' rx='0.5' fill='%23f8fafc'/%3E%3Crect x='10.5' y='17.5' width='3' height='3' rx='0.5' fill='%23f8fafc'/%3E%3Crect x='14.5' y='17.5' width='3' height='3' rx='0.5' fill='%23f8fafc'/%3E%3Crect x='18.5' y='17.5' width='3' height='3' rx='0.5' fill='%23f8fafc'/%3E%3Crect x='10.5' y='21.5' width='3' height='3' rx='0.5' fill='%23f8fafc'/%3E%3Crect x='14.5' y='21.5' width='3' height='3' rx='0.5' fill='%23f8fafc'/%3E%3Crect x='18.5' y='21.5' width='3' height='3' rx='0.5' fill='%23f87171'/%3E%3C/svg%3E");
    --desktop-glyph-music: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M12.5 7.5l13-3v16' fill='%23334155'/%3E%3Cpath d='M12.5 7.5v15M25.5 4.5v16' fill='none' stroke='%230f172a' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='9.5' cy='23' r='3.5' fill='%23a78bfa'/%3E%3Ccircle cx='22.5' cy='21' r='3.5' fill='%23a78bfa'/%3E%3Crect x='12' y='6' width='14' height='3' rx='0' fill='%23334155'/%3E%3C/svg%3E");
    --desktop-glyph-network: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect x='2.5' y='4.5' width='12' height='9' rx='1' fill='%23cbd5e1'/%3E%3Crect x='4.5' y='6.5' width='8' height='5' rx='0' fill='%2360a5fa'/%3E%3Crect x='17.5' y='18.5' width='12' height='9' rx='1' fill='%23cbd5e1'/%3E%3Crect x='19.5' y='20.5' width='8' height='5' rx='0' fill='%2360a5fa'/%3E%3Cpath d='M8.5 14v5h9' fill='none' stroke='%23334155' stroke-width='1.5' stroke-linecap='round'/%3E%3Ccircle cx='8.5' cy='19' r='1.5' fill='%23fde047'/%3E%3C/svg%3E");
    --desktop-glyph-help: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='12' fill='%23fde047'/%3E%3Cpath d='M12 12.5a4 4 0 1 1 5.5 3.7c-1 .5-1.5 1.2-1.5 2.3v1' fill='none' stroke='%230f172a' stroke-width='2.5' stroke-linecap='round'/%3E%3Ccircle cx='16' cy='23.5' r='1.5' fill='%23334155'/%3E%3C/svg%3E");
    --desktop-glyph-user: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='11' r='6' fill='%23fde047'/%3E%3Cpath d='M5.5 28.5c0-6 4.5-10 10.5-10s10.5 4 10.5 10z' fill='%2360a5fa'/%3E%3C/svg%3E");
    --desktop-glyph-power: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='12' fill='%23f87171'/%3E%3Cpath d='M16 9v7' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round'/%3E%3Cpath d='M11.5 11.5a6.5 6.5 0 1 0 9 0' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E");
    --desktop-glyph-flag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M4 7.5c3-1.5 6-1.5 10.5 0v8c-4.5-1.5-7.5-1.5-10.5 0z' fill='%23f87171'/%3E%3Cpath d='M16.5 8c3 1.5 7 1.5 11.5 0v8c-4.5 1.5-8.5 1.5-11.5 0z' fill='%234ade80'/%3E%3Cpath d='M4 17.5c3-1.5 6-1.5 10.5 0v8c-4.5-1.5-7.5-1.5-10.5 0z' fill='%2360a5fa'/%3E%3Cpath d='M16.5 18c3 1.5 7 1.5 11.5 0v8c-4.5 1.5-8.5 1.5-11.5 0z' fill='%23fde047'/%3E%3C/svg%3E");
  }
  .desktop:is([data-variant="winxp"], [data-variant="win7"]) {
    --desktop-glyph-computer: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cdefs%3E%3ClinearGradient id='gmetal' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23eef1f5'/%3E%3Cstop offset='1' stop-color='%239aa6b6'/%3E%3C/linearGradient%3E%3ClinearGradient id='gscreen' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%237cc4ff'/%3E%3Cstop offset='1' stop-color='%231450c8'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='4.5' y='4.5' width='23' height='17' rx='1.4' fill='url(%23gmetal)' stroke='%236c747f' stroke-width='1'/%3E%3Crect x='7.5' y='7.5' width='17' height='11' rx='0.7' fill='url(%23gscreen)' stroke='%230e388c' stroke-width='1'/%3E%3Crect x='8' y='8' width='16' height='4' rx='1.4' fill='%23fff' opacity='0.35'/%3E%3Cpath d='M12.5 21.5h7l1.5 4h-10z' fill='url(%23gmetal)' stroke='%236c747f' stroke-width='1'/%3E%3Crect x='7.5' y='25.5' width='17' height='3' rx='0.7' fill='url(%23gmetal)' stroke='%236c747f' stroke-width='1'/%3E%3C/svg%3E");
    --desktop-glyph-folder: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cdefs%3E%3ClinearGradient id='gfolder' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ffe28a'/%3E%3Cstop offset='1' stop-color='%23e0a92a'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M3.5 8.5h9l2 2.5h14v16h-25z' fill='url(%23gfolder)' stroke='%239d761d' stroke-width='1'/%3E%3Cpath d='M3.5 13.5h25v13h-25z' fill='url(%23gfolder)' stroke='%239d761d' stroke-width='1'/%3E%3Crect x='4' y='14' width='24' height='5' rx='1.4' fill='%23fff' opacity='0.35'/%3E%3C/svg%3E");
    --desktop-glyph-documents: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cdefs%3E%3ClinearGradient id='gfolder' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ffe28a'/%3E%3Cstop offset='1' stop-color='%23e0a92a'/%3E%3C/linearGradient%3E%3ClinearGradient id='gpaper' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ffffff'/%3E%3Cstop offset='1' stop-color='%23d6e0ee'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M3.5 8.5h9l2 2.5h14v16h-25z' fill='url(%23gfolder)' stroke='%239d761d' stroke-width='1'/%3E%3Crect x='9.5' y='5.5' width='14' height='17' rx='0.7' fill='url(%23gpaper)' stroke='%23969da7' stroke-width='1'/%3E%3Cpath d='M12 10h9M12 13h9M12 16h6' fill='none' stroke='%231a5bd8' stroke-width='1' stroke-linecap='round'/%3E%3Cpath d='M3.5 15.5h25v11h-25z' fill='url(%23gfolder)' stroke='%239d761d' stroke-width='1'/%3E%3Crect x='4' y='16' width='24' height='4' rx='1.4' fill='%23fff' opacity='0.35'/%3E%3C/svg%3E");
    --desktop-glyph-trash: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cdefs%3E%3ClinearGradient id='gmetal' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23eef1f5'/%3E%3Cstop offset='1' stop-color='%239aa6b6'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M8.5 9.5h15l-1.5 18h-12z' fill='url(%23gmetal)' stroke='%236c747f' stroke-width='1'/%3E%3Crect x='6.5' y='6.5' width='19' height='3' rx='0.7' fill='url(%23gmetal)' stroke='%236c747f' stroke-width='1'/%3E%3Crect x='13.5' y='4.5' width='5' height='2' rx='0.7' fill='url(%23gmetal)' stroke='%236c747f' stroke-width='1'/%3E%3Cpath d='M13 12.5v12M16 12.5v12M19 12.5v12' fill='none' stroke='%239aa6b6' stroke-width='1' stroke-linecap='round'/%3E%3Crect x='9' y='10' width='14' height='4' rx='1.4' fill='%23fff' opacity='0.35'/%3E%3C/svg%3E");
    --desktop-glyph-text: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cdefs%3E%3ClinearGradient id='gpaper' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ffffff'/%3E%3Cstop offset='1' stop-color='%23d6e0ee'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M7.5 3.5h13l5 5v20h-18z' fill='url(%23gpaper)' stroke='%23969da7' stroke-width='1'/%3E%3Cpath d='M20.5 3.5v5h5' fill='url(%23gpaper)' stroke='%23969da7' stroke-width='1'/%3E%3Cpath d='M10.5 12.5h11M10.5 15.5h11M10.5 18.5h11M10.5 21.5h7' fill='none' stroke='%231a5bd8' stroke-width='1' stroke-linecap='round'/%3E%3C/svg%3E");
    --desktop-glyph-terminal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cdefs%3E%3ClinearGradient id='gblack' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%234a4f57'/%3E%3Cstop offset='1' stop-color='%23101418'/%3E%3C/linearGradient%3E%3ClinearGradient id='gmetal' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23eef1f5'/%3E%3Cstop offset='1' stop-color='%239aa6b6'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='3.5' y='5.5' width='25' height='21' rx='1.4' fill='url(%23gblack)' stroke='%230b0e11' stroke-width='1'/%3E%3Crect x='3.5' y='5.5' width='25' height='4' rx='1.4' fill='url(%23gmetal)' stroke='%236c747f' stroke-width='1'/%3E%3Cpath d='M7.5 14.5l3.5 3-3.5 3' fill='none' stroke='%23e5e7eb' stroke-width='1.5' stroke-linecap='round'/%3E%3Cpath d='M13.5 21h6' fill='none' stroke='%23e5e7eb' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    --desktop-glyph-settings: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cdefs%3E%3ClinearGradient id='gmetal' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23eef1f5'/%3E%3Cstop offset='1' stop-color='%239aa6b6'/%3E%3C/linearGradient%3E%3ClinearGradient id='gpaper' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ffffff'/%3E%3Cstop offset='1' stop-color='%23d6e0ee'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='16' cy='16' r='10.5' fill='url(%23gmetal)' stroke='%236c747f' stroke-width='1'/%3E%3Ccircle cx='16' cy='16' r='4.5' fill='url(%23gpaper)' stroke='%23969da7' stroke-width='1'/%3E%3Cpath d='M16 3.5v4M16 24.5v4M3.5 16h4M24.5 16h4M7.2 7.2l2.8 2.8M22 22l2.8 2.8M7.2 24.8l2.8-2.8M22 10l2.8-2.8' fill='none' stroke='%234b5563' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E");
    --desktop-glyph-browser: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cdefs%3E%3ClinearGradient id='gblue' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%237cb8ff'/%3E%3Cstop offset='1' stop-color='%231a5bd8'/%3E%3C/linearGradient%3E%3ClinearGradient id='ggreen' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%238fe38f'/%3E%3Cstop offset='1' stop-color='%232a8f2a'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='16' cy='16' r='12' fill='url(%23gblue)' stroke='%23124097' stroke-width='1'/%3E%3Cpath d='M9 9.5c3 0 5 2 4 5s-4 2-4 5-3 1-4-1c0-4 1-7 4-9z' fill='url(%23ggreen)' stroke='%231d641d' stroke-width='1'/%3E%3Cpath d='M19 6.5c2 1 2 3 4 3s3 3 2 6-3 1-4 3-3 0-3-3 1-3 0-5z' fill='url(%23ggreen)' stroke='%231d641d' stroke-width='1'/%3E%3Crect x='7' y='6' width='18' height='6' rx='1.4' fill='%23fff' opacity='0.35'/%3E%3C/svg%3E");
    --desktop-glyph-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cdefs%3E%3ClinearGradient id='gpaper' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ffffff'/%3E%3Cstop offset='1' stop-color='%23d6e0ee'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='3.5' y='8.5' width='25' height='17' rx='0.7' fill='url(%23gpaper)' stroke='%23969da7' stroke-width='1'/%3E%3Cpath d='M4 9l12 9 12-9' fill='none' stroke='%234b5563' stroke-width='1.2' stroke-linecap='round'/%3E%3Cpath d='M4 25l9-8M28 25l-9-8' fill='none' stroke='%239aa6b6' stroke-width='1' stroke-linecap='round'/%3E%3C/svg%3E");
    --desktop-glyph-picture: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cdefs%3E%3ClinearGradient id='gpaper' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ffffff'/%3E%3Cstop offset='1' stop-color='%23d6e0ee'/%3E%3C/linearGradient%3E%3ClinearGradient id='gteal' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%237fe8dc'/%3E%3Cstop offset='1' stop-color='%23138f84'/%3E%3C/linearGradient%3E%3ClinearGradient id='gyellow' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23fff08a'/%3E%3Cstop offset='1' stop-color='%23e8a800'/%3E%3C/linearGradient%3E%3ClinearGradient id='ggreen' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%238fe38f'/%3E%3Cstop offset='1' stop-color='%232a8f2a'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='3.5' y='5.5' width='25' height='21' rx='1.4' fill='url(%23gpaper)' stroke='%23969da7' stroke-width='1'/%3E%3Crect x='6.5' y='8.5' width='19' height='15' rx='0.7' fill='url(%23gteal)' stroke='%230d645c' stroke-width='1'/%3E%3Ccircle cx='11.5' cy='13' r='2.5' fill='url(%23gyellow)' stroke='%23a27600' stroke-width='1'/%3E%3Cpath d='M6.5 23.5l6-7 4 4 3-3 6 6z' fill='url(%23ggreen)' stroke='%231d641d' stroke-width='1'/%3E%3C/svg%3E");
    --desktop-glyph-calculator: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cdefs%3E%3ClinearGradient id='gmetal' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23eef1f5'/%3E%3Cstop offset='1' stop-color='%239aa6b6'/%3E%3C/linearGradient%3E%3ClinearGradient id='ggreen' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%238fe38f'/%3E%3Cstop offset='1' stop-color='%232a8f2a'/%3E%3C/linearGradient%3E%3ClinearGradient id='gpaper' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ffffff'/%3E%3Cstop offset='1' stop-color='%23d6e0ee'/%3E%3C/linearGradient%3E%3ClinearGradient id='gred' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ff8a7a'/%3E%3Cstop offset='1' stop-color='%23c22a1c'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='7.5' y='3.5' width='17' height='25' rx='1.4' fill='url(%23gmetal)' stroke='%236c747f' stroke-width='1'/%3E%3Crect x='10.5' y='6.5' width='11' height='5' rx='0.7' fill='url(%23ggreen)' stroke='%231d641d' stroke-width='1'/%3E%3Crect x='10.5' y='13.5' width='3' height='3' rx='0.35' fill='url(%23gpaper)' stroke='%23969da7' stroke-width='1'/%3E%3Crect x='14.5' y='13.5' width='3' height='3' rx='0.35' fill='url(%23gpaper)' stroke='%23969da7' stroke-width='1'/%3E%3Crect x='18.5' y='13.5' width='3' height='3' rx='0.35' fill='url(%23gpaper)' stroke='%23969da7' stroke-width='1'/%3E%3Crect x='10.5' y='17.5' width='3' height='3' rx='0.35' fill='url(%23gpaper)' stroke='%23969da7' stroke-width='1'/%3E%3Crect x='14.5' y='17.5' width='3' height='3' rx='0.35' fill='url(%23gpaper)' stroke='%23969da7' stroke-width='1'/%3E%3Crect x='18.5' y='17.5' width='3' height='3' rx='0.35' fill='url(%23gpaper)' stroke='%23969da7' stroke-width='1'/%3E%3Crect x='10.5' y='21.5' width='3' height='3' rx='0.35' fill='url(%23gpaper)' stroke='%23969da7' stroke-width='1'/%3E%3Crect x='14.5' y='21.5' width='3' height='3' rx='0.35' fill='url(%23gpaper)' stroke='%23969da7' stroke-width='1'/%3E%3Crect x='18.5' y='21.5' width='3' height='3' rx='0.35' fill='url(%23gred)' stroke='%23881d14' stroke-width='1'/%3E%3C/svg%3E");
    --desktop-glyph-music: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cdefs%3E%3ClinearGradient id='gblack' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%234a4f57'/%3E%3Cstop offset='1' stop-color='%23101418'/%3E%3C/linearGradient%3E%3ClinearGradient id='gviolet' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23c9b2ff'/%3E%3Cstop offset='1' stop-color='%236a3fd0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M12.5 7.5l13-3v16' fill='url(%23gblack)' stroke='%230b0e11' stroke-width='1'/%3E%3Cpath d='M12.5 7.5v15M25.5 4.5v16' fill='none' stroke='%23101418' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='9.5' cy='23' r='3.5' fill='url(%23gviolet)' stroke='%234a2c92' stroke-width='1'/%3E%3Ccircle cx='22.5' cy='21' r='3.5' fill='url(%23gviolet)' stroke='%234a2c92' stroke-width='1'/%3E%3Crect x='12' y='6' width='14' height='3' rx='0' fill='url(%23gblack)' stroke='%230b0e11' stroke-width='1'/%3E%3C/svg%3E");
    --desktop-glyph-network: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cdefs%3E%3ClinearGradient id='gmetal' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23eef1f5'/%3E%3Cstop offset='1' stop-color='%239aa6b6'/%3E%3C/linearGradient%3E%3ClinearGradient id='gscreen' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%237cc4ff'/%3E%3Cstop offset='1' stop-color='%231450c8'/%3E%3C/linearGradient%3E%3ClinearGradient id='gyellow' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23fff08a'/%3E%3Cstop offset='1' stop-color='%23e8a800'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='2.5' y='4.5' width='12' height='9' rx='0.7' fill='url(%23gmetal)' stroke='%236c747f' stroke-width='1'/%3E%3Crect x='4.5' y='6.5' width='8' height='5' rx='0' fill='url(%23gscreen)' stroke='%230e388c' stroke-width='1'/%3E%3Crect x='17.5' y='18.5' width='12' height='9' rx='0.7' fill='url(%23gmetal)' stroke='%236c747f' stroke-width='1'/%3E%3Crect x='19.5' y='20.5' width='8' height='5' rx='0' fill='url(%23gscreen)' stroke='%230e388c' stroke-width='1'/%3E%3Cpath d='M8.5 14v5h9' fill='none' stroke='%234b5563' stroke-width='1.5' stroke-linecap='round'/%3E%3Ccircle cx='8.5' cy='19' r='1.5' fill='url(%23gyellow)' stroke='%23a27600' stroke-width='1'/%3E%3C/svg%3E");
    --desktop-glyph-help: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cdefs%3E%3ClinearGradient id='gyellow' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23fff08a'/%3E%3Cstop offset='1' stop-color='%23e8a800'/%3E%3C/linearGradient%3E%3ClinearGradient id='gblack' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%234a4f57'/%3E%3Cstop offset='1' stop-color='%23101418'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='16' cy='16' r='12' fill='url(%23gyellow)' stroke='%23a27600' stroke-width='1'/%3E%3Cpath d='M12 12.5a4 4 0 1 1 5.5 3.7c-1 .5-1.5 1.2-1.5 2.3v1' fill='none' stroke='%23101418' stroke-width='2.5' stroke-linecap='round'/%3E%3Ccircle cx='16' cy='23.5' r='1.5' fill='url(%23gblack)' stroke='%230b0e11' stroke-width='1'/%3E%3Crect x='8' y='6' width='16' height='6' rx='1.4' fill='%23fff' opacity='0.35'/%3E%3C/svg%3E");
    --desktop-glyph-user: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cdefs%3E%3ClinearGradient id='gyellow' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23fff08a'/%3E%3Cstop offset='1' stop-color='%23e8a800'/%3E%3C/linearGradient%3E%3ClinearGradient id='gblue' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%237cb8ff'/%3E%3Cstop offset='1' stop-color='%231a5bd8'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='16' cy='11' r='6' fill='url(%23gyellow)' stroke='%23a27600' stroke-width='1'/%3E%3Cpath d='M5.5 28.5c0-6 4.5-10 10.5-10s10.5 4 10.5 10z' fill='url(%23gblue)' stroke='%23124097' stroke-width='1'/%3E%3Crect x='8' y='19' width='16' height='4' rx='1.4' fill='%23fff' opacity='0.35'/%3E%3C/svg%3E");
    --desktop-glyph-power: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cdefs%3E%3ClinearGradient id='gred' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ff8a7a'/%3E%3Cstop offset='1' stop-color='%23c22a1c'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='16' cy='16' r='12' fill='url(%23gred)' stroke='%23881d14' stroke-width='1'/%3E%3Cpath d='M16 9v7' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round'/%3E%3Cpath d='M11.5 11.5a6.5 6.5 0 1 0 9 0' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round'/%3E%3Crect x='8' y='6' width='16' height='6' rx='1.4' fill='%23fff' opacity='0.35'/%3E%3C/svg%3E");
    --desktop-glyph-flag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cdefs%3E%3ClinearGradient id='gred' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ff8a7a'/%3E%3Cstop offset='1' stop-color='%23c22a1c'/%3E%3C/linearGradient%3E%3ClinearGradient id='ggreen' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%238fe38f'/%3E%3Cstop offset='1' stop-color='%232a8f2a'/%3E%3C/linearGradient%3E%3ClinearGradient id='gblue' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%237cb8ff'/%3E%3Cstop offset='1' stop-color='%231a5bd8'/%3E%3C/linearGradient%3E%3ClinearGradient id='gyellow' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23fff08a'/%3E%3Cstop offset='1' stop-color='%23e8a800'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M4 7.5c3-1.5 6-1.5 10.5 0v8c-4.5-1.5-7.5-1.5-10.5 0z' fill='url(%23gred)' stroke='%23881d14' stroke-width='1'/%3E%3Cpath d='M16.5 8c3 1.5 7 1.5 11.5 0v8c-4.5 1.5-8.5 1.5-11.5 0z' fill='url(%23ggreen)' stroke='%231d641d' stroke-width='1'/%3E%3Cpath d='M4 17.5c3-1.5 6-1.5 10.5 0v8c-4.5-1.5-7.5-1.5-10.5 0z' fill='url(%23gblue)' stroke='%23124097' stroke-width='1'/%3E%3Cpath d='M16.5 18c3 1.5 7 1.5 11.5 0v8c-4.5 1.5-8.5 1.5-11.5 0z' fill='url(%23gyellow)' stroke='%23a27600' stroke-width='1'/%3E%3C/svg%3E");
  }

  /* the glyphs: the look's art for each name (a glyph outside a desktop takes the modern art) */
  .desktop-glyph {
    display: inline-block;
    flex: none;
    width: 2rem;
    height: 2rem;
    vertical-align: middle;
    background: var(--_glyph) center / contain no-repeat;
    &[data-glyph="computer"] {
      --_glyph: var(--desktop-glyph-computer);
    }
    &[data-glyph="folder"] {
      --_glyph: var(--desktop-glyph-folder);
    }
    &[data-glyph="documents"] {
      --_glyph: var(--desktop-glyph-documents);
    }
    &[data-glyph="trash"] {
      --_glyph: var(--desktop-glyph-trash);
    }
    &[data-glyph="text"] {
      --_glyph: var(--desktop-glyph-text);
    }
    &[data-glyph="terminal"] {
      --_glyph: var(--desktop-glyph-terminal);
    }
    &[data-glyph="settings"] {
      --_glyph: var(--desktop-glyph-settings);
    }
    &[data-glyph="browser"] {
      --_glyph: var(--desktop-glyph-browser);
    }
    &[data-glyph="mail"] {
      --_glyph: var(--desktop-glyph-mail);
    }
    &[data-glyph="picture"] {
      --_glyph: var(--desktop-glyph-picture);
    }
    &[data-glyph="calculator"] {
      --_glyph: var(--desktop-glyph-calculator);
    }
    &[data-glyph="music"] {
      --_glyph: var(--desktop-glyph-music);
    }
    &[data-glyph="network"] {
      --_glyph: var(--desktop-glyph-network);
    }
    &[data-glyph="help"] {
      --_glyph: var(--desktop-glyph-help);
    }
    &[data-glyph="user"] {
      --_glyph: var(--desktop-glyph-user);
    }
    &[data-glyph="power"] {
      --_glyph: var(--desktop-glyph-power);
    }
    &[data-glyph="flag"] {
      --_glyph: var(--desktop-glyph-flag);
    }
  }

  /* the modern look's start menu opens centred over a centred bar, like the current one */
  .desktop:not([data-variant]) .taskbar[data-align="center"] ~ .start-menu,
  .desktop:not([data-variant]) .start-menu {
    border-radius: var(--radius-xl);
    background: color-mix(in oklch, var(--popover) 88%, transparent);
    backdrop-filter: blur(24px) saturate(1.4);
  }
  .desktop:not([data-variant]) .taskbar {
    background: color-mix(in oklch, var(--card) 72%, transparent);
    backdrop-filter: blur(24px) saturate(1.4);
  }
  .desktop:not([data-variant]) .logon-main {
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    background: color-mix(in oklch, var(--card) 70%, transparent);
    backdrop-filter: blur(20px);
  }

  /* -- 95 and 98: bevelled grey, the pixel font ------------------------- */
  .desktop:is([data-variant="win95"], [data-variant="win98"]) {
    --background: #fff;
    --foreground: #000;
    --card: #c0c0c0;
    --card-foreground: #000;
    --popover: #c0c0c0;
    --popover-foreground: #000;
    --primary: #000080;
    --primary-foreground: #fff;
    --secondary: #c0c0c0;
    --secondary-foreground: #000;
    --muted: #c0c0c0;
    --muted-foreground: #404040;
    --accent: #000080;
    --accent-foreground: #fff;
    --destructive: #800000;
    --destructive-foreground: #fff;
    --border: #808080;
    --input: #808080;
    --ring: #000;
    --radius: 0px;
    --font-sans: "Desktop Pixel Sans", "MS Sans Serif", "Microsoft Sans Serif", Tahoma, Arial, sans-serif;
    --shadow-2xs: none;
    --shadow-xs: none;
    --shadow-sm: none;
    --shadow: none;
    --shadow-md: none;
    --shadow-lg: none;
    --shadow-xl: none;
    --shadow-2xl: none;
    --desktop-wallpaper: #008080;
    --_raised: inset -1px -1px #0a0a0a, inset 1px 1px #fff, inset -2px -2px #808080, inset 2px 2px #dfdfdf;
    --_pressed: inset -1px -1px #fff, inset 1px 1px #0a0a0a, inset -2px -2px #dfdfdf, inset 2px 2px #808080;
    --_sunken: inset -1px -1px #fff, inset 1px 1px #808080, inset -2px -2px #dfdfdf, inset 2px 2px #0a0a0a;
    --_frame: inset -1px -1px #0a0a0a, inset 1px 1px #dfdfdf, inset -2px -2px #808080, inset 2px 2px #fff;
    --_title: #000080;
    --_title-off: #808080;
    --desktop-glyph-computer: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' shape-rendering='crispEdges'%3E%3Crect x='4.5' y='4.5' width='23' height='17' rx='0' fill='%23c0c0c0' stroke='%23000' stroke-width='1'/%3E%3Crect x='7.5' y='7.5' width='17' height='11' rx='0' fill='%23008080' stroke='%23000' stroke-width='1'/%3E%3Cpath d='M12.5 21.5h7l1.5 4h-10z' fill='%23c0c0c0' stroke='%23000' stroke-width='1'/%3E%3Crect x='7.5' y='25.5' width='17' height='3' rx='0' fill='%23c0c0c0' stroke='%23000' stroke-width='1'/%3E%3C/svg%3E");
    --desktop-glyph-folder: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' shape-rendering='crispEdges'%3E%3Cpath d='M3.5 8.5h9l2 2.5h14v16h-25z' fill='%23ffff00' stroke='%23000' stroke-width='1'/%3E%3Cpath d='M3.5 13.5h25v13h-25z' fill='%23ffff00' stroke='%23000' stroke-width='1'/%3E%3C/svg%3E");
    --desktop-glyph-documents: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' shape-rendering='crispEdges'%3E%3Cpath d='M3.5 8.5h9l2 2.5h14v16h-25z' fill='%23ffff00' stroke='%23000' stroke-width='1'/%3E%3Crect x='9.5' y='5.5' width='14' height='17' rx='0' fill='%23ffffff' stroke='%23000' stroke-width='1'/%3E%3Cpath d='M12 10h9M12 13h9M12 16h6' fill='none' stroke='%23000080' stroke-width='1' stroke-linecap='square'/%3E%3Cpath d='M3.5 15.5h25v11h-25z' fill='%23ffff00' stroke='%23000' stroke-width='1'/%3E%3C/svg%3E");
    --desktop-glyph-trash: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' shape-rendering='crispEdges'%3E%3Cpath d='M8.5 9.5h15l-1.5 18h-12z' fill='%23c0c0c0' stroke='%23000' stroke-width='1'/%3E%3Crect x='6.5' y='6.5' width='19' height='3' rx='0' fill='%23c0c0c0' stroke='%23000' stroke-width='1'/%3E%3Crect x='13.5' y='4.5' width='5' height='2' rx='0' fill='%23c0c0c0' stroke='%23000' stroke-width='1'/%3E%3Cpath d='M13 12.5v12M16 12.5v12M19 12.5v12' fill='none' stroke='%23808080' stroke-width='1' stroke-linecap='square'/%3E%3C/svg%3E");
    --desktop-glyph-text: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' shape-rendering='crispEdges'%3E%3Cpath d='M7.5 3.5h13l5 5v20h-18z' fill='%23ffffff' stroke='%23000' stroke-width='1'/%3E%3Cpath d='M20.5 3.5v5h5' fill='%23ffffff' stroke='%23000' stroke-width='1'/%3E%3Cpath d='M10.5 12.5h11M10.5 15.5h11M10.5 18.5h11M10.5 21.5h7' fill='none' stroke='%23000080' stroke-width='1' stroke-linecap='square'/%3E%3C/svg%3E");
    --desktop-glyph-terminal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' shape-rendering='crispEdges'%3E%3Crect x='3.5' y='5.5' width='25' height='21' rx='0' fill='%23000000' stroke='%23000' stroke-width='1'/%3E%3Crect x='3.5' y='5.5' width='25' height='4' rx='0' fill='%23c0c0c0' stroke='%23000' stroke-width='1'/%3E%3Cpath d='M7.5 14.5l3.5 3-3.5 3' fill='none' stroke='%23e5e7eb' stroke-width='2' stroke-linecap='square'/%3E%3Cpath d='M13.5 21h6' fill='none' stroke='%23e5e7eb' stroke-width='2' stroke-linecap='square'/%3E%3C/svg%3E");
    --desktop-glyph-settings: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' shape-rendering='crispEdges'%3E%3Ccircle cx='16' cy='16' r='10.5' fill='%23c0c0c0' stroke='%23000' stroke-width='1'/%3E%3Ccircle cx='16' cy='16' r='4.5' fill='%23ffffff' stroke='%23000' stroke-width='1'/%3E%3Cpath d='M16 3.5v4M16 24.5v4M3.5 16h4M24.5 16h4M7.2 7.2l2.8 2.8M22 22l2.8 2.8M7.2 24.8l2.8-2.8M22 10l2.8-2.8' fill='none' stroke='%23000000' stroke-width='3' stroke-linecap='square'/%3E%3C/svg%3E");
    --desktop-glyph-browser: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' shape-rendering='crispEdges'%3E%3Ccircle cx='16' cy='16' r='12' fill='%230000ff' stroke='%23000' stroke-width='1'/%3E%3Cpath d='M9 9.5c3 0 5 2 4 5s-4 2-4 5-3 1-4-1c0-4 1-7 4-9z' fill='%2300ff00' stroke='%23000' stroke-width='1'/%3E%3Cpath d='M19 6.5c2 1 2 3 4 3s3 3 2 6-3 1-4 3-3 0-3-3 1-3 0-5z' fill='%2300ff00' stroke='%23000' stroke-width='1'/%3E%3C/svg%3E");
    --desktop-glyph-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' shape-rendering='crispEdges'%3E%3Crect x='3.5' y='8.5' width='25' height='17' rx='0' fill='%23ffffff' stroke='%23000' stroke-width='1'/%3E%3Cpath d='M4 9l12 9 12-9' fill='none' stroke='%23000000' stroke-width='1' stroke-linecap='square'/%3E%3Cpath d='M4 25l9-8M28 25l-9-8' fill='none' stroke='%23808080' stroke-width='1' stroke-linecap='square'/%3E%3C/svg%3E");
    --desktop-glyph-picture: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' shape-rendering='crispEdges'%3E%3Crect x='3.5' y='5.5' width='25' height='21' rx='0' fill='%23ffffff' stroke='%23000' stroke-width='1'/%3E%3Crect x='6.5' y='8.5' width='19' height='15' rx='0' fill='%2300ffff' stroke='%23000' stroke-width='1'/%3E%3Ccircle cx='11.5' cy='13' r='2.5' fill='%23ffff00' stroke='%23000' stroke-width='1'/%3E%3Cpath d='M6.5 23.5l6-7 4 4 3-3 6 6z' fill='%2300ff00' stroke='%23000' stroke-width='1'/%3E%3C/svg%3E");
    --desktop-glyph-calculator: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' shape-rendering='crispEdges'%3E%3Crect x='7.5' y='3.5' width='17' height='25' rx='0' fill='%23c0c0c0' stroke='%23000' stroke-width='1'/%3E%3Crect x='10.5' y='6.5' width='11' height='5' rx='0' fill='%2300ff00' stroke='%23000' stroke-width='1'/%3E%3Crect x='10.5' y='13.5' width='3' height='3' rx='0' fill='%23ffffff' stroke='%23000' stroke-width='1'/%3E%3Crect x='14.5' y='13.5' width='3' height='3' rx='0' fill='%23ffffff' stroke='%23000' stroke-width='1'/%3E%3Crect x='18.5' y='13.5' width='3' height='3' rx='0' fill='%23ffffff' stroke='%23000' stroke-width='1'/%3E%3Crect x='10.5' y='17.5' width='3' height='3' rx='0' fill='%23ffffff' stroke='%23000' stroke-width='1'/%3E%3Crect x='14.5' y='17.5' width='3' height='3' rx='0' fill='%23ffffff' stroke='%23000' stroke-width='1'/%3E%3Crect x='18.5' y='17.5' width='3' height='3' rx='0' fill='%23ffffff' stroke='%23000' stroke-width='1'/%3E%3Crect x='10.5' y='21.5' width='3' height='3' rx='0' fill='%23ffffff' stroke='%23000' stroke-width='1'/%3E%3Crect x='14.5' y='21.5' width='3' height='3' rx='0' fill='%23ffffff' stroke='%23000' stroke-width='1'/%3E%3Crect x='18.5' y='21.5' width='3' height='3' rx='0' fill='%23ff0000' stroke='%23000' stroke-width='1'/%3E%3C/svg%3E");
    --desktop-glyph-music: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' shape-rendering='crispEdges'%3E%3Cpath d='M12.5 7.5l13-3v16' fill='%23000000' stroke='%23000' stroke-width='1'/%3E%3Cpath d='M12.5 7.5v15M25.5 4.5v16' fill='none' stroke='%23000000' stroke-width='2' stroke-linecap='square'/%3E%3Ccircle cx='9.5' cy='23' r='3.5' fill='%23ff00ff' stroke='%23000' stroke-width='1'/%3E%3Ccircle cx='22.5' cy='21' r='3.5' fill='%23ff00ff' stroke='%23000' stroke-width='1'/%3E%3Crect x='12' y='6' width='14' height='3' rx='0' fill='%23000000' stroke='%23000' stroke-width='1'/%3E%3C/svg%3E");
    --desktop-glyph-network: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' shape-rendering='crispEdges'%3E%3Crect x='2.5' y='4.5' width='12' height='9' rx='0' fill='%23c0c0c0' stroke='%23000' stroke-width='1'/%3E%3Crect x='4.5' y='6.5' width='8' height='5' rx='0' fill='%23008080' stroke='%23000' stroke-width='1'/%3E%3Crect x='17.5' y='18.5' width='12' height='9' rx='0' fill='%23c0c0c0' stroke='%23000' stroke-width='1'/%3E%3Crect x='19.5' y='20.5' width='8' height='5' rx='0' fill='%23008080' stroke='%23000' stroke-width='1'/%3E%3Cpath d='M8.5 14v5h9' fill='none' stroke='%23000000' stroke-width='2' stroke-linecap='square'/%3E%3Ccircle cx='8.5' cy='19' r='1.5' fill='%23ffff00' stroke='%23000' stroke-width='1'/%3E%3C/svg%3E");
    --desktop-glyph-help: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' shape-rendering='crispEdges'%3E%3Ccircle cx='16' cy='16' r='12' fill='%23ffff00' stroke='%23000' stroke-width='1'/%3E%3Cpath d='M12 12.5a4 4 0 1 1 5.5 3.7c-1 .5-1.5 1.2-1.5 2.3v1' fill='none' stroke='%23000000' stroke-width='3' stroke-linecap='square'/%3E%3Ccircle cx='16' cy='23.5' r='1.5' fill='%23000000' stroke='%23000' stroke-width='1'/%3E%3C/svg%3E");
    --desktop-glyph-user: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' shape-rendering='crispEdges'%3E%3Ccircle cx='16' cy='11' r='6' fill='%23ffff00' stroke='%23000' stroke-width='1'/%3E%3Cpath d='M5.5 28.5c0-6 4.5-10 10.5-10s10.5 4 10.5 10z' fill='%230000ff' stroke='%23000' stroke-width='1'/%3E%3C/svg%3E");
    --desktop-glyph-power: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' shape-rendering='crispEdges'%3E%3Ccircle cx='16' cy='16' r='12' fill='%23ff0000' stroke='%23000' stroke-width='1'/%3E%3Cpath d='M16 9v7' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='square'/%3E%3Cpath d='M11.5 11.5a6.5 6.5 0 1 0 9 0' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='square'/%3E%3C/svg%3E");
    --desktop-glyph-flag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' shape-rendering='crispEdges'%3E%3Cpath d='M4 7.5c3-1.5 6-1.5 10.5 0v8c-4.5-1.5-7.5-1.5-10.5 0z' fill='%23ff0000' stroke='%23000' stroke-width='1'/%3E%3Cpath d='M16.5 8c3 1.5 7 1.5 11.5 0v8c-4.5 1.5-8.5 1.5-11.5 0z' fill='%2300ff00' stroke='%23000' stroke-width='1'/%3E%3Cpath d='M4 17.5c3-1.5 6-1.5 10.5 0v8c-4.5-1.5-7.5-1.5-10.5 0z' fill='%230000ff' stroke='%23000' stroke-width='1'/%3E%3Cpath d='M16.5 18c3 1.5 7 1.5 11.5 0v8c-4.5 1.5-8.5 1.5-11.5 0z' fill='%23ffff00' stroke='%23000' stroke-width='1'/%3E%3C/svg%3E");
    font-size: 11px;
    line-height: 1.3;
    -webkit-font-smoothing: none;
    color: #000;

    & .window {
      --_titlebar: 18px;
      padding: 3px;
      border: 0;
      border-radius: 0;
      background: #c0c0c0;
      color: #000;
      font-size: 11px;
      box-shadow: var(--_frame);
      & > .window-titlebar {
        height: 18px;
        gap: 3px;
        padding-inline: 3px 2px;
        border: 0;
        background: var(--_title);
        color: #fff;
      }
      & .window-icon {
        width: 16px;
        height: 16px;
        color: inherit;
      }
      & .window-title {
        font-size: 11px;
        font-weight: 700;
      }
      & .window-controls {
        align-self: center;
        gap: 0;
      }
      & .window-controls > button {
        width: 16px;
        height: 14px;
        background: #c0c0c0;
        color: #000;
        box-shadow: var(--_raised);
        &:hover {
          background: #c0c0c0;
        }
        &:active {
          box-shadow: var(--_pressed);
        }
      }
      & .window-controls > .window-close {
        margin-inline-start: 2px;
        &:hover {
          background: #c0c0c0;
          color: #000;
        }
      }
      & .window-minimize::before {
        width: 6px;
        height: 2px;
        translate: -60% 2px;
      }
      & .window-maximize::before {
        width: 9px;
        height: 8px;
        border-top-width: 2px;
        border-radius: 0;
      }
      & .window-close::before,
      & .window-close::after {
        width: 8px;
        height: 2px;
      }
      &[data-maximized] .window-maximize::after {
        background: #c0c0c0;
        border-top-width: 2px;
        border-radius: 0;
      }
      /* the frame's 3px is the border; the content sits 2px under the title bar. A folder's body (its Desktop Manager) is
         the period's sunken well: four 1px lines, dark above and left, light below and right */
      & > .window-body {
        margin: 2px 0 0;
        padding: 6px;
      }
      & > .window-body[data-flush] {
        padding: 0;
      }
      & > .window-body[data-flush]:has(> :is(.desktop-manager, ul, ol)) {
        padding: 2px;
        background: #fff;
        box-shadow: var(--_sunken);
      }
      & > .window-toolbar {
        min-height: 20px;
        border: 0;
        background: #c0c0c0;
      }
      & > .window-statusbar {
        margin-top: 2px;
        border: 0;
        background: #c0c0c0;
        color: #000;
        box-shadow:
          inset 1px 1px #808080,
          inset -1px -1px #fff;
      }
      &:not([data-active]) > .window-titlebar {
        background: var(--_title-off);
        color: #c0c0c0;
      }
    }

    /* the bar, the Start Button, the window buttons and the tray */
    & .taskbar {
      --taskbar-size: 28px;
      gap: 3px;
      padding: 2px;
      border: 0;
      background: #c0c0c0;
      color: #000;
      font-size: 11px;
      backdrop-filter: none;
      box-shadow:
        inset 0 1px #dfdfdf,
        inset 0 2px #fff;
    }
    & .start-button {
      height: 22px;
      min-width: 0;
      gap: 3px;
      padding-inline: 3px 5px;
      border-radius: 0;
      background: #c0c0c0;
      color: #000;
      font-size: 11px;
      font-weight: 700;
      box-shadow: var(--_raised);
      &:hover {
        background: #c0c0c0;
      }
      &[aria-expanded="true"] {
        background: #c0c0c0;
        color: #000;
        box-shadow: var(--_pressed);
        outline: 1px dotted #000;
        outline-offset: -4px;
      }
      & > :is(svg, img, .start-button-icon) {
        width: 16px;
        height: 16px;
      }
    }
    & :is(.taskbar-window, .taskbar-launcher) {
      height: 22px;
      min-width: 22px;
      padding-inline: 3px;
      border-radius: 0;
      background: #c0c0c0;
      color: #000;
      box-shadow: var(--_raised);
      &:hover {
        background: #c0c0c0;
      }
      & svg,
      & img,
      & .desktop-glyph {
        width: 16px;
        height: 16px;
      }
    }
    & .taskbar-window {
      flex-basis: 160px;
      max-width: 160px;
      &::after {
        display: none;
      }
      &[aria-pressed="true"] {
        color: #000;
        font-weight: 700;
        background: repeating-conic-gradient(#c0c0c0 0 25%, #fff 0 50%) 0 0 / 2px 2px;
        box-shadow: var(--_pressed);
      }
      &[data-minimized] {
        opacity: 1;
      }
    }
    & .tray {
      height: 22px;
      gap: 2px;
      padding-inline: 4px 8px;
      box-shadow:
        inset -1px -1px #fff,
        inset 1px 1px #808080;
    }
    & .tray-item {
      width: 18px;
      height: 18px;
      border-radius: 0;
      &:hover {
        background: none;
      }
      & svg,
      & img {
        width: 16px;
        height: 16px;
      }
      &[data-badge]::after {
        border-radius: 0;
        background: #800000;
      }
    }
    & .tray-clock {
      padding-inline: 4px 0;
      font-size: 11px;
    }
    & .tray-show-desktop {
      display: none;
    }

    /* the start menu: a raised panel with the brand strip up its side */
    & .start-menu {
      width: auto;
      min-width: 200px;
      max-width: 280px;
      gap: 0;
      padding: 3px 3px 3px 28px;
      border: 0;
      border-radius: 0;
      background: #c0c0c0;
      color: #000;
      font-size: 11px;
      box-shadow: var(--_frame);
      overflow: visible;
    }
    & .start-menu-head {
      position: absolute;
      inset: 3px auto 3px 3px;
      width: 22px;
      padding-block: 6px;
      justify-content: flex-start;
      writing-mode: vertical-rl;
      rotate: 180deg;
      background: #808080;
      color: #c0c0c0;
      font-size: 18px;
      font-weight: 700;
      letter-spacing: 0.04em;
      & .avatar {
        display: none;
      }
    }
    & :is(.start-menu-search, .start-menu-heading) {
      display: none;
    }
    & .start-menu-pinned {
      display: flex;
      flex-direction: column;
      padding-block-end: 3px;
      margin-block-end: 3px;
      border-block-end: 1px solid #808080;
      box-shadow: 0 1px #fff;
      & .start-menu-item {
        flex-direction: row;
        gap: 8px;
        padding-block: 4px;
        text-align: start;
        font-size: 11px;
      }
      & .start-menu-icon {
        width: 24px;
        height: 24px;
      }
    }
    & .start-menu-item {
      gap: 8px;
      padding: 4px 18px 4px 4px;
      border-radius: 0;
      font-size: 11px;
      &:is(:hover, :focus-visible, [aria-expanded="true"]) {
        background: #000080;
        color: #fff;
        outline: none;
      }
      &[aria-haspopup]::after {
        width: 0;
        height: 0;
        border: 4px solid transparent;
        border-inline-start-color: currentColor;
        border-inline-end: 0;
        rotate: none;
      }
    }
    & .start-menu-list .start-menu-icon {
      width: 24px;
      height: 24px;
    }
    & .start-menu-sub {
      min-width: 160px;
      padding: 3px;
      border: 0;
      border-radius: 0;
      background: #c0c0c0;
      color: #000;
      font-size: 11px;
      box-shadow: var(--_frame);
      & .start-menu-item {
        padding-block: 2px;
      }
      & .start-menu-icon {
        width: 16px;
        height: 16px;
      }
    }
    & .start-menu-foot {
      flex-direction: column;
      align-items: stretch;
      gap: 0;
      padding-block-start: 3px;
      border-block-start: 1px solid #808080;
      box-shadow: inset 0 1px #fff;
      & .start-menu-item {
        width: 100%;
        margin: 0;
      }
    }

    /* the icons: white labels on the wallpaper, the selection in navy */
    & .desktop-icon {
      border-radius: 0;
      &:hover {
        background: none;
      }
      &[aria-selected="true"] {
        background: none;
        border-color: transparent;
        & .desktop-icon-label {
          background: #000080;
          color: #fff;
        }
        & .desktop-icon-image {
          filter: brightness(0.6) sepia(1) hue-rotate(190deg) saturate(5);
        }
      }
      &:focus-visible {
        border-color: transparent;
        & .desktop-icon-label {
          outline: 1px dotted #fff;
        }
      }
    }
    & .desktop-icon-label {
      padding-inline: 2px;
      font-size: 11px;
    }
    & .desktop-manager[data-on-wallpaper] .desktop-icon-label {
      text-shadow: none;
    }
    & .desktop-manager-band {
      border: 1px dotted #fff;
      background: none;
    }

    /* the controls a window's content uses */
    & .btn {
      min-height: 23px;
      min-width: 75px;
      padding: 0 12px;
      border: 0;
      border-radius: 0;
      background: #c0c0c0;
      color: #000;
      font: inherit;
      font-size: 11px;
      box-shadow: var(--_raised);
      &:hover {
        background: #c0c0c0;
      }
      &:active {
        box-shadow: var(--_pressed);
      }
      &:focus-visible {
        outline: 1px dotted #000;
        outline-offset: -4px;
      }
      &:is([data-variant~="ghost"], [data-variant~="link"]) {
        min-width: 0;
        min-height: 18px;
        padding: 0 6px;
        background: none;
        box-shadow: none;
        &:hover {
          box-shadow:
            inset -1px -1px #808080,
            inset 1px 1px #fff;
        }
      }
    }
    & :is(.input, .textarea, .select, select, input[type="text"], input[type="search"], input[type="password"]) {
      border: 0;
      border-radius: 0;
      background: #fff;
      color: #000;
      font: inherit;
      font-size: 11px;
      box-shadow: var(--_sunken);
    }
    & :is(.input, .select) {
      height: 21px;
      padding: 2px 4px;
    }

    /* the logon: a small welcome dialog on the wallpaper */
    & .logon {
      place-items: center;
      grid-template-rows: 1fr auto;
      color: #000;
      font-size: 11px;
    }
    & .logon-main {
      flex-direction: column;
      align-items: stretch;
      gap: 8px;
      width: min(320px, 92%);
      padding: 3px 3px 12px;
      background: #c0c0c0;
      box-shadow: var(--_frame);
      & > :not(.logon-brand) {
        margin-inline: 10px;
      }
    }
    & .logon-brand {
      padding: 2px 4px;
      background: var(--_title);
      color: #fff;
      text-align: start;
      & > :not(strong) {
        display: none;
      }
    }
    & .logon-users {
      flex-direction: column;
      gap: 0;
      padding: 2px;
      background: #fff;
      box-shadow: var(--_sunken);
    }
    & .logon-user {
      flex-direction: row;
      gap: 6px;
      min-width: 0;
      width: 100%;
      padding: 2px 4px;
      border: 0;
      border-radius: 0;
      & .avatar {
        width: 20px;
        height: 20px;
        font-size: 9px;
      }
      &:hover {
        background: none;
        color: #000;
      }
      &[aria-pressed="true"] {
        background: #000080;
        color: #fff;
      }
    }
    & .logon-name {
      font-weight: 400;
    }
    & .logon-form {
      width: auto;
    }
    & .logon-power {
      align-self: end;
      & .btn {
        min-width: 0;
      }
    }
  }
  .desktop[data-variant="win98"] {
    --_title: linear-gradient(90deg, #000080, #1084d0);
    --_title-off: linear-gradient(90deg, #808080, #b5b5b5);
    & .start-menu-head {
      background: linear-gradient(0deg, #000080, #1084d0);
      color: #fff;
    }
  }

  /* -- XP: the blue bars, the green start, beige windows --------------- */
  .desktop[data-variant="winxp"] {
    --background: #fff;
    --foreground: #000;
    --card: #ece9d8;
    --card-foreground: #000;
    --popover: #fff;
    --popover-foreground: #000;
    --primary: #316ac5;
    --primary-foreground: #fff;
    --secondary: #ece9d8;
    --secondary-foreground: #000;
    --muted: #ece9d8;
    --muted-foreground: #5a5a5a;
    --accent: #316ac5;
    --accent-foreground: #fff;
    --destructive: #c42b1c;
    --destructive-foreground: #fff;
    --border: #aca899;
    --input: #7f9db9;
    --ring: #316ac5;
    --radius: 3px;
    --font-sans: Tahoma, Verdana, "Segoe UI", sans-serif;
    --desktop-wallpaper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 1000' preserveAspectRatio='xMidYMid slice'%3E %3Cdefs%3E %3ClinearGradient id='s' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%231d5fcf'/%3E%3Cstop offset='.55' stop-color='%235c9ae8'/%3E%3Cstop offset='1' stop-color='%23b9dbf7'/%3E%3C/linearGradient%3E %3ClinearGradient id='h' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%237cc63b'/%3E%3Cstop offset='.4' stop-color='%234c9a1e'/%3E%3Cstop offset='1' stop-color='%232f6e10'/%3E%3C/linearGradient%3E %3ClinearGradient id='b' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%235aa82a'/%3E%3Cstop offset='1' stop-color='%232a5f0c'/%3E%3C/linearGradient%3E %3Cfilter id='c' x='-20%' y='-50%' width='140%' height='200%'%3E%3CfeGaussianBlur stdDeviation='18'/%3E%3C/filter%3E %3C/defs%3E %3Crect width='1600' height='1000' fill='url(%23s)'/%3E %3Cg fill='%23fff' filter='url(%23c)' opacity='.85'%3E %3Cellipse cx='330' cy='220' rx='210' ry='48'/%3E%3Cellipse cx='460' cy='190' rx='150' ry='55'/%3E %3Cellipse cx='1080' cy='160' rx='240' ry='45'/%3E%3Cellipse cx='1230' cy='190' rx='160' ry='40'/%3E %3Cellipse cx='780' cy='330' rx='190' ry='30' opacity='.7'/%3E%3Cellipse cx='1420' cy='360' rx='170' ry='26' opacity='.6'/%3E %3C/g%3E %3Cpath d='M0 760 C 260 610 560 600 860 640 C 1120 675 1350 620 1600 560 L1600 1000 L0 1000 Z' fill='url(%23b)'/%3E %3Cpath d='M-40 820 C 300 640 720 610 1080 700 C 1300 755 1460 760 1640 720 L1640 1000 L-40 1000 Z' fill='url(%23h)'/%3E %3Cpath d='M120 800 C 420 690 760 680 1060 735' fill='none' stroke='%23b6ec7c' stroke-width='6' opacity='.35'/%3E %3C/svg%3E");
    --_bar: linear-gradient(
      180deg,
      #1f2f86 0,
      #3165c4 3%,
      #3682e5 6%,
      #4490e6 10%,
      #3883e5 12%,
      #2b71e0 15%,
      #2663da 18%,
      #235bd6 20%,
      #2258d5 23%,
      #2157d6 38%,
      #245ddb 54%,
      #2562df 86%,
      #245fdc 89%,
      #2158d4 92%,
      #1d4ec0 95%,
      #1941a5 98%
    );
    --_title: linear-gradient(
      180deg,
      #0997ff,
      #0053ee 8%,
      #0050ee 40%,
      #06f 88%,
      #06f 93%,
      #005bff 95%,
      #003dd7 96%,
      #003dd7
    );
    font-size: 11px;
    line-height: 1.35;
    color: #000;

    & .window {
      --_titlebar: 28px;
      padding: 0 3px 3px;
      border: 0;
      border-radius: 8px 8px 0 0;
      background: #ece9d8;
      color: #000;
      font-size: 11px;
      box-shadow:
        inset -1px -1px #00138c,
        inset 1px 1px #0831d9,
        inset -2px -2px #001ea0,
        inset 2px 2px #166aee,
        inset -3px -3px #003bda,
        inset 3px 3px #0855dd,
        2px 2px 8px rgb(0 0 0 / 0.35);
      & > .window-titlebar {
        height: 28px;
        margin-inline: -3px;
        gap: 4px;
        padding-inline: 6px 5px;
        border: 0;
        border-radius: 8px 7px 0 0;
        background: var(--_title);
        color: #fff;
      }
      & .window-icon {
        width: 16px;
        height: 16px;
        color: #fff;
      }
      & .window-title {
        font:
          700 13px/1 "Trebuchet MS",
          Tahoma,
          sans-serif;
        text-shadow: 1px 1px #0f1089;
      }
      & .window-controls {
        align-self: center;
        gap: 2px;
      }
      & .window-controls > button {
        width: 21px;
        height: 21px;
        border: 1px solid #fff;
        border-radius: 3px;
        background: linear-gradient(180deg, #5b9aff, #2565e8 45%, #1b5fe0 55%, #3c86ff);
        color: #fff;
        box-shadow: inset -1px -1px 1px #1a4fd2;
        &:hover {
          background: linear-gradient(180deg, #82b4ff, #3c7ef2 45%, #2f73ef 55%, #64a2ff);
        }
        &:active {
          background: linear-gradient(180deg, #2a5fd0, #1c4fbf 50%, #3f7be0);
        }
        &::before,
        &::after {
          translate: -50% -50%;
        }
      }
      & .window-controls > .window-close {
        background: linear-gradient(180deg, #f1a283, #e2643a 45%, #d4512a 55%, #e67752);
        &:hover {
          background: linear-gradient(180deg, #ffbba3, #f07a52 45%, #e46440 55%, #f28c69);
          color: #fff;
        }
      }
      & .window-minimize::before {
        width: 8px;
        height: 3px;
        translate: -60% 3px;
      }
      & .window-maximize::before {
        width: 10px;
        height: 10px;
        border-width: 1px;
        border-top-width: 3px;
        border-radius: 0;
      }
      & .window-close::before,
      & .window-close::after {
        width: 11px;
        height: 2px;
      }
      &[data-maximized] .window-maximize::after {
        background: #2565e8;
        border-top-width: 2px;
      }
      & > .window-body {
        padding: 8px;
      }
      /* a flush body runs to the frame; a folder's content or a list is white there, as in the period's Explorer -
         no beige band around it */
      & > .window-body[data-flush] {
        padding: 0;
      }
      & > .window-body[data-flush]:has(> :is(.desktop-manager, ul, ol)) {
        background: #fff;
      }
      & > .window-toolbar {
        border-bottom: 1px solid #d8d2bd;
        background: #ece9d8;
      }
      & > .window-statusbar {
        border-top: 1px solid #d8d2bd;
        background: #ece9d8;
        color: #000;
      }
      &:not([data-active]) {
        box-shadow:
          inset -1px -1px #7a8fd4,
          inset 1px 1px #8fa4e0,
          inset -2px -2px #7c96dc,
          inset 2px 2px #a6b8ea,
          inset -3px -3px #839ce0,
          inset 3px 3px #98aee6;
        & > .window-titlebar {
          background: linear-gradient(
            180deg,
            #7697e7,
            #7e9ee3 3%,
            #94afe8 6%,
            #97b4e9 8%,
            #82a5e4 14%,
            #7c9fe2 17%,
            #7996de 25%,
            #7b99e1 56%,
            #82a9e9 81%,
            #80a5e7 89%,
            #7b96e1 94%,
            #7a93df 97%,
            #abbae3
          );
          color: #d8e4f8;
        }
        & .window-title {
          text-shadow: none;
        }
        & .window-controls > button {
          opacity: 0.6;
        }
      }
      &[data-maximized] {
        border-radius: 0;
        & > .window-titlebar {
          border-radius: 0;
        }
      }
    }

    & .taskbar {
      --taskbar-size: 30px;
      gap: 4px;
      padding: 0;
      border: 0;
      background: var(--_bar);
      color: #fff;
      font-size: 11px;
      backdrop-filter: none;
    }
    & .start-button {
      align-self: stretch;
      height: auto;
      min-width: 0;
      gap: 5px;
      padding-inline: 8px 22px;
      margin-inline-end: 8px;
      border-radius: 0 12px 12px 0;
      background: linear-gradient(
        180deg,
        #3c8f3c,
        #3c9a3c 5%,
        #59b64a 12%,
        #5ab348 35%,
        #4ba145 70%,
        #3a8d33 90%,
        #2f7a2b
      );
      color: #fff;
      font:
        italic 700 18px/1 "Trebuchet MS",
        Tahoma,
        sans-serif;
      text-transform: lowercase;
      text-shadow: 1px 1px 2px #1a4a1a;
      box-shadow:
        inset 0 1px 1px #8fe08a,
        inset -2px 0 3px #2a6a26,
        3px 0 6px rgb(0 0 0 / 0.35);
      &:hover {
        background: linear-gradient(
          180deg,
          #48a248,
          #4aad4a 5%,
          #6ac85a 12%,
          #6bc458 35%,
          #5bb354 70%,
          #48a040 90%,
          #3a8a35
        );
      }
      &[aria-expanded="true"] {
        background: linear-gradient(180deg, #2c6e2c, #2f7a2f 10%, #3f9238 40%, #3a8a33 80%, #2a6a26);
        color: #fff;
      }
      & > :is(svg, img, .start-button-icon) {
        width: 20px;
        height: 20px;
        filter: drop-shadow(1px 1px 1px rgb(0 0 0 / 0.5));
      }
    }
    & :is(.taskbar-window, .taskbar-launcher) {
      height: 24px;
      color: #fff;
      border-radius: 3px;
      & svg,
      & img,
      & .desktop-glyph {
        width: 16px;
        height: 16px;
      }
      &:hover {
        background: rgb(255 255 255 / 0.15);
      }
    }
    & .taskbar-window {
      flex-basis: 160px;
      max-width: 160px;
      border: 1px solid #1a4fca;
      background: linear-gradient(180deg, #3c81f3, #3d84f6 10%, #3a7ff2 90%, #2e6fe3);
      box-shadow: inset 0 1px #6aa3ff;
      &::after {
        display: none;
      }
      &:hover {
        background: linear-gradient(180deg, #53a0ff, #5398ff 10%, #4b90fb 90%, #3c80f0);
      }
      &[aria-pressed="true"] {
        background: #1e52b7;
        color: #fff;
        box-shadow:
          inset 1px 1px 2px #0e3a8a,
          inset -1px -1px #3c74d6;
      }
      &[data-minimized] {
        opacity: 1;
      }
    }
    & .tray {
      align-self: stretch;
      height: auto;
      gap: 2px;
      padding-inline: 10px;
      border-inline-start: 1px solid #1042af;
      background: linear-gradient(
        180deg,
        #0c59b9 1%,
        #139ee9 6%,
        #18b5f2 10%,
        #139beb 14%,
        #1290e8 19%,
        #0d8dea 63%,
        #0d9ff1 81%,
        #0f9eed 88%,
        #119be9 91%,
        #1392e2 94%,
        #137ed7 97%,
        #095bc9
      );
      box-shadow: inset 1px 0 #18bbff;
      color: #fff;
    }
    & .tray-item {
      width: 18px;
      height: 18px;
      color: #fff;
      &:hover {
        background: rgb(255 255 255 / 0.2);
      }
      & svg {
        width: 15px;
        height: 15px;
      }
    }
    & .tray-clock {
      font-size: 11px;
    }
    & .tray-show-desktop {
      display: none;
    }

    /* the start menu: the user on a blue banner, pinned on white, all programs on blue, the power bar */
    & .start-menu {
      width: min(380px, calc(100vw - 1rem));
      max-height: min(480px, 85vh);
      padding: 0;
      gap: 0;
      border: 1px solid #1854c3;
      border-radius: 8px 8px 0 0;
      background: #fff;
      color: #000;
      font-size: 11px;
      box-shadow: 2px 2px 8px rgb(0 0 0 / 0.5);
      grid-template-columns: 1fr 1fr;
      grid-template-areas: "head head" "pinned list" "empty empty" "foot foot";
      &:popover-open {
        display: grid;
      }
    }
    & .start-menu-head {
      grid-area: head;
      gap: 8px;
      padding: 6px 8px;
      border-block-end: 2px solid #f0a838;
      background: linear-gradient(
        180deg,
        #1868ce,
        #0e60cb 12%,
        #0e60cb 20%,
        #1164cf 32%,
        #1667cf 33%,
        #1b6cd3 47%,
        #1e70d9 54%,
        #2476dc 60%,
        #297ae0 65%,
        #3482e3 77%,
        #3786e5 79%,
        #428ee9 90%,
        #4791eb
      );
      color: #fff;
      font:
        700 14px "Trebuchet MS",
        Tahoma,
        sans-serif;
      text-shadow: 1px 1px 1px #0f1089;
      & .avatar {
        width: 42px;
        height: 42px;
        border: 2px solid #fff;
        border-radius: 3px;
      }
    }
    & :is(.start-menu-search, .start-menu-heading) {
      display: none;
    }
    & .start-menu-pinned {
      grid-area: pinned;
      display: flex;
      flex-direction: column;
      padding: 6px 0;
      & .start-menu-item {
        flex-direction: row;
        gap: 6px;
        padding: 4px 8px;
        text-align: start;
        font-size: 11px;
      }
      & .start-menu-icon {
        width: 32px;
        height: 32px;
      }
    }
    & .start-menu-list {
      grid-area: list;
      padding: 6px 0;
      border-inline-start: 1px solid #95bdee;
      background: #d3e5fa;
      color: #00136b;
      & .start-menu-icon {
        width: 22px;
        height: 22px;
      }
    }
    & .start-menu-empty {
      grid-area: empty;
    }
    & .start-menu-item {
      padding: 3px 8px;
      border-radius: 0;
      font-size: 11px;
      &:is(:hover, :focus-visible, [aria-expanded="true"]) {
        background: #316ac5;
        color: #fff;
        outline: none;
      }
      &[aria-haspopup]::after {
        width: 0;
        height: 0;
        border: 4px solid transparent;
        border-inline-start-color: #0e8a0e;
        border-inline-end: 0;
        rotate: none;
      }
    }
    & .start-menu-foot {
      grid-area: foot;
      justify-content: flex-end;
      gap: 6px;
      margin: 0;
      padding: 6px 8px;
      border: 0;
      background: linear-gradient(
        180deg,
        #4282d6,
        #3b85e0 3%,
        #418ae3 5%,
        #418ae3 17%,
        #3c87e2 21%,
        #3786e4 26%,
        #3482e3 29%,
        #2e7ee1 39%,
        #2374df 49%,
        #2072db 57%,
        #196edb 62%,
        #176bd8 72%,
        #1468d5 75%,
        #1165d2 83%,
        #0f61cb 88%
      );
      & .start-menu-item {
        width: auto;
        color: #fff;
        &:first-child {
          margin-inline-end: 0;
        }
        &:is(:hover, :focus-visible) {
          background: rgb(255 255 255 / 0.18);
        }
      }
      & .start-menu-icon {
        width: 22px;
        height: 22px;
      }
    }
    & .start-menu-sub {
      padding: 2px;
      border: 1px solid #8a8a8a;
      border-radius: 0;
      background: #fff;
      color: #000;
      font-size: 11px;
      box-shadow: 2px 2px 4px rgb(0 0 0 / 0.4);
      & .start-menu-icon {
        width: 16px;
        height: 16px;
      }
    }

    & .desktop-icon {
      border-radius: 0;
      &:hover {
        background: none;
      }
      &[aria-selected="true"] {
        background: none;
        border-color: transparent;
        & .desktop-icon-label {
          background: #316ac5;
          color: #fff;
        }
        & .desktop-icon-image {
          filter: brightness(0.75) sepia(1) hue-rotate(185deg) saturate(4);
        }
      }
      &:focus-visible {
        border-color: transparent;
        & .desktop-icon-label {
          outline: 1px dotted #fff;
        }
      }
    }
    & .desktop-icon-label {
      padding-inline: 2px;
      font-size: 11px;
    }
    /* the shadow is the wallpaper's: inside a window a black label on its own black shadow read as bold */
    & .desktop-manager[data-on-wallpaper] .desktop-icon-label {
      text-shadow: 1px 1px 1px #000;
    }
    & .desktop-manager-band {
      border: 1px solid #316ac5;
      background: rgb(49 106 197 / 0.3);
    }

    & .btn {
      min-height: 23px;
      min-width: 75px;
      padding: 0 12px;
      border: 1px solid #003c74;
      border-radius: 3px;
      background: linear-gradient(180deg, #fff, #ecebe6 86%, #d6d0c5);
      color: #000;
      font: inherit;
      font-size: 11px;
      box-shadow: none;
      &:hover {
        box-shadow:
          inset -1px 1px #fff0cf,
          inset 1px 2px #fdd889,
          inset -2px 2px #fbc761,
          inset 2px -2px #e5a01a;
      }
      &:active {
        background: linear-gradient(180deg, #cdcac3, #e3e3db 8%, #e5e5de 94%, #f2f2f1);
      }
      &:focus-visible {
        outline: 1px dotted #000;
        outline-offset: -4px;
      }
    }
    & :is(.input, .textarea, .select, select, input[type="text"], input[type="search"], input[type="password"]) {
      border: 1px solid #7f9db9;
      border-radius: 0;
      background: #fff;
      color: #000;
      font: inherit;
      font-size: 11px;
      box-shadow: none;
    }
    & :is(.input, .select) {
      height: 21px;
      padding: 2px 3px;
    }

    /* the logon: a blue welcome screen, the users right of a divider */
    & .logon {
      grid-template-rows: 4.5rem 1fr 4.5rem;
      padding: 0;
      background:
        linear-gradient(90deg, transparent, #f99736 30%, #f99736 70%, transparent) left calc(100% - 4.5rem) / 100% 2px
          no-repeat,
        linear-gradient(90deg, transparent, rgb(255 255 255 / 0.6) 50%, transparent) left 4.5rem / 100% 1px no-repeat,
        linear-gradient(#00309c, #00309c) top / 100% 4.5rem no-repeat,
        linear-gradient(#00309c, #00309c) bottom / 100% 4.5rem no-repeat,
        radial-gradient(circle at 12% 22%, #8bb0ef, #5a7edc 55%);
      color: #fff;
      font-size: 12px;
      --muted-foreground: #dfe8f8;
    }
    & .logon-main {
      grid-row: 2;
      display: grid;
      grid-template-columns: 1fr 1fr;
      align-items: center;
      gap: 0;
      width: 100%;
    }
    & .logon-brand {
      grid-row: 1 / span 2;
      padding-inline: 2rem;
      border-inline-end: 1px solid;
      border-image: linear-gradient(transparent, rgb(255 255 255 / 0.7), transparent) 1;
      text-align: end;
      & strong {
        font:
          italic 700 2.25rem/1.1 "Trebuchet MS",
          Tahoma,
          sans-serif;
      }
    }
    & .logon-users,
    & .logon-form {
      grid-column: 2;
      padding-inline: 2rem;
    }
    & .logon-users {
      flex-direction: column;
      align-items: stretch;
    }
    & .logon-user {
      flex-direction: row;
      justify-content: flex-start;
      gap: 12px;
      min-width: 0;
      border: 0;
      border-radius: 8px;
      color: #fff;
      & .avatar {
        width: 48px;
        height: 48px;
        border: 2px solid #fff;
        border-radius: 4px;
      }
      &:hover {
        background: none;
        color: #fff;
        & .avatar {
          border-color: #fcd96a;
        }
      }
      &[aria-pressed="true"] {
        background: linear-gradient(90deg, #0d3eaa, transparent);
        color: #fff;
        & .avatar {
          border-color: #fcd96a;
        }
      }
    }
    & .logon-name {
      font-size: 1.1rem;
      font-weight: 400;
    }
    & .logon-error {
      color: #fff2b0;
    }
    & .logon .logon-power {
      grid-row: 3;
      align-self: center;
      justify-content: flex-end;
      padding-inline: 2rem;
      & .btn {
        min-width: 0;
        height: auto;
        padding: 4px 10px 4px 4px;
        border: 1px solid transparent;
        border-radius: 4px;
        background: none;
        color: #fff;
        gap: 10px;
        font-size: 14px;
        text-shadow: 0 1px 1px rgb(0 0 0 / 0.4);
        & svg {
          width: 30px;
          height: 30px;
          padding: 5px;
          border: 1px solid #fff;
          border-radius: 4px;
          background: linear-gradient(180deg, #f08a4b, #d9480f 60%, #c23e0b);
          box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.4);
        }
        /* the ghost hover of 7 / XP (a pale blue gradient) would put white text on white: a dark-blue tint instead */
        &:hover {
          border-color: rgb(255 255 255 / 0.35);
          background: rgb(0 32 110 / 0.45);
          color: #fff;
          & svg {
            background: linear-gradient(180deg, #f9a46c, #e8581c 60%, #d04a12);
          }
        }
        &:focus-visible {
          outline: 1px dotted #fff;
          outline-offset: 1px;
        }
      }
    }
  }

  /* -- 7: glass frames, the orb, a dark glass bar -------------------- */
  .desktop[data-variant="win7"] {
    --background: #fff;
    --foreground: #000;
    --card: #f0f0f0;
    --card-foreground: #000;
    --popover: #f0f0f0;
    --popover-foreground: #000;
    --primary: #3c7fb1;
    --primary-foreground: #fff;
    --secondary: #f0f0f0;
    --secondary-foreground: #000;
    --muted: #f0f0f0;
    --muted-foreground: #555;
    --accent: #dcecfc;
    --accent-foreground: #000;
    --destructive: #c7270c;
    --destructive-foreground: #fff;
    --border: #adadad;
    --input: #abadb3;
    --ring: #3399ff;
    --radius: 3px;
    --font-sans: "Segoe UI", Tahoma, "Helvetica Neue", sans-serif;
    --desktop-wallpaper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 1000' preserveAspectRatio='xMidYMid slice'%3E %3Cdefs%3E %3CradialGradient id='g' cx='.5' cy='.55' r='.75'%3E%3Cstop offset='0' stop-color='%233aa4f0'/%3E%3Cstop offset='.45' stop-color='%231767bd'/%3E%3Cstop offset='1' stop-color='%2306305f'/%3E%3C/radialGradient%3E %3ClinearGradient id='r' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%23fff' stop-opacity='0'/%3E%3Cstop offset='.5' stop-color='%23d8f4ff' stop-opacity='.55'/%3E%3Cstop offset='1' stop-color='%23fff' stop-opacity='0'/%3E%3C/linearGradient%3E %3Cfilter id='b' x='-10%' y='-50%' width='120%' height='200%'%3E%3CfeGaussianBlur stdDeviation='14'/%3E%3C/filter%3E %3Cfilter id='s' x='-10%' y='-50%' width='120%' height='200%'%3E%3CfeGaussianBlur stdDeviation='3'/%3E%3C/filter%3E %3C/defs%3E %3Crect width='1600' height='1000' fill='url(%23g)'/%3E %3Cellipse cx='800' cy='560' rx='520' ry='170' fill='%237fd0ff' opacity='.35' filter='url(%23b)'/%3E %3Cpath d='M-50 700 C 400 520 900 820 1650 470' fill='none' stroke='url(%23r)' stroke-width='60' filter='url(%23b)'/%3E %3Cpath d='M-50 690 C 400 510 900 810 1650 460' fill='none' stroke='url(%23r)' stroke-width='5' filter='url(%23s)'/%3E %3Cpath d='M-50 380 C 500 520 1000 280 1650 420' fill='none' stroke='url(%23r)' stroke-width='40' opacity='.6' filter='url(%23b)'/%3E %3Cpath d='M-50 385 C 500 525 1000 285 1650 425' fill='none' stroke='url(%23r)' stroke-width='3' opacity='.8' filter='url(%23s)'/%3E %3C/svg%3E");
    --_glass:
      linear-gradient(
        118deg,
        transparent 22%,
        rgb(255 255 255 / 0.22) 24%,
        transparent 29%,
        transparent 58%,
        rgb(255 255 255 / 0.16) 61%,
        transparent 66%
      ),
      linear-gradient(180deg, rgb(255 255 255 / 0.5), rgb(255 255 255 / 0.18) 38%, rgb(200 225 250 / 0.3));
    font-size: 12px;
    line-height: 1.4;
    color: #000;

    & .window {
      --_titlebar: 30px;
      padding: 0 7px 7px;
      border: 1px solid rgb(0 0 0 / 0.7);
      border-radius: 7px;
      background: var(--_glass), rgb(96 148 204 / 0.62);
      color: #000;
      font-size: 12px;
      backdrop-filter: blur(10px) saturate(1.2);
      box-shadow:
        inset 0 0 0 1px rgb(255 255 255 / 0.55),
        0 6px 22px rgb(0 0 0 / 0.45);
      & > .window-titlebar {
        height: 30px;
        padding-inline: 2px 0;
        gap: 6px;
        border: 0;
        background: none;
        color: #000;
      }
      & .window-icon {
        width: 16px;
        height: 16px;
        color: #000;
      }
      & .window-title {
        font-size: 12px;
        font-weight: 400;
        text-shadow:
          0 0 8px #fff,
          0 0 8px #fff,
          0 0 4px #fff;
      }
      & .window-controls {
        align-self: flex-start;
        gap: 0;
        margin-block-start: -1px;
      }
      & .window-controls > button {
        width: 26px;
        height: 19px;
        border: 1px solid rgb(0 0 0 / 0.6);
        border-top: 0;
        border-inline-start-width: 0;
        background: linear-gradient(
          180deg,
          rgb(255 255 255 / 0.55),
          rgb(255 255 255 / 0.25) 45%,
          rgb(255 255 255 / 0.05) 50%,
          rgb(255 255 255 / 0.35)
        );
        color: #fff;
        box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.45);
        filter: drop-shadow(0 0 1px rgb(0 0 0 / 0.6));
        &:first-child {
          border-inline-start-width: 1px;
          border-end-start-radius: 5px;
        }
        &:hover {
          background: linear-gradient(180deg, #b6d9ee, #55b1e3 45%, #2c8fd2 50%, #46c9f4);
        }
      }
      & .window-controls > .window-close {
        width: 46px;
        margin: 0;
        border-end-end-radius: 5px;
        background: linear-gradient(180deg, #e8a493, #d55f4a 45%, #c7270c 50%, #d1452f);
        &:hover {
          background: linear-gradient(180deg, #f9a59a, #e86a51 45%, #d1260c 50%, #f25b3b);
          color: #fff;
        }
      }
      & .window-minimize::before {
        width: 9px;
        height: 3px;
        translate: -50% 2px;
      }
      & .window-maximize::before {
        width: 10px;
        height: 8px;
        border-width: 1px;
        border-top-width: 2px;
      }
      & .window-close::before,
      & .window-close::after {
        width: 11px;
        height: 2px;
      }
      &[data-maximized] .window-maximize::after {
        background: #5b9ad6;
      }
      & > .window-body {
        padding: 10px;
        border: 1px solid #888;
        background: #f0f0f0;
        box-shadow: 0 0 0 1px rgb(255 255 255 / 0.7);
      }
      /* a flush body (a browser page) runs to the glass frame - no grey frame, no white ring; a folder (its Desktop
         Manager) or a list is white to it */
      & > .window-body[data-flush] {
        padding: 0;
        border: 0;
        box-shadow: none;
      }
      & > .window-body[data-flush]:has(> :is(.desktop-manager, ul, ol)) {
        padding: 0;
        border: 0;
        background: #fff;
        box-shadow: none;
      }
      & > .window-toolbar {
        border: 1px solid #888;
        border-bottom: 0;
        background: linear-gradient(180deg, #fafcfe, #e3ecf7);
      }
      & > .window-statusbar {
        border: 1px solid #888;
        border-top: 0;
        background: #f0f0f0;
        color: #000;
      }
      &:not([data-active]) {
        background: var(--_glass), rgb(180 198 218 / 0.6);
        box-shadow:
          inset 0 0 0 1px rgb(255 255 255 / 0.45),
          0 3px 10px rgb(0 0 0 / 0.3);
        & .window-title {
          color: #444;
        }
        & .window-controls > button {
          opacity: 0.7;
        }
      }
      &[data-maximized] {
        padding: 0 2px 2px;
        border-radius: 0;
      }
    }

    & .taskbar {
      --taskbar-size: 40px;
      gap: 2px;
      padding: 0 0 0 4px;
      border: 0;
      border-block-start: 1px solid rgb(0 0 0 / 0.6);
      background:
        linear-gradient(180deg, rgb(255 255 255 / 0.24), rgb(255 255 255 / 0.08) 50%, rgb(0 0 0 / 0.08) 51%),
        rgb(22 44 74 / 0.72);
      color: #fff;
      font-size: 12px;
      backdrop-filter: blur(10px) saturate(1.3);
      box-shadow: inset 0 1px rgb(255 255 255 / 0.35);
    }
    & .start-button {
      width: 46px;
      height: 46px;
      min-width: 0;
      margin-block: -6px 0;
      margin-inline: 0 8px;
      padding: 0;
      border: 1px solid rgb(0 0 0 / 0.65);
      border-radius: 50%;
      background:
        radial-gradient(circle at 50% 26%, rgb(255 255 255 / 0.75), rgb(255 255 255 / 0.08) 42%, transparent 44%),
        radial-gradient(circle at 50% 100%, #8ae3ff, #2f86d6 45%, #0f3f86 72%);
      box-shadow:
        inset 0 0 0 1px rgb(255 255 255 / 0.4),
        0 0 6px rgb(0 0 0 / 0.6);
      &:hover,
      &[aria-expanded="true"] {
        background:
          radial-gradient(circle at 50% 26%, rgb(255 255 255 / 0.85), rgb(255 255 255 / 0.12) 42%, transparent 44%),
          radial-gradient(circle at 50% 100%, #b2f0ff, #49a6f0 45%, #1458b0 72%);
        box-shadow:
          inset 0 0 0 1px rgb(255 255 255 / 0.5),
          0 0 14px #7fd3ff;
      }
      & .start-button-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
      }
      & > :is(svg, img, .start-button-icon) {
        width: 26px;
        height: 26px;
        filter: drop-shadow(0 0 2px rgb(255 255 255 / 0.6));
      }
    }
    & :is(.taskbar-window, .taskbar-launcher) {
      flex: none;
      justify-content: center;
      width: 60px;
      max-width: 60px;
      height: 38px;
      padding: 0;
      border: 1px solid transparent;
      border-radius: 3px;
      color: #fff;
      & svg,
      & img,
      & .desktop-glyph {
        width: 26px;
        height: 26px;
      }
      &:hover {
        border-color: rgb(255 255 255 / 0.4);
        background: linear-gradient(
          180deg,
          rgb(255 255 255 / 0.35),
          rgb(255 255 255 / 0.1) 50%,
          rgb(255 255 255 / 0.04) 51%,
          rgb(255 255 255 / 0.18)
        );
      }
    }
    & .taskbar-window {
      border-color: rgb(255 255 255 / 0.25);
      background: linear-gradient(
        180deg,
        rgb(255 255 255 / 0.22),
        rgb(255 255 255 / 0.05) 50%,
        transparent 51%,
        rgb(255 255 255 / 0.08)
      );
      box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.3);
      &::after {
        display: none;
      }
      &[aria-pressed="true"] {
        border-color: rgb(255 255 255 / 0.5);
        background:
          radial-gradient(70% 60% at 50% 100%, rgb(140 200 255 / 0.55), transparent),
          linear-gradient(
            180deg,
            rgb(255 255 255 / 0.35),
            rgb(255 255 255 / 0.12) 50%,
            rgb(255 255 255 / 0.05) 51%,
            rgb(255 255 255 / 0.2)
          );
        color: #fff;
      }
      &[data-minimized] {
        opacity: 1;
      }
    }
    & .taskbar-window-title {
      display: none;
    }
    & .tray {
      align-self: stretch;
      height: auto;
      gap: 2px;
      padding-inline-start: 6px;
      color: #fff;
    }
    & .tray-item {
      width: 22px;
      height: 22px;
      color: #fff;
      &:hover {
        background: rgb(255 255 255 / 0.18);
      }
    }
    & .tray-clock {
      padding-inline: 8px;
      font-size: 12px;
      text-align: center;
    }
    & .tray-show-desktop {
      width: 14px;
      margin-inline-start: 4px;
      border-inline-start: 1px solid rgb(255 255 255 / 0.35);
      background: linear-gradient(180deg, rgb(255 255 255 / 0.3), rgb(255 255 255 / 0.08));
      &:hover,
      &:focus-visible {
        background: linear-gradient(180deg, rgb(255 255 255 / 0.55), rgb(255 255 255 / 0.2));
      }
    }

    /* the start menu: a white panel of programs and the search, a glass column of places and power */
    & .start-menu {
      width: min(400px, calc(100vw - 1rem));
      max-height: min(520px, 85vh);
      padding: 8px;
      gap: 0 8px;
      border: 1px solid rgb(0 0 0 / 0.7);
      border-radius: 7px;
      background: var(--_glass), rgb(70 120 180 / 0.78);
      color: #000;
      font-size: 12px;
      backdrop-filter: blur(10px) saturate(1.3);
      box-shadow:
        inset 0 0 0 1px rgb(255 255 255 / 0.5),
        0 6px 24px rgb(0 0 0 / 0.5);
      grid-template-columns: minmax(0, 1fr) 9.5rem;
      grid-template-rows: auto 1fr auto auto;
      grid-template-areas: "pinned head" "list foot" "empty foot" "search foot";
      &:popover-open {
        display: grid;
      }
    }
    & .start-menu-heading {
      display: none;
    }
    & :is(.start-menu-pinned, .start-menu-list, .start-menu-empty) {
      background: #fff;
    }
    & .start-menu-pinned {
      grid-area: pinned;
      display: flex;
      flex-direction: column;
      padding: 6px 6px 4px;
      border: 1px solid rgb(0 0 0 / 0.45);
      border-bottom: 0;
      border-radius: 4px 4px 0 0;
      & .start-menu-item {
        flex-direction: row;
        gap: 8px;
        padding: 3px 6px;
        text-align: start;
        font-size: 12px;
      }
      & .start-menu-icon {
        width: 32px;
        height: 32px;
      }
    }
    & .start-menu-list {
      grid-area: list;
      padding: 4px 6px;
      border: 1px solid rgb(0 0 0 / 0.45);
      border-block: 0;
      box-shadow: inset 0 1px #dde4ee;
      & .start-menu-icon {
        width: 20px;
        height: 20px;
      }
    }
    & .start-menu-empty {
      grid-area: empty;
      border-inline: 1px solid rgb(0 0 0 / 0.45);
    }
    & .start-menu-search {
      grid-area: search;
      padding: 6px 8px;
      border: 1px solid rgb(0 0 0 / 0.45);
      border-top: 1px solid #dde4ee;
      border-radius: 0 0 4px 4px;
      background: #f0f4f9;
      & input {
        padding: 3px 6px;
        border: 1px solid #a8b9cf;
        border-radius: 2px;
        background: #fff;
        font-style: italic;
      }
    }
    & .start-menu-item {
      border: 1px solid transparent;
      border-radius: 3px;
      color: #000;
      &:is(:hover, :focus-visible, [aria-expanded="true"]) {
        border-color: #7da2ce;
        background: linear-gradient(180deg, #f2f8fd, #dcecfc);
        color: #000;
        outline: none;
      }
    }
    & .start-menu-head {
      grid-area: head;
      flex-direction: column;
      align-items: center;
      gap: 4px;
      padding-block: 2px 8px;
      color: #fff;
      font-size: 13px;
      font-weight: 400;
      text-shadow: 0 0 6px rgb(0 0 0 / 0.8);
      & .avatar {
        width: 56px;
        height: 56px;
        border: 1px solid rgb(255 255 255 / 0.7);
        border-radius: 5px;
        box-shadow:
          0 0 0 3px rgb(255 255 255 / 0.25),
          0 2px 8px rgb(0 0 0 / 0.5);
      }
    }
    & .start-menu-foot {
      grid-area: foot;
      flex-direction: column;
      justify-content: flex-end;
      align-items: stretch;
      gap: 4px;
      margin: 0;
      padding: 0;
      border: 0;
      & .start-menu-item {
        width: 100%;
        color: #fff;
        text-shadow: 0 0 6px rgb(0 0 0 / 0.9);
        &:first-child {
          margin-inline-end: 0;
        }
        &:is(:hover, :focus-visible) {
          border-color: rgb(255 255 255 / 0.45);
          background: linear-gradient(180deg, rgb(255 255 255 / 0.35), rgb(255 255 255 / 0.1));
          color: #fff;
        }
        &:last-child {
          justify-content: center;
          border: 1px solid rgb(0 0 0 / 0.55);
          background: linear-gradient(
            180deg,
            rgb(255 255 255 / 0.32),
            rgb(255 255 255 / 0.12) 50%,
            rgb(0 0 0 / 0.08) 51%,
            rgb(255 255 255 / 0.18)
          );
          box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.35);
          &:is(:hover, :focus-visible) {
            background: linear-gradient(
              180deg,
              rgb(255 255 255 / 0.5),
              rgb(255 255 255 / 0.25) 50%,
              rgb(120 200 255 / 0.25) 51%,
              rgb(150 220 255 / 0.45)
            );
          }
        }
      }
      & .start-menu-icon {
        width: 18px;
        height: 18px;
      }
    }
    & .start-menu-sub {
      padding: 2px;
      border: 1px solid #979797;
      border-radius: 0;
      background: #f0f0f0;
      color: #000;
      font-size: 12px;
      box-shadow: 2px 2px 3px rgb(0 0 0 / 0.4);
      & .start-menu-icon {
        width: 16px;
        height: 16px;
      }
    }

    & .desktop-icon {
      border-radius: 3px;
      &:hover {
        border-color: rgb(255 255 255 / 0.45);
        background: rgb(255 255 255 / 0.15);
      }
      &[aria-selected="true"] {
        border-color: rgb(200 230 255 / 0.75);
        background: rgb(160 200 255 / 0.35);
      }
    }
    & .desktop-icon-label {
      font-size: 12px;
    }
    & .desktop-manager[data-on-wallpaper] .desktop-icon-label {
      text-shadow:
        0 0 4px #000,
        0 1px 2px #000;
    }
    & .desktop-manager-band {
      border: 1px solid #3399ff;
      background: rgb(51 153 255 / 0.25);
    }

    & .btn {
      min-height: 23px;
      min-width: 75px;
      padding: 0 12px;
      border: 1px solid #707070;
      border-radius: 3px;
      background: linear-gradient(180deg, #f2f2f2 45%, #ebebeb 45%, #cfcfcf);
      color: #000;
      font: inherit;
      font-size: 12px;
      box-shadow: inset 0 0 0 1px #fff;
      &:hover {
        border-color: #3c7fb1;
        background: linear-gradient(180deg, #eaf6fd 45%, #bee6fd 45%, #a7d9f5);
      }
      &:active {
        border-color: #2c628b;
        background: linear-gradient(180deg, #e5f4fc, #c4e5f6 30% 50%, #98d1ef 50%, #68b3db);
      }
    }
    & :is(.input, .textarea, .select, select, input[type="text"], input[type="search"], input[type="password"]) {
      border: 1px solid #abadb3;
      border-radius: 2px;
      background: #fff;
      color: #000;
      font: inherit;
      font-size: 12px;
      box-shadow: none;
      &:hover {
        border-color: #3d7bad;
      }
    }

    /* the logon: blue light, the picked user large in the middle, the form under them */
    & .logon {
      background:
        radial-gradient(
          ellipse 45% 55% at 100% 82%,
          rgb(255 255 255 / 0.95),
          rgb(200 240 255 / 0.7) 22%,
          rgb(110 200 245 / 0.35) 50%,
          transparent 80%
        ),
        radial-gradient(ellipse 120% 70% at 20% 0%, #1747a6, transparent 70%),
        linear-gradient(160deg, #1d4fb3, #2a7fd4 55%, #63b8ec);
      color: #fff;
      /* muted text (the brand's line) is light grey on the blue screen, not the windows' dark grey */
      --muted-foreground: #dcdcdc;
    }
    & .logon-main {
      flex-direction: column;
      gap: 1rem;
    }
    & .logon-brand {
      position: absolute;
      inset: auto 0 1.75rem;
      grid-auto-flow: column;
      justify-content: center;
      align-items: end;
      gap: 0.5rem;
      color: #fff;
      font-size: 1.75rem;
      font-weight: 300;
      text-shadow: 0 1px 4px rgb(0 0 0 / 0.35);
      /* a four-pane flag before the name */
      &::before {
        content: "";
        align-self: center;
        inline-size: 30px;
        block-size: 26px;
        background:
          linear-gradient(#f25022, #f25022) 0 0 / 46% 46% no-repeat,
          linear-gradient(#7fba00, #7fba00) 100% 0 / 46% 46% no-repeat,
          linear-gradient(#00a4ef, #00a4ef) 0 100% / 46% 46% no-repeat,
          linear-gradient(#ffb900, #ffb900) 100% 100% / 46% 46% no-repeat;
        transform: skewY(-6deg);
      }
      & strong {
        font-weight: 400;
      }
      /* the name alone, as the original's foot shows it */
      & > :not(strong) {
        display: none;
      }
    }
    & .logon-user {
      border: 0;
      color: #fff;
      font-size: 1.15rem;
      text-shadow: 0 0 6px rgb(0 0 0 / 0.7);
      & .avatar {
        width: 96px;
        height: 96px;
        border: 1px solid rgb(255 255 255 / 0.7);
        border-radius: 6px;
        box-shadow:
          0 0 0 4px rgb(255 255 255 / 0.25),
          0 2px 10px rgb(0 0 0 / 0.5);
      }
      &:hover,
      &[aria-pressed="true"] {
        background: rgb(255 255 255 / 0.12);
        color: #fff;
      }
    }
    & .logon[data-user] .logon-user:not([aria-pressed="true"]) {
      display: none;
    }
    & .logon-for {
      display: none;
    }
    & .logon-form .btn[type="submit"] {
      min-width: 0;
      width: 28px;
      padding: 0;
      border-color: #1b4f8a;
      border-radius: 50%;
      background: linear-gradient(180deg, #8fc8f8, #3a8ee0 50%, #1f6ec6 51%, #4aa3ee);
      color: #fff;
    }
    & .logon-error {
      color: #ffe7a0;
      text-align: center;
    }
    /* .logon raises it over the ghost-button rule of 7 / XP further down (same specificity, later) */
    & .logon .logon-power .btn:not([data-logon-power="shutdown"]) {
      display: none;
    }
    /* one red button: the power icon, a menu arrow beside it */
    & .logon .logon-power .btn {
      gap: 0;
      height: 30px;
      padding: 0 0 0 10px;
      font-size: 0;
      & svg {
        width: 16px;
        height: 16px;
      }
      &::after {
        content: "";
        inline-size: 22px;
        block-size: 100%;
        margin-inline-start: 10px;
        border-inline-start: 1px solid rgb(0 0 0 / 0.35);
        box-shadow: inset 1px 0 rgb(255 255 255 / 0.3);
        background: center / 8px 5px no-repeat
          url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 5'%3E%3Cpath d='M0 5h8L4 0z' fill='white'/%3E%3C/svg%3E");
      }
    }
    & .logon .logon-power .btn {
      min-width: 0;
      border-color: #7a1a0c;
      border-radius: 4px;
      background: linear-gradient(180deg, #f39c88, #d2462c 50%, #b8260c 51%, #dd5638);
      color: #fff;
      text-shadow: 0 1px 1px rgb(0 0 0 / 0.45);
      /* the ghost hover of 7 / XP (a pale blue gradient) would put white text on white */
      &:hover {
        border-color: #8a1e0e;
        background: linear-gradient(180deg, #f8b8a8, #e3583c 50%, #c9341a 51%, #ec6c4c);
        color: #fff;
        box-shadow: 0 0 6px rgb(255 160 130 / 0.7);
      }
      &:active {
        background: linear-gradient(180deg, #d97a66, #b23a22 50%, #961e08 51%, #bf4a30);
      }
    }
  }

  .desktop:is([data-variant="winxp"], [data-variant="win7"]) .btn:is([data-variant~="ghost"], [data-variant~="link"]) {
    min-width: 0;
    padding: 0 6px;
    border-color: transparent;
    background: none;
    box-shadow: none;
    &:hover {
      border-color: #7da2ce;
      background: linear-gradient(180deg, #f2f8fd, #dcecfc);
      box-shadow: none;
    }
  }

  /* the period looks keep the bar's buttons at its start (centring is the modern look's), a menubar inside a window is
     flat, a text field is white, the clock shows the time alone where the bar is one line high */
  /* a window's menubar row is as high as the menubar: the toolbar's own 2.25rem minimum centred it with a gap above */
  .desktop:is([data-variant="winxp"], [data-variant="win7"]) .window > .window-toolbar:has(> .menubar) {
    min-height: 0;
  }
  .desktop[data-variant] {
    & .taskbar[data-align="center"] {
      & > :first-child {
        margin-inline-start: 0;
      }
      & .taskbar-windows {
        flex: 1 1 auto;
        margin-inline-end: 0;
      }
    }
  }
  .desktop:is([data-variant="win95"], [data-variant="win98"]) .start-menu {
    max-height: none;
  }
  .desktop:is([data-variant="win95"], [data-variant="win98"], [data-variant="winxp"]) .tray-clock {
    max-height: 1.3em;
    overflow: hidden;
  }

  /* -- Menus of the period: a window's menubar, its menus, context menus ---------------------------------------
     Sizes after the originals: 9x a 19px bar, 17px items in the system font with a 20px gutter for the check and the
     navy highlight, a bevelled grey menu; XP the same rows on a white menu with the Luna blue; 7 a 22px row with an
     icon gutter, a pale blue rounded highlight. The menus are popovers, but they stay inside the .desktop in the DOM,
     so the look reaches them. */
  /* a window's menus hang from its menu bar (the Menubar's own 0.5rem gap is for a bar on a page): 2px in the modern
     look, flush in the period ones */
  .desktop .window .menubar > .dropdown-content {
    margin-top: 2px;
  }
  .desktop[data-variant] {
    & .window .menubar > .dropdown-content {
      margin-top: 0;
    }
    & .window .window-toolbar:has(> .menubar) {
      padding: 0;
      border: 0;
      background: none;
    }
    & .window .menubar {
      gap: 0;
      min-height: 0;
      padding: 0;
      border: 0;
      border-radius: 0;
      background: none;
      box-shadow: none;
    }
    & .window .menubar-trigger {
      height: auto;
      padding: 2px 7px;
      border: 1px solid transparent;
      border-radius: 0;
      font: inherit;
      font-size: 11px;
      line-height: 15px;
      color: inherit;
    }
    & :is(.dropdown-content, .context-menu) {
      min-width: 0;
      padding: 2px;
      border-radius: 0;
      font-size: 11px;
      transition: none;
      transform: none;
    }
    & :is(.dropdown-item, .context-menu-item) {
      gap: 0;
      min-height: 17px;
      padding: 1px 20px;
      border-radius: 0;
      font-size: 11px;
      line-height: 15px;
      & svg {
        display: none;
      }
    }
    & .dropdown-shortcut {
      margin-inline-start: auto;
      padding-inline-start: 24px;
      font-size: 11px;
      letter-spacing: 0;
      color: inherit;
      opacity: 1;
    }
    & :is(.dropdown-separator, .context-menu-separator) {
      margin: 3px 0;
    }
    /* Notepad: the edit area fills the window under its menu, white in every look */
    & .window .window-body[data-flush] > textarea:only-child {
      display: block;
      inline-size: 100%;
      block-size: 100%;
      min-height: 0;
      margin: 0;
      padding: 2px 4px;
      border: 0;
      border-radius: 0;
      background: #fff;
      color: #000;
      font:
        13px/1.35 "Lucida Console",
        Consolas,
        "Courier New",
        monospace;
      resize: none;
      outline: none;
      box-shadow: none;
    }
  }
  .desktop:is([data-variant="win95"], [data-variant="win98"]) {
    /* the menu row as high as the title bar above it: 1px, then 18px items */
    & .window .menubar {
      padding: 1px 0 0;
    }
    & .window .menubar-trigger {
      padding: 1px 6px;
      line-height: 14px;
      &:is(:hover, :focus-visible) {
        background: none;
        color: inherit;
        outline: none;
      }
    }
    & .window .menubar-trigger:hover {
      box-shadow:
        inset -1px -1px #808080,
        inset 1px 1px #fff;
    }
    & .window .menubar-trigger[aria-expanded="true"] {
      box-shadow:
        inset -1px -1px #fff,
        inset 1px 1px #808080;
      background: none;
      color: inherit;
    }
    & :is(.dropdown-content, .context-menu) {
      border: 0;
      background: #c0c0c0;
      box-shadow: var(--_raised);
      padding: 3px;
    }
    & :is(.dropdown-item, .context-menu-item) {
      color: #000;
      &:is(:hover, [data-highlighted], :focus-visible) {
        background: #000080;
        color: #fff;
      }
      &:disabled {
        color: #808080;
        text-shadow: 1px 1px #fff;
        background: none;
      }
    }
    & :is(.dropdown-separator, .context-menu-separator) {
      height: 0;
      border-top: 1px solid #808080;
      border-bottom: 1px solid #fff;
      background: none;
      margin: 3px 1px;
    }
    & .window .window-body[data-flush] > textarea:only-child {
      box-shadow: var(--_sunken);
      padding: 4px 6px;
      font-family: "Desktop Pixel Sans", "Courier New", monospace;
      font-size: 11px;
    }
    & .window .window-body[data-flush]:has(> textarea:only-child) {
      padding: 0 2px 2px;
    }
    /* the scroll bars of the time: 16px, a bevelled thumb and arrow buttons on the dithered track (Blink / WebKit
       scrollbar parts - an inherited scrollbar-color would switch them off, so it is reset; Firefox keeps its own) */
    scrollbar-color: auto;
    scrollbar-width: auto;
    & ::-webkit-scrollbar {
      width: 16px;
      height: 16px;
    }
    & ::-webkit-scrollbar-track {
      background: repeating-conic-gradient(#fff 0 25%, #c0c0c0 0 50%) 0 0 / 2px 2px;
    }
    /* (two rules: a pseudo-element inside :is() is invalid and drops the rule) */
    & ::-webkit-scrollbar-thumb {
      background-color: #c0c0c0;
      box-shadow: var(--_raised);
    }
    & ::-webkit-scrollbar-button {
      background-color: #c0c0c0;
      box-shadow: var(--_raised);
    }
    & ::-webkit-scrollbar-corner {
      background: #c0c0c0;
    }
    /* the window in front is a pressed button with the light dither, its label bold */
    & .taskbar-window[aria-pressed="true"] {
      background: repeating-conic-gradient(#fff 0 25%, #c0c0c0 0 50%) 0 0 / 2px 2px;
      font-weight: 700;
    }
    /* the start menu: 32px rows with large icons on its first level (as the originals), small ones in its folders */
    & .start-menu > :is(.start-menu-pinned, .start-menu-list, .start-menu-foot) > .start-menu-item {
      min-height: 32px;
      padding-block: 0;
      & .start-menu-icon {
        inline-size: 24px;
        block-size: 24px;
      }
    }
    & .start-menu-sub > .start-menu-item {
      min-height: 20px;
      padding-block: 1px;
      & .start-menu-icon {
        inline-size: 16px;
        block-size: 16px;
      }
    }
  }
  /* 9x scroll bars: one arrow button at each end. Flat rules - Blink drops these parts from a nested selector list.
     Blink makes a scrollbar's buttons only when it lays the scrollbar out: a look switched on a live page needs its
     scrollers laid out again (the Desktop scaffold does it on a look change) */
  .desktop:is([data-variant="win95"], [data-variant="win98"]) ::-webkit-scrollbar-button:vertical:start:decrement,
  .desktop:is([data-variant="win95"], [data-variant="win98"]) ::-webkit-scrollbar-button:vertical:end:increment,
  .desktop:is([data-variant="win95"], [data-variant="win98"]) ::-webkit-scrollbar-button:horizontal:start:decrement,
  .desktop:is([data-variant="win95"], [data-variant="win98"]) ::-webkit-scrollbar-button:horizontal:end:increment {
    display: block;
    width: 16px;
    height: 16px;
    background-repeat: no-repeat;
    background-position: center;
  }
  .desktop:is([data-variant="win95"], [data-variant="win98"]) ::-webkit-scrollbar-button:vertical:start:increment,
  .desktop:is([data-variant="win95"], [data-variant="win98"]) ::-webkit-scrollbar-button:vertical:end:decrement,
  .desktop:is([data-variant="win95"], [data-variant="win98"]) ::-webkit-scrollbar-button:horizontal:start:increment,
  .desktop:is([data-variant="win95"], [data-variant="win98"]) ::-webkit-scrollbar-button:horizontal:end:decrement {
    display: none;
  }
  .desktop:is([data-variant="win95"], [data-variant="win98"]) ::-webkit-scrollbar-button:active {
    box-shadow:
      inset 1px 1px #808080,
      inset -1px -1px #808080;
  }
  .desktop:is([data-variant="win95"], [data-variant="win98"]) ::-webkit-scrollbar-button:vertical:decrement {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Cpath d='M8 5h1v1h1v1h1v1h1v1H4V8h1V7h1V6h1V5z' fill='%23000'/%3E%3C/svg%3E");
  }
  .desktop:is([data-variant="win95"], [data-variant="win98"]) ::-webkit-scrollbar-button:vertical:increment {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Cpath d='M4 6h8v1h-1v1h-1v1H9v1H8v1H7v-1H6V9H5V8H4z' fill='%23000'/%3E%3C/svg%3E");
  }
  .desktop:is([data-variant="win95"], [data-variant="win98"]) ::-webkit-scrollbar-button:horizontal:decrement {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Cpath d='M9 4h1v8H9v-1H8v-1H7V9H6V8h1V7h1V6h1z' fill='%23000'/%3E%3C/svg%3E");
  }
  .desktop:is([data-variant="win95"], [data-variant="win98"]) ::-webkit-scrollbar-button:horizontal:increment {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Cpath d='M6 4h1v1h1v1h1v1h1v1H9v1H8v1H7v1H6z' fill='%23000'/%3E%3C/svg%3E");
  }
  /* -- the drawn scroll bars of the period (the Window Manager's data-scrollbars="virtual") ----------------------
     9x: 16px, bevelled buttons and thumb on the dithered track; XP: 17px, the Luna blue thumb and buttons on a light
     track; 7: 17px, glossy grey parts that light up blue under the pointer. */
  .desktop:is([data-variant="win95"], [data-variant="win98"]) {
    & .window-manager-scrollbars {
      --window-scrollbar-size: 16px;
    }
    & .window-manager-scrollbar-track {
      background: repeating-conic-gradient(#fff 0 25%, #c0c0c0 0 50%) 0 0 / 2px 2px;
    }
    & :is(.window-manager-scrollbar-thumb, .window-manager-scrollbar-button) {
      border: 0;
      border-radius: 0;
      background: #c0c0c0;
      background-clip: border-box;
      color: #000;
      box-shadow: var(--_raised);
    }
    & .window-manager-scrollbar-button {
      width: 16px;
      height: 16px;
      &[data-pressed] {
        box-shadow: inset 0 0 0 1px #808080;
        &::before {
          translate: 1px 1px;
        }
      }
    }
    & .window-manager-scrollbar-corner {
      background: #c0c0c0;
    }
    /* the Notepad's sunken frame is drawn on its text area: the bar sits inside it */
    & .window .window-body[data-flush] > textarea:only-child {
      --window-scrollbar-inset: 2px;
    }
  }
  .desktop[data-variant="winxp"] {
    & .window-manager-scrollbars {
      --window-scrollbar-size: 17px;
    }
    & .window-manager-scrollbar-track {
      background: linear-gradient(90deg, #f3f1ec, #fefefe);
      [data-axis="x"] > & {
        background: linear-gradient(#f3f1ec, #fefefe);
      }
    }
    & :is(.window-manager-scrollbar-thumb, .window-manager-scrollbar-button) {
      border: 1px solid #fff;
      border-radius: 3px;
      background: linear-gradient(90deg, #cad8fc, #b9cdf9 50%, #a9bff6);
      background-clip: border-box;
      color: #4d6185;
      box-shadow: 0 0 0 1px #b6c7f3;
      &:is(:hover, [data-pressed]) {
        background: linear-gradient(90deg, #dde7fe, #cfdcfd 50%, #bdcffa);
      }
    }
    & [data-axis="x"] :is(.window-manager-scrollbar-thumb, .window-manager-scrollbar-button) {
      background: linear-gradient(#cad8fc, #b9cdf9 50%, #a9bff6);
      &:is(:hover, [data-pressed]) {
        background: linear-gradient(#dde7fe, #cfdcfd 50%, #bdcffa);
      }
    }
    & .window-manager-scrollbar-button {
      width: 17px;
      height: 17px;
    }
    & .window-manager-scrollbar-corner {
      background: #ece9d8;
    }
  }
  .desktop[data-variant="win7"] {
    & .window-manager-scrollbars {
      --window-scrollbar-size: 17px;
    }
    & .window-manager-scrollbar-track {
      background: linear-gradient(90deg, #e3e3e3, #f5f5f5 30%);
      [data-axis="x"] > & {
        background: linear-gradient(#e3e3e3, #f5f5f5 30%);
      }
    }
    & .window-manager-scrollbar-thumb {
      border: 1px solid #9b9b9b;
      border-radius: 2px;
      background: linear-gradient(90deg, #f5f5f5, #e7e7e7 45%, #d9d9d9 50%, #d0d0d0);
      background-clip: border-box;
      box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.7);
    }
    & [data-axis="x"] .window-manager-scrollbar-thumb {
      background: linear-gradient(#f5f5f5, #e7e7e7 45%, #d9d9d9 50%, #d0d0d0);
    }
    & .window-manager-scrollbar-button {
      width: 17px;
      height: 17px;
      border: 1px solid transparent;
      border-radius: 2px;
      color: #4d4d4d;
    }
    & :is(.window-manager-scrollbar-thumb, .window-manager-scrollbar-button):is(:hover, [data-pressed]) {
      border-color: #3c7fb1;
      background: linear-gradient(90deg, #eaf6fd, #d9f0fc 50%, #bee6fd 51%, #a7d9f5);
      color: #000;
    }
    & .window-manager-scrollbar-corner {
      background: #f0f0f0;
    }
  }
  /* 95: a menubar item is selected in navy, not raised */
  .desktop[data-variant="win95"] .window .menubar-trigger {
    &:hover {
      box-shadow: none;
    }
    &:is([aria-expanded="true"], :focus-visible) {
      box-shadow: none;
      background: #000080;
      color: #fff;
    }
  }
  .desktop[data-variant="winxp"] {
    & .window .menubar {
      padding: 1px 0;
      background: #ece9d8;
      border-bottom: 1px solid #d6d2c2;
    }
    & .window .menubar-trigger:is(:hover, [aria-expanded="true"]) {
      background: #316ac5;
      color: #fff;
    }
    & :is(.dropdown-content, .context-menu) {
      border: 1px solid #aca899;
      background: #fff;
      box-shadow: 2px 2px 3px rgb(0 0 0 / 0.35);
    }
    & :is(.dropdown-item, .context-menu-item) {
      min-height: 19px;
      color: #000;
      &:is(:hover, [data-highlighted], :focus-visible) {
        background: #316ac5;
        color: #fff;
      }
      &:disabled {
        color: #aca899;
        background: none;
      }
    }
    & :is(.dropdown-separator, .context-menu-separator) {
      height: 1px;
      background: #aca899;
      margin: 3px 1px;
    }
    & .window .window-body[data-flush] > textarea:only-child {
      border: 1px solid #7f9db9;
    }
  }
  .desktop[data-variant="win7"] {
    & .window .menubar {
      padding: 1px 2px;
      background: linear-gradient(#fff, #f1f5fb);
      border-bottom: 1px solid #dae2ec;
    }
    & .window .menubar-trigger {
      font-size: 12px;
      padding: 2px 8px;
      border-radius: 3px;
      &:is(:hover, [aria-expanded="true"]) {
        border-color: #a8d8eb;
        background: linear-gradient(#f3fafd, #d9effa);
        color: #000;
      }
    }
    & :is(.dropdown-content, .context-menu) {
      padding: 2px;
      border: 1px solid #979797;
      background:
        linear-gradient(90deg, transparent 27px, #e2e3e3 27px 28px, #fff 28px 29px, transparent 29px), #f0f0f0;
      box-shadow: 3px 3px 3px rgb(0 0 0 / 0.3);
      font-size: 12px;
    }
    & :is(.dropdown-item, .context-menu-item) {
      min-height: 22px;
      padding: 3px 20px 3px 32px;
      border: 1px solid transparent;
      border-radius: 3px;
      font-size: 12px;
      color: #000;
      &:is(:hover, [data-highlighted], :focus-visible) {
        border-color: #aecff7;
        background: linear-gradient(#fafbfd, #ebf3fd);
        color: #000;
      }
      &:disabled {
        color: #6d6d6d;
        background: none;
        border-color: transparent;
      }
    }
    & .dropdown-shortcut {
      font-size: 12px;
    }
    & :is(.dropdown-separator, .context-menu-separator) {
      height: 0;
      margin: 3px 1px 3px 30px;
      border-top: 1px solid #e0e0e0;
      border-bottom: 1px solid #fff;
      background: none;
    }
  }
  /* a window's menubar spans the window; an edit area that is the whole body leaves it no padding (9x keeps its 2px
     well, above) */
  .desktop .window .window-toolbar > .menubar {
    flex: 1;
  }
  .desktop .window > .window-body[data-flush]:has(> textarea:only-child) {
    padding: 0;
  }
  .desktop:not([data-variant]) .window {
    & .window-toolbar:has(> .menubar) {
      padding: 0 0.25rem;
    }
    & .window-toolbar > .menubar {
      padding: 0.125rem 0;
      border: 0;
      border-radius: 0;
      background: none;
      box-shadow: none;
    }
  }
  /* modern: the system's own menus, Notepad's edit area under a hairline */
  .desktop:not([data-variant]) .window .window-body[data-flush] > textarea:only-child {
    display: block;
    inline-size: 100%;
    block-size: 100%;
    margin: 0;
    padding: 0.75rem 1rem;
    border: 0;
    border-top: 1px solid var(--border);
    border-radius: 0;
    background: #fff;
    color: #000;
    resize: none;
    box-shadow: none;
    outline: none;
  }

  /* an icon-only item names itself in the classic menus (95 to 7 list every command) */
  .desktop:is([data-variant="win95"], [data-variant="win98"], [data-variant="winxp"], [data-variant="win7"])
    .start-menu-foot
    .start-menu-item:not(:has(.start-menu-label))::before {
    content: attr(aria-label);
    order: 1;
  }

  @media (prefers-reduced-motion: reduce) {
    .desktop .taskbar,
    .desktop .start-menu,
    .desktop .window {
      backdrop-filter: none;
      transition: none;
    }
  }

  @media (forced-colors: active) {
    .desktop .window,
    .desktop .start-menu,
    .desktop .taskbar {
      border: 1px solid CanvasText;
    }
    .desktop-glyph {
      forced-color-adjust: none;
    }
  }
}

/* ── components/desktop-manager/desktop-manager.css ── */
/* -- Desktop Manager component ------------------------------------
   A desktop's icon surface: icons fill columns top to bottom, then the next
   column (a dragged icon keeps its cell through grid-area), a selected icon
   is tinted, the rubber band is a translucent box drawn by the runtime.
   Inside a .window-manager it lies under the windows and fills the area. */

@layer components {
  .desktop-manager {
    --desktop-icon-size: 2.5rem;
    --desktop-icon-cell-w: 5.75rem;
    --desktop-icon-cell-h: 5.75rem;
    position: relative;
    box-sizing: border-box;
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(auto-fill, var(--desktop-icon-cell-h));
    grid-auto-columns: var(--desktop-icon-cell-w);
    align-content: start;
    justify-content: start;
    gap: 0.25rem;
    padding: 0.5rem;
    min-height: 12rem;
    overflow: hidden;
    color: var(--foreground);
    font-family: var(--font-sans);
    background: var(--desktop-wallpaper, transparent);
    background-size: cover;
    background-position: center;
    /* the band and icon drags own every pointer on the surface - nothing here scrolls */
    touch-action: none;
    user-select: none;
    outline: none;

    &[data-size="sm"] {
      --desktop-icon-size: 2rem;
      --desktop-icon-cell-w: 4.75rem;
      --desktop-icon-cell-h: 4.75rem;
    }
    &[data-size="lg"] {
      --desktop-icon-size: 3.25rem;
      --desktop-icon-cell-w: 6.75rem;
      --desktop-icon-cell-h: 6.75rem;
    }
  }

  .window-manager > .desktop-manager {
    position: absolute;
    inset: 0;
    z-index: 0;
    min-height: 0;
  }

  .desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.25rem;
    padding: 0.375rem 0.25rem;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    color: inherit;
    text-align: center;
    cursor: default;
    outline: none;

    &:hover {
      background: color-mix(in oklch, var(--accent) 45%, transparent);
    }
    &[aria-selected="true"] {
      background: color-mix(in oklch, var(--primary) 22%, transparent);
      border-color: color-mix(in oklch, var(--primary) 45%, transparent);
    }
    &:focus-visible {
      border-color: var(--ring);
      border-style: dotted;
    }
  }

  .desktop-icon-image {
    display: grid;
    place-items: center;
    width: var(--desktop-icon-size);
    height: var(--desktop-icon-size);
    flex: none;
    pointer-events: none;

    & > :is(svg, img, .desktop-glyph) {
      width: 100%;
      height: 100%;
    }
  }

  .desktop-icon-label {
    max-width: 100%;
    font-size: 0.75rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;

    .desktop-icon[aria-selected="true"]:focus-within &,
    &[contenteditable="true"] {
      -webkit-line-clamp: unset;
    }
    &[contenteditable="true"] {
      padding-inline: 0.125rem;
      background: var(--background);
      color: var(--foreground);
      outline: 1px solid var(--ring);
      user-select: text;
      cursor: text;
    }
  }

  /* on a wallpaper the label reads on any picture */
  .desktop-manager[data-on-wallpaper] .desktop-icon-label {
    color: white;
    text-shadow: 0 1px 2px rgb(0 0 0 / 0.8);
  }
  .desktop-manager[data-on-wallpaper] .desktop-icon[aria-selected="true"] .desktop-icon-label {
    text-shadow: none;
  }

  .desktop-manager-band {
    position: absolute;
    z-index: 1;
    border: 1px solid var(--primary);
    background: color-mix(in oklch, var(--primary) 18%, transparent);
    pointer-events: none;
  }

  .desktop-manager[data-dragging] .desktop-icon[aria-selected="true"] {
    opacity: 0.7;
    z-index: 2;
  }

  @media (prefers-reduced-motion: reduce) {
    .desktop-icon {
      transition: none;
    }
  }

  @media (forced-colors: active) {
    .desktop-icon[aria-selected="true"] {
      background: Highlight;
      color: HighlightText;
    }
    .desktop-manager-band {
      border-color: Highlight;
    }
  }
}

/* ── components/dialog/dialog.css ── */
/* -- Dialog component ------------------------------------------ */

@layer components {
  dialog.dialog {
    border: none;
    border-radius: var(--radius-xl);
    background-color: var(--popover);
    color: var(--popover-foreground);
    padding: 0;
    margin: auto;
    position: fixed;
    inset: 0;
    max-width: 28rem;
    width: calc(100vw - 2rem);
    max-height: calc(100vh - 2rem);
    box-shadow:
      0 25px 80px oklch(0 0 0 / 0.25),
      0 0 0 1px var(--border);
    opacity: 0;
    transform: translateY(-0.5rem) scale(0.98);
    transition:
      opacity 200ms ease,
      transform 200ms ease,
      display 200ms allow-discrete;

    &[open] {
      opacity: 1;
      transform: translateY(0) scale(1);
    }

    /* -- Sizes ------------------------------------------------ */
    &[data-size="sm"] {
      max-width: 24rem;
    }
    &[data-size="md"] {
      max-width: 28rem;
    }
    &[data-size="lg"] {
      max-width: 32rem;
    }
    &[data-size="xl"] {
      max-width: 40rem;
    }
    &[data-size="full"] {
      max-width: calc(100vw - 2rem);
    }

    /* -- Backdrop --------------------------------------------- */
    &::backdrop {
      background: oklch(0 0 0 / 0);
      backdrop-filter: blur(0px);
      transition:
        all 200ms ease,
        display 200ms allow-discrete;
    }

    &[open]::backdrop {
      background: oklch(0 0 0 / 0.45);
      backdrop-filter: blur(3px);
    }
  }

  @starting-style {
    dialog.dialog[open] {
      opacity: 0;
      transform: translateY(-0.5rem) scale(0.98);
    }

    dialog.dialog[open]::backdrop {
      background: oklch(0 0 0 / 0);
      backdrop-filter: blur(0px);
    }
  }

  /* -- Scroll lock ------------------------------------------- */
  /* While the dialog is modal the page behind must stay put - closing
     returns you to exactly the scroll offset you had. `:modal` matches only
     while opened via showModal(); overflow:hidden freezes the viewport
     without losing the scroll position (no JS position:fixed hack), and
     scrollbar-gutter:stable keeps the scrollbar's space reserved so its
     removal can't shift the layout underneath. */
  html:has(dialog.dialog:modal) {
    overflow: hidden;
    scrollbar-gutter: stable;
  }

  /* -- Density ------------------------------------------------
     data-density on the .dialog root scales the content padding
     (0.75 / 1 / 1.25 of the 1.5rem default); comfortable matches the
     unsized default. Width stays governed by data-size - two axes. */
  .dialog:where([data-density="compact"]) .dialog-content {
    padding: 1rem;
  }
  .dialog:where([data-density="comfortable"]) .dialog-content {
    padding: 1.5rem;
  }
  .dialog:where([data-density="spacious"]) .dialog-content {
    padding: 2rem;
  }

  /* -- Content sections ------------------------------------- */
  .dialog-content {
    padding: 1.5rem;
  }
  .dialog-header {
    margin-bottom: 1rem;
  }
  .dialog-title {
    font-size: 1.0625rem;
    font-weight: 600;
    margin: 0 0 0.375rem;
    letter-spacing: -0.01em;
  }
  .dialog-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin: 0;
    line-height: 1.6;
  }
  .dialog-body {
    margin-top: 1rem;
  }
  .dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1.5rem;
  }
}

/* Accessibility: reduced motion removes open/close transitions (REQUIRED
   for all components - AGENTS.md "Accessibility CSS"). */
@media (prefers-reduced-motion: reduce) {
  @layer components {
    dialog.dialog,
    dialog.dialog::backdrop {
      transition: none;
    }
  }
}

/* ── components/dropdown/dropdown.css ── */
/* -- Dropdown component ---------------------------------------- */

@layer components {
  .dropdown-content {
    background-color: var(--popover);
    color: var(--popover-foreground);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 0.25rem;
    min-width: 8rem;
    box-shadow:
      0 4px 16px oklch(0 0 0 / 0.12),
      0 0 0 1px var(--border);

    /* -- Anchor positioning ------------------------------------ */
    position: fixed;
    inset: auto;
    top: anchor(bottom);
    left: anchor(left);
    margin: 0;
    margin-top: 4px;
    /* the preferred edge first; when the menu would leave the viewport it
       flips to the trigger's OTHER edge (flip-inline swaps left: anchor(left)
       <-> right: anchor(right)), above the trigger (flip-block), or both */
    position-try-fallbacks:
      flip-inline,
      flip-block,
      flip-block flip-inline;

    /* data-align="end": the menu's end edge lines up with the trigger's end
       (a split button's chevron, an icon trigger at a row's end) instead of
       hanging out past it - and falls back to start-aligned under the
       trigger when there is no room for that (the fallbacks above) */
    &[data-align="end"] {
      left: auto;
      right: anchor(right);
    }

    /* -- Animation --------------------------------------------- */
    opacity: 0;
    transform: scale(0.96) translateY(-0.25rem);
    /* overlay keeps a closing menu in the top layer until its exit
       animation ends - otherwise a closing SUBMENU drops back into its
       parent menu for 150ms, where the parent's transform makes it the
       containing block: the parent grew scrollbars and resized */
    transition:
      opacity 150ms ease,
      transform 150ms ease,
      overlay 150ms allow-discrete,
      display 150ms allow-discrete;
    /* a menu never scrolls sideways; submenus live in the top layer */
    overflow-x: hidden;

    &:popover-open {
      opacity: 1;
      transform: scale(1) translateY(0);
    }
  }

  @starting-style {
    .dropdown-content:popover-open {
      opacity: 0;
      transform: scale(0.96) translateY(-0.25rem);
    }
  }

  .dropdown-item {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.375rem 0.5rem;
    border-radius: calc(var(--radius) * 0.6);
    font-size: 0.875rem;
    border: none;
    background: transparent;
    color: var(--foreground);
    cursor: pointer;
    outline: none;
    text-align: start;
    text-decoration: none;
    font: inherit;
    font-size: 0.875rem;

    &:hover,
    &[data-highlighted] {
      background-color: var(--accent);
      color: var(--accent-foreground);
    }

    &[data-variant="destructive"] {
      &:hover,
      &[data-highlighted] {
        background-color: var(--destructive);
        color: var(--destructive-foreground);
      }
    }

    &:disabled,
    &[aria-disabled="true"] {
      pointer-events: none;
      opacity: 0.5;
    }

    /* data-inset: lines a plain item (or a label) up with the text of
       checkbox / radio items */
    &[data-inset] {
      padding-inline-start: 1.5rem;
    }
    & > svg {
      width: 1rem;
      height: 1rem;
      flex-shrink: 0;
      color: var(--muted-foreground);
    }
    &[data-variant="destructive"] > svg {
      color: currentColor;
    }
  }
  .dropdown-label[data-inset] {
    padding-inline-start: 1.5rem;
  }

  /* -- Submenus ----------------------------------------------------
     <div class="dropdown-sub">
       <button class="dropdown-item dropdown-sub-trigger" role="menuitem">…</button>
       <div class="dropdown-content dropdown-sub-content" role="menu" popover>…</div>
     </div>
     The submenu is a DOM descendant of its menu, so the Popover API keeps
     the parent open while it shows, closes open siblings and light-dismisses
     the whole tree - any depth. It opens beside its trigger (flipping to
     the other side, or up, when there is no room); dropdown.js anchors it. */
  .dropdown-sub {
    display: contents;
  }
  .dropdown-sub-trigger {
    &::after {
      content: "";
      width: 1rem;
      height: 1rem;
      margin-inline-start: auto;
      flex-shrink: 0;
      background-color: currentColor;
      opacity: 0.6;
      mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E")
        center / contain no-repeat;
    }
    &:dir(rtl)::after {
      scale: -1 1;
    }
    /* the shortcut sits before the chevron */
    & .dropdown-shortcut {
      margin-inline-start: auto;
    }
    &:has(.dropdown-shortcut)::after {
      margin-inline-start: 0.5rem;
    }
    &[aria-expanded="true"] {
      background-color: var(--accent);
      color: var(--accent-foreground);
    }
  }
  .dropdown-content.dropdown-sub-content {
    top: anchor(top);
    left: anchor(right);
    margin: 0;
    margin-block-start: calc(-0.25rem - 1px);
    margin-inline-start: 0.125rem;
    position-try-fallbacks:
      flip-inline,
      flip-block,
      flip-block flip-inline;
    transform: scale(0.96) translateX(-0.25rem);

    &:popover-open {
      transform: none;
    }
    &:dir(rtl) {
      left: auto;
      right: anchor(left);
    }
  }
  @starting-style {
    .dropdown-content.dropdown-sub-content:popover-open {
      opacity: 0;
      transform: scale(0.96) translateX(-0.25rem);
    }
  }

  /* -- Checkbox / Radio indicators ----------------------------- */
  .dropdown-check,
  .dropdown-radio {
    padding-inline-start: 1.5rem;
    position: relative;

    &::before {
      content: "";
      position: absolute;
      inset-inline-start: 0.375rem;
      top: 50%;
      transform: translateY(-50%);
      width: 0.875rem;
      height: 0.875rem;
    }
  }

  /* Mask (not background-image): a data: URI SVG resolves currentColor to
     BLACK when used as an image, making the checks invisible in dark mode.
     Masking paints them with background-color: currentColor instead. */
  .dropdown-check[aria-checked="true"]::before,
  .dropdown-radio[aria-checked="true"]::before {
    background-color: currentColor;
  }

  .dropdown-check[aria-checked="true"]::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  }

  .dropdown-radio[aria-checked="true"]::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='black'%3E%3Ccircle cx='12' cy='12' r='4.5'/%3E%3C/svg%3E");
  }

  .dropdown-check[aria-checked="true"]::before,
  .dropdown-radio[aria-checked="true"]::before {
    mask-size: contain;
    mask-repeat: no-repeat;
  }

  .dropdown-separator {
    height: 1px;
    background: var(--border);
    margin: 0.25rem -0.25rem;
  }

  .dropdown-label {
    padding: 0.375rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted-foreground);
  }

  .dropdown-shortcut {
    margin-inline-start: auto;
    font-size: 0.75rem;
    color: var(--muted-foreground);
    letter-spacing: 0.05em;
  }
  /* one highlighted item: a menu that opens under a resting pointer has the item under it hovered and its first item
     highlighted - the highlight (keys and mouse move it) wins, the hovered one stays plain until the pointer moves */
  .dropdown-content:has([data-highlighted]) .dropdown-item:hover:not([data-highlighted], :focus-visible, :disabled) {
    background-color: transparent;
    color: inherit;
  }
  /* on a destructive highlight the shortcut follows the item's foreground
     (muted grey on red was unreadable) */
  .dropdown-item[data-variant="destructive"]:is(:hover, [data-highlighted]) .dropdown-shortcut {
    color: inherit;
    opacity: 0.8;
  }

  /* -- Sizes ----------------------------------------------------
     data-size goes on the .dropdown-content popover; items, labels,
     shortcuts and the check indicators scale together. md == the unsized
     default. The [data-size] compound outranks the single-class item
     rules; it only touches block padding/font so the check/radio inline
     padding (padding-inline-start) keeps working. */
  .dropdown-content[data-size="xs"] {
    & .dropdown-item {
      padding-block: 0.1875rem;
      font-size: 0.75rem;
    }
    & .dropdown-label {
      padding-block: 0.1875rem;
      font-size: 0.6875rem;
    }
    & .dropdown-shortcut {
      font-size: 0.6875rem;
    }
    & :is(.dropdown-check, .dropdown-radio)::before {
      width: 0.75rem;
      height: 0.75rem;
    }
  }
  .dropdown-content[data-size="sm"] {
    & .dropdown-item {
      padding-block: 0.25rem;
      font-size: 0.8125rem;
    }
    & .dropdown-shortcut {
      font-size: 0.75rem;
    }
  }
  .dropdown-content[data-size="md"] {
    & .dropdown-item {
      padding-block: 0.375rem;
      font-size: 0.875rem;
    }
  }
  .dropdown-content[data-size="lg"] {
    & .dropdown-item {
      padding-block: 0.5rem;
      font-size: 1rem;
    }
    & .dropdown-label {
      font-size: 0.8125rem;
    }
    & .dropdown-shortcut {
      font-size: 0.875rem;
    }
  }
  .dropdown-content[data-size="xl"] {
    & .dropdown-item {
      padding-block: 0.625rem;
      font-size: 1.125rem;
    }
    & .dropdown-label {
      font-size: 0.875rem;
    }
    & .dropdown-shortcut {
      font-size: 1rem;
    }
  }

  /* -- Accessibility ------------------------------------------ */

  @media (prefers-reduced-motion: reduce) {
    .dropdown-content {
      transition: none;
    }
    .dropdown-item {
      transition: none;
    }
  }

  @media (forced-colors: active) {
    .dropdown-content {
      border-color: ButtonText;
    }
    .dropdown-item {
      &:hover,
      &[data-highlighted] {
        forced-color-adjust: none;
        background: Highlight;
        color: HighlightText;
      }
    }
  }
}

/* ── components/feature-details/feature-details.css ── */
/* -- Feature Details (marketing) -----------------------------------
   Section header + two large image features split by a rule + a row
   of icon-led benefit cards. Column split only at container width;
   stacked (rule omitted) below it. */

@layer components {
  .mk-features {
    container: mk-features / inline-size;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    width: 100%;
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: 1.25rem;
  }

  .mk-features-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 48rem;
    margin-inline: auto;
    text-align: center;
  }

  .mk-features-eyebrow {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 500;
  }

  .mk-features-title {
    line-height: 1.15;
    margin: 0;
    font-size: 1.875rem;
    font-weight: 500;
    letter-spacing: -0.025em;
    text-wrap: balance;
  }

  .mk-features-desc {
    margin: 0;
    max-width: 42rem;
    color: var(--muted-foreground);
    font-size: 1rem;
    text-wrap: pretty;
  }

  .mk-features-grid {
    display: grid;
    gap: 1.25rem;
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  .mk-feature {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 1.25rem;
    padding-block: 1.25rem;
  }

  .mk-feature-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.375rem;
  }

  .mk-feature-title {
    line-height: 1.15;
    margin: 0;
    font-size: 1.875rem;
    font-weight: 500;
    letter-spacing: -0.025em;
  }

  .mk-feature-desc {
    margin: 0;
    color: var(--muted-foreground);
    font-size: 1.125rem;
    text-wrap: pretty;
  }

  .mk-feature-media {
    position: relative;
    aspect-ratio: 1;
    width: 100%;
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--muted);

    & img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
  }

  /* vertical rule between the two features (source swaps in a horizontal
     separator below md; stacking already provides the visual break) */
  .mk-feature-sep {
    display: none;
    width: 1px;
    align-self: stretch;
    background: var(--border);
  }

  .mk-feature-cards {
    display: grid;
    gap: 1.25rem;
  }

  .mk-feature-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 36rem;
  }

  .mk-feature-card-title {
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 1.125rem;
    font-weight: 500;
    letter-spacing: -0.025em;
    text-wrap: balance;

    & svg {
      width: 1.5rem;
      height: 1.5rem;
      flex-shrink: 0;
    }
  }

  .mk-feature-card-desc {
    margin: 0;
    color: var(--muted-foreground);
    font-size: 1rem;
    text-wrap: pretty;
  }

  @container mk-features (min-width: 30rem) {
    .mk-features-title {
      font-size: 2.25rem;
    }
    .mk-features-grid {
      grid-template-columns: 1fr auto 1fr;
    }
    .mk-feature {
      padding-block: 2.25rem;
    }
    .mk-feature-sep {
      display: block;
    }
    .mk-feature-cards {
      grid-template-columns: 1fr 1fr;
    }
  }

  /* four across only once every title fits on one line next to its icon */
  @container mk-features (min-width: 64rem) {
    .mk-feature-cards {
      grid-template-columns: repeat(4, 1fr);
      gap: 2.25rem;
    }
  }

  /* bento: tiles of different sizes - data-span="wide" (2 columns) /
     "tall" (2 rows); a tile holds an icon, copy and optional media */
  .mk-features-bento {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    grid-auto-flow: dense;
    gap: 1rem;
  }
  .mk-bento-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 11rem;
    padding: 1.5rem;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--card);

    & svg:first-child {
      width: 1.5rem;
      height: 1.5rem;
      color: var(--primary);
    }
    & h3 {
      margin: 0.5rem 0 0;
      font-size: 1.125rem;
      font-weight: 600;
      line-height: 1.3;
    }
    & p {
      margin: 0;
      color: var(--muted-foreground);
      font-size: 0.9375rem;
      line-height: 1.55;
    }
    & img {
      width: calc(100% + 3rem);
      margin: auto -1.5rem -1.5rem;
      aspect-ratio: 16 / 9;
      object-fit: cover;
    }

    &[data-span="wide"] {
      grid-column: span 2;
    }
    &[data-span="tall"] {
      grid-row: span 2;
    }
    &[data-tone="primary"] {
      border-color: transparent;
      background: var(--primary);
      color: var(--primary-foreground);
    }
    &[data-tone="primary"] :is(p, svg:first-child) {
      color: color-mix(in oklch, var(--primary-foreground) 80%, transparent);
    }
  }
  @container mk-features (max-width: 34rem) {
    .mk-bento-tile[data-span="wide"] {
      grid-column: auto;
    }
  }

  /* alternating: zig-zag rows - media and copy swap sides every other row */
  .mk-feature-rows {
    display: grid;
    gap: 4rem;
  }
  .mk-feature-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
    align-items: center;
    gap: 2rem 3rem;

    & .mk-feature-media {
      aspect-ratio: 4 / 3;
      border-radius: var(--radius-xl);
    }
  }
  @container mk-features (min-width: 44rem) {
    .mk-feature-row:nth-child(even) .mk-feature-media {
      order: 2;
    }
  }
  .mk-feature-checks {
    display: grid;
    gap: 0.625rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;

    & li {
      display: flex;
      gap: 0.625rem;
      align-items: flex-start;
    }
    & li::before {
      content: "";
      flex: none;
      width: 1.25rem;
      height: 1.25rem;
      margin-block-start: 0.125rem;
      border-radius: 50%;
      background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
          center / 0.75rem no-repeat,
        var(--primary);
    }
  }

  /* tabs: a Tabs component - the triggers as a feature list, the panel shows it */
  .mk-features-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
    gap: 1.5rem 2.5rem;
    align-items: start;

    & .tab-list {
      flex-direction: column;
      align-items: stretch;
      height: auto;
      gap: 0.25rem;
      padding: 0.375rem;
    }
    & .tab-trigger {
      flex-direction: column;
      align-items: flex-start;
      gap: 0.125rem;
      height: auto;
      padding: 0.875rem 1rem;
      text-align: start;
      white-space: normal;
    }
    & .tab-trigger small {
      color: var(--muted-foreground);
      font-weight: 400;
      font-size: 0.8125rem;
    }
    & .tab-content img {
      display: block;
      width: 100%;
      aspect-ratio: 4 / 3;
      object-fit: cover;
      border-radius: var(--radius-xl);
    }
  }

  /* boxed: the benefit cards on card surfaces with an icon tile */
  .mk-feature-cards[data-variant="boxed"] .mk-feature-card {
    max-width: none;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--card);
    transition:
      border-color 150ms,
      box-shadow 150ms;

    &:hover {
      border-color: color-mix(in oklch, var(--foreground) 25%, var(--border));
      box-shadow: var(--shadow-md);
    }
    & .mk-feature-card-title svg {
      padding: 0.5rem;
      width: 2.25rem;
      height: 2.25rem;
      border-radius: var(--radius-md);
      background: color-mix(in oklch, var(--primary) 10%, transparent);
      color: var(--primary);
      box-sizing: border-box;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .mk-feature-cards[data-variant="boxed"] .mk-feature-card {
      transition: none;
    }
  }

  @media (forced-colors: active) {
    .mk-features-grid {
      border-bottom-color: CanvasText;
    }
    .mk-feature-sep {
      background: CanvasText;
    }
  }
}

/* ── components/hero/hero.css ── */
/* -- Hero (marketing) ---------------------------------------------
   Centered headline + description + CTAs. Copy-only by design - pair it
   with the Product Showcase block for video. Layout switches on container
   width, not viewport - the block renders correctly inside a preview box. */

@layer components {
  .mk-hero {
    container: mk-hero / inline-size;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    width: 100%;
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: 1.25rem;
  }

  .mk-hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 48rem;
    margin-inline: auto;
    text-align: center;
  }

  .mk-hero-badge {
    border: 1px solid var(--border);
    background: var(--background);
    border-radius: 9999px;
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
  }

  .mk-hero-title {
    margin: 0;
    font-size: 2.25rem;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.025em;
    text-wrap: balance;
  }

  .mk-hero-desc {
    margin: 0;
    max-width: 36rem;
    color: var(--muted-foreground);
    font-size: 1.125rem;
    text-wrap: pretty;
  }

  .mk-hero-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }

  /* the section itself is the query container - a container cannot query
     itself, so responsive rules target the copy child (descendant) */
  @container mk-hero (min-width: 30rem) {
    .mk-hero-title {
      font-size: 3.75rem;
    }
    .mk-hero-actions {
      flex-direction: row;
      width: fit-content;
    }
  }

  /* -- variants ------------------------------------------------- */
  /* start-aligned copy (a hero beside a sidebar, a docs landing) */
  .mk-hero[data-align="start"] .mk-hero-copy {
    align-items: flex-start;
    margin-inline: 0;
    text-align: start;
  }

  /* an announcement pill above the title: a link with a chip and an arrow */
  .mk-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 100%;
    padding: 0.25rem 0.75rem 0.25rem 0.25rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: color-mix(in oklch, var(--background) 80%, transparent);
    color: var(--foreground);
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    text-align: start;
    transition: border-color 150ms ease;

    & .badge {
      flex: none;
      border-radius: 999px;
    }
    & svg {
      flex: none;
      width: 0.875rem;
      height: 0.875rem;
      transition: translate 150ms ease;
    }
    &:hover {
      border-color: color-mix(in oklch, var(--foreground) 30%, var(--border));
    }
    &:hover svg {
      translate: 0.125rem 0;
    }
    &:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: 2px;
    }
  }

  /* split: the copy beside a picture or video (auto-fit: stacks when narrow) */
  .mk-hero[data-variant="split"] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
    align-items: center;
    gap: 2.5rem 3rem;

    & .mk-hero-copy {
      align-items: flex-start;
      margin: 0;
      text-align: start;
    }
    & .mk-hero-title {
      font-size: clamp(2.25rem, 5.5cqi, 3.5rem);
    }
  }
  .mk-hero-media {
    position: relative;
    margin: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--muted);

    & :is(img, video) {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }

  /* image: a full-bleed photo behind the copy, a scrim keeps it readable */
  .mk-hero[data-variant="image"] {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 6rem 1.5rem;
    border-radius: var(--radius-xl);
    color: #fff;

    &::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -1;
      background: linear-gradient(to top, oklch(0.15 0.02 260 / 0.85), oklch(0.15 0.02 260 / 0.35));
    }
    & .mk-hero-bg {
      position: absolute;
      inset: 0;
      z-index: -2;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    & .mk-hero-desc {
      color: oklch(1 0 0 / 0.82);
    }
    & .mk-hero-badge {
      border-color: oklch(1 0 0 / 0.3);
      background: oklch(1 0 0 / 0.12);
      color: #fff;
      backdrop-filter: blur(6px);
    }
    & .btn[data-variant="outline"] {
      border-color: oklch(1 0 0 / 0.4);
      background: transparent;
      color: #fff;
    }
  }

  /* glow: a soft brand light over a fading grid; the title fades into the page */
  .mk-hero[data-variant="glow"] {
    position: relative;
    isolation: isolate;
    padding-block: 5rem 3rem;

    &::before,
    &::after {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -1;
      pointer-events: none;
    }
    &::before {
      /* the chart palette, not --primary: a near-black primary would smudge */
      background:
        radial-gradient(28% 40% at 50% 8%, color-mix(in oklch, var(--chart-1) 30%, transparent), transparent),
        radial-gradient(22% 32% at 70% 30%, color-mix(in oklch, var(--chart-2) 26%, transparent), transparent),
        radial-gradient(22% 32% at 30% 34%, color-mix(in oklch, var(--chart-3) 22%, transparent), transparent);
      filter: blur(24px);
    }
    &::after {
      background-image:
        linear-gradient(color-mix(in oklch, var(--foreground) 7%, transparent) 1px, transparent 1px),
        linear-gradient(90deg, color-mix(in oklch, var(--foreground) 7%, transparent) 1px, transparent 1px);
      background-size: 40px 40px;
      mask-image: radial-gradient(60% 55% at 50% 30%, #000, transparent 75%);
    }
    & .mk-hero-title {
      background: linear-gradient(
        180deg,
        var(--foreground) 40%,
        color-mix(in oklch, var(--foreground) 55%, transparent)
      );
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }
  }

  /* signup: an inline email form under the copy */
  .mk-hero-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    max-width: 28rem;

    & .input {
      flex: 1;
      min-width: 0;
    }
  }
  .mk-hero-note {
    margin: 0;
    color: var(--muted-foreground);
    font-size: 0.8125rem;
  }

  /* social proof: an avatar group, stars and a line */
  .mk-hero-proof {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    text-align: start;

    & > div:last-child {
      display: grid;
      gap: 0.125rem;
    }
    & strong {
      color: var(--foreground);
      font-weight: 600;
    }
  }
  .mk-hero-stars {
    display: flex;
    gap: 1px;
    color: oklch(0.78 0.16 75);

    & svg {
      width: 0.875rem;
      height: 0.875rem;
      fill: currentColor;
    }
  }

  /* stage: the product under the copy - a framed screenshot with depth */
  .mk-hero-stage {
    position: relative;
    width: 100%;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--card);
    box-shadow: var(--shadow-2xl);

    & img {
      display: block;
      width: 100%;
      height: auto;
    }
    /* fade the bottom edge into the page */
    &::after {
      content: "";
      position: absolute;
      inset: auto 0 0;
      height: 35%;
      background: linear-gradient(transparent, var(--background));
    }
  }

  @container mk-hero (min-width: 30rem) {
    .mk-hero-form {
      flex-direction: row;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .mk-hero-pill,
    .mk-hero-pill svg {
      transition: none;
    }
    .mk-hero-pill:hover svg {
      translate: none;
    }
  }

  @media (forced-colors: active) {
    .mk-hero[data-variant="glow"] .mk-hero-title {
      background: none;
      color: CanvasText;
    }
    .mk-hero-pill {
      border-color: CanvasText;
    }
  }
}

/* ── components/icon/icon.css ── */
/* -- Icon component ---------------------------------------- */
/* Styling for Lucide CDN icons (<i data-lucide="name">).     */
/* Lucide replaces <i> with <svg>, these styles target that.  */

@layer components {
  [data-lucide] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    vertical-align: middle;
    width: 1rem;
    height: 1rem;
    pointer-events: none;

    /* -- Sizes via data-size --------------------------------- */
    &[data-size="xs"] {
      width: 0.75rem;
      height: 0.75rem;
    }
    &[data-size="sm"] {
      width: 0.875rem;
      height: 0.875rem;
    }
    &[data-size="md"] {
      width: 1.25rem;
      height: 1.25rem;
    }
    &[data-size="lg"] {
      width: 1.5rem;
      height: 1.5rem;
    }
    &[data-size="xl"] {
      width: 2rem;
      height: 2rem;
    }

    /* -- Spin animation ------------------------------------- */
    &[data-animate="spin"] {
      animation: icon-spin 1s linear infinite;
    }
  }

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

  /* ---- Accessibility ---------------------------------------- */

  @media (prefers-reduced-motion: reduce) {
    [data-lucide] {
      animation: none !important;
      transition: none !important;
    }
  }

  @media (prefers-contrast: more) {
    [data-lucide] {
      stroke-width: 2.5;
    }
  }

  @media (forced-colors: active) {
    [data-lucide] {
      color: CanvasText;
    }
  }
}

/* ── components/input/input.css ── */
/* -- Input component ------------------------------------------- */

@layer components {
  .input {
    /* border-box is load-bearing for the shared field ladder: the UA gives
       <input> content-box, so `height` would otherwise exclude the 2px frame
       and render 2px taller than the border-box fields (select, button-based
       triggers). With it, every declared height IS the rendered box.
       The unsized default IS the ladder's md step (2.25rem = 36px) - same
       height, padding and font as [data-size="md"] below, so an unlabeled
       field and an explicit md field are the same control. */
    box-sizing: border-box;
    height: 2.25rem;
    width: 100%;
    border: 1px solid var(--input);
    border-radius: var(--radius-md);
    background: var(--background);
    padding: 0 0.75rem;
    font-size: 0.875rem;
    font-family: var(--font-sans);
    color: var(--foreground);
    outline: none;
    box-shadow: var(--shadow-xs);
    transition:
      border-color 150ms,
      box-shadow 150ms;

    &:focus {
      border-color: var(--ring);
      box-shadow: 0 0 0 2px oklch(from var(--ring) l c h / 0.2);
    }

    &::placeholder {
      color: var(--muted-foreground);
    }

    /* -- Readonly state -------------------------------------- */
    /* :not(:disabled) is load-bearing: a disabled input ALSO matches
       :read-only, and this rule's specificity (class + pseudo + :not attr)
       outranks the plain :disabled below - without the exclusion, disabled
       controls would render with the readonly look (0.7/default). */
    &:read-only:not([type="file"], :disabled) {
      background: var(--muted);
      cursor: default;
      opacity: 0.7;

      &:focus {
        border-color: var(--input);
        box-shadow: var(--shadow-xs);
      }
    }

    /* Disabled = legible but inert: a muted surface and muted text inside
       the full-strength border - never an opacity fade that lets the box
       dissolve into the page. */
    &:disabled {
      background-color: var(--muted);
      color: var(--muted-foreground);
      box-shadow: none;
      cursor: not-allowed;
    }

    /* -- Invalid state --------------------------------------- */
    /* WHEN a field turns red: aria-invalid="true" always (the page decided).
       The browser's own verdict (:user-invalid, i.e. after the user left a
       changed field) only counts inside a <form> - a standalone text box has
       nothing to submit, so a half-typed value is never judged - and inside
       form[data-validate="submit"] only once the page has stamped
       data-submitted on the form (a submit attempt): check when the person
       is finished, not the instant they leave the box. */
    &:is([aria-invalid="true"], :user-invalid:is(form *):not(form[data-validate="submit"]:not([data-submitted]) *)) {
      border-color: var(--destructive);

      &:focus {
        border-color: var(--destructive);
        box-shadow: 0 0 0 2px oklch(from var(--destructive) l c h / 0.2);
      }
    }

    /* -- File input ------------------------------------------ */
    &[type="file"] {
      padding: 0;
      font-size: 0.875rem;

      &::file-selector-button {
        height: 100%;
        border: none;
        border-right: 1px solid var(--input);
        background: var(--muted);
        color: var(--foreground);
        font-size: 0.875rem;
        font-weight: 500;
        font-family: var(--font-sans);
        padding: 0 0.75rem;
        margin-right: 0.75rem;
        cursor: pointer;
        transition: background 150ms;

        &:hover {
          background: var(--accent);
        }
      }
    }

    /* -- Native in-field buttons ------------------------------
       The clear "×" of type="search" and the calendar/clock icon of the
       date/time types are clickable controls INSIDE the text field - without
       this they inherit the field's text cursor and look like more text to
       type into (the file picker's button above already points). */
    &::-webkit-search-cancel-button,
    &::-webkit-calendar-picker-indicator {
      cursor: pointer;
    }

    /* -- Sizes ----------------------------------------------- */
    &[data-size="xs"] {
      height: 1.75rem;
      padding: 0 0.5rem;
      font-size: 0.75rem;
    }
    &[data-size="sm"] {
      height: 2rem;
      padding: 0 0.625rem;
      font-size: 0.8125rem;
    }
    &[data-size="md"] {
      height: 2.25rem;
      padding: 0 0.75rem;
      font-size: 0.875rem;
    }
    &[data-size="lg"] {
      height: 2.75rem;
      padding: 0 1rem;
      font-size: 1rem;
    }
    &[data-size="xl"] {
      height: 3.25rem;
      padding: 0 1.25rem;
      font-size: 1.125rem;
    }
  }

  /* -- Input group: icons, text and buttons inside the field ---
     The GROUP draws the field frame (border, radius, shadow, focus ring,
     invalid / disabled / readonly surfaces); the .input inside goes
     frameless and fills the rest. DOM order is the placement: an addon
     before the .input sits at the start, one after it at the end - so a
     trailing copy / show-password / clear button is just markup after the
     input, and any addon width works without hand-tuned padding. */
  .input-group {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    width: 100%;
    height: 2.25rem;
    border: 1px solid var(--input);
    border-radius: var(--radius-md);
    background: var(--background);
    box-shadow: var(--shadow-xs);
    color: var(--muted-foreground);
    font-size: 0.875rem;
    transition:
      border-color 150ms,
      box-shadow 150ms;

    & > .input {
      flex: 1;
      min-width: 0;
      height: 100%;
      border: none;
      border-radius: inherit;
      background: transparent;
      box-shadow: none;
      font-size: inherit;

      &:focus {
        box-shadow: none;
      }
      &:not(:first-child) {
        padding-inline-start: 0.5rem;
      }
      &:not(:last-child) {
        padding-inline-end: 0.5rem;
      }
    }

    &:has(> .input:focus) {
      border-color: var(--ring);
      box-shadow: 0 0 0 2px oklch(from var(--ring) l c h / 0.2);
    }

    &:has(
      > .input:is(
        [aria-invalid="true"],
        :user-invalid:is(form *):not(form[data-validate="submit"]:not([data-submitted]) *)
      )
    ) {
      border-color: var(--destructive);

      &:has(> .input:focus) {
        box-shadow: 0 0 0 2px oklch(from var(--destructive) l c h / 0.2);
      }
    }

    /* readonly: the group carries the muted surface (the input's own
       readonly background would stop short of the addons) */
    &:has(> .input:read-only:not(:disabled)) {
      background: var(--muted);

      & > .input {
        background: transparent;
      }
      &:has(> .input:focus) {
        border-color: var(--input);
        box-shadow: var(--shadow-xs);
      }
    }

    &:has(> .input:disabled) {
      background: var(--muted);
      box-shadow: none;
      cursor: not-allowed;

      & > .input {
        background: transparent;
      }
    }

    /* decorative icon (inline <svg> or lucide <i>) */
    & > .input-group-icon {
      flex-shrink: 0;
      width: 1rem;
      height: 1rem;
      color: var(--muted-foreground);
      pointer-events: none;

      &:first-child {
        margin-inline-start: 0.75rem;
      }
      &:last-child {
        margin-inline-end: 0.75rem;
      }
    }

    /* static text: a unit, a protocol, a domain */
    & > .input-group-text {
      flex-shrink: 0;
      white-space: nowrap;
      color: var(--muted-foreground);
      user-select: none;

      &:first-child {
        margin-inline-start: 0.75rem;
      }
      &:last-child {
        margin-inline-end: 0.75rem;
      }
    }

    /* an in-field action: copy, show/hide, clear, open a picker */
    & > .input-group-button {
      flex-shrink: 0;
      display: inline-grid;
      place-items: center;
      box-sizing: border-box;
      height: calc(100% - 0.5rem);
      aspect-ratio: 1;
      padding: 0;
      border: none;
      border-radius: var(--radius-sm);
      background: transparent;
      color: var(--muted-foreground);
      cursor: pointer;
      transition:
        background-color 150ms,
        color 150ms;

      & svg {
        width: 1rem;
        height: 1rem;
      }
      /* icon swaps (copy -> check, eye -> eye-off): the UA's [hidden] rule
         only covers HTML elements, so a hidden <svg> needs its own */
      & svg[hidden] {
        display: none;
      }
      &:hover {
        background: var(--accent);
        color: var(--accent-foreground);
      }
      &:focus-visible {
        outline: 2px solid var(--ring);
        outline-offset: 1px;
      }
      &:disabled {
        cursor: not-allowed;
        background: transparent;
        color: var(--muted-foreground);
      }
      &:first-child {
        margin-inline-start: 0.25rem;
      }
      &:last-child {
        margin-inline-end: 0.25rem;
      }
      & + .input-group-button {
        margin-inline-start: 0.125rem;
      }
    }

    /* -- Sizes: the same ladder as .input, set on the group ------ */
    &[data-size="xs"] {
      height: 1.75rem;
      font-size: 0.75rem;
    }
    &[data-size="sm"] {
      height: 2rem;
      font-size: 0.8125rem;
    }
    &[data-size="md"] {
      height: 2.25rem;
      font-size: 0.875rem;
    }
    &[data-size="lg"] {
      height: 2.75rem;
      font-size: 1rem;
    }
    &[data-size="xl"] {
      height: 3.25rem;
      font-size: 1.125rem;
    }
  }

  /* -- Auto-growing textarea --------------------------------- */
  textarea.input {
    field-sizing: content;
    min-height: 5rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  /* -- Field description ------------------------------------- */
  .field-description {
    font-size: 0.8125rem;
    color: var(--muted-foreground);
    margin: 0.375rem 0 0;
  }

  /* -- Field error ------------------------------------------- */
  .field-error {
    font-size: 0.8125rem;
    color: var(--destructive);
    margin: 0.375rem 0 0;
  }

  /* -- Accessibility ---------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .input {
      transition: none;
    }

    .input[type="file"]::file-selector-button {
      transition: none;
    }
  }

  @media (prefers-contrast: more) {
    .input {
      border-width: 2px;
    }

    .input:disabled {
      border-color: var(--muted-foreground);
    }
  }

  @media (forced-colors: active) {
    .input {
      border-color: ButtonBorder;
      color: ButtonText;
      background: Field;
    }

    .input:focus {
      outline: 2px solid Highlight;
      outline-offset: 1px;
    }

    .input:disabled {
      opacity: 1;
      color: GrayText;
      border-color: GrayText;
    }

    .input:is(
      [aria-invalid="true"],
      :user-invalid:is(form *):not(form[data-validate="submit"]:not([data-submitted]) *)
    ) {
      border-color: LinkText;
    }

    .field-error {
      color: LinkText;
    }

    .input-group {
      border-color: ButtonBorder;
      background: Field;

      & > .input:focus {
        outline: none;
      }
      &:has(> .input:focus) {
        outline: 2px solid Highlight;
        outline-offset: 1px;
      }
      &:has(> .input:disabled) {
        border-color: GrayText;
      }
      & > .input-group-button {
        color: ButtonText;
      }
    }
  }
}

/* ── components/label/label.css ── */
/* -- Label component -------------------------------------------- */

@layer components {
  .label {
    font-size: 0.875rem;
    font-weight: 500;
    font-family: var(--font-sans);
    line-height: 1;
    color: var(--foreground);
    display: block;
    margin-bottom: 0.375rem;
    cursor: default;

    /* Required - the adjacent control carries `required`: render the star.
       Pure CSS (no span to remember, nothing to desync); decorative only —
       the native attribute already conveys the requirement to AT. */
    &:has(+ input[required])::after,
    &:has(+ textarea[required])::after {
      content: " \00a0*";
      color: var(--destructive);
      font-weight: 600;
    }

    /* Disabled - explicit attribute */
    &[data-disabled] {
      opacity: 0.7;
      cursor: not-allowed;
    }

    /* Disabled - auto-detect via adjacent disabled control */
    &:has(+ :disabled),
    &:has(+ [data-disabled]) {
      opacity: 0.7;
      cursor: not-allowed;
    }
  }

  /* -- Hint text (optional, required indicators) ----------- */
  .label-hint {
    font-weight: 400;
    font-size: 0.8125rem;
    color: var(--muted-foreground);
  }

  /* -- Accessibility ---------------------------------------- */
  @media (prefers-contrast: more) {
    .label[data-disabled],
    .label:has(+ :disabled),
    .label:has(+ [data-disabled]) {
      opacity: 0.85;
    }
  }

  @media (forced-colors: active) {
    .label {
      color: LinkText;
    }

    .label[data-disabled],
    .label:has(+ :disabled),
    .label:has(+ [data-disabled]) {
      opacity: 1;
      color: GrayText;
    }
  }
}

/* ── components/language-switcher/language-switcher.css ── */
/* -- Language Switcher component -------------------------------------
   The runtime writes a shipped Combobox (a Swap, or radio items for a
   Dropdown Menu) into the element; these
   rules size it to its content and draw the flags. A flag is the language's
   code (::before) under its SVG (::after): a flag that fails to load leaves
   the code readable. Shape, scale and finish are attributes on the root. */

@layer components {
  .language-switcher {
    --language-switcher-flag-height: 1rem;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;

    /* -- Flag scale ----------------------------------------------- */
    &[data-flag-size="xs"] {
      --language-switcher-flag-height: 0.75rem;
    }
    &[data-flag-size="sm"] {
      --language-switcher-flag-height: 0.875rem;
    }
    &[data-flag-size="lg"] {
      --language-switcher-flag-height: 1.25rem;
    }
    &[data-flag-size="xl"] {
      --language-switcher-flag-height: 1.75rem;
    }

    /* -- Flag shapes ---------------------------------------------- */
    &[data-flag-shape="rounded"] .language-switcher-flag {
      border-radius: calc(var(--language-switcher-flag-height) * 0.25);
    }
    &[data-flag-shape="square"] .language-switcher-flag {
      inline-size: var(--language-switcher-flag-height);
    }
    &[data-flag-shape="squircle"] .language-switcher-flag {
      inline-size: var(--language-switcher-flag-height);
      border-radius: 32%;
    }
    &[data-flag-shape="circle"] .language-switcher-flag {
      inline-size: var(--language-switcher-flag-height);
      border-radius: 50%;
    }

    /* -- Flag finishes -------------------------------------------- */
    &[data-flag-style="ring"] .language-switcher-flag {
      outline: 1px solid color-mix(in oklch, var(--foreground) 22%, transparent);
      outline-offset: -1px;
    }
    &[data-flag-style="shadow"] .language-switcher-flag {
      box-shadow:
        0 0 0 1px var(--border),
        var(--shadow-sm);
    }
    &[data-flag-style="glossy"] .language-switcher-flag {
      --language-switcher-gloss: linear-gradient(
        160deg,
        oklch(1 0 0 / 0.55),
        oklch(1 0 0 / 0) 42%,
        oklch(0 0 0 / 0) 58%,
        oklch(0 0 0 / 0.2)
      );
      outline: 1px solid oklch(0 0 0 / 0.12);
      outline-offset: -1px;
    }

    /* the code shown instead of a name (a condensed footer, a toolbar) */
    &[data-display="code"] .language-switcher-label {
      font-family: var(--font-mono);
      font-size: 0.75rem;
      letter-spacing: 0.04em;
    }
  }

  .language-switcher-flag {
    position: relative;
    display: inline-block;
    flex: none;
    inline-size: calc(var(--language-switcher-flag-height) * 4 / 3);
    block-size: var(--language-switcher-flag-height);
    border-radius: 2px;
    overflow: hidden;
    background-color: var(--muted);
    transition: scale 150ms ease;

    &::before {
      content: attr(data-code);
      position: absolute;
      inset: 0;
      display: grid;
      place-items: center;
      font-family: var(--font-mono);
      font-size: calc(var(--language-switcher-flag-height) * 0.5);
      font-weight: 600;
      line-height: 1;
      color: var(--muted-foreground);
    }

    &::after {
      content: "";
      position: absolute;
      inset: 0;
      background-image: var(--language-switcher-gloss, none), var(--language-switcher-flag, none);
      background-position: center;
      background-size: cover;
      background-repeat: no-repeat;
    }

    /* a flag in the dark is a little dimmer, so it does not glare beside the text */
    :where(.dark) &::after {
      filter: brightness(0.92) saturate(0.95);
    }
  }

  .language-switcher-icon {
    flex: none;
    width: 1rem;
    height: 1rem;
  }

  .language-switcher-label {
    white-space: nowrap;
  }

  /* -- The Combobox face ------------------------------------------ */
  .language-switcher-combobox {
    display: inline-block;

    & .combobox-trigger {
      width: auto;
      justify-content: flex-start;
      gap: 0.5rem;
    }

    & .combobox-value {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      flex: none;
      font-weight: 500;
    }

    /* a language is always chosen: no clear button, the chevron stays */
    & .combobox-clear {
      display: none !important;
    }
    &.combobox:has(.combobox-value) .combobox-trigger > .combobox-chevron {
      display: block;
    }

    & .combobox-content {
      width: max-content;
      min-width: max(anchor-size(width), 13rem);
      max-width: min(22rem, calc(100vw - 1rem));
      position-try-fallbacks:
        flip-inline,
        flip-block,
        flip-block flip-inline;
    }

    /* a short list needs no search box; it stays for the keys (arrows, Enter) */
    & .combobox-search[data-quiet] {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      border: 0;
      overflow: hidden;
      clip-path: inset(50%);
      white-space: nowrap;
    }
  }

  /* the list opens toward the start edge where the switcher sits at the end (a header's right side) */
  .language-switcher[data-align="end"] .combobox-content {
    left: auto;
    right: anchor(right);
  }

  .language-switcher-option {
    gap: 0.625rem;

    &[data-highlighted] .language-switcher-flag,
    &:hover .language-switcher-flag {
      scale: 1.08;
    }
  }

  .language-switcher-name {
    white-space: nowrap;
  }

  .language-switcher-alt {
    margin-inline-start: auto;
    padding-inline-start: 1rem;
    font-size: 0.75rem;
    color: var(--muted-foreground);
    white-space: nowrap;

    &[hidden] {
      display: none;
    }
    .language-switcher-option[data-highlighted] &,
    .language-switcher-option:hover & {
      color: inherit;
      opacity: 0.75;
    }
  }

  /* -- The Menu face: radio items in a Dropdown Menu ----------------- */
  .language-switcher[data-variant="menu"] {
    display: block;
  }
  .language-switcher-menu {
    display: contents;
  }
  .language-switcher-item {
    gap: 0.625rem;

    &[data-highlighted] .language-switcher-flag,
    &:hover .language-switcher-flag {
      scale: 1.08;
    }
    & .language-switcher-alt {
      color: var(--muted-foreground);
    }
  }

  /* -- The Swap face ---------------------------------------------- */
  .language-switcher-swap {
    & .swap-on,
    & .swap-off {
      gap: 0.375rem;
      padding-inline: 0.375rem;
    }
    & .language-switcher-label {
      font-weight: 500;
    }
  }

  /* -- Accessibility ---------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .language-switcher-flag {
      transition: none;
    }
    :is(.language-switcher-option, .language-switcher-item) .language-switcher-flag {
      scale: none !important;
    }
  }

  @media (prefers-contrast: more) {
    .language-switcher-flag {
      outline: 1px solid var(--foreground);
      outline-offset: -1px;
    }
    .language-switcher-alt {
      color: var(--foreground);
    }
  }

  @media (forced-colors: active) {
    /* the flag keeps its own colors; a system-color frame marks its edge */
    .language-switcher-flag {
      forced-color-adjust: none;
      outline: 1px solid CanvasText;
      outline-offset: -1px;
    }
  }
}

/* ── components/logon/logon.css ── */
/* -- Logon component ----------------------------------------------
   A full-area sign-in / lock screen: the users as large buttons, the picked
   one's password form beside them, the power buttons in a corner. Inside a
   positioned desktop it covers it (position absolute, inset 0). A look
   restyles it - the screen with a divider and tiles, a centred avatar, a
   small dialog. Signed in, it hides. */

@layer components {
  .logon {
    position: absolute;
    inset: 0;
    z-index: 50;
    box-sizing: border-box;
    display: grid;
    grid-template-rows: 1fr auto;
    padding: 1.5rem;
    background: var(--logon-background, var(--background));
    color: var(--foreground);
    font-family: var(--font-sans);

    &[data-signed-in] {
      display: none;
    }
  }

  .logon-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.5rem 3rem;
    align-self: center;
  }

  .logon-brand {
    display: grid;
    gap: 0.25rem;
    text-align: center;
  }

  .logon-users {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .logon-user {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 7rem;
    padding: 0.75rem;
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    background: none;
    color: inherit;
    font: inherit;
    cursor: pointer;

    & .avatar {
      width: 4rem;
      height: 4rem;
    }
    &:hover {
      background: var(--accent);
      color: var(--accent-foreground);
    }
    &[aria-pressed="true"] {
      border-color: var(--ring);
      background: var(--accent);
      color: var(--accent-foreground);
    }
    &:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: 2px;
    }
  }

  .logon-name {
    font-weight: 600;
  }

  .logon-form {
    display: grid;
    gap: 0.5rem;
    width: min(18rem, 100%);

    &[hidden] {
      display: none;
    }
  }

  .logon-for {
    margin: 0;
    font-weight: 600;
  }

  .logon-field {
    display: flex;
    gap: 0.375rem;
  }

  .logon-error {
    margin: 0;
    color: var(--destructive);
    font-size: 0.875rem;
  }

  .logon-power {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
  }

  @media (forced-colors: active) {
    .logon-user[aria-pressed="true"] {
      outline: 2px solid Highlight;
    }
  }
}

/* ── components/menubar/menubar.css ── */
/* -- Menubar component ----------------------------------------------- */
/* A horizontal bar of menu triggers - File, Edit, View - each opening a
   dropdown menu (dropdown.css / dropdown.js, submenus included). The bar
   is the menubar; menubar.js adds moving between the menus. */

@layer components {
  .menubar {
    display: flex;
    align-items: center;
    gap: 0.125rem;
    width: fit-content;
    max-width: 100%;
    padding: 0.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--background);
    box-shadow: var(--shadow-2xs);

    &[data-variant="ghost"] {
      border-color: transparent;
      box-shadow: none;
      padding: 0;
    }
    &[data-variant="muted"] {
      background: var(--muted);
      border-color: transparent;
      box-shadow: none;
    }

    /* -- Sizes: the triggers scale (the menus keep their own data-size) */
    &[data-size="sm"] .menubar-trigger {
      height: 1.625rem;
      padding-inline: 0.5rem;
      font-size: 0.8125rem;
    }
    &[data-size="lg"] .menubar-trigger {
      height: 2.25rem;
      padding-inline: 0.875rem;
      font-size: 0.9375rem;
    }
  }

  .menubar-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    height: 1.875rem;
    padding-inline: 0.625rem;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--foreground);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: default;
    user-select: none;
    outline: none;

    & svg {
      width: 1rem;
      height: 1rem;
      flex-shrink: 0;
    }
    &:hover,
    &:focus-visible {
      background-color: var(--accent);
      color: var(--accent-foreground);
    }
    &[aria-expanded="true"] {
      background-color: var(--accent);
      color: var(--accent-foreground);
    }
    &:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: 1px;
    }
    &:disabled,
    &[aria-disabled="true"] {
      opacity: 0.5;
      pointer-events: none;
    }
  }

  /* the menus hang just under the bar */
  .menubar > .dropdown-content {
    margin-top: 0.5rem;
  }
  .menubar:dir(rtl) > .dropdown-content:not(.dropdown-sub-content) {
    left: auto;
    right: anchor(right);
  }
}

@media (prefers-contrast: more) {
  @layer components {
    .menubar {
      border-color: var(--foreground);
    }
    .menubar-trigger[aria-expanded="true"] {
      outline: 1px solid var(--foreground);
    }
  }
}

@media (forced-colors: active) {
  @layer components {
    .menubar {
      border-color: CanvasText;
    }
    .menubar-trigger:is(:hover, :focus-visible, [aria-expanded="true"]) {
      forced-color-adjust: none;
      background: Highlight;
      color: HighlightText;
    }
  }
}

/* ── components/navigation-menu/navigation-menu.css ── */
@layer components {
  .nav-menu-list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .nav-menu-link,
  .nav-menu-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    border: none;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--foreground);
    font-size: 0.875rem;
    font-weight: 500;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition:
      background-color 150ms ease,
      color 150ms ease;
    outline: none;
    &:hover {
      background-color: var(--accent);
      color: var(--accent-foreground);
    }
    &:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: 2px;
    }
    & svg {
      width: 0.875rem;
      height: 0.875rem;
      color: var(--muted-foreground);
      transition: transform 200ms ease;
    }
  }

  /* -- Density: set data-density on the .nav-menu nav to scale the gap
     between top-level items (0.5× / 1 / 1.5× of the 0.25rem base);
     comfortable matches the unsized default. Link padding belongs to
     data-size - density is the row rhythm only. */
  .nav-menu:where([data-density="compact"]) .nav-menu-list {
    gap: 0.125rem;
  }
  .nav-menu:where([data-density="comfortable"]) .nav-menu-list {
    gap: 0.25rem;
  }
  .nav-menu:where([data-density="spacious"]) .nav-menu-list {
    gap: 0.375rem;
  }

  /* -- Sizes: set data-size on the .nav-menu nav; every link/trigger and
     the popover's rows scale together. md == the unsized default. */
  .nav-menu[data-size="xs"] {
    & :is(.nav-menu-link, .nav-menu-trigger) {
      padding: 0.25rem 0.5rem;
      font-size: 0.75rem;
    }
    & .nav-menu-content-link {
      padding: 0.25rem 0.5rem;
      font-size: 0.75rem;
    }
  }
  .nav-menu[data-size="sm"] {
    & :is(.nav-menu-link, .nav-menu-trigger) {
      padding: 0.375rem 0.625rem;
      font-size: 0.8125rem;
    }
    & .nav-menu-content-link {
      padding: 0.375rem 0.625rem;
      font-size: 0.8125rem;
    }
  }
  .nav-menu[data-size="md"] {
    & :is(.nav-menu-link, .nav-menu-trigger) {
      padding: 0.5rem 0.75rem;
      font-size: 0.875rem;
    }
  }
  .nav-menu[data-size="lg"] {
    & :is(.nav-menu-link, .nav-menu-trigger) {
      padding: 0.625rem 1rem;
      font-size: 1rem;
    }
    & .nav-menu-content-link {
      padding: 0.625rem 1rem;
      font-size: 1rem;
    }
  }
  .nav-menu[data-size="xl"] {
    & :is(.nav-menu-link, .nav-menu-trigger) {
      padding: 0.75rem 1.25rem;
      font-size: 1.125rem;
    }
    & .nav-menu-content-link {
      padding: 0.75rem 1.25rem;
      font-size: 1.125rem;
    }
  }

  /* Rotate chevron when popover is open */
  .nav-menu-trigger:has(+ .nav-menu-content:popover-open) svg {
    transform: rotate(180deg);
  }

  .nav-menu-content {
    position: fixed;
    inset: auto;
    margin: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background-color: var(--popover);
    color: var(--popover-foreground);
    padding: 1rem;
    box-shadow: var(--shadow-md);
    min-width: 14rem;
    opacity: 0;
    transform: translateY(-4px);
    transition:
      opacity 150ms ease,
      transform 150ms ease,
      display 150ms allow-discrete;

    /* -- Anchor positioning -- */
    top: anchor(bottom);
    left: anchor(left);
    margin-top: 4px;
    position-try-fallbacks: flip-block;

    &:popover-open {
      opacity: 1;
      transform: translateY(0);
    }
  }
  @starting-style {
    .nav-menu-content:popover-open {
      opacity: 0;
      transform: translateY(-4px);
    }
  }
  .nav-menu-content-link {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--foreground);
    font-size: 0.875rem;
    transition: background-color 150ms ease;
    &:hover {
      background-color: var(--accent);
    }
    &:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: 2px;
    }
    & p {
      margin: 0.125rem 0 0;
      font-size: 0.75rem;
      color: var(--muted-foreground);
      font-weight: 400;
    }
  }

  /* -- Megamenu ------------------------------------------------------
     The .nav-menu is an anchor (scoped per menu) so a panel can take the
     menu's own width - data-width="wide" - or the page's - "full". Inside a
     panel: .nav-menu-grid (auto-fit columns, or data-columns 2 / 3 / 4) of
     .nav-menu-section (a .nav-menu-heading + links), links with a
     .nav-menu-icon and a description, a .nav-menu-feature promo block and a
     .nav-menu-footer row. CSS only - the triggers stay native popovers. */
  .nav-menu {
    anchor-name: --nav-menu-root;
    anchor-scope: --nav-menu-root;
  }
  .nav-menu-content[data-width="wide"] {
    left: anchor(--nav-menu-root left, 0px);
    right: anchor(--nav-menu-root right, 0px);
    width: auto;
  }
  .nav-menu-content[data-width="full"] {
    left: 0;
    right: 0;
    width: auto;
    border-radius: 0;
    border-inline: 0;
    padding-inline: max(1rem, calc((100vw - 72rem) / 2));
  }

  /* the open trigger stays highlighted; aria-current marks the page */
  .nav-menu-trigger:has(+ .nav-menu-content:popover-open),
  .nav-menu-link[aria-current="page"] {
    background-color: var(--accent);
    color: var(--accent-foreground);
  }

  .nav-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
    gap: 1rem 1.5rem;

    &[data-columns="2"] {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    &[data-columns="3"] {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    &[data-columns="4"] {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }
  }
  .nav-menu-section {
    display: grid;
    align-content: start;
    gap: 0.125rem;
    min-width: 0;
  }
  .nav-menu-heading {
    margin: 0 0 0.25rem;
    padding: 0 0.75rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted-foreground);
  }
  /* a link with an icon: icon | title over description */
  .nav-menu-content-link:has(> .nav-menu-icon) {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 0.75rem;
    align-items: start;

    & > :not(.nav-menu-icon) {
      grid-column: 2;
    }
  }
  .nav-menu-icon {
    grid-row: span 2;
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-md);
    background-color: var(--muted);
    color: var(--foreground);

    & svg {
      width: 1rem;
      height: 1rem;
    }
  }
  /* a promo / featured block: image (optional) + title + text */
  .nav-menu-feature {
    display: grid;
    align-content: end;
    gap: 0.25rem;
    min-height: 9rem;
    padding: 1rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, color-mix(in oklch, var(--primary) 14%, var(--muted)), var(--muted));
    color: var(--foreground);
    text-decoration: none;

    & img {
      width: 100%;
      aspect-ratio: 16 / 9;
      object-fit: cover;
      border-radius: var(--radius-md);
      margin-bottom: 0.5rem;
    }
    & strong {
      font-size: 0.9375rem;
    }
    & p {
      margin: 0;
      font-size: 0.8125rem;
      color: var(--muted-foreground);
    }
    &:hover {
      background: linear-gradient(160deg, color-mix(in oklch, var(--primary) 22%, var(--muted)), var(--muted));
    }
    &:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: 2px;
    }
  }
  .nav-menu-footer {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    font-size: 0.8125rem;
    color: var(--muted-foreground);

    & a {
      color: var(--foreground);
      font-weight: 500;
      text-decoration: none;
    }
    & a:hover {
      text-decoration: underline;
    }
  }

  /* -- Vertical: a side menu whose panels fly out to the right (and drop
     below the trigger when there is no room). "responsive" is vertical
     below 48rem and horizontal from there up. */
  .nav-menu[data-orientation="vertical"] {
    & .nav-menu-list {
      flex-direction: column;
      align-items: stretch;
    }
    & :is(.nav-menu-link, .nav-menu-trigger) {
      justify-content: space-between;
      width: 100%;
    }
    & .nav-menu-trigger svg {
      transform: rotate(-90deg);
    }
    & .nav-menu-content {
      top: anchor(top);
      left: anchor(right);
      margin: 0 0 0 4px;
      position-try-fallbacks: --nav-menu-below;
    }
  }
  @media (max-width: 47.99rem) {
    .nav-menu[data-orientation="responsive"] {
      & .nav-menu-list {
        flex-direction: column;
        align-items: stretch;
      }
      & :is(.nav-menu-link, .nav-menu-trigger) {
        justify-content: space-between;
        width: 100%;
      }
      & .nav-menu-trigger svg {
        transform: rotate(-90deg);
      }
      & .nav-menu-content {
        top: anchor(top);
        left: anchor(right);
        margin: 0 0 0 4px;
        position-try-fallbacks: --nav-menu-below;
      }
      & .nav-menu-grid[data-columns] {
        grid-template-columns: minmax(0, 1fr);
      }
    }
  }

  /* -- Accessibility ------------------------------------------ */

  @media (prefers-reduced-motion: reduce) {
    .nav-menu-link,
    .nav-menu-trigger,
    .nav-menu-content,
    .nav-menu-content-link {
      transition: none;
    }
    .nav-menu-trigger svg {
      transition: none;
    }
  }

  @media (forced-colors: active) {
    .nav-menu-content {
      border-color: ButtonText;
    }
  }
}

/* the vertical menu's fallback when a panel has no room at the side:
   below its trigger (top-level: @position-try is not a layered rule) */
@position-try --nav-menu-below {
  top: anchor(bottom);
  left: anchor(left);
  margin: 4px 0 0;
}

/* ── components/news-item/news-item.css ── */
/* -- News Item (website) --------------------------------------------
   Previews one story: category + time, the headline (its link stretches
   over the whole item - one tab stop, one click target), a summary and an
   optional image. Default: a row with the image at the end; lead: the top
   story, image above; compact: a headline list. */

@layer components {
  .mk-news-item {
    container: mk-news-item / inline-size;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 1rem;
    padding-block: 1rem;
    border-block-end: 1px solid var(--border);

    &:has(.mk-news-item-title a:focus-visible) {
      outline: 2px solid var(--ring);
      outline-offset: 2px;
      border-radius: var(--radius-sm);
    }
  }

  .mk-news-item-body {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    min-width: 0;
  }

  .mk-news-item-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.75rem;
    color: var(--muted-foreground);
    font-size: 0.75rem;
  }

  .mk-news-item-category {
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  /* live: a pulsing dot in front of the time */
  .mk-news-item-live {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: oklch(0.58 0.22 27);
    font-weight: 600;

    &::before {
      content: "";
      width: 0.5rem;
      height: 0.5rem;
      border-radius: 50%;
      background: currentColor;
      animation: mk-news-item-pulse 1.6s ease-in-out infinite;
    }
  }

  .mk-news-item-title {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
    text-wrap: balance;

    & a {
      color: inherit;
      text-decoration: none;
      outline: none;

      /* the stretched link: the whole item is the click target */
      &::after {
        content: "";
        position: absolute;
        inset: 0;
      }
    }
  }
  .mk-news-item:hover .mk-news-item-title a {
    text-decoration: underline;
    text-underline-offset: 0.2em;
  }

  .mk-news-item-summary {
    margin: 0;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    line-height: 1.55;
    text-wrap: pretty;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .mk-news-item-media {
    width: 6rem;
    aspect-ratio: 4 / 3;
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--muted);

    & img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }

  @container mk-news-item (min-width: 36rem) {
    .mk-news-item-media {
      width: 9rem;
    }
  }

  /* lead: the top story - image above, a big headline */
  .mk-news-item[data-variant="lead"] {
    grid-template-columns: minmax(0, 1fr);
    padding-block-start: 0;

    & .mk-news-item-media {
      order: -1;
      width: 100%;
      aspect-ratio: 16 / 9;
      border-radius: var(--radius-lg);
    }
    & .mk-news-item-title {
      font-size: 1.5rem;
      line-height: 1.15;
    }
    & .mk-news-item-summary {
      font-size: 1rem;
      -webkit-line-clamp: 4;
    }
  }
  @container mk-news-item (min-width: 36rem) {
    .mk-news-item[data-variant="lead"] .mk-news-item-title {
      font-size: 2rem;
    }
  }

  /* compact: time in front of the headline, no image, no summary */
  .mk-news-item[data-variant="compact"] {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 0.625rem;

    & .mk-news-item-body {
      flex-direction: row;
      align-items: baseline;
      gap: 0.75rem;
    }
    & .mk-news-item-meta {
      flex: none;
      min-width: 4.75rem;
    }
    & .mk-news-item-title {
      font-size: 0.9375rem;
      font-weight: 500;
    }
    & :is(.mk-news-item-summary, .mk-news-item-media, .mk-news-item-category) {
      display: none;
    }
  }

  /* tags, author, actions: raised above the stretched link so they stay clickable */
  .mk-news-item-footer {
    position: relative;
    z-index: 1;

    & a {
      text-decoration: none;
    }
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem 0.75rem;
    margin-block-start: 0.25rem;
    color: var(--muted-foreground);
    font-size: 0.75rem;
  }

  /* a video story: a play glyph and the duration on the thumbnail */
  .mk-news-item-media[data-video] {
    position: relative;

    &::before {
      content: "";
      position: absolute;
      inset: 50% auto auto 50%;
      width: 2.25rem;
      height: 2.25rem;
      translate: -50% -50%;
      border-radius: 50%;
      background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='white'/%3E%3C/svg%3E")
          55% 50% / 1rem 1rem no-repeat,
        rgb(0 0 0 / 0.55);
      backdrop-filter: blur(4px);
    }
    &::after {
      content: attr(data-video);
      position: absolute;
      inset-block-end: 0.375rem;
      inset-inline-end: 0.375rem;
      padding: 0.0625rem 0.375rem;
      border-radius: var(--radius-sm);
      background: rgb(0 0 0 / 0.7);
      color: #fff;
      font-size: 0.6875rem;
      font-variant-numeric: tabular-nums;
    }
  }

  /* overlay: the copy over the image, on a darkening gradient */
  .mk-news-item[data-variant="overlay"] {
    grid-template-columns: minmax(0, 1fr);
    isolation: isolate;
    min-height: 18rem;
    padding: 1.25rem;
    overflow: hidden;
    border: 0;
    border-radius: var(--radius-lg);
    background: #0b0b0f;
    color: #fff;
    align-content: end;

    /* the image sits under the copy; the body stays static so the stretched
       link still spans the whole item */
    & .mk-news-item-media {
      position: absolute;
      inset: 0;
      z-index: -1;
      width: auto;
      aspect-ratio: auto;
      border-radius: 0;

      &::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgb(0 0 0 / 0.88), rgb(0 0 0 / 0.25) 60%, transparent);
      }
    }
    & .mk-news-item-title {
      font-size: 1.375rem;
      line-height: 1.2;
    }
    & :is(.mk-news-item-meta, .mk-news-item-summary) {
      color: rgb(255 255 255 / 0.8);
    }
    & .mk-news-item-category {
      color: #fff;
    }
  }

  /* ranked: "most read" - a big outlined number from data-rank */
  .mk-news-item[data-variant="ranked"] {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: baseline;

    &::before {
      content: attr(data-rank);
      min-width: 2.5rem;
      color: transparent;
      font-size: 2.5rem;
      font-weight: 800;
      line-height: 1;
      -webkit-text-stroke: 1.5px var(--primary);
      font-variant-numeric: tabular-nums;
    }
    & :is(.mk-news-item-media, .mk-news-item-summary) {
      display: none;
    }
  }

  /* card: on a surface - image on top, footer at the bottom */
  .mk-news-item[data-variant="card"] {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    gap: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--card);
    transition:
      box-shadow 150ms ease,
      border-color 150ms ease;

    &:hover {
      border-color: color-mix(in oklch, var(--foreground) 25%, var(--border));
      box-shadow: var(--shadow-md);
    }
    & .mk-news-item-media {
      order: -1;
      width: 100%;
      aspect-ratio: 16 / 9;
      border-radius: 0;
    }
    & .mk-news-item-body {
      padding: 1rem 1.125rem 1.125rem;
    }
    & .mk-news-item-footer {
      margin-block-start: auto;
      padding-block-start: 0.75rem;
    }
  }

  /* live: a live-blog entry - the time on a rail with a dot */
  .mk-news-item[data-variant="live"] {
    grid-template-columns: 4.5rem minmax(0, 1fr);
    column-gap: 1.25rem;
    padding-block: 0;
    border: 0;

    & .mk-news-item-meta {
      position: relative;
      grid-row: span 4;
      align-self: stretch;
      flex-direction: column;
      align-items: flex-end;
      gap: 0.125rem;
      /* the rail runs through the entry's bottom padding into the next one */
      padding-block-end: 1.75rem;
      padding-inline-end: 0.875rem;
      border-inline-end: 2px solid var(--border);
      font-variant-numeric: tabular-nums;

      &::after {
        content: "";
        position: absolute;
        inset-block-start: 0.3rem;
        inset-inline-end: calc(-0.375rem - 1px);
        width: 0.75rem;
        height: 0.75rem;
        border: 2px solid var(--background);
        border-radius: 50%;
        background: var(--primary);
      }
    }
    & .mk-news-item-body {
      display: contents;
    }
    & .mk-news-item-meta time {
      color: var(--foreground);
      font-weight: 600;
      font-size: 0.875rem;
    }
    & .mk-news-item-title {
      grid-column: 2;
    }
    & :is(.mk-news-item-summary, .mk-news-item-footer, .mk-news-item-media) {
      grid-column: 2;
    }
    & .mk-news-item-summary {
      -webkit-line-clamp: unset;
      display: block;
    }
    & .mk-news-item-media {
      width: 100%;
      max-width: 24rem;
      aspect-ratio: 16 / 9;
      margin-block: 0.5rem 1.75rem;
    }
    & .mk-news-item-summary:last-child {
      margin-block-end: 1.75rem;
    }
  }
  .mk-news-item[data-variant="live"][data-key] .mk-news-item-meta::after {
    background: oklch(0.58 0.22 27);
    box-shadow: 0 0 0 4px oklch(0.58 0.22 27 / 0.2);
  }

  @keyframes mk-news-item-pulse {
    50% {
      opacity: 0.25;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .mk-news-item-live::before {
      animation: none;
    }
    .mk-news-item[data-variant="card"] {
      transition: none;
    }
  }

  @media (prefers-contrast: more) {
    .mk-news-item-summary,
    .mk-news-item-meta {
      color: var(--foreground);
    }
  }

  @media (forced-colors: active) {
    .mk-news-item-title a {
      color: LinkText;
    }
    .mk-news-item-live {
      color: CanvasText;
    }
  }
}

/* ── components/popover/popover.css ── */
@layer components {
  .popover {
    position: fixed;
    inset: auto;
    margin: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background-color: var(--popover);
    color: var(--popover-foreground);
    padding: 1rem;

    /* -- Density --------------------------------------------------
       data-density on the .popover root scales the content padding
       (0.75 / 1 / 1.25 of the 1rem default); comfortable matches the
       unsized default. */
    &[data-density="compact"] {
      padding: 0.75rem;
    }
    &[data-density="comfortable"] {
      padding: 1rem;
    }
    &[data-density="spacious"] {
      padding: 1.25rem;
    }
    box-shadow: var(--shadow-md);
    width: 20rem;
    opacity: 0;
    translate: 0 -4px;
    transition:
      opacity 150ms ease,
      translate 150ms ease,
      display 150ms allow-discrete;

    /* -- Default: bottom center -- */
    position-area: bottom;
    margin-top: 4px;
    position-try-fallbacks: flip-block;

    &:popover-open {
      opacity: 1;
      translate: 0 0;
    }

    /* ----- Side variants ----- */
    &[data-side="top"] {
      position-area: top;
      margin-top: 0;
      margin-bottom: 4px;
      translate: 0 4px;
      &:popover-open {
        translate: 0 0;
      }
    }

    &[data-side="left"] {
      position-area: left;
      margin-top: 0;
      margin-right: 4px;
      translate: 4px 0;
      position-try-fallbacks: flip-inline;
      &:popover-open {
        translate: 0 0;
      }
    }

    &[data-side="right"] {
      position-area: right;
      margin-top: 0;
      margin-left: 4px;
      translate: -4px 0;
      position-try-fallbacks: flip-inline;
      &:popover-open {
        translate: 0 0;
      }
    }

    /* ----- Align variants (combined with side) ----- */
    &[data-align="start"] {
      &:not([data-side="left"]):not([data-side="right"]) {
        position-area: bottom left;
      }
      &[data-side="top"] {
        position-area: top left;
      }
      &[data-side="left"] {
        position-area: left top;
      }
      &[data-side="right"] {
        position-area: right top;
      }
    }

    &[data-align="end"] {
      &:not([data-side="left"]):not([data-side="right"]) {
        position-area: bottom right;
      }
      &[data-side="top"] {
        position-area: top right;
      }
      &[data-side="left"] {
        position-area: left bottom;
      }
      &[data-side="right"] {
        position-area: right bottom;
      }
    }
  }

  @starting-style {
    .popover:popover-open {
      opacity: 0;
      translate: 0 -4px;
    }
    .popover[data-side="top"]:popover-open {
      opacity: 0;
      translate: 0 4px;
    }
    .popover[data-side="left"]:popover-open {
      opacity: 0;
      translate: 4px 0;
    }
    .popover[data-side="right"]:popover-open {
      opacity: 0;
      translate: -4px 0;
    }
  }

  .popover-header {
    margin-bottom: 0.75rem;
  }
  .popover-title {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
  }
  .popover-description {
    margin: 0.25rem 0 0;
    font-size: 0.8125rem;
    color: var(--muted-foreground);
  }
  .popover-content {
    font-size: 0.875rem;
  }

  @media (prefers-reduced-motion: reduce) {
    .popover {
      transition: none;
    }
  }
}

/* ── components/pricing/pricing.css ── */
/* -- Pricing (marketing) -------------------------------------------
   Section head + billing toggle (composed from the tabs component) +
   plan cards. The featured plan upgrades its border - no layout shift. */

@layer components {
  .mk-pricing {
    container: mk-pricing / inline-size;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    width: 100%;
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: 1.25rem;
  }

  /* centered stack: eyebrow/title/desc + toggle all share the section's
     center line (align-items, not text-align - the toggle is a box) */
  .mk-pricing-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
  }

  .mk-pricing-eyebrow {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 500;
  }

  .mk-pricing-title {
    line-height: 1.15;
    margin: 0;
    font-size: 1.875rem;
    font-weight: 500;
    letter-spacing: -0.025em;
    text-wrap: balance;
  }

  .mk-pricing-desc {
    margin: 0;
    max-width: 42rem;
    color: var(--muted-foreground);
    font-size: 1rem;
    text-wrap: pretty;
  }

  /* Segmented billing toggle: real radios + :has() - keyboard, screen
     readers, and form semantics work natively; one checked radio flips
     every plan's price pair, which per-tab aria-controls could not. */
  .mk-pricing-billing {
    display: inline-flex;
    align-self: center;
    gap: 0.25rem;
    padding: 0.25rem;
    border-radius: var(--radius-md);
    background: var(--muted);

    & label {
      display: inline-flex;
      align-items: center;
      gap: 0.375rem;
      padding: 0.375rem 0.75rem;
      border-radius: var(--radius-sm);
      font-size: 0.875rem;
      font-weight: 500;
      color: var(--muted-foreground);
      cursor: pointer;
    }

    & label:has(input:checked) {
      background: var(--background);
      color: var(--foreground);
      box-shadow: var(--shadow-2xs);
    }

    /* keyboard focus lands on the radio - show the ring on its label */
    & label:has(input:focus-visible) {
      outline: 2px solid var(--ring);
      outline-offset: 2px;
    }
  }

  /* price swap: each plan ships yearly + monthly rows; the checked radio
     anywhere in the section flips every plan at once via :has() */
  .mk-plan-price.mk-price-monthly {
    display: none;
  }

  .mk-pricing:has(.mk-bill-monthly:checked) {
    & .mk-plan-price.mk-price-yearly {
      display: none;
    }
    & .mk-plan-price.mk-price-monthly {
      display: flex;
    }
  }

  .mk-plans {
    display: grid;
    align-items: stretch;
    gap: 1.25rem;
  }

  .mk-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
    box-sizing: border-box;
    padding-block: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--card);
    color: var(--card-foreground);
    box-shadow: var(--shadow-sm);

    /* featured plan: 2px primary border (same box size → no shift) and a
       soft primary wash from the top */
    &[data-featured] {
      border: 2px solid var(--primary);
      background:
        radial-gradient(120% 60% at 50% 0%, color-mix(in oklch, var(--primary) 9%, transparent), transparent 70%),
        var(--card);
      box-shadow: var(--shadow-lg);
    }
  }

  /* in an aura (shapes.css): the light is the border - the plan drops its own */
  .aura > .mk-plan {
    border-color: transparent;
    border-radius: var(--radius-lg);
  }
  .mk-plans > .aura {
    --shape-round: var(--radius-lg);
  }

  .mk-plan-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-inline: 1.5rem;
  }

  .mk-plan-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--muted);

    & svg {
      width: 1rem;
      height: 1rem;
      color: var(--primary);
    }
  }

  .mk-plan-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-inline: 1.5rem;
  }

  .mk-plan-title {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
  }

  .mk-plan-desc {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--muted-foreground);
  }

  .mk-plan-price {
    display: flex;
    gap: 0.5rem;
    margin-block-start: auto;
    padding-inline: 1.5rem;
  }

  .mk-plan-amount {
    align-self: flex-end;
    font-size: 3rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.025em;
    font-variant-numeric: tabular-nums;
  }

  .mk-plan-unit {
    display: flex;
    flex-direction: column;
    align-self: flex-end;
  }
  .mk-plan-unit-label {
    font-size: 0.875rem;
    font-weight: 500;
  }
  .mk-plan-unit-note {
    font-size: 0.875rem;
    color: var(--muted-foreground);
  }

  .mk-plan-cta {
    padding-inline: 1.5rem;
    & .btn {
      width: 100%;
    }
  }

  .mk-plan-features {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding-inline: 1.5rem;
  }

  .mk-plan-features {
    margin: 0 1.5rem;
    padding: 1.25rem 0 0;
    border-block-start: 1px dashed var(--border);
    list-style: none;
  }

  /* the check sits in a small tinted disc */
  .mk-plan-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 0.9375rem;

    & svg {
      width: 1.125rem;
      height: 1.125rem;
      margin-block-start: 0.125rem;
      padding: 0.1875rem;
      border-radius: 50%;
      background: color-mix(in oklch, var(--primary) 12%, transparent);
      color: var(--primary);
      flex-shrink: 0;
      box-sizing: border-box;
    }
    & span {
      flex: 1;
    }
    &[data-muted] {
      color: var(--muted-foreground);
    }
    &[data-muted] svg {
      background: var(--muted);
      color: var(--muted-foreground);
    }
  }

  /* the featured plan's label: a filled Badge with a sparkle */
  .mk-plan-badge {
    gap: 0.25rem;
  }

  /* a saving next to the billing choice (a Badge) */
  .mk-pricing-billing .badge {
    margin-inline-start: 0.125rem;
  }

  @container mk-pricing (min-width: 44rem) {
    .mk-pricing-title {
      font-size: 2.25rem;
    }
    .mk-plans {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      align-items: center;
    }
    /* the featured plan stands a little taller than its neighbours */
    .mk-plans > .mk-plan[data-featured],
    .mk-plans > .aura > .mk-plan {
      padding-block: 2.25rem;
    }
  }

  /* compare: a Table of features per plan - the featured column tinted */
  .mk-pricing-compare {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);

    & .table {
      min-width: 36rem;
    }
    & :is(th, td):not(:first-child) {
      text-align: center;
    }
    & [data-featured] {
      background: color-mix(in oklch, var(--primary) 6%, transparent);
    }
    & thead [data-featured] {
      box-shadow: inset 0 3px 0 var(--primary);
    }
    & .mk-pricing-yes {
      color: var(--primary);
    }
    & .mk-pricing-no {
      color: var(--muted-foreground);
      opacity: 0.5;
    }
    & svg {
      width: 1rem;
      height: 1rem;
      vertical-align: middle;
    }
    & tbody th {
      font-weight: 500;
      text-align: start;
    }
  }

  /* compact: plans as rows of one list - name, price, CTA */
  .mk-plans[data-variant="compact"] {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);

    & .mk-plan {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
      align-items: center;
      gap: 0.75rem 1.5rem;
      padding: 1.25rem 1.5rem;
      border: 0;
      border-block-end: 1px solid var(--border);
      border-radius: 0;
      box-shadow: none;

      &:last-child {
        border-block-end: 0;
      }
      &[data-featured] {
        border: 0;
        border-block-end: 1px solid var(--border);
        background: color-mix(in oklch, var(--primary) 5%, var(--card));
      }
      & :is(.mk-plan-body, .mk-plan-price, .mk-plan-cta) {
        padding: 0;
        margin: 0;
      }
      & .mk-plan-amount {
        font-size: 2rem;
      }
    }
  }

  /* wide: one plan, features in two columns beside the price */
  .mk-plan[data-variant="wide"] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
    gap: 1.5rem 2.5rem;
    padding: 2rem;

    & > * {
      padding-inline: 0;
    }
    & .mk-plan-features {
      margin: 0;
      padding: 0;
      border: 0;
      columns: 2 12rem;
      display: block;
    }
    & .mk-plan-feature {
      margin-block-end: 0.75rem;
      break-inside: avoid;
    }
  }

  /* usage: a Slider picks the seats, an <output> shows the price */
  .mk-pricing-usage {
    display: grid;
    gap: 1rem;
    max-width: 36rem;
    margin-inline: auto;
    padding: 1.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--card);

    & .mk-pricing-usage-row {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 1rem;
    }
    & output {
      font-size: 2.5rem;
      font-weight: 600;
      letter-spacing: -0.03em;
      font-variant-numeric: tabular-nums;
    }
  }

  /* cta: an enterprise strip - talk to sales */
  .mk-pricing-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    padding: 1.5rem 1.75rem;
    border-radius: var(--radius-xl);
    background: var(--foreground);
    color: var(--background);

    & p {
      margin: 0.25rem 0 0;
      color: color-mix(in oklch, var(--background) 70%, transparent);
      font-size: 0.9375rem;
    }
    & strong {
      font-size: 1.125rem;
    }
  }

  /* -- Accessibility ------------------------------------------- */

  @media (forced-colors: active) {
    .mk-plan {
      border-color: CanvasText;
    }
    .mk-pricing-billing label:has(input:checked) {
      outline: 1px solid Highlight;
    }
  }
}

/* ── components/radio/radio.css ── */
/* -- Radio Group component -------------------------------------- */

@layer components {
  .radio-group {
    border: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;

    & > legend {
      /* top + bottom breathing room: stacked groups (e.g. a density ladder
         demo) would otherwise jam each heading against the options above it */
      margin-top: 0.5rem;
      margin-bottom: 0.375rem;
    }

    /* Horizontal layout */
    &[data-orientation="horizontal"] {
      flex-direction: row;
      flex-wrap: wrap;
      gap: 1rem;
    }
  }

  .radio-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;

    & > label {
      font-size: 0.875rem;
      font-weight: 400;
      cursor: pointer;
    }
  }

  /* -- With-description layout -------------------------------- */
  .radio-item-block {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0 0.5rem;

    & > .radio {
      grid-row: 1 / 3;
      margin-top: 0.125rem;
    }

    & > label {
      font-size: 0.875rem;
      font-weight: 500;
      cursor: pointer;
      line-height: 1.4;
    }

    & > .radio-description {
      grid-column: 2;
      font-size: 0.8125rem;
      color: var(--muted-foreground);
      line-height: 1.5;
    }
  }

  /* -- Density --------------------------------------------------
     data-density on the .radio-group root is a whitespace policy: the gap
     between options (and card padding) scale at the shared 0.75 / 1 / 1.25
     ratio; comfortable matches the unsized default. Radio size itself stays
     fixed - this is spacing, not zoom. */
  .radio-group:where([data-density="compact"]) {
    gap: 0.25rem;
    &[data-orientation="horizontal"] {
      gap: 0.75rem;
    }
    & .radio-card {
      padding: 0.75rem 1rem;
    }
  }
  .radio-group:where([data-density="comfortable"]) {
    gap: 0.5rem;
    &[data-orientation="horizontal"] {
      gap: 1rem;
    }
  }
  .radio-group:where([data-density="spacious"]) {
    gap: 0.75rem;
    &[data-orientation="horizontal"] {
      gap: 1.5rem;
    }
    & .radio-card {
      padding: 1.25rem 1.5rem;
    }
  }

  /* Gap hit area: inside an item layout the radio's click target spans the
     gap to its label (a transparent ::before, part of the input's own hit
     box), so clicking the whitespace between circle and text selects too -
     the label's `for` covers the text itself. Inline-end only: the label
     always sits after the radio (the block layout's second grid column). */
  :is(.radio-item, .radio-item-block) > .radio::before {
    content: "";
    position: absolute;
    inset-block: -0.25rem;
    inset-inline: -0.25rem -0.5rem;
  }

  /* -- Card variant ------------------------------------------- */
  .radio-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition:
      border-color 150ms,
      background 150ms;

    &:hover {
      background: var(--accent);
    }

    &:has(.radio:checked) {
      border-color: var(--primary);
    }

    &:has(.radio:focus-visible) {
      outline: 2px solid var(--ring);
      outline-offset: 2px;
    }

    &:has(.radio:disabled) {
      cursor: not-allowed;
      background: var(--muted);

      &:hover {
        background: var(--muted);
      }
      & > label {
        color: var(--muted-foreground);
        cursor: not-allowed;
      }
    }

    & > .radio {
      position: absolute;
      top: 1rem;
      right: 1rem;
    }

    & > label {
      font-size: 0.875rem;
      font-weight: 500;
      cursor: pointer;
    }

    & > .radio-description {
      font-size: 0.8125rem;
      color: var(--muted-foreground);
      line-height: 1.5;
    }
  }

  .radio {
    appearance: none;
    margin: 0; /* kill the UA's ~4px input margin - breaks flex/grid rhythm */
    width: 1rem;
    height: 1rem;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--background);
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    transition: border-color 150ms;

    &:checked {
      border-color: var(--primary);

      &::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0.5rem;
        height: 0.5rem;
        border-radius: 50%;
        background: var(--primary);
        transform: translate(-50%, -50%);
      }
    }

    &:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: 2px;
    }

    /* Disabled = legible but inert: never an opacity fade (0.5 on a light
       --border edge left a ghost you had to look for). The shape keeps its
       full-strength edge, the surface turns muted, a chosen state keeps a
       softened primary fill, and the label goes muted with the no-entry
       cursor - "a choice that exists but is unavailable right now". */
    &:disabled {
      background: var(--muted);
      /* a mid-grey ring: --border on the muted fill is too faint to read as a shape */
      border-color: color-mix(in oklch, var(--muted-foreground) 50%, var(--background));
      cursor: not-allowed;

      &:checked {
        border-color: color-mix(in oklch, var(--primary) 45%, var(--background));

        &::after {
          background: color-mix(in oklch, var(--primary) 45%, var(--background));
        }
      }

      & + label {
        color: var(--muted-foreground);
        cursor: not-allowed;
      }
    }

    &[aria-invalid="true"] {
      border-color: var(--destructive);

      &:checked {
        border-color: var(--destructive);

        &::after {
          background: var(--destructive);
        }
      }
    }
  }

  /* Helper text for group-level descriptions */
  .radio-group-description {
    font-size: 0.8125rem;
    color: var(--muted-foreground);
    margin: -0.125rem 0 0.25rem;
  }

  /* -- Accessibility ------------------------------------------ */
  @media (prefers-reduced-motion: reduce) {
    .radio,
    .radio-card {
      transition: none;
    }
  }

  @media (forced-colors: active) {
    .radio {
      border-color: ButtonText;

      &:checked {
        border-color: Highlight;

        &::after {
          background: Highlight;
        }
      }

      &:disabled {
        border-color: GrayText;

        &:checked::after {
          background: GrayText;
        }
      }
    }

    .radio-card {
      border-color: ButtonText;

      &:has(.radio:checked) {
        border-color: Highlight;
      }
    }
  }
}

/* ── components/select/select.css ── */
/* -- Select component ------------------------------------------- */

@layer components {
  .select {
    appearance: none;
    /* the field standard: unsized = md step (see .input) */
    height: 2.25rem;
    width: 100%;
    border: 1px solid var(--input);
    border-radius: var(--radius-md);
    background: var(--background);
    padding: 0 2rem 0 0.75rem;
    font-size: 0.875rem;
    font-family: var(--font-sans);
    color: var(--foreground);
    outline: none;
    box-shadow: var(--shadow-xs);
    cursor: pointer;
    transition:
      border-color 150ms,
      box-shadow 150ms;

    /* Custom chevron */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1rem;

    /* Placeholder = the empty-value option. It stays selectable (no
       `disabled`) so it doubles as the clear/reset entry - choosing it
       again empties the box (issue #32). While it is the selection the
       closed control reads as a placeholder; a real value restores
       --foreground because the base rule's color wins over this one.
       option:checked matches the *selected* option in every engine. */
    &:has(> option[value=""]:checked) {
      color: var(--muted-foreground);
    }

    &:focus {
      border-color: var(--ring);
      box-shadow: 0 0 0 2px oklch(from var(--ring) l c h / 0.2);
    }

    /* Disabled = legible but inert: a muted surface and muted text inside
       the full-strength border - never an opacity fade that lets the box
       dissolve into the page. */
    &:disabled {
      background-color: var(--muted);
      color: var(--muted-foreground);
      box-shadow: none;
      cursor: not-allowed;
      opacity: 1; /* Chrome's UA sheet fades select:disabled to 0.7 on its own */
    }

    &:is([aria-invalid="true"], :user-invalid:not(form[data-validate="submit"]:not([data-submitted]) *)) {
      border-color: var(--destructive);

      &:focus {
        border-color: var(--destructive);
        box-shadow: 0 0 0 2px oklch(from var(--destructive) l c h / 0.2);
      }
    }

    /* -- Multiple (<select multiple>) ---------------------------
       The browser renders a list box instead of a dropdown: every option is
       visible (size="N" rows), Ctrl/⌘-click or Shift-click / Shift+arrows
       pick several, and the form submits every chosen value under the same
       name. No fixed height, no chevron; chosen options get a tinted row. */
    &[multiple] {
      height: auto;
      padding: 0.25rem;
      background-image: none;
      overflow-y: auto;

      & option {
        padding: 0.375rem 0.5rem;
        border-radius: calc(var(--radius-md) - 2px);
        color: var(--foreground);
      }

      & option:checked {
        /* a gradient beats the UA's opaque selection paint in every engine */
        background: linear-gradient(
          color-mix(in oklch, var(--primary) 14%, transparent),
          color-mix(in oklch, var(--primary) 14%, transparent)
        );
        font-weight: 500;
      }

      /* one unavailable choice in a usable list */
      & option:disabled {
        color: var(--muted-foreground);
        cursor: not-allowed;
      }

      & optgroup {
        font-size: 0.75rem;
        font-weight: 600;
        color: var(--muted-foreground);
      }
    }

    /* -- Sizes ----------------------------------------------- */
    &[data-size="xs"] {
      height: 1.75rem;
      padding-left: 0.5rem;
      font-size: 0.75rem;
    }
    &[data-size="sm"] {
      height: 2rem;
      padding-left: 0.625rem;
      font-size: 0.8125rem;
    }
    &[data-size="md"] {
      height: 2.25rem;
      padding-left: 0.75rem;
      font-size: 0.875rem;
    }
    &[data-size="lg"] {
      height: 2.75rem;
      padding-left: 1rem;
      font-size: 1rem;
    }
    &[data-size="xl"] {
      height: 3.25rem;
      padding-left: 1.25rem;
      font-size: 1.125rem;
    }

    &[multiple][data-size] {
      height: auto;
    }
  }
}

/* Accessibility: suppress motion for users who request it (REQUIRED for all
   components - AGENTS.md "Accessibility CSS"). Near-zero duration instead of
   `none` keeps transitionend/animationend (and discrete display flips)
   firing so JS state machines that await them keep working. */
@media (prefers-reduced-motion: reduce) {
  @layer components {
    .select,
    .select *,
    .select::before,
    .select::after,
    .select *::before,
    .select *::after,
    .select::backdrop {
      transition-duration: 0.01ms !important;
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
    }
  }
}

/* ── components/sheet/sheet.css ── */
/* -- Sheet component ------------------------------------------- */

@layer components {
  /* -- Base -------------------------------------------------- */
  dialog.sheet {
    border: none;
    border-radius: 0;
    background-color: var(--background);
    color: var(--foreground);
    padding: 0;
    margin: 0;
    max-width: none;
    max-height: none;
    opacity: 0;
    transition:
      opacity 300ms ease,
      transform 300ms ease,
      display 300ms allow-discrete;

    &[open] {
      opacity: 1;
    }

    /* -- Side: right (default) --------------------------------- */
    &,
    &[data-side="right"] {
      position: fixed;
      top: 0;
      right: 0;
      bottom: 0;
      left: auto;
      width: 24rem;
      max-width: 100vw;
      max-height: 100vh;
      height: 100%;
      border-left: 1px solid var(--border);
      transform: translateX(100%);
    }

    &[open],
    &[data-side="right"][open] {
      transform: translateX(0);
    }

    /* -- Side: left -------------------------------------------- */
    &[data-side="left"] {
      position: fixed;
      top: 0;
      left: 0;
      bottom: 0;
      right: auto;
      width: 24rem;
      max-width: 100vw;
      max-height: 100vh;
      height: 100%;
      border-left: none;
      border-right: 1px solid var(--border);
      transform: translateX(-100%);

      &[open] {
        transform: translateX(0);
      }
    }

    /* -- Side: top --------------------------------------------- */
    &[data-side="top"] {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: auto;
      width: 100%;
      max-width: 100vw;
      /* a sheet, not a page: the backdrop always shows (content scrolls
         inside the modal past this) */
      max-height: 85dvh;
      height: auto;
      border-left: none;
      border-bottom: 1px solid var(--border);
      transform: translateY(-100%);

      &[open] {
        transform: translateY(0);
      }
    }

    /* -- Side: bottom ------------------------------------------ */
    &[data-side="bottom"] {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      top: auto;
      width: 100%;
      max-width: 100vw;
      /* a sheet, not a page: the backdrop always shows (content scrolls
         inside the modal past this) */
      max-height: 85dvh;
      height: auto;
      border-left: none;
      border-top: 1px solid var(--border);
      transform: translateY(100%);

      &[open] {
        transform: translateY(0);
      }
    }

    /* -- Backdrop ---------------------------------------------- */
    &::backdrop {
      background: oklch(0 0 0 / 0);
      backdrop-filter: blur(0px);
      transition:
        all 300ms ease,
        display 300ms allow-discrete;
    }

    &[open]::backdrop {
      background: oklch(0 0 0 / 0.45);
      backdrop-filter: blur(3px);
    }
  }

  @starting-style {
    dialog.sheet[open],
    dialog.sheet[data-side="right"][open] {
      opacity: 0;
      transform: translateX(100%);
    }

    dialog.sheet[data-side="left"][open] {
      opacity: 0;
      transform: translateX(-100%);
    }

    dialog.sheet[data-side="top"][open] {
      opacity: 0;
      transform: translateY(-100%);
    }

    dialog.sheet[data-side="bottom"][open] {
      opacity: 0;
      transform: translateY(100%);
    }

    dialog.sheet[open]::backdrop {
      background: oklch(0 0 0 / 0);
      backdrop-filter: blur(0px);
    }
  }

  /* -- Scroll lock ------------------------------------------- */
  /* Page behind stays put while a sheet is modal (see dialog.css):
     `:modal` + overflow:hidden freezes the viewport at its current offset. */
  html:has(dialog.sheet:modal) {
    overflow: hidden;
    scrollbar-gutter: stable;
  }

  /* -- Content sections -------------------------------------- */
  .sheet-content {
    padding: 1.5rem;
    position: relative;
  }

  /* -- Density ----------------------------------------------------
     data-density on the .sheet root scales the content padding
     (0.75 / 1 / 1.25 of the 1.5rem default); comfortable matches the
     unsized default. The sheet's slide-in width is layout, not whitespace —
     it stays put. */
  .sheet:where([data-density="compact"]) .sheet-content {
    padding: 1rem;
  }
  .sheet:where([data-density="comfortable"]) .sheet-content {
    padding: 1.5rem;
  }
  .sheet:where([data-density="spacious"]) .sheet-content {
    padding: 2rem;
  }

  /* Top/bottom sheets span the full viewport width - on wide screens the
     content would stretch unaligned, so keep a readable, centered column
     (the side sheets are already width-constrained at 24rem). */
  dialog.sheet[data-side="top"] .sheet-content,
  dialog.sheet[data-side="bottom"] .sheet-content {
    max-width: 48rem;
    box-sizing: border-box; /* the 1.5rem padding is part of the 48rem column */
    width: 100%;
    margin-inline: auto;
  }
  .sheet-header {
    margin-bottom: 1rem;
    padding-right: 2rem;
  }
  .sheet-title {
    font-size: 1.0625rem;
    font-weight: 600;
    margin: 0 0 0.375rem;
    letter-spacing: -0.01em;
  }
  .sheet-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin: 0;
    line-height: 1.6;
  }
  .sheet-body {
    margin-top: 1rem;
  }
  .sheet-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1.5rem;
  }

  /* -- Close button ------------------------------------------ */
  .sheet-close-x {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--muted-foreground);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition:
      color 150ms,
      background-color 150ms;

    &:hover {
      color: var(--foreground);
      background-color: var(--accent);
    }
  }
}

/* Accessibility: suppress motion for users who request it (REQUIRED for all
   components - AGENTS.md "Accessibility CSS"). Near-zero duration instead of
   `none` keeps transitionend/animationend (and discrete display flips)
   firing so JS state machines that await them keep working. */
@media (prefers-reduced-motion: reduce) {
  @layer components {
    .sheet,
    .sheet *,
    .sheet::before,
    .sheet::after,
    .sheet *::before,
    .sheet *::after,
    .sheet::backdrop,
    .sheet-body,
    .sheet-body *,
    .sheet-body::before,
    .sheet-body::after,
    .sheet-body *::before,
    .sheet-body *::after,
    .sheet-body::backdrop,
    .sheet-close-x,
    .sheet-close-x *,
    .sheet-close-x::before,
    .sheet-close-x::after,
    .sheet-close-x *::before,
    .sheet-close-x *::after,
    .sheet-close-x::backdrop,
    .sheet-content,
    .sheet-content *,
    .sheet-content::before,
    .sheet-content::after,
    .sheet-content *::before,
    .sheet-content *::after,
    .sheet-content::backdrop,
    .sheet-description,
    .sheet-description *,
    .sheet-description::before,
    .sheet-description::after,
    .sheet-description *::before,
    .sheet-description *::after,
    .sheet-description::backdrop,
    .sheet-footer,
    .sheet-footer *,
    .sheet-footer::before,
    .sheet-footer::after,
    .sheet-footer *::before,
    .sheet-footer *::after,
    .sheet-footer::backdrop,
    .sheet-header,
    .sheet-header *,
    .sheet-header::before,
    .sheet-header::after,
    .sheet-header *::before,
    .sheet-header *::after,
    .sheet-header::backdrop,
    .sheet-title,
    .sheet-title *,
    .sheet-title::before,
    .sheet-title::after,
    .sheet-title *::before,
    .sheet-title *::after,
    .sheet-title::backdrop {
      transition-duration: 0.01ms !important;
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
    }
  }
}

/* ── components/site-footer/site-footer.css ── */
/* -- Site Footer (marketing) ---------------------------------------
   Link columns + rule + brand/social/copyright row. Named .mk-footer
   to avoid colliding with the doc site's own .site-footer chrome. */

@layer components {
  .mk-footer {
    container: mk-footer / inline-size;
    width: 100%;
    background: var(--background);
    color: var(--foreground);
  }

  .mk-footer-inner {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 80rem;
    margin-inline: auto;
    padding: 2.5rem 1.25rem;
  }

  .mk-footer-nav {
    display: grid;
    gap: 3rem;
  }

  .mk-footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
  }

  .mk-footer-heading {
    line-height: 1.3;
    margin: 0;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    font-weight: 500;
  }

  .mk-footer-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 1rem;

    & a {
      display: flex;
      align-items: center;
      gap: 0.25rem;
      color: inherit;
      text-decoration: none;
      border-radius: var(--radius-sm);

      &:hover {
        text-decoration: underline;
        text-underline-offset: 3px;
      }
      &:focus-visible {
        outline: 2px solid var(--ring);
        outline-offset: 2px;
      }
    }
  }

  .mk-footer-rule {
    width: 100%;
  }

  .mk-footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
  }

  .mk-footer-brand {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
    color: var(--primary);
    text-decoration: none;

    & svg {
      width: 1.25rem;
      height: 1.25rem;
      flex-shrink: 0;
    }
  }

  .mk-footer-brand-name {
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
  }

  .mk-footer-meta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .mk-footer-social {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--muted-foreground);

    & a {
      display: flex;
      color: inherit;
      border-radius: var(--radius-sm);
      &:focus-visible {
        outline: 2px solid var(--ring);
        outline-offset: 2px;
      }
    }
    & svg {
      width: 1rem;
      height: 1rem;
    }
  }

  .mk-footer-copy {
    margin: 0;
    color: var(--muted-foreground);
    font-size: 0.875rem;
  }

  @container mk-footer (min-width: 30rem) {
    .mk-footer-nav {
      grid-template-columns: 1fr 1fr;
    }
    .mk-footer-bottom {
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
    }
    .mk-footer-meta {
      flex-direction: row;
      align-items: center;
      gap: 1rem;
    }
  }

  @container mk-footer (min-width: 52rem) {
    .mk-footer-inner {
      gap: 2.25rem;
      padding-inline: 2rem;
    }
    .mk-footer-nav {
      grid-template-columns: repeat(4, 1fr);
      gap: 2.25rem;
    }
  }

  /* -- variants ------------------------------------------------- */
  /* simple: one row - brand, inline links, copyright */
  .mk-footer[data-variant="simple"] .mk-footer-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    padding-block: 1.5rem;
  }
  .mk-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.875rem;

    & a {
      color: var(--muted-foreground);
      text-decoration: none;
      border-radius: var(--radius-sm);
    }
    & a:hover {
      color: var(--foreground);
    }
    & a:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: 2px;
    }
  }

  /* top: an about column (brand, line, newsletter, social) beside the link columns */
  .mk-footer-top {
    display: grid;
    gap: 2.5rem;
  }
  .mk-footer-about {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    max-width: 24rem;

    & p {
      margin: 0;
      color: var(--muted-foreground);
      font-size: 0.875rem;
      text-wrap: pretty;
    }
  }
  .mk-footer-top .mk-footer-nav {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr));
  }
  .mk-footer-newsletter {
    display: flex;
    gap: 0.5rem;
    width: 100%;

    & .input {
      flex: 1;
      min-width: 0;
    }
  }
  .mk-footer-locale {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted-foreground);
    font-size: 0.875rem;
  }
  .mk-footer-locale .select {
    width: auto;
    height: 2rem;
    font-size: 0.8125rem;
  }

  /* dark: the footer inverts - the page ends on a dark band */
  .mk-footer[data-variant="dark"] {
    background: var(--foreground);
    color: var(--background);

    & :is(.mk-footer-heading, .mk-footer-copy, .mk-footer-social, .mk-footer-about p) {
      color: color-mix(in oklch, var(--background) 65%, transparent);
    }
    & .mk-footer-brand {
      color: inherit;
    }
    & .separator {
      background: color-mix(in oklch, var(--background) 18%, transparent);
    }
    & .mk-footer-list a:focus-visible {
      outline-color: var(--background);
    }
  }

  /* cta: a call to action on top of the footer */
  .mk-footer-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem 2rem;
    padding: 2rem;
    border-radius: var(--radius-xl);
    background:
      radial-gradient(60% 120% at 100% 0%, color-mix(in oklch, var(--chart-1) 55%, transparent), transparent 70%),
      radial-gradient(50% 120% at 75% 100%, color-mix(in oklch, var(--chart-2) 40%, transparent), transparent 70%),
      color-mix(in oklch, var(--background) 8%, var(--foreground));
    color: var(--background);

    & h2 {
      margin: 0;
      font-size: 1.5rem;
      font-weight: 600;
      letter-spacing: -0.02em;
      text-wrap: balance;
    }
    & p {
      margin: 0.25rem 0 0;
      color: color-mix(in oklch, var(--background) 70%, transparent);
    }
    & .mk-footer-cta-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
    }
  }
  .mk-footer:not([data-variant="dark"]) .mk-footer-cta {
    background:
      radial-gradient(60% 120% at 100% 0%, color-mix(in oklch, var(--chart-1) 55%, transparent), transparent 70%),
      radial-gradient(50% 120% at 75% 100%, color-mix(in oklch, var(--chart-2) 40%, transparent), transparent 70%),
      var(--foreground);
  }

  /* wordmark: the brand, huge, closing the page */
  .mk-footer-wordmark {
    margin: 0;
    overflow: hidden;
    color: color-mix(in oklch, currentColor 10%, transparent);
    font-size: 26cqi;
    font-weight: 800;
    line-height: 0.8;
    letter-spacing: -0.06em;
    text-align: center;
    white-space: nowrap;
    user-select: none;
  }

  @container mk-footer (min-width: 52rem) {
    .mk-footer-top {
      grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
      gap: 4rem;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (forced-colors: active) {
    .mk-footer[data-variant="dark"] {
      border-block-start: 1px solid CanvasText;
    }
    .mk-footer-cta {
      border: 1px solid CanvasText;
    }
    .mk-footer-wordmark {
      color: GrayText;
    }
  }

  @media (forced-colors: active) {
    .mk-footer-copy {
      color: CanvasText;
    }
  }
}

/* ── components/site-header/site-header.css ── */
/* -- Site Header (marketing) -------------------------------------
   Fixed-height product header: brand left, nav center, actions right.
   The doc site's own chrome uses .site-header/<site-header>; marketing
   pages use .mk-header so the two never collide. */

@layer components {
  .mk-header {
    /* container query, not @media: the header adapts to the width it is
       placed in (doc preview box, sidebar layout, full page) */
    container: mk-header / inline-size;
    position: relative;
    width: 100%;
    background: var(--background);
    color: var(--foreground);

    &[data-variant="sticky"] {
      position: sticky;
      top: 0;
      z-index: 50;
    }
  }

  .mk-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4.5rem;
    max-width: 80rem;
    margin-inline: auto;
    padding: 1rem 1.25rem;
  }

  .mk-header-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    /* the glyph follows the name - never the browser's link blue */
    color: var(--primary);
    text-decoration: none;

    & svg {
      width: 1.25rem;
      height: 1.25rem;
      flex-shrink: 0;
    }
  }

  .mk-header-name {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    white-space: nowrap;
  }

  /* nav collapses below the container breakpoint (source: `hidden md:flex`).
     The nav composes the navigation-menu component (.nav-menu-list /
     .nav-menu-trigger / .nav-menu-content) - its dropdown popovers are the
     native Popover API, so the header stays CSS-only. */
  .mk-header-nav {
    display: none;
    align-items: center;
  }

  .mk-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
  }

  /* narrow: the nav moves into a Sheet behind a menu button; secondary
     actions (.mk-header-wide) step aside */
  .mk-header-menu {
    display: inline-flex;
  }
  .mk-header-actions .mk-header-wide {
    display: none;
  }

  /* the navigation inside the sheet: big tap targets, groups with a label */
  .mk-header-sheet-nav {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    margin: 0;
    padding: 0;
    list-style: none;

    & a {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.75rem;
      min-height: 2.75rem;
      padding: 0.5rem 0.75rem;
      border-radius: var(--radius-md);
      color: var(--foreground);
      font-size: 1rem;
      font-weight: 500;
      text-decoration: none;

      &:hover {
        background: var(--accent);
        color: var(--accent-foreground);
      }
      &[aria-current] {
        background: var(--accent);
      }
      &:focus-visible {
        outline: 2px solid var(--ring);
        outline-offset: -2px;
      }
      & small {
        color: var(--muted-foreground);
        font-size: 0.8125rem;
        font-weight: 400;
      }
    }
  }
  .mk-header-sheet-label {
    margin: 0.75rem 0 0.25rem;
    padding-inline: 0.75rem;
    color: var(--muted-foreground);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  .mk-header-sheet-actions {
    display: grid;
    gap: 0.5rem;
  }
  .mk-header-sheet-actions .btn {
    width: 100%;
  }

  @container mk-header (min-width: 40rem) {
    .mk-header-inner {
      padding-inline: 2rem;
    }
    .mk-header-nav {
      display: flex;
    }
    .mk-header-menu {
      display: none;
    }
    .mk-header-actions .mk-header-wide {
      display: inline-flex;
    }
  }

  /* -- variants ------------------------------------------------- */
  /* floating: a blurred pill that hovers over the page (sticky) */
  .mk-header[data-variant="floating"] {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 0.75rem;
    background: transparent;

    & .mk-header-inner {
      max-width: 64rem;
      min-height: 3.25rem;
      padding: 0.375rem 0.5rem 0.375rem 1rem;
      border: 1px solid color-mix(in oklch, var(--border) 80%, transparent);
      border-radius: 999px;
      background: color-mix(in oklch, var(--background) 78%, transparent);
      box-shadow: var(--shadow-lg);
      backdrop-filter: blur(12px) saturate(1.4);
    }
    & .btn {
      border-radius: 999px;
    }
  }

  /* an announcement bar above the header row */
  .mk-header-announcement {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.25rem 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: var(--primary-foreground);
    font-size: 0.8125rem;
    text-align: center;

    & p {
      margin: 0;
    }
    & a {
      display: inline-flex;
      align-items: center;
      gap: 0.25rem;
      color: inherit;
      font-weight: 600;
      text-underline-offset: 3px;
    }
    & svg {
      width: 0.875rem;
      height: 0.875rem;
    }
    & a:focus-visible {
      outline: 2px solid currentColor;
      outline-offset: 2px;
      border-radius: var(--radius-sm);
    }
  }

  /* overlay: transparent over a hero picture, white text */
  .mk-header[data-variant="overlay"] {
    position: absolute;
    inset: 0 0 auto;
    z-index: 5;
    background: transparent;
    color: #fff;

    & .mk-header-brand,
    & .mk-header-name,
    & .nav-menu-link,
    & .btn[data-variant="ghost"] {
      color: inherit;
    }
    & .nav-menu-link:hover {
      background: oklch(1 0 0 / 0.12);
      color: inherit;
    }
    & .nav-menu-link[aria-current] {
      background: oklch(1 0 0 / 0.16);
    }
  }

  /* centered: the brand in the middle, the nav left, the actions right */
  .mk-header[data-variant="centered"] .mk-header-inner {
    display: grid;
    /* minmax(0, …): a wide actions column must not push the brand off-center */
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);

    & .mk-header-brand {
      grid-column: 2;
      grid-row: 1;
    }
    & .mk-header-nav {
      grid-column: 1;
      grid-row: 1;
      justify-self: start;
    }
    & .mk-header-actions {
      grid-column: 3;
      grid-row: 1;
      justify-self: end;
    }
    & .mk-header-name {
      font-size: 1rem;
      font-weight: 600;
      letter-spacing: -0.01em;
    }
  }

  /* search: an inline search field (wide only - the sheet carries it when narrow) */
  .mk-header-search {
    position: relative;
    display: none;
    width: 100%;
    max-width: 20rem;

    & svg {
      position: absolute;
      inset-inline-start: 0.75rem;
      top: 50%;
      translate: 0 -50%;
      width: 1rem;
      height: 1rem;
      color: var(--muted-foreground);
      pointer-events: none;
    }
    & .input {
      padding-inline-start: 2.25rem;
    }
  }

  /* an icon button with a count (cart, inbox) */
  .mk-header-icon {
    position: relative;
  }
  .mk-header-count {
    position: absolute;
    top: -0.125rem;
    inset-inline-end: -0.125rem;
    min-width: 1.125rem;
    height: 1.125rem;
    padding-inline: 0.25rem;
    border: 2px solid var(--background);
    border-radius: 999px;
    background: var(--primary);
    color: var(--primary-foreground);
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 0.875rem;
    text-align: center;
    box-sizing: border-box;
  }

  /* elevate: a sticky header gains a rule and a shadow once the page scrolls */
  @keyframes mk-header-elevate {
    to {
      border-block-end-color: var(--border);
      box-shadow: var(--shadow-md);
    }
  }
  .mk-header[data-elevate] {
    border-block-end: 1px solid transparent;
    animation: mk-header-elevate linear both;
  }
  @supports (animation-timeline: scroll()) {
    .mk-header[data-elevate] {
      animation-timeline: scroll(nearest block);
      animation-range: 0 64px;
    }
  }
  @supports not (animation-timeline: scroll()) {
    .mk-header[data-elevate] {
      animation: none;
      border-block-end-color: var(--border);
    }
  }

  @container mk-header (min-width: 48rem) {
    .mk-header-search {
      display: block;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .mk-header[data-elevate] {
      animation: none;
      border-block-end-color: var(--border);
    }
  }

  @media (forced-colors: active) {
    .mk-header[data-variant="floating"] .mk-header-inner {
      border-color: CanvasText;
    }
    .mk-header-count {
      border-color: Canvas;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    /* navigation-menu suppresses its own transitions; nothing header-side
       animates, so no overrides needed here */
  }

  @media (forced-colors: active) {
    .mk-header {
      border-bottom: 1px solid CanvasText;
    }
  }
}

/* ── components/slider/slider.css ── */
/* -- Slider component ------------------------------------------- */

@layer components {
  /* Everything runs through a few private variables so a .slider-range
     wrapper (two thumbs) can hand its size and color down to both inputs:
     --_track / --_thumb (set by data-size, on the slider or on the range),
     --_c (set by data-tone) and the public --slider-color for any color.
     --_fill resolves them once, here, on the input. */
  .slider {
    --slider-value: 50%;
    --_fill: var(--_c, var(--slider-color, var(--primary)));
    --_t: var(--_track, 0.5rem);
    --_d: var(--_thumb, 1.25rem);
    --_dir: to right;
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    /* the UA gives a range a 2px margin: with width 100% the track would
       overflow its box and drift off a .slider-marks scale */
    margin-inline: 0;
    height: var(--_t);
    border-radius: 9999px;
    background: var(--secondary);
    cursor: pointer;
    outline: none;
    border: none;
    accent-color: var(--_fill);

    /* Track - WebKit (filled via gradient) */
    &::-webkit-slider-runnable-track {
      height: var(--_t);
      border-radius: 9999px;
      background: linear-gradient(
        var(--_dir),
        var(--_fill) 0%,
        var(--_fill) var(--slider-value),
        var(--secondary) var(--slider-value),
        var(--secondary) 100%
      );
    }

    /* Track - Firefox */
    &::-moz-range-track {
      height: var(--_t);
      border-radius: 9999px;
      background: var(--secondary);
      border: none;
    }

    /* Filled portion - Firefox */
    &::-moz-range-progress {
      height: var(--_t);
      border-radius: 9999px;
      background: var(--_fill);
    }

    /* Thumb - WebKit (re-centered on the track: (track - thumb) / 2).
       --slider-thumb-image paints a picture (an emoji, see data-thumb) */
    &::-webkit-slider-thumb {
      -webkit-appearance: none;
      width: var(--_d);
      height: var(--_d);
      border-radius: 50%;
      background:
        var(--slider-thumb-image, none) center / 100% no-repeat,
        var(--background);
      border: 2px solid var(--_fill);
      margin-top: calc((var(--_t) - var(--_d)) / 2);
      cursor: pointer;
      transition:
        box-shadow 150ms,
        scale 150ms;
    }

    /* Thumb - Firefox */
    &::-moz-range-thumb {
      width: var(--_d);
      height: var(--_d);
      border-radius: 50%;
      background:
        var(--slider-thumb-image, none) center / 100% no-repeat,
        var(--background);
      border: 2px solid var(--_fill);
      cursor: pointer;
      transition:
        box-shadow 150ms,
        scale 150ms;
    }

    /* Hover */
    &:hover:not(:disabled) {
      &::-webkit-slider-thumb {
        box-shadow: 0 0 0 4px color-mix(in oklch, var(--_fill) 15%, transparent);
      }
      &::-moz-range-thumb {
        box-shadow: 0 0 0 4px color-mix(in oklch, var(--_fill) 15%, transparent);
      }
    }

    /* Focus */
    &:focus-visible {
      &::-webkit-slider-thumb {
        outline: 2px solid var(--ring);
        outline-offset: 2px;
      }
      &::-moz-range-thumb {
        outline: 2px solid var(--ring);
        outline-offset: 2px;
      }
    }

    /* Disabled */
    &:disabled {
      opacity: 0.5;
      cursor: not-allowed;

      &::-webkit-slider-thumb {
        cursor: not-allowed;
      }
      &::-moz-range-thumb {
        cursor: not-allowed;
      }
    }

    /* RTL: the range runs right to left, so does the fill */
    &:dir(rtl) {
      --_dir: to left;
    }

    /* Vertical orientation */
    &[data-orientation="vertical"] {
      --_dir: to top;
      writing-mode: vertical-lr;
      direction: rtl;
      width: var(--_t);
      height: 12rem;

      &::-webkit-slider-runnable-track {
        width: var(--_t);
        height: auto;
      }
      &::-webkit-slider-thumb {
        margin-top: 0;
        margin-left: calc((var(--_t) - var(--_d)) / 2);
      }
    }

    /* -- Emoji thumb: data-thumb="emoji" (slider.js draws the emoji from
       data-thumb-emoji into --slider-thumb-image) - no ring, no fill disc,
       a bit larger than the plain thumb. */
    &[data-thumb="emoji"] {
      --_d: var(--_thumb, 2rem);

      &::-webkit-slider-thumb {
        border: 0;
        background-color: transparent;
      }
      &::-moz-range-thumb {
        border: 0;
        background-color: transparent;
      }
      &:active::-webkit-slider-thumb {
        scale: 1.15;
      }
      &:active::-moz-range-thumb {
        scale: 1.15;
      }
    }
  }

  /* -- Sizes: track thickness + thumb diameter (md == the default) ----
     On a .slider or on a .slider-range (both inputs inherit). */
  :is(.slider, .slider-range, .slider-marks) {
    &[data-size="xs"] {
      --_track: 0.25rem;
      --_thumb: 0.75rem;
    }
    &[data-size="sm"] {
      --_track: 0.375rem;
      --_thumb: 1rem;
    }
    &[data-size="md"] {
      --_track: 0.5rem;
      --_thumb: 1.25rem;
    }
    &[data-size="lg"] {
      --_track: 0.625rem;
      --_thumb: 1.5rem;
    }
    &[data-size="xl"] {
      --_track: 0.75rem;
      --_thumb: 1.75rem;
    }

    /* -- Tones: success / warning / info / destructive; any other color
       via style="--slider-color: …" */
    &[data-tone="success"] {
      --_c: oklch(0.6 0.15 150);
    }
    &[data-tone="warning"] {
      --_c: oklch(0.78 0.16 75);
    }
    &[data-tone="info"] {
      --_c: oklch(0.6 0.16 250);
    }
    &[data-tone="destructive"] {
      --_c: var(--destructive);
    }
  }

  /* -- Marks: a CSS-only tick scale under a stepped slider ------------
     <div class="slider-marks" aria-hidden="true"> right after the slider
     (or range); each child is a zero-width flex item, so space-between
     lands the tick centres on the thumb-centre travel (inset by half a
     thumb at each end). The tick is generated, the child's text is the
     optional label. It follows the slider's data-size when it is the
     slider's next sibling (or set data-size on the marks). */
  .slider-marks {
    display: flex;
    justify-content: space-between;
    padding-inline: calc(var(--_thumb, 1.25rem) / 2);
    margin-top: 0.375rem;
    font-size: 0.6875rem;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: var(--muted-foreground);

    & > * {
      /* zero-width: flex-basis 0 alone leaves min-width:auto, which would
         widen the item to its label and push the tick off its step */
      flex: 0 0 0;
      min-width: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.25rem;
      white-space: nowrap;
    }
    & > *::before {
      content: "";
      width: 1px;
      height: 0.375rem;
      background: var(--border);
    }
    /* a tick without a label (an empty child) stays a short tick */
    & > :empty::before {
      height: 0.25rem;
    }
  }
  :is(.slider, .slider-range)[data-size="xs"] + .slider-marks:not([data-size]) {
    --_thumb: 0.75rem;
  }
  :is(.slider, .slider-range)[data-size="sm"] + .slider-marks:not([data-size]) {
    --_thumb: 1rem;
  }
  :is(.slider, .slider-range)[data-size="lg"] + .slider-marks:not([data-size]) {
    --_thumb: 1.5rem;
  }
  :is(.slider, .slider-range)[data-size="xl"] + .slider-marks:not([data-size]) {
    --_thumb: 1.75rem;
  }

  /* -- Range: two thumbs on one track ---------------------------------
     Two .slider inputs stacked in a .slider-range; only their thumbs take
     the pointer, the wrapper paints one track with the span between the
     thumbs filled (slider.js keeps --range-from / --range-to in sync and
     the low value <= the high one). Each input keeps its own keyboard,
     label and State API. */
  .slider-range {
    --range-from: 25%;
    --range-to: 75%;
    --_fill: var(--_c, var(--slider-color, var(--primary)));
    --_dir: to right;
    position: relative;
    display: block;
    width: 100%;
    height: var(--_thumb, 1.25rem);

    &::before {
      content: "";
      position: absolute;
      inset-inline: 0;
      top: 50%;
      height: var(--_track, 0.5rem);
      translate: 0 -50%;
      border-radius: 9999px;
      background: linear-gradient(
        var(--_dir),
        var(--secondary) var(--range-from),
        var(--_fill) var(--range-from),
        var(--_fill) var(--range-to),
        var(--secondary) var(--range-to)
      );
    }
    &:dir(rtl) {
      --_dir: to left;
    }

    & > .slider {
      position: absolute;
      inset-inline: 0;
      top: 50%;
      translate: 0 -50%;
      margin: 0;
      background: none;
      pointer-events: none;

      &::-webkit-slider-runnable-track {
        background: none;
      }
      &::-moz-range-track {
        background: none;
      }
      &::-moz-range-progress {
        background: none;
      }
      &::-webkit-slider-thumb {
        pointer-events: auto;
      }
      &::-moz-range-thumb {
        pointer-events: auto;
      }
    }
    /* the thumb last moved stays on top (both can reach the same value) */
    & > .slider[data-active] {
      z-index: 1;
    }

    &:has(.slider:disabled) {
      opacity: 0.5;
    }
  }

  /* -- Field: icons, emojis and values around a slider ----------------- */
  .slider-field {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;

    & > :is(.slider, .slider-range) {
      flex: 1 1 auto;
      min-width: 0;
    }
  }
  .slider-icon {
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    font-size: 1.125rem;
    line-height: 1;
    color: var(--muted-foreground);

    & svg {
      width: 1.125rem;
      height: 1.25rem;
    }
  }
  .slider-value {
    flex-shrink: 0;
    min-width: 3.5em;
    text-align: end;
    font-size: 0.875rem;
    font-variant-numeric: tabular-nums;
    color: var(--foreground);
  }
  /* a scale under the track: the first and last labels align to the ends */
  .slider-scale {
    display: flex;
    justify-content: space-between;
    margin-top: 0.375rem;
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
    color: var(--muted-foreground);
  }

  /* Reduced motion */
  @media (prefers-reduced-motion: reduce) {
    .slider {
      &::-webkit-slider-thumb {
        transition: none;
      }
      &::-moz-range-thumb {
        transition: none;
      }
    }
  }

  /* High contrast */
  @media (prefers-contrast: more) {
    .slider-marks {
      color: var(--foreground);
      & > *::before {
        background: var(--foreground);
      }
    }
    .slider {
      &::-webkit-slider-thumb {
        border-width: 3px;
      }
      &::-moz-range-thumb {
        border-width: 3px;
      }
    }
  }

  /* Forced colors (Windows High Contrast Mode) */
  @media (forced-colors: active) {
    .slider-marks {
      color: CanvasText;
      & > *::before {
        background: CanvasText;
      }
    }
    .slider {
      &::-webkit-slider-runnable-track {
        background: ButtonFace;
        border: 1px solid ButtonText;
      }
      &::-moz-range-track {
        background: ButtonFace;
        border: 1px solid ButtonText;
      }
      &::-moz-range-progress {
        background: Highlight;
      }
      &::-webkit-slider-thumb {
        background: ButtonText;
        border-color: ButtonText;
      }
      &::-moz-range-thumb {
        background: ButtonText;
        border-color: ButtonText;
      }

      &:focus-visible {
        &::-webkit-slider-thumb {
          outline-color: Highlight;
        }
        &::-moz-range-thumb {
          outline-color: Highlight;
        }
      }
    }
    .slider-range::before {
      background: Highlight;
    }
  }
}

/* ── components/spinner/spinner.css ── */
@layer components {
  .spinner {
    width: 1rem;
    height: 1rem;
    animation: spinner-rotate 1s linear infinite;
    color: var(--muted-foreground);
    flex-shrink: 0;

    &[data-size="xs"] {
      width: 0.625rem;
      height: 0.625rem;
    }

    &[data-size="sm"] {
      width: 0.875rem;
      height: 0.875rem;
    }

    &[data-size="md"] {
      width: 1.25rem;
      height: 1.25rem;
    }

    &[data-size="lg"] {
      width: 1.5rem;
      height: 1.5rem;
    }

    &[data-size="xl"] {
      width: 2rem;
      height: 2rem;
    }
  }

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

/* Accessibility: suppress motion for users who request it (REQUIRED for all
   components - AGENTS.md "Accessibility CSS"). Near-zero duration instead of
   `none` keeps transitionend/animationend (and discrete display flips)
   firing so JS state machines that await them keep working. */
@media (prefers-reduced-motion: reduce) {
  @layer components {
    .spinner,
    .spinner *,
    .spinner::before,
    .spinner::after,
    .spinner *::before,
    .spinner *::after,
    .spinner::backdrop {
      transition-duration: 0.01ms !important;
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
    }
  }
}

/* ── components/start-button/start-button.css ── */
/* -- Start Button component ---------------------------------------
   The button that opens a Start Menu - a native popovertarget, no script of
   its own (the Start Menu anchors itself to it and keeps aria-expanded). An
   icon, a label or both; pressed while its menu is open. A look restyles it
   (a bevelled "Start", a green pill, a round orb). */

@layer components {
  .start-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 2.5rem;
    min-width: 2.5rem;
    padding-inline: 0.625rem;
    border: 0;
    border-radius: var(--radius-md);
    background: none;
    color: inherit;
    font: inherit;
    font-weight: 600;
    cursor: default;

    &:hover {
      background: color-mix(in oklch, var(--accent) 70%, transparent);
    }
    &[aria-expanded="true"] {
      background: var(--accent);
      color: var(--accent-foreground);
    }
    &:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: -2px;
    }
    & > :is(svg, img, .start-button-icon) {
      width: 1.375rem;
      height: 1.375rem;
      flex: none;
    }
    /* icon only: the label stays for assistive technology */
    &[data-variant="icon"] .start-button-label {
      position: absolute;
      width: 1px;
      height: 1px;
      overflow: hidden;
      clip-path: inset(50%);
      white-space: nowrap;
    }
  }

  @media (forced-colors: active) {
    .start-button[aria-expanded="true"] {
      outline: 2px solid Highlight;
    }
  }
}

/* ── components/start-menu/start-menu.css ── */
/* -- Start Menu component -----------------------------------------
   A popover anchored to its Start Button (above it, flipped below when there
   is no room): a head with the user, a search field, pinned items in a grid,
   all items in a list - a folder opens its own popover beside it - and the
   power buttons at the foot. While searching, the matches of every list and
   folder show in one list. A look restyles it; the markup stays. */

@layer components {
  .start-menu {
    position: fixed;
    inset: auto;
    margin: 0;
    position-area: top span-right;
    position-try-fallbacks: flip-block, flip-inline;
    box-sizing: border-box;
    width: min(22rem, calc(100vw - 1rem));
    max-height: min(32rem, 80vh);
    padding: 0.75rem;
    display: none;
    flex-direction: column;
    gap: 0.625rem;
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--popover);
    color: var(--popover-foreground);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    box-shadow: var(--shadow-xl);

    &:popover-open {
      display: flex;
    }
  }

  .start-menu-head {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-weight: 600;
  }

  .start-menu-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.625rem;
    border: 1px solid var(--input);
    border-radius: var(--radius-md);
    background: var(--background);
    color: var(--muted-foreground);

    & svg {
      width: 1rem;
      height: 1rem;
      flex: none;
    }
    & input {
      flex: 1;
      min-width: 0;
      border: 0;
      outline: none;
      background: none;
      color: var(--foreground);
      font: inherit;
    }
    &:focus-within {
      border-color: var(--ring);
    }
  }

  .start-menu-heading {
    margin: 0.25rem 0.25rem 0;
    color: var(--muted-foreground);
    font-size: 0.75rem;
    font-weight: 600;
  }

  .start-menu-pinned {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(4.75rem, 1fr));
    gap: 0.25rem;

    & .start-menu-item {
      flex-direction: column;
      gap: 0.375rem;
      padding-block: 0.625rem;
      text-align: center;
      font-size: 0.75rem;
    }
    & .start-menu-icon {
      width: 2rem;
      height: 2rem;
    }
  }

  .start-menu-list {
    display: flex;
    flex-direction: column;
  }

  .start-menu-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.4375rem 0.625rem;
    border: 0;
    border-radius: var(--radius-md);
    background: none;
    color: inherit;
    font: inherit;
    text-align: start;
    cursor: default;
    outline: none;

    &:is(:hover, :focus-visible, [aria-expanded="true"]) {
      background: var(--accent);
      color: var(--accent-foreground);
    }
    &:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: -2px;
    }
    &[disabled] {
      opacity: 0.5;
    }
    /* a folder: an arrow at the end */
    &[aria-haspopup]::after {
      content: "";
      margin-inline-start: auto;
      width: 0.375rem;
      height: 0.375rem;
      border-block-start: 1.5px solid currentColor;
      border-inline-end: 1.5px solid currentColor;
      rotate: 45deg;
    }
  }

  .start-menu-icon {
    display: grid;
    place-items: center;
    width: 1.25rem;
    height: 1.25rem;
    flex: none;

    & > :is(svg, img, .desktop-glyph) {
      width: 100%;
      height: 100%;
    }
  }

  .start-menu-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* a folder's popover, beside its item */
  .start-menu-sub {
    position: fixed;
    inset: auto;
    margin: 0;
    position-area: right span-bottom;
    position-try-fallbacks: flip-inline, flip-block;
    box-sizing: border-box;
    min-width: 12rem;
    max-height: 70vh;
    padding: 0.375rem;
    display: none;
    flex-direction: column;
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--popover);
    color: var(--popover-foreground);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    box-shadow: var(--shadow-lg);

    &:popover-open {
      display: flex;
    }
  }

  .start-menu-foot {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-block-start: auto;
    padding-block-start: 0.5rem;
    border-block-start: 1px solid var(--border);

    & .start-menu-item {
      width: auto;
    }
    & .start-menu-item:first-child {
      margin-inline-end: auto;
    }
  }

  .start-menu-empty {
    margin: 0;
    padding: 0.75rem;
    color: var(--muted-foreground);
    text-align: center;
  }

  /* searching: every list's matches in one list; folders, pinned items and the rest step aside */
  .start-menu[data-searching] {
    & .start-menu-pinned,
    & .start-menu-heading,
    & .start-menu-item[aria-haspopup],
    & .start-menu-list .start-menu-item:not([data-match]) {
      display: none;
    }
    & .start-menu-sub {
      display: contents;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .start-menu,
    .start-menu-sub {
      transition: none;
    }
  }

  @media (forced-colors: active) {
    .start-menu-item:is(:hover, :focus-visible, [aria-expanded="true"]) {
      background: Highlight;
      color: HighlightText;
    }
  }
}

/* ── components/swap/swap.css ── */
/* -- Swap component -------------------------------------------- */

@layer components {
  .swap {
    /* the faces stack in one grid cell, so the box sizes to the widest one
       and no absolute positioning / JS measurement is needed */
    position: relative;
    display: inline-grid;
    place-items: center;
    min-width: 2.25rem;
    min-height: 2.25rem;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1;
    color: var(--foreground);
    cursor: pointer;
    user-select: none;
    vertical-align: middle;
    /* flip needs depth; harmless for the other variants */
    perspective: 40rem;

    /* the checkbox IS the state — visually hidden but focusable and
       hit-testable across the whole control (no .sr-only dependency) */
    & > input[type="checkbox"] {
      grid-area: 1 / 1;
      appearance: none;
      -webkit-appearance: none;
      width: 100%;
      height: 100%;
      margin: 0;
      padding: 0;
      border: 0;
      opacity: 0;
      cursor: inherit;
    }

    & .swap-on,
    & .swap-off,
    & .swap-indeterminate {
      grid-area: 1 / 1;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      pointer-events: none;
      backface-visibility: hidden;
      transition:
        opacity 300ms cubic-bezier(0.4, 0, 0.2, 1),
        rotate 300ms cubic-bezier(0.4, 0, 0.2, 1),
        scale 300ms cubic-bezier(0.4, 0, 0.2, 1);
    }

    & svg:not([class*="size-"]) {
      width: 1.25rem;
      height: 1.25rem;
      flex-shrink: 0;
    }

    /* -- Faces: default (off) ------------------------------- */
    & .swap-off {
      opacity: 1;
    }

    /* -- Faces: indeterminate ------------------------------- */
    &:has(> input:indeterminate) {
      & .swap-off {
        opacity: 0;
      }
      & .swap-indeterminate {
        opacity: 1;
      }
    }

    /* -- Faces: on (checked, or forced via data-active) ------ */
    &:has(> input:checked),
    &[data-active] {
      & .swap-off,
      & .swap-indeterminate {
        opacity: 0;
      }
      & .swap-on {
        opacity: 1;
      }
    }

    /* -- Variant: rotate ------------------------------------ */
    &[data-variant="rotate"] {
      & .swap-on,
      & .swap-indeterminate {
        rotate: -45deg;
      }

      &:has(> input:indeterminate) {
        & .swap-off {
          rotate: 45deg;
        }
        & .swap-indeterminate {
          rotate: 0deg;
        }
      }

      &:has(> input:checked),
      &[data-active] {
        & .swap-off,
        & .swap-indeterminate {
          rotate: 45deg;
        }
        & .swap-on {
          rotate: 0deg;
        }
      }
    }

    /* -- Variant: flip -------------------------------------- */
    &[data-variant="flip"] {
      & .swap-on,
      & .swap-indeterminate {
        rotate: y 180deg;
      }

      &:has(> input:indeterminate) {
        & .swap-off {
          rotate: y -180deg;
        }
        & .swap-indeterminate {
          rotate: y 0deg;
        }
      }

      &:has(> input:checked),
      &[data-active] {
        & .swap-off,
        & .swap-indeterminate {
          rotate: y -180deg;
        }
        & .swap-on {
          rotate: y 0deg;
        }
      }
    }

    /* -- Sizes ---------------------------------------------- */
    &[data-size="sm"] {
      min-width: 2rem;
      min-height: 2rem;
      font-size: 0.75rem;

      & svg:not([class*="size-"]) {
        width: 1rem;
        height: 1rem;
      }
    }

    &[data-size="lg"] {
      min-width: 2.75rem;
      min-height: 2.75rem;
      font-size: 1.125rem;

      & svg:not([class*="size-"]) {
        width: 1.5rem;
        height: 1.5rem;
      }
    }

    /* -- Interaction states --------------------------------- */
    &:hover:not(:has(> input:disabled)) {
      background-color: var(--accent);
      color: var(--accent-foreground);
    }

    &:has(> input:focus-visible) {
      outline: 2px solid var(--ring);
      outline-offset: 2px;
    }

    /* a disabled input never toggles - no pointer-events: none, so the
       not-allowed cursor shows */
    &:has(> input:disabled) {
      opacity: 0.5;
      cursor: not-allowed;
    }
  }

  /* Accessibility: honour a reduced-motion request — the faces still swap,
     they just do not animate (near-zero duration keeps transitionend firing). */
  @media (prefers-reduced-motion: reduce) {
    .swap .swap-on,
    .swap .swap-off,
    .swap .swap-indeterminate {
      transition-duration: 0.01ms !important;
    }
  }

  @media (prefers-contrast: more) {
    .swap {
      border: 2px solid transparent;

      &:has(> input:checked),
      &[data-active] {
        border-color: currentColor;
      }
    }
  }

  @media (forced-colors: active) {
    .swap {
      border: 1px solid ButtonText;
      color: ButtonText;
      forced-color-adjust: none;

      &:has(> input:checked),
      &[data-active] {
        background: Highlight;
        color: HighlightText;
      }

      &:has(> input:disabled) {
        border-color: GrayText;
        color: GrayText;
      }
    }
  }
}

/* ── components/switch/switch.css ── */
/* -- Switch component ------------------------------------------- */

@layer components {
  .switch {
    appearance: none;
    margin: 0; /* kill the UA's ~4px input margin - breaks flex/grid rhythm */
    width: 2.25rem;
    height: 1.25rem;
    border-radius: 9999px;
    background: var(--input);
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: background-color 150ms;
    border: none;
    outline: none;

    /* Thumb */
    &::after {
      content: "";
      position: absolute;
      top: 2px;
      left: 2px;
      width: calc(1.25rem - 4px);
      height: calc(1.25rem - 4px);
      border-radius: 50%;
      background: var(--background);
      transition: transform 150ms;
      box-shadow: 0 1px 2px oklch(0 0 0 / 0.15);
    }

    &:checked {
      background: var(--primary);

      &::after {
        transform: translateX(1rem);
      }
    }

    &:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: 2px;
    }

    /* Disabled = legible but inert: never an opacity fade (0.5 on a light
       --border edge left a ghost you had to look for). The shape keeps its
       full-strength edge, the surface turns muted, a chosen state keeps a
       softened primary fill, and the label goes muted with the no-entry
       cursor - "a choice that exists but is unavailable right now". */
    &:disabled {
      cursor: not-allowed;
      /* the off track keeps its full --input shade; an edge ring holds the
         outline even where --input sits close to the page */
      box-shadow: inset 0 0 0 1px var(--border);

      &::after {
        background: var(--muted);
        box-shadow: 0 0 0 1px var(--border);
      }

      &:checked {
        background: color-mix(in oklch, var(--primary) 45%, var(--background));
        box-shadow: none;

        &::after {
          background: var(--background);
          box-shadow: none;
        }
      }
    }

    &[aria-invalid="true"] {
      background: var(--destructive);

      &:checked {
        background: var(--destructive);
      }
    }

    /* -- Sizes ----------------------------------------------- */
    &[data-size="xs"] {
      width: 1.5rem;
      height: 0.875rem;

      &::after {
        width: calc(0.875rem - 4px);
        height: calc(0.875rem - 4px);
      }

      &:checked::after {
        transform: translateX(0.625rem);
      }
    }

    &[data-size="sm"] {
      width: 1.75rem;
      height: 1rem;

      &::after {
        width: calc(1rem - 4px);
        height: calc(1rem - 4px);
      }

      &:checked::after {
        transform: translateX(0.75rem);
      }
    }

    &[data-size="md"] {
      /* same as the default - explicit member of the scale */
    }

    &[data-size="lg"] {
      width: 2.75rem;
      height: 1.5rem;

      &::after {
        width: calc(1.5rem - 4px);
        height: calc(1.5rem - 4px);
      }

      &:checked::after {
        transform: translateX(1.25rem);
      }
    }

    &[data-size="xl"] {
      width: 3.25rem;
      height: 1.75rem;

      &::after {
        width: calc(1.75rem - 4px);
        height: calc(1.75rem - 4px);
      }

      &:checked::after {
        transform: translateX(1.5rem);
      }
    }
  }

  /* -- Switch item layout ----------------------------------- */
  .switch-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;

    & > label {
      font-size: 0.875rem;
      cursor: pointer;
    }
  }

  /* With-description layout: label + description stack beside the switch.
     The switch spans both rows, so grid auto-placement (definite-row items
     first) pins it to column 1 - the track template must therefore lead with
     the auto (switch) track. `1fr auto` here once placed the text in the far
     right track (reported: "description renders on the far right"). */
  .switch-item-block {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0 0.75rem;
    align-items: center;

    & > .switch {
      grid-row: 1 / 3;
    }

    & > label {
      font-size: 0.875rem;
      font-weight: 500;
      cursor: pointer;
    }

    & > .switch-description {
      font-size: 0.8125rem;
      color: var(--muted-foreground);
      line-height: 1.5;
    }
  }

  /* Gap hit area: inside an item layout the control's click target spans
     the gap to its label (a transparent ::before, part of the input's own
     hit box), so clicking the whitespace between control and text toggles
     too - the label's `for` covers the text itself. Inline-end only: the
     label always sits after the control (block layouts place it in the
     second grid column). */
  :is(.switch-item) > .switch::before {
    content: "";
    position: absolute;
    inset-block: -0.25rem;
    inset-inline: -0.25rem calc(-1 * 0.5rem);
  }

  :is(.switch-item-block) > .switch::before {
    content: "";
    position: absolute;
    inset-block: -0.25rem;
    inset-inline: -0.25rem calc(-1 * 0.75rem);
  }

  /* Label disabled styling via :has() */
  .switch-item:has(.switch:disabled),
  .switch-item-block:has(.switch:disabled) {
    cursor: not-allowed;

    /* the words say "unavailable" too - no hand pointer over a label whose
       click cannot flip the switch */
    & > label {
      color: var(--muted-foreground);
      cursor: not-allowed;
    }
  }

  /* -- Accessibility ---------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .switch,
    .switch::after {
      transition: none;
    }
  }

  @media (forced-colors: active) {
    .switch {
      background: ButtonFace;
      border: 1px solid ButtonText;

      &::after {
        background: ButtonText;
        box-shadow: none;
      }

      &:checked {
        background: Highlight;
        border-color: Highlight;

        &::after {
          background: HighlightText;
        }
      }

      &:disabled {
        border-color: GrayText;

        &::after {
          background: GrayText;
        }
      }
    }
  }
}

/* ── components/tabs/tabs.css ── */
/* -- Tabs component -------------------------------------------- */

@layer components {
  /* -- Default (pill) variant ----------------------------------- */
  /* An inline GRID, one minmax(0, max-content) track per tab: when the row
     is too narrow, every track grows from 0 at the same pace, so short labels
     reach their full width first and only the long ones are cut ("…") -
     flex-shrink would clip a short "Churn" as eagerly as a long label. */
  .tab-list {
    display: inline-grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, max-content);
    align-items: center;
    /* never wider than its container: the triggers shrink and ellipsize */
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    background: var(--muted);
    border-radius: var(--radius-lg);
    padding: 0.25rem;
    gap: 0.125rem;

    /* -- Sizes: trigger font + padding scale (set data-size on .tab-list).
       :where() keeps these at one class of specificity over the plain
       .tab-trigger base. md == each variant's own base padding, so md is
       selectable everywhere without a visual change. Paddings are logical
       (block / inline), so they turn with the vertical labels of side tabs.
       The line variant's trigger base (0.5rem/1rem, nested in
       [data-variant="line"]) outranks the :where() rules, so its overrides
       are un-:where()'d (two attrs). */
    &:where([data-size="xs"]) .tab-trigger {
      padding-block: 0.25rem;
      padding-inline: 0.5rem;
      font-size: 0.75rem;
    }
    &:where([data-size="sm"]) .tab-trigger {
      padding-block: 0.3125rem;
      padding-inline: 0.625rem;
      font-size: 0.8125rem;
    }
    &:where([data-size="md"]) .tab-trigger {
      padding-block: 0.375rem;
      padding-inline: 0.75rem;
      font-size: 0.875rem;
    }
    &:where([data-size="lg"]) .tab-trigger {
      padding-block: 0.5rem;
      padding-inline: 1rem;
      font-size: 1rem;
    }
    &:where([data-size="xl"]) .tab-trigger {
      padding-block: 0.625rem;
      padding-inline: 1.25rem;
      font-size: 1.125rem;
    }
    &[data-variant="line"][data-size="xs"] .tab-trigger {
      padding-block: 0.25rem;
      padding-inline: 0.5rem;
    }
    &[data-variant="line"][data-size="sm"] .tab-trigger {
      padding-block: 0.375rem;
      padding-inline: 0.75rem;
    }
    &[data-variant="line"][data-size="md"] .tab-trigger {
      padding-block: 0.5rem;
      padding-inline: 1rem;
    }
    &[data-variant="line"][data-size="lg"] .tab-trigger {
      padding-block: 0.625rem;
      padding-inline: 1.25rem;
    }
    &[data-variant="line"][data-size="xl"] .tab-trigger {
      padding-block: 0.75rem;
      padding-inline: 1.5rem;
    }

    /* -- Line variant --------------------------------------------- */
    &[data-variant="line"] {
      background: transparent;
      border-radius: 0;
      padding: 0;
      gap: 0;
      border-bottom: 1px solid var(--border);

      & .tab-trigger {
        border-radius: 0;
        padding-block: 0.5rem;
        padding-inline: 1rem;
        border-bottom: 2px solid transparent;
        margin-bottom: -1px;

        &[aria-selected="true"] {
          background: transparent;
          color: var(--foreground);
          border-bottom-color: var(--primary);
          box-shadow: none;
        }
      }
    }

    /* -- Vertical orientation ------------------------------------ */
    &[aria-orientation="vertical"] {
      grid-auto-flow: row;
      grid-auto-rows: minmax(0, max-content);
      grid-auto-columns: auto;
      align-items: stretch;
      width: auto;

      & .tab-trigger {
        text-align: start;
      }
    }
  }

  /* A trigger is a BLOCK box (not inline-flex): text-overflow only works on
     a block container's own line, and a flex container would wrap a bare
     label in an anonymous box that never ellipsizes. Icons and emoji ride
     inline in front of the label - svg / img / .tab-icon - so plain
     <button>Label</button> markup keeps working and a long label ends in "…"
     when the list runs out of room (horizontal and vertical alike). */
  .tab-trigger {
    display: block;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
    line-height: 1.25rem;
    padding-block: 0.375rem;
    padding-inline: 0.75rem;
    border-radius: calc(var(--radius) * 0.6);
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    background: transparent;
    color: var(--muted-foreground);
    cursor: pointer;
    transition: all 150ms ease;
    outline: none;

    & :is(svg, img, .tab-icon) {
      display: inline-block;
      vertical-align: middle;
      margin-inline-end: 0.5em;
      line-height: 1;
    }
    & :is(svg, img) {
      inline-size: 1em;
      block-size: 1em;
      translate: 0 -0.0625em;
    }

    &[aria-selected="true"] {
      background: var(--background);
      color: var(--foreground);
      box-shadow:
        0 1px 3px oklch(0 0 0 / 0.08),
        0 0 0 1px var(--border);
    }

    &:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: 2px;
    }

    &:disabled {
      cursor: not-allowed;
      opacity: 0.5;
    }
  }

  /* -- Layout: which side of the panel the tabs sit on ---------
     data-side="top|bottom|left|right" on .tabs (default top; a vertical
     tablist without data-side keeps the old settings-nav layout) and
     data-align="start|center|end" for where the tabs cluster along that
     edge (top/bottom: start = left; left/right: start = top). The DOM order
     never changes - tablist first - only the visual side. :where() keeps the
     side selectors at zero specificity, so variants override them cleanly. */
  .tabs {
    display: flex;
    flex-direction: column;
    min-width: 0;

    & > .tab-list {
      align-self: flex-start;
    }
    &[data-align="center"] > .tab-list {
      align-self: center;
    }
    &[data-align="end"] > .tab-list {
      align-self: flex-end;
    }

    &:where([data-side="bottom"]) {
      & > .tab-list {
        order: 2;
      }
      & > .tab-content {
        margin-top: 0;
        margin-bottom: 0.75rem;
      }
    }

    /* the older aria-orientation-only markup: a settings nav beside the
       panel, horizontal labels (ellipsized past 40% of the width) */
    &:where(:not([data-side]):has(> .tab-list[aria-orientation="vertical"])) {
      flex-direction: row;
      align-items: flex-start;
      gap: 1rem;

      & > .tab-list {
        max-width: 40%;
      }
      & > .tab-content {
        margin: 0;
        flex: 1;
        min-width: 0;
      }
      &:dir(rtl) {
        flex-direction: row-reverse;
      }
    }

    /* data-side left / right: a two-column grid. The tab column has
       height 0 + min-height 100% - it adds nothing to the row, so the PANEL
       decides the height and the column fills it: when the labels need more
       room than the panel is tall, they shrink and ellipsize. left / right
       are physical sides, also in RTL. */
    &:where([data-side="left"], [data-side="right"]) {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr);
      grid-template-areas: "list panel";
      column-gap: 1rem;

      & > .tab-list {
        grid-area: list;
        grid-auto-flow: row;
        grid-auto-rows: minmax(0, max-content);
        grid-auto-columns: auto;
        align-items: stretch;
        align-self: stretch;
        align-content: start;
        height: 0;
        min-height: 100%;
        max-width: none;
      }
      &[data-align="center"] > .tab-list {
        align-content: center;
      }
      &[data-align="end"] > .tab-list {
        align-content: end;
      }
      & > .tab-content {
        grid-area: panel;
        margin: 0;
        min-width: 0;
      }

      /* the labels run vertically along the panel edge - right-hand tabs
         read top to bottom, left-hand ones bottom to top (like book spines;
         sideways-lr where supported, else top to bottom too). The logical
         trigger paddings turn with the writing mode, and icons and emoji
         turn with the label: text-orientation: sideways lays emoji on
         their side like any other glyph, and svg / img (which a vertical
         line would keep upright) rotate a quarter turn. */
      & > .tab-list .tab-trigger {
        writing-mode: vertical-rl;
        text-orientation: sideways;
        text-align: center;

        & :is(svg, img) {
          rotate: 90deg;
        }
      }
    }
    &:where([data-side="right"]) {
      grid-template-columns: minmax(0, 1fr) auto;
      grid-template-areas: "panel list";
    }
    &:where([data-side="left"]):dir(rtl) {
      grid-template-columns: minmax(0, 1fr) auto;
      grid-template-areas: "panel list";
    }
    &:where([data-side="right"]):dir(rtl) {
      grid-template-columns: auto minmax(0, 1fr);
      grid-template-areas: "list panel";
    }
    @supports (writing-mode: sideways-lr) {
      /* sideways-lr lays emoji on their side, but svg / img keep their
         orientation: a quarter turn back, so they point up the line */
      &:where([data-side="left"]) > .tab-list .tab-trigger {
        writing-mode: sideways-lr;

        & :is(svg, img) {
          rotate: -90deg;
        }
      }
    }
  }

  /* line variant: the rule sits on the edge that faces the panel (physical
     sides for left / right - the trigger's own writing mode is vertical, so
     its logical inline-end would point down) */
  .tabs[data-side="bottom"] > .tab-list[data-variant="line"] {
    border-bottom: none;
    border-top: 1px solid var(--border);

    & .tab-trigger {
      border-bottom: none;
      border-top: 2px solid transparent;
      margin-bottom: 0;
      margin-top: -1px;

      &[aria-selected="true"] {
        border-top-color: var(--primary);
      }
    }
  }
  .tabs:is([data-side="left"], [data-side="right"], :not([data-side]):has(> .tab-list[aria-orientation="vertical"]))
    > .tab-list[data-variant="line"] {
    border-bottom: none;

    & .tab-trigger {
      border-bottom: none;
      margin-bottom: 0;
    }
  }
  .tabs:is([data-side="left"], :not([data-side]):has(> .tab-list[aria-orientation="vertical"]))
    > .tab-list[data-variant="line"] {
    border-right: 1px solid var(--border);

    & .tab-trigger {
      border-right: 2px solid transparent;
      margin-right: -1px;

      &[aria-selected="true"] {
        border-right-color: var(--primary);
      }
    }
  }
  .tabs[data-side="right"] > .tab-list[data-variant="line"] {
    border-left: 1px solid var(--border);

    & .tab-trigger {
      border-left: 2px solid transparent;
      margin-left: -1px;

      &[aria-selected="true"] {
        border-left-color: var(--primary);
      }
    }
  }

  /* -- Attached variant: folder tabs joined to the panel's card --
     data-variant="attached" on the .tab-list; each panel holds a .card.
     The selected tab takes the card surface and covers the card's border
     where they meet, so tab and card read as one shape. The card corner the
     tabs grow from is squared; every ROUNDED corner keeps the tabs a card
     radius (--radius-xl) away, so no tab ever sits on a curve - start keeps
     the far end clear, end the near one, center both. */
  .tab-list[data-variant="attached"] {
    background: transparent;
    border-radius: 0;
    padding: 0;
    gap: 0.25rem;
    position: relative;
    z-index: 1;

    & .tab-trigger {
      border: 1px solid var(--border);
      background: var(--muted);
      box-shadow: none;
      border-radius: var(--radius-md) var(--radius-md) 0 0;

      &[aria-selected="true"] {
        background: var(--card);
        color: var(--card-foreground);
        box-shadow: none;
        border-bottom-color: var(--card);
      }
    }
  }
  .tabs:has(> .tab-list[data-variant="attached"]) {
    gap: 0;
    column-gap: 0;

    & > .tab-content {
      margin: 0;
    }

    /* top (default) / bottom: the tabs overlap the card border by 1px and
       stay clear of the rounded corner(s) along the row */
    & > .tab-list[data-variant="attached"] {
      margin-bottom: -1px;
      margin-inline-end: var(--radius-xl);
      max-width: calc(100% - var(--radius-xl));
    }
    &[data-align="end"] > .tab-list[data-variant="attached"] {
      margin-inline: var(--radius-xl) 0;
    }
    &[data-align="center"] > .tab-list[data-variant="attached"] {
      margin-inline: var(--radius-xl);
      max-width: calc(100% - 2 * var(--radius-xl));
    }

    &[data-side="bottom"] > .tab-list[data-variant="attached"] {
      margin-top: -1px;
      margin-bottom: 0;

      & .tab-trigger {
        border-radius: 0 0 var(--radius-md) var(--radius-md);
        &[aria-selected="true"] {
          border-bottom-color: var(--border);
          border-top-color: var(--card);
        }
      }
    }

    /* left / right (and the legacy column): the gap runs down the column */
    &:is([data-side="left"], [data-side="right"], :not([data-side]):has(> .tab-list[aria-orientation="vertical"])) {
      & > .tab-list[data-variant="attached"] {
        margin-block: 0;
        margin-inline: 0;
        max-width: none;
        grid-auto-flow: row;
        grid-auto-rows: minmax(0, max-content);
        grid-auto-columns: auto;
        padding-bottom: var(--radius-xl);

        & .tab-trigger {
          width: 100%;
        }
      }
      &[data-align="end"] > .tab-list[data-variant="attached"] {
        padding-block: var(--radius-xl) 0;
      }
      &[data-align="center"] > .tab-list[data-variant="attached"] {
        padding-block: var(--radius-xl);
      }
    }
    /* legacy column (a flex row): the card grows to the column's height */
    &:not([data-side]):has(> .tab-list[aria-orientation="vertical"]) {
      & > .tab-list[data-variant="attached"] {
        max-width: 40%;
      }
      & > .tab-content:not([hidden]) {
        align-self: stretch;
        display: flex;
        flex-direction: column;

        & > .card {
          flex: 1;
        }
      }
    }
    &:is([data-side="left"], :not([data-side]):has(> .tab-list[aria-orientation="vertical"]))
      > .tab-list[data-variant="attached"] {
      margin-right: -1px;

      & .tab-trigger {
        border-radius: var(--radius-md) 0 0 var(--radius-md);
        &[aria-selected="true"] {
          border-bottom-color: var(--border);
          border-right-color: var(--card);
        }
      }
    }
    &[data-side="right"] > .tab-list[data-variant="attached"] {
      margin-left: -1px;

      & .tab-trigger {
        border-radius: 0 var(--radius-md) var(--radius-md) 0;
        &[aria-selected="true"] {
          border-bottom-color: var(--border);
          border-left-color: var(--card);
        }
      }
    }

    /* the card corner the aligned tabs grow from is square */
    &:not([data-side]):not(:has(> .tab-list[aria-orientation="vertical"])):not([data-align="center"]):not(
        [data-align="end"]
      )
      > .tab-content
      > .card {
      border-start-start-radius: 0;
    }
    &:not([data-side]):not(:has(> .tab-list[aria-orientation="vertical"]))[data-align="end"] > .tab-content > .card {
      border-start-end-radius: 0;
    }
    &[data-side="top"]:not([data-align="center"]):not([data-align="end"]) > .tab-content > .card {
      border-start-start-radius: 0;
    }
    &[data-side="top"][data-align="end"] > .tab-content > .card {
      border-start-end-radius: 0;
    }
    &[data-side="bottom"]:not([data-align="center"]):not([data-align="end"]) > .tab-content > .card {
      border-end-start-radius: 0;
    }
    &[data-side="bottom"][data-align="end"] > .tab-content > .card {
      border-end-end-radius: 0;
    }
    &:is([data-side="left"], :not([data-side]):has(> .tab-list[aria-orientation="vertical"])):not(
        [data-align="center"]
      ):not([data-align="end"])
      > .tab-content
      > .card {
      border-top-left-radius: 0;
    }
    &:is([data-side="left"], :not([data-side]):has(> .tab-list[aria-orientation="vertical"]))[data-align="end"]
      > .tab-content
      > .card {
      border-bottom-left-radius: 0;
    }
    &[data-side="right"]:not([data-align="center"]):not([data-align="end"]) > .tab-content > .card {
      border-top-right-radius: 0;
    }
    &[data-side="right"][data-align="end"] > .tab-content > .card {
      border-bottom-right-radius: 0;
    }
  }

  /* -- Panel ---------------------------------------------------- */
  .tab-content {
    margin-top: 0.75rem;

    &:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: 2px;
    }

    &[hidden] {
      display: none;
    }
  }

  /* -- Accessibility ------------------------------------------ */

  @media (prefers-reduced-motion: reduce) {
    .tab-trigger {
      transition: none;
    }
  }

  @media (forced-colors: active) {
    .tab-trigger[aria-selected="true"] {
      border: 2px solid Highlight;
      box-shadow: none;
    }
    .tab-trigger:disabled {
      color: GrayText;
    }

    .tab-list[data-variant="line"] .tab-trigger[aria-selected="true"] {
      border: none;
      border-bottom: 2px solid Highlight;
    }
  }
}

/* ── components/taskbar/taskbar.css ── */
/* -- Taskbar component --------------------------------------------
   The bar along a desktop's edge: the Start Button, launchers, one button per
   open window (rendered from the Window Manager) and the Tray at the end.
   data-position puts it on any edge (left / right: a column), data-align
   centres the buttons with the Start Button (the Tray stays at the end). */

@layer components {
  .taskbar {
    --taskbar-size: 3rem;
    position: relative;
    z-index: 40;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    min-height: var(--taskbar-size);
    padding: 0.25rem 0.375rem;
    border-block-start: 1px solid var(--border);
    background: color-mix(in oklch, var(--card) 88%, transparent);
    color: var(--card-foreground);
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    backdrop-filter: blur(16px);

    &[data-position="top"] {
      border-block-start: 0;
      border-block-end: 1px solid var(--border);
    }
    &:is([data-position="left"], [data-position="right"]) {
      flex-direction: column;
      min-height: 0;
      min-width: var(--taskbar-size);
      padding: 0.375rem 0.25rem;
      border-block-start: 0;
      border-inline-end: 1px solid var(--border);
    }
    &[data-position="right"] {
      border-inline-end: 0;
      border-inline-start: 1px solid var(--border);
    }
  }

  .taskbar-launchers,
  .taskbar-windows {
    display: flex;
    align-items: center;
    gap: 0.125rem;
    min-width: 0;

    .taskbar:is([data-position="left"], [data-position="right"]) & {
      flex-direction: column;
    }
  }

  .taskbar-windows {
    flex: 1;
    overflow: hidden;
  }

  /* centred: Start, launchers and windows together in the middle */
  .taskbar[data-align="center"] {
    & > :first-child {
      margin-inline-start: auto;
    }
    & .taskbar-windows {
      flex: 0 1 auto;
      margin-inline-end: auto;
    }
  }

  .taskbar-launcher,
  .taskbar-window {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    height: 2.5rem;
    min-width: 2.5rem;
    max-width: 11rem;
    padding-inline: 0.5rem;
    border: 0;
    border-radius: var(--radius-md);
    background: none;
    color: inherit;
    font: inherit;
    cursor: default;

    &:hover {
      background: color-mix(in oklch, var(--accent) 70%, transparent);
    }
    &:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: -2px;
    }
    & svg,
    & img,
    & .desktop-glyph {
      width: 1.25rem;
      height: 1.25rem;
      flex: none;
    }
  }

  .taskbar-window {
    flex: 0 1 11rem;
    justify-content: flex-start;

    /* the line under a window's button: thin when open, long when in front */
    &::after {
      content: "";
      position: absolute;
      inset-block-end: 0.125rem;
      inset-inline: 40%;
      height: 3px;
      border-radius: 2px;
      background: var(--muted-foreground);
    }
    &[aria-pressed="true"] {
      background: var(--accent);
      color: var(--accent-foreground);
      &::after {
        inset-inline: 25%;
        background: var(--primary);
      }
    }
    &[data-minimized] {
      opacity: 0.8;
    }
  }

  .taskbar-window-icon {
    display: contents;
  }

  .taskbar-window-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    .taskbar:is([data-position="left"], [data-position="right"]) & {
      display: none;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .taskbar {
      backdrop-filter: none;
    }
  }

  @media (forced-colors: active) {
    .taskbar-window[aria-pressed="true"] {
      outline: 2px solid Highlight;
    }
  }
}

/* ── components/terminal/terminal.css ── */
/* -- Terminal component ------------------------------------------------- */
/* A terminal emulator (xterm.js) in the Code Mockup's window. xterm paints
   its own cells, so its colours are custom properties the runtime reads:
   --terminal-background / -foreground / -cursor / -cursor-accent /
   -selection and the sixteen ANSI colours (--terminal-red ...
   --terminal-bright-white). A variant sets them; a theme or a page can set
   any of them. --terminal-cursor-style (block, bar, underline) and
   --terminal-line-height (a factor) are read the same way. */

@layer components {
  /* xterm.js names its own element "terminal xterm" too - every rule here skips it */
  .terminal:not(.xterm) {
    /* the default: a dark screen in every theme, the Code Mockup's tones */
    --terminal-background: oklch(0.21 0.006 286);
    --terminal-foreground: oklch(0.94 0 0);
    --terminal-cursor: var(--terminal-foreground);
    --terminal-cursor-accent: var(--terminal-background);
    --terminal-selection: color-mix(in oklch, var(--terminal-foreground) 28%, transparent);
    --terminal-black: oklch(0.32 0.01 286);
    --terminal-red: oklch(0.72 0.18 25);
    --terminal-green: oklch(0.8 0.16 150);
    --terminal-yellow: oklch(0.84 0.15 80);
    --terminal-blue: oklch(0.76 0.13 245);
    --terminal-magenta: oklch(0.76 0.15 320);
    --terminal-cyan: oklch(0.8 0.11 200);
    --terminal-white: oklch(0.86 0 0);
    --terminal-bright-black: oklch(0.62 0.01 286);
    --terminal-bright-red: oklch(0.8 0.15 25);
    --terminal-bright-green: oklch(0.88 0.15 150);
    --terminal-bright-yellow: oklch(0.91 0.13 90);
    --terminal-bright-blue: oklch(0.84 0.11 245);
    --terminal-bright-magenta: oklch(0.84 0.13 320);
    --terminal-bright-cyan: oklch(0.88 0.1 200);
    --terminal-bright-white: oklch(0.99 0 0);
    --terminal-cursor-style: block;
    --terminal-line-height: 1.25;
    --terminal-height: 20rem;
    --terminal-padding: 0.5rem 1rem 0.75rem;

    position: relative;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
    block-size: var(--terminal-height);
    padding-block-start: 2.5rem;
    border-radius: var(--radius-xl);
    background: var(--terminal-background);
    color: var(--terminal-foreground);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    text-align: start;
    /* a terminal reads left to right inside an RTL page too */
    direction: ltr;
    unicode-bidi: isolate;
    overflow: hidden;

    /* -- Window chrome, as the Code Mockup's: three dots; data-chrome="mac"
       colours them, data-chrome="none" drops the bar --------------------- */
    &::before {
      content: "";
      position: absolute;
      inset-block-start: 1rem;
      inset-inline-start: 1.25rem;
      width: 0.75rem;
      height: 0.75rem;
      border-radius: 9999px;
      color: color-mix(in oklch, var(--terminal-foreground) 60%, var(--terminal-background));
      background: currentColor;
      opacity: 0.45;
      box-shadow:
        1.25rem 0 0 currentColor,
        2.5rem 0 0 currentColor;
    }
    &[data-chrome="mac"]::before {
      opacity: 1;
      background: oklch(0.68 0.2 25);
      box-shadow:
        1.25rem 0 0 oklch(0.82 0.16 85),
        2.5rem 0 0 oklch(0.74 0.17 145);
    }
    &[data-chrome="none"] {
      padding-block-start: 0;
    }
    &[data-chrome="none"]::before {
      display: none;
    }
    /* a title in the bar: data-title="bash - 80x24" */
    &[data-title]:not([data-chrome="none"])::after {
      content: attr(data-title);
      position: absolute;
      inset-block-start: 0.75rem;
      inset-inline: 4.5rem;
      font-family: var(--font-sans);
      font-size: 0.75rem;
      line-height: 1.25rem;
      text-align: center;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      color: color-mix(in oklch, var(--terminal-foreground) 65%, var(--terminal-background));
    }

    /* data-rows: as high as that many rows - the screen sizes the box */
    &[data-rows] {
      block-size: auto;
    }
    &:focus-within {
      outline: 2px solid var(--ring);
      outline-offset: 2px;
    }

    /* -- Sizes ------------------------------------------------------------ */
    &[data-size="sm"] {
      font-size: 0.75rem;
    }
    &[data-size="lg"] {
      font-size: 1rem;
    }

    /* -- Variants --------------------------------------------------------- */
    /* muted: the page's own surface - light in light mode; the ANSI colours
       are mixed toward the text so they keep their contrast in both */
    &[data-variant="muted"] {
      --terminal-background: var(--muted);
      --terminal-foreground: var(--foreground);
      --terminal-black: var(--foreground);
      --terminal-red: color-mix(in oklch, var(--foreground) 30%, oklch(0.6 0.2 25));
      --terminal-green: color-mix(in oklch, var(--foreground) 35%, oklch(0.62 0.16 150));
      --terminal-yellow: color-mix(in oklch, var(--foreground) 40%, oklch(0.7 0.15 75));
      --terminal-blue: color-mix(in oklch, var(--foreground) 30%, oklch(0.6 0.16 255));
      --terminal-magenta: color-mix(in oklch, var(--foreground) 30%, oklch(0.6 0.18 320));
      --terminal-cyan: color-mix(in oklch, var(--foreground) 35%, oklch(0.62 0.11 200));
      --terminal-white: var(--muted-foreground);
      --terminal-bright-black: var(--muted-foreground);
      --terminal-bright-red: var(--terminal-red);
      --terminal-bright-green: var(--terminal-green);
      --terminal-bright-yellow: var(--terminal-yellow);
      --terminal-bright-blue: var(--terminal-blue);
      --terminal-bright-magenta: var(--terminal-magenta);
      --terminal-bright-cyan: var(--terminal-cyan);
      --terminal-bright-white: var(--foreground);
      border: 1px solid var(--border);
    }
    /* dos: the 16 colours of a PC's text mode on black, square, an
       underline cursor */
    &[data-variant="dos"] {
      --terminal-background: #000000;
      --terminal-foreground: #aaaaaa;
      --terminal-cursor: #aaaaaa;
      --terminal-selection: rgb(170 170 170 / 0.35);
      --terminal-black: #000000;
      --terminal-red: #aa0000;
      --terminal-green: #00aa00;
      --terminal-yellow: #aa5500;
      --terminal-blue: #0000aa;
      --terminal-magenta: #aa00aa;
      --terminal-cyan: #00aaaa;
      --terminal-white: #aaaaaa;
      --terminal-bright-black: #555555;
      --terminal-bright-red: #ff5555;
      --terminal-bright-green: #55ff55;
      --terminal-bright-yellow: #ffff55;
      --terminal-bright-blue: #5555ff;
      --terminal-bright-magenta: #ff55ff;
      --terminal-bright-cyan: #55ffff;
      --terminal-bright-white: #ffffff;
      --terminal-cursor-style: underline;
      --terminal-line-height: 1.1;
      border-radius: 0;
    }
  }

  /* the screen xterm opens in (the runtime adds it) - the fit addon measures
     its content box */
  .terminal-screen {
    flex: 1 1 0px;
    box-sizing: content-box;
    min-block-size: 0;
    min-inline-size: 0;
    padding: var(--terminal-padding);
    .terminal[data-rows] > & {
      flex: none;
    }
  }

  /* the vendor build failed to load: the reason, in place of the screen */
  .terminal-error {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    color: var(--terminal-red);
  }

  /* -- Accessibility ------------------------------------------------------ */
  /* reduced motion: the runtime stops the cursor's blink and the replay's typing (the lines appear at once) */
  @media (prefers-reduced-motion: reduce) {
    .terminal-screen {
      scroll-behavior: auto;
    }
  }

  @media (prefers-contrast: more) {
    .terminal:not(.xterm) {
      --terminal-foreground: oklch(1 0 0);
      --terminal-bright-black: oklch(0.8 0 0);
      border: 1px solid var(--terminal-foreground);
    }
    .terminal:not(.xterm)[data-variant="muted"] {
      --terminal-foreground: var(--foreground);
      --terminal-bright-black: var(--foreground);
      border-color: var(--foreground);
    }
  }

  @media (forced-colors: active) {
    /* the runtime reads these: the system colours, converted like any other */
    .terminal:not(.xterm),
    .terminal:not(.xterm)[data-variant] {
      --terminal-background: Canvas;
      --terminal-foreground: CanvasText;
      --terminal-cursor: CanvasText;
      --terminal-cursor-accent: Canvas;
      --terminal-selection: Highlight;
      --terminal-black: Canvas;
      --terminal-red: CanvasText;
      --terminal-green: CanvasText;
      --terminal-yellow: CanvasText;
      --terminal-blue: CanvasText;
      --terminal-magenta: CanvasText;
      --terminal-cyan: CanvasText;
      --terminal-white: CanvasText;
      --terminal-bright-black: CanvasText;
      --terminal-bright-red: CanvasText;
      --terminal-bright-green: CanvasText;
      --terminal-bright-yellow: CanvasText;
      --terminal-bright-blue: CanvasText;
      --terminal-bright-magenta: CanvasText;
      --terminal-bright-cyan: CanvasText;
      --terminal-bright-white: CanvasText;
      border: 1px solid CanvasText;
      forced-color-adjust: none;
    }
  }
}

/* ── components/toast/toast.css ── */
/* -- Toast component ------------------------------------------- */

@layer components {
  /* -- Container ------------------------------------------------ */
  .toast-container {
    position: fixed;
    z-index: 100;
    display: flex;
    flex-direction: column-reverse;
    gap: 0.5rem;
    padding: 1rem;
    max-height: 100vh;
    pointer-events: none;

    &[data-position="bottom-right"] {
      bottom: 0;
      right: 0;
    }
    &[data-position="bottom-left"] {
      bottom: 0;
      left: 0;
    }
    &[data-position="top-right"] {
      top: 0;
      right: 0;
      flex-direction: column;
    }
    &[data-position="top-left"] {
      top: 0;
      left: 0;
      flex-direction: column;
    }
    &[data-position="top-center"] {
      top: 0;
      left: 50%;
      transform: translateX(-50%);
      flex-direction: column;
      align-items: center;
    }
    &[data-position="bottom-center"] {
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
      align-items: center;
    }
  }

  /* -- Toast ---------------------------------------------------- */
  .toast {
    /* Top layer (popover="manual") bypasses the container's flex layout - the
       UA sheet would CENTER every toast (inset:0 + margin:auto). Pin each toast
       to its container's corner instead and stack via --toast-stack, which the
       component JS measures (toast.ts stackToasts) since heights vary. */
    position: fixed;
    inset: auto;
    margin: 0;
    /* the UA popover sheet clips (overflow: auto) - the pile badge sits on the edge */
    overflow: visible;
    background-color: var(--popover);
    color: var(--popover-foreground);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1rem;
    min-width: 20rem;
    max-width: 26rem;
    box-shadow: 0 4px 16px oklch(0 0 0 / 0.12);
    pointer-events: auto;
    opacity: 0;
    transform: translateY(0.5rem);
    transition:
      opacity 200ms ease,
      transform 200ms ease;

    &:popover-open {
      opacity: 1;
      transform: translateY(0);
    }

    /* -- Corner placement (top layer - see note above) ------------
       --toast-stack: measured px offset of the stack below this toast;
       the first toast is 0, so default bottom-right lands at the edge. */
    [data-position="bottom-right"] & {
      bottom: calc(1rem + var(--toast-stack, 0px));
      right: 1rem;
    }
    [data-position="bottom-left"] & {
      bottom: calc(1rem + var(--toast-stack, 0px));
      left: 1rem;
    }
    [data-position="top-right"] & {
      top: calc(1rem + var(--toast-stack, 0px));
      right: 1rem;
    }
    [data-position="top-left"] & {
      top: calc(1rem + var(--toast-stack, 0px));
      left: 1rem;
    }
    [data-position="top-center"] & {
      top: calc(1rem + var(--toast-stack, 0px));
      left: 50%;
      translate: -50% 0;
    }
    [data-position="bottom-center"] & {
      bottom: calc(1rem + var(--toast-stack, 0px));
      left: 50%;
      translate: -50% 0;
    }

    /* -- Sizes + Density ------------------------------------------
       data-size scales the toast's width envelope (sm/md/lg, md == the
       unsized default); data-density is the whitespace policy - padding and
       the content gap at the shared 0.75 / 1 / 1.25 ratio, comfortable ==
       the unsized default. Both live on the .toast element itself. */
    &[data-size="sm"] {
      min-width: 16rem;
      max-width: 20rem;
    }
    &[data-size="md"] {
      min-width: 20rem;
      max-width: 26rem;
    }
    &[data-size="lg"] {
      min-width: 24rem;
      max-width: 32rem;
    }

    &[data-density="compact"] {
      padding: 0.75rem;
      & .toast-content {
        gap: 0.5rem;
      }
    }
    &[data-density="comfortable"] {
      padding: 1rem;
    }
    &[data-density="spacious"] {
      padding: 1.25rem;
      & .toast-content {
        gap: 1rem;
      }
    }

    /* -- Variants ------------------------------------------------- */
    &[data-variant="destructive"] {
      background-color: var(--destructive);
      color: var(--destructive-foreground);
      border-color: var(--destructive);

      & .toast-description {
        color: var(--destructive-foreground);
        opacity: 0.85;
      }
    }

    /* -- Semantic variants (border + icon color) ----------------- */
    &[data-variant="success"] {
      border-color: oklch(0.65 0.2 145);

      & .toast-icon {
        color: oklch(0.65 0.2 145);
      }
    }

    &[data-variant="warning"] {
      border-color: oklch(0.75 0.18 75);

      & .toast-icon {
        color: oklch(0.75 0.18 75);
      }
    }

    &[data-variant="info"] {
      border-color: oklch(0.6 0.15 250);

      & .toast-icon {
        color: oklch(0.6 0.15 250);
      }
    }
  }

  @starting-style {
    .toast:popover-open {
      opacity: 0;
      transform: translateY(0.5rem);
    }
  }

  /* -- Named animations (options.animation) ------------------------
     df$.anim plays the entrance / exit; the CSS fade stands down. */
  .toast[data-anim] {
    transition:
      bottom 220ms ease,
      top 220ms ease,
      scale 220ms ease,
      opacity 220ms ease;

    &:popover-open {
      opacity: 1;
      transform: none;
    }
  }
  @starting-style {
    .toast[data-anim]:popover-open {
      opacity: 1;
      transform: none;
    }
  }

  /* -- Pile (df$.shadcn.toast.configure({ stack: 'pile' })) ----------
     The newest toast is in front and wears the shapes.css stack-* sheets
     (added by toast.js); the older ones wait behind it, hidden, and fan out
     into a list while the pointer or focus is inside the pile. A "+n" badge
     counts the hidden ones. */
  .toast-container[data-stack="pile"] .toast {
    transition:
      opacity 200ms ease,
      transform 200ms ease,
      bottom 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
      top 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
      scale 220ms ease;
  }
  .toast[data-piled] {
    opacity: 0 !important;
    scale: 0.94;
    pointer-events: none;
  }
  .toast[data-more]:not([data-more="0"])::after {
    content: "+" attr(data-more);
    position: absolute;
    inset-block-start: -0.5rem;
    inset-inline-start: -0.5rem;
    min-width: 1.5rem;
    height: 1.5rem;
    padding-inline: 0.375rem;
    border-radius: 9999px;
    background-color: var(--primary);
    color: var(--primary-foreground);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
  }
  .toast-container[data-position^="top"] .toast[data-more]::after {
    inset-block-start: auto;
    inset-block-end: -0.5rem;
  }

  /* -- Aura (options.aura) ------------------------------------------
     The toast is the ring of light (shapes.css .aura), its content sits on
     an inner surface with the toast's own colors and padding. */
  .toast[data-aura] {
    --shape-round: var(--radius-lg);
    border: 0;
    background-color: transparent;
    box-shadow: 0 8px 28px -6px color-mix(in oklch, var(--foreground) 30%, transparent);
  }
  .toast-surface {
    padding: 1rem;
    border-radius: var(--radius-lg);
    background-color: var(--popover);
    color: var(--popover-foreground);

    .toast[data-variant="destructive"] > & {
      background-color: var(--destructive);
      color: var(--destructive-foreground);
    }
  }

  /* -- Inner elements ------------------------------------------- */
  .toast-content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .toast-text {
    flex: 1;
    min-width: 0;
  }

  .toast-title {
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
  }

  .toast-description {
    font-size: 0.8125rem;
    color: var(--muted-foreground);
    margin: 0.125rem 0 0;
    line-height: 1.5;
  }

  .toast-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border: none;
    background: transparent;
    color: var(--muted-foreground);
    cursor: pointer;
    flex-shrink: 0;
    border-radius: calc(var(--radius) * 0.5);
    transition:
      color 150ms,
      background 150ms;

    &:hover {
      color: var(--foreground);
      background: var(--accent);
    }
  }

  .toast-icon {
    /* explicit size: SVGs without width/height render at a ~300px intrinsic
       default, which blew up the whole toast */
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    margin-top: 0.125rem;
  }

  .toast-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
  }
}

/* Accessibility: suppress motion for users who request it (REQUIRED for all
   components - AGENTS.md "Accessibility CSS"). Near-zero duration instead of
   `none` keeps transitionend/animationend (and discrete display flips)
   firing so JS state machines that await them keep working. */
@media (prefers-reduced-motion: reduce) {
  @layer components {
    .toast-container,
    .toast-container *,
    .toast-container::before,
    .toast-container::after,
    .toast-container *::before,
    .toast-container *::after,
    .toast-container::backdrop,
    .toast,
    .toast *,
    .toast::before,
    .toast::after,
    .toast *::before,
    .toast *::after,
    .toast::backdrop,
    .toast-description,
    .toast-description *,
    .toast-description::before,
    .toast-description::after,
    .toast-description *::before,
    .toast-description *::after,
    .toast-description::backdrop,
    .toast-icon,
    .toast-icon *,
    .toast-icon::before,
    .toast-icon::after,
    .toast-icon *::before,
    .toast-icon *::after,
    .toast-icon::backdrop,
    .toast-content,
    .toast-content *,
    .toast-content::before,
    .toast-content::after,
    .toast-content *::before,
    .toast-content *::after,
    .toast-content::backdrop,
    .toast-text,
    .toast-text *,
    .toast-text::before,
    .toast-text::after,
    .toast-text *::before,
    .toast-text *::after,
    .toast-text::backdrop,
    .toast-title,
    .toast-title *,
    .toast-title::before,
    .toast-title::after,
    .toast-title *::before,
    .toast-title *::after,
    .toast-title::backdrop,
    .toast-close,
    .toast-close *,
    .toast-close::before,
    .toast-close::after,
    .toast-close *::before,
    .toast-close *::after,
    .toast-close::backdrop,
    .toast-actions,
    .toast-actions *,
    .toast-actions::before,
    .toast-actions::after,
    .toast-actions *::before,
    .toast-actions *::after,
    .toast-actions::backdrop {
      transition-duration: 0.01ms !important;
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
    }
  }
}

/* ── components/toggle/toggle.css ── */
/* -- Toggle component ------------------------------------------ */

@layer components {
  .toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: var(--font-sans);
    line-height: 1;
    white-space: nowrap;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    background: transparent;
    color: var(--muted-foreground);
    cursor: pointer;
    transition:
      color 150ms ease,
      background-color 150ms ease,
      box-shadow 150ms ease;
    outline: none;
    flex-shrink: 0;
    height: 2.25rem;
    padding: 0 0.5rem;
    min-width: 2.25rem;

    &:hover:not(:disabled) {
      background-color: var(--muted);
      color: var(--muted-foreground);
    }

    &[aria-pressed="true"] {
      background-color: var(--accent);
      color: var(--accent-foreground);

      &:hover:not(:disabled) {
        background-color: color-mix(in oklch, var(--accent) 85%, var(--foreground));
      }
    }

    &:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: 2px;
    }

    /* disabled: dimmed, with the not-allowed cursor - no pointer-events: none,
       which would hide the cursor too (a disabled button fires no click) */
    &:disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }

    & svg {
      pointer-events: none;
      flex-shrink: 0;

      &:not([class*="size-"]) {
        width: 1rem;
        height: 1rem;
      }
    }

    /* -- Variants -------------------------------------------- */
    &[data-variant="outline"] {
      border: 1px solid var(--input);
      background: transparent;
      box-shadow: var(--shadow-xs);

      &:hover:not(:disabled) {
        background-color: var(--accent);
        color: var(--accent-foreground);
      }

      &[aria-pressed="true"] {
        background-color: var(--accent);
        color: var(--accent-foreground);

        &:hover:not(:disabled) {
          background-color: color-mix(in oklch, var(--accent) 85%, var(--foreground));
        }
      }
    }

    /* -- Sizes ----------------------------------------------- */
    &[data-size="xs"] {
      height: 1.75rem;
      padding: 0 0.25rem;
      min-width: 1.75rem;
      font-size: 0.75rem;
    }
    &[data-size="sm"] {
      height: 2rem;
      padding: 0 0.375rem;
      min-width: 2rem;
    }
    &[data-size="md"] {
      height: 2.25rem;
      padding: 0 0.5rem;
      min-width: 2.25rem;
    }
    &[data-size="lg"] {
      height: 2.5rem;
      padding: 0 0.625rem;
      min-width: 2.5rem;
    }
    &[data-size="xl"] {
      height: 3rem;
      padding: 0 0.75rem;
      min-width: 3rem;
      font-size: 1rem;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .toggle {
      transition: none;
    }
  }

  @media (prefers-contrast: more) {
    .toggle {
      border: 2px solid transparent;

      &[data-variant="outline"] {
        border-color: var(--foreground);
      }

      &[aria-pressed="true"] {
        border-color: currentColor;
      }
    }
  }

  @media (forced-colors: active) {
    .toggle {
      border: 1px solid ButtonText;

      &[aria-pressed="true"] {
        background: Highlight;
        color: HighlightText;
      }

      &:disabled {
        border-color: GrayText;
        color: GrayText;
      }
    }
  }
}

/* ── components/tray/tray.css ── */
/* -- Tray component -----------------------------------------------
   The notification area: small icon buttons (a badge on one with
   data-badge), the clock the runtime keeps (two lines with the date) and a
   thin "show desktop" strip at the very end. */

@layer components {
  .tray {
    display: flex;
    align-items: center;
    gap: 0.125rem;
    margin-inline-start: auto;
    height: 100%;

    .taskbar:is([data-position="left"], [data-position="right"]) & {
      flex-direction: column;
      margin-inline-start: 0;
      margin-block-start: auto;
      height: auto;
    }
  }

  .tray-item {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: var(--radius-sm);
    background: none;
    color: inherit;
    cursor: default;

    & svg,
    & img {
      width: 1rem;
      height: 1rem;
    }
    &:hover {
      background: color-mix(in oklch, var(--accent) 70%, transparent);
    }
    &:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: -2px;
    }
    &[data-badge]::after {
      content: attr(data-badge);
      position: absolute;
      inset-block-start: 0.0625rem;
      inset-inline-end: 0;
      min-width: 0.875rem;
      height: 0.875rem;
      padding-inline: 0.1875rem;
      box-sizing: border-box;
      border-radius: 999px;
      background: var(--destructive);
      color: var(--destructive-foreground, white);
      font-size: 0.5625rem;
      font-weight: 700;
      line-height: 0.875rem;
      text-align: center;
    }
  }

  .tray-clock {
    padding-inline: 0.375rem;
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
    line-height: 1.25;
    text-align: end;
    white-space: pre;
  }

  .tray-show-desktop {
    align-self: stretch;
    width: 0.375rem;
    margin-inline-start: 0.25rem;
    padding: 0;
    border: 0;
    border-inline-start: 1px solid var(--border);
    background: none;
    cursor: default;

    &:hover,
    &:focus-visible {
      background: color-mix(in oklch, var(--accent) 70%, transparent);
      outline: none;
    }
  }

  @media (forced-colors: active) {
    .tray-item[data-badge]::after {
      forced-color-adjust: none;
      background: Highlight;
      color: HighlightText;
    }
  }
}

/* ── components/typography/typography.css ── */
/* -- Typography component --------------------------------------- */

/* -- Base text ---------------------------------------------- */
/* Sets the default font size for the entire page.            */
/* All typography classes are sized relative to this baseline. */
@layer base {
  body {
    font-size: 0.875rem;
    line-height: 1.5;
  }
  /* code reads in the theme's monospace stack, not the browser's default (a
     Courier on macOS) - zero specificity, so a component's own face wins */
  :where(code, kbd, samp, pre) {
    font-family: var(--font-mono);
  }
}

@layer components {
  /* -- Headings ---------------------------------------------- */
  .h1 {
    scroll-margin-top: 5rem;
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.15;
    text-wrap: balance;
    color: var(--foreground);
  }

  .h2 {
    scroll-margin-top: 5rem;
    font-size: 1.875rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.25;
    text-wrap: balance;
    color: var(--foreground);
    border-block-end: 1px solid var(--border);
    padding-block-end: 0.5rem;

    &:first-child {
      margin-block-start: 0;
    }
  }

  .h3 {
    scroll-margin-top: 5rem;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.3;
    text-wrap: balance;
    color: var(--foreground);
  }

  .h4 {
    scroll-margin-top: 5rem;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    text-wrap: balance;
    color: var(--foreground);
  }

  /* -- Paragraph --------------------------------------------- */
  .p {
    font-size: 0.875rem;
    line-height: 1.75;
    text-wrap: pretty;
    color: var(--foreground);

    &:not(:first-child) {
      margin-block-start: 1.5rem;
    }
  }

  /* -- Lead --------------------------------------------------- */
  .lead {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--muted-foreground);
    text-wrap: pretty;
  }

  /* -- Large -------------------------------------------------- */
  .large {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--foreground);
  }

  /* -- Small -------------------------------------------------- */
  .small {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1;
    color: var(--foreground);
  }

  /* -- Muted -------------------------------------------------- */
  .muted {
    font-size: 0.875rem;
    color: var(--muted-foreground);
  }

  /* -- Link ------------------------------------------------- */
  /* a link in running text: the primary colour, the line and its offset from
     the theme's link tokens (literal fallbacks for a theme without them) */
  .link {
    color: var(--primary);
    text-decoration: var(--link-text-decoration, underline);
    text-underline-offset: var(--link-underline-offset, 4px);
  }

  /* -- Blockquote --------------------------------------------- */
  .blockquote {
    margin-block-start: 1.5rem;
    border-inline-start: 2px solid var(--border);
    padding-inline-start: 1.5rem;
    font-style: italic;
    hanging-punctuation: first last;
    color: var(--foreground);

    & p {
      margin: 0;
    }
  }

  /* -- Inline code -------------------------------------------- */
  .inline-code {
    position: relative;
    border-radius: var(--radius-sm);
    background: var(--muted);
    padding: 0.2rem 0.3rem;
    font-family: var(--font-mono);
    font-size: 0.875em;
    font-weight: 600;
    color: var(--foreground);
  }

  /* -- CJK: Chinese, Japanese, Korean ------------------------------
     Keyed on the lang attribute, so one set of classes serves every script.
     Latin tuning is undone (negative tracking, faux italics); paragraphs
     justify between characters with strict line breaking (kinsoku: no 。
     or ， at a line start), and sentence-end punctuation may hang past the
     edge (Safari: hanging-punctuation) or trims to half width
     (Chromium: text-spacing-trim) so the justified edge stays straight.
     text-autospace adds the thin gap between CJK and Latin /
     digits that authors used to type by hand. */
  :is(.h1, .h2, .h3, .h4, .lead, .large):is(:lang(zh), :lang(ja), :lang(ko)),
  :is(:lang(zh), :lang(ja), :lang(ko)) :is(.h1, .h2, .h3, .h4, .lead, .large) {
    letter-spacing: 0;
  }
  /* Japanese headings break between phrases (bunsetsu), not mid-word */
  :is(.h1, .h2, .h3, .h4, .lead):lang(ja),
  :lang(ja) :is(.h1, .h2, .h3, .h4, .lead) {
    word-break: auto-phrase;
  }
  :is(.p, .lead, .blockquote):is(:lang(zh), :lang(ja), :lang(ko)),
  :is(:lang(zh), :lang(ja), :lang(ko)) :is(.p, .lead, .blockquote) {
    line-height: 1.9;
    line-break: strict;
    text-autospace: normal;
  }
  :is(.p, .blockquote):is(:lang(zh), :lang(ja)),
  :is(:lang(zh), :lang(ja)) :is(.p, .blockquote) {
    text-align: justify;
    text-justify: inter-character;
    /* the line-end 。，: Safari hangs it past the edge; Chromium trims the
       fullwidth glyph's blank half (text-spacing-trim) - either way the
       justified edge stays straight */
    hanging-punctuation: allow-end;
    text-spacing-trim: normal;
  }
  /* CJK has no italics - a slanted Han character is a synthetic oblique */
  .blockquote:is(:lang(zh), :lang(ja), :lang(ko)),
  :is(:lang(zh), :lang(ja), :lang(ko)) .blockquote {
    font-style: normal;
  }

  /* -- Vertical text (tategaki / 直排) ----------------------------------
     .text-vertical sets top-to-bottom lines flowing right to left. Latin
     runs lie sideways (text-orientation: mixed); .text-upright stands a
     short run (a two-digit number) upright in one cell - tate-chu-yoko.
     The spacing above uses logical properties, so headings, paragraphs and
     the blockquote rule turn with the text. Give the block a height. */
  .text-vertical {
    writing-mode: vertical-rl;
    text-orientation: mixed;
  }
  .text-upright {
    text-combine-upright: all;
  }

  /* -- Emphasis marks (圈点 / 傍点) ---------------------------------------
     Dots beside each character instead of italics: over the text in
     Japanese (right of it when vertical), under it in Chinese. */
  .text-emphasis {
    font-style: normal;
    text-emphasis: filled dot;
    text-emphasis-position: over right;
  }
  .text-emphasis:lang(ja) {
    text-emphasis-style: filled sesame;
  }
  .text-emphasis:lang(zh) {
    text-emphasis-position: under right;
  }

  /* ruby annotations (furigana, pinyin, zhuyin) read as small, muted type */
  :is(.p, .lead, .blockquote, .h1, .h2, .h3, .h4) rt {
    font-size: 0.5em;
    color: var(--muted-foreground);
    letter-spacing: 0;
  }

  /* -- Typesetting (Satz): book and journal setting ----------------------
     .typeset holds continuous text set like a book or a journal page. Each
     classic rule is an opt-in data attribute, tuned by a --typeset-* knob -
     component properties, not theme tokens (the theme set stays the
     tweakcn shape):
       data-columns="2|3"        columns never narrower than
                                 --typeset-column-width: a phone gets one
       data-rule                 a hairline between the columns
       data-align="justify"      Blocksatz: justified and hyphenated (set
                                 lang=""), the last line flush start
       data-indent               Einzug: paragraphs follow without a gap and
                                 indent their first line; the first one after
                                 a heading starts flush (stumpf)
       data-initial="drop|raised"  Initiale over --typeset-initial-lines lines
       data-lead="smallcaps|caps"  the opening line in small capitals or in
                                 letterspaced capitals (Versalien)
       data-ligatures="classic"  discretionary and historical ligatures,
                                 old-style figures - where the font has them
       data-leading="tight|loose"  compact or airy lines, the tracking matched
       data-orphans / data-widows="3|4"  lines kept together at a break (2)
     .typeset-span spans every column (a heading, a figure). Figures, tables,
     quotes, groups and Separator breaks keep --typeset-gap from the text -
     the Separator component draws the break, this block only spaces it.
     VERIFIED: (typography.e2e, the typeset checks) every rule as a computed
     style, the gaps, the captions' counters, 44rem two columns vs 20rem one. */
  .typeset {
    --typeset-measure: 68ch;
    --typeset-column-width: 18rem;
    --typeset-column-gap: 2.5em;
    --typeset-indent: 1em;
    --typeset-leading: 1.65;
    --typeset-tracking: 0em;
    --typeset-gap: 1.5em;
    --typeset-initial-lines: 3;
    --typeset-initial-gap: 0.3em;
    --typeset-initial-font: var(--font-serif);
    --typeset-initial-color: var(--primary);

    max-inline-size: var(--typeset-measure);
    line-height: var(--typeset-leading);
    letter-spacing: var(--typeset-tracking);
    text-wrap: pretty;
    hanging-punctuation: first allow-end last;
    font-kerning: normal;
    orphans: 2;
    widows: 2;

    /* a .typeset-keep is a wrapper, not a block: what it holds is spaced as
       if it sat in the setting itself (each rule names both paths - :is()
       would raise the direct path's specificity to the wrapper path's) */
    & > p,
    & > .typeset-keep > p {
      margin-block: 0 1em;
    }
    /* every block keeps the same distance from the text around it */
    &
      > :is(
        figure,
        table,
        blockquote,
        pre,
        hr,
        .separator,
        .typeset-group,
        .chart,
        .diagram,
        .mockup-code,
        .table-container
      ),
    &
      > .typeset-keep
      > :is(
        figure,
        table,
        blockquote,
        pre,
        hr,
        .separator,
        .typeset-group,
        .chart,
        .diagram,
        .mockup-code,
        .table-container
      ) {
      margin-block: var(--typeset-gap);
    }
    /* a figure spans the measure (the browser indents it 40px by default) */
    & > :is(figure, blockquote),
    & > .typeset-keep > :is(figure, blockquote) {
      margin-inline: 0;
    }
    & > :is(h1, h2, h3, h4, .h1, .h2, .h3, .h4),
    & > .typeset-keep > :is(h1, h2, h3, h4, .h1, .h2, .h3, .h4) {
      margin-block: var(--typeset-gap) 0.5em;
    }
    & > :first-child,
    & > .typeset-keep:first-child > :first-child {
      margin-block-start: 0;
    }
    & :is(figure, blockquote, table, pre, .typeset-group) {
      break-inside: avoid;
    }
    /* a long table or listing may split: kept whole, it would leave the rest
       of a page empty, and one taller than a page splits anyway. Every piece
       keeps the frame (clone): sliced, the first piece lost its bottom border
       and corners at the column foot, the next its top. A figure that may
       split lets the listing inside it split too, and its caption stays with
       the last piece.
       VERIFIED: (Chromium PDF probe 2026-10-12) a framed listing split over
       two columns and over two pages prints a closed, rounded frame on each. */
    & [data-break-inside="allow"],
    & [data-break-inside="allow"] :is(figure, blockquote, table, pre, .typeset-group, .mockup-code) {
      break-inside: auto;
      box-decoration-break: clone;
    }
    /* ... and a listing that may split does not scroll sideways: Chromium
       never breaks a scroll container, so the listing moved whole and left its
       caption behind - wrap its lines instead (pre-wrap, a Code Mockup's
       data-wrap). VERIFIED: (Chromium probe 2026-10-12) overflow-x: auto kept
       the paper's closing report whole at 900px, overflow-x: visible split it. */
    & :is(pre, .mockup-code):is([data-break-inside="allow"], [data-break-inside="allow"] *) {
      overflow-x: visible;
    }
    /* a caption never breaks alone to the next column or page - on screen,
       where the columns balance, as in print. A figure that may split is a
       block, its caption kept to the last piece (below) or the first (above).
       VERIFIED: (Chromium, screen and PDF 2026-10-12) in a grid figure the
       keep did nothing and the caption stood alone at the head of the next
       column; in block flow the break moved up into the listing and two lines
       went along with the caption. A figure group keeps its grid. */
    & figure[data-break-inside="allow"]:not(.typeset-group) {
      display: block;

      & > figcaption:last-child {
        break-before: avoid;
      }
      & > figcaption:first-child {
        break-after: avoid;
      }
    }
    & :is(h1, h2, h3, h4, .h1, .h2, .h3, .h4) {
      break-after: avoid;
    }
    /* the lines a paragraph keeps together at a column or page break: at the
       foot of the column (orphans) and at the head of the next (widows) */
    &[data-orphans="3"] {
      orphans: 3;
    }
    &[data-orphans="4"] {
      orphans: 4;
    }
    &[data-widows="3"] {
      widows: 3;
    }
    &[data-widows="4"] {
      widows: 4;
    }
    & .typeset-span {
      column-span: all;
    }
    /* the columns below a spanning heading or figure start level: the first
       block keeps no top margin - across the column break it cannot collapse
       into the spanner's, so a subheading sat lower than the text beside it */
    &[data-columns] > .typeset-span + :not(.typeset-span),
    &[data-columns] > .typeset-span + .typeset-keep > :first-child {
      margin-block-start: 0;
    }

    &[data-columns] {
      max-inline-size: none;
      column-gap: var(--typeset-column-gap);
    }
    &[data-columns="2"] {
      columns: 2 var(--typeset-column-width);
    }
    &[data-columns="3"] {
      columns: 3 var(--typeset-column-width);
    }
    &[data-rule] {
      column-rule: 1px solid var(--border);
    }

    &[data-align="justify"] {
      text-align: justify;
      text-align-last: start;
      hyphens: auto;
      hyphenate-limit-chars: 6 3 2;

      /* text-align-last inherits: a centered caption inside a justified setting
         kept its last line flush left (a two-line figure caption looked
         off-center) - what centers itself takes its last line from its own alignment */
      & :where(figcaption, caption, .typeset-caption) {
        text-align-last: auto;
      }
    }

    /* leading and tracking move together: tight lines close up a little,
       airy lines open up a little, so the grey of the column stays even */
    &[data-leading="tight"] {
      --typeset-leading: 1.45;
      --typeset-tracking: -0.01em;
    }
    &[data-leading="loose"] {
      --typeset-leading: 1.9;
      --typeset-tracking: 0.01em;
    }

    &[data-indent] > p,
    &[data-indent] > .typeset-keep > p {
      margin-block: 0;
    }
    &[data-indent] > p + p,
    &[data-indent] > .typeset-keep > p + p,
    &[data-indent] > p + .typeset-keep > p:first-child,
    &[data-indent] > p + .typeset-break + p {
      text-indent: var(--typeset-indent);
    }
    /* text-indent inherits into an inline-block, which then indents ITS first line: a badge,
       a key cap or an epistemic tag at the start of an indented paragraph grew a blank
       inside its left edge */
    &[data-indent] > p :where(.badge, kbd, .paper-tag),
    &[data-indent] > .typeset-keep > p :where(.badge, kbd, .paper-tag) {
      text-indent: 0;
    }

    /* the gap is a margin: Chromium ignores logical padding on ::first-letter
       (VERIFIED: probe 2026-10-07 - padding-inline-end computed 0, margin-inline-end 2.52px) */
    &[data-initial] > p:first-of-type::first-letter {
      margin-inline-end: var(--typeset-initial-gap);
      font-family: var(--typeset-initial-font);
      font-weight: 600;
      color: var(--typeset-initial-color);
    }
    &[data-initial="drop"] > p:first-of-type::first-letter {
      -webkit-initial-letter: var(--typeset-initial-lines);
      initial-letter: var(--typeset-initial-lines);
    }
    &[data-initial="raised"] > p:first-of-type::first-letter {
      -webkit-initial-letter: var(--typeset-initial-lines) 1;
      initial-letter: var(--typeset-initial-lines) 1;
    }

    &[data-lead="smallcaps"] > p:first-of-type::first-line {
      font-variant-caps: all-small-caps;
      letter-spacing: 0.04em;
    }
    /* letterspaced capitals - and the small-caps lead beside an initial:
       a first line in small capitals moves the initial down a line
       (Chromium), capitals keep its top level with the line's */
    &:is([data-lead="caps"], [data-initial][data-lead="smallcaps"]) > p:first-of-type::first-line {
      font-variant-caps: normal;
      text-transform: uppercase;
      letter-spacing: 0.06em;
    }

    &[data-ligatures="classic"] {
      font-variant-ligatures: common-ligatures discretionary-ligatures historical-ligatures contextual;
      font-variant-numeric: oldstyle-nums proportional-nums;
    }
  }
  /* a heading is never justified: a wrapping heading stretched to the measure
     opened wide gaps between its words. Flush start and unhyphenated - zero
     specificity, so an alignment the heading sets itself still wins */
  :where(.typeset[data-align="justify"]) :where(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4) {
    text-align: start;
    text-align-last: auto;
    hyphens: manual;
  }
  /* a verbatim record keeps its spacing: justified, a wrapped line of program
     output opened wide gaps between its words, and hyphenation split its
     identifiers (pa-per.mdx) - a pre is set flush start, unhyphenated */
  :where(.typeset[data-align="justify"]) :where(pre) {
    text-align: start;
    text-align-last: auto;
    hyphens: manual;
  }
  /* no initial-letter (Firefox): a floated letter as tall as the lines */
  @supports not ((initial-letter: 3) or (-webkit-initial-letter: 3)) {
    .typeset[data-initial] > p:first-of-type::first-letter {
      float: inline-start;
      font-size: calc(var(--typeset-initial-lines) * var(--typeset-leading) * 1em * 0.82);
      line-height: 0.8;
      padding-block-start: 0.08em;
    }
  }

  /* -- Captions (Bildunterschriften), numbered in order ------------------
     .typeset-caption on a figcaption (a picture, a video, a chart) or a
     table's caption. Inside .typeset-numbered, figures and tables count on
     their own: "Figure 1.", "Table 1." - the words are --typeset-figure-label
     and --typeset-table-label ("" leaves the bare number: "1."). A caption
     is flush start; data-align="justify" or "center" sets it otherwise. */
  .typeset-numbered {
    --typeset-figure-label: "Figure ";
    --typeset-table-label: "Table ";

    counter-reset: typeset-figure typeset-table;
  }
  .typeset-caption {
    margin-block-start: 0.6em;
    color: var(--muted-foreground);
    font-size: 0.875em;
    line-height: 1.5;
    text-align: start;
    text-align-last: auto;
    text-wrap: pretty;
    caption-side: top;

    &[data-align="justify"] {
      text-align: justify;
      text-align-last: start;
      hyphens: auto;
    }
    &[data-align="center"] {
      text-align: center;
      text-wrap: balance;
    }
    table > & {
      margin-block: 0 0.6em;
    }
  }
  .typeset-numbered :is(figcaption.typeset-caption)::before {
    counter-increment: typeset-figure;
    content: var(--typeset-figure-label) counter(typeset-figure) ". ";
    color: var(--foreground);
    font-weight: 600;
  }
  .typeset-numbered
    :is(
      caption.typeset-caption,
      figure:has(> table) > figcaption.typeset-caption,
      figure:has(> .table-container) > figcaption.typeset-caption
    )::before {
    counter-increment: typeset-table;
    content: var(--typeset-table-label) counter(typeset-table) ". ";
  }

  /* -- Figure groups: several figures in one box ---------------------------
     .typeset-group sets two or three figures (charts, pictures, tables) side
     by side; each figure's caption is lettered "(a)", "(b)" (.typeset-subcaption),
     the group's own figcaption numbers the whole. Every figure spans two
     subgrid rows - media, then caption - so the captions of a row sit at one
     height whatever the media's height. data-align="middle" centres the media
     in their row; data-divided draws hairlines between the figures - the
     1px grid gap over a border-coloured background, so the lines run between
     columns and, once the figures stack, between rows, with no container
     query (a size container would scope the caption counters to the group);
     data-variant="cards" gives each figure its own card instead of one box.
     Narrow pages stack them.
     VERIFIED: (typography.e2e "figure groups") captions level, the 1px lines
     between columns and between stacked rows, the cards' borders. */
  .typeset-group {
    --typeset-group-min: 12rem;
    --typeset-group-gap: 1.25rem;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--typeset-group-min)), 1fr));
    gap: var(--typeset-group-gap);
    margin-inline: 0;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--card);
    counter-reset: typeset-sub;

    & > figure {
      display: grid;
      grid-row: span 2;
      grid-template-rows: subgrid;
      row-gap: 0.4em;
      align-content: start;
      margin: 0;
      min-inline-size: 0;
    }
    & > figcaption {
      grid-column: 1 / -1;
      margin-block-start: 0.25em;
    }
    & img,
    & video {
      display: block;
      inline-size: 100%;
      block-size: auto;
      border-radius: var(--radius-md);
    }

    &[data-align="middle"] > figure > :first-child {
      align-self: center;
    }

    &[data-variant="cards"] {
      padding: 0;
      border: 0;
      background: none;

      & > figure {
        padding: 0.875rem;
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        background: var(--card);
      }
    }

    &[data-divided] {
      gap: 1px;
      padding: 0;
      overflow: hidden;
      background: var(--border);

      & > figure {
        padding: 1rem;
        background: var(--card);
      }
      & > figcaption {
        margin: 0;
        padding: 0.75rem 1rem 1rem;
        background: var(--card);
      }
    }
  }
  .typeset-subcaption {
    margin: 0;
    color: var(--muted-foreground);
    font-size: 0.8125em;
    line-height: 1.45;

    &::before {
      counter-increment: typeset-sub;
      content: "(" counter(typeset-sub, lower-alpha) ") ";
      color: var(--foreground);
      font-weight: 600;
    }
  }

  /* -- Breaks and keeps (Umbruch): where a printed page or column ends -----
     .typeset-break is an empty marker that forces a break before the next
     block: data-break="page" (the default), "column" (inside data-columns),
     "left" / "right" (the next page is a left / right page - duplex). It
     breaks in print only: a screen has no pages, and a column break in a
     balanced screen column would push the rest of the text into the last
     column. In print it is a zero-height box carrying break-before -
     display: none would remove the box and the break with it. On screen it
     is hidden; [data-show-breaks] on an ancestor shows every marker as a
     labelled dashed line, an authoring aid.
     .typeset-keep keeps its content in one column and on one page (avoid
     covers both - avoid-page would still let a column break split it).
     VERIFIED: (typography.e2e "breaks and keeps", paper.e2e "print") the
     computed breaks in print media; a printed PDF with a page and a column
     break; a zero-height break in the paper's grid leaves no gap at the top
     of the new page. */
  .typeset-break {
    display: none;
  }
  @media screen {
    [data-show-breaks] .typeset-break {
      display: flex;
      align-items: center;
      gap: 0.75em;
      margin-block: 1em;
      color: var(--muted-foreground);
      font: 500 0.6875rem/1 var(--font-mono);
      letter-spacing: 0.06em;
      text-transform: uppercase;

      &::before {
        content: "Page break";
      }
      &[data-break="column"]::before {
        content: "Column break";
      }
      &[data-break="left"]::before {
        content: "Page break - left page";
      }
      &[data-break="right"]::before {
        content: "Page break - right page";
      }
      &::after {
        content: "";
        flex: 1;
        border-block-start: 1px dashed currentColor;
      }
    }
  }
  @media print {
    .typeset-break {
      display: block;
      block-size: 0;
      margin: 0;
      padding: 0;
      border: 0;
      visibility: hidden;
      break-before: page;

      &[data-break="column"] {
        break-before: column;
      }
      &[data-break="left"] {
        break-before: left;
      }
      &[data-break="right"] {
        break-before: right;
      }
    }
    /* a printed column rule runs straight through a spanning heading or
       figure that starts a page - so a setting with spanners prints without it.
       VERIFIED: (Chromium PDF probe 2026-10-12) a column-span: all block that a
       natural page break puts at the top of a page is crossed by the rule; an
       opaque background hides it only while background graphics print. */
    .typeset[data-rule]:has(> .typeset-span) {
      column-rule-style: none;
    }
  }
  .typeset-keep {
    break-inside: avoid;
  }

  /* -- Accessibility ------------------------------------------ */

  @media (prefers-contrast: more) {
    .h1,
    .h2,
    .h3,
    .h4 {
      letter-spacing: 0;
    }

    .typeset {
      --typeset-initial-color: var(--foreground);
    }

    .blockquote {
      border-inline-start-width: 3px;
    }

    .inline-code {
      outline: 1px solid var(--border);
    }

    .muted,
    [data-show-breaks] .typeset-break {
      color: var(--foreground);
    }

    /* a theme may drop the underline; more contrast brings it back */
    .link {
      text-decoration-line: underline;
    }
  }

  @media (forced-colors: active) {
    .blockquote {
      border-inline-start-color: CanvasText;
    }

    .typeset {
      --typeset-initial-color: CanvasText;
    }

    .typeset[data-rule] {
      column-rule-color: CanvasText;
    }

    .inline-code {
      background: Canvas;
      outline: 1px solid CanvasText;
      color: CanvasText;
    }

    .link {
      color: LinkText;
      text-decoration-line: underline;
    }
  }
}

/* ── components/window/window.css ── */
/* -- Window component --------------------------------------------
   A desktop-style window: a non-modal <dialog> with a title bar (icon,
   title, minimize / maximize / close), moved by dragging the bar, raised to
   the front on click, resized natively. Chrome styles after Windows, macOS,
   Linux (GNOME) and a retro 9x look. The controls are a
   <form method="dialog">, so the × closes the window without script. */

@layer components {
  /* the area windows live in: positioned, clipped - a desktop */
  .window-desktop {
    position: relative;
    overflow: hidden;
    min-height: 18rem;
    border-radius: var(--radius-lg);
    background:
      radial-gradient(circle at 1px 1px, color-mix(in oklch, var(--foreground) 12%, transparent) 1px, transparent 0) 0
        0 / 1.25rem 1.25rem,
      var(--muted);
    isolation: isolate;
  }

  .window {
    /* the UA dialog defaults (centered, padded, bordered) - replaced */
    --_titlebar: 2.25rem;
    --_ctl: 2.75rem;
    position: absolute;
    inset: auto;
    left: var(--window-x, 2rem);
    top: var(--window-y, 2rem);
    box-sizing: border-box;
    width: var(--window-w, 24rem);
    height: var(--window-h, auto);
    max-width: none;
    max-height: none;
    min-width: 12rem;
    margin: 0;
    padding: 0;
    display: none;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--card);
    color: var(--card-foreground);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: box-shadow 150ms;

    &[open] {
      display: flex;
    }

    /* native resize handle, bottom-right */
    &[data-resizable] {
      resize: both;
      min-height: calc(var(--_titlebar) + 4rem);
    }

    /* -- Title bar ---------------------------------------------------- */
    & > .window-titlebar {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      flex: none;
      height: var(--_titlebar);
      padding-inline-start: 0.75rem;
      background: var(--muted);
      border-bottom: 1px solid var(--border);
      cursor: default;
      user-select: none;
      touch-action: none;

      &:focus-visible {
        outline: 2px solid var(--ring);
        outline-offset: -2px;
      }
    }

    & .window-icon {
      flex: none;
      width: 1rem;
      height: 1rem;
      object-fit: contain;
      color: var(--muted-foreground);
    }

    & .window-title {
      flex: 1;
      min-width: 0;
      margin: 0;
      overflow: hidden;
      font: inherit;
      font-size: 0.8125rem;
      font-weight: 500;
      white-space: nowrap;
      text-overflow: ellipsis;
    }

    /* -- Controls: CSS-drawn glyphs --------------------------------------- */
    & .window-controls {
      display: flex;
      align-self: stretch;
      flex: none;
      margin: 0;
    }

    & .window-controls > button {
      position: relative;
      box-sizing: border-box;
      width: var(--_ctl);
      height: 100%;
      margin: 0;
      padding: 0;
      border: 0;
      background: transparent;
      color: var(--foreground);
      cursor: default;
      transition:
        background-color 120ms,
        color 120ms;

      &::before,
      &::after {
        content: "";
        position: absolute;
        inset: 50% auto auto 50%;
        translate: -50% -50%;
        box-sizing: border-box;
      }

      &:hover {
        background: color-mix(in oklch, var(--foreground) 10%, transparent);
      }
      &:focus-visible {
        outline: 2px solid var(--ring);
        outline-offset: -2px;
      }
    }

    /* minimize: a bar */
    & .window-minimize::before {
      width: 0.625rem;
      height: 1px;
      background: currentColor;
    }
    /* maximize: a box; restore (while maximized): two boxes */
    & .window-maximize::before {
      width: 0.625rem;
      height: 0.625rem;
      border: 1px solid currentColor;
      border-radius: 1px;
    }
    &[data-maximized] .window-maximize {
      &::before {
        translate: -40% -60%;
        width: 0.5rem;
        height: 0.5rem;
      }
      &::after {
        translate: -65% -35%;
        width: 0.5rem;
        height: 0.5rem;
        border: 1px solid currentColor;
        border-radius: 1px;
        background: var(--muted);
      }
    }
    /* close: an × */
    & .window-close {
      &::before,
      &::after {
        width: 0.75rem;
        height: 1px;
        background: currentColor;
        rotate: 45deg;
      }
      &::after {
        rotate: -45deg;
      }
    }
    /* Windows chrome: the × turns red with a white glyph. Stated through
       .window-controls > so it outranks the shared control hover (a light
       tint) - otherwise the white glyph landed on light grey. The other
       chromes style their own close button. */
    &:not([data-chrome="mac"], [data-chrome="linux"], [data-chrome="retro"]) .window-controls > .window-close:hover {
      background: oklch(0.58 0.21 27);
      color: oklch(0.99 0 0);
    }

    /* -- Toolbar: an app's menubar / buttons under the title bar -------- */
    & > .window-toolbar {
      display: flex;
      align-items: center;
      gap: 0.25rem;
      flex: none;
      min-height: 2.25rem;
      padding: 0.125rem 0.375rem;
      border-bottom: 1px solid var(--border);
      background: var(--background);
      overflow-x: auto;
    }

    /* -- Body / status bar -------------------------------------------- */
    & > .window-body {
      flex: 1;
      min-height: 0;
      padding: 1rem;
      overflow: auto;
      overscroll-behavior: contain;
    }
    & > .window-body[data-flush] {
      padding: 0;
    }

    & > .window-statusbar {
      display: flex;
      align-items: center;
      gap: 1rem;
      flex: none;
      padding: 0.25rem 0.75rem;
      border-top: 1px solid var(--border);
      background: var(--muted);
      color: var(--muted-foreground);
      font-size: 0.75rem;
    }

    /* -- Active / inactive ---------------------------------------------- */
    &:not([data-active]) {
      box-shadow: var(--shadow-sm);
      & > .window-titlebar {
        color: var(--muted-foreground);
      }
    }

    /* -- Maximized: fill the desktop; minimized: rolled up to the bar -- */
    &[data-maximized] {
      inset: 0;
      width: auto;
      height: auto;
      border-radius: 0;
      border-width: 0;
      resize: none;
      box-shadow: none;
    }
    &[data-minimized] {
      height: auto;
      min-height: 0;
      resize: none;
      & > :not(.window-titlebar) {
        display: none;
      }
      & > .window-titlebar {
        border-bottom: 0;
      }
    }
    &[data-dragging] {
      transition: none;
    }

    /* -- Chrome: macOS - traffic lights on the left, centred title ------- */
    &[data-chrome="mac"] {
      --_ctl: 1.25rem;
      & > .window-titlebar {
        padding-inline: 0.75rem;
      }
      & .window-controls {
        order: -1;
        align-self: center;
        gap: 0.5rem;
        margin-inline-end: 0.25rem;
      }
      & .window-controls > button {
        width: 0.75rem;
        height: 0.75rem;
        border-radius: 999px;
        color: oklch(0.3 0.05 30 / 0);
        &:hover {
          background: var(--_light);
        }
        &::before,
        &::after {
          scale: 0.7;
        }
      }
      /* the glyphs appear when the pointer is over the lights */
      & .window-controls:hover > button {
        color: oklch(0.3 0.05 30 / 0.8);
      }
      & .window-close {
        order: 1;
        --_light: oklch(0.68 0.2 25);
      }
      & .window-minimize {
        order: 2;
        --_light: oklch(0.82 0.16 85);
      }
      & .window-maximize {
        order: 3;
        --_light: oklch(0.74 0.17 145);
      }
      & .window-controls > button {
        background: var(--_light);
      }
      & .window-close:hover {
        color: oklch(0.3 0.05 30 / 0.8);
      }
      & .window-title {
        text-align: center;
      }
      /* the icon sits beside the centred title */
      & .window-icon {
        order: 1;
      }
      & .window-title {
        order: 0;
      }
      &[data-maximized] .window-maximize::after {
        background: var(--_light);
      }
      &:not([data-active]) .window-controls:not(:hover) > button {
        background: color-mix(in oklch, var(--muted-foreground) 35%, transparent);
      }
    }

    /* -- Chrome: Linux (GNOME) - round grey buttons on the right --------- */
    &[data-chrome="linux"] {
      --_ctl: 1.5rem;
      & > .window-titlebar {
        padding-inline-end: 0.5rem;
      }
      & .window-title {
        text-align: center;
        font-weight: 600;
      }
      & .window-controls {
        align-self: center;
        gap: 0.5rem;
      }
      & .window-controls > button {
        width: var(--_ctl);
        height: var(--_ctl);
        border-radius: 999px;
        background: color-mix(in oklch, var(--foreground) 9%, transparent);
        &::before,
        &::after {
          scale: 0.8;
        }
        &:hover {
          background: color-mix(in oklch, var(--foreground) 16%, transparent);
        }
      }
      & .window-close:hover {
        background: color-mix(in oklch, var(--foreground) 16%, transparent);
        color: var(--foreground);
      }
      &[data-maximized] .window-maximize::after {
        background: transparent;
      }
    }

    /* -- Chrome: retro - a bevelled 9x window with a gradient title ------ */
    &[data-chrome="retro"] {
      --_face: oklch(0.8 0 0);
      --_hi: oklch(1 0 0);
      --_lo: oklch(0.5 0 0);
      --_ctl: 1.125rem;
      padding: 3px;
      border: 0;
      border-radius: 0;
      background: var(--_face);
      color: oklch(0.15 0 0);
      box-shadow:
        inset -1px -1px 0 oklch(0.1 0 0),
        inset 1px 1px 0 var(--_face),
        inset -2px -2px 0 var(--_lo),
        inset 2px 2px 0 var(--_hi);
      & > .window-titlebar {
        height: 1.375rem;
        padding-inline: 0.25rem 0.125rem;
        gap: 0.25rem;
        border: 0;
        background: linear-gradient(90deg, oklch(0.3 0.16 264), oklch(0.62 0.12 240));
        color: oklch(1 0 0);
      }
      & .window-icon {
        color: inherit;
      }
      & .window-title {
        font-weight: 700;
        font-size: 0.75rem;
      }
      & .window-controls {
        align-self: center;
        gap: 2px;
      }
      & .window-controls > button {
        width: calc(var(--_ctl) + 2px);
        height: var(--_ctl);
        background: var(--_face);
        color: oklch(0.1 0 0);
        box-shadow:
          inset -1px -1px 0 oklch(0.1 0 0),
          inset 1px 1px 0 var(--_hi),
          inset -2px -2px 0 var(--_lo);
        &:hover {
          background: var(--_face);
          color: oklch(0.1 0 0);
        }
        &:active {
          box-shadow:
            inset 1px 1px 0 oklch(0.1 0 0),
            inset -1px -1px 0 var(--_hi),
            inset 2px 2px 0 var(--_lo);
        }
        &::before,
        &::after {
          scale: 0.75;
        }
      }
      & .window-close {
        margin-inline-start: 2px;
      }
      & .window-minimize::before {
        height: 2px;
        translate: -50% 150%;
      }
      & .window-maximize::before {
        border-top-width: 2px;
      }
      & .window-close::before,
      & .window-close::after {
        height: 2px;
      }
      &[data-maximized] .window-maximize::after {
        background: var(--_face);
        border-top-width: 2px;
      }
      & > .window-body {
        margin-top: 2px;
        background: oklch(1 0 0);
        box-shadow:
          inset 1px 1px 0 var(--_lo),
          inset -1px -1px 0 var(--_hi),
          inset 2px 2px 0 oklch(0.1 0 0);
      }
      & > .window-toolbar {
        margin-top: 2px;
        border: 0;
        background: var(--_face);
        color: oklch(0.15 0 0);
      }
      & > .window-statusbar {
        margin-top: 2px;
        border: 0;
        background: var(--_face);
        color: oklch(0.15 0 0);
        box-shadow:
          inset 1px 1px 0 var(--_lo),
          inset -1px -1px 0 var(--_hi);
      }
      &:not([data-active]) > .window-titlebar {
        background: linear-gradient(90deg, oklch(0.55 0 0), oklch(0.72 0 0));
        color: oklch(0.85 0 0);
      }
      &[data-maximized] {
        padding: 3px;
      }
    }
  }

  /* -- Accessibility -------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .window,
    .window .window-controls > button {
      transition: none;
    }
  }

  @media (prefers-contrast: more) {
    .window {
      border-color: var(--foreground);
    }
    .window > .window-titlebar {
      border-bottom-color: var(--foreground);
    }
    .window:not([data-active]) > .window-titlebar {
      color: var(--foreground);
    }
  }

  @media (forced-colors: active) {
    .window {
      border: 1px solid CanvasText;
    }
    .window[data-active] > .window-titlebar {
      background: Highlight;
      color: HighlightText;
      forced-color-adjust: none;
    }
    .window .window-controls > button::before,
    .window .window-controls > button::after {
      border-color: ButtonText;
    }
  }
}

/* ── components/window-manager/window-manager.css ── */
/* -- Window Manager component -------------------------------------
   The area one desktop's windows live in. It adds no chrome of its own: the
   windows are Window components, a taskbar renders the manager's model. With
   a taskbar bound (data-taskbar, set by the Taskbar) a minimized window leaves
   the desktop for its taskbar button instead of rolling up to its title bar. */

@layer components {
  .window-manager {
    position: relative;
    isolation: isolate;
    overflow: hidden;
  }

  .window-manager[data-taskbar] .window[data-minimized] {
    display: none;
  }

  /* -- drawn scroll bars (data-scrollbars="virtual") ---------------------------------------------------------
     The runtime lays a bar over each scrolling area of a window, in a layer appended to the window; the native bar
     is hidden and the area's padding keeps the room. These rules are the structure and a thin modern bar; a look
     (desktop.css) restyles the parts: --window-scrollbar-size, the buttons (shown by giving them a size), the track,
     the thumb, the corner; --window-scrollbar-inset on an area keeps the bar inside a frame drawn on it. */
  .window-manager[data-scrollbars="virtual"] .window [data-drawn-scroll] {
    scrollbar-width: none;
    &::-webkit-scrollbar {
      display: none;
    }
  }
  .window-manager-scrollbars {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    --window-scrollbar-size: 10px;
  }
  .window-manager-scrollbar {
    position: absolute;
    display: flex;
    box-sizing: border-box;
    pointer-events: auto;
    touch-action: none;
    user-select: none;

    &[data-axis="y"] {
      flex-direction: column;
      width: var(--window-scrollbar-size);
    }
    &[data-axis="x"] {
      height: var(--window-scrollbar-size);
    }
    &[hidden] {
      display: none;
    }
  }
  .window-manager-scrollbar-track {
    position: relative;
    flex: 1;
    min-width: 0;
    min-height: 0;
  }
  .window-manager-scrollbar-thumb {
    position: absolute;
    inset: 0;
    box-sizing: border-box;
    border-radius: 999px;
    background: color-mix(in oklch, var(--muted-foreground) 45%, transparent);
    background-clip: content-box;
    border: 2px solid transparent;

    [data-axis="y"] > .window-manager-scrollbar-track > & {
      bottom: auto;
    }
    [data-axis="x"] > .window-manager-scrollbar-track > & {
      right: auto;
    }
    &:hover,
    &[data-pressed] {
      background-color: color-mix(in oklch, var(--muted-foreground) 75%, transparent);
    }
  }
  /* buttons take no room until a look gives them a size */
  .window-manager-scrollbar-button {
    flex: none;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    width: 0;
    height: 0;
    overflow: hidden;

    &::before {
      content: "";
      width: 8px;
      height: 8px;
      background: currentColor;
      mask: center / contain no-repeat;
    }
    [data-axis="y"] > &[data-step="-1"]::before {
      mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Cpath d='M4 2L7 6H1z'/%3E%3C/svg%3E");
    }
    [data-axis="y"] > &[data-step="1"]::before {
      mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Cpath d='M1 2h6L4 6z'/%3E%3C/svg%3E");
    }
    [data-axis="x"] > &[data-step="-1"]::before {
      mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Cpath d='M6 1v6L2 4z'/%3E%3C/svg%3E");
    }
    [data-axis="x"] > &[data-step="1"]::before {
      mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Cpath d='M2 1l4 3-4 3z'/%3E%3C/svg%3E");
    }
  }
  .window-manager-scrollbar-corner {
    position: absolute;
    width: var(--window-scrollbar-size);
    height: var(--window-scrollbar-size);
    &[hidden] {
      display: none;
    }
  }
}

@media (forced-colors: active) {
  @layer components {
    .window-manager-scrollbar-thumb {
      background: ButtonText;
    }
    .window-manager-scrollbar-button::before {
      background: ButtonText;
    }
  }
}
