:root { --bg:#f6f8fa; --panel:#fff; --ink:#18222d; --mute:#5b6b7a; --line:#d5dde5; --brand:#0b5fa5; --brand2:#094a82; --ok:#1a7f37; --bad:#b42318; --warn:#9a6700; }
* { box-sizing: border-box; }
body { margin:0; font:15px/1.45 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; background:var(--bg); color:var(--ink); }
.top { display:flex; justify-content:space-between; align-items:center; padding:10px 18px; background:var(--brand); color:#fff; }
.brand { font-weight:650; font-size:17px; }
.tag { font-weight:400; font-size:12px; opacity:.85; margin-left:8px; }
.who { display:flex; gap:10px; align-items:center; font-size:13px; }
main { padding:16px 18px; max-width:1400px; margin:0 auto; min-height:70vh; }
.foot { padding:14px 18px; color:var(--mute); font-size:12px; text-align:center; }
button, select, input, textarea { font:inherit; }
button { background:var(--brand); color:#fff; border:0; border-radius:6px; padding:7px 13px; cursor:pointer; }
button:hover { background:var(--brand2); }
button.ghost { background:transparent; color:var(--brand); border:1px solid var(--line); }
button.ghost:hover { background:#eef4fa; }
.top button.ghost { color:#fff; border-color:rgba(255,255,255,.5); }
.top button.ghost:hover { background:rgba(255,255,255,.12); }
button.danger { background:var(--bad); }
button:disabled { opacity:.5; cursor:default; }
input, select, textarea { border:1px solid var(--line); border-radius:6px; padding:7px 9px; background:#fff; color:var(--ink); }
.card { background:var(--panel); border:1px solid var(--line); border-radius:8px; padding:14px; }
.login { max-width:360px; margin:60px auto; }
.login h1 { font-size:20px; margin:0 0 12px; }
.login label { display:block; margin:10px 0 3px; font-size:13px; color:var(--mute); }
.login input { width:100%; }
.login button { margin-top:14px; width:100%; }
.grid { display:grid; grid-template-columns:260px 1fr; gap:14px; align-items:start; }
@media (max-width:900px){ .grid { grid-template-columns:1fr; } }
.side h2, .pane h2 { font-size:14px; text-transform:uppercase; letter-spacing:.04em; color:var(--mute); margin:0 0 8px; }
.list { list-style:none; margin:0 0 14px; padding:0; }
.list li { padding:7px 9px; border-radius:6px; cursor:pointer; display:flex; justify-content:space-between; align-items:center; gap:8px; }
.list li .badge { flex:none; }
.side select { max-width:100%; width:100%; }
.list li:hover { background:#eef4fa; }
.list li.sel { background:#dcebf8; font-weight:600; }
.list small { color:var(--mute); font-weight:400; }
.row { display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-bottom:10px; }
.row .grow { flex:1; min-width:160px; }
.editor { display:grid; grid-template-columns:170px 1fr; gap:10px; }
@media (max-width:700px){ .editor { grid-template-columns:1fr; } }
.sections { max-height:420px; overflow:auto; font-size:12px; border:1px solid var(--line); border-radius:6px; padding:4px; background:#fafcfe; }
.sections div { padding:3px 6px; cursor:pointer; border-radius:4px; font-family:ui-monospace,Menlo,Consolas,monospace; }
.sections div:hover { background:#dcebf8; }
textarea.inp { width:100%; height:420px; font:12.5px/1.4 ui-monospace,Menlo,Consolas,monospace; white-space:pre; tab-size:8; resize:vertical; }
.msg { margin:8px 0; padding:8px 10px; border-radius:6px; font-size:14px; }
.msg.err { background:#fdecea; color:var(--bad); border:1px solid #f3c1bc; }
.msg.ok { background:#e8f5ec; color:var(--ok); border:1px solid #b9dfc4; }
.badge { display:inline-block; padding:1px 8px; border-radius:10px; font-size:12px; color:#fff; background:var(--mute); }
.badge.done { background:var(--ok); } .badge.failed, .badge.timeout { background:var(--bad); } .badge.running, .badge.queued { background:var(--warn); }
.tabs { display:flex; gap:4px; border-bottom:1px solid var(--line); margin-bottom:10px; }
.tabs button { background:none; color:var(--ink); border-radius:6px 6px 0 0; border:1px solid transparent; border-bottom:0; }
.tabs button.on { border-color:var(--line); background:#fff; font-weight:600; position:relative; top:1px; }
pre.rpt { background:#0f1720; color:#d9e4ee; padding:12px; border-radius:6px; overflow:auto; max-height:560px; font:12px/1.35 ui-monospace,Menlo,Consolas,monospace; }
.chartbox canvas { width:100%; height:320px; border:1px solid var(--line); border-radius:6px; background:#fff; }
.kv { display:flex; gap:18px; flex-wrap:wrap; font-size:13px; color:var(--mute); margin-bottom:8px; }
.kv b { color:var(--ink); }
a.dl { display:inline-block; margin:4px 10px 4px 0; color:var(--brand); }
.muted { color:var(--mute); }
.grid > *, .editor > * { min-width:0; }
.card { max-width:100%; min-width:0; }
textarea.inp, pre.rpt, .sections { max-width:100%; box-sizing:border-box; }
html, body { overflow-x:hidden; }
@media (max-width:700px){ .row .grow { flex:1 1 100%; min-width:0; } .grid, .editor { grid-template-columns:minmax(0,1fr); } }
