/* Growing, readable composers for direct chat and room chat. */
.message-compose,.forum-compose{align-items:flex-end!important}
.message-compose>textarea,.forum-compose>textarea{
  flex:1 1 0;
  min-width:0;
  width:100%;
  min-height:44px!important;
  max-height:340px;
  margin:0;
  padding:11px 15px;
  border:1px solid var(--line);
  border-radius:22px;
  background:var(--canvas);
  color:var(--ink);
  font:inherit;
  font-size:13px;
  line-height:1.55;
  resize:none;
  overflow-y:auto;
  overscroll-behavior:contain;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  scrollbar-width:thin;
}
.message-compose>textarea:focus,.forum-compose>textarea:focus{
  outline:0;
  border-color:var(--accent)!important;
  box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 9%,transparent)!important;
}
.message-compose>textarea::placeholder,.forum-compose>textarea::placeholder{color:var(--muted);opacity:.9}
.message-compose>textarea.is-multiline,.forum-compose>textarea.is-multiline{border-radius:16px}
.message-compose .chat-compose-actions,.forum-compose .chat-compose-actions{align-self:flex-end}
.message-compose .btn-primary,.forum-compose .btn-primary{align-self:flex-end}
@media(max-width:640px){
  .message-compose>textarea,.forum-compose>textarea{
    min-height:42px!important;
    max-height:min(380px,46dvh)!important;
    padding:9px 13px;
    font-size:15px;
    border-radius:20px;
  }
  .message-compose>textarea.is-multiline,.forum-compose>textarea.is-multiline{border-radius:15px}
}

/* Apply after the input is moved into the shared composer pill as well. */
.has-active-chat :is(.message-compose,.forum-compose) textarea[data-auto-grow]{box-sizing:border-box!important;min-height:44px!important;max-height:var(--composer-max-height,min(240px,28dvh))!important;resize:none;transition:border-color .18s,box-shadow .18s!important;font-size:16px!important}
.has-active-chat :is(.message-stream,.forum-message-list){scroll-behavior:auto!important}
.has-active-chat :is(.conversation-page,.community-room-page).reveal{opacity:1!important;transform:none!important;animation:none!important;transition:none!important}
