:root {
  --bg: #ffffff;
  --bg-soft: #f4f6f9;
  --text: #172b4d;
  --muted: #505f79;
  --accent: #0c66e4;
  --accent-ink: #ffffff;
  --border: #dfe1e6;
  --ok: #1f845a;
  --warn: #a54800;
  --radius: 10px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161a1d;
    --bg-soft: #1d2125;
    --text: #dee4ea;
    --muted: #9fadbc;
    --accent: #579dff;
    --accent-ink: #161a1d;
    --border: #2c333a;
    --ok: #4bce97;
    --warn: #f5cd47;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, Ubuntu, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}
a { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
header.site { border-bottom: 1px solid var(--border); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; }
.brand svg { width: 28px; height: 28px; }
nav.main { display: flex; gap: 18px; flex-wrap: wrap; }
nav.main a { color: var(--muted); text-decoration: none; font-weight: 500; }
nav.main a:hover, nav.main a[aria-current='page'] { color: var(--text); }
.button { display: inline-block; background: var(--accent); color: var(--accent-ink); padding: 11px 18px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.button.secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.hero { padding: 64px 0 40px; }
.hero h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; margin: 0 0 16px; letter-spacing: -0.02em; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 680px; margin: 0 0 28px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; color: var(--muted); font-size: 0.92rem; }
.badges span { border: 1px solid var(--border); border-radius: 999px; padding: 3px 12px; }
section { padding: 36px 0; }
section.soft { background: var(--bg-soft); }
h2 { font-size: 1.6rem; margin: 0 0 18px; letter-spacing: -0.01em; }
h3 { font-size: 1.12rem; margin: 0 0 6px; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid.four { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
img, svg, table { max-width: 100%; }
.card { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; background: var(--bg); }
.card p { margin: 0; color: var(--muted); }
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; padding-left: 44px; position: relative; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; }
table { border-collapse: collapse; width: 100%; margin: 12px 0 20px; font-size: 0.95rem; }
th, td { text-align: left; border-bottom: 1px solid var(--border); padding: 9px 8px; vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.prose { max-width: 760px; padding: 40px 0 56px; }
.prose h1 { font-size: 2.1rem; line-height: 1.2; margin: 0 0 8px; }
.prose h2 { margin-top: 36px; font-size: 1.35rem; }
.prose .meta { color: var(--muted); margin-bottom: 28px; }
.note { border-left: 4px solid var(--accent); background: var(--bg-soft); padding: 12px 16px; border-radius: 6px; }
.docs { display: grid; grid-template-columns: 220px 1fr; gap: 36px; }
.docs nav { padding-top: 40px; position: sticky; top: 0; align-self: start; }
.docs nav a { display: block; color: var(--muted); text-decoration: none; padding: 4px 0; }
.docs nav a[aria-current='page'] { color: var(--accent); font-weight: 600; }
@media (max-width: 760px) { .docs { grid-template-columns: 1fr; } .docs nav { position: static; padding-top: 20px; } }
details { border-bottom: 1px solid var(--border); padding: 12px 0; }
summary { cursor: pointer; font-weight: 600; }
footer.site { border-top: 1px solid var(--border); padding: 28px 0 40px; color: var(--muted); font-size: 0.92rem; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer.site a { color: var(--muted); }
code { background: var(--bg-soft); padding: 1px 5px; border-radius: 4px; font-size: 0.92em; }
.check { color: var(--ok); font-weight: 700; }
.cross { color: var(--warn); font-weight: 700; }
