.docs-shell {
  display: grid;
  gap: 2rem;
  max-width: 1440px;
  margin: 0 auto;
  padding: 2rem 1rem;
}
.docs-shell[data-layout="three-col"] {
  grid-template-columns: 280px minmax(0, 1fr) 440px;
}
.docs-shell[data-layout="two-col"] {
  grid-template-columns: 280px minmax(0, 1fr);
}
.docs-nav { position: sticky; top: 1rem; align-self: start; max-height: calc(100vh - 2rem); overflow-y: auto; }
.docs-nav-search { margin-bottom: 1rem; }
.docs-nav-section-title { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: #64748b; margin: 1rem 0 0.25rem; }
.docs-nav-pages { list-style: none; padding: 0; margin: 0; }
.docs-nav-page-link { display: flex; align-items: center; gap: 0.5rem; padding: 0.375rem 0.5rem; border-radius: 0.375rem; color: #334155; font-size: 0.875rem; text-decoration: none; }
.docs-nav-page-link:hover { background: #f1f5f9; }
.docs-nav-page-link.active { background: #eff6ff; color: #1d4ed8; font-weight: 600; }

.docs-http-badge { font-family: ui-monospace, monospace; font-size: 0.625rem; font-weight: 700; padding: 0.125rem 0.375rem; border-radius: 0.25rem; }
.docs-http-get    { background: #dbeafe; color: #1e40af; }
.docs-http-post   { background: #dcfce7; color: #166534; }
.docs-http-put    { background: #fef3c7; color: #92400e; }
.docs-http-delete { background: #fee2e2; color: #991b1b; }
.docs-http-patch  { background: #ede9fe; color: #5b21b6; }

.docs-deprecated-pill { background: #fef3c7; color: #92400e; font-size: 0.625rem; padding: 0.125rem 0.375rem; border-radius: 0.25rem; margin-left: auto; }

.docs-code { position: sticky; top: 1rem; align-self: start; max-height: calc(100vh - 2rem); overflow-y: auto; }
.docs-code-panel { background: #1e293b; border-radius: 0.5rem; overflow: hidden; }
.docs-code-tabs { display: flex; overflow-x: auto; background: #0f172a; }
.docs-code-tab { padding: 0.5rem 0.875rem; color: #94a3b8; font-size: 0.75rem; background: transparent; border: 0; cursor: pointer; white-space: nowrap; }
.docs-code-tab[data-active="true"] { color: #fff; background: #1e293b; }
.docs-code-pane { display: none; position: relative; }
.docs-code-pane[data-active="true"] { display: block; }
.docs-code-pane pre { margin: 0 !important; padding: 1rem !important; background: #1e293b !important; font-size: 0.8125rem !important; }
.docs-code-copy { position: absolute; top: 0.5rem; right: 0.5rem; padding: 0.25rem 0.5rem; background: rgba(255,255,255,0.1); color: #cbd5e1; border: 0; border-radius: 0.25rem; font-size: 0.75rem; cursor: pointer; }
.docs-code-copy:hover { background: rgba(255,255,255,0.2); }

.docs-security-callout { background: #fffbeb; border: 1px solid #fef3c7; color: #92400e; padding: 0.625rem 0.875rem; border-radius: 0.5rem; font-size: 0.8125rem; margin-bottom: 1rem; }
.docs-security-callout a { color: #92400e; font-weight: 600; text-decoration: underline; }

.docs-response-panel { margin-top: 1rem; background: #0f172a; border-radius: 0.5rem; overflow: hidden; }
.docs-response-title { padding: 0.5rem 0.875rem; background: #1e293b; color: #94a3b8; font-size: 0.75rem; font-weight: 600; }

.docs-toc { font-size: 0.8125rem; border-left: 2px solid #e2e8f0; padding-left: 1rem; margin: 1rem 0; }
.docs-toc-title { text-transform: uppercase; letter-spacing: 0.05em; color: #64748b; font-size: 0.6875rem; margin-bottom: 0.5rem; font-weight: 600; }
.docs-toc ul { list-style: none; padding: 0; margin: 0; }
.docs-toc li { padding: 0.125rem 0; }
.docs-toc li a { color: #475569; text-decoration: none; }
.docs-toc li a:hover { color: #0f172a; }
.docs-toc-level-3 { padding-left: 1rem; }

.docs-content .prose { max-width: 720px; }

.docs-nav,
.docs-code,
.docs-code-tabs {
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.5) transparent;
}
.docs-nav::-webkit-scrollbar,
.docs-code::-webkit-scrollbar,
.docs-code-tabs::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.docs-nav::-webkit-scrollbar-track,
.docs-code::-webkit-scrollbar-track,
.docs-code-tabs::-webkit-scrollbar-track {
  background: transparent;
}
.docs-nav::-webkit-scrollbar-thumb,
.docs-code::-webkit-scrollbar-thumb,
.docs-code-tabs::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.4);
  border-radius: 3px;
}
.docs-nav:hover::-webkit-scrollbar-thumb,
.docs-code:hover::-webkit-scrollbar-thumb,
.docs-code-tabs:hover::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.6);
}
.docs-code-tabs::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.25);
}

@media (max-width: 1023px) {
  .docs-shell { padding: 1rem 0.875rem; gap: 1.25rem; }
  .docs-shell[data-layout="three-col"],
  .docs-shell[data-layout="two-col"] {
    grid-template-columns: 1fr;
  }
  .docs-nav,
  .docs-code {
    position: static !important;
    top: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
  .docs-nav {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1rem;
  }
}
