/* =============================================================================
 * Via Hive Command Center V2 — token authority (J1)
 * -----------------------------------------------------------------------------
 * Source: VIA-HIVE-DESIGN-SYSTEM-V2-SPEC.md §3-§10 (Founder-approved, D-311..D-316,
 * VISUAL DIRECTION FROZEN 2026-09-28). Primitives on :root; semantic roles under
 * :root[data-theme="light"] and :root[data-theme="dark"] (system resolved by
 * viahive-theme.js, extended in J1 to stamp data-theme before paint as today).
 * Namespace --vh2-* (the violet layer owns --vh-*; kept separate during the bridge
 * period). Components consume SEMANTIC roles only — never a primitive directly.
 * ========================================================================== */

/* BEGIN GENERATED:via-hive-tokens v1.6.0-admin-colours-v1 sha256:136507641053d850 - source: design-tokens/via-hive-tokens.json (D-422). DO NOT EDIT BY HAND: regenerate. */
:root {
  /* ---- colour primitives (never consumed directly by components; use the semantic roles below) ---- */
  --vh2-orange-50: #FFF1E8; --vh2-orange-100: #FFE2D0; --vh2-orange-300: #FF9A5C; --vh2-orange-400: #D2431A; --vh2-orange-500: #D2431A; --vh2-orange-600: #D2431A; --vh2-orange-700: #B8340F; --vh2-orange-800: #8E2A12; --vh2-orange-900: #4A1A0E;
  --vh2-blue-50: #E8EEFF; --vh2-blue-100: #D3DEFF; --vh2-blue-200: #BCCEFF; --vh2-blue-300: #8CAAFF; --vh2-blue-400: #4A74FF; --vh2-blue-500: #2150F5; --vh2-blue-600: #1B45D6; --vh2-blue-700: #1736AD; --vh2-blue-800: #26356B; --vh2-blue-900: #1B2650;
  --vh2-graphite-600: #57534E; --vh2-graphite-700: #44403C; --vh2-graphite-750: #38342F; --vh2-graphite-800: #2E2A27; --vh2-graphite-850: #262321; --vh2-graphite-875: #201D1B; --vh2-graphite-900: #1C1917; --vh2-graphite-950: #151210;
  --vh2-ink-200: #B5AFA9; --vh2-ink-300: #A39D97; --vh2-ink-400: #6F6A65; --vh2-ink-500: #5F5A55; --vh2-ink-600: #57534E; --vh2-ink-700: #44403C; --vh2-ink-800: #38342F; --vh2-ink-900: #44403C;
  --vh2-pearl-0: #FFFFFF; --vh2-pearl-25: #FFF8F2; --vh2-pearl-50: #FBF5EE; --vh2-pearl-100: #F6EBDF; --vh2-pearl-150: #F3EAE0; --vh2-pearl-200: #EEE2D6; --vh2-pearl-300: #D9C9BA; --vh2-pearl-400: #8F8478;
  --vh2-emerald-50: #E4F6EC; --vh2-emerald-200: #BFE5D1; --vh2-emerald-400: #5FDDA6; --vh2-emerald-500: #17A06A; --vh2-emerald-700: #0B7A4E; --vh2-emerald-800: #1F4A3B; --vh2-emerald-900: #163A33;
  --vh2-amber-50: #F1EFEB; --vh2-amber-200: #E7E4DE; --vh2-amber-400: #FF9A5C; --vh2-amber-600: #B8340F; --vh2-amber-800: #38342F; --vh2-amber-900: #2E2A27;
  --vh2-red-50: #FFE8EA; --vh2-red-200: #F4BFC3; --vh2-red-400: #FF8C97; --vh2-red-600: #C2222F; --vh2-red-800: #5C2A38; --vh2-red-900: #3B1F2D;
  /* legacy alias: the brand primitive used to be called coral (same values) */
  --vh2-coral-50: var(--vh2-orange-50); --vh2-coral-100: var(--vh2-orange-100); --vh2-coral-300: var(--vh2-orange-300); --vh2-coral-400: var(--vh2-orange-400); --vh2-coral-500: var(--vh2-orange-500); --vh2-coral-600: var(--vh2-orange-600); --vh2-coral-700: var(--vh2-orange-700); --vh2-coral-800: var(--vh2-orange-800); --vh2-coral-900: var(--vh2-orange-900);
  --vh2-gradient-brand: linear-gradient(135deg, #E9663F 0%, #B52B00 100%);
  --vh2-gradient-cta: linear-gradient(135deg, #F97951 0%, #CD3100 100%);
}
:root,
:root[data-theme="light"] {
  /* ---- semantic colour roles - light ---- */
  --vh2-action-primary-bg: #CD3100; --vh2-action-primary-bg-hover: #B52B00; --vh2-action-primary-bg-pressed: #8E2A12;
  --vh2-action-primary-fg: #FFFFFF; --vh2-action-blue-bg: #FFFFFF; --vh2-action-blue-bg-hover: #F1EFEB;
  --vh2-action-blue-fg: #44403C; --vh2-interactive: #B8340F; --vh2-text-link: #B8340F;
  --vh2-focus-ring: #D2431A; --vh2-brand: #D2431A; --vh2-brand-text: #B8340F;
  --vh2-brand-soft: #FFF1E8; --vh2-info-fg: #57534E; --vh2-info-bg: #F1EFEB;
  --vh2-communication-bg: #D2431A; --vh2-communication-text: #FFFFFF; --vh2-trust-badge-fg: #44403C;
  --vh2-trust-badge-bg: #F1EFEB; --vh2-structure-bg: #44403C; --vh2-structure-text: #FFFFFF;
  --vh2-structure-accent: #D2431A; --vh2-bg-canvas: #F7F6F3; --vh2-surface: #FFFFFF;
  --vh2-bg-sunken: #F1EFEB; --vh2-border-default: #E7E4DE; --vh2-border-strong: #D8D3CB;
  --vh2-text-primary: #44403C; --vh2-text-secondary: #5F5A55; --vh2-text-tertiary: #6F6A65;
  --vh2-text-disabled: #B5AFA9; --vh2-text-inverse: #FFFFFF; --vh2-success-fg: #0B7A4E;
  --vh2-success-bg: #E4F6EC; --vh2-warning-fg: #B8340F; --vh2-warning-bg: #F1EFEB;
  --vh2-danger-fg: #C2222F; --vh2-danger-bg: #FFE8EA; --vh2-action-danger-bg: #C2222F;
  --vh2-action-danger-fg: #FFFFFF; --vh2-bg-subtle: #FCFBF9; --vh2-surface-raised: #FFFFFF;
  --vh2-surface-sidebar: #FFFFFF; --vh2-border-subtle: #ECE9E4; --vh2-interactive-soft: #FFF1E8;
  --vh2-action-ghost-fg: #5F5A55; --vh2-success-border: #BFE5D1; --vh2-warning-border: #E7E4DE;
  --vh2-danger-border: #F4BFC3; --vh2-info-border: #E7E4DE; --vh2-neutral-fg: #5F5A55;
  --vh2-neutral-bg: #F1EFEB; --vh2-neutral-border: #E7E4DE;
  --vh2-action-secondary-bg: var(--vh2-surface); --vh2-action-secondary-border: var(--vh2-border-strong); --vh2-action-secondary-fg: var(--vh2-text-primary);
  --vh2-gradient-wash: linear-gradient(135deg, #FFE2D0, transparent);
}
:root[data-theme="dark"] {
  /* ---- semantic colour roles - dark ---- */
  --vh2-action-primary-bg: #CD3100; --vh2-action-primary-bg-hover: #B52B00; --vh2-action-primary-bg-pressed: #8E2A12;
  --vh2-action-primary-fg: #FFFFFF; --vh2-action-blue-bg: #2E2A27; --vh2-action-blue-bg-hover: #44403C;
  --vh2-action-blue-fg: #FFFFFF; --vh2-interactive: #D2431A; --vh2-text-link: #FF9A5C;
  --vh2-focus-ring: #D2431A; --vh2-brand: #D2431A; --vh2-brand-text: #FF9A5C;
  --vh2-brand-soft: #4A1A0E; --vh2-info-fg: #B5AFA9; --vh2-info-bg: #2E2A27;
  --vh2-communication-bg: #D2431A; --vh2-communication-text: #FFFFFF; --vh2-trust-badge-fg: #B5AFA9;
  --vh2-trust-badge-bg: #2E2A27; --vh2-structure-bg: #151210; --vh2-structure-text: #FFFFFF;
  --vh2-structure-accent: #D2431A; --vh2-bg-canvas: #1C1917; --vh2-surface: #262321;
  --vh2-bg-sunken: #151210; --vh2-border-default: #44403C; --vh2-border-strong: #57534E;
  --vh2-text-primary: #FBF5EE; --vh2-text-secondary: #B5AFA9; --vh2-text-tertiary: #A39D97;
  --vh2-text-disabled: #57534E; --vh2-text-inverse: #1C1917; --vh2-success-fg: #5FDDA6;
  --vh2-success-bg: #163A33; --vh2-warning-fg: #FF9A5C; --vh2-warning-bg: #2E2A27;
  --vh2-danger-fg: #FF8C97; --vh2-danger-bg: #3B1F2D; --vh2-action-danger-bg: #C2222F;
  --vh2-action-danger-fg: #FFFFFF; --vh2-bg-subtle: #201D1B; --vh2-surface-raised: #2E2A27;
  --vh2-surface-sidebar: #201D1B; --vh2-border-subtle: #38342F; --vh2-interactive-soft: #4A1A0E;
  --vh2-action-ghost-fg: #B5AFA9; --vh2-success-border: #1F4A3B; --vh2-warning-border: #38342F;
  --vh2-danger-border: #5C2A38; --vh2-info-border: #44403C; --vh2-neutral-fg: #B5AFA9;
  --vh2-neutral-bg: #2E2A27; --vh2-neutral-border: #44403C;
  --vh2-action-secondary-bg: var(--vh2-surface); --vh2-action-secondary-border: var(--vh2-border-strong); --vh2-action-secondary-fg: var(--vh2-text-primary);
  --vh2-gradient-wash: linear-gradient(135deg, #4A1A0E, transparent);
}
/* END GENERATED:via-hive-tokens */

:root {
  /* ---- typography ---- */
  --vh2-font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --vh2-font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

  /* ---- spacing (4px base) ---- */
  --vh2-s0: 0;  --vh2-s0-5: 2px; --vh2-s1: 4px;  --vh2-s1-5: 6px; --vh2-s2: 8px;
  --vh2-s3: 12px; --vh2-s4: 16px; --vh2-s5: 20px; --vh2-s6: 24px; --vh2-s8: 32px; --vh2-s10: 40px; --vh2-s12: 48px; --vh2-s16: 64px;

  /* ---- radii ---- */
  /* brand polish 2026-10-25 (BRAND-SYSTEM.md): badge 6, control 10, card 12, sheet/modal 16, buttons + chips pill */
  --vh2-r-xs: 6px; --vh2-r-sm: 8px; --vh2-r-md: 10px; --vh2-r-lg: 12px; --vh2-r-xl: 16px; --vh2-r-pill: 999px;

  /* ---- motion ---- */
  --vh2-dur-fast: 120ms; --vh2-dur-base: 160ms; --vh2-dur-slow: 180ms;
  --vh2-ease-standard: cubic-bezier(.2,0,0,1); --vh2-ease-exit: cubic-bezier(.4,0,1,1);

  /* ---- z-index ---- */
  --vh2-z-base: 0; --vh2-z-raised: 10; --vh2-z-sticky: 100; --vh2-z-sidebar: 200; --vh2-z-topbar: 300;
  --vh2-z-dropdown: 1000; --vh2-z-popover: 1100; --vh2-z-drawer: 1200; --vh2-z-modal: 1300; --vh2-z-toast: 1400;
  --vh2-z-command: 1500; --vh2-z-tooltip: 1600; --vh2-z-shell: 2000000000; /* above every legacy fixed element */

  /* ---- density (comfortable default) ---- */
  --vh2-control-h: 36px; --vh2-row-h: 48px; --vh2-card-pad: 20px; --vh2-sidebar-item-h: 40px;
}

[data-density="compact"] {
  --vh2-control-h: 32px; --vh2-row-h: 36px; --vh2-card-pad: 12px; --vh2-sidebar-item-h: 32px;
}

/* ============================ Semantic roles — LIGHT (pearl), default ============================ */
:root,
:root[data-theme="light"] {
  /* brand polish 2026-10-25: crisp NEUTRAL shadows (no warm/orange tint, no large blurred glows); resting cards rely on the 1px hairline */
  --vh2-shadow-xs: 0 1px 2px rgba(41, 37, 36, .06);
  --vh2-shadow-sm: 0 1px 3px rgba(41, 37, 36, .08), 0 1px 2px rgba(41, 37, 36, .04);
  --vh2-shadow-md: 0 4px 12px -2px rgba(41, 37, 36, .08), 0 2px 4px -2px rgba(41, 37, 36, .04);
  --vh2-shadow-lg: 0 12px 24px -6px rgba(41, 37, 36, .12), 0 4px 8px -4px rgba(41, 37, 36, .06);
  --vh2-shadow-overlay: 0 24px 48px -12px rgba(41, 37, 36, .18);
}

/* ============================ Semantic roles — DARK (graphite) ============================ */
:root[data-theme="dark"] {
  --vh2-shadow-xs: 0 1px 2px rgba(28,25,23,.35);
  --vh2-shadow-sm: 0 1px 3px rgba(28,25,23,.4), 0 1px 2px rgba(28,25,23,.3);
  --vh2-shadow-md: 0 4px 12px rgba(28,25,23,.4);
  --vh2-shadow-lg: 0 12px 32px rgba(28,25,23,.5);
  --vh2-shadow-overlay: 0 24px 64px rgba(28,25,23,.55);
}

@media (prefers-reduced-motion: reduce) {
  :root { --vh2-dur-fast: 0ms; --vh2-dur-base: 0ms; --vh2-dur-slow: 0ms; }
}
