/* Shared floating conversations. All selectors stay inside the component. */
.cm-root{--cm-blue:#1559e8;--cm-navy:#102a43;--cm-muted:#64748b;--cm-bottom:24px;position:relative;z-index:100100;font:14px/1.5 Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--cm-navy);text-align:left}
.cm-root *{box-sizing:border-box}.cm-root [hidden]{display:none!important}.cm-root button,.cm-root textarea{font:inherit}.cm-root button{cursor:pointer}.cm-root button:disabled{cursor:wait;opacity:.6}.cm-root button:focus-visible,.cm-root textarea:focus-visible{outline:3px solid #91b8ff;outline-offset:3px}.cm-root svg{display:block;width:22px;height:22px;flex:none}.cm-root button{text-transform:none;letter-spacing:normal}.cm-root[data-placement=staff]{--cm-bottom:100px}.cm-root[data-placement=menu]{--cm-bottom:94px}.cm-root[data-placement=portal]{--cm-bottom:28px}
.cm-launch{position:fixed;right:24px;bottom:calc(var(--cm-bottom) + env(safe-area-inset-bottom,0px));display:grid;place-items:center;width:58px;height:58px;padding:0;border:1px solid #ffffff33;border-radius:50%;background:#102a43;color:white;box-shadow:0 8px 30px #102a4330}.cm-launch svg{width:26px;height:26px}.cm-root[data-placement=menu] .cm-launch{right:auto;left:18px}.cm-count{position:absolute;top:-4px;right:-4px;display:grid;place-items:center;min-width:22px;height:22px;padding:0 5px;border:2px solid #fff;border-radius:30px;background:#e6435a;color:#fff;font-size:10px;font-weight:750}
.cm-pane{position:fixed;right:24px;bottom:calc(var(--cm-bottom) + 72px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;width:376px;max-width:calc(100vw - 24px);height:530px;max-height:calc(var(--cm-viewport,100dvh) - var(--cm-bottom) - 96px);overflow:hidden;background:white;border:1px solid #dce5ee;border-radius:20px;box-shadow:0 18px 70px #102a4330}.cm-root[data-placement=menu] .cm-pane{right:auto;left:18px}.cm-head{display:flex;align-items:center;gap:10px;padding:16px;color:white;background:#102a43;flex:none}.cm-head>div{flex:1;min-width:0}.cm-head strong,.cm-head small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cm-head strong{font-size:15px;line-height:1.5}.cm-head small{font-size:11px;color:#d5e4f3}.cm-head-avatar{display:grid;place-items:center;width:37px;height:37px;flex:none;border-radius:11px;background:#ffffff17;font-weight:700}.cm-icon{display:grid;place-items:center;width:32px;height:36px;flex:none;padding:0;border:0;border-radius:8px;background:transparent;color:inherit}.cm-icon:hover{background:#ffffff17}.cm-icon svg{width:19px;height:19px}
.cm-tabs{display:flex;border-bottom:1px solid #e9edf3;padding:0 14px;flex:none}.cm-tabs button{position:relative;flex:1;min-height:42px;border:0;border-bottom:2px solid transparent;background:white;color:#657286;font-size:12px;font-weight:650}.cm-tabs button.is-active{color:#1559e8;border-bottom-color:#1559e8}.cm-tabs span{display:inline-block;padding:0 5px;border-radius:12px;background:#e7efff;color:#1559e8;font-size:10px}.cm-connection{margin:0;padding:5px 15px;color:#6b7c90;background:#fafbfd;font-size:10px;flex:none}.cm-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:0;background:#fff;scrollbar-width:thin}.cm-body.is-conversation{display:flex;flex-direction:column;gap:10px;padding:16px;background:#f7f9fc}
.cm-thread{display:flex;align-items:center;gap:11px;width:100%;padding:15px;border:0;border-bottom:1px solid #eef2f7;background:white;color:#102a43;text-align:left}.cm-thread:hover{background:#f7faff}.cm-thread.is-unread{background:#f4f8ff}.cm-thread>span:nth-child(2){min-width:0;flex:1}.cm-thread b,.cm-thread small,.cm-thread p{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cm-thread b{font-size:13px}.cm-thread small{font-size:10px;color:#64748b}.cm-thread p{margin:3px 0 0;font-size:11px;color:#64748b}.cm-thread-avatar{display:grid;place-items:center;flex:none;width:38px;height:38px;border-radius:12px;background:#eaf1ff;color:#1559e8;font-size:12px;font-weight:700}.cm-thread i{min-width:21px;padding:2px 5px;border-radius:15px;background:#1559e8;color:#fff;text-align:center;font-size:10px;font-weight:700;line-height:1.4;font-style:normal}
.cm-empty{display:grid;justify-items:center;align-content:center;gap:9px;min-height:190px;padding:28px;text-align:center;color:#64748b}.cm-empty>span{display:grid;place-items:center;width:46px;height:46px;border-radius:15px;background:#edf3ff;color:#1559e8}.cm-empty strong{font-size:14px;color:#102a43}.cm-empty p{max-width:260px;margin:0;font-size:12px}.cm-chat-start{min-height:160px;margin:auto}.cm-loading{padding:20px;margin:0;color:#64748b;font-size:12px}.cm-bubble{align-self:flex-start;max-width:88%;padding:10px 12px;border:1px solid #e7edf4;border-radius:14px 14px 14px 4px;background:white;overflow-wrap:anywhere}.cm-bubble.is-own{align-self:flex-end;border-color:#d6e5ff;border-radius:14px 14px 4px 14px;background:#e8f0ff}.cm-bubble p{margin:0;white-space:pre-wrap;font-size:13px;line-height:1.6;color:#18364f}.cm-bubble small{display:block;margin-top:5px;text-align:right;font-size:9px;color:#64748b}.cm-older{align-self:center;border:0;border-radius:20px;padding:7px 12px;background:white;color:#1559e8;font-size:11px}
.cm-composer{display:grid;grid-template-columns:1fr 40px;align-items:end;gap:8px;padding:12px 14px 8px;background:white;border-top:1px solid #e7edf4;flex:none}.cm-composer textarea{width:100%;min-height:42px;max-height:112px;margin:0;padding:10px 12px;border:1px solid #dce5f0;border-radius:14px;resize:none;font-size:16px;line-height:1.35;color:#102a43;background:white;box-shadow:none;overflow-y:auto}.cm-composer button{display:grid;place-items:center;width:40px;height:42px;margin:0;border:0;border-radius:50%;background:#1559e8;color:white}.cm-composer button svg{width:20px;height:20px}.cm-composer>small{grid-column:1/-1;color:#8290a2;font-size:9px;text-align:center}.cm-send-error{grid-column:1/-1;margin:0;color:#ba314b;font-size:11px}.cm-push{display:flex;flex-direction:column;align-items:flex-start;gap:3px;padding:8px 14px;border-top:1px solid #edf1f6;background:#fcfdff;flex:none}.cm-push span{font-size:9px;line-height:1.5;color:#6b7c90}.cm-push button{padding:3px 0;border:0;background:none;color:#1559e8;font-size:10px;font-weight:650;text-align:left}.cm-push button:disabled{color:#7a8898;cursor:default}
.cm-notice-row{display:flex;align-items:flex-start;gap:12px;width:100%;padding:16px;border:0;border-bottom:1px solid #edf1f6;background:white;color:#102a43;text-align:left}.cm-notice-row>span{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:#eaf8f0;color:#139a66;flex:none}.cm-notice-row svg{width:18px;height:18px}.cm-notice-row b{font-size:12px}.cm-notice-row p{margin:3px 0;font-size:11px;color:#64748b}.cm-notice-row small{font-size:9px;color:#8a98a8}
.cm-toasts{position:fixed;top:92px;right:24px;display:grid;gap:10px;width:360px;max-width:calc(100vw - 28px);pointer-events:none}.cm-toast{position:relative;display:flex;align-items:flex-start;gap:11px;padding:15px 36px 15px 14px;border:1px solid #dce7f4;border-radius:15px;background:#fff;color:#102a43;box-shadow:0 8px 35px #102a431a;pointer-events:auto;animation:cmToastIn .22s ease-out}.cm-toast.is-status{border-color:#ccebdc;background:#f4fff9}.cm-toast-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#1559e8;color:white;flex:none}.cm-toast.is-status .cm-toast-icon{background:#149d69}.cm-toast-icon svg{width:19px;height:19px}.cm-toast strong{font-size:12px}.cm-toast p{margin:4px 0 0;font-size:11px;line-height:1.5;color:#52647b;overflow-wrap:anywhere}.cm-toast-open{margin:7px 0 0;padding:0;border:0;background:transparent;color:#1559e8;font-size:11px;font-weight:700}.cm-toast-close{position:absolute;right:8px;top:8px;display:grid;place-items:center;width:25px;height:25px;padding:0;border:0;border-radius:8px;background:transparent;color:#6b7c90}.cm-toast-close svg{width:15px;height:15px}.cm-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@keyframes cmToastIn{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}
@media(max-width:640px){.cm-root[data-placement=portal]{--cm-bottom:86px}.cm-launch{right:16px;width:52px;height:52px}.cm-root[data-placement=menu] .cm-launch{left:14px}.cm-pane,.cm-root[data-placement=menu] .cm-pane{right:10px;left:10px;bottom:calc(env(safe-area-inset-bottom,0px) + 10px);width:auto;max-width:none;height:600px;max-height:calc(var(--cm-viewport,100dvh) - 28px);border-radius:18px}.cm-head{padding:13px}.cm-toasts{top:calc(env(safe-area-inset-top,0px) + 80px);right:12px;left:12px;width:auto;max-width:none}.cm-composer{padding-bottom:calc(9px + env(safe-area-inset-bottom,0px))}.cm-root[data-placement=staff] .cm-launch{bottom:calc(112px + env(safe-area-inset-bottom,0px))}.cm-thread{min-height:78px}.cm-tabs button{min-height:45px}.cm-push{padding:7px 14px}.cm-notice-row{min-height:78px}}
@media(prefers-reduced-motion:reduce){.cm-toast{animation:none}}
