.todo-add-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 14px;
  align-items: stretch;
}

.todo-input {
  flex: 1 1 200px;
  max-width: none;
}

.todo-stats {
  margin: 0 0 12px;
  font-size: 13px;
  color: #64748b;
}

.todo-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.todo-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "status body actions";
  column-gap: 8px;
  align-items: start;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
}

.todo-item.status-done {
  background: #f8fafc;
}

.todo-status {
  grid-area: status;
  margin: 0;
  padding: 4px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font: inherit;
  font-size: 12px;
  line-height: 1.35;
  cursor: pointer;
  white-space: nowrap;
  align-self: start;
}

.todo-item.status-done .todo-status {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #15803d;
}

.todo-body {
  grid-area: body;
  min-width: 0;
}

.todo-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: #111827;
  word-break: break-word;
  cursor: text;
}

.todo-item.status-done .todo-text {
  color: #94a3b8;
  text-decoration: line-through;
}

.todo-edit-input {
  width: 100%;
  max-width: none;
  padding: 6px 8px;
  border: 1px solid #2563eb;
  border-radius: 6px;
  font: inherit;
  font-size: 15px;
  box-sizing: border-box;
}

.todo-item-actions {
  grid-area: actions;
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  flex-shrink: 0;
  align-self: start;
}

.todo-item-actions .tb-btn {
  padding: 6px 10px;
  font-size: 13px;
  min-height: 0;
  white-space: nowrap;
}

.todo-footer {
  margin-top: 16px;
}
