<div class="alert alert-success">
  <strong>Two-way sync complete</strong>
  <p>Total added: {{ total_added_cid }} CID(s), {{ total_added_user }} user(s), {{ total_added_cid_groups }} CID group(s), {{ total_added_user_groups }} user group(s).</p>
  <details>
    <summary>Per-collection changes ({{ per_collection_added|length }})</summary>
    <ul>
      {% for pk, added_cid, added_user, added_cid_groups, added_user_groups in per_collection_added %}
        <li>Collection {{ pk }}: +{{ added_cid }} CID(s), +{{ added_user }} user(s), +{{ added_cid_groups }} CID group(s), +{{ added_user_groups }} user group(s)</li>
      {% endfor %}
    </ul>
  </details>
</div>
