PR or special PR first
Official Flat 35 foreign-national guidance starts with permanent resident or special permanent resident status. A work visa, student route, or working holiday route should be treated as a gap unless the rules change or a lender confirms a separate product.