:root {
  color-scheme: dark;
  --bg: #0b0f14;
  --surface: #111821;
  --surface-2: #17212d;
  --field-bg: #0f1620;
  --topbar-bg: rgba(11, 15, 20, .94);
  --nav-bg: rgba(15, 23, 32, .98);
  --line: #253242;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --primary: #3b82f6;
  --primary-strong: #2563eb;
  --danger: #fb7185;
  --warning: #f59e0b;
  --success: #22c55e;
  --info: #60a5fa;
  --radius: 8px;
  --shadow: 0 18px 60px rgba(0, 0, 0, .28);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #eef4fb;
  --field-bg: #ffffff;
  --topbar-bg: rgba(255, 255, 255, .94);
  --nav-bg: rgba(255, 255, 255, .98);
  --line: #cbd8e6;
  --text: #101828;
  --muted: #52657a;
  --primary: #2563eb;
  --primary-strong: #1d4ed8;
  --danger: #e11d48;
  --warning: #b45309;
  --success: #15803d;
  --info: #2563eb;
  --shadow: 0 14px 42px rgba(15, 23, 42, .10);
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  letter-spacing: 0;
}

a { color: inherit; text-decoration: none; }

button, input, select, textarea {
  font: inherit;
}

button { cursor: pointer; }

h1, h2, h3, p { margin-top: 0; }

code {
  background: var(--field-bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 5px;
}

.center-screen {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  text-align: center;
}

.small { font-size: .85rem; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
