.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s;
}
.card:hover { box-shadow: var(--shadow-md); }
.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.card-body { padding: 24px; }

.method-tag {
  font-family: 'Space Mono';
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
}
.method-post { background: var(--success-bg); color: var(--success); }
.method-get  { background: #dbeafe; color: var(--accent); }
.endpoint-url { font-family: 'Space Mono'; font-size: 13px; color: var(--text2); }

.section-heading {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-heading.spacer-top { margin-top: 28px; }
.section-heading::before {
  content: '';
  width: 3px;
  height: 16px;
  background: var(--accent);
  border-radius: 2px;
}

.code-block {
  background: var(--code-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 14px 0;
  position: relative;
}
.code-block.flush { margin: 0; border-radius: 0; }
.code-tabs {
  display: flex;
  gap: 0;
  padding: 0 14px;
  background: var(--code-surface);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow-x: auto;
}
.code-tab {
  padding: 10px 14px;
  font-family: 'Space Mono';
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  cursor: pointer;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  transition: all .15s;
  white-space: nowrap;
}
.code-tab:hover  { color: rgba(255,255,255,0.6); }
.code-tab.active { color: #fff; border-bottom-color: var(--accent); }

.code-panels { position: relative; }
.code-panel  { display: none; }
.code-panel.active { display: block; }
.code-content {
  padding: 16px 20px;
  font-family: 'Space Mono';
  font-size: 12px;
  line-height: 1.85;
  color: #e2e8f0;
  overflow-x: auto;
  white-space: pre;
}
.code-content .k  { color: #7dd3fc; }
.code-content .s  { color: #86efac; }
.code-content .n  { color: #fde68a; }
.code-content .b  { color: #c4b5fd; }
.code-content .nl { color: #64748b; }
.code-content .c  { color: #475569; }
.code-content .kw { color: #f472b6; }
.code-content .fn { color: #60a5fa; }
.code-content .tp { color: #fbbf24; }

.copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-family: 'Space Mono';
  cursor: pointer;
  transition: all .15s;
  z-index: 10;
}
.copy-btn:hover  { background: rgba(255,255,255,0.15); color: #fff; }
.copy-btn.copied { background: rgba(34,197,94,0.2); color: #86efac; border-color: rgba(34,197,94,0.3); }

.status-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.status-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-family: 'Space Mono';
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text2);
  transition: all .15s;
  font-weight: 500;
}
.status-tab:hover  { border-color: var(--border2); }
.status-tab.active { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.status-tab .dot { width: 6px; height: 6px; border-radius: 50%; }
.dot-green  { background: var(--success); }
.dot-red    { background: var(--danger); }
.dot-yellow { background: var(--warning); }

.resp-panel { display: none; }
.resp-panel.active { display: block; }

.inline-code {
  font-family: 'Space Mono';
  font-size: 12px;
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 3px;
}

.dev-token-card {
  margin-top: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px 20px;
}
.dev-token-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  margin-bottom: 12px;
}
.dev-token-title { font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.dev-token-sub  { font-size: 12px; color: var(--text2); line-height: 1.5; }
.dev-token-body {
  display: flex; align-items: center; gap: 10px;
  background: #0b1220; color: #cbd5e1;
  padding: 10px 12px; border-radius: 6px;
  font-family: 'Space Mono'; font-size: 12px;
  margin-bottom: 8px;
}
.dev-token-value { flex: 1; word-break: break-all; user-select: all; }
.dev-token-actions { display: flex; gap: 6px; flex-shrink: 0; }
.dev-token-meta {
  display: flex; gap: 14px;
  font-size: 11px; color: var(--text3);
  font-family: 'Space Mono';
}

.btn-secondary {
  font-size: 12px; font-weight: 600;
  padding: 6px 12px;
  background: var(--white); color: var(--text);
  border: 1px solid var(--border); border-radius: 6px;
  cursor: pointer;
  transition: background .12s, border-color .12s;
}
.btn-secondary:hover { background: var(--surface); border-color: var(--text3); }
.btn-secondary:disabled { opacity: .55; cursor: not-allowed; }

.btn-ghost {
  font-size: 11px; font-weight: 600;
  padding: 4px 10px;
  background: rgba(255,255,255,0.08); color: #cbd5e1;
  border: 1px solid rgba(255,255,255,0.12); border-radius: 4px;
  cursor: pointer;
  transition: background .12s;
}
.btn-ghost:hover { background: rgba(255,255,255,0.16); color: #fff; }

.try-it-block {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
}
.try-it-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.try-it-btn {
  font-size: 13px; font-weight: 600;
  padding: 8px 16px;
  background: var(--accent, #2563eb); color: #fff;
  border: 0; border-radius: 6px;
  cursor: pointer;
  transition: background .12s, transform .06s;
}
.try-it-btn:hover  { background: #1d4ed8; }
.try-it-btn:active { transform: translateY(1px); }
.try-it-btn:disabled { opacity: .65; cursor: not-allowed; }
.try-it-help { font-size: 12px; color: var(--text2); }
.try-it-help a { color: var(--accent, #2563eb); text-decoration: none; }
.try-it-help a:hover { text-decoration: underline; }

.try-it-response {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: #0b1220;
  color: #e2e8f0;
  font-family: 'Space Mono'; font-size: 12px;
}
.try-it-response.hidden { display: none; }
.try-it-head {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.04);
}
.try-it-status {
  font-weight: 700; font-size: 11px;
  padding: 2px 8px; border-radius: 3px;
  background: rgba(16,185,129,0.18); color: #6ee7b7;
}
.try-it-err .try-it-status { background: rgba(239,68,68,0.18); color: #fca5a5; }
.try-it-time { font-size: 11px; color: #94a3b8; }
.try-it-response .code-content {
  padding: 12px; white-space: pre-wrap; word-break: break-word;
  background: transparent; color: inherit;
}
