/* scaffold-knowledge-graph: core.css + the 31 components its markup uses (avatar, badge, border-layout, breadcrumb, button, card, chart, checkbox, combobox, command, data-grid, dialog, dropdown, geo-map, graph-explorer, icon, indicator, input, kbd, language-switcher, panel, progress, resizer, separator, statistic, swap, table, timeline, toggle, toggle-group, typography) - 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/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/border-layout/border-layout.css ── */
/* -- Border Layout component --------------------------------------
   An application frame in five regions - north, south, west, east around a
   center - on a CSS grid. Every side region that should resize is a
   .resizer wrapping its pane: inside a border layout the resizer's handle
   becomes a full-length divider (line, optional grip), dragged or moved with
   the arrow keys. Regions left out collapse, so the same frame is a
   horizontal split, a vertical split, three columns... */

@layer components {
  .border-layout {
    /* the divider, themable per layout or per region */
    --_line-width: var(--border-layout-divider-width, 1px);
    --_line-style: solid;
    --_line-color: var(--border-layout-divider-color, var(--border));
    --_accent: var(--border-layout-accent, var(--ring));
    --_hit: 0.75rem;
    --_gap: 0px;

    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto minmax(0, 1fr) auto;
    /* north and south dominate: they span the full width */
    grid-template-areas:
      "north north north"
      "west  center east"
      "south south south";
    gap: var(--_gap);
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--card);
    color: var(--card-foreground);

    /* west and east dominate: they span the full height */
    &[data-dominant="we"] {
      grid-template-areas:
        "west north  east"
        "west center east"
        "west south  east";
    }

    /* no frame of its own - fills a window or a page */
    &[data-frame="none"] {
      border: 0;
      border-radius: 0;
      background: transparent;
    }
  }

  .border-layout > .border-layout-north {
    grid-area: north;
  }
  .border-layout > .border-layout-south {
    grid-area: south;
  }
  .border-layout > .border-layout-west {
    grid-area: west;
  }
  .border-layout > .border-layout-east {
    grid-area: east;
  }
  .border-layout > .border-layout-center {
    grid-area: center;
    min-width: 0;
    min-height: 0;
    overflow: auto;
  }

  /* -- Regions ------------------------------------------------------ */
  /* a resizable region: the resizer wrapper fills its grid cell, its pane
     stretches across the other axis and carries the size on its own */
  .border-layout > .resizer {
    display: flex;
    width: auto;
    min-width: 0;
    min-height: 0;
  }
  .border-layout > :is(.border-layout-north, .border-layout-south).resizer {
    flex-direction: column;
  }
  .border-layout > .resizer > :not(.resizer-handle) {
    flex: none;
    box-sizing: border-box;
    min-width: 0;
    min-height: 0;
    overflow: auto;
  }
  /* the pane of a collapsed region is gone; its divider stays to bring it back */
  .border-layout > .resizer[data-collapsed] > :not(.resizer-handle) {
    display: none;
  }

  /* a region that does not resize still gets the divider line */
  .border-layout > .border-layout-north:not(.resizer) {
    border-block-end: var(--_line-width) var(--_line-style) var(--_line-color);
  }
  .border-layout > .border-layout-south:not(.resizer) {
    border-block-start: var(--_line-width) var(--_line-style) var(--_line-color);
  }
  .border-layout > .border-layout-west:not(.resizer) {
    border-inline-end: var(--_line-width) var(--_line-style) var(--_line-color);
  }
  .border-layout > .border-layout-east:not(.resizer) {
    border-inline-start: var(--_line-width) var(--_line-style) var(--_line-color);
  }

  /* -- Fit: a fixed side region sized by its content -------------------
     data-fit on a fixed region (no resizer): its size is its content's -
     a tree that grows, a list of states - between --border-layout-fit-min
     and --border-layout-fit-max (half the layout by default); past the
     maximum its content scrolls. The side rows and columns are `auto`
     tracks, which take an item's clamped size: CSS only. The bounds are
     container units of the layout, so a layout holding a fit region is a
     size container - it takes its height from outside (a height, a
     grid cell), never from its content. A panel in it that is minimized
     or maximized leaves the bounds. */
  .border-layout:has(> [data-fit]) {
    container-type: size;
  }
  .border-layout
    > :is(.border-layout-north, .border-layout-south)[data-fit]:not(
      [data-minimized],
      [data-maximized],
      [data-panel-minimized]
    ) {
    min-block-size: var(--border-layout-fit-min, 0px);
    max-block-size: var(--border-layout-fit-max, 50cqh);
    overflow: auto;
  }
  .border-layout
    > :is(.border-layout-west, .border-layout-east)[data-fit]:not(
      [data-minimized],
      [data-maximized],
      [data-panel-minimized]
    ) {
    min-inline-size: var(--border-layout-fit-min, 0px);
    max-inline-size: var(--border-layout-fit-max, 50cqw);
    overflow: auto;
  }

  /* padding for panes that hold text (optional) */
  .border-layout-pane {
    padding: 0.75rem;
  }

  /* -- Dividers: the resizer handle, redrawn --------------------------- */
  .border-layout > .resizer > .resizer-handle {
    z-index: 5;
    width: auto;
    height: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    color: var(--muted-foreground);

    /* the line */
    &::before {
      content: "";
      position: absolute;
      transition: border-color 120ms;
    }
    /* the grip - hidden unless data-grip asks for one */
    &::after {
      content: none;
      inset: auto;
    }

    &:hover,
    &:focus-visible {
      background: transparent;
      outline: none;
    }
    &:is(:hover, :focus-visible)::before {
      border-color: var(--_accent);
    }
    &:focus-visible::after {
      outline: 2px solid var(--_accent);
      outline-offset: 1px;
    }

    /* vertical dividers: west's east edge, east's west edge */
    &:is([data-handle="e"], [data-handle="w"]) {
      top: 0;
      bottom: 0;
      width: var(--_hit);
      cursor: col-resize;
      &::before {
        inset-block: 0;
        left: 50%;
        border-inline-start: var(--_line-width) var(--_line-style) var(--_line-color);
        translate: -50% 0;
      }
    }
    &[data-handle="e"] {
      right: 0;
      left: auto;
      translate: calc(50% + var(--_gap) / 2) 0;
    }
    &[data-handle="w"] {
      left: 0;
      right: auto;
      translate: calc(-50% - var(--_gap) / 2) 0;
    }

    /* horizontal dividers: north's south edge, south's north edge */
    &:is([data-handle="n"], [data-handle="s"]) {
      left: 0;
      right: 0;
      height: var(--_hit);
      cursor: row-resize;
      &::before {
        inset-inline: 0;
        top: 50%;
        border-block-start: var(--_line-width) var(--_line-style) var(--_line-color);
        translate: 0 -50%;
      }
    }
    &[data-handle="s"] {
      bottom: 0;
      top: auto;
      translate: 0 calc(50% + var(--_gap) / 2);
    }
    &[data-handle="n"] {
      top: 0;
      bottom: auto;
      translate: 0 calc(-50% - var(--_gap) / 2);
    }
  }

  /* dragging: the divider lights up; the resizer's own box outline stays off */
  .border-layout > .resizer[data-resizing] {
    outline: none;
    & > .resizer-handle {
      background: transparent;
    }
    & > .resizer-handle::before {
      border-color: var(--_accent);
    }
  }

  /* -- Grips: data-grip on the layout (every divider) or on one region -- */
  :is(.border-layout[data-grip] > .resizer, .border-layout > .resizer[data-grip]) > .resizer-handle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    box-sizing: border-box;
    border-radius: var(--radius-sm);
  }
  /* dots: a small card with a dotted grip */
  :is(.border-layout[data-grip="dots"] > .resizer, .border-layout > .resizer[data-grip="dots"])
    > .resizer-handle::after {
    width: 0.75rem;
    height: 1.25rem;
    border: 1px solid var(--_line-color);
    background:
      radial-gradient(circle, currentColor 0.75px, transparent 1.25px) center / 4px 4px,
      var(--background);
  }
  /* bar: a pill across the line */
  :is(.border-layout[data-grip="bar"] > .resizer, .border-layout > .resizer[data-grip="bar"]) > .resizer-handle::after {
    width: 0.25rem;
    height: 2rem;
    border-radius: 999px;
    background: color-mix(in oklch, var(--foreground) 35%, var(--_line-color));
  }
  /* data-grip="none" - on the layout (regions without their own grip) or one
     region - switches it off; more specific than the rules above */
  :is(.border-layout[data-grip="none"] > .resizer:not([data-grip]), .border-layout > .resizer[data-grip="none"])
    > .resizer-handle::after {
    content: none;
  }
  /* horizontal dividers turn the grip sideways */
  .border-layout .resizer > .resizer-handle:is([data-handle="n"], [data-handle="s"])::after {
    rotate: 90deg;
  }
  .border-layout .resizer > .resizer-handle:is(:hover, :focus-visible)::after {
    border-color: var(--_accent);
  }

  /* -- Divider styles (data-divider on the layout or one region) ----------- */
  :is(.border-layout, .border-layout > .resizer, .border-layout > [class*="border-layout-"]) {
    &[data-divider="dashed"] {
      --_line-style: dashed;
    }
    &[data-divider="dotted"] {
      --_line-style: dotted;
      --_line-width: var(--border-layout-divider-width, 2px);
    }
    &[data-divider="double"] {
      --_line-style: double;
      --_line-width: var(--border-layout-divider-width, 4px);
    }
    &[data-divider="thick"] {
      --_line-width: var(--border-layout-divider-width, 4px);
      --_line-color: var(--border-layout-divider-color, var(--muted));
    }
    &[data-divider="none"] {
      --_line-width: 0px;
    }
  }
  /* gap: the regions float as cards in a gutter, the divider lives in the gutter */
  .border-layout[data-divider="gap"] {
    --_gap: 0.5rem;
    --_line-width: 0px;
    padding: var(--_gap);
    background: var(--muted);

    &
      > :is(
        .border-layout-north,
        .border-layout-south,
        .border-layout-west,
        .border-layout-east,
        .border-layout-center
      ):not(.resizer),
    & > .resizer > :not(.resizer-handle) {
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      background: var(--card);
    }
  }

  /* -- Stacks: several Panels on one side -----------------------------
     A region's pane may be a .border-layout-stack of Panels: top to bottom in
     west / east, side by side in north / south. The panels share the region
     by weight (--border-layout-share, a flex-grow the runtime writes as px when a
     divider moves);
     a minimized one shrinks to its title bar and the others take its room.
     When every panel is minimized the region folds like a single panel:
     north / south to the bars, west / east to vertical tabs.
     data-direction="row" | "column" lays them side by side or top to bottom on
     any side; in a row on west / east a minimized panel is a vertical tab. */
  .border-layout-stack {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;

    & > .panel {
      flex: var(--border-layout-share, 1) 1 0px;
      min-width: 0;
      min-height: 0;
      border: 0;
      border-radius: 0;
    }
    & > .panel[data-minimized] {
      flex: none;
    }
  }
  .border-layout
    > :is(.border-layout-north, .border-layout-south)
    > .border-layout-stack:not([data-direction="column"]),
  .border-layout > .border-layout-stack:is(.border-layout-north, .border-layout-south):not([data-direction="column"]),
  .border-layout-stack[data-direction="row"] {
    flex-direction: row;
  }
  /* north / south: a minimized panel keeps its bar at the start of its column */
  :is(.border-layout-north, .border-layout-south)
    > .border-layout-stack:not([data-direction="column"])
    > .panel[data-minimized],
  .border-layout-stack:is(.border-layout-north, .border-layout-south):not([data-direction="column"])
    > .panel[data-minimized] {
    align-self: flex-start;
  }
  /* west / east in a row (and every west / east stack folded): a minimized
     panel turns into a vertical tab - the Panel's own west / east tab, for
     panels a stack holds */
  :is(.border-layout-west, .border-layout-east) > .border-layout-stack[data-direction="row"] > .panel[data-minimized],
  .border-layout-stack[data-direction="row"]:is(.border-layout-west, .border-layout-east) > .panel[data-minimized],
  .border-layout > :is(.border-layout-west, .border-layout-east)[data-panel-minimized] > .border-layout-stack > .panel,
  .border-layout > .border-layout-stack:is(.border-layout-west, .border-layout-east)[data-panel-minimized] > .panel {
    inline-size: auto !important;
    min-inline-size: 0;
    container-type: normal;

    & > .panel-header {
      flex: 1;
      writing-mode: vertical-rl;
      padding-block: 0.25rem;
      padding-inline: 0.375rem 0.75rem;
      border-block-end: 0;
    }
    & .panel-tools {
      order: -1;
      margin-inline: 0 0.25rem;
    }
    & .panel-maximize {
      display: none;
    }
  }
  /* west: the tab reads from the bottom up and starts at the top - the chevron, the title, the tools (as the Panel's
     own west tab) */
  .border-layout-west > .border-layout-stack[data-direction="row"] > .panel[data-minimized] > .panel-header,
  .border-layout-stack[data-direction="row"].border-layout-west > .panel[data-minimized] > .panel-header,
  .border-layout > .border-layout-west[data-panel-minimized] > .border-layout-stack > .panel > .panel-header,
  .border-layout > .border-layout-stack.border-layout-west[data-panel-minimized] > .panel > .panel-header {
    rotate: 180deg;
    justify-content: flex-end;
    & .panel-tools {
      display: contents;
    }
    & .panel-icon,
    & .panel-title {
      order: 1;
      flex: none;
    }
    & .panel-minimize {
      order: 2;
      rotate: 90deg;
    }
  }

  /* deep navigation (data-levels on a row stack): each open level keeps its own width (--panel-size), a folded one is
     its bar, and the region is their sum - what a level gives up goes to the center. On the east side the levels run
     from the edge toward the center. A folded level in a drill stack is a breadcrumb: it takes the pointer. */
  .border-layout-stack[data-levels] > .panel:not([data-minimized]) {
    flex: none;
    inline-size: var(--panel-size, 16rem);
  }
  .border-layout-east > .border-layout-stack[data-levels],
  .border-layout-stack[data-levels].border-layout-east {
    flex-direction: row-reverse;
  }
  .border-layout-stack[data-drill] > .panel[data-minimized] > .panel-header {
    cursor: pointer;

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

  /* the divider between two panels: a line with a wider hit area */
  .border-layout-stack-divider {
    position: relative;
    z-index: 4;
    flex: none;
    block-size: var(--_line-width);
    margin-block: calc((var(--_hit) - var(--_line-width)) / -2);
    padding-block: calc((var(--_hit) - var(--_line-width)) / 2);
    background: var(--_line-color) content-box;
    cursor: row-resize;
    touch-action: none;
    transition: background-color 120ms;

    &:is(:hover, :focus-visible, [data-resizing]) {
      background-color: var(--_accent);
      outline: none;
    }
    &:focus-visible {
      box-shadow: inset 0 0 0 2px var(--_accent);
    }
    /* next to a minimized panel there is nothing to share */
    &[aria-disabled="true"] {
      cursor: default;
      background-color: var(--_line-color);
    }
  }
  :is(.border-layout-north, .border-layout-south)
    > .border-layout-stack:not([data-direction="column"])
    > .border-layout-stack-divider,
  .border-layout-stack:is(.border-layout-north, .border-layout-south):not([data-direction="column"])
    > .border-layout-stack-divider,
  .border-layout-stack[data-direction="row"] > .border-layout-stack-divider {
    block-size: auto;
    inline-size: var(--_line-width);
    margin-block: 0;
    padding-block: 0;
    margin-inline: calc((var(--_hit) - var(--_line-width)) / -2);
    padding-inline: calc((var(--_hit) - var(--_line-width)) / 2);
    cursor: col-resize;
  }

  /* every panel minimized: the region folds with them */
  .border-layout > .resizer[data-panel-minimized] > .border-layout-stack {
    overflow: hidden;
  }
  .border-layout > :is(.border-layout-north, .border-layout-south)[data-panel-minimized] > .border-layout-stack,
  .border-layout > .border-layout-stack:is(.border-layout-north, .border-layout-south)[data-panel-minimized] {
    block-size: auto !important;
  }
  .border-layout > :is(.border-layout-west, .border-layout-east)[data-panel-minimized] > .border-layout-stack,
  .border-layout > .border-layout-stack:is(.border-layout-west, .border-layout-east)[data-panel-minimized] {
    inline-size: auto !important;
    min-inline-size: 0;

    & > .border-layout-stack-divider {
      display: none;
    }
    /* the tabs share the height - side by side in a row */
    &:not([data-direction="row"]) > .panel[data-minimized] {
      flex: 1 1 0px;
    }
    &:not([data-direction="row"]) > .panel ~ .panel {
      border-block-start: var(--_line-width) var(--_line-style) var(--_line-color);
    }
    &[data-direction="row"] > .panel ~ .panel {
      border-inline-start: var(--_line-width) var(--_line-style) var(--_line-color);
    }
  }
  /* every panel closed: the region leaves with them */
  .border-layout > [data-stack-closed] {
    display: none;
  }

  /* -- Accessibility -------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .border-layout > .resizer > .resizer-handle::before,
    .border-layout-stack-divider {
      transition: none;
    }
  }

  @media (prefers-contrast: more) {
    .border-layout {
      --_line-color: var(--foreground);
    }
  }

  @media (forced-colors: active) {
    .border-layout {
      border: 1px solid CanvasText;
      --_line-color: CanvasText;
      --_accent: Highlight;
    }
    .border-layout > .resizer > .resizer-handle::before {
      forced-color-adjust: none;
    }
    .border-layout-stack-divider {
      forced-color-adjust: none;
      background-color: CanvasText;
      &:is(:hover, :focus-visible, [data-resizing]) {
        background-color: Highlight;
      }
    }
  }
}

/* ── components/breadcrumb/breadcrumb.css ── */
@layer components {
  .breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
  }
  .breadcrumb-item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
  }
  .breadcrumb-link {
    color: var(--muted-foreground);
    text-decoration: none;
    border-radius: var(--radius-sm);
    outline: none;
    transition: color 150ms ease;
    &:hover {
      color: var(--foreground);
    }
    /* only a real link underlines - a .breadcrumb-link button (dropdown /
       ellipsis trigger) is not navigation and keeps the color-only hover */
    &:is(a[href]):hover {
      text-decoration: underline;
      text-decoration-thickness: 1px;
      text-underline-offset: 3px;
    }
    &:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: 2px;
    }
  }
  /* -- Sizes ------------------------------------------------------
     data-size on the .breadcrumb nav scales the trail's type and separators,
     mirroring the shared field/button ladder (md = 0.875rem = default). */
  .breadcrumb[data-size="xs"] .breadcrumb-list {
    font-size: 0.75rem;
  }
  .breadcrumb[data-size="xs"] .breadcrumb-separator svg {
    width: 0.75rem;
    height: 0.75rem;
  }
  .breadcrumb[data-size="sm"] .breadcrumb-list {
    font-size: 0.8125rem;
  }
  .breadcrumb[data-size="md"] .breadcrumb-list {
    font-size: 0.875rem;
  }
  .breadcrumb[data-size="lg"] .breadcrumb-list {
    font-size: 1rem;
  }
  .breadcrumb[data-size="lg"] .breadcrumb-separator svg {
    width: 1rem;
    height: 1rem;
  }
  .breadcrumb[data-size="xl"] .breadcrumb-list {
    font-size: 1.125rem;
  }
  .breadcrumb[data-size="xl"] .breadcrumb-separator svg {
    width: 1.125rem;
    height: 1.125rem;
  }

  .breadcrumb-separator {
    color: var(--muted-foreground);
    font-size: 0.75rem;
    /* flex (not inline): an inline <svg> sits on the text baseline, so icon
       separators render a few px above the labels' optical center */
    display: flex;
    align-items: center;
    & svg {
      width: 0.875rem;
      height: 0.875rem;
      flex-shrink: 0;
    }

    /* RTL: auto-flip chevron separators */
    [dir="rtl"] & svg {
      scale: -1 1;
    }
  }
  .breadcrumb-page {
    color: var(--foreground);
    font-weight: 400;
  }

  /* -- Icons / emoji in front of a crumb ---------------------------
     An <svg> or a <span class="breadcrumb-icon"> (emoji) before the label:
     link and page line them up on the label's center and size them to the
     text (1em - so data-size scales them too). */
  .breadcrumb-link,
  .breadcrumb-page {
    &:has(> :is(svg, .breadcrumb-icon)) {
      display: inline-flex;
      align-items: center;
      gap: 0.375em;
    }
    & > svg {
      width: 1em;
      height: 1em;
      flex-shrink: 0;
    }
  }
  .breadcrumb-icon {
    display: inline-grid;
    place-items: center;
    width: 1.15em;
    height: 1.15em;
    flex-shrink: 0;
    line-height: 1;
    font-style: normal;
  }
  .breadcrumb-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    color: var(--muted-foreground);
    & span {
      position: absolute;
      width: 1px;
      height: 1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
    }
  }

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

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

  @media (prefers-contrast: more) {
    .breadcrumb-link {
      text-decoration: underline;
    }
    .breadcrumb-page {
      font-weight: 600;
    }
  }

  @media (forced-colors: active) {
    .breadcrumb-link {
      &:hover {
        forced-color-adjust: none;
        color: HighlightText;
        background: Highlight;
      }
    }
    .breadcrumb-page {
      color: CanvasText;
    }
    .breadcrumb-separator {
      color: GrayText;
    }
  }
}

/* ── 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/card/card.css ── */
/* -- Card component -------------------------------------------- */

