/* Design tokens + the small subset of the dashboard kit used by this app. */
:root {
  --ink-0: #FFFFFF;
  --ink-25: #FAFAF8;
  --ink-50: #F5F4F0;
  --ink-100: #EFEDE7;
  --ink-200: #E8E6E1;
  --ink-300: #D6D3CC;
  --ink-400: #A8A29E;
  --ink-500: #78716C;
  --ink-600: #57534E;
  --ink-700: #3F3D3A;
  --ink-800: #292724;
  --ink-900: #1A1A17;

  --brand-50: #EEF2FF;
  --brand-100: #DCE3FB;
  --brand-200: #B9C7F7;
  --brand-300: #8FA4F0;
  --brand-400: #6580E6;
  --brand-500: #3B5BDB;
  --brand-600: #2F4BC7;
  --brand-700: #243BA8;
  --brand-800: #1B2D85;
  --brand-900: #14215F;

  --success-50: #ECFDF5;
  --success-500: #0F8A5E;
  --success-600: #0A7A52;
  --success-700: #0A6B48;
  --warn-50: #FEF7EC;
  --warn-500: #B86E16;
  --warn-600: #9A5B10;
  --warn-700: #8A5210;
  --danger-50: #FEF2F2;
  --danger-500: #B42318;
  --danger-600: #B42318;
  --danger-700: #912018;
  --info-50: #EEF6FB;
  --info-500: #1F6FA8;
  --info-600: #1F6FA8;
  --info-700: #175682;

  --viz-1: #3B5BDB;
  --viz-2: #C2410C;
  --viz-3: #1EA381;
  --viz-4: #A44393;
  --viz-5: #B79332;
  --viz-6: #444B58;

  --font-sans: 'Inter var', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-serif: 'Tiempos Text', 'Source Serif Pro', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

  --r-xs: 2px; --r-sm: 4px; --r-md: 6px; --r-lg: 8px; --r-pill: 999px;
  --h-sm: 28px; --h-md: 34px; --h-badge: 22px;

  --dur-1: 120ms; --dur-2: 200ms;
  --ease: cubic-bezier(.2, 0, 0, 1);
  --z-sticky: 10; --z-overlay: 1000; --z-menu: 1050; --z-toast: 1100;

  --shadow-card: 0 1px 2px rgba(26,26,23,0.04), 0 0 0 1px rgba(26,26,23,0.06);
  --shadow-flat: 0 0 0 1px rgba(26,26,23,0.06);
  --shadow-pop: 0 4px 12px rgba(26,26,23,0.06), 0 0 0 1px rgba(26,26,23,0.08);
  --shadow-focus: 0 0 0 3px rgba(59,91,219,0.18);
  --grid-line: color-mix(in srgb, #1A1A17 30%, #FFFFFF);
  --gs-fill: #F5F4F0;
  --gs-fill-2: #EFEDE7;
}

.num, .num * { font-variant-numeric: tabular-nums; font-feature-settings: "tnum", "cv11"; }
.t-h1 { font-size: 32px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 500; color: var(--ink-900); }
.t-small { font-size: 12.5px; line-height: 1.5; font-weight: 400; color: var(--ink-500); }

.gs-card, .card { background: var(--ink-0); border-radius: 8px; box-shadow: var(--shadow-card); padding: var(--s-5); }

.gs-kpis { display: grid; gap: 16px; margin-bottom: 24px; grid-template-columns: repeat(var(--gs-kpi-cols, 4), minmax(0, 1fr)); }
.gs-kpi { display: flex; flex-direction: column; gap: 12px; }
.gs-kpi .num.good { color: var(--success-500); }
.gs-kpi .num.alert { color: var(--danger-500); }
.gs-kpi .t-h1 { font-size: 26px; }
.gs-kpi-sub { color: var(--ink-400); margin-top: 2px; }
.gs-empty { display: flex; align-items: center; justify-content: center; min-height: 150px; color: var(--ink-400); font-size: 13px; }
.gs-empty[hidden] { display: none; }
@media (max-width: 1000px) { .gs-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .gs-kpis { grid-template-columns: 1fr; } }
