/* Querubim 1.1.3 — somente acabamento da comunidade; não altera motor do feed/chat. */
body.qer-body .qer-stories-wrap{margin-bottom:19px!important}
body.qer-body .qer-stories-shell{width:100%;min-width:0}
body.qer-body .qer-stories{grid-auto-columns:clamp(130px,27%,194px)!important;gap:12px!important;scroll-snap-type:x mandatory!important;scroll-padding-inline:6px!important;scrollbar-width:none!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch!important;padding:5px 3px 12px!important}
body.qer-body .qer-story{height:auto!important;aspect-ratio:4/5!important;min-height:165px!important;border-radius:18px!important;overflow:hidden!important;padding:13px!important;background-size:cover!important;background-position:center!important;border:1px solid rgba(96,185,235,.27)!important;box-shadow:0 9px 24px rgba(0,0,0,.23)!important;scroll-snap-align:start!important}
body.qer-body .qer-story-post strong{font-size:13px!important;font-weight:850!important;line-height:1.24!important;color:#fff!important;text-shadow:0 2px 8px rgba(0,0,0,.7)!important}
body.qer-body .qer-story-post small{font-size:10px!important;color:#e2f3fe!important;text-shadow:0 2px 7px rgba(0,0,0,.7)!important}
body.qer-body .qer-story-post:hover,body.qer-body .qer-story-post:focus-visible{transform:translateY(-2px)!important;border-color:#6ce3fd!important;box-shadow:0 12px 24px rgba(11,148,219,.19)!important}
.qer-stories-empty{display:flex;align-items:center;justify-content:center;border:1px dashed rgba(93,192,233,.35);background:#10293c;border-radius:16px;min-height:165px;width:100%;padding:18px;text-align:center;color:#cde4f2;font-size:13px}
@media(max-width:700px){
 body.qer-body .qer-stories{grid-auto-columns:calc((100% - 15px)/2.35)!important;gap:9px!important;padding:5px 4px 10px!important}
 body.qer-body .qer-story{min-height:0!important;aspect-ratio:4/5!important;padding:10px!important;border-radius:15px!important}
 body.qer-body .qer-story-post strong{font-size:12px!important}
 body.qer-body .qer-story-post small{font-size:9px!important}
}
/* Comunhão: campo de escrita sempre dentro da janela, maior e visível. */
body.qer-body .qer-chat-drawer .qer-chat-pane{flex-direction:column!important;height:100%!important;min-height:0!important;--qer-chat-mine-color:#0b6b58}
body.qer-body .qer-chat-drawer .qer-chat-messages{flex:1 1 auto!important;overflow-y:auto!important;min-height:0!important}
body.qer-body .qer-chat-drawer .qer-chat-form{flex:0 0 auto!important;position:relative!important;bottom:auto!important;margin-top:auto!important;min-height:76px!important;padding:12px!important;grid-template-columns:minmax(0,1fr) 52px!important;background:#0b202f!important}
body.qer-body .qer-chat-drawer .qer-chat-form textarea{min-height:55px!important;font-size:15px!important;line-height:1.4!important;padding:16px 18px!important;background:#183245!important;border-color:rgba(116,210,239,.29)!important;color:#fff!important}
body.qer-body .qer-chat-drawer .qer-chat-action{width:52px!important;height:52px!important;min-width:52px!important;border-radius:50%!important}
body.qer-body .qer-chat-drawer .qer-msg.mine{background:var(--qer-chat-mine-color)!important}
.qer-chat-colors{position:relative;flex:0 0 auto;display:flex;align-items:center;z-index:30}
body.qer-body .qer-chat-color-toggle{background:#13354a;color:#93dafa;border:1px solid #315e78;border-radius:9px;width:29px;height:29px;display:grid;place-items:center;font-size:19px;cursor:pointer;line-height:1}
body.qer-body .qer-chat-color-toggle:hover{background:#1b5475;color:#fff}
.qer-chat-color-options{position:absolute;right:0;top:calc(100% + 8px);z-index:40;display:flex;gap:8px;padding:9px;border-radius:13px;background:#092033;border:1px solid #3b6f8e;box-shadow:0 16px 30px #000a}
.qer-chat-color-options[hidden]{display:none!important}
.qer-chat-color-options button{display:block!important;width:25px;height:25px;min-width:25px;border:2px solid #769aab;border-radius:50%;background:var(--chip);cursor:pointer}
.qer-chat-color-options button[aria-pressed="true"]{outline:2px solid #8aeaff;outline-offset:2px}
@media(max-width:960px){
 body.qer-body .qer-chat-drawer .qer-chat-form{padding:10px 10px calc(11px + env(safe-area-inset-bottom))!important;min-height:79px!important;grid-template-columns:minmax(0,1fr) 50px!important}
 body.qer-body .qer-chat-drawer .qer-chat-form textarea{min-height:53px!important;font-size:14px!important;padding:14px 16px!important}
 body.qer-body .qer-chat-drawer .qer-chat-action{width:50px!important;height:50px!important;min-width:50px!important}
}
/* Grupo independente do espaço público da comunidade. */
.qer-room-gate{width:100%;min-height:360px;grid-column:1/-1;border-radius:22px;border:1px solid rgba(86,207,243,.45);background:linear-gradient(145deg,#14364e,#0b1c30);box-shadow:0 20px 55px #0006;color:#e9faff;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:35px 18px;margin:12px auto 70px;max-width:850px}
.qer-room-gate .qer-room-lock{display:grid;place-items:center;border-radius:50%;width:60px;height:60px;background:#173e57;color:#5fdafa;font-size:31px}
.qer-room-gate h2{font-size:clamp(21px,3vw,31px);margin:0!important;color:#fff!important}
.qer-room-gate p{font-size:15px;line-height:1.55;color:#c3e2f0;max-width:530px;margin:0!important}
.qer-room-gate a{border-radius:12px;background:#1ebce3;color:#00243a!important;font-size:14px;font-weight:850;padding:13px 22px;text-decoration:none;display:inline-block}
.qer-room-gate small{color:#8cbbc8;font-size:12px}
