Right-Edge Settings Drawer
The workhorse: overlay, focus trap, Escape and overlay-click to close, sticky footer. The page stays visible for orientation but inert.
Create a right-edge modal slide-over for settings: 420px wide, sliding from the right over 250ms ease-out with a 40% black overlay fading behind it. role="dialog" with aria-modal="true" and aria-labelledby to the title, focus moves to the close button on open, Tab is trapped inside, Escape and overlay click both close and restore focus to the trigger. Lock body scroll with scrollbar-width compensation so the page does not shift. Structure: header with title and close icon, scrollable body with three labeled sections, sticky footer with Cancel and Save pinned at the bottom. On viewports under 640px, the drawer is full-width stopping 24px short of the left edge so the page peeks through. Animate transform only, honor prefers-reduced-motion, close on route change, and unsaved-changes guard that asks before closing while the form is dirty.




