:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #1d1f23;
  --muted: #5b616b;
  --line: #e2e4e8;
  --accent: #2456c9;
  --card: #f6f7f9;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111317;
    --fg: #e7e9ec;
    --muted: #a3a9b3;
    --line: #2a2e35;
    --accent: #8fb0ff;
    --card: #1a1d22;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.wrap { max-width: 46rem; margin: 0 auto; padding: 0 1.25rem; }
header.site { border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: center; justify-content: space-between; padding-top: .9rem; padding-bottom: .9rem; }
.brand { font-weight: 700; color: var(--fg); text-decoration: none; letter-spacing: .02em; }
nav a { margin-left: 1rem; }
nav a:first-child { margin-left: 0; }
main { padding: 2rem 0 3rem; }
h1 { font-size: 1.9rem; line-height: 1.25; margin: 0 0 .5rem; }
h2 { font-size: 1.3rem; margin: 2.2rem 0 .6rem; padding-top: .4rem; border-top: 1px solid var(--line); }
h3 { font-size: 1.05rem; margin: 1.4rem 0 .4rem; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.muted { color: var(--muted); }
.note { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: .9rem 1rem; }
ul { padding-left: 1.3rem; }
li { margin: .25rem 0; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: .55rem .6rem; border: 1px solid var(--line); }
th { background: var(--card); }
form { display: grid; gap: 1rem; max-width: 32rem; }
label { display: grid; gap: .3rem; font-weight: 600; }
input, textarea {
  font: inherit; color: var(--fg); background: var(--bg);
  border: 1px solid var(--line); border-radius: 8px; padding: .6rem .7rem; width: 100%;
}
textarea { min-height: 9rem; resize: vertical; }
button {
  font: inherit; font-weight: 600; cursor: pointer; justify-self: start;
  background: var(--accent); color: var(--bg); border: 0; border-radius: 8px; padding: .65rem 1.3rem;
}
.hidden { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
footer.site { border-top: 1px solid var(--line); padding: 1.2rem 0 2rem; font-size: .9rem; color: var(--muted); }
