Title: Spectrum formation in stars with steady-state extended atmospheres