

/* VERIDIUM Product Design System · components/bundle.css · VD-DS 1.0
   Canonical source: Veridium UI Kit V2 (VD-UIK-2 · 2.0 draft). Tokens: project/tokens.json.
   Load order: this file → components/bundle.js (injects Phosphor 2.1.1 icons, pointer foil, small behaviours).
   Class API: .vd-<component>, .vd-<component>__<part>, .vd-<component>--<variant>, state .is-<state> or ARIA. */
/* Freight copy (step 7.1, review V01): the canonical bundle @imports Manrope and IBM Plex Mono from fonts.googleapis.com; here the
   same faces come from fonts.css (self-hosted, loaded before this file on every page), so no page asks a third party for anything. */

/* @tokens:start - generated from project/tokens.json by tools/sync-tokens.ps1. Do not edit by hand.
   Zero-specificity fallback: a page that also loads the published tokens.css gets the same values from it. */
:where(:root) {
  --vd-grey-0: #ffffff;
  --vd-grey-25: #fafbfc;
  --vd-grey-40: #f7f8fa;
  --vd-grey-50: #f4f6f8;
  --vd-grey-100: #eef1f4;
  --vd-grey-150: #e2e6eb;
  --vd-grey-200: #dde2e8;
  --vd-grey-250: #d5dae0;
  --vd-grey-300: #c9d0d8;
  --vd-grey-350: #b6bec8;
  --vd-grey-400: #9ba2ac;
  --vd-grey-450: #7d8591;
  --vd-grey-500: #69717d;
  --vd-grey-600: #4a525e;
  --vd-grey-700: #3b424d;
  --vd-grey-800: #2a303a;
  --vd-grey-900: #161a20;
  --vd-grey-950: #0b0d10;
  --vd-spectrum-ice-cyan: #73e7f4;
  --vd-spectrum-optic-blue: #91b4ff;
  --vd-spectrum-violet: #a996ff;
  --vd-spectrum-soft-magenta: #e6a4ee;
  --vd-spectrum-pale-rose: #ffb7c9;
  --vd-spectrum-champagne: #f6d78d;
  --vd-spectrum-pale-mint: #bfefe4;
  --vd-violet-50: #f3f1ff;
  --vd-violet-100: #eae6ff;
  --vd-violet-600: #5b4bc4;
  --vd-green-100: #e3f3ec;
  --vd-green-200: #bfe3d1;
  --vd-green-400: #3fbf87;
  --vd-green-700: #157a55;
  --vd-green-900: #2e4e40;
  --vd-amber-100: #fcefd9;
  --vd-amber-400: #f2b04a;
  --vd-amber-600: #c27a12;
  --vd-amber-700: #94570a;
  --vd-amber-900: #5e4416;
  --vd-red-25: #fff9f9;
  --vd-red-100: #fbe6e8;
  --vd-red-300: #d69aa2;
  --vd-red-400: #f07a86;
  --vd-red-700: #b42331;
  --vd-red-800: #9c1c29;
  --vd-red-850: #82151f;
  --vd-red-950: #5e2a31;
  --vd-blue-100: #e5edfb;
  --vd-blue-300: #7fa6f5;
  --vd-blue-700: #2459c4;
  --vd-blue-900: #2e3e5e;
  --vd-canvas: var(--vd-grey-50);
  --vd-surface: var(--vd-grey-0);
  --vd-surface-2: var(--vd-grey-25);
  --vd-surface-soft: var(--vd-grey-100);
  --vd-surface-inverse: var(--vd-grey-900);
  --vd-surface-inverse-hover: var(--vd-grey-800);
  --vd-surface-inverse-pressed: var(--vd-grey-950);
  --vd-text-1: var(--vd-grey-900);
  --vd-text-supporting: var(--vd-grey-700);
  --vd-text-2: var(--vd-grey-500);
  --vd-text-2-strong: var(--vd-grey-600);
  --vd-text-3: var(--vd-grey-400);
  --vd-text-placeholder: var(--vd-grey-450);
  --vd-text-on-inverse: var(--vd-grey-0);
  --vd-text-on-inverse-2: var(--vd-grey-350);
  --vd-text-on-inverse-3: var(--vd-grey-400);
  --vd-text-link-hover: var(--vd-violet-600);
  --vd-border: var(--vd-grey-200);
  --vd-border-subtle: var(--vd-grey-100);
  --vd-border-strong: var(--vd-grey-300);
  --vd-border-hover: var(--vd-grey-400);
  --vd-border-active: var(--vd-grey-900);
  --vd-control-ring: var(--vd-grey-300);
  --vd-control-ring-hover: var(--vd-grey-500);
  --vd-control-off: var(--vd-grey-250);
  --vd-control-off-hover: var(--vd-grey-350);
  --vd-hover-wash: var(--vd-grey-40);
  --vd-hover-row: var(--vd-grey-50);
  --vd-hover-soft: var(--vd-grey-100);
  --vd-pressed: var(--vd-grey-150);
  --vd-selected-row: var(--vd-violet-50);
  --vd-match-highlight: var(--vd-violet-100);
  --vd-positive-text: var(--vd-green-700);
  --vd-positive-tint: var(--vd-green-100);
  --vd-positive-solid: var(--vd-green-700);
  --vd-positive-border: var(--vd-green-200);
  --vd-positive-deep: var(--vd-green-900);
  --vd-positive-on-inverse: var(--vd-green-400);
  --vd-attention-text: var(--vd-amber-700);
  --vd-attention-tint: var(--vd-amber-100);
  --vd-attention-solid: var(--vd-amber-600);
  --vd-attention-deep: var(--vd-amber-900);
  --vd-attention-on-inverse: var(--vd-amber-400);
  --vd-negative-text: var(--vd-red-700);
  --vd-negative-tint: var(--vd-red-100);
  --vd-negative-solid: var(--vd-red-700);
  --vd-negative-solid-hover: var(--vd-red-800);
  --vd-negative-solid-pressed: var(--vd-red-850);
  --vd-negative-wash: var(--vd-red-25);
  --vd-negative-disabled: var(--vd-red-300);
  --vd-negative-deep: var(--vd-red-950);
  --vd-negative-on-inverse: var(--vd-red-400);
  --vd-processing-text: var(--vd-blue-700);
  --vd-processing-tint: var(--vd-blue-100);
  --vd-processing-solid: var(--vd-blue-700);
  --vd-processing-deep: var(--vd-blue-900);
  --vd-processing-on-inverse: var(--vd-blue-300);
  --vd-neutral-text: var(--vd-text-2-strong);
  --vd-neutral-tint: var(--vd-grey-100);
  --vd-neutral-solid: var(--vd-grey-500);
  --vd-focus-edge: var(--vd-grey-900);
  --vd-focus-gap: var(--vd-grey-0);
  --vd-focus-halo: rgba(169,150,255,.12);
  --vd-inverse-divider: rgba(255,255,255,.18);
  --vd-inverse-hover: rgba(255,255,255,.1);
  --vd-inverse-tile: rgba(255,255,255,.16);
  --vd-veil: rgba(244,246,248,.62);
  --vd-scrim: rgba(22,26,32,.32);
  --vd-foil-specular: rgba(255,255,255,.9);
  --vd-foil-diffraction: rgba(255,255,255,.18);
  --vd-foil-glass: rgba(255,255,255,.5);
  --vd-foil-edge-neutral: rgba(22,26,32,.16);
  --vd-identity-sheen: rgba(169,150,255,.12);
  --vd-identity-ring: rgba(169,150,255,.09);
  --vd-identity-glow: rgba(120,110,230,.6);
  --vd-identity-waiting: var(--vd-grey-300);
  --vd-identity-unsealed: var(--vd-grey-200);
  --vd-chart-bar: var(--vd-grey-300);
  --vd-chart-bar-muted: var(--vd-grey-100);
  --vd-chart-bar-current: var(--vd-grey-900);
  --vd-progress-track: var(--vd-grey-100);
  --vd-progress-fill: var(--vd-grey-900);
  --vd-meter-open: var(--vd-grey-200);
  --vd-skeleton: var(--vd-grey-100);
  --vd-skeleton-highlight: var(--vd-grey-40);
  --vd-skeleton-soft: var(--vd-grey-50);

  --font-sans: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --vd-shadow-e1: 0 1px 2px rgba(22,26,32,.04);
  --vd-shadow-e2: 0 10px 24px -12px rgba(22,26,32,.22);
  --vd-shadow-e3: 0 0 0 1px rgba(22,26,32,.07), 0 18px 44px -16px rgba(22,26,32,.24);
  --vd-shadow-e4: 0 0 0 1px rgba(22,26,32,.06), 0 28px 70px -20px rgba(22,26,32,.32);
  --vd-shadow-modal: 0 28px 70px -20px rgba(22,26,32,.4);
  --vd-shadow-inverse: 0 18px 44px -14px rgba(22,26,32,.5);
  --vd-shadow-primary-hover: 0 6px 14px -8px rgba(22,26,32,.5);
  --vd-shadow-pressed: inset 0 2px 3px rgba(0,0,0,.4);
  --vd-shadow-pressed-destructive: inset 0 2px 3px rgba(0,0,0,.3);
  --vd-shadow-pressed-card: inset 0 1px 3px rgba(22,26,32,.08);
  --vd-shadow-segment: 0 1px 2px rgba(22,26,32,.06);
  --vd-shadow-knob: 0 1px 3px rgba(22,26,32,.3);
  --vd-shadow-focus-halo: 0 0 0 4px rgba(169,150,255,.12);
  --vd-shadow-identity: 0 14px 32px -18px rgba(120,110,230,.6), 0 0 0 4px rgba(169,150,255,.09);
  --vd-shadow-seal: 0 12px 30px -18px rgba(120,110,230,.55);
  --vd-shadow-veridium-action: inset 0 1px 0 rgba(255,255,255,.7), 0 8px 20px -12px rgba(120,110,230,.6);

  --vd-space-2: 2px;
  --vd-space-4: 4px;
  --vd-space-6: 6px;
  --vd-space-8: 8px;
  --vd-space-10: 10px;
  --vd-space-12: 12px;
  --vd-space-14: 14px;
  --vd-space-16: 16px;
  --vd-space-18: 18px;
  --vd-space-20: 20px;
  --vd-space-24: 24px;
  --vd-space-32: 32px;
  --vd-space-40: 40px;
  --vd-space-48: 48px;
  --vd-space-96: 96px;

  --vd-radius-2: 2px;
  --vd-radius-4: 4px;
  --vd-radius-5: 5px;
  --vd-radius-6: 6px;
  --vd-radius-8: 8px;
  --vd-radius-10: 10px;
  --vd-radius-12: 12px;
  --vd-radius-14: 14px;
  --vd-radius-16: 16px;
  --vd-radius-20: 20px;
  --vd-radius-full: 999px;

  --vd-control-24: 24px;
  --vd-control-28: 28px;
  --vd-control-32: 32px;
  --vd-control-36: 36px;
  --vd-control-40: 40px;
  --vd-control-44: 44px;
  --vd-control-52: 52px;
  --vd-badge-22: 22px;
  --vd-badge-24: 24px;
  --vd-chip-26: 26px;
  --vd-tile-32: 32px;
  --vd-tile-36: 36px;
  --vd-tile-40: 40px;
  --vd-tile-44: 44px;
  --vd-checkbox-16: 16px;
  --vd-checkbox-18: 18px;
  --vd-row-compact: 36px;
  --vd-row-standard: 46px;
  --vd-row-comfortable: 56px;
  --vd-object-row: 64px;
  --vd-mark-min: 24px;

  --vd-icon-11: 11px;
  --vd-icon-12: 12px;
  --vd-icon-13: 13px;
  --vd-icon-14: 14px;
  --vd-icon-16: 16px;
  --vd-icon-17: 17px;
  --vd-icon-18: 18px;
  --vd-icon-21: 21px;

  --vd-grid-columns: 12;
  --vd-grid-gutter: 16px;
  --vd-frame-inset: 12px;
  --vd-sidebar-width: 232px;
  --vd-sidebar-collapsed: 64px;
  --vd-context-nav-width: 264px;
  --vd-context-rail-width: 56px;
  --vd-context-panel-width: 330px;
  --vd-topbar-height: 64px;
  --vd-content-max: 1480px;
  --vd-doc-max: 1440px;
  --vd-widget-min-height: 208px;
  --vd-drawer-sm: 420px;
  --vd-drawer-md: 540px;
  --vd-drawer-lg: 680px;
  --vd-drawer-max: 720px;
  --vd-modal-width: 380px;
  --vd-modal-width-legal: 400px;
  --vd-search-max: 720px;
  --vd-popover-width: 230px;
  --vd-tooltip-rich-max: 300px;

  --vd-stroke-1: 1px;
  --vd-stroke-1-5: 1.5px;
  --vd-stroke-2: 2px;

  --vd-duration-press: 120ms;
  --vd-duration-hover: 160ms;
  --vd-duration-panel: 200ms;
  --vd-duration-drawer-in: 240ms;
  --vd-duration-drawer-out: 180ms;
  --vd-duration-spinner: 800ms;
  --vd-duration-shimmer: 1400ms;
  --vd-duration-sweep: 1400ms;
  --vd-duration-verify: 3200ms;
  --vd-duration-toast: 3000ms;
  --vd-duration-toast-action: 4000ms;

  --vd-ease: cubic-bezier(.2,.7,.2,1);
  --vd-ease-out: ease-out;
  --vd-ease-linear: linear;

  --vd-z-sticky: 2;
  --vd-z-popover: 30;
  --vd-z-panel: 40;
  --vd-z-veil: 45;
  --vd-z-drawer: 50;
  --vd-z-scrim: 55;
  --vd-z-modal: 60;
  --vd-z-toast: 90;
  --vd-z-tooltip: 95;
}
:where([data-theme="high-contrast"]) {
  --vd-text-2: var(--vd-grey-700);
  --vd-text-2-strong: var(--vd-grey-700);
  --vd-text-placeholder: var(--vd-grey-600);
  --vd-border: var(--vd-grey-450);
  --vd-border-subtle: var(--vd-grey-300);
  --vd-border-strong: var(--vd-grey-500);
  --vd-border-hover: var(--vd-grey-700);
  --vd-control-ring: var(--vd-grey-500);
  --vd-control-off: var(--vd-grey-450);
  --vd-control-off-hover: var(--vd-grey-500);
  --vd-positive-text: var(--vd-green-900);
  --vd-attention-text: var(--vd-amber-900);
  --vd-negative-text: var(--vd-red-950);
  --vd-processing-text: var(--vd-blue-900);
}
.vd-type-display{font-family:var(--font-sans);font-size:68px;line-height:68px;font-weight:700;letter-spacing:-0.045em}
.vd-type-numeric-xl{font-family:var(--font-sans);font-size:44px;line-height:48px;font-weight:600;letter-spacing:-0.035em}
.vd-type-numeric-lg{font-family:var(--font-sans);font-size:32px;line-height:38px;font-weight:600;letter-spacing:-0.03em}
.vd-type-numeric-md{font-family:var(--font-sans);font-size:28px;line-height:32px;font-weight:600;letter-spacing:-0.03em}
.vd-type-numeric-sm{font-family:var(--font-sans);font-size:22px;line-height:28px;font-weight:600;letter-spacing:-0.02em}
.vd-type-page-title{font-family:var(--font-sans);font-size:28px;line-height:34px;font-weight:700;letter-spacing:-0.025em}
.vd-type-panel-title{font-family:var(--font-sans);font-size:20px;line-height:26px;font-weight:700;letter-spacing:-0.015em}
.vd-type-section-title{font-family:var(--font-sans);font-size:18px;line-height:24px;font-weight:700;letter-spacing:-0.015em}
.vd-type-object-title{font-family:var(--font-sans);font-size:16px;line-height:21px;font-weight:700}
.vd-type-widget-title{font-family:var(--font-sans);font-size:15px;line-height:20px;font-weight:700}
.vd-type-body{font-family:var(--font-sans);font-size:14px;line-height:21px;font-weight:500}
.vd-type-body-sm{font-family:var(--font-sans);font-size:13px;line-height:19px;font-weight:500}
.vd-type-label{font-family:var(--font-sans);font-size:13px;line-height:18px;font-weight:600}
.vd-type-caption{font-family:var(--font-sans);font-size:12px;line-height:16px;font-weight:500}
.vd-type-status{font-family:var(--font-sans);font-size:12px;line-height:16px;font-weight:700}
.vd-type-control{font-family:var(--font-sans);font-size:14px;line-height:14px;font-weight:700}
.vd-type-eyebrow{font-family:var(--font-sans);font-size:11px;line-height:14px;font-weight:700;letter-spacing:0.1em}
.vd-type-eyebrow-sm{font-family:var(--font-sans);font-size:10.5px;line-height:14px;font-weight:700;letter-spacing:0.1em}
.vd-type-mono-display{font-family:var(--font-mono);font-size:24px;line-height:30px;font-weight:500;letter-spacing:0.02em}
.vd-type-mono-field{font-family:var(--font-mono);font-size:14px;line-height:20px;font-weight:500;letter-spacing:0.04em}
.vd-type-mono-identifier{font-family:var(--font-mono);font-size:13px;line-height:18px;font-weight:500;letter-spacing:0.01em}
.vd-type-mono-data{font-family:var(--font-mono);font-size:12px;line-height:17px;font-weight:500}
.vd-type-mono-meta{font-family:var(--font-mono);font-size:11px;line-height:15px;font-weight:500}
.vd-type-mono-label{font-family:var(--font-mono);font-size:10.5px;line-height:14px;font-weight:500;letter-spacing:0.06em}
.vd-type-mono-strip{font-family:var(--font-mono);font-size:10.5px;line-height:14px;font-weight:500;letter-spacing:0.04em}
.vd-type-mono-micro{font-family:var(--font-mono);font-size:10px;line-height:14px;font-weight:500}
/* @tokens:end */

/* ============================================================
   0 · System constants (not tokens: geometry and glyph masks)
   ============================================================ */
:where(:root) {
  --vd-hex: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  --vd-foil-stops: var(--vd-spectrum-ice-cyan), var(--vd-spectrum-optic-blue), var(--vd-spectrum-violet), var(--vd-spectrum-soft-magenta), var(--vd-spectrum-pale-rose), var(--vd-spectrum-champagne), var(--vd-spectrum-pale-mint), var(--vd-spectrum-ice-cyan);
  --vd-foil-edge-stops: var(--vd-spectrum-ice-cyan), var(--vd-spectrum-optic-blue), var(--vd-spectrum-violet), var(--vd-spectrum-soft-magenta), var(--vd-spectrum-pale-rose), var(--vd-spectrum-champagne), var(--vd-spectrum-ice-cyan);
  --vd-glyph-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1024 1024'%3E%3Cpath transform='matrix(1 0 0 -1 0 960)' d='M929.96 638.040l-512-512c-8.692-8.721-20.716-14.118-34-14.118s-25.308 5.396-33.999 14.116l-224.001 224.001c-8.701 8.701-14.083 20.722-14.083 34 0 26.556 21.528 48.083 48.083 48.083 13.278 0 25.299-5.382 34-14.083l190.040-190.040 478.040 477.960c8.701 8.701 20.722 14.083 34 14.083 26.556 0 48.083-21.528 48.083-48.083 0-13.278-5.382-25.299-14.083-34v0z'/%3E%3C/svg%3E");
  --vd-glyph-minus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1024 1024'%3E%3Cpath transform='matrix(1 0 0 -1 0 960)' d='M912 448c0-26.51-21.49-48-48-48v0h-704c-26.51 0-48 21.49-48 48s21.49 48 48 48v0h704c26.51 0 48-21.49 48-48v0z'/%3E%3C/svg%3E");
  --vd-glyph-caret-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1024 1024'%3E%3Cpath fill='%233b424d' transform='matrix(1 0 0 -1 0 960)' d='M854.64 553.36l-320-320c-5.792-5.798-13.797-9.385-22.64-9.385s-16.848 3.587-22.64 9.385v0l-320 320c-5.794 5.794-9.378 13.799-9.378 22.64 0 17.683 14.335 32.018 32.018 32.018 8.841 0 16.846-3.584 22.64-9.378l297.36-297.4 297.36 297.4c5.794 5.794 13.799 9.378 22.64 9.378 17.683 0 32.018-14.335 32.018-32.018 0-8.841-3.584-16.846-9.378-22.64v0z'/%3E%3C/svg%3E");
}

