:root {
  --blue: #2f7cf6; --text: #1f2a3c; --muted: #6b7a90; --bg: #ffffff; --card: #f4f7fc; --line: #dfe5ee; --accent: #6a3df0;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --text: #e8eef8; --muted: #9aa8bd; --bg: #10172a; --card: #1a2440; --line: #2a3658; }
}
:root[data-theme="dark"] { --text: #e8eef8; --muted: #9aa8bd; --bg: #10172a; --card: #1a2440; --line: #2a3658; }
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text); line-height: 1.65;
  font-family: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
.page { max-width: 760px; margin: 0 auto; padding: 0 16px 48px; }
.page-head {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 0;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.page-head img { width: 34px; height: 34px; }
.page-head a.back { margin-left: auto; color: var(--blue); font-weight: 700; text-decoration: none; font-size: 14px; white-space: nowrap; }
.page-head b { font-size: 16px; }
h1 { font-size: 26px; line-height: 1.3; margin: 28px 0 4px; }
.updated { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
h2 { font-size: 18px; margin: 30px 0 8px; color: var(--accent); scroll-margin-top: 72px; }
p, li { font-size: 15px; }
ul { padding-left: 22px; }
li { margin: 4px 0; }
.note { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 700; font-size: 13px; }
a { color: var(--blue); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; }
.toc a { font-size: 13px; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
@media (max-width: 520px) { table, thead, tbody, tr, th, td { display: block; } thead { display: none; } td { border: 0; padding: 2px 0; } tr { border-bottom: 1px solid var(--line); padding: 8px 0; } td:first-child { font-weight: 700; } }
