:root {
  /* Palette — WCAG 2.1 AA (>= 4.5:1 text contrast) */
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-alt: #eef2f7;
  --border: #d0d7e2;
  --border-strong: #9aa7b8;

  --text: #102030;
  --text-muted: #425466;
  --text-inverse: #ffffff;

  --primary: #0f4c81;
  --primary-hover: #0b3a63;
  --primary-soft: #e6f0fa;

  --danger: #b42318;
  --danger-bg: #fef3f2;
  --danger-border: #fecdca;

  --warning: #9a3412;
  --warning-bg: #fff7ed;
  --warning-border: #fed7aa;

  --info: #1d4ed8;
  --info-bg: #eff6ff;
  --info-border: #bfdbfe;

  --success: #065f46;
  --success-bg: #ecfdf5;
  --success-border: #a7f3d0;

  /* Acuity tokens (always paired with icon + text label) */
  --acuity-emergency-bg: #b42318;
  --acuity-emergency-fg: #ffffff;
  --acuity-sameday-bg: #b45309;
  --acuity-sameday-fg: #ffffff;
  --acuity-urgent-bg: #1d4ed8;
  --acuity-urgent-fg: #ffffff;
  --acuity-routine-bg: #047857;
  --acuity-routine-fg: #ffffff;

  /* Typography */
  --font-sans: "Segoe UI", -apple-system, BlinkMacSystemFont, "Inter", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Radii & Shadows */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(16, 32, 48, 0.06);
  --shadow-md: 0 6px 20px rgba(16, 32, 48, 0.12);

  /* Spacing */
  --banner-height: 40px;
  --sidebar-width: 248px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}
