// controls.js -- the custom dropdown / detail-editor / expander control // factories, extracted from app.js for navigability. Inlined raw at the // CONTROLS_J token: these are hoisting function declarations plus the // dropdown popup state, so the token's position preserves execution order. // Custom color dropdown: a real swatch + name + hex per row, since native //