The custom inline overlay was mounted inside the SettingsLayout grid, so the fixed positioning resolved against a transformed ancestor and the modal rendered top-aligned and full-width. Use the shared Modal (portal to body) for a correctly centered card; keep the tauri-styled form body + permission accordions as its children.