/* Room conversations: a warm, lively stage for the people in the room. */
body.has-active-chat .forum-chat{
  --room-stage:#f2eee6;
  --room-paper:#fffdf9;
  --room-paper-mine:#f7dfc9;
  --room-ink:#20332f;
  --room-muted:#536d65;
  --room-edge:#dccfc0;
  --room-accent:#9f4b2b;
}
html.dark body.has-active-chat .forum-chat{
  --room-stage:#102927;
  --room-paper:#1b3b37;
  --room-paper-mine:#4b3c32;
  --room-ink:#f2f8f4;
  --room-muted:#bdd1c7;
  --room-edge:#365750;
  --room-accent:#ffc18e;
}
body.has-active-chat .community-room-page .forum-chat{
  border-color:color-mix(in srgb,var(--room-accent) 25%,var(--room-edge))!important;
  box-shadow:0 20px 52px color-mix(in srgb,var(--room-stage) 22%,transparent);
}
body.has-active-chat .forum-chat .forum-chat-heading{
  background:var(--room-paper)!important;
  border-bottom:1px solid color-mix(in srgb,var(--room-accent) 22%,var(--room-edge))!important;
}
body.has-active-chat .forum-chat-heading .community-avatar{
  border:2px solid var(--room-paper)!important;
  box-shadow:0 0 0 2px color-mix(in srgb,var(--room-accent) 65%,transparent),0 4px 14px color-mix(in srgb,var(--room-accent) 20%,transparent);
}
body.has-active-chat .forum-chat .forum-room-title-row h1{color:var(--room-ink)!important;letter-spacing:-.02em!important;font-weight:800!important}
body.has-active-chat .forum-chat .forum-room-live-meta,body.has-active-chat .forum-chat .room-topic-line{color:var(--room-muted)!important}
body.has-active-chat .forum-chat .forum-member-count-button{border-radius:8px;cursor:pointer;transition:background .18s,color .18s}
body.has-active-chat .forum-chat .forum-member-count-button:hover{background:color-mix(in srgb,var(--room-accent) 12%,transparent);color:var(--room-ink)}
body.has-active-chat .forum-chat :is(.forum-member-count-button,.forum-heading-back,.room-aside-toggle,.room-options summary):focus-visible{outline:2px solid var(--room-accent);outline-offset:3px}
body.has-active-chat .forum-chat .forum-message-list{
  background-color:var(--wa-wall,var(--room-stage))!important;
  background-image:linear-gradient(color-mix(in srgb,var(--wa-wall,var(--room-stage)) 72%,transparent),color-mix(in srgb,var(--wa-wall,var(--room-stage)) 72%,transparent)),url("../images/bg/doodle-light-subtle.svg")!important;
  background-size:auto,300px 300px!important;
  background-repeat:repeat,repeat!important;
  scrollbar-color:color-mix(in srgb,var(--room-muted) 45%,transparent) transparent;
}
html.dark body.has-active-chat .forum-chat .forum-message-list{
  background-image:url("../images/bg/doodle-dark-subtle.svg")!important;
  background-size:300px 300px!important;
}
body.has-active-chat .forum-chat .forum-message-list .forum-message:not(.is-grouped){margin-top:10px!important}
body.has-active-chat .forum-chat .forum-message-list .forum-message.is-grouped{margin-top:3px!important}
body.has-active-chat .forum-chat .forum-message-list .forum-message:not(.forum-message--notice)>.forum-message-content{
  padding:9px 12px 11px!important;
  border:1px solid color-mix(in srgb,var(--room-edge) 88%,transparent)!important;
  border-radius:16px 16px 16px 6px!important;
  background:var(--room-paper)!important;
  color:var(--room-ink)!important;
  box-shadow:0 4px 14px color-mix(in srgb,var(--room-ink) 6%,transparent)!important;
}
body.has-active-chat .forum-chat .forum-message-list .forum-message.mine:not(.forum-message--notice)>.forum-message-content{
  border-radius:16px 16px 6px 16px!important;
  border-color:color-mix(in srgb,var(--room-accent) 20%,var(--room-edge))!important;
  background:var(--room-paper-mine)!important;
}
body.has-active-chat .forum-chat .forum-message-list .forum-message:not(.mine):not(.is-grouped):not(.forum-message--notice)>.forum-message-content{border-top-left-radius:16px!important}
body.has-active-chat .forum-chat .forum-message-list .forum-message.mine:not(.is-grouped):not(.forum-message--notice)>.forum-message-content{border-top-right-radius:16px!important}
body.has-active-chat .forum-chat .forum-message-list .forum-message:not(.forum-message--notice)>.forum-message-content::before{display:none!important}
body.has-active-chat .forum-chat .forum-message-list .forum-message header strong{font-size:12px!important;line-height:1.3!important;font-weight:800!important;letter-spacing:.005em}
body.has-active-chat .forum-chat .forum-message-list .forum-message header strong{color:color-mix(in srgb,var(--uc,var(--room-accent)) 50%,var(--room-ink))!important}
html.dark body.has-active-chat .forum-chat .forum-message-list .forum-message header strong{color:color-mix(in srgb,var(--uc,var(--room-accent)) 32%,var(--room-ink))!important}
body.has-active-chat .forum-chat .forum-message-list .forum-message header time{right:10px!important;bottom:7px!important;color:var(--room-muted)!important;font-size:10.5px!important}
body.has-active-chat .forum-chat .forum-message-list .forum-message-content>p{color:var(--room-ink)!important;font-size:14px!important;line-height:1.5!important;overflow-wrap:anywhere}
body.has-active-chat .forum-chat .forum-message-list .forum-message-content>blockquote{border-left-color:var(--room-accent)!important;border-radius:10px!important;background:color-mix(in srgb,var(--room-ink) 7%,transparent)!important}
body.has-active-chat .forum-chat .forum-message-list .forum-message:has(.message-sticker)>.forum-message-content{background:transparent!important;border:0!important;box-shadow:none!important;padding:0 0 18px!important}
body.has-active-chat .forum-chat .forum-message-list .forum-reaction-pill{background:var(--room-paper)!important;border:1px solid var(--room-edge)!important;color:var(--room-ink)!important;box-shadow:0 3px 10px color-mix(in srgb,var(--room-ink) 10%,transparent)}
body.has-active-chat .forum-chat .forum-day-divider span{background:color-mix(in srgb,var(--room-paper) 82%,transparent)!important;color:var(--room-muted)!important;border:1px solid color-mix(in srgb,var(--room-edge) 78%,transparent);font-weight:700!important;letter-spacing:.015em}
body.has-active-chat .forum-chat .forum-jump-latest{background:var(--room-paper)!important;color:var(--room-accent)!important;border:1px solid var(--room-edge)!important;transition:transform .18s,box-shadow .18s}
body.has-active-chat .forum-chat .forum-jump-latest:hover{transform:translateY(-2px)!important;box-shadow:0 8px 20px color-mix(in srgb,var(--room-ink) 20%,transparent)!important}
@media(max-width:640px){
  body.has-active-chat .forum-chat .forum-room-heading-meta .room-topic-line{display:none!important}
  body.has-active-chat .forum-chat .forum-room-heading-meta{row-gap:2px!important}
  body.has-active-chat .forum-chat .forum-room-live-meta{flex-wrap:nowrap!important;white-space:nowrap!important;overflow:hidden!important}
  body.has-active-chat .forum-chat .forum-message-list .forum-message:not(.forum-message--notice)>.forum-message-content{padding:8px 10px 10px!important}
  body.has-active-chat .forum-chat .forum-message-list .forum-message header time{right:8px!important;bottom:6px!important}
}
@media(prefers-reduced-motion:reduce){body.has-active-chat .forum-chat :is(.forum-member-count-button,.forum-jump-latest){transition:none}}

