Twin-width VII: groups