.api-demo-card .user-card-head,.api-debug-card .user-card-head{align-items:flex-start}
.api-demo-card .user-card-head p,.api-debug-card .user-card-head p{margin:5px 0 0;font-size:13px}
.api-demo-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.api-segment{display:inline-flex;align-items:center;gap:3px;padding:3px;border:1px solid #e2e8f0;border-radius:8px;background:#f8fafc;max-width:100%;overflow-x:auto}
.api-segment button{min-height:34px;padding:0 12px;border:0;border-radius:6px;background:transparent;color:#64748b;font-size:13px;font-weight:600;white-space:nowrap;box-shadow:none}
.api-segment button:hover{color:#0f172a;background:#fff}
.api-segment button.is-active{color:#fff;background:#0052ff;box-shadow:0 2px 8px rgba(0,82,255,.22)}
.api-code-block{min-height:260px;margin:0;padding:18px;border:1px solid #dbe3ef;border-radius:8px;background:#0b1220;color:#dbeafe}
.api-code-block code{display:block;white-space:pre;overflow-x:auto;line-height:1.65;letter-spacing:0}
.api-debug-state{display:inline-flex;align-items:center;min-height:30px;padding:0 10px;border-radius:6px;background:#f1f5f9;color:#64748b;font-size:12px;font-weight:700;white-space:nowrap}
.api-debug-state.is-loading{color:#0052ff;background:rgba(0,82,255,.08)}
.api-debug-state.is-success{color:#15803d;background:#f0fdf4}
.api-debug-state.is-error{color:#b91c1c;background:#fef2f2}
.api-debug-layout{display:grid;grid-template-columns:minmax(280px,360px) minmax(0,1fr);gap:24px;align-items:start}
.api-debug-form{display:grid;gap:14px;padding-right:24px;border-right:1px solid #e2e8f0}
.api-debug-endpoints{width:max-content;max-width:100%}
.api-debug-convert-fields{display:grid;gap:14px}
.api-debug-convert-fields[hidden]{display:none}
.api-debug-warning{padding:11px 12px;border-left:3px solid #f59e0b;background:#fffbeb;color:#92400e;font-size:12px;line-height:1.55}
.api-debug-output{min-width:0}
.api-request-line{display:flex;align-items:center;gap:10px;min-height:42px;padding:9px 12px;border:1px solid #e2e8f0;border-radius:8px;background:#f8fafc}
.api-request-line span{flex:0 0 auto;padding:3px 7px;border-radius:5px;background:#dbeafe;color:#1d4ed8;font-size:11px;font-weight:800}
.api-request-line code{min-width:0;color:#334155;font-size:12px;overflow-wrap:anywhere}
.api-response-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:12px 0}
.api-response-meta span{padding:5px 8px;border:1px solid #e2e8f0;border-radius:6px;background:#fff;color:#64748b;font-size:12px}
.api-response-block{min-height:300px;max-height:520px;margin:0;padding:16px;border:1px solid #dbe3ef;border-radius:8px;background:#0b1220;color:#dbeafe;overflow:auto}
.api-response-block code{display:block;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;letter-spacing:0}
@media (max-width:820px){.api-debug-layout{grid-template-columns:1fr}.api-debug-form{padding-right:0;padding-bottom:22px;border-right:0;border-bottom:1px solid #e2e8f0}.api-code-block{min-height:220px}.api-response-block{min-height:260px}}
@media (max-width:520px){.api-demo-card .user-card-head,.api-debug-card .user-card-head{display:grid}.api-demo-card .user-btn-copy{width:100%}.api-segment{width:100%}.api-segment button{flex:1 0 auto}.api-code-block,.api-response-block{font-size:12px}.api-debug-state{width:max-content}}
