Working from bed sounds like the dream until your back files a formal complaint.
The appeal is obvious
No commute, maximum comfort, and the illusion that you are still resting while technically working.
The hidden cost
Poor posture, blurred boundaries between rest and work, and a strange feeling that you never truly left the office because you never truly left the bed.
A better compromise
Keep a dedicated small workspace, even a corner of a room. Your brain needs a physical cue that work has started and, more importantly, that it has ended.