.docs-body { --docs-muted: #645e57; }
.docs-header { gap: 42px; border-bottom: 1px solid var(--line); }
.docs-header nav a[aria-current] { color: var(--ink); }
.docs-layout { width: min(1440px, calc(100% - 64px)); display: grid; grid-template-columns: 226px minmax(0, 790px) 175px; gap: 44px; align-items: start; }
.docs-sidebar { position: sticky; top: 22px; max-height: calc(100vh - 44px); overflow-y: auto; padding: 35px 16px 48px 0; scrollbar-width: thin; }
.docs-nav > summary { display: none; }
.nav-search { margin-bottom: 23px; }
.nav-search label, .doc-search label { display: block; font-size: 12px; font-weight: 600; color: var(--docs-muted); margin-bottom: 7px; }
.nav-search input, .doc-search input { width: 100%; border: 1px solid #d5cec5; border-radius: 8px; color: var(--ink); background: #fffdf9; font: inherit; font-size: 13px; padding: 9px 11px; }
input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.search-status { color: var(--docs-muted); font-size: 12px; margin-top: 5px; }
.search-status:empty { display: none; }
.nav-group { margin-bottom: 22px; }
.nav-group > p { color: var(--ink); font-size: 11px; font-weight: 700; letter-spacing: .075em; text-transform: uppercase; margin-bottom: 6px; }
.nav-group ul, .docs-toc ul { list-style: none; padding: 0; margin: 0; }
.nav-group a { display: block; color: var(--docs-muted); font-size: 12.5px; line-height: 1.5; padding: 6px 9px; border-left: 2px solid transparent; border-radius: 0 5px 5px 0; }
.nav-group a:hover { color: var(--ink); background: #eeeae3; }
.nav-group a[aria-current="page"] { color: var(--ink); font-weight: 600; background: #efe8de; border-left-color: var(--accent); }
.doc-main { min-width: 0; padding: 43px 0 55px; }
.doc-heading { position: relative; padding-bottom: 31px; border-bottom: 1px solid var(--line); }
.doc-eyebrow { display: flex; flex-wrap: wrap; gap: 10px; color: var(--docs-muted); font-size: 12px; margin-bottom: 16px; }
.doc-eyebrow a:hover { text-decoration: underline; }
.doc-version { display: inline-block; border: 1px solid #d9d0c3; border-radius: 4px; padding: 1px 7px; color: #6e5238; font-size: 10px; font-weight: 600; letter-spacing: .04em; margin-bottom: 18px; }
.doc-heading h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3.4vw, 49px); line-height: 1.14; letter-spacing: -1.5px; overflow-wrap: anywhere; margin-bottom: 17px; }
.doc-lead { color: var(--docs-muted); font-size: 16px; line-height: 1.75; overflow-wrap: anywhere; }
.doc-prose { font-size: 14.5px; line-height: 1.9; color: #3d3933; overflow-wrap: anywhere; }
.doc-prose p { margin: 14px 0; }
.doc-section { margin-top: 34px; }
.doc-section h2 { font-family: var(--serif); font-size: 26px; font-weight: 400; line-height: 1.4; letter-spacing: -.35px; margin: 0 0 14px; scroll-margin-top: 28px; }
.doc-section h3 { font-size: 14px; line-height: 1.5; font-weight: 600; margin: 20px 0 10px; }
.doc-prose a:not(.doc-card) { text-decoration: underline; text-decoration-color: #bca48b; text-underline-offset: 3px; }
.doc-prose a:hover { text-decoration-color: var(--ink); }
.doc-prose ul, .doc-prose ol { padding-left: 22px; margin: 14px 0; }
.doc-prose li + li { margin-top: 6px; }
.doc-prose code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .86em; background: #eee9e1; border-radius: 4px; padding: 2px 5px; overflow-wrap: anywhere; }
.doc-prose pre { margin: 20px 0; padding: 19px 21px; border: 1px solid #e4ded4; border-radius: 9px; background: #f1eee7; overflow: auto; line-height: 1.7; white-space: pre; font-size: 12px; max-width: 100%; }
.doc-prose pre code { padding: 0; background: none; font-size: inherit; overflow-wrap: normal; }
.doc-notice { border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; background: #f0eae0; padding: 15px 18px; font-size: 12.5px; line-height: 1.8; margin: 27px 0; }
.doc-warning { border: 1px solid #ccb29b; border-left: 3px solid #915e3d; border-radius: 6px; padding: 15px 18px; background: #f4e9dc; font-size: 12.5px; line-height: 1.8; margin: 24px 0; }
.doc-warning p { margin: 5px 0 0; }
.doc-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.doc-card { display: flex; flex-direction: column; position: relative; padding: 19px 20px 38px; border: 1px solid #ded8ce; border-radius: 10px; background: #fcfbf7; }
.doc-card:hover { background: #f1ece3; border-color: #bdaa92; }
.doc-card strong { color: var(--ink); font-family: var(--serif); font-weight: 400; font-size: 20px; line-height: 1.3; }
.doc-card > span:not(.doc-card-arrow) { font-size: 12px; color: var(--docs-muted); line-height: 1.7; margin-top: 9px; }
.doc-card-arrow { position: absolute; right: 17px; bottom: 13px; color: #7d6750; }
.docs-toc { position: sticky; top: 36px; margin-top: 47px; font-size: 11px; }
.docs-toc > p { font-weight: 600; color: var(--ink); margin-bottom: 11px; }
.docs-toc li { line-height: 1.6; margin-bottom: 10px; color: var(--docs-muted); }
.docs-toc a:hover { color: var(--ink); text-decoration: underline; }
.doc-pagination { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 49px; padding-top: 24px; border-top: 1px solid var(--line); }
.doc-pagination a { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 8px; padding: 13px 16px; font-size: 12px; }
.doc-pagination a:hover { border-color: var(--accent); }
.doc-pagination a:last-child { text-align: right; }
.doc-pagination small { color: var(--docs-muted); font-size: 10px; margin-bottom: 5px; }
.doc-pagination span { overflow-wrap: anywhere; }
.doc-footer { color: var(--docs-muted); font-size: 11px; margin-top: 35px; }
.doc-footer a { text-decoration: underline; text-underline-offset: 3px; }
.doc-table-wrap { overflow-x: auto; max-width: 100%; border: 1px solid var(--line); border-radius: 8px; margin: 20px 0; }
.doc-table-wrap table { border-collapse: collapse; width: 100%; font-size: 12px; }
.doc-table-wrap th, .doc-table-wrap td { text-align: left; vertical-align: top; padding: 10px 13px; border-bottom: 1px solid var(--line); min-width: 125px; }
.doc-table-wrap th { background: #f1eee7; font-weight: 600; color: var(--ink); }
.doc-table-wrap tr:last-child td { border-bottom: 0; }
.doc-table-wrap td { overflow-wrap: anywhere; max-width: 360px; }
.api-context { font-size: 11px; }
.api-path { display: flex; gap: 13px; align-items: flex-start; border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.api-path > code { background: none; padding: 0; }
.http-method { display: inline-block; font: 600 10px/1.6 ui-monospace, monospace; letter-spacing: .015em; border-radius: 4px; padding: 3px 6px; background: #e5e8dd; color: #405a3a; min-width: 52px; text-align: center; flex-shrink: 0; }
.method-post { background: #ebe3d3; color: #72531b; }
.method-patch, .method-put { background: #e0e6ec; color: #385570; }
.method-delete { background: #f0dfdb; color: #8b4035; }
.doc-prose .operation-list { list-style: none; margin: 15px 0; padding: 0; }
.operation-list li { border: 1px solid var(--line); border-radius: 7px; }
.operation-list a { display: flex; align-items: flex-start; gap: 14px; padding: 13px 15px; text-decoration: none !important; }
.operation-list a:hover { background: #eeeae2; }
.operation-list a > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.operation-list strong { font-weight: 500; font-size: 13px; line-height: 1.5; }
.operation-list code { color: var(--docs-muted); font-size: 10px; background: none; padding: 3px 0 0; }
.api-response { border-left: 2px solid var(--line); padding-left: 15px; }
.contract-description { white-space: pre-line; }
.contract-details { padding: 13px 15px; border: 1px solid var(--line); border-radius: 7px; }
.contract-details summary { cursor: pointer; font-size: 12px; font-weight: 600; }
.doc-search { margin: 24px 0; max-width: 450px; }
.schema-list { columns: 2; column-gap: 24px; }
.schema-list li { break-inside: avoid; font-size: 12px; }
[hidden] { display: none !important; }
@media (min-width: 1440px) { .docs-layout { gap: 48px; } }
@media (max-width: 1150px) { .docs-layout { grid-template-columns: 205px minmax(0, 1fr); gap: 32px; } .docs-toc { display: none; } }
@media (max-width: 760px) {
  .docs-header { height: 78px; gap: 25px; }
  .docs-header nav { display: flex; position: static; width: auto; gap: 18px; padding: 0; border: 0; }
  .docs-header nav a { display: inline-flex; }
  .docs-header nav a:first-child { display: none; }
  .docs-layout { width: calc(100% - 40px); display: block; }
  .docs-sidebar { position: static; max-height: none; padding: 19px 0 0; overflow: visible; }
  .docs-nav { border: 1px solid var(--line); border-radius: 8px; }
  .docs-nav > summary { display: list-item; cursor: pointer; font-size: 12px; font-weight: 600; padding: 11px 14px; }
  .docs-nav-content { padding: 10px 15px; max-height: 60vh; overflow-y: auto; }
  .doc-main { padding-top: 28px; }
  .doc-heading h1 { font-size: 35px; letter-spacing: -.7px; }
  .doc-lead { font-size: 14px; }
  .doc-prose { font-size: 14px; }
  .doc-section h2 { font-size: 24px; }
  .doc-section { margin-top: 29px; }
  .doc-card-grid { grid-template-columns: 1fr; }
  .doc-prose pre { padding: 14px; font-size: 11px; }
  .schema-list { columns: 1; }
  .doc-pagination { gap: 10px; }
  .operation-list a { gap: 9px; padding: 12px 10px; }
}
@media (max-width: 380px) { .docs-header { gap: 8px; } .docs-header .header-actions { gap: 4px; } .docs-header .button-small { padding-inline: 8px; } .doc-heading h1 { font-size: 30px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
