/* Design tokens shared by the login page and the dashboard. Public (no data). */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --bg: #f5f5f3;
  --bg-tint: #eceae5;
  --surface: #ffffff;
  --surface-2: #f3f2ef;
  --surface-3: #e9e8e4;
  --border: #e3e2dd;
  --border-strong: #cfcdc6;
  --text: #0e0e0d;
  --text-2: #4f4e4a;
  --muted: #7a7974;
  --grid: #ebeae6;
  --accent: #2a78d6;
  --accent-hover: #1c5cab;
  --accent-ink: #1c5cab;
  --accent-soft: #e3eefb;
  --on-accent: #ffffff;
  --focus: #2a78d6;
  --series-1: #2a78d6;
  --series-1-soft: #86b6ef;
  --series-2: #eb6834;
  --ramp-1: #184f95;
  --ramp-2: #256abf;
  --ramp-3: #3987e5;
  --ramp-4: #6da7ec;
  --ramp-5: #86b6ef;
  --good: #0a7d0a;
  --good-soft: #e4f4e4;
  --critical: #c53030;
  --critical-soft: #fbe9e9;
  --warning: #9a6700;
  --shadow-sm: 0 1px 2px rgba(15, 15, 10, .05);
  --shadow: 0 1px 2px rgba(15, 15, 10, .04), 0 2px 8px rgba(15, 15, 10, .04);
  --shadow-lg: 0 1px 2px rgba(15, 15, 10, .05), 0 12px 40px rgba(15, 15, 10, .10);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0f0f0e;
    --bg-tint: #171716;
    --surface: #191918;
    --surface-2: #212120;
    --surface-3: #2a2a28;
    --border: #2c2c2a;
    --border-strong: #3a3a37;
    --text: #f5f5f3;
    --text-2: #c3c2b7;
    --muted: #8f8e86;
    --grid: #262624;
    --accent: #3987e5;
    --accent-hover: #5598e7;
    --accent-ink: #86b6ef;
    --accent-soft: #15253a;
    --on-accent: #ffffff;
    --focus: #6da7ec;
    --series-1: #3987e5;
    --series-1-soft: #256abf;
    --series-2: #d95926;
    --ramp-1: #86b6ef;
    --ramp-2: #6da7ec;
    --ramp-3: #3987e5;
    --ramp-4: #256abf;
    --ramp-5: #184f95;
    --good: #3cc23c;
    --good-soft: #12301a;
    --critical: #ef6b6b;
    --critical-soft: #3a1818;
    --warning: #fab219;
    --shadow-sm: none;
    --shadow: none;
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, .45);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f0f0e;
  --bg-tint: #171716;
  --surface: #191918;
  --surface-2: #212120;
  --surface-3: #2a2a28;
  --border: #2c2c2a;
  --border-strong: #3a3a37;
  --text: #f5f5f3;
  --text-2: #c3c2b7;
  --muted: #8f8e86;
  --grid: #262624;
  --accent: #3987e5;
  --accent-hover: #5598e7;
  --accent-ink: #86b6ef;
  --accent-soft: #15253a;
  --on-accent: #ffffff;
  --focus: #6da7ec;
  --series-1: #3987e5;
  --series-1-soft: #256abf;
  --series-2: #d95926;
  --ramp-1: #86b6ef;
  --ramp-2: #6da7ec;
  --ramp-3: #3987e5;
  --ramp-4: #256abf;
  --ramp-5: #184f95;
  --good: #3cc23c;
  --good-soft: #12301a;
  --critical: #ef6b6b;
  --critical-soft: #3a1818;
  --warning: #fab219;
  --shadow-sm: none;
  --shadow: none;
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 var(--font);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.logo { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--accent); flex: none; }
.logo svg { width: 18px; height: 18px; fill: #fff; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font-weight: 500; cursor: pointer; white-space: nowrap;
  transition: background-color .12s, border-color .12s, color .12s;
}
.btn:hover { background: var(--surface-2); border-color: var(--border-strong); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn:disabled { opacity: .7; cursor: progress; }
.btn svg { width: 16px; height: 16px; flex: none; }
.icon-btn {
  display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none;
  border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface);
  color: var(--text-2); cursor: pointer; transition: background-color .12s, color .12s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* Theme toggle: show the moon in light mode, the sun in dark mode. */
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
}

.spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition: none !important; scroll-behavior: auto !important; }
}
