:root {
  --bg: #f7f7f5; --card: #fff; --text: #1d1d1b; --muted: #6b6b66; --line: #e3e2dd;
  --accent: #1f6f5c; --accent-text: #fff; --danger: #b3261e; --notice: #fff6d6;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #161615; --card: #20201e; --text: #ecebe6; --muted: #a09f98; --line: #34332f;
    --accent: #4fb39a; --accent-text: #0d1f1a; --danger: #ef7a72; --notice: #3a3420; }
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--bg); color: var(--text); }
header { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--card); }
.logo { font-weight: 700; text-decoration: none; color: var(--text); }
.logo span { color: var(--accent); }
nav { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
nav a { color: var(--text); text-decoration: none; }
main { max-width: 1100px; margin: 0 auto; padding: 16px; }
h1 { font-size: 1.5rem; } h2 { font-size: 1.1rem; margin-top: 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin: 16px 0; }
.narrow { max-width: 520px; margin: 40px auto; }
table { width: 100%; border-collapse: collapse; background: var(--card); }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.small td { font-size: 13px; }
button { font: inherit; padding: 7px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; }
button.primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
button.danger { color: var(--danger); border-color: var(--danger); }
button.link { border: 0; background: none; padding: 0 4px; color: var(--accent); }
button.link.danger { color: var(--danger); }
input, select, textarea { font: inherit; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); max-width: 100%; }
label { display: block; margin: 10px 0; } label input, label textarea { display: block; width: 100%; margin-top: 4px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0; }
form.inline { display: inline; }
.muted { color: var(--muted); font-size: 13px; }
.error { color: var(--danger); }
.notice { background: var(--notice); padding: 10px 12px; border-radius: 8px; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
pre { background: var(--bg); padding: 10px; border-radius: 8px; overflow-x: auto; white-space: pre-wrap; }
.pre { white-space: pre-wrap; }
.select { user-select: all; word-break: break-all; }
.step { border-top: 1px solid var(--line); padding-top: 8px; }
.status, .outcome { font-size: 12px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
.status.PENDING { border-color: #c9a227; } .status.DONE, .outcome.ok { border-color: var(--accent); color: var(--accent); }
.status.FAILED, .status.REJECTED, .outcome.denied, .outcome.error { border-color: var(--danger); color: var(--danger); }
tr.blocked td { opacity: .6; }
