@property --code-border-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}


:root {
  --font: "Satoshi", "Segoe UI", sans-serif;
  --mono: "Roboto Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --brand: #b4c5ff;
  --brand-strong: #cbd6ff;
  --on-brand: #111522;
  --radius: 10px;
  color-scheme: dark;
  --bg: #111722;
  --paper: #171e2a;
  --elevated: #1c2433;
  --ink: #f5f6f8;
  --text: #c2c8d3;
  --muted: #949cac;
  --faint: #6d7687;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.15);
  --nav-hover: rgba(255, 255, 255, 0.055);
  --nav-active: rgba(180, 197, 255, 0.1);
  --code: #0c121d;
  --code-inline: rgba(180, 197, 255, 0.1);
  --header: rgba(17, 23, 34, 0.84);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
}

:root[data-theme="light"] {
  color-scheme: light;
  --brand: #526aa9;
  --brand-strong: #3e558f;
  --on-brand: #ffffff;
  --bg: #f8f9fb;
  --paper: #ffffff;
  --elevated: #f0f2f6;
  --ink: #171a21;
  --text: #4f5664;
  --muted: #737b89;
  --faint: #979eaa;
  --line: rgba(23, 26, 33, 0.09);
  --line-strong: rgba(23, 26, 33, 0.15);
  --nav-hover: rgba(23, 26, 33, 0.04);
  --nav-active: rgba(82, 106, 169, 0.09);
  --code: #f0f2f6;
  --code-inline: rgba(82, 106, 169, 0.09);
  --header: rgba(248, 249, 251, 0.86);
  --shadow: 0 28px 80px rgba(23, 26, 33, 0.16);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.72 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: rgba(180, 197, 255, 0.25); color: var(--ink); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 200; top: 10px; left: 12px; padding: 8px 12px; border-radius: 7px; background: var(--brand); color: var(--on-brand); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.ambient {
  position: absolute;
  z-index: 0;
  inset: 0 0 auto;
  height: 700px;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse 58% 68% at 45% -10%, rgba(126, 153, 239, 0.2), transparent 70%),
    radial-gradient(ellipse 36% 50% at 92% 4%, rgba(108, 136, 221, 0.11), transparent 72%);
}
:root[data-theme="light"] .ambient { opacity: 0.3; }

.topbar {
  position: sticky;
  z-index: 50;
  top: 0;
  height: 68px;
  border-bottom: 1px solid var(--line);
  background: var(--header);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}
.topbar-inner {
  width: min(1320px, 100%);
  height: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 218px minmax(260px, 400px) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; width: max-content; color: var(--ink); }
.brand-mark { display: block; width: 32px; height: 32px; flex: none; }
.brand-mark svg { display: block; width: 100%; height: 100%; }
.brand-mark-bg { color: var(--elevated); }
.brand-mark-line { color: var(--ink); }
.brand-mark-line.faint { opacity: 0.42; }
.brand-mark-dot { color: var(--brand); }
.brand-name { font-size: 14px; line-height: 1; font-weight: 700; letter-spacing: 0.055em; white-space: nowrap; }
.brand-name > span { color: var(--muted); font-weight: 500; }
.brand-tag { margin-left: 2px; padding: 4px 7px; border: 1px solid var(--line-strong); border-radius: 5px; color: var(--muted); font: 500 10px/1 var(--mono); letter-spacing: 0.02em; }
.top-search {
  width: 100%;
  height: 36px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 8px 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}
