I think it will be a random dynasty of their culture. For example, this very hypothetical situation: if Styria exists and is under PU with Austria and the PU breaks, they might just get another Habsburg. Hungary won't.When a personal union ends, what determines whether the new dynasty is of the same dynasty as that of the senior partner of the recently expired union or a new dynasty?