Covers isTauri, and loadSettings/saveSettings across both the Tauri invoke path and the localStorage fallback, including corrupt-data and thrown-error recovery.