.istres-chat-launcher,.istres-chat-panel{font-family:Arial,Helvetica,sans-serif;box-sizing:border-box}.istres-chat-launcher *,.istres-chat-panel *{box-sizing:border-box}.istres-chat-launcher{position:fixed;right:64px;bottom:max(7px,env(safe-area-inset-bottom));z-index:100010;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:52px;height:60px;padding:2px;border:0;border-radius:10px;background:transparent;color:#fff;box-shadow:none;cursor:pointer;overflow:visible;transition:transform .18s ease}.istres-chat-launcher span{display:block;color:#fff;font:700 11px/1 Arial,sans-serif;text-shadow:0 1px 3px rgba(0,35,75,.8)}.istres-chat-launcher img{display:block;width:34px;height:34px;border:1px solid rgba(255,255,255,.95);border-radius:50%;object-fit:cover;box-shadow:0 4px 10px rgba(2,35,69,.3)}.istres-chat-launcher:hover{transform:translateY(-1px) scale(1.04)}
.istres-chat-panel{position:fixed;right:18px;bottom:84px;z-index:100011;display:none;width:min(390px,calc(100vw - 36px));height:min(580px,calc(100dvh - 106px));overflow:hidden;border:1px solid #cddceb;border-radius:18px;background:#fff;box-shadow:0 22px 55px rgba(3,32,64,.3)}.istres-chat-panel.is-open{display:grid;grid-template-rows:auto 1fr auto auto}.istres-chat-head{display:flex;align-items:center;gap:10px;padding:12px 14px;background:linear-gradient(135deg,#073f7e,#0875c9);color:#fff}.istres-chat-head img{width:42px;height:42px;border:2px solid rgba(255,255,255,.8);border-radius:50%;object-fit:cover}.istres-chat-head div{flex:1;min-width:0}.istres-chat-head strong,.istres-chat-head small{display:block}.istres-chat-head strong{font-size:15px}.istres-chat-head small{margin-top:3px;color:#d9efff;font-size:12px}.istres-chat-close{width:36px;height:36px;border:0;border-radius:50%;background:rgba(255,255,255,.15);color:#fff;cursor:pointer;font-size:23px;line-height:1}
.istres-chat-messages{overflow-y:auto;padding:14px;background:#f5f8fb}.istres-chat-message{max-width:88%;margin:0 0 10px;padding:9px 11px;border-radius:13px;overflow-wrap:anywhere;font-size:14px;line-height:1.4}.istres-chat-message p{margin:0;white-space:pre-wrap}.istres-chat-message.is-assistant{margin-right:auto;border-bottom-left-radius:4px;background:#fff;color:#24374a;box-shadow:0 2px 8px rgba(20,48,76,.08)}.istres-chat-message.is-user{margin-left:auto;border-bottom-right-radius:4px;background:#0875c9;color:#fff}.istres-chat-message.is-error{color:#9c271f;background:#fff0ef}.istres-chat-message.is-loading{color:#60758a;font-style:italic}.istres-chat-sources{display:grid;gap:6px;margin-top:9px;padding-top:8px;border-top:1px solid #e1e8ef}.istres-chat-source{display:block;color:#075ca8;text-decoration:none;font-weight:700;font-size:12px}.istres-chat-source::before{content:'↗ ';color:#f0a000}.istres-chat-source:hover{text-decoration:underline}
.istres-chat-form{display:flex;gap:8px;padding:11px 11px 7px;border-top:1px solid #dce5ed;background:#fff}.istres-chat-field{display:block;flex:1;min-width:0}.istres-chat-form textarea{display:block;width:100%;height:42px;max-height:92px;resize:none;padding:10px 11px;border:1px solid #bdcede;border-radius:11px;outline:none;font:14px/1.3 Arial,sans-serif}.istres-chat-form textarea:focus{border-color:#0875c9;box-shadow:0 0 0 3px rgba(8,117,201,.12)}.istres-chat-send{min-width:45px;border:0;border-radius:11px;background:#f5a900;color:#053d72;cursor:pointer;font-size:18px}.istres-chat-send:disabled{opacity:.55;cursor:wait}.istres-chat-notice{margin:0;padding:0 12px 9px;background:#fff;color:#6c7a88;font-size:10px;line-height:1.3}.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(max-width:639px){.istres-chat-launcher{right:10px;bottom:max(5px,env(safe-area-inset-bottom));width:48px;height:56px}.istres-chat-launcher img{width:32px;height:32px}.istres-chat-launcher span{font-size:10px}.istres-chat-panel{inset:8px 8px 66px;width:auto;height:auto;max-height:none;border-radius:16px}.istres-chat-panel.is-open{display:grid}.istres-chat-mobile-open{overflow:hidden}.istres-chat-head{padding:10px 12px}.istres-chat-messages{padding:12px}.istres-chat-message{max-width:91%;font-size:14px}}
@media(prefers-reduced-motion:reduce){.istres-chat-launcher{transition:none}}
.istres-chat-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 12px 9px;background:#fff}.istres-chat-foot .istres-chat-notice{padding:0}.istres-chat-clear{flex:none;padding:3px 0;border:0;background:transparent;color:#63788b;font:600 10px/1.2 Arial,sans-serif;text-decoration:underline;cursor:pointer}.istres-chat-clear:hover{color:#075ca8}
.istres-chat-regie .istres-chat-panel{left:50%;right:auto;top:50%;bottom:auto;width:min(620px,calc(100vw - 40px));height:min(520px,calc(100vh - 80px));max-height:none;transform:translate(-50%,-50%);z-index:100020}
.istres-chat-regie .istres-chat-launcher{z-index:100019}
.istres-chat-regie .istres-chat-launcher span{color:#111827;text-shadow:0 1px 2px rgba(255,255,255,.95)}
.istres-chat-launcher.is-attention img{animation:leo-attention 1.15s cubic-bezier(.34,1.45,.64,1)}
.istres-chat-launcher.is-thinking img{animation:leo-thinking 1.45s ease-in-out infinite}
@keyframes leo-attention{0%,100%{transform:rotate(0) scale(1)}18%{transform:rotate(-4deg) scale(1.025)}42%{transform:rotate(3deg) scale(1.055)}68%{transform:rotate(-2deg) scale(1.025)}}
@keyframes leo-thinking{0%,100%{transform:rotate(-2deg) scale(1)}50%{transform:rotate(2deg) scale(1.055)}}
@media(prefers-reduced-motion:reduce){.istres-chat-launcher.is-attention img,.istres-chat-launcher.is-thinking img{animation:none!important}}
@media(max-width:639px){.istres-chat-regie .istres-chat-panel{inset:8px;width:auto;height:calc(100dvh - 16px);transform:none;border-radius:14px}}
