:root {
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --background: 222 47% 97%;
  --foreground: 224 38% 10%;
  --card: 0 0% 100%;
  --card-foreground: 224 38% 10%;
  --popover: 0 0% 100%;
  --popover-foreground: 224 38% 10%;
  --primary: 263 86% 56%;
  --primary-foreground: 0 0% 100%;
  --secondary: 220 24% 92%;
  --secondary-foreground: 224 38% 12%;
  --muted: 220 22% 92%;
  --muted-foreground: 224 13% 38%;
  --accent: 188 94% 39%;
  --accent-foreground: 0 0% 100%;
  --destructive: 0 72% 48%;
  --destructive-foreground: 0 0% 100%;
  --success: 151 67% 35%;
  --success-foreground: 0 0% 100%;
  --warning: 38 92% 43%;
  --warning-foreground: 224 38% 10%;
  --info: 214 85% 48%;
  --info-foreground: 0 0% 100%;
  --border: 222 20% 84%;
  --input: 222 20% 84%;
  --ring: 263 86% 56%;
  --radius: 0.625rem;
  --shadow-sm: 0 1px 2px hsl(var(--foreground)/0.05);
  --shadow-md: 0 4px 12px hsl(var(--foreground)/0.08);
  --shadow-lg: 0 12px 32px hsl(var(--foreground)/0.12);
  --shadow-elegant: 0 24px 80px hsl(var(--primary)/0.22);
  --transition-fast: 150ms cubic-bezier(0.4,0,0.2,1);
  --transition: 200ms cubic-bezier(0.4,0,0.2,1);
  --transition-smooth: 300ms cubic-bezier(0.4,0,0.2,1);
}
.dark {
  --background: 224 38% 8%;
  --foreground: 220 30% 96%;
  --card: 224 34% 12%;
  --card-foreground: 220 30% 96%;
  --popover: 224 34% 12%;
  --popover-foreground: 220 30% 96%;
  --primary: 263 91% 68%;
  --primary-foreground: 224 38% 8%;
  --secondary: 224 24% 18%;
  --secondary-foreground: 220 30% 96%;
  --muted: 224 24% 18%;
  --muted-foreground: 220 14% 72%;
  --accent: 188 86% 50%;
  --accent-foreground: 224 38% 8%;
  --destructive: 0 70% 58%;
  --destructive-foreground: 0 0% 100%;
  --success: 151 62% 45%;
  --success-foreground: 224 38% 8%;
  --warning: 38 92% 55%;
  --warning-foreground: 224 38% 8%;
  --info: 214 90% 64%;
  --info-foreground: 224 38% 8%;
  --border: 224 22% 24%;
  --input: 224 22% 24%;
  --ring: 263 91% 68%;
}
* { box-sizing: border-box; }
html { font-family: var(--font-sans); background: hsl(var(--background)); color: hsl(var(--foreground)); }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at top left, hsl(var(--primary)/0.14), transparent 34rem), hsl(var(--background)); }
button, input, textarea, select { font: inherit; }
input, textarea, select { font-size: max(16px, 1rem); }
.code-textarea { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; tab-size: 2; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.safe-bottom { padding-bottom: calc(5rem + env(safe-area-inset-bottom)); }
@media (min-width: 768px) { .safe-bottom { padding-bottom: 0; } }