Keeping muscle while losing body fat depends on a manageable energy deficit, resistance training, adequate protein and recovery, with progress judged beyond the scales.