/* The SDK iframe must fill its flex-sized host, not resolve 100% to 150px. */
#vista-chat > iframe { position:absolute; inset:0; width:100%!important; height:100%!important; }
@media (max-width:700px) {
  body:has(#chat-panel:not([hidden])) main {
    height:var(--vista-visible-height,100dvh); min-height:0; padding:4px; gap:4px;
  }
  body:has(#chat-panel:not([hidden])) .layout { flex:1 1 0; min-height:0; padding:0!important; }
  body:has(#chat-panel:not([hidden])) .chat-panel { height:100%; min-height:0; width:100%; }
  body:has(#chat-panel:not([hidden])) #chat-body { min-height:0; }
  body:has(#chat-panel:not([hidden])) .chat-frame { min-height:0; }
  body:has(#chat-panel:not([hidden])) .chat-heading { padding:8px 10px; gap:5px; }
  body:has(#chat-panel:not([hidden])) .chat-heading h1 { font-size:20px!important; }
  body:has(#chat-panel:not([hidden])) .chat-heading > div > p { display:none; }
  body:has(#chat-panel:not([hidden])) .chat-heading .chat-language-v31 {
    font-size:12px!important; line-height:1.25!important; flex-direction:row; gap:12px!important;
  }
  .chat-language-v31 span { flex:1; }
  body:has(#chat-panel:not([hidden])) .chat-toolbar { padding:4px 8px!important; }
  body:has(#chat-panel:not([hidden])) .chat-control { min-height:44px; padding:8px 14px; }
  body:has(#chat-panel:not([hidden])) footer { padding:5px 8px; font-size:11px; line-height:1.3; }
  body:has(#chat-panel:not([hidden])) footer p { margin:0; }
  body.vista-compact-chat:has(#chat-panel:not([hidden])) .chat-language-v31 { display:none!important; }
}
