:root{--vge-chat-primary:#102a4c;--vge-chat-primary2:#17406f;--vge-chat-accent:#14b8a6;--vge-chat-border:rgba(16,42,76,.14);--vge-chat-soft:#f3f7fb;--vge-chat-text:#152238;--vge-chat-muted:#667085;--vge-chat-shadow:0 22px 55px rgba(15,23,42,.22)}.vge-chatbot-root,.vge-chatbot-root *{box-sizing:border-box}.vge-chatbot-root{position:fixed;right:22px;bottom:92px;z-index:9998;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--vge-chat-text)}.vge-chatbot-launcher{min-width:148px;height:54px;border:0;border-radius:999px;background:linear-gradient(135deg,var(--vge-chat-primary),var(--vge-chat-primary2));color:#fff;box-shadow:var(--vge-chat-shadow);display:inline-flex;align-items:center;gap:10px;padding:0 18px;cursor:pointer;font-weight:800}.vge-chatbot-launcher:hover,.vge-chatbot-launcher:focus-visible{transform:translateY(-1px);outline:3px solid rgba(20,184,166,.22)}.vge-chatbot-launcher-icon{width:30px;height:30px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:rgba(255,255,255,.16);font-size:17px}.vge-chatbot-panel{position:absolute;right:0;bottom:70px;width:min(390px,calc(100vw - 28px));height:min(610px,calc(100vh - 132px));background:#fff;border:1px solid var(--vge-chat-border);border-radius:24px;overflow:hidden;box-shadow:var(--vge-chat-shadow);display:none;flex-direction:column}.vge-chatbot-root.is-open .vge-chatbot-panel{display:flex}.vge-chatbot-header{background:linear-gradient(135deg,var(--vge-chat-primary),var(--vge-chat-primary2));color:#fff;padding:16px;display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.vge-chatbot-header strong{display:block;font-size:16px;line-height:1.2}.vge-chatbot-header span{display:block;margin-top:4px;color:rgba(255,255,255,.78);font-size:12px}.vge-chatbot-close{border:0;background:rgba(255,255,255,.15);color:#fff;width:34px;height:34px;border-radius:999px;cursor:pointer;font-size:20px;line-height:1}.vge-chatbot-messages{flex:1;overflow-y:auto;padding:16px;background:linear-gradient(180deg,#fff 0%,#f8fbff 100%)}.vge-chatbot-message{display:flex;margin:0 0 12px}.vge-chatbot-message.user{justify-content:flex-end}.vge-chatbot-bubble{max-width:86%;padding:11px 13px;border-radius:18px;font-size:14px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}.vge-chatbot-message.bot .vge-chatbot-bubble{background:#fff;border:1px solid var(--vge-chat-border);border-top-left-radius:7px}.vge-chatbot-message.user .vge-chatbot-bubble{background:var(--vge-chat-primary);color:#fff;border-top-right-radius:7px}.vge-chatbot-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.vge-chatbot-link{display:inline-flex;align-items:center;min-height:30px;padding:6px 10px;border-radius:999px;background:var(--vge-chat-soft);color:var(--vge-chat-primary);text-decoration:none;font-size:12px;font-weight:800;border:1px solid var(--vge-chat-border)}.vge-chatbot-link:hover{background:#e7f5ff}.vge-chatbot-quick{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:10px 12px;border-top:1px solid var(--vge-chat-border);background:#fff;max-height:126px;overflow-y:auto}.vge-chatbot-quick-action{width:100%;min-height:36px;border:1px solid var(--vge-chat-border);background:var(--vge-chat-soft);color:var(--vge-chat-primary);border-radius:14px;padding:8px 10px;font-size:12px;font-weight:850;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:6px;text-align:center;line-height:1.2}.vge-chatbot-quick-action:hover,.vge-chatbot-quick-action:focus-visible{background:#e7f5ff;outline:2px solid rgba(20,184,166,.16)}.vge-chatbot-quick-action.is-primary{background:var(--vge-chat-primary);color:#fff;border-color:var(--vge-chat-primary)}.vge-chatbot-quick-action.is-urgent{background:#fff7ed;color:#9a3412;border-color:#fed7aa}.vge-chatbot-quick-action.is-support{background:#ecfeff;color:#155e75;border-color:#a5f3fc}.vge-chatbot-quick-icon{font-size:14px;line-height:1}.vge-chatbot-form{display:flex;gap:8px;padding:12px;border-top:1px solid var(--vge-chat-border);background:#fff}.vge-chatbot-input{flex:1;min-width:0;border:1px solid var(--vge-chat-border);border-radius:16px;padding:11px 12px;font-size:14px;outline:none}.vge-chatbot-input:focus{border-color:var(--vge-chat-accent);box-shadow:0 0 0 3px rgba(20,184,166,.16)}.vge-chatbot-send{border:0;border-radius:16px;background:var(--vge-chat-primary);color:#fff;padding:0 15px;font-weight:900;cursor:pointer}.vge-chatbot-note{padding:8px 14px 12px;color:var(--vge-chat-muted);font-size:11px;line-height:1.35;background:#fff}.vge-chatbot-typing{opacity:.76}@media(max-width:640px){.vge-chatbot-root{right:14px;bottom:82px}.vge-chatbot-panel{right:-2px;width:calc(100vw - 24px);height:min(590px,calc(100vh - 112px));border-radius:20px}.vge-chatbot-launcher{min-width:132px;height:50px;padding:0 14px}.vge-chatbot-quick{max-height:118px}.vge-chatbot-quick-action{font-size:11.5px;padding:8px 7px}}

.vge-chatbot-debug{margin-top:6px;font-size:10px;color:#64748b;opacity:.75}

.vge-chatbot-handoff-title{font-weight:850;margin-bottom:10px;color:var(--vge-chat-primary)}
.vge-chatbot-handoff-grid{display:grid;grid-template-columns:1fr;gap:8px;margin-top:8px}
.vge-chatbot-handoff-option{width:100%;border:1px solid var(--vge-chat-border);background:#f8fbff;color:var(--vge-chat-primary);border-radius:14px;padding:9px 10px;text-align:left;cursor:pointer;font-size:13px;line-height:1.25;display:flex;align-items:center;gap:8px}
.vge-chatbot-handoff-option:hover,.vge-chatbot-handoff-option:focus-visible{background:#e7f5ff;outline:2px solid rgba(20,184,166,.16)}
.vge-chatbot-handoff-note{margin-top:10px;font-size:11px;color:var(--vge-chat-muted);line-height:1.35}
.vge-chatbot-quick-action.is-guide{background:#eef2ff;color:#3730a3;border-color:#c7d2fe}

/* v62.3 mobile UX polish */
.vge-chatbot-panel{max-height:calc(100dvh - 120px)}
.vge-chatbot-messages{overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
.vge-chatbot-form{padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))}
.vge-chatbot-launcher{touch-action:manipulation}
.vge-chatbot-quick-action,.vge-chatbot-handoff-option,.vge-chatbot-send,.vge-chatbot-close{touch-action:manipulation;-webkit-tap-highlight-color:rgba(20,184,166,.14)}
.vge-chatbot-input{font-size:16px}
.vge-chatbot-message:last-child{margin-bottom:4px}
@media(max-width:640px){
  .vge-chatbot-root{right:10px;bottom:calc(76px + env(safe-area-inset-bottom,0px))}
  .vge-chatbot-panel{position:fixed;left:10px;right:10px;bottom:calc(76px + env(safe-area-inset-bottom,0px));width:auto;height:min(620px,calc(100dvh - 96px - env(safe-area-inset-bottom,0px)));max-height:calc(100dvh - 96px - env(safe-area-inset-bottom,0px));border-radius:20px}
  .vge-chatbot-header{padding:14px 14px 12px}
  .vge-chatbot-header strong{font-size:15px}
  .vge-chatbot-messages{padding:12px}
  .vge-chatbot-bubble{max-width:92%;font-size:13.5px;padding:10px 12px}
  .vge-chatbot-link{min-height:34px;padding:7px 10px}
  .vge-chatbot-quick{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:9px 10px;max-height:132px}
  .vge-chatbot-quick-action{min-height:42px;border-radius:13px;font-size:11.5px;padding:8px 7px}
  .vge-chatbot-handoff-option{min-height:42px;font-size:12.5px}
  .vge-chatbot-form{gap:7px;padding:10px;padding-bottom:calc(10px + env(safe-area-inset-bottom,0px))}
  .vge-chatbot-input{min-height:44px;border-radius:14px;padding:10px 11px}
  .vge-chatbot-send{min-height:44px;border-radius:14px;padding:0 13px}
  .vge-chatbot-note{padding:7px 11px 10px;font-size:10.5px}
  .vge-chatbot-launcher{min-width:0;width:auto;max-width:calc(100vw - 24px);height:50px;padding:0 14px}
  .vge-chatbot-root.is-keyboard-open{bottom:8px}
  .vge-chatbot-root.is-keyboard-open .vge-chatbot-panel{top:8px;bottom:8px;height:auto;max-height:none}
  .vge-chatbot-root.is-keyboard-open .vge-chatbot-launcher{display:none}
  .vge-chatbot-root.is-keyboard-open .vge-chatbot-quick{max-height:88px}
  .vge-chatbot-root.is-keyboard-open .vge-chatbot-note{display:none}
}
@media(max-width:380px){
  .vge-chatbot-quick{grid-template-columns:1fr;max-height:152px}
  .vge-chatbot-quick-action{min-height:38px}
  .vge-chatbot-launcher span:last-child{display:none}
  .vge-chatbot-launcher{width:54px;justify-content:center;padding:0}
}
@media(prefers-reduced-motion:reduce){.vge-chatbot-launcher:hover,.vge-chatbot-launcher:focus-visible{transform:none}}

/* v137 — chatbot layout stabilization and compact quick actions */
.vge-chatbot-panel{
  width:min(380px,calc(100vw - 28px));
  height:min(600px,calc(100vh - 122px));
}
.vge-chatbot-header{
  padding:14px 15px 12px;
}
.vge-chatbot-header strong{
  font-size:15px;
}
.vge-chatbot-header span{
  margin-top:3px;
  font-size:11.5px;
}
.vge-chatbot-messages{
  padding:14px 14px 10px;
}
.vge-chatbot-quick-wrap{
  border-top:1px solid var(--vge-chat-border);
  background:#fff;
}
.vge-chatbot-quick{
  gap:7px;
  padding:10px 10px 8px;
  max-height:none;
  overflow:visible;
}
.vge-chatbot-quick-controls{
  display:flex;
  justify-content:center;
  padding:0 10px 10px;
}
.vge-chatbot-quick-toggle{
  border:1px solid var(--vge-chat-border);
  background:#f8fbff;
  color:var(--vge-chat-primary);
  border-radius:999px;
  padding:7px 12px;
  font-size:11.5px;
  font-weight:850;
  cursor:pointer;
}
.vge-chatbot-quick-toggle[hidden]{
  display:none !important;
}
.vge-chatbot-quick-action{
  min-height:40px;
  padding:8px 9px;
  border-radius:13px;
  font-size:11.5px;
}
.vge-chatbot-form{
  gap:8px;
  padding:10px;
}
.vge-chatbot-input{
  min-height:46px;
  border-radius:15px;
  padding:10px 12px;
}
.vge-chatbot-send{
  min-width:92px;
  min-height:46px;
  border-radius:15px;
  padding:0 16px;
}
.vge-chatbot-note{
  padding:6px 12px 11px;
  font-size:10.5px;
  line-height:1.4;
}
.vge-chatbot-root.is-compact-layout .vge-chatbot-panel{
  width:min(360px,calc(100vw - 24px));
  height:min(560px,calc(100vh - 104px));
}
.vge-chatbot-root.is-compact-layout .vge-chatbot-messages{
  padding:12px 12px 8px;
}
.vge-chatbot-root.is-compact-layout .vge-chatbot-quick{
  grid-template-columns:repeat(2,minmax(0,1fr));
  padding:8px 8px 6px;
}
.vge-chatbot-root.is-compact-layout:not(.has-expanded-tools) .vge-chatbot-quick-action:nth-child(n+5){
  display:none;
}
.vge-chatbot-root.is-compact-layout .vge-chatbot-quick-action{
  min-height:38px;
  padding:7px 8px;
  font-size:11px;
}
.vge-chatbot-root.is-compact-layout .vge-chatbot-note{
  font-size:10px;
}
@media(max-height:860px){
  .vge-chatbot-root{
    bottom:88px;
  }
  .vge-chatbot-panel{
    height:min(540px,calc(100vh - 106px));
  }
  .vge-chatbot-quick{
    padding-top:8px;
  }
  .vge-chatbot-quick-action{
    min-height:36px;
    font-size:11px;
  }
  .vge-chatbot-note{
    display:none;
  }
}
@media(max-width:640px){
  .vge-chatbot-panel{
    left:10px;
    right:10px;
    width:auto;
    height:min(560px,calc(100dvh - 94px - env(safe-area-inset-bottom,0px)));
  }
  .vge-chatbot-quick{
    grid-template-columns:1fr;
  }
  .vge-chatbot-root.is-compact-layout .vge-chatbot-quick{
    grid-template-columns:1fr 1fr;
  }
  .vge-chatbot-input{
    font-size:15px;
  }
  .vge-chatbot-send{
    min-width:82px;
  }
}
@media(max-width:420px){
  .vge-chatbot-root.is-compact-layout .vge-chatbot-quick{
    grid-template-columns:1fr;
  }
  .vge-chatbot-send{
    min-width:76px;
  }
}

/* v138 — stronger public chatbot simplification and viewport safety */
.vge-chatbot-root{
  right:18px;
  bottom:88px;
}
.vge-chatbot-panel{
  position:fixed;
  right:18px;
  bottom:156px;
  width:min(340px,calc(100vw - 28px));
  max-height:min(520px,calc(100vh - 108px));
  height:auto;
  border-radius:22px;
  overflow:hidden;
}
.vge-chatbot-root.is-open .vge-chatbot-panel{
  display:flex;
}
.vge-chatbot-header{
  padding:13px 14px 12px;
  flex:0 0 auto;
}
.vge-chatbot-close{
  width:32px;
  height:32px;
}
.vge-chatbot-messages{
  flex:1 1 auto;
  min-height:150px;
  max-height:240px;
  padding:12px 12px 8px;
}
.vge-chatbot-bubble{
  max-width:90%;
  font-size:13px;
  line-height:1.42;
}
.vge-chatbot-link{
  font-size:11.5px;
}
.vge-chatbot-quick-wrap{
  flex:0 0 auto;
}
.vge-chatbot-quick{
  grid-template-columns:1fr;
  gap:6px;
  padding:8px 8px 4px;
}
.vge-chatbot-quick-action{
  justify-content:flex-start;
  min-height:36px;
  padding:8px 10px;
  font-size:11.5px;
}
.vge-chatbot-quick-controls{
  padding:0 8px 8px;
}
.vge-chatbot-quick-toggle{
  width:100%;
  min-height:34px;
}
.vge-chatbot-form{
  flex:0 0 auto;
  align-items:stretch;
  gap:8px;
  padding:9px;
}
.vge-chatbot-input{
  min-height:42px;
  padding:10px 12px;
}
.vge-chatbot-send{
  min-width:78px;
  min-height:42px;
  padding:0 14px;
}
.vge-chatbot-note{
  display:none;
}
.vge-chatbot-root.is-compact-layout .vge-chatbot-panel,
.vge-chatbot-root.has-quick-toggle .vge-chatbot-panel{
  width:min(332px,calc(100vw - 24px));
}
.vge-chatbot-root.is-compact-layout .vge-chatbot-messages{
  max-height:210px;
}
.vge-chatbot-root.is-compact-layout .vge-chatbot-quick{
  grid-template-columns:1fr;
}
.vge-chatbot-root.is-compact-layout:not(.has-expanded-tools) .vge-chatbot-quick-action:nth-child(n+4){
  display:none;
}
.vge-chatbot-root.has-expanded-tools .vge-chatbot-messages{
  max-height:188px;
}
@media(max-height:760px){
  .vge-chatbot-panel{
    bottom:150px;
    max-height:min(470px,calc(100vh - 92px));
  }
  .vge-chatbot-messages{
    max-height:180px;
  }
}
@media(max-width:640px){
  .vge-chatbot-root{
    right:10px;
    bottom:78px;
  }
  .vge-chatbot-panel{
    left:10px;
    right:10px;
    width:auto;
    bottom:142px;
    max-height:min(500px,calc(100dvh - 96px - env(safe-area-inset-bottom,0px)));
    border-radius:20px;
  }
  .vge-chatbot-messages{
    min-height:132px;
    max-height:170px;
  }
  .vge-chatbot-form{
    padding-bottom:calc(9px + env(safe-area-inset-bottom,0px));
  }
}
@media(max-width:420px){
  .vge-chatbot-panel{
    bottom:136px;
    max-height:min(470px,calc(100dvh - 88px - env(safe-area-inset-bottom,0px)));
  }
}

/* v140 — emergency public chatbot rescue: uncluttered layout and safe viewport fit */
.vge-chatbot-root{
  right:16px;
  bottom:84px;
}
.vge-chatbot-panel{
  right:16px;
  bottom:152px;
  width:min(330px,calc(100vw - 24px));
  max-height:min(400px,calc(100dvh - 96px));
  min-height:320px;
  border-radius:22px;
  display:none;
}
.vge-chatbot-root.is-open .vge-chatbot-panel{
  display:flex;
  flex-direction:column;
}
.vge-chatbot-header{
  padding:12px 14px 10px;
}
.vge-chatbot-header strong{
  font-size:14px;
}
.vge-chatbot-header span{
  font-size:11px;
  line-height:1.35;
}
.vge-chatbot-messages{
  min-height:118px;
  max-height:none;
  flex:1 1 auto;
  padding:10px 12px 8px;
}
.vge-chatbot-bubble{
  font-size:12.5px;
  line-height:1.45;
}
.vge-chatbot-quick-wrap{
  border-top:1px solid var(--vge-chat-border);
  background:#fff;
}
.vge-chatbot-quick{
  display:grid;
  grid-template-columns:1fr;
  gap:6px;
  padding:0 8px 8px;
}
.vge-chatbot-root:not(.has-expanded-tools) .vge-chatbot-quick{
  display:none;
}
.vge-chatbot-quick-controls{
  padding:8px;
}
.vge-chatbot-quick-toggle{
  width:100%;
  min-height:34px;
  font-size:11.5px;
}
.vge-chatbot-quick-action{
  min-height:34px;
  padding:7px 10px;
  font-size:11px;
  justify-content:flex-start;
}
.vge-chatbot-form{
  padding:9px;
  gap:8px;
}
.vge-chatbot-input{
  min-height:44px;
  padding:10px 12px;
  font-size:14px;
}
.vge-chatbot-send{
  min-width:84px;
  min-height:44px;
  padding:0 14px;
  font-size:13px;
}
.vge-chatbot-note{
  display:none !important;
}
@media(max-height:820px){
  .vge-chatbot-panel{
    max-height:min(360px,calc(100dvh - 90px));
    min-height:300px;
  }
}
@media(max-width:640px){
  .vge-chatbot-root{
    right:10px;
    bottom:76px;
  }
  .vge-chatbot-panel{
    left:10px;
    right:10px;
    width:auto;
    bottom:136px;
    max-height:min(350px,calc(100dvh - 88px - env(safe-area-inset-bottom,0px)));
    min-height:284px;
    border-radius:18px;
  }
  .vge-chatbot-form{
    padding-bottom:calc(9px + env(safe-area-inset-bottom,0px));
  }
}

/* v141 — hard chatbot reset: remove shortcut clutter at the source */
.vge-chatbot-panel-minimal{
  position:fixed !important;
  right:18px !important;
  bottom:150px !important;
  top:auto !important;
  width:min(330px,calc(100vw - 28px)) !important;
  height:auto !important;
  min-height:260px !important;
  max-height:min(360px,calc(100dvh - 110px)) !important;
  display:none;
  overflow:hidden !important;
  border-radius:22px !important;
}
.vge-chatbot-root.is-open .vge-chatbot-panel-minimal{
  display:flex !important;
  flex-direction:column !important;
}
.vge-chatbot-panel-minimal .vge-chatbot-header{
  flex:0 0 auto !important;
  padding:12px 14px 10px !important;
}
.vge-chatbot-panel-minimal .vge-chatbot-messages{
  flex:1 1 auto !important;
  min-height:128px !important;
  max-height:none !important;
  padding:12px !important;
  overflow:auto !important;
}
.vge-chatbot-panel-minimal .vge-chatbot-form{
  flex:0 0 auto !important;
  padding:10px !important;
  gap:8px !important;
}
.vge-chatbot-panel-minimal .vge-chatbot-input{
  min-height:42px !important;
  font-size:14px !important;
  border-radius:14px !important;
}
.vge-chatbot-panel-minimal .vge-chatbot-send{
  min-width:76px !important;
  min-height:42px !important;
  border-radius:14px !important;
  font-size:13px !important;
}
.vge-chatbot-panel-minimal .vge-chatbot-quick-wrap,
.vge-chatbot-panel-minimal .vge-chatbot-quick,
.vge-chatbot-panel-minimal .vge-chatbot-note{
  display:none !important;
}
@media(max-height:760px){
  .vge-chatbot-panel-minimal{
    bottom:132px !important;
    max-height:min(320px,calc(100dvh - 92px)) !important;
    min-height:240px !important;
  }
}
@media(max-width:640px){
  .vge-chatbot-panel-minimal{
    left:10px !important;
    right:10px !important;
    bottom:132px !important;
    width:auto !important;
    max-height:min(340px,calc(100dvh - 94px - env(safe-area-inset-bottom,0px))) !important;
    min-height:250px !important;
  }
}

/* v144 — open chat uses launcher space and hides redundant Need help button */
.vge-chatbot-root.is-open .vge-chatbot-launcher{
  display:none !important;
}
.vge-chatbot-root.is-open{
  bottom:18px;
}
.vge-chatbot-root.is-open .vge-chatbot-panel{
  bottom:18px;
  max-height:min(680px,calc(100dvh - 36px));
  min-height:min(560px,calc(100dvh - 36px));
}
.vge-chatbot-root.is-open .vge-chatbot-messages{
  max-height:none;
  min-height:260px;
}
@media(max-height:820px){
  .vge-chatbot-root.is-open .vge-chatbot-panel{
    max-height:calc(100dvh - 32px);
    min-height:min(520px,calc(100dvh - 32px));
    bottom:16px;
  }
  .vge-chatbot-root.is-open .vge-chatbot-messages{
    min-height:220px;
  }
}
@media(max-width:640px){
  .vge-chatbot-root.is-open{
    bottom:12px;
  }
  .vge-chatbot-root.is-open .vge-chatbot-panel{
    left:10px;
    right:10px;
    bottom:12px;
    max-height:calc(100dvh - 24px - env(safe-area-inset-bottom,0px));
    min-height:min(540px,calc(100dvh - 24px - env(safe-area-inset-bottom,0px)));
  }
  .vge-chatbot-root.is-open .vge-chatbot-messages{
    min-height:230px;
  }
}
@media(max-width:420px){
  .vge-chatbot-root.is-open .vge-chatbot-panel{
    bottom:10px;
    max-height:calc(100dvh - 20px - env(safe-area-inset-bottom,0px));
    min-height:min(500px,calc(100dvh - 20px - env(safe-area-inset-bottom,0px)));
  }
}


/* v146 — final expanded open-chat state: hide launcher and use launcher space */
body.vge-chatbot-is-open .vge-chatbot-launcher,
.vge-chatbot-root.is-open .vge-chatbot-launcher{
  display:none !important;
  visibility:hidden !important;
  pointer-events:none !important;
}
.vge-chatbot-root.is-open{
  right:16px !important;
  bottom:14px !important;
}
.vge-chatbot-root.is-open .vge-chatbot-panel,
.vge-chatbot-root.is-open .vge-chatbot-panel-minimal{
  position:fixed !important;
  right:16px !important;
  bottom:14px !important;
  width:min(430px,calc(100vw - 32px)) !important;
  height:min(720px,calc(100dvh - 28px)) !important;
  max-height:calc(100dvh - 28px) !important;
  min-height:min(600px,calc(100dvh - 28px)) !important;
  display:flex !important;
}
.vge-chatbot-root.is-open .vge-chatbot-messages{
  flex:1 1 auto !important;
  min-height:320px !important;
  max-height:none !important;
}
.vge-chatbot-root.is-open .vge-chatbot-bubble{
  font-size:13.5px !important;
  line-height:1.5 !important;
}
.vge-chatbot-root.is-open .vge-chatbot-form{
  flex:0 0 auto !important;
}
@media(max-height:760px){
  .vge-chatbot-root.is-open .vge-chatbot-panel,
  .vge-chatbot-root.is-open .vge-chatbot-panel-minimal{
    bottom:10px !important;
    height:calc(100dvh - 20px) !important;
    min-height:calc(100dvh - 20px) !important;
    max-height:calc(100dvh - 20px) !important;
  }
  .vge-chatbot-root.is-open .vge-chatbot-messages{
    min-height:240px !important;
  }
}
@media(max-width:640px){
  .vge-chatbot-root.is-open{
    left:10px !important;
    right:10px !important;
    bottom:10px !important;
  }
  .vge-chatbot-root.is-open .vge-chatbot-panel,
  .vge-chatbot-root.is-open .vge-chatbot-panel-minimal{
    left:10px !important;
    right:10px !important;
    bottom:10px !important;
    width:auto !important;
    height:calc(100dvh - 20px - env(safe-area-inset-bottom,0px)) !important;
    min-height:calc(100dvh - 20px - env(safe-area-inset-bottom,0px)) !important;
    max-height:calc(100dvh - 20px - env(safe-area-inset-bottom,0px)) !important;
  }
  .vge-chatbot-root.is-open .vge-chatbot-messages{
    min-height:260px !important;
  }
}

/* v152 safe conversion-flow cards: internal-safe prompts shown after risky/unclear answers. */
.vge-chatbot-flow-card{max-width:92%;background:#fbfdff!important}
.vge-chatbot-flow-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:7px;color:var(--vge-chat-primary)}
.vge-chatbot-flow-head strong{font-size:13px;line-height:1.25}
.vge-chatbot-flow-priority{display:inline-flex;align-items:center;border-radius:999px;padding:4px 7px;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.02em;background:#eef2ff;color:#3730a3;white-space:nowrap}
.vge-chatbot-flow-priority.is-high{background:#fff7ed;color:#9a3412}.vge-chatbot-flow-priority.is-medium{background:#ecfeff;color:#155e75}.vge-chatbot-flow-priority.is-low{background:#f1f5f9;color:#475569}
.vge-chatbot-flow-objective{font-size:12px;color:var(--vge-chat-muted);margin:0 0 9px;line-height:1.35;white-space:normal}
.vge-chatbot-flow-questions{display:grid;gap:7px;margin-top:8px}
.vge-chatbot-flow-question{width:100%;border:1px solid var(--vge-chat-border);background:#fff;color:var(--vge-chat-primary);border-radius:12px;padding:8px 9px;text-align:left;cursor:pointer;font-size:12px;font-weight:800;line-height:1.25}
.vge-chatbot-flow-question:hover,.vge-chatbot-flow-question:focus-visible{background:#e7f5ff;outline:2px solid rgba(20,184,166,.16)}
.vge-chatbot-flow-note{margin-top:9px;font-size:11px;color:var(--vge-chat-muted);line-height:1.35;white-space:normal}

/* v154 — approved knowledge source cards */
.vge-chatbot-sourcecards{margin-top:10px;border-top:1px solid var(--vge-chat-border);padding-top:9px;display:grid;gap:7px}
.vge-chatbot-sourcecards-title{font-size:10.5px;font-weight:900;text-transform:uppercase;letter-spacing:.04em;color:var(--vge-chat-muted)}
.vge-chatbot-sourcecard{border:1px solid var(--vge-chat-border);border-radius:12px;background:#f8fbff;padding:8px 9px;display:grid;gap:3px}
.vge-chatbot-sourcecard span{font-size:10px;color:var(--vge-chat-muted);text-transform:uppercase;font-weight:850;letter-spacing:.03em}
.vge-chatbot-sourcecard strong{font-size:11.5px;line-height:1.25;color:var(--vge-chat-primary)}
.vge-chatbot-sourcecard-links{display:flex;flex-wrap:wrap;gap:6px;margin-top:2px}
.vge-chatbot-sourcecard-links a{font-size:10.5px;font-weight:850;color:var(--vge-chat-accent);text-decoration:none}
.vge-chatbot-sourcecard-links a:hover{text-decoration:underline}
