:root {
  color-scheme: light;
  --header-height: 68px;
  --sidebar-width: 276px;
  --canvas: #ffffff;
  --canvas-subtle: #f8fafc;
  --canvas-tint: #f5f7ff;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-code: #0c1222;
  --surface-code-2: #121a2d;
  --ink: #151b2b;
  --ink-2: #364152;
  --ink-3: #657084;
  --ink-4: #98a2b3;
  --line: #e5e9f0;
  --line-strong: #d7dde7;
  --accent: #5b5ce2;
  --accent-strong: #4546c8;
  --accent-soft: #eef0ff;
  --accent-faint: #f7f7ff;
  --cyan: #00a9c7;
  --cyan-soft: #eafafd;
  --green: #0f9f6e;
  --green-soft: #ebfaf4;
  --amber: #b86b00;
  --amber-soft: #fff7e8;
  --red: #d13c54;
  --red-soft: #fff0f2;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-md: 0 14px 36px rgba(28, 39, 63, 0.1);
  --shadow-lg: 0 28px 70px rgba(28, 39, 63, 0.16);

  /* Compatibility aliases for documentation pages being migrated from the old theme. */
  --bg: var(--canvas);
  --sidebar-bg: #fbfcfe;
  --surface: #ffffff;
  --card: #ffffff;
  --border: var(--line);
  --border-l: var(--line-strong);
  --text: var(--ink);
  --text-2: var(--ink-2);
  --text-3: var(--ink-4);
  --get: var(--green);
  --post: #3556bd;
  --put: var(--amber);
  --delete: var(--red);
  --patch: #6d44b4;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-strong);
}

::selection {
  background: #dfe2ff;
  color: #1d2353;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #cbd2de;
  border: 3px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #aeb8c7;
}

.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;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  padding: 9px 14px;
  border-radius: 9px;
  background: var(--ink);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 160ms ease;
}

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

:focus-visible {
  outline: 3px solid rgba(91, 92, 226, 0.3);
  outline-offset: 2px;
}

/* Global header */
.portal-header {
  position: sticky;
  z-index: 80;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 0 24px 0 20px;
  border-bottom: 1px solid rgba(222, 227, 235, 0.9);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.02);
  backdrop-filter: blur(18px) saturate(160%);
}

.brand-zone,
.header-actions,
.brand,
.header-link,
.header-user {
  display: flex;
  align-items: center;
}

.brand-zone {
  min-width: calc(var(--sidebar-width) - 20px);
}

.brand {
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #13183b;
  border-radius: 11px;
  background: #05052d;
  box-shadow: 0 7px 18px rgba(49, 46, 129, 0.18);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.brand-divider {
  width: 1px;
  height: 20px;
  margin: 0 2px;
  background: var(--line-strong);
}

.brand-product {
  color: var(--ink-3);
  font-size: 14px;
  font-weight: 500;
}

.header-actions {
  justify-content: flex-end;
  gap: 10px;
}

.header-link {
  gap: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 140ms ease, background 140ms ease;
}

.header-link:hover {
  background: var(--canvas-subtle);
  color: var(--ink);
}

.header-link svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.primary-action {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid var(--accent);
  border-radius: 9px;
  background: var(--accent);
  box-shadow: 0 5px 14px rgba(91, 92, 226, 0.18);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.primary-action:hover {
  transform: translateY(-1px);
  background: var(--accent-strong);
  box-shadow: 0 8px 20px rgba(91, 92, 226, 0.24);
  color: #ffffff;
}

.header-user {
  gap: 8px;
  max-width: 180px;
  padding: 4px 8px 4px 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.header-avatar,
.sidebar-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent), var(--cyan));
  color: #ffffff;
  font-weight: 700;
}

.header-avatar {
  width: 29px;
  height: 29px;
  font-size: 11px;
}

