:root {
  --bg: #f7f8fa; --surface: #ffffff; --ink: #14202b; --muted: #61707d; --line: #e5e9ef; --accent: #365ff6;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #090d14; --surface: #151b25; --ink: #f4f7fb; --muted: #a7b1be; --line: #303a48; --accent: #8099ff; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
header, footer { max-width: 860px; margin: 0 auto; padding: 20px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
footer { color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
.brand { font-weight: 800; letter-spacing: .01em; color: var(--ink); text-decoration: none; font-size: 20px; }
nav a { margin-left: 14px; }
nav a:first-child { margin-left: 0; }
a { color: var(--accent); }
main { max-width: 860px; margin: 0 auto; padding: 0 16px 40px; }
article { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px 22px; margin-bottom: 28px; }
h1 { margin: 0 0 6px; font-size: 30px; line-height: 1.2; }
h2 { margin: 28px 0 8px; font-size: 19px; }
.meta { color: var(--muted); font-size: 14px; margin-top: 0; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; display: block; overflow-x: auto; }
th, td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }
dt { font-weight: 700; margin-top: 16px; }
dd { margin: 4px 0 0; }
.note { font-size: 14px; color: var(--muted); border-left: 3px solid var(--accent); padding: 4px 0 4px 10px; }
.button { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; font-weight: 700; padding: 12px 18px; border-radius: 10px; }
ol { padding-left: 22px; }
@media (max-width: 520px) {
  article { padding: 18px 14px; }
  table, thead, tbody, tr, th, td { display: block; }
  thead { display: none; }
  td { border-bottom: 0; padding: 4px 0; }
  tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
}
