:root {
  color-scheme: light dark;
  --bg: #f6f7f9;
  --card: #ffffff;
  --text: #1d2125;
  --muted: #5b636b;
  --border: #d9dde2;
  --accent: #1f6feb;
  --accent-text: #ffffff;
  --warn-bg: #fff4d6;
  --warn-text: #5c4400;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111418;
    --card: #1b1f24;
    --text: #e6e8eb;
    --muted: #a1a8b0;
    --border: #333a42;
    --accent: #4c8dff;
    --accent-text: #0b0d10;
    --warn-bg: #3a2f10;
    --warn-text: #ffe08a;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
main {
  width: 100%;
  max-width: 26rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}
h1 { font-size: 1.35rem; margin: 0 0 0.75rem; }
p { margin: 0 0 1rem; }
.muted { color: var(--muted); font-size: 0.925rem; }
.warn {
  background: var(--warn-bg);
  color: var(--warn-text);
  border-radius: 8px;
  padding: 0.75rem;
}
form { margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
button, .button {
  appearance: none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font: inherit;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  min-height: 44px;
}
button.primary, .button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
}
button.wide { width: 100%; }
button:focus-visible, .button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
code { font-size: 0.9em; word-break: break-all; }
