import { Suspense } from "react"; import { Routes, Route } from "react-router-dom"; import AdminApp from "./admin/AdminApp"; // Bootstrap loader: renders before MuiProvider (and its global styles) mount, // so it must be fully self-contained — no theme vars, no global CSS classes. // Background follows the persisted theme attribute set by ThemeContext. function AdminLoader() { const light = typeof document !== "undefined" && document.documentElement.getAttribute("data-theme") === "light"; return (