Nicola Sturgeon resigns, but the damage is done.