:root {
  color-scheme: dark;
  --color-base: #0b0c0e;
  --color-surface: #141619;
  --color-elevated: #1b1e22;
  --color-subtle: #202328;
  --color-border: #2a2d31;
  --color-border-strong: #393d43;
  --color-text: #ecedee;
  --color-text-secondary: #a0a4a8;
  --color-text-muted: #70757b;
  --color-accent: #21c7c7;
  --color-accent-hover: #3dd6d6;
  --color-accent-soft: rgba(33, 199, 199, .1);
  --color-success: #3fb950;
  --color-warning: #d29922;
  --color-danger: #f85149;
  --color-info: #58a6ff;
  --font-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-overlay: 0 18px 50px rgba(0, 0, 0, .36);
  --transition: 160ms ease-out;
}

[data-theme="light"] {
  color-scheme: light;
  --color-base: #ffffff;
  --color-surface: #f6f7f8;
  --color-elevated: #ffffff;
  --color-subtle: #eef0f2;
  --color-border: #e3e5e8;
  --color-border-strong: #cfd3d7;
  --color-text: #1a1c1e;
  --color-text-secondary: #5a5f64;
  --color-text-muted: #777d83;
  --color-accent: #087f80;
  --color-accent-hover: #066d6e;
  --color-accent-soft: rgba(8, 127, 128, .09);
  --color-success: #22863a;
  --color-warning: #9a6700;
  --color-danger: #cf222e;
  --color-info: #0969da;
  --shadow-overlay: 0 18px 50px rgba(22, 28, 34, .18);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--color-base); color: var(--color-text); font-family: var(--font-sans); font-size: 14px; line-height: 1.5; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(24px, 3vw, 32px); line-height: 1.25; letter-spacing: -.035em; }
h2 { font-size: 18px; line-height: 1.45; letter-spacing: -.018em; }
h3 { font-size: 15px; line-height: 1.4; }
code, kbd { font-family: var(--font-mono); }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -50px; z-index: 100; padding: 10px 14px; border-radius: var(--radius-md); background: var(--color-accent); color: #071111; font-weight: 700; transition: top var(--transition); }
.skip-link:focus { top: 16px; }

.button, .icon-button, .text-button, .command-trigger {
  border: 0; cursor: pointer; transition: color var(--transition), background var(--transition), border-color var(--transition), transform var(--transition);
}
.button { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; gap: 8px; padding: 8px 14px; border: 1px solid transparent; border-radius: var(--radius-md); font-weight: 600; }
.button:active, .icon-button:active { transform: translateY(1px); }
.button--primary { background: var(--color-accent); color: #071111; }
.button--primary:hover { background: var(--color-accent-hover); }
[data-theme="light"] .button--primary { color: #fff; }
.button--secondary { background: var(--color-elevated); border-color: var(--color-border); color: var(--color-text); }
.button--secondary:hover { background: var(--color-subtle); border-color: var(--color-border-strong); }
.button--ghost { background: transparent; border-color: var(--color-border); color: var(--color-text-secondary); }
.button--full { width: 100%; }
.icon-button { display: inline-grid; width: 36px; height: 36px; place-items: center; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: transparent; color: var(--color-text-secondary); }
.icon-button:hover { background: var(--color-subtle); color: var(--color-text); }
.icon-button--small { width: 30px; height: 30px; }
.text-button { padding: 0; background: transparent; color: var(--color-text-secondary); font-weight: 500; }
.text-button:hover { color: var(--color-accent); }
.text-button span { margin-left: 5px; }

.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--color-text-muted); }
.status-dot--success { background: var(--color-success); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-success) 13%, transparent); }
.status-dot--warning { background: var(--color-warning); }
.status-dot--quiet { background: var(--color-text-muted); }
.status-badge { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 3px 8px; border: 1px solid var(--color-border); border-radius: 999px; color: var(--color-text-secondary); font-size: 12px; font-weight: 500; }
.status-badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-badge--success { color: var(--color-success); background: color-mix(in srgb, var(--color-success) 7%, transparent); }
.status-badge--neutral { color: var(--color-text-muted); }
.eyebrow { margin-bottom: 6px; color: var(--color-text-muted); font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.eyebrow--accent { color: var(--color-accent); }
.panel { border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); }
.panel__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 16px; border-bottom: 1px solid var(--color-border); }
.panel__head h2 { margin-bottom: 2px; }
.panel__head p { margin: 0; color: var(--color-text-muted); font-size: 12px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
