@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
*{box-sizing:border-box;margin:0;padding:0}
body{font-family:'Inter',system-ui,sans-serif;background:linear-gradient(135deg,#FFF8F0 0%,#FFF3E6 50%,#FFECD2 100%);min-height:100vh}
::-webkit-scrollbar{width:5px}::-webkit-scrollbar-thumb{background:rgba(139,90,43,.15);border-radius:4px}
button,input,textarea,select{font-family:inherit}button{cursor:pointer}

.wrap{display:flex;flex-direction:column;height:100vh;overflow:hidden}

/* Topbar */
.topbar{height:56px;background:rgba(255,255,255,.85);backdrop-filter:blur(12px);border-bottom:1px solid rgba(139,90,43,.12);display:flex;align-items:center;padding:0 20px;gap:14px;flex-shrink:0}
.logo{width:36px;height:36px;border-radius:10px;background:linear-gradient(135deg,#8B5A2B,#A0522D);display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:800;color:#fff}
.title{font-size:14px;font-weight:800;color:#3E2723}
.subtitle{font-size:10px;color:#8D6E63}

/* Buttons */
.btn{border:none;border-radius:9px;padding:8px 16px;font-size:12.5px;font-weight:700;display:inline-flex;align-items:center;gap:6px;transition:transform .1s}
.btn:hover{transform:translateY(-1px)}
.btn:disabled{opacity:.4;cursor:not-allowed;transform:none}
.btn-run{background:linear-gradient(135deg,#059669,#047857);color:#fff}
.btn-add{background:linear-gradient(135deg,#8B5A2B,#A0522D);color:#fff}
.btn-stop{background:#EF4444;color:#fff}
.btn-export{background:rgba(139,90,43,.06);color:#8B5A2B;border:1px solid rgba(139,90,43,.15)}
.btn-sm{padding:5px 10px;font-size:11px;border-radius:7px}
.btn-del{background:#FEF2F2;color:#DC2626;border:1px solid #FECACA}

/* Card */
.card{background:rgba(255,255,255,.75);border:1px solid rgba(139,90,43,.12);border-radius:14px;padding:18px 20px;backdrop-filter:blur(8px)}

/* URL bar */
.url-bar{display:flex;gap:8px;align-items:center}
.url-input{flex:1;border:1.5px solid rgba(139,90,43,.15);border-radius:9px;padding:9px 14px;font-size:13px;font-family:monospace;background:rgba(255,255,255,.8);color:#3E2723;transition:border-color .2s}
.url-input:focus{outline:none;border-color:#8B5A2B}

/* Presets */
.preset-chip{padding:4px 12px;border-radius:100px;font-size:11px;font-weight:600;border:1px solid rgba(139,90,43,.12);background:rgba(255,255,255,.7);color:#5D4037;cursor:pointer;transition:all .12s}
.preset-chip:hover,.preset-chip.active{background:#8B5A2B;color:#fff;border-color:#8B5A2B}

/* Test cases table */
.tc-table{width:100%;border-collapse:collapse}
.tc-table th{text-align:left;padding:10px 12px;font-size:11px;font-weight:600;color:#8D6E63;text-transform:uppercase;letter-spacing:.06em;border-bottom:1px solid rgba(139,90,43,.1);background:rgba(139,90,43,.02)}
.tc-table td{padding:10px 12px;border-bottom:1px solid rgba(139,90,43,.05);font-size:13px;color:#3E2723;vertical-align:top}
.tc-table tr:hover{background:rgba(139,90,43,.02)}
.tc-input{width:100%;border:1px solid rgba(139,90,43,.12);border-radius:7px;padding:7px 10px;font-size:12.5px;background:transparent;color:#3E2723}
.tc-input:focus{outline:none;border-color:#8B5A2B}

/* Results */
.result-row{border:1px solid rgba(139,90,43,.1);border-radius:12px;margin-bottom:10px;overflow:hidden;background:rgba(255,255,255,.7);transition:all .15s}
.result-row.error{border-color:#FECACA;background:#FEF2F2}
.result-header{padding:12px 16px;display:flex;align-items:center;gap:12px;cursor:pointer}
.result-header:hover{background:rgba(139,90,43,.02)}
.result-num{width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;flex-shrink:0}
.result-num.ok{background:#F0FDF4;color:#059669;border:1px solid #A7F3D0}
.result-num.err{background:#FEF2F2;color:#DC2626;border:1px solid #FECACA}
.result-question{flex:1;font-size:13px;font-weight:600;color:#3E2723}
.result-latency{font-size:11px;font-family:monospace;color:#8D6E63}
.result-body{padding:0 16px 14px;display:none}
.result-body.open{display:block}
.result-response{background:rgba(139,90,43,.03);border:1px solid rgba(139,90,43,.08);border-radius:9px;padding:12px 14px;font-size:13px;color:#5D4037;line-height:1.65;white-space:pre-wrap;word-break:break-word}

/* Progress */
.progress-bar{height:4px;background:rgba(139,90,43,.08);border-radius:100px;overflow:hidden;margin-top:8px}
.progress-fill{height:100%;background:linear-gradient(90deg,#8B5A2B,#059669);border-radius:100px;transition:width .3s ease}

/* Stats bar */
.stats{display:flex;gap:16px;align-items:center}
.stat-item{text-align:center}
.stat-val{font-size:18px;font-weight:800;letter-spacing:-.01em}
.stat-label{font-size:9px;color:#8D6E63;text-transform:uppercase;letter-spacing:.07em;font-weight:600}

/* Spinner */
@keyframes spin{to{transform:rotate(360deg)}}
.spinner{width:14px;height:14px;border-radius:50%;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;animation:spin .7s linear infinite;display:inline-block}

/* Body layout */
.body{flex:1;overflow-y:auto;padding:20px;display:flex;flex-direction:column;gap:16px}