.chat-layout{display:grid;grid-template-columns:minmax(220px,300px) minmax(0,1fr);gap:22px;align-items:start}.chat-directory{padding:20px;max-height:78vh;overflow:auto}.chat-directory details{margin-bottom:12px}.chat-thread-list{display:grid;gap:8px;margin-top:22px}.chat-thread{display:grid;gap:6px;padding:15px;border:1px solid #dce5e0;border-radius:12px;color:inherit;text-decoration:none;overflow-wrap:anywhere}.chat-thread.selected{background:#e8f1ed;border-color:var(--accent)}.chat-thread small{color:#63716b}.chat-conversation{padding:24px;min-width:0}.chat-conversation h2{overflow-wrap:anywhere}.chat-history{height:44vh;min-height:220px;overflow:auto;display:flex;flex-direction:column;gap:14px;padding:16px 5px;overscroll-behavior:contain}.chat-bubble{align-self:flex-start;max-width:88%;padding:14px 17px;border-radius:15px;background:#f0f3f1;border:1px solid #dfe6e2;flex-shrink:0}.chat-bubble.mine{align-self:flex-end;background:#e1eee7}.chat-bubble header{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin-bottom:8px}.chat-bubble time{font-size:11px;color:#5b6962}.chat-text{overflow-wrap:anywhere;white-space:pre-wrap}.chat-bubble img{display:block;max-width:100%;max-height:250px;border-radius:10px;margin:12px 0}.chat-compose textarea{width:100%;resize:vertical}.chat-emojis{display:flex;gap:5px;flex-wrap:wrap}.chat-compose-actions{display:flex;align-items:end;justify-content:space-between;gap:15px}.chat-compose-actions input{max-width:100%}.chat-welcome{text-align:center;max-width:430px;margin:100px auto;color:#62736a}.chat-welcome>span{font-size:50px;color:var(--accent)}[data-chat-badge]{font-size:12px;border-radius:20px;padding:2px 6px;background:#e7f0eb;color:#234e46}[data-chat-badge]:empty{display:none}.chat-conversation .stack{min-width:0}.chat-conversation fieldset{max-height:240px;overflow:auto}@media(max-width:850px){.chat-layout{grid-template-columns:1fr}.chat-directory{max-height:280px}.chat-conversation{padding:16px}.chat-compose-actions{align-items:stretch;flex-direction:column}.chat-bubble{max-width:96%}}
.community-photo{display:block;max-width:min(100%,360px);max-height:320px;object-fit:contain;border-radius:12px;margin-top:10px}.community-moderate{margin-top:10px}.community-moderate form{max-width:500px;padding:10px}
