// window.LpUi — global UI-mode flags shared across the WebUI. // // Two orthogonal axes: // advanced — show extra-technical detail (mounts, limits, internals, // raw IDs, advanced config fields). Off by default // ("Beginner"); user can flip on from any surface that // exposes the Advanced toggle. // dev — show developer-only fields and surfaces (the **DEV** // config fields, Installation Mode picker, etc.). Locked // behind the 10-tap unlock easter egg (LibrePortal logo // OR the Advanced toggle). Auto-enables when on a git/ // local install (the existing topbar autodetect path). // // Linking rule: dev IMPLIES advanced. // - Enabling dev auto-enables advanced (you can't see dev fields if // the advanced layer is hidden). // - Disabling advanced auto-disables dev (dev-without-advanced is // an incoherent state — clean it up). // // Wire shape: // localStorage keys lp.ui.advanced ('0' | '1') // lp.ui.dev ('0' | '1') — UI-side mirror of CFG_DEV_MODE // body classes lp-ui--advanced // lp-ui--dev // events window 'lp-ui-advanced-changed' { advanced } // window 'lp-ui-dev-changed' { dev } // // Loaded eagerly (NOT lazy) via a