.docs-page {
  --docs-navy: #111019;
  --docs-muted: #6d6e78;
  --docs-line: rgba(17, 17, 23, .13);
  --docs-cyan: #69e8f5;
  min-height: 100vh;
  color: #15151b;
  background: radial-gradient(circle at 82% 3%, rgba(105, 232, 245, .13), transparent 22rem), #f4f4ef;
}
.docs-page .topbar { position: sticky; top: 14px; }
.docs-statusbar { width: min(1180px, calc(100% - 48px)); min-height: 39px; display: flex; align-items: center; gap: 20px; margin: 18px auto 0; padding: 0 18px; border: 1px solid var(--docs-line); border-radius: 12px; color: #73747d; background: rgba(255,255,255,.56); font: 650 9px/1 ui-monospace,monospace; letter-spacing: .08em; text-transform: uppercase; backdrop-filter: blur(16px); }
.docs-statusbar span:first-child { display: flex; align-items: center; gap: 8px; color: #2d675d; }
.docs-statusbar i { width: 6px; height: 6px; border-radius: 50%; background: #39caa8; box-shadow: 0 0 0 4px rgba(57,202,168,.12); animation: docs-pulse 1.8s ease-in-out infinite; }
.docs-statusbar a { margin-left: auto; color: #373840; text-decoration: none; }
.docs-statusbar a + a { margin-left: 0; }
.docs-statusbar a:hover { color: #0058d9; }

.docs-layout { width: min(1180px, calc(100% - 48px)); grid-template-columns: 220px minmax(0,870px); justify-content: space-between; gap: 70px; margin: 44px auto 100px; }
.docs-nav { top: 105px; gap: 2px; max-height: calc(100vh - 125px); padding-right: 12px; overflow: auto; scrollbar-width: thin; }
.docs-nav-label { margin: 22px 10px 8px; color: #a0a0a7; font: 700 8px/1 ui-monospace,monospace; letter-spacing: .16em; }
.docs-nav-label:first-child { margin-top: 0; }
.docs-nav > a { position: relative; padding: 8px 10px 8px 17px; font-size: 11px; font-weight: 590; transition: color .18s,background .18s; }
.docs-nav > a::before { content: ""; position: absolute; left: 7px; top: 50%; width: 3px; height: 3px; border-radius: 50%; background: currentColor; transform: translateY(-50%); opacity: .42; }
.docs-nav > a.active::before { height: 15px; border-radius: 5px; color: #6760ff; opacity: 1; }
.docs-nav-resources { display: grid; gap: 7px; margin-top: 24px; padding: 14px; border: 1px solid var(--docs-line); border-radius: 13px; background: rgba(255,255,255,.6); }
.docs-nav-resources span { margin-bottom: 4px; color: #90919a; font: 650 8px/1 ui-monospace,monospace; letter-spacing: .12em; text-transform: uppercase; }
.docs-nav-resources a { padding: 0; color: #34353d; font: 580 10px/1.4 ui-monospace,monospace; }
.docs-nav-resources a:hover { color: #0058d9; background: transparent; }

.docs-content { max-width: none; }
.docs-hero { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(260px,.75fr); align-items: end; gap: 44px; padding: 16px 0 56px; border-bottom: 1px solid var(--docs-line); }
.docs-hero .kicker { color: #777883; font-size: 9px; }
.docs-content .docs-hero h1 { max-width: 620px; margin: 18px 0 20px; font-size: clamp(52px,6vw,78px); font-weight: 570; line-height: .92; letter-spacing: -.07em; }
.docs-hero > div:first-child > p { max-width: 620px; margin: 0; font-size: 16px; line-height: 1.7; }
.docs-base-card { position: relative; display: grid; gap: 11px; padding: 22px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; color: #f7f7f2; background: var(--docs-navy); box-shadow: 0 25px 65px rgba(17,16,25,.16); }
.docs-base-card::before { content: ""; position: absolute; width: 130px; height: 130px; right: -40px; top: -60px; border: 1px solid rgba(105,232,245,.35); border-radius: 50%; box-shadow: 0 0 0 25px rgba(143,114,255,.06); }
.docs-base-card > * { position: relative; }
.docs-base-card span { color: #83838e; font: 680 8px/1 ui-monospace,monospace; letter-spacing: .15em; }
.docs-base-card code { color: #a5f7ff; font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.docs-base-card small { color: #777783; font-size: 9px; }
.copy-inline { width: fit-content; padding: 7px 10px; border: 1px solid rgba(255,255,255,.13); border-radius: 999px; color: #dadade; background: rgba(255,255,255,.055); cursor: pointer; font-size: 9px; }
.copy-inline:hover, .copy-inline.copied { color: #101017; background: var(--docs-cyan); }

.docs-section { padding: 72px 0 0; scroll-margin-top: 100px; }
.docs-section-heading { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 15px; align-items: start; margin-bottom: 22px; }
.docs-section-heading > span { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid var(--docs-line); border-radius: 10px; color: #85868f; background: rgba(255,255,255,.55); font: 650 9px/1 ui-monospace,monospace; }
.docs-content .docs-section-heading h2 { margin: 0; padding: 0; border: 0; font-size: clamp(28px,4vw,38px); font-weight: 590; line-height: 1; letter-spacing: -.055em; }
.docs-section-heading p { margin: 8px 0 0; font-size: 13px; }
.docs-content h3 { margin: 38px 0 15px; font-size: 16px; letter-spacing: -.02em; }
.docs-content p, .docs-content li { font-size: 13px; line-height: 1.75; }
.docs-content a:not(.button) { color: #075ed9; text-decoration: underline; text-decoration-color: rgba(7,94,217,.3); text-underline-offset: 3px; }
.docs-content code:not(pre code) { color: #3e3c55; background: #e8e7ef; }

.docs-callout { display: grid; grid-template-columns: 30px minmax(0,1fr); align-items: start; gap: 13px; margin-top: 30px; padding: 18px; border: 1px solid rgba(105,232,245,.28); border-radius: 14px; background: rgba(105,232,245,.07); }
.docs-callout > span { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 9px; color: #101017; background: var(--docs-cyan); font: 750 11px/1 ui-monospace,monospace; }
.docs-callout p { margin: 2px 0 0; }
.docs-callout-error { border-color: rgba(255,121,95,.28); background: rgba(255,121,95,.07); }
.docs-callout-error > span { background: #ff8a73; }
.docs-do-dont { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.docs-do-dont > div { padding: 19px; border: 1px solid var(--docs-line); border-radius: 15px; background: rgba(255,255,255,.54); }
.docs-do-dont b { color: #15705e; font-size: 12px; }
.docs-do-dont > div:last-child b { color: #b84c46; }
.docs-do-dont ul { margin: 12px 0 0; padding-left: 16px; }
.docs-do-dont li { margin: 7px 0; font-size: 11px; }

.sample-shell { overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; background: var(--docs-navy); box-shadow: 0 25px 70px rgba(17,16,25,.13); }
.sample-tabs { display: flex; gap: 3px; padding: 10px; border-bottom: 1px solid rgba(255,255,255,.08); }
.sample-tabs button { padding: 7px 12px; border: 0; border-radius: 999px; color: #898995; background: transparent; cursor: pointer; font-size: 10px; }
.sample-tabs button.active { color: #111019; background: var(--docs-cyan); }
.sample-shell .code-block pre { min-height: 300px; margin: 0; border-radius: 0; }
.docs-content .code-block { overflow: hidden; border: 1px solid rgba(255,255,255,.08); border-radius: 16px; background: var(--docs-navy); }
.docs-content .code-block pre { margin: 0; padding: 25px 70px 25px 25px; border-radius: 0; color: #d7d5e2; background: transparent; font-size: 11px; line-height: 1.8; }
.docs-content .copy-code { z-index: 2; top: 12px; right: 12px; border-color: rgba(255,255,255,.12); border-radius: 999px; color: #aaaab5; background: rgba(255,255,255,.055); }
.docs-content .copy-code:hover, .docs-content .copy-code.copied { color: #111019; background: var(--docs-cyan); }

.endpoint { flex-wrap: wrap; border-color: var(--docs-line); background: rgba(255,255,255,.6); }
.endpoint .method { border-radius: 999px; color: #111019; background: var(--docs-cyan); }
.endpoint > span:not(.method) { margin-left: auto; color: #8a8b94; font: 620 9px/1 ui-monospace,monospace; }
.endpoint > span:last-child { margin-left: 0; }
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--docs-line); border-radius: 15px; background: rgba(255,255,255,.5); }
.docs-content .param-table { min-width: 720px; border: 0; border-radius: 0; }
.docs-content .param-table th, .docs-content .param-table td { padding: 14px 13px; border: 0; border-bottom: 1px solid var(--docs-line); vertical-align: top; }
.docs-content .param-table tr:last-child td { border-bottom: 0; }
.docs-content .param-table th { color: #85858f; background: rgba(17,17,23,.035); font: 680 8px/1.2 ui-monospace,monospace; letter-spacing: .09em; text-transform: uppercase; }
.docs-content .param-table td { color: #5d5e68; font-size: 11px; line-height: 1.55; }
.required { padding: 4px 7px; border-radius: 999px; color: #7a3c31; background: #ffe1d9; font-size: 8px; font-weight: 700; }
.service-reference .table-service { display: flex; align-items: center; gap: 10px; min-width: 220px; }
.service-reference .table-service > span { display: grid; gap: 3px; }
.service-reference .table-service b { color: #24242b; font-size: 11px; }
.service-reference small { display: block; color: #898a93; font-size: 9px; }
.service-reference td:last-child strong { display: block; color: #24242b; font-size: 14px; }
.docs-loading { padding: 30px; color: #888993; text-align: center; font-size: 11px; }
.docs-fineprint { margin-top: 14px; }

.meter-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 12px; }
.meter-flow > div { min-height: 125px; display: grid; align-content: center; gap: 7px; padding: 18px; border: 1px solid var(--docs-line); border-radius: 15px; background: rgba(255,255,255,.55); }
.meter-flow b { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 8px; color: #111019; background: var(--docs-cyan); font: 700 9px/1 ui-monospace,monospace; }
.meter-flow span { font-weight: 700; }
.meter-flow p { margin: 0; font-size: 10px; }
.meter-flow > i { color: #8b8b93; font-style: normal; }
.docs-stat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 20px; }
.docs-stat-grid > div { min-height: 130px; display: flex; flex-direction: column; justify-content: space-between; padding: 20px; border-radius: 16px; color: #f5f5f1; background: var(--docs-navy); }
.docs-stat-grid strong { font-family: "Unbounded Variable",sans-serif; font-size: 28px; font-weight: 450; }
.docs-stat-grid span { color: #92929d; font-size: 10px; line-height: 1.45; }
.docs-checklist label { display: grid; grid-template-columns: 21px 1fr; align-items: start; gap: 11px; padding: 13px 0; border-bottom: 1px solid var(--docs-line); color: #5f606a; font-size: 12px; line-height: 1.55; cursor: pointer; }
.docs-checklist input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: #7265ff; }

.docs-support-card { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px; margin-top: 85px; padding: 34px; overflow: hidden; border-radius: 22px; color: #f5f5f1; background: radial-gradient(circle at 85% 15%,rgba(105,232,245,.17),transparent 35%),var(--docs-navy); }
.docs-support-card span { color: #82828e; font: 680 8px/1 ui-monospace,monospace; letter-spacing: .15em; }
.docs-content .docs-support-card h2 { max-width: 500px; margin: 13px 0 10px; padding: 0; border: 0; color: #fff; font-size: 34px; font-weight: 560; line-height: 1; letter-spacing: -.055em; }
.docs-support-card p { max-width: 600px; margin: 0; color: #9999a4; }
.docs-support-card > div:last-child { display: grid; gap: 8px; min-width: 205px; }
.docs-footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 45px; padding-top: 22px; border-top: 1px solid var(--docs-line); color: #898a93; font-size: 9px; }
.docs-footer nav { display: flex; flex-wrap: wrap; gap: 15px; }
.docs-content .docs-footer a { color: #5c5d65; text-decoration: none; }
@keyframes docs-pulse { 50% { opacity: .5; transform: scale(.7); } }

@media (max-width: 900px) {
  .docs-layout { grid-template-columns: 180px minmax(0,1fr); gap: 35px; }
  .docs-hero { grid-template-columns: 1fr; }
  .docs-base-card { max-width: 420px; }
  .docs-support-card { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 760px) {
  .docs-page { width: 100%; max-width: 100vw; overflow-x: clip; }
  .docs-page .topbar { width: calc(100vw - 28px); max-width: calc(100vw - 28px); }
  .docs-page .top-actions { display: none; }
  .docs-page .mobile-menu { flex: 0 0 40px; margin-left: auto; }
  .docs-statusbar { width: calc(100% - 28px); gap: 12px; padding: 0 12px; overflow-x: auto; white-space: nowrap; }
  .docs-statusbar a { margin-left: 0; }
  .docs-layout { width: calc(100% - 28px); grid-template-columns: 1fr; gap: 24px; margin-top: 26px; }
  .docs-nav { position: static; display: flex; gap: 5px; max-height: none; padding: 0 0 8px; overflow-x: auto; }
  .docs-nav-label, .docs-nav-resources { display: none; }
  .docs-nav > a { flex: 0 0 auto; padding: 8px 11px; border: 1px solid var(--docs-line); background: rgba(255,255,255,.5); }
  .docs-nav > a::before { display: none; }
  .docs-content { width: 100%; min-width: 0; }
  .docs-content .docs-hero h1 { max-width: 100%; overflow-wrap: anywhere; font-size: clamp(38px,11vw,46px); line-height: .96; }
  .docs-hero { gap: 26px; padding-bottom: 40px; }
  .docs-hero > div { width: 100%; min-width: 0; }
  .docs-base-card { width: 100%; max-width: 100%; }
  .docs-base-card code { display: block; max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }
  .docs-section { padding-top: 57px; }
  .docs-do-dont, .docs-stat-grid { grid-template-columns: 1fr; }
  .meter-flow { grid-template-columns: 1fr; }
  .meter-flow > i { display: none; }
  .meter-flow > div { min-height: 100px; }
  .docs-content .code-block pre { padding: 55px 20px 22px; }
  .sample-shell .code-block pre { min-height: 320px; }
  .endpoint > span:not(.method) { margin-left: 0; }
  .docs-support-card { margin-top: 65px; padding: 25px 20px; }
  .docs-content .docs-support-card h2 { font-size: 30px; }
  .docs-footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { .docs-statusbar i { animation: none; } }
