/* Conversation-first layout; loaded after the shared component styles. */
.messages-view .workspace-case-header{min-height:72px;padding:12px 68px 8px 18px;gap:10px}
.messages-view .workspace-case-header h2{font-size:17px;margin-bottom:2px}
.messages-view .workspace-case-header .mx-listing-link{margin:0;padding:0;background:none;border-radius:0;gap:5px;min-height:28px}
.messages-view .mx-listing-cover{display:none}.messages-view .mx-listing-copy{display:flex;align-items:center;gap:7px;min-width:0}.messages-view .mx-listing-copy strong{font-size:12px;font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.messages-view .mx-listing-copy small{display:none}
.messages-view .workspace-case-tabs{min-height:40px;gap:20px}.messages-view .workspace-case-tabs>button:not(.mx-help){min-height:40px;font-size:12px}.messages-view .thread-header{top:12px}.messages-view .thread-options>summary{border:0;background:#f6f6f8}
.messages-view .thread-context{padding:5px 18px;font-size:10px;background:#f7f7f9;color:#77747e}
.messages-view .workspace-detail .message-scroll{background:#f7f7f9;padding:12px 16px 20px;gap:7px;overflow-anchor:none}
.messages-view .message-bubble{position:relative;width:fit-content;min-width:72px;max-width:85%;padding:9px 12px 5px;border:0;box-shadow:0 1px 2px #22222209;border-radius:17px 17px 17px 5px;color:#29272d;background:#fff;flex-shrink:0}
.messages-view .message-bubble.mine{background:#f3e5e9;color:#382d33;border:0;border-radius:17px 17px 5px 17px}
.messages-view .message-bubble>p{font-size:15px;line-height:1.45;margin:0;overflow-wrap:anywhere}
.messages-view .message-bubble footer{display:flex;align-items:center;justify-content:flex-end;min-height:22px;gap:4px;margin:2px 0 0}
.messages-view .message-bubble time{font-size:10px;color:#82757d;font-variant-numeric:tabular-nums}
.messages-view .message-bubble:not(.chat-tools-open) .message-react-picker,.messages-view .message-bubble:not(.chat-tools-open) .message-reply-button,.messages-view .message-bubble:not(.chat-tools-open) .message-actions{display:none}
.chat-message-menu{display:grid;place-items:center;width:30px;height:26px;padding:4px;border:0;background:none;color:#8b7982;cursor:pointer;border-radius:8px}.chat-message-menu svg,.message-reply-button svg{width:18px;height:18px}.chat-message-menu[aria-expanded=true]{background:#ffffff90;color:#a22c46}
.messages-view .chat-tools-open{outline:1px solid #d6b9c4;outline-offset:2px}.messages-view .chat-tools-open footer{min-height:40px}.messages-view .message-react-picker{margin-right:auto}.messages-view .message-reply-button{min-height:40px;width:36px;display:grid;place-items:center}
.messages-view .message-reactions{gap:4px;margin-top:5px}.messages-view .message-reaction{font-size:15px;min-height:27px;padding:2px 7px;border:1px solid #e7dce1;background:#fff;border-radius:16px}.messages-view .message-reaction.mine{border-color:#c9879b;background:#fff5f8}.messages-view .message-reaction span{font-size:10px}
.messages-view .message-react-picker>div{bottom:40px;left:0}.messages-view .message-bubble.mine .message-react-picker>div{left:0;right:auto}
.messages-view .chat-quote{padding:6px 9px;margin-bottom:7px;background:#ffffff80;border-left-width:2px}.messages-view .chat-quote strong{font-size:10px}.messages-view .chat-quote span{font-size:12px}
.chat-audio{display:flex;align-items:center;gap:10px;width:250px;max-width:100%;padding:4px 0}.chat-audio audio[hidden]{display:none!important}.chat-audio-play{display:grid;place-items:center;flex-shrink:0;width:42px;height:42px;border:0;border-radius:50%;background:#a72f4a;color:white;cursor:pointer}.chat-audio-play svg{width:22px;height:22px}.chat-audio-track{flex:1;min-width:0}.chat-audio-track input{display:block;width:100%;height:28px;padding:0;margin:0;accent-color:#a72f4a;cursor:pointer}.chat-audio-track>div{display:flex;justify-content:space-between;gap:6px;font-size:9px;color:#7a6972}.chat-audio-time{font-variant-numeric:tabular-nums}.chat-audio+small{display:none!important}
.messages-view .workspace-detail .message-composer{padding:8px 10px!important;border-top:1px solid #eeeef1}.messages-view .mx-compose-line .icon-button{background:none;border-radius:50%;min-width:36px;width:36px}.messages-view .workspace-detail #send-message{border-radius:50%;width:44px;min-width:44px;padding:10px}.messages-view .workspace-detail .message-composer textarea{border-radius:23px;border:0;background:#f3f3f6;padding-inline:15px}.messages-view .mx-send-label{position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden}
.messages-view .workspace-detail .composer-actions{grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;margin-top:9px;padding:4px 0;max-height:none}
.messages-view .workspace-detail .composer-actions .button{display:flex;flex-direction:column;gap:6px;white-space:normal;text-align:center;border:0;background:none;padding:8px 2px;font-size:10px;font-weight:500;line-height:1.25;min-height:68px!important;border-radius:12px}
.messages-view .workspace-detail .composer-actions .button svg{display:block;width:24px;height:24px;stroke-width:1.6;color:#a72f4a}.messages-view .workspace-detail .composer-actions .button:hover{background:#faf0f3}
@media(max-width:700px){.messages-view .workspace-case-header{padding:calc(6px + env(safe-area-inset-top,0px)) 54px 5px 6px;min-height:64px;gap:7px}.messages-view .workspace-case-header .mx-avatar{width:34px;height:34px;display:grid}.messages-view .workspace-case-header h2{font-size:16px}.messages-view .thread-header{top:calc(9px + env(safe-area-inset-top,0px));right:8px}.messages-view .thread-options>summary{min-height:36px;width:36px}.messages-view .workspace-case-tabs{padding:0 16px;gap:18px}.messages-view .message-bubble{max-width:88%;min-width:72px}.messages-view .mx-listing-copy strong{font-size:11px}.chat-audio{width:230px}}
@media(prefers-reduced-motion:reduce){.messages-view .message-bubble{animation:none}}
.messages-view .message-bubble{touch-action:pan-y pinch-zoom}.messages-view .chat-audio input{touch-action:auto}
