{#
    Per-notification-type visuals: Phosphor icon + accent colour.

    The accent colour is emitted as a raw hex and applied via inline `style`
    (never an interpolated Tailwind class) so it survives the app-side Tailwind
    purge. Icons are limited to names already referenced elsewhere in the admin
    so `<twig:ux:icon>` never hits a missing-icon.
#}
{% macro icon(type) %}
    {%- set icons = {
        account_activated: 'ph:user-circle-check',
        account_created: 'ph:user-circle-plus',
        account_registration_help: 'ph:user-circle',
        user_invitation: 'ph:envelope-open',
        user_password: 'ph:key',
        host_created: 'ph:storefront',
        attendance_confirmed: 'ph:check-circle',
        attendance_newly_confirmed: 'ph:confetti',
        attendance_decisions: 'ph:dice-three',
        attendance_withdrawn: 'ph:x-circle',
        attendance_email_confirmation: 'ph:envelope',
        attendance_completion: 'ph:seal-check',
        attendance_withdraw_confirmation: 'ph:user-minus',
        remind_attendance: 'ph:alarm',
        offer_cancelled: 'ph:calendar-x',
        offer_relaunched: 'ph:arrow-counter-clockwise',
        offer_finalized: 'ph:paper-plane-tilt',
        offer_completed: 'ph:flag-checkered',
        offer_complete: 'ph:clock-counter-clockwise',
        applications_closed: 'ph:list-checks',
        proofs: 'ph:check-square',
        payment_created: 'ph:receipt',
        comment: 'ph:chat-circle-dots',
    } -%}
    {{- icons[type]|default('ph:envelope') -}}
{% endmacro %}

{% macro hex(type) %}
    {%- set colors = {
        offer_cancelled: '#b03a2e',
        offer_relaunched: '#2f6f57',
        attendance_withdrawn: '#b03a2e',
        attendance_confirmed: '#2f6f57',
        attendance_newly_confirmed: '#2f6f57',
        attendance_email_confirmation: '#2a5eaa',
        attendance_completion: '#2a5eaa',
        attendance_withdraw_confirmation: '#b03a2e',
        remind_attendance: '#9a6a1e',
        attendance_decisions: '#6b4a9a',
    } -%}
    {{- colors[type]|default('#54514b') -}}
{% endmacro %}
