/*! VibeFox JS Ui v1.0.0 | (c) VibeFox | commercial subscription license */
/* theme tokens (S31): inherited, initial value = the light theme */
@property --vfjs-bg { syntax: "*"; inherits: true; initial-value: #ffffff; }
@property --vfjs-fg { syntax: "*"; inherits: true; initial-value: #1f2328; }
@property --vfjs-border { syntax: "*"; inherits: true; initial-value: #d7dbe0; }
@property --vfjs-accent { syntax: "*"; inherits: true; initial-value: #2563eb; }
@property --vfjs-accent-fg { syntax: "*"; inherits: true; initial-value: #ffffff; }
@property --vfjs-muted { syntax: "*"; inherits: true; initial-value: #6b7280; }
@property --vfjs-surface { syntax: "*"; inherits: true; initial-value: #f6f8fa; }
@property --vfjs-radius { syntax: "*"; inherits: true; initial-value: 6px; }
@property --vfjs-font { syntax: "*"; inherits: true; initial-value: -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; }
@property --vfjs-shadow { syntax: "*"; inherits: true; initial-value: 0 4px 16px rgba(15, 23, 42, .12); }
@property --vfjs-palette-0 { syntax: "*"; inherits: true; initial-value: #3b82f6; }
@property --vfjs-palette-1 { syntax: "*"; inherits: true; initial-value: #10b981; }
@property --vfjs-palette-2 { syntax: "*"; inherits: true; initial-value: #f59e0b; }
@property --vfjs-palette-3 { syntax: "*"; inherits: true; initial-value: #ef4444; }
@property --vfjs-palette-4 { syntax: "*"; inherits: true; initial-value: #8b5cf6; }
@property --vfjs-palette-5 { syntax: "*"; inherits: true; initial-value: #06b6d4; }
@property --vfjs-palette-6 { syntax: "*"; inherits: true; initial-value: #ec4899; }
@property --vfjs-palette-7 { syntax: "*"; inherits: true; initial-value: #84cc16; }
@property --vfjs-palette-8 { syntax: "*"; inherits: true; initial-value: #6366f1; }
@property --vfjs-palette-9 { syntax: "*"; inherits: true; initial-value: #14b8a6; }
@layer vfjs {
  /* markers: the JS checks them to warn when this file is not linked */
  :root { --vfjs-css-core: 1; --vfjs-css-ui: 1; }

  /* core: theme variables + base */
  :root {
    --vfjs-density: 1;
    --vfjs-theme-density: 1;
    --vfjs-space-unit: calc(var(--vfjs-size-unit) * 4);
    --vfjs-size-unit: 1px;
    --vfjs-em: 1em;
    --vfjs-aspect-ratio: 2 / 1;
    --vfjs-font-size: 13px;
    --vfjs-font-mono: ui-monospace, Consolas, 'Cascadia Mono', monospace;
    --vfjs-font-serif: Charter, 'Bitstream Charter', 'Sitka Text', Cambria, Georgia, 'Times New Roman', serif;
    --vfjs-font-weight-normal: 400;
    --vfjs-font-weight-medium: 500;
    --vfjs-font-weight-semibold: 600;
    --vfjs-font-weight-bold: 700;
    --vfjs-line-height-none: 1;
    --vfjs-line-height-tight: 1.2;
    --vfjs-line-height-snug: 1.3;
    --vfjs-line-height: 1.5;
    --vfjs-line-height-relaxed: 1.6;
    --vfjs-letter-spacing-caps: .05em;
    --vfjs-font-size-h1: 1.9em;
    --vfjs-font-size-h2: 1.55em;
    --vfjs-font-size-h3: 1.28em;
    --vfjs-font-size-h4: 1.1em;
    --vfjs-font-size-code: .9em;
    --vfjs-border-width: 1px;
    --vfjs-border-width-thick: 2px;
    --vfjs-border-style: solid;
    --vfjs-stroke-width: 1px;
    --vfjs-disabled-opacity: .5;
    --vfjs-hover-brightness: 1.1;
    --vfjs-focus-ring-width: 2px;
    --vfjs-focus-ring-offset: 2px;
    --vfjs-focus-ring-style: solid;
    --vfjs-motion-duration: 150ms;
    --vfjs-motion-easing: ease;
    --vfjs-motion-reduced-duration: 0.01ms;
    --vfjs-shadow-xs: 0 1px 2px rgba(0, 0, 0, .25);
    --vfjs-shadow-sm: 0 1px 3px rgba(0, 0, 0, .3);
    --vfjs-shadow-lg: 0 12px 32px rgba(15, 23, 42, .2);
    --vfjs-shadow-edge-start: 2px 0 4px -2px rgba(0, 0, 0, .25);
    --vfjs-shadow-edge-end: -2px 0 4px -2px rgba(0, 0, 0, .25);
    --vfjs-shadow-edge-start-soft: 2px 0 4px -2px rgba(0, 0, 0, .2);
    --vfjs-shadow-edge-end-soft: -2px 0 4px -2px rgba(0, 0, 0, .2);
    --vfjs-z-base: 0;
    --vfjs-z-drag: 9999;
    --vfjs-z-dropdown: 10500;
    --vfjs-z-drawer: 10800;
    --vfjs-z-toast: 11000;
    --vfjs-z-tooltip: 11500;
    --vfjs-z-tour: 11600;
    --vfjs-z-modal: 11800;
    --vfjs-white: #ffffff;
    --vfjs-black: #000000;
    --vfjs-slate-250: #d6dce8;
    --vfjs-slate-400: #94a3b8;
    --vfjs-slate-500: #64748b;
    --vfjs-slate-850: #2a2e39;
    --vfjs-slate-900: #0f172a;
    --vfjs-blue-100: #dbeafe;
    --vfjs-blue-300: #93c5fd;
    --vfjs-blue-400: #60a5fa;
    --vfjs-blue-500: #3b82f6;
    --vfjs-blue-800: #1e40af;
    --vfjs-blue-850: #1e3a5f;
    --vfjs-indigo-400: #818cf8;
    --vfjs-indigo-500: #6366f1;
    --vfjs-violet-400: #a78bfa;
    --vfjs-violet-500: #8b5cf6;
    --vfjs-purple-500: #a855f7;
    --vfjs-pink-400: #f472b6;
    --vfjs-pink-500: #ec4899;
    --vfjs-red-400: #f87171;
    --vfjs-red-450: #ef5350;
    --vfjs-red-500: #ef4444;
    --vfjs-red-550: #e5484d;
    --vfjs-red-600: #dc2626;
    --vfjs-amber-400: #fbbf24;
    --vfjs-amber-450: #f5a524;
    --vfjs-amber-500: #f59e0b;
    --vfjs-amber-600: #d97706;
    --vfjs-lime-400: #a3e635;
    --vfjs-lime-500: #84cc16;
    --vfjs-green-500: #22c55e;
    --vfjs-green-600: #16a34a;
    --vfjs-green-650: #4d9e63;
    --vfjs-green-700: #15803d;
    --vfjs-emerald-400: #34d399;
    --vfjs-emerald-500: #10b981;
    --vfjs-teal-400: #2dd4bf;
    --vfjs-teal-450: #26a69a;
    --vfjs-teal-500: #14b8a6;
    --vfjs-cyan-400: #22d3ee;
    --vfjs-cyan-500: #06b6d4;
    --vfjs-brown-400: #b08968;
  }
  [data-vfjs-density="compact"] { --vfjs-density: .75; }
  [data-vfjs-density="normal"] { --vfjs-density: 1; }
  [data-vfjs-density="comfortable"] { --vfjs-density: 1.25; }
  .vfjs {
    --vfjs-space: var(--_vfjs-space, calc(var(--vfjs-space-unit) * var(--vfjs-density) * var(--vfjs-theme-density)));
    --vfjs-space-1: var(--_vfjs-space-1, var(--vfjs-space));
    --vfjs-space-2: var(--_vfjs-space-2, calc(var(--vfjs-space) * 2));
    --vfjs-space-3: var(--_vfjs-space-3, calc(var(--vfjs-space) * 3));
    --vfjs-space-4: var(--_vfjs-space-4, calc(var(--vfjs-space) * 4));
    --vfjs-space-5: var(--_vfjs-space-5, calc(var(--vfjs-space) * 5));
    --vfjs-space-6: var(--_vfjs-space-6, calc(var(--vfjs-space) * 6));
    --vfjs-space-8: var(--_vfjs-space-8, calc(var(--vfjs-space) * 8));
    --vfjs-control-height-xs: var(--_vfjs-control-height-xs, calc(var(--vfjs-size-unit) * 26 * var(--vfjs-density) * var(--vfjs-theme-density)));
    --vfjs-control-height-sm: var(--_vfjs-control-height-sm, calc(var(--vfjs-size-unit) * 28 * var(--vfjs-density) * var(--vfjs-theme-density)));
    --vfjs-control-height: var(--_vfjs-control-height, calc(var(--vfjs-size-unit) * 32 * var(--vfjs-density) * var(--vfjs-theme-density)));
    --vfjs-control-height-lg: var(--_vfjs-control-height-lg, calc(var(--vfjs-size-unit) * 40 * var(--vfjs-density) * var(--vfjs-theme-density)));
    --vfjs-icon-size: var(--_vfjs-icon-size, calc(var(--vfjs-size-unit) * 16));
    --vfjs-font-size-3xs: var(--_vfjs-font-size-3xs, calc(var(--vfjs-font-size) - 4px));
    --vfjs-font-size-2xs: var(--_vfjs-font-size-2xs, calc(var(--vfjs-font-size) - 3px));
    --vfjs-font-size-xs: var(--_vfjs-font-size-xs, calc(var(--vfjs-font-size) - 2px));
    --vfjs-font-size-sm: var(--_vfjs-font-size-sm, calc(var(--vfjs-font-size) - 1px));
    --vfjs-font-size-lg: var(--_vfjs-font-size-lg, calc(var(--vfjs-font-size) + 1px));
    --vfjs-font-size-xl: var(--_vfjs-font-size-xl, calc(var(--vfjs-font-size) + 2px));
    --vfjs-font-size-2xl: var(--_vfjs-font-size-2xl, calc(var(--vfjs-font-size) + 3px));
    --vfjs-font-size-3xl: var(--_vfjs-font-size-3xl, calc(var(--vfjs-font-size) + 5px));
    --vfjs-font-size-4xl: var(--_vfjs-font-size-4xl, calc(var(--vfjs-font-size) + 7px));
    --vfjs-font-size-5xl: var(--_vfjs-font-size-5xl, calc(var(--vfjs-font-size) + 11px));
    --vfjs-radius-xs: var(--_vfjs-radius-xs, calc(var(--vfjs-radius) / 3));
    --vfjs-radius-sm: var(--_vfjs-radius-sm, calc(var(--vfjs-radius) / 2));
    --vfjs-radius-md: var(--_vfjs-radius-md, calc(var(--vfjs-radius) * 2 / 3));
    --vfjs-radius-lg: var(--_vfjs-radius-lg, calc(var(--vfjs-radius) * 1.5));
    --vfjs-radius-xl: var(--_vfjs-radius-xl, calc(var(--vfjs-radius) * 5 / 3));
    --vfjs-radius-full: var(--_vfjs-radius-full, 50%);
    --vfjs-radius-pill: var(--_vfjs-radius-pill, 9999px);
    --vfjs-motion-duration-fast: var(--_vfjs-motion-duration-fast, calc(var(--vfjs-motion-duration) * .8));
    --vfjs-motion-duration-slow: var(--_vfjs-motion-duration-slow, calc(var(--vfjs-motion-duration) * 5 / 3));
    --vfjs-danger: var(--_vfjs-danger, var(--vfjs-red-600));
    --vfjs-danger-fg: var(--_vfjs-danger-fg, var(--vfjs-white));
    --vfjs-danger-soft: var(--_vfjs-danger-soft, color-mix(in srgb, var(--vfjs-danger) 12%, transparent));
    --vfjs-success: var(--_vfjs-success, var(--vfjs-green-700));
    --vfjs-success-fg: var(--_vfjs-success-fg, var(--vfjs-white));
    --vfjs-success-soft: var(--_vfjs-success-soft, color-mix(in srgb, var(--vfjs-success) 12%, transparent));
    --vfjs-warning: var(--_vfjs-warning, var(--vfjs-amber-600));
    --vfjs-warning-fg: var(--_vfjs-warning-fg, var(--vfjs-slate-900));
    --vfjs-warning-soft: var(--_vfjs-warning-soft, color-mix(in srgb, var(--vfjs-warning) 12%, transparent));
    --vfjs-info: var(--_vfjs-info, var(--vfjs-accent));
    --vfjs-info-fg: var(--_vfjs-info-fg, var(--vfjs-accent-fg));
    --vfjs-info-soft: var(--_vfjs-info-soft, color-mix(in srgb, var(--vfjs-info) 12%, transparent));
    --vfjs-critical: var(--_vfjs-critical, var(--vfjs-danger));
    --vfjs-critical-fg: var(--_vfjs-critical-fg, var(--vfjs-danger-fg));
    --vfjs-up: var(--_vfjs-up, var(--vfjs-teal-450));
    --vfjs-down: var(--_vfjs-down, var(--vfjs-red-450));
    --vfjs-hover-bg: var(--_vfjs-hover-bg, var(--vfjs-surface));
    --vfjs-hover-fg: var(--_vfjs-hover-fg, var(--vfjs-fg));
    --vfjs-active-bg: var(--_vfjs-active-bg, color-mix(in srgb, var(--vfjs-fg) 10%, transparent));
    --vfjs-selected-bg: var(--_vfjs-selected-bg, color-mix(in srgb, var(--vfjs-accent) 14%, transparent));
    --vfjs-selected-fg: var(--_vfjs-selected-fg, var(--vfjs-accent));
    --vfjs-selected-strong-bg: var(--_vfjs-selected-strong-bg, var(--vfjs-accent));
    --vfjs-selected-strong-fg: var(--_vfjs-selected-strong-fg, var(--vfjs-accent-fg));
    --vfjs-accent-soft: var(--_vfjs-accent-soft, color-mix(in srgb, var(--vfjs-accent) 12%, transparent));
    --vfjs-disabled-fg: var(--_vfjs-disabled-fg, var(--vfjs-muted));
    --vfjs-disabled-bg: var(--_vfjs-disabled-bg, var(--vfjs-surface));
    --vfjs-backdrop: var(--_vfjs-backdrop, color-mix(in srgb, var(--vfjs-black) 45%, transparent));
    --vfjs-code-attr: var(--_vfjs-code-attr, var(--vfjs-brown-400));
    --vfjs-code-string: var(--_vfjs-code-string, var(--vfjs-green-650));
  }
  [data-vfjs-theme="light"]:where(:not(.vfjs), [data-vfjs-theme-own], :not([data-vfjs-theme="light"] *):is([data-vfjs-theme] *)) {
    --vfjs-bg: #ffffff;
    --vfjs-fg: #1f2328;
    --vfjs-border: #d7dbe0;
    --vfjs-accent: #2563eb;
    --vfjs-accent-fg: #ffffff;
    --vfjs-muted: #6b7280;
    --vfjs-surface: #f6f8fa;
    --vfjs-radius: 6px;
    --vfjs-font: -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --vfjs-shadow: 0 4px 16px rgba(15, 23, 42, .12);
    --vfjs-palette-0: #3b82f6;
    --vfjs-palette-1: #10b981;
    --vfjs-palette-2: #f59e0b;
    --vfjs-palette-3: #ef4444;
    --vfjs-palette-4: #8b5cf6;
    --vfjs-palette-5: #06b6d4;
    --vfjs-palette-6: #ec4899;
    --vfjs-palette-7: #84cc16;
    --vfjs-palette-8: #6366f1;
    --vfjs-palette-9: #14b8a6;
  }
  [data-vfjs-theme="dark"]:where(:not(.vfjs), [data-vfjs-theme-own], :not([data-vfjs-theme="dark"] *)) {
    --vfjs-bg: #16181d;
    --vfjs-fg: #e6e9ef;
    --vfjs-border: #30353d;
    --vfjs-accent: #4f8ff7;
    --vfjs-accent-fg: #0b1220;
    --vfjs-muted: #98a1b3;
    --vfjs-surface: #1e2128;
    --vfjs-radius: 6px;
    --vfjs-font: -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --vfjs-shadow: 0 4px 16px rgba(0, 0, 0, .45);
    --vfjs-palette-0: #60a5fa;
    --vfjs-palette-1: #34d399;
    --vfjs-palette-2: #fbbf24;
    --vfjs-palette-3: #f87171;
    --vfjs-palette-4: #a78bfa;
    --vfjs-palette-5: #22d3ee;
    --vfjs-palette-6: #f472b6;
    --vfjs-palette-7: #a3e635;
    --vfjs-palette-8: #818cf8;
    --vfjs-palette-9: #2dd4bf;
  }
  [data-vfjs-theme="high-contrast"]:where(:not(.vfjs), [data-vfjs-theme-own], :not([data-vfjs-theme="high-contrast"] *)) {
    --vfjs-bg: #000000;
    --vfjs-fg: #ffffff;
    --vfjs-border: #ffffff;
    --vfjs-accent: #ffd400;
    --vfjs-accent-fg: #000000;
    --vfjs-muted: #d9d9d9;
    --vfjs-surface: #0d0d0d;
    --vfjs-radius: 6px;
    --vfjs-font: -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --vfjs-shadow: none;
    --vfjs-focus-ring-color: #00e5ff;
    --vfjs-palette-0: #3b82f6;
    --vfjs-palette-1: #10b981;
    --vfjs-palette-2: #f59e0b;
    --vfjs-palette-3: #ef4444;
    --vfjs-palette-4: #8b5cf6;
    --vfjs-palette-5: #06b6d4;
    --vfjs-palette-6: #ec4899;
    --vfjs-palette-7: #84cc16;
    --vfjs-palette-8: #6366f1;
    --vfjs-palette-9: #14b8a6;
  }
  .vfjs[data-vfjs-theme="high-contrast"] {
    --vfjs-focus-ring-width: 3px;
  }

  .vfjs {
    font-family: var(--vfjs-font);
    color: var(--vfjs-fg);
    box-sizing: border-box;
    *, *::before, *::after { box-sizing: inherit; }
    ::selection { background: var(--vfjs-accent); color: var(--vfjs-accent-fg); }
  }
  .vfjs-scroll {
    &::-webkit-scrollbar { width: calc(var(--vfjs-size-unit) * 10); height: calc(var(--vfjs-size-unit) * 10); }
    &::-webkit-scrollbar-thumb { background: var(--vfjs-border); border-radius: var(--vfjs-radius); }
    &::-webkit-scrollbar-track { background: transparent; }
  }
  /* S8: host element of a Web Component (vibefox-js-<pkg>-wc.js); the component is mounted inside it */
  [data-vfjs-wc] { display: block;
    &[hidden] { display: none; }
  }
  [data-vfjs-wc='inline'] { display: inline-block; vertical-align: middle; }


  .vfjs :focus-visible {
    outline: var(--vfjs-focus-ring-width) var(--vfjs-focus-ring-style) var(--vfjs-focus-ring-color, var(--vfjs-accent));
    outline-offset: var(--vfjs-focus-ring-offset);
  }
  .vfjs-sr-only {
    position: absolute;
    width: var(--vfjs-size-unit);
    height: var(--vfjs-size-unit);
    margin: calc(var(--vfjs-size-unit) * -1);
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
  @media (prefers-reduced-motion: reduce) {
    :root { --vfjs-motion-duration: 0ms; }
    .vfjs.vfjs.vfjs, .vfjs.vfjs.vfjs *, .vfjs.vfjs.vfjs *::before, .vfjs.vfjs.vfjs *::after {
      animation-duration: var(--vfjs-motion-reduced-duration);
      animation-iteration-count: 1;
      transition-duration: var(--vfjs-motion-reduced-duration);
      scroll-behavior: auto;
    }
  }
  @media (forced-colors: active) {
    .vfjs.vfjs.vfjs.vfjs {
      --vfjs-bg: Canvas;
      --vfjs-fg: CanvasText;
      --vfjs-surface: Canvas;
      --vfjs-border: CanvasText;
      --vfjs-muted: GrayText;
      --vfjs-accent: Highlight;
      --vfjs-accent-fg: HighlightText;
      --vfjs-shadow: none;
      --vfjs-focus-ring-color: Highlight;
    }
  }

  /* ui */
  /* S17 part variables: change one place (on .vfjs, the component root or a theme); defaults = global tokens */
  .vfjs {
    --_vfjs-ui-popup-bg: var(--vfjs-ui-popup-bg, var(--vfjs-bg));
    --_vfjs-ui-popup-fg: var(--vfjs-ui-popup-fg, var(--vfjs-fg));
    --_vfjs-ui-popup-border: var(--vfjs-ui-popup-border, var(--vfjs-border-width) solid var(--vfjs-border));
    --_vfjs-ui-popup-radius: var(--vfjs-ui-popup-radius, var(--vfjs-radius));
    --_vfjs-ui-btn-radius: var(--vfjs-ui-btn-radius, var(--vfjs-radius));
    --_vfjs-ui-btn-height: var(--vfjs-ui-btn-height, var(--vfjs-control-height));
    --_vfjs-ui-field-height: var(--vfjs-ui-field-height, var(--vfjs-control-height));
    --_vfjs-ui-field-bg: var(--vfjs-ui-field-bg, var(--vfjs-bg));
    /* U8 (WCAG 2.2 AA): colors that keep 3:1 / 4.5:1 in every theme of the set (S11) and every variant (U14) —
       boundary of fields / check boxes / switch tracks (1.4.11), accent text on soft accent fills and secondary text on
       tinted surfaces (1.4.3); mixes of the theme tokens, so a registered theme gets them too */
    --_vfjs-ui-control-border: var(--vfjs-ui-control-border, color-mix(in srgb, var(--vfjs-muted) 80%, var(--vfjs-border)));
    --_vfjs-ui-accent-text: var(--vfjs-ui-accent-text, color-mix(in srgb, var(--vfjs-accent) 75%, var(--vfjs-fg)));
    --_vfjs-ui-subtle-fg: var(--vfjs-ui-subtle-fg, color-mix(in srgb, var(--vfjs-muted) 80%, var(--vfjs-fg)));
    /* U8: smallest pointer target (2.5.8) of the small buttons inside fields, chips, tiles, chat, dots */
    --_vfjs-ui-target-min: var(--vfjs-ui-target-min, calc(var(--vfjs-size-unit) * 24));
    /* U8 (1.4.11 states): pressed toggle buttons get a ring, the active row of a command list a bar at its start,
       selected options a bold weight — a cue that does not depend on the soft fill alone */
    --_vfjs-ui-pressed-ring: var(--vfjs-ui-pressed-ring, inset 0 0 0 var(--vfjs-border-width) var(--_vfjs-ui-accent-text));
    --_vfjs-ui-field-border: var(--vfjs-ui-field-border, var(--vfjs-border-width) solid var(--_vfjs-ui-control-border));
    --_vfjs-ui-field-radius: var(--vfjs-ui-field-radius, var(--vfjs-radius));
    --_vfjs-ui-field-focus-ring: var(--vfjs-ui-field-focus-ring, 0 0 0 calc(var(--vfjs-size-unit) * 3) color-mix(in srgb, var(--vfjs-accent) 22%, transparent));
    --_vfjs-ui-invalid-color: var(--vfjs-ui-invalid-color, var(--vfjs-danger));
    --_vfjs-ui-item-hover-bg: var(--vfjs-ui-item-hover-bg, var(--vfjs-hover-bg));
    --_vfjs-ui-disabled-opacity: var(--vfjs-ui-disabled-opacity, var(--vfjs-disabled-opacity));
    /* S24: sizes the script uses (read with cssLength; follow --vfjs-size-unit) */
    --_vfjs-ui-popup-gap: calc(var(--vfjs-size-unit) * 6);
    --_vfjs-ui-dropdown-gap: calc(var(--vfjs-size-unit) * 4);
    --_vfjs-ui-popup-margin: calc(var(--vfjs-size-unit) * 4);
    --_vfjs-ui-dialog-cascade: calc(var(--vfjs-size-unit) * 24);
    --_vfjs-ui-drawer-size: calc(var(--vfjs-size-unit) * 320);
    --_vfjs-ui-tour-padding: calc(var(--vfjs-size-unit) * 6);
    /* U8 (1.4.3): placeholders in the secondary text color (the browser default #757575 is under 4.5:1 on dark / tinted fields) */
    :is(input, textarea)::placeholder { color: var(--vfjs-muted); opacity: 1; }
  }
  /* ---------- shared ---------- */
  .vfjs-ui-icon { flex: none; vertical-align: calc(var(--vfjs-size-unit) * -3); }
  .vfjs-ui-float { position: fixed; z-index: var(--vfjs-z-dropdown); background: var(--_vfjs-ui-popup-bg); color: var(--_vfjs-ui-popup-fg);
    border: var(--_vfjs-ui-popup-border); border-radius: var(--_vfjs-ui-popup-radius); box-shadow: var(--vfjs-ui-popup-shadow, var(--vfjs-shadow)); }
  @keyframes vfjs-ui-spin { to { transform: rotate(360deg); } }
  @keyframes vfjs-ui-fade { from { opacity: 0; transform: translateY(calc(var(--vfjs-size-unit) * 4)); } to { opacity: 1; transform: none; } }
  @keyframes vfjs-ui-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

  /* ---------- button ---------- */
  .vfjs-ui-btn { display: inline-flex; align-items: center; justify-content: center; gap: calc(var(--vfjs-space) * 1.75);
    font: inherit; font-weight: var(--vfjs-ui-btn-font-weight, var(--vfjs-font-weight-medium)); cursor: pointer; user-select: none; white-space: nowrap;
    height: calc(var(--vfjs-ui-btn-height-sm, var(--vfjs-control-height-xs)) * var(--vfjs-ui-is-s) + var(--_vfjs-ui-btn-height) * var(--vfjs-ui-is-m) + var(--vfjs-ui-btn-height-lg, var(--vfjs-control-height-lg)) * var(--vfjs-ui-is-l));
    padding: 0 calc(var(--vfjs-space) * (2.5 * var(--vfjs-ui-is-s) + 3.5 * var(--vfjs-ui-is-m) + 5 * var(--vfjs-ui-is-l))); font-size: var(--vfjs-ui-font-size);
    background: var(--vfjs-ui-btn-bg, var(--_vfjs-ui-btn-bg)); color: var(--vfjs-ui-btn-fg, var(--vfjs-ui-btn-primary-fg, var(--vfjs-accent-fg)));
    border: var(--vfjs-border-width) solid var(--vfjs-ui-btn-border-color, transparent); border-radius: var(--_vfjs-ui-btn-radius); transition: filter var(--vfjs-motion-duration-fast), background var(--vfjs-motion-duration-fast), opacity var(--vfjs-motion-duration-fast);
    &:focus-visible { outline: var(--vfjs-focus-ring-width) var(--vfjs-focus-ring-style) var(--vfjs-focus-ring-color, var(--vfjs-accent)); outline-offset: var(--vfjs-focus-ring-offset); }
    &[disabled] { opacity: var(--_vfjs-ui-disabled-opacity); cursor: not-allowed; }
    /* U14: a variant class = the button variables (the same variables a variant of the root / a container sets).
       U20: a button without its own variant has the class of the look it shows + vfjs-ui-btn--default: the class is a
       hook for your CSS, the look stays with the variables of the root / a container (so they can be set there). */
    &:hover:not([disabled]) { background: var(--vfjs-ui-btn-hover-bg, var(--_vfjs-ui-btn-hover-bg)); border-color: var(--vfjs-ui-btn-hover-border-color, var(--_vfjs-ui-btn-hover-border-color)); filter: var(--vfjs-ui-btn-hover-filter, brightness(var(--vfjs-hover-brightness))); }
  }
  .vfjs-ui-btn--md { height: var(--_vfjs-ui-btn-height); padding: 0 calc(var(--vfjs-space) * 3.5); font-size: var(--vfjs-font-size); }
  .vfjs-ui-btn--sm { height: var(--vfjs-ui-btn-height-sm, var(--vfjs-control-height-xs)); padding: 0 calc(var(--vfjs-space) * 2.5); font-size: var(--vfjs-font-size-sm); }
  .vfjs-ui-btn--lg { height: var(--vfjs-ui-btn-height-lg, var(--vfjs-control-height-lg)); padding: 0 var(--vfjs-space-5); font-size: var(--vfjs-font-size-lg); }
  .vfjs-ui-btn--primary:not(:where(.vfjs-ui-btn--default)), .vfjs-ui-btn--filled:not(:where(.vfjs-ui-btn--default)) { --vfjs-ui-btn-bg: var(--vfjs-ui-btn-primary-bg, var(--vfjs-accent)); --vfjs-ui-btn-fg: var(--vfjs-ui-btn-primary-fg, var(--vfjs-accent-fg)); --vfjs-ui-btn-border-color: transparent;
    --vfjs-ui-btn-hover-bg: var(--vfjs-ui-btn-primary-bg, var(--vfjs-accent)); --vfjs-ui-btn-hover-border-color: transparent; --vfjs-ui-btn-hover-filter: brightness(var(--vfjs-hover-brightness)); }
  .vfjs-ui-btn--secondary { --vfjs-ui-btn-bg: var(--vfjs-ui-btn-secondary-bg, var(--vfjs-surface)); --vfjs-ui-btn-fg: var(--vfjs-ui-btn-secondary-fg, var(--vfjs-fg)); --vfjs-ui-btn-border-color: var(--vfjs-ui-btn-secondary-border, var(--vfjs-border));
    --vfjs-ui-btn-hover-bg: var(--vfjs-ui-btn-secondary-bg, var(--vfjs-surface)); --vfjs-ui-btn-hover-border-color: var(--vfjs-accent); --vfjs-ui-btn-hover-filter: none; }
  .vfjs-ui-btn--outline:not(:where(.vfjs-ui-btn--default)) { --vfjs-ui-btn-bg: var(--vfjs-ui-btn-outline-bg, var(--_vfjs-ui-outline-bg)); --vfjs-ui-btn-fg: var(--vfjs-ui-btn-outline-fg, var(--_vfjs-ui-outline-accent)); --vfjs-ui-btn-border-color: var(--_vfjs-ui-btn-outline-border);
    --vfjs-ui-btn-hover-bg: var(--vfjs-ui-btn-outline-hover-bg, color-mix(in srgb, var(--_vfjs-ui-outline-accent) 12%, transparent)); --vfjs-ui-btn-hover-border-color: var(--_vfjs-ui-btn-outline-border); --vfjs-ui-btn-hover-filter: none; }
  .vfjs-ui-btn--ghost:not(:where(.vfjs-ui-btn--default)) { --vfjs-ui-btn-bg: var(--vfjs-ui-btn-ghost-bg, var(--_vfjs-ui-ghost-bg)); --vfjs-ui-btn-fg: var(--vfjs-ui-btn-ghost-fg, var(--vfjs-fg)); --vfjs-ui-btn-border-color: transparent;
    --vfjs-ui-btn-hover-bg: var(--vfjs-ui-btn-ghost-hover-bg, var(--vfjs-surface)); --vfjs-ui-btn-hover-border-color: transparent; --vfjs-ui-btn-hover-filter: none; }
  .vfjs-ui-btn--danger { --vfjs-ui-btn-bg: var(--vfjs-ui-btn-danger-bg, var(--vfjs-danger)); --vfjs-ui-btn-fg: var(--vfjs-ui-btn-danger-fg, var(--vfjs-danger-fg)); --vfjs-ui-btn-border-color: transparent;
    --vfjs-ui-btn-hover-bg: var(--vfjs-ui-btn-danger-bg, var(--vfjs-danger)); --vfjs-ui-btn-hover-border-color: transparent; --vfjs-ui-btn-hover-filter: brightness(calc(var(--vfjs-hover-brightness) + 0.02)); }
  .vfjs-ui-btn--block { display: flex; width: 100%; }
  .vfjs-ui-btn__spinner svg { animation: vfjs-ui-spin calc(var(--vfjs-motion-duration) * 16 / 3) linear infinite; }

  /* ---------- input / number ---------- */
  .vfjs-ui-field { display: inline-flex; align-items: center; gap: calc(var(--vfjs-space) * 1.5 * var(--vfjs-ui-scale)); width: 100%; height: calc(var(--_vfjs-ui-field-height) * var(--vfjs-ui-scale)); padding: 0 calc(var(--vfjs-space) * 2.25 * var(--vfjs-ui-scale));
    background: var(--_vfjs-ui-field-bg); border: var(--_vfjs-ui-field-border); border-radius: var(--_vfjs-ui-field-radius);
    color: var(--vfjs-ui-field-fg, var(--vfjs-fg)); transition: border-color var(--vfjs-motion-duration-fast), box-shadow var(--vfjs-motion-duration-fast);
    &:focus-within { border-color: var(--vfjs-accent); box-shadow: var(--_vfjs-ui-field-focus-ring); }
    /* U20: ONE keyboard focus ring on a text field: the ring of the field box (over its border, along the rounded corners,
       >= 3:1 like every focus ring), the inner <input> / <textarea> draws none (it was a second, square ring) */
    &:has(:is(input, textarea):focus-visible) { outline: var(--vfjs-focus-ring-width) var(--vfjs-focus-ring-style) var(--vfjs-focus-ring-color, var(--vfjs-accent)); outline-offset: calc(var(--vfjs-border-width) * -1); }
  }
  @supports selector(:has(*)) {
    .vfjs-ui-field :is(input, textarea):focus-visible { outline: 0; }
  }
  .vfjs-ui-field--disabled { opacity: .55; pointer-events: none; }
  .vfjs-ui-field--invalid { border-color: var(--_vfjs-ui-invalid-color); }
  .vfjs-ui-field {
    input { flex: 1; align-self: stretch; min-width: 0; border: 0; outline: 0; background: transparent; color: inherit; font: inherit; font-size: var(--vfjs-ui-font-size);
      &::placeholder { color: var(--vfjs-muted); }
    }
  }
  .vfjs-ui-field__affix { color: var(--vfjs-muted); font-size: var(--vfjs-ui-font-size-sm); display: inline-flex; align-items: center;
    &[hidden] { display: none; }
  }
  .vfjs-ui-field__btn { display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent;
    color: var(--vfjs-muted); cursor: pointer; padding: calc(var(--vfjs-space) * 0.5); border-radius: var(--vfjs-radius-md);
    min-inline-size: var(--_vfjs-ui-target-min); min-block-size: var(--_vfjs-ui-target-min);
    &:hover { color: var(--vfjs-fg); background: var(--vfjs-surface); }
  }
  .vfjs-ui-number__spin { display: flex; flex-direction: column; margin-inline-end: calc(var(--vfjs-size-unit) * -5);
    .vfjs-ui-field__btn { min-block-size: 0;
      & { height: calc(var(--vfjs-size-unit) * 13); }
    }
  }

  /* ---------- select ---------- */
  .vfjs-ui-select__control { cursor: pointer; flex-wrap: wrap; height: auto; min-height: calc(var(--_vfjs-ui-field-height) * var(--vfjs-ui-scale)); padding: calc(var(--vfjs-space) * 0.75 * var(--vfjs-ui-scale)) calc(var(--vfjs-space) * 2.25 * var(--vfjs-ui-scale)); }
  .vfjs-ui-select__value { flex: 1; min-width: calc(var(--vfjs-size-unit) * 40); font-size: var(--vfjs-ui-font-size); display: flex; align-items: center; gap: var(--vfjs-space-1); flex-wrap: wrap; }
  .vfjs-ui-select__placeholder { color: var(--vfjs-muted); }
  .vfjs-ui-select__tag { display: inline-flex; align-items: center; gap: var(--vfjs-space-1); background: var(--vfjs-surface);
    border: var(--vfjs-border-width) solid var(--vfjs-border); border-radius: var(--vfjs-radius-md); padding-block: calc(var(--vfjs-space) * 0.25); padding-inline: calc(var(--vfjs-space) * 1.75) var(--vfjs-space-1); font-size: var(--vfjs-ui-font-size-sm); }
  .vfjs-ui-select__arrow { color: var(--vfjs-muted); transition: transform var(--vfjs-motion-duration); display: inline-flex; }
  .vfjs-ui-select--open .vfjs-ui-select__arrow { transform: rotate(180deg); }
  .vfjs-ui-dropdown { max-height: calc(var(--vfjs-size-unit) * 280); overflow: auto; padding: var(--vfjs-space-1); animation: vfjs-ui-fade var(--vfjs-motion-duration-fast); }
  .vfjs-ui-dropdown__search { display: flex; align-items: center; gap: calc(var(--vfjs-space) * 1.5); padding: var(--vfjs-space-1) calc(var(--vfjs-space) * 1.5); margin-bottom: var(--vfjs-space-1);
    border-bottom: var(--vfjs-border-width) solid var(--vfjs-border); color: var(--vfjs-muted);
    input { flex: 1; border: 0; outline: 0; background: transparent; color: var(--vfjs-fg); font: inherit; font-size: var(--vfjs-font-size); }
  }
  .vfjs-ui-option { display: flex; align-items: center; gap: var(--vfjs-space-2); padding: calc(var(--vfjs-space) * 1.5 * var(--vfjs-ui-scale)) calc(var(--vfjs-space) * 2.25 * var(--vfjs-ui-scale)); font-size: var(--vfjs-ui-font-size); cursor: pointer;
    border-radius: var(--vfjs-radius-md); }
  .vfjs-ui-option:hover, .vfjs-ui-option--active { background: var(--vfjs-ui-option-hover-bg, var(--_vfjs-ui-item-hover-bg)); }
  .vfjs-ui-option--selected { color: var(--vfjs-ui-option-selected-fg, var(--vfjs-ui-item-selected-fg, var(--_vfjs-ui-accent-text))); background: var(--vfjs-ui-option-selected-bg, transparent); box-shadow: var(--vfjs-ui-option-selected-ring, none); font-weight: var(--vfjs-ui-selected-weight, var(--vfjs-font-weight-bold)); }
  .vfjs-ui-option--disabled { opacity: .45; pointer-events: none; }
  .vfjs-ui-option__check { width: calc(var(--vfjs-size-unit) * 16); display: inline-flex; }
  .vfjs-ui-dropdown__group { padding: calc(var(--vfjs-space) * 1.5) calc(var(--vfjs-space) * 2.25) calc(var(--vfjs-space) * 0.5); font-size: var(--vfjs-font-size-xs); text-transform: uppercase; letter-spacing: var(--vfjs-letter-spacing-caps); color: var(--vfjs-muted); }
  .vfjs-ui-dropdown__empty { padding: calc(var(--vfjs-space) * 2.5); text-align: center; color: var(--vfjs-muted); font-size: var(--vfjs-font-size); }

  /* ---------- checkbox / switch / radio ---------- */
  .vfjs-ui-check { display: inline-flex; align-items: center; gap: calc(var(--vfjs-space-2) * var(--vfjs-ui-scale)); cursor: pointer; font-size: var(--vfjs-ui-font-size); user-select: none;
    input { position: absolute; opacity: 0; pointer-events: none;
      &:focus-visible {
        + .vfjs-ui-check__box { outline: var(--vfjs-focus-ring-width) var(--vfjs-focus-ring-style) var(--vfjs-focus-ring-color, var(--vfjs-accent)); outline-offset: var(--vfjs-focus-ring-offset); }
        + .vfjs-ui-switch__track { outline: var(--vfjs-focus-ring-width) var(--vfjs-focus-ring-style) var(--vfjs-focus-ring-color, var(--vfjs-accent)); outline-offset: var(--vfjs-focus-ring-offset); }
      }
    }
  }
  .vfjs-ui-check--disabled { opacity: .5; cursor: not-allowed; }
  .vfjs-ui-check__box { width: calc(var(--vfjs-ui-check-size, calc(var(--vfjs-size-unit) * 16)) * var(--vfjs-ui-scale)); height: calc(var(--vfjs-ui-check-size, calc(var(--vfjs-size-unit) * 16)) * var(--vfjs-ui-scale)); flex: none; display: inline-flex; align-items: center; justify-content: center;
    border: calc(var(--vfjs-border-width) * 1.5) solid var(--vfjs-ui-check-border-color, var(--_vfjs-ui-control-border)); border-radius: var(--vfjs-radius-md); background: var(--vfjs-ui-check-bg, var(--vfjs-bg)); color: var(--vfjs-ui-check-on-fg, var(--vfjs-accent-fg));
    transition-property: background-color, border-color, color, box-shadow; transition-duration: var(--vfjs-motion-duration-fast); }
  .vfjs-ui-check--on .vfjs-ui-check__box, .vfjs-ui-check--mixed .vfjs-ui-check__box { background: var(--vfjs-ui-check-on-bg, var(--vfjs-accent)); border-color: var(--vfjs-ui-check-on-border-color, var(--vfjs-accent)); }
  .vfjs-ui-radio {
    .vfjs-ui-check__box { border-radius: 50%; }
    &.vfjs-ui-check--on .vfjs-ui-check__box { background: var(--vfjs-ui-check-bg, var(--vfjs-bg)); box-shadow: inset 0 0 0 calc(var(--vfjs-size-unit) * 4 * var(--vfjs-ui-scale)) var(--vfjs-ui-check-dot, var(--vfjs-accent)); }
  }
  .vfjs-ui-radiogroup { display: flex; flex-direction: column; gap: var(--vfjs-space-2); }
  .vfjs-ui-radiogroup--inline { flex-direction: row; gap: var(--vfjs-space-4); flex-wrap: wrap; }
  .vfjs-ui-switch__track { width: calc(var(--vfjs-ui-switch-width, calc(var(--vfjs-size-unit) * 34)) * var(--vfjs-ui-scale)); height: calc(var(--_vfjs-ui-switch-height) * var(--vfjs-ui-scale)); flex: none; border-radius: var(--vfjs-radius-xl); background: var(--vfjs-ui-switch-track, var(--_vfjs-ui-control-border));
    box-shadow: inset 0 0 0 var(--vfjs-border-width) var(--vfjs-ui-switch-ring, transparent); position: relative; transition: background var(--vfjs-motion-duration);
    &::after { content: ''; position: absolute; top: calc((var(--_vfjs-ui-switch-height) - var(--_vfjs-ui-switch-thumb-size)) / 2 * var(--vfjs-ui-scale)); inset-inline-start: calc((var(--_vfjs-ui-switch-height) - var(--_vfjs-ui-switch-thumb-size)) / 2 * var(--vfjs-ui-scale));
      width: calc(var(--_vfjs-ui-switch-thumb-size) * var(--vfjs-ui-scale)); height: calc(var(--_vfjs-ui-switch-thumb-size) * var(--vfjs-ui-scale));
      border-radius: 50%; background: var(--vfjs-ui-switch-thumb, var(--vfjs-white)); box-shadow: var(--vfjs-shadow-sm); transition: inset-inline-start var(--vfjs-motion-duration); }
  }
  .vfjs-ui-check--on {
    .vfjs-ui-switch__track { background: var(--vfjs-ui-switch-on-track, var(--vfjs-accent)); box-shadow: inset 0 0 0 var(--vfjs-border-width) var(--vfjs-ui-switch-on-ring, transparent);
      &::after { inset-inline-start: calc((var(--vfjs-ui-switch-width, calc(var(--vfjs-size-unit) * 34)) - var(--_vfjs-ui-switch-thumb-size) - (var(--_vfjs-ui-switch-height) - var(--_vfjs-ui-switch-thumb-size)) / 2) * var(--vfjs-ui-scale)); background: var(--vfjs-ui-switch-on-thumb, var(--vfjs-accent-fg)); }
    }
  }

  /* ---------- slider ---------- */
  .vfjs-ui-slider:not(.vfjs) { position: relative; height: calc(var(--vfjs-ui-slider-height, calc(var(--vfjs-size-unit) * 28)) * var(--vfjs-ui-scale)); display: flex; align-items: center; touch-action: none; }
  .vfjs-ui-slider__rail { width: 100%; height: calc(var(--vfjs-ui-slider-rail-height, calc(var(--vfjs-size-unit) * 4)) * var(--vfjs-ui-scale)); border-radius: var(--vfjs-radius-xs); background: var(--vfjs-ui-slider-rail, var(--vfjs-border)); }
  .vfjs-ui-slider__fill { position: absolute; height: calc(var(--vfjs-ui-slider-rail-height, calc(var(--vfjs-size-unit) * 4)) * var(--vfjs-ui-scale)); border-radius: var(--vfjs-radius-xs); background: var(--vfjs-ui-slider-fill, var(--vfjs-accent)); }
  .vfjs-ui-slider__thumb { position: absolute; width: calc(var(--vfjs-ui-slider-thumb-size, calc(var(--vfjs-size-unit) * 16)) * var(--vfjs-ui-scale)); height: calc(var(--vfjs-ui-slider-thumb-size, calc(var(--vfjs-size-unit) * 16)) * var(--vfjs-ui-scale)); border-radius: 50%; background: var(--vfjs-ui-slider-thumb-bg, var(--vfjs-bg));
    border: var(--vfjs-border-width-thick) solid var(--vfjs-ui-slider-thumb-border, var(--vfjs-accent)); transform: translateX(-50%); cursor: grab; transition: box-shadow var(--vfjs-motion-duration-fast);
    &:dir(rtl) { transform: translateX(50%); } /* the thumb is centered on inset-inline-start (right edge in RTL) */
    /* U8 (2.4.7): the keyboard focus of the thumb is the focus ring (the soft halo alone was ~1.3:1) */
    &:focus-visible { outline: var(--vfjs-focus-ring-width) var(--vfjs-focus-ring-style) var(--vfjs-focus-ring-color, var(--vfjs-accent)); outline-offset: var(--vfjs-focus-ring-offset); }
  }
  .vfjs-ui-slider__thumb--active { outline: none; box-shadow: 0 0 0 calc(var(--vfjs-size-unit) * 5) color-mix(in srgb, var(--vfjs-accent) 25%, transparent); }
  .vfjs-ui-slider__tip { position: absolute; bottom: calc(var(--vfjs-size-unit) * 24); left: 50%; /* physical: centered (translate -50%) */ transform: translateX(-50%); background: var(--vfjs-fg);
    color: var(--vfjs-bg); font-size: var(--vfjs-font-size-xs); padding: calc(var(--vfjs-space) * 0.5) calc(var(--vfjs-space) * 1.5); border-radius: var(--vfjs-radius-md); white-space: nowrap; pointer-events: none; }

  /* ---------- datepicker ---------- */
  .vfjs-ui-cal { padding: calc(var(--vfjs-space) * 2.5 * var(--vfjs-ui-scale)); width: calc(var(--vfjs-ui-calendar-width, calc(var(--vfjs-size-unit) * 252)) * var(--vfjs-ui-scale)); user-select: none; }
  .vfjs-ui-cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--vfjs-space-2); }
  .vfjs-ui-cal__title { font-weight: var(--vfjs-font-weight-semibold); font-size: var(--vfjs-ui-font-size); }
  .vfjs-ui-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: calc(var(--vfjs-space) * 0.5); }
  .vfjs-ui-cal__dow { text-align: center; font-size: var(--vfjs-font-size-xs); color: var(--vfjs-muted); padding: calc(var(--vfjs-space) * 0.75) 0; }
  .vfjs-ui-cal__day { height: calc(var(--vfjs-ui-cal-day-size, calc(var(--vfjs-size-unit) * 28)) * var(--vfjs-ui-scale)); display: flex; align-items: center; justify-content: center; font-size: var(--vfjs-ui-font-size-sm);
    border-radius: var(--vfjs-radius-md); cursor: pointer; border: var(--vfjs-border-width) solid transparent;
    &:hover { background: var(--vfjs-ui-cal-day-hover-bg, var(--vfjs-surface)); }
    &.vfjs-ui-cal__day--sel { background: var(--vfjs-ui-cal-selected-bg, var(--vfjs-accent)); color: var(--vfjs-ui-cal-selected-fg, var(--vfjs-accent-fg)); box-shadow: var(--vfjs-ui-cal-selected-ring, none); }
  }
  .vfjs-ui-cal__day--out { color: var(--vfjs-muted); }
  .vfjs-ui-cal__day--today { border-color: var(--vfjs-ui-cal-today-border, var(--vfjs-accent)); }
  .vfjs-ui-cal__day--inrange { background: var(--vfjs-ui-cal-range-bg, color-mix(in srgb, var(--vfjs-accent) 18%, transparent)); border-radius: 0; }
  .vfjs-ui-cal__day--disabled { opacity: .3; pointer-events: none; }
  .vfjs-ui-cal__foot { display: flex; justify-content: center; margin-top: var(--vfjs-space-2); padding-top: var(--vfjs-space-2); border-top: var(--vfjs-border-width) solid var(--vfjs-border); }

  /* ---------- form ---------- */
  .vfjs-ui-form { display: grid; gap: calc(var(--vfjs-ui-form-gap, calc(var(--vfjs-space) * 3.5)) * var(--vfjs-ui-scale)); }
  .vfjs-ui-form__row { display: flex; flex-direction: column; gap: calc(var(--vfjs-space) * 1.25 * var(--vfjs-ui-scale)); }
  .vfjs-ui-form--horizontal {
    .vfjs-ui-form__row { display: grid; grid-template-columns: calc(var(--vfjs-ui-form-label-width, calc(var(--vfjs-size-unit) * 160)) * var(--vfjs-ui-scale)) 1fr; align-items: start; gap: calc(var(--vfjs-space) * 2.5); }
    .vfjs-ui-form__label { padding-top: calc(var(--vfjs-space) * 1.75); text-align: end; }
    .vfjs-ui-form__error { grid-column: 2; }
    .vfjs-ui-form__actions { grid-column: 2; }
  }
  .vfjs-ui-form__label { font-size: var(--vfjs-ui-font-size); font-weight: var(--vfjs-font-weight-medium); }
  .vfjs-ui-form__label--required::after { content: ' *'; color: var(--_vfjs-ui-invalid-color); }
  .vfjs-ui-form__error { font-size: var(--vfjs-ui-font-size-sm); color: var(--_vfjs-ui-invalid-color); min-height: 0; }
  .vfjs-ui-form__actions { display: flex; gap: var(--vfjs-space-2); }

  /* ---------- tabs ---------- */
  .vfjs-ui-tabs__bar { display: flex; align-items: center; gap: calc(var(--vfjs-space) * 0.5); border-bottom: var(--vfjs-border-width) solid var(--vfjs-ui-tabs-bar-border, var(--vfjs-border)); overflow-x: auto;
    background: var(--vfjs-ui-tabs-bar-bg, transparent); padding: var(--vfjs-ui-tabs-bar-padding, 0); border-radius: var(--vfjs-ui-tabs-bar-radius, 0); }
  .vfjs-ui-tab { display: inline-flex; align-items: center; gap: calc(var(--vfjs-space) * 1.75); padding: calc(var(--vfjs-space-2) * var(--vfjs-ui-scale)) calc(var(--vfjs-space) * 3.5 * var(--vfjs-ui-scale)); cursor: pointer;
    border: 0; background: var(--vfjs-ui-tab-bg, transparent); color: var(--vfjs-ui-tab-fg, var(--vfjs-muted)); font: inherit; font-size: var(--vfjs-ui-font-size); white-space: nowrap; border-radius: var(--vfjs-ui-tab-radius, 0); box-shadow: var(--vfjs-ui-tab-ring, none);
    border-bottom: var(--vfjs-border-width-thick) solid transparent; margin-bottom: calc(var(--vfjs-size-unit) * -1); user-select: none;
    &:hover { color: var(--vfjs-ui-tab-hover-fg, var(--vfjs-fg)); }
    &:focus-visible { outline: var(--vfjs-focus-ring-width) var(--vfjs-focus-ring-style) var(--vfjs-focus-ring-color, var(--vfjs-accent)); outline-offset: calc(var(--vfjs-focus-ring-width) * -1); }
  }
  .vfjs-ui-tab--active, .vfjs-ui-tab--active:hover { color: var(--vfjs-ui-tab-active-fg, var(--vfjs-accent)); background: var(--vfjs-ui-tab-active-bg, transparent); box-shadow: var(--vfjs-ui-tab-active-ring, none); border-bottom-color: var(--vfjs-ui-tab-indicator, var(--vfjs-ui-tab-active-fg, var(--vfjs-accent))); font-weight: var(--vfjs-font-weight-semibold); }
  .vfjs-ui-tab--disabled { opacity: .45; pointer-events: none; }
  .vfjs-ui-tab--dragging { opacity: .35; }
  .vfjs-ui-tab--dropbefore { box-shadow: calc(var(--vfjs-size-unit) * -2) 0 0 var(--vfjs-accent); }
  .vfjs-ui-tab__close { display: inline-flex; border: 0; background: transparent; color: inherit; cursor: pointer; padding: calc(var(--vfjs-space) * 0.25); border-radius: var(--vfjs-radius-sm);
    &:hover { background: var(--vfjs-surface); }
  }
  .vfjs-ui-tabs__panel { padding: calc(var(--vfjs-space) * 3.5 * var(--vfjs-ui-scale)) var(--vfjs-space-1); font-size: var(--vfjs-ui-font-size); }

  /* ---------- accordion ---------- */
  .vfjs-ui-acc__item { border: var(--vfjs-border-width) solid var(--vfjs-ui-acc-border-color, var(--vfjs-border)); border-radius: var(--vfjs-ui-acc-radius, var(--vfjs-radius)); margin-bottom: var(--vfjs-ui-acc-gap, calc(var(--vfjs-space) * 1.5)); overflow: hidden; background: var(--vfjs-ui-acc-body-bg, transparent); }
  .vfjs-ui-acc__head { display: flex; align-items: center; gap: var(--vfjs-space-2); width: 100%; padding: calc(var(--vfjs-space) * 2.5 * var(--vfjs-ui-scale)) calc(var(--vfjs-space-3) * var(--vfjs-ui-scale)); cursor: pointer;
    background: var(--vfjs-ui-acc-head-bg, var(--vfjs-surface)); border: 0; font: inherit; font-size: var(--vfjs-ui-font-size); font-weight: var(--vfjs-font-weight-semibold); color: var(--vfjs-ui-acc-head-fg, var(--vfjs-fg)); text-align: start;
    &:focus-visible { outline: var(--vfjs-focus-ring-width) var(--vfjs-focus-ring-style) var(--vfjs-focus-ring-color, var(--vfjs-accent)); outline-offset: calc(var(--vfjs-focus-ring-width) * -1); }
    .vfjs-ui-icon { transition: transform var(--vfjs-motion-duration); }
  }
  .vfjs-ui-acc__item--open .vfjs-ui-acc__head .vfjs-ui-icon { transform: rotate(90deg); }
  .vfjs-ui-acc__body { padding: calc(var(--vfjs-space-3) * var(--vfjs-ui-scale)); font-size: var(--vfjs-ui-font-size); border-top: var(--vfjs-border-width) solid var(--vfjs-ui-acc-border-color, var(--vfjs-border)); }
  .vfjs-ui-acc__item--disabled { opacity: .5; pointer-events: none; }

  /* ---------- menu ---------- */
  .vfjs-ui-menu { min-width: calc(var(--vfjs-ui-menu-min-width, calc(var(--vfjs-size-unit) * 190)) * var(--vfjs-ui-scale)); padding: calc(var(--vfjs-space) * 1.25 * var(--vfjs-ui-scale)); animation: vfjs-ui-fade calc(var(--vfjs-motion-duration) * 2 / 3); }
  .vfjs-ui-menu__item { display: flex; align-items: center; gap: calc(var(--vfjs-space) * 2.25); padding: calc(var(--vfjs-space) * 1.75 * var(--vfjs-ui-scale)) calc(var(--vfjs-space) * 2.5 * var(--vfjs-ui-scale)); font-size: var(--vfjs-ui-font-size); cursor: pointer;
    border-radius: var(--vfjs-radius-md); position: relative; white-space: nowrap; }
  .vfjs-ui-menu__item:hover, .vfjs-ui-menu__item--active { background: var(--vfjs-ui-menu-hover-bg, var(--_vfjs-ui-item-hover-bg)); color: var(--vfjs-ui-menu-hover-fg, var(--_vfjs-ui-popup-fg)); }
  .vfjs-ui-menu__item--disabled { opacity: .45; pointer-events: none; }
  .vfjs-ui-menu__label { flex: 1; }
  .vfjs-ui-menu__shortcut { color: inherit; font-size: var(--vfjs-ui-font-size-xs); }
  .vfjs-ui-menu__divider { height: var(--vfjs-size-unit); background: var(--vfjs-border); margin: calc(var(--vfjs-space) * 1.25) var(--vfjs-space-1); }
  .vfjs-ui-menu__icon { width: calc(var(--vfjs-size-unit) * 16); display: inline-flex; color: var(--vfjs-muted); }

  /* ---------- toolbar ---------- */
  .vfjs-ui-toolbar__inner { display: flex; align-items: center; gap: var(--vfjs-space-1); padding: calc(var(--vfjs-space) * 1.25 * var(--vfjs-ui-scale)); flex-wrap: wrap;
    background: var(--vfjs-ui-toolbar-bg, var(--vfjs-surface)); border: var(--vfjs-border-width) solid var(--vfjs-ui-toolbar-border-color, var(--vfjs-border)); border-radius: var(--vfjs-radius); }
  .vfjs-ui-toolbar__sep { width: var(--vfjs-size-unit); align-self: stretch; margin: calc(var(--vfjs-space) * 0.75) var(--vfjs-space-1); background: var(--vfjs-border); }
  .vfjs-ui-toolbar__spacer { flex: 1; }
  .vfjs-ui-toolbar__btn { display: inline-flex; align-items: center; gap: calc(var(--vfjs-space) * 1.5); height: calc(var(--vfjs-control-height-sm) * var(--vfjs-ui-scale)); padding: 0 calc(var(--vfjs-space) * 2.25 * var(--vfjs-ui-scale)); border: 0;
    border-radius: var(--vfjs-radius-md); background: transparent; color: var(--vfjs-fg); font: inherit; font-size: var(--vfjs-ui-font-size); cursor: pointer;
    &:hover { background: var(--vfjs-ui-toolbar-btn-hover-bg, color-mix(in srgb, var(--vfjs-fg) 8%, transparent)); }
    &:focus-visible { outline: var(--vfjs-focus-ring-width) var(--vfjs-focus-ring-style) var(--vfjs-focus-ring-color, var(--vfjs-accent)); outline-offset: calc(var(--vfjs-focus-ring-width) * -1); }
    &[disabled] { opacity: .45; pointer-events: none; }
  }
  .vfjs-ui-toolbar__btn--on { background: var(--vfjs-ui-toolbar-btn-on-bg, color-mix(in srgb, var(--vfjs-accent) 18%, transparent)); color: var(--vfjs-ui-toolbar-btn-on-fg, var(--_vfjs-ui-accent-text)); box-shadow: var(--_vfjs-ui-pressed-ring); }

  /* ---------- tree ---------- */
  .vfjs-ui-tree__search { margin-bottom: calc(var(--vfjs-space) * 1.5); }
  .vfjs-ui-tree__list { list-style: none; margin: 0; padding: 0; font-size: var(--vfjs-ui-font-size);
    .vfjs-ui-tree__list { padding-inline-start: var(--vfjs-space-5); }
  }
  .vfjs-ui-tree__row { display: flex; align-items: center; gap: calc(var(--vfjs-space) * 1.25); padding: calc(var(--vfjs-space) * 0.75 * var(--vfjs-ui-scale)) calc(var(--vfjs-space) * 1.5 * var(--vfjs-ui-scale)); border-radius: var(--vfjs-radius-md); cursor: pointer;
    &:hover { background: var(--vfjs-ui-tree-hover-bg, var(--vfjs-surface)); }
    &:focus-visible { outline: var(--vfjs-focus-ring-width) var(--vfjs-focus-ring-style) var(--vfjs-focus-ring-color, var(--vfjs-accent)); outline-offset: calc(var(--vfjs-focus-ring-width) * -1); }
  }
  .vfjs-ui-tree__row--selected, .vfjs-ui-tree__row--selected:hover { background: var(--vfjs-ui-tree-selected-bg, color-mix(in srgb, var(--vfjs-accent) 16%, transparent)); color: var(--_vfjs-ui-tree-selected-fg); box-shadow: var(--vfjs-ui-tree-selected-ring, none); }
  .vfjs-ui-tree__toggle { width: calc(var(--vfjs-size-unit) * 18 * var(--vfjs-ui-scale)); height: calc(var(--vfjs-size-unit) * 18 * var(--vfjs-ui-scale)); display: inline-flex; align-items: center; justify-content: center;
    border: 0; background: transparent; color: var(--vfjs-muted); cursor: pointer; padding: 0; flex: none;
    .vfjs-ui-icon { transition: transform var(--vfjs-motion-duration-fast); }
  }
  .vfjs-ui-tree__toggle--open .vfjs-ui-icon { transform: rotate(90deg); }
  .vfjs-ui-tree__match { background: color-mix(in srgb, var(--vfjs-accent) 30%, transparent); border-radius: var(--vfjs-radius-xs); }
  .vfjs-ui-tree__spin svg { animation: vfjs-ui-spin calc(var(--vfjs-motion-duration) * 16 / 3) linear infinite; }

  /* ---------- splitter ---------- */
  .vfjs-ui-splitter__wrap { display: flex; width: 100%; height: 100%; overflow: hidden; }
  .vfjs-ui-splitter__wrap--vertical { flex-direction: column; }
  .vfjs-ui-splitter__pane { overflow: auto; min-width: 0; min-height: 0; }
  .vfjs-ui-splitter__gutter { flex: none; background: var(--vfjs-ui-splitter-bg, var(--vfjs-border)); box-shadow: var(--vfjs-ui-splitter-ring, none); position: relative; z-index: calc(var(--vfjs-z-base) + 1);
    transition: background var(--vfjs-motion-duration-fast); display: flex; align-items: center; justify-content: center; }
  .vfjs-ui-splitter__gutter:hover, .vfjs-ui-splitter__gutter--drag { background: var(--vfjs-ui-splitter-hover-bg, var(--vfjs-accent)); }
  .vfjs-ui-splitter__wrap--horizontal > .vfjs-ui-splitter__gutter { width: calc(var(--vfjs-ui-splitter-size, calc(var(--vfjs-size-unit) * 5)) * var(--vfjs-ui-scale)); cursor: col-resize; }
  .vfjs-ui-splitter__wrap--vertical > .vfjs-ui-splitter__gutter { height: calc(var(--vfjs-ui-splitter-size, calc(var(--vfjs-size-unit) * 5)) * var(--vfjs-ui-scale)); cursor: row-resize; }

  /* ---------- breadcrumb ---------- */
  .vfjs-ui-breadcrumb ol { display: flex; align-items: center; flex-wrap: wrap; gap: calc(var(--vfjs-space) * 0.5); list-style: none; margin: 0; padding: 0; font-size: var(--vfjs-ui-font-size); }
  .vfjs-ui-breadcrumb__item { display: inline-flex; align-items: center; gap: calc(var(--vfjs-space) * 0.5); }
  .vfjs-ui-breadcrumb__link { display: inline-flex; align-items: center; gap: calc(var(--vfjs-space) * 1.25); color: var(--vfjs-ui-crumb-fg, var(--vfjs-muted)); text-decoration: none;
    padding: calc(var(--vfjs-space) * 0.75 * var(--vfjs-ui-scale)) calc(var(--vfjs-space) * 1.5 * var(--vfjs-ui-scale)); border-radius: var(--vfjs-radius-md); cursor: pointer; border: 0; background: var(--vfjs-ui-crumb-bg, transparent); box-shadow: var(--vfjs-ui-crumb-ring, none); font: inherit;
    &:hover { color: var(--vfjs-ui-crumb-hover-fg, var(--vfjs-accent)); background: var(--vfjs-ui-crumb-hover-bg, var(--vfjs-surface)); }
  }
  .vfjs-ui-breadcrumb__item--current .vfjs-ui-breadcrumb__link { color: var(--vfjs-ui-crumb-current-fg, var(--vfjs-fg)); font-weight: var(--vfjs-font-weight-semibold); cursor: default; }
  .vfjs-ui-breadcrumb__sep { color: var(--vfjs-muted); }

  /* ---------- dialog ---------- */
  .vfjs-ui-dialog__backdrop { position: fixed; inset: 0; background: var(--vfjs-ui-backdrop, var(--vfjs-backdrop)); }
  .vfjs-ui-window { position: fixed; display: flex; flex-direction: column; width: calc(var(--vfjs-ui-dialog-width, calc(var(--vfjs-size-unit) * 440)) * var(--vfjs-ui-scale)); min-width: calc(var(--vfjs-size-unit) * 220); min-height: calc(var(--vfjs-size-unit) * 120);
    background: var(--vfjs-ui-window-bg, var(--vfjs-bg)); color: var(--vfjs-ui-window-fg, var(--vfjs-fg)); border: var(--vfjs-ui-window-border, var(--vfjs-border-width) solid var(--vfjs-border));
    border-radius: var(--vfjs-ui-window-radius, var(--vfjs-radius)); box-shadow: var(--vfjs-ui-window-shadow, var(--vfjs-shadow)); animation: vfjs-ui-fade var(--vfjs-motion-duration); overflow: hidden; }
  /* max/min: the JS moves the inline geometry aside while the state is on */
  .vfjs-ui-window--max { inset: 0; width: auto; height: auto; border-radius: 0; }
  .vfjs-ui-window--min { min-height: 0; height: auto;
    .vfjs-ui-window__body, .vfjs-ui-window__foot { display: none; }
  }
  .vfjs-ui-window__head { display: flex; align-items: center; gap: var(--vfjs-space-2); padding: calc(var(--vfjs-space) * 2.25 * var(--vfjs-ui-scale)) calc(var(--vfjs-space-3) * var(--vfjs-ui-scale)); background: var(--vfjs-ui-window-head-bg, var(--vfjs-surface));
    border-bottom: var(--vfjs-border-width) solid var(--vfjs-ui-window-divider, var(--vfjs-border)); cursor: default; user-select: none; }
  .vfjs-ui-window--draggable .vfjs-ui-window__head { cursor: move; }
  .vfjs-ui-window__title { flex: 1; font-size: var(--vfjs-ui-font-size); font-weight: var(--vfjs-font-weight-semibold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .vfjs-ui-window__ctl { display: inline-flex; align-items: center; justify-content: center; width: calc(var(--vfjs-size-unit) * 24 * var(--vfjs-ui-scale)); height: calc(var(--vfjs-size-unit) * 24 * var(--vfjs-ui-scale));
    border: 0; border-radius: var(--vfjs-radius-md); background: transparent; color: var(--vfjs-muted); cursor: pointer;
    &:hover { background: color-mix(in srgb, var(--vfjs-fg) 10%, transparent); color: var(--vfjs-fg); }
  }
  .vfjs-ui-window__ctl--close:hover { background: var(--vfjs-ui-btn-danger-bg, var(--vfjs-danger)); color: var(--vfjs-ui-btn-danger-fg, var(--vfjs-danger-fg)); }
  .vfjs-ui-window__body { flex: 1; overflow: auto; padding: calc(var(--vfjs-space) * 3.5 * var(--vfjs-ui-scale)); font-size: var(--vfjs-ui-font-size); }
  .vfjs-ui-window__foot { display: flex; justify-content: flex-end; gap: var(--vfjs-space-2); padding: calc(var(--vfjs-space) * 2.5 * var(--vfjs-ui-scale)) calc(var(--vfjs-space) * 3.5 * var(--vfjs-ui-scale)); border-top: var(--vfjs-border-width) solid var(--vfjs-ui-window-divider, var(--vfjs-border)); }
  .vfjs-ui-window__resize { position: absolute; width: calc(var(--vfjs-size-unit) * 14); height: calc(var(--vfjs-size-unit) * 14); z-index: calc(var(--vfjs-z-base) + 2); }
  .vfjs-ui-window__resize--se { right: 0; /* physical: the script resizes by this corner */ bottom: 0; cursor: nwse-resize; }
  .vfjs-ui-window__resize--sw { left: 0; /* physical: the script resizes by this corner */ bottom: 0; cursor: nesw-resize; }
  .vfjs-ui-window__resize--ne { right: 0; /* physical: the script resizes by this corner */ top: 0; cursor: nesw-resize; }
  .vfjs-ui-window__resize--nw { left: 0; /* physical: the script resizes by this corner */ top: 0; cursor: nwse-resize; }

  /* ---------- toast ---------- */
  .vfjs-ui-toasts { position: fixed; z-index: var(--vfjs-z-toast); display: flex; flex-direction: column; gap: var(--vfjs-space-2); width: calc(var(--vfjs-ui-toast-width, calc(var(--vfjs-size-unit) * 320)) * var(--vfjs-ui-scale)); pointer-events: none; }
  .vfjs-ui-toasts--top-right { top: calc(var(--vfjs-size-unit) * 14); right: calc(var(--vfjs-size-unit) * 14); /* physical: option position: 'top-right' */ }
  .vfjs-ui-toasts--top-left { top: calc(var(--vfjs-size-unit) * 14); left: calc(var(--vfjs-size-unit) * 14); /* physical: option position: 'top-left' */ }
  .vfjs-ui-toasts--top-center { top: calc(var(--vfjs-size-unit) * 14); left: 50%; /* physical: centered (translate -50%) */ transform: translateX(-50%); }
  .vfjs-ui-toasts--bottom-right { bottom: calc(var(--vfjs-size-unit) * 14); right: calc(var(--vfjs-size-unit) * 14); /* physical: option position: 'bottom-right' */ flex-direction: column-reverse; }
  .vfjs-ui-toasts--bottom-left { bottom: calc(var(--vfjs-size-unit) * 14); left: calc(var(--vfjs-size-unit) * 14); /* physical: option position: 'bottom-left' */ flex-direction: column-reverse; }
  .vfjs-ui-toasts--bottom-center { bottom: calc(var(--vfjs-size-unit) * 14); left: 50%; /* physical: centered (translate -50%) */ transform: translateX(-50%); flex-direction: column-reverse; }
  .vfjs-ui-toast:not(.vfjs) { display: flex; gap: calc(var(--vfjs-space) * 2.5); padding: calc(var(--vfjs-space) * 2.75 * var(--vfjs-ui-scale)) calc(var(--vfjs-space-3) * var(--vfjs-ui-scale));
    background: color-mix(in srgb, var(--vfjs-ui-toast-accent, var(--vfjs-accent)) var(--vfjs-ui-toast-tint, 0%), var(--vfjs-ui-toast-bg, var(--vfjs-bg))); color: var(--vfjs-ui-toast-fg, var(--vfjs-fg));
    border: var(--vfjs-border-width) solid color-mix(in srgb, var(--vfjs-ui-toast-accent, var(--vfjs-accent)) var(--_vfjs-ui-toast-border-tint), var(--_vfjs-ui-toast-border-color));
    border-inline-start: var(--vfjs-ui-toast-stripe, calc(var(--vfjs-border-width) * 3)) solid var(--vfjs-ui-toast-accent, var(--vfjs-accent)); border-radius: var(--vfjs-radius);
    box-shadow: var(--vfjs-ui-toast-shadow, var(--vfjs-shadow)); pointer-events: auto; animation: vfjs-ui-fade calc(var(--vfjs-motion-duration) * 1.2); font-size: var(--vfjs-ui-font-size); }
  .vfjs-ui-toast--success { --vfjs-ui-toast-accent: var(--vfjs-success);
    > .vfjs-ui-icon { color: var(--vfjs-success); }
  }
  .vfjs-ui-toast--warning { --vfjs-ui-toast-accent: var(--vfjs-warning);
    > .vfjs-ui-icon { color: var(--vfjs-warning); }
  }
  .vfjs-ui-toast--error { --vfjs-ui-toast-accent: var(--vfjs-danger);
    > .vfjs-ui-icon { color: var(--vfjs-danger); }
  }
  .vfjs-ui-toast--info > .vfjs-ui-icon, .vfjs-ui-toast--loading > .vfjs-ui-icon { color: var(--vfjs-info); }
  .vfjs-ui-toast--loading > .vfjs-ui-icon { animation: vfjs-ui-spin calc(var(--vfjs-motion-duration) * 16 / 3) linear infinite; }
  .vfjs-ui-toast__main { flex: 1; min-width: 0; }
  .vfjs-ui-toast__title { font-weight: var(--vfjs-font-weight-semibold); margin-bottom: calc(var(--vfjs-space) * 0.5); }
  .vfjs-ui-toast__msg { color: var(--_vfjs-ui-subtle-fg); }
  .vfjs-ui-toast__actions { margin-top: calc(var(--vfjs-space) * 1.5); display: flex; gap: calc(var(--vfjs-space) * 2.5); }
  .vfjs-ui-toast__action { border: 0; background: none; color: var(--vfjs-accent); font: inherit; font-size: var(--vfjs-ui-font-size-sm); font-weight: var(--vfjs-font-weight-semibold); cursor: pointer; padding: 0; }

  /* ---------- tooltip / popover ---------- */
  .vfjs-ui-float {
    &.vfjs-ui-tooltip { z-index: var(--vfjs-z-tooltip); max-width: calc(var(--vfjs-ui-tooltip-max-width, calc(var(--vfjs-size-unit) * 260)) * var(--vfjs-ui-scale)); padding: calc(var(--vfjs-space) * 1.25 * var(--vfjs-ui-scale)) calc(var(--vfjs-space) * 2.25 * var(--vfjs-ui-scale)); font-size: var(--vfjs-ui-font-size-sm); background: var(--vfjs-ui-tooltip-bg, var(--vfjs-fg));
      color: var(--vfjs-ui-tooltip-fg, var(--vfjs-bg)); border: 0; border-radius: var(--vfjs-ui-tooltip-radius, var(--vfjs-radius)); box-shadow: var(--vfjs-ui-tooltip-ring, none); animation: vfjs-ui-fade calc(var(--vfjs-motion-duration) * 2 / 3); }
    &.vfjs-ui-popover { max-width: calc(var(--vfjs-size-unit) * 320); animation: vfjs-ui-fade var(--vfjs-motion-duration-fast); }
  }
  /* U8: the anchor of a tooltip / popover is the buyer's element: core makes it an .vfjs element (theme), keep its own text look */
  .vfjs.vfjs-ui-tooltip:not(.vfjs-ui-float), .vfjs.vfjs-ui-popover:not(.vfjs-ui-float) { color: inherit; font-family: inherit; color-scheme: inherit; }
  .vfjs-ui-popover__title { padding: calc(var(--vfjs-space) * 2.25 * var(--vfjs-ui-scale)) calc(var(--vfjs-space-3) * var(--vfjs-ui-scale)); font-size: var(--vfjs-ui-font-size); font-weight: var(--vfjs-font-weight-semibold); border-bottom: var(--vfjs-border-width) solid var(--vfjs-border); }
  .vfjs-ui-popover__body { padding: calc(var(--vfjs-space) * 2.5 * var(--vfjs-ui-scale)) calc(var(--vfjs-space-3) * var(--vfjs-ui-scale)); font-size: var(--vfjs-ui-font-size); }

  /* ---------- drawer ---------- */
  .vfjs-ui-drawer__backdrop { position: fixed; inset: 0; background: var(--vfjs-ui-backdrop, var(--vfjs-backdrop)); z-index: var(--vfjs-z-drawer); }
  .vfjs-ui-drawer__panel { position: fixed; z-index: calc(var(--vfjs-z-drawer) + 1); background: var(--vfjs-ui-drawer-bg, var(--vfjs-bg)); color: var(--vfjs-ui-drawer-fg, var(--vfjs-fg));
    box-shadow: var(--vfjs-ui-drawer-shadow, var(--vfjs-shadow)); display: flex; flex-direction: column; transition: transform calc(var(--vfjs-motion-duration) * 22 / 15) var(--vfjs-motion-easing); }
  .vfjs-ui-drawer__panel--left { top: 0; bottom: 0; left: 0; /* physical: option side: 'left' */ transform: translateX(-102%); }
  .vfjs-ui-drawer__panel--right { top: 0; bottom: 0; right: 0; /* physical: option side: 'right' */ transform: translateX(102%); }
  .vfjs-ui-drawer__panel--top { inset-inline: 0; top: 0; transform: translateY(-102%); }
  .vfjs-ui-drawer__panel--bottom { inset-inline: 0; bottom: 0; transform: translateY(102%); }
  .vfjs-ui-drawer__panel--open { transform: none; }
  .vfjs-ui-drawer__head { display: flex; align-items: center; gap: var(--vfjs-space-2); padding: calc(var(--vfjs-space-3) * var(--vfjs-ui-scale)) calc(var(--vfjs-space) * 3.5 * var(--vfjs-ui-scale)); border-bottom: var(--vfjs-border-width) solid var(--vfjs-ui-drawer-divider, var(--vfjs-border)); }
  .vfjs-ui-drawer__title { flex: 1; font-size: var(--vfjs-ui-font-size-lg); font-weight: var(--vfjs-font-weight-semibold); }
  .vfjs-ui-drawer__body { flex: 1; overflow: auto; padding: calc(var(--vfjs-space) * 3.5 * var(--vfjs-ui-scale)); font-size: var(--vfjs-ui-font-size); }

  /* ---------- indicators ---------- */
  .vfjs-ui-progress__track { height: calc(var(--vfjs-ui-progress-height, calc(var(--vfjs-size-unit) * 8)) * var(--vfjs-ui-scale)); background: var(--vfjs-ui-progress-track-bg, var(--vfjs-surface)); border: var(--vfjs-border-width) solid var(--vfjs-ui-progress-track-border, var(--vfjs-border)); border-radius: var(--vfjs-radius); overflow: hidden; }
  .vfjs-ui-progress__bar { height: 100%; background: var(--vfjs-ui-progress-bar, var(--vfjs-accent)); border-radius: var(--vfjs-radius); transition: width calc(var(--vfjs-motion-duration) * 4 / 3); }
  .vfjs-ui-progress--striped .vfjs-ui-progress__bar { background-image: linear-gradient(45deg, color-mix(in srgb, var(--vfjs-white) 20%, transparent) 25%, transparent 25%, transparent 50%, color-mix(in srgb, var(--vfjs-white) 20%, transparent) 50%, color-mix(in srgb, var(--vfjs-white) 20%, transparent) 75%, transparent 75%); background-size: calc(var(--vfjs-size-unit) * 16) calc(var(--vfjs-size-unit) * 16); }
  .vfjs-ui-progress--indeterminate .vfjs-ui-progress__bar { width: 30%; animation: vfjs-ui-indet calc(var(--vfjs-motion-duration) * 8) ease-in-out infinite; }
  @keyframes vfjs-ui-indet { 0% { margin-inline-start: -30%; } 100% { margin-inline-start: 100%; } }
  .vfjs-ui-progress__label { font-size: var(--vfjs-ui-font-size-sm); color: var(--vfjs-muted); margin-top: var(--vfjs-space-1); }
  .vfjs-ui-badge__wrap { position: relative; display: inline-flex; }
  .vfjs-ui-badge__host { display: contents; }
  .vfjs-ui-badge__pill { display: inline-flex; align-items: center; justify-content: center; min-width: calc(var(--vfjs-ui-badge-size, calc(var(--vfjs-size-unit) * 18)) * var(--vfjs-ui-scale)); height: calc(var(--vfjs-ui-badge-size, calc(var(--vfjs-size-unit) * 18)) * var(--vfjs-ui-scale));
    padding: 0 calc(var(--vfjs-space) * 1.25 * var(--vfjs-ui-scale)); border-radius: var(--vfjs-radius-lg); font-size: var(--vfjs-ui-font-size-xs); font-weight: var(--vfjs-font-weight-semibold);
    background: color-mix(in srgb, var(--vfjs-ui-badge-hue, var(--vfjs-accent)) var(--vfjs-ui-badge-tint, 100%), transparent); color: color-mix(in srgb, var(--vfjs-ui-badge-hue, var(--vfjs-accent)) var(--vfjs-ui-badge-text-tint, 0%), var(--vfjs-ui-badge-fg, var(--vfjs-accent-fg)));
    box-shadow: inset 0 0 0 calc(var(--vfjs-border-width) * var(--vfjs-ui-badge-ring, 0)) var(--vfjs-ui-badge-hue, var(--vfjs-accent)); }
  .vfjs-ui-badge__pill--attached { position: absolute; top: calc(var(--vfjs-size-unit) * -7); inset-inline-end: calc(var(--vfjs-size-unit) * -7); box-shadow: 0 0 0 calc(var(--vfjs-size-unit) * 2) var(--vfjs-bg); }
  .vfjs-ui-badge__pill--dot { min-width: calc(var(--vfjs-size-unit) * 10); width: calc(var(--vfjs-size-unit) * 10); height: calc(var(--vfjs-size-unit) * 10); padding: 0; }
  .vfjs-ui-badge__pill--success { --vfjs-ui-badge-hue: var(--vfjs-success); }
  .vfjs-ui-badge__pill--warning { --vfjs-ui-badge-hue: var(--vfjs-warning); }
  .vfjs-ui-badge__pill--error { --vfjs-ui-badge-hue: var(--vfjs-danger); }
  .vfjs-ui-badge__pill--muted { --vfjs-ui-badge-hue: var(--vfjs-muted); }
  .vfjs-ui-skeleton:not(.vfjs) { display: flex; gap: var(--vfjs-space-3); }
  .vfjs-ui-skeleton__avatar { width: calc(var(--vfjs-size-unit) * 44 * var(--vfjs-ui-scale)); height: calc(var(--vfjs-size-unit) * 44 * var(--vfjs-ui-scale)); border-radius: 50%; flex: none; }
  .vfjs-ui-skeleton__lines { flex: 1; display: flex; flex-direction: column; gap: var(--vfjs-space-2); }
  .vfjs-ui-skeleton__line { height: calc(var(--vfjs-size-unit) * 12 * var(--vfjs-ui-scale)); border-radius: var(--vfjs-radius-md); }
  .vfjs-ui-skeleton__shape { background: var(--vfjs-ui-skeleton-bg, var(--vfjs-surface)); box-shadow: var(--vfjs-ui-skeleton-ring, none); }
  .vfjs-ui-skeleton--animated .vfjs-ui-skeleton__shape { background: linear-gradient(90deg, var(--vfjs-ui-skeleton-bg, var(--vfjs-surface)) 25%, var(--_vfjs-ui-skeleton-shine) 45%, var(--vfjs-ui-skeleton-bg, var(--vfjs-surface)) 65%); background-size: 200% 100%; animation: vfjs-ui-shimmer calc(var(--vfjs-motion-duration) * 28 / 3) linear infinite; }
  .vfjs-ui-pagination { display: flex; align-items: center; gap: var(--vfjs-space-1); font-size: var(--vfjs-ui-font-size); flex-wrap: wrap;
    select { height: calc(var(--vfjs-control-height-sm) * var(--vfjs-ui-scale)); border: var(--vfjs-border-width) solid var(--vfjs-border); border-radius: var(--vfjs-radius-md);
      background: var(--vfjs-bg); color: var(--vfjs-fg); font: inherit; font-size: var(--vfjs-font-size-sm); }
  }
  .vfjs-ui-pagination__btn { min-width: calc(var(--vfjs-ui-page-size, calc(var(--vfjs-size-unit) * 28)) * var(--vfjs-ui-scale)); height: calc(var(--vfjs-control-height-sm) * var(--vfjs-ui-scale)); padding: 0 calc(var(--vfjs-space) * 1.25 * var(--vfjs-ui-scale)); display: inline-flex; align-items: center; justify-content: center;
    border: var(--vfjs-border-width) solid var(--vfjs-ui-page-border, transparent); border-radius: var(--vfjs-radius-md); background: var(--vfjs-ui-page-bg, transparent); color: var(--vfjs-fg); font: inherit; font-size: var(--vfjs-ui-font-size); cursor: pointer;
    &:hover:not([disabled]) { border-color: var(--vfjs-ui-page-hover-border, var(--vfjs-border)); background: var(--vfjs-ui-page-hover-bg, var(--vfjs-surface)); }
    &.vfjs-ui-pagination__btn--on { background: var(--vfjs-ui-page-on-bg, var(--vfjs-accent)); color: var(--vfjs-ui-page-on-fg, var(--vfjs-accent-fg)); border-color: var(--vfjs-ui-page-on-border, transparent); font-weight: var(--vfjs-font-weight-semibold); }
    &[disabled] { opacity: .4; cursor: not-allowed; }
    /* S9: previous / next chevrons point the reading direction in RTL */
    svg:dir(rtl) { transform: scaleX(-1); }
  }
  .vfjs-ui-pagination__dots { color: var(--vfjs-muted); padding: 0 calc(var(--vfjs-space) * 0.75); }
  .vfjs-ui-pagination__total { color: var(--vfjs-muted); margin-inline-end: var(--vfjs-space-2); }

  /* ---------- dock layout ---------- */
  .vfjs-ui-dock {
    &:not(.vfjs) { display: grid; width: 100%; height: 100%; gap: calc(var(--vfjs-space) * 1.25);
      grid-template: "left top right" min-content "left center right" 1fr "left bottom right" min-content / min-content 1fr min-content; }
    &.vfjs-auto-height { min-height: var(--vfjs-ui-dock-min-height, calc(var(--vfjs-size-unit) * 400)); }
    /* S30: a height from the layout (class vfjs-fit: explicit, flex / grid stretch, min-height only, insets) or the
       default switched off (class vfjs-content-height: the height follows the width, like a <canvas>): the layout
       fills the element without percentages, the panels never make the element taller */
    &.vfjs-content-height { contain: size; aspect-ratio: var(--vfjs-ui-dock-aspect-ratio, var(--vfjs-aspect-ratio)); }
    &:is(.vfjs-fit, .vfjs-content-height) { display: flex; flex-direction: column;
      > .vfjs-ui-dock:not(.vfjs) { flex: 1 1 0; min-height: 0; }
    }
  }
  /* S29: default height only while the container has none (an explicit height is kept exactly) */
  /* S30: exactly the default (the panels scroll inside, their content no longer makes it taller); the default is also
     the min-height of the element (core measures it: 0 = switched off -> class vfjs-content-height) */
  .vfjs-auto-height > .vfjs-ui-dock:not(.vfjs) { block-size: var(--vfjs-ui-dock-min-height, calc(var(--vfjs-size-unit) * 400)); }
  .vfjs-ui-dock__zone { display: flex; flex-direction: column; min-width: 0; min-height: 0;
    border: var(--vfjs-border-width) solid var(--vfjs-ui-dock-zone-border, var(--vfjs-border)); border-radius: var(--vfjs-radius); background: var(--vfjs-ui-dock-zone-bg, var(--vfjs-bg)); overflow: hidden; }
  .vfjs-ui-dock__zone--empty { display: none; }
  .vfjs-ui-dock__zone--left { grid-area: left; }
  .vfjs-ui-dock__zone--right { grid-area: right; }
  .vfjs-ui-dock__zone--top { grid-area: top; }
  .vfjs-ui-dock__zone--bottom { grid-area: bottom; }
  .vfjs-ui-dock__zone--center { grid-area: center; }
  .vfjs-ui-dock__zone--drop { outline: var(--vfjs-border-width-thick) dashed var(--vfjs-accent); outline-offset: calc(var(--vfjs-size-unit) * -2); }
  .vfjs-ui-dock__tabs { display: flex; align-items: center; background: var(--vfjs-ui-dock-tabs-bg, var(--vfjs-surface)); border-bottom: var(--vfjs-border-width) solid var(--vfjs-border); overflow-x: auto; flex: none; }
  .vfjs-ui-dock__tablist { display: flex; align-items: center; min-width: 0; }
  /* U8: the tab strip scrolls (clips an outer ring): the ring of a tab is drawn inside it */
  .vfjs-ui-dock__tab { display: inline-flex; align-items: center; gap: calc(var(--vfjs-space) * 1.5); padding: calc(var(--vfjs-space) * 1.5 * var(--vfjs-ui-scale)) calc(var(--vfjs-space) * 2.5 * var(--vfjs-ui-scale)); font-size: var(--vfjs-ui-font-size-sm); cursor: grab;
    color: var(--vfjs-muted); border-inline-end: var(--vfjs-border-width) solid var(--vfjs-border); white-space: nowrap; user-select: none;
    &:focus-visible { outline: var(--vfjs-focus-ring-width) var(--vfjs-focus-ring-style) var(--vfjs-focus-ring-color, var(--vfjs-accent)); outline-offset: calc(var(--vfjs-focus-ring-width) * -1); }
    .vfjs-ui-dock__ctl { margin-inline-start: calc(var(--vfjs-space) * 0.5); padding: 0; }
  }
  .vfjs-ui-dock__tab--active { color: var(--vfjs-fg); font-weight: var(--vfjs-font-weight-semibold); background: var(--vfjs-ui-dock-tab-active-bg, var(--vfjs-bg)); box-shadow: inset 0 calc(var(--vfjs-size-unit) * 2) 0 var(--vfjs-accent); }
  .vfjs-ui-dock__tab--dragging { opacity: .4; }
  .vfjs-ui-dock__body { flex: 1; overflow: auto; padding: calc(var(--vfjs-space) * 2.5 * var(--vfjs-ui-scale)); font-size: var(--vfjs-ui-font-size); min-height: 0; }
  .vfjs-ui-dock__zone--collapsed { min-height: 0;
    .vfjs-ui-dock__body { display: none; }
    &.vfjs-ui-dock__zone--left, &.vfjs-ui-dock__zone--right { width: auto; }
  }
  .vfjs-ui-dock__ctl { margin-inline-start: auto; display: inline-flex; border: 0; background: none; color: var(--vfjs-muted); cursor: pointer; padding: var(--vfjs-space-1);
    &:hover { color: var(--vfjs-fg); }
  }

  /* ---------- command palette ---------- */
  .vfjs-ui-palette__backdrop { position: fixed; inset: 0; z-index: var(--vfjs-z-modal); background: color-mix(in srgb, var(--vfjs-black) 35%, transparent); display: flex; justify-content: center; align-items: flex-start; padding-top: 12vh; }
  .vfjs-ui-palette__box { width: min(calc(var(--vfjs-ui-palette-width, calc(var(--vfjs-size-unit) * 560)) * var(--vfjs-ui-scale)), 92vw); background: var(--vfjs-ui-palette-bg, var(--vfjs-bg)); color: var(--vfjs-fg); border: var(--vfjs-border-width) solid var(--vfjs-ui-palette-border, var(--vfjs-border));
    border-radius: var(--vfjs-radius-xl); box-shadow: var(--vfjs-ui-palette-shadow, var(--vfjs-shadow)); overflow: hidden; animation: vfjs-ui-fade var(--vfjs-motion-duration-fast); }
  .vfjs-ui-palette__input { display: flex; align-items: center; gap: calc(var(--vfjs-space) * 2.5); padding: calc(var(--vfjs-space) * 3.25 * var(--vfjs-ui-scale)) calc(var(--vfjs-space) * 3.75 * var(--vfjs-ui-scale)); border-bottom: var(--vfjs-border-width) solid var(--vfjs-border); color: var(--vfjs-muted);
    & { border-block-end-color: var(--_vfjs-ui-control-border); }
    input { flex: 1; border: 0; outline: 0; background: transparent; color: var(--vfjs-fg); font: inherit; font-size: calc(var(--vfjs-font-size-xl) * var(--vfjs-ui-scale)); }
  }
  .vfjs-ui-palette__list { max-height: calc(var(--vfjs-size-unit) * 320); overflow: auto; padding: calc(var(--vfjs-space) * 1.5); }
  .vfjs-ui-palette__cat { padding: calc(var(--vfjs-space) * 1.75) calc(var(--vfjs-space) * 2.5) calc(var(--vfjs-space) * 0.75); font-size: var(--vfjs-font-size-xs); text-transform: uppercase; letter-spacing: calc(var(--vfjs-letter-spacing-caps) * 1.2); color: var(--vfjs-muted); }
  .vfjs-ui-palette__cmd { display: flex; align-items: center; gap: calc(var(--vfjs-space) * 2.5); padding: calc(var(--vfjs-space-2) * var(--vfjs-ui-scale)) calc(var(--vfjs-space) * 2.5 * var(--vfjs-ui-scale)); font-size: var(--vfjs-ui-font-size);
    border-radius: var(--vfjs-radius-md); cursor: pointer; }
  .vfjs-ui-palette__cmd--active { background: var(--vfjs-ui-palette-active-bg, var(--vfjs-accent)); color: var(--vfjs-ui-palette-active-fg, var(--vfjs-accent-fg)); box-shadow: var(--_vfjs-ui-palette-active-ring);
    .vfjs-ui-palette__key, .vfjs-ui-menu__icon { color: inherit; }
  }
  .vfjs-ui-palette__title { flex: 1; }
  .vfjs-ui-palette__key { font-size: var(--vfjs-font-size-xs); color: var(--vfjs-muted); border: var(--vfjs-border-width) solid var(--vfjs-border); border-radius: var(--vfjs-radius-md); padding: calc(var(--vfjs-space) * 0.25) calc(var(--vfjs-space) * 1.25); }
  .vfjs-ui-palette__empty { padding: calc(var(--vfjs-space) * 4.5); text-align: center; color: var(--vfjs-muted); font-size: var(--vfjs-font-size); }

  /* ---------- tour ---------- */
  .vfjs-ui-tour__spot { position: fixed; z-index: var(--vfjs-z-tour); border-radius: var(--vfjs-radius); pointer-events: none;
    box-shadow: 0 0 0 calc(var(--vfjs-size-unit) * 4) var(--vfjs-accent), 0 0 0 calc(var(--vfjs-size-unit) * 9999) color-mix(in srgb, var(--vfjs-black) 55%, transparent); transition: all var(--vfjs-motion-duration-slow) var(--vfjs-motion-easing); }
  .vfjs-ui-tour__card { z-index: calc(var(--vfjs-z-tour) + 100); width: calc(var(--vfjs-ui-tour-width, calc(var(--vfjs-size-unit) * 290)) * var(--vfjs-ui-scale)); animation: vfjs-ui-fade calc(var(--vfjs-motion-duration) * 1.2); }
  .vfjs-ui-tour__head { display: flex; align-items: center; padding: calc(var(--vfjs-space) * 2.75) calc(var(--vfjs-space) * 3.25) 0; }
  .vfjs-ui-tour__title { flex: 1; font-size: var(--vfjs-ui-font-size-lg); font-weight: var(--vfjs-font-weight-bold); }
  .vfjs-ui-tour__body { padding: calc(var(--vfjs-space-2) * var(--vfjs-ui-scale)) calc(var(--vfjs-space) * 3.25 * var(--vfjs-ui-scale)); font-size: var(--vfjs-ui-font-size); color: var(--vfjs-muted); }
  .vfjs-ui-tour__foot { display: flex; align-items: center; gap: var(--vfjs-space-2); padding: var(--vfjs-space-2) calc(var(--vfjs-space) * 3.25) var(--vfjs-space-3); }
  .vfjs-ui-tour__step { font-size: var(--vfjs-font-size-xs); color: var(--vfjs-muted); flex: 1; }

  /* U1 part variables */
  .vfjs {
    --_vfjs-ui-error-color: var(--vfjs-ui-error-color, var(--_vfjs-ui-invalid-color));
    --_vfjs-ui-color-swatch-size: var(--vfjs-ui-color-swatch-size, calc(var(--vfjs-size-unit) * 20));
    --_vfjs-ui-color-checker-a: var(--vfjs-ui-color-checker-a, var(--vfjs-white));
    --_vfjs-ui-color-checker-b: var(--vfjs-ui-color-checker-b, var(--vfjs-slate-250));
    --_vfjs-ui-color-checker-size: var(--vfjs-ui-color-checker-size, calc(var(--vfjs-size-unit) * 8));
    /* --vfjs-ui-rating-size: the current size (U14, styles-look.js) from -sm / -md / -lg */
    /* --vfjs-ui-list-item-height: the current height (U14, styles-look.js) from -sm / -md / -lg */
  }

  /* ---------- form integration ---------- */
  .vfjs-ui-proxybox { position: relative; height: 0; overflow: visible; }
  .vfjs-ui-proxy { position: absolute; inset-inline-start: 0; bottom: 0; width: 0; height: 0; margin: 0; padding: 0; border: 0; opacity: 0; pointer-events: none; }
  .vfjs-ui-error { margin-top: var(--vfjs-space-1); font-size: var(--vfjs-ui-font-size-sm); color: var(--_vfjs-ui-error-color);
    &[hidden] { display: none; }
  }

  /* ---------- pickers (time / date-time / color) ---------- */
  .vfjs-ui-picker { cursor: text;
    .vfjs-ui-field__btn[hidden] { display: none; }
  }
  .vfjs-ui-picker__toggle:focus-visible { outline: var(--vfjs-focus-ring-width) var(--vfjs-focus-ring-style) var(--vfjs-focus-ring-color, var(--vfjs-accent)); outline-offset: 0; }
  .vfjs-ui-timepicker__list { max-height: calc(var(--vfjs-ui-time-list-height, calc(var(--vfjs-size-unit) * 240)) * var(--vfjs-ui-scale)); }
  .vfjs-ui-dtp__popup { padding: 0;
    .vfjs-ui-cal__foot { margin: 0; padding: var(--vfjs-space-2); }
  }
  .vfjs-ui-dtp__body { display: flex; align-items: stretch; }
  .vfjs-ui-calendar { width: calc(var(--vfjs-ui-calendar-width, calc(var(--vfjs-size-unit) * 252)) * var(--vfjs-ui-scale));
    .vfjs-ui-cal__day { cursor: pointer;
      /* U8: on the selected (filled) day the ring takes the text color of the selected day (an accent ring on an accent fill is invisible) */
      &.vfjs-ui-cal__day--sel:focus-visible { outline-color: var(--vfjs-ui-cal-selected-fg, var(--vfjs-accent-fg)); }
      &:focus-visible { outline: var(--vfjs-focus-ring-width) var(--vfjs-focus-ring-style) var(--vfjs-focus-ring-color, var(--vfjs-accent)); outline-offset: calc(var(--vfjs-focus-ring-width) * -1); }
    }
  }
  .vfjs-ui-calendar__grid { display: flex; flex-direction: column; gap: calc(var(--vfjs-space) * 0.5); }
  .vfjs-ui-calendar__row { display: grid; grid-template-columns: repeat(7, 1fr); gap: calc(var(--vfjs-space) * 0.5); }
  .vfjs-ui-calendar__nav:focus-visible { outline: var(--vfjs-focus-ring-width) var(--vfjs-focus-ring-style) var(--vfjs-focus-ring-color, var(--vfjs-accent)); }
  .vfjs-ui-dtp__timecol { display: flex; flex-direction: column; min-height: 0; width: calc(var(--vfjs-ui-dtp-times-width, calc(var(--vfjs-size-unit) * 104)) * var(--vfjs-ui-scale)); padding: calc(var(--vfjs-space) * 2.5 * var(--vfjs-ui-scale)) var(--vfjs-space-1);
    border-inline-start: var(--vfjs-border-width) solid var(--vfjs-border); }
  .vfjs-ui-dtp__label { padding: calc(var(--vfjs-space) * 0.75) var(--vfjs-space-2) var(--vfjs-space-2); font-size: var(--vfjs-font-size-xs); color: var(--vfjs-muted); text-align: center; }
  .vfjs-ui-dtp__times { flex: 1 1 0; min-height: 0; overflow: auto; outline: 0; border-radius: var(--vfjs-radius-md);
    &:focus-visible { box-shadow: inset 0 0 0 var(--vfjs-focus-ring-width) var(--vfjs-focus-ring-color, var(--vfjs-accent)); }
    .vfjs-ui-option { justify-content: center; }
    .vfjs-ui-option--selected { background: var(--vfjs-accent); color: var(--vfjs-accent-fg); }
  }
  .vfjs-ui-dtp--inline { display: inline-flex; flex-direction: column; background: var(--_vfjs-ui-popup-bg); color: var(--_vfjs-ui-popup-fg);
    border: var(--_vfjs-ui-popup-border); border-radius: var(--_vfjs-ui-popup-radius);
    .vfjs-ui-cal__foot { margin: 0; padding: var(--vfjs-space-2); }
    &.vfjs-ui-field--invalid { border-color: var(--_vfjs-ui-invalid-color); }
  }

  /* ---------- color picker ---------- */
  .vfjs-ui-color__popup, .vfjs-ui-color--inline { display: flex; flex-direction: column; gap: calc(var(--vfjs-space) * 2.5 * var(--vfjs-ui-scale)); width: calc(var(--vfjs-ui-color-panel-width, calc(var(--vfjs-size-unit) * 240)) * var(--vfjs-ui-scale)); padding: calc(var(--vfjs-space-3) * var(--vfjs-ui-scale)); }
  .vfjs-ui-color--inline { background: var(--_vfjs-ui-popup-bg); color: var(--_vfjs-ui-popup-fg); border: var(--_vfjs-ui-popup-border); border-radius: var(--_vfjs-ui-popup-radius);
    &.vfjs-ui-field--invalid { border-color: var(--_vfjs-ui-invalid-color); }
  }
  .vfjs-ui-color__sv { position: relative; height: calc(var(--vfjs-ui-color-area-height, calc(var(--vfjs-size-unit) * 150)) * var(--vfjs-ui-scale)); border-radius: var(--vfjs-radius-md); cursor: crosshair; touch-action: none; outline: 0;
    background-image: linear-gradient(to top, var(--vfjs-black), transparent), linear-gradient(to right, var(--vfjs-white), transparent); }
  .vfjs-ui-color--rtl {
    .vfjs-ui-color__sv { background-image: linear-gradient(to top, var(--vfjs-black), transparent), linear-gradient(to left, var(--vfjs-white), transparent); }
    .vfjs-ui-color__alpha { background-image: linear-gradient(to left, transparent, var(--vfjs-ui-color-alpha-to, var(--vfjs-black))),
      conic-gradient(var(--_vfjs-ui-color-checker-a) 25%, var(--_vfjs-ui-color-checker-b) 0 50%, var(--_vfjs-ui-color-checker-a) 0 75%, var(--_vfjs-ui-color-checker-b) 0); }
  }
  .vfjs-ui-color__hue, .vfjs-ui-color__alpha { position: relative; height: var(--vfjs-ui-color-slider-height, calc(var(--vfjs-size-unit) * 12)); border-radius: var(--vfjs-radius-pill); cursor: pointer; touch-action: none; outline: 0; }
  .vfjs-ui-color__alpha { background-image: linear-gradient(to right, transparent, var(--vfjs-ui-color-alpha-to, var(--vfjs-black))),
    conic-gradient(var(--_vfjs-ui-color-checker-a) 25%, var(--_vfjs-ui-color-checker-b) 0 50%, var(--_vfjs-ui-color-checker-a) 0 75%, var(--_vfjs-ui-color-checker-b) 0);
    background-size: 100% 100%, var(--_vfjs-ui-color-checker-size) var(--_vfjs-ui-color-checker-size); }
  .vfjs-ui-color__sv:focus-visible, .vfjs-ui-color__hue:focus-visible, .vfjs-ui-color__alpha:focus-visible {
    outline: var(--vfjs-focus-ring-width) var(--vfjs-focus-ring-style) var(--vfjs-focus-ring-color, var(--vfjs-accent)); outline-offset: var(--vfjs-focus-ring-offset); }
  .vfjs-ui-color__thumb { position: absolute; top: 50%; width: var(--vfjs-ui-color-thumb-size, calc(var(--vfjs-size-unit) * 14)); height: var(--vfjs-ui-color-thumb-size, calc(var(--vfjs-size-unit) * 14)); border-radius: var(--vfjs-radius-full);
    border: var(--vfjs-border-width-thick) solid var(--vfjs-white); box-shadow: var(--vfjs-shadow-sm); transform: translate(-50%, -50%); pointer-events: none; box-sizing: border-box; }
  .vfjs-ui-color__row { display: flex; align-items: center; gap: var(--vfjs-space-2); }
  .vfjs-ui-color__preview, .vfjs-ui-color__chip { position: relative; display: inline-flex; flex: none; overflow: hidden; border-radius: var(--vfjs-radius-sm);
    border: var(--vfjs-border-width) solid color-mix(in srgb, var(--vfjs-fg) 18%, transparent);
    background-image: conic-gradient(var(--_vfjs-ui-color-checker-a) 25%, var(--_vfjs-ui-color-checker-b) 0 50%, var(--_vfjs-ui-color-checker-a) 0 75%, var(--_vfjs-ui-color-checker-b) 0);
    background-size: var(--_vfjs-ui-color-checker-size) var(--_vfjs-ui-color-checker-size); }
  .vfjs-ui-color__preview { width: var(--vfjs-control-height-sm); height: var(--vfjs-control-height-sm); }
  .vfjs-ui-color__chip { width: calc(var(--vfjs-size-unit) * 18); height: calc(var(--vfjs-size-unit) * 18); }
  .vfjs-ui-color__preview-fill, .vfjs-ui-color__chip-fill { flex: 1; }
  .vfjs-ui-color__toggle { padding: calc(var(--vfjs-space) * 0.5); }
  .vfjs-ui-color__code { flex: 1; min-width: 0; height: var(--vfjs-control-height-sm); padding: 0 var(--vfjs-space-2); font: inherit; font-family: var(--vfjs-font-mono); font-size: var(--vfjs-font-size-sm);
    color: var(--vfjs-fg); background: var(--_vfjs-ui-field-bg); border: var(--_vfjs-ui-field-border); border-radius: var(--_vfjs-ui-field-radius); outline: 0;
    &:focus { border-color: var(--vfjs-accent); box-shadow: var(--_vfjs-ui-field-focus-ring); }
  }
  .vfjs-ui-color__swatches { display: flex; flex-wrap: wrap; gap: calc(var(--vfjs-space) * 1.5); }
  .vfjs-ui-color__swatch { width: calc(var(--_vfjs-ui-color-swatch-size) * var(--vfjs-ui-scale)); height: calc(var(--_vfjs-ui-color-swatch-size) * var(--vfjs-ui-scale)); border-radius: var(--vfjs-radius-sm); cursor: pointer; outline: 0;
    border: var(--vfjs-border-width) solid color-mix(in srgb, var(--vfjs-fg) 15%, transparent); box-sizing: border-box;
    &[aria-selected="true"] { box-shadow: 0 0 0 var(--vfjs-border-width-thick) var(--vfjs-bg), 0 0 0 calc(var(--vfjs-border-width-thick) * 2) var(--vfjs-accent); }
    &:focus-visible { outline: var(--vfjs-focus-ring-width) var(--vfjs-focus-ring-style) var(--vfjs-focus-ring-color, var(--vfjs-accent)); outline-offset: var(--vfjs-focus-ring-offset); }
  }

  /* ---------- rating ---------- */
  .vfjs-ui-rating { display: inline-flex; gap: var(--vfjs-ui-rating-gap, calc(var(--vfjs-space) * 0.5)); cursor: pointer; border-radius: var(--vfjs-radius-sm); outline: 0; touch-action: manipulation; user-select: none;
    &:focus-visible { outline: var(--vfjs-focus-ring-width) var(--vfjs-focus-ring-style) var(--vfjs-focus-ring-color, var(--vfjs-accent)); outline-offset: var(--vfjs-focus-ring-offset); }
    &.vfjs-ui-field--invalid { outline: var(--vfjs-border-width) solid var(--_vfjs-ui-invalid-color); outline-offset: var(--vfjs-focus-ring-offset); }
  }
  .vfjs-ui-rating__item { position: relative; display: inline-flex; width: var(--vfjs-ui-rating-size); height: var(--vfjs-ui-rating-size); color: var(--vfjs-ui-rating-empty, var(--_vfjs-ui-control-border));
    svg { flex: none; width: var(--vfjs-ui-rating-size); height: var(--vfjs-ui-rating-size); fill: currentColor; }
  }
  .vfjs-ui-rating__base, .vfjs-ui-rating__fill { display: inline-flex; height: 100%; }
  .vfjs-ui-rating__fill { position: absolute; inset-block: 0; inset-inline-start: 0; width: 0; overflow: hidden; color: var(--vfjs-ui-rating-color, var(--vfjs-warning));
    /* U8 (1.4.11): a filled star keeps 3:1 by a darker outline (yellow stars alone are ~1.6:1 on white) */
    svg { stroke: color-mix(in srgb, currentColor 55%, var(--vfjs-fg)); }
  }
  .vfjs-ui-rating__base svg { fill: var(--vfjs-ui-rating-empty-fill, var(--vfjs-border)); }
  .vfjs-ui-rating--hover .vfjs-ui-rating__fill { color: var(--vfjs-ui-rating-hover-color, color-mix(in srgb, var(--vfjs-warning) 75%, var(--vfjs-fg))); }
  .vfjs-ui-rating--readonly { cursor: default; }
  .vfjs-ui-rating--disabled { cursor: not-allowed; opacity: var(--_vfjs-ui-disabled-opacity); }
  /* U18: invalid base controls (checkbox / switch box, radio group, button group, chip group) */
  .vfjs-ui-check {
    &.vfjs-ui-field--invalid {
      .vfjs-ui-check__box { border-color: var(--_vfjs-ui-invalid-color); }
      .vfjs-ui-switch__track { box-shadow: inset 0 0 0 var(--vfjs-border-width) var(--_vfjs-ui-invalid-color); }
    }
  }
  .vfjs-ui-radiogroup.vfjs-ui-field--invalid, .vfjs-ui-btngroup.vfjs-ui-field--invalid, .vfjs-ui-chipgroup.vfjs-ui-field--invalid { outline: var(--vfjs-border-width) solid var(--_vfjs-ui-invalid-color); outline-offset: var(--vfjs-focus-ring-offset); }

  /* ---------- file upload ---------- */
  .vfjs-ui-upload { display: flex; flex-direction: column; gap: var(--vfjs-space-2); }
  .vfjs-ui-upload__drop { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--vfjs-space-2);
    padding: calc(var(--vfjs-space-5) * var(--vfjs-ui-scale)) calc(var(--vfjs-space-4) * var(--vfjs-ui-scale)); border: var(--vfjs-ui-upload-drop-border, var(--vfjs-border-width-thick) dashed var(--vfjs-border)); border-radius: var(--vfjs-radius-lg); font-size: var(--vfjs-ui-font-size);
    background: var(--vfjs-ui-upload-drop-bg, var(--vfjs-surface)); color: var(--vfjs-muted); text-align: center; cursor: pointer;
    transition: border-color var(--vfjs-motion-duration-fast), background var(--vfjs-motion-duration-fast);
    &.vfjs-ui-field--invalid { border-color: var(--_vfjs-ui-invalid-color); }
  }
  .vfjs-ui-upload__drop--over { border-color: var(--vfjs-accent); background: var(--vfjs-ui-upload-over-bg, color-mix(in srgb, var(--vfjs-accent) 10%, var(--vfjs-bg))); color: var(--vfjs-fg); }
  .vfjs-ui-upload__icon { display: inline-flex; color: var(--vfjs-accent); }
  .vfjs-ui-upload__hint { flex-basis: 100%; font-size: var(--vfjs-font-size-xs); }
  .vfjs-ui-upload__hint[hidden], .vfjs-ui-upload__list[hidden], .vfjs-ui-upload__bar[hidden] { display: none; }
  .vfjs-ui-upload__list { display: flex; flex-direction: column; gap: var(--vfjs-space-1); margin: 0; padding: 0; list-style: none; }
  .vfjs-ui-upload__item { display: flex; align-items: center; gap: var(--vfjs-space-2); padding: calc(var(--vfjs-space-2) * var(--vfjs-ui-scale)); background: var(--vfjs-ui-upload-item-bg, var(--vfjs-bg));
    border: var(--vfjs-border-width) solid var(--vfjs-ui-upload-item-border, var(--vfjs-border)); border-radius: var(--vfjs-radius); font-size: var(--vfjs-ui-font-size);
    &[data-status="done"] .vfjs-ui-upload__fileicon { color: var(--vfjs-ui-upload-done-color, var(--vfjs-success)); }
    &[data-status="error"], &[data-status="rejected"] { border-color: var(--vfjs-ui-upload-error-color, var(--vfjs-danger)); }
    &[data-status="error"] .vfjs-ui-upload__meta, &[data-status="rejected"] .vfjs-ui-upload__meta, &[data-status="error"] .vfjs-ui-upload__fileicon, &[data-status="rejected"] .vfjs-ui-upload__fileicon { color: var(--vfjs-ui-upload-error-color, var(--vfjs-danger)); }
  }
  .vfjs-ui-upload__fileicon { display: inline-flex; color: var(--vfjs-muted); }
  .vfjs-ui-upload__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: calc(var(--vfjs-space) * 0.75); }
  .vfjs-ui-upload__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: var(--vfjs-font-weight-medium); }
  .vfjs-ui-upload__meta { font-size: var(--vfjs-font-size-xs); color: var(--vfjs-muted); }
  .vfjs-ui-upload__bar { height: var(--vfjs-ui-upload-bar-height, calc(var(--vfjs-size-unit) * 4)); background: var(--vfjs-surface); border-radius: var(--vfjs-radius-pill); overflow: hidden; }
  .vfjs-ui-upload__barfill { width: 0; height: 100%; background: var(--vfjs-ui-upload-bar-color, var(--vfjs-accent)); transition: width var(--vfjs-motion-duration); }
  .vfjs-ui-upload__actions { display: flex; gap: var(--vfjs-space-1);
    .vfjs-ui-field__btn:focus-visible { outline: var(--vfjs-focus-ring-width) var(--vfjs-focus-ring-style) var(--vfjs-focus-ring-color, var(--vfjs-accent)); }
  }
  .vfjs-ui-upload--disabled .vfjs-ui-upload__drop { cursor: not-allowed; opacity: var(--_vfjs-ui-disabled-opacity); }

  /* ---------- list view / list box ---------- */
  .vfjs-ui-list { position: relative; overflow: auto; padding: var(--vfjs-space-1); outline: 0; border-radius: var(--vfjs-radius);
    &:focus-visible { outline: var(--vfjs-focus-ring-width) var(--vfjs-focus-ring-style) var(--vfjs-focus-ring-color, var(--vfjs-accent)); outline-offset: calc(var(--vfjs-focus-ring-width) * -1); }
  }
  .vfjs-ui-list--virtual { max-height: var(--vfjs-ui-list-max-height, calc(var(--vfjs-size-unit) * 320)); }
  .vfjs-ui-listbox .vfjs-ui-list { max-height: var(--vfjs-ui-list-max-height, calc(var(--vfjs-size-unit) * 320)); background: var(--_vfjs-ui-field-bg); border: var(--_vfjs-ui-field-border); border-radius: var(--_vfjs-ui-field-radius); }
  .vfjs-ui-list {
    &.vfjs-ui-field--invalid { border-color: var(--_vfjs-ui-invalid-color); box-shadow: 0 0 0 var(--vfjs-border-width) var(--_vfjs-ui-invalid-color); }
    &:focus .vfjs-ui-list__item--active { box-shadow: inset 0 0 0 var(--vfjs-focus-ring-width) var(--vfjs-focus-ring-color, var(--vfjs-accent)); }
    &:not(.vfjs-ui-list--virtual) .vfjs-ui-list__content { white-space: normal; }
  }
  .vfjs-ui-list__spacer { position: relative; }
  .vfjs-ui-list__item { box-sizing: border-box; min-height: var(--vfjs-ui-list-item-height); user-select: none; border-radius: var(--vfjs-radius-md);
    &.vfjs-ui-option--selected { background: var(--vfjs-ui-list-selected-bg, var(--vfjs-selected-bg)); color: var(--vfjs-ui-list-selected-fg, var(--_vfjs-ui-accent-text)); box-shadow: var(--vfjs-ui-list-selected-ring, none); font-weight: var(--vfjs-ui-selected-weight, var(--vfjs-font-weight-bold)); }
  }
  .vfjs-ui-list__item--active { background: var(--_vfjs-ui-item-hover-bg); }
  .vfjs-ui-list__content { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .vfjs-ui-list__check { display: inline-flex; flex: none; align-items: center; justify-content: center; width: calc(var(--vfjs-size-unit) * 16); height: calc(var(--vfjs-size-unit) * 16);
    border: var(--vfjs-border-width) solid var(--vfjs-border); border-radius: var(--vfjs-radius-xs); background: var(--vfjs-bg); box-sizing: border-box; }
  .vfjs-ui-list__check--on { background: var(--vfjs-accent); border-color: var(--vfjs-accent); color: var(--vfjs-accent-fg); }
  .vfjs-ui-list__drop { position: absolute; inset-inline: 0; height: var(--vfjs-border-width-thick); margin-top: calc(var(--vfjs-border-width-thick) / -2);
    background: var(--vfjs-ui-list-drop-color, var(--vfjs-accent)); border-radius: var(--vfjs-radius-pill); pointer-events: none; z-index: calc(var(--vfjs-z-base) + 2); }
  .vfjs-ui-list__drop[hidden], .vfjs-ui-list__empty[hidden] { display: none; }
  .vfjs-ui-list__empty { padding: var(--vfjs-space-3); text-align: center; color: var(--vfjs-muted); font-size: var(--vfjs-font-size); }
  .vfjs-ui-list--draggable .vfjs-ui-list__item { cursor: grab; }
  .vfjs-ui-list--dragging, .vfjs-ui-list--dragging .vfjs-ui-list__item { cursor: grabbing; }
  .vfjs-ui-list__item--dragging { opacity: .4; }
  .vfjs-ui-list--disabled { opacity: var(--_vfjs-ui-disabled-opacity); pointer-events: none; }
  .vfjs-ui-list__ghost { position: fixed; z-index: var(--vfjs-z-drag); pointer-events: none; padding: var(--vfjs-space-1) var(--vfjs-space-2); white-space: nowrap;
    font-size: var(--vfjs-font-size); background: var(--_vfjs-ui-popup-bg); color: var(--_vfjs-ui-popup-fg); border: var(--_vfjs-ui-popup-border);
    border-radius: var(--_vfjs-ui-popup-radius); box-shadow: var(--vfjs-ui-popup-shadow, var(--vfjs-shadow)); }

  /* U2 part variables. Root rules use :where(.block):not(.vfjs): core puts vfjs-<cname> (e.g. vfjs-ui-card) on the
     mount element too, which must not get the look of the inner element */
  .vfjs {
    /* --vfjs-ui-avatar-size (and chip height, spinner size, step marker, carousel buttons / dots): the current size
       (U14, styles-look.js) from -sm / -md / -lg */
    --_vfjs-ui-avatar-size-xs: var(--vfjs-ui-avatar-size-xs, calc(var(--vfjs-size-unit) * 20));
    --_vfjs-ui-avatar-size-sm: var(--vfjs-ui-avatar-size-sm, calc(var(--vfjs-size-unit) * 28));
    --_vfjs-ui-avatar-hue: var(--vfjs-accent);
    /* --vfjs-ui-avatar-bg / -fg: not set by default (= the hue of each avatar mixed with the theme, see the rule); set them
       to give every avatar one color */
    --_vfjs-ui-chip-hue: var(--vfjs-muted);
    --_vfjs-ui-spinner-color: var(--vfjs-ui-spinner-color, var(--vfjs-accent));
    --_vfjs-ui-spinner-track: var(--vfjs-ui-spinner-track, color-mix(in srgb, var(--vfjs-accent) 18%, transparent));
    --_vfjs-ui-spinner-duration: var(--vfjs-ui-spinner-duration, calc(var(--vfjs-motion-duration) * 5));
    --_vfjs-ui-step-error: var(--vfjs-ui-step-error, var(--_vfjs-ui-invalid-color));
  }
  .vfjs-ui-btn:focus-visible, .vfjs-ui-card__link:focus-visible, .vfjs-ui-chip:focus-visible, .vfjs-ui-chip__main:focus-visible,
  .vfjs-ui-chip__remove:focus-visible, .vfjs-ui-step:focus-visible, .vfjs-ui-carousel__btn:focus-visible, .vfjs-ui-carousel__dot:focus-visible {
    outline: var(--vfjs-focus-ring-width) var(--vfjs-focus-ring-style) var(--vfjs-focus-ring-color, var(--vfjs-accent)); outline-offset: var(--vfjs-focus-ring-offset); }

  /* ---------- card ---------- */
  :where(.vfjs-ui-card):not(.vfjs) { position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--vfjs-ui-card-bg, var(--vfjs-bg)); color: var(--vfjs-ui-card-fg, var(--vfjs-fg));
    border: var(--vfjs-ui-card-border, var(--vfjs-border-width) solid var(--vfjs-border)); border-radius: var(--vfjs-ui-card-radius, var(--vfjs-radius-lg)); font-size: var(--vfjs-ui-font-size); transition: border-color var(--vfjs-motion-duration-fast), box-shadow var(--vfjs-motion-duration-fast); }
  .vfjs-ui-card--elevated { border-color: transparent; box-shadow: var(--vfjs-ui-card-shadow, var(--vfjs-shadow)); }
  .vfjs-ui-card--filled { background: var(--vfjs-ui-card-filled-bg, var(--vfjs-surface)); border-color: transparent; }
  .vfjs-ui-card--media-bottom { flex-direction: column-reverse; }
  .vfjs-ui-card--media-start, .vfjs-ui-card--media-end { flex-direction: row; }
  .vfjs-ui-card--media-end { flex-direction: row-reverse; }
  .vfjs-ui-card--media-start .vfjs-ui-card__media, .vfjs-ui-card--media-end .vfjs-ui-card__media { flex: none; width: var(--vfjs-ui-card-media-width, 40%); }
  .vfjs-ui-card--media-start .vfjs-ui-card__media img, .vfjs-ui-card--media-end .vfjs-ui-card__media img { height: 100%; }
  .vfjs-ui-card--media-bottom .vfjs-ui-card__body { flex: 1; }
  .vfjs-ui-card__media { overflow: hidden;
    img { display: block; width: 100%; object-fit: cover; }
  }
  .vfjs-ui-card__body { display: flex; flex-direction: column; gap: calc(var(--vfjs-ui-card-gap, var(--vfjs-space-2)) * var(--vfjs-ui-scale)); padding: calc(var(--vfjs-ui-card-padding, var(--vfjs-space-4)) * var(--vfjs-ui-scale)); flex: 1; min-width: 0; }
  .vfjs-ui-card__head { display: flex; flex-direction: column; gap: var(--vfjs-space-1); }
  .vfjs-ui-card__title { margin: 0; font-size: var(--vfjs-ui-font-size-lg); font-weight: var(--vfjs-font-weight-semibold); line-height: var(--vfjs-line-height-tight); }
  .vfjs-ui-card__subtitle { margin: 0; font-size: var(--vfjs-ui-font-size-sm); color: var(--vfjs-muted); }
  .vfjs-ui-card__content { flex: 1; color: var(--vfjs-ui-card-fg, var(--vfjs-fg)); line-height: var(--vfjs-line-height); }
  .vfjs-ui-card__footer { font-size: var(--vfjs-ui-font-size-sm); color: var(--vfjs-muted); }
  .vfjs-ui-card__actions { position: relative; z-index: calc(var(--vfjs-z-base) + 1); display: flex; flex-wrap: wrap; gap: var(--vfjs-space-1); margin-inline-start: calc(var(--vfjs-space-2) * -1); }
  .vfjs-ui-card__link { all: unset; cursor: pointer; color: inherit;
    &::after { content: ''; position: absolute; inset: 0; }
    &:focus-visible { outline: 0; }
  }
  .vfjs-ui-card--link {
    &:has(.vfjs-ui-card__link:focus-visible) { outline: var(--vfjs-focus-ring-width) var(--vfjs-focus-ring-style) var(--vfjs-focus-ring-color, var(--vfjs-accent)); outline-offset: var(--vfjs-focus-ring-offset); }
    &:hover { border-color: var(--vfjs-ui-card-hover-border, var(--vfjs-accent));
      .vfjs-ui-card__title { color: var(--vfjs-accent); }
    }
  }
  .vfjs-ui-card--disabled { opacity: var(--_vfjs-ui-disabled-opacity); }

  /* ---------- avatar ---------- */
  :where(.vfjs-ui-avatar):not(.vfjs) { position: relative; display: inline-flex; flex: none; align-items: center; justify-content: center; vertical-align: middle;
    width: var(--vfjs-ui-avatar-size); height: var(--vfjs-ui-avatar-size); border-radius: 50%;
    background: var(--vfjs-ui-avatar-bg, color-mix(in srgb, var(--vfjs-ui-avatar-hue, var(--_vfjs-ui-avatar-hue)) var(--vfjs-ui-avatar-tint, 22%), var(--vfjs-bg)));
    color: var(--vfjs-ui-avatar-fg, color-mix(in srgb, var(--vfjs-ui-avatar-hue, var(--_vfjs-ui-avatar-hue)) var(--vfjs-ui-avatar-fg-tint, 40%), var(--vfjs-fg)));
    outline: calc(var(--vfjs-border-width) * var(--vfjs-ui-avatar-outline, 0)) solid var(--vfjs-ui-avatar-hue, var(--_vfjs-ui-avatar-hue)); outline-offset: calc(var(--vfjs-border-width) * -1);
    font-size: calc(var(--vfjs-ui-avatar-size) * 0.4); font-weight: var(--vfjs-font-weight-semibold); line-height: var(--vfjs-line-height-none); user-select: none; }
  .vfjs-ui-avatar--xs { --vfjs-ui-avatar-size: var(--_vfjs-ui-avatar-size-xs); }
  .vfjs-ui-avatar--sm { --vfjs-ui-avatar-size: var(--_vfjs-ui-avatar-size-sm); }
  .vfjs-ui-avatar--lg { --vfjs-ui-avatar-size: var(--vfjs-ui-avatar-size-lg, calc(var(--vfjs-size-unit) * 48)); }
  .vfjs-ui-avatar--xl { --vfjs-ui-avatar-size: var(--vfjs-ui-avatar-size-xl, calc(var(--vfjs-size-unit) * 64)); }
  .vfjs-ui-avatar--square { border-radius: var(--vfjs-ui-avatar-radius, var(--vfjs-radius-md)); }
  .vfjs-ui-avatar__img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
  .vfjs-ui-avatar__icon { display: inline-flex;
    svg { width: 60%; height: 60%; }
    & { width: 100%; height: 100%; align-items: center; justify-content: center; }
  }
  .vfjs-ui-avatar__status { position: absolute; inset-inline-end: 0; bottom: 0; width: 28%; height: 28%; border-radius: 50%; box-shadow: 0 0 0 var(--vfjs-border-width-thick) var(--vfjs-ui-avatar-ring, var(--vfjs-bg)); }
  .vfjs-ui-avatar__status--online { background: var(--vfjs-ui-avatar-online, var(--vfjs-success)); }
  .vfjs-ui-avatar__status--offline { background: var(--vfjs-ui-avatar-offline, var(--vfjs-muted)); }
  .vfjs-ui-avatar__status--busy { background: var(--vfjs-ui-avatar-busy, var(--vfjs-danger)); }
  .vfjs-ui-avatar__status--away { background: var(--vfjs-ui-avatar-away, var(--vfjs-warning)); }
  :where(.vfjs-ui-avatargroup):not(.vfjs) { display: inline-flex; align-items: center; }
  .vfjs-ui-avatargroup {
    .vfjs-ui-avatar { box-shadow: 0 0 0 var(--vfjs-border-width-thick) var(--vfjs-ui-avatar-ring, var(--vfjs-bg));
      + .vfjs-ui-avatar { margin-inline-start: calc(var(--vfjs-ui-avatar-size) * var(--vfjs-ui-avatar-overlap, 0.28) * -1); }
    }
  }
  .vfjs-ui-avatar--more { color: var(--vfjs-fg); font-size: calc(var(--vfjs-ui-avatar-size) * 0.34); }

  /* ---------- chip ---------- */
  :where(.vfjs-ui-chipgroup):not(.vfjs) { display: flex; flex-wrap: wrap; gap: var(--vfjs-ui-chip-gap, var(--vfjs-space-1)); outline: 0; }
  :where(.vfjs-ui-chip):not(.vfjs) { display: inline-flex; align-items: center; gap: var(--vfjs-space-1); height: var(--vfjs-ui-chip-height); max-width: 100%; padding: 0 calc(var(--vfjs-space) * 2.5 * var(--vfjs-ui-scale));
    border-radius: var(--vfjs-ui-chip-radius, var(--vfjs-radius-pill)); background: var(--vfjs-ui-chip-bg, var(--vfjs-surface)); color: var(--vfjs-ui-chip-fg, var(--vfjs-fg)); border: var(--vfjs-border-width) solid var(--vfjs-ui-chip-border-color, transparent);
    font-size: var(--vfjs-ui-font-size-sm); line-height: var(--vfjs-line-height-none); white-space: nowrap; vertical-align: middle; user-select: none; }
  .vfjs-ui-chip--sm { height: var(--vfjs-ui-chip-height-sm, calc(var(--vfjs-control-height) * 0.64)); padding: 0 var(--vfjs-space-2); font-size: var(--vfjs-font-size-xs); }
  .vfjs-ui-chip--md { height: var(--vfjs-ui-chip-height-md, calc(var(--vfjs-control-height) * 0.8)); padding: 0 calc(var(--vfjs-space) * 2.5); font-size: var(--vfjs-font-size-sm); }
  .vfjs-ui-chip--lg { height: var(--vfjs-ui-chip-height-lg, calc(var(--vfjs-control-height) * 0.96)); padding: 0 var(--vfjs-space-3); font-size: var(--vfjs-font-size); }
  /* U14: a variant class = the chip variables (the same ones a variant of the root / a container sets) */
  .vfjs-ui-chip--filled { --vfjs-ui-chip-bg: var(--vfjs-surface); --vfjs-ui-chip-border-color: transparent; --vfjs-ui-chip-tint: 16%; --vfjs-ui-chip-tint-base: var(--vfjs-bg); --vfjs-ui-chip-ring: 0%; }
  .vfjs-ui-chip--outlined { --vfjs-ui-chip-bg: transparent; --vfjs-ui-chip-border-color: var(--vfjs-ui-chip-border, var(--vfjs-border)); --vfjs-ui-chip-tint: 0%; --vfjs-ui-chip-tint-base: transparent; --vfjs-ui-chip-ring: 100%; }
  .vfjs-ui-chip--ghost { --vfjs-ui-chip-bg: transparent; --vfjs-ui-chip-border-color: transparent; --vfjs-ui-chip-tint: 0%; --vfjs-ui-chip-tint-base: transparent; --vfjs-ui-chip-ring: 0%; }
  .vfjs-ui-chip--accent { --vfjs-ui-chip-hue: var(--vfjs-accent); }
  .vfjs-ui-chip--success { --vfjs-ui-chip-hue: var(--vfjs-success); }
  .vfjs-ui-chip--warning { --vfjs-ui-chip-hue: var(--vfjs-warning); }
  .vfjs-ui-chip--danger { --vfjs-ui-chip-hue: var(--vfjs-danger); }
  .vfjs-ui-chip--info { --vfjs-ui-chip-hue: var(--vfjs-info); }
  .vfjs-ui-chip {
    &:not(.vfjs-ui-chip--default):not(.vfjs) { background: color-mix(in srgb, var(--vfjs-ui-chip-hue, var(--_vfjs-ui-chip-hue)) var(--vfjs-ui-chip-tint, 16%), var(--vfjs-ui-chip-tint-base, var(--vfjs-bg)));
      color: color-mix(in srgb, var(--vfjs-ui-chip-hue, var(--_vfjs-ui-chip-hue)) 60%, var(--vfjs-fg)); border-color: color-mix(in srgb, var(--vfjs-ui-chip-hue, var(--_vfjs-ui-chip-hue)) var(--vfjs-ui-chip-ring, 0%), transparent); }
    &.vfjs-ui-chip--selected { background: var(--vfjs-ui-chip-selected-bg, var(--vfjs-accent)); color: var(--vfjs-ui-chip-selected-fg, var(--vfjs-accent-fg)); border-color: transparent; }
  }
  .vfjs-ui-chipgroup[role="listbox"] .vfjs-ui-chip:not(.vfjs-ui-chip--disabled), .vfjs-ui-chip__main:is(button) { cursor: pointer; }
  .vfjs-ui-chipgroup[role="listbox"] .vfjs-ui-chip:not(.vfjs-ui-chip--selected):not(.vfjs-ui-chip--disabled):hover { border-color: var(--vfjs-ui-chip-border, var(--vfjs-border)); }
  .vfjs-ui-chip__main { all: unset; display: inline-flex; align-items: center; gap: var(--vfjs-space-1); min-width: 0; height: 100%; }
  .vfjs-ui-chip__label { overflow: hidden; text-overflow: ellipsis; }
  .vfjs-ui-chip__icon, .vfjs-ui-chip__check { display: inline-flex; }
  .vfjs-ui-chip__avatar { width: calc(var(--vfjs-ui-chip-height) - var(--vfjs-space-2)); height: calc(var(--vfjs-ui-chip-height) - var(--vfjs-space-2)); border-radius: 50%; object-fit: cover; margin-inline-start: calc(var(--vfjs-space) * -1.5); }
  .vfjs-ui-chip__remove { all: unset; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 50%; padding: calc(var(--vfjs-space) * 0.5);
    margin-inline-end: calc(var(--vfjs-space) * -1.25); min-inline-size: var(--_vfjs-ui-target-min); min-block-size: var(--_vfjs-ui-target-min); box-sizing: border-box;
    &:hover { background: color-mix(in srgb, currentColor 14%, transparent); }
  }
  .vfjs-ui-chip--disabled { opacity: var(--_vfjs-ui-disabled-opacity);
    .vfjs-ui-chip__remove, .vfjs-ui-chip__main { cursor: not-allowed; }
  }

  /* ---------- button group / split button ---------- */
  .vfjs-ui-btngroup { display: inline-flex; align-items: stretch; vertical-align: middle;
    > .vfjs-ui-btn { border-radius: 0; position: relative;
      &:focus-visible { z-index: calc(var(--vfjs-z-base) + 1); }
      &:first-child { border-start-start-radius: var(--_vfjs-ui-btn-radius); border-end-start-radius: var(--_vfjs-ui-btn-radius); }
    }
  }
  .vfjs-ui-btngroup--block { display: flex; width: 100%;
    > .vfjs-ui-btn { flex: 1; }
  }
  .vfjs-ui-btngroup {
    > .vfjs-ui-btn {
      &:nth-last-child(1 of .vfjs-ui-btn) { border-start-end-radius: var(--_vfjs-ui-btn-radius); border-end-end-radius: var(--_vfjs-ui-btn-radius); }
      + .vfjs-ui-btn { margin-inline-start: calc(var(--vfjs-border-width) * -1); }
    }
    > .vfjs-ui-btn--primary + .vfjs-ui-btn--primary, > .vfjs-ui-btn--danger + .vfjs-ui-btn--danger { margin-inline-start: 0;
      border-inline-start: var(--vfjs-border-width) solid color-mix(in srgb, var(--vfjs-black) 18%, transparent); }
    > .vfjs-ui-btn--pressed {
      &:not(.vfjs-ui-btn--primary):not(.vfjs-ui-btn--danger) { background: var(--vfjs-ui-btngroup-pressed-bg, color-mix(in srgb, var(--vfjs-accent) 16%, var(--vfjs-bg))); color: var(--vfjs-ui-btngroup-pressed-fg, var(--_vfjs-ui-accent-text)); border-color: var(--vfjs-ui-btngroup-pressed-fg, var(--_vfjs-ui-accent-text)); z-index: var(--vfjs-z-base); }
      &.vfjs-ui-btn--primary, &.vfjs-ui-btn--danger { filter: brightness(var(--vfjs-hover-brightness)); box-shadow: inset 0 0 0 var(--vfjs-border-width-thick) color-mix(in srgb, var(--vfjs-black) 25%, transparent); }
    }
  }
  .vfjs-ui-btngroup--vertical { flex-direction: column;
    > .vfjs-ui-btn { border-radius: 0;
      + .vfjs-ui-btn { margin-inline-start: 0; margin-top: calc(var(--vfjs-border-width) * -1); }
      &:first-child { border-start-start-radius: var(--_vfjs-ui-btn-radius); border-start-end-radius: var(--_vfjs-ui-btn-radius); border-end-start-radius: 0; }
      &:last-child { border-end-start-radius: var(--_vfjs-ui-btn-radius); border-end-end-radius: var(--_vfjs-ui-btn-radius); border-start-end-radius: 0; }
    }
  }
  .vfjs-ui-splitbtn__toggle { padding-inline: calc(var(--vfjs-space) * 1.75); }
  .vfjs-ui-splitbtn[aria-expanded="true"] .vfjs-ui-splitbtn__toggle svg, .vfjs-ui-splitbtn__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

  /* ---------- spinner ---------- */
  :where(.vfjs-ui-spinner) {
    &:not(.vfjs) { display: inline-flex; align-items: center; gap: var(--vfjs-space-2); color: var(--_vfjs-ui-spinner-color); font-size: var(--vfjs-font-size-sm); vertical-align: middle; }
    &[hidden] { display: none; }
  }
  .vfjs-ui-spinner--xs { --vfjs-ui-spinner-size: var(--vfjs-ui-spinner-size-xs, calc(var(--vfjs-size-unit) * 12)); }
  .vfjs-ui-spinner--sm { --vfjs-ui-spinner-size: var(--vfjs-ui-spinner-size-sm, calc(var(--vfjs-size-unit) * 16)); }
  .vfjs-ui-spinner--lg { --vfjs-ui-spinner-size: var(--vfjs-ui-spinner-size-lg, calc(var(--vfjs-size-unit) * 36)); }
  .vfjs-ui-spinner--xl { --vfjs-ui-spinner-size: var(--vfjs-ui-spinner-size-xl, calc(var(--vfjs-size-unit) * 52)); }
  .vfjs-ui-spinner__anim { display: inline-flex; align-items: center; justify-content: center; gap: calc(var(--vfjs-ui-spinner-size) * 0.12); height: var(--vfjs-ui-spinner-size); }
  .vfjs-ui-spinner__ring { box-sizing: border-box; width: var(--vfjs-ui-spinner-size); height: var(--vfjs-ui-spinner-size); border-radius: 50%;
    border: calc(var(--vfjs-ui-spinner-size) * 0.12) solid var(--_vfjs-ui-spinner-track); border-top-color: var(--_vfjs-ui-spinner-color);
    animation: vfjs-ui-spin var(--_vfjs-ui-spinner-duration) linear infinite; }
  .vfjs-ui-spinner__dot { width: calc(var(--vfjs-ui-spinner-size) * 0.24); height: calc(var(--vfjs-ui-spinner-size) * 0.24); border-radius: 50%; background: var(--_vfjs-ui-spinner-color);
    animation: vfjs-ui-dots calc(var(--_vfjs-ui-spinner-duration) * 1.6) ease-in-out infinite;
    &:nth-child(2) { animation-delay: calc(var(--_vfjs-ui-spinner-duration) * 0.25); }
    &:nth-child(3) { animation-delay: calc(var(--_vfjs-ui-spinner-duration) * 0.5); }
  }
  .vfjs-ui-spinner__label { color: var(--vfjs-fg); font-size: var(--vfjs-ui-font-size-sm); }
  .vfjs-ui-spinner--overlay { position: absolute; inset: 0; z-index: calc(var(--vfjs-z-base) + 2); justify-content: center; flex-direction: column; background: var(--vfjs-ui-spinner-overlay-bg, color-mix(in srgb, var(--vfjs-bg) 70%, transparent)); }
  @keyframes vfjs-ui-dots { 0%, 80%, 100% { transform: scale(0.5); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }
  @keyframes vfjs-ui-fadepulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
  /* reduced motion: core stops looping animations; a loading indicator keeps a slow, calm motion */
  @media (prefers-reduced-motion: reduce) {
    .vfjs {
      &.vfjs {
        &.vfjs {
          .vfjs-ui-spinner__ring.vfjs-ui-spinner__ring { animation-duration: var(--vfjs-ui-spinner-reduced-duration, calc(var(--vfjs-motion-reduced-duration) * 300000)); animation-iteration-count: infinite; }
          .vfjs-ui-spinner__dot.vfjs-ui-spinner__dot { animation-name: vfjs-ui-fadepulse; animation-duration: var(--vfjs-ui-spinner-reduced-duration, calc(var(--vfjs-motion-reduced-duration) * 300000)); animation-iteration-count: infinite; }
        }
      }
    }
  }

  /* ---------- stepper / wizard ---------- */
  :where(.vfjs-ui-stepper):not(.vfjs) { display: flex; flex-direction: column; gap: calc(var(--vfjs-space-4) * var(--vfjs-ui-scale)); font-size: var(--vfjs-ui-font-size); }
  .vfjs-ui-stepper--vertical { flex-direction: row; flex-wrap: wrap; align-items: flex-start;
    > .vfjs-ui-stepper__panels { flex: 1; min-width: 0; }
    > .vfjs-ui-stepper__nav { flex-basis: 100%; }
    .vfjs-ui-stepper__list { flex-direction: column; align-items: stretch; flex: none; }
  }
  .vfjs-ui-stepper [hidden] { display: none; }
  .vfjs-ui-stepper__list { display: flex; align-items: center; gap: var(--vfjs-space-2); }
  .vfjs-ui-step { all: unset; display: flex; align-items: center; gap: var(--vfjs-space-2); cursor: pointer; border-radius: var(--vfjs-radius-md); padding: var(--vfjs-space-1); min-width: 0;
    &[aria-selected="true"] .vfjs-ui-step__title { font-weight: var(--vfjs-font-weight-semibold); }
  }
  .vfjs-ui-step--locked { cursor: not-allowed; opacity: var(--_vfjs-ui-disabled-opacity); }
  .vfjs-ui-step__marker { flex: none; display: inline-flex; align-items: center; justify-content: center; width: var(--vfjs-ui-step-marker-size); height: var(--vfjs-ui-step-marker-size);
    border-radius: 50%; background: var(--vfjs-ui-step-todo-bg, var(--vfjs-surface)); color: var(--vfjs-ui-step-todo-fg, var(--vfjs-muted)); border: var(--vfjs-border-width) solid var(--vfjs-ui-step-todo-border, var(--vfjs-border));
    font-size: var(--vfjs-ui-font-size-sm); font-weight: var(--vfjs-font-weight-semibold); transition: background var(--vfjs-motion-duration), color var(--vfjs-motion-duration); }
  .vfjs-ui-step--active .vfjs-ui-step__marker { background: var(--vfjs-ui-step-active-bg, var(--vfjs-accent)); color: var(--vfjs-ui-step-active-fg, var(--vfjs-accent-fg)); border-color: var(--vfjs-ui-step-active-border, transparent); }
  .vfjs-ui-step--done .vfjs-ui-step__marker { background: var(--vfjs-ui-step-done-bg, color-mix(in srgb, var(--vfjs-accent) 16%, var(--vfjs-bg))); color: var(--vfjs-ui-step-done-fg, var(--vfjs-accent)); border-color: var(--vfjs-ui-step-done-border, var(--vfjs-ui-step-done-fg, var(--vfjs-accent))); }
  .vfjs-ui-step--error {
    .vfjs-ui-step__marker { background: transparent; color: var(--_vfjs-ui-step-error); border-color: var(--_vfjs-ui-step-error); }
    &[aria-selected="true"] .vfjs-ui-step__marker { background: var(--_vfjs-ui-step-error); color: var(--vfjs-danger-fg); }
    .vfjs-ui-step__desc { color: var(--_vfjs-ui-step-error); }
  }
  .vfjs-ui-step__text { display: flex; flex-direction: column; min-width: 0; }
  .vfjs-ui-step__title { font-weight: var(--vfjs-font-weight-medium); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .vfjs-ui-step__desc { font-size: var(--vfjs-font-size-xs); color: var(--vfjs-muted); }
  .vfjs-ui-step__line { flex: 1; min-width: var(--vfjs-space-4); height: var(--vfjs-border-width-thick); background: var(--vfjs-ui-step-line, var(--vfjs-border)); border-radius: var(--vfjs-radius-xs); }
  .vfjs-ui-step__line--done { background: var(--vfjs-ui-step-line-done, var(--vfjs-accent)); }
  .vfjs-ui-stepper--vertical .vfjs-ui-step__line { flex: none; width: var(--vfjs-border-width-thick); height: var(--vfjs-space-4); min-width: 0;
    margin-inline-start: calc(var(--vfjs-space-1) + var(--vfjs-ui-step-marker-size) / 2 - var(--vfjs-border-width-thick) / 2); }
  .vfjs-ui-stepper__panel { outline: 0; }
  .vfjs-ui-stepper__nav { display: flex; align-items: center; gap: var(--vfjs-space-2); }
  .vfjs-ui-stepper__count { flex: 1; text-align: center; font-size: var(--vfjs-font-size-sm); color: var(--vfjs-muted); }
  .vfjs-ui-stepper--disabled { opacity: var(--_vfjs-ui-disabled-opacity); pointer-events: none; }

  /* ---------- carousel ---------- */
  :where(.vfjs-ui-carousel):not(.vfjs) { position: relative; display: flex; flex-direction: column; gap: var(--vfjs-space-2); }
  .vfjs-ui-carousel__viewport { position: relative; overflow: hidden; border-radius: var(--vfjs-ui-carousel-radius, var(--vfjs-radius)); touch-action: pan-y; }
  .vfjs-ui-carousel__track { display: flex; transition: transform var(--vfjs-ui-carousel-duration, var(--vfjs-motion-duration-slow)) var(--vfjs-motion-easing); }
  .vfjs-ui-carousel--dragging {
    .vfjs-ui-carousel__track { transition: none; cursor: grabbing; }
    .vfjs-ui-carousel__slide { user-select: none; }
  }
  .vfjs-ui-carousel__slide { flex: 0 0 100%; min-width: 0;
    img { display: block; width: 100%; }
  }
  /* U16: perView > 1 — the JS sets --vfjs-ui-carousel-per-view on the carousel and moves the track by (100% + gap) / perView */
  .vfjs-ui-carousel--multi {
    .vfjs-ui-carousel__track { gap: var(--_vfjs-ui-carousel-gap); }
    .vfjs-ui-carousel__slide { flex-basis: calc((100% - (var(--vfjs-ui-carousel-per-view, 1) - 1) * var(--_vfjs-ui-carousel-gap)) / var(--vfjs-ui-carousel-per-view, 1)); }
  }
  .vfjs-ui-carousel--fade {
    .vfjs-ui-carousel__track { display: grid; }
    .vfjs-ui-carousel__slide { grid-area: 1 / 1; opacity: 0; transition: opacity var(--vfjs-ui-carousel-duration, var(--vfjs-motion-duration-slow)) var(--vfjs-motion-easing); }
    .vfjs-ui-carousel__slide--active { opacity: 1; }
  }
  .vfjs-ui-carousel__controls { position: absolute; inset: 0; z-index: calc(var(--vfjs-z-base) + 1); pointer-events: none; }
  .vfjs-ui-carousel__btn { all: unset; pointer-events: auto; position: absolute; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
    width: var(--vfjs-ui-carousel-btn-size); height: var(--vfjs-ui-carousel-btn-size); border-radius: 50%; cursor: pointer;
    background: var(--vfjs-ui-carousel-btn-bg, color-mix(in srgb, var(--vfjs-bg) 85%, transparent)); color: var(--vfjs-ui-carousel-btn-fg, var(--vfjs-fg)); box-shadow: var(--vfjs-ui-carousel-btn-shadow, var(--vfjs-shadow-sm));
    &[hidden] { display: none; }
    &:disabled { opacity: var(--_vfjs-ui-disabled-opacity); cursor: default; }
    &:hover:not(:disabled) { filter: brightness(var(--vfjs-hover-brightness)); }
  }
  .vfjs-ui-carousel__rotate { top: var(--vfjs-space-2); inset-inline-end: var(--vfjs-space-2); width: calc(var(--vfjs-ui-carousel-btn-size) * 0.8); height: calc(var(--vfjs-ui-carousel-btn-size) * 0.8); }
  .vfjs-ui-carousel__arrow { top: 50%; transform: translateY(-50%); }
  .vfjs-ui-carousel__arrow--prev { inset-inline-start: var(--vfjs-space-2); }
  .vfjs-ui-carousel__arrow--next { inset-inline-end: var(--vfjs-space-2); }
  .vfjs-ui-carousel__dots { display: flex; justify-content: center; gap: 0;
    &[hidden] { display: none; }
  }
  .vfjs-ui-carousel__dot { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
    min-inline-size: var(--_vfjs-ui-target-min); block-size: var(--_vfjs-ui-target-min); border-radius: var(--vfjs-radius-pill);
    &::before { content: ''; flex: none; width: var(--vfjs-ui-carousel-dot-size); height: var(--vfjs-ui-carousel-dot-size); border-radius: var(--vfjs-radius-pill);
      background: var(--vfjs-ui-carousel-dot, var(--_vfjs-ui-control-border)); transition: width var(--vfjs-motion-duration), background var(--vfjs-motion-duration); }
    &[aria-selected="true"]::before, &[aria-current="true"]::before { background: var(--vfjs-ui-carousel-dot-active, var(--vfjs-accent)); width: calc(var(--vfjs-ui-carousel-dot-size) * 2.4); }
  }

  /* ---------- U14 sizes: weights (inherited; m by default) ---------- */
  :root { --vfjs-ui-is-s: 0; --vfjs-ui-is-m: 1; --vfjs-ui-is-l: 0; }
  .vfjs-ui-size-s { --vfjs-ui-is-s: 1; --vfjs-ui-is-m: 0; --vfjs-ui-is-l: 0; }
  .vfjs-ui-size-m { --vfjs-ui-is-s: 0; --vfjs-ui-is-m: 1; --vfjs-ui-is-l: 0; }
  .vfjs-ui-size-l { --vfjs-ui-is-s: 0; --vfjs-ui-is-m: 0; --vfjs-ui-is-l: 1; }
  [data-vfjs-ui-size="s"] { --vfjs-ui-is-s: 1; --vfjs-ui-is-m: 0; --vfjs-ui-is-l: 0; }
  [data-vfjs-ui-size="m"] { --vfjs-ui-is-s: 0; --vfjs-ui-is-m: 1; --vfjs-ui-is-l: 0; }
  [data-vfjs-ui-size="l"] { --vfjs-ui-is-s: 0; --vfjs-ui-is-m: 0; --vfjs-ui-is-l: 1; }

  /* ---------- U14 variables (defaults = core tokens = the look without a variant) ---------- */
  .vfjs {
    /* size scales: lengths x scale, main text size; set them globally or on one component root */
    /* what a variant means (shared by all components) */
    --_vfjs-ui-filled-bg: var(--vfjs-ui-filled-bg, var(--vfjs-surface));
    --_vfjs-ui-filled-accent-bg: var(--vfjs-ui-filled-accent-bg, var(--vfjs-accent));
    --_vfjs-ui-filled-accent-fg: var(--vfjs-ui-filled-accent-fg, var(--vfjs-accent-fg));
    --_vfjs-ui-outline-bg: var(--vfjs-ui-outline-bg, transparent);
    --_vfjs-ui-outline-border: var(--vfjs-ui-outline-border, var(--vfjs-border));
    --_vfjs-ui-outline-accent: var(--vfjs-ui-outline-accent, var(--vfjs-accent));
    --_vfjs-ui-ghost-bg: var(--vfjs-ui-ghost-bg, transparent);
    --_vfjs-ui-ghost-accent: var(--vfjs-ui-ghost-accent, var(--_vfjs-ui-accent-text));
    --_vfjs-ui-ghost-accent-bg: var(--vfjs-ui-ghost-accent-bg, var(--vfjs-accent-soft));
    /* button */
    --_vfjs-ui-btn-bg: var(--vfjs-ui-btn-primary-bg, var(--vfjs-accent));
    --_vfjs-ui-btn-hover-bg: var(--vfjs-ui-btn-bg, var(--_vfjs-ui-btn-bg));
    --_vfjs-ui-btn-hover-border-color: var(--vfjs-ui-btn-border-color, transparent);
    --_vfjs-ui-btn-outline-border: var(--vfjs-ui-btn-outline-border, var(--_vfjs-ui-outline-accent));
    /* field (input, number, select, pickers) */
    /* option (select / time list / list view rows) */
    /* checkbox / radio / switch */
    --_vfjs-ui-switch-height: var(--vfjs-ui-switch-height, calc(var(--vfjs-size-unit) * 19));
    --_vfjs-ui-switch-thumb-size: var(--vfjs-ui-switch-thumb-size, calc(var(--vfjs-size-unit) * 15));
    /* slider */
    /* calendar (date picker, date-time picker) */
    /* tabs */
    /* accordion */
    /* menu */
    /* toolbar */
    /* tree */
    --_vfjs-ui-tree-selected-fg: var(--vfjs-ui-tree-selected-fg, var(--vfjs-ui-item-selected-fg, var(--_vfjs-ui-accent-text)));
    /* splitter */
    /* breadcrumb */
    /* dialog window */
    /* drawer */
    /* toast (the accent of a toast = its type color) */
    --_vfjs-ui-toast-border-color: var(--vfjs-ui-toast-border-color, var(--vfjs-border));
    --_vfjs-ui-toast-border-tint: var(--vfjs-ui-toast-border-tint, 0%);
    /* tooltip */
    /* progress / badge / skeleton / pagination */
    --_vfjs-ui-skeleton-shine: var(--vfjs-ui-skeleton-shine, var(--vfjs-border));
    /* dock layout */
    /* S29: height of a dock layout whose container has no height of its own (class vfjs-auto-height) */
    /* S30: width / height when that default is 0 (class vfjs-content-height: the panels scroll, no content height) */
    /* command palette / tour */
    --_vfjs-ui-palette-active-ring: var(--vfjs-ui-palette-active-ring, var(--vfjs-ui-active-bar, inset calc(var(--vfjs-border-width-thick) * 1.5) 0 0 var(--_vfjs-ui-accent-text)));
    /* form */
    /* U1 / U2 parts */
    --_vfjs-ui-carousel-gap: var(--vfjs-ui-carousel-gap, var(--vfjs-space-3));
    --_vfjs-ui-carousel-slide-width: calc(var(--vfjs-size-unit) * 240);

    /* ---------- U14 variants: on the component root (look.js writes the variant of the closest container there);
       only what differs from the defaults above ---------- */
    &[data-vfjs-ui-variant="filled"], &.vfjs-ui-variant-filled {
      --vfjs-ui-btn-hover-bg: var(--vfjs-ui-btn-primary-bg, var(--vfjs-accent)); --vfjs-ui-btn-hover-border-color: transparent;
      --vfjs-ui-field-bg: var(--_vfjs-ui-filled-bg); --vfjs-ui-field-border: var(--vfjs-border-width) solid transparent;
      --vfjs-ui-popup-bg: var(--_vfjs-ui-filled-bg); --vfjs-ui-popup-border: var(--vfjs-border-width) solid transparent;
      --vfjs-ui-option-selected-bg: var(--_vfjs-ui-filled-accent-bg); --vfjs-ui-option-selected-fg: var(--_vfjs-ui-filled-accent-fg);
      --vfjs-ui-check-bg: color-mix(in srgb, var(--vfjs-fg) 10%, var(--vfjs-bg)); --vfjs-ui-check-border-color: var(--_vfjs-ui-control-border);
      --vfjs-ui-slider-thumb-bg: var(--vfjs-accent);
      --vfjs-ui-cal-selected-bg: var(--_vfjs-ui-filled-accent-bg); --vfjs-ui-cal-selected-fg: var(--_vfjs-ui-filled-accent-fg);
      --vfjs-ui-tabs-bar-bg: var(--_vfjs-ui-filled-bg); --vfjs-ui-tabs-bar-border: transparent; --vfjs-ui-tabs-bar-padding: var(--vfjs-space-1); --vfjs-ui-tabs-bar-radius: var(--vfjs-radius);
      --vfjs-ui-tab-radius: var(--vfjs-radius-md); --vfjs-ui-tab-active-bg: var(--_vfjs-ui-filled-accent-bg); --vfjs-ui-tab-active-fg: var(--_vfjs-ui-filled-accent-fg); --vfjs-ui-tab-indicator: transparent;
      --vfjs-ui-acc-border-color: transparent; --vfjs-ui-acc-head-bg: var(--_vfjs-ui-filled-bg); --vfjs-ui-acc-body-bg: var(--_vfjs-ui-filled-bg);
      --vfjs-ui-menu-hover-bg: var(--_vfjs-ui-filled-accent-bg); --vfjs-ui-menu-hover-fg: var(--_vfjs-ui-filled-accent-fg);
      --vfjs-ui-toolbar-bg: var(--_vfjs-ui-filled-bg); --vfjs-ui-toolbar-border-color: transparent;
      --vfjs-ui-tree-selected-bg: var(--_vfjs-ui-filled-accent-bg); --vfjs-ui-tree-selected-fg: var(--_vfjs-ui-filled-accent-fg);
      --vfjs-ui-crumb-bg: var(--_vfjs-ui-filled-bg);
      --vfjs-ui-window-bg: var(--_vfjs-ui-filled-bg); --vfjs-ui-window-head-bg: var(--_vfjs-ui-filled-bg); --vfjs-ui-window-border: var(--vfjs-border-width) solid transparent; --vfjs-ui-window-divider: transparent;
      --vfjs-ui-drawer-bg: var(--_vfjs-ui-filled-bg); --vfjs-ui-drawer-divider: transparent;
      --vfjs-ui-toast-tint: 12%; --vfjs-ui-toast-border-color: transparent;
      --vfjs-ui-progress-track-bg: color-mix(in srgb, var(--vfjs-accent) 15%, transparent); --vfjs-ui-progress-track-border: transparent;
      --vfjs-ui-page-bg: var(--_vfjs-ui-filled-bg); --vfjs-ui-page-on-bg: var(--_vfjs-ui-filled-accent-bg); --vfjs-ui-page-on-fg: var(--_vfjs-ui-filled-accent-fg);
      --vfjs-ui-dock-zone-bg: var(--_vfjs-ui-filled-bg); --vfjs-ui-dock-zone-border: transparent; --vfjs-ui-dock-tabs-bg: transparent;
      --vfjs-ui-palette-bg: var(--_vfjs-ui-filled-bg); --vfjs-ui-palette-border: transparent; --vfjs-ui-palette-active-bg: var(--_vfjs-ui-filled-accent-bg); --vfjs-ui-palette-active-fg: var(--_vfjs-ui-filled-accent-fg);
      --vfjs-ui-card-bg: var(--vfjs-ui-card-filled-bg, var(--vfjs-surface)); --vfjs-ui-card-border: var(--vfjs-border-width) solid transparent;
      --vfjs-ui-spinner-track: color-mix(in srgb, var(--_vfjs-ui-spinner-color) 18%, transparent);
      --vfjs-ui-step-todo-border: transparent; --vfjs-ui-step-done-border: transparent;
      --vfjs-ui-upload-drop-bg: var(--_vfjs-ui-filled-bg); --vfjs-ui-upload-drop-border: var(--vfjs-border-width-thick) solid transparent; --vfjs-ui-upload-item-bg: var(--_vfjs-ui-filled-bg); --vfjs-ui-upload-item-border: transparent;
      --vfjs-ui-list-selected-bg: var(--_vfjs-ui-filled-accent-bg); --vfjs-ui-list-selected-fg: var(--_vfjs-ui-filled-accent-fg);
    }
    &[data-vfjs-ui-variant="outline"], &.vfjs-ui-variant-outline {
      --vfjs-ui-btn-bg: var(--vfjs-ui-btn-outline-bg, var(--_vfjs-ui-outline-bg)); --vfjs-ui-btn-fg: var(--vfjs-ui-btn-outline-fg, var(--_vfjs-ui-outline-accent)); --vfjs-ui-btn-border-color: var(--_vfjs-ui-btn-outline-border); --vfjs-ui-btn-hover-bg: var(--vfjs-ui-btn-outline-hover-bg, color-mix(in srgb, var(--_vfjs-ui-outline-accent) 12%, transparent)); --vfjs-ui-btn-hover-border-color: var(--_vfjs-ui-btn-outline-border); --vfjs-ui-btn-hover-filter: none;
      --vfjs-ui-field-bg: var(--_vfjs-ui-outline-bg); --vfjs-ui-field-border: var(--vfjs-border-width) solid var(--_vfjs-ui-control-border);
      --vfjs-ui-popup-border: var(--vfjs-border-width) solid var(--_vfjs-ui-outline-border); --vfjs-ui-popup-shadow: none;
      --vfjs-ui-option-selected-fg: var(--_vfjs-ui-outline-accent); --vfjs-ui-option-selected-ring: inset 0 0 0 var(--vfjs-border-width) var(--_vfjs-ui-outline-accent);
      --vfjs-ui-check-bg: var(--_vfjs-ui-outline-bg); --vfjs-ui-check-border-color: var(--_vfjs-ui-control-border); --vfjs-ui-check-on-bg: transparent; --vfjs-ui-check-on-border-color: var(--_vfjs-ui-outline-accent); --vfjs-ui-check-on-fg: var(--_vfjs-ui-outline-accent); --vfjs-ui-check-dot: var(--_vfjs-ui-outline-accent);
      --vfjs-ui-switch-track: transparent; --vfjs-ui-switch-on-track: transparent; --vfjs-ui-switch-ring: var(--_vfjs-ui-control-border); --vfjs-ui-switch-on-ring: var(--_vfjs-ui-outline-accent); --vfjs-ui-switch-thumb: var(--_vfjs-ui-control-border); --vfjs-ui-switch-on-thumb: var(--_vfjs-ui-outline-accent);
      --vfjs-ui-slider-rail: var(--_vfjs-ui-outline-border); --vfjs-ui-slider-thumb-border: var(--_vfjs-ui-outline-accent);
      --vfjs-ui-cal-selected-bg: transparent; --vfjs-ui-cal-selected-fg: var(--_vfjs-ui-outline-accent); --vfjs-ui-cal-selected-ring: inset 0 0 0 var(--vfjs-border-width-thick) var(--_vfjs-ui-outline-accent);
      --vfjs-ui-tabs-bar-border: transparent;
      --vfjs-ui-tab-radius: var(--vfjs-radius-md); --vfjs-ui-tab-ring: inset 0 0 0 var(--vfjs-border-width) var(--_vfjs-ui-outline-border); --vfjs-ui-tab-active-fg: var(--_vfjs-ui-outline-accent); --vfjs-ui-tab-active-ring: inset 0 0 0 var(--vfjs-border-width) var(--_vfjs-ui-outline-accent); --vfjs-ui-tab-indicator: transparent;
      --vfjs-ui-acc-border-color: var(--_vfjs-ui-outline-border); --vfjs-ui-acc-head-bg: var(--_vfjs-ui-outline-bg);
      --vfjs-ui-menu-hover-bg: var(--_vfjs-ui-ghost-accent-bg); --vfjs-ui-menu-hover-fg: var(--_vfjs-ui-accent-text);
      --vfjs-ui-toolbar-bg: var(--_vfjs-ui-outline-bg); --vfjs-ui-toolbar-border-color: var(--_vfjs-ui-outline-border);
      --vfjs-ui-tree-selected-bg: transparent; --vfjs-ui-tree-selected-fg: var(--_vfjs-ui-outline-accent); --vfjs-ui-tree-selected-ring: inset 0 0 0 var(--vfjs-border-width) var(--_vfjs-ui-outline-accent);
      --vfjs-ui-splitter-bg: transparent; --vfjs-ui-splitter-ring: inset 0 0 0 var(--vfjs-border-width) var(--_vfjs-ui-outline-border);
      --vfjs-ui-crumb-ring: inset 0 0 0 var(--vfjs-border-width) var(--_vfjs-ui-outline-border);
      --vfjs-ui-window-head-bg: var(--_vfjs-ui-outline-bg); --vfjs-ui-window-border: var(--vfjs-border-width) solid var(--_vfjs-ui-outline-border); --vfjs-ui-window-divider: var(--_vfjs-ui-outline-border); --vfjs-ui-window-shadow: none;
      --vfjs-ui-drawer-shadow: 0 0 0 var(--vfjs-border-width) var(--_vfjs-ui-outline-border); --vfjs-ui-drawer-divider: var(--_vfjs-ui-outline-border);
      --vfjs-ui-toast-border-tint: 100%; --vfjs-ui-toast-border-color: var(--_vfjs-ui-outline-border); --vfjs-ui-toast-shadow: none;
      --vfjs-ui-tooltip-bg: var(--vfjs-bg); --vfjs-ui-tooltip-fg: var(--vfjs-fg); --vfjs-ui-tooltip-ring: inset 0 0 0 var(--vfjs-border-width) var(--_vfjs-ui-outline-border);
      --vfjs-ui-progress-track-bg: transparent; --vfjs-ui-progress-track-border: var(--_vfjs-ui-outline-border);
      --vfjs-ui-badge-tint: 0%; --vfjs-ui-badge-text-tint: 100%; --vfjs-ui-badge-ring: 1;
      --vfjs-ui-skeleton-bg: transparent; --vfjs-ui-skeleton-ring: inset 0 0 0 var(--vfjs-border-width) var(--_vfjs-ui-outline-border);
      --vfjs-ui-page-border: var(--_vfjs-ui-outline-border); --vfjs-ui-page-on-bg: transparent; --vfjs-ui-page-on-fg: var(--_vfjs-ui-outline-accent); --vfjs-ui-page-on-border: var(--_vfjs-ui-outline-accent);
      --vfjs-ui-dock-zone-border: var(--_vfjs-ui-outline-border); --vfjs-ui-dock-tabs-bg: transparent; --vfjs-ui-dock-tab-active-bg: transparent;
      --vfjs-ui-palette-border: var(--_vfjs-ui-outline-border); --vfjs-ui-palette-shadow: none; --vfjs-ui-palette-active-bg: transparent; --vfjs-ui-palette-active-fg: var(--_vfjs-ui-outline-accent); --vfjs-ui-palette-active-ring: inset 0 0 0 var(--vfjs-border-width) var(--_vfjs-ui-outline-accent);
      --vfjs-ui-card-bg: var(--_vfjs-ui-outline-bg); --vfjs-ui-card-border: var(--vfjs-border-width) solid var(--_vfjs-ui-outline-border);
      --vfjs-ui-avatar-tint: 0%; --vfjs-ui-avatar-outline: 1;
      --vfjs-ui-chip-bg: transparent; --vfjs-ui-chip-border-color: var(--vfjs-ui-chip-border, var(--vfjs-border)); --vfjs-ui-chip-tint: 0%; --vfjs-ui-chip-tint-base: transparent; --vfjs-ui-chip-ring: 100%;
      --vfjs-ui-spinner-track: var(--_vfjs-ui-outline-border);
      --vfjs-ui-step-todo-bg: transparent; --vfjs-ui-step-todo-border: var(--_vfjs-ui-outline-border); --vfjs-ui-step-active-bg: transparent; --vfjs-ui-step-active-fg: var(--_vfjs-ui-outline-accent); --vfjs-ui-step-active-border: var(--_vfjs-ui-outline-accent); --vfjs-ui-step-done-bg: transparent;
      --vfjs-ui-carousel-btn-bg: color-mix(in srgb, var(--vfjs-bg) 60%, transparent); --vfjs-ui-carousel-btn-shadow: inset 0 0 0 var(--vfjs-border-width) var(--_vfjs-ui-outline-border);
      --vfjs-ui-rating-empty-fill: none; --vfjs-ui-rating-empty: var(--vfjs-muted);
      --vfjs-ui-upload-drop-bg: var(--_vfjs-ui-outline-bg); --vfjs-ui-upload-drop-border: var(--vfjs-border-width-thick) dashed var(--_vfjs-ui-outline-border); --vfjs-ui-upload-item-bg: transparent; --vfjs-ui-upload-item-border: var(--_vfjs-ui-outline-border);
      --vfjs-ui-list-selected-bg: transparent; --vfjs-ui-list-selected-fg: var(--_vfjs-ui-outline-accent); --vfjs-ui-list-selected-ring: inset 0 0 0 var(--vfjs-border-width) var(--_vfjs-ui-outline-accent);
    }
    &[data-vfjs-ui-variant="ghost"], &.vfjs-ui-variant-ghost {
      --vfjs-ui-btn-bg: var(--vfjs-ui-btn-ghost-bg, var(--_vfjs-ui-ghost-bg)); --vfjs-ui-btn-fg: var(--vfjs-ui-btn-ghost-fg, var(--vfjs-fg)); --vfjs-ui-btn-hover-bg: var(--vfjs-ui-btn-ghost-hover-bg, var(--vfjs-surface)); --vfjs-ui-btn-hover-border-color: transparent; --vfjs-ui-btn-hover-filter: none;
      --vfjs-ui-field-bg: var(--_vfjs-ui-ghost-bg); --vfjs-ui-field-border: var(--vfjs-border-width) solid transparent;
      --vfjs-ui-popup-border: var(--vfjs-border-width) solid transparent; --vfjs-ui-popup-shadow: var(--vfjs-shadow-lg);
      --vfjs-ui-option-selected-bg: var(--_vfjs-ui-ghost-accent-bg); --vfjs-ui-option-selected-fg: var(--_vfjs-ui-ghost-accent);
      --vfjs-ui-check-bg: var(--_vfjs-ui-ghost-bg); --vfjs-ui-check-border-color: var(--_vfjs-ui-control-border); --vfjs-ui-check-on-bg: var(--_vfjs-ui-ghost-accent-bg); --vfjs-ui-check-on-border-color: var(--_vfjs-ui-ghost-accent); --vfjs-ui-check-on-fg: var(--_vfjs-ui-ghost-accent); --vfjs-ui-check-dot: var(--_vfjs-ui-ghost-accent);
      --vfjs-ui-switch-track: transparent; --vfjs-ui-switch-ring: var(--vfjs-muted); --vfjs-ui-switch-thumb: var(--vfjs-muted); --vfjs-ui-switch-on-track: var(--_vfjs-ui-ghost-accent-bg); --vfjs-ui-switch-on-ring: var(--_vfjs-ui-ghost-accent); --vfjs-ui-switch-on-thumb: var(--_vfjs-ui-ghost-accent);
      --vfjs-ui-slider-rail: color-mix(in srgb, var(--vfjs-border) 50%, transparent); --vfjs-ui-slider-thumb-bg: var(--_vfjs-ui-ghost-accent); --vfjs-ui-slider-thumb-border: transparent;
      --vfjs-ui-cal-selected-bg: var(--_vfjs-ui-ghost-accent-bg); --vfjs-ui-cal-selected-fg: var(--_vfjs-ui-ghost-accent);
      --vfjs-ui-tabs-bar-border: transparent;
      --vfjs-ui-tab-radius: var(--vfjs-radius-md); --vfjs-ui-tab-active-bg: var(--_vfjs-ui-ghost-accent-bg); --vfjs-ui-tab-active-fg: var(--_vfjs-ui-ghost-accent); --vfjs-ui-tab-indicator: var(--_vfjs-ui-ghost-accent);
      --vfjs-ui-acc-border-color: transparent; --vfjs-ui-acc-head-bg: var(--_vfjs-ui-ghost-bg);
      --vfjs-ui-menu-hover-bg: var(--vfjs-ui-ghost-hover-bg, var(--vfjs-hover-bg));
      --vfjs-ui-toolbar-bg: var(--_vfjs-ui-ghost-bg); --vfjs-ui-toolbar-border-color: transparent;
      --vfjs-ui-tree-selected-bg: transparent; --vfjs-ui-tree-selected-fg: var(--_vfjs-ui-ghost-accent);
      --vfjs-ui-splitter-bg: transparent;
      --vfjs-ui-window-head-bg: var(--_vfjs-ui-ghost-bg); --vfjs-ui-window-border: var(--vfjs-border-width) solid transparent; --vfjs-ui-window-divider: transparent; --vfjs-ui-window-shadow: var(--vfjs-shadow-lg);
      --vfjs-ui-drawer-shadow: none; --vfjs-ui-drawer-divider: transparent;
      --vfjs-ui-toast-border-color: transparent; --vfjs-ui-toast-shadow: var(--vfjs-shadow-sm);
      --vfjs-ui-tooltip-bg: var(--vfjs-surface); --vfjs-ui-tooltip-fg: var(--vfjs-fg);
      --vfjs-ui-progress-track-bg: color-mix(in srgb, var(--vfjs-fg) 6%, transparent); --vfjs-ui-progress-track-border: transparent;
      --vfjs-ui-badge-tint: 14%; --vfjs-ui-badge-text-tint: 70%; --vfjs-ui-badge-fg: var(--vfjs-fg);
      --vfjs-ui-skeleton-bg: color-mix(in srgb, var(--vfjs-surface) 50%, transparent);
      --vfjs-ui-page-on-bg: var(--_vfjs-ui-ghost-accent-bg); --vfjs-ui-page-on-fg: var(--_vfjs-ui-ghost-accent); --vfjs-ui-page-on-border: var(--_vfjs-ui-ghost-accent);
      --vfjs-ui-dock-zone-bg: transparent; --vfjs-ui-dock-zone-border: transparent; --vfjs-ui-dock-tabs-bg: transparent; --vfjs-ui-dock-tab-active-bg: transparent;
      --vfjs-ui-palette-border: transparent; --vfjs-ui-palette-shadow: var(--vfjs-shadow-lg); --vfjs-ui-palette-active-bg: var(--_vfjs-ui-ghost-accent-bg); --vfjs-ui-palette-active-fg: var(--_vfjs-ui-ghost-accent);
      --vfjs-ui-card-bg: var(--_vfjs-ui-ghost-bg); --vfjs-ui-card-border: var(--vfjs-border-width) solid transparent;
      --vfjs-ui-avatar-tint: 0%;
      --vfjs-ui-chip-bg: transparent; --vfjs-ui-chip-tint: 0%; --vfjs-ui-chip-tint-base: transparent;
      --vfjs-ui-spinner-track: transparent;
      --vfjs-ui-step-todo-bg: transparent; --vfjs-ui-step-todo-border: transparent; --vfjs-ui-step-active-bg: var(--_vfjs-ui-ghost-accent-bg); --vfjs-ui-step-active-fg: var(--_vfjs-ui-ghost-accent); --vfjs-ui-step-active-border: var(--_vfjs-ui-ghost-accent); --vfjs-ui-step-done-bg: transparent; --vfjs-ui-step-done-border: transparent;
      --vfjs-ui-carousel-btn-bg: transparent; --vfjs-ui-carousel-btn-shadow: none;
      --vfjs-ui-rating-empty: var(--_vfjs-ui-subtle-fg); --vfjs-ui-rating-empty-fill: none;
      --vfjs-ui-upload-drop-bg: var(--_vfjs-ui-ghost-bg); --vfjs-ui-upload-drop-border: var(--vfjs-border-width-thick) dashed transparent; --vfjs-ui-upload-item-bg: transparent; --vfjs-ui-upload-item-border: transparent;
      --vfjs-ui-list-selected-bg: transparent; --vfjs-ui-list-selected-fg: var(--_vfjs-ui-ghost-accent);
    }
  }

  /* ---------- U14 current size values (from the weights; recomputed where a size is set) ---------- */
  .vfjs, [data-vfjs-ui-size], .vfjs-ui-size-s, .vfjs-ui-size-m, .vfjs-ui-size-l {
    --vfjs-ui-scale: calc(var(--vfjs-ui-scale-s, .8125) * var(--vfjs-ui-is-s) + var(--vfjs-ui-scale-m, 1) * var(--vfjs-ui-is-m) + var(--vfjs-ui-scale-l, 1.25) * var(--vfjs-ui-is-l));
    --vfjs-ui-font-size: calc(var(--vfjs-ui-font-size-s, var(--vfjs-font-size-sm)) * var(--vfjs-ui-is-s) + var(--vfjs-ui-font-size-m, var(--vfjs-font-size)) * var(--vfjs-ui-is-m) + var(--vfjs-ui-font-size-l, var(--vfjs-font-size-lg)) * var(--vfjs-ui-is-l));
    --vfjs-ui-font-size-xs: calc(var(--vfjs-font-size-2xs) * var(--vfjs-ui-is-s) + var(--vfjs-font-size-xs) * var(--vfjs-ui-is-m) + var(--vfjs-font-size-sm) * var(--vfjs-ui-is-l));
    --vfjs-ui-font-size-sm: calc(var(--vfjs-font-size-xs) * var(--vfjs-ui-is-s) + var(--vfjs-font-size-sm) * var(--vfjs-ui-is-m) + var(--vfjs-font-size) * var(--vfjs-ui-is-l));
    --vfjs-ui-font-size-lg: calc(var(--vfjs-font-size) * var(--vfjs-ui-is-s) + var(--vfjs-font-size-lg) * var(--vfjs-ui-is-m) + var(--vfjs-font-size-xl) * var(--vfjs-ui-is-l));
    --vfjs-ui-avatar-size: calc(var(--_vfjs-ui-avatar-size-sm) * var(--vfjs-ui-is-s) + var(--vfjs-ui-avatar-size-md, calc(var(--vfjs-size-unit) * 36)) * var(--vfjs-ui-is-m) + var(--vfjs-ui-avatar-size-lg, calc(var(--vfjs-size-unit) * 48)) * var(--vfjs-ui-is-l));
    --vfjs-ui-spinner-size: calc(var(--vfjs-ui-spinner-size-sm, calc(var(--vfjs-size-unit) * 16)) * var(--vfjs-ui-is-s) + var(--vfjs-ui-spinner-size-md, calc(var(--vfjs-size-unit) * 24)) * var(--vfjs-ui-is-m) + var(--vfjs-ui-spinner-size-lg, calc(var(--vfjs-size-unit) * 36)) * var(--vfjs-ui-is-l));
    --vfjs-ui-chip-height: calc(var(--vfjs-ui-chip-height-sm, calc(var(--vfjs-control-height) * 0.64)) * var(--vfjs-ui-is-s) + var(--vfjs-ui-chip-height-md, calc(var(--vfjs-control-height) * 0.8)) * var(--vfjs-ui-is-m) + var(--vfjs-ui-chip-height-lg, calc(var(--vfjs-control-height) * 0.96)) * var(--vfjs-ui-is-l));
    --vfjs-ui-rating-size: calc(var(--vfjs-ui-rating-size-sm, calc(var(--vfjs-size-unit) * 18)) * var(--vfjs-ui-is-s) + var(--vfjs-ui-rating-size-md, calc(var(--vfjs-size-unit) * 22)) * var(--vfjs-ui-is-m) + var(--vfjs-ui-rating-size-lg, calc(var(--vfjs-size-unit) * 28)) * var(--vfjs-ui-is-l));
    /* U17 (2.5.8): a list row is a pointer target, never under --vfjs-ui-target-min (size s x compact density) */
    --vfjs-ui-list-item-height: max(var(--_vfjs-ui-target-min), calc(var(--vfjs-ui-list-item-height-sm, var(--vfjs-control-height-xs)) * var(--vfjs-ui-is-s) + var(--vfjs-ui-list-item-height-md, var(--vfjs-control-height)) * var(--vfjs-ui-is-m) + var(--vfjs-ui-list-item-height-lg, var(--vfjs-control-height-lg)) * var(--vfjs-ui-is-l)));
    --vfjs-ui-step-marker-size: calc(var(--vfjs-ui-step-marker-size-sm, calc(var(--vfjs-size-unit) * 22)) * var(--vfjs-ui-is-s) + var(--vfjs-ui-step-marker-size-md, calc(var(--vfjs-size-unit) * 28)) * var(--vfjs-ui-is-m) + var(--vfjs-ui-step-marker-size-lg, calc(var(--vfjs-size-unit) * 36)) * var(--vfjs-ui-is-l));
    --vfjs-ui-carousel-btn-size: calc(var(--vfjs-ui-carousel-btn-size-sm, calc(var(--vfjs-size-unit) * 28)) * var(--vfjs-ui-is-s) + var(--vfjs-ui-carousel-btn-size-md, calc(var(--vfjs-size-unit) * 36)) * var(--vfjs-ui-is-m) + var(--vfjs-ui-carousel-btn-size-lg, calc(var(--vfjs-size-unit) * 44)) * var(--vfjs-ui-is-l));
    --vfjs-ui-carousel-dot-size: calc(var(--vfjs-ui-carousel-dot-size-sm, calc(var(--vfjs-size-unit) * 8)) * var(--vfjs-ui-is-s) + var(--vfjs-ui-carousel-dot-size-md, calc(var(--vfjs-size-unit) * 10)) * var(--vfjs-ui-is-m) + var(--vfjs-ui-carousel-dot-size-lg, calc(var(--vfjs-size-unit) * 12)) * var(--vfjs-ui-is-l));
  }
  /* U8: filled fields get an underline in the control border color (1.4.11: the fill alone is ~1.1:1 against the page) */
  :is(.vfjs[data-vfjs-ui-variant="filled"], .vfjs.vfjs-ui-variant-filled) :is(.vfjs-ui-field, .vfjs-ui-picker__input, .vfjs-ui-otp__cell, .vfjs-ui-chat__input, .vfjs-ui-sheet__input, .vfjs-ui-sheet__namebox, .vfjs-ui-sheet__format, .vfjs-ui-kanban__search-input, .vfjs-ui-kanban__add-input, .vfjs-ui-fm__search-input, .vfjs-ui-fm__pathinput, .vfjs-ui-color__code, .vfjs-ui-imged__select, .vfjs-ui-imged__num, .vfjs-ui-transfer__search-input):not(:focus-within):not(:focus):not(.vfjs-ui-field--invalid):not([aria-invalid="true"]),
  :is(.vfjs[data-vfjs-ui-variant="filled"], .vfjs.vfjs-ui-variant-filled):is(.vfjs-ui-field, .vfjs-ui-picker__input, .vfjs-ui-otp__cell, .vfjs-ui-chat__input, .vfjs-ui-sheet__input, .vfjs-ui-sheet__namebox, .vfjs-ui-sheet__format, .vfjs-ui-kanban__search-input, .vfjs-ui-kanban__add-input, .vfjs-ui-fm__search-input, .vfjs-ui-fm__pathinput, .vfjs-ui-color__code, .vfjs-ui-imged__select, .vfjs-ui-imged__num, .vfjs-ui-transfer__search-input):not(:focus-within):not(.vfjs-ui-field--invalid) {
    border-block-end-color: var(--_vfjs-ui-control-border);
  }
  /* explicit middle sizes of the components with their own size classes (inside a container of another size) */
  .vfjs-ui-avatar--md { --vfjs-ui-avatar-size: var(--vfjs-ui-avatar-size-md, calc(var(--vfjs-size-unit) * 36)); }
  .vfjs-ui-spinner--md { --vfjs-ui-spinner-size: var(--vfjs-ui-spinner-size-md, calc(var(--vfjs-size-unit) * 24)); }
  .vfjs-ui-card--ghost { background: var(--_vfjs-ui-ghost-bg); border-color: transparent; box-shadow: none; }

  .vfjs {
    /* AutoComplete */
    --_vfjs-ui-ac-item-height: var(--vfjs-ui-list-item-height);
    /* TileLayout */
    --_vfjs-ui-tile-row-height: calc(var(--vfjs-size-unit) * 80 * var(--vfjs-density) * var(--vfjs-theme-density));
    --_vfjs-ui-tile-drag-shadow: var(--vfjs-ui-tile-drag-shadow, var(--vfjs-shadow-lg));
    --_vfjs-ui-tile-resize-color: var(--vfjs-ui-tile-resize-color, var(--vfjs-border));
    /* QueryBuilder */
    --_vfjs-ui-qb-gap: var(--vfjs-ui-qb-gap, var(--vfjs-space-2));
    &.vfjs-ui-ac__chips { display: inline-flex; max-width: 100%; --vfjs-ui-chip-height-sm: var(--vfjs-ui-ac-chip-height-sm, calc(var(--vfjs-size-unit) * 18));
      --vfjs-ui-chip-height-md: var(--vfjs-ui-ac-chip-height-md, calc(var(--vfjs-size-unit) * 22)); --vfjs-ui-chip-height-lg: var(--vfjs-ui-ac-chip-height-lg, calc(var(--vfjs-size-unit) * 28));
      &[hidden] { display: none; }
    }

    /* ---------- U14 variants of U3 / U4 / U6 (the fields / popups / chips follow the shared variables) ---------- */
    &[data-vfjs-ui-variant="filled"], &.vfjs-ui-variant-filled {
      --vfjs-ui-tile-bg: var(--_vfjs-ui-filled-bg); --vfjs-ui-tile-border: var(--vfjs-border-width) solid transparent; --vfjs-ui-tile-shadow: none; --vfjs-ui-tile-head-border: var(--vfjs-border-width) solid transparent;
      --vfjs-ui-qb-group-border: var(--vfjs-border-width) solid transparent; --vfjs-ui-qb-nested-bg: color-mix(in srgb, var(--vfjs-fg) 6%, var(--_vfjs-ui-filled-bg));
    }
    &[data-vfjs-ui-variant="outline"], &.vfjs-ui-variant-outline {
      --vfjs-ui-tile-bg: var(--_vfjs-ui-outline-bg); --vfjs-ui-tile-border: var(--vfjs-border-width) solid var(--_vfjs-ui-outline-border); --vfjs-ui-tile-shadow: none;
      --vfjs-ui-qb-group-bg: var(--_vfjs-ui-outline-bg); --vfjs-ui-qb-nested-bg: var(--_vfjs-ui-outline-bg); --vfjs-ui-qb-group-border: var(--vfjs-border-width) solid var(--_vfjs-ui-outline-border);
    }
    &[data-vfjs-ui-variant="ghost"], &.vfjs-ui-variant-ghost {
      --vfjs-ui-tile-bg: var(--_vfjs-ui-ghost-bg); --vfjs-ui-tile-border: var(--vfjs-border-width) solid transparent; --vfjs-ui-tile-shadow: none; --vfjs-ui-tile-head-border: var(--vfjs-border-width) solid transparent;
      --vfjs-ui-qb-group-bg: var(--_vfjs-ui-ghost-bg); --vfjs-ui-qb-nested-bg: var(--_vfjs-ui-ghost-bg); --vfjs-ui-qb-group-border: var(--vfjs-border-width) solid transparent;
    }
  }

  /* ---------- AutoComplete ---------- */
  .vfjs-ui-ac--multi { flex-wrap: wrap; height: auto; min-height: calc(var(--_vfjs-ui-field-height) * var(--vfjs-ui-scale));
    padding-block: calc(var(--vfjs-space) * 0.75 * var(--vfjs-ui-scale)); row-gap: var(--vfjs-space-1);
    input { min-width: calc(var(--vfjs-size-unit) * 60); }
  }
  .vfjs-ui-ac__busy { display: inline-flex; color: var(--vfjs-muted);
    &[hidden] { display: none; }
  }
  .vfjs-ui-ac__busy svg, .vfjs-ui-ac__spin svg { animation: vfjs-ui-spin calc(var(--vfjs-motion-duration) * 16 / 3) linear infinite; }
  .vfjs-ui-ac__pop { display: flex; flex-direction: column; padding: var(--vfjs-space-1); overflow: hidden;
    max-height: calc(var(--vfjs-ui-ac-max-height, calc(var(--vfjs-size-unit) * 300)) * var(--vfjs-ui-scale)); animation: vfjs-ui-fade var(--vfjs-motion-duration-fast); }
  .vfjs-ui-ac__list { position: relative; overflow: auto; flex: 1 1 auto; min-height: 0;
    &[hidden] { display: none; }
    &[aria-busy="true"] { opacity: var(--vfjs-ui-ac-busy-opacity, .6); }
  }
  .vfjs-ui-ac__spacer { position: relative; }
  .vfjs-ui-ac__list--virtual {
    .vfjs-ui-option { box-sizing: border-box; }
    .vfjs-ui-ac__content { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .vfjs-ui-ac__header { padding-block: 0; }
  }
  .vfjs-ui-ac__content { flex: 1; min-width: 0; }
  .vfjs-ui-ac__header { display: flex; align-items: center; box-sizing: border-box; padding: calc(var(--vfjs-space) * 1.5) calc(var(--vfjs-space) * 2.25 * var(--vfjs-ui-scale)) calc(var(--vfjs-space) * 0.5);
    font-size: var(--vfjs-ui-font-size-xs); font-weight: var(--vfjs-font-weight-semibold); text-transform: uppercase; letter-spacing: var(--vfjs-letter-spacing-caps); color: var(--vfjs-ui-ac-header-fg, var(--vfjs-muted)); }
  .vfjs-ui-ac__option--grouped { padding-inline-start: calc(var(--vfjs-ui-ac-indent, calc(var(--vfjs-space) * 4)) * var(--vfjs-ui-scale)); }
  .vfjs-ui-ac__mark { background: var(--vfjs-ui-ac-mark-bg, color-mix(in srgb, var(--vfjs-accent) 22%, transparent)); color: var(--vfjs-ui-ac-mark-fg, inherit); font-weight: var(--vfjs-ui-ac-mark-weight, var(--vfjs-font-weight-semibold)); border-radius: var(--vfjs-radius-xs); }
  /* U8 (1.4.3): on the selected (tinted) row the match is underlined instead of tinted twice */
  .vfjs-ui-option--selected .vfjs-ui-ac__mark { background: var(--vfjs-ui-ac-mark-selected-bg, transparent); text-decoration: underline; }
  .vfjs-ui-ac__status { display: flex; align-items: center; gap: var(--vfjs-space-2); padding: calc(var(--vfjs-space) * 2) calc(var(--vfjs-space) * 2.25);
    color: var(--vfjs-ui-ac-status-fg, var(--vfjs-muted)); font-size: var(--vfjs-ui-font-size-sm);
    &[hidden] { display: none; }
  }
  .vfjs-ui-ac__status--error { color: var(--_vfjs-ui-error-color); }
  .vfjs-ui-ac__retry { margin-inline-start: auto; }

  /* ---------- TileLayout ---------- */
  .vfjs-ui-tiles { position: relative; isolation: isolate; display: grid; grid-template-columns: repeat(var(--vfjs-ui-tiles-columns, 12), minmax(0, 1fr));
    grid-auto-rows: calc(var(--vfjs-ui-tile-row-height, var(--_vfjs-ui-tile-row-height)) * var(--vfjs-ui-scale)); gap: calc(var(--vfjs-ui-tile-gap, var(--vfjs-space-3)) * var(--vfjs-ui-scale)); }
  .vfjs-ui-tiles--has-max { isolation: auto; }
  .vfjs-ui-tile { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; box-sizing: border-box;
    background: var(--vfjs-ui-tile-bg, var(--vfjs-bg)); color: var(--vfjs-ui-tile-fg, var(--vfjs-fg)); border: var(--vfjs-ui-tile-border, var(--vfjs-border-width) solid var(--vfjs-border)); border-radius: var(--vfjs-ui-tile-radius, var(--vfjs-radius-lg));
    box-shadow: var(--vfjs-ui-tile-shadow, var(--vfjs-shadow-sm)); font-size: var(--vfjs-ui-font-size);
    &[tabindex="0"]:focus-visible { outline: var(--vfjs-focus-ring-width) var(--vfjs-focus-ring-style) var(--vfjs-focus-ring-color, var(--vfjs-accent)); outline-offset: var(--vfjs-focus-ring-offset); }
  }
  .vfjs-ui-tile__head { display: flex; align-items: center; flex: none; gap: calc(var(--vfjs-space) * 1.5 * var(--vfjs-ui-scale));
    padding: calc(var(--vfjs-space) * 1.5 * var(--vfjs-ui-scale)) calc(var(--vfjs-space) * 2.5 * var(--vfjs-ui-scale));
    background: var(--vfjs-ui-tile-head-bg, transparent); border-bottom: var(--vfjs-ui-tile-head-border, var(--vfjs-border-width) solid var(--vfjs-border)); user-select: none; }
  .vfjs-ui-tile__head--movable, .vfjs-ui-tile[tabindex="0"] { cursor: grab; touch-action: none; }
  .vfjs-ui-tile--collapsed .vfjs-ui-tile__head { border-bottom-color: transparent; }
  .vfjs-ui-tile__title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: var(--vfjs-ui-tile-title-weight, var(--vfjs-font-weight-semibold)); }
  .vfjs-ui-tile__actions { display: inline-flex; align-items: center; gap: var(--vfjs-space-1); }
  .vfjs-ui-tile__grip, .vfjs-ui-tile__btn { display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--vfjs-ui-tile-btn-fg, var(--vfjs-muted));
    min-inline-size: var(--_vfjs-ui-target-min); min-block-size: var(--_vfjs-ui-target-min); box-sizing: border-box;
    font: inherit; font-size: var(--vfjs-ui-font-size-sm); padding: calc(var(--vfjs-space) * 0.75 * var(--vfjs-ui-scale)); border-radius: var(--vfjs-radius-md); cursor: pointer; }
  .vfjs-ui-tile__grip { cursor: grab; touch-action: none; }
  .vfjs-ui-tile__grip:hover, .vfjs-ui-tile__btn:hover { background: var(--vfjs-ui-tile-btn-hover-bg, var(--vfjs-hover-bg)); color: var(--vfjs-fg); }
  .vfjs-ui-tile__grip[aria-pressed="true"] { color: var(--vfjs-accent); }
  .vfjs-ui-tile__body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: calc(var(--vfjs-ui-tile-padding, var(--vfjs-space-3)) * var(--vfjs-ui-scale));
    &[hidden] { display: none; }
  }
  .vfjs-ui-tile__resize { position: absolute; inset-inline-end: 0; bottom: 0; width: var(--vfjs-ui-tile-resize-size, calc(var(--vfjs-size-unit) * 14)); height: var(--vfjs-ui-tile-resize-size, calc(var(--vfjs-size-unit) * 14));
    cursor: nwse-resize; touch-action: none; background: linear-gradient(135deg, transparent 55%, var(--_vfjs-ui-tile-resize-color) 55%, var(--_vfjs-ui-tile-resize-color) 65%, transparent 65%, transparent 78%, var(--_vfjs-ui-tile-resize-color) 78%);
    &:dir(rtl) { cursor: nesw-resize; background: linear-gradient(225deg, transparent 55%, var(--_vfjs-ui-tile-resize-color) 55%, var(--_vfjs-ui-tile-resize-color) 65%, transparent 65%, transparent 78%, var(--_vfjs-ui-tile-resize-color) 78%); }
  }
  .vfjs-ui-tile--grabbed { box-shadow: var(--vfjs-ui-tile-grab-ring, 0 0 0 calc(var(--vfjs-size-unit) * 2) var(--vfjs-accent)), var(--_vfjs-ui-tile-drag-shadow); z-index: calc(var(--vfjs-z-base) + 2); }
  .vfjs-ui-tile--dragging { z-index: calc(var(--vfjs-z-base) + 3); box-shadow: var(--_vfjs-ui-tile-drag-shadow); opacity: var(--vfjs-ui-tile-drag-opacity, .92); cursor: grabbing; }
  .vfjs-ui-tile--resizing { z-index: calc(var(--vfjs-z-base) + 3); box-shadow: var(--_vfjs-ui-tile-drag-shadow); }
  .vfjs-ui-tiles--active { user-select: none; }
  .vfjs-ui-tile-ph { z-index: calc(var(--vfjs-z-base) - 1); background: var(--vfjs-ui-tile-ph-bg, color-mix(in srgb, var(--vfjs-accent) 12%, transparent)); border: var(--vfjs-ui-tile-ph-border, var(--vfjs-border-width-thick) dashed var(--vfjs-accent)); border-radius: var(--vfjs-ui-tile-radius, var(--vfjs-radius-lg)); box-sizing: border-box;
    &[hidden] { display: none; }
  }
  .vfjs-ui-tile--max { position: fixed; inset: var(--vfjs-ui-tile-max-inset, var(--vfjs-space-4)); z-index: calc(var(--vfjs-z-dropdown) - 2); box-shadow: var(--_vfjs-ui-tile-drag-shadow); }
  .vfjs-ui-tiles__backdrop { position: fixed; inset: 0; z-index: calc(var(--vfjs-z-dropdown) - 3); background: var(--vfjs-ui-tile-backdrop, var(--vfjs-ui-backdrop, var(--vfjs-backdrop))); }
  .vfjs-ui-tiles--disabled .vfjs-ui-tile__head--movable { cursor: default; }

  /* ---------- QueryBuilder ---------- */
  .vfjs-ui-qb { display: flex; flex-direction: column; gap: var(--_vfjs-ui-qb-gap); font-size: var(--vfjs-ui-font-size); }
  .vfjs-ui-qb__group { display: flex; flex-direction: column; gap: calc(var(--_vfjs-ui-qb-gap) * var(--vfjs-ui-scale)); background: var(--vfjs-ui-qb-group-bg, var(--vfjs-surface));
    border: var(--vfjs-ui-qb-group-border, var(--vfjs-border-width) solid var(--vfjs-border)); border-radius: var(--vfjs-ui-qb-group-radius, var(--vfjs-radius)); padding: calc(var(--vfjs-ui-qb-group-padding, var(--vfjs-space-2)) * var(--vfjs-ui-scale)); }
  .vfjs-ui-qb__group--nested { background: var(--vfjs-ui-qb-nested-bg, var(--vfjs-bg));
    .vfjs-ui-qb__group--nested { background: var(--vfjs-ui-qb-group-bg, var(--vfjs-surface)); }
  }
  .vfjs-ui-qb__group--not { border-inline-start-color: var(--vfjs-ui-qb-not-color, var(--vfjs-danger)); border-inline-start-width: var(--vfjs-border-width-thick); }
  .vfjs-ui-qb__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--_vfjs-ui-qb-gap); }
  .vfjs-ui-qb__rules { display: flex; flex-direction: column; gap: calc(var(--_vfjs-ui-qb-gap) * var(--vfjs-ui-scale)); padding-inline-start: calc(var(--vfjs-ui-qb-indent, var(--vfjs-space-3)) * var(--vfjs-ui-scale));
    border-inline-start: var(--vfjs-border-width-thick) solid var(--vfjs-ui-qb-line, var(--vfjs-border)); margin-inline-start: var(--vfjs-space-1); }
  .vfjs-ui-qb__rule { display: flex; flex-wrap: wrap; align-items: center; gap: var(--_vfjs-ui-qb-gap); }
  .vfjs-ui-qb__field { flex: 0 1 var(--vfjs-ui-qb-field-width, calc(var(--vfjs-size-unit) * 160)); min-width: 0; }
  .vfjs-ui-qb__op { flex: 0 1 var(--vfjs-ui-qb-op-width, calc(var(--vfjs-size-unit) * 150)); min-width: 0; }
  .vfjs-ui-qb__value { flex: 0 1 var(--vfjs-ui-qb-value-width, calc(var(--vfjs-size-unit) * 170)); min-width: 0; }
  .vfjs-ui-qb__value--list { flex-basis: calc(var(--vfjs-ui-qb-value-width, calc(var(--vfjs-size-unit) * 170)) * 1.5); }
  .vfjs-ui-qb__grow { flex: 1; }
  .vfjs-ui-qb__and, .vfjs-ui-qb__empty, .vfjs-ui-qb__summary { color: var(--vfjs-ui-qb-muted, var(--vfjs-muted)); font-size: var(--vfjs-ui-font-size-sm); }
  .vfjs-ui-qb__summary[hidden] { display: none; }
  .vfjs-ui-qb__error { flex-basis: 100%; font-size: var(--vfjs-ui-font-size-sm); color: var(--_vfjs-ui-error-color);
    &[hidden] { display: none; }
  }
  .vfjs-ui-qb--disabled { opacity: var(--_vfjs-ui-disabled-opacity); }

  .vfjs {
    /* Kanban */
    --_vfjs-ui-kanban-column-width: calc(var(--vfjs-size-unit) * 272);
    --_vfjs-ui-kanban-collapsed-width: calc(var(--vfjs-size-unit) * 44);
    --_vfjs-ui-kanban-column-border: var(--vfjs-ui-kanban-column-border, var(--vfjs-border-width) solid transparent);
    --_vfjs-ui-kanban-column-radius: var(--vfjs-ui-kanban-column-radius, var(--vfjs-radius-lg));
    --_vfjs-ui-kanban-column-accent: transparent;
    --_vfjs-ui-kanban-card-accent: var(--vfjs-accent);
    --_vfjs-ui-kanban-card-estimate: calc(var(--vfjs-size-unit) * 96);
    /* Chat */
    /* S29: height of a Chat / AI Prompt whose container has no height of its own (class vfjs-auto-height) */
    --_vfjs-ui-chat-padding: var(--vfjs-ui-chat-padding, var(--vfjs-space-3));
    --_vfjs-ui-chat-estimate: calc(var(--vfjs-size-unit) * 64);
    --_vfjs-ui-chat-bottom-zone: calc(var(--vfjs-size-unit) * 48);
    --_vfjs-ui-chat-dot-size: var(--vfjs-ui-chat-dot-size, calc(var(--vfjs-size-unit) * 5));
    /* markdown inside messages */
  }

  /* ---------- Kanban ---------- */
  :where(.vfjs-ui-kanban):not(.vfjs) { display: flex; flex-direction: column; gap: var(--vfjs-space-2); block-size: 100%; min-block-size: 0;
    background: var(--vfjs-ui-kanban-bg, transparent); color: var(--vfjs-fg); font-size: var(--vfjs-ui-font-size); }
  .vfjs-ui-kanban__toolbar { display: flex; align-items: center; gap: var(--vfjs-space-3); flex: none;
    &[hidden] { display: none; }
  }
  .vfjs-ui-kanban__search { flex: 0 1 calc(var(--vfjs-size-unit) * 280); }
  .vfjs-ui-kanban__search-input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: inherit; font: inherit; }
  .vfjs-ui-kanban__status { color: var(--vfjs-muted); font-size: var(--vfjs-ui-font-size-sm); }
  .vfjs-ui-kanban__board { flex: 1 1 auto; min-block-size: 0; position: relative; display: grid; grid-auto-rows: auto; align-content: start;
    column-gap: calc(var(--vfjs-ui-kanban-gap, var(--vfjs-space-3)) * var(--vfjs-ui-scale)); overflow: auto; padding-block-end: var(--vfjs-space-2); }
  .vfjs-ui-kanban__colhead { position: sticky; inset-block-start: 0; z-index: calc(var(--vfjs-z-base) + 2); display: flex; align-items: center; gap: var(--vfjs-space-1);
    min-inline-size: 0; padding: calc(var(--vfjs-ui-kanban-column-padding, var(--vfjs-space-2)) * var(--vfjs-ui-scale)); background: var(--vfjs-ui-kanban-column-bg, var(--vfjs-surface)); color: var(--vfjs-ui-kanban-head-fg, var(--vfjs-fg));
    border: var(--_vfjs-ui-kanban-column-border); border-block-end: 0; border-start-start-radius: var(--_vfjs-ui-kanban-column-radius); border-start-end-radius: var(--_vfjs-ui-kanban-column-radius);
    box-shadow: inset 0 var(--vfjs-border-width-thick) 0 var(--vfjs-ui-kanban-column-accent, var(--_vfjs-ui-kanban-column-accent)); user-select: none; }
  .vfjs-ui-kanban__colhead--movable { cursor: grab; }
  .vfjs-ui-kanban__colhead--over { color: var(--vfjs-ui-kanban-over-color, var(--vfjs-danger)); }
  .vfjs-ui-kanban__colhead--dragging { opacity: var(--_vfjs-ui-disabled-opacity); }
  .vfjs-ui-kanban__coltitle { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: var(--vfjs-ui-kanban-head-weight, var(--vfjs-font-weight-semibold)); }
  .vfjs-ui-kanban__count { flex: none; padding: 0 var(--vfjs-space-2); border-radius: var(--vfjs-radius-pill); background: var(--vfjs-ui-kanban-count-bg, color-mix(in srgb, var(--vfjs-fg) 8%, transparent)); color: var(--vfjs-ui-kanban-count-fg, var(--_vfjs-ui-subtle-fg));
    font-size: var(--vfjs-ui-font-size-xs); font-weight: var(--vfjs-font-weight-semibold); line-height: var(--vfjs-line-height); font-variant-numeric: tabular-nums; }
  .vfjs-ui-kanban__colhead--full .vfjs-ui-kanban__count { background: color-mix(in srgb, var(--vfjs-ui-kanban-full-color, var(--vfjs-warning)) 18%, transparent); color: var(--vfjs-ui-kanban-full-color, var(--vfjs-warning)); }
  .vfjs-ui-kanban__colhead--over .vfjs-ui-kanban__count { background: var(--vfjs-ui-kanban-over-color, var(--vfjs-danger)); color: var(--vfjs-danger-fg); }
  .vfjs-ui-kanban__grip, .vfjs-ui-kanban__btn, .vfjs-ui-kanban__lanebtn { display: inline-flex; align-items: center; justify-content: center; gap: var(--vfjs-space-1); border: 0;
    background: transparent; color: var(--vfjs-muted); font: inherit; padding: calc(var(--vfjs-space) * 0.75 * var(--vfjs-ui-scale)); border-radius: var(--vfjs-radius-md); cursor: pointer; }
  .vfjs-ui-kanban__grip { cursor: grab; touch-action: none; }
  .vfjs-ui-kanban__grip:hover, .vfjs-ui-kanban__btn:hover, .vfjs-ui-kanban__lanebtn:hover { background: var(--vfjs-hover-bg); color: var(--vfjs-fg); }
  .vfjs-ui-kanban__grip[aria-pressed="true"] { color: var(--vfjs-accent); box-shadow: var(--vfjs-ui-kanban-grab-ring, 0 0 0 calc(var(--vfjs-size-unit) * 2) var(--vfjs-accent)); }
  .vfjs-ui-kanban__colhead--collapsed { justify-content: center; padding-inline: var(--vfjs-space-1);
    .vfjs-ui-kanban__collapse svg:dir(rtl) { transform: scaleX(-1); }
  }
  .vfjs-ui-kanban__vtitle { display: flex; align-items: center; gap: var(--vfjs-space-2); writing-mode: vertical-rl; align-self: center; padding-block: var(--vfjs-space-2);
    color: var(--vfjs-ui-kanban-head-fg, var(--vfjs-fg)); font-weight: var(--vfjs-ui-kanban-head-weight, var(--vfjs-font-weight-semibold)); white-space: nowrap;
    .vfjs-ui-kanban__count { writing-mode: horizontal-tb; }
  }
  .vfjs-ui-kanban__cell--over .vfjs-ui-kanban__vtitle { color: var(--vfjs-ui-kanban-over-color, var(--vfjs-danger)); }
  .vfjs-ui-kanban__lanehead { position: sticky; inset-inline-start: 0; z-index: calc(var(--vfjs-z-base) + 1); display: flex; align-items: center; justify-self: start;
    margin-block-start: var(--vfjs-space-3); padding-block: var(--vfjs-space-1); background: var(--vfjs-ui-kanban-lane-bg, transparent); color: var(--vfjs-ui-kanban-lane-fg, var(--vfjs-fg));
    font-weight: var(--vfjs-font-weight-semibold); }
  .vfjs-ui-kanban__lanebtn { color: inherit; font-weight: inherit; }
  .vfjs-ui-kanban__lanechev { display: inline-flex; color: var(--vfjs-muted);
    svg:dir(rtl) { transform: scaleX(-1); }
  }
  .vfjs-ui-kanban--lanes {
    .vfjs-ui-kanban__board { grid-auto-rows: max-content; }
    .vfjs-ui-kanban__lanehead { border-block-start: var(--vfjs-ui-kanban-lane-border, var(--vfjs-border-width) solid var(--vfjs-border)); inline-size: 100%; justify-self: stretch; }
    .vfjs-ui-kanban__cell { border-radius: var(--_vfjs-ui-kanban-column-radius); padding-block-start: calc(var(--vfjs-ui-kanban-column-padding, var(--vfjs-space-2)) * var(--vfjs-ui-scale)); }
    .vfjs-ui-kanban__list { max-block-size: calc(var(--vfjs-ui-kanban-lane-max-height, calc(var(--vfjs-size-unit) * 480)) * var(--vfjs-ui-scale)); flex: 0 1 auto; }
  }
  .vfjs-ui-kanban__cell { display: flex; flex-direction: column; min-inline-size: 0; min-block-size: 0; background: var(--vfjs-ui-kanban-column-bg, var(--vfjs-surface)); border: var(--_vfjs-ui-kanban-column-border); border-block-start: 0;
    border-end-start-radius: var(--_vfjs-ui-kanban-column-radius); border-end-end-radius: var(--_vfjs-ui-kanban-column-radius); padding: 0 calc(var(--vfjs-ui-kanban-column-padding, var(--vfjs-space-2)) * var(--vfjs-ui-scale)) calc(var(--vfjs-ui-kanban-column-padding, var(--vfjs-space-2)) * var(--vfjs-ui-scale)); }
  .vfjs-ui-kanban__cell--over { background: var(--vfjs-ui-kanban-over-bg, color-mix(in srgb, var(--vfjs-danger) 8%, var(--vfjs-ui-kanban-column-bg, var(--vfjs-surface)))); }
  .vfjs-ui-kanban__cell--target { box-shadow: var(--vfjs-ui-kanban-target-ring, inset 0 0 0 var(--vfjs-border-width-thick) color-mix(in srgb, var(--vfjs-accent) 50%, transparent)); }
  .vfjs-ui-kanban__cell--blocked { box-shadow: var(--vfjs-ui-kanban-blocked-ring, inset 0 0 0 var(--vfjs-border-width-thick) var(--vfjs-danger)); cursor: not-allowed; }
  .vfjs-ui-kanban__list { flex: 1 1 auto; min-block-size: calc(var(--vfjs-size-unit) * 32); overflow-y: auto; overflow-x: hidden; outline-offset: calc(var(--vfjs-focus-ring-width) * -1); padding: var(--vfjs-space-1); margin: calc(var(--vfjs-space) * -1);
    &:has(.vfjs-ui-kanban__card, .vfjs-ui-kanban__ph) + .vfjs-ui-kanban__empty { display: none; }
  }
  .vfjs-ui-kanban__spacer { flex: none; }
  .vfjs-ui-kanban__card { position: relative; display: flex; flex-direction: column; gap: calc(var(--vfjs-space) * 1.5 * var(--vfjs-ui-scale)); box-sizing: border-box;
    margin-block-end: calc(var(--vfjs-ui-kanban-card-gap, var(--vfjs-space-2)) * var(--vfjs-ui-scale)); padding: calc(var(--vfjs-ui-kanban-card-padding, var(--vfjs-space-2)) * var(--vfjs-ui-scale)) calc(var(--vfjs-ui-kanban-card-padding, var(--vfjs-space-2)) * 1.25 * var(--vfjs-ui-scale));
    background: var(--vfjs-ui-kanban-card-bg, var(--vfjs-bg)); color: var(--vfjs-ui-kanban-card-fg, var(--vfjs-fg)); border: var(--vfjs-ui-kanban-card-border, var(--vfjs-border-width) solid var(--vfjs-border)); border-radius: var(--vfjs-ui-kanban-card-radius, var(--vfjs-radius));
    box-shadow: var(--vfjs-ui-kanban-card-shadow, var(--vfjs-shadow-xs)); font-size: var(--vfjs-ui-font-size); cursor: grab; user-select: none; -webkit-touch-callout: none; overflow-wrap: anywhere;
    &:hover { border-color: var(--vfjs-ui-kanban-card-hover-border, color-mix(in srgb, var(--vfjs-accent) 45%, var(--vfjs-border))); }
    &:focus-visible { outline: var(--vfjs-focus-ring-width) var(--vfjs-focus-ring-style) var(--vfjs-focus-ring-color, var(--vfjs-accent)); outline-offset: var(--vfjs-focus-ring-offset); }
    &[aria-disabled="true"] { cursor: default; }
  }
  .vfjs-ui-kanban__card--color { border-inline-start: var(--vfjs-ui-kanban-card-stripe, calc(var(--vfjs-size-unit) * 3)) solid var(--vfjs-ui-kanban-card-accent, var(--_vfjs-ui-kanban-card-accent)); }
  .vfjs-ui-kanban__card--grabbed { box-shadow: var(--vfjs-ui-kanban-grab-ring, 0 0 0 calc(var(--vfjs-size-unit) * 2) var(--vfjs-accent)), var(--vfjs-ui-kanban-drag-shadow, var(--vfjs-shadow-lg)); z-index: calc(var(--vfjs-z-base) + 1); }
  .vfjs-ui-kanban__card--dragging { display: none; }
  .vfjs-ui-kanban__labels { display: flex; flex-wrap: wrap; gap: var(--vfjs-space-1); }
  .vfjs-ui-kanban__label { max-inline-size: 100%; }
  .vfjs-ui-kanban__title { font-weight: var(--vfjs-ui-kanban-title-weight, var(--vfjs-font-weight-medium)); line-height: var(--vfjs-line-height-snug); }
  .vfjs-ui-kanban__text { color: var(--vfjs-ui-kanban-text-fg, var(--vfjs-muted)); font-size: var(--vfjs-ui-font-size-sm); line-height: var(--vfjs-line-height-snug); display: -webkit-box; -webkit-box-orient: vertical;
    -webkit-line-clamp: var(--vfjs-ui-kanban-text-lines, 3); line-clamp: var(--vfjs-ui-kanban-text-lines, 3); overflow: hidden; }
  .vfjs-ui-kanban__progress { block-size: calc(var(--vfjs-ui-kanban-progress-height, calc(var(--vfjs-size-unit) * 4)) * var(--vfjs-ui-scale)); border-radius: var(--vfjs-radius-pill); background: var(--vfjs-ui-kanban-progress-bg, color-mix(in srgb, var(--vfjs-fg) 10%, transparent)); overflow: hidden; }
  .vfjs-ui-kanban__progress-fill { display: block; block-size: 100%; background: var(--vfjs-ui-kanban-progress-fill, var(--vfjs-accent)); border-radius: inherit; }
  .vfjs-ui-kanban__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--vfjs-space-2); min-block-size: var(--_vfjs-ui-avatar-size-xs); }
  .vfjs-ui-kanban__due { display: inline-flex; align-items: center; gap: var(--vfjs-space-1); color: var(--vfjs-ui-kanban-due-fg, var(--vfjs-muted)); font-size: var(--vfjs-ui-font-size-xs); }
  .vfjs-ui-kanban__due-icon { display: inline-flex; }
  .vfjs-ui-kanban__due--overdue { color: var(--vfjs-ui-kanban-overdue-fg, var(--vfjs-danger)); font-weight: var(--vfjs-font-weight-semibold); }
  .vfjs-ui-kanban__due--today, .vfjs-ui-kanban__due--soon { color: var(--vfjs-ui-kanban-soon-fg, var(--vfjs-warning)); }
  .vfjs-ui-kanban__people { display: inline-flex; align-items: center; margin-inline-start: auto;
    > .vfjs-ui-avatar { box-shadow: 0 0 0 var(--vfjs-border-width-thick) var(--vfjs-ui-kanban-card-bg, var(--vfjs-bg));
      + .vfjs-ui-avatar { margin-inline-start: calc(var(--_vfjs-ui-avatar-size-xs) * var(--vfjs-ui-avatar-overlap, 0.28) * -1); }
    }
  }
  .vfjs-ui-kanban__more { margin-inline-start: var(--vfjs-space-1); color: var(--vfjs-muted); font-size: var(--vfjs-ui-font-size-xs); }
  .vfjs-ui-kanban__card-body { min-inline-size: 0; }
  .vfjs-ui-kanban__empty { padding: var(--vfjs-space-3) var(--vfjs-space-2); color: var(--vfjs-ui-kanban-empty-fg, var(--vfjs-muted)); font-size: var(--vfjs-ui-font-size-sm); text-align: center; }
  .vfjs-ui-kanban__none { padding: var(--vfjs-space-4); color: var(--vfjs-muted); }
  .vfjs-ui-kanban__ph { box-sizing: border-box; margin-block-end: calc(var(--vfjs-ui-kanban-card-gap, var(--vfjs-space-2)) * var(--vfjs-ui-scale)); background: var(--vfjs-ui-kanban-ph-bg, color-mix(in srgb, var(--vfjs-accent) 10%, transparent));
    border: var(--vfjs-ui-kanban-ph-border, var(--vfjs-border-width-thick) dashed color-mix(in srgb, var(--vfjs-accent) 60%, transparent)); border-radius: var(--vfjs-ui-kanban-card-radius, var(--vfjs-radius)); }
  .vfjs-ui-kanban__colmark { position: absolute; z-index: calc(var(--vfjs-z-base) + 3); inline-size: var(--vfjs-ui-kanban-mark-width, calc(var(--vfjs-size-unit) * 3)); block-size: 100%; margin-inline-start: calc(var(--vfjs-ui-kanban-gap, var(--vfjs-space-3)) * var(--vfjs-ui-scale) / -2);
    background: var(--vfjs-ui-kanban-mark-color, var(--vfjs-accent)); border-radius: var(--vfjs-radius-pill); pointer-events: none;
    &:dir(rtl) { margin-inline-start: 0; margin-inline-end: calc(var(--vfjs-ui-kanban-gap, var(--vfjs-space-3)) * var(--vfjs-ui-scale) / -2); }
  }
  .vfjs {
    &.vfjs-ui-kanban__ghost { position: fixed; top: 0; left: 0; /* physical: the script moves it by viewport px */ z-index: var(--vfjs-z-drag); margin: 0; pointer-events: none;
      box-shadow: var(--vfjs-ui-kanban-drag-shadow, var(--vfjs-shadow-lg)); rotate: var(--vfjs-ui-kanban-drag-rotate, 2deg); opacity: .95; box-sizing: border-box; }

    /* ---------- U14 variants of U5 / U7 ---------- */
    &[data-vfjs-ui-variant="filled"], &.vfjs-ui-variant-filled {
      --vfjs-ui-kanban-card-bg: var(--_vfjs-ui-filled-bg); --vfjs-ui-kanban-card-border: var(--vfjs-border-width) solid transparent; --vfjs-ui-kanban-card-shadow: none;
      --vfjs-ui-kanban-column-bg: color-mix(in srgb, var(--vfjs-fg) 6%, var(--vfjs-bg));
      --vfjs-ui-chat-own-bg: var(--_vfjs-ui-filled-accent-bg); --vfjs-ui-chat-own-fg: var(--_vfjs-ui-filled-accent-fg);
      --vfjs-ui-chat-border: var(--vfjs-border-width) solid transparent; --vfjs-ui-chat-bg: var(--_vfjs-ui-filled-bg); --vfjs-ui-chat-composer-bg: var(--_vfjs-ui-filled-bg);
      --vfjs-ui-chat-input-bg: var(--vfjs-bg); --vfjs-ui-chat-bubble-bg: var(--vfjs-bg);
    }
    &[data-vfjs-ui-variant="outline"], &.vfjs-ui-variant-outline {
      --vfjs-ui-kanban-card-bg: var(--_vfjs-ui-outline-bg); --vfjs-ui-kanban-card-border: var(--vfjs-border-width) solid var(--_vfjs-ui-outline-border); --vfjs-ui-kanban-card-shadow: none;
      --vfjs-ui-kanban-column-bg: var(--_vfjs-ui-outline-bg); --vfjs-ui-kanban-column-border: var(--vfjs-border-width) solid var(--_vfjs-ui-outline-border);
      --vfjs-ui-chat-bubble-bg: var(--_vfjs-ui-outline-bg); --vfjs-ui-chat-bubble-border: var(--vfjs-border-width) solid var(--_vfjs-ui-outline-border);
      --vfjs-ui-chat-own-bg: var(--_vfjs-ui-outline-bg); --vfjs-ui-chat-own-fg: var(--_vfjs-ui-outline-accent); --vfjs-ui-chat-own-border: var(--vfjs-border-width) solid var(--_vfjs-ui-outline-accent);
      --vfjs-ui-chat-own-meta-fg: var(--vfjs-muted);
    }
    &[data-vfjs-ui-variant="ghost"], &.vfjs-ui-variant-ghost {
      --vfjs-ui-kanban-card-bg: var(--_vfjs-ui-ghost-bg); --vfjs-ui-kanban-card-border: var(--vfjs-border-width) solid transparent; --vfjs-ui-kanban-card-shadow: none;
      --vfjs-ui-kanban-column-bg: var(--_vfjs-ui-ghost-bg); --vfjs-ui-kanban-card-hover-border: transparent;
      --vfjs-ui-chat-bubble-bg: var(--_vfjs-ui-ghost-bg); --vfjs-ui-chat-own-bg: var(--_vfjs-ui-ghost-accent-bg); --vfjs-ui-chat-own-fg: var(--_vfjs-ui-ghost-accent);
      --vfjs-ui-chat-border: var(--vfjs-border-width) solid transparent; --vfjs-ui-chat-own-meta-fg: var(--vfjs-muted); --vfjs-ui-chat-composer-border: var(--vfjs-border-width) solid transparent;
    }
  }
  .vfjs-ui-kanban__add { display: flex; align-items: center; gap: var(--vfjs-space-1); inline-size: 100%; margin-block-start: var(--vfjs-space-1); padding: calc(var(--vfjs-space) * 1.5 * var(--vfjs-ui-scale)) var(--vfjs-space-2);
    border: 0; border-radius: var(--vfjs-radius-md); background: transparent; color: var(--_vfjs-ui-subtle-fg); font: inherit; font-size: var(--vfjs-ui-font-size-sm); cursor: pointer; text-align: start;
    &:hover { background: var(--vfjs-hover-bg); color: var(--vfjs-fg); }
  }
  .vfjs-ui-kanban__addform { display: flex; flex-direction: column; gap: var(--vfjs-space-2); margin-block-start: var(--vfjs-space-1); }
  .vfjs-ui-kanban__add-input { box-sizing: border-box; inline-size: 100%; resize: vertical; padding: var(--vfjs-space-2); border: var(--_vfjs-ui-field-border); border-radius: var(--vfjs-ui-kanban-card-radius, var(--vfjs-radius));
    background: var(--vfjs-ui-kanban-card-bg, var(--vfjs-bg)); color: var(--vfjs-fg); font: inherit;
    &:focus { border-color: var(--vfjs-accent); box-shadow: var(--_vfjs-ui-field-focus-ring); }
  }
  .vfjs-ui-kanban__addbtns { display: flex; gap: var(--vfjs-space-2); }
  .vfjs-ui-kanban--dragging, .vfjs-ui-kanban--dragging * { cursor: grabbing; user-select: none; }
  .vfjs-ui-kanban--disabled .vfjs-ui-kanban__card, .vfjs-ui-kanban--disabled .vfjs-ui-kanban__colhead { cursor: default; }

  /* ---------- Chat / AI Prompt ---------- */
  :where(.vfjs-ui-chat):not(.vfjs) { position: relative; display: flex; flex-direction: column; block-size: 100%; min-block-size: 0; box-sizing: border-box; overflow: hidden;
    background: var(--vfjs-ui-chat-bg, var(--vfjs-bg)); color: var(--vfjs-ui-chat-fg, var(--vfjs-fg)); border: var(--vfjs-ui-chat-border, var(--vfjs-border-width) solid var(--vfjs-border)); border-radius: var(--vfjs-ui-chat-radius, var(--vfjs-radius-lg)); font-size: var(--vfjs-ui-font-size); }
  /* S29: default height only while the container has none (an explicit height is kept exactly) */
  /* S30: exactly the default (the feed scrolls inside, many messages no longer make it taller); the default is also the
     min-height of the element (core measures it: 0 = switched off -> class vfjs-content-height = all messages) */
  .vfjs-auto-height > .vfjs-ui-chat:not(.vfjs) { block-size: var(--vfjs-ui-chat-min-height, calc(var(--vfjs-size-unit) * 400)); }
  :is(.vfjs-ui-chat, .vfjs-ui-aiprompt) {
    &.vfjs-auto-height { min-height: var(--vfjs-ui-chat-min-height, calc(var(--vfjs-size-unit) * 400)); }
    /* S30: a height from the layout (class vfjs-fit: explicit, flex / grid stretch, min-height only, insets): the chat
       fills the element without percentages, its messages never make the element taller */
    &.vfjs-fit { display: flex; flex-direction: column;
      > .vfjs-ui-chat:not(.vfjs) { flex: 1 1 0; min-block-size: 0; }
    }
  }
  .vfjs-ui-chat__feedwrap { position: relative; flex: 1 1 auto; min-block-size: 0; display: flex; flex-direction: column; }
  .vfjs-ui-chat__feed { flex: 1 1 auto; min-block-size: 0; overflow-y: auto; overflow-x: hidden; padding: calc(var(--_vfjs-ui-chat-padding) * var(--vfjs-ui-scale)); }
  .vfjs-ui-chat__spacer { flex: none; }
  .vfjs-ui-chat__empty { display: flex; align-items: center; justify-content: center; min-block-size: 100%; color: var(--vfjs-muted); font-size: var(--vfjs-ui-font-size-sm); }
  .vfjs-ui-chat__day { display: flex; align-items: center; gap: var(--vfjs-space-3); margin-block: var(--vfjs-space-3); color: var(--vfjs-ui-chat-day-fg, var(--vfjs-muted)); font-size: var(--vfjs-ui-font-size-xs);
    &::before, &::after { content: ''; flex: 1; border-block-start: var(--vfjs-border-width) solid var(--vfjs-border); }
  }
  .vfjs-ui-chat__msg { position: relative; display: flex; align-items: flex-end; gap: var(--vfjs-space-2); margin-block-end: calc(var(--vfjs-ui-chat-gap, var(--vfjs-space-1)) * var(--vfjs-ui-scale)); outline-offset: calc(var(--vfjs-focus-ring-width) * -1); border-radius: var(--vfjs-radius-md);
    &:not(.vfjs-ui-chat__msg--own).vfjs-ui-chat__msg--last .vfjs-ui-chat__bubble { border-end-start-radius: var(--vfjs-ui-chat-bubble-tail-radius, var(--vfjs-radius-xs)); }
  }
  .vfjs-ui-chat__msg--last { margin-block-end: calc(var(--vfjs-ui-chat-group-gap, var(--vfjs-space-3)) * var(--vfjs-ui-scale)); }
  .vfjs-ui-chat__msg--own { flex-direction: row-reverse;
    .vfjs-ui-chat__main { align-items: flex-end; }
    .vfjs-ui-chat__bubble { background: var(--vfjs-ui-chat-own-bg, var(--vfjs-accent)); color: var(--vfjs-ui-chat-own-fg, var(--vfjs-accent-fg)); border: var(--vfjs-ui-chat-own-border, var(--vfjs-border-width) solid transparent); }
    &.vfjs-ui-chat__msg--last .vfjs-ui-chat__bubble { border-end-end-radius: var(--vfjs-ui-chat-bubble-tail-radius, var(--vfjs-radius-xs)); }
    .vfjs-ui-chat__info { color: var(--vfjs-ui-chat-own-meta-fg, color-mix(in srgb, var(--vfjs-accent-fg) 75%, transparent)); }
    .vfjs-ui-chat__error { color: inherit; }
    .vfjs-ui-chat__actions { inset-inline-end: auto; inset-inline-start: 0; }
  }
  .vfjs-ui-chat__avatar { display: inline-flex; flex: none; inline-size: var(--vfjs-ui-chat-avatar-size, var(--_vfjs-ui-avatar-size-sm)); --vfjs-ui-avatar-size: var(--vfjs-ui-chat-avatar-size, var(--_vfjs-ui-avatar-size-sm)); align-self: flex-start; }
  .vfjs-ui-chat__main { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-inline-size: 0; max-inline-size: var(--vfjs-ui-chat-max-width, 78%); }
  .vfjs-ui-chat__meta { display: flex; gap: var(--vfjs-space-2); margin-block-end: var(--vfjs-space-1); padding-inline: var(--vfjs-space-2); color: var(--vfjs-ui-chat-name-fg, var(--vfjs-muted)); font-size: var(--vfjs-ui-font-size-xs); font-weight: var(--vfjs-font-weight-semibold); }
  .vfjs-ui-chat__bubble { position: relative; display: flex; flex-direction: column; gap: var(--vfjs-space-1); max-inline-size: 100%; box-sizing: border-box; min-inline-size: calc(var(--vfjs-size-unit) * 48);
    padding: calc(var(--vfjs-ui-chat-bubble-padding, var(--vfjs-space-2)) * var(--vfjs-ui-scale)) calc(var(--vfjs-ui-chat-bubble-padding, var(--vfjs-space-2)) * 1.5 * var(--vfjs-ui-scale));
    background: var(--vfjs-ui-chat-bubble-bg, var(--vfjs-surface)); color: var(--vfjs-ui-chat-bubble-fg, var(--vfjs-fg)); border: var(--vfjs-ui-chat-bubble-border, var(--vfjs-border-width) solid transparent); border-radius: var(--vfjs-ui-chat-bubble-radius, var(--vfjs-radius-xl)); overflow-wrap: anywhere; }
  .vfjs-ui-chat__msg--error .vfjs-ui-chat__bubble { box-shadow: 0 0 0 var(--vfjs-border-width-thick) var(--vfjs-ui-chat-error-color, var(--vfjs-danger)); }
  .vfjs-ui-chat__info { display: flex; align-items: center; justify-content: flex-end; gap: var(--vfjs-space-1); color: var(--vfjs-ui-chat-meta-fg, var(--vfjs-muted)); font-size: var(--vfjs-ui-font-size-xs); line-height: var(--vfjs-line-height-none);
    &:empty { display: none; }
  }
  .vfjs-ui-chat__status { display: inline-flex; }
  .vfjs-ui-chat__status--read { color: var(--vfjs-ui-chat-read-color, currentColor); }
  .vfjs-ui-chat__status--error { color: var(--vfjs-ui-chat-error-color, var(--vfjs-danger)); }
  .vfjs-ui-chat__status--sending { opacity: .7; }
  .vfjs-ui-chat__resend { align-self: flex-end; margin-block-start: var(--vfjs-space-1); border: 0; background: transparent; color: var(--vfjs-ui-chat-error-color, var(--vfjs-danger)); font: inherit; font-size: var(--vfjs-ui-font-size-xs); cursor: pointer; text-decoration: underline; }
  .vfjs-ui-chat__error { color: var(--vfjs-ui-chat-error-color, var(--vfjs-danger)); font-size: var(--vfjs-ui-font-size-sm); }
  .vfjs-ui-chat__note { color: var(--vfjs-ui-chat-meta-fg, var(--vfjs-muted)); font-size: var(--vfjs-ui-font-size-xs); font-style: italic; }
  .vfjs-ui-chat__msg--system { justify-content: center; }
  .vfjs-ui-chat__system { max-inline-size: 85%; color: var(--vfjs-ui-chat-system-fg, var(--vfjs-muted)); font-size: var(--vfjs-ui-font-size-sm); text-align: center; }
  .vfjs-ui-chat__quote { display: flex; flex-direction: column; align-items: flex-start; gap: 0; max-inline-size: 100%; padding: var(--vfjs-space-1) var(--vfjs-space-2);
    border: 0; border-inline-start: var(--vfjs-border-width-thick) solid var(--vfjs-ui-chat-quote-bar, color-mix(in srgb, currentColor 55%, transparent)); border-radius: var(--vfjs-radius-sm); background: var(--vfjs-ui-chat-quote-bg, color-mix(in srgb, currentColor 10%, transparent));
    color: inherit; font: inherit; font-size: var(--vfjs-ui-font-size-sm); text-align: start; cursor: pointer; }
  .vfjs-ui-chat__quote-name { font-weight: var(--vfjs-font-weight-semibold); }
  .vfjs-ui-chat__quote-text { display: block; max-inline-size: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .85; }
  .vfjs-ui-chat__caret { display: inline-block; inline-size: calc(var(--vfjs-size-unit) * 7); block-size: var(--vfjs-em); margin-inline-start: var(--vfjs-space-1); vertical-align: text-bottom;
    background: var(--vfjs-ui-chat-caret-color, var(--vfjs-accent)); animation: vfjs-ui-chat-blink calc(var(--vfjs-motion-duration) * 6) steps(2, start) infinite; }
  @keyframes vfjs-ui-chat-blink { to { visibility: hidden; } }
  .vfjs-ui-chat__files { display: flex; flex-wrap: wrap; gap: var(--vfjs-space-1); }
  .vfjs-ui-chat__image { display: block; border-radius: var(--vfjs-radius-md); overflow: hidden; line-height: var(--vfjs-line-height-none); }
  .vfjs-ui-chat__thumb { display: block; max-inline-size: calc(var(--vfjs-ui-chat-thumb-size, calc(var(--vfjs-size-unit) * 160)) * var(--vfjs-ui-scale)); max-block-size: calc(var(--vfjs-ui-chat-thumb-size, calc(var(--vfjs-size-unit) * 160)) * var(--vfjs-ui-scale)); object-fit: cover; }
  .vfjs-ui-chat__file, .vfjs-ui-chat__pending { display: inline-flex; align-items: center; gap: var(--vfjs-space-2); max-inline-size: 100%; padding: var(--vfjs-space-1) var(--vfjs-space-2);
    border-radius: var(--vfjs-radius-md); background: var(--vfjs-ui-chat-file-bg, color-mix(in srgb, currentColor 8%, transparent)); color: inherit; text-decoration: none; font-size: var(--vfjs-ui-font-size-sm); }
  .vfjs-ui-chat__fileicon { display: inline-flex; flex: none; }
  .vfjs-ui-chat__filemain { display: flex; flex-direction: column; min-inline-size: 0; }
  .vfjs-ui-chat__filename { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .vfjs-ui-chat__filesize { opacity: .75; font-size: var(--vfjs-ui-font-size-xs); }
  .vfjs-ui-chat__reactions { display: flex; flex-wrap: wrap; gap: var(--vfjs-space-1); margin-block-start: calc(var(--vfjs-space) * -0.5); padding-inline: var(--vfjs-space-1); position: relative; z-index: calc(var(--vfjs-z-base) + 1); }
  .vfjs-ui-chat__reaction { display: inline-flex; align-items: center; gap: var(--vfjs-space-1); padding: 0 var(--vfjs-space-2); min-block-size: calc(var(--vfjs-size-unit) * 22 * var(--vfjs-ui-scale));
    border: var(--vfjs-border-width) solid var(--vfjs-ui-chat-reaction-border, var(--vfjs-border)); border-radius: var(--vfjs-radius-pill); background: var(--vfjs-ui-chat-reaction-bg, var(--vfjs-surface)); color: var(--vfjs-fg);
    font: inherit; font-size: var(--vfjs-ui-font-size-xs); cursor: pointer;
    &:disabled { cursor: default; }
  }
  .vfjs-ui-chat__reaction--mine { background: var(--vfjs-ui-chat-reaction-mine-bg, var(--vfjs-accent-soft)); border-color: var(--vfjs-ui-chat-reaction-mine-border, var(--vfjs-accent)); }
  .vfjs-ui-chat__emoji { font-size: var(--vfjs-ui-font-size); line-height: var(--vfjs-line-height-none); }
  .vfjs-ui-chat__actions { position: absolute; inset-block-start: calc(var(--vfjs-space) * -3); inset-inline-end: 0; z-index: calc(var(--vfjs-z-base) + 2); display: flex; gap: 0; padding: calc(var(--vfjs-space) * 0.5);
    border: var(--vfjs-border-width) solid var(--vfjs-border); border-radius: var(--vfjs-radius-md); background: var(--vfjs-ui-chat-actions-bg, var(--vfjs-bg)); box-shadow: var(--vfjs-ui-chat-actions-shadow, var(--vfjs-shadow-sm));
    opacity: 0; pointer-events: none; transition: opacity var(--vfjs-motion-duration-fast); }
  .vfjs-ui-chat__msg:hover .vfjs-ui-chat__actions, .vfjs-ui-chat__msg:focus-within .vfjs-ui-chat__actions, .vfjs-ui-chat__actions:has([aria-expanded="true"]) { opacity: 1; pointer-events: auto; }
  .vfjs-ui-chat__action, .vfjs-ui-chat__tool { display: inline-flex; align-items: center; justify-content: center; min-inline-size: var(--_vfjs-ui-target-min); min-block-size: var(--_vfjs-ui-target-min); box-sizing: border-box; padding: calc(var(--vfjs-space) * 0.75 * var(--vfjs-ui-scale)); border: 0; border-radius: var(--vfjs-radius-sm);
    background: transparent; color: var(--vfjs-muted); font: inherit; cursor: pointer; }
  .vfjs-ui-chat__action:hover, .vfjs-ui-chat__tool:hover { background: var(--vfjs-hover-bg); color: var(--vfjs-fg); }
  .vfjs-ui-chat__action {
    &[aria-expanded="true"] { color: var(--vfjs-accent); }
    svg:dir(rtl) { transform: scaleX(-1); }
  }
  .vfjs-ui-chat__picker { display: flex; flex-wrap: wrap; gap: var(--vfjs-space-1); margin-block-start: var(--vfjs-space-1); padding: var(--vfjs-space-1); border: var(--vfjs-border-width) solid var(--vfjs-border);
    border-radius: var(--vfjs-radius-pill); background: var(--vfjs-ui-chat-actions-bg, var(--vfjs-bg)); box-shadow: var(--vfjs-ui-chat-actions-shadow, var(--vfjs-shadow-sm)); }
  .vfjs-ui-chat__pick { border: 0; background: transparent; border-radius: var(--vfjs-radius-full); padding: var(--vfjs-space-1); font-size: var(--vfjs-ui-font-size-lg); line-height: var(--vfjs-line-height-none); cursor: pointer;
    &:hover { background: var(--vfjs-hover-bg); }
  }
  .vfjs-ui-chat__jump { position: absolute; inset-block-end: var(--vfjs-space-3); inset-inline-end: var(--vfjs-space-3); display: inline-flex; align-items: center; gap: var(--vfjs-space-1);
    padding: var(--vfjs-space-1) var(--vfjs-space-3); border: 0; border-radius: var(--vfjs-radius-pill); background: var(--vfjs-accent); color: var(--vfjs-accent-fg); box-shadow: var(--vfjs-shadow-sm);
    font: inherit; font-size: var(--vfjs-ui-font-size-sm); cursor: pointer;
    &[hidden] { display: none; }
  }
  .vfjs-ui-chat__typing { display: flex; align-items: center; gap: var(--vfjs-space-2); padding: 0 calc(var(--_vfjs-ui-chat-padding) * var(--vfjs-ui-scale)) var(--vfjs-space-1); color: var(--vfjs-ui-chat-typing-fg, var(--vfjs-muted)); font-size: var(--vfjs-ui-font-size-xs); }
  .vfjs-ui-chat__typing[hidden], .vfjs-ui-chat__suggestions[hidden], .vfjs-ui-chat__replybar[hidden], .vfjs-ui-chat__tray[hidden], .vfjs-ui-chat__upload[hidden], .vfjs-ui-chat__mentions[hidden], .vfjs-ui-chat__drop[hidden], .vfjs-ui-chat__counter[hidden], .vfjs-ui-chat__composer[hidden] { display: none; }
  .vfjs-ui-chat__dots { display: inline-flex; gap: calc(var(--_vfjs-ui-chat-dot-size) / 2);
    i { inline-size: var(--_vfjs-ui-chat-dot-size); block-size: var(--_vfjs-ui-chat-dot-size); border-radius: var(--vfjs-radius-full); background: currentColor;
      animation: vfjs-ui-chat-dot calc(var(--vfjs-motion-duration) * 7) ease-in-out infinite;
      &:nth-child(2) { animation-delay: calc(var(--vfjs-motion-duration) * 1.2); }
      &:nth-child(3) { animation-delay: calc(var(--vfjs-motion-duration) * 2.4); }
    }
  }
  @keyframes vfjs-ui-chat-dot { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }
  .vfjs-ui-chat__suggestions { display: flex; flex-wrap: wrap; gap: var(--vfjs-space-2); padding: var(--vfjs-space-2) calc(var(--_vfjs-ui-chat-padding) * var(--vfjs-ui-scale)); }
  .vfjs-ui-chat__suggestion { border: var(--vfjs-border-width) solid transparent; cursor: pointer; font: inherit; font-size: var(--vfjs-ui-font-size-sm); }
  .vfjs-ui-chat__composer { position: relative; display: flex; flex-direction: column; gap: var(--vfjs-space-2); flex: none; padding: calc(var(--_vfjs-ui-chat-padding) * 0.75 * var(--vfjs-ui-scale)) calc(var(--_vfjs-ui-chat-padding) * var(--vfjs-ui-scale));
    background: var(--vfjs-ui-chat-composer-bg, var(--vfjs-bg)); border-block-start: var(--vfjs-ui-chat-composer-border, var(--vfjs-border-width) solid var(--vfjs-border)); }
  .vfjs-ui-chat__inputrow { display: flex; align-items: flex-end; gap: var(--vfjs-space-2); }
  .vfjs-ui-chat__input { flex: 1 1 auto; min-inline-size: 0; box-sizing: border-box; resize: none; overflow-y: hidden; margin: 0;
    padding: calc(var(--vfjs-space) * 1.75 * var(--vfjs-ui-scale)) calc(var(--vfjs-space) * 3 * var(--vfjs-ui-scale)); min-block-size: calc(var(--_vfjs-ui-field-height) * var(--vfjs-ui-scale));
    background: var(--vfjs-ui-chat-input-bg, var(--_vfjs-ui-field-bg)); color: var(--vfjs-ui-chat-fg, var(--vfjs-fg)); border: var(--vfjs-ui-chat-input-border, var(--_vfjs-ui-field-border)); border-radius: var(--vfjs-ui-chat-input-radius, var(--vfjs-radius-lg)); font: inherit; line-height: var(--vfjs-line-height);
    &:focus { border-color: var(--vfjs-accent); box-shadow: var(--_vfjs-ui-field-focus-ring); }
    &:disabled { opacity: var(--_vfjs-ui-disabled-opacity); }
  }
  /* U8 (2.4.7): the message field shows the focus ring (a 1 px accent border is not a 3:1 change) */
  .vfjs-ui-chat__input:focus-visible, .vfjs-ui-kanban__add-input:focus-visible { outline: var(--vfjs-focus-ring-width) var(--vfjs-focus-ring-style) var(--vfjs-focus-ring-color, var(--vfjs-accent)); outline-offset: var(--vfjs-focus-ring-offset); }
  .vfjs-ui-chat__attach { flex: none; block-size: calc(var(--_vfjs-ui-field-height) * var(--vfjs-ui-scale));
    &[hidden] { display: none; }
  }
  .vfjs-ui-chat__send { flex: none; display: inline-flex; align-items: center; justify-content: center; inline-size: calc(var(--_vfjs-ui-field-height) * var(--vfjs-ui-scale)); block-size: calc(var(--_vfjs-ui-field-height) * var(--vfjs-ui-scale));
    border: 0; border-radius: var(--vfjs-radius-full); background: var(--vfjs-ui-chat-send-bg, var(--vfjs-accent)); color: var(--vfjs-ui-chat-send-fg, var(--vfjs-accent-fg)); cursor: pointer;
    svg:dir(rtl) { transform: scaleX(-1); }
    &:disabled { opacity: var(--_vfjs-ui-disabled-opacity); cursor: default; }
  }
  .vfjs-ui-chat__send--stop { background: var(--vfjs-ui-chat-stop-bg, var(--vfjs-fg)); color: var(--vfjs-ui-chat-stop-fg, var(--vfjs-bg)); }
  .vfjs-ui-chat__counter { align-self: center; color: var(--vfjs-muted); font-size: var(--vfjs-ui-font-size-xs); font-variant-numeric: tabular-nums; }
  .vfjs-ui-chat__replybar { display: flex; align-items: center; gap: var(--vfjs-space-2); padding: var(--vfjs-space-1) var(--vfjs-space-2); border-inline-start: var(--vfjs-border-width-thick) solid var(--vfjs-accent);
    border-radius: var(--vfjs-radius-sm); background: var(--vfjs-surface); font-size: var(--vfjs-ui-font-size-sm); }
  .vfjs-ui-chat__replyicon { display: inline-flex; color: var(--vfjs-accent);
    svg:dir(rtl) { transform: scaleX(-1); }
  }
  .vfjs-ui-chat__replymain { display: flex; flex-direction: column; flex: 1; min-inline-size: 0; }
  .vfjs-ui-chat__replyto { font-weight: var(--vfjs-font-weight-semibold); }
  .vfjs-ui-chat__tray { display: flex; flex-wrap: wrap; gap: var(--vfjs-space-2); }
  .vfjs-ui-chat__pending { background: var(--vfjs-surface); }
  .vfjs-ui-chat__pending-thumb { inline-size: calc(var(--vfjs-size-unit) * 32); block-size: calc(var(--vfjs-size-unit) * 32); object-fit: cover; border-radius: var(--vfjs-radius-sm); }
  .vfjs-ui-chat__upload .vfjs-ui-upload__drop { display: none; }
  .vfjs-ui-chat__mentions { position: absolute; inset-block-end: 100%; inset-inline-start: calc(var(--_vfjs-ui-chat-padding) * var(--vfjs-ui-scale)); z-index: var(--vfjs-z-dropdown);
    min-inline-size: calc(var(--vfjs-size-unit) * 200); max-block-size: calc(var(--vfjs-size-unit) * 240); overflow-y: auto; padding: var(--vfjs-space-1);
    background: var(--_vfjs-ui-popup-bg); color: var(--_vfjs-ui-popup-fg); border: var(--_vfjs-ui-popup-border); border-radius: var(--_vfjs-ui-popup-radius); box-shadow: var(--vfjs-ui-popup-shadow, var(--vfjs-shadow)); }
  .vfjs-ui-chat__mention { cursor: pointer; }
  .vfjs-ui-chat__drop { position: absolute; inset: var(--vfjs-space-2); z-index: calc(var(--vfjs-z-base) + 3); background: var(--vfjs-ui-chat-drop-bg, color-mix(in srgb, var(--vfjs-accent) 10%, transparent)); border: var(--vfjs-ui-chat-drop-border, var(--vfjs-border-width-thick) dashed var(--vfjs-accent)); border-radius: var(--vfjs-ui-chat-radius, var(--vfjs-radius-lg)); pointer-events: none; }
  .vfjs-ui-chat--disabled .vfjs-ui-chat__feed { opacity: var(--_vfjs-ui-disabled-opacity); }
  .vfjs-ui-aiprompt {
    .vfjs-ui-chat__msg {
      &:not(.vfjs-ui-chat__msg--own) {
        .vfjs-ui-chat__main { max-inline-size: 100%; flex: 1; }
        .vfjs-ui-chat__bubble { background: transparent; padding-inline: 0; border-color: transparent; }
        .vfjs-ui-chat__actions { position: static; opacity: 1; pointer-events: auto; border: 0; box-shadow: none; background: transparent; padding: 0; }
      }
    }
  }

  /* markdown inside messages */
  .vfjs-ui-md { line-height: var(--vfjs-line-height-snug);
    > :first-child { margin-block-start: 0; }
    > :last-child { margin-block-end: 0; }
  }
  .vfjs-ui-md__p, .vfjs-ui-md__h, .vfjs-ui-md__list, .vfjs-ui-md__quote, .vfjs-ui-md__pre, .vfjs-ui-md__table { margin-block: 0 var(--vfjs-space-2); }
  .vfjs-ui-md__h1, .vfjs-ui-md__h2 { font-size: var(--vfjs-ui-font-size-lg); }
  .vfjs-ui-md__list { padding-inline-start: var(--vfjs-space-5); }
  .vfjs-ui-md__quote { margin-inline: 0; padding-inline-start: var(--vfjs-space-2); border-inline-start: var(--vfjs-border-width-thick) solid var(--vfjs-ui-md-quote-bar, color-mix(in srgb, currentColor 40%, transparent)); opacity: .9; }
  .vfjs-ui-md__code { padding: 0 var(--vfjs-space-1); border-radius: var(--vfjs-radius-xs); background: var(--vfjs-ui-md-code-bg, color-mix(in srgb, currentColor 12%, transparent)); font-family: var(--vfjs-font-mono); font-size: var(--vfjs-font-size-code); }
  .vfjs-ui-md__pre { overflow-x: auto; padding: var(--vfjs-space-2); border-radius: var(--vfjs-radius-md); background: var(--vfjs-ui-md-pre-bg, color-mix(in srgb, var(--vfjs-fg) 6%, var(--vfjs-bg))); color: var(--vfjs-ui-md-pre-fg, var(--vfjs-fg)); font-family: var(--vfjs-font-mono); font-size: var(--vfjs-font-size-code); text-align: start;
    code { font: inherit; white-space: pre; }
  }
  .vfjs-ui-md__link { color: var(--vfjs-ui-md-link, inherit); text-decoration: underline; }
  .vfjs-ui-md__mention { padding: 0 var(--vfjs-space-1); border-radius: var(--vfjs-radius-xs); background: var(--vfjs-ui-chat-mention-bg, var(--vfjs-accent-soft)); color: var(--vfjs-ui-chat-mention-fg, var(--_vfjs-ui-accent-text)); font-weight: var(--vfjs-font-weight-medium); }
  .vfjs-ui-chat__msg--own .vfjs-ui-md__mention { background: color-mix(in srgb, currentColor 18%, transparent); color: inherit; }
  .vfjs-ui-md__hr { border: 0; border-block-start: var(--vfjs-border-width) solid var(--vfjs-ui-md-table-border, color-mix(in srgb, currentColor 25%, transparent)); margin-block: var(--vfjs-space-2); }
  .vfjs-ui-md__table { overflow-x: auto;
    table { border-collapse: collapse; font-size: var(--vfjs-ui-font-size-sm); }
    th, td { padding: var(--vfjs-space-1) var(--vfjs-space-2); border: var(--vfjs-border-width) solid var(--vfjs-ui-md-table-border, color-mix(in srgb, currentColor 25%, transparent)); text-align: start; }
  }

  .vfjs {
    /* OTP input */
    /* Segmented control */
    --_vfjs-ui-seg-duration: var(--vfjs-ui-seg-duration, var(--vfjs-motion-duration));
    /* Transfer list */
    /* FileManager */
    --_vfjs-ui-fm-bar-border: var(--vfjs-ui-fm-bar-border, var(--vfjs-border-width) solid var(--vfjs-border));
    --_vfjs-ui-fm-tool-size: var(--vfjs-ui-fm-tool-size, var(--vfjs-control-height));
    --_vfjs-ui-fm-row-height: var(--vfjs-ui-fm-row-height, max(var(--_vfjs-ui-target-min), calc(var(--vfjs-control-height) * var(--vfjs-ui-scale))));
    --_vfjs-ui-fm-row-border: var(--vfjs-ui-fm-row-border, var(--vfjs-border-width) solid color-mix(in srgb, var(--vfjs-border) 55%, transparent));
    --_vfjs-ui-fm-hover-bg: var(--vfjs-ui-fm-hover-bg, var(--_vfjs-ui-item-hover-bg));
    --_vfjs-ui-fm-active-ring: var(--vfjs-ui-fm-active-ring, inset 0 0 0 var(--vfjs-focus-ring-width) var(--vfjs-focus-ring-color, var(--vfjs-accent)));
    --_vfjs-ui-fm-col-name: minmax(calc(var(--vfjs-size-unit) * 120 * var(--vfjs-ui-scale)), 1fr);
    --_vfjs-ui-fm-col-size: calc(var(--vfjs-size-unit) * 96 * var(--vfjs-ui-scale));
    --_vfjs-ui-fm-col-modified: calc(var(--vfjs-size-unit) * 168 * var(--vfjs-ui-scale));
    --_vfjs-ui-fm-col-type: calc(var(--vfjs-size-unit) * 128 * var(--vfjs-ui-scale));
    --_vfjs-ui-fm-col-folder: minmax(calc(var(--vfjs-size-unit) * 100 * var(--vfjs-ui-scale)), 1fr);
    --_vfjs-ui-fm-tile-width: calc(var(--vfjs-size-unit) * 112 * var(--vfjs-ui-scale));
    --_vfjs-ui-fm-tile-height: calc(var(--vfjs-size-unit) * 116 * var(--vfjs-ui-scale));
    --_vfjs-ui-fm-tile-gap: var(--vfjs-space-2);
    --_vfjs-ui-fm-tile-padding: var(--vfjs-space-2);
    --_vfjs-ui-fm-drop-ring: var(--vfjs-ui-fm-drop-ring, inset 0 0 0 var(--vfjs-border-width-thick) var(--vfjs-accent));
    --_vfjs-ui-fm-drop-bg: var(--vfjs-ui-fm-drop-bg, color-mix(in srgb, var(--vfjs-accent) 12%, transparent));
  }

  /* ---------- OTP ---------- */
  .vfjs-ui-otp__box { display: inline-flex; flex-direction: column; gap: var(--vfjs-space-1); }
  .vfjs-ui-otp__cells { display: inline-flex; align-items: center; gap: var(--vfjs-ui-otp-gap, var(--vfjs-space-2)); }
  .vfjs-ui-otp__cell { box-sizing: border-box; inline-size: calc(var(--vfjs-ui-otp-cell-width, calc(var(--vfjs-control-height) * 1.25)) * var(--vfjs-ui-scale)); block-size: calc(var(--vfjs-ui-otp-cell-height, calc(var(--vfjs-control-height) * 1.375)) * var(--vfjs-ui-scale));
    padding: 0; text-align: center; font: inherit; font-family: var(--vfjs-font-mono); font-size: calc(var(--vfjs-ui-otp-font-size, var(--vfjs-font-size-xl)) * var(--vfjs-ui-scale)); font-weight: var(--vfjs-ui-otp-font-weight, var(--vfjs-font-weight-semibold));
    color: var(--vfjs-ui-otp-fg, var(--vfjs-fg)); background: var(--vfjs-ui-otp-bg, var(--_vfjs-ui-field-bg)); border: var(--vfjs-ui-otp-border, var(--_vfjs-ui-field-border)); border-radius: var(--vfjs-ui-otp-radius, var(--_vfjs-ui-field-radius)); caret-color: var(--vfjs-accent);
    outline: 0; transition: border-color var(--vfjs-motion-duration-fast), box-shadow var(--vfjs-motion-duration-fast);
    &::placeholder { color: var(--vfjs-ui-otp-placeholder-fg, var(--vfjs-muted)); opacity: 1; }
    &:focus { border-color: var(--vfjs-ui-otp-focus-border-color, var(--vfjs-accent)); box-shadow: var(--vfjs-ui-otp-focus-ring, var(--_vfjs-ui-field-focus-ring)); }
    &:disabled { opacity: var(--_vfjs-ui-disabled-opacity); cursor: not-allowed; }
  }
  .vfjs-ui-otp__cell--filled { border-color: var(--vfjs-ui-otp-filled-border-color, color-mix(in srgb, var(--vfjs-accent) 55%, var(--_vfjs-ui-control-border))); }
  .vfjs-ui-otp--complete .vfjs-ui-otp__cell { border-color: var(--vfjs-ui-otp-complete-border-color, var(--vfjs-success)); }
  .vfjs-ui-otp--invalid .vfjs-ui-otp__cell, .vfjs-ui-otp__cells.vfjs-ui-field--invalid .vfjs-ui-otp__cell { border-color: var(--_vfjs-ui-invalid-color); }
  .vfjs-ui-otp__sep { display: inline-flex; justify-content: center; min-inline-size: calc(var(--vfjs-ui-otp-group-gap, var(--vfjs-space-4)) - var(--vfjs-ui-otp-gap, var(--vfjs-space-2))); color: var(--vfjs-ui-otp-sep-fg, var(--vfjs-muted)); font-size: var(--vfjs-ui-font-size-lg); }

  /* ---------- Segmented ---------- */
  .vfjs-ui-seg { position: relative; display: inline-flex; align-items: stretch; gap: 0; box-sizing: border-box; padding: var(--vfjs-ui-seg-padding, calc(var(--vfjs-space) * 0.75));
    background: var(--vfjs-ui-seg-bg, color-mix(in srgb, var(--vfjs-fg) 7%, var(--vfjs-bg))); border: var(--vfjs-ui-seg-border, var(--vfjs-border-width) solid transparent); border-radius: var(--vfjs-ui-seg-radius, var(--vfjs-radius)); font-size: var(--vfjs-ui-font-size); max-inline-size: 100%; }
  .vfjs-ui-seg--block { display: flex; inline-size: 100%;
    .vfjs-ui-seg__item { flex: 1 1 0; }
  }
  .vfjs-ui-seg--vertical { flex-direction: column; }
  .vfjs-ui-seg__item { position: relative; z-index: calc(var(--vfjs-z-base) + 1); display: inline-flex; align-items: center; justify-content: center; gap: var(--vfjs-space-1); min-block-size: calc(var(--vfjs-ui-seg-height, var(--vfjs-control-height)) * var(--vfjs-ui-scale) - 2 * var(--vfjs-ui-seg-padding, calc(var(--vfjs-space) * 0.75)));
    padding: 0 calc(var(--vfjs-space) * 3 * var(--vfjs-ui-scale)); border: 0; background: transparent; color: var(--vfjs-ui-seg-fg, var(--_vfjs-ui-subtle-fg)); font: inherit; font-weight: var(--vfjs-ui-seg-font-weight, var(--vfjs-font-weight-medium));
    border-radius: var(--vfjs-ui-seg-thumb-radius, var(--vfjs-radius-md)); cursor: pointer; white-space: nowrap; transition: color var(--vfjs-motion-duration-fast);
    &:hover:not(.vfjs-ui-seg__item--disabled) { color: var(--vfjs-ui-seg-hover-fg, var(--vfjs-fg)); }
    &:focus-visible { outline: var(--vfjs-focus-ring-width) var(--vfjs-focus-ring-style) var(--vfjs-focus-ring-color, var(--vfjs-accent)); outline-offset: calc(var(--vfjs-focus-ring-width) * -1); }
  }
  .vfjs-ui-seg__item--icon { padding: 0 calc(var(--vfjs-space) * 2 * var(--vfjs-ui-scale)); }
  .vfjs-ui-seg__item--on, .vfjs-ui-seg__item--on:hover:not(.vfjs-ui-seg__item--disabled) { color: var(--vfjs-ui-seg-on-fg, var(--vfjs-fg)); }
  .vfjs-ui-seg__item--disabled { opacity: var(--_vfjs-ui-disabled-opacity); cursor: not-allowed; }
  .vfjs-ui-seg--disabled { opacity: var(--_vfjs-ui-disabled-opacity);
    .vfjs-ui-seg__item { cursor: not-allowed; }
  }
  .vfjs-ui-seg__icon { display: inline-flex; }
  .vfjs-ui-seg__thumb { position: absolute; z-index: var(--vfjs-z-base); box-sizing: border-box; background: var(--vfjs-ui-seg-thumb-bg, var(--vfjs-bg)); border: var(--vfjs-ui-seg-thumb-border, var(--vfjs-border-width) solid var(--_vfjs-ui-control-border)); border-radius: var(--vfjs-ui-seg-thumb-radius, var(--vfjs-radius-md));
    box-shadow: var(--vfjs-ui-seg-thumb-shadow, var(--vfjs-shadow-xs)); pointer-events: none;
    &[hidden] { display: none; }
  }
  .vfjs-ui-seg--ready .vfjs-ui-seg__thumb { transition: left var(--_vfjs-ui-seg-duration) var(--vfjs-motion-easing), top var(--_vfjs-ui-seg-duration) var(--vfjs-motion-easing), width var(--_vfjs-ui-seg-duration) var(--vfjs-motion-easing), height var(--_vfjs-ui-seg-duration) var(--vfjs-motion-easing); }

  /* ---------- Transfer list ---------- */
  .vfjs-ui-transfer:not(.vfjs) { display: flex; align-items: stretch; gap: var(--vfjs-ui-transfer-gap, var(--vfjs-space-3)); font-size: var(--vfjs-ui-font-size); }
  .vfjs-ui-transfer__pane { display: flex; flex-direction: column; flex: 1 1 0; min-inline-size: var(--vfjs-ui-transfer-pane-min-width, calc(var(--vfjs-size-unit) * 180)); background: var(--vfjs-ui-transfer-pane-bg, var(--vfjs-bg));
    border: var(--vfjs-ui-transfer-pane-border, var(--vfjs-border-width) solid var(--vfjs-border)); border-radius: var(--vfjs-ui-transfer-pane-radius, var(--vfjs-radius)); overflow: hidden; }
  .vfjs-ui-transfer__head { display: flex; align-items: center; gap: var(--vfjs-space-2); padding: calc(var(--vfjs-space-2) * var(--vfjs-ui-scale)) var(--vfjs-space-3);
    background: var(--vfjs-ui-transfer-head-bg, var(--vfjs-surface)); color: var(--vfjs-ui-transfer-head-fg, var(--vfjs-fg)); border-block-end: var(--vfjs-ui-transfer-pane-border, var(--vfjs-border-width) solid var(--vfjs-border)); }
  .vfjs-ui-transfer__title { flex: 1; min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: var(--vfjs-ui-transfer-head-weight, var(--vfjs-font-weight-semibold)); }
  .vfjs-ui-transfer__count { color: var(--vfjs-ui-transfer-count-fg, var(--_vfjs-ui-subtle-fg)); font-size: var(--vfjs-ui-font-size-sm); font-variant-numeric: tabular-nums; }
  .vfjs-ui-transfer__all { display: inline-flex; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; border-radius: var(--vfjs-radius-sm);
    &:focus-visible { outline: var(--vfjs-focus-ring-width) var(--vfjs-focus-ring-style) var(--vfjs-focus-ring-color, var(--vfjs-accent)); outline-offset: var(--vfjs-focus-ring-offset); }
    &:disabled { cursor: not-allowed; opacity: var(--_vfjs-ui-disabled-opacity); }
  }
  .vfjs-ui-transfer__box--on, .vfjs-ui-transfer__box--mixed { background: var(--vfjs-accent); border-color: var(--vfjs-accent); color: var(--vfjs-accent-fg); }
  .vfjs-ui-transfer__search { margin: var(--vfjs-space-2) var(--vfjs-space-2) 0; inline-size: auto;
    &[hidden] { display: none; }
    input::-webkit-search-cancel-button { cursor: pointer; }
  }
  .vfjs-ui-transfer__list { flex: 1; min-block-size: 0;
    .vfjs-ui-list { box-sizing: border-box; block-size: calc(var(--vfjs-ui-transfer-list-height, calc(var(--vfjs-size-unit) * 240)) * var(--vfjs-ui-scale)); max-height: none; border: 0; border-radius: 0; background: transparent; }
  }
  .vfjs-ui-transfer__actions, .vfjs-ui-transfer__order { display: flex; flex-direction: column; justify-content: center; gap: var(--vfjs-space-2); }
  .vfjs-ui-transfer__order[hidden] { display: none; }
  .vfjs-ui-transfer__btn { inline-size: calc(var(--_vfjs-ui-btn-height) * var(--vfjs-ui-scale)); padding: 0;
    &[hidden] { display: none; }
    svg:dir(rtl) { transform: scaleX(-1); }
  }
  .vfjs-ui-transfer--disabled { opacity: var(--_vfjs-ui-disabled-opacity); }
  @media (max-width: 640px) {
    .vfjs-ui-transfer:not(.vfjs) { flex-direction: column; }
    .vfjs-ui-transfer__actions, .vfjs-ui-transfer__order { flex-direction: row; }
    .vfjs-ui-transfer__actions svg, .vfjs-ui-transfer__order svg { transform: rotate(90deg); }
  }

  /* ---------- FileManager ---------- */
  .vfjs-ui-fm { display: flex; flex-direction: column; box-sizing: border-box; block-size: 100%; min-block-size: 0; overflow: hidden; position: relative;
    background: var(--vfjs-ui-fm-bg, var(--vfjs-bg)); color: var(--vfjs-ui-fm-fg, var(--vfjs-fg)); border: var(--vfjs-ui-fm-border, var(--vfjs-border-width) solid var(--vfjs-border)); border-radius: var(--vfjs-ui-fm-radius, var(--vfjs-radius-lg)); font-size: var(--vfjs-ui-font-size); }
  /* S29: --vfjs-ui-fm-height only while the container has no height of its own; else the container's height exactly */
  .vfjs-auto-height > .vfjs-ui-fm { block-size: var(--vfjs-ui-fm-height, calc(var(--vfjs-size-unit) * 440)); }
  /* S30: the default is also the min-height of the element (core measures it: 0 = switched off -> class
     vfjs-content-height = all files, no own scroll); a height from the layout (class vfjs-fit: explicit, flex / grid
     stretch, min-height only, insets): the file manager fills the element, its files never make the element taller */
  .vfjs-ui-filemanager {
    &.vfjs-auto-height { min-height: var(--vfjs-ui-fm-height, calc(var(--vfjs-size-unit) * 440)); }
    &.vfjs-fit { display: flex; flex-direction: column;
      > .vfjs-ui-fm { flex: 1 1 0; min-block-size: 0; }
    }
  }
  .vfjs-ui-fm--disabled { opacity: var(--_vfjs-ui-disabled-opacity); pointer-events: none; }
  .vfjs-ui-fm__bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--vfjs-ui-fm-gap, var(--vfjs-space-2)); padding: var(--vfjs-space-1) var(--vfjs-space-2); background: var(--vfjs-ui-fm-bar-bg, var(--vfjs-surface)); border-block-end: var(--_vfjs-ui-fm-bar-border); }
  .vfjs-ui-fm__toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: calc(var(--vfjs-space) * 0.5); flex: 1 1 auto; min-inline-size: 0; }
  .vfjs-ui-fm__tool { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; inline-size: max(var(--_vfjs-ui-target-min), calc(var(--_vfjs-ui-fm-tool-size) * var(--vfjs-ui-scale))); block-size: max(var(--_vfjs-ui-target-min), calc(var(--_vfjs-ui-fm-tool-size) * var(--vfjs-ui-scale)));
    padding: 0; border: 0; border-radius: var(--vfjs-radius-md); background: transparent; color: var(--vfjs-ui-fm-tool-fg, var(--vfjs-fg)); cursor: pointer;
    &:hover:not(.vfjs-ui-fm__tool--disabled) { background: var(--vfjs-ui-fm-tool-hover-bg, var(--vfjs-hover-bg)); }
    &[aria-pressed="true"] { background: var(--vfjs-ui-fm-tool-pressed-bg, var(--vfjs-accent-soft)); color: var(--vfjs-ui-fm-tool-pressed-fg, var(--_vfjs-ui-accent-text)); box-shadow: var(--_vfjs-ui-pressed-ring); }
    /* only the direction arrows are mirrored in RTL */
    &[data-cmd="back"] svg:dir(rtl), &[data-cmd="forward"] svg:dir(rtl) { transform: scaleX(-1); }
  }
  .vfjs-ui-fm__tool--disabled { opacity: var(--_vfjs-ui-disabled-opacity); cursor: default;
    /* U8: a disabled tool stays focusable (APG toolbar): its icon stays dim, its focus ring does not */
    &:focus-visible { opacity: 1;
      > * { opacity: var(--_vfjs-ui-disabled-opacity); }
    }
  }
  .vfjs-ui-fm__tool:focus-visible, .vfjs-ui-fm__crumb:focus-visible, .vfjs-ui-fm__pathedit:focus-visible, .vfjs-ui-fm__split:focus-visible {
    outline: var(--vfjs-focus-ring-width) var(--vfjs-focus-ring-style) var(--vfjs-focus-ring-color, var(--vfjs-accent)); outline-offset: calc(var(--vfjs-focus-ring-width) * -1); }
  .vfjs-ui-fm__sep { inline-size: var(--vfjs-border-width); block-size: calc(var(--_vfjs-ui-fm-tool-size) * 0.6 * var(--vfjs-ui-scale)); margin-inline: var(--vfjs-space-1); background: var(--vfjs-border); }
  .vfjs-ui-fm__search { inline-size: calc(var(--vfjs-size-unit) * 200 * var(--vfjs-ui-scale)); flex: 0 1 auto; }
  .vfjs-ui-fm__viewswitch { flex: none; }
  .vfjs-ui-fm__crumbs { display: flex; align-items: center; gap: var(--vfjs-space-1); min-block-size: calc(var(--_vfjs-ui-fm-tool-size) * var(--vfjs-ui-scale)); padding: 0 var(--vfjs-space-2); border-block-end: var(--_vfjs-ui-fm-row-border); cursor: text; }
  .vfjs-ui-fm__crumblist { display: flex; align-items: center; flex: 1; min-inline-size: 0; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
  .vfjs-ui-fm__crumblist[hidden], .vfjs-ui-fm__pathinput[hidden], .vfjs-ui-fm__pathedit[hidden] { display: none; }
  .vfjs-ui-fm__crumbitem { display: inline-flex; align-items: center; flex: none; }
  .vfjs-ui-fm__crumbsep { display: inline-flex; color: var(--vfjs-muted);
    svg:dir(rtl) { transform: scaleX(-1); }
  }
  .vfjs-ui-fm__crumb { display: inline-flex; align-items: center; gap: var(--vfjs-space-1); padding: calc(var(--vfjs-space) * 0.5) var(--vfjs-space-2); border: 0; border-radius: var(--vfjs-radius-md); background: transparent; color: var(--vfjs-muted); font: inherit; cursor: pointer; white-space: nowrap;
    &:hover { background: var(--_vfjs-ui-fm-hover-bg); color: var(--vfjs-fg); }
  }
  .vfjs-ui-fm__crumb--current { color: var(--vfjs-fg); font-weight: var(--vfjs-font-weight-medium); }
  .vfjs-ui-fm__crumbicon { display: inline-flex; color: var(--vfjs-ui-fm-folder-color, var(--vfjs-warning)); }
  .vfjs-ui-fm__pathinput { flex: 1; min-inline-size: 0; block-size: calc(var(--_vfjs-ui-fm-tool-size) * 0.85 * var(--vfjs-ui-scale)); padding: 0 var(--vfjs-space-2); font: inherit; color: var(--vfjs-fg); background: var(--_vfjs-ui-field-bg); border: var(--_vfjs-ui-field-border); border-radius: var(--vfjs-radius-md); outline: 0;
    &:focus { border-color: var(--vfjs-accent); box-shadow: var(--_vfjs-ui-field-focus-ring); }
  }
  .vfjs-ui-fm__pathedit { display: inline-flex; padding: var(--vfjs-space-1); border: 0; border-radius: var(--vfjs-radius-md); background: transparent; color: var(--vfjs-muted); cursor: pointer;
    &:hover { background: var(--_vfjs-ui-fm-hover-bg); color: var(--vfjs-fg); }
  }
  .vfjs-ui-fm__body { display: flex; flex: 1; min-block-size: 0; }
  .vfjs-ui-fm__treepane { flex: none; inline-size: var(--vfjs-ui-fm-tree-width, calc(var(--vfjs-size-unit) * 220)); min-inline-size: 0; display: flex; background: var(--vfjs-ui-fm-tree-bg, transparent); }
  .vfjs-ui-fm__treepane[hidden], .vfjs-ui-fm__split[hidden] { display: none; }
  .vfjs-ui-fm__tree { flex: 1; margin: 0; padding: var(--vfjs-space-1); list-style: none; overflow: auto; outline: 0; }
  .vfjs-ui-fm__tgroup { margin: 0; padding: 0; padding-inline-start: var(--vfjs-ui-fm-tree-indent, calc(var(--vfjs-space) * 4)); list-style: none; }
  .vfjs-ui-fm__tnode { outline: 0;
    &:focus-visible > .vfjs-ui-fm__trow { box-shadow: var(--_vfjs-ui-fm-active-ring); }
    &.vfjs-ui-fm__drop > .vfjs-ui-fm__trow { box-shadow: var(--_vfjs-ui-fm-drop-ring); background: var(--_vfjs-ui-fm-drop-bg); }
  }
  .vfjs-ui-fm__trow { display: flex; align-items: center; gap: var(--vfjs-space-1); min-block-size: max(var(--_vfjs-ui-target-min), calc(var(--vfjs-ui-fm-tree-row-height, max(var(--_vfjs-ui-target-min), calc(var(--vfjs-control-height) * 0.875))) * var(--vfjs-ui-scale))); padding-inline: var(--vfjs-space-1) var(--vfjs-space-2); border-radius: var(--vfjs-radius-md); cursor: pointer; white-space: nowrap;
    &:hover { background: var(--_vfjs-ui-fm-hover-bg); }
  }
  .vfjs-ui-fm__trow--current { background: var(--vfjs-ui-fm-tree-current-bg, var(--vfjs-ui-tree-selected-bg, color-mix(in srgb, var(--vfjs-accent) 16%, transparent))); color: var(--vfjs-ui-fm-tree-current-fg, var(--_vfjs-ui-tree-selected-fg)); font-weight: var(--vfjs-font-weight-medium); }
  .vfjs-ui-fm__ttoggle { display: inline-flex; align-items: center; justify-content: center; flex: none; inline-size: calc(var(--vfjs-size-unit) * 16); color: var(--vfjs-muted); transition: transform var(--vfjs-motion-duration-fast);
    svg:dir(rtl) { transform: scaleX(-1); }
  }
  .vfjs-ui-fm__ttoggle--open { transform: rotate(90deg);
    &:dir(rtl) { transform: rotate(-90deg); }
  }
  .vfjs-ui-fm__ttoggle--busy svg { animation: vfjs-ui-spin var(--vfjs-motion-duration-slow) linear infinite; }
  .vfjs-ui-fm__ticon { display: inline-flex; flex: none; }
  .vfjs-ui-fm__tname { overflow: hidden; text-overflow: ellipsis; }
  .vfjs-ui-fm__split { flex: none; inline-size: var(--vfjs-ui-fm-split-width, calc(var(--vfjs-size-unit) * 6)); margin-inline: calc(var(--vfjs-ui-fm-split-width, calc(var(--vfjs-size-unit) * 6)) / -2); position: relative; z-index: calc(var(--vfjs-z-base) + 1); cursor: col-resize; outline: 0;
    background: linear-gradient(var(--vfjs-ui-fm-split-color, var(--vfjs-border)), var(--vfjs-ui-fm-split-color, var(--vfjs-border))) center / var(--vfjs-border-width) 100% no-repeat;
    &:hover { background-image: linear-gradient(var(--vfjs-ui-fm-split-hover, var(--vfjs-accent)), var(--vfjs-ui-fm-split-hover, var(--vfjs-accent))); background-size: var(--vfjs-border-width-thick) 100%; }
  }
  .vfjs-ui-fm__main { display: flex; flex-direction: column; flex: 1; min-inline-size: 0; min-block-size: 0; }
  .vfjs-ui-fm__view { position: relative; display: flex; flex-direction: column; flex: 1; min-block-size: 0; }
  .vfjs-ui-fm__view--drop { box-shadow: var(--_vfjs-ui-fm-drop-ring); background: var(--_vfjs-ui-fm-drop-bg); }
  .vfjs-ui-fm__grid { display: flex; flex-direction: column; flex: 1; min-block-size: 0; outline: 0; }
  .vfjs-ui-fm__grid:focus-visible, .vfjs-ui-fm__tiles:focus-visible { outline: 0; }
  .vfjs-ui-fm__view--focus.vfjs-ui-fm__view--noactive { box-shadow: var(--_vfjs-ui-fm-active-ring); }
  .vfjs-ui-fm__headgroup { flex: none; }
  .vfjs-ui-fm__headrow, .vfjs-ui-fm__row { display: grid; grid-template-columns: var(--vfjs-ui-fm-cols); align-items: center; }
  .vfjs-ui-fm__headrow { background: var(--vfjs-ui-fm-head-bg, var(--vfjs-bg)); color: var(--vfjs-ui-fm-head-fg, var(--vfjs-muted)); font-size: var(--vfjs-ui-font-size-sm); font-weight: var(--vfjs-ui-fm-head-weight, var(--vfjs-font-weight-semibold)); border-block-end: var(--_vfjs-ui-fm-row-border); }
  .vfjs-ui-fm__hcell { display: flex; align-items: center; gap: var(--vfjs-space-1); min-inline-size: 0; padding: var(--vfjs-space-1) var(--vfjs-space-2); cursor: pointer; user-select: none; white-space: nowrap;
    &:hover { color: var(--vfjs-fg); }
  }
  .vfjs-ui-fm__hcell--sorted { color: var(--vfjs-fg); }
  .vfjs-ui-fm__hcell--active { box-shadow: var(--_vfjs-ui-fm-active-ring); border-radius: var(--vfjs-radius-sm); }
  .vfjs-ui-fm__hlabel { overflow: hidden; text-overflow: ellipsis; }
  .vfjs-ui-fm__sorticon { display: inline-flex; }
  .vfjs-ui-fm__sorticon--desc { transform: rotate(180deg); }
  .vfjs-ui-fm__scroll, .vfjs-ui-fm__tiles { position: relative; flex: 1; min-block-size: 0; overflow: auto; outline: 0; }
  .vfjs-ui-fm__spacer { position: relative; min-block-size: 100%; }
  .vfjs-ui-fm__row { position: absolute; inset-inline: 0; box-sizing: border-box; border-block-end: var(--_vfjs-ui-fm-row-border); cursor: default; user-select: none; }
  .vfjs-ui-fm__row:hover, .vfjs-ui-fm__tile:hover { background: var(--_vfjs-ui-fm-hover-bg); }
  .vfjs-ui-fm__cell { min-inline-size: 0; padding: 0 var(--vfjs-space-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--vfjs-muted); }
  .vfjs-ui-fm__cell--name { display: flex; align-items: center; gap: var(--vfjs-space-2); color: inherit; }
  .vfjs-ui-fm__cell--size { text-align: end; font-variant-numeric: tabular-nums; }
  .vfjs-ui-fm__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .vfjs-ui-fm__icon, .vfjs-ui-fm__thumb { display: inline-flex; flex: none; }
  .vfjs-ui-fm__item--selected {
    &, &:hover { background: var(--vfjs-ui-fm-selected-bg, var(--vfjs-selected-bg)); color: var(--vfjs-ui-fm-selected-fg, var(--_vfjs-ui-accent-text)); box-shadow: var(--vfjs-ui-fm-selected-ring, none); }
    .vfjs-ui-fm__cell { color: inherit; }
    .vfjs-ui-fm__icon { color: inherit; }
  }
  .vfjs-ui-fm__view--focus .vfjs-ui-fm__item--active, .vfjs-ui-fm__view--focus .vfjs-ui-fm__cell--active { box-shadow: var(--_vfjs-ui-fm-active-ring); }
  .vfjs-ui-fm__item--cut .vfjs-ui-fm__icon, .vfjs-ui-fm__item--cut .vfjs-ui-fm__thumb, .vfjs-ui-fm__item--cut .vfjs-ui-fm__name { opacity: var(--vfjs-ui-fm-cut-opacity, .5); }
  .vfjs-ui-fm__drop, .vfjs-ui-fm__drop:hover { box-shadow: var(--_vfjs-ui-fm-drop-ring); background: var(--_vfjs-ui-fm-drop-bg); }
  .vfjs-ui-fm__mark { background: var(--vfjs-ui-fm-mark-bg, color-mix(in srgb, var(--vfjs-accent) 24%, transparent)); color: inherit; border-radius: var(--vfjs-radius-xs); }
  .vfjs-ui-fm__tile { position: absolute; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: var(--vfjs-space-1); padding: var(--vfjs-space-1);
    border-radius: var(--vfjs-ui-fm-tile-radius, var(--vfjs-radius-md)); cursor: default; user-select: none; text-align: center;
    .vfjs-ui-fm__thumb { position: relative; align-items: center; justify-content: center; inline-size: 100%; block-size: var(--vfjs-ui-fm-thumb-height, calc(var(--vfjs-size-unit) * 72 * var(--vfjs-ui-scale))); border-radius: var(--vfjs-radius-md); overflow: hidden; }
  }
  .vfjs-ui-fm__thumb--image { background: var(--vfjs-ui-fm-thumb-bg, color-mix(in srgb, var(--vfjs-fg) 4%, transparent));
    .vfjs-ui-fm__kind { display: none; }
  }
  .vfjs-ui-fm__img { display: block; max-inline-size: 100%; max-block-size: 100%; object-fit: contain; }
  .vfjs-ui-fm__tilename { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; inline-size: 100%; overflow-wrap: anywhere; font-size: var(--vfjs-ui-font-size-sm); line-height: var(--vfjs-line-height-snug);
    .vfjs-ui-fm__name { white-space: normal; }
  }
  .vfjs-ui-fm__state { position: absolute; inset-inline: 0; inset-block-start: calc(var(--_vfjs-ui-fm-row-height) * 2); padding: var(--vfjs-space-4); text-align: center; color: var(--vfjs-ui-fm-state-fg, var(--vfjs-muted)); pointer-events: none;
    &[hidden] { display: none; }
  }
  .vfjs-ui-fm__state--error { color: var(--vfjs-ui-fm-error-fg, var(--vfjs-danger)); }
  .vfjs-ui-fm__marquee { position: absolute; z-index: calc(var(--vfjs-z-base) + 2); box-sizing: border-box; background: var(--vfjs-ui-fm-marquee-bg, color-mix(in srgb, var(--vfjs-accent) 14%, transparent)); border: var(--vfjs-ui-fm-marquee-border, var(--vfjs-border-width) solid var(--vfjs-accent)); pointer-events: none; }
  .vfjs-ui-fm__rename-box { position: absolute; z-index: calc(var(--vfjs-z-base) + 3); }
  .vfjs-ui-fm__rename { box-sizing: border-box; inline-size: 100%; block-size: calc(var(--_vfjs-ui-fm-row-height) * 0.85); padding: 0 var(--vfjs-space-1); font: inherit; color: var(--vfjs-fg); background: var(--vfjs-bg);
    border: var(--vfjs-border-width) solid var(--vfjs-accent); border-radius: var(--vfjs-radius-sm); outline: 0; box-shadow: var(--_vfjs-ui-field-focus-ring);
    &[aria-invalid="true"] { border-color: var(--_vfjs-ui-invalid-color); }
  }
  .vfjs-ui-fm__rename-error { margin-block-start: var(--vfjs-space-1); padding: var(--vfjs-space-1) var(--vfjs-space-2); border-radius: var(--vfjs-radius-sm); background: var(--_vfjs-ui-invalid-color); color: var(--vfjs-danger-fg); font-size: var(--vfjs-ui-font-size-sm); white-space: normal;
    &[hidden] { display: none; }
  }
  .vfjs-ui-fm__status { display: flex; align-items: center; gap: var(--vfjs-space-3); min-block-size: calc(var(--_vfjs-ui-fm-tool-size) * 0.75); padding: 0 var(--vfjs-space-3); border-block-start: var(--_vfjs-ui-fm-bar-border);
    background: var(--vfjs-ui-fm-bar-bg, var(--vfjs-surface)); color: var(--vfjs-ui-fm-status-fg, var(--_vfjs-ui-subtle-fg)); font-size: var(--vfjs-ui-font-size-sm); }
  .vfjs-ui-fm__statustext { flex: 1; min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .vfjs-ui-fm__msg { overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    &[hidden] { display: none; }
  }
  .vfjs-ui-fm__msg--error { color: var(--vfjs-ui-fm-error-fg, var(--vfjs-danger)); }
  .vfjs-ui-fm__preview { flex: none; inline-size: var(--vfjs-ui-fm-preview-width, calc(var(--vfjs-size-unit) * 220)); padding: var(--vfjs-space-3); border-inline-start: var(--_vfjs-ui-fm-bar-border); overflow: auto;
    &[hidden] { display: none; }
  }
  .vfjs-ui-fm__pthumb { display: flex; align-items: center; justify-content: center; block-size: calc(var(--vfjs-size-unit) * 140); border-radius: var(--vfjs-radius-md); background: var(--vfjs-ui-fm-thumb-bg, color-mix(in srgb, var(--vfjs-fg) 4%, transparent)); overflow: hidden; }
  .vfjs-ui-fm__pimg { max-inline-size: 100%; max-block-size: 100%; object-fit: contain; }
  .vfjs-ui-fm__ptitle { margin-block: var(--vfjs-space-2); font-weight: var(--vfjs-font-weight-semibold); overflow-wrap: anywhere; }
  .vfjs-ui-fm__pinfo { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--vfjs-space-1) var(--vfjs-space-2); margin: 0; font-size: var(--vfjs-ui-font-size-sm);
    dt { color: var(--vfjs-muted); }
    dd { margin: 0; overflow-wrap: anywhere; }
  }
  .vfjs-ui-fm__uploads { border-block-start: var(--_vfjs-ui-fm-bar-border); max-block-size: 40%; overflow: auto; padding: var(--vfjs-space-1) var(--vfjs-space-2);
    &[hidden] { display: none; }
  }
  .vfjs-ui-fm__uploadhead { display: flex; align-items: center; justify-content: space-between; gap: var(--vfjs-space-2); font-weight: var(--vfjs-font-weight-medium); }
  .vfjs-ui-fm__uploadclear[hidden] { display: none; }
  .vfjs-ui-fm__uploadlist .vfjs-ui-upload__drop { display: none; }
  .vfjs-ui-fm__menuhost, .vfjs-ui-fm__dialoghost { display: none; }
  .vfjs-ui-fm__ghost { position: fixed; z-index: var(--vfjs-z-drag); pointer-events: none; padding: var(--vfjs-space-1) var(--vfjs-space-2); border-radius: var(--vfjs-radius-md);
    background: var(--vfjs-ui-fm-ghost-bg, var(--vfjs-fg)); color: var(--vfjs-ui-fm-ghost-fg, var(--vfjs-bg)); font-size: var(--vfjs-ui-font-size-sm); box-shadow: var(--vfjs-shadow-lg); white-space: nowrap; }
  .vfjs-ui-fm--dragging, .vfjs-ui-fm--dragging * { cursor: grabbing; }
  .vfjs-ui-fm__confirm { margin: 0; overflow-wrap: anywhere; }
  .vfjs-ui-fm__icon--folder { color: var(--vfjs-ui-fm-folder-color, var(--vfjs-warning)); }
  .vfjs-ui-fm__icon--image { color: var(--vfjs-ui-fm-image-color, var(--vfjs-success)); }
  .vfjs-ui-fm__icon--video { color: var(--vfjs-ui-fm-video-color, var(--vfjs-palette-4)); }
  .vfjs-ui-fm__icon--audio { color: var(--vfjs-ui-fm-audio-color, var(--vfjs-palette-5)); }
  .vfjs-ui-fm__icon--archive { color: var(--vfjs-ui-fm-archive-color, var(--vfjs-palette-6)); }
  .vfjs-ui-fm__icon--pdf { color: var(--vfjs-ui-fm-pdf-color, var(--vfjs-danger)); }
  .vfjs-ui-fm__icon--document { color: var(--vfjs-ui-fm-document-color, var(--vfjs-info)); }
  .vfjs-ui-fm__icon--spreadsheet { color: var(--vfjs-ui-fm-spreadsheet-color, var(--vfjs-success)); }
  .vfjs-ui-fm__icon--presentation { color: var(--vfjs-ui-fm-presentation-color, var(--vfjs-warning)); }
  .vfjs-ui-fm__icon--code { color: var(--vfjs-ui-fm-code-color, var(--vfjs-palette-3)); }
  .vfjs-ui-fm__icon--text, .vfjs-ui-fm__icon--font, .vfjs-ui-fm__icon--file { color: var(--vfjs-ui-fm-file-color, var(--vfjs-muted)); }
  @media (max-width: 560px) {
    .vfjs-ui-fm__treepane, .vfjs-ui-fm__split, .vfjs-ui-fm__preview { display: none; }
    .vfjs-ui-fm__search { inline-size: 100%; }
  }

  /* ---------- U14 variants of U9 / U11 ---------- */
  .vfjs {
    &[data-vfjs-ui-variant="filled"], &.vfjs-ui-variant-filled {
      --vfjs-ui-otp-bg: var(--_vfjs-ui-filled-bg); --vfjs-ui-otp-border: var(--vfjs-border-width) solid transparent; --vfjs-ui-otp-filled-border-color: transparent;
      --vfjs-ui-seg-bg: var(--_vfjs-ui-filled-bg); --vfjs-ui-seg-thumb-bg: var(--_vfjs-ui-filled-accent-bg); --vfjs-ui-seg-on-fg: var(--_vfjs-ui-filled-accent-fg); --vfjs-ui-seg-thumb-shadow: none;
      --vfjs-ui-transfer-pane-bg: var(--_vfjs-ui-filled-bg); --vfjs-ui-transfer-pane-border: var(--vfjs-border-width) solid transparent; --vfjs-ui-transfer-head-bg: color-mix(in srgb, var(--vfjs-fg) 6%, var(--_vfjs-ui-filled-bg));
      --vfjs-ui-fm-bg: var(--_vfjs-ui-filled-bg); --vfjs-ui-fm-border: var(--vfjs-border-width) solid transparent; --vfjs-ui-fm-bar-bg: color-mix(in srgb, var(--vfjs-fg) 5%, var(--_vfjs-ui-filled-bg));
      --vfjs-ui-fm-head-bg: var(--_vfjs-ui-filled-bg); --vfjs-ui-fm-selected-bg: var(--_vfjs-ui-filled-accent-bg); --vfjs-ui-fm-selected-fg: var(--_vfjs-ui-filled-accent-fg);
    }
    &[data-vfjs-ui-variant="outline"], &.vfjs-ui-variant-outline {
      --vfjs-ui-otp-bg: var(--_vfjs-ui-outline-bg); --vfjs-ui-otp-border: var(--vfjs-border-width) solid var(--_vfjs-ui-control-border);
      --vfjs-ui-seg-bg: var(--_vfjs-ui-outline-bg); --vfjs-ui-seg-border: var(--vfjs-border-width) solid var(--_vfjs-ui-outline-border); --vfjs-ui-seg-thumb-bg: transparent;
      --vfjs-ui-seg-thumb-border: var(--vfjs-border-width) solid var(--_vfjs-ui-outline-accent); --vfjs-ui-seg-thumb-shadow: none; --vfjs-ui-seg-on-fg: var(--_vfjs-ui-outline-accent);
      --vfjs-ui-transfer-pane-bg: var(--_vfjs-ui-outline-bg); --vfjs-ui-transfer-pane-border: var(--vfjs-border-width) solid var(--_vfjs-ui-outline-border); --vfjs-ui-transfer-head-bg: transparent;
      --vfjs-ui-fm-bg: var(--_vfjs-ui-outline-bg); --vfjs-ui-fm-border: var(--vfjs-border-width) solid var(--_vfjs-ui-outline-border); --vfjs-ui-fm-bar-bg: transparent; --vfjs-ui-fm-head-bg: transparent;
      --vfjs-ui-fm-selected-bg: transparent; --vfjs-ui-fm-selected-fg: var(--_vfjs-ui-outline-accent); --vfjs-ui-fm-selected-ring: inset 0 0 0 var(--vfjs-border-width) var(--_vfjs-ui-outline-accent);
    }
    &[data-vfjs-ui-variant="ghost"], &.vfjs-ui-variant-ghost {
      --vfjs-ui-otp-bg: var(--_vfjs-ui-ghost-bg); --vfjs-ui-otp-border: var(--vfjs-border-width) solid transparent; --vfjs-ui-otp-radius: 0;
      --vfjs-ui-seg-bg: var(--_vfjs-ui-ghost-bg); --vfjs-ui-seg-thumb-bg: var(--_vfjs-ui-ghost-accent-bg); --vfjs-ui-seg-thumb-shadow: none; --vfjs-ui-seg-thumb-border: var(--vfjs-border-width) solid var(--_vfjs-ui-ghost-accent); --vfjs-ui-seg-on-fg: var(--_vfjs-ui-ghost-accent);
      --vfjs-ui-transfer-pane-bg: var(--_vfjs-ui-ghost-bg); --vfjs-ui-transfer-pane-border: var(--vfjs-border-width) solid transparent; --vfjs-ui-transfer-head-bg: transparent;
      --vfjs-ui-fm-bg: var(--_vfjs-ui-ghost-bg); --vfjs-ui-fm-border: var(--vfjs-border-width) solid transparent; --vfjs-ui-fm-bar-bg: transparent; --vfjs-ui-fm-head-bg: transparent;
      --vfjs-ui-fm-selected-bg: var(--_vfjs-ui-ghost-accent-bg); --vfjs-ui-fm-selected-fg: var(--_vfjs-ui-ghost-accent);
    }
    &[data-vfjs-ui-variant="ghost"] .vfjs-ui-otp__cell, &.vfjs-ui-variant-ghost .vfjs-ui-otp__cell { border-block-end-color: var(--_vfjs-ui-control-border); }
  }

  .vfjs {
    /* Signature pad */
    --_vfjs-ui-sign-bg: var(--vfjs-ui-sign-bg, var(--_vfjs-ui-field-bg));
    --_vfjs-ui-sign-pen: var(--vfjs-fg);
    --_vfjs-ui-sign-pen-width: calc(var(--vfjs-size-unit) * 2.5 * var(--vfjs-ui-scale));
    --_vfjs-ui-sign-export-bg: var(--vfjs-white);
    --_vfjs-ui-sign-btn-size: var(--vfjs-ui-sign-btn-size, max(var(--_vfjs-ui-target-min), calc(var(--vfjs-control-height) * var(--vfjs-ui-scale))));
    /* QR code / Barcode */
    --_vfjs-ui-code-fg: var(--vfjs-ui-code-fg, var(--vfjs-black));
    --_vfjs-ui-code-bg: var(--vfjs-ui-code-bg, var(--vfjs-white));
    --_vfjs-ui-code-module: calc(var(--vfjs-size-unit) * 4 * var(--vfjs-ui-scale));
    --_vfjs-ui-barcode-module: calc(var(--vfjs-size-unit) * 2 * var(--vfjs-ui-scale));
    --_vfjs-ui-barcode-height: calc(var(--vfjs-size-unit) * 64 * var(--vfjs-ui-scale));
    --_vfjs-ui-barcode-font: var(--vfjs-ui-barcode-font, var(--vfjs-font-mono));
    --_vfjs-ui-barcode-font-size: var(--vfjs-ui-font-size);
    /* Image editor */
    /* S30: width / height when that default is 0 (class vfjs-content-height: the image scrolls / zooms inside) */
    --_vfjs-ui-imged-bar-border: var(--vfjs-ui-imged-bar-border, var(--vfjs-border-width) solid var(--vfjs-border));
    --_vfjs-ui-imged-tool-size: var(--vfjs-ui-imged-tool-size, max(var(--_vfjs-ui-target-min), calc(var(--vfjs-control-height) * var(--vfjs-ui-scale))));
    --_vfjs-ui-imged-crop-grid: var(--vfjs-ui-imged-crop-grid, color-mix(in srgb, var(--vfjs-white) 45%, transparent));
    --_vfjs-ui-imged-handle-size: var(--vfjs-ui-imged-handle-size, calc(var(--vfjs-size-unit) * 12));
    --_vfjs-ui-imged-text-font: var(--vfjs-ui-imged-text-font, var(--vfjs-font));
    --_vfjs-ui-imged-swatch-size: var(--vfjs-ui-imged-swatch-size, calc(var(--vfjs-size-unit) * 22 * var(--vfjs-ui-scale)));
    --_vfjs-ui-imged-export-bg: var(--vfjs-white);
    --_vfjs-ui-imged-color-0: var(--vfjs-red-500);
    --_vfjs-ui-imged-color-1: var(--vfjs-amber-400);
    --_vfjs-ui-imged-color-2: var(--vfjs-green-500);
    --_vfjs-ui-imged-color-3: var(--vfjs-blue-500);
    --_vfjs-ui-imged-color-4: var(--vfjs-violet-500);
    --_vfjs-ui-imged-color-5: var(--vfjs-pink-500);
    --_vfjs-ui-imged-color-6: var(--vfjs-white);
    --_vfjs-ui-imged-color-7: var(--vfjs-black);
  }

  /* ---------- Signature pad ---------- */
  .vfjs-ui-sign { display: flex; flex-direction: column; gap: var(--vfjs-space-1); inline-size: 100%; }
  .vfjs-ui-sign__pad { position: relative; box-sizing: border-box; block-size: var(--vfjs-ui-sign-height, calc(var(--vfjs-size-unit) * 160 * var(--vfjs-ui-scale))); background: var(--_vfjs-ui-sign-bg);
    border: var(--vfjs-ui-sign-border, var(--_vfjs-ui-field-border)); border-radius: var(--vfjs-ui-sign-radius, var(--_vfjs-ui-field-radius)); overflow: hidden; touch-action: none; cursor: crosshair; user-select: none;
    &:focus-visible { outline: var(--vfjs-focus-ring-width) var(--vfjs-focus-ring-style) var(--vfjs-focus-ring-color, var(--vfjs-accent)); outline-offset: var(--vfjs-focus-ring-offset); }
    &.vfjs-ui-field--invalid { border-color: var(--_vfjs-ui-invalid-color); }
  }
  .vfjs-ui-sign__canvas { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; display: block; }
  .vfjs-ui-sign__line { position: absolute; inset-inline: var(--vfjs-space-4); inset-block-end: 25%; border-block-end: var(--vfjs-ui-sign-line, var(--vfjs-border-width) dashed var(--vfjs-border)); pointer-events: none; }
  .vfjs-ui-sign__x { position: absolute; inset-inline-start: 0; inset-block-end: calc(var(--vfjs-space) * 0.5); color: var(--vfjs-ui-sign-guide-fg, var(--vfjs-muted)); font-size: var(--vfjs-ui-font-size-lg); line-height: var(--vfjs-line-height-none); }
  .vfjs-ui-sign__placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--vfjs-ui-sign-guide-fg, var(--vfjs-muted)); font-size: var(--vfjs-ui-font-size); pointer-events: none; }
  .vfjs-ui-sign__placeholder[hidden], .vfjs-ui-sign__line[hidden], .vfjs-ui-sign__bar[hidden] { display: none; }
  .vfjs-ui-sign__bar { display: flex; justify-content: flex-end; gap: var(--vfjs-space-1); }
  .vfjs-ui-sign__btn { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; inline-size: var(--_vfjs-ui-sign-btn-size); block-size: var(--_vfjs-ui-sign-btn-size);
    padding: 0; border: 0; border-radius: var(--vfjs-radius-md); background: transparent; color: var(--vfjs-ui-sign-btn-fg, var(--vfjs-fg)); cursor: pointer;
    &:hover:not([aria-disabled="true"]) { background: var(--vfjs-ui-sign-btn-hover-bg, var(--vfjs-hover-bg)); }
    &[aria-disabled="true"] { opacity: var(--_vfjs-ui-disabled-opacity); cursor: default; }
    &:focus-visible { outline: var(--vfjs-focus-ring-width) var(--vfjs-focus-ring-style) var(--vfjs-focus-ring-color, var(--vfjs-accent)); outline-offset: calc(var(--vfjs-focus-ring-width) * -1); }
  }
  .vfjs-ui-sign--disabled .vfjs-ui-sign__pad { opacity: var(--_vfjs-ui-disabled-opacity); cursor: not-allowed; }
  .vfjs-ui-sign--readonly .vfjs-ui-sign__pad { cursor: default; }

  /* ---------- QR code / Barcode ---------- */
  .vfjs-ui-code { display: inline-flex; box-sizing: border-box; max-inline-size: 100%; padding: var(--vfjs-ui-code-padding, 0); background: var(--vfjs-ui-code-box-bg, transparent);
    border: var(--vfjs-ui-code-border, 0 solid transparent); border-radius: var(--vfjs-ui-code-radius, 0); line-height: var(--vfjs-line-height-none); }
  .vfjs-ui-code__svg, .vfjs-ui-code__canvas { display: block; max-inline-size: 100%; block-size: auto; }
  .vfjs-ui-code__fg { fill: var(--_vfjs-ui-code-fg); }
  .vfjs-ui-code__bg { fill: var(--_vfjs-ui-code-bg); }
  .vfjs-ui-code__text { fill: var(--_vfjs-ui-code-fg); font-family: var(--_vfjs-ui-barcode-font); }
  .vfjs-ui-code__error { color: var(--_vfjs-ui-invalid-color); font-size: var(--vfjs-ui-font-size); line-height: var(--vfjs-line-height); }

  /* ---------- Image editor ---------- */
  .vfjs-ui-imged { display: flex; flex-direction: column; box-sizing: border-box; block-size: 100%; background: var(--vfjs-ui-imged-bg, var(--vfjs-bg)); color: var(--vfjs-fg);
    border: var(--vfjs-ui-imged-border, var(--vfjs-border-width) solid var(--vfjs-border)); border-radius: var(--vfjs-ui-imged-radius, var(--vfjs-radius-lg)); overflow: hidden; font-size: var(--vfjs-ui-font-size);
    &[data-tool="brush"] .vfjs-ui-imged__wrap, &[data-tool="arrow"] .vfjs-ui-imged__wrap, &[data-tool="rect"] .vfjs-ui-imged__wrap, &[data-tool="ellipse"] .vfjs-ui-imged__wrap, &[data-tool="blur"] .vfjs-ui-imged__wrap { cursor: crosshair; }
    &[data-tool="text"] .vfjs-ui-imged__wrap { cursor: text; }
  }
  /* S29: --vfjs-ui-imged-height only while the container has no height of its own; else the container's height exactly */
  .vfjs-auto-height > .vfjs-ui-imged { block-size: var(--vfjs-ui-imged-height, calc(var(--vfjs-size-unit) * 520)); }
  /* S30: the default is also the min-height of the element (core measures it: 0 = switched off -> class
     vfjs-content-height: the height follows the width, like a <canvas>); a height from the layout (class vfjs-fit:
     explicit, flex / grid stretch, min-height only, insets): the editor fills the element without percentages */
  .vfjs-ui-imageeditor {
    &.vfjs-auto-height { min-height: var(--vfjs-ui-imged-height, calc(var(--vfjs-size-unit) * 520)); }
    &.vfjs-content-height { contain: size; aspect-ratio: var(--vfjs-ui-imged-aspect-ratio, var(--vfjs-aspect-ratio)); }
    &:is(.vfjs-fit, .vfjs-content-height) { display: flex; flex-direction: column;
      > .vfjs-ui-imged { flex: 1 1 0; min-block-size: 0; }
    }
  }
  .vfjs-ui-imged__toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: calc(var(--vfjs-space) * 0.5); padding: var(--vfjs-space-1) var(--vfjs-space-2);
    background: var(--vfjs-ui-imged-bar-bg, var(--vfjs-surface)); border-block-end: var(--_vfjs-ui-imged-bar-border); }
  .vfjs-ui-imged__tool { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; inline-size: var(--_vfjs-ui-imged-tool-size); block-size: var(--_vfjs-ui-imged-tool-size);
    padding: 0; border: 0; border-radius: var(--vfjs-radius-md); background: transparent; color: var(--vfjs-ui-imged-tool-fg, var(--vfjs-fg)); cursor: pointer;
    &:hover:not([aria-disabled="true"]) { background: var(--vfjs-ui-imged-tool-hover-bg, var(--vfjs-hover-bg)); }
    &[aria-pressed="true"] { background: var(--vfjs-ui-imged-tool-pressed-bg, var(--vfjs-accent-soft)); color: var(--vfjs-ui-imged-tool-pressed-fg, var(--_vfjs-ui-accent-text)); box-shadow: var(--_vfjs-ui-pressed-ring); }
    &[aria-disabled="true"] { opacity: var(--_vfjs-ui-disabled-opacity); cursor: default;
      &:focus-visible { opacity: 1;
        > * { opacity: var(--_vfjs-ui-disabled-opacity); }
      }
    }
  }
  .vfjs-ui-imged__tool:focus-visible, .vfjs-ui-imged__hitem:focus-visible, .vfjs-ui-imged__swatch:focus-visible {
    outline: var(--vfjs-focus-ring-width) var(--vfjs-focus-ring-style) var(--vfjs-focus-ring-color, var(--vfjs-accent)); outline-offset: calc(var(--vfjs-focus-ring-width) * -1); }
  .vfjs-ui-imged__sep { inline-size: var(--vfjs-border-width); block-size: calc(var(--_vfjs-ui-imged-tool-size) * 0.6); margin-inline: var(--vfjs-space-1); background: var(--vfjs-border); }
  .vfjs-ui-imged__body { flex: 1 1 auto; display: flex; min-block-size: 0; }
  .vfjs-ui-imged__stage { position: relative; flex: 1 1 auto; min-inline-size: 0; overflow: auto; display: grid; place-items: safe center; background: var(--vfjs-ui-imged-stage-bg, color-mix(in srgb, var(--vfjs-fg) 6%, var(--vfjs-bg)));
    &:focus-visible { outline: var(--vfjs-focus-ring-width) var(--vfjs-focus-ring-style) var(--vfjs-focus-ring-color, var(--vfjs-accent)); outline-offset: calc(var(--vfjs-focus-ring-width) * -1); }
  }
  .vfjs-ui-imged__stage--drop { box-shadow: inset 0 0 0 var(--vfjs-border-width-thick) var(--vfjs-accent); }
  .vfjs-ui-imged__wrap { position: relative; margin: var(--vfjs-space-4); overflow: hidden; touch-action: none; box-shadow: var(--vfjs-ui-imged-shadow, var(--vfjs-shadow-sm));
    background: repeating-conic-gradient(var(--vfjs-ui-imged-checker-a, color-mix(in srgb, var(--vfjs-fg) 8%, var(--vfjs-bg))) 0% 25%, var(--vfjs-ui-imged-checker-b, var(--vfjs-bg)) 0% 50%) 0 0 / var(--vfjs-ui-imged-checker-size, calc(var(--vfjs-size-unit) * 16)) var(--vfjs-ui-imged-checker-size, calc(var(--vfjs-size-unit) * 16)); }
  .vfjs-ui-imged__wrap[hidden], .vfjs-ui-imged__empty[hidden], .vfjs-ui-imged__history[hidden], .vfjs-ui-imged__panel[hidden], .vfjs-ui-imged__crop[hidden], .vfjs-ui-imged__sel[hidden] { display: none; }
  .vfjs-ui-imged__canvas { display: block; }
  .vfjs-ui-imged__crop { position: absolute; box-sizing: border-box; outline: var(--vfjs-ui-imged-crop-border, var(--vfjs-border-width) solid var(--vfjs-white)); box-shadow: 0 0 0 calc(100vw + 100vh) var(--vfjs-ui-imged-crop-shade, color-mix(in srgb, var(--vfjs-black) 50%, transparent)); cursor: move;
    background-image: linear-gradient(var(--_vfjs-ui-imged-crop-grid), var(--_vfjs-ui-imged-crop-grid)), linear-gradient(var(--_vfjs-ui-imged-crop-grid), var(--_vfjs-ui-imged-crop-grid)),
      linear-gradient(var(--_vfjs-ui-imged-crop-grid), var(--_vfjs-ui-imged-crop-grid)), linear-gradient(var(--_vfjs-ui-imged-crop-grid), var(--_vfjs-ui-imged-crop-grid));
    background-size: var(--vfjs-border-width) 100%, var(--vfjs-border-width) 100%, 100% var(--vfjs-border-width), 100% var(--vfjs-border-width);
    background-position: 33.333% 0, 66.667% 0, 0 33.333%, 0 66.667%; background-repeat: no-repeat;
    &:focus-visible { outline: var(--vfjs-focus-ring-width) var(--vfjs-focus-ring-style) var(--vfjs-focus-ring-color, var(--vfjs-accent)); }
  }
  .vfjs-ui-imged__handle { position: absolute; box-sizing: border-box; inline-size: var(--_vfjs-ui-imged-handle-size); block-size: var(--_vfjs-ui-imged-handle-size);
    background: var(--vfjs-ui-imged-handle-bg, var(--vfjs-white)); border: var(--vfjs-ui-imged-handle-border, var(--vfjs-border-width) solid var(--vfjs-black)); }
  .vfjs-ui-imged__handle--nw, .vfjs-ui-imged__handle--n, .vfjs-ui-imged__handle--ne { top: 0; }
  .vfjs-ui-imged__handle--sw, .vfjs-ui-imged__handle--s, .vfjs-ui-imged__handle--se { bottom: 0; }
  .vfjs-ui-imged__handle--e, .vfjs-ui-imged__handle--w { top: calc(50% - var(--_vfjs-ui-imged-handle-size) / 2); }
  .vfjs-ui-imged__handle--n, .vfjs-ui-imged__handle--s { left: calc(50% - var(--_vfjs-ui-imged-handle-size) / 2); /* physical: the frame is placed in physical px */ }
  .vfjs-ui-imged__handle--nw, .vfjs-ui-imged__handle--w, .vfjs-ui-imged__handle--sw { left: 0; /* physical: the west handles of the frame */ }
  .vfjs-ui-imged__handle--ne, .vfjs-ui-imged__handle--e, .vfjs-ui-imged__handle--se { right: 0; /* physical: the east handles of the frame */ }
  .vfjs-ui-imged__handle--nw, .vfjs-ui-imged__handle--se { cursor: nwse-resize; }
  .vfjs-ui-imged__handle--ne, .vfjs-ui-imged__handle--sw { cursor: nesw-resize; }
  .vfjs-ui-imged__handle--n, .vfjs-ui-imged__handle--s { cursor: ns-resize; }
  .vfjs-ui-imged__handle--e, .vfjs-ui-imged__handle--w { cursor: ew-resize; }
  .vfjs-ui-imged__sel { position: absolute; box-sizing: border-box; outline: var(--vfjs-ui-imged-sel-outline, var(--vfjs-border-width-thick) dashed var(--vfjs-accent)); pointer-events: none; }
  .vfjs-ui-imged__textedit { position: absolute; box-sizing: content-box; min-inline-size: calc(var(--vfjs-size-unit) * 80); margin: 0; padding: 0; resize: none; overflow: hidden;
    background: var(--vfjs-ui-imged-text-bg, color-mix(in srgb, var(--vfjs-bg) 70%, transparent)); border: var(--vfjs-border-width) dashed var(--vfjs-accent); outline: 0; font-family: var(--_vfjs-ui-imged-text-font); line-height: var(--vfjs-line-height-tight); }
  .vfjs-ui-imged__empty { display: flex; flex-direction: column; align-items: center; gap: var(--vfjs-space-3); padding: var(--vfjs-space-6); color: var(--vfjs-muted); text-align: center; }
  .vfjs-ui-imged__empty-icon { color: var(--vfjs-muted); }
  .vfjs-ui-imged__history { flex: none; box-sizing: border-box; inline-size: var(--vfjs-ui-imged-history-width, calc(var(--vfjs-size-unit) * 180)); margin: 0; padding: var(--vfjs-space-2); list-style: none; overflow: auto;
    background: var(--vfjs-ui-imged-bar-bg, var(--vfjs-surface)); border-inline-start: var(--_vfjs-ui-imged-bar-border); }
  .vfjs-ui-imged__hitem { display: block; box-sizing: border-box; inline-size: 100%; padding: var(--vfjs-space-1) var(--vfjs-space-2); border: 0; border-radius: var(--vfjs-radius-sm);
    background: transparent; color: inherit; font: inherit; text-align: start; cursor: pointer;
    &:hover { background: var(--vfjs-ui-imged-tool-hover-bg, var(--vfjs-hover-bg)); }
  }
  .vfjs-ui-imged__hitem--current { background: var(--vfjs-ui-imged-tool-pressed-bg, var(--vfjs-accent-soft)); color: var(--vfjs-ui-imged-tool-pressed-fg, var(--_vfjs-ui-accent-text)); }
  .vfjs-ui-imged__hitem--undone { opacity: var(--_vfjs-ui-disabled-opacity); }
  .vfjs-ui-imged__panel { display: flex; flex-wrap: wrap; align-items: center; gap: var(--vfjs-space-2) var(--vfjs-space-4); padding: var(--vfjs-space-2) var(--vfjs-space-3);
    min-block-size: var(--_vfjs-ui-imged-tool-size); background: var(--vfjs-ui-imged-bar-bg, var(--vfjs-surface)); border-block-start: var(--_vfjs-ui-imged-bar-border); }
  .vfjs-ui-imged__field, .vfjs-ui-imged__check { display: inline-flex; align-items: center; gap: var(--vfjs-space-2); }
  .vfjs-ui-imged__field[hidden] { display: none; }
  .vfjs-ui-imged__flabel, .vfjs-ui-imged__info, .vfjs-ui-imged__unit { color: var(--_vfjs-ui-subtle-fg); }
  .vfjs-ui-imged__range { inline-size: var(--vfjs-ui-imged-range-width, calc(var(--vfjs-size-unit) * 120)); accent-color: var(--vfjs-accent); }
  .vfjs-ui-imged__out { min-inline-size: calc(var(--vfjs-size-unit) * 34); font-variant-numeric: tabular-nums; text-align: end; }
  .vfjs-ui-imged__select, .vfjs-ui-imged__num { box-sizing: border-box; block-size: var(--vfjs-ui-imged-input-height, calc(var(--vfjs-control-height) * var(--vfjs-ui-scale))); padding-inline: var(--vfjs-space-2); border: var(--_vfjs-ui-field-border);
    border-radius: var(--_vfjs-ui-field-radius); background: var(--_vfjs-ui-field-bg); color: var(--vfjs-fg); font: inherit; }
  .vfjs-ui-imged__num { inline-size: var(--vfjs-ui-imged-input-width, calc(var(--vfjs-size-unit) * 84)); }
  .vfjs-ui-imged__pbtn--icon { padding: 0; inline-size: var(--vfjs-ui-imged-input-height, calc(var(--vfjs-control-height) * var(--vfjs-ui-scale))); }
  .vfjs-ui-imged__swatches { display: inline-flex; flex-wrap: wrap; gap: var(--vfjs-space-1); }
  .vfjs-ui-imged__swatch { box-sizing: border-box; inline-size: var(--_vfjs-ui-imged-swatch-size); block-size: var(--_vfjs-ui-imged-swatch-size); padding: 0; border-radius: 50%;
    border: var(--vfjs-border-width) solid var(--vfjs-border); background: var(--vfjs-ui-imged-swatch, var(--vfjs-accent)); cursor: pointer;
    &[aria-checked="true"] { box-shadow: 0 0 0 var(--vfjs-border-width-thick) var(--vfjs-bg), 0 0 0 calc(var(--vfjs-border-width-thick) * 2) var(--vfjs-accent); }
  }
  .vfjs-ui-imged__status { padding: var(--vfjs-space-1) var(--vfjs-space-3); font-size: var(--vfjs-ui-font-size-sm); color: var(--vfjs-muted); border-block-start: var(--_vfjs-ui-imged-bar-border);
    &:empty { display: none; }
  }
  .vfjs-ui-imged__file { display: none; }
  @media (max-width: 560px) {
    .vfjs-ui-imged__history { display: none; }
  }

  /* ---------- U14 variants of U10 / U12 ---------- */
  .vfjs {
    &[data-vfjs-ui-variant="filled"], &.vfjs-ui-variant-filled {
      --vfjs-ui-sign-bg: var(--_vfjs-ui-filled-bg); --vfjs-ui-sign-border: var(--vfjs-border-width) solid transparent;
      --vfjs-ui-code-box-bg: var(--_vfjs-ui-filled-bg); --vfjs-ui-code-padding: var(--vfjs-space-2); --vfjs-ui-code-radius: var(--vfjs-radius);
      --vfjs-ui-imged-bg: var(--_vfjs-ui-filled-bg); --vfjs-ui-imged-border: var(--vfjs-border-width) solid transparent; --vfjs-ui-imged-bar-bg: color-mix(in srgb, var(--vfjs-fg) 5%, var(--_vfjs-ui-filled-bg));
      --vfjs-ui-imged-tool-pressed-bg: var(--_vfjs-ui-filled-accent-bg); --vfjs-ui-imged-tool-pressed-fg: var(--_vfjs-ui-filled-accent-fg);
    }
    &[data-vfjs-ui-variant="outline"], &.vfjs-ui-variant-outline {
      --vfjs-ui-sign-bg: var(--_vfjs-ui-outline-bg); --vfjs-ui-sign-border: var(--vfjs-border-width) solid var(--_vfjs-ui-outline-border);
      --vfjs-ui-code-border: var(--vfjs-border-width) solid var(--_vfjs-ui-outline-border); --vfjs-ui-code-padding: var(--vfjs-space-2); --vfjs-ui-code-radius: var(--vfjs-radius);
      --vfjs-ui-imged-bg: var(--_vfjs-ui-outline-bg); --vfjs-ui-imged-border: var(--vfjs-border-width) solid var(--_vfjs-ui-outline-border); --vfjs-ui-imged-bar-bg: transparent;
      --vfjs-ui-imged-tool-pressed-bg: transparent; --vfjs-ui-imged-tool-pressed-fg: var(--_vfjs-ui-outline-accent);
    }
    &[data-vfjs-ui-variant="ghost"], &.vfjs-ui-variant-ghost {
      --vfjs-ui-sign-bg: var(--_vfjs-ui-ghost-bg); --vfjs-ui-sign-border: var(--vfjs-border-width) solid transparent;
      --vfjs-ui-code-box-bg: var(--_vfjs-ui-ghost-bg); --vfjs-ui-code-padding: var(--vfjs-space-1);
      --vfjs-ui-imged-bg: var(--_vfjs-ui-ghost-bg); --vfjs-ui-imged-border: var(--vfjs-border-width) solid transparent; --vfjs-ui-imged-bar-bg: transparent;
      --vfjs-ui-imged-tool-pressed-bg: var(--_vfjs-ui-ghost-accent-bg); --vfjs-ui-imged-tool-pressed-fg: var(--_vfjs-ui-ghost-accent);
    }
    &[data-vfjs-ui-variant="ghost"] .vfjs-ui-sign__pad, &.vfjs-ui-variant-ghost .vfjs-ui-sign__pad { border-block-end-color: var(--_vfjs-ui-outline-border); }
    &[data-vfjs-ui-variant="outline"] .vfjs-ui-imged__tool[aria-pressed="true"], &.vfjs-ui-variant-outline .vfjs-ui-imged__tool[aria-pressed="true"] { box-shadow: inset 0 0 0 var(--vfjs-border-width) var(--_vfjs-ui-outline-accent); }
  }

  .vfjs {
    /* U17 (2.5.8): rows / tools / tabs never under --vfjs-ui-target-min (compact density x size s) */
    --_vfjs-ui-sheet-row-height: var(--vfjs-ui-sheet-row-height, max(var(--_vfjs-ui-target-min), calc(var(--vfjs-size-unit) * 24 * var(--vfjs-density) * var(--vfjs-theme-density))));
    --_vfjs-ui-sheet-col-width: calc(var(--vfjs-size-unit) * 96);
    --_vfjs-ui-sheet-rowhead-width: calc(var(--vfjs-size-unit) * 44);
    --_vfjs-ui-sheet-grid-line: var(--vfjs-ui-sheet-grid-line, color-mix(in srgb, var(--vfjs-border) 70%, transparent));
    --_vfjs-ui-sheet-grid-line-width: var(--vfjs-ui-sheet-grid-line-width, var(--vfjs-border-width));
    --_vfjs-ui-sheet-bar-border: var(--vfjs-ui-sheet-bar-border, var(--vfjs-border-width) solid var(--vfjs-border));
    --_vfjs-ui-sheet-tool-size: var(--vfjs-ui-sheet-tool-size, max(var(--_vfjs-ui-target-min), calc(var(--vfjs-control-height-sm) * var(--vfjs-ui-scale))));
    --_vfjs-ui-sheet-tab-height: var(--vfjs-ui-sheet-tab-height, max(var(--_vfjs-ui-target-min), calc(var(--vfjs-control-height-sm) * var(--vfjs-ui-scale))));

    /* ---------- U14 variants ---------- */
    &[data-vfjs-ui-variant="filled"], &.vfjs-ui-variant-filled {
      --vfjs-ui-sheet-bg: var(--_vfjs-ui-filled-bg); --vfjs-ui-sheet-border: var(--vfjs-border-width) solid transparent;
      --vfjs-ui-sheet-bar-bg: color-mix(in srgb, var(--vfjs-fg) 5%, var(--_vfjs-ui-filled-bg)); --vfjs-ui-sheet-head-bg: color-mix(in srgb, var(--vfjs-fg) 5%, var(--_vfjs-ui-filled-bg));
      --vfjs-ui-sheet-tool-pressed-bg: var(--_vfjs-ui-filled-accent-bg); --vfjs-ui-sheet-tool-pressed-fg: var(--_vfjs-ui-filled-accent-fg);
    }
    &[data-vfjs-ui-variant="outline"], &.vfjs-ui-variant-outline {
      --vfjs-ui-sheet-bg: var(--_vfjs-ui-outline-bg); --vfjs-ui-sheet-border: var(--vfjs-border-width) solid var(--_vfjs-ui-outline-border);
      --vfjs-ui-sheet-bar-bg: transparent; --vfjs-ui-sheet-tabs-bg: transparent;
      --vfjs-ui-sheet-tool-pressed-bg: transparent; --vfjs-ui-sheet-tool-pressed-fg: var(--_vfjs-ui-outline-accent);
    }
    &[data-vfjs-ui-variant="ghost"], &.vfjs-ui-variant-ghost {
      --vfjs-ui-sheet-bg: var(--_vfjs-ui-ghost-bg); --vfjs-ui-sheet-border: var(--vfjs-border-width) solid transparent;
      --vfjs-ui-sheet-bar-bg: transparent; --vfjs-ui-sheet-tabs-bg: transparent; --vfjs-ui-sheet-head-bg: transparent;
      --vfjs-ui-sheet-tool-pressed-bg: var(--_vfjs-ui-ghost-accent-bg); --vfjs-ui-sheet-tool-pressed-fg: var(--_vfjs-ui-ghost-accent);
    }
  }

  .vfjs-ui-sheet { display: flex; flex-direction: column; box-sizing: border-box; block-size: 100%; min-block-size: 0;
    background: var(--vfjs-ui-sheet-bg, var(--vfjs-bg)); color: var(--vfjs-ui-sheet-fg, var(--vfjs-fg)); border: var(--vfjs-ui-sheet-border, var(--vfjs-border-width) solid var(--vfjs-border)); border-radius: var(--vfjs-ui-sheet-radius, var(--vfjs-radius-lg));
    overflow: hidden; font-size: var(--vfjs-ui-sheet-font-size, var(--vfjs-ui-font-size)); }
  /* S29: --vfjs-ui-sheet-height only while the container has no height of its own; else the container's height exactly */
  .vfjs-auto-height > .vfjs-ui-sheet { block-size: var(--vfjs-ui-sheet-height, calc(var(--vfjs-size-unit) * 420)); }
  /* S30: the default is also the min-height of the element (core measures it: 0 = switched off -> class
     vfjs-content-height = all rows, no own scroll); a height from the layout (class vfjs-fit: explicit, flex / grid
     stretch, min-height only, insets): the sheet fills the element, its rows never make the element taller */
  .vfjs-ui-spreadsheet {
    &.vfjs-auto-height { min-height: var(--vfjs-ui-sheet-height, calc(var(--vfjs-size-unit) * 420)); }
    &.vfjs-fit { display: flex; flex-direction: column;
      > .vfjs-ui-sheet { flex: 1 1 0; min-block-size: 0; }
    }
  }

  /* toolbar */
  .vfjs-ui-sheet__toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--vfjs-space-1); padding: var(--vfjs-space-1) var(--vfjs-space-2);
    background: var(--vfjs-ui-sheet-bar-bg, var(--vfjs-surface)); border-block-end: var(--_vfjs-ui-sheet-bar-border); }
  .vfjs-ui-sheet__toolbar[hidden], .vfjs-ui-sheet__fbar[hidden], .vfjs-ui-sheet__tabs[hidden], .vfjs-ui-sheet__status[hidden] { display: none; }
  .vfjs-ui-sheet__tool { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-inline-size: var(--_vfjs-ui-sheet-tool-size);
    block-size: var(--_vfjs-ui-sheet-tool-size); padding: 0; border: var(--vfjs-border-width) solid transparent; border-radius: var(--vfjs-ui-sheet-tool-radius, var(--vfjs-radius-sm));
    background: transparent; color: var(--vfjs-ui-sheet-tool-fg, var(--vfjs-fg)); font: inherit; cursor: pointer;
    &:hover:not(:disabled) { background: var(--vfjs-ui-sheet-tool-hover-bg, var(--vfjs-hover-bg)); }
    &[aria-pressed="true"] { background: var(--vfjs-ui-sheet-tool-pressed-bg, var(--vfjs-accent-soft)); color: var(--vfjs-ui-sheet-tool-pressed-fg, var(--_vfjs-ui-accent-text)); box-shadow: var(--_vfjs-ui-pressed-ring); }
    &:disabled { opacity: var(--vfjs-disabled-opacity); cursor: default; }
    &:focus-visible { outline: var(--vfjs-focus-ring-width) var(--vfjs-focus-ring-style) var(--vfjs-focus-ring-color, var(--vfjs-accent)); outline-offset: calc(var(--vfjs-focus-ring-offset) * -1); }
  }
  .vfjs-ui-sheet__tool--text { padding-inline: var(--vfjs-space-1); font-size: var(--vfjs-font-size-xs); font-family: var(--vfjs-ui-sheet-font-mono, var(--vfjs-font-mono)); }
  .vfjs-ui-sheet__format { padding-inline: var(--vfjs-space-2); border: var(--vfjs-ui-sheet-input-border, var(--_vfjs-ui-field-border)); background: var(--vfjs-ui-sheet-input-bg, var(--vfjs-bg)); }
  .vfjs-ui-sheet__toolsep { inline-size: var(--vfjs-border-width); align-self: stretch; margin-inline: var(--vfjs-space-1); background: var(--vfjs-border); }
  .vfjs-ui-sheet__color { position: relative; display: inline-flex; align-items: center; gap: 0; color: var(--vfjs-ui-sheet-tool-fg, var(--vfjs-fg)); }
  .vfjs-ui-sheet__coloricon { display: inline-flex; padding-inline-start: var(--vfjs-space-1); pointer-events: none; }
  .vfjs-ui-sheet__colorinput { inline-size: var(--_vfjs-ui-sheet-tool-size); padding: var(--vfjs-space-1); border: var(--vfjs-border-width) solid transparent;
    &.vfjs-ui-sheet__tool { min-inline-size: 0; inline-size: max(var(--_vfjs-ui-target-min), calc(var(--_vfjs-ui-sheet-tool-size) * .8)); }
  }

  /* formula bar */
  .vfjs-ui-sheet__fbar { display: flex; align-items: center; gap: var(--vfjs-space-2); padding: var(--vfjs-space-1) var(--vfjs-space-2); border-block-end: var(--_vfjs-ui-sheet-bar-border); }
  .vfjs-ui-sheet__namebox, .vfjs-ui-sheet__input { box-sizing: border-box; block-size: var(--vfjs-ui-sheet-input-height, max(var(--_vfjs-ui-target-min), calc(var(--vfjs-control-height-sm) * var(--vfjs-ui-scale)))); padding-inline: var(--vfjs-space-2);
    border: var(--vfjs-ui-sheet-input-border, var(--_vfjs-ui-field-border)); border-radius: var(--_vfjs-ui-field-radius); background: var(--vfjs-ui-sheet-input-bg, var(--vfjs-bg)); color: inherit; font: inherit;
    font-family: var(--vfjs-ui-sheet-font-mono, var(--vfjs-font-mono)); }
  .vfjs-ui-sheet__namebox { inline-size: var(--vfjs-ui-sheet-namebox-width, calc(var(--vfjs-size-unit) * 96)); }
  .vfjs-ui-sheet__input { flex: 1; min-inline-size: 0; }
  /* U8: the name box / formula bar show the focus ring (the 1 px accent border alone is not a 3:1 change) */
  .vfjs-ui-sheet__namebox:focus-visible, .vfjs-ui-sheet__input:focus-visible { outline: var(--vfjs-focus-ring-width) var(--vfjs-focus-ring-style) var(--vfjs-focus-ring-color, var(--vfjs-accent)); outline-offset: var(--vfjs-focus-ring-offset); }
  .vfjs-ui-sheet__namebox:focus, .vfjs-ui-sheet__input:focus { border-color: var(--vfjs-accent); box-shadow: var(--_vfjs-ui-field-focus-ring); }
  .vfjs-ui-sheet__input[aria-invalid="true"], .vfjs-ui-sheet__editor[aria-invalid="true"] { border-color: var(--vfjs-ui-sheet-error-fg, var(--vfjs-danger)); }
  .vfjs-ui-sheet__fx { color: var(--vfjs-ui-sheet-fx-fg, var(--vfjs-muted)); font-style: italic; font-family: var(--vfjs-font-serif); }

  /* cells */
  .vfjs-ui-sheet__viewport { position: relative; flex: 1; min-block-size: 0; overflow: auto; outline: none; user-select: none; background: var(--vfjs-ui-sheet-bg, var(--vfjs-bg));
    &:focus-visible { box-shadow: inset 0 0 0 var(--vfjs-focus-ring-width) var(--vfjs-focus-ring-color, var(--vfjs-accent)); }
  }
  .vfjs-ui-sheet__sizer { position: relative; }
  .vfjs-ui-sheet__colrow { position: sticky; inset-block-start: 0; z-index: var(--vfjs-ui-sheet-z-colhead, calc(var(--vfjs-z-base) + 4)); display: block; }
  .vfjs-ui-sheet__corner { position: sticky; inset-inline-start: 0; z-index: var(--vfjs-ui-sheet-z-corner, calc(var(--vfjs-z-base) + 5)); box-sizing: border-box; background: var(--vfjs-ui-sheet-head-bg, var(--vfjs-surface));
    border-inline-end: var(--_vfjs-ui-sheet-grid-line-width) solid var(--_vfjs-ui-sheet-grid-line); border-block-end: var(--_vfjs-ui-sheet-grid-line-width) solid var(--_vfjs-ui-sheet-grid-line); cursor: cell; }
  .vfjs-ui-sheet__ch, .vfjs-ui-sheet__rh { box-sizing: border-box; background: var(--vfjs-ui-sheet-head-bg, var(--vfjs-surface)); color: var(--vfjs-ui-sheet-head-fg, var(--_vfjs-ui-subtle-fg)); font-size: var(--vfjs-ui-sheet-head-font-size, var(--vfjs-font-size-xs));
    text-align: center; white-space: nowrap; overflow: hidden; border-inline-end: var(--_vfjs-ui-sheet-grid-line-width) solid var(--_vfjs-ui-sheet-grid-line);
    border-block-end: var(--_vfjs-ui-sheet-grid-line-width) solid var(--_vfjs-ui-sheet-grid-line); line-height: calc(var(--_vfjs-ui-sheet-row-height) - var(--_vfjs-ui-sheet-grid-line-width)); }
  .vfjs-ui-sheet__ch { position: absolute; inset-block-start: 0; cursor: s-resize; overflow: visible; }
  .vfjs-ui-sheet__chtext { display: block; overflow: hidden; }
  .vfjs-ui-sheet__rh { position: sticky; inset-inline-start: 0; z-index: var(--vfjs-ui-sheet-z-rowhead, calc(var(--vfjs-z-base) + 3)); block-size: 100%; cursor: e-resize; }
  .vfjs-ui-sheet__ch--sel, .vfjs-ui-sheet__rh--sel { background: var(--vfjs-ui-sheet-head-sel-bg, color-mix(in srgb, var(--vfjs-accent) 18%, var(--vfjs-surface))); color: var(--vfjs-ui-sheet-head-sel-fg, var(--vfjs-fg)); }
  /* U8 (2.5.8): a 24 px grip centered on the column edge (over both headers); the drawn line stays thin */
  .vfjs-ui-sheet__resize { position: absolute; z-index: calc(var(--vfjs-z-base) + 1); inset-block-start: 0; block-size: max(100%, var(--_vfjs-ui-target-min)); inset-inline-end: calc(var(--_vfjs-ui-target-min) / -2);
    inline-size: var(--_vfjs-ui-target-min); cursor: col-resize;
    &::before { content: ''; position: absolute; inset-block: 0; inset-inline-start: calc(50% - var(--vfjs-space-1) / 2); inline-size: var(--vfjs-space-1); }
    &:hover::before { background: var(--vfjs-accent); }
  }
  .vfjs-ui-sheet__body { position: relative; }
  .vfjs-ui-sheet__row { position: absolute; inset-inline-start: 0; z-index: var(--vfjs-z-base); display: block; }
  .vfjs-ui-sheet__overlay { position: absolute; inset: 0; z-index: var(--vfjs-ui-sheet-z-sel, calc(var(--vfjs-z-base) + 1)); pointer-events: none; }
  .vfjs-ui-sheet__cell { position: absolute; inset-block-start: 0; box-sizing: border-box; block-size: 100%; padding-inline: var(--vfjs-ui-sheet-cell-padding-x, var(--vfjs-space-1));
    border-inline-end: var(--_vfjs-ui-sheet-grid-line-width) solid var(--_vfjs-ui-sheet-grid-line); border-block-end: var(--_vfjs-ui-sheet-grid-line-width) solid var(--_vfjs-ui-sheet-grid-line);
    white-space: nowrap; overflow: hidden; text-overflow: clip; line-height: calc(var(--_vfjs-ui-sheet-row-height) - var(--_vfjs-ui-sheet-grid-line-width)); cursor: cell; }
  .vfjs-ui-sheet__cell--start { text-align: start; }
  .vfjs-ui-sheet__cell--center { text-align: center; }
  .vfjs-ui-sheet__cell--end { text-align: end; }
  .vfjs-ui-sheet__cell--num { font-variant-numeric: tabular-nums; }
  .vfjs-ui-sheet__cell--err { color: var(--vfjs-ui-sheet-error-fg, var(--vfjs-danger)); unicode-bidi: isolate; direction: ltr; }
  .vfjs-ui-sheet__viewport--editing .vfjs-ui-sheet__cursor { display: none; }
  .vfjs-ui-sheet__cell--bold { font-weight: var(--vfjs-font-weight-bold); }
  .vfjs-ui-sheet__cell--italic { font-style: italic; }
  .vfjs-ui-sheet__cell--underline { text-decoration: underline; }
  .vfjs-ui-sheet__cell--strike { text-decoration: line-through; }
  .vfjs-ui-sheet__cell--ustrike { text-decoration: underline line-through; }
  .vfjs-ui-sheet__sel, .vfjs-ui-sheet__cursor, .vfjs-ui-sheet__copy, .vfjs-ui-sheet__ref { position: absolute; box-sizing: border-box; pointer-events: none; }
  .vfjs-ui-sheet__sel { background: var(--vfjs-ui-sheet-sel-bg, color-mix(in srgb, var(--vfjs-accent) 12%, transparent)); border: var(--vfjs-ui-sheet-sel-border, var(--vfjs-border-width) solid var(--vfjs-accent)); }
  .vfjs-ui-sheet__cursor { border: var(--vfjs-ui-sheet-cursor-border, var(--vfjs-border-width-thick) solid var(--vfjs-accent)); }
  .vfjs-ui-sheet__copy { border: var(--vfjs-ui-sheet-copy-border, var(--vfjs-border-width-thick) dashed var(--vfjs-accent)); }
  .vfjs-ui-sheet__sel[hidden], .vfjs-ui-sheet__copy[hidden], .vfjs-ui-sheet__editor[hidden] { display: none; }
  .vfjs-ui-sheet__refs { position: absolute; inset: 0; pointer-events: none; }
  .vfjs-ui-sheet__ref { --vfjs-ui-sheet-ref: var(--vfjs-ui-sheet-ref-0, var(--vfjs-palette-0)); border: var(--vfjs-ui-sheet-ref-width, var(--vfjs-border-width-thick)) solid var(--vfjs-ui-sheet-ref);
    background: color-mix(in srgb, var(--vfjs-ui-sheet-ref) var(--vfjs-ui-sheet-ref-tint, 10%), transparent); }
  .vfjs-ui-sheet__ref--1 { --vfjs-ui-sheet-ref: var(--vfjs-ui-sheet-ref-1, var(--vfjs-palette-1)); }
  .vfjs-ui-sheet__ref--2 { --vfjs-ui-sheet-ref: var(--vfjs-ui-sheet-ref-2, var(--vfjs-palette-2)); }
  .vfjs-ui-sheet__ref--3 { --vfjs-ui-sheet-ref: var(--vfjs-ui-sheet-ref-3, var(--vfjs-palette-3)); }
  .vfjs-ui-sheet__ref--4 { --vfjs-ui-sheet-ref: var(--vfjs-ui-sheet-ref-4, var(--vfjs-palette-4)); }
  .vfjs-ui-sheet__ref--5 { --vfjs-ui-sheet-ref: var(--vfjs-ui-sheet-ref-5, var(--vfjs-palette-5)); }
  .vfjs-ui-sheet__ref--6 { --vfjs-ui-sheet-ref: var(--vfjs-ui-sheet-ref-6, var(--vfjs-palette-6)); }
  .vfjs-ui-sheet__ref--7 { --vfjs-ui-sheet-ref: var(--vfjs-ui-sheet-ref-7, var(--vfjs-palette-7)); }
  .vfjs-ui-sheet__editor { position: absolute; z-index: var(--vfjs-ui-sheet-z-editor, calc(var(--vfjs-z-base) + 2)); box-sizing: border-box; margin: 0; padding-inline: var(--vfjs-ui-sheet-cell-padding-x, var(--vfjs-space-1));
    border: var(--vfjs-ui-sheet-cursor-border, var(--vfjs-border-width-thick) solid var(--vfjs-accent)); background: var(--vfjs-ui-sheet-editor-bg, var(--vfjs-bg)); color: var(--vfjs-ui-sheet-fg, var(--vfjs-fg)); font: inherit; outline: none;
    box-shadow: var(--vfjs-ui-sheet-editor-shadow, var(--vfjs-shadow-sm)); user-select: text; }

  /* tabs */
  .vfjs-ui-sheet__tabs { display: flex; align-items: stretch; gap: var(--vfjs-space-1); padding-inline: var(--vfjs-space-1); background: var(--vfjs-ui-sheet-tabs-bg, var(--vfjs-surface));
    border-block-start: var(--_vfjs-ui-sheet-bar-border); min-block-size: var(--_vfjs-ui-sheet-tab-height); }
  .vfjs-ui-sheet__tablist { display: flex; flex: 1; min-inline-size: 0; overflow-x: auto; scrollbar-width: thin; }
  .vfjs-ui-sheet__tab, .vfjs-ui-sheet__addtab { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; flex: none;
    block-size: var(--_vfjs-ui-sheet-tab-height); padding-inline: var(--vfjs-ui-sheet-tab-padding-x, var(--vfjs-space-3)); border: 0; border-block-start: var(--vfjs-border-width-thick) solid transparent;
    background: var(--vfjs-ui-sheet-tab-bg, transparent); color: var(--vfjs-ui-sheet-tab-fg, var(--vfjs-muted)); font: inherit; white-space: nowrap; cursor: pointer; }
  .vfjs-ui-sheet__addtab { padding-inline: var(--vfjs-space-2);
    &[hidden] { display: none; }
  }
  .vfjs-ui-sheet__tab:hover, .vfjs-ui-sheet__addtab:hover { background: var(--vfjs-ui-sheet-tab-hover-bg, var(--vfjs-hover-bg)); }
  .vfjs-ui-sheet__tab--on { background: var(--vfjs-ui-sheet-tab-active-bg, var(--vfjs-bg)); color: var(--vfjs-ui-sheet-tab-active-fg, var(--vfjs-accent)); border-block-start: var(--vfjs-ui-sheet-tab-active-bar, var(--vfjs-border-width-thick) solid var(--vfjs-accent));
    font-weight: var(--vfjs-font-weight-medium); }
  .vfjs-ui-sheet__tab:focus-visible, .vfjs-ui-sheet__addtab:focus-visible { outline: var(--vfjs-focus-ring-width) var(--vfjs-focus-ring-style) var(--vfjs-focus-ring-color, var(--vfjs-accent));
    outline-offset: calc(var(--vfjs-focus-ring-offset) * -1); }
  .vfjs-ui-sheet__tab--drag { opacity: .6; }
  .vfjs-ui-sheet__tab--target { box-shadow: inset var(--vfjs-border-width-thick) 0 0 var(--vfjs-accent); }
  .vfjs-ui-sheet__tabinput { box-sizing: border-box; inline-size: calc(var(--vfjs-size-unit) * 120); block-size: calc(var(--_vfjs-ui-sheet-tab-height) - var(--vfjs-space-1));
    padding-inline: var(--vfjs-space-1); border: var(--vfjs-ui-sheet-input-border, var(--_vfjs-ui-field-border)); border-radius: var(--vfjs-radius-sm); background: var(--vfjs-ui-sheet-input-bg, var(--vfjs-bg)); color: var(--vfjs-fg); font: inherit;
    &[aria-invalid="true"] { border-color: var(--vfjs-ui-sheet-error-fg, var(--vfjs-danger)); }
  }
  .vfjs-ui-sheet__menuhost { display: none; }

  /* status bar */
  .vfjs-ui-sheet__status { padding: var(--vfjs-space-1) var(--vfjs-space-3); color: var(--vfjs-ui-sheet-status-fg, var(--vfjs-muted)); font-size: var(--vfjs-ui-sheet-status-font-size, var(--vfjs-font-size-xs));
    text-align: end; white-space: pre; min-block-size: calc(var(--vfjs-ui-sheet-status-font-size, var(--vfjs-font-size-xs)) * 1.5); border-block-start: var(--_vfjs-ui-sheet-bar-border); }
  .vfjs-ui-sheet--readonly .vfjs-ui-sheet__cell { cursor: default; }

  /* ---------- U17: 2.5.8 targets in size s / compact density ---------- */
  .vfjs-ui-option { box-sizing: border-box; min-block-size: var(--_vfjs-ui-target-min); }
  .vfjs-ui-tree__row { box-sizing: border-box; min-block-size: var(--_vfjs-ui-target-min); }
  .vfjs-ui-radiogroup .vfjs-ui-check { min-block-size: var(--_vfjs-ui-target-min); }
  .vfjs-ui-fm__hcell { box-sizing: border-box; min-block-size: var(--_vfjs-ui-target-min); }
  .vfjs-ui-fm__crumb, .vfjs-ui-fm__pathedit { box-sizing: border-box; min-block-size: var(--_vfjs-ui-target-min); min-inline-size: var(--_vfjs-ui-target-min); justify-content: center; }
  .vfjs-ui-window__ctl { min-inline-size: var(--_vfjs-ui-target-min); min-block-size: var(--_vfjs-ui-target-min); }
  .vfjs-ui-chip__main:is(button) { min-inline-size: var(--_vfjs-ui-target-min); justify-content: center; }
  :where(.vfjs-ui-chipgroup):not(.vfjs) { row-gap: max(var(--vfjs-ui-chip-gap, var(--vfjs-space-1)), calc(var(--_vfjs-ui-target-min) - var(--vfjs-ui-chip-height))); }
  /* spacing exception: the swatch keeps the small box of size s, the next one starts 24 px further */
  .vfjs-ui-color__swatches { gap: max(calc(var(--vfjs-space) * 1.5), calc(var(--_vfjs-ui-target-min) - var(--_vfjs-ui-color-swatch-size) * var(--vfjs-ui-scale))); }
  .vfjs-ui-imged__swatches { gap: max(var(--vfjs-space-1), calc(var(--_vfjs-ui-target-min) - var(--_vfjs-ui-imged-swatch-size))); }
  .vfjs-ui-movebtn { display: inline-flex; align-items: center; justify-content: center; flex: none; box-sizing: border-box;
    inline-size: var(--vfjs-ui-movebtn-size, var(--_vfjs-ui-target-min)); block-size: var(--vfjs-ui-movebtn-size, var(--_vfjs-ui-target-min)); margin: 0; padding: 0; border: 0;
    border-radius: var(--vfjs-ui-movebtn-radius, var(--vfjs-radius-sm)); background: var(--vfjs-ui-movebtn-bg, transparent); color: var(--vfjs-ui-movebtn-fg, var(--_vfjs-ui-subtle-fg)); font: inherit; cursor: pointer;
    &:hover, &[aria-expanded="true"] { background: var(--vfjs-ui-movebtn-hover-bg, var(--vfjs-hover-bg)); color: var(--vfjs-ui-movebtn-hover-fg, var(--vfjs-fg)); }
    &:focus-visible { outline: var(--vfjs-focus-ring-width) var(--vfjs-focus-ring-style) var(--vfjs-focus-ring-color, var(--vfjs-accent)); outline-offset: calc(var(--vfjs-focus-ring-width) * -1); }
  }
  /* shown while its item is hovered, focused or the active one; always on touch screens (no hover) */
  .vfjs-ui-movebtn--hover { opacity: var(--vfjs-ui-movebtn-idle-opacity, 0); }
  :is(.vfjs-ui-kanban__card, .vfjs-ui-list__item, .vfjs-ui-tab, .vfjs-ui-sheet__tab):is(:hover, :focus-within) > .vfjs-ui-movebtn--hover,
  .vfjs-ui-movebtn--hover[aria-expanded="true"],
  .vfjs-ui-list:focus .vfjs-ui-list__item--active > .vfjs-ui-movebtn--hover { opacity: 1; }
  @media (hover: none) {
    .vfjs-ui-movebtn--hover { opacity: 1; }
  }
  .vfjs-ui-kanban__move { position: absolute; inset-block-start: var(--vfjs-space-1); inset-inline-end: var(--vfjs-space-1); background: var(--vfjs-ui-kanban-card-bg, var(--vfjs-bg)); }
  .vfjs-ui-list__item > .vfjs-ui-movebtn { margin-inline-start: auto; margin-block: calc(var(--vfjs-space) * -1); }
  .vfjs-ui-tab > .vfjs-ui-movebtn, .vfjs-ui-sheet__tab > .vfjs-ui-movebtn { margin-inline: 0 calc(var(--vfjs-space) * -1.5); margin-block: calc(var(--vfjs-space) * -1); }
  @media (hover: none) {
    :is(.vfjs-ui-tab:not(.vfjs-ui-tab--active), .vfjs-ui-sheet__tab:not(.vfjs-ui-sheet__tab--on)) > .vfjs-ui-movebtn--hover { visibility: hidden; }
  }
  .vfjs-ui-dock__tab > .vfjs-ui-movebtn { margin-inline-start: calc(var(--vfjs-space) * -1.5); margin-block: calc(var(--vfjs-space) * -1.5); cursor: pointer; }
  .vfjs-ui-window__move { cursor: pointer; }

  /* U20: component tokens set on a container reach the components */
  :where(:has(> .vfjs)):not(.vfjs, .vfjs *) {
    --_vfjs-accent-soft: var(--vfjs-accent-soft);
    --_vfjs-active-bg: var(--vfjs-active-bg);
    --_vfjs-backdrop: var(--vfjs-backdrop);
    --_vfjs-code-attr: var(--vfjs-code-attr);
    --_vfjs-code-string: var(--vfjs-code-string);
    --_vfjs-control-height: var(--vfjs-control-height);
    --_vfjs-control-height-lg: var(--vfjs-control-height-lg);
    --_vfjs-control-height-sm: var(--vfjs-control-height-sm);
    --_vfjs-control-height-xs: var(--vfjs-control-height-xs);
    --_vfjs-critical: var(--vfjs-critical);
    --_vfjs-critical-fg: var(--vfjs-critical-fg);
    --_vfjs-danger: var(--vfjs-danger);
    --_vfjs-danger-fg: var(--vfjs-danger-fg);
    --_vfjs-danger-soft: var(--vfjs-danger-soft);
    --_vfjs-disabled-bg: var(--vfjs-disabled-bg);
    --_vfjs-disabled-fg: var(--vfjs-disabled-fg);
    --_vfjs-down: var(--vfjs-down);
    --_vfjs-font-size-2xl: var(--vfjs-font-size-2xl);
    --_vfjs-font-size-2xs: var(--vfjs-font-size-2xs);
    --_vfjs-font-size-3xl: var(--vfjs-font-size-3xl);
    --_vfjs-font-size-3xs: var(--vfjs-font-size-3xs);
    --_vfjs-font-size-4xl: var(--vfjs-font-size-4xl);
    --_vfjs-font-size-5xl: var(--vfjs-font-size-5xl);
    --_vfjs-font-size-lg: var(--vfjs-font-size-lg);
    --_vfjs-font-size-sm: var(--vfjs-font-size-sm);
    --_vfjs-font-size-xl: var(--vfjs-font-size-xl);
    --_vfjs-font-size-xs: var(--vfjs-font-size-xs);
    --_vfjs-hover-bg: var(--vfjs-hover-bg);
    --_vfjs-hover-fg: var(--vfjs-hover-fg);
    --_vfjs-icon-size: var(--vfjs-icon-size);
    --_vfjs-info: var(--vfjs-info);
    --_vfjs-info-fg: var(--vfjs-info-fg);
    --_vfjs-info-soft: var(--vfjs-info-soft);
    --_vfjs-motion-duration-fast: var(--vfjs-motion-duration-fast);
    --_vfjs-motion-duration-slow: var(--vfjs-motion-duration-slow);
    --_vfjs-radius-full: var(--vfjs-radius-full);
    --_vfjs-radius-lg: var(--vfjs-radius-lg);
    --_vfjs-radius-md: var(--vfjs-radius-md);
    --_vfjs-radius-pill: var(--vfjs-radius-pill);
    --_vfjs-radius-sm: var(--vfjs-radius-sm);
    --_vfjs-radius-xl: var(--vfjs-radius-xl);
    --_vfjs-radius-xs: var(--vfjs-radius-xs);
    --_vfjs-selected-bg: var(--vfjs-selected-bg);
    --_vfjs-selected-fg: var(--vfjs-selected-fg);
    --_vfjs-selected-strong-bg: var(--vfjs-selected-strong-bg);
    --_vfjs-selected-strong-fg: var(--vfjs-selected-strong-fg);
    --_vfjs-space: var(--vfjs-space);
    --_vfjs-space-1: var(--vfjs-space-1);
    --_vfjs-space-2: var(--vfjs-space-2);
    --_vfjs-space-3: var(--vfjs-space-3);
    --_vfjs-space-4: var(--vfjs-space-4);
    --_vfjs-space-5: var(--vfjs-space-5);
    --_vfjs-space-6: var(--vfjs-space-6);
    --_vfjs-space-8: var(--vfjs-space-8);
    --_vfjs-success: var(--vfjs-success);
    --_vfjs-success-fg: var(--vfjs-success-fg);
    --_vfjs-success-soft: var(--vfjs-success-soft);
    --_vfjs-up: var(--vfjs-up);
    --_vfjs-warning: var(--vfjs-warning);
    --_vfjs-warning-fg: var(--vfjs-warning-fg);
    --_vfjs-warning-soft: var(--vfjs-warning-soft);
  }
  :where(:has(> .vfjs)):not(.vfjs) {
    --_vfjs-focus-ring-color: var(--vfjs-focus-ring-color);
  }
  :where([data-vfjs-theme]:not(.vfjs)) {
    --vfjs-focus-ring-color: initial;
  }
  .vfjs[data-vfjs-theme-own] {
    --_vfjs-focus-ring-color: initial;
  }
}
