/* Date and time share one row; the reminder switch stays left of the actions. */
.todo-dialog .todo-schedule-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(128px, .65fr);
  gap: 12px;
  align-items: end;
}

.todo-dialog .todo-dialog-actions {
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.todo-dialog-action-buttons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.todo-dialog .todo-remind-toggle {
  display: inline-flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 4px;
  color: var(--text, #17372e);
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.todo-dialog .todo-remind-toggle input {
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  accent-color: var(--accent, #5c806f);
  cursor: pointer;
}

.todo-dialog .todo-remind-toggle input:disabled {
  cursor: wait;
  opacity: .6;
}

@media (max-width: 520px) {
  .todo-dialog .todo-schedule-row {
    grid-template-columns: minmax(0, 1fr) minmax(112px, .72fr);
    gap: 8px;
  }

  .todo-dialog .todo-dialog-actions {
    align-items: flex-end;
  }

  .todo-dialog .todo-remind-toggle {
    font-size: 12px;
  }

  .todo-dialog-action-buttons {
    gap: 6px;
  }
}
