Frontend module layout:

- `state-config.js`: global state, preset constants, translation dictionaries, seed UI data, onboarding service templates
- `desktop-shell.js`: desktop-only status bridge, provider-aware onboarding model picker, Ollama detection/start/pull UI, installed-model onboarding dropdown, local model recommendations, updater status/check UI
- `auth-ui.js`: auth gate, email/password sign-in/register, local session storage, cloud identity bootstrap, settings sign-out
- `settings-ui.js`: tabbed settings modal, runtime controls, updater entry point, identity/memory panels, reset flow
- `localization.js`: language helpers, cached translation access, runtime text application
- `ui-base.js`: tooltips, shared icon picker, escaping helpers, formatting helpers, toast system
- `health-ui.js`: org health badge logic and org health explanation modal
- `onboarding-guided.js`: onboarding flow, business-type service template application, daily brief rail, guided AI task/battle-plan modals
- `services-ui.js`: services catalog UI and shared prompt/confirm modals
- `board-dashboard.js`: board rendering, dashboard shell, navigation, kanban interactions, date/history controls
- `skills-memory.js`: skills and memory explorer
- `metrics.js`: division metrics rendering and chart logic
- `work-shared.js`: shared work-dashboard helpers, org-level work data refresh, live sync loop, shared date/history filtering
- `agents-ui.js`: agents tab UI, agent creation, per-agent run controls, run logs
- `div1-work.js`: Division 1 work console
- `div2-work.js`: Division 2 work console
- `div3-work.js`: Division 3 work console
- `div4-work.js`: Division 4 work console
- `div5-work.js`: Division 5 work console
- `div6-work.js`: Division 6 work console
- `div7-work.js`: Division 7 work console
- `ed-work.js`: ED work console
- `battle-training.js`: battle plans and training hub
- `ai-modals.js`: AI advisor and item/division modal wiring
- `bootstrap.js`: app startup and initial DOM boot sequence
