I thought the problem with chocolate is theobromine, same effect as you describe, but bitter and comes from cocoa, so less sweet / more expensive chocolate with higher amount of cocoa is actually more dangerous.
But still, as with any poison, the dose is important, this veterinary page says “One ounce of milk chocolate per pound of body weight is a potentially lethal dose in dogs”, so a dog would need to eat 1/16th of its own weight for it to be deadly, even for small dogs that’s more than a whole bar.
I don’t think working overtime has much to do with WFH vs office for most people. We have a lot more WFH here since covid, and the only people I know that work a lot of overtime already did that before WFH was introduced.
For me, WFH means an hour more of free time, as I don’t have to spend it in traffic on my way from and to work.