dRow() {
        document.querySelectorAll('.list .row').forEach((row) => {
            row.classList.remove('selected');
            if (row.dataset.id === selectedId) {
                row.classList.add('selected');
            }
        });
    }

    function renderEmail(email) {
        const content = `
    <div class="metadata">
        <table>
            <tr>
                <td>Recipient:</td>
                <td>${escapeHTMLEntities(email.recipient)}</td>
            </tr>
            <tr>
      