:root {
  --docs-header: 64px;
  --docs-sidebar: 252px;
  --docs-toc: 190px;
  --docs-code-bg: #10131a;
  --docs-code-head: #171b24;
  --docs-code-text: #e5e7eb;
  --docs-code-muted: #9ca3af;
  --docs-code-green: #86efac;
  --docs-code-blue: #7dd3fc;
  --docs-code-border: rgba(255, 255, 255, 0.09);
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -160px, color-mix(in srgb, var(--brand) 7%, transparent), transparent 430px),
    var(--bg);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.docs-suite-bar {
  min-height: 52px;
  display: flex;
  align-items: center;
  padding: 8px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.docs-suite-bar #ducdz-nav-slot {
  width: min(100%, 1536px);
  min-width: 0;
  margin: 0 auto;
}

.docs-suite-bar #ducdz-nav.inline {
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

code,
kbd,
pre {
  font-family: var(--mono);
}

code {
  font-size: 0.9em;
}

.docs-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: calc(var(--docs-header) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.docs-header__inner {
  width: min(100%, 1536px);
  height: var(--docs-header);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.docs-brand {
  min-width: var(--docs-sidebar);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
  letter-spacing: -0.025em;
}

.docs-brand__mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--text-on-brand);
  background: var(--brand);
  border-radius: var(--radius-sm);
}

.docs-brand__mark svg {
  width: 19px;
  height: 19px;
}

.docs-brand__name {
  font-size: 15px;
}

.docs-brand__name span {
  color: var(--text2);
  font-weight: 620;
}

.version-badge {
  padding: 2px 7px;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid color-mix(in srgb, var(--brand) 24%, transparent);
  border-radius: var(--radius-full);
  font: 650 10px/1.5 var(--mono);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-nav a {
  padding: 7px 10px;
  color: var(--text2);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 620;
}

.header-nav a:hover {
  color: var(--text);
  background: var(--hover);
}

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

.header-action {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 11px;
  color: var(--text2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 620;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}

.header-action:hover {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--border-s);
}

.header-action svg {
  width: 16px;
  height: 16px;
}

.header-action--icon {
  width: 36px;
  padding: 0;
}

.search-trigger {
  min-width: 196px;
  justify-content: flex-start;
  color: var(--text3);
}

.search-trigger kbd,
.sidebar-search kbd {
  margin-left: auto;
  padding: 1px 5px;
  color: var(--text3);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 10px;
  line-height: 1.5;
}

.theme-sun {
  display: none;
}

[data-theme="dark"] .theme-sun {
  display: block;
}

[data-theme="dark"] .theme-moon {
  display: none;
}

.menu-trigger {
  display: none;
}

.docs-layout {
  width: min(100%, 1536px);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: var(--docs-sidebar) minmax(0, 900px) var(--docs-toc);
  justify-content: space-between;
  gap: 48px;
}

.docs-sidebar {
  position: sticky;
  top: calc(var(--docs-header) + env(safe-area-inset-top));
  height: calc(100vh - var(--docs-header) - env(safe-area-inset-top));
  padding: 24px 14px 80px 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.sidebar-search {
  width: 100%;
  min-height: 38px;
  margin-bottom: 24px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  cursor: pointer;
}

.sidebar-search:hover {
  color: var(--text2);
  border-color: var(--border-s);
}

.sidebar-search svg {
  width: 15px;
}

.sidebar-group + .sidebar-group {
  margin-top: 23px;
}

.sidebar-label {
  margin: 0 0 7px;
  padding: 0 10px;
  color: var(--text3);
  font: 650 10px/1.5 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-nav a {
  min-height: 34px;
  margin: 1px 0;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text2);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 560;
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}

.sidebar-nav a:hover {
  color: var(--text);
  background: var(--hover);
}

.sidebar-nav a[aria-current="location"] {
  color: var(--brand);
  background: var(--brand-soft);
  font-weight: 650;
}

.nav-method {
  min-width: 29px;
  font: 700 8px/1 var(--mono);
  letter-spacing: 0.02em;
}

.nav-method--get {
  color: var(--brand);
}

.nav-method--post {
  color: var(--ok);
}

.docs-main {
  min-width: 0;
  padding: 72px 0 120px;
}

.page-toc {
  position: sticky;
  top: calc(var(--docs-header) + 32px + env(safe-area-inset-top));
  height: max-content;
  padding-top: 32px;
  color: var(--text2);
  font-size: 12px;
}

.page-toc > p {
  margin: 0 0 10px;
  color: var(--text);
  font-weight: 680;
}

.page-toc nav {
  display: grid;
  gap: 3px;
  padding-left: 11px;
  border-left: 1px solid var(--border);
}

.page-toc nav a {
  padding: 4px 0;
}

.page-toc nav a:hover {
  color: var(--brand);
}

.toc-meta {
  margin-top: 26px;
  padding-top: 18px;
  display: grid;
  gap: 4px;
  border-top: 1px solid var(--border);
}

.toc-meta span {
  color: var(--text3);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.toc-meta time {
  color: var(--text);
}

.toc-meta a {
  margin-top: 8px;
  color: var(--brand);
  font-weight: 620;
}

.docs-section,
.api-divider {
  scroll-margin-top: calc(var(--docs-header) + 28px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.88fr);
  align-items: center;
  gap: 48px;
  padding: 16px 0 64px;
  border-bottom: 1px solid var(--border);
}

.status-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text2);
  font: 650 11px/1.4 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--text3);
  border-radius: 50%;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--text3) 12%, transparent);
}

