Refactored UI/ElementOverlay to use Window.setNamedStyle