%!-- Break out of the admin layout's p-6 so the canvas fills edge-to-edge.
56px = h-14 topbar height. --%>
<%!-- ===== Toolbar ===== --%>
<%!-- Back to flows list --%>
← Flows
<%!-- Editable flow name --%>
<%!-- Message type (Phase 11 routing key) --%>
<%= if String.trim(@message_type) != "" do %>
POST /api/v1/messages/<%= String.trim(@message_type) %>
<% else %>
← set message type
<% end %>
<%= if @save_status == :saved do %>
✓ Saved
<% end %>
<%= if @publish_status == :published do %>
✓ Published
<% end %>
<%= for err <- @validation_errors do %>
<%= err %>
<% end %>
<%!-- Flow ID badge + Audit link (edit mode only) --%>
<%= if @flow_id do %>
Audit
id: <%= @flow_id %>
<% end %>