:root {
  --docs-bg: #f7f8fb;
  --docs-surface: #ffffff;
  --docs-surface-soft: #f1f5f9;
  --docs-text: #172033;
  --docs-text-soft: #5d677a;
  --docs-text-muted: #8b94a5;
  --docs-border: #e4e8ef;
  --docs-border-strong: #d5dbe5;
  --docs-primary: #635bff;
  --docs-primary-strong: #4f46e5;
  --docs-primary-soft: #efefff;
  --docs-success: #07885d;
  --docs-code-bg: #101827;
  --docs-code-text: #e5edf8;
  --docs-header-height: 64px;
  --docs-sidebar-width: 256px;
  --docs-toc-width: 216px;
  --docs-shadow: 0 18px 45px rgba(29, 38, 63, 0.1);
  color: var(--docs-text);
  background: var(--docs-bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

:root[data-theme="dark"] {
  --docs-bg: #0d111b;
  --docs-surface: #141a27;
  --docs-surface-soft: #1a2232;
  --docs-text: #edf2f9;
  --docs-text-soft: #aab5c8;
  --docs-text-muted: #7f8ba1;
  --docs-border: #283246;
  --docs-border-strong: #374258;
  --docs-primary: #8d88ff;
  --docs-primary-strong: #a9a5ff;
  --docs-primary-soft: #25264b;
  --docs-code-bg: #080d17;
  --docs-code-text: #e7edf8;
  --docs-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--docs-header-height) + 28px);
}

body.doc-page,
body.docs-home {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background: var(--docs-bg);
  color: var(--docs-text);
  -webkit-font-smoothing: antialiased;
}

body.docs-overlay-open {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.docs-skip-link {
  position: fixed;
  top: 8px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--docs-primary);
  color: #fff;
  text-decoration: none;
  transform: translateY(-150%);
}

.docs-skip-link:focus {
  transform: translateY(0);
}

.docs-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--docs-header-height);
  border-bottom: 1px solid color-mix(in srgb, var(--docs-border) 86%, transparent);
  background: color-mix(in srgb, var(--docs-surface) 92%, transparent);
  backdrop-filter: blur(16px);
}

.docs-header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  height: 100%;
  padding: 0 28px;
}

.docs-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
  color: var(--docs-text);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.docs-brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, #756cff, #4f46e5);
  box-shadow: 0 7px 18px rgba(99, 91, 255, 0.28);
  color: #fff;
}

.docs-brand-mark svg {
  width: 20px;
  height: 20px;
}

.docs-brand-divider {
  color: var(--docs-border-strong);
  font-weight: 400;
}

.docs-brand-section {
  color: var(--docs-text-soft);
  font-weight: 560;
}

.docs-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.docs-header-link {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--docs-text-soft);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  transition: 150ms ease;
}

.docs-header-link:hover {
  background: var(--docs-surface-soft);
  color: var(--docs-text);
}

.docs-version {
  padding: 5px 9px;
  border: 1px solid var(--docs-border);
  border-radius: 999px;
  color: var(--docs-text-soft);
  font-size: 12px;
  font-weight: 650;
}

.docs-icon-button,
.docs-menu-button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--docs-border);
  border-radius: 10px;
  background: var(--docs-surface);
  color: var(--docs-text-soft);
  cursor: pointer;
  transition: 160ms ease;
}

.docs-icon-button:hover,
.docs-menu-button:hover {
  border-color: var(--docs-border-strong);
  background: var(--docs-surface-soft);
  color: var(--docs-text);
}

.docs-icon-button svg,
.docs-menu-button svg {
  width: 18px;
  height: 18px;
}

.docs-menu-button {
  display: none;
}

.docs-search-trigger {
  display: flex;
  align-items: center;
  gap: 9px;
  width: min(290px, 24vw);
  height: 38px;
  padding: 0 9px 0 12px;
  border: 1px solid var(--docs-border);
  border-radius: 10px;
  background: var(--docs-surface-soft);
  color: var(--docs-text-muted);
  cursor: pointer;
  transition: 160ms ease;
}

.docs-search-trigger:hover {
  border-color: var(--docs-border-strong);
  background: var(--docs-surface);
  color: var(--docs-text-soft);
}

.docs-search-trigger svg {
  width: 17px;
  height: 17px;
}

