.sc{position:fixed;right:20px;bottom:20px;z-index:40;font-family:inherit}
body:has(.bar) .sc{bottom:96px}
.sc-fab{position:relative;display:inline-flex;align-items:center;gap:8px;height:48px;padding:0 20px;border:0;border-radius:999px;background:var(--a);color:#fff;font:500 16px/1 -apple-system,BlinkMacSystemFont,Inter,sans-serif;font-family:inherit;cursor:pointer;box-shadow:0 8px 24px rgba(0,113,227,.35);transition:transform .2s,background .2s}
.sc-fab:hover{background:var(--a2);transform:translateY(-2px)}
.sc-fab .ic{width:20px;height:20px}
.sc-dot{position:absolute;top:-2px;right:-2px;width:14px;height:14px;border-radius:50%;background:#ff3b30;border:2px solid #fff}
.sc-win{position:absolute;right:0;bottom:60px;width:min(380px,calc(100vw - 24px));height:min(540px,calc(100vh - 140px));display:flex;flex-direction:column;background:#fff;border-radius:26px;box-shadow:0 24px 80px rgba(0,0,0,.25),0 0 0 1px rgba(0,0,0,.06);overflow:hidden;animation:up .35s cubic-bezier(.22,1,.36,1) both}
.sc-hd{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid var(--line);background:rgba(255,255,255,.9)}
.sc-hd strong{display:block;font-size:17px;font-weight:600;letter-spacing:-.015em}
.sc-hd small{display:block;color:var(--mu);font-size:13px}
.sc-x{flex:none;width:32px;height:32px;border:0;border-radius:50%;background:var(--bg2);color:var(--mu);display:grid;place-items:center;cursor:pointer}
.sc-x:hover{background:#ececf0;color:var(--tx)}
.sc-x svg{width:14px;height:14px}
.sc-list{flex:1;overflow:auto;padding:14px;display:flex;flex-direction:column;gap:8px;overscroll-behavior:contain}
.sc-m{max-width:82%;padding:9px 14px;border-radius:20px;font-size:15px;line-height:1.4;letter-spacing:-.01em;white-space:pre-wrap;word-break:break-word}
[data-lang=my] .sc-m{line-height:1.7;letter-spacing:0}
.sc-m.u{align-self:flex-end;background:var(--a);color:#fff;border-bottom-right-radius:6px}
.sc-m.a{align-self:flex-start;background:#f0f0f3;color:var(--tx);border-bottom-left-radius:6px}
.sc-m.p{opacity:.55}
.sc-err{margin:0;padding:6px 16px;color:var(--hot);font-size:13px;font-weight:500}
.sc-form{display:flex;align-items:flex-end;gap:8px;padding:10px;border-top:1px solid var(--line)}
.sc-form textarea{flex:1;min-width:0;resize:none;max-height:110px;padding:10px 16px;border-radius:20px;border:1px solid rgba(0,0,0,.18);background:#fff;color:var(--tx);font:inherit;font-size:16px;line-height:1.35;outline:0;transition:.2s}
.sc-form textarea:focus{border-color:var(--a);box-shadow:0 0 0 3px rgba(0,113,227,.18)}
.sc-send{flex:none;width:40px;height:40px;border:0;border-radius:50%;background:var(--a);color:#fff;display:grid;place-items:center;cursor:pointer;transition:background .2s}
.sc-send:hover{background:var(--a2)}
.sc-send svg{width:18px;height:18px}
@media(max-width:480px){.sc{right:14px;bottom:14px}body:has(.bar) .sc{bottom:92px}.sc-win{position:fixed;inset:12px;width:auto;height:auto}}
@media(min-width:481px){.sc.sc-l .sc-win{right:auto;left:0}.sc.sc-t .sc-win{bottom:auto;top:60px}}
.sc-fab{touch-action:none;-webkit-user-select:none;user-select:none}
.sc-fab{-webkit-touch-callout:none;-webkit-user-drag:none}

/* chat button: small round design */
.sc-fab{width:50px;height:50px;padding:0;gap:0;justify-content:center;background:linear-gradient(135deg,#0a84ff,#5e5ce6);box-shadow:0 8px 20px rgba(70,80,230,.38),0 0 0 3px rgba(255,255,255,.92)}
.sc-fab:hover{background:linear-gradient(135deg,#2b95ff,#7270f0)}
.sc-fab:active{transform:scale(.94)}
.sc-fab>span:not(.ic){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.sc-fab .ic{width:24px;height:24px}
.sc-fab:before{content:'';position:absolute;inset:0;border-radius:50%;pointer-events:none;animation:scp 2.8s ease-out infinite}
.sc-fab[aria-expanded=true]:before{animation:none}
@keyframes scp{0%{box-shadow:0 0 0 0 rgba(94,92,230,.42)}70%,100%{box-shadow:0 0 0 14px rgba(94,92,230,0)}}
.sc-dot{top:0;right:0}
.sc-win{bottom:66px}
@media(max-width:480px){.sc-fab{width:44px;height:44px}.sc-fab .ic{width:22px;height:22px}}
@media(prefers-reduced-motion:reduce){.sc-fab:before{animation:none}}
