.api-wrap { max-width: 1480px; }
.api-shell { padding: 24px; }
.api-topbar .title p:first-child { font-weight: 800; }
.api-head, .api-toolbar, .api-toolbar-left, .api-toolbar-right, .api-detail-head, .api-detail-title-wrap, .api-actions-row, .api-request-preview-head, .api-form-head, .api-form-head-actions, .api-auth-strip, .api-auth-strip-actions, .api-catalog-head, .api-workbench-head, .api-auth-dialog-head, .api-auth-actions { display:flex; gap:12px; align-items:center; }
.api-head { justify-content:space-between; gap:20px; align-items:flex-start; margin-bottom:22px; }
.api-eyebrow, .api-strip-eyebrow { font-size:12px; text-transform:uppercase; letter-spacing:1px; color:var(--gold-2, #b98a4a); margin-bottom:8px; font-weight:800; }
.api-head h1, .api-catalog-head h2, .api-workbench-head h2, .api-auth-dialog h2 { margin:0 0 8px; }
.api-head-note { max-width:760px; }
.api-head-actions, .api-toolbar-right, .api-auth-strip-actions, .api-actions-row { flex-wrap:wrap; justify-content:flex-end; }
.api-link-btn { border:0; border-radius:14px; background:linear-gradient(145deg, #b98a4a, #d8b988); color:#fff; padding:11px 16px; text-decoration:none; font-weight:700; cursor:pointer; box-shadow:0 10px 22px rgba(0,0,0,0.12); }
.api-link-btn.secondary, .mini-reset-btn, .api-auth-close { background:rgba(255,255,255,0.74); color:#7a592f; border:1px solid rgba(185,138,74,0.24); box-shadow:none; }
.small-btn, .mini-reset-btn { padding:8px 12px; font-size:12px; }
.api-toolbar { justify-content:space-between; flex-wrap:wrap; margin-bottom:18px; }
.api-toolbar-left { flex:1 1 720px; flex-wrap:wrap; }
.api-search, .api-select, .api-param-input, .api-body-input, .api-param-name, .api-auth-input { width:100%; border:1px solid rgba(185,138,74,0.24); background:rgba(255,255,255,0.92); border-radius:14px; padding:12px 14px; font:inherit; }
.api-search { min-width:320px; flex:1 1 420px; }
.api-select { min-width:220px; flex:0 0 240px; }
.api-base-box { display:flex; align-items:center; gap:10px; border:1px solid rgba(185,138,74,0.24); background:rgba(255,255,255,0.72); border-radius:14px; padding:10px 14px; }
.api-base-label, .api-meta-label, .api-group-sub { font-size:12px; text-transform:uppercase; letter-spacing:.7px; color:#8b6a40; }
.api-auth-strip { justify-content:space-between; flex-wrap:wrap; padding:16px 18px; margin-bottom:18px; border:1px solid rgba(185,138,74,0.18); }
.api-auth-state { display:inline-flex; align-items:center; justify-content:center; min-width:120px; border-radius:999px; padding:8px 14px; font-weight:800; font-size:12px; text-transform:uppercase; letter-spacing:.7px; }
.api-auth-state.ok { background:rgba(27,139,77,.14); color:#1b8b4d; }
.api-auth-state.warn { background:rgba(181,43,39,.12); color:#9f3f31; }
.api-auth-state-text { max-width:820px; }
.api-stack-layout { display:grid; gap:18px; }
.cardlite { background:rgba(255,255,255,0.72); border:1px solid rgba(185,138,74,0.18); border-radius:18px; padding:18px; box-shadow:0 12px 24px rgba(0,0,0,.06); }
.api-catalog-groups { display:grid; gap:14px; }
.api-group-block { border:1px solid rgba(185,138,74,0.16); border-radius:18px; background:rgba(255,255,255,0.45); overflow:hidden; }
.api-group-toggle { width:100%; display:flex; align-items:center; justify-content:space-between; gap:12px; border:0; background:transparent; padding:16px 18px; cursor:pointer; text-align:left; }
.api-group-title { font-size:18px; font-weight:800; color:#6f4f28; }
.api-group-chevron { font-size:22px; color:#8b6a40; transform:rotate(-90deg); transition:transform .18s ease; }
.api-group-block.open .api-group-chevron { transform:rotate(0); }
.api-group-items { display:grid; gap:10px; padding:0 14px 14px; }
.api-endpoint-card { border:1px solid rgba(185,138,74,0.14); border-radius:16px; background:rgba(255,255,255,0.82); padding:10px 12px; transition:border-color .18s ease, box-shadow .18s ease; }
.api-endpoint-card.active { border-color:rgba(185,138,74,.48); box-shadow:0 8px 18px rgba(185,138,74,.12); }
.api-endpoint-card.expanded { border-color:rgba(185,138,74,.58); box-shadow:0 10px 22px rgba(185,138,74,.16); }
.api-endpoint-summary { width:100%; display:grid; grid-template-columns:auto minmax(0,1.6fr) minmax(0,1fr) auto auto; gap:12px; align-items:center; border:0; background:transparent; cursor:pointer; text-align:left; padding:4px; }
.api-mini-method, .api-method-badge { display:inline-flex; align-items:center; justify-content:center; min-width:74px; border-radius:999px; font-size:12px; font-weight:800; letter-spacing:.7px; text-transform:uppercase; padding:8px 12px; color:#fff; }
 .method-get { background:#1b8b4d; } .method-post { background:#b98a4a; } .method-patch { background:#4c7dd9; } .method-put { background:#5b6bd5; } .method-delete { background:#b52b27; }
.api-endpoint-path, .api-detail-path { font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; word-break:break-all; color:#563d1f; }
.api-endpoint-title { font-weight:700; }
.api-endpoint-guard { border-radius:999px; padding:8px 12px; font-size:12px; font-weight:800; }
.api-endpoint-guard.locked, .api-auth-badge.protected { background:rgba(181,43,39,.12); color:#9f3f31; }
.api-endpoint-guard.open, .api-auth-badge.public { background:rgba(27,139,77,.14); color:#1b8b4d; }
.api-endpoint-note { margin:6px 4px 0 90px; color:#6c604f; font-size:14px; }
.api-endpoint-chevron { justify-self:end; font-size:20px; color:#8b6a40; transition:transform .18s ease; }
.api-endpoint-card.expanded .api-endpoint-chevron { transform:rotate(180deg); }
.api-endpoint-workbench-slot { margin-top:12px; }
.api-detail-card.embedded { margin-top:12px; padding:16px; background:rgba(255,251,245,0.98); border-color:rgba(185,138,74,.24); box-shadow:none; }
.api-detail-card.embedded .api-workbench-head { margin-bottom:12px; padding-bottom:12px; border-bottom:1px solid rgba(185,138,74,.14); }
.api-detail-content { display:grid; gap:16px; }
.api-detail-head { justify-content:space-between; flex-wrap:wrap; }
.api-detail-description, .api-admin-notice, .api-auth-copy { line-height:1.55; color:#4f4538; }
.api-admin-notice { background:rgba(185,138,74,.08); border:1px solid rgba(185,138,74,.16); padding:12px 14px; border-radius:14px; }
.api-meta-grid, .api-form-grid { display:grid; gap:14px; }
.api-meta-grid { grid-template-columns:repeat(3, minmax(0,1fr)); }
.api-form-grid { grid-template-columns:repeat(2, minmax(0,1fr)); }
.api-meta-box, .api-form-box, .api-request-preview, .api-response-section { border:1px solid rgba(185,138,74,0.14); background:rgba(255,255,255,0.58); border-radius:16px; padding:14px; }
.api-form-box-full { grid-column:1 / -1; }
.api-param-row { display:grid; grid-template-columns:minmax(220px, .95fr) minmax(0, 1.4fr); gap:12px; padding:10px 0; border-bottom:1px dashed rgba(185,138,74,0.16); }
.api-param-row:last-child { border-bottom:0; }
.api-param-helper, .api-run-meta, .api-response-meta, .api-file-meta { font-size:13px; color:#7b6c58; margin-top:6px; }
.api-body-input, .api-code-block { min-height:180px; font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.api-body-input { resize:vertical; }
.api-code-block { white-space:pre-wrap; overflow:auto; background:#1e1f24; color:#eef2ff; border-radius:16px; padding:16px; margin:0; }
.api-code-block.muted { opacity:.95; }
.api-response-head { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; margin-bottom:14px; }
.api-response-status { min-width:72px; text-align:center; border-radius:12px; padding:10px 12px; font-weight:800; }
.api-response-status.ok { background:rgba(27,139,77,.14); color:#1b8b4d; }
.api-response-status.error { background:rgba(181,43,39,.12); color:#9f3f31; }
.api-response-status.neutral { background:rgba(90,90,90,.12); color:#4f4f4f; }
.api-empty-state { padding:18px; border:1px dashed rgba(185,138,74,0.26); border-radius:16px; background:rgba(255,255,255,0.45); color:#6c604f; }
.api-detail-card.hidden { display:none !important; }
.hidden { display:none !important; }
.api-auth-modal { position:fixed; inset:0; background:rgba(12,10,8,.48); display:flex; align-items:center; justify-content:center; padding:20px; z-index:1000; }
.api-auth-dialog { width:min(100%, 520px); background:#fffaf3; border:1px solid rgba(185,138,74,.24); border-radius:22px; padding:20px; box-shadow:0 30px 70px rgba(0,0,0,.22); }
.api-auth-dialog-head { justify-content:space-between; align-items:flex-start; }
.api-auth-close { width:42px; height:42px; border-radius:12px; font-size:24px; cursor:pointer; }
.api-auth-label { display:block; margin:12px 0 8px; font-weight:700; }
.api-auth-feedback { min-height:22px; color:#7a592f; margin-top:10px; }
@media (max-width: 1080px) {
  .api-endpoint-summary { grid-template-columns:auto 1fr; }
  .api-endpoint-chevron, .api-endpoint-guard { grid-column:2; justify-self:start; }
  .api-endpoint-title { grid-column:2; }
  .api-endpoint-guard { grid-column:2; justify-self:start; }
  .api-endpoint-note { margin-left:4px; }
  .api-meta-grid, .api-form-grid { grid-template-columns:1fr; }
}
@media (max-width: 760px) {
  .api-shell { padding:16px; }
  .api-head, .api-toolbar, .api-auth-strip, .api-detail-head, .api-actions-row, .api-request-preview-head { flex-direction:column; align-items:stretch; }
  .api-search, .api-select { min-width:0; flex:1 1 auto; }
  .api-param-row { grid-template-columns:1fr; }
}
