:root{
  --vms-primary:#0c4476;
  --vms-accent:#527c9f;
  --vms-button-bg:#0c4476;
  --vms-button-text:#ffffff;
  --vms-surface:#ffffff;
  --vms-ink:#0f172a;
  --vms-soft:#f7fbff;
  --vms-border:rgba(12,68,118,.14);
  --vms-shadow:0 24px 70px rgba(12,68,118,.18);
}
.vms-widget{font-family:Inter,Roboto,Arial,sans-serif;position:relative;z-index:99998}
.vms-floating{position:fixed;right:22px;bottom:22px}
.vms-launcher{display:flex;align-items:center;gap:12px;border:none;background:linear-gradient(135deg,var(--vms-button-bg),#165d9b);color:var(--vms-button-text);padding:15px 20px;border-radius:999px;box-shadow:0 20px 50px rgba(12,68,118,.32);cursor:pointer;font-weight:800;letter-spacing:.02em;transition:transform .25s ease,box-shadow .25s ease;position:relative;overflow:hidden}
.vms-launcher:before{content:"";position:absolute;inset:0;background:linear-gradient(120deg,transparent,rgba(255,255,255,.18),transparent);transform:translateX(-100%);animation:vmsShimmer 3.2s ease-in-out infinite}
.vms-launcher:hover{transform:translateY(-3px);box-shadow:0 28px 62px rgba(12,68,118,.36)}
.vms-launcher-label{white-space:nowrap}
.vms-leaf-wrap,.vms-brand{display:grid;place-items:center;position:relative}
.vms-brand{width:58px;height:58px;border-radius:20px;background:linear-gradient(180deg,rgba(255,255,255,.2),rgba(255,255,255,.05));border:1px solid rgba(255,255,255,.28);backdrop-filter:blur(8px);box-shadow:inset 0 0 0 1px rgba(255,255,255,.08),0 16px 30px rgba(0,0,0,.14)}
.vms-brand-ring{position:absolute;inset:6px;border-radius:16px;border:1px dashed rgba(255,255,255,.25);animation:vmsSpin 14s linear infinite}
.vms-chat-icon{width:26px;height:26px;fill:#fff;filter:drop-shadow(0 10px 16px rgba(255,255,255,.25));animation:vmsChatFloat 3.3s ease-in-out infinite}
.vms-launcher .vms-chat-icon{width:22px;height:22px;animation:vmsChatPulse 2.2s ease-in-out infinite}
.vms-panel{position:absolute;right:0;bottom:82px;width:min(428px,calc(100vw - 24px));background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);border:1px solid var(--vms-border);border-radius:30px;overflow:hidden;box-shadow:var(--vms-shadow);backdrop-filter:blur(10px)}
.vms-embedded .vms-panel{position:relative;right:auto;bottom:auto;width:min(440px,100%)}
.vms-embedded .vms-launcher{display:none}
.vms-header{position:relative;display:flex;align-items:center;gap:14px;padding:22px 20px 18px;color:#fff;background:radial-gradient(circle at top right,rgba(255,255,255,.18),transparent 30%),linear-gradient(135deg,var(--vms-primary),#114d84 62%,#0a3459)}
.vms-header:after{content:"";position:absolute;inset:auto -36px -46px auto;width:150px;height:150px;background:radial-gradient(circle,rgba(255,255,255,.18),transparent 70%)}
.vms-title{font-size:19px;font-weight:900;line-height:1.2}
.vms-subtitle{font-size:13px;opacity:.95;color:#dbeafe}
.vms-body{padding:16px;background:linear-gradient(180deg,rgba(255,255,255,.75),#fff)}
.vms-status-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--vms-soft);border:1px solid var(--vms-border);padding:10px 12px;border-radius:16px;color:var(--vms-accent);font-size:12px;font-weight:800;margin-bottom:14px}
.vms-live-dot{display:inline-flex;align-items:center;gap:8px;color:#123b5d}.vms-live-dot:before{content:"";width:8px;height:8px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 6px rgba(34,197,94,.15)}
.vms-hero-card{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:16px;border-radius:20px;background:linear-gradient(135deg,rgba(12,68,118,.08),rgba(82,124,159,.10));border:1px solid rgba(12,68,118,.12);margin-bottom:14px}
.vms-hero-copy{display:flex;flex-direction:column;gap:5px}.vms-hero-copy strong{color:#10385c;font-size:14px}.vms-hero-copy span{font-size:12px;color:#4e6882;line-height:1.5}
.vms-hero-badge,.vms-chip{display:inline-flex;align-items:center;justify-content:center;padding:8px 12px;border-radius:999px;background:#fff;color:#0c4476;font-size:11px;font-weight:800;border:1px solid rgba(12,68,118,.12);white-space:nowrap}
.vms-chip.soft{background:#eef6fc;color:#527c9f}
.vms-chat-window{max-height:330px;overflow:auto;padding-right:4px;display:flex;flex-direction:column;gap:10px;scroll-behavior:smooth;margin-bottom:14px}
.vms-chat-window:empty{display:none}
.vms-bubble{max-width:86%;padding:12px 14px;border-radius:18px;line-height:1.45;font-size:13px;box-shadow:0 10px 18px rgba(15,23,42,.06);animation:vmsBubbleIn .22s ease}
.vms-bubble-head{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;margin-bottom:6px;opacity:.75}
.vms-bubble small{display:block;margin-top:6px;font-size:10px;opacity:.62}
.vms-bubble.system{align-self:flex-start;background:#eef5fb;color:#17456c;border-top-left-radius:8px}
.vms-bubble.visitor{align-self:flex-end;background:linear-gradient(135deg,var(--vms-primary),#165d9b);color:#fff;border-top-right-radius:8px}
.vms-bubble.agent{align-self:flex-start;background:#fff;color:#16324e;border:1px solid rgba(12,68,118,.12);border-top-left-radius:8px}
.vms-queue-card{padding:14px 16px;border-radius:22px;background:linear-gradient(135deg,#0f4678,#145993);color:#fff;margin-bottom:14px;box-shadow:0 18px 32px rgba(12,68,118,.18)}
.vms-queue-card.connected{background:linear-gradient(135deg,#0f6a48,#15965f)}
.vms-queue-card.closed{background:linear-gradient(135deg,#536477,#7b8a99)}
.vms-queue-top{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:8px}.vms-queue-title{font-size:15px;font-weight:900;margin-bottom:4px}.vms-queue-meta{font-size:12px;color:#d9e8f7}
.vms-intake-form,.vms-message-form{display:flex;flex-direction:column;gap:12px}
.vms-step{display:none;padding:16px;border:1px solid rgba(12,68,118,.1);border-radius:22px;background:#fff;box-shadow:0 14px 24px rgba(12,68,118,.05)}
.vms-step.active{display:flex;flex-direction:column;gap:12px;animation:vmsBubbleIn .25s ease}
.vms-step label{font-size:13px;font-weight:900;color:#163a5c}
.vms-step input,.vms-step textarea,.vms-message-form input{width:100%;border:1px solid rgba(12,68,118,.14);border-radius:16px;padding:13px 14px;font-size:14px;outline:none;background:#fbfdff;color:#0f172a;transition:border-color .18s ease, box-shadow .18s ease}
.vms-step input:focus,.vms-step textarea:focus,.vms-message-form input:focus{border-color:rgba(12,68,118,.42);box-shadow:0 0 0 4px rgba(12,68,118,.08)}
.vms-step-actions,.vms-message-form{display:flex;gap:10px}.vms-step-actions button,.vms-step button,.vms-message-form button{appearance:none;border:none;border-radius:14px;padding:12px 16px;background:var(--vms-button-bg);color:var(--vms-button-text);font-weight:800;cursor:pointer;box-shadow:0 12px 22px rgba(12,68,118,.18)}
.vms-step-actions .vms-back{background:#eef5fb;color:#10385c;box-shadow:none}
.vms-message-form input{flex:1}.vms-message-form button{padding-inline:18px}
.vms-powered-by{margin-top:14px;padding-top:12px;border-top:1px solid rgba(12,68,118,.08);text-align:center;font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--vms-accent)}
@keyframes vmsChatFloat{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-6px) scale(1.03)}}
@keyframes vmsChatPulse{0%,100%{transform:translateY(0) scale(1)}35%{transform:translateY(-2px) scale(1.06)}65%{transform:translateY(1px) scale(.98)}}
@keyframes vmsSpin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}
@keyframes vmsBubbleIn{from{transform:translateY(8px);opacity:0}to{transform:none;opacity:1}}
@keyframes vmsShimmer{0%{transform:translateX(-100%)}55%,100%{transform:translateX(140%)}}
@media (max-width:680px){.vms-floating{right:12px;bottom:12px}.vms-panel{width:min(100vw - 18px,420px);bottom:76px}.vms-status-bar,.vms-hero-card,.vms-queue-top{flex-direction:column;align-items:flex-start}.vms-launcher-label{display:inline-block;max-width:110px;overflow:hidden;text-overflow:ellipsis}}
.vms-quick-highlights{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px}
.vms-typing-card{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 14px;border:1px solid rgba(12,68,118,.12);background:linear-gradient(135deg,#f7fbff,#eef6fd);border-radius:18px;margin-top:10px;color:#284b6d;font-size:12px;font-weight:700}
.vms-typing-dots{display:flex;gap:5px}.vms-typing-dots i{width:7px;height:7px;border-radius:50%;background:#527c9f;display:block;animation:vmsTyping 1.2s infinite ease-in-out}.vms-typing-dots i:nth-child(2){animation-delay:.15s}.vms-typing-dots i:nth-child(3){animation-delay:.3s}
@keyframes vmsTyping{0%,80%,100%{transform:translateY(0);opacity:.35}40%{transform:translateY(-4px);opacity:1}}
