:root {
  --bg: #f7f8fa; --surface: #ffffff; --fg: #15181d; --muted: #5d6573; --line: #e2e5ea; --code: #f0f2f5;
  --accent: #2357d6; --accent-soft: #e5ecfc;
  --display: "Bricolage Grotesque", "IBM Plex Sans", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #111317; --surface: #191c21; --fg: #e8eaee; --muted: #9aa2ae; --line: #2a2f37; --code: #1f232a;
  --accent: #7ea2ff; --accent-soft: #1d2a47; color-scheme: dark } }
:root[data-theme="dark"] {
  --bg: #111317; --surface: #191c21; --fg: #e8eaee; --muted: #9aa2ae; --line: #2a2f37; --code: #1f232a;
  --accent: #7ea2ff; --accent-soft: #1d2a47; color-scheme: dark }
* { box-sizing: border-box; }
html { scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.6 var(--body); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
code, pre { font-family: var(--mono); font-size: 13px; }
:not(pre) > code { background: var(--code); padding: 1px 5px; border-radius: 5px; overflow-wrap: anywhere; }
pre { background: var(--code); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; overflow-x: auto; line-height: 1.5; }
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .in { max-width: 1180px; margin: 0 auto; padding: 0 16px; height: 56px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); font: 700 18px var(--display); white-space: nowrap; flex: none; }
.brand img { width: 26px; height: 26px; border-radius: 6px; }
.brand .ver { font: 600 11.5px var(--mono); color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 2px 8px; }
.top nav { margin-left: auto; display: flex; gap: 16px; align-items: center; font-size: 14px; flex-wrap: wrap; }
.top nav a { color: var(--muted); }
.top nav a:hover, .top nav a[aria-current] { color: var(--fg); text-decoration: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.docs { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 40px; padding-block: 28px 64px; }
.side { position: sticky; top: 76px; align-self: start; max-height: calc(100vh - 92px); overflow-y: auto; font-size: 14px; }
.side ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.side a { display: block; padding: 5px 10px; border-radius: 7px; color: var(--muted); }
.side a:hover { background: var(--surface); color: var(--fg); text-decoration: none; }
.side a[aria-current] { background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.side .label { font: 600 11.5px var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 10px 8px; }
article { min-width: 0; max-width: 820px; }
article h1 { font: 700 34px/1.15 var(--display); letter-spacing: -.01em; margin: 6px 0 18px; }
article h2 { font: 600 22px/1.3 var(--body); margin: 36px 0 12px; padding-top: 8px; border-top: 1px solid var(--line); }
article h3 { font: 600 17px/1.35 var(--body); margin: 26px 0 8px; }
article h2 a.anchor, article h3 a.anchor { color: var(--muted); margin-left: 6px; opacity: 0; }
article :is(h2, h3):hover a.anchor { opacity: 1; }
article blockquote { margin: 16px 0; padding: 10px 16px; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 10px 10px 0; }
article blockquote > :first-child { margin-top: 0; } article blockquote > :last-child { margin-bottom: 0; }
article li + li { margin-top: 4px; }
.table { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; background: var(--surface); }
th, td { text-align: left; vertical-align: top; padding: 8px 12px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { font-weight: 600; background: var(--code); }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; }
.pager a { display: grid; gap: 2px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); min-width: 0; }
.pager a span { color: var(--muted); font-size: 12px; }
.pager a.next { margin-left: auto; text-align: right; }
.edit { font-size: 13px; color: var(--muted); margin-top: 18px; }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
footer .in { max-width: 1180px; margin: 0 auto; padding: 22px 16px 40px; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.hero { padding-block: 64px 36px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; max-width: 860px; }
.hero h1 { font: 700 clamp(34px, 6vw, 56px)/1.05 var(--display); letter-spacing: -.02em; margin: 0; }
.hero p { font-size: 18px; color: var(--muted); margin: 0; max-width: 720px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 10px; font-weight: 500; border: 1px solid var(--line); background: var(--surface); color: var(--fg); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn:hover { text-decoration: none; filter: brightness(1.05); }
.install { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 6px 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--code); font: 13px var(--mono); max-width: 100%; min-width: 0; }
.install button { flex: none; }
.install code { background: none; padding: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.install button { border: 1px solid var(--line); background: var(--surface); color: var(--fg); border-radius: 7px; font: 500 12px var(--body); height: 28px; padding: 0 10px; cursor: pointer; }
section.band { padding-block: 28px; }
section.band h2 { font: 700 26px/1.2 var(--display); margin: 0 0 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.card h3 { font: 600 15.5px var(--body); margin: 0 0 6px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.num { font: 700 28px/1.1 var(--display); color: var(--fg); margin-bottom: 4px; }
.steps { counter-reset: s; display: grid; gap: 12px; }
.steps > div { counter-increment: s; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 4px 12px; align-items: start; }
.steps > div::before { content: counter(s); width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font: 600 13px/26px var(--body); text-align: center; }
.steps p { margin: 2px 0 6px; }
.steps pre { margin: 0; grid-column: 2; }
@media (max-width: 860px) {
  .docs { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .side { position: static; max-height: none; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
  .side ol { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .top nav .wide { display: none; }
}
@media (max-width: 520px) {
  .top .in { gap: 10px; }
  .top nav { gap: 12px; flex-wrap: nowrap; }
  .top nav .narrow { display: none; }
  .brand .ver { display: none; }
  .cta { flex-direction: column; align-items: stretch; }
  .cta .btn { justify-content: center; }
  .install { width: 100%; }
}
