.ajc{position:fixed;right:20px;bottom:calc(20px + env(safe-area-inset-bottom,0px));z-index:9998;font-family:'DM Sans',system-ui,-apple-system,'Segoe UI',sans-serif;line-height:1.45}
.ajc *{box-sizing:border-box}
.ajc-fab{position:relative;display:grid;place-items:center;width:58px;height:58px;border:0;border-radius:50%;background:#DC1B2E;color:#fff;cursor:pointer;box-shadow:0 14px 28px -10px rgba(220,27,46,.65),0 4px 10px rgba(6,24,47,.25);transition:transform .2s;-webkit-tap-highlight-color:transparent}
.ajc-fab:hover{transform:scale(1.06)}
.ajc-fab svg{width:26px;height:26px;fill:currentColor}
.ajc-fab::after{content:"";position:absolute;inset:0;border-radius:50%;border:2px solid #DC1B2E;animation:ajcpulse 2.6s ease-out infinite;pointer-events:none}
.ajc.open .ajc-fab::after{display:none}
@keyframes ajcpulse{from{transform:scale(1);opacity:.7}to{transform:scale(1.7);opacity:0}}
.ajc-tip{position:absolute;right:0;bottom:70px;max-width:220px;background:#fff;color:#0A1A33;font-size:14px;font-weight:600;padding:10px 14px;border-radius:8px;box-shadow:0 12px 28px -10px rgba(6,24,47,.45);opacity:0;transform:translateY(6px);pointer-events:none;transition:opacity .25s,transform .25s;white-space:nowrap}
.ajc-tip.show{opacity:1;transform:none}
.ajc-panel{position:absolute;right:0;bottom:72px;width:370px;height:min(540px,calc(100vh - 120px));height:min(540px,calc(100dvh - 120px));display:flex;flex-direction:column;background:#fff;border-radius:10px;overflow:hidden;box-shadow:0 30px 60px -20px rgba(6,24,47,.55),0 0 0 1px rgba(6,24,47,.08);animation:ajcin .25s cubic-bezier(.2,.7,.2,1)}
.ajc-panel[hidden]{display:none}
@keyframes ajcin{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:none}}
.ajc-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;color:#fff;background:#061833;position:relative;border-bottom:3px solid transparent;border-image:linear-gradient(90deg,#DC1B2E 50%,#2F6FE8 50%) 1}
.ajc-ttl,.ajc-x{position:relative}
.ajc-ttl strong{display:block;font-family:'DM Serif Display','DM Sans',sans-serif;font-size:17px;font-weight:400;line-height:1.2}
.ajc-ttl span{display:block;font-size:13px;color:#B8C7DD}
.ajc-x{width:34px;height:34px;display:grid;place-items:center;border:0;border-radius:50%;background:rgba(255,255,255,.12);color:#fff;cursor:pointer}
.ajc-x svg{width:16px;height:16px}
.ajc-x:hover{background:rgba(255,255,255,.22)}
.ajc-log{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:10px;background:#F4F7FB;overscroll-behavior:contain}
.ajc-msg{max-width:86%;padding:10px 14px;border-radius:12px;font-size:15px;color:#0A1A33;word-wrap:break-word;animation:ajcmsg .25s ease both}
@keyframes ajcmsg{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.ajc-bot{align-self:flex-start;background:#fff;border:1px solid #DCE5F1;border-bottom-left-radius:4px}
.ajc-user{align-self:flex-end;background:#0A47B1;color:#fff;border-bottom-right-radius:4px}
.ajc-typing{display:flex;gap:5px;padding:13px 14px}
.ajc-typing i{width:7px;height:7px;border-radius:50%;background:#8FA3C0;animation:ajcdot 1s infinite}
.ajc-typing i:nth-child(2){animation-delay:.15s}.ajc-typing i:nth-child(3){animation-delay:.3s}
@keyframes ajcdot{0%,60%,100%{transform:translateY(0);opacity:.5}30%{transform:translateY(-4px);opacity:1}}
.ajc-chips{display:flex;flex-wrap:wrap;gap:8px;padding:10px 16px;background:#F4F7FB;border-top:1px solid #E3EAF3}
.ajc-chips:empty{display:none}
.ajc-chip{font:600 14px/1.2 'DM Sans',system-ui,sans-serif;color:#0A47B1;background:#fff;border:1.5px solid #B9CBE8;border-radius:999px;padding:9px 14px;cursor:pointer;text-decoration:none;transition:background .2s,color .2s,border-color .2s}
.ajc-chip:hover{background:#0A47B1;color:#fff;border-color:#0A47B1}
.ajc-chip-call{background:#DC1B2E;border-color:#DC1B2E;color:#fff}
.ajc-chip-call:hover{background:#B5121F;border-color:#B5121F;color:#fff}
.ajc-form{display:flex;gap:8px;padding:12px;background:#fff;border-top:1px solid #E3EAF3}
.ajc-form input{flex:1;min-width:0;font:500 16px/1.3 'DM Sans',system-ui,sans-serif;color:#0A1A33;border:1.5px solid #CBD7E8;border-radius:6px;padding:11px 12px;background:#fff}
.ajc-form input:focus{outline:0;border-color:#0A47B1;box-shadow:0 0 0 3px rgba(10,71,177,.18)}
.ajc-send{flex:none;width:46px;border:0;border-radius:6px;background:#DC1B2E;color:#fff;display:grid;place-items:center;cursor:pointer}
.ajc-send svg{width:20px;height:20px;fill:currentColor}
.ajc button:focus-visible,.ajc a:focus-visible{outline:3px solid #3B7BFF;outline-offset:2px}
@media (max-width:520px){
  .ajc{right:14px}
  .ajc-panel{position:fixed;left:12px;right:12px;bottom:calc(86px + env(safe-area-inset-bottom,0px));width:auto;height:min(520px,calc(100vh - 150px));height:min(520px,calc(100dvh - 150px))}
  .ajc-tip{right:0;white-space:normal;max-width:190px}
}
@media (prefers-reduced-motion:reduce){.ajc-fab::after,.ajc-panel,.ajc-msg,.ajc-typing i{animation:none}}
