/* v5.4.1.3 — compositor do Chat inspirado no fluxo do WhatsApp */
.chat-composer-v520{padding:8px 10px calc(8px + env(safe-area-inset-bottom,0px))!important;background:linear-gradient(180deg,color-mix(in srgb,var(--chat-head) 96%,transparent),var(--chat-head))!important;border-top:1px solid color-mix(in srgb,var(--chat-border) 86%,transparent)!important}
.chat-compose-row-v5412{position:relative!important;display:grid!important;grid-template-columns:minmax(0,1fr) 48px!important;gap:8px!important;align-items:end!important}
.chat-compose-shell-v5412{min-width:0;min-height:48px;display:grid;grid-template-columns:38px 38px 40px minmax(0,1fr);align-items:end;gap:1px;padding:4px 5px;border:1px solid color-mix(in srgb,var(--chat-border) 88%,transparent);border-radius:25px;background:color-mix(in srgb,var(--chat-surface) 96%,var(--chat-head));box-shadow:0 4px 18px rgba(0,0,0,.08)}
.chat-compose-shell-v5412 .chat-tool-btn,.chat-compose-shell-v5412 .chat-portal-open,.chat-compose-shell-v5412 .chat-math-open{width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;border:0!important;border-radius:50%!important;background:transparent!important;color:var(--chat-muted)!important;box-shadow:none!important;display:grid!important;place-items:center!important;padding:0!important}
.chat-compose-shell-v5412 .chat-tool-btn:hover,.chat-compose-shell-v5412 .chat-portal-open:hover,.chat-compose-shell-v5412 .chat-math-open:hover{background:color-mix(in srgb,var(--chat-accent-2) 10%,transparent)!important;color:var(--chat-accent-2)!important}
.chat-compose-shell-v5412 .chat-math-open span{display:none!important}.chat-compose-shell-v5412 .chat-math-open b{font-size:1.02rem!important}.chat-compose-shell-v5412 textarea{width:100%!important;min-height:38px!important;max-height:112px!important;padding:9px 8px 8px 5px!important;border:0!important;background:transparent!important;color:var(--chat-text)!important;box-shadow:none!important;resize:none!important;line-height:1.35!important;border-radius:0!important;outline:none!important}
.chat-compose-shell-v5412 textarea::placeholder{color:color-mix(in srgb,var(--chat-muted) 86%,transparent)!important}.chat-compose-shell-v5412 textarea:focus{border:0!important;box-shadow:none!important;outline:none!important}
.chat-audio-recorder{display:contents!important}.chat-audio-btn,.chat-send-v5412{grid-column:2;grid-row:1;width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important;border-radius:50%!important;border:0!important;display:grid!important;place-items:center!important;padding:0!important;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.chat-audio-btn{background:var(--chat-accent-2)!important;color:#fff!important;font-size:1.2rem!important;box-shadow:0 5px 16px color-mix(in srgb,var(--chat-accent-2) 28%,transparent)!important;cursor:pointer}.chat-audio-btn>span{pointer-events:none}.chat-send-v5412{background:var(--chat-accent-2)!important;color:#fff!important;box-shadow:0 5px 16px color-mix(in srgb,var(--chat-accent-2) 28%,transparent)!important;opacity:0!important;pointer-events:none!important;transform:scale(.72) rotate(-8deg);transition:opacity .14s ease,transform .14s ease!important}.chat-has-sendable:not(.chat-recording) .chat-send-v5412{opacity:1!important;pointer-events:auto!important;transform:scale(1) rotate(0)}.chat-has-sendable:not(.chat-recording) .chat-audio-btn{opacity:0!important;pointer-events:none!important;transform:scale(.72)}
.chat-audio-btn.recording{opacity:1!important;pointer-events:auto!important;transform:scale(1)!important;background:#d84a5d!important;animation:pjsHoldAudioPulse 1.05s ease-in-out infinite!important}.chat-recording .chat-compose-shell-v5412{color:var(--chat-text);padding-left:15px;grid-template-columns:1fr}.chat-recording .chat-compose-shell-v5412>*{visibility:hidden}.chat-recording .chat-send-v5412{opacity:0!important;pointer-events:none!important}
.chat-audio-status{position:absolute!important;z-index:7;left:0;right:56px;bottom:0;height:48px!important;min-height:48px!important;margin:0!important;padding:0 13px!important;display:grid!important;grid-template-columns:10px minmax(0,1fr) 34px;align-items:center;gap:8px;border-radius:25px!important;background:color-mix(in srgb,var(--chat-surface) 97%,var(--chat-head))!important;border:1px solid color-mix(in srgb,var(--chat-border) 88%,transparent)!important;color:var(--chat-text)!important;box-shadow:0 4px 18px rgba(0,0,0,.08)!important}.chat-audio-status.hidden{display:none!important}.chat-record-dot{width:9px;height:9px;border-radius:50%;background:#d84a5d;animation:pjsRecordDot .9s ease-in-out infinite}.chat-audio-status [data-audio-status-text]{font-size:.76rem;font-weight:850;letter-spacing:.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-audio-status [data-audio-clear]{width:32px;height:32px;border:0!important;border-radius:50%!important;background:transparent!important;color:var(--chat-muted)!important;font-size:1.28rem!important;display:grid;place-items:center;cursor:pointer}.chat-audio-status [data-audio-clear]:hover{background:rgba(216,74,93,.1)!important;color:#d84a5d!important}
.chat-file-chip,.chat-reply-draft,.chat-portal-drafts,.chat-math-drafts{border-radius:13px!important}.comm-attachment-block.is-audio .comm-attachment{display:none!important}.comm-audio-card audio::-webkit-media-controls-enclosure{border-radius:999px}
@keyframes pjsHoldAudioPulse{0%,100%{box-shadow:0 0 0 0 rgba(216,74,93,.18)}50%{box-shadow:0 0 0 8px rgba(216,74,93,.13)}}@keyframes pjsRecordDot{0%,100%{opacity:1}50%{opacity:.32}}
@media(max-width:900px){.chat-composer-v520{padding:7px 8px calc(7px + env(safe-area-inset-bottom,0px))!important}.chat-compose-row-v5412{grid-template-columns:minmax(0,1fr) 46px!important;gap:7px!important}.chat-compose-shell-v5412{min-height:46px;grid-template-columns:36px 36px 38px minmax(0,1fr);border-radius:23px;padding:4px}.chat-compose-shell-v5412 .chat-tool-btn,.chat-compose-shell-v5412 .chat-portal-open,.chat-compose-shell-v5412 .chat-math-open{width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important}.chat-audio-btn,.chat-send-v5412{width:46px!important;height:46px!important;min-width:46px!important;min-height:46px!important}.chat-audio-status{right:53px;height:46px!important;min-height:46px!important;border-radius:23px!important}.chat-compose-shell-v5412 textarea{min-height:36px!important;padding:8px 6px 7px 4px!important}}
@media(max-width:430px){.chat-compose-shell-v5412{grid-template-columns:34px 34px 36px minmax(0,1fr)}.chat-compose-shell-v5412 .chat-tool-btn,.chat-compose-shell-v5412 .chat-portal-open,.chat-compose-shell-v5412 .chat-math-open{width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important}.chat-compose-shell-v5412 textarea{font-size:16px!important}.chat-audio-status [data-audio-status-text]{font-size:.7rem}}


/* v5.4.1.3 — hotfix mobile: impede CSS legado de reabrir o compositor em 6 colunas */
.chat-composer-v520 .chat-compose-row-v517.chat-compose-row-v5412,
.portal-chat-page-v517.chat-focus .chat-composer-v520 .chat-compose-row-v517.chat-compose-row-v5412,
.comm-chat-panel-v517 .chat-composer-v520 .chat-compose-row-v517.chat-compose-row-v5412{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 48px!important;
  grid-template-rows:auto!important;
  gap:8px!important;
  align-items:end!important;
  width:100%!important;
  min-width:0!important;
}
.chat-compose-shell-v5412{
  grid-column:1!important;
  grid-row:1!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
.chat-compose-shell-v5412>.chat-portal-picker,
.chat-compose-shell-v5412>.chat-math-launcher{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  display:block!important;
  position:relative!important;
}
.chat-compose-shell-v5412 textarea{
  min-width:0!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}
.chat-compose-row-v5412>.chat-audio-recorder,
.chat-compose-row-v5412>.chat-send-v5412{
  grid-column:2!important;
  grid-row:1!important;
}
.chat-compose-row-v5412 .chat-audio-status{
  max-width:calc(100% - 56px)!important;
  box-sizing:border-box!important;
}

@media(max-width:900px){
  .chat-composer-v520 .chat-compose-row-v517.chat-compose-row-v5412,
  .portal-chat-page-v517.chat-focus .chat-composer-v520 .chat-compose-row-v517.chat-compose-row-v5412,
  .comm-chat-panel-v517 .chat-composer-v520 .chat-compose-row-v517.chat-compose-row-v5412{
    grid-template-columns:minmax(0,1fr) 46px!important;
    gap:7px!important;
  }
  .chat-compose-shell-v5412{
    grid-template-columns:36px 36px 38px minmax(0,1fr)!important;
    gap:1px!important;
  }
  .chat-compose-shell-v5412>.chat-portal-picker,
  .chat-compose-shell-v5412>.chat-math-launcher{
    min-width:0!important;
  }
}

@media(max-width:430px){
  .chat-composer-v520{padding-left:6px!important;padding-right:6px!important}
  .chat-composer-v520 .chat-compose-row-v517.chat-compose-row-v5412,
  .portal-chat-page-v517.chat-focus .chat-composer-v520 .chat-compose-row-v517.chat-compose-row-v5412,
  .comm-chat-panel-v517 .chat-composer-v520 .chat-compose-row-v517.chat-compose-row-v5412{
    grid-template-columns:minmax(0,1fr) 44px!important;
    gap:6px!important;
  }
  .chat-compose-shell-v5412{
    min-height:44px!important;
    grid-template-columns:32px 32px 34px minmax(0,1fr)!important;
    gap:1px!important;
    padding:4px!important;
    border-radius:22px!important;
  }
  .chat-compose-shell-v5412 .chat-tool-btn,
  .chat-compose-shell-v5412 .chat-portal-open,
  .chat-compose-shell-v5412 .chat-math-open{
    width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;
  }
  .chat-compose-shell-v5412 .chat-math-open{width:34px!important;min-width:34px!important}
  .chat-compose-shell-v5412 textarea{
    min-height:34px!important;
    height:34px;
    padding:7px 4px 6px 3px!important;
    font-size:16px!important;
  }
  .chat-audio-btn,.chat-send-v5412{
    width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;
  }
  .chat-audio-status{
    right:50px!important;
    height:44px!important;min-height:44px!important;
    max-width:calc(100% - 50px)!important;
    padding:0 10px!important;
    grid-template-columns:9px minmax(0,1fr) 30px!important;
    gap:6px!important;
  }
}

@media(max-width:350px){
  .chat-composer-v520{padding-left:4px!important;padding-right:4px!important}
  .chat-composer-v520 .chat-compose-row-v517.chat-compose-row-v5412,
  .portal-chat-page-v517.chat-focus .chat-composer-v520 .chat-compose-row-v517.chat-compose-row-v5412,
  .comm-chat-panel-v517 .chat-composer-v520 .chat-compose-row-v517.chat-compose-row-v5412{
    grid-template-columns:minmax(0,1fr) 42px!important;
    gap:5px!important;
  }
  .chat-compose-shell-v5412{grid-template-columns:30px 30px 32px minmax(0,1fr)!important;padding:3px!important}
  .chat-compose-shell-v5412 .chat-tool-btn,
  .chat-compose-shell-v5412 .chat-portal-open,
  .chat-compose-shell-v5412 .chat-math-open{
    width:30px!important;height:32px!important;min-width:30px!important;min-height:32px!important;
  }
  .chat-compose-shell-v5412 .chat-math-open{width:32px!important;min-width:32px!important}
  .chat-audio-btn,.chat-send-v5412{width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important}
  .chat-audio-status{right:47px!important;height:42px!important;min-height:42px!important;max-width:calc(100% - 47px)!important}
}
