:root {
  --background: 44 45% 97%;
  --foreground: 152 38% 12%;
  --primary: 152 52% 25%;
  --primary-foreground: 0 0% 100%;
  --secondary: 43 70% 54%;
  --secondary-foreground: 152 38% 12%;
  --muted: 42 28% 90%;
  --muted-foreground: 152 14% 38%;
  --destructive: 2 67% 45%;
  --destructive-foreground: 0 0% 100%;
  --border: 43 28% 80%;
  --card: 0 0% 100%;
  --shadow-sm: 0 2px 10px hsl(152 38% 12% / 0.06);
  --shadow-md: 0 10px 30px hsl(152 38% 12% / 0.10);
  --shadow-lg: 0 24px 70px hsl(152 38% 12% / 0.16);
  --transition-fast: 160ms ease;
  --transition-smooth: 280ms cubic-bezier(.2,.8,.2,1);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
}
.dark {
  --background: 152 35% 8%;
  --foreground: 43 32% 94%;
  --primary: 150 42% 48%;
  --primary-foreground: 152 35% 8%;
  --secondary: 43 70% 58%;
  --secondary-foreground: 152 35% 8%;
  --muted: 152 20% 16%;
  --muted-foreground: 43 16% 74%;
  --destructive: 2 62% 52%;
  --destructive-foreground: 0 0% 100%;
  --border: 152 18% 24%;
  --card: 152 28% 11%;
}
* { 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 { transition: var(--transition-fast); }
input, select, textarea { font-size: max(16px, 1rem); }
button, .tap-target { min-height: 44px; }
.pattern {
  background-image: radial-gradient(circle at 20% 20%, hsl(var(--secondary) / 0.18), transparent 28%), radial-gradient(circle at 85% 15%, hsl(var(--primary) / 0.12), transparent 25%), linear-gradient(135deg, hsl(var(--card)), hsl(var(--muted) / 0.55));
}
.arch-card { position: relative; overflow: hidden; }
.arch-card:before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, hsl(var(--secondary) / .36), transparent 42%, hsl(var(--primary) / .18));
  pointer-events: none;
}
.focus-ring:focus { outline: 3px solid hsl(var(--secondary) / .55); outline-offset: 2px; }
genmb-video, genmb-audio { display: block; width: 100%; border-radius: var(--radius-md); overflow: hidden; background: hsl(var(--muted)); }
genmb-uploader { display: block; border-radius: var(--radius-md); overflow: hidden; }
.safe-bottom { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
@media (min-width: 768px) { .safe-bottom { padding-bottom: 0; } }