<!-- LOVABLE:BEGIN -->
> [!IMPORTANT]
> This project is connected to [Lovable](https://lovable.dev). Avoid rewriting
> published git history — force pushing, or rebasing/amending/squashing commits
> that are already pushed — as it rewrites history on Lovable's side and the
> user will likely lose their project history.
>
> Commits you push to the connected branch sync back to Lovable and show up in
> the editor, so keep the branch in a working state.
<!-- LOVABLE:END -->

- Keep patient screens in TanStack file routes with a shared EGS shell, so desktop and mobile navigation stay consistent.
- Store patient profiles in Lovable Cloud with owner-only RLS, and protect the profile route with the managed authenticated layout; session history remains temporary and is cleared on account changes.
- Use one root-mounted auth subscriber and user-keyed profile queries to prevent stale private data from crossing accounts.
