/* GCHAT — espaço próprio, independente da navegação e dos cartões do feed. */
.gchat-screen{background:#fff;overflow:hidden;position:fixed;inset:0;width:100%;height:100%;overscroll-behavior:none}
.gchat-screen main{height:100%;min-height:0;display:block;overflow:hidden}
.gchat-app{--gchat-height:100dvh;height:var(--gchat-height,100dvh);min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto;background:#fff;color:#1c2939}
.gchat-app button,.gchat-app textarea{font-family:inherit}
.gchat-header{min-height:70px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:9px clamp(12px,2.8vw,38px);border-bottom:1px solid #edf0f5;background:#fff;z-index:1}
.gchat-header-main{display:flex;align-items:center;gap:12px;min-width:0}
.gchat-back,.gchat-reset{display:flex;align-items:center;justify-content:center;border:0;background:transparent;color:#56657a;transition:background-color .15s;color:#65738a}
.gchat-back{width:39px;height:39px;flex-shrink:0;border-radius:13px}
.gchat-back:hover,.gchat-reset:hover{background:#f1f5fa}
.gchat-back svg,.gchat-reset svg,.gchat-tool svg,.gchat-submit svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.85}
.gchat-brand-icon{display:flex;width:42px;height:42px;flex-shrink:0;align-items:center;justify-content:center;border-radius:14px;background:linear-gradient(145deg,#1e66e5,#163d92);color:#fff;box-shadow:0 5px 18px #2365d226}
.gchat-brand-icon svg{width:23px;height:23px}
.gchat-brand-text{display:flex;flex-direction:column;min-width:0;gap:1px}
.gchat-brand-text strong{color:#142a46;font-size:1.06rem;font-weight:850;letter-spacing:.03em}
.gchat-brand-text small{font-size:.75rem;color:#8490a2;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.gchat-reset{flex-shrink:0;gap:8px;padding:9px 12px;border-radius:11px;font-size:.8rem;font-weight:660;cursor:pointer}
.gchat-reset[aria-disabled="true"]{opacity:1;cursor:default}
.gchat-scroll{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;-ms-overflow-style:none;scroll-behavior:smooth;padding:22px clamp(14px,3.5vw,48px) 24px;background:#fff}
.gchat-conversation{width:min(100%,840px);margin:0 auto;display:flex;flex-direction:column;gap:22px;min-height:100%;justify-content:flex-start}
.gchat-empty-prompt{font-size:clamp(1.1rem,2vw,1.5rem);font-weight:670;letter-spacing:-.02em;color:#34455c;margin:18px 4px 4px}
.gchat-message{display:flex;align-items:flex-start;gap:12px;max-width:100%}
.gchat-message.user{justify-content:flex-end}
.gchat-message-avatar{width:29px;height:29px;flex:0 0 29px;background:#eaf0ff;color:#2563db;border-radius:11px;display:flex;align-items:center;justify-content:center;font-size:16px}
.gchat-message-body{min-width:0;max-width:min(85%,690px);font-size:1rem;line-height:1.69;color:#27374b;overflow-wrap:anywhere}
.gchat-message-body p{color:inherit;white-space:pre-wrap;margin:0}
.gchat-message.user .gchat-message-body{background:#eef3fa;padding:11px 17px;border-radius:20px 20px 5px 20px;max-width:min(82%,620px)}
.gchat-message.file .gchat-message-body{background:#f4f7fc;border:1px solid #e6edf6;border-radius:15px;padding:9px;max-width:320px}
.gchat-media{width:min(100%,275px);max-height:290px;object-fit:contain;border-radius:10px;display:block}
.gchat-file-title{display:flex;align-items:center;gap:7px;font-size:.78rem;font-weight:700;color:#475e77;margin-top:5px;overflow-wrap:anywhere}
.gchat-file-title svg{width:18px;height:18px;flex-shrink:0}
.gchat-choices{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}
.gchat-chip{border:1px solid #d8e4f6;background:#fff;color:#2854a1;border-radius:999px;padding:8px 13px;font-size:.79rem;font-weight:660;line-height:1.35;cursor:pointer;transition:border-color .15s,background .15s}
.gchat-chip:hover{border-color:#93b4ee;background:#f2f6fe}
.gchat-review{margin-top:14px;background:#225ad5;color:#fff;border:0;border-radius:12px;padding:11px 17px;font-weight:740;font-size:.88rem;cursor:pointer}
.gchat-review:hover{background:#184bad}



@keyframes gchat-pulse{to{opacity:.3;transform:translateY(-4px)}}
.gchat-dock{border-top:1px solid #f4f6f9;background:#fff;padding:9px 16px calc(13px + env(safe-area-inset-bottom))}
.gchat-dock-inner{width:min(100%,840px);margin:auto}
.gchat-composer{display:flex;align-items:flex-end;gap:4px;min-width:0;padding:8px;border:1px solid #d6e0ec;background:#f8f9fc;border-radius:27px;transition:border-color .18s,box-shadow .18s,background .18s}
.gchat-composer:focus-within{border-color:#99b5e5;background:#fff;box-shadow:0 0 0 3px #225ee10a}
.gchat-composer textarea{flex:1;min-width:0;max-height:154px;min-height:31px;height:31px;resize:none;overflow-y:auto;display:block;padding:6px 4px;line-height:1.52;border:0!important;background:transparent!important;outline:none!important;box-shadow:none!important;color:#182f48;font-size:16px!important;border-radius:0;margin:0}
.gchat-composer textarea::placeholder{color:#8290a1}
.gchat-tool,.gchat-submit{width:39px;height:39px;flex:0 0 39px;border:0;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background .17s,color .17s}
.gchat-tool{background:transparent;color:#5e6f82}
.gchat-tool:hover{background:#e9eef6;color:#1e4f9a}
.gchat-submit{color:#fff;background:#1b3351}
.gchat-submit:hover{background:#1856c6}
.gchat-tool:disabled,.gchat-submit:disabled{opacity:.45;cursor:wait}
.gchat-tool.recording{color:#c6244f;background:#fbe9ed;animation:gchat-pulse 1s infinite alternate}
.gchat-feedback{font-size:.77rem;color:#61788f;line-height:1.4;min-height:0;margin:0 8px}
.gchat-feedback:not(:empty){padding:4px 0 8px}
.gchat-feedback.error{color:#a12a45}
.gchat-disclaimer{display:block;text-align:center;color:#9ba6b3;font-size:.7rem;line-height:1.4;padding:7px 0 0}
.gchat-app :is(a,button,textarea):focus-visible{outline:2px solid #2563eb;outline-offset:3px}
@media(max-width:650px){
 .gchat-header{min-height:62px;padding:7px 11px;gap:8px}
 .gchat-header-main{gap:9px}
 .gchat-brand-icon{height:37px;width:37px;border-radius:12px}
 .gchat-brand-text strong{font-size:1rem}
 .gchat-brand-text small{font-size:.68rem;max-width:180px}
 .gchat-reset{width:39px;height:39px;padding:8px}
 .gchat-reset span{display:none}
 .gchat-scroll{padding:17px 12px}
 .gchat-message{gap:9px}
 .gchat-message-body{max-width:calc(100% - 39px);font-size:.96rem}
 .gchat-message.user .gchat-message-body{max-width:88%;font-size:.96rem}
 .gchat-conversation{gap:20px}
 .gchat-dock{padding:8px 10px calc(8px + env(safe-area-inset-bottom))}
 .gchat-composer{border-radius:23px;padding:6px;gap:1px}
 .gchat-tool,.gchat-submit{width:36px;height:36px;flex-basis:36px}
 .gchat-disclaimer{font-size:.65rem}
}
@media(prefers-reduced-motion:reduce){.gchat-scroll{scroll-behavior:auto}.gchat-loading i,.gchat-tool.recording{animation:none}}

/* Identidade visual oficial do GCHAT no cabeçalho exclusivo. */

/* Scroll só da conversa; barras ocultas e respostas adicionadas suavemente */
.gchat-scroll::-webkit-scrollbar,.gchat-composer textarea::-webkit-scrollbar{display:none}
.gchat-composer textarea{scrollbar-width:none}
.gchat-screen main,.gchat-app,.gchat-scroll,.gchat-dock{max-width:100%;min-width:0}
.gchat-scroll{overflow-x:hidden;-webkit-overflow-scrolling:touch}
.gchat-dock{flex-shrink:0}
.gchat-tool.recording{animation:none;box-shadow:0 0 0 4px #f9dfe7}

/* v0.5.0 — categorias principais na lateral, com rolagem independente. */
.gchat-app{position:relative;grid-template-columns:clamp(224px,21vw,270px) minmax(0,1fr);grid-template-rows:minmax(0,1fr);isolation:isolate}
.gchat-main{display:grid;min-width:0;min-height:0;grid-template-rows:auto minmax(0,1fr) auto;height:100%;background:#fff}
.gchat-sidebar{display:flex;flex-direction:column;min-width:0;min-height:0;height:100%;overflow:hidden;background:#fafcff;border-right:1px solid #e6ecf3}
.gchat-sidebar-top{height:70px;min-height:70px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e6ecf3;padding:0 20px;color:#273e5b}
.gchat-sidebar-heading{display:flex;align-items:center;gap:10px;font-size:.93rem;font-weight:670;letter-spacing:-.015em}
.gchat-sidebar-heading svg{height:19px;width:19px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linejoin:round}
.gchat-sidebar-note{margin:0;padding:17px 20px 10px;color:#64748b;font-size:.78rem;line-height:1.5}
.gchat-category-list{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:6px 10px 20px;scrollbar-color:#c9d6e4 transparent;scrollbar-width:thin;display:flex;flex-direction:column;gap:2px}
.gchat-category{font:inherit;appearance:none;flex:0 0 auto;display:flex;align-items:center;width:100%;min-width:0;gap:12px;padding:10px 12px;text-align:left;background:transparent;color:#34465e;border:1px solid transparent;border-radius:11px;font-size:.87rem;line-height:1.3;font-weight:520;cursor:pointer;transition:background-color .17s,border-color .17s,color .17s}
.gchat-category:hover{background:#edf3fc;color:#1456b6}
.gchat-category.active{background:#e9f1ff;color:#1558b8;border-color:#dae7fa;font-weight:640}
.gchat-category:disabled{opacity:.55;cursor:wait}
.gchat-category-icon{flex:0 0 20px;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;color:#6c82a0}
.gchat-category.active .gchat-category-icon{color:#1e66d1}
.gchat-category span{min-width:0;overflow-wrap:anywhere}
.gchat-sidebar-backdrop[hidden]{display:none}
.gchat-sidebar-backdrop{position:absolute;inset:0;background:#0e223951;z-index:11}
.gchat-sidebar-close,.gchat-menu-open{display:none;appearance:none;background:transparent;border:0;color:#4f627c;border-radius:10px;align-items:center;justify-content:center;width:38px;height:38px;cursor:pointer}
.gchat-sidebar-close svg,.gchat-menu-open svg{fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;width:21px;height:21px}
.gchat-sidebar-close:hover,.gchat-menu-open:hover{background:#edf3fb}
/* Cursor discreto acompanha a composição progressiva da resposta. */
.gchat-writing .gchat-message-body p::after{content:"";display:inline-block;margin-left:3px;vertical-align:-.13em;width:2px;height:1.05em;background:#3775db;border-radius:2px;animation:gchat-caret-blink .8s steps(1) infinite}
@keyframes gchat-caret-blink{50%{opacity:0}}


.gchat-message .gchat-message-body p{overflow-wrap:anywhere}
@media(max-width:900px){
  .gchat-app{grid-template-columns:minmax(0,1fr)}
  .gchat-menu-open,.gchat-sidebar-close{display:flex}
  .gchat-sidebar{position:absolute;inset:0 auto 0 0;width:min(84vw,310px);height:100%;z-index:12;transform:translateX(-105%);transition:transform .24s ease-out;box-shadow:12px 0 30px #13274612;background:#fff}
  .gchat-sidebar-open .gchat-sidebar{transform:translateX(0);box-shadow:12px 0 38px #13274629}
  .gchat-sidebar-top{min-height:62px;height:62px}
  .gchat-category-list{padding-bottom:calc(24px + env(safe-area-inset-bottom))}
  .gchat-header-main{gap:6px}
}
@media(prefers-reduced-motion:reduce){
  .gchat-sidebar{transition:none}
}

/* v0.5.1 — conversa fluida e categorias sem separações. */
.gchat-sidebar{border-right:0;background:#fafbfe}
.gchat-sidebar-top{display:none;border:0}
.gchat-sidebar-note{display:none}
.gchat-category-list{padding:14px 10px 20px;gap:3px}
.gchat-category{border-color:transparent}
.gchat-category.active{border-color:transparent}

.gchat-scroll--writing{scroll-behavior:auto}
.gchat-message#gchat-thinking{min-height:30px}
@media(max-width:900px){
  .gchat-sidebar-top{display:flex;height:54px;min-height:54px;border:0;padding:0 10px;justify-content:flex-end}
  .gchat-category-list{padding-top:0}
}

/* A estrela tem um único ciclo de giro, comum a mobile e desktop. */
.gchat-message-avatar{width:23px;height:27px;flex:0 0 23px;display:flex;align-items:center;justify-content:center;background:transparent;border:0;border-radius:0;overflow:visible;color:#2865d5}
.gchat-message-avatar .gchat-mark{display:block;width:17px;height:17px;overflow:visible;transform-origin:center;transform-box:fill-box;animation:none;filter:none}
.gchat-mark-core{fill:#3476e6;stroke:none}
.gchat-mark-glint{fill:#82b2fb;stroke:none}
.gchat-working .gchat-message-avatar .gchat-mark{animation:gchat053-rotate 1.7s linear infinite;will-change:transform}
@keyframes gchat053-rotate{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}
.gchat-writing .gchat-message-body{min-height:27px}
.gchat-writing .gchat-message-body p::after{background:#3476e6}
@media(prefers-reduced-motion:reduce){.gchat-working .gchat-message-avatar .gchat-mark{animation:none;will-change:auto}}

/* v0.5.3 — AJAX sem bloquear a lateral e animações independentes. */
.gchat-scroll{scroll-behavior:auto!important;overflow-anchor:none}
.gchat-category:disabled{opacity:1;cursor:pointer}
.gchat-submit,.gchat-submit:hover{background:#2563eb;color:#fff}
.gchat-submit:disabled,.gchat-submit:disabled:hover{background:#b8c1ce;color:#fff;opacity:1;cursor:default}
.gchat-message--failed .gchat-message-body{border:1px solid #e8a2a9}
.gchat-writing .gchat-message-body p::after{animation:gchat-caret-blink .72s steps(1) infinite}
@media(prefers-reduced-motion:reduce){
  .gchat-working .gchat-message-avatar .gchat-mark{animation:none!important}
}
/* Cor imediata: sem transição cinza/azul e sem variação no hover. */
.gchat-submit{transition:none!important}
.gchat-submit:not(:disabled),.gchat-submit:not(:disabled):hover{background:#2563eb!important;color:#fff}
.gchat-submit:disabled,.gchat-submit:disabled:hover{background:#b8c1ce!important;color:#fff;opacity:1}

/* v0.5.4: assuntos populares da taxonomia, sem formulários ou respostas fingidas. */
.gchat-subcategory-options{margin-top:14px;display:flex;flex-direction:column;align-items:flex-start;gap:10px;max-width:100%}
.gchat-subcategory-caption{font-size:.79rem;font-weight:680;color:#5b6e86}
.gchat-subcategory-choices{display:flex;flex-wrap:wrap;gap:7px;max-width:100%}
.gchat-subcategory-chip{font:inherit;font-size:.84rem;line-height:1.3;color:#2554a0;
 background:#f6f9ff;border:1px solid #cfddf4;border-radius:14px;
 padding:10px 12px;cursor:pointer;text-align:left;max-width:100%;overflow-wrap:anywhere;
 transition:background-color .15s,border-color .15s}
.gchat-subcategory-chip:hover{background:#edf4ff;border-color:#88b1e9}
.gchat-subcategory-chip:focus-visible,.gchat-subcategory-more:focus-visible{outline:2px solid #2978e7;outline-offset:2px}
.gchat-subcategory-more{font:inherit;font-size:.83rem;color:#2561b3;border:0;background:transparent;
 padding:4px 1px;cursor:pointer;font-weight:650}
.gchat-subcategory-more[hidden]{display:none}
@media(max-width:600px){.gchat-subcategory-chip{font-size:.83rem;padding:9px 11px}}


/* v0.5.4.1 — ajuste de legibilidade e cores, sem alterar a estrutura do projeto. */
.gchat-app{color:#252a32}
.gchat-main{min-height:0;overflow:hidden}
.gchat-scroll{padding-bottom:clamp(26px,4vh,42px);scroll-padding-bottom:24px}
.gchat-message-body{font-size:1.035rem;line-height:1.72;color:#29313a}
.gchat-message.user .gchat-message-body{background:#f1f2f4;color:#252a32}
.gchat-category{font-size:.97rem;line-height:1.4;gap:13px;padding:11px 12px;color:#374151}
.gchat-category-icon{flex-basis:23px;width:23px;height:23px;color:#64748b}
.gchat-category:hover{background:#f0f1f3;color:#252a32}
.gchat-category.active{background:#e9eaed;color:#252a32;border-color:transparent}
.gchat-category.active .gchat-category-icon{color:#4b5563}
.gchat-sidebar{background:#fafafa}
.gchat-chip,.gchat-subcategory-chip{background:#f3f4f6;border-color:#e1e3e6;color:#374151}
.gchat-chip:hover,.gchat-subcategory-chip:hover{background:#e9ebee;border-color:#cfd3d8;color:#252a32}
.gchat-chip{font-size:.9rem;padding:9px 13px}
.gchat-subcategory-chip{font-size:.95rem;padding:10px 13px}
.gchat-subcategory-caption{font-size:.88rem;color:#5c6673}
.gchat-subcategory-more{color:#3d4b5d;font-size:.92rem}
.gchat-subcategory-options{max-width:100%;margin-bottom:8px;scroll-margin-top:16px;scroll-margin-bottom:22px}
.gchat-composer{background:#f4f4f5;border-color:#e3e4e6}
.gchat-composer:focus-within{background:#f6f6f7;border-color:#c7cbd0;box-shadow:0 0 0 2px #6b728009}
.gchat-tool{color:#58616d}
.gchat-tool:hover,.gchat-back:hover,.gchat-reset:hover,.gchat-menu-open:hover{background:#e9eaed;color:#363f4a}
.gchat-submit:not(:disabled),.gchat-submit:not(:disabled):hover{background:#4b5563!important;color:#fff}
.gchat-submit:disabled,.gchat-submit:disabled:hover{background:#cdd1d6!important;color:#fff}
@media(max-width:900px){
 .gchat-category{font-size:1.02rem;line-height:1.45;padding:12px 12px}
 .gchat-category-icon{flex-basis:25px;width:25px;height:25px}
}
@media(max-width:650px){
 .gchat-message-body,.gchat-message.user .gchat-message-body{font-size:1.09rem;line-height:1.68}
 .gchat-scroll{padding-bottom:30px}
 .gchat-chip{font-size:.99rem}
 .gchat-subcategory-chip{font-size:1rem;padding:10px 12px}
 .gchat-subcategory-caption{font-size:.94rem}
 .gchat-subcategory-more{font-size:.96rem}
 .gchat-composer{background:#f3f3f4}
}

/* v0.5.4.3 — links azuis, subcategorias leves e campo uniformemente branco. */
@media(min-width:901px){
 .gchat-category{font-size:.93rem}
}
.gchat-subcategory-caption{color:#20242b;font-weight:760}
.gchat-subcategory-chip{
 display:inline-flex;align-items:center;justify-content:space-between;gap:9px;
 font-weight:500;
}
.gchat-subcategory-chip span{min-width:0}
.gchat-subcategory-arrow{width:16px;height:16px;flex:0 0 16px;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;fill:none;opacity:.9}
/* Somente o texto de "Ver mais assuntos" é azul: sem preenchimento colorido. */
.gchat-subcategory-more{
 display:inline-flex;align-items:center;justify-content:flex-start;
 padding:4px 1px;border:0;border-radius:0;
 background:transparent!important;color:#2563eb!important;font-weight:650;
 transition:color .15s;
}
.gchat-subcategory-more:hover{background:transparent!important;color:#1d4ed8!important;text-decoration:underline}
.gchat-subcategory-more:active{background:transparent!important;color:#1e40af!important}
/* Compositor e área interna usam o mesmo branco, inclusive com foco. */
.gchat-composer,.gchat-composer:focus-within{background:#fff!important}
.gchat-composer textarea,.gchat-composer textarea:focus{
 background:#fff!important;
 border-radius:13px!important;
 padding:6px 10px!important;
}
/* O azul é reservado para o envio ativo; com o campo vazio, permanece cinza. */
.gchat-submit:not(:disabled),.gchat-submit:not(:disabled):hover{background:#2563eb!important;color:#fff!important}
.gchat-submit:disabled,.gchat-submit:disabled:hover{background:#cdd1d6!important;color:#fff!important}

/* v0.5.4.13 — Navegação compartilhada: menu GCAPTAL à esquerda; categorias à direita. */
.gchat-header-actions{display:flex;align-items:center;gap:5px;flex:0 0 auto}
.gchat-site-menu-toggle{display:flex;flex:0 0 41px;border:0;background:transparent;color:#405166}
.gchat-site-menu-toggle:hover{background:#e9eaed}
.gchat-site-menu-toggle:focus-visible,.gchat-menu-open:focus-visible{outline:2px solid #2563eb;outline-offset:2px}
.gchat-menu-open{flex:0 0 39px}
@media(max-width:900px){
  .gchat-header{padding-left:11px;padding-right:11px;gap:5px}
  .gchat-header-main{gap:6px;min-width:0}
  .gchat-menu-open{display:flex;justify-content:center;align-items:center}
}
@media(max-width:370px){
  .gchat-header{gap:3px;padding-inline:8px}
  .gchat-header-actions{gap:2px}
  .gchat-header-main{gap:4px}
  .gchat-site-menu-toggle{width:38px;flex-basis:38px;height:38px;padding:8px}
  .gchat-reset{width:36px;height:36px;padding:7px}
  .gchat-menu-open{width:36px;height:36px;flex-basis:36px}
}

/* v0.5.4.14 — layout estável, leitura consistente e sem gesto de atualizar. */
html:has(body.gchat-screen),body.gchat-screen{overscroll-behavior-x:none;overscroll-behavior-y:none}
.gchat-scroll,.gchat-category-list{overscroll-behavior:none;touch-action:pan-y}
.gchat-app textarea{touch-action:auto}
.gchat-scroll{scroll-behavior:auto}
.gchat-reset,.gchat-reset:hover,.gchat-reset:active,.gchat-reset[aria-disabled="true"]{transform:none;box-shadow:none;transition:none;}
.gchat-message-avatar .gchat-mark{transform-origin:center;transform-box:fill-box;backface-visibility:visible}

/* v0.5.4.15 — primeira pintura do compositor idêntica ao estado pós-JavaScript.
   O JS calcula scrollHeight = 36 px para a textarea de uma linha; o CSS antigo
   usava 31 px e deslocava o campo na primeira execução de autoSize(). */
.gchat-composer textarea {height:36px;min-height:36px}
/* A disponibilidade do microfone pode ser detectada só após iniciar o JS.
   Evita variação de opacidade de ícones entre o HTML e a hidratação. */
.gchat-tool:disabled {opacity:1;cursor:default}


/* v0.5.4.18 — confirmação de troca de categoria, sem navegar nem piscar. */
.gchat-confirm-overlay[hidden]{display:none!important}
.gchat-confirm-overlay{position:absolute;inset:0;z-index:45;display:flex;align-items:center;justify-content:center;background:rgba(15,23,42,.43);padding:20px;overscroll-behavior:contain}
.gchat-confirm-panel{width:min(100%,405px);max-height:calc(100% - 24px);overflow-y:auto;overscroll-behavior:contain;background:#fff;border:1px solid #e7e9ef;border-radius:19px;padding:25px 24px 23px;box-shadow:0 22px 68px #10182730}
.gchat-confirm-icon{display:flex;width:38px;height:38px;align-items:center;justify-content:center;border-radius:12px;background:#f1f3f6;color:#4b5563;margin-bottom:14px}
.gchat-confirm-icon svg{height:19px;width:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.gchat-confirm-panel h2{margin:0 0 10px;font-size:1.16rem;font-weight:720;letter-spacing:-.02em;color:#1f2937}
.gchat-confirm-panel p{margin:0;font-size:.95rem;line-height:1.6;color:#596575}
.gchat-confirm-panel p strong{font-weight:700;color:#2b3442}
.gchat-confirm-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:9px;margin-top:24px}
.gchat-confirm-actions button{appearance:none;min-height:43px;border-radius:10px;padding:10px 15px;font-size:.91rem;font-weight:650;cursor:pointer;transition:none}
.gchat-confirm-cancel{background:#fff;border:1px solid #cbd2db;color:#364152}
.gchat-confirm-cancel:hover{background:#f5f6f8}
.gchat-confirm-accept{background:#2563eb;color:#fff;border:1px solid #2563eb}
.gchat-confirm-accept:hover{background:#1d4ed8;border-color:#1d4ed8}
.gchat-confirm-actions button:focus-visible{outline:2px solid #2563eb;outline-offset:3px}
@media(max-width:430px){
 .gchat-confirm-panel{padding:21px 19px 19px;border-radius:16px}
 .gchat-confirm-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
 .gchat-confirm-actions button{font-size:.88rem;padding:10px 6px}
}

/* v0.5.4.19 — Sem destaque no hover do botão Limpar; só é exibido com conteúdo. */
.gchat-reset[hidden]{display:none!important}
.gchat-reset,.gchat-reset:hover,.gchat-reset:active,.gchat-reset:focus,
.gchat-reset[aria-disabled="true"]{background:transparent!important;color:#65738a!important}
.gchat-message-time{display:block;margin-top:4px;color:#7b8796;font-size:.69rem;font-weight:450;
  line-height:1.45;letter-spacing:.005em;font-variant-numeric:tabular-nums}
.gchat-message.user .gchat-message-time{text-align:right;color:#748196}
@media(max-width:650px){.gchat-message-time{font-size:.68rem}}

/* Marca GCHAT: 130px no desktop e 120px no celular. */
.gchat-brand-logo {
  display:block;
  width:130px;
  max-width:130px;
  height:auto;
  max-height:40px;
  object-fit:contain;
  object-position:left center;
  flex:0 1 130px;
}
@media (max-width:780px) {
  .gchat-brand-logo {
    width:120px;
    max-width:120px;
    max-height:34px;
    flex-basis:120px;
  }
}

/* v0.5.4.24 — Modal de voz compacto: sem rolagem externa; apenas o texto rola. */
.gchat-voice-overlay[hidden],.gchat-voice-actions [hidden],.gchat-voice-error[hidden]{display:none!important}
.gchat-voice-overlay{position:fixed;inset:0;z-index:1300;background:rgba(11,23,44,.48);backdrop-filter:blur(5px);display:grid;place-items:center;padding:12px;overflow:hidden;overscroll-behavior:none}
.gchat-voice-panel{box-sizing:border-box;outline:none;background:#fff;border:1px solid #e7ebf1;border-radius:20px;width:min(100%,476px);max-height:calc(100dvh - 24px);min-height:0;overflow:hidden;overscroll-behavior:none;box-shadow:0 24px 75px #091b3630;padding:18px;display:flex;flex-direction:column;gap:12px}
.gchat-voice-heading{display:flex;align-items:center;gap:10px;flex:none;min-height:40px}
.gchat-voice-heading-icon{width:38px;height:38px;flex:0 0 38px;border-radius:12px;background:#f1f4fa;color:#5476b3;display:grid;place-items:center}
.gchat-voice-panel svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;width:19px;height:19px}
.gchat-voice-heading>div:nth-child(2){min-width:0;flex:1}
.gchat-voice-heading h2{margin:0;font-size:1.07rem;font-weight:730;color:#1d2e43;line-height:1.25}
.gchat-voice-heading p{margin:3px 0 0;color:#788797;font-size:.81rem;line-height:1.25}
.gchat-voice-icon-button{width:31px;height:31px;display:grid;place-items:center;background:transparent!important;border:0!important;box-shadow:none!important;color:#667589;cursor:pointer;border-radius:50%;flex:none}
.gchat-voice-icon-button:hover{color:#142f50}
.gchat-voice-stage{display:flex;align-items:center;flex-direction:column;gap:7px;flex:none;border:1px solid #eef1f6;background:#fcfcfd;border-radius:16px;padding:13px 14px 12px;text-align:center;min-height:0}
.gchat-voice-pulse{width:42px;height:42px;display:grid;place-items:center;background:#f0f3f9;color:#607caf;border-radius:50%;position:relative}
.gchat-voice-pulse svg{width:20px;height:20px}
.gchat-voice-stage[data-state="recording"] .gchat-voice-pulse{background:#fff0f2;color:#d92948;animation:gchat-voice-breathe 1.65s ease-in-out infinite}
@keyframes gchat-voice-breathe{50%{box-shadow:0 0 0 6px #e948621a}}
.gchat-voice-timer{font-size:1.42rem;font-weight:700;letter-spacing:.012em;font-variant-numeric:tabular-nums;color:#22364a;line-height:1.2}
.gchat-voice-timer span{font-size:.76rem;font-weight:480;color:#909cab}
.gchat-voice-waveform{display:block;max-width:100%;width:100%;height:41px}
.gchat-voice-meter{height:3px;width:100%;background:#e9edf3;border-radius:5px;overflow:hidden}
.gchat-voice-meter span{display:block;height:100%;width:0;background:#5d83d5;transition:width .15s linear}
.gchat-voice-status{font-size:.79rem;font-weight:550;color:#607287;margin:0;line-height:1.3;min-height:1.1em}
.gchat-voice-transcript{min-height:0;display:flex;flex-direction:column;flex:0 1 auto}
.gchat-voice-transcript-heading{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.gchat-voice-transcript label{font-size:.84rem;font-weight:660;color:#2b3d54}
.gchat-voice-transcript-heading span{font-size:.69rem;color:#99a5b4;font-variant-numeric:tabular-nums}
.gchat-voice-transcript-heading span.gchat-voice-overlimit{color:#b4234a;font-weight:750}
.gchat-voice-transcript textarea{display:block;box-sizing:border-box;width:100%;height:clamp(72px,15dvh,110px);min-height:54px;max-height:110px;min-width:0;resize:none;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;-ms-overflow-style:none;border:1px solid #dfe5ec;background:#fff;border-radius:11px;font-size:16px;font-family:inherit;color:#1a2c44;padding:11px 12px;line-height:1.48;margin:7px 0 0}
.gchat-voice-transcript textarea::-webkit-scrollbar{display:none;width:0;height:0}
.gchat-voice-transcript textarea:focus{outline:2px solid #2563eb;outline-offset:1px}
.gchat-voice-error{flex:none;border:1px solid #f6c4ce;background:#fff3f5;color:#9c2444;padding:8px 10px;font-size:.8rem;border-radius:10px;line-height:1.35}
.gchat-voice-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;flex:none}
.gchat-voice-actions button{display:flex;gap:7px;align-items:center;justify-content:center;border-radius:10px;min-height:40px;padding:8px 14px;cursor:pointer;font-size:.85rem;font-weight:650}
.gchat-voice-actions svg{height:16px;width:16px}
.gchat-voice-secondary{background:#fff;color:#41566c;border:1px solid #dce3eb}
.gchat-voice-secondary:hover{background:#f8f9fb}
.gchat-voice-primary{background:#2563eb;color:#fff;border:1px solid #2563eb}
.gchat-voice-primary:not(:disabled):hover{background:#1c54d0}
.gchat-voice-actions #gchat-voice-start{background:#dd334a;border-color:#dd334a;color:#fff}
.gchat-voice-actions #gchat-voice-start:not(:disabled):hover{background:#c8233c;border-color:#c8233c}
.gchat-voice-actions #gchat-voice-start svg circle{fill:currentColor;stroke:none}
.gchat-voice-actions button:disabled{opacity:.48;cursor:default}
.gchat-voice-active .gchat-scroll{overscroll-behavior:none}
@media(max-width:650px){
 .gchat-voice-overlay{padding:9px;align-items:center}
 .gchat-voice-panel{max-height:calc(100dvh - 18px);padding:14px;border-radius:17px;gap:10px}
 .gchat-voice-heading{gap:9px}
 .gchat-voice-heading-icon{height:34px;width:34px;flex-basis:34px}
 .gchat-voice-heading h2{font-size:1.02rem}
 .gchat-voice-stage{padding:10px 11px;gap:5px;border-radius:14px}
 .gchat-voice-waveform{height:35px}
 .gchat-voice-pulse{height:39px;width:39px}
 .gchat-voice-timer{font-size:1.36rem}
 .gchat-voice-transcript textarea{height:clamp(67px,12dvh,92px);margin-top:6px}
 .gchat-voice-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}
 .gchat-voice-actions button{font-size:.83rem;padding:8px 10px}
 .gchat-voice-actions #gchat-voice-finish{grid-column:1 / -1}
 .gchat-voice-actions #gchat-voice-send{grid-column:2}
}
/* O teclado não força rolagem no modal; o texto permanece editável. */
/* Mantém a geometria estável ao alternar foco entre texto e botões. */
/* Em telas mais baixas, preserva as ações sem rolar o painel. */
@media(max-height:600px){
 .gchat-voice-panel{padding:10px;gap:7px}
 .gchat-voice-stage{gap:3px;padding:7px 10px}
 .gchat-voice-pulse{width:30px;height:30px}
 .gchat-voice-pulse svg{width:17px;height:17px}
 .gchat-voice-waveform{height:25px}
 .gchat-voice-timer{font-size:1.2rem}
 .gchat-voice-transcript textarea{height:66px;min-height:46px}
 .gchat-voice-heading p{font-size:.74rem}
 .gchat-voice-actions button{min-height:36px}
}
@media(max-height:430px){
 .gchat-voice-heading-icon{display:none}
 .gchat-voice-heading{min-height:30px}
 .gchat-voice-stage .gchat-voice-pulse,.gchat-voice-waveform,.gchat-voice-meter{display:none}
 .gchat-voice-stage{padding:5px 9px}
 .gchat-voice-transcript textarea{height:54px;min-height:42px}
 .gchat-voice-actions button{min-height:32px}
}
@media(prefers-reduced-motion:reduce){.gchat-voice-stage[data-state="recording"] .gchat-voice-pulse{animation:none}}

/* v0.5.4.25 — editor híbrido de texto e voz, ações sempre no lugar. */
.gchat-voice-text-tools{display:flex;align-items:center;gap:10px;min-height:26px}
.gchat-voice-clear{font:inherit;font-size:.78rem;font-weight:600;color:#64748b;background:transparent;border:0;padding:4px 3px;cursor:pointer;text-decoration:none}
.gchat-voice-clear:hover{color:#af3146}
.gchat-voice-clear:focus-visible{outline:2px solid #2563eb;outline-offset:2px;border-radius:4px}
.gchat-voice-clear[hidden]{display:none!important}
.gchat-voice-actions #gchat-voice-send{margin-left:auto}
.gchat-voice-panel .gchat-voice-transcript textarea{min-height:68px}
@media(max-width:600px){.gchat-voice-actions #gchat-voice-send{grid-column:2;grid-row:auto;margin-left:0}}

/* v0.5.4.26 — modal estável com controles sempre nas mesmas posições. */
.gchat-voice-panel{gap:10px}
.gchat-voice-stage{flex:none}
.gchat-voice-stage #gchat-voice-start{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;min-width:128px;padding:8px 15px;border-radius:10px;border:1px solid #dc334b;background:#dc334b;color:white;font-size:.85rem;font-weight:680;cursor:pointer}
.gchat-voice-stage #gchat-voice-start:not(:disabled):hover{background:#c62b42}
.gchat-voice-stage #gchat-voice-start:disabled{opacity:.62;cursor:default}
.gchat-voice-stage #gchat-voice-start svg{height:16px;width:16px}
.gchat-voice-stage #gchat-voice-start svg circle{fill:currentColor;stroke:none}
.gchat-voice-status{height:32px;min-height:32px;max-height:32px;display:flex;align-items:center;justify-content:center;text-align:center;overflow:hidden}
.gchat-voice-error{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important}
.gchat-voice-error[hidden]{display:none!important}
.gchat-voice-status{height:42px;min-height:42px;max-height:42px;line-height:1.3}
.gchat-voice-stage.is-error .gchat-voice-status{color:#ba263e}
.gchat-voice-actions{display:grid;grid-template-columns:52px minmax(0,1fr) minmax(0,1fr);gap:8px;align-items:stretch;flex:none}
.gchat-voice-actions button{min-width:0;min-height:43px;white-space:nowrap;padding:8px 9px}
.gchat-voice-actions #gchat-voice-pause{grid-column:1;grid-row:1;padding:8px;display:grid;place-items:center}
.gchat-voice-actions #gchat-voice-finish{grid-column:2;grid-row:1;background:#dc334b;color:#fff;border:1px solid #dc334b}
.gchat-voice-actions #gchat-voice-finish:not(:disabled):hover{background:#bf2841}
.gchat-voice-actions #gchat-voice-send{grid-column:3;grid-row:1;margin:0}
.gchat-voice-stage[data-state="recording"] #gchat-voice-start{background:#c82541}
.gchat-voice-actions #gchat-voice-pause svg{width:20px;height:20px}
@media(max-width:650px){
 .gchat-voice-actions{display:grid;grid-template-columns:46px minmax(0,1fr) minmax(0,1fr);gap:7px}
 .gchat-voice-actions #gchat-voice-finish{grid-column:2;grid-row:1}
 .gchat-voice-actions #gchat-voice-send{grid-column:3;grid-row:1;margin:0}
 .gchat-voice-stage #gchat-voice-start{min-height:36px}
}
@media(max-height:600px){.gchat-voice-status{height:28px;min-height:28px;max-height:28px}.gchat-voice-stage #gchat-voice-start{min-height:32px}.gchat-voice-actions button{min-height:35px}}

/* v0.5.4.27 — Um único controle Gravar/Pausar/Continuar e uma ação de envio. */
.gchat-voice-stage[data-state="recording"] #gchat-voice-start{background:#c82541;border-color:#c82541}
.gchat-voice-stage[data-state="paused"] #gchat-voice-start{background:#dc334b;border-color:#dc334b}
.gchat-voice-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:0}
.gchat-voice-actions #gchat-voice-finish{grid-column:1;grid-row:1;background:#2563eb;border-color:#2563eb;color:white;min-height:43px;font-size:.88rem}
.gchat-voice-actions #gchat-voice-finish:not(:disabled):hover{background:#1d51c5;border-color:#1d51c5}
.gchat-voice-actions #gchat-voice-finish svg{height:17px;width:17px}
@media(max-width:650px){.gchat-voice-actions{grid-template-columns:minmax(0,1fr)}.gchat-voice-actions #gchat-voice-finish{grid-column:1;grid-row:1}}

/* v0.5.4.29 — permissão de áudio solicitada apenas após tocar em Gravar. */
.gchat-voice-stage .gchat-voice-status{display:flex;flex-wrap:wrap;align-content:center;align-items:center;justify-content:center;gap:4px 8px;width:100%;padding:0;margin:0;box-sizing:border-box}
.gchat-voice-status>span{font:inherit;color:inherit;line-height:1.25}
.gchat-voice-retry{border:0;background:transparent;color:#1d5cce;font:inherit;font-weight:700;text-decoration:underline;padding:2px 3px;cursor:pointer}
.gchat-voice-retry[hidden]{display:none!important}

/* v0.5.4.32 — Revisão humana antes do envio, indicador sutil e layout estável. */
.gchat-voice-status-dots{display:inline-flex;flex:none;align-items:center;gap:3px;width:25px;min-width:25px;height:12px;vertical-align:middle}
.gchat-voice-status-dots[hidden]{visibility:hidden!important;display:inline-flex!important}
.gchat-voice-status-dots i{height:4px;width:4px;background:#647fb4;border-radius:50%;opacity:.35;animation:gchat-voice-dots 1.1s ease-in-out infinite}
.gchat-voice-status-dots i:nth-child(2){animation-delay:.16s}
.gchat-voice-status-dots i:nth-child(3){animation-delay:.32s}
@keyframes gchat-voice-dots{0%,65%,100%{opacity:.3;transform:translateY(0)}32%{opacity:1;transform:translateY(-3px)}}
.gchat-voice-review-hint{flex:none;text-align:center;margin:-5px 0 0;color:#8793a2;font-size:.72rem;line-height:1.25}
.gchat-voice-actions #gchat-voice-finish{background:#2563eb;border-color:#2563eb}
.gchat-voice-actions #gchat-voice-finish:not(:disabled):hover{background:#1953c9;border-color:#1953c9}
@media(prefers-reduced-motion:reduce){.gchat-voice-status-dots i{animation:none;opacity:.65}}

/* v0.5.4.34 — Gravar e Pausar com o mesmo vermelho da marca; bolinhas junto da frase. */
.gchat-voice-stage #gchat-voice-start,
.gchat-voice-stage[data-state="recording"] #gchat-voice-start,
.gchat-voice-stage[data-state="paused"] #gchat-voice-start,
.gchat-voice-stage[data-state="review"] #gchat-voice-start {
  background:#ff3131;border-color:#ff3131;color:#fff;
}
.gchat-voice-stage #gchat-voice-start:not(:disabled):hover,
.gchat-voice-stage[data-state="recording"] #gchat-voice-start:not(:disabled):hover,
.gchat-voice-stage[data-state="paused"] #gchat-voice-start:not(:disabled):hover,
.gchat-voice-stage[data-state="review"] #gchat-voice-start:not(:disabled):hover {
  background:#e72b2b;border-color:#e72b2b;color:#fff;
}
.gchat-voice-clear,.gchat-voice-clear:hover{color:#ff3131}
/* A frase e as bolinhas formam um único grupo centralizado, sem posicionamento absoluto. */
.gchat-voice-stage .gchat-voice-status {
  display:flex;flex-wrap:wrap;justify-content:center;align-items:center;
  text-align:center;width:100%;padding:0;margin:0;box-sizing:border-box;
}
.gchat-voice-status-message{
  display:inline-flex;align-items:center;justify-content:center;gap:5px;
  min-width:0;max-width:100%;
}
.gchat-voice-status-message #gchat-voice-status {
  width:auto;max-width:100%;text-align:center;line-height:1.25;min-width:0;
}
.gchat-voice-status-message .gchat-voice-status-dots {
  position:static;transform:none;display:inline-flex;align-items:center;
  justify-content:center;flex:0 0 auto;gap:3px;width:19px;min-width:19px;
}
.gchat-voice-status-message .gchat-voice-status-dots[hidden]{display:none!important}
.gchat-voice-review-hint{white-space:nowrap;font-size:.71rem;letter-spacing:-.01em}
@media(max-width:340px){.gchat-voice-review-hint{font-size:.68rem}}
/* Ícone acompanha o estado sem modificar o tamanho do botão. */
.gchat-voice-stage .gchat-voice-ico-pause{display:none}
.gchat-voice-stage[data-state="recording"] .gchat-voice-ico-record{display:none}
.gchat-voice-stage[data-state="recording"] .gchat-voice-ico-pause{display:block;stroke-width:3}

/* v0.5.4.35 — Pausa apenas manual; editor ajustável no canto, inclusive por toque. */
.gchat-voice-edit-box{position:relative;min-width:0}
.gchat-voice-panel .gchat-voice-transcript .gchat-voice-edit-box textarea{
  width:100%;height:96px;min-height:76px;max-height:192px;
  resize:none;overflow-y:auto;padding-right:30px;
}
.gchat-voice-resize{
  position:absolute;right:2px;bottom:2px;width:28px;height:28px;
  border:0;background:transparent;color:#9ba7b6;cursor:ns-resize;
  touch-action:none;display:grid;place-items:center;border-radius:6px;padding:4px;
}
.gchat-voice-resize svg{width:16px;height:16px;stroke-width:1.6}
.gchat-voice-resize:hover{color:#52677c;background:#f4f6f9}
.gchat-voice-resize:focus-visible{outline:2px solid #2563eb;outline-offset:-2px}
@media(max-width:650px){
 .gchat-voice-panel .gchat-voice-transcript .gchat-voice-edit-box textarea{
   height:76px;min-height:76px;max-height:152px;
 }
}

/* v0.5.4.37 — editor inicial mais alto, com alça até o dobro da altura. */
.gchat-voice-panel .gchat-voice-transcript .gchat-voice-edit-box textarea{
  height:138px;min-height:138px;max-height:276px;
}
@media(max-width:650px){
  .gchat-voice-panel .gchat-voice-transcript .gchat-voice-edit-box textarea{
    height:112px;min-height:112px;max-height:224px;
  }
}

/* Respect short screens while keeping the taller default on normal devices. */
@media(max-height:600px){
  .gchat-voice-panel .gchat-voice-transcript .gchat-voice-edit-box textarea{
    height:92px;min-height:92px;max-height:184px;
  }
}
@media(max-height:450px){
  .gchat-voice-panel .gchat-voice-transcript .gchat-voice-edit-box textarea{
    height:66px;min-height:66px;max-height:132px;
  }
}

/* v0.5.4.40 — modal de preparação de imagens/arquivos e anexos agrupados no chat. */
.gchat-inline-attachments{display:grid;gap:10px;margin-bottom:8px}
.gchat-inline-attachment{display:grid;gap:7px}
.gchat-file-mark{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:6px;background:#eef2f6;color:#5b6879;font-size:.72rem;line-height:1}

.gchat-attach-overlay[hidden]{display:none!important}
.gchat-attach-overlay{position:fixed;inset:0;z-index:1280;background:rgba(11,23,44,.46);backdrop-filter:blur(4px);display:grid;place-items:center;padding:12px;overflow:hidden;overscroll-behavior:none}
.gchat-attach-panel{width:min(100%,760px);max-height:min(88vh,760px);display:grid;grid-template-rows:auto auto auto minmax(90px,1fr) auto auto;gap:12px;background:#fff;border:1px solid #e5e8ee;border-radius:22px;box-shadow:0 28px 78px rgba(15,23,42,.22);padding:18px;outline:none;overscroll-behavior:contain}
.gchat-attach-heading{display:flex;align-items:flex-start;gap:12px}

.gchat-attach-heading-icon svg,.gchat-attach-icon-button svg,.gchat-attach-picker svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8}
.gchat-attach-heading h2{margin:1px 0 4px;font-size:1.12rem;line-height:1.15;color:#1f2937}
.gchat-attach-heading p{margin:0;color:#6a7685;font-size:.9rem;line-height:1.4}
.gchat-attach-icon-button{margin-left:auto;width:38px;height:38px;border:0;border-radius:12px;background:#f5f6f8;color:#607086;display:grid;place-items:center;cursor:pointer}
.gchat-attach-icon-button:hover{background:#eceff3;color:#344255}
.gchat-attach-pickers{display:flex;flex-wrap:wrap;gap:10px}



.gchat-attach-progress{min-height:22px;color:#5f6d7f;font-size:.92rem;line-height:1.4}
.gchat-attach-progress.error{color:#b83148}
.gchat-attach-list{min-height:120px;overflow:auto;border:1px solid #e7ebf1;border-radius:16px;background:#fafbfd;padding:10px;display:grid;gap:10px;overscroll-behavior:contain}
.gchat-attach-empty{display:grid;place-items:center;text-align:center;padding:26px 16px;color:#7a8796;font-size:.92rem;line-height:1.5}
.gchat-attach-item{display:grid;grid-template-columns:86px minmax(0,1fr) auto;gap:12px;align-items:flex-start;border:1px solid #e3e7ee;border-radius:14px;background:#fff;padding:10px}
.gchat-attach-preview{width:86px;min-height:76px;border-radius:12px;background:#f1f4f8;display:grid;place-items:center;overflow:hidden}
.gchat-attach-preview img{display:block;width:100%;height:100%;max-height:120px;object-fit:cover}
.gchat-attach-preview-icon{font-size:1.6rem}
.gchat-attach-meta{min-width:0;display:grid;gap:4px}
.gchat-attach-name{font-weight:700;color:#243241;overflow-wrap:anywhere}
.gchat-attach-analysis{font-size:.9rem;color:#425062;font-weight:600}
.gchat-attach-summary,.gchat-attach-excerpt{font-size:.84rem;color:#6a7685;line-height:1.45;overflow-wrap:anywhere}
.gchat-attach-warning{font-size:.83rem;line-height:1.4;color:#b03a4e;background:#fff4f5;border:1px solid #f4d5da;border-radius:10px;padding:7px 9px}
.gchat-attach-remove{align-self:start;min-height:36px;padding:8px 11px;border:1px solid #d3dae4;border-radius:10px;background:#fff;color:#405061;font:inherit;font-weight:650;cursor:pointer}
.gchat-attach-remove:hover{background:#f7f8fa}

.gchat-attach-note-head{display:flex;justify-content:space-between;align-items:flex-end;gap:10px;flex-wrap:wrap}
.gchat-attach-note-head label{font-size:.93rem;font-weight:700;color:#2a3441}
.gchat-attach-note-head span{font-size:.8rem;color:#7a8795}


.gchat-attach-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.gchat-attach-primary,.gchat-attach-secondary{min-height:44px;padding:10px 16px;border-radius:12px;font:inherit;font-weight:700;cursor:pointer;border:1px solid transparent}
.gchat-attach-primary{background:#2563eb;color:#fff;border-color:#2563eb}
.gchat-attach-primary:hover:not(:disabled){background:#1e56d2;border-color:#1e56d2}
.gchat-attach-primary:disabled{opacity:.55;cursor:default}
.gchat-attach-secondary{background:#fff;border-color:#d1d8e2;color:#39485a}
.gchat-attach-secondary:hover:not(:disabled){background:#f7f8fa}
@media(max-width:760px){
  .gchat-attach-panel{width:min(100%,680px);max-height:min(92vh,860px);padding:14px;border-radius:18px;grid-template-rows:auto auto auto minmax(80px,1fr) auto auto}
  .gchat-attach-item{grid-template-columns:72px minmax(0,1fr);gap:10px}
  .gchat-attach-remove{grid-column:2;justify-self:start}
  .gchat-attach-preview{width:72px;min-height:68px}
  .gchat-attach-actions{display:grid;grid-template-columns:1fr 1fr}
}
@media(max-width:480px){
  .gchat-attach-overlay{padding:8px}
  
  .gchat-attach-heading h2{font-size:1.04rem}
  .gchat-attach-heading p{font-size:.86rem}
  .gchat-attach-item{padding:9px;border-radius:13px}
  
}

/* v0.5.4.41 — galeria horizontal com varredura sequencial, sem OCR visível. */
.gchat-attach-panel{width:min(100%,670px);max-height:min(92dvh,730px);grid-template-rows:auto auto auto minmax(82px,1fr) auto auto;gap:12px;padding:17px 18px;overflow:hidden}
.gchat-attach-heading{align-items:center}

.gchat-attach-heading h2{font-size:1.05rem;margin:0 0 2px}
.gchat-attach-heading p{font-size:.81rem}
.gchat-attach-pickers{gap:8px}


.gchat-attach-progress{min-height:0;font-size:.8rem;line-height:1.2}
.gchat-attach-progress:empty{display:none}
.gchat-attach-content{min-height:90px;overflow-y:auto;display:flex;flex-direction:column;gap:15px;border:1px solid #e9edf2;border-radius:15px;padding:12px;background:#fbfcfd;overscroll-behavior:contain}
.gchat-attach-section{min-width:0;display:grid;gap:8px}
.gchat-attach-section[hidden],.gchat-attach-empty[hidden],.gchat-attach-nav button[hidden]{display:none!important}



.gchat-attach-nav{display:flex;gap:5px;margin-left:auto}
.gchat-attach-nav button{width:29px;height:29px;border-radius:9px;border:1px solid #e1e6ec;background:#fff;color:#596a7a;cursor:pointer;display:grid;place-items:center}
.gchat-attach-nav button:disabled{opacity:.35;cursor:default}
.gchat-attach-nav svg{width:16px;height:16px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}
.gchat-attach-gallery{min-width:0;display:flex;gap:10px;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x proximity;scroll-padding-inline:2px;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding:2px 1px 6px;outline-offset:1px}
.gchat-attach-gallery::-webkit-scrollbar{display:none}
.gchat-attach-photo{position:relative;flex:0 0 clamp(106px,24vw,147px);height:132px;background:#edf1f5;border:1px solid #e3e8ef;border-radius:13px;overflow:hidden;scroll-snap-align:start;isolation:isolate}
.gchat-attach-photo img{width:100%;height:100%;display:block;object-fit:cover;user-select:none}
/* Ícone vetorial exato no centro; o mouse não altera o fundo nem a cor. */
.gchat-attach-photo-remove{
  position:absolute;z-index:4;right:6px;top:6px;width:24px;height:24px;
  display:grid;place-items:center;flex:none;padding:0;margin:0;line-height:0;
  border:1px solid rgba(255,255,255,.8);border-radius:50%;
  background:rgba(255,255,255,.96);color:#3e4a59;
  box-shadow:0 1px 6px rgba(15,23,42,.14);
  cursor:pointer;transition:none;
}
.gchat-attach-photo-remove:hover,.gchat-attach-photo-remove:active{
  background:rgba(255,255,255,.96);color:#3e4a59;border-color:rgba(255,255,255,.8);
}
.gchat-attach-photo-remove svg{
  display:block;width:13px;height:13px;fill:none;stroke:currentColor;
  stroke-width:2;stroke-linecap:round;stroke-linejoin:round;
}
.gchat-attach-photo-remove:focus-visible{outline:2px solid #2563eb;outline-offset:2px}
/* Um único traço azul fino se desloca por toda a altura da foto.
   A animação alternada faz o movimento contínuo de ida e volta. */


.gchat-attach-photo.is-queued img{opacity:1}
@keyframes gchat-attach-scan{from{top:0}to{top:calc(100% - 1px)}}
.gchat-attach-files-list{display:grid;gap:7px}
.gchat-attach-document{display:flex;align-items:center;gap:10px;padding:9px 10px;border:1px solid #e1e6ed;border-radius:11px;background:#fff;min-width:0}
.gchat-attach-document-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:8px;background:#f1f4f8;color:#6c7e90;font-size:1rem;flex-shrink:0}
.gchat-attach-document-name{font-size:.83rem;font-weight:580;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#4b586b;min-width:0}
.gchat-attach-document-remove{margin-left:auto;border:0;border-radius:50%;width:24px;height:24px;flex:0 0 24px;display:grid;place-items:center;font:700 20px/1 Arial,sans-serif;background:#f5f7f9;color:#778393;cursor:pointer}
.gchat-attach-document-remove:hover{color:#f03b3b;background:#fff0f0}
.gchat-attach-empty{padding:30px 15px;color:#93a0ad;font-size:.85rem}




.gchat-attach-actions{margin-top:1px}
.gchat-attach-actions button{min-height:41px;font-size:.88rem}
@media(max-width:650px){
  .gchat-attach-panel{max-height:min(92dvh,750px);gap:10px;padding:12px;grid-template-rows:auto auto auto minmax(80px,1fr) auto auto}
  .gchat-attach-photo{flex-basis:115px;height:120px}
  .gchat-attach-nav{display:none}
  
}
@media(max-height:520px){
  .gchat-attach-panel{max-height:96dvh;gap:7px;padding:9px}
  
  .gchat-attach-photo{height:94px}
  
  .gchat-attach-content{min-height:58px}
}
@media(prefers-reduced-motion:reduce){
  
  .gchat-attach-gallery{scroll-behavior:auto}
}
/* Garante largura real do viewport em celulares estreitos (sem overflow do grid). */
.gchat-attach-overlay{box-sizing:border-box;grid-template-columns:minmax(0,1fr)}
.gchat-attach-panel{box-sizing:border-box;max-width:100%;min-width:0;justify-self:center}
.gchat-attach-content,.gchat-attach-gallery,.gchat-attach-note-wrap{min-width:0}

/* v0.5.4.42 — upload visual primeiro; varredura em fila, só após o upload. */
.gchat-attach-section{grid-template-columns:minmax(0,1fr);width:100%;max-width:100%}
.gchat-attach-gallery{width:100%;max-width:100%;min-width:0;box-sizing:border-box;touch-action:pan-x pan-y;cursor:grab}
.gchat-attach-gallery:active{cursor:grabbing}
.gchat-attach-photo{flex-shrink:0}
.gchat-attach-photo-remove[hidden],.gchat-attach-photo-retry[hidden]{display:none!important}
.gchat-attach-photo-retry{position:absolute;z-index:4;inset:auto auto 7px 7px;width:27px;height:27px;display:grid;place-items:center;border-radius:50%;border:1px solid #ffffffc9;color:#455566;background:#fffffff2;font:600 23px/1 Arial,sans-serif;cursor:pointer}
.gchat-attach-photo.is-image-loading{background:#edf1f5}
.gchat-attach-photo.is-image-loading img{background:#edf1f5}


.gchat-attach-nav{flex:0 0 auto}
.gchat-attach-nav button{touch-action:manipulation}

/* v0585 — opções em uma linha, azuis e sem bordas/efeitos; carrossel livre. */
.gchat-choice-dock[hidden],.gchat-composer[hidden],.gchat-choice-arrow[hidden]{display:none!important}
.gchat-choice-dock{position:relative;display:flex;align-items:center;gap:7px;min-width:0;width:100%;padding:1px 0}
.gchat-choice-track{display:flex;flex:1;min-width:0;gap:8px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:none;overscroll-behavior-x:contain;scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;padding:4px 1px;touch-action:pan-x pan-y;cursor:grab}
.gchat-choice-track::-webkit-scrollbar{display:none;width:0;height:0}
.gchat-choice-track.dragging{cursor:grabbing;scroll-behavior:auto;user-select:none}
.gchat-choice-item{box-sizing:border-box;display:flex;flex:0 0 204px;width:204px;min-width:204px;height:auto;min-height:47px;align-items:center;justify-content:center;text-align:center;padding:8px 11px;border:0;border-radius:11px;background:#3368b8;color:#fff;font-size:.82rem;font-weight:660;line-height:1.25;white-space:normal;overflow:hidden;cursor:pointer;transition:none;box-shadow:none}
.gchat-choice-label{display:block;min-width:0;max-width:100%;overflow-wrap:anywhere;white-space:normal}
.gchat-choice-item:disabled{opacity:.65;cursor:wait}
.gchat-choice-write{flex:0 0 38px;width:38px;height:38px;display:grid;place-items:center;border:1px solid #e3e5e8;border-radius:50%;background:#f5f5f6;color:#566273;cursor:pointer}
.gchat-choice-write svg,.gchat-choice-arrow svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.gchat-choice-write:hover{background:#e9ebed}
.gchat-choice-arrow{position:absolute;z-index:2;top:50%;transform:translateY(-50%);width:29px;height:29px;display:grid;place-items:center;padding:0;border:1px solid #e5e8ec;border-radius:50%;background:rgba(255,255,255,.95);color:#687689;box-shadow:0 1px 5px #15253a10;cursor:pointer;opacity:.85;transition:opacity .15s,background .15s}
.gchat-choice-arrow:hover{opacity:1;background:#f6f7f8;color:#263b58}
.gchat-choice-arrow--prev{left:3px}.gchat-choice-arrow--next{right:47px}
@media(max-width:767px){.gchat-choice-arrow{display:none!important}.gchat-choice-item{flex-basis:192px;width:192px;min-width:192px;height:auto;min-height:46px;font-size:.81rem}.gchat-choice-dock{gap:5px}.gchat-choice-write{flex-basis:35px;width:35px;height:35px}}
/* Celulares: duas opções completas e uma amostra (~10%) da próxima.
   Os cartões nunca aumentam além dos 192 px originais. O trilho permanece
   de rolagem livre; a regra só reduz a largura quando a tela exige. */
@media(max-width:480px){
  .gchat-choice-track{max-width:418px}
  .gchat-choice-item{
    flex:0 0 min(192px, calc((100% - 15px) / 2.1));
    width:min(192px, calc((100% - 15px) / 2.1));
    min-width:0;
  }
}
@media(prefers-reduced-motion:reduce){.gchat-choice-item,.gchat-choice-arrow{transition:none}}

/* v0588 — galeria editorial e documentos em painéis separados; sem scan visual. */
.gchat-attach-overlay{background:rgba(12,18,30,.60);backdrop-filter:blur(8px);padding:18px}
.gchat-attach-panel{width:min(100%,590px);max-height:min(93dvh,840px);grid-template-rows:auto minmax(0,1fr) auto auto auto;gap:13px;border-radius:24px;border:1px solid #ecedf0;background:#fff;padding:20px;box-shadow:0 26px 90px rgba(13,23,39,.28)}
.gchat-attach-heading{align-items:center;gap:8px}
.gchat-attach-eyebrow{font-size:.66rem;font-weight:800;letter-spacing:.13em;color:#7e8b9a}
.gchat-attach-heading h2{font-size:1.18rem;letter-spacing:-.035em;margin:4px 0 2px;color:#142131}
.gchat-attach-heading p{font-size:.79rem;color:#81909f}
.gchat-attach-icon-button{width:34px;height:34px;border-radius:50%;background:#f2f4f6;flex:none}
.gchat-attach-content{min-height:0;min-width:0;display:block;overflow-y:auto;overflow-x:hidden;background:transparent;border:0;padding:0;border-radius:0;scrollbar-width:thin}
.gchat-attach-section{display:flex;flex-direction:column;gap:10px;width:100%;min-width:0;max-width:100%}
.gchat-attach-section[hidden],.gchat-attach-doc-empty[hidden],.gchat-attach-cover-empty[hidden],.gchat-attach-cover-label[hidden],.gchat-attach-cover-remove[hidden],.gchat-attach-cover-image[hidden],.gchat-attach-image-editor[hidden],.gchat-attach-picker[hidden],.gchat-attach-document-retry[hidden]{display:none!important}





.gchat-attach-cover{position:relative;width:100%;height:clamp(185px,31dvh,310px);min-height:180px;flex:0 0 auto;overflow:hidden;background:#f4f5f7;border:1px solid #e6e9ed;border-radius:17px;display:grid;place-items:center}
.gchat-attach-cover img{width:100%;height:100%;display:block;object-fit:contain;background:#e9edf1}
.gchat-attach-cover-empty{height:100%;width:100%;display:flex;flex-direction:column;gap:7px;align-items:center;justify-content:center;padding:18px;text-align:center;color:#8593a3}
.gchat-attach-cover-empty>span{display:grid;place-items:center;width:65px;height:65px;border-radius:19px;background:#e9edf2;color:#74859a;font-size:2.1rem}
.gchat-attach-cover-empty strong{color:#4a586b;font-size:.94rem}
.gchat-attach-cover-empty small{max-width:230px;font-size:.76rem;line-height:1.4}
.gchat-attach-cover-label{position:absolute;left:11px;top:11px;border-radius:20px;background:#171e2bdb;color:#fff;padding:6px 11px;letter-spacing:.01em;font-size:.69rem;font-weight:750}
.gchat-attach-cover-remove{position:absolute;right:10px;top:10px;width:32px;height:32px;display:grid;place-items:center;border:1px solid #ffffff8c;border-radius:50%;background:#171e2bd1;color:#fff;font:24px/1 Arial,sans-serif;cursor:pointer}

.gchat-attach-gallery{display:flex;width:100%;max-width:100%;min-height:76px;gap:8px;padding:3px 2px 7px;scroll-snap-type:x mandatory;overflow-x:auto;touch-action:pan-x}
.gchat-attach-photo{position:relative;flex:0 0 79px;height:74px;border-radius:11px;border:2px solid transparent;background:#edf1f5;scroll-snap-align:start;overflow:hidden;transition:border-color .12s,box-shadow .12s}
.gchat-attach-photo.is-active{border-color:#93acee}
.gchat-attach-photo.is-cover{border-color:#2563eb;box-shadow:0 0 0 1px #2563eb33}
.gchat-attach-thumb{display:block;width:100%;height:100%;margin:0;padding:0;border:0;background:#eff2f5;cursor:pointer;overflow:hidden}
.gchat-attach-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.gchat-attach-photo.is-queued .gchat-attach-thumb{opacity:.75}
.gchat-attach-photo-remove{z-index:3;top:3px;right:3px;width:21px;height:21px;display:grid;place-items:center;background:#101924bd;border:1px solid #ffffff80;border-radius:50%;color:#fff;padding:0;line-height:1}
.gchat-attach-photo-remove svg{width:11px;height:11px;stroke-width:2.6}
.gchat-attach-thumb-cover{position:absolute;bottom:3px;left:4px;border-radius:4px;padding:2px 4px;background:#2563eb;color:#fff;font-size:.52rem;font-weight:800;letter-spacing:.06em;pointer-events:none;display:none}
.gchat-attach-photo.is-cover .gchat-attach-thumb-cover{display:inline}
.gchat-attach-photo-retry{z-index:4;inset:auto 5px 4px auto;width:23px;height:23px;color:#fff;background:#cc3f3f;font-size:18px}
.gchat-attach-photo.is-preview-pending .gchat-attach-thumb{background:repeating-linear-gradient(125deg,#edf1f5,#edf1f5 9px,#dce3e8 10px,#dce3e8 18px)}


.gchat-attach-image-editor-title{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.gchat-attach-image-editor-title label{font-size:.83rem;font-weight:750;color:#263a51}
.gchat-attach-image-editor-title span{font-size:.73rem;color:#8390a1}





.gchat-attach-doc-heading{display:flex;align-items:center;gap:11px;border:1px solid #e7eaf0;border-radius:16px;padding:16px;background:#f8fafc}
.gchat-attach-doc-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:#e8edf3;color:#4b5e72;font-size:1.3rem}
.gchat-attach-doc-heading>div{flex:1;min-width:0}
.gchat-attach-doc-heading strong{color:#263647;font-size:.94rem}
.gchat-attach-doc-heading p{font-size:.76rem;color:#7d8a99;margin:4px 0 0;line-height:1.4}
.gchat-attach-doc-heading>span:last-child{font-size:.75rem;color:#7d8996}
.gchat-attach-doc-empty{margin:0;display:grid;place-items:center;min-height:145px;padding:15px;text-align:center;border:1px dashed #dbe2eb;border-radius:13px;color:#7d8b9b;font-size:.83rem}
.gchat-attach-files-list{display:grid;gap:10px}
.gchat-attach-document{padding:12px;border-radius:13px;border:1px solid #e1e6ec;background:#fff}
.gchat-attach-document-icon{width:41px;height:41px;border-radius:11px;font-size:1.15rem}
.gchat-attach-document-meta{min-width:0;display:grid;gap:4px;flex:1}
.gchat-attach-document-name{font-weight:710;color:#3b4a59;display:block;font-size:.82rem;max-width:100%}
.gchat-attach-document-status{font-size:.72rem;color:#7d8c9b}
.gchat-attach-document-retry{border:0;background:#e7efff;color:#2256b5;padding:7px;border-radius:8px;font-size:.73rem;cursor:pointer}
.gchat-attach-document-remove{margin-left:4px;width:28px;height:28px;flex-basis:28px}




.gchat-attach-progress{min-height:0;font-size:.77rem;line-height:1.25;color:#62768a}
.gchat-attach-progress:empty{display:none}
.gchat-attach-bottom{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.gchat-attach-tabs{display:flex;align-items:center;padding:3px;gap:2px;background:#f0f2f5;border:1px solid #e6e8ed;border-radius:11px}
.gchat-attach-tab{border:0;background:transparent;color:#69788a;padding:9px 12px;border-radius:8px;font:inherit;font-size:.79rem;font-weight:700;cursor:pointer}
.gchat-attach-tab.active{background:#fff;color:#1f3a61;box-shadow:0 1px 5px #16273813}


.gchat-attach-actions{display:grid;grid-template-columns:1fr 1.7fr;gap:10px;margin:0}
.gchat-attach-actions button{height:43px;min-height:43px;font-size:.84rem}
.gchat-attach-primary{border-radius:11px;background:#2563eb;border-color:#2563eb}
.gchat-attach-secondary{border-radius:11px;background:#f5f6f8;border-color:#e9edf0}
.gchat-attachment-caption{font-size:.73rem;line-height:1.35;color:#68798b;overflow-wrap:anywhere}
.gchat-image-review-warning{display:flex;justify-content:space-between;align-items:center;gap:12px;background:#fff4ec;border:1px solid #e9b79a;border-radius:12px;padding:9px 12px;margin:6px 10px;color:#814326;font-size:.78rem;line-height:1.35}
.gchat-image-review-warning button{border:1px solid #d79c76;background:#fff;border-radius:8px;color:#814326;padding:7px 9px;font-weight:750;cursor:pointer;flex:none}
@media(max-width:650px){
  .gchat-attach-overlay{padding:0;place-items:end center;background:rgba(5,13,24,.62)}
  .gchat-attach-panel{width:100%;max-width:none;max-height:97dvh;height:min(97dvh,850px);border-radius:23px 23px 0 0;padding:16px 15px max(13px,env(safe-area-inset-bottom));gap:11px;box-shadow:0 -12px 42px #0a183c33;grid-template-rows:auto minmax(0,1fr) auto auto auto}
  .gchat-attach-heading h2{font-size:1.14rem}
  .gchat-attach-cover{height:clamp(190px,29dvh,310px)}
  .gchat-attach-content{overflow-y:auto;overscroll-behavior:contain}
  .gchat-attach-gallery{gap:7px}
  .gchat-attach-photo{flex-basis:75px;height:73px}
  .gchat-attach-nav{display:flex}
  
  .gchat-attach-tab{font-size:.76rem;padding:8px 10px}
  
  
}
@media(max-height:620px){
  .gchat-attach-panel{height:97dvh;gap:8px}
  .gchat-attach-cover{height:180px;min-height:165px}
  .gchat-attach-heading p{display:none}
  
  
}
@media(prefers-reduced-motion:reduce){.gchat-attach-photo{transition:none}}
/* Mantém descrição por foto utilizável sem ficar escondida sob o rodapé. */
@media(min-width:651px){.gchat-attach-cover{height:clamp(185px,26dvh,240px)}}
@media(max-width:650px){
  .gchat-attach-cover{height:clamp(165px,22dvh,200px);min-height:165px}
  .gchat-attach-photo{height:65px;flex-basis:69px}
  .gchat-attach-gallery{min-height:69px}
  
  
  
}
@media(min-width:651px){
  .gchat-attach-cover{height:205px}
  
}

/* v0589 — GCHAT mídias: foto em primeiro lugar, visual leve, toque e deslize. */
.gchat-attach-overlay{background:rgba(19,28,42,.52);backdrop-filter:blur(5px);padding:16px}
.gchat-attach-panel{box-sizing:border-box;width:min(100%,548px);height:min(708px,calc(100dvh - 32px));max-height:calc(100dvh - 32px);min-height:0;grid-template-rows:auto minmax(0,1fr) auto auto auto;gap:10px;padding:17px 18px 16px;background:#fff;border:1px solid #e8ebef;border-radius:22px;box-shadow:0 24px 76px #101c332a;overflow:hidden}
.gchat-attach-heading{align-items:center;gap:12px;min-height:35px}
.gchat-attach-eyebrow{font-size:.57rem;letter-spacing:.17em;color:#97a3b3;font-weight:800}
.gchat-attach-heading h2{font-size:1.05rem;line-height:1.17;font-weight:780;letter-spacing:-.03em;margin:2px 0 0;color:#1a293a}
.gchat-attach-heading p{display:none!important}
.gchat-attach-icon-button{width:32px;height:32px;border-radius:50%;background:#f2f4f6;color:#728193}
.gchat-attach-icon-button svg{width:16px;height:16px}
.gchat-attach-content{min-height:0;min-width:0;display:block;padding:0;border:0;background:none;overflow-y:auto;overflow-x:hidden;scrollbar-width:none;-ms-overflow-style:none;overscroll-behavior:contain;touch-action:pan-y}
.gchat-attach-content::-webkit-scrollbar{display:none;width:0;height:0}
.gchat-attach-section{display:flex;flex-direction:column;gap:10px;min-width:0;max-width:100%}
.gchat-attach-cover{position:relative;box-sizing:border-box;display:block;width:100%;height:clamp(186px,31dvh,262px);min-height:0;overflow:hidden;border:1px solid #e4e9ef;border-radius:17px;background:#f2f5f8}
/* position:absolute impede a imagem de ser empurrada para fora da capa pelo grid antigo. */
.gchat-attach-cover>img{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:contain;background:#eff2f5}
.gchat-attach-cover-empty{box-sizing:border-box;position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;width:100%;height:100%;padding:16px;border:1px dashed #ced9e6;border-radius:16px;background:#f6f8fb;color:#3967a5;cursor:pointer;transition:background .15s,border-color .15s}
.gchat-attach-cover-empty:hover,.gchat-attach-cover-empty:focus-visible{background:#edf4ff;border-color:#9bb9ec;outline:none}
.gchat-attach-cover-empty>svg{width:41px;height:41px;padding:10px;box-sizing:content-box;border-radius:17px;background:#e5eefb;color:#3a70bb}
.gchat-attach-cover-empty>span{font-size:.87rem;font-weight:750}
.gchat-attach-cover-fallback{position:absolute;inset:0;display:grid;place-items:center;padding:20px;font-size:.8rem;color:#607286;background:#f2f5f8}
.gchat-attach-cover-label{z-index:2;left:11px;top:11px;padding:5px 10px;border-radius:9px;background:#1b2939cc;font-size:.7rem;letter-spacing:0}
.gchat-attach-cover-remove{z-index:3;right:9px;top:9px;width:29px;height:29px;font-size:22px;background:#1b2939b5;line-height:1}
.gchat-attach-cover-empty[hidden],.gchat-attach-cover>img[hidden],.gchat-attach-cover-fallback[hidden],.gchat-attach-gallery[hidden],.gchat-attach-files-count:empty{display:none!important}
.gchat-attach-nav,.gchat-attach-mini-row,.gchat-attach-help,.gchat-attach-image-tip{display:none!important}
.gchat-attach-gallery{box-sizing:border-box;display:flex;align-items:stretch;gap:10px;width:100%;max-width:100%;height:auto;min-height:101px;padding:3px 2px 5px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;scrollbar-width:none;-webkit-overflow-scrolling:touch;touch-action:pan-x;overscroll-behavior-x:contain}
.gchat-attach-gallery::-webkit-scrollbar{display:none!important;width:0;height:0}
.gchat-attach-photo{position:relative;flex:0 0 96px;width:96px;height:94px;border-radius:13px;background:#eff2f5;border:2px solid transparent;box-shadow:none;scroll-snap-align:start;overflow:hidden}
.gchat-attach-photo.is-cover{border-color:#3478e8;box-shadow:0 0 0 1px #3478e81a}
.gchat-attach-photo.is-active:not(.is-cover){border-color:#aabfe3}
.gchat-attach-photo.is-failed{border-color:#e3a7ad}
.gchat-attach-thumb{display:block;width:100%;height:100%;cursor:pointer}
.gchat-attach-photo.is-queued .gchat-attach-thumb{opacity:1}
.gchat-attach-photo-remove{z-index:3;top:5px;right:5px;width:23px;height:23px;background:#192a3ecb;border:1px solid #ffffffb3}
.gchat-attach-photo-remove svg{width:12px;height:12px}
.gchat-attach-thumb-cover{left:4px;bottom:4px;border-radius:5px;font-size:.52rem;padding:3px 5px;background:#3176de}
.gchat-attach-photo-retry{z-index:4;right:5px;bottom:5px;left:auto;width:30px;height:30px;border-radius:50%;background:#b94c53;border:2px solid #fff;color:#fff;font-size:23px;line-height:1}



.gchat-attach-photo.is-failed .gchat-attach-thumb-cover{display:none}
.gchat-attach-add-photo{box-sizing:border-box;display:grid;place-items:center;flex:0 0 96px;width:96px;height:94px;padding:0;border:1.5px dashed #b8c9dc;border-radius:13px;background:#f6f9fc;color:#4d79b4;cursor:pointer;scroll-snap-align:start;transition:background .15s}
.gchat-attach-add-photo:hover,.gchat-attach-add-photo:focus-visible{background:#eaf2fe;border-color:#719ce0;outline:none}
.gchat-attach-add-photo>span{font:400 35px/1 Arial,sans-serif;margin-top:-2px}
.gchat-attach-add-photo:disabled{opacity:.5;cursor:default}

.gchat-attach-image-editor-title label{font-size:.76rem;color:#5c6c80;font-weight:740}
.gchat-attach-image-editor-title span{font-size:.7rem;color:#97a3b3}


/* Selecionar a foto já define a capa — não mostramos um segundo controle redundante. */




.gchat-attach-progress{min-height:0;margin:0;font-size:.73rem;line-height:1.3}
.gchat-attach-progress:empty{display:none!important}
.gchat-attach-progress.error{color:#bc4754}
.gchat-attach-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:36px}
.gchat-attach-tabs{display:inline-flex;padding:3px;gap:2px;border:0;background:#f0f3f7;border-radius:10px}
.gchat-attach-tab{padding:8px 17px;border-radius:8px;font-size:.77rem;line-height:1;font-weight:700;color:#708095}
.gchat-attach-tab.active{box-shadow:0 1px 3px #12213c13;color:#2860b0}
.gchat-attach-image-count,.gchat-attach-files-count{font-size:.71rem;font-weight:590;color:#9ba8b7}
.gchat-attach-files-count{align-self:flex-end;margin-top:2px}
.gchat-attach-actions{display:grid;grid-template-columns:1fr 1.5fr;gap:9px;margin:0}
.gchat-attach-actions button{min-height:43px;height:43px;border-radius:11px;font-size:.84rem;font-weight:750}
.gchat-attach-secondary{background:#f3f5f7;border-color:#e7ebf0;color:#536275}
.gchat-attach-primary{background:#286bdd;border-color:#286bdd}
.gchat-attach-primary:disabled{opacity:.48}
.gchat-attach-add-document{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;min-height:92px;padding:16px;border:1.5px dashed #b9cada;border-radius:14px;background:#f6f8fc;color:#3b6cab;font:inherit;font-size:.86rem;font-weight:700;cursor:pointer}
.gchat-attach-add-document-plus{font:400 28px/1 Arial,sans-serif}
.gchat-attach-add-document:hover{background:#eef5ff;border-color:#7ca4df}
.gchat-attach-document-pane{gap:10px}
.gchat-attach-doc-empty{display:none!important}
.gchat-attach-files-list{gap:8px}
.gchat-attach-document{padding:10px;border-radius:12px}
@media(max-width:650px){
  .gchat-attach-overlay{padding:0;place-items:end center}
  .gchat-attach-panel{width:100%;height:min(760px,calc(100dvh - 8px));max-height:calc(100dvh - 8px);padding:14px 15px max(14px,env(safe-area-inset-bottom));gap:9px;border-radius:22px 22px 0 0;border-bottom:0}
  .gchat-attach-heading{min-height:32px}
  .gchat-attach-heading h2{font-size:1rem}
  .gchat-attach-icon-button{width:31px;height:31px}
  .gchat-attach-cover{height:clamp(165px,26dvh,215px);min-height:0}
  .gchat-attach-gallery{gap:9px;min-height:100px;scroll-snap-type:x proximity}
  .gchat-attach-photo,.gchat-attach-add-photo{flex-basis:94px;width:94px;height:94px}
  
  .gchat-attach-tab{padding:9px 17px}
  .gchat-attach-actions button{height:44px;min-height:44px}
}
@media(max-width:650px) and (max-height:700px){
  .gchat-attach-panel{padding-top:11px;gap:7px}
  .gchat-attach-cover{height:clamp(126px,23dvh,174px)}
  .gchat-attach-gallery{min-height:87px}
  .gchat-attach-photo,.gchat-attach-add-photo{height:82px;width:85px;flex-basis:85px}
  
  
}
@media(max-height:510px){
  .gchat-attach-panel{gap:6px}
  .gchat-attach-cover{height:124px}
}
/* Modal tem altura do conteúdo, sem espaço vazio artificial; se a tela for
   curta, somente o conteúdo interno pode rolar, com a barra invisível. */
.gchat-attach-panel{height:auto;max-height:calc(100dvh - 26px);grid-template-rows:auto minmax(0,auto) auto auto auto}
@media(max-width:650px){.gchat-attach-panel{height:auto;max-height:calc(100dvh - 8px);grid-template-rows:auto minmax(0,auto) auto auto auto}}
/* Estado vazio: sem o quadrado herdado do ícone antigo sobre o texto. */
.gchat-attach-cover-empty>span{display:block;width:auto;height:auto;min-width:0;min-height:0;padding:0;margin:0;border-radius:0;background:transparent;color:#3967a5;font-size:.87rem;line-height:1.25;font-weight:760}

/* v0590 — carrossel verdadeiro 3:4, capa fixa, duas abas com altura idêntica. */
.gchat-attach-overlay{padding:14px}
.gchat-attach-panel{height:min(612px,calc(100dvh - 28px));max-height:calc(100dvh - 28px);grid-template-rows:auto minmax(0,1fr) auto auto auto;overflow:hidden;gap:12px}
.gchat-attach-content{height:100%;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.gchat-attach-content::-webkit-scrollbar{display:none!important;width:0;height:0}
.gchat-attach-image-pane,.gchat-attach-document-pane{height:100%;min-height:0;align-content:start}
.gchat-attach-image-pane{display:flex;flex-direction:column;gap:15px}
.gchat-attach-photo-strip{display:flex;align-items:stretch;gap:11px;width:100%;min-width:0;height:174px;max-width:100%}
.gchat-attach-cover{position:relative;box-sizing:border-box;flex:0 0 129px;width:129px;height:172px;min-height:0;max-height:none;aspect-ratio:3/4;border:2px solid #4081df;border-radius:14px;background:#edf2f7;overflow:hidden}
.gchat-attach-cover>img{width:100%;height:100%;object-fit:cover;background:#eef2f6}
.gchat-attach-cover-empty{gap:5px;background:#f4f8fd;border:0;padding:10px}
.gchat-attach-cover-empty>svg{width:25px;height:25px;padding:7px;border-radius:11px}
.gchat-attach-cover-empty>span{font-size:1.2rem;line-height:1}
.gchat-attach-cover-label{left:5px;bottom:6px;top:auto;font-size:.65rem;padding:4px 8px;border-radius:7px}
.gchat-attach-cover-remove{width:25px;height:25px;right:5px;top:5px;font-size:19px}
.gchat-attach-gallery{box-sizing:border-box;flex:1 1 0;min-width:0;width:0;height:174px;min-height:0;max-height:174px;display:flex;align-items:stretch;gap:9px;overflow-x:auto;overflow-y:hidden;padding:1px 2px 3px;scroll-snap-type:x proximity;scroll-padding-inline:1px;touch-action:pan-x;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;scrollbar-width:none}
.gchat-attach-gallery::-webkit-scrollbar{display:none!important;width:0;height:0}
.gchat-attach-photo{box-sizing:border-box;flex:0 0 129px;width:129px;height:172px;aspect-ratio:3/4;border:2px solid transparent;border-radius:14px;scroll-snap-align:start}
.gchat-attach-photo.is-active{border-color:#5089d8}
.gchat-attach-photo.is-cover{border-color:#5089d8}
.gchat-attach-photo img{height:100%;width:100%;object-fit:cover}
.gchat-attach-add-photo{box-sizing:border-box;flex:0 0 129px;width:129px;height:172px;aspect-ratio:3/4;min-height:0;border-radius:14px;background:#f4f8fd}
.gchat-attach-add-photo>span{font-size:36px}




.gchat-attach-doc-empty[hidden]{display:none!important}
.gchat-attach-document-pane{overflow:visible}


.gchat-attach-progress{max-height:40px;overflow-y:auto;scrollbar-width:none}
.gchat-attach-progress::-webkit-scrollbar{display:none}
.gchat-attach-bottom{margin-top:auto}
@media(max-width:650px){
 .gchat-attach-overlay{padding:0}
 .gchat-attach-panel{height:min(610px,calc(100dvh - 8px));max-height:calc(100dvh - 8px);grid-template-rows:auto minmax(0,1fr) auto auto auto;padding:14px 15px max(14px,env(safe-area-inset-bottom));gap:11px}
 .gchat-attach-photo-strip{height:151px;gap:8px}
 .gchat-attach-cover{flex:0 0 110px;width:110px;height:148px}
 .gchat-attach-gallery{height:151px;max-height:151px;gap:8px}
 .gchat-attach-photo,.gchat-attach-add-photo{flex:0 0 110px;width:110px;height:148px}
 
}
@media(max-width:360px){
 .gchat-attach-photo-strip{height:139px;gap:7px}
 .gchat-attach-cover{flex-basis:100px;width:100px;height:134px}
 .gchat-attach-gallery{height:139px;max-height:139px}
 .gchat-attach-photo,.gchat-attach-add-photo{flex-basis:100px;width:100px;height:134px}
}
@media(max-height:560px){
 .gchat-attach-panel{height:calc(100dvh - 8px);gap:7px;padding-top:9px;padding-bottom:9px}
 .gchat-attach-photo-strip{height:120px}
 .gchat-attach-cover{width:87px;flex-basis:87px;height:117px}
 .gchat-attach-gallery{height:120px;max-height:120px}
 .gchat-attach-photo,.gchat-attach-add-photo{flex-basis:87px;width:87px;height:117px}
 
}

/* v0590: mesmo tamanho entre Fotos e Arquivos, sem grande área vazia. */
.gchat-attach-panel{height:min(492px,calc(100dvh - 28px))}
@media(max-width:650px){.gchat-attach-panel{height:min(484px,calc(100dvh - 8px))}}
@media(max-height:560px){.gchat-attach-panel{height:calc(100dvh - 8px)}}

/* v0591 — Um campo geral para fotos e arquivos; cartão Destaque e documentos 3:4. */
.gchat-attach-panel{height:min(492px,calc(100dvh - 28px));max-height:calc(100dvh - 28px);grid-template-rows:auto minmax(0,1fr) auto auto auto;overflow:hidden}




.gchat-attach-content{overflow-y:auto;scrollbar-width:none}
.gchat-attach-content::-webkit-scrollbar{display:none!important}
.gchat-attach-gallery[hidden]{display:none!important}
.gchat-attach-cover{border-color:#dbe4ed}
.gchat-attach-cover-label{position:absolute;z-index:3;inset:auto 0 0 0;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:29px;margin:0;padding:0 4px;border-radius:0;background:#3176db;color:#fff;font-size:.71rem;font-weight:700;letter-spacing:.015em;pointer-events:none}
.gchat-attach-cover-remove,.gchat-attach-photo-remove,.gchat-attach-document-remove{background:#f4f6f9!important;color:#58677a!important;border:1px solid #e4e8ee!important;box-shadow:0 1px 3px #0a17231a;border-radius:50%}
.gchat-attach-photo-remove svg{stroke:#58677a}
.gchat-attach-cover-remove:hover,.gchat-attach-photo-remove:hover,.gchat-attach-document-remove:hover{background:#e8edf3!important;color:#25354a!important}
.gchat-attach-photo-strip{min-width:0}
.gchat-attach-document-pane{display:flex;flex-direction:column;gap:9px}
.gchat-attach-files-list{display:flex;flex-direction:row;align-items:stretch;gap:9px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;touch-action:pan-x;overscroll-behavior-x:contain;height:174px;min-height:174px;max-height:174px;padding:1px 2px 3px;min-width:0;width:100%}
.gchat-attach-files-list::-webkit-scrollbar{display:none!important}
.gchat-attach-document{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;box-sizing:border-box;flex:0 0 129px;width:129px;height:172px;min-width:129px;min-height:0;gap:8px;border:1px solid #e2e8f0;border-radius:14px;background:#f6f8fb;scroll-snap-align:start;padding:13px 9px 15px;overflow:hidden}
.gchat-attach-document-icon{height:49px;width:49px;flex:0 0 49px;background:#e7eef9;border-radius:14px;color:#5779ad;display:grid;place-items:center;font-size:1rem}
.gchat-attach-document-icon svg{width:27px;height:27px}
.gchat-attach-document-name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;white-space:normal;overflow:hidden;text-overflow:ellipsis;line-height:1.25;max-width:100%;font-size:.72rem;overflow-wrap:anywhere;color:#40536a}
.gchat-attach-document-status{position:absolute;bottom:7px;left:5px;right:5px;color:#7a8798;font-size:.66rem;white-space:nowrap}
.gchat-attach-document-retry{position:absolute;bottom:4px;left:4px;border-radius:50%;height:27px;width:27px;padding:0;z-index:2}
.gchat-attach-document-remove{position:absolute;right:5px;top:5px;flex:none;margin:0;width:24px;height:24px;font-size:19px;z-index:2;display:grid;place-items:center;padding:0}
.gchat-attach-add-document{position:relative;box-sizing:border-box;display:grid;place-items:center;flex:0 0 129px;width:129px;min-width:129px;height:172px;min-height:0;padding:0;gap:0;border:1.5px dashed #b8c9dc;border-radius:14px;background:#f4f8fd;color:#537bb2;cursor:pointer;scroll-snap-align:start;font-size:0}
.gchat-attach-add-document-plus{font:400 36px/1 Arial,sans-serif}
.gchat-attach-add-document:hover,.gchat-attach-add-document:focus-visible{background:#eaf2ff;border-color:#94b8ef;outline:none}
.gchat-attach-add-document:disabled{opacity:.5;cursor:default}
.gchat-attach-doc-empty{display:none!important}
.gchat-attach-files-count{font-size:.72rem;color:#8392a4;text-align:right}
.gchat-attach-panel[data-mode="document"] .gchat-attach-image-count{display:block}
@media(max-width:650px){
  .gchat-attach-panel{height:min(484px,calc(100dvh - 4px));max-height:calc(100dvh - 4px)}
  
  .gchat-attach-files-list{height:151px;min-height:151px;max-height:151px;gap:8px}
  .gchat-attach-document,.gchat-attach-add-document{flex-basis:110px;width:110px;min-width:110px;height:148px}
  .gchat-attach-overlay:not([hidden]) .gchat-attach-panel{animation:gchat-media-enter .32s cubic-bezier(.2,.78,.28,1) both;will-change:transform,opacity}
  @keyframes gchat-media-enter{from{transform:translate3d(0,44px,0);opacity:.75}to{transform:translate3d(0,0,0);opacity:1}}
}
@media(max-width:360px){
 .gchat-attach-files-list{height:139px;min-height:139px;max-height:139px}
 .gchat-attach-document,.gchat-attach-add-document{flex-basis:100px;width:100px;min-width:100px;height:134px}
}
@media(prefers-reduced-motion:reduce){.gchat-attach-overlay:not([hidden]) .gchat-attach-panel{animation:none!important}}

.gchat-attach-files-count{display:none!important}

/* v0592 — seletores de mídia refinados e carrosséis sem encaixe.
   As regras ficam ao final para neutralizar versões herdadas. */
.gchat-attach-gallery,.gchat-attach-files-list{
  scroll-snap-type:none!important;
  scroll-behavior:auto;
  overscroll-behavior-x:contain;
  -webkit-overflow-scrolling:touch;
}
.gchat-attach-gallery>*,.gchat-attach-files-list>*{
  scroll-snap-align:none!important;
  scroll-snap-stop:normal!important;
}
/* Cartões vazios em cinza neutro, borda tracejada fina, sem destaque azul. */
.gchat-attach-cover.is-empty{
  background:#f8f9fa;
  border:1.5px dashed #cbd0d6;
  box-shadow:none;
}
.gchat-attach-cover-empty{
  border:0!important;
  background:transparent!important;
  color:#818994!important;
  gap:0;
  transition:none!important;
}
.gchat-attach-cover-empty:hover,.gchat-attach-cover-empty:active,
.gchat-attach-cover-empty:focus-visible{
  background:transparent!important;
  color:#818994!important;
  border:0!important;
}
.gchat-attach-cover-empty>svg{
  box-sizing:border-box;
  display:block;
  padding:0;
  margin:0;
  width:33px;
  height:33px;
  color:#89929c;
  background:none!important;
  border:0;
  border-radius:0;
}
.gchat-attach-cover-empty>span{display:none!important}
.gchat-attach-add-photo,.gchat-attach-add-document{
  display:grid;
  place-items:center;
  box-sizing:border-box;
  padding:0;
  gap:0;
  border:1.5px dashed #cbd0d6!important;
  background:#fff!important;
  color:#89929c!important;
  border-radius:14px;
  box-shadow:none;
  transition:none!important;
}
.gchat-attach-add-photo svg,.gchat-attach-add-document svg{
  display:block;
  width:31px;
  height:31px;
  background:transparent!important;
  border:0;
  border-radius:0;
  color:#89929c;
}
.gchat-attach-add-photo:hover,.gchat-attach-add-photo:active,
.gchat-attach-add-document:hover,.gchat-attach-add-document:active{
  background:#fff!important;
  border-color:#aebfcd!important;
  color:#667c90!important;
  box-shadow:none!important;
}
.gchat-attach-cover-label{
  height:23px!important;
  min-height:0;
  font-size:.65rem!important;
  font-weight:670;
  letter-spacing:.012em;
  background:#3176db;
  border:0;
}
/* Controles de remoção: glifo SVG centralizado, fundo branco estável. */
.gchat-attach-cover-remove,.gchat-attach-photo-remove,.gchat-attach-document-remove{
  box-sizing:border-box;
  display:grid!important;
  place-items:center!important;
  place-content:center!important;
  width:26px;
  height:26px;
  min-width:26px;
  min-height:26px;
  padding:0!important;
  margin:0;
  border:1px solid #e9ebee!important;
  border-radius:50%;
  background:#fff!important;
  color:#68717d!important;
  box-shadow:0 1px 3px rgba(17,24,39,.11);
  font-size:0!important;
  line-height:0!important;
  text-align:center;
  transition:none!important;
  animation:none!important;
  transform:none!important;
}
.gchat-attach-cover-remove[hidden],.gchat-attach-photo-remove[hidden],
.gchat-attach-document-remove[hidden]{display:none!important}
.gchat-attach-cover-remove svg,.gchat-attach-photo-remove svg,
.gchat-attach-document-remove svg{
  box-sizing:border-box;
  display:block;
  width:13px;
  height:13px;
  margin:0;
  padding:0;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
  transform:none!important;
}
.gchat-attach-cover-remove:hover,.gchat-attach-cover-remove:active,
.gchat-attach-photo-remove:hover,.gchat-attach-photo-remove:active,
.gchat-attach-document-remove:hover,.gchat-attach-document-remove:active{
  border-color:#e9ebee!important;
  background:#fff!important;
  color:#68717d!important;
  box-shadow:0 1px 3px rgba(17,24,39,.11)!important;
  transform:none!important;
}
/* Campo único, contextual e um pouco mais alto, apenas com anexo na aba. */



@media(max-width:650px){
  
}
@media(max-height:560px){
  
}
/* Mesmo tratamento neutro também para documentos já anexados. */
.gchat-attach-document{
  background:#f8f9fa;
  border-color:#e3e6e9;
}
.gchat-attach-document-icon{
  background:#eef0f2;
  color:#77818d;
}
.gchat-attach-document-name{color:#44505d}
/* Estado oculto prevalece sobre seletores herdados com data-mode. */
#gchat-attach-document-note[hidden]{display:none!important}

/* v0593 — Fotos e Arquivos alinhados; descrição ampla e persistente.
   Regras finais neutralizam estilos herdados da galeria antiga. */
.gchat-attach-panel{
  height:min(570px,calc(100dvh - 28px));
  max-height:calc(100dvh - 28px);
  grid-template-rows:auto auto minmax(0,1fr) auto auto auto;
  align-content:stretch;
  gap:8px;
}
.gchat-attach-content{
  height:174px;min-height:174px;max-height:174px;
  flex:none;overflow:hidden!important;
}
.gchat-attach-image-pane,.gchat-attach-document-pane{
  height:174px;min-height:174px;max-height:174px;gap:0;
  overflow:hidden;align-content:start;
}
.gchat-attach-photo-strip,.gchat-attach-document-strip{
  box-sizing:border-box;display:flex;align-items:stretch;
  height:174px;min-height:174px;max-height:174px;
  gap:11px;width:100%;max-width:100%;min-width:0;
}
/* A primeira posição é igual no estado vazio, com foto ou com documento. */
.gchat-attach-cover,.gchat-attach-file-featured{
  box-sizing:border-box;position:relative;display:block;
  flex:0 0 129px;width:129px;height:172px;min-height:172px;
  margin:0;overflow:hidden;border-radius:14px;
}
.gchat-attach-file-featured[hidden]{display:none!important}
.gchat-attach-gallery,.gchat-attach-files-list{
  display:flex;align-items:stretch;box-sizing:border-box;
  flex:1 1 0;min-width:0;width:0;height:174px;
  min-height:174px;max-height:174px;gap:9px;
  margin:0;padding:1px 2px 3px;
  overflow-x:auto;overflow-y:hidden;
  scroll-snap-type:none!important;scrollbar-width:none;
}
.gchat-attach-gallery[hidden],.gchat-attach-files-list[hidden]{display:none!important}
.gchat-attach-file-featured>.gchat-attach-document,
.gchat-attach-file-featured>.gchat-attach-add-document{
  width:100%;height:100%;min-width:0;min-height:0;flex:1 1 auto;margin:0;
}
.gchat-attach-document.is-featured{
  border-color:#dbe4ed;
  background:#f8f9fa;
}
.gchat-attach-document-feature-label{
  display:none;align-items:center;justify-content:center;
  position:absolute;inset:auto 0 0;z-index:2;
  width:100%;height:23px;background:#3176db;color:#fff;
  font-size:.65rem;font-weight:670;letter-spacing:.012em;
  pointer-events:none;
}
.gchat-attach-document.is-featured .gchat-attach-document-feature-label{display:flex}
.gchat-attach-document.is-featured .gchat-attach-document-status{bottom:26px}
.gchat-attach-file-featured>.gchat-attach-add-document{
  background:#f8f9fa!important;border:1.5px dashed #cbd0d6!important;
}
/* Zero espaço vertical artificial: o restante do modal vira área de escrita. */

#gchat-attach-document-note[hidden]{display:grid!important}



.gchat-attach-bottom{margin-top:0;min-height:36px}
.gchat-attach-progress{max-height:36px;overflow:hidden}
.gchat-attach-progress:empty{display:none!important}
.gchat-attach-photo.is-flagged{
  border-color:#c78387!important;
}
.gchat-attach-cover.is-flagged{border-color:#c78387!important}

.gchat-attach-cover.is-flagged::after{
  content:"Descartar esta imagem";position:absolute;z-index:2;
  left:4px;right:4px;bottom:25px;
  border-radius:6px;background:rgba(255,251,251,.95);
  color:#973948;font-size:.64rem;line-height:1.25;
  font-weight:650;text-align:center;padding:6px 3px;pointer-events:none;
}
@media(max-width:650px){
  .gchat-attach-panel{
    height:min(602px,calc(100dvh - 4px));
    max-height:calc(100dvh - 4px);
    grid-template-rows:auto auto minmax(0,1fr) auto auto auto;
    padding:13px 15px max(12px,env(safe-area-inset-bottom));
    gap:8px;
  }
  .gchat-attach-content,.gchat-attach-image-pane,.gchat-attach-document-pane,
  .gchat-attach-photo-strip,.gchat-attach-document-strip{
    height:151px;min-height:151px;max-height:151px;
  }
  .gchat-attach-cover,.gchat-attach-file-featured{
    flex-basis:110px;width:110px;height:148px;min-height:148px;
  }
  .gchat-attach-gallery,.gchat-attach-files-list{
    height:151px;min-height:151px;max-height:151px;gap:8px;
  }
}
@media(max-width:360px){
  .gchat-attach-content,.gchat-attach-image-pane,.gchat-attach-document-pane,
  .gchat-attach-photo-strip,.gchat-attach-document-strip,
  .gchat-attach-gallery,.gchat-attach-files-list{
    height:139px;min-height:139px;max-height:139px;
  }
  .gchat-attach-cover,.gchat-attach-file-featured{
    flex-basis:100px;width:100px;height:134px;min-height:134px;
  }
}
@media(max-height:560px){
  .gchat-attach-panel{height:calc(100dvh - 6px);gap:5px;padding-top:8px;padding-bottom:8px}
  .gchat-attach-content,.gchat-attach-image-pane,.gchat-attach-document-pane,
  .gchat-attach-photo-strip,.gchat-attach-document-strip,
  .gchat-attach-gallery,.gchat-attach-files-list{height:120px;min-height:120px;max-height:120px}
  .gchat-attach-cover,.gchat-attach-file-featured{flex-basis:87px;width:87px;height:117px;min-height:117px}
  .gchat-attach-document,.gchat-attach-add-document,.gchat-attach-photo,.gchat-attach-add-photo{
    flex-basis:87px;width:87px;min-width:87px;height:117px;
  }
}

/* v0594 — sinalização discreta sem bloquear a conversa */

.gchat-attach-cover.is-flagged .gchat-attach-cover-label{display:none!important}
.gchat-attachment-caption.is-discard{color:#9d4c53;font-weight:700}

/* v0595 — validação de contato no modal, sem descarte automático */
.gchat-attach-photo.is-flagged{border:2px solid #cf3449!important;box-shadow:inset 0 0 0 1px #cf344924!important}
.gchat-attach-cover.is-flagged{border:2px solid #cf3449!important;box-shadow:inset 0 0 0 1px #cf344924!important}
.gchat-attach-cover.is-flagged::after{content:"Remova ou substitua";bottom:7px;font-size:.62rem}
.gchat-attach-progress.error{color:#b33b4a;font-size:.73rem;line-height:1.3}
@media (min-height:561px) {.gchat-attach-panel{height:min(558px,calc(100dvh - 24px))}}
@media (max-width:650px) and (min-height:561px) {.gchat-attach-panel{height:min(578px,calc(100dvh - 4px))}}

/* Elementos compartilhados pelo histórico, sem o antigo mosaico em colunas. */
.gchat-inline-attachments{min-width:0;margin:0}
.gchat-inline-images .gchat-attachment-caption{
  display:block;padding:3px 6px;font-size:.7rem;line-height:1.35;color:#485365;
}
.gchat-inline-documents{display:grid;gap:5px;margin-top:5px}
.gchat-inline-documents .gchat-inline-attachment{
  min-width:0;padding:7px 8px;border-radius:11px;background:#f9fafb;border:1px solid #e9edf0;
}
.gchat-message.user .gchat-inline-attachments+p{margin-top:6px}
.gchat-attach-photo.is-flagged,.gchat-attach-cover.is-flagged{
  border:2px solid #e72b2b!important;box-shadow:none!important;
}
.gchat-attach-progress.error{color:#e72b2b!important}

/* v0597 — OCR/contatos: somente borda vermelha, sem ícones ou legendas extras. */
.gchat-attach-photo.is-flagged,.gchat-attach-cover.is-flagged,
.gchat-attach-photo.is-failed{
  border:2px solid #e72b2b!important;
  box-shadow:none!important;
}
.gchat-attach-photo-retry,.gchat-attach-photo-state,
.gchat-attach-cover.is-flagged::after,
.gchat-attach-cover.is-flagged::before{display:none!important;content:none!important}
.gchat-attach-progress:empty{display:none!important}


/* Anexos legados e documentos mantêm medidas compactas. */
.gchat-message.user:has(.gchat-inline-documents):not(:has(.gchat-inline-images)) .gchat-message-body{
  box-sizing:border-box;width:min(100%,315px);max-width:min(86%,315px);padding:8px;
}
.gchat-message.file .gchat-media{width:auto;max-width:190px;height:auto;max-height:196px;margin-inline:auto;object-fit:contain}
@media(max-width:650px){
  .gchat-message.user:has(.gchat-inline-documents):not(:has(.gchat-inline-images)) .gchat-message-body{max-width:min(88%,268px)}
  .gchat-message.file .gchat-media{max-width:172px;max-height:172px}
}

/* v0600 — modal sem ação Cancelar, envio único em largura total, alerta conciso. */
.gchat-attach-actions{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:5px;
  width:100%;
  margin:0;
  min-width:0;
}
.gchat-attach-actions #gchat-attach-send{
  display:block;
  width:100%;
  min-width:0;
  flex:none;
}
.gchat-attach-rule-warning{
  box-sizing:border-box;
  margin:0;
  width:100%;
  min-width:0;
  color:#e72b2b;
  text-align:center;
  font-size:clamp(10px,2.7vw,12px);
  line-height:1.35;
  font-weight:640;
  white-space:nowrap;
}
.gchat-attach-rule-warning[hidden]{display:none!important}

/* Fotos na conversa: uma abaixo da outra, com proporções preservadas.
   Restringe-se à apresentação do GCHAT; não altera a galeria do modal. */
.gchat-message.user:has(.gchat-inline-images) .gchat-message-body{
  box-sizing:border-box;
  width:min(100%,370px);
  max-width:min(92%,370px);
  padding:8px;
}
.gchat-inline-images{
  display:flex!important;
  flex-direction:column;
  align-items:stretch;
  gap:8px;
  column-count:auto!important;
  width:100%;
  max-width:100%!important;
}
.gchat-inline-images .gchat-inline-attachment{
  display:block;
  box-sizing:border-box;
  width:100%;
  margin:0!important;
  break-inside:auto;
  border-radius:10px;
  overflow:hidden;
  background:#f7f8fa;
}
.gchat-inline-images .gchat-media{
  display:block;
  width:auto;
  max-width:100%;
  height:auto;
  max-height:420px;
  margin:0 auto;
  object-fit:contain;
}
.gchat-inline-images:has(> .gchat-inline-attachment:only-child){
  max-width:100%!important;
}
.gchat-message.user:has(.gchat-inline-images > .gchat-inline-attachment:only-child) .gchat-message-body{
  width:min(100%,370px);
  max-width:min(92%,370px);
}
@media(max-width:650px){
  .gchat-message.user:has(.gchat-inline-images) .gchat-message-body,
  .gchat-message.user:has(.gchat-inline-images > .gchat-inline-attachment:only-child) .gchat-message-body{
    width:min(100%,315px);
    max-width:min(92%,315px);
    padding:7px;
  }
  .gchat-inline-images{gap:7px}
  .gchat-inline-images .gchat-media{max-height:350px}
}

/* Dimensões intrínsecas informadas no HTML reservam o espaço da imagem.
   Nenhuma transição, animação ou troca de tamanho no primeiro carregamento. */
.gchat-inline-images .gchat-media{
  transition:none;
  animation:none;
}
.gchat-inline-images .gchat-media[width][height]{height:auto;max-width:100%}

/* Conferência de publicação: estados sustentados pelo recibo transacional. */
.gchat-summary-card{
  align-self:stretch;width:100%;box-sizing:border-box;min-width:0;
  margin:2px 0 12px;overflow:hidden;
  border:1px solid #dce4eb;border-radius:19px;background:#fff;
  box-shadow:0 8px 28px rgba(31,50,76,.055);color:#273647;
}
.gchat-summary-card [hidden]{display:none}
.gchat-summary-head{display:flex;align-items:center;gap:12px;padding:22px 24px 19px;border-bottom:1px solid #eef1f4;background:#fbfcfd}
.gchat-summary-symbol{flex:none;width:43px;height:43px;border-radius:12px;display:grid;place-items:center;color:#315fc0;background:#eaf0fc}
.gchat-summary-symbol svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.gchat-summary-head>div{flex:1;min-width:0}
.gchat-summary-eyebrow{font-size:.67rem;font-weight:800;letter-spacing:.105em;color:#587096}
.gchat-summary-head h2{font-size:1.13rem;letter-spacing:-.018em;line-height:1.35;font-weight:800;color:#1e3048;margin:3px 0 0}
.gchat-summary-status{flex:none;border:1px solid #dbe5f0;border-radius:99px;color:#66778c;background:white;padding:5px 10px;font-size:.72rem;font-weight:650}
.gchat-summary-content{padding:23px 24px 20px}
.gchat-summary-actions{display:flex;align-items:stretch;gap:10px;padding:22px 24px 24px}
.gchat-summary-guidance{margin:14px 0 0;color:#60738a;font-size:.83rem;line-height:1.55}
.gchat-summary-card[data-publication-status="composing"] .gchat-summary-status,
.gchat-summary-card[data-publication-status="publishing"] .gchat-summary-status{
  color:#2b5fac;background:#f0f5fc;border-color:#d9e7fa;
}
.gchat-summary-card[data-publication-status="completed"] .gchat-summary-status{
  color:#277655;background:#edf8f2;border-color:#d3eadc;
}
.gchat-summary-card button:disabled{cursor:not-allowed;opacity:.55}
.gchat-summary-card button:disabled:hover{filter:none}

.gchat-summary-edit-btn,.gchat-summary-confirm-btn,.gchat-summary-publish-btn{box-sizing:border-box;min-height:46px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:11px;padding:11px 17px;font:inherit;font-size:.87rem;font-weight:760;text-decoration:none;cursor:pointer;transition:background .16s,border-color .16s,color .16s,box-shadow .16s}
.gchat-summary-edit-btn{flex:0 0 auto;border:1px solid #d7e1eb;background:#fff;color:#354960}
.gchat-summary-edit-btn:hover{background:#f4f6f9;border-color:#c5d1dc}
.gchat-summary-confirm-btn,.gchat-summary-publish-btn{flex:1 1 auto;color:#fff}
/* Duas ações diferentes: confirmar entendimento é azul; publicar é verde. */
.gchat-summary-confirm-btn{border:1px solid #235acc;background:#245ed2}
.gchat-summary-confirm-btn:hover{background:#194eaf;box-shadow:0 4px 12px rgba(35,90,204,.13)}
.gchat-summary-publish-btn{border:1px solid #00bf63;background:#00bf63;color:#fff}
.gchat-summary-publish-btn:hover{background:#00ad59;border-color:#00ad59;color:#fff;box-shadow:0 4px 12px rgba(0,191,99,.15)}
.gchat-summary-edit-btn:focus-visible,.gchat-summary-confirm-btn:focus-visible,.gchat-summary-publish-btn:focus-visible{outline:3px solid #81a9ee;outline-offset:2px}
.gchat-summary-done{text-align:center;padding:35px 24px 27px}
.gchat-summary-done .gchat-summary-success-icon{margin:0 auto 14px;width:52px;height:52px;display:grid;place-items:center;border-radius:50%;background:#e7f5ef;color:#258568;font-size:1.6rem;font-weight:800}
.gchat-summary-done h2{font-size:1.3rem;margin:6px 0 9px;color:#1c3548}
.gchat-summary-done p{font-size:.92rem;line-height:1.6;color:#69798c;margin:0 auto;max-width:360px}
.gchat-summary-done .gchat-summary-actions{justify-content:center;padding:20px 0 0}
@media(max-width:560px){
  .gchat-summary-card{border-radius:16px}
  .gchat-summary-head{gap:10px;padding:16px 15px}
  .gchat-summary-symbol{width:36px;height:36px;border-radius:10px}
  .gchat-summary-symbol svg{width:21px;height:21px}
  .gchat-summary-head h2{font-size:1rem}
  .gchat-summary-status{padding:4px 8px;font-size:.66rem}
  .gchat-summary-content{padding:19px 17px}
  .gchat-summary-actions{padding:19px 17px;gap:8px}
  .gchat-summary-edit-btn,.gchat-summary-confirm-btn,.gchat-summary-publish-btn{padding:11px 12px;font-size:.82rem}
  .gchat-summary-done{padding:29px 17px 19px}
  .gchat-summary-done .gchat-summary-actions{flex-direction:column}
}
@media(max-width:360px){
  .gchat-summary-head{flex-wrap:wrap}
  .gchat-summary-status{margin-left:46px}
}
/* Resumo editorial do pedido e prévia da descrição final, sem campos internos. */
.gchat-summary-overview{border:1px solid #e5ebf2;background:#f8fafc;border-radius:13px;padding:16px 18px}
.gchat-summary-overview h3{font-size:.77rem;font-weight:750;letter-spacing:.025em;color:#536b85;margin:0 0 9px}
.gchat-summary-preview{border:1px solid #e1e9f2;border-radius:14px;padding:19px 20px;background:#fff}
.gchat-summary-preview-label{display:block;color:#557493;font-size:.66rem;letter-spacing:.095em;font-weight:800;margin-bottom:10px}
.gchat-summary-preview-title{font-size:1.2rem;line-height:1.35;letter-spacing:-.018em;color:#1e344c;margin:0 0 10px;font-weight:800;overflow-wrap:anywhere}
.gchat-summary-preview-description{color:#263c52;font-size:.88rem;line-height:1.65;border-top:1px solid #e9eef3;padding-top:13px;max-height:290px;overflow:auto;overscroll-behavior:contain}
.gchat-summary-preview-description>*:first-child{margin-top:0}
.gchat-summary-preview-description>*:last-child{margin-bottom:0}
.gchat-summary-preview-description h2,.gchat-summary-preview-description h3,.gchat-summary-preview-description h4{font-size:.96rem;font-weight:780;color:#1f354e;margin:14px 0 5px}
.gchat-summary-preview-description p{margin:0 0 10px}
.gchat-summary-preview-description ul,.gchat-summary-preview-description ol{padding-left:21px;margin:7px 0 13px}
.gchat-summary-preview-description li+li{margin-top:3px}
.gchat-summary-preview-description blockquote{border-left:2px solid #a4bada;padding-left:12px;margin:12px 0;color:#48617c}
.gchat-summary-activity-label{display:block;font-size:.72rem;font-weight:730;color:#667d93;margin-top:11px}
.gchat-summary-card[data-summary-step="publish"] .gchat-summary-symbol{background:#e4f9ed;color:#008b4c}
.gchat-summary-card[data-summary-step="publish"] .gchat-summary-eyebrow{color:#28784e}
@media(max-width:560px){
  .gchat-summary-overview{padding:13px 14px}
  .gchat-summary-preview{padding:15px 14px}
  .gchat-summary-preview-title{font-size:1.08rem}
  .gchat-summary-preview-description{max-height:230px}
}
/* Aviso discreto exibido exclusivamente ao visitante. */
.gchat-guest-banner{padding:8px 14px;border-bottom:1px solid #e4eaf1;background:#f8fafc;color:#516070;font-size:12px;line-height:1.35;text-align:center}

/* v0609: campo tipado na caixa já existente, sem modificar sua geometria. */
.gchat-composer.gchat-composer--typed #gchat-add,
.gchat-composer.gchat-composer--typed #gchat-microphone{display:none!important}
.gchat-composer.gchat-composer--typed textarea{flex:1}

/* v0610 — Campo inteligente de mídia: galeria original, sem modal ou textarea. */
.gchat-dock.is-media-field .gchat-dock-inner{width:100%;max-width:none}
.gchat-attach-inline[hidden]{display:none!important}
.gchat-attach-inline{display:block;position:static;width:100%;max-width:100%;min-width:0;background:transparent;padding:0;box-shadow:none;backdrop-filter:none}
.gchat-attach-inline .gchat-attach-panel{
  width:100%;height:auto;min-height:0;max-height:none;display:flex;flex-direction:column;gap:8px;
  box-sizing:border-box;margin:0;padding:8px;border:1px solid #e7ebf0;border-radius:16px;
  background:#fff;box-shadow:none;overflow:visible;
}
.gchat-attach-inline .gchat-attach-heading,
.gchat-attach-inline .gchat-attach-bottom,
.gchat-attach-inline .gchat-attach-note-wrap,
.gchat-attach-inline .gchat-attach-icon-button,
.gchat-attach-inline .gchat-attach-image-editor,
.gchat-attach-inline .gchat-attach-files-count,
.gchat-attach-inline .gchat-attach-doc-empty{display:none!important}
.gchat-attach-inline .gchat-attach-content{height:auto;min-height:0;max-height:none;display:block;padding:0;overflow:visible;border:0;background:transparent}
.gchat-attach-inline .gchat-attach-section{min-width:0;max-width:100%;padding:0;margin:0}
.gchat-attach-inline .gchat-attach-photo-strip,
.gchat-attach-inline .gchat-attach-document-strip{height:120px;min-height:0;max-height:120px;display:flex;gap:8px;min-width:0;overflow:hidden}
.gchat-attach-inline .gchat-attach-cover,
.gchat-attach-inline .gchat-attach-file-featured{height:118px;min-height:0;flex:0 0 94px;width:94px}
.gchat-attach-inline .gchat-attach-gallery,
.gchat-attach-inline .gchat-attach-files-list{height:120px;min-height:0;max-height:120px;overflow-x:auto;overflow-y:hidden;flex:1 1 auto;min-width:0;width:auto}
.gchat-attach-inline .gchat-attach-photo,
.gchat-attach-inline .gchat-attach-add-photo{height:118px;flex:0 0 94px;width:94px}
.gchat-attach-inline .gchat-attach-document-pane .gchat-attach-file-featured,
.gchat-attach-inline .gchat-attach-document-pane .gchat-attach-files-list{height:auto;max-height:112px}
.gchat-attach-inline .gchat-attach-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.55fr);align-items:stretch;gap:9px;max-width:none;margin:0}
.gchat-attach-inline .gchat-attach-skip{
  box-sizing:border-box;align-self:stretch;width:100%;min-width:0;height:40px;min-height:40px;
  border:1px solid #e4eaf2;border-radius:10px;background:#f7f9fc;
  color:#607188;font-size:.82rem;font-weight:650;padding:0 12px;cursor:pointer;
}
.gchat-attach-inline .gchat-attach-skip:hover:not(:disabled){background:#edf2f9;border-color:#d5e0ed}
.gchat-attach-inline .gchat-attach-skip:disabled{opacity:.45;cursor:default}
.gchat-attach-inline #gchat-attach-send{display:block;min-width:0;width:100%;max-width:none;border-radius:12px;height:40px;min-height:40px;margin:0}
.gchat-attach-inline .gchat-attach-rule-warning{grid-column:1/-1;margin:0;font-size:.73rem;line-height:1.25;text-align:center}
.gchat-attach-inline .gchat-attach-progress{font-size:.73rem;min-height:0;margin:0}
.gchat-attach-inline #gchat-attach-send.is-analyzing{background:#386bc2;border-color:#386bc2;cursor:progress}
.gchat-attach-inline #gchat-attach-send.is-analyzing:disabled{opacity:1}
.gchat-attach-inline #gchat-attach-send.is-analyzing::before{
  content:"";display:inline-block;width:12px;height:12px;margin-right:9px;
  border:2px solid #ffffff80;border-top-color:#fff;border-radius:50%;
  vertical-align:-2px;animation:gchat-attach-indicator .8s linear infinite;
}
@keyframes gchat-attach-indicator{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.gchat-attach-inline #gchat-attach-send.is-analyzing::before{animation:none}}
@media(max-height:560px){
  .gchat-attach-inline .gchat-attach-photo-strip,
  .gchat-attach-inline .gchat-attach-gallery{height:82px;max-height:82px}
  .gchat-attach-inline .gchat-attach-cover,
  .gchat-attach-inline .gchat-attach-photo,
  .gchat-attach-inline .gchat-attach-add-photo{height:80px;min-height:0;flex-basis:76px;width:76px}
  .gchat-attach-inline #gchat-attach-send,
  .gchat-attach-inline .gchat-attach-skip{height:38px;min-height:38px}
}
.gchat-dock-inner .gchat-composer[hidden]{display:none!important}
.gchat-dock-inner .gchat-attach-inline .gchat-attach-image-pane[hidden],
.gchat-dock-inner .gchat-attach-inline .gchat-attach-document-pane[hidden]{display:none!important}
@media(max-width:650px){
 .gchat-attach-inline .gchat-attach-panel{padding:7px;gap:7px;border-radius:14px}
 .gchat-attach-inline .gchat-attach-photo-strip{height:105px;max-height:105px}
 .gchat-attach-inline .gchat-attach-cover,
 .gchat-attach-inline .gchat-attach-file-featured{height:103px;flex-basis:82px;width:82px}
 .gchat-attach-inline .gchat-attach-gallery,
 .gchat-attach-inline .gchat-attach-files-list{height:105px;max-height:105px}
 .gchat-attach-inline .gchat-attach-photo,
 .gchat-attach-inline .gchat-attach-add-photo{height:103px;flex-basis:82px;width:82px}
}

/* Sobrepõe regras legadas de layout do modal sem afetar o chat. */
.gchat-dock-inner .gchat-attach-inline .gchat-attach-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.55fr);align-items:stretch;gap:9px}
.gchat-dock-inner .gchat-attach-inline .gchat-attach-rule-warning{white-space:normal;line-height:1.25;text-align:center}


.gchat-dock-inner .gchat-attach-inline .gchat-attach-image-pane,
.gchat-dock-inner .gchat-attach-inline .gchat-attach-document-pane{height:auto;min-height:0;max-height:none;overflow:hidden}

/* v0760 — seleção de imagens em cartão horizontal centralizado.
   Apenas o estado vazio muda de formato; fotografias seguem verticais. */
.gchat-attach-inline .gchat-attach-image-pane.is-empty .gchat-attach-photo-strip{
  justify-content:center;align-items:center;height:100px;max-height:100px;
}
.gchat-attach-inline .gchat-attach-image-pane.is-empty .gchat-attach-cover.is-empty{
  box-sizing:border-box;flex:0 1 360px;width:min(100%,360px);min-width:0;
  height:84px;min-height:84px;aspect-ratio:auto;align-self:center;
  border:1.5px dashed #cbd3de;border-radius:14px;background:#fff;
}
.gchat-attach-inline .gchat-attach-image-pane.is-empty .gchat-attach-cover.is-empty:hover,
.gchat-attach-inline .gchat-attach-image-pane.is-empty .gchat-attach-cover.is-empty:focus-within{
  border-color:#9cb5d4;background:#fff;
}
.gchat-attach-inline .gchat-attach-image-pane.is-empty .gchat-attach-cover-empty{
  display:flex;flex-direction:row;justify-content:center;align-items:center;
  gap:12px;padding:12px 16px;text-align:left;
}
.gchat-attach-inline .gchat-attach-image-pane.is-empty .gchat-attach-cover-empty svg{
  width:30px;height:30px;stroke-width:1.85;color:#708399;
}
.gchat-attach-inline .gchat-attach-add-photo{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:0;align-self:center;flex:0 0 94px;width:94px;height:118px;
  min-height:0;aspect-ratio:3/4;
}
.gchat-attach-inline .gchat-attach-add-photo svg{width:29px;height:29px;stroke-width:1.9}
.gchat-attach-inline .gchat-attach-actions .gchat-attach-skip,
.gchat-attach-inline .gchat-attach-actions #gchat-attach-send{
  min-width:0;min-height:42px;height:42px;
}
.gchat-attach-inline .gchat-attach-rule-warning{grid-column:1/-1}
@media(max-width:650px){
  .gchat-attach-inline .gchat-attach-image-pane.is-empty .gchat-attach-photo-strip{height:89px;max-height:89px}
  .gchat-attach-inline .gchat-attach-image-pane.is-empty .gchat-attach-cover.is-empty{height:76px;min-height:76px}
  .gchat-attach-inline .gchat-attach-add-photo{flex-basis:82px;width:82px;height:103px}
}
@media(max-height:560px){
  .gchat-attach-inline .gchat-attach-image-pane.is-empty .gchat-attach-photo-strip{height:76px;max-height:76px}
  .gchat-attach-inline .gchat-attach-image-pane.is-empty .gchat-attach-cover.is-empty{height:64px;min-height:64px}
}

/* GCHAT v0611: multiseleção mantém o carrossel existente. */
.gchat-choice-item[aria-pressed="true"]{background:#184b9a;box-shadow:inset 0 0 0 2px #fff6}
.gchat-choice-confirm{flex:none;height:42px;border:0;border-radius:11px;background:#2865c4;color:#fff;padding:0 14px;font-weight:700;cursor:pointer}
.gchat-choice-confirm[hidden]{display:none!important}
.gchat-choice-confirm:disabled{background:#c8d0d9;cursor:default}
@media(max-width:767px){.gchat-choice-confirm{height:38px;padding:0 10px;font-size:.81rem}}

/* v0612: uma escolha clara por cor e check; o mesmo carrossel suporta ambos os modos. */
.gchat-choice-item{position:relative;gap:7px}
.gchat-choice-item[aria-pressed="true"]{background:#164889;box-shadow:inset 0 0 0 2px rgba(255,255,255,.75)}
.gchat-choice-check{display:none;flex:0 0 auto;width:17px;height:17px;align-items:center;justify-content:center;border-radius:50%;background:#fff;color:#164889;font-size:12px;font-weight:900;line-height:1}
.gchat-choice-item[aria-pressed="true"] .gchat-choice-check{display:inline-flex}
.gchat-choice-item:focus-visible{outline:3px solid #92b5ee;outline-offset:2px}
@media(prefers-reduced-motion:reduce){.gchat-choice-item{transition:none}}

/* Lista de itens ainda em edição: cinco linhas visíveis; o restante rola sem barra. */
.gchat-item-list-dock[hidden]{display:none!important}
.gchat-item-list-dock{display:grid;gap:8px;min-width:0;width:100%;padding:3px 0}
.gchat-item-list-scroll{max-height:244px;min-height:0;overflow-y:auto;overscroll-behavior:contain;display:grid;grid-auto-rows:44px;align-content:start;gap:6px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.gchat-item-list-scroll::-webkit-scrollbar{display:none}
.gchat-item-list-scroll:focus-visible{outline:2px solid #8eaed3;outline-offset:2px;border-radius:9px}
.gchat-item-list-row{box-sizing:border-box;display:flex;align-items:center;gap:10px;height:44px;min-width:0;background:#f4f6f9;border:1px solid #e0e6ee;border-radius:10px;padding:4px 5px 4px 12px;color:#26384b}
.gchat-item-list-row span{flex:1;min-width:0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:.92rem;font-weight:620;line-height:1.35}
.gchat-item-list-row button{flex:none;display:grid;place-items:center;width:34px;height:34px;padding:0;border:1px solid #d4dce6;border-radius:9px;background:#fff;color:#51677f;font-size:1.6rem;font-weight:400;line-height:1;cursor:pointer;transition:background-color .15s,border-color .15s}
.gchat-item-list-row button:hover:not(:disabled){background:#edf2f7;border-color:#b9c7d7}
.gchat-item-list-row button:focus-visible{outline:2px solid #8eaed3;outline-offset:2px}
.gchat-item-list-row button:disabled{opacity:.55;cursor:default}
.gchat-item-list-entry{display:flex;gap:8px;min-width:0;align-items:center}
.gchat-item-list-entry input{flex:1;min-width:0;border:1px solid #d8dfe6;background:#f5f6f7;color:#243247;min-height:44px;padding:9px 12px;border-radius:13px;font:inherit;outline-offset:2px}
.gchat-item-list-entry button{width:44px;height:44px;border-radius:12px;border:0;background:#2866be;color:white;font-size:1.5rem;cursor:pointer}
.gchat-item-list-entry button:disabled{background:#dde2e8;color:#8a96a3;cursor:default}
.gchat-item-list-dock #gchat-item-list-send{min-height:40px;border-radius:12px;width:100%;margin:0}
.gchat-list-sent{min-width:0;max-width:100%;font-size:.86rem}
.gchat-list-sent strong{display:block;margin-bottom:7px;font-size:.85rem}
.gchat-list-sent ol{list-style:decimal;list-style-position:inside;margin:0;padding:0;display:grid;gap:4px}
.gchat-list-sent li{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;padding:3px 0}

.gchat-list-sent li[hidden]{display:none!important}
.gchat-list-expand{padding:7px 0 2px;border:0;background:transparent;color:#2568c3;font-size:.8rem;font-weight:650;cursor:pointer}

/* v0734 — atividade factual da IA, sem frases aleatórias nem mudança de layout. */
.gchat-activity{height:20px;padding:7px 0 0;box-sizing:content-box;
 display:flex;justify-content:center;align-items:center;gap:7px;min-width:0;max-width:100%;
 color:#9ba6b3;font-size:.7rem;line-height:1.4;white-space:nowrap;overflow:hidden}
.gchat-activity-label{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
/* v0786 — indicador inerte quando pronto; animado somente no processamento real. */
.gchat-activity-dot{width:7px;height:7px;flex:none;border-radius:50%;background:#9ba6b3;transform-origin:center;box-shadow:none;animation:none}
.gchat-activity.is-working .gchat-activity-dot{background:#2563eb;animation:gchat-status-working 1.3s ease-in-out infinite}
@keyframes gchat-status-working{0%,100%{opacity:1;transform:scale(1);box-shadow:0 0 0 0 rgb(37 99 235 / 28%)}50%{opacity:.72;transform:scale(.82);box-shadow:0 0 0 5px rgb(37 99 235 / 0%)}}
.gchat-understanding-text{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;
 font-size:.93rem;line-height:1.7;color:#283f59}
@media(max-width:650px){.gchat-activity{font-size:.65rem}}
@media(prefers-reduced-motion:reduce){.gchat-activity .gchat-activity-dot{animation:none;box-shadow:none}}

/* Área de subcategorias sem uma mensagem conversacional genérica. */
.gchat-message-body > p:empty{display:none}

/* Seleção simples confirma com um toque; check visual só para seleção múltipla. */
.gchat-choice-dock[data-choice-mode="single"] .gchat-choice-check{display:none!important}

/* Recuperação explícita de uma resposta que não foi concluída pela IA. */
.gchat-retry-button{display:inline-flex;align-items:center;justify-content:center;margin-top:9px;padding:7px 12px;border:1px solid #d5dce7;border-radius:999px;background:#fff;color:#315b93;font:inherit;font-size:.79rem;font-weight:600;cursor:pointer}
.gchat-retry-button:hover{background:#f4f7fa}
.gchat-retry-button:disabled{opacity:.55;cursor:wait}

/* v0741 — dois modos textuais sem regras forçadas. */
.gchat-composer #gchat-short-input{flex:1;min-width:0;min-height:36px;height:36px;padding:6px 4px;font:inherit;font-size:16px;line-height:1.5;background:transparent;border:0;border-radius:0;outline:none;color:#182f48;box-shadow:none}
.gchat-composer #gchat-short-input::placeholder{color:#8290a1}
.gchat-composer #gchat-short-input[hidden],.gchat-composer #gchat-input[hidden]{display:none}
.gchat-composer.gchat-composer--long #gchat-input{min-height:86px;height:86px;max-height:176px;resize:vertical;align-self:stretch}

/* v0746 — carrossel inicia na primeira opção e envio múltiplo usa ícone. */
.gchat-choice-track{scroll-behavior:auto}
.gchat-choice-item.gchat-choice-other{background:#fff;color:#31567f;border:1px solid #d7e1ec;font-weight:650}
.gchat-choice-item.gchat-choice-other:hover{background:#f7f9fc}
.gchat-choice-confirm{flex:0 0 42px;width:42px;height:42px;padding:0;display:grid;place-items:center;border-radius:50%}
.gchat-choice-confirm svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.gchat-choice-confirm:focus-visible{outline:3px solid #92b5ee;outline-offset:2px}
.gchat-choice-dock[data-choice-mode="single"] .gchat-choice-arrow--next{right:3px}
.gchat-choice-dock[data-choice-mode="multi"] .gchat-choice-arrow--next{right:51px}
@media(max-width:767px){.gchat-choice-confirm{flex-basis:38px;width:38px;height:38px;padding:0}}

.gchat-field-skip{flex:none;border:0;background:transparent;color:#45617e;font-size:.78rem;font-weight:650;white-space:nowrap;cursor:pointer;padding:8px 5px}
.gchat-field-skip[hidden]{display:none}
.gchat-field-skip:focus-visible{outline:2px solid #6d99d3;outline-offset:1px}

/* Conferência de necessidades e especialidades — v0754 */
.gchat-summary-needs{margin-top:16px;padding-top:17px;border-top:1px solid #e8edf2}
.gchat-summary-needs h3{margin:0 0 5px;font-size:.92rem;font-weight:780;color:#263d56}
.gchat-summary-needs-hint{font-size:.79rem;color:#61748a;line-height:1.5;margin:0 0 12px}
.gchat-summary-need{border:1px solid #e2e9f2;border-radius:12px;padding:14px 15px;margin-top:9px;background:#fbfcfe}
.gchat-summary-need-top{display:flex;align-items:flex-start;gap:12px;justify-content:space-between}
.gchat-summary-need-top strong{font-size:.88rem;line-height:1.4;color:#243b56;overflow-wrap:anywhere}
.gchat-summary-need-remove{border:1px solid #ccd9e6;color:#536982;background:#fff;flex:none;border-radius:8px;padding:6px 9px;font:inherit;font-size:.76rem;cursor:pointer}
.gchat-summary-need-remove:hover{background:#edf2f8}
.gchat-summary-need-activities{margin:5px 0 0;padding:0 0 0 19px;color:#334d68;font-size:.83rem;line-height:1.55}
.gchat-summary-need-activities li+li{margin-top:4px}
.gchat-summary-need-remove:focus-visible{outline:2px solid #6e9ee2;outline-offset:2px}
@media(max-width:520px){.gchat-summary-need{padding:11px}}

/* v0757 — conferência recuperável quando o servidor ainda não entregou a ficha. */
.gchat-summary-recovery{align-self:stretch;min-width:0;border:1px solid #dce5ef;
  border-radius:16px;padding:18px 20px;background:#f9fbfd;color:#263e57}
.gchat-summary-recovery h3{font-size:1rem;margin:0 0 7px;font-weight:760}
.gchat-summary-recovery p{font-size:.87rem;line-height:1.6;margin:0 0 15px;color:#546a81}
.gchat-summary-recovery-actions{display:flex;gap:9px;flex-wrap:wrap}
.gchat-summary-recovery-actions button{min-height:42px;padding:10px 14px;border-radius:10px;
  border:1px solid #cbd8e7;background:white;color:#30516f;font:inherit;font-size:.84rem;font-weight:700;cursor:pointer}
.gchat-summary-recovery-actions button:first-child{background:#2864bc;color:#fff;border-color:#2864bc}
.gchat-summary-recovery-actions button:focus-visible{outline:3px solid #8db1df;outline-offset:2px}
@media(max-width:520px){.gchat-summary-recovery{padding:15px}
  .gchat-summary-recovery-actions{flex-direction:column}
  .gchat-summary-recovery-actions button{width:100%}}

/* v0789 — feedback de espera enquanto a IA prepara a próxima mensagem. */
.gchat-message#gchat-thinking .gchat-thinking-label,
.gchat-message.gchat-working .gchat-thinking-label{
  display:inline-block;
  color:#67778b;
  font-size:.86rem;
  font-weight:550;
  line-height:1.6;
  letter-spacing:.005em;
  white-space:nowrap;
}
