.docs-page { padding-top: 135px; }
.docs-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: 28px 0 40px; border-bottom: 1px solid var(--line); margin-bottom: 42px; }
.docs-head h1 { font-size: clamp(36px, 4vw, 52px); line-height: 1.15; letter-spacing: -.05em; margin-bottom: 18px; }
.docs-head p { color: var(--muted); max-width: 550px; font-size: 15px; line-height: 1.85; margin-bottom: 0; }
.docs-version { white-space: nowrap; margin-top: 7px; border: 1px solid var(--line); border-radius: 6px; padding: 5px 10px; color: var(--muted); font: 11px/1.6 var(--mono); }
.docs-layout { display: grid; grid-template-columns: 230px minmax(0,1fr); gap: 65px; padding-bottom: 65px; }
.docs-sidebar { position: sticky; top: 100px; max-height: calc(100dvh - 120px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; align-self: start; min-width: 0; padding: 6px 8px 12px 6px; margin: -6px 0 0 -6px; overscroll-behavior: contain; scrollbar-gutter: stable; }
.doc-nav-label { display: block; color: var(--muted); font: 9px/1.7 var(--mono); letter-spacing: 1px; padding: 6px 10px; margin-top: 16px; }
.docs-sidebar > .doc-nav-label { margin-top: 0; padding-left: 0; }
#docs-search { display: block; width: 100%; min-height: 40px; border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px 11px 36px; color: var(--text); background: var(--card); font: 13px var(--sans); -webkit-appearance: none; appearance: none; transition: border-color .18s, box-shadow .18s; }
#docs-search::placeholder { color: var(--muted); opacity: .85; }
.doc-search-field { position: relative; }
.doc-search-field > svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--muted); pointer-events: none; }
#docs-search:focus { outline: none; border-color: var(--accent-soft); box-shadow: 0 0 0 3px #3979f61c; }
.doc-search-field:focus-within > svg { color: var(--accent-soft); }
#docs-nav a:focus-visible, .docs-source:focus-visible { outline-offset: -2px; }
#docs-nav [hidden] { display: none !important; }
#search-status { color: var(--muted); font-size: 11px; margin: 7px 0 0; }
#search-status:empty { display: none; }
#docs-nav { position: static; display: flex; flex-direction: column; align-items: stretch; gap: 2px; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
#docs-nav a { white-space: normal; color: var(--muted); font-size: 13px; line-height: 1.6; padding: 9px 11px; border: 1px solid transparent; border-radius: 7px; font-weight: 450; }
#docs-nav a:hover { color: var(--text); background: var(--card); }
#docs-nav a.is-active { color: var(--accent-soft); background: var(--fill); border-color: var(--line); font-weight: 550; }
#docs-nav a[hidden] { display: none; }
.docs-source { display: block; color: var(--accent-soft); font-size: 11px; margin: 22px 0 0; padding: 15px 10px 0; border-top: 1px solid var(--line); }
.docs-content { min-width: 0; }
.doc-section { padding: 0 0 42px; margin-bottom: 40px; border-bottom: 1px solid var(--line); scroll-margin-top: 105px; }
.doc-section:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.doc-section-head { min-width: 0; display: flex; align-items: baseline; gap: 12px; margin-bottom: 22px; }
.doc-section-head > span { color: var(--accent-soft); font: 11px var(--mono); }
.doc-section h2 { min-width: 0; overflow-wrap: anywhere; font-size: 27px; margin: 0; letter-spacing: -.035em; }
.doc-anchor { flex-shrink: 0; font: 16px var(--mono); color: var(--muted); opacity: 0; }
.doc-section-head:hover .doc-anchor, .doc-anchor:focus-visible { opacity: 1; }
.doc-section p, .doc-section li { font-size: 14px; color: var(--muted); line-height: 1.9; overflow-wrap: anywhere; }
.doc-section p { margin-bottom: 17px; }
.doc-section h3 { font-size: 18px; margin: 28px 0 12px; }
.doc-section ol { padding-left: 22px; margin: 18px 0 24px; }
.doc-section li { padding-left: 5px; margin-bottom: 8px; }
.doc-section li::marker { color: var(--accent-soft); font: 12px var(--mono); }
.doc-section p code, .doc-section li code, .doc-section td code { font: .85em/1.7 var(--mono); border: 1px solid var(--line); background: var(--card); border-radius: 4px; padding: 2px 5px; color: var(--text); overflow-wrap: anywhere; }
.doc-console { border: 1px solid var(--term-line); border-radius: 10px; background: var(--term); margin: 20px 0; overflow: hidden; }
.doc-console-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 10px 15px; background: var(--term-bar); border-bottom: 1px solid var(--term-line); }
.doc-console-head > span { font: 9px var(--mono); letter-spacing: 1px; color: var(--term-muted); }
.doc-console pre { padding: 19px; font-size: 12px; line-height: 1.9; }
.doc-console code { font: inherit; }
.doc-note { border: 1px solid var(--line); border-left: 3px solid var(--accent-soft); border-radius: 7px; background: var(--card); padding: 16px 20px; margin: 23px 0; }
.doc-note > strong { font-size: 12px; color: var(--text); font-weight: 600; }
.doc-note p { font-size: 13px; margin: 6px 0 0; }
.doc-requirements { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin: 24px 0; }
.doc-requirements article { border: 1px solid var(--line); background: var(--card); padding: 22px; border-radius: 10px; }
.doc-requirements article > span { color: var(--accent-soft); font: 9px var(--mono); letter-spacing: 1px; }
.doc-requirements h3 { font-size: 15px; margin: 12px 0 9px; }
.doc-requirements p { font-size: 12px; margin: 0; }
.doc-table { width: 100%; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; border: 1px solid var(--line); border-radius: 9px; margin: 22px 0; }
.doc-table table { border-collapse: collapse; text-align: left; width: 100%; min-width: 430px; }
.doc-table th, .doc-table td { padding: 13px 15px; vertical-align: top; }
.doc-table th { font-size: 11px; font-weight: 600; background: var(--card); }
.doc-table td { font-size: 12px; line-height: 1.85; color: var(--muted); border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.doc-table td:first-child { min-width: 150px; color: var(--text); }
.doc-end { border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 25px; margin-top: 35px; }
.doc-end h3 { margin-top: 0; }
.doc-end .button { margin-top: 4px; }
@media (max-width: 1050px) {
  .docs-layout { grid-template-columns: 200px minmax(0,1fr); gap: 35px; }
  .doc-requirements { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .docs-page { padding-top: 110px; }
  .docs-head { padding-top: 12px; margin-bottom: 25px; }
  .docs-layout { grid-template-columns: 1fr; gap: 35px; }
  .docs-sidebar { position: static; max-height: none; overflow: visible; margin: 0; padding: 0 0 24px; scrollbar-gutter: auto; border-bottom: 1px solid var(--line); }
  #docs-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 10px; margin-top: 12px; }
  #docs-nav .doc-nav-label { grid-column: 1 / -1; margin-top: 8px; }
  .docs-source { margin-top: 15px; }
  .doc-requirements { grid-template-columns: 1fr 1fr; }
  .doc-section h2 { font-size: 24px; }
  .doc-anchor { opacity: .5; }
}
@media (max-width: 500px) {
  .docs-head { display: block; }
  .docs-version { display: inline-block; margin-top: 20px; }
  .docs-head h1 { font-size: 36px; }
  .docs-head p { font-size: 14px; }
  .doc-requirements { grid-template-columns: 1fr; }
  .doc-section p, .doc-section li { font-size: 13px; }
  .doc-section { margin-bottom: 32px; padding-bottom: 32px; }
  .doc-section-head { gap: 9px; }
  .doc-section h2 { font-size: 22px; }
  .doc-console pre { font-size: 11px; padding: 15px; }
  .doc-console-head { padding: 8px 12px; }
  .doc-note { padding: 14px; }
  .doc-table th, .doc-table td { padding: 11px; }
}
