/* Messenger 24.10.40. A single, scoped conversation-first skin. */
:root{--mp-bg:#f4f7fa;--mp-panel:#ffffff;--mp-soft:#edf2f7;--mp-line:#dce5ee;--mp-ink:#172b40;--mp-muted:#526980;--mp-accent:#1764b2;--mp-selected:#eaf3ff;--mp-focus:#2177cc;--mp-shadow:0 16px 50px #102b4414}
:root[data-nm-theme="dark"]{--mp-bg:#101b27;--mp-panel:#152332;--mp-soft:#213449;--mp-line:#34495e;--mp-ink:#eff5fc;--mp-muted:#afc0d2;--mp-accent:#196bc0;--mp-selected:#233e5b;--mp-focus:#80bcff;--mp-shadow:0 16px 50px #0003}
body.nm-theme .nmmsg-platinum{grid-template-columns:310px minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr);height:var(--nmmsg-available-height,calc(100dvh - 165px))!important;min-height:0!important;border:1px solid var(--mp-line)!important;border-radius:18px;background:var(--mp-panel)!important;box-shadow:var(--mp-shadow);color:var(--mp-ink);font-size:15px;isolation:isolate}
.nmmsg-platinum *{box-sizing:border-box}
body.nm-theme .nmmsg-platinum .nmmsg-left{background:var(--mp-panel)!important;border-color:var(--mp-line)!important;min-height:0}
body.nm-theme .nmmsg-platinum .nmmsg-main,body.nm-theme .nmmsg-platinum .nmmsg-conversation-host{background:var(--mp-bg)!important;min-width:0;min-height:0;position:relative}
.nmmsg-platinum .nmmsg-icon{display:block;width:22px;height:22px;flex:none;pointer-events:none}
.nmmsg-platinum .nmmsg-title{padding:22px 18px 16px;gap:10px;flex:none;align-items:center}
.nmmsg-platinum .nmmsg-title h2{font-size:27px!important;line-height:1.25;font-weight:750;letter-spacing:-.8px;color:var(--mp-ink)!important}
.nmmsg-platinum .nmmsg-kicker{display:block;font-size:10px;font-weight:750;line-height:1.5;letter-spacing:1.2px;color:var(--mp-muted);margin-bottom:4px}
body.nm-theme .nmmsg-platinum :is(.iconBtn,.nmmsg-back){display:inline-flex;align-items:center;justify-content:center;min-width:44px;width:44px;min-height:44px;height:44px;border:1px solid transparent!important;border-radius:12px;padding:10px;background:transparent!important;color:var(--mp-muted)!important;cursor:pointer;flex:none;box-shadow:none!important;font-size:21px!important}
body.nm-theme .nmmsg-platinum :is(.iconBtn,.nmmsg-back):hover{background:var(--mp-soft)!important;color:var(--mp-ink)!important;filter:none}
.nmmsg-platinum .nmmsg-left-actions{display:flex;gap:8px;padding:0 16px 16px;flex:none}
body.nm-theme .nmmsg-platinum .nmmsg-left-actions :is(.btn,#nmceAllCalls){margin:0!important;min-height:44px;min-width:0;width:auto;max-width:none;flex:1;display:flex;gap:7px;align-items:center;justify-content:center;padding:10px 9px!important;border:1px solid var(--mp-line)!important;border-radius:11px!important;background:var(--mp-panel)!important;color:var(--mp-ink)!important;font-size:14px!important;font-weight:700;line-height:1.3;box-shadow:none!important;white-space:nowrap;cursor:pointer}
body.nm-theme .nmmsg-platinum .nmmsg-left-actions .primary{background:var(--mp-accent)!important;border-color:var(--mp-accent)!important;color:#fff!important}
.nmmsg-platinum .nmmsg-left-actions .nmmsg-icon{width:18px;height:18px}
.nmmsg-platinum .nmmsg-quicksearch{margin:0 16px 12px;display:flex;gap:2px;border:1px solid var(--mp-line);background:var(--mp-bg);border-radius:12px;flex:none;overflow:hidden}
body.nm-theme .nmmsg-platinum #nmmsgQuickFind{width:100%;min-width:0;min-height:44px;border:0!important;background:transparent!important;color:var(--mp-ink)!important;border-radius:0;padding:10px 12px!important;box-shadow:none!important;font:inherit;font-size:14px!important}
.nmmsg-platinum #nmmsgQuickFind::placeholder{color:var(--mp-muted);opacity:1}
.nmmsg-platinum .nmmsg-quicksearch:focus-within{outline:2px solid var(--mp-focus);outline-offset:2px}
.nmmsg-platinum .nmmsg-filters{display:flex;gap:3px;padding:0 12px 12px;flex:none;border-bottom:1px solid var(--mp-line)}
body.nm-theme .nmmsg-platinum .nmmsg-filters button{flex:1;min-width:44px;min-height:44px;padding:6px 8px;background:transparent!important;border:0!important;color:var(--mp-muted)!important;font-size:13px!important;font-weight:700;line-height:1.2;border-radius:10px;cursor:pointer}
body.nm-theme .nmmsg-platinum .nmmsg-filters button.active{background:var(--mp-selected)!important;color:var(--mp-ink)!important}
.nmmsg-platinum .nmmsg-thread-list{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:10px 10px 16px}
body.nm-theme .nmmsg-platinum .nmmsg-thread{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:11px;padding:12px 10px;min-height:80px;margin:3px 0;width:100%;border:1px solid transparent!important;border-radius:13px;background:transparent!important;color:var(--mp-ink)!important;text-align:left;box-shadow:none!important}
body.nm-theme .nmmsg-platinum .nmmsg-thread.selected{background:var(--mp-selected)!important;border-color:color-mix(in srgb,var(--mp-accent) 26%,var(--mp-line))!important}
body.nm-theme .nmmsg-platinum .nmmsg-thread:hover{background:var(--mp-soft)!important}
.nmmsg-platinum .nmmsg-thread-copy b{font-size:15px!important;line-height:1.35;font-weight:700;color:var(--mp-ink)!important}
.nmmsg-platinum .nmmsg-thread-copy small{font-size:12px!important;line-height:1.45;color:var(--mp-muted)!important;margin-top:5px}
.nmmsg-platinum .nmmsg-thread-trailing{align-self:start;display:flex;flex-direction:column;align-items:flex-end;gap:10px;padding-top:2px}
.nmmsg-platinum .nmmsg-thread-trailing time{font-size:11px;line-height:1.4;color:var(--mp-muted);white-space:nowrap}
.nmmsg-platinum .nmmsg-thread-trailing .pin{font-size:10px;font-weight:600;color:var(--mp-muted)}
.nmmsg-platinum :is(.nmmsg-title-unread,.nmmsg-unread-count){font-size:12px!important;min-width:24px;height:24px;padding:0 6px;background:var(--mp-accent)!important;color:#fff!important}
.nmmsg-platinum .nmmsg-avatar.md,.nmmsg-platinum .nmmsg-avatar.lg{width:48px;height:48px;font-size:18px;font-weight:700}
.nmmsg-platinum .nmmsg-avatar.sm{width:32px;height:32px;font-size:13px}
.nmmsg-platinum .avatarSpacer{width:32px}
.nmmsg-platinum .avatarWrap>i{width:12px;height:12px;border:2px solid var(--mp-panel)}
body.nm-theme .nmmsg-platinum .nmmsg-chat-head{height:82px;min-height:82px;padding:14px 20px;gap:12px;background:var(--mp-panel)!important;border-bottom:1px solid var(--mp-line);backdrop-filter:none;-webkit-backdrop-filter:none;flex:none;overflow:visible;flex-wrap:nowrap}
body.nm-theme .nmmsg-platinum .nmmsg-back{display:none}
body.nm-theme .nmmsg-platinum .nmmsg-head-name{display:block!important;min-width:0;flex:1 1 auto;padding:5px 0!important;margin:0!important;width:auto;height:auto;min-height:44px;background:transparent!important;border:0!important;box-shadow:none!important;color:var(--mp-ink)!important;text-align:left}
.nmmsg-platinum .nmmsg-head-name b{font-size:18px!important;line-height:1.4;color:var(--mp-ink)!important}
.nmmsg-platinum .nmmsg-head-name small{font-size:12px!important;line-height:1.5;color:var(--mp-muted)!important}
.nmmsg-platinum .nmmsg-head-actions{display:flex;align-items:center;gap:5px;flex:none}
body.nm-theme .nmmsg-platinum .nmcall-head-btn{width:auto;gap:7px;padding:10px 11px!important;border:1px solid var(--mp-line)!important;background:var(--mp-panel)!important;color:var(--mp-ink)!important}
.nmmsg-platinum .nmmsg-call-label{font-size:13px;font-weight:650;line-height:1}
.nmmsg-platinum .nmmsg-context-bar{position:relative;z-index:5;display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;min-height:32px;padding:6px 14px;border-bottom:1px solid var(--mp-line);background:var(--mp-panel);flex:none}
.nmmsg-platinum .nmmsg-office-tools{display:flex;gap:6px;align-items:center;min-width:0}
.nmmsg-platinum .nmmsg-office-tools:empty{display:none}
.nmmsg-platinum .nmmsg-work-notice{min-width:0;flex:1;margin-left:auto;text-align:right;line-height:1.3}
.nmmsg-platinum #nmAiWorkNotice{display:inline;position:static;margin:0;padding:0;max-width:none;width:auto;font-size:11px!important;line-height:1.5;color:var(--mp-muted)!important;background:none!important;white-space:normal}
body.nm-theme .nmmsg-platinum .nmmsg-office-tools>details{position:static;flex:none;max-height:none;overflow:visible;border:0!important;padding:0!important;margin:0;background:transparent!important;color:var(--mp-ink)!important}
.nmmsg-platinum .nmmsg-office-tools summary{display:flex;align-items:center;justify-content:center;gap:8px;list-style:none;min-height:44px;min-width:44px;padding:9px 12px;border-radius:10px;font-size:13px!important;font-weight:650!important;cursor:pointer;white-space:nowrap}
.nmmsg-platinum .nmmsg-office-tools summary::-webkit-details-marker{display:none}
.nmmsg-platinum .nmmsg-office-tools summary::after{content:'⌄';font-size:16px;margin-left:1px}
.nmmsg-platinum .nmmsg-office-tools details[open]>summary{background:var(--mp-selected);color:var(--mp-ink)}
.nmmsg-platinum .nmmsg-tool-count{font-size:11px;padding:3px 6px;min-width:22px;border-radius:7px;background:var(--mp-soft);font-weight:700}
body.nm-theme .nmmsg-platinum .nmmsg-office-tools details>div{position:absolute;top:calc(100% + 8px);right:12px;width:min(440px,calc(100% - 24px));max-height:max(120px,calc(var(--nmmsg-available-height,650px) - 265px));padding:16px;margin:0;overflow:auto;overscroll-behavior:contain;box-shadow:0 18px 50px #081e3a33;background:var(--mp-panel)!important;color:var(--mp-ink)!important;border:1px solid var(--mp-line);border-radius:14px;display:block;font-size:14px!important;line-height:1.5}
.nmmsg-platinum .nmmsg-office-tools details:not([open])>div{display:none!important}
.nmmsg-platinum .nmmsg-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid var(--mp-line);padding-bottom:10px;margin-bottom:12px}
.nmmsg-platinum .nmmsg-panel-heading b{font-size:15px;line-height:1.35}
.nmmsg-platinum .nmmsg-panel-heading button{min-height:44px;min-width:44px;padding:8px;border:1px solid var(--mp-line);background:var(--mp-soft);color:var(--mp-ink);border-radius:9px;font-size:13px;cursor:pointer}
.nmmsg-platinum .nmmsg-office-tools :is(.nmce-card,.nmai-message){margin-bottom:12px;padding:13px!important;border-color:var(--mp-line)!important;background:var(--mp-bg)!important;font-size:14px!important}
.nmmsg-platinum .nmmsg-office-tools .btn{min-height:44px;font-size:13px!important;white-space:normal}
body.nm-theme .nmmsg-platinum .nmmsg-messages{flex:1 1 0;min-height:0;overflow:auto;padding:24px 24px 12px;background:var(--mp-bg)!important;overscroll-behavior:contain;scroll-behavior:auto}
.nmmsg-platinum .nmmsg-msgrow{gap:10px;margin:14px 0 8px}
.nmmsg-platinum .nmmsg-msgrow.grouped{margin-top:3px}
.nmmsg-platinum .nmmsg-msgwrap{max-width:min(80%,650px)}
body.nm-theme .nmmsg-platinum .nmmsg-bubble{padding:12px 15px;font-size:16px!important;line-height:1.55;font-weight:400;background:var(--mp-panel)!important;color:var(--mp-ink)!important;border:1px solid var(--mp-line);border-radius:16px 16px 16px 5px;box-shadow:none!important;overflow-wrap:anywhere}
body.nm-theme .nmmsg-platinum .mine .nmmsg-bubble{background:var(--mp-accent)!important;border-color:var(--mp-accent)!important;color:#fff!important;border-radius:16px 16px 5px 16px}
body.nm-theme .nmmsg-platinum .nmmsg-bubble.unsent{background:transparent!important;color:var(--mp-muted)!important;border-style:dashed!important}
.nmmsg-platinum .nmmsg-meta{font-size:11px!important;line-height:1.5;padding:4px 4px 0;opacity:1;color:var(--mp-muted)!important}
.nmmsg-platinum .nmmsg-seen{font-size:11px!important;color:var(--mp-muted)!important;line-height:1.5;padding:1px 4px}
.nmmsg-platinum .nmmsg-seen.read{font-weight:650}
.nmmsg-platinum .sender{font-size:12px;line-height:1.5;margin:0 0 5px 3px}
.nmmsg-platinum .nmmsg-message-menu{align-self:flex-end;min-height:0;position:relative;margin-top:-30px;transform:translateX(0);z-index:2}
.nmmsg-platinum .theirs .nmmsg-message-menu{margin-left:auto;width:max-content}
.nmmsg-platinum .nmmsg-message-menu>summary{display:flex;align-items:center;justify-content:center;width:44px;height:44px;list-style:none;cursor:pointer;border-radius:10px;color:var(--mp-muted);background:var(--mp-bg)}
.nmmsg-platinum .nmmsg-message-menu>summary::-webkit-details-marker{display:none}
.nmmsg-platinum .nmmsg-message-menu[open]>summary,.nmmsg-platinum .nmmsg-message-menu>summary:hover{background:var(--mp-soft);color:var(--mp-ink)}
.nmmsg-platinum .nmmsg-message-menu:not([open])>.nmmsg-actions{display:none!important}
body.nm-theme .nmmsg-platinum .nmmsg-message-menu .nmmsg-actions{position:static!important;opacity:1!important;display:flex;flex-wrap:wrap;gap:4px;padding:5px;margin:0;max-width:100%;border:1px solid var(--mp-line)!important;background:var(--mp-panel)!important;border-radius:11px;box-shadow:0 6px 16px #08243914}
.nmmsg-platinum .nmmsg-actions button{min-width:44px;min-height:44px;padding:8px 10px;font-size:13px!important;color:var(--mp-ink)!important;border-radius:7px}
.nmmsg-platinum .nmmsg-actions button:hover{background:var(--mp-soft)}
.nmmsg-platinum .nmmsg-reactions button{min-width:44px;min-height:34px;font-size:14px;padding:5px 8px}
.nmmsg-platinum .nmmsg-reply-quote{font-size:13px;line-height:1.5;padding:8px 11px;max-width:100%;color:var(--mp-muted)}
.nmmsg-platinum .nmmsg-attachment.image img{max-width:100%;max-height:300px;border-radius:10px}
.nmmsg-platinum .nmmsg-attachment:not(.image){font-size:14px;line-height:1.5;word-break:break-word;padding:10px}
body.nm-theme .nmmsg-platinum .nmmsg-composer{display:grid!important;grid-template-columns:44px minmax(0,1fr) 44px auto!important;align-items:end;gap:8px;padding:16px!important;min-height:82px;position:relative;flex:none;z-index:6;border-top:1px solid var(--mp-line);background:var(--mp-panel)!important}
body.nm-theme .nmmsg-platinum #nmmsgText{font-family:inherit;font-size:16px!important;line-height:1.45;min-width:0;min-height:46px;max-height:130px;padding:11px 14px!important;background:var(--mp-bg)!important;color:var(--mp-ink)!important;border:1px solid var(--mp-line)!important;border-radius:13px;box-shadow:none!important}
.nmmsg-platinum #nmmsgText::placeholder{color:var(--mp-muted);opacity:1}
body.nm-theme .nmmsg-platinum .nmmsg-send{min-width:44px;width:auto;min-height:46px;height:46px;padding:10px 15px;display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--mp-accent)!important;border:1px solid var(--mp-accent)!important;border-radius:12px;color:#fff!important;font-size:14px!important;font-weight:700;box-shadow:none;cursor:pointer}
.nmmsg-platinum .nmmsg-send:disabled{opacity:.55;cursor:wait}
body.nm-theme .nmmsg-platinum .nmmsg-typing{background:var(--mp-bg)!important;padding:2px 18px}
.nmmsg-platinum .nmmsg-typing-bubble{font-size:12px;padding:7px 12px}
.nmmsg-platinum .nmmsg-composer-picker{bottom:76px;right:16px;width:330px;max-width:calc(100% - 24px);grid-template-columns:repeat(6,minmax(0,1fr));padding:9px;max-height:260px;z-index:12}
.nmmsg-platinum .nmmsg-composer-picker button{min-width:44px;min-height:44px;font-size:23px}
.nmmsg-platinum :is(.nmmsg-replybar b,.nmmsg-replybar span,.nmmsg-file-preview span){font-size:13px;line-height:1.45}
.nmmsg-platinum :is(.nmmsg-replybar button,.nmmsg-file-preview button){min-width:44px;min-height:44px}
.nmmsg-platinum .nmmsg-empty-chat{margin:auto;padding:30px 20px;max-width:420px}
.nmmsg-platinum .nmmsg-empty-chat h3{font-size:21px;color:var(--mp-ink)}
.nmmsg-platinum .nmmsg-empty-chat p,.nmmsg-platinum .nmmsg-empty span{font-size:14px!important;line-height:1.6;color:var(--mp-muted)}
.nmmsg-platinum .nmmsg-welcome{max-width:500px!important;padding:36px!important}
.nmmsg-platinum .nmmsg-welcome .nmmsg-logo{background:var(--mp-selected);color:var(--mp-accent);box-shadow:none;width:76px;height:76px;border-radius:23px}
.nmmsg-platinum .nmmsg-logo svg{width:36px;height:36px}
.nmmsg-platinum .nmmsg-welcome h2{font-size:26px!important;line-height:1.3;letter-spacing:-.5px;color:var(--mp-ink)}
.nmmsg-platinum .nmmsg-welcome p{font-size:15px!important;line-height:1.7;color:var(--mp-muted)}
.nmmsg-platinum .nmmsg-welcome .btn{font-size:14px!important;min-height:46px;display:inline-flex;align-items:center;gap:8px;padding:10px 16px;margin-top:12px}
.nmmsg-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
/* Legible search, people, settings and work dialogs. Their existing actions remain intact. */
body.nm-theme .nmmsg-modal-card{font-size:15px;color:var(--mp-ink)!important;background:var(--mp-panel)!important;box-shadow:0 20px 70px #0003;line-height:1.5}
body.nm-theme .nmmsg-modal-head h3{font-size:23px!important;line-height:1.3}
body.nm-theme .nmmsg-modal-head>button{min-width:44px;min-height:44px;border-radius:10px;font-size:27px}
body.nm-theme .nmmsg-modal-card .btn{min-height:44px;font-size:14px!important;white-space:normal}
body.nm-theme .nmmsg-modal-card :is(input:not([type=checkbox]),textarea,select){min-height:44px;font-size:16px!important;color:var(--mp-ink)!important;background:var(--mp-bg)!important;border-color:var(--mp-line)!important}
body.nm-theme .nmmsg-modal-card :is(.nmmsg-people b,.nmmsg-members b,.nmmsg-settings-list b,.nmmsg-task b,.nmmsg-search-section strong){font-size:15px!important}
body.nm-theme .nmmsg-modal-card :is(small,.nmmsg-settings-note,.nmmsg-settings-actions span,.nmmsg-ai-panel label:not(.switchRow),.nmmsg-ai-events b,.nmmsg-shared-files a,.nmmsg-detail-profile>span){font-size:13px!important;line-height:1.5}
body.nm-theme .nmmsg-modal-card summary{min-height:48px;font-size:15px!important}
body.nm-theme .nmmsg-modal-card .nmmsg-search-section time{font-size:12px!important}
body.nm-theme .nmmsg-modal-card .nmmsg-people>button{padding:12px;min-height:70px;gap:12px}
body.nm-theme .nmmsg-modal-card .nmmsg-settings-list>button{min-height:76px}
body.nm-theme .nmmsg-modal-card .nmmsg-settings-actions button{min-height:78px;gap:4px}
.nmmsg-platinum :is(button,summary,a,textarea):focus-visible,.nmmsg-modal :is(button,summary,input,select,textarea):focus-visible{outline:2px solid var(--mp-focus)!important;outline-offset:3px}
@media(max-width:1150px){body.nm-theme .nmmsg-platinum{grid-template-columns:290px minmax(0,1fr)!important}.nmmsg-platinum .nmmsg-call-label{display:none}.nmmsg-platinum .nmmsg-work-notice{text-align:left;flex-basis:100%}.nmmsg-platinum .nmmsg-head-actions{gap:3px}}
@media(max-width:850px){body.nm-theme .nmmsg-platinum{grid-template-columns:minmax(0,1fr)!important;border-radius:14px}.nmmsg-platinum .nmmsg-title{padding:18px 18px 14px}.nmmsg-platinum .nmmsg-title h2{font-size:28px!important}.nmmsg-platinum .nmmsg-thread-copy b{font-size:16px!important}.nmmsg-platinum .nmmsg-thread-copy small{font-size:13px!important}.nmmsg-platinum .nmmsg-thread{min-height:84px}.nmmsg-platinum .nmmsg-call-label{display:none}body.nm-theme .nmmsg-platinum .nmmsg-back{display:inline-flex}.nmmsg-platinum .nmmsg-head-name b{font-size:17px!important}body.nm-theme .nmmsg-platinum .nmmsg-chat-head{height:72px;min-height:72px;padding:10px;gap:8px}.nmmsg-platinum .nmmsg-context-bar{padding:4px 10px}.nmmsg-platinum .nmmsg-work-notice{flex-basis:100%;padding:0 3px 2px;text-align:left}.nmmsg-platinum .nmmsg-office-tools summary{font-size:13px!important;padding:8px 10px}.nmmsg-platinum #nmAiWorkNotice{font-size:11px!important}body.nm-theme .nmmsg-platinum .nmmsg-messages{padding:16px 12px 8px}.nmmsg-platinum .nmmsg-msgwrap{max-width:84%}.nmmsg-platinum .nmmsg-msgrow{gap:7px;margin-top:10px}body.nm-theme .nmmsg-platinum .nmmsg-bubble{font-size:16px!important;padding:10px 13px}.nmmsg-platinum .nmmsg-msgrow .nmmsg-avatar.sm,.nmmsg-platinum .avatarSpacer{width:26px;height:26px}body.nm-theme .nmmsg-platinum .nmmsg-composer{padding:10px!important;gap:4px;min-height:68px}.nmmsg-platinum .nmmsg-send span{display:none}body.nm-theme .nmmsg-platinum .nmmsg-send{padding:10px;width:44px}.nmmsg-platinum .nmmsg-composer-picker{bottom:65px;grid-template-columns:repeat(6,minmax(0,1fr))}.nmmsg-platinum .nmmsg-office-tools details>div{right:8px;width:calc(100% - 16px)}.nmmsg-platinum .nmmsg-quicksearch{margin-top:2px}}
@media(max-width:600px){.nmmsg-platinum #nmmsgHeadAvatar,.nmmsg-platinum #nmmsgSearchIn{display:none!important}.nmmsg-platinum .nmmsg-head-actions{gap:2px}body.nm-theme .nmmsg-platinum .nmmsg-chat-head{gap:6px;padding:8px;height:68px;min-height:68px}.nmmsg-platinum .nmmsg-head-name b{font-size:16px!important}.nmmsg-platinum .nmmsg-head-name small{font-size:11px!important}.nmmsg-platinum .nmmsg-head-actions .nmmsg-icon{width:21px;height:21px}.nmmsg-platinum .nmmsg-message-menu>summary{height:40px}.nmmsg-platinum .nmmsg-message-menu{margin-top:-27px}.nmmsg-platinum .nmmsg-attachment.image img{max-height:240px}}
@media(prefers-reduced-motion:reduce){.nmmsg-platinum *, .nmmsg-modal *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Message metadata is one row, never underneath a floating action button. */
body.nm-theme #page .nmmsg-platinum .nmmsg-bubble{font-weight:400!important}
.nmmsg-platinum .nmmsg-message-footer{display:flex;align-items:center;gap:7px;min-height:36px;width:100%;color:var(--mp-muted)}
.nmmsg-platinum .mine .nmmsg-message-footer{justify-content:flex-end}
.nmmsg-platinum .nmmsg-message-footer :is(.nmmsg-meta,.nmmsg-seen){padding:0;font-weight:400!important;white-space:nowrap}
.nmmsg-platinum .nmmsg-message-menu,.nmmsg-platinum .theirs .nmmsg-message-menu{margin:0!important;transform:none;align-self:auto;width:auto}
.nmmsg-platinum .nmmsg-message-menu>summary{height:44px!important;width:44px;background:transparent}
.nmmsg-platinum .nmmsg-message-menu .nmmsg-actions{position:absolute!important;bottom:100%;top:auto!important;right:0;left:auto!important;min-width:150px;z-index:8}
.nmmsg-platinum .theirs .nmmsg-message-menu .nmmsg-actions{left:0!important;right:auto!important}
.nmmsg-platinum .nmmsg-message-menu[open]{z-index:10}
.nmmsg-platinum .nmmsg-date-marker{display:flex;align-items:center;justify-content:center;margin:0 0 20px;gap:15px;color:var(--mp-muted);font-size:12px;font-weight:600}
.nmmsg-platinum .nmmsg-date-marker::before,.nmmsg-platinum .nmmsg-date-marker::after{content:'';width:38px;height:1px;background:var(--mp-line)}
body.nm-theme .nmmsg-platinum .nmmsg-left-actions #nmmsgNew{background:var(--mp-accent)!important;color:#fff!important;border-color:var(--mp-accent)!important}
body.nm-theme #page .nmmsg-platinum .mine .nmmsg-bubble{background:var(--mp-accent)!important;color:#fff!important}
/* Support stays available in Messenger's Settings and Conversation details, not over messages. */
body:has(.nmmsg-platinum)>#help,body:has(.nmmsg-platinum)>#nm249ReportBtn{display:none!important}
.nmmsg-support-links{display:flex;gap:8px;border-top:1px solid var(--mp-line);padding-top:14px;margin-top:14px}.nmmsg-support-links button{flex:1}
@media(hover:hover) and (pointer:fine){.nmmsg-platinum .nmmsg-message-menu:not([open]){opacity:0}.nmmsg-platinum .nmmsg-msgrow:hover .nmmsg-message-menu,.nmmsg-platinum .nmmsg-message-menu:focus-within{opacity:1}}
body:has(.nmmsg-platinum) #help,body:has(.nmmsg-platinum) #nm249ReportBtn{display:none!important}
.nmmsg-platinum .nmmsg-msgrow{align-items:flex-start}
.nmmsg-platinum .nmmsg-msgrow>.nmmsg-avatar{margin-top:7px}
@media(max-width:850px){.nmmsg-platinum .nmmsg-message-menu:not([open]){opacity:1}}

/* 24.10.60 — one-line Messenger tools + larger message history */
body.nm-theme .nmmsg-platinum{grid-template-columns:280px minmax(0,1fr)!important}
body.nm-theme .nmmsg-platinum .nmmsg-chat-head{position:relative;height:68px;min-height:68px;padding:10px 12px;gap:7px}
.nmmsg-platinum .nmmsg-head-actions{display:flex;align-items:center;flex-wrap:nowrap;gap:4px;min-width:0;flex:1 1 auto;max-width:none;overflow:visible}
.nmmsg-platinum .nmmsg-head-actions::-webkit-scrollbar{display:none}
body.nm-theme .nmmsg-platinum #nmmsgConversationSettings{display:block!important;visibility:visible!important;opacity:1!important;position:relative!important;z-index:2!important;width:110px!important;height:44px!important;min-height:44px!important;flex:0 0 110px!important;min-width:100px!important;max-width:120px!important;overflow:hidden!important}
.nmmsg-platinum .nmmsg-office-tools{display:flex;align-items:center;gap:5px;min-width:max-content;flex:none;order:30}
.nmmsg-platinum .nmmsg-office-tools:empty{display:none}
body.nm-theme .nmmsg-platinum .nmmsg-office-tools>details{position:static}
body.nm-theme .nmmsg-platinum .nmmsg-office-tools summary,body.nm-theme .nmmsg-platinum .nmmsg-ai-head-btn{display:flex;align-items:center;justify-content:center;position:relative;gap:5px;width:auto;min-width:44px;min-height:44px;margin:0;padding:9px 7px!important;border:1px solid var(--mp-line)!important;border-radius:12px;background:var(--mp-panel)!important;color:var(--mp-ink)!important;font-size:12px!important;font-weight:650!important;line-height:1;white-space:nowrap;box-shadow:none!important}
.nmmsg-platinum .nmmsg-office-tools summary::after{display:none!important;content:none!important}
.nmmsg-platinum .nmmsg-office-tools details[open]>summary,body.nm-theme .nmmsg-platinum .nmmsg-office-tools summary:hover,body.nm-theme .nmmsg-platinum .nmmsg-ai-head-btn:hover{background:var(--mp-selected)!important}
.nmmsg-platinum .nmmsg-head-actions .nmmsg-call-label{font-size:12px!important}
.nmmsg-platinum .nmmsg-tool-icon{display:inline-flex;align-items:center;justify-content:center;min-width:15px;font-size:14px;line-height:1;color:currentColor}
.nmmsg-platinum .nmmsg-tool-count{position:absolute;top:-6px;right:-5px;z-index:2;flex:none;pointer-events:none}
body.nm-theme .nmmsg-platinum .nmmsg-office-tools details>div{top:calc(100% + 8px);right:12px;z-index:80;max-height:max(160px,calc(var(--nmmsg-available-height,650px) - 180px))}
.nmmsg-platinum #nmmsgVoiceCall{order:10}.nmmsg-platinum #nmmsgVideoCall{order:20}.nmmsg-platinum #nmAiThreadNotes{order:10}.nmmsg-platinum #nmceChatCards{order:20}.nmmsg-platinum #nmAiLaunch{order:40}.nmmsg-platinum #nmAiActions{order:50}.nmmsg-platinum #nmmsgSearchIn{order:60}.nmmsg-platinum #nmmsgConversationSettings2{order:70}
.nmmsg-platinum .nmmsg-context-bar,.nmmsg-platinum .nmmsg-work-notice,.nmmsg-platinum #nmAiWorkNotice,.nmmsg-platinum .nmra-call-notice,.nm-local-strip{display:none!important}
body.nm-theme .nmmsg-platinum .nmmsg-messages{padding-top:18px}
@media(max-width:1599px){.nmmsg-platinum .nmmsg-head-actions{max-width:none}.nmmsg-platinum .nmmsg-head-actions .nmmsg-call-label{display:none}body.nm-theme .nmmsg-platinum .nmmsg-office-tools summary,body.nm-theme .nmmsg-platinum .nmmsg-ai-head-btn,body.nm-theme .nmmsg-platinum .nmcall-head-btn{padding:9px!important}}
@media(max-width:850px){body.nm-theme .nmmsg-platinum{grid-template-columns:minmax(0,1fr)!important}body.nm-theme .nmmsg-platinum #nmmsgConversationSettings{width:86px!important;min-width:80px!important;max-width:90px!important;flex-basis:86px!important}body.nm-theme .nmmsg-platinum .nmmsg-chat-head{height:64px;min-height:64px;padding:8px;gap:6px}.nmmsg-platinum .nmmsg-head-actions{flex:1 1 auto;max-width:none;gap:4px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}.nmmsg-platinum .nmmsg-head-name small{display:none}body.nm-theme .nmmsg-platinum .nmmsg-office-tools details>div{right:8px;width:calc(100% - 16px);top:calc(100% + 6px)}}
@media(max-width:600px){body.nm-theme .nmmsg-platinum .nmmsg-chat-head{height:60px;min-height:60px;padding:7px 8px}.nmmsg-platinum .nmmsg-head-actions{max-width:none}body.nm-theme .nmmsg-platinum #nmmsgConversationSettings{width:76px!important;min-width:72px!important;max-width:82px!important;flex-basis:76px!important}.nmmsg-platinum .nmmsg-head-name b{font-size:15px!important}.nmmsg-platinum .nmmsg-head-actions :is(.iconBtn,summary){min-height:42px!important;min-width:42px!important}}

