.docs-shell { padding: 78px 0 125px; }
.docs-hero { padding-bottom: 58px; border-bottom: 1px solid var(--line); }
.docs-hero h1 { margin: 18px 0 14px; font-size: clamp(44px, 6vw, 76px); letter-spacing: -.07em; }
.docs-hero h1 span { color: var(--accent); font-size: .32em; letter-spacing: .06em; vertical-align: middle; }
.docs-hero p { max-width: 660px; color: #aab6b4; line-height: 1.9; }
.docs-base { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 17px; padding: 13px 18px; border: 1px solid #576561; background: #141c1f; }
.docs-base span, .docs-number, .docs-toc strong { color: var(--accent); font: 700 10px ui-monospace, Menlo, monospace; letter-spacing: .16em; }
.docs-base code { color: #eef0e6; font-size: 13px; overflow-wrap: anywhere; }
.docs-grid { display: grid; grid-template-columns: 205px minmax(0, 1fr); gap: 72px; padding-top: 60px; }
.docs-toc { position: sticky; top: 32px; align-self: start; display: flex; flex-direction: column; gap: 5px; }
.docs-toc strong { margin-bottom: 14px; }
.docs-toc a { padding: 9px 0 9px 12px; border-left: 1px solid #40504b; color: #aebbb1; font-size: 12px; }
.docs-toc a:hover { border-color: var(--accent); color: var(--accent); }
.docs-section { max-width: 820px; padding: 0 0 66px; margin-bottom: 60px; border-bottom: 1px solid var(--line); scroll-margin-top: 30px; }
.docs-section:last-child { margin-bottom: 0; border-bottom: 0; }
.docs-section h2 { margin: 13px 0 20px; font-size: clamp(28px, 3vw, 39px); letter-spacing: -.04em; }
.docs-section p { max-width: 740px; margin: 14px 0; color: #b7c2bc; font-size: 13px; line-height: 1.95; }
.docs-section p code, .docs-table-wrap code { color: #e7cf8f; font-size: .95em; overflow-wrap: anywhere; }
.docs-section pre { max-width: 100%; overflow-x: auto; padding: 20px 22px; margin: 20px 0; border: 1px solid #344146; background: #10171a; color: #e3e9df; font: 12px/1.75 ui-monospace, SFMono-Regular, Menlo, monospace; }
.docs-section pre code { font: inherit; }
.endpoint { display: flex; align-items: center; gap: 16px; max-width: 100%; padding: 14px 16px; margin: 18px 0 10px; border: 1px solid #52615a; background: #172124; }
.endpoint > span { color: #dfc77d; font: 700 11px ui-monospace, Menlo, monospace; }
.endpoint code { flex: 1; min-width: 0; overflow-wrap: anywhere; font: 12px ui-monospace, Menlo, monospace; }
.endpoint a { flex: none; color: var(--accent); font-size: 11px; }
.docs-table-wrap { overflow-x: auto; margin: 20px 0; border: 1px solid #35433f; }
.docs-table-wrap table { width: 100%; border-collapse: collapse; font-size: 12px; text-align: left; }
.docs-table-wrap th, .docs-table-wrap td { padding: 14px 17px; border-bottom: 1px solid #35433f; vertical-align: top; line-height: 1.7; }
.docs-table-wrap tr:last-child td { border-bottom: 0; }
.docs-table-wrap th { background: #182226; color: #d9c68d; white-space: nowrap; }
.docs-table-wrap td { color: #b8c4bc; }
@media (max-width: 820px) {
  .docs-shell { padding-top: 55px; }
  .docs-grid { display: block; padding-top: 38px; }
  .docs-toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 0 14px; margin-bottom: 54px; }
  .docs-toc strong { width: 100%; }
  .docs-toc a { padding: 8px 0; border-left: 0; border-bottom: 1px solid #40504b; }
  .docs-section { padding-bottom: 52px; margin-bottom: 47px; }
}
@media (max-width: 520px) {
  .docs-shell { padding-top: 45px; }
  .docs-hero h1 { font-size: 44px; }
  .docs-base { display: flex; align-items: flex-start; flex-direction: column; gap: 8px; }
  .endpoint { gap: 9px; padding: 12px; }
  .endpoint code { font-size: 10px; }
  .docs-section pre { padding: 15px; font-size: 10px; }
}
