// overlays
Modal dialog
A window layered over the page that blocks interaction with everything behind it until it is dismissed.
A focused decision or short task that genuinely must be resolved before the user continues: confirming a destructive action, a short required form, an interruption the user must acknowledge before anything else makes sense.
Transient messages ("Saved", "Copied"), error or validation feedback, loading states, or anything complex enough to deserve its own page. A modal for a success toast traps the user in a dialog to tell them everything worked.
A toast for transient confirmation (it informs without blocking), an inline error for validation (it sits next to the field that is wrong), a dedicated page for any flow with more than a couple of steps.