/* Messenger workspace: conversation rail, message canvas and group roster. */
html body.rev-page-chat main.chat-main{max-width:1280px!important;width:calc(100% - 40px)!important;margin:20px auto!important}
html body.rev-page-chat .chat-layout{height:calc(100dvh - 40px)!important;grid-template-columns:260px minmax(0,1fr)!important;gap:0!important;border:1px solid #dce0e6!important;border-radius:18px!important;overflow:hidden;background:#f5f6f8;color:#252b35;box-shadow:0 18px 60px #0003}
body.rev-page-chat .chat-sidebar{background:#edeff2!important;border:0!important;border-right:1px solid #dce0e6!important;border-radius:0!important;padding:18px 10px!important;gap:10px!important;min-width:0}
body.rev-page-chat .rev-chat-brand{display:none!important}body.rev-page-chat .chat-sidebar>.chat-toolbar{display:none!important}
body.rev-page-chat .conversation-search{width:100%;box-sizing:border-box;background:#e2e5e9;color:#28313b;border:0;border-radius:12px;padding:12px;font-size:13px}
body.rev-page-chat .chat-quick{display:flex;gap:8px;margin:0 0 8px!important}body.rev-page-chat .chat-quick button{flex:1;background:#fff!important;color:#586576!important;padding:8px!important;font-size:12px!important}
body.rev-page-chat #rooms{gap:3px!important}body.rev-page-chat #rooms .conversation-item{min-height:74px!important;border:0!important;border-radius:10px!important;background:transparent!important;color:#293341!important;padding:12px!important;text-align:left;gap:12px!important;font-size:14px!important}
body.rev-page-chat #rooms .conversation-item:hover{background:#e2e5e9!important}body.rev-page-chat #rooms .conversation-item.active{background:#dce1e8!important;color:#172235!important}body.rev-page-chat #rooms .conversation-item[hidden]{display:none!important}
body.rev-page-chat .conversation-avatar{width:42px!important;height:42px!important;flex-basis:42px!important;background:#cad9ee;color:#425c83}
body.rev-page-chat .chat-room{position:relative;display:flex!important;flex-direction:column!important;min-width:0;background:#f7f8fa!important;color:#242d3a!important;border:0!important;border-radius:0!important;padding:0!important}
body.rev-page-chat .chat-room>.chat-toolbar{padding:20px 24px 4px!important;min-height:38px;border:0!important}body.rev-page-chat #roomTitle{font-size:18px!important;color:#202936!important}
body.rev-page-chat #roomCounts{font-size:11px!important;color:#718396!important;padding:0 24px 16px!important;border-bottom:1px solid #e2e5eb}
body.rev-page-chat #roomHint{display:none!important}body.rev-page-chat #messages{padding:24px!important;background:#f7f8fa!important;min-height:0!important}
body.rev-page-chat .message{position:relative;padding-left:44px!important;max-width:84%!important;margin-bottom:24px!important;box-sizing:border-box}
body.rev-page-chat .message.mine{padding-left:0!important;padding-right:44px!important}
body.rev-page-chat .message-head{min-height:18px!important;margin-bottom:6px!important;color:#8c96a5!important}
body.rev-page-chat .message-head .chat-identity img{position:absolute;left:0;top:3px;width:34px!important;height:34px!important}
body.rev-page-chat .message.mine .message-head .chat-identity img{left:auto;right:0}
body.rev-page-chat .message-head .chat-identity{color:#758292!important;padding:0!important;font-size:11px!important}
body.rev-page-chat .message>p{margin:0!important;padding:12px 16px!important;border-radius:4px 16px 16px 16px!important;background:#fff!important;color:#27313e!important;box-shadow:0 1px 3px #17243c08;font-size:14px!important;line-height:1.7!important}
body.rev-page-chat .message.mine>p{background:#dcecff!important;border-radius:16px 4px 16px 16px!important;color:#243e5d!important}
body.rev-page-chat #composer{position:relative;background:#fff!important;border-top:1px solid #e0e5eb!important;padding:12px 20px 16px!important;color:#27313e!important}
body.rev-page-chat #messageText{height:76px!important;min-height:76px!important;color:#27313e!important;background:transparent!important;font-size:14px!important}
body.rev-page-chat #composer button{background:#f1f4f8!important;color:#56667c!important;border:0!important;box-shadow:none!important;border-radius:9px!important}
body.rev-page-chat #composer #sendMessage{background:#1598f5!important;color:#fff!important;min-width:86px!important;padding:10px 20px!important}
body.rev-page-chat #olderMessages{color:#8a95a5!important;background:transparent!important}
body.rev-page-chat #memberDetails{position:absolute!important;right:0;top:0;bottom:0;width:204px!important;border-left:1px solid #e0e5eb!important;background:#f0f2f5!important;padding:20px 12px!important;box-sizing:border-box;overflow:auto}
body.rev-page-chat #memberDetails>summary{background:transparent!important;border:0!important;color:#293749!important;font-size:14px!important;padding:6px!important}
body.rev-page-chat #members{position:static!important;width:100%!important;max-height:none!important;display:flex!important;flex-direction:column;gap:4px!important;background:transparent!important;box-shadow:none!important;border:0!important;padding:12px 0!important}
body.rev-page-chat #members .chat-identity{background:transparent!important;color:#68788a!important;padding:8px 4px!important;font-size:12px!important;gap:10px!important}
body.rev-page-chat #members .chat-identity img{width:28px!important;height:28px!important}
body.rev-page-chat .chat-room-actions button{background:#e9edf2!important;color:#53657c!important;border:0!important}
@media(min-width:1001px){body.rev-page-chat .chat-layout[data-kind=group] .chat-room{padding-right:204px!important}body.rev-page-chat #memberDetails>summary{pointer-events:none}body.rev-page-chat #memberDetails #members{display:flex!important}}
@media(max-width:1000px){body.rev-page-chat #memberDetails{top:15px;right:12px;bottom:auto;width:auto!important;padding:0!important;border:0!important;border-radius:12px;z-index:20}body.rev-page-chat #memberDetails[open]{width:220px!important;max-height:65vh;box-shadow:0 12px 30px #0002}body.rev-page-chat .chat-room>.chat-toolbar{padding-right:120px!important}}
@media(max-width:760px){html body.rev-page-chat main.chat-main{width:100%!important;margin:0!important}html body.rev-page-chat .chat-layout{height:100dvh!important;grid-template-columns:1fr!important;border:0!important;border-radius:0!important}body.rev-page-chat .conversation-search{padding:7px 10px;font-size:12px}body.rev-page-chat .chat-sidebar{padding:8px!important;max-height:170px!important}body.rev-page-chat .chat-quick{position:absolute;right:10px;top:8px;width:155px}body.rev-page-chat .conversation-search{width:calc(100% - 165px)}body.rev-page-chat #rooms .conversation-item{min-height:54px!important;width:150px!important;padding:8px!important;font-size:12px!important}body.rev-page-chat .conversation-avatar{width:32px!important;height:32px!important;flex-basis:32px!important}body.rev-page-chat #messages{padding:16px 12px!important}body.rev-page-chat .message{max-width:95%!important}body.rev-page-chat #messageText{height:56px!important;min-height:56px!important}}
/* Match the shell theme's specificity; keep the reference light messenger surface coherent. */
html body.rev-page-chat .chat-layout .chat-sidebar{background:#edeff2!important;border-radius:0!important}
html body.rev-page-chat .chat-layout .chat-room{background:#f7f8fa!important;border-radius:0!important}
html body.rev-page-chat .chat-layout #memberDetails{background:#f0f2f5!important;border-radius:0!important}
html body.rev-page-chat .chat-layout #members .chat-identity{border:0!important;box-shadow:none!important;color:#68788a!important}
html body.rev-page-chat .chat-layout .conversation-search{background:#e2e5e9!important;color:#28313b!important}
html body.rev-page-chat .chat-layout #roomTitle{color:#202936!important}
html body.rev-page-chat .chat-layout #memberDetails>summary{color:#293749!important}
html body.rev-page-chat .chat-layout #composer .chat-compose{background:transparent!important;border:0!important;box-shadow:none!important}
html body.rev-page-chat .chat-layout #composer #messageText{background:#fff!important;background-image:none!important;color:#27313e!important;box-shadow:none!important;border:0!important}
html body.rev-page-chat .chat-layout .message>p{border:0!important}
html body.rev-page-chat main.chat-main section.chat-layout>section.chat-sidebar{background:#edeff2!important;background-image:none!important;border-radius:0!important}
html body.rev-page-chat main.chat-main section.chat-layout>section.chat-room{background:#f7f8fa!important;background-image:none!important}
html body.rev-page-chat main.chat-main section.chat-layout>section.chat-room>.chat-toolbar{background:#f7f8fa!important}
html body.rev-page-chat main.chat-main #roomTitle{color:#202936!important}
html body.rev-page-chat main.chat-main .conversation-search{background:#e2e5e9!important;color:#28313b!important}
/* Site palette retained; references apply to layout only. */
html body.rev-page-chat main.chat-main .chat-layout{background:#131a25!important;border-color:#2b3545!important;color:#e4ebf5}
html body.rev-page-chat main.chat-main .chat-layout .chat-sidebar,html body.rev-page-chat main.chat-main section.chat-layout>section.chat-sidebar{background:#171f2b!important;border-color:#2b3545!important}
html body.rev-page-chat main.chat-main .chat-layout .chat-room,html body.rev-page-chat main.chat-main section.chat-layout>section.chat-room,html body.rev-page-chat main.chat-main section.chat-layout>section.chat-room>.chat-toolbar,html body.rev-page-chat main.chat-main #messages{background:#111823!important;color:#e4ebf5!important}
html body.rev-page-chat main.chat-main #roomTitle{color:#e4ebf5!important}html body.rev-page-chat main.chat-main #roomCounts{background:#111823!important;border-color:#293344!important;color:#9bb9a4!important}
html body.rev-page-chat main.chat-main .conversation-search{background:#101720!important;color:#d6dfec!important}
html body.rev-page-chat main.chat-main #rooms .conversation-item{color:#bcc9dc!important}html body.rev-page-chat main.chat-main #rooms .conversation-item.active{background:#304236!important;color:#d6efbd!important}html body.rev-page-chat main.chat-main #rooms .conversation-item:hover{background:#25323c!important}
html body.rev-page-chat main.chat-main .chat-quick button,html body.rev-page-chat main.chat-main .chat-room-actions button{background:#242f40!important;color:#c0cde0!important}
html body.rev-page-chat main.chat-main .chat-layout #memberDetails{background:#171f2b!important;border-color:#2b3545!important}html body.rev-page-chat main.chat-main #memberDetails>summary{color:#c9d5e7!important}html body.rev-page-chat main.chat-main .chat-layout #members .chat-identity{color:#aebed1!important}
html body.rev-page-chat main.chat-main .chat-layout .message>p{background:#243144!important;color:#e0e8f4!important}html body.rev-page-chat main.chat-main .chat-layout .message.mine>p{background:#b2d996!important;color:#213422!important}
html body.rev-page-chat main.chat-main #composer{background:#192231!important;border-color:#2b3545!important;color:#dce7f4!important}html body.rev-page-chat main.chat-main .chat-layout #composer #messageText{background:#192231!important;color:#dce7f4!important}html body.rev-page-chat main.chat-main #composer button{background:#263346!important;color:#c2d0e2!important}html body.rev-page-chat main.chat-main #composer #sendMessage{background:#b2d996!important;color:#213422!important}
