As they slogged through the vote counts, party operatives and lawyers wielded the tactics they are honing for the next contest.