.community-gate{grid-column:1/-1;text-align:center;padding:60px 24px;border:1px solid var(--line);border-radius:16px;background:var(--surface,#fff)}.community-gate h2{font-size:36px;color:var(--green)}.community-gate p{max-width:600px;margin:20px auto;line-height:1.7}.community-preview{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin:30px 0}.community-preview span{padding:14px;border:1px solid var(--line);border-radius:8px}.community-shell{grid-column:1/-1;display:grid;grid-template-columns:245px minmax(0,1fr);border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--surface,#fff)}.community-rooms{display:block!important;padding:16px;border:0;border-inline-end:1px solid var(--line);margin:0;border-radius:0}.community-rooms input{width:100%;margin:10px 0 16px}.community-shell input,.community-shell textarea,.community-shell select{color:var(--ink);background:var(--paper);border:1px solid var(--line);border-radius:7px;padding:10px;font:inherit;min-width:0}.community-rooms label,.community-shell label{font-size:14px}.community-rooms #room-list{max-height:680px;overflow:auto}.community-rooms button{display:flex;align-items:center;gap:12px;width:100%;text-align:start;padding:10px;border-radius:8px}.community-rooms button.selected{background:var(--green);color:white}.community-rooms img{height:40px;width:40px;object-fit:cover;border-radius:8px}.community-rooms small{display:block;font-size:12px;margin-top:4px}.community-conversation{min-width:0}.community-conversation>header{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid var(--line)}.community-conversation h3{margin:5px 0}.chat-categories{display:flex;gap:16px;align-items:center;padding:12px 24px}.chat-categories label{display:flex;align-items:center;gap:10px}.chat-rules{font-size:13px;line-height:1.6;margin:0;padding:0 24px;color:var(--muted)}#chat-status{font-size:14px;padding-inline:24px;color:var(--green);min-height:20px}.chat-messages{height:420px;overflow:auto;padding:0 24px 20px;display:flex;flex-direction:column;gap:14px}.chat-bubble{align-self:flex-start;background:var(--paper);border:1px solid var(--line);padding:16px;border-radius:0 14px 14px;width:min(90%,700px)}.chat-bubble.mine{align-self:flex-end;border-radius:14px 0 14px;border-color:var(--green)}.chat-bubble>div{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.chat-bubble strong{font-size:14px;color:var(--green)}.chat-bubble time,.chat-bubble>div>span{font-size:12px;color:var(--muted)}.chat-bubble time{margin-inline-start:auto}.chat-bubble p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px;line-height:1.6;margin:12px 0}.chat-bubble blockquote{border-inline-start:3px solid var(--gold);margin:12px 0;padding-inline-start:12px;overflow-wrap:anywhere;font-size:14px}.chat-bubble footer{padding:0;border:0;display:flex;gap:20px;margin:0}.chat-bubble footer button{font-size:14px;color:var(--green)}#chat-form{padding:20px 24px;border-top:1px solid var(--line)}.chat-compose-row{display:flex;gap:16px;align-items:center;justify-content:space-between;flex-wrap:wrap}.chat-compose-row label{display:flex;gap:6px;flex-direction:column;flex:1}.chat-compose-row small{font-size:13px;max-width:65%;color:var(--muted)}.chat-message-label{display:block;margin:14px 0}.chat-message-label textarea{display:block;width:100%;margin-top:8px;resize:vertical}#chat-reply{margin-top:12px;padding:12px;background:var(--paper);display:flex;justify-content:space-between;gap:12px}.chat-empty{text-align:center;margin:auto;max-width:430px;line-height:1.7;color:var(--muted)}.chat-empty>span{font-size:40px;color:var(--gold)}html[data-theme=dark] .community-shell,html[data-theme=dark] .community-gate{background:#142720}@media(max-width:700px){.community-shell{grid-template-columns:1fr}.community-rooms{border-inline:0;border-bottom:1px solid var(--line)}.community-rooms #room-list{max-height:150px}.community-rooms button{padding:8px}.community-conversation>header,.chat-categories,#chat-form{padding:16px}.chat-rules{padding:0 16px}.chat-messages{padding:0 16px 16px}.chat-compose-row small{max-width:100%}.chat-bubble{width:96%}.chat-compose-row input{width:100%}}
.moderation-item{border:1px solid var(--line);border-radius:10px;padding:16px;margin:12px 0;overflow-wrap:anywhere}.moderation-item p{white-space:pre-wrap}.moderation-item .detail-actions{gap:8px}.moderation-item button{white-space:normal}#beta-tools{margin:12px 0;gap:8px;flex-wrap:wrap}.form-label textarea{width:100%;max-width:100%;box-sizing:border-box}#beta-tools .link-button{font-size:14px}@media(max-width:600px){.moderation-item{padding:12px}.moderation-item .link-button{width:100%;justify-content:center}#beta-tools .link-button{padding:9px 10px}}

.community-rooms button>span{flex:1;min-width:0}.room-unread{flex:none;background:#b73935;color:#fff;min-width:24px;height:24px;border-radius:999px;padding:0 6px;display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-variant-numeric:tabular-nums}.room-unread[hidden]{display:none}#community-name-status{display:block;font-size:11px;line-height:1.5;max-width:300px;margin-top:5px;color:var(--muted)}#community-unread-status{font-size:12px;line-height:1.4;margin:0 0 8px}.community-rooms button.selected .room-unread{background:#fff;color:#174638}

/* Keep the two composer controls aligned; status text sits below their row. */
#chat-form>.chat-compose-row:first-child{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:16px}
#chat-form>.chat-compose-row:first-child label{min-width:0;margin:0;display:grid;grid-template-rows:auto 44px;gap:6px}
#chat-form>.chat-compose-row:first-child input,#chat-form>.chat-compose-row:first-child select{height:44px;width:100%;box-sizing:border-box;margin:0}
#chat-form>#community-name-status{max-width:none;margin:8px 0 0;min-height:17px}

.chat-bubble.is-new-message{border-inline-start:3px solid var(--green)}.chat-bubble .chat-new-label{background:var(--green);color:#fff;border-radius:5px;padding:3px 7px;font-size:11px;font-weight:700;line-height:1.2}.chat-date-divider{align-self:stretch;text-align:center;position:relative;margin:12px 0 6px;font-size:12px;color:var(--muted)}.chat-date-divider time{display:inline-block;padding:5px 12px;border:1px solid var(--line);border-radius:999px;background:var(--surface,var(--paper))}.chat-bubble>div>time{font-variant-numeric:tabular-nums;white-space:nowrap;font-size:12px}
