:root {
  color-scheme: light;
  --bg: #fff;
  --surface: #f8f9fb;
  --hover: #f1f3f6;
  --ink: #181b23;
  --body: #525866;
  --muted: #787e8b;
  --line: #e9ebef;
  --accent: #4263eb;
  --soft: #edf2ff;
  --code: #f6f7f9;
  --code-ink: #353b49;
  --shadow: 0 16px 64px #1c25451a;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  font-size: 15px;
  line-height: 1.75;
  background: var(--bg);
  color: var(--body);
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #101113;
  --surface: #17181c;
  --hover: #202126;
  --ink: #eceef3;
  --body: #a8acb7;
  --muted: #858a98;
  --line: #282a31;
  --accent: #97acff;
  --soft: #202945;
  --code: #181a1f;
  --code-ink: #d0d4df;
  --shadow: 0 16px 64px #0007;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  scroll-padding-top: 145px;
}
body {
  margin: 0;
}
a {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 4px;
}
a:hover {
  text-decoration: underline;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.enhanced {
  display: none;
}
.js .enhanced {
  display: flex;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1440px;
  height: 74px;
  margin: auto;
  padding: 0 42px;
  display: flex;
  align-items: center;
  gap: 46px;
}
.brand {
  width: 202px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--ink);
  flex-shrink: 0;
}
.brand:hover {
  text-decoration: none;
}
.brand img {
  object-fit: contain;
  width: 100px;
  height: 28px;
}
.brand span {
  border-left: 1px solid var(--line);
  padding-left: 16px;
  font-size: 13px;
  color: var(--muted);
}
.logo-dark {
  display: none;
}
[data-theme='dark'] .logo-light {
  display: none;
}
[data-theme='dark'] .logo-dark {
  display: block;
}
.search-trigger {
  align-items: center;
  gap: 11px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  height: 37px;
  padding: 0 12px;
  text-align: left;
  font-size: 12px;
}
.header-inner > .search-trigger {
  width: 360px;
  max-width: 36vw;
}
.search-trigger kbd {
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 4px;
  background: var(--bg);
  font-size: 10px;
  white-space: nowrap;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  white-space: nowrap;
  font-size: 12px;
}
.dashboard-link {
  color: var(--body);
}
.dashboard-link span {
  margin-left: 6px;
  color: var(--muted);
}
.icon-button {
  padding: 5px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 5px;
}
.icon-button:hover {
  background: var(--hover);
  color: var(--ink);
}
.sun {
  display: none;
}
[data-theme='dark'] .moon {
  display: none;
}
[data-theme='dark'] .sun {
  display: block;
}
.key-button,
.primary-button {
  background: var(--ink);
  color: var(--bg);
  border-radius: 7px;
  padding: 7px 13px;
  font-size: 12px;
  font-weight: 550;
}
.key-button span {
  margin-left: 10px;
}
.key-button:hover,
.primary-button:hover {
  text-decoration: none;
  opacity: 0.85;
}
.header-tabs {
  display: flex;
  gap: 28px;
  max-width: 1440px;
  margin: auto;
  padding: 0 42px;
  height: 43px;
  align-items: stretch;
}
.header-tabs a {
  color: var(--muted);
  font-size: 12px;
  display: flex;
  align-items: center;
  position: relative;
}
.header-tabs a[aria-current='page'] {
  color: var(--ink);
  font-weight: 550;
}
.header-tabs a[aria-current='page']::after {
  content: '';
  position: absolute;
  bottom: -1px;
  height: 2px;
  background: var(--ink);
  width: 100%;
}
.layout {
  display: grid;
  grid-template-columns: 206px minmax(0, 760px) 174px;
  gap: 48px;
  max-width: 1440px;
  padding: 0 42px;
  margin: 0 auto;
}
.sidebar {
  position: sticky;
  top: 117px;
  height: calc(100vh - 117px);
  display: flex;
  flex-direction: column;
  padding: 28px 0 16px;
  overflow-y: auto;
}
.sidebar nav {
  font-size: 13px;
}
.nav-label {
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  margin: 26px 11px 9px;
}
.nav-label:first-child {
  margin-top: 0;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--body);
  padding: 7px 11px;
  margin: 2px 0;
  border-radius: 6px;
  line-height: 1.6;
}
.sidebar nav a svg {
  width: 15px;
  height: 15px;
  color: var(--muted);
}
.sidebar nav a:hover {
  text-decoration: none;
  background: var(--hover);
  color: var(--ink);
}
.sidebar nav a[aria-current='page'] {
  background: var(--soft);
  color: var(--accent);
  font-weight: 550;
}
.sidebar nav a[aria-current='page'] svg {
  color: var(--accent);
}
.sidebar-bottom {
  margin-top: auto;
  padding: 40px 10px 0;
  color: var(--muted);
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.sidebar-badge {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
}
main {
  min-width: 0;
  padding: 36px 0 28px;
  outline: none;
}
.doc-page {
  padding: 0 0 24px;
}
.doc-page:not(:last-of-type) {
  margin-bottom: 44px;
}
.js .doc-page {
  margin-bottom: 0;
}
.eyebrow {
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  margin: 0 0 10px;
  letter-spacing: 0.1px;
}
h1,
.page-title {
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: -1.1px;
  color: var(--ink);
  font-weight: 650;
  margin: 0 0 17px;
}
h2 {
  color: var(--ink);
  font-size: 19px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.4px;
  margin: 33px 0 12px;
}
h3 {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: -0.15px;
  margin: 28px 0 10px;
}
p {
  margin: 12px 0;
}
strong {
  color: var(--ink);
  font-weight: 600;
}
.lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  margin: 0 0 13px;
}
.intro {
  max-width: 660px;
  font-size: 14px;
  margin-top: 0;
  line-height: 1.8;
}
.intro-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 24px 0 29px;
}
.primary-button {
  padding: 9px 14px;
}
.primary-button span {
  margin-left: 18px;
}
.text-button {
  color: var(--body);
  font-size: 12px;
}
.text-button span {
  margin-left: 8px;
}
.request-preview {
  background: var(--code);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin: 26px 0 35px;
}
.preview-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.preview-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 500;
}
.terminal-mark {
  font-family: monospace;
  font-size: 16px;
  color: var(--muted);
}
.version {
  color: var(--muted);
  font-size: 10px;
}
.request-preview pre {
  border: 0;
  padding: 21px;
  margin: 0;
  border-radius: 0;
  font-size: 12px;
  line-height: 1.85;
}
.preview-bottom {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 10px 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 10px;
  color: var(--muted);
}
.preview-bottom > span:first-child {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--body);
  font-family: monospace;
}
.preview-bottom > span:last-child {
  display: flex;
  gap: 10px;
}
.status-dot,
.environment-dot {
  width: 6px;
  height: 6px;
  background: #3aab72;
  border-radius: 50%;
  display: inline-block;
}
.environment-dot {
  margin-right: 9px;
}
.environment-dot.staging {
  background: #c1913c;
}
.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin: 17px 0 35px;
}
.guide-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 18px;
  color: var(--body);
  transition:
    border-color 0.15s,
    background 0.15s;
}
.guide-card:hover {
  background: var(--surface);
  border-color: var(--accent);
  text-decoration: none;
}
.card-icon {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  width: 31px;
  height: 31px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: monospace;
  font-size: 17px;
  margin-bottom: 12px;
}
.guide-card strong {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}
.guide-card strong span {
  color: var(--muted);
  font-weight: 400;
}
.guide-card p {
  font-size: 12px;
  margin: 6px 0 0;
  line-height: 1.7;
  max-width: 245px;
}
.endpoint-link {
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px 18px;
  margin: 10px 0;
  color: var(--body);
}
.endpoint-link:hover {
  text-decoration: none;
  background: var(--surface);
}
.endpoint-link div {
  min-width: 0;
}
.endpoint-link strong {
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
}
.endpoint-link code {
  display: block;
  font-size: 10px;
  background: none;
  padding: 0;
  color: var(--muted);
}
.endpoint-link > span:last-child {
  margin-left: auto;
  color: var(--muted);
}
.method {
  font:
    600 9px/1.5 'SFMono-Regular',
    Consolas,
    monospace;
  border-radius: 4px;
  padding: 2px 5px;
  flex-shrink: 0;
  min-width: 31px;
  text-align: center;
}
.post {
  color: #267d58;
  background: #e8f6ee;
}
.get {
  color: #326ba7;
  background: #e9f1ff;
}
[data-theme='dark'] .post {
  color: #83d6ac;
  background: #1e352b;
}
[data-theme='dark'] .get {
  color: #8bbdff;
  background: #1c2e47;
}
.endpoint {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 13px 15px;
  border-radius: 7px;
  margin: 18px 0;
}
.endpoint code {
  background: transparent;
  padding: 0;
  font-size: 11px;
}
.on-this-page {
  position: sticky;
  top: 150px;
  height: max-content;
  flex-direction: column;
  margin-top: 35px;
  font-size: 11px;
}
.on-this-page > p {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--ink);
  font-weight: 550;
  margin: 0 0 13px;
}
.on-this-page svg {
  width: 14px;
  height: 14px;
}
#page-outline {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
}
#page-outline a {
  padding: 5px 0 5px 13px;
  color: var(--muted);
  line-height: 1.65;
}
#page-outline a:hover {
  color: var(--accent);
  text-decoration: none;
}
.help-card {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.help-card strong {
  font-size: 11px;
}
.help-card p {
  line-height: 1.7;
  margin: 7px 0 10px;
}
.help-card a {
  font-size: 11px;
}
code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-size: 0.83em;
  color: var(--code-ink);
  background: var(--code);
  border-radius: 4px;
  padding: 2px 4px;
  overflow-wrap: anywhere;
}
pre {
  color: var(--code-ink);
  background: var(--code);
  border: 1px solid var(--line);
  padding: 19px;
  border-radius: 8px;
  overflow-x: auto;
  line-height: 1.9;
  font-size: 11px;
  tab-size: 2;
}
pre code {
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  font-size: inherit;
  overflow-wrap: normal;
}
.code-card {
  background: var(--code);
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  margin: 17px 0;
}
.code-card pre {
  border: 0;
  border-radius: 0;
  margin: 0;
}
.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 15px;
  border-bottom: 1px solid var(--line);
  color: var(--body);
  font-size: 10px;
}
.code-header button {
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--body);
  border-radius: 5px;
  padding: 3px 9px;
  font-size: 10px;
}
.code-header button:hover {
  background: var(--hover);
}
.syntax-string {
  color: #176b50;
}
.syntax-command {
  color: #7255b5;
}
.syntax-variable {
  color: #a56519;
}
[data-theme='dark'] .syntax-string {
  color: #91c9b0;
}
[data-theme='dark'] .syntax-command {
  color: #baa0ef;
}
[data-theme='dark'] .syntax-variable {
  color: #e4bc83;
}
.environment-control {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: var(--muted);
}
select {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--ink);
  padding: 5px 9px;
  font-size: 11px;
}
.table-wrap {
  overflow-x: auto;
  margin: 18px 0 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 13px;
}
th {
  background: var(--surface);
  font-size: 10px;
  color: var(--muted);
  font-weight: 550;
}
th,
td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
tr:last-child td {
  border-bottom: 0;
}
td:first-child {
  min-width: 122px;
}
td code {
  font-size: 10px;
}
#create table {
  min-width: 650px;
}
#create td:first-child {
  min-width: 225px;
}
#create td:first-child code {
  white-space: nowrap;
  font-size: 11px;
}
small {
  display: block;
  color: var(--accent);
  font-size: 9px;
  margin-top: 6px;
}
.note {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 6px;
  padding: 12px 15px;
  color: var(--body);
  font-size: 12px;
  line-height: 1.8;
  margin: 20px 0;
}
li {
  margin: 9px 0;
}
ul {
  padding-left: 21px;
}
.page-pagination {
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 25px;
  margin: 20px 0 32px;
}
.page-pagination a {
  width: 50%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 15px;
}
.page-pagination a:hover {
  text-decoration: none;
  border-color: var(--accent);
}
.page-pagination a span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 3px;
}
.page-pagination a strong {
  font-size: 12px;
  font-weight: 500;
}
#next-page {
  margin-left: auto;
  text-align: right;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  color: var(--muted);
  font-size: 10px;
}
footer a {
  color: var(--muted);
}
dialog {
  background: var(--bg);
  color: var(--body);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  width: min(590px, calc(100% - 32px));
  margin: 16vh auto auto;
  box-shadow: var(--shadow);
}
dialog::backdrop {
  background: #0b102967;
  backdrop-filter: blur(3px);
}
.search-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 14px 18px;
}
.search-input-row input {
  border: 0;
  color: var(--ink);
  background: none;
  outline: none;
  width: 100%;
  min-width: 0;
  font-size: 14px;
}
.search-input-row button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  border-radius: 4px;
  font-size: 10px;
  padding: 2px 6px;
}
#search-results {
  max-height: 45vh;
  overflow-y: auto;
  padding: 10px;
}
#search-results > p {
  margin: 20px 12px;
  font-size: 12px;
}
#search-results a {
  display: block;
  padding: 12px;
  border-radius: 7px;
  color: var(--body);
}
#search-results a:hover,
#search-results a:focus {
  background: var(--soft);
  text-decoration: none;
}
#search-results strong {
  display: block;
  font-size: 13px;
}
#search-results span {
  display: block;
  color: var(--muted);
  margin-top: 3px;
  font-size: 11px;
}
.search-footer {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 11px 18px;
  font-size: 10px;
  color: var(--muted);
}
.sr-only,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  padding: 9px;
  background: var(--bg);
  color: var(--ink);
  z-index: 50;
}
.mobile-bar {
  display: none !important;
}
@media (min-width: 1600px) {
  .layout,
  .header-inner,
  .header-tabs {
    max-width: 1480px;
  }
  .layout {
    grid-template-columns: 218px minmax(0, 790px) 182px;
    gap: 56px;
  }
}
@media (max-width: 1190px) {
  .layout {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 40px;
    max-width: 1080px;
    padding: 0 30px;
  }
  .on-this-page {
    display: none !important;
  }
  .header-inner,
  .header-tabs {
    padding-left: 30px;
    padding-right: 30px;
  }
  .header-inner {
    gap: 35px;
  }
  .brand {
    width: 200px;
  }
  .header-actions {
    gap: 15px;
  }
  .header-inner > .search-trigger {
    width: 300px;
  }
  .dashboard-link {
    display: none;
  }
}
@media (max-width: 760px) {
  .header-inner {
    height: 62px;
    padding: 0 20px;
    gap: 16px;
  }
  .brand {
    width: auto;
    gap: 11px;
  }
  .brand img {
    width: 85px;
    height: 24px;
  }
  .brand span {
    padding-left: 11px;
    font-size: 11px;
  }
  .header-inner > .search-trigger {
    display: none;
  }
  .header-actions {
    gap: 13px;
  }
  .key-button {
    font-size: 10px;
    padding: 6px 9px;
  }
  .key-button span {
    margin-left: 5px;
  }
  .header-tabs {
    padding: 0 20px;
    height: 41px;
    gap: 24px;
  }
  .header-tabs a {
    font-size: 11px;
  }
  .js .mobile-bar {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 104px;
    z-index: 15;
    height: 46px;
    padding: 0 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .menu-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--body);
    font-size: 12px;
  }
  .menu-toggle svg {
    width: 16px;
    height: 16px;
  }
  .mobile-search {
    padding: 5px;
    background: none;
    border: 0;
    height: auto;
  }
  .mobile-search svg {
    width: 17px;
    height: 17px;
  }
  .layout {
    display: block;
    padding: 0 22px;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 20px 0;
  }
  .sidebar-bottom {
    display: none;
  }
  .js .sidebar {
    display: none;
    position: fixed;
    top: 150px;
    bottom: 0;
    left: 0;
    width: min(320px, 90vw);
    height: auto;
    z-index: 16;
    background: var(--bg);
    border-right: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 25px 20px;
  }
  .js .sidebar.is-open {
    display: block;
  }
  main {
    padding-top: 28px;
  }
  h1,
  .page-title {
    font-size: 29px;
  }
  .lead {
    font-size: 16px;
  }
  .intro {
    font-size: 13px;
  }
  .intro-actions {
    gap: 15px;
  }
  .primary-button {
    font-size: 11px;
    padding: 8px 12px;
  }
  .primary-button span {
    margin-left: 8px;
  }
  .text-button {
    font-size: 11px;
  }
  .version {
    display: none;
  }
  .preview-bottom {
    font-size: 9px;
    padding: 10px 13px;
  }
  .preview-bottom > span:last-child {
    gap: 5px;
  }
  .request-preview pre {
    font-size: 10px;
    padding: 16px;
  }
  .guide-grid {
    gap: 11px;
  }
  .guide-card {
    padding: 15px;
  }
  .guide-card strong {
    font-size: 12px;
  }
  .guide-card p {
    font-size: 11px;
  }
  .endpoint-link {
    padding: 13px;
    gap: 11px;
  }
  .endpoint-link code {
    font-size: 9px;
  }
  .endpoint-link > span:last-child {
    display: none;
  }
  .endpoint {
    padding: 10px;
    gap: 8px;
  }
  .endpoint code {
    font-size: 10px;
  }
  h2 {
    font-size: 18px;
  }
  pre {
    font-size: 10px;
    padding: 14px;
  }
  th,
  td {
    padding: 11px;
  }
  td:first-child {
    min-width: 104px;
  }
  td code {
    font-size: 9px;
  }
  .search-footer {
    font-size: 9px;
  }
  footer {
    font-size: 9px;
  }
}
@media (max-width: 370px) {
  .brand span {
    display: none;
  }
  .guide-grid {
    grid-template-columns: 1fr;
  }
  .intro-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .preview-bottom > span:last-child {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