/* ============================================================
   1 · Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
:where(html) { -webkit-text-size-adjust: 100%; }
:where(body) {
  margin: 0;
  background: var(--vd-canvas);
  color: var(--vd-text-1);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 21px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
:where(h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd) { margin: 0; }
:where(input, textarea, select, button) { font: inherit; color: inherit; letter-spacing: inherit; }
:where(a) { color: var(--vd-text-1); text-underline-offset: 3px; text-decoration-color: var(--vd-border-strong); }
:where(a:hover) { color: var(--vd-text-link-hover); }
:where(a:focus-visible) { outline: var(--vd-stroke-1-5) solid var(--vd-focus-edge); outline-offset: 2px; border-radius: 4px; }
:where(fieldset) { margin: 0; padding: 0; border: 0; min-width: 0; }
:where(legend) { padding: 0; }
::placeholder { color: var(--vd-text-placeholder); opacity: 1; }
:where([hidden]) { display: none !important; }

@keyframes vd-spin { to { transform: rotate(360deg); } }
@keyframes vd-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes vd-panel-in { from { opacity: 0; transform: translateY(6px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes vd-drawer-in { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }
@keyframes vd-toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes vd-rise-center { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes vd-expand { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes vd-shimmer { 0% { background-position: -280px 0; } 100% { background-position: 280px 0; } }
@keyframes vd-sweep { 0% { transform: translateX(-120%); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateX(320%); opacity: 0; } }

/* ============================================================
   2 · Utilities
   ============================================================ */
.vd-mono { font-family: var(--font-mono); }
.vd-tnum { font-variant-numeric: tabular-nums; }
.vd-upper { text-transform: uppercase; }
.vd-keep-case { text-transform: none; } /* a proper name inside an uppercase label: eIDAS, IČO */
.vd-eyebrow { font: 700 11px/14px var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--vd-text-2); }
.vd-eyebrow--sm { font-size: 10.5px; }
.vd-mono-label { font: 500 10.5px/14px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--vd-text-2); }
/* Colour utilities are explicit intent: they win over a component part's own colour on the same element */
.vd-text-1 { color: var(--vd-text-1) !important; }
.vd-text-supporting { color: var(--vd-text-supporting) !important; }
.vd-text-2 { color: var(--vd-text-2) !important; }
.vd-text-2-strong { color: var(--vd-text-2-strong) !important; }
.vd-text-3 { color: var(--vd-text-3) !important; }
.vd-text-positive { color: var(--vd-positive-text) !important; }
.vd-text-attention { color: var(--vd-attention-text) !important; }
.vd-text-negative { color: var(--vd-negative-text) !important; }
.vd-text-processing { color: var(--vd-processing-text) !important; }
.vd-icon-positive { color: var(--vd-positive-solid) !important; }
.vd-icon-attention { color: var(--vd-attention-solid) !important; }
.vd-icon-negative { color: var(--vd-negative-solid) !important; }
.vd-icon-processing { color: var(--vd-processing-solid) !important; }
.vd-icon-neutral { color: var(--vd-neutral-solid) !important; }
.vd-spacer { flex: 1 1 auto; }
.vd-divider { height: 1px; background: var(--vd-border-subtle); border: 0; margin: 0; }
.vd-spin { display: inline-block; animation: vd-spin var(--vd-duration-spinner) var(--vd-ease-linear) infinite; }
.vd-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.vd-stack { display: flex; flex-direction: column; gap: var(--vd-gap, 12px); min-width: 0; }
.vd-row { display: flex; align-items: center; gap: var(--vd-gap, 8px); flex-wrap: wrap; min-width: 0; }
.vd-row--baseline { align-items: baseline; } /* a figure and its caption: 74% · 6 of 10 areas */

/* ============================================================
   3 · Holographic system (L3 · identity material)
   Foil = specular (follows pointer) + diffraction lines (4px, 118°) + off-centre conic spectrum.
   ============================================================ */
.vd-foil,
.vd-mark,
.vd-tile--foil,
.vd-btn--veridium,
.vd-hexnode,
.vd-seal__mark,
.vd-widget.is-selected .vd-tile,
.vd-widget[aria-selected="true"] .vd-tile,
.vd-widget[aria-pressed="true"] .vd-tile {
  /* declared on the element itself so the pointer variables (--vd-foil-x/-y/-angle) resolve per element */
  --vd-foil-surface:
    radial-gradient(90% 70% at var(--vd-foil-x, 28%) var(--vd-foil-y, 18%), var(--vd-foil-specular), rgba(255,255,255,0) 55%),
    repeating-linear-gradient(118deg, rgba(255,255,255,0) 0 3px, var(--vd-foil-diffraction) 3px 4px),
    conic-gradient(from calc(200deg + var(--vd-foil-angle, 0deg)) at 62% 58%, var(--vd-foil-stops));
  background-color: var(--vd-spectrum-optic-blue);
  background-image: var(--vd-foil-surface);
}
.vd-foil-edge {
  border: var(--vd-stroke-1) solid transparent;
  background:
    linear-gradient(var(--vd-foil-fill, var(--vd-surface)), var(--vd-foil-fill, var(--vd-surface))) padding-box,
    conic-gradient(from calc(210deg + var(--vd-foil-angle, 0deg)), var(--vd-foil-edge-stops)) border-box;
}
.vd-hex { clip-path: var(--vd-hex); }
[data-vd-foil="interactive"], .vd-mark--interactive { cursor: crosshair; }

/* Compact hex mark · 14×16 graphite rim + foil core (tables, lists, results, badges) */
.vd-hexmark { --vd-hex-w: 14px; --vd-hex-rim: 1.5px; position: relative; display: inline-block; flex: none; width: var(--vd-hex-w); height: calc(var(--vd-hex-w) / .866); clip-path: var(--vd-hex); background: var(--vd-surface-inverse); vertical-align: middle; }
.vd-hexmark::before { content: ""; position: absolute; inset: var(--vd-hex-rim); clip-path: var(--vd-hex); background: conic-gradient(from calc(200deg + var(--vd-foil-angle, 0deg)) at 62% 58%, var(--vd-foil-edge-stops)); }
.vd-hexmark--xs { --vd-hex-w: 9px; --vd-hex-rim: 0px; }
.vd-hexmark--sm { --vd-hex-w: 12px; }
.vd-hexmark--lg { --vd-hex-w: 20px; --vd-hex-rim: 2px; }
.vd-hexmark--xl { --vd-hex-w: 24px; --vd-hex-rim: 2px; }
.vd-hexmark--bare { background: conic-gradient(from 200deg at 62% 58%, var(--vd-foil-edge-stops)); }
.vd-hexmark--bare::before { content: none; }
.vd-hexmark--unsealed { background: var(--vd-identity-unsealed); }
.vd-hexmark--unsealed::before { content: none; }
.vd-hexmark--waiting { background: var(--vd-identity-waiting); }
.vd-hexmark--waiting::before { inset: 2px; background: var(--vd-surface); }
.vd-hexmark--disabled { background: var(--vd-border-strong); }
.vd-hexmark--disabled::before { content: none; }
.vd-hexmark--glass { background: var(--vd-surface-inverse); }
.vd-hexmark--glass::before { inset: 2px; background: rgba(255,255,255,.75); }

/* Spine / feed terminal node: foil hexagon 28×32 with an ink check */
.vd-hexnode { position: relative; display: inline-grid; place-items: center; flex: none; width: 28px; height: 32px; clip-path: var(--vd-hex); color: var(--vd-text-1); font-size: 12px; }
.vd-hexnode--waiting { background: var(--vd-identity-waiting); }
.vd-hexnode--waiting::before { content: ""; position: absolute; inset: 2px; clip-path: var(--vd-hex); background: var(--vd-surface); }

/* Identity Seal · the large form of the mark, once per object page */
.vd-seal { position: relative; display: flex; gap: 16px; align-items: center; padding: 16px; border-radius: var(--vd-radius-14); box-shadow: var(--vd-shadow-seal); }
.vd-seal.vd-foil-edge, .vd-seal { border: var(--vd-stroke-1) solid transparent; background: linear-gradient(var(--vd-surface), var(--vd-surface)) padding-box, conic-gradient(from calc(210deg + var(--vd-foil-angle, 0deg)), var(--vd-foil-edge-stops)) border-box; }
.vd-seal__mark { position: relative; flex: none; display: grid; place-items: center; width: 48px; height: 56px; clip-path: var(--vd-hex); color: var(--vd-text-1); font-size: 18px; }
.vd-seal__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.vd-seal__title { font: 800 15px/20px var(--font-sans); }
.vd-seal__desc { font: 500 12.5px/18px var(--font-sans); color: var(--vd-text-supporting); }
.vd-seal__code { margin-top: 2px; font: 500 11px/15px var(--font-mono); color: var(--vd-text-2); text-transform: uppercase; }

/* Perimeter light · verifying identity (the only looping motion) */
.vd-perimeter { --vd-per-w: 72px; position: relative; display: inline-block; flex: none; width: var(--vd-per-w); height: calc(var(--vd-per-w) / .866); clip-path: var(--vd-hex); background: var(--vd-pressed); overflow: hidden; }
.vd-perimeter::before { content: ""; position: absolute; inset: -30px; background: conic-gradient(from 0deg, rgba(115,231,244,0) 0deg, rgba(115,231,244,0) 200deg, var(--vd-spectrum-ice-cyan) 250deg, var(--vd-spectrum-violet) 290deg, var(--vd-spectrum-pale-rose) 330deg, rgba(246,215,141,0) 360deg); animation: vd-spin var(--vd-duration-verify) var(--vd-ease-linear) infinite; }
.vd-perimeter__core { position: absolute; inset: 3px; clip-path: var(--vd-hex); background: var(--vd-surface); display: grid; place-items: center; font: 800 calc(var(--vd-per-w) * .305)/1 var(--font-sans); letter-spacing: -.06em; color: var(--vd-text-1); }
.vd-perimeter--sm { --vd-per-w: 40px; }
.vd-perimeter--sm .vd-perimeter__core { inset: 2.5px; background: var(--vd-canvas); }

/* Completion sweep · one optical pass when identity verification reaches 100% */
.vd-sweep { position: relative; height: 8px; border-radius: var(--vd-radius-full); background: var(--vd-progress-fill); overflow: hidden; }
.vd-sweep.is-complete::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 34%; background: linear-gradient(90deg, rgba(115,231,244,0), var(--vd-spectrum-ice-cyan) 20%, var(--vd-spectrum-violet) 45%, var(--vd-spectrum-pale-rose) 70%, rgba(246,215,141,0)); animation: vd-sweep var(--vd-duration-sweep) var(--vd-ease) 1 forwards; }

/* Hologram-budget review overlay (design review only, never shipped to users) */
.vd-review-foil { position: relative; outline: 1.5px dashed var(--vd-spectrum-violet); outline-offset: 5px; border-radius: 8px; }
.vd-review-foil__label { position: absolute; left: -2px; top: -22px; padding: 1px 5px; border-radius: 4px; background: var(--vd-violet-50); color: var(--vd-violet-600); font: 600 9.5px/14px var(--font-mono); white-space: nowrap; pointer-events: none; }
.vd-review-budget { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 1px dashed var(--vd-spectrum-violet); border-radius: var(--vd-radius-8); background: var(--vd-violet-50); color: var(--vd-violet-600); font: 700 12px/1 var(--font-sans); }

/* ============================================================
   4 · Brand · logo mark, wordmark, lockups
   ============================================================ */
.vd-mark { --vd-mark-w: 26px; position: relative; isolation: isolate; flex: none; display: inline-grid; place-items: center; width: var(--vd-mark-w); height: calc(var(--vd-mark-w) / .866); clip-path: var(--vd-hex); color: var(--vd-text-1); font: 800 calc(var(--vd-mark-w) * .37)/1 var(--font-sans); letter-spacing: -.06em; user-select: none; }
.vd-mark--lg { letter-spacing: -.07em; }
.vd-mark > i { font-size: calc(var(--vd-mark-w) / 3); } /* an icon instead of Vd (identity hero: check 24 at 72) */
.vd-mark--glass::before { content: ""; position: absolute; z-index: -1; inset: max(3px, calc(var(--vd-mark-w) * .034)); clip-path: var(--vd-hex); background: linear-gradient(160deg, var(--vd-foil-glass), rgba(255,255,255,.08) 60%, rgba(255,255,255,.3)); }
.vd-mark--graphite { background: var(--vd-surface-inverse); color: var(--vd-text-on-inverse); }
.vd-mark--outline { background: var(--vd-surface-inverse); color: var(--vd-text-1); }
.vd-mark--outline::before { content: ""; position: absolute; z-index: -1; inset: max(2px, calc(var(--vd-mark-w) * .058)); clip-path: var(--vd-hex); background: var(--vd-surface); }
.vd-wordmark { font: 800 13px/1 var(--font-sans); letter-spacing: .2em; color: var(--vd-text-1); white-space: nowrap; }
.vd-lockup { display: inline-flex; align-items: center; gap: 12px; }
.vd-lockup--inverse { gap: 16px; padding: 24px 32px; border-radius: var(--vd-radius-16); background: var(--vd-surface-inverse); }
.vd-lockup--inverse .vd-wordmark { font-size: 22px; color: var(--vd-text-on-inverse); }
.vd-lockup--inverse .vd-mark { --vd-mark-w: 62px; letter-spacing: -.07em; }

/* ============================================================
   5 · Focus ring (shared): graphite edge + 2px gap + 2px foil ring.
   Destructive and identity actions use a graphite ring: foil never sits next to an irreversible action.
   ============================================================ */
.vd-btn::after, .vd-icon-btn::after, .vd-chip--selectable::after, .vd-chip--filter::after, .vd-switch::after,
.vd-check__box::after, .vd-radio__dot::after, .vd-entity-switcher::after {
  content: ""; position: absolute; inset: calc(-1 * (var(--vd-ring-gap, 2px) + 2px)); border-radius: calc(var(--vd-r, 10px) + var(--vd-ring-gap, 2px) + 2px);
  padding: 2px; background: var(--vd-ring, conic-gradient(from 210deg, var(--vd-foil-edge-stops)));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; pointer-events: none; transition: opacity var(--vd-duration-press) var(--vd-ease-out);
}
.vd-btn:focus-visible::after, .vd-btn.is-focus::after,
.vd-icon-btn:focus-visible::after, .vd-icon-btn.is-focus::after,
.vd-chip--selectable:focus-visible::after, .vd-chip--filter:focus-visible::after, .vd-chip.is-focus::after,
.vd-switch:focus-visible::after, .vd-switch.is-focus::after,
.vd-entity-switcher:focus-visible::after, .vd-entity-switcher.is-focus::after,
.vd-check__input:focus-visible + .vd-check__box::after, .vd-check__box.is-focus::after,
.vd-radio__input:focus-visible + .vd-radio__dot::after, .vd-radio__dot.is-focus::after { opacity: 1; }
@media (forced-colors: active) {
  .vd-btn:focus-visible, .vd-icon-btn:focus-visible, .vd-chip:focus-visible, .vd-switch:focus-visible, .vd-input:focus-within,
  .vd-check__input:focus-visible + .vd-check__box, .vd-radio__input:focus-visible + .vd-radio__dot { outline: 2px solid CanvasText; outline-offset: 2px; }
}

/* ============================================================
   6 · Buttons · "Primary is graphite, never foil."
   Heights 28 · 32 · 36 · 40 (default) · 44. Radius 8 at ≤32, 10 above.
   ============================================================ */
.vd-btn {
  --vd-r: var(--vd-radius-10);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: none;
  height: var(--vd-control-40); padding: 0 16px; border: 0; border-radius: var(--vd-r);
  background: var(--vd-surface); color: var(--vd-text-1); box-shadow: inset 0 0 0 1px var(--vd-border-strong);
  font: 700 14px/1 var(--font-sans); white-space: nowrap; text-decoration: none; cursor: pointer; user-select: none;
  transition: background-color var(--vd-duration-press) var(--vd-ease-out), box-shadow var(--vd-duration-press) var(--vd-ease-out), color var(--vd-duration-press) var(--vd-ease-out);
}
.vd-btn > i, .vd-btn > .ph, .vd-btn > .ph-bold, .vd-btn > .ph-fill { font-size: 16px; }
.vd-btn:focus-visible, .vd-btn.is-focus { outline: none; }
.vd-btn:disabled, .vd-btn[aria-disabled="true"], .vd-btn.is-disabled { cursor: not-allowed; }
.vd-btn.is-loading { cursor: progress; pointer-events: none; }

/* Secondary · the base appearance; .vd-btn--secondary is an explicit alias of it */
.vd-btn--secondary { background: var(--vd-surface); color: var(--vd-text-1); box-shadow: inset 0 0 0 1px var(--vd-border-strong); }
.vd-btn:hover, .vd-btn.is-hover { background: var(--vd-surface-2); box-shadow: inset 0 0 0 1px var(--vd-border-hover); }
.vd-btn:active, .vd-btn.is-active { background: var(--vd-surface-soft); box-shadow: inset 0 0 0 1px var(--vd-border-hover); }
.vd-btn:focus-visible, .vd-btn.is-focus { background: var(--vd-surface); box-shadow: inset 0 0 0 1.5px var(--vd-focus-edge), 0 0 0 2px var(--vd-focus-gap); }
.vd-btn:disabled, .vd-btn[aria-disabled="true"], .vd-btn.is-disabled { background: var(--vd-surface); color: var(--vd-text-3); box-shadow: inset 0 0 0 1px var(--vd-border); }
.vd-btn.is-success { background: var(--vd-positive-tint); color: var(--vd-positive-text); box-shadow: inset 0 0 0 1px var(--vd-positive-border); }

/* Primary · graphite */
.vd-btn--primary { background: var(--vd-surface-inverse); color: var(--vd-text-on-inverse); box-shadow: none; }
.vd-btn--primary:hover, .vd-btn--primary.is-hover { background: var(--vd-surface-inverse-hover); box-shadow: var(--vd-shadow-primary-hover); }
.vd-btn--primary:active, .vd-btn--primary.is-active { background: var(--vd-surface-inverse-pressed); box-shadow: var(--vd-shadow-pressed); }
.vd-btn--primary:focus-visible, .vd-btn--primary.is-focus { background: var(--vd-surface-inverse); box-shadow: 0 0 0 2px var(--vd-focus-gap); }
.vd-btn--primary:disabled, .vd-btn--primary[aria-disabled="true"], .vd-btn--primary.is-disabled { background: var(--vd-surface-soft); color: var(--vd-text-3); box-shadow: none; }
.vd-btn--primary.is-success { background: var(--vd-positive-solid); color: var(--vd-text-on-inverse); box-shadow: none; }

/* Ghost */
.vd-btn--ghost { padding: 0 14px; background: transparent; box-shadow: none; }
.vd-btn--ghost:hover, .vd-btn--ghost.is-hover { background: var(--vd-hover-soft); box-shadow: none; }
.vd-btn--ghost:active, .vd-btn--ghost.is-active { background: var(--vd-pressed); box-shadow: none; }
.vd-btn--ghost:focus-visible, .vd-btn--ghost.is-focus { background: var(--vd-surface); box-shadow: inset 0 0 0 1.5px var(--vd-focus-edge), 0 0 0 2px var(--vd-focus-gap); }
.vd-btn--ghost:disabled, .vd-btn--ghost[aria-disabled="true"], .vd-btn--ghost.is-disabled { background: transparent; color: var(--vd-text-3); box-shadow: none; }

/* Destructive · graphite focus ring, neutral success ("Revoked") */
.vd-btn--destructive { --vd-ring: var(--vd-focus-edge); background: var(--vd-negative-solid); color: var(--vd-text-on-inverse); box-shadow: none; }
.vd-btn--destructive:hover, .vd-btn--destructive.is-hover { background: var(--vd-negative-solid-hover); box-shadow: none; }
.vd-btn--destructive:active, .vd-btn--destructive.is-active { background: var(--vd-negative-solid-pressed); box-shadow: var(--vd-shadow-pressed-destructive); }
.vd-btn--destructive:focus-visible, .vd-btn--destructive.is-focus { background: var(--vd-negative-solid); box-shadow: 0 0 0 2px var(--vd-focus-gap); }
.vd-btn--destructive:disabled, .vd-btn--destructive[aria-disabled="true"], .vd-btn--destructive.is-disabled { background: var(--vd-negative-tint); color: var(--vd-negative-disabled); box-shadow: none; }
.vd-btn--destructive.is-success { background: var(--vd-neutral-tint); color: var(--vd-text-supporting); box-shadow: none; }

/* On a negative-solid surface (critical banner) */
.vd-btn--on-critical { background: var(--vd-surface); color: var(--vd-negative-text); box-shadow: none; font-weight: 800; }
.vd-btn--on-critical:hover { background: var(--vd-negative-tint); box-shadow: none; }

