/* Checklist: a to-do list ticked off one by one */
.td-head { display: flex; align-items: center; gap: 12px; margin: 4px 0 10px; }
/* Pending | Done switch, shared with the To fix list */
.td-seg { flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 16px; background: #ebe4d6; }
.td-seg button { min-height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); box-shadow: none; font-weight: 700; padding: 8px 4px; }
.td-seg button[aria-selected=true] { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(60,45,15,.14); }
.td-seg b { font-variant-numeric: tabular-nums; margin-left: 4px; }
.td-red { color: var(--bad); font-weight: 700; margin: -2px 0 8px; }
.td-age { grid-column: 1; font-size: .85rem; color: var(--muted); }
.td-age:empty { display: none; }
.td-age.isred { color: var(--bad); font-weight: 700; }
.td-item.isred:not(.isdone) { border-left: 4px solid var(--bad); }
.td-topic { margin: 18px 0 6px; font-size: 1rem; }
.td-item { padding: 6px 8px; margin: 8px 0; }
.td-top { display: flex; align-items: flex-start; gap: 4px; }
.td-tick { flex: none; width: 48px; height: 48px; min-height: 48px; padding: 0; background: transparent; display: grid; place-items: center; }
.td-tick span { width: 28px; height: 28px; border-radius: 999px; border: 2px solid var(--muted); display: grid; place-items: center;
                color: transparent; font-weight: 700; line-height: 1; }
.td-tick[aria-pressed=true] span { background: var(--ok); border-color: var(--ok); color: #fff; }
.td-main { flex: 1; min-width: 0; text-align: left; background: transparent; color: var(--text); padding: 12px 6px 10px 2px;
           display: grid; grid-template-columns: 1fr auto; column-gap: 8px; row-gap: 2px; border-radius: 8px; }
.td-main .meta { grid-column: 1; }
.td-chev { grid-column: 2; grid-row: 1; align-self: start; width: 9px; height: 9px; margin: 6px 4px 0 0; border-right: 2px solid var(--muted);
           border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; }
.td-item.isopen .td-chev { transform: rotate(-135deg); margin-top: 10px; }
.td-main b { font-weight: 600; overflow-wrap: anywhere; }
.td-main .meta:empty { display: none; }
.td-item.isdone .td-main b { text-decoration: line-through; opacity: .6; }
.td-item.isdone { border-color: var(--ok); }
.td-more { padding: 0 6px 8px 52px; }
.td-detail { white-space: pre-wrap; margin: 0 0 10px; overflow-wrap: anywhere; }
.td-more .files { list-style: none; padding: 0; margin: 0 0 8px; }
.td-more .files li { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.td-more .files a { flex: 1; min-width: 0; overflow-wrap: anywhere; padding: 10px 0; }
.td-more .files .meta { white-space: nowrap; }
.td-acts { margin-top: 8px; }
.td-acts label.btn { margin: 0; color: var(--brand); font-size: 1rem; display: inline-flex; align-items: center; }
.td-del { color: var(--bad) !important; }
.td-more [data-st]:empty { display: none; }
.td-more [data-st] { margin-top: 8px; }
@media (max-width: 430px) { .td-more { padding-left: 8px; } }
