Support many-to-many group_ids in the API client and admin UI, and let admins save definition edits from the header with unsaved-change detection and redirect back to the library. Co-authored-by: Cursor <cursoragent@cursor.com>