[hidden] { display: none !important; }
.chat-shell { width: min(840px, calc(100% - 32px)); padding-top: 24px; }
.top-nav { display: flex; justify-content: space-between; gap: 16px; font-size: .85rem; margin-bottom: 36px; }
.chat-header h1 { font-size: clamp(2rem, 6vw, 3rem); line-height: 1.25; }
.chat-header { margin-bottom: 16px; }
.room-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.room-tags > span { padding: 5px 11px; background: #e1ecde; border: 1px solid #ccdcca; border-radius: 99px; color: #426349; font-size: .8rem; }
.subtle { color: #52695f; margin: 6px 0 16px; }
.status-line { min-height: 1.6em; font-size: .9rem; color: #4c645e; }
.status-line.error, .error-text { color: #a1332e; }
.notice-box { padding: 16px 18px; border: 1px solid #eadfc5; border-radius: 12px; background: #fffcf1; color: #685c3b; font-size: .9rem; }
.notice-box p { margin: 6px 0; }
.notice-box.compact { margin-bottom: 16px; padding: 10px 15px; font-size: .83rem; }
.policy-detail { margin: 22px 0; }
summary { font-weight: 750; cursor: pointer; padding: 6px 0; }
.policy-list { display: grid; grid-template-columns: 90px 1fr; margin: 12px 0; gap: 12px; font-size: .87rem; }
.policy-list dt { font-weight: 750; }
.policy-list dd { margin: 0; }
.small-text { font-size: .8rem; color: #5c7167; }
.optional { font-size: .75rem; font-weight: normal; color: #647769; margin-left: 5px; }
.consent-list { border: 0; margin: 20px 0; padding: 0; }
.consent-list legend { font-size: .86rem; font-weight: 750; }
.check-row { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0; font-weight: 400; cursor: pointer; }
.check-row input { flex: 0 0 19px; width: 19px; height: 19px; padding: 0; margin: 3px 0 0; accent-color: #17624f; }
.check-row span { min-width: 0; }
.check-row strong { font-size: .91rem; }
.check-row small { display: block; margin-top: 5px; color: #607267; line-height: 1.55; font-size: .8rem; }
.room-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 28px 0 12px; }
.room-heading h2 { margin: 0; font-size: 1.3rem; }
.room-heading p { margin: 3px 0; font-size: .86rem; }
.secondary { background: #e3ece5; color: #27513d; }
.secondary:hover { background: #d1e0d4; }
.small-button { padding: 8px 14px; font-size: .84rem; }
.danger { background: #914038; font-size: .86rem; }
.danger:hover { background: #78362f; }
.messages { max-height: 560px; min-height: 240px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; padding: 20px; border: 1px solid #d4dfda; border-radius: 18px; background: #eaf0e9; overscroll-behavior: contain; }
.message { width: fit-content; max-width: 90%; padding: 13px 16px; border-radius: 14px 14px 14px 3px; background: #fff; border: 1px solid #d6e1d6; }
.message.mine { align-self: flex-end; border-radius: 14px 14px 3px 14px; background: #dbe9d6; border-color: #bed1b7; }
.message-meta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; font-size: .72rem; color: #5a7365; }
.message-meta strong { font-size: .82rem; color: #274d3d; }
.message-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 7px 0; font-size: .95rem; }
.message-actions { text-align: right; }
.report-reason { display: inline-block; width: auto; max-width: 140px; font-size: .7rem; padding: 2px 4px; margin-right: 6px; border: 0; background: transparent; color: #667a6c; }
.text-button { font-size: .72rem; background: transparent; color: #667a6c; padding: 2px 4px; border-radius: 4px; font-weight: 500; }
.text-button:hover { background: #e8eee5; color: #31533e; }
.empty-chat { margin: auto; text-align: center; max-width: 360px; color: #5a7160; }
.empty-chat strong { display: block; margin-bottom: 8px; color: #315840; font-size: 1.1rem; }
.composer { margin-top: 14px; }
.composer > label { margin-top: 0; }
.composer-meta { display: flex; gap: 12px; justify-content: space-between; align-items: baseline; }
.composer-meta .check-row { font-size: .77rem; margin: 9px 0 0; }
#char-count { white-space: nowrap; font-size: .75rem; color: #637667; }
select { display: block; width: 100%; border: 1px solid #b9c9c3; border-radius: 10px; padding: 10px; background: #fbfdfc; color: inherit; font: inherit; }
hr { border: 0; border-top: 1px solid #dce4dc; margin: 24px 0; }
.spaced-heading { margin-top: 26px; }
.request-card, .moderation-card { border: 1px solid #d5e0d5; border-radius: 12px; padding: 16px; margin: 14px 0; overflow-wrap: anywhere; }
.request-card p, .moderation-card p { white-space: pre-wrap; margin: 8px 0; }
.request-card .reply { padding: 10px; background: #eaf1e6; border-radius: 8px; }
.mod-grid { display: grid; gap: 20px; }
.mod-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.mod-counts { display: flex; flex-wrap: wrap; gap: 9px; }
.mod-counts span { border-radius: 8px; padding: 7px 10px; background: #edf2e9; font-size: .8rem; }
.record-table { width: 100%; border-collapse: collapse; font-size: .76rem; }
.record-table th, .record-table td { text-align: left; padding: 9px 7px; border-bottom: 1px solid #dce4db; vertical-align: top; overflow-wrap: anywhere; }
.table-scroll { overflow-x: auto; }
.receipt { white-space: pre-wrap; overflow-wrap: anywhere; padding: 14px; background: #eff4ea; border-radius: 10px; font-size: .84rem; }
.privacy-prose h2 { font-size: 1.15rem; margin-top: 28px; }
.privacy-prose p, .privacy-prose li { font-size: .9rem; }
@media (max-width: 600px) {
  .chat-shell { padding-top: 18px; }
  .top-nav { font-size: .77rem; margin-bottom: 25px; }
  .policy-list { grid-template-columns: 1fr; gap: 4px; }
  .policy-list dd { margin-bottom: 12px; }
  .messages { padding: 13px; max-height: 52vh; }
  .message { max-width: 96%; }
  .community-invite { padding: 22px; }
  .composer-meta { align-items: flex-start; }
  .room-heading .small-button { flex-shrink: 0; }
}
