:root {
  color-scheme: light;
  --ink: #171a2b;
  --muted: #626980;
  --line: #e5e7ef;
  --soft: #f7f7fb;
  --panel: #10121d;
  --panel-line: #292c3c;
  --accent: #6757dc;
  --accent-soft: #f0edff;
  --green: #16845b;
  --orange: #a55d08;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; color: var(--ink); background: #fff; }
a { color: inherit; }
button, input { font: inherit; }
.docs-topbar {
  position: sticky; top: 0; z-index: 20; height: 64px; padding: 0 24px;
  display: flex; align-items: center; gap: 24px; border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.94); backdrop-filter: blur(14px);
}
.docs-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 850; letter-spacing: -.02em; }
.docs-mark { width: 30px; height: 30px; display: grid; place-items: center; color: #fff; border-radius: 9px; background: var(--accent); }
.docs-label { color: var(--muted); font-size: 14px; padding-left: 14px; border-left: 1px solid var(--line); }
.docs-search { margin-left: auto; width: min(360px, 34vw); position: relative; }
.docs-search input { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 9px 36px 9px 12px; background: var(--soft); outline: none; }
.docs-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.docs-search kbd { position: absolute; right: 9px; top: 8px; border: 1px solid #d9dbe5; background: #fff; color: var(--muted); border-radius: 5px; padding: 1px 6px; font-size: 11px; }
.docs-app-link { color: var(--accent); text-decoration: none; font-size: 14px; font-weight: 750; white-space: nowrap; }
.menu-button { display: none; border: 0; background: transparent; padding: 6px; }
.docs-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: calc(100vh - 64px); }
.docs-sidebar { position: sticky; top: 64px; height: calc(100vh - 64px); overflow: auto; border-right: 1px solid var(--line); padding: 28px 20px 48px; background: #fcfcfe; }
.nav-section { margin-bottom: 26px; }
.nav-section strong { display: block; margin: 0 10px 8px; color: #666d82; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.nav-section a { display: block; padding: 7px 10px; border-radius: 7px; text-decoration: none; color: #4d5368; font-size: 14px; }
.nav-section a:hover { color: var(--ink); background: #f0f1f6; }
.nav-section a.active { color: #5143cf; background: var(--accent-soft); font-weight: 750; }
.docs-main { min-width: 0; }
.docs-hero { max-width: 1240px; margin: 0 auto; padding: 72px 56px 44px; }
.docs-hero.compact { padding-bottom: 28px; }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
h1 { margin: 14px 0 16px; max-width: 790px; font-size: clamp(2.45rem, 5vw, 4.8rem); line-height: .98; letter-spacing: -.055em; }
.compact h1 { font-size: clamp(2.2rem, 4vw, 3.8rem); }
.lead { max-width: 720px; margin: 0; color: var(--muted); font-size: 19px; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; padding: 10px 15px; text-decoration: none; font-weight: 760; font-size: 14px; border: 1px solid var(--line); }
.button.primary { color: #fff; background: var(--accent); border-color: var(--accent); }
.button.secondary { background: #fff; }
.docs-grid { max-width: 1240px; margin: 0 auto; padding: 0 56px 88px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr); gap: 56px; align-items: start; }
.docs-grid.single { grid-template-columns: minmax(0, 820px); }
.content section { padding: 30px 0; border-top: 1px solid var(--line); }
.content section:first-child { border-top: 0; padding-top: 0; }
h2 { margin: 0 0 12px; font-size: 25px; line-height: 1.2; letter-spacing: -.025em; }
h3 { margin: 26px 0 8px; font-size: 17px; }
p { color: #4e556b; }
.content a:not(.button) { color: #5143cf; text-underline-offset: 3px; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 26px 0; }
.steps li { position: relative; padding: 0 0 28px 48px; color: #4e556b; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: -3px; width: 28px; height: 28px; display: grid; place-items: center; color: #fff; background: var(--accent); border-radius: 50%; font-size: 13px; font-weight: 800; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 1px; background: var(--line); }
.callout { margin: 22px 0; padding: 16px 18px; border: 1px solid #dad4ff; border-radius: 11px; background: #f8f6ff; color: #48405f; }
.callout.warning { border-color: #f1d5ac; background: #fff9f0; }
.callout strong { color: var(--ink); }
.endpoint { display: flex; align-items: center; gap: 10px; padding: 12px 0; }
.method { display: inline-flex; min-width: 54px; justify-content: center; border-radius: 6px; padding: 4px 7px; color: var(--green); background: #eaf8f2; font: 750 12px ui-monospace, SFMono-Regular, Menlo, monospace; }
.method.post { color: #5d48c7; background: #eeebff; }
.method.delete { color: #b04242; background: #fff0f0; }
.endpoint code, code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }
.endpoint code { color: #24283b; font-weight: 680; }
.code-panel { position: sticky; top: 88px; color: #e9eaf3; background: var(--panel); border: 1px solid var(--panel-line); border-radius: 14px; overflow: hidden; box-shadow: 0 18px 50px rgba(22,24,38,.16); }
.code-head { min-height: 48px; padding: 0 12px 0 16px; display: flex; align-items: center; border-bottom: 1px solid var(--panel-line); }
.code-title { color: #a8adbf; font-size: 12px; font-weight: 750; letter-spacing: .04em; }
.code-tabs { margin-left: auto; display: flex; gap: 3px; }
.code-tab { border: 0; border-radius: 6px; color: #9ca2b7; background: transparent; padding: 5px 8px; cursor: pointer; font-size: 12px; }
.code-tab.active { color: #fff; background: #292c3c; }
.copy-code { margin-left: 8px; border: 1px solid #34384a; border-radius: 6px; color: #c4c8d7; background: #202330; padding: 5px 8px; cursor: pointer; font-size: 11px; }
.code-sample { display: none; margin: 0; min-height: 370px; padding: 22px; overflow: auto; color: #daddE8; background: transparent; white-space: pre; font: 13px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.code-sample.active { display: block; }
.token-key { color: #b9a8ff; }.token-string { color: #9ee6c2; }.token-comment { color: #747b91; }
.response-note { padding: 13px 16px; color: #aeb3c4; background: #171a27; border-top: 1px solid var(--panel-line); font-size: 12px; }
.field-table { width: 100%; border-collapse: collapse; margin: 18px 0 28px; font-size: 14px; }
.field-table th { text-align: left; color: #7b8195; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.field-table th, .field-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.field-table td:first-child { width: 25%; color: #272b3e; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.field-table td:nth-child(2) { width: 18%; color: #7a8094; }
.required { color: #b34242; font-size: 11px; font-family: inherit; }
.optional { color: #777f94; font-size: 11px; font-family: inherit; }
.status-list { display: grid; grid-template-columns: 76px 1fr; gap: 0; border-top: 1px solid var(--line); }
.status-list div { padding: 12px 8px; border-bottom: 1px solid var(--line); color: #555c71; }
.status-list div:nth-child(odd) { color: var(--ink); font-weight: 780; font-family: ui-monospace, monospace; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin: 28px 0; }
.card { padding: 20px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; transition: .15s ease; }
.card:hover { border-color: #c8c1ff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(31,34,50,.07); }
.card b { display: block; margin-bottom: 6px; }.card span { color: var(--muted); font-size: 14px; }
.inline-code { position: relative; margin: 18px 0; border: 1px solid var(--panel-line); border-radius: 11px; overflow: hidden; background: var(--panel); }
.inline-code pre { margin: 0; padding: 18px 20px; overflow: auto; color: #daddE8; font: 13px/1.65 ui-monospace, monospace; }
.inline-code .copy-code { position: absolute; top: 9px; right: 9px; }
.docs-footer { border-top: 1px solid var(--line); padding: 24px 56px 44px; display: flex; gap: 20px; color: var(--muted); font-size: 13px; }
.docs-footer a { color: inherit; }
.search-results { display: none; position: absolute; top: 44px; left: 0; right: 0; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 16px 40px rgba(20,22,35,.12); }
.search-results.open { display: block; }.search-results a { display: block; padding: 8px; text-decoration: none; border-radius: 6px; font-size: 13px; }.search-results a:hover { background: var(--soft); }
@media (max-width: 980px) {
  .docs-grid { grid-template-columns: 1fr; }.code-panel { position: relative; top: 0; }.docs-grid.single { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .docs-topbar { padding: 0 14px; gap: 12px; }.docs-label,.docs-app-link,.docs-search { display: none; }.menu-button { display: block; margin-left: auto; }
  .docs-shell { grid-template-columns: 1fr; }.docs-sidebar { display: none; position: fixed; z-index: 19; top: 64px; left: 0; width: 280px; height: calc(100vh - 64px); box-shadow: 12px 0 32px rgba(20,22,35,.12); }.docs-sidebar.open { display: block; }
  .docs-hero { padding: 48px 22px 30px; }.docs-grid { padding: 0 22px 64px; gap: 28px; }.cards { grid-template-columns: 1fr; }.field-table { display: block; overflow-x: auto; }.docs-footer { padding: 22px; flex-wrap: wrap; }
}
