/* ============================================================
   Styloviz — kit stylesheet
   ============================================================
   GENERATED from the showcase's src/styles.css by
   scripts/generate-kit-stylesheet.mjs — do not edit this copy.

   Import it AFTER Tailwind, and tell Tailwind to scan the
   compiled Styloviz packages (it skips node_modules otherwise):

     @import "tailwindcss";
     @import "@styloviz/core/styles/styloviz.css";
     @source "../node_modules/@styloviz";
     @source "../node_modules/@styloviz-pro";   // Pro only

   (The @source paths are relative to YOUR stylesheet.)

   What it contains:
     • the design tokens (primary, accent, brand, brandaccent,
       warning, danger, info, radii) as a Tailwind @theme;
     • four preset themes — put .sv-theme-material, -fluent,
       -paper or -high-contrast on <html> to repaint the kit;
     • the class-based dark variant — add class="dark" to <html>
       (ThemeService from @styloviz/core does this for you);
     • a gray default for bare `border`, layered as base;
     • the component runtime CSS: modal, toast, command
       palette and chart animations, skeleton shimmer, reveal.

   Rebrand by redeclaring any token in your own @theme block
   after this import, e.g.  @theme { --color-primary-600: #0f766e; }
   ============================================================ */

@custom-variant dark (&:where(.dark, .dark *):not(:where(.sv-force-light, .sv-force-light *)));

@theme {
  /* ---- Primary — interactive ---- */
  --color-primary-50: #eff6ff;
  --color-primary-100: #dbeafe;
  --color-primary-200: #bedbff;
  --color-primary-300: #8ec5ff;
  --color-primary-400: #50a2ff;
  --color-primary-500: #2b7fff;
  --color-primary-600: #155dfc;
  --color-primary-700: #1447e6;
  --color-primary-800: #193cb8;
  --color-primary-900: #1c398e;
  --color-primary-950: #162556;

  /* ---- Accent — success and positive deltas ---- */
  /* ★★ ELEVEN STEPS, NOT THREE. accent/warning/danger used to declare only
     50/500/600 — "the steps the kit uses" — while the kit was in fact reaching
     for nine more: sv-stepper paints `bg-accent-400`, `bg-danger-300` and
     `bg-warning-300`, and sv-accordion and sv-command-palette use the whole
     `text-<family>-400` set for dark mode. Tailwind v4 emits a utility only for
     a token declared here, so those nine rendered as NOTHING — the element kept
     its inherited colour, no build warning, and the specs asserting on the
     class strings passed the entire time. A partial ramp is a trap for buyers
     too: `bg-danger-700` in their own markup would silently do nothing. */
  --color-accent-50: #ecfdf5;
  --color-accent-100: #d0fae5;
  --color-accent-200: #a4f4cf;
  --color-accent-300: #5ee9b5;
  --color-accent-400: #00d492;
  --color-accent-500: #00bc7d;
  --color-accent-600: #009966;
  --color-accent-700: #007a55;
  --color-accent-800: #006045;
  --color-accent-900: #004f3b;
  --color-accent-950: #002c22;

  /* ============================================================
     Admin Template — Brand Accent
     ============================================================
     The admin template (src/app/templates/admin) uses these two
     token families for ALL of its accent styling instead of a
     hardcoded Tailwind colour. To rebrand the entire admin shell
     to your own colour, change the values below — every button,
     link, ring, gradient and highlight updates in one place.

       brand        = primary accent (default: violet)
       brandaccent  = gradient partner / secondary (default: indigo)

     Set brandaccent to the same values as brand for a single-tone
     accent instead of the default two-tone gradients.
     ============================================================ */
  --color-brand-50: #f5f3ff;
  --color-brand-100: #ede9fe;
  --color-brand-200: #ddd6ff;
  --color-brand-300: #c4b4ff;
  --color-brand-400: #a684ff;
  --color-brand-500: #8e51ff;
  --color-brand-600: #7f22fe;
  --color-brand-700: #7008e7;
  --color-brand-800: #5d0ec0;
  --color-brand-900: #4d179a;
  --color-brand-950: #2f0d68;

  --color-brandaccent-50: #eef2ff;
  --color-brandaccent-100: #e0e7ff;
  --color-brandaccent-200: #c6d2ff;
  --color-brandaccent-300: #a3b3ff;
  --color-brandaccent-400: #7c86ff;
  --color-brandaccent-500: #615fff;
  --color-brandaccent-600: #4f39f6;
  --color-brandaccent-700: #432dd7;
  --color-brandaccent-800: #372aac;
  --color-brandaccent-900: #312c85;
  --color-brandaccent-950: #1e1a4d;

  /* ---- Warning — caution, degraded, approaching a limit ---- */
  --color-warning-50: #fffbeb;
  --color-warning-100: #fef3c6;
  --color-warning-200: #fee685;
  --color-warning-300: #ffd230;
  --color-warning-400: #ffb900;
  --color-warning-500: #fe9a00;
  --color-warning-600: #e17100;
  --color-warning-700: #bb4d00;
  --color-warning-800: #973c00;
  --color-warning-900: #7b3306;
  --color-warning-950: #461901;

  /* ---- Danger — destructive, failed, over a limit ---- */
  --color-danger-50: #fef2f2;
  --color-danger-100: #ffe2e2;
  --color-danger-200: #ffc9c9;
  --color-danger-300: #ffa2a2;
  --color-danger-400: #ff6467;
  --color-danger-500: #fb2c36;
  --color-danger-600: #e7000b;
  --color-danger-700: #c10007;
  --color-danger-800: #9f0712;
  --color-danger-900: #82181a;
  --color-danger-950: #460809;

  /* ---- Info — neutral-informational, "in progress" ---- */
  /* ★ The kit's components have always had an `info` variant; until now it was
     painted with literal `sky-*`, so it was the one semantic role a buyer could
     not rebrand at all. Declaring it here is what lets `bg-info-600` exist —
     Tailwind v4 emits no rule for an undeclared token, silently. */
  --color-info-50: #f0f9ff;
  --color-info-100: #dff2fe;
  --color-info-200: #b8e6fe;
  --color-info-300: #74d4ff;
  --color-info-400: #00bcff;
  --color-info-500: #00a6f4;
  --color-info-600: #0084d1;
  --color-info-700: #0069a8;
  --color-info-800: #00598a;
  --color-info-900: #024a70;
  --color-info-950: #052f4a;

  /* ---- Border Radius ---- */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
}

/* >>> theme-preset: material */
.sv-theme-material {
  /* Material 3-like: the baseline tonal purple, softly tinted neutrals and
     M3's shape scale (8 / 12 / 16 / 28 px). Roboto when the visitor has it. */
  --font-sans: "Roboto", "Google Sans Text", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  font-family: var(--font-sans);
  --color-primary-50: #f6f4fb;
  --color-primary-100: #e9e6f5;
  --color-primary-200: #dad4ee;
  --color-primary-300: #c3b8e4;
  --color-primary-400: #a593d6;
  --color-primary-500: #8d74ca;
  --color-primary-600: #7a59be;
  --color-primary-700: #6948aa;
  --color-primary-800: #553c89;
  --color-primary-900: #47376c;
  --color-primary-950: #2c2342;
  --color-gray-50: #fafafb;
  --color-gray-100: #f4f4f6;
  --color-gray-200: #e7e6eb;
  --color-gray-300: #d6d3dc;
  --color-gray-400: #a39dae;
  --color-gray-500: #746e81;
  --color-gray-600: #575064;
  --color-gray-700: #433c52;
  --color-gray-800: #2b2438;
  --color-gray-900: #1b1427;
  --color-gray-950: #090511;
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-2xl: 1.75rem;
  --radius-3xl: 2rem;
}
/* <<< theme-preset: material */

/* >>> theme-preset: fluent */
.sv-theme-fluent {
  /* Fluent 2-like: the communication blue, true (untinted) greys and small
     corners (2 / 4 / 6 / 8 px). Segoe UI Variable where Windows has it.
     An untinted grey is a shade lighter than a tinted one at the same OKLCH
     lightness, so grey 500 and 800 sit a nudge darker to keep muted text at
     AA in light mode and a gray-500 icon at 3:1 on gray-800 in dark. */
  --font-sans: "Segoe UI Variable Text", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  font-family: var(--font-sans);
  --color-primary-50: #f0f6fc;
  --color-primary-100: #deeaf8;
  --color-primary-200: #c7ddf7;
  --color-primary-300: #9ec4ee;
  --color-primary-400: #69a3e5;
  --color-primary-500: #3788dc;
  --color-primary-600: #0071cc;
  --color-primary-700: #0060af;
  --color-primary-800: #004f91;
  --color-primary-900: #0b4378;
  --color-primary-950: #0e2b49;
  --color-gray-50: #fafafa;
  --color-gray-100: #f4f4f4;
  --color-gray-200: #e7e7e7;
  --color-gray-300: #d5d5d5;
  --color-gray-400: #a0a0a0;
  --color-gray-500: #6f6f6f;
  --color-gray-600: #545454;
  --color-gray-700: #404040;
  --color-gray-800: #252525;
  --color-gray-900: #181818;
  --color-gray-950: #070707;
  --radius-sm: 0.125rem;
  --radius-md: 0.25rem;
  --radius-lg: 0.375rem;
  --radius-xl: 0.5rem;
  --radius-2xl: 0.5rem;
  --radius-3xl: 0.75rem;
}
/* <<< theme-preset: fluent */

