{# Layout JSON embedded as a data island to avoid JSON-in-HTML-attribute escaping (#635) #}
{% if workspace.purpose %}

{{ workspace.purpose }}

{% endif %} {% if workspace.context_options_url %}
{% endif %}
{% for region in workspace.regions %} {% if region.source_tabs %} {# Multi-source tabbed region: render tabs inline, each panel lazy-loads independently #}
{# Edit mode controls #}
{% include 'workspace/regions/tabbed_list.html' with context %}
{% else %}
{# Edit mode controls #}
{# Skeleton placeholder while loading #}

{{ region.title }}

{% if region.endpoint %}
{% else %}

{{ region.empty_message }}

{% endif %}
{% endif %} {% endfor %}
{# Floating toolbar — edit mode only #}
{# Detail drawer: slide-over panel for workspace action/ref clicks #}