/* Tasks: calm white lanes (Now, Soon, Someday) with simple cards. Colour is used sparingly:
   a dot per lane, and a thin stripe plus symbol for each task's category. */

.task-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .8rem; margin: 1rem 0 1.2rem; }
.cat-select { width: auto; margin: 0; padding: .45rem .9rem; border-radius: 999px; background: var(--surface); border: 2px solid var(--line); }

.cat-chip {
  display: inline-flex; align-items: center; gap: .35rem; margin: 0; cursor: pointer;
  padding: .25rem .75rem .25rem .5rem; border-radius: 999px; border: 2px solid transparent;
  background: color-mix(in srgb, var(--cat) 35%, var(--surface)); color: var(--text);
  font: inherit; font-size: .85rem; font-weight: 500;
}
.cat-chip.on { background: var(--cat); border-color: var(--text); }
.cat-chip.dim { opacity: .5; }
.cat-chip.static { cursor: default; border-color: transparent; }
.cat-chip input { position: absolute; opacity: 0; width: 1px; }
.cat-chip:has(input:checked) { background: var(--cat); border-color: var(--text); }

/* Lanes */
.lanes { display: grid; gap: 1rem; align-items: start; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.lane { background: color-mix(in srgb, var(--surface) 60%, transparent); border-radius: 24px; padding: 1rem; }
.lane h2 { display: flex; align-items: center; gap: .5rem; margin: 0 0 .8rem; font-size: 1.05rem; }
.lane-dot { width: .7rem; height: .7rem; border-radius: 50%; background: var(--lane); }
.count { color: var(--muted); font-weight: 400; font-size: .9rem; }
.empty { color: var(--muted); text-align: center; margin: .8rem 0; }
.empty.big { font-size: 1.1rem; padding: 2rem 0; }

/* Task card */
.task {
  display: grid; grid-template-columns: auto 1fr auto; gap: .1rem .7rem; align-items: center;
  background: var(--surface); border-radius: 16px; padding: .65rem .8rem; margin-bottom: .5rem;
  border-left: 4px solid var(--cat); cursor: pointer;
  box-shadow: 0 2px 8px -4px rgb(80 40 20 / .18);
  transition: box-shadow .2s;
}
.task:hover, .task:focus-visible { box-shadow: 0 6px 16px -8px rgb(80 40 20 / .35); outline: none; }
.task h3 { margin: 0 0 .15rem; font-size: .98rem; font-weight: 500; line-height: 1.3; }
.task-side { display: flex; align-items: center; gap: .4rem; }
.task.is-done { opacity: .55; }
.task.is-done h3 { text-decoration: line-through; }

.cat-dot { width: 2rem; height: 2rem; display: grid; place-items: center; background: color-mix(in srgb, var(--cat) 45%, var(--surface)); font-size: .95rem; }
.task-meta { display: flex; flex-wrap: wrap; gap: .2rem .6rem; align-items: center; font-size: .82rem; }

/* Due date as plain coloured text: red when late, orange when close, otherwise grey */
.due { font-size: .82rem; color: var(--muted); }
.due.late { color: #b3392b; font-weight: 600; }
.due.close { color: #b0661c; font-weight: 600; }
.quick { font-size: .85rem; }

.people { display: inline-flex; }
.face {
  width: 1.9rem; height: 1.9rem; display: inline-grid; place-items: center; margin-right: -.35rem;
  background: var(--profile); font-size: .7rem; font-weight: 600; border: 2px solid var(--surface);
}
.face.me { background: var(--core); }
.needs { font-size: .8rem; border: 2px dashed var(--line); border-radius: 999px; padding: .05rem .6rem; color: var(--muted); }
.on-it { font-size: .8rem; color: var(--ok); font-weight: 600; white-space: nowrap; }
.btn.claim { padding: .2rem .75rem; font-size: .85rem; border-color: var(--tasks); color: #3f6d55; background: none; white-space: nowrap; }
.btn.claim:hover { background: color-mix(in srgb, var(--tasks) 20%, var(--surface)); }

.done-list { margin-top: 1.5rem; }
.done-list summary { cursor: pointer; color: var(--muted); font-weight: 500; margin-bottom: .6rem; }

/* Task details */
.task-details h2 { margin-top: .4rem; }
.task-details h3 { margin: 1.2rem 0 .4rem; }
.facts { display: flex; gap: .5rem; flex-wrap: wrap; }
.who-list { display: flex; flex-wrap: wrap; gap: .6rem; }
.person { display: inline-flex; align-items: center; gap: .55rem; }
.person .face { margin: 0; }
.actions.left { margin-top: .8rem; }
.actions select { width: auto; margin: 0; border-radius: 999px; padding: .45rem .9rem; }
.notes { list-style: none; padding: 0; margin: .3rem 0 .6rem; display: grid; gap: .5rem; }
.notes li { background: var(--bg); border-radius: 18px; padding: .5rem .8rem; }
.note-form { display: flex; gap: .5rem; align-items: center; }
.note-form input { margin: 0; }

.new-task .cat-pick { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }

@media (max-width: 640px) {
  .lane { padding: .7rem; }
  .cat-select { flex: 1; }
}

.btn.link.danger-link { color: var(--danger); }

/* Weekly cleaning: pick the day you'll do it */
.day-pick { display: grid; grid-template-columns: repeat(7, 1fr); gap: .35rem; margin: .6rem 0 1rem; }
.day-pick .btn { display: grid; justify-items: center; padding: .45rem 0; border-radius: 14px; font-size: .8rem; }
.day-pick .btn b { font-size: 1.05rem; }
.day-pick .btn.past { opacity: .4; }
.planned { font-size: .82rem; font-weight: 600; color: #3f6d55; }
