:root {
  --bg: #f7f7f4;
  --surface: #ffffff;
  --text: #1b1d1c;
  --muted: #5d625f;
  --border: #e3e5e1;
  --accent: #127a4e;
  --accent-bg: #e6f4ec;
  --warn-bg: #fff6df;
  --warn-border: #f0d27a;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #09090b;
    --surface: #111111;
    --text: #ececec;
    --muted: #a1a5a2;
    --border: #262626;
    --accent: #92fcbe;
    --accent-bg: #10251a;
    --warn-bg: #2a2310;
    --warn-border: #6b5a1f;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 32px 16px 64px; }
header.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.brand { font-weight: 800; letter-spacing: .04em; color: var(--accent); text-decoration: none; font-size: 20px; }
nav a { color: var(--muted); text-decoration: none; margin-left: 16px; font-size: 15px; }
nav a:first-child { margin-left: 0; }
nav a[aria-current="page"] { color: var(--text); font-weight: 600; }
h1 { font-size: 30px; line-height: 1.2; margin: 0 0 8px; }
.meta { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
h2 { font-size: 20px; margin: 40px 0 8px; padding-top: 8px; border-top: 1px solid var(--border); }
h3 { font-size: 16px; margin: 24px 0 4px; }
p, li { margin: 8px 0; }
ul { padding-left: 22px; }
a { color: var(--accent); }
.note { background: var(--accent-bg); border-radius: 12px; padding: 14px 16px; margin: 16px 0; }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 20px; }
.toc ol { margin: 0; padding-left: 20px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--border); }
th { font-weight: 600; }
.cards { display: grid; gap: 12px; margin-top: 24px; }
.card { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px; color: var(--text); text-decoration: none; }
.card strong { display: block; font-size: 18px; margin-bottom: 4px; }
.card span { color: var(--muted); font-size: 15px; }
footer { margin-top: 48px; color: var(--muted); font-size: 13px; }
