lector('.overlay')
                    .remove();

                const overlay = document.createElement('div');
                overlay.className = 'overlay';
                overlay.style.display = 'block';

                const dialog = document.createElement('div');
                dialog.className = 'share-dialog';
                dialog.innerHTML = `
                        <h3>Share Mindmap</h3>
                        <p>Copy this link to share your mindmap:</p>
                        <input type