Buttons inside <form> default to type='submit'. Clicking to collapse/expand a structured prompt field was triggering the form's submit handler, which fires audio generation. Added explicit type='button' to all non-submit buttons in StructuredPromptEditor.