:root {
  color-scheme: light dark;
  --text: #1c1c1e;
  --muted: #636366;
  --border: #e5e5ea;
  --bg: #ffffff;
  --accent: #007aff;
  --card: #f2f2f7;
}
@media (prefers-color-scheme: dark) {
  :root {
    --text: #f2f2f7;
    --muted: #aeaeb2;
    --border: #38383a;
    --bg: #1c1c1e;
    --accent: #0a84ff;
    --card: #2c2c2e;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}
.wrap { max-width: 760px; margin: 0 auto; padding: 32px 20px 64px; }
.doc-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
  justify-content: flex-end;
  font-size: 14px;
  margin-bottom: 24px;
}
.doc-switch a { color: var(--accent); text-decoration: none; }
.doc-switch a.active { font-weight: 700; pointer-events: none; color: var(--accent); }
.doc-switch .lang-list { display: inline-flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
h1 { font-size: 1.75rem; line-height: 1.25; margin: 0 0 8px; }
.meta { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
h2 { font-size: 1.15rem; margin: 32px 0 12px; padding-top: 8px; border-top: 1px solid var(--border); }
h2:first-of-type { border-top: none; padding-top: 0; }
h3 { font-size: 1rem; margin: 20px 0 8px; }
p, li { font-size: 15px; }
ul, ol { padding-left: 1.25rem; }
li { margin: 6px 0; }
table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 12px 0; }
th, td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
th { background: var(--card); width: 28%; }
.note {
  background: var(--card);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--muted);
  margin: 16px 0;
}
a { color: var(--accent); }
footer { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }
