:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f3f4f6;
  --surface-raised: #e5e7eb;
  --border: #9ca3af;
  --text: #121212;
  --body-text: #374151;
  --muted: #4b5563;
  --faint: #6b7280;
  --brand: #d7ff45;
  --focus: #536600;
  --success: #166534;
  --danger: #b91c1c;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e1116;
  --surface: #121212;
  --surface-raised: #181818;
  --border: #4a4a4a;
  --text: #ffffff;
  --body-text: #d8d8d8;
  --muted: #a0a6b0;
  --faint: #8b929e;
  --focus: #d7ff45;
  --success: #86efac;
  --danger: #fca5a5;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #0e1116;
    --surface: #121212;
    --surface-raised: #181818;
    --border: #4a4a4a;
    --text: #ffffff;
    --body-text: #d8d8d8;
    --muted: #a0a6b0;
    --faint: #8b929e;
    --focus: #d7ff45;
    --success: #86efac;
    --danger: #fca5a5;
  }
}

.theme-picker {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 7px 5px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1;
  margin: 0;
}

.theme-picker select {
  width: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.theme-picker select:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.brand-mark {
  display: block;
  flex: none;
}
