@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/Inter-latin.woff2') format('woff2');
  unicode-range: U+0-FF,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/Inter-cyrillic.woff2') format('woff2');
  unicode-range: U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116;
}

/* Original ToAPIs documentation palette and typography. */
:root {
  color-scheme: light;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --color-fd-background: #fff;
  --color-fd-foreground: #17191d;
  --color-fd-card: #fff;
  --color-fd-card-foreground: #17191d;
  --color-fd-popover: #fff;
  --color-fd-popover-foreground: #17191d;
  --color-fd-secondary: #f6f7f8;
  --color-fd-secondary-foreground: #515357;
  --color-fd-muted: #f8f9fa;
  --color-fd-muted-foreground: #717377;
  --color-fd-accent: #f3f4f6;
  --color-fd-accent-foreground: #17191d;
  --color-fd-border: #e5e7eb;
  --color-fd-primary: #2563eb;
  --color-fd-primary-foreground: #fff;
  --color-fd-ring: #2563eb;
  --docs-topbar-height: 112px;
  --docs-sidebar-width: 268px;
  --docs-toc-width: 268px;
}

html.dark {
  color-scheme: dark;
  --color-fd-background: #0a0b10;
  --color-fd-foreground: #f3f4f6;
  --color-fd-card: #171717;
  --color-fd-card-foreground: #f3f4f6;
  --color-fd-popover: #171717;
  --color-fd-popover-foreground: #f3f4f6;
  --color-fd-secondary: #202020;
  --color-fd-secondary-foreground: #d1d5db;
  --color-fd-muted: #181818;
  --color-fd-muted-foreground: #a1a1aa;
  --color-fd-accent: #242424;
  --color-fd-accent-foreground: #fff;
  --color-fd-border: #292929;
  --color-fd-primary: #60a5fa;
  --color-fd-ring: #60a5fa;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--docs-topbar-height) + 20px);
  overflow-anchor: none;
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  background-color: var(--color-fd-background);
  color: var(--color-fd-foreground);
  line-height: 1.5;
  overflow-x: clip;
  overflow-anchor: none;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: transparent; border: 0; padding: 0; }
img { max-width: 100%; height: auto; }
.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;
}

/* Top header bar */
.docs-brand { display: block; width: 150px; height: 40px; }
.docs-brand-dark { display: none; }
.dark .docs-brand-light { display: none; }
.dark .docs-brand-dark { display: block; }

.docs-topbar {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--docs-topbar-height);
  border-bottom: 1px solid oklab(0.555103 -0.000607878 -0.00657812 / 0.05);
  background: var(--color-fd-background);
}
.docs-topbar-inner {
  max-width: 97rem; height: 64px; margin-inline: auto; padding-inline: 48px;
  display: flex; align-items: center; gap: 20px;
  border-bottom: 1px solid oklab(0.555103 -0.000607878 -0.00657812 / 0.05);
}
.dark .docs-topbar, .dark .docs-topbar-inner { border-bottom-color: rgb(209 213 219 / 6%); }

.docs-mobile-menu-btn {
  display: none; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 8px;
  color: var(--color-fd-muted-foreground); cursor: pointer; flex-shrink: 0;
}
.docs-mobile-menu-btn:hover { background: var(--color-fd-accent); color: var(--color-fd-foreground); }

.docs-topbar-brand { flex-shrink: 0; }
.docs-topbar-brand .docs-brand { width: 112px; height: 30px; }
.docs-header-language {
  max-width: 140px; border: 0; border-radius: 10px; padding: 6px 8px;
  font-size: 14px; font-weight: 500; cursor: pointer; background: transparent;
}
.docs-header-language option, .docs-theme-control option {
  background: var(--color-fd-popover); color: var(--color-fd-foreground);
}
.docs-header-language:hover { background: var(--color-fd-accent); }

.docs-header-search {
  display: flex; align-items: center; gap: 10px;
  width: min(32vw, 450px); height: 36px; margin-inline: auto; padding-inline: 14px;
  border: 1px solid var(--color-fd-border); border-radius: 12px;
  color: var(--color-fd-muted-foreground); font-size: 14px; cursor: pointer;
  transition: border-color .15s, color .15s;
}
.docs-header-search:hover { border-color: #9ca3af; color: var(--color-fd-foreground); }
.docs-header-search kbd { margin-left: auto; font-family: inherit; font-size: 12px; font-weight: 600; }

.docs-topbar-actions { display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.docs-social-link { color: var(--color-fd-secondary-foreground); transition: color .15s; }
.docs-social-link:hover { color: var(--color-fd-foreground); }
.docs-console-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px;
  border-radius: 12px; background: #1d4ed8; color: #fff; transition: background .15s;
}
.docs-console-link:hover { background: #2563eb; }

.docs-theme-control {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 32px; color: var(--color-fd-muted-foreground); border-radius: 8px;
}
.docs-theme-control:hover { background: var(--color-fd-accent); color: var(--color-fd-foreground); }
.docs-theme-control select { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.docs-theme-light, .docs-theme-dark { display: none; }
.docs-theme-control[data-theme="light"] .docs-theme-system,
.docs-theme-control[data-theme="dark"] .docs-theme-system { display: none; }
.docs-theme-control[data-theme="light"] .docs-theme-light,
.docs-theme-control[data-theme="dark"] .docs-theme-dark { display: block; }

.docs-header-tabs {
  max-width: 97rem; margin-inline: auto; height: 48px; padding-inline: 48px;
  display: flex; align-items: stretch;
}
.docs-header-tabs a {
  display: flex; align-items: center; border-bottom: 2px solid var(--color-fd-primary);
  font-size: 14px; font-weight: 600;
}
.docs-header-tabs a:hover { color: var(--color-fd-primary); }
.docs-topbar :is(a, button, select):focus-visible { outline: 2px solid var(--color-fd-ring); outline-offset: 3px; }

/* Main layout shell */
#nd-docs-layout.docs-with-topbar {
  padding-top: var(--docs-topbar-height);
  max-width: 97rem;
  margin-inline: auto;
  display: grid;
  grid-template-columns: var(--docs-sidebar-width) minmax(0, 1fr);
  min-height: 100dvh;
}

/* Sidebar */
#nd-sidebar {
  position: sticky;
  top: var(--docs-topbar-height);
  height: calc(100dvh - var(--docs-topbar-height));
  background: var(--color-fd-background);
  overflow-y: auto;
  padding: 40px 30px 36px 30px;
  font-size: 14px;
  line-height: 20px;
  scrollbar-width: thin;
}
.docs-sidebar-tree { display: flex; flex-direction: column; gap: 26px; }
.docs-nav-section { display: flex; flex-direction: column; gap: 2px; }
.docs-nav-heading {
  padding: 0 8px;
  margin-bottom: 4px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: var(--color-fd-foreground);
}
.docs-nav-list, .docs-nav-sublist {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 2px;
}
.docs-nav-sublist {
  position: relative;
  margin-left: 0; padding-left: 0; margin-top: 2px;
}
.docs-nav-sublist::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: var(--color-fd-border);
}
.docs-nav-item, .docs-nav-folder-btn {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; padding: 8px; border-radius: 8px;
  font-size: 14px; line-height: 20px; font-weight: 400;
  color: var(--color-fd-muted-foreground);
  cursor: pointer; list-style: none;
  transition: color .15s, background-color .15s;
}
.dark .docs-nav-item, .dark .docs-nav-folder-btn {
  color: #b8b8b8;
}
.docs-nav-sublist .docs-nav-item,
.docs-nav-sublist .docs-nav-folder-btn {
  padding-left: 20px;
}
.docs-nav-folder-btn::-webkit-details-marker { display: none; }
.docs-nav-item:hover, .docs-nav-folder-btn:hover {
  background: var(--color-fd-accent); color: var(--color-fd-accent-foreground);
}
.docs-nav-item[data-active="true"] {
  background: color-mix(in srgb, var(--color-fd-primary) 8%, transparent);
  color: var(--color-fd-primary);
  font-weight: 400;
}
.docs-nav-sublist .docs-nav-item[data-active="true"]::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--color-fd-primary);
}
.docs-nav-chevron { flex: none; color: inherit; transition: transform .15s; }
.docs-nav-folder[open] > .docs-nav-folder-btn .docs-nav-chevron { transform: rotate(90deg); }
.docs-nav-label { display: flex; min-width: 0; flex: 1; align-items: center; justify-content: space-between; gap: 8px; }
.docs-nav-label > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.docs-nav-tag { flex: none; border-radius: 4px; padding: 1px 6px; font-size: 11px; font-weight: 600; line-height: 16px; }
.docs-nav-tag[data-nav-tag="New"] { color: #047857; background-color: #ecfdf5; }
.dark .docs-nav-tag[data-nav-tag="New"] { color: #6ee7b7; background-color: #064e3b; }

.docs-sidebar-backdrop {
  position: fixed; inset: var(--docs-topbar-height) 0 0; z-index: 40;
  background: rgb(0 0 0 / 40%);
}

/* Main content area */
#nd-page {
  min-width: 0;
  width: 100%;
  padding: 0;
}
.docs-article-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--docs-toc-width);
  gap: 0;
  align-items: start;
}
.docs-article-wrap > article {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 900px;
  width: 100%;
  padding: 56px 32px 24px;
}
#nd-page.docs-api-page {
  max-width: none;
  padding: 56px 32px 24px;
}
.docs-api-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 40px;
  align-items: start;
}
.docs-api-main { min-width: 0; }

