:root {
  color-scheme: light;
  font-family: "Segoe UI Variable", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  font-size: 16px;
  color: #202426;
  background: #eef1f2;
  --brand: #17685b;
  --brand-dark: #0d5046;
  --line: #d7dcde;
  --muted: #687176;
  --danger: #a43b32;
}
* { box-sizing: border-box; }
body { margin: 0; padding: 0 0 28px; min-height: 100dvh; background: #eef1f2; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, p { margin: 0; }
.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-top));
  background: #fff; border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mark {
  width: 36px; height: 36px; display: grid; place-items: center;
  color: #fff; background: var(--brand); font-weight: 750; border-radius: 6px; flex: none;
}
h1 { font-size: 17px; }
.brand p, .muted, .label, .count { color: var(--muted); font-size: 13px; }
.btn { min-height: 40px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-weight: 650; }
.btn.primary { color: #fff; background: var(--brand); border-color: var(--brand); }
.btn.tiny { min-height: 32px; padding: 4px 10px; font-size: 13px; }
.btn.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn.skip.active { background: #b54b37; border-color: #b54b37; }
main { display: grid; gap: 18px; padding: 14px 14px 0; }
.card, .item {
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 13px;
}
.focus strong { display: block; font-size: 20px; margin: 4px 0; }
.section-head { display: flex; align-items: baseline; gap: 8px; margin: 0 2px 8px; }
h2 { font-size: 14px; color: var(--muted); font-weight: 650; }
.list { display: grid; gap: 8px; }
.item { display: grid; gap: 8px; }
.item.done .title, .item.skipped .title { text-decoration: line-through; color: var(--muted); }
.item-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.title { font-weight: 650; }
.when { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; flex: none; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.add-row { display: flex; gap: 8px; margin-top: 8px; }
.add-row input, textarea, .gate input {
  width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
textarea { resize: vertical; }
.gate { padding: 24px 16px; display: grid; gap: 12px; }
.gate form { display: grid; gap: 8px; }
.error { color: var(--danger); }
.status {
  position: sticky; bottom: 0; margin: 12px 14px 0; padding: 10px 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 8px; text-align: center;
}
.check-row { display: flex; align-items: center; gap: 10px; }
.check-row input { width: 22px; height: 22px; }
.empty { color: var(--muted); padding: 10px 4px; }
