easuresDB[category][measureKey];
            
            document.getElementById('measureTitle').textContent = `Editing: ${measureKey}`;
            document.getElementById('measureForm').style.display = 'block';
            
            // Populate form
            document.getElementById('name').value = measure.name || measureKey;
            document.getElementById('description').value = measure.description || '';
            document.getElementById('type').value = measure.type || 'continuous';
        