/* ==========================================================================
   Design tokens -- single source of truth for color, type, spacing, motion.
   Carried forward from the prototype's navy/teal brand, extended with a
   fuller scale (50-900) so the new UI has room for proper elevation, subtle
   backgrounds, and state variants without inventing ad-hoc colors per page.
   ========================================================================== */
:root {
  /* --- Brand: navy (headings, chrome) --- */
  --navy-900: #051F23;
  --navy-800: #0B3D40;
  --navy-700: #115C59;
  --navy-600: #1B7A73;
  --navy-100: #DFF3F1;
  --navy-50:  #F1FAF9;

  /* --- Brand: teal (primary actions, accents) --- */
  --accent-900: #0A6E63;
  --accent-700: #0E9488;
  --accent:      #14B8A6;
  --accent-400: #4FD1C1;
  --accent-100: #E1F7F4;
  --accent-50:  #F1FCFA;

  /* --- Semantic --- */
  --success: #1F9D55;
  --success-bg: #E4F7EB;
  --warning: #B9840A;
  --warning-bg: #FDF3D9;
  --danger: #C0392B;
  --danger-bg: #FBE7E4;
  --info: #2B6CB0;
  --info-bg: #E4EEFB;

  /* --- Neutrals --- */
  --grey-900: #16202B;
  --grey-700: #3A4552;
  --grey-600: #5C6470;
  --grey-500: #7A8290;
  --grey-400: #97A0AC;
  --grey-300: #C2C9D1;
  --grey-200: #E3E6EB;
  --grey-100: #F4F5F7;
  --grey-50:  #FAFBFC;
  --white: #FFFFFF;

  --bg-app: #F6F8FA;
  --bg-card: #FFFFFF;
  --border: var(--grey-200);

  /* --- Type --- */
  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Source Serif Pro", Georgia, "Times New Roman", Times, serif;
  --font-mono: "SF Mono", "Roboto Mono", Menlo, Consolas, monospace;

  --text-xs: 12px;
  --text-sm: 13px;
  --text-base: 14.5px;
  --text-md: 16px;
  --text-lg: 19px;
  --text-xl: 24px;
  --text-2xl: 32px;
  --text-3xl: 42px;

  /* --- Spacing scale --- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* --- Radius --- */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 999px;

  /* --- Elevation --- */
  --shadow-xs: 0 1px 2px rgba(5, 31, 35, 0.06);
  --shadow-sm: 0 1px 2px rgba(5, 31, 35, 0.06), 0 4px 12px rgba(5, 31, 35, 0.06);
  --shadow-md: 0 2px 4px rgba(5, 31, 35, 0.06), 0 12px 28px rgba(5, 31, 35, 0.10);
  --shadow-lg: 0 8px 16px rgba(5, 31, 35, 0.10), 0 24px 48px rgba(5, 31, 35, 0.14);
  --shadow-focus: 0 0 0 3px rgba(20, 184, 166, 0.28);

  /* --- Motion --- */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 120ms;
  --duration-base: 200ms;

  --sidebar-width: 240px;
  --topbar-height: 64px;
  --content-max: 1160px;
}
