#leu-ai-launch{position:fixed;right:20px;bottom:80px;z-index:10020;border:1px solid #7590ff88;background:linear-gradient(120deg,#4c97fa,#9360ee);color:white;border-radius:999px;box-shadow:0 12px 38px #0006;padding:13px 19px;font:700 14px Arial,sans-serif;cursor:pointer}#leu-ai-panel{position:fixed;z-index:10021;right:20px;bottom:143px;width:min(390px,calc(100vw - 24px));height:min(560px,calc(100dvh - 175px));display:flex;flex-direction:column;overflow:hidden;background:#0c142a;color:#ebf2ff;border:1px solid #6578aa;border-radius:18px;box-shadow:0 18px 75px #000b;font:14px/1.45 Arial,sans-serif}#leu-ai-panel[hidden]{display:none!important}.leu-ai-top{padding:15px 16px;background:#162447;border-bottom:1px solid #34486c;display:flex;justify-content:space-between;align-items:center}.leu-ai-top strong{font-size:16px}.leu-ai-top small{display:block;color:#96b9f2}.leu-ai-close{border:0;background:transparent;color:white;font-size:24px;cursor:pointer}.leu-ai-messages{flex:1;overflow-y:auto;padding:15px;display:flex;flex-direction:column;gap:10px}.leu-ai-bubble{max-width:92%;padding:11px 13px;border-radius:14px;background:#1b2c4f;white-space:pre-wrap;overflow-wrap:anywhere}.leu-ai-bubble.user{align-self:flex-end;background:#326ab8}.leu-ai-bubble.assistant{align-self:flex-start}.leu-ai-options{display:flex;flex-wrap:wrap;gap:7px;padding:0 13px 10px}.leu-ai-options button{border:1px solid #5674aa;background:#192a4d;color:#d7e6ff;border-radius:14px;padding:7px 9px;font-size:12px;cursor:pointer}.leu-ai-form{display:flex;gap:8px;padding:12px;background:#111d37;border-top:1px solid #30436b}.leu-ai-form input{min-width:0;flex:1;border:1px solid #5974a8;background:#0b1530;color:white;border-radius:10px;padding:11px}.leu-ai-form button{border:0;background:#5799ff;color:#081326;border-radius:10px;padding:0 14px;font-weight:800;cursor:pointer}.leu-ai-form button:disabled{opacity:.5}.leu-ai-note{padding:0 13px 12px;font-size:11px;color:#9fb1d1}.leu-ai-note a{color:#b8d6ff}@media(max-width:600px){#leu-ai-launch{right:11px;bottom:92px;padding:12px 13px}#leu-ai-panel{right:8px;bottom:148px;width:calc(100vw - 16px);height:min(520px,calc(100dvh - 160px))}}
/* v6.8.1 – branded compact AI launcher; keep chat behavior intact */
#leu-ai-launch{right:12px;bottom:56px;padding:0;border:0;background:transparent;box-shadow:none;border-radius:12px;width:230px;max-width:calc(100vw - 24px);height:auto;display:block;line-height:0;filter:drop-shadow(0 6px 14px rgba(31,74,188,.28));transition:transform .18s ease,filter .18s ease;z-index:10020}
#leu-ai-launch img{width:100%;height:auto;display:block;pointer-events:none}
#leu-ai-launch:hover{transform:translateY(-3px);filter:drop-shadow(0 8px 16px rgba(63,95,228,.4))}
#leu-ai-launch:focus-visible{outline:3px solid #a3c6ff;outline-offset:3px}
#leu-ai-launch[aria-expanded="true"]{display:none}
#leu-ai-panel{right:12px;bottom:54px;max-height:calc(100dvh - 75px)}
@media(max-width:600px){#leu-ai-launch{width:116px;right:8px;bottom:46px;padding:0}#leu-ai-panel{right:7px;bottom:46px;width:min(370px,calc(100vw - 14px));height:min(500px,calc(100dvh - 80px));max-height:calc(100dvh - 80px)}}
@media(prefers-reduced-motion:reduce){#leu-ai-launch{transition:none}}

/* v6.8.2: permanent launcher avatar placement fixes */
#leu-ai-launch{right:18px!important;bottom:74px!important;width:230px!important;min-width:0!important;height:82px!important;background:transparent!important;border:0!important;padding:0!important;overflow:visible!important;z-index:2147482900!important;filter:drop-shadow(0 7px 16px rgba(4,9,31,.6))!important}
#leu-ai-launch picture,#leu-ai-launch img{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;visibility:visible!important;opacity:1!important;pointer-events:none!important}
#leu-ai-panel{right:18px!important;bottom:72px!important;z-index:2147482901!important}
#leu-ai-launch[aria-expanded="true"]{display:none!important}
@media(max-width:600px){#leu-ai-launch{right:10px!important;bottom:58px!important;width:112px!important;height:108px!important}#leu-ai-panel{right:8px!important;bottom:56px!important;width:calc(100vw - 16px)!important;max-width:370px!important;height:min(520px,calc(100dvh - 90px))!important;max-height:calc(100dvh - 90px)!important}}

/* v6.8.3 layout: compact branded chat and no duplicate floating contact */
.leu-ai-brand{display:inline-flex;align-items:center;gap:9px;line-height:1.15}
.leu-ai-brand img{width:38px;height:38px;object-fit:contain;flex:none}
.leu-ai-top{gap:12px}
#leu-ai-launch{bottom:78px!important}
#leu-ai-panel{bottom:76px!important}
@media(max-width:600px){#leu-ai-launch{bottom:66px!important}#leu-ai-panel{bottom:56px!important}.leu-ai-brand img{width:33px;height:33px}}

/* v6.8.4: final cleanup */
#leu-ai-launch{z-index:2147482900!important}

/* v6.8.6 authoritative mobile chat layout (iOS Safari / Android) */
#leu-ai-panel,#leu-ai-panel *,#leu-ai-launch{box-sizing:border-box}
#leu-ai-panel{min-width:0;min-height:0;isolation:isolate}
#leu-ai-panel .leu-ai-top{flex:0 0 auto;min-width:0}
#leu-ai-panel .leu-ai-messages{min-height:0;min-width:0;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
#leu-ai-panel .leu-ai-bubble{min-width:0;max-width:94%;font-size:14px}
#leu-ai-panel .leu-ai-options{flex:0 0 auto;min-width:0;max-height:68px;overflow:auto;flex-wrap:nowrap;scrollbar-width:none}
#leu-ai-panel .leu-ai-options button{white-space:nowrap;flex:none}
#leu-ai-panel .leu-ai-form{flex:0 0 auto;min-width:0}
#leu-ai-panel .leu-ai-form input{font-size:16px!important;min-width:0;width:0;flex:1 1 0;max-width:100%;appearance:none}
#leu-ai-panel .leu-ai-form button{flex:0 0 48px;min-height:46px}
#leu-ai-panel .leu-ai-note{flex:0 0 auto;line-height:1.35;overflow-wrap:anywhere}
@media (max-width:700px){
 #leu-ai-launch{width:108px!important;height:100px!important;right:max(8px,env(safe-area-inset-right))!important;bottom:calc(74px + env(safe-area-inset-bottom,0px))!important}
 #leu-ai-panel:not([hidden]){position:fixed!important;display:flex!important;flex-direction:column!important;max-width:none!important;max-height:none!important;min-height:0!important;border-radius:16px!important;transform:none!important;margin:0!important}
 #leu-ai-panel .leu-ai-top{padding:10px 13px;min-height:64px}
 #leu-ai-panel .leu-ai-brand img{height:30px;width:30px}
 #leu-ai-panel .leu-ai-top strong{font-size:14px}
 #leu-ai-panel .leu-ai-messages{padding:10px;gap:8px}
 #leu-ai-panel .leu-ai-options{padding:5px 10px 8px}
 #leu-ai-panel .leu-ai-form{padding:8px 10px}
 #leu-ai-panel .leu-ai-note{padding:4px 10px 8px;font-size:10px}
}
@media(max-height:420px){#leu-ai-panel .leu-ai-options{display:none}#leu-ai-panel .leu-ai-note{display:none}#leu-ai-panel .leu-ai-top{min-height:48px;padding:6px 12px}}

/* v6.8.7 Mobile Clean UX: lift compact launcher just above four-item navigation */
@media(max-width:700px){#leu-ai-launch{right:12px!important;bottom:calc(80px + env(safe-area-inset-bottom,0px))!important;width:102px!important;height:90px!important}}

/* v6.8.11: legible LEUMASSI logo in chat header */
#leu-ai-panel .leu-ai-brand{gap:12px;display:inline-flex;align-items:center;min-width:0}
#leu-ai-panel .leu-ai-brand img{width:56px!important;height:56px!important;min-width:56px!important;object-fit:contain;flex:none}
#leu-ai-panel .leu-ai-brand span{font-weight:800}
@media(max-width:600px){#leu-ai-panel .leu-ai-brand img{width:52px!important;height:52px!important;min-width:52px!important}#leu-ai-panel .leu-ai-top{min-height:78px!important}}
