.email-panel{min-width:0}.email-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:8px 0 24px}.email-heading h1,.email-heading h2{margin:6px 0}.email-heading p,.email-hint{color:#9daeba;line-height:1.6}.email-eyebrow{color:#26cfcd;font-size:11px;font-weight:800;letter-spacing:.1em}.email-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:20px 0}.email-field{display:flex;flex-direction:column;gap:9px;font-size:13px;font-weight:600;min-width:0}.email-panel input:not([type=checkbox]),.email-panel select,.email-panel textarea{background:#101821!important;color:#e6eff6!important;border:1px solid #344352!important;border-radius:8px;padding:12px;min-width:0;max-width:100%}.email-panel select{min-height:43px}.email-card-list{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:22px}.email-box-card{display:flex;flex-direction:column;align-items:flex-start;gap:7px;padding:18px;background:#121e28;border:1px solid #334651;border-radius:12px;color:#e6eff6;text-align:left;min-width:180px;max-width:100%;overflow-wrap:anywhere}.email-box-card small{color:#7fcfc7}.email-panel details{border-top:1px solid #334352;padding:16px 0}.email-panel summary{font-weight:700;cursor:pointer}.email-actions,.email-editor-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:18px 0}.email-actions select{flex:1;min-width:160px;max-width:450px}.email-check{display:flex;gap:10px;align-items:center;margin:18px 0}.email-tabs{display:flex;gap:10px;padding:0 0 15px;border-bottom:1px solid #334352;margin-bottom:22px}.email-tabs button,.email-editor-toolbar button,#emailPreviewMobile{border:1px solid #344654;background:#17212c;color:#d8e6ef;border-radius:7px;padding:10px 14px;cursor:pointer}.email-tabs [aria-selected=true]{border-color:#11b6b5;background:#123b3c;color:#43dfd9}.email-editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.email-editor-grid textarea{min-height:540px;resize:vertical;font-family:Consolas,monospace!important;font-size:13px;line-height:1.6}.email-preview{background:#e9eef2;border-radius:12px;padding:14px;min-width:0;color:#1e293b}.email-preview .email-actions{margin:0 0 12px;font-size:12px;justify-content:space-between}.email-preview iframe{border:0;background:white;width:100%;height:500px;border-radius:7px;display:block;margin:auto}.email-preview iframe.mobile-preview{max-width:360px}.email-import-card{padding:22px;border:1px solid #344654;background:#12202a;border-radius:12px;margin:18px 0}.email-table-wrap{overflow:auto;max-height:60vh}.email-table-wrap table{min-width:650px}.email-panel [role=status]{white-space:pre-wrap;margin-top:16px;overflow-wrap:anywhere}.email-panel section[hidden]{display:none}.email-message-header{border-top:1px solid #4a5963;margin-top:12px;padding-top:10px;display:flex;flex-wrap:wrap;gap:6px}.email-message-header small{display:block;flex-basis:100%;opacity:.7;overflow-wrap:anywhere}.email-spam-subitem{margin-left:18px!important;opacity:.85;width:calc(100% - 18px)!important}.email-chat-tools{padding:10px 16px;background:#152631;display:flex;justify-content:space-between;align-items:center;gap:10px}.email-chat-tools strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.email-panel button:disabled{opacity:.55;cursor:default}@media(max-width:1100px){.email-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.email-editor-grid{grid-template-columns:1fr}}@media(max-width:650px){.email-form-grid{grid-template-columns:1fr}.email-heading{align-items:flex-start;flex-direction:column}.email-tabs{overflow:auto}.email-tabs button{white-space:nowrap}.email-actions{align-items:stretch}.email-actions>*{max-width:100%}.email-editor-grid textarea{min-height:300px}}

.email-chat-tools{flex-wrap:wrap;flex-shrink:0}.email-reply-tools{padding:10px;border:1px solid #344654;border-radius:8px;margin-bottom:10px}.email-reply-tools .email-actions{margin:0 0 8px}.email-reply-tools [role=status]{overflow-wrap:anywhere;font-size:13px}.email-reply-tools small{opacity:.7}.email-trust-rule{display:flex;align-items:center;gap:12px;margin:8px 0;overflow-wrap:anywhere}.email-spam-reason{color:#ffc674;opacity:1!important}
.email-mailbox-dialog{box-sizing:border-box;max-width:94vw;min-width:0;color:#e7eef5;background:#171c24;border:1px solid #405365;border-radius:14px;padding:24px;width:min(1200px,94vw);max-height:92vh;overflow:auto}.email-mailbox-dialog::backdrop{background:#0009}.email-mailbox-dialog .email-heading{margin-bottom:16px}.email-mailbox-dialog .email-table-wrap{max-height:48vh}.email-mailbox-dialog table{color:inherit!important;background:transparent!important}.email-mailbox-dialog input,.email-mailbox-dialog select{background:#202a35;color:#eef6ff;border:1px solid #425366;border-radius:6px;padding:8px}.email-html-view{width:min(700px,100%);min-width:260px;margin-top:12px}.email-html-view iframe{width:100%;height:480px;border:0;background:white;border-radius:8px}.email-html-view small{display:block;font-size:11px}.email-signature-preview{background:white;color:#20262f;padding:20px;margin-top:12px;border-radius:8px}.email-signature-preview img{max-width:320px;max-height:180px;object-fit:contain}.email-answered{display:block;color:#50d7bd;margin-top:8px}#emailCampaignSMTPFields[hidden],#emailCampaignSMTPFallback[hidden],#emailSignaturePreviewContent[hidden]{display:none!important}#emailSavedBoxPicker{min-width:240px;max-width:100%}#emailOpenMailbox{width:100%;margin:8px 0}
/* Persistent campaign opt-outs are visible even when the contact is reimported. */
.email-contact-suppressed td{background:rgba(219,130,44,.09)!important}
.email-suppressed-badge{display:inline-block;color:#eab676;border:1px solid #aa793c;border-radius:6px;padding:4px 8px;font-weight:600}
.email-contact-suppressed small,#emailResultRows small{display:block;margin-top:5px;opacity:.8}
#emailBrevoWebhookURL{font-family:monospace;min-width:0;width:100%}
.email-form-grid .email-field>input,.email-form-grid .email-field>select,.email-form-grid .email-field>textarea{box-sizing:border-box;min-width:0;max-width:100%;width:100%}
.email-sidebar-folders{margin:3px 0 12px 19px;padding-left:5px;border-left:1px solid #344654}
.email-sidebar-folders .email-folder-item{margin:0!important;width:100%!important;min-height:31px;font-size:12px;opacity:.9}
.email-sidebar-folders .email-folder-item:hover{opacity:1;background:rgba(35,198,196,.1)}
.email-presentation [hidden],.email-text-body[hidden]{display:none!important}
.email-presentation .email-html-view{margin-top:8px;max-width:100%;min-width:0}
.email-presentation iframe{height:400px;max-width:100%}
.email-html-status{display:block;font-size:12px;line-height:1.5;opacity:.8}
.email-html-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
.message-bubble:has(.email-presentation iframe){width:680px;min-width:0}
.email-inbox-bulk{flex-shrink:0;padding:10px 12px;border-bottom:1px solid #344654;background:#151c25;font-size:12px}
.email-inbox-bulk>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.email-inbox-bulk label{display:flex;align-items:center;gap:6px}
#emailInboxBulkActions{margin-top:8px}
#emailInboxBulkResult{line-height:1.5;margin-top:6px;overflow-wrap:anywhere}
.email-inbox-select{flex:none;width:16px;height:16px;margin-right:8px;accent-color:#13b9bd;cursor:pointer}
.email-inbox-answered{color:#50d7bd;margin-left:5px;flex-shrink:0}
.email-inbox-delete-dialog{width:min(480px,92vw);max-height:85vh;overflow:auto;color:#e7eef5;background:#171c24;border:1px solid #405365;border-radius:12px;padding:22px}
.email-inbox-delete-dialog::backdrop{background:#0009}
