/* Hidden manager message delivery status. */
.hm-notice{position:fixed;z-index:10000;right:24px;bottom:24px;max-width:min(520px,calc(100vw - 32px));padding:16px 20px;border:1px solid #d4ddef;border-radius:14px;background:#fff;color:#1c2c5a;box-shadow:0 8px 32px #14264b29;line-height:1.5;white-space:pre-wrap}
.hm-notice[hidden]{display:none}.hm-notice.success{border-color:#83b49d;background:#eff8f2;color:#1e573b}.hm-notice.error{border-color:#db9f9f;background:#fff3f3;color:#813232}
.hm-history>h2{margin:0 0 24px}.hm-dispatch{padding:22px 0;border-top:1px solid #dce4ef}.hm-dispatch h3{font-size:16px;margin:0}.hm-dispatch .hm-heading{gap:16px;align-items:flex-start}.hm-delivery-label{padding:6px 12px;background:#edf1fa;border-radius:10px;font-size:14px;white-space:nowrap}
.hm-delivery-recipients{list-style:none;padding:0;margin:16px 0 0;display:grid;gap:10px}.hm-delivery-recipients li{display:flex;gap:10px 18px;flex-wrap:wrap;padding:12px 14px;background:#f5f7fb;border-radius:10px}.hm-delivery-recipients li>span{margin-left:auto}.hm-delivery-recipients li>p{width:100%;margin:0;color:#813232;line-height:1.5}
.hm-message-destination{line-height:1.6;margin:20px 0 28px;color:#607191}.hm-message-destination a{color:#303e8c}.hm-composer[inert]{opacity:.75}
@media(max-width:600px){.hm-notice{right:16px;bottom:16px}.hm-dispatch .hm-heading{flex-direction:column;gap:12px}.hm-delivery-recipients li>span{margin-left:0}}

/* Persistent, per-recipient result remains visible above the composer. */
.hm-send-result{border:2px solid #6d8ac3;scroll-margin-top:24px;margin-bottom:24px!important;outline:none}
.hm-send-result.is-success{border-color:#79a78b}.hm-send-result.is-error{border-color:#cf8686}.hm-send-result.is-warning{border-color:#bf9c58}
.hm-result-heading{display:flex;align-items:center;gap:14px;margin-bottom:18px}.hm-result-heading h2{margin:0!important;line-height:1.3}.hm-result-heading p{margin:8px 0 0;color:#647491;font-size:14px}
.hm-result-symbol{display:grid;place-items:center;flex:0 0 42px;height:42px;border-radius:50%;background:#e9eef9;color:#344b8d;font-size:25px;font-weight:700}.is-success .hm-result-symbol{background:#e6f2e9;color:#28633b}.is-error .hm-result-symbol{background:#fbe8e8;color:#9b3333}.is-warning .hm-result-symbol{background:#fff2d4;color:#855e17}
.hm-result-message{white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 20px;padding:12px 16px;background:#f4f6fb;border-radius:10px;max-height:100px;overflow:auto;line-height:1.5}
.hm-result-counts{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px}.hm-result-counts>div{display:flex;flex-direction:column;gap:7px;padding:14px 16px;border-radius:12px;background:#f1f4fa}.hm-result-counts strong{font-size:23px;color:#24386d;line-height:1.2}.hm-result-counts span{font-size:14px;color:#546785}
.hm-send-progress{margin:18px 0 24px;height:5px;overflow:hidden;border-radius:8px;background:#e8edf5}.hm-send-progress span{display:block;height:100%;background:#566bb4;transition:width .3s ease}.is-success .hm-send-progress span{background:#57986a}
.hm-send-result>h3{margin:24px 0 12px;font-size:16px}.hm-result-recipients{display:grid;gap:9px;list-style:none;padding:0;margin:0;max-height:300px;overflow:auto}.hm-result-recipients li{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;padding:12px 15px;border:1px solid #dfe5ef;border-radius:10px}.hm-result-recipients li>strong{min-width:0;overflow-wrap:anywhere}.hm-result-recipients li>span{margin-left:auto;font-size:14px;padding:4px 9px;border-radius:7px;background:#edf0f8;color:#465882}.hm-result-recipients li.delivery-sent>span{background:#e8f3eb;color:#28633b}.hm-result-recipients li.delivery-failed>span,.hm-result-recipients li.delivery-cancelled>span,.hm-result-recipients li.delivery-restricted>span{background:#fae9e9;color:#963b3b}.hm-result-recipients li.delivery-check_required>span,.hm-result-recipients li.delivery-unknown>span{background:#fff2d4;color:#855e17}.hm-result-recipients li>p{width:100%;margin:0;color:#963b3b;line-height:1.5}
.hm-result-footnote{margin:18px 0 0!important;font-size:14px;line-height:1.5;color:#65748b}.hm-result-warning{background:#fff7e5;padding:14px 16px;border-radius:10px;line-height:1.5;color:#79551b}
@media(max-width:600px){.hm-result-heading{align-items:flex-start;gap:10px}.hm-result-heading h2{font-size:19px}.hm-result-counts{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.hm-result-counts>div{padding:12px}.hm-result-recipients li{align-items:flex-start;gap:8px}.hm-result-recipients li>span{margin-left:0}.hm-send-result{scroll-margin-top:12px}}
@media(prefers-reduced-motion:reduce){.hm-send-progress span{transition:none}}

/* Compact result and equal panel widths; dismissal never cancels delivery. */
#mini-queue .hm-composer,#mini-queue .hm-send-result{width:100%;max-width:none;box-sizing:border-box}
#mini-queue .hm-send-result{position:relative;padding:20px;margin-bottom:20px!important}
.hm-send-result .hm-result-heading{gap:12px;margin-bottom:12px;padding-right:36px}.hm-send-result .hm-result-heading h2{font-size:22px}.hm-send-result .hm-result-heading p{margin-top:5px;font-size:13px}
.hm-send-result .hm-result-symbol{flex-basis:34px;height:34px;font-size:22px}
.hm-send-result .hm-result-message{padding:9px 12px;margin-bottom:14px;max-height:80px}
.hm-send-result .hm-result-counts{gap:9px}.hm-send-result .hm-result-counts>div{padding:10px 13px;gap:4px}.hm-send-result .hm-result-counts strong{font-size:21px}.hm-send-result .hm-result-counts span{font-size:13px}
.hm-send-result .hm-send-progress{margin:14px 0 16px;height:4px}.hm-send-result>h3{margin:16px 0 10px;font-size:15px}
.hm-send-result .hm-result-recipients{gap:6px;max-height:240px}.hm-send-result .hm-result-recipients li{padding:8px 12px;gap:6px 14px}.hm-send-result .hm-result-recipients li>span{padding:3px 8px;font-size:13px}.hm-send-result .hm-result-footnote{margin-top:12px!important;font-size:13px}
#mini-queue .hm-result-close{position:absolute;top:12px;right:12px;display:grid;place-items:center;width:34px;min-width:34px;max-width:34px;height:34px;min-height:34px!important;padding:0!important;border:0;border-radius:8px;background:#f0f3f8;color:#50617e;cursor:pointer;box-shadow:none;line-height:1;transition:background .2s ease,color .2s ease}
#mini-queue .hm-result-close:hover{background:#e3e9f2;color:#1c315d}#mini-queue .hm-result-close:focus-visible{outline:2px solid #6d83bf;outline-offset:2px}
@media(max-width:600px){#mini-queue .hm-send-result{padding:16px}.hm-send-result .hm-result-heading h2{font-size:18px}.hm-send-result .hm-result-heading{gap:9px;padding-right:28px}.hm-send-result .hm-result-symbol{flex-basis:30px;height:30px;font-size:20px}#mini-queue .hm-result-close{top:10px;right:10px;width:32px;min-width:32px;max-width:32px;height:32px;min-height:32px!important}.hm-send-result .hm-result-counts>div{padding:9px 11px}.hm-send-result .hm-result-recipients li{padding:8px 10px}}

/* History stays open; each dispatch is compact with optional full details. */
#mini-queue .hm-history{padding:20px}#mini-queue .hm-history>h2{margin:0 0 14px;font-size:21px}
#mini-queue .hm-history .hm-dispatch{padding:14px 0}#mini-queue .hm-history .hm-dispatch:last-child{padding-bottom:0}
#mini-queue .hm-history .hm-heading{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:8px 14px;flex-wrap:wrap;margin:0 0 8px}
#mini-queue .hm-history h3{font-size:14px;line-height:1.4;margin:0}#mini-queue .hm-history .hm-delivery-label{padding:4px 9px;font-size:12px;border-radius:7px}
.hm-history-excerpt{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 7px;font-size:14px;line-height:1.45}
.hm-history-counts{margin:0 0 7px;font-size:13px;line-height:1.4;color:#62728b}.hm-history-errors{margin:0 0 8px;font-size:13px;line-height:1.4;color:#963b3b}
#mini-queue .hm-history .hm-history-more{padding:0;border:0;margin:0;background:transparent}
#mini-queue .hm-history-more>summary{font-size:13px;line-height:1.4;color:#42578a;cursor:pointer;padding:3px 0;height:auto;min-height:0!important;display:list-item;list-style-position:inside;border:0!important;background:transparent!important;box-shadow:none;border-radius:0}
#mini-queue .hm-history-more[open]>summary{margin-bottom:10px}#mini-queue .hm-history-more>.hm-message-text{margin:8px 0 12px;font-size:14px;line-height:1.5}
#mini-queue .hm-history .hm-delivery-recipients{gap:6px;margin-top:10px}#mini-queue .hm-history .hm-delivery-recipients li{padding:7px 10px;gap:5px 14px;font-size:13px;border-radius:7px}
#mini-queue .hm-history .hm-attachments{display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,140px));gap:8px;margin:10px 0}#mini-queue .hm-history .hm-attachments figure{margin:0;width:auto;min-width:0}#mini-queue .hm-history .hm-attachments img{height:90px;width:100%;object-fit:cover}#mini-queue .hm-history .hm-attachments figcaption{font-size:12px;line-height:1.3}
@media(max-width:600px){#mini-queue .hm-history{padding:16px}#mini-queue .hm-history>h2{font-size:19px}.hm-history-excerpt{font-size:13px}#mini-queue .hm-history .hm-delivery-recipients li>span{margin-left:auto}}
