:root {
  --bg: #f6f7f9; --card: #fff; --fg: #14161a; --muted: #5b6270; --line: #d9dde3;
  --accent: #1f4fd8; --accent-fg: #fff; --err: #b3261e; --err-bg: #fdecea;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1114; --card: #181b20; --fg: #eceef2; --muted: #9aa2b1; --line: #2c313a;
    --accent: #7aa2ff; --accent-fg: #0b1020; --err: #ffb4ab; --err-bg: #3a1714;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; display: grid; place-items: center; padding: 16px;
  background: var(--bg); color: var(--fg);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
main { width: 100%; max-width: 400px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 28px 24px; }
h1 { font-size: 1.35rem; margin: 0 0 4px; }
p { margin: 0 0 16px; }
.muted { color: var(--muted); font-size: .9rem; }
form { display: grid; gap: 12px; margin: 0; }
label { font-size: .9rem; font-weight: 600; }
input[type=email], input[type=text] {
  width: 100%; padding: 12px; font: inherit; color: inherit; background: transparent;
  border: 1px solid var(--line); border-radius: 8px;
}
input.code { letter-spacing: .5em; text-align: center; font-size: 1.4rem; }
input:focus-visible, button:focus-visible, a.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
button, a.btn {
  display: block; width: 100%; padding: 12px; font: inherit; font-weight: 600; text-align: center; text-decoration: none; cursor: pointer;
  border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--fg);
}
button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.or { text-align: center; color: var(--muted); font-size: .85rem; margin: 16px 0; }
.error { background: var(--err-bg); color: var(--err); border-radius: 8px; padding: 10px 12px; margin-bottom: 16px; font-size: .95rem; }

main.wide { max-width: 920px; }
nav.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; font-size: .9rem; }
nav.top a { color: var(--accent); }
h2 { font-size: 1.1rem; margin: 28px 0 8px; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
td form { display: inline-grid; grid-auto-flow: column; gap: 6px; align-items: center; }
td button, td select { width: auto; padding: 6px 10px; font-size: .85rem; }
select, textarea { width: 100%; padding: 10px; font: inherit; color: inherit; background: transparent; border: 1px solid var(--line); border-radius: 8px; }
textarea { min-height: 84px; font-family: ui-monospace, Menlo, monospace; font-size: .85rem; }
button.danger { color: var(--err); border-color: var(--err); }
.notice { background: var(--card); border: 1px solid var(--accent); border-radius: 8px; padding: 10px 12px; margin-bottom: 16px; }
code, .mono { font-family: ui-monospace, Menlo, monospace; font-size: .85rem; word-break: break-all; }
.secret { border: 2px dashed var(--accent); border-radius: 8px; padding: 12px; margin: 12px 0; }
.row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); align-items: end; }
.badge { display: inline-block; padding: 1px 8px; border: 1px solid var(--line); border-radius: 99px; font-size: .75rem; color: var(--muted); }
label.check { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.scroll { overflow-x: auto; }

pre { overflow-x: auto; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; font: .82rem ui-monospace, Menlo, monospace; white-space: pre; }
ol, ul { padding-left: 22px; }
