:root {
    --bg: #f4f6f8;
    --text: #1a1a1a;
    --muted-text: #666666;
    --card-bg: #ffffff;
    --border: #e2e8f0;
    --border-soft: #f0f0f0;
    --topbar-bg: #1e293b;
    --topbar-bg-2: #0f172a;
    --topbar-text: #ffffff;
    --table-header-bg: #f1f5f9;
    --hover-bg: #fafbfc;
    --link-color: #1d4ed8;
    --input-border: #cccccc;
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
    --read-row-bg: #f6f8fc;
}

[data-theme="dark"] {
    --bg: #0e1117;
    --text: #e5e7eb;
    --muted-text: #9aa3af;
    --card-bg: #171b23;
    --border: #2a2f3a;
    --border-soft: #232830;
    --topbar-bg: #05070a;
    --topbar-bg-2: #05070a;
    --topbar-text: #f1f5f9;
    --table-header-bg: #1c2028;
    --hover-bg: #1c2028;
    --link-color: #60a5fa;
    --input-border: #3a4150;
    --shadow: 0 1px 3px rgba(0,0,0,0.4);
    --read-row-bg: #12151b;
}

html {
    zoom: 0.9; /* matches the 90% browser zoom the user already tested and confirmed looks right */
}

* { box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    margin: 0;
    transition: background 0.15s ease, color 0.15s ease;
}

