:root {
  --ink: #1d2433; --muted: #6b7280; --line: #e5e7eb; --bg: #f6f7f9; --card: #fff;
  --accent: #2f5bea; --ok: #157f3b; --bad: #b42318; --warn: #a15c07;
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); }
main { max-width: 980px; margin: 0 auto; padding: 24px 20px 60px; }
a { color: var(--accent); }
h1 { font-size: 1.6rem; margin: 0 0 6px; }
h2 { font-size: 1.1rem; margin: 0 0 12px; }

.top { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px;
       background: var(--card); border-bottom: 1px solid var(--line); }
.top nav { display: flex; gap: 18px; align-items: center; }
.top nav a { color: var(--ink); text-decoration: none; }
.brand { font-weight: 700; color: var(--ink); text-decoration: none; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; margin: 16px 0; }
.card.narrow { max-width: 380px; margin: 80px auto; }
.step h2 { display: flex; align-items: center; gap: 10px; }
.nr { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
      background: var(--accent); color: #fff; font-size: .85rem; }

label { display: block; margin: 10px 0; font-weight: 500; }
label.check { display: flex; gap: 8px; align-items: center; font-weight: 400; margin: 4px 0; }
input, select, textarea { display: block; width: 100%; margin-top: 4px; padding: 8px 10px; font: inherit;
  border: 1px solid #cfd4dc; border-radius: 7px; background: #fff; }
label.check input { width: auto; margin: 0; }
textarea.mono, pre, code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; align-items: end; }

button, .button { display: inline-block; padding: 8px 14px; border: 1px solid #cfd4dc; border-radius: 7px;
  background: #fff; color: var(--ink); font: inherit; cursor: pointer; text-decoration: none; }
button.primary, .button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
button.danger { border-color: var(--bad); color: var(--bad); }
button.link { border: 0; padding: 0; background: none; color: var(--muted); }
button.link.danger { color: var(--bad); }
button:disabled { opacity: .5; cursor: not-allowed; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.row.between { justify-content: space-between; }
.row form { margin: 0; }

table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); background: #fafbfc; }
td.num, th.num { text-align: right; white-space: nowrap; }
table.small td, table.small th { padding: 6px 10px; }
.card table { border: 0; }

.pill { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: .8rem; background: #eef0f3; color: var(--muted); }
.pill.on, .pill.success { background: #e3f4e8; color: var(--ok); }
.pill.failed { background: #fde8e6; color: var(--bad); }
.pill.running, .pill.queued { background: #e8eefd; color: var(--accent); }

.muted, .hint { color: var(--muted); }
.hint { font-size: .9rem; margin: 4px 0 8px; }
.error { color: var(--bad); white-space: pre-wrap; }
.flash { background: #e8eefd; border: 1px solid #c9d6fb; padding: 10px 14px; border-radius: 8px; }
.warn { background: #fff6e5; border: 1px solid #f5d9a3; color: var(--warn); padding: 10px 14px; border-radius: 8px; }
.facts { display: grid; grid-template-columns: 170px 1fr; gap: 6px 12px; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
pre.report { white-space: pre-wrap; background: #fafbfc; padding: 14px; border-radius: 8px; border: 1px solid var(--line); }
ul.tools { list-style: none; padding: 0; columns: 2; }
.steps-log li { margin: 3px 0; word-break: break-word; }
details summary { cursor: pointer; color: var(--muted); }
