    </main>
</div>
<footer style="padding:14px 24px;border-top:1px solid #dbe3ee;background:#f8fafc;color:#475569;font-size:13px;display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;">
    <div>Corporate Messaging Suite</div>
    <div>
        <strong>V<?= e(app_version()) ?></strong>
        • Schema <span style="color:<?= schema_matches_app_version() ? '#0f766e' : '#b91c1c' ?>;font-weight:700;"><?= e(schema_version()) ?></span>
        • <?= e(ucfirst(app_environment())) ?>
        <?php if (!schema_matches_app_version()): ?>
            • <a href="index.php?route=settings/diagnostics" style="color:#b91c1c;font-weight:700;text-decoration:none;">Migration check needed</a>
        <?php endif; ?>
    </div>
</footer>
<script src="assets/js/app.js"></script>
</body>
</html>
