.docs-shell {
  --docs-top: 180px;
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 5rem);
  width: min(1240px, 92vw);
  margin: 2.5rem auto 0;
}
.docs-sidebar {
  position: sticky;
  top: var(--docs-top);
  max-height: calc(100vh - var(--docs-top) - 20px);
  overflow-y: auto;
  padding: 0.5rem 1rem 1rem 0;
}
.docs-product { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 1.4rem; font-weight: 700; }
.docs-product img { border-radius: 8px; }
.docs-version, .docs-description, .docs-source { color: var(--muted); }
.docs-version { font-size: 0.85rem; margin: 0.2rem 0 1.5rem; }
.docs-menu > summary { display: none; }
.docs-group { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin: 1.25rem 0 0.4rem; }
.docs-menu ul, .docs-toc ul { list-style: none; padding: 0; margin: 0; }
.docs-menu a { display: block; padding: 0.45rem 0.65rem; border-radius: 6px; font-size: 0.9rem; }
.docs-menu a[aria-current='page'] { background: var(--accent-soft); color: var(--text); font-weight: 700; border-left: 3px solid var(--accent); }
.docs-menu a:hover { background: var(--accent-soft); }
.docs-article { min-width: 0; }
.docs-article h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.2; margin-bottom: 0.8rem; }
.docs-breadcrumbs { display: flex; flex-wrap: wrap; gap: 0.6rem; font-size: 0.85rem; color: var(--muted); }
.docs-toc { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.85rem 1.2rem; margin: 1.5rem 0; }
.docs-toc summary, .docs-menu summary { cursor: pointer; font-weight: 600; }
.docs-toc ul { margin-top: 0.75rem; }
.docs-toc a { display: inline-block; padding: 0.2rem 0; font-size: 0.9rem; }
.docs-toc-subsection { margin-left: 1rem; }
.docs-content { overflow-wrap: anywhere; }
.docs-content h2, .docs-content h3, .docs-content h4 { scroll-margin-top: calc(var(--docs-top) + 1rem); line-height: 1.35; }
.docs-content h2 { margin-top: 2.75rem; font-size: 1.6rem; }
.docs-content h3 { margin-top: 2rem; font-size: 1.2rem; }
.docs-content a, .docs-source a { text-decoration: underline; text-underline-offset: 0.2em; }
.docs-heading-link { font-size: 0.8em; color: var(--accent); text-decoration: none !important; }
.docs-content code { background: var(--code-bg); padding: 0.1rem 0.3rem; border-radius: 4px; font-size: 0.9em; }
.docs-content pre { margin: 0; overflow-x: auto; padding: 3rem 1.2rem 1.2rem; background: var(--code-bg); border: 1px solid var(--border); border-radius: var(--radius-sm); line-height: 1.6; font-size: 0.9rem; }
.docs-content pre code { padding: 0; background: transparent; overflow-wrap: normal; white-space: pre; font-size: inherit; }
.docs-content .highlight .k, .docs-content .highlight .kd, .docs-content .highlight .kn, .docs-content .highlight .nt { color: #1d4ed8; }
.docs-content .highlight .s, .docs-content .highlight .s1, .docs-content .highlight .s2 { color: #087f5b; }
.docs-content .highlight .m, .docs-content .highlight .mi, .docs-content .highlight .mf { color: #9a3412; }
.docs-content .highlight .c, .docs-content .highlight .c1, .docs-content .highlight .cm { color: var(--muted); }
html.theme-dark .docs-content .highlight .k, html.theme-dark .docs-content .highlight .kd, html.theme-dark .docs-content .highlight .kn, html.theme-dark .docs-content .highlight .nt { color: #93c5fd; }
html.theme-dark .docs-content .highlight .s, html.theme-dark .docs-content .highlight .s1, html.theme-dark .docs-content .highlight .s2 { color: #86efac; }
html.theme-dark .docs-content .highlight .m, html.theme-dark .docs-content .highlight .mi, html.theme-dark .docs-content .highlight .mf { color: #fdba74; }
.docs-code { position: relative; margin: 1.25rem 0; min-width: 0; }
.docs-content div.highlighter-rouge, .docs-content figure.highlight, .docs-content div.highlight { min-width: 0; max-width: 100%; margin: 1.25rem 0; }
.docs-copy { position: absolute; top: 0.55rem; right: 0.7rem; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--card); color: var(--text); padding: 0.3rem 0.65rem; cursor: pointer; }
.docs-shell a:focus-visible, .docs-shell button:focus-visible, .docs-shell summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.docs-content blockquote { border-left: 3px solid var(--accent); margin: 1.5rem 0; padding: 0.5rem 1.2rem; background: var(--accent-soft); }
.docs-table { max-width: 100%; overflow-x: auto; margin: 1.5rem 0; }
.docs-content table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.docs-content th, .docs-content td { padding: 0.65rem; text-align: left; border: 1px solid var(--border); }
.docs-content th { background: var(--table-header-bg); }
.docs-source { margin-top: 2.5rem; font-size: 0.85rem; }
.docs-pagination { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 2rem 0; }
.docs-pagination a { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem; }
.docs-pagination a:last-child { text-align: right; }
.docs-pagination span, .docs-pagination strong { display: block; }
.docs-pagination span { color: var(--muted); font-size: 0.85rem; }
@media (max-width: 1000px) {
  .docs-shell { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; margin-top: 1.5rem; }
  .docs-sidebar { position: static; max-height: none; padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card); }
  .docs-menu > summary { display: list-item; }
  .docs-version { margin-bottom: 0.6rem; }
}
@media (max-width: 480px) { .docs-pagination { grid-template-columns: minmax(0, 1fr); } }
