Also add the delete button to dynamically loaded responses (the "Load More" ones):


3335→

  3336→                                ${escapeHtml(saved.provider || 'Unknown')} /
  3337→                                ${escapeHtml(saved.model || 'Unknown')}
  3338→

  3339→                            ${responseExcerpt ? `<div class="saved-response-excerpt">${escapeHtml(responseExcerpt)}</div>` : ''}
  3340→

  3341→                                <button class="btn-view" onclick="event.stopPropagation(); quickViewResponse('${saved._id}')">
  3342→                                    👁 Quick View
  3343→                                </button>
  3344→                                <button class="btn-expand" onclick="event.stopPropagation(); loadSavedResponse('${saved._id}')">
  3345→                                    📄 Full View
  3346→                                </button>
  3347→

  3348→                        `;
  3349→

                                ${escapeHtml(saved.provider || 'Unknown')} /
                                ${escapeHtml(saved.model || 'Unknown')}

                            ${responseExcerpt ? `<div class="saved-response-excerpt">${escapeHtml(responseExcerpt)}</div>` : ''}

                                <button class="btn-view" onclick="event.stopPropagation(); quickViewResponse('${saved._id}')">
                                    👁 Quick View
                                </button>
                                <button class="btn-expand" onclick="event.stopPropagation(); loadSavedResponse('${saved._id}')">
                                    📄 Full View
                                </button>

                        `;


Edit

                            <div class="saved-response-actions">
                                <button class="btn-view" onclick="event.stopPropagation(); quickViewResponse('${saved._id}')">
                                    👁 Quick View
                                </button>
                                <button class="btn-expand" onclick="event.stopPropagation(); loadSavedResponse('${saved._id}')">
                                    📄 Full View
                                </button>
                            </div>
                        `;

                            <div class="saved-response-actions">
                                <button class="btn-view" onclick="event.stopPropagation(); quickViewResponse('${saved._id}')">
                                    👁 Quick View
                                </button>
                                <button class="btn-expand" onclick="event.stopPropagation(); loadSavedResponse('${saved._id}')">
                                    📄 Full View
                                </button>
                                <button style="color:#ef4444;background:none;border:1px solid #ef4444;padding:4px 8px;border-radius:4px;cursor:pointer;font-size:0.85em;" onclick="event.stopPropagation(); deleteAiResponse('${saved._id}')">
                                    Del
                                </button>
                            </div>
                        `;