lement.style.display = 'grid';
                });
            } else {
                // Hide advanced mode elements
                const advancedElements = document.querySelectorAll('.advanced-mode-only, .advanced-panel');
                advancedElements.forEach(element => {
                    element.style.display = 'none';
                });
                
                // Hide flex containers
                const advancedFlexElements = document.querySelectorAll('.advanced-mode-only-flex');
  