/* Customer messages share the existing platform surfaces and customer theme. */
.pb-information-entry{position:relative;overflow:visible!important}
.pb-information-entry .member-message-badge{position:absolute;top:-7px;right:-6px;z-index:1;display:inline-flex;align-items:center;justify-content:center;min-width:22px;min-height:22px;padding:2px 5px;border:2px solid #fff8ef;border-radius:20px;background:#b42318;color:#fff;box-shadow:0 0 0 2px #ffcc48;font-family:system-ui,sans-serif;font-size:11px;font-weight:800;line-height:1;font-variant-numeric:tabular-nums}
.cm-list-toolbar{display:flex;align-items:center;gap:12px;padding:18px 22px;border-bottom:1px solid #e9eaf0;font-size:12px;color:#626874}
.cm-list-toolbar label{font-weight:650;color:#424b58;flex-shrink:0}.cm-list-toolbar select{max-width:360px;min-width:0;min-height:42px;flex:1;padding:8px 12px;border:1px solid #dfe2e9;border-radius:10px;background:#fff;color:#303946;font:inherit}.cm-list-count{margin-left:auto;white-space:nowrap}
.cm-thread-list{display:grid}.cm-thread-row{display:flex;align-items:center;gap:15px;width:100%;padding:20px 22px;border:0;border-bottom:1px solid #edf0f4;background:#fff;text-align:left;cursor:pointer;color:#303946;font:inherit;min-width:0}.cm-thread-row:last-child{border-bottom:0}.cm-thread-row:hover{background:#fffaf4}.cm-thread-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#fff1df;color:#a34800;flex-shrink:0}.cm-thread-main{display:grid;gap:5px;min-width:0;flex:1}.cm-thread-main>strong{font-size:14px;line-height:1.5;overflow-wrap:anywhere}.cm-thread-preview{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#626874;font-size:12px}.cm-thread-main>small{font-size:11px;color:#78808c;line-height:1.6}.cm-thread-status{display:flex;align-items:center;gap:10px;flex-shrink:0}.cm-reply-status,.cm-notice-status{display:inline-flex;padding:5px 8px;border-radius:6px;font-size:10px;line-height:1.4;font-weight:600;background:#f2f4f8;color:#667183}.cm-reply-status{background:#fff3d5;color:#886000}.cm-reply-status.has-reply{background:#e9f5ee;color:#236348}
.cm-empty{text-align:center;padding:52px 18px;color:#747d89}.cm-empty>svg{margin:0 auto 16px;color:#b08d6c}.cm-empty h2{font-size:17px;color:#424b58;margin:0 0 9px}.cm-empty p{font-size:12px;line-height:1.8}.cm-error{margin:15px 18px;padding:11px 13px;border:1px solid #f1c6bf;border-radius:9px;background:#fff3f0;color:#a12c22;font-size:12px;line-height:1.8;overflow-wrap:anywhere}.cm-loading{padding:22px;color:#6c7685;font-size:13px}
.cm-compose{display:grid;gap:16px}.cm-compose-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.cm-compose-field{display:grid;gap:8px;min-width:0;color:#46505f;font-size:12px;font-weight:600}.cm-compose-field>span>b{color:#ab4506}.cm-compose-field input,.cm-compose-field select,.cm-compose-field textarea{width:100%;min-width:0;min-height:44px;padding:10px 12px;border:1px solid #dfe2e9;border-radius:10px;background:#fff;color:#303946;font-family:inherit;font-size:13px;font-weight:400;line-height:1.6}.cm-compose-field textarea{resize:vertical;min-height:135px}.cm-field-help,.cm-recipient-summary{margin:0;color:#697382;font-size:11px;line-height:1.8;overflow-wrap:anywhere}.cm-recipient-summary{padding:10px 12px;border-radius:8px;background:#f4f6fa}.cm-requires-reply{display:flex;align-items:flex-start;gap:10px;padding:13px;border:1px solid #e8d5be;border-radius:10px;background:#fffaf3;cursor:pointer}.cm-requires-reply>input{width:18px;height:18px;min-height:0!important;margin-top:2px;accent-color:#a34800;flex-shrink:0}.cm-requires-reply strong{display:block;font-size:13px;color:#664c32}.cm-requires-reply small{display:block;margin-top:4px;color:#7b7064;font-size:11px;line-height:1.6}.cm-compose>.form-error{margin:0}.cm-compose>.form-actions{margin-top:0}
.cm-detail-meta{display:flex;flex-wrap:wrap;gap:8px 16px;margin-bottom:16px;color:#717a87;font-size:11px}.cm-conversation-item{padding:16px;border:1px solid #e7eaf0;border-radius:12px;background:#f8f9fc;margin-bottom:12px}.cm-conversation-item header{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:#3e4b5c}.cm-conversation-item time{font-size:10px;color:#78808d;flex-shrink:0}.cm-conversation-item p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.85;color:#3e4652;margin:12px 0 0}.cm-conversation-item.is-reply{background:#f3faf6;border-color:#dbece2}.cm-replies-heading{display:flex;justify-content:space-between;align-items:center;margin:22px 0 12px}.cm-replies-heading h3{font-size:14px;color:#3e4b5c}.cm-replies-heading span,.cm-detail-empty{font-size:12px;color:#737d89}.cm-detail-empty{padding:18px 0;line-height:1.8}
.mi-list-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:20px 0 12px}.mi-list-toolbar>div{display:flex;align-items:center;gap:8px}.mi-list-toolbar strong{font-size:15px;color:var(--m-ink,#563c2e)}.mi-list-toolbar>div>span{font-size:11px;color:var(--m-muted,#7b6a5d)}.mi-text-button{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:44px;padding:7px 9px;border:0;border-radius:9px;background:transparent;color:var(--m-primary,#a34800);font-family:inherit;font-size:12px;font-weight:600;line-height:1.4;cursor:pointer}.mi-thread-list{display:grid;gap:10px}.mi-thread-row{display:flex;align-items:flex-start;gap:11px;width:100%;min-width:0;min-height:85px;padding:15px 12px;border:1px solid var(--m-line,#eaded2);border-radius:13px;background:var(--m-card,#fff);color:var(--m-ink,#563c2e);text-align:left;font-family:inherit;cursor:pointer}.mi-thread-row.is-unread{border-color:var(--m-primary,#bd650e);box-shadow:inset 3px 0 0 var(--m-primary,#bd650e)}.mi-thread-mark{position:relative;display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:var(--m-primary-soft,#fff0dc);color:var(--m-primary,#a34800);flex-shrink:0}.mi-thread-mark>i{position:absolute;top:-3px;right:-3px;width:9px;height:9px;background:#b42318;border:2px solid #fff;border-radius:50%;box-sizing:content-box}.mi-thread-main{display:grid;gap:6px;min-width:0;flex:1}.mi-thread-main>strong{font-size:14px;line-height:1.55;overflow-wrap:anywhere}.mi-thread-main>span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-wrap;font-size:12px;line-height:1.7;color:var(--m-muted,#7b6a5d)}.mi-thread-main>small{font-size:10px;line-height:1.6;color:var(--m-muted,#7b6a5d)}.mi-thread-row>svg{margin-top:9px;flex-shrink:0;opacity:.6}.mi-loading{padding:30px 8px;text-align:center;color:var(--m-muted,#7b6a5d);font-size:13px;line-height:1.8}.mi-error{padding:12px;border:1px solid #e8c5bd;border-radius:9px;background:#fff2ef;color:#a32720;font-size:12px;line-height:1.7;overflow-wrap:anywhere}.mi-back{padding-left:0;margin-top:8px}.mi-detail-heading{padding:15px 0}.mi-detail-heading>span{display:inline-flex;padding:4px 7px;border-radius:5px;background:var(--m-primary-soft,#fff0dc);color:var(--m-primary,#a34800);font-size:10px;line-height:1.5}.mi-detail-heading h2{font-size:21px;line-height:1.5;margin:10px 0;color:var(--m-ink,#563c2e);overflow-wrap:anywhere}.mi-detail-heading>p{font-size:11px;color:var(--m-muted,#7b6a5d);line-height:1.7}.mi-message-body{padding:18px 16px;border:1px solid var(--m-line,#eaded2);border-radius:12px;background:var(--m-card,#fff);font-size:14px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--m-ink,#563c2e)}.mi-replies{margin-top:25px}.mi-replies>h3,.mi-reply-form>label{font-size:14px;font-weight:650;line-height:1.6;color:var(--m-ink,#563c2e)}.mi-reply{padding:13px;border:1px solid var(--m-line,#eaded2);border-radius:10px;margin-top:10px;background:var(--m-card,#fff)}.mi-reply header{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px;color:var(--m-muted,#7b6a5d)}.mi-reply header strong{font-size:12px;color:var(--m-ink,#563c2e)}.mi-reply time{font-size:10px;white-space:nowrap}.mi-reply p{font-size:13px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;margin:9px 0 0;color:var(--m-ink,#563c2e)}.mi-reply-form{display:grid;gap:10px;margin-top:24px;padding-top:20px;border-top:1px solid var(--m-line,#eaded2)}.mi-reply-form textarea{width:100%;min-width:0;min-height:125px;box-sizing:border-box;padding:12px;border:1px solid var(--m-line,#eaded2);border-radius:10px;background:var(--m-card,#fff);color:var(--m-ink,#563c2e);font-family:inherit;font-size:14px;line-height:1.8;resize:vertical}.mi-reply-form>.form-error{margin:0}.mi-reply-help{margin:0;color:var(--m-muted,#7b6a5d);font-size:11px;line-height:1.8}.mi-no-reply{padding:18px 0}.mi-reply-form .primary-btn{min-height:46px}
@media(max-width:760px){.cm-list-toolbar{padding:15px;flex-wrap:wrap;gap:9px}.cm-list-toolbar select{max-width:none}.cm-list-count{font-size:11px}.cm-thread-row{padding:16px 14px;align-items:flex-start;flex-wrap:wrap;gap:10px}.cm-thread-main{flex-basis:calc(100% - 54px)}.cm-thread-status{margin-left:52px;flex:1;justify-content:space-between}.cm-thread-icon{width:37px;height:37px}.cm-compose-grid{grid-template-columns:1fr}.cm-compose-field input,.cm-compose-field select,.cm-compose-field textarea{font-size:16px}.cm-conversation-item header{align-items:flex-start;flex-wrap:wrap;gap:5px}.cm-detail-meta{gap:7px 12px}.cm-requires-reply{min-height:62px}.cm-compose>.form-actions{flex-wrap:wrap}.cm-compose>.form-actions .btn{min-height:44px}}
.mi-task-link{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:46px;margin:15px 0 0;padding:11px 14px;border:1px solid var(--m-primary,#a34800);border-radius:11px;background:var(--m-primary-soft,#fff0df);color:var(--m-primary,#a34800);font-family:inherit;font-size:13px;font-weight:650;cursor:pointer}
.cm-category{display:inline-block;margin-inline-end:7px;padding:2px 7px;border-radius:5px;background:#f0f4f1;color:#536a5d;font-size:11px;font-weight:600;vertical-align:middle}.mi-category-tabs{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 14px}.mi-category-tabs button{border:1px solid #e3e9e5;background:transparent;border-radius:8px;padding:9px 13px;color:#647168;font:inherit;font-size:13px;cursor:pointer}.mi-category-tabs button[aria-pressed="true"]{background:#edf4ee;border-color:#cbdccd;color:#284d34;font-weight:650}.mi-category-tabs small{margin-inline-start:7px;opacity:.7}.mi-category-label{font-size:11px!important;color:#6a7e6f!important}.cm-compose-field select:disabled,.cm-requires-reply input:disabled{opacity:.55}
/* Bulk customer messages: one visible scope and a deduplicated account preview. */
.cmb-compose{min-width:0}.cmb-layout{display:grid;grid-template-columns:minmax(260px,.9fr) minmax(0,1.1fr);gap:24px;margin:18px 0}.cmb-compose h3{margin:0 0 12px;font-size:14px;line-height:1.5}.cmb-audience,.cmb-content{min-width:0}.cmb-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.cmb-section-heading>label{display:flex;align-items:center;gap:6px;font-size:11px;color:#68717d;white-space:nowrap}.cmb-section-heading h3{margin-bottom:0}.cmb-search{display:flex;align-items:center;gap:8px;min-height:42px;padding:0 11px;border:1px solid #e7e9ee;border-radius:10px;margin:12px 0;background:#fff}.cmb-search>svg{flex:none;color:#68717d}.cmb-search input{min-width:0;width:100%;min-height:40px;border:0;background:transparent;padding:0;outline:none;font:inherit;font-size:12px}.cmb-stores{max-height:250px;overflow:auto;border:1px solid #e7e9ee;border-radius:11px;background:#fff;margin-bottom:20px}.cmb-store,.cmb-person{display:flex;gap:10px;align-items:flex-start;min-height:48px;padding:11px 12px;border-bottom:1px solid #eef0f2;cursor:pointer}.cmb-store[hidden]{display:none}.cmb-store:last-child,.cmb-person:last-child{border-bottom:0}.cmb-store input,.cmb-person input{margin-top:3px;flex:none;width:16px;height:16px}.cmb-store>span,.cmb-person>span{display:grid;gap:3px;min-width:0;flex:1}.cmb-store strong,.cmb-person strong{font-size:12px;font-weight:600;overflow-wrap:anywhere}.cmb-store small,.cmb-person small{font-size:11px;color:#68717d;line-height:1.6;overflow-wrap:anywhere}.cmb-store:has(input:checked),.cmb-person:has(input:checked){background:#fff7f1}.cmb-store:has(input:disabled){opacity:.55;cursor:default}.cmb-roles{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}.cmb-roles label{display:flex;align-items:center;gap:7px;min-height:40px;padding:8px 11px;border:1px solid #e7e9ee;border-radius:10px;background:#fff;font-size:12px}.cmb-roles label:has(input:checked){border-color:#dba47f;background:#fff7f1}.cmb-people-picker{border:1px solid #e7e9ee;border-radius:11px;background:#fff}.cmb-people-picker>summary{min-height:42px;padding:11px 12px;cursor:pointer;font-size:12px;font-weight:600}.cmb-people-picker>summary span{font-size:10px;font-weight:400;color:#68717d;margin-left:6px}.cmb-people-picker [data-cmb-people]{max-height:260px;overflow:auto;border-top:1px solid #eef0f2}.cmb-people-picker .cm-field-help{padding:10px 12px;margin:0}.cmb-preview{display:grid;gap:11px;padding:14px;border:1px solid #e7e9ee;border-radius:12px;background:#f8f9fb;margin:18px 0 12px}.cmb-preview>strong{font-size:13px;line-height:1.7;font-weight:600}.cmb-preview>button{justify-self:start;min-height:40px;font-size:12px}.cmb-store-count{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;padding:9px 0;border-top:1px solid #e3e6eb;font-size:12px;line-height:1.6}.cmb-store-count>strong{font-variant-numeric:tabular-nums}.cmb-store-count>small{grid-column:1/-1;font-size:11px;color:#ab4e2e}.cmb-store-count.is-empty>strong{color:#ab4e2e}.cmb-compose .form-actions{border-top:1px solid #e7e9ee;padding-top:16px}.cmb-compose button[type=submit]{min-height:44px}.cmb-content textarea{min-height:150px;resize:vertical}.cmb-content .cm-reply-toggle{min-height:40px}
@media(max-width:700px){.cmb-layout{grid-template-columns:1fr;gap:22px}.cmb-stores{max-height:210px}.cmb-preview{margin-top:14px}.cmb-section-heading{align-items:flex-start;flex-wrap:wrap}}

.mi-message-file{display:flex;flex-direction:column;gap:6px;margin-top:10px;padding:10px 12px;border:1px solid #e4e9f0;border-radius:10px;color:inherit;overflow-wrap:anywhere;text-decoration:none}.mi-message-file>img{display:block;max-width:100%;max-height:240px;object-fit:contain;border-radius:6px}.mi-message-file>span{font-size:13px;line-height:20px}
