@php
    $state = $getState();
    $state = is_array($state) ? $state : [];

    $metrics = is_array($state['metrics'] ?? null) ? $state['metrics'] : [];
    $highlights = is_array($state['highlights'] ?? null) ? $state['highlights'] : [];
    $nextActions = is_array($state['next_actions'] ?? null) ? $state['next_actions'] : [];
    $contextLinks = is_array($state['context_links'] ?? null) ? $state['context_links'] : [];
    $publishBlockers = is_array($state['publish_blockers'] ?? null) ? $state['publish_blockers'] : [];
    $operatorExplanation = is_array($state['operator_explanation'] ?? null) ? $state['operator_explanation'] : [];
    $compressedOutcome = is_array($state['compressed_outcome'] ?? null) ? $state['compressed_outcome'] : [];
    $reasonSemantics = is_array($state['reason_semantics'] ?? null) ? $state['reason_semantics'] : [];
    $customerWorkspaceMode = (bool) ($state['customer_workspace_mode'] ?? false);
    $controlInterpretation = is_array($state['control_interpretation'] ?? null) ? $state['control_interpretation'] : [];
    $governancePackage = is_array($state['governance_package'] ?? null) ? $state['governance_package'] : [];
    $packageAvailability = is_array($governancePackage['availability'] ?? null) ? $governancePackage['availability'] : [];
    $packageTopFindings = is_array($governancePackage['top_findings'] ?? null) ? $governancePackage['top_findings'] : [];
    $packageAcceptedRisks = is_array($governancePackage['accepted_risks'] ?? null) ? $governancePackage['accepted_risks'] : [];
    $packageDecisionSummary = is_array($governancePackage['decision_summary'] ?? null) ? $governancePackage['decision_summary'] : [];
    $packageGovernanceDecisions = is_array($packageDecisionSummary['entries'] ?? null)
        ? $packageDecisionSummary['entries']
        : (is_array($governancePackage['governance_decisions'] ?? null) ? $governancePackage['governance_decisions'] : []);
    $packageDecisionSummaryText = is_string($packageDecisionSummary['summary'] ?? null) ? trim((string) $packageDecisionSummary['summary']) : null;
    $packageDecisionNextAction = is_string($packageDecisionSummary['next_action'] ?? null) ? trim((string) $packageDecisionSummary['next_action']) : null;
    $packageDecisionEmptyState = is_string($packageDecisionSummary['empty_state'] ?? null) ? trim((string) $packageDecisionSummary['empty_state']) : null;
    $controlControls = is_array($controlInterpretation['controls'] ?? null) ? $controlInterpretation['controls'] : [];
    $controlVersion = is_string($controlInterpretation['version_key'] ?? null) ? $controlInterpretation['version_key'] : null;
    $controlDisclosure = is_string($controlInterpretation['non_certification_disclosure'] ?? null)
        ? $controlInterpretation['non_certification_disclosure']
        : null;
    $controlLimitations = is_array($controlInterpretation['limitations'] ?? null) ? $controlInterpretation['limitations'] : [];
    $decisionDirection = is_string($compressedOutcome['decisionDirection'] ?? null)
        ? trim((string) $compressedOutcome['decisionDirection'])
        : null;
    $publicationNextAction = is_string($compressedOutcome['nextActionText'] ?? null) && trim((string) $compressedOutcome['nextActionText']) !== ''
        ? trim((string) $compressedOutcome['nextActionText'])
        : (filled(data_get($operatorExplanation, 'nextAction.text')) ? (string) data_get($operatorExplanation, 'nextAction.text') : null);
    $publicationReason = is_string($compressedOutcome['primaryReason'] ?? null) && trim((string) $compressedOutcome['primaryReason']) !== ''
        ? trim((string) $compressedOutcome['primaryReason'])
        : null;
    $packageNextStep = $publicationNextAction;
    if ($packageNextStep === null) {
        $firstNextAction = $nextActions[0] ?? null;
        $packageNextStep = is_string($firstNextAction) && trim($firstNextAction) !== '' ? $firstNextAction : null;
    }
    $assessmentControls = array_slice($controlControls, 0, 2);
    $additionalAssessmentControls = max(count($controlControls) - count($assessmentControls), 0);
    $packageAvailabilityColor = match ($packageAvailability['state'] ?? 'gray') {
        'available' => 'success',
        'partial' => 'warning',
        'blocked', 'expired' => 'danger',
        default => 'gray',
    };
