Phase diagram of three-flavor quark matter under compact star constraints