/* ═══════════ B7 — To-Do List ═══════════ */

.td-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.td-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-left: 3px solid var(--teal);
  border-radius: 7px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.td-item:hover { background: var(--bg); border-color: var(--gold); }

.td-item[data-prio="high"]   { border-left-color: var(--red); }
.td-item[data-prio="normal"] { border-left-color: var(--teal); }
.td-item[data-prio="low"]    { border-left-color: var(--muted2); }

.td-item.td-done {
  opacity: 0.55;
}
.td-item.td-done .td-content {
  text-decoration: line-through;
}

.td-check {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  flex-shrink: 0;
  cursor: pointer;
}

.td-content {
  flex: 1;
  min-width: 0;
  font-size: 0.82rem;
  color: var(--fg);
  line-height: 1.4;
}

.td-auto {
  font-size: 0.85rem;
  cursor: help;
  opacity: 0.6;
  flex-shrink: 0;
}

.td-prio {
  font-size: 0.66rem;
  font-weight: 800;
  padding: 2px 7px;
  background: var(--bg);
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  flex-shrink: 0;
}

.td-due {
  font-size: 0.7rem;
  color: var(--muted2);
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .td-item {
    flex-wrap: wrap;
  }
  .td-content {
    width: 100%;
    order: 100;
  }
}