/* >>> theme-preset: paper */
.sv-theme-paper {
  /* Paper: ink-blue on a cream canvas, warm greys, a book serif and nearly
     square corners. Cards stay white: `--color-white` is also `text-white`,
     so a cream white would drop every white-on-fill label below AA (it did,
     on rose-600). Grey 500 sits a step darker than a straight re-hue so muted
     text keeps AA on the cream, and 800 a step darker so a gray-500 icon
     still clears 3:1 on it in dark mode. */
  --font-sans: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  font-family: var(--font-sans);
  --color-primary-50: #f3f5f9;
  --color-primary-100: #e3e9f2;
  --color-primary-200: #d2dcec;
  --color-primary-300: #afc1dc;
  --color-primary-400: #86a1c9;
  --color-primary-500: #5f81b4;
  --color-primary-600: #4168a2;
  --color-primary-700: #396099;
  --color-primary-800: #304e7b;
  --color-primary-900: #2d4363;
  --color-primary-950: #1e2a3d;
  --color-gray-50: #fbfaf5;
  --color-gray-100: #f4f2eb;
  --color-gray-200: #e9e7e4;
  --color-gray-300: #d8d4d0;
  --color-gray-400: #a69f96;
  --color-gray-500: #766e63;
  --color-gray-600: #564d42;
  --color-gray-700: #483f33;
  --color-gray-800: #2a2217;
  --color-gray-900: #1f170c;
  --color-gray-950: #0b0602;
  --radius-sm: 0.125rem;
  --radius-md: 0.1875rem;
  --radius-lg: 0.25rem;
  --radius-xl: 0.375rem;
  --radius-2xl: 0.5rem;
  --radius-3xl: 0.625rem;
}
/* <<< theme-preset: paper */

/* >>> theme-preset: high-contrast */
.sv-theme-high-contrast {
  /* High contrast: every family pushed away from the surfaces it sits on, in
     both modes at once. 600–950 are darker (light-mode text and fills, and
     the dark-mode canvas), 300/400 lighter (dark-mode text), 200 a touch
     darker (light-mode borders); 50/100 stay, and so does 500 — the
     indicator stop, which dark mode also paints text and fills with, so
     moving it either way breaks one of the modes. Body text clears 7:1. */
  --color-primary-50: #eff6ff;
  --color-primary-100: #dbeafe;
  --color-primary-200: #b8d5f9;
  --color-primary-300: #9fceff;
  --color-primary-400: #89bfff;
  --color-primary-500: #2b7fff;
  --color-primary-600: #0044d8;
  --color-primary-700: #042acc;
  --color-primary-800: #0c25a3;
  --color-primary-900: #0f287c;
  --color-primary-950: #0d1a4a;
  --color-accent-50: #ecfdf5;
  --color-accent-100: #d0fae5;
  --color-accent-200: #9eeec9;
  --color-accent-300: #67f1bc;
  --color-accent-400: #3deba8;
  --color-accent-500: #00bc7d;
  --color-accent-600: #007a51;
  --color-accent-700: #006143;
  --color-accent-800: #004c36;
  --color-accent-900: #003e2e;
  --color-accent-950: #002119;
  --color-warning-50: #fffbeb;
  --color-warning-100: #fef3c6;
  --color-warning-200: #f8e07f;
  --color-warning-300: #ffd95f;
  --color-warning-400: #ffd079;
  --color-warning-500: #fe9a00;
  --color-warning-600: #b55a00;
  --color-warning-700: #963c00;
  --color-warning-800: #792e00;
  --color-warning-900: #632600;
  --color-warning-950: #371100;
  --color-danger-50: #fef2f2;
  --color-danger-100: #ffe2e2;
  --color-danger-200: #f9c3c3;
  --color-danger-300: #ffb1b0;
  --color-danger-400: #ff9b97;
  --color-danger-500: #fb2c36;
  --color-danger-600: #ba0006;
  --color-danger-700: #9b0004;
  --color-danger-800: #80000a;
  --color-danger-900: #6d000a;
  --color-danger-950: #3a0002;
  --color-info-50: #f0f9ff;
  --color-info-100: #dff2fe;
  --color-info-200: #b2e0f8;
  --color-info-300: #8cdbff;
  --color-info-400: #7ad1ff;
  --color-info-500: #00a6f4;
  --color-info-600: #0069a8;
  --color-info-700: #005387;
  --color-info-800: #00466e;
  --color-info-900: #003a59;
  --color-info-950: #00243c;
  --color-brand-50: #f5f3ff;
  --color-brand-100: #ede9fe;
  --color-brand-200: #d7d0f9;
  --color-brand-300: #ccbfff;
  --color-brand-400: #bfabff;
  --color-brand-500: #8e51ff;
  --color-brand-600: #6700d5;
  --color-brand-700: #5900bb;
  --color-brand-800: #4a009d;
  --color-brand-900: #3e0083;
  --color-brand-950: #250059;
  --color-brandaccent-50: #eef2ff;
  --color-brandaccent-100: #e0e7ff;
  --color-brandaccent-200: #c0ccf9;
  --color-brandaccent-300: #b0bfff;
  --color-brandaccent-400: #a0acff;
  --color-brandaccent-500: #615fff;
  --color-brandaccent-600: #400ddb;
  --color-brandaccent-700: #3601bf;
  --color-brandaccent-800: #2b1098;
  --color-brandaccent-900: #251b74;
  --color-brandaccent-950: #161042;
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #dfe1e5;
  --color-gray-300: #d7dbe2;
  --color-gray-400: #b4bdcb;
  --color-gray-500: #6a7282;
  --color-gray-600: #384352;
  --color-gray-700: #283244;
  --color-gray-800: #141f2e;
  --color-gray-900: #091120;
  --color-gray-950: #01040e;
}
/* <<< theme-preset: high-contrast */

/* Tailwind v4 draws a bare `border` in `currentColor`; every component in the
   kit was designed against this gray default instead. Layered as `base`, so any
   `border-*` utility still wins. */
@layer base {
  * {
    @apply border-gray-200 dark:border-gray-800;
  }
}

/* ============================================================
   Target size — `.sv-target` (WCAG 2.2 SC 2.5.8)
   ============================================================
   A control drawn smaller than 24×24 CSS px keeps its look and gets an
   invisible hit area of at least 24×24, centred on it: an ::after that
   takes clicks and taps for the element it belongs to. `check:ui`
   (`target-size-minimum`) requires it on every control a template pins
   below 24 px, and rejects it where it cannot work — on an element that
   clips its own ::after (`overflow-hidden`) or already uses one (`after:`).
   An <input> cannot carry it; wrap the input in a <label class="sv-target">.

   Neighbours still need room: two hit areas that overlap share the
   overlap, so a row of small targets keeps centres 24 px apart (axe's
   `target-size` rule measures that on the rendered page).
   ★ In @layer components, so `absolute` / `fixed` on the element still win
     over the `position: relative` here — both are containing blocks.
   ============================================================ */
@layer components {
  .sv-target {
    position: relative;
  }
  .sv-target::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%; /* sv-physical: centring with translate(-50%, -50%) */
    width: max(100%, 24px);
    height: max(100%, 24px);
    transform: translate(-50%, -50%);
  }
}

/* ============================================================
   Focus not obscured — `[data-sv-sticky]` (WCAG 2.2 SC 2.4.11)
   ============================================================
   A bar that sticks to the PAGE covers whatever the page scrolls under it,
   and a focused control scrolled into view lands right at the edge — under
   the bar. Marking the bar `data-sv-sticky="page-top"` (or `page-bottom`)
   reserves that band for every scroll the browser makes to reveal focus.
   A taller bar (or one stacked under the header) adds
   `data-sv-sticky-reach="tall"` (8rem) or `"taller"` (10rem); set
   `--sv-page-sticky-top` / `--sv-page-sticky-bottom` on <html> for an exact
   band. Bars INSIDE a scroll container use `data-sv-sticky="top|bottom|start|end"`
   and the `svRevealFocus` directive from @styloviz/core on the scroller, which
   measures them; a page whose scroller is its layout shell's <main> adds
   `data-sv-sticky-in="shell"`, and the shell's <main> carries `svRevealFocus`.
   ============================================================ */
html:has([data-sv-sticky='page-top']) {
  scroll-padding-top: var(--sv-page-sticky-top, 4.5rem);
}
html:has([data-sv-sticky='page-bottom']) {
  scroll-padding-bottom: var(--sv-page-sticky-bottom, 4.5rem);
}
/* A taller bar, or a bar stacked under the header, says how far it reaches. */
html:has([data-sv-sticky='page-top'][data-sv-sticky-reach='tall']) {
  scroll-padding-top: var(--sv-page-sticky-top, 8rem);
}
html:has([data-sv-sticky='page-top'][data-sv-sticky-reach='taller']) {
  scroll-padding-top: var(--sv-page-sticky-top, 10rem);
}

