:root {
  --background: 92 24% 96%;
  --foreground: 110 28% 13%;
  --primary: 88 18% 38%;
  --primary-foreground: 0 0% 100%;
  --secondary: 120 30% 20%;
  --secondary-foreground: 0 0% 100%;
  --muted: 88 18% 89%;
  --muted-foreground: 96 12% 34%;
  --destructive: 4 75% 48%;
  --destructive-foreground: 0 0% 100%;
  --border: 90 18% 82%;
  --card: 0 0% 100%;
  --card-foreground: 110 28% 13%;
  --sidebar: 77 18% 38%;
  --sidebar-foreground: 0 0% 100%;
  --sidebar-active: 0 0% 100%;
  --navbar-start: 120 70% 14%;
  --navbar-end: 120 61% 20%;
  --shadow-sm: 0 2px 8px hsl(110 28% 13% / 0.08);
  --shadow-md: 0 12px 28px hsl(110 28% 13% / 0.12);
  --shadow-lg: 0 22px 50px hsl(110 28% 13% / 0.18);
  --transition-fast: 150ms ease;
  --transition-smooth: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 0.5rem;
  --radius-md: 0.875rem;
  --radius-lg: 1.25rem;
}

.dark {
  --background: 108 25% 8%;
  --foreground: 92 24% 94%;
  --primary: 88 18% 46%;
  --primary-foreground: 0 0% 100%;
  --secondary: 120 36% 18%;
  --secondary-foreground: 0 0% 100%;
  --muted: 105 17% 16%;
  --muted-foreground: 92 12% 72%;
  --destructive: 4 70% 55%;
  --destructive-foreground: 0 0% 100%;
  --border: 102 16% 22%;
  --card: 105 20% 12%;
  --card-foreground: 92 24% 94%;
  --sidebar: 77 18% 32%;
  --sidebar-foreground: 0 0% 100%;
  --sidebar-active: 0 0% 100%;
  --navbar-start: 120 72% 10%;
  --navbar-end: 120 62% 16%;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: hsl(var(--background));
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, hsl(var(--primary) / 0.14), 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 {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid hsl(var(--primary) / 0.45);
  outline-offset: 3px;
}

.sidebar-scroll::-webkit-scrollbar {
  width: 8px;
}

.sidebar-scroll::-webkit-scrollbar-thumb {
  background: hsl(var(--sidebar-foreground) / 0.24);
  border-radius: 999px;
}

.safe-bottom {
  padding-bottom: env(safe-area-inset-bottom);
}