Engine, parts and class
Build Lab tests the engines and the parts available for the car, sets every part slider, and stops as close as possible to the class limit. For touge and most styles it starts from the lightest chassis, then brings the power down to the class: you get a light car at the class score, not a heavy car that barely fits. CS+ has no cap, so there Build Lab looks for the highest power-to-weight the car can reach.