{% if collection.show_results_sharing_information and sharing_summary %}
    <section class="take-start-card mt-3">
        <div class="fw-semibold mb-2 small text-body-secondary text-uppercase" style="letter-spacing:.05em;">Who can see your results</div>
        <ul class="list-unstyled mb-0 small">
            <li class="mb-1">
                <span class="badge bg-secondary me-1">You</span>
                Always visible to you.
            </li>
            {% for u in sharing_summary.always_visible_to %}
                <li class="mb-1">
                    <span class="badge bg-secondary me-1">Author/Marker</span>
                    {{ u.get_full_name|default:u.username }}
                    {% if u.email %}<span class="text-muted">&lt;{{ u.email }}&gt;</span>{% endif %}
                </li>
            {% endfor %}
            {% if sharing_summary.supervisor_always %}
                <li class="mb-1">
                    <span class="badge bg-info text-dark me-1">Supervisor</span>
                    {% if sharing_summary.supervisor %}
                        {{ sharing_summary.supervisor.get_full_name|default:sharing_summary.supervisor.username }}
                        (always shared - collection setting)
                    {% else %}
                        Your supervisor, if one is linked to your profile (collection setting always on).
                    {% endif %}
                </li>
            {% elif sharing_summary.supervisor_opt_in %}
                <li class="mb-1">
                    <span class="badge bg-outline-secondary me-1" style="border:1px solid var(--bs-secondary);color:var(--bs-secondary);">Supervisor</span>
                    {% if sharing_summary.supervisor %}
                        {{ sharing_summary.supervisor.get_full_name|default:sharing_summary.supervisor.username }}
                        - you can choose to share with them after starting.
                    {% else %}
                        You have a supervisor linked but they do not have a login account yet.
                    {% endif %}
                </li>
            {% endif %}
            {% if not sharing_summary.always_visible_to and not sharing_summary.supervisor_always and not sharing_summary.supervisor_opt_in %}
                <li class="text-muted fst-italic">Only you can see your results for this collection.</li>
            {% endif %}
        </ul>
    </section>
{% endif %}