:root {
    --bg: #f5f3ee; --surface: #ffffff; --text: #1f1d1a; --muted: #6b665d; --border: #e3ded3;
    --accent: #2f5d8a; --accent-hover: #244a6e; --ok: #2f7a4b; --bad: #b3322b; --warn: #a3660b;
    color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
    :root { --bg: #17181b; --surface: #212328; --text: #ecebe7; --muted: #a29e95; --border: #34363c; --accent: #7fb0e3; --accent-hover: #a2c7ee; --ok: #6cc28c; --bad: #ef7b73; --warn: #e2b04f; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.top { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--border); background: var(--surface); }
.brand { font-weight: 700; color: var(--text); text-decoration: none; font-size: 1.1rem; }
main { max-width: 760px; margin: 0 auto; padding: 24px 16px 60px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 24px; margin-bottom: 20px; }
.card.narrow { max-width: 380px; margin: 40px auto; }
h1 { margin: 0 0 6px; font-size: 1.6rem; } h2 { margin: 0 0 12px; font-size: 1.15rem; }
.muted, .hint { color: var(--muted); } .hint { font-size: 0.88rem; margin: -6px 0 14px; }
label { display: block; font-weight: 600; margin-bottom: 14px; }
input, textarea, select { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 8px; }
label .muted { font-weight: 400; }
button { font: inherit; cursor: pointer; }
.primary { background: var(--accent); color: var(--surface); border: 0; border-radius: 999px; padding: 11px 24px; font-weight: 700; }
.primary:hover { background: var(--accent-hover); } .primary:disabled { opacity: 0.6; cursor: progress; }
.link { background: none; border: 0; color: var(--accent); padding: 0; }
.msg { padding: 12px 14px; border-radius: 10px; border: 1px solid; }
.msg.error { color: var(--bad); border-color: var(--bad); background: color-mix(in srgb, var(--bad) 8%, transparent); }
code { background: var(--bg); padding: 1px 6px; border-radius: 5px; user-select: all; }
table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--border); }
.table-wrap { overflow-x: auto; }
.badge { font-size: 0.8rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; border: 1px solid currentColor; }
.badge.done { color: var(--ok); } .badge.failed { color: var(--bad); } .badge.running, .badge.queued { color: var(--warn); }
.status { font-weight: 600; }
.steps { list-style: none; padding: 0; margin: 16px 0; }
.steps li { padding: 8px 0 8px 32px; position: relative; border-bottom: 1px dashed var(--border); }
.steps li::before { position: absolute; left: 4px; top: 8px; width: 20px; text-align: center; }
.steps li.done::before { content: "✓"; color: var(--ok); font-weight: 700; }
.steps li.running::before { content: "◌"; color: var(--warn); animation: spin 1.2s linear infinite; }
.steps li.failed::before { content: "✕"; color: var(--bad); font-weight: 700; }
.steps li.skipped::before { content: "–"; color: var(--muted); }
.steps .err { display: block; font-size: 0.86rem; color: var(--bad); }
.steps li.skipped .err { color: var(--muted); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .steps li.running::before { animation: none; } }
#result { border: 1px solid var(--ok); border-radius: 12px; padding: 16px; margin: 12px 0; }
#result dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 10px 0 0; }
#result dt { color: var(--muted); } #result dd { margin: 0; word-break: break-all; }
.log summary { cursor: pointer; color: var(--muted); }
.log pre { max-height: 320px; overflow: auto; font-size: 0.78rem; background: var(--bg); padding: 10px; border-radius: 8px; white-space: pre-wrap; }
@media (max-width: 560px) { .card { padding: 18px; } th:nth-child(4), td:nth-child(4) { display: none; } }
label.check { display: flex; gap: 8px; align-items: baseline; font-weight: 500; margin: -4px 0 16px; }
label.check input { width: auto; margin: 0; }
