.tw-assistant-launcher {
  position: fixed;
  inset: auto max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) auto;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: .65rem 1rem;
  border: 1px solid #b7e1da;
  border-radius: 2rem;
  background: #075c5b;
  color: white !important;
  box-shadow: 0 6px 22px #123c3c40;
  font: 700 1rem/1.2 system-ui, sans-serif;
  text-decoration: none;
}
.tw-assistant-dialog {
  position: fixed;
  inset: auto max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) auto;
  box-sizing: border-box;
  width: min(28rem, calc(100vw - 2rem));
  height: min(42rem, calc(100dvh - 2rem));
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #b7e1da;
  border-radius: 1rem;
  background: #faf9f4;
  box-shadow: 0 12px 48px #123c3c50;
}
.tw-assistant-dialog[open] { display: flex; flex-direction: column; }
.tw-assistant-dialog::backdrop { background: #122b2e36; }
.tw-assistant-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
  gap: 1rem;
  padding: .35rem .6rem .35rem 1rem;
  background: #075c5b;
  color: white;
  font: 1rem/1.2 system-ui, sans-serif;
}
.tw-assistant-bar button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: .5rem;
  background: transparent;
  color: white;
  font: 1.8rem/1 system-ui, sans-serif;
  cursor: pointer;
}
.tw-assistant-bar button:hover { background: #ffffff24; }
.tw-assistant-bar button:focus-visible { outline: 2px solid white; }
.tw-assistant-dialog iframe { width: 100%; flex: 1; min-height: 0; border: 0; }
@media (max-width: 35rem) {
  .tw-assistant-dialog {
    inset-inline: .5rem;
    bottom: max(.5rem, env(safe-area-inset-bottom));
    width: auto;
    height: min(42rem, calc(100dvh - 1rem));
  }
}
