:root { color-scheme: dark;
  --bg: #0a0d12; --panel: #0d1117; --panel2: #10151c; --line: #1b222b; --line2: #2a333f; --ink: #d7dde5; --bright: #e6ecf3; --muted: #7d8794;
  --cyan: #5fd3f0; --ok: #43d17a; --warn: #f5b942; --bad: #ff6b6b;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace; --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--sans); }
a { color: #8fd0ff; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
body.docs { display: grid; grid-template-columns: 268px minmax(0, 1fr); min-height: 100vh; align-items: start; }
.side { position: sticky; top: 0; height: 100vh; overflow: auto; background: var(--panel); border-right: 1px solid var(--line); padding: 16px 12px 20px; display: flex; flex-direction: column; gap: 10px; }
.side-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.brand { font: 600 13px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--bright); display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.brand i { width: 10px; height: 10px; background: var(--cyan); border-radius: 2px; display: inline-block; }
.side-toggle { display: none; font: 600 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--cyan); background: transparent; border: 1px solid var(--line2); padding: 5px 10px; cursor: pointer; }
.find input { width: 100%; background: var(--bg); border: 1px solid var(--line2); color: var(--bright); font: 13px var(--sans); padding: 7px 9px; border-radius: 4px; }
.find input:focus { outline: 1px solid var(--cyan); border-color: var(--cyan); }
.side-empty { margin: 0; font: 12px var(--mono); color: var(--muted); }
.toc { flex: 1; min-height: 0; overflow: auto; padding-right: 4px; }
.sg { margin: 0 0 14px; }
.sg-h { font: 600 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 0 8px 4px; }
.sl { display: block; padding: 5px 8px; border-radius: 4px; color: var(--ink); text-decoration: none; font-size: 13.5px; line-height: 1.35; }
.sl:hover { color: var(--bright); background: var(--panel2); }
.sl.on { color: var(--cyan); background: #102028; }
/* class { display } beats the UA [hidden] rule; search sets hidden on .sl / .list / .sg */
[hidden] { display: none !important; }
.side-foot { padding-top: 8px; border-top: 1px solid var(--line); font: 12px var(--mono); }
.wrap { max-width: 860px; margin: 0 auto; padding: 28px 36px 64px; min-width: 0; }
.crumb { display: flex; gap: 16px; align-items: baseline; justify-content: space-between; flex-wrap: wrap; margin-bottom: 10px; font: 13px var(--mono); color: var(--muted); }
.k { font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
h1 { font-size: 32px; line-height: 1.15; margin: 8px 0 12px; color: var(--bright); letter-spacing: -.01em; }
.lead { color: var(--muted); font-size: 18px; max-width: 640px; margin: 0 0 28px; }
h2 { font-size: 20px; margin: 28px 0 8px; color: var(--bright); }
p { margin: 0 0 12px; }
.step { margin: 0 0 32px; }
.step .n { font: 600 12px var(--mono); color: var(--cyan); }
figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
figure { margin: 12px 0 0; }
.shot { width: 100%; border: 1px solid var(--line2); border-radius: 8px; background: var(--panel); display: block; }
.card { background: var(--panel2); border: 1px solid var(--line2); border-radius: 6px; padding: 16px 18px; margin: 0 0 12px; }
.list a { display: block; padding: 14px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--bright); }
.list a:hover { color: var(--cyan); }
.list .s { color: var(--muted); font-size: 14px; margin-top: 4px; font-weight: 400; }
h2.g { font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 36px 0 4px; }
.list { margin: 0 0 8px; }
.list.skips { margin-top: 4px; }
.skip { padding: 14px 0; border-top: 1px solid var(--line); color: var(--bright); }
.skip .s { color: var(--muted); font-size: 14px; margin-top: 4px; font-weight: 400; }
.hint { font-size: 13px; color: var(--muted); }
footer { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); font: 12px var(--mono); color: var(--muted); display: flex; gap: 16px; flex-wrap: wrap; }
@media (max-width: 860px) {
  body.docs { display: block; }
  .side { position: sticky; top: 0; z-index: 6; height: auto; max-height: none; overflow: visible; }
  .side-toggle { display: inline-block; }
  .toc, .side-foot { display: none; }
  body.side-open .toc, body.side-open .side-foot { display: block; }
  body.side-open .toc { max-height: min(70vh, 520px); overflow: auto; margin-top: 4px; }
  .wrap { padding: 20px 18px 56px; }
}
