  function clearFeedback(lineIdx) {

    const feedbackEl = document.getElementById(`feedback-${lineIdx}`);

    if (feedbackEl) {

      feedbackEl.innerHTML = '';

      feedbackEl.classList.remove('correct', 'incorrect');

    }

  }