/* ============================================================
   Dark Mode — Native date/time input calendar icon
   ============================================================
   Browsers render the calendar picker indicator using the OS
   theme, so in dark mode it appears as a dark icon on a dark
   background. Inverting it makes it light and legible.
   ============================================================ */

.dark input[type="date"]::-webkit-calendar-picker-indicator,
.dark input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(1) opacity(0.55);
  cursor: pointer;
}

/* ============================================================
   Toast Progress Bar Animation
   ============================================================
   Used by ToastHostComponent to animate the progress bar
   that counts down to auto-dismiss. The animation is applied
   via inline [style] bound to the toast duration.
   ============================================================ */

@keyframes toast-progress {
  from { width: 100%; }
  to   { width: 0%; }
}

/* ★ Identical on purpose. A deduplicated toast refreshes in place without its
   node being recreated, and a running CSS animation only restarts when its
   `animation-name` changes — so repeats alternate between these two. Without
   the second name the bar kept emptying from where the FIRST occurrence had
   left it: a toast shown as about to disappear whose countdown had just
   restarted. See `SvToastHostComponent.progressStyle`. */
@keyframes toast-progress-alt {
  from { width: 100%; }
  to   { width: 0%; }
}

/* ============================================================
   Modal Animations
   ============================================================
   Applied inside ModalComponent:
     .modal-backdrop      — fades the overlay in
     .modal-panel         — default slide-down + fade (center/top)
     .modal-panel--up     — slide-up variant for position="bottom"
   Combines a subtle vertical slide with a fade for polish, and
   respects prefers-reduced-motion for accessibility.
   ============================================================ */

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes modal-in-up {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes modal-backdrop-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-backdrop {
  animation: modal-backdrop-in 0.18s ease-out forwards;
}

.modal-panel {
  animation: modal-in 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-panel--up {
  animation: modal-in-up 0.24s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@media (prefers-reduced-motion: reduce) {
  .modal-backdrop,
  .modal-panel,
  .modal-panel--up {
    animation-duration: 0.01ms;
  }
}

/* ============================================================
   Bar Chart — Premium SVG Bar Animations
   ============================================================
   All bar paths use CSS `transform-box: fill-box` so that
   `transform-origin` is relative to the element's own bounding
   box rather than the SVG viewport origin.

   Classes applied per bar <path>:
     .bc-bar-v   — vertical bar, grows upward from baseline
     .bc-bar-h   — horizontal bar, grows rightward from axis
     .bc-bar-hr  — horizontal bar, grows leftward (negative side)
     .bc-range-v — floating range bar, scales from center
     .bc-range-h — floating horizontal range bar

   animation-delay is bound inline per bar to create a cascade.
   ============================================================ */

/* ── Keyframes ────────────────────────────────────────────── */

@keyframes bc-grow-v {
  0%   { transform: scaleY(0); opacity: 0; }
  60%  { opacity: 1; }
  100% { transform: scaleY(1); }
}

@keyframes bc-grow-h {
  0%   { transform: scaleX(0); opacity: 0; }
  60%  { opacity: 1; }
  100% { transform: scaleX(1); }
}

@keyframes bc-grow-hr {
  0%   { transform: scaleX(0); opacity: 0; }
  60%  { opacity: 1; }
  100% { transform: scaleX(1); }
}

@keyframes bc-scale-in {
  0%   { transform: scale(0); opacity: 0; }
  60%  { opacity: 1; }
  100% { transform: scale(1); }
}

/* ── Vertical bar — grows bottom → top ───────────────────── */
.bc-bar-v {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: bc-grow-v var(--bc-anim-dur, 0.65s) cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-play-state: paused;
}
.bc-animate .bc-bar-v {
  animation-play-state: running;
}

/* ── Horizontal bar — grows left → right ─────────────────── */
.bc-bar-h {
  transform-box: fill-box;
  transform-origin: left center;
  animation: bc-grow-h var(--bc-anim-dur, 0.65s) cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-play-state: paused;
}
.bc-animate .bc-bar-h {
  animation-play-state: running;
}

/* ── Horizontal bar (negative) — grows right → left ─────── */
.bc-bar-hr {
  transform-box: fill-box;
  transform-origin: right center;
  animation: bc-grow-hr var(--bc-anim-dur, 0.65s) cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-play-state: paused;
}
.bc-animate .bc-bar-hr {
  animation-play-state: running;
}

/* ── Floating range bar — scales from center ─────────────── */
.bc-range-v {
  transform-box: fill-box;
  transform-origin: center center;
  animation: bc-scale-in var(--bc-anim-dur, 0.55s) cubic-bezier(0.34, 1.4, 0.64, 1) both;
  animation-play-state: paused;
}
.bc-animate .bc-range-v {
  animation-play-state: running;
}

/* ── Floating horizontal range bar ───────────────────────── */
.bc-range-h {
  transform-box: fill-box;
  transform-origin: center center;
  animation: bc-scale-in var(--bc-anim-dur, 0.55s) cubic-bezier(0.34, 1.4, 0.64, 1) both;
  animation-play-state: paused;
}
.bc-animate .bc-range-h {
  animation-play-state: running;
}

/* ── Cylindrical cap ellipses ─────────────────────────────── */
.bc-cap {
  transform-box: fill-box;
  transform-origin: center center;
  animation: bc-scale-in var(--bc-anim-dur, 0.65s) cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-play-state: paused;
}
.bc-animate .bc-cap {
  animation-play-state: running;
}

/* ============================================================
   Line Chart — SVG Path Draw-On Animations
   ============================================================
   Two CSS animation classes work together with ChartAnimDirective
   (which adds .bc-animate to the wrapper when it enters viewport):

     .lc-line  — solid series: draws the stroke left→right via
                 stroke-dashoffset 3500→0 (ANIM_DASH = 3500 covers
                 any practical path length).
     .lc-fade  — dashed / multi-color series: simple opacity fade-in
                 (dashoffset conflicts with their own stroke-dasharray).

   Both classes are paused by default and run only inside .bc-animate.
   Per-series stagger uses inline [style.animation-delay].
   ============================================================ */

@keyframes lc-draw {
  from { stroke-dashoffset: 3500; opacity: 0; }
  40%  { opacity: 1; }
  to   { stroke-dashoffset: 0; }
}

@keyframes lc-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Solid line — grows left → right */
.lc-line {
  stroke-dasharray: 3500;
  animation: lc-draw var(--lc-anim-dur, 1.4s) cubic-bezier(0.4, 0, 0.2, 1) both;
  animation-play-state: paused;
}

/* Dashed / multi-colored line — fades in */
.lc-fade {
  opacity: 0;
  animation: lc-fade var(--lc-anim-dur, 0.9s) ease-out both;
  animation-play-state: paused;
}

/* Triggered once the chart scrolls into view */
.bc-animate .lc-line,
.bc-animate .lc-fade {
  animation-play-state: running;
}

/* ============================================================
   Skeleton Loader — Wave Shimmer Animation
   ============================================================
   Used by SkeletonLoaderComponent when animation === 'wave'.
   The .skeleton-wave class is applied to each bone element;
   the shimmer sweeps left-to-right to mimic content loading.
   ============================================================ */

/* ★ COMPOSITOR-ONLY. This used to animate
     the element's own `background-position`, which is not a compositor
     property: every shimmering bone was repainted 60 times a second, and a
     loading data table puts ~36 on screen at once. The sheen is now a band on
     `::after` that moves with `transform`, so the bones are painted once and
     the GPU only slides a layer. The look is unchanged: the old background was
     200% wide and REPEATED, so its band (base → gray-100 → base, one bone-width
     wide) recurs every 2W and passes twice per 1.5 s cycle. `::after` is a
     repeating strip 6W wide — tiles 2W, the same gradient — translated across
     exactly the range the background-position covered (+2W → −2W), so the
     phase of every tile matches the original at every instant.
   ★ Only `background-color` is set on the bone itself. sv-skeleton-loader
     draws its own (more specific) `::after` sheen; when this rule also set the
     bone's background and animation, every loader bone ran two counter-moving
     shimmers. */
@keyframes skeleton-shimmer {
  from { transform: translateX(33.3333%); }
  to   { transform: translateX(-33.3333%); }
}

/* ★ @layer components so a utility on a bone (`absolute`, `bg-*`) still wins —
     unlayered, `position: relative` here would beat every Tailwind class. */
@layer components {
.skeleton-wave {
  --sv-skeleton-base: var(--color-gray-200, #e5e7eb);
  --sv-skeleton-band: var(--color-gray-100, #f3f4f6);
  position: relative;
  overflow: hidden;
  background-color: var(--sv-skeleton-base);
}

/* Dark-mode variant — Tailwind's dark class strategy */
:where(.dark, .dark *) .skeleton-wave {
  --sv-skeleton-base: var(--color-gray-700, #374151);
  --sv-skeleton-band: var(--color-gray-600, #4b5563);
}

.skeleton-wave::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -200%; /* sv-physical: a decorative shimmer band that sweeps the same way in both directions */
  width: 600%;
  pointer-events: none;
  background-image: linear-gradient(90deg, transparent 25%, var(--sv-skeleton-band) 50%, transparent 75%);
  background-size: 33.3333% 100%;
  background-repeat: repeat-x;
  transform: translateX(33.3333%);
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .skeleton-wave::after {
    animation: none;
    background: none;
  }
}
}

/* ============================================================
   Other Chart Types — Bubble, Funnel, Pyramid, Performance,
   DateTime Category, Multi-Axis, Axis Label Template,
   Multi-Level Label
   ============================================================
   All new animation classes follow the same
   bcChartAnim / .bc-animate play-state pattern used by bar
   and line charts.
   ============================================================ */

/* ── Bubble — scale in from center ──────────────────────── */
@keyframes bc-bubble-in {
  0%   { transform: scale(0); opacity: 0; }
  70%  { opacity: 1; }
  100% { transform: scale(1); }
}

.bc-bubble {
  transform-box: fill-box;
  transform-origin: center center;
  animation: bc-bubble-in var(--bc-anim-dur, 0.6s) cubic-bezier(0.34, 1.5, 0.64, 1) both;
  animation-play-state: paused;
}
.bc-animate .bc-bubble {
  animation-play-state: running;
}

/* ── Funnel / Pyramid segment — scaleX from center ──────── */
@keyframes bc-seg-in {
  0%   { transform: scaleX(0); opacity: 0; }
  60%  { opacity: 1; }
  100% { transform: scaleX(1); }
}

.bc-funnel-seg,
.bc-pyramid-seg {
  transform-box: fill-box;
  transform-origin: center center;
  animation: bc-seg-in var(--bc-anim-dur, 0.65s) cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-play-state: paused;
}
.bc-animate .bc-funnel-seg,
.bc-animate .bc-pyramid-seg {
  animation-play-state: running;
}

/* ── Generic fade-in — used by performance dots & area ──── */
@keyframes bc-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.bc-fade-in {
  animation: bc-fade var(--bc-anim-dur, 0.8s) ease-out both;
  animation-play-state: paused;
}
.bc-animate .bc-fade-in {
  animation-play-state: running;
}

/* ── Multi-axis secondary bar — same as bc-bar-v ─────────── */
.bc-bar-v2 {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: bc-grow-v var(--bc-anim-dur, 0.65s) cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-play-state: paused;
}
.bc-animate .bc-bar-v2 {
  animation-play-state: running;
}

/* ============================================================
   Pie Chart — SVG Slice Entrance Animations
   ============================================================
   .bc-pie-slice  — each individual slice, scales in from the
                    SVG center. Stagger is applied per-slice via
                    inline [style.animation-delay].
   .bc-pie-label  — smart / external labels fade + shift in
                    after the slices have rendered.
   .bc-pie-connector — connector lines draw in via opacity.
   ============================================================ */

@keyframes bc-pie-slice-in {
  0%   { transform: scale(0); opacity: 0; }
  60%  { opacity: 1; }
  100% { transform: scale(1); }
}

@keyframes bc-pie-label-in {
  0%   { opacity: 0; transform: translateY(4px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes bc-pie-connector-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Slice — scale from SVG centre point */
.bc-pie-slice {
  transform-box: view-box;
  transform-origin: center center;
  animation: bc-pie-slice-in var(--bc-anim-dur, 0.6s) cubic-bezier(0.34, 1.3, 0.64, 1) both;
  animation-play-state: paused;
}
.bc-animate .bc-pie-slice {
  animation-play-state: running;
}

/* External label */
.bc-pie-label {
  animation: bc-pie-label-in var(--bc-anim-dur, 0.5s) ease-out both;
  animation-play-state: paused;
}
.bc-animate .bc-pie-label {
  animation-play-state: running;
}

/* Connector lines */
.bc-pie-connector {
  animation: bc-pie-connector-in var(--bc-anim-dur, 0.5s) ease-out both;
  animation-play-state: paused;
}
.bc-animate .bc-pie-connector {
  animation-play-state: running;
}

/* ============================================================
   Waterfall Chart — Floating Bar Entrance Animations
   ============================================================
   Waterfall bars float at arbitrary Y (vertical) or X (horizontal)
   positions. Each animation grows the bar from the edge that
   corresponds to the "from" value (the previous running total):

     .bc-wf-up    — positive vertical bar, grows bottom → top
     .bc-wf-down  — negative vertical bar, grows top → bottom
     .bc-wf-right — positive horizontal bar, grows left → right
     .bc-wf-left  — negative horizontal bar, grows right → left

   transform-box: fill-box ensures the transform-origin is
   relative to the bar's own bounding box so floating bars
   animate from the correct edge.
   ============================================================ */

@keyframes bc-wf-grow-v {
  0%   { transform: scaleY(0); opacity: 0; }
  55%  { opacity: 1; }
  100% { transform: scaleY(1); }
}

@keyframes bc-wf-grow-h {
  0%   { transform: scaleX(0); opacity: 0; }
  55%  { opacity: 1; }
  100% { transform: scaleX(1); }
}

/* Positive vertical bar — grows upward from the "from" baseline */
.bc-wf-up {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: bc-wf-grow-v var(--bc-anim-dur, 0.65s) cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-play-state: paused;
}
.bc-animate .bc-wf-up {
  animation-play-state: running;
}

/* Negative vertical bar — grows downward from the "from" baseline */
.bc-wf-down {
  transform-box: fill-box;
  transform-origin: center top;
  animation: bc-wf-grow-v var(--bc-anim-dur, 0.65s) cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-play-state: paused;
}
.bc-animate .bc-wf-down {
  animation-play-state: running;
}

/* Positive horizontal bar — grows rightward from the "from" baseline */
.bc-wf-right {
  transform-box: fill-box;
  transform-origin: left center;
  animation: bc-wf-grow-h var(--bc-anim-dur, 0.65s) cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-play-state: paused;
}
.bc-animate .bc-wf-right {
  animation-play-state: running;
}

/* Negative horizontal bar — grows leftward from the "from" baseline */
.bc-wf-left {
  transform-box: fill-box;
  transform-origin: right center;
  animation: bc-wf-grow-h var(--bc-anim-dur, 0.65s) cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-play-state: paused;
}
.bc-animate .bc-wf-left {
  animation-play-state: running;
}
/* ============================================================
   .sv-animate — SvChartAnimDirective trigger alias
   ============================================================
   SvChartAnimDirective (selector [svChartAnim]) adds .sv-animate
   to the chart root element once it enters the viewport.
   All animation classes below are defined with
   animation-play-state: paused and flipped to running here.
   ============================================================ */

/* Bar charts */
.sv-animate .bc-bar-v   { animation-play-state: running; }
.sv-animate .bc-bar-h   { animation-play-state: running; }
.sv-animate .bc-bar-hr  { animation-play-state: running; }
.sv-animate .bc-range-v { animation-play-state: running; }
.sv-animate .bc-range-h { animation-play-state: running; }
.sv-animate .bc-cap     { animation-play-state: running; }
.sv-animate .bc-bar-v2  { animation-play-state: running; }

/* Line charts */
.sv-animate .lc-line,
.sv-animate .lc-fade    { animation-play-state: running; }

/* Bubble / funnel / pyramid / fade */
.sv-animate .bc-bubble      { animation-play-state: running; }
.sv-animate .bc-funnel-seg  { animation-play-state: running; }
.sv-animate .bc-pyramid-seg { animation-play-state: running; }
.sv-animate .bc-fade-in     { animation-play-state: running; }

/* Pie charts */
.sv-animate .bc-pie-slice     { animation-play-state: running; }
.sv-animate .bc-pie-label     { animation-play-state: running; }
.sv-animate .bc-pie-connector { animation-play-state: running; }

/* Waterfall */
.sv-animate .bc-wf-up    { animation-play-state: running; }
.sv-animate .bc-wf-down  { animation-play-state: running; }
.sv-animate .bc-wf-right { animation-play-state: running; }
.sv-animate .bc-wf-left  { animation-play-state: running; }

/* ── Reduced motion ─────────────────────
   Every chart entrance above is a hand-written class, so Tailwind's
   `motion-reduce:` variant cannot reach it — the guard has to live
   here. Under `prefers-reduced-motion: reduce` the marks are simply
   THERE: no grow, no draw, no fade. The base state of each class is
   already the drawn one, except `.lc-fade` (starts transparent) and
   `.lc-line` (carries the draw dash), which are restored explicitly.
   `check:reduced-motion` fails any keyframe rule this block misses. */
@media (prefers-reduced-motion: reduce) {
  .bc-bar-v,
  .bc-bar-h,
  .bc-bar-hr,
  .bc-range-v,
  .bc-range-h,
  .bc-cap,
  .bc-bar-v2,
  .bc-bubble,
  .bc-funnel-seg,
  .bc-pyramid-seg,
  .bc-fade-in,
  .bc-pie-slice,
  .bc-pie-label,
  .bc-pie-connector,
  .bc-wf-up,
  .bc-wf-down,
  .bc-wf-right,
  .bc-wf-left,
  .lc-line,
  .lc-fade {
    animation: none;
  }
  .lc-line {
    stroke-dasharray: none;
  }
  .lc-fade {
    opacity: 1;
  }
}

/* ============================================================
   Command Palette — Panel Entrance Animation
   ============================================================
   .cp-panel is applied to the dialog panel element.
   The component drives opacity/scale/translate via Tailwind
   signal-bound classes; this keyframe adds a subtle spring
   on top for a premium feel.

   .cp-kbd used to be a shared keyboard key chip for the footer
   legend, defined here so Tailwind's JIT scanner picked it up
   without a dynamic class name. It was the design basis for
   @styloviz/kbd's default `solid` variant; command-palette now
   renders <sv-kbd> directly, so the class is retired.
   ============================================================ */

@keyframes cp-panel-in {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.cp-panel {
  animation: cp-panel-in 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* The spring is decoration on top of the palette's own (already stilled)
   opacity/scale transition — under reduced motion the panel just appears. */
@media (prefers-reduced-motion: reduce) {
  .cp-panel {
    animation: none;
  }
}

/* ─────────────────────────────────────────────────────────────
   Kanban: thin scrollbar for the fixed-header card body
   ───────────────────────────────────────────────────────────── */
.kb-col-scroll::-webkit-scrollbar {
  width: 4px;
}
.kb-col-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.kb-col-scroll::-webkit-scrollbar-thumb {
  border-radius: 9999px;
  background-color: #d1d5db; /* gray-300 */
}
.dark .kb-col-scroll::-webkit-scrollbar-thumb {
  background-color: #4b5563; /* gray-600 */
}
.kb-col-scroll::-webkit-scrollbar-thumb:hover {
  background-color: #9ca3af; /* gray-400 */
}
.dark .kb-col-scroll::-webkit-scrollbar-thumb:hover {
  background-color: #6b7280; /* gray-500 */
}

/* ============================================================
   Speed Dial — action item entrance animation
   ============================================================ */
@keyframes speedDialIn {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.speed-dial-item {
  animation: speedDialIn 0.22s ease both;
}
/* this rule is unlayered, so it outranks the template's
   layered `motion-reduce:[animation:none]` utility — the guard has to live here too. */
@media (prefers-reduced-motion: reduce) {
  .speed-dial-item {
    animation: none;
  }
}

/* ============================================================
   Reveal transition — SvRevealDirective (@styloviz/core)
   ============================================================
   The directive sets `data-sv-reveal="hidden"` / `"shown"` from JavaScript,
   and only after confirming it may move content. Without these rules the
   attribute is inert and content is simply visible. (The launch and
   portfolio template blocks carry their own copies for their zips.)
   ============================================================ */
[data-sv-reveal] {
  transition:
    opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

[data-sv-reveal='hidden'] {
  opacity: 0;
  transform: translateY(14px);
}

[data-sv-reveal='shown'] {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-sv-reveal] {
    transition: none;
  }

  [data-sv-reveal='hidden'] {
    opacity: 1;
    transform: none;
  }
}
/* >>> generated: sv-glow (scripts/generate-glow-css.mjs) */
/* ============================================================
   Glow — `.sv-glow` / `.sv-glow-rect`
   ============================================================
   A soft ambient glow with the look of `blur-*` on a coloured shape, and no
   GPU filter. A filter is re-applied every frame its layer is drawn — every
   scroll frame behind scrolling content.

   Usage — swap the blur utility, keep everything else:
       blur-3xl     →  sv-glow                      (σ = 64 px)
       blur-2xl     →  sv-glow sv-glow-2xl          (σ = 40 px)
       blur-xl      →  sv-glow sv-glow-xl           (σ = 24 px)
       blur-[120px] →  sv-glow [--sv-glow-blur:120px]
   The element keeps its size, position, `bg-*` (solid, gradient, conic, or a
   style binding), opacity and animation. Discs and near-circles use
   `sv-glow`; rectangles, card-backing glows and long thin shapes (aspect over
   1.5:1) use `sv-glow-rect`. The element must be empty — it is decoration.

   The element stops painting itself (visibility: hidden — a child that sets
   visible still renders) and becomes a size container; ::before extends 3σ
   past it, inherits the background, and is masked with the profile the blur
   would have produced. The models and their measured accuracy are documented
   in scripts/generate-glow-css.mjs. GENERATED — edit the script, not this.
   Without CSS math (exp, atan2, container units) the original filter stays.
   ============================================================ */
@property --sv-glow-rho { syntax: '<number>'; inherits: false; initial-value: 2.25; }
@property --sv-glow-c { syntax: '<number>'; inherits: false; initial-value: 2.2; }
@property --sv-glow-w { syntax: '<number>'; inherits: false; initial-value: 0.6; }
@property --sv-glow-peak { syntax: '<number>'; inherits: false; initial-value: 1; }
@property --sv-glow-lx { syntax: '<number>'; inherits: false; initial-value: 6; }
@property --sv-glow-ly { syntax: '<number>'; inherits: false; initial-value: 6; }

/* ★★ IN @layer components, NOT unlayered. An unlayered rule beats every
     cascade layer whatever its specificity, so `.sv-glow { --sv-glow-blur }`
     here silently overrode Tailwind's `[--sv-glow-blur:120px]` (utilities
     layer): every custom-radius glow rendered at 64px. Utilities must win. */
@layer components {
  .sv-glow,
  .sv-glow-rect {
    --sv-glow-blur: 64px;
    pointer-events: none;
    /* Fallback, and the exact behaviour this replaces. */
    filter: blur(var(--sv-glow-blur));
  }

  .sv-glow-2xl {
    --sv-glow-blur: 40px;
  }

  .sv-glow-xl {
    --sv-glow-blur: 24px;
  }

  @supports (width: calc(exp(1) * 1px)) and (width: calc(tan(atan2(1px, 2px)) * 1px)) and (container-type: size) {
    .sv-glow,
    .sv-glow-rect {
      filter: none;
      container-type: size;
      /* ★ ::before reaches 3σ past the box. Without layout containment that is
           SCROLLABLE overflow — a glow near the page edge widened /templates/dev
           by 100px. A filter's spill is ink overflow; containment makes this
           the same. */
      contain: layout;
      visibility: hidden;
    }

    .sv-glow::before,
    .sv-glow-rect::before {
      content: '';
      position: absolute;
      inset: calc(-3 * var(--sv-glow-blur));
      pointer-events: none;
      background: inherit;
      visibility: visible;
    }

    .sv-glow::before {
      --sv-glow-rho: max(0.05, tan(atan2(50cqw, var(--sv-glow-blur))));
      --sv-glow-c: calc(var(--sv-glow-rho) + 0.96 * exp(-1 * var(--sv-glow-rho) * var(--sv-glow-rho) / 1.5583) - 0.3246 * var(--sv-glow-rho) * exp(-1 * var(--sv-glow-rho) / 1.5012) - 0.0467);
      --sv-glow-w: calc(0.6003 - (0.6003 - 0.39) * exp(-1 * var(--sv-glow-rho) * var(--sv-glow-rho) / 1.603));
      --sv-glow-peak: calc((1 - exp(-0.5 * var(--sv-glow-rho) * var(--sv-glow-rho))) * (1 + exp(-1 * var(--sv-glow-c) / var(--sv-glow-w))));
      mask-image: radial-gradient(closest-side,
        rgb(0 0 0 / calc(1 - exp(-0.5 * var(--sv-glow-rho) * var(--sv-glow-rho)))) 0%,
        rgb(0 0 0 / calc(var(--sv-glow-peak) * 0.99331)) calc((var(--sv-glow-c) - 5.0 * var(--sv-glow-w)) / (var(--sv-glow-rho) + 3) * 100%),
        rgb(0 0 0 / calc(var(--sv-glow-peak) * 0.98901)) calc((var(--sv-glow-c) - 4.5 * var(--sv-glow-w)) / (var(--sv-glow-rho) + 3) * 100%),
        rgb(0 0 0 / calc(var(--sv-glow-peak) * 0.98201)) calc((var(--sv-glow-c) - 4.0 * var(--sv-glow-w)) / (var(--sv-glow-rho) + 3) * 100%),
        rgb(0 0 0 / calc(var(--sv-glow-peak) * 0.97069)) calc((var(--sv-glow-c) - 3.5 * var(--sv-glow-w)) / (var(--sv-glow-rho) + 3) * 100%),
        rgb(0 0 0 / calc(var(--sv-glow-peak) * 0.95257)) calc((var(--sv-glow-c) - 3.0 * var(--sv-glow-w)) / (var(--sv-glow-rho) + 3) * 100%),
        rgb(0 0 0 / calc(var(--sv-glow-peak) * 0.92414)) calc((var(--sv-glow-c) - 2.5 * var(--sv-glow-w)) / (var(--sv-glow-rho) + 3) * 100%),
        rgb(0 0 0 / calc(var(--sv-glow-peak) * 0.88080)) calc((var(--sv-glow-c) - 2.0 * var(--sv-glow-w)) / (var(--sv-glow-rho) + 3) * 100%),
        rgb(0 0 0 / calc(var(--sv-glow-peak) * 0.81757)) calc((var(--sv-glow-c) - 1.5 * var(--sv-glow-w)) / (var(--sv-glow-rho) + 3) * 100%),
        rgb(0 0 0 / calc(var(--sv-glow-peak) * 0.73106)) calc((var(--sv-glow-c) - 1.0 * var(--sv-glow-w)) / (var(--sv-glow-rho) + 3) * 100%),
        rgb(0 0 0 / calc(var(--sv-glow-peak) * 0.62246)) calc((var(--sv-glow-c) - 0.5 * var(--sv-glow-w)) / (var(--sv-glow-rho) + 3) * 100%),
        rgb(0 0 0 / calc(var(--sv-glow-peak) * 0.50000)) calc((var(--sv-glow-c) + 0.0 * var(--sv-glow-w)) / (var(--sv-glow-rho) + 3) * 100%),
        rgb(0 0 0 / calc(var(--sv-glow-peak) * 0.37754)) calc((var(--sv-glow-c) + 0.5 * var(--sv-glow-w)) / (var(--sv-glow-rho) + 3) * 100%),
        rgb(0 0 0 / calc(var(--sv-glow-peak) * 0.26894)) calc((var(--sv-glow-c) + 1.0 * var(--sv-glow-w)) / (var(--sv-glow-rho) + 3) * 100%),
        rgb(0 0 0 / calc(var(--sv-glow-peak) * 0.18243)) calc((var(--sv-glow-c) + 1.5 * var(--sv-glow-w)) / (var(--sv-glow-rho) + 3) * 100%),
        rgb(0 0 0 / calc(var(--sv-glow-peak) * 0.11920)) calc((var(--sv-glow-c) + 2.0 * var(--sv-glow-w)) / (var(--sv-glow-rho) + 3) * 100%),
        rgb(0 0 0 / calc(var(--sv-glow-peak) * 0.07586)) calc((var(--sv-glow-c) + 2.5 * var(--sv-glow-w)) / (var(--sv-glow-rho) + 3) * 100%),
        rgb(0 0 0 / calc(var(--sv-glow-peak) * 0.04743)) calc((var(--sv-glow-c) + 3.0 * var(--sv-glow-w)) / (var(--sv-glow-rho) + 3) * 100%),
        rgb(0 0 0 / calc(var(--sv-glow-peak) * 0.02931)) calc((var(--sv-glow-c) + 3.5 * var(--sv-glow-w)) / (var(--sv-glow-rho) + 3) * 100%),
        rgb(0 0 0 / calc(var(--sv-glow-peak) * 0.01799)) calc((var(--sv-glow-c) + 4.0 * var(--sv-glow-w)) / (var(--sv-glow-rho) + 3) * 100%),
        rgb(0 0 0 / calc(var(--sv-glow-peak) * 0.01099)) calc((var(--sv-glow-c) + 4.5 * var(--sv-glow-w)) / (var(--sv-glow-rho) + 3) * 100%),
        rgb(0 0 0 / calc(var(--sv-glow-peak) * 0.00669)) calc((var(--sv-glow-c) + 5.0 * var(--sv-glow-w)) / (var(--sv-glow-rho) + 3) * 100%),
        transparent 100%);
    }

    .sv-glow-rect::before {
      /* Box length along each axis, in units of σ. */
      --sv-glow-lx: tan(atan2(100cqw, var(--sv-glow-blur)));
      --sv-glow-ly: tan(atan2(100cqh, var(--sv-glow-blur)));
      /* The exact 1-D blur at every σ/2 from the edge, per axis. */
      --sv-glow-x0: calc(1 / (1 + exp(-1.5976 * (min(0.0, (var(--sv-glow-lx) + 6) / 2) - 3) - 0.07056 * pow(min(0.0, (var(--sv-glow-lx) + 6) / 2) - 3, 3))) - 1 / (1 + exp(-1.5976 * (min(0.0, (var(--sv-glow-lx) + 6) / 2) - 3 - var(--sv-glow-lx)) - 0.07056 * pow(min(0.0, (var(--sv-glow-lx) + 6) / 2) - 3 - var(--sv-glow-lx), 3))));
      --sv-glow-x1: calc(1 / (1 + exp(-1.5976 * (min(0.5, (var(--sv-glow-lx) + 6) / 2) - 3) - 0.07056 * pow(min(0.5, (var(--sv-glow-lx) + 6) / 2) - 3, 3))) - 1 / (1 + exp(-1.5976 * (min(0.5, (var(--sv-glow-lx) + 6) / 2) - 3 - var(--sv-glow-lx)) - 0.07056 * pow(min(0.5, (var(--sv-glow-lx) + 6) / 2) - 3 - var(--sv-glow-lx), 3))));
      --sv-glow-x2: calc(1 / (1 + exp(-1.5976 * (min(1.0, (var(--sv-glow-lx) + 6) / 2) - 3) - 0.07056 * pow(min(1.0, (var(--sv-glow-lx) + 6) / 2) - 3, 3))) - 1 / (1 + exp(-1.5976 * (min(1.0, (var(--sv-glow-lx) + 6) / 2) - 3 - var(--sv-glow-lx)) - 0.07056 * pow(min(1.0, (var(--sv-glow-lx) + 6) / 2) - 3 - var(--sv-glow-lx), 3))));
      --sv-glow-x3: calc(1 / (1 + exp(-1.5976 * (min(1.5, (var(--sv-glow-lx) + 6) / 2) - 3) - 0.07056 * pow(min(1.5, (var(--sv-glow-lx) + 6) / 2) - 3, 3))) - 1 / (1 + exp(-1.5976 * (min(1.5, (var(--sv-glow-lx) + 6) / 2) - 3 - var(--sv-glow-lx)) - 0.07056 * pow(min(1.5, (var(--sv-glow-lx) + 6) / 2) - 3 - var(--sv-glow-lx), 3))));
      --sv-glow-x4: calc(1 / (1 + exp(-1.5976 * (min(2.0, (var(--sv-glow-lx) + 6) / 2) - 3) - 0.07056 * pow(min(2.0, (var(--sv-glow-lx) + 6) / 2) - 3, 3))) - 1 / (1 + exp(-1.5976 * (min(2.0, (var(--sv-glow-lx) + 6) / 2) - 3 - var(--sv-glow-lx)) - 0.07056 * pow(min(2.0, (var(--sv-glow-lx) + 6) / 2) - 3 - var(--sv-glow-lx), 3))));
      --sv-glow-x5: calc(1 / (1 + exp(-1.5976 * (min(2.5, (var(--sv-glow-lx) + 6) / 2) - 3) - 0.07056 * pow(min(2.5, (var(--sv-glow-lx) + 6) / 2) - 3, 3))) - 1 / (1 + exp(-1.5976 * (min(2.5, (var(--sv-glow-lx) + 6) / 2) - 3 - var(--sv-glow-lx)) - 0.07056 * pow(min(2.5, (var(--sv-glow-lx) + 6) / 2) - 3 - var(--sv-glow-lx), 3))));
      --sv-glow-x6: calc(1 / (1 + exp(-1.5976 * (min(3.0, (var(--sv-glow-lx) + 6) / 2) - 3) - 0.07056 * pow(min(3.0, (var(--sv-glow-lx) + 6) / 2) - 3, 3))) - 1 / (1 + exp(-1.5976 * (min(3.0, (var(--sv-glow-lx) + 6) / 2) - 3 - var(--sv-glow-lx)) - 0.07056 * pow(min(3.0, (var(--sv-glow-lx) + 6) / 2) - 3 - var(--sv-glow-lx), 3))));
      --sv-glow-x7: calc(1 / (1 + exp(-1.5976 * (min(3.5, (var(--sv-glow-lx) + 6) / 2) - 3) - 0.07056 * pow(min(3.5, (var(--sv-glow-lx) + 6) / 2) - 3, 3))) - 1 / (1 + exp(-1.5976 * (min(3.5, (var(--sv-glow-lx) + 6) / 2) - 3 - var(--sv-glow-lx)) - 0.07056 * pow(min(3.5, (var(--sv-glow-lx) + 6) / 2) - 3 - var(--sv-glow-lx), 3))));
      --sv-glow-x8: calc(1 / (1 + exp(-1.5976 * (min(4.0, (var(--sv-glow-lx) + 6) / 2) - 3) - 0.07056 * pow(min(4.0, (var(--sv-glow-lx) + 6) / 2) - 3, 3))) - 1 / (1 + exp(-1.5976 * (min(4.0, (var(--sv-glow-lx) + 6) / 2) - 3 - var(--sv-glow-lx)) - 0.07056 * pow(min(4.0, (var(--sv-glow-lx) + 6) / 2) - 3 - var(--sv-glow-lx), 3))));
      --sv-glow-x9: calc(1 / (1 + exp(-1.5976 * (min(4.5, (var(--sv-glow-lx) + 6) / 2) - 3) - 0.07056 * pow(min(4.5, (var(--sv-glow-lx) + 6) / 2) - 3, 3))) - 1 / (1 + exp(-1.5976 * (min(4.5, (var(--sv-glow-lx) + 6) / 2) - 3 - var(--sv-glow-lx)) - 0.07056 * pow(min(4.5, (var(--sv-glow-lx) + 6) / 2) - 3 - var(--sv-glow-lx), 3))));
      --sv-glow-x10: calc(1 / (1 + exp(-1.5976 * (min(5.0, (var(--sv-glow-lx) + 6) / 2) - 3) - 0.07056 * pow(min(5.0, (var(--sv-glow-lx) + 6) / 2) - 3, 3))) - 1 / (1 + exp(-1.5976 * (min(5.0, (var(--sv-glow-lx) + 6) / 2) - 3 - var(--sv-glow-lx)) - 0.07056 * pow(min(5.0, (var(--sv-glow-lx) + 6) / 2) - 3 - var(--sv-glow-lx), 3))));
      --sv-glow-x11: calc(1 / (1 + exp(-1.5976 * (min(5.5, (var(--sv-glow-lx) + 6) / 2) - 3) - 0.07056 * pow(min(5.5, (var(--sv-glow-lx) + 6) / 2) - 3, 3))) - 1 / (1 + exp(-1.5976 * (min(5.5, (var(--sv-glow-lx) + 6) / 2) - 3 - var(--sv-glow-lx)) - 0.07056 * pow(min(5.5, (var(--sv-glow-lx) + 6) / 2) - 3 - var(--sv-glow-lx), 3))));
      --sv-glow-x12: calc(1 / (1 + exp(-1.5976 * (min(6.0, (var(--sv-glow-lx) + 6) / 2) - 3) - 0.07056 * pow(min(6.0, (var(--sv-glow-lx) + 6) / 2) - 3, 3))) - 1 / (1 + exp(-1.5976 * (min(6.0, (var(--sv-glow-lx) + 6) / 2) - 3 - var(--sv-glow-lx)) - 0.07056 * pow(min(6.0, (var(--sv-glow-lx) + 6) / 2) - 3 - var(--sv-glow-lx), 3))));
      --sv-glow-y0: calc(1 / (1 + exp(-1.5976 * (min(0.0, (var(--sv-glow-ly) + 6) / 2) - 3) - 0.07056 * pow(min(0.0, (var(--sv-glow-ly) + 6) / 2) - 3, 3))) - 1 / (1 + exp(-1.5976 * (min(0.0, (var(--sv-glow-ly) + 6) / 2) - 3 - var(--sv-glow-ly)) - 0.07056 * pow(min(0.0, (var(--sv-glow-ly) + 6) / 2) - 3 - var(--sv-glow-ly), 3))));
      --sv-glow-y1: calc(1 / (1 + exp(-1.5976 * (min(0.5, (var(--sv-glow-ly) + 6) / 2) - 3) - 0.07056 * pow(min(0.5, (var(--sv-glow-ly) + 6) / 2) - 3, 3))) - 1 / (1 + exp(-1.5976 * (min(0.5, (var(--sv-glow-ly) + 6) / 2) - 3 - var(--sv-glow-ly)) - 0.07056 * pow(min(0.5, (var(--sv-glow-ly) + 6) / 2) - 3 - var(--sv-glow-ly), 3))));
      --sv-glow-y2: calc(1 / (1 + exp(-1.5976 * (min(1.0, (var(--sv-glow-ly) + 6) / 2) - 3) - 0.07056 * pow(min(1.0, (var(--sv-glow-ly) + 6) / 2) - 3, 3))) - 1 / (1 + exp(-1.5976 * (min(1.0, (var(--sv-glow-ly) + 6) / 2) - 3 - var(--sv-glow-ly)) - 0.07056 * pow(min(1.0, (var(--sv-glow-ly) + 6) / 2) - 3 - var(--sv-glow-ly), 3))));
      --sv-glow-y3: calc(1 / (1 + exp(-1.5976 * (min(1.5, (var(--sv-glow-ly) + 6) / 2) - 3) - 0.07056 * pow(min(1.5, (var(--sv-glow-ly) + 6) / 2) - 3, 3))) - 1 / (1 + exp(-1.5976 * (min(1.5, (var(--sv-glow-ly) + 6) / 2) - 3 - var(--sv-glow-ly)) - 0.07056 * pow(min(1.5, (var(--sv-glow-ly) + 6) / 2) - 3 - var(--sv-glow-ly), 3))));
      --sv-glow-y4: calc(1 / (1 + exp(-1.5976 * (min(2.0, (var(--sv-glow-ly) + 6) / 2) - 3) - 0.07056 * pow(min(2.0, (var(--sv-glow-ly) + 6) / 2) - 3, 3))) - 1 / (1 + exp(-1.5976 * (min(2.0, (var(--sv-glow-ly) + 6) / 2) - 3 - var(--sv-glow-ly)) - 0.07056 * pow(min(2.0, (var(--sv-glow-ly) + 6) / 2) - 3 - var(--sv-glow-ly), 3))));
      --sv-glow-y5: calc(1 / (1 + exp(-1.5976 * (min(2.5, (var(--sv-glow-ly) + 6) / 2) - 3) - 0.07056 * pow(min(2.5, (var(--sv-glow-ly) + 6) / 2) - 3, 3))) - 1 / (1 + exp(-1.5976 * (min(2.5, (var(--sv-glow-ly) + 6) / 2) - 3 - var(--sv-glow-ly)) - 0.07056 * pow(min(2.5, (var(--sv-glow-ly) + 6) / 2) - 3 - var(--sv-glow-ly), 3))));
      --sv-glow-y6: calc(1 / (1 + exp(-1.5976 * (min(3.0, (var(--sv-glow-ly) + 6) / 2) - 3) - 0.07056 * pow(min(3.0, (var(--sv-glow-ly) + 6) / 2) - 3, 3))) - 1 / (1 + exp(-1.5976 * (min(3.0, (var(--sv-glow-ly) + 6) / 2) - 3 - var(--sv-glow-ly)) - 0.07056 * pow(min(3.0, (var(--sv-glow-ly) + 6) / 2) - 3 - var(--sv-glow-ly), 3))));
      --sv-glow-y7: calc(1 / (1 + exp(-1.5976 * (min(3.5, (var(--sv-glow-ly) + 6) / 2) - 3) - 0.07056 * pow(min(3.5, (var(--sv-glow-ly) + 6) / 2) - 3, 3))) - 1 / (1 + exp(-1.5976 * (min(3.5, (var(--sv-glow-ly) + 6) / 2) - 3 - var(--sv-glow-ly)) - 0.07056 * pow(min(3.5, (var(--sv-glow-ly) + 6) / 2) - 3 - var(--sv-glow-ly), 3))));
      --sv-glow-y8: calc(1 / (1 + exp(-1.5976 * (min(4.0, (var(--sv-glow-ly) + 6) / 2) - 3) - 0.07056 * pow(min(4.0, (var(--sv-glow-ly) + 6) / 2) - 3, 3))) - 1 / (1 + exp(-1.5976 * (min(4.0, (var(--sv-glow-ly) + 6) / 2) - 3 - var(--sv-glow-ly)) - 0.07056 * pow(min(4.0, (var(--sv-glow-ly) + 6) / 2) - 3 - var(--sv-glow-ly), 3))));
      --sv-glow-y9: calc(1 / (1 + exp(-1.5976 * (min(4.5, (var(--sv-glow-ly) + 6) / 2) - 3) - 0.07056 * pow(min(4.5, (var(--sv-glow-ly) + 6) / 2) - 3, 3))) - 1 / (1 + exp(-1.5976 * (min(4.5, (var(--sv-glow-ly) + 6) / 2) - 3 - var(--sv-glow-ly)) - 0.07056 * pow(min(4.5, (var(--sv-glow-ly) + 6) / 2) - 3 - var(--sv-glow-ly), 3))));
      --sv-glow-y10: calc(1 / (1 + exp(-1.5976 * (min(5.0, (var(--sv-glow-ly) + 6) / 2) - 3) - 0.07056 * pow(min(5.0, (var(--sv-glow-ly) + 6) / 2) - 3, 3))) - 1 / (1 + exp(-1.5976 * (min(5.0, (var(--sv-glow-ly) + 6) / 2) - 3 - var(--sv-glow-ly)) - 0.07056 * pow(min(5.0, (var(--sv-glow-ly) + 6) / 2) - 3 - var(--sv-glow-ly), 3))));
      --sv-glow-y11: calc(1 / (1 + exp(-1.5976 * (min(5.5, (var(--sv-glow-ly) + 6) / 2) - 3) - 0.07056 * pow(min(5.5, (var(--sv-glow-ly) + 6) / 2) - 3, 3))) - 1 / (1 + exp(-1.5976 * (min(5.5, (var(--sv-glow-ly) + 6) / 2) - 3 - var(--sv-glow-ly)) - 0.07056 * pow(min(5.5, (var(--sv-glow-ly) + 6) / 2) - 3 - var(--sv-glow-ly), 3))));
      --sv-glow-y12: calc(1 / (1 + exp(-1.5976 * (min(6.0, (var(--sv-glow-ly) + 6) / 2) - 3) - 0.07056 * pow(min(6.0, (var(--sv-glow-ly) + 6) / 2) - 3, 3))) - 1 / (1 + exp(-1.5976 * (min(6.0, (var(--sv-glow-ly) + 6) / 2) - 3 - var(--sv-glow-ly)) - 0.07056 * pow(min(6.0, (var(--sv-glow-ly) + 6) / 2) - 3 - var(--sv-glow-ly), 3))));
      mask-image:
        linear-gradient(to right,
          rgb(0 0 0 / var(--sv-glow-x0)) min(calc(var(--sv-glow-blur) * 0.0), 50%),
          rgb(0 0 0 / var(--sv-glow-x1)) min(calc(var(--sv-glow-blur) * 0.5), 50%),
          rgb(0 0 0 / var(--sv-glow-x2)) min(calc(var(--sv-glow-blur) * 1.0), 50%),
          rgb(0 0 0 / var(--sv-glow-x3)) min(calc(var(--sv-glow-blur) * 1.5), 50%),
          rgb(0 0 0 / var(--sv-glow-x4)) min(calc(var(--sv-glow-blur) * 2.0), 50%),
          rgb(0 0 0 / var(--sv-glow-x5)) min(calc(var(--sv-glow-blur) * 2.5), 50%),
          rgb(0 0 0 / var(--sv-glow-x6)) min(calc(var(--sv-glow-blur) * 3.0), 50%),
          rgb(0 0 0 / var(--sv-glow-x7)) min(calc(var(--sv-glow-blur) * 3.5), 50%),
          rgb(0 0 0 / var(--sv-glow-x8)) min(calc(var(--sv-glow-blur) * 4.0), 50%),
          rgb(0 0 0 / var(--sv-glow-x9)) min(calc(var(--sv-glow-blur) * 4.5), 50%),
          rgb(0 0 0 / var(--sv-glow-x10)) min(calc(var(--sv-glow-blur) * 5.0), 50%),
          rgb(0 0 0 / var(--sv-glow-x11)) min(calc(var(--sv-glow-blur) * 5.5), 50%),
          rgb(0 0 0 / var(--sv-glow-x12)) min(calc(var(--sv-glow-blur) * 6.0), 50%),
          rgb(0 0 0 / var(--sv-glow-x12)) max(calc(100% - var(--sv-glow-blur) * 6.0), 50%),
          rgb(0 0 0 / var(--sv-glow-x11)) max(calc(100% - var(--sv-glow-blur) * 5.5), 50%),
          rgb(0 0 0 / var(--sv-glow-x10)) max(calc(100% - var(--sv-glow-blur) * 5.0), 50%),
          rgb(0 0 0 / var(--sv-glow-x9)) max(calc(100% - var(--sv-glow-blur) * 4.5), 50%),
          rgb(0 0 0 / var(--sv-glow-x8)) max(calc(100% - var(--sv-glow-blur) * 4.0), 50%),
          rgb(0 0 0 / var(--sv-glow-x7)) max(calc(100% - var(--sv-glow-blur) * 3.5), 50%),
          rgb(0 0 0 / var(--sv-glow-x6)) max(calc(100% - var(--sv-glow-blur) * 3.0), 50%),
          rgb(0 0 0 / var(--sv-glow-x5)) max(calc(100% - var(--sv-glow-blur) * 2.5), 50%),
          rgb(0 0 0 / var(--sv-glow-x4)) max(calc(100% - var(--sv-glow-blur) * 2.0), 50%),
          rgb(0 0 0 / var(--sv-glow-x3)) max(calc(100% - var(--sv-glow-blur) * 1.5), 50%),
          rgb(0 0 0 / var(--sv-glow-x2)) max(calc(100% - var(--sv-glow-blur) * 1.0), 50%),
          rgb(0 0 0 / var(--sv-glow-x1)) max(calc(100% - var(--sv-glow-blur) * 0.5), 50%),
          rgb(0 0 0 / var(--sv-glow-x0)) max(calc(100% - var(--sv-glow-blur) * 0.0), 50%)),
        linear-gradient(to bottom,
          rgb(0 0 0 / var(--sv-glow-y0)) min(calc(var(--sv-glow-blur) * 0.0), 50%),
          rgb(0 0 0 / var(--sv-glow-y1)) min(calc(var(--sv-glow-blur) * 0.5), 50%),
          rgb(0 0 0 / var(--sv-glow-y2)) min(calc(var(--sv-glow-blur) * 1.0), 50%),
          rgb(0 0 0 / var(--sv-glow-y3)) min(calc(var(--sv-glow-blur) * 1.5), 50%),
          rgb(0 0 0 / var(--sv-glow-y4)) min(calc(var(--sv-glow-blur) * 2.0), 50%),
          rgb(0 0 0 / var(--sv-glow-y5)) min(calc(var(--sv-glow-blur) * 2.5), 50%),
          rgb(0 0 0 / var(--sv-glow-y6)) min(calc(var(--sv-glow-blur) * 3.0), 50%),
          rgb(0 0 0 / var(--sv-glow-y7)) min(calc(var(--sv-glow-blur) * 3.5), 50%),
          rgb(0 0 0 / var(--sv-glow-y8)) min(calc(var(--sv-glow-blur) * 4.0), 50%),
          rgb(0 0 0 / var(--sv-glow-y9)) min(calc(var(--sv-glow-blur) * 4.5), 50%),
          rgb(0 0 0 / var(--sv-glow-y10)) min(calc(var(--sv-glow-blur) * 5.0), 50%),
          rgb(0 0 0 / var(--sv-glow-y11)) min(calc(var(--sv-glow-blur) * 5.5), 50%),
          rgb(0 0 0 / var(--sv-glow-y12)) min(calc(var(--sv-glow-blur) * 6.0), 50%),
          rgb(0 0 0 / var(--sv-glow-y12)) max(calc(100% - var(--sv-glow-blur) * 6.0), 50%),
          rgb(0 0 0 / var(--sv-glow-y11)) max(calc(100% - var(--sv-glow-blur) * 5.5), 50%),
          rgb(0 0 0 / var(--sv-glow-y10)) max(calc(100% - var(--sv-glow-blur) * 5.0), 50%),
          rgb(0 0 0 / var(--sv-glow-y9)) max(calc(100% - var(--sv-glow-blur) * 4.5), 50%),
          rgb(0 0 0 / var(--sv-glow-y8)) max(calc(100% - var(--sv-glow-blur) * 4.0), 50%),
          rgb(0 0 0 / var(--sv-glow-y7)) max(calc(100% - var(--sv-glow-blur) * 3.5), 50%),
          rgb(0 0 0 / var(--sv-glow-y6)) max(calc(100% - var(--sv-glow-blur) * 3.0), 50%),
          rgb(0 0 0 / var(--sv-glow-y5)) max(calc(100% - var(--sv-glow-blur) * 2.5), 50%),
          rgb(0 0 0 / var(--sv-glow-y4)) max(calc(100% - var(--sv-glow-blur) * 2.0), 50%),
          rgb(0 0 0 / var(--sv-glow-y3)) max(calc(100% - var(--sv-glow-blur) * 1.5), 50%),
          rgb(0 0 0 / var(--sv-glow-y2)) max(calc(100% - var(--sv-glow-blur) * 1.0), 50%),
          rgb(0 0 0 / var(--sv-glow-y1)) max(calc(100% - var(--sv-glow-blur) * 0.5), 50%),
          rgb(0 0 0 / var(--sv-glow-y0)) max(calc(100% - var(--sv-glow-blur) * 0.0), 50%));
      mask-composite: intersect;
    }
  }

  /* Decoration only — nothing to keep when the user has asked for system colours. */
  @media (forced-colors: active) {
    .sv-glow,
    .sv-glow-rect {
      display: none;
    }
  }
}
/* <<< generated: sv-glow */

/* ============================================================
   Pause off-screen — SvPauseOffscreenDirective (@styloviz/core)
   ============================================================
   The directive marks its host `data-sv-offscreen` while it is out of view;
   every CSS animation under it — pseudo-elements included — holds its place
   until it returns. `!important` on this one property because components set
   the `animation` shorthand, which resets play-state with its own specificity.
   ============================================================ */
[data-sv-offscreen],
[data-sv-offscreen]::before,
[data-sv-offscreen]::after,
[data-sv-offscreen] *,
[data-sv-offscreen] *::before,
[data-sv-offscreen] *::after {
  animation-play-state: paused !important;
}