.top-search:hover { border-color: rgba(180, 197, 255, 0.3); background: var(--nav-hover); color: var(--ink); }
.top-search > svg { width: 15px; height: 15px; flex: none; }
.top-search > span { flex: 1; font-size: 13.5px; }
.top-search kbd { display: inline-flex; align-items: center; gap: 3px; padding: 3px 5px; border: 1px solid var(--line); border-radius: 4px; background: var(--nav-hover); color: var(--faint); font: 500 10px/1 var(--mono); }
.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 14px; }
.header-actions > a { font-size: 13.5px; font-weight: 500; white-space: nowrap; transition: color 160ms ease, background 160ms ease, border-color 160ms ease; }
.run-link { height: 36px; display: inline-flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid rgba(180, 197, 255, 0.7); border-radius: 7px; background: var(--brand); color: var(--on-brand) !important; font-weight: 650 !important; box-shadow: 0 0 20px rgba(180, 197, 255, 0.08); }
.run-link:hover { background: var(--brand-strong); border-color: var(--brand-strong); }
.icon-btn { width: 34px; height: 34px; padding: 0; display: grid; place-items: center; flex: none; border: 1px solid var(--line); border-radius: 7px; background: transparent; color: var(--muted); transition: color 160ms ease, border-color 160ms ease, background 160ms ease; }
.icon-btn:hover { color: var(--ink); border-color: var(--line-strong); background: var(--nav-hover); }
.icon-btn svg { width: 16px; height: 16px; }
.theme-icon, .menu-icon-close { display: none; }
:root[data-theme="dark"] .theme-icon-dark, :root[data-theme="light"] .theme-icon-light { display: block; }
.menu-btn { display: none; }
.sidebar-backdrop { display: none; }

