   // Update the updatePreviews function
    function updatePreviews() {
        Object.keys(currentConfig.lines).forEach(lineId => {
            const previewElement = document.getElementById(`${lineId}-preview`);
            if (!previewElement) return;

            const lineData = currentLines.find(l => l.type.id === lineId);
            if (!lineData) {
                previewElement.innerHTML = '';
                return;
            }

            const notes = lineData.notes;
            if (notes.l