:root {
  color-scheme: light dark;
  --bg: #f7f7f5;
  --surface: #ffffff;
  --border: #e3e3de;
  --text: #1a1a1c;
  --muted: #6a6a70;
  --accent: #2f5bd8;
  --ok: #17803d;
  --warn: #a15c07;
  --error: #b42318;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101012;
    --surface: #18181b;
    --border: #2b2b30;
    --text: #f2f2f3;
    --muted: #a0a0a8;
    --accent: #8aa8ff;
    --ok: #4ade80;
    --warn: #fbbf24;
    --error: #f87171;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  padding: 2rem 1rem 4rem;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
main { max-width: 60rem; margin: 0 auto; }
h1 { font-size: 1.4rem; margin: 0 0 0.25rem; }
h2 { font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.75rem; }
p { margin: 0 0 0.75rem; }
a { color: var(--accent); }
.lede { color: var(--muted); margin-bottom: 1.5rem; }
section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1rem;
}
dl { display: grid; grid-template-columns: 9rem 1fr; gap: 0.3rem 1rem; margin: 0; }
dt { color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; }
.ok { color: var(--ok); }
.warn { color: var(--warn); }
.error { color: var(--error); }
.row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
input[type="text"], textarea {
  font: 13px/1.5 var(--mono);
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.45rem 0.6rem;
}
textarea { width: 100%; min-height: 6rem; resize: vertical; margin-bottom: 0.5rem; }
button {
  font: inherit;
  color: var(--surface);
  background: var(--accent);
  border: 0;
  border-radius: 6px;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
}
button.quiet { color: var(--text); background: transparent; border: 1px solid var(--border); }
button:disabled { opacity: 0.5; cursor: default; }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font: 13px/1.45 var(--mono); }
th, td { text-align: left; padding: 0.3rem 0.6rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { color: var(--muted); font-weight: 600; }
.note { color: var(--muted); font-size: 0.9em; margin: 0.5rem 0 0; }
code { font: 13px var(--mono); }
ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain li { padding: 0.35rem 0; border-bottom: 1px solid var(--border); }
ul.plain li:last-child { border-bottom: 0; }
