{/* The header used to host a pulsing red EmergencyCTA on every
* page. It read as anxious noise on non-emergency screens and
* competed with the main actions. Emergency now lives in the
* sidebar's Tools group (NavItem with urgent flag) where it
* stays one click away without dominating the chrome. The
* deterministic safety engine still routes any R5 input to an
* emergency template at the chat-route level, regardless of
* what UI is visible. */}
{/* Dynamic Content Area */}
{renderContent()}
{/* Right Panel — only rendered for authenticated users.
*
* The right rail is for personal health context (Vitals Today,
* Upcoming meds + appointments). For guests it offered no value
* and competed with the left sidebar's auth card. The whole
* component is now gated, eliminating the 'two sidebars feeling'
* and the duplicate sign-up prompts. */}
{auth.isAuthenticated && (
{}}
/>
)}