/* We're Just Kidz — parent community */
.comm { padding-top: 20px; }
.row-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.row-btns .btn { cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.join-card { max-width: 600px; }
.rules-short { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 8px; font-size: 17px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; margin-top: 12px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--violet); }

.comm-app { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.comm-app[hidden] { display: none; }
.rooms { flex: 1 1 240px; max-width: 300px; background: #fff; border-radius: 24px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.rooms-title { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1.1; }
.you { font-size: 15px; color: var(--muted); }
.room-list { display: flex; flex-direction: column; gap: 4px; }
.room { text-align: left; background: transparent; border: 0; border-radius: 14px; padding: 10px 14px; min-height: 44px; font: 800 16px var(--body); color: var(--ink); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.room:hover { background: #F3F4FA; }
.room[aria-current="true"] { background: var(--ink); color: #fff; }
.mod-room { margin-top: 8px; border: 2px dashed #D9DCEB; }
.count:not(:empty) { background: var(--coral); color: #fff; border-radius: 999px; font-size: 13px; padding: 2px 9px; }
.rules-link { font-size: 15px; font-weight: 700; margin-top: 6px; }

.chat { flex: 999 1 560px; min-width: 0; background: #fff; border-radius: 24px; display: flex; flex-direction: column; overflow: hidden; }
.chat[hidden] { display: none; }
.chat-head { padding: 18px 22px 10px; border-bottom: 2px solid var(--line); }
.chat-head h2 { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1.1; }
.chat-head p { color: var(--muted); font-size: 15px; }
.safety { background: var(--tint-sun); font-size: 14px; padding: 8px 22px; }
.messages { height: min(60vh, 620px); min-height: 320px; overflow-y: auto; padding: 16px 22px; display: flex; flex-direction: column; gap: 10px; }
#msg-list { display: flex; flex-direction: column; gap: 12px; }
.older { align-self: center; background: none; border: 2px solid #D9DCEB; border-radius: 999px; padding: 8px 16px; font: 800 14px var(--body); cursor: pointer; min-height: 40px; }
.empty-room { color: var(--muted); text-align: center; padding: 30px 10px; }

.msg { background: #F5F6FB; border-radius: 18px 18px 18px 6px; padding: 12px 16px; max-width: 88%; align-self: flex-start; display: flex; flex-direction: column; gap: 4px; }
.msg.mine { background: var(--tint-violet); border-radius: 18px 18px 6px 18px; align-self: flex-end; }
.msg.is-hidden { opacity: .65; outline: 2px dashed var(--coral); }
.msg-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.author { font-weight: 800; font-size: 15px; }
.when { font-size: 13px; color: var(--muted); }
.badge { font-size: 12px; font-weight: 800; border-radius: 999px; padding: 2px 9px; }
.b-mentor { background: #C8F0EB; color: #075E56; }
.b-moderator { background: #FFE7A3; color: #6B4A00; }
.msg .body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 17px; line-height: 1.5; }
.hidden-note { font-size: 13px; font-weight: 800; color: #B42318; }
.msg-actions { display: flex; gap: 4px; flex-wrap: wrap; }
.act { background: none; border: 0; padding: 4px 6px; font: 700 13px var(--body); color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; min-height: 32px; }
.act:hover { color: var(--ink); }
.report-box { background: #fff; border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.report-q, .report-done { font-size: 14px; font-weight: 700; }
.reason-row { display: flex; flex-wrap: wrap; gap: 4px; }
.reason-row .act { border: 2px solid #D9DCEB; border-radius: 999px; text-decoration: none; padding: 4px 12px; color: var(--ink); }

.composer { border-top: 2px solid var(--line); padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.composer textarea { font: 600 17px var(--body); color: var(--ink); border: 2px solid #D9DCEB; border-radius: 16px; padding: 12px 14px; resize: vertical; min-height: 56px; width: 100%; }
.composer textarea:focus { outline: 3px solid var(--violet); outline-offset: 1px; border-color: var(--violet); }
.composer-row { display: flex; align-items: center; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
.composer-row .form-error { flex: 1 1 200px; }
.composer .btn { cursor: pointer; font: 800 16px var(--body); }
.chars { font-size: 13px; color: var(--muted); }

.mod-list { padding: 16px 22px; display: flex; flex-direction: column; gap: 12px; }
.mod-card { background: #F5F6FB; border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.mod-meta { font-weight: 800; font-size: 15px; }
.mod-reasons { font-size: 14px; color: #B42318; font-weight: 700; }
.mod-card .body { white-space: pre-wrap; overflow-wrap: anywhere; background: #fff; border-radius: 12px; padding: 10px 12px; }
.mod-tools { margin: 0 22px 22px; background: #F5F6FB; }

@media (max-width: 720px) {
  .rooms { max-width: none; flex-basis: 100%; padding: 14px; }
  .room-list { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .room { white-space: nowrap; flex: none; border: 2px solid #D9DCEB; border-radius: 999px; }
  .rooms-title { font-size: 24px; }
  .messages { height: 55vh; padding: 12px 14px; }
  .msg { max-width: 96%; }
  .chat-head, .safety { padding-left: 14px; padding-right: 14px; }
}
