Models of late-type stellar photospheres