<article class="mgne-chat-card mode-{{modeClass}} {{#if outcomeClass}}outcome-{{outcomeClass}}{{/if}}"
  {{#if showApplyButton}}data-damage-total="{{damageTotal}}" data-damage-critical="{{damageCritical}}"{{/if}}>
  <header class="chat-card-header">
    {{#if actorImg}}<img src="{{actorImg}}" alt="{{actorName}}" />{{/if}}
    <div>
      <h3>{{label}}</h3>
      <p class="chat-actor">{{actorName}}</p>
    </div>
  </header>
  <div class="chat-card-body">
    {{#if subtitle}}<p class="chat-subtitle"><strong>{{subtitle}}</strong></p>{{/if}}
    {{#if formula}}<p class="chat-formula"><code>{{formula}}</code></p>{{/if}}
    {{#if outcome}}
    <div class="chat-outcome">
      <span class="chat-outcome-label">{{outcome}}</span>
      <span class="chat-outcome-total">{{total}}</span>
    </div>
    {{else if total}}
    <div class="chat-damage-total">{{total}}</div>
    {{/if}}
    {{#if specialText}}<p class="chat-special">{{specialText}}</p>{{/if}}
    {{#if omenNeutralizeReminder}}<p class="chat-omen-remind chat-omen-neutralize">💡 {{omenNeutralizeReminder}}</p>{{/if}}
    {{#if omenRerollReminder}}<p class="chat-omen-remind">💡 {{omenRerollReminder}}</p>{{/if}}
    {{#if omenMaximized}}<p class="chat-omen-used">★ {{localize "MGNE.Roll.OmenMaximizedDamage"}}</p>{{/if}}
    {{#if showDamageButton}}
    <div class="chat-card-actions">
      <button type="button" class="mgne-roll-damage-btn {{#if damageCritical}}is-critical{{/if}}"
        data-actor-id="{{damageActorId}}"
        data-item-id="{{damageItemId}}">
        <i class="fa-solid fa-burst"></i>
        {{localize "MGNE.Roll.RollDamage"}}
        <span class="dmg-formula">({{damageFormula}}{{#if damageCritical}} ×2{{/if}})</span>
      </button>
    </div>
    {{/if}}
    {{#if showApplyButton}}
    <div class="chat-card-actions chat-apply-actions">
      <select class="mgne-apply-damage-select">
        <option value="">— {{localize "MGNE.Roll.ApplyTo"}} —</option>
      </select>
    </div>
    {{/if}}
  </div>
</article>