/* L3 · the special Veridium identity action · max one per screen */
.vd-btn.vd-btn--veridium {
  --vd-ring: var(--vd-focus-edge);
  height: var(--vd-control-44); padding: 0 18px 0 14px; gap: 10px; color: var(--vd-text-1); font-weight: 800;
  background-color: var(--vd-spectrum-optic-blue); background-image: var(--vd-foil-surface);
  box-shadow: inset 0 0 0 1px var(--vd-foil-edge-neutral), var(--vd-shadow-veridium-action); cursor: pointer;
}
.vd-btn.vd-btn--veridium:hover, .vd-btn.vd-btn--veridium.is-hover, .vd-btn.vd-btn--veridium:active, .vd-btn.vd-btn--veridium.is-active { background-color: var(--vd-spectrum-optic-blue); background-image: var(--vd-foil-surface); box-shadow: inset 0 0 0 1px var(--vd-foil-edge-neutral), var(--vd-shadow-veridium-action); }
.vd-btn.vd-btn--veridium:focus-visible, .vd-btn.vd-btn--veridium.is-focus { background-color: var(--vd-spectrum-optic-blue); background-image: var(--vd-foil-surface); box-shadow: inset 0 0 0 1px var(--vd-foil-edge-neutral), 0 0 0 2px var(--vd-focus-gap); }
.vd-btn.vd-btn--veridium.is-loading { background-image: radial-gradient(90% 70% at 50% 0%, rgba(255,255,255,.95), rgba(255,255,255,.55) 70%), conic-gradient(from 200deg at 62% 58%, var(--vd-foil-stops)); }
.vd-btn.vd-btn--veridium.is-complete { background: var(--vd-surface-inverse); color: var(--vd-text-on-inverse); box-shadow: none; }
.vd-btn.vd-btn--veridium:disabled, .vd-btn.vd-btn--veridium[aria-disabled="true"], .vd-btn.vd-btn--veridium.is-disabled { background: var(--vd-surface-2); color: var(--vd-text-3); box-shadow: none; outline: 1px dashed var(--vd-border-strong); outline-offset: -1px; }
.vd-btn--veridium .vd-perimeter { --vd-per-w: 16px; background: var(--vd-surface-inverse); }
.vd-btn--veridium .vd-perimeter::before { inset: -6px; background: conic-gradient(var(--vd-surface-inverse) 0 70%, var(--vd-surface) 85%, var(--vd-surface-inverse)); animation-duration: 1.6s; }
.vd-btn--veridium .vd-perimeter .vd-perimeter__core { inset: 2.5px; background: var(--vd-violet-100); }

/* Sizes */
.vd-btn--28 { --vd-r: var(--vd-radius-8); height: var(--vd-control-28); padding: 0 10px; gap: 6px; font-size: 12.5px; }
.vd-btn--28 > i, .vd-btn--28 > .ph, .vd-btn--28 > .ph-bold { font-size: 13px; }
.vd-btn--32 { --vd-r: var(--vd-radius-8); height: var(--vd-control-32); padding: 0 12px; gap: 6px; font-size: 13px; }
.vd-btn--32 > i, .vd-btn--32 > .ph, .vd-btn--32 > .ph-bold { font-size: 14px; }
.vd-btn--36 { height: var(--vd-control-36); padding: 0 14px; gap: 6px; }
.vd-btn--36 > i, .vd-btn--36 > .ph, .vd-btn--36 > .ph-bold { font-size: 15px; }
.vd-btn--44 { height: var(--vd-control-44); padding: 0 18px; font-size: 15px; }
.vd-btn--block { width: 100%; }

.vd-btn-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ============================================================
   7 · Icon buttons · r10 squares, tooltip required
   ============================================================ */
.vd-icon-btn {
  --vd-r: var(--vd-radius-10); --vd-ring-gap: 1.5px;
  position: relative; display: inline-grid; place-items: center; flex: none; width: var(--vd-control-36); height: var(--vd-control-36);
  padding: 0; border: 0; border-radius: var(--vd-r); background: var(--vd-surface); color: var(--vd-text-1);
  box-shadow: inset 0 0 0 1px var(--vd-border); font-size: 17px; line-height: 1; cursor: pointer; text-decoration: none;
  transition: background-color var(--vd-duration-press) var(--vd-ease-out), box-shadow var(--vd-duration-press) var(--vd-ease-out);
}
.vd-icon-btn:hover, .vd-icon-btn.is-hover { background: var(--vd-surface-2); box-shadow: inset 0 0 0 1px var(--vd-border-hover); }
.vd-icon-btn:active, .vd-icon-btn.is-active { background: var(--vd-surface-soft); box-shadow: inset 0 0 0 1px var(--vd-border-hover); }
.vd-icon-btn:focus-visible, .vd-icon-btn.is-focus { outline: none; background: var(--vd-surface); box-shadow: inset 0 0 0 1.5px var(--vd-focus-edge), 0 0 0 1.5px var(--vd-focus-gap); }
.vd-icon-btn:disabled, .vd-icon-btn[aria-disabled="true"], .vd-icon-btn.is-disabled { background: var(--vd-surface-2); color: var(--vd-border-strong); box-shadow: inset 0 0 0 1px var(--vd-border-subtle); cursor: not-allowed; }
.vd-icon-btn[aria-pressed="true"], .vd-icon-btn.is-toggled { background: var(--vd-surface-inverse); color: var(--vd-text-on-inverse); box-shadow: none; }
.vd-icon-btn--28 { --vd-r: var(--vd-radius-8); width: var(--vd-control-28); height: var(--vd-control-28); font-size: 13px; }
.vd-icon-btn--32 { --vd-r: var(--vd-radius-8); width: var(--vd-control-32); height: var(--vd-control-32); font-size: 16px; }
.vd-icon-btn--40 { width: var(--vd-control-40); height: var(--vd-control-40); font-size: 18px; }
.vd-icon-btn--plain { background: transparent; box-shadow: none; color: var(--vd-text-supporting); }
.vd-icon-btn--plain:hover, .vd-icon-btn--plain.is-hover { background: var(--vd-hover-soft); box-shadow: none; color: var(--vd-text-1); }
.vd-icon-btn--plain:active { background: var(--vd-pressed); box-shadow: none; }
.vd-icon-btn--inverse { background: transparent; box-shadow: none; color: var(--vd-text-on-inverse); }
.vd-icon-btn--inverse:hover, .vd-icon-btn--inverse.is-hover, .vd-icon-btn--inverse:active, .vd-icon-btn--inverse.is-active { background: var(--vd-inverse-hover); box-shadow: none; }
.vd-icon-btn--inverse:focus-visible, .vd-icon-btn--inverse.is-focus { background: transparent; box-shadow: inset 0 0 0 1.5px var(--vd-text-on-inverse); }
.vd-icon-btn__badge { position: absolute; top: -5px; right: -5px; }

/* ============================================================
   8 · Tooltips · explain, never instruct
   ============================================================ */
.vd-tooltip { z-index: var(--vd-z-tooltip); display: inline-block; max-width: 280px; padding: 6px 9px; border-radius: var(--vd-radius-8); background: var(--vd-surface-inverse); color: var(--vd-text-on-inverse); font: 600 12px/16px var(--font-sans); white-space: nowrap; pointer-events: none; }
.vd-has-tooltip { position: relative; display: inline-flex; }
.vd-has-tooltip > .vd-tooltip { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); opacity: 0; transition: opacity var(--vd-duration-press) var(--vd-ease-out); }
.vd-has-tooltip > .vd-tooltip--right { bottom: auto; left: calc(100% + 6px); top: 50%; transform: translateY(-50%); }
.vd-has-tooltip > .vd-tooltip--bottom { bottom: auto; top: calc(100% + 8px); }
.vd-has-tooltip:hover > .vd-tooltip, .vd-has-tooltip:focus-within > .vd-tooltip, .vd-tooltip.is-visible { opacity: 1; }
.vd-tooltip--rich { display: flex; flex-direction: column; gap: 6px; max-width: var(--vd-tooltip-rich-max); padding: 12px 14px; border-radius: var(--vd-radius-12); background: var(--vd-surface); color: var(--vd-text-1); box-shadow: var(--vd-shadow-e3); white-space: normal; pointer-events: auto; }
.vd-tooltip__term { font: 600 12px/16px var(--font-mono); }
.vd-tooltip__def { font: 500 12.5px/18px var(--font-sans); color: var(--vd-text-supporting); }
.vd-tooltip__source { font: 500 11px/15px var(--font-mono); color: var(--vd-text-2); }
.vd-has-tooltip > .vd-tooltip--rich { width: max-content; } /* a positioned card would shrink to the term's width */
.vd-term { display: inline-flex; align-items: center; gap: 6px; font: 600 13px/18px var(--font-sans); color: var(--vd-text-supporting); cursor: help; }
.vd-term > i { font-size: 14px; }
.vd-term:focus-visible { outline: var(--vd-stroke-1-5) solid var(--vd-focus-edge); outline-offset: 2px; border-radius: 4px; }

/* ============================================================
   9 · Forms · light fields, optical focus edge, machine values in mono
   ============================================================ */
.vd-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.vd-field__label { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font: 600 13px/18px var(--font-sans); color: var(--vd-text-supporting); }
.vd-field__label .vd-req { color: var(--vd-text-2); font-weight: 500; }
fieldset.vd-field > legend { margin-bottom: 6px; } /* a legend sits outside the flex gap */
.vd-field__counter { font: 500 11px/15px var(--font-mono); color: var(--vd-text-2); }
.vd-field__help { font: 500 12px/16px var(--font-sans); color: var(--vd-text-2); }
.vd-field__message { display: flex; gap: 6px; align-items: flex-start; font: 600 12px/17px var(--font-sans); }
.vd-field__message > i { font-size: 14px; margin-top: 1px; flex: none; }
.vd-field__message--error, .vd-field__message--conflict { color: var(--vd-negative-text); }
.vd-field__message--success { color: var(--vd-positive-text); }
.vd-field__message a { color: var(--vd-text-1); }
.vd-field.is-disabled .vd-field__label { color: var(--vd-text-3); }
.vd-form-section { display: flex; flex-direction: column; gap: 12px; }
.vd-form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px 18px; align-items: start; }

.vd-input {
  --vd-r: var(--vd-radius-10); --vd-pad: 12px;
  display: flex; align-items: center; gap: 8px; width: 100%; min-width: 0; height: var(--vd-control-40); padding: 0 var(--vd-pad);
  border: var(--vd-stroke-1) solid var(--vd-border-strong); border-radius: var(--vd-r); background: var(--vd-surface);
  color: var(--vd-text-1); font: 500 14px/20px var(--font-sans); text-align: left;
  transition: border-color var(--vd-duration-hover) var(--vd-ease-out), box-shadow var(--vd-duration-hover) var(--vd-ease-out);
}
input.vd-input, textarea.vd-input, select.vd-input { display: block; }
.vd-input:hover, .vd-input.is-hover { border-color: var(--vd-border-hover); }
.vd-input__control { flex: 1 1 auto; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: transparent; font: inherit; color: inherit; letter-spacing: inherit; }
.vd-input__control::-webkit-search-cancel-button { display: none; }
.vd-input__icon { flex: none; font-size: 16px; color: var(--vd-text-2); }.vd-input__unit { flex: none; color: var(--vd-text-2); }
.vd-input__addon { flex: none; align-self: stretch; display: flex; align-items: center; gap: 4px; padding: 0 10px; background: var(--vd-surface-2); color: var(--vd-text-supporting); font: 600 12.5px/1 var(--font-mono); white-space: nowrap; }
.vd-input__addon:first-child { margin-left: calc(-1 * var(--vd-pad)); border-right: var(--vd-stroke-1) solid var(--vd-border); border-radius: calc(var(--vd-r) - 1px) 0 0 calc(var(--vd-r) - 1px); }
.vd-input__addon:last-child { margin-right: calc(-1 * var(--vd-pad)); border-left: var(--vd-stroke-1) solid var(--vd-border); border-radius: 0 calc(var(--vd-r) - 1px) calc(var(--vd-r) - 1px) 0; }
.vd-input__addon > i { font-size: 10px; }
.vd-input__addon--muted { font-weight: 500; color: var(--vd-text-2); }
.vd-input__step { flex: none; align-self: stretch; width: 36px; display: grid; place-items: center; padding: 0; border: 0; border-left: var(--vd-stroke-1) solid var(--vd-border); background: transparent; color: var(--vd-text-1); font-size: 13px; cursor: pointer; }
.vd-input__step:last-child { margin-right: calc(-1 * var(--vd-pad)); border-radius: 0 calc(var(--vd-r) - 1px) calc(var(--vd-r) - 1px) 0; }
.vd-input__step:hover { background: var(--vd-surface-2); }
.vd-input--has-badge { padding-right: 6px; }
.vd-input--num .vd-input__control, .vd-input--num { font-variant-numeric: tabular-nums; }
.vd-input--right .vd-input__control { text-align: right; }

/* Focus · 1.5px foil edge + graphite hairline inside + soft halo */
.vd-input:focus-within, .vd-input.is-focus {
  --vd-pad: 11.5px; border: 1.5px solid transparent; outline: none;
  background: linear-gradient(var(--vd-surface), var(--vd-surface)) padding-box, conic-gradient(from 210deg, var(--vd-foil-edge-stops)) border-box;
  box-shadow: inset 0 0 0 1px var(--vd-focus-edge), var(--vd-shadow-focus-halo);
}
/* Validation */
.vd-input.is-invalid, .vd-input[aria-invalid="true"], .vd-input:has(> [aria-invalid="true"]) { --vd-pad: 11.5px; border: 1.5px solid var(--vd-negative-solid); }
.vd-input.is-valid { --vd-pad: 11.5px; border: 1.5px solid var(--vd-positive-solid); }
.vd-input.is-conflict { --vd-pad: 11.5px; border: 1.5px dashed var(--vd-negative-solid); }
.vd-input:disabled, .vd-input.is-disabled, .vd-input:has(> :disabled) { border-color: var(--vd-border); background: var(--vd-canvas); color: var(--vd-text-3); cursor: not-allowed; }
.vd-input:disabled .vd-input__icon, .vd-input.is-disabled .vd-input__icon,
.vd-input:disabled .vd-input__caret, .vd-input.is-disabled .vd-input__caret { color: var(--vd-text-3); }
.vd-input--readonly, .vd-input--readonly:hover { border-color: var(--vd-border-subtle); background: var(--vd-surface-2); color: var(--vd-text-supporting); font-family: var(--font-mono); }
.vd-input--readonly .vd-input__icon { font-size: 15px; }
/* Variants */
.vd-input--mono { font: 500 14px/20px var(--font-mono); letter-spacing: .04em; }
.vd-input--gtin { font: 500 14px/20px var(--font-mono); letter-spacing: .06em; }
.vd-input--search { background: var(--vd-surface-2); }
.vd-input--36 { height: var(--vd-control-36); }
.vd-input--44 { height: var(--vd-control-44); }
.vd-input--44.vd-input--mono { font-size: 15px; letter-spacing: .05em; }
.vd-input--52 { --vd-r: var(--vd-radius-12); height: var(--vd-control-52); gap: 12px; padding: 0 10px 0 16px; font: 600 16px/22px var(--font-sans); }
.vd-input--52:focus-within { padding: 0 9.5px 0 15.5px; box-shadow: inset 0 0 0 1px var(--vd-focus-edge), var(--vd-shadow-focus-halo); }
.vd-input--52 > .vd-input__icon { font-size: 20px; color: var(--vd-text-1); }
.vd-input--trigger { cursor: pointer; }
.vd-input--trigger .vd-input__caret { margin-left: auto; font-size: 14px; color: var(--vd-text-supporting); }
.vd-check-digit { font-weight: 600; background: var(--vd-positive-tint); color: var(--vd-positive-text); border-radius: var(--vd-radius-2); padding: 0 2px; }

/* Textarea */
.vd-textarea { height: auto; min-height: 84px; padding: 10px 12px; align-items: flex-start; font: 500 14px/21px var(--font-sans); color: var(--vd-text-supporting); resize: vertical; }
.vd-textarea:focus-within, .vd-textarea:focus { padding: 9.5px 11.5px; }
.vd-field__foot { display: flex; justify-content: space-between; gap: 8px; }
.vd-field__foot .vd-field__counter { margin-left: auto; }

/* Select (native) */
select.vd-input, .vd-select { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer; background-image: var(--vd-glyph-caret-down); background-repeat: no-repeat; background-position: right 12px center; background-size: 14px 14px; }
select.vd-input:disabled, select.vd-input.is-disabled { background: var(--vd-glyph-caret-down) no-repeat right 12px center / 14px 14px, var(--vd-canvas); }
select.vd-input:focus, select.vd-input.is-focus, .vd-select:focus { outline: none; border: 1.5px solid transparent; background: var(--vd-glyph-caret-down) no-repeat right 11.5px center / 14px 14px, linear-gradient(var(--vd-surface), var(--vd-surface)) padding-box, conic-gradient(from 210deg, var(--vd-foil-edge-stops)) border-box; box-shadow: inset 0 0 0 1px var(--vd-focus-edge), var(--vd-shadow-focus-halo); }

/* Listbox · autocomplete, select, sort */
.vd-listbox { display: flex; flex-direction: column; padding: 5px; border-radius: var(--vd-radius-12); background: var(--vd-surface); box-shadow: var(--vd-shadow-e3); z-index: var(--vd-z-popover); }
.vd-option { display: flex; align-items: baseline; gap: 10px; padding: 8px 10px; border: 0; border-radius: var(--vd-radius-8); background: transparent; color: var(--vd-text-1); font: 500 13px/18px var(--font-sans); text-align: left; cursor: pointer; }
.vd-option:hover, .vd-option.is-active, .vd-option[aria-selected="true"] { background: var(--vd-hover-row); }
.vd-option:focus-visible { outline: var(--vd-stroke-1-5) solid var(--vd-focus-edge); outline-offset: -1.5px; }
.vd-option b, .vd-option strong { font-weight: 800; }
.vd-option__code { font: 600 12px/18px var(--font-mono); flex: none; }
.vd-option__check { margin-left: auto; font-size: 13px; }

/* Token field (multi-select) */
.vd-token-field { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: var(--vd-control-36); padding: 4px 8px; border: var(--vd-stroke-1) solid var(--vd-border-strong); border-radius: var(--vd-radius-10); background: var(--vd-surface); }
.vd-token-field:focus-within { border: 1.5px solid transparent; padding: 3.5px 7.5px; background: linear-gradient(var(--vd-surface), var(--vd-surface)) padding-box, conic-gradient(from 210deg, var(--vd-foil-edge-stops)) border-box; box-shadow: inset 0 0 0 1px var(--vd-focus-edge), var(--vd-shadow-focus-halo); }
.vd-token { display: inline-flex; align-items: center; gap: 3px; height: 24px; padding: 0 3px 0 8px; border-radius: var(--vd-radius-6); background: var(--vd-surface-soft); font: 700 12px/1 var(--font-sans); }
.vd-token__remove { display: grid; place-items: center; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--vd-neutral-text); font-size: 10px; cursor: pointer; }
.vd-token__remove:hover { background: var(--vd-border); }
.vd-token__remove:focus-visible { outline: var(--vd-stroke-1-5) solid var(--vd-focus-edge); outline-offset: 0; }
.vd-token-field__input { flex: 1 1 80px; min-width: 60px; border: 0; outline: 0; background: transparent; font: 500 12.5px/20px var(--font-sans); }

/* Date field + calendar (proposed extension · built only from existing tokens) */
.vd-calendar { display: inline-flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: var(--vd-radius-14); background: var(--vd-surface); box-shadow: var(--vd-shadow-e3); }
.vd-calendar__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font: 700 13.5px/1 var(--font-sans); }
.vd-calendar__grid { display: grid; grid-template-columns: repeat(7, 32px); gap: 2px; }
.vd-calendar__grid > [role="row"] { display: contents; } /* week rows stay valid grid markup */
.vd-calendar__dow { height: 24px; display: grid; place-items: center; font: 500 10.5px/1 var(--font-mono); color: var(--vd-text-2); text-transform: uppercase; }
.vd-calendar__day { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 0; border-radius: var(--vd-radius-8); background: transparent; color: var(--vd-text-1); font: 600 12.5px/1 var(--font-sans); font-variant-numeric: tabular-nums; cursor: pointer; }
.vd-calendar__day:hover { background: var(--vd-hover-soft); }
.vd-calendar__day.is-outside { color: var(--vd-text-3); }
.vd-calendar__day.is-today { box-shadow: inset 0 0 0 1.5px var(--vd-border-active); }
.vd-calendar__day[aria-selected="true"], .vd-calendar__day.is-selected { background: var(--vd-surface-inverse); color: var(--vd-text-on-inverse); box-shadow: none; }
.vd-calendar__day:disabled { color: var(--vd-text-3); text-decoration: line-through; cursor: not-allowed; background: transparent; }
.vd-calendar__day:focus-visible { outline: var(--vd-stroke-1-5) solid var(--vd-focus-edge); outline-offset: 1px; }

/* ============================================================
   10 · Selection controls · graphite, never foil
   ============================================================ */
