/*
  Design tokens — the only source of colours, fonts and sizes. Plain CSS custom properties (no Tailwind): every rule in
  base/kit/shell/feature files reads them, so a colour lives in exactly one place.

  Meaning, not decoration: primary — the neutral graphite (text, borders, the main button); accent — indigo, the one
  saturated colour of the shell (active nav item, focus, links, information); success / warning / error — what their
  names say. Palettes are ported from CampaignManager, with an indigo accent instead of its steel.
*/
/* Cascade layers: a helper in «utilities» beats a component class in «kit» without !important, whatever the file order. */
@layer reset, kit, shell, features, utilities;

:root {
  --white: #ffffff;
  --black: #000000;

  --primary-50: #f8fafc;
  --primary-100: #f1f5f9;
  --primary-200: #e2e8f0;
  --primary-300: #cbd5e1;
  --primary-400: #94a3b8;
  --primary-500: #64748b;
  --primary-600: #475569;
  --primary-700: #334155;
  --primary-800: #1e293b;
  --primary-900: #0f172a;

  --accent-50: #eef2ff;
  --accent-100: #e0e7ff;
  --accent-200: #c7d2fe;
  --accent-300: #a5b4fc;
  --accent-400: #818cf8;
  --accent-500: #6366f1;
  --accent-600: #4f46e5;
  --accent-700: #4338ca;
  --accent-800: #3730a3;
  --accent-900: #312e81;

  --success-50: #edf9f0;
  --success-100: #d2edd9;
  --success-200: #a9ddb7;
  --success-500: #2c9d49;
  --success-600: #218239;
  --success-700: #17682b;
  --success-800: #104f1f;
  --success-900: #0a3614;

  --warning-50: #fdf4e7;
  --warning-100: #fbe3c2;
  --warning-200: #f6ca8b;
  --warning-300: #f2ae54;
  --warning-500: #d97706;
  --warning-600: #b36306;
  --warning-700: #8c4e05;
  --warning-800: #663904;
  --warning-900: #402302;

  --error-50: #fbecec;
  --error-100: #f6d0d1;
  --error-200: #eea7a8;
  --error-500: #c71d20;
  --error-600: #a8191b;
  --error-700: #891416;
  --error-800: #680f11;
  --error-900: #460a0b;

  --page: #f8f9fa;
  --card: var(--white);
  --border: var(--primary-200);
  --text: var(--primary-900);
  --text-muted: var(--primary-600);

  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Bitter", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Shell: rail on iPad (90px), top bar 56px, phone tab bar 58px plus the safe area. */
  --rail-width: 90px;
  --topbar-height: 56px;
  --tabbar-height: 58px;

  /* Tap targets — the owner's rule (2026-10-03): controls from 32px, whole-row buttons in dense lists from 28px. */
  --tap: 40px;
  --tap-sm: 32px;

  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --shadow-card: 0 1px 2px rgb(15 23 42 / 0.05);
  --shadow-pop: 0 8px 24px rgb(0 0 0 / 0.14);
  --focus-ring: 0 0 0 3px rgb(99 102 241 / 0.25);
}