.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: linear-gradient(135deg, var(--topbar-bg), var(--topbar-bg-2));
}
.login-box {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    width: 340px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    position: relative;
}
.login-box h1 { margin: 0 0 4px; font-size: 22px; color: var(--text); }
.login-box .subtitle { margin: 0 0 20px; color: var(--muted-text); font-size: 13px; }
.login-box label { display: block; margin-top: 12px; font-size: 13px; color: var(--muted-text); }
.login-box input {
    width: 100%; padding: 10px; margin-top: 4px;
    border: 1px solid var(--input-border); border-radius: 6px; font-size: 14px;
    background: var(--bg); color: var(--text);
}
.login-box button {
    width: 100%; margin-top: 20px; padding: 11px;
    background: #dc2626; color: white; border: none; border-radius: 6px;
    font-size: 15px; cursor: pointer;
}
.login-box button:hover { background: #b91c1c; }
.error-box {
    background: #fee2e2; color: #991b1b; padding: 10px; border-radius: 6px;
    font-size: 13px; margin-bottom: 10px;
}

.topbar {
    background: var(--topbar-bg); color: var(--topbar-text);
    padding: 16px 24px; display: flex; justify-content: space-between; align-items: center;
    gap: 24px;
}
.topbar h1 { font-size: 18px; margin: 0; white-space: nowrap; color: var(--topbar-text); }
.topnav { display: flex; gap: 20px; flex: 1; }
.nav-link {
    color: #cbd5e1; text-decoration: none; font-size: 14px; padding: 4px 0;
    border-bottom: 2px solid transparent;
}
.nav-link:hover { color: white; }
.nav-link.active { color: white; border-bottom-color: #dc2626; font-weight: 600; }
.topbar-right { display: flex; gap: 16px; align-items: center; font-size: 13px; white-space: nowrap; }
.btn-link { color: #93c5fd; text-decoration: none; }
.btn-link:hover { text-decoration: underline; }

.theme-toggle {
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
    color: var(--topbar-text); border-radius: 20px; width: 34px; height: 34px;
    font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center;
    line-height: 1;
}
.theme-toggle:hover { background: rgba(255,255,255,0.18); }

.dot {
    display: inline-block; width: 12px; height: 12px; border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.03);
}
.dot-green { background: #22c55e; box-shadow: 0 0 8px rgba(34,197,94,0.6); }
.dot-red { background: #ef4444; box-shadow: 0 0 8px rgba(239,68,68,0.5); }
.dot-gray { background: #cbd5e1; }

.hint { color: var(--muted-text); font-size: 13px; margin: -8px 0 20px; max-width: 700px; }
.error-cell { color: #f87171; font-size: 12px; max-width: 320px; }
.accounts-table td { vertical-align: middle; }
.accounts-table code {
    background: var(--table-header-bg); padding: 2px 6px; border-radius: 4px; font-size: 12px;
    color: var(--text);
}

.toolbar { padding: 16px 24px 0; }
.filters { display: flex; gap: 10px; }
.filters select, .filters input {
    padding: 8px 10px; border: 1px solid var(--input-border); border-radius: 6px; font-size: 13px;
    background: var(--card-bg); color: var(--text);
}
.filters input[type="text"] { flex: 1; min-width: 260px; }
.filters button {
    padding: 8px 16px; background: #dc2626; color: white; border: none;
    border-radius: 6px; cursor: pointer;
}
.filters button:hover { background: #b91c1c; }

.table-actions {
    padding: 12px 24px; display: flex; align-items: center; gap: 16px;
}
.select-all { font-size: 13px; color: var(--muted-text); display: flex; align-items: center; gap: 6px; }
.btn-danger {
    background: #dc2626; color: white; border: none; padding: 8px 14px;
    border-radius: 6px; cursor: pointer; font-size: 13px;
}
.btn-danger:hover { background: #b91c1c; }

.bulk-actions-bar {
    display: flex; align-items: center; gap: 10px; background: var(--card-bg);
    border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px;
    box-shadow: var(--shadow); opacity: 1; transition: opacity 0.15s ease;
}
.bulk-actions-bar.hidden { display: none; }
.selected-count-label { font-size: 13px; color: var(--muted-text); font-weight: 600; padding-left: 4px; }

.doc-table {
    width: calc(100% - 48px); margin: 0 24px 40px;
    border-collapse: collapse; background: var(--card-bg); border-radius: 10px; overflow: hidden;
    box-shadow: var(--shadow);
}
.doc-table-auto { table-layout: auto; }
.table-scroll-wrapper { overflow-x: auto; margin: 0 24px 40px; }
.table-scroll-wrapper .doc-table { margin: 0; width: 100%; }

.doc-table th {
    background: var(--table-header-bg); text-align: left; padding: 9px 10px; font-size: 11.5px;
    text-transform: uppercase; color: var(--muted-text); border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.doc-table td {
    padding: 8px 10px; font-size: 12.5px; border-bottom: 1px solid var(--border-soft); vertical-align: middle;
}
.doc-table tr:hover td { background: var(--hover-bg); }
.doc-table a { color: var(--link-color); text-decoration: none; font-weight: 500; }
.doc-table a:hover { text-decoration: underline; }
.empty { text-align: center; color: var(--muted-text); padding: 40px !important; }

/* Short, structured values — sized naturally to their content, always one line */
.cell-fixed { white-space: nowrap; }

/* Free-text columns (account/subject/recipients) — capped width with ellipsis,
   since these can be arbitrarily long; everything else sizes to content */
.truncate-cell { max-width: 190px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.truncate-cell a {
    display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
    white-space: nowrap; vertical-align: bottom;
}

/* Notes naturally absorbs whatever width is left over, all the way to the
   right edge of the table — no artificial gap, no percentage tuning needed */
.notes-cell { width: 100%; }
.notes-cell .note-input { width: 100%; min-width: 90px; }

.row-unread td { font-weight: 700; background: var(--card-bg); }
.row-unread .badge, .row-unread .status { font-weight: 600; }
.row-unread a { color: var(--text); }
.row-unread a:hover { color: var(--link-color); }

.row-read td { background: var(--read-row-bg); font-weight: 400; }
.row-read .badge, .row-read .status { font-weight: 500; }

.star-btn {
    background: none; border: none; cursor: pointer; font-size: 21px; line-height: 1;
    color: var(--muted-text); padding: 2px 4px;
}
.star-btn:hover { color: #f59e0b; }
.star-btn.star-active { color: #f59e0b; }
.star-btn-large { font-size: 30px; }

.detail-actions { display: inline-block; margin-right: 10px; margin-top: 10px; }

.auto-trash-toggle {
    position: relative; display: inline-flex; align-items: center;
    width: 72px; height: 28px; border-radius: 14px; cursor: pointer;
    padding: 0 8px; font-weight: 700; font-size: 11px; color: white;
    letter-spacing: 0.3px; transition: background 0.2s ease; user-select: none;
}
.auto-trash-toggle.toggle-off { background: #dc2626; justify-content: flex-end; }
.auto-trash-toggle.toggle-on { background: #16a34a; justify-content: flex-start; }
.auto-trash-toggle .toggle-knob {
    position: absolute; width: 20px; height: 20px; border-radius: 50%; background: white;
    top: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.3); transition: left 0.2s ease, right 0.2s ease;
}
.auto-trash-toggle.toggle-off .toggle-knob { left: 4px; }
.auto-trash-toggle.toggle-on .toggle-knob { right: 4px; }
.auto-trash-toggle .toggle-label { pointer-events: none; }
.auto-trash-toggle.toggle-loading { opacity: 0.6; cursor: wait; }
.auto-trash-toggle-large { width: 100px; height: 38px; font-size: 13px; }
.auto-trash-toggle-large .toggle-knob { width: 30px; height: 30px; }

.auto-trash-hint { font-size: 11px; color: var(--muted-text); margin-top: 6px; max-width: 320px; }

.btn-sm { padding: 8px 12px; font-size: 12px; }
.unread-filter {
    display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted-text);
    white-space: nowrap;
}

.amount-cell { white-space: nowrap; }

.badge {
    padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 600;
    background: #e2e8f0; color: #334155; white-space: nowrap;
}
.badge-invoice { background: #dbeafe; color: #1e40af; }
.badge-contract { background: #ede9fe; color: #5b21b6; }
.badge-proforma { background: #fef3c7; color: #92400e; }
.badge-payment_notice { background: #fee2e2; color: #991b1b; }
.badge-purchase_order { background: #dcfce7; color: #166534; }

.status { font-size: 11px; padding: 2px 8px; border-radius: 10px; white-space: nowrap; }
.status-classified { background: #dcfce7; color: #166534; }
.status-pending { background: #fef9c3; color: #854d0e; }
.status-irrelevant { background: #f1f5f9; color: #64748b; }
.status-error { background: #fee2e2; color: #991b1b; }

.detail-container { max-width: 900px; margin: 24px auto; padding: 0 24px 60px; }
.back-link { display: inline-block; margin-bottom: 16px; }
.detail-header { display: flex; align-items: center; gap: 12px; }
.detail-header h2 { margin: 0; color: var(--text); }

.meta-table { width: 100%; margin: 16px 0; border-collapse: collapse; background: var(--card-bg); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); }
.meta-table td { padding: 8px 12px; font-size: 13px; border-bottom: 1px solid var(--border-soft); }
.meta-table td:first-child { color: var(--muted-text); width: 240px; }

.ai-summary {
    background: rgba(59,130,246,0.1); border-left: 3px solid #3b82f6; padding: 12px 16px;
    margin: 16px 0; font-size: 13px; border-radius: 0 6px 6px 0; color: var(--text);
}

h2, h3 { color: var(--text); }

.email-body { background: var(--card-bg); border-radius: 8px; padding: 0; margin-bottom: 24px; }
.email-html-frame { width: 100%; height: 400px; border: 1px solid var(--border); border-radius: 8px; background: white; }
.email-text {
    white-space: pre-wrap; word-wrap: break-word; padding: 16px; margin: 0;
    font-family: inherit; font-size: 13px; border: 1px solid var(--border); border-radius: 8px;
    background: var(--card-bg); color: var(--text);
}

.pdf-block { margin-bottom: 20px; }
.pdf-title { font-size: 13px; margin-bottom: 6px; color: var(--muted-text); }
.pdf-embed { width: 100%; height: 600px; border: 1px solid var(--border); border-radius: 8px; }

.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 1000;
    display: flex; align-items: center; justify-content: center;
}
.modal-overlay.hidden { display: none; }
.modal-box {
    background: var(--card-bg); border-radius: 10px; width: 90%; max-width: 900px;
    height: 85vh; display: flex; flex-direction: column; overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.modal-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 16px; border-bottom: 1px solid var(--border); font-weight: 600; color: var(--text);
}
.modal-header-actions { display: flex; align-items: center; gap: 16px; }
.modal-close {
    background: none; border: none; font-size: 18px; cursor: pointer; color: var(--muted-text);
    line-height: 1; padding: 4px 8px;
}
.modal-close:hover { color: var(--text); }
.modal-pdf-frame { flex: 1; border: none; width: 100%; background: white; }

.pdf-chip {
    display: inline-flex; align-items: center; gap: 6px; background: var(--table-header-bg);
    border: 1px solid var(--border); border-radius: 20px; padding: 6px 14px; font-size: 13px;
    color: var(--text); cursor: pointer; margin: 8px 6px 0 0;
}
.pdf-chip:hover { background: var(--hover-bg); border-color: var(--link-color); }
.thread-attachments { margin-top: 4px; }

.thread {
    border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-bottom: 24px;
    background: var(--card-bg);
}
.thread-message { border-bottom: 1px solid var(--border-soft); }
.thread-message:last-child { border-bottom: none; }
.thread-message-header {
    display: flex; gap: 14px; align-items: center; padding: 12px 16px; cursor: pointer;
}
.thread-message-header:hover { background: var(--hover-bg); }
.thread-message.unread .thread-message-header { font-weight: 700; color: var(--text); }
.thread-message.collapsed .thread-message-header { color: var(--muted-text); font-weight: 400; }
.thread-from { min-width: 170px; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-subject-preview {
    flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted-text);
    font-weight: 400;
}
.thread-date { font-size: 12px; color: var(--muted-text); white-space: nowrap; }
.thread-message-body { display: none; padding: 4px 16px 16px; }
.thread-message.expanded .thread-message-body { display: block; }
.thread-message.expanded .thread-message-header { border-bottom: 1px solid var(--border-soft); }

.reply-form { display: flex; flex-direction: column; gap: 6px; max-width: 720px; margin-bottom: 24px; }
.reply-form label { font-size: 12px; color: var(--muted-text); margin-top: 8px; text-transform: uppercase; letter-spacing: 0.3px; }
.reply-form input, .reply-form textarea {
    padding: 10px 12px; border: 1px solid var(--input-border); border-radius: 8px;
    background: var(--card-bg); color: var(--text); font-size: 14px; font-family: inherit;
}
.reply-form textarea { resize: vertical; }
.reply-send-btn { align-self: flex-start; margin-top: 10px; }

.reply-editor {
    min-height: 260px; max-height: 500px; overflow-y: auto; overflow-x: auto; padding: 12px 14px;
    border: 1px solid var(--input-border); border-radius: 8px; background: var(--card-bg);
    color: var(--text); font-size: 14px; line-height: 1.5;
}
.reply-editor:focus { outline: none; border-color: var(--link-color); }
.reply-signature-hint { margin-top: 12px; }
.reply-actions-row { display: flex; gap: 10px; margin-top: 16px; margin-bottom: 24px; }
.reply-editor .gmail_quote, .reply-editor .outlook_quote { margin-top: 16px; }
.reply-editor .detected-signature { margin-top: 8px; color: var(--muted-text); }

.quoted-toggle-btn {
    display: inline-block; background: var(--table-header-bg); border: 1px solid var(--border);
    border-radius: 14px; padding: 3px 12px; font-size: 13px; color: var(--muted-text);
    cursor: pointer; margin-top: 10px; user-select: none;
}
.quoted-toggle-btn:hover { background: var(--hover-bg); }

.generate-text-buttons { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }

#pdfAttachmentChip { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }

.generate-text-modal-box { max-width: 440px; height: auto; }
.generate-text-modal-body { padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.generate-text-modal-body label {
    font-size: 12px; color: var(--muted-text); margin-top: 8px; text-transform: uppercase; letter-spacing: 0.3px;
}
.generate-text-modal-body input {
    padding: 10px 12px; border: 1px solid var(--input-border); border-radius: 8px;
    background: var(--card-bg); color: var(--text); font-size: 14px; font-family: inherit;
}
.generate-text-modal-body button { margin-top: 16px; align-self: flex-start; }

.reply-attach-label {
    display: block; font-size: 12px; color: var(--muted-text); margin: 4px 0 6px;
    text-transform: uppercase; letter-spacing: 0.3px;
}
.reply-attachment-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.attachment-chip-static {
    display: inline-flex; align-items: center; background: var(--table-header-bg);
    border: 1px solid var(--border); border-radius: 20px; padding: 6px 14px; font-size: 13px;
    color: var(--text);
}

.thread-server-actions {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border-soft);
}
.thread-server-state { font-size: 12px; color: var(--muted-text); }

.info-container { max-width: 1100px; }
.info-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 20px;
}
.info-card {
    background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px;
    padding: 18px 20px; box-shadow: var(--shadow);
}
.info-card-wide { grid-column: 1 / -1; }
.info-card h3 { margin: 0 0 14px; font-size: 15px; color: var(--text); }
.info-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 7px 0; font-size: 13px; border-bottom: 1px solid var(--border-soft);
}
.info-row:last-child { border-bottom: none; }
.info-row span { color: var(--muted-text); }
.info-row strong { color: var(--text); font-weight: 600; }
.info-row-highlight { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--border); }
.info-row-highlight strong { font-size: 16px; color: #16a34a; }
.info-hint { font-size: 12px; color: var(--muted-text); margin: 0 0 14px; line-height: 1.5; }
.text-green { color: #16a34a !important; }

@media (max-width: 900px) {
    .info-grid { grid-template-columns: 1fr; }
}

.note-input {
    width: 100%; min-width: 60px; border: none; border-bottom: 1px dashed transparent;
    background: transparent; color: var(--text); font-size: 11.5px; padding: 3px 2px;
    font-family: inherit; transition: border-color 0.2s ease, background 0.2s ease;
}
.note-input::placeholder { color: var(--muted-text); opacity: 0.7; }
.note-input:hover { border-bottom-color: var(--border); }
.note-input:focus {
    outline: none; border-bottom: 1px solid var(--link-color); background: var(--hover-bg);
    border-radius: 4px 4px 0 0;
}
.note-input.note-saved { border-bottom: 1px solid #22c55e; }
.note-input.note-error { border-bottom: 1px solid #ef4444; }
.note-input-detail {
    width: 100%; min-height: 60px; resize: vertical; border: 1px solid var(--border);
    border-radius: 8px; background: var(--card-bg); color: var(--text); font-size: 13px;
    padding: 10px 12px; font-family: inherit; transition: border-color 0.2s ease;
}
.note-input-detail:focus {
    outline: none; border-color: var(--link-color);
}
.note-input-detail.note-saved { border-color: #22c55e; }
.note-input-detail.note-error { border-color: #ef4444; }
.note-hint { font-size: 11px; color: var(--muted-text); margin-top: 4px; }

.accounts-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 16px; }

.btn-primary {
    display: inline-block; background: #dc2626; color: white; border: none;
    padding: 10px 18px; border-radius: 8px; cursor: pointer; font-size: 14px;
    text-decoration: none; font-weight: 600; white-space: nowrap;
}
.btn-primary:hover { background: #b91c1c; }

.btn-secondary {
    display: inline-block; background: transparent; color: var(--text);
    border: 1px solid var(--input-border); padding: 10px 18px; border-radius: 8px;
    cursor: pointer; font-size: 14px; font-weight: 600; white-space: nowrap;
}
.btn-secondary:hover { background: var(--hover-bg); }
.btn-secondary-success { border-color: #22c55e; color: #22c55e; }

.wizard-btn-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 14px 0 8px; }
.wizard-note { font-size: 12px; color: var(--muted-text); margin: 0; }
.wizard-step-text { margin: 0 0 4px; }

.wizard-container { max-width: 640px; }
.wizard-form { display: flex; flex-direction: column; gap: 6px; margin: 16px 0; max-width: 420px; }
.wizard-form label { font-size: 13px; color: var(--muted-text); }
.wizard-form input {
    padding: 10px 12px; border: 1px solid var(--input-border); border-radius: 8px;
    background: var(--card-bg); color: var(--text); font-size: 14px;
}
.wizard-form button {
    margin-top: 8px; align-self: flex-start; background: #dc2626; color: white; border: none;
    padding: 10px 20px; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 600;
}
.wizard-form button:hover { background: #b91c1c; }

.wizard-step {
    background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px;
    padding: 18px 20px; margin-bottom: 16px;
}
.wizard-step-number {
    display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.5px; color: #dc2626; margin-bottom: 8px;
}
.wizard-open-btn { margin-top: 10px; }
.wizard-error { margin-bottom: 16px; }

.wizard-success { text-align: center; padding: 40px 20px; }
.wizard-success-icon { font-size: 48px; margin-bottom: 12px; }
.wizard-success h3 { margin: 0 0 8px; }
.wizard-success p { color: var(--muted-text); margin-bottom: 20px; }

code {
    background: var(--table-header-bg); padding: 2px 6px; border-radius: 4px;
    font-size: 12px; color: var(--text);
}

.success-box { background:#ecfdf5; border:1px solid #a7f3d0; color:#065f46; padding:10px 12px; border-radius:6px; margin:10px 0 16px; }
[data-theme="dark"] .success-box { background:#052e25; border-color:#065f46; color:#a7f3d0; }

/* v3.4 proxy pool + embedded Chromium login */
.two-column-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;align-items:start}.detail-card form label{display:block;font-weight:600;margin:12px 0 6px}.detail-card input,.detail-card select,.detail-card textarea{box-sizing:border-box;width:100%;padding:10px 12px;border:1px solid var(--border,#d8dde3);border-radius:7px;background:var(--card-bg,#fff);color:var(--text,#1a1a1a)}.detail-card textarea{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;resize:vertical}.success-box,.error-box{padding:12px 15px;border-radius:7px;margin:12px 0}.success-box{background:#eaf7ee;border:1px solid #b8dfc3;color:#1f6b35}.error-box{background:#fff0f0;border:1px solid #e6b8b8;color:#9b2727}.login-browser-page{max-width:1500px;margin:0 auto;padding:22px}.login-browser-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.novnc-frame{display:block;width:100%;height:calc(100vh - 245px);min-height:650px;border:1px solid var(--border,#d8dde3);border-radius:9px;background:#111;margin:14px 0}.accounts-table form{margin:0}.accounts-table code{white-space:nowrap}@media(max-width:900px){.two-column-grid{grid-template-columns:1fr}.novnc-frame{height:70vh;min-height:500px}}

/* Inline (cid:) images from the original message are never downloaded, so
   they are replaced with this marker instead of a broken-image icon. */
.inline-img-placeholder{
  display:inline-block;
  padding:1px 6px;
  margin:0 2px;
  border:1px dashed var(--border, #c9ccd1);
  border-radius:4px;
  font-size:11px;
  line-height:1.5;
  color:var(--text-muted, #6b7280);
  background:var(--bg-subtle, #f3f4f6);
  vertical-align:middle;
}
.proxy-result{margin-left:8px;font-size:12px;white-space:nowrap;}
.account-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.account-actions form{margin:0}