.vd-check, .vd-radio { position: relative; display: inline-flex; align-items: center; gap: 12px; font: 600 14px/20px var(--font-sans); color: var(--vd-text-1); cursor: pointer; }
.vd-check__input, .vd-radio__input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.vd-check__box { --vd-r: var(--vd-radius-5); --vd-ring-gap: 1.5px; position: relative; flex: none; width: var(--vd-checkbox-18); height: var(--vd-checkbox-18); border-radius: var(--vd-r); background: var(--vd-surface); box-shadow: inset 0 0 0 1.5px var(--vd-control-ring); transition: background-color var(--vd-duration-press) var(--vd-ease-out), box-shadow var(--vd-duration-press) var(--vd-ease-out); }
.vd-check__box::before { content: ""; position: absolute; inset: 0; background: var(--vd-text-on-inverse); -webkit-mask: var(--vd-glyph-check) center / 11px 11px no-repeat; mask: var(--vd-glyph-check) center / 11px 11px no-repeat; opacity: 0; }
.vd-check:hover .vd-check__box, .vd-check__box.is-hover { background: var(--vd-canvas); box-shadow: inset 0 0 0 1.5px var(--vd-control-ring-hover); }
.vd-check__input:checked + .vd-check__box, .vd-check__box.is-checked,
.vd-check__input:indeterminate + .vd-check__box, .vd-check__box.is-mixed { background: var(--vd-surface-inverse); box-shadow: none; }
.vd-check__input:checked + .vd-check__box::before, .vd-check__box.is-checked::before { opacity: 1; }
.vd-check__input:indeterminate + .vd-check__box::before, .vd-check__box.is-mixed::before { opacity: 1; -webkit-mask-image: var(--vd-glyph-minus); mask-image: var(--vd-glyph-minus); }
.vd-check__input:disabled + .vd-check__box, .vd-check__box.is-disabled { background: var(--vd-surface-soft); box-shadow: inset 0 0 0 1px var(--vd-border); }
.vd-check__input:disabled + .vd-check__box::before, .vd-check__box.is-disabled::before { background: var(--vd-text-3); } /* a checked or mixed glyph stays visible on Soft */
.vd-check:has(.vd-check__input:disabled), .vd-check.is-disabled { color: var(--vd-text-3); cursor: not-allowed; }
.vd-check.is-invalid .vd-check__box, .vd-check__box.is-invalid { box-shadow: inset 0 0 0 1.5px var(--vd-negative-solid); }
.vd-check--16 { gap: 10px; font-size: 13px; }
.vd-check--16 .vd-check__box { --vd-r: var(--vd-radius-4); width: var(--vd-checkbox-16); height: var(--vd-checkbox-16); }
.vd-check--16 .vd-check__box::before { -webkit-mask-size: 10px 10px; mask-size: 10px 10px; }
.vd-check__count { margin-left: auto; font: 500 11px/15px var(--font-mono); color: var(--vd-text-2); }

.vd-radio__dot { --vd-r: 9px; --vd-ring-gap: 1.5px; position: relative; flex: none; width: var(--vd-checkbox-18); height: var(--vd-checkbox-18); border-radius: 50%; background: var(--vd-surface); box-shadow: inset 0 0 0 1.5px var(--vd-control-ring); transition: box-shadow var(--vd-duration-hover) var(--vd-ease-out); }
.vd-radio:hover .vd-radio__dot, .vd-radio__dot.is-hover { background: var(--vd-canvas); box-shadow: inset 0 0 0 1.5px var(--vd-control-ring-hover); }
.vd-radio__input:checked + .vd-radio__dot, .vd-radio__dot.is-checked { background: var(--vd-surface); box-shadow: inset 0 0 0 5px var(--vd-border-active); }
.vd-radio__input:disabled + .vd-radio__dot, .vd-radio__dot.is-disabled { background: var(--vd-surface-soft); box-shadow: inset 0 0 0 1px var(--vd-border); }
.vd-radio__input:disabled:checked + .vd-radio__dot, .vd-radio__dot.is-disabled.is-checked { box-shadow: inset 0 0 0 5px var(--vd-text-3); } /* a disabled choice never looks empty */
.vd-radio:has(.vd-radio__input:disabled) { color: var(--vd-text-3); cursor: not-allowed; }
.vd-radio.is-invalid .vd-radio__dot, .vd-radio__dot.is-invalid { box-shadow: inset 0 0 0 1.5px var(--vd-negative-solid); }

/* Selectable tile · option with explanation (radio or checkbox inside) */
.vd-option-tile { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: var(--vd-radius-10); background: var(--vd-surface); box-shadow: inset 0 0 0 1px var(--vd-border); cursor: pointer; transition: box-shadow var(--vd-duration-hover) var(--vd-ease-out); }
.vd-option-tile:hover, .vd-option-tile.is-hover { box-shadow: inset 0 0 0 1px var(--vd-border-hover); }
.vd-option-tile:has(input:checked), .vd-option-tile.is-selected { box-shadow: inset 0 0 0 1.5px var(--vd-border-active); }
.vd-option-tile:has(input:disabled), .vd-option-tile.is-disabled { background: var(--vd-surface-2); box-shadow: inset 0 0 0 1px var(--vd-border-subtle); color: var(--vd-text-3); cursor: not-allowed; }
.vd-option-tile.is-invalid { box-shadow: inset 0 0 0 1.5px var(--vd-negative-solid); }
.vd-option-tile .vd-radio__dot, .vd-option-tile .vd-check__box { margin-top: 1px; }
.vd-option-tile__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vd-option-tile__title { font: 700 14px/20px var(--font-sans); }
.vd-option-tile__desc { font: 500 12px/16px var(--font-sans); color: var(--vd-text-2); }
.vd-option-tile:has(input:disabled) .vd-option-tile__desc, .vd-option-tile.is-disabled .vd-option-tile__desc { color: var(--vd-text-3); }
.vd-option-list { display: flex; flex-direction: column; gap: 8px; }

/* Switch · true ON/OFF only, takes effect immediately */
.vd-switch { --vd-r: 12px; position: relative; flex: none; width: 40px; height: 24px; padding: 2px; border: 0; border-radius: var(--vd-radius-full); background: var(--vd-control-off); cursor: pointer; transition: background-color var(--vd-duration-hover) var(--vd-ease-out); }
.vd-switch::before { content: ""; display: block; width: 20px; height: 20px; border-radius: 50%; background: var(--vd-surface); box-shadow: var(--vd-shadow-knob); transition: transform var(--vd-duration-hover) var(--vd-ease-out); }
.vd-switch:hover, .vd-switch.is-hover { background: var(--vd-control-off-hover); }
.vd-switch[aria-checked="true"], .vd-switch.is-on { background: var(--vd-surface-inverse); }
.vd-switch[aria-checked="true"]::before, .vd-switch.is-on::before { transform: translateX(16px); }
.vd-switch:focus-visible, .vd-switch.is-focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--vd-focus-edge), 0 0 0 2px var(--vd-focus-gap); }
.vd-switch[aria-checked="true"]:focus-visible, .vd-switch.is-on.is-focus { box-shadow: 0 0 0 2px var(--vd-focus-gap); }
.vd-switch:disabled, .vd-switch.is-disabled { background: var(--vd-surface-soft); cursor: not-allowed; }
.vd-switch:disabled::before, .vd-switch.is-disabled::before { box-shadow: 0 0 0 1px var(--vd-border); }
.vd-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: var(--vd-stroke-1) solid var(--vd-border-subtle); }
.vd-switch-row__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vd-switch-row__label { font: 700 14px/20px var(--font-sans); }
.vd-switch-row__desc { font: 500 12px/16px var(--font-sans); color: var(--vd-text-2); }

/* Segmented control · and segmented tabs (role=tablist) */
.vd-segmented, .vd-tabs { display: inline-flex; align-self: flex-start; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: var(--vd-radius-10); background: var(--vd-surface-soft); }
.vd-segmented__item, .vd-tabs__tab { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: var(--vd-control-28); padding: 0 14px; border: 0; border-radius: var(--vd-radius-8); background: transparent; color: var(--vd-text-2-strong); font: 700 13px/1 var(--font-sans); white-space: nowrap; cursor: pointer; transition: background-color var(--vd-duration-press) var(--vd-ease-out), color var(--vd-duration-press) var(--vd-ease-out); }
.vd-segmented__item:hover, .vd-tabs__tab:hover, .vd-segmented__item.is-hover, .vd-tabs__tab.is-hover { color: var(--vd-text-1); }
.vd-segmented__item[aria-checked="true"], .vd-segmented__item[aria-selected="true"], .vd-segmented__item.is-selected,
.vd-tabs__tab[aria-selected="true"], .vd-tabs__tab.is-selected { background: var(--vd-surface); color: var(--vd-text-1); box-shadow: 0 0 0 1px var(--vd-border), var(--vd-shadow-segment); }
.vd-segmented__item:focus-visible, .vd-tabs__tab:focus-visible, .vd-segmented__item.is-focus, .vd-tabs__tab.is-focus { outline: var(--vd-stroke-1-5) solid var(--vd-focus-edge); outline-offset: 1px; }
.vd-segmented__item:disabled, .vd-tabs__tab:disabled { color: var(--vd-text-3); cursor: not-allowed; }
/* counts keep 4.5:1 on Soft (no opacity): mono 10.5 is the de-emphasis */
.vd-segmented__count, .vd-tabs__count { font: 500 10.5px/1 var(--font-mono); color: var(--vd-text-2-strong); }
.vd-segmented--compact, .vd-tabs { padding: 2px; border-radius: var(--vd-radius-8); }
.vd-segmented--compact .vd-segmented__item, .vd-tabs__tab { height: var(--vd-control-24); padding: 0 10px; border-radius: var(--vd-radius-6); font-size: 12px; }
.vd-segmented--block { display: flex; }
.vd-segmented--block .vd-segmented__item { flex: 1 1 0; }

/* ============================================================
   11 · Badges, chips, counts · r6 / r8, never pills
   ============================================================ */
.vd-badge { display: inline-flex; align-items: center; gap: 5px; flex: none; height: var(--vd-badge-22); padding: 0 8px; border-radius: var(--vd-radius-6); background: var(--vd-neutral-tint); color: var(--vd-neutral-text); font: 700 12px/1 var(--font-sans); white-space: nowrap; }
.vd-badge > i { font-size: 12px; }
.vd-badge > .ph-fill.ph-circle { font-size: 7px; }
.vd-badge--positive { background: var(--vd-positive-tint); color: var(--vd-positive-text); --vd-badge-solid: var(--vd-positive-solid); }
.vd-badge--attention { background: var(--vd-attention-tint); color: var(--vd-attention-text); --vd-badge-solid: var(--vd-attention-solid); }
.vd-badge--negative { background: var(--vd-negative-tint); color: var(--vd-negative-text); --vd-badge-solid: var(--vd-negative-solid); }
.vd-badge--processing { background: var(--vd-processing-tint); color: var(--vd-processing-text); --vd-badge-solid: var(--vd-processing-solid); }
.vd-badge--neutral { background: var(--vd-neutral-tint); color: var(--vd-neutral-text); --vd-badge-solid: var(--vd-neutral-solid); }
.vd-badge.is-open, button.vd-badge:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--vd-canvas), 0 0 0 3.5px var(--vd-badge-solid, var(--vd-neutral-solid)); }
button.vd-badge { border: 0; cursor: pointer; }
.vd-badge--dpp { gap: 6px; height: var(--vd-badge-24); padding: 0 9px 0 7px; background: var(--vd-surface-inverse); color: var(--vd-text-on-inverse); }
.vd-badge--dpp .vd-hexmark { --vd-hex-w: 11px; } /* bare foil hex 11 × 13 */

/* Veridium Verified · the only holographic badge; earned, never removable or selectable */
.vd-verified { display: inline-flex; align-items: center; gap: 6px; flex: none; height: var(--vd-badge-24); padding: 0 9px 0 7px; border-radius: var(--vd-radius-6); border: var(--vd-stroke-1) solid transparent; background: linear-gradient(var(--vd-surface), var(--vd-surface)) padding-box, conic-gradient(from calc(210deg + var(--vd-foil-angle, 0deg)), var(--vd-foil-edge-stops)) border-box; color: var(--vd-text-1); font: 800 12px/1 var(--font-sans); white-space: nowrap; }
.vd-verified .vd-hexmark { --vd-hex-w: 12px; }
.vd-verified--tag { height: 28px; padding: 0 10px 0 8px; border-radius: var(--vd-radius-8); font-size: 12.5px; }

.vd-chip { position: relative; display: inline-flex; align-items: center; gap: 6px; flex: none; height: var(--vd-chip-26); padding: 0 9px; border: 0; border-radius: var(--vd-radius-8); background: var(--vd-surface-soft); color: var(--vd-text-1); font: 600 12.5px/1 var(--font-sans); white-space: nowrap; text-decoration: none; }
.vd-chip > i { font-size: 14px; }
.vd-chip__dot { width: 6px; height: 6px; border-radius: 2px; background: var(--vd-neutral-solid); flex: none; }
.vd-chip--outline { padding: 0 9px 0 7px; background: var(--vd-surface); box-shadow: inset 0 0 0 1px var(--vd-border); }
.vd-chip--selectable { --vd-r: var(--vd-radius-8); height: 28px; gap: 5px; padding: 0 10px 0 8px; background: var(--vd-surface); box-shadow: inset 0 0 0 1px var(--vd-border-strong); cursor: pointer; }
.vd-chip--selectable > i { font-size: 12px; }
.vd-chip--selectable:hover, .vd-chip--selectable.is-hover { box-shadow: inset 0 0 0 1px var(--vd-border-hover); }
.vd-chip--selectable[aria-pressed="true"], .vd-chip--selectable.is-selected { background: var(--vd-surface-inverse); color: var(--vd-text-on-inverse); box-shadow: none; }
.vd-chip--selectable:focus-visible, .vd-chip--selectable.is-focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--vd-focus-edge), 0 0 0 2px var(--vd-focus-gap); }
.vd-chip--selectable[aria-pressed="true"]:focus-visible, .vd-chip--selectable[aria-pressed="true"].is-focus { box-shadow: 0 0 0 2px var(--vd-focus-gap); }
.vd-chip--filter { --vd-r: var(--vd-radius-8); height: 28px; padding: 0 6px 0 10px; background: var(--vd-surface); box-shadow: inset 0 0 0 1px var(--vd-border-strong); cursor: pointer; }
.vd-chip--filter:hover, .vd-chip--filter.is-hover { box-shadow: inset 0 0 0 1px var(--vd-border-hover); }
.vd-chip--filter:focus-visible, .vd-chip--filter.is-focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--vd-focus-edge), 0 0 0 2px var(--vd-focus-gap); }
.vd-chip--filter > i { font-size: 11px; }
.vd-chip__key { font-weight: 500; color: var(--vd-text-2); }
.vd-chip--removable, .vd-chip--applied { height: 28px; gap: 3px; padding: 0 3px 0 9px; }
.vd-chip--applied { gap: 4px; padding: 0 4px 0 10px; }
.vd-chip--removable .vd-chip__key, .vd-chip--applied .vd-chip__key { color: var(--vd-text-2-strong); }
.vd-chip__remove { display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: var(--vd-radius-6); background: transparent; color: var(--vd-neutral-text); font-size: 11px; cursor: pointer; }
.vd-chip__remove:hover { background: var(--vd-border); }
.vd-chip__remove:focus-visible { outline: var(--vd-stroke-1-5) solid var(--vd-focus-edge); outline-offset: 0; }
.vd-chip--scope { height: var(--vd-chip-26); padding: 0 9px; font-weight: 700; font-size: 12px; cursor: pointer; }
.vd-chip--scope[aria-pressed="true"], .vd-chip--scope[aria-selected="true"], .vd-chip--scope.is-selected { background: var(--vd-surface-inverse); color: var(--vd-text-on-inverse); }
.vd-chip--scope:focus-visible { outline: var(--vd-stroke-1-5) solid var(--vd-focus-edge); outline-offset: 2px; }
/* after hover and pressed so a disabled chip never lights up */
.vd-chip--selectable:disabled, .vd-chip--filter:disabled { background: var(--vd-surface); color: var(--vd-text-3); box-shadow: inset 0 0 0 1px var(--vd-border); cursor: not-allowed; }
.vd-chip-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

.vd-count { display: inline-block; flex: none; min-width: 20px; height: 18px; padding: 0 5px; border-radius: var(--vd-radius-5); background: var(--vd-surface-inverse); color: var(--vd-text-on-inverse); font: 600 10.5px/18px var(--font-mono); text-align: center; }
.vd-count--ring { box-shadow: 0 0 0 2px var(--vd-canvas); min-width: 18px; padding: 0 4px; }
.vd-count--on-inverse { min-width: 0; height: auto; padding: 1px 5px; border-radius: var(--vd-radius-4); background: var(--vd-inverse-divider); font-size: 11px; line-height: 15px; }
.vd-count-plain { font: 500 11px/15px var(--font-mono); color: var(--vd-text-2); }
.vd-dot { display: inline-block; flex: none; width: 7px; height: 7px; border-radius: 2px; background: var(--vd-surface-inverse); }
.vd-dot--negative { background: var(--vd-negative-solid); }
.vd-dot--attention { background: var(--vd-attention-solid); }
.vd-dot--positive { background: var(--vd-positive-solid); }
.vd-dot--processing { background: var(--vd-processing-solid); }
.vd-dot--ring { box-shadow: 0 0 0 2px var(--vd-surface); }
.vd-kbd { display: inline-flex; align-items: center; flex: none; height: 20px; padding: 0 6px; border-radius: var(--vd-radius-5); background: var(--vd-surface-soft); color: var(--vd-text-2-strong); font: 500 11px/1 var(--font-mono); white-space: nowrap; }
.vd-version { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: var(--vd-radius-5); background: var(--vd-surface-soft); color: var(--vd-neutral-text); font: 600 11px/1 var(--font-mono); }
.vd-version--current { background: var(--vd-surface-inverse); color: var(--vd-text-on-inverse); }
.vd-code-chip { display: inline-flex; align-self: flex-start; padding: 4px 8px; border-radius: var(--vd-radius-6); background: var(--vd-surface); box-shadow: inset 0 0 0 1px var(--vd-border); font: 500 11px/15px var(--font-mono); }

/* ============================================================
   12 · Status indicators
   ============================================================ */
.vd-signal-tile { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--vd-radius-12); }
.vd-signal-tile__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--vd-radius-10); color: var(--vd-text-on-inverse); font-size: 16px; flex: none; }
.vd-signal-tile__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vd-signal-tile__name { font: 700 13px/18px var(--font-sans); }
.vd-signal-tile__meaning { font: 500 12px/16px var(--font-sans); }
.vd-signal-tile--positive { background: var(--vd-positive-tint); color: var(--vd-positive-text); }
.vd-signal-tile--attention { background: var(--vd-attention-tint); color: var(--vd-attention-text); }
.vd-signal-tile--negative { background: var(--vd-negative-tint); color: var(--vd-negative-text); }
.vd-signal-tile--processing { background: var(--vd-processing-tint); color: var(--vd-processing-text); }
.vd-signal-tile--neutral { background: var(--vd-neutral-tint); color: var(--vd-neutral-text); }
.vd-signal-tile--positive .vd-signal-tile__icon { background: var(--vd-positive-solid); }
.vd-signal-tile--attention .vd-signal-tile__icon { background: var(--vd-attention-solid); }
.vd-signal-tile--negative .vd-signal-tile__icon { background: var(--vd-negative-solid); }
.vd-signal-tile--processing .vd-signal-tile__icon { background: var(--vd-processing-solid); }
.vd-signal-tile--neutral .vd-signal-tile__icon { background: var(--vd-neutral-solid); }
.vd-status-icon { flex: none; font-size: 17px; line-height: 1; }
.vd-trust-bars { display: inline-flex; gap: 2px; flex: none; }
.vd-trust-bars > span { width: 3px; height: 11px; border-radius: 1px; background: var(--vd-meter-open); }
.vd-trust-bars > .is-ok { background: var(--vd-positive-solid); }
.vd-trust-bars > .is-attention { background: var(--vd-attention-solid); }
.vd-trust-bars > .is-negative { background: var(--vd-negative-solid); }
.vd-trust-bars > .is-processing { background: var(--vd-processing-solid); }
.vd-spine-dots { display: inline-flex; align-items: center; gap: 3px; flex: none; }
.vd-spine-dots > span:not(.vd-hexmark) { width: 7px; height: 7px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--vd-border-strong); }
.vd-spine-dots > span.is-ok { background: var(--vd-positive-solid); box-shadow: none; }
.vd-spine-dots > span.is-processing { background: var(--vd-processing-solid); box-shadow: none; }
.vd-spine-dots > span.is-negative { background: var(--vd-negative-solid); box-shadow: none; }
.vd-spine-dots > span.is-attention { background: var(--vd-attention-solid); box-shadow: none; }
.vd-spine-dots > .vd-hexmark { margin-left: 2px; }
.vd-meter { display: flex; gap: 2px; height: 4px; }
.vd-meter > span { flex: var(--w, 1) 1 0; border-radius: 2px; background: var(--vd-meter-open); }
.vd-meter > .is-done { background: var(--vd-progress-fill); }
.vd-meter > .is-ok { background: var(--vd-positive-solid); }
.vd-meter > .is-attention { background: var(--vd-attention-solid); }
.vd-meter > .is-negative { background: var(--vd-negative-solid); }
.vd-meter > .is-processing { background: var(--vd-processing-solid); }
.vd-segments { display: grid; grid-template-columns: repeat(var(--n, 10), 1fr); gap: 3px; }
.vd-segments > span { height: 6px; border-radius: 2px; background: var(--vd-meter-open); }
.vd-segments > .is-done { background: var(--vd-progress-fill); }
.vd-segments > .is-attention { background: var(--vd-attention-solid); }
.vd-segments > .is-negative { background: var(--vd-negative-solid); }

