/* Design tokens and base styles shared by the whole dashboard. */
:root {
  --color-bg: #f6f7f9;
  --color-surface: #ffffff;
  --color-text: #1b1f24;
  --color-muted: #5b6570;
  --color-border: #d9dee3;
  --color-accent: #3b5bdb;
  --color-accent-text: #ffffff;
  --color-danger: #c92a2a;
  --color-success: #2b8a3e;
  --color-warning: #b35c00;
  --color-notice-bg: #e7f0ff;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.25rem;
  --text-xl: 1.75rem;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --radius: 8px;
  --content-width: 72rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-family: var(--font-sans);
  font-size: 100%;
  color: var(--color-text);
  background: var(--color-bg);
}

body {
  margin: 0;
  line-height: 1.5;
}

h1,
h2,
h3 {
  line-height: 1.25;
  margin: 0 0 var(--space-3);
}

h1 {
  font-size: var(--text-xl);
}

h2 {
  font-size: var(--text-lg);
}

h3 {
  font-size: var(--text-base);
}

h1:focus {
  outline: none;
}

a {
  color: var(--color-accent);
}

code,
pre {
  font-family: var(--font-mono);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
  border: 1px solid var(--color-accent);
  background: var(--color-accent);
  color: var(--color-accent-text);
  border-radius: var(--radius);
  padding: var(--space-2) var(--space-4);
}

button:disabled {
  opacity: 0.6;
  cursor: progress;
}

input,
select {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-2) var(--space-3);
  background: var(--color-surface);
  color: var(--color-text);
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.app {
  min-height: 100vh;
}
