#site-assistant-launcher {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 1025;
  display: inline-flex;
  gap: .45rem;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  background: #fbec6b;
  color: #163563;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 4px 14px #0003;
}
body:has(#site-assistant-launcher) #back-to-top.show {
  bottom: calc(max(20px, env(safe-area-inset-bottom)) + 54px);
}
#site-assistant-panel {
  position: fixed;
  inset: auto max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) auto;
  margin: 0;
  padding: 0;
  width: min(440px, calc(100vw - 24px));
  height: min(625px, calc(100dvh - 24px));
  overflow: hidden;
  border: 1px solid #627693;
  border-radius: 14px;
  background: #fff;
  color: #fff;
}
html[data-soletech-theme="dark"] #site-assistant-panel { background: #111b2a; }
#site-assistant-panel[open] { display: flex; flex-direction: column; }
#site-assistant-panel::backdrop { background: #10234066; }
.site-assistant-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  background: #163563;
  font-weight: 700;
}
.site-assistant-titlebar button {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 23px;
  cursor: pointer;
}
#site-assistant-launcher:focus-visible, .site-assistant-titlebar button:focus-visible {
  outline: 2px solid #75abed;
  outline-offset: 2px;
}
#site-assistant-panel iframe { width: 100%; flex: 1; min-height: 0; border: 0; }
@media (max-width: 767px) {
  #site-assistant-launcher {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    width: 44px;
    padding: 0;
    border-radius: 50%;
  }
  #site-assistant-launcher span { display: none; }
}
