Make light details collapsable and collapsed by default in automation and script editors

+1 after seeing 2022.5 I was expecting to find this inside, and then extremely surprised that this is the closet feature request I can find for it.

Some of my automations are huge. They are as lean as can be, but with often 10 different choices inside all with various conditions etc, scrolling down to find the right one is an absolute nightmare. Desperately need to be able to collapse each section to probably navigate through.