:root { --ink:#1b1f24; --muted:#5b6470; --line:#e2e6ea; --bg:#f6f7f9; --card:#fff; --accent:#0f6fff; --bad:#c62828; --ok:#1b7f3b; --warn:#b26a00; }
* { box-sizing:border-box; }
body { margin:0; font:15px/1.5 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color:var(--ink); background:var(--bg); }
header.top { display:flex; justify-content:space-between; align-items:center; padding:10px 24px; background:var(--card); border-bottom:1px solid var(--line); }
.brand { font-weight:600; color:var(--ink); text-decoration:none; }
nav a, nav .who { margin-left:16px; color:var(--muted); text-decoration:none; }
form.inline { display:inline; margin-left:16px; }
button.link { background:none; border:0; color:var(--accent); cursor:pointer; font:inherit; padding:0; }
main { max-width:1200px; margin:24px auto; padding:0 24px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:8px; padding:20px 24px; margin-bottom:20px; }
.card.narrow { max-width:480px; margin:60px auto; }
h1 { font-size:22px; margin:0 0 12px; } h2 { font-size:17px; margin:0 0 12px; }
.form label { display:block; margin:12px 0 4px; font-weight:500; }
.form input:not([type=checkbox]), .form select, .form textarea { width:100%; padding:8px 10px; border:1px solid var(--line); border-radius:6px; font:inherit; margin-top:4px; }
.form fieldset { border:1px solid var(--line); border-radius:6px; padding:8px 16px 12px; margin:16px 0; }
.form .check { font-weight:400; } .form .check input { margin-right:6px; }
button, .button { display:inline-block; padding:8px 14px; border-radius:6px; border:1px solid var(--line); background:#fff; color:var(--ink); font:inherit; cursor:pointer; text-decoration:none; }
button.primary { background:var(--accent); color:#fff; border-color:var(--accent); margin-top:16px; }
.button { background:var(--accent); color:#fff; border-color:var(--accent); }
button.danger { color:var(--bad); }
.error { color:var(--bad); }
.meta, .notes { color:var(--muted); margin:4px 0; }
table { width:100%; border-collapse:collapse; } th, td { text-align:left; padding:8px 6px; border-bottom:1px solid var(--line); font-size:14px; }
.status { display:inline-block; padding:2px 8px; border-radius:10px; font-size:12px; font-weight:600; background:#eef1f4; color:var(--muted); vertical-align:middle; }
.status.running { background:#e3f0ff; color:var(--accent); } .status.finished { background:#e4f5ea; color:var(--ok); }
.status.failed, .status.stopped { background:#fde8e8; color:var(--bad); } .status.stopping { background:#fff3e0; color:var(--warn); }
.actions { display:flex; gap:12px; margin-top:12px; align-items:center; } .actions form.msg { display:flex; gap:8px; flex:1; }
.actions form.msg input { flex:1; padding:8px 10px; border:1px solid var(--line); border-radius:6px; font:inherit; }
pre.log { background:#0f1419; color:#d6deeb; padding:14px; border-radius:6px; height:520px; overflow:auto; font:12.5px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; white-space:pre-wrap; word-break:break-word; }
pre.done { white-space:pre-wrap; background:#f6f7f9; padding:12px; border-radius:6px; font:13px/1.5 inherit; }
.gallery { display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:10px; }
.gallery img { width:100%; border:1px solid var(--line); border-radius:4px; background:#fff; }
iframe.term { width:100%; height:calc(100vh - 230px); border:1px solid var(--line); border-radius:8px; background:#000; }
