:root { color-scheme:light; --ink:#26364a; --muted:#718095; --line:#e3e8ee; --accent:#397fe5; --canvas:#f5f7fa; --soft:#f7f9fb; }
* { box-sizing:border-box; }
html,body { margin:0; height:100%; font:13px/1.5 Inter,-apple-system,BlinkMacSystemFont,'Segoe UI','Microsoft YaHei',sans-serif; color:var(--ink); background:var(--canvas); }
button,input,select,textarea { font:inherit; }
button,a { cursor:pointer; }
a { color:var(--accent); text-decoration:none; }
.topbar { height:56px; display:flex; align-items:center; gap:35px; padding:0 22px; background:#fff; border-bottom:1px solid var(--line); }
.brand { color:var(--ink); font-size:16px; font-weight:700; }
.topbar nav { display:flex; align-items:center; height:100%; gap:22px; }
.topbar nav a { display:grid; align-items:center; height:100%; color:var(--muted); border-bottom:2px solid transparent; }
.topbar nav a.active { color:var(--accent); border-color:var(--accent); }
.local-note { margin-left:auto; color:#95a1b0; font-size:11px; }
.workbench { height:calc(100vh - 56px); display:grid; grid-template-columns:290px minmax(500px,1fr) 240px; }
.request-list,.environment-pane { overflow:auto; background:#fff; padding:18px 14px; }
.request-list { border-right:1px solid var(--line); }
.list-head { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:15px; }
.list-head strong,.panel-title { color:var(--ink); font-size:12px; font-weight:650; }
.list-head input { width:130px; }
.select-label { display:block; color:var(--muted); font-size:11px; margin:0 0 5px; }
input,select,textarea { min-width:0; border:1px solid var(--line); border-radius:5px; background:#fff; color:var(--ink); padding:8px 9px; }
input:focus,select:focus,textarea:focus { outline:2px solid #d7e8ff; border-color:#7badef; }
.request-list select { width:100%; margin-bottom:12px; }
.operations { display:flex; flex-direction:column; gap:3px; }
.op-item { display:flex; align-items:center; width:100%; gap:8px; padding:7px 7px; border:0; border-radius:5px; background:transparent; text-align:left; color:#566579; }
.op-item:hover,.op-item.active { background:#edf5ff; color:#276fce; }
.op-method { min-width:38px; text-align:center; padding:2px 4px; border-radius:3px; color:#26734c; background:#e9f7ef; font:700 9px/15px ui-monospace,monospace; }
.op-path { font:11px/1.4 ui-monospace,Consolas,monospace; overflow-wrap:anywhere; }
.request-pane { min-width:0; overflow:auto; padding:24px 28px 38px; }
.pane-head,.response-head { display:flex; align-items:center; justify-content:space-between; gap:18px; }
.eyebrow { margin-bottom:4px; color:#92a0b0; font-size:9px; font-weight:700; letter-spacing:.1em; }
h1 { margin:0; font-size:18px; letter-spacing:0; }
.pane-head a { font-size:11px; }
.url-row { display:grid; grid-template-columns:92px minmax(120px,1.1fr) minmax(140px,1.5fr) 78px; gap:7px; margin:20px 0 16px; }
.url-row input,.url-row select { width:100%; }
.primary { border:1px solid var(--accent); border-radius:5px; background:var(--accent); color:#fff; font-weight:600; }
.primary:hover { background:#2e70ce; }
.tabs { display:flex; gap:20px; border-bottom:1px solid var(--line); }
.tab { padding:10px 2px; border:0; border-bottom:2px solid transparent; background:transparent; color:var(--muted); }
.tab.active { color:var(--accent); border-color:var(--accent); font-weight:600; }
.request-editor { min-height:235px; padding:18px 0; }
.tab-panel { display:none; }
.tab-panel.active { display:block; }
.panel-title { margin-bottom:12px; }
.empty-state,.hint { color:#95a1b0; font-size:11px; }
.params-grid { width:100%; border-collapse:collapse; font-size:11px; }
.params-grid th,.params-grid td { padding:7px 8px; border-bottom:1px solid var(--line); text-align:left; }
.params-grid th { color:#8794a5; font-weight:600; }
.params-grid input { width:100%; min-width:90px; }
#send:disabled { opacity:.65; cursor:wait; }
#response-meta.ok { color:#268255; }
#response-meta.bad { color:#bd4e57; }
.header-inputs { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:12px; }
.header-inputs label,.environment-pane label { display:flex; flex-direction:column; gap:5px; color:var(--muted); font-size:11px; }
.header-inputs input,.environment-pane input { width:100%; }
.header-row { display:grid; grid-template-columns:1fr 2fr auto; gap:7px; margin-bottom:7px; }
.quiet { padding:5px 9px; border:1px solid var(--line); border-radius:4px; background:#fff; color:#5c6d82; font-size:11px; }
.quiet:hover { background:var(--soft); }
textarea { display:block; width:100%; min-height:175px; resize:vertical; font:12px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace; }
.hint { margin-top:6px; }
.response-pane { border-top:1px solid var(--line); padding-top:18px; }
.response-head strong { font-size:12px; }
#response-meta { color:var(--muted); font-size:11px; }
.response-output { min-height:170px; max-height:440px; overflow:auto; margin:12px 0 0; padding:14px; border:1px solid var(--line); border-radius:5px; background:#fff; color:#36465a; font:12px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace; white-space:pre-wrap; overflow-wrap:anywhere; }
.request-url { margin-top:10px; color:#8592a3; font:10px ui-monospace,SFMono-Regular,Consolas,monospace; overflow-wrap:anywhere; }
.response-headers { margin-top:8px; color:#718095; font-size:11px; }
.response-headers summary { cursor:pointer; }
.response-headers pre { max-height:130px; overflow:auto; padding:9px; background:#f7f9fb; border-radius:4px; font:10px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace; white-space:pre-wrap; }
.environment-pane { border-left:1px solid var(--line); }
.environment-pane label { margin:14px 0 10px; }
.environment-tip { margin-top:18px; padding:10px; border-radius:5px; background:#f6f8fb; color:#8391a2; font-size:10px; line-height:1.55; }
.loading { padding:8px; color:#97a3b2; }
@media(max-width:1100px) { .workbench { grid-template-columns:245px minmax(450px,1fr); } .environment-pane { display:none; } }
@media(max-width:740px) { html,body { height:auto; min-height:100%; } .topbar { height:52px; padding:0 12px; gap:16px; } .local-note { display:none; } .workbench { display:block; height:auto; } .request-list { max-height:280px; border-right:0; border-bottom:1px solid var(--line); } .request-pane { overflow:visible; padding:18px 14px 26px; } .url-row { grid-template-columns:74px 1fr; } .url-row #path { grid-column:1/2; } .url-row .primary { grid-column:2/3; } }
