>
    </div>

    <div id="telemetry-toast" hidden>waiting for telemetry…</div>
  {% else %}
    <!-- FULL MODE: legacy gzweb iframe -->
    <iframe id="sim-iframe" src="http://localhost:8080" style="width: 100%; height: 100vh; border:0;"></iframe>
    <script>
      setTimeout(function () {
        var iframe = document.getElementById("sim-iframe");
        if (!iframe) return;
        var w = iframe.contentWindow;
        if (!w) return;
        {% for stage in stages %}
          w.postMessage("set-{{s