.status-dot.is-online {
  background: var(--ok);
  box-shadow: 0 0 0 5px var(--ok-soft);
}

.status-dot.is-partial {
  background: var(--warn);
  box-shadow: 0 0 0 5px var(--warn-soft);
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(42px, 5.2vw, 67px);
  line-height: 0.99;
  letter-spacing: -0.065em;
  font-weight: 760;
}

.hero h1 span {
  color: var(--brand);
}

.hero-lead {
  max-width: 620px;
  margin: 0;
  color: var(--text2);
  font-size: 17px;
  line-height: 1.7;
}

.hero-actions {
  margin-top: 27px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  min-height: 42px;
  padding: 9px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-s);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 680;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.button:hover {
  background: var(--surface-2);
  border-color: var(--text3);
}

.button:active {
  transform: scale(0.985);
}

.button--primary {
  color: var(--text-on-brand);
  background: var(--brand);
  border-color: var(--brand);
}

.button--primary:hover {
  color: var(--text-on-brand);
  background: var(--brand-2);
  border-color: var(--brand-2);
}

.hero-meta {
  margin: 34px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
}

.hero-meta div {
  display: grid;
  gap: 2px;
}

.hero-meta dt {
  color: var(--text3);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-meta dd {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 620;
}

.hero-terminal,
.code-panel {
  min-width: 0;
  overflow: hidden;
  color: var(--docs-code-text);
  background: var(--docs-code-bg);
  border: 1px solid var(--docs-code-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.terminal-head,
.code-panel__head {
  min-height: 44px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--docs-code-muted);
  background: var(--docs-code-head);
  border-bottom: 1px solid var(--docs-code-border);
  font: 500 11px/1.4 var(--mono);
}

.terminal-dots {
  display: flex;
  gap: 7px;
}

.terminal-dots i {
  width: 10px;
  height: 10px;
  display: block;
  background: #ff5f57;
  border-radius: 50%;
}

.terminal-dots i:nth-child(2) {
  background: #febc2e;
}

.terminal-dots i:nth-child(3) {
  background: #28c840;
}

.copy-button {
  margin-left: auto;
  padding: 5px 7px;
  color: var(--docs-code-muted);
  background: transparent;
  border: 0;
  border-radius: 4px;
  font: 600 10px/1.3 var(--mono);
  cursor: pointer;
}

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

pre {
  margin: 0;
}

.hero-terminal pre,
.code-panel pre,
.response-pair pre,
.console-output pre {
  padding: 19px;
  overflow: auto;
  color: var(--docs-code-text);
  font: 12px/1.78 var(--mono);
  tab-size: 2;
  white-space: pre;
  overscroll-behavior: contain;
}

.hero-terminal pre {
  min-height: 312px;
}

.code-comment {
  color: var(--docs-code-muted);
}

.code-prompt {
  color: var(--docs-code-green);
  font-weight: 700;
}

.code-output {
  color: #cbd5e1;
}

.service-grid {
  margin: 34px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.service-card {
  min-width: 0;
  padding: 19px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.service-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand) 38%, var(--border));
  box-shadow: var(--shadow);
}

.service-card__icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: var(--radius-sm);
}

