/* ================================================================
   CAPTAIN JOME — virtual assistant
   ================================================================ */
#cj{--cj-navy:var(--navy,#062338);--cj-blue:var(--blue,#1068b3);--cj-deep:var(--blue-deep,#0c4d78);
  --cj-yellow:var(--yellow,#ffc229);--cj-red:var(--red,#d7263d);
  --cj-fd:var(--f-display,'Barlow Semi Condensed','Arial Narrow',Arial,sans-serif);
  --cj-fb:var(--f-body,'Barlow','Helvetica Neue',Arial,sans-serif);
  --cj-w:384px;
  position:fixed;right:22px;bottom:22px;z-index:9990;font-family:var(--cj-fb);color:#16222c;
  -webkit-font-smoothing:antialiased;}
#cj *,#cj *::before,#cj *::after{box-sizing:border-box;}
#cj button{font-family:inherit;cursor:pointer;}
#cj img{display:block;max-width:none;}
body.nav-open #cj{display:none;}

/* ---------- launcher ---------- */
.cj-launch{position:relative;width:74px;height:74px;border-radius:50%;border:0;padding:0;
  background:radial-gradient(circle at 50% 38%,#1b6fae 0%,var(--cj-navy) 72%);
  box-shadow:0 12px 30px rgba(6,35,56,.38),0 0 0 3px #fff;
  animation:cjFloat 4.2s ease-in-out infinite;transition:transform .35s cubic-bezier(.2,1.4,.4,1),opacity .25s;}
.cj-launch img{position:absolute;left:50%;bottom:0;width:86px;height:86px;transform:translateX(-50%);
  border-radius:0 0 40px 40px;clip-path:circle(37px at 50% 49px);
  animation:cjNod 7s ease-in-out infinite;transform-origin:50% 90%;}
.cj-launch:hover img{animation:cjWiggle .9s ease-in-out;}
.cj-ring{position:absolute;inset:-3px;border-radius:50%;border:2px solid var(--cj-yellow);opacity:0;
  animation:cjRing 2.8s ease-out infinite;}
.cj-ring.r2{animation-delay:1.4s;}
.cj-badge{position:absolute;top:-2px;right:-2px;min-width:22px;height:22px;padding:0 6px;border-radius:11px;
  background:var(--cj-red);color:#fff;font:700 12px/22px var(--cj-fd);box-shadow:0 0 0 2px #fff;
  transform:scale(0);animation:cjBadge .5s 2.4s cubic-bezier(.2,1.6,.4,1) forwards;}
.cj-launch-label{position:absolute;right:88px;bottom:22px;white-space:nowrap;background:var(--cj-navy);color:#fff;
  font:600 12px/1 var(--cj-fd);letter-spacing:.1em;text-transform:uppercase;padding:9px 12px;border-radius:6px;
  box-shadow:0 8px 20px rgba(6,35,56,.28),0 0 0 2px #fff;
  opacity:0;transform:translateX(8px);transition:opacity .3s,transform .4s cubic-bezier(.2,1.4,.4,1),background .2s;pointer-events:none;
  animation:cjLabelIn .5s .9s cubic-bezier(.2,1.4,.4,1) both;}
.cj-launch-label::after{content:"";position:absolute;right:-5px;top:50%;width:10px;height:10px;margin-top:-5px;background:inherit;transform:rotate(45deg);border-radius:0 2px 0 0;}
.cj-launch-label i{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--cj-yellow);margin-right:8px;vertical-align:1px;animation:cjOnline 2s infinite;box-shadow:0 0 0 0 rgba(255,194,41,.6);}
.cj-launch:hover .cj-launch-label{background:var(--cj-blue);}
#cj:has(.cj-peek.show) .cj-launch-label{opacity:0 !important;}
@keyframes cjLabelIn{from{opacity:0;transform:translateX(8px)}to{opacity:1;transform:none}}
#cj.open .cj-launch{transform:scale(0) rotate(-30deg);opacity:0;pointer-events:none;}

/* ---------- peek bubble ---------- */
.cj-peek{position:absolute;right:92px;bottom:2px;width:250px;background:#fff;border-radius:16px 16px 4px 16px;
  padding:14px 34px 14px 16px;box-shadow:0 16px 40px rgba(6,35,56,.22);
  opacity:0;transform:translateY(10px) scale(.92);transform-origin:100% 100%;pointer-events:none;
  transition:opacity .35s ease,transform .45s cubic-bezier(.2,1.4,.4,1);}
