:root {
  /* Silva Digital core tokens */
  --bg-deep: #07070d;
  --bg-surface: #0c0c14;
  --bg-elevated-solid: #111119;
  --steel-100: #e8e9ed;
  --steel-200: #c8c9d1;
  --steel-300: #a0a1ae;
  --steel-400: #7a7b8c;
  --steel-500: #55566a;
  --accent: #8b9cc6;
  --accent-glow: rgba(139, 156, 198, 0.12);
  --accent-bright: #a8b8e0;
  --glass-bg: rgba(255, 255, 255, 0.012);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-border-hover: rgba(255, 255, 255, 0.1);
  --glass-panel: rgba(255, 255, 255, 0.005);

  --font-display: 'Space Grotesk', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  --container-max: 1280px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --transition-calm: 0.6s var(--ease-out);
  --transition-slow: 1s var(--ease-out);
  --transition-fast: 0.15s var(--ease-out);
  --transition-page: 0.2s var(--ease-out);

  /* Frame — matches silvadigital.uk viewport border */
  --frame-inset: clamp(6px, 1.2vw, 10px);
  --frame-radius: clamp(12px, 2vw, 20px);

  /* Responsive spacing scale */
  --space-xs: clamp(4px, 0.6vw, 6px);
  --space-sm: clamp(8px, 1.2vw, 12px);
  --space-md: clamp(12px, 1.8vw, 18px);
  --space-lg: clamp(16px, 2.4vw, 24px);
  --space-xl: clamp(20px, 3vw, 32px);
  --space-2xl: clamp(24px, 3.6vw, 40px);
  --container-pad: clamp(16px, 3vw, 32px);

  /* SilvaShift app mappings */
  --bg-base: var(--bg-deep);
  --panel-surface: rgba(12, 12, 18, 0.72);
  --bg-sidebar: var(--panel-surface);
  --bg-panel: var(--glass-bg);
  --bg-panel-hover: rgba(255, 255, 255, 0.022);
  --bg-input: rgba(255, 255, 255, 0.018);
  --bg-elevated: rgba(255, 255, 255, 0.04);

  --border-subtle: var(--glass-border);
  --border-strong: var(--glass-border-hover);

  --text-primary: var(--steel-100);
  --text-secondary: var(--steel-300);
  --text-muted: var(--steel-500);

  --rate-base: #7E9BB5;
  --rate-mid: #9B9BC4;
  --rate-high: #B89BC4;
  --rate-premium: #A8B8E0;
  --accent-base-tint: rgba(126, 155, 181, 0.15);
  --accent-mid-tint: rgba(155, 155, 196, 0.15);
  --accent-high-tint: rgba(184, 155, 196, 0.15);
  --accent-premium-tint: rgba(168, 184, 224, 0.12);

  --accent-rose: #C97B85;
  --accent-rose-tint: rgba(201, 123, 133, 0.08);
  --accent-gold: var(--accent-bright);
  --accent-lilac: var(--rate-mid);
  --accent-steel: var(--rate-base);

  --sidebar-width: clamp(210px, 18vw, 240px);
  --topbar-height: clamp(52px, 7vw, 64px);
  --radius-card: 20px;
  --radius-btn: 12px;
  --radius-pill: 999px;

  --pay-period-a: rgba(139, 156, 198, 0.05);
  --pay-period-b: rgba(122, 123, 140, 0.04);
  --pay-cutoff-glow: rgba(168, 184, 224, 0.35);
  --pay-day-glow: rgba(168, 184, 224, 0.4);
  --transition-smooth: 0.35s var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-calm: 0ms;
    --transition-slow: 0ms;
    --transition-fast: 0ms;
    --transition-page: 0ms;
  }
}
