:root { --bg: #f5f6f8; --card: #fff; --ink: #1d232b; --muted: #5d6875; --line: #dde2e8; --accent: #1f6feb;
        --ok: #1a7f37; --warn: #9a6700; --bad: #cf222e; }
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.45 system-ui, sans-serif; background: var(--bg); color: var(--ink); }
header { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px;
         background: var(--card); border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; color: var(--ink); text-decoration: none; }
nav { display: flex; gap: 12px; align-items: center; }
main { max-width: 1100px; margin: 16px auto; padding: 0 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin-bottom: 16px; overflow-x: auto; }
.narrow { max-width: 420px; margin: 40px auto; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
label { display: block; margin: 8px 0; }
input[type=text], input:not([type]), input[type=password] { width: 100%; padding: 6px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row input:not([type=checkbox]) { flex: 1; min-width: 160px; }
.stack > * { margin: 6px 0; }
.inline { display: inline; }
button, .button { padding: 6px 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer;
                  color: var(--ink); text-decoration: none; display: inline-block; }
.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.danger { color: var(--bad); }
button[disabled] { opacity: .5; cursor: not-allowed; }
.state { white-space: nowrap; padding: 1px 8px; border-radius: 10px; font-size: 13px; background: #eef1f4; }
.state.running { background: #ddf4ff; } .state.done { background: #dafbe1; color: var(--ok); }
.state.failed { background: #ffebe9; color: var(--bad); } .state.queued { background: #fff8c5; color: var(--warn); }
.error { color: var(--bad); } .warning { color: var(--warn); }
.notice { background: #ddf4ff; padding: 8px; border-radius: 6px; }
.message { max-width: 360px; white-space: pre-wrap; font-size: 13px; color: var(--muted); }
.errors li { font-family: ui-monospace, monospace; font-size: 13px; }
progress { width: 100%; height: 14px; }
.muted { color: var(--muted); font-size: 13px; }
.qr { text-align: center; margin: 12px 0; }
.qr svg { background: #fff; }
.secret { word-break: break-all; }
.codes { columns: 2; font-size: 16px; }
