/*! VibeFox JS Pdf 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-pdf: 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;
    }
  }

  /* pdf */
  /* P19 part variables: change one place (on .vfjs, the viewer element, any container or a theme); defaults = core tokens */
  .vfjs {
    /* density of the viewer (S24): page density x theme density; every padding and gap of the viewer is a multiple of
       --vfjs-pdf-space (S10), the same value as --vfjs-space until --vfjs-pdf-density is set */
    --_vfjs-pdf-space: var(--vfjs-pdf-space, calc(var(--vfjs-space-unit) * var(--vfjs-pdf-density, calc(var(--vfjs-density) * var(--vfjs-theme-density)))));
    /* frame and workspace (the area behind the pages) */
    --_vfjs-pdf-bg: var(--vfjs-pdf-bg, var(--vfjs-surface));
    --_vfjs-pdf-fg: var(--vfjs-pdf-fg, var(--vfjs-fg));
    --_vfjs-pdf-muted: var(--vfjs-pdf-muted, var(--vfjs-muted));
    --_vfjs-pdf-accent: var(--vfjs-pdf-accent, var(--vfjs-accent));
    --_vfjs-pdf-border: var(--vfjs-pdf-border, var(--vfjs-border-width) solid var(--vfjs-border));
    --_vfjs-pdf-font: var(--vfjs-pdf-font, var(--vfjs-font));
    --_vfjs-pdf-font-size: var(--vfjs-pdf-font-size, var(--vfjs-font-size));
    /* S29: height of a viewer whose container has no height of its own (class vfjs-auto-height) */
    /* toolbar (panel) */
    --_vfjs-pdf-toolbar-bg: var(--vfjs-pdf-toolbar-bg, var(--vfjs-bg));
    --_vfjs-pdf-toolbar-fg: var(--vfjs-pdf-toolbar-fg, var(--_vfjs-pdf-fg));
    --_vfjs-pdf-toolbar-border: var(--vfjs-pdf-toolbar-border, var(--vfjs-border-width) solid var(--vfjs-border));
    --_vfjs-pdf-toolbar-gap: var(--vfjs-pdf-toolbar-gap, calc(var(--_vfjs-pdf-space) * 1.5));
    --_vfjs-pdf-toolbar-padding-y: var(--vfjs-pdf-toolbar-padding-y, calc(var(--_vfjs-pdf-space) * 2));
    --_vfjs-pdf-toolbar-padding-x: var(--vfjs-pdf-toolbar-padding-x, calc(var(--_vfjs-pdf-space) * 2.5));
    /* toolbar buttons */
    --_vfjs-pdf-btn-hover-bg: var(--vfjs-pdf-btn-hover-bg, var(--vfjs-pdf-btn-bg, var(--vfjs-surface)));
    /* page number input and labels */
    --_vfjs-pdf-input-bg: var(--vfjs-pdf-input-bg, var(--vfjs-bg));
    --_vfjs-pdf-input-fg: var(--vfjs-pdf-input-fg, var(--vfjs-fg));
    --_vfjs-pdf-input-border: var(--vfjs-pdf-input-border, var(--vfjs-border-width) solid var(--vfjs-border));
    --_vfjs-pdf-input-radius: var(--vfjs-pdf-input-radius, var(--vfjs-radius));
    --_vfjs-pdf-label-fg: var(--vfjs-pdf-label-fg, var(--_vfjs-pdf-muted));
    /* pages */
    --_vfjs-pdf-page-bg: var(--vfjs-pdf-page-bg, var(--vfjs-white));
    --_vfjs-pdf-page-gap: var(--vfjs-pdf-page-gap, calc(var(--_vfjs-pdf-space) * 4));
    --_vfjs-pdf-empty-fg: var(--_vfjs-pdf-muted);
    --_vfjs-pdf-empty-font-size: var(--_vfjs-pdf-font-size);
    /* sidebar: thumbnails / outline (P6 builds them; the look is defined here) */
    --_vfjs-pdf-sidebar-bg: var(--vfjs-pdf-sidebar-bg, var(--_vfjs-pdf-toolbar-bg));
    --_vfjs-pdf-sidebar-border: var(--vfjs-pdf-sidebar-border, var(--_vfjs-pdf-toolbar-border));
    --_vfjs-pdf-sidebar-padding: var(--vfjs-pdf-sidebar-padding, calc(var(--_vfjs-pdf-space) * 3));
    /* P22: sidebar tabs = icons; the label (tooltip / screen readers) is shown next to the icon with 'inline' */
    --_vfjs-pdf-thumb-width: var(--vfjs-pdf-thumb-width, calc(var(--vfjs-size-unit) * 120));
    --_vfjs-pdf-thumb-gap: var(--vfjs-pdf-thumb-gap, calc(var(--_vfjs-pdf-space) * 3));
    --_vfjs-pdf-outline-indent: var(--vfjs-pdf-outline-indent, calc(var(--_vfjs-pdf-space) * 3));
    --_vfjs-pdf-outline-hover-bg: var(--vfjs-pdf-outline-hover-bg, var(--vfjs-hover-bg));
    /* P18: layers of a file (optional content) in the sidebar */
    --_vfjs-pdf-layer-indent: var(--_vfjs-pdf-outline-indent);
    /* search bar (P6) and the notice line (P4: e.g. pdf.js not connected) */
    /* text selection and search hits (P6) */
    /* links / form fields drawn over the page in the viewer (transparent = off), annotations (P5) */
    --_vfjs-pdf-link-highlight: transparent;
    --_vfjs-pdf-field-highlight: transparent;
    --_vfjs-pdf-annot-highlight: color-mix(in srgb, var(--vfjs-amber-400) 50%, transparent);
    --_vfjs-pdf-annot-ink: var(--vfjs-red-600);
    --_vfjs-pdf-annot-note: var(--vfjs-amber-400);
  }

  .vfjs {
    /* P5 annotation colors (default colors of the tools; the palette of the toolbar) — on .vfjs, any container or a theme */
    --_vfjs-pdf-annot-underline: var(--vfjs-blue-500);
    --_vfjs-pdf-annot-strikeout: var(--vfjs-red-600);
    --_vfjs-pdf-annot-shape: var(--vfjs-red-600);
    --_vfjs-pdf-annot-text: var(--vfjs-slate-900);
    --_vfjs-pdf-annot-signature: var(--vfjs-pdf-annot-signature, var(--vfjs-blue-850));
    --_vfjs-pdf-annot-color-0: var(--vfjs-amber-400);
    --_vfjs-pdf-annot-color-1: var(--vfjs-red-600);
    --_vfjs-pdf-annot-color-2: var(--vfjs-green-600);
    --_vfjs-pdf-annot-color-3: var(--vfjs-blue-500);
    --_vfjs-pdf-annot-color-4: var(--vfjs-purple-500);
    --_vfjs-pdf-annot-color-5: var(--vfjs-cyan-500);
    --_vfjs-pdf-annot-color-6: var(--vfjs-pink-500);
    --_vfjs-pdf-annot-color-7: var(--vfjs-slate-900);
    --_vfjs-pdf-stamp-positive: var(--vfjs-green-650);
    --_vfjs-pdf-stamp-negative: var(--vfjs-red-600);
    --_vfjs-pdf-stamp-neutral: var(--vfjs-blue-800);
    /* annotation toolbar, popups, editors */
    --_vfjs-pdf-swatch-size: var(--vfjs-pdf-swatch-size, calc(var(--vfjs-size-unit) * 18));
    --_vfjs-pdf-annot-popup-border: var(--vfjs-pdf-annot-popup-border, var(--vfjs-border-width) solid var(--vfjs-border));
    --_vfjs-pdf-annot-z: var(--vfjs-pdf-annot-z, var(--vfjs-z-dropdown));
    /* P7 signature dialog */
    --_vfjs-pdf-sign-color-0: var(--_vfjs-pdf-annot-signature);
    --_vfjs-pdf-sign-color-1: var(--vfjs-slate-900);
    --_vfjs-pdf-sign-color-2: var(--vfjs-blue-500);
    /* P20: font stack of a typed signature (system / installed handwriting fonts; no font files are shipped) */
    --_vfjs-pdf-signature-font: var(--vfjs-pdf-signature-font, 'Segoe Script', 'Brush Script MT', 'Lucida Handwriting', 'Apple Chancery', 'URW Chancery L', 'Z003', cursive);
  }

  .vfjs {
    /* P8 page editing (option pageEditing) */
    --_vfjs-pdf-drop-width: var(--vfjs-pdf-drop-width, var(--vfjs-border-width-thick));
  }

  .vfjs {
    /* P13 redaction (viewer option redaction) */
    --_vfjs-pdf-redact-item-current-bg: var(--vfjs-pdf-redact-item-current-bg, var(--vfjs-pdf-outline-active-bg, var(--vfjs-selected-bg)));
    /* P17 comparison (createPdfCompare) */
  }

  .vfjs {
    /* P14 digital signatures: status colors (badges, status line) */
    --_vfjs-pdf-sig-item-padding: var(--vfjs-pdf-sig-item-padding, var(--_vfjs-pdf-space) calc(var(--_vfjs-pdf-space) * 2));
  }

  .vfjs {
    /* P16 designer: frame, columns, workspace */
    --_vfjs-pdf-designer-gap: var(--vfjs-pdf-designer-gap, var(--vfjs-space-2));
    /* palette */
    /* grid, element boxes, selection, handles, guides */
    --_vfjs-pdf-designer-grid-width: var(--vfjs-pdf-designer-grid-width, var(--vfjs-border-width));
    --_vfjs-pdf-designer-selected: var(--vfjs-pdf-designer-selected, var(--_vfjs-pdf-accent));
    --_vfjs-pdf-designer-handle-size: var(--vfjs-pdf-designer-handle-size, calc(var(--vfjs-size-unit) * 8));
    /* properties panel */
    --_vfjs-pdf-designer-swatch-size: var(--vfjs-pdf-designer-swatch-size, calc(var(--vfjs-size-unit) * 18));
    /* color swatches offered for the template (the colors written into the PDF; keep them printable) */
    --_vfjs-pdf-designer-color-0: var(--vfjs-black);
    --_vfjs-pdf-designer-color-1: var(--vfjs-slate-500);
    --_vfjs-pdf-designer-color-2: var(--vfjs-white);
    --_vfjs-pdf-designer-color-3: var(--vfjs-blue-500);
    --_vfjs-pdf-designer-color-4: var(--vfjs-red-500);
    --_vfjs-pdf-designer-color-5: var(--vfjs-green-600);
    --_vfjs-pdf-designer-color-6: var(--vfjs-amber-500);
    --_vfjs-pdf-designer-color-7: var(--vfjs-violet-500);
  }

  .vfjs-pdf {
    display: flex;
    flex-direction: column;
    color: var(--_vfjs-pdf-fg);
    font-family: var(--_vfjs-pdf-font);
    background: var(--_vfjs-pdf-bg);
    border: var(--_vfjs-pdf-border);
    border-radius: var(--vfjs-pdf-radius, var(--vfjs-radius));
    box-shadow: var(--vfjs-pdf-shadow, none);
    overflow: hidden;
    /* S29: the container has no height (only its content would give one): default height; an explicit height /
       min-height, a flex / grid stretch or a parent with a height is kept exactly (no class) */
    /* P20: exactly the default (before: a min-height only, so the pages made the viewer as high as all of them and every
       page was drawn); --vfjs-pdf-min-height: 0 = the height of the pages (class vfjs-content-height) */
    &.vfjs-auto-height { min-height: var(--vfjs-pdf-min-height, calc(var(--vfjs-size-unit) * 400)); block-size: var(--vfjs-pdf-min-height, calc(var(--vfjs-size-unit) * 400)); }
    /* P20 / S30: a height from the layout (class vfjs-fit — also a min-height only): the pages never size the viewer */
    &:is(.vfjs-fit, .vfjs-auto-height) > .vfjs-pdf-main { flex: 1 1 0; }
  }
  .vfjs-pdf-toolbar {
    display: flex;
    align-items: center;
    gap: var(--_vfjs-pdf-toolbar-gap);
    padding: var(--_vfjs-pdf-toolbar-padding-y) var(--_vfjs-pdf-toolbar-padding-x);
    color: var(--_vfjs-pdf-toolbar-fg);
    background: var(--_vfjs-pdf-toolbar-bg);
    border-bottom: var(--_vfjs-pdf-toolbar-border);
    box-shadow: var(--vfjs-pdf-toolbar-shadow, none);
    flex-wrap: wrap;
  }
  .vfjs-pdf-btn {
    font: inherit;
    font-size: var(--vfjs-pdf-btn-font-size, var(--_vfjs-pdf-font-size));
    color: var(--vfjs-pdf-btn-fg, var(--_vfjs-pdf-toolbar-fg));
    background: var(--vfjs-pdf-btn-bg, var(--vfjs-surface));
    border: var(--vfjs-pdf-btn-border, var(--vfjs-border-width) solid var(--vfjs-border));
    border-radius: var(--vfjs-pdf-btn-radius, var(--vfjs-radius));
    padding: var(--vfjs-pdf-btn-padding-y, var(--_vfjs-pdf-space)) var(--vfjs-pdf-btn-padding-x, calc(var(--_vfjs-pdf-space) * 2.5));
    cursor: pointer;
    line-height: var(--vfjs-line-height-tight);
    &:hover {
      background: var(--_vfjs-pdf-btn-hover-bg);
      border-color: var(--vfjs-pdf-btn-hover-border-color, var(--_vfjs-pdf-accent));
      color: var(--vfjs-pdf-btn-hover-fg, var(--_vfjs-pdf-accent));
    }
    &:active { background: var(--vfjs-pdf-btn-active-bg, var(--vfjs-active-bg)); }
    &[aria-pressed='true'] { background: var(--vfjs-pdf-btn-active-bg, var(--vfjs-active-bg)); border-color: var(--vfjs-pdf-btn-hover-border-color, var(--_vfjs-pdf-accent)); }
  }
  /* S9: previous / next page arrows point the reading direction in RTL */
  .vfjs-pdf-btn-dir:dir(rtl) { transform: scaleX(-1); }
  .vfjs-pdf-page-input {
    width: var(--vfjs-pdf-input-width, calc(var(--vfjs-size-unit) * 52));
    font: inherit;
    font-size: var(--_vfjs-pdf-font-size);
    color: var(--_vfjs-pdf-input-fg);
    background: var(--_vfjs-pdf-input-bg);
    border: var(--_vfjs-pdf-input-border);
    border-radius: var(--_vfjs-pdf-input-radius);
    padding: var(--_vfjs-pdf-space) calc(var(--_vfjs-pdf-space) * 1.5);
    text-align: center;
  }
  .vfjs-pdf-page-input::selection, .vfjs-pdf ::selection { background: var(--vfjs-pdf-selection, color-mix(in srgb, var(--_vfjs-pdf-accent) 30%, transparent)); }
  .vfjs-pdf-muted { color: var(--_vfjs-pdf-label-fg); font-size: var(--_vfjs-pdf-font-size); }
  .vfjs-pdf-zoom-label {
    min-width: var(--vfjs-pdf-zoom-width, calc(var(--vfjs-size-unit) * 44));
    text-align: center;
    font-size: var(--_vfjs-pdf-font-size);
    color: var(--_vfjs-pdf-label-fg);
  }
  .vfjs-pdf-spacer { flex: 0 0 var(--vfjs-pdf-toolbar-spacer, calc(var(--vfjs-size-unit) * 12)); }
  /* P6 search bar (under the toolbar) and P4 notice line */
  .vfjs-pdf-searchbar {
    display: flex;
    align-items: center;
    gap: var(--_vfjs-pdf-toolbar-gap);
    padding: var(--_vfjs-pdf-toolbar-padding-y) var(--_vfjs-pdf-toolbar-padding-x);
    color: var(--_vfjs-pdf-toolbar-fg);
    background: var(--_vfjs-pdf-toolbar-bg);
    border-bottom: var(--_vfjs-pdf-toolbar-border);
    flex-wrap: wrap;
  }
  .vfjs-pdf-search-input {
    width: var(--vfjs-pdf-search-width, calc(var(--vfjs-size-unit) * 180));
    max-width: 100%;
    font: inherit;
    font-size: var(--_vfjs-pdf-font-size);
    color: var(--_vfjs-pdf-input-fg);
    background: var(--_vfjs-pdf-input-bg);
    border: var(--_vfjs-pdf-input-border);
    border-radius: var(--_vfjs-pdf-input-radius);
    padding: var(--_vfjs-pdf-space) calc(var(--_vfjs-pdf-space) * 1.5);
  }
  .vfjs-pdf-check { display: inline-flex; align-items: center; gap: var(--_vfjs-pdf-space); font-size: var(--_vfjs-pdf-font-size); color: var(--_vfjs-pdf-label-fg); cursor: pointer; }
  .vfjs-pdf-search-count { min-width: var(--vfjs-pdf-zoom-width, calc(var(--vfjs-size-unit) * 44)); font-size: var(--_vfjs-pdf-font-size); color: var(--_vfjs-pdf-label-fg); }
  .vfjs-pdf-notice {
    padding: var(--_vfjs-pdf-toolbar-padding-y) var(--_vfjs-pdf-toolbar-padding-x);
    color: var(--vfjs-pdf-notice-fg, var(--_vfjs-pdf-fg));
    background: var(--vfjs-pdf-notice-bg, var(--vfjs-warning-soft));
    border-bottom: var(--vfjs-pdf-notice-border, var(--_vfjs-pdf-toolbar-border));
    font-size: var(--_vfjs-pdf-font-size);
  }
  .vfjs-pdf-searchbar[hidden], .vfjs-pdf-notice[hidden], .vfjs-pdf-sidebar[hidden], .vfjs-pdf-sidebar-panel[hidden],
  .vfjs-pdf-page[hidden], .vfjs-pdf-outline-group[hidden] { display: none; }
  /* pages: P4 one slot per page (continuous scroll, virtualized); the page box inside is turned by the rotation */
  .vfjs-pdf-main { flex: 1; display: flex; min-height: 0; min-width: 0; }
  .vfjs-pdf-body {
    flex: 1;
    min-width: 0;
    position: relative;
    overflow: auto;
    padding: var(--vfjs-pdf-body-padding, calc(var(--_vfjs-pdf-space) * 5));
    display: flex;
    flex-direction: column;
    gap: var(--_vfjs-pdf-page-gap);
    justify-content: safe center;
    align-items: safe center;
  }
  .vfjs-pdf-page {
    position: relative;
    flex: none;
    overflow: hidden;
    background: var(--_vfjs-pdf-page-bg);
    box-shadow: var(--vfjs-pdf-page-shadow, var(--vfjs-shadow));
    border-radius: var(--vfjs-pdf-page-radius, var(--vfjs-radius-xs));
    outline: var(--vfjs-pdf-page-outline, none);
  }
  .vfjs-pdf-page-box { position: absolute; top: 0; left: 0; /* physical: PDF page geometry */ transform-origin: 0 0; }
  .vfjs-pdf-canvas { display: block; }
  /* P6 text layer (transparent selectable text over the canvas) and search hits; laid out in pt, scaled by the zoom */
  .vfjs-pdf-text, .vfjs-pdf-hits { position: absolute; top: 0; left: 0; /* physical: PDF page geometry */ transform-origin: 0 0; }
  .vfjs-pdf-text { color: transparent; line-height: var(--vfjs-line-height-none); white-space: pre; cursor: text; }
  .vfjs-pdf-text > span, .vfjs-pdf-hits > .vfjs-pdf-search-hit { position: absolute; }
  .vfjs-pdf-search-hit { background: var(--vfjs-pdf-search-hit, color-mix(in srgb, var(--vfjs-amber-400) 45%, transparent)); border-radius: var(--vfjs-radius-xs);
    &.vfjs-pdf-is-current { background: var(--vfjs-pdf-search-current, color-mix(in srgb, var(--vfjs-amber-600) 60%, transparent)); }
  }
  /* P6 sidebar: thumbnails / outline */
  .vfjs-pdf-sidebar {
    order: -1;
    flex: 0 0 var(--vfjs-pdf-sidebar-width, calc(var(--vfjs-size-unit) * 168));
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: var(--vfjs-pdf-sidebar-fg, var(--_vfjs-pdf-toolbar-fg));
    background: var(--_vfjs-pdf-sidebar-bg);
    border-inline-end: var(--_vfjs-pdf-sidebar-border);
    /* P22: sidebar tabs: icon (+ label when --vfjs-pdf-tab-label-display shows it); wrap, never cut */
    > .vfjs-pdf-tabs { flex-wrap: wrap; }
  }
  .vfjs-pdf-tabs { display: flex; gap: var(--_vfjs-pdf-space); padding: var(--_vfjs-pdf-sidebar-padding) var(--_vfjs-pdf-sidebar-padding) 0; }
  .vfjs-pdf-tab { flex: 1; min-width: 0; padding-inline: var(--_vfjs-pdf-space); font-size: var(--vfjs-font-size-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    &[aria-selected='true'] { background: var(--vfjs-pdf-btn-active-bg, var(--vfjs-active-bg)); border-color: var(--vfjs-pdf-btn-hover-border-color, var(--_vfjs-pdf-accent)); }
  }
  .vfjs-pdf-side-tab {
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--vfjs-pdf-tab-gap, var(--_vfjs-pdf-space));
    overflow: visible;
    text-overflow: clip;
  }
  .vfjs-pdf-tab-icon { display: inline-flex; flex: none; inline-size: var(--vfjs-pdf-tab-icon-size, calc(var(--vfjs-size-unit) * 16)); block-size: var(--vfjs-pdf-tab-icon-size, calc(var(--vfjs-size-unit) * 16));
    > svg { inline-size: 100%; block-size: 100%; }
  }
  .vfjs-pdf-tab-label { display: var(--vfjs-pdf-tab-label-display, none); }
  .vfjs-pdf-sidebar-panel { flex: 1; min-height: 0; overflow: auto; position: relative; padding: var(--_vfjs-pdf-sidebar-padding); }
  .vfjs-pdf-thumbs { display: flex; flex-direction: column; align-items: center; gap: var(--_vfjs-pdf-thumb-gap); }
  .vfjs-pdf-thumb-item { display: flex; flex-direction: column; align-items: center; gap: var(--_vfjs-pdf-space); cursor: pointer;
    &:focus-visible { outline: none;
      .vfjs-pdf-thumb {
        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-pdf-thumb {
    display: block;
    flex: none;
    overflow: hidden;
    width: var(--_vfjs-pdf-thumb-width);
    background: var(--vfjs-pdf-thumb-bg, var(--_vfjs-pdf-page-bg));
    border: var(--vfjs-pdf-thumb-border, var(--vfjs-border-width) solid var(--vfjs-border));
    border-radius: var(--vfjs-pdf-thumb-radius, var(--vfjs-radius-xs));
    box-shadow: var(--vfjs-pdf-thumb-shadow, var(--vfjs-shadow-xs));
    cursor: pointer;
    > canvas { display: block; width: 100%; height: 100%; }
    &:hover { border-color: var(--vfjs-pdf-thumb-hover-border-color, var(--_vfjs-pdf-muted)); }
    &.vfjs-pdf-is-active { outline: var(--vfjs-pdf-thumb-active-width, var(--vfjs-border-width-thick)) solid var(--vfjs-pdf-thumb-active-color, var(--_vfjs-pdf-accent)); }
  }
  .vfjs-pdf-thumb-label { color: var(--vfjs-pdf-thumb-label-fg, var(--_vfjs-pdf-muted)); font-size: var(--vfjs-pdf-thumb-label-size, var(--vfjs-font-size-xs)); text-align: center; }
  .vfjs-pdf-outline-item {
    display: flex;
    align-items: baseline;
    gap: var(--_vfjs-pdf-space);
    padding: var(--_vfjs-pdf-space) calc(var(--_vfjs-pdf-space) * 2);
    border-radius: var(--vfjs-radius-sm);
    font-size: var(--_vfjs-pdf-font-size);
    cursor: pointer;
    &:hover { background: var(--_vfjs-pdf-outline-hover-bg); }
    &.vfjs-pdf-is-active { background: var(--vfjs-pdf-outline-active-bg, var(--vfjs-selected-bg)); color: var(--vfjs-pdf-outline-active-fg, var(--vfjs-selected-fg)); }
  }
  .vfjs-pdf-outline-toggle { flex: none; width: var(--_vfjs-pdf-outline-indent); color: var(--_vfjs-pdf-muted); text-align: center; }
  .vfjs-pdf-outline-group { padding-inline-start: var(--_vfjs-pdf-outline-indent); }
  .vfjs-pdf-outline-node {
    &:focus-visible { outline: none;
      > .vfjs-pdf-outline-item {
        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-pdf-outline-empty { color: var(--_vfjs-pdf-muted); font-size: var(--_vfjs-pdf-font-size); }
  /* P18: layers panel; the detail tile of a deeply zoomed page (over the page canvas, under every layer) */
  .vfjs-pdf-layer {
    display: flex;
    align-items: center;
    gap: var(--vfjs-pdf-layer-gap, calc(var(--_vfjs-pdf-space) * 2));
    padding: var(--_vfjs-pdf-space) calc(var(--_vfjs-pdf-space) * 2);
    border-radius: var(--vfjs-radius-sm);
    font-size: var(--_vfjs-pdf-font-size);
    cursor: pointer;
    &:hover { background: var(--vfjs-pdf-layer-hover-bg, var(--_vfjs-pdf-outline-hover-bg)); }
    &.vfjs-pdf-is-locked { color: var(--vfjs-pdf-layer-locked-fg, var(--_vfjs-pdf-muted)); cursor: default; }
  }
  .vfjs-pdf-layer-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .vfjs-pdf-detail { position: absolute; pointer-events: none; }

  .vfjs-pdf-main { position: relative; }
  .vfjs-pdf-annotbar {
    display: flex;
    align-items: center;
    gap: var(--_vfjs-pdf-space);
    padding: var(--_vfjs-pdf-toolbar-padding-y) var(--_vfjs-pdf-toolbar-padding-x);
    color: var(--_vfjs-pdf-toolbar-fg);
    background: var(--vfjs-pdf-annotbar-bg, var(--_vfjs-pdf-toolbar-bg));
    border-bottom: var(--vfjs-pdf-annotbar-border, var(--_vfjs-pdf-toolbar-border));
    flex-wrap: wrap;
    position: relative;
  }
  .vfjs-pdf-annotbar[hidden], .vfjs-pdf-annot-menu[hidden], .vfjs-pdf-sign-panel[hidden], .vfjs-pdf-sign-img[hidden] { display: none; }
  .vfjs-pdf-tool { min-width: calc(var(--_vfjs-pdf-swatch-size) * 1.6); }
  .vfjs-pdf-btn:disabled { opacity: .45; cursor: default; }
  .vfjs-pdf-btn-primary { background: var(--_vfjs-pdf-accent); color: var(--vfjs-accent-fg); border-color: var(--_vfjs-pdf-accent); }
  .vfjs-pdf-swatches { display: inline-flex; align-items: center; gap: var(--_vfjs-pdf-space); }
  .vfjs-pdf-swatch {
    inline-size: var(--_vfjs-pdf-swatch-size);
    block-size: var(--_vfjs-pdf-swatch-size);
    padding: 0;
    border: var(--vfjs-border-width) solid var(--vfjs-border);
    border-radius: 50%;
    background: var(--vfjs-pdf-swatch, var(--_vfjs-pdf-accent));
    cursor: pointer;
    &[aria-pressed='true'], &:hover { outline: var(--vfjs-border-width-thick) solid var(--_vfjs-pdf-accent); }
  }
  .vfjs-pdf-select, .vfjs-pdf-range { font: inherit; font-size: var(--_vfjs-pdf-font-size); color: var(--_vfjs-pdf-input-fg); background: var(--_vfjs-pdf-input-bg); border: var(--_vfjs-pdf-input-border); border-radius: var(--_vfjs-pdf-input-radius); }
  .vfjs-pdf-range { inline-size: calc(var(--vfjs-size-unit) * 72); padding: 0; }
  .vfjs-pdf-annot-menu {
    position: absolute;
    top: 100%;
    z-index: var(--_vfjs-pdf-annot-z);
    display: flex;
    flex-direction: column;
    min-inline-size: calc(var(--vfjs-size-unit) * 180);
    max-block-size: calc(var(--vfjs-size-unit) * 320);
    overflow: auto;
    padding: var(--_vfjs-pdf-space);
    color: var(--vfjs-pdf-annot-popup-fg, var(--vfjs-fg));
    background: var(--vfjs-pdf-annot-popup-bg, var(--vfjs-bg));
    border: var(--_vfjs-pdf-annot-popup-border);
    border-radius: var(--vfjs-pdf-annot-popup-radius, var(--vfjs-radius));
    box-shadow: var(--vfjs-pdf-annot-popup-shadow, var(--vfjs-shadow-lg));
  }
  .vfjs-pdf-menu-item {
    font: inherit;
    font-size: var(--_vfjs-pdf-font-size);
    text-align: start;
    color: inherit;
    background: transparent;
    border: 0;
    border-radius: var(--vfjs-radius-sm);
    padding: var(--_vfjs-pdf-space) calc(var(--_vfjs-pdf-space) * 2);
    cursor: pointer;
    &:hover, &:focus-visible { background: var(--_vfjs-pdf-outline-hover-bg); }
  }
  /* annotation layer: overlay canvas + interaction layer in pt (scaled by the zoom) */
  .vfjs-pdf-annots { position: absolute; top: 0; left: 0; /* physical: PDF page geometry */ pointer-events: none; }
  .vfjs-pdf-annot-layer { position: absolute; top: 0; left: 0; /* physical: PDF page geometry */ transform-origin: 0 0; pointer-events: none;
    &.vfjs-pdf-is-drawing { pointer-events: auto; cursor: crosshair; touch-action: none; }
  }
  .vfjs-pdf-annot { position: absolute; pointer-events: none; border-radius: var(--vfjs-radius-xs);
    &:focus { outline: none; }
    &:focus-visible {
      outline: calc(var(--vfjs-focus-ring-width) / var(--vfjs-pdf-zoom)) var(--vfjs-focus-ring-style) var(--vfjs-focus-ring-color, var(--vfjs-accent));
      outline-offset: calc(var(--vfjs-focus-ring-offset) / var(--vfjs-pdf-zoom));
    }
    &.vfjs-pdf-is-selected { outline: calc(var(--vfjs-border-width) / var(--vfjs-pdf-zoom)) dashed var(--vfjs-pdf-annot-selected, var(--_vfjs-pdf-accent)); }
  }
  .vfjs-pdf-annot-handle {
    position: absolute;
    inline-size: calc(var(--vfjs-pdf-annot-handle-size, calc(var(--vfjs-size-unit) * 8)) / var(--vfjs-pdf-zoom));
    block-size: calc(var(--vfjs-pdf-annot-handle-size, calc(var(--vfjs-size-unit) * 8)) / var(--vfjs-pdf-zoom));
    transform: translate(-50%, -50%);
    background: var(--vfjs-pdf-annot-handle, var(--_vfjs-pdf-accent));
    border: calc(var(--vfjs-border-width) / var(--vfjs-pdf-zoom)) solid var(--_vfjs-pdf-page-bg);
    border-radius: var(--vfjs-radius-xs);
    pointer-events: auto;
    touch-action: none;
  }
  .vfjs-pdf-annot-handle-nw, .vfjs-pdf-annot-handle-se { cursor: nwse-resize; }
  .vfjs-pdf-annot-handle-ne, .vfjs-pdf-annot-handle-sw { cursor: nesw-resize; }
  .vfjs-pdf-annot-handle-n, .vfjs-pdf-annot-handle-s { cursor: ns-resize; }
  .vfjs-pdf-annot-handle-e, .vfjs-pdf-annot-handle-w { cursor: ew-resize; }
  .vfjs-pdf-annot-handle-point { cursor: move; border-radius: 50%; }
  .vfjs-pdf-body.vfjs-pdf-is-placing .vfjs-pdf-page { cursor: copy; }
  /* note popup (with replies), free text editor */
  .vfjs-pdf-annot-popup {
    position: absolute;
    z-index: var(--_vfjs-pdf-annot-z);
    inline-size: var(--vfjs-pdf-annot-popup-width, calc(var(--vfjs-size-unit) * 240));
    max-inline-size: calc(100% - calc(var(--_vfjs-pdf-space) * 2));
    display: flex;
    flex-direction: column;
    gap: calc(var(--_vfjs-pdf-space) * 2);
    padding: var(--vfjs-pdf-annot-popup-padding, calc(var(--_vfjs-pdf-space) * 3));
    color: var(--vfjs-pdf-annot-popup-fg, var(--vfjs-fg));
    background: var(--vfjs-pdf-annot-popup-bg, var(--vfjs-bg));
    border: var(--_vfjs-pdf-annot-popup-border);
    border-radius: var(--vfjs-pdf-annot-popup-radius, var(--vfjs-radius));
    box-shadow: var(--vfjs-pdf-annot-popup-shadow, var(--vfjs-shadow-lg));
    font-size: var(--_vfjs-pdf-font-size);
  }
  .vfjs-pdf-annot-meta { color: var(--_vfjs-pdf-muted); font-size: var(--vfjs-font-size-xs); }
  .vfjs-pdf-annot-input {
    font: inherit;
    color: var(--_vfjs-pdf-input-fg);
    background: var(--_vfjs-pdf-input-bg);
    border: var(--_vfjs-pdf-input-border);
    border-radius: var(--_vfjs-pdf-input-radius);
    padding: var(--_vfjs-pdf-space) calc(var(--_vfjs-pdf-space) * 2);
    resize: vertical;
  }
  .vfjs-pdf-annot-replies { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--_vfjs-pdf-space); max-block-size: calc(var(--vfjs-size-unit) * 160); overflow: auto; }
  .vfjs-pdf-annot-reply { padding-inline-start: calc(var(--_vfjs-pdf-space) * 2); border-inline-start: var(--vfjs-border-width-thick) solid var(--vfjs-border); }
  .vfjs-pdf-annot-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--_vfjs-pdf-space); }
  .vfjs-pdf-annot-editor {
    position: absolute;
    z-index: var(--_vfjs-pdf-annot-z);
    box-sizing: border-box;
    margin: 0;
    padding: var(--_vfjs-pdf-space);
    font-family: var(--_vfjs-pdf-font);
    line-height: var(--vfjs-line-height-tight);
    background: var(--vfjs-pdf-annot-editor-bg, color-mix(in srgb, var(--vfjs-white) 85%, transparent));
    border: var(--vfjs-pdf-annot-editor-border, var(--vfjs-border-width) dashed var(--_vfjs-pdf-accent));
    resize: both;
  }
  /* P7 signature dialog */
  .vfjs-pdf-sign-backdrop {
    position: absolute;
    inset: 0;
    z-index: var(--vfjs-pdf-sign-z, var(--vfjs-z-modal));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--_vfjs-pdf-space) * 3);
    background: var(--vfjs-pdf-sign-backdrop, color-mix(in srgb, var(--vfjs-black) 35%, transparent));
  }
  .vfjs-pdf-sign-dialog {
    inline-size: var(--vfjs-pdf-sign-width, calc(var(--vfjs-size-unit) * 440));
    max-inline-size: 100%;
    max-block-size: 100%;
    overflow: auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: calc(var(--_vfjs-pdf-space) * 2);
    padding: calc(var(--_vfjs-pdf-space) * 4);
    color: var(--vfjs-pdf-annot-popup-fg, var(--vfjs-fg));
    background: var(--vfjs-pdf-annot-popup-bg, var(--vfjs-bg));
    border: var(--_vfjs-pdf-annot-popup-border);
    border-radius: var(--vfjs-pdf-annot-popup-radius, var(--vfjs-radius));
    box-shadow: var(--vfjs-pdf-annot-popup-shadow, var(--vfjs-shadow-lg));
  }
  .vfjs-pdf-sign-title { font-weight: var(--vfjs-font-weight-semibold); font-size: var(--vfjs-font-size-lg); }
  .vfjs-pdf-sign-panel { display: flex; flex-direction: column; gap: calc(var(--_vfjs-pdf-space) * 2); }
  .vfjs-pdf-sign-pad {
    display: block;
    inline-size: 100%;
    block-size: var(--vfjs-pdf-sign-pad-height, calc(var(--vfjs-size-unit) * 160));
    background: var(--vfjs-pdf-sign-pad-bg, var(--vfjs-white));
    border: var(--vfjs-pdf-sign-pad-border, var(--vfjs-border-width) dashed var(--vfjs-border));
    border-radius: var(--vfjs-radius-sm);
    touch-action: none;
    cursor: crosshair;
  }
  .vfjs-pdf-sign-name { font: inherit; padding: var(--_vfjs-pdf-space) calc(var(--_vfjs-pdf-space) * 2); color: var(--_vfjs-pdf-input-fg); background: var(--_vfjs-pdf-input-bg); border: var(--_vfjs-pdf-input-border); border-radius: var(--_vfjs-pdf-input-radius); }
  .vfjs-pdf-sign-preview {
    min-block-size: calc(var(--vfjs-pdf-sign-preview-size, calc(var(--vfjs-font-size) * 2.5)) * 1.6);
    font-size: var(--vfjs-pdf-sign-preview-size, calc(var(--vfjs-font-size) * 2.5));
    font-family: var(--_vfjs-pdf-signature-font);
    font-style: italic;
    background: var(--vfjs-pdf-sign-pad-bg, var(--vfjs-white));
    border: var(--vfjs-pdf-sign-pad-border, var(--vfjs-border-width) dashed var(--vfjs-border));
    border-radius: var(--vfjs-radius-sm);
    padding-inline: calc(var(--_vfjs-pdf-space) * 2);
    overflow: hidden;
    white-space: nowrap;
  }
  .vfjs-pdf-sign-img, .vfjs-pdf-sign-thumb { max-inline-size: 100%; max-block-size: calc(var(--vfjs-size-unit) * 80); object-fit: contain; }
  .vfjs-pdf-sign-saved { display: flex; flex-wrap: wrap; gap: calc(var(--_vfjs-pdf-space) * 2); }
  .vfjs-pdf-sign-saved-item { padding: var(--_vfjs-pdf-space); background: var(--vfjs-pdf-sign-pad-bg, var(--vfjs-white)); border: var(--vfjs-pdf-thumb-border, var(--vfjs-border-width) solid var(--vfjs-border)); border-radius: var(--vfjs-radius-sm); cursor: pointer;
    &[aria-selected='true'] { outline: var(--vfjs-border-width-thick) solid var(--_vfjs-pdf-accent); }
  }
  .vfjs-pdf-sign-note { margin: 0; color: var(--_vfjs-pdf-muted); font-size: var(--vfjs-font-size-xs); }

  /* P8 page tool bar (rotate, move, delete, insert, undo / redo) above the thumbnails */
  .vfjs-pdf-pagebar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--vfjs-pdf-pagebar-gap, var(--_vfjs-pdf-space));
    padding: var(--vfjs-pdf-pagebar-padding, calc(var(--_vfjs-pdf-space) * 2)) var(--_vfjs-pdf-sidebar-padding);
    border-block-end: var(--vfjs-pdf-pagebar-border, var(--_vfjs-pdf-toolbar-border));
    > .vfjs-pdf-btn:disabled { opacity: var(--vfjs-disabled-opacity); cursor: default; }
  }
  .vfjs-pdf-pagebar[hidden], .vfjs-pdf-file { display: none; }
  /* selected / dragged thumbnails, the drop marker (line before / after a thumbnail) */
  .vfjs-pdf-thumbs.vfjs-pdf-is-editable .vfjs-pdf-thumb-item {
    position: relative;
    padding: var(--_vfjs-pdf-space);
    border-radius: var(--vfjs-pdf-thumb-selected-radius, var(--vfjs-radius-sm));
    user-select: none;
  }
  .vfjs-pdf-thumb-item {
    &.vfjs-pdf-is-selected { background: var(--vfjs-pdf-thumb-selected-bg, color-mix(in srgb, var(--_vfjs-pdf-accent) 14%, transparent));
      .vfjs-pdf-thumb { border-color: var(--vfjs-pdf-thumb-selected-color, var(--_vfjs-pdf-accent)); }
    }
    &.vfjs-pdf-is-dragging { opacity: var(--vfjs-pdf-thumb-dragging-opacity, var(--vfjs-disabled-opacity)); }
    &.vfjs-pdf-drop-before::before, &.vfjs-pdf-drop-after::after {
      content: '';
      position: absolute;
      inset-inline: 0;
      block-size: var(--_vfjs-pdf-drop-width);
      background: var(--vfjs-pdf-drop-color, var(--_vfjs-pdf-accent));
      border-radius: var(--vfjs-radius-pill);
    }
    &.vfjs-pdf-drop-before::before { inset-block-start: calc(var(--_vfjs-pdf-thumb-gap) / -2 - var(--_vfjs-pdf-drop-width) / 2); }
    &.vfjs-pdf-drop-after::after { inset-block-end: calc(var(--_vfjs-pdf-thumb-gap) / -2 - var(--_vfjs-pdf-drop-width) / 2); }
  }
  .vfjs-pdf-thumbs.vfjs-pdf-is-dropping { background: var(--vfjs-pdf-drop-highlight, color-mix(in srgb, var(--_vfjs-pdf-accent) 10%, transparent)); }

  /* P11 form layer: one HTML control per widget, on top of the page */
  .vfjs-pdf-form-layer {
    position: absolute;
    top: 0; /* physical: PDF page geometry */
    left: 0; /* physical: PDF page geometry */
    transform-origin: 0 0;
    z-index: var(--vfjs-pdf-form-z, calc(var(--vfjs-z-base) + 3));
    pointer-events: none;
    &[hidden] { display: none; }
  }
  .vfjs-pdf-field {
    position: absolute;
    box-sizing: border-box;
    margin: 0;
    padding: 0 var(--vfjs-pdf-field-padding, var(--_vfjs-pdf-space));
    pointer-events: auto;
    font-family: var(--vfjs-pdf-field-font, var(--vfjs-font));
    font-size: var(--vfjs-pdf-field-font-size, var(--vfjs-font-size-xs));
    line-height: var(--vfjs-line-height-none);
    color: var(--vfjs-pdf-field-fg, var(--vfjs-slate-900));
    background: var(--vfjs-pdf-field-own-bg, var(--vfjs-pdf-field-bg, var(--_vfjs-pdf-page-bg)));
    border: var(--vfjs-pdf-field-border-width, var(--vfjs-border-width)) solid var(--vfjs-pdf-field-own-border, var(--vfjs-pdf-field-border, var(--vfjs-slate-400)));
    border-radius: var(--vfjs-pdf-field-radius, 0);
    &:focus { background: var(--vfjs-pdf-field-focus-bg, color-mix(in srgb, var(--_vfjs-pdf-accent) 8%, var(--vfjs-pdf-field-bg, var(--_vfjs-pdf-page-bg)))); }
    &:focus-visible {
      outline: var(--vfjs-focus-ring-width) var(--vfjs-focus-ring-style) var(--vfjs-focus-ring-color, var(--vfjs-accent));
      outline-offset: 0;
    }
  }
  textarea.vfjs-pdf-field { padding-block: var(--vfjs-pdf-field-padding, var(--_vfjs-pdf-space)); resize: none; }
  select.vfjs-pdf-field { padding-block: 0; }
  .vfjs-pdf-field-checkbox, .vfjs-pdf-field-radio { padding: 0; accent-color: var(--vfjs-pdf-field-accent, var(--_vfjs-pdf-accent)); cursor: pointer; }
  .vfjs-pdf-field-button {
    background: var(--vfjs-pdf-field-own-bg, var(--vfjs-pdf-field-button-bg, var(--_vfjs-pdf-btn-hover-bg)));
    color: var(--vfjs-pdf-field-button-fg, var(--vfjs-pdf-field-fg, var(--vfjs-slate-900)));
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
  }
  /* signature field: transparent over the drawn signature, highlighted on hover / focus */
  .vfjs-pdf-field-signature { background: transparent; border-style: dashed; cursor: pointer;
    &:hover, &:focus {
      background: var(--vfjs-pdf-field-sign-bg, color-mix(in srgb, var(--_vfjs-pdf-accent) 6%, transparent));
      border-color: var(--vfjs-pdf-field-sign-border, var(--_vfjs-pdf-accent));
    }
    &.vfjs-pdf-is-signed { border-color: transparent; }
  }
  .vfjs-pdf-field {
    &.vfjs-pdf-is-invalid { border-color: var(--vfjs-pdf-field-invalid, var(--vfjs-danger)); }
    &:disabled, &[aria-readonly='true'] { cursor: default; opacity: var(--vfjs-disabled-opacity); }
  }

  /* P13 redaction bar (under the toolbar) */
  .vfjs-pdf-redactbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--_vfjs-pdf-toolbar-gap);
    padding: var(--_vfjs-pdf-toolbar-padding-y) var(--_vfjs-pdf-toolbar-padding-x);
    color: var(--_vfjs-pdf-toolbar-fg);
    background: var(--vfjs-pdf-redactbar-bg, var(--vfjs-danger-soft));
    border-block-end: var(--vfjs-pdf-redactbar-border, var(--_vfjs-pdf-toolbar-border));
    .vfjs-pdf-btn:disabled { opacity: var(--vfjs-disabled-opacity); cursor: default; }
  }
  .vfjs-pdf-redactbar[hidden], .vfjs-pdf-redact-confirm[hidden], .vfjs-pdf-redact-apply[hidden] { display: none; }
  .vfjs-pdf-redact-query {
    inline-size: var(--vfjs-pdf-search-width, calc(var(--vfjs-size-unit) * 180));
    max-inline-size: 100%;
    font: inherit;
    font-size: var(--_vfjs-pdf-font-size);
    color: var(--_vfjs-pdf-input-fg);
    background: var(--_vfjs-pdf-input-bg);
    border: var(--_vfjs-pdf-input-border);
    border-radius: var(--_vfjs-pdf-input-radius);
    padding-block: var(--_vfjs-pdf-space);
    padding-inline: calc(var(--_vfjs-pdf-space) * 1.5);
    &:disabled { opacity: var(--vfjs-disabled-opacity); }
  }
  .vfjs-pdf-redact-kind {
    font: inherit;
    font-size: var(--_vfjs-pdf-font-size);
    color: var(--_vfjs-pdf-input-fg);
    background: var(--_vfjs-pdf-input-bg);
    border: var(--_vfjs-pdf-input-border);
    border-radius: var(--_vfjs-pdf-input-radius);
    padding-block: var(--_vfjs-pdf-space);
    padding-inline: var(--_vfjs-pdf-space);
  }
  .vfjs-pdf-redact-sep { inline-size: var(--_vfjs-pdf-toolbar-gap); }
  .vfjs-pdf-redact-status, .vfjs-pdf-redact-count { font-size: var(--_vfjs-pdf-font-size); color: var(--_vfjs-pdf-label-fg); }
  .vfjs-pdf-redact-confirm { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--_vfjs-pdf-toolbar-gap); font-size: var(--_vfjs-pdf-font-size); }
  .vfjs-pdf-redact-question { font-weight: var(--vfjs-font-weight-semibold); }
  /* marks over the pages (percent of the page box: zoom / rotation follow) */
  .vfjs-pdf-redact-layer { position: absolute; inset: 0; pointer-events: none; z-index: var(--vfjs-pdf-redact-z, calc(var(--vfjs-z-base) + 4)); }
  .vfjs-pdf.vfjs-pdf-is-redacting .vfjs-pdf-redact-layer { pointer-events: auto; cursor: crosshair; }
  .vfjs-pdf-redact-mark {
    position: absolute;
    box-sizing: border-box;
    background: var(--vfjs-pdf-redact-mark-bg, color-mix(in srgb, var(--vfjs-black) 22%, transparent));
    border: var(--vfjs-pdf-redact-mark-border, var(--vfjs-border-width-thick) dashed var(--vfjs-danger));
    &.vfjs-pdf-is-current { border: var(--vfjs-pdf-redact-current-border, var(--vfjs-border-width-thick) solid var(--vfjs-danger)); }
  }
  .vfjs-pdf-redact-draft { background: var(--vfjs-pdf-redact-draft-bg, color-mix(in srgb, var(--vfjs-danger) 18%, transparent)); }
  /* list of marks (next to the pages) */
  .vfjs-pdf-redact-list {
    flex: none;
    inline-size: var(--vfjs-pdf-redact-list-width, calc(var(--vfjs-size-unit) * 220));
    overflow: auto;
    background: var(--vfjs-pdf-redact-list-bg, var(--_vfjs-pdf-sidebar-bg));
    border-inline-start: var(--vfjs-pdf-redact-list-border, var(--_vfjs-pdf-sidebar-border));
    padding: var(--_vfjs-pdf-sidebar-padding);
    font-size: var(--_vfjs-pdf-font-size);
  }
  .vfjs-pdf-redact-item {
    display: flex;
    align-items: center;
    gap: var(--_vfjs-pdf-space);
    padding: var(--vfjs-pdf-redact-item-padding, var(--_vfjs-pdf-space) calc(var(--_vfjs-pdf-space) * 2));
    border-radius: var(--vfjs-radius-sm);
    cursor: pointer;
    &:hover { background: var(--vfjs-pdf-redact-item-hover-bg, var(--_vfjs-pdf-outline-hover-bg)); }
    &.vfjs-pdf-is-current, &[aria-selected='true'] { background: var(--_vfjs-pdf-redact-item-current-bg); }
  }
  .vfjs-pdf-redact-item-text { flex: 1; min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  /* P17 comparison */
  .vfjs-pdf-compare {
    display: flex;
    flex-direction: column;
    color: var(--_vfjs-pdf-fg);
    font-family: var(--_vfjs-pdf-font);
    background: var(--_vfjs-pdf-bg);
    border: var(--_vfjs-pdf-border);
    border-radius: var(--vfjs-pdf-radius, var(--vfjs-radius));
    overflow: hidden;
    /* S29: default height only while the container has none (an explicit height is kept exactly) */
    &.vfjs-auto-height { min-height: var(--vfjs-pdf-compare-min-height, calc(var(--vfjs-size-unit) * 400)); block-size: var(--vfjs-pdf-compare-min-height, calc(var(--vfjs-size-unit) * 400)); }
    /* P20 / S30: a height from the layout (class vfjs-fit — also a min-height only): the documents never size it */
    &:is(.vfjs-fit, .vfjs-auto-height) > .vfjs-pdf-compare-main { flex: 1 1 0; }
  }
  .vfjs-pdf-compare-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--_vfjs-pdf-toolbar-gap);
    padding: var(--_vfjs-pdf-toolbar-padding-y) var(--_vfjs-pdf-toolbar-padding-x);
    color: var(--_vfjs-pdf-toolbar-fg);
    background: var(--_vfjs-pdf-toolbar-bg);
    border-block-end: var(--_vfjs-pdf-toolbar-border);
    .vfjs-pdf-btn:disabled { opacity: var(--vfjs-disabled-opacity); cursor: default; }
  }
  .vfjs-pdf-compare-summary { font-size: var(--_vfjs-pdf-font-size); }
  .vfjs-pdf-compare-main { flex: 1; display: flex; min-height: 0; }
  .vfjs-pdf-compare-panes { flex: 1; display: flex; gap: var(--vfjs-pdf-compare-gap, calc(var(--_vfjs-pdf-space) * 2)); min-width: 0; padding: var(--vfjs-pdf-compare-gap, calc(var(--_vfjs-pdf-space) * 2)); }
  .vfjs-pdf-compare-pane { flex: 1; display: flex; flex-direction: column; min-width: 0; }
  .vfjs-pdf-compare-pane[hidden], .vfjs-pdf-compare-list[hidden] { display: none; }
  .vfjs-pdf-compare-label { padding: var(--vfjs-pdf-compare-label-padding, var(--_vfjs-pdf-space) calc(var(--_vfjs-pdf-space) * 2)); color: var(--vfjs-pdf-compare-label-fg, var(--_vfjs-pdf-muted)); font-size: var(--_vfjs-pdf-font-size); }
  .vfjs-pdf-compare-viewer { flex: 1; display: flex; flex-direction: column; min-height: 0;
    > .vfjs-pdf { flex: 1; }
  }
  .vfjs-pdf-compare-list {
    flex: none;
    inline-size: var(--vfjs-pdf-compare-list-width, calc(var(--vfjs-size-unit) * 240));
    overflow: auto;
    background: var(--_vfjs-pdf-sidebar-bg);
    border-inline-start: var(--_vfjs-pdf-sidebar-border);
    padding: var(--_vfjs-pdf-sidebar-padding);
    font-size: var(--_vfjs-pdf-font-size);
  }
  .vfjs-pdf-compare-item {
    padding: var(--vfjs-pdf-redact-item-padding, var(--_vfjs-pdf-space) calc(var(--_vfjs-pdf-space) * 2));
    border-inline-start: var(--vfjs-border-width-thick) solid var(--vfjs-pdf-compare-item-replace, var(--vfjs-warning));
    margin-block-end: var(--_vfjs-pdf-space);
    border-radius: var(--vfjs-radius-sm);
    cursor: pointer;
    overflow-wrap: anywhere;
    &:hover { background: var(--vfjs-pdf-redact-item-hover-bg, var(--_vfjs-pdf-outline-hover-bg)); }
    &.vfjs-pdf-is-current { background: var(--_vfjs-pdf-redact-item-current-bg); }
  }
  .vfjs-pdf-compare-item-insert { border-inline-start-color: var(--vfjs-pdf-compare-item-ins, var(--vfjs-success)); }
  .vfjs-pdf-compare-item-delete { border-inline-start-color: var(--vfjs-pdf-compare-item-del, var(--vfjs-danger)); }
  /* highlights over the pages (percent of the page box) */
  .vfjs-pdf-diff-layer { position: absolute; inset: 0; pointer-events: none; }
  .vfjs-pdf-diff { position: absolute; box-sizing: border-box; pointer-events: auto;
    &.vfjs-pdf-is-current { outline: var(--vfjs-pdf-diff-current-outline, var(--vfjs-border-width-thick) solid var(--_vfjs-pdf-accent)); }
  }
  .vfjs-pdf-diff-ins { background: var(--vfjs-pdf-diff-ins, color-mix(in srgb, var(--vfjs-success) 32%, transparent)); }
  .vfjs-pdf-diff-del { background: var(--vfjs-pdf-diff-del, color-mix(in srgb, var(--vfjs-danger) 30%, transparent)); }
  .vfjs-pdf-diff-replace { outline: var(--vfjs-pdf-diff-replace-outline, var(--vfjs-border-width) solid var(--vfjs-warning)); }
  .vfjs-pdf-diff-caret { background: none; border-left: var(--vfjs-pdf-diff-caret-width, var(--vfjs-border-width-thick)) solid var(--vfjs-pdf-diff-caret-ins, var(--vfjs-success)); /* physical: a caret in PDF page geometry */ }
  .vfjs-pdf-diff-del-at { border-left-color: var(--vfjs-pdf-diff-caret-del, var(--vfjs-danger)); /* physical: a caret in PDF page geometry */ }

  /* P14 status line of a signed file (under the toolbar) */
  .vfjs-pdf-sigbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--_vfjs-pdf-toolbar-gap);
    padding: var(--_vfjs-pdf-toolbar-padding-y) var(--_vfjs-pdf-toolbar-padding-x);
    color: var(--_vfjs-pdf-toolbar-fg);
    background: var(--vfjs-pdf-sigbar-bg, var(--_vfjs-pdf-toolbar-bg));
    border-block-end: var(--vfjs-pdf-sigbar-border, var(--_vfjs-pdf-toolbar-border));
    font-size: var(--_vfjs-pdf-font-size);
    &[hidden] { display: none; }
    &.vfjs-pdf-sig-valid { background: var(--vfjs-pdf-sigbar-valid-bg, var(--vfjs-success-soft)); }
    &.vfjs-pdf-sig-modified { background: var(--vfjs-pdf-sigbar-modified-bg, var(--vfjs-danger-soft)); }
    &.vfjs-pdf-sig-invalid { background: var(--vfjs-pdf-sigbar-invalid-bg, var(--vfjs-danger-soft)); }
    &.vfjs-pdf-sig-unknown { background: var(--vfjs-pdf-sigbar-unknown-bg, var(--vfjs-warning-soft)); }
  }
  .vfjs-pdf-sigbar-text { flex: 1; min-inline-size: 0; }
  .vfjs-pdf-sig-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    inline-size: var(--vfjs-pdf-sig-badge-size, calc(var(--vfjs-size-unit) * 18));
    block-size: var(--vfjs-pdf-sig-badge-size, calc(var(--vfjs-size-unit) * 18));
    border-radius: var(--vfjs-radius-full);
    color: var(--vfjs-pdf-sig-badge-fg, var(--vfjs-white));
    background: var(--vfjs-pdf-sig-checking, var(--_vfjs-pdf-muted));
    font-size: var(--vfjs-pdf-sig-badge-font-size, var(--vfjs-font-size-xs));
    font-weight: var(--vfjs-font-weight-semibold);
    line-height: var(--vfjs-line-height-none);
  }
  .vfjs-pdf-sig-valid {
    .vfjs-pdf-sig-badge { background: var(--vfjs-pdf-sig-valid, var(--vfjs-success)); }
    > .vfjs-pdf-sig-head .vfjs-pdf-sig-status { color: var(--vfjs-pdf-sig-valid, var(--vfjs-success)); }
  }
  .vfjs-pdf-sig-modified .vfjs-pdf-sig-badge { background: var(--vfjs-pdf-sig-modified, var(--vfjs-danger)); }
  .vfjs-pdf-sig-invalid .vfjs-pdf-sig-badge { background: var(--vfjs-pdf-sig-invalid, var(--vfjs-danger)); }
  .vfjs-pdf-sig-unknown .vfjs-pdf-sig-badge { background: var(--vfjs-pdf-sig-unknown, var(--vfjs-warning)); }
  /* "Signatures" tab of the sidebar: wider while it is open; the three tabs wrap instead of being cut */
  .vfjs-pdf-sidebar.vfjs-pdf-is-signatures { flex-basis: var(--vfjs-pdf-sig-panel-width, calc(var(--vfjs-size-unit) * 300)); }
  .vfjs-pdf-has-signatures {
    .vfjs-pdf-tabs { flex-wrap: wrap; }
    .vfjs-pdf-tab { flex: 1 1 auto; }
  }
  .vfjs-pdf-sigs { display: flex; flex-direction: column; gap: var(--vfjs-pdf-sig-item-gap, var(--_vfjs-pdf-space)); font-size: var(--_vfjs-pdf-font-size); }
  .vfjs-pdf-sig-item {
    border: var(--vfjs-pdf-sig-item-border, var(--vfjs-border-width) solid var(--vfjs-border));
    border-radius: var(--vfjs-pdf-sig-item-radius, var(--vfjs-radius-sm));
    background: var(--vfjs-pdf-sig-item-bg, transparent);
  }
  .vfjs-pdf-sig-head {
    display: flex;
    align-items: center;
    gap: var(--vfjs-pdf-sig-item-gap, var(--_vfjs-pdf-space));
    padding: var(--_vfjs-pdf-sig-item-padding);
    cursor: pointer;
    &:hover { background: var(--vfjs-pdf-sig-item-hover-bg, var(--_vfjs-pdf-outline-hover-bg)); }
  }
  .vfjs-pdf-sig-title { flex: 1; min-inline-size: 0; display: flex; flex-direction: column; }
  .vfjs-pdf-sig-name { overflow-wrap: anywhere; font-weight: var(--vfjs-font-weight-semibold); }
  .vfjs-pdf-sig-status { color: var(--vfjs-pdf-sig-line-fg, var(--_vfjs-pdf-muted)); }
  .vfjs-pdf-sig-modified > .vfjs-pdf-sig-head .vfjs-pdf-sig-status, .vfjs-pdf-sig-invalid > .vfjs-pdf-sig-head .vfjs-pdf-sig-status { color: var(--vfjs-pdf-sig-invalid, var(--vfjs-danger)); }
  .vfjs-pdf-sig-body { display: flex; flex-direction: column; align-items: flex-start; gap: var(--vfjs-pdf-sig-item-gap, var(--_vfjs-pdf-space)); padding: var(--_vfjs-pdf-sig-item-padding); }
  .vfjs-pdf-sig-line { color: var(--vfjs-pdf-sig-line-fg, var(--_vfjs-pdf-muted)); overflow-wrap: anywhere; }
  .vfjs-pdf-sig-strong { color: var(--_vfjs-pdf-fg); font-weight: var(--vfjs-font-weight-semibold); }
  .vfjs-pdf-sig-alert { color: var(--vfjs-pdf-sig-alert-fg, var(--vfjs-danger)); }
  .vfjs-pdf-sig-empty { color: var(--vfjs-pdf-sig-line-fg, var(--_vfjs-pdf-muted)); padding: var(--_vfjs-pdf-sig-item-padding); }

  /* P16 form / template designer */
  .vfjs-pdf-designer {
    display: flex;
    flex-direction: column;
    color: var(--vfjs-pdf-designer-fg, var(--_vfjs-pdf-fg));
    font-family: var(--vfjs-pdf-designer-font, var(--_vfjs-pdf-font));
    font-size: var(--vfjs-pdf-designer-font-size, var(--_vfjs-pdf-font-size));
    background: var(--vfjs-pdf-designer-bg, var(--_vfjs-pdf-bg));
    border: var(--vfjs-pdf-designer-border, var(--_vfjs-pdf-border));
    border-radius: var(--vfjs-pdf-designer-radius, var(--vfjs-pdf-radius, var(--vfjs-radius)));
    overflow: hidden;
    position: relative;
    /* S29: default height only while the container has none (an explicit height is kept exactly) */
    &.vfjs-auto-height { min-height: var(--vfjs-pdf-designer-min-height, calc(var(--vfjs-size-unit) * 520)); }
    .vfjs-pdf-btn:disabled, .vfjs-pdf-btn[aria-disabled='true'] { opacity: var(--vfjs-disabled-opacity); cursor: default; }
    /* S30: in a container that sets its height (class vfjs-fit of core) the designer keeps it: its main part shrinks */
    &.vfjs-fit > .vfjs-pdf-designer-main { flex: 1 1 0; min-height: 0; }
    &.vfjs-pdf-is-preview .vfjs-pdf-designer-el:not(.vfjs-pdf-is-selected):not(:hover) { outline-color: transparent; }
    &.vfjs-pdf-is-readonly .vfjs-pdf-designer-el { cursor: default; }
  }
  .vfjs-pdf-designer-sep { inline-size: var(--vfjs-border-width); align-self: stretch; background: var(--vfjs-border); }
  .vfjs-pdf-designer-main {
    flex: 1;
    display: grid;
    grid-template-columns: var(--vfjs-pdf-designer-palette-width, calc(var(--vfjs-size-unit) * 150)) minmax(0, 1fr) var(--vfjs-pdf-designer-side-width, calc(var(--vfjs-size-unit) * 290));
    min-height: 0;
    &:has(> .vfjs-pdf-designer-side[hidden]) { grid-template-columns: var(--vfjs-pdf-designer-palette-width, calc(var(--vfjs-size-unit) * 150)) minmax(0, 1fr); }
  }
  /* palette */
  .vfjs-pdf-designer-palette {
    display: flex;
    flex-direction: column;
    gap: var(--vfjs-space-1);
    padding: var(--_vfjs-pdf-designer-gap);
    overflow: auto;
    background: var(--vfjs-pdf-designer-panel-bg, var(--_vfjs-pdf-toolbar-bg));
    border-inline-end: var(--vfjs-pdf-designer-panel-border, var(--_vfjs-pdf-toolbar-border));
  }
  .vfjs-pdf-designer-palette-head {
    margin-block: var(--vfjs-space-2) var(--vfjs-space-1);
    color: var(--vfjs-pdf-designer-head-fg, var(--_vfjs-pdf-muted));
    font-size: var(--vfjs-pdf-designer-head-size, var(--vfjs-font-size-sm));
    text-transform: uppercase;
    letter-spacing: var(--vfjs-letter-spacing-caps);
  }
  .vfjs-pdf-designer-tool {
    display: flex;
    align-items: center;
    gap: var(--vfjs-space-2);
    padding: var(--vfjs-pdf-designer-tool-padding, var(--vfjs-space-1));
    font: inherit;
    color: inherit;
    text-align: start;
    background: transparent;
    border: var(--vfjs-border-width) solid transparent;
    border-radius: var(--vfjs-pdf-designer-tool-radius, var(--vfjs-radius-sm));
    cursor: grab;
    touch-action: none;
    user-select: none;
    &:hover { background: var(--vfjs-pdf-designer-tool-hover-bg, color-mix(in srgb, var(--_vfjs-pdf-accent) 10%, transparent)); border-color: var(--vfjs-pdf-designer-outline, color-mix(in srgb, var(--_vfjs-pdf-accent) 40%, transparent)); }
  }
  .vfjs-pdf-designer-tool-icon {
    flex: 0 0 var(--vfjs-pdf-designer-tool-icon-size, calc(var(--vfjs-size-unit) * 20));
    inline-size: var(--vfjs-pdf-designer-tool-icon-size, calc(var(--vfjs-size-unit) * 20));
    text-align: center;
    color: var(--_vfjs-pdf-accent);
  }
  /* stage and page sheet (page geometry: physical) */
  .vfjs-pdf-designer-stage {
    position: relative;
    overflow: auto;
    padding: var(--vfjs-pdf-designer-stage-padding, var(--vfjs-space-4));
    background: var(--vfjs-pdf-designer-workspace, color-mix(in srgb, var(--_vfjs-pdf-bg) 90%, var(--vfjs-fg)));
    > .vfjs-pdf-notice { margin-block-end: var(--_vfjs-pdf-designer-gap); }
  }
  .vfjs-pdf-designer-sheet {
    position: relative;
    margin-inline: auto;
    background: var(--vfjs-pdf-designer-page-bg, var(--_vfjs-pdf-page-bg));
    box-shadow: var(--vfjs-pdf-designer-page-shadow, var(--vfjs-shadow-sm));
    touch-action: none;
  }
  .vfjs-pdf-designer-base, .vfjs-pdf-designer-canvas, .vfjs-pdf-designer-grid, .vfjs-pdf-designer-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
  .vfjs-pdf-designer-base[hidden], .vfjs-pdf-designer-grid[hidden] { display: none; }
  .vfjs-pdf-designer-grid {
    pointer-events: none;
    background-image:
      linear-gradient(to right, var(--vfjs-pdf-designer-grid-color, color-mix(in srgb, var(--_vfjs-pdf-accent) 13%, transparent)) var(--_vfjs-pdf-designer-grid-width), transparent var(--_vfjs-pdf-designer-grid-width)),
      linear-gradient(to bottom, var(--vfjs-pdf-designer-grid-color, color-mix(in srgb, var(--_vfjs-pdf-accent) 13%, transparent)) var(--_vfjs-pdf-designer-grid-width), transparent var(--_vfjs-pdf-designer-grid-width));
    background-size: var(--vfjs-pdf-designer-grid-step) var(--vfjs-pdf-designer-grid-step);
  }
  .vfjs-pdf-designer-layer { outline: none; }
  .vfjs-pdf-designer-el {
    position: absolute;
    box-sizing: border-box;
    outline: var(--vfjs-pdf-designer-outline-width, var(--vfjs-border-width)) dashed var(--vfjs-pdf-designer-idle-outline, color-mix(in srgb, var(--_vfjs-pdf-accent) 18%, transparent));
    cursor: move;
    &:hover { outline-color: var(--vfjs-pdf-designer-outline, color-mix(in srgb, var(--_vfjs-pdf-accent) 40%, transparent)); background: var(--vfjs-pdf-designer-hover-bg, color-mix(in srgb, var(--_vfjs-pdf-accent) 6%, transparent)); }
    &.vfjs-pdf-is-selected { outline: var(--vfjs-pdf-designer-outline-width, var(--vfjs-border-width)) solid var(--_vfjs-pdf-designer-selected); background: var(--vfjs-pdf-designer-selected-bg, color-mix(in srgb, var(--_vfjs-pdf-accent) 8%, transparent)); }
    &.vfjs-pdf-is-locked { cursor: default; outline-color: var(--vfjs-pdf-designer-locked-outline, var(--_vfjs-pdf-muted)); }
    &: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-pdf-designer-el-field { outline-color: var(--vfjs-pdf-designer-field-outline, color-mix(in srgb, var(--_vfjs-pdf-accent) 55%, transparent)); }
  .vfjs-pdf-designer-el-repeat { outline: var(--vfjs-pdf-designer-outline-width, var(--vfjs-border-width)) dashed var(--vfjs-pdf-designer-repeat-outline, var(--vfjs-warning)); }
  .vfjs-pdf-designer-frame {
    position: absolute;
    box-sizing: border-box;
    border: var(--vfjs-pdf-designer-outline-width, var(--vfjs-border-width)) solid var(--_vfjs-pdf-designer-selected);
    pointer-events: none;
  }
  .vfjs-pdf-designer-handle {
    position: absolute;
    box-sizing: border-box;
    inline-size: var(--_vfjs-pdf-designer-handle-size);
    block-size: var(--_vfjs-pdf-designer-handle-size);
    margin: calc(var(--_vfjs-pdf-designer-handle-size) / -2);
    background: var(--vfjs-pdf-designer-handle-bg, var(--vfjs-white));
    border: var(--vfjs-border-width) solid var(--vfjs-pdf-designer-handle-border, var(--_vfjs-pdf-accent));
    border-radius: var(--vfjs-radius-sm);
    pointer-events: auto;
    touch-action: none;
  }
  /* the eight handles sit OUTSIDE the frame (their inner edge touches it), so a handle never covers the first letter of a text */
  .vfjs-pdf-designer-handle-nw { left: 0; /* physical: page geometry */ top: 0; margin: calc(var(--_vfjs-pdf-designer-handle-size) * -1) 0 0 calc(var(--_vfjs-pdf-designer-handle-size) * -1); /* physical: page geometry */ cursor: nwse-resize; }
  .vfjs-pdf-designer-handle-n { left: 50%; /* physical: page geometry */ top: 0; margin-top: calc(var(--_vfjs-pdf-designer-handle-size) * -1); cursor: ns-resize; }
  .vfjs-pdf-designer-handle-ne { left: 100%; /* physical: page geometry */ top: 0; margin: calc(var(--_vfjs-pdf-designer-handle-size) * -1) 0 0 0; cursor: nesw-resize; }
  .vfjs-pdf-designer-handle-e { left: 100%; /* physical: page geometry */ top: 50%; margin-left: 0; /* physical: page geometry */ cursor: ew-resize; }
  .vfjs-pdf-designer-handle-se { left: 100%; /* physical: page geometry */ top: 100%; margin: 0; cursor: nwse-resize; }
  .vfjs-pdf-designer-handle-s { left: 50%; /* physical: page geometry */ top: 100%; margin-top: 0; cursor: ns-resize; }
  .vfjs-pdf-designer-handle-sw { left: 0; /* physical: page geometry */ top: 100%; margin: 0 0 0 calc(var(--_vfjs-pdf-designer-handle-size) * -1); /* physical: page geometry */ cursor: nesw-resize; }
  .vfjs-pdf-designer-handle-w { left: 0; /* physical: page geometry */ top: 50%; margin-left: calc(var(--_vfjs-pdf-designer-handle-size) * -1); /* physical: page geometry */ cursor: ew-resize; }
  .vfjs-pdf-designer-handle-pt { border-radius: var(--vfjs-radius-pill); cursor: crosshair; }
  .vfjs-pdf-designer-guide { position: absolute; pointer-events: none; background: var(--vfjs-pdf-designer-guide, var(--vfjs-pink-500)); }
  .vfjs-pdf-designer-guide-v { top: 0; bottom: 0; inline-size: var(--vfjs-pdf-designer-guide-width, var(--vfjs-border-width)); }
  .vfjs-pdf-designer-guide-h { left: 0; /* physical: page geometry */ right: 0; /* physical: page geometry */ block-size: var(--vfjs-pdf-designer-guide-width, var(--vfjs-border-width)); }
  .vfjs-pdf-designer-marquee {
    position: absolute;
    pointer-events: none;
    background: var(--vfjs-pdf-designer-marquee-bg, color-mix(in srgb, var(--_vfjs-pdf-accent) 10%, transparent));
    border: var(--vfjs-pdf-designer-marquee-border, var(--vfjs-border-width) dashed var(--_vfjs-pdf-accent));
  }
  .vfjs-pdf-designer-ghost {
    position: absolute;
    z-index: var(--vfjs-pdf-designer-z, var(--vfjs-z-drag));
    pointer-events: none;
    padding: var(--vfjs-space-1) var(--vfjs-space-2);
    color: var(--vfjs-pdf-designer-ghost-fg, var(--vfjs-accent-fg));
    background: var(--vfjs-pdf-designer-ghost-bg, var(--_vfjs-pdf-accent));
    border-radius: var(--vfjs-radius-sm);
    box-shadow: var(--vfjs-pdf-designer-ghost-shadow, var(--vfjs-shadow-lg));
    white-space: nowrap;
  }
  /* side panel */
  .vfjs-pdf-designer-side {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    background: var(--vfjs-pdf-designer-panel-bg, var(--_vfjs-pdf-toolbar-bg));
    border-inline-start: var(--vfjs-pdf-designer-panel-border, var(--_vfjs-pdf-toolbar-border));
    &[hidden] { display: none; }
  }
  .vfjs-pdf-designer-tabs { padding: var(--_vfjs-pdf-designer-gap) var(--_vfjs-pdf-designer-gap) 0; }
  .vfjs-pdf-designer-pane {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--_vfjs-pdf-designer-gap);
    padding: var(--_vfjs-pdf-designer-gap);
    overflow: auto;
    &[hidden] { display: none; }
  }
  .vfjs-pdf-designer-prop-head { font-weight: var(--vfjs-font-weight-semibold); }
  .vfjs-pdf-designer-prop { display: flex; flex-direction: column; gap: var(--vfjs-space-1); }
  .vfjs-pdf-designer-prop-bool { flex-direction: row; align-items: center; gap: var(--vfjs-space-2); }
  .vfjs-pdf-designer-prop-label { color: var(--vfjs-pdf-designer-label-fg, var(--_vfjs-pdf-label-fg)); font-size: var(--vfjs-font-size-sm); }
  .vfjs-pdf-designer-input {
    box-sizing: border-box;
    inline-size: 100%;
    font: inherit;
    color: var(--vfjs-pdf-designer-input-fg, var(--_vfjs-pdf-input-fg));
    background: var(--vfjs-pdf-designer-input-bg, var(--_vfjs-pdf-input-bg));
    border: var(--vfjs-pdf-designer-input-border, var(--_vfjs-pdf-input-border));
    border-radius: var(--vfjs-pdf-designer-input-radius, var(--_vfjs-pdf-input-radius));
    padding: var(--vfjs-space-1) var(--vfjs-space-2);
    &[aria-invalid='true'] { border-color: var(--vfjs-pdf-designer-invalid, var(--vfjs-danger)); }
  }
  textarea.vfjs-pdf-designer-input { resize: vertical; font-family: var(--vfjs-font-mono); font-size: var(--vfjs-font-size-sm); }
  .vfjs-pdf-designer-prop-hint { color: var(--vfjs-pdf-designer-label-fg, var(--_vfjs-pdf-label-fg)); font-size: var(--vfjs-font-size-sm); }
  .vfjs-pdf-designer-colors { display: flex; flex-wrap: wrap; align-items: center; gap: var(--vfjs-space-1); }
  .vfjs-pdf-designer-swatch {
    inline-size: var(--_vfjs-pdf-designer-swatch-size);
    block-size: var(--_vfjs-pdf-designer-swatch-size);
    padding: 0;
    background: var(--vfjs-pdf-designer-swatch);
    border: var(--vfjs-border-width) solid var(--vfjs-border);
    border-radius: var(--vfjs-radius-sm);
    cursor: pointer;
    &[aria-pressed='true'] { outline: var(--vfjs-border-width-thick) solid var(--_vfjs-pdf-designer-selected); outline-offset: var(--vfjs-border-width); }
  }
  .vfjs-pdf-designer-color {
    inline-size: calc(var(--_vfjs-pdf-designer-swatch-size) * 2);
    block-size: var(--_vfjs-pdf-designer-swatch-size);
    padding: 0;
    border: var(--vfjs-border-width) solid var(--vfjs-border);
    background: transparent;
  }
  .vfjs-pdf-designer-delete { align-self: flex-start; }
  .vfjs-pdf-designer-layers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--vfjs-space-1); }
  .vfjs-pdf-designer-layer-item { display: flex; gap: var(--vfjs-space-1); align-items: center;
    &.vfjs-pdf-is-selected .vfjs-pdf-designer-layer-select { border-color: var(--_vfjs-pdf-designer-selected); background: var(--vfjs-pdf-designer-selected-bg, color-mix(in srgb, var(--_vfjs-pdf-accent) 8%, transparent)); }
  }
  .vfjs-pdf-designer-layer-child { padding-inline-start: var(--vfjs-space-4); }
  .vfjs-pdf-designer-layer-select { flex: 1; min-width: 0; text-align: start; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .vfjs-pdf-designer-data { min-block-size: calc(var(--vfjs-size-unit) * 200); }
  .vfjs-pdf-designer-paths { margin: 0; padding-inline-start: var(--vfjs-space-4); font-size: var(--vfjs-font-size-sm); }
  .vfjs-pdf-designer-empty { color: var(--vfjs-pdf-designer-label-fg, var(--_vfjs-pdf-label-fg)); }

  :where(.vfjs-pdf-style-classic) .vfjs-pdf,
  .vfjs-pdf:where(.vfjs-pdf-style-classic) {
    --vfjs-pdf-bg: color-mix(in srgb, var(--vfjs-slate-500) 30%, var(--vfjs-surface));
    --vfjs-pdf-toolbar-bg: var(--vfjs-surface);
    --vfjs-pdf-toolbar-shadow: var(--vfjs-shadow-xs);
    --vfjs-pdf-page-shadow: var(--vfjs-shadow-lg);
    --vfjs-pdf-page-radius: 0;
    --vfjs-pdf-btn-bg: var(--vfjs-bg);
    --vfjs-pdf-radius: var(--vfjs-radius-sm);
  }
  :where(.vfjs-pdf-style-dark) .vfjs-pdf,
  .vfjs-pdf:where(.vfjs-pdf-style-dark) {
    --vfjs-pdf-bg: var(--vfjs-slate-900);
    --vfjs-pdf-fg: var(--vfjs-slate-250);
    --vfjs-pdf-muted: var(--vfjs-slate-400);
    --vfjs-pdf-accent: var(--vfjs-blue-400);
    --vfjs-pdf-border: var(--vfjs-border-width) solid var(--vfjs-slate-850);
    --vfjs-pdf-toolbar-bg: var(--vfjs-slate-850);
    --vfjs-pdf-toolbar-border: var(--vfjs-border-width) solid var(--vfjs-slate-900);
    --vfjs-pdf-btn-bg: transparent;
    --vfjs-pdf-btn-border: var(--vfjs-border-width) solid transparent;
    --vfjs-pdf-btn-hover-bg: color-mix(in srgb, var(--vfjs-white) 10%, transparent);
    --vfjs-pdf-btn-hover-border-color: transparent;
    --vfjs-pdf-btn-hover-fg: var(--vfjs-white);
    --vfjs-pdf-btn-active-bg: color-mix(in srgb, var(--vfjs-white) 16%, transparent);
    --vfjs-pdf-input-bg: var(--vfjs-slate-900);
    --vfjs-pdf-input-fg: var(--vfjs-slate-250);
    --vfjs-pdf-input-border: var(--vfjs-border-width) solid var(--vfjs-slate-500);
    --vfjs-pdf-page-shadow: var(--vfjs-shadow-lg);
    --vfjs-pdf-sidebar-bg: var(--vfjs-slate-850);
    --vfjs-pdf-thumb-border: var(--vfjs-border-width) solid var(--vfjs-slate-500);
    --vfjs-pdf-outline-hover-bg: color-mix(in srgb, var(--vfjs-white) 8%, transparent);
    --vfjs-pdf-outline-active-bg: color-mix(in srgb, var(--vfjs-blue-400) 22%, transparent);
    --vfjs-pdf-outline-active-fg: var(--vfjs-white);
    color-scheme: dark;
  }
  :where(.vfjs-pdf-style-minimal) .vfjs-pdf,
  .vfjs-pdf:where(.vfjs-pdf-style-minimal) {
    --vfjs-pdf-bg: transparent;
    --vfjs-pdf-border: 0 solid transparent;
    --vfjs-pdf-radius: 0;
    --vfjs-pdf-toolbar-bg: transparent;
    --vfjs-pdf-toolbar-border: 0 solid transparent;
    --vfjs-pdf-btn-bg: transparent;
    --vfjs-pdf-btn-border: var(--vfjs-border-width) solid transparent;
    --vfjs-pdf-btn-hover-bg: var(--vfjs-hover-bg);
    --vfjs-pdf-btn-hover-border-color: transparent;
    --vfjs-pdf-page-shadow: none;
    --vfjs-pdf-page-outline: var(--vfjs-border-width) solid var(--vfjs-border);
    --vfjs-pdf-page-radius: 0;
    --vfjs-pdf-body-padding: calc(var(--_vfjs-pdf-space) * 3);
    --vfjs-pdf-sidebar-border: 0 solid transparent;
    --vfjs-pdf-thumb-shadow: none;
  }
  :where(.vfjs-pdf-style-compact) .vfjs-pdf,
  .vfjs-pdf:where(.vfjs-pdf-style-compact) {
    --vfjs-pdf-font-size: var(--vfjs-font-size-sm);
    --vfjs-pdf-toolbar-gap: calc(var(--_vfjs-pdf-space) * 1);
    --vfjs-pdf-toolbar-padding-y: var(--_vfjs-pdf-space);
    --vfjs-pdf-toolbar-padding-x: calc(var(--_vfjs-pdf-space) * 2);
    --vfjs-pdf-toolbar-spacer: calc(var(--vfjs-size-unit) * 6);
    --vfjs-pdf-btn-padding-y: calc(var(--_vfjs-pdf-space) * .5);
    --vfjs-pdf-btn-padding-x: calc(var(--_vfjs-pdf-space) * 1.5);
    --vfjs-pdf-btn-radius: var(--vfjs-radius-sm);
    --vfjs-pdf-input-width: calc(var(--vfjs-size-unit) * 40);
    --vfjs-pdf-zoom-width: calc(var(--vfjs-size-unit) * 36);
    --vfjs-pdf-body-padding: calc(var(--_vfjs-pdf-space) * 2);
    --vfjs-pdf-page-gap: calc(var(--_vfjs-pdf-space) * 2);
    --vfjs-pdf-sidebar-width: calc(var(--vfjs-size-unit) * 128);
    --vfjs-pdf-thumb-width: calc(var(--vfjs-size-unit) * 92);
    --vfjs-pdf-thumb-gap: calc(var(--_vfjs-pdf-space) * 2);
    --vfjs-pdf-min-height: calc(var(--vfjs-size-unit) * 300);
  }
  :where(.vfjs-pdf-style-paper) .vfjs-pdf,
  .vfjs-pdf:where(.vfjs-pdf-style-paper) {
    --vfjs-pdf-bg: color-mix(in srgb, var(--vfjs-brown-400) 22%, var(--vfjs-white));
    --vfjs-pdf-fg: color-mix(in srgb, var(--vfjs-brown-400) 45%, var(--vfjs-black));
    --vfjs-pdf-muted: color-mix(in srgb, var(--vfjs-brown-400) 75%, var(--vfjs-black));
    --vfjs-pdf-accent: color-mix(in srgb, var(--vfjs-brown-400) 70%, var(--vfjs-black));
    --vfjs-pdf-border: var(--vfjs-border-width) solid color-mix(in srgb, var(--vfjs-brown-400) 45%, var(--vfjs-white));
    --vfjs-pdf-toolbar-bg: color-mix(in srgb, var(--vfjs-brown-400) 10%, var(--vfjs-white));
    --vfjs-pdf-toolbar-border: var(--_vfjs-pdf-border);
    --vfjs-pdf-btn-bg: color-mix(in srgb, var(--vfjs-brown-400) 6%, var(--vfjs-white));
    --vfjs-pdf-btn-border: var(--_vfjs-pdf-border);
    --vfjs-pdf-input-bg: var(--vfjs-pdf-btn-bg, var(--vfjs-surface));
    --vfjs-pdf-input-fg: var(--_vfjs-pdf-fg);
    --vfjs-pdf-input-border: var(--_vfjs-pdf-border);
    --vfjs-pdf-page-bg: color-mix(in srgb, var(--vfjs-amber-400) 9%, var(--vfjs-white));
    --vfjs-pdf-page-shadow: var(--vfjs-shadow-sm);
    --vfjs-pdf-radius: var(--vfjs-radius-lg);
    --vfjs-pdf-page-radius: var(--vfjs-radius-sm);
    color-scheme: light;
  }

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