.todos { max-width: 1160px; margin: 0 auto; padding-bottom: 32px; }
.todo-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.todo-heading h1 { margin: 0; font-size: 25px; }
.todo-eyebrow { margin: 0 0 5px; color: var(--muted); font-size: 11px; letter-spacing: 1px; }
.todo-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.todo-tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 11px 2px; color: var(--muted); }
.todo-tabs button.on { color: var(--accent); border-bottom-color: var(--accent); font-weight: 700; }
.todo-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.todo-filters { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.todo-filters input { flex: 1; min-width: 180px; }
.todo-filters input, .todo-filters select, .todo-field input, .todo-field select, .todo-field textarea { border: 1px solid var(--line); border-radius: 5px; padding: 8px 10px; background: var(--panel); color: var(--ink); }
.todo-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 12px; }
.todo-section-heading h2 { font-size: 16px; margin: 0; }
.todo-hint { margin: 6px 0; color: var(--muted); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.todo-criteria { margin: 12px 0 18px; }
.todo-row, .todo-warning { display: flex; align-items: flex-start; gap: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 18px; margin-bottom: 12px; }
.todo-row-main { flex: 1; min-width: 0; }
.todo-row h3, .todo-warning h3 { margin: 0 0 8px; font-size: 15px; overflow-wrap: anywhere; }
.todo-row-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 11px; color: var(--muted); }
.todo-state, .todo-priority, .todo-severity { font-size: 11px; white-space: nowrap; }
.todo-state { border-radius: 4px; padding: 3px 7px; background: var(--info-bg); color: var(--info); }
.todo-state-in_progress { background: var(--sel-bg); color: var(--accent); }
.todo-state-blocked { background: var(--warn-bg); color: var(--warn); }
.todo-state-done { background: var(--ok-bg); color: var(--ok); }
.todo-note { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.65; margin: 8px 0; }
.todo-message { color: var(--bad); white-space: pre-wrap; font-size: 13px; margin: 12px 0; }
.todo-message:empty { display: none; }
.todo-empty { padding: 28px; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); text-align: center; }
.todo-more { display: block; margin: 18px auto; }
.todo-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.todo-metrics > div { background: var(--panel); border: 1px solid var(--line); border-radius: 7px; padding: 14px; }
.todo-metrics span { display: block; font-size: 12px; color: var(--muted); }
.todo-metrics strong { display: block; margin-top: 5px; font-size: 25px; }
.todo-notice { padding: 12px 14px; background: var(--warn-bg); border-left: 3px solid var(--warn); border-radius: 4px; color: var(--warn); font-size: 13px; line-height: 1.6; }
.todo-warning-critical { border-left: 3px solid var(--bad); }
.todo-warning-warning { border-left: 3px solid var(--warn); }
.todo-warning-info { border-left: 3px solid var(--info); }
.todo-warning-critical .todo-severity { color: var(--bad); }
.todo-warning-warning .todo-severity { color: var(--warn); }
.todo-warning-info .todo-severity { color: var(--info); }
.todo-reasons { padding-left: 18px; font-size: 12px; line-height: 1.7; margin: 8px 0; }
.todo-dialog { max-width: 700px; width: calc(100% - 32px); max-height: 90vh; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--ink); padding: 0; }
.todo-dialog::backdrop { background: rgba(0, 0, 0, .35); }
.todo-dialog-body { padding: 24px; }
.todo-dialog h2 { font-size: 19px; margin: 0 0 18px; }
.todo-field { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; font-size: 12px; }
.todo-field > span { font-weight: 600; }
.todo-field textarea { resize: vertical; }
.todo-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.todo-history { margin: 15px 0; border: 1px solid var(--line); padding: 12px; border-radius: 6px; }
.todo-history summary { cursor: pointer; font-size: 13px; }
.todo-history ol { list-style: none; padding: 0; }
.todo-history li { border-bottom: 1px solid var(--line); margin-bottom: 9px; padding-bottom: 9px; font-size: 12px; }
.todo-history time { color: var(--muted); display: block; margin: 6px 0; }
.todo-event-change { margin: 10px 0; border-left: 2px solid var(--line); padding-left: 12px; }
.todo-event-change h3 { font-size: 12px; margin: 12px 0 6px; }
.todo-event-change dl { margin: 0; }
.todo-event-change dl > div { display: flex; gap: 10px; margin: 5px 0; }
.todo-event-change dt { flex: 0 0 45px; color: var(--muted); }
.todo-event-change dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; min-width: 0; }
@media (max-width: 760px) {
  .todo-heading { align-items: flex-start; }
  .todo-heading h1 { font-size: 22px; }
  .todo-row, .todo-warning { flex-wrap: wrap; }
  .todo-row-main { flex-basis: 100%; }
  .todo-section-heading { align-items: flex-start; flex-direction: column; }
  .todo-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .todo-form-grid { grid-template-columns: 1fr; }
  .todo-dialog-body { padding: 18px; }
}
