/* 할일 목록 (js/features/list.js): 묶음 제목, 한 줄 = 체크 동그라미 + 제목·기한 */
.sec h2 {
  display: flex; align-items: center; gap: 6px;
  margin: 14px 2px 6px; font-size: .9rem; color: var(--muted); font-weight: 600;
}
.sec h2 .n { font-weight: 400; }
.sec-late h2 { color: var(--late); }
.tasks { list-style: none; margin: 0; padding: 0; background: var(--card); border-radius: var(--radius); }
.task { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); }
.task:last-child { border-bottom: 0; }
.task .check {
  flex: 0 0 auto; width: 52px; border: 0; background: none; padding: 0;
  display: grid; place-items: center;
}
.task .check::before {
  content: ""; width: 24px; height: 24px; border-radius: 50%;
  border: 2.5px solid var(--m); box-sizing: border-box;
}
.task.is-done .check::before {
  background: var(--m) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.task .body {
  flex: 1; min-width: 0; text-align: left; border: 0; background: none;
  padding: 12px 14px 12px 0; display: flex; flex-direction: column; gap: 3px;
}
.task .title { font-size: 1.02rem; overflow-wrap: anywhere; }
.task.is-done .title { color: var(--muted); text-decoration: line-through; }
.task .meta { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: .82rem; color: var(--muted); }
.task .owner {
  padding: 1px 8px; border-radius: 999px; font-weight: 600;
  background: color-mix(in srgb, var(--m) 16%, transparent);
  color: color-mix(in srgb, var(--m) 75%, var(--ink));
}
.task .due.late { color: var(--late); font-weight: 600; }
.task .bell { font-size: .75rem; }
.empty { text-align: center; color: var(--muted); padding: 28px 0 8px; margin: 0; }

.done-box { margin-top: 8px; }
.done-box summary { padding: 10px 2px; color: var(--muted); font-size: .9rem; cursor: pointer; }
.done-box[hidden] { display: none; }
