/* Hallmark · macrostructure: Narrative Workflow · genre: modern-minimal · tone: technical-utilitarian · anchor hue: teal
 * theme: Cobalt adapted to patient-journey stages · enrichment: none
 * pre-emit critique: P5 H5 E5 S5 R5 V5 · contrast: pass (40–41)
 * honest: pass (46) · chrome: pass (47) · tokens: pass (48) · responsive: pass (34,49–57)
 */
:root {
  --color-paper: oklch(97.8% 0.006 205);
  --color-paper-2: oklch(95.5% 0.008 205);
  --color-surface: oklch(99% 0.004 205);
  --color-surface-raised: oklch(100% 0.003 205);
  --color-ink: oklch(19% 0.025 214);
  --color-ink-2: oklch(29% 0.028 214);
  --color-muted: oklch(46% 0.025 210);
  --color-neutral: oklch(60% 0.018 210);
  --color-rule: oklch(86% 0.012 205);
  --color-rule-strong: oklch(72% 0.025 205);
  --color-accent: oklch(50% 0.12 192);
  --color-accent-bright: oklch(78% 0.13 192);
  --color-accent-dark: oklch(37% 0.095 192);
  --color-accent-soft: oklch(94% 0.035 192);
  --color-accent-ink: oklch(99% 0.004 205);
  --color-focus: oklch(43% 0.15 245);
  --color-nav: oklch(18% 0.028 214);
  --color-nav-raised: oklch(24% 0.035 210);
  --color-nav-text: oklch(94% 0.01 205);
  --color-nav-muted: oklch(71% 0.02 205);
  --color-ready: oklch(42% 0.11 172);
  --color-ready-bg: oklch(94% 0.035 172);
  --color-warning: oklch(47% 0.12 75);
  --color-warning-bg: oklch(95% 0.04 75);
  --color-risk: oklch(46% 0.14 28);
  --color-risk-bg: oklch(95% 0.035 28);
  --color-info: oklch(45% 0.12 245);
  --color-info-bg: oklch(95% 0.025 245);
  --color-stage-prehospital: oklch(42% 0.1 172);
  --color-stage-prehospital-bg: oklch(96% 0.025 172);
  --color-stage-emergency: oklch(44% 0.115 245);
  --color-stage-emergency-bg: oklch(96% 0.022 245);
  --color-stage-inpatient: oklch(44% 0.105 72);
  --color-stage-inpatient-bg: oklch(96% 0.03 72);
  --color-stage-ai: oklch(43% 0.115 305);
  --color-stage-ai-bg: oklch(96% 0.025 305);
  --color-overlay: oklch(13% 0.02 214 / 0.58);
  --color-shadow: oklch(20% 0.02 214 / 0.08);
  --color-transparent: transparent;

  --font-display: Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --font-body: "Noto Sans KR", "Apple SD Gothic Neo", Pretendard, sans-serif;
  --font-mono: "SFMono-Regular", Menlo, Monaco, monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.25rem;
  --text-lg: 1.5625rem;
  --text-xl: 1.953rem;
  --text-2xl: 2.441rem;
  --text-display: clamp(2rem, 4vw, 3.5rem);

  --space-3xs: 0.125rem;
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms;
  --dur-short: 220ms;
  --dur-long: 420ms;

  --rule-thin: 1px;
  --rule-stage: 4px;
  --focus-ring-width: 2px;
  --radius-xs: 0.375rem;
  --radius-sm: 0.625rem;
  --radius-md: 0.875rem;
  --radius-lg: 1.25rem;
  --radius-pill: 999px;
  --control-height: 2.75rem;
  --control-height-touch: 3rem;
  --content-max: 76rem;
  --content-measure: 65ch;
  --shadow-whisper: 0 1px 2px var(--color-shadow);

  --z-base: 1;
  --z-raised: 10;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal: 400;
  --z-toast: 500;
  --z-tooltip: 600;
}