.header-username {
  overflow: hidden;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-button {
  display: inline-grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink-3);
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.icon-button:hover {
  border-color: var(--line-strong);
  background: var(--canvas-subtle);
  color: var(--ink);
}

.icon-button svg,
.menu-toggle svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.menu-toggle {
  display: none;
  margin-right: 10px;
}

.search-trigger {
  display: flex;
  width: clamp(210px, 23vw, 320px);
  min-height: 40px;
  align-items: center;
  gap: 9px;
  padding: 0 10px 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--canvas-subtle);
  color: var(--ink-3);
  cursor: pointer;
  text-align: left;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.search-trigger:hover {
  border-color: #bdc5d3;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.search-trigger svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.search-trigger span {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

kbd {
  display: inline-flex;
  min-width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border: 1px solid var(--line-strong);
  border-bottom-color: #c4cad5;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 1px 0 #d8dde6;
  color: var(--ink-3);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

/* App shell and product navigation */
.portal-shell {
  display: grid;
  min-height: calc(100vh - var(--header-height));
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.portal-sidebar {
  position: sticky;
  z-index: 40;
  top: var(--header-height);
  display: flex;
  height: calc(100vh - var(--header-height));
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: #fbfcfe;
}

.sidebar-context {
  flex: 0 0 auto;
  padding: 22px 16px 14px;
}

.context-eyebrow {
  display: block;
  margin: 0 7px 8px;
  color: var(--ink-4);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.product-selector {
  display: flex;
  min-height: 61px;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.product-symbol {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
}

.product-brokerage .product-symbol {
  background: var(--amber-soft);
  color: var(--amber);
}

.product-mobile .product-symbol {
  background: var(--green-soft);
  color: var(--green);
}

.product-symbol svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.product-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.product-copy strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-copy small {
  color: var(--ink-4);
  font-size: 12px;
  line-height: 1.35;
}

.version-badge {
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--canvas-subtle);
  color: var(--ink-3);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 600;
}

.sidebar-nav {
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 2px 12px 24px;
  scrollbar-width: thin;
}

.nav-section + .nav-section {
  margin-top: 19px;
}

.nav-section-label {
  padding: 0 10px 6px;
  color: var(--ink-4);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.nav-link {
  position: relative;
  display: flex;
  min-height: 39px;
  align-items: center;
  gap: 10px;
  margin: 2px 0;
  padding: 7px 10px;
  border-radius: 9px;
  color: var(--ink-3);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 130ms ease, color 130ms ease;
}

.nav-link::before {
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: -12px;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: var(--accent);
  content: "";
  opacity: 0;
  transform: scaleY(0.55);
  transition: opacity 130ms ease, transform 130ms ease;
}

.nav-link > svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.nav-link > span:not(.nav-badge) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-link:hover {
  background: #f1f3f8;
  color: var(--ink);
}

.nav-link.active {
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 600;
}

.nav-link.active::before {
  opacity: 1;
  transform: scaleY(1);
}

.nav-link-featured {
  color: var(--accent-strong);
}

.nav-badge {
  margin-left: auto;
  padding: 2px 6px;
  border: 1px solid #d8dbff;
  border-radius: 999px;
  background: #f3f3ff;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Resource-first API navigation */
.endpoint-tree {
  min-width: 0;
}

.endpoint-overview-link > span:first-of-type {
  min-width: 0;
  flex: 1;
}

.endpoint-total {
  display: inline-flex;
  min-width: 23px;
  height: 20px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  overflow: visible !important;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink-3);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.endpoint-overview-link.active .endpoint-total {
  border-color: #d5d8ff;
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent-strong);
}

.endpoint-tree-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 11px 9px 4px;
  color: var(--ink-3);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.065em;
  line-height: 1.4;
  text-transform: uppercase;
}

.endpoint-tree-caption span:last-child {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
}

.endpoint-group {
  min-width: 0;
  margin: 1px 0;
}

.endpoint-group-toggle {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
  text-align: left;
  transition: background 130ms ease, color 130ms ease;
}

.endpoint-group-toggle:hover {
  background: #f1f3f8;
  color: var(--ink);
}

.endpoint-group.is-open > .endpoint-group-toggle {
  background: #f5f6fa;
  color: var(--ink-2);
}

.endpoint-group.contains-active > .endpoint-group-toggle {
  color: var(--accent-strong);
  font-weight: 650;
}

.endpoint-group.contains-active > .endpoint-group-toggle::before {
  position: absolute;
  top: 11px;
  bottom: 11px;
  left: -12px;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: var(--accent);
  content: "";
}

.endpoint-group-icon {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
  color: var(--ink-3);
}

.endpoint-group.contains-active .endpoint-group-icon {
  border-color: #d8dbff;
  background: var(--accent-soft);
  color: var(--accent);
}

.endpoint-group-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.endpoint-group-label {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.endpoint-group-count {
  color: var(--ink-3);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  font-weight: 650;
}

.endpoint-group-chevron {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  transition: transform 150ms ease;
}

.endpoint-group.is-open .endpoint-group-chevron {
  transform: rotate(90deg);
}

.endpoint-group-list {
  position: relative;
  margin: 2px 0 7px 19px;
  padding: 2px 0 2px 10px;
  list-style: none;
}

.endpoint-group-list[hidden] {
  display: none !important;
}

.endpoint-group-list::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 1px;
  background: var(--line);
  content: "";
}

.endpoint-group-list li {
  min-width: 0;
  margin: 0;
  padding: 0;
}

.endpoint-nav-link {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 48px;
  align-items: flex-start;
  gap: 8px;
  margin: 1px 0;
  padding: 7px 7px;
  border-radius: 8px;
  color: var(--ink-3);
  text-decoration: none;
  transition: background 130ms ease, color 130ms ease;
}

.endpoint-nav-link:hover {
  background: #f1f3f8;
  color: var(--ink);
}

.endpoint-nav-link.active {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.endpoint-nav-link.active::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: -11px;
  width: 2px;
  border-radius: 3px;
  background: var(--accent);
  content: "";
}

.endpoint-method {
  display: inline-flex;
  width: 43px;
  height: 18px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1;
}

.endpoint-method-get {
  border-color: #a8dfcb;
  background: var(--green-soft);
  color: #087b54;
}

.endpoint-method-post {
  border-color: #c4d0f8;
  background: #eff3ff;
  color: #3556bd;
}

.endpoint-method-put {
  border-color: #edd19e;
  background: var(--amber-soft);
  color: #945600;
}

.endpoint-method-delete {
  border-color: #efbac3;
  background: var(--red-soft);
  color: #b02c43;
}

.endpoint-method-patch {
  border-color: #d4c7f0;
  background: #f4f0ff;
  color: #6d44b4;
}

.endpoint-method-hub {
  border-color: #c9c1f2;
  background: #f3f0ff;
  color: #6647b6;
}

.socket-endpoint-list {
  margin-top: 3px;
}

.endpoint-nav-copy {
  display: block;
  min-width: 0;
  flex: 1;
  line-height: 1.25;
}

.endpoint-nav-label {
  display: block;
  overflow: hidden;
  color: inherit;
  font-size: 12px;
  font-weight: 570;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.endpoint-nav-copy code {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  padding: 0;
  background: transparent;
  color: var(--ink-3);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.endpoint-nav-link.active .endpoint-nav-copy code {
  color: #55578f;
}

.endpoint-nav-link:focus-visible,
.endpoint-group-toggle:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 1px;
  box-shadow: 0 0 0 4px rgba(91, 92, 226, 0.16);
}

.sidebar-footer {
  flex: 0 0 auto;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: rgba(251, 252, 254, 0.95);
}

.support-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px;
  border-radius: 10px;
  color: var(--ink-3);
  text-decoration: none;
  transition: background 140ms ease;
}

.support-link:hover {
  background: #f1f3f8;
  color: var(--ink);
}

.support-icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--accent);
}

.support-icon svg,
.support-arrow {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.support-link > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.support-link small,
.support-link strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-link small {
  color: var(--ink-4);
  font-size: 11px;
  line-height: 1.3;
}

.support-link strong {
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.support-arrow {
  width: 14px;
  height: 14px;
  color: var(--ink-4);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 8px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #ffffff;
}

.sidebar-avatar {
  width: 34px;
  height: 34px;
  font-size: 12px;
}

.sidebar-user-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.sidebar-user-copy strong,
.sidebar-user-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-user-copy strong {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.4;
}

.sidebar-user-copy small {
  color: var(--ink-4);
  font-size: 11px;
  line-height: 1.4;
}

.sidebar-user .icon-button {
  width: 31px;
  height: 31px;
  border-color: transparent;
}

.sidebar-backdrop {
  display: none;
}

/* Main documentation surface */
.main-content {
  min-width: 0;
  overflow: clip;
  background: var(--canvas);
}

.main-content:focus {
  outline: none;
}

.breadcrumb-row {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 7px;
  padding: 0 42px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink-4);
  font-size: 12px;
}

.breadcrumb-row a {
  color: var(--ink-3);
  font-weight: 500;
  text-decoration: none;
}

.breadcrumb-row a:hover {
  color: var(--accent);
}

.breadcrumb-row svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.breadcrumb-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.main-content > .bg-gradient-to-r,
.main-content > [style*="background: linear-gradient"] {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line) !important;
  background:
    radial-gradient(circle at 82% -35%, rgba(0, 169, 199, 0.13), transparent 38%),
    radial-gradient(circle at 62% 150%, rgba(91, 92, 226, 0.13), transparent 42%),
    linear-gradient(180deg, #fafbff 0%, #f7f8fc 100%) !important;
  color: var(--ink) !important;
}

.main-content > .bg-gradient-to-r::after,
.main-content > [style*="background: linear-gradient"]::after {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(98, 108, 130, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98, 108, 130, 0.045) 1px, transparent 1px);
  background-size: 28px 28px;
  content: "";
  mask-image: linear-gradient(90deg, transparent 30%, #000 100%);
  pointer-events: none;
}

.main-content > .bg-gradient-to-r > *,
.main-content > [style*="background: linear-gradient"] > * {
  position: relative;
  z-index: 1;
}

.main-content > .bg-gradient-to-r > .max-w-7xl,
.main-content > [style*="background: linear-gradient"] > .page-wrap {
  width: 100%;
  max-width: 1240px !important;
  margin: 0 auto;
  padding: 48px 54px 45px !important;
}

.main-content > .bg-gradient-to-r .text-white,
.main-content > .bg-gradient-to-r h1,
.main-content > .bg-gradient-to-r h2,
.main-content > [style*="background: linear-gradient"] h1,
.main-content > [style*="background: linear-gradient"] h2 {
  color: var(--ink) !important;
}

.main-content > .bg-gradient-to-r p[class*="text-"],
.main-content > [style*="background: linear-gradient"] p {
  max-width: 780px;
  color: var(--ink-3) !important;
}

.main-content > .bg-gradient-to-r h1,
.main-content > [style*="background: linear-gradient"] h1 {
  max-width: 840px;
  margin-bottom: 12px !important;
  font-size: clamp(34px, 4vw, 48px) !important;
  font-weight: 700 !important;
  letter-spacing: -0.045em !important;
  line-height: 1.08 !important;
}

.main-content > .bg-gradient-to-r p,
.main-content > [style*="background: linear-gradient"] p {
  font-size: 17px !important;
  line-height: 1.65 !important;
}

.main-content > .max-w-7xl,
.main-content > .max-w-4xl,
.main-content > .page-wrap {
  width: 100%;
  max-width: 1240px !important;
  margin-right: auto !important;
  margin-left: auto !important;
  padding: 48px 54px 104px !important;
}

.main-content > .max-w-4xl,
.main-content > .page-wrap {
  max-width: 1050px !important;
}

.main-content > .max-w-7xl > .grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 220px !important;
  gap: 72px !important;
}

.main-content > .max-w-7xl > .grid > [class*="lg:col-span-1"] {
  grid-row: 1;
  grid-column: 2;
}

.main-content > .max-w-7xl > .grid > [class*="lg:col-span-3"] {
  min-width: 0;
  grid-row: 1;
  grid-column: 1;
}

.main-content > .max-w-7xl > .grid > [class*="lg:col-span-1"] > nav {
  top: calc(var(--header-height) + 30px) !important;
  max-height: calc(100vh - var(--header-height) - 60px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 3px 0 3px 18px;
  border-left: 1px solid var(--line);
  scrollbar-width: thin;
}

.main-content > .max-w-7xl > .grid > [class*="lg:col-span-1"] > nav h3 {
  margin: 0 0 10px !important;
  color: var(--ink-4) !important;
  font-size: 11px !important;
  font-weight: 650 !important;
  letter-spacing: 0.065em !important;
}

.main-content > .max-w-7xl > .grid > [class*="lg:col-span-1"] > nav a {
  position: relative;
  display: block;
  padding: 5px 0 !important;
  color: var(--ink-3) !important;
  font-size: 12px !important;
  line-height: 1.45;
  text-decoration: none;
  transition: color 130ms ease;
}

.main-content > .max-w-7xl > .grid > [class*="lg:col-span-1"] > nav a::before {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: -19px;
  width: 2px;
  border-radius: 4px;
  background: var(--accent);
  content: "";
  opacity: 0;
}

.main-content > .max-w-7xl > .grid > [class*="lg:col-span-1"] > nav a:hover,
.main-content > .max-w-7xl > .grid > [class*="lg:col-span-1"] > nav a.toc-active {
  color: var(--accent-strong) !important;
}

.main-content > .max-w-7xl > .grid > [class*="lg:col-span-1"] > nav a.toc-active::before {
  opacity: 1;
}

.main-content section {
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.api-operation,
.legacy-anchor {
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.api-operation {
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.api-operation:target {
  border-color: rgba(91, 92, 226, 0.48) !important;
  box-shadow: 0 0 0 4px rgba(91, 92, 226, 0.09), var(--shadow-sm) !important;
}

.legacy-anchor {
  display: block;
}

.main-content section + section {
  padding-top: 6px;
}

.main-content h1,
.main-content h2,
.main-content h3,
.main-content h4 {
  color: var(--ink) !important;
  text-wrap: balance;
}

.main-content h2 {
  letter-spacing: -0.025em !important;
  line-height: 1.22 !important;
}

.main-content h3 {
  letter-spacing: -0.012em;
  line-height: 1.35;
}

.main-content p,
.main-content li {
  color: var(--ink-2);
}

.main-content p {
  max-width: 76ch;
}

.main-content strong {
  color: var(--ink);
}

.main-content a:not([class*="bg-"]):not(.copy-btn) {
  font-weight: 500;
}

/* Modernized legacy utility surfaces */
.bg-white {
  background-color: var(--surface) !important;
}

.bg-gray-50,
.bg-gray-100 {
  background-color: var(--canvas-subtle) !important;
}

.bg-gray-800,
.bg-gray-900 {
  background-color: var(--surface-code) !important;
}

.text-gray-900,
.text-gray-800,
.text-gray-700 {
  color: var(--ink) !important;
}

.text-gray-600 {
  color: var(--ink-2) !important;
}

.text-gray-500,
.text-gray-400 {
  color: var(--ink-3) !important;
}

.border-gray-100,
.border-gray-200,
.border-gray-300,
.divide-gray-100 > :not([hidden]) ~ :not([hidden]),
.divide-gray-200 > :not([hidden]) ~ :not([hidden]) {
  border-color: var(--line) !important;
}

.shadow-sm,
.shadow,
.shadow-md {
  box-shadow: var(--shadow-sm) !important;
}

.rounded-lg,
.rounded-xl {
  border-radius: 13px !important;
}

.bg-white.rounded-lg.border,
.bg-white.rounded-xl.border,
.bg-white.rounded-lg.shadow-sm,
.bg-white.rounded-xl.shadow-sm {
  border-color: var(--line) !important;
  box-shadow: var(--shadow-sm) !important;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

a.bg-white.rounded-lg:hover,
a.bg-white.rounded-xl:hover {
  transform: translateY(-2px);
  border-color: #cdd4e0 !important;
  box-shadow: 0 10px 30px rgba(26, 35, 55, 0.08) !important;
}

.bg-blue-50,
.bg-indigo-50,
.bg-purple-50 {
  background-color: var(--accent-faint) !important;
}

.bg-blue-100,
.bg-indigo-100,
.bg-purple-100 {
  background-color: var(--accent-soft) !important;
}

.bg-green-50,
.bg-green-100 {
  background-color: var(--green-soft) !important;
}

.bg-yellow-50,
.bg-yellow-100,
.bg-amber-50,
.bg-amber-100 {
  background-color: var(--amber-soft) !important;
}

.bg-red-50,
.bg-red-100 {
  background-color: var(--red-soft) !important;
}

.border-blue-200,
.border-blue-400,
.border-blue-600,
.border-indigo-200,
.border-purple-200 {
  border-color: #cfd3ff !important;
}

.border-green-200,
.border-green-400,
.border-green-600 {
  border-color: #a9e4ce !important;
}

.border-yellow-200,
.border-yellow-400,
.border-amber-200,
.border-amber-400 {
  border-color: #f1d39a !important;
}

.border-red-200,
.border-red-400,
.border-red-600 {
  border-color: #efb4be !important;
}

.text-blue-600,
.text-blue-700,
.text-blue-800,
.text-indigo-600,
.text-indigo-700,
.text-purple-600,
.text-purple-700,
.text-purple-800 {
  color: var(--accent-strong) !important;
}

.text-green-600,
.text-green-700,
.text-green-800,
.text-green-900 {
  color: #087b54 !important;
}

.text-yellow-600,
.text-yellow-700,
.text-yellow-800,
.text-yellow-900,
.text-amber-600,
.text-amber-700,
.text-amber-800 {
  color: #945600 !important;
}

.text-red-600,
.text-red-700,
.text-red-800 {
  color: #b02c43 !important;
}

/* Normalize legacy inline colors that were authored for the retired dark theme. */
.main-content [style*="color:#a78bfa"],
.main-content [style*="color: #a78bfa"] {
  color: #5b5ce2 !important;
}

.main-content [style*="color:#60a5fa"],
.main-content [style*="color: #60a5fa"],
.main-content [style*="color:#93c5fd"],
.main-content [style*="color: #93c5fd"] {
  color: #3556bd !important;
}

.main-content [style*="color:#4ade80"],
.main-content [style*="color: #4ade80"],
.main-content [style*="color:#86efac"],
.main-content [style*="color: #86efac"],
.main-content [style*="color:#d1fae5"],
.main-content [style*="color: #d1fae5"],
.main-content [style*="color:#bbf7d0"],
.main-content [style*="color: #bbf7d0"] {
  color: #087b54 !important;
}

.main-content [style*="color:#fbbf24"],
.main-content [style*="color: #fbbf24"],
.main-content [style*="color:#fcd34d"],
.main-content [style*="color: #fcd34d"],
.main-content [style*="color:#fef3c7"],
.main-content [style*="color: #fef3c7"],
.main-content [style*="color:#fde68a"],
.main-content [style*="color: #fde68a"] {
  color: #945600 !important;
}

.main-content [style*="color:#f87171"],
.main-content [style*="color: #f87171"],
.main-content [style*="color:#fca5a5"],
.main-content [style*="color: #fca5a5"] {
  color: #b02c43 !important;
}

.bg-blue-600,
.bg-blue-700,
.bg-green-600,
.bg-green-700,
.bg-indigo-600,
.bg-indigo-700,
.bg-purple-600,
.bg-purple-700 {
  background-color: var(--accent) !important;
}

.hover\:bg-blue-50:hover,
.hover\:bg-gray-50:hover {
  background-color: var(--accent-faint) !important;
}

.hover\:bg-blue-600:hover,
.hover\:bg-blue-700:hover,
.hover\:bg-green-700:hover,
.hover\:bg-indigo-700:hover,
.hover\:bg-purple-700:hover {
  background-color: var(--accent-strong) !important;
}

.main-content .border-l-4 {
  border-left-width: 3px !important;
  border-radius: 0 11px 11px 0;
}

/* Documentation primitives */
code:not([class*="language-"]):not(.endpoint-path) {
  padding: 0.14em 0.42em;
  border: 1px solid #dfe3f7;
  border-radius: 6px;
  background: #f5f6ff !important;
  color: #3f45a8 !important;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.86em;
  font-weight: 500;
  overflow-wrap: anywhere;
}

pre code,
pre code[class*="language-"] {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #e6edf7 !important;
  font-size: inherit;
  font-weight: 400;
  overflow-wrap: normal;
}

.copy-wrap {
  position: relative;
  width: 100%;
  margin: 18px 0 25px;
  overflow: hidden;
  border: 1px solid #202b42;
  border-radius: 14px;
  background: var(--surface-code);
  box-shadow: 0 10px 28px rgba(12, 18, 34, 0.12);
}

.copy-wrap::before {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  left: 0;
  height: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: var(--surface-code-2);
  content: "";
}

pre[class*="language-"],
.copy-wrap pre {
  max-width: 100%;
  margin: 0 !important;
  padding: 58px 20px 20px !important;
  overflow: auto;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--surface-code) !important;
  color: #e6edf7 !important;
  font-family: "JetBrains Mono", ui-monospace, monospace !important;
  font-size: 13px !important;
  line-height: 1.7 !important;
  tab-size: 2;
  text-shadow: none !important;
}

.code-language {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 15px;
  color: #91a0ba;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  line-height: 17px;
  text-transform: uppercase;
}

.copy-btn {
  position: absolute;
  z-index: 3;
  top: 7px;
  right: 8px;
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  color: #aab5c8;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 600;
  transition: border-color 130ms ease, background 130ms ease, color 130ms ease;
}

.copy-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
}

.copy-btn svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.copy-btn.is-copied {
  color: #73e7b7;
}

.base-url {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  overflow: hidden;
  border: 1px solid #dfe3f7;
  border-radius: 9px;
  background: #f6f7ff;
  color: #3f45a8;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px;
  white-space: nowrap;
}

.base-url > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.base-url-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(15, 159, 110, 0.12);
}

.method,
.status,
.prequired,
.poptional {
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.method {
  min-width: 55px;
  justify-content: center;
  padding: 3px 8px;
  letter-spacing: 0.035em;
}

.method-get {
  border-color: #9cdec5;
  background: var(--green-soft);
  color: #087b54;
}

.method-post {
  border-color: #b9c9ff;
  background: #eff3ff;
  color: #3556bd;
}

.method-put {
  border-color: #f0ce8e;
  background: var(--amber-soft);
  color: #945600;
}

.method-delete {
  border-color: #efb4be;
  background: var(--red-soft);
  color: #b02c43;
}

.method-patch {
  border-color: #d0c1f4;
  background: #f4f0ff;
  color: #6d44b4;
}

.status,
.prequired,
.poptional {
  padding: 2px 7px;
}

.s200,
.s201 {
  border-color: #b1e5d2;
  background: var(--green-soft);
  color: #087b54;
}

.s400,
.s404,
.s429 {
  border-color: #f0d49f;
  background: var(--amber-soft);
  color: #945600;
}

.s401,
.s403,
.s500,
.prequired {
  border-color: #efbbc4;
  background: var(--red-soft);
  color: #b02c43;
}

.poptional {
  border-color: var(--line);
  background: var(--canvas-subtle);
  color: var(--ink-3);
}

.ep-card {
  margin-bottom: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.ep-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 17px;
  border-bottom: 1px solid var(--line);
  background: var(--canvas-subtle);
}

.ep-path {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink-2);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px;
}

.ep-body {
  padding: 20px;
  background: var(--surface);
}

.ep-desc {
  margin-bottom: 16px;
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.65;
}

.box {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--canvas-subtle);
}

.alert {
  margin: 16px 0;
  padding: 13px 16px;
  border: 1px solid;
  border-left-width: 3px;
  border-radius: 0 10px 10px 0;
  font-size: 14px;
}

.alert-info {
  border-color: #cfd3ff;
  background: var(--accent-faint);
  color: #3f45a8;
}

.alert-success {
  border-color: #a9e4ce;
  background: var(--green-soft);
  color: #087b54;
}

.alert-warn {
  border-color: #f1d39a;
  background: var(--amber-soft);
  color: #945600;
}

.alert-danger {
  border-color: #efb4be;
  background: var(--red-soft);
  color: #b02c43;
}

.sec-title {
  margin: 0 0 7px;
  color: var(--ink);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.sec-sub {
  margin: 0 0 25px;
  color: var(--ink-3);
  font-size: 15px;
  line-height: 1.7;
}

.sub-title {
  margin: 30px 0 9px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 650;
}

.divider {
  margin: 44px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.overflow-x-auto {
  border-radius: inherit;
}

.table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-radius: inherit;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
}

.table-scroll:focus-visible {
  outline: 3px solid rgba(91, 92, 226, 0.22);
  outline-offset: -3px;
}

.table-scroll > table {
  margin: 0;
}

.dtable,
.main-content table:not(.dtable) {
  width: 100%;
  border-collapse: collapse;
  color: var(--ink-2);
  font-size: 13px;
}

.dtable th,
.main-content table:not(.dtable) th {
  padding: 11px 14px !important;
  border-bottom: 1px solid var(--line) !important;
  background: var(--canvas-subtle) !important;
  color: var(--ink-3) !important;
  font-size: 11px !important;
  font-weight: 650 !important;
  letter-spacing: 0.055em;
  text-align: left;
  text-transform: uppercase;
}

.dtable td,
.main-content table:not(.dtable) td {
  padding: 12px 14px !important;
  border-bottom: 1px solid var(--line) !important;
  color: var(--ink-2);
  line-height: 1.55;
  text-align: left;
  vertical-align: top;
}

.dtable tr:last-child td,
.main-content table:not(.dtable) tr:last-child td {
  border-bottom: 0 !important;
}

.dtable tbody tr:hover td,
.main-content table:not(.dtable) tbody tr:hover td {
  background: #fafbfc;
}

.dtable td:first-child {
  color: #3f45a8;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
}

.has-heading-anchor {
  position: relative;
}

.heading-anchor {
  display: inline-flex;
  margin-left: 9px;
  color: var(--ink-4) !important;
  font-size: 0.72em;
  font-weight: 500 !important;
  opacity: 0;
  text-decoration: none;
  transition: color 130ms ease, opacity 130ms ease;
}

.has-heading-anchor:hover .heading-anchor,
.heading-anchor:focus-visible {
  color: var(--accent) !important;
  opacity: 1;
}

/* Developer home */
.docs-home-hero {
  position: relative;
  display: grid;
  width: 100%;
  max-width: 1440px;
  min-height: 570px;
  align-items: center;
  gap: clamp(48px, 7vw, 96px);
  margin: 0 auto;
  padding: 74px clamp(54px, 6vw, 96px) 78px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 93% 15%, rgba(0, 169, 199, 0.14), transparent 31%),
    radial-gradient(circle at 50% 115%, rgba(91, 92, 226, 0.14), transparent 34%),
    linear-gradient(145deg, #fbfcff 0%, #f6f7ff 54%, #f8fcfd 100%);
  grid-template-columns: minmax(0, 1.03fr) minmax(420px, 0.97fr);
}

.docs-home-hero::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 52%;
  height: 100%;
  background-image:
    linear-gradient(rgba(91, 101, 123, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 101, 123, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  content: "";
  mask-image: linear-gradient(90deg, transparent, #000 36%, transparent 96%);
  pointer-events: none;
}

.docs-home-hero > * {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 4px 9px 4px 5px;
  border: 1px solid #dfe2f5;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
  font-size: 12px;
  font-weight: 650;
}

.hero-kicker-mark {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}

.hero-kicker-mark svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.hero-version {
  padding-left: 7px;
  border-left: 1px solid var(--line-strong);
  color: var(--ink-4);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
}

.docs-home-hero h1 {
  max-width: 760px;
  margin: 0 0 22px;
  color: var(--ink) !important;
  font-size: clamp(42px, 5.1vw, 66px);
  font-weight: 700;
  letter-spacing: -0.062em;
  line-height: 1.02;
  text-wrap: balance;
}

.docs-home-hero-copy > p {
  max-width: 670px;
  margin: 0;
  color: var(--ink-3);
  font-size: 17px;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 29px;
}

.hero-action-primary,
.hero-action-secondary {
  display: inline-flex;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 17px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 650 !important;
  text-decoration: none;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.hero-action-primary {
  border: 1px solid var(--accent);
  background: var(--accent);
  box-shadow: 0 8px 22px rgba(91, 92, 226, 0.22);
  color: #ffffff !important;
}

.hero-action-primary:hover {
  transform: translateY(-1px);
  background: var(--accent-strong);
  box-shadow: 0 12px 28px rgba(91, 92, 226, 0.28);
}

.hero-action-secondary {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink-2) !important;
}

.hero-action-secondary:hover {
  transform: translateY(-1px);
  border-color: #bfc7d4;
  background: #ffffff;
  color: var(--ink) !important;
  box-shadow: var(--shadow-sm);
}

.hero-action-primary svg,
.hero-action-secondary svg,
.quick-step-card a svg,
.resource-card svg,
.auth-flow svg,
.home-callout > svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

.hero-action-primary svg,
.hero-action-secondary svg {
  width: 17px;
  height: 17px;
}

.hero-endpoint {
  display: flex;
  max-width: 100%;
  align-items: center;
  gap: 9px;
  margin-top: 28px;
  color: var(--ink-4);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.hero-endpoint code {
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: transparent !important;
  color: var(--ink-2) !important;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

.endpoint-state {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(15, 159, 110, 0.11);
}

.hero-code-panel {
  width: 100%;
  max-width: 610px;
  justify-self: end;
  overflow: hidden;
  border: 1px solid #1d2940;
  border-radius: 18px;
  background: var(--surface-code);
  box-shadow: 0 30px 70px rgba(17, 24, 45, 0.23), 0 4px 12px rgba(17, 24, 45, 0.1);
}

.hero-code-heading {
  display: grid;
  min-height: 51px;
  align-items: center;
  padding: 0 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: #111a2d;
  color: #9ba8bc;
  grid-template-columns: 1fr auto 1fr;
}

.hero-code-heading > span {
  display: flex;
  gap: 6px;
}

.hero-code-heading i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #35415a;
}

.hero-code-heading i:first-child {
  background: #eb6c79;
}

.hero-code-heading i:nth-child(2) {
  background: #e8b357;
}

.hero-code-heading i:nth-child(3) {
  background: #55bf91;
}

.hero-code-heading strong {
  color: #dbe3ef;
  font-size: 12px;
  font-weight: 600;
}

.hero-code-heading small {
  justify-self: end;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-code-body {
  padding: 20px;
}

.hero-code-step {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 13px;
}

.hero-code-step > span {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid rgba(143, 151, 255, 0.26);
  border-radius: 8px;
  background: rgba(91, 92, 226, 0.14);
  color: #aeb4ff;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
}

.hero-code-step > div {
  display: flex;
  flex-direction: column;
}

.hero-code-step strong {
  color: #edf2f8;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.hero-code-step small {
  color: #8593aa;
  font-size: 11px;
  line-height: 1.5;
}

.hero-code-panel .copy-wrap {
  margin: 0;
  border-color: rgba(255, 255, 255, 0.07);
  border-radius: 11px;
  box-shadow: none;
}

.hero-code-panel .copy-wrap pre {
  max-height: 230px;
}

.hero-code-response {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 13px;
  padding: 10px 12px;
  border: 1px solid rgba(94, 214, 159, 0.13);
  border-radius: 9px;
  background: rgba(15, 159, 110, 0.07);
  color: #8898ae;
  font-size: 11px;
}

.hero-code-response code {
  padding: 0;
  border: 0;
  background: transparent !important;
  color: #c7d0de !important;
  font-size: 11px;
}

.response-status {
  padding: 2px 6px;
  border: 1px solid rgba(94, 214, 159, 0.22);
  border-radius: 5px;
  background: rgba(15, 159, 110, 0.12);
  color: #74ddb3;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 9.5px;
  font-weight: 600;
}

.hero-code-response > span:last-child {
  margin-left: auto;
}

.docs-home-shell {
  display: grid;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 78px 54px 110px;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 76px;
}

.docs-home-content {
  min-width: 0;
}

.home-section {
  padding: 0 0 88px !important;
  scroll-margin-top: calc(var(--header-height) + 34px);
}

.home-section + .home-section {
  padding-top: 0;
}

.home-section-last {
  padding-bottom: 0 !important;
}

.section-heading {
  display: grid;
  align-items: start;
  gap: 14px;
  margin-bottom: 30px;
  grid-template-columns: 40px minmax(0, 1fr);
}

.section-index {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-top: 2px;
  border: 1px solid #dfe2f5;
  border-radius: 10px;
  background: var(--accent-faint);
  color: var(--accent);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
}

.section-eyebrow {
  margin: 0 0 5px !important;
  color: var(--accent) !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.085em;
  line-height: 1.35;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0 0 9px;
  font-size: clamp(27px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.042em !important;
  line-height: 1.17 !important;
}

.section-heading > div > p:last-child {
  max-width: 680px;
  margin: 0;
  color: var(--ink-3);
  font-size: 15px;
}

.quick-step-list {
  display: grid;
  gap: 13px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quick-step-card {
  display: flex;
  min-width: 0;
  min-height: 260px;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.quick-step-card:hover {
  transform: translateY(-2px);
  border-color: #ccd3df;
  box-shadow: 0 12px 30px rgba(28, 39, 63, 0.07);
}

.quick-step-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 19px;
}

.quick-step-number {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
}

.quick-step-time {
  color: var(--ink-4);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.quick-step-card h3 {
  margin: 0 0 9px;
  font-size: 16px;
  font-weight: 650;
}

.quick-step-card p {
  margin: 0;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.65;
}

.quick-step-card a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 20px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 650 !important;
  text-decoration: none;
}

.quick-step-card a:hover {
  color: var(--accent-strong);
}

.quick-step-card a svg {
  width: 14px;
  height: 14px;
}

.auth-flow {
  display: grid;
  align-items: center;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--canvas-subtle);
  grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr) 42px minmax(0, 1fr);
}

.auth-flow-node {
  display: flex;
  min-width: 0;
  min-height: 77px;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.auth-flow-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
}

.auth-flow-icon svg {
  width: 18px;
  height: 18px;
}

.auth-flow-node > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.auth-flow-node small {
  overflow: hidden;
  color: var(--ink-4);
  font-size: 10px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-flow-node strong {
  overflow: hidden;
  color: var(--ink);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.55;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-flow-node-accent {
  border-color: #cfd3ff;
  background: var(--accent-faint);
}

.auth-flow-arrow {
  display: grid;
  place-items: center;
  color: var(--ink-4);
}

.auth-flow-arrow svg {
  width: 32px;
  height: 16px;
}

.home-callout {
  display: grid;
  align-items: start;
  gap: 12px;
  margin-top: 15px;
  padding: 17px;
  border: 1px solid #d9dcfa;
  border-radius: 12px;
  background: var(--accent-faint);
  grid-template-columns: 26px minmax(0, 1fr) auto;
}

.home-callout > svg {
  width: 21px;
  height: 21px;
  margin-top: 1px;
  color: var(--accent);
}

.home-callout strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}

.home-callout p {
  margin: 0;
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.65;
}

.home-callout a {
  align-self: center;
  padding: 7px 9px;
  border: 1px solid #d9dcfa;
  border-radius: 8px;
  background: #ffffff;
  color: var(--accent);
  font-size: 11px;
  font-weight: 650 !important;
  text-decoration: none;
  white-space: nowrap;
}

.request-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.request-card-header {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 11px;
  padding: 10px 15px;
  border-bottom: 1px solid var(--line);
  background: var(--canvas-subtle);
}

.request-card-header > code {
  min-width: 0;
  overflow: hidden;
  border: 0;
  background: transparent !important;
  color: var(--ink) !important;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.request-card-header > span:last-child {
  margin-left: auto;
  color: var(--ink-4);
  font-size: 11px;
}

.request-card > .copy-wrap {
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

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

.response-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.response-card-title {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--canvas-subtle);
}

.response-card-title strong {
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
}

.response-card > .copy-wrap {
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.response-card > .copy-wrap pre {
  min-height: 230px;
}

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

.resource-card {
  display: grid;
  min-width: 0;
  min-height: 86px;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #ffffff;
  color: var(--ink-2) !important;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
}

.resource-card:hover {
  transform: translateY(-2px);
  border-color: #cbd2df;
  box-shadow: 0 10px 28px rgba(28, 39, 63, 0.07);
}

.resource-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}

.resource-icon-cyan {
  background: var(--cyan-soft);
  color: #007e98;
}

.resource-icon-purple {
  background: #f4f0ff;
  color: #6d44b4;
}

.resource-icon-orange {
  background: var(--amber-soft);
  color: var(--amber);
}

.resource-icon svg {
  width: 20px;
  height: 20px;
}

.resource-card > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.resource-card strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resource-card small {
  margin-top: 2px;
  overflow: hidden;
  color: var(--ink-4);
  font-size: 11px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resource-arrow {
  width: 17px;
  height: 17px;
  color: var(--ink-4);
  transition: color 150ms ease, transform 150ms ease;
}

.resource-card:hover .resource-arrow {
  transform: translateX(2px);
  color: var(--accent);
}

.docs-home-toc {
  min-width: 0;
}

.docs-home-toc > div {
  position: sticky;
  top: calc(var(--header-height) + 30px);
  display: flex;
  flex-direction: column;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.docs-home-toc span {
  margin-bottom: 8px;
  color: var(--ink-4);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.docs-home-toc a {
  position: relative;
  padding: 5px 0;
  color: var(--ink-3) !important;
  font-size: 12px;
  font-weight: 500 !important;
  line-height: 1.45;
  text-decoration: none;
}

.docs-home-toc a::before {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: -19px;
  width: 2px;
  border-radius: 3px;
  background: var(--accent);
  content: "";
  opacity: 0;
}

.docs-home-toc a:hover,
.docs-home-toc a.toc-active {
  color: var(--accent-strong) !important;
}

.docs-home-toc a.toc-active::before {
  opacity: 1;
}

@media (max-width: 1220px) {
  .docs-home-shell {
    padding-right: 46px;
    padding-left: 46px;
    grid-template-columns: minmax(0, 1fr);
  }

  .docs-home-toc {
    display: none;
  }
}

@media (max-width: 1080px) {
  .docs-home-hero {
    min-height: 0;
    padding-right: 46px;
    padding-left: 46px;
    grid-template-columns: minmax(0, 1fr);
  }

  .docs-home-hero-copy {
    max-width: 820px;
  }

  .hero-code-panel {
    max-width: 760px;
    justify-self: start;
  }
}

@media (max-width: 820px) {
  .quick-step-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .oco-three-column,
  .oco-two-column {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .quick-step-card {
    min-height: 0;
  }

  .auth-flow {
    grid-template-columns: minmax(0, 1fr);
  }

  .auth-flow-arrow {
    height: 24px;
    transform: rotate(90deg);
  }

  .response-grid,
  .resource-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .response-card > .copy-wrap pre {
    min-height: 0;
  }
}

@media (max-width: 700px) {
  .docs-home-hero {
    gap: 42px;
    padding: 48px 20px 52px;
  }

  .docs-home-hero::before {
    width: 100%;
  }

  .docs-home-hero h1 {
    font-size: clamp(38px, 12vw, 51px);
  }

  .docs-home-hero-copy > p {
    font-size: 16px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-action-primary,
  .hero-action-secondary {
    width: 100%;
  }

  .hero-endpoint {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .hero-endpoint code {
    width: calc(100% - 70px);
  }

  .hero-code-body {
    padding: 14px;
  }

  .hero-code-response {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .hero-code-response > span:last-child {
    width: 100%;
    margin-left: 0;
  }

  .docs-home-shell {
    padding: 58px 20px 82px;
  }

  .home-section {
    padding-bottom: 70px !important;
  }

  .section-heading {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-index {
    width: 34px;
    height: 34px;
  }

  .home-callout {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .home-callout a {
    grid-column: 2;
    justify-self: start;
  }

  .request-card-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .request-card-header > span:last-child {
    width: 100%;
    margin-left: 0;
  }
}

/* Search command palette */
.search-dialog {
  width: min(680px, calc(100vw - 32px));
  max-width: none;
  max-height: min(720px, calc(100vh - 80px));
  margin: 9vh auto auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(206, 213, 224, 0.9);
  border-radius: 17px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  color: var(--ink);
}

.search-dialog::backdrop {
  background: rgba(20, 27, 43, 0.48);
  backdrop-filter: blur(5px);
}

.search-panel {
  display: flex;
  max-height: min(720px, calc(100vh - 80px));
  flex-direction: column;
}

.search-box {
  display: flex;
  min-height: 66px;
  align-items: center;
  gap: 12px;
  padding: 0 15px 0 19px;
  border-bottom: 1px solid var(--line);
}

.search-box > svg {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--ink-3);
  stroke-linecap: round;
  stroke-width: 1.8;
}

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

.search-box input::placeholder {
  color: var(--ink-4);
}

.search-close {
  min-height: 25px;
  padding: 0 7px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--canvas-subtle);
  color: var(--ink-3);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.search-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px 8px;
  color: var(--ink-4);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.search-heading small {
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
}

.search-results {
  min-height: 160px;
  overflow-y: auto;
  padding: 4px 9px 12px;
}

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

.search-result-method {
  width: 43px;
  height: 22px;
  margin: 0;
  font-size: 9.5px;
}

.search-result:hover,
.search-result.is-selected {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.search-result-icon {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--accent);
}

.search-result-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.search-result-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.search-result-copy strong {
  overflow: hidden;
  color: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-copy small {
  overflow: hidden;
  color: var(--ink-4);
  font-size: 11px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result.is-endpoint .search-result-copy small {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
}

.search-result-type {
  color: var(--ink-4);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.search-empty {
  display: grid;
  min-height: 210px;
  place-content: center;
  padding: 30px;
  text-align: center;
}

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

.search-empty span {
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
}

.search-empty small {
  margin-top: 4px;
  color: var(--ink-4);
  font-size: 12px;
}

.search-footer {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 18px;
  padding: 0 16px;
  border-top: 1px solid var(--line);
  background: var(--canvas-subtle);
  color: var(--ink-4);
  font-size: 11px;
}

.search-footer span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.search-footer kbd {
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  font-size: 9px;
}

/* Authentication and access-state surfaces */
.auth-body {
  display: grid;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 94%, rgba(91, 92, 226, 0.12), transparent 32%),
    radial-gradient(circle at 96% 8%, rgba(0, 169, 199, 0.11), transparent 28%),
    #f7f8fc;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.auth-body::before {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(99, 109, 132, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 109, 132, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  content: "";
  mask-image: radial-gradient(circle at center, #000 5%, transparent 75%);
  pointer-events: none;
}

.auth-header,
.auth-footer,
.auth-content {
  position: relative;
  z-index: 1;
}

.auth-header {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 58px);
}

.auth-header-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 140ms ease, color 140ms ease;
}

.auth-header-link:hover {
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
}

.auth-header-link svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.auth-content {
  display: grid;
  width: 100%;
  place-items: center;
  padding: 38px clamp(20px, 5vw, 72px) 56px;
}

.auth-content:focus {
  outline: none;
}

.auth-shell {
  display: grid;
  width: min(1060px, 100%);
  min-height: 650px;
  overflow: hidden;
  border: 1px solid rgba(213, 219, 229, 0.9);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 32px 90px rgba(28, 39, 63, 0.14), 0 4px 14px rgba(28, 39, 63, 0.05);
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
}

.auth-story {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(36px, 5vw, 60px);
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(50, 216, 227, 0.2), transparent 34%),
    radial-gradient(circle at 15% 100%, rgba(124, 108, 255, 0.25), transparent 38%),
    #0b1230;
  color: #ffffff;
}

.auth-story::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  content: "";
  mask-image: linear-gradient(145deg, #000, transparent 76%);
  pointer-events: none;
}

.auth-story > * {
  position: relative;
  z-index: 1;
}

.auth-story-badge {
  display: inline-flex;
  min-height: 31px;
  align-items: center;
  gap: 7px;
  margin-bottom: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #c9d3e6;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.auth-story-badge svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #8d96ff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.auth-story h2 {
  max-width: 480px;
  margin: 0 0 19px;
  color: #ffffff;
  font-size: clamp(35px, 4vw, 49px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.06;
  text-wrap: balance;
}

.auth-story-content > p {
  max-width: 470px;
  margin: 0;
  color: #9eacc4;
  font-size: 14px;
  line-height: 1.75;
}

.auth-role-list {
  display: grid;
  gap: 9px;
  margin-top: 40px;
}

.auth-role-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.045);
}

.auth-role-icon {
  display: grid;
  width: 37px;
  height: 37px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  color: #d4dbff;
}

.auth-role-mobile {
  color: #7ee7c0;
}

.auth-role-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.auth-role-item > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.auth-role-item strong {
  color: #edf2fa;
  font-size: 12px;
  font-weight: 600;
}

.auth-role-item small {
  margin-top: 1px;
  color: #8493ad;
  font-size: 10px;
  line-height: 1.5;
}

.auth-story-footnote {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 34px;
  color: #7f8eaa;
  font-size: 10px;
  line-height: 1.55;
}

.auth-story-footnote svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: #70d5b1;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.auth-form-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(38px, 5vw, 68px);
}

.auth-form-heading {
  margin-bottom: 29px;
}

.auth-form-kicker,
.auth-status-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.auth-form-heading h1 {
  max-width: 440px;
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 29px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.17;
}

.auth-form-heading p {
  max-width: 450px;
  margin: 0;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.65;
}

.auth-error {
  display: grid;
  align-items: start;
  gap: 10px;
  margin-bottom: 20px;
  padding: 12px;
  border: 1px solid #efb4be;
  border-radius: 10px;
  background: var(--red-soft);
  color: #b02c43;
  grid-template-columns: 19px minmax(0, 1fr);
}

.auth-error > svg {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.auth-error > div {
  display: flex;
  flex-direction: column;
}

.auth-error strong {
  margin-bottom: 2px;
  color: #99243a;
  font-size: 12px;
}

.auth-error span {
  font-size: 11px;
  line-height: 1.5;
}

.auth-form {
  display: grid;
  gap: 18px;
}

.auth-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-wrap > svg {
  position: absolute;
  z-index: 1;
  left: 13px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--ink-4);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  pointer-events: none;
}

.auth-input-wrap input {
  width: 100%;
  min-height: 47px;
  padding: 0 44px 0 41px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  outline: none;
  background: #ffffff;
  color: var(--ink);
  font-size: 14px;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.auth-input-wrap input::placeholder {
  color: var(--ink-4);
}

.auth-input-wrap input:hover {
  border-color: #bdc5d2;
}

.auth-input-wrap input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(91, 92, 226, 0.11);
}

.password-toggle {
  position: absolute;
  z-index: 2;
  right: 8px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink-4);
  cursor: pointer;
}

.password-toggle:hover {
  background: var(--canvas-subtle);
  color: var(--ink-2);
}

.password-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.auth-validation {
  display: block;
  min-height: 16px;
  margin-top: 4px;
  color: var(--red);
  font-size: 10px;
  line-height: 1.45;
}

.auth-submit {
  display: inline-flex;
  width: 100%;
  min-height: 47px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 1px;
  padding: 0 18px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: var(--accent);
  box-shadow: 0 8px 22px rgba(91, 92, 226, 0.2);
  color: #ffffff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: transform 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.auth-submit:hover {
  transform: translateY(-1px);
  background: var(--accent-strong);
  box-shadow: 0 12px 28px rgba(91, 92, 226, 0.25);
  color: #ffffff;
}

.auth-submit svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.auth-help {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 22px;
  color: var(--ink-4);
  font-size: 11px;
}

.auth-help a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.auth-footer {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 20px;
  color: var(--ink-4);
  font-size: 11px;
}

.auth-footer a {
  color: var(--ink-3);
  font-weight: 600;
  text-decoration: none;
}

.auth-status-card {
  width: min(590px, 100%);
  padding: clamp(30px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 26px 72px rgba(28, 39, 63, 0.12);
  text-align: center;
}

.auth-status-icon {
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  margin: 0 auto 21px;
  border: 1px solid;
  border-radius: 17px;
}

.auth-status-icon-warning {
  border-color: #f0d39b;
  background: var(--amber-soft);
  color: var(--amber);
}

.auth-status-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.auth-status-card h1 {
  margin: 0 0 13px;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 37px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.14;
  text-wrap: balance;
}

.auth-status-card > p {
  max-width: 510px;
  margin: 0 auto;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.7;
}

.auth-status-card > p strong {
  color: var(--ink-2);
}

.auth-status-note {
  margin: 27px 0;
  padding: 17px 19px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--canvas-subtle);
  text-align: left;
}

.auth-status-note > strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
}

.auth-status-note ol {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 20px;
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.55;
}

.auth-status-actions {
  display: grid;
  gap: 9px;
}

.auth-secondary-action {
  display: inline-flex;
  width: 100%;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #ffffff;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 140ms ease, background 140ms ease;
}

.auth-secondary-action:hover {
  border-color: #bcc5d2;
  background: var(--canvas-subtle);
  color: var(--ink);
}

.auth-status-support {
  display: inline-block;
  margin-top: 19px;
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 820px) {
  .auth-shell {
    max-width: 560px;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
  }

  .auth-story {
    min-height: 390px;
  }

  .auth-role-list {
    margin-top: 28px;
  }
}

@media (max-width: 600px) {
  .auth-header {
    min-height: 68px;
  }

  .auth-header .brand-divider,
  .auth-header .brand-product,
  .auth-header-link svg {
    display: none;
  }

  .auth-header-link {
    font-size: 12px;
  }

  .auth-content {
    padding: 20px 12px 34px;
  }

  .auth-shell {
    border-radius: 16px;
  }

  .auth-story,
  .auth-form-panel {
    padding: 30px 23px;
  }

  .auth-story {
    min-height: 0;
  }

  .auth-story h2 {
    font-size: 34px;
  }

  .auth-role-list,
  .auth-story-footnote {
    display: none;
  }

  .auth-form-heading h1 {
    font-size: 26px;
  }

  .auth-help {
    align-items: center;
    flex-direction: column;
  }

  .auth-footer {
    min-height: 54px;
  }
}

/* Tablet: keep the primary docs navigation, drop the right rail */
@media (max-width: 1220px) {
  .main-content > .max-w-7xl > .grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0 !important;
  }

  .main-content > .max-w-7xl > .grid > [class*="lg:col-span-1"] {
    display: none;
  }

  .main-content > .max-w-7xl > .grid > [class*="lg:col-span-3"] {
    grid-column: 1;
  }

  .main-content > .max-w-7xl,
  .main-content > .max-w-4xl,
  .main-content > .page-wrap,
  .main-content > .bg-gradient-to-r > .max-w-7xl,
  .main-content > [style*="background: linear-gradient"] > .page-wrap {
    padding-right: 46px !important;
    padding-left: 46px !important;
  }
}

/* Mobile navigation drawer */
@media (max-width: 960px) {
  :root {
    --header-height: 64px;
  }

  .portal-header {
    padding: 0 16px;
  }

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

  .menu-toggle {
    display: inline-grid;
  }

  .portal-shell {
    display: block;
  }

  .portal-sidebar {
    position: fixed;
    z-index: 70;
    top: var(--header-height);
    bottom: 0;
    left: 0;
    width: min(var(--sidebar-width), calc(100vw - 44px));
    height: auto;
    transform: translateX(-102%);
    box-shadow: var(--shadow-lg);
    transition: transform 190ms cubic-bezier(0.22, 1, 0.36, 1);
  }

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

  .sidebar-backdrop {
    position: fixed;
    z-index: 60;
    inset: var(--header-height) 0 0;
    display: block;
    background: rgba(20, 27, 43, 0.38);
    opacity: 0;
    pointer-events: none;
    transition: opacity 190ms ease;
    backdrop-filter: blur(2px);
  }

  .nav-open .sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-open {
    overflow: hidden;
  }

  .header-dashboard {
    display: none;
  }

  .search-trigger {
    width: min(38vw, 270px);
  }
}

@media (max-width: 700px) {
  .brand-name,
  .brand-divider,
  .brand-product,
  .header-user .header-username {
    display: none;
  }

  .header-user {
    padding-right: 4px;
  }

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

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

  .primary-action {
    min-height: 38px;
    padding: 0 11px;
    font-size: 13px;
  }

  .breadcrumb-row {
    min-height: 42px;
    padding: 0 20px;
  }

  .main-content > .max-w-7xl,
  .main-content > .max-w-4xl,
  .main-content > .page-wrap,
  .main-content > .bg-gradient-to-r > .max-w-7xl,
  .main-content > [style*="background: linear-gradient"] > .page-wrap {
    padding-right: 20px !important;
    padding-left: 20px !important;
  }

  .main-content > .max-w-7xl,
  .main-content > .max-w-4xl,
  .main-content > .page-wrap {
    padding-top: 34px !important;
    padding-bottom: 76px !important;
  }

  .main-content > .bg-gradient-to-r > .max-w-7xl,
  .main-content > [style*="background: linear-gradient"] > .page-wrap {
    padding-top: 36px !important;
    padding-bottom: 34px !important;
  }

  .main-content > .bg-gradient-to-r h1,
  .main-content > [style*="background: linear-gradient"] h1 {
    font-size: 33px !important;
  }

  .main-content > .bg-gradient-to-r p,
  .main-content > [style*="background: linear-gradient"] p {
    font-size: 16px !important;
  }

  .main-content .flex.justify-center.space-x-4,
  .main-content .flex.items-center.space-x-4 {
    align-items: stretch;
    gap: 10px;
  }

  .main-content .flex.justify-center.space-x-4 > *,
  .main-content .flex.items-center.space-x-4 > * {
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  .ep-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .ep-body {
    padding: 16px;
  }

  .copy-wrap {
    border-radius: 11px;
  }

  pre[class*="language-"],
  .copy-wrap pre {
    padding: 56px 16px 17px !important;
    font-size: 12px !important;
  }

  .overflow-x-auto {
    margin-right: -6px;
    overflow-x: auto;
  }

  .dtable,
  .main-content table:not(.dtable) {
    min-width: 610px;
  }

  .search-dialog {
    width: calc(100vw - 20px);
    margin-top: 10px;
    max-height: calc(100vh - 20px);
    border-radius: 14px;
  }

  .search-panel {
    max-height: calc(100vh - 20px);
  }

  .search-footer {
    gap: 10px;
    overflow: hidden;
  }

  .search-footer span:first-child {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Data-driven API reference */
.api-ref-page {
  width: 100%;
  max-width: 1540px;
  margin: 0 auto;
  padding: 34px clamp(24px, 4vw, 64px) 112px;
}

.api-ref-hero {
  display: grid;
  min-height: 240px;
  align-items: end;
  gap: 42px;
  padding: clamp(34px, 5vw, 66px);
  overflow: hidden;
  border: 1px solid #dfe3ff;
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 8%, rgba(0, 169, 199, 0.14), transparent 34%),
    linear-gradient(135deg, #f7f7ff 0%, #ffffff 56%, #f2fbfd 100%);
  box-shadow: 0 22px 55px rgba(42, 52, 91, 0.08);
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.62fr);
}

.api-ref-hero-copy {
  max-width: 760px;
}

.api-ref-eyebrow {
  margin: 0 0 15px !important;
  color: var(--accent) !important;
  font-size: 12px !important;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.api-ref-hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(40px, 5vw, 66px);
  font-weight: 720;
  letter-spacing: -0.055em;
  line-height: 1;
}

.api-ref-hero-copy > p:not(.api-ref-eyebrow) {
  max-width: 650px;
  margin: 20px 0 0;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.7;
}

.api-ref-facts {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 27px;
  flex-wrap: wrap;
}

.api-ref-facts > span,
.api-ref-facts > a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border: 1px solid rgba(91, 92, 226, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink-3) !important;
  font-size: 12px;
  text-decoration: none;
}

.api-ref-facts strong {
  color: var(--ink) !important;
  font-size: 13px;
}

.api-ref-facts > a:hover {
  border-color: rgba(91, 92, 226, 0.35);
  color: var(--accent) !important;
}

.api-ref-base-url {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 9px;
  padding: 20px;
  border: 1px solid rgba(31, 41, 74, 0.1);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-sm);
}

.api-ref-base-url span {
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.api-ref-base-url code {
  overflow-wrap: anywhere;
  color: var(--accent-strong);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 14px;
  font-weight: 600;
}

.api-ref-downloads {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 24px 0 76px;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.api-ref-downloads-copy {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 13px;
}

.api-ref-download-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
}

.api-ref-download-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.api-ref-downloads h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 670;
  letter-spacing: -0.01em !important;
}

.api-ref-downloads p {
  margin: 2px 0 0;
  color: var(--ink-3);
  font-size: 12px;
}

.api-ref-download-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.api-ref-download-actions a {
  display: flex;
  min-width: 124px;
  min-height: 48px;
  justify-content: center;
  flex-direction: column;
  padding: 7px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--canvas-subtle);
  color: var(--ink-2) !important;
  text-decoration: none;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.api-ref-download-actions a:hover {
  transform: translateY(-1px);
  border-color: #bcc5d3;
  background: #ffffff;
}

.api-ref-download-actions a span {
  color: var(--ink-3);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.api-ref-download-actions a strong {
  color: inherit !important;
  font-size: 12px;
  font-weight: 650;
}

.api-ref-download-actions .api-ref-download-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff !important;
}

.api-ref-download-actions .api-ref-download-primary:hover {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
}

.api-ref-download-actions .api-ref-download-primary span,
.api-ref-download-actions .api-ref-download-primary strong {
  color: #ffffff !important;
}

.api-ref-sections {
  display: flex;
  flex-direction: column;
  gap: 92px;
}

.api-ref-section {
  scroll-margin-top: calc(var(--header-height) + 28px);
}

.api-ref-section-header {
  display: grid;
  align-items: start;
  gap: 18px;
  margin-bottom: 24px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
}

.api-ref-section-number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #d9dcfa;
  border-radius: 12px;
  background: var(--accent-faint);
  color: var(--accent);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 650;
}

.api-ref-section-header h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.04em !important;
}

.api-ref-section-header p {
  max-width: 870px;
  margin: 8px 0 0;
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.7;
}

.api-ref-section-count {
  align-self: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--canvas-subtle);
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 600;
}

.api-ref-operation-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.api-ref-operation {
  scroll-margin-top: calc(var(--header-height) + 24px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.api-ref-operation:target {
  border-color: rgba(91, 92, 226, 0.48);
  box-shadow: 0 0 0 4px rgba(91, 92, 226, 0.08), 0 18px 46px rgba(38, 45, 78, 0.08);
}

.api-ref-operation-header {
  display: grid;
  min-height: 58px;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--canvas-subtle);
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.api-ref-method {
  display: inline-flex;
  min-width: 60px;
  min-height: 27px;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border: 1px solid;
  border-radius: 7px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.045em;
}

.api-ref-method-get {
  border-color: #a6dec9;
  background: var(--green-soft);
  color: #087b54;
}

.api-ref-method-post {
  border-color: #bdcaff;
  background: #eef2ff;
  color: #3556bd;
}

.api-ref-method-put,
.api-ref-method-patch {
  border-color: #efcd91;
  background: var(--amber-soft);
  color: #945600;
}

.api-ref-method-delete {
  border-color: #efbac3;
  background: var(--red-soft);
  color: #b02c43;
}

.api-ref-method-hub {
  border-color: #c9c1f2;
  background: #f3f0ff;
  color: #6647b6;
}

.api-ref-operation-header > code {
  min-width: 0;
  overflow-wrap: anywhere;
  border: 0;
  background: transparent !important;
  color: var(--ink) !important;
  font-size: 13px;
  font-weight: 580;
}

.api-ref-scope {
  padding: 4px 8px;
  border: 1px solid #d9dcfa;
  border-radius: 999px;
  background: var(--accent-faint);
  color: var(--accent-strong);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  font-weight: 650;
}

.api-ref-scope-public {
  border-color: #b2e3d1;
  background: var(--green-soft);
  color: #087b54;
  font-family: inherit;
}

.api-ref-operation-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.94fr);
}

.api-ref-operation-doc,
.api-ref-samples {
  min-width: 0;
  padding: clamp(22px, 3vw, 32px);
}

.api-ref-operation-doc {
  border-right: 1px solid var(--line);
}

.api-ref-operation-doc h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 690;
  letter-spacing: -0.028em;
}

.api-ref-summary {
  margin: 11px 0 0 !important;
  color: var(--ink-2) !important;
  font-size: 14px;
  line-height: 1.75;
}

.api-ref-callout {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 17px;
  padding: 12px 14px;
  border: 1px solid #d9dcfa;
  border-left: 3px solid var(--accent);
  border-radius: 4px 10px 10px 4px;
  background: var(--accent-faint);
  color: #3f45a8;
  font-size: 13px;
  line-height: 1.65;
}

.api-ref-callout[data-type="warning"] {
  border-color: #efd29e;
  border-left-color: var(--amber);
  background: var(--amber-soft);
  color: #7f4b06;
}

.api-ref-callout[data-type="danger"] {
  border-color: #efb7c0;
  border-left-color: var(--red);
  background: var(--red-soft);
  color: #a52c40;
}

.api-ref-callout[data-type="success"] {
  border-color: #afe2d0;
  border-left-color: var(--green);
  background: var(--green-soft);
  color: #087b54;
}

.api-ref-callout strong {
  color: currentColor !important;
  font-size: 12px;
}

.api-ref-parameters {
  margin-top: 24px;
}

.api-ref-parameters h4 {
  margin: 0 0 9px;
  font-size: 13px;
  font-weight: 660;
}

.api-ref-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.api-ref-table-wrap table {
  min-width: 560px;
  margin: 0;
  font-size: 12px;
}

.api-ref-table-wrap th {
  padding: 9px 11px !important;
  font-size: 11px !important;
}

.api-ref-table-wrap td {
  padding: 10px 11px !important;
  vertical-align: top;
  line-height: 1.55;
}

.api-ref-table-wrap tbody tr:last-child td {
  border-bottom: 0 !important;
}

.api-ref-table-wrap td:first-child {
  width: 30%;
}

.api-ref-table-wrap td:nth-child(2) {
  width: 17%;
}

.api-ref-table-wrap td code {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 11px;
}

.api-ref-required {
  display: block;
  width: max-content;
  margin-top: 4px;
  color: var(--red);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.api-ref-type {
  color: var(--accent-strong);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
}

.api-ref-samples {
  display: flex;
  align-content: start;
  flex-direction: column;
  gap: 16px;
  background: #f8fafc;
}

.realtime-ref-note {
  display: grid;
  gap: 5px;
  margin: 24px 0 76px;
  padding: 16px 18px;
  border: 1px solid #d9dcfa;
  border-left: 3px solid var(--accent);
  border-radius: 5px 12px 12px 5px;
  background: var(--accent-faint);
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.65;
}

.realtime-ref-note strong {
  color: var(--ink);
  font-size: 12px;
}

.api-ref-sample {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #202b45;
  border-radius: 12px;
  background: var(--surface-code);
  box-shadow: 0 10px 25px rgba(13, 21, 39, 0.1);
}

.api-ref-sample-label {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #121a2d;
  color: #cbd5e1;
}

.api-ref-sample-label span {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.api-ref-sample-label small {
  color: #78869e;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 9px;
}

.api-ref-sample-label-success span {
  color: #6ee7b7;
}

.api-ref-sample .copy-wrap {
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.api-ref-sample .copy-wrap::before,
.api-ref-sample .code-language {
  display: none;
}

.api-ref-sample pre[class*="language-"],
.api-ref-sample .copy-wrap pre {
  max-height: 520px;
  margin: 0 !important;
  padding: 49px 15px 16px !important;
  overflow: auto;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--surface-code) !important;
  font-size: 11px !important;
  line-height: 1.7 !important;
  white-space: pre;
}

.api-ref-extra-sample {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: #ffffff;
}

.api-ref-extra-sample summary {
  padding: 11px 13px;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 630;
  cursor: pointer;
}

.api-ref-extra-sample[open] summary {
  border-bottom: 1px solid var(--line);
}

.api-ref-extra-sample .copy-wrap {
  margin: 0;
  border: 0;
  border-radius: 0;
}

@media (max-width: 1280px) {
  .api-ref-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .api-ref-base-url {
    max-width: 560px;
  }

  .api-ref-downloads {
    align-items: stretch;
    flex-direction: column;
  }

  .api-ref-download-actions {
    flex-wrap: wrap;
  }

  .api-ref-download-actions a {
    flex: 1 1 150px;
  }

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

  .api-ref-operation-doc {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 700px) {
  .api-ref-page {
    padding: 20px 16px 80px;
  }

  .api-ref-hero {
    min-height: 0;
    gap: 30px;
    padding: 32px 22px;
    border-radius: 17px;
  }

  .api-ref-hero h1 {
    font-size: clamp(38px, 13vw, 52px);
  }

  .api-ref-downloads {
    margin-bottom: 58px;
  }

  .api-ref-download-actions {
    flex-direction: column;
  }

  .api-ref-download-actions a {
    min-width: 0;
  }

  .api-ref-sections {
    gap: 72px;
  }

  .api-ref-section-header {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .api-ref-section-number {
    width: 38px;
    height: 38px;
  }

  .api-ref-section-count {
    grid-column: 2;
    justify-self: start;
  }

  .api-ref-operation-header {
    align-items: start;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .api-ref-scope {
    width: max-content;
    grid-column: 2;
  }

  .api-ref-operation-doc,
  .api-ref-samples {
    padding: 19px;
  }
}
