With all but seven seats declared, the SNP had 57 MSPs, with Labour in second on 17, narrowly ahead of Reform UK on 15.