:root{--cpa-ink:#102a43;--cpa-teal:#087f7b;--cpa-line:#dce7ef;--cpa-soft:#f4f8fb;--cpa-muted:#66798b}
#cicc-premium-ai,#cicc-premium-ai *{box-sizing:border-box}#cicc-premium-ai{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}
.cpa-launcher{position:fixed;left:16px;bottom:calc(64px + env(safe-area-inset-bottom,0px));z-index:10001;display:flex;align-items:center;gap:10px;min-width:166px;height:52px;padding:0 15px;border:1px solid rgba(255,255,255,.22);border-radius:18px;cursor:pointer;color:#fff;background:linear-gradient(135deg,#102a43,#155e75);box-shadow:0 14px 32px rgba(16,42,67,.3);transition:.2s ease}.cpa-launcher:hover{transform:translateY(-2px);box-shadow:0 18px 38px rgba(16,42,67,.36)}.cpa-launcher-mark,.cpa-brand-mark{display:grid;place-items:center;width:30px;height:30px;border-radius:10px;color:#8de4dc;background:rgba(255,255,255,.12);font-size:18px}.cpa-launcher-copy{display:flex;flex-direction:column;align-items:flex-start;gap:2px}.cpa-launcher-copy small{font-size:10px;opacity:.7}.cpa-launcher-copy strong{font-size:13px}.cpa-launcher-arrow{margin-left:auto;font-size:18px;color:#91d9d3}.cpa-backdrop{position:fixed;inset:0;z-index:10000;background:rgba(8,25,42,.28)}.cpa-dialog{position:fixed;right:24px;bottom:96px;z-index:10002;display:flex;flex-direction:column;width:430px;height:min(700px,calc(100dvh - 120px));overflow:hidden;border:1px solid rgba(16,42,67,.14);border-radius:26px;background:#fff;box-shadow:0 28px 80px rgba(8,25,42,.27);animation:cpaIn .24s ease}.cpa-dialog[hidden],.cpa-backdrop[hidden]{display:none}.cpa-header{display:flex;align-items:center;justify-content:space-between;flex:0 0 auto;padding:16px 16px 15px;color:#fff;background:linear-gradient(135deg,#102a43,#155e75)}.cpa-brand{display:flex;align-items:center;gap:10px}.cpa-brand>div{display:flex;flex-direction:column;gap:3px}.cpa-brand strong{font-size:15px}.cpa-brand span{font-size:11px;color:rgba(255,255,255,.75)}.cpa-brand i{display:inline-block;width:7px;height:7px;margin-right:4px;border-radius:50%;background:#65d69b}.cpa-header-actions{display:flex;gap:7px}.cpa-icon{display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:11px;color:#fff;background:rgba(255,255,255,.13);cursor:pointer;font-size:20px}.cpa-icon:hover{background:rgba(255,255,255,.25)}.cpa-scroll{flex:1;min-height:0;overflow:auto;background:var(--cpa-soft)}.cpa-welcome{padding:27px 22px 18px}.cpa-eyebrow{margin-bottom:14px;color:var(--cpa-teal);font-size:10px;font-weight:800;letter-spacing:.13em}.cpa-welcome h2{max-width:14ch;margin:0 0 12px;color:var(--cpa-ink);font-size:27px;line-height:1.12;letter-spacing:-.045em}.cpa-welcome p{max-width:38ch;margin:0;color:var(--cpa-muted);font-size:13px;line-height:1.6}.cpa-suggestions{display:grid;gap:8px;margin-top:22px}.cpa-suggestion{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:12px 13px;border:1px solid var(--cpa-line);border-radius:14px;color:#17445f;background:#fff;cursor:pointer;font:600 12px/1.3 inherit;text-align:left;box-shadow:0 3px 10px rgba(16,42,67,.04)}.cpa-suggestion span{color:var(--cpa-teal);font-size:18px}.cpa-suggestion:hover{border-color:#65c8c1;background:#edfbfa}.cpa-messages{display:flex;flex-direction:column;gap:10px;padding:4px 16px 20px}.cpa-message{display:flex;max-width:88%;animation:cpaIn .18s ease}.cpa-message.user{align-self:flex-end}.cpa-message.assistant{align-self:flex-start}.cpa-bubble{padding:11px 13px;border-radius:16px;color:#263c50;background:#fff;box-shadow:0 3px 10px rgba(16,42,67,.06);font-size:14px;line-height:1.5}.cpa-message.user .cpa-bubble{color:#fff;background:var(--cpa-teal)}.cpa-composer{flex:0 0 auto;padding:12px 14px 9px;border-top:1px solid var(--cpa-line);background:#fff}.cpa-composer textarea{display:block;width:100%;min-height:46px;max-height:120px;padding:12px 13px;border:1px solid #cbd9e3;border-radius:15px;outline:0;resize:none;color:var(--cpa-ink);background:#f8fafc;font:400 14px/1.45 inherit}.cpa-composer textarea:focus{border-color:#159e98;background:#fff;box-shadow:0 0 0 3px rgba(21,158,152,.14)}.cpa-composer-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:8px}.cpa-composer-bar span{color:#8493a0;font-size:10px}.cpa-send{display:grid;place-items:center;width:38px;height:32px;border:0;border-radius:10px;color:#fff;background:var(--cpa-teal);cursor:pointer;font-size:20px}.cpa-send:disabled{opacity:.4;cursor:not-allowed}.cpa-workspace{display:flex;align-items:center;justify-content:center;gap:6px;min-height:40px;border-top:1px solid var(--cpa-line);color:var(--cpa-teal);background:#fff;font-size:12px;font-weight:800;text-decoration:none}.cpa-workspace span{font-size:16px}@keyframes cpaIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(max-width:700px){.cpa-launcher{left:14px;bottom:calc(64px + env(safe-area-inset-bottom,0px));height:48px;min-width:166px;border-radius:16px}.cpa-dialog{left:8px;right:8px;bottom:calc(64px + env(safe-area-inset-bottom,0px));width:auto;height:min(680px,calc(100dvh - 112px));border-radius:24px}.cpa-header{padding:13px 13px}.cpa-welcome{padding:22px 18px 15px}.cpa-welcome h2{font-size:25px}.cpa-suggestions{margin-top:18px}.cpa-composer textarea{font-size:16px}body.cpa-lock{overflow:hidden}}

/* Mobile action dock: both actions are visible, balanced and thumb-friendly. */
@media(max-width:700px){
  #cicc-premium-ai::after{display:none;}
  #cicc-contact-root{left:auto !important;right:14px !important;bottom:calc(64px + env(safe-area-inset-bottom,0px)) !important;z-index:10001 !important;}
  #cicc-contact-root .cicc-fab__main{width:48px !important;height:48px !important;border-radius:50% !important;gap:0;box-shadow:0 14px 30px rgba(16,42,67,.24);}
  #cicc-contact-root .cicc-fab__main::after{display:none;}
  #cicc-contact-root .cicc-fab__main svg{width:19px !important;height:19px !important;}
  #cicc-premium-ai .cpa-launcher{left:14px;right:auto;width:48px;min-width:48px;height:48px;padding:0;justify-content:center;border-radius:50%;}
  #cicc-premium-ai .cpa-launcher-copy,#cicc-premium-ai .cpa-launcher-arrow{display:none;}
  #cicc-premium-ai .cpa-launcher-mark{width:30px;height:30px;}
}

.cpa-launcher-mark svg,.cpa-brand-mark svg{display:block;width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.cpa-brand-mark svg{width:20px;height:20px;stroke-width:1.7;}

/* Widget composer: one surface, tools inside, send action outside. */
.cpa-composer{display:flex;align-items:stretch;gap:8px;padding:10px 12px 8px;}
.cpa-compose-box{display:flex;min-width:0;min-height:70px;flex:1;flex-direction:column;border:1px solid #cbdde6;border-radius:15px;background:#fff;transition:border-color .16s ease,box-shadow .16s ease;}
.cpa-compose-box:focus-within{border-color:#0b9b94;box-shadow:0 0 0 3px rgba(11,155,148,.12);}
.cpa-compose-box textarea{width:100%;min-height:40px;max-height:110px;flex:1;border:0!important;border-radius:15px;background:transparent!important;box-shadow:none!important;outline:none!important;padding:10px 12px 3px;}
.cpa-composer-bar{min-height:27px;padding:0 8px 5px;align-items:center;}
.cpa-compose-hint{margin-right:auto;}
.cpa-compose-count{color:#8194a1;font-size:9px;font-variant-numeric:tabular-nums;}
.cpa-attach,.cpa-voice{display:grid;align-items:center;justify-content:center;width:24px;height:24px;min-width:24px;min-height:24px;padding:0;border:0;border-radius:7px;color:#087f7b;background:#edf8f7;cursor:pointer;line-height:1;}
.cpa-attach{font-size:18px;}
.cpa-voice svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.cpa-attach:hover,.cpa-voice:hover{background:#d8f2ef;}
.cpa-voice.is-listening{color:#fff;background:#d45b5b;}
.cpa-attachment{max-width:105px;overflow:hidden;color:#087f7b;font-size:9px;text-overflow:ellipsis;white-space:nowrap;}
.cpa-send{width:40px;min-width:40px;height:40px;align-self:flex-end;}
@media(max-width:700px){
  .cpa-composer{gap:7px;padding:8px 10px 7px;}
  .cpa-compose-box{min-height:64px;}
  .cpa-compose-box textarea{min-height:36px;padding:9px 10px 2px;font-size:16px;}
  .cpa-compose-bar{min-height:24px;padding:0 7px 4px;}
  .cpa-compose-hint{display:none;}
  .cpa-send{width:38px;min-width:38px;height:38px;}
}

/* Desktop: conversation cluster lives in the lower-right safe zone. */
@media(min-width:701px){
  #cicc-premium-ai .cpa-launcher{left:auto;right:24px;bottom:24px;width:52px;min-width:52px;height:52px;padding:0;justify-content:center;border-radius:50%;}
  #cicc-premium-ai .cpa-launcher-copy,#cicc-premium-ai .cpa-launcher-arrow{display:none;}
  #cicc-premium-ai .cpa-launcher-mark{width:32px;height:32px;}
  #cicc-contact-root{left:24px !important;right:auto !important;bottom:24px !important;z-index:10001 !important;}
  #cicc-contact-root .cicc-fab__main{width:52px !important;height:52px !important;border-radius:50% !important;}
  #cicc-contact-root .cicc-fab__main::after{display:none;}
}

/* Compact intelligence desk: calm hierarchy, consistent type and less visual weight. */
.cpa-dialog{width:390px;height:min(580px,calc(100dvh - 120px));border-radius:22px;}
.cpa-header{padding:13px 14px 12px;}
.cpa-brand{gap:8px;}
.cpa-brand-mark{width:28px;height:28px;font-size:16px;}
.cpa-brand strong{font-size:14px;line-height:1.2;}
.cpa-brand span{font-size:10px;}
.cpa-icon{width:32px;height:32px;border-radius:9px;font-size:17px;}
.cpa-welcome{padding:21px 20px 14px;}
.cpa-eyebrow{margin-bottom:10px;font-size:9px;letter-spacing:.1em;}
.cpa-welcome h2{max-width:none;margin-bottom:9px;font-size:18px;line-height:1.25;letter-spacing:-.035em;white-space:nowrap;}
.cpa-welcome p{max-width:none;font-size:12px;line-height:1.48;}
.cpa-scroll{background:linear-gradient(180deg,#f7fbfd 0%,#eef5f8 100%);}
.cpa-welcome{background:radial-gradient(circle at 100% 0,rgba(75,190,181,.1),transparent 36%),linear-gradient(180deg,rgba(255,255,255,.58),rgba(255,255,255,0));}
.cpa-suggestions{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:16px;}
.cpa-suggestion{min-height:52px;padding:9px 10px;border-radius:12px;font-size:11px;line-height:1.28;}
.cpa-suggestion span{font-size:15px;}
.cpa-messages{gap:8px;padding:4px 14px 16px;}
.cpa-bubble{padding:9px 11px;font-size:13px;}
.cpa-composer{padding:10px 12px 8px;}
.cpa-composer textarea{min-height:42px;padding:10px 11px;font-size:13px;}
.cpa-composer textarea:focus{outline:none;box-shadow:0 0 0 3px rgba(8,127,123,.12);}
.cpa-composer-bar{padding-top:6px;}
.cpa-composer-bar span{font-size:9px;}
.cpa-workspace{min-height:36px;font-size:11px;}
@media(max-width:700px){
  .cpa-dialog{width:calc(100% - 16px);height:min(620px,calc(100dvh - 112px));}
  .cpa-welcome{padding:18px 16px 12px;}
  .cpa-welcome h2{font-size:17px;}
  .cpa-suggestions{grid-template-columns:1fr;gap:6px;margin-top:14px;}
  .cpa-suggestion{min-height:44px;padding:8px 10px;}
  .cpa-composer textarea{font-size:16px;}
}
