:root {
  --background: 44 55% 96%;
  --foreground: 154 31% 13%;
  --primary: 354 72% 42%;
  --primary-foreground: 0 0% 100%;
  --secondary: 154 52% 20%;
  --secondary-foreground: 0 0% 100%;
  --muted: 43 30% 88%;
  --muted-foreground: 154 14% 34%;
  --destructive: 0 78% 48%;
  --destructive-foreground: 0 0% 100%;
  --border: 42 28% 80%;
  --card: 0 0% 100%;
  --card-foreground: 154 31% 13%;
  --accent: 42 88% 58%;
  --accent-foreground: 154 31% 13%;
  --shadow-sm: 0 2px 10px rgba(22, 55, 39, 0.08);
  --shadow-md: 0 12px 28px rgba(22, 55, 39, 0.13);
  --shadow-lg: 0 24px 60px rgba(22, 55, 39, 0.18);
  --transition-fast: 150ms ease;
  --transition-smooth: 260ms cubic-bezier(.2,.8,.2,1);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
}
.dark {
  --background: 154 32% 8%;
  --foreground: 44 55% 94%;
  --primary: 354 72% 56%;
  --primary-foreground: 0 0% 100%;
  --secondary: 154 42% 28%;
  --secondary-foreground: 0 0% 100%;
  --muted: 154 18% 16%;
  --muted-foreground: 43 18% 76%;
  --destructive: 0 72% 54%;
  --destructive-foreground: 0 0% 100%;
  --border: 154 18% 24%;
  --card: 154 27% 12%;
  --card-foreground: 44 55% 94%;
  --accent: 42 82% 58%;
  --accent-foreground: 154 31% 10%;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, hsl(var(--primary) / .18), transparent 34rem),
    radial-gradient(circle at bottom right, hsl(var(--secondary) / .16), transparent 32rem),
    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); }
.focus-ring:focus-visible { outline: 3px solid hsl(var(--accent)); outline-offset: 3px; }
.safe-bottom { padding-bottom: calc(0.85rem + env(safe-area-inset-bottom)); }
.safe-top { padding-top: env(safe-area-inset-top); }
.card-glow { box-shadow: var(--shadow-md); }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.sop-paper {
  background: linear-gradient(135deg, hsl(var(--card)), hsl(var(--muted) / .35));
}
@media print {
  .no-print { display: none !important; }
  body { background: white; }
}