{% from "macros.html" import evidence_details %} {% if mode == "scope" %}

📄 {{ filename }} — {{ t('an.scope_extracted', n=clauses|length) }} [{{ project_id }}]

{% for c in clauses %}
{{ t('badge.excluded') if c.polarity.value == 'EXCLUDED' else t('badge.included') }} {{ c.source_clause or c.id }} · {{ c.category }} · {{ c.id }}

{{ c.description }}

{% if c.limits.quantity %}

{{ t('ev.limit') }} {{ c.limits.quantity }}{% if c.limits.period %}/{{ c.limits.period }}{% endif %} {% if c.effort_pool_hours %}· {{ t('ev.effort_pool') }} {{ c.effort_pool_hours|int }} {{ t('common.hours_short') }}{% endif %}

{% endif %}
{% else %}

{{ t('an.no_clauses') }}

{% endfor %} {% else %}

📄 {{ filename }} — {{ t('an.triaged', n=total) }} [{{ project_id }}] {% if truncated %}· {{ t('an.showing_first', n=cases|length) }}{% endif %}

{% for case in cases %}
{{ case.raw_request }}

{% for d in case.decisions %} {{ d.decision.value|tr_decision }} {{ d.effort_estimate.low }}–{{ d.effort_estimate.high }}{{ t('common.hours_short') }} · {{ d.risk.level.value|tr_risk }} {%- if d.evidence.contract_clauses_cited %} · {{ d.evidence.contract_clauses_cited|join(', ') }}{% endif %} {% endfor %}

{% for d in case.decisions %}{{ evidence_details(d) }}{% endfor %}
{% else %}

{{ t('an.no_lines') }}

{% endfor %} {% endif %}