:root {
  font-family: system-ui, sans-serif;
  color: #182b22;
  background: #f4f4ec;
  --green: #234d39;
  --muted: #4e6155;
  --line: #dce4d8;
}
* { box-sizing: border-box; }
body { margin: 0; }
.top {
  display: flex; align-items: center; gap: .65rem;
  padding: .85rem max(1rem, calc((100% - 56rem) / 2));
  border-bottom: 1px solid #d7ddcf; font-weight: 750;
}
.mark {
  width: 1.9rem; height: 1.9rem; display: grid; place-items: center;
  color: #fff; background: var(--green); border-radius: .5rem;
}
main { width: min(56rem, calc(100% - 2rem)); margin: clamp(2rem, 6vw, 5rem) auto; }
.intro { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; }
h1 { font-size: clamp(2.45rem, 7vw, 4.45rem); line-height: .98; letter-spacing: -.065em; margin: 0 0 .85rem; }
p { margin: 0; color: var(--muted); }
.progress { display: grid; gap: .45rem; min-width: min(13rem, 100%); font-size: .9rem; font-weight: 650; }
progress { width: 100%; height: .6rem; border: 0; border-radius: 2rem; overflow: hidden; accent-color: var(--green); background: var(--line); }
progress::-webkit-progress-bar { background: var(--line); }
progress::-webkit-progress-value { background: var(--green); }
.board { background: #fff; border: 1px solid var(--line); border-radius: 1.15rem; padding: clamp(1rem, 4vw, 2rem); box-shadow: 0 10px 34px #273b1710; }
label { display: block; margin-bottom: .5rem; font-weight: 700; }
.entry, .toolbar, .actions { display: flex; align-items: center; gap: .6rem; }
input, button { font: inherit; min-height: 2.65rem; border-radius: .55rem; }
input:not([type=checkbox]) { flex: 1; min-width: 0; border: 1px solid #aab8a9; padding: .65rem .75rem; background: #fbfcf8; color: inherit; }
button { cursor: pointer; border: 1px solid var(--line); background: #fff; color: var(--green); padding: .45rem .75rem; font-weight: 650; }
button:hover { background: #edf3e9; }
button:disabled { cursor: wait; opacity: .65; }
button.primary { background: var(--green); color: #fff; border-color: var(--green); }
button.primary:hover { background: #163a29; }
:focus-visible { outline: 3px solid #39785d; outline-offset: 3px; }
.toolbar { justify-content: space-between; flex-wrap: wrap; margin: 2rem 0 .55rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
h2 { font-size: 1.18rem; margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: .25rem; }
.filters button { border-color: transparent; padding: .35rem .55rem; }
.filters [aria-pressed=true] { background: #e3efe1; border-color: #c9dfc5; }
#tasks { list-style: none; margin: 0; padding: 0; }
#status:not(:empty) { padding: .65rem 0; }
#status.error { color: #8a241b; }
.task { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.task:last-child { border-bottom: 0; padding-bottom: 0; }
.task label { display: flex; align-items: center; gap: .55rem; flex: 1 1 13rem; margin: 0; overflow-wrap: anywhere; min-width: 0; }
.task input[type=checkbox] { width: 1.15rem; min-height: 1.15rem; flex: 0 0 auto; accent-color: var(--green); cursor: pointer; }
.task:has(input:checked) .task-title { text-decoration: line-through; color: var(--muted); }
.task form { display: flex; flex-wrap: wrap; gap: .45rem; width: 100%; }
.note { margin: .95rem .25rem; font-size: .85rem; }
@media (max-width: 32rem) {
  .entry { align-items: stretch; }
  .task .actions { margin-left: auto; }
}
