:root {
  --bg: #f4f6f8;
  --card: #ffffff;
  --ink: #1f2933;
  --muted: #6b7280;
  --line: #e2e8f0;
  --brand: #0b6b5f;
  --error: #b91c1c;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
}
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .75rem 1.25rem; background: var(--brand); color: #fff;
}
.topbar a, .topbar .link { color: #fff; }
.brand { font-weight: 600; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 1.5rem; margin: 1.25rem auto; max-width: 960px;
}
.card.narrow { max-width: 420px; margin-top: 6vh; }
h1 { margin-top: 0; font-size: 1.4rem; }
h2 { font-size: 1.1rem; margin-top: 1.5rem; }
.muted { color: var(--muted); }
.error { color: var(--error); font-weight: 600; }
.hidden { display: none; }
code { background: #eef2f4; padding: .1rem .35rem; border-radius: 4px; }
label { display: block; margin: .75rem 0; font-weight: 600; }
input[type=password], input[type=number], select {
  display: block; margin-top: .35rem; padding: .5rem; width: 100%;
  border: 1px solid var(--line); border-radius: 6px; font: inherit;
}
input.small { width: 8rem; display: inline-block; }
button, .button {
  display: inline-block; background: var(--brand); color: #fff; border: 0;
  padding: .6rem 1rem; border-radius: 6px; font: inherit; cursor: pointer;
  text-decoration: none;
}
button.link { background: none; padding: 0; text-decoration: underline; }
.inline { display: inline; }
table { width: 100%; border-collapse: collapse; margin: .5rem 0; }
th, td { text-align: left; padding: .4rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.scroll { overflow-x: auto; max-width: 100%; }
.scroll table { min-width: 640px; }
.stats { display: flex; gap: 2rem; flex-wrap: wrap; }
.stats dt { color: var(--muted); font-size: .85rem; }
.stats dd { margin: 0; font-size: 1.6rem; font-weight: 600; }
.actions { margin-top: 1.5rem; display: flex; gap: 1rem; align-items: center; }
.pill { padding: .15rem .5rem; border-radius: 999px; background: #e5e7eb; font-size: .8rem; }
.pill-done { background: #bbf7d0; }
.pill-running { background: #fde68a; }
.pill-error { background: #fecaca; }
