:root {
  --bg: #f6f7f9;
  --card: #ffffff;
  --text: #16181d;
  --muted: #5f6673;
  --line: #e2e5ea;
  --accent: #2f5bea;
  --accent-text: #ffffff;
  --ok: #1d7a46;
  --warn: #a35f00;
  --bad: #b42318;
  --info: #2f5bea;
  --chip: #eef0f4;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --card: #181b21;
    --text: #e8eaee;
    --muted: #9aa1ad;
    --line: #2a2e36;
    --accent: #5b7cfa;
    --ok: #4cc27f;
    --warn: #e0a040;
    --bad: #f0645a;
    --info: #7d97ff;
    --chip: #232730;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
main { max-width: 760px; margin: 0 auto; padding: 16px; }
main.narrow { max-width: 420px; padding-top: 18vh; }
h1 { font-size: 22px; margin: 0; }
h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 24px 0 8px; }
.top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.muted { color: var(--muted); }
.note { margin-top: 12px; color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
label { display: block; font-weight: 600; margin-bottom: 6px; }
textarea {
  width: 100%; resize: vertical; font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 8px; padding: 10px;
}
textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
button { font: inherit; border-radius: 8px; padding: 8px 14px; cursor: pointer; border: 1px solid var(--line); background: var(--card); color: var(--text); white-space: nowrap; }
button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); font-weight: 600; }
button.ghost { background: transparent; }
button.danger { color: var(--bad); }
button:disabled { opacity: .6; cursor: default; }
.accounts { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.acc { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.acc b { display: block; font-size: 14px; }
.acc span { font-size: 13px; color: var(--muted); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; background: var(--muted); }
.dot.vrij { background: var(--ok); }
.dot.bezig { background: var(--info); }
.dot.limiet { background: var(--warn); }
.task { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; }
.task-head { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; cursor: pointer; }
.task-title { font-weight: 600; overflow-wrap: anywhere; }
.task-meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.badge { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--chip); color: var(--muted); white-space: nowrap; }
.badge.klaar { color: var(--ok); }
.badge.deels, .badge.wacht { color: var(--warn); }
.badge.mislukt, .badge.failed { color: var(--bad); }
.badge.running { color: var(--info); }
.task-body { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; display: none; }
.task.open .task-body { display: block; }
.task-body pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; margin: 0 0 10px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.actions a { color: var(--accent); align-self: center; font-size: 14px; }
.empty { color: var(--muted); padding: 12px 0; }