.service-card__icon--download {
  color: var(--ok);
  background: var(--ok-soft);
}

.service-card__icon svg {
  width: 19px;
  height: 19px;
}

.service-card__body {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.service-card__top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-card__top strong {
  font-size: 15px;
}

.service-state {
  padding: 1px 6px;
  color: var(--text3);
  background: var(--surface-2);
  border-radius: var(--radius-full);
  font: 600 9px/1.7 var(--mono);
}

.service-state.is-online {
  color: var(--ok);
  background: var(--ok-soft);
}

.service-state.is-down {
  color: var(--warn);
  background: var(--warn-soft);
}

.service-card__body > span:nth-child(2) {
  color: var(--text2);
  font-size: 12px;
  line-height: 1.55;
}

.service-card code {
  overflow: hidden;
  color: var(--brand);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-card__arrow {
  color: var(--text3);
}

.callout {
  margin: 18px 0 0;
  padding: 15px 17px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text2);
  background: var(--brand-soft);
  border: 1px solid color-mix(in srgb, var(--brand) 20%, var(--border));
  border-radius: var(--radius-lg);
}

.callout--warning {
  background: var(--warn-soft);
  border-color: color-mix(in srgb, var(--warn) 22%, var(--border));
}

.callout > svg {
  width: 19px;
  height: 19px;
  margin-top: 2px;
  flex: 0 0 auto;
  color: var(--brand);
}

.callout--warning > svg {
  color: var(--warn);
}

.callout strong {
  color: var(--text);
  font-size: 13px;
}

.callout p {
  margin: 2px 0 0;
  font-size: 12px;
}

.docs-section:not(.hero) {
  padding: 68px 0;
  border-bottom: 1px solid var(--border);
}

.section-heading {
  margin-bottom: 27px;
}

.eyebrow {
  display: block;
  margin-bottom: 7px;
  color: var(--brand);
  font: 680 10px/1.4 var(--mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.section-heading h2,
.api-divider h2 {
  margin: 0;
  font-size: clamp(27px, 3vw, 35px);
  line-height: 1.18;
  letter-spacing: -0.042em;
}

.section-heading > p,
.api-divider p {
  max-width: 680px;
  margin: 9px 0 0;
  color: var(--text2);
  font-size: 14px;
}

.code-panel + .code-panel {
  margin-top: 14px;
}

.code-panel__head > div:first-child {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.code-panel__title {
  color: var(--docs-code-text);
  font-weight: 650;
}

.code-panel__caption {
  color: var(--docs-code-muted);
  font-size: 10px;
}

.code-tabs {
  margin-left: auto;
  padding: 3px;
  display: flex;
  gap: 2px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
}

.code-tabs button {
  min-height: 27px;
  padding: 4px 9px;
  color: var(--docs-code-muted);
  background: transparent;
  border: 0;
  border-radius: 4px;
  font: 600 10px/1 var(--mono);
  cursor: pointer;
}

.code-tabs button[aria-selected="true"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.11);
}

.code-panel--compact pre {
  padding-top: 15px;
  padding-bottom: 15px;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.fact-card {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.fact-card__number {
  color: var(--brand);
  font: 700 10px/1 var(--mono);
}

.fact-card h3 {
  margin: 10px 0 5px;
  font-size: 14px;
}

.fact-card p {
  margin: 0;
  color: var(--text2);
  font-size: 12px;
}

.base-url-list {
  margin-top: 16px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.base-url-list > div {
  min-height: 52px;
  padding: 10px 14px;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.base-url-list > div + div {
  border-top: 1px solid var(--border);
}

.base-url-list span {
  color: var(--text2);
  font-size: 12px;
  font-weight: 620;
}

.base-url-list code {
  overflow: auto;
  color: var(--brand);
  white-space: nowrap;
}

.mini-copy {
  padding: 5px 7px;
  color: var(--text3);
  background: transparent;
  border: 0;
  border-radius: 4px;
  font-size: 10px;
  cursor: pointer;
}

.mini-copy:hover {
  color: var(--text);
  background: var(--hover);
}

.api-divider {
  margin-top: 82px;
  padding: 25px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.api-divider__icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: var(--text-on-brand);
  background: var(--brand);
  border-radius: var(--radius-md);
}

.api-divider__icon--download {
  background: var(--ok);
}

.api-divider__icon svg {
  width: 25px;
  height: 25px;
}

.api-divider h2 {
  font-size: 29px;
}

.api-divider p {
  margin-top: 3px;
  font-size: 12.5px;
}

.api-divider > code {
  padding: 7px 10px;
  color: var(--brand);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 10.5px;
  white-space: nowrap;
}

.flow-list {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
}

.flow-list--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.flow-list li {
  position: relative;
  min-width: 0;
  padding: 17px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.flow-list li > span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: var(--radius-full);
  font: 700 10px/1 var(--mono);
}

.flow-list strong {
  margin-top: 11px;
  display: block;
  font-size: 13px;
}

.flow-list p {
  margin: 4px 0 0;
  color: var(--text2);
  font-size: 11.5px;
  line-height: 1.55;
}

.endpoint-index {
  padding-top: 56px !important;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

caption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

th,
td {
  padding: 11px 13px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border-l);
}

th {
  color: var(--text3);
  background: var(--surface-2);
  font: 650 10px/1.4 var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

td {
  color: var(--text2);
}

tbody tr:last-child td {
  border-bottom: 0;
}

td code,
td a {
  color: var(--brand);
}

.method {
  min-width: 43px;
  padding: 4px 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font: 750 9px/1.2 var(--mono);
  letter-spacing: 0.035em;
}

.method--get {
  color: var(--brand);
  background: var(--brand-soft);
}

.method--post {
  color: var(--ok);
  background: var(--ok-soft);
}

.endpoint {
  padding-top: 58px !important;
}

.endpoint-header {
  margin-bottom: 23px;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: start;
  gap: 11px;
}

.endpoint-header > .method {
  margin-top: 4px;
}

.endpoint-header > code {
  margin-top: 2px;
  color: var(--text);
  font-size: 15px;
  font-weight: 650;
  white-space: nowrap;
}

.endpoint-header > div {
  margin-left: 8px;
  padding-left: 19px;
  border-left: 1px solid var(--border);
}

.endpoint-header h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.endpoint-header p {
  margin: 4px 0 0;
  color: var(--text2);
  font-size: 12.5px;
}

.endpoint h4 {
  margin: 0 0 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.endpoint-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 14px;
}

.endpoint .code-panel,
.endpoint .table-wrap,
.endpoint .response-notes,
.endpoint .response-pair,
.endpoint .status-lifecycle,
.endpoint .platform-box {
  margin-top: 14px;
}

.endpoint-grid .code-panel,
.endpoint-grid .table-wrap {
  margin-top: 0;
}

.response-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.response-notes > div {
  padding: 14px;
  display: grid;
  gap: 4px;
  background: var(--surface);
}

.response-notes code {
  color: var(--brand);
  font-size: 11px;
}

.response-notes span {
  color: var(--text2);
  font-size: 11.5px;
}

.response-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.response-pair > div {
  min-width: 0;
  overflow: hidden;
  background: var(--docs-code-bg);
  border: 1px solid var(--docs-code-border);
  border-radius: var(--radius-lg);
}

.response-pair > div > span {
  min-height: 40px;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  color: var(--docs-code-muted);
  background: var(--docs-code-head);
  border-bottom: 1px solid var(--docs-code-border);
  font: 600 10px/1.3 var(--mono);
}

.response-pair pre {
  font-size: 10.5px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.metric-grid > div {
  min-width: 0;
  padding: 15px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.metric-grid strong {
  display: block;
  color: var(--brand);
  font: 700 18px/1.25 var(--mono);
  letter-spacing: -0.04em;
}

.metric-grid span {
  margin-top: 4px;
  display: block;
  color: var(--text2);
  font-size: 10.5px;
  line-height: 1.45;
}

.status-lifecycle {
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.status-lifecycle span {
  padding: 5px 8px;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: var(--radius-sm);
  font: 600 10px/1.3 var(--mono);
}

.status-lifecycle span.status-final {
  color: var(--ok);
  background: var(--ok-soft);
}

.status-lifecycle b {
  color: var(--text3);
  font-weight: 400;
}

.platform-box {
  padding: 17px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.platform-box > div:first-child {
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.platform-box strong {
  font-size: 12px;
}

.platform-box > div:first-child span {
  color: var(--text3);
  font: 600 10px/1.5 var(--mono);
}

.platform-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.platform-list span {
  padding: 4px 8px;
  color: var(--text2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 10.5px;
}

.console-section {
  padding-top: 80px !important;
}

.console-card {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.console-form {
  padding: 20px;
  border-right: 1px solid var(--border);
}

.field + .field,
#consoleFields:not(:empty) {
  margin-top: 14px;
}

.field label {
  margin-bottom: 6px;
  display: block;
  color: var(--text2);
  font-size: 11px;
  font-weight: 650;
}

.field input,
.field select {
  width: 100%;
  min-height: 41px;
  padding: 8px 10px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-s);
  border-radius: var(--radius-sm);
  outline: 0;
  font-size: 13px;
}

.field input:focus,
.field select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.console-form .button {
  width: 100%;
  margin-top: 16px;
}

.console-form .button[aria-busy="true"] {
  opacity: 0.65;
  cursor: wait;
}

.console-note {
  margin: 11px 0 0;
  color: var(--text3);
  font-size: 10.5px;
  line-height: 1.5;
}

.console-output {
  min-width: 0;
  min-height: 390px;
  color: var(--docs-code-text);
  background: var(--docs-code-bg);
}

.console-output > div {
  min-height: 49px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--docs-code-muted);
  background: var(--docs-code-head);
  border-bottom: 1px solid var(--docs-code-border);
  font: 600 10px/1.3 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.console-output output.is-ok {
  color: var(--docs-code-green);
}

.console-output output.is-error {
  color: #fca5a5;
}

.console-output pre {
  max-height: 540px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.changelog-entry {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 20px;
}

.changelog-entry time {
  color: var(--text3);
  font: 600 11px/1.5 var(--mono);
}

.changelog-entry strong {
  font-size: 14px;
}

.changelog-entry p {
  margin: 3px 0 0;
  color: var(--text2);
  font-size: 12px;
}

.feedback {
  margin-top: 28px;
  padding: 15px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.feedback > div:first-child {
  display: grid;
}

.feedback strong {
  font-size: 12px;
}

.feedback span {
  color: var(--text3);
  font-size: 10.5px;
}

.feedback > div:last-child {
  display: flex;
  gap: 6px;
}

.feedback button {
  min-height: 32px;
  padding: 5px 11px;
  color: var(--text2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 11px;
  cursor: pointer;
}

.feedback button:hover,
.feedback button[aria-pressed="true"] {
  color: var(--brand);
  background: var(--brand-soft);
  border-color: color-mix(in srgb, var(--brand) 30%, var(--border));
}

.docs-footer {
  padding: 35px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--text2);
  font-size: 11px;
}

.docs-footer > div {
  display: grid;
}

.docs-footer strong {
  color: var(--text);
  font-size: 12px;
}

.docs-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

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

.search-dialog {
  width: min(620px, calc(100vw - 32px));
  max-height: min(680px, calc(100vh - 48px));
  margin-top: min(14vh, 120px);
  padding: 0;
  overflow: hidden;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-s);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.search-dialog::backdrop {
  background: var(--overlay);
  backdrop-filter: blur(3px);
}

.search-dialog__head {
  min-height: 58px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}

.search-dialog__head > svg {
  width: 18px;
  color: var(--text3);
}

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

.search-dialog__head input::placeholder {
  color: var(--text3);
}

.search-dialog__head button {
  min-height: 29px;
  padding: 4px 8px;
  color: var(--text3);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: 600 10px/1 var(--mono);
  cursor: pointer;
}

.search-results {
  max-height: 490px;
  padding: 8px;
  overflow-y: auto;
}

.search-result {
  width: 100%;
  min-height: 48px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--text2);
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  text-align: left;
  cursor: pointer;
}

.search-result:hover,
.search-result.is-active {
  color: var(--text);
  background: var(--hover);
}

.search-result strong {
  display: block;
  color: inherit;
  font-size: 12.5px;
}

.search-result span {
  color: var(--text3);
  font: 500 10px/1.4 var(--mono);
}

.search-result > code {
  color: var(--text3);
  font-size: 10px;
}

.search-empty {
  margin: 0;
  padding: 40px 20px;
  color: var(--text3);
  text-align: center;
  font-size: 12px;
}

.search-dialog__foot {
  min-height: 40px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--text3);
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  font-size: 10px;
}

.search-dialog__foot kbd {
  margin-right: 3px;
  padding: 1px 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 1320px) {
  .docs-layout {
    grid-template-columns: var(--docs-sidebar) minmax(0, 900px);
    justify-content: center;
  }

  .page-toc {
    display: none;
  }

  .header-nav {
    display: none;
  }
}

@media (max-width: 980px) {
  .docs-suite-bar {
    padding-right: 18px;
    padding-left: 18px;
  }

  .docs-header__inner,
  .docs-layout {
    padding-left: 18px;
    padding-right: 18px;
  }

  .docs-brand {
    min-width: 0;
  }

  .docs-brand__name span,
  .version-badge,
  .header-action--label,
  .search-trigger span,
  .search-trigger kbd {
    display: none;
  }

  .search-trigger {
    width: 36px;
    min-width: 36px;
    padding: 0;
    justify-content: center;
  }

  .menu-trigger {
    display: inline-flex;
  }

  .docs-layout {
    display: block;
    width: 100%;
    max-width: 100%;
  }

  .docs-sidebar {
    position: fixed;
    z-index: 95;
    top: calc(var(--docs-header) + env(safe-area-inset-top));
    bottom: 0;
    left: 0;
    width: min(310px, calc(100vw - 48px));
    height: auto;
    padding: 20px 18px 60px;
    background: var(--surface);
    border-right: 1px solid var(--border);
    box-shadow: var(--shadow-xl);
    transform: translateX(-105%);
    transition: transform var(--dur-slow) var(--ease);
  }

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

  .sidebar-backdrop {
    position: fixed;
    z-index: 90;
    inset: calc(var(--docs-header) + env(safe-area-inset-top)) 0 0;
    background: var(--overlay);
  }

  .docs-main {
    width: 100%;
    min-width: 0;
    max-width: 860px;
    margin: 0 auto;
    padding-top: 48px;
  }
}

@media (max-width: 760px) {
  .hero {
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
    padding-top: 4px;
  }

  .hero > * {
    min-width: 0;
    max-width: 100%;
  }

  .hero-terminal {
    width: 100%;
    max-width: 100%;
  }

  .hero h1 {
    font-size: clamp(40px, 12vw, 58px);
  }

  .hero-terminal pre {
    min-height: 0;
  }

  .service-grid,
  .fact-grid,
  .endpoint-grid,
  .response-pair,
  .console-card {
    grid-template-columns: 1fr;
  }

  .flow-list,
  .flow-list--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .console-form {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .console-output {
    min-height: 310px;
  }

  .api-divider {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .api-divider > code {
    grid-column: 1 / -1;
    overflow-x: auto;
  }

  .endpoint-header {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .endpoint-header > div {
    grid-column: 1 / -1;
    margin: 3px 0 0;
    padding: 0;
    border: 0;
  }

  .docs-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .docs-suite-bar {
    padding-right: 10px;
    padding-left: 10px;
  }

  .docs-header__inner,
  .docs-layout {
    padding-left: 14px;
    padding-right: 14px;
  }

  .docs-header__inner {
    gap: 10px;
  }

  .docs-brand__name {
    font-size: 14px;
  }

  .header-actions {
    gap: 5px;
  }

  .header-action {
    width: 34px;
    min-width: 34px;
    min-height: 34px;
  }

  .docs-main {
    padding-top: 36px;
    padding-bottom: 80px;
  }

  .hero {
    padding-bottom: 50px;
  }

  .hero h1 {
    font-size: clamp(38px, 10.8vw, 42px);
    letter-spacing: -0.055em;
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-meta {
    gap: 14px 21px;
  }

  .service-grid {
    margin-top: 20px;
  }

  .service-card {
    padding: 15px;
  }

  .docs-section:not(.hero) {
    padding: 52px 0;
  }

  .flow-list,
  .flow-list--four,
  .response-notes,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .base-url-list > div {
    grid-template-columns: 1fr auto;
  }

  .base-url-list span {
    grid-column: 1 / -1;
  }

  .api-divider {
    margin-top: 58px;
    padding: 18px;
  }

  .api-divider__icon {
    width: 44px;
    height: 44px;
  }

  .api-divider h2 {
    font-size: 25px;
  }

  .endpoint-header > code {
    overflow-x: auto;
  }

  .code-panel__head {
    flex-wrap: wrap;
  }

  .code-tabs {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  .code-tabs button {
    flex: 1;
  }

  .hero-terminal pre,
  .code-panel pre,
  .console-output pre {
    padding: 15px;
    font-size: 11px;
  }

  .status-lifecycle {
    align-items: stretch;
    flex-direction: column;
  }

  .status-lifecycle b {
    display: none;
  }

  .feedback {
    align-items: flex-start;
    flex-direction: column;
  }

  .changelog-entry {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .search-dialog__foot {
    display: none;
  }
}

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

  .service-card,
  .docs-sidebar {
    transition: none;
  }
}

@media (forced-colors: active) {
  .method,
  .status-dot,
  .docs-brand__mark,
  .api-divider__icon {
    border: 1px solid CanvasText;
  }
}

/* Hero artwork and app-level motion. The illustration stays decorative; the
   code sample remains the useful product preview. */
.hero-copy,
.hero-demo {
  min-width: 0;
}

.hero-copy {
  animation: docs-enter .34s var(--ease-apple, ease-out) both;
}

.hero-demo {
  display: grid;
  gap: 0;
  animation: docs-enter .4s var(--ease-apple, ease-out) .05s both;
}

.docs-orbit {
  position: relative;
  z-index: 1;
  height: 126px;
  margin-bottom: -4px;
  display: grid;
  place-items: center;
  overflow: visible;
  pointer-events: none;
  isolation: isolate;
}

.docs-orbit::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: 180px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand) 18%, transparent);
  filter: blur(38px);
  opacity: .72;
}

.docs-orbit img {
  width: min(74%, 270px);
  height: auto;
  max-height: 158px;
  object-fit: contain;
  filter: drop-shadow(0 16px 20px color-mix(in srgb, var(--text) 12%, transparent));
  transform: translateZ(0);
  animation: docs-orbit-float 7.5s var(--ease-emph, ease-in-out) infinite alternate;
}

@keyframes docs-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes docs-orbit-float {
  from { transform: translate3d(0, -3px, 0) rotate(-.25deg); }
  to { transform: translate3d(0, 6px, 0) rotate(.25deg); }
}

@media (max-width: 760px) {
  .docs-header {
    background: var(--surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .hero-demo { gap: 0; }

  .docs-orbit {
    height: 104px;
    margin-bottom: -2px;
  }

  .docs-orbit img {
    width: min(62vw, 230px);
    max-height: 132px;
  }
}

@media (max-width: 520px) {
  .hero { gap: 28px; }

  .docs-orbit {
    height: 90px;
    margin-bottom: 0;
  }

  .docs-orbit img {
    width: min(58vw, 205px);
    max-height: 116px;
  }
}

@media (max-width: 380px) {
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .button { width: 100%; }
}

@media (hover: none) and (pointer: coarse) {
  .header-action,
  .button,
  .sidebar-search,
  .sidebar-nav a,
  .copy-button,
  .code-tabs button,
  .feedback button,
  .search-dialog__head button {
    min-height: 44px;
  }

  .header-action--icon,
  .search-trigger {
    width: 44px;
    min-width: 44px;
    padding-right: 0;
    padding-left: 0;
  }

  .copy-button,
  .search-dialog__head button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy,
  .hero-demo,
  .docs-orbit img {
    animation: none;
  }
}
