:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f7f8fa;
  --surface-2: #eef1f4;
  --text: #171a21;
  --muted: #626b7a;
  --faint: #9098a7;
  --line: #dde1e7;
  --accent: #579c20;
  --accent-bright: #9af24f;
  --accent-soft: #eaf9dd;
  --blue: #2677d8;
  --code: #11141a;
  --code-text: #e8edf5;
  --header: 56px;
  --sidebar: 276px;
  --toc: 210px;
  --font-ui: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-code: "SFMono-Regular", "Cascadia Code", "JetBrains Mono", Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.68 var(--font-ui); -webkit-font-smoothing: antialiased; }
body, header, aside, nav, main, article, button, input, pre, code, a { transition: background-color .22s ease, border-color .22s ease, color .22s ease, box-shadow .22s ease; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input { font: inherit; }
.topbar { position: fixed; z-index: 40; inset: 0 0 auto; height: var(--header); display: flex; align-items: center; gap: 24px; padding: 0 22px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 91%, transparent); backdrop-filter: blur(16px); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 13px; font-weight: 850; letter-spacing: .09em; }
.brand-mark { width: 29px; height: 29px; display: block; filter: drop-shadow(0 5px 9px #12182024); }
.version { padding: 2px 6px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font: 9px var(--font-code); letter-spacing: 0; }
.toplinks { display: flex; align-items: center; gap: 2px; }
.toplinks a { padding: 6px 9px; border-radius: 6px; color: var(--muted); text-decoration: none; font-size: 13px; }
.toplinks a:hover, .toplinks a.active { color: var(--text); background: var(--surface); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.search-shell { position: relative; width: min(340px, 30vw); height: 36px; display: flex; align-items: center; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--muted); }
.search-shell:focus-within { border-color: #9ca5b3; background: var(--bg); box-shadow: 0 0 0 3px #2677d815; }
.search-icon { flex: 0 0 auto; padding-left: 10px; color: var(--faint); font-size: 14px; }
.search-shell input { width: 100%; min-width: 0; height: 100%; padding: 0 8px; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 12px; }
.search-shell input::placeholder { color: var(--muted); opacity: 1; }
.search-shell input::-webkit-search-cancel-button { display: none; }
.search-shell kbd { flex: 0 0 auto; margin-right: 7px; padding: 1px 6px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); color: var(--faint); font: 10px var(--font-code); }
.mobile-menu { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--muted); cursor: pointer; }
.mobile-menu:hover { color: var(--text); border-color: var(--faint); }
.github-link { height: 34px; display: flex; align-items: center; padding: 0 11px; border: 1px solid var(--line); border-radius: 7px; color: var(--text); background: var(--surface); text-decoration: none; font-size: 12px; font-weight: 700; }
.mobile-menu { display: none; }
.layout { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr) var(--toc); padding-top: var(--header); }
.sidebar { position: fixed; z-index: 30; top: var(--header); bottom: 0; left: 0; width: var(--sidebar); overflow: auto; padding: 22px 18px 44px 22px; border-right: 1px solid var(--line); background: var(--bg); }
.nav-group { margin-bottom: 24px; }
.nav-title { margin: 0 0 7px 10px; color: var(--faint); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.nav-link { display: flex; align-items: center; gap: 8px; min-height: 32px; margin: 1px 0; padding: 5px 10px; border-radius: 6px; color: var(--muted); text-decoration: none; font-size: 13px; }
.nav-link:hover { color: var(--text); background: var(--surface); }
.nav-link.active { color: var(--text); background: var(--accent-soft); font-weight: 720; }
.nav-link.active::before { content: ""; width: 3px; height: 16px; margin-left: -10px; border-radius: 0 3px 3px 0; background: var(--accent); }
.content { grid-column: 2; width: min(920px, 100%); margin: 0 auto; padding: 52px 64px 100px; }
.toc { position: fixed; top: calc(var(--header) + 44px); right: 18px; width: calc(var(--toc) - 28px); max-height: calc(100vh - var(--header) - 70px); overflow: auto; padding-left: 14px; border-left: 1px solid var(--line); }
.toc-title { margin-bottom: 9px; color: var(--faint); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.toc a { display: block; padding: 4px 0; color: var(--muted); text-decoration: none; font-size: 11px; line-height: 1.4; }
.toc a:hover, .toc a.active { color: var(--accent); }
.page-kicker { display: flex; align-items: center; gap: 7px; margin-bottom: 15px; color: var(--accent); font: 750 11px var(--font-code); letter-spacing: .08em; text-transform: uppercase; }
.page-kicker::before { content: ""; width: 18px; height: 2px; background: var(--accent); }
h1, h2, h3 { line-height: 1.18; letter-spacing: -.025em; }
h1 { max-width: 760px; margin: 0 0 20px; font-size: clamp(40px, 6vw, 62px); }
h2 { margin: 60px 0 17px; padding-top: 4px; font-size: 29px; }
h3 { margin: 35px 0 12px; font-size: 19px; }
.lead { max-width: 720px; margin: 0 0 32px; color: var(--muted); font-size: 18px; line-height: 1.65; }
p { max-width: 760px; }
strong { font-weight: 760; }
code { padding: .15em .36em; border-radius: 4px; background: var(--surface-2); color: var(--text); font: .88em var(--font-code); }
pre { position: relative; margin: 20px 0 26px; overflow: auto; padding: 20px 22px; border: 1px solid #272d39; border-radius: 10px; background: var(--code); color: var(--code-text); box-shadow: 0 12px 30px #00000010; font: 13px/1.7 var(--font-code); }
pre code { padding: 0; background: transparent; color: inherit; font: inherit; }
.copy-button { position: absolute; top: 9px; right: 9px; padding: 5px 8px; border: 1px solid #343b49; border-radius: 5px; background: #191e27; color: #8f99aa; cursor: pointer; font: 10px var(--font-ui); opacity: 0; }
pre:hover .copy-button, .copy-button:focus { opacity: 1; }
.tok-keyword { color: #d29bff; } .tok-builtin { color: #78d8ff; } .tok-string { color: #ffbd78; } .tok-comment { color: #70806c; font-style: italic; } .tok-value { color: #a8ff60; }
.callout { margin: 24px 0; padding: 17px 19px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; background: var(--surface); }
.callout.warning { border-left-color: #e8a535; }
.callout-title { margin-bottom: 4px; font-weight: 800; }
.callout p { margin: 4px 0; color: var(--muted); }
.changelog h2 { margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line); }
.changelog h2:first-of-type { margin-top: 42px; }
.changelog h3 { margin: 24px 0 9px; color: var(--muted); font: 800 11px var(--font-code); letter-spacing: .09em; text-transform: uppercase; }
.changelog ul { max-width: 780px; margin: 0 0 20px; padding-left: 22px; }
.changelog li { margin: 8px 0; padding-left: 4px; line-height: 1.65; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin: 26px 0; }
.card { min-height: 145px; padding: 20px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: var(--surface); text-decoration: none; }
.card:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: 0 8px 28px #00000010; transform: translateY(-1px); }
.card-icon { width: 30px; height: 30px; display: grid; place-items: center; margin-bottom: 16px; border-radius: 7px; background: var(--accent-soft); color: var(--accent); font: 800 13px var(--font-code); }
.card h3 { margin: 0 0 5px; font-size: 16px; }
.card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.hero { padding-top: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 42px; }
.button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--text); text-decoration: none; font-weight: 760; font-size: 13px; }
.button.primary { border-color: var(--accent-bright); background: var(--accent-bright); color: #10140d; }
.button:hover { transform: translateY(-1px); }
.feature-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 44px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--line); }
.feature { padding: 21px; background: var(--bg); }
.feature b { display: block; margin-bottom: 4px; }
.feature span { color: var(--muted); font-size: 12px; }
table { width: 100%; margin: 20px 0 30px; border-collapse: collapse; font-size: 13px; }
th, td { padding: 11px 13px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); background: var(--surface); font-size: 11px; letter-spacing: .04em; }
td code { white-space: nowrap; }
.steps { counter-reset: step; margin: 25px 0; }
.step { position: relative; min-height: 72px; margin-left: 19px; padding: 0 0 28px 37px; border-left: 1px solid var(--line); }
.step:last-child { border-left-color: transparent; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: -16px; top: -3px; width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); color: var(--accent); font: 800 12px var(--font-code); }
.step h3 { margin: 0 0 5px; }
.step p { margin: 0; color: var(--muted); }
.page-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 72px; padding-top: 24px; border-top: 1px solid var(--line); }
.page-nav a { padding: 13px 15px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); text-decoration: none; font-size: 12px; }
.page-nav a:last-child { text-align: right; }
.page-nav small { display: block; margin-bottom: 2px; color: var(--faint); }
.search-dropdown { position: absolute; z-index: 90; top: calc(100% + 7px); right: 0; width: min(420px, calc(100vw - 24px)); max-height: min(460px, calc(100vh - var(--header) - 24px)); overflow: auto; padding: 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); box-shadow: 0 16px 42px #17203326; }
.search-dropdown[hidden] { display: none; }
.search-result { display: block; padding: 11px 12px; border-radius: 6px; color: var(--text); text-decoration: none; }
.search-result:hover, .search-result.selected { background: var(--surface-2); }
.search-result b { display: block; font-size: 13px; }.search-result span { color: var(--muted); font-size: 11px; }
.search-empty { padding: 35px; color: var(--muted); text-align: center; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
@media (max-width: 1100px) { .layout { grid-template-columns: var(--sidebar) minmax(0, 1fr); } .toc { display: none; } .content { padding-inline: 52px; } }
@media (max-width: 760px) {
  :root { --header: 52px; }
  .topbar { padding: 0 12px; gap: 10px; } .mobile-menu { display: grid; } .version, .toplinks, .github-link { display: none; }
  .top-actions { min-width: 0; flex: 1; } .search-shell { width: 100%; } .search-shell kbd { display: none; }
  .layout { display: block; padding-top: var(--header); }
  .sidebar { width: min(300px, 85vw); transform: translateX(-105%); box-shadow: 18px 0 50px #0008; transition: transform .2s ease; }
  body.nav-open .sidebar { transform: none; }
  .content { width: 100%; padding: 38px 22px 80px; }
  h1 { font-size: 40px; } h2 { margin-top: 48px; font-size: 25px; }
  .cards, .feature-strip { grid-template-columns: 1fr; } .page-nav { grid-template-columns: 1fr; } .page-nav a:last-child { text-align: left; }
  table { display: block; overflow-x: auto; } .copy-button { opacity: 1; }
}
@media (max-width: 520px) { .brand > span:nth-child(2) { display: none; } }
