.bsv-chatbot-mount {
  --bsv-primary: #175cd3;
  --bsv-accent: #fff;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.4;
  z-index: 999999;
}
.bsv-chatbot-mount *, .bsv-chatbot-mount *::before, .bsv-chatbot-mount *::after { box-sizing: border-box; }
.bsv-floating { position: fixed; bottom: max(22px, env(safe-area-inset-bottom)); }
.bsv-position-right { right: max(22px, env(safe-area-inset-right)); }
.bsv-position-left { left: max(22px, env(safe-area-inset-left)); }
.bsv-launcher { position: relative; display: block; width: 132px; height: 198px; padding: 0; border: 0; background: transparent; color: var(--bsv-accent); filter: drop-shadow(0 7px 7px #0004); cursor: pointer; float: right; }
.bsv-mascot-poses { position: relative; display: block; width: 100%; height: 100%; }
.bsv-launcher .bsv-mascot-pose { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; opacity: 0; }
.bsv-launcher .bsv-mascot-pose.bsv-active { opacity: 1; }
.bsv-launcher-label { position: absolute; top: -52px; left: 50%; transform: translateX(-50%); padding: 7px 11px; border: 2px solid #fff; border-radius: 999px; background: var(--bsv-primary); color: var(--bsv-accent); box-shadow: 0 3px 8px #0003; font-size: 12px; font-weight: 700; line-height: 1; white-space: nowrap; }
.bsv-is-open .bsv-launcher { transform: translate(var(--bsv-open-shift-x, 0), var(--bsv-open-shift, 0)); }
.bsv-is-open .bsv-panel { transform: translateX(var(--bsv-panel-shift-x, 0)); }
.bsv-launcher:focus-visible { outline: 3px solid var(--bsv-primary); outline-offset: 4px; border-radius: 14px; }
.bsv-launcher-standard .bsv-launcher { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--bsv-primary); filter: none; box-shadow: 0 8px 24px #0003; }
.bsv-launcher-standard .bsv-launcher svg { width: 27px; height: 27px; fill: currentColor; }
.bsv-position-left .bsv-launcher { float: left; }
.bsv-panel { width: min(370px, calc(100vw - 28px)); height: min(560px, calc(100dvh - 110px)); min-height: 360px; margin-bottom: 12px; overflow: hidden; display: flex; flex-direction: column; background: #fff; border-radius: 18px; box-shadow: 0 12px 42px #0003; color: #182230; }
.bsv-panel[hidden] { display: none !important; }
.bsv-header { flex: 0 0 auto; display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; padding: 17px 18px; background: var(--bsv-primary); color: var(--bsv-accent); }
.bsv-header > div { min-width: 0; }
.bsv-header strong, .bsv-header small { display: block; overflow-wrap: anywhere; }
.bsv-header small { margin-top: 3px; opacity: .88; font-size: 12px; }
.bsv-close { flex: 0 0 44px; width: 44px; height: 44px; margin: -10px -10px -10px 0; padding: 0; border: 0; background: transparent; color: inherit; font-size: 32px; line-height: 1; cursor: pointer; }
.bsv-messages { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 16px; background: #f8fafc; }
.bsv-message { max-width: 84%; margin: 0 0 10px; padding: 10px 12px; border-radius: 14px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
.bsv-assistant { background: #fff; border: 1px solid #e4e7ec; border-bottom-left-radius: 4px; }
.bsv-user { margin-left: auto; background: var(--bsv-primary); color: var(--bsv-accent); border-bottom-right-radius: 4px; }
.bsv-form { flex: 0 0 auto; display: flex; gap: 8px; padding: 12px; border-top: 1px solid #e4e7ec; background: #fff; }
.bsv-form input { min-width: 0; flex: 1; border: 1px solid #d0d5dd; border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 16px; }
.bsv-form input:focus { outline: 2px solid var(--bsv-primary); outline-offset: 1px; }
.bsv-form button { flex: 0 0 44px; width: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 10px; background: var(--bsv-primary); color: var(--bsv-accent); cursor: pointer; font-size: 20px; }
.bsv-form button:disabled { opacity: .55; }
.bsv-panel footer { flex: 0 0 auto; padding: 0 10px max(9px, env(safe-area-inset-bottom)); text-align: center; font-size: 10px; color: #667085; background: #fff; }
.bsv-panel footer a { color: inherit; }
.bsv-inline .bsv-panel { width: 100%; max-width: 620px; height: min(600px, 80dvh); box-shadow: 0 5px 22px #0002; border: 1px solid #e4e7ec; }
.screen-reader-text { clip: rect(1px,1px,1px,1px); clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; position: absolute !important; }
@media (max-width: 600px) {
  html.bsv-chat-open, html.bsv-chat-open body { overflow: hidden !important; overscroll-behavior: none; }
  .bsv-floating { right: 0 !important; bottom: 0 !important; left: 0 !important; }
  .bsv-floating:not(.bsv-is-open) { right: max(8px, env(safe-area-inset-right)) !important; bottom: max(6px, env(safe-area-inset-bottom)) !important; left: auto !important; }
  .bsv-floating:not(.bsv-is-open) .bsv-launcher { width: 105px; height: 158px; }
  .bsv-floating.bsv-launcher-standard:not(.bsv-is-open) .bsv-launcher { width: 58px; height: 58px; }
  .bsv-floating.bsv-is-open .bsv-launcher { display: none; }
  .bsv-floating .bsv-panel { position: fixed; inset: 0; width: 100vw; max-width: none; height: 100dvh; min-height: 0; margin: 0; border-radius: 0; box-shadow: none; }
  .bsv-header { padding-top: max(14px, env(safe-area-inset-top)); padding-right: max(14px, env(safe-area-inset-right)); padding-left: max(16px, env(safe-area-inset-left)); }
  .bsv-messages { padding-right: max(12px, env(safe-area-inset-right)); padding-left: max(12px, env(safe-area-inset-left)); }
  .bsv-form { padding-right: max(10px, env(safe-area-inset-right)); padding-bottom: max(10px, env(safe-area-inset-bottom)); padding-left: max(10px, env(safe-area-inset-left)); }
  .bsv-message { max-width: 90%; }
  .bsv-inline .bsv-panel { height: min(620px, 80dvh); }
}
@media (prefers-reduced-motion: no-preference) {
  .bsv-mascot-pose { transition: opacity .35s ease; }
  .bsv-panel { transition: transform .18s ease; }
  .bsv-launcher { transition: transform .18s ease, filter .18s ease; }
  .bsv-launcher:hover { transform: translateY(-4px) scale(1.02); filter: drop-shadow(0 11px 9px #0005); }
  .bsv-is-open .bsv-launcher:hover { transform: translate(var(--bsv-open-shift-x, 0), var(--bsv-open-shift, 0)); }
  .bsv-launcher-standard .bsv-launcher:hover { transform: translateY(-2px); filter: none; box-shadow: 0 10px 28px #0004; }
}
