Total Newbie

My dog, Nala, just had her rear right leg amputated, likely due to osteosarcoma. She started limping in May about a week after we agreed to foster her and was diagnosed by the rescue group’s vet with bone and lung cancer. We sought a second opinion from our vet, who uses both Chinese and allopathic medicine, and he believes she may have a bone tumor. We know her lung cancer is encapsulated and slow growing. To make a long story shorter, Nala lost all use of her leg about a month ago and it was amputated yesterday. She also had a large lipoma removed from her chest area directly above her left foreleg. Nala comes home today and I’m scared. I would love advice on how to help her heal and adjust. Additionally, we live in a townhouse and while we know she will be limited to the main floor for a bit, she’s eventually going to have to tackle the stairs. How can we help her? How can we help her learn to do her business outside on three legs? Should we plan on diapers for the first few days? Any and all advice is welcome. TIA. (Pic of Nala was taken yesterday several hours post-surgery.)