:root {
  --background: 190 38% 97%;
  --foreground: 205 42% 14%;
  --primary: 194 88% 37%;
  --primary-foreground: 0 0% 100%;
  --secondary: 154 64% 41%;
  --secondary-foreground: 0 0% 100%;
  --muted: 193 22% 89%;
  --muted-foreground: 203 20% 39%;
  --destructive: 356 78% 54%;
  --destructive-foreground: 0 0% 100%;
  --border: 193 23% 82%;
  --card: 0 0% 100%;
  --shadow-sm: 0 8px 22px rgba(11, 78, 102, 0.08);
  --shadow-md: 0 16px 42px rgba(11, 78, 102, 0.13);
  --shadow-lg: 0 24px 70px rgba(11, 78, 102, 0.18);
  --transition-fast: 140ms ease;
  --transition-smooth: 240ms cubic-bezier(.2,.8,.2,1);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
}
.dark {
  --background: 204 42% 8%;
  --foreground: 190 35% 96%;
  --primary: 191 86% 48%;
  --primary-foreground: 205 42% 8%;
  --secondary: 151 67% 47%;
  --secondary-foreground: 205 42% 8%;
  --muted: 204 28% 18%;
  --muted-foreground: 194 20% 72%;
  --destructive: 356 78% 61%;
  --destructive-foreground: 0 0% 100%;
  --border: 203 25% 24%;
  --card: 204 34% 12%;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
input, select, textarea { font-size: max(16px, 1rem); }
.bg-1 { background: hsl(var(--background)); }
.bg-2 { background: hsl(var(--card)); }
.bg-3 { background: hsl(var(--muted)); }
.bg-4 { background: linear-gradient(135deg, hsl(var(--primary) / .12), hsl(var(--secondary) / .14)); }
.text-primary { color: hsl(var(--foreground)); }
.text-secondary { color: hsl(var(--muted-foreground)); }
.text-tertiary { color: hsl(var(--muted-foreground) / .78); }
.accent { color: hsl(var(--primary)); }
.health-gradient { background: radial-gradient(circle at top left, hsl(var(--secondary) / .22), transparent 32%), linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary))); }
.card-glow { box-shadow: var(--shadow-md); }
.safe-bottom { padding-bottom: calc(0.75rem + env(safe-area-inset-bottom)); }
.safe-top { padding-top: env(safe-area-inset-top); }