.docs-search-trigger span {
  overflow: hidden;
  flex: 1;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.docs-search-trigger kbd {
  padding: 2px 6px;
  border: 1px solid var(--docs-border-strong);
  border-radius: 5px;
  background: var(--docs-surface);
  color: var(--docs-text-muted);
  font-family: inherit;
  font-size: 11px;
}

.docs-layout {
  display: grid;
  grid-template-columns: var(--docs-sidebar-width) minmax(0, 1fr) var(--docs-toc-width);
  gap: 0;
  width: min(100%, 1480px);
  margin: 0 auto;
}

.docs-sidebar,
.docs-toc {
  position: sticky;
  top: var(--docs-header-height);
  height: calc(100vh - var(--docs-header-height));
  overflow-y: auto;
  scrollbar-width: thin;
}

.docs-sidebar {
  padding: 28px 20px 52px 24px;
  border-right: 1px solid var(--docs-border);
}

.docs-nav-overview,
.docs-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--docs-text-soft);
  font-size: 14px;
  font-weight: 520;
  line-height: 1.4;
  text-decoration: none;
  transition: 150ms ease;
}

.docs-nav-overview {
  margin-bottom: 24px;
  color: var(--docs-text);
  font-weight: 650;
}

.docs-nav-overview svg,
.docs-nav-link svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.docs-nav-overview:hover,
.docs-nav-link:hover {
  background: var(--docs-surface-soft);
  color: var(--docs-text);
}

.docs-nav-overview.is-active,
.docs-nav-link.is-active {
  background: var(--docs-primary-soft);
  color: var(--docs-primary-strong);
}

.docs-nav-group + .docs-nav-group {
  margin-top: 24px;
}

.docs-nav-standalone {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--docs-border);
}

.docs-nav-standalone .docs-nav-link {
  color: var(--docs-text);
  font-weight: 650;
}

.docs-nav-title {
  margin: 0 10px 7px;
  color: var(--docs-text-muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.docs-nav-list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.doc-page main.doc-content {
  width: 100%;
  max-width: 860px;
  min-width: 0;
  margin: 0 auto;
  padding: 50px 48px 96px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.docs-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 20px;
  color: var(--docs-text-muted);
  font-size: 13px;
}

.docs-breadcrumb a {
  color: var(--docs-text-soft);
  text-decoration: none;
}

.docs-breadcrumb a:hover {
  color: var(--docs-primary);
}

.docs-breadcrumb svg {
  width: 13px;
  height: 13px;
}

.doc-page main.doc-content h1 {
  margin: 0;
  color: var(--docs-text);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 760;
  letter-spacing: -0.035em;
  line-height: 1.18;
}

.docs-doc-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 18px 0 26px;
}

.docs-method,
.docs-mode {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.035em;
}

.docs-method {
  background: #e4f7ef;
  color: var(--docs-success);
}

:root[data-theme="dark"] .docs-method {
  background: #12382d;
  color: #6ee7bd;
}

.docs-mode {
  background: var(--docs-surface-soft);
  color: var(--docs-text-soft);
}

.docs-endpoint {
  overflow: hidden;
  max-width: 100%;
  padding: 4px 7px;
  border: 1px solid var(--docs-border);
  border-radius: 6px;
  background: var(--docs-surface);
  color: var(--docs-text-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.doc-page main.doc-content > h1 + p,
.doc-page main.doc-content > .docs-doc-meta + p {
  margin-top: 0;
  color: var(--docs-text-soft);
  font-size: 16px;
  line-height: 1.85;
}

.doc-page main.doc-content h2 {
  position: relative;
  margin: 46px 0 18px;
  padding-top: 28px;
  border-top: 1px solid var(--docs-border);
  color: var(--docs-text);
  font-size: 24px;
  font-weight: 720;
  letter-spacing: -0.018em;
  line-height: 1.35;
}

.doc-page main.doc-content h3 {
  position: relative;
  margin: 30px 0 13px;
  color: var(--docs-text);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
}

.heading-anchor {
  position: absolute;
  right: 100%;
  padding-right: 8px;
  color: var(--docs-text-muted);
  font-weight: 500;
  opacity: 0;
  text-decoration: none;
  transition: opacity 150ms ease;
}

h2:hover > .heading-anchor,
h3:hover > .heading-anchor,
.heading-anchor:focus {
  opacity: 1;
}

.doc-page main.doc-content p,
.doc-page main.doc-content li {
  color: var(--docs-text-soft);
  line-height: 1.78;
}

.doc-page main.doc-content li + li {
  margin-top: 5px;
}

.doc-page main.doc-content code {
  padding: 2px 5px;
  border: 1px solid color-mix(in srgb, var(--docs-border) 85%, transparent);
  border-radius: 5px;
  background: var(--docs-surface-soft);
  color: color-mix(in srgb, var(--docs-text) 88%, var(--docs-primary));
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
}

.code-shell {
  position: relative;
  margin: 14px 0 22px;
}

.doc-page main.doc-content .code-shell pre,
.docs-home .code-shell pre {
  overflow-x: auto;
  margin: 0;
  padding: 20px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 12px;
  background: var(--docs-code-bg);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.11);
  color: var(--docs-code-text);
  font-size: 13px;
  line-height: 1.7;
}

.doc-page main.doc-content .code-shell pre code,
.docs-home .code-shell pre code {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
}

.docs-copy-button {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 11px;
  cursor: pointer;
  opacity: 0;
  transition: 150ms ease;
}

.code-shell:hover .docs-copy-button,
.docs-copy-button:focus {
  opacity: 1;
}

.docs-copy-button:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.doc-page main.doc-content table {
  width: 100%;
  margin: 14px 0 24px;
  border: 1px solid var(--docs-border);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 10px;
  background: var(--docs-surface);
  font-size: 14px;
}

.doc-page main.doc-content th,
.doc-page main.doc-content td {
  padding: 11px 13px;
  border: 0;
  border-right: 1px solid var(--docs-border);
  border-bottom: 1px solid var(--docs-border);
  text-align: left;
  vertical-align: top;
}

.doc-page main.doc-content th:last-child,
.doc-page main.doc-content td:last-child {
  border-right: 0;
}

.doc-page main.doc-content tbody tr:last-child td {
  border-bottom: 0;
}

.doc-page main.doc-content th {
  background: var(--docs-surface-soft);
  color: var(--docs-text);
  font-size: 12px;
  font-weight: 700;
}

.doc-page main.doc-content .note {
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--docs-primary) 24%, var(--docs-border));
  border-left: 4px solid var(--docs-primary);
  border-radius: 9px;
  background: var(--docs-primary-soft);
  color: var(--docs-text-soft);
}

