.docs-body {
  --docs-sidebar: 260px;
  --docs-accent: #3dd6c6;
  --docs-accent-dim: #2a9d90;
  --docs-bg: #0a0d12;
  --docs-surface: #121820;
  --docs-border: #243044;
  --docs-text: #e8edf5;
  --docs-muted: #8b9bb8;
  margin: 0;
  font-family: 'Outfit', system-ui, sans-serif;
  background: var(--docs-bg);
  color: var(--docs-text);
  line-height: 1.65;
}

.docs-body code,
.docs-body pre {
  font-family: 'IBM Plex Mono', monospace;
}

.docs-shell {
  display: grid;
  grid-template-columns: var(--docs-sidebar) 1fr;
  min-height: 100vh;
}

.docs-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid var(--docs-border);
  background: var(--docs-surface);
  padding: 1.25rem 0;
}

.docs-brand {
  padding: 0 1.25rem 1.25rem;
  border-bottom: 1px solid var(--docs-border);
  margin-bottom: 1rem;
}

.docs-brand a {
  text-decoration: none;
  color: inherit;
}

.docs-brand h1 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.docs-brand span {
  display: block;
  font-size: 0.78rem;
  color: var(--docs-muted);
  margin-top: 0.2rem;
}

.docs-version {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  font-family: 'IBM Plex Mono', monospace;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: rgba(61, 214, 198, 0.12);
  color: var(--docs-accent);
}

.docs-nav {
  padding: 0 0.75rem;
}

.docs-nav-group {
  margin-bottom: 1rem;
}

.docs-nav-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--docs-muted);
  padding: 0 0.5rem;
  margin-bottom: 0.35rem;
}

.docs-nav a {
  display: block;
  padding: 0.4rem 0.65rem;
  font-size: 0.88rem;
  color: var(--docs-muted);
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.12s, background 0.12s;
}

.docs-nav a:hover {
  color: var(--docs-text);
  background: rgba(255, 255, 255, 0.04);
}

.docs-nav a.active {
  color: var(--docs-accent);
  background: rgba(61, 214, 198, 0.1);
}

.docs-sidebar-footer {
  padding: 1rem 1.25rem 0;
  margin-top: 1rem;
  border-top: 1px solid var(--docs-border);
}

.docs-sidebar-footer a {
  display: block;
  font-size: 0.85rem;
  color: var(--docs-accent);
  text-decoration: none;
  margin-bottom: 0.5rem;
}

.docs-main {
  padding: 2rem 2.5rem 4rem;
  max-width: 820px;
}

.docs-topbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--docs-border);
  background: var(--docs-surface);
  position: sticky;
  top: 0;
  z-index: 10;
}

.docs-menu-btn {
  background: none;
  border: 1px solid var(--docs-border);
  color: var(--docs-text);
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
}

.docs-hero {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--docs-border);
}

.docs-hero h2 {
  margin: 0 0 0.75rem;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.docs-hero p {
  margin: 0;
  color: var(--docs-muted);
  font-size: 1.05rem;
  max-width: 36rem;
}

.docs-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.docs-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: filter 0.15s;
}

.docs-btn-primary {
  background: linear-gradient(135deg, var(--docs-accent-dim), var(--docs-accent));
  color: var(--docs-bg);
}

.docs-btn-secondary {
  border: 1px solid var(--docs-border);
  color: var(--docs-text);
}

.docs-btn:hover {
  filter: brightness(1.08);
}

.docs-section {
  margin-bottom: 3rem;
  scroll-margin-top: 1.5rem;
}

.docs-section h2 {
  margin: 0 0 1rem;
  font-size: 1.45rem;
  font-weight: 700;
  padding-top: 0.5rem;
}

.docs-section h3 {
  margin: 1.75rem 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.docs-section p {
  margin: 0 0 1rem;
  color: var(--docs-muted);
}

.docs-section p strong {
  color: var(--docs-text);
}

.docs-section ul,
.docs-section ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--docs-muted);
}

.docs-section li {
  margin-bottom: 0.35rem;
}

.docs-callout {
  padding: 1rem 1.15rem;
  border-radius: 10px;
  margin: 1rem 0 1.25rem;
  border-left: 3px solid var(--docs-accent);
  background: rgba(61, 214, 198, 0.08);
  font-size: 0.92rem;
  color: var(--docs-text);
}

