.vlc-ai-launch {
  position: fixed;
  bottom: calc(5rem + env(safe-area-inset-bottom));
  right: 1rem;
  z-index: 1000;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 3px 0.9rem 3px 3px;
  border-radius: 2rem;
  border: 1px solid #a8cbc9;
  color: #fff;
  background: #172945;
  font:
    600 15px/1.4 system-ui,
    sans-serif;
  box-shadow: 0 2px 10px #16363c33;
  cursor: pointer;
}
.vlc-ai-launch::before {
  content: "";
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  background: center / cover url('./assistant-r05.jpg');
}
.vlc-ai-dialog {
  position: fixed;
  inset: auto 0.6rem 0.6rem auto;
  margin: 0;
  padding: 0;
  border: 1px solid #aac5c6;
  border-radius: 1rem;
  width: min(28rem, calc(100vw - 1.2rem));
  max-width: 100vw;
  height: min(43rem, calc(100dvh - 1.2rem));
  max-height: 100dvh;
  overflow: hidden;
  background: white;
  color: #153b45;
}
.vlc-ai-dialog::backdrop {
  background: #122e3659;
}
.vlc-ai-dialog iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.vlc-ai-fallback {
  padding: 1.5rem;
  font:
    16px/1.5 system-ui,
    sans-serif;
}
.vlc-ai-fallback a,
.vlc-ai-fallback button {
  display: block;
  margin: 0.7rem 0;
}
.vlc-ai-dialog [hidden] {
  display: none !important;
}
@media (max-width: 700px), (max-height: 540px) and (pointer: coarse) {
  .vlc-ai-dialog {
    inset: var(--vlc-visible-top, 0px) 0 auto;
    width: 100%;
    max-width: none;
    height: var(--vlc-visible-height, 100dvh);
    max-height: none;
    border: 0;
    border-radius: 0;
  }
  html:has(.vlc-ai-dialog[open]), body:has(.vlc-ai-dialog[open]) {
    overflow: hidden;
  }
}