.docs-toc {
  padding: 34px 22px 48px 26px;
}

.docs-toc-title {
  margin: 0 0 12px;
  color: var(--docs-text);
  font-size: 12px;
  font-weight: 740;
}

.docs-toc-list {
  margin: 0;
  padding: 0 0 0 13px;
  border-left: 1px solid var(--docs-border);
  list-style: none;
}

.docs-toc-link {
  display: block;
  padding: 5px 0;
  color: var(--docs-text-muted);
  font-size: 12px;
  line-height: 1.45;
  text-decoration: none;
  transition: 150ms ease;
}

.docs-toc-link[data-level="3"] {
  padding-left: 11px;
}

.docs-toc-link:hover,
.docs-toc-link.is-active {
  color: var(--docs-primary-strong);
}

.docs-nav-backdrop {
  display: none;
}

.docs-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  padding: min(14vh, 110px) 20px 20px;
  align-items: start;
  justify-items: center;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(6px);
}

.docs-search-overlay[hidden] {
  display: none;
}

.docs-search-dialog {
  overflow: hidden;
  width: min(620px, 100%);
  border: 1px solid var(--docs-border-strong);
  border-radius: 16px;
  background: var(--docs-surface);
  box-shadow: var(--docs-shadow);
}

.docs-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 17px;
  border-bottom: 1px solid var(--docs-border);
}

.docs-search-box svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: var(--docs-text-muted);
}

.docs-search-input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--docs-text);
  font-size: 16px;
}

.docs-search-input::placeholder {
  color: var(--docs-text-muted);
}

.docs-search-close {
  padding: 4px 7px;
  border: 1px solid var(--docs-border);
  border-radius: 6px;
  background: var(--docs-surface-soft);
  color: var(--docs-text-muted);
  font-size: 11px;
  cursor: pointer;
}

.docs-search-results {
  overflow-y: auto;
  max-height: min(58vh, 480px);
  margin: 0;
  padding: 10px;
  list-style: none;
}

.docs-search-result {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 11px;
  border-radius: 10px;
  color: var(--docs-text);
  text-decoration: none;
}

.docs-search-result:hover,
.docs-search-result:focus {
  outline: none;
  background: var(--docs-surface-soft);
}

.docs-search-result-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--docs-border);
  border-radius: 9px;
  background: var(--docs-surface);
  color: var(--docs-primary);
}

.docs-search-result-icon svg {
  width: 18px;
  height: 18px;
}

.docs-search-result strong,
.docs-search-result small {
  display: block;
}

.docs-search-result strong {
  font-size: 14px;
}

