Loot Editor controls render fully on first open (Save bottom-left, Discard bottom-right, Rolls, etc.) — no initial click needed.
Right-click on an item opens the Amount editor on the first click; no more double-click behavior.
UI now refreshes instantly after edits (toggle enabled, adjust weight, add from hand, tweak rolls), and the Save button lore reflects unsaved changes immediately.
Changed
Replaced the Back arrow with an explicit red Discard button at the bottom-right.
Edits are applied to a cloned draft; pressing Discard returns without saving and the on-close handler will not persist the clone.
Internal
Reordered GUI build so panes are added before being populated and gui.update() is called at the end of the initial build to ensure a complete first render.
Guard save-on-close with discardRequested to avoid persisting discarded edits.
Rebuild controls after actions like Add-from-hand and Rolls adjustments to keep the UI state accurate.