The forces that caused her loss in the upper Midwest were also at work in places where her campaign sent her far more often and invested huge amounts of money, including Pennsylvania, North Carolina and Florida.