{%- set shell_ctx = shell if shell is defined else none %}
{%- set nav_sections = (shell_ctx.nav.sections if shell_ctx else none) or [] %}
{%- set selector = (shell_ctx.selector if shell_ctx else none) %}
{%- set palette = (shell_ctx.palette if shell_ctx else none) %}
{#- The topbar label derives from the path segment ("/" -> Overview);
views may override via the view_title block. -#}
{#- Global workspace selector (FR-003 seam stays the URL param):
switching rewrites ?store= on the current URL and reloads, so
every tab shows the selected workspace. shell.js owns the
change behavior; the options are server-rendered. -#}
{% if selector %}
{% endif %}
{% if palette %}
{% endif %}
{% include "_embed_banner.html" %}
{% block content %}{% endblock %}
{% if palette %}
{#- Command palette overlay: body-level so live-refresh region swaps
(which replace only #refresh-region's children) never touch it.
The seed JSON carries the view list (store-carrying hrefs, composed
server-side from the same NAV_SECTIONS the sidebar renders) and the
workspace options; symbols arrive live from /graph/suggest. -#}