/* ============================================================
   13 · Tiles and avatars
   ============================================================ */
.vd-tile { position: relative; display: inline-grid; place-items: center; flex: none; width: var(--vd-tile-36); height: var(--vd-tile-36); border-radius: var(--vd-radius-10); background: var(--vd-surface-soft); color: var(--vd-text-1); font-size: 18px; line-height: 1; }
.vd-tile--32 { width: var(--vd-tile-32); height: var(--vd-tile-32); border-radius: var(--vd-radius-8); font-size: 16px; }
.vd-tile--40 { width: var(--vd-tile-40); height: var(--vd-tile-40); font-size: 19px; }
.vd-tile--44 { width: var(--vd-tile-44); height: var(--vd-tile-44); border-radius: var(--vd-radius-12); font-size: 21px; }
.vd-tile--positive { background: var(--vd-positive-tint); color: var(--vd-positive-text); }
.vd-tile--attention { background: var(--vd-attention-tint); color: var(--vd-attention-solid); }
.vd-tile--negative { background: var(--vd-negative-tint); color: var(--vd-negative-text); }
.vd-tile--processing { background: var(--vd-processing-tint); color: var(--vd-processing-text); }
.vd-tile--inverse { background: var(--vd-surface-inverse); color: var(--vd-text-on-inverse); }
.vd-tile--dashed { background: transparent; border: var(--vd-stroke-1) dashed var(--vd-border-strong); color: var(--vd-text-placeholder); }
.vd-tile--muted { color: var(--vd-text-2); }
/* the .vd-tile background shorthand above would wipe the foil group's surface — restate it */
.vd-tile.vd-tile--foil { background-color: var(--vd-spectrum-optic-blue); background-image: var(--vd-foil-surface); }
.vd-tile__flag { position: absolute; top: -3px; right: -3px; width: 11px; height: 11px; border-radius: var(--vd-radius-4); background: var(--vd-attention-solid); box-shadow: 0 0 0 2px var(--vd-surface); }
.vd-tile__flag--negative { background: var(--vd-negative-solid); }
.vd-avatar { position: relative; display: inline-grid; place-items: center; flex: none; width: var(--vd-tile-40); height: var(--vd-tile-40); border-radius: var(--vd-radius-10); background: var(--vd-surface-soft); color: var(--vd-text-1); font: 800 13px/1 var(--font-sans); letter-spacing: 0; text-transform: uppercase; }
.vd-avatar--32 { width: 32px; height: 32px; border-radius: var(--vd-radius-8); font-size: 11px; }
.vd-avatar--36 { width: 36px; height: 36px; font-size: 12px; }
.vd-avatar--inverse { background: var(--vd-surface-inverse); color: var(--vd-text-on-inverse); }
.vd-avatar--dashed { background: transparent; border: var(--vd-stroke-1) dashed var(--vd-border-strong); color: var(--vd-text-placeholder); font-size: 16px; }

/* ============================================================
   14 · Cards and containers
   ============================================================ */
.vd-card { position: relative; display: flex; flex-direction: column; min-width: 0; border: var(--vd-stroke-1) solid var(--vd-border); border-radius: var(--vd-radius-16); background: var(--vd-surface); box-shadow: var(--vd-shadow-e1); overflow: hidden; }
.vd-card__header { display: flex; justify-content: space-between; gap: 12px; padding: 11px 16px; border-bottom: var(--vd-stroke-1) solid var(--vd-border-subtle); font: 500 10.5px/14px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--vd-text-2); }
.vd-card__heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 18px 12px; }
/* text link in a card heading or panel foot: All events, Advanced filters */
.vd-link, .vd-card__link { font: 700 12.5px/17px var(--font-sans); }
.vd-card__title { display: flex; align-items: baseline; gap: 8px; font: 800 16px/21px var(--font-sans); }
.vd-card__title .vd-count-plain { font-weight: 600; font-size: 12px; }
.vd-card__body { display: flex; flex-direction: column; gap: 16px; padding: 20px; min-width: 0; }
.vd-card__body--flush { padding: 0; gap: 0; }
.vd-card--canvas .vd-card__body { background: var(--vd-canvas); }
.vd-card--interactive, a.vd-card { color: inherit; text-decoration: none; cursor: pointer; transition: transform var(--vd-duration-hover) var(--vd-ease), box-shadow var(--vd-duration-hover) var(--vd-ease), border-color var(--vd-duration-hover) var(--vd-ease); }
.vd-card--interactive:hover, a.vd-card:hover, .vd-card--interactive.is-hover, a.vd-card.is-hover { transform: translateY(-2px); border-color: var(--vd-border-strong); box-shadow: var(--vd-shadow-e2); }
.vd-card--interactive:focus-visible, a.vd-card:focus-visible { outline: var(--vd-stroke-1-5) solid var(--vd-focus-edge); outline-offset: 3px; }
.vd-card--dashed { border-style: dashed; border-color: var(--vd-border-strong); background: var(--vd-surface-2); box-shadow: none; }
.vd-strip { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 8px 18px; border-top: var(--vd-stroke-1) solid var(--vd-border-subtle); background: var(--vd-surface-2); font: 500 10.5px/14px var(--font-mono); letter-spacing: .04em; color: var(--vd-text-2); text-transform: uppercase; }
.vd-strip--identity { padding: 8px 16px; font-size: 11px; line-height: 15px; letter-spacing: 0; color: var(--vd-text-supporting); }
.vd-strip--attention { color: var(--vd-attention-text); }
.vd-strip--negative { color: var(--vd-negative-text); }
.vd-note { padding: 10px 12px; border: var(--vd-stroke-1) solid var(--vd-border-subtle); border-radius: var(--vd-radius-10); background: var(--vd-surface-2); font: 500 12.5px/18px var(--font-sans); color: var(--vd-text-supporting); }
.vd-note b, .vd-note strong { color: var(--vd-text-1); font-weight: 700; }
.vd-inset-panel { padding: 12px 14px; border: var(--vd-stroke-1) solid var(--vd-border-subtle); border-radius: var(--vd-radius-12); background: var(--vd-surface-2); }
.vd-kv { display: grid; grid-template-columns: auto 1fr; gap: 5px 12px; margin: 0; font: 500 12.5px/17px var(--font-sans); }
.vd-kv > dt { color: var(--vd-text-2); }
.vd-kv > dd { margin: 0; color: var(--vd-text-1); min-width: 0; }
.vd-kv-list { display: flex; flex-direction: column; padding: 2px 12px; border: var(--vd-stroke-1) solid var(--vd-border-subtle); border-radius: var(--vd-radius-10); background: var(--vd-surface-2); font: 500 12.5px/17px var(--font-sans); }
.vd-kv-list__row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: var(--vd-stroke-1) solid var(--vd-border-subtle); }
.vd-kv-list__row:last-child { border-bottom: 0; }
.vd-kv-list__key { color: var(--vd-text-2); }
.vd-kv-list__value { font: 500 12px/17px var(--font-mono); text-align: right; min-width: 0; overflow-wrap: anywhere; }

