:root {
  --bg: #f6f7f9; --surface: #ffffff; --text: #14171c; --muted: #5d6673; --line: #e2e5ea;
  --accent: #0a6cff; --accent-text: #ffffff; --ok: #12a150; --warn: #e3a008; --danger: #e02424;
  --radius: 12px; --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0e1116; --surface: #171b22; --text: #eef1f5; --muted: #98a2b3; --line: #2a303a; --accent: #4d94ff; }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 var(--font); }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 24px 16px 64px; }
.narrow { max-width: 560px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.muted { color: var(--muted); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.stack > * + * { margin-top: 12px; }
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
input, select, textarea {
  width: 100%; font: inherit; color: inherit; background: var(--bg);
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px;
}
textarea { resize: vertical; min-height: 72px; }
.btn {
  font: inherit; font-weight: 600; border: 1px solid var(--line); background: var(--surface); color: var(--text);
  border-radius: 8px; padding: 8px 14px; cursor: pointer; white-space: nowrap;
}
.btn:hover { border-color: var(--muted); }
a.btn { display: inline-block; text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn.danger { color: var(--danger); }
.btn.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn.small { padding: 4px 9px; font-size: 13px; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--line); }
.pill.live { background: var(--danger); color: #fff; }
.pill.done { background: var(--ok); color: #fff; }
.pill.skipped { opacity: .6; }
kbd { font-family: var(--mono); font-size: 12px; border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; }
