{# Inputs: profile: ProfileSettings — current profile (for .density) page_key: str — e.g., "/holdings"; used for localStorage key selected_account: str — display form, used to preserve filter on submit account_id: int | None — when set, density write is per-account; else all #}