/*
 * todo.css: the to-do list's own parts (ui/todolist/DESIGN.md), on the object page's frame. Only .td-* classes; every value a token.
 */
.td-row { width: 100%; background: none; border: 0; font: inherit; text-align: left; cursor: pointer; flex-wrap: wrap; }
.cp-item[aria-current='true'] { border-color: var(--accent); }
.td-state { font-size: var(--fs-xs); font-weight: 600; border-radius: var(--r-sm); padding: 1px var(--sp-2); border: 1px solid var(--line-2); color: var(--text-2); min-width: 64px; text-align: center; }
.td-state[data-state='doing'] { color: var(--ok-text); border-color: var(--ok); }
.td-state[data-state='blocked'] { color: var(--danger); border-color: var(--danger); }
[data-theme='light'] .td-state[data-state='blocked'] { color: var(--chip-danger-text); }
.td-state[data-state='later'] { border-style: dashed; }
.td-state[data-state='done'] { color: var(--text-3); }
.td-row[data-state='done'] .cp-item-title { color: var(--text-2); }
.td-who { font-size: var(--fs-sm); color: var(--text-2); }
.td-due { margin-left: auto; font-size: var(--fs-xs); font-family: var(--mono); color: var(--text-3); }
.td-pri { font-size: var(--fs-xs); color: var(--text-3); min-width: 48px; text-align: right; }
.td-pri[data-level='high'] { color: var(--warn); font-weight: 600; }
[data-theme='light'] .td-pri[data-level='high'] { color: var(--chip-warn-text); }
.td-steps { margin: 0 0 var(--sp-3); padding-left: var(--sp-5); font-size: var(--fs-md); color: var(--text); }
.td-steps li { min-height: var(--tap-min); display: flex; align-items: center; gap: var(--sp-2); }
.td-check { color: var(--text-3); }
@media (max-width: 720px) {
  .td-due { margin-left: 0; }
  /* The list shows first on a phone (TDL-7): the counts come after it. */
  .td-glance { order: 2; }
}

/* A focused row shows the same 2 px accent ring as every other control (LAB-3497, TDL-22). */
.td-row:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Mark done sits at the end of its step's line, and wraps under it at phone width (LAB-3493). */
.td-steps li { flex-wrap: wrap; }
.td-mark { margin-left: auto; }
