Harm and responsibility differentially shape guilt and shame, which in turn drive compensatory behavior to varying extents.