@layer components {
  /* Spacing runs through one private variable: --_pad (section padding) =
     --_base (the SIZE's padding, md 1.5rem) × --_k (the DENSITY factor), and
     --_hf (the header→footer gap when no content sits between them) =
     --_hfb × --_kh. Size and density therefore combine instead of fighting.
     --_title / --_desc carry the size's type scale. All private. */
  .card {
    --_base: 1.5rem;
    --_hfb: 1rem;
    --_k: 1;
    --_kh: 1;
    --_pad: calc(var(--_base) * var(--_k));
    --_hf: calc(var(--_hfb) * var(--_kh));
    background-color: var(--card);
    color: var(--card-foreground);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    container-type: inline-size;
  }

  .card-header {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: var(--_pad, 1.5rem);
    padding-bottom: 0;
  }

  .card-title {
    font-size: var(--_title, 1.25rem);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin: 0;
  }

  .card-description {
    font-size: var(--_desc, 0.875rem);
    color: var(--muted-foreground);
    margin: 0;
    line-height: 1.6;
  }

  .card-content {
    padding: var(--_pad, 1.5rem);
  }

  .card-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: var(--_pad, 1.5rem);
    padding-top: 0;
  }

  /* Header + footer with no .card-content between: the zeroed paddings would
     glue them together - restore the gap for that composition only. */
  .card-header + .card-footer {
    padding-top: var(--_hf, 1rem);
  }

  /* A header-only card (a title + description panel): the header is the last
     section, so it keeps its bottom padding instead of sitting on the edge. */
  .card-header:last-child {
    padding-bottom: var(--_pad, 1.5rem);
  }

  /* -- Body: an optional wrapper around header / content / footer.
     Needed for the side and overlay layouts (media | body); in a column it
     pushes the footer to the bottom, so a row of cards lines up its actions. */
  .card-body {
    display: flex;
    flex-direction: column;
    min-width: 0;

    & > .card-footer {
      margin-top: auto;
    }
  }

  /* -- Media: a figure (img / video / picture / svg) edge to edge - first
     child for an image on top, last child for one at the bottom. 16:9 unless
     the author sets an aspect-ratio. data-inset pads and rounds it instead
     (the centered-content look). */
  .card-media {
    display: block;
    margin: 0;
    overflow: hidden;
    aspect-ratio: 16 / 9;

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

    &[data-inset] {
      margin: var(--_pad) var(--_pad) 0;
      border-radius: var(--radius-lg);
    }
    &[data-inset]:last-child {
      margin: 0 var(--_pad) var(--_pad);
    }
  }

  /* -- Density --------------------------------------------------
     data-density on the .card root scales the section paddings together.
     Scale matches sizing.css data-density (0.75 / 1 / 1.25): comfortable is
     the unsized default (1.5rem), compact 1rem, spacious 2rem; the
     header+footer-only gap (1rem base) follows the ratio (0.75 / 1 / 1.5). */
  .card:where([data-density="compact"]) {
    --_k: calc(2 / 3);
    --_kh: 0.75;
  }
  .card:where([data-density="comfortable"]) {
    --_k: 1;
    --_kh: 1;
  }
  .card:where([data-density="spacious"]) {
    --_k: calc(4 / 3);
    --_kh: 1.5;
  }

  .card {
    /* -- Sizes: padding + type scale together (md == the default) ----- */
    &[data-size="xs"] {
      --_base: 0.75rem;
      --_hfb: 0.5rem;
      --_title: 0.875rem;
      --_desc: 0.75rem;
    }
    &[data-size="sm"] {
      --_base: 1rem;
      --_hfb: 0.75rem;
      --_title: 1rem;
      --_desc: 0.8125rem;
    }
    &[data-size="md"] {
      --_base: 1.5rem;
      --_hfb: 1rem;
      --_title: 1.25rem;
      --_desc: 0.875rem;
    }
    &[data-size="lg"] {
      --_base: 2rem;
      --_hfb: 1.25rem;
      --_title: 1.5rem;
      --_desc: 1rem;
    }
    &[data-size="xl"] {
      --_base: 2.5rem;
      --_hfb: 1.5rem;
      --_title: 1.875rem;
      --_desc: 1.0625rem;
    }

    /* -- Variants -------------------------------------------------- */
    &[data-variant="outline"] {
      background-color: transparent;
    }
    &[data-variant="dashed"] {
      border-style: dashed;
      border-width: 2px;
    }
    &[data-variant="ghost"] {
      background-color: transparent;
      border-color: transparent;
    }
    &[data-variant="muted"] {
      background-color: var(--muted);
      border-color: transparent;
    }
    &[data-variant="elevated"] {
      border-color: transparent;
      box-shadow: var(--shadow-lg);
    }
    &[data-variant="primary"] {
      background-color: var(--primary);
      color: var(--primary-foreground);
      border-color: transparent;

      & .card-description {
        color: color-mix(in oklch, var(--primary-foreground) 78%, transparent);
      }
    }
    /* a charcoal surface: the inverse colors, softened (78%) so it stays
       apart from --primary - in the default theme primary IS near-black */
    &[data-variant="neutral"] {
      background-color: color-mix(in oklch, var(--foreground) 78%, var(--background));
      color: var(--background);
      border-color: transparent;

      & .card-description {
        color: color-mix(in oklch, var(--background) 72%, transparent);
      }
    }
    /* ghost / link buttons on a colored surface take its text color and a
       hover tint made from it (the default hover - the pale --accent - would
       put near-white text on near-white) */
    &:is([data-variant="primary"], [data-variant="neutral"], [data-layout="overlay"])
      .btn:is([data-variant="ghost"], [data-variant="link"]) {
      color: inherit;

      &:hover {
        background-color: color-mix(in oklch, currentColor 16%, transparent);
        color: inherit;
      }
    }
    /* frosted: translucent card over whatever is behind it */
    &[data-variant="glass"] {
      background-color: color-mix(in oklch, var(--card) 55%, transparent);
      border-color: color-mix(in oklch, var(--foreground) 14%, transparent);
      backdrop-filter: blur(16px) saturate(1.4);
      box-shadow: 0 8px 32px -8px color-mix(in oklch, var(--foreground) 22%, transparent);
    }

    /* -- Centered content ------------------------------------------ */
    &[data-align="center"] {
      text-align: center;

      & .card-header {
        align-items: center;
      }
      & .card-footer {
        justify-content: center;
      }
    }

    /* -- Layouts ---------------------------------------------------
       side: media | body in one row, always (media after the body = image
       on the right). auto: side by side while the CARD is wide enough,
       stacked when it is not - the flex-wrap switch follows the card's own
       width, not the viewport, so the same card works in a sidebar and in a
       wide column. overlay: the media is the background, the body sits on
       a scrim at the bottom. */
    &[data-layout="side"] {
      display: grid;
      grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);

      & > .card-media {
        aspect-ratio: auto;
        min-height: 100%;
      }
    }
    &[data-layout="side"]:has(> .card-body:first-child) {
      grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    }
    &[data-layout="auto"] {
      display: flex;
      flex-wrap: wrap;

      & > .card-media {
        flex: 1 1 12rem;
        aspect-ratio: auto;
        min-height: 10rem;
      }
      & > .card-body {
        flex: 999 1 18rem;
      }
    }
    &[data-layout="overlay"] {
      display: grid;
      color: #fff;
      border-color: transparent;

      & > * {
        grid-area: 1 / 1;
      }
      & > .card-media {
        aspect-ratio: auto;
        min-height: 14rem;
      }
      & > .card-body {
        z-index: 1;
        align-self: end;
        background: linear-gradient(to top, oklch(0 0 0 / 0.78), oklch(0 0 0 / 0.35) 65%, transparent);
        padding-top: 3rem;
      }
      & .card-description {
        color: oklch(1 0 0 / 0.82);
      }
    }

    /* -- Interactive: a link (or [data-interactive]) card lifts on hover
       and shows a focus ring on keyboard focus ------------------------ */
    &:is(a, [data-interactive]) {
      display: block;
      text-decoration: none;
      transition:
        translate 150ms ease,
        box-shadow 150ms ease,
        border-color 150ms ease;

      &:hover {
        translate: 0 -2px;
        box-shadow: var(--shadow-md);
        border-color: color-mix(in oklch, var(--foreground) 22%, var(--border));
      }
      &:focus-visible {
        outline: 2px solid var(--ring);
        outline-offset: 2px;
      }
    }
    &:is(a, [data-interactive])[data-layout="auto"] {
      display: flex;
    }
    &:is(a, [data-interactive]):is([data-layout="side"], [data-layout="overlay"]) {
      display: grid;
    }

    /* -- Selectable: a <label class="card"> around a checkbox / radio -
       the checked card takes a primary ring; keyboard focus shows too */
    &:is(label) {
      display: block;
      cursor: pointer;
      transition:
        border-color 150ms ease,
        box-shadow 150ms ease;

      &:has(:is(input[type="checkbox"], input[type="radio"]):checked) {
        border-color: var(--primary);
        box-shadow: 0 0 0 1px var(--primary);
      }
      &:has(input:focus-visible) {
        outline: 2px solid var(--ring);
        outline-offset: 2px;
      }
      &:has(input:disabled) {
        cursor: not-allowed;
        opacity: 0.55;
      }
    }
  }

  /* -- Container query: compact card in narrow containers - unless the
     card asks for a size (an explicit data-size wins) -- */
  @container (max-width: 280px) {
    .card:not([data-size]) :is(.card-header, .card-content, .card-footer) {
      --_pad: 1rem;
    }
    .card:not([data-size]) .card-title {
      font-size: 1rem;
    }
  }

  /* -- Accessibility ------------------------------------------ */
  @media (prefers-reduced-motion: reduce) {
    .card:is(a, [data-interactive]) {
      transition: none;
    }
    .card:is(a, [data-interactive]):hover {
      translate: none;
    }
  }
  @media (forced-colors: active) {
    .card:is(label):has(:is(input[type="checkbox"], input[type="radio"]):checked) {
      border: 2px solid Highlight;
    }
  }
}

/* ── components/chart/chart.css ── */
/* -- Chart component -----------------------------------------------------
   The sizing surface + editorial frame for the ECharts mount (chart.ts owns
   the runtime: theme adapter, resize, story). The mount itself is a plain
   block with three height presets via data-size; .chart-frame is the
   card-like bordered wrapper (title/dek/source chrome) for editorial
   data-storytelling. Tokens only (AGENTS.md token boundary rule). */

@layer components {
  .chart {
    width: 100%;
    /* a grid or flex item sizes no smaller than its content by default - the
       canvas drawn at the old width held a narrowing figure open, so the chart
       never saw its container shrink (the paper on a phone after a resize) */
    min-inline-size: 0;
    height: 20rem;

    &[data-size="sm"] {
      height: 14rem;
    }
    &[data-size="lg"] {
      height: 28rem;
    }

    /* ECharts animates internally (canvas/svg), but the mount itself never
       transitions - reduced motion is handled in the JS base option */
    @media (prefers-reduced-motion: reduce) {
      & * {
        transition: none !important;
      }
    }
  }

  /* the editorial frame: chart + headline + dek + source line, card-like */
  .chart-frame {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--card);
    color: var(--card-foreground);
  }

  .chart-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: var(--tracking-normal);
    text-wrap: balance;
  }

  .chart-dek {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--muted-foreground);
    text-wrap: pretty;
  }

  .chart-source {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--muted-foreground);
  }

  /* a print lays the page out at the paper's width: the drawing still has its
     screen width until chart.js redraws it there, and must not widen the
     printed page meanwhile - Chromium would shrink the whole print to fit */
  @media print {
    .chart {
      overflow: clip;
    }
  }

  @media (prefers-contrast: more) {
    .chart-frame {
      border-width: 2px;
    }
    .chart-dek,
    .chart-source {
      color: var(--foreground);
    }
  }

  /* Windows High Contrast Mode: frame + chrome fall back to system colors */
  @media (forced-colors: active) {
    .chart-frame {
      border-color: CanvasText;
      background: Canvas;
      color: CanvasText;
    }
    .chart-title,
    .chart-dek,
    .chart-source {
      color: CanvasText;
    }
  }
}

/* ── components/checkbox/checkbox.css ── */
/* -- Checkbox component ----------------------------------------- */

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

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

      &::after {
        content: "";
        position: absolute;
        left: 50%;
        top: 45%;
        width: 6px;
        height: 10px;
        border: solid var(--primary-foreground);
        border-width: 0 2px 2px 0;
        transform: translate(-50%, -50%) rotate(45deg);
      }
    }

    /* Per spec, an indeterminate checkbox ALSO matches :checked - both
       ::after rules land on the element, so the dash must explicitly cancel
       the checkmark's border (else the rotated border renders on top of it). */
    &:indeterminate {
      background-color: var(--primary);
      border-color: var(--primary);

      &::after {
        content: "";
        position: absolute;
        left: 50%;
        top: 50%;
        width: 10px;
        height: 2px;
        border: none;
        background: var(--primary-foreground);
        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-color: var(--muted);
      /* a mid-grey edge: --border on the muted fill is too faint to read as a box */
      border-color: color-mix(in oklch, var(--muted-foreground) 50%, var(--background));
      cursor: not-allowed;

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

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

  /* -- Checkbox item layout --------------------------------- */
  .checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;

    & > label {
      font-size: 0.875rem;
      cursor: pointer;
      /* leading-none (shadcn parity): a 1.6 line-box centers the LINE, not
         the glyphs - baseline then floats with the font's ascent, so text
         rides visibly off the box midline (worst with metric-heavy
         fallbacks). line-height:1 shrinks the box to the glyphs themselves. */
      line-height: 1;
    }
  }

  .checkbox-item-block {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;

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

    & > .checkbox {
      margin-top: 0.125rem;
    }
  }

  /* 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(.checkbox-item, .checkbox-item-block) > .checkbox::before {
    content: "";
    position: absolute;
    inset-block: -0.25rem;
    inset-inline: -0.25rem calc(-1 * 0.5rem);
  }

  /* Disabled auto-styling */
  .checkbox-item:has(.checkbox:disabled),
  .checkbox-item-block:has(.checkbox:disabled) {
    cursor: not-allowed;

    /* the text says "unavailable" too - and never offers the hand pointer
       for a click that cannot land */
    & label {
      color: var(--muted-foreground);
      cursor: not-allowed;
    }
  }

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

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

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

  @media (forced-colors: active) {
    .checkbox {
      appearance: auto;
    }
  }
}

/* ── 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/command/command.css ── */
@layer components {
  dialog.command {
    border: none;
    border-radius: var(--radius-xl);
    background: var(--popover);
    color: var(--popover-foreground);
    padding: 0;
    max-width: 32rem;
    width: calc(100% - 2rem);
    box-shadow: var(--shadow-lg);
    margin: auto;
    position: fixed;
    inset: 0;
    top: 15%;
    bottom: auto;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.98);
    transition:
      opacity 150ms ease,
      transform 150ms ease,
      display 150ms allow-discrete;

    &[open] {
      opacity: 1;
      transform: scale(1);
    }
    &::backdrop {
      background: oklch(0 0 0 / 0);
      transition:
        all 150ms ease,
        display 150ms allow-discrete;
    }
    &[open]::backdrop {
      background: oklch(0 0 0 / 0.45);
    }
  }

  @starting-style {
    dialog.command[open] {
      opacity: 0;
      transform: scale(0.98);
    }
    dialog.command[open]::backdrop {
      background: oklch(0 0 0 / 0);
    }
  }

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

  .command-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    & svg {
      width: 1rem;
      height: 1rem;
      color: var(--muted-foreground);
      flex-shrink: 0;
    }
  }

  .command-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.875rem;
    color: var(--foreground);
    outline: none;
    font-family: inherit;
    &::placeholder {
      color: var(--muted-foreground);
    }
  }

  .command-list {
    max-height: 18rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0.25rem;
  }
  .command-group {
    padding: 0.25rem 0;
  }
  .command-group-heading {
    margin: 0;
    padding: 0.375rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--muted-foreground);
  }

  .command-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.5rem 0.5rem;
    border: none;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--foreground);
    font-size: 0.8125rem;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    outline: none;
    &:hover,
    &[data-highlighted] {
      background-color: var(--accent);
    }
    &:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: -2px;
    }
    &[aria-disabled="true"] {
      pointer-events: none;
      opacity: 0.5;
    }
    & svg {
      width: 1rem;
      height: 1rem;
      color: var(--muted-foreground);
      flex-shrink: 0;
    }
    /* Same as combobox-item: `display: flex` beats the UA [hidden] rule, and
       command.ts filter() hides non-matches via the hidden attribute. */
    &[hidden] {
      display: none;
    }
  }

  .command-separator {
    height: 1px;
    background-color: var(--border);
    margin: 0.25rem -0.25rem;
  }
  .command-shortcut {
    margin-inline-start: auto;
    font-size: 0.6875rem;
    color: var(--muted-foreground);
    font-family: var(--font-mono);
  }
  .command-empty {
    padding: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--muted-foreground);
  }

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

  @media (prefers-reduced-motion: reduce) {
    dialog.command {
      transition: none;
      opacity: 1;
      transform: none;
    }
    dialog.command::backdrop {
      transition: none;
    }
  }

  @media (prefers-contrast: more) {
    dialog.command {
      border: 2px solid var(--border);
    }
    .command-item {
      &:hover,
      &[data-highlighted] {
        outline: 1px solid var(--foreground);
      }
    }
  }

  @media (forced-colors: active) {
    dialog.command {
      border: 2px solid CanvasText;
    }
    .command-item {
      &:hover,
      &[data-highlighted] {
        forced-color-adjust: none;
        background: Highlight;
        color: HighlightText;
      }
    }
    .command-separator {
      background-color: CanvasText;
    }
  }
  /* -- Density ----------------------------------------------------
     data-density on the dialog.command root scales the rows of the palette.
     comfortable == the unsized default. (0,2,1) beats the base (0,1,0). */
  dialog.command:where([data-density="compact"]) {
    & .command-input-wrapper {
      padding: 0.5rem 0.75rem;
    }
    & .command-item {
      padding: 0.375rem 0.5rem;
    }
    & .command-group-heading {
      padding: 0.25rem 0.5rem;
    }
  }
  dialog.command:where([data-density="comfortable"]) {
    & .command-input-wrapper {
      padding: 0.75rem 1rem;
    }
    & .command-item {
      padding: 0.5rem 0.5rem;
    }
    & .command-group-heading {
      padding: 0.375rem 0.5rem;
    }
  }
  dialog.command:where([data-density="spacious"]) {
    & .command-input-wrapper {
      padding: 1rem 1.25rem;
    }
    & .command-item {
      padding: 0.625rem 0.5rem;
    }
    & .command-group-heading {
      padding: 0.5rem 0.5rem;
    }
  }
}

/* ── components/data-grid/data-grid.css ── */
/* -- Data Grid --------------------------------------------------- */
/* One scroll container holds a sticky head and the windowed body,   */
/* so the head and every row scroll sideways together and locked     */
/* columns stick with position: sticky - no JS scroll syncing.       */

