/* Messenger uses LABOtranet's existing palette; no separate application shell. */
.vigie-chat{position:fixed;right:22px;bottom:calc(var(--vigie-footer-height,0px) + 18px);z-index:40;font-size:14px;color:#102138}.vigie-chat[hidden],.vigie-chat [hidden]{display:none!important}.chat-launch{display:flex;align-items:center;gap:10px;background:#1e3a6e;color:#fff;border:1px solid #19315c;box-shadow:0 3px 14px #10213822;padding:12px 18px;font-weight:650}.chat-launch:hover{background:#142c54}.chat-total,.chat-count{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 6px;border-radius:11px;font-size:12px;font-weight:700;background:#e7efff;color:#193768}.chat-panel{width:370px;height:min(600px,calc(100dvh - var(--vigie-footer-height,0px) - 40px));display:flex;flex-direction:column;background:#fff;border:1px solid #bdcad9;border-radius:10px;box-shadow:0 8px 32px #10213826;overflow:hidden}.chat-heading{display:flex;align-items:center;gap:10px;padding:14px 16px;border-bottom:1px solid #dce5ef;background:#f5f8fc}.chat-heading>div{min-width:0;flex:1}.chat-heading h2{font-size:16px;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-heading p{font-size:11px;margin:5px 0 0;color:#64748b}.chat-heading p.is-available{color:#286e42}.chat-heading button{padding:4px 7px;border:0;background:transparent;color:#334d70;font-size:22px}.chat-home,.chat-conversation{display:flex;flex-direction:column;min-height:0;flex:1}.chat-tabs{display:flex;padding:0 14px;gap:20px;border-bottom:1px solid #dce5ef}.chat-tabs button{border:0;border-bottom:2px solid transparent;border-radius:0;background:none;padding:12px 0;font-size:13px;color:#65788a}.chat-tabs button[aria-pressed=true]{color:#1e3a6e;border-bottom-color:#1e3a6e;font-weight:650}.chat-search{padding:12px 14px 5px}.chat-search input{width:100%;font-size:13px;min-height:36px}.chat-people{overflow-y:auto;flex:1;padding:6px}.chat-person{width:100%;display:flex;align-items:center;gap:11px;text-align:left;padding:12px 10px;background:#fff;border:0;color:inherit;border-radius:6px}.chat-person:hover,.chat-person:focus-visible{background:#eef3f8}.chat-avatar{position:relative;display:flex;align-items:center;justify-content:center;width:34px;height:34px;flex:none;border-radius:7px;background:#e7edf5;color:#425a7b;font-size:15px;font-weight:650}.chat-avatar i{position:absolute;bottom:-1px;right:-2px;width:10px;height:10px;border:2px solid white;border-radius:50%;background:#9ba7b5}.chat-avatar i.online{background:#398652}.chat-person-text{min-width:0;flex:1;display:flex;flex-direction:column;gap:4px}.chat-person strong{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-person small{font-size:12px;color:#68788d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-footnote{font-size:11px;line-height:1.5;color:#68788d;margin:0;padding:10px 16px;border-top:1px solid #e6ecf3}.chat-empty{padding:32px 20px;text-align:center;color:#68788d;font-size:13px;line-height:1.6}.chat-empty button{display:block;margin:12px auto}.chat-more,.chat-older{align-self:center;font-size:12px;margin:5px auto 9px;padding:6px 12px;background:white;border:1px solid #d5dfeb;color:#254772}.chat-history{flex:1;overflow-y:auto;padding:16px 13px;min-height:100px;display:flex;flex-direction:column;background:#f7f9fc;overscroll-behavior:contain}.chat-bubbles{display:flex;flex-direction:column;gap:10px}.chat-bubble{max-width:88%;border:1px solid #dce5ef;border-radius:8px;padding:9px 11px;background:#fff;align-self:flex-start}.chat-bubble.mine{align-self:flex-end;background:#e8eff9;border-color:#d1def0}.chat-bubble p{white-space:pre-wrap;overflow-wrap:anywhere;margin:0;font-size:14px;line-height:1.5}.chat-bubble small{display:block;font-size:10px;color:#64748b;margin-top:5px;text-align:right}.chat-away{font-size:11px;line-height:1.45;margin:0;padding:9px 14px;color:#65788a;border-top:1px solid #e3eaf3}.chat-compose{padding:12px;border-top:1px solid #dce5ef}.chat-compose textarea{width:100%;resize:none;min-height:62px;max-height:140px;font:inherit;line-height:1.45;padding:10px}.chat-compose>div{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-top:8px}.chat-compose>div>span{color:#7b8799;font-size:10px;line-height:1.4;max-width:210px}.chat-compose button{padding:7px 11px;font-size:12px}.chat-error{background:#fff4e6;color:#815b1d;font-size:12px;padding:10px 14px;line-height:1.4;border-bottom:1px solid #f0dfc6}.chat-panel:focus-within{border-color:#97adc9}
@media(max-width:600px){.vigie-chat{right:12px;bottom:calc(var(--vigie-footer-height,0px) + 12px)}.chat-panel{width:min(370px,calc(100vw - 24px));height:min(590px,calc(100dvh - var(--vigie-footer-height,0px) - 32px))}.chat-launch{padding:10px 14px}.chat-compose>div>span{max-width:170px}}
/* Keep the dock above LiaTEST's existing environment banner when present. */
body:has(#liatest-identity) .vigie-chat{--vigie-footer-height:64px}
body:has(.vigie-chat:not([hidden])) main{padding-bottom:110px}

/* Shared dock: Messages stays alongside Castor; only one panel opens at a time. */
.vigie-chat{font-family:system-ui,sans-serif;z-index:100001}.vigie-chat *{box-sizing:border-box}.vigie-chat button,.vigie-chat input,.vigie-chat textarea{font-family:inherit}.vigie-chat button{cursor:pointer;border-radius:8px}.vigie-chat input,.vigie-chat textarea{border:1px solid #bdcad9;border-radius:7px;color:#102138;background:#fff}.vigie-chat .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.vigie-chat .chat-compose button{background:#244b70;color:white;border:0}.vigie-chat .chat-empty .link{background:transparent;border:0;color:#244b70}
body:has(#booktime-coder-root) .vigie-chat:not(.is-open){right:250px;bottom:20px}
.vigie-chat.is-open{right:18px;bottom:84px}.vigie-chat.is-open .chat-panel{height:min(650px,calc(100dvh - 108px))}
@media(max-width:600px){body:has(#booktime-coder-root) .vigie-chat:not(.is-open){right:auto;left:12px;bottom:20px}.vigie-chat.is-open{right:12px;bottom:84px}.vigie-chat .chat-launch{min-height:54px}}