.shell {
  position: relative;
  z-index: 1;
  width: min(1320px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 218px minmax(0, 730px) 174px;
  justify-content: start;
  gap: 48px;
  padding: 0 32px 72px;
}

.sidebar {
  position: sticky;
  top: 68px;
  align-self: start;
  height: calc(100vh - 68px);
  padding: 30px 10px 22px 0;
  display: flex;
  flex-direction: column;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.nav-group + .nav-group { margin-top: 25px; }
.side-label { margin: 0 10px 7px; color: var(--muted); font: 500 10.5px/1.4 var(--mono); letter-spacing: 0.09em; text-transform: uppercase; }
.side-nav ul { list-style: none; margin: 0; padding: 0; }
.side-nav li { margin: 2px 0; }
.side-nav a { position: relative; display: flex; align-items: center; min-height: 37px; padding: 7px 10px 7px 13px; border-radius: 6px; color: var(--muted); font-size: 15px; line-height: 1.35; transition: color 150ms ease, background 150ms ease; }
.side-nav a:hover { background: var(--nav-hover); color: var(--ink); }
.side-nav a.is-active { background: var(--nav-active); color: var(--brand); font-weight: 550; }
.nav-indicator { position: absolute; left: 0; width: 2px; height: 14px; border-radius: 2px; background: transparent; }
.side-nav a.is-active .nav-indicator { background: var(--brand); box-shadow: 0 0 10px rgba(180, 197, 255, 0.25); }

.article { min-width: 0; padding-top: 37px; }
.crumb { display: flex; align-items: center; gap: 7px; margin: 0 0 27px; color: var(--faint); font-size: 12.5px; line-height: 1.4; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--brand); }
.crumb svg { width: 12px; height: 12px; opacity: 0.65; }
.crumb span[aria-current] { color: var(--muted); }
.doc h1 { margin: 0 0 15px; color: var(--ink); font: 650 clamp(34px, 3.2vw, 42px)/1.13 var(--font); letter-spacing: -0.035em; }
.doc .lead { margin: 0 0 36px; max-width: 670px; color: var(--text); font-size: 17px; line-height: 1.65; letter-spacing: -0.008em; }
.doc h2 { position: relative; margin: 2.25em 0 0.65em; color: var(--ink); font: 600 23px/1.3 var(--font); letter-spacing: -0.022em; }
.doc h3 { margin: 1.65em 0 0.5em; color: var(--ink); font: 600 17px/1.35 var(--font); letter-spacing: -0.012em; }
.doc p, .doc ul, .doc ol { margin: 0 0 1.1em; }
.doc ul, .doc ol { padding-left: 1.3rem; }
.doc li { margin: 0.36em 0; padding-left: 0.15rem; }
.doc li::marker { color: var(--faint); }
.doc a:not(.btn):not(.card) { color: var(--brand); text-decoration: none; text-underline-offset: 3px; }
.doc a:not(.btn):not(.card):hover { color: var(--brand-strong); text-decoration: underline; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc :where(p, li) > code { padding: 0.14em 0.4em; border: 1px solid var(--line); border-radius: 4px; background: var(--code-inline); color: var(--brand-strong); font: 500 0.84em var(--mono); overflow-wrap: anywhere; }

.callout { position: relative; margin: 22px 0 28px; padding: 15px 17px 15px 19px; border: 1px solid var(--line); border-left: 2px solid var(--brand); border-radius: 7px; background: var(--nav-active); color: var(--text); font-size: 14.5px; }
.callout strong { color: var(--brand-strong); }

.code {
  position: relative;
  margin: 20px 0 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background:
    linear-gradient(var(--code), var(--code)) padding-box,
    conic-gradient(from var(--code-border-angle), var(--line-strong) 0deg 72%, rgba(180, 197, 255, 0.2) 80%, var(--brand) 90%, #edf1ff 94%, var(--line-strong) 100%) border-box;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), 0 0 24px rgba(180, 197, 255, 0.04);
  animation: code-border-run 4.5s linear infinite;
}
@keyframes code-border-run { to { --code-border-angle: 360deg; } }
.code-head { height: 40px; display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 16px; border-bottom: 1px solid var(--line); background: var(--nav-hover); color: var(--muted); font: 500 11px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.code pre { margin: 0; max-width: 100%; overflow: auto; }
.code code { display: block; padding: 18px 20px 20px; background: transparent; color: #d8def1; font: 400 13.5px/1.75 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
:root[data-theme="light"] .code code { color: #344365; }
.copy { height: 28px; display: inline-flex; align-items: center; gap: 6px; padding: 0 7px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: var(--muted); font: 500 12px/1 var(--font); text-transform: none; letter-spacing: 0; transition: color 150ms ease, background 150ms ease; }
.copy svg { width: 14px; height: 14px; }
.copy:hover { color: var(--ink); background: var(--nav-hover); }
.copy.is-copied { color: var(--brand); }

.doc .steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 12px; margin: 16px 0 28px; padding: 0; list-style: none; }
.steps li { display: flex; align-items: flex-start; gap: 13px; height: 100%; min-height: 108px; margin: 0; padding: 17px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255, 255, 255, 0.025); }
.steps .num { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(180, 197, 255, 0.2); border-radius: 8px; background: var(--nav-active); color: var(--brand); }
.steps .num svg { width: 19px; height: 19px; }
.steps strong { display: block; margin: 1px 0 6px; color: var(--ink); font-size: 15px; line-height: 1.4; }
.steps li div span { display: block; color: var(--muted); font-size: 14px; line-height: 1.5; }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 12px; margin: 16px 0 28px; }
.card { position: relative; display: block; height: 100%; min-height: 118px; padding: 19px 40px 18px 19px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: rgba(255, 255, 255, 0.018); color: var(--text) !important; transition: border-color 160ms ease, background 160ms ease; }
.card::after { content: "↗"; position: absolute; top: 18px; right: 18px; color: var(--faint); font-size: 15px; transition: color 160ms ease; }
.card:hover { border-color: rgba(180, 197, 255, 0.32); background: var(--nav-active); text-decoration: none !important; }
.card:hover::after { color: var(--brand); }
.card strong { display: block; margin-bottom: 7px; color: var(--ink); font-size: 16px; }
.card p, .card span { display: block; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

.doc .step-action { margin: 0 0 28px; }
.step-action .btn { margin: 0; }

.btn { display: inline-flex; align-items: center; gap: 16px; min-height: 40px; margin: 4px 0 8px; padding: 0 16px; border: 1px solid var(--brand); border-radius: 7px; background: var(--brand); color: var(--on-brand) !important; font-size: 14px; font-weight: 650; }
.btn::after { content: "→"; }
.btn:hover { background: var(--brand-strong); text-decoration: none !important; }

.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 12px; margin: 16px 0 28px; }
.compare article { height: 100%; padding: 20px 20px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, 0.018); }
.compare .accent { border-color: rgba(180, 197, 255, 0.3); background: var(--nav-active); }
.tag { margin: 0 0 10px; color: var(--muted); font: 500 10px/1 var(--mono); letter-spacing: 0.09em; text-transform: uppercase; }
.compare .accent .tag { color: var(--brand); }
.compare h3 { margin-top: 0; }
.faq h2 { margin: 1.8em 0 0.5em; font-size: 20px; }
.faq h2:first-child { margin-top: 0; }
.faq details { padding: 12px 0; border-bottom: 1px solid var(--line); }
.faq summary { color: var(--ink); font-weight: 600; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin: 8px 0 4px; }

.toc { position: sticky; top: 105px; align-self: start; max-height: calc(100vh - 128px); overflow: auto; color: var(--muted); font-size: 13.5px; scrollbar-width: thin; }
.toc p { display: flex; align-items: center; gap: 7px; margin: 0 0 13px; color: var(--muted); font: 500 10.5px/1.2 var(--mono); letter-spacing: 0.09em; text-transform: uppercase; }
.toc p svg { width: 14px; height: 14px; color: var(--faint); }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc a { position: relative; display: block; padding: 6px 0 6px 12px; color: var(--muted); line-height: 1.45; transition: color 150ms ease; }
.toc a::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 1px; background: var(--line); }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--brand); }
.toc a.is-active::before { background: var(--brand); }

