Keep going on the last resort principles. Take care of yourself. Do not beg, plead... Just find your own way to be content.
Take care of your daughter. Have some fun with her so that she does not focus on her mom's behavior. Do not say bad things about W to D. This will make D feel worse.
I can imagine that you are having a hard time. Invite some good friends over and enjoy a meal or do something fun. Try not to spend your time complaining to them as much as possible.
Sounds like you have been working on some of your own behaviours. Keep up the good work!