*{box-sizing:border-box}
:root{
  --bg:#f5f7fb;
  --surface:#ffffff;
  --surface-2:#f8fafc;
  --text:#101828;
  --muted:#667085;
  --line:#e4e7ec;
  --sidebar:#0b1220;
  --sidebar-soft:#111b2e;
  --accent:#5b67f1;
  --accent-soft:#eef0ff;
  --get:#087f5b;
  --get-bg:#e8f7f0;
  --post:#b54708;
  --post-bg:#fff1e8;
}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.65;
}
a{color:inherit}
.app-shell{min-height:100vh}
.sidebar{
  position:fixed;
  inset:0 auto 0 0;
  width:302px;
  background:var(--sidebar);
  color:#fff;
  display:flex;
  flex-direction:column;
  z-index:50;
  border-right:1px solid rgba(255,255,255,.06);
}
.sidebar-top{padding:24px 20px 18px}
.logo-wrap{display:flex;align-items:center;gap:12px}
.logo{
  width:44px;height:44px;border-radius:13px;
  display:grid;place-items:center;
  background:linear-gradient(135deg,#7c83ff,#4a56e2);
  color:#fff;font-weight:800;letter-spacing:-.03em
}
.product-name{font-size:15px;font-weight:700}
.product-subtitle{font-size:12px;color:#98a2b3;margin-top:2px}
.environment{
  margin-top:18px;
  display:inline-flex;align-items:center;gap:8px;
  padding:7px 10px;border-radius:999px;
  background:rgba(255,255,255,.05);
  color:#cbd5e1;font-size:12px
}
.environment .dot{width:7px;height:7px;background:#12b76a;border-radius:50%}
.side-nav{
  overflow-y:auto;
  padding:0 12px 18px;
  flex:1
}
.nav-section{margin-top:16px}
.nav-title{
  padding:0 10px 8px;
  color:#667085;
  font-size:11px;
  letter-spacing:.12em;
  text-transform:uppercase;
  font-weight:700
}
.nav-link{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:42px;
  padding:9px 10px;
  margin:3px 0;
  border-radius:9px;
  color:#cbd5e1;
  font-size:13px;
  text-decoration:none;
  transition:.18s ease
}
.nav-link:hover{background:rgba(255,255,255,.055);color:#fff}
.nav-link.active{
  background:#18243a;
  color:#fff;
  box-shadow:inset 3px 0 0 #7c83ff
}
.nav-icon{
  width:26px;height:26px;
  display:grid;place-items:center;
  border-radius:7px;
  background:rgba(255,255,255,.06);
  font-size:12px
}
.api-pill{
  min-width:42px;
  text-align:center;
  padding:4px 6px;
  border-radius:6px;
  font-size:10px;
  font-weight:800;
  letter-spacing:.03em
}
.api-pill.get{background:rgba(18,183,106,.12);color:#75e0a7}
.api-pill.post{background:rgba(247,144,9,.12);color:#fec84b}
.sidebar-footer{padding:16px}
.support-card{
  padding:14px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.035);
  border-radius:12px
}
.support-card strong{display:block;font-size:13px}
.support-card span{display:block;margin-top:5px;color:#98a2b3;font-size:11px;line-height:1.5}

.main{margin-left:302px;min-height:100vh}
.topbar{
  height:66px;
  position:sticky;top:0;z-index:40;
  background:rgba(255,255,255,.93);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
  display:flex;align-items:center;justify-content:space-between;
  padding:0 36px
}
.breadcrumbs{display:flex;gap:8px;align-items:center;color:#667085;font-size:13px}
.breadcrumbs b{color:#d0d5dd}
.version-badge{
  display:inline-flex;
  padding:6px 10px;border-radius:999px;
  background:var(--accent-soft);color:#4f5bd5;
  font-size:12px;font-weight:700
}
.mobile-toggle{display:none}
.content{max-width:1180px;margin:0 auto;padding:46px 44px 80px}
.hero-section{
  display:grid;
  grid-template-columns:1.06fr .94fr;
  gap:38px;
  align-items:center;
  min-height:430px;
  padding:24px 0 46px
}
.kicker{
  display:inline-block;
  color:#5b67f1;
  font-size:12px;
  font-weight:800;
  letter-spacing:.13em
}
.hero-copy h1{
  margin:12px 0 18px;
  font-size:clamp(40px,5vw,66px);
  line-height:1.02;
  letter-spacing:-.045em
}
.hero-copy p{
  max-width:650px;
  font-size:18px;
  color:var(--muted);
  margin:0
}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}
.primary-btn,.secondary-btn{
  text-decoration:none;
  padding:11px 16px;
  border-radius:9px;
  font-weight:700;
  font-size:14px
}
.primary-btn{background:#111827;color:#fff}
.secondary-btn{background:#fff;border:1px solid var(--line);color:#344054}
.hero-code,.code-block{
  background:#101828;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 18px 45px rgba(16,24,40,.15)
}
.code-head{
  min-height:42px;
  padding:0 16px;
  display:flex;align-items:center;justify-content:space-between;
  border-bottom:1px solid rgba(255,255,255,.08);
  color:#98a2b3;
  font-size:12px
}
.hero-code pre,.code-block pre{
  margin:0;
  padding:20px;
  overflow-x:auto;
  color:#e4e7ec;
  font:13px/1.8 "SFMono-Regular",Consolas,"Liberation Mono",monospace
}
.info-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
  margin-bottom:28px
}
.mini-card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:14px;
  padding:20px
}
.mini-card strong{display:block;font-size:20px;margin-top:3px}
.mini-card p{margin:6px 0 0;color:var(--muted);font-size:13px}
.mini-label{font-size:10px;font-weight:800;letter-spacing:.12em;color:#98a2b3}
.doc-card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:16px;
  padding:34px;
  margin:22px 0;
  scroll-margin-top:86px
}
.section-eyebrow{
  color:#667085;
  font-size:11px;
  letter-spacing:.12em;
  font-weight:800
}
.doc-card h2{
  margin:7px 0 8px;
  font-size:28px;
  letter-spacing:-.025em
}
.doc-card h3{margin:28px 0 12px;font-size:16px}
.lead{margin:0;color:var(--muted);font-size:15px;max-width:820px}
.notice{
  display:flex;gap:12px;
  margin-top:22px;padding:14px 16px;
  border:1px solid #d7dcff;
  background:#f5f6ff;
  border-radius:11px
}
.notice-icon{
  flex:0 0 24px;height:24px;
  border-radius:50%;display:grid;place-items:center;
  background:#5b67f1;color:white;font-weight:700;font-size:12px
}
.notice strong{font-size:13px}
.notice p{margin:2px 0 0;color:#667085;font-size:13px}
.param-table{
  border:1px solid var(--line);
  border-radius:12px;
  overflow:hidden;
  margin-top:22px
}
.param-row{
  display:grid;
  grid-template-columns:1.05fr .8fr .75fr 2fr;
  gap:0;
  border-top:1px solid var(--line)
}
.param-row:first-child{border-top:0}
.param-row>div{padding:13px 14px;font-size:13px}
.param-row.header{background:var(--surface-2);font-weight:700;color:#475467}
.param-row code{font-weight:700;color:#344054}
.required{
  display:inline-flex;padding:3px 7px;
  border-radius:999px;background:#ecfdf3;color:#027a48;
  font-size:11px;font-weight:700
}
.endpoint-head{
  display:flex;align-items:center;gap:12px;margin-bottom:16px
}
.endpoint-head code{
  padding:7px 10px;
  background:#f2f4f7;
  border:1px solid var(--line);
  border-radius:7px;
  color:#344054;
  font-size:13px
}
.method-badge{
  padding:6px 9px;border-radius:7px;
  font-size:11px;font-weight:800;letter-spacing:.04em
}
.method-badge.get{background:var(--get-bg);color:var(--get)}
.method-badge.post{background:var(--post-bg);color:var(--post)}
.two-col{
  display:grid;
  grid-template-columns:.7fr 1.3fr;
  gap:28px;
  align-items:start;
  margin-top:24px
}
.two-col p{color:var(--muted);font-size:14px}
.error-list{display:grid;gap:10px;margin-top:20px}
.error-list>div{
  display:grid;
  grid-template-columns:65px 140px 1fr;
  align-items:center;
  gap:12px;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:10px
}
.error-list p{margin:0;color:var(--muted);font-size:13px}
.status{
  display:inline-flex;width:50px;justify-content:center;
  padding:5px 7px;border-radius:7px;font-size:11px;font-weight:800
}
.status.success{background:#ecfdf3;color:#027a48}
.status.client{background:#fff4ed;color:#b42318}
.status.server{background:#fef3f2;color:#b42318}
.timeline{margin-top:18px}
.timeline-item{display:flex;gap:14px}
.timeline-dot{
  margin-top:5px;width:10px;height:10px;border-radius:50%;
  background:#5b67f1;box-shadow:0 0 0 5px #eef0ff
}
.timeline-item strong{display:block}
.timeline-item span{display:block;color:#667085;font-size:13px}
.timeline-item p{margin:6px 0 0;color:#667085;font-size:13px}
.footer{
  padding:32px 4px 0;
  display:flex;justify-content:space-between;
  color:#98a2b3;font-size:12px
}
@media(max-width:1020px){
  .sidebar{transform:translateX(-100%);transition:.22s ease}
  .sidebar.open{transform:translateX(0)}
  .main{margin-left:0}
  .mobile-toggle{
    display:inline-flex;
    border:0;background:#111827;color:#fff;
    width:38px;height:38px;border-radius:9px;
    align-items:center;justify-content:center;
    font-size:19px;cursor:pointer
  }
  .topbar{padding:0 18px}
}
@media(max-width:820px){
  .content{padding:30px 18px 60px}
  .hero-section{grid-template-columns:1fr;min-height:auto;padding-top:10px}
  .info-grid{grid-template-columns:1fr}
  .two-col{grid-template-columns:1fr}
  .param-row{grid-template-columns:1fr}
  .param-row.header{display:none}
  .param-row>div{padding:8px 12px}
  .param-row{padding:8px 0}
  .doc-card{padding:24px 18px}
  .error-list>div{grid-template-columns:60px 1fr}
  .error-list p{grid-column:1/-1}
  .footer{flex-direction:column;gap:5px}
}
