``` ┌─────────────────────────────────────────────────────────────────────┐ │ SHELL LAYER (one active per platform) │ │ │ │ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ │ │ │ TabBar │ │ Sidebar │ │ Appbar │ │ Menubar │ │ Tray │ │ │ │ (current)│ │ (NavBar) │ │ (Dock) │ │ (macOS) │ │ Win/Linux│ │ │ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ │ │ │ │ │ │ │ │ │ └────────────┴────────────┴────────────┴────────────┘ │ │ │ │ │ ┌─────────▼──────────┐ │ │ │ ShellEngine │ ← window mgmt, resize, │ │ │ (extracted from │ drag, mode, DPI │ │ │ MainEngine) │ │ │ └─────────┬──────────┘ │ │ │ │ ├──────────────────────────────┼──────────────────────────────────────┤ │ CORE LAYER │ │ │ ┌─────────▼──────────┐ │ │ │ AppEngine │ ← module registry, │ │ │ (extracted from │ power routing, │ │ │ MainEngine) │ session, network │ │ └─────────┬──────────┘ │ │ │ │ │ ┌────────────────────┼────────────────────┐ │ │ │ │ │ │ │ ┌────▼────┐ ┌────▼────┐ ┌────▼────┐ │ │ │AIEngine │ │AudioEng │ │ ... │ │ │ │+AIUI │ │+AudioUI │ │$app pairs│ │ │ └─────────┘ └─────────┘ └─────────┘ │ │ │ ├─────────────────────────────────────────────────────────────────────┤ │ PLATFORM LAYER (conditional compilation) │ │ │ │ ┌─────────┐ ┌─────────┐ ┌─────────┐ ┌─────────┐ │ │ │ Web │ │ iOS │ │ Android │ │ Desktop │ │ │ │ (WASM) │ │ (IPA) │ │ (APK) │ │(Win/Lnx)│ │ │ └─────────┘ └─────────┘ └─────────┘ └─────────┘ │ │ No tray No tray No tray Full tray │ │ No resize Native Native Custom resize │ │ No drag window window Custom drag │ │ File API File API File API Full FS │ └─────────────────────────────────────────────────────────────────────┘ ```