/* O Refúgio dos Leitores V1.2-P — Messenger responsivo, emojis e fotos. */
.community-app.v10a .v18-messenger{display:grid;grid-template-columns:minmax(250px,310px) minmax(0,1fr);gap:0;min-width:0;max-width:1450px;margin:12px auto 24px;min-height:520px;border:1px solid #72579c;border-radius:21px;overflow:hidden;background:#241b36;box-shadow:0 20px 65px #09061b35}
.community-app.v10a .v18-messenger-side{min-width:0;background:linear-gradient(180deg,#fbf9ff,#f1eafa);border-right:1px solid #d8cce9;display:flex;flex-direction:column;color:#332342}
.community-app.v10a .v18-messenger-side-head{display:flex;align-items:center;justify-content:space-between;padding:20px 19px 7px;gap:9px}
.community-app.v10a .v18-messenger-side-head h2{margin:0;font-size:20px;color:#2a1c42;letter-spacing:-.025em}
.community-app.v10a .v18-messenger-side-head>a{display:grid;place-items:center;width:35px;height:35px;border-radius:11px;background:#e6d8f7;color:#572d85;font-size:24px;text-decoration:none}
.community-app.v10a .v18-chat-search-label{display:block!important;margin:5px 13px 12px!important;font-size:0!important;line-height:1!important}
.community-app.v10a .v18-chat-search{width:100%!important;min-height:43px!important;border:1px solid #d7c9e6!important;border-radius:12px!important;background:#fff!important;color:#2a2140!important;font-size:13px!important;padding:10px 13px!important;box-sizing:border-box!important}
.community-app.v10a .v18-conversation-items{display:grid;align-content:start;gap:2px;padding:0 9px 14px;overflow:auto;max-height:min(70vh,710px)}
.community-app.v10a .v18-conversation-item{display:flex;gap:10px;min-height:62px;padding:10px 11px;border-radius:14px;color:#30233e;text-decoration:none;align-items:center;min-width:0;transition:background .16s}
.community-app.v10a .v18-conversation-item:hover{background:#ece2f8}
.community-app.v10a .v18-conversation-item.active{background:#e5d5fa;box-shadow:inset 3px 0 #7950aa}
.community-app.v10a .v18-conversation-icon{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border-radius:16px;background:#d8c4f4;font-size:23px}
.community-app.v10a .v18-conversation-text{flex:1;min-width:0;display:grid;gap:4px}
.community-app.v10a .v18-conversation-text strong{font-size:13px;color:#2f2043;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.community-app.v10a .v18-conversation-text small{font-size:11px;color:#756b84;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.community-app.v10a .v18-conversation-item time{font-size:10px;color:#8e7f9a;flex-shrink:0;max-width:75px;text-align:right}
.community-app.v10a .v18-conversation-empty{padding:10px 14px;line-height:1.6;font-size:13px;color:#655475}
.community-app.v10a .v18-messenger>.v17-chat-room{margin:0;width:100%;max-width:none;border:0;border-radius:0;box-shadow:none;display:flex;flex-direction:column;min-width:0;min-height:580px;overflow:visible}
.community-app.v10a .v18-messenger .v17-chat-head{padding:13px 18px;gap:12px;flex-wrap:nowrap;min-height:75px;background:linear-gradient(120deg,#2d2346,#3c2d58);box-sizing:border-box}
.community-app.v10a .v18-messenger .v17-chat-head>a{flex:0 0 auto;background:#ffffff17;padding:9px 12px;border-radius:10px;font-size:12px;white-space:nowrap}
.community-app.v10a .v18-messenger .v17-chat-head .v17-chat-icon{width:40px;height:40px;display:grid;place-items:center;flex:0 0 40px;padding:0}
.community-app.v10a .v18-messenger .v17-chat-head>div{min-width:0}
.community-app.v10a .v18-messenger .v17-chat-head h1{font-size:17px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.community-app.v10a .v18-messenger .v17-chat-messages{flex:1 1 auto;height:clamp(320px,58vh,750px);min-height:260px;max-height:750px;overflow:auto;padding:19px 24px 23px;scrollbar-width:thin;scrollbar-color:#6e5b86 transparent;gap:12px}
.community-app.v10a .v18-messenger .v17-msg{max-width:min(74%,580px);padding:10px 13px 12px;border-radius:18px 18px 18px 5px}
.community-app.v10a .v18-messenger .v17-msg.own{border-radius:18px 18px 5px 18px}
.community-app.v10a .v18-messenger .v17-msg-meta{font-size:10px;margin-bottom:6px;opacity:.85}
.community-app.v10a .v18-messenger .v17-msg p{font-size:14px;line-height:1.5;white-space:normal;overflow-wrap:anywhere}
.community-app.v10a .v18-chat-photo{display:block;max-width:360px;min-width:0;border-radius:12px;overflow:hidden;border:1px solid #ffffff25;margin:3px 0}
.community-app.v10a .v18-chat-photo img{display:block;width:auto;max-width:100%;max-height:360px;height:auto;object-fit:contain;border-radius:10px}
.community-app.v10a .v18-chat-photo+p{margin-top:8px}
.community-app.v10a .v18-messenger .v18-chat-compose{position:relative;display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding:13px 16px 12px;background:#261d3c;border-top:1px solid #ffffff23;min-height:73px;box-sizing:border-box}
.community-app.v10a .v18-chat-tools{display:flex;gap:5px;align-items:center;flex:0 0 auto}
.community-app.v10a .v18-chat-tool{appearance:none;border:0!important;background:#ffffff14!important;color:#ede4fc!important;border-radius:12px!important;min-width:42px;height:44px;padding:0 8px!important;font-size:23px;display:grid;place-items:center;cursor:pointer;transition:background .16s,transform .16s}
.community-app.v10a .v18-chat-tool:hover,.community-app.v10a .v18-chat-tool:focus-visible{background:#ffffff31!important;transform:translateY(-1px)}
.community-app.v10a .v18-file-input{display:none!important}
.community-app.v10a .v18-chat-compose textarea{flex:1 1 170px;width:auto;min-width:0;height:45px;min-height:45px;max-height:130px;resize:none;border-radius:14px!important;box-sizing:border-box;padding:12px 14px;overflow:auto}
.community-app.v10a .v18-send{display:flex;gap:7px;align-items:center;justify-content:center;min-width:95px;min-height:45px;border-radius:14px!important;padding:11px 14px!important;white-space:nowrap}
.community-app.v10a .v18-send span:last-child{font-size:17px}
.community-app.v10a .v18-chat-hint{flex:0 0 100%;font-size:10px;color:#a999c1;line-height:1.1;margin-left:3px}
.community-app.v10a .v18-chat-compose [data-v17-status]{flex:0 0 100%;font-size:12px;color:#ffdba8}
.community-app.v10a .v18-chat-compose [data-v17-status]:empty{display:none}
.community-app.v10a .v18-attachment-preview{width:100%;min-width:0;display:flex;align-items:center;gap:11px;padding:9px 12px;background:#3c2d56;border:1px solid #9575bc;border-radius:12px;color:#f2e6ff;font-size:12px;box-sizing:border-box}
.community-app.v10a .v18-attachment-preview[hidden]{display:none!important}
.community-app.v10a .v18-attachment-preview img{width:54px;height:54px;border-radius:8px;object-fit:cover}
.community-app.v10a .v18-attachment-preview>span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.community-app.v10a .v18-attachment-preview button{background:#ffffff2b;color:#fff;border:0;border-radius:50%;width:30px;height:30px;font-size:22px;cursor:pointer}
.community-app.v10a .v18-emoji-wrap{position:relative}
.community-app.v10a .v18-emoji-picker{position:absolute;bottom:calc(100% + 13px);left:-52px;width:min(335px,calc(100vw - 42px));border:1px solid #d9cae9;border-radius:16px;padding:13px;background:#fbf8ff;color:#312044;z-index:110;box-shadow:0 16px 45px #07041398;box-sizing:border-box}
.community-app.v10a .v18-emoji-picker[hidden]{display:none!important}
.community-app.v10a .v18-emoji-picker-title{display:flex;justify-content:space-between;align-items:center;padding:0 2px 9px;font-weight:750;font-size:13px}
.community-app.v10a .v18-emoji-picker-title button{border:0;background:#e9def6;border-radius:8px;width:28px;height:28px;font-size:20px;cursor:pointer;color:#45265f}
.community-app.v10a .v18-emoji-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:3px;max-height:225px;overflow:auto}
.community-app.v10a .v18-emoji-grid .v18-emoji{display:grid;place-items:center;border:0;border-radius:8px;background:transparent;font-size:23px;padding:5px 0;min-width:0;min-height:37px;cursor:pointer}
.community-app.v10a .v18-emoji-grid .v18-emoji:hover,.community-app.v10a .v18-emoji-grid .v18-emoji:focus-visible{background:#e5d6f6}
.community-app.v10a .v17-chat-index{max-width:1250px;margin-inline:auto}
.community-app.v10a .v17-chat-index .v18-chat-search-label{margin:8px 0 13px!important}
.community-app.v10a .v17-conversation-row[data-v18-name]{transition:background .16s;min-width:0}
.community-app.v10a .v17-conversation-row[data-v18-name][hidden],.community-app.v10a .v18-conversation-item[hidden]{display:none!important}
.community-app.v10a .v17-chat-index>.c-panel{border-radius:19px!important}
.community-app.v10a .v18-messenger .v17-chat-config,.community-app.v10a .v18-messenger .v17-chat-participants{flex:0 0 auto}
@media(max-width:1050px){
 .community-app.v10a .v18-messenger{grid-template-columns:minmax(210px,260px) minmax(0,1fr)}
 .community-app.v10a .v18-conversation-item time{display:none}
 .community-app.v10a .v18-messenger .v17-chat-messages{padding:13px}
}
@media(max-width:760px){
 .community-app.v10a .v18-messenger{display:block;min-height:0;margin:5px auto 18px;border-radius:15px}
 .community-app.v10a .v18-messenger-side{display:none}
 .community-app.v10a .v18-messenger>.v17-chat-room{min-height:0}
 .community-app.v10a .v18-messenger .v17-chat-head{min-height:65px;padding:10px 12px;gap:9px}
 .community-app.v10a .v18-messenger .v17-chat-head>a{padding:7px 9px;font-size:11px}
 .community-app.v10a .v18-messenger .v17-chat-head .v17-chat-icon{width:34px;height:34px;flex-basis:34px;font-size:18px}
 .community-app.v10a .v18-messenger .v17-chat-head h1{font-size:15px}
 .community-app.v10a .v18-messenger .v17-chat-messages{height:clamp(300px,50dvh,610px);max-height:none;padding:12px 10px 16px;gap:10px}
 .community-app.v10a .v18-messenger .v17-msg{max-width:87%;padding:9px 11px}
 .community-app.v10a .v18-messenger .v17-chat-config,.community-app.v10a .v18-messenger .v17-chat-participants{padding:9px 12px}
 .community-app.v10a .v18-messenger .v18-chat-compose{gap:7px;padding:10px 9px calc(9px + env(safe-area-inset-bottom,0px))}
 .community-app.v10a .v18-chat-tool{min-width:39px;height:42px;font-size:21px}
 .community-app.v10a .v18-chat-compose textarea{min-height:42px;height:42px;flex-basis:100px;font-size:16px!important;padding:10px 11px}
 .community-app.v10a .v18-send{min-width:43px;min-height:42px;padding:9px 11px!important}
 .community-app.v10a .v18-send span:first-child{display:none}
 .community-app.v10a .v18-chat-hint{display:none}
 .community-app.v10a .v18-emoji-picker{left:-45px;bottom:calc(100% + 12px)}
}
@media(max-width:350px){
 .community-app.v10a .v18-chat-tools{gap:2px}
 .community-app.v10a .v18-chat-tool{min-width:35px;padding:0 5px!important}
 .community-app.v10a .v18-emoji-picker{left:-39px;width:min(305px,calc(100vw - 28px));padding:9px}
 .community-app.v10a .v18-emoji-grid .v18-emoji{font-size:20px}
}
@media(prefers-reduced-motion:reduce){.community-app.v10a .v18-chat-tool,.community-app.v10a .v18-conversation-item{transition:none}}
/* Garantir que o CSS móvel legado não aumenta os botões do editor. */
.community-app.v10a .v18-chat-compose .v18-chat-tool{padding:0 8px!important;flex-shrink:0}
.community-app.v10a .v18-chat-compose .v18-send{padding:10px 13px!important}
@media(max-width:760px){
 .community-app.v10a .v18-chat-compose .v18-chat-tool{padding:0 6px!important}
 .community-app.v10a .v18-chat-compose .v18-send{padding:9px 10px!important}
}
