Smarter background resource use

The local AI engine now starts only when an AI feature is actually in use, reducing idle resource consumption and respecting offline-first behavior.