:root {
  color-scheme: light;
  --bg: #fafaf7;
  --surface: #ffffff;
  --surface-subtle: #f3f3ee;
  --ink: #17171a;
  --ink-soft: #505057;
  --muted: #7c7c84;
  --border: #e2e2dc;
  --border-strong: #cdcdc6;
  --accent: #2337e4;
  --accent-deep: #1727b8;
  --accent-soft: #eff1ff;
  --success: #127455;
  --success-soft: #e9f8f1;
  --warning: #8d5a0e;
  --warning-soft: #fff7e3;
  --danger: #a9342a;
  --danger-soft: #fff0ed;
  --code-bg: #17181d;
  --code-ink: #e9eaf1;
  --topbar-height: 66px;
  --sidebar-width: 256px;
  --toc-width: 200px;
  --radius-sm: 9px;
  --radius: 14px;
  --radius-lg: 20px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-height) + 24px);
  background: var(--bg);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 72% -12%, rgba(57, 76, 241, 0.08), transparent 31rem),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

body.navigation-open {
  overflow: hidden;
}

a,
button {
  font: inherit;
}

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

button {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(35, 55, 228, 0.25);
  outline-offset: 2px;
}

h1,
h2,
h3,
p,
pre {
  margin: 0;
}

h1,
h2,
h3,
.brand-name {
  letter-spacing: -0.035em;
}

code,
pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: #fff;
  background: var(--accent);
  transform: translateY(-140%);
}

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

.topbar {
  position: sticky;
  z-index: 80;
  top: 0;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 22px;
  border-bottom: 1px solid rgba(226, 226, 220, 0.9);
  background: rgba(250, 250, 247, 0.88);
  backdrop-filter: blur(18px) saturate(1.2);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 33px;
  height: 33px;
  display: inline-grid;
  place-content: center;
  flex: 0 0 auto;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(145deg, #2a40f2 5%, #1825a4 100%);
  box-shadow: 0 7px 18px -9px rgba(35, 55, 228, 0.9);
  font-weight: 760;
  letter-spacing: -0.06em;
}

.brand-name {
  font-size: 1.04rem;
  font-weight: 730;
}

.brand-product {
  padding: 4px 7px;
  border-radius: 6px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 0.65rem;
  font-weight: 780;
  letter-spacing: 0.08em;
}

.topbar-spacer {
  flex: 1;
}

.base-url {
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
}

.portal-link {
  padding: 8px 11px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
}

.portal-link:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.menu-button {
  width: 40px;
  height: 40px;
  display: none;
  place-content: center;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

.menu-button span {
  width: 17px;
  height: 1.5px;
  display: block;
  background: currentColor;
}

.docs-layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 760px) var(--toc-width);
  justify-content: center;
  min-height: calc(100vh - var(--topbar-height));
}

.sidebar {
  position: sticky;
  top: var(--topbar-height);
  height: calc(100vh - var(--topbar-height));
  padding: 24px 15px 18px;
  overflow-y: auto;
  border-right: 1px solid var(--border);
  background: rgba(247, 247, 242, 0.75);
}

.nav-group {
  display: grid;
  gap: 3px;
  margin-bottom: 22px;
}

.nav-label {
  padding: 0 10px;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 760;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.nav-link {
  min-height: 37px;
  display: flex;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #5e5e65;
  font-size: 0.83rem;
  font-weight: 550;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
}

.nav-link-active {
  border-color: #d9dcfb;
  color: var(--accent);
  background: #f0f2ff;
}

.alpha-note {
  display: flex;
  gap: 10px;
  padding: 12px;
  margin-top: 10px;
  border: 1px solid #dfe1f7;
  border-radius: var(--radius);
  background: rgba(244, 245, 255, 0.8);
}

.alpha-note strong {
  display: block;
  font-size: 0.78rem;
}

.alpha-note p {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.72rem;
  line-height: 1.45;
}

.status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  margin-top: 5px;
  border-radius: 50%;
  background: #db8e19;
  box-shadow: 0 0 0 4px rgba(219, 142, 25, 0.13);
}

.sidebar-backdrop {
  display: none;
}

.content {
  min-width: 0;
  padding: 38px 54px 80px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 0.75rem;
}

.breadcrumbs a {
  color: var(--ink-soft);
  text-decoration: none;
}

.page-header {
  padding-bottom: 34px;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  max-width: 680px;
  font-size: clamp(2.15rem, 5vw, 3.45rem);
  line-height: 1.04;
  font-weight: 670;
}

.page-header > p {
  max-width: 650px;
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 1.06rem;
  line-height: 1.65;
}

