:root {
  --bg: #f7f8fa;
  --surface: #fff;
  --text: #1a1d23;
  --muted: #5b6472;
  --border: #d9dde4;
  --accent: #1f5fd1;
  --accent-text: #fff;
  --error: #b42318;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161a;
    --surface: #1c1f25;
    --text: #e8eaee;
    --muted: #9aa3b2;
    --border: #2d323b;
    --accent: #6a9bff;
    --accent-text: #0b1220;
    --error: #ff8a80;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
header[hidden], [hidden] { display: none !important; }
.brand { font-weight: 600; color: var(--text); text-decoration: none; }
main { max-width: 880px; margin: 0 auto; padding: 24px 16px 64px; }
h1 { font-size: 1.5rem; margin: 0 0 16px; }
h2 { font-size: 1.15rem; margin: 24px 0 8px; }
h3 { font-size: 1rem; margin: 16px 0 4px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
}
.row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.muted { color: var(--muted); font-size: 0.9rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.8rem; word-break: break-all; }
.error { color: var(--error); }
.notice { color: var(--muted); }
label { display: block; font-weight: 600; margin-bottom: 4px; }
input[type="email"] {
  width: 100%;
  max-width: 420px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}
button, .button {
  display: inline-block;
  padding: 9px 16px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
button.link {
  background: none;
  color: var(--accent);
  padding: 0;
  font-weight: 400;
}
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.notes ul { padding-left: 20px; margin: 4px 0 12px; }
.notes code { font-family: ui-monospace, Menlo, monospace; background: var(--bg); padding: 1px 4px; border-radius: 4px; }
form { margin: 0; }
a.plain { text-decoration: none; color: inherit; }
a.plain:hover { border-color: var(--accent); }
@media (max-width: 480px) {
  main { padding: 16px 16px 48px; }
}
