/* Inactive unless the launcher is explicitly enabled. Preserve site typography. */
:root { --xi-chat-bg:#0b1f3a; --xi-chat-ink:#fff; }
.xi-chat-launcher {
  position:fixed; right:max(20px,env(safe-area-inset-right)); bottom:max(20px,env(safe-area-inset-bottom));
  width:64px; height:56px; border:1px solid #7692b2; border-radius:28px;
  background:var(--xi-chat-bg); color:var(--xi-chat-ink); cursor:pointer;
  font-family:inherit; font-size:var(--text-sm,1rem); font-weight:600; line-height:1;
  z-index:1001; box-shadow:0 8px 24px #0006;
}
.xi-chat-launcher:focus-visible,.xi-chat-close:focus-visible,.xi-chat-help a:focus-visible {
  outline:3px solid #00e0b8; outline-offset:4px;
}
.xi-chat-panel {
  position:fixed; right:max(20px,env(safe-area-inset-right)); bottom:88px;
  width:min(380px,calc(100vw - 40px)); height:min(660px,calc(100dvh - 112px));
  display:flex; flex-direction:column; overflow:hidden; z-index:1000;
  background:#fff; color:#0b1f3a; border:1px solid #7692b2; border-radius:18px;
  box-shadow:0 18px 48px #0006; font-size:var(--text-sm,1rem);
}
.xi-chat-panel[hidden] { display:none; }
.xi-chat-header {
  display:flex; gap:12px; align-items:center; justify-content:space-between;
  padding:8px 12px; background:var(--xi-chat-bg); color:var(--xi-chat-ink);
}
.xi-chat-close {
  min-width:52px; min-height:44px; padding:8px; border-radius:8px;
  background:transparent; color:inherit; border:1px solid #7692b2; cursor:pointer;
  font:inherit;
}
.xi-chat-panel iframe { width:100%; flex:1; min-height:0; border:0; background:#fff; }
.xi-chat-help { padding:10px 14px; margin:0; font-size:var(--text-xs,.875rem); line-height:1.5; }
.xi-chat-help a { color:#0b1f3a; text-decoration:underline; }
.xi-chat-available .footer-bottom { padding-bottom:104px; }
/* Reserve the left edge for motion, clear of the future bottom-right launcher. */
.xi-chat-available .motion-toggle { left:20px; right:auto; }
@media(max-height:500px) {
  .xi-chat-panel { bottom:80px; height:calc(100dvh - 96px); }
  .xi-chat-help { padding:4px 12px; }
}
