#sch-btn{position:fixed;left:20px;bottom:20px;width:60px;height:60px;border-radius:50%;border:0;cursor:pointer;color:#fff;font-size:27px;box-shadow:0 4px 14px rgba(0,0,0,.25);z-index:99998;transition:transform .15s}
#sch-btn:hover{transform:scale(1.07)}
#sch-box{position:fixed;left:20px;bottom:92px;width:360px;max-width:calc(100vw - 40px);height:520px;max-height:calc(100vh - 120px);background:#fff;border-radius:16px;box-shadow:0 8px 30px rgba(0,0,0,.25);display:none;flex-direction:column;overflow:hidden;z-index:99999;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif}
#sch-box.open{display:flex}
#sch-head{color:#fff;padding:12px 14px;display:flex;align-items:center;gap:10px}
#sch-avatar{width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.25);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:17px;flex-shrink:0}
#sch-who{flex:1;display:flex;flex-direction:column;line-height:1.2;min-width:0}
#sch-who strong{font-size:15px}
#sch-who small{font-size:11px;opacity:.9}
#sch-human{color:#fff;text-decoration:none;font-size:18px;padding:4px 6px;border-radius:8px;background:rgba(255,255,255,.2)}
#sch-close{background:none;border:0;color:#fff;font-size:24px;cursor:pointer;line-height:1}
#sch-msgs{flex:1;overflow-y:auto;padding:12px;background:#f5f6f8;display:flex;flex-direction:column;gap:8px}
.sch-m{max-width:85%;padding:9px 12px;border-radius:12px;font-size:14px;line-height:1.4;white-space:pre-wrap;word-wrap:break-word}
.sch-m.bot{background:#fff;color:#222;align-self:flex-start;border:1px solid #e3e5e8}
.sch-m.bot a{color:#0b6bcb;text-decoration:underline;word-break:break-all}
.sch-m.me{color:#fff;align-self:flex-end}
#sch-opts{display:flex;flex-direction:column;gap:6px;align-self:stretch}
#sch-opts button{display:block;width:100%;box-sizing:border-box;margin:0;background:#fff;color:var(--sch-color,#0ea5a4);border:1.5px solid var(--sch-color,#0ea5a4);border-radius:12px;padding:10px 12px;font-size:13px;font-weight:600;text-align:left;cursor:pointer}
#sch-opts button:hover{background:#f0fbfb}
#sch-form{display:flex;border-top:1px solid #e3e5e8;background:#fff}
#sch-in{flex:1;border:0;padding:12px;font-size:14px;outline:none}
#sch-send{border:0;padding:0 16px;color:#fff;cursor:pointer;font-size:14px}
#sch-send:disabled{opacity:.5}
@media(max-width:480px){#sch-box{left:10px;bottom:84px;width:calc(100vw - 20px);max-width:none}#sch-btn{left:12px;bottom:14px}}