/* One bubble per message: earlier theme rules also styled the inner paragraph. */
body.has-active-chat .forum-chat .forum-message-list .forum-message:not(.forum-message--notice){margin-bottom:2px!important}
body.has-active-chat .forum-chat .forum-message-list .forum-message:not(.is-grouped){margin-top:6px!important}
body.has-active-chat .forum-chat .forum-message-list .forum-message.is-grouped{margin-top:2px!important}
body.has-active-chat .forum-chat .forum-message-list .forum-message:not(.forum-message--notice)>.forum-message-content{gap:1px!important;padding:5px 10px 6px!important}
body.has-active-chat .forum-chat .forum-message-list .forum-message-content>p{margin:0!important;padding:0!important;background:transparent!important;box-shadow:none!important;line-height:1.35!important}

/* Keep the room identity and member action visible while giving the conversation more room. */
body.has-active-chat .forum-chat .forum-chat-heading{min-height:56px!important;max-height:none!important;padding:5px 8px!important;gap:4px!important;align-items:center!important}
body.has-active-chat .forum-chat .forum-room-identity{gap:8px!important;align-items:center!important;min-width:0}
body.has-active-chat .forum-chat .forum-chat-heading .community-avatar{width:40px!important;height:40px!important;flex:0 0 40px!important}
body.has-active-chat .forum-chat .forum-room-heading-meta{row-gap:0!important}
body.has-active-chat .forum-chat .forum-room-heading-meta .room-topic-line{display:none!important}
body.has-active-chat .forum-chat .forum-room-title-row{flex-wrap:nowrap!important;min-width:0;gap:8px!important}
body.has-active-chat .forum-chat .forum-room-title-row h1{font-size:16px!important;line-height:1.25!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.has-active-chat .forum-chat .forum-room-live-meta{line-height:1.2!important;margin:0!important;gap:6px!important;white-space:nowrap!important;flex-wrap:nowrap!important}
body.has-active-chat .forum-chat .forum-room-live-meta .forum-connection{gap:0!important;width:7px;flex:0 0 7px;overflow:visible!important}
body.has-active-chat .forum-chat .forum-room-live-meta [data-room-connection-label]{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
body.has-active-chat .forum-chat .forum-chat-heading .forum-member-count-button{position:relative;min-height:24px!important;padding:2px 4px!important}
body.has-active-chat .forum-chat .forum-chat-heading .forum-member-count-button::before{content:'';position:absolute;left:0;right:0;top:50%;height:44px;transform:translateY(-50%)}
body.has-active-chat .forum-chat .forum-chat-heading :is(.forum-heading-back,.room-aside-toggle,.room-options summary){width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;align-items:center;justify-content:center}
/* Status ticks add noise in a shared room; the explicit failed-message retry stays visible. */
body.has-active-chat .forum-chat .forum-message .msg-ticks:not([data-state="failed"]){display:none!important}
@media(max-width:640px){body.has-active-chat .forum-chat .forum-room-title-row .room-badge-category{display:none!important}body.has-active-chat .forum-chat .forum-room-identity{gap:4px!important}body.has-active-chat .forum-chat .forum-room-title-row h1{font-size:15px!important}}