/* Widget · the signature component: human zone on white + machine strip on Surface 2 */
.vd-widget-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); grid-auto-rows: minmax(var(--vd-widget-min-height), auto); gap: var(--vd-grid-gutter); }
.vd-widget-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.vd-widget-area { container-type: inline-size; }
.vd-widget {
  position: relative; display: flex; flex-direction: column; min-width: 0; min-height: var(--vd-widget-min-height); padding: 0;
  border: var(--vd-stroke-1) solid var(--vd-border); border-radius: var(--vd-radius-16); background: var(--vd-surface); box-shadow: var(--vd-shadow-e1);
  color: var(--vd-text-1); font: inherit; text-align: left; text-decoration: none;
  transition: transform var(--vd-duration-hover) var(--vd-ease), box-shadow var(--vd-duration-hover) var(--vd-ease), border-color var(--vd-duration-hover) var(--vd-ease), background-color var(--vd-duration-hover) var(--vd-ease);
}
a.vd-widget, button.vd-widget, .vd-widget--interactive { cursor: pointer; }
.vd-widget__body { position: relative; flex: 1 1 auto; display: flex; flex-direction: column; gap: 12px; padding: var(--vd-space-18); min-width: 0; }
.vd-widget__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.vd-widget__open { display: grid; place-items: center; flex: none; width: var(--vd-control-28); height: var(--vd-control-28); border-radius: var(--vd-radius-8); box-shadow: inset 0 0 0 1px var(--vd-border); font-size: 13px; transition: background-color var(--vd-duration-hover) var(--vd-ease), color var(--vd-duration-hover) var(--vd-ease); }
.vd-widget__mark { display: none; margin: 2px 4px 0 0; }
.vd-widget__lock { font-size: 16px; margin: 6px; color: var(--vd-text-3); }
.vd-widget__spacer { flex: 1 1 auto; }
.vd-widget__title { display: block; font: 700 15px/20px var(--font-sans); }
.vd-widget__summary { display: block; margin-top: 2px; font: 500 13px/19px var(--font-sans); color: var(--vd-text-2); }
.vd-widget__eyebrow { font: 700 11px/14px var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--vd-text-2); }
.vd-widget__figure { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.vd-widget__figure > b { font: 600 28px/32px var(--font-sans); letter-spacing: -.03em; }
.vd-widget__figure > span { font: 500 12.5px/17px var(--font-sans); color: var(--vd-text-2); }
.vd-widget__body > .vd-badge, .vd-widget__body > .vd-verified { align-self: flex-start; }
.vd-widget__strip { position: relative; display: flex; justify-content: space-between; gap: 12px; padding: 8px 18px; border-top: var(--vd-stroke-1) solid var(--vd-border-subtle); border-radius: 0 0 15px 15px; background: var(--vd-surface-2); font: 500 10.5px/14px var(--font-mono); letter-spacing: .04em; color: var(--vd-text-2); text-transform: uppercase; }
.vd-widget__strip--attention { color: var(--vd-attention-text); }
.vd-widget__strip--negative { color: var(--vd-negative-text); }
/* hover */
a.vd-widget:hover, button.vd-widget:hover, .vd-widget--interactive:hover, .vd-widget.is-hover { transform: translateY(-2px); border-color: var(--vd-border-strong); box-shadow: var(--vd-shadow-e2); }
a.vd-widget:hover .vd-widget__open, button.vd-widget:hover .vd-widget__open, .vd-widget--interactive:hover .vd-widget__open, .vd-widget.is-hover .vd-widget__open { background: var(--vd-surface-inverse); color: var(--vd-text-on-inverse); box-shadow: none; }
/* pressed */
a.vd-widget:active, button.vd-widget:active, .vd-widget.is-active { transform: none; background: var(--vd-surface-2); border-color: var(--vd-border-hover); box-shadow: var(--vd-shadow-pressed-card); }
a.vd-widget:active .vd-tile, button.vd-widget:active .vd-tile, .vd-widget.is-active .vd-tile { background: var(--vd-pressed); }
a.vd-widget:active .vd-widget__open, button.vd-widget:active .vd-widget__open, .vd-widget.is-active .vd-widget__open { background: var(--vd-surface-inverse-pressed); color: var(--vd-text-on-inverse); box-shadow: none; }
.vd-widget.is-active .vd-widget__strip { background: var(--vd-surface-soft); border-top-color: var(--vd-border); }
/* keyboard focus: graphite outline only, so focus never reads as identity selection */
.vd-widget:focus-visible, .vd-widget.is-focus { outline: var(--vd-stroke-1-5) solid var(--vd-focus-edge); outline-offset: 3px; }
/* selected · lifted into the identity layer (L3) */
.vd-widget.is-selected, .vd-widget[aria-selected="true"], .vd-widget[aria-pressed="true"] {
  border-color: transparent; transform: none; cursor: crosshair;
  background: linear-gradient(var(--vd-surface), var(--vd-surface)) padding-box, conic-gradient(from calc(210deg + var(--vd-foil-angle, 0deg)), var(--vd-foil-edge-stops)) border-box;
  box-shadow: var(--vd-shadow-identity);
}
.vd-widget.is-selected::before, .vd-widget[aria-selected="true"]::before, .vd-widget[aria-pressed="true"]::before { content: ""; position: absolute; inset: 0; border-radius: 15px; pointer-events: none; background: radial-gradient(240px 150px at var(--vd-foil-x, 90%) var(--vd-foil-y, 0%), var(--vd-identity-sheen), rgba(255,255,255,0) 70%); }
.vd-widget.is-selected .vd-widget__open, .vd-widget[aria-selected="true"] .vd-widget__open, .vd-widget[aria-pressed="true"] .vd-widget__open { display: none; }
.vd-widget.is-selected .vd-widget__mark, .vd-widget[aria-selected="true"] .vd-widget__mark, .vd-widget[aria-pressed="true"] .vd-widget__mark { display: inline-block; }
.vd-widget.is-selected .vd-widget__strip, .vd-widget[aria-selected="true"] .vd-widget__strip, .vd-widget[aria-pressed="true"] .vd-widget__strip { font-weight: 600; color: var(--vd-text-supporting); }
.vd-widget.is-selected:hover, .vd-widget[aria-pressed="true"]:hover { transform: none; border-color: transparent; box-shadow: var(--vd-shadow-identity); }
/* locked / disabled */
.vd-widget.is-locked, .vd-widget[aria-disabled="true"] { background: var(--vd-surface-2); border: var(--vd-stroke-1) dashed var(--vd-border-strong); box-shadow: none; color: var(--vd-text-3); cursor: not-allowed; transform: none; }
.vd-widget.is-locked .vd-widget__title, .vd-widget[aria-disabled="true"] .vd-widget__title, .vd-widget.is-locked .vd-widget__summary { color: var(--vd-text-2); }
.vd-widget.is-locked .vd-tile { color: var(--vd-text-3); }
.vd-widget.is-locked .vd-widget__strip, .vd-widget[aria-disabled="true"] .vd-widget__strip { background: transparent; border-top-style: dashed; border-top-color: var(--vd-border); color: var(--vd-text-2); }
/* spans */
.vd-widget--2x1 { grid-column: span 2; }
.vd-widget--1x2 { grid-row: span 2; }
.vd-widget--2x2 { grid-column: span 2; grid-row: span 2; }
.vd-widget--wide .vd-widget__body { padding: 20px; gap: 14px; }
/* wide widgets that lay a mark or figure beside their text (trust overview) */
.vd-widget > .vd-widget__body.vd-widget__body--row { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 22px; }
.vd-widget__body--row > .vd-stack { flex: 1 1 220px; }
@container (max-width: 520px) { .vd-widget--2x1, .vd-widget--2x2 { grid-column: auto; } }
.vd-widget__list { display: flex; flex-direction: column; }
.vd-widget__list-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: var(--vd-stroke-1) solid var(--vd-border-subtle); }
.vd-widget__list-row > span:first-child { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vd-widget__list-name { font: 700 13.5px/18px var(--font-sans); }
.vd-widget__list-code { font: 500 11px/15px var(--font-mono); color: var(--vd-text-2); }
.vd-widget__action { display: inline-flex; align-items: center; gap: 6px; font: 700 13px/18px var(--font-sans); color: var(--vd-text-1); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; }
.vd-widget__action > i { font-size: 14px; }
.vd-widget__action:focus-visible { outline: var(--vd-stroke-1-5) solid var(--vd-focus-edge); outline-offset: 2px; border-radius: var(--vd-radius-4); }

/* Object card · an entity (type in mono at the top, machine identity in the strip) */
.vd-object-card { position: relative; display: flex; flex-direction: column; min-width: 0; border: var(--vd-stroke-1) solid var(--vd-border); border-radius: var(--vd-radius-16); background: var(--vd-surface); box-shadow: var(--vd-shadow-e1); overflow: hidden; color: var(--vd-text-1); text-decoration: none; transition: transform var(--vd-duration-hover) var(--vd-ease), box-shadow var(--vd-duration-hover) var(--vd-ease), border-color var(--vd-duration-hover) var(--vd-ease); }
a.vd-object-card:hover, .vd-object-card.is-hover { transform: translateY(-2px); border-color: var(--vd-border-strong); box-shadow: var(--vd-shadow-e2); }
a.vd-object-card:focus-visible { outline: var(--vd-stroke-1-5) solid var(--vd-focus-edge); outline-offset: 3px; }
.vd-object-card__body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.vd-object-card__type { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.vd-object-card__type > span { display: inline-flex; align-items: center; gap: 6px; font: 500 10.5px/14px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--vd-text-2); }
.vd-object-card__type > span > i { font-size: 14px; }
.vd-object-card__type > i { font-size: 15px; color: var(--vd-text-2); }
.vd-object-card__head { display: flex; gap: 12px; align-items: center; }
.vd-object-card__title { font: 700 16px/21px var(--font-sans); }
.vd-object-card__sub { margin-top: 2px; font: 500 13px/18px var(--font-sans); color: var(--vd-text-2); }
.vd-object-card__body > .vd-badge, .vd-object-card__body > .vd-verified { align-self: flex-start; }
.vd-object-card .vd-strip--identity { margin-top: auto; }

/* Compact object row · h64 · lists, pickers, drawers */
.vd-object-row { display: flex; align-items: center; gap: 12px; height: var(--vd-object-row); padding: 0 14px; border: var(--vd-stroke-1) solid var(--vd-border); border-radius: var(--vd-radius-12); background: var(--vd-surface); color: var(--vd-text-1); text-decoration: none; min-width: 0; }
a.vd-object-row:hover, button.vd-object-row:hover, .vd-object-row.is-hover { border-color: var(--vd-border-strong); }
a.vd-object-row:focus-visible, button.vd-object-row:focus-visible, .vd-object-row.is-focus { outline: var(--vd-stroke-1-5) solid var(--vd-focus-edge); outline-offset: 2px; }
.vd-object-row--verified { border-color: transparent; background: linear-gradient(var(--vd-surface), var(--vd-surface)) padding-box, conic-gradient(from 210deg, var(--vd-foil-edge-stops)) border-box; }
a.vd-object-row--verified:hover, button.vd-object-row--verified:hover, .vd-object-row--verified.is-hover { border-color: transparent; } /* hover never paints over the foil edge */
.vd-object-row__text { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vd-object-row__name { font: 700 13.5px/18px var(--font-sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vd-object-row__code { font: 500 11px/15px var(--font-mono); color: var(--vd-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vd-object-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.vd-object-rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }

/* ============================================================
   15 · Navigation
   ============================================================ */
.vd-sidebar { width: var(--vd-sidebar-width); flex: none; display: flex; flex-direction: column; gap: 2px; padding: 14px 10px; border: var(--vd-stroke-1) solid var(--vd-border); border-radius: var(--vd-radius-16); background: var(--vd-surface); overflow: auto; }
.vd-sidebar__brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px 16px; }
.vd-sidebar__brand .vd-mark { --vd-mark-w: 24px; }
.vd-sidebar__brand .vd-wordmark { font-size: 12px; letter-spacing: .18em; }
.vd-sidebar__toggle { margin-left: auto; }
.vd-sidebar__footer { margin-top: auto; display: flex; flex-direction: column; gap: 2px; padding-top: 12px; }
.vd-nav-label { padding: 12px 10px 4px; font: 700 10.5px/14px var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--vd-text-2); }
.vd-nav-item { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; height: var(--vd-control-32); padding: 0 10px; border: 0; border-radius: var(--vd-radius-8); background: transparent; color: var(--vd-text-supporting); font: 600 13px/1 var(--font-sans); text-align: left; text-decoration: none; white-space: nowrap; cursor: pointer; }
.vd-nav-item > i:first-child { flex: none; font-size: 17px; }
.vd-nav-item:hover, .vd-nav-item.is-hover { background: var(--vd-hover-wash); color: var(--vd-text-supporting); }
.vd-nav-item[aria-current="page"], .vd-nav-item.is-active { background: var(--vd-surface-soft); color: var(--vd-text-1); font-weight: 800; }
.vd-nav-item:focus-visible, .vd-nav-item.is-focus { outline: var(--vd-stroke-1-5) solid var(--vd-focus-edge); outline-offset: -1.5px; }
.vd-nav-item__text { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.vd-nav-item__meta { margin-left: auto; flex: none; display: inline-flex; align-items: center; }
.vd-nav-item__current { width: 5px; height: 5px; border-radius: 2px; background: var(--vd-surface-inverse); }
.vd-nav-item--muted { color: var(--vd-text-2); }
.vd-sidebar--collapsed { width: var(--vd-sidebar-collapsed); padding: 14px 0; align-items: center; gap: 4px; overflow: visible; } /* right tooltips leave the rail */
.vd-sidebar--collapsed .vd-sidebar__brand { padding: 0 0 12px; justify-content: center; }
.vd-sidebar--collapsed .vd-sidebar__brand .vd-sidebar__toggle { display: none; }
/* Rails hide labels visually only — they stay the items' accessible names (never display:none) */
.vd-sidebar--collapsed .vd-wordmark, .vd-sidebar--collapsed .vd-nav-label, .vd-sidebar--collapsed .vd-nav-item__text, .vd-sidebar--collapsed .vd-nav-item__meta { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.vd-sidebar--collapsed .vd-nav-item { width: 40px; height: 36px; padding: 0; justify-content: center; border-radius: var(--vd-radius-10); }
.vd-sidebar--collapsed .vd-nav-item > i:first-child { font-size: 18px; }
.vd-nav-item__flag { position: absolute; top: 5px; right: 6px; width: 7px; height: 7px; border-radius: 2px; background: var(--vd-surface-inverse); box-shadow: 0 0 0 2px var(--vd-surface); }
.vd-nav-item__flag--negative { background: var(--vd-negative-solid); }
.vd-sidebar:not(.vd-sidebar--collapsed) .vd-nav-item__flag { display: none; }
/* the same markup serves both states: rail tooltips only show on the rail */
.vd-sidebar:not(.vd-sidebar--collapsed) .vd-has-tooltip > .vd-tooltip { display: none; }

/* Context navigation · floating panel 264 with trust bars per section */
.vd-context-nav { width: var(--vd-context-nav-width); flex: none; display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: var(--vd-radius-20); background: var(--vd-surface); box-shadow: var(--vd-shadow-e3); }
.vd-context-nav__head { display: flex; gap: 10px; align-items: center; padding: 4px; min-width: 0; }
.vd-context-nav__name { font: 800 14px/18px var(--font-sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vd-context-nav__code { font: 500 10.5px/14px var(--font-mono); color: var(--vd-text-2); }
.vd-context-nav__list { display: flex; flex-direction: column; gap: 1px; }
.vd-context-item { display: flex; align-items: center; gap: 10px; width: 100%; height: 34px; padding: 0 10px; border: 0; border-radius: var(--vd-radius-8); background: transparent; color: var(--vd-text-supporting); font: 600 13px/1 var(--font-sans); text-align: left; text-decoration: none; cursor: pointer; }
.vd-context-item > i:first-child { font-size: 16px; flex: none; }
.vd-context-item:hover, .vd-context-item.is-hover { background: var(--vd-hover-wash); }
.vd-context-item[aria-current="page"], .vd-context-item.is-active { background: var(--vd-surface-soft); color: var(--vd-text-1); font-weight: 800; }
.vd-context-item:focus-visible, .vd-context-item.is-focus { outline: var(--vd-stroke-1-5) solid var(--vd-focus-edge); outline-offset: -1.5px; }
.vd-context-item.is-locked, .vd-context-item[aria-disabled="true"] { color: var(--vd-text-3); cursor: not-allowed; background: transparent; }
.vd-context-item__label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vd-context-item__lock { font-size: 14px; }
.vd-context-nav--rail { width: var(--vd-context-rail-width); padding: 10px 8px; align-items: center; }
.vd-context-nav--rail .vd-context-item__lock { display: none; }
.vd-context-nav--rail .vd-context-nav__head > :not(.vd-tile), .vd-context-nav--rail .vd-context-item__label, .vd-context-nav--rail .vd-trust-bars, .vd-context-nav--rail .vd-count-plain { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.vd-context-nav--rail .vd-context-item { width: 40px; justify-content: center; padding: 0; }

/* Top bar */
.vd-topbar { display: flex; align-items: center; gap: 12px; height: var(--vd-topbar-height); min-width: 0; }
.vd-topbar__search { flex: 1 1 auto; min-width: 0; max-width: 640px; }
.vd-topbar__search .vd-input { border-color: var(--vd-border); }
.vd-topbar__search .vd-input:focus-within, .vd-topbar__search .vd-input.is-focus { border-color: transparent; } /* let the foil edge show */
.vd-entity-switcher { --vd-r: var(--vd-radius-10); position: relative; display: flex; align-items: center; gap: 9px; flex: none; height: var(--vd-control-40); padding: 0 12px 0 10px; border: 0; border-radius: var(--vd-r); background: var(--vd-surface); box-shadow: inset 0 0 0 1px var(--vd-border); color: var(--vd-text-1); font: 700 13.5px/1 var(--font-sans); white-space: nowrap; cursor: pointer; }
.vd-entity-switcher:hover, .vd-entity-switcher.is-hover { box-shadow: inset 0 0 0 1px var(--vd-border-strong); }
.vd-entity-switcher:focus-visible, .vd-entity-switcher.is-focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--vd-focus-edge), 0 0 0 2px var(--vd-focus-gap); }
.vd-entity-switcher > i { font-size: 13px; color: var(--vd-text-2); }

/* Breadcrumb · machine path in mono */
.vd-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; font: 500 11px/15px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--vd-text-2); }
.vd-breadcrumb > li + li::before { content: "/"; margin-right: 6px; color: var(--vd-text-3); }
.vd-breadcrumb a { color: inherit; text-decoration: none; }
.vd-breadcrumb a:hover, .vd-breadcrumb a.is-hover { color: var(--vd-text-1); text-decoration: underline; }
.vd-breadcrumb a.is-focus { outline: var(--vd-stroke-1-5) solid var(--vd-focus-edge); outline-offset: 2px; border-radius: 4px; }
.vd-breadcrumb [aria-current="page"] { color: var(--vd-text-2); }

/* Pagination */
.vd-pagination { display: flex; align-items: center; gap: 4px; }
.vd-page { display: grid; place-items: center; width: var(--vd-control-32); height: var(--vd-control-32); padding: 0; border: 0; border-radius: var(--vd-radius-8); background: transparent; color: var(--vd-text-1); font: 600 12px/1 var(--font-mono); text-decoration: none; cursor: pointer; }
.vd-page:hover, .vd-page.is-hover { background: var(--vd-hover-soft); }
.vd-page[aria-current="page"], .vd-page.is-current { background: var(--vd-surface-inverse); color: var(--vd-text-on-inverse); }
.vd-page--nav { box-shadow: inset 0 0 0 1px var(--vd-border); font-size: 13px; }
.vd-page:disabled { color: var(--vd-border-strong); cursor: not-allowed; background: transparent; }
.vd-page:focus-visible, .vd-page.is-focus { outline: var(--vd-stroke-1-5) solid var(--vd-focus-edge); outline-offset: 1px; }
.vd-pagination__gap { padding: 0 4px; font: 500 12px/1 var(--font-mono); color: var(--vd-text-2); }

/* ============================================================
   16 · Data display · tables, filters, bulk actions
   Identifiers in mono, numbers right-aligned, entity names are links,
   identity column uses the compact hex — never the full Veridium Verified tag.
   ============================================================ */
.vd-table-card { position: relative; min-width: 0; border: var(--vd-stroke-1) solid var(--vd-border); border-radius: var(--vd-radius-16); background: var(--vd-surface); overflow: hidden; }
.vd-table-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 14px 16px; }
.vd-table-toolbar .vd-input { flex: 0 1 260px; min-width: 160px; }
.vd-table-toolbar > .vd-segmented { align-self: center; }
.vd-filter-btn { gap: 7px; }
.vd-table-scroll { overflow-x: auto; border-top: var(--vd-stroke-1) solid var(--vd-border); }
.vd-table { --vd-row-h: var(--vd-row-standard); --vd-head-h: 40px; width: 100%; border-collapse: separate; border-spacing: 0; font: 500 13.5px/18px var(--font-sans); color: var(--vd-text-supporting); }
.vd-table--compact { --vd-row-h: var(--vd-row-compact); --vd-head-h: 30px; font-size: 13px; }
.vd-table--comfortable { --vd-row-h: var(--vd-row-comfortable); --vd-head-h: 50px; font-size: 14px; }
/* Extracted data review · Field | In document | In Veridium | Result — sits flush inside a card */
.vd-table--review { --vd-row-h: 44px; --vd-head-h: 36px; font-size: 13px; table-layout: fixed; }
.vd-table--review :is(th, td):first-child { padding-left: 16px; }
.vd-table--review :is(th, td):last-child { padding-right: 16px; }
.vd-table--review col:first-child { width: 24%; }
.vd-table--review col:last-child { width: 112px; }
.vd-table--review tbody tr:last-child td { border-bottom: 0; }
.vd-table th { height: var(--vd-head-h); padding: 0 12px; background: var(--vd-surface-2); border-bottom: var(--vd-stroke-1) solid var(--vd-border); color: var(--vd-text-2-strong); font: 700 11.5px/1 var(--font-sans); letter-spacing: .02em; text-align: left; white-space: nowrap; }
.vd-table td { height: var(--vd-row-h); padding: 0 12px; border-bottom: var(--vd-stroke-1) solid var(--vd-border-subtle); background: var(--vd-surface); white-space: nowrap; transition: background-color var(--vd-duration-press) var(--vd-ease-out); }
.vd-table tbody tr:hover td { background: var(--vd-surface-2); }
.vd-table tr[aria-selected="true"] td, .vd-table tr.is-selected td { background: var(--vd-selected-row); }
.vd-table .vd-col-check { width: 48px; padding: 0; text-align: center; }
.vd-table .vd-col-check .vd-check { gap: 0; vertical-align: middle; }
.vd-table .vd-col-name a, .vd-table .vd-col-name button { font-weight: 700; color: var(--vd-text-1); text-decoration: none; }
.vd-table .vd-col-name a:hover { text-decoration: underline; }
.vd-table .vd-num { text-align: right; font-variant-numeric: tabular-nums; padding-right: 16px; }
.vd-table .vd-code { font: 500 12px/1 var(--font-mono); color: var(--vd-text-1); }
.vd-table .vd-muted { font-size: 12.5px; color: var(--vd-text-2); }
.vd-table .vd-empty-cell { color: var(--vd-text-3); }
.vd-table .vd-col-actions { width: 48px; padding: 0 10px; text-align: right; }
.vd-table .vd-col-actions .vd-icon-btn--28 { font-size: 16px; }
.vd-table thead th .vd-sort { color: inherit; } /* a sortable name header keeps the header colour */
.vd-table-card > .vd-table:last-child tbody tr:last-child td { border-bottom: 0; }
.vd-table .vd-sticky { position: sticky; left: var(--vd-sticky-left, 0); z-index: 1; }
.vd-table th.vd-sticky { z-index: var(--vd-z-sticky); }
.vd-table .vd-sticky--edge { box-shadow: 1px 0 0 var(--vd-border-subtle); }
.vd-sort { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; cursor: pointer; }
.vd-sort > i { font-size: 11px; }
.vd-sort:focus-visible { outline: var(--vd-stroke-1-5) solid var(--vd-focus-edge); outline-offset: 3px; border-radius: 4px; }
.vd-table-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; font: 500 12.5px/17px var(--font-sans); color: var(--vd-text-2); }
.vd-table-card.has-bulkbar .vd-table-footer { padding-bottom: 76px; }
.vd-table-rules { font: 500 12px/17px var(--font-sans); color: var(--vd-text-2); }

.vd-bulkbar { position: absolute; left: 50%; bottom: 16px; z-index: var(--vd-z-toast); display: flex; align-items: center; gap: 2px; padding: 6px 6px 6px 14px; border-radius: var(--vd-radius-12); background: var(--vd-surface-inverse); color: var(--vd-text-on-inverse); box-shadow: var(--vd-shadow-inverse); white-space: nowrap; transform: translateX(-50%); animation: vd-rise-center 180ms var(--vd-ease-out); }
.vd-bulkbar__label { margin-right: 10px; font: 800 13.5px/1 var(--font-sans); }
.vd-bulkbar__action { display: inline-flex; align-items: center; gap: 6px; height: var(--vd-control-32); padding: 0 11px; border: 0; border-radius: var(--vd-radius-8); background: transparent; color: inherit; font: 700 13px/1 var(--font-sans); cursor: pointer; }
.vd-bulkbar__action > i { font-size: 15px; }
.vd-bulkbar__action:hover { background: var(--vd-inverse-hover); }
.vd-bulkbar__action:focus-visible { outline: var(--vd-stroke-1-5) solid var(--vd-text-on-inverse); outline-offset: -1.5px; }
.vd-bulkbar__close { display: grid; place-items: center; width: var(--vd-control-32); height: var(--vd-control-32); margin-left: 4px; border: 0; border-radius: var(--vd-radius-8); background: var(--vd-inverse-hover); color: inherit; font-size: 13px; cursor: pointer; }
.vd-bulkbar__close:focus-visible { outline: var(--vd-stroke-1-5) solid var(--vd-text-on-inverse); outline-offset: -1.5px; }

/* Popover family · r14 · E3 · short content only (popover ≠ drawer) */
.vd-popover { display: flex; flex-direction: column; min-width: 0; padding: 5px; border-radius: var(--vd-radius-14); background: var(--vd-surface); box-shadow: var(--vd-shadow-e3); z-index: var(--vd-z-popover); }
.vd-popover--menu { width: var(--vd-popover-width); }
.vd-popover--padded { padding: 14px; gap: 7px; }
.vd-popover__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 11px 1px; }
.vd-popover__title { font: 800 14px/18px var(--font-sans); }
.vd-popover__section { display: flex; flex-direction: column; gap: 8px; padding: 8px 11px; }
.vd-popover__section + .vd-popover__section { border-top: var(--vd-stroke-1) solid var(--vd-border-subtle); margin-top: 6px; padding-top: 14px; }
.vd-popover__foot { display: flex; align-items: center; gap: 8px; margin: 6px -5px -5px; padding: 12px 16px; border-top: var(--vd-stroke-1) solid var(--vd-border-subtle); }
.vd-popover__text { font: 500 12.5px/18px var(--font-sans); color: var(--vd-text-supporting); }
.vd-popover__link { align-self: flex-start; font: 700 12.5px/18px var(--font-sans); }
.vd-menu__item { display: flex; align-items: center; gap: 10px; width: 100%; height: 34px; padding: 0 10px; border: 0; border-radius: var(--vd-radius-8); background: transparent; color: var(--vd-text-1); font: 600 13px/1 var(--font-sans); text-align: left; text-decoration: none; white-space: nowrap; cursor: pointer; }
.vd-menu__item > i:first-child:not(.vd-menu__handle):not(.vd-menu__check) { font-size: 16px; flex: none; }
.vd-menu__item:hover, .vd-menu__item.is-active, .vd-menu__item[aria-selected="true"], .vd-menu__item[aria-checked="true"] { background: var(--vd-hover-row); }
.vd-menu__item:focus-visible { outline: var(--vd-stroke-1-5) solid var(--vd-focus-edge); outline-offset: -1.5px; }
.vd-menu__item--danger { color: var(--vd-negative-text); }
.vd-menu__item:disabled { color: var(--vd-text-3); cursor: not-allowed; background: transparent; }
.vd-menu__shortcut, .vd-menu__meta { margin-left: auto; font: 500 11px/1 var(--font-mono); color: var(--vd-text-2); }
.vd-menu__check { margin-left: auto; font-size: 13px; }
.vd-menu__label { padding: 8px 10px 4px; font: 700 10.5px/14px var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--vd-text-2); }
.vd-menu__sep { height: 1px; margin: 4px 6px; background: var(--vd-border-subtle); }
.vd-menu__item--drag { height: 30px; padding: 0 6px; }
.vd-menu__item--drag > .vd-menu__handle { font-size: 14px; color: var(--vd-text-3); }

