{# Inputs: accounts: list[Account] — every account in the DB account_profiles: dict[int, str] — account_id -> profile slug profile: ProfileSettings — current effective profile (label only) #}