.page-badge {
  display: inline-flex;
  padding: 5px 9px;
  margin-bottom: 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--surface);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-badge.unavailable {
  border-color: #efc9c4;
  color: var(--danger);
  background: var(--danger-soft);
}

.prose {
  padding-top: 4px;
}

.prose h2 {
  padding-top: 48px;
  margin-bottom: 16px;
  font-size: 1.55rem;
  line-height: 1.22;
}

.prose h3 {
  font-size: 1.1rem;
}

.prose p,
.prose li {
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.75;
}

.prose p + p,
.prose p + ul,
.prose p + ol,
.prose ul + p,
.prose ol + p,
.prose .table-wrap + p,
.prose .code-shell + p,
.prose .callout + p {
  margin-top: 14px;
}

.prose ul,
.prose ol {
  display: grid;
  gap: 8px;
  padding-left: 23px;
  margin: 16px 0 0;
}

.prose code:not(pre code),
.endpoint code,
.catalog-operations code {
  padding: 0.13em 0.36em;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: #33364c;
  background: #f4f4f1;
  font-size: 0.88em;
  overflow-wrap: anywhere;
}

.steps {
  list-style: none;
  padding: 0 !important;
  counter-reset: steps;
}

.steps li {
  position: relative;
  display: grid;
  gap: 3px;
  padding-left: 45px;
  counter-increment: steps;
}

.steps li::before {
  position: absolute;
  top: 1px;
  left: 0;
  width: 29px;
  height: 29px;
  display: grid;
  place-content: center;
  border: 1px solid #d7daf8;
  border-radius: 9px;
  color: var(--accent);
  background: var(--accent-soft);
  content: counter(steps);
  font-size: 0.78rem;
  font-weight: 750;
}

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

.endpoint {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 11px 13px;
  margin: 18px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(23, 23, 26, 0.03);
}

.endpoint > code {
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-size: 0.83rem;
  font-weight: 650;
}

.endpoint > span:last-child {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.7rem;
  white-space: nowrap;
}

.method {
  min-width: 46px;
  padding: 4px 7px;
  border-radius: 5px;
  font-size: 0.67rem;
  font-weight: 800;
  text-align: center;
}

.method-get {
  color: #116343;
  background: #e5f6ed;
}

.method-post {
  color: #253ab7;
  background: #eaedff;
}

.code-shell {
  min-width: 0;
  margin: 18px 0;
  overflow: hidden;
  border: 1px solid #2d2f37;
  border-radius: var(--radius);
  background: var(--code-bg);
  box-shadow: 0 18px 35px -28px rgba(20, 22, 37, 0.7);
}

.code-header {
  min-height: 39px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 13px;
  border-bottom: 1px solid #2f313a;
  color: #9fa2af;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.code-header button {
  padding: 5px 7px;
  border: 0;
  border-radius: 5px;
  color: #c8cad4;
  background: transparent;
  cursor: pointer;
  font-size: 0.68rem;
  text-transform: none;
}

.code-header button:hover {
  color: #fff;
  background: #292b33;
}

.code-shell pre {
  max-width: 100%;
  padding: 17px 18px 19px;
  overflow: auto;
  color: var(--code-ink);
  font-size: 0.79rem;
  line-height: 1.65;
  tab-size: 2;
}

.code-shell code {
  display: block;
  min-width: max-content;
}

.callout {
  padding: 15px 17px;
  margin: 18px 0;
  border: 1px solid #dce0fa;
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  background: #f4f5ff;
}

.callout strong {
  font-size: 0.86rem;
}

.callout p {
  margin-top: 5px;
  font-size: 0.85rem;
  line-height: 1.6;
}

.callout-warning {
  border-color: #f0ddb5;
  border-left-color: #d18a19;
  background: var(--warning-soft);
}

.callout-unavailable {
  border-color: #efcbc7;
  border-left-color: var(--danger);
  background: var(--danger-soft);
}

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

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.79rem;
  text-align: left;
}

th,
td {
  padding: 11px 13px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.52;
}

th {
  color: var(--ink-soft);
  background: var(--surface-subtle);
  font-size: 0.68rem;
  font-weight: 730;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  white-space: nowrap;
}

td {
  color: var(--ink-soft);
}

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

.next-callout {
  padding: 17px 18px;
  margin-top: 26px;
  border: 1px solid #d9dcfa;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.6;
}

.page-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding-top: 42px;
  margin-top: 52px;
  border-top: 1px solid var(--border);
}

.page-navigation a {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.64);
  text-decoration: none;
}

.page-navigation a:hover {
  border-color: #ccd1f7;
  background: var(--accent-soft);
}