.docs-callout.warn {
  border-left-color: #e6b84a;
  background: rgba(230, 184, 74, 0.08);
}

.docs-callout.danger {
  border-left-color: #f07178;
  background: rgba(240, 113, 120, 0.08);
}

.docs-table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.25rem;
  border: 1px solid var(--docs-border);
  border-radius: 10px;
}

table.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.docs-table th,
.docs-table td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--docs-border);
}

.docs-table th {
  background: rgba(0, 0, 0, 0.25);
  font-weight: 600;
  color: var(--docs-text);
  white-space: nowrap;
}

.docs-table td {
  color: var(--docs-muted);
}

.docs-table tr:last-child td {
  border-bottom: none;
}

.docs-table code {
  font-size: 0.82rem;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.12rem 0.35rem;
  border-radius: 4px;
  color: var(--docs-accent);
}

.docs-method {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  margin-right: 0.5rem;
}

.docs-method.get {
  background: rgba(61, 214, 198, 0.2);
  color: var(--docs-accent);
}

.docs-endpoint-card {
  border: 1px solid var(--docs-border);
  border-radius: 12px;
  overflow: hidden;
  margin: 1rem 0 1.5rem;
}

.docs-endpoint-head {
  padding: 0.85rem 1rem;
  background: var(--docs-surface);
  border-bottom: 1px solid var(--docs-border);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.88rem;
}

.docs-endpoint-body {
  padding: 1rem;
}

.docs-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.docs-flow-step {
  flex: 1;
  min-width: 120px;
  padding: 0.75rem;
  background: var(--docs-surface);
  border: 1px solid var(--docs-border);
  border-radius: 8px;
  font-size: 0.82rem;
  text-align: center;
}

.docs-flow-step span {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  color: var(--docs-accent);
}

.docs-code-block {
  position: relative;
  margin: 0.75rem 0 1.25rem;
  border: 1px solid var(--docs-border);
  border-radius: 10px;
  overflow: hidden;
  background: #080b10;
}

.docs-code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.75rem;
  background: var(--docs-surface);
  border-bottom: 1px solid var(--docs-border);
  font-size: 0.78rem;
  color: var(--docs-muted);
}

.docs-copy-btn {
  background: none;
  border: 1px solid var(--docs-border);
  color: var(--docs-muted);
  font: inherit;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
}

.docs-copy-btn:hover {
  color: var(--docs-accent);
  border-color: var(--docs-accent-dim);
}

.docs-copy-btn.copied {
  color: var(--docs-accent);
}

.docs-code-block pre {
  margin: 0;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  font-size: 0.8rem;
  line-height: 1.55;
  color: #c8d4e8;
}

.docs-tabs {
  margin: 1rem 0;
}

.docs-tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 1px solid var(--docs-border);
}

.docs-tab {
  background: none;
  border: none;
  color: var(--docs-muted);
  font: inherit;
  font-size: 0.85rem;
  padding: 0.5rem 0.85rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.docs-tab:hover {
  color: var(--docs-text);
}

.docs-tab.active {
  color: var(--docs-accent);
  border-bottom-color: var(--docs-accent);
}

.docs-tab-panel {
  display: none;
}

.docs-tab-panel.active {
  display: block;
}

.docs-tab-panel .docs-code-block {
  margin-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-top: none;
}

.docs-base-url {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.75rem 1rem;
  background: var(--docs-surface);
  border: 1px solid var(--docs-border);
  border-radius: 8px;
  margin: 1rem 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
}

.docs-base-url code {
  color: var(--docs-accent);
  flex: 1;
  word-break: break-all;
}

@media (max-width: 900px) {
  .docs-shell {
    grid-template-columns: 1fr;
  }

  .docs-topbar {
    display: flex;
  }

  .docs-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 20;
    width: min(var(--docs-sidebar), 85vw);
    transform: translateX(-100%);
    transition: transform 0.2s;
  }

  .docs-sidebar.open {
    transform: translateX(0);
  }

  .docs-main {
    padding: 1.25rem 1rem 3rem;
  }

  .docs-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 15;
  }

  .docs-overlay.open {
    display: block;
  }
}
