That, in turn, could see the city lose millions in state affordable housing and transportation funding, get hit with monthly fines of up to $600,000, and even forfeit its land use authority to a court-appointed special master with the power to rewrite San Francisco's housing regulations.