/* Messenger presentation. Shared brand, compact controls, readable conversation. */
.bm-shell{--bm-ink:var(--design-ink,#25222d);--bm-muted:var(--muted,#777383);--bm-line:#e7e5ed;--bm-brand:var(--brand,#6950cf);inset:4vh max(22px,calc((100vw - 1320px)/2));grid-template-columns:310px minmax(0,1fr);border:1px solid #e4e1e9;border-radius:18px;background:#fff;color:var(--bm-ink);box-shadow:0 28px 100px #211b3430;font:14px/1.5 system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
.bm-shell:not(.has-peer){inset:4vh max(22px,calc((100vw - 1320px)/2));width:auto;grid-template-columns:310px minmax(0,1fr)}
.bm-shell:not(.has-peer) .bm-main{display:flex}
.bm-shell .bm-sidebar{background:#fbfbfd;border-right:1px solid var(--bm-line)}
.bm-shell .bm-sidebar header{min-height:78px;padding:18px 20px;border-bottom:0;gap:8px}
.bm-shell .bm-sidebar h2{font-size:22px;font-weight:680;letter-spacing:-.6px;color:var(--bm-ink)}
.bm-shell .bm-sidebar header button{width:34px;height:34px;min-height:34px;padding:7px;border-radius:8px;background:transparent;color:#81798f}
.bm-shell .bm-sidebar header [data-new-chat]{background:#eee9f8;color:var(--bm-brand)}
.bm-shell .bm-search-wrap{margin:0 16px 16px;padding:0 11px;min-height:38px;border:1px solid #e5e2ec;border-radius:9px;background:#fff;color:#8b8397}
.bm-shell .bm-search-wrap:focus-within{border-color:#bcace3;box-shadow:0 0 0 3px #6950cf0d}
.bm-shell .bm-search-wrap svg{width:17px;height:17px}
.bm-shell .bm-search{min-height:36px;padding:7px 0;font-size:12px;color:var(--bm-ink);background:transparent}
.bm-shell .bm-dialogs{padding:0 9px 12px;scrollbar-width:thin;scrollbar-color:#ddd8e7 transparent}
.bm-shell .bm-inbox-label{display:flex;align-items:center;justify-content:space-between;margin:14px 10px 7px;padding:0;color:#98919f;font-size:10px;font-weight:650;letter-spacing:.07em;text-transform:uppercase}
.bm-shell .bm-inbox-label span{font-size:10px;font-weight:500;color:#9b95a5}
.bm-shell .bm-person-row{margin:3px 0;border-radius:10px;overflow:hidden;background:transparent}
.bm-shell .bm-person{min-height:74px!important;padding:12px 10px!important;gap:11px;border-radius:10px!important;background:transparent!important;box-shadow:none}
.bm-shell .bm-person:hover{background:#f1eef6!important}
.bm-shell .bm-person.selected{background:#eee9f8!important;box-shadow:none}
.bm-shell .bm-person-row:has(.bm-person.selected){background:#eee9f8}
.bm-shell .bm-person-copy b{font-size:13px;font-weight:650;color:#322d3d;letter-spacing:-.15px}
.bm-shell .bm-person-copy small{margin-top:4px;font-size:12px;color:#89818f;line-height:1.4}
.bm-shell .bm-person.selected .bm-person-copy b{color:#51378f}
.bm-shell .bm-person-meta{font-size:10px;color:#a39aa9;gap:7px}
.bm-shell .bm-person-meta strong{height:18px;min-width:18px;background:var(--bm-brand);font-size:10px}
.bm-shell .bm-avatar{width:40px;height:40px;flex-basis:40px}
.bm-shell .bm-avatar img,.bm-shell .bm-avatar>i{width:40px;height:40px;background:#ede9f4;color:#705992;font-size:16px;font-weight:550}
.bm-shell .bm-avatar em.online{background:#38a779}
.bm-shell .bm-sidebar>footer{padding:10px 12px;background:#fbfbfd;border-top:1px solid var(--bm-line)}
.bm-shell .bm-sidebar>footer button{min-height:34px;font-size:11px;color:#8b809a}
.bm-shell .bm-sidebar>footer svg{width:15px;height:15px}
.bm-shell .bm-header{min-height:78px;padding:14px 26px;gap:12px;background:#ffffffef;border-bottom:1px solid var(--bm-line)}
.bm-shell .bm-header .bm-peer-heading b{font-size:16px;color:#302b39;letter-spacing:-.2px}
.bm-shell .bm-header .bm-peer-heading small{margin:3px 0 0;padding:0;background:transparent;color:#92889d;font-size:11px}
.bm-shell .bm-header>button,.bm-shell .bm-header .bm-call-actions button{width:34px;height:34px;min-height:34px;border:1px solid #ece8f1;border-radius:8px;color:#7a688f;background:#fff}
.bm-shell .bm-header svg{width:19px;height:19px}
.bm-shell .bm-main{background:#f8f8fb}
.bm-shell .bm-stream{padding:24px 42px;background:radial-gradient(ellipse at 100% 0,#eee9f633,transparent 55%),#f8f8fb;scrollbar-width:thin;scrollbar-color:#dcd7e6 transparent}
.bm-shell .bm-messages{gap:7px}
.bm-shell .bm-bubble{position:relative;max-width:76%;min-width:70px;padding:9px 13px 7px;border:1px solid #e8e5ed;border-radius:13px 13px 13px 4px;background:#fff;color:#302b38;font-size:14px;line-height:1.5;box-shadow:0 2px 4px #28203303}
.bm-shell .bm-bubble.own{background:#eee9f8;color:#35274d;border-color:#e5dcf1;border-radius:13px 13px 4px 13px;box-shadow:none}
.bm-shell .bm-bubble footer{margin-top:5px;gap:5px;color:#a396b3;font-size:10px;line-height:1.2}
.bm-shell .bm-bubble.own footer{color:#9a88af}
.bm-shell .bm-bubble.own footer .bm-receipt,.bm-shell .bm-bubble.own footer .bm-receipt.is-read{color:#8c6ac2}
.bm-shell .bm-bubble.own a{color:#6950aa}
.bm-shell .bm-bubble.own .bm-message-quote{background:#ffffff80;color:#5e447f;border-color:#aa91cc}
.bm-shell .bm-bubble.own .bm-message-quote span{color:#877294}
.bm-shell .bm-bubble .bm-message-reactions button,.bm-shell .bm-bubble.own .bm-message-reactions button{min-height:25px;height:25px;padding:2px 7px;border-radius:9px;border:1px solid #ddd4eb;background:#ffffffc9;color:#7a6198;font-size:11px;box-shadow:none}
.bm-shell .bm-date{margin:15px 0;color:#a094ae;font-size:10px;background:transparent;padding:3px 10px;font-weight:550}
.bm-shell .bm-compose{padding:14px 24px 18px;border-top:0;background:#f8f8fb}
.bm-shell .bm-input-row{align-items:center;gap:5px;min-height:52px;padding:5px 7px;border:1px solid #e3deeb;border-radius:13px;background:#fff;box-shadow:0 3px 12px #392c4b04}
.bm-shell .bm-input-row:focus-within{border-color:#c6b6e3;box-shadow:0 0 0 3px #6950cf09}
.bm-shell .bm-input-row textarea{min-height:38px;max-height:140px;padding:8px 6px;border:0;border-radius:0;background:transparent;color:#322a3e;font-size:14px;line-height:1.5;resize:none;box-shadow:none}
.bm-shell .bm-input-row label,.bm-shell .bm-input-row button{width:34px;min-height:36px;height:36px;color:#978ba9;border-radius:8px;background:transparent;box-shadow:none}
.bm-shell .bm-input-row svg{width:20px;height:20px}
.bm-shell .bm-input-row [data-voice]{width:36px;height:36px;min-height:36px;flex-basis:36px;border:0;background:#f2eef8;color:#7c62a3;box-shadow:none}
.bm-shell .bm-input-row button[type=submit]{height:36px;min-height:36px;padding:0 11px;background:var(--bm-brand);color:#fff;border:0;border-radius:9px;box-shadow:none}
.bm-shell .bm-input-row button[type=submit]:hover{background:var(--brand-hover,#5940b9)}
.bm-shell .bm-play{width:36px;height:36px;min-height:36px;flex-basis:36px;border:0;background:#8060bc;color:#fff;box-shadow:none}
.bm-shell .bm-play:hover{background:#6c4fa7;box-shadow:none}
.bm-shell .bm-voice-player{width:258px;gap:11px}
.bm-shell .bm-voice-body .bm-audio-duration{color:#9987af;font-size:10px}
.bm-shell .bm-welcome{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:260px;padding:40px;color:#9c92a8}
.bm-shell .bm-welcome:before{content:'↗';display:grid;place-items:center;width:62px;height:62px;margin-bottom:18px;border:1px solid #e4ddf0;border-radius:18px;background:#f2eef9;color:#8d71b9;font-size:30px}
.bm-shell .bm-welcome b{font-size:23px;font-weight:650;letter-spacing:-.5px;color:#463b55}
.bm-shell .bm-welcome p{max-width:290px;font-size:13px;line-height:1.6}
.bm-shell .bm-bubble .bm-direct-reply{background:#ffffffed;color:#907caa}
.bm-shell .bm-message-action-panel{border-radius:13px;border-color:#e5e0ed;background:#fff;box-shadow:0 16px 50px #2b203526}
@media(max-width:750px){
 .bm-shell,.bm-shell:not(.has-peer){inset:0;width:100%;height:100dvh;grid-template-columns:1fr;border:0;border-radius:0}
 .bm-shell:not(.has-peer) .bm-main{display:none}
 .bm-shell .bm-sidebar header{padding:16px 18px;min-height:72px}
 .bm-shell .bm-header{min-height:68px;padding:12px 14px;padding-top:max(12px,env(safe-area-inset-top))}
 .bm-shell .bm-stream{padding:18px 17px}
 .bm-shell .bm-bubble{max-width:87%;font-size:15px}
 .bm-shell .bm-compose{padding:10px 10px max(10px,env(safe-area-inset-bottom));background:#f8f8fb}
 .bm-shell .bm-input-row textarea{font-size:16px}
 .bm-shell .bm-input-row button[type=submit]{width:36px;flex-basis:36px;padding:0}
 .bm-shell .bm-person{min-height:76px!important}
 .bm-shell .bm-message-menu{min-height:28px}
}
@media(prefers-reduced-motion:reduce){.bm-shell *{transition:none!important;animation:none!important}}
/* Conversation rhythm and contextual controls. */
.bm-shell .bm-person.selected{position:relative;box-shadow:inset 3px 0 var(--bm-brand)}
.bm-shell .bm-person.has-unread .bm-person-copy b{color:#35284b;font-weight:700}
.bm-shell .bm-person.has-unread .bm-person-copy small{color:#64566f}
.bm-shell .bm-header .bm-avatar{width:42px;height:42px;flex-basis:42px}
.bm-shell .bm-header .bm-avatar img,.bm-shell .bm-header .bm-avatar>i{width:42px;height:42px}
.bm-shell .bm-messages{gap:6px}
.bm-shell .bm-bubble{margin:0;transition:box-shadow 150ms,border-color 150ms}
.bm-shell .bm-bubble:hover{border-color:#d8cce7;box-shadow:0 3px 12px #30213f07}
.bm-shell .bm-bubble.own:hover{border-color:#d3c3e8}
.bm-shell .bm-bubble .bm-message-menu{display:grid;place-items:center;width:27px;height:27px;min-height:27px;border:1px solid #e6e0ec;border-radius:8px;background:#fff;color:#9885ad;font-size:18px;box-shadow:0 2px 6px #39284c08}
.bm-shell .bm-bubble .bm-direct-reply{min-height:27px;border:1px solid #ebe5f1;border-radius:8px;color:#8f77a8;box-shadow:0 2px 6px #39284c05}
.bm-shell .bm-bubble:has(.bm-voice-player){padding:11px 13px 8px;width:min(300px,87%)}
.bm-shell .bm-voice-player{width:270px;gap:12px;padding:0}
.bm-shell .bm-play{width:39px;height:39px;min-height:39px;flex-basis:39px;background:var(--bm-brand);border-radius:12px}
.bm-shell .bm-play svg{width:19px;height:19px}
.bm-shell .bm-playback-wave i{background:#d1c4e6;border-radius:2px}
.bm-shell .bm-playback-wave i.played{background:#8060b8}
.bm-shell .bm-voice-body .bm-audio-duration{margin-top:5px;font-size:11px;color:#92819f}
.bm-shell .bm-call-event{padding:8px 12px;margin:10px auto;border-color:#e7e1ef;border-radius:10px;background:#ffffffbf;font-size:11px;box-shadow:none}
.bm-shell .bm-call-event>span{width:26px;height:26px;border-radius:8px}
.bm-shell .bm-call-event small{margin-top:2px}
.bm-shell .bm-tools-overlay{border:1px solid #e2dbea;border-radius:14px;box-shadow:0 18px 55px #30213f22;background:#fff}
.bm-shell .bm-tools-overlay header{padding:12px 15px;background:#fbfafc}
.bm-shell .bm-tools-overlay header button{width:28px;height:28px;min-height:28px;font-size:21px;border-radius:7px}
.bm-shell .bm-tools-body input{min-height:38px;border-radius:8px;font-size:13px;background:#fbfafd}
.bm-shell .bm-emoji-grid{gap:5px}
.bm-shell .bm-emoji-grid button{min-height:42px;border-radius:9px;background:#faf8fd;font-size:25px}
.bm-shell .bm-emoji-grid button:hover{background:#eee7f9;box-shadow:inset 0 0 0 1px #d8caed}
.bm-shell .bm-reply-compose{border:1px solid #e4ddeb;border-left:3px solid #aa90cf;background:#f4f0fa;border-radius:8px;margin:0 0 8px;padding:8px 11px}
.bm-shell .bm-compose .bm-file{padding:7px 11px;margin-bottom:7px;border-radius:8px;background:#f0ebf7;color:#806498;font-size:11px}
.bm-shell .bm-compose .bm-file:empty{display:none}
@media(max-width:750px){.bm-shell .bm-bubble:hover{box-shadow:none}.bm-shell .bm-bubble .bm-message-menu{width:24px;height:24px;min-height:24px;border:0;background:transparent;box-shadow:none}.bm-shell .bm-emoji-grid button{min-height:44px}.bm-shell .bm-header .bm-avatar,.bm-shell .bm-header .bm-avatar img,.bm-shell .bm-header .bm-avatar>i{width:36px;height:36px}.bm-shell .bm-header .bm-avatar{flex-basis:36px}}
/* Cohesive reading layout: directory, conversation, composer. */
.bm-shell{grid-template-columns:300px minmax(0,1fr);border-radius:16px;box-shadow:0 28px 90px #211b3433}
.bm-shell:not(.has-peer){grid-template-columns:300px minmax(0,1fr)}
.bm-shell .bm-sidebar{background:#f6f5f8}
.bm-shell .bm-sidebar header{padding:20px 19px 14px;min-height:74px}
.bm-shell .bm-sidebar h2{font-size:21px;letter-spacing:-.65px}
.bm-shell .bm-dialogs{padding:0 10px 14px}
.bm-shell .bm-person{min-height:76px!important;gap:11px;padding:12px 11px!important}
.bm-shell .bm-person.selected{background:#6950cf!important;box-shadow:none;color:#fff}
.bm-shell .bm-person-row:has(.bm-person.selected){background:#6950cf}
.bm-shell .bm-person.selected .bm-person-copy b{color:#fff;font-weight:650}
.bm-shell .bm-person.selected .bm-person-copy small{color:#e4dafb}
.bm-shell .bm-person.selected .bm-person-meta{color:#d6c8f6}
.bm-shell .bm-person.selected .bm-avatar>i{background:#ffffff25;color:#fff}
.bm-shell .bm-person.selected .bm-avatar em{border-color:#6950cf}
.bm-shell .bm-person-row:has(.bm-person.selected) .bm-delete-thread{color:#e0d4f6!important}
.bm-shell .bm-sidebar>footer{background:#f6f5f8}
.bm-shell .bm-main{background:#fff}
.bm-shell .bm-header{min-height:74px;padding:14px 26px;background:#fff;border-bottom:1px solid #ece9f1}
.bm-shell .bm-header .bm-peer-heading b{font-size:17px;letter-spacing:-.35px}
.bm-shell .bm-header .bm-peer-heading small{font-size:11px;color:#a396b0}
.bm-shell .bm-stream{padding:24px 38px;background:linear-gradient(145deg,#fcfbfe,#f5f3f9);}
.bm-shell .bm-messages{width:100%;max-width:760px;margin:0 auto;gap:8px}
.bm-shell .bm-bubble{max-width:78%;padding:10px 14px 8px;border:1px solid #e6e1ed;border-radius:14px 14px 14px 5px;box-shadow:0 2px 7px #30243f05;font-size:14px;line-height:1.55}
.bm-shell .bm-bubble.own{background:#ece5f8;border-color:#e3d9f0;color:#3e3054;border-radius:14px 14px 5px 14px}
.bm-shell .bm-bubble footer{font-size:10px;color:#b0a2be;margin-top:4px}
.bm-shell .bm-date{margin:12px 0 16px;font-size:10px;letter-spacing:.035em;background:#ffffff90;border:1px solid #ece7f2;border-radius:8px;padding:4px 10px;color:#9b8baa}
.bm-shell .bm-compose{padding:14px 26px 18px;background:#fff;border-top:1px solid #ece9f1}
.bm-shell .bm-input-row{max-width:800px;margin:0 auto;border-radius:12px;border-color:#e4deed;background:#faf9fc;box-shadow:none;padding:6px 8px}
.bm-shell .bm-input-row textarea{background:transparent;color:#342b40}
.bm-shell .bm-input-row [data-voice]{background:#eae3f5;color:#7859a9;border-radius:9px}
.bm-shell .bm-reply-compose,.bm-shell .bm-compose .bm-file{max-width:800px;margin-left:auto;margin-right:auto}
.bm-shell .bm-message-action-panel{background:#fff;border-color:#ded5e9;box-shadow:0 12px 45px #39224e22}
.bm-shell .bm-message-action-panel .bm-forward-target{color:#675576;border-radius:7px}
@media(max-width:750px){
 .bm-shell,.bm-shell:not(.has-peer){grid-template-columns:1fr;border-radius:0}
 .bm-shell .bm-header{min-height:68px;padding:12px 14px;padding-top:max(12px,env(safe-area-inset-top))}
 .bm-shell .bm-stream{padding:16px 15px}
 .bm-shell .bm-bubble{max-width:86%;font-size:15px;padding:9px 12px 7px}
 .bm-shell .bm-compose{padding:10px 10px max(10px,env(safe-area-inset-bottom))}
 .bm-shell .bm-input-row textarea{font-size:16px}
}
