:root {
  color-scheme: light;
  /* shadcn v4 base-vega preset b6EqITFHZg, adopted from Ardana Data verbatim. */
  --background: oklch(1 0 0);
  --foreground: oklch(0.148 0.004 228.8);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.148 0.004 228.8);
  --primary: oklch(0.511 0.096 186.391);
  --primary-foreground: oklch(0.984 0.014 180.72);
  --secondary: oklch(0.967 0.001 286.375);
  --secondary-foreground: oklch(0.21 0.006 285.885);
  --muted: oklch(0.963 0.002 197.1);
  --muted-foreground: oklch(0.56 0.021 213.5);
  --accent: oklch(0.963 0.002 197.1);
  --accent-foreground: oklch(0.218 0.008 223.9);
  --destructive: oklch(0.577 0.245 27.325);
  --destructive-foreground: hsl(0 0% 100%);
  --destructive-soft: hsl(0 86% 97%);
  --destructive-border: hsl(0 92% 84%);
  --destructive-text: hsl(0 74% 42%);
  --success: hsl(150 48% 35%);
  --success-foreground: hsl(0 0% 100%);
  --success-soft: hsl(150 60% 92%);
  --success-border: hsl(150 45% 74%);
  --success-text: hsl(152 81% 22%);
  --warning: hsl(20 71% 44%);
  --warning-foreground: hsl(0 0% 100%);
  --warning-soft: hsl(32 100% 90%);
  --warning-border: hsl(32 85% 74%);
  --warning-text: hsl(26 92% 28%);
  --border: oklch(0.925 0.005 214.3);
  --input: oklch(0.925 0.005 214.3);
  --ring: oklch(0.723 0.014 214.4);
  --brand-navy: hsl(209 62% 16%);
  --brand-teal: hsl(181 47% 33%);
  --brand-slate: hsl(210 34% 30%);
  --brand-steel: hsl(210 22% 49%);
  --brand-gold: hsl(27 31% 55%);
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-heading: Manrope, Inter, ui-sans-serif, system-ui, sans-serif;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --radius: 0.625rem;
  --radius-sm: calc(var(--radius) - 2px);
  --radius-full: 9999px;
  --shadow-soft: 0 1px 2px rgb(0 0 0 / 0.05);
  --shadow-overlay: 0 24px 80px rgb(0 0 0 / 0.24);
  --duration-fast: 120ms;
  --ease-brand: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(circle at 10% 10%, color-mix(in srgb, var(--accent) 90%, transparent), transparent 32rem), var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
}

a {
  color: var(--primary);
  text-decoration: none;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: var(--space-8) 0;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-overlay);
  backdrop-filter: none;
}

.hero {
  padding: clamp(28px, 6vw, 72px);
}

.badge,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  background: var(--accent);
  color: var(--accent-foreground);
  font-size: 0.8rem;
  font-weight: 700;
}

h1, h2 {
  margin: 0;
  letter-spacing: -0.05em;
}

h1 {
  max-width: 820px;
  margin-top: 18px;
  font-size: clamp(2.5rem, 7vw, 5.75rem);
  line-height: 0.95;
  font-family: var(--font-heading);
}

h2 {
  margin-top: 12px;
  font-size: 1.35rem;
  font-family: var(--font-heading);
}

.lead, .module p, .checklist li {
  color: var(--muted-foreground);
  line-height: 1.7;
}

.lead {
  max-width: 720px;
  font-size: 1.15rem;
}

.actions, .grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 18px;
  background: var(--secondary);
  color: var(--secondary-foreground);
  font-weight: 700;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-brand), border-color var(--duration-fast) var(--ease-brand);
}

.button:hover { background: var(--accent); }
.button.primary:hover { background: color-mix(in srgb, var(--primary) 84%, #000); }
.button:focus-visible, a:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

.button.primary {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-foreground);
}

.button.destructive {
  border-color: var(--destructive);
  background: var(--destructive);
  color: var(--destructive-foreground);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 20px;
}

.module, .checklist {
  padding: var(--space-6);
}

.checklist {
  margin-top: 20px;
}

.detail-row {
  display: flex;
  gap: var(--space-4);
  align-items: baseline;
}

.detail-label {
  color: var(--muted-foreground);
  font-size: 0.85rem;
  min-width: 120px;
}

.detail-value {
  color: var(--foreground);
  font-weight: 500;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
}

.table-wrap th {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted-foreground);
  border-bottom: 1px solid var(--border);
  background: var(--muted);
}

.table-wrap td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
  color: var(--foreground);
}

.table-wrap tr:last-child td {
  border-bottom: 0;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  align-items: center;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
}

.status-badge.active,
.status-badge.success {
  background: var(--success-soft);
  color: var(--success-text);
}

.status-badge.warning {
  background: var(--warning-soft);
  color: var(--warning-text);
}

.status-badge.danger,
.status-badge.error {
  background: var(--destructive-soft);
  color: var(--destructive-text);
}

@media (prefers-reduced-motion: reduce) {
  body {
    background: var(--background);
  }
  .card {
    backdrop-filter: none;
  }
}

@media (max-width: 820px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: var(--space-6) var(--space-4);
  }
  h1 {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }
}

@media (max-width: 480px) {
  .shell {
    padding: var(--space-4) 0;
  }
  .actions {
    flex-direction: column;
  }
  .button {
    width: 100%;
  }
}
