/* Guia Livre Rádio: um diálogo centralizado, conversas como entrada, contatos separados. */
#glMyWA[hidden],#glWaList[hidden],#glWaThread[hidden],#glWaSettings[hidden]{display:none!important}
#glMyWA.gl-mywa-layer{position:fixed;inset:0;z-index:41000;display:grid;place-items:center;padding:18px;box-sizing:border-box}
#glMyWA .gl-mywa-backdrop{position:absolute;inset:0;background:rgba(0,8,15,.78);backdrop-filter:blur(5px)}
#glMyWA .gl-mywa-panel{position:relative;width:min(1050px,calc(100vw - 36px));height:min(780px,calc(100dvh - 36px));max-height:calc(100dvh - 36px);min-height:0;box-sizing:border-box;display:flex;flex-direction:column;overflow:hidden;border-radius:18px;background:#101e27;color:#f4f9f7;border:1px solid #31535d;box-shadow:0 18px 72px #000b}
#glMyWA .gl-wa-head{height:67px;min-height:67px;display:flex;align-items:center;gap:12px;padding:10px 18px;box-sizing:border-box;background:#075e54;border-bottom:1px solid #14776a}
#glMyWA .gl-wa-mark{display:grid;place-items:center;width:41px;height:41px;border-radius:50%;background:#0ead8a;color:white;font-size:22px}
#glMyWA .gl-wa-heading{flex:1;min-width:0;display:grid;gap:3px}#glMyWA .gl-wa-heading strong{font-size:18px}#glMyWA .gl-wa-heading small{font-size:11px;color:#c9e8dd}
#glMyWA .gl-wa-head button{background:transparent;border:0;color:white;font:inherit;font-size:21px;padding:8px;cursor:pointer}
#glMyWA .gl-wa-tabs{display:flex;gap:3px;background:#0e252c;padding:6px 13px;flex:0 0 auto}#glMyWA .gl-wa-tabs button{background:transparent;border:0;border-bottom:2px solid transparent;color:#b7d2d5;flex:1;padding:10px 4px;font-weight:700;cursor:pointer}#glMyWA .gl-wa-tabs button.active{border-color:#18c5a4;color:#fff}
#glMyWA .gl-wa-body{flex:1;display:flex;min-height:0;position:relative}#glMyWA .gl-wa-list{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}#glMyWA .gl-wa-filter{display:flex;gap:8px;padding:12px;background:#142830}#glMyWA .gl-wa-filter input{flex:1;min-width:0;padding:10px 12px;border:1px solid #34515a;background:#233b44;color:white;border-radius:12px}#glMyWA .gl-wa-filter button{width:42px;border-radius:50%;border:0;background:#08a78a;color:white;font-size:24px;cursor:pointer}
#glMyWA #glWaRows{flex:1;min-height:0;overflow-y:auto}#glMyWA .gl-wa-entry{width:100%;display:flex;gap:12px;align-items:center;border:0;border-bottom:1px solid #263e45;background:transparent;color:inherit;text-align:left;padding:12px 18px;cursor:pointer}#glMyWA .gl-wa-entry:hover,#glMyWA .gl-wa-entry:focus-visible{background:#213b43}
#glMyWA .gl-wa-avatar{flex:0 0 48px;width:48px;height:48px;border-radius:50%;overflow:hidden;background:#24565d;display:grid;place-items:center;color:white;font-size:22px}#glMyWA .gl-wa-avatar img{width:100%;height:100%;object-fit:cover;object-position:center}#glMyWA .gl-wa-entry-copy{min-width:0;flex:1;display:grid;gap:4px}#glMyWA .gl-wa-entry-copy strong{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#glMyWA .gl-wa-entry-copy small{font-size:12px;color:#a3bfc6;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#glMyWA .gl-wa-entry-side{display:grid;justify-items:end;gap:5px}#glMyWA .gl-wa-entry-side small{font-size:10px;color:#8db2b4}#glMyWA .gl-wa-entry-side em{font-style:normal;background:#12b88d;color:#08231f;padding:3px 8px;border-radius:20px;font-size:11px;font-weight:800}
#glMyWA .gl-wa-empty{max-width:400px;margin:auto;text-align:center;padding:24px;color:#b5cdd3;line-height:1.55}#glMyWA .gl-wa-empty p{font-size:13px}
#glMyWA .gl-wa-thread{flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;color:#17312c;background-color:#eae8e2;background-image:radial-gradient(#dcd7ca 1px,transparent 1px);background-size:23px 23px}#glMyWA .gl-wa-contact{background:#f6f7f3;display:flex;gap:11px;align-items:center;padding:9px 14px;min-height:62px;box-sizing:border-box;border-bottom:1px solid #d3ddd6}#glMyWA .gl-wa-contact>div{flex:1;min-width:0;display:grid;gap:4px}#glMyWA .gl-wa-contact small{color:#627c76}#glMyWA #glWaBack{color:#0b6258;font-size:29px;background:transparent;border:0;cursor:pointer}
#glMyWA #glWaMessages{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:10px;padding:16px}#glMyWA .gl-wa-bubble{max-width:82%;display:grid;gap:5px;padding:10px 13px;border-radius:12px;background:white;align-self:flex-start;white-space:pre-wrap;overflow-wrap:anywhere;box-shadow:0 1px 3px #0002}#glMyWA .gl-wa-bubble.mine{align-self:flex-end;background:#d7f8d2}#glMyWA .gl-wa-bubble small{text-align:right;color:#68837b;font-size:10px}
#glMyWA .gl-wa-send{display:flex;align-items:flex-end;gap:10px;padding:12px;background:#e8efeb;box-sizing:border-box}#glMyWA .gl-wa-send textarea{flex:1;min-width:0;max-height:150px;border-radius:22px;padding:11px 15px;border:1px solid #cbd8d1;resize:vertical;font:inherit;background:white;color:#1c3330}#glMyWA .gl-wa-send button{border:0;background:#0aa88a;color:white;border-radius:50%;width:43px;height:43px;cursor:pointer;font-size:18px}#glMyWA .gl-wa-send button:disabled{opacity:.45}
#glMyWA .gl-wa-settings{flex:1;min-height:0;overflow-y:auto;padding:20px}#glMyWA .gl-wa-connection{padding:15px;border:1px solid #2d5158;border-radius:15px;margin:12px 0}#glMyWA .gl-wa-connection>strong,#glMyWA .gl-wa-connection>small{display:block;margin-bottom:8px}#glMyWA .gl-wa-connection>small{color:#a6ccd1}#glMyWA .gl-wa-action-row{display:flex;gap:8px;flex-wrap:wrap}#glMyWA .gl-wa-action-row button,#glMyWA #glWaCreate button{background:#146956;color:white;border:1px solid #168f75;border-radius:10px;padding:9px 12px;cursor:pointer}#glMyWA .gl-wa-qr img{max-width:min(230px,100%)}#glMyWA #glWaCreate{display:grid;gap:9px;max-width:350px;margin-top:18px}#glMyWA #glWaCreate input{width:100%;border-radius:10px;background:#213842;color:white;border:1px solid #477078;padding:10px}
#glMyWA .gl-wa-foot{padding:10px 18px;background:#10272b;color:#a9c3c5;font-size:12px;min-height:36px;box-sizing:border-box}
@media(max-width:650px){#glMyWA.gl-mywa-layer{padding:0}#glMyWA .gl-mywa-panel{width:100vw;height:100dvh;max-height:100dvh;border:0;border-radius:0}#glMyWA .gl-wa-head{height:59px;min-height:59px;padding:8px 12px}#glMyWA .gl-wa-contact .gl-wa-avatar{width:38px;height:38px;flex-basis:38px}#glMyWA .gl-wa-bubble{max-width:88%}}
@media(prefers-reduced-motion:reduce){#glMyWA *{transition:none!important}}

#glMyWA #glWaCreate[hidden]{display:none!important}
@media(min-width:651px){#glMyWA.gl-wa-view-thread .gl-wa-list{flex:0 0 35%;border-right:1px solid #34525a}#glMyWA.gl-wa-view-thread .gl-wa-thread{flex:1 1 65%}}
/* 14.1.77 — inbox multiempresa: estados reais, controles e rascunhos IA. */
#glMyWA .gl-wa-contact #gl77SyncBtn,#glMyWA .gl-wa-contact #gl77AgentBtn{border:1px solid #c8d9d0;border-radius:10px;background:#fff;color:#06685a;min-width:46px;max-width:110px;min-height:35px;padding:5px 8px;white-space:nowrap;cursor:pointer;font-size:12px}
#glMyWA .gl-wa-contact{min-width:0}
#glMyWA .gl-wa-contact>div{overflow:hidden}
#glMyWA .gl-wa-contact>div strong,#glMyWA .gl-wa-contact>div small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#glMyWA .gl-wa-bubble small.gl77-read{color:#158fce;font-weight:800}
#glMyWA .gl-wa-send{position:relative;gap:5px;align-items:center}
#glMyWA .gl-wa-send #gl77EmojiBtn,#glMyWA .gl-wa-send #gl77AttachBtn{flex:0 0 35px;height:35px;width:35px;border-radius:9px;background:transparent;color:#0c7164;font-size:21px;padding:0}
#glMyWA .gl-wa-send textarea{min-height:43px;resize:none}
#glMyWA .gl-wa-send #gl77EmojiMenu{position:absolute;bottom:calc(100% + 4px);left:8px;width:min(315px,calc(100vw - 25px));display:grid;grid-template-columns:repeat(6,1fr);gap:5px;padding:10px;border:1px solid #b7d1cb;border-radius:14px;background:#f8fbf9;box-shadow:0 14px 36px #10292455;z-index:100}
#glMyWA .gl-wa-send #gl77EmojiMenu button{width:100%;height:36px;border-radius:9px;font-size:22px;background:transparent;color:#173d37}
.gl77-agent-dialog{max-width:min(560px,calc(100vw - 18px));width:100%;max-height:90dvh;overflow:auto;border:1px solid #23675d;border-radius:18px;box-shadow:0 25px 95px #0009;padding:0;color:#edf9f6;background:#102b35}
.gl77-agent-dialog::backdrop{background:#00131ec4}
.gl77-agent-dialog .gl77-agent-form{display:grid;gap:13px;padding:18px}
.gl77-agent-dialog header{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:17px}
.gl77-agent-dialog label{display:grid;gap:6px;font-size:12px;color:#bad7d0}
.gl77-agent-dialog select,.gl77-agent-dialog textarea{color:#f0faf8;background:#0a202b;border:1px solid #3b6a6f;border-radius:10px;padding:11px;font:inherit;width:100%;box-sizing:border-box}
.gl77-agent-dialog button{min-height:40px;border:1px solid #3f7d76;border-radius:10px;background:#0e544e;color:#f1fffc;font-weight:650;padding:7px 12px;cursor:pointer}
.gl77-agent-dialog button:disabled{opacity:.55}
.gl77-agent-dialog .gl77-usage{color:#b6d1ce}
@media(max-width:650px){
 #glMyWA .gl-wa-contact{gap:6px;padding:7px}
 #glMyWA .gl-wa-contact #gl77SyncBtn{min-width:32px;max-width:56px;font-size:10px;padding:4px}
 #glMyWA .gl-wa-contact #gl77AgentBtn{min-width:42px;max-width:46px;font-size:11px;padding:4px}
 #glMyWA .gl-wa-send{padding:8px 6px;gap:3px}
 #glMyWA .gl-wa-send #gl77EmojiBtn,#glMyWA .gl-wa-send #gl77AttachBtn{flex-basis:29px;width:29px;font-size:19px}
 #glMyWA .gl-wa-send button[type=submit]{width:38px;height:38px;flex:0 0 38px}
 .gl77-agent-dialog{max-height:92dvh;width:calc(100vw - 12px)}
}