/* Stats, KPI strips, mini charts · monochrome; colour only for deviation */
.vd-stat { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.vd-stat__label { display: flex; justify-content: space-between; align-items: center; gap: 8px; font: 700 12.5px/16px var(--font-sans); color: var(--vd-text-supporting); }
.vd-stat__label > i { font-size: 13px; }
.vd-stat__value { font: 600 22px/28px var(--font-sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.vd-stat__value--xl { font-size: 44px; line-height: 48px; letter-spacing: -.035em; }
.vd-stat__value--lg { font-size: 32px; line-height: 38px; letter-spacing: -.03em; }
.vd-stat__value--md { font-size: 28px; line-height: 32px; letter-spacing: -.03em; }
.vd-stat__denom { color: var(--vd-text-3); }
.vd-stat__caption { font: 500 12.5px/17px var(--font-sans); color: var(--vd-text-2); }
.vd-kpi-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-top: var(--vd-stroke-1) solid var(--vd-border-subtle); }
.vd-kpi-strip > .vd-stat { padding: 14px 18px; border-right: var(--vd-stroke-1) solid var(--vd-border-subtle); }
.vd-kpi-strip > .vd-stat:last-child { border-right: 0; }
.vd-card > .vd-kpi-strip:first-child { border-top: 0; }
/* chart card: head (eyebrow, figure, kpi grid) and plot, inset 18 to line up with the strip */
.vd-chart__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; padding: 18px 18px 6px; }
.vd-chart__plot { padding: 0 18px 14px; }
.vd-kpi-grid { display: grid; grid-template-columns: repeat(3, auto); gap: 4px 18px; font: 500 11px/15px var(--font-mono); color: var(--vd-text-2); text-transform: uppercase; }
.vd-kpi-grid > b { font: 600 22px/28px var(--font-sans); color: var(--vd-text-1); text-transform: none; }
.vd-kpi-grid > b.is-attention { color: var(--vd-attention-text); }
.vd-bars { display: grid; grid-template-columns: repeat(var(--n, 14), 1fr); gap: 6px; align-items: end; height: 132px; padding-top: 12px; }
.vd-bars > span { height: calc(var(--v, 0) * 1%); min-height: 3px; border-radius: 4px 4px 2px 2px; background: var(--vd-chart-bar); }
.vd-bars > .is-muted { background: var(--vd-chart-bar-muted); }
.vd-bars > .is-current { background: var(--vd-chart-bar-current); }
.vd-bars-axis { display: grid; grid-template-columns: repeat(var(--n, 14), 1fr); gap: 6px; padding-top: 6px; font: 500 10px/14px var(--font-mono); color: var(--vd-text-2); text-align: center; }
.vd-bars-axis > .is-current { color: var(--vd-text-1); }
.vd-legend { display: flex; flex-direction: column; gap: 9px; font: 600 12.5px/16px var(--font-sans); }
.vd-legend__row { display: flex; align-items: center; gap: 8px; }
.vd-legend__swatch { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.vd-legend__label { flex: 1; }
.vd-legend__value { font: 500 12px/16px var(--font-mono); }
.vd-stacked { display: flex; gap: 2px; height: 6px; border-radius: 3px; overflow: hidden; }
.vd-stacked > span { flex: var(--w, 1) 1 0; }

/* Task queue · disclosure rows ("Needs your action") */
.vd-task-list { display: flex; flex-direction: column; gap: 2px; padding: 0 8px 8px; }
.vd-task { border-radius: var(--vd-radius-12); transition: background-color 140ms var(--vd-ease-out), box-shadow 140ms var(--vd-ease-out); }
.vd-task.is-open { background: var(--vd-hover-row); box-shadow: inset 0 0 0 1px var(--vd-border); }
.vd-task__summary { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; padding: 10px; border: 0; border-radius: var(--vd-radius-12); background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.vd-task__summary:focus-visible { outline: var(--vd-stroke-1-5) solid var(--vd-focus-edge); outline-offset: -1.5px; }
.vd-task__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vd-task__title { font: 700 13.5px/18px var(--font-sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vd-task__sub { font: 500 12px/16px var(--font-sans); color: var(--vd-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vd-task__due { font: 600 11px/15px var(--font-mono); white-space: nowrap; color: var(--vd-text-supporting); }
.vd-task__due--negative { color: var(--vd-negative-text); }
.vd-task__due--attention { color: var(--vd-attention-text); }
.vd-task__due--processing { color: var(--vd-processing-text); }
.vd-task__detail { display: flex; flex-direction: column; gap: 10px; padding: 0 12px 14px 54px; animation: vd-expand 180ms var(--vd-ease); }
.vd-task__detail > p { font: 500 13px/19px var(--font-sans); color: var(--vd-text-supporting); }

/* Provenance feed · timeline */
.vd-feed { position: relative; margin: 0; padding: 6px 18px 12px; list-style: none; }
.vd-feed::before { content: ""; position: absolute; left: 31px; top: 20px; bottom: 30px; width: 1.5px; background: var(--vd-border); }
.vd-feed__item { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 9px 0; }
.vd-feed__node { position: relative; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--vd-surface-soft); color: var(--vd-text-1); box-shadow: 0 0 0 4px var(--vd-surface); font-size: 12px; }
.vd-feed__node--positive { background: var(--vd-positive-tint); color: var(--vd-positive-text); }
.vd-feed__node--processing { background: var(--vd-processing-tint); color: var(--vd-processing-text); }
.vd-feed__node--attention { background: var(--vd-attention-tint); color: var(--vd-attention-text); }
.vd-feed__node--negative { background: var(--vd-negative-tint); color: var(--vd-negative-text); }
.vd-feed__item > .vd-hexnode { margin-top: -2px; }
.vd-feed__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vd-feed__title { font: 700 13.5px/18px var(--font-sans); }
.vd-feed__title--identity { font-weight: 800; }
.vd-feed__desc { font: 500 12.5px/17px var(--font-sans); color: var(--vd-text-supporting); }
.vd-feed__code { font: 500 11px/15px var(--font-mono); color: var(--vd-text-2); }
.vd-feed__time { font: 500 10.5px/14px var(--font-mono); color: var(--vd-text-2); text-transform: uppercase; }

/* Notification centre */
.vd-notifications { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.vd-notification { display: flex; gap: 12px; padding: 14px 16px; border-bottom: var(--vd-stroke-1) solid var(--vd-border-subtle); }
.vd-notification:last-child { border-bottom: 0; }
.vd-notification.is-unread { background: var(--vd-surface-2); }
.vd-notification__dot { width: 8px; height: 8px; margin-top: 6px; border-radius: 2px; flex: none; }
.vd-notification.is-unread .vd-notification__dot { background: var(--vd-surface-inverse); }
.vd-notification__text { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.vd-notification__title { font: 600 13px/18px var(--font-sans); color: var(--vd-text-supporting); }
.vd-notification.is-unread .vd-notification__title { font-weight: 700; color: var(--vd-text-1); }
.vd-notification__meta { font: 500 12px/16px var(--font-sans); color: var(--vd-text-2); }
.vd-notification__time { font: 500 10.5px/14px var(--font-mono); color: var(--vd-text-2); text-transform: uppercase; }

/* ============================================================
   17 · Identity Spine · where a value came from, who confirmed it, what proves it.
   The final node is always the foil hexagon.
   ============================================================ */
.vd-spine-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.vd-spine-head__value { font: 500 24px/30px var(--font-mono); letter-spacing: .02em; }
.vd-spine { --vd-spine-cols: 28px minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr) auto; }
.vd-spine__cols { display: grid; grid-template-columns: var(--vd-spine-cols); gap: 0 14px; padding-bottom: 8px; border-bottom: var(--vd-stroke-1) solid var(--vd-border-subtle); font: 700 10.5px/14px var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--vd-text-2); }
.vd-spine__rows { position: relative; }
.vd-spine__rows::before { content: ""; position: absolute; left: 13px; top: 22px; bottom: 30px; width: 1.5px; background: var(--vd-border-strong); }
.vd-spine__row { position: relative; display: grid; grid-template-columns: var(--vd-spine-cols); gap: 0 14px; align-items: center; padding: 12px 0; border-bottom: var(--vd-stroke-1) solid var(--vd-border-subtle); }
.vd-spine__row:last-child { border-bottom: 0; padding: 14px 0 4px; }
.vd-spine__node { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--vd-surface-soft); box-shadow: 0 0 0 4px var(--vd-surface); font-size: 13px; color: var(--vd-text-1); }
.vd-spine__node--positive { background: var(--vd-positive-tint); color: var(--vd-positive-text); }
.vd-spine__node--declared { background: var(--vd-surface-soft); box-shadow: 0 0 0 4px var(--vd-surface), inset 0 0 0 1.5px var(--vd-border-active); }
.vd-spine__node--processing { background: var(--vd-processing-tint); color: var(--vd-processing-text); }
.vd-spine__node--negative { background: var(--vd-negative-tint); color: var(--vd-negative-text); }
.vd-spine__source { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.vd-spine__name { font: 700 13.5px/18px var(--font-sans); }
.vd-spine__name--identity { font-weight: 800; }
.vd-spine__result { font: 500 11.5px/15px var(--font-sans); color: var(--vd-text-2); }
.vd-spine__result--positive { color: var(--vd-positive-text); }
.vd-spine__result--processing { color: var(--vd-processing-text); }
.vd-spine__result--negative { color: var(--vd-negative-text); }
.vd-spine__result--identity { font-weight: 600; color: var(--vd-text-supporting); }
.vd-spine__by { font: 500 12.5px/17px var(--font-sans); color: var(--vd-text-supporting); }
.vd-spine__evidence { font: 500 11.5px/15px var(--font-mono); color: var(--vd-text-supporting); }
.vd-spine__when { font: 500 11px/15px var(--font-mono); color: var(--vd-text-2); text-transform: uppercase; }
.vd-spine__when--identity { font-weight: 600; color: var(--vd-text-1); }

.vd-spine-h { display: flex; align-items: flex-start; }
.vd-spine-h__node { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; min-width: 0; }
.vd-spine-h__dot { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--vd-positive-tint); color: var(--vd-positive-text); font-size: 12px; }
.vd-spine-h__dot--processing { background: var(--vd-processing-tint); color: var(--vd-processing-text); }
.vd-spine-h__dot--declared { background: var(--vd-surface-soft); color: var(--vd-text-1); box-shadow: inset 0 0 0 1.5px var(--vd-border-active); }
.vd-spine-h__dot--negative { background: var(--vd-negative-tint); color: var(--vd-negative-text); }
.vd-spine-h__label { font: 700 11.5px/15px var(--font-sans); }
.vd-spine-h__code { font: 500 10px/14px var(--font-mono); color: var(--vd-text-2); text-transform: uppercase; }
.vd-spine-h__link { flex: .6 1 0; height: 1.5px; margin-top: 12px; background: var(--vd-border-strong); }
.vd-spine-h__link--pending { background: repeating-linear-gradient(90deg, var(--vd-border-strong) 0 4px, transparent 4px 7px); }
.vd-spine-h__link--to-identity { background: linear-gradient(90deg, var(--vd-border-strong), var(--vd-spectrum-violet)); }

.vd-spine-inline { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: var(--vd-stroke-1) solid var(--vd-border-subtle); border-radius: var(--vd-radius-10); background: var(--vd-surface-2); min-width: 0; }
.vd-spine-inline__key { width: 46px; flex: none; font: 600 12.5px/17px var(--font-sans); color: var(--vd-text-2); }
.vd-spine-inline__value { flex: 1 1 auto; min-width: 0; font: 500 13px/18px var(--font-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
button.vd-spine-inline { width: 100%; text-align: left; cursor: pointer; font: inherit; color: inherit; }
button.vd-spine-inline:hover { border-color: var(--vd-border); }
button.vd-spine-inline:focus-visible { outline: var(--vd-stroke-1-5) solid var(--vd-focus-edge); outline-offset: 2px; }

/* ============================================================
   18 · Evidence · a document is a source of data
   ============================================================ */
.vd-dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 190px; padding: 24px; border: 1.5px dashed var(--vd-border-strong); border-radius: var(--vd-radius-16); background: var(--vd-surface); text-align: center; transition: background-color var(--vd-duration-hover) var(--vd-ease-out), border-color var(--vd-duration-hover) var(--vd-ease-out); }
.vd-dropzone.is-dragover { border-color: var(--vd-border-active); background: var(--vd-surface-soft); }
.vd-dropzone.is-dragover .vd-tile { background: var(--vd-surface-inverse); color: var(--vd-text-on-inverse); }
.vd-dropzone:focus-within { border-color: var(--vd-border-active); }
.vd-dropzone__title { font: 700 14px/20px var(--font-sans); }
.vd-dropzone__hint { font: 500 12px/17px var(--font-sans); color: var(--vd-text-2); }
.vd-dropzone__browse { color: var(--vd-text-1); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--vd-border-strong); cursor: pointer; }
.vd-dropzone__browse:hover { color: var(--vd-text-link-hover); }
.vd-file { display: flex; align-items: center; gap: 12px; min-width: 0; }
.vd-file__thumb { display: grid; place-items: center; flex: none; width: 34px; height: 42px; border: var(--vd-stroke-1) solid var(--vd-border); border-radius: var(--vd-radius-6); background: var(--vd-surface-2); font: 600 9px/1 var(--font-mono); color: var(--vd-text-2); }
.vd-file__thumb--sm { width: 32px; height: 40px; }
.vd-file__text { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vd-file__name { font: 700 13.5px/18px var(--font-sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vd-file__meta { font: 500 11px/15px var(--font-mono); color: var(--vd-text-2); text-transform: uppercase; }
.vd-evidence-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: var(--vd-stroke-1) solid var(--vd-border); border-radius: var(--vd-radius-12); background: var(--vd-surface); }
.vd-pipeline { display: flex; justify-content: space-between; gap: 8px; font: 600 11.5px/15px var(--font-sans); color: var(--vd-text-3); }
.vd-pipeline > span { display: inline-flex; align-items: center; gap: 5px; }
.vd-pipeline > span > i { font-size: 11px; }
.vd-pipeline > .is-done { color: var(--vd-positive-text); }
.vd-pipeline > .is-active { color: var(--vd-processing-text); }
.vd-doc-thumb { position: relative; display: flex; flex-direction: column; gap: 4px; flex: none; width: 52px; height: 64px; padding: 8px 7px; border: var(--vd-stroke-1) solid var(--vd-border); border-radius: var(--vd-radius-8); background: var(--vd-surface-2); }
.vd-doc-thumb > i { height: 3px; border-radius: 2px; background: var(--vd-border); }
.vd-doc-thumb > i:first-child { background: var(--vd-border-strong); }
.vd-doc-thumb > .vd-hexmark { margin-top: auto; align-self: flex-end; }
.vd-checks { display: grid; grid-template-columns: auto 1fr auto; gap: 8px 12px; align-items: center; padding: 12px 14px; border: var(--vd-stroke-1) solid var(--vd-border-subtle); border-radius: var(--vd-radius-12); background: var(--vd-surface-2); font: 600 12.5px/17px var(--font-sans); }
.vd-checks > i { font-size: 13px; color: var(--vd-positive-solid); }
.vd-checks > i.is-negative { color: var(--vd-negative-solid); }
.vd-checks > em { font: 500 11px/15px var(--font-mono); font-style: normal; color: var(--vd-text-2); text-transform: uppercase; }
.vd-match { display: inline-flex; align-items: center; gap: 5px; font: 700 12px/16px var(--font-sans); color: var(--vd-positive-text); }
.vd-match > i { font-size: 12px; }
.vd-table .is-conflict td { background: var(--vd-negative-wash); }
.vd-strike { color: var(--vd-negative-text); text-decoration: line-through; text-decoration-color: rgba(180,35,49,.5); }
.vd-expiry { display: flex; flex-direction: column; gap: 10px; }
.vd-expiry__track { position: relative; height: 8px; border-radius: var(--vd-radius-full); background: var(--vd-progress-track); }
.vd-expiry__elapsed { position: absolute; left: 0; top: 0; bottom: 0; width: var(--elapsed, 50%); border-radius: inherit; background: linear-gradient(90deg, var(--vd-border-strong), var(--vd-attention-solid)); }
.vd-expiry__today { position: absolute; top: -5px; left: var(--elapsed, 50%); width: 2px; height: 18px; background: var(--vd-surface-inverse); }
.vd-expiry__scale { display: flex; justify-content: space-between; gap: 8px; font: 500 11px/15px var(--font-mono); color: var(--vd-text-2); text-transform: uppercase; }
.vd-expiry__scale .is-today { font-weight: 600; color: var(--vd-text-1); }
.vd-expiry__scale .is-expiry { color: var(--vd-attention-text); }
.vd-versions { display: flex; flex-direction: column; gap: 2px; }
.vd-version-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: var(--vd-stroke-1) solid var(--vd-border-subtle); }
.vd-version-row__label { flex: 1; font: 600 13px/18px var(--font-sans); }
.vd-version-row.is-superseded { color: var(--vd-text-2); }
.vd-version-row.is-superseded .vd-version-row__label { text-decoration: line-through; }
.vd-version-row__date { font: 500 11px/15px var(--font-mono); color: var(--vd-text-2); text-transform: uppercase; }

/* ============================================================
   19 · Progress and loading · ordinary progress is graphite
   ============================================================ */
.vd-progress { height: 6px; border-radius: var(--vd-radius-full); background: var(--vd-progress-track); overflow: hidden; }
.vd-progress--4 { height: 4px; }
.vd-progress--8 { height: 8px; }
.vd-progress__fill { display: block; width: var(--value, 0%); height: 100%; border-radius: inherit; background: var(--vd-progress-fill); transition: width var(--vd-duration-panel) var(--vd-ease); }
.vd-progress--indeterminate { position: relative; }
.vd-progress--indeterminate .vd-progress__fill { position: absolute; inset: 0; width: auto; border-radius: 0; background: linear-gradient(90deg, transparent 0, var(--vd-progress-fill) 40%, var(--vd-progress-fill) 60%, transparent 100%); background-size: 280px 100%; background-repeat: no-repeat; animation: vd-shimmer 1.6s var(--vd-ease-linear) infinite; }
.vd-progress-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font: 700 13.5px/18px var(--font-sans); }
.vd-progress-head > span:last-child { font: 600 12.5px/1 var(--font-mono); }
.vd-progress-ring { --value: 0; position: relative; display: grid; place-items: center; flex: none; width: 76px; height: 76px; border-radius: 50%; background: conic-gradient(var(--vd-progress-fill) 0 calc(var(--value) * 1%), var(--vd-progress-track) calc(var(--value) * 1%) 100%); }
.vd-progress-ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--vd-surface); }
.vd-progress-ring > span { position: relative; font: 700 17px/1 var(--font-sans); font-variant-numeric: tabular-nums; }
.vd-steps { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 0; list-style: none; }
.vd-step { flex: 1 1 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.vd-step__node { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--vd-surface-soft); box-shadow: inset 0 0 0 1.5px var(--vd-border-strong); color: var(--vd-text-2); font: 600 11px/1 var(--font-mono); }
.vd-step.is-done .vd-step__node { background: var(--vd-surface-inverse); box-shadow: none; color: var(--vd-text-on-inverse); }
.vd-step.is-current .vd-step__node { background: var(--vd-surface); box-shadow: inset 0 0 0 1.5px var(--vd-border-active); color: var(--vd-text-1); }
.vd-step__node > i { font-size: 11px; }
.vd-step__label { font: 700 12.5px/16px var(--font-sans); color: var(--vd-text-2); }
.vd-step.is-done .vd-step__label, .vd-step.is-current .vd-step__label { color: var(--vd-text-1); }
.vd-step--sealed .vd-step__label { font-weight: 800; color: var(--vd-text-1); }
.vd-skeleton { display: block; border-radius: 5px; background: var(--vd-skeleton); }
.vd-skeleton--shimmer { background: linear-gradient(90deg, var(--vd-skeleton) 0, var(--vd-skeleton-highlight) 50%, var(--vd-skeleton) 100%); background-size: 280px 100%; animation: vd-shimmer var(--vd-duration-shimmer) var(--vd-ease-linear) infinite; }
.vd-skeleton--soft { background: var(--vd-skeleton-soft); }
/* table skeleton row: --vd-skeleton-cols mirrors the real table's columns */
.vd-skeleton-row { display: grid; grid-template-columns: var(--vd-skeleton-cols, 20px 2fr 1.2fr 1fr 80px); gap: 16px; align-items: center; height: 44px; border-bottom: var(--vd-stroke-1) solid var(--vd-border-subtle); }
.vd-skeleton-row:last-child { border-bottom: 0; }
.vd-loading-block { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 28px; text-align: center; }
.vd-loading-block__title { font: 800 15px/20px var(--font-sans); }

/* ============================================================
   20 · Alerts and feedback · system status colours only; foil never replaces success or error
   ============================================================ */
.vd-alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--vd-radius-12); font: 500 13px/19px var(--font-sans); }
.vd-alert > i { flex: none; margin-top: 1px; font-size: 19px; }
.vd-alert__content { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.vd-alert__title { font-weight: 800; color: var(--vd-text-1); }
.vd-alert__action { align-self: flex-start; font-weight: 800; color: var(--vd-text-1); }
.vd-alert__action:hover { color: var(--vd-text-link-hover); }
.vd-alert--positive { background: var(--vd-positive-tint); }
.vd-alert--positive > i { color: var(--vd-positive-solid); }
.vd-alert--positive .vd-alert__body { color: var(--vd-positive-deep); }
.vd-alert--info { background: var(--vd-processing-tint); }
.vd-alert--info > i { color: var(--vd-processing-solid); }
.vd-alert--info .vd-alert__body { color: var(--vd-processing-deep); }
.vd-alert--attention { background: var(--vd-attention-tint); }
.vd-alert--attention > i { color: var(--vd-attention-solid); }
.vd-alert--attention .vd-alert__body { color: var(--vd-attention-deep); }
.vd-alert--negative { background: var(--vd-negative-tint); }
.vd-alert--negative > i { color: var(--vd-negative-solid); }
.vd-alert--negative .vd-alert__body { color: var(--vd-negative-deep); }
.vd-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border: var(--vd-stroke-1) solid var(--vd-border); border-radius: var(--vd-radius-12); background: var(--vd-surface); }
.vd-banner > i:first-child { font-size: 18px; color: var(--vd-text-supporting); }
.vd-banner__text { flex: 1 1 300px; font: 600 13px/19px var(--font-sans); }
.vd-banner__text b { font-weight: 800; }
.vd-banner__link { font: 700 13px/19px var(--font-sans); }
.vd-banner--critical { padding: 14px 16px; border: 0; background: var(--vd-negative-solid); color: var(--vd-text-on-inverse); }
.vd-banner__icon { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: var(--vd-radius-8); background: var(--vd-inverse-tile); font-size: 17px; }
.vd-banner__content { flex: 1 1 320px; display: flex; flex-direction: column; gap: 2px; }
.vd-banner__title { font: 800 14px/19px var(--font-sans); }
.vd-banner__body { font: 500 13px/19px var(--font-sans); opacity: .92; }
.vd-toast { display: inline-flex; align-items: center; gap: 12px; max-width: 100%; padding: 10px 14px; border-radius: var(--vd-radius-12); background: var(--vd-surface-inverse); color: var(--vd-text-on-inverse); box-shadow: var(--vd-shadow-inverse); animation: vd-toast-in var(--vd-duration-panel) var(--vd-ease); }
.vd-toast > i { flex: none; font-size: 18px; }
.vd-toast--positive > i { color: var(--vd-positive-on-inverse); }
.vd-toast--info > i { color: var(--vd-processing-on-inverse); }
.vd-toast--attention > i { color: var(--vd-attention-on-inverse); }
.vd-toast--negative > i { color: var(--vd-negative-on-inverse); }
.vd-toast__title { font: 700 13.5px/18px var(--font-sans); white-space: nowrap; }
.vd-toast__sub { font: 500 12.5px/17px var(--font-sans); color: var(--vd-text-on-inverse-2); }
.vd-toast__divider { width: 1px; height: 16px; background: var(--vd-inverse-divider); flex: none; }
.vd-toast__action { padding: 4px 6px; border: 0; background: transparent; color: var(--vd-text-on-inverse); font: 700 13px/1 var(--font-sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.vd-toast__action:focus-visible { outline: var(--vd-stroke-1-5) solid var(--vd-text-on-inverse); outline-offset: 1px; border-radius: 4px; }
.vd-toast-region { position: fixed; left: 24px; bottom: 24px; z-index: var(--vd-z-toast); display: flex; flex-direction: column; align-items: flex-start; gap: 8px; pointer-events: none; }
.vd-toast-region > * { pointer-events: auto; }

/* Empty, error, permission · every dead end explains the object and offers the next step. No illustrations. */
.vd-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 24px; border: var(--vd-stroke-1) solid var(--vd-border); border-radius: var(--vd-radius-16); background: var(--vd-surface); }
.vd-empty__eyebrow { font: 500 10.5px/14px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--vd-text-2); }
.vd-empty__title { font: 800 15px/20px var(--font-sans); }
.vd-empty__text { font: 500 13px/19px var(--font-sans); color: var(--vd-text-2); }
.vd-empty__ref { font: 500 11px/15px var(--font-mono); color: var(--vd-text-2); text-transform: uppercase; }
.vd-empty__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.vd-empty__link { font: 700 13px/18px var(--font-sans); }
.vd-empty--error .vd-empty__eyebrow { color: var(--vd-negative-text); }
.vd-empty--locked { border-style: dashed; border-color: var(--vd-border-strong); background: var(--vd-surface-2); }
.vd-empty--locked .vd-empty__title { color: var(--vd-text-supporting); }
.vd-empty--inline { align-items: center; text-align: center; gap: 8px; padding: 28px 16px; border: 0; background: transparent; }
.vd-empty--inline .vd-empty__title { font-size: 14px; }
.vd-empty--inline .vd-empty__text { font-size: 12.5px; }
.vd-empty--panel { border-style: dashed; border-color: var(--vd-border-strong); background: var(--vd-surface-2); border-radius: var(--vd-radius-12); padding: 16px; gap: 6px; }
.vd-empty--panel .vd-empty__title { font: 700 13.5px/18px var(--font-sans); }
.vd-empty--panel .vd-empty__text { font-size: 12.5px; line-height: 18px; }

/* ============================================================
   21 · Overlays · drawer is the working panel; modal only stops the user before something irreversible
   ============================================================ */
.vd-veil { position: fixed; inset: 0; z-index: var(--vd-z-veil); background: var(--vd-veil); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: vd-fade var(--vd-duration-hover) var(--vd-ease-out); }
.vd-scrim { position: fixed; inset: 0; z-index: var(--vd-z-scrim); display: grid; place-items: center; padding: 24px; background: var(--vd-scrim); animation: vd-fade var(--vd-duration-hover) var(--vd-ease-out); }
.vd-veil--contained, .vd-scrim--contained { position: absolute; }
/* Level 2: the workspace veils under the context panel; the anchored widget and its connector stay above the veil */
.vd-veil--level2 { z-index: calc(var(--vd-z-panel) - 2); }
.vd-widget.is-anchored { position: relative; z-index: calc(var(--vd-z-panel) - 1); }
.vd-drawer { --vd-drawer-w: var(--vd-drawer-md); position: fixed; top: var(--vd-frame-inset); right: var(--vd-frame-inset); bottom: var(--vd-frame-inset); z-index: var(--vd-z-drawer); display: flex; flex-direction: column; width: min(var(--vd-drawer-w), calc(100% - 24px)); border-radius: var(--vd-radius-20); background: var(--vd-surface); box-shadow: var(--vd-shadow-e4); overflow: hidden; animation: vd-drawer-in var(--vd-duration-drawer-in) var(--vd-ease); }
.vd-drawer--sm { --vd-drawer-w: var(--vd-drawer-sm); }
.vd-drawer--lg { --vd-drawer-w: var(--vd-drawer-lg); }
.vd-drawer--contained { position: absolute; }
.vd-drawer__head { display: flex; flex-direction: column; gap: 12px; padding: 18px 24px 16px; border-bottom: var(--vd-stroke-1) solid var(--vd-border-subtle); }
.vd-drawer__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-width: 0; }
.vd-drawer__eyebrow { font: 500 10.5px/14px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--vd-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vd-drawer__actions { display: flex; gap: 6px; flex: none; }
.vd-drawer__title-row { display: flex; gap: 12px; align-items: center; min-width: 0; }
.vd-drawer__titles { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vd-drawer__title { font: 700 20px/26px var(--font-sans); letter-spacing: -.015em; }
.vd-drawer__sub { font: 500 13px/18px var(--font-sans); color: var(--vd-text-2); }
.vd-drawer__body { flex: 1 1 auto; overflow: auto; display: flex; flex-direction: column; gap: 20px; padding: 20px 24px; }
.vd-drawer__section { display: flex; flex-direction: column; gap: 10px; }
.vd-drawer__foot { display: flex; align-items: center; gap: 8px; padding: 14px 24px; border-top: var(--vd-stroke-1) solid var(--vd-border-subtle); background: var(--vd-surface); }
.vd-modal { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: var(--vd-modal-width); padding: 24px; border-radius: var(--vd-radius-20); background: var(--vd-surface); box-shadow: var(--vd-shadow-modal); animation: vd-panel-in var(--vd-duration-panel) var(--vd-ease); }
.vd-modal--legal { max-width: var(--vd-modal-width-legal); }
.vd-modal__title { font: 700 18px/24px var(--font-sans); letter-spacing: -.015em; }
.vd-modal__text { font: 500 13.5px/20px var(--font-sans); color: var(--vd-text-supporting); }
.vd-modal__actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.vd-modal__declaration { padding: 12px; border: var(--vd-stroke-1) solid var(--vd-border-subtle); border-radius: var(--vd-radius-12); background: var(--vd-surface-2); font: 500 12.5px/19px var(--font-sans); color: var(--vd-text-supporting); }
.vd-modal__declaration b { font-weight: 700; color: var(--vd-text-1); }
.vd-modal__signer { display: flex; align-items: center; gap: 8px; font: 500 11px/15px var(--font-mono); color: var(--vd-text-2); text-transform: uppercase; }
.vd-modal__signer > i { font-size: 15px; }

/* Level-2 context panel for a selected object */
.vd-context-panel { position: relative; display: flex; flex-direction: column; width: var(--vd-context-panel-width); border-radius: var(--vd-radius-20); background: var(--vd-surface); box-shadow: var(--vd-shadow-e3); overflow: hidden; z-index: var(--vd-z-panel); animation: vd-panel-in var(--vd-duration-panel) var(--vd-ease); }
.vd-context-panel::before { content: ""; height: 2px; flex: none; background: conic-gradient(from 90deg at 50% 50%, var(--vd-foil-edge-stops)); }
.vd-context-panel__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding: 14px 16px 10px; }
.vd-context-panel__eyebrow { font: 500 10px/14px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--vd-text-2); }
.vd-context-panel__title { font: 800 15px/20px var(--font-sans); }
.vd-context-panel__row { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 16px; border-top: var(--vd-stroke-1) solid var(--vd-border-subtle); font: 500 13px/18px var(--font-sans); }
.vd-context-panel__row > span:first-child { flex: 1; color: var(--vd-text-supporting); }
.vd-context-panel__row > .vd-mono { font: 500 12px/17px var(--font-mono); }
.vd-context-panel__row > i { font-size: 13px; }
.vd-context-panel__foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px 14px; border-top: var(--vd-stroke-1) solid var(--vd-border-subtle); }
.vd-connector { position: absolute; z-index: var(--vd-z-panel); width: 16px; height: 2px; background: linear-gradient(90deg, var(--vd-spectrum-violet), var(--vd-spectrum-ice-cyan)); }

