Fix Windows Update Login Loop with Account Sync Issues - Microsoft Store on Mac: Troubleshooting Checklist-Resolve 502 Bad Gateway Nginx with Terminal Commands

Result check
- Keep one change per test run so you know which step helped.
- Undo temporary changes after the issue is confirmed.