I'm new to the forum and unfortunately my first post isn't going to be a cheerful one. My gorgeous little pinus mugo has been in care with a friend for ~4 years as I have been extremely busy with work and other commitments. When I last saw it, the tree was going beautifully, very full/dense branches and foliage, lovely colour and lustre to the needles, fitting its pot nicely etc. However now... as you can see, it's not doing so well

My questions are this:
1) Do you think this bonsai can recover to full health?
2) Will it ever return to a pleasing aesthetic, or will it always be a bit sparse?
I have already done a light prune, but I'm leaving repotting until spring as I don't want to stress it out too much. However as you can see it is just about bursting out of that pot and I wonder if it can hold on for that long? Any advice would be greatly appreciated! I feel terrible for the condition the tree is in and want to help it recover as much as I can. I don't mind if it's never going to be a stunning tree- I just want it to be healthy and bring back a touch of its former glory.
Additional info: the tree is about 21 years old now and I got it when it was around 10, I'm not 100% sure as it came from a nursery where the staff were not entirely sure of the age.
Photos of Pinus Mugo (as of today)