One dialog for both screens: a centred card on desktop that becomes a bottom sheet under 640px, with a handle you can drag down to close. Focus trap, Escape and scrim close, focus returns to the trigger, controlled or uncontrolled, and contained mode for previews. Ships useExitIntent to open it when the cursor leaves through the top of the page.
pnpm dlx shadcn@latest add "https://sunui.synvize.com/r/dialog-sheet.json"