/* Outbound work stays in its own panel and never replaces the incoming stream. */
.out-shell{background:var(--panel);border:1px solid var(--line);border-radius:12px;overflow:hidden}.out-tabs{display:flex;align-items:center;gap:30px;padding:0 26px;border-bottom:1px solid var(--line);background:var(--panel)}.out-tabs>button{display:flex;align-items:center;gap:9px;padding:20px 0 18px;border-bottom:2px solid transparent;background:none;color:var(--text-secondary,#8290a3);font:500 13px var(--font)}.out-tabs>button[aria-selected=true]{border-color:#647ddd;color:var(--accent-text,#4e66c1)}.out-tabs>button>svg{width:17px;height:17px}.out-tabs>button>span{border-radius:4px;padding:2px 5px;background:var(--surface-muted,#eff2f9);color:var(--text-secondary,#8c9ab0);font-size:10px}#out-error{padding:14px 25px;background:var(--surface-soft,#fff6f1);color:var(--danger-text,#a15f43);line-height:1.8;font-size:12px;border-bottom:1px solid var(--border-soft,#f0ded2)}.out-compose-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(290px,1fr)}.out-compose{padding:26px;min-width:0;border-right:1px solid var(--line)}.out-section-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:26px}.out-section-heading h2,.out-list-heading h2{font-size:16px;font-weight:600;margin:0 0 8px;line-height:1.6}.out-section-heading p,.out-list-heading p{font-size:11px;color:var(--text-secondary,#8a99ac);line-height:1.8;margin:0}.out-draft-tag{white-space:nowrap;align-self:flex-start;color:var(--text-secondary,#91a0b3);font-size:10px;border:1px solid var(--border-soft,#e5ebf3);border-radius:4px;padding:4px 7px;margin-top:4px}.out-form-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}.out-compose .form-group{margin-bottom:21px}.out-compose label span{color:var(--text-soft,#9eabbb);font-size:10px;margin-left:6px;font-weight:400}.out-compose small,.out-shell .form-group>small,.modal .form-group>small{display:block;font-size:10px;color:var(--text-secondary,#91a0b2);margin-top:8px;line-height:1.8}.out-recipients{resize:vertical;min-height:82px;line-height:1.8!important;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px!important}.out-editor-label{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.out-editor-label>label{font-size:12px;white-space:nowrap}.out-modes{display:flex;background:var(--surface-soft,#f2f5fa);border:1px solid var(--border-soft,#e8edf5);padding:3px;border-radius:6px;gap:2px}.out-modes button{background:none;color:var(--text-secondary,#8a99ac);padding:6px 9px;font-size:10px;border-radius:4px;white-space:nowrap}.out-modes button[aria-selected=true]{background:var(--panel);color:var(--accent-text,#536fc8);box-shadow:0 1px 4px #0b214612}.out-body-source{min-height:325px!important;font:12px/1.9 ui-monospace,SFMono-Regular,Menlo,monospace!important;resize:vertical}.out-editor-foot{display:flex;align-items:center;justify-content:space-between;gap:14px;font-size:10px;color:var(--text-soft,#9aa8b8);margin-top:11px;line-height:1.7}.out-editor-foot .link-button{font-size:10px;flex-shrink:0}.out-compose-actions{margin-top:24px;padding-top:22px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:15px;align-items:center}.out-compose-actions>div{display:flex;align-items:center;gap:14px}.out-compose-actions>div>span{color:var(--text-secondary,#91a0b3);font-size:10px;max-width:150px;line-height:1.7}.out-compose-actions .btn{white-space:nowrap}.out-preview{padding:26px;min-width:0;background:var(--panel)}.out-preview .out-section-heading{margin-bottom:22px}.out-envelope{display:grid;grid-template-columns:46px minmax(0,1fr);gap:13px 10px;padding:19px;background:var(--panel);border:1px solid var(--border-soft,#e5ebf3);border-radius:8px 8px 0 0;font-size:11px;line-height:1.7}.out-envelope>span{color:var(--text-soft,#99a6b6)}.out-envelope>strong{font-weight:500;color:var(--text-secondary,#6c7e97);overflow-wrap:anywhere}.out-preview-empty{display:flex;align-items:center;justify-content:center;flex-direction:column;border:1px solid var(--border-soft,#e5ebf3);border-top:0;background:var(--panel);min-height:370px;border-radius:0 0 8px 8px;color:var(--text-soft,#a9b5c5);text-align:center;font-size:12px;line-height:1.9}.out-preview-empty>svg{height:34px;width:34px;color:var(--text-soft,#ccd6e3);margin-bottom:2px}.out-preview iframe{display:block;background:var(--panel);border:1px solid var(--border-soft,#e5ebf3);border-top:0;width:100%;height:440px;border-radius:0 0 8px 8px}.out-preview-note{color:var(--text-soft,#9daabc);font-size:10px;line-height:1.9;margin:15px 2px 0}.out-preview [hidden]{display:none!important}.out-compose #out-compose-error:empty{display:none}.out-compose #out-compose-error{margin-top:15px}.out-list-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:25px 26px;border-bottom:1px solid var(--line)}.out-list-heading .link-button{margin-bottom:12px;font-size:11px}.out-list-heading .button-row{flex-wrap:wrap;justify-content:flex-end}.out-live-label{display:flex;align-items:center;gap:7px;font-size:10px;color:var(--text-soft,#94a3b6);white-space:nowrap}.out-live-label .dot{width:6px;height:6px;background:#85b7a0}.out-empty{padding:70px 25px!important}.out-empty>svg{height:28px;width:28px;margin-bottom:8px;color:var(--text-soft,#acb9cb)}.out-empty p{max-width:390px;line-height:1.9;margin:0 auto}.out-account-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:19px;padding:24px 26px}.out-account-card{border:1px solid var(--border-soft,#e3eaf3);border-radius:9px;padding:20px;min-width:0}.out-account-title{display:flex;gap:11px;align-items:center}.out-account-title>div:nth-child(2){flex:1;min-width:0}.out-provider-mark{width:35px;height:35px;border-radius:9px;background:var(--surface-soft,#f0f3fb);color:var(--text-secondary,#7e93c0);display:grid;place-items:center;font-size:17px;font-weight:600;flex-shrink:0}.out-provider-mark>svg{width:18px;height:18px}.out-account-title h3{font-size:13px;line-height:1.6;font-weight:600;margin:0 0 2px;overflow-wrap:anywhere}.out-account-title>div>span{font-size:10px;color:var(--text-soft,#9ba9bb);overflow-wrap:anywhere}.out-account-address{margin-top:19px}.out-account-address .email-copy{font-size:12px}.out-account-limits{display:flex;gap:20px;margin:18px 0;padding:15px 0;border-top:1px solid var(--border-soft,#edf1f7);border-bottom:1px solid var(--border-soft,#edf1f7);color:var(--text-soft,#95a3b5);font-size:10px}.out-account-limits strong{color:var(--text-secondary,#5c7391);font-size:14px;display:block;font-weight:600;margin-bottom:5px}.out-account-state{color:var(--text-secondary,#8798ac);font-size:10px;line-height:1.9;min-height:20px;margin:0 0 17px;overflow-wrap:anywhere}.out-account-actions{display:flex;flex-wrap:wrap;gap:6px}.out-account-actions .btn{padding:7px 10px;font-size:10px}.out-status{font-size:10px;padding:5px 8px;border:1px solid var(--border-soft,#e8edf5);background:var(--surface-soft,#f6f8fc);border-radius:5px;color:var(--text-secondary,#8798af);display:inline-flex;align-items:center;white-space:nowrap;line-height:1.5}.out-status-running,.out-status-sending{color:var(--accent-text,#607dcb);background:var(--surface-soft,#f0f4ff);border-color:var(--border-soft,#dce6ff)}.out-status-completed,.out-status-accepted{color:var(--success-text,#659481);background:var(--surface-soft,#f0f8f4);border-color:var(--border-soft,#deeee5)}.out-status-attention,.out-status-uncertain,.out-status-failed{color:var(--warning-text,#b28559);background:var(--warning-bg,#fff8ef);border-color:var(--border-soft,#f4e7d5)}.out-status-paused,.out-status-cancelled{color:var(--text-secondary,#9499a4);background:var(--surface-soft,#f5f6f8)}.out-table-wrap{overflow-x:auto}.out-table{border-collapse:collapse;width:100%;font-size:11px;text-align:left}.out-table th{padding:15px 22px;background:var(--panel);color:var(--text-soft,#98a6b8);font-size:10px;font-weight:500;border-bottom:1px solid var(--line);white-space:nowrap}.out-table td{padding:20px 22px;color:var(--text-secondary,#73859c);border-bottom:1px solid var(--border-soft,#edf1f6);vertical-align:middle;line-height:1.8}.out-table tr:last-child td{border-bottom:0}.out-table td:first-child{min-width:180px;max-width:280px;overflow-wrap:anywhere}.out-table td:nth-child(3){min-width:170px}.out-table td:last-child .button-row{flex-wrap:wrap;min-width:185px;gap:6px}.out-table .btn{font-size:10px;padding:6px 9px}.out-table small{display:block;color:var(--text-soft,#98a6b7);font-size:10px;line-height:1.8;margin-top:4px}.out-task-link{color:var(--text-secondary,#526b92);font-weight:500;text-align:left;padding:0;background:none;font-size:12px;overflow-wrap:anywhere;line-height:1.8}.out-task-link:hover{text-decoration:underline}.out-progress{width:160px;max-width:100%;height:5px;border-radius:3px;background:var(--surface-muted,#edf1f7);margin-bottom:8px;overflow:hidden}.out-progress>span{height:100%;background:#92a7d9;display:block}.out-nowrap{white-space:nowrap}.out-pagination{padding:17px 25px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;color:var(--text-soft,#96a5b7);font-size:10px;gap:15px}.out-pagination>div{display:flex;gap:8px}.out-counters{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));padding:23px 25px;gap:14px;background:var(--panel);border-bottom:1px solid var(--line)}.out-counters strong{display:block;color:var(--text-secondary,#587297);font-size:23px;font-weight:500;margin-bottom:7px}.out-counters span{font-size:10px;color:var(--text-secondary,#91a0b4)}.out-warning{margin:20px 25px;padding:17px 19px;border:1px solid var(--border-soft,#f0e4d2);background:var(--surface-soft,#fffaf3);border-radius:7px;color:var(--warning-text,#a58258);font-size:11px;line-height:1.9}.out-warning strong{font-size:12px;font-weight:500}.out-warning p{margin:6px 0 0}.out-warning .btn{margin-top:12px}.out-compose>.out-warning{margin:20px 0 0}.out-delivery-error{display:block;color:var(--danger-text,#a77d63);max-width:450px;overflow-wrap:anywhere}.out-delivery-table .email-copy{font-size:11px}.out-delivery-table td:last-child{min-width:210px}.out-review{display:grid;grid-template-columns:66px minmax(0,1fr);gap:14px;font-size:12px;line-height:1.8}.out-review>span{color:var(--text-soft,#94a3b5)}.out-review>strong{font-weight:500;color:var(--text-secondary,#5c7391);overflow-wrap:anywhere}.out-review-recipients{padding:14px 17px;margin-top:20px;background:var(--surface-soft,#f7f9fd);border:1px solid var(--border-soft,#e7edf6);border-radius:6px;color:var(--text-secondary,#7e90a9);font-size:11px;line-height:1.9;overflow-wrap:anywhere}.out-help{color:var(--text-secondary,#8c9db2);font-size:11px;line-height:1.9;margin:17px 0}.out-limit-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.out-limit-fields .form-group{margin-bottom:0}.out-form-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:24px;border-top:1px solid var(--line);padding-top:20px}#out-account-form fieldset,#out-import-form fieldset{border:0;padding:0;margin:0;min-width:0}#out-smtp-fields[hidden]{display:none}#out-editor .ql-toolbar.ql-snow{border-color:var(--border-soft,#dfe6f0);border-radius:7px 7px 0 0;background:var(--panel);padding:9px 8px}#out-editor .ql-container.ql-snow{border-color:var(--border-soft,#dfe6f0);border-radius:0 0 7px 7px;font:13px/1.8 var(--font)}#out-editor .ql-editor{min-height:290px;max-height:600px;padding:19px 20px;color:var(--text-secondary,#50657e)}#out-editor .ql-editor.ql-blank:before{font-style:normal;color:var(--text-soft,#b2bdcb);font-size:12px;left:20px}#out-editor .ql-snow .ql-stroke{stroke:#7d8da6}#out-editor .ql-snow .ql-fill{fill:#7d8da6}#out-editor .ql-snow .ql-picker{color:var(--text-secondary,#7d8da6);font-size:11px}#out-editor .ql-toolbar .ql-formats{margin-right:10px}#out-editor .ql-toolbar button{width:25px;height:25px}#out-editor .ql-tooltip{z-index:5;max-width:calc(100vw - 50px);white-space:normal}#out-editor .ql-tooltip input{max-width:180px}.out-shell button:focus-visible{outline:2px solid var(--border-soft,#7d93dc);outline-offset:3px}.out-shell button:disabled{cursor:not-allowed;opacity:.5}
@media(min-width:1550px){.out-compose-layout{grid-template-columns:minmax(0,1.5fr) minmax(350px,1fr)}.out-compose,.out-preview{padding:30px}.out-account-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1200px){.out-compose-layout{grid-template-columns:minmax(0,1.5fr) minmax(260px,1fr)}.out-compose,.out-preview{padding:21px}.out-form-grid{grid-template-columns:1fr;gap:0}.out-editor-label{align-items:flex-start;flex-direction:column}.out-compose-actions>div>span{display:none}.out-preview .out-section-heading{align-items:flex-start;flex-wrap:wrap}.out-account-title{flex-wrap:wrap}.out-account-title>.out-status{margin-left:46px}.out-table td,.out-table th{padding-left:17px;padding-right:17px}}
@media(max-width:1000px){.out-compose-layout{grid-template-columns:1fr}.out-compose{border-right:0;border-bottom:1px solid var(--line)}.out-preview{display:block}.out-preview .out-section-heading{flex-wrap:nowrap}.out-preview-empty{min-height:220px}.out-preview iframe{height:350px}.out-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.out-editor-label{align-items:center;flex-direction:row}.out-account-grid{grid-template-columns:1fr}.out-account-title>.out-status{margin-left:0}.out-account-title{flex-wrap:nowrap}.out-counters{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.out-compose-actions>div>span{display:block}.out-list-heading{align-items:flex-start;flex-wrap:wrap}}
@media(max-width:600px){.out-tabs{padding:0 16px;gap:23px}.out-tabs>button{font-size:11px;gap:6px;padding:17px 0 15px}.out-tabs>button>svg{width:15px;height:15px}.out-tabs>button>span{display:none}.out-compose,.out-preview{padding:19px 17px}.out-section-heading{margin-bottom:22px}.out-section-heading h2,.out-list-heading h2{font-size:14px}.out-section-heading p,.out-list-heading p{font-size:10px}.out-form-grid{grid-template-columns:1fr;gap:0}.out-draft-tag{font-size:9px;padding:3px 5px}.out-editor-label{flex-direction:column;align-items:flex-start;gap:9px}.out-modes{width:100%;justify-content:space-between}.out-modes button{padding:7px 10px}.out-compose-actions{gap:10px;margin-top:20px;padding-top:18px}.out-compose-actions>div>span{display:none}.out-compose-actions .btn{font-size:11px;padding:10px 12px}.out-editor-foot{font-size:9px;gap:8px}.out-editor-foot .link-button{font-size:9px}.out-body-source{min-height:285px!important}#out-editor .ql-editor{min-height:260px;padding:16px}#out-editor .ql-toolbar .ql-formats{margin-right:6px}#out-editor .ql-toolbar button{width:23px}.out-list-heading{padding:20px 17px;gap:15px}.out-list-heading .button-row{justify-content:flex-start}.out-list-heading .btn{font-size:10px;padding:8px 10px}.out-account-grid{padding:18px 16px;gap:15px}.out-account-card{padding:17px}.out-account-title h3{font-size:12px}.out-account-title .out-status{font-size:9px;padding:4px 6px}.out-provider-mark{width:31px;height:31px;border-radius:7px}.out-account-limits{gap:29px}.out-account-state{font-size:10px}.out-table th{font-size:9px}.out-table td{font-size:10px;padding-top:16px;padding-bottom:16px}.out-table td:first-child{min-width:170px}.out-table td:nth-child(3){min-width:155px}.out-table .btn{font-size:9px}.out-task-link{font-size:11px}.out-pagination{padding:15px 16px;gap:12px;flex-wrap:wrap}.out-pagination .btn{padding:6px 9px;font-size:10px}.out-counters{padding:20px 17px;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 12px}.out-counters strong{font-size:21px}.out-counters span{font-size:9px}.out-warning{margin:17px;padding:14px 15px;font-size:10px}.out-warning strong{font-size:11px}.out-limit-fields{gap:8px}.out-limit-fields label{font-size:10px}.out-limit-fields .input{padding:9px;font-size:11px}.out-preview iframe{height:320px}.out-preview-note{font-size:9px}.out-envelope{padding:16px;font-size:10px}.out-shell .out-status{font-size:9px}.out-review{grid-template-columns:55px minmax(0,1fr);font-size:11px}.out-help{font-size:10px}.out-review-recipients{font-size:10px}}

.out-account-limits{flex-wrap:wrap}.out-daily-quota strong{white-space:nowrap}.out-quota-reset{margin:-7px 0 15px;color:var(--text-soft,#98a6b7);font-size:9px;line-height:1.8}.out-waiting-notice p{overflow-wrap:anywhere}
/* Bulk recipients stay server-side; only the selected page is rendered. */
.out-field-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;font-size:12px;color:var(--text-secondary,#637b98)}.out-field-heading>label{margin:0}.out-field-heading>.link-button{font-size:10px;white-space:nowrap}.out-filter-row{display:flex;align-items:center;gap:9px;margin-bottom:11px}.out-filter-row>.input{min-width:0}.out-filter-row>input{flex:1}.out-filter-row>select{width:auto;max-width:155px}.out-filter-row>.btn{flex-shrink:0}.out-selection-list{border:1px solid var(--border-soft,#e3eaf3);border-radius:7px;max-height:204px;overflow-y:auto;background:var(--panel)}.out-selection-list>.out-help{padding:5px 14px}.out-selection-row{display:flex!important;align-items:center;gap:11px;margin:0!important;padding:11px 13px;border-bottom:1px solid var(--border-soft,#edf1f7);cursor:pointer;font-size:11px!important;font-weight:400!important}.out-selection-row:last-child{border-bottom:0}.out-selection-row:hover{background:var(--surface-soft,#f8faff)}.out-selection-row>input{accent-color:#647ddd;flex-shrink:0;width:15px;height:15px}.out-selection-row>span:nth-child(2){min-width:0;flex:1;font-size:11px;margin:0;color:var(--text-secondary,#617993)}.out-selection-row strong{display:block;overflow-wrap:anywhere;font-size:11px;font-weight:500}.out-selection-row small{margin-top:3px!important;color:var(--text-soft,#99a8ba)!important;font-size:9px!important;line-height:1.6!important;display:block}.out-selection-row>.out-selection-note{font-size:9px;color:var(--text-secondary,#8b9cb1);white-space:nowrap;margin:0}.out-unavailable{background:var(--panel);color:var(--text-soft,#a0adbd);cursor:default}.out-unavailable>span{opacity:.7}.out-import-selection{max-height:280px;margin-top:7px}.out-recipient-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:12px}.out-recipient-actions .link-button{font-size:10px;margin-left:auto}.out-recipient-actions .btn{font-size:10px}.out-recipient-input>.out-recipients{min-height:100px}.out-recipient-summary{padding:16px;border:1px solid var(--border-soft,#dfe7f2);border-radius:8px;background:var(--panel)}.out-recipient-summary>.out-field-heading>strong{font-size:12px;font-weight:500;overflow-wrap:anywhere;min-width:0}.out-recipient-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:16px 0;gap:12px}.out-recipient-counts>span{font-size:10px;color:var(--text-soft,#94a5b9)}.out-recipient-counts strong{display:block;color:var(--text-secondary,#58729a);font-size:22px;font-weight:500;margin-bottom:5px;letter-spacing:-.5px}.out-recipient-summary>.out-help{font-size:10px;margin:11px 0}.out-upload-progress{display:flex;align-items:center;gap:12px;color:var(--text-secondary,#6b82a1);font-size:10px;margin-top:14px}.out-upload-progress progress{flex:1;min-width:0;height:6px;accent-color:#819ada}.out-upload-progress progress::-webkit-progress-bar{background:var(--surface-muted,#e7edf7);border-radius:3px}.out-upload-progress progress::-webkit-progress-value{background:#839bdb;border-radius:3px}.out-list-history{max-height:440px;overflow:auto}.out-history-row{display:flex;align-items:center;gap:12px;justify-content:space-between;border-bottom:1px solid var(--border-soft,#edf1f7);padding:15px 0}.out-history-row:first-child{padding-top:0}.out-history-row:last-child{border-bottom:0}.out-history-row>div{min-width:0;flex:1}.out-history-row strong{display:block;font-size:12px;font-weight:500;overflow-wrap:anywhere;color:var(--text-secondary,#627b99)}.out-history-row small{display:block;font-size:10px;color:var(--text-soft,#94a5ba);line-height:1.8;margin-top:5px}.out-recipient-table{max-height:390px;overflow:auto;border:1px solid var(--border-soft,#e5ebf4);border-radius:6px}.out-recipient-table .out-table th{position:sticky;top:0;z-index:1}.out-recipient-table .out-table td{padding:10px 14px}.out-recipient-table .out-table th{padding:11px 14px}.out-recipient-table .out-table td:first-child{max-width:none}.out-recipient-table .out-table td:last-child{width:65px}.out-recipient-table .email-copy{font-size:11px}.out-recipient-table+.out-pagination{padding:15px 0 0;border-top:0}.out-allocation{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:6px 0}.out-allocation>span{overflow-wrap:anywhere}.out-allocation>strong{white-space:nowrap;font-weight:500;color:var(--text-secondary,#6179a1)}.out-import-results{max-height:430px;overflow:auto}.out-import-result{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;padding:13px 0;border-bottom:1px solid var(--border-soft,#edf1f7)}.out-import-result>strong{font-size:11px;font-weight:500;color:var(--text-secondary,#617b9c);overflow-wrap:anywhere;flex:1;min-width:180px}.out-import-result>p{width:100%;font-size:10px;line-height:1.8;color:var(--text-soft,#95a3b6);margin:0}.out-status-preparing,.out-status-waiting{color:var(--text-secondary,#6c82b4);background:var(--surface-soft,#f3f6fd);border-color:var(--border-soft,#e1e8f5)}.out-selection-list button:disabled{cursor:not-allowed}.out-recipient-actions a.btn{text-decoration:none}
@media(max-width:600px){.out-filter-row{flex-wrap:wrap}.out-filter-row>input{flex-basis:100%}.out-filter-row>select{max-width:none;flex:1}.out-selection-row{gap:8px;padding:10px}.out-selection-row strong{font-size:10px}.out-selection-row>.out-selection-note{font-size:8px}.out-field-heading{align-items:flex-start}.out-field-heading>label>span{display:block;margin:5px 0 0}.out-recipient-summary{padding:12px}.out-recipient-counts strong{font-size:20px}.out-recipient-counts>span{font-size:9px}.out-recipient-actions{gap:7px}.out-recipient-actions .btn{font-size:9px;padding:8px}.out-recipient-table .out-table td,.out-recipient-table .out-table th{padding:10px}.out-recipient-table .email-copy{font-size:10px}.out-account-actions{gap:5px}.out-account-actions .btn{font-size:9px;padding:7px 9px}}
.out-detail-tools{padding:18px 25px;border-bottom:1px solid var(--line);background:var(--panel)}.out-detail-tools .out-filter-row{margin-bottom:12px}.out-detail-tools .out-filter-row>select{max-width:190px;flex-shrink:0}.out-detail-export{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:10px;color:var(--text-soft,#92a3b8)}.out-detail-export>div{display:flex;gap:8px;flex-wrap:wrap}.out-detail-export a.btn{text-decoration:none;font-size:10px;white-space:nowrap}.out-detail-tools .input{font-size:11px}.out-detail-tools .btn{white-space:nowrap}
@media(max-width:600px){.out-detail-tools{padding:16px}.out-detail-tools .out-filter-row>select{flex-basis:100%;max-width:none}.out-detail-tools .out-filter-row>input{flex-basis:auto;width:130px}.out-detail-tools .out-filter-row>.btn{font-size:10px;padding:8px}.out-detail-export{align-items:flex-start;flex-direction:column}.out-detail-export a.btn{font-size:9px;padding:7px 9px}}
/* Compact account management renders only the current filtered page. */
.out-account-heading{padding:16px 20px}.out-account-heading p{margin-top:5px;font-size:10px;line-height:1.7}.out-account-heading .btn{padding:8px 10px;font-size:10px}.out-account-filters{display:grid;grid-template-columns:minmax(220px,1fr) repeat(3,minmax(110px,140px));gap:8px;padding:12px 20px 0}.out-account-filters .input{font-size:11px;min-width:0;padding-top:8px;padding-bottom:8px;line-height:17px}.out-account-result-meta{display:flex;justify-content:space-between;gap:12px;padding:8px 20px;color:var(--text-soft,#92a3b8);font-size:10px}.out-account-result-meta strong{font-weight:500;color:var(--text-secondary,#607b9c)}.out-account-table{table-layout:fixed;min-width:990px}.out-account-table th{padding:10px 14px}.out-account-table td{padding:8px 14px;line-height:1.6}.out-account-table th:nth-child(1){width:25%}.out-account-table th:nth-child(2){width:19%}.out-account-table th:nth-child(3){width:18%}.out-account-table th:nth-child(4){width:16%}.out-account-table th:nth-child(5){width:22%}.out-account-table td:first-child{min-width:0;max-width:none}.out-account-table td:nth-child(3){min-width:0}.out-account-table .out-account-name{font-weight:500;font-size:11px;color:var(--text-secondary,#587398);display:block;margin-bottom:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.out-account-table .email-copy{font-size:10px;max-width:100%;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.6}.out-account-table td:nth-child(2)>span{font-size:10px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.out-account-table td small{font-size:10px;margin-top:3px}.out-account-table .out-account-connection{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;max-width:220px;line-height:1.7}.out-account-rate{font-size:10px;white-space:nowrap}.out-account-rate strong{font-size:12px;font-weight:500;color:var(--text-secondary,#607b9f)}.out-account-rate>span{color:var(--text-soft,#96a4b7);font-size:9px}.out-account-table .out-account-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;max-width:190px}.out-account-table .out-account-actions .btn{font-size:9px;padding:5px 8px;min-height:27px;white-space:nowrap;justify-content:center}.out-account-table .out-account-no-results{padding:38px!important;text-align:center;color:var(--text-soft,#94a5b9)}.out-account-page-actions{align-items:center;flex-wrap:wrap}.out-account-page-actions>label{font-size:10px;color:var(--text-soft,#93a3b8)}.out-account-page-actions>.input{padding:6px 23px 6px 9px;width:68px;font-size:10px;min-height:30px}.out-account-page-actions>span{font-size:10px;align-self:center;white-space:nowrap}.out-history-row>.out-history-actions{flex:0 0 auto;display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end;max-width:245px}.out-history-actions .btn{font-size:10px;padding:7px 9px;white-space:nowrap}.out-modal-pagination{padding:15px 0 0;border-top:0}.out-recipient-manager-tools{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.out-recipient-manager-tools>.link-button{font-size:10px}.out-recipient-manager-tools>div{display:flex;gap:7px}.out-recipient-manager-tools .btn{font-size:10px;padding:7px 10px}.out-recipient-row-actions{display:flex;gap:6px;white-space:nowrap}.out-recipient-table .out-table td:last-child{width:130px;min-width:130px}.out-recipient-edit-notice{padding:12px 15px;border:1px solid var(--border-soft,#e1e8f5);border-radius:6px;background:var(--surface-soft,#f7f9fe);margin-bottom:16px;color:var(--text-secondary,#7c90ae);font-size:10px;line-height:1.8}.out-recipient-edit-notice>p{margin:0 0 9px}.out-readonly-label{font-size:10px;color:var(--text-soft,#a2adbc)}
@media(min-width:1000px){.out-account-table .out-account-actions{display:flex;flex-wrap:nowrap;max-width:none;gap:5px}.out-account-table .out-account-actions .btn{font-size:10px;padding:5px 8px;min-height:28px}.out-account-table th:nth-child(1){width:22%}.out-account-table th:nth-child(2){width:18%}.out-account-table th:nth-child(3){width:17%}.out-account-table th:nth-child(4){width:18%}.out-account-table th:nth-child(5){width:25%}.out-account-table .out-status{padding:3px 7px}}
@media(max-width:999px){.out-account-filters{grid-template-columns:minmax(0,1fr) repeat(3,minmax(100px,1fr))}.out-account-filters>input{grid-column:1/-1}.out-account-result-meta{flex-wrap:wrap}}
@media(max-width:600px){.out-account-filters{padding:16px 16px 0;gap:8px;grid-template-columns:repeat(3,minmax(0,1fr))}.out-account-filters .input{font-size:10px;padding:9px 7px}.out-account-result-meta{padding:13px 16px;font-size:9px}.out-account-result-meta>span:last-child{display:none}.out-history-row{align-items:flex-start;gap:10px;padding:14px 0}.out-history-row>.out-history-actions{max-width:154px;gap:5px}.out-history-actions .btn{font-size:9px;padding:6px 8px}.out-history-row strong{font-size:11px}.out-history-row small{font-size:9px}.out-recipient-manager-tools{align-items:flex-start}.out-recipient-manager-tools>div{flex-wrap:wrap;justify-content:flex-end}.out-recipient-manager-tools .btn{font-size:9px}.out-recipient-table .out-table td:last-child{min-width:100px}.out-recipient-row-actions{gap:4px}.out-account-page-actions{gap:6px!important}}
/* Rich-text controls share the workspace palette; the sent-mail preview stays paper white. */
.out-preview iframe{background:#fff}
html[data-theme="dark"] #out-editor .ql-snow .ql-stroke{stroke:var(--text-secondary)}
html[data-theme="dark"] #out-editor .ql-snow .ql-fill{fill:var(--text-secondary)}
html[data-theme="dark"] #out-editor .ql-snow .ql-picker{color:var(--text-secondary)}
html[data-theme="dark"] #out-editor .ql-snow .ql-picker-options,html[data-theme="dark"] #out-editor .ql-snow .ql-tooltip{background:var(--panel);border-color:var(--line);color:var(--ink);box-shadow:0 4px 14px #0005}
html[data-theme="dark"] #out-editor .ql-snow .ql-tooltip input{background:#101b29;color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] #out-editor .ql-snow .ql-tooltip a{color:var(--accent-text)}
html[data-theme="dark"] #out-editor .ql-snow .ql-picker-label:hover,html[data-theme="dark"] #out-editor .ql-snow .ql-picker-item:hover,html[data-theme="dark"] #out-editor .ql-snow button:hover{color:var(--accent-text)}
html[data-theme="dark"] #out-editor .ql-editor.ql-blank:before{color:#879ab5}
html[data-theme="dark"] .out-account-table tr:hover{background:#17273b}
html[data-theme="dark"] .out-selection-row:hover{background:#20334c}
.out-preview-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap}.out-preview-actions [hidden]{display:none!important}.out-preview-actions .btn{font-size:10px}.out-delivery-receipt-note{font-size:11px;color:var(--muted);line-height:1.8;padding:13px 25px;background:var(--surface-soft,#f8fafc);margin:0;border-bottom:1px solid var(--line)}

.out-receipt-copy{display:flex;align-items:center;gap:5px;margin-top:6px;font:10px/1.6 ui-monospace,SFMono-Regular,Menlo,monospace;max-width:100%;text-align:left;overflow-wrap:anywhere}.out-receipt-copy svg{width:12px;height:12px;flex-shrink:0}
/* Keep the live result visible beside a long compose form. The shell must not
   create an overflow ancestor, otherwise sticky follows an unscrolled box. */
@media(min-width:1000px){
  .out-shell:has(.out-compose-layout){overflow:visible}
  .out-shell:has(.out-compose-layout)>.out-tabs{border-radius:12px 12px 0 0}
  .out-compose-layout>.out-preview{position:sticky;top:80px;align-self:start;padding:18px;max-height:calc(100vh - 96px);max-height:calc(100dvh - 96px);overflow:auto;border-radius:0 0 12px 0}
  .out-compose-layout>.out-preview .out-section-heading{margin-bottom:14px}
  .out-compose-layout>.out-preview iframe{height:clamp(220px,calc(100vh - 335px),440px);height:clamp(220px,calc(100dvh - 335px),440px)}
  .out-compose-layout>.out-preview .out-preview-empty{min-height:clamp(220px,calc(100vh - 335px),370px);min-height:clamp(220px,calc(100dvh - 335px),370px)}
}
@media(max-width:999px){.out-compose-layout>.out-preview{position:static;max-height:none;overflow:visible}}
/* Layout A: routing on demand, editing and preview side by side. */
.out-compose-workspace{min-width:0}.out-routing{border-bottom:1px solid var(--line);background:var(--surface-soft,#f8faff)}.out-routing>summary{padding:17px 25px;display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;cursor:pointer;font-size:11px;color:var(--text-secondary)}.out-routing>summary::-webkit-details-marker{display:none}.out-routing>summary>span:first-child{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.out-routing summary svg{width:16px;height:16px;color:var(--accent-text)}.out-routing summary strong{font-weight:500}.out-routing summary i{font-style:normal;color:var(--text-soft)}.out-route-edit{font-size:10px;white-space:nowrap;color:var(--accent-text)}.out-routing-fields{padding:4px 25px 20px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px 26px}.out-routing-fields>.form-group{margin-bottom:0}.out-routing-fields>.form-group:first-child{grid-row:span 2}.out-routing-fields .out-selection-list{max-height:210px}.out-routing-fields label{font-size:12px}.out-routing-fields label>span{color:var(--text-soft);font-size:10px}.out-routing-fields small{font-size:10px;line-height:1.8;color:var(--text-soft);display:block;margin-top:8px}.out-template-bar{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:18px 25px;border-bottom:1px solid var(--line)}.out-template-bar strong{display:block;font-size:13px;font-weight:500;color:var(--ink)}.out-template-bar small{display:block;color:var(--text-soft);font-size:10px;margin-top:5px;line-height:1.6}.out-template-bar .button-row{gap:7px;flex-wrap:wrap;justify-content:flex-end}.out-template-bar .btn{font-size:10px;padding:8px 11px}.out-compose-workspace>.out-compose-actions{margin:0;padding:18px 25px}.out-compose-workspace .out-compose{padding:22px 25px}.out-compose-workspace .out-preview{padding:22px}.out-compose-workspace .out-body-source{min-height:420px!important}.out-compose-workspace #out-editor .ql-editor{min-height:380px}.out-compose-workspace .out-preview iframe{height:460px}.out-compose-workspace .out-preview .out-section-heading h2{font-size:14px;margin-bottom:5px}.out-compose-workspace .out-preview .out-section-heading p{font-size:10px}.out-compose-workspace .out-preview-actions .btn{font-size:9px;padding:7px 9px}.out-compose-workspace .out-editor-label{align-items:flex-start;flex-direction:column}.out-compose-workspace .out-modes{width:100%;justify-content:space-between}.out-compose-workspace .out-modes button{flex:1;padding:8px 5px}.out-template-bar [hidden],#out-template-conflict[hidden],.out-rich-paste-notice[hidden]{display:none!important}.out-rich-paste-notice{padding:12px;border:1px solid var(--border-soft);background:var(--surface-soft);border-radius:7px;font-size:11px;line-height:1.8;margin:0 0 14px;color:var(--text-secondary)}.out-rich-paste-notice>div{display:flex;gap:10px;flex-wrap:wrap;margin-top:8px}
.modal-backdrop:has(.out-template-drawer){justify-content:flex-end;padding:0}.modal.out-template-drawer{width:min(620px,100vw);max-width:none;max-height:100dvh;height:100dvh;border-radius:16px 0 0 16px;margin:0;display:flex;flex-direction:column}.out-template-drawer .modal-head{padding:25px}.out-template-drawer .modal-body{padding:0 25px;flex:1;overflow-y:auto}.out-template-drawer .modal-foot{padding:14px 25px;background:var(--surface-soft);border-top:1px solid var(--line)}.out-template-search{display:flex;gap:8px;padding:4px 0 20px;position:sticky;top:0;background:var(--panel);z-index:1}.out-template-search input{flex:1;min-width:0}.out-template-search select{width:112px;flex-shrink:0}.out-template-search .input{font-size:11px}.out-template-item{display:flex;align-items:center;gap:14px;padding:19px 0;border-top:1px solid var(--line)}.out-template-item.selected{background:var(--surface-soft);margin:0 -12px;padding-left:12px;padding-right:12px;border-radius:8px}.out-template-mark{width:64px;height:82px;flex-shrink:0;border:1px solid var(--border-soft);border-radius:6px;background:linear-gradient(145deg,var(--surface-soft),var(--panel));display:grid;place-items:center;font-size:10px;line-height:1.5;text-align:center;color:var(--accent-text)}.out-template-item-main{min-width:0;flex:1}.out-template-item-main>strong{display:block;font-weight:500;color:var(--ink);font-size:13px;overflow-wrap:anywhere}.out-template-item-main>p{font-size:11px;color:var(--text-secondary);margin:7px 0 5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.out-template-item-main>small{font-size:9px;color:var(--text-soft);line-height:1.7;display:block}.out-template-item-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:10px}.out-template-item-actions .link-button{font-size:10px}.out-template-item>.btn{font-size:10px;white-space:nowrap;padding:8px 10px}.out-template-drawer .out-pagination{padding:20px 0;font-size:10px}.out-template-empty{padding:70px 15px;text-align:center;font-size:12px;color:var(--text-soft);line-height:2}.out-template-checks{display:grid;gap:12px;padding:16px;border:1px solid var(--line);border-radius:8px;margin:8px 0 15px}.out-template-checks label{display:flex;align-items:center;gap:9px;font-size:12px;color:var(--text-secondary)}.out-template-checks input{accent-color:var(--accent-text)}#out-template-conflict{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}
@media(min-width:1250px){.out-compose-workspace .out-compose-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
@media(max-width:999px){.out-compose-workspace .out-compose-layout{grid-template-columns:1fr}.out-compose-workspace .out-preview iframe{height:400px}.out-compose-workspace .out-preview{border-top:1px solid var(--line)}}
@media(max-width:600px){.out-routing>summary{padding:15px 17px;align-items:flex-start}.out-routing>summary>span:first-child{gap:8px;font-size:10px}.out-route-edit{font-size:9px}.out-routing-fields{padding:0 17px 18px;display:flex;flex-direction:column;gap:17px}.out-template-bar{padding:15px 17px;align-items:flex-start;flex-direction:column}.out-template-bar .button-row{justify-content:flex-start}.out-compose-workspace .out-compose,.out-compose-workspace .out-preview{padding:18px 17px}.out-compose-workspace>.out-compose-actions{padding:16px 17px}.out-compose-workspace .out-body-source{min-height:340px!important}.modal.out-template-drawer{border-radius:0}.out-template-drawer .modal-head{padding:20px 17px}.out-template-drawer .modal-body{padding:0 17px}.out-template-search{flex-wrap:wrap}.out-template-search input{flex-basis:100%}.out-template-search select{flex:1}.out-template-mark{display:none}.out-template-item{gap:10px}.out-template-item-actions{gap:10px}.out-template-bar .btn{padding:7px 10px}}
