Safari scrolls the page to show a focused field even with the body pinned under a sheet, and does not always undo it when the keyboard closes — most often after "+" in the exercise picker, where the sheet stays open and the sheet's own restore never runs. A window-level guard now realigns the viewports once the keyboard has gone (and again after its dismiss animation), and the sheet restore repeats itself after that animation too.