@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&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(220,38,38,.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(220,38,38,.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,#DC2626,#991B1B);display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:800;color:#fff}
.title{font-size:14px;font-weight:800;color:#450a0a}
.subtitle{font-size:10px;color:#7f1d1d}

/* Buttons */
.btn{border:none;border-radius:9px;padding:8px 16px;font-size:12.5px;font-weight:700;display:inline-flex;align-items:center;justify-content: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,#DC2626,#991B1B);color:#fff;font-size:14px;padding:10px 24px}
.btn-secondary{background:rgba(220,38,38,.06);color:#DC2626;border:1px solid rgba(220,38,38,.15)}

/* Card */
.card{background:rgba(255,255,255,.75);border:1px solid rgba(220,38,38,.12);border-radius:14px;padding:18px 20px;backdrop-filter:blur(8px)}
.card-title{font-size:13px;font-weight:700;color:#450a0a;margin-bottom:12px;display:flex;justify-content:space-between}

/* Inputs */
.form-group{margin-bottom:12px}
.form-label{display:block;font-size:11px;font-weight:600;color:#7f1d1d;margin-bottom:4px}
.form-input{width:100%;border:1.5px solid rgba(220,38,38,.15);border-radius:9px;padding:9px 12px;font-size:13px;background:rgba(255,255,255,.8);color:#450a0a;transition:border-color .2s}
.form-input:focus{outline:none;border-color:#DC2626}
.form-input.mono{font-family:monospace}

/* Stats */
.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:10px}
.stat-box{background:rgba(255,255,255,.9);border:1.5px solid rgba(220,38,38,.1);border-radius:12px;padding:14px 16px;text-align:center}
.stat-val{font-size:24px;font-weight:900;letter-spacing:-.02em;line-height:1.2;color:#450a0a}
.stat-label{font-size:10px;font-weight:700;color:#7f1d1d;text-transform:uppercase;letter-spacing:.05em}

/* Latency Row */
.latency-row{display:flex;gap:4px;background:rgba(255,255,255,.9);border:1.5px solid rgba(220,38,38,.1);border-radius:12px;padding:6px;margin-bottom:16px}
.lat-item{flex:1;text-align:center;padding:8px 0;border-radius:8px;background:rgba(220,38,38,.03)}
.lat-val{font-size:14px;font-weight:800;font-family:monospace;color:#991b1b;margin-bottom:2px}
.lat-label{font-size:9px;font-weight:700;color:#7f1d1d;text-transform:uppercase}

/* Results Table */
.res-table{width:100%;border-collapse:collapse;font-size:12px}
.res-table th{text-align:left;padding:8px 10px;font-size:10px;font-weight:700;color:#7f1d1d;text-transform:uppercase;border-bottom:1px solid rgba(220,38,38,.1)}
.res-table td{padding:8px 10px;border-bottom:1px solid rgba(220,38,38,.05);color:#450a0a}
.res-table tr:hover{background:rgba(220,38,38,.02)}
.status-ok{color:#059669;font-weight:800;background:#D1FAE5;padding:2px 6px;border-radius:4px;font-size:10px}
.status-err{color:#DC2626;font-weight:800;background:#FEE2E2;padding:2px 6px;border-radius:4px;font-size:10px}

/* Progress */
.progress-wrap{display:none;margin-top:20px;text-align:center}
.progress-spinner{width:30px;height:30px;border-radius:50%;border:3px solid rgba(220,38,38,.2);border-top-color:#DC2626;animation:spin 1s linear infinite;margin:0 auto 10px}
.progress-text{font-size:13px;font-weight:700;color:#991B1B;animation:pulse 1.5s infinite}

@keyframes spin{to{transform:rotate(360deg)}}
@keyframes pulse{0%,100%{opacity:.6}50%{opacity:1}}

/* Layout */
.body{flex:1;overflow-y:auto;padding:20px;display:flex;gap:20px}
.col-left{width:300px;flex-shrink:0;display:flex;flex-direction:column;gap:16px}
.col-right{flex:1;display:flex;flex-direction:column;gap:16px;min-width:0}