:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --text: #1c2330;
  --muted: #5b6577;
  --line: #e2e6ee;
  --brand: #2f6fd0;
  --brand-ink: #ffffff;
  --sun: #f5a623;
  --note: #eef4fd;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11151c;
    --surface: #181e28;
    --text: #e8ecf3;
    --muted: #a3adbd;
    --line: #2a3242;
    --brand: #6f9fe8;
    --brand-ink: #0d1420;
    --note: #1b2638;
  }
}
:root[data-theme="dark"] {
  --bg: #11151c;
  --surface: #181e28;
  --text: #e8ecf3;
  --muted: #a3adbd;
  --line: #2a3242;
  --brand: #6f9fe8;
  --brand-ink: #0d1420;
  --note: #1b2638;
}
* { 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, "Noto Sans", sans-serif;
}
.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }
header.site {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
header.site .wrap {
  display: flex; align-items: center; gap: 12px;
  padding-top: 14px; padding-bottom: 14px;
}
header.site a.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px;
}
.mark { width: 36px; height: 36px; border-radius: 9px; flex: none; }
nav.links { margin-left: auto; display: flex; gap: 16px; font-size: 14px; }
nav.links a { color: var(--muted); text-decoration: none; }
nav.links a:hover, nav.links a[aria-current="page"] { color: var(--brand); }
main { padding: 32px 0 48px; }
h1 { font-size: 30px; line-height: 1.2; margin: 0 0 6px; }
h2 { font-size: 21px; margin: 36px 0 8px; }
h3 { font-size: 17px; margin: 22px 0 4px; }
p, ul, ol { margin: 0 0 12px; }
li { margin-bottom: 6px; }
a { color: var(--brand); }
.updated { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.lead { font-size: 18px; color: var(--muted); }
.note {
  background: var(--note); border-radius: 10px;
  padding: 14px 16px; margin: 16px 0;
}
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li {
  counter-increment: step; position: relative;
  padding: 12px 14px 12px 52px; margin-bottom: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 14px; top: 12px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--brand); color: var(--brand-ink);
  font-weight: 700; font-size: 14px; line-height: 26px; text-align: center;
}
.cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 24px 0; }
.card {
  display: block; padding: 16px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--text); text-decoration: none;
}
.card strong { display: block; color: var(--brand); margin-bottom: 2px; }
.card span { color: var(--muted); font-size: 14px; }
table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; }
footer.site { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer.site .wrap { padding-top: 18px; padding-bottom: 28px; }
@media (max-width: 480px) {
  h1 { font-size: 25px; }
  nav.links { gap: 12px; }
  table, thead, tbody, tr, th, td { display: block; }
  thead { display: none; }
  td { border: none; padding: 2px 0; }
  tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
}
