:root {
  color-scheme: light;
  --bg: #eef2f7;
  --paper: #ffffff;
  --paper-soft: #f8fafc;
  --ink: #101828;
  --muted: #667085;
  --line: #d9e0ea;
  --line-strong: #b8c4d6;
  --brand: #0b4f6c;
  --brand-2: #0f766e;
  --brand-3: #f59e0b;
  --code: #0b1220;
  --shadow: 0 22px 60px rgba(16, 24, 40, .10);
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); font-family: Avenir Next, ui-sans-serif, system-ui, sans-serif; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 0%, rgba(15, 118, 110, .14) 0, transparent 30rem),
    radial-gradient(circle at 92% 8%, rgba(11, 79, 108, .16) 0, transparent 28rem),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 48%, #e8eef6 100%);
}
a { color: inherit; text-decoration: none; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  border-bottom: 1px solid rgba(217, 224, 234, .82);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(18px);
  padding: .9rem clamp(1rem, 4vw, 3rem);
}
.brand { display: inline-flex; align-items: center; gap: .75rem; font-weight: 850; letter-spacing: -.03em; font-size: 1.15rem; }
.mark {
  display: inline-grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: .7rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
  box-shadow: 0 12px 24px rgba(11, 79, 108, .22);
  font-weight: 900;
}
nav { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: flex-end; }
nav a, .button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .62rem .95rem;
  background: rgba(255,255,255,.72);
  color: var(--ink);
  font-size: .86rem;
  font-weight: 760;
  box-shadow: 0 8px 22px rgba(16, 24, 40, .04);
}
nav a:hover, .button:hover { border-color: var(--brand-2); color: var(--brand-2); }
main { width: min(1240px, calc(100% - 2rem)); margin: 0 auto; padding: clamp(2rem, 5vw, 4.5rem) 0; }
.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 2rem;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(248,250,252,.88)),
    radial-gradient(circle at 80% 0%, rgba(15,118,110,.12), transparent 24rem);
  box-shadow: var(--shadow);
  padding: clamp(1.35rem, 4vw, 3rem);
}
.hero:after {
  content: "";
  position: absolute;
  inset: auto -8rem -10rem auto;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  background: rgba(245, 158, 11, .14);
}
.hero > * { position: relative; z-index: 1; }
.eyebrow { color: var(--brand-2); font: 850 .78rem/1 ui-sans-serif, system-ui, sans-serif; text-transform: uppercase; letter-spacing: .14em; }
h1 { margin: .8rem 0 1rem; font-size: clamp(2.25rem, 5.8vw, 5.2rem); line-height: .94; letter-spacing: -.075em; }
h2 { margin: 0 0 .8rem; font-size: clamp(1.25rem, 2.4vw, 2rem); letter-spacing: -.045em; }
h3 { margin: 0 0 .45rem; font-size: 1.02rem; letter-spacing: -.02em; }
p { color: var(--muted); line-height: 1.72; font-size: 1rem; }
.lead { max-width: 58rem; font-size: clamp(1.02rem, 1.8vw, 1.22rem); }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.5rem; }
.button.primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: white; border-color: transparent; }
.panel, .card, .article, .endpoint, .stat {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 16px 45px rgba(16, 24, 40, .07);
}
.panel { border-radius: 1.45rem; padding: clamp(1.1rem, 3vw, 1.6rem); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin-top: 1rem; }
.stat { border-radius: 1.1rem; padding: 1rem; }
.stat strong { display: block; font-size: 1.55rem; letter-spacing: -.05em; }
.stat span { color: var(--muted); font-size: .82rem; font-weight: 700; }
.section-title { display: flex; justify-content: space-between; gap: 1rem; align-items: end; margin: 2.5rem 0 1rem; }
.section-title p { margin: 0; max-width: 44rem; }
.grid, .directory { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.directory { margin-top: 1.25rem; }
.card {
  position: relative;
  overflow: hidden;
  border-radius: 1.35rem;
  padding: 1.15rem;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.card:before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: .28rem;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
  opacity: .9;
}
.card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 24px 60px rgba(16, 24, 40, .11); }
.card h2, .card h3 { padding-left: .35rem; }
.article-list { display: grid; gap: .6rem; margin-top: 1rem; }
.article-link {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: .9rem;
  background: var(--paper-soft);
  padding: .72rem .85rem;
  color: var(--ink);
  font-weight: 760;
}
.article-link span { color: var(--muted); font-size: .82rem; font-weight: 700; }
.article-link:hover { border-color: var(--brand-2); color: var(--brand-2); }
.meta { display: flex; gap: .5rem; flex-wrap: wrap; margin: .75rem 0 0; color: var(--muted); font: 750 .78rem/1.4 ui-sans-serif, system-ui, sans-serif; }
.meta span { border: 1px solid var(--line); border-radius: 999px; background: var(--paper-soft); padding: .35rem .55rem; }
.article { border-radius: 1.7rem; padding: clamp(1.2rem, 4vw, 3rem); }
.steps { counter-reset: step; display: grid; gap: 1rem; margin-top: 2rem; }
.step { counter-increment: step; display: grid; grid-template-columns: 2.7rem minmax(0, 1fr); gap: 1rem; border: 1px solid var(--line); border-radius: 1.15rem; background: var(--paper-soft); padding: 1rem; }
.step:before { content: counter(step); display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: .8rem; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: white; font: 900 .9rem/1 ui-sans-serif, system-ui, sans-serif; }
.note-list, .param-list { display: grid; gap: .65rem; padding: 0; list-style: none; }
.note-list li, .param-list li { border: 1px solid var(--line); border-left: 4px solid var(--brand-3); border-radius: .85rem; background: var(--paper-soft); padding: .7rem .85rem; color: var(--muted); line-height: 1.55; }
.endpoint { border-radius: 1.2rem; padding: 1.1rem; margin-top: 1rem; }
.endpoint h2 { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; font-size: clamp(1.05rem, 2vw, 1.35rem); }
.method { display: inline-block; min-width: 3.7rem; border-radius: .55rem; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: white; text-align: center; padding: .42rem .5rem; font: 900 .74rem/1 ui-sans-serif, system-ui, sans-serif; letter-spacing: .03em; }
code, pre { font-family: SFMono-Regular, Consolas, Liberation Mono, monospace; }
code { background: rgba(11, 79, 108, .08); color: var(--brand); padding: .13rem .34rem; border-radius: .3rem; }
pre { overflow: auto; border-radius: 1rem; background: var(--code); color: #eaf2ff; padding: 1rem; font-size: .82rem; line-height: 1.55; border: 1px solid rgba(255,255,255,.08); }
footer { margin-top: 3rem; color: var(--muted); font: 700 .85rem/1.6 ui-sans-serif, system-ui, sans-serif; }
.api-docs {
  --bg: #f7f9fc;
  --paper: #ffffff;
  --paper-soft: #f8fafc;
  --ink: #243047;
  --muted: #748097;
  --line: #e5eaf2;
  --line-strong: #d4dce9;
  --brand: #0f766e;
  --brand-2: #16a085;
  --brand-3: #ff7a1a;
  background:
    radial-gradient(circle at 62% 8%, rgba(130, 95, 255, .08), transparent 30rem),
    linear-gradient(180deg, #fbfcff 0%, #f7f9fc 100%);
  font-family: Avenir Next, Aptos, ui-sans-serif, system-ui, sans-serif;
}
.api-docs .topbar {
  position: sticky;
  height: 72px;
  padding: 0 2rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .92);
  box-shadow: none;
}
.api-docs .brand { font-size: 1.05rem; letter-spacing: -.02em; color: #202b3f; }
.api-docs .mark {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #0d6f78;
  box-shadow: 0 10px 24px rgba(13, 111, 120, .16);
}
.api-docs nav a {
  border-color: #dfe6f1;
  background: #fff;
  color: #243047;
  padding: .52rem .9rem;
  font-size: .82rem;
  box-shadow: 0 10px 24px rgba(31, 41, 55, .04);
}
.api-docs main {
  width: 100%;
  margin: 0;
  padding: 0;
}
.api-shell {
  display: grid;
  grid-template-columns: 300px minmax(520px, 1fr) 360px;
  gap: 2rem;
  align-items: start;
  min-height: calc(100vh - 72px);
  padding: 3.2rem clamp(1.25rem, 4vw, 4rem);
}
.api-sidebar,
.try-panel {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 120px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255,255,255,.96);
  box-shadow: 0 18px 42px rgba(36, 48, 71, .06);
}
.api-sidebar { padding: 1rem; }
.api-sidebar .brand {
  margin: .1rem 0 1rem;
  color: #243047;
  font-size: 1rem;
}
.api-search {
  border: 1px solid var(--line);
  border-radius: .72rem;
  background: #fff;
  color: var(--muted);
  padding: .68rem .76rem;
  font-size: .86rem;
  margin-bottom: 1rem;
}
.api-nav-title {
  margin: 1.05rem .55rem .42rem;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.api-nav-link {
  display: flex;
  justify-content: space-between;
  gap: .8rem;
  align-items: center;
  border-radius: .72rem;
  padding: .62rem .7rem;
  color: #59657a;
  font-size: .9rem;
  font-weight: 640;
}
.api-nav-link:hover,
.api-nav-link.active {
  background: #e8f2f1;
  color: #0b3b3a;
}
.api-main { min-width: 0; }
.api-main .article {
  border-radius: 1rem;
  border-color: var(--line);
  background: rgba(255,255,255,.88);
  box-shadow: 0 18px 42px rgba(36, 48, 71, .05);
  padding: clamp(1.5rem, 4vw, 3.25rem);
}
.api-docs .api-main h1 {
  max-width: 620px;
  color: #172033;
  font-size: clamp(2.25rem, 5vw, 4.7rem);
  line-height: .98;
  letter-spacing: -.085em;
  margin-bottom: 1.4rem;
}
.api-docs .api-main h2 {
  color: #202b3f;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  letter-spacing: -.04em;
}
.api-docs .lead {
  max-width: 560px;
  color: #717c94;
  font-size: 1.05rem;
  line-height: 1.72;
}
.api-docs .eyebrow {
  color: #0f766e;
  font-size: .68rem;
  letter-spacing: .18em;
}
.api-docs .button {
  border-radius: .85rem;
  border-color: var(--line);
  background: #fff;
  padding: .62rem .9rem;
  font-size: .82rem;
  box-shadow: 0 12px 28px rgba(36, 48, 71, .05);
}
.api-docs .button.primary {
  background: #0d6f78;
  color: #fff;
  box-shadow: 0 16px 32px rgba(13, 111, 120, .16);
}
.api-docs .directory {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.api-docs .card {
  border-radius: 1rem;
  padding: 1.1rem;
  background: #fff;
  box-shadow: none;
}
.api-docs .card:before { width: .22rem; background: #0d6f78; }
.api-docs .card h2 {
  margin-bottom: .45rem;
  font-size: 1.35rem;
}
.api-docs .card p {
  margin: 0;
  font-size: .92rem;
  line-height: 1.58;
}
.endpoint-bar {
  display: flex;
  gap: .45rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: .8rem;
  background: var(--paper);
  padding: .42rem;
  margin: 1rem 0;
  overflow: auto;
}
.endpoint-url {
  white-space: nowrap;
  color: #475467;
  font-family: SFMono-Regular, Consolas, Liberation Mono, monospace;
  font-size: .9rem;
}
.scope-pill {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: #eef4ff;
  color: #175cd3;
  padding: .34rem .58rem;
  font-size: .78rem;
  font-weight: 800;
}
.try-panel { padding: 1rem; }
.try-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.try-head h2 { margin: 0; font-size: 1rem; letter-spacing: -.03em; }
.try-request {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: .45rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: .86rem;
  background: var(--paper-soft);
  padding: .42rem;
}
.send-button {
  border: 0;
  border-radius: .72rem;
  background: #062f2f;
  color: white;
  padding: .62rem .82rem;
  font-weight: 850;
}
.try-table { display: grid; margin: 1rem 0; border-top: 1px solid var(--line); }
.try-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  border-bottom: 1px solid var(--line);
  padding: .64rem .25rem;
  color: #475467;
  font-size: .88rem;
}
.try-row strong { color: var(--ink); }
.response-empty {
  display: grid;
  place-items: center;
  min-height: 12rem;
  border: 1px dashed var(--line-strong);
  border-radius: .9rem;
  color: var(--muted);
  text-align: center;
  padding: 1rem;
  font-size: .92rem;
}
.help-docs {
  --paper: #fff;
  --paper-soft: #f8fafc;
  --ink: #20242a;
  --muted: #6f7682;
  --line: #e8ebf0;
  --line-strong: #d8dee8;
  --brand: #316be8;
  background: #fff;
  font-family: Avenir Next, Aptos, ui-sans-serif, system-ui, sans-serif;
}
.help-docs .topbar {
  height: 78px;
  padding: 0 clamp(1rem, 8vw, 9rem);
  border-bottom: 1px solid var(--line);
  background: #fff;
  box-shadow: none;
}
.help-docs .brand { color: #20242a; font-size: 1.08rem; letter-spacing: -.025em; }
.help-docs .mark { width: 2rem; height: 2rem; border-radius: 50%; background: #111827; box-shadow: none; }
.help-docs nav { gap: 1.35rem; align-items: center; }
.help-docs nav a { border: 0; background: transparent; box-shadow: none; color: #68707d; padding: .25rem 0; font-weight: 640; }
.help-docs nav a:last-child { background: #316be8; color: #fff; padding: .72rem 1.05rem; }
.help-docs main { width: min(1510px, calc(100% - 2rem)); padding: 2rem 0 4rem; }
.doc-shell { display: grid; grid-template-columns: 300px minmax(0, 760px) 220px; gap: 4rem; align-items: start; }
.doc-sidebar { position: sticky; top: 104px; max-height: calc(100vh - 120px); overflow: auto; color: #6f7682; }
.doc-select { display: flex; justify-content: space-between; border: 1px solid var(--line-strong); padding: .72rem .9rem; color: #6f7682; margin-bottom: 2rem; }
.doc-side-title { margin: 1.5rem 0 .75rem; color: #20242a; font-size: .76rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.doc-link { display: block; padding: .48rem .75rem; color: #6f7682; font-size: .93rem; line-height: 1.45; }
.doc-link.active { background: #eef5ff; color: #316be8; font-weight: 760; }
.doc-main { min-width: 0; color: #20242a; }
.doc-breadcrumbs { display: flex; gap: .5rem; flex-wrap: wrap; color: #7b838f; font-size: .74rem; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 1rem; }
.doc-main h1 { margin: 0 0 1.35rem; color: #17191f; font-size: clamp(2rem, 4vw, 2.65rem); line-height: 1.08; letter-spacing: -.055em; }
.doc-main h2 { margin: 3rem 0 1.1rem; color: #20242a; font-size: 1.18rem; letter-spacing: -.025em; }
.doc-main h3 { margin: 2rem 0 .85rem; color: #20242a; font-size: 1.02rem; }
.doc-main p, .doc-main li { color: #343841; font-size: 1.03rem; line-height: 1.78; }
.doc-main .lead { color: #343841; font-size: 1.08rem; font-weight: 650; }
.doc-steps { counter-reset: docstep; display: grid; gap: 1.25rem; margin-top: 2rem; }
.doc-step { counter-increment: docstep; }
.doc-step h3:before { content: counter(docstep) ". "; }
.doc-main .note-list li, .doc-main .param-list li { border: 0; border-left: 3px solid #316be8; border-radius: 0; background: #f8fbff; color: #4b5563; }
.doc-rail { position: sticky; top: 104px; color: #6f7682; font-size: .9rem; }
.copy-button { display: inline-flex; gap: .4rem; align-items: center; border: 1px solid var(--line-strong); padding: .48rem .7rem; color: #6f7682; }
.api-docs { background: #fbfcff; }
.api-docs .topbar { height: 68px; padding: 0 2.25rem; box-shadow: none; }
.api-docs .topbar nav { display: none; }
.api-docs .api-shell { grid-template-columns: 300px minmax(560px, 1fr) 360px; gap: 2.2rem; padding: 2rem clamp(1.25rem, 4vw, 4rem); }
.api-docs .api-sidebar, .api-docs .try-panel { border-radius: .9rem; box-shadow: 0 18px 40px rgba(36, 48, 71, .045); }
.api-docs .api-main .article { border: 0; border-radius: 0; background: transparent; box-shadow: none; padding: 0; }
.api-docs .api-main h1 { font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1.1; letter-spacing: -.055em; margin: .75rem 0 1.15rem; }
.api-docs .lead { max-width: 660px; }
.api-docs .button { border-radius: .72rem; }
.api-docs .card { border-radius: .75rem; box-shadow: none; }
@media (max-width: 860px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  nav { justify-content: flex-start; }
  .hero, .grid, .directory, .stats { grid-template-columns: 1fr; }
  .api-shell, .doc-shell { grid-template-columns: 1fr; }
  .api-sidebar, .try-panel, .doc-sidebar, .doc-rail { position: static; max-height: none; }
  .section-title { display: block; }
  h1 { font-size: clamp(2.15rem, 14vw, 3.8rem); }
}
