.cgl-root{position:fixed;z-index:99998;bottom:var(--cgl-bottom,24px);right:var(--cgl-side,24px);display:flex;flex-direction:column;align-items:flex-end;gap:12px;font-family:inherit}
.cgl-root.cgl-left{right:auto;left:var(--cgl-side,24px);align-items:flex-start}
.cgl-launch{display:inline-flex;align-items:center;gap:10px;border:0;cursor:pointer;padding:0 20px 0 16px;height:56px;border-radius:999px;background:var(--cgl-accent,#175cb5);color:#fff;font-size:15px;font-weight:600;letter-spacing:.01em;box-shadow:0 18px 40px rgba(15,32,63,.22);transition:transform .18s ease,box-shadow .18s ease,background .18s ease}
.cgl-launch:hover{transform:translateY(-2px);box-shadow:0 22px 48px rgba(15,32,63,.28)}
.cgl-launch:focus-visible{outline:3px solid #fff;outline-offset:3px}
.cgl-launch-icon{display:inline-flex}
.cgl-launch-text{white-space:nowrap}
.cgl-root[data-cgl-open="true"] .cgl-launch-text{display:none}
.cgl-root[data-cgl-open="true"] .cgl-launch{padding:0;width:56px;justify-content:center}
@media(max-width:600px){.cgl-launch-text{display:none}.cgl-launch{padding:0;width:56px;justify-content:center}}
.cgl-panel{width:min(390px,calc(100vw - 32px));max-height:min(640px,calc(100vh - 120px));display:flex;flex-direction:column;background:#fff;color:#10203a;border-radius:20px;overflow:hidden;box-shadow:0 30px 70px rgba(12,26,53,.28);border:1px solid rgba(16,32,58,.08)}
.cgl-panel[hidden]{display:none}
.cgl-panel-head{display:flex;gap:12px;align-items:flex-start;justify-content:space-between;padding:18px 18px 14px;background:linear-gradient(135deg,var(--cgl-accent,#175cb5),rgba(16,32,58,.92));color:#fff}
.cgl-panel-head h2{margin:2px 0 4px;font-size:18px;line-height:1.25;color:#fff}
.cgl-kicker{display:flex;align-items:center;gap:6px;margin:0;font-size:11px;text-transform:uppercase;letter-spacing:.12em;opacity:.85}
.cgl-kicker svg{width:14px;height:14px}
.cgl-sub{margin:0;font-size:13px;line-height:1.45;opacity:.88}
.cgl-close{background:rgba(255,255,255,.16);border:0;color:#fff;width:32px;height:32px;border-radius:50%;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;flex:none}
.cgl-close svg{width:16px;height:16px}
.cgl-thread{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:12px;background:#f6f8fb;min-height:180px}
.cgl-msg{max-width:88%;padding:11px 14px;border-radius:16px;font-size:14px;line-height:1.55;box-shadow:0 6px 18px rgba(16,32,58,.06)}
.cgl-msg p{margin:0 0 8px}
.cgl-msg p:last-child{margin:0}
.cgl-msg ul{margin:6px 0 0;padding-left:18px}
.cgl-msg li{margin:0 0 4px}
.cgl-msg-bot{align-self:flex-start;background:#fff;border-bottom-left-radius:6px}
.cgl-msg-user{align-self:flex-end;background:var(--cgl-accent,#175cb5);color:#fff;border-bottom-right-radius:6px}
.cgl-msg-note{align-self:center;background:#fff5e0;color:#63430b;font-size:12.5px;text-align:center;max-width:100%}
.cgl-sources{margin:8px 0 0;padding:0;list-style:none;display:flex;flex-wrap:wrap;gap:6px}
.cgl-sources a{display:inline-block;font-size:12px;padding:4px 9px;border-radius:999px;background:rgba(23,92,181,.08);color:var(--cgl-accent,#175cb5);text-decoration:none}
.cgl-typing{display:inline-flex;gap:4px;align-items:center}
.cgl-typing span{width:6px;height:6px;border-radius:50%;background:#96a3b8;animation:cgl-bounce 1.2s infinite ease-in-out}
.cgl-typing span:nth-child(2){animation-delay:.15s}
.cgl-typing span:nth-child(3){animation-delay:.3s}
@keyframes cgl-bounce{0%,80%,100%{transform:translateY(0);opacity:.5}40%{transform:translateY(-4px);opacity:1}}
.cgl-quick{display:flex;flex-wrap:wrap;gap:6px;padding:0 16px 10px;background:#f6f8fb}
.cgl-quick:empty{display:none}
.cgl-quick button{border:1px solid rgba(16,32,58,.14);background:#fff;border-radius:999px;padding:7px 12px;font-size:12.5px;cursor:pointer;color:#10203a}
.cgl-quick button:hover{border-color:var(--cgl-accent,#175cb5);color:var(--cgl-accent,#175cb5)}
.cgl-form{display:flex;gap:8px;align-items:flex-end;padding:12px 14px;border-top:1px solid rgba(16,32,58,.08);background:#fff}
.cgl-form textarea{flex:1;resize:none;border:1px solid rgba(16,32,58,.16);border-radius:14px;padding:10px 12px;font:inherit;font-size:14px;line-height:1.45;max-height:120px;color:#10203a;background:#fff}
.cgl-form textarea:focus{outline:2px solid var(--cgl-accent,#175cb5);outline-offset:1px}
.cgl-send{border:0;background:var(--cgl-accent,#175cb5);color:#fff;width:42px;height:42px;border-radius:14px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;flex:none}
.cgl-send[disabled]{opacity:.5;cursor:not-allowed}
.cgl-panel-foot{padding:8px 16px 12px;background:#fff}
.cgl-panel-foot p{margin:0;font-size:11.5px;line-height:1.45;color:#68758b}
.cgl-handoff{margin:0;padding:12px;border-radius:14px;background:#fff;border:1px dashed rgba(23,92,181,.35);align-self:stretch}
.cgl-handoff p{margin:0 0 8px;font-size:13px;line-height:1.5}
.cgl-handoff-row{display:flex;gap:6px}
.cgl-handoff input{flex:1;border:1px solid rgba(16,32,58,.16);border-radius:10px;padding:8px 10px;font:inherit;font-size:13px}
.cgl-handoff button{border:0;border-radius:10px;background:var(--cgl-accent,#175cb5);color:#fff;padding:8px 14px;font-size:13px;cursor:pointer}
.cgl-inline-callout{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;padding:18px 20px;border-radius:16px;background:#f2f6fc;border:1px solid rgba(23,92,181,.16)}
.cgl-inline-callout p{margin:0;font-size:14px;line-height:1.5}
.cgl-inline-open{border:0;border-radius:999px;background:var(--cgl-accent,#175cb5);color:#fff;padding:10px 18px;font-size:14px;cursor:pointer}
@media(prefers-reduced-motion:reduce){.cgl-launch,.cgl-typing span{transition:none;animation:none}}
