{% if not log %}
<div class="empty">awaiting first generated log</div>
{% else %}
{# tone / analysis / prompt_version / model / tokens / cost / generated_at
   are admin metadata. Hidden from the user-facing UI; available via the
   JSON API and the AICall ledger. The panel header's "generated hourly @
   :20 UTC" cadence message communicates freshness. #}
<div class="log-content"
     title="Last generated {{ log.generated_at.strftime('%Y-%m-%d %H:%M UTC') }}">
  {{ log.content_html | safe | glossary(tone) }}
</div>
{% endif %}
