s(deviceId) {
            currentDeviceId = deviceId;
            const modal = document.getElementById('deviceAnalyticsModal');
            const loading = document.getElementById('deviceAnalyticsLoading');
            const data = document.getElementById('deviceAnalyticsData');
            
            // Show modal and loading state
            modal.style.display = 'flex';
            loading.style.display = 'flex';
            data.style.display = 'none';
            
            // Reset period select