/* ============================================================
   22 · Search and entity picker · results are objects, not strings
   ============================================================ */
.vd-search { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: var(--vd-search-max); }
.vd-search__panel { border-radius: var(--vd-radius-14); background: var(--vd-surface); box-shadow: var(--vd-shadow-e3); overflow: hidden; }
.vd-search__scopes { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 10px 12px; border-bottom: var(--vd-stroke-1) solid var(--vd-border-subtle); }
.vd-search__count { margin-left: auto; font: 500 11px/15px var(--font-mono); color: var(--vd-text-2); }
.vd-search__results { display: flex; flex-direction: column; padding: 6px; }
.vd-search__group { display: flex; align-items: center; gap: 6px; padding: 10px 10px 4px; font: 700 10.5px/14px var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--vd-text-2); }
.vd-search__foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-top: var(--vd-stroke-1) solid var(--vd-border-subtle); background: var(--vd-surface-2); font: 500 11px/15px var(--font-mono); color: var(--vd-text-2); text-transform: uppercase; }
.vd-result { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 10px; border: 0; border-radius: var(--vd-radius-10); background: transparent; color: inherit; font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.vd-result:hover, .vd-result.is-active, .vd-result[aria-selected="true"] { background: var(--vd-hover-row); }
.vd-result:focus-visible { outline: var(--vd-stroke-1-5) solid var(--vd-focus-edge); outline-offset: -1.5px; }
.vd-result__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vd-result__name { font: 700 14px/20px var(--font-sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vd-result__meta { display: flex; gap: 8px; min-width: 0; white-space: nowrap; overflow: hidden; }
.vd-result__id { font: 500 11px/16px var(--font-mono); color: var(--vd-text-supporting); flex: none; }
.vd-result__desc { font: 500 12px/16px var(--font-sans); color: var(--vd-text-2); overflow: hidden; text-overflow: ellipsis; }
.vd-result > .ph, .vd-result > i { font-size: 14px; color: var(--vd-text-3); }
.vd-hit, mark.vd-hit { background: var(--vd-match-highlight); color: inherit; border-radius: var(--vd-radius-2); padding: 0; }

.vd-picker { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.vd-picker__trigger { display: flex; align-items: center; gap: 10px; width: 100%; min-height: var(--vd-control-52); padding: 0 12px; border: var(--vd-stroke-1) solid var(--vd-border-strong); border-radius: var(--vd-radius-12); background: var(--vd-surface); color: var(--vd-text-placeholder); font: 600 14px/20px var(--font-sans); text-align: left; cursor: pointer; }
.vd-picker__trigger:hover { border-color: var(--vd-border-hover); }
.vd-picker__trigger:focus-visible, .vd-picker__trigger.is-focus { outline: none; border: 1.5px solid transparent; padding: 0 11.5px; background: linear-gradient(var(--vd-surface), var(--vd-surface)) padding-box, conic-gradient(from 210deg, var(--vd-foil-edge-stops)) border-box; box-shadow: inset 0 0 0 1px var(--vd-focus-edge), var(--vd-shadow-focus-halo); }
.vd-picker__caret { margin-left: auto; font-size: 14px; color: var(--vd-text-supporting); }
.vd-picker__trigger.is-selected { min-height: 60px; gap: 12px; padding: 10px 12px; color: var(--vd-text-1); cursor: default; }
.vd-picker__clear { font-size: 14px; color: var(--vd-text-2); background: none; border: 0; padding: 4px; cursor: pointer; border-radius: 6px; }
.vd-picker__clear:hover { background: var(--vd-hover-soft); }
.vd-picker__value { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vd-picker__name { font: 700 14px/19px var(--font-sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vd-picker__meta { font: 500 11px/15px var(--font-mono); color: var(--vd-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vd-picker__panel { display: flex; flex-direction: column; gap: 2px; padding: 6px; border-radius: var(--vd-radius-12); background: var(--vd-surface); box-shadow: var(--vd-shadow-e3); z-index: var(--vd-z-popover); }
.vd-picker__query { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px; border-radius: var(--vd-radius-8); background: var(--vd-hover-row); font: 600 13.5px/1 var(--font-sans); }
.vd-picker__query > i { font-size: 15px; }
.vd-picker__query input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; }
.vd-picker__option { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px; border: 0; border-radius: var(--vd-radius-8); background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.vd-picker__option:hover, .vd-picker__option.is-active, .vd-picker__option[aria-selected="true"] { background: var(--vd-hover-row); }
.vd-picker__option:focus-visible { outline: var(--vd-stroke-1-5) solid var(--vd-focus-edge); outline-offset: -1.5px; }
.vd-picker__option[aria-disabled="true"] { cursor: not-allowed; }
.vd-picker__option .vd-picker__name { font-size: 13.5px; }
.vd-picker__empty { padding: 14px 10px 10px; display: flex; flex-direction: column; gap: 6px; }
.vd-picker__empty .vd-empty__title { font: 700 13.5px/18px var(--font-sans); }
.vd-picker__empty .vd-empty__text { font-size: 12.5px; line-height: 18px; }
.vd-picker__empty .vd-empty__text a { font-weight: 700; }

/* ============================================================
   23 · Page layouts
   ============================================================ */
.vd-shell { display: flex; gap: var(--vd-frame-inset); height: 100vh; height: 100dvh; padding: var(--vd-frame-inset); overflow: hidden; background: var(--vd-canvas); }
.vd-shell__main { flex: 1 1 auto; min-width: 0; height: 100%; overflow: auto; padding: 0 12px 48px; }
.vd-shell__content { max-width: var(--vd-content-max); margin: 0 auto; }
.vd-page-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin: 16px 0 24px; }
.vd-page-header__titles { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.vd-page-header__title { font: 700 28px/34px var(--font-sans); letter-spacing: -.025em; text-wrap: balance; }
.vd-page-header__sub { font: 500 14px/20px var(--font-sans); color: var(--vd-text-2); }
.vd-page-header__actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vd-page-header__progress { display: flex; align-items: baseline; gap: 8px; }
.vd-page-header__progress > b { font: 600 28px/32px var(--font-sans); letter-spacing: -.03em; }
.vd-page-header__progress > span { font: 500 12.5px/17px var(--font-sans); color: var(--vd-text-2); }
.vd-columns { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.vd-columns__main { flex: 1.3 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.vd-columns__side { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.vd-object-layout { display: flex; gap: 16px; align-items: flex-start; }
.vd-object-layout__content { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.vd-identity-hero { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; padding: 22px; }
.vd-identity-hero__text { flex: 1 1 260px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.vd-identity-hero__title { font: 800 21px/27px var(--font-sans); letter-spacing: -.015em; }
.vd-identity-hero__desc { font: 500 13px/19px var(--font-sans); color: var(--vd-text-supporting); }

/* Specification / documentation page (the kit's own layout) */
.vd-doc { max-width: var(--vd-doc-max); margin: 0 auto; padding: 0 var(--vd-space-40) var(--vd-space-96); }
.vd-doc-head { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: end; gap: 24px; padding: 18px 0 16px; border-top: var(--vd-stroke-1-5) solid var(--vd-border-active); margin-bottom: 28px; }
.vd-doc-head__num { font: 500 44px/1 var(--font-mono); letter-spacing: -.05em; }
.vd-doc-head__title { font: 700 26px/32px var(--font-sans); letter-spacing: -.02em; }
.vd-doc-head__sub { margin-top: 4px; font: 500 13px/19px var(--font-sans); color: var(--vd-text-2); }
.vd-doc-head__code { font: 500 11px/15px var(--font-mono); color: var(--vd-text-2); }

/* ============================================================
   24 · Responsive · desktop reference 1440; laptops <1280; tablets <1024; phones <768 (proposed)
   ============================================================ */
/* phones (<768) get the full-width stacked panel instead, so the rail stops at 768 */
@media (min-width: 768px) and (max-width: 1279px) {
  .vd-object-layout > .vd-context-nav:not(.vd-context-nav--keep) { width: var(--vd-context-rail-width); padding: 10px 8px; align-items: center; }
  .vd-object-layout > .vd-context-nav:not(.vd-context-nav--keep) .vd-context-item__lock { display: none; }
  .vd-object-layout > .vd-context-nav:not(.vd-context-nav--keep) .vd-context-nav__head > :not(.vd-tile),
  .vd-object-layout > .vd-context-nav:not(.vd-context-nav--keep) .vd-context-item__label,
  .vd-object-layout > .vd-context-nav:not(.vd-context-nav--keep) .vd-trust-bars,
  .vd-object-layout > .vd-context-nav:not(.vd-context-nav--keep) .vd-count-plain { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .vd-object-layout > .vd-context-nav:not(.vd-context-nav--keep) .vd-context-item { width: 40px; justify-content: center; padding: 0; }
}
@media (max-width: 1023px) {
  /* rail form; an opened sidebar (.is-open — the phone overlay) keeps its full form */
  .vd-shell > .vd-sidebar:not(.vd-sidebar--keep):not(.is-open) { width: var(--vd-sidebar-collapsed); padding: 14px 0; align-items: center; gap: 4px; overflow: visible; }
  .vd-shell > .vd-sidebar:not(.vd-sidebar--keep):not(.is-open) .vd-has-tooltip > .vd-tooltip { display: inline-block; }
  .vd-shell > .vd-sidebar:not(.vd-sidebar--keep):not(.is-open) .vd-sidebar__toggle { display: none; }
  .vd-shell > .vd-sidebar:not(.vd-sidebar--keep):not(.is-open) .vd-wordmark,
  .vd-shell > .vd-sidebar:not(.vd-sidebar--keep):not(.is-open) .vd-nav-label,
  .vd-shell > .vd-sidebar:not(.vd-sidebar--keep):not(.is-open) .vd-nav-item__text,
  .vd-shell > .vd-sidebar:not(.vd-sidebar--keep):not(.is-open) .vd-nav-item__meta { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .vd-shell > .vd-sidebar:not(.vd-sidebar--keep):not(.is-open) .vd-sidebar__brand { padding: 0 0 12px; justify-content: center; }
  .vd-shell > .vd-sidebar:not(.vd-sidebar--keep):not(.is-open) .vd-nav-item { width: 40px; height: 36px; padding: 0; justify-content: center; border-radius: var(--vd-radius-10); }
  .vd-shell > .vd-sidebar:not(.vd-sidebar--keep):not(.is-open) .vd-nav-item__flag { display: block; }
  .vd-widget-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .vd-shell { flex-direction: column; height: auto; min-height: 100dvh; overflow: visible; padding: 8px; gap: 8px; }
  .vd-shell > .vd-sidebar:not(.vd-sidebar--keep) { display: none; }
  .vd-shell > .vd-sidebar.is-open { display: flex; position: fixed; inset: 8px auto 8px 8px; z-index: var(--vd-z-drawer); width: min(var(--vd-sidebar-width), calc(100% - 16px)); align-items: stretch; padding: 14px 10px; box-shadow: var(--vd-shadow-e4); }
  .vd-shell__main { height: auto; overflow: visible; padding: 0 4px 32px; }
  .vd-topbar { height: auto; padding: 4px 0; flex-wrap: wrap; }
  .vd-topbar__search { order: 3; flex-basis: 100%; max-width: none; }
  .vd-page-header { margin: 12px 0 16px; }
  .vd-page-header__title { font-size: 24px; line-height: 30px; }
  .vd-page-header__actions { width: 100%; }
  .vd-page-header__actions > .vd-btn { flex: 1 1 auto; }
  .vd-widget-grid, .vd-widget-grid--4 { grid-template-columns: minmax(0, 1fr); }
  .vd-widget--2x1, .vd-widget--2x2 { grid-column: auto; }
  .vd-object-layout { flex-direction: column; }
  .vd-object-layout > .vd-context-nav { width: 100%; }
  .vd-drawer { top: 8px; right: 8px; bottom: 8px; left: 8px; width: auto; border-radius: var(--vd-radius-16); }
  .vd-drawer__head, .vd-drawer__body, .vd-drawer__foot { padding-left: 16px; padding-right: 16px; }
  .vd-modal { padding: 20px; }
  .vd-context-panel { width: 100%; }
  .vd-bulkbar { left: 8px; right: 8px; transform: none; overflow-x: auto; animation: vd-toast-in 180ms var(--vd-ease-out); }
  .vd-toast-region { left: 8px; right: 8px; bottom: 8px; }
  .vd-doc { padding: 0 16px 64px; }
  .vd-doc-head { grid-template-columns: 1fr; gap: 8px; }
  .vd-spine { --vd-spine-cols: 28px minmax(0, 1fr) auto; }
  .vd-spine__by, .vd-spine__evidence, .vd-spine__cols > :nth-child(3), .vd-spine__cols > :nth-child(4) { display: none; }
}
/* Touch input: primary page actions grow to the 44px touch size (kit: "Touch 44") */
@media (pointer: coarse) {
  .vd-page-header__actions > .vd-btn, .vd-drawer__foot > .vd-btn, .vd-modal__actions > .vd-btn { height: var(--vd-control-44); }
  .vd-icon-btn:not(.vd-icon-btn--28) { min-width: var(--vd-control-40); min-height: var(--vd-control-40); }
}

/* ============================================================
   25 · Reduced motion, print
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0s !important; }
  .vd-perimeter::before { animation: none !important; inset: 0; background: conic-gradient(from 200deg at 62% 58%, var(--vd-foil-stops)); }
  .vd-sweep.is-complete::after { display: none; }
  .vd-skeleton--shimmer { animation: none !important; background: var(--vd-skeleton); }
}
@media print {
  :where(body) { background: #fff; }
  .vd-foil, .vd-mark, .vd-tile--foil, .vd-hexnode, .vd-seal__mark, .vd-btn--veridium { background: var(--vd-surface-inverse) !important; color: var(--vd-text-on-inverse) !important; }
  .vd-verified, .vd-seal, .vd-widget.is-selected, .vd-object-row--verified { background: var(--vd-surface) !important; border: 1px solid var(--vd-border-active) !important; box-shadow: none !important; }
  .vd-hexmark::before { background: var(--vd-surface) !important; }
  .vd-card, .vd-widget, .vd-object-card, .vd-context-nav, .vd-drawer, .vd-modal, .vd-popover { box-shadow: none !important; }
  .vd-sidebar, .vd-topbar, .vd-bulkbar, .vd-toast-region { display: none !important; }
}


