Controlling almost-invariant halfspaces in both real and complex settings