:root { --ink:#1d2433; --muted:#667085; --line:#e4e7ec; --bg:#f7f8fa; --accent:#3644af; --fail:#b42318; --warn:#b54708; --pass:#067647; }
* { box-sizing: border-box; }
body { margin:0; font:15px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color:var(--ink); background:var(--bg); }
a { color:var(--accent); }
.top { display:flex; justify-content:space-between; align-items:center; padding:14px 28px; background:#fff; border-bottom:1px solid var(--line); }
.brand { font-weight:700; text-decoration:none; color:var(--ink); }
.brand span { color:var(--accent); font-weight:600; }
nav a { margin-left:20px; text-decoration:none; color:var(--ink); }
.wrap { max-width:1100px; margin:28px auto; padding:0 24px; }
h1 { font-size:24px; margin:0 0 6px; }
h2 { font-size:18px; margin:28px 0 8px; }
.lead { color:var(--muted); margin-top:0; }
.muted { color:var(--muted); }
.card { background:#fff; border:1px solid var(--line); border-radius:10px; padding:20px 22px; margin:14px 0; }
.card h2 { margin-top:0; }
.narrow { max-width:420px; }
label { display:block; margin:0 0 14px; font-weight:600; font-size:14px; }
input, textarea, select { display:block; width:100%; margin-top:6px; padding:9px 11px; font:inherit; font-weight:400; border:1px solid #cfd4dc; border-radius:7px; background:#fff; }
button, .btn { display:inline-block; padding:9px 18px; border:0; border-radius:7px; background:var(--accent); color:#fff; font:inherit; font-weight:600; text-decoration:none; cursor:pointer; }
button.secondary, .btn.secondary { background:#fff; color:var(--accent); border:1px solid var(--accent); }
button:disabled { opacity:.6; cursor:wait; }
.row-head { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; }
.actions { display:flex; gap:10px; align-items:center; }
.actions form { margin:0; }
.flash { background:#ecfdf3; border:1px solid #abefc6; padding:10px 14px; border-radius:8px; }
.notice { background:#fffaeb; border:1px solid #fedf89; padding:10px 14px; border-radius:8px; }
.error { background:#fef3f2; border:1px solid #fecdca; padding:10px 14px; border-radius:8px; color:var(--fail); }
table.grid { width:100%; border-collapse:collapse; background:#fff; border:1px solid var(--line); border-radius:10px; overflow:hidden; }
.grid th, .grid td { text-align:left; padding:10px 12px; border-bottom:1px solid var(--line); vertical-align:top; font-size:14px; }
.grid th { background:#f2f4f7; font-weight:600; }
.grid td.num { text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
.kw .barcell { width:28%; }
.bar { display:block; height:10px; background:var(--accent); opacity:.75; border-radius:3px; margin-top:6px; }
.pill { display:inline-block; padding:1px 9px; border-radius:20px; font-size:12px; font-weight:600; text-transform:uppercase; letter-spacing:.02em; background:#f2f4f7; color:var(--muted); }
.pill.fail { background:#fef3f2; color:var(--fail); }
.pill.warn { background:#fffaeb; color:var(--warn); }
.pill.pass, .pill.done { background:#ecfdf3; color:var(--pass); }
.pill.running { background:#eff8ff; color:#175cd3; }
details { margin:12px 0; }
summary { cursor:pointer; color:var(--accent); font-weight:600; }
.foot { text-align:center; color:var(--muted); font-size:12px; padding:30px 0; }
@media (max-width:700px) { .row-head { flex-direction:column; } nav a { margin-left:12px; } .wrap { padding:0 14px; } }

.steps { margin:8px 0 10px; padding-left:22px; }
.steps li { color:var(--muted); margin:4px 0; }
.steps li.done { color:var(--pass); }
.steps li.done::after { content:" ✓"; }
.steps li.current { color:var(--ink); font-weight:600; }
.steps li.current::after { content:" …"; }
.pill.queued { background:#f2f4f7; color:var(--muted); }
