{# A callout on the page. Not a live region: it is part of the page, so it would be announced on every load. The icon's visually-hidden name says the tone ("Warning"), so the meaning does not rest on colour. Dismissal is a server round trip: a small POST form with the CSRF token to the app's route, which records it and redirects back. #}
{{ icon(icon_name, label=t("alert-" ~ tone)) }}
{%- if title %}

{{ title }}

{% endif %}
{{ message }}
{% if dismiss_url %} {# nosemgrep: django-no-csrf-token — Flask app; CSRF is handled by {{ csrf_field() }} below. #}
{{ csrf_field() }}
{% endif %}