WARNING: This page is about a different car, the 2025 BMW M4, 2024 BMW M4, 2023 BMW M4, 2022 BMW M4, and 2021 BMW M4. However, it is still accessible from the selected car via links, so may be relevant.
Insert the glass slide/tilt sunroof panel (2) from the top.
Replace screws (1).
Parts:
Screws
Screw in the bolts (1) on the left and right, do not tighten.