/* TODO tab (temporary): remove with site/todo/ */
.todo-view { margin-top: 4px; }
.todo-form { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.todo-form input { flex: 1 1 220px; min-width: 0; font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid var(--border);
  border-radius: 8px; background: var(--surface); color: var(--text); }
.todo-form input:focus-visible { outline: none; box-shadow: var(--ring); }
.todo-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.todo-item { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 16px; }
.todo-item input[type="checkbox"] { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--dd-purple); flex: none; }
.todo-body { flex: 1; min-width: 0; }
.todo-title { font-weight: 700; cursor: pointer; }
.todo-meta { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.todo-detail { margin: 8px 0 0; font-size: 14px; color: var(--text); }
.todo-refs { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.todo-refs code { font-size: 12px; background: var(--surface-2); padding: 2px 6px; border-radius: 4px; overflow-wrap: anywhere; }
.todo-item.is-done { opacity: .6; }
.todo-item.is-done .todo-title { text-decoration: line-through; }
.todo-del { flex: none; font-size: 13px; }
.todo-foot { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.todo-active #real-view { display: none !important; }
/* the toggle: a quiet link in the footer's bottom row */
.footer .todo-toggle { margin: 0; padding: 0; border: 0; background: none; font-size: 13px; color: #9d97ae; text-decoration: none; cursor: pointer; }
.footer .todo-toggle:hover, .footer .todo-toggle[aria-pressed="true"] { color: #fff; text-decoration: underline; }
