.api-hub { --ah-ink: #0f172a; --ah-muted: #475569; --ah-line: #e2e8f0; --ah-accent: #1d4ed8; --ah-nav: 4.75rem; }
.api-hub-hero { background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%); color: #f8fafc; border-radius: 1rem; padding: 2.25rem 1.75rem; }
.api-hub-hero h1 { font-weight: 700; letter-spacing: -0.02em; }
.api-hub-hero .lead { color: #cbd5e1; }
.api-hub h2 { font-size: 1.45rem; font-weight: 700; margin-top: 2.25rem; scroll-margin-top: calc(var(--ah-nav) + 1rem); }
.api-hub h3 { font-size: 1.05rem; font-weight: 650; margin-top: 1.25rem; }
.api-hub pre { background: #0f172a; color: #e2e8f0; padding: 1rem 1.1rem; border-radius: .6rem; font-size: .82rem; overflow-x: auto; }
.api-hub code { font-size: .9em; }
.api-hub .method { font-size: .7rem; font-weight: 700; letter-spacing: .04em; padding: .18rem .45rem; border-radius: .3rem; }
.method-get { background: #dcfce7; color: #166534; }
.method-post { background: #dbeafe; color: #1e40af; }
.method-patch { background: #fef3c7; color: #92400e; }
.method-delete { background: #fee2e2; color: #991b1b; }
.tryit-panel { border: 1px solid var(--ah-line); border-radius: .85rem; overflow: hidden; }
.tryit-panel .tryit-head { background: #0f172a; color: #f8fafc; padding: 1rem 1.2rem; }
.copy-btn { font-size: .75rem; }
#tryit-status { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.api-hub-layout { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.api-hub-sidebar { display: none; }
.api-hub-search { width: 100%; }
.ah-ep { border: 1px solid var(--ah-line); border-radius: .75rem; padding: 1rem 1.15rem; margin-bottom: .85rem; scroll-margin-top: calc(var(--ah-nav) + 1rem); }
.ah-ep.is-hidden { display: none; }
.ah-badge { font-size: .7rem; font-weight: 650; padding: .12rem .45rem; border-radius: 999px; background: #f1f5f9; color: #334155; }
.ah-badge-charge { background: #fef3c7; color: #92400e; }
.ah-badge-job { background: #e0e7ff; color: #3730a3; }
.ah-step { border: 1px solid var(--ah-line); border-radius: .7rem; padding: .85rem 1rem; height: 100%; }
.ah-step .n { font-weight: 800; color: var(--ah-accent); }
.api-hub-nav-mobile { position: sticky; top: 0; z-index: 20; background: var(--bs-body-bg, #fff); border-bottom: 1px solid var(--ah-line); padding: .55rem 0; margin-bottom: 1rem; }
.ah-side-link { display: block; color: var(--ah-muted); text-decoration: none; font-size: .82rem; padding: .2rem 0 .2rem .6rem; border-left: 2px solid transparent; }
.ah-side-link:hover, .ah-side-link.active { color: var(--ah-accent); border-left-color: var(--ah-accent); }
.ah-side-group { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #94a3b8; margin: .85rem 0 .25rem; }
.ah-empty { display: none; }
.ah-empty.is-visible { display: block; }
html[data-bs-theme="dark"] .api-hub { --ah-ink: #e2e8f0; --ah-muted: #94a3b8; --ah-line: #334155; --ah-accent: #93c5fd; }
html[data-bs-theme="dark"] .ah-badge { background: #1e293b; color: #cbd5e1; }
html[data-bs-theme="dark"] .api-hub-nav-mobile { background: var(--bs-body-bg); }
html[data-bs-theme="dark"] .method-get { background: #14532d; color: #bbf7d0; }
html[data-bs-theme="dark"] .method-post { background: #1e3a8a; color: #bfdbfe; }
html[data-bs-theme="dark"] .method-patch { background: #78350f; color: #fde68a; }
@media (min-width: 992px) {
  .api-hub-layout { grid-template-columns: 16.5rem minmax(0, 1fr); align-items: start; }
  .api-hub-sidebar {
    display: block;
    position: sticky;
    top: var(--ah-nav);
    max-height: calc(100vh - var(--ah-nav) - 1.5rem);
    overflow: auto;
    padding-right: .5rem;
  }
  .api-hub-nav-mobile { display: none !important; }
}
