:root {
  color-scheme: light;
  --background: #f4f8fc;
  --foreground: #2f2f2f;
  --muted: #e8f1fa;
  --muted-foreground: #5a6570;
  --card: #ffffff;
  --card-foreground: #2f2f2f;
  --popover: #ffffff;
  --popover-foreground: #2f2f2f;
  --secondary: #e8f1fa;
  --secondary-foreground: #2f2f2f;
  --border: #d5e3f0;
  --ring: #0960c5;
  --primary: #ffd954;
  --primary-foreground: #111111;
  --accent: #e8f1fa;
  --accent-foreground: #0960c5;
  --destructive: #fde8e6;
  --destructive-foreground: #b42318;
  --success: #e8f6ec;
  --success-foreground: #067647;
  --warning: #fff6d6;
  --warning-foreground: #7a5c00;
  --chart-1: #0960c5;
  --chart-2: #ffd954;
  --chart-3: #34a853;
  --chart-4: #5a6570;
  --chart-5: #e85d04;
  --radius: 0.75rem;
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
:root.dark {
  color-scheme: light;
  --background: #f4f8fc;
  --foreground: #2f2f2f;
  --muted: #e8f1fa;
  --muted-foreground: #5a6570;
  --card: #ffffff;
  --card-foreground: #2f2f2f;
  --border: #d5e3f0;
  --ring: #0960c5;
  --primary: #ffd954;
  --primary-foreground: #111111;
  --accent: #e8f1fa;
  --accent-foreground: #0960c5;
}
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body { margin: 0; }
a { color: var(--accent-foreground); }
hr { border: 0; border-top: 1px solid var(--border); }
.muted { color: var(--muted-foreground); }
.card {
  background: var(--card);
  color: var(--card-foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 0.75rem;
}
.table-wrapper { overflow-x: auto; }
img, video, svg { max-width: 100%; height: auto; }
