.room{display:flex;flex-direction:column;height:100%}
.rhead{display:flex;align-items:flex-end;justify-content:center;gap:0;padding:4px 0 0}
.rhead svg{width:92px;height:92px;margin:0 -8px}
.roomwrap{margin:10px 12px calc(96px + var(--sab));border-radius:24px;padding:4px 10px 10px;flex:1;display:flex;flex-direction:column;min-height:0}
.scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:12px 12px calc(110px + var(--sab));display:grid;grid-template-columns:minmax(0,1fr);gap:10px;align-content:start}
/* teclado aberto: some a navegação e o cabeçalho da sala para sobrar espaço para as mensagens */
html.kb .nav,html.kb .rhead{display:none}
html.kb .roomwrap{margin-bottom:8px}
.msgs{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:10px 4px;display:flex;flex-direction:column;gap:8px}
.msg{display:flex;gap:6px;align-items:flex-end;max-width:84%}
.msg svg{width:34px;height:34px;flex:none}
.msg .bb{background:var(--surf2);border-radius:18px 18px 18px 6px;padding:8px 12px;font-weight:700;font-size:14.5px;line-height:1.35;word-break:break-word}
.msg .who{font-size:11px;font-weight:900;color:var(--ink2);margin-bottom:2px}
.msg.me{align-self:flex-end;flex-direction:row-reverse}
.msg.me .bb{background:var(--accent);color:#fff;border-radius:18px 18px 6px 18px}
.msg.sys{align-self:center;font-size:12px;font-weight:800;color:var(--ink2)}
.compose{display:flex;gap:8px;padding:8px 0 0}
.compose input{flex:1;min-width:0;border:2px solid var(--line);border-radius:16px;padding:11px 12px;font:inherit;font-weight:700;font-size:16px;background:var(--surf2);color:var(--ink)}
.rowb{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
