.community-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.eyebrow{font-size:11px;font-weight:900;letter-spacing:.14em;color:var(--brand)}.community-heading h1{margin:8px 0}.community-heading p{margin:0}.community-grid{display:grid;grid-template-columns:minmax(240px,300px) minmax(0,1fr);gap:20px;align-items:start}.community-directory,.community-chat{background:var(--panel);border:1px solid var(--line);border-radius:24px;min-width:0;overflow:hidden}.community-directory{padding:18px}.community-search{display:flex;gap:6px;margin:8px 0 18px}.community-search input{min-width:0;width:100%}.room-list{display:grid;gap:6px;max-height:52dvh;overflow:auto;margin-bottom:18px}.room-link{display:flex;gap:12px;padding:14px 10px;border-radius:14px;align-items:center}.room-link:hover,.room-link.selected{background:var(--brand-soft);color:var(--brand-ink)}.room-link>span:last-child{min-width:0;overflow-wrap:anywhere}.room-link small{display:block;font-size:12px}.room-icon{display:grid;place-items:center;width:40px;height:40px;background:var(--panel);border:1px solid var(--line);border-radius:12px;flex-shrink:0}.community-chat-head{display:flex;justify-content:space-between;gap:16px;padding:24px;border-bottom:1px solid var(--line)}.community-chat-head h2{font-size:24px;margin-top:6px;overflow-wrap:anywhere}.community-chat-head p{font-size:13px;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.community-chat-head>div{min-width:0}.community-status{font-size:12px;color:var(--muted);padding:10px 24px;background:var(--panel-2)}.community-messages{padding:20px;min-height:280px;max-height:60dvh;overflow:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:14px}.community-message{width:fit-content;max-width:90%;padding:14px 16px;border:1px solid var(--line);border-radius:4px 18px 18px;background:var(--panel-2)}.community-message.mine{align-self:flex-end;background:var(--brand-soft);border-color:transparent;border-radius:18px 4px 18px 18px}.community-message header{display:flex;flex-wrap:wrap;align-items:center;gap:12px;font-size:12px}.community-message time{font-size:10px;color:var(--muted)}.community-message p{white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0;color:var(--ink)}.community-message summary{font-size:11px;color:var(--muted);cursor:pointer}.message-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.report-form{display:flex;flex-wrap:wrap;gap:6px;align-items:end}.report-form input{max-width:210px}.community-composer{border-top:1px solid var(--line);padding:18px 24px}.community-composer textarea{width:100%;resize:vertical;min-height:72px;max-height:200px}.community-composer>div{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:10px}.community-empty{text-align:center;margin:auto;padding:30px 10px}.community-empty>span{display:inline-grid;place-items:center;background:var(--brand-soft);color:var(--brand);width:64px;height:64px;border-radius:20px;margin-bottom:16px}.community-notice,.community-settings,.community-pins{padding:18px 24px;border-top:1px solid var(--line)}.community-pins p{white-space:pre-wrap;overflow-wrap:anywhere}.community-form{display:grid;gap:14px;padding:16px 0}.community-form label{display:grid;gap:6px}.community-form input:not([type=checkbox]),.community-form textarea,.community-form select{width:100%}.community-form input[type=checkbox]{width:auto}.community-form button{justify-self:start}.member-row{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid var(--line)}.community-grid summary{cursor:pointer}.community-grid input,.community-grid textarea,.community-grid select{background:var(--panel-2);border:1px solid var(--line);border-radius:10px;padding:10px;min-width:0}.community-grid label{font-size:13px;font-weight:700}.community-settings h3{margin-top:18px}
@media(min-width:1600px){.community-grid{grid-template-columns:320px minmax(0,1fr)}}
@media(max-width:1000px){.community-grid{grid-template-columns:240px minmax(0,1fr)}.community-chat-head{padding:18px}.community-message{max-width:96%}}
@media(max-width:760px){.community-heading{align-items:flex-start;flex-direction:column;gap:12px}.community-grid{grid-template-columns:minmax(0,1fr)}.community-directory{padding:14px}.room-list{display:flex;overflow:auto;max-height:160px;gap:8px}.room-link{min-width:200px;max-width:260px;flex-shrink:0}.community-search{margin-bottom:10px}.community-chat-head{flex-wrap:wrap}.community-messages{padding:12px;max-height:55dvh}.community-composer,.community-settings,.community-pins{padding:14px}.community-message{max-width:95%}.community-composer>div{flex-wrap:wrap}.community-composer small{font-size:11px}.community-chat-head h2{font-size:21px}}

.chat-reactions,.chat-sharing,.sticker-picker{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:10px 0}.chat-reactions button{border:1px solid var(--line);border-radius:20px;background:var(--panel);padding:6px 10px;min-height:36px;cursor:pointer}.chat-reactions button:hover{background:var(--brand-soft)}.chat-reactions span{font-size:11px}.chat-file{display:block;border:1px solid var(--line);padding:12px;border-radius:12px;overflow-wrap:anywhere}.chat-file small{display:block}.chat-sticker{object-fit:contain}.chat-readers{font-size:12px;color:var(--muted)}.chat-readers ul{padding-left:18px}.forward-form,.composer-extras{max-width:100%;padding:10px 0}.forward-form label,.composer-extras label{display:grid;gap:6px;margin:8px 0}.forward-form select,.composer-extras input{width:100%;max-width:100%;box-sizing:border-box}.sticker-picker button{background:var(--panel);border:1px solid var(--line);border-radius:12px;cursor:pointer}.community-message:target{outline:2px solid var(--brand);outline-offset:3px}.community-message{min-width:0}.community-chat{min-width:0}.community-messages{overflow-anchor:none}.community-composer{padding-bottom:max(14px,env(safe-area-inset-bottom))}@media(max-width:480px){.chat-reactions{gap:4px}.chat-reactions button{padding:5px 7px}.community-message{max-width:100%}.community-messages{padding:8px}.community-chat-head{padding:12px}.community-heading h1{font-size:26px}}
