.progress { font-weight: 800; font-variant-numeric: tabular-nums; }
.bar { height: 10px; background: var(--field); border-radius: 999px; overflow: hidden; margin-bottom: 10px; }
.bar-fill { height: 100%; background: var(--focus); border-radius: 999px; transition: width .3s; width: 0; }
.tasks { list-style: none; margin: 0; padding: 0; }
.tasks:empty { display: none; }
.tasks#special { margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.task { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; padding: 9px 4px; border-radius: 12px; cursor: pointer; }
.task:hover { background: color-mix(in srgb, var(--field) 60%, transparent); }
.task input { appearance: none; width: 26px; height: 26px; margin: 0; border-radius: 9px; border: 2px solid var(--line); background: var(--card); display: grid; place-items: center; cursor: pointer; padding: 0; }
.task input:checked { background: var(--focus); border-color: var(--focus); }
.task input:checked::after { content: ""; width: 7px; height: 13px; border: solid #fff; border-width: 0 3px 3px 0; transform: translateY(-2px) rotate(45deg); }
.task input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.task .t { font-weight: 700; line-height: 1.3; }
.task .d { display: block; font-size: .85rem; color: var(--muted); font-weight: 500; margin-top: 2px; }
.task .d a { color: var(--good); }
.task.done .t { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent); }
.task .tag { display: inline-block; font-size: .72rem; font-weight: 800; padding: 1px 8px; border-radius: 999px; margin-left: 6px; vertical-align: 2px; background: color-mix(in srgb, var(--accent) 22%, var(--field)); color: var(--warn-ink); }
.task .tag.week { background: var(--field); color: var(--muted); }
.task.soon .tag { background: color-mix(in srgb, var(--bad) 18%, var(--field)); color: var(--bad); }
.hint { font-size: .88rem; color: var(--muted); margin: 0 0 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-btn { font: inherit; font-size: .9rem; font-weight: 700; border: 2px solid var(--line); background: none; color: var(--ink); padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.chip-btn small { color: var(--muted); font-weight: 600; margin-left: 4px; }
.chip-btn[aria-pressed="true"] { border-color: var(--focus); background: color-mix(in srgb, var(--focus) 16%, transparent); }
.chip-btn[aria-pressed="true"]::before { content: "✓ "; color: var(--good); }
details summary { cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary h2 { display: inline; }
details summary h2::after { content: " ▾"; color: var(--muted); font-size: .9em; }
details[open] summary h2::after { content: " ▴"; }
details[open] summary { margin-bottom: 10px; }
.setup-list { list-style: none; padding: 0; margin: 0 0 12px; }
.setup-list li { display: flex; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.setup-list li label { flex: 1; display: flex; gap: 10px; align-items: center; cursor: pointer; }
.setup-list input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--focus); }
.setup-list .del { font: inherit; border: 0; background: none; color: var(--bad); cursor: pointer; font-size: .85rem; }
.setup-list .freq { color: var(--muted); font-size: .8rem; }
.add { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; color: var(--muted); }
.offset { margin-top: 14px; max-width: 360px; }
@media (max-width: 520px) {
  .add { grid-template-columns: 1fr 1fr; }
  .add input { grid-column: 1 / -1; }
}
