-title');
                if (titleEl && titleEl.textContent !== newItem.title) {
                    titleEl.textContent = newItem.title;
                }
                
                // Update priority badge
                const priorityBadge = element.querySelector('.priority-badge');
                if (priorityBadge) {
                    const newPriorityClass = `priority-badge priority-${newItem.priority}`;
                    if (priorityBadge.className !== newPriorityClass) {
                