{{-- Create / edit AI agent — THE canonical form. Extracted from the team inbox so /devices can open the exact same modal when assigning an agent to a number. A trimmed second copy would drift: this form carries the knowledge base, canned answers, human-handoff rules and voice settings, and an agent created without them behaves differently from one made in the inbox. Requires the page to load the agent-form JS (see resources/js/charts). --}}