.page-pagination { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.page-link { display: flex; flex-direction: column; gap: 7px; width: max-content; max-width: 100%; }
.page-link.next { justify-self: end; text-align: right; }
.page-link-label { display: flex; align-items: center; gap: 7px; color: var(--faint); font: 500 10px/1.2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.next .page-link-label { justify-content: flex-end; }
.page-link strong { color: var(--text); font-size: 14px; font-weight: 500; transition: color 150ms ease; }
.page-link:hover strong { color: var(--brand); }

.foot { position: relative; z-index: 1; border-top: 1px solid var(--line); color: var(--faint); font-size: 12.5px; }
.foot-inner { width: min(1320px, 100%); min-height: 66px; margin: 0 auto; padding: 18px 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.foot p { margin: 0; }
.foot p span { margin: 0 7px; }

.search-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: start center; padding: 12vh 18px 18px; background: rgba(0, 0, 0, 0.65); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); }
.search-panel { width: min(620px, 100%); border: 1px solid var(--line-strong); border-radius: 12px; background: var(--paper); box-shadow: var(--shadow); overflow: hidden; }
.search-head { display: flex; align-items: center; gap: 11px; min-height: 58px; padding: 10px 14px 10px 17px; border-bottom: 1px solid var(--line); color: var(--muted); }
.search-head > svg { width: 18px; height: 18px; flex: none; }
.search-head input { flex: 1; min-width: 0; height: 38px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 15px; }
.search-head input::placeholder { color: var(--faint); }
.search-head input::-webkit-search-cancel-button { display: none; }
.search-close { padding: 5px 7px; border: 1px solid var(--line); border-radius: 5px; background: transparent; color: var(--muted); font: 500 10px/1 var(--mono); }
.search-close:hover { color: var(--ink); background: var(--nav-hover); }
.search-list { list-style: none; margin: 0; padding: 8px; max-height: min(390px, 55vh); overflow: auto; scrollbar-width: thin; }
.search-list li a, .search-empty { display: block; padding: 11px 12px; border-radius: 7px; color: var(--text); }
.search-list li a { border: 1px solid transparent; }
.search-list li a.is-active, .search-list li a:hover { border-color: var(--line); background: var(--nav-active); color: var(--ink); }
.search-list li a.is-active strong { color: var(--brand); }
.search-list strong { display: block; margin-bottom: 2px; color: var(--ink); font-size: 14px; font-weight: 550; }
.search-list span { display: block; color: var(--muted); font-size: 12px; line-height: 1.5; }
.search-empty { color: var(--muted); font-size: 13px; }
.search-footer { display: flex; align-items: center; gap: 18px; padding: 10px 16px; border-top: 1px solid var(--line); color: var(--faint); font-size: 10px; }
.search-footer span { display: flex; align-items: center; gap: 4px; }
.search-footer kbd { min-width: 18px; padding: 3px 4px; border: 1px solid var(--line); border-radius: 3px; background: var(--nav-hover); color: var(--muted); font: 500 9px/1 var(--mono); text-align: center; }

@media (max-width: 1240px) {
  .topbar-inner { grid-template-columns: 205px minmax(230px, 340px) minmax(0, 1fr); gap: 36px; }
  .header-actions { gap: 12px; }
  .shell { grid-template-columns: 205px minmax(0, 730px) 155px; gap: 36px; }
}
@media (max-width: 1100px) {
  .topbar-inner { grid-template-columns: 215px minmax(220px, 340px) minmax(0, 1fr); gap: 42px; }
  .shell { grid-template-columns: 215px minmax(0, 1fr); gap: 42px; }
  .toc { display: none; }
}
@media (max-width: 900px) {
  html { scroll-padding-top: 88px; }
  .topbar { height: 62px; z-index: 70; }
  .topbar-inner { grid-template-columns: 1fr auto auto; gap: 10px; padding: 0 18px; }
  .brand-mark { width: 30px; height: 30px; }
  .top-search { width: 34px; height: 34px; justify-content: center; padding: 0; }
  .top-search > span, .top-search kbd { display: none; }
  .header-actions { gap: 8px; }
  .run-link { display: none; }
  .menu-btn { display: grid; }
  body.nav-open .menu-icon-open { display: none; }
  body.nav-open .menu-icon-close { display: block; }
  .sidebar-backdrop { position: fixed; z-index: 55; inset: 62px 0 0; display: block; border: 0; background: rgba(0, 0, 0, 0.58); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity 180ms ease, visibility 180ms ease; }
  .sidebar-backdrop.is-visible { opacity: 1; visibility: visible; }
  .shell { display: block; z-index: auto; padding: 0 24px 58px; }
  .article { max-width: 760px; margin: 0 auto; padding-top: 29px; }
  .sidebar { position: fixed; z-index: 60; inset: 62px auto 0 0; width: min(310px, 88vw); height: calc(100dvh - 62px); padding: 25px 20px; border-right: 1px solid var(--line-strong); background: var(--paper); transform: translateX(-102%); transition: transform 200ms cubic-bezier(0.23, 1, 0.32, 1); }
  .sidebar.is-open { transform: none; }
}
@media (max-width: 640px) {
  .topbar-inner { padding: 0 14px; }
  .brand { gap: 8px; }
  .brand-name { font-size: 12.5px; }
  .brand-tag { padding: 3px 5px; font-size: 9px; }
  .shell { padding: 0 18px 48px; }
  .article { padding-top: 24px; }
  .crumb { margin-bottom: 23px; font-size: 12px; }
  .doc h1 { font-size: 34px; }
  .doc .lead { margin-bottom: 31px; font-size: 16px; line-height: 1.6; }
  .doc h2 { margin-top: 2em; font-size: 21px; }
  .doc .steps, .cards, .compare { grid-template-columns: 1fr; }
  .doc .steps, .cards { grid-auto-rows: auto; }
  .steps li { min-height: 0; }
  .card { min-height: 106px; }
  .code { border-radius: 8px; }
  .code code { padding: 16px; font-size: 12px; }
  .page-pagination { margin-top: 42px; }
  .foot-inner { padding: 20px 18px; flex-direction: column; align-items: flex-start; gap: 12px; }
  .search-modal { padding: 8vh 10px 10px; }
  .search-footer { gap: 11px; padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  .code { animation: none; border-color: rgba(180, 197, 255, 0.45); background: var(--code); }
}