/* Page heading & actions */
.docs-breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  margin-bottom: 0; font-size: 14px; line-height: 20px; color: var(--color-fd-muted-foreground);
}
.docs-api-page .docs-breadcrumb { margin-bottom: 16px; }
.docs-breadcrumb-item { font-weight: 500; }
.docs-breadcrumb-item:last-child { color: var(--color-fd-primary); }
.docs-breadcrumb-sep { flex-shrink: 0; color: var(--color-fd-muted-foreground); opacity: 0.7; }
.docs-page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.docs-api-page .docs-page-heading { flex-direction: column; margin-bottom: 24px; }
.docs-page-title-block { min-width: 0; }
.docs-title { margin: 0 0 16px; font-size: 28px; font-weight: 600; line-height: 42px; letter-spacing: normal; }
.docs-description { margin: 0; font-size: 18px; font-weight: 400; color: var(--color-fd-muted-foreground); line-height: 28px; }
.docs-page-actions { position: relative; flex-shrink: 0; padding-top: 4px; font-size: 14px; }
.docs-page-actions-buttons {
  display: inline-flex; border: 1px solid var(--color-fd-border); border-radius: 10px;
  background: var(--color-fd-background); overflow: hidden;
}
.docs-page-actions-buttons button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 7px 12px; cursor: pointer; color: var(--color-fd-secondary-foreground);
  font-weight: 500; white-space: nowrap;
}
.docs-page-actions-buttons .docs-page-more { padding-inline: 8px; border-left: 1px solid var(--color-fd-border); }
.docs-page-actions button:hover, .docs-page-menu a:hover { background: var(--color-fd-accent); }
.docs-page-actions button:disabled { opacity: .6; cursor: progress; }
.docs-page-actions :is(button, a):focus-visible { outline: 2px solid var(--color-fd-ring); outline-offset: -2px; }
.docs-page-menu {
  position: absolute; z-index: 30; top: calc(100% + 6px); right: 0;
  width: min(300px, calc(100vw - 48px)); padding: 4px;
  background: var(--color-fd-popover); color: var(--color-fd-popover-foreground);
  border: 1px solid var(--color-fd-border); border-radius: 12px;
  box-shadow: 0 8px 24px rgb(0 0 0 / 10%);
}
.docs-api-page .docs-page-menu { left: 0; right: auto; }
.docs-page-menu :is(button, a) {
  display: flex; align-items: flex-start; gap: 10px; width: 100%;
  text-align: left; padding: 10px; border-radius: 7px; cursor: pointer;
}
.docs-page-menu svg { flex-shrink: 0; margin-top: 3px; }
.docs-page-menu small { display: block; margin-top: 3px; color: var(--color-fd-muted-foreground); font-size: 12px; line-height: 1.5; }
.docs-page-copy-error { display: block; margin-top: 6px; max-width: 260px; color: #dc2626; font-size: 12px; }

/* Prose typography */
.prose { font-size: 16px; line-height: 1.75rem; color: color-mix(in srgb, var(--color-fd-foreground) 90%, transparent); min-width: 0; overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose h1, .prose h2, .prose h3, .prose h4 { font-weight: 600; letter-spacing: normal; color: var(--color-fd-foreground); }
.prose strong { font-weight: 500; color: var(--color-fd-foreground); }
.prose h2 { font-size: 24px; line-height: 1.3333; margin-top: 48px; margin-bottom: 24px; }
.prose h3 { font-size: 20px; line-height: 1.6; margin-top: 32px; margin-bottom: 12px; }
.prose h4 { font-size: 16px; line-height: 1.5; margin-top: 24px; margin-bottom: 8px; }
.prose :is(h2, h3, h4) + :not(figure):not(.docs-callout) { margin-top: 0; }
.prose p { margin: 20px 0; }
.prose a:not(.docs-card-link) {
  color: var(--color-fd-foreground); font-weight: 500;
  text-decoration: underline 1.5px var(--color-fd-primary);
  text-underline-offset: 3.5px;
  transition: opacity .15s;
}
.prose a:not(.docs-card-link):hover { opacity: 0.8; }
.prose ol { margin: 1.25em 0; padding-left: 26px; }
.prose ul { margin: 1.25em 0; padding-left: 16px; }
.prose :is(ul, ol) :is(ul, ol) { margin: 0.75em 0; }
.prose li { margin: 0.5em 0; }
.prose > :is(ul, ol):first-child > li:first-child { margin-top: 0; }
.prose ol > li { padding-left: 6px; }
.prose blockquote {
  margin: 24px 0; padding: 0.5em 1em;
  border-left: 3px solid var(--color-fd-border);
  color: var(--color-fd-muted-foreground);
}
.prose hr { border: 0; border-top: 1px solid var(--color-fd-border); margin: 3em 0; }
.prose :not(pre) > code {
  font-family: var(--font-mono); font-size: 13px;
  padding: 3px; border-radius: 5px;
  background: var(--color-fd-muted); border: 1px solid var(--color-fd-border);
  overflow-wrap: break-word;
}
.docs-table-wrap { overflow-x: auto; margin: 24px 0; }
.prose table {
  display: table; width: 100%;
  border-collapse: separate; border-spacing: 0;
  margin: 0; font-size: 14px; line-height: 1.7142857;
  background: var(--color-fd-card);
  border: 1px solid var(--color-fd-border);
  border-radius: 8px;
  overflow: hidden;
}
.prose th, .prose td {
  padding: 10px; border: 0; border-bottom: 1px solid var(--color-fd-border);
  text-align: left; vertical-align: middle;
}
.prose th[align="center"], .prose td[align="center"] { text-align: center; }
.prose th[align="right"], .prose td[align="right"] { text-align: right; }
.prose th:not(:first-child), .prose td:not(:first-child) {
  border-left: 1px solid var(--color-fd-border);
}
.prose th { background: var(--color-fd-muted); font-weight: 600; color: var(--color-fd-foreground); }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose img { display: block; border-radius: 8px; border: 0; margin: 2em 0; }

/* Code blocks & Shiki github-light / github-dark syntax themes */
figure.docs-code {
  position: relative; margin: 16px 0;
  border: 1px solid var(--color-fd-border); border-radius: 12px;
  background: var(--color-fd-card); overflow: hidden;
}
.docs-code-header {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 14px; border-bottom: 1px solid var(--color-fd-border);
  background: var(--color-fd-secondary); font-size: 12px; font-weight: 500;
  color: var(--color-fd-muted-foreground);
}
figure.docs-code pre {
  margin: 0; padding: 14px 16px; overflow: auto; max-height: 600px;
  font-family: var(--font-mono); font-size: 13px; line-height: 1.43; tab-size: 2;
}
figure.docs-code code { font: inherit; background: transparent; border: 0; padding: 0; }
figure.shiki button[aria-live="polite"] {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; padding: 0; border-radius: 6px; cursor: pointer;
  color: #9ca3af; background: transparent; box-shadow: none;
}
figure.shiki button[aria-live="polite"]:hover { color: #6b7280; background: transparent; }
figure.shiki button[aria-live="polite"] svg { width: 16px; height: 16px; stroke-width: 1.5; }
figure.shiki button[aria-live="polite"][data-checked] { color: #2563eb; }
figure.shiki button[aria-live="polite"][data-checked] svg { stroke-width: 2; }
.dark figure.shiki button[aria-live="polite"] { color: rgb(255 255 255 / 40%); }
.dark figure.shiki button[aria-live="polite"]:hover { color: rgb(255 255 255 / 60%); }
.dark figure.shiki button[aria-live="polite"][data-checked] { color: #3b82f6; }
.docs-code-copy-floating { position: absolute; top: 10px; right: 10px; z-index: 2; }

/* Shiki github-light / github-dark compatible syntax colors */
.chroma .c, .chroma .ch, .chroma .cm, .chroma .c1, .chroma .cs { color: #6a737d; }
.chroma .k, .chroma .kc, .chroma .kd, .chroma .kn, .chroma .kp, .chroma .kr, .chroma .kt { color: #d73a49; }
.chroma .s, .chroma .sa, .chroma .sb, .chroma .sc, .chroma .dl, .chroma .sd, .chroma .s2, .chroma .sh, .chroma .si, .chroma .sx, .chroma .sr, .chroma .s1, .chroma .ss { color: #032f62; }
.chroma .se { color: #005cc5; }
.chroma .m, .chroma .mb, .chroma .mf, .chroma .mh, .chroma .mi, .chroma .il, .chroma .mo { color: #005cc5; }
.chroma .nt { color: #22863a; }
.chroma .na, .chroma .nv { color: #005cc5; }
.chroma .nf, .chroma .fm, .chroma .nc { color: #6f42c1; }
.chroma .nb, .chroma .bp { color: #005cc5; }
.chroma .o, .chroma .ow { color: #d73a49; }
.dark .chroma { color: #e1e4e8; }
.dark .chroma .c, .dark .chroma .ch, .dark .chroma .cm, .dark .chroma .c1, .dark .chroma .cs { color: #6a737d; }
.dark .chroma .k, .dark .chroma .kc, .dark .chroma .kd, .dark .chroma .kn, .dark .chroma .kp, .dark .chroma .kr, .dark .chroma .kt { color: #f97583; }
.dark .chroma .s, .dark .chroma .sa, .dark .chroma .sb, .dark .chroma .sc, .dark .chroma .dl, .dark .chroma .sd, .dark .chroma .s2, .dark .chroma .sh, .dark .chroma .si, .dark .chroma .sx, .dark .chroma .sr, .dark .chroma .s1, .dark .chroma .ss { color: #9ecbff; }
.dark .chroma .se { color: #79b8ff; }
.dark .chroma .m, .dark .chroma .mb, .dark .chroma .mf, .dark .chroma .mh, .dark .chroma .mi, .dark .chroma .il, .dark .chroma .mo { color: #79b8ff; }
.dark .chroma .nt, .dark .chroma .na, .dark .chroma .nv { color: #79b8ff; }
.dark .chroma .nf, .dark .chroma .fm, .dark .chroma .nc { color: #b392f0; }
.dark .chroma .nb, .dark .chroma .bp { color: #b392f0; }
.dark .chroma .o, .dark .chroma .ow { color: #f97583; }

/* Mintlify Callouts */
.docs-callout {
  --docs-callout-bg: #eff6ff;
  --docs-callout-border: #bfdbfe;
  --docs-callout-text: #1e40af;
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px 20px; margin-block: 16px;
  border-radius: 16px; border: 1px solid var(--docs-callout-border);
  background: var(--docs-callout-bg); color: var(--docs-callout-text);
  font-size: 14px; line-height: 20px;
}
.docs-callout[data-docs-callout="warning"] { --docs-callout-bg: #fefce8; --docs-callout-border: #fef08a; --docs-callout-text: #854d0e; }
.docs-callout[data-docs-callout="idea"],
.docs-callout[data-docs-callout="success"] { --docs-callout-bg: #f0fdf4; --docs-callout-border: #bbf7d0; --docs-callout-text: #166534; }
.docs-callout[data-docs-callout="error"] { --docs-callout-bg: #fef2f2; --docs-callout-border: #fecaca; --docs-callout-text: #991b1b; }
.docs-callout-icon { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; stroke-width: 2; }
.docs-callout-content { min-width: 0; flex: 1; }
.docs-callout-content p { margin: 0 0 8px; }
.docs-callout-content > :last-child { margin-bottom: 0; }
.docs-callout-content ul > :first-child, .docs-callout-content ol > :first-child { margin-top: 0; }
.docs-callout-content ul > :last-child, .docs-callout-content ol > :last-child { margin-bottom: 0; }
.docs-callout-title { font-weight: 600; margin: 0 0 6px; }
.prose .docs-callout strong, .prose .docs-callout a, .prose .docs-callout :not(pre) > code { color: inherit; }
.prose .docs-callout :not(pre) > code { background: transparent; border: 0; box-shadow: none; padding: 3px; line-height: 18.5714px; }
.dark .docs-callout { --docs-callout-bg: #172554; --docs-callout-border: #1e40af; --docs-callout-text: #bfdbfe; }
.dark .docs-callout[data-docs-callout="warning"] { --docs-callout-bg: #422006; --docs-callout-border: #854d0e; --docs-callout-text: #fef08a; }
.dark .docs-callout[data-docs-callout="idea"],
.dark .docs-callout[data-docs-callout="success"] { --docs-callout-bg: #052e16; --docs-callout-border: #166534; --docs-callout-text: #bbf7d0; }
.dark .docs-callout[data-docs-callout="error"] { --docs-callout-bg: #450a0a; --docs-callout-border: #991b1b; --docs-callout-text: #fecaca; }

/* Mintlify Cards, Steps, Tabs, Accordions, Expandable, ParamField */
.docs-cards { display: grid; gap: 12px; margin: 0; grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .docs-cards-cols-2, .docs-cards-cols-3, .docs-cards-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
  .docs-cards-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .docs-cards-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.docs-card {
  display: flex; flex-direction: column; gap: 4px; padding: 16px;
  border: 1px solid var(--color-fd-border); border-radius: 12px;
  background: var(--color-fd-card); color: var(--color-fd-card-foreground);
  transition: border-color .15s, background-color .15s;
}
.docs-card-link:hover { background: color-mix(in srgb, var(--color-fd-accent) 80%, transparent); }
.docs-card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: fit-content; padding: 6px; margin-bottom: 8px;
  border-radius: 8px; border: 1px solid var(--color-fd-border);
  background: var(--color-fd-muted); color: var(--color-fd-muted-foreground);
  box-shadow: 0 1px 2px rgb(0 0 0 / 12%);
}
.docs-fa-icon {
  display: inline-block; width: 20px; height: 20px;
  background-color: currentColor;
  mask: var(--icon-url) center / contain no-repeat;
  -webkit-mask: var(--icon-url) center / contain no-repeat;
}
.prose .docs-card-title { margin: 0 0 4px; font-size: 14px; line-height: 20px; font-weight: 500; }
.docs-card-body { font-size: 14px; line-height: 20px; color: var(--color-fd-muted-foreground); }
.docs-card-body p { margin: 0; }
.docs-card-body > :last-child { margin-bottom: 0; }

.docs-steps { counter-reset: docs-step; border-left: 1px solid var(--color-fd-border); margin: 0 0 0 14px; padding-left: 28px; }
.docs-step { position: relative; padding-bottom: 20px; counter-increment: docs-step; }
.docs-step::before {
  content: counter(docs-step);
  position: absolute; left: -42px; top: 0;
  width: 28px; height: 28px; border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-fd-secondary); border: 1px solid var(--color-fd-border);
  font-size: 13px; font-weight: 600; color: var(--color-fd-foreground);
}
.prose .docs-step > h3 { margin-top: 2px; margin-bottom: 8px; font-size: 16px; line-height: 24px; }

.docs-tabs { margin: 16px 0; border: 1px solid var(--color-fd-border); border-radius: 12px; background: var(--color-fd-secondary); overflow: hidden; }
.docs-tablist {
  display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 4px;
  padding: 0 12px; background: var(--color-fd-secondary); border-bottom: 1px solid var(--color-fd-border);
}
.docs-tablist button[role="tab"] {
  padding: 10px 12px; font-size: 13px; font-weight: 500;
  color: var(--color-fd-muted-foreground); border-bottom: 2px solid transparent;
  cursor: pointer; white-space: nowrap;
}
.docs-tablist button[role="tab"][aria-selected="true"] {
  color: var(--color-fd-primary); border-bottom-color: var(--color-fd-primary);
}
.docs-tabpanel { padding: 16px; background: var(--color-fd-background); }
.docs-tabpanel > :first-child { margin-top: 0; }
.docs-tabpanel > :last-child { margin-bottom: 0; }

.docs-accordions {
  display: flex; flex-direction: column;
  margin: 0; border: 1px solid var(--color-fd-border); border-radius: 8px;
  background: var(--color-fd-card); overflow: hidden;
}
.docs-accordion {
  border: 1px solid var(--color-fd-border); border-radius: 8px;
  margin: 16px 0; background: var(--color-fd-card); overflow: hidden;
}
.docs-accordions .docs-accordion {
  border: 0; border-radius: 0; margin: 0; background: transparent;
}
.docs-accordions .docs-accordion + .docs-accordion {
  border-top: 1px solid var(--color-fd-border);
}
.docs-accordion > summary {
  cursor: pointer; font-weight: 500; font-size: 16px; line-height: 28px;
  color: var(--color-fd-foreground); list-style: none;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
}
.docs-accordion > summary::-webkit-details-marker { display: none; }
.docs-accordion-chevron {
  flex: none; color: var(--color-fd-muted-foreground); transition: transform .15s;
}
.docs-accordion[open] > summary .docs-accordion-chevron { transform: rotate(90deg); }
.docs-accordion-body { padding: 0 16px 16px; }
.docs-accordion-body > :first-child { margin-top: 0; }
.docs-accordion-body > :last-child { margin-bottom: 0; }

.docs-expandable {
  border: 1px solid var(--color-fd-border); border-radius: 8px;
  padding: 16px; margin: 16px 0; background: transparent;
}
.docs-expandable > summary {
  cursor: pointer; font-weight: 500;
}
.docs-expandable-body { margin-top: 16px; }
.docs-expandable-body > :last-child { margin-bottom: 0; }

.docs-field { margin: 16px 0; padding-bottom: 16px; border-bottom: 1px solid var(--color-fd-border); }
.docs-field:last-child { border-bottom: 0; }
.prose .docs-field-heading { margin: 0 0 8px; font-size: 15px; line-height: 22px; }
.docs-field-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 14px; line-height: 1.42857; }
.docs-field-name { font-weight: 600; }
.docs-field-type { font-family: var(--font-mono); font-size: 13px; color: var(--color-fd-muted-foreground); }
.docs-field-loc, .docs-field-def { font-size: 12px; color: var(--color-fd-muted-foreground); }
.docs-field-req { font-size: 12px; font-weight: 500; color: #dc2626; }
.dark .docs-field-req { color: #f87171; }
.docs-field-body { margin-top: 8px; font-size: 16px; line-height: 1.75rem; }

.docs-api-page [data-mintlify-example] { display: none; }

/* Mermaid */
.docs-mermaid { margin: 24px 0; padding: 16px; min-width: 0; border: 1px solid var(--color-fd-border); border-radius: 12px; }
.docs-mermaid-diagram { overflow: auto; }
.docs-mermaid-diagram svg { display: block; margin: auto; max-width: 100%; height: auto; }
.docs-mermaid details { margin-top: 12px; font-size: 12px; }
.docs-mermaid summary, .docs-mermaid button { cursor: pointer; }
.docs-mermaid pre { overflow: auto; }

/* TOC */
.docs-toc {
  position: sticky;
  top: var(--docs-topbar-height);
  align-self: start;
  display: flex;
  flex-direction: column;
  width: var(--docs-toc-width);
  height: calc(100dvh - var(--docs-topbar-height));
  max-height: calc(100dvh - var(--docs-topbar-height));
  padding: 48px 16px 8px 0;
  overflow: hidden;
  min-width: 0;
}
.docs-toc-title {
  display: flex; align-items: center; gap: 6px;
  flex: none;
  width: 100%;
  margin: 0; font-size: 14px; line-height: 20px; font-weight: 400;
  color: var(--color-fd-muted-foreground);
}
.docs-toc-title svg { width: 16px; height: 16px; flex-shrink: 0; }
.docs-toc-scroller {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  padding: 12px 0;
  margin-left: 1px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, white 16px, white calc(100% - 16px), transparent);
  mask-image: linear-gradient(to bottom, transparent, white 16px, white calc(100% - 16px), transparent);
}
.docs-toc-scroller::-webkit-scrollbar { display: none; }
.docs-toc-list {
  position: relative;
  display: flex; flex-direction: column;
}
.docs-toc-rail {
  position: absolute;
  top: 0; left: 0;
  pointer-events: none;
}
.docs-toc-rail-bg, .docs-toc-rail-fg {
  position: absolute;
  top: 0; left: 0;
  overflow: visible;
}
.docs-toc-rail-bg path {
  stroke: color-mix(in srgb, var(--color-fd-foreground) 12%, transparent);
}
.docs-toc-rail-fg path {
  stroke: var(--color-fd-primary);
}
.docs-toc-dot {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 9999px;
  background: var(--color-fd-primary);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: top 150ms ease, left 150ms ease, opacity 150ms ease;
}
.docs-toc-link {
  position: relative;
  padding: 6px 0 6px 20px;
  font-size: 14px; line-height: 20px; font-weight: 400;
  color: var(--color-fd-muted-foreground);
  transition: color .15s;
}
.docs-toc-link:first-of-type { padding-top: 0; }
.docs-toc-link:last-of-type { padding-bottom: 0; }
.docs-toc-link:hover, .docs-toc-link[data-active="true"] { color: var(--color-fd-primary); }
.docs-toc-l3 { padding-left: 32px; }
.docs-toc-l4 { padding-left: 44px; }

/* Footer & Pager */
.docs-api-main-footer { display: flex; flex-direction: column; gap: 48px; margin-top: 0; min-width: 0; }
.docs-api-page .docs-api-main-footer { margin-top: 32px; }
.docs-pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.docs-pager.docs-pager-single { grid-template-columns: minmax(0, 1fr); }
.docs-pager-card {
  display: flex; flex-direction: column; gap: 8px; padding: 16px;
  border: 1px solid var(--color-fd-border); border-radius: 8px;
  font-size: 14px; line-height: 20px;
  transition: background-color .15s, color .15s;
}
.docs-pager-card:hover { background: color-mix(in srgb, var(--color-fd-accent) 80%, transparent); color: var(--color-fd-accent-foreground); }
.docs-pager-next { align-items: flex-end; text-align: right; }
.docs-pager-head { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--color-fd-foreground); }
.docs-pager-head svg { width: 16px; height: 16px; flex-shrink: 0; }
.docs-pager-title { font-size: 14px; font-weight: 500; color: var(--color-fd-foreground); }
.docs-pager-desc {
  margin: 0; font-size: 14px; color: var(--color-fd-muted-foreground);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.docs-social-footer { border-top: 1px solid var(--color-fd-border); padding-top: 16px; color: var(--color-fd-muted-foreground); }
.docs-social-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.docs-social-icon-btn, .docs-social-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; border-radius: 8px; font-size: 14px;
  transition: background-color .15s, color .15s;
}
.docs-social-icon-btn { width: 40px; }
.docs-social-pill { padding: 0 12px; }
.docs-social-icon-btn:hover, .docs-social-pill:hover { background: var(--color-fd-accent); color: var(--color-fd-accent-foreground); }

/* API Examples right sidebar */
.api-examples-slot { min-width: 0; }
.api-examples-sidebar {
  position: fixed; top: 152px; z-index: 10;
  display: grid; grid-auto-rows: minmax(0, 1fr); gap: 24px;
  min-width: 0; height: calc(100dvh - 184px);
}
.api-examples-sidebar.api-examples-generated { grid-auto-rows: minmax(0, min-content); }
.api-examples-generated .api-example-block { max-height: 100%; }
.api-examples-generated .api-example-block pre { flex: 0 1 auto; }
.api-example-generated-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-shrink: 0; min-height: 40px; padding: 8px 40px 8px 14px;
  background: var(--color-fd-secondary); font-size: 12px;
}
.api-example-generated-header strong { min-width: 0; font-weight: 500; }
.api-example-generated-header select { max-width: 110px; cursor: pointer; background: transparent; border: 0; }
.api-example-block {
  position: relative; display: flex; flex-direction: column; min-height: 0; min-width: 0;
  overflow: hidden; border: 1px solid var(--color-fd-border); border-radius: 16px;
  background: var(--color-fd-background);
}
.api-example-title {
  position: absolute; z-index: 1; right: 8px; top: 7px;
  display: flex; align-items: center; color: var(--color-fd-muted-foreground);
  background: var(--color-fd-secondary);
}
.api-example-title button { cursor: pointer; padding: 4px; border-radius: 5px; }
.api-example-tabs {
  display: flex; flex-shrink: 0; overflow-x: auto; scrollbar-width: none;
  gap: 16px; padding: 0 40px 0 14px; background: var(--color-fd-secondary);
}
.api-example-tabs::-webkit-scrollbar { display: none; }
.api-example-tabs button {
  flex: none; padding: 10px 0; border-bottom: 2px solid transparent;
  font-size: 12px; color: var(--color-fd-muted-foreground); cursor: pointer;
}
.api-example-tabs button[aria-selected="true"] { color: #3064e3; border-bottom-color: #3064e3; }
.api-example-block pre {
  flex: 1; min-height: 0; margin: 0; padding: 16px; overflow: auto;
  font: 12px/21.6px var(--font-mono); tab-size: 2;
  scrollbar-color: transparent transparent;
}
.api-example-block pre[data-scrolling] { scrollbar-color: #d4d4d4 transparent; }
.dark .api-example-block pre[data-scrolling] { scrollbar-color: #525252 transparent; }
.api-example-block code { font: inherit; }
.api-example-string { color: #003078; }
.api-example-number, .api-example-option { color: #0756b2; }
.dark .api-example-string { color: #9cce9e; }
.dark .api-example-number, .dark .api-example-option { color: #82b8ff; }

/* API Endpoint Bar */
.docs-api-endpoint { margin: 1.25rem 0 1.75rem; }
.docs-api-bar {
  display: flex; align-items: center; gap: 6px; height: 52px; padding: 6px;
  border: 1px solid var(--color-fd-border); border-radius: 16px;
  background: var(--color-fd-background); font: 400 16px/24px var(--font-sans);
}
.docs-api-address {
  display: flex; flex: 1; align-items: center; gap: 8px; min-width: 0; height: 38px;
  padding: 6px 0 6px 6px; border: 1px solid var(--color-fd-border); border-radius: 12px; overflow: hidden;
}
.docs-api-address > strong {
  flex: none; padding: 2px 6px; border-radius: 8px;
  background: rgb(96 165 250 / 20%); color: #1d4ed8; font: 700 14px/20px var(--font-sans);
}
.docs-api-path {
  display: flex; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none;
  white-space: nowrap; padding-right: 6px; color: #1f2937; font: 500 14px/20px var(--font-mono);
}
.docs-api-path > span { display: inline-flex; gap: 2px; }
.docs-api-path i { font-style: normal; font-weight: 400; color: #9ca3af; }
.docs-api-bar > button {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 12px; border: 0; border-radius: 12px;
  color: white; background: #3064e3; font: 500 16px/24px var(--font-sans); cursor: pointer;
}
.docs-api-bar > button:hover { opacity: .85; }
.dark .docs-api-path { color: white; }
.dark .docs-api-address > strong { color: #60a5fa; }

/* API Playground Modal */
.try-dialog {
  box-sizing: border-box; width: min(1280px, calc(100vw - 32px)); max-width: none;
  max-height: calc(100dvh - 96px); height: calc(100dvh - 96px);
  margin: auto; padding: 0; border: 1px solid var(--color-fd-border); border-radius: 24px;
  background: var(--color-fd-background); color: var(--color-fd-foreground);
  overflow: auto; font: 14px/1.65 var(--font-sans); box-shadow: 0 24px 80px #0002;
}
.try-dialog:focus, .docs-search-dialog:focus { outline: none; }
.try-dialog::backdrop { background: #0006; }
.try-dialog button { cursor: pointer; }
.try-dialog :is(button, input, select, textarea):focus-visible { outline: 2px solid var(--color-fd-primary); outline-offset: 2px; }
.try-header { display: flex; align-items: center; gap: 8px; padding: 16px 16px 8px; position: sticky; top: 0; z-index: 2; background: var(--color-fd-background); }
.try-endpoint-picker { position: relative; flex-shrink: 0; }
.try-endpoint-title { display: flex; align-items: center; gap: 8px; width: 320px; padding: 6px; border: 1px solid var(--color-fd-border); border-radius: 12px; flex-shrink: 0; }
.try-endpoint-title > span { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 500; text-align: left; }
.try-endpoint-title b, .try-path b { font: 700 14px/24px var(--font-sans); border-radius: 6px; padding: 0 6px; background: #3064e3; color: white; }
.try-endpoint-menu {
  position: absolute; top: calc(100% + 8px); left: 0; width: 380px; max-height: 60vh; overflow: auto;
  border: 1px solid var(--color-fd-border); border-radius: 12px; padding: 6px;
  background: var(--color-fd-background); box-shadow: 0 12px 40px #0002; z-index: 20;
}
.try-endpoint-menu a { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 6px; }
.try-endpoint-menu a:hover { background: var(--color-fd-secondary); }
.try-endpoint-menu b { color: #3064e3; font-size: 11px; }
.try-path { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; border: 1px solid var(--color-fd-border); padding: 6px; background: #f3f4f9; border-radius: 12px; }
.try-path b { background: #dbe7ff; color: #1749ff; }
.try-path code { flex: 1; overflow: auto; white-space: nowrap; font: 14px/24px var(--font-mono); }
.try-path i { font-style: normal; color: #9ca3af; }
.try-path > button { opacity: 0; color: #9ca3af; }
.try-path:hover > button, .try-path > button:focus-visible { opacity: 1; }
.try-send { padding: 7px 16px; border-radius: 12px; background: #3064e3; color: #fff; white-space: nowrap; }
.try-send:disabled { opacity: .5; cursor: not-allowed; }
.try-close { display: none; }
.try-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1.95fr); gap: 32px; padding: 16px; }
.try-intro { display: flex; gap: 16px; justify-content: space-between; margin-bottom: 24px; }
.try-intro h2 { font: 500 16px/24px var(--font-sans); margin: 0 0 4px; }
.try-intro p { margin: 0; color: var(--color-fd-muted-foreground); }
.try-intro > button { align-self: start; border: 1px solid var(--color-fd-border); border-radius: 8px; padding: 3px 8px; white-space: nowrap; font-size: 13px; }
.try-section { border: 1px solid var(--color-fd-border); border-radius: 16px; margin-bottom: 8px; overflow: hidden; }
.try-section summary, .try-section-heading { margin: 0 16px; padding: 10px 0; border-bottom: 1px solid #eceef2; font-weight: 500; }
.try-section summary { cursor: pointer; list-style: none; }
.try-section summary::before { content: '⌄'; color: #9ca3af; margin-right: 8px; }
.try-section:not([open]) summary { border: 0; }
.try-section-heading { display: flex; align-items: center; justify-content: space-between; }
.try-mode { display: flex; background: #eef0f4; padding: 2px; border-radius: 16px; font: 12px/18px var(--font-sans); }
.try-mode button { padding: 0 9px; border-radius: 12px; color: #717377; }
.try-mode button[aria-pressed="true"] { background: white; color: #17191d; box-shadow: 0 1px 3px #0001; }
.try-section-fields { padding: 0 16px; }
.try-field { display: grid; grid-template-columns: 1.08fr 1fr; gap: 20px; padding: 20px 0; border-top: 1px solid #eceef2; }
.try-field:first-child { border-top: 0; }
.try-field-label { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12px; }
.try-field-label code { font: 600 14px/20px var(--font-mono); }
.try-field-label > span { font: 12px/18px var(--font-mono); border-radius: 5px; padding: 1px 8px; background: #f7f7f8; color: #515357; }
.try-field-label em { font-style: normal; background: #fff1f2; color: #ef4444; border-radius: 5px; padding: 1px 8px; }
.try-field-info p { font-size: 14px; color: var(--color-fd-muted-foreground); margin: 8px 0 0; white-space: pre-line; line-height: 24px; }
.try-field-info p code { border-radius: 5px; padding: 1px 8px; background: var(--color-fd-secondary); color: var(--color-fd-foreground); font: 12px/18px var(--font-mono); }
.try-field input, .try-field select, .try-property input {
  width: 100%; min-width: 0; height: 34px; padding: 5px 10px;
  border: 1px solid var(--color-fd-border); border-radius: 8px;
  background: var(--color-fd-background); color: var(--color-fd-foreground);
  font: 14px/22px var(--font-sans);
}
.try-field input::placeholder { color: #9ca3af; }
.try-field-complex { display: block; }
.try-field-complex > .try-field-input { margin-top: 16px; }
.try-add { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--color-fd-border); border-radius: 8px; padding: 4px 8px; color: #717377; font: 13px/20px var(--font-sans); }
.try-array-item { border: 1px solid var(--color-fd-border); border-radius: 10px; padding: 12px; margin-bottom: 10px; }
.try-array-heading { display: flex; align-items: center; gap: 8px; color: #717377; margin-bottom: 8px; }
.try-array-heading > button { margin-left: auto; }
.try-object .try-field { padding: 12px 0; }
.try-property { display: flex; gap: 8px; margin-top: 8px; }
.try-optional { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 16px; background: #f3f4f9; border-top: 1px solid var(--color-fd-border); color: #717377; font-size: 14px; text-align: left; }
.try-json { padding: 16px; }
.try-json textarea { display: block; width: 100%; min-height: 280px; padding: 12px; background: var(--color-fd-background); border: 1px solid var(--color-fd-border); border-radius: 8px; font: 13px/22px var(--font-mono); }
.try-json p { font-size: 12px; color: #dc2626; margin: 8px 0 0; }
.try-results { min-width: 0; }
.try-samples { border: 1px solid #d9dce5; border-radius: 16px; background: #f3f4f9; overflow: hidden; margin-bottom: 24px; }
.try-sample-header { display: flex; align-items: center; padding: 0 12px; height: 36px; gap: 8px; }
.try-sample-header > div { display: flex; flex: 1; min-width: 0; overflow: auto; scrollbar-width: none; height: 100%; }
.try-sample-header button[role="tab"] { white-space: nowrap; padding: 0 6px; margin-right: 4px; color: #717377; font-size: 12px; border-bottom: 2px solid transparent; }
.try-sample-header button[aria-selected="true"] { color: #1749ff; border-bottom-color: #1749ff; }
.try-sample-header > button { color: #9ca3af; }
.try-samples pre { margin: 0; padding: 14px 16px; border-radius: 16px; background: var(--color-fd-background); color: #17191d; overflow: auto; font: 12px/22px var(--font-mono); tab-size: 2; white-space: pre; }
.try-code-string { color: #003078; }
.try-samples[aria-label*="响应"] .try-code-string, .try-samples[aria-label*="Response"] .try-code-string { color: #008020; }
.try-code-number, .try-code-option { color: #0054d7; }
.dark .try-path, .dark .try-samples, .dark .try-optional, .dark .try-mode { background: #161820; }
.dark .try-field-label > span { background: #24262b; color: #b7bbc5; }
.dark .try-field-label em { background: #351a22; }
.dark .try-mode button[aria-pressed="true"] { background: #30343c; color: #fff; }
.dark .try-samples pre { color: #d1d5db; }
.dark .try-code-string { color: #9cce9e; }
.dark .try-code-number, .dark .try-code-option { color: #82b8ff; }
.dark .try-field, .dark .try-section summary, .dark .try-section-heading { border-color: var(--color-fd-border); }

/* Search Dialog */
.docs-search-dialog {
  width: min(640px, calc(100vw - 32px));
  margin: max(10vh, calc(50vh - 250px)) auto auto; padding: 0;
  border: 1px solid var(--color-fd-border); border-radius: 12px;
  background: var(--color-fd-popover); color: var(--color-fd-popover-foreground);
  box-shadow: 0 24px 64px rgb(0 0 0 / 25%); overflow: hidden;
}
.docs-search-dialog::backdrop { background: rgb(0 0 0 / 20%); backdrop-filter: blur(4px); }
.docs-search-modal { display: flex; flex-direction: column; }
.docs-search-input-row {
  display: flex; align-items: center; gap: 8px; padding: 12px;
  height: 54px;
  color: var(--color-fd-muted-foreground);
}
.docs-search-modal[data-has-results="true"] .docs-search-input-row {
  border-bottom: 1px solid var(--color-fd-border);
}
.docs-search-input-row svg { width: 20px; height: 20px; flex-shrink: 0; }
.docs-search-input-row input {
  flex: 1; min-width: 0; border: 0; outline: none; background: transparent; padding: 0;
  font-size: 18px; line-height: 28px; color: var(--color-fd-foreground);
}
.docs-search-input-row input::placeholder { color: var(--color-fd-muted-foreground); }
.docs-search-close {
  border: 1px solid var(--color-fd-border); border-radius: 6px; padding: 6px 8px;
  font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 500;
  color: var(--color-fd-muted-foreground); cursor: pointer;
  transition: background-color .1s, color .1s;
}
.docs-search-close:hover { background: var(--color-fd-accent); color: var(--color-fd-accent-foreground); }
.docs-search-spinner { display: none; font-size: 12px; opacity: 0; }
.docs-search-spinner[data-loading="true"] { display: inline; opacity: 1; }
.docs-search-results {
  max-height: 460px; overflow-y: auto; padding: 4px;
}
.docs-search-groups { display: flex; flex-direction: column; gap: 0; }
.docs-search-group { display: flex; flex-direction: column; }
.docs-search-item {
  display: flex; flex-direction: column; gap: 0; padding: 8px 10px; border-radius: 8px;
  transition: background-color .12s;
}
.docs-search-item[data-active="true"], .docs-search-item:hover, .docs-search-item:focus-visible {
  background: var(--color-fd-accent); outline: none;
}
.docs-search-item-crumb {
  display: inline-flex; align-items: center; flex-wrap: wrap;
  font-size: 12px; line-height: 20px; color: var(--color-fd-muted-foreground);
}
.docs-search-item-crumb svg { width: 14px; height: 14px; flex-shrink: 0; }
.docs-search-item-title { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--color-fd-foreground); }
.docs-search-children {
  display: flex; flex-direction: column; gap: 0;
  margin: 0 0 0 12px; padding: 0 0 0 13px;
  border-left: 1px solid var(--color-fd-border);
}
.docs-search-sub {
  display: block; padding: 8px 10px; border-radius: 8px;
  font-size: 14px; line-height: 20px; color: color-mix(in srgb, var(--color-fd-foreground) 90%, transparent);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: background-color .12s, color .12s;
}
.docs-search-sub[data-active="true"], .docs-search-sub:hover, .docs-search-sub:focus-visible {
  background: var(--color-fd-accent); color: var(--color-fd-foreground); outline: none;
}
.docs-search-sub-heading {
  display: flex; align-items: center; gap: 6px; font-weight: 500; color: var(--color-fd-foreground);
}
.docs-search-hash { color: var(--color-fd-muted-foreground); }
.docs-search-table-wrap { padding: 4px 10px 8px 0; }
.docs-search-table {
  width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0;
  border: 1px solid var(--color-fd-border); border-radius: 8px;
  background: var(--color-fd-card); overflow: hidden;
  font-size: 13px; line-height: 20px;
}
.docs-search-table th:first-child:not(:only-child),
.docs-search-table td:first-child:not(:only-child) {
  width: 48%;
}
.docs-search-table th {
  padding: 6px 10px; text-align: left; font-size: 12px; font-weight: 500;
  color: var(--color-fd-muted-foreground); background: var(--color-fd-muted);
  border-bottom: 1px solid var(--color-fd-border);
}
.docs-search-table td {
  padding: 0; border-bottom: 1px solid var(--color-fd-border);
  max-width: 240px;
}
.docs-search-table tbody tr:last-child td { border-bottom: 0; }
.docs-search-table tbody tr:hover td,
.docs-search-table tbody tr[data-active="true"] td { background: var(--color-fd-accent); }
.docs-search-table-link {
  display: block; padding: 6px 10px;
  color: var(--color-fd-foreground);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.docs-search-table-link .docs-search-code {
  background: transparent; border: 0; padding: 0; font-size: 13px;
}
.docs-search-code {
  font-family: var(--font-mono); font-size: 12px;
  padding: 1px 5px; border-radius: 5px;
  background: var(--color-fd-muted); border: 1px solid var(--color-fd-border);
  color: var(--color-fd-foreground);
}
.docs-search-mark {
  background: transparent; color: var(--color-fd-primary);
  text-decoration: underline; text-underline-offset: 2px;
}
.docs-search-empty { margin: 24px 12px; text-align: center; font-size: 14px; color: var(--color-fd-muted-foreground); }

/* 404 Page */
.docs-notfound-body { display: grid; place-items: center; min-height: 100vh; }
.docs-notfound { text-align: center; padding: 32px; }
.docs-notfound h1 { font-size: 48px; margin: 0 0 8px; }
.docs-notfound p { color: var(--color-fd-muted-foreground); margin: 0 0 24px; }

/* Responsive breakpoints */
@media (max-width: 1200px) {
  .docs-article-wrap { grid-template-columns: minmax(0, 1fr); }
  .docs-toc { display: none; }
}
@media (max-width: 1100px) {
  .docs-topbar-inner { padding-inline: 24px; gap: 12px; }
  .docs-topbar-actions { gap: 14px; }
  .docs-header-tabs { padding-inline: 24px; }
  .docs-topbar-actions .docs-social-link { display: none; }
  .docs-api-content-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .api-examples-sidebar { position: static; width: auto !important; height: auto; grid-auto-rows: auto; }
  .api-example-block pre { flex: auto; max-height: 420px; }
}
/* Mobile subnav & TOC disclosure bars (hidden on desktop) */
.docs-mobile-subnav, .docs-mobile-toc { display: none; }

@media (max-width: 1023px) {
  .try-endpoint-picker, .try-endpoint-title { display: none; }
  .docs-mobile-subnav {
    position: sticky; top: var(--docs-topbar-height); z-index: 35;
    display: flex; align-items: center; justify-content: flex-end;
    height: 56px; padding-inline: 16px;
    background: color-mix(in srgb, var(--color-fd-background) 85%, transparent);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-fd-border);
  }
  .docs-mobile-subnav .docs-mobile-menu-btn { display: inline-flex; }
  .docs-mobile-toc {
    display: block; position: relative; z-index: 30;
    border-bottom: 1px solid var(--color-fd-border);
    background: var(--color-fd-background);
  }
  .docs-mobile-toc > summary {
    display: flex; align-items: center; gap: 8px;
    height: 39px; padding-inline: 16px;
    font-size: 14px; line-height: 20px; color: var(--color-fd-muted-foreground);
    cursor: pointer; list-style: none;
  }
  .docs-mobile-toc > summary::-webkit-details-marker { display: none; }
  .docs-mobile-toc-title { color: var(--color-fd-foreground); font-weight: 500; white-space: nowrap; }
  .docs-mobile-toc-first { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .docs-mobile-toc-chevron { margin-left: auto; flex-shrink: 0; transition: transform .15s; }
  .docs-mobile-toc[open] .docs-mobile-toc-chevron { transform: rotate(90deg); }
  .docs-mobile-toc-list {
    display: flex; flex-direction: column; gap: 2px;
    padding: 8px 16px 12px;
    border-top: 1px solid var(--color-fd-border);
    background: var(--color-fd-popover);
  }
  .docs-mobile-toc-list a {
    padding: 6px 0; font-size: 14px; line-height: 20px; color: var(--color-fd-muted-foreground);
  }
  .docs-mobile-toc-list a:hover { color: var(--color-fd-primary); }
  #nd-docs-layout.docs-with-topbar { grid-template-columns: minmax(0, 1fr); }
  #nd-sidebar {
    position: fixed; left: 0; top: var(--docs-topbar-height); bottom: 0; z-index: 45;
    width: min(300px, 85vw); padding: 20px 16px;
    border-right: 1px solid var(--color-fd-border);
    transform: translateX(-100%); transition: transform .2s ease;
  }
  body.docs-sidebar-open #nd-sidebar { transform: translateX(0); }
  .docs-article-wrap > article, .docs-api-content-grid { padding: 24px 16px; }
  #nd-page.docs-api-page { padding: 0; }
}
@media (max-width: 767px) {
  :root { --docs-topbar-height: 100px; }
  .docs-topbar-inner { height: 56px; padding-inline: 16px; gap: 8px; }
  .docs-topbar-brand .docs-brand { width: 90px; height: 28px; }
  .docs-header-language { width: 90px; font-size: 12px; padding-inline: 2px; }
  .docs-header-search { width: 30px; min-width: 30px; padding: 5px; border: 0; }
  .docs-header-search span, .docs-header-search kbd { display: none; }
  .docs-topbar-actions { gap: 8px; font-size: 12px; }
  .docs-console-link { padding: 7px 8px; border-radius: 10px; }
  .docs-console-link svg { display: none; }
  .docs-header-tabs { height: 44px; padding-inline: 16px; }
  .docs-theme-control { width: 24px; }
  .docs-page-heading { flex-direction: column; }
  .docs-page-menu { left: 0; right: auto; }
  .docs-pager { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .try-dialog { height: calc(100dvh - 32px); max-height: calc(100dvh - 32px); border-radius: 16px; }
  .try-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .try-field { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .try-close { display: block; }
  .try-intro { flex-wrap: wrap; }
  .try-header { padding: 12px 12px 8px; }
  .try-send { padding-inline: 10px; }
}
@media (max-width: 640px) {
  .docs-api-bar { width: 100%; }
  .docs-api-bar > button { white-space: nowrap; }
}
@media (max-width: 480px) {
  .docs-topbar-inner { padding-inline: 12px; gap: 6px; }
  .docs-topbar-brand .docs-brand { width: 72px; }
  .docs-header-language { width: 70px; }
  .docs-header-search { width: 26px; min-width: 26px; padding: 4px; }
  .docs-theme-control { display: none; }
}
