:root {
  --brand-forest: #1d2b1c;
  --brand-verde-original: #375439;
  --brand-verde-profundo: #112b23;
  --brand-white: #ffffff;
  --slate-500: #698486;
  --mulberry-500: #aa557f;
  --sage-100: #d8e5d7;
  --green-500: #52986d;
  --surface: #f2f6f0;
  --surface-sunken: #e8eee6;
  --surface-raised: #ffffff;
  --surface-tint: #d8e5d7;
  --surface-inverse: #1d2b1c;
  --surface-accent: #f7ecf2;
  --ink: #1d2b1c;
  --ink-muted: #526769;
  --ink-inverse: #ffffff;
  --ink-inverse-muted: #d8e5d7;
  --accent: #aa557f;
  --accent-hover: #95456d;
  --accent-text: #8e3f67;
  --on-accent: #ffffff;
  --positive: #3b7150;
  --positive-fill: #52986d;
  --attention: #85591b;
  --attention-fill: #c08b35;
  --critical: #9c3535;
  --critical-fill: #b34141;
  --border: #e2e9de;
  --border-strong: #698486;
  --focus-ring: #aa557f;
  --scrim: rgba(29,43,28,0.40);
  --glass: rgba(255,255,255,0.72);
  --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;
  --space-24: 96px;
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --radius-2xl: 36px;
  --radius-full: 999px;
  --radius-screen: 44px;
  --tap-min: 44px;
  --control-sm: 32px;
  --control-md: 40px;
  --control-lg: 50px;
  --icon-sm: 16px;
  --icon-md: 20px;
  --icon-lg: 28px;
  --sidebar-w: 272px;
  --content-max: 1120px;
  --reading-max: 680px;
  --shadow-sm: 0 1px 2px rgba(29,43,28,0.06), 0 1px 1px rgba(29,43,28,0.04);
  --shadow-md: 0 4px 14px rgba(29,43,28,0.08), 0 1px 2px rgba(29,43,28,0.05);
  --shadow-lg: 0 14px 36px rgba(29,43,28,0.12), 0 2px 6px rgba(29,43,28,0.06);
  --shadow-bar: 0 -1px 0 rgba(29,43,28,0.08);
  --dur-press: 120ms;
  --dur-micro: 160ms;
  --dur-menu: 240ms;
  --dur-surface: 320ms;
  --dur-sheet: 400ms;
  --dur-reveal: 300ms;
  --dur-stagger: 80ms;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.6, 1);
  --ease-sheet: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-linear: linear;
  --font-display: "Poiret One", "Century Gothic", "Avenir Next", sans-serif;
  --font-sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-editorial: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-system: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;
}

/* Tema Noite (modo escuro): só o portal e o app. O site institucional usa só o tema Clínica (modo claro). */

:root[data-theme="dark"] {
  --surface: #141b13;
  --surface-sunken: #0d120c;
  --surface-raised: #1d2b1c;
  --surface-tint: #233020;
  --surface-inverse: #d8e5d7;
  --surface-accent: #2d1f27;
  --ink: #eef3ec;
  --ink-muted: #a8bcb4;
  --ink-inverse: #1d2b1c;
  --ink-inverse-muted: #46603f;
  --accent: #c97ba1;
  --accent-hover: #d691b2;
  --accent-text: #e3a6c1;
  --on-accent: #1d2b1c;
  --positive: #7fc397;
  --attention: #e3b169;
  --critical: #f0918d;
  --border: #2b3a29;
  --border-strong: #66837c;
  --focus-ring: #e3a6c1;
  --scrim: rgba(4,8,4,0.60);
  --glass: rgba(29,43,28,0.66);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.50);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.55);
  --shadow-lg: 0 14px 36px rgba(0,0,0,0.65);
  --shadow-bar: 0 -1px 0 rgba(255,255,255,0.10);
}