.docs-search-result small {
  overflow: hidden;
  margin-top: 3px;
  color: var(--docs-text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.docs-search-result-method {
  color: var(--docs-success);
  font-size: 10px;
  font-weight: 760;
}

.docs-search-empty {
  padding: 34px 20px;
  color: var(--docs-text-muted);
  font-size: 14px;
  text-align: center;
}

/* Documentation home */
.docs-home-main {
  overflow: hidden;
}

.docs-home-container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.docs-hero {
  position: relative;
  padding: 90px 0 72px;
  background: radial-gradient(circle at 20% 0%, rgba(99, 91, 255, 0.16), transparent 34%),
    radial-gradient(circle at 86% 16%, rgba(56, 189, 248, 0.12), transparent 29%);
}

.docs-hero::after {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--docs-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--docs-border) 1px, transparent 1px);
  background-size: 40px 40px;
  content: "";
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.32), transparent 76%);
  opacity: 0.34;
  pointer-events: none;
}

.docs-hero-content {
  position: relative;
  z-index: 1;
  max-width: 790px;
}

.docs-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 6px 10px;
  border: 1px solid color-mix(in srgb, var(--docs-primary) 25%, var(--docs-border));
  border-radius: 999px;
  background: color-mix(in srgb, var(--docs-primary-soft) 75%, transparent);
  color: var(--docs-primary-strong);
  font-size: 12px;
  font-weight: 680;
}

.docs-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--docs-primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--docs-primary) 14%, transparent);
}

.docs-hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--docs-text);
  font-size: clamp(42px, 7vw, 68px);
  font-weight: 790;
  letter-spacing: -0.052em;
  line-height: 1.06;
}

.docs-hero h1 span {
  background: linear-gradient(100deg, var(--docs-primary), #3182f6 72%);
  background-clip: text;
  color: transparent;
}

.docs-hero-description {
  max-width: 670px;
  margin: 24px 0 0;
  color: var(--docs-text-soft);
  font-size: 18px;
  line-height: 1.8;
}

.docs-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.docs-primary-button,
.docs-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 17px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 680;
  text-decoration: none;
  transition: 160ms ease;
}

.docs-primary-button {
  background: var(--docs-primary);
  box-shadow: 0 10px 26px rgba(99, 91, 255, 0.25);
  color: #fff;
}

.docs-primary-button:hover {
  background: var(--docs-primary-strong);
  transform: translateY(-1px);
}

.docs-secondary-button {
  border: 1px solid var(--docs-border-strong);
  background: var(--docs-surface);
  color: var(--docs-text);
}

.docs-secondary-button:hover {
  background: var(--docs-surface-soft);
}

.docs-primary-button svg,
.docs-secondary-button svg {
  width: 16px;
  height: 16px;
}

.docs-home-section {
  padding: 72px 0;
}

.docs-home-section.is-muted {
  border-top: 1px solid var(--docs-border);
  border-bottom: 1px solid var(--docs-border);
  background: var(--docs-surface);
}

.docs-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
}

.docs-section-heading h2 {
  margin: 0;
  color: var(--docs-text);
  font-size: clamp(27px, 4vw, 36px);
  letter-spacing: -0.032em;
}

.docs-section-heading p {
  max-width: 560px;
  margin: 10px 0 0;
  color: var(--docs-text-soft);
  line-height: 1.7;
}

.docs-api-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.docs-api-card {
  position: relative;
  display: flex;
  min-height: 236px;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--docs-border);
  border-radius: 14px;
  background: var(--docs-surface);
  color: var(--docs-text);
  text-decoration: none;
  transition: 180ms ease;
}

.docs-api-card:hover {
  border-color: color-mix(in srgb, var(--docs-primary) 45%, var(--docs-border));
  box-shadow: var(--docs-shadow);
  transform: translateY(-3px);
}

.docs-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.docs-card-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 11px;
  background: var(--docs-primary-soft);
  color: var(--docs-primary-strong);
}

.docs-card-icon svg {
  width: 21px;
  height: 21px;
}

.docs-card-mode {
  color: var(--docs-text-muted);
  font-size: 11px;
  font-weight: 620;
}

.docs-api-card h3 {
  margin: 22px 0 8px;
  font-size: 18px;
  letter-spacing: -0.015em;
}

.docs-api-card p {
  margin: 0 0 22px;
  color: var(--docs-text-soft);
  font-size: 14px;
  line-height: 1.7;
}

