The gap between the left-wing opposition and conservative Prime Minister Ulf Kristersson’s four-party alliance narrowed to a dead heat in the final days of the campaign.