<!-- SOLIDABILITY-WORLD · part 28 -->
="glass-section">
          <h3>File</h3>
          <p><code>${escapeHtml(room.filePath)}</code></p>
          <p>District: ${escapeHtml(room.district || 'unknown')} · ${room.lines || 0} lines</p>
          <p>Structural complexity: <b>${room.complexity || 0}</b></p>
        </div>` : `
        <div class="glass-section">
          <h3>What it does</h3>
          <p>${escapeHtml(describeRoom(room))}</p>
        </div>`}
        <div class="glass-section">
          <h3>${isFile ? `Routes (${room.routes.length})` : 'Components'}</h3>
          ${!isFile ? `<p>${room.routes.length} routes in this section</p>` : ''}
          <ul class="route-list">
            ${room.routes.slice(0, 8).map(r =>
              `<li><code>${escapeHtml(r.name)}</code> <span class="line">L${r.line}</span></li>`
            ).join('')}
            ${room.routes.length > 8 ? `<li class="more">+ ${room.routes.length - 8} more</li>` : ''}
            ${room.routes.length === 0 ? `<li class="more">No HTTP routes in this file</li>` : ''}
          </ul>
        </div>
        ${funcsHtml}
        <div class="glass-section">
          <h3>Dependencies</h3>
          <p>${deps}</p>
        </div>
        <div class="glass-section">
          <h3>Alarm Light</h3>
          <p class="alarm-${lightStatus}">${lightText}</p>
        </div>
        <div class="glass-section">
          <h3>Verification</h3>
          <p class="verify-${v.status}">${verificationText}</p>
          ${v.revision ? `<p><code>${escapeHtml(v.revision)}</code><br>${escapeHtml(v.date || '')}</p>` : ''}
          ${v.note ? `<p class="note">${escapeHtml(v.note)}</p>` : ''}
        </div>
        <div class="glass-section glass-phase">
          <p><em>Read-only inspection. Repairs reserved for owner authorization.</em></p>
        </div>
        ${isFile ? `
        <div class="glass-section">
          <button class="source-btn" onclick="SWGlass.openCodePanel(SWWorld.getLayout().rooms.find(r => r.key === '${room.key}'))">
            📄 Inspect Source Code
          </button>
          <button class="source-btn test-btn" onclick="SWGlass.testSyntax('${room.key}')" style="margin-top:8px;">
            🧪 Test Syntax
          </button>
          <div id="syntax-result-${room.key}" class="syntax-result"></div>
        </div>
        <div class="glass-section">
          <h3>⚙️ How It Runs</h3>
          ${executionExplanation(room)}
        </div>
        <div class="glass-section">
          <button class="source-btn" onclick="SWDiagnose.showPanel();SWDiagnose.analyzeImpact && (()=>{const r=SWDiagnose.analyzeImpact('${room.key}');if(r)alert('Impact: '+r.estimatedBlast+' blast\\n'+r.directDependents.length+' dependents\\n'+r.routesAffected+' routes')})()">
            💥 Change Impact Analysis
          </button>
        </div>
        <div class="glass-section">
          <h3>Why This Shape</h3>
          <p class="geometry-explain">${geometryExplanation(room)}</p>
          ${room.scalingNote ? `<p class="scaling-note">⚠️ ${escapeHtml(room.scalingNote)}</p>` : ''}
          ${room.floors > 1 ? `<p class="floor-note">🏢 ${room.floors} internal floors — complexity tiers visualized</p>` : ''}
        </div>` : ''}
      </div>
    `;
    panel.classList.add('visible');
  }

  // Explain how the code runs — execution flow with best-practice notes
  function executionExplanation(room) {
    if (!room.filePath) return '';
    const funcs = room.functions || [];
    const deps = room.dependencies || [];
    const routes = room.routes || [];

    let html = '<div class="exec-flow">';

    // Entry points
    if (routes.length > 0) {
      html += `<div class="step"><span class="step-num">1.</span>
        <span>HTTP requests arrive at ${routes.length} route${routes.length > 1 ? 's' : ''}.
        Express matches the path and method, then invokes the handler.</span></div>`;
    }

    // Dependencies load
    if (deps.length > 0) {
      const nodeDeps = deps.filter(d => !d.startsWith('.'));
      const localDeps = deps.filter(d => d.startsWith('.'));
      html += `<div class="step"><span class="step-num">2.</span>
        <span>Module loads ${deps.length} dependencies:
        ${nodeDeps.length} external (${nodeDeps.slice(0, 3).map(escapeHtml).join(', ')}${nodeDeps.length > 3 ? '...' : ''})
        ${localDeps.length ? `+ ${localDeps.length} local` : ''}.
        Load order follows require() chain depth-first.</span></div>`;
    }

    // Functions execute
    if (funcs.length > 0) {
      html += `<div class="step"><span class="step-num">3.</span>
        <span>${funcs.length} functions defined. Execution is event-driven:
        functions run when called by routes, timers, or other functions —
        not top-to-bottom. Entry: <code>${escapeHtml(funcs[0].name)}()</code> (line ${funcs[0].line}).</span></div>`;
    }

    html += '</div>';

    // File metadata: age, test coverage, risk signals
    const ageDays = room.age_days;
    co