        </section><!-- /tool-panel -->

        <aside class="reasoning-panel" aria-labelledby="reasoningTitle">
<?php if (!empty($reasoningPanelOverride)): ?>
<?= $reasoningPanelOverride ?>
<?php else: ?>
            <div class="reasoning-head">
                <p class="eyebrow"><?= htmlspecialchars(dbnToolsT('reasoning_eyebrow', $uiLang ?? dbnToolsCurrentLanguage())) ?></p>
                <h2 id="reasoningTitle"><?= htmlspecialchars(dbnToolsT('reasoning_title', $uiLang ?? dbnToolsCurrentLanguage())) ?></h2>
            </div>
            <ol id="traceList" class="trace-list">
                <li>
                    <span class="trace-status waiting"></span>
                    <div>
                        <strong><?= htmlspecialchars(dbnToolsT('waiting_title', $uiLang ?? dbnToolsCurrentLanguage())) ?></strong>
                        <p><?= htmlspecialchars(dbnToolsT('waiting_text', $uiLang ?? dbnToolsCurrentLanguage())) ?></p>
                    </div>
                </li>
            </ol>
<?php endif; ?>
        </aside>
    </section><!-- /workspace -->
</main><!-- /appShell -->
<?php require_once __DIR__ . '/footer.php'; ?>
<script src="assets/js/tools.js" defer></script>
<?php if (!empty($extraScripts) && is_array($extraScripts)): foreach ($extraScripts as $extraScript): ?>
<script src="<?= htmlspecialchars((string)$extraScript) ?>" defer></script>
<?php endforeach; endif; ?>
</body>
</html>
