.docs-shell { width: min(1392px, calc(100% - 2 * clamp(17px, 4vw, 60px))); padding-top: 106px; }
.docs-layout { display: grid; grid-template-columns: minmax(180px, .34fr) minmax(0, 1fr) minmax(134px, .25fr); align-items: start; }
.docs-rail, .docs-outline { position: sticky; top: 96px; }
.docs-rail { padding-right: clamp(14px, 2vw, 27px); }
.docs-outline { padding-left: clamp(14px, 2.2vw, 31px); }
.docs-rail h2, .docs-outline h2 { margin: 2px 0 12px; color: var(--fg); font-size: 14px; font-weight: 590; letter-spacing: -.024em; }
.docs-contents, :is(.docs-outline,.mobile-toc) nav { display: grid; gap: 3px; }
.docs-contents { max-height: calc(100vh - 190px); overflow: auto; scrollbar-width: thin; scrollbar-color: #4e405e transparent; }
.docs-outline nav { max-height: calc(100vh - 138px); overflow: auto; scrollbar-width: thin; }
.docs-contents a, :is(.docs-outline,.mobile-toc) nav a { display: block; padding: 7px 8px; border-left: 2px solid transparent; color: var(--ref-muted); border-radius: 0 4px 4px 0; font-size: 12.5px; line-height: 1.35; }
.docs-contents a:hover, :is(.docs-outline,.mobile-toc) nav a:hover { color: var(--fg); background: rgb(209 199 248 / 5%); }
.docs-contents a[aria-current], :is(.docs-outline,.mobile-toc) nav a[aria-current] { color: #e6dbff; background: #1a1625; border-left-color: var(--ref-accent); }
.docs-article { min-width: 0; min-height: 64vh; border-inline: 1px solid var(--ref-line); padding: 1px clamp(22px, 4vw, 58px) 24px; }
.chapter-header { margin: 0 0 27px; padding-bottom: 19px; border-bottom: 1px solid var(--ref-line); }
.chapter-header h1 { font-size: clamp(36px, 5vw, 68px); font-weight: 550; line-height: 1.03; letter-spacing: -.065em; overflow-wrap: anywhere; }
.chapter-header p { margin-top: 10px; color: var(--ref-muted); font-size: clamp(14px, 1.35vw, 17px); line-height: 1.48; }
.docs-section { min-width: 0; scroll-margin-top: 93px; }
.docs-section + .docs-section { border-top: 1px solid var(--ref-line); margin-top: 27px; padding-top: 21px; }
.docs-section h2 { color: var(--fg); font-size: clamp(21px, 2.15vw, 30px); font-weight: 555; letter-spacing: -.043em; line-height: 1.17; margin-bottom: 10px; }
.docs-section > p, .docs-list { color: #d4d1e1; font-size: clamp(14px, 1.07vw, 16px); line-height: 1.63; margin-bottom: 11px; }
.docs-list { padding-left: 19px; }
.docs-list li + li { margin-top: 6px; }
.docs-links { display: flex; flex-wrap: wrap; gap: 6px 15px; margin-top: 10px; font-size: 13px; }
.docs-links a { color: var(--ref-accent); text-decoration: underline; text-decoration-color: rgb(193 175 255 / 48%); text-underline-offset: 4px; }
.docs-links a:hover { color: #f3edff; }
.docs-flow { list-style: none; margin: 13px 0 4px; }
.docs-flow li { position: relative; display: grid; grid-template-columns: minmax(112px, .48fr) minmax(0,1fr); align-items: baseline; gap: 4px 13px; padding: 10px 12px; border: 1px solid var(--ref-line); border-left: 2px solid #625184; border-radius: 5px; background: #11111b; }
.docs-flow li + li { margin-top: 13px; }
.docs-flow li + li::before { position: absolute; content: ''; width: 5px; height: 5px; left: 15px; top: -11px; border-right: 1px solid #ac98d9; border-bottom: 1px solid #ac98d9; transform: rotate(45deg); }
.docs-flow strong { color: #e4d8ff; font-size: 13px; font-weight: 580; }
.docs-flow span { color: var(--ref-muted); font-size: 12px; line-height: 1.38; }
.docs-table-wrap { border: 1px solid var(--ref-line); border-radius: 6px; overflow: hidden; }
.docs-table-wrap table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.48; }
.docs-table-wrap th, .docs-table-wrap td { padding: 8px 10px; text-align: left; vertical-align: top; }
.docs-table-wrap th { background: #171722; color: #e8e0f5; font-weight: 594; }
.docs-table-wrap td { border-top: 1px solid var(--ref-line); color: #d4d1e1; }
.docs-table-wrap td:first-child { width: 29%; color: var(--fg); }
.docs-source { margin-top: 12px; }
.docs-source > button { margin-top: 8px; }
.docs-code { margin: 0; min-width: 0; border: 1px solid var(--ref-line); border-radius: 7px; background: #0e0e16; overflow: hidden; }
.docs-code figcaption { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 7px 10px; color: #ddd4f0; background: #161622; border-bottom: 1px solid var(--ref-line); font: 11px/1.35 var(--mono); }
.docs-code figcaption span { overflow-wrap: anywhere; }
.docs-code button { min-height: 28px; padding: 4px 8px; }
.docs-code pre { padding: 12px; color: #e3deee; overflow-x: auto; font: 11.5px/1.64 var(--mono); }
.docs-code code, .docs-route code { font-family: var(--mono); }
.code-comment { color: #9da6ba; }
.code-string { color: #b8d6be; }
.code-keyword { color: #cfb8ff; }
.code-number { color: #e9c297; }
.docs-api h3 { margin: 12px 0 6px; color: #e6ddf7; font-size: 15px; font-weight: 600; }
.docs-route { display: flex; gap: 8px; align-items: baseline; min-width: 0; color: #e0d9ed; font-size: 12px; padding: 11px; cursor: pointer; list-style: none; }
.docs-route::after { content: '+'; color: var(--ref-accent); margin-left: auto; }
.docs-endpoint[open] > .docs-route::after { content: '−'; }
.docs-route code { overflow-wrap: anywhere; }
.docs-method { min-width: 44px; padding: 2px 4px; text-align: center; color: #c6c9ef; border-radius: 4px; background: #1a1a2a; font: 10px/1.35 var(--mono); }
.docs-method[data-method='POST'], .docs-method[data-method='PATCH'] { color: #d2bfef; background: #231d30; }
.docs-method[data-method='DELETE'] { color: #f3c2d1; background: #2e1d29; }
.docs-endpoint { margin-top: 7px; border: 1px solid var(--ref-line); border-radius: 6px; background: #10111a; scroll-margin-top: 90px; }
.docs-endpoint-detail { padding: 0 11px 11px; }
.docs-endpoint-detail > p { color: #d2cddd; margin-bottom: 10px; font-size: 14px; line-height: 1.5; }
.docs-api-errors { font-size: 13px; }
.docs-api-errors a { color: var(--ref-accent); text-decoration: underline; text-underline-offset: 3px; }
.docs-code + .docs-code, .docs-section > .docs-code { margin-top: 12px; }
.docs-code-source { display: flex; align-items: baseline; gap: 8px; }
.docs-language { color: var(--ref-accent); text-transform: uppercase; font-size: 9.5px; letter-spacing: .08em; }
.chapter-paging { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 16px; border-top: 1px solid var(--ref-line); margin-top: 25px; }
.chapter-paging a { color: var(--ref-accent); font-size: 13px; line-height: 1.45; }
.chapter-paging a:hover { color: #f3edff; }
.chapter-next { grid-column: 2; text-align: right; }
.docs-shell .reference-footer { border-top: 1px solid var(--ref-line); }
.docs-chapters-button, .mobile-toc { display: none; }
.docs-page :is(a, button, summary, pre, input):focus-visible { outline: 2px solid var(--ref-accent); outline-offset: 2px; }
.docs-tools { display: flex; gap: 8px; margin-bottom: 10px; }
.docs-search-button { justify-content: space-between; width: 100%; }
.docs-search-button kbd { border: 1px solid #77688e; border-radius: 3px; padding: 0 5px; color: #d4c3ef; font: 11px/1.35 var(--mono); }
.docs-nav-group { padding: 5px 0; border-bottom: 1px solid var(--ref-line); }
.docs-nav-group summary { cursor: pointer; padding: 6px 4px; color: #e1d8f0; font-size: 11px; font-weight: 610; letter-spacing: .04em; text-transform: uppercase; }
.docs-nav-group summary::marker { color: var(--ref-accent); }
.docs-nav-group a { margin-left: 4px; }
.docs-breadcrumbs { display: flex; flex-wrap: wrap; gap: 5px 8px; margin: 0 0 13px; color: var(--ref-muted); font-size: 11px; line-height: 1.4; }
.docs-breadcrumbs > :nth-child(n+2)::before { content: '/'; padding-right: 8px; color: #8e7eaa; }
.docs-breadcrumbs a, .docs-breadcrumbs [aria-current] { color: #ded3f4; }
.docs-notice { margin: 12px 0; padding: 10px 13px; border-left: 2px solid var(--ref-accent); background: #171323; }
.docs-notice[data-type='warning'] { border-left-color: #e2b78c; }
.docs-notice strong { color: #ede3ff; font-size: 13px; }
.docs-notice p { margin-top: 3px; color: #cec8dd; font-size: 13px; line-height: 1.5; }
.docs-dialog { position: fixed; inset: 12vh 0 auto; width: min(calc(100% - 28px), 570px); max-height: 77vh; margin: 0 auto; padding: 18px; overflow: auto; color: var(--fg); background: #14131c; border: 1px solid #59496f; border-radius: 8px; }
.docs-dialog::backdrop { background: rgb(5 4 10 / 75%); }
.docs-dialog header { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.docs-dialog h2 { color: var(--fg); font-size: 18px; font-weight: 600; }
.docs-dialog label { display: block; margin-bottom: 5px; color: var(--ref-muted); font-size: 12px; }
.docs-dialog input { width: 100%; min-height: 42px; padding: 8px 11px; border: 1px solid #59496f; border-radius: 5px; background: #0e0e16; color: var(--fg); color-scheme: dark; font-size: 16px; }
.docs-search-status { margin: 9px 0 4px; color: var(--ref-muted); font-size: 12px; }
.docs-search ol { list-style: none; }
.docs-search li + li { border-top: 1px solid var(--ref-line); }
.docs-search li a { display: block; padding: 9px 7px; }
.docs-search li a:hover { background: #20192d; }
.docs-search li strong { color: #eadfff; font-size: 13px; overflow-wrap: anywhere; }
.docs-search li span { margin-left: 8px; color: var(--ref-muted); font-size: 11px; }
.docs-search li p { margin-top: 3px; color: #c6c0d4; font-size: 12px; line-height: 1.45; }
.docs-diagram { margin: 14px 0; padding: 13px; border: 1px solid #4a3b62; border-radius: 6px; background-color: #0d0d16; background-image: linear-gradient(#bca2ff0b 1px,transparent 1px), linear-gradient(90deg,#bca2ff0b 1px,transparent 1px); background-size: 18px 18px; }
.docs-diagram figcaption, .docs-figure figcaption { margin-bottom: 10px; color: #d4c6ee; font: 11px/1.4 var(--mono); }
.docs-diagram ol { list-style: none; }
.docs-diagram li { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.95fr); align-items: center; column-gap: 12px; }
.docs-diagram li + li { margin-top: 16px; }
.docs-module { display: grid; gap: 3px; position: relative; padding: 9px 11px; border: 1px solid #5b4879; border-left: 2px solid var(--ref-accent); background: #161223; }
.docs-diagram li + li .docs-module::before { content: ''; position: absolute; left: 18px; top: -17px; height: 16px; border-left: 1px solid #9877c8; }
.docs-module strong { color: #ece2ff; font-size: 13px; font-weight: 610; }
.docs-module span, .docs-connection { color: #c5bdd6; font-size: 11.5px; line-height: 1.42; }
.docs-connection { color: #dac9f3; }
.docs-diagram-branches { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; border-top: 1px solid #9877c8; margin-top: 16px; padding-top: 9px; }
.docs-diagram-branches li { grid-template-columns: minmax(0,1fr); gap: 5px; }
.docs-diagram-path { display: block; color: var(--ref-accent); font-size: 11px; font-weight: 570; margin-bottom: 6px; }
.docs-diagram-branches li + li .docs-module::before { height: 8px; top: -9px; }
.docs-sequence { width: 100%; display: block; margin: 0 auto 14px; border-bottom: 1px solid #493959; }
.docs-sequence text { font-family: var(--mono, monospace); fill: #e6d7f9; font-size: 10.8px; }
.docs-sequence .sequence-participant { font-weight: 650; }
.docs-sequence .sequence-label { paint-order: stroke; stroke: #0d0d16; stroke-width: 3px; stroke-linejoin: round; }
.sequence-lane { stroke: #463854; stroke-dasharray: 3 4; stroke-width: 1px; }
.sequence-message, #docs-sequence-arrow path { stroke: #ba9be2; stroke-width: 1.3px; }
.docs-figure { margin: 13px 0; }
.docs-figure-view { position: relative; border: 1px solid #5b4879; }
.docs-figure img { display: block; width: 100%; height: auto; }
.docs-figure figcaption { margin: 8px 0; }
.docs-figure ol { padding-inline-start: 20px; color: #d4cde2; font-size: 13px; line-height: 1.65; }
.docs-pin { position: absolute; display: grid; place-items: center; width: 22px; aspect-ratio: 1; transform: translate(-50%, -50%); border: 1px solid #d6befd; border-radius: 50%; color: #faf3ff; background: #32234a; font: 11px var(--mono); }

@media (max-width: 1020px) {
  .docs-layout { grid-template-columns: 175px minmax(0,1fr); }
  .docs-article { border-right: 0; padding-right: 0; }
  .docs-outline { display: none; }
  .mobile-toc { display: block; margin-bottom: 16px; border-bottom: 1px solid var(--ref-line); padding: 0 0 9px; }
  .mobile-toc summary { cursor: pointer; color: #ded3f4; font-size: 12px; line-height: 1.5; }
  .mobile-toc nav { margin-top: 7px; }
}

@media (max-width: 820px) {
  .docs-sequence { display: none; }
}

@media (max-width: 620px) {
  .docs-shell { padding-top: 93px; }
  .docs-layout { display: block; }
  .docs-rail { position: static; padding: 0; margin-bottom: 13px; }
  .docs-rail h2, .docs-rail .docs-contents { display: none; }
  .docs-chapters-button { display: inline-flex; flex: 1; }
  .docs-search-button { flex: 1; }
  #chapter-drawer { inset: 0 auto 0 0; margin: 0; width: min(88vw, 340px); height: 100%; max-height: 100dvh; border-radius: 0; }
  #chapter-drawer .docs-contents { max-height: calc(100dvh - 70px); }
  .docs-article { border: 0; padding: 0 0 24px; }
  .chapter-header { margin-bottom: 19px; padding-bottom: 14px; }
  .docs-flow li { grid-template-columns: minmax(0,1fr); }
  .docs-diagram li { grid-template-columns: minmax(0,1fr); gap: 5px; }
  .docs-diagram li + li .docs-module::before { height: 7px; top: -9px; }
  .docs-connection { padding-left: 10px; }
  .docs-diagram-branches { grid-template-columns: minmax(0, 1fr); }
  .docs-table-wrap { overflow-x: auto; }
  .docs-table-wrap td:first-child { overflow-wrap: anywhere; }
}
