:root {
  --bg: #000;
  --card: #0d0d0d;
  --border: #262626;
  --lift: #141414;
  --text: #fff;
  --text-dim: #8a8a8a;
  --text-mid: #ccc;
  --accent: #4ADE16;
  color-scheme: dark;
}




:root[data-theme="light"] {
  --bg: #ffffff;
  --card: #f7f7f9;
  --border: #d8d8dd;
  --lift: #ececf0;
  --text: #000000;
  --text-dim: #6c6c70;
  --text-mid: #3c3c43;
  --accent: #1c1c1e;
  color-scheme: light;
}






* { box-sizing: border-box; }
body {
  margin: 0;
  padding: 0 20px 96px;
  background: var(--bg);
  color: var(--text-mid);
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 760px; margin: 0 auto; }
header { padding: 56px 0 8px; }
h1 { color: var(--text); font-size: 28px; margin: 0 0 6px; letter-spacing: -0.01em; }
h1 span { color: var(--accent); }
.lede { color: var(--text-dim); margin: 0 0 8px; }

h2 {
  color: var(--text); font-size: 23px; font-weight: 700; letter-spacing: -0.015em;
  margin: 48px 0 14px; padding-top: 22px; border-top: 1px solid var(--border);
}
h3 { color: var(--text); font-size: 15px; margin: 24px 0 6px; }

h2, h3 { scroll-margin-top: 24px; }

.toc {
  background: var(--card); border: 1px solid var(--border); border-radius: 6px;
  padding: 12px 18px; margin: 14px 0 22px;
}
.toc__label { display: none; }
.toc ul { margin: 0; padding: 0; list-style: none; }
.toc li { margin: 0; }
.toc a {
  display: block; padding: 5px 0;
  color: var(--text-mid); text-decoration: none; font-size: 14px;
}
.toc a:hover { color: var(--accent); }

@media (max-width: 620px) {
  .toc a { padding: 11px 0; }
}

@media (min-width: 1260px) {
  .docs-nav {
    position: fixed; top: 40px; left: calc(50% - 600px); width: 190px;
    padding: 0; margin: 0;
  }
  .toc {
    position: fixed; top: 108px; left: calc(50% - 600px); width: 190px;
    max-height: calc(100vh - 155px); overflow-y: auto; scrollbar-width: none;
    background: none; border: 0; border-radius: 0; padding: 0; margin: 0;
  }
  .toc__label {
    display: block; margin: 0 0 8px;
    color: var(--text-dim); font-size: 11px; font-weight: 600;
    letter-spacing: 0.06em; text-transform: uppercase;
  }
  .toc a { padding: 4px 0; font-size: 13px; color: var(--text-dim); }
  .toc a.is-current { color: var(--accent); }
}
p { margin: 0 0 12px; }
a { color: var(--accent); }
strong { color: var(--text); font-weight: 600; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px; background: var(--lift); color: var(--text);
  padding: 1px 5px; border-radius: 3px;
}
pre {
  background: var(--card); border: 1px solid var(--border); border-radius: 6px;
  padding: 14px 16px; overflow-x: auto; margin: 0 0 14px;
}
pre code { background: none; padding: 0; font-size: 13px; line-height: 1.55; color: var(--text-mid); }
.note {
  background: var(--card); border: 1px solid var(--border); border-left: 2px solid var(--accent);
  border-radius: 6px; padding: 12px 16px; margin: 0 0 18px;
}
.note p:last-child { margin-bottom: 0; }
.hero {
  background: color-mix(in srgb, var(--accent) 7%, var(--card));
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 8px; padding: 18px 20px; margin: 0 0 20px;
}
.hero h2 { margin-top: 0; border: 0; padding: 0; }
.hero p:last-child { margin-bottom: 0; }
.hero ol { margin: 0 0 12px 18px; padding-left: 20px; }
table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 14px; display: block; overflow-x: auto; }
th, td { text-align: left; padding: 7px 14px 7px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--text-dim); font-weight: 500; white-space: nowrap; }
#limit-table td:first-child { white-space: nowrap; text-align: right; width: 90px; }
#endpoint-table td:first-child { width: 55%; }

ul { margin: 12px 0 16px 18px; padding-left: 20px; }
li { margin-bottom: 5px; }
.dim { color: var(--text-dim); }
footer { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--text-dim); font-size: 13px; }
.loading { color: var(--text-dim); font-style: italic; }

.docs-nav {
  display: flex; gap: 18px; align-items: baseline;
  padding: 18px 0 0; font-size: 13px;
}
.docs-nav a { color: var(--text-dim); text-decoration: none; }
.docs-nav a:hover { color: var(--accent); }
.docs-nav [aria-current="page"] { color: var(--accent); }

.q { color: var(--accent); font-size: 15.5px; font-weight: 600; margin: 36px 0 8px; }
.q + p:not(.q) { margin-bottom: 0; }
.q + p + p:not(.q) { margin-top: 12px; }
.contact { font-size: 16px; }
.nobreak { white-space: nowrap; }

body.page-404 { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 0 20px; }
.four04 { max-width: 460px; text-align: center; }
.four04__code {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 76px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.four04__line { color: var(--text); font-size: 20px; margin: 0 0 10px; }
.four04__note { color: var(--text-dim); font-size: 14px; margin: 0 0 28px; }
.four04__links { display: flex; gap: 20px; justify-content: center; font-size: 14px; }