@layer components {
  .data-grid {
    --data-grid-row-height: 36px;
    --data-grid-template: repeat(4, minmax(8rem, 1fr));
    /* data-select-model="checkbox": the column of checkboxes in front of the rows */
    --data-grid-check-width: 2.5rem;

    display: flex;
    flex-direction: column;
    min-height: 12rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--card);
    color: var(--card-foreground);
    font-size: 0.875rem;
    overflow: hidden;

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

  /* the one scroll container: both axes */
  .data-grid-viewport {
    position: relative;
    flex: 1;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    /* the windowing owns the scroll position: Firefox's scroll anchoring would follow
       the recycled rows, move scrollTop, re-render and move it again - a scroll
       that runs on by itself (big-data-firefox.e2e) */
    overflow-anchor: none;
    scrollbar-gutter: stable;
  }

  .data-grid-head {
    position: sticky;
    top: 0;
    z-index: 2;
    width: max-content;
    min-width: 100%;
    background: var(--muted);
    /* muted text on the muted head measured 4.34:1 in the default theme - a quarter of the foreground mixed in lifts
       it past AA (4.5:1) in light and dark, in any theme whose foreground reads on its muted surface */
    color: color-mix(in oklch, var(--muted-foreground) 75%, var(--foreground));
    border-bottom: 1px solid var(--border);
  }

  /* every row - head, filters, body - lays out the same tracks */
  .data-grid-row {
    display: grid;
    grid-template-columns: var(--data-grid-template);
    width: max-content;
    min-width: 100%;
  }

  /* a cell adds no width of its own: a row is as wide as the grid (or its fixed columns), and a 1fr column takes what
     is left in every row alike - sized by content, a long tree label widened its rows past the header (VERIFIED: the
     Knowledge Graph's hierarchy, label 205px against the header's 143px, its count cut at the panel edge) */
  .data-grid-row > * {
    contain: inline-size;
  }

  .data-grid-header,
  .data-grid-cell,
  .data-grid-filter-cell {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    min-width: 0;
    padding-inline: 0.75rem;
    background: inherit;

    &[data-locked] {
      position: sticky;
      z-index: 1;
    }

    &[data-align="end"] {
      justify-content: flex-end;
      font-variant-numeric: tabular-nums;
    }
  }

  /* the last locked column draws the edge the rest scrolls under */
  .data-grid[data-has-locked]
    :is(.data-grid-header, .data-grid-cell, .data-grid-filter-cell)[data-locked]:not(:has(~ [data-locked])) {
    /* a selected cell keeps its edges (--_ring) under the locked edge */
    box-shadow:
      var(--_ring, 0 0 #0000),
      1px 0 0 var(--border),
      6px 0 8px -6px color-mix(in oklch, var(--foreground) 25%, transparent);
  }

  .data-grid-header {
    position: relative;
    height: var(--data-grid-row-height);
    font-weight: 500;
    font-size: 0.8125rem;
    background: var(--muted);
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    /* a long press lifts the column - no callout over it (iOS) */
    -webkit-touch-callout: none;
    white-space: nowrap;

    /* a hidden column: the attribute alone loses to display: flex */
    &[hidden] {
      display: none;
    }

    /* a finger rests on it: lifted, ready to move */
    &[data-pressed] {
      background: color-mix(in oklch, var(--accent) 70%, var(--muted));
      color: var(--foreground);
    }

    /* the column being moved follows the pointer above the others */
    &[data-dragging] {
      z-index: 3;
      border-radius: var(--radius-sm);
      outline: 1px solid var(--border);
      background: var(--popover);
      color: var(--foreground);
      box-shadow: var(--shadow-md);
      cursor: grabbing;
    }

    &[data-type="number"] {
      justify-content: flex-end;
    }

    &[data-sortable="false"] {
      cursor: default;
    }

    /* the sort direction - an arrow with a shaft, unlike the menu's chevron - and the priority of a multisort (1, 2, …) */
    &[aria-sort]::after {
      content: "";
      flex: none;
      width: 0.8125rem;
      height: 0.8125rem;
      background: var(--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='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14'/%3E%3Cpath d='m19 12-7 7-7-7'/%3E%3C/svg%3E")
        center / contain no-repeat;
    }

    &[aria-sort="ascending"]::after {
      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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 7-7 7 7'/%3E%3Cpath d='M12 19V5'/%3E%3C/svg%3E");
    }

    &[data-sort-index]::before {
      content: attr(data-sort-index);
      order: 2;
      font-size: 0.6875rem;
      font-variant-numeric: tabular-nums;
      color: var(--foreground);
    }

    &[aria-sort] {
      color: var(--foreground);
    }

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

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

  /* the column menu's arrow, at the end of every header; a locked column shows a pin in it */
  .data-grid-menu-button {
    order: 3;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.125rem;
    min-width: 1.375rem;
    height: 1.375rem;
    margin-inline-start: auto;
    padding: 0 0.125rem;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--muted-foreground);
    cursor: pointer;

    /* icons are masks over currentColor, so they follow the theme */
    &::before,
    &::after {
      content: "";
      flex: none;
      width: 0.875rem;
      height: 0.875rem;
      background: currentColor;
    }

    &::before {
      display: none;
      width: 0.75rem;
      height: 0.75rem;
      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='M12 17v5'/%3E%3Cpath d='M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z'/%3E%3C/svg%3E")
        center / contain no-repeat;
      color: var(--primary);
    }

    &::after {
      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='m6 9 6 6 6-6'/%3E%3C/svg%3E")
        center / contain no-repeat;
    }

    &:hover,
    &[aria-expanded="true"] {
      background: var(--accent);
      color: var(--accent-foreground);
    }
  }

  .data-grid-header[data-locked] .data-grid-menu-button::before {
    display: block;
  }

  /* right-aligned headers pack at the end: the arrow follows the label */
  .data-grid-header[data-type="number"] .data-grid-menu-button {
    margin-inline-start: 0;
  }

  /* the end edge resizes the column: a line shows where it is */
  .data-grid-resizer {
    position: absolute;
    inset-block: 0;
    inset-inline-end: 0;
    z-index: 1;
    width: 0.5rem;
    cursor: col-resize;
    touch-action: none;

    &::after {
      content: "";
      position: absolute;
      inset-block: 25%;
      inset-inline-end: 0;
      width: 1px;
      background: var(--border);
    }

    &:hover::after,
    &[data-active]::after {
      inset-block: 0;
      width: 2px;
      background: var(--ring);
    }
  }

  .data-grid[data-resizing] {
    cursor: col-resize;
    user-select: none;
    -webkit-user-select: none;
  }

  /* where a moved column lands */
  .data-grid-drop-marker {
    position: absolute;
    top: 0;
    z-index: 4;
    width: 2px;
    height: var(--data-grid-row-height);
    margin-inline-start: -1px;
    background: var(--primary);
    pointer-events: none;
  }

  /* a finger needs room: the arrow and the edge grow on coarse pointers */
  @media (pointer: coarse) {
    .data-grid-menu-button {
      min-width: 1.75rem;
      height: 1.75rem;
    }

    .data-grid-resizer {
      width: 1rem;
    }
  }

  /* -- the column menu: a popover anchored to the arrow it opened from */
  .data-grid-menu {
    position: fixed;
    inset: auto;
    top: anchor(bottom);
    right: anchor(right);
    margin: 0.25rem 0 0;
    /* no room below or at the end: above the arrow, or toward the other side */
    position-try-fallbacks:
      flip-block,
      flip-inline,
      flip-block flip-inline;
    min-width: 12rem;
    max-height: min(26rem, calc(100dvh - 1rem));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--popover);
    color: var(--popover-foreground);
    box-shadow: var(--shadow-md);
    font-size: 0.875rem;

    &:popover-open {
      display: flex;
      flex-direction: column;
    }
  }

  .data-grid-menu-group {
    display: flex;
    flex-direction: column;
  }

  .data-grid-menu-label {
    padding: 0.375rem 0.5rem 0.25rem;
    color: var(--muted-foreground);
    font-size: 0.75rem;
    font-weight: 500;
  }

  .data-grid-menu-separator {
    flex: none;
    height: 1px;
    margin: 0.25rem -0.25rem;
    background: var(--border);
  }

  .data-grid-menu-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    min-height: 2rem;
    padding: 0.25rem 0.5rem;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: start;
    white-space: nowrap;
    cursor: pointer;

    /* the leading slot: an icon, or the checkbox */
    &::before {
      content: "";
      flex: none;
      width: 1rem;
      height: 1rem;
      background: currentColor;
    }

    &[data-action="asc"]::before {
      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='m5 12 7-7 7 7'/%3E%3Cpath d='M12 19V5'/%3E%3C/svg%3E")
        center / contain no-repeat;
    }

    &[data-action="desc"]::before {
      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='M12 5v14'/%3E%3Cpath d='m19 12-7 7-7-7'/%3E%3C/svg%3E")
        center / contain no-repeat;
    }

    &[data-action="reset"]::before {
      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='M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8'/%3E%3Cpath d='M3 3v5h5'/%3E%3C/svg%3E")
        center / contain no-repeat;
    }

    /* the sort in force: a dot at the end */
    &[role="menuitemradio"][aria-checked="true"]::after {
      content: "";
      width: 0.375rem;
      height: 0.375rem;
      margin-inline-start: auto;
      border-radius: 50%;
      background: currentColor;
    }

    &[role="menuitemcheckbox"]::before {
      box-sizing: border-box;
      border: 1px solid var(--input);
      border-radius: calc(var(--radius-sm) - 2px);
      background: var(--background);
    }

    &[role="menuitemcheckbox"][aria-checked="true"]::before {
      border-color: var(--primary);
      background: var(--primary);
    }

    /* the tick, drawn over the box */
    &[role="menuitemcheckbox"][aria-checked="true"]::after {
      content: "";
      position: absolute;
      inset-inline-start: calc(0.5rem + 0.3125rem);
      top: 50%;
      width: 0.3125rem;
      height: 0.5625rem;
      border-inline-end: 2px solid var(--primary-foreground);
      border-bottom: 2px solid var(--primary-foreground);
      rotate: 45deg;
      translate: 0 -60%;
    }

    &:is(:hover, :focus-visible):not(:disabled) {
      outline: none;
      background: var(--accent);
      color: var(--accent-foreground);
    }

    &:disabled {
      opacity: 0.5;
      cursor: default;
    }
  }

  @media (pointer: coarse) {
    .data-grid-menu-item {
      min-height: 2.75rem;
    }
  }

  /* -- the filter row ------------------------------------------ */
  .data-grid-filters {
    border-top: 1px solid var(--border);
    background: var(--card);
  }

  .data-grid-filter-cell {
    height: calc(var(--data-grid-row-height) + 4px);
    padding-inline: 0.375rem;
    background: var(--card);
  }

  .data-grid-filter {
    width: 100%;
    min-width: 0;
    height: 1.75rem;
    padding-inline: 0.5rem;
    border: 1px solid var(--input);
    border-radius: var(--radius-sm);
    background: var(--background);
    color: var(--foreground);
    font: inherit;
    font-size: 0.8125rem;

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

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

  /* -- the windowed body ----------------------------------------- */
  .data-grid-body {
    position: relative;
    width: max-content;
    min-width: 100%;
    contain: layout paint;
  }

  .data-grid-rows {
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    width: max-content;
    min-width: 100%;
    will-change: translate;
  }

  .data-grid-body .data-grid-row {
    height: var(--data-grid-row-height);
    background: var(--card);
    border-bottom: 1px solid var(--border);
    cursor: default;

    &:hover {
      background: color-mix(in oklch, var(--accent) 60%, var(--card));
    }
  }

  .data-grid-cell {
    white-space: nowrap;

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

  /* -- selection models -----------------------------------------------------------
     Hover is a soft neutral tint; a selected cell a mid tint of the primary colour with a strong 2px line along the
     edges of its region (data-edge: top bottom start end, written per cell) - the two never look alike. A grid that
     selects keeps the browser's text selection out of the body: a drag sweeps cells, Ctrl / Cmd + C copies them. */
  .data-grid[data-select] .data-grid-body {
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;

    & :is(input, textarea, [contenteditable]) {
      user-select: text;
      -webkit-user-select: text;
    }
  }

  /* the cell and column models hover a cell or a column, never the row */
  .data-grid[data-select]:is([data-select-model~="cell"], [data-select-model="column"])
    .data-grid-body
    .data-grid-row:hover {
    background: var(--card);
  }
  .data-grid[data-select][data-select-model~="cell"] .data-grid-body {
    & .data-grid-cell {
      cursor: cell;
    }
    & .data-grid-cell:hover:not([data-selected]) {
      background: color-mix(in oklch, var(--accent) 60%, var(--card));
    }
  }

  .data-grid-body .data-grid-cell[data-hover]:not([data-selected]) {
    background: color-mix(in oklch, var(--accent) 60%, var(--card));
  }

  /* a selected cell (and a selected row's checkbox) under the pointer - the cell, its column, its row - is more
     selected, never the soft hover: a deeper tint, the same strong line */
  .data-grid-body :is(.data-grid-cell, .data-grid-check)[data-selected] {
    --_edge-top: 0px;
    --_edge-bottom: 0px;
    --_edge-start: 0px;
    --_edge-end: 0px;
    --_ring:
      inset 0 var(--_edge-top) 0 0 var(--primary), inset 0 calc(-1 * var(--_edge-bottom)) 0 0 var(--primary),
      inset var(--_edge-start) 0 0 0 var(--primary), inset calc(-1 * var(--_edge-end)) 0 0 0 var(--primary);
    /* the tint is the cells' own: a selected row's tint ends where its frame does */
    background: color-mix(in oklch, var(--primary) 20%, var(--card));
    box-shadow: var(--_ring);

    &:hover,
    &[data-hover] {
      background: color-mix(in oklch, var(--primary) 32%, var(--card));
    }
    &[data-edge~="top"] {
      --_edge-top: 2px;
    }
    &[data-edge~="bottom"] {
      --_edge-bottom: 2px;
    }
    &[data-edge~="start"] {
      --_edge-start: 2px;
    }
    &[data-edge~="end"] {
      --_edge-end: 2px;
    }
    /* start and end are logical; the shadows are physical */
    &:dir(rtl) {
      --_ring:
        inset 0 var(--_edge-top) 0 0 var(--primary), inset 0 calc(-1 * var(--_edge-bottom)) 0 0 var(--primary),
        inset calc(-1 * var(--_edge-start)) 0 0 0 var(--primary), inset var(--_edge-end) 0 0 0 var(--primary);
    }
  }

  /* the row models: the row under the pointer deepens its selected cells alike */
  .data-grid:not([data-select-model~="cell"], [data-select-model="column"])
    .data-grid-body
    .data-grid-row:hover
    > :is(.data-grid-cell, .data-grid-check)[data-selected] {
    background: color-mix(in oklch, var(--primary) 32%, var(--card));
  }

  /* the checkbox model: a checkbox in front of every row (sticky at the start, first whatever the column order - the
     element is its row's last), one in the head for every row of the query */
  .data-grid-check {
    order: -1;
    position: sticky;
    inset-inline-start: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: inherit;
    cursor: pointer;
  }
  .data-grid-head > .data-grid-row:not(.data-grid-filters) > .data-grid-check {
    height: var(--data-grid-row-height);
    background: var(--muted);
  }
  .data-grid-filters .data-grid-check {
    cursor: default;
  }
  .data-grid[data-select="single"] .data-grid-head .data-grid-check .checkbox {
    visibility: hidden;
  }

  /* -- drag and drop: rows that drag (data-drag), where dropped records would land (data-drop) -- */
  .data-grid[data-drag] .data-grid-body .data-grid-row[draggable="true"] {
    cursor: grab;
  }
  .data-grid[data-dragging-rows] .data-grid-body .data-grid-row[aria-selected="true"] {
    opacity: 0.6;
  }
  .data-grid-row-drop {
    position: absolute;
    inset-inline: 0;
    z-index: 4;
    height: 2px;
    margin-top: -1px;
    background: var(--primary);
    pointer-events: none;

    /* into a row: it becomes its parent - framed */
    &[data-place="into"] {
      height: var(--data-grid-row-height);
      margin-top: 0;
      background: color-mix(in oklch, var(--primary) 12%, transparent);
      box-shadow: inset 0 0 0 2px var(--primary);
    }
  }

  /* the column models: a selected column's header */
  .data-grid-header[aria-selected="true"] {
    --_ring: inset 0 -2px 0 0 var(--primary);
    background: color-mix(in oklch, var(--primary) 20%, var(--muted));
    color: var(--foreground);
    box-shadow: var(--_ring);
  }

  .data-grid[data-sweeping] {
    cursor: cell;
  }

  /* the stand-in that carries a copy or a paste for a moment (Ctrl / Cmd + C, V) - never seen */
  .data-grid-clipboard {
    position: fixed;
    inset-block-start: 0;
    inset-inline-start: 0;
    inline-size: 1px;
    block-size: 1px;
    padding: 0;
    border: 0;
    opacity: 0;
    pointer-events: none;
    resize: none;
  }

  .data-grid-content {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* -- inline editing: an editable column's cell holds its editor ------------------
     The editor fills the cell (a row keeps its height); a refused value shows its message below the cell,
     over the next row. */
  .data-grid-cell[data-editing] {
    overflow: visible;
    padding-inline: 0.25rem;
    z-index: 2;
  }
  .data-grid-editor {
    position: relative;
    display: flex;
    flex: 1;
    align-items: center;
    min-width: 0;
    overflow: visible;

    & > :is(.input, .select, .textarea) {
      flex: 1;
      min-width: 0;
      inline-size: 100%;
    }
    & > .textarea {
      position: absolute;
      inset-block-start: 0;
      inset-inline: 0;
      z-index: 3;
      min-block-size: 6rem;
      box-shadow: var(--shadow-md);
    }
  }
  .data-grid-color-input {
    inline-size: 2.5rem;
    block-size: calc(var(--data-grid-row-height) - 0.75rem);
    padding: 0;
    border: 1px solid var(--input);
    border-radius: var(--radius-sm);
    background: var(--background);
    cursor: pointer;
  }
  .data-grid-error {
    position: absolute;
    inset-block-start: calc(100% + 0.25rem);
    inset-inline-start: 0;
    z-index: 4;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    background: var(--destructive);
    color: var(--destructive-foreground);
    font-size: 0.75rem;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
  }
  /* an editable cell says so on hover: a double click edits it */
  .data-grid-row > .data-grid-cell[data-editable]:not([data-editing]):hover {
    box-shadow:
      var(--_ring, 0 0 #0000),
      inset 0 0 0 1px var(--input);
  }

  /* -- tree grid: the first column indents and carries the toggle --- */
  .data-grid-toggle {
    flex: none;
    display: grid;
    place-items: center;
    width: 1.25rem;
    height: 1.25rem;
    margin-inline-start: calc(var(--depth, 0) * 1.25rem);
    border-radius: var(--radius-sm);
    color: var(--muted-foreground);
    cursor: pointer;

    &::before {
      content: "";
      width: 0.375rem;
      height: 0.375rem;
      border-inline-end: 1.5px solid currentColor;
      border-bottom: 1.5px solid currentColor;
      rotate: -45deg;
      transition: rotate 150ms ease;
    }

    &[data-leaf] {
      cursor: default;

      &::before {
        content: none;
      }
    }

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

  .data-grid-row[aria-expanded="true"] .data-grid-toggle::before {
    rotate: 45deg;
  }

  /* -- footer: counts + pager --------------------------------------- */
  .data-grid-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding: 0.5rem 0.75rem;
    border-top: 1px solid var(--border);
    color: var(--muted-foreground);
    font-size: 0.8125rem;
    font-variant-numeric: tabular-nums;

    &:empty {
      display: none;
    }
  }

  .data-grid-pager {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }

  .data-grid-page-label {
    padding-inline: 0.5rem;
    color: var(--foreground);
  }

  .data-grid-page-btn {
    display: grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--background);
    color: var(--foreground);
    cursor: pointer;

    /* chevrons as masks over currentColor */
    &::before {
      content: "";
      width: 1rem;
      height: 1rem;
      background: 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 18-6-6 6-6'/%3E%3C/svg%3E")
        center / contain no-repeat;
    }

    &[data-page="first"]::before {
      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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m11 17-5-5 5-5'/%3E%3Cpath d='m18 17-5-5 5-5'/%3E%3C/svg%3E");
    }
    &[data-page="next"]::before {
      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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E");
    }
    &[data-page="last"]::before {
      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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 17 5-5-5-5'/%3E%3Cpath d='m13 17 5-5-5-5'/%3E%3C/svg%3E");
    }

    &:dir(rtl)::before {
      scale: -1 1;
    }

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

    &:disabled {
      opacity: 0.5;
      cursor: default;
    }

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

  /* infinite: the next page is on its way */
  .data-grid[data-loading-more] .data-grid-status::after {
    content: " · loading more…";
  }

  /* -- loading and empty -------------------------------------------- */
  .data-grid[data-state="loading"],
  .data-grid[data-state="empty"] {
    & .data-grid-rows {
      display: none;
    }

    & .data-grid-body {
      height: auto !important; /* nothing to scroll in these states */
      min-height: calc(var(--data-grid-row-height) * 4);
    }
  }

  .data-grid[data-state="loading"] .data-grid-body {
    background: repeating-linear-gradient(
      to bottom,
      var(--muted) 0,
      var(--muted) calc(var(--data-grid-row-height) - 1px),
      transparent calc(var(--data-grid-row-height) - 1px),
      transparent var(--data-grid-row-height)
    );
    opacity: 0.6;
    animation: data-grid-pulse 1.6s ease-in-out infinite;
  }

  /* attr() reads the body's own attribute: init copies the grid's
     data-empty-text onto it */
  .data-grid[data-state="empty"] .data-grid-body::after {
    content: attr(data-empty-text);
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--muted-foreground);
  }

  @keyframes data-grid-pulse {
    0%,
    100% {
      opacity: 0.6;
    }
    50% {
      opacity: 0.3;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  @layer components {
    .data-grid,
    .data-grid *,
    .data-grid *::before,
    .data-grid *::after,
    .data-grid[data-state="loading"] .data-grid-body {
      transition: none;
      animation: none;
      scroll-behavior: auto;
    }
  }
}

@media (prefers-contrast: more) {
  @layer components {
    .data-grid,
    .data-grid-head,
    .data-grid-body .data-grid-row,
    .data-grid-filter,
    .data-grid-page-btn,
    .data-grid-menu,
    .data-grid-menu-item[role="menuitemcheckbox"]::before {
      border-color: var(--muted-foreground);
    }

    .data-grid-resizer::after {
      background: var(--muted-foreground);
    }

    .data-grid-header,
    .data-grid-footer {
      color: var(--foreground);
    }

    .data-grid-body :is(.data-grid-cell, .data-grid-check)[data-selected] {
      background: color-mix(in oklch, var(--primary) 26%, var(--card));

      &:hover,
      &[data-hover] {
        background: color-mix(in oklch, var(--primary) 38%, var(--card));
      }
    }
  }
}

@media (forced-colors: active) {
  @layer components {
    .data-grid,
    .data-grid-head,
    .data-grid-body .data-grid-row,
    .data-grid-filter,
    .data-grid-page-btn {
      border-color: ButtonText;
    }

    .data-grid-body .data-grid-row[aria-selected="true"],
    .data-grid-body :is(.data-grid-cell, .data-grid-check)[data-selected],
    .data-grid-header[aria-selected="true"] {
      background: Highlight;
      color: HighlightText;
    }

    .data-grid-cell:focus-visible,
    .data-grid-header:focus-visible {
      outline-color: Highlight;
    }

    .data-grid-menu {
      border-color: CanvasText;
    }

    .data-grid-menu-item:is(:hover, :focus-visible):not(:disabled) {
      background: Highlight;
      color: HighlightText;
    }

    .data-grid-menu-item[role="menuitemcheckbox"]::before {
      border-color: ButtonText;
    }

    .data-grid-menu-item[role="menuitemcheckbox"][aria-checked="true"]::after {
      border-color: ButtonText;
    }

    .data-grid-drop-marker,
    .data-grid-row-drop,
    .data-grid-resizer::after {
      background: Highlight;
    }

    .data-grid-toggle::before {
      border-color: ButtonText;
    }

    .data-grid-header[aria-sort]::after {
      forced-color-adjust: none;
      background: ButtonText;
    }

    /* masked icons paint their background - keep it the text color */
    .data-grid-menu-button::before,
    .data-grid-menu-button::after,
    .data-grid-menu-item:not([role="menuitemcheckbox"])::before,
    .data-grid-page-btn::before {
      forced-color-adjust: none;
      background: ButtonText;
    }
  }
}

/* ── 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/geo-map/geo-map.css ── */
@layer components {
  .geo-map {
    /* the map's own colors: derived from the theme, literal where the theme has no token (water, routes, cells) */
    --geo-map-ocean: color-mix(in oklab, var(--background) 90%, #6c9bab);
    --geo-map-grid: color-mix(in oklab, var(--foreground) 13%, transparent);
    --geo-map-border: color-mix(in oklab, var(--foreground) 38%, transparent);
    --geo-map-route: #c14e2e;
    --geo-map-cell-fill: color-mix(in oklab, #4e958b 32%, transparent);
    --geo-map-cell-border: #347871;
    /* a pick: a coral that reads on every palette (the theme's primary is near-black in the default theme) */
    --geo-map-select: oklch(0.6 0.19 25);
    --geo-map-mix: 100%;
    /* a tone's drawn lightness = l0 + l * lk, its chroma c * ck: identity in light mode; dark mode maps the pastels
       into the dark range instead of mixing them toward the background (which greyed them) */
    --geo-map-l0: 0;
    --geo-map-lk: 1;
    --geo-map-ck: 1;
    --geo-map-callout-width: 10rem;
    --geo-map-callout-size: 0.875rem;
    --geo-map-tone-0: oklch(0.91 0.055 150);
    --geo-map-tone-1: oklch(0.93 0.06 95);
    --geo-map-tone-2: oklch(0.89 0.06 60);
    --geo-map-tone-3: oklch(0.88 0.05 18);
    --geo-map-tone-4: oklch(0.88 0.045 318);
    --geo-map-tone-5: oklch(0.88 0.045 260);
    --geo-map-tone-6: oklch(0.9 0.05 205);
    --geo-map-tone: var(--geo-map-tone-0);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    block-size: var(--geo-map-height, 28rem);
    min-block-size: 16rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--card);
    color: var(--card-foreground);
    font-family: var(--font-sans);

    &[data-palette="ocean"] {
      --geo-map-tone-0: oklch(0.93 0.035 215);
      --geo-map-tone-1: oklch(0.89 0.05 225);
      --geo-map-tone-2: oklch(0.85 0.06 235);
      --geo-map-tone-3: oklch(0.81 0.07 245);
      --geo-map-tone-4: oklch(0.87 0.05 200);
      --geo-map-tone-5: oklch(0.83 0.06 255);
      --geo-map-tone-6: oklch(0.91 0.04 240);
    }
    &[data-palette="forest"] {
      --geo-map-tone-0: oklch(0.93 0.045 135);
      --geo-map-tone-1: oklch(0.89 0.07 135);
      --geo-map-tone-2: oklch(0.85 0.075 145);
      --geo-map-tone-3: oklch(0.81 0.075 158);
      --geo-map-tone-4: oklch(0.87 0.06 170);
      --geo-map-tone-5: oklch(0.83 0.065 140);
      --geo-map-tone-6: oklch(0.91 0.05 125);
    }
    &[data-palette="sunset"] {
      --geo-map-tone-0: oklch(0.92 0.06 82);
      --geo-map-tone-1: oklch(0.88 0.075 65);
      --geo-map-tone-2: oklch(0.84 0.085 50);
      --geo-map-tone-3: oklch(0.8 0.085 32);
      --geo-map-tone-4: oklch(0.86 0.065 15);
      --geo-map-tone-5: oklch(0.82 0.07 350);
      --geo-map-tone-6: oklch(0.9 0.06 40);
    }
    &[data-palette="heat"] {
      --geo-map-tone-0: oklch(0.96 0.055 95);
      --geo-map-tone-1: oklch(0.92 0.08 85);
      --geo-map-tone-2: oklch(0.88 0.09 72);
      --geo-map-tone-3: oklch(0.84 0.095 58);
      --geo-map-tone-4: oklch(0.8 0.1 45);
      --geo-map-tone-5: oklch(0.76 0.1 35);
      --geo-map-tone-6: oklch(0.72 0.1 27);
    }
    &[data-palette="mono"] {
      --geo-map-tone-0: color-mix(in oklab, var(--foreground) 5%, var(--card));
      --geo-map-tone-1: color-mix(in oklab, var(--foreground) 9%, var(--card));
      --geo-map-tone-2: color-mix(in oklab, var(--foreground) 13%, var(--card));
      --geo-map-tone-3: color-mix(in oklab, var(--foreground) 17%, var(--card));
      --geo-map-tone-4: color-mix(in oklab, var(--foreground) 7%, var(--card));
      --geo-map-tone-5: color-mix(in oklab, var(--foreground) 11%, var(--card));
      --geo-map-tone-6: color-mix(in oklab, var(--foreground) 15%, var(--card));
    }
    &[data-palette="chart"] {
      --geo-map-tone-0: color-mix(in oklab, var(--chart-1) 45%, var(--card));
      --geo-map-tone-1: color-mix(in oklab, var(--chart-2) 40%, var(--card));
      --geo-map-tone-2: color-mix(in oklab, var(--chart-3) 35%, var(--card));
      --geo-map-tone-3: color-mix(in oklab, var(--chart-4) 30%, var(--card));
      --geo-map-tone-4: color-mix(in oklab, var(--chart-5) 25%, var(--card));
      --geo-map-tone-5: color-mix(in oklab, var(--chart-1) 25%, var(--card));
      --geo-map-tone-6: color-mix(in oklab, var(--chart-3) 20%, var(--card));
    }
    &[data-variant="plain"] {
      border: 0;
      border-radius: 0;
      background: transparent;
    }
  }

  .dark .geo-map {
    --geo-map-ocean: color-mix(in oklab, var(--background) 92%, #5a9fb3);
    --geo-map-border: color-mix(in oklab, var(--background) 70%, transparent);
    --geo-map-grid: color-mix(in oklab, var(--foreground) 10%, transparent);
    --geo-map-route: #ff9c76;
    --geo-map-cell-fill: color-mix(in oklab, #54bbaf 25%, transparent);
    --geo-map-cell-border: #8adbd2;
    --geo-map-mix: 58%;
    --geo-map-select: oklch(0.72 0.16 28);
    --geo-map-l0: 0.2;
    --geo-map-lk: 0.33;
    --geo-map-ck: 0.9;

    &:is([data-palette="mono"], [data-palette="chart"]) {
      --geo-map-l0: 0;
      --geo-map-lk: 1;
      --geo-map-ck: 1;
    }
  }

  .geo-map-svg {
    display: block;
    inline-size: 100%;
    block-size: 100%;
    touch-action: none;
    cursor: grab;
    user-select: none;

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

  .geo-map-sphere path {
    fill: var(--geo-map-ocean);
    stroke: var(--geo-map-grid);
  }
  .geo-map-graticule path {
    fill: none;
    stroke: var(--geo-map-grid);
    stroke-width: 0.6;
    pointer-events: none;
  }

  /* a region's fill (and its lifted copy's): its tone, light as written; dark through the lightness map above. The
     context, the pick and the cells set their own fill on a more specific selector */
  .geo-map-region,
  .geo-map-lifted {
    fill: color-mix(in oklab, var(--geo-map-tone) var(--geo-map-mix), var(--background));

    @supports (color: oklch(from red l c h)) {
      fill: oklch(
        from var(--geo-map-tone) calc(var(--geo-map-l0) + l * var(--geo-map-lk)) calc(c * var(--geo-map-ck)) h
      );
    }
    &[data-tone="0"] {
      --geo-map-tone: var(--geo-map-tone-0);
    }
    &[data-tone="1"] {
      --geo-map-tone: var(--geo-map-tone-1);
    }
    &[data-tone="2"] {
      --geo-map-tone: var(--geo-map-tone-2);
    }
    &[data-tone="3"] {
      --geo-map-tone: var(--geo-map-tone-3);
    }
    &[data-tone="4"] {
      --geo-map-tone: var(--geo-map-tone-4);
    }
    &[data-tone="5"] {
      --geo-map-tone: var(--geo-map-tone-5);
    }
    &[data-tone="6"] {
      --geo-map-tone: var(--geo-map-tone-6);
    }
  }

  .geo-map-region {
    stroke: var(--geo-map-border);
    stroke-width: 0.65;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
    transition:
      fill 180ms ease,
      opacity 180ms ease,
      stroke 180ms ease;
    outline: none;

    &:focus-visible {
      stroke: var(--ring);
      stroke-width: 2.5;
    }
  }

  .geo-map-regions .geo-map-region:hover,
  .geo-map-cells .geo-map-region:hover {
    stroke: var(--foreground);
    stroke-width: 1.2;
  }

  /* around a focus: the rest of the world, dimmed and inert */
  .geo-map-context {
    pointer-events: none;

    & .geo-map-region {
      fill: color-mix(in oklab, var(--muted) 70%, var(--geo-map-ocean));
      opacity: 0.55;
    }
  }

  .geo-map[data-border="none"] :is(.geo-map-regions, .geo-map-context) .geo-map-region {
    stroke: none;
  }
  .geo-map[data-border="dashed"] :is(.geo-map-regions, .geo-map-context) .geo-map-region {
    stroke-dasharray: 3 2;
  }
  .geo-map[data-border="cased"] :is(.geo-map-regions, .geo-map-context) .geo-map-region {
    stroke: var(--background);
    stroke-width: 2;
    paint-order: stroke fill;
  }

  /* the selection: fill (default), outline, pulse, lift */
  .geo-map-regions .geo-map-region[aria-pressed="true"],
  .geo-map-cells .geo-map-region[aria-pressed="true"] {
    fill: color-mix(in oklab, var(--geo-map-select) 62%, var(--card));
    stroke: var(--geo-map-select);
    stroke-width: 1.4;
  }
  .geo-map[data-highlight="outline"] :is(.geo-map-regions, .geo-map-cells) .geo-map-region[aria-pressed="true"] {
    fill: color-mix(in oklab, var(--geo-map-select) 14%, transparent);
    stroke: var(--geo-map-select);
    stroke-width: 2.4;
    stroke-dasharray: 6 4;
    animation: geo-map-march 900ms linear infinite;
  }
  .geo-map[data-highlight="pulse"] :is(.geo-map-regions, .geo-map-cells) .geo-map-region[aria-pressed="true"] {
    animation: geo-map-pulse 1.6s ease-in-out infinite;
  }
  .geo-map[data-highlight="lift"] :is(.geo-map-regions, .geo-map-cells) .geo-map-region[aria-pressed="true"] {
    fill: color-mix(in oklab, var(--foreground) 22%, var(--geo-map-ocean));
    stroke: none;
  }

  @keyframes geo-map-march {
    to {
      stroke-dashoffset: -20;
    }
  }
  @keyframes geo-map-pulse {
    50% {
      fill: color-mix(in oklab, var(--geo-map-select) 28%, var(--card));
      stroke-width: 3;
    }
  }

  /* hover (and data-highlight="lift"): a copy of the region raised a little, its shadow on the map below */
  .geo-map-lift {
    pointer-events: none;
  }
  .geo-map-lifted {
    stroke: var(--foreground);
    stroke-width: 1;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
    translate: 0 -3px;
    filter: drop-shadow(0 4px 3px rgb(0 0 0 / 0.28));
    transition:
      translate 160ms ease-out,
      filter 160ms ease-out;

    @starting-style {
      translate: 0 0;
      filter: drop-shadow(0 0 0 rgb(0 0 0 / 0));
    }
    &[aria-pressed="true"] {
      fill: color-mix(in oklab, var(--geo-map-select) 62%, var(--card));
      stroke: var(--geo-map-select);
    }
    &.geo-map-cell {
      fill: var(--geo-map-cell-fill);
      stroke: var(--geo-map-cell-border);
    }
  }
  .geo-map[data-highlight="lift"] .geo-map-lifted[aria-pressed="true"] {
    translate: 0 -5px;
    filter: drop-shadow(0 7px 5px rgb(0 0 0 / 0.32));
  }

  .geo-map-cells .geo-map-region {
    fill: var(--geo-map-cell-fill);
    stroke: var(--geo-map-cell-border);
    stroke-width: 1.2;
  }

  .geo-map-lines {
    pointer-events: none;
  }
  .geo-map-line {
    fill: none;
    stroke: var(--geo-map-route);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
  }

  .geo-map-markers {
    pointer-events: none;
  }
  .geo-map-marker {
    & > :not(text) {
      fill: var(--geo-map-route);
      stroke: var(--background);
      stroke-width: 2;
    }
    & text {
      font: 500 11px var(--font-sans);
      fill: var(--foreground);
      stroke: var(--background);
      stroke-width: 3px;
      paint-order: stroke;
      stroke-linejoin: round;
    }
  }
  .geo-map-hatch {
    fill: none;
    stroke: var(--muted-foreground);
    stroke-width: 1;
  }

  /* callouts: a leader line from each region to its name outside the map, the name written on the line */
  .geo-map-callout {
    cursor: pointer;
  }
  .geo-map-callout-line {
    fill: none;
    stroke: color-mix(in oklab, var(--foreground) 45%, transparent);
    stroke-width: 0.8;
    vector-effect: non-scaling-stroke;
  }
  .geo-map-callout-dot {
    fill: var(--foreground);
  }
  /* the script spaces the rows and shortens the names by this size (--geo-map-callout-size) */
  .geo-map-callout-label {
    font: 500 var(--geo-map-callout-size) var(--font-sans);
    fill: var(--foreground);
  }
  .geo-map-callout:is([data-hover], [data-selected]) {
    & .geo-map-callout-line {
      stroke: var(--geo-map-select);
      stroke-width: 1.6;
    }
    & .geo-map-callout-dot {
      fill: var(--geo-map-select);
    }
    & .geo-map-callout-label {
      fill: var(--geo-map-select);
      font-weight: 600;
    }
  }

  .geo-map-tooltip {
    position: absolute;
    z-index: 3;
    max-inline-size: 14rem;
    padding: 0.35rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--popover-foreground);
    background: var(--popover);
    box-shadow: var(--shadow-md);
    pointer-events: none;
    font-size: 0.75rem;
    white-space: nowrap;

    &[hidden] {
      display: none;
    }
  }

  .geo-map-error {
    position: absolute;
    inset: auto 1rem 1rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--destructive);
    border-radius: var(--radius-md);
    color: var(--destructive);
    background: var(--card);
    font-size: 0.8125rem;
  }

  .geo-map[data-geo-status="loading"] .geo-map-svg {
    animation: geo-map-loading 1.2s ease-in-out infinite alternate;
  }
  @keyframes geo-map-loading {
    to {
      opacity: 0.55;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .geo-map-region,
    .geo-map-lifted {
      transition: none;
    }
    .geo-map[data-highlight] :is(.geo-map-regions, .geo-map-cells) .geo-map-region[aria-pressed="true"],
    .geo-map[data-geo-status="loading"] .geo-map-svg {
      animation: none;
    }
  }

  @media (prefers-contrast: more) {
    .geo-map {
      --geo-map-border: var(--foreground);
    }
    .geo-map-region {
      stroke-width: 1;
    }
    .geo-map-callout-line {
      stroke: var(--foreground);
    }
  }

  @media (forced-colors: active) {
    .geo-map-sphere path {
      fill: Canvas;
      stroke: CanvasText;
    }
    .geo-map-region,
    .geo-map-lifted {
      fill: Canvas;
      stroke: CanvasText;
    }
    .geo-map-regions .geo-map-region[aria-pressed="true"],
    .geo-map-lifted[aria-pressed="true"] {
      fill: Highlight;
      stroke: CanvasText;
    }
    .geo-map-line,
    .geo-map-callout-line {
      stroke: CanvasText;
    }
    .geo-map-callout-label,
    .geo-map-marker text {
      fill: CanvasText;
    }
  }
}

/* ── components/graph-explorer/graph-explorer.css ── */
/* Graph Explorer - a knowledge graph of up to millions of nodes: a worker-drawn far field under a bounded pool of DOM
 * nodes, edge labels per zoom level, outlets the page places (breadcrumb, search, outline, details, relations, layers).
 * Its own properties derive from the tweakcn token set only (AGENTS.md "Token boundary rule"); the status colours ok and
 * warn have no token and are literals (amber and green read as degraded and healthy in every theme; a chart colour
 * such as --chart-1 is light blue in the default theme and read as information). The icons are a Lucide subset (ISC, lucide-static 0.469.0 - Copyright (c)
 * Lucide Contributors 2022, portions Cole Bemis 2013-2022 as part of Feather, MIT) drawn as CSS masks: an icon is one
 * empty element, cheap to morph and painted in the current color. */
@layer components {
  /* the explorer and everything bound to it share the graph's colour roles */
  :where(.graph-explorer, [data-graph-explorer-for]) {
    --graph-paper: var(--background);
    --graph-node: var(--popover);
    --graph-node-ink: var(--popover-foreground);
    --graph-edge: color-mix(in oklch, var(--muted-foreground) 55%, transparent);
    --graph-accent: var(--chart-2);
    --graph-link: var(--chart-4);
    --graph-ok: oklch(0.6 0.14 155);
    --graph-warn: oklch(0.72 0.16 65);
    --graph-danger: var(--destructive);
    --graph-focus: var(--ring);
    --graph-radius: var(--radius-md);
  }
  /* a tone is a colour role - inside the explorer and its outlets, and on what renderers draw (an icon on its own
     too: the fallbacks are the roles' defaults) */
  :where(.graph-explorer, [data-graph-explorer-for], [class*="graph-explorer-"]) {
    &[data-tone="muted"],
    & [data-tone="muted"] {
      --tone: var(--muted-foreground);
    }
    &[data-tone="ink"],
    & [data-tone="ink"] {
      --tone: var(--foreground);
    }
    &[data-tone="accent"],
    & [data-tone="accent"] {
      --tone: var(--graph-accent, var(--chart-2));
    }
    &[data-tone="link"],
    & [data-tone="link"] {
      --tone: var(--graph-link, var(--chart-4));
    }
    &[data-tone="ok"],
    & [data-tone="ok"] {
      --tone: var(--graph-ok, oklch(0.6 0.14 155));
    }
    &[data-tone="warn"],
    & [data-tone="warn"] {
      --tone: var(--graph-warn, oklch(0.72 0.16 65));
    }
    &[data-tone="danger"],
    & [data-tone="danger"] {
      --tone: var(--graph-danger, var(--destructive));
    }
  }

  /* ---------------------------------------------------------- the viewport: canvas, edges, slots, labels */
  .graph-explorer {
    position: relative;
    display: block;
    box-sizing: border-box;
    inline-size: 100%;
    block-size: 100%;
    min-block-size: var(--graph-explorer-min-height, 20rem);
    overflow: hidden;
    contain: strict;
    touch-action: none;
    user-select: none;
    cursor: grab;
    outline: none;
    background: var(--graph-paper); /* flat on purpose: a centered gradient reads as an empty cluster */
    color: var(--foreground);
    font-family: var(--font-sans);
    font-size: 0.875rem;

    &:focus-visible {
      box-shadow: inset 0 0 0 2px var(--graph-focus);
    }
    &[data-panning] {
      cursor: grabbing;
    }
    /* framed when it stands alone (in a Panel the panel is the frame) */
    &[data-frame] {
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
    }

    & .graph-explorer-canvas,
    & .graph-explorer-edges,
    & .graph-explorer-world,
    & .graph-explorer-edge-labels,
    & .graph-explorer-signs,
    & .graph-explorer-changes,
    & .graph-explorer-ring {
      position: absolute;
      inset: 0;
    }
    & .graph-explorer-canvas {
      inline-size: 100%;
      block-size: 100%;
      transform-origin: 50% 50%;
      pointer-events: none;
    }
    & .graph-explorer-edges {
      inline-size: 100%;
      block-size: 100%;
      pointer-events: none;
      overflow: visible;
    }
    & .graph-explorer-world,
    & .graph-explorer-signs,
    & .graph-explorer-changes,
    & .graph-explorer-edge-labels {
      pointer-events: none;
    }
    & .graph-explorer-changes {
      overflow: hidden;
    }
    /* a changed node: a glowing dot at its top right in its layer's colour (the Indicator's ping), for a while */
    & .graph-explorer-change-dot {
      position: absolute;
      left: 0;
      top: 0;
      inline-size: 0.625rem;
      block-size: 0.625rem;
      margin: -0.3125rem 0 0 -0.3125rem;
      color: var(--graph-explorer-layer, var(--graph-accent));
      box-shadow:
        0 0 0 2px var(--card),
        0 0 0.5rem 0.125rem color-mix(in oklch, currentColor 70%, transparent);
      animation: graph-explorer-change-fade linear forwards;
    }
    & .graph-explorer-probe {
      position: absolute;
      inline-size: 0;
      block-size: 0;
      overflow: hidden;
    }
    & .graph-explorer-live {
      position: absolute;
      inline-size: 1px;
      block-size: 1px;
      overflow: hidden;
      clip-path: inset(50%);
      white-space: nowrap;
    }

    & .graph-explorer-loading {
      position: absolute;
      inset: 0;
      display: grid;
      place-content: center;
      gap: 0.5rem;
      justify-items: center;
      color: var(--muted-foreground);
      background: var(--graph-paper);
      & progress {
        inline-size: 12rem;
        accent-color: var(--primary);
      }
      &[hidden] {
        display: none;
      }
    }

    /* the pooled node slots */
    & .graph-explorer-node {
      position: absolute;
      left: 0;
      top: 0;
      pointer-events: auto;
      contain: layout style;
      transition: opacity 0.18s ease;
      @starting-style {
        opacity: 0;
      }
      &[hidden] {
        display: none;
      }
    }
    &[data-dim] .graph-explorer-node:not([data-hl]) {
      opacity: 0.32;
    }
    & .graph-explorer-node[data-selected] > * {
      outline: 2px solid var(--graph-focus);
      outline-offset: 1px;
    }
    & .graph-explorer-node[data-kbd] > * {
      box-shadow:
        0 0 0 4px color-mix(in oklch, var(--graph-focus) 40%, transparent),
        var(--shadow-md);
    }
    & .graph-explorer-focus-ring {
      position: absolute;
      left: 0;
      top: 0;
      border-radius: 999px;
      border: 2px solid var(--graph-focus);
      box-shadow: 0 0 0 4px color-mix(in oklch, var(--graph-focus) 30%, transparent);
      pointer-events: none;
      &[hidden] {
        display: none;
      }
    }

    /* the promoted edges (SVG) of the selection, the hover and the keyboard focus */
    & .graph-explorer-edge {
      fill: none;
      stroke: var(--graph-edge);
      stroke-linecap: round;
      &[data-tone] {
        stroke: var(--tone);
      }
      &[data-flow] {
        stroke-dasharray: 2 7;
        animation: graph-explorer-flow 0.9s linear infinite;
      }
      &[data-pulse] {
        animation: graph-explorer-pulse 1.6s ease-in-out infinite;
      }
      /* the selected link */
      &[data-selected] {
        stroke: var(--graph-accent);
        stroke-width: 3.5px;
        filter: drop-shadow(0 0 3px color-mix(in oklch, var(--graph-accent) 55%, transparent));
      }
    }
    /* a changed link: the line lights up in its layer's colour and fades */
    & .graph-explorer-edge-flash {
      fill: none;
      stroke: var(--graph-explorer-layer, var(--graph-accent));
      stroke-linecap: round;
      filter: drop-shadow(0 0 4px var(--graph-explorer-layer, var(--graph-accent)));
      animation: graph-explorer-change-fade ease-out forwards;
    }
    /* a click on a promoted link selects it: a wide transparent stroke under the line */
    & .graph-explorer-edge-hit {
      fill: none;
      stroke: transparent;
      stroke-width: 14px;
      stroke-linecap: round;
      pointer-events: stroke;
      cursor: pointer;
    }
    /* a calm line is the relations layer's colour (set by the runtime from the theme's chart colours) */
    & :is(.graph-explorer-edge, .graph-explorer-edge-head)[data-tone="muted"] {
      --tone: var(--graph-explorer-relations, var(--muted-foreground));
    }
    & .graph-explorer-edge-head {
      fill: var(--graph-edge);
      stroke: none;
      &[data-selected] {
        fill: var(--graph-accent);
      }
      &[data-tone] {
        fill: var(--tone);
      }
    }

    /* the edge labels (DOM, budgeted); a click selects the link */
    & .graph-explorer-edge-label {
      position: absolute;
      left: 0;
      top: 0;
      transform: translate(-50%, -50%);
      white-space: nowrap;
      pointer-events: auto;
      cursor: pointer;
      border-radius: 999px;
      &[hidden] {
        display: none;
      }
      &[data-selected] {
        outline: 2px solid var(--graph-accent);
        outline-offset: 1px;
        z-index: 1;
      }
    }

    /* signposts to relations off screen, and the neighbour ring (Jump to a neighbour) */
    & .graph-explorer-sign {
      position: absolute;
      left: 0;
      top: 0;
      transform: translate(-50%, -50%);
      pointer-events: auto;
      max-inline-size: 14rem;
      padding: 0.125rem 0.5rem;
      border: 1px solid var(--tone, var(--border));
      border-radius: 999px;
      background: color-mix(in oklch, var(--popover) 92%, transparent);
      color: var(--popover-foreground);
      font: inherit;
      font-size: 0.6875rem;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      cursor: pointer;
      box-shadow: var(--shadow-sm);
      &:hover,
      &:focus-visible {
        background: var(--accent);
        outline: 2px solid var(--ring);
      }
    }
    & .graph-explorer-ring {
      pointer-events: auto;
      background: color-mix(in oklch, var(--graph-paper) 55%, transparent);
      &[hidden] {
        display: none;
      }
    }
    & .graph-explorer-ring-center {
      position: absolute;
      left: 0;
      top: 0;
      inline-size: 14px;
      block-size: 14px;
      margin: -7px 0 0 -7px;
      border-radius: 999px;
      background: var(--graph-focus);
      box-shadow: 0 0 0 6px color-mix(in oklch, var(--graph-focus) 30%, transparent);
    }
    & .graph-explorer-ring-item {
      position: absolute;
      left: 0;
      top: 0;
      transform: translate(-50%, -50%);
      transition: translate 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
      transition-delay: calc(var(--k, 0) * 18ms);
      display: flex;
      gap: 0.375rem;
      align-items: center;
      max-inline-size: 11rem;
      padding: 0.25rem 0.625rem;
      border: 1px solid var(--tone, var(--border));
      border-radius: 999px;
      background: var(--popover);
      color: var(--popover-foreground);
      font: inherit;
      font-size: 0.75rem;
      white-space: nowrap;
      overflow: hidden;
      cursor: pointer;
      box-shadow: var(--shadow-md);
      &:hover,
      &:focus-visible {
        outline: 2px solid var(--ring);
      }
    }

    & .graph-explorer-hud {
      position: absolute;
      inset-inline-end: 0.5rem;
      inset-block-end: 0.5rem;
      margin: 0;
      padding: 0.375rem 0.5rem;
      border-radius: var(--radius-sm);
      background: color-mix(in oklch, var(--popover) 88%, transparent);
      color: var(--popover-foreground);
      border: 1px solid var(--border);
      font: 0.6875rem/1.45 var(--font-mono);
      pointer-events: none;
      &[hidden] {
        display: none;
      }
    }

    /* the keyboard map (a popover in the top layer) */
    & .graph-explorer-help {
      max-inline-size: min(34rem, calc(100vw - 2rem));
      padding: 0;
      margin: auto;
      border: 1px solid var(--border);
      cursor: auto;
      user-select: text;
      &::backdrop {
        background: color-mix(in oklch, var(--background) 40%, transparent);
      }
    }
    & .graph-explorer-keys {
      border-collapse: collapse;
      font-size: 0.8125rem;
      & td {
        padding: 0.25rem 0.5rem;
        vertical-align: top;
      }
      & td:first-child {
        white-space: nowrap;
      }
    }
  }

  /* a Panel's body that holds the explorer gives it all its room */
  :where(.panel-body):has(> .graph-explorer) {
    display: grid;
    grid-template: minmax(0, 1fr) / minmax(0, 1fr);
    padding: 0;
    overflow: hidden;
    & > .graph-explorer {
      min-block-size: 0;
    }
  }

  /* ---------------------------------------------------------- what renderers draw: chips, cards, labels */
  .graph-explorer-chip {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    inline-size: 100%;
    block-size: 100%;
    box-sizing: border-box;
    padding: 0 0.5rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--graph-node);
    color: var(--graph-node-ink);
    box-shadow: var(--shadow-xs);
    font-size: 0.75rem;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    &[data-kind="cluster"] {
      font-weight: 500;
    }
  }
  .graph-explorer-card {
    position: relative;
    display: grid;
    align-content: start;
    gap: 0.25rem;
    inline-size: 100%;
    block-size: 100%;
    box-sizing: border-box;
    padding: 0.5rem 0.625rem;
    border: 1px solid var(--border);
    border-radius: var(--graph-radius);
    background: var(--graph-node);
    color: var(--graph-node-ink);
    box-shadow: var(--shadow-md);
    font-size: 0.75rem;
    overflow: hidden;
    cursor: pointer;
    & .graph-explorer-health {
      inline-size: 100%;
      block-size: 8px;
      margin: 0.375rem 0 0.25rem;
    }
  }
  .graph-explorer-card-head {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    min-inline-size: 0;
    font-size: 0.8125rem;
  }
  .graph-explorer-card-meta {
    margin: 0;
    color: var(--muted-foreground);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .graph-explorer-card-flags {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    & .badge {
      font-size: 0.6875rem;
    }
  }
  .graph-explorer-card-actions {
    display: flex;
    justify-content: flex-end;
  }
  .graph-explorer-card-expand.btn {
    margin-inline-start: auto;
    inline-size: 1.5rem;
    block-size: 1.5rem;
    min-inline-size: 0;
    padding: 0;
    color: var(--muted-foreground);
  }
  .graph-explorer-label {
    overflow: hidden;
    text-overflow: ellipsis;
    min-inline-size: 0;
    flex: 1 1 auto;
  }
  /* the nodes layer's colour on what it draws: a chip, a card */
  .graph-explorer :is(.graph-explorer-chip, .graph-explorer-card) {
    border-color: color-mix(in oklch, var(--graph-explorer-nodes, var(--border)) 55%, var(--border));
    background: color-mix(in oklch, var(--graph-explorer-nodes, var(--graph-node)) 9%, var(--graph-node));
  }
  /* a layer's part of a node: bordered and tinted in the layer's colour - a band in a card, a pill in a chip */
  .graph-explorer-part {
    --graph-explorer-layer: var(--muted-foreground);
    box-sizing: border-box;
    min-inline-size: 0;
    border: 1px solid color-mix(in oklch, var(--graph-explorer-layer) 70%, transparent);
    background: color-mix(in oklch, var(--graph-explorer-layer) 13%, transparent);
    color: var(--graph-node-ink);
    & .graph-explorer-card-meta,
    & .graph-explorer-meter-row {
      margin: 0;
      color: inherit;
    }
    & .graph-explorer-count {
      margin: 0;
      color: inherit;
    }
    & .graph-explorer-health {
      margin: 0.125rem 0;
    }
  }
  :is(.graph-explorer-card, .graph-explorer-parts-only[data-tier="card"]) > .graph-explorer-part {
    display: grid;
    gap: 0.125rem;
    padding: 0.125rem 0.375rem;
    border-radius: calc(var(--graph-radius) - 2px);
  }
  :is(.graph-explorer-chip, .graph-explorer-parts-only[data-tier="chip"]) > .graph-explorer-part {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 0.25rem;
    padding: 0.0625rem 0.3125rem;
    border-radius: 999px;
    line-height: 1;
    &:first-of-type {
      margin-inline-start: auto;
    }
  }
  /* the parts of a node whose own layer is hidden */
  .graph-explorer-parts-only {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    inline-size: 100%;
    block-size: 100%;
    box-sizing: border-box;
    padding-inline: 0.25rem;
    font-size: 0.75rem;
    &[data-tier="card"] {
      display: grid;
      align-content: start;
      padding: 0.375rem;
      border-radius: var(--graph-radius);
      background: color-mix(in oklch, var(--graph-node) 80%, transparent);
      box-shadow: var(--shadow-xs);
    }
  }
  .graph-explorer-count {
    margin-inline-start: auto;
    font-size: 0.6875rem;
    color: var(--muted-foreground);
    font-variant-numeric: tabular-nums;
  }
  .graph-explorer-cycle {
    color: var(--graph-accent);
    font-weight: 700;
  }
  .graph-explorer-muted {
    color: var(--muted-foreground);
    margin: 0;
  }
  .graph-explorer-pad {
    padding: 0.75rem;
  }
  /* a type's color: a dot (the outline) or an icon */
  .graph-explorer-type {
    flex: none;
    inline-size: 0.5rem;
    block-size: 0.5rem;
    border-radius: 999px;
    background: var(--type-color, var(--muted-foreground));
  }
  .graph-explorer-type-icon {
    color: var(--type-color, currentColor);
  }
  :is(.graph-explorer-type, .graph-explorer-type-icon, .graph-explorer-avatar) {
    &[data-type="0"] {
      --type-color: var(--chart-1);
    }
    &[data-type="1"] {
      --type-color: var(--chart-2);
    }
    &[data-type="2"] {
      --type-color: var(--chart-3);
    }
    &[data-type="3"] {
      --type-color: var(--chart-4);
    }
    &[data-type="4"] {
      --type-color: var(--chart-5);
    }
    &[data-type="5"] {
      --type-color: oklch(from var(--chart-1) l c calc(h + 150));
    }
    &[data-type="6"] {
      --type-color: oklch(from var(--chart-1) l c calc(h + 210));
    }
    &[data-type="7"] {
      --type-color: oklch(from var(--chart-1) l c calc(h + 280));
    }
  }
  .badge.graph-explorer-warn,
  .badge.graph-explorer-state[data-state="half-open"] {
    background: color-mix(in oklch, var(--graph-warn) 18%, transparent);
    color: var(--foreground);
    border-color: color-mix(in oklch, var(--graph-warn) 60%, transparent);
  }
  .badge.graph-explorer-state[data-state="open"] {
    background: var(--destructive);
    color: var(--destructive-foreground, white);
  }
  .badge.graph-explorer-state[data-state="cut"] {
    background: transparent;
    border-color: var(--foreground);
    color: var(--foreground);
  }

  /* the Health and Owners layers */
  .graph-explorer-health {
    display: flex;
    gap: 1px;
    flex: 0 0 auto;
    inline-size: 44px;
    block-size: 6px;
    border-radius: 999px;
    overflow: hidden;
    background: var(--muted);
    & > span {
      min-inline-size: 0;
      background: var(--tone);
    }
    & > span[style*="flex:0"] {
      display: none;
    }
  }
  .graph-explorer-pill {
    flex: none;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 0.625rem;
    line-height: 16px;
    background: color-mix(in oklch, var(--tone) 16%, transparent);
    color: var(--foreground);
  }
  .graph-explorer-meter-row {
    display: grid;
    grid-template-columns: 4.5rem 1fr auto;
    align-items: center;
    gap: 0.5rem;
    margin: 0.375rem 0 0;
    font-size: 0.6875rem;
    color: var(--muted-foreground);
  }
  .graph-explorer-meter {
    block-size: 6px;
    border-radius: 999px;
    background: var(--muted);
    overflow: hidden;
    & > span {
      display: block;
      block-size: 100%;
      background: var(--tone);
    }
  }
  .graph-explorer-avatar {
    flex: none;
    display: inline-grid;
    place-items: center;
    inline-size: 20px;
    block-size: 20px;
    border-radius: 999px;
    font-size: 0.5625rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--background);
    background: var(--type-color, var(--chart-1));
  }

  /* edge labels: an icon, a count, a pill or a badge */
  .graph-explorer-edge-icon {
    display: inline-grid;
    place-items: center;
    inline-size: 20px;
    block-size: 20px;
    border-radius: 999px;
    background: var(--popover);
    color: var(--muted-foreground);
    border: 1px solid color-mix(in oklch, var(--tone, var(--muted-foreground)) 45%, transparent);
    box-shadow: var(--shadow-xs);
    &[data-tone] {
      color: var(--tone);
    }
    & .graph-explorer-icon {
      inline-size: 12px;
      block-size: 12px;
    }
  }
  .graph-explorer-edge-count {
    display: inline-block;
    min-inline-size: 20px;
    padding: 0 5px;
    border-radius: 999px;
    text-align: center;
    background: var(--popover);
    color: var(--muted-foreground);
    border: 1px solid var(--border);
    font-size: 0.625rem;
    line-height: 16px;
    font-variant-numeric: tabular-nums;
    box-shadow: var(--shadow-xs);
  }
  .graph-explorer-edge-pill,
  .graph-explorer-edge-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 1px 7px 1px 5px;
    border-radius: 999px;
    border: 1px solid var(--tone, var(--border));
    background: var(--popover);
    color: var(--popover-foreground);
    box-shadow: var(--shadow-xs);
    font-size: 0.6875rem;
    line-height: 18px;
    white-space: nowrap;
    & .graph-explorer-icon {
      inline-size: 12px;
      block-size: 12px;
    }
    & .graph-explorer-muted {
      font-size: 0.625rem;
    }
  }
  .graph-explorer-edge-badge[data-tone="danger"] {
    background: var(--destructive);
    color: var(--destructive-foreground, white);
    border-color: var(--destructive);
    & .graph-explorer-icon {
      color: inherit;
    }
  }
  .graph-explorer-edge-badge[data-tone="warn"] {
    border-color: var(--graph-warn);
  }
  .graph-explorer-edge-sub {
    opacity: 0.8;
    font-size: 0.625rem;
  }

  /* ---------------------------------------------------------- the outlets */
  .graph-explorer-path {
    min-inline-size: 0;
    overflow: hidden;
    & .breadcrumb-list {
      flex-wrap: nowrap;
      white-space: nowrap;
    }
  }
  .graph-explorer-search {
    position: relative;
    min-inline-size: 12rem;
  }
  .graph-explorer-search-input.input {
    inline-size: 100%;
    padding-inline-start: 2rem;
  }
  .graph-explorer-search-icon {
    position: absolute;
    inset-inline-start: 0.625rem;
    top: 50%;
    translate: 0 -50%;
    color: var(--muted-foreground);
    pointer-events: none;
  }
  .graph-explorer-results {
    position: absolute;
    inset-inline: 0;
    top: calc(100% + 4px);
    z-index: 20;
    margin: 0;
    padding: 0.25rem;
    list-style: none;
    max-block-size: 22rem;
    overflow: auto;
    overscroll-behavior: contain;
    background: var(--popover);
    color: var(--popover-foreground);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    & [role="option"] {
      display: grid;
      gap: 0.125rem;
      padding: 0.375rem 0.5rem;
      border-radius: var(--radius-sm);
      cursor: pointer;
      &[aria-selected="true"],
      &:hover {
        background: var(--accent);
        color: var(--accent-foreground);
      }
    }
    &[hidden] {
      display: none;
    }
  }
  .graph-explorer-result-label {
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .graph-explorer-result-path,
  .graph-explorer-result-more {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .graph-explorer-result-more {
    padding: 0.375rem 0.5rem;
  }

  /* the layer switch: a Toggle Group, every layer with its colour as an Indicator dot and its tint when shown;
     Compact after a Separator - the toggles keep the Toggle's own sizes (a rule of the same weight here would win or
     lose by the order the stylesheets come in: graphs.css loads after all.css, an app bundle sorts by name) */
  .graph-explorer-layers {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    min-inline-size: 0;
    & .toggle-group {
      gap: 0.25rem;
    }
    & .separator[data-orientation="vertical"] {
      block-size: 1.25rem;
    }
    & .graph-explorer-icon {
      inline-size: 0.875rem;
      block-size: 0.875rem;
    }
    & .toggle.graph-explorer-layer {
      --graph-explorer-layer: var(--muted-foreground);
      & .indicator-dot {
        color: var(--graph-explorer-layer);
        background-color: transparent;
        box-shadow: inset 0 0 0 1.5px currentColor;
      }
      &:hover {
        background-color: color-mix(in oklch, var(--graph-explorer-layer) 10%, transparent);
      }
      &[aria-pressed="true"] {
        background-color: color-mix(in oklch, var(--graph-explorer-layer) 18%, transparent);
        box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--graph-explorer-layer) 60%, transparent);
        color: var(--foreground);
        & .indicator-dot {
          background-color: currentColor;
        }
        &:hover {
          background-color: color-mix(in oklch, var(--graph-explorer-layer) 28%, transparent);
        }
      }
    }
  }
  /* an edge label in its layer's colour (a breaker's danger badge keeps its own) */
  .graph-explorer-edge-label[data-layer]
    > :is(
      .graph-explorer-edge-pill,
      .graph-explorer-edge-badge,
      .graph-explorer-edge-count,
      .graph-explorer-edge-icon
    ):not([data-tone="danger"]) {
    border-color: color-mix(in oklch, var(--graph-explorer-layer) 75%, transparent);
    background: color-mix(in oklch, var(--graph-explorer-layer) 14%, var(--popover));
  }
  [data-graph-explorer-action="live"][aria-pressed="true"] {
    background: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
  }

  .graph-explorer-outline {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    block-size: 100%;
    min-block-size: 0;
    overflow: hidden;
  }
  .graph-explorer-outline-head {
    padding: 0.5rem;
    border-block-end: 1px solid var(--border);
  }
  .graph-explorer-outline-filter.input {
    inline-size: 100%;
  }
  .graph-explorer-outline-list {
    list-style: none;
    margin: 0;
    padding: 0.25rem;
    overflow: auto;
    overscroll-behavior: contain;
    & li[aria-selected="true"] > .graph-explorer-outline-item {
      background: var(--secondary);
      color: var(--secondary-foreground);
      font-weight: 600;
    }
  }
  .graph-explorer-outline-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    inline-size: 100%;
    padding: 0.25rem 0.375rem;
    padding-inline-start: calc(0.375rem + var(--depth, 0) * 0.625rem);
    border: 0;
    border-radius: var(--radius-sm);
    background: none;
    color: inherit;
    font: inherit;
    font-size: 0.8125rem;
    text-align: start;
    cursor: pointer;
    &:hover {
      background: var(--accent);
      color: var(--accent-foreground);
    }
    &:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: -2px;
    }
  }
  .graph-explorer-outline-path .graph-explorer-outline-item {
    color: var(--muted-foreground);
    font-weight: 500;
  }
  .graph-explorer-outline-path:last-of-type .graph-explorer-outline-item {
    color: var(--foreground);
  }
  .graph-explorer-outline-more {
    padding: 0.5rem;
    font-size: 0.75rem;
    color: var(--muted-foreground);
  }

  /* the details (a node's or a link's), and their whole page when expanded. Built from the library's Badge,
     Button, Card, Statistic and Table plus the parts below; plugins use the same classes */
  .graph-explorer-details {
    display: grid;
    align-content: start;
    gap: 0.875rem;
    container-type: inline-size;
    font-size: 0.8125rem;
  }
  .graph-explorer-island {
    min-inline-size: 0;
  }
  .graph-explorer-empty {
    display: grid;
    justify-items: center;
    gap: 0.25rem;
    padding: 2rem 0.5rem;
    text-align: center;
    color: var(--muted-foreground);
    & p {
      margin: 0;
    }
    & > .graph-explorer-icon {
      opacity: 0.5;
    }
  }
  .graph-explorer-detail-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem;
  }
  .graph-explorer-detail-tile {
    display: grid;
    place-items: center;
    inline-size: 2.5rem;
    block-size: 2.5rem;
    border-radius: var(--radius-md);
    background: var(--muted);
    color: var(--graph-accent);
    box-shadow: inset 0 0 0 1px var(--border);
    &[data-size="xl"] {
      inline-size: 3.5rem;
      block-size: 3.5rem;
      border-radius: var(--radius-lg);
    }
  }
  .graph-explorer-detail-titles,
  .graph-explorer-page-titles {
    display: grid;
    gap: 0.125rem;
    min-inline-size: 0;
  }
  .graph-explorer-detail-kicker {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--foreground);
  }
  .graph-explorer-cycle-note {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--muted-foreground);
    font-weight: 400;
  }
  .graph-explorer-trail {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--muted-foreground);
    & .graph-explorer-link {
      color: inherit;
    }
  }
  .graph-explorer-trail-sep {
    opacity: 0.6;
  }
  .graph-explorer-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
  }
  /* facts: a grid of label and value cells */
  .graph-explorer-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--border);
  }
  .graph-explorer-stat {
    display: grid;
    gap: 0.125rem;
    min-inline-size: 0;
    padding: 0.5rem 0.625rem;
    background: var(--card);
    & dt {
      font-size: 0.6875rem;
      color: var(--muted-foreground);
    }
    & dd {
      margin: 0;
      font-size: 0.9375rem;
      font-weight: 600;
      font-variant-numeric: tabular-nums;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    &[data-tone] dd {
      color: var(--tone);
    }
    & .badge {
      font-size: 0.6875rem;
    }
  }
  .graph-explorer-section {
    display: grid;
    gap: 0.25rem;
    padding-block-start: 0.75rem;
    border-block-start: 1px solid var(--border);
  }
  .graph-explorer-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin: 0 0 0.125rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted-foreground);
  }
  .graph-explorer-section-count {
    padding: 0 0.375rem;
    border-radius: 999px;
    background: var(--muted);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
  }
  /* a list of nodes: a click opens one, the link button inspects the link to it */
  .graph-explorer-rows {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1px;
  }
  .graph-explorer-row {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    min-inline-size: 0;
    border-radius: var(--radius-sm);
    &:hover {
      background: var(--accent);
      color: var(--accent-foreground);
    }
    & > .graph-explorer-bar {
      flex: 0 0 3.5rem;
      margin-inline-end: 0.375rem;
    }
    & > .badge {
      flex: none;
      font-size: 0.625rem;
    }
  }
  .graph-explorer-row-main {
    flex: 1;
    min-inline-size: 0;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.3125rem 0.375rem;
    border: 0;
    border-radius: var(--radius-sm);
    background: none;
    color: inherit;
    font: inherit;
    text-align: start;
    cursor: pointer;
    &:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: -2px;
    }
    & > .graph-explorer-icon {
      color: var(--muted-foreground);
    }
  }
  .graph-explorer-row-name {
    flex: 1;
    min-inline-size: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .graph-explorer-row-meta {
    display: flex;
    gap: 0.375rem;
    font-size: 0.6875rem;
    color: var(--muted-foreground);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }
  .graph-explorer-row-link,
  .graph-explorer-edge-btn {
    flex: none;
    display: inline-grid;
    place-items: center;
    border: 0;
    background: none;
    color: var(--muted-foreground);
    font: inherit;
    cursor: pointer;
    &:hover {
      color: var(--foreground);
    }
    &:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: 1px;
    }
  }
  .graph-explorer-row-link {
    inline-size: 1.625rem;
    block-size: 1.625rem;
    border-radius: var(--radius-sm);
    &:hover {
      background: var(--muted);
    }
  }
  .graph-explorer-edge-btn {
    padding: 0;
    border-radius: 999px;
  }
  .graph-explorer-more {
    margin: 0.125rem 0 0;
    padding-inline: 0.375rem;
    font-size: 0.6875rem;
    color: var(--muted-foreground);
  }
  /* a share as a bar, in the tone of its kind */
  .graph-explorer-bar {
    display: block;
    block-size: 0.375rem;
    min-inline-size: 2rem;
    border-radius: 999px;
    background: color-mix(in oklch, var(--tone, var(--graph-accent)) 16%, transparent);
    overflow: hidden;
    & > span {
      display: block;
      block-size: 100%;
      border-radius: inherit;
      background: var(--tone, var(--graph-accent));
    }
  }
  .graph-explorer-shares {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
    & li {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 0.25rem 0.75rem;
      align-items: center;
    }
    & .graph-explorer-bar {
      grid-column: 1 / -1;
    }
  }
  .graph-explorer-share-name {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    min-inline-size: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .graph-explorer-share-value {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    font-variant-numeric: tabular-nums;
  }
  .graph-explorer-legend {
    list-style: none;
    margin: 0.375rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.875rem;
    font-size: 0.6875rem;
    color: var(--muted-foreground);
    font-variant-numeric: tabular-nums;
    & li {
      display: inline-flex;
      align-items: center;
      gap: 0.375rem;
      &::before {
        content: "";
        inline-size: 0.5rem;
        block-size: 0.5rem;
        border-radius: 2px;
        background: var(--tone);
      }
    }
  }
  /* the two ends of a link */
  .graph-explorer-ends {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 0.5rem;
  }
  .graph-explorer-ends-arrow {
    display: grid;
    place-items: center;
    color: var(--muted-foreground);
  }
  .graph-explorer-end {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0 0.5rem;
    min-inline-size: 0;
    padding: 0.5rem 0.625rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--card);
    color: var(--card-foreground);
    font: inherit;
    text-align: start;
    cursor: pointer;
    &:hover {
      background: var(--accent);
      color: var(--accent-foreground);
    }
    &:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: 1px;
    }
    & > .graph-explorer-icon {
      grid-row: span 2;
    }
  }
  .graph-explorer-end-name {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .graph-explorer-end-type {
    font-size: 0.6875rem;
    color: var(--muted-foreground);
  }
  .graph-explorer-rel-table {
    font-size: 0.8125rem;
    & :is(.table-cell, .table-head) {
      padding-block: 0.3rem;
    }
    & tr[data-graph-explorer-goto] {
      cursor: pointer;
      &:hover {
        background: var(--accent);
      }
    }
    & .graph-explorer-rel-edge :is(.graph-explorer-edge-pill, .graph-explorer-edge-badge) {
      box-shadow: none;
    }
    & .graph-explorer-bar-col {
      inline-size: 8rem;
    }
  }
  .graph-explorer-rel-type {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
  }
  .graph-explorer-relations .table-container {
    border: 0;
    border-radius: 0;
  }
  .graph-explorer-link {
    border: 0;
    padding: 0;
    background: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
    text-align: start;
    &:hover {
      text-decoration: underline;
    }
    &:focus-visible {
      outline: 2px solid var(--ring);
    }
    & > .graph-explorer-icon {
      color: var(--muted-foreground);
    }
  }
  /* the expanded page: a head, key figures as Statistics, Cards in a grid */
  .graph-explorer-page {
    display: grid;
    gap: 1.25rem;
    padding: 1rem 1.25rem 2rem;
    & .graph-explorer-health {
      inline-size: 100%;
      block-size: 12px;
    }
    & > .graph-explorer-ends {
      max-inline-size: 44rem;
    }
  }
  .graph-explorer-page-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
  }
  /* an expanded page's "Back to graph" points toward the graph: a row of its own above the head, at its start - at
     its end when the details sit in a west region (the graph is then to their right). Any renderer that puts the
     collapse action among its actions gets it. */
  .graph-explorer-page-head:has(> .graph-explorer-detail-actions > [data-graph-explorer-action="collapse"]) {
    position: relative;
    padding-block-start: 2.75rem;
    & > .graph-explorer-detail-actions > [data-graph-explorer-action="collapse"] {
      position: absolute;
      inset-block-start: 0;
      inset-inline-start: 0;
    }
  }
  :where(.border-layout-west)
    .graph-explorer-page-head
    > .graph-explorer-detail-actions
    > [data-graph-explorer-action="collapse"] {
    inset-inline: auto 0;
  }
  .graph-explorer-page-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 650;
    letter-spacing: -0.015em;
    overflow-wrap: anywhere;
  }
  .graph-explorer-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 0.75rem;
  }
  .graph-explorer-kpi {
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--card);
    color: var(--card-foreground);
    box-shadow: var(--shadow-xs);
    & .statistic-value {
      font-size: 1.5rem;
      font-variant-numeric: tabular-nums;
    }
    &[data-tone] .statistic-value {
      color: var(--tone);
    }
  }
  .graph-explorer-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(20rem, 100%), 1fr));
    gap: 1rem;
    align-items: start;
  }
  /* every row behind a node or a link: a Data Grid and the shares of what its filters match */
  .graph-explorer-records {
    display: grid;
    gap: 0.75rem;
    min-inline-size: 0;
  }
  .graph-explorer-records-count {
    margin: 0;
    font-size: 0.8125rem;
    font-variant-numeric: tabular-nums;
  }
  .graph-explorer-records-shares {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr));
    gap: 1rem 1.5rem;
    font-size: 0.8125rem;
    &:empty {
      display: none;
    }
  }
  .graph-explorer-records-share {
    display: grid;
    gap: 0.5rem;
    align-content: start;
    min-inline-size: 0;
  }
  .graph-explorer-grid {
    --data-grid-row-height: 30px;
    font-size: 0.8125rem;
    & .graph-explorer-link {
      max-inline-size: 100%;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
  }
  .graph-explorer-page-card {
    min-inline-size: 0;
    &[data-wide] {
      grid-column: 1 / -1;
    }
    & .card-title {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      & > .graph-explorer-icon {
        color: var(--muted-foreground);
      }
    }
    & .card-content {
      display: grid;
      gap: 0.75rem;
      min-inline-size: 0;
    }
  }
  @container (max-width: 48rem) {
    .graph-explorer-page-head {
      grid-template-columns: auto minmax(0, 1fr);
      & .graph-explorer-detail-actions {
        grid-column: 1 / -1;
      }
    }
  }
  @container (max-width: 34rem) {
    .graph-explorer-layer-label {
      position: absolute;
      inline-size: 1px;
      block-size: 1px;
      overflow: hidden;
      clip-path: inset(50%);
      white-space: nowrap;
    }
  }

  /* ---------------------------------------------------------- icons */
  .graph-explorer-icon {
    display: inline-block;
    flex: none;
    inline-size: 1rem;
    block-size: 1rem;
    vertical-align: middle;
    background-color: currentColor;
    -webkit-mask: var(--graph-explorer-icon) center / 100% 100% no-repeat;
    mask: var(--graph-explorer-icon) center / 100% 100% no-repeat;
    &[data-size="xs"] {
      inline-size: 0.75rem;
      block-size: 0.75rem;
    }
    &[data-size="sm"] {
      inline-size: 0.875rem;
      block-size: 0.875rem;
    }
    &[data-size="lg"] {
      inline-size: 1.5rem;
      block-size: 1.5rem;
    }
    &[data-size="xl"] {
      inline-size: 2rem;
      block-size: 2rem;
    }
    &[data-tone] {
      color: var(--tone);
    }
  }

  @keyframes graph-explorer-flow {
    to {
      stroke-dashoffset: -9;
    }
  }
  @keyframes graph-explorer-pulse {
    50% {
      opacity: 0.35;
    }
  }
  /* a change stays bright, then fades (the runtime takes the mark away when it ends) */
  @keyframes graph-explorer-change-fade {
    0%,
    60% {
      opacity: 1;
    }
    100% {
      opacity: 0;
    }
  }

  /* ---------------------------------------------------------- the Updates outlet: one compact row per change */
  /* .virtual-list too: the list's own row height would win where its sheet comes later (an app bundle) */
  .graph-explorer-updates.virtual-list,
  .graph-explorer-updates {
    --virtual-list-row-height: 2rem;
    box-sizing: border-box;
    block-size: 100%;
    min-block-size: 6rem;
    border: 0;
    border-radius: 0;
    background: transparent;

    & .virtual-list-row {
      padding: 0;
    }
  }
  .graph-explorer-update {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    box-sizing: border-box;
    inline-size: 100%;
    block-size: 2rem;
    padding: 0 0.625rem;
    border: 0;
    border-block-end: 1px solid color-mix(in oklch, var(--border) 60%, transparent);
    background: transparent;
    color: var(--foreground);
    font: inherit;
    font-size: 0.8125rem;
    text-align: start;
    cursor: pointer;

    & > .indicator-dot {
      color: var(--graph-explorer-layer, var(--graph-accent));
      &[data-tone] {
        color: var(--tone);
      }
    }
    &:hover {
      background: var(--accent);
      color: var(--accent-foreground);
    }
    &:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: -2px;
    }
  }
  .graph-explorer-update-label {
    flex: 0 1 auto;
    max-inline-size: 45%;
    overflow: hidden;
    font-weight: 500;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .graph-explorer-update-text {
    flex: 1 1 0;
    min-inline-size: 0;
    overflow: hidden;
    color: var(--muted-foreground);
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .graph-explorer-update-time {
    flex: none;
    color: var(--muted-foreground);
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
  }

  @media (prefers-reduced-motion: reduce) {
    .graph-explorer .graph-explorer-edge,
    .graph-explorer :is(.graph-explorer-change-dot, .graph-explorer-edge-flash) {
      animation: none !important;
    }
    .graph-explorer :is(.graph-explorer-node, .graph-explorer-ring-item) {
      transition: none;
    }
  }
  @media (prefers-contrast: more) {
    .graph-explorer .graph-explorer-edge {
      stroke-width: 2.75;
    }
    :is(.graph-explorer-chip, .graph-explorer-card) {
      border-width: 2px;
      border-color: var(--foreground);
    }
  }
  @media (forced-colors: active) {
    .graph-explorer-part {
      border-color: CanvasText;
    }
    .graph-explorer .graph-explorer-node > :is(.graph-explorer-chip, .graph-explorer-card) {
      border-color: CanvasText;
      background: Canvas;
    }
    :is(.graph-explorer-chip, .graph-explorer-card, .graph-explorer-sign, .graph-explorer-ring-item) {
      border: 1px solid CanvasText;
      background: Canvas;
      color: CanvasText;
      forced-color-adjust: none;
    }
    .graph-explorer .graph-explorer-edge {
      stroke: CanvasText;
    }
    .graph-explorer .graph-explorer-edge-flash {
      stroke: Highlight;
      filter: none;
    }
    .graph-explorer .graph-explorer-change-dot {
      forced-color-adjust: none;
      color: Highlight;
      box-shadow: none;
    }
    .graph-explorer-update {
      border-block-end-color: CanvasText;
      &:is(:hover, :focus-visible) {
        outline: 2px solid Highlight;
      }
    }
    .graph-explorer .graph-explorer-edge-head {
      fill: CanvasText;
    }
    .graph-explorer .graph-explorer-node[data-selected] > * {
      outline-color: Highlight;
    }
    .graph-explorer-icon {
      background-color: CanvasText;
      forced-color-adjust: none;
    }
  }

  /* the icon set: a Lucide subset (see the header) */
  .graph-explorer-icon[data-icon="chevron-up"] {
    --graph-explorer-icon: 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='m18 15-6-6-6 6' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="chevron-down"] {
    --graph-explorer-icon: 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='m6 9 6 6 6-6' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="maximize-2"] {
    --graph-explorer-icon: 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%3Cpolyline points='15 3 21 3 21 9' /%3E %3Cpolyline points='9 21 3 21 3 15' /%3E %3Cline x1='21' x2='14' y1='3' y2='10' /%3E %3Cline x1='3' x2='10' y1='21' y2='14' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="minimize-2"] {
    --graph-explorer-icon: 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%3Cpolyline points='4 14 10 14 10 20' /%3E %3Cpolyline points='20 10 14 10 14 4' /%3E %3Cline x1='14' x2='21' y1='10' y2='3' /%3E %3Cline x1='3' x2='10' y1='21' y2='14' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="x"] {
    --graph-explorer-icon: 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='M18 6 6 18' /%3E %3Cpath d='m6 6 12 12' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="list-tree"] {
    --graph-explorer-icon: 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='M21 12h-8' /%3E %3Cpath d='M21 6H8' /%3E %3Cpath d='M21 18h-8' /%3E %3Cpath d='M3 6v4c0 1.1.9 2 2 2h3' /%3E %3Cpath d='M3 10v6c0 1.1.9 2 2 2h3' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="waypoints"] {
    --graph-explorer-icon: 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%3Ccircle cx='12' cy='4.5' r='2.5' /%3E %3Cpath d='m10.2 6.3-3.9 3.9' /%3E %3Ccircle cx='4.5' cy='12' r='2.5' /%3E %3Cpath d='M7 12h10' /%3E %3Ccircle cx='19.5' cy='12' r='2.5' /%3E %3Cpath d='m13.8 17.7 3.9-3.9' /%3E %3Ccircle cx='12' cy='19.5' r='2.5' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="panel-right"] {
    --graph-explorer-icon: 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%3Crect width='18' height='18' x='3' y='3' rx='2' /%3E %3Cpath d='M15 3v18' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="rows-3"] {
    --graph-explorer-icon: 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%3Crect width='18' height='18' x='3' y='3' rx='2' /%3E %3Cpath d='M21 9H3' /%3E %3Cpath d='M21 15H3' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="database"] {
    --graph-explorer-icon: 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%3Cellipse cx='12' cy='5' rx='9' ry='3' /%3E %3Cpath d='M3 5V19A9 3 0 0 0 21 19V5' /%3E %3Cpath d='M3 12A9 3 0 0 0 21 12' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="plug"] {
    --graph-explorer-icon: 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='M12 22v-5' /%3E %3Cpath d='M9 8V2' /%3E %3Cpath d='M15 8V2' /%3E %3Cpath d='M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="file-text"] {
    --graph-explorer-icon: 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='M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z' /%3E %3Cpath d='M14 2v4a2 2 0 0 0 2 2h4' /%3E %3Cpath d='M10 9H8' /%3E %3Cpath d='M16 13H8' /%3E %3Cpath d='M16 17H8' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="user"] {
    --graph-explorer-icon: 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='M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2' /%3E %3Ccircle cx='12' cy='7' r='4' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="clock"] {
    --graph-explorer-icon: 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%3Ccircle cx='12' cy='12' r='10' /%3E %3Cpolyline points='12 6 12 12 16 14' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="radio"] {
    --graph-explorer-icon: 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='M4.9 19.1C1 15.2 1 8.8 4.9 4.9' /%3E %3Cpath d='M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5' /%3E %3Ccircle cx='12' cy='12' r='2' /%3E %3Cpath d='M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5' /%3E %3Cpath d='M19.1 4.9C23 8.8 23 15.1 19.1 19' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="plug-zap"] {
    --graph-explorer-icon: 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='M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z' /%3E %3Cpath d='m2 22 3-3' /%3E %3Cpath d='M7.5 13.5 10 11' /%3E %3Cpath d='M10.5 16.5 13 14' /%3E %3Cpath d='m18 3-4 4h6l-4 4' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="cog"] {
    --graph-explorer-icon: 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='M12 20a8 8 0 1 0 0-16 8 8 0 0 0 0 16Z' /%3E %3Cpath d='M12 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z' /%3E %3Cpath d='M12 2v2' /%3E %3Cpath d='M12 22v-2' /%3E %3Cpath d='m17 20.66-1-1.73' /%3E %3Cpath d='M11 10.27 7 3.34' /%3E %3Cpath d='m20.66 17-1.73-1' /%3E %3Cpath d='m3.34 7 1.73 1' /%3E %3Cpath d='M14 12h8' /%3E %3Cpath d='M2 12h2' /%3E %3Cpath d='m20.66 7-1.73 1' /%3E %3Cpath d='m3.34 17 1.73-1' /%3E %3Cpath d='m17 3.34-1 1.73' /%3E %3Cpath d='m11 13.73-4 6.93' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="waves"] {
    --graph-explorer-icon: 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='M2 6c.6.5 1.2 1 2.5 1C7 7 7 5 9.5 5c2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1' /%3E %3Cpath d='M2 12c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1' /%3E %3Cpath d='M2 18c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="boxes"] {
    --graph-explorer-icon: 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='M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z' /%3E %3Cpath d='m7 16.5-4.74-2.85' /%3E %3Cpath d='m7 16.5 5-3' /%3E %3Cpath d='M7 16.5v5.17' /%3E %3Cpath d='M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z' /%3E %3Cpath d='m17 16.5-5-3' /%3E %3Cpath d='m17 16.5 4.74-2.85' /%3E %3Cpath d='M17 16.5v5.17' /%3E %3Cpath d='M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z' /%3E %3Cpath d='M12 8 7.26 5.15' /%3E %3Cpath d='m12 8 4.74-2.85' /%3E %3Cpath d='M12 13.5V8' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="box"] {
    --graph-explorer-icon: 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='M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z' /%3E %3Cpath d='m3.3 7 8.7 5 8.7-5' /%3E %3Cpath d='M12 22V12' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="zap"] {
    --graph-explorer-icon: 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='M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="eye"] {
    --graph-explorer-icon: 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='M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0' /%3E %3Ccircle cx='12' cy='12' r='3' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="key-round"] {
    --graph-explorer-icon: 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='M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z' /%3E %3Ccircle cx='16.5' cy='7.5' r='.5' fill='currentColor' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="link"] {
    --graph-explorer-icon: 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='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71' /%3E %3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="link-2"] {
    --graph-explorer-icon: 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 17H7A5 5 0 0 1 7 7h2' /%3E %3Cpath d='M15 7h2a5 5 0 1 1 0 10h-2' /%3E %3Cline x1='8' x2='16' y1='12' y2='12' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="zap-off"] {
    --graph-explorer-icon: 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='M10.513 4.856 13.12 2.17a.5.5 0 0 1 .86.46l-1.377 4.317' /%3E %3Cpath d='M15.656 10H20a1 1 0 0 1 .78 1.63l-1.72 1.773' /%3E %3Cpath d='M16.273 16.273 10.88 21.83a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14H4a1 1 0 0 1-.78-1.63l4.507-4.643' /%3E %3Cpath d='m2 2 20 20' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="circle-dashed"] {
    --graph-explorer-icon: 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='M10.1 2.182a10 10 0 0 1 3.8 0' /%3E %3Cpath d='M13.9 21.818a10 10 0 0 1-3.8 0' /%3E %3Cpath d='M17.609 3.721a10 10 0 0 1 2.69 2.7' /%3E %3Cpath d='M2.182 13.9a10 10 0 0 1 0-3.8' /%3E %3Cpath d='M20.279 17.609a10 10 0 0 1-2.7 2.69' /%3E %3Cpath d='M21.818 10.1a10 10 0 0 1 0 3.8' /%3E %3Cpath d='M3.721 6.391a10 10 0 0 1 2.7-2.69' /%3E %3Cpath d='M6.391 20.279a10 10 0 0 1-2.69-2.7' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="scissors"] {
    --graph-explorer-icon: 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%3Ccircle cx='6' cy='6' r='3' /%3E %3Cpath d='M8.12 8.12 12 12' /%3E %3Cpath d='M20 4 8.12 15.88' /%3E %3Ccircle cx='6' cy='18' r='3' /%3E %3Cpath d='M14.8 14.8 20 20' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="shield-check"] {
    --graph-explorer-icon: 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='M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z' /%3E %3Cpath d='m9 12 2 2 4-4' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="triangle-alert"] {
    --graph-explorer-icon: 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='m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3' /%3E %3Cpath d='M12 9v4' /%3E %3Cpath d='M12 17h.01' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="search"] {
    --graph-explorer-icon: 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%3Ccircle cx='11' cy='11' r='8' /%3E %3Cpath d='m21 21-4.3-4.3' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="arrow-up"] {
    --graph-explorer-icon: 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='m5 12 7-7 7 7' /%3E %3Cpath d='M12 19V5' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="scan"] {
    --graph-explorer-icon: 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='M3 7V5a2 2 0 0 1 2-2h2' /%3E %3Cpath d='M17 3h2a2 2 0 0 1 2 2v2' /%3E %3Cpath d='M21 17v2a2 2 0 0 1-2 2h-2' /%3E %3Cpath d='M7 21H5a2 2 0 0 1-2-2v-2' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="radio-tower"] {
    --graph-explorer-icon: 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='M4.9 16.1C1 12.2 1 5.8 4.9 1.9' /%3E %3Cpath d='M7.8 4.7a6.14 6.14 0 0 0-.8 7.5' /%3E %3Ccircle cx='12' cy='9' r='2' /%3E %3Cpath d='M16.2 4.8c2 2 2.26 5.11.8 7.47' /%3E %3Cpath d='M19.1 1.9a9.96 9.96 0 0 1 0 14.1' /%3E %3Cpath d='M9.5 18h5' /%3E %3Cpath d='m8 22 4-11 4 11' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="keyboard"] {
    --graph-explorer-icon: 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='M10 8h.01' /%3E %3Cpath d='M12 12h.01' /%3E %3Cpath d='M14 8h.01' /%3E %3Cpath d='M16 12h.01' /%3E %3Cpath d='M18 8h.01' /%3E %3Cpath d='M6 8h.01' /%3E %3Cpath d='M7 16h10' /%3E %3Cpath d='M8 12h.01' /%3E %3Crect width='20' height='16' x='2' y='4' rx='2' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="expand"] {
    --graph-explorer-icon: 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='m21 21-6-6m6 6v-4.8m0 4.8h-4.8' /%3E %3Cpath d='M3 16.2V21m0 0h4.8M3 21l6-6' /%3E %3Cpath d='M21 7.8V3m0 0h-4.8M21 3l-6 6' /%3E %3Cpath d='M3 7.8V3m0 0h4.8M3 3l6 6' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="shrink"] {
    --graph-explorer-icon: 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='m15 15 6 6m-6-6v4.8m0-4.8h4.8' /%3E %3Cpath d='M9 19.8V15m0 0H4.2M9 15l-6 6' /%3E %3Cpath d='M15 4.2V9m0 0h4.8M15 9l6-6' /%3E %3Cpath d='M9 4.2V9m0 0H4.2M9 9 3 3' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="repeat-2"] {
    --graph-explorer-icon: 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='m2 9 3-3 3 3' /%3E %3Cpath d='M13 18H7a2 2 0 0 1-2-2V6' /%3E %3Cpath d='m22 15-3 3-3-3' /%3E %3Cpath d='M11 6h6a2 2 0 0 1 2 2v10' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="refresh-cw"] {
    --graph-explorer-icon: 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='M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8' /%3E %3Cpath d='M21 3v5h-5' /%3E %3Cpath d='M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16' /%3E %3Cpath d='M8 16H3v5' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="users"] {
    --graph-explorer-icon: 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='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2' /%3E %3Ccircle cx='9' cy='7' r='4' /%3E %3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87' /%3E %3Cpath d='M16 3.13a4 4 0 0 1 0 7.75' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="activity"] {
    --graph-explorer-icon: 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='M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="layers"] {
    --graph-explorer-icon: 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='M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z' /%3E %3Cpath d='M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12' /%3E %3Cpath d='M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="gauge"] {
    --graph-explorer-icon: 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='m12 14 4-4' /%3E %3Cpath d='M3.34 19a10 10 0 1 1 17.32 0' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="circle-alert"] {
    --graph-explorer-icon: 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%3Ccircle cx='12' cy='12' r='10' /%3E %3Cline x1='12' x2='12' y1='8' y2='12' /%3E %3Cline x1='12' x2='12.01' y1='16' y2='16' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="arrow-right"] {
    --graph-explorer-icon: 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='M5 12h14' /%3E %3Cpath d='m12 5 7 7-7 7' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="arrow-left"] {
    --graph-explorer-icon: 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='m12 19-7-7 7-7' /%3E %3Cpath d='M19 12H5' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="arrow-left-right"] {
    --graph-explorer-icon: 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='M8 3 4 7l4 4' /%3E %3Cpath d='M4 7h16' /%3E %3Cpath d='m16 21 4-4-4-4' /%3E %3Cpath d='M20 17H4' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="git-merge"] {
    --graph-explorer-icon: 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%3Ccircle cx='18' cy='18' r='3' /%3E %3Ccircle cx='6' cy='6' r='3' /%3E %3Cpath d='M6 21V9a9 9 0 0 0 9 9' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="network"] {
    --graph-explorer-icon: 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%3Crect x='16' y='16' width='6' height='6' rx='1' /%3E %3Crect x='2' y='16' width='6' height='6' rx='1' /%3E %3Crect x='9' y='2' width='6' height='6' rx='1' /%3E %3Cpath d='M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3' /%3E %3Cpath d='M12 12V8' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="info"] {
    --graph-explorer-icon: 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%3Ccircle cx='12' cy='12' r='10' /%3E %3Cpath d='M12 16v-4' /%3E %3Cpath d='M12 8h.01' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="folder-tree"] {
    --graph-explorer-icon: 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='M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z' /%3E %3Cpath d='M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z' /%3E %3Cpath d='M3 5a2 2 0 0 0 2 2h3' /%3E %3Cpath d='M3 3v13a2 2 0 0 0 2 2h3' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="layout-dashboard"] {
    --graph-explorer-icon: 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%3Crect width='7' height='9' x='3' y='3' rx='1' /%3E %3Crect width='7' height='5' x='14' y='3' rx='1' /%3E %3Crect width='7' height='9' x='14' y='12' rx='1' /%3E %3Crect width='7' height='5' x='3' y='16' rx='1' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="table"] {
    --graph-explorer-icon: 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='M12 3v18' /%3E %3Crect width='18' height='18' x='3' y='3' rx='2' /%3E %3Cpath d='M3 9h18' /%3E %3Cpath d='M3 15h18' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="crosshair"] {
    --graph-explorer-icon: 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%3Ccircle cx='12' cy='12' r='10' /%3E %3Cline x1='22' x2='18' y1='12' y2='12' /%3E %3Cline x1='6' x2='2' y1='12' y2='12' /%3E %3Cline x1='12' x2='12' y1='6' y2='2' /%3E %3Cline x1='12' x2='12' y1='22' y2='18' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="target"] {
    --graph-explorer-icon: 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%3Ccircle cx='12' cy='12' r='10' /%3E %3Ccircle cx='12' cy='12' r='6' /%3E %3Ccircle cx='12' cy='12' r='2' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="hash"] {
    --graph-explorer-icon: 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%3Cline x1='4' x2='20' y1='9' y2='9' /%3E %3Cline x1='4' x2='20' y1='15' y2='15' /%3E %3Cline x1='10' x2='8' y1='3' y2='21' /%3E %3Cline x1='16' x2='14' y1='3' y2='21' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="tag"] {
    --graph-explorer-icon: 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='M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z' /%3E %3Ccircle cx='7.5' cy='7.5' r='.5' fill='currentColor' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="workflow"] {
    --graph-explorer-icon: 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%3Crect width='8' height='8' x='3' y='3' rx='2' /%3E %3Cpath d='M7 11v4a2 2 0 0 0 2 2h4' /%3E %3Crect width='8' height='8' x='13' y='13' rx='2' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="server"] {
    --graph-explorer-icon: 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%3Crect width='20' height='8' x='2' y='2' rx='2' ry='2' /%3E %3Crect width='20' height='8' x='2' y='14' rx='2' ry='2' /%3E %3Cline x1='6' x2='6.01' y1='6' y2='6' /%3E %3Cline x1='6' x2='6.01' y1='18' y2='18' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="globe"] {
    --graph-explorer-icon: 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%3Ccircle cx='12' cy='12' r='10' /%3E %3Cpath d='M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20' /%3E %3Cpath d='M2 12h20' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="timer"] {
    --graph-explorer-icon: 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%3Cline x1='10' x2='14' y1='2' y2='2' /%3E %3Cline x1='12' x2='15' y1='14' y2='11' /%3E %3Ccircle cx='12' cy='14' r='8' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="book-open"] {
    --graph-explorer-icon: 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='M12 7v14' /%3E %3Cpath d='M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="send"] {
    --graph-explorer-icon: 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='M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z' /%3E %3Cpath d='m21.854 2.147-10.94 10.939' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="external-link"] {
    --graph-explorer-icon: 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='M15 3h6v6' /%3E %3Cpath d='M10 14 21 3' /%3E %3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="circle"] {
    --graph-explorer-icon: 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%3Ccircle cx='12' cy='12' r='10' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="circle-check"] {
    --graph-explorer-icon: 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%3Ccircle cx='12' cy='12' r='10' /%3E %3Cpath d='m9 12 2 2 4-4' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="ban"] {
    --graph-explorer-icon: 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%3Ccircle cx='12' cy='12' r='10' /%3E %3Cpath d='m4.9 4.9 14.2 14.2' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="lock"] {
    --graph-explorer-icon: 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%3Crect width='18' height='11' x='3' y='11' rx='2' ry='2' /%3E %3Cpath d='M7 11V7a5 5 0 0 1 10 0v4' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="git-branch"] {
    --graph-explorer-icon: 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%3Cline x1='6' x2='6' y1='3' y2='15' /%3E %3Ccircle cx='18' cy='6' r='3' /%3E %3Ccircle cx='6' cy='18' r='3' /%3E %3Cpath d='M18 9a9 9 0 0 1-9 9' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="split"] {
    --graph-explorer-icon: 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='M16 3h5v5' /%3E %3Cpath d='M8 3H3v5' /%3E %3Cpath d='M12 22v-8.3a4 4 0 0 0-1.172-2.872L3 3' /%3E %3Cpath d='m15 9 6-6' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="route"] {
    --graph-explorer-icon: 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%3Ccircle cx='6' cy='19' r='3' /%3E %3Cpath d='M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15' /%3E %3Ccircle cx='18' cy='5' r='3' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="milestone"] {
    --graph-explorer-icon: 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='M12 13v8' /%3E %3Cpath d='M12 3v3' /%3E %3Cpath d='M4 6a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h13a2 2 0 0 0 1.152-.365l3.424-2.317a1 1 0 0 0 0-1.635l-3.424-2.318A2 2 0 0 0 17 6z' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="signal"] {
    --graph-explorer-icon: 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='M2 20h.01' /%3E %3Cpath d='M7 20v-4' /%3E %3Cpath d='M12 20v-8' /%3E %3Cpath d='M17 20V8' /%3E %3Cpath d='M22 4v16' /%3E%3C/svg%3E");
  }
  .graph-explorer-icon[data-icon="history"] {
    --graph-explorer-icon: 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='M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8' /%3E %3Cpath d='M3 3v5h5' /%3E %3Cpath d='M12 7v5l4 2' /%3E%3C/svg%3E");
  }
}

/* ── 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/indicator/indicator.css ── */
/* -- Indicator component ------------------------------------------ */

@layer components {
  /* .indicator wraps any element (a button, avatar, card, input, image)
     and pins one or more .indicator-item on it. Each item is CENTERED on an
     anchor point of the wrapper's edge: data-position picks the point -
     vertical top / middle / bottom + horizontal start / center / end
     (default top-end). A single word sets one axis - "start" / "center" /
     "end" horizontal, "top" / "middle" / "bottom" vertical - so "middle-center"
     is the middle of the element. start / end are logical: in RTL, start is
     the right edge. */
  .indicator {
    position: relative;
    display: inline-flex;
    width: max-content;
    max-width: 100%;
  }
  /* the wrapped element fills the wrapper: a no-op at the default
     max-content width, but a wrapper given a width passes it on - a card
     (a size container, no intrinsic width) would otherwise collapse to 0 */
  .indicator > :not(.indicator-item) {
    flex: 1 1 auto;
    min-width: 0;
  }

  .indicator-item {
    /* --_h / --_v: 0 = start / top, 0.5 = center / middle, 1 = end / bottom */
    --_h: 1;
    --_v: 0;
    position: absolute;
    z-index: 1;
    /* --_in: data-inset pulls the item toward the element's center by this
       much per axis (a corner item moves diagonally) - for an icon inside a
       padded button, whose box corner sits well away from the glyph;
       --_dir flips the horizontal pull in RTL */
    --_in: 0px;
    --_dir: 1;
    inset-block-start: calc(var(--_v) * 100%);
    left: calc(var(--_h) * 100%);
    translate: calc(-50% + (1 - 2 * var(--_h)) * var(--_in) * var(--_dir)) calc(-50% + (1 - 2 * var(--_v)) * var(--_in));
    white-space: nowrap;

    &:dir(rtl) {
      left: calc((1 - var(--_h)) * 100%);
      --_dir: -1;
    }
    &[data-inset] {
      --_in: 0.5rem;
    }
    &[data-inset="sm"] {
      --_in: 0.25rem;
    }
    &[data-inset="lg"] {
      --_in: 0.75rem;
    }

    &[data-position^="middle"] {
      --_v: 0.5;
    }
    &[data-position^="bottom"] {
      --_v: 1;
    }
    &[data-position$="start"] {
      --_h: 0;
    }
    &[data-position$="center"] {
      --_h: 0.5;
    }

    /* responsive placement (DaisyUI's sm: / md: / lg: / xl:): the same
       values in data-position-sm / -md / -lg / -xl apply from that viewport
       width up (40 / 48 / 64 / 80rem) */
    @media (min-width: 40rem) {
      &[data-position-sm^="top"] {
        --_v: 0;
      }
      &[data-position-sm^="middle"] {
        --_v: 0.5;
      }
      &[data-position-sm^="bottom"] {
        --_v: 1;
      }
      &[data-position-sm$="start"] {
        --_h: 0;
      }
      &[data-position-sm$="center"] {
        --_h: 0.5;
      }
      &[data-position-sm$="end"] {
        --_h: 1;
      }
    }
    @media (min-width: 48rem) {
      &[data-position-md^="top"] {
        --_v: 0;
      }
      &[data-position-md^="middle"] {
        --_v: 0.5;
      }
      &[data-position-md^="bottom"] {
        --_v: 1;
      }
      &[data-position-md$="start"] {
        --_h: 0;
      }
      &[data-position-md$="center"] {
        --_h: 0.5;
      }
      &[data-position-md$="end"] {
        --_h: 1;
      }
    }
    @media (min-width: 64rem) {
      &[data-position-lg^="top"] {
        --_v: 0;
      }
      &[data-position-lg^="middle"] {
        --_v: 0.5;
      }
      &[data-position-lg^="bottom"] {
        --_v: 1;
      }
      &[data-position-lg$="start"] {
        --_h: 0;
      }
      &[data-position-lg$="center"] {
        --_h: 0.5;
      }
      &[data-position-lg$="end"] {
        --_h: 1;
      }
    }
    @media (min-width: 80rem) {
      &[data-position-xl^="top"] {
        --_v: 0;
      }
      &[data-position-xl^="middle"] {
        --_v: 0.5;
      }
      &[data-position-xl^="bottom"] {
        --_v: 1;
      }
      &[data-position-xl$="start"] {
        --_h: 0;
      }
      &[data-position-xl$="center"] {
        --_h: 0.5;
      }
      &[data-position-xl$="end"] {
        --_h: 1;
      }
    }
  }

  /* -- Status dot ----------------------------------------------------
     A small colored dot for presence and state (DaisyUI's status): on its
     own inline, or as an .indicator-item. data-variant colors it,
     data-size sizes it, data-animate="ping" sends a ring pulsing out of it
     (an ::after copy scaling up and fading), "bounce" hops it, "pulse"
     fades it. The dot is currentColor, so a variant is one color line.
     Success / warning / info are literals by design: the tweakcn token set
     has no such pairs (AGENTS.md token rule, like the avatar badge). */
  .indicator-dot {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    color: var(--muted-foreground);
    background-color: currentColor;
    vertical-align: middle;

    &[data-variant="neutral"] {
      color: var(--foreground);
    }
    &[data-variant="primary"] {
      color: var(--primary);
    }
    /* the tweakcn --secondary / --accent are pale SURFACES - too faint for a
       dot: secondary / accent take the theme's vivid chart colors instead */
    &[data-variant="secondary"] {
      color: var(--chart-2);
    }
    &[data-variant="accent"] {
      color: var(--chart-4);
    }
    &[data-variant="destructive"],
    &[data-variant="error"] {
      color: var(--destructive);
    }
    &[data-variant="success"] {
      color: #16a34a;
    }
    &[data-variant="warning"] {
      color: #f59e0b;
    }
    &[data-variant="info"] {
      color: #0ea5e9;
    }

    &[data-size="xs"] {
      width: 0.25rem;
      height: 0.25rem;
    }
    &[data-size="sm"] {
      width: 0.375rem;
      height: 0.375rem;
    }
    &[data-size="md"] {
      width: 0.5rem;
      height: 0.5rem;
    }
    &[data-size="lg"] {
      width: 0.75rem;
      height: 0.75rem;
    }
    &[data-size="xl"] {
      width: 1rem;
      height: 1rem;
    }

    &[data-animate="ping"]::after {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: inherit;
      background-color: currentColor;
      animation: indicator-ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
    }
    &[data-animate="bounce"] {
      animation: indicator-bounce 1s infinite;
    }
    &[data-animate="pulse"] {
      animation: indicator-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    }
  }

  /* a dot pinned as an indicator stays absolutely positioned (the dot's own
     position: relative comes later in the cascade); a bounce must not fight
     the centering translate, so it moves the pinned dot with margin instead */
  .indicator-item.indicator-dot {
    position: absolute;

    &[data-animate="bounce"] {
      animation-name: indicator-bounce-margin;
    }
  }

  @keyframes indicator-ping {
    75%,
    100% {
      scale: 2.25;
      opacity: 0;
    }
  }
  @keyframes indicator-bounce {
    0%,
    100% {
      translate: 0 -25%;
      animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
      translate: 0 0;
      animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
  }
  @keyframes indicator-bounce-margin {
    0%,
    100% {
      margin-top: -0.25em;
      animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
      margin-top: 0;
      animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
  }
  @keyframes indicator-pulse {
    50% {
      opacity: 0.5;
    }
  }

  /* -- Accessibility ------------------------------------------ */
  @media (prefers-reduced-motion: reduce) {
    .indicator-dot[data-animate],
    .indicator-item.indicator-dot[data-animate] {
      animation: none;
    }
    .indicator-dot[data-animate]::after {
      animation: none;
      opacity: 0;
    }
  }

  /* forced colors would repaint the dot with Canvas and erase it: the
     color carries the state, so the dot keeps its own */
  @media (forced-colors: active) {
    .indicator-dot {
      forced-color-adjust: none;
    }
  }
}

/* ── 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/kbd/kbd.css ── */
/* -- Kbd ---------------------------------------------------------- */
/* Keyboard keys. Built on the native <kbd> element; a combination is a  */
/* <kbd> holding one <kbd> per key, which is what the HTML spec          */
/* prescribes — so the markup already says "these keys together".        */

@layer components {
  .kbd {
    --kbd-size: 1.375rem;

    display: inline-grid;
    place-items: center;
    min-width: var(--kbd-size);
    height: var(--kbd-size);
    padding-inline: 0.375rem;
    border: 1px solid var(--border);
    /* the bottom edge is thicker, which is what reads as a physical key */
    border-bottom-width: 2px;
    border-radius: var(--radius-sm);
    background: var(--muted);
    color: var(--muted-foreground);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    vertical-align: middle;
    transition:
      translate 0.08s ease-out,
      border-bottom-width 0.08s ease-out,
      background-color 0.08s ease-out;

    &[data-size="sm"] {
      --kbd-size: 1.125rem;
      padding-inline: 0.25rem;
      font-size: 0.6875rem;
    }

    &[data-size="lg"] {
      --kbd-size: 1.75rem;
      padding-inline: 0.5rem;
      font-size: 0.875rem;
    }

    /* pressed: the key goes down - the heavy bottom edge collapses and the
       face drops by the same pixel, so the key's outer box never moves.
       A page sets data-pressed while its shortcut runs (the global-keys
       handler that performs it), so the key shows it was heard. */
    &[data-pressed] {
      translate: 0 1px;
      border-bottom-width: 1px;
      background: color-mix(in oklch, var(--muted) 80%, var(--foreground));
      color: var(--foreground);
    }
  }

  /* A key combination: an outer <kbd> holding one <kbd> per key. The outer
     element is not a key itself, so it keeps none of the key styling. */
  .kbd-group {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    vertical-align: middle;
    font-family: inherit;
    background: none;
    border: 0;
    padding: 0;
  }

  /* Optional "+" between keys. Absolutely placed in the gap so it never sits
     inside a key's box. */
  .kbd-group[data-separator] {
    gap: 0.875rem;

    & > .kbd + .kbd {
      position: relative;

      &::before {
        content: "+";
        position: absolute;
        inset-inline-start: -0.625rem;
        color: var(--muted-foreground);
        font-size: 0.6875rem;
        line-height: 1;
        pointer-events: none;
      }
    }
  }

  /* Inside a control - or on a tooltip's inverted surface - the key should
     not out-shout its label: it drops its own surface and borrows the
     text colour around it. */
  .btn .kbd,
  .command-item .kbd,
  .dropdown-item .kbd,
  .menubar-trigger .kbd,
  .tooltip .kbd {
    background: transparent;
    border-color: color-mix(in oklch, currentColor 25%, transparent);
    color: inherit;
    opacity: 0.75;

    &[data-pressed] {
      background: color-mix(in oklch, currentColor 18%, transparent);
      opacity: 1;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  @layer components {
    .kbd,
    .kbd *,
    .kbd::before,
    .kbd::after,
    .kbd *::before,
    .kbd *::after,
    .kbd-group,
    .kbd-group::before,
    .kbd-group::after {
      transition: none;
      animation: none;
    }
  }
}

@media (prefers-contrast: more) {
  @layer components {
    .kbd {
      border-color: var(--foreground);
      color: var(--foreground);
    }
  }
}

@media (forced-colors: active) {
  @layer components {
    .kbd {
      border-color: ButtonText;
      color: ButtonText;
      background: ButtonFace;
    }

    .kbd[data-pressed] {
      border-color: Highlight;
      color: HighlightText;
      background: Highlight;
    }

    .kbd-group[data-separator] > .kbd + .kbd::before {
      color: ButtonText;
    }
  }
}

/* ── 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/panel/panel.css ── */
/* -- Panel component ----------------------------------------------
   A title bar inside a card - icon, title and tools (minimize / maximize are
   Swaps) above a scrolling body. Minimized it is the title bar only; as the
   pane of a border-layout region it takes the region with it: north / south
   shrink to the bar, west / east turn the bar into a vertical tab (after the
   ExtJS 4 border layout). Maximized it fills its border layout, a
   [data-panel-host] or the viewport. Builds on .card (surface, border,
   radius) and .swap (the tool faces). */

@layer components {
  .panel {
    /* the card's padding scale, a notch tighter for tool-like bodies */
    --_base: 1rem;
    --_bar: 2.5rem;
    --_bar-bg: color-mix(in oklch, var(--muted) 60%, var(--card));

    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;

    /* -- Title bar -------------------------------------------------- */
    & > .panel-header {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      flex: none;
      min-block-size: var(--_bar);
      box-sizing: border-box;
      padding-block: 0.25rem;
      padding-inline: 0.75rem 0.375rem;
      border-block-end: 1px solid var(--border);
      background: var(--_bar-bg);
      color: var(--foreground);
      user-select: none;
    }

    & .panel-icon {
      flex: none;
      width: 1rem;
      height: 1rem;
      color: var(--muted-foreground);
    }

    & .panel-title {
      flex: 1;
      min-inline-size: 0;
      margin: 0;
      overflow: hidden;
      font: inherit;
      font-size: 0.875rem;
      font-weight: 600;
      line-height: 1.25;
      white-space: nowrap;
      text-overflow: ellipsis;
    }

    /* tools: the swaps (and any .btn) at the end of the bar */
    & .panel-tools {
      display: flex;
      align-items: center;
      gap: 0.125rem;
      flex: none;
      margin-inline-start: auto;
    }

    /* small tool buttons - the swap at icon-button size */
    & > .panel-header .panel-tools .swap {
      min-width: 1.75rem;
      min-height: 1.75rem;
      color: var(--muted-foreground);

      & svg:not([class*="size-"]) {
        width: 1rem;
        height: 1rem;
      }
      &:hover:not(:has(> input:disabled)) {
        color: var(--accent-foreground);
      }
    }

    /* -- Body ----------------------------------------------------------- */
    & > .panel-body {
      flex: 1;
      min-block-size: 0;
      overflow: auto;
      padding: var(--_pad, 1rem);
    }
    /* a body that brings its own layout (a list, a table, a code view) */
    & > .panel-body[data-flush] {
      padding: 0;
    }

    & > .panel-footer {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      flex: none;
      padding: 0.5rem 0.75rem;
      border-block-start: 1px solid var(--border);
      background: var(--_bar-bg);
      font-size: 0.8125rem;
      color: var(--muted-foreground);
    }

    /* -- Density: data-density on the .panel ---------------------------------
       The card's scale moves the body's padding (compact 2/3, spacious 4/3);
       the title bar follows: compact 2rem (the 1.75rem tools fill it),
       comfortable the unsized 2.5rem, spacious 3rem. */
    &:where([data-density="compact"]) {
      --_bar: 2rem;

      & > .panel-header {
        padding-block: 0.125rem;
      }
    }
    &:where([data-density="spacious"]) {
      --_bar: 3rem;
    }

    /* -- Minimized: the title bar only ------------------------------------- */
    &[data-minimized] {
      & > :not(.panel-header) {
        display: none;
      }
      & > .panel-header {
        border-block-end-color: transparent;
      }
    }
    /* the authored height (inline, or the resizer's px) gives way to the bar */
    &[data-minimized]:not([data-region="west"], [data-region="east"]) {
      height: auto !important;
      min-height: 0;
    }

    /* west / east: the bar turns into a vertical tab, the width to the bar's */
    &[data-minimized]:is([data-region="west"], [data-region="east"]) {
      width: auto !important;
      min-width: 0;
      /* the card's inline-size containment would size the tab to zero */
      container-type: normal;

      & > .panel-header {
        flex: 1;
        writing-mode: vertical-rl;
        padding-block: 0.25rem;
        padding-inline: 0.375rem 0.75rem;
        border-block-end: 0;
      }
      /* the restore tool leads, like ExtJS's collapsed placeholder */
      & .panel-tools {
        order: -1;
        margin-inline: 0 0.25rem;
      }
      & .panel-maximize {
        display: none;
      }
      /* west: the tab reads from the bottom up, like a book's spine on the left (the header turned half round), and
         starts at the top (the maintainer 2026-11-22): the restore chevron first (it points east, where the panel
         opens), the title under it, its icon below the words, then the other tools - read upward, the bar's order */
      &[data-region="west"] > .panel-header {
        rotate: 180deg;
        justify-content: flex-end;
        & .panel-tools {
          display: contents;
        }
        & .panel-icon,
        & .panel-title {
          order: 1;
          flex: none;
        }
        & .panel-minimize {
          order: 2;
          rotate: 90deg;
        }
      }
    }

    /* the minimize chevron points where the panel folds to */
    &[data-region="south"] .panel-minimize {
      rotate: 180deg;
    }
    &[data-region="west"] .panel-minimize {
      rotate: -90deg;
    }
    &[data-region="east"] .panel-minimize {
      rotate: 90deg;
    }

    /* -- Maximized: fills the viewport ... -------------------------------- */
    &[data-maximized] {
      position: fixed;
      inset: 0;
      z-index: 50;
      width: auto !important;
      height: auto !important;
      max-width: none;
      max-height: none;
      margin: 0;
      border-radius: 0;
      box-shadow: var(--shadow-xl);
    }
  }

  /* ... or its border layout / [data-panel-host] */
  :is(.border-layout, [data-panel-host])[data-panel-maximized] {
    position: relative;

    & .panel[data-maximized] {
      position: absolute;
      z-index: 20;
      border-radius: inherit;
    }
  }
  /* the regions step back so the layout is the containing block; their
     dividers rest under the maximized panel */
  .border-layout[data-panel-maximized] > .resizer {
    position: static;

    & > .resizer-handle {
      visibility: hidden;
    }
  }
  /* the region holding it rises too: a region may be a stacking context of
     its own (a <main> with a view-transition-name) that would trap the
     panel's z-index - grid items take z-index without being positioned, so
     the layout stays the containing block */
  .border-layout[data-panel-maximized] > :has(.panel[data-maximized]) {
    z-index: 20;
  }
  /* a panel that is its region (no resizer around it) leaves its grid area:
     an absolutely positioned grid item takes its grid area as its containing
     block - placed auto, it takes the layout's padding box */
  .border-layout[data-panel-maximized] > .panel[data-maximized] {
    grid-area: auto;
  }

  /* -- In a border layout: the region frames the panel ---------------------- */
  :where(.border-layout > .resizer, .border-layout > .border-layout-center, .border-layout) > .panel {
    border: 0;
    border-radius: 0;
  }
  /* the region shrinks with the panel: its pane is the panel */
  .border-layout > .resizer[data-panel-minimized] > .panel {
    overflow: hidden;
  }
  /* closed: the panel and its region leave the layout */
  .panel[hidden],
  .border-layout > [data-panel-closed] {
    display: none;
  }

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

  @media (prefers-contrast: more) {
    .panel > .panel-header {
      border-block-end-color: var(--foreground);
    }
    .panel .panel-title {
      font-weight: 700;
    }
  }

  @media (forced-colors: active) {
    .panel {
      border: 1px solid CanvasText;
    }
    .panel > .panel-header {
      border-block-end: 1px solid CanvasText;
      background: Canvas;
      color: CanvasText;
    }
    .panel .panel-icon {
      color: CanvasText;
    }
  }
}

/* ── components/progress/progress.css ── */
/* -- Progress component --------------------------------------------- */

@layer components {
  /* The fill resolves once, here: data-tone (--_c) > the public
     --progress-color > --primary. Everything below paints from --_fill. */
  .progress {
    --_fill: var(--_c, var(--progress-color, var(--primary)));
    --_stripes: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    height: 0.5rem;
    border: none;
    border-radius: 9999px;
    overflow: hidden;
    background-color: var(--secondary);
    accent-color: var(--_fill);
    vertical-align: middle;

    /* -- Sizes: bar thickness scale; default (no attribute) == md. */
    &[data-size="xs"] {
      height: 0.25rem;
    }
    &[data-size="sm"] {
      height: 0.375rem;
    }
    &[data-size="md"] {
      height: 0.5rem;
    }
    &[data-size="lg"] {
      height: 0.75rem;
    }
    &[data-size="xl"] {
      height: 1rem;
    }

    /* -- Tones: success / warning / info / destructive; any other color
       via style="--progress-color: …". auto follows the value: the
       runtime (progress.js) sets data-level low (< 34%) / mid / high. */
    &[data-tone="success"] {
      --_c: oklch(0.6 0.15 150);
    }
    &[data-tone="warning"] {
      --_c: oklch(0.75 0.16 70);
    }
    &[data-tone="info"] {
      --_c: oklch(0.6 0.16 250);
    }
    &[data-tone="destructive"] {
      --_c: var(--destructive);
    }
    &[data-tone="auto"] {
      &[data-level="low"] {
        --_c: var(--destructive);
      }
      &[data-level="mid"] {
        --_c: oklch(0.75 0.16 70);
      }
      &[data-level="high"] {
        --_c: oklch(0.6 0.15 150);
      }
    }

    /* -- Stripes: diagonal bands over the fill; "animated" moves them */
    &[data-striped] {
      --_stripes: repeating-linear-gradient(
        -45deg,
        color-mix(in oklch, white 22%, transparent) 0 0.375rem,
        transparent 0.375rem 0.75rem
      );
    }
  }

  /* WebKit (Chrome, Safari, Edge) */
  .progress::-webkit-progress-bar {
    background-color: var(--secondary);
    border-radius: 9999px;
  }
  .progress::-webkit-progress-value {
    background: var(--_stripes), var(--_fill);
    background-size:
      1.06rem 1.06rem,
      auto;
    border-radius: 9999px;
  }
  .progress[data-striped="animated"]::-webkit-progress-value {
    animation: progress-stripes 700ms linear infinite;
  }

  /* Firefox */
  .progress::-moz-progress-bar {
    background: var(--_stripes), var(--_fill);
    background-size:
      1.06rem 1.06rem,
      auto;
    border-radius: 9999px;
  }
  .progress[data-striped="animated"]::-moz-progress-bar {
    animation: progress-stripes 700ms linear infinite;
  }

  @keyframes progress-stripes {
    to {
      background-position:
        1.06rem 0,
        0 0;
    }
  }

  /* Indeterminate state */
  .progress:indeterminate {
    background: linear-gradient(90deg, var(--secondary) 0%, var(--_fill) 50%, var(--secondary) 100%);
    background-size: 200% 100%;
    animation: progress-indeterminate 1.5s linear infinite;
  }
  .progress:indeterminate::-webkit-progress-bar {
    background-color: transparent;
  }
  .progress:indeterminate::-moz-progress-bar {
    background-color: transparent;
  }

  @keyframes progress-indeterminate {
    0% {
      background-position: 200% 0;
    }
    100% {
      background-position: -200% 0;
    }
  }

  /* -- Field: a label + a live value readout with the bar ---------------
     <div class="progress-field">
       <div class="progress-header"><span class="progress-label">…</span>
         <output class="progress-value" for="bar-id"></output></div>
       <progress class="progress" id="bar-id" …></progress>
     </div>
     progress.js writes the value into every output (data-format: percent
     | fraction | value, or a data-template). */
  .progress-field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    width: 100%;
  }
  .progress-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
  }
  .progress-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
  }
  .progress-value {
    font-size: 0.875rem;
    font-variant-numeric: tabular-nums;
    color: var(--muted-foreground);
    white-space: nowrap;
  }
  .progress-hint {
    font-size: 0.75rem;
    color: var(--muted-foreground);
  }

  /* -- Label inside the bar: data-label="inside" on the field (bar + output
     only). The output spans the bar; its text reads in the foreground over
     the track and - through a copy clipped to the filled part (::after,
     data-text + --progress-pct set by progress.js) - in the fill's own
     foreground over the fill. */
  .progress-field[data-label="inside"] {
    display: grid;

    & > .progress {
      grid-area: 1 / 1;
      height: 1.25rem;
      &[data-size="lg"] {
        height: 1.5rem;
      }
      &[data-size="xl"] {
        height: 1.75rem;
      }
    }
    & > .progress-value {
      grid-area: 1 / 1;
      position: relative;
      display: grid;
      place-items: center;
      font-size: 0.75rem;
      font-weight: 600;
      color: var(--foreground);
      pointer-events: none;

      &::after {
        content: attr(data-text);
        position: absolute;
        inset: 0;
        display: grid;
        place-items: center;
        color: var(--primary-foreground);
        clip-path: inset(0 calc(100% - var(--progress-pct, 0%)) 0 0);
      }
    }
  }
  /* the tones are light fills: dark text reads better on them */
  .progress-field[data-label="inside"]:has(> .progress:is([data-tone="warning"], [data-tone="auto"][data-level="mid"]))
    > .progress-value::after {
    color: oklch(0.25 0.05 70);
  }
  .progress-field[data-label="inside"]:has(
      > .progress:is(
        [data-tone="success"],
        [data-tone="info"],
        [data-tone="destructive"],
        [data-tone="auto"]:not([data-level="mid"])
      )
    )
    > .progress-value::after {
    color: white;
  }
  .progress-field[data-label="inside"]:dir(rtl) > .progress-value::after {
    clip-path: inset(0 0 0 calc(100% - var(--progress-pct, 0%)));
  }
}

/* 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 firing. (progress.js also skips
   its value tween then - the bar jumps straight to the target.) */
@media (prefers-reduced-motion: reduce) {
  @layer components {
    .progress,
    .progress::-webkit-progress-value,
    .progress::-moz-progress-bar {
      transition-duration: 0.01ms !important;
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
    }
  }
}

@media (prefers-contrast: more) {
  @layer components {
    .progress {
      outline: 1px solid var(--foreground);
      outline-offset: 1px;
    }
    .progress-value {
      color: var(--foreground);
    }
  }
}

@media (forced-colors: active) {
  @layer components {
    .progress {
      forced-color-adjust: none;
      background: Canvas;
      outline: 1px solid CanvasText;
    }
    .progress::-webkit-progress-bar {
      background: Canvas;
    }
    .progress::-webkit-progress-value {
      background: Highlight;
    }
    .progress::-moz-progress-bar {
      background: Highlight;
    }
    .progress-field[data-label="inside"] > .progress-value {
      color: CanvasText;
    }
    .progress-field[data-label="inside"] > .progress-value::after {
      color: HighlightText;
    }
  }
}

/* ── components/resizer/resizer.css ── */
@layer components {
  /* -- Resizer --------------------------------------------------
     Wraps ONE container element and adds draggable handles on any subset of
     its 8 positions (sides + corners). The wrapper is the positioning context;
     handles overhang the border box by design, so keep overflow visible.
     Sizing behavior (px vs w-/h- classes) is driven by the runtime - this
     sheet owns only the handle geometry, cursors and feedback states. */
  .resizer {
    position: relative;
    /* block box hugging the wrapped element (its intrinsic width) so handles
       sit on the BOX's edges, not the container's; an explicit authored/
       runtime width overrides this (e.g. the CodeExample toolbar writes px) */
    width: fit-content;
  }

  /* The resizer owns resizing: a native CSS `resize` on the wrapped element
     (e.g. a resizable canvas) would double the affordances - the runtime
     neutralizes it inline; this is the authored-CSS fallback. */
  .resizer[data-resize-mode] {
    resize: none;
  }

  .resizer-handle {
    position: absolute;
    z-index: 5;
    display: block;
    box-sizing: border-box;
    width: 0.375rem;
    height: 0.375rem;
    background: var(--background);
    border: 1px solid var(--primary);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-2xs);
    touch-action: none; /* the pointer-drag is ours - no scroll/pinch steal */
    opacity: 0.85;
    transition:
      opacity 120ms ease,
      background-color 120ms ease,
      transform 120ms ease;

    /* generous hit area around the small visible chip */
    &::after {
      content: "";
      position: absolute;
      inset: -0.5rem;
    }

    &:hover {
      opacity: 1;
      background: var(--primary);
    }

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

  /* drag in progress - the active handle (and the box) read as engaged */
  .resizer[data-resizing] > .resizer-handle {
    opacity: 1;
    background: var(--primary);
  }
  .resizer[data-resizing] {
    outline: 1px dashed var(--ring);
    outline-offset: 2px;
  }
  /* the box must track the pointer 1:1 - a size TRANSITION on the wrapped
     element (e.g. the sidebar's `transition: width 200ms`) would ease toward
     the drag instead of following it, which reads as the handle lagging
     behind the mouse. Only during the drag; authored transitions resume after
     (trigger-toggle collapse animation stays intact) */
  .resizer[data-resizing] > * {
    transition-duration: 0s;
  }

  /* -- side geometry: edge centers + corners, with the right cursor -------- */
  .resizer-handle[data-handle="n"] {
    top: -0.1875rem;
    left: 50%;
    translate: -50% -50%;
    cursor: ns-resize;
  }
  .resizer-handle[data-handle="s"] {
    bottom: -0.1875rem;
    left: 50%;
    translate: -50% 50%;
    cursor: ns-resize;
  }
  .resizer-handle[data-handle="e"] {
    right: -0.1875rem;
    top: 50%;
    translate: 50% -50%;
    cursor: ew-resize;
  }
  .resizer-handle[data-handle="w"] {
    left: -0.1875rem;
    top: 50%;
    translate: -50% -50%;
    cursor: ew-resize;
  }
  .resizer-handle[data-handle="ne"] {
    top: -0.1875rem;
    right: -0.1875rem;
    translate: 50% -50%;
    cursor: nesw-resize;
  }
  .resizer-handle[data-handle="nw"] {
    top: -0.1875rem;
    left: -0.1875rem;
    translate: -50% -50%;
    cursor: nwse-resize;
  }
  .resizer-handle[data-handle="se"] {
    bottom: -0.1875rem;
    right: -0.1875rem;
    translate: 50% 50%;
    cursor: nwse-resize;
  }
  .resizer-handle[data-handle="sw"] {
    bottom: -0.1875rem;
    left: -0.1875rem;
    translate: -50% 50%;
    cursor: nesw-resize;
  }

  /* -- Divider: a split pane's edge (data-variant="divider") ----------------
     The edge handles become full-length strips along the box - invisible until
     hovered, focused or dragged, then a thin line - and the box gets no dashed
     outline while it resizes. Corners keep their chip. */
  .resizer[data-variant="divider"] {
    & > .resizer-handle:is([data-handle="e"], [data-handle="w"], [data-handle="n"], [data-handle="s"]) {
      width: 0.5rem;
      height: 0.5rem;
      border: 0;
      border-radius: 0;
      background: none;
      box-shadow: none;
      opacity: 1;
      &::before {
        content: "";
        position: absolute;
        inset: 0;
        margin: auto;
        background: var(--primary);
        opacity: 0;
        transition: opacity 120ms ease;
      }
      &::after {
        inset: 0;
      }
      &:hover::before,
      &:focus-visible::before {
        opacity: 0.6;
      }
      &:focus-visible {
        outline: none;
      }
    }
    & > .resizer-handle:is([data-handle="e"], [data-handle="w"]) {
      top: 0;
      bottom: 0;
      height: auto;
      translate: 0 0;
      cursor: col-resize;
      &::before {
        width: 2px;
      }
    }
    & > .resizer-handle[data-handle="e"] {
      right: -0.25rem;
    }
    & > .resizer-handle[data-handle="w"] {
      left: -0.25rem;
    }
    & > .resizer-handle:is([data-handle="n"], [data-handle="s"]) {
      left: 0;
      right: 0;
      width: auto;
      translate: 0 0;
      cursor: row-resize;
      &::before {
        height: 2px;
      }
    }
    & > .resizer-handle[data-handle="n"] {
      top: -0.25rem;
    }
    & > .resizer-handle[data-handle="s"] {
      bottom: -0.25rem;
    }
    &[data-resizing] {
      outline: none;
    }
    &[data-resizing] > .resizer-handle {
      background: none;
    }
    &[data-resizing] > .resizer-handle::before {
      opacity: 1;
    }
  }

  /* -- Accessibility media features (REQUIRED) ------------------ */
  @media (prefers-reduced-motion: reduce) {
    .resizer-handle,
    .resizer[data-resizing] > .resizer-handle,
    .resizer[data-variant="divider"] > .resizer-handle::before {
      transition: none;
    }
  }

  @media (prefers-contrast: more) {
    /* a divider always shows its line */
    .resizer[data-variant="divider"] > .resizer-handle::before {
      opacity: 0.5;
    }
    .resizer-handle {
      width: 0.625rem;
      height: 0.625rem;
      opacity: 1;
      border-width: 2px;
    }
  }

  @media (forced-colors: active) {
    .resizer-handle {
      background: Canvas;
      border-color: CanvasText;
      forced-color-adjust: none;
    }
    .resizer[data-resizing] > .resizer-handle {
      background: Highlight;
      border-color: Highlight;
    }
    .resizer[data-variant="divider"] > .resizer-handle::before {
      background: Highlight;
    }
  }
}

/* ── components/separator/separator.css ── */
/* -- Separator component ---------------------------------------- */

@layer components {
  /* One element, three looks:
     - empty: a plain line (1px, --border) - horizontal, or vertical with
       data-orientation="vertical" (inside a flex row)
     - with text inside: the text sits ON the line - two pseudo-element lines
       left and right of it (above and below when vertical)
     Knobs: data-variant (line color), data-size (thickness), data-gap (space
     between text and lines), data-align="start|end" (text position),
     data-orientation-md / -lg="vertical" (switch to a vertical line from
     48 / 64rem). --_line / --_thick / --_gap are private. */
  .separator {
    --_line: var(--border);
    --_thick: 1px;
    --_gap: 0.75rem;
    border: none;
    margin: 0;
    flex-shrink: 0;
    background: var(--_line);

    /* Horizontal (default) */
    height: var(--_thick);
    width: 100%;

    /* Vertical */
    &[data-orientation="vertical"] {
      height: auto;
      width: var(--_thick);
      align-self: stretch;
    }

    /* Decorative - hidden from assistive technology */
    &[aria-hidden="true"],
    &[role="none"] {
      /* No visual change - purely semantic */
    }

    /* -- Text on the line ------------------------------------ */
    &:not(:empty) {
      display: flex;
      align-items: center;
      gap: var(--_gap);
      height: auto;
      background: none;
      font-size: 0.75rem;
      font-weight: 500;
      line-height: 1.25rem;
      letter-spacing: 0.02em;
      color: var(--muted-foreground);
      white-space: nowrap;

      &::before,
      &::after {
        content: "";
        flex: 1 1 0;
        height: var(--_thick);
        background: var(--_line);
      }

      /* text position along the line */
      &[data-align="start"]::before {
        display: none;
      }
      &[data-align="end"]::after {
        display: none;
      }

      /* a bare glyph - an asterism, a dinkus, a fleuron - without the lines.
         VERIFIED: (separator.e2e "data-line=none") no pseudo lines, centred */
      &[data-line="none"] {
        justify-content: center;

        &::before,
        &::after {
          display: none;
        }
      }

      &[data-orientation="vertical"] {
        flex-direction: column;
        width: auto;
        align-self: stretch;

        &::before,
        &::after {
          width: var(--_thick);
          height: auto;
          min-height: 0.5rem;
        }
      }
    }

    /* -- Colors (the line; the text stays muted) -------------- */
    &[data-variant="neutral"] {
      --_line: var(--foreground);
    }
    &[data-variant="primary"] {
      --_line: var(--primary);
    }
    /* the tweakcn --secondary / --accent are pale surfaces, too faint for a
       line: the theme's vivid chart colors instead (like the status dot) */
    &[data-variant="secondary"] {
      --_line: var(--chart-2);
    }
    &[data-variant="accent"] {
      --_line: var(--chart-4);
    }
    &[data-variant="destructive"],
    &[data-variant="error"] {
      --_line: var(--destructive);
    }
    /* success / warning / info: literals - the token set has no such pairs */
    &[data-variant="success"] {
      --_line: #16a34a;
    }
    &[data-variant="warning"] {
      --_line: #f59e0b;
    }
    &[data-variant="info"] {
      --_line: #0ea5e9;
    }

    /* -- Thickness -------------------------------------------- */
    &[data-size="sm"] {
      --_thick: 1px;
    }
    &[data-size="md"] {
      --_thick: 2px;
    }
    &[data-size="lg"] {
      --_thick: 4px;
    }
    &[data-size="xl"] {
      --_thick: 8px;
    }

    /* -- Gap between the text and the lines ------------------- */
    &[data-gap="none"] {
      --_gap: 0;
    }
    &[data-gap="sm"] {
      --_gap: 0.375rem;
    }
    &[data-gap="md"] {
      --_gap: 0.75rem;
    }
    &[data-gap="lg"] {
      --_gap: 1.5rem;
    }
    &[data-gap="xl"] {
      --_gap: 2.5rem;
    }

    /* -- Responsive: a vertical line from a breakpoint up (DaisyUI's
       lg:divider-horizontal). The PARENT must turn into a row at the
       same width - the separator only follows it. */
    @media (min-width: 48rem) {
      &[data-orientation-md="vertical"] {
        height: auto;
        width: var(--_thick);
        align-self: stretch;

        &:not(:empty) {
          flex-direction: column;
          width: auto;

          &::before,
          &::after {
            width: var(--_thick);
            height: auto;
            min-height: 0.5rem;
          }
        }
      }
    }
    @media (min-width: 64rem) {
      &[data-orientation-lg="vertical"] {
        height: auto;
        width: var(--_thick);
        align-self: stretch;

        &:not(:empty) {
          flex-direction: column;
          width: auto;

          &::before,
          &::after {
            width: var(--_thick);
            height: auto;
            min-height: 0.5rem;
          }
        }
      }
    }
  }

  /* -- Labeled separator (the older wrapper form) --------------
     Still supported; text inside .separator itself is the simpler form. */
  .separator-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;

    & .separator {
      flex: 1;
    }

    & span {
      font-size: 0.75rem;
      font-weight: 500;
      color: var(--muted-foreground);
      text-transform: uppercase;
      letter-spacing: 0.05em;
      white-space: nowrap;
      flex-shrink: 0;
    }
  }

  /* -- Accessibility ----------------------------------------- */
  @media (forced-colors: active) {
    /* system colors would erase the line (a background) - keep it */
    .separator {
      forced-color-adjust: none;
      --_line: CanvasText;
      color: CanvasText;
    }
  }

  @media (prefers-contrast: more) {
    .separator:not([data-variant]) {
      --_line: var(--foreground);
    }
    .separator:not([data-size]) {
      --_thick: 2px;
    }
  }
}

/* ── components/statistic/statistic.css ── */
@layer components {
  .statistic {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
  }

  .statistic-title {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--muted-foreground);
    letter-spacing: 0.01em;
  }

  .statistic-value {
    margin: 0;
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
    color: var(--foreground);
  }

  .statistic-description {
    margin: 0;
    font-size: 0.75rem;
    color: var(--muted-foreground);
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }

  .statistic-trend {
    display: inline-flex;
    align-items: center;
    gap: 0.125rem;
    font-weight: 500;

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

    &[data-trend="up"] {
      color: #16a34a;
    }

    &[data-trend="down"] {
      color: #dc2626;
    }
  }
}

