/* 14.1.52 — o telefone volta ao topo da 14.1.47. O computador mantém a barra e o Mais abre no centro. */
@media (min-width:861px){
  #app .topbar{height:auto!important;max-height:none!important;min-height:56px!important;overflow:visible!important;flex-wrap:wrap!important}
  #app .topbar .top-actions{position:static!important;width:auto!important;height:auto!important;overflow:visible!important;clip:auto!important;display:flex!important}
  #glMobileBar{display:none!important}
  #glwOnline{position:static!important;width:auto!important;height:auto!important;overflow:visible!important;font-size:11px!important;font-weight:800!important;color:#28cba6!important;background:transparent!important;border-radius:0!important}
}
@media (max-width:860px){
  #app .topbar{display:grid!important;grid-template-columns:38px 41px minmax(0,1fr)!important;height:auto!important;max-height:none!important;min-height:61px!important;overflow:visible!important;flex-wrap:nowrap!important}
  #app .topbar .top-actions{display:none!important}
  #glMobileBar{display:flex!important;position:static!important;width:100%!important;height:auto!important;flex:0 0 49px!important;align-items:center;justify-content:space-around;gap:4px;padding:4px 8px 6px;box-sizing:border-box;border-bottom:1px solid var(--g-line,#293d51);background:var(--g-top,#0d1d2f)}
  #app.glw-home-active #glMobileBar{display:none!important}
  #glwOnline{position:static!important;width:auto!important;height:auto!important;overflow:visible!important;font-size:10px!important;font-weight:800!important;color:#28cba6!important;background:transparent!important}
  #app.glw-home-active #gl30Nav,
  body:has(#app.glw-home-active) #gl30Nav{display:grid!important;position:fixed;left:0;right:0;bottom:0;z-index:50}
  #app .gl26-line{flex-wrap:wrap!important;align-items:center}
  #app .gl26-line>[data-tool]{order:-1!important}
  #app .gl26-line::after{content:'';display:block!important;order:0;flex-basis:100%;height:0}
  #app form#sendForm.gl181-composer.gl26-on #messageInput{order:1!important;flex:1 1 calc(100% - 64px)!important;width:auto!important;min-width:0}
  #app form#sendForm.gl181-composer.gl26-on #voiceRecord{order:2!important;display:grid!important;visibility:visible!important;width:48px!important;height:48px!important;min-width:48px!important;flex:0 0 48px!important}
}
.gl-mobile-tool-layer{align-items:center!important;justify-content:center!important;padding:16px;box-sizing:border-box}
.gl-mobile-tools{width:min(560px,100%)!important;max-height:min(86dvh,680px)!important;border-radius:18px!important;margin:0 auto!important;overflow:auto}
body.gl-ai-open #glAiLayer{position:fixed!important;inset:0!important;z-index:35000!important;width:100%!important;height:100dvh!important}
body.gl-ai-open .gl-ai-shade{display:block!important}
body.gl-ai-open .gl-ai-drawer{width:min(720px,100%)!important;height:100dvh!important;max-height:100dvh!important;margin-left:auto}
@media (min-width:861px){
  body.gl-ai-open .gl-ai-drawer{width:100%!important}
}
.gl52-studio{display:flex;min-height:70vh;border:1px solid var(--line,#2b4057);border-radius:12px;overflow:hidden;background:#0c1824}
.gl52-pal{width:230px;flex:0 0 230px;overflow:auto;border-right:1px solid #234;padding:10px;background:#101c28}
.gl52-pal h3,.gl52-side h3{margin:0 0 8px;font-size:14px}
.gl52-group{margin-bottom:8px}
.gl52-group button.gl52-add{display:block;width:100%;text-align:left;margin:4px 0;border-radius:8px;border:1px solid #345;background:#16283a;color:inherit;padding:6px 8px;cursor:pointer}
.gl52-board{position:relative;flex:1;min-height:640px;overflow:auto;background-image:radial-gradient(#2a3d52 1px,transparent 1px);background-size:16px 16px}
.gl52-node{position:absolute;width:180px;border:2px solid #4b6;border-radius:10px;padding:8px;background:#122033;cursor:grab}
.gl52-node strong{display:block;font-size:13px}
.gl52-node small{display:block;color:#9eb6c9;font-size:11px}
.gl52-side{width:220px;flex:0 0 220px;border-left:1px solid #234;padding:10px;overflow:auto}
@media (max-width:860px){
  .gl52-studio{flex-direction:column}
  .gl52-pal,.gl52-side{width:100%;flex-basis:auto;max-height:240px}
}
