#aca-root{--aca-color:#c8102e;position:fixed;right:20px;bottom:20px;z-index:2147483000;font:15px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;color:#1d1d1f}
#aca-root *{box-sizing:border-box}
#aca-root.aca-raise{bottom:96px}
#aca-root.aca-raise .aca-panel{max-height:calc(100vh - 116px)}
#aca-root .aca-launcher{width:60px;height:60px;border-radius:50%;border:0;background:var(--aca-color);color:#fff;cursor:pointer;box-shadow:0 6px 20px rgba(0,0,0,.25);display:flex;align-items:center;justify-content:center;transition:transform .15s}
#aca-root .aca-launcher:hover{transform:scale(1.06)}
#aca-root .aca-launcher.aca-hide{display:none}
#aca-root .aca-panel{width:370px;height:560px;max-height:calc(100vh - 40px);background:#fff;border-radius:16px;box-shadow:0 12px 40px rgba(0,0,0,.25);display:flex;flex-direction:column;overflow:hidden}
#aca-root .aca-panel[hidden]{display:none}
#aca-root .aca-head{background:var(--aca-color);color:#fff;padding:14px 16px;display:flex;align-items:center;gap:8px}
#aca-root .aca-head strong{flex:1;font-size:16px}
#aca-root .aca-dot{width:9px;height:9px;border-radius:50%;background:#4ade80}
#aca-root .aca-test{font-size:11px;font-style:normal;background:rgba(255,255,255,.25);padding:2px 7px;border-radius:10px}
#aca-root .aca-close{background:none;border:0;color:#fff;font-size:26px;line-height:1;cursor:pointer;padding:0 4px}
#aca-root .aca-body{flex:1;overflow-y:auto;padding:16px;background:#f6f6f7;display:flex;flex-direction:column;gap:10px}
#aca-root .aca-msg{max-width:85%;padding:10px 13px;border-radius:14px;word-wrap:break-word;white-space:normal}
#aca-root .aca-assistant{background:#fff;align-self:flex-start;border-bottom-left-radius:4px;box-shadow:0 1px 2px rgba(0,0,0,.06)}
#aca-root .aca-user{background:var(--aca-color);color:#fff;align-self:flex-end;border-bottom-right-radius:4px}
#aca-root .aca-msg a{color:inherit;text-decoration:underline}
#aca-root .aca-typing{display:flex;gap:4px;padding:14px}
#aca-root .aca-typing span{width:7px;height:7px;border-radius:50%;background:#9a9aa0;animation:aca-b 1s infinite}
#aca-root .aca-typing span:nth-child(2){animation-delay:.15s}
#aca-root .aca-typing span:nth-child(3){animation-delay:.3s}
@keyframes aca-b{0%,60%,100%{opacity:.3;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}
#aca-root .aca-quick{display:flex;flex-wrap:wrap;gap:6px;padding:0 12px 8px;background:#f6f6f7}
#aca-root .aca-quick:empty{display:none}
#aca-root .aca-quick button{border:1px solid var(--aca-color);color:var(--aca-color);background:#fff;border-radius:16px;padding:6px 11px;font-size:13px;cursor:pointer}
#aca-root .aca-quick button:hover{background:var(--aca-color);color:#fff}
#aca-root .aca-form{display:flex;align-items:flex-end;gap:8px;padding:10px 12px;border-top:1px solid #e5e5ea;background:#fff}
#aca-root .aca-form textarea{flex:1;resize:none;border:1px solid #d1d1d6;border-radius:12px;padding:9px 12px;font:inherit;max-height:110px;outline:none;background:#fff;color:#1d1d1f}
#aca-root .aca-form textarea:focus{border-color:var(--aca-color)}
#aca-root .aca-form button{width:40px;height:40px;border-radius:50%;border:0;background:var(--aca-color);color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0}
#aca-root .aca-foot{font-size:11px;color:#8e8e93;padding:0 12px 8px;background:#fff;text-align:center}
#aca-root .aca-foot a{color:#8e8e93}
@media (max-width:480px){
  #aca-root{right:12px;bottom:12px}
  #aca-root.aca-raise{bottom:90px}
  #aca-root .aca-panel{position:fixed;inset:0;width:100%;height:100%;max-height:none;border-radius:0}
  #aca-root .aca-form textarea{font-size:16px}
}