.page-navigation span {
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.page-navigation strong {
  font-size: 0.83rem;
}

.page-navigation .next {
  text-align: right;
}

.on-this-page {
  position: sticky;
  top: var(--topbar-height);
  height: max-content;
  display: grid;
  gap: 9px;
  padding: 42px 16px 24px 26px;
  border-left: 1px solid var(--border);
}

.on-this-page p {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 730;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.on-this-page a {
  color: var(--ink-soft);
  font-size: 0.75rem;
  line-height: 1.4;
  text-decoration: none;
}

.on-this-page a:hover {
  color: var(--accent);
}

.live-catalog {
  min-height: 150px;
  margin: 18px 0;
}

.catalog-loading {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--surface);
  font-size: 0.83rem;
}

.spinner {
  width: 17px;
  height: 17px;
  border: 2px solid #d8daf1;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

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

.model-card {
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 32px -28px rgba(23, 23, 26, 0.4);
}

.model-card + .model-card {
  margin-top: 12px;
}

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

.model-card-header h3 {
  margin-top: 3px;
  font-size: 1.18rem;
}

.eyebrow,
.catalog-label {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.availability {
  padding: 5px 8px;
  border: 1px solid #ecd49f;
  border-radius: 999px;
  color: var(--warning);
  background: var(--warning-soft);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: capitalize;
}

.availability-available {
  border-color: #bfe6d6;
  color: var(--success);
  background: var(--success-soft);
}

.catalog-operations {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 17px;
}

.catalog-label {
  width: 100%;
  margin-bottom: 2px;
}

.model-card .table-wrap {
  margin-bottom: 13px;
}

.billing-note,
.catalog-freshness {
  color: var(--muted) !important;
  font-size: 0.74rem !important;
  line-height: 1.55 !important;
}

.catalog-freshness {
  margin-top: 9px !important;
  text-align: right;
}

.catalog-error {
  padding: 18px;
  border: 1px solid #efcbc7;
  border-radius: var(--radius);
  background: var(--danger-soft);
}

.catalog-error p {
  margin-top: 5px;
  font-size: 0.84rem;
}

.catalog-error-actions {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 14px;
}

.secondary-button,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 650;
  text-decoration: none;
}

.primary-button {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
}

.text-link {
  font-size: 0.78rem;
  font-weight: 650;
}

.noscript-note {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.not-found {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: start;
  gap: 13px;
  padding: 28px;
}

.not-found h1 {
  font-size: clamp(2.3rem, 8vw, 4.5rem);
}

.not-found p:not(.eyebrow) {
  color: var(--ink-soft);
}

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

  .on-this-page {
    display: none;
  }
}

@media (max-width: 900px) {
  .topbar {
    padding: 0 14px;
  }

  .menu-button {
    display: grid;
  }

  .base-url {
    display: none;
  }

  .docs-layout {
    display: block;
  }

  .sidebar {
    position: fixed;
    z-index: 100;
    top: var(--topbar-height);
    left: 0;
    width: min(86vw, 310px);
    height: calc(100vh - var(--topbar-height));
    transform: translateX(-105%);
    transition: transform 180ms ease;
    box-shadow: 22px 0 42px -32px rgba(20, 22, 40, 0.52);
  }

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

  .sidebar-backdrop:not([hidden]) {
    position: fixed;
    z-index: 90;
    inset: var(--topbar-height) 0 0;
    display: block;
    width: 100%;
    height: calc(100vh - var(--topbar-height));
    border: 0;
    background: rgba(24, 24, 28, 0.3);
    backdrop-filter: blur(2px);
  }

  .content {
    max-width: 800px;
    margin: 0 auto;
    padding: 32px 28px 70px;
  }
}

@media (max-width: 600px) {
  .brand-name {
    display: none;
  }

  .portal-link {
    padding-inline: 6px;
    font-size: 0.75rem;
  }

  .content {
    padding: 25px 17px 58px;
  }

  .breadcrumbs {
    margin-bottom: 21px;
  }

  .page-header {
    padding-bottom: 27px;
  }

  .page-header h1 {
    font-size: 2.18rem;
  }

  .page-header > p {
    font-size: 0.96rem;
  }

  .prose h2 {
    padding-top: 39px;
    font-size: 1.37rem;
  }

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

  .endpoint > span:last-child {
    width: 100%;
    margin-left: 56px;
    white-space: normal;
  }

  .code-shell pre {
    padding: 15px;
    font-size: 0.74rem;
  }

  .page-navigation {
    grid-template-columns: 1fr;
  }

  .page-navigation .next {
    text-align: left;
  }

  .catalog-error-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}