/* ── 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/table/table.css ── */
@layer components {
  .table-container {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    container-type: inline-size;
  }

  .table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    caption-side: bottom;
  }

  .table-caption {
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
    color: var(--muted-foreground);
    text-align: center;
  }

  .table-head {
    padding: 0.75rem 1rem;
    /* explicit: a th's UA default centers unless the table sets a non-initial alignment */
    text-align: start;
    font-weight: 500;
    color: var(--muted-foreground);
    background-color: var(--muted);
    white-space: nowrap;
    border-bottom: 1px solid var(--border);

    &:first-child {
      border-top-left-radius: var(--radius-lg);
    }

    &:last-child {
      border-top-right-radius: var(--radius-lg);
    }
  }

  .table-row {
    border-bottom: 1px solid var(--border);
    transition: background-color 150ms ease;

    &:last-child {
      border-bottom: none;
    }

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

  .table-cell {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    color: var(--foreground);

    /* a row header (<th scope="row">) reads like a cell: start-aligned,
       not the UA's centered th */
    &:is(th) {
      text-align: start;
      font-weight: 500;
    }
  }

  tfoot .table-row {
    background-color: var(--muted);
    border-top: 1px solid var(--border);
    font-weight: 500;
  }

  tfoot .table-cell:first-child {
    border-bottom-left-radius: var(--radius-lg);
  }

  tfoot .table-cell:last-child {
    border-bottom-right-radius: var(--radius-lg);
  }

  /* -- Density ----------------------------------------------------
     data-density on the .table root scales cell/head/caption padding.
     Scale matches sizing.css (0.75 / 1 / 1.25): comfortable == the unsized
     default (0.75rem 1rem), compact 0.375rem 0.625rem, spacious 1rem 1.25rem.
     :where() gives these (0,2,0) - an explicit density always beats the
     automatic narrow-container compaction below. */
  .table:where([data-density="compact"]) {
    & .table-head,
    & .table-cell {
      padding: 0.375rem 0.625rem;
    }
    & .table-caption {
      padding: 0.5rem 0.625rem;
    }
  }
  .table:where([data-density="comfortable"]) {
    & .table-head,
    & .table-cell {
      padding: 0.75rem 1rem;
    }
    & .table-caption {
      padding: 0.75rem 1rem;
    }
  }
  .table:where([data-density="spacious"]) {
    & .table-head,
    & .table-cell {
      padding: 1rem 1.25rem;
    }
    & .table-caption {
      padding: 1rem 1.25rem;
    }
  }

  /* -- Alignment: data-align on a th / td (start / center / end);
     data-numeric: end-aligned tabular figures (amounts, counts) ---------- */
  :is(.table-head, .table-cell) {
    &[data-align="start"] {
      text-align: start;
    }
    &[data-align="center"] {
      text-align: center;
    }
    &[data-align="end"] {
      text-align: end;
    }
    &[data-numeric] {
      text-align: end;
      font-variant-numeric: tabular-nums;
    }
    &[data-valign="top"] {
      vertical-align: top;
    }
    &[data-nowrap] {
      white-space: nowrap;
    }
  }
  .table {
    text-align: start;
  }

  /* -- Sorting: a .table-sort button in the header; aria-sort on the th
     (ascending / descending) draws the arrow, table.js sorts the rows ---- */
  .table-sort {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin: -0.25rem -0.5rem;
    padding: 0.25rem 0.5rem;
    border: 0;
    border-radius: var(--radius-sm);
    background: none;
    color: inherit;
    font: inherit;
    cursor: pointer;

    &:hover {
      color: var(--foreground);
      background-color: color-mix(in oklch, var(--foreground) 6%, transparent);
    }
    &:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: 1px;
    }
    /* the arrow: both halves muted while unsorted, one strong when sorted */
    &::after {
      content: "";
      width: 0.5rem;
      height: 0.75rem;
      flex-shrink: 0;
      background:
        conic-gradient(from 150deg at 50% 0, currentColor 60deg, transparent 0) top / 100% 40% no-repeat,
        conic-gradient(from -30deg at 50% 100%, currentColor 60deg, transparent 0) bottom / 100% 40% no-repeat;
      opacity: 0.35;
    }
    [data-align="end"] > &,
    [data-numeric] > & {
      flex-direction: row-reverse;
    }
  }
  .table-head[aria-sort="ascending"] .table-sort::after {
    opacity: 1;
    background: conic-gradient(from 150deg at 50% 0, currentColor 60deg, transparent 0) center / 100% 50% no-repeat;
  }
  .table-head[aria-sort="descending"] .table-sort::after {
    opacity: 1;
    background: conic-gradient(from -30deg at 50% 100%, currentColor 60deg, transparent 0) center / 100% 50% no-repeat;
  }
  .table-head[aria-sort]:not([aria-sort="none"]) {
    color: var(--foreground);
  }

  /* -- Selection: a leading .table-select cell with a checkbox (the header
     one selects all); a selected row is tinted -------------------------- */
  .table-select {
    width: 1%;
    padding-inline-end: 0 !important;

    & .checkbox {
      vertical-align: middle;
    }
  }
  .table-row[aria-selected="true"] {
    background-color: color-mix(in oklch, var(--primary) 7%, transparent);

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

  /* -- Reordering: a .table-handle cell with a grip button; the row being
     dragged fades, a line shows where it lands -------------------------- */
  .table-handle {
    width: 1%;
    padding-inline-end: 0 !important;
    color: var(--muted-foreground);

    & button {
      display: inline-grid;
      place-items: center;
      width: 1.5rem;
      height: 1.5rem;
      padding: 0;
      border: 0;
      border-radius: var(--radius-sm);
      background: none;
      color: inherit;
      cursor: grab;

      &:hover {
        color: var(--foreground);
        background-color: var(--accent);
      }
      &:focus-visible {
        outline: 2px solid var(--ring);
        outline-offset: 1px;
      }
      & svg {
        width: 1rem;
        height: 1rem;
      }
    }
  }
  .table-row[data-dragging] {
    opacity: 0.4;
  }
  .table-row[data-drop="before"] {
    box-shadow: inset 0 2px 0 var(--primary);
  }
  .table-row[data-drop="after"] {
    box-shadow: inset 0 -2px 0 var(--primary);
  }

  /* -- Locked columns + sticky header --------------------------------------
     data-lock-start="1|2|3" on the .table keeps the first columns in view
     while the .table-container scrolls sideways (table.js measures their
     offsets into --table-lock-1 / -2); data-lock-end="1" the last column.
     data-sticky-header keeps the header row while the container scrolls
     vertically (give the container a max-height). */
  .table[data-lock-start] :is(.table-head, .table-cell),
  .table[data-lock-end] :is(.table-head, .table-cell) {
    background-clip: padding-box;
  }
  .table[data-lock-start] :is(tr > :nth-child(1)),
  .table:is([data-lock-start="2"], [data-lock-start="3"]) :is(tr > :nth-child(2)),
  .table[data-lock-start="3"] :is(tr > :nth-child(3)),
  .table[data-lock-end] :is(tr > :last-child) {
    position: sticky;
    z-index: 1;
    background-color: var(--_lock-bg, var(--background));
  }
  .table[data-lock-start] tr > :nth-child(1) {
    inset-inline-start: 0;
  }
  .table:is([data-lock-start="2"], [data-lock-start="3"]) tr > :nth-child(2) {
    inset-inline-start: var(--table-lock-1, 0px);
  }
  .table[data-lock-start="3"] tr > :nth-child(3) {
    inset-inline-start: calc(var(--table-lock-1, 0px) + var(--table-lock-2, 0px));
  }
  .table[data-lock-end] tr > :last-child {
    inset-inline-end: 0;
  }
  .table thead .table-head {
    --_lock-bg: var(--muted);
  }
  .table tfoot .table-cell {
    --_lock-bg: var(--muted);
  }
  /* the edge of the locked block casts a hairline */
  .table[data-lock-start="1"] tr > :nth-child(1),
  .table[data-lock-start="2"] tr > :nth-child(2),
  .table[data-lock-start="3"] tr > :nth-child(3) {
    box-shadow: inset -1px 0 0 var(--border);
  }
  .table[data-lock-end] tr > :last-child {
    box-shadow: inset 1px 0 0 var(--border);
  }
  .table-row:hover > :is(.table-cell) {
    --_lock-bg: color-mix(in oklch, var(--muted) 100%, var(--background));
  }
  .table-row[aria-selected="true"] > .table-cell {
    --_lock-bg: color-mix(in oklch, var(--primary) 7%, var(--background));
  }

  .table[data-sticky-header] thead .table-head {
    position: sticky;
    top: 0;
    z-index: 2;
  }
  .table-container:has(> .table[data-sticky-header]) {
    overflow: auto;
  }

  /* -- Actions: a .table-actions cell of buttons, end-aligned - always
     visible. data-actions="quiet" on the table dims them until the row is
     hovered or focused (touch screens: full strength). On a narrow table
     (container < 40rem) the inline buttons (.table-actions-inline) give way
     to one "more" button (.table-actions-menu) opening a native popover
     menu (.table-menu) - one menu in the row, no JavaScript. Touch screens
     get 44px targets. */
  .table-actions {
    width: 1%;
    white-space: nowrap;
    text-align: end;

    & > * + *,
    & .table-actions-inline > * + * {
      margin-inline-start: 0.25rem;
    }
  }
  .table-actions-inline {
    display: inline-flex;
    align-items: center;
  }
  .table-actions-menu {
    display: none;
  }
  .table[data-actions="quiet"] :is(.table-actions > .btn, .table-actions-inline, .table-actions-menu > .btn) {
    opacity: 0.45;
    transition: opacity 150ms ease;
  }
  .table[data-actions="quiet"]
    .table-row:is(:hover, :focus-within)
    :is(.table-actions > .btn, .table-actions-inline, .table-actions-menu > .btn) {
    opacity: 1;
  }
  @media (hover: none) {
    .table[data-actions="quiet"] :is(.table-actions > .btn, .table-actions-inline, .table-actions-menu > .btn) {
      opacity: 1;
    }
  }
  @media (pointer: coarse) {
    .table-actions .btn[data-size^="icon"] {
      min-width: 2.75rem;
      min-height: 2.75rem;
    }
  }
  @container (max-width: 40rem) {
    .table-actions:has(.table-actions-menu) .table-actions-inline {
      display: none;
    }
    .table-actions-menu {
      display: inline-flex;
    }
  }

  /* the row menu: a popover anchored to its own "more" button */
  .table-row {
    anchor-scope: --table-row-menu;
  }
  .table-actions-menu > .btn {
    anchor-name: --table-row-menu;
  }
  .table-menu[popover] {
    position: fixed;
    position-anchor: --table-row-menu;
    inset: auto;
    top: anchor(bottom);
    right: anchor(right);
    position-try-fallbacks: flip-block;
    margin: 0.25rem 0 0;
    min-width: 10rem;
    padding: 0.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background-color: var(--popover);
    color: var(--popover-foreground);
    box-shadow: var(--shadow-lg);
    text-align: start;

    &:popover-open {
      display: grid;
      gap: 0.125rem;
    }
  }
  .table-menu-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    min-height: 2.25rem;
    padding: 0.375rem 0.625rem;
    border: 0;
    border-radius: var(--radius-md);
    background: none;
    color: inherit;
    font: inherit;
    font-size: 0.875rem;
    text-align: start;
    text-decoration: none;
    cursor: pointer;

    &:hover,
    &:focus-visible {
      background-color: var(--accent);
      color: var(--accent-foreground);
      outline: none;
    }
    &[data-tone="destructive"] {
      color: var(--destructive);
    }
    & svg {
      width: 1rem;
      height: 1rem;
    }
  }
  @media (pointer: coarse) {
    .table-menu-item {
      min-height: 2.75rem;
    }
  }

  /* -- Empty state: one .table-empty cell spanning the columns ----------- */
  .table-empty {
    padding: 2.5rem 1rem !important;
    text-align: center;
    color: var(--muted-foreground);

    & > * {
      display: block;
      margin-inline: auto;
    }
    & > * + * {
      margin-top: 0.375rem;
    }
    & > strong {
      color: var(--foreground);
      font-weight: 600;
    }
    & > .btn {
      display: inline-flex;
      margin-top: 1rem;
    }
  }
  .table-empty-icon {
    display: grid !important;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 0.5rem;
    border-radius: 9999px;
    background-color: var(--muted);
    color: var(--muted-foreground);

    & svg {
      width: 1.25rem;
      height: 1.25rem;
    }
  }
  tbody .table-row:has(> .table-empty):hover {
    background-color: transparent;
  }
  /* a dropdown button straight in the actions cell anchors its .table-menu too */
  .table-actions > .btn[popovertarget] {
    anchor-name: --table-row-menu;
  }

  /* -- Text in cells ------------------------------------------------------- */
  /* a plain link in a cell (a name, an id) speaks the tokens, not the UA's
     blue: the text colour, a soft underline that firms up on hover, the
     ring on keyboard focus. Classed links (.btn, a badge) keep their own. */
  .table-cell a:not([class]) {
    color: var(--foreground);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: color-mix(in oklch, currentColor 30%, transparent);
    text-underline-offset: 0.2em;
    transition: text-decoration-color 150ms ease;

    &:hover {
      text-decoration-color: currentColor;
    }
    &:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: 2px;
      border-radius: var(--radius-sm);
    }
  }
  .table-sub {
    display: block;
    margin-top: 0.125rem;
    font-size: 0.8125rem;
    color: var(--muted-foreground);
  }
  .table-truncate {
    display: block;
    max-width: var(--table-truncate, 14rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .table-clamp {
    display: -webkit-box;
    max-width: var(--table-clamp, 20rem);
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
  .table-mono {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    white-space: nowrap;
  }
  .table-muted {
    color: var(--muted-foreground);
  }

  /* -- Container query: compact table in narrow containers -- */
  @container (max-width: 480px) {
    .table-head,
    .table-cell {
      padding: 0.5rem 0.75rem;
      font-size: 0.8125rem;
    }
  }

  /* -- Print: a long table runs over pages. VERIFIED: (tmp/print-table-probe.ts + -probe2.ts, Chromium 153, A4)
     the header row repeats on every page and in every column by itself - inside this scroll wrapper too; the
     footer row repeats as well, so a total printed on every page: tfoot prints once, at the end, unless the
     table asks for a running footer (data-repeat-footer); a row taller than the rest of its page split over
     two, so rows stay whole unless data-break-inside="allow" lets them split; data-keep-last keeps the last
     three rows with the footer and with what follows the table (a totals block that sets break-before: avoid
     pulls them along), so the end never lands alone on a page. */
  @media print {
    .table-container {
      /* Chromium fragments a scroll box in print anyway; another engine may clip it */
      overflow: visible;
      /* each page's piece of the table keeps its frame */
      box-decoration-break: clone;
    }
    .table-container:has(> .table[data-sticky-header]) {
      overflow: visible;
      max-height: none;
    }
    .table[data-sticky-header] thead .table-head {
      position: static;
    }
    .table:not([data-repeat-footer]) > tfoot {
      display: table-row-group;

      & > tr:first-child {
        break-before: avoid;
      }
    }
    .table:not([data-break-inside="allow"]) tr {
      break-inside: avoid;
    }
    .table[data-keep-last] > tbody:last-of-type > tr:nth-last-child(-n + 3) {
      break-before: avoid;
    }
  }
}

/* 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 {
    .table,
    .table *,
    .table::before,
    .table::after,
    .table *::before,
    .table *::after,
    .table::backdrop,
    .table-caption,
    .table-caption *,
    .table-caption::before,
    .table-caption::after,
    .table-caption *::before,
    .table-caption *::after,
    .table-caption::backdrop,
    .table-cell,
    .table-cell *,
    .table-cell::before,
    .table-cell::after,
    .table-cell *::before,
    .table-cell *::after,
    .table-cell::backdrop,
    .table-container,
    .table-container *,
    .table-container::before,
    .table-container::after,
    .table-container *::before,
    .table-container *::after,
    .table-container::backdrop,
    .table-head,
    .table-head *,
    .table-head::before,
    .table-head::after,
    .table-head *::before,
    .table-head *::after,
    .table-head::backdrop,
    .table-row,
    .table-row *,
    .table-row::before,
    .table-row::after,
    .table-row *::before,
    .table-row *::after,
    .table-row::backdrop {
      transition-duration: 0.01ms !important;
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
    }
  }
}

/* ── components/timeline/timeline.css ── */
@layer components {
  .timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
  }

  .timeline-item {
    display: flex;
    gap: 1rem;
    padding-bottom: 1.5rem;
    position: relative;

    /* Connector line */
    &::before {
      content: "";
      position: absolute;
      left: 0.3125rem;
      top: 1rem;
      bottom: 0;
      width: 1px;
      background-color: var(--border);
    }

    &:last-child::before {
      display: none;
    }

    &:last-child {
      padding-bottom: 0;
    }
  }

  .timeline-dot {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 9999px;
    background-color: var(--border);
    flex-shrink: 0;
    margin-top: 0.375rem;
    position: relative;
    z-index: 1;

    &[data-variant="active"] {
      background-color: var(--primary);
    }
    &[data-variant="destructive"] {
      background-color: var(--destructive);
    }
    /* a hollow ring: planned / upcoming */
    &[data-variant="outline"] {
      background-color: var(--background);
      box-shadow: inset 0 0 0 2px var(--primary);
    }

    /* an icon inside the dot (svg / img / lucide <i data-lucide>) turns it
       into a 1.5rem badge; the connector re-centers on it (below) */
    &:has(> :is(svg, img)) {
      display: grid;
      place-items: center;
      width: 1.5rem;
      height: 1.5rem;
      margin-top: -0.125rem;
      background-color: var(--muted);
      color: var(--foreground);

      & > :is(svg, img) {
        width: 0.875rem;
        height: 0.875rem;
      }
      &[data-variant="active"] {
        background-color: var(--primary);
        color: var(--primary-foreground);
      }
      &[data-variant="destructive"] {
        background-color: var(--destructive);
        color: var(--destructive-foreground);
      }
      &[data-variant="outline"] {
        background-color: var(--background);
        color: var(--foreground);
        box-shadow: inset 0 0 0 1px var(--border);
      }
    }
  }

  /* vertical connector under an icon dot: centered on the 1.5rem badge */
  .timeline-item:has(> .timeline-dot > :is(svg, img))::before {
    left: calc(0.75rem - 0.5px);
    top: 1.75rem;
    bottom: 0.5rem;
  }

  .timeline-content {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
    flex: 1;
  }

  .timeline-title {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
    line-height: 1.4;
  }

  .timeline-description {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--muted-foreground);
    line-height: 1.5;
  }

  .timeline-time {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin-top: 0.125rem;
  }
  /* -- Density ----------------------------------------------------
     data-density on the .timeline root scales the item rhythm (connector
     gap + trailing space). comfortable == the unsized default. The
     padding-bottom rule is gated :not(:last-child) so the base
     `:last-child { padding-bottom: 0 }` (same specificity, earlier source)
     keeps winning for the final item. */
  .timeline:where([data-density="compact"]) {
    & .timeline-item {
      gap: 0.75rem;
    }
    & .timeline-item:not(:last-child) {
      padding-bottom: 1.125rem;
    }
  }
  .timeline:where([data-density="comfortable"]) {
    & .timeline-item {
      gap: 1rem;
    }
    & .timeline-item:not(:last-child) {
      padding-bottom: 1.5rem;
    }
  }
  .timeline:where([data-density="spacious"]) {
    & .timeline-item {
      gap: 1.25rem;
    }
    & .timeline-item:not(:last-child) {
      padding-bottom: 1.875rem;
    }
  }

  /* -- Horizontal ---------------------------------------------------
     data-orientation="horizontal": one equal column per item (at least
     10rem - more items scroll sideways, snapping to each), the dot on top,
     the content below. The rows are a SUBGRID across all items, so every
     dot sits on one line even when contents differ in height. The
     connector is the item's ::before as a GRID ITEM in the dot's row: it
     starts 0.375rem after the dot and runs through the item's trailing
     padding to 0.375rem before the next dot. data-align="center" centers
     dot and text in the column; data-alternate puts every second item's
     content ABOVE the line. The item gap (density-scaled) spaces dot and
     content. Declared after the density rules, which it overrides where
     they meet (padding). */
  .timeline[data-orientation="horizontal"] {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(10rem, 1fr);
    grid-template-rows: auto auto;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;

    & > .timeline-item {
      display: grid;
      grid-row: span 2;
      grid-template-rows: subgrid;
      grid-template-columns: minmax(0, 1fr);
      column-gap: 0;
      padding: 0;
      padding-inline-end: 1.5rem;
      scroll-snap-align: start;

      & > .timeline-dot {
        grid-row: 1;
        grid-column: 1;
        margin: 0;
        justify-self: start;
        align-self: center;
      }
      & > .timeline-content {
        grid-row: 2;
        grid-column: 1;
      }

      &::before {
        position: static;
        grid-row: 1;
        grid-column: 1;
        align-self: center;
        width: auto;
        height: 1px;
        margin-inline: 1rem -1.125rem;
      }
      &:has(> .timeline-dot > :is(svg, img))::before {
        margin-inline: 1.875rem -1.125rem;
      }
      &:last-child {
        padding-inline-end: 0;
      }
    }

    &[data-align="center"] > .timeline-item {
      text-align: center;

      & > .timeline-dot {
        justify-self: center;
      }
      & > .timeline-content {
        align-items: center;
      }
      /* percentages resolve against the column: from just past this dot's
         center to just before the next one's */
      &::before {
        margin-inline: calc(50% + 0.6875rem) calc(-50% - 0.8125rem);
      }
      &:has(> .timeline-dot > :is(svg, img))::before {
        margin-inline: calc(50% + 1.125rem) calc(-50% - 0.375rem);
      }
    }

    &[data-alternate] {
      grid-template-rows: auto auto auto;

      & > .timeline-item {
        grid-row: span 3;

        & > .timeline-dot,
        &::before {
          grid-row: 2;
        }
        & > .timeline-content {
          grid-row: 3;
        }
        &:nth-child(even) > .timeline-content {
          grid-row: 1;
          align-self: end;
        }
      }
    }
  }

  /* -- Accessibility ------------------------------------------
     forced colors drop background colors: keep the dots and the
     connector visible in system colors */
  @media (forced-colors: active) {
    .timeline-dot {
      forced-color-adjust: none;
      background-color: CanvasText;
      color: Canvas;
    }
    .timeline-dot[data-variant="active"] {
      background-color: Highlight;
      color: HighlightText;
    }
    .timeline-dot[data-variant="outline"] {
      background-color: Canvas;
      box-shadow: inset 0 0 0 2px CanvasText;
      color: CanvasText;
    }
    .timeline-item::before {
      forced-color-adjust: none;
      background-color: CanvasText;
    }
  }
}

