:root {
  --background: 222 47% 97%;
  --foreground: 224 42% 12%;
  --primary: 200 60% 49%;
  --primary-foreground: 0 0% 100%;
  --secondary: 188 86% 43%;
  --secondary-foreground: 0 0% 100%;
  --muted: 226 35% 91%;
  --muted-foreground: 224 16% 43%;
  --destructive: 348 78% 50%;
  --destructive-foreground: 0 0% 100%;
  --border: 226 24% 82%;
  --card: 0 0% 100%;
  --shadow-sm: 0 2px 10px rgba(30, 41, 89, 0.07);
  --shadow-md: 0 14px 35px rgba(30, 41, 89, 0.12);
  --shadow-lg: 0 25px 70px rgba(30, 41, 89, 0.2);
  --transition-fast: 150ms ease;
  --transition-smooth: 280ms cubic-bezier(.2,.8,.2,1);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
}

.dark {
  --background: 226 45% 8%;
  --foreground: 222 47% 97%;
  --primary: 200 60% 49%;
  --primary-foreground: 0 0% 100%;
  --secondary: 188 86% 52%;
  --secondary-foreground: 226 45% 8%;
  --muted: 226 27% 17%;
  --muted-foreground: 222 20% 74%;
  --destructive: 348 86% 62%;
  --destructive-foreground: 0 0% 100%;
  --border: 226 20% 26%;
  --card: 226 36% 13%;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, hsl(var(--primary) / 0.18), transparent 34rem),
    radial-gradient(circle at bottom right, hsl(var(--secondary) / 0.18), transparent 30rem),
    hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }

.focus-ring:focus-visible {
  outline: 3px solid hsl(var(--primary) / 0.35);
  outline-offset: 2px;
}

.card-lift {
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}
.card-lift:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.skeleton {
  background: linear-gradient(90deg, hsl(var(--muted)), hsl(var(--muted) / 0.55), hsl(var(--muted)));
  background-size: 240% 100%;
  animation: pulse-sweep 1.4s infinite;
}
@keyframes pulse-sweep {
  0% { background-position: 220% 0; }
  100% { background-position: -220% 0; }
}

.table-wrap { overflow-x: auto; }
.table-wrap table { min-width: 760px; }

@media print {
  .no-print { display: none !important; }
  body { background: white; }
}