/* União Supermercados — atendimento */
.btn.primary{background:#CC302D;border-color:#CC302D;color:#fff}.btn.primary:hover{background:#B72826;border-color:#B72826}
:root{--nav-brand:#E9403C;--nav-active-bg:#FFF0EE;--nav-active-ink:#B92D2A;--nav-favorite-ink:#234775}
nav a.on{background:var(--nav-active-bg);color:var(--nav-active-ink)}nav a.on::before{background:var(--nav-brand)}
.nav-favorite.selected{color:var(--nav-favorite-ink)}
.login{background:radial-gradient(ellipse at 20% 10%,#E5EDF9,transparent 60%),var(--bg)}
.login-card{border-top:4px solid var(--brand-red);box-shadow:0 12px 40px #19375D0D}.login-card .brand{align-items:center;padding-bottom:10px}
.side{border-top:3px solid var(--nav-brand)}
.queue.live{background:var(--red-50);border-color:#F0B9B6;color:var(--tag-ink)}.queue.live .bar{background:#E9403C22}
.app:has(.conversation-view){height:100vh;height:100dvh;min-height:0}
main.conversation-view{padding:0;min-height:0;height:100vh;height:100dvh;overflow:hidden}
.inbox{height:100%;min-height:0;display:grid;grid-template-columns:360px minmax(0,1fr);background:var(--surface);font-size:14px}
.inbox-list{display:flex;flex-direction:column;min-height:0;border-right:1px solid var(--line);background:#fff;overflow:hidden}
.inbox-list-head{padding:26px 22px 16px}.inbox-title{display:flex;align-items:center;gap:10px;justify-content:space-between}.inbox-title h1{font-size:24px;letter-spacing:-.04em;margin:0;font-weight:700}
.inbox-sub{display:flex;gap:7px;align-items:center;font-size:12px;color:var(--muted);margin:6px 0 20px}.inbox-sub .dot{width:7px;height:7px;margin:0}
.inbox-search{display:flex;align-items:center;gap:9px;border:1px solid var(--line);background:var(--surface-2);border-radius:9px;padding:0 11px;height:40px}.inbox-search input{background:transparent;border:0;outline:0;width:100%;min-width:0;font-size:13px}.inbox-search:focus-within{border-color:var(--brand-blue);box-shadow:var(--focus)}
.chat-filters{display:flex;flex-wrap:wrap;gap:6px;overflow-x:visible;padding-top:13px;scrollbar-width:none}.chat-filter{cursor:pointer;white-space:nowrap;border:1px solid transparent;border-radius:20px;padding:5px 10px;background:var(--surface-2);font-size:12px;color:var(--ink-2)}.chat-filter.on{color:var(--leaf-600);background:var(--leaf-50);font-weight:600;border-color:var(--leaf-100)}
.chat-list{overflow-y:auto;min-height:0;flex:1;overscroll-behavior:contain;scrollbar-width:thin}.chat-item{display:flex;align-items:center;text-align:left;gap:12px;padding:16px 20px;background:#fff;border:0;border-bottom:1px solid var(--line-2);width:100%;cursor:pointer}.chat-item:hover{background:var(--surface-2)}.chat-item.selected{background:var(--leaf-50);box-shadow:inset 3px 0 var(--brand-blue)}.chat-item .avatar{width:46px;height:46px}.chat-item-copy{min-width:0;flex:1}.chat-item-top,.chat-item-bottom{display:flex;align-items:center;gap:8px;justify-content:space-between}.chat-item-top{margin-bottom:4px}.chat-item-name{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}.chat-item time{font-size:10.5px;color:var(--muted);flex:none}.chat-item.unread time{color:#1FA855;font-weight:600}.chat-item.typing .chat-preview-text,.chat-item.typing .chat-preview-sender{color:#1FA855;font-weight:600}.chat-item-preview{color:var(--muted);font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-item.unread .chat-item-name{font-weight:750}.chat-item.unread .chat-item-preview{color:var(--ink-2);font-weight:500}.chat-unread{min-width:19px;height:19px;display:grid;place-items:center;border-radius:10px;background:#1FA855;color:#fff;font-size:10px;font-weight:700;padding:0 5px;flex:none}.chat-filter-count{display:inline-grid;place-items:center;min-width:17px;height:17px;margin-left:6px;padding:0 5px;border-radius:9px;background:#1FA855;color:#fff;font-size:10px;font-weight:700}.chat-filter-count:empty{display:none}
.chat-list-state{padding:30px 22px;text-align:center;color:var(--muted);font-size:13px}.chat-list-state b{display:block;color:var(--ink);margin-bottom:5px}.chat-more{display:block;margin:15px auto}
.inbox-list-foot{padding:13px 18px;border-top:1px solid var(--line-2);color:var(--muted);font-size:11px;display:flex;align-items:center;justify-content:center;gap:6px;background:var(--surface-2)}
.chat-item-preview{display:flex;align-items:baseline;gap:.25em;flex:1;min-width:0}.chat-preview-sender{flex:none;max-width:48%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600;color:var(--ink-2)}.chat-preview-text{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.conversation{display:flex;flex-direction:column;min-height:0;min-width:0;background:#EFF3F9;position:relative}.inbox-welcome{margin:auto;max-width:470px;padding:40px;text-align:center}.welcome-logo{width:288px;height:94px;margin:0 auto 30px;position:relative;overflow:hidden}.welcome-logo img{position:absolute;width:360px;height:360px;left:-39px;top:-135px}.inbox-welcome h2{font-size:27px;line-height:1.25;letter-spacing:-.04em;margin:0 0 13px;font-weight:600}.inbox-welcome p{font-size:14px;color:var(--muted);line-height:1.8;margin:0}.welcome-tip{margin-top:34px;padding-top:22px;border-top:1px solid #D8E1EE;display:flex;justify-content:center;align-items:center;gap:7px;font-size:11px;color:var(--muted)}
.conversation-head{height:82px;padding:14px 25px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:12px;flex:none}.conversation-name{font-size:15px;font-weight:650;line-height:1.3}.conversation-meta{font-size:11px;color:var(--muted);margin-top:4px}.conversation-actions{display:flex;gap:9px;margin-left:auto}.conversation-back{display:none}.conversation-search{padding:10px 22px;background:#fff;border-bottom:1px solid var(--line);display:flex;gap:8px;align-items:center}.conversation-search input{flex:1;min-width:0}.chat-connection{padding:8px 20px;background:var(--tag-50);color:var(--tag-ink);font-size:12px;text-align:center;flex:none}
.message-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:22px clamp(20px,5vw,100px) 16px;background-image:radial-gradient(#B2C3DC45 .7px,transparent .7px);background-size:20px 20px}.message-stack{max-width:1100px;margin:0 auto}.chat-date{display:table;margin:16px auto 22px;padding:4px 11px;border-radius:7px;background:#FFFFFFCE;color:var(--ink-2);font-size:11px;box-shadow:0 1px 2px #1D365C09}.chat-history-note{padding:12px 20px;font-size:11px;line-height:1.6;color:#61748F;text-align:center;margin:0 auto 20px;max-width:520px;background:#FFFFFFA8;border:1px solid #DDE5F0;border-radius:8px}.chat-history-note .btn{margin-top:8px}.message-row{display:flex;justify-content:flex-start;margin:5px 0 10px;gap:8px}.message-row.own{justify-content:flex-end}.message-bubble{position:relative;max-width:min(76%,640px);min-width:110px;background:#fff;padding:10px 12px 7px;border-radius:0 10px 10px 10px;box-shadow:0 1px 2px #213E6A12;overflow-wrap:anywhere}.own .message-bubble{background:#DFEAF9;border-radius:10px 0 10px 10px}.message-sender{color:#A82D2A;font-size:11px;font-weight:650;line-height:1.5;margin-bottom:4px}.message-body{font-size:13.5px;line-height:1.6;white-space:pre-wrap}.message-body a{color:#1E589B;text-decoration:underline;text-underline-offset:2px}.message-body code{font-family:ui-monospace,monospace;font-size:12px;background:#19375D0A;padding:2px 4px;border-radius:3px;white-space:pre-wrap}.message-foot{display:flex;justify-content:flex-end;align-items:center;gap:5px;font-size:10px;color:#687D97;margin-top:4px;line-height:1.3}.message-ticks{display:flex;align-items:center;color:#7C8DA3}.message-ticks.delivered{color:#7C8DA3}.message-ticks.read{color:#216BC7}.message-ticks svg{width:14px;height:14px}.message-pending .message-bubble{opacity:.75}.message-error .message-bubble{outline:1px solid #D98E8B}.message-retry{border:0;cursor:pointer;background:none;color:var(--red);font-size:11px;padding:6px 0 0;display:flex;gap:5px;align-items:center}.message-retry:hover{text-decoration:underline}.message-deleted{font-style:italic;color:var(--muted)}.message-tools{align-self:center;display:flex;opacity:0;transition:opacity .1s;gap:2px;flex:none}.message-row:hover .message-tools,.message-row:focus-within .message-tools{opacity:1}.message-tools .icon-btn{background:#FFFFFFC9;width:28px;height:28px}.own .message-tools{order:-1}.message-reactions{display:flex;gap:4px;flex-wrap:wrap;padding-top:5px}.message-reaction{border:1px solid #CED8E6;border-radius:12px;padding:1px 7px;background:#fff;font-size:12px;cursor:pointer}
.message-quote{display:block;border:0;border-left:3px solid var(--brand-blue);background:#1C416710;border-radius:5px;padding:7px 10px;margin-bottom:7px;width:100%;text-align:left;cursor:pointer;max-width:100%}.message-quote b{display:inline;font-size:11px;color:var(--brand-blue);margin-bottom:2px}.message-quote .quote-sender-number{display:inline;font-size:11px;color:var(--ink-2);margin-left:5px;font-weight:normal}.message-quote b.quote-sender-name{display:inline}.message-quote span:not(.quote-sender-number){display:block;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ink-2)}.message-highlight{animation:chat-highlight 1.5s ease}@keyframes chat-highlight{0%,50%{outline:3px solid var(--brand-blue)}100%{outline:3px solid transparent}}
.message-media{display:block;max-width:100%;border-radius:6px;margin-bottom:5px}.message-media.image{width:280px;max-height:340px;object-fit:cover;cursor:zoom-in}.message-media.sticker{width:128px;height:128px;object-fit:contain}.message-media.audio{width:290px;height:45px;margin:4px 0;max-width:100%}.message-file{display:flex;gap:10px;align-items:center;padding:10px;background:#173D6810;border-radius:7px;color:var(--ink);text-decoration:none;min-width:190px;max-width:310px;font-size:12px}.message-file .i{color:var(--brand-blue)}.message-file span{overflow:hidden;text-overflow:ellipsis}.message-media-error{display:flex;gap:6px;align-items:center;font-size:12px;padding:14px;color:var(--muted)}.media-full{max-width:100%;max-height:65vh;object-fit:contain;display:block;margin:auto}
.chat-compose-wrap{background:transparent;border:0;flex:none;position:relative;padding:8px 10px 12px}
.chat-compose{display:flex;gap:6px;align-items:flex-end;margin:0;min-height:52px;padding:4px 10px;border-radius:28px;background:var(--surface);color:var(--ink);border:0;box-shadow:none}
.chat-compose textarea{flex:1;min-width:0;resize:none;border:0;background:transparent;border-radius:0;padding:11px 4px;max-height:140px;min-height:44px;line-height:22px;font-size:14px;font-weight:500;color:var(--ink);outline:0;scrollbar-width:thin;scrollbar-color:var(--muted) transparent}
.chat-compose textarea::placeholder{color:var(--muted);opacity:1}.chat-compose textarea:focus{border:0;background:transparent}
.chat-compose .icon-btn{width:34px;height:44px;flex:none;border-radius:50%;color:var(--ink-2);background:transparent}.chat-compose .icon-btn:hover{background:var(--leaf-50);color:var(--brand-blue)}.chat-compose .icon-btn:focus-visible{outline:2px solid var(--brand-blue);outline-offset:-2px}.chat-compose .icon-btn svg{width:22px;height:22px}
.chat-compose:focus-within{border:0;box-shadow:none}
.chat-compose textarea,.chat-compose textarea:focus,.chat-compose textarea:focus-visible{outline:0;box-shadow:none}
.compose-hint{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.compose-context{padding:10px 22px 0;display:flex;align-items:center;gap:12px;font-size:12px;color:var(--ink-2)}.compose-context .grow{min-width:0;background:var(--leaf-50);border-left:3px solid var(--brand-blue);border-radius:5px;padding:8px 12px}.compose-context b{display:block;font-size:11px;color:var(--brand-blue)}.compose-context span.ellipsis{display:block}.compose-attachment{padding:14px 22px 0;display:flex;gap:12px;align-items:center;color:var(--ink-2);font-size:12px}.compose-attachment img{height:56px;width:56px;object-fit:cover;border-radius:7px}.compose-attachment .i{color:var(--brand-blue)}.compose-attachment .grow{overflow:hidden;text-overflow:ellipsis}.emoji-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:6px}.emoji-grid button{font-size:24px;border:0;background:var(--surface-2);padding:8px;border-radius:7px;cursor:pointer}.emoji-grid button:hover{background:var(--leaf-50)}.reaction-options{display:flex;gap:8px;flex-wrap:wrap}.reaction-options button{font-size:26px;border:1px solid var(--line);border-radius:10px;padding:8px 12px;cursor:pointer;background:white}.chat-new-list{max-height:280px;overflow:auto;margin-top:18px}.chat-new-list button{width:100%;text-align:left;display:flex;gap:10px;padding:10px;border:0;border-bottom:1px solid var(--line-2);background:white;cursor:pointer}.chat-new-list button:hover{background:var(--leaf-50)}.recording-row{display:flex;align-items:center;gap:12px;padding:16px 22px}.recording-dot{width:10px;height:10px;background:var(--brand-red);border-radius:50%;animation:rec-pulse 1s infinite}.recording-row .grow{color:var(--red);font-size:13px}@keyframes rec-pulse{50%{opacity:.35}}.chat-mobile-empty{display:none}
/* ── Áudio estilo WhatsApp ── */
.wa-audio{--wa-idle:#C3CCDA;--wa-on:#216BC7;display:flex;align-items:center;gap:10px;width:min(300px,100%);min-width:240px;padding:2px 0 0}
.wa-audio.own{--wa-idle:#9DB3D1}
.wa-audio-play{flex:none;width:34px;height:34px;display:grid;place-items:center;border:0;background:none;color:#52627A;cursor:pointer;border-radius:50%;padding:0}
.wa-audio-play:hover{background:#1C416712}.wa-audio-play:focus-visible{outline:2px solid var(--wa-on);outline-offset:1px}
.wa-audio-play svg{width:22px;height:22px;fill:currentColor;stroke:currentColor}
.wa-audio-main{flex:1;min-width:0}
.wa-audio-wave{height:32px;position:relative;cursor:pointer;touch-action:none;border-radius:6px}
.wa-audio-wave:focus-visible{outline:2px solid var(--wa-on);outline-offset:2px}
.wa-audio-wave canvas{display:block;width:100%;height:100%}
.wa-audio-meta{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#687D97;margin-top:1px;padding-left:2px;font-variant-numeric:tabular-nums}
.wa-audio-speed{border:0;border-radius:10px;background:#1C416714;color:#3C5170;font-size:10.5px;font-weight:700;padding:1px 7px;cursor:pointer}
.wa-audio-avatar{position:relative;flex:none;width:40px;height:40px}
.wa-audio-avatar .avatar{width:40px;height:40px}
.wa-audio-mic{position:absolute;right:-5px;bottom:-3px;width:19px;height:19px;color:#8696A9;filter:drop-shadow(0 0 1.5px #fff) drop-shadow(0 0 1px #fff)}
.wa-audio-mic svg{width:19px;height:19px}
.wa-audio.own .wa-audio-mic,.wa-audio.played .wa-audio-mic{color:#2B7BE0}
/* ── Envio do áudio: carregamento ── */
.wa-audio-play{position:relative}
.wa-audio-play:disabled{cursor:default}.wa-audio-play:disabled:hover{background:none}
.wa-audio-play svg.wa-ring{width:34px;height:34px;fill:none;stroke:none;display:block}
.wa-ring circle{fill:none;stroke-width:3}
.wa-ring .bg{stroke:#C3CCDA}
.wa-ring .fg{stroke:#216BC7;stroke-linecap:round;stroke-dasharray:94.25;transform:rotate(-90deg);transform-origin:50% 50%;transition:stroke-dashoffset .2s linear}
.wa-ring.spin{animation:wa-spin .9s linear infinite}
@keyframes wa-spin{to{transform:rotate(360deg)}}
.wa-audio-play .wa-ring-x,.wa-audio-play .wa-retry{position:absolute;inset:0;display:none;place-items:center;color:#52627A;pointer-events:none}
.wa-audio-play .wa-ring-x svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2.6}
.wa-audio-play .wa-retry svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2}
.wa-audio.pending[data-phase=uploading] .wa-ring-x{display:grid}
.wa-audio.pending[data-phase=failed] .wa-ring{display:none}
.wa-audio.pending[data-phase=failed] .wa-retry{display:grid;color:#CC302D}
.wa-audio-right{display:flex;align-items:center;gap:8px;min-width:0}
.wa-audio-state{font-size:10.5px;color:#687D97;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:150px}
.wa-audio.failed .wa-audio-state,.wa-audio[data-phase=failed] .wa-audio-state{color:#CC302D}
.wa-audio-link{border:0;background:none;color:#216BC7;font-size:10.5px;font-weight:600;cursor:pointer;padding:0}.wa-audio-link:hover{text-decoration:underline}.wa-audio-link[hidden]{display:none}
.wa-audio.busy .wa-audio-play{cursor:default}
.message-row[data-local] .message-bubble{opacity:1}
/* ── Gravação: ondas ao vivo ── */
.recording-row{gap:10px;padding:12px 16px}
.recording-row .rec-cancel{flex:none;width:40px;height:40px;color:var(--muted)}.recording-row .rec-cancel:hover{color:#CC302D}
.rec-time{font-size:13px;font-variant-numeric:tabular-nums;color:var(--ink-2);min-width:34px}
.rec-wave{flex:1;min-width:0;height:36px;display:block}
.rec-send{flex:none;width:44px;height:44px;display:grid;place-items:center;border:0;border-radius:50%;background:#CC302D;color:#fff;cursor:pointer}.rec-send:hover{background:#B72826}
@media(min-width:1800px){.inbox{grid-template-columns:400px minmax(0,1fr)}}
/* celular: com uma conversa aberta a tela é toda dela (como no WhatsApp); a barra de topo volta ao tocar na seta */
@media(max-width:650px){.app:has(.inbox.chat-open) .topbar{display:none}.app:has(.inbox.chat-open){grid-template-rows:minmax(0,1fr)}}
@media(max-width:1100px){.inbox{grid-template-columns:310px minmax(0,1fr)}.message-scroll{padding-left:18px;padding-right:18px}.message-bubble{max-width:86%}.conversation-head{padding:14px 18px}}
@media(max-width:820px){.app:has(.conversation-view){grid-template-rows:auto minmax(0,1fr)}main.conversation-view{height:100%;min-height:0}.inbox{grid-template-columns:300px minmax(0,1fr)}.inbox-list-head{padding:18px 15px 14px}.inbox-title h1{font-size:21px}.chat-item{padding:14px}.message-tools{opacity:1}.message-tools .icon-btn{width:24px;height:24px}.message-bubble{max-width:82%}.conversation-actions{gap:0}.conversation-head{padding:12px;height:72px}}

/* ── Presença: digitando / gravando áudio ── */
.conversation-meta.typing{color:#1FA855;font-weight:600}
.conversation-meta.recording{color:#1FA855;font-weight:600}
.presence-indicator{display:inline-flex;align-items:center;gap:2.5px;margin-right:4px;vertical-align:middle}
.presence-indicator span{display:inline-block;width:3.5px;height:3.5px;border-radius:50%;background:currentColor;animation:pres-dot 1.2s ease-in-out infinite}
.presence-indicator span:nth-child(2){animation-delay:.2s}
.presence-indicator span:nth-child(3){animation-delay:.4s}
@keyframes pres-dot{0%,100%{transform:translateY(0);opacity:.3}45%{transform:translateY(-3px);opacity:1}}
.presence-indicator.recording span{width:3px;height:4px;border-radius:2px;animation:pres-wave .7s ease-in-out infinite}
.presence-indicator.recording span:nth-child(1){animation-delay:.0s}
.presence-indicator.recording span:nth-child(2){animation-delay:.15s;height:7px}
.presence-indicator.recording span:nth-child(3){animation-delay:.3s}
@keyframes pres-wave{0%,100%{transform:scaleY(1)}50%{transform:scaleY(1.9)}}

/* ── Divisor de mensagens não lidas ── */
.unread-divider{display:flex;align-items:center;gap:10px;margin:14px 0 10px;user-select:none}
.unread-divider::before,.unread-divider::after{content:'';flex:1;height:1px;background:#CC302D40}
.unread-divider span{flex:none;font-size:10.5px;font-weight:600;color:#CC302D;background:#FFEAEA;border:1px solid #F5C0C0;border-radius:12px;padding:3px 10px;white-space:nowrap}
@media(max-width:650px){.inbox{display:block}.inbox-list{height:100%;border-right:0}.conversation{height:100%;display:none}.inbox.chat-open .inbox-list{display:none}.inbox.chat-open .conversation{display:flex}.conversation-back{display:grid}.inbox-welcome{display:none}.message-scroll{padding:12px 12px 16px}.message-bubble{max-width:80%}.message-tools{flex-direction:column}.chat-compose-wrap{padding:6px 8px 10px}.chat-compose{padding:4px 8px;gap:3px}.conversation-meta{max-width:180px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.chat-compose .icon-btn{width:28px}.message-media.image{width:230px;max-height:300px}.message-media.audio{width:220px}.conversation-search{padding:10px}.chat-item .avatar{width:44px;height:44px}.inbox-list-head{padding:20px}.inbox-title h1{font-size:25px}}

/* Vídeo: capa na proporção original e controles completos após tocar em play. */
.wa-video{position:relative;width:280px;max-width:100%;aspect-ratio:4/3;overflow:hidden;border-radius:7px;background:#191D20;margin-bottom:5px;isolation:isolate}
.wa-video video{display:block;width:100%;height:100%;object-fit:contain;background:transparent}
.wa-video-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:56px;height:56px;border:0;border-radius:50%;background:#15191B85;color:white;cursor:pointer;box-shadow:0 1px 8px #0003}.wa-video-play:hover{background:#15191BBF}.wa-video-play svg{width:25px;height:25px;fill:currentColor;stroke:none;margin-left:3px}
.wa-video-play:focus-visible,.wa-video-retry:focus-visible{outline:3px solid #8AD5C4;outline-offset:-3px}
.wa-video-meta{position:absolute;bottom:0;left:0;right:0;display:flex;align-items:center;gap:5px;padding:25px 9px 8px;background:linear-gradient(transparent,#000A);color:#fff;font-size:12px;line-height:16px;pointer-events:none;font-variant-numeric:tabular-nums}.wa-video-meta svg{width:15px;height:15px}
.wa-video-retry{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:6px;padding:16px;background:#15191BD9;color:#fff;border:0;font:inherit;font-size:12px;cursor:pointer}
.wa-video [hidden]{display:none}

/* A mídia define a largura do balão; a legenda acompanha os mesmos limites. */
.message-bubble.video-bubble{width:calc(var(--video-width,280px) + 24px);min-width:0;flex:none}
.video-bubble .message-content,.video-bubble .message-body{min-width:0;max-width:100%;overflow-wrap:anywhere}
.message-status{padding:9px 10px;margin-bottom:5px;background:var(--surface-2);border-left:3px solid var(--brand-blue);border-radius:5px;font-size:12px;line-height:1.5}
.message-status b{display:block;color:var(--ink);font-weight:600}.message-status span{display:block;color:var(--muted);font-size:11px}

/* Remetentes de grupos: foto ao lado do balão, preservando as iniciais como alternativa. */
.message-avatar{flex:none;align-self:flex-start;margin-top:2px;width:30px;height:30px}
.message-avatar .avatar{width:30px;height:30px;font-size:10px}
.group-message .message-bubble{max-width:min(76%,calc(100% - 104px))}
.chat-preview-ticks{display:inline-flex;align-self:center;flex:none;margin-right:2px;line-height:1}
.chat-preview-ticks svg{width:17px;height:17px;stroke-width:1.8}
.message-ticks.failed{color:var(--red)}
@media(max-width:650px){.group-message .message-bubble{max-width:min(80%,calc(100% - 72px))}}

/* ── Notificações de novas mensagens (canto superior direito) ── */
#notifyRoot{position:fixed;top:70px;right:14px;display:flex;flex-direction:column;gap:10px;z-index:97;pointer-events:none;max-width:calc(100vw - 28px)}
.nf{pointer-events:auto;width:352px;background:var(--surface);border:1px solid var(--line-2);border-radius:14px;box-shadow:0 12px 36px rgba(15,25,45,.20);overflow:hidden;cursor:pointer;animation:nf-in .5s cubic-bezier(.2,1.15,.32,1) both;transition:box-shadow .2s}
.nf:hover{box-shadow:0 14px 40px rgba(15,25,45,.26)}
@keyframes nf-in{from{transform:translateX(calc(100% + 28px)) scale(.96);opacity:0}to{transform:none;opacity:1}}
.nf.out{animation:nf-out .26s ease both}
@keyframes nf-out{to{transform:translateX(48px) scale(.96);opacity:0}}
.nf-body{padding:11px 12px 12px}
.nf-head{display:flex;align-items:center;gap:10px;animation:nf-row-in .45s .06s cubic-bezier(.2,.9,.3,1) both}
.nf-avatar{flex:none;width:38px;height:38px}
.nf-avatar .avatar{width:38px;height:38px}
.nf-head-copy{min-width:0;flex:1;display:flex;flex-direction:column;gap:1px}
.nf-name{font-size:13.5px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nf-head time{font-size:10.5px;color:var(--muted)}
.nf-count{min-width:18px;height:18px;display:grid;place-items:center;padding:0 5px;border-radius:9px;background:#1FA855;color:#fff;font-size:10px;font-weight:700}
.nf-count[hidden]{display:none}
.nf-x{flex:none;width:26px;height:26px;display:grid;place-items:center;border:0;border-radius:8px;background:transparent;color:var(--muted);cursor:pointer}
.nf-x:hover{background:var(--surface-2);color:var(--ink)}
.nf-list{display:flex;flex-direction:column;margin-top:9px;border-top:1px solid var(--line-2);padding-top:4px}
.nf-row{display:flex;align-items:center;gap:8px;width:100%;border:0;background:transparent;padding:5px 2px;text-align:left;font:inherit;cursor:pointer;border-radius:8px}
.nf-row:hover{background:var(--surface-2)}
.nf-row-in{animation:nf-row-in .45s cubic-bezier(.2,.9,.3,1.05) both}
@keyframes nf-row-in{from{transform:translateX(-18px);opacity:0}to{transform:none;opacity:1}}
.nf-row .avatar{width:26px;height:26px;flex:none}
.nf-row-copy{min-width:0;flex:1;display:flex;align-items:baseline;gap:5px;overflow:hidden}
.nf-row-copy b{font-size:11px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:44%}
.nf-row-text{font-size:12px;color:var(--ink-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:flex;align-items:center}
.nf-row-text .i{width:12px;height:12px;flex:none;margin-right:3px}
.nf-thumb{position:relative;flex:none;width:38px;height:38px;border-radius:8px;overflow:hidden;background:var(--surface-2)}
.nf-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.nf-thumb-play{position:absolute;inset:0;display:grid;place-items:center;background:rgba(15,25,45,.35);color:#fff}
.nf-thumb-play .i{width:14px;height:14px}
.nf-bar{display:block;width:100%;height:3px}
.nf-bar s{display:block;height:100%;background:#1FA855;border-radius:0 2px 2px 0;animation:nf-bar linear both}
@keyframes nf-bar{from{width:100%}to{width:0}}
@media (prefers-reduced-motion: reduce){.nf,.nf-head,.nf-row-in{animation-duration:.01s}.nf-bar s{animation-duration:0s}}
@media (max-width:820px){#notifyRoot{top:64px;right:10px;max-width:calc(100vw - 20px)}.nf{width:100%}}

/* BUG-005: telefone ao lado do nome do perfil em grupos (quem não está salvo) */
.message-sender-phone{font-weight:400;color:var(--ink-2);margin-left:4px;font-size:.92em}
.message-body .mention{color:var(--brand-blue);font-weight:600}
/* FEAT-020: responsável do lead na lista de conversas */
.chat-owner{flex:none;max-width:38%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-left:auto;padding:1px 7px;border-radius:9px;background:var(--surface-2);color:var(--ink-2);font-size:10.5px;font-weight:600}.chat-item-top .chat-item-name{flex:0 1 auto}
