<div class="result-card">
    <h3>@Result.CriticalTableName</h3>
    <div class="result-stats">
        <span class="stat-pill">Severity: @Result.ColumnLabel</span>
        <span class="stat-pill">Roll: @Result.Roll</span>
        @if (!string.IsNullOrWhiteSpace(Result.Group))
        {
            <span class="stat-pill">Variant: @(string.IsNullOrWhiteSpace(Result.GroupLabel) ? Result.Group : Result.GroupLabel)</span>
        }
    </div>

    <CompactCriticalCell
        Description="@Result.Description"
        Effects="@Result.Effects"
        Branches="@Result.Branches" />
</div>

@code {
    [Parameter, EditorRequired]
    public CriticalLookupResponse Result { get; set; } = null!;
}