.docs-card-endpoint {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--docs-text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.docs-card-endpoint span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.docs-flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.docs-flow-item {
  position: relative;
  padding-top: 18px;
  border-top: 1px solid var(--docs-border-strong);
}

.docs-flow-number {
  display: inline-grid;
  width: 30px;
  height: 30px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 9px;
  background: var(--docs-primary-soft);
  color: var(--docs-primary-strong);
  font-size: 12px;
  font-weight: 760;
}

.docs-flow-item h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.docs-flow-item p {
  margin: 0;
  color: var(--docs-text-soft);
  font-size: 14px;
  line-height: 1.72;
}

.docs-auth-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 44px;
  align-items: center;
  padding: 38px;
  border: 1px solid var(--docs-border);
  border-radius: 18px;
  background: var(--docs-surface-soft);
}

.docs-auth-panel h2 {
  margin: 0 0 13px;
  font-size: 28px;
  letter-spacing: -0.025em;
}

.docs-auth-panel p {
  margin: 0;
  color: var(--docs-text-soft);
  line-height: 1.75;
}

.docs-auth-tip {
  display: flex;
  gap: 9px;
  margin-top: 18px;
  color: var(--docs-text-soft);
  font-size: 13px;
  line-height: 1.6;
}

.docs-auth-tip svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--docs-primary);
}

.docs-footer {
  border-top: 1px solid var(--docs-border);
  background: var(--docs-surface);
}

.docs-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 48px));
  min-height: 88px;
  margin: 0 auto;
  color: var(--docs-text-muted);
  font-size: 13px;
}

.docs-footer a {
  color: var(--docs-text-soft);
  text-decoration: none;
}

.docs-footer a:hover {
  color: var(--docs-primary);
}

.docs-footer-links {
  display: flex;
  gap: 18px;
}

@media (max-width: 1180px) {
  .docs-layout {
    grid-template-columns: var(--docs-sidebar-width) minmax(0, 1fr);
  }

  .docs-toc {
    display: none;
  }
}

@media (max-width: 900px) {
  .docs-header-inner {
    padding: 0 18px;
  }

  .docs-menu-button {
    display: inline-grid;
  }

  .docs-brand-product,
  .docs-brand-divider {
    display: none;
  }

  .docs-search-trigger {
    width: 40px;
    padding: 0;
    justify-content: center;
    background: var(--docs-surface);
  }

  .docs-search-trigger span,
  .docs-search-trigger kbd,
  .docs-version {
    display: none;
  }

  .docs-layout {
    display: block;
  }

  .docs-sidebar {
    position: fixed;
    top: var(--docs-header-height);
    bottom: 0;
    left: 0;
    z-index: 70;
    width: min(310px, 86vw);
    height: auto;
    border-right: 1px solid var(--docs-border);
    background: var(--docs-surface);
    box-shadow: var(--docs-shadow);
    transform: translateX(-104%);
    transition: transform 190ms ease;
  }

  .docs-nav-open .docs-sidebar {
    transform: translateX(0);
  }

  .docs-nav-backdrop {
    position: fixed;
    inset: var(--docs-header-height) 0 0;
    z-index: 60;
    background: rgba(15, 23, 42, 0.42);
  }

  .docs-nav-open .docs-nav-backdrop {
    display: block;
  }

  .doc-page main.doc-content {
    max-width: 820px;
    padding: 42px 36px 80px;
  }

  .docs-api-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .docs-auth-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .docs-header-inner {
    gap: 10px;
    padding: 0 12px;
  }

  .docs-brand {
    gap: 8px;
  }

  .docs-brand-section {
    font-size: 14px;
  }

  .doc-page main.doc-content {
    padding: 30px 20px 68px;
  }

  .doc-page main.doc-content h1 {
    font-size: 31px;
  }

  .doc-page main.doc-content h2 {
    margin-top: 38px;
    padding-top: 24px;
    font-size: 22px;
  }

  .heading-anchor {
    display: none;
  }

  .doc-page main.doc-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .docs-copy-button {
    opacity: 1;
  }

  .docs-home-container,
  .docs-footer-inner {
    width: min(100% - 32px, 1180px);
  }

  .docs-hero {
    padding: 64px 0 52px;
  }

  .docs-hero h1 {
    font-size: 42px;
  }

  .docs-hero-description {
    font-size: 16px;
  }

  .docs-home-section {
    padding: 54px 0;
  }

  .docs-section-heading {
    display: block;
  }

  .docs-api-grid,
  .docs-flow-grid {
    grid-template-columns: 1fr;
  }

  .docs-api-card {
    min-height: 218px;
  }

  .docs-auth-panel {
    gap: 28px;
    padding: 24px 20px;
  }

  .docs-footer-inner {
    min-height: 104px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