@endphp

<div class="space-y-4">
    @if ($operatorExplanation !== [])
        <div class="rounded-lg border border-gray-200 bg-white px-4 py-3 shadow-sm dark:border-gray-800 dark:bg-gray-900/70">
            <div class="text-sm font-semibold text-gray-950 dark:text-white">
                {{ $operatorExplanation['headline'] ?? __('localization.review.review_explanation') }}
            </div>

            @if (filled($operatorExplanation['reliabilityStatement'] ?? null))
                <div class="mt-2 text-sm text-gray-600 dark:text-gray-300">
                    {{ $operatorExplanation['reliabilityStatement'] }}
                </div>
            @endif

            @if (filled(data_get($operatorExplanation, 'nextAction.text')))
                <div class="mt-3 rounded-md border border-primary-100 bg-primary-50 px-3 py-2 text-sm text-primary-900 dark:border-primary-900/40 dark:bg-primary-950/30 dark:text-primary-100">
                    {{ data_get($operatorExplanation, 'nextAction.text') }}
                </div>
            @endif
        </div>
    @endif

    @if ($reasonSemantics !== [])
        <dl class="grid grid-cols-1 gap-3 md:grid-cols-2">
            <div class="rounded-md border border-gray-100 bg-gray-50 px-3 py-2 dark:border-gray-800 dark:bg-gray-950/60">
                <dt class="text-[11px] font-semibold uppercase tracking-wide text-gray-500 dark:text-gray-400">{{ __('localization.review.reason_owner') }}</dt>
                <dd class="mt-1 text-sm text-gray-900 dark:text-gray-100">{{ $reasonSemantics['owner_label'] ?? __('localization.review.platform_core') }}</dd>
            </div>

            <div class="rounded-md border border-gray-100 bg-gray-50 px-3 py-2 dark:border-gray-800 dark:bg-gray-950/60">
                <dt class="text-[11px] font-semibold uppercase tracking-wide text-gray-500 dark:text-gray-400">{{ __('localization.review.platform_reason_family') }}</dt>
                <dd class="mt-1 text-sm text-gray-900 dark:text-gray-100">{{ $reasonSemantics['family_label'] ?? __('localization.review.compatibility') }}</dd>
            </div>
        </dl>
    @endif

    <dl class="grid grid-cols-2 gap-3 xl:grid-cols-4">
        @foreach ($metrics as $metric)
            @php
                $label = is_string($metric['label'] ?? null) ? $metric['label'] : null;
                $value = is_string($metric['value'] ?? null) ? $metric['value'] : null;
            @endphp

            @continue($label === null || $value === null)

            <div class="rounded-md border border-gray-100 bg-gray-50 px-3 py-2 dark:border-gray-800 dark:bg-gray-950/60">
                <dt class="text-[11px] font-semibold uppercase tracking-wide text-gray-500 dark:text-gray-400">{{ $label }}</dt>
                <dd class="mt-1 text-sm text-gray-900 dark:text-gray-100">{{ $value }}</dd>
            </div>
        @endforeach
    </dl>

    @if ($customerWorkspaceMode && $governancePackage !== [])
        <div class="space-y-3 rounded-lg border border-gray-200 bg-white px-4 py-3 shadow-sm dark:border-gray-800 dark:bg-gray-900/70">
            <div class="flex flex-wrap items-start justify-between gap-2">
                <div>
                    <div class="text-sm font-semibold text-gray-950 dark:text-white">
                        {{ __('localization.review.governance_package') }}
                    </div>

                    @if (filled($governancePackage['delivery_note'] ?? null))
                        <div class="mt-1 text-sm text-gray-600 dark:text-gray-300">
                            {{ $governancePackage['delivery_note'] }}
                        </div>
                    @endif
                </div>

                @if ($packageAvailability !== [])
                    <x-filament::badge :color="$packageAvailabilityColor" size="sm">
                        {{ $packageAvailability['label'] ?? __('localization.review.unavailable') }}
                    </x-filament::badge>
                @endif
            </div>

            <div class="grid grid-cols-1 gap-3 md:grid-cols-2">
                <div class="rounded-md border border-gray-100 bg-gray-50 px-3 py-2 dark:border-gray-800 dark:bg-gray-950/60">
                    <div class="text-[11px] font-semibold uppercase tracking-wide text-gray-500 dark:text-gray-400">{{ __('localization.review.primary_action') }}</div>
                    <div class="mt-1 text-sm font-medium text-gray-900 dark:text-gray-100">{{ __('localization.review.download_governance_package') }}</div>
                </div>

                <div class="rounded-md border border-gray-100 bg-gray-50 px-3 py-2 dark:border-gray-800 dark:bg-gray-950/60">
                    <div class="text-[11px] font-semibold uppercase tracking-wide text-gray-500 dark:text-gray-400">{{ __('localization.review.executive_entrypoint') }}</div>
                    <div class="mt-1 text-sm text-gray-900 dark:text-gray-100">{{ __('localization.review.executive_entrypoint_description') }}</div>
                </div>

                @if ($packageNextStep !== null)
                    <div class="rounded-md border border-primary-100 bg-primary-50 px-3 py-2 dark:border-primary-900/40 dark:bg-primary-950/30">
                        <div class="text-[11px] font-semibold uppercase tracking-wide text-primary-700 dark:text-primary-200">{{ __('localization.review.next_step') }}</div>
                        <div class="mt-1 text-sm text-primary-900 dark:text-primary-100">{{ $packageNextStep }}</div>
                    </div>
                @endif

                <div class="rounded-md border border-gray-100 bg-gray-50 px-3 py-2 dark:border-gray-800 dark:bg-gray-950/60">
                    <div class="text-[11px] font-semibold uppercase tracking-wide text-gray-500 dark:text-gray-400">{{ __('localization.review.auditor_appendix') }}</div>
                    <div class="mt-1 text-sm text-gray-700 dark:text-gray-300">{{ __('localization.review.auditor_appendix_description') }}</div>
                </div>
            </div>

            @if (filled($governancePackage['executive_summary'] ?? null))
                <div class="text-sm text-gray-700 dark:text-gray-300">
                    {{ $governancePackage['executive_summary'] }}
                </div>
            @endif

            @if (filled($governancePackage['evidence_basis_summary'] ?? null))
                <div class="rounded-md border border-gray-100 bg-gray-50 px-3 py-2 text-sm text-gray-700 dark:border-gray-800 dark:bg-gray-950/60 dark:text-gray-300">
                    <div class="text-[11px] font-semibold uppercase tracking-wide text-gray-500 dark:text-gray-400">{{ __('localization.review.evidence_basis') }}</div>
                    <div class="mt-1">{{ $governancePackage['evidence_basis_summary'] }}</div>
                </div>
            @endif

            @if ($packageAvailability !== [] && filled($packageAvailability['description'] ?? null))
                <div class="rounded-md border border-gray-100 bg-gray-50 px-3 py-2 text-sm text-gray-700 dark:border-gray-800 dark:bg-gray-950/60 dark:text-gray-300">
                    {{ $packageAvailability['description'] }}
                </div>
            @endif

            @if ($packageTopFindings !== [])
                <div class="space-y-2">
                    <div class="text-xs font-semibold uppercase tracking-wide text-gray-500 dark:text-gray-400">{{ __('localization.review.key_findings') }}</div>
                    <ul class="space-y-1 text-sm text-gray-700 dark:text-gray-300">
                        @foreach ($packageTopFindings as $finding)
                            @php
                                $findingTitle = is_string($finding['title'] ?? null) ? $finding['title'] : __('localization.review.control');
                                $findingSummary = is_string($finding['summary'] ?? null) ? $finding['summary'] : null;
                            @endphp

                            <li class="rounded-md border border-gray-100 bg-gray-50 px-3 py-2 dark:border-gray-800 dark:bg-gray-950/60">
                                <div class="font-medium text-gray-900 dark:text-gray-100">{{ $findingTitle }}</div>
                                @if ($findingSummary !== null && trim($findingSummary) !== '')
                                    <div class="mt-1 text-xs text-gray-500 dark:text-gray-400">{{ $findingSummary }}</div>
                                @endif
                            </li>
                        @endforeach
                    </ul>
                </div>
            @endif

            @if ($packageAcceptedRisks !== [])
                <div class="space-y-2">
                    <div class="text-xs font-semibold uppercase tracking-wide text-gray-500 dark:text-gray-400">{{ __('localization.review.accepted_risks') }}</div>
                    <ul class="space-y-1 text-sm text-gray-700 dark:text-gray-300">
                        @foreach ($packageAcceptedRisks as $risk)
                            @php
                                $riskTitle = is_string($risk['title'] ?? null) ? $risk['title'] : __('localization.review.accepted_risks');
                                $riskSummary = is_string($risk['summary'] ?? null) ? $risk['summary'] : null;
                            @endphp

                            <li class="rounded-md border border-gray-100 bg-gray-50 px-3 py-2 dark:border-gray-800 dark:bg-gray-950/60">
                                <div class="font-medium text-gray-900 dark:text-gray-100">{{ $riskTitle }}</div>
                                @if ($riskSummary !== null && trim($riskSummary) !== '')
                                    <div class="mt-1 text-xs text-gray-500 dark:text-gray-400">{{ $riskSummary }}</div>
                                @endif
                            </li>
                        @endforeach
                    </ul>
                </div>
            @endif

            @if ($packageDecisionSummary !== [] || $packageGovernanceDecisions !== [])
                <div class="space-y-2">
                    <div class="text-xs font-semibold uppercase tracking-wide text-gray-500 dark:text-gray-400">{{ __('localization.review.governance_decisions_requiring_awareness') }}</div>

                    @if ($packageDecisionSummaryText !== null && $packageDecisionSummaryText !== '')
                        <div class="rounded-md border border-gray-100 bg-gray-50 px-3 py-2 text-sm text-gray-700 dark:border-gray-800 dark:bg-gray-950/60 dark:text-gray-300">
                            {{ $packageDecisionSummaryText }}
                        </div>
                    @endif

                    @if ($packageDecisionNextAction !== null && $packageDecisionNextAction !== '')
                        <div class="rounded-md border border-primary-100 bg-primary-50 px-3 py-2 text-sm text-primary-900 dark:border-primary-900/40 dark:bg-primary-950/30 dark:text-primary-100">
                            {{ $packageDecisionNextAction }}
                        </div>
                    @endif

                    @if ($packageGovernanceDecisions !== [])
                        <ul class="space-y-1 text-sm text-amber-800 dark:text-amber-200">
                            @foreach ($packageGovernanceDecisions as $decision)
                                @php
                                    $decisionTitle = is_string($decision['title'] ?? null) ? $decision['title'] : __('localization.review.governance_decisions');
                                    $decisionSummary = is_string($decision['summary'] ?? null) ? $decision['summary'] : null;
                                    $decisionNextAction = is_string($decision['next_action'] ?? null) ? $decision['next_action'] : null;
                                @endphp

                                <li class="rounded-md border border-amber-100 bg-amber-50 px-3 py-2 dark:border-amber-900/40 dark:bg-amber-950/30">
                                    <div class="font-medium">{{ $decisionTitle }}</div>
                                    @if ($decisionSummary !== null && trim($decisionSummary) !== '')
                                        <div class="mt-1 text-xs">{{ $decisionSummary }}</div>
                                    @endif
                                    @if ($decisionNextAction !== null && trim($decisionNextAction) !== '')
                                        <div class="mt-2 text-xs">{{ $decisionNextAction }}</div>
                                    @endif
                                </li>
                            @endforeach
                        </ul>
                    @elseif ($packageDecisionEmptyState !== null && $packageDecisionEmptyState !== '')
                        <div class="rounded-md border border-gray-100 bg-gray-50 px-3 py-2 text-sm text-gray-700 dark:border-gray-800 dark:bg-gray-950/60 dark:text-gray-300">
                            {{ $packageDecisionEmptyState }}
                        </div>
                    @endif
                </div>
            @endif
        </div>
    @endif

    @if ($highlights !== [])
        <div class="space-y-2">
            <div class="text-xs font-semibold uppercase tracking-wide text-gray-500 dark:text-gray-400">{{ __('localization.review.highlights') }}</div>
            <ul class="space-y-1 text-sm text-gray-700 dark:text-gray-300">
                @foreach ($highlights as $highlight)
                    @continue(! is_string($highlight) || trim($highlight) === '')

                    <li class="rounded-md border border-gray-100 bg-gray-50 px-3 py-2 dark:border-gray-800 dark:bg-gray-950/60">{{ $highlight }}</li>
                @endforeach
            </ul>
        </div>
    @endif

    @if ($nextActions !== [])
        <div class="space-y-2">
            <div class="text-xs font-semibold uppercase tracking-wide text-gray-500 dark:text-gray-400">{{ __('localization.review.next_actions') }}</div>
            <ul class="space-y-1 text-sm text-gray-700 dark:text-gray-300">
                @foreach ($nextActions as $action)
                    @continue(! is_string($action) || trim($action) === '')

                    <li class="rounded-md border border-primary-100 bg-primary-50 px-3 py-2 dark:border-primary-900/40 dark:bg-primary-950/30">{{ $action }}</li>
                @endforeach
            </ul>
        </div>
    @endif

    @if ($customerWorkspaceMode && $controlInterpretation !== [])
        <div class="space-y-3 rounded-lg border border-gray-200 bg-white px-4 py-3 shadow-sm dark:border-gray-800 dark:bg-gray-900/70">
            <div class="flex flex-wrap items-start justify-between gap-2">
                <div>
                    <div class="text-sm font-semibold text-gray-950 dark:text-white">
                        {{ __('localization.review.assessment_basis') }}
                    </div>
                    <div class="mt-1 text-sm text-gray-600 dark:text-gray-300">
                        {{ __('localization.review.assessment_basis_description') }}
                    </div>
                </div>

                <x-filament::badge color="gray" size="sm">
                    {{ __('localization.review.customer_safe') }}
                </x-filament::badge>
            </div>

            @if ($controlDisclosure !== null)
                <div class="rounded-md border border-amber-100 bg-amber-50 px-3 py-2 text-sm text-amber-800 dark:border-amber-900/40 dark:bg-amber-950/30 dark:text-amber-200">
                    {{ $controlDisclosure }}
                </div>
            @endif

            @if ($assessmentControls !== [])
                <div class="space-y-2">
                    @foreach ($assessmentControls as $control)
                        @php
                            $readinessBucket = is_string($control['readiness_bucket'] ?? null) ? $control['readiness_bucket'] : 'review_recommended';
                            $readinessColor = match ($readinessBucket) {
                                'follow_up_required' => 'warning',
                                'review_recommended' => 'info',
                                'evidence_on_record' => 'success',
                                default => 'gray',
                            };
                            $limitationLabels = is_array($control['limitation_labels'] ?? null) ? $control['limitation_labels'] : [];
                        @endphp

                        <div class="rounded-md border border-gray-100 bg-gray-50 px-3 py-3 dark:border-gray-800 dark:bg-gray-950/60">
                            <div class="flex flex-wrap items-center justify-between gap-2">
                                <div class="font-medium text-gray-900 dark:text-gray-100">
                                    {{ $control['control_name'] ?? __('localization.review.control') }}
                                </div>

                                <x-filament::badge :color="$readinessColor" size="sm">
                                    {{ $control['readiness_label'] ?? __('localization.review.review_recommended') }}
                                </x-filament::badge>
                            </div>

                            @if (filled($control['customer_summary'] ?? null))
                                <div class="mt-2 text-sm text-gray-700 dark:text-gray-300">
                                    {{ $control['customer_summary'] }}
                                </div>
                            @endif

                            @if (filled($control['evidence_basis_summary'] ?? null))
                                <div class="mt-2 text-xs text-gray-500 dark:text-gray-400">
                                    {{ $control['evidence_basis_summary'] }}
                                </div>
                            @endif

                            @if (filled($control['recommended_next_action'] ?? null))
                                <div class="mt-3 rounded-md border border-primary-100 bg-primary-50 px-3 py-2 text-sm text-primary-900 dark:border-primary-900/40 dark:bg-primary-950/30 dark:text-primary-100">
                                    {{ $control['recommended_next_action'] }}
                                </div>
                            @endif

                            @if ($limitationLabels !== [])
                                <div class="mt-2 flex flex-wrap gap-1">
                                    @foreach ($limitationLabels as $label)
                                        @continue(! is_string($label) || trim($label) === '')

                                        <x-filament::badge color="gray" size="sm">
                                            {{ $label }}
                                        </x-filament::badge>
                                    @endforeach
                                </div>
                            @endif
                        </div>
                    @endforeach
                </div>

                @if ($additionalAssessmentControls > 0)
                    <div class="text-xs text-gray-500 dark:text-gray-400">
                        {{ __('localization.review.additional_controls', ['count' => $additionalAssessmentControls]) }}
                    </div>
                @endif
            @else
                <div class="rounded-md border border-gray-100 bg-gray-50 px-3 py-2 text-sm text-gray-700 dark:border-gray-800 dark:bg-gray-950/60 dark:text-gray-300">
                    {{ __('localization.review.control_readiness_unmapped_description') }}
                </div>
            @endif

            @if ($controlLimitations !== [])
                <div class="text-xs text-gray-500 dark:text-gray-400">
                    {{ __('localization.review.control_limitations_summary', ['limitations' => implode(', ', array_map(fn (string $flag): string => \App\Support\Governance\Controls\ComplianceEvidenceMappingV1::limitationLabel($flag), array_filter($controlLimitations, 'is_string')))]) }}
                </div>
            @endif
        </div>
    @endif

    @if ($contextLinks !== [])
        <div class="space-y-2">
            <div class="text-xs font-semibold uppercase tracking-wide text-gray-500 dark:text-gray-400">{{ __('localization.review.related_context') }}</div>
            <div class="grid gap-3 md:grid-cols-3">
                @foreach ($contextLinks as $link)
                    @php
                        $title = is_string($link['title'] ?? null) ? $link['title'] : null;
                        $label = is_string($link['label'] ?? null) ? $link['label'] : null;
                        $url = is_string($link['url'] ?? null) ? $link['url'] : null;
                        $description = is_string($link['description'] ?? null) ? $link['description'] : null;
                    @endphp

                    @continue($title === null || $label === null)

                    <div class="rounded-lg border border-gray-200 bg-white px-4 py-3 shadow-sm dark:border-gray-800 dark:bg-gray-900/70">
                        <div class="text-[11px] font-semibold uppercase tracking-wide text-gray-500 dark:text-gray-400">{{ $title }}</div>
                        <div class="mt-2">
                            @if ($url !== null)
                                <x-filament::link :href="$url" icon="heroicon-m-arrow-top-right-on-square">
                                    {{ $label }}
                                </x-filament::link>
                            @else
                                <x-filament::badge color="gray" size="sm">
                                    {{ __('localization.review.unavailable') }}
                                </x-filament::badge>
                            @endif
                        </div>

                        @if ($description !== null && trim($description) !== '')
                            <div class="mt-2 text-sm text-gray-600 dark:text-gray-300">{{ $description }}</div>
                        @endif
                    </div>
                @endforeach
            </div>
        </div>
    @endif

    <div class="space-y-2">
        <div class="text-xs font-semibold uppercase tracking-wide text-gray-500 dark:text-gray-400">
            {{ $customerWorkspaceMode ? __('localization.review.released_governance_record') : __('localization.review.publication_readiness') }}
        </div>

        @if ($customerWorkspaceMode)
            <div class="rounded-md border border-emerald-100 bg-emerald-50 px-3 py-2 text-sm text-emerald-800 dark:border-emerald-900/40 dark:bg-emerald-950/30 dark:text-emerald-200">
                {{ __('localization.review.released_governance_record_available') }}
            </div>
        @elseif ($publishBlockers === [] && $decisionDirection === 'publishable')
            <div class="rounded-md border border-emerald-100 bg-emerald-50 px-3 py-2 text-sm text-emerald-800 dark:border-emerald-900/40 dark:bg-emerald-950/30 dark:text-emerald-200">
                {{ __('localization.review.ready_for_publication') }}
            </div>
        @elseif ($publishBlockers !== [])
            <ul class="space-y-1 text-sm text-amber-800 dark:text-amber-200">
                @foreach ($publishBlockers as $blocker)
                    @continue(! is_string($blocker) || trim($blocker) === '')

                    <li class="rounded-md border border-amber-100 bg-amber-50 px-3 py-2 dark:border-amber-900/40 dark:bg-amber-950/30">{{ $blocker }}</li>
                @endforeach
            </ul>
        @elseif ($decisionDirection === 'internal_only')
            <div class="rounded-md border border-amber-100 bg-amber-50 px-3 py-2 text-sm text-amber-800 dark:border-amber-900/40 dark:bg-amber-950/30 dark:text-amber-200">
                <div>{{ __('localization.review.internal_only') }}</div>

                @if ($publicationNextAction !== null)
                    <div class="mt-1">{{ $publicationNextAction }}</div>
                @endif
            </div>
        @else
            <div class="rounded-md border border-amber-100 bg-amber-50 px-3 py-2 text-sm text-amber-800 dark:border-amber-900/40 dark:bg-amber-950/30 dark:text-amber-200">
                {{ $publicationNextAction ?? $publicationReason ?? __('localization.review.needs_follow_up') }}
            </div>
        @endif
    </div>
</div>
