/* Nanaimo Movers 24.10 Messenger */
.nmmsg-shell{height:calc(100vh - 112px);min-height:620px;display:grid;grid-template-columns:340px minmax(0,1fr) 0;background:var(--panel,#fff);border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:0 14px 40px rgba(20,42,64,.08)}.nmmsg-shell.details-on{grid-template-columns:340px minmax(0,1fr) 330px}.nmmsg-left{border-right:1px solid var(--line);display:flex;flex-direction:column;min-width:0;background:var(--panel,#fff)}.nmmsg-title{padding:20px 17px 11px;display:flex;align-items:center;justify-content:space-between}.nmmsg-title h2{margin:2px 0;font-size:25px}.nmmsg-title-actions{display:flex;gap:7px}.iconBtn{width:38px;height:38px;border:0;border-radius:999px;background:var(--soft,#eef2f6);display:grid;place-items:center;cursor:pointer;font-size:17px;color:var(--text)}.iconBtn:hover{filter:brightness(.96)}.iconBtn.primary{background:#1688f0;color:#fff}.nmmsg-search{margin:0 14px 8px;position:relative}.nmmsg-search span{position:absolute;left:13px;top:9px;color:var(--muted);font-size:18px}.nmmsg-search input{width:100%;border:0;background:var(--soft,#eef2f6);border-radius:22px;padding:10px 13px 10px 37px;box-sizing:border-box}.nmmsg-tabs{display:flex;gap:4px;padding:0 13px 8px}.nmmsg-tabs button{border:0;background:transparent;padding:8px 10px;border-radius:18px;font-weight:900;font-size:9px;color:var(--muted);cursor:pointer}.nmmsg-tabs button.active{background:#e5f2ff;color:#0b75d1}.nmmsg-tabs b{background:#1688f0;color:#fff;border-radius:10px;padding:1px 5px}.nmmsg-thread-list{overflow:auto;padding:2px 8px 15px}.nmmsg-thread{width:100%;display:grid;grid-template-columns:50px minmax(0,1fr) auto auto;align-items:center;gap:8px;text-align:left;border:0;background:transparent;border-radius:12px;padding:9px;cursor:pointer;color:var(--text)}.nmmsg-thread:hover,.nmmsg-thread.selected{background:var(--soft,#f1f5f8)}.nmmsg-thread.unread b{font-weight:1000}.nmmsg-thread-copy{min-width:0}.nmmsg-thread-copy b,.nmmsg-thread-copy small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nmmsg-thread-copy b{font-size:10.5px}.nmmsg-thread-copy small{font-size:8px;color:var(--muted);margin-top:3px}.unreadDot{width:9px;height:9px;border-radius:50%;background:#1688f0}.pin{font-size:10px}.avatarWrap{position:relative;display:inline-grid;place-items:center}.avatarWrap>i,.nmmsg-members i{position:absolute;width:11px;height:11px;border-radius:50%;background:#31b967;border:2px solid var(--panel,#fff);right:0;bottom:0}.nmmsg-avatar{display:grid;place-items:center;flex:none;border-radius:50%;background:linear-gradient(145deg,#d8eaff,#b9d8f5);color:#0b5e9f;font-weight:1000;object-fit:cover}.nmmsg-avatar.sm{width:27px;height:27px;font-size:9px}.nmmsg-avatar.md{width:44px;height:44px;font-size:15px}.nmmsg-avatar.lg{width:48px;height:48px;font-size:17px}.nmmsg-avatar.xl{width:82px;height:82px;font-size:25px}.nmmsg-avatar.group{background:linear-gradient(145deg,#ddd4ff,#bcaef7);color:#5541a4}.nmmsg-main{display:flex;flex-direction:column;min-width:0;background:var(--panel,#fff)}.nmmsg-welcome{margin:auto;text-align:center;max-width:470px;padding:30px}.nmmsg-welcome .nmmsg-logo{width:78px;height:78px;margin:auto;border-radius:24px;display:grid;place-items:center;font-size:35px;background:linear-gradient(140deg,#1688f0,#8956f1);box-shadow:0 15px 35px rgba(22,136,240,.22)}.nmmsg-welcome h2{font-size:22px;margin:18px 0 8px}.nmmsg-welcome p{color:var(--muted);line-height:1.55}.nmmsg-chat-head{height:68px;padding:8px 14px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:10px;flex:none}.nmmsg-head-name{border:0;background:transparent;text-align:left;min-width:0;flex:1;color:var(--text);cursor:pointer}.nmmsg-head-name b,.nmmsg-head-name small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nmmsg-head-name b{font-size:11px}.nmmsg-head-name small{font-size:8px;color:var(--muted);margin-top:2px}.nmmsg-head-actions{display:flex;gap:6px}.nmmsg-back{display:none;border:0;background:transparent;font-size:30px;color:var(--text)}.nmmsg-ai-strip{display:grid;grid-template-columns:auto 1fr auto;gap:9px;align-items:center;padding:8px 14px;border-bottom:1px solid var(--line);background:linear-gradient(90deg,rgba(115,87,235,.08),rgba(22,136,240,.06));font-size:9px}.nmmsg-ai-strip>span{font-size:18px}.nmmsg-ai-strip b,.nmmsg-ai-strip small{display:block}.nmmsg-ai-strip small{font-size:7.5px;color:var(--muted);margin-top:2px}.nmmsg-ai-strip.off{opacity:.72;background:var(--soft)}.nmmsg-ai-strip button{border:0;background:transparent;color:#6b4ed2;font-weight:900;font-size:8px;cursor:pointer}.nmmsg-messages{flex:1;overflow:auto;padding:16px 16px 10px;scroll-behavior:smooth}.nmmsg-msgrow{display:flex;gap:7px;align-items:flex-end;margin:7px 0}.nmmsg-msgrow.mine{justify-content:flex-end}.nmmsg-msgrow.grouped{margin-top:2px}.avatarSpacer{width:27px;display:block;flex:none}.nmmsg-msgwrap{max-width:min(72%,650px);position:relative}.nmmsg-msgrow.mine .nmmsg-msgwrap{display:flex;flex-direction:column;align-items:flex-end}.sender{display:block;font-size:7px;color:var(--muted);margin:0 0 3px 10px}.nmmsg-bubble{background:var(--soft,#edf1f4);border-radius:18px;padding:9px 12px;font-size:10px;line-height:1.42;word-break:break-word;color:var(--text)}.nmmsg-msgrow.mine .nmmsg-bubble{background:#1688f0;color:#fff}.nmmsg-bubble.unsent{font-style:italic;color:var(--muted);background:transparent;border:1px solid var(--line)}.nmmsg-bubble a{color:inherit;text-decoration:underline}.nmmsg-meta{font-size:6.8px;color:var(--muted);padding:2px 5px;opacity:.8}.nmmsg-actions{opacity:0;display:flex;gap:3px;position:absolute;top:-23px;right:0;background:var(--panel,#fff);border:1px solid var(--line);padding:2px;border-radius:12px;box-shadow:0 4px 14px rgba(0,0,0,.08);z-index:3}.nmmsg-msgrow.theirs .nmmsg-actions{right:auto;left:0}.nmmsg-msgwrap:hover .nmmsg-actions{opacity:1}.nmmsg-actions button{border:0;background:transparent;font-size:7px;font-weight:900;color:var(--muted);padding:4px 6px;cursor:pointer}.nmmsg-picker{display:flex;position:absolute;z-index:12;top:-42px;right:0;background:var(--panel,#fff);border:1px solid var(--line);border-radius:22px;padding:4px;box-shadow:0 8px 25px rgba(0,0,0,.14)}.nmmsg-picker button{border:0;background:transparent;font-size:19px;cursor:pointer;padding:3px}.nmmsg-reactions{display:flex;gap:3px;margin-top:-3px;z-index:2;position:relative}.nmmsg-reactions button{border:1px solid var(--line);background:var(--panel,#fff);border-radius:13px;font-size:8px;padding:2px 6px;cursor:pointer}.nmmsg-reply-quote{margin-bottom:3px;border-left:3px solid #6f8eaa;padding:5px 8px;background:var(--soft,#f2f5f7);border-radius:8px;font-size:8px;color:var(--muted);max-width:280px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nmmsg-reply-quote b{margin-right:5px;color:var(--text)}.nmmsg-composer{display:grid;grid-template-columns:auto 1fr auto auto;gap:7px;align-items:end;border-top:1px solid var(--line);padding:10px 12px;background:var(--panel,#fff)}.nmmsg-composer textarea{resize:none;min-height:40px;max-height:130px;border:0;background:var(--soft,#eef2f6);border-radius:20px;padding:11px 14px;box-sizing:border-box;line-height:1.4}.nmmsg-send{width:40px;height:40px;border:0;border-radius:50%;background:#1688f0;color:#fff;font-size:17px;cursor:pointer}.nmmsg-send:disabled{opacity:.45}.nmmsg-composer{position:relative}.nmmsg-composer-picker{position:absolute;right:52px;bottom:58px;z-index:40;width:min(330px,calc(100vw - 28px));max-height:230px;overflow:auto;display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:3px;padding:9px;background:var(--panel,#fff);border:1px solid var(--line);border-radius:16px;box-shadow:0 12px 35px rgba(0,0,0,.22)}.nmmsg-composer-picker button{border:0;background:transparent;border-radius:9px;min-width:34px;min-height:34px;font-size:21px;line-height:1;cursor:pointer}.nmmsg-composer-picker button:hover,.nmmsg-composer-picker button:focus{background:var(--soft,#eef2f6);outline:none}@media(max-width:430px){.nmmsg-composer-picker{left:8px;right:8px;bottom:56px;width:auto;grid-template-columns:repeat(8,minmax(0,1fr));padding:7px}.nmmsg-composer-picker button{min-width:30px;min-height:32px;font-size:20px}}.nmmsg-replybar,.nmmsg-file-preview{margin:6px 12px 0;padding:8px 10px;border-radius:10px;background:var(--soft,#eef2f6);display:flex;align-items:center;justify-content:space-between;gap:10px}.nmmsg-replybar b,.nmmsg-replybar span{display:block;font-size:8px}.nmmsg-replybar span{color:var(--muted);margin-top:2px}.nmmsg-replybar button,.nmmsg-file-preview button{border:0;background:transparent;font-size:20px;color:var(--muted);cursor:pointer}.nmmsg-file-preview{justify-content:flex-start;flex-wrap:wrap}.nmmsg-file-preview span{font-size:8px;border:1px solid var(--line);background:var(--panel);border-radius:8px;padding:5px}.nmmsg-attachment{display:flex;gap:8px;align-items:center;margin-top:7px;padding:6px 8px;border-radius:10px;background:rgba(255,255,255,.16);text-decoration:none!important}.nmmsg-attachment.image{display:block;padding:0;background:transparent}.nmmsg-attachment.image img{display:block;max-width:300px;max-height:260px;border-radius:12px;object-fit:cover}.nmmsg-attachment.image span{display:none}.nmmsg-video-wrap{display:grid;gap:6px;max-width:min(520px,78vw)}.nmmsg-video-card{overflow:hidden;border-radius:14px;background:#07111c;color:#fff;border:1px solid rgba(255,255,255,.16)}.nmmsg-video-card video{display:block;width:100%;max-width:520px;max-height:min(58vh,420px);aspect-ratio:16/9;background:#000;object-fit:contain}.nmmsg-video-info{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;background:#0c1e2e}.nmmsg-video-info>span{display:grid;gap:2px;min-width:0}.nmmsg-video-info b{font-size:8.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nmmsg-video-info small{font-size:7px;opacity:.72}.nmmsg-video-info a{font-size:8px;font-weight:900;color:#a9d5ff!important;white-space:nowrap}.nmmsg-video-thumb{display:grid!important;gap:4px;width:min(210px,70vw);padding:6px!important}.nmmsg-video-thumb video{display:block;width:100%;max-height:130px;aspect-ratio:16/9;object-fit:cover;border-radius:7px;background:#07111c}.nmmsg-file-thumb{display:grid!important;gap:4px}.nmmsg-file-thumb img{display:block;max-width:120px;max-height:95px;object-fit:cover;border-radius:7px}.nmmsg-file-preview .invalid{border-color:#c45762!important;background:#fff0f1!important;color:#8b2630!important}.nmmsg-upload-status{margin:6px 12px 0;padding:8px 10px;border-radius:10px;background:var(--soft,#eef2f6);border:1px solid var(--line)}.nmmsg-upload-status[hidden]{display:none!important}.nmmsg-upload-status>div{display:flex;justify-content:space-between;gap:12px;align-items:center;font-size:8px;font-weight:850}.nmmsg-upload-status progress{display:block;width:100%;height:7px;margin-top:6px;accent-color:#1688f0}.nmmsg-upload-status[data-state="retry"]{border-color:#d3a843}.nmmsg-upload-status[data-state="done"]{border-color:#5fa87b}@media(max-width:650px){.nmmsg-video-wrap{max-width:min(86vw,460px)}.nmmsg-video-card video{max-height:46vh}.nmmsg-video-info{align-items:flex-start}.nmmsg-video-info a{font-size:7.5px}}.nmmsg-details{border-left:1px solid var(--line);overflow:hidden;background:var(--panel,#fff)}.nmmsg-shell:not(.details-on) .nmmsg-details{display:none}.nmmsg-detail-scroll{height:100%;overflow:auto;padding:17px 14px}.nmmsg-detail-profile{text-align:center;padding:10px 0 14px}.nmmsg-detail-profile .nmmsg-avatar{margin:auto}.nmmsg-detail-profile h3{margin:8px 0 2px}.nmmsg-detail-profile span{font-size:8px;color:var(--muted)}.nmmsg-detail-buttons{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-bottom:13px}.nmmsg-detail-buttons button{border:0;background:transparent;display:grid;gap:4px;justify-items:center;font-size:18px;cursor:pointer}.nmmsg-detail-buttons span{font-size:7px;color:var(--muted)}.nmmsg-details details{border-top:1px solid var(--line);padding:9px 0}.nmmsg-details summary{font-size:9px;font-weight:1000;cursor:pointer;padding:5px}.nmmsg-members>div{display:flex;align-items:center;gap:8px;padding:7px;position:relative}.nmmsg-members span{min-width:0}.nmmsg-members b,.nmmsg-members small{display:block}.nmmsg-members b{font-size:9px}.nmmsg-members small{font-size:7px;color:var(--muted)}.nmmsg-members i{position:static;margin-left:auto;border-color:var(--panel)}.nmmsg-ai-panel label:not(.switchRow){display:block;font-size:7.5px;font-weight:900;margin:8px 0 4px}.nmmsg-ai-panel select{width:100%}.switchRow{display:flex!important;align-items:center;justify-content:space-between;gap:12px;padding:9px 0}.switchRow span b,.switchRow span small{display:block}.switchRow small{font-size:7.5px;color:var(--muted);font-weight:500;margin-top:2px}.switchRow input{width:20px;height:20px}.nmmsg-ai-events{margin-top:8px}.nmmsg-ai-events>div{display:flex;gap:7px;border-top:1px solid var(--line);padding:7px 0}.nmmsg-ai-events p{margin:0}.nmmsg-ai-events b,.nmmsg-ai-events small{display:block;font-size:7.5px}.nmmsg-ai-events small{color:var(--muted);margin-top:2px}.nmmsg-shared-files{display:grid;gap:5px}.nmmsg-shared-files a{font-size:8px;color:#2f6eaa;text-decoration:none}.nmmsg-empty,.nmmsg-empty-chat{padding:30px 18px;text-align:center;color:var(--muted)}.nmmsg-empty b,.nmmsg-empty span{display:block}.nmmsg-empty span{font-size:8px;margin-top:4px}.nmmsg-empty-chat{margin:auto}.nmmsg-empty-chat .nmmsg-avatar{margin:auto}.nmmsg-loading{margin:auto;color:var(--muted)}.nmmsg-modal{position:fixed;inset:0;background:rgba(3,15,27,.48);z-index:5000;display:grid;place-items:center;padding:18px}.nmmsg-modal-card{width:min(430px,94vw);max-height:82vh;overflow:auto;background:var(--panel,#fff);color:var(--text);border-radius:18px;padding:18px;box-shadow:0 25px 80px rgba(0,0,0,.28)}.nmmsg-modal-card.wide{width:min(650px,94vw)}.nmmsg-modal-head{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:10px}.nmmsg-modal-head h3{margin:2px 0}.nmmsg-modal-head>button{border:0;background:transparent;font-size:24px;color:var(--text)}.nmmsg-person-search{width:100%;box-sizing:border-box}.nmmsg-people{margin-top:8px;display:grid}.nmmsg-people>button{display:flex;align-items:center;gap:9px;border:0;background:transparent;text-align:left;border-radius:10px;padding:8px;color:var(--text);cursor:pointer}.nmmsg-people>button:hover{background:var(--soft)}.nmmsg-people b,.nmmsg-people small{display:block}.nmmsg-people b{font-size:9px}.nmmsg-people small{font-size:7px;color:var(--muted)}.nmmsg-checkpeople{display:grid;gap:4px;margin:7px 0 12px}.nmmsg-checkpeople label{display:flex;align-items:center;gap:7px;padding:6px;border-radius:8px}.nmmsg-checkpeople input{width:auto}.nmmsg-search-results{display:grid;gap:5px}.nmmsg-search-results button{border:1px solid var(--line);background:var(--panel);color:var(--text);border-radius:10px;padding:9px;text-align:left}.nmmsg-search-results b,.nmmsg-search-results span,.nmmsg-search-results small{display:block}.nmmsg-search-results span{font-size:8px;margin:3px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nmmsg-search-results small{font-size:7px;color:var(--muted)}.nmmsg-page{padding:25px;overflow:auto;height:100%;box-sizing:border-box}.nmmsg-task-list{display:grid;gap:7px}.nmmsg-task{display:grid;grid-template-columns:auto 1fr auto;gap:9px;align-items:center;border:1px solid var(--line);border-radius:12px;padding:11px}.nmmsg-task>button:first-child{border:0;background:transparent;font-size:23px;color:#1688f0}.nmmsg-task b,.nmmsg-task span,.nmmsg-task small{display:block}.nmmsg-task b{font-size:10px}.nmmsg-task span{font-size:8px;margin-top:3px}.nmmsg-task small{font-size:7px;color:var(--muted);margin-top:4px}.nmmsg-task.done{opacity:.55}.nmmsg-profile-card{display:flex;align-items:center;gap:13px;border:1px solid var(--line);border-radius:15px;padding:15px;margin:14px 0}.nmmsg-profile-card div{flex:1}.nmmsg-profile-card b,.nmmsg-profile-card span{display:block}.nmmsg-profile-card span{font-size:8px;color:var(--muted);margin-top:3px}
@media(max-width:1200px){.nmmsg-shell.details-on{grid-template-columns:310px minmax(0,1fr) 285px}.nmmsg-shell{grid-template-columns:310px minmax(0,1fr) 0}}
@media(max-width:850px){.nmmsg-shell,.nmmsg-shell.details-on{height:calc(100vh - 135px);min-height:520px;grid-template-columns:1fr}.nmmsg-left{display:none;position:absolute;z-index:8;inset:0;border:0}.nmmsg-left.mobile-show{display:flex}.nmmsg-main{grid-column:1}.nmmsg-details{position:absolute;z-index:10;right:0;top:0;bottom:0;width:min(330px,88vw);box-shadow:-10px 0 30px rgba(0,0,0,.15)}.nmmsg-back{display:block}.nmmsg-msgwrap{max-width:85%}.nmmsg-actions{opacity:.82;position:static;background:transparent;border:0;box-shadow:none;justify-content:flex-end}.nmmsg-msgrow.theirs .nmmsg-actions{justify-content:flex-start}.nmmsg-page{padding:16px}}
.nmmsg-customer-events{border:1px solid #bcdcff;background:linear-gradient(180deg,rgba(22,136,240,.07),transparent);border-radius:12px;padding:8px;margin-bottom:9px}.nmmsg-customer-events-head{display:flex;justify-content:space-between;gap:8px;padding:4px 5px 8px}.nmmsg-customer-events-head b{font-size:9px}.nmmsg-customer-events-head span{font-size:7px;color:var(--muted)}.nmmsg-customer-events>button{display:block;width:100%;border:0;border-top:1px solid var(--line);background:transparent;text-align:left;padding:8px 5px;color:var(--text);cursor:pointer}.nmmsg-customer-events>button b,.nmmsg-customer-events>button span,.nmmsg-customer-events>button small{display:block}.nmmsg-customer-events>button b{font-size:9px}.nmmsg-customer-events>button span{font-size:8px;margin-top:2px}.nmmsg-customer-events>button small{font-size:7px;color:var(--muted);margin-top:3px}

@media(max-width:980px){.mobileNav{grid-template-columns:repeat(6,1fr)!important}.mobileNav button{font-size:15px!important}}
.nmmsg-seen{font-size:6.8px;color:var(--muted);padding:0 5px 2px;text-align:right}
.nmmsg-ai-inbox{display:grid;gap:8px;margin-top:14px}.nmmsg-ai-card{border:1px solid var(--line);border-radius:13px;padding:12px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;background:var(--panel,#fff)}.nmmsg-ai-card.needs_review{border-left:6px solid #d4a23d}.nmmsg-ai-card.captured{border-left:6px solid #1688f0}.nmmsg-ai-card.reviewed{border-left:6px solid #728da7}.nmmsg-ai-card b{display:block;font-size:10px;margin-top:6px}.nmmsg-ai-card p{font-size:8.5px;margin:5px 0;line-height:1.45}.nmmsg-ai-card small{font-size:7px;color:var(--muted)}
@media(max-width:700px){.nmmsg-ai-card{grid-template-columns:1fr}.nmmsg-ai-card .actionRow{justify-content:flex-start}.nmmsg-tabs{overflow-x:auto}.nmmsg-tabs button{white-space:nowrap}}

/* 24.10.2 — conversation-first cleanup / quiet refresh */
.nmmsg-shell,.nmmsg-shell.details-on{grid-template-columns:330px minmax(0,1fr);height:calc(100dvh - 112px);min-height:600px}
.nmmsg-details{display:none!important}
.nmmsg-title{padding:18px 16px 10px}
.nmmsg-title h2{font-size:27px;margin:0;letter-spacing:-.02em}
.nmmsg-search-launch{margin:0 12px 10px;width:calc(100% - 24px);min-height:42px;border:0;border-radius:22px;background:var(--soft,#eef2f6);color:var(--muted);display:flex;align-items:center;gap:9px;padding:0 14px;text-align:left;font-size:10px;font-weight:750;cursor:text}
.nmmsg-search-launch>span:first-child{font-size:19px;line-height:1}
.nmmsg-thread-list{padding:2px 7px 14px}
.nmmsg-thread{border-radius:14px;padding:10px 9px;min-height:64px}
.nmmsg-thread.selected{background:color-mix(in srgb,#1688f0 11%,var(--panel,#fff))}
.nmmsg-thread-copy b{font-size:11px}.nmmsg-thread-copy small{font-size:8.5px}
.nmmsg-welcome{max-width:390px}.nmmsg-welcome p{font-size:11px}
.nmmsg-chat-head{height:66px;padding:8px 13px;background:color-mix(in srgb,var(--panel,#fff) 96%,transparent);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.nmmsg-head-name{cursor:pointer}.nmmsg-head-name b{font-size:11.5px}.nmmsg-head-name small{font-size:8.5px}
.nmmsg-messages{padding:16px 16px 12px;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch}
.nmmsg-bubble{font-size:10.5px}
.nmmsg-composer{padding:9px 11px calc(9px + env(safe-area-inset-bottom));position:relative;z-index:3}
.nmmsg-composer textarea{font-size:16px!important}
.nmmsg-loading{display:flex;align-items:center;gap:10px;padding:20px;margin:auto;color:var(--muted)}
.nmmsg-loading>span{width:18px;height:18px;border-radius:50%;border:2px solid var(--line);border-top-color:#1688f0;animation:nmmsgspin .75s linear infinite}
@keyframes nmmsgspin{to{transform:rotate(360deg)}}
.nmmsg-settings-modal,.nmmsg-search-modal{backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.nmmsg-modal-card.settings{width:min(510px,94vw);padding:17px}.nmmsg-modal-card.search{width:min(650px,94vw);padding:0;overflow:hidden}
.nmmsg-settings-list{display:grid;gap:4px}.nmmsg-settings-list>button{border:0;background:transparent;color:var(--text);display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:10px;padding:11px;border-radius:12px;text-align:left;cursor:pointer}.nmmsg-settings-list>button:hover{background:var(--soft)}
.nmmsg-settings-list>button>span{font-size:20px;text-align:center}.nmmsg-settings-list b,.nmmsg-settings-list small{display:block}.nmmsg-settings-list b{font-size:10.5px}.nmmsg-settings-list small{font-size:8px;color:var(--muted);margin-top:2px}.nmmsg-settings-list i{font-size:24px;color:var(--muted);font-style:normal}
.nmmsg-settings-note{margin-top:12px;padding:10px 12px;border-radius:11px;background:var(--soft);font-size:8px;line-height:1.5;color:var(--muted)}
.nmmsg-settings-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:12px 0}.nmmsg-settings-actions button{border:0;background:var(--soft);border-radius:12px;min-height:58px;color:var(--text);display:grid;place-items:center;gap:2px;font-size:18px}.nmmsg-settings-actions span{font-size:7.5px;color:var(--muted);font-weight:800}
.conversation-settings details{border-top:1px solid var(--line);padding:8px 0}.conversation-settings summary{min-height:42px;display:flex;align-items:center;font-size:10px;font-weight:900;cursor:pointer}.conversation-settings .nmmsg-detail-profile{padding:2px 0 8px}
.nmmsg-search-box{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:8px;padding:11px 12px;border-bottom:1px solid var(--line);background:var(--panel,#fff)}.nmmsg-search-box>span{font-size:22px;color:var(--muted)}.nmmsg-search-box input{border:0!important;box-shadow:none!important;background:transparent!important;font-size:16px!important;min-height:42px}.nmmsg-search-box button{border:0;background:var(--soft);border-radius:50%;width:34px;height:34px;font-size:19px;color:var(--text)}
.nmmsg-search-content{max-height:min(70vh,620px);overflow:auto;padding:9px;-webkit-overflow-scrolling:touch}.nmmsg-search-section{display:grid;gap:3px;padding:7px}.nmmsg-search-section>b{font-size:9px;color:var(--muted);padding:4px 7px;text-transform:uppercase;letter-spacing:.08em}.nmmsg-search-section>small{padding:9px;color:var(--muted);font-size:9px}.nmmsg-search-section>button{border:0;background:transparent;color:var(--text);display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;text-align:left;padding:9px;border-radius:11px}.nmmsg-search-section>button:hover{background:var(--soft)}.nmmsg-search-section strong,.nmmsg-search-section small{display:block}.nmmsg-search-section strong{font-size:10px}.nmmsg-search-section small{font-size:8px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nmmsg-search-section time{font-size:7px;color:var(--muted)}

@media(max-width:1200px){.nmmsg-shell,.nmmsg-shell.details-on{grid-template-columns:300px minmax(0,1fr)}}
@media(max-width:850px){
 .nmmsg-shell,.nmmsg-shell.details-on{position:relative;height:calc(100dvh - 150px - env(safe-area-inset-top));min-height:430px;grid-template-columns:1fr;border-radius:14px}
 .nmmsg-left{display:none;position:absolute;z-index:9;inset:0;background:var(--panel,#fff);border:0}.nmmsg-left.mobile-show{display:flex}
 .nmmsg-main{grid-column:1;min-height:0}.nmmsg-back{display:block;min-width:40px;min-height:44px}
 .nmmsg-title{padding:14px 14px 9px}.nmmsg-title h2{font-size:25px}.nmmsg-search-launch{min-height:44px}
 .nmmsg-thread{min-height:68px;padding:10px}.nmmsg-thread-copy b{font-size:12px}.nmmsg-thread-copy small{font-size:9.5px}
 .nmmsg-chat-head{height:64px;padding:7px 9px}.nmmsg-head-name b{font-size:12px}.nmmsg-head-name small{font-size:9px}
 .nmmsg-head-actions .iconBtn{width:42px;height:42px}.nmmsg-msgwrap{max-width:86%}.nmmsg-bubble{font-size:12px;line-height:1.42;padding:10px 13px}
 .nmmsg-actions{opacity:.84;position:static;background:transparent;border:0;box-shadow:none;justify-content:flex-end}.nmmsg-msgrow.theirs .nmmsg-actions{justify-content:flex-start}
 .nmmsg-actions button{font-size:9px;min-height:34px}.nmmsg-messages{padding:12px 10px 10px}.nmmsg-composer{gap:5px;padding:8px 8px calc(8px + env(safe-area-inset-bottom))}.nmmsg-composer .iconBtn{width:40px;height:40px}.nmmsg-composer textarea{min-height:42px;padding:10px 12px}.nmmsg-send{width:42px;height:42px}
 .nmmsg-modal{align-items:end;padding:0}.nmmsg-modal-card,.nmmsg-modal-card.wide,.nmmsg-modal-card.settings,.nmmsg-modal-card.search{width:100vw;max-width:none;max-height:min(88dvh,760px);border-radius:20px 20px 0 0;padding:16px 14px calc(16px + env(safe-area-inset-bottom))}.nmmsg-modal-card.search{padding:0 0 env(safe-area-inset-bottom)}
 .nmmsg-settings-actions{grid-template-columns:repeat(4,1fr)}.nmmsg-page{padding:14px}
}
@media(max-width:430px){.nmmsg-head-actions #nmmsgSearchIn{display:none}.nmmsg-avatar.lg{width:42px;height:42px}.nmmsg-settings-actions{grid-template-columns:repeat(2,1fr)}.nmmsg-composer{grid-template-columns:auto 1fr auto auto}.nmmsg-modal-head h3{font-size:18px}}

/* 24.10.3 — conversation host must fill the right-side Messenger workspace */
.nmmsg-conversation-host{width:100%;height:100%;min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden;box-sizing:border-box}
.nmmsg-conversation-host>.nmmsg-welcome{margin:auto;max-width:390px;padding:30px;text-align:center}
.nmmsg-conversation-host>.nmmsg-chat-head{width:100%;box-sizing:border-box}
.nmmsg-conversation-host>.nmmsg-messages{width:100%;box-sizing:border-box}
.nmmsg-conversation-host>.nmmsg-composer{width:100%;box-sizing:border-box}
.nmmsg-conversation-host>.nmmsg-page{width:100%;max-width:none;box-sizing:border-box}

/* Mobile chat ends above navigation/keyboard; only messages scroll. */
@media(max-width:850px){
 body.nm-theme .nmmsg-shell,body.nm-theme .nmmsg-shell.details-on{height:var(--nmmsg-available-height,calc(100dvh - 220px))!important;min-height:0!important;grid-template-rows:minmax(0,1fr)}
 body.nm-theme .nmmsg-main,body.nm-theme .nmmsg-conversation-host{min-height:0;overflow:hidden}
 body.nm-theme .nmmsg-messages{flex:1 1 0;min-height:0;overflow-y:auto}
 body.nm-theme .nmmsg-composer{flex:0 0 auto;padding-bottom:8px;background:var(--nm248-surface,var(--card));border-color:var(--nm248-line,var(--line));color:var(--nm248-text,var(--text))}
 body.nm-theme .nmmsg-composer textarea{background:var(--nm248-surface2,var(--card));color:var(--nm248-text,var(--text))}
 body.nm-theme #nmmsgReplyBar,body.nm-theme #nmmsgUploadPreview{flex:0 0 auto;max-height:25%;overflow-y:auto}
}

/* 24.10.18 — Messenger reliability, presence, typing, receipts and unread badges */
.nmmsg-title h2{display:flex;align-items:center;gap:8px}.nmmsg-title-unread,.nmmsg-unread-count,.nmmsg-nav-badge{display:inline-flex;align-items:center;justify-content:center;background:#1688f0;color:#fff;font-weight:1000;line-height:1;border-radius:999px;box-sizing:border-box}.nmmsg-title-unread{font-size:10px;min-width:22px;height:22px;padding:0 7px}.nmmsg-unread-count{font-size:8px;min-width:20px;height:20px;padding:0 6px;justify-self:end}.nmmsg-title-unread[hidden],.nmmsg-nav-badge[hidden]{display:none!important}
[data-nav="messenger"]{position:relative}.nmmsg-nav-badge{position:absolute;top:3px;right:5px;z-index:4;min-width:18px;height:18px;padding:0 5px;font-size:7px;box-shadow:0 0 0 2px var(--panel,#fff)}
.nmmsg-seen{font-size:7.5px;padding:1px 5px 3px}.nmmsg-seen.read{font-weight:850}.nmmsg-seen.delivered{opacity:.86}
.nmmsg-typing{flex:0 0 auto;padding:4px 14px 2px;background:var(--panel,#fff)}.nmmsg-typing-bubble{display:inline-flex;align-items:center;gap:8px;max-width:80%;border-radius:16px;padding:6px 10px;background:var(--soft,#eef2f6);color:var(--muted);font-size:8px}.nmmsg-typing-bubble>b{display:flex;gap:3px;align-items:center}.nmmsg-typing-bubble i{display:block;width:5px;height:5px;border-radius:50%;background:currentColor;animation:nmmsgtyping 1.05s infinite ease-in-out}.nmmsg-typing-bubble i:nth-child(2){animation-delay:.14s}.nmmsg-typing-bubble i:nth-child(3){animation-delay:.28s}@keyframes nmmsgtyping{0%,60%,100%{transform:translateY(0);opacity:.42}30%{transform:translateY(-3px);opacity:1}}
.nmmsg-privacy-locked{margin:10px 0;padding:11px 12px;border:1px solid var(--line);border-radius:12px;background:var(--soft,#eef2f6)}.nmmsg-privacy-locked b,.nmmsg-privacy-locked small{display:block}.nmmsg-privacy-locked b{font-size:10px}.nmmsg-privacy-locked small{font-size:8px;color:var(--muted);margin-top:3px;line-height:1.45}
@media(max-width:850px){.nmmsg-unread-count{min-width:23px;height:23px;font-size:9px}.nmmsg-nav-badge{top:1px;right:8%;min-width:19px;height:19px;font-size:8px}.nmmsg-typing{padding:4px 10px 2px}.nmmsg-typing-bubble{font-size:9px}}
/* 24.10.72 private adaptive Stream video */
.nmmsg-stream-card iframe{display:block;width:100%;max-width:560px;aspect-ratio:16/9;border:0;background:#000}.nmmsg-video-processing{min-height:210px;display:grid;place-items:center;align-content:center;gap:7px;padding:24px;text-align:center;background:radial-gradient(circle at 50% 30%,#17344c,#07111c);color:#fff}.nmmsg-video-processing b{font-size:12px}.nmmsg-video-processing small{font-size:8px;opacity:.72}.nmmsg-processing-ring{width:26px;height:26px;border:3px solid rgba(255,255,255,.25);border-top-color:#8bc8ff;border-radius:50%;animation:nmmsgSpin72 .9s linear infinite}.nmmsg-video-links{display:flex!important;gap:9px!important;align-items:center}.nmmsg-video-file-icon{display:grid;place-items:center;min-height:110px;border-radius:7px;background:#07111c;color:#fff;font-size:28px}@keyframes nmmsgSpin72{to{transform:rotate(360deg)}}@media(max-width:650px){.nmmsg-stream-card iframe{max-width:86vw}.nmmsg-video-processing{min-height:170px}}

/* 24.10.73 — private R2 original vault */
.nmmsg-r2-card{overflow:hidden}.nmmsg-r2-vault{min-height:170px;display:grid;place-items:center;align-content:center;gap:6px;padding:24px;text-align:center;background:var(--soft,#eef2f6);color:var(--text,#172033)}.nmmsg-r2-vault-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;background:var(--panel,#fff);border:1px solid var(--line,#dbe2ea);font-size:23px}.nmmsg-r2-vault b{font-size:12px}.nmmsg-r2-vault small{font-size:8px;color:var(--muted,#667085);max-width:360px}.nmmsg-upload-status[data-state="vault"]{border-color:var(--line,#dbe2ea)}
@media(max-width:650px){.nmmsg-r2-vault{min-height:145px;padding:18px}.nmmsg-r2-vault-icon{width:40px;height:40px}}


/* 24.10.83 — Messenger performance core */
.nmmsg-platinum .nmmsg-loading-thread{display:grid;place-items:center;min-height:260px;padding:28px}.nmmsg-platinum .nmmsg-loading-card{width:min(460px,88%);display:grid;gap:10px;color:var(--mp-muted,var(--muted));font-size:12px;text-align:center}.nmmsg-platinum .nmmsg-loading-card i{display:block;height:12px;border-radius:999px;background:linear-gradient(90deg,color-mix(in srgb,var(--mp-line,var(--line)) 65%,transparent),color-mix(in srgb,var(--mp-panel,var(--panel)) 80%,white),color-mix(in srgb,var(--mp-line,var(--line)) 65%,transparent));background-size:220% 100%;animation:nm83Shimmer 1.15s linear infinite}.nmmsg-platinum .nmmsg-loading-card i:nth-child(2){width:82%}.nmmsg-platinum .nmmsg-loading-card i:nth-child(3){width:64%}@keyframes nm83Shimmer{to{background-position:-220% 0}}
.nmmsg-platinum .nmmsg-load-older{display:block;margin:10px auto 18px;padding:8px 13px;border:1px solid var(--mp-line,var(--line));border-radius:999px;background:var(--mp-panel,var(--panel));color:var(--mp-muted,var(--muted));font-size:11px;font-weight:800;cursor:pointer}.nmmsg-platinum .nmmsg-load-older:hover{color:var(--mp-ink,var(--text));border-color:color-mix(in srgb,var(--accent,#3578e5) 45%,var(--mp-line,var(--line)))}
@media(prefers-reduced-motion:reduce){.nmmsg-platinum .nmmsg-loading-card i{animation:none}}

/* Messenger safety additions: existing layout, role tools and themes stay intact. */
.nmmsg-conduct-modal{z-index:2147482600!important;align-items:center;padding:16px}
.nmmsg-conduct-card{width:min(660px,100%);max-width:660px;max-height:calc(100dvh - 32px);overflow:auto;background:var(--panel,#fff);color:var(--text);border-radius:20px;padding:22px;box-sizing:border-box}
.nmmsg-conduct-card .nmmsg-modal-head{align-items:flex-start;margin-bottom:12px}
.nmmsg-conduct-card h3{font-size:21px;line-height:1.25;margin:4px 0}
.nmmsg-conduct-card>p{font-size:14px;line-height:1.5;margin:10px 0;color:var(--text)}
.nmmsg-conduct-card .nmmsg-conduct-account{font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.nmmsg-conduct-text{white-space:pre-wrap;overflow-wrap:anywhere;max-height:min(48dvh,420px);overflow:auto;overscroll-behavior:contain;border:1px solid var(--line);border-radius:12px;background:var(--soft,#f1f5f8);padding:16px;font-size:14px;line-height:1.65}
/* BEGIN CONDUCT OFFICE CONTACT */
.nmmsg-conduct-contact{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 14px;margin:14px 0;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--soft,#f1f5f8);color:var(--text)}
.nmmsg-conduct-contact b{display:block;font-size:14px;line-height:1.45}
.nmmsg-conduct-contact p{margin:4px 0 0;font-size:13px;line-height:1.5;color:var(--muted)}
.nmmsg-conduct-contact a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 14px;border:1px solid var(--line);border-radius:10px;background:var(--panel,#fff);color:var(--text);font-size:14px;font-weight:700;line-height:1.4;text-align:center;text-decoration:none;white-space:nowrap}
.nmmsg-conduct-contact a:focus-visible{outline:3px solid #1688f0;outline-offset:3px}
.nmmsg-conduct-contact small{grid-column:1/-1;font-size:12px;line-height:1.5;color:var(--muted);overflow-wrap:anywhere}
@media(max-width:600px){.nmmsg-conduct-contact{grid-template-columns:1fr;gap:10px;padding:12px}.nmmsg-conduct-contact a{width:100%;white-space:normal}}
/* END CONDUCT OFFICE CONTACT */
.nmmsg-conduct-check{display:flex;align-items:flex-start;gap:12px;padding:16px 0;font-size:14px;line-height:1.5;cursor:pointer}
.nmmsg-conduct-check input{width:20px;height:20px;min-width:20px;margin:0;accent-color:#1688f0}
.nmmsg-conduct-check[hidden],.nmmsg-conduct-card button[hidden]{display:none!important}
.nmmsg-conduct-card .actionRow{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px}
.nmmsg-conduct-card button,.nmmsg-block-person,.nmmsg-safety-notice button{min-height:44px}
.nmmsg-conduct-card button:disabled{opacity:.5;cursor:not-allowed}
.nmmsg-conduct-text:focus-visible,.nmmsg-conduct-check input:focus-visible{outline:3px solid #1688f0;outline-offset:3px}
.nmmsg-block-person{margin-top:10px}
.nmmsg-block-status{display:block;margin:7px 0 12px;color:var(--muted);font-size:12px;line-height:1.45}
.nmmsg-safety-notice{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;border-top:1px solid var(--line);background:var(--soft,#f1f5f8);color:var(--text);font-size:13px;line-height:1.45}
.nmmsg-safety-notice button{flex:none}
@media(max-width:600px){.nmmsg-conduct-modal{padding:10px}.nmmsg-conduct-card{padding:17px;max-height:calc(100dvh - 20px);border-radius:16px}.nmmsg-conduct-text{padding:13px;max-height:44dvh}.nmmsg-conduct-card .actionRow>button{flex:1}.nmmsg-safety-notice{align-items:flex-start;font-size:12px;padding:10px}.nmmsg-safety-notice button{font-size:12px}}
