Joules sit in stores and move by pathways. Pick a device, set the supply, and the diagram draws the account on one shared scale: the gold trunk is what came in electrically, and every branch is as tall as the joules leaving by the pathway it is labelled with. The identity is E_in = (into the named store) + (to the surroundings).
The surroundings branch is a deduction, not a measurement: whatever the named branches do not account for is what left to the surroundings, so the balance row is zero by construction.
Widths are joules on one shared scale, so a branch is as tall as its share of the supply; a share thinner than two pixels is drawn at two and the diagram's caption says so.