/* ── 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/toggle-group/toggle-group.css ── */
/* -- Toggle Group component ------------------------------------- */

@layer components {
  .toggle-group {
    display: inline-flex;
    align-items: center;
    gap: 0.0625rem;

    /* -- Outline variant: propagate border + shadow to children -- */
    &[data-variant="outline"] > .toggle {
      border: 1px solid var(--input);
      background: transparent;
      box-shadow: var(--shadow-xs);

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

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

    /* Collapse double borders on connected outline items */
    &[data-variant="outline"]:not([data-spacing]) > .toggle:not(:first-child) {
      margin-inline-start: -1px;
    }

    &[data-variant="outline"]:not([data-spacing])[data-orientation="vertical"] > .toggle:not(:first-child) {
      margin-inline-start: 0;
      margin-block-start: -1px;
    }

    /* -- Sizes: propagate to child toggles ---------------------- */
    &[data-size="xs"] > .toggle {
      height: 1.75rem;
      padding: 0 0.25rem;
      min-width: 1.75rem;
      font-size: 0.75rem;
    }

    &[data-size="sm"] > .toggle {
      height: 2rem;
      padding: 0 0.375rem;
      min-width: 2rem;

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

    &[data-size="md"] > .toggle {
      height: 2.25rem;
      padding: 0 0.5rem;
      min-width: 2.25rem;
    }

    &[data-size="lg"] > .toggle {
      height: 2.5rem;
      padding: 0 0.625rem;
      min-width: 2.5rem;
    }

    &[data-size="xl"] > .toggle {
      height: 3rem;
      padding: 0 0.75rem;
      min-width: 3rem;
      font-size: 1rem;

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

    /* -- Vertical orientation ----------------------------------- */
    &[data-orientation="vertical"] {
      flex-direction: column;
    }

    /* -- Connected borders: merge adjacent toggle radii ---------
       Square only the corners that actually touch a neighbour:
       inline corners horizontally, block corners vertically. The
       orientation attribute is wrapped in :where() so every rule
       keeps one-class-plus-one-pseudo specificity - the later
       [data-spacing] radius restore must still win the tie.
       (The previous per-corner "restore" overrides let the
       :not(:last-child) block re-round a middle item's top-right
       corner - issue #12.) */
    &:where(:not([data-orientation="vertical"])) > .toggle:not(:first-child) {
      border-start-start-radius: 0;
      border-end-start-radius: 0;
    }

    &:where(:not([data-orientation="vertical"])) > .toggle:not(:last-child) {
      border-start-end-radius: 0;
      border-end-end-radius: 0;
    }

    &:where([data-orientation="vertical"]) > .toggle:not(:first-child) {
      border-start-start-radius: 0;
      border-start-end-radius: 0;
    }

    &:where([data-orientation="vertical"]) > .toggle:not(:last-child) {
      border-end-start-radius: 0;
      border-end-end-radius: 0;
    }

    /* -- Spacing: adds gap and restores individual radii --------- */
    &[data-spacing] {
      gap: 0.25rem;

      & > .toggle {
        border-radius: var(--radius-md);
      }
    }

    /* -- Disabled group ----------------------------------------- */
    /* the runtime ignores clicks in a disabled group; the cursor says so */
    &[data-disabled] {
      & > .toggle {
        opacity: 0.5;
        cursor: not-allowed;
        &:hover {
          background-color: transparent;
          color: inherit;
        }
      }
    }
  }

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

  @media (forced-colors: active) {
    .toggle-group > .toggle {
      border-color: ButtonBorder;

      &[aria-pressed="true"] {
        background-color: Highlight;
        color: HighlightText;
        border-color: Highlight;
      }

      &:focus-visible {
        outline-color: Highlight;
      }
    }
  }
}

/* ── 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;
    }
  }
}
