.cq{--cq-navy:#1f3e51;--cq-blue:#63a5d1;--cq-mid:#3c6f93;--cq-lift:0px;position:fixed;right:24px;bottom:calc(24px + var(--cq-lift));z-index:60;font-family:var(--font-body,'Lato',sans-serif);transition:bottom .4s var(--ease-standard,ease)}
.cq.cq-hide{display:none}
.cq .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
span.cq-av{position:relative;display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:50%;background:radial-gradient(120% 120% at 30% 20%,#2c5874 0%,#1f3e51 55%,#142a38 100%)!important;opacity:1!important;box-shadow:inset 0 0 0 1.5px rgba(156,200,227,.55),0 0 0 3px rgba(99,165,209,.16)}
span.cq-av img{opacity:1!important;width:56%;height:auto;filter:brightness(0) invert(1) drop-shadow(0 1px 2px rgba(0,0,0,.25))}
.cq-av i{position:absolute;right:1px;bottom:1px;width:10px;height:10px;border-radius:50%;background:#3fbf7f;box-shadow:0 0 0 2px #fff}
.cq-av.sm{width:30px;height:30px;box-shadow:inset 0 0 0 1px rgba(156,200,227,.5)}.cq-av.sm i{display:none}
.cq-av.lg{width:46px;height:46px}.cq-av.lg i{box-shadow:0 0 0 2px var(--cq-navy)}
.cq-launch{display:flex;align-items:center;gap:12px;padding:6px 18px 6px 6px;border:0;border-radius:999px;background:#fff;color:#0b1620;cursor:pointer;box-shadow:0 14px 40px rgba(11,22,32,.18),0 0 0 1px rgba(31,62,81,.08);transition:transform .25s var(--ease-standard,ease),box-shadow .25s}
.cq-launch:hover{transform:translateY(-2px);box-shadow:0 18px 46px rgba(11,22,32,.22),0 0 0 1px rgba(31,62,81,.1)}
.cq-launch:focus-visible{outline:3px solid var(--cq-blue);outline-offset:3px}
.cq-ll{display:flex;flex-direction:column;align-items:flex-start;line-height:1.15}.cq-ll b{font:600 14px/1.2 var(--font-brand,'Poppins',sans-serif)}.cq-ll small{font-size:12px;color:#5b6b78}
.cq-dot{position:absolute;top:4px;left:38px;width:12px;height:12px;border-radius:50%;background:#e5484d;box-shadow:0 0 0 2px #fff}
.cq.open .cq-launch{opacity:0;pointer-events:none;transform:scale(.9)}
.cq-panel{position:absolute;right:0;bottom:0;display:flex;transition-property:opacity,transform,visibility;flex-direction:column;width:392px;height:min(640px,calc(100vh - 48px - var(--cq-lift)));border-radius:22px;background:#fff;box-shadow:0 30px 80px rgba(11,22,32,.28),0 0 0 1px rgba(31,62,81,.08);overflow:hidden;opacity:0;transform:translateY(16px) scale(.98);transform-origin:bottom right;transition:opacity .26s var(--ease-standard,ease),transform .32s var(--ease-entrance,cubic-bezier(.2,.8,.2,1))}
.cq.open .cq-panel{opacity:1;transform:none}
.cq-h{display:flex;align-items:center;gap:12px;padding:16px 12px 16px 18px;background:linear-gradient(135deg,var(--cq-navy) 0%,#2a5571 70%,var(--cq-mid) 100%);color:#fff}
.cq-id{flex:1;min-width:0}.cq-id h2{margin:0;font:700 16px/1.2 var(--font-brand,'Poppins',sans-serif);color:#fff}.cq-id p{margin:3px 0 0;font-size:12.5px;color:rgba(255,255,255,.8);display:flex;align-items:center;gap:6px}
.cq-on{width:7px;height:7px;border-radius:50%;background:#3fbf7f}
.cq-ib{display:grid;place-items:center;width:36px;height:36px;padding:0;border:0;border-radius:50%;background:transparent;color:#fff;cursor:pointer;transition:background .2s}.cq-ib:hover{background:rgba(255,255,255,.14)}.cq-ib:focus-visible{outline:2px solid #fff;outline-offset:1px}
.cq-log{flex:1;overflow-y:auto;padding:18px 16px 8px;background:#f6f9fb;overscroll-behavior:contain}
.cq-m{display:flex;gap:10px;align-items:flex-end;margin:0 0 14px;animation:cqIn .3s var(--ease-entrance,ease) both}
.cq-m>div{display:flex;flex-direction:column;max-width:84%}.cq-m small{margin:4px 4px 0;font-size:11px;color:#7a8794}
.cq-b{padding:11px 14px;border-radius:16px 16px 16px 4px;background:#fff;color:#14232e;font-size:14.5px;line-height:1.55;box-shadow:0 1px 2px rgba(11,22,32,.06),0 0 0 1px rgba(31,62,81,.06)}
.cq-b p{margin:0 0 8px}.cq-b p:last-child{margin:0}.cq-b ul{margin:4px 0 8px;padding-left:18px}.cq-b li{margin:0 0 4px}.cq-b a{color:var(--cq-mid);font-weight:700;text-decoration:underline;text-underline-offset:2px}
.cq-u{justify-content:flex-end}.cq-u>div{align-items:flex-end}.cq-u .cq-b{background:var(--cq-navy);color:#fff;border-radius:16px 16px 4px 16px;box-shadow:none}
.cq-links{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.cq-links a{padding:6px 11px;border-radius:999px;background:#fff;border:1px solid #d6e3ec;color:var(--cq-navy);font-size:12.5px;font-weight:700;text-decoration:none}.cq-links a:hover{border-color:var(--cq-blue)}
.cq-sug{display:flex;flex-wrap:wrap;gap:8px;margin:2px 0 8px 40px}
.cq-sug button{padding:9px 13px;border:1px solid #cfdde7;border-radius:999px;background:#fff;color:var(--cq-navy);font:600 13px/1.25 var(--font-brand,'Poppins',sans-serif);text-align:left;cursor:pointer;transition:border-color .2s,background .2s}
.cq-sug button:hover{border-color:var(--cq-blue);background:#eef5fa}
.cq-typing .cq-b{display:flex;gap:5px;padding:14px 16px}.cq-typing .cq-b span{width:7px;height:7px;border-radius:50%;background:#9db3c2;animation:cqDot 1.2s infinite}.cq-typing .cq-b span:nth-child(2){animation-delay:.15s}.cq-typing .cq-b span:nth-child(3){animation-delay:.3s}
.cq-f{display:flex;align-items:flex-end;gap:8px;padding:12px 12px 6px;border-top:1px solid #e3ebf1;background:#fff}
.cq-f textarea{flex:1;min-height:44px;max-height:120px;padding:11px 14px;border:1px solid #cfdde7;border-radius:14px;font:15px/1.4 inherit;font-family:inherit;color:#0b1620;resize:none;background:#fff}
.cq-f textarea:focus{outline:none;border-color:var(--cq-mid);box-shadow:0 0 0 3px rgba(99,165,209,.25)}
.cq-send{display:grid;place-items:center;flex:none;width:44px;height:44px;border:0;border-radius:50%;background:var(--cq-navy);color:#fff;cursor:pointer;transition:background .2s,transform .2s}.cq-send:hover{background:var(--cq-mid);transform:translateX(1px)}.cq-send:focus-visible{outline:3px solid var(--cq-blue);outline-offset:2px}
.cq-fine{margin:0;padding:2px 16px 12px;background:#fff;font-size:11px;line-height:1.4;color:#7a8794}
@keyframes cqIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@keyframes cqDot{0%,60%,100%{opacity:.35;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}
@media (max-width:640px){.cq{right:14px;bottom:calc(14px + var(--cq-lift))}.cq-ll{display:none}.cq-launch{padding:5px}.cq-launch .cq-av{width:50px;height:50px}.cq-dot{left:40px}
.cq.open{right:0;bottom:0}.cq-panel{position:fixed;inset:0;width:auto;height:100%;height:100dvh;border-radius:0;transform:translateY(24px)}.cq-sug{margin-left:0}html.cq-lock,html.cq-lock body{overflow:hidden}}
@media (prefers-reduced-motion:reduce){.cq-panel,.cq-launch,.cq-m{transition:none;animation:none}.cq-typing .cq-b span{animation:none}}
/* Portal Messages: the same chat, inline */
.cqp{display:flex;flex-direction:column;min-height:520px;padding:0;overflow:hidden}
.cqp-h{display:flex;align-items:center;gap:14px;padding:18px 20px;border-bottom:1px solid #e3ebf1}.cqp-h h2{margin:0;font:700 17px/1.2 var(--font-brand);color:#1f3e51}.cqp-h p{margin:2px 0 0;font-size:13px;color:#5b6b78}
.cqp .thread{flex:1;max-height:56vh;overflow-y:auto;padding:20px;background:#f6f9fb}
.cqp .cq-m>div{max-width:78%}
.cqp-note{display:flex;gap:12px;align-items:flex-start;margin:0 20px 0;padding:12px 14px;border-radius:12px;background:#eef5fa;border:1px solid #d6e3ec;font-size:13.5px;line-height:1.5;color:#1f3e51}.cqp-note[hidden]{display:none}.cqp-note a{font-weight:700;color:#1f3e51}
.cqp .compose{display:flex;align-items:flex-end;gap:10px;padding:14px 16px;border-top:1px solid #e3ebf1;background:#fff}
.cqp .compose textarea{flex:1;min-height:48px;max-height:160px;padding:12px 14px;border:1px solid #cfdde7;border-radius:14px;font:15px/1.45 inherit;font-family:inherit;resize:none}
.cqp .compose textarea:focus{outline:none;border-color:#3c6f93;box-shadow:0 0 0 3px rgba(99,165,209,.25)}
.cqp-clip{display:grid;place-items:center;flex:none;width:48px;height:48px;border:1px solid #cfdde7;border-radius:50%;background:#fff;color:#3c6f93;cursor:pointer}.cqp-clip:hover{border-color:#63a5d1}
.cqp.drag .thread{outline:2px dashed #63a5d1;outline-offset:-10px}
/* Documents: upload */
.dup{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:18px;align-items:start}
.dz{position:relative;display:grid;place-items:center;gap:6px;min-height:180px;padding:24px;border:1.5px dashed #9cc8e3;border-radius:16px;background:#f6f9fb;text-align:center;cursor:pointer;transition:border-color .2s,background .2s}
.dz:hover,.dz.over{border-color:#3c6f93;background:#eef5fa}.dz input{position:absolute;inset:0;opacity:0;cursor:pointer}.dz b{font:600 15px/1.3 var(--font-brand);color:#1f3e51}.dz small{font-size:12.5px;color:#5b6b78}.dz .dz-f{font-weight:700;color:#3c6f93;overflow-wrap:anywhere}
.dup-f{display:grid;gap:12px}.dup-f label{display:grid;gap:6px;font:600 12px/1.2 var(--font-brand);letter-spacing:.04em;color:#1f3e51}
.dup-f select,.dup-f textarea{width:100%;min-height:44px;padding:10px 12px;border:1px solid #cfdde7;border-radius:10px;font:15px/1.4 inherit;font-family:var(--font-body,inherit);background:#fff;color:#0b1620}
.dup-f textarea{min-height:76px;resize:vertical}
.ust{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;font:600 11.5px/1 var(--font-brand)}.ust.received{background:#eef5fa;color:#1f3e51}.ust.reviewed{background:#e6f6ee;color:#17663f}.ust.action{background:#fdf0e6;color:#9a4a00}
.ulist{display:grid;gap:0}.ulist .ur{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 16px;align-items:center;padding:14px 0;border-top:1px solid #e3ebf1}.ulist .ur:first-child{border-top:0}
.ur b{display:block;font:600 14.5px/1.35 var(--font-brand);color:#0b1620;word-break:break-word}.ur span.m{font-size:12.5px;color:#5b6b78}.ur a{font-weight:700;color:#3c6f93}
@media (max-width:760px){.dup{grid-template-columns:1fr}.cqp .thread{max-height:none;min-height:50vh}.cqp .cq-m>div{max-width:86%}}
/*u-fix*/.cq .cq-u .cq-b,.cqp .cq-u .cq-b{background:#1f3e51!important;color:#fff!important}.cq .cq-u .cq-b p,.cqp .cq-u .cq-b p{color:#fff!important}.cqp .cq-a .cq-b{background:#fff!important;color:#14232e!important}
.cq.cq-compact .cq-ll{display:none}.cq.cq-compact .cq-launch{padding:5px}.cq.cq-compact .cq-launch .cq-av{width:50px;height:50px}
.cq-ec{margin:2px 0 14px 40px;padding:14px;border-radius:14px;background:#fff;box-shadow:0 0 0 1px #d6e3ec;animation:cqIn .3s ease both}.cq-ec b{display:block;font:600 14px/1.3 var(--font-brand,'Poppins',sans-serif);color:#1f3e51}.cq-ec>p{margin:4px 0 10px;font-size:13px;line-height:1.45;color:#3d4f5c}
.cq-ecf{display:grid;gap:8px}.cq-ecf input{min-height:42px;padding:9px 12px;border:1px solid #cfdde7;border-radius:10px;font:15px/1.3 inherit;font-family:inherit;color:#0b1620}.cq-ecf input:focus{outline:none;border-color:#3c6f93;box-shadow:0 0 0 3px rgba(99,165,209,.25)}
.cq-eca{display:flex;gap:8px;margin-top:10px}.cq-eca button{min-height:40px;padding:0 14px;border-radius:999px;font:600 13px/1 var(--font-brand,'Poppins',sans-serif);cursor:pointer}.cq-eca [type=submit]{border:0;background:#1f3e51;color:#fff}.cq-eca [type=submit]:disabled{opacity:.6}.cq-eca [data-ec]{border:1px solid #cfdde7;background:#fff;color:#1f3e51}
.cq-ec small{display:block;margin-top:8px;font-size:11px;line-height:1.4;color:#6b7a86}.cq-ece{margin:6px 0 0;font-size:12.5px;color:#b42318}.cq-ece:empty{display:none}
@media (max-width:640px){.cq-ec{margin-left:0}}

/* Clicks: only the visible launcher and the open panel take pointer events. A closed panel is removed from layout. */
.cq{pointer-events:none}
.cq-launch{pointer-events:auto}
.cq-panel[hidden]{display:none!important}
.cq-panel{pointer-events:none;visibility:hidden}
.cq.open .cq-panel{pointer-events:auto;visibility:visible}
.cq.open .cq-launch{pointer-events:none;visibility:hidden}
