       const sites = paste.split(',').map(site => site.trim()).filter(site => site);
            sites.forEach(addSite);
        });

        const form = document.querySelector('form');
        form.addEventListener('submit', function (e) {
            const selectedTags = Array.from(tagCloud.querySelectorAll('.tag.selected'));
            Array.from(hiddenSelect.options).forEach(opt => {
                opt.selected = selectedTags.some(tag => tag.dataset.value === opt.value);
            });
            u