.bm-shell{position:fixed;z-index:5000;inset:5vh max(24px,calc((100vw - 1200px)/2));display:grid;grid-template-columns:320px minmax(0,1fr);background:white;border:1px solid #e9e2f5;border-radius:22px;box-shadow:0 25px 100px #30204433;overflow:hidden;color:#30283f;font:14px/1.4 system-ui}.bm-shell *{box-sizing:border-box}.bm-sidebar{display:flex;flex-direction:column;min-height:0;border-right:1px solid #eee9f5;background:#fff}.bm-sidebar header,.bm-header{display:flex;align-items:center;gap:12px;padding:16px;border-bottom:1px solid #eee9f5;flex-shrink:0}.bm-sidebar h2{font-size:20px;margin:0;flex:1}.bm-shell button{cursor:pointer;font:inherit;border:0;background:transparent;color:inherit;min-height:42px;border-radius:10px}.bm-sidebar header button,.bm-header>button{width:40px;font-size:24px}.bm-shell button:hover{background:#f0ebfb}.bm-shell button:focus-visible,.bm-shell a:focus-visible{outline:2px solid #6750cb;outline-offset:-2px}.bm-search{margin:12px;width:calc(100% - 24px);min-height:42px;background:#f7f5fa;border:0;border-radius:12px;padding:10px}.bm-dialogs{overflow-y:auto;flex:1}.bm-person{display:flex!important;align-items:center;gap:12px;width:100%;padding:12px!important;text-align:left!important;border-radius:0!important;min-height:78px!important}.bm-person.selected{background:#eee8fc!important}.bm-avatar{position:relative;display:block;flex:0 0 44px;width:44px;height:44px}.bm-avatar img,.bm-avatar>i{width:44px;height:44px;object-fit:cover;border-radius:50%;display:grid;place-items:center;background:#eee7fb;color:#674bc4;font-size:20px;font-style:normal}.bm-avatar em{position:absolute;bottom:0;right:0;width:11px;height:11px;background:#b9b3c6;border:2px solid white;border-radius:50%}.bm-avatar em.online,.bm-avatar em.talking{background:#7357ce}.bm-person-copy{min-width:0;flex:1}.bm-person-copy b,.bm-person-copy small{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.bm-person-copy small{margin-top:4px;color:#8b829b}.bm-person-meta{display:grid;justify-items:end;gap:6px;font-size:11px;color:#93899f}.bm-person-meta strong,.bm-badge{display:grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border-radius:12px;background:#6d50ca;color:#fff;font-size:11px}.bm-badge{position:absolute;right:-3px;top:-3px;border:2px solid white}.bm-badge[hidden]{display:none}.bm-sidebar>footer{display:flex;gap:5px;padding:8px;border-top:1px solid #eee9f5}.bm-sidebar>footer button{font-size:11px;flex:1;color:#75658e}.bm-main{display:flex;flex-direction:column;min-width:0;min-height:0}.bm-welcome,.bm-empty{padding:32px;text-align:center;color:#94899f}.bm-welcome{margin:auto}.bm-welcome b{font-size:22px;color:#544366}.bm-header>div{flex:1;min-width:0}.bm-header small{display:block;color:#978aa6;font-size:12px}.bm-header [data-back]{display:none}.bm-stream{position:relative;flex:1;min-height:0;overflow-y:auto;padding:18px;background:#f8f6fc;overscroll-behavior:contain}.bm-messages{display:flex;flex-direction:column;gap:6px;align-items:flex-start}.bm-bubble{max-width:80%;min-width:85px;background:#fff;border-radius:15px 15px 15px 4px;padding:10px 13px;box-shadow:0 1px 3px #3823450a;overflow-wrap:anywhere}.bm-bubble.own{align-self:flex-end;background:#eee5fc;border-radius:15px 15px 4px 15px}.bm-bubble footer{display:flex;justify-content:flex-end;gap:6px;margin-top:3px;font-size:10px;color:#9b8ca8}.bm-bubble footer span{color:#7151c3}.bm-bubble audio{display:block;width:min(280px,100%);margin-top:5px}.bm-bubble a{display:block;color:#6545bd;padding:8px 0}.bm-date{align-self:center;border-radius:20px;padding:4px 12px;background:#ede7f4;color:#9a8aa9;font-size:11px;margin:9px 0}.bm-compose{padding:12px;border-top:1px solid #eee9f5;background:#fff}.bm-input-row{display:flex;gap:8px;align-items:flex-end}.bm-input-row label,.bm-input-row button{width:42px;min-height:44px;display:grid;place-items:center;flex-shrink:0;color:#775abd;font-size:22px}.bm-input-row button[type=submit]{background:#6b50c7;color:white;border-radius:50%}.bm-input-row textarea{flex:1;min-width:0;min-height:44px;max-height:140px;padding:11px;border:0;background:#f8f6fc;border-radius:12px;resize:vertical;font:inherit}.bm-file{font-size:12px;color:#7559ae}.bm-error{display:block;color:#aa506b;font-size:11px}.bm-down{position:sticky;bottom:4px;left:40%;background:#fff!important;box-shadow:0 2px 14px #38234522;font-size:12px!important}.bm-shell [hidden]{display:none!important}.bm-stream>[data-older]{display:block;margin:0 auto 12px;font-size:12px;color:#907aa7}
@media(max-width:750px){.bm-shell{inset:0;grid-template-columns:1fr;border-radius:0;height:100dvh}.bm-main{display:none}.bm-shell.has-peer .bm-sidebar{display:none}.bm-shell.has-peer .bm-main{display:flex}.bm-header [data-back]{display:block}.bm-header{padding:10px}.bm-stream{padding:12px}.bm-bubble{max-width:88%}.bm-compose{padding-bottom:max(12px,env(safe-area-inset-bottom))}.bm-header{padding-top:max(10px,env(safe-area-inset-top))}}

.bm-bubble:has(audio){width:min(320px,88%)}.bm-bubble audio{width:100%;min-width:230px}.bm-shell:focus-within{outline:none}

.bm-shell:not(.has-peer){inset:8vh auto 8vh max(24px,calc((100vw - 480px)/2));width:min(480px,calc(100vw - 48px));grid-template-columns:1fr}.bm-shell:not(.has-peer) .bm-main{display:none}.bm-header [data-back]{display:block}.bm-shell svg{width:23px;height:23px;display:block}.bm-avatar em{min-width:11px!important;max-width:11px!important;min-height:11px!important;max-height:11px!important;padding:0!important;font-style:normal}.bm-recording{padding:10px;color:#7550c7;font-size:13px;font-weight:600}.bm-input-row [data-voice]{touch-action:none;user-select:none;-webkit-user-select:none}.bm-input-row [data-voice].is-recording{background:#eee5fc;color:#b43d68;box-shadow:0 0 0 5px #eee5fc}.bm-recording:not([hidden]){animation:bm-pulse 1.2s ease-in-out infinite}@keyframes bm-pulse{50%{opacity:.6}}@media(max-width:750px){.bm-shell:not(.has-peer){inset:0;width:100%;height:100dvh}}

.bm-recording:not([hidden]){display:flex;align-items:center;gap:10px;background:#f0eafa;border:1px solid #ded2f4;border-radius:14px;padding:14px;margin-bottom:10px;animation:none}.bm-record-dot{width:8px;height:8px;flex-shrink:0;border-radius:50%;background:#bc456a;animation:bm-pulse 1s infinite}.bm-recording time{font-variant-numeric:tabular-nums;min-width:35px}.bm-wave{height:32px;display:flex;align-items:center;justify-content:center;gap:3px;flex:1;min-width:60px}.bm-wave i{display:block;width:3px;height:4px;border-radius:3px;background:#7452c6;transition:height 80ms}.bm-record-hint{font-size:12px;max-width:160px}@media(max-width:480px){.bm-recording:not([hidden]){flex-wrap:wrap}.bm-record-hint{width:100%;max-width:none;text-align:center}.bm-wave{gap:2px}}

.bm-audio-duration{display:block;margin:7px 2px 3px;color:#78638e;font-size:12px;font-variant-numeric:tabular-nums}

.bm-voice-player{display:flex;align-items:center;gap:12px;min-width:0;width:280px;max-width:100%;padding:7px 0}.bm-voice-player audio{display:none!important}.bm-shell .bm-play{display:grid;place-items:center;width:42px;height:42px;min-height:42px;flex:0 0 42px;border-radius:50%;background:#7153cd;color:white;font-size:17px;padding:0}.bm-shell .bm-play:hover{background:#6041bd}.bm-voice-body{flex:1;min-width:0}.bm-seek{display:block;width:100%;height:16px;margin:0;accent-color:#7453ce;cursor:pointer}.bm-voice-body .bm-audio-duration{margin:4px 0 0;font-size:11px;color:#8b7b9d}.bm-bubble:has(.bm-voice-player){width:min(310px,88%);padding:10px 14px}.bm-bubble footer{gap:5px;flex-wrap:wrap}.bm-bubble footer span{font-size:9px}

/* Compact voice waveform and shared primary action styling. */
.bm-shell .bm-play,.bm-input-row [data-voice],.bm-input-row button[type=submit]{width:46px;height:46px;min-height:46px;flex:0 0 46px;border-radius:50%;padding:0;background:linear-gradient(145deg,#9472ed,#6943d4 60%,#5129b5);color:#fff;border:1px solid #8057dc;box-shadow:inset 0 2px 2px #ffffff60,0 5px 12px #6842c52b;transition:transform .15s,box-shadow .15s}
.bm-shell .bm-play:hover,.bm-input-row [data-voice]:hover,.bm-input-row button[type=submit]:hover{background:linear-gradient(145deg,#a080f4,#7650de 60%,#5b32c1);box-shadow:inset 0 2px 2px #ffffff60,0 6px 16px #6842c53d}
.bm-shell .bm-play:active,.bm-input-row [data-voice]:active,.bm-input-row button[type=submit]:active{transform:scale(.95)}
.bm-shell .bm-play svg{width:23px;height:23px}.bm-voice-player{width:270px;gap:12px;padding:2px 0}.bm-wave-seek{position:relative;height:32px}.bm-playback-wave{display:flex;align-items:center;justify-content:space-between;gap:2px;height:32px;pointer-events:none}.bm-playback-wave i{width:3px;min-width:2px;border-radius:3px;background:#baa4e5}.bm-playback-wave i.played{background:#7146d0}.bm-wave-seek .bm-seek{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}.bm-wave-seek:focus-within{outline:2px solid #8057dc;outline-offset:4px;border-radius:4px}.bm-bubble:has(.bm-voice-player){width:min(300px,88%);padding:12px 14px}.bm-voice-body .bm-audio-duration{margin-top:3px}.bm-input-row textarea{resize:none}.bm-input-row{align-items:center}.bm-bubble>div:empty{display:none}

.bm-shell .bm-write-registrant{display:inline-flex;align-items:center;justify-content:center;margin-top:12px;padding:9px 20px;background:linear-gradient(135deg,#8964e4,#623ac6);color:#fff;border-radius:12px;font-weight:600}.bm-shell .bm-write-registrant:hover{background:#7047ce}.bm-pending-hint{display:block;margin-bottom:8px;color:#8b7b9d;font-size:12px}

.bm-attachment-preview{display:block;width:auto;max-width:min(360px,70vw);max-height:220px;object-fit:contain;margin:4px 0 8px;border-radius:12px;border:1px solid #e4d9f5}.bm-image-attachment{display:block;margin-top:5px}.bm-image-attachment img{display:block;width:auto;height:auto;max-width:min(420px,70vw);max-height:360px;object-fit:contain;border-radius:12px}

.bm-image-attachment{border:0;padding:0;background:transparent;cursor:zoom-in}.bm-image-attachment:hover{background:transparent}.bm-image-lightbox{position:fixed;z-index:12000;inset:0;display:flex;align-items:center;justify-content:center;padding:48px;background:#171322eF;backdrop-filter:blur(8px)}.bm-image-lightbox>img{display:block;max-width:min(1100px,94vw);max-height:90vh;object-fit:contain;border-radius:14px;box-shadow:0 18px 70px #0008}.bm-shell .bm-image-lightbox-close{position:fixed;right:24px;top:20px;width:48px;height:48px;border-radius:50%;background:#fff;color:#30283f;font-size:30px;box-shadow:0 4px 22px #0004}.bm-image-lightbox-close:hover{background:#f2eafa}@media(max-width:600px){.bm-image-lightbox{padding:16px}.bm-shell .bm-image-lightbox-close{right:12px;top:12px}}
.bm-header{gap:12px}.bm-call-actions{display:flex;gap:6px;margin-left:auto}.bm-call-actions button,.bm-group-call-prompt button,.bm-call-stage button{border:1px solid #e6def2;border-radius:10px;background:#fff;color:#6848c7;padding:8px 11px;font:inherit;cursor:pointer}.bm-call-actions button:hover,.bm-group-call-prompt button:hover{background:#f0eaff}.bm-group-call-prompt{display:flex;align-items:center;gap:10px;padding:10px 16px;background:#efe8ff;color:#35234e}.bm-group-call-prompt[hidden]{display:none}.bm-group-call-prompt span{flex:1}.bm-group-sender{display:block;font-size:12px;color:#704fcf;margin-bottom:4px}.bm-call-stage{position:fixed;z-index:10040;right:24px;bottom:24px;width:min(680px,calc(100vw - 48px));background:#171420;color:white;border-radius:18px;box-shadow:0 18px 60px #16102066;overflow:hidden}.bm-call-stage[hidden]{display:none}.bm-call-stage header{display:flex;align-items:center;gap:14px;padding:12px 16px}.bm-call-stage header span{margin-left:auto;color:#ddd}.bm-call-videos{display:flex;gap:8px;flex-wrap:wrap;padding:8px;max-height:65vh;overflow:auto}.bm-call-video-tile{position:relative;flex:1 1 220px;min-height:150px;background:#312b3c;border-radius:12px;overflow:hidden}.bm-call-video-tile video{width:100%;height:100%;min-height:150px;object-fit:cover}.bm-call-video-tile small{position:absolute;left:8px;bottom:8px;padding:4px 7px;background:#0009;border-radius:6px}.bm-direct-call-video{position:fixed;z-index:10041;right:24px;bottom:24px;width:min(640px,calc(100vw - 48px));aspect-ratio:16/10;background:#171420;border-radius:18px;overflow:hidden;box-shadow:0 18px 60px #16102066}.bm-direct-call-video header{position:absolute;z-index:2;left:0;right:0;top:0;display:flex;justify-content:space-between;padding:12px;color:white;background:#0006}.bm-direct-call-video button{border:0;border-radius:8px;padding:8px 12px;background:#d44;color:white}.bm-direct-call-video video.remote{width:100%;height:100%;object-fit:cover}.bm-direct-call-video video.local{position:absolute;right:14px;bottom:14px;width:25%;aspect-ratio:4/3;object-fit:cover;border-radius:10px;border:2px solid white}.bm-call-video-tile.disconnected{opacity:.45}@media(max-width:600px){.bm-call-stage{right:8px;bottom:8px;width:calc(100vw - 16px)}.bm-direct-call-video{right:8px;bottom:8px;width:calc(100vw - 16px)}}
/* Compact incoming calls stay visible above dialogs without blocking the page. */
.bm-incoming-call{position:fixed;z-index:13000;right:18px;top:18px;width:324px;max-width:calc(100vw - 24px);box-sizing:border-box;display:grid;grid-template-columns:50px minmax(0,1fr);gap:12px;padding:16px;border:1px solid #e2d7f5;border-radius:20px;background:linear-gradient(135deg,#fff,#faf7ff);box-shadow:0 10px 36px #39216724;color:#30283f;animation:bm-incoming-enter .2s ease-out;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}
.bm-incoming-avatar{width:50px;height:50px;display:grid;place-items:center;align-self:center;border-radius:50%;background:#ece3fc;color:#704bcd;font-size:19px;font-weight:700;box-shadow:0 0 0 5px #ede4fb75}.bm-incoming-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.bm-incoming-copy{display:grid;gap:4px;min-width:0}.bm-incoming-label{display:flex;align-items:center;gap:6px;color:#7651c9;font-size:11px;font-weight:700;letter-spacing:.03em}.bm-incoming-label i{width:6px;height:6px;border-radius:50%;background:#7d56d4;animation:bm-incoming-pulse 1.2s ease-in-out infinite}.bm-incoming-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:16px;line-height:1.3}.bm-incoming-type{font-size:12px;color:#8a7d99;line-height:1.4}
.bm-incoming-actions{grid-column:1/-1;display:flex;gap:8px;margin-top:2px}.bm-incoming-call button{display:flex;align-items:center;justify-content:center;gap:7px;flex:1;border:0;border-radius:12px;padding:10px 12px;font:inherit;font-size:12px;font-weight:650;cursor:pointer;transition:filter .15s}.bm-incoming-call button svg{width:16px;height:16px}.bm-incoming-call button[data-accept]{background:linear-gradient(135deg,#865be9,#623aca);color:#fff;box-shadow:0 4px 12px #7347d12b}.bm-incoming-call button[data-decline]{background:#f6eaf0;color:#be4764}.bm-incoming-call button[data-decline] svg{transform:rotate(135deg)}.bm-incoming-call button:hover{filter:brightness(.96)}.bm-incoming-call button:focus-visible{outline:3px solid #bd9bf9;outline-offset:3px}.bm-incoming-call button:disabled{opacity:.65;cursor:wait}body:has([data-messenger-incoming]) .bm-incoming-call[data-group-incoming]{top:188px}
@keyframes bm-incoming-pulse{50%{opacity:.35;box-shadow:0 0 0 4px #8055d520}}@keyframes bm-incoming-enter{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){.bm-incoming-call,.bm-incoming-label i{animation:none}}@media(max-width:600px){.bm-incoming-call{right:12px;top:12px;width:min(324px,calc(100vw - 24px))}body:has([data-messenger-incoming]) .bm-incoming-call[data-group-incoming]{top:180px}}

.bm-active-call .bm-incoming-actions{justify-content:flex-end;align-items:center}.bm-active-call .bm-incoming-actions button{flex:0 0 42px;width:42px;height:42px;min-width:42px;padding:0;border-radius:50%;box-sizing:border-box}.bm-active-call .bm-incoming-actions svg{width:20px;height:20px}.bm-active-call button.bm-call-end{background:#ef5974;color:#fff;box-shadow:0 4px 12px #ef597433}.bm-active-call .bm-call-end svg{transform:rotate(135deg)}.bm-active-call button.bm-call-mute{background:#eee6fb;color:#744cc9}.bm-active-call .bm-call-mute.is-muted{background:#f8e6ed;color:#c04666}.bm-active-call .bm-mute-slash{display:none}.bm-active-call .is-muted .bm-mute-slash{display:block}.bm-active-call.is-connected .bm-incoming-label i{background:#27b780;animation:none}.bm-active-call.is-connected .bm-incoming-type{color:#218263;font-variant-numeric:tabular-nums}

.bm-call-actions button{width:40px;height:40px;padding:0;display:grid;place-items:center}.bm-call-actions button svg{width:20px;height:20px}

.bm-active-call .bm-audio-unlock{align-self:flex-start;flex:none;width:auto;min-width:0;height:auto;padding:5px 9px;border:1px solid #e2d7f5;border-radius:9px;background:#f6f1ff;color:#6846b5;font-size:11px}.bm-active-call .bm-audio-unlock[hidden]{display:none}

/* Keep the messenger's close control inside narrow phone viewports. */
@media(max-width:760px){
 .bm-shell,.bm-shell:not(.has-peer){inset:0!important;width:100%!important;max-width:100vw!important;height:100dvh!important;grid-template-columns:minmax(0,1fr)!important;min-width:0!important}
 .bm-sidebar,.bm-main{min-width:0!important;max-width:100%;overflow:hidden}
 .bm-main{display:none}
 .bm-shell.has-peer .bm-sidebar{display:none}
 .bm-shell.has-peer .bm-main{display:flex}
 .bm-header [data-back]{display:block}
 .bm-sidebar header,.bm-header{width:100%;min-width:0;min-height:58px;gap:8px;padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right));background:#fff}
 .bm-sidebar header{padding-top:max(12px,env(safe-area-inset-top));flex:0 0 auto}
 .bm-sidebar h2,.bm-header>div{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .bm-sidebar header [data-close],.bm-header [data-close]{display:grid;place-items:center;flex:0 0 44px;width:44px;min-width:44px;height:44px;min-height:44px;margin-left:auto;position:relative;z-index:2;font-size:30px;line-height:1}
 .bm-dialogs{min-width:0;max-width:100%;overflow-x:hidden}
 .bm-person{min-width:0;max-width:100%;overflow:hidden}
 .bm-person-copy{min-width:0;overflow:hidden}
 .bm-person-meta{min-width:0;flex:0 0 auto}
}

/* Conversation-first inbox and message cards, shared with the call notification palette. */
.bm-sidebar{background:linear-gradient(160deg,#fff 35%,#faf8ff)}
.bm-sidebar>header{padding:20px 18px 14px;border-bottom:0}
.bm-sidebar>header h2{font-size:23px;letter-spacing:-.6px;font-weight:750}
.bm-sidebar>header [data-new-chat]{font-size:25px;background:#eee8fc;color:#694bcb;flex:0 0 40px}
.bm-search{margin:4px 16px 12px;width:calc(100% - 32px);padding:12px 14px;border:1px solid #eee8f6;background:#f6f3fa}
.bm-dialogs{padding:0 8px 14px}
.bm-inbox-label{display:flex;justify-content:space-between;align-items:center;padding:16px 12px 8px;font-size:10px;font-weight:750;text-transform:uppercase;letter-spacing:1.4px;color:#9a8fac}
.bm-inbox-label>span{letter-spacing:0;color:#b2a8bf}
.bm-shell .bm-person{border-radius:15px!important;margin:3px 0;min-height:82px!important;transition:background .15s ease}
.bm-person.selected{background:#eee7fc!important;box-shadow:inset 3px 0 #7954d9}
.bm-person.has-unread .bm-person-copy b{color:#39215e}
.bm-person.has-unread .bm-person-copy small{color:#665775;font-weight:550}
.bm-person-copy b{font-size:14px;letter-spacing:-.1px}
.bm-person-copy small{line-height:1.5}
.bm-person-meta time{white-space:nowrap;font-variant-numeric:tabular-nums}
.bm-person.is-system .bm-avatar>i{border-radius:15px;background:linear-gradient(140deg,#ede5ff,#f7f1ff);color:#7d54d7}
.bm-person.is-system{background:#f6f2fc}
.bm-inbox-empty{padding:34px 22px 42px;text-align:center;color:#93869f}
.bm-inbox-empty>span{display:grid;place-items:center;width:58px;height:58px;margin:0 auto 18px;background:#f0eafa;border-radius:20px;color:#9275c8;font-size:32px}
.bm-inbox-empty b{display:block;color:#59486d;font-size:16px}.bm-inbox-empty p{font-size:13px;line-height:1.6}
.bm-shell .bm-inbox-empty button{padding:0 18px;background:#7353cd;color:#fff;border-radius:12px}
.bm-message-notices{position:fixed;z-index:12900;right:18px;top:18px;width:380px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 36px);display:flex;flex-direction:column;gap:10px;overflow:auto;overscroll-behavior:contain;font:14px/1.5 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.bm-message-notice{position:relative;flex-shrink:0;border:1px solid #e2d7f5;border-radius:20px;background:linear-gradient(135deg,#fff,#faf7ff);box-shadow:0 10px 36px #39216724;color:#30283f;overflow:hidden;animation:bm-incoming-enter .2s ease-out}
.bm-message-open{display:flex;align-items:flex-start;gap:12px;width:100%;padding:18px 38px 18px 16px;border:0;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}
.bm-message-open:hover{background:#f5f0fc}.bm-message-open:focus-visible,.bm-message-dismiss:focus-visible{outline:2px solid #7954d9;outline-offset:-3px}
.bm-message-face{position:relative;display:grid;place-items:center;flex:0 0 46px;width:46px;height:46px;border-radius:16px;background:linear-gradient(140deg,#f0e7ff,#e8dff9);color:#7652c8;font-size:23px;font-weight:700;overflow:hidden}
.bm-message-face img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.bm-message-copy{display:grid;gap:5px;min-width:0;flex:1}.bm-message-copy>small{font-size:10px;letter-spacing:1px;text-transform:uppercase;font-weight:750;color:#957bb6}
.bm-message-copy>strong{font-size:16px;line-height:1.35;overflow-wrap:anywhere;letter-spacing:-.2px}
.bm-message-preview{display:block;white-space:pre-wrap;overflow-wrap:anywhere;color:#756880;max-height:150px;overflow:auto;font-size:13px;line-height:1.6}
.bm-message-link{margin-top:5px;font-size:12px;font-weight:700;color:#7954ce}.bm-message-link>span{margin-left:5px}
.bm-message-dismiss{position:absolute;right:5px;top:6px;width:32px;height:32px;min-height:32px;border:0;border-radius:10px;background:transparent;color:#aa9db9;font-size:23px;cursor:pointer}.bm-message-dismiss:hover{background:#eee7f7;color:#6f528e}
body:has(.bm-incoming-call) .bm-message-notices{top:auto;bottom:18px;max-height:calc(100dvh - 230px)}
@media(max-width:600px){.bm-message-notices{top:max(12px,env(safe-area-inset-top));right:12px;width:calc(100vw - 24px)}.bm-message-open{padding-top:14px;padding-bottom:14px}.bm-message-dismiss{width:36px;height:36px}.bm-message-preview{max-height:112px}body:has(.bm-incoming-call) .bm-message-notices{bottom:max(12px,env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:reduce){.bm-message-notice{animation:none}.bm-shell .bm-person{transition:none}}
.bm-sidebar{min-width:0}.bm-shell:not(.has-peer){grid-template-columns:minmax(0,1fr)}.bm-dialogs{min-width:0;overflow-x:hidden}.bm-person{min-width:0;max-width:100%}.bm-sidebar>header [data-close]{flex:0 0 40px}
.bm-quick-reply{padding:0 16px 14px}.bm-quick-reply-row{display:flex;gap:8px;align-items:flex-end}.bm-quick-reply textarea{box-sizing:border-box;flex:1;min-width:0;min-height:42px;max-height:120px;resize:vertical;padding:11px 12px;border:1px solid #e5dbf4;border-radius:12px;background:#fff;color:#3f3152;font-size:13px;line-height:1.5;font-family:inherit}.bm-quick-reply textarea:focus{outline:2px solid #b49be8;outline-offset:1px}.bm-quick-reply button{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border:0;border-radius:13px;background:#7653cc;color:#fff;cursor:pointer}.bm-quick-reply button:disabled{opacity:.4;cursor:default}.bm-quick-reply button:focus-visible{outline:2px solid #7954d9;outline-offset:2px}.bm-quick-reply svg{width:21px;height:21px}.bm-quick-reply-status{display:block;margin-top:6px;font-size:11px;color:#518366;overflow-wrap:anywhere}.bm-quick-reply-status:empty{display:none}.bm-quick-reply-status.is-error{color:#a3405a}

/* Focused messenger workspace: restrained surfaces, compact rhythm, one icon family. */
.bm-shell{inset:6vh max(24px,calc((100vw - 1120px)/2));grid-template-columns:300px minmax(0,1fr);border:1px solid #ded8eb;border-radius:20px;box-shadow:0 24px 90px #24163a30;color:#292135;font-family:Manrope,Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.bm-shell:not(.has-peer){width:min(440px,calc(100vw - 48px));inset:8vh auto 8vh max(24px,calc((100vw - 440px)/2))}
.bm-sidebar{background:#fdfcff;border-right:1px solid #e8e2f0}.bm-sidebar>header{padding:20px 16px 16px;gap:8px}.bm-sidebar>header h2{font-size:21px;letter-spacing:-.6px;color:#2d203f}.bm-sidebar>header button,.bm-header>button{display:grid;place-items:center;width:36px;height:36px;min-height:36px;flex:0 0 36px;border-radius:11px;font-size:inherit;color:#857793}.bm-sidebar>header [data-new-chat]{flex-basis:36px;background:#eee7fb;color:#7145c9}.bm-sidebar>header [data-close]{flex-basis:36px}
.bm-shell svg{width:20px;height:20px;flex-shrink:0}.bm-shell button:hover{background:#eee8f6}.bm-search-wrap{position:relative;display:flex;align-items:center;gap:9px;margin:0 16px 10px;padding:0 12px;background:#f2eef7;border:1px solid #e9e2f1;border-radius:11px;color:#93839f}.bm-search-wrap svg{width:17px;height:17px}.bm-search-wrap .bm-search{flex:1;min-width:0;width:100%;margin:0;padding:11px 0;min-height:40px;background:transparent;border:0;font:inherit;font-size:12px;color:#42334f}.bm-search-wrap:focus-within{border-color:#ad91df;box-shadow:0 0 0 3px #9b78d615}.bm-search-wrap .bm-search:focus{outline:0;box-shadow:none}
.bm-dialogs{padding:0 8px 12px;scrollbar-width:thin;scrollbar-color:#ded5e9 transparent;scroll-padding-top:12px}.bm-inbox-label{padding:14px 10px 7px;font-size:9px;letter-spacing:1.15px;color:#9989a8}.bm-shell .bm-person{gap:10px;padding:11px 10px!important;min-height:70px!important;margin:2px 0;border-radius:12px!important}.bm-person.selected{background:#ece4f9!important;box-shadow:inset 3px 0 #8050d4}.bm-person-copy b{font-size:13px;font-weight:700;line-height:1.5}.bm-person-copy small{font-size:11px;margin-top:3px;color:#8b7d98}.bm-person-meta{font-size:10px;gap:7px}.bm-person-meta strong{min-width:18px;height:18px;font-size:10px;background:#7950ca}.bm-avatar{width:38px;height:38px;flex:0 0 38px}.bm-avatar img,.bm-avatar>i{width:38px;height:38px;font-size:16px;background:#eee6fa;color:#7950c7}.bm-avatar svg{width:20px;height:20px}.bm-avatar em.online{background:#30a980}.bm-avatar em.talking{background:#8654d4}.bm-person.is-system{background:#f6f2fc}.bm-person.is-system .bm-avatar>i{border-radius:12px}
.bm-sidebar>footer{padding:10px 12px;gap:8px;background:#fdfcff;border-color:#eee8f4}.bm-sidebar>footer button{display:flex;gap:7px;align-items:center;justify-content:center;min-height:36px;color:#8b7b9d;font-size:11px}.bm-sidebar>footer svg{width:15px;height:15px}
.bm-header{min-height:74px;padding:14px 20px;gap:12px;background:#fff;border-bottom:1px solid #eae4f1}.bm-header .bm-avatar{width:40px;height:40px;flex-basis:40px}.bm-header .bm-avatar img,.bm-header .bm-avatar>i{width:40px;height:40px}.bm-header>.bm-peer-heading{flex:1;min-width:0}.bm-peer-heading b{display:block;font-size:15px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.bm-peer-heading small{font-size:11px;color:#837391;margin-top:3px}.bm-header>.bm-call-actions{flex:0 0 auto;margin-left:auto;gap:6px}.bm-call-actions button{width:36px;height:36px;min-height:36px;border:1px solid #e9e0f3;border-radius:11px;background:#fcfaff;color:#7a53bc}.bm-header [data-close]{margin-left:4px!important}.bm-call-actions svg{width:18px;height:18px}
.bm-stream{padding:20px 28px;background:#f7f5fa;scrollbar-width:thin;scrollbar-color:#dcd2e9 transparent}.bm-messages{gap:7px}.bm-bubble{max-width:78%;padding:10px 13px;border:1px solid #eee9f3;border-radius:14px 14px 14px 4px;font-size:13px;line-height:1.55;box-shadow:0 2px 3px #28183803}.bm-bubble.own{background:#eee6fb;border-color:#e9def8;border-radius:14px 14px 4px 14px}.bm-bubble footer{gap:5px;align-items:center;margin-top:5px;font-size:9px;color:#a293b0}.bm-bubble footer .bm-receipt{display:inline-flex;align-items:center;color:#b5a6c4}.bm-bubble footer .bm-receipt.is-read{color:#7c4fc9}.bm-receipt svg{width:15px;height:15px}.bm-date{padding:4px 12px;margin:12px 0;font-size:10px;font-weight:600;background:#eee9f4;color:#a090b0}.bm-group-sender{font-size:11px}
.bm-shell .bm-play,.bm-input-row [data-voice],.bm-input-row button[type=submit]{width:38px;height:38px;min-height:38px;flex-basis:38px;border:0;border-radius:12px;background:#7950d0;box-shadow:0 3px 8px #7145bb18}.bm-shell .bm-play:hover,.bm-input-row [data-voice]:hover,.bm-input-row button[type=submit]:hover{background:#6840ba;box-shadow:0 3px 10px #7145bb20}.bm-shell .bm-play{border-radius:50%}.bm-shell .bm-play svg{width:19px;height:19px}.bm-voice-player{width:230px;gap:11px;padding:1px 0}.bm-bubble:has(.bm-voice-player){width:min(258px,88%);padding:12px}.bm-voice-body .bm-audio-duration{font-size:10px;color:#9786aa}.bm-playback-wave{height:26px}.bm-wave-seek{height:26px}.bm-playback-wave i{background:#bba4df;width:2px;min-width:2px}.bm-playback-wave i.played{background:#774cc5}
.bm-compose{padding:14px 20px;background:#fff;border-top:1px solid #eae4f1}.bm-input-row{gap:8px;border:1px solid #e4dbea;border-radius:15px;padding:5px 7px;background:#fbf9fd}.bm-input-row:focus-within{border-color:#b9a0de;box-shadow:0 0 0 3px #ae89e00d}.bm-input-row textarea{background:transparent;border:0;box-shadow:none!important;outline:0!important;padding:10px 4px;min-height:40px;font:inherit;font-size:13px;color:#45344e}.bm-input-row .bm-attach-control{position:relative;width:32px;min-height:38px;flex:0 0 32px;border-radius:9px;cursor:pointer;color:#9b87ad}.bm-attach-control input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}.bm-attach-control:focus-within{outline:2px solid #9570cd}.bm-input-row [data-voice]{background:#eee6f8;color:#8158bc;box-shadow:none}.bm-input-row [data-voice]:hover{background:#e5d9f5;box-shadow:none}.bm-down{display:flex;gap:6px;align-items:center;padding:7px 12px!important;color:#7855a5}.bm-down svg{width:14px;height:14px}
.bm-message-face svg{width:23px;height:23px}.bm-message-dismiss{display:grid;place-items:center}.bm-message-dismiss svg{width:16px;height:16px}.bm-message-link>span{display:inline-flex;vertical-align:middle}.bm-message-link svg{width:14px;height:14px}
@media(max-width:760px){.bm-shell{border:0;border-radius:0}.bm-header{padding:10px 12px;min-height:66px;gap:8px}.bm-header>.bm-call-actions{gap:4px}.bm-header>button,.bm-call-actions button{width:34px;height:38px;min-height:38px;flex-basis:34px}.bm-header .bm-avatar{width:34px;height:34px;flex-basis:34px}.bm-header .bm-avatar img,.bm-header .bm-avatar>i{width:34px;height:34px}.bm-peer-heading b{font-size:13px}.bm-stream{padding:14px}.bm-compose{padding:10px 12px max(10px,env(safe-area-inset-bottom))}.bm-bubble{max-width:88%}.bm-shell .bm-person{min-height:74px!important}.bm-sidebar>header button{min-width:40px;min-height:40px}.bm-header [data-close]{min-width:34px;width:34px;flex:0 0 34px}.bm-input-row label,.bm-input-row button{min-height:42px}.bm-search-wrap .bm-search{font-size:16px}.bm-input-row textarea,.bm-quick-reply textarea{font-size:16px}}

.bm-download-file{display:inline-flex;align-items:center;gap:7px;max-width:100%;overflow-wrap:anywhere}.bm-download-file svg{width:18px;height:18px;flex-shrink:0}
.bm-tools-overlay{position:absolute;right:24px;bottom:100px;width:340px;max-width:calc(100% - 32px);max-height:65%;background:#fff;border:1px solid #e4dcef;border-radius:18px;box-shadow:0 14px 48px #39225630;z-index:30;overflow:hidden}.bm-tools-overlay header{display:flex;align-items:center;justify-content:space-between;padding:15px;border-bottom:1px solid #eee8f5;color:#38294c}.bm-tools-overlay header button{background:none;border:0;font-size:24px;color:#89779e}.bm-tools-body{padding:12px;max-height:45vh;overflow:auto}.bm-tools-body input{width:100%;box-sizing:border-box;padding:10px;border:1px solid #e4dcef;border-radius:10px;margin-bottom:10px}.bm-tools-body small{display:block;color:#9685a7;margin:10px 2px}.bm-emoji-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:4px}.bm-emoji-grid button{border:0;border-radius:9px;background:#f8f5fc;font-size:24px;padding:7px;cursor:pointer}.bm-forward-target{display:block;width:100%;text-align:left;border:0;border-radius:9px;background:#f7f3fc;color:#604587;padding:12px;margin:5px 0;cursor:pointer}.bm-bubble{position:relative}.bm-message-menu{border:0;background:transparent;color:#9479b8;position:absolute;right:5px;top:2px;font-size:22px;line-height:22px;cursor:pointer}.bm-bubble>div:first-of-type{padding-right:18px}.bm-message-reactions{display:flex;gap:5px;flex-wrap:wrap}.bm-message-reactions:empty{display:none}.bm-message-reactions button{border:1px solid #e5daf6;background:#f7f2fd;color:#7352a5;border-radius:10px;padding:4px 8px;margin-top:6px;cursor:pointer}.bm-message-reactions button.own{background:#eaddff;border-color:#a68bdd}.bm-forwarded{display:block;color:#9476b7;font-size:11px;margin-bottom:6px}.bm-message-selected{outline:2px solid #8e6bdd}.bm-selected-toolbar{position:absolute;bottom:8px;right:20px;background:#fff;border:1px solid #ded2f4;border-radius:12px;padding:10px;z-index:25;display:flex;gap:10px;align-items:center;font-size:12px}.bm-selected-toolbar button{background:#7050d0;border:0;border-radius:8px;padding:8px;color:white}
@media(max-width:600px){.bm-tools-overlay{right:16px;bottom:100px;width:calc(100% - 32px)}.bm-selected-toolbar{right:10px;left:10px;justify-content:space-between}}

.bm-emoji-grid button{font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;font-size:30px;line-height:1.15;min-height:48px;position:relative;padding:8px 4px;transition:background .12s,box-shadow .12s}.bm-emoji-grid button:hover,.bm-emoji-grid button:focus-visible{background:#eee5fc;box-shadow:inset 0 0 0 1px #b8a0e4;outline:none}.bm-emoji-grid button.is-picked{background:#ede3fc;box-shadow:inset 0 0 0 1px #a789db}.bm-emoji-grid button[data-picked]:after{content:attr(data-picked);position:absolute;right:2px;bottom:2px;font-family:system-ui;font-size:10px;line-height:15px;min-width:15px;background:#7450d2;color:white;border-radius:50%}.bm-tools-overlay:has([data-emojis]) header b:after{content:"Можно добавить несколько";display:block;margin-top:4px;font-size:11px;font-weight:400;color:#9583a7}

.bm-reply-compose{display:flex;align-items:center;gap:12px;margin:0 0 9px;padding:9px 12px;background:#f2ecfc;border-left:3px solid #9068d8;border-radius:8px;color:#6c4c9d;font-size:12px}.bm-reply-compose span{flex:1;min-width:0}.bm-reply-compose small{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-top:4px}.bm-reply-compose button{border:0;background:transparent;color:#8a70a6;font-size:22px}.bm-message-quote{margin:0 14px 9px 0;padding:8px 10px;border-left:3px solid #a17adc;background:#eee6fa;border-radius:7px;font-size:11px;cursor:pointer;color:#806298}.bm-message-quote b,.bm-message-quote span{display:block}.bm-message-quote span{margin-top:4px;max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.bm-call-event{display:flex;align-items:center;gap:10px;align-self:center;margin:12px auto;padding:10px 15px;border:1px solid #e1d8ef;border-radius:13px;background:#fff;color:#80669c;font-size:12px;width:max-content;max-width:85%}.bm-call-event>span{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:#f1eafb;font-size:19px}.bm-call-event b,.bm-call-event small{display:block}.bm-call-event small{margin-top:4px;font-size:10px;color:#a293b0}.bm-call-event.missed{color:#b76c81}.bm-call-event.missed>span{background:#fbedf1}
/* Harmonious message rhythm: quiet actions and compact reactions. */
.bm-shell .bm-stream{background:#f7f6fa;padding:22px 38px}
.bm-shell .bm-messages{gap:8px}
.bm-shell .bm-bubble{min-width:72px;padding:9px 12px 7px;border:1px solid #ebe8f0;box-shadow:0 1px 2px #30243a04;border-radius:13px 13px 13px 4px;line-height:1.5;color:#38313f}
.bm-shell .bm-bubble.own{background:#eee9f8;border-color:#e7dff3;border-radius:13px 13px 4px 13px}
.bm-shell .bm-bubble>div:first-of-type{padding-right:0}
.bm-shell .bm-bubble footer{margin-top:4px;font-size:10px;color:#948a9f;gap:5px;line-height:1.2}
.bm-shell .bm-message-menu{position:absolute;top:5px;right:-31px;width:26px;height:26px;min-height:26px;padding:0;display:grid;place-items:center;line-height:1;border:1px solid #e8e2ee;background:#ffffffdb;color:#93839f;border-radius:8px;font-size:18px;opacity:0;transition:opacity 120ms ease}
.bm-shell .bm-bubble.own .bm-message-menu{right:auto;left:-31px}
.bm-shell .bm-bubble:hover .bm-message-menu,.bm-shell .bm-bubble:focus-within .bm-message-menu{opacity:1}
.bm-shell .bm-message-reactions{gap:4px;margin:5px 0 1px}
.bm-shell .bm-message-reactions button{display:inline-flex;align-items:center;justify-content:center;gap:3px;height:25px;min-height:25px;margin:0;padding:2px 7px;font-size:12px;line-height:1;border-radius:12px;border:1px solid #e5deed;background:#f7f4fb;color:#78608e}
.bm-shell .bm-message-reactions button.own{background:#eee6fa;border-color:#c7b5e6;color:#694aa0}
.bm-shell .bm-date{margin:15px 0;padding:4px 10px;font-size:10px;font-weight:500;color:#94899f;background:#eeeaf4}
.bm-shell .bm-compose{padding:12px 18px;background:#fff;border-color:#eeeaf3}
.bm-shell .bm-input-row{align-items:center;gap:5px;padding:5px 7px;background:#faf9fc;border:1px solid #e8e2ef;border-radius:13px}
.bm-shell .bm-input-row label,.bm-shell .bm-input-row [data-emoji-picker]{width:32px;height:36px;min-height:36px;flex-basis:32px;padding:5px;border-radius:8px;color:#947eaa}
.bm-shell .bm-input-row textarea{padding:8px 5px;min-height:36px;line-height:1.4;color:#3c3346}
.bm-shell .bm-input-row textarea::placeholder{color:#a298ac}
.bm-shell .bm-input-row [data-voice],.bm-shell .bm-input-row button[type=submit]{width:36px;height:36px;min-height:36px;flex-basis:36px;border-radius:10px}
@media(hover:none),(pointer:coarse){.bm-shell .bm-message-menu{opacity:1;right:3px;top:4px;background:transparent;border:0;width:28px;height:30px;min-height:30px}.bm-shell .bm-bubble.own .bm-message-menu{left:auto;right:3px}.bm-shell .bm-bubble>div:first-of-type{padding-right:21px}}
@media(max-width:760px){.bm-shell .bm-stream{padding:16px 16px 20px}.bm-shell .bm-compose{padding:10px 12px max(10px,env(safe-area-inset-bottom))}.bm-shell .bm-bubble{max-width:86%}.bm-shell .bm-message-menu{opacity:1;right:3px;top:4px;background:transparent;border:0;width:28px;height:30px;min-height:30px}.bm-shell .bm-bubble.own .bm-message-menu{left:auto;right:3px}.bm-shell .bm-bubble>div:first-of-type{padding-right:21px}.bm-shell .bm-input-row textarea{font-size:16px}.bm-shell .bm-input-row label,.bm-shell .bm-input-row [data-emoji-picker]{height:40px;min-height:40px}.bm-shell .bm-message-reactions button{height:28px;min-height:28px}}
@media(prefers-reduced-motion:reduce){.bm-shell .bm-message-menu{transition:none}}
/* Cohesive conversation workspace: graphite text and selective violet. */
.bm-shell{inset:5vh max(24px,calc((100vw - 1180px)/2));grid-template-columns:286px minmax(0,1fr);border-radius:18px;border-color:#e6e1eb;box-shadow:0 28px 90px #241c3430;color:#332d3d}
.bm-sidebar{background:#fcfbfd;border-right:1px solid #eeeaf2}
.bm-sidebar>header{padding:20px 18px 15px}
.bm-sidebar>header h2{font-size:20px;font-weight:650;letter-spacing:-.5px;color:#332b40}
.bm-search-wrap{background:#f4f2f7;border:1px solid #eeebf3;margin:0 16px 9px;border-radius:9px}
.bm-shell .bm-person{min-height:68px!important;padding:10px 11px!important;border-radius:9px!important}
.bm-shell .bm-person.selected{background:#efebf7!important;box-shadow:inset 2px 0 #835ec9}
.bm-person-copy b{font-size:13px;font-weight:620;color:#3a3245}
.bm-person-copy small{color:#93899f;font-size:11px;line-height:1.45}
.bm-person-meta{font-variant-numeric:tabular-nums;color:#a297af}
.bm-inbox-label{font-size:9px;letter-spacing:.1em;color:#a497b0;font-weight:500}
.bm-shell .bm-header{min-height:70px;padding:13px 22px;border-color:#eeeaf2}
.bm-peer-heading b{font-size:14px;font-weight:650;letter-spacing:-.15px;color:#332b40}
.bm-peer-heading small{font-size:10px;color:#93879f}
.bm-call-actions button{border-color:#ebe5f2;background:#fff;border-radius:9px;color:#896daf}
.bm-shell .bm-stream{background:linear-gradient(150deg,#f9f8fb,#f5f3f9);padding:20px 36px 24px}
.bm-shell .bm-bubble{font-size:14px;line-height:1.5;padding:9px 12px 7px;max-width:min(76%,520px);color:#3c3446}
.bm-shell .bm-bubble.own{background:#eee8f8;border-color:#e7ddf3;color:#42324f}
.bm-shell .bm-bubble footer{font-size:9px;letter-spacing:.1px;color:#a295ae}
.bm-shell .bm-bubble footer .bm-receipt{color:#a59aad}
.bm-shell .bm-bubble footer .bm-receipt.is-read{color:#9577c6}
.bm-shell .bm-message-quote{margin:0 0 8px;border-left-width:2px;background:#e9e1f47d;border-radius:5px;padding:7px 9px;color:#867099}
.bm-shell .bm-message-quote b{font-size:10px;font-weight:600}
.bm-shell .bm-message-quote span{font-size:11px;color:#9583a8;line-height:1.4}
.bm-shell .bm-message-reactions button{box-shadow:none;font-size:12px;border-radius:12px}
.bm-shell .bm-message-menu svg{width:16px;height:16px}
.bm-shell .bm-date{background:#ece8f1b3;color:#9c8fab;letter-spacing:.1px;font-size:9px;font-weight:500}
.bm-shell .bm-compose{padding:13px 18px;border-color:#eeeaf2}
.bm-shell .bm-input-row{background:#f8f6fb;border-color:#eae4f0;padding:6px 8px;gap:5px;border-radius:12px;box-shadow:none}
.bm-shell .bm-input-row:focus-within{background:#fff;border-color:#b9a5d8;box-shadow:0 0 0 3px #a183d30c}
.bm-shell .bm-input-row textarea{font-size:14px;line-height:1.5}
.bm-shell .bm-reply-compose{border-left-width:2px;border-radius:7px;background:#f3eef9;font-size:11px;padding:8px 10px}
.bm-shell .bm-reply-compose button{min-height:28px;height:28px;width:28px;font-size:19px}
@media(max-width:760px){.bm-shell{inset:0;border:0;border-radius:0}.bm-shell .bm-header{min-height:64px;padding:11px 14px}.bm-shell .bm-stream{padding:15px 16px 20px}.bm-shell .bm-bubble{font-size:14px;max-width:88%}.bm-shell .bm-compose{padding:10px 12px max(10px,env(safe-area-inset-bottom))}.bm-shell .bm-input-row textarea{font-size:16px}.bm-shell .bm-input-row{gap:3px}}
/* Local concept: stronger contrast and a clearer conversation hierarchy. */
.bm-shell{grid-template-columns:300px minmax(0,1fr);background:#fff;color:#27232e;border:1px solid #ded9e7;box-shadow:0 30px 100px #251a373b}
.bm-sidebar{background:#f7f6f9;border-right:1px solid #e6e2eb}
.bm-sidebar>header h2{font-size:23px;color:#27222f;letter-spacing:-.7px}
.bm-search-wrap{background:#fff;border-color:#e4dfe9}
.bm-shell .bm-person{min-height:76px!important;padding:12px!important}
.bm-person-copy b{font-size:14px;color:#332d3d;font-weight:650}
.bm-person-copy small{font-size:12px;color:#857b90}
.bm-shell .bm-person.selected{background:#eae3f7!important;box-shadow:inset 3px 0 #7952bf}
.bm-inbox-label{color:#82758f;font-weight:600;font-size:10px}
.bm-shell .bm-header{min-height:78px;border-bottom:1px solid #e8e4ed;padding:16px 24px}
.bm-peer-heading b{font-size:16px;color:#2b2535;font-weight:650}
.bm-peer-heading small{font-size:12px;color:#8c8099}
.bm-shell .bm-stream{background:#f4f2f7;padding:24px 38px}
.bm-shell .bm-bubble{background:#fff;border-color:#e7e1ec;font-size:14px;line-height:1.55;border-radius:14px 14px 14px 4px;padding:10px 14px 8px;box-shadow:0 2px 5px #38264707}
.bm-shell .bm-bubble.own{background:#7653b4;border-color:#7653b4;color:#fff;border-radius:14px 14px 4px 14px;box-shadow:0 3px 8px #6a46a916}
.bm-shell .bm-bubble.own footer{color:#dfd4ef}
.bm-shell .bm-bubble.own footer .bm-receipt,.bm-shell .bm-bubble.own footer .bm-receipt.is-read{color:#e1d5f4}
.bm-shell .bm-bubble.own a{color:#f1e9ff}
.bm-shell .bm-bubble.own .bm-message-quote{background:#ffffff15;border-color:#ccb4ed;color:#f0e7fa}
.bm-shell .bm-bubble.own .bm-message-quote span{color:#e0d2ed}
.bm-shell .bm-date{color:#8d8099;background:#e9e4ef;font-size:10px;margin:18px 0}
.bm-shell .bm-compose{padding:15px 20px;background:#fff}
.bm-shell .bm-input-row{background:#f7f5fa;border:1px solid #e3dbe9;border-radius:14px;min-height:54px}
.bm-shell .bm-input-row textarea{color:#332b3d;font-size:14px}
.bm-shell .bm-input-row [data-voice]{background:#ece4f6;color:#7751ae}
@media(max-width:760px){.bm-shell .bm-header{min-height:68px;padding:12px 14px}.bm-shell .bm-stream{padding:18px 16px}.bm-shell .bm-compose{padding:10px 12px max(10px,env(safe-area-inset-bottom))}.bm-shell .bm-input-row textarea{font-size:16px}}
.bm-shell .bm-direct-reply{position:absolute;top:36px;right:-84px;display:flex;gap:4px;align-items:center;height:27px;min-height:27px;padding:4px 6px;border:0;border-radius:7px;background:#ffffffdf;color:#8c769f;font-size:10px;opacity:0;transition:opacity 120ms ease}
.bm-shell .bm-direct-reply svg{width:14px;height:14px}
.bm-shell .bm-bubble.own .bm-direct-reply{right:auto;left:-84px}
.bm-shell .bm-bubble:hover .bm-direct-reply,.bm-shell .bm-bubble:focus-within .bm-direct-reply{opacity:1}
.bm-shell .bm-bubble.own .bm-message-reactions button{background:#fff;color:#735099;border-color:#dfd0ef}
@media(max-width:760px),(hover:none){.bm-shell .bm-direct-reply{display:none}}
@media(prefers-reduced-motion:reduce){.bm-shell .bm-direct-reply{transition:none}}
/* Clear controls and a contextual message action panel. */
.bm-shell .bm-input-row button[type=submit]{display:flex;align-items:center;justify-content:center;gap:7px;width:auto;flex-basis:auto;padding:0 12px;background:#7653b4;color:#fff;box-shadow:none}
.bm-shell .bm-input-row button[type=submit][hidden]{display:none}
.bm-shell .bm-input-row button[type=submit] span{font-size:11px;font-weight:600}
.bm-shell .bm-input-row button[type=submit] svg{width:16px;height:16px}
.bm-shell .bm-message-action-panel{width:290px;border-radius:12px;border:1px solid #e4dceb;box-shadow:0 12px 40px #30223f24;max-height:80%}
.bm-shell .bm-message-action-panel header{padding:10px 12px;min-height:42px;font-size:11px;border-bottom:1px solid #eee9f4}
.bm-shell .bm-message-action-panel header button{width:26px;height:26px;min-height:26px;font-size:20px}
.bm-shell .bm-message-action-panel .bm-tools-body{padding:10px;max-height:none}
.bm-shell .bm-message-action-panel .bm-emoji-grid{grid-template-columns:repeat(5,1fr);gap:4px;margin-bottom:9px}
.bm-shell .bm-message-action-panel .bm-emoji-grid button{font-size:22px;height:38px;min-height:38px;padding:4px;background:#f8f6fb;border-radius:7px}
.bm-shell .bm-message-action-panel .bm-forward-target{min-height:34px;margin:2px 0;padding:8px 10px;background:transparent;border-radius:6px;font-size:12px;color:#665577}
.bm-shell .bm-message-action-panel .bm-forward-target:hover{background:#f0eaf8;color:#704ca7}
.bm-shell .bm-header .bm-peer-heading small{display:inline-flex;align-items:center;min-height:18px;padding:1px 6px;margin:3px 0 0 -6px;background:#f5f2f8;border-radius:4px;font-size:10px;color:#8b7b9a}
@media(max-width:760px){.bm-shell .bm-input-row button[type=submit]{width:36px;flex-basis:36px;padding:0}.bm-shell .bm-input-row button[type=submit] span{display:none}.bm-shell .bm-message-action-panel{left:12px;right:12px;bottom:84px;top:auto;width:auto;max-width:none}.bm-shell .bm-message-action-panel .bm-forward-target{min-height:42px;font-size:14px}.bm-shell .bm-message-action-panel .bm-emoji-grid button{min-height:44px;height:44px;font-size:26px}}

/* Compact message editing and personal conversation removal */
.bm-person-row{display:flex;align-items:center;position:relative;margin:2px 0;border-radius:12px;overflow:hidden}.bm-person-row>.bm-person{flex:1;min-width:0;margin:0!important}.bm-person-row:has(.bm-person.selected){background:#f3effa}.bm-delete-thread{width:34px;min-width:34px;height:34px;min-height:34px!important;margin-right:8px;display:grid;place-items:center;color:#968ba1!important;opacity:0;transition:opacity .15s ease,background .15s ease,color .15s ease}.bm-person-row:hover .bm-delete-thread,.bm-delete-thread:focus-visible{opacity:1}.bm-delete-thread:hover{color:#b64c67!important;background:#fff0f2!important}.bm-delete-thread svg{width:16px;height:16px}.bm-edit-label{display:grid;gap:8px;font-size:12px;color:#756a82}.bm-edit-label textarea{width:100%;min-height:120px;resize:vertical;padding:12px;border:1px solid #e7e0ef;border-radius:12px;background:#fbfaff;color:#332d3d;font:inherit;line-height:1.5}.bm-edit-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}.bm-edit-actions button{padding:0 14px;border:1px solid #e7e0ef;background:#fff}.bm-edit-actions [data-save]{background:#7351c8;color:#fff}.bm-edit-actions .bm-delete-confirm{background:#fff1f2;color:#a43852;border-color:#f1d3da}.bm-delete-copy{margin:4px 0;color:#726980;line-height:1.6}.bm-delete-copy b{color:#30283f}.bm-edited{font-size:10px;color:#958aa1;margin-right:8px}
@media(max-width:760px){.bm-delete-thread{opacity:1;width:32px;min-width:32px;margin-right:5px}.bm-person-row>.bm-person{padding-right:5px!important}.bm-edit-actions button{min-height:42px}}

/* Keep the new-message jump control clear of the last visible bubble. */
.bm-shell .bm-stream{padding-bottom:84px}
.bm-shell .bm-down{position:absolute;z-index:5;left:50%;bottom:14px;transform:translateX(-50%);width:max-content;max-width:calc(100% - 24px);margin:0;white-space:nowrap;box-shadow:0 8px 24px #38234526}
@media(max-width:760px){.bm-shell .bm-stream{padding-bottom:82px}.bm-shell .bm-down{bottom:max(12px,env(safe-area-inset-bottom))}}
