/* Atendimento — a barra acompanha a conversa nos dois canais. */
.wa-workspace[data-wa-current-view="conversations"] .yb-chat-composer.wa-composer {
 min-height:0; flex:none; padding:10px 14px!important; box-shadow:none;
}
.wa-workspace .yb-chat-composer form[data-chat-peer] {display:grid;gap:0;margin:0}
.yb-chat-entry {
 display:flex;align-items:flex-end;gap:4px;min-width:0;padding:3px 5px;
 background:#fff;border:1px solid #cfd8d1;border-radius:24px;color:#34463c;
}
.yb-chat-entry:focus-within {border-color:#849b89}
.wa-workspace[data-wa-current-view="conversations"] .yb-chat-entry textarea,
.wa-workspace[data-wa-current-view="conversations"] #wa-reply .yb-chat-entry textarea {
 box-sizing:border-box;flex:1;min-width:0;width:auto;align-self:center;height:auto!important;
 min-height:32px!important;max-height:108px;field-sizing:content;padding:6px 4px;margin:0;
 border:0;border-radius:0;outline:0;box-shadow:none;background:transparent;
 font:inherit;font-size:14px;line-height:20px;color:inherit;resize:none;
}
.yb-chat-entry .yb-chat-icon,.yb-mic-bar .yb-chat-icon {
 position:relative;box-sizing:border-box;display:inline-grid;place-items:center;flex:none;
 width:36px;height:36px;padding:0;border:0;border-radius:50%;color:inherit;background:transparent;cursor:pointer;
}
.yb-chat-icon:hover,.yb-chat-icon:focus-within,.yb-chat-picker[open] summary {background:#eff4ed}
.yb-chat-icon:focus-visible,.yb-chat-icon:has(input:focus-visible),.yb-chat-menu label:focus-within {outline:2px solid #577b48;outline-offset:1px}
.yb-chat-icon[hidden],.yb-chat-stage:empty {display:none}
.yb-chat-entry .yb-chat-send {background:#e9f5da;color:#284b1d}
.yb-chat-glyph {display:block;width:21px;height:21px;pointer-events:none}
.yb-file-input {position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}
.yb-chat-picker {position:relative;flex:none}
.yb-chat-picker summary {list-style:none}
.yb-chat-picker summary::-webkit-details-marker {display:none}
.yb-chat-menu {position:absolute;z-index:4;left:0;bottom:calc(100% + 8px);min-width:152px;padding:4px;background:#fff;border:1px solid #d6dfd7;border-radius:12px;box-shadow:0 4px 18px #15251b1c}
.yb-chat-menu label {position:relative;display:block;padding:9px 12px;font-size:13px;cursor:pointer;border-radius:8px}
.yb-chat-menu label:hover {background:#eff4ed}
.yb-chat-stage {display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-width:0;padding:2px 6px 7px;font-size:12px;overflow-wrap:anywhere}
.wa-workspace .wa-chat-header .wa-chat-identity {flex:1;min-width:0}
.wa-workspace .yb-chat-avatar {width:34px;height:34px;flex:none;object-fit:cover;border-radius:50%}
.wa-workspace .wa-channel-head>img:first-child {width:14px;height:14px;object-fit:contain;flex:none}
.wa-workspace .wa-message img.yb-chat-photo {display:block;max-width:min(230px,100%);height:auto;max-height:250px;object-fit:contain;border-radius:8px}
.wa-workspace .wa-message:has(audio),.wa-workspace .wa-message:has(video) {min-width:min(240px,75%)}
.wa-workspace audio,.wa-workspace video {max-width:100%}
.wa-workspace[data-wa-current-view="conversations"] .wa-chat.is-open:has(.yb-direct) {grid-template-columns:minmax(0,1fr)}
.wa-workspace[data-wa-current-view="conversations"] .wa-chat .wa-history article.wa-message {
 min-width:0;padding:5px 10px;margin-block:3px!important;box-shadow:none;
}
.wa-workspace[data-wa-current-view="conversations"] .wa-chat .wa-history article.wa-message p {margin:0;line-height:1.45;font-size:13px}
.wa-workspace .wa-history article.wa-message p:empty {display:none}
.wa-workspace .wa-history .wa-message-meta {margin-top:1px}
.wa-workspace .wa-history .wa-message-meta time {font-size:10px}
.wa-workspace .yb-direct .wa-chat-header {justify-content:flex-start;gap:9px}
.yb-msg-author {position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
.wa-workspace .wa-chat .wa-history article.wa-message>strong:first-child {
 position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden;
}
.wa-message .yb-voice {--played:0%;display:flex;align-items:center;gap:7px;width:min(210px,48vw);padding:4px 1px;color:#344c3c}
.yb-voice-badge {display:grid;place-items:center;flex:none;width:32px;height:32px;border-radius:50%;background:#526d59;color:white}
.yb-voice-badge svg {width:17px;height:17px}
.yb-voice .yb-voice-play {display:grid;place-items:center;padding:0;border:0;background:none;color:inherit;cursor:pointer;min-width:30px;min-height:38px}
.yb-voice-play svg {width:24px;height:24px;fill:currentColor}
.yb-voice .yb-pause-path,.yb-voice.is-playing .yb-play-path {display:none}
.yb-voice.is-playing .yb-pause-path {display:block}
.yb-voice-track {min-width:0;flex:1}
.yb-voice-wave {position:relative;height:24px}
.yb-voice-wave::before {content:"";position:absolute;inset:3px 0;background:linear-gradient(to right,#28693a var(--played),#889e8d var(--played));mask:repeating-linear-gradient(90deg,#000 0 2px,transparent 2px 5px);clip-path:polygon(0 40%,12% 24%,19% 43%,32% 4%,47% 35%,60% 14%,74% 42%,87% 24%,100% 41%,100% 59%,87% 76%,74% 58%,60% 86%,47% 65%,32% 96%,19% 57%,12% 76%,0 60%)}
.yb-voice.has-wave .yb-voice-wave::before {display:none}
.yb-voice-wave canvas {width:100%;height:24px;display:block}
.yb-voice-wave input {position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.yb-voice-wave:focus-within {outline:2px solid currentColor;border-radius:3px}
.yb-voice-track small {font-size:10px;font-variant-numeric:tabular-nums}

.yb-chat-composer form.is-recording .yb-chat-entry {display:none}
.yb-chat-composer form.is-recording .yb-chat-stage {padding:0;justify-content:flex-end}
.yb-mic-bar {display:flex;align-items:center;gap:8px;width:min(100%,360px);box-sizing:border-box;padding:3px 5px;border:1px solid #cfd8d1;border-radius:24px;background:white}
.yb-mic-bar time {font-size:13px;font-variant-numeric:tabular-nums}
.yb-mic-bar canvas {flex:1;min-width:18px;height:25px}
.yb-mic-dot {width:7px;height:7px;flex:none;border-radius:50%;background:#cc4c5a}
.yb-mic-bar.is-paused .yb-mic-dot {background:#88948b}
.yb-mic-bar [data-chat-pause] {color:#ae3948}
.yb-mic-bar [data-chat-finish] {border-radius:50%;background:#24412d;color:white}
.yb-mic-bar button:disabled {opacity:.45}