.cj-peek.show{opacity:1;transform:none;pointer-events:auto;cursor:pointer;}
.cj-peek b{display:block;font:700 16px/1.2 var(--cj-fd);color:var(--cj-navy);margin-bottom:3px;}
.cj-peek span{font-size:13.5px;line-height:1.45;color:#46576a;}
.cj-peek-x{position:absolute;top:6px;right:6px;width:24px;height:24px;border:0;background:none;color:#7a8a99;font-size:18px;line-height:1;border-radius:50%;}
.cj-peek-x:hover{background:#eef3f7;color:var(--cj-navy);}
.cj-peek::after{content:"";position:absolute;right:-6px;bottom:18px;width:14px;height:14px;background:#fff;transform:rotate(45deg);border-radius:0 0 3px 0;}

/* ---------- panel ---------- */
.cj-panel{position:absolute;right:0;bottom:0;width:var(--cj-w);height:min(620px,calc(100vh - 110px));
  display:flex;flex-direction:column;background:#f4f7fa;border-radius:18px;overflow:hidden;
  box-shadow:0 30px 70px rgba(6,35,56,.35),0 0 0 1px rgba(6,35,56,.06);
  opacity:0;transform:translateY(24px) scale(.94);transform-origin:100% 100%;pointer-events:none;visibility:hidden;
  transition:opacity .3s ease,transform .5s cubic-bezier(.2,1.25,.4,1),visibility 0s .5s;}
#cj.open .cj-panel{opacity:1;transform:none;pointer-events:auto;visibility:visible;transition:opacity .3s ease,transform .5s cubic-bezier(.2,1.25,.4,1);}
.cj-head{position:relative;flex:0 0 auto;display:flex;align-items:center;gap:12px;padding:16px 14px 16px 16px;color:#fff;
  background:radial-gradient(420px 180px at 100% 0%,rgba(74,159,224,.35),transparent 60%),linear-gradient(120deg,#041826,var(--cj-navy) 55%,var(--cj-deep));}
.cj-head::after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;
  background:linear-gradient(90deg,var(--cj-yellow),rgba(255,194,41,0));}
.cj-avatar{position:relative;flex:0 0 auto;width:52px;height:52px;border-radius:50%;background:#e9f1f8;overflow:hidden;
  box-shadow:0 0 0 2px rgba(255,255,255,.85);}
.cj-avatar img{position:absolute;inset:0;width:100%;height:100%;transition:opacity .35s;}
.cj-avatar .cj-av-t{opacity:0;}
#cj[data-state="thinking"] .cj-avatar .cj-av-t{opacity:1;}
#cj[data-state="thinking"] .cj-avatar .cj-av-w{opacity:0;}
.cj-title{min-width:0;flex:1;}
.cj-title b{display:block;font:700 20px/1.1 var(--cj-fd);letter-spacing:0;}
.cj-status{display:flex;align-items:center;gap:7px;margin-top:4px;font-size:12.5px;color:#bcd2e3;}
.cj-status i{width:8px;height:8px;border-radius:50%;background:#3ddc84;box-shadow:0 0 0 0 rgba(61,220,132,.6);animation:cjOnline 2s infinite;}
.cj-hbtn{flex:0 0 auto;width:34px;height:34px;border:0;border-radius:50%;background:rgba(255,255,255,.08);color:#fff;
  display:grid;place-items:center;transition:background .2s;}
.cj-hbtn:hover{background:rgba(255,255,255,.2);}
.cj-hbtn svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2.2;stroke-linecap:round;}

/* ---------- log ---------- */
.cj-log{flex:1;overflow-y:auto;padding:18px 14px 8px;scroll-behavior:smooth;overscroll-behavior:contain;
  background:linear-gradient(180deg,#eef3f8 0%,#f6f9fb 120px);}
.cj-log::-webkit-scrollbar{width:6px}.cj-log::-webkit-scrollbar-thumb{background:#c5d3df;border-radius:3px}
.cj-day{text-align:center;margin:0 0 14px;font:600 11px/1 var(--cj-fd);letter-spacing:.12em;text-transform:uppercase;color:#8899a8;}
.cj-msg{display:flex;gap:8px;margin:0 0 12px;align-items:flex-end;animation:cjIn .4s cubic-bezier(.2,1.2,.4,1) both;}
.cj-msg .cj-mav{flex:0 0 30px;width:30px;height:30px;border-radius:50%;overflow:hidden;background:#dfe9f2;}
.cj-msg .cj-mav img{width:100%;height:100%;}
.cj-bub{max-width:84%;padding:11px 14px;border-radius:16px 16px 16px 5px;background:#fff;font-size:14.5px;line-height:1.55;
  box-shadow:0 2px 8px rgba(6,35,56,.06);color:#1d2b36;word-wrap:break-word;}
.cj-bub p{margin:0 0 7px;}.cj-bub p:last-child{margin:0;}
.cj-bub b,.cj-bub strong{color:var(--cj-navy);font-weight:600;}
.cj-bub ul{margin:6px 0 6px;padding:0;list-style:none;}
.cj-bub li{position:relative;padding:2px 0 2px 14px;}
.cj-bub li::before{content:"";position:absolute;left:2px;top:.72em;width:5px;height:5px;border-radius:50%;background:var(--cj-blue);opacity:.7;}
.cj-bub a{color:var(--cj-blue);font-weight:600;text-decoration:none;border-bottom:1px solid rgba(16,104,179,.3);}
.cj-bub a:hover{border-bottom-color:var(--cj-blue);}
.cj-msg.me{justify-content:flex-end;}
.cj-msg.me .cj-bub{background:var(--cj-blue);color:#fff;border-radius:16px 16px 5px 16px;}
.cj-acts{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px;}
.cj-bub .cj-act{display:inline-flex;align-items:center;gap:7px;padding:8px 12px;border-radius:8px;border:0;
  background:var(--cj-navy);color:#fff;font:600 12px/1 var(--cj-fd);letter-spacing:.08em;text-transform:uppercase;transition:transform .2s,background .2s;}
.cj-bub .cj-act:hover{background:var(--cj-blue);transform:translateY(-1px);border:0;}
.cj-bub .cj-act.y{background:var(--cj-yellow);color:var(--cj-navy);}
.cj-bub .cj-act.r{background:var(--cj-red);}
.cj-bub .cj-act svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;}
.cj-card{margin-top:8px;border:1px solid #dbe5ee;border-radius:10px;overflow:hidden;font-size:13.5px;}
.cj-card div{display:flex;gap:10px;padding:7px 10px;border-top:1px solid #edf2f6;}
.cj-card div:first-child{border-top:0;}
.cj-card span{flex:0 0 78px;color:#7a8a99;font:600 11px/1.6 var(--cj-fd);letter-spacing:.08em;text-transform:uppercase;}
.cj-card em{font-style:normal;color:#1d2b36;}
/* typing */
.cj-typing .cj-bub{display:flex;gap:5px;align-items:center;padding:14px 16px;}
.cj-typing i{width:7px;height:7px;border-radius:50%;background:var(--cj-blue);opacity:.35;animation:cjDot 1.1s infinite;}
.cj-typing i:nth-child(2){animation-delay:.15s}.cj-typing i:nth-child(3){animation-delay:.3s}
.cj-typing small{margin-left:6px;font-size:12px;color:#7a8a99;}

/* ---------- chips + input ---------- */
.cj-chips{flex:0 0 auto;display:flex;gap:7px;overflow-x:auto;padding:4px 14px 10px;scrollbar-width:none;background:#f6f9fb;}
.cj-chips::-webkit-scrollbar{display:none;}
.cj-chip{flex:0 0 auto;padding:8px 13px;border-radius:20px;border:1px solid #c9d8e5;background:#fff;color:var(--cj-deep);
  font:600 13px/1 var(--cj-fd);letter-spacing:.02em;transition:all .2s;animation:cjIn .4s both;}
.cj-chip:hover{background:var(--cj-navy);border-color:var(--cj-navy);color:#fff;transform:translateY(-1px);}
.cj-form{flex:0 0 auto;display:flex;gap:8px;align-items:center;padding:10px 12px;background:#fff;border-top:1px solid #e3eaf0;}
.cj-form input{flex:1;min-width:0;height:44px;border:1px solid #d3dee8;border-radius:22px;padding:0 16px;font:400 15px var(--cj-fb);
  color:#16222c;background:#f6f9fb;outline:none;transition:border-color .2s,background .2s;}
.cj-form input:focus{border-color:var(--cj-blue);background:#fff;}
.cj-send{flex:0 0 44px;height:44px;border:0;border-radius:50%;background:var(--cj-blue);color:#fff;display:grid;place-items:center;transition:transform .2s,background .2s;}
.cj-send:hover{background:var(--cj-navy);transform:rotate(-12deg);}
.cj-send svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;}
.cj-foot{flex:0 0 auto;padding:0 14px 9px;background:#fff;font-size:11.5px;color:#8a99a7;text-align:center;}
.cj-foot a{color:var(--cj-blue);text-decoration:none;font-weight:600;}

/* ---------- the character ---------- */
.cj-char{position:absolute;right:calc(var(--cj-w) - 34px);bottom:-6px;width:157px;height:330px;pointer-events:none;
  opacity:0;visibility:hidden;transform:translateY(70px) scale(.8);transform-origin:50% 100%;
  transition:opacity .3s,transform .6s cubic-bezier(.2,1.5,.4,1) .08s,visibility 0s .6s;}
#cj.open .cj-char{opacity:1;visibility:visible;transform:none;transition:opacity .3s .05s,transform .7s cubic-bezier(.2,1.5,.4,1) .08s;}
.cj-body{position:absolute;inset:0;transform-origin:50% 100%;animation:cjBreathe 4.4s ease-in-out infinite;}
.cj-pose{position:absolute;left:0;bottom:0;width:100%;height:auto;transition:opacity .4s ease,transform .5s cubic-bezier(.2,1.3,.4,1);
  filter:drop-shadow(0 14px 18px rgba(6,35,56,.28));}
.cj-pose-t{opacity:0;transform:scale(.97) translateY(4px);}
.cj-shadow{position:absolute;left:18%;right:18%;bottom:4px;height:16px;border-radius:50%;background:radial-gradient(rgba(6,35,56,.35),transparent 70%);
  animation:cjShadow 4.4s ease-in-out infinite;}
/* headset glow */
.cj-glow{position:absolute;width:32px;height:32px;margin:-16px 0 0 -16px;border-radius:50%;left:41.1%;top:14.6%;
  background:radial-gradient(circle,rgba(90,200,255,.75) 0%,rgba(40,150,255,.25) 45%,transparent 70%);mix-blend-mode:screen;
  animation:cjGlow 2.4s ease-in-out infinite;transition:left .4s,top .4s;}
/* sparkles at the open hand */
.cj-spark{position:absolute;left:5%;top:31%;width:0;height:0;transform:scale(.75);}
.cj-spark i{position:absolute;width:12px;height:12px;opacity:0;
  background:conic-gradient(from 45deg,transparent 0 25%,var(--cj-yellow) 0 25%,transparent 0) ;
  clip-path:polygon(50% 0,62% 38%,100% 50%,62% 62%,50% 100%,38% 62%,0 50%,38% 38%);background:var(--cj-yellow);}
.cj-spark i:nth-child(1){left:-18px;top:-26px;}
.cj-spark i:nth-child(2){left:6px;top:-40px;width:8px;height:8px;background:#fff;}
.cj-spark i:nth-child(3){left:-30px;top:4px;width:9px;height:9px;}
.cj-spark i:nth-child(4){left:14px;top:-14px;width:7px;height:7px;background:#9fd6ff;}
/* thought bubble */
.cj-thought{position:absolute;left:58%;top:-6%;width:74px;height:48px;opacity:0;transform:scale(.4) translate(-20px,30px);transform-origin:0 100%;
  transition:opacity .3s,transform .45s cubic-bezier(.2,1.5,.4,1);}
.cj-cloud{position:absolute;inset:0;background:#fff;border-radius:32px;box-shadow:0 8px 22px rgba(6,35,56,.2);display:flex;align-items:center;justify-content:center;gap:6px;}
.cj-cloud i{width:8px;height:8px;border-radius:50%;background:var(--cj-blue);animation:cjDot 1s infinite;}
.cj-cloud i:nth-child(2){animation-delay:.15s}.cj-cloud i:nth-child(3){animation-delay:.3s}
.cj-thought b{position:absolute;background:#fff;border-radius:50%;box-shadow:0 4px 10px rgba(6,35,56,.18);}
.cj-thought b.t1{width:14px;height:14px;left:-2px;bottom:-12px;}
.cj-thought b.t2{width:8px;height:8px;left:-14px;bottom:-24px;}
.cj-gear{position:absolute;width:20px;height:20px;color:var(--cj-yellow);animation:cjSpin 3s linear infinite;}
.cj-gear.g1{right:-12px;top:-12px;}
.cj-gear.g2{right:12px;top:-20px;width:16px;height:16px;color:#9fd6ff;animation-direction:reverse;animation-duration:2s;}
.cj-gear svg{width:100%;height:100%;fill:currentColor;}
/* voice bars at the microphone */
.cj-eq{position:absolute;left:58%;top:22.5%;display:flex;gap:2px;align-items:flex-end;height:16px;opacity:0;transition:opacity .25s;}
.cj-eq i{width:3px;height:4px;border-radius:2px;background:#5fd0ff;box-shadow:0 0 6px rgba(95,208,255,.8);}
/* confetti */
.cj-confetti{position:absolute;left:50%;top:18%;width:0;height:0;}
.cj-confetti i{position:absolute;width:7px;height:11px;border-radius:2px;opacity:0;}

/* ---------- states ---------- */
#cj[data-state="welcome"] .cj-spark i{animation:cjTwinkle 1.4s ease-in-out 3;}
#cj[data-state="welcome"] .cj-spark i:nth-child(2){animation-delay:.25s}
#cj[data-state="welcome"] .cj-spark i:nth-child(3){animation-delay:.5s}
#cj[data-state="welcome"] .cj-spark i:nth-child(4){animation-delay:.75s}
#cj[data-state="welcome"] .cj-body{animation:cjPresent 1.6s cubic-bezier(.3,1.3,.5,1) 1,cjBreathe 4.4s ease-in-out 1.6s infinite;}
#cj[data-state="thinking"] .cj-pose-w{opacity:0;transform:scale(.97) translateY(4px);}
#cj[data-state="thinking"] .cj-pose-t{opacity:1;transform:none;}
#cj[data-state="thinking"] .cj-glow{left:34.2%;top:17.9%;animation-duration:.9s;}
#cj[data-state="thinking"] .cj-thought{opacity:1;transform:none;}
#cj[data-state="thinking"] .cj-body{animation:cjPonder 2.6s ease-in-out infinite;}
#cj[data-state="talking"] .cj-body{animation:cjTalk .55s ease-in-out infinite;}
#cj[data-state="talking"] .cj-eq{opacity:1;}
#cj[data-state="talking"] .cj-eq i{animation:cjEq .5s ease-in-out infinite alternate;}
#cj[data-state="talking"] .cj-eq i:nth-child(2){animation-delay:.12s}
#cj[data-state="talking"] .cj-eq i:nth-child(3){animation-delay:.24s}
#cj[data-state="talking"] .cj-eq i:nth-child(4){animation-delay:.06s}
#cj[data-state="talking"] .cj-glow{animation-duration:.6s;}
#cj[data-state="happy"] .cj-body{animation:cjHop .9s cubic-bezier(.3,1.6,.5,1) 2;}
#cj[data-state="happy"] .cj-confetti i{animation:cjConfetti 1.5s ease-out forwards;}

/* ---------- keyframes ---------- */
@keyframes cjFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
@keyframes cjNod{0%,82%,100%{transform:translateX(-50%) rotate(0)}86%{transform:translateX(-50%) rotate(-9deg)}90%{transform:translateX(-50%) rotate(7deg)}94%{transform:translateX(-50%) rotate(-4deg)}}
@keyframes cjWiggle{0%,100%{transform:translateX(-50%) rotate(0)}25%{transform:translateX(-50%) rotate(-10deg)}55%{transform:translateX(-50%) rotate(8deg)}80%{transform:translateX(-50%) rotate(-3deg)}}
@keyframes cjRing{0%{transform:scale(1);opacity:.8}100%{transform:scale(1.55);opacity:0}}
@keyframes cjBadge{to{transform:scale(1)}}
@keyframes cjOnline{0%{box-shadow:0 0 0 0 rgba(61,220,132,.6)}70%{box-shadow:0 0 0 7px rgba(61,220,132,0)}100%{box-shadow:0 0 0 0 rgba(61,220,132,0)}}
@keyframes cjIn{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}
@keyframes cjDot{0%,60%,100%{transform:translateY(0);opacity:.35}30%{transform:translateY(-5px);opacity:1}}
@keyframes cjBreathe{0%,100%{transform:translateY(0) rotate(0) scaleY(1)}50%{transform:translateY(-3px) rotate(.6deg) scaleY(1.008)}}
@keyframes cjShadow{0%,100%{transform:scaleX(1);opacity:1}50%{transform:scaleX(.92);opacity:.8}}
@keyframes cjGlow{0%,100%{opacity:.35;transform:scale(.85)}50%{opacity:1;transform:scale(1.15)}}
@keyframes cjTwinkle{0%,100%{opacity:0;transform:scale(.2) rotate(0)}50%{opacity:1;transform:scale(1.15) rotate(45deg)}}
@keyframes cjPresent{0%{transform:rotate(0)}30%{transform:rotate(-3.5deg) translateY(-6px)}60%{transform:rotate(1.5deg)}100%{transform:rotate(0)}}
@keyframes cjPonder{0%,100%{transform:rotate(-1.4deg)}50%{transform:rotate(1.4deg) translateY(-2px)}}
@keyframes cjTalk{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px) rotate(-.5deg)}}
@keyframes cjEq{from{height:3px}to{height:15px}}
@keyframes cjHop{0%,100%{transform:translateY(0) scaleY(1)}20%{transform:translateY(0) scaleY(.96)}50%{transform:translateY(-26px) scaleY(1.02)}80%{transform:translateY(0) scaleY(.98)}}
@keyframes cjSpin{to{transform:rotate(360deg)}}
@keyframes cjConfetti{0%{opacity:1;transform:translate(0,0) rotate(0)}100%{opacity:0;transform:translate(var(--x),var(--y)) rotate(var(--r))}}

/* ---------- tablet & phone: the character lives in the panel header (moved there by the script) ---------- */
.cj-head .cj-char{position:absolute;left:auto;right:122px;bottom:0;top:auto;width:112px;height:122px;overflow:hidden;
  opacity:1;visibility:visible;transform:none;transition:none;}
.cj-head .cj-body{inset:8px 0 auto 0;height:253px;}
.cj-head .cj-pose{filter:drop-shadow(0 6px 10px rgba(0,0,0,.35));}
.cj-head .cj-shadow,.cj-head .cj-spark,.cj-head .cj-gear,.cj-head .cj-confetti{display:none;}
.cj-head .cj-thought{left:auto;right:-6px;top:4px;width:52px;height:34px;}
.cj-head .cj-cloud i{width:6px;height:6px;}
.cj-head .cj-thought b{display:none;}
.cj-head .cj-eq{display:none;}
@media(max-width:1000px){
  .cj-head{min-height:122px;align-items:flex-end;padding-bottom:16px;}
  .cj-head .cj-avatar{display:none;}
  .cj-head .cj-title{padding-right:112px;}
  .cj-head .cj-status{white-space:nowrap;font-size:11.5px;}
  .cj-head .cj-st{overflow:hidden;text-overflow:ellipsis;}
  #cj[data-state="welcome"] .cj-head .cj-body{animation:cjBreathe 4.4s ease-in-out infinite;}
}
@media(max-width:600px){
  #cj{right:14px;bottom:14px;}
  #cj.open{left:0;bottom:0;right:0;top:0;}
  #cj.open .cj-panel{width:100%;height:100%;border-radius:0;}
  .cj-panel{width:calc(100vw - 28px);}
  .cj-char{right:12px;top:6px;}
  .cj-launch{width:64px;height:64px;}
  .cj-launch img{width:76px;height:76px;clip-path:circle(32px at 50% 44px);}
  .cj-peek{right:76px;bottom:0;width:210px;}
  .cj-launch-label{right:76px;bottom:18px;padding:8px 11px;font-size:11.5px;}
}
@media(prefers-reduced-motion:reduce){
  #cj *,#cj *::before,#cj *::after{animation:none !important;transition-duration:.01ms !important;}
}

/* ---------- the page's call / back-to-top buttons sit above the launcher ---------- */
body.has-cj .floaters{bottom:112px !important;}
@media(max-width:600px){ body.has-cj .floaters{bottom:92px !important;} }

/* ---------- minimised bar ---------- */
.cj-mini{position:absolute;right:0;bottom:0;display:flex;align-items:center;gap:10px;width:250px;padding:8px 14px 8px 8px;border:0;border-radius:40px;
  background:linear-gradient(120deg,#041826,var(--cj-navy) 60%,var(--cj-deep));color:#fff;text-align:left;
  box-shadow:0 14px 34px rgba(6,35,56,.35),0 0 0 2px #fff;
  opacity:0;transform:translateY(20px) scale(.9);transform-origin:100% 100%;pointer-events:none;visibility:hidden;
  transition:opacity .25s,transform .45s cubic-bezier(.2,1.4,.4,1),visibility 0s .45s;}
#cj.mini .cj-mini{opacity:1;transform:none;pointer-events:auto;visibility:visible;transition:opacity .25s,transform .45s cubic-bezier(.2,1.4,.4,1);}
#cj.mini .cj-launch{transform:scale(0);opacity:0;pointer-events:none;}
#cj.mini .cj-peek{display:none;}
.cj-mini-av{position:relative;flex:0 0 44px;height:44px;border-radius:50%;overflow:hidden;background:#e9f1f8;box-shadow:0 0 0 2px var(--cj-yellow);animation:cjNodAv 6s ease-in-out infinite;}
.cj-mini-av img{width:100%;height:100%;}
.cj-mini-t{flex:1;min-width:0;}
.cj-mini-t b{display:block;font:700 16px/1.1 var(--cj-fd);}
.cj-mini-t span{display:block;font-size:12px;color:#bcd2e3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px;}
.cj-mini-up{flex:0 0 auto;width:28px;height:28px;border-radius:50%;background:rgba(255,255,255,.12);display:grid;place-items:center;}
.cj-mini-up svg{width:14px;height:14px;stroke:#fff;fill:none;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;}
.cj-mini:hover .cj-mini-up{background:var(--cj-yellow);}
.cj-mini:hover .cj-mini-up svg{stroke:var(--cj-navy);}
@keyframes cjNodAv{0%,85%,100%{transform:rotate(0)}89%{transform:rotate(-8deg)}93%{transform:rotate(6deg)}}

/* ---------- ordering checklist in a message ---------- */
.cj-steps{list-style:none;margin:8px 0 4px;padding:0;counter-reset:cjs;}
.cj-bub .cj-steps li{display:flex;gap:10px;padding:6px 0;border-top:1px solid #edf2f6;}
.cj-bub .cj-steps li:first-child{border-top:0;}
.cj-bub .cj-steps li::before{counter-increment:cjs;content:counter(cjs,decimal-leading-zero);position:static;flex:0 0 26px;width:26px;height:22px;border-radius:4px;
  background:var(--cj-navy);color:#fff;opacity:1;font:600 11px/22px var(--cj-fd);text-align:center;letter-spacing:.04em;margin-top:1px;}
.cj-steps b{display:block;}
.cj-steps small{display:block;font-size:12.5px;color:#5b6b79;line-height:1.45;}
.cj-steps em{font-style:italic;color:#3c4d5c;}

/* ---------- requisition form (slides over the chat) ---------- */
.cj-sheet{position:absolute;inset:0;z-index:5;display:flex;flex-direction:column;background:#fff;
  transform:translateY(102%);transition:transform .45s cubic-bezier(.2,1,.3,1);visibility:hidden;}
.cj-sheet.on{transform:none;visibility:visible;}
.cj-sh-head{flex:0 0 auto;display:flex;align-items:center;gap:10px;padding:14px 14px 12px;color:#fff;
  background:linear-gradient(120deg,#041826,var(--cj-navy) 55%,var(--cj-deep));position:relative;}
.cj-sh-head::after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;background:linear-gradient(90deg,var(--cj-yellow),rgba(255,194,41,0));}
.cj-sh-head img{width:40px;height:40px;border-radius:50%;background:#e9f1f8;flex:0 0 40px;}
.cj-sh-head div{flex:1;min-width:0;}
.cj-sh-head b{display:block;font:700 17px/1.15 var(--cj-fd);}
.cj-sh-head span{display:block;font-size:12px;color:#bcd2e3;margin-top:2px;}
.cj-sh-body{flex:1;overflow-y:auto;padding:14px 16px 6px;overscroll-behavior:contain;}
.cj-sh-group{font:600 11.5px/1 var(--cj-fd);letter-spacing:.12em;text-transform:uppercase;color:var(--cj-blue);margin:6px 0 10px;}
.cj-sh-group:not(:first-child){margin-top:18px;padding-top:14px;border-top:1px solid #e6edf3;}
.cj-f{display:block;margin:0 0 11px;}
.cj-f > span{display:flex;gap:6px;align-items:baseline;font:600 12.5px/1.3 var(--cj-fd);color:var(--cj-navy);margin-bottom:5px;}
.cj-f > span i{font-style:normal;color:var(--cj-red);}
.cj-f > span small{font:400 11.5px var(--cj-fb);color:#8494a3;}
.cj-f input,.cj-f textarea,.cj-line input{width:100%;height:40px;border:1px solid #d3dee8;border-radius:8px;padding:0 11px;font:400 14px var(--cj-fb);
  color:#16222c;background:#f8fafc;outline:none;transition:border-color .2s,background .2s;}
.cj-f textarea{height:64px;padding:9px 11px;resize:vertical;line-height:1.45;}
.cj-f input:focus,.cj-f textarea:focus,.cj-line input:focus{border-color:var(--cj-blue);background:#fff;}
.cj-f .cj-hint{display:block;font-size:11.5px;color:#8494a3;margin-top:4px;line-height:1.4;}
.cj-f.err input,.cj-f.err textarea,.cj-lines.err .cj-line:first-of-type input{border-color:var(--cj-red);background:#fff6f7;}
.cj-lines{margin:0 0 11px;}
.cj-lines-h{display:grid;grid-template-columns:1fr 1.5fr 46px 52px 22px;gap:5px;font:600 10.5px/1 var(--cj-fd);letter-spacing:.08em;text-transform:uppercase;color:#7a8a99;margin:0 0 5px;}
.cj-lines.pv .cj-lines-h,.cj-lines.pv .cj-line{grid-template-columns:1.5fr 1fr 46px 22px;}
.cj-line{display:grid;grid-template-columns:1fr 1.5fr 46px 52px 22px;gap:5px;margin-bottom:5px;align-items:center;animation:cjIn .3s both;}
.cj-line input{height:36px;padding:0 8px;font-size:13px;}
.cj-line button{width:22px;height:22px;border:0;border-radius:50%;background:#eef3f7;color:#7a8a99;font-size:14px;line-height:1;padding:0;}
.cj-line button:hover{background:var(--cj-red);color:#fff;}
.cj-addline{border:1px dashed #b9cbdb;background:none;border-radius:8px;width:100%;height:34px;color:var(--cj-blue);font:600 12px/1 var(--cj-fd);letter-spacing:.08em;text-transform:uppercase;}
.cj-addline:hover{background:#f0f6fb;border-color:var(--cj-blue);}
.cj-file{display:flex;align-items:center;gap:10px;border:1px dashed #b9cbdb;border-radius:8px;padding:10px;background:#f8fafc;cursor:pointer;}
.cj-file:hover{border-color:var(--cj-blue);background:#f0f6fb;}
.cj-file input{display:none;}
.cj-file .cj-thumb{flex:0 0 52px;height:52px;border-radius:6px;background:#e3ebf2 center/cover no-repeat;display:grid;place-items:center;color:#8494a3;}
.cj-file .cj-thumb svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.8;}
.cj-file .cj-thumb.has svg{display:none;}
.cj-file em{font-style:normal;font-size:13px;color:#46576a;line-height:1.4;}
.cj-sh-foot{flex:0 0 auto;display:flex;gap:8px;padding:10px 14px;border-top:1px solid #e3eaf0;background:#fff;}
.cj-sh-foot button{flex:1;height:44px;border-radius:8px;border:0;font:600 13px/1 var(--cj-fd);letter-spacing:.09em;text-transform:uppercase;}
.cj-sh-cancel{background:#eef3f7;color:var(--cj-navy);flex:0 0 96px !important;}
.cj-sh-send{background:var(--cj-red);color:#fff;}
.cj-sh-send:hover{background:#b81d31;}
.cj-sh-err{display:none;margin:0 16px 8px;padding:8px 10px;border-radius:6px;background:#fff1f3;color:#b81d31;font-size:12.5px;}
.cj-sh-err.on{display:block;}
.cj-card img{max-width:100%;max-height:120px;width:auto;border-radius:6px;display:block;object-fit:cover;}
.cj-card .cj-tl{display:block;width:100%;flex:1 1 auto !important;font:400 12.5px/1.4 var(--cj-fb) !important;letter-spacing:0 !important;text-transform:none !important;color:#1d2b36 !important;}
.cj-card .cj-tl table{width:100%;border-collapse:collapse;font-size:12.5px;}
.cj-card .cj-tl td,.cj-card .cj-tl th{border-top:1px solid #edf2f6;padding:5px 4px;text-align:left;vertical-align:top;}
.cj-card .cj-tl th{font:600 10.5px/1.2 var(--cj-fd);letter-spacing:.06em;text-transform:uppercase;color:#7a8a99;border-top:0;}
@media(max-width:600px){ .cj-mini{width:230px;} }
#cj .cj-also{margin:10px 0 0;font-size:12.5px;line-height:1.55;color:#5a6d7a;}
#cj .cj-also a{color:#0c4d78;font-weight:600;}
