<?php
// pwa_inject.php — Injects unified PWA header/nav/scripts into legacy role pages
// Usage: place this at the TOP of any role PHP page:
// <?php include __DIR__ . '/../components/pwa_inject.php'; ?>

?>
<link rel="stylesheet" href="/pwa/pwa_shell.css">

<div id="pwa_header_injected"></div>
<nav id="pwa_nav_injected"></nav>

<script>
    window.API_BASE = window.API_BASE || '/api';
</script>

<script src="/pwa/auth.js"></script>
<script src="/pwa/db.js"></script>
<script src="/pwa/pwa_header.js"></script>
<script src="/pwa/pwa_nav.js"></script>
<script src="/pwa/pwa_router.js"></script>
<script src="/pwa/pwa_sw_register.js"></script>

<!-- Role behavior bindings -->
<script src="/pwa/modules/role_bindings.js"></script>
