.dsc-panel,.dsc-panel *,.dsc-trigger,.dsc-trigger *{margin:0}
.dsc-trigger{--dsc-accent:#276eaa;display:inline-flex;align-items:center;justify-content:center;gap:3px;box-sizing:border-box;width:77px;height:22px;max-width:77px;padding:0 3px;border:1px solid #9bc4e2;border-radius:3px;background:linear-gradient(#fff,#e9f4fd);color:#28659a!important;font:normal 11px/20px Arial,"Microsoft YaHei",sans-serif;white-space:nowrap;vertical-align:middle;cursor:pointer;box-shadow:0 1px 2px rgba(30,80,130,.1)}
.dsc-trigger:hover{border-color:#6aabdb;background:linear-gradient(#fff,#dceefe)}
.dsc-trigger:focus-visible,.dsc-close:focus-visible,.dsc-send:focus-visible,.dsc-attach:focus-within{outline:3px solid #ffbf47;outline-offset:2px}
.dsc-trigger__icon{display:inline-flex;align-items:center;justify-content:center;flex:none;width:17px;height:18px;line-height:0}
.dsc-trigger__icon svg{width:17px;height:17px}
.dsc-trigger__text{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dsc-trigger--compact{width:25px;height:25px;max-width:25px;padding:0}
.dsc-trigger--compact .dsc-trigger__text{display:none}
.dsc-trigger--cart{margin-left:6px}
.dsc-trigger.dsc-theme-mint{border-color:#92cdbf;background:linear-gradient(#fff,#e7f8f1);color:#138574!important}
.dsc-trigger.dsc-theme-night{border-color:#a9b5d5;background:linear-gradient(#fff,#edf0fb);color:#465789!important}
.dsc-panel{--dsc-accent:#1686e8;--dsc-accent-2:#4db6ff;position:fixed;right:22px;bottom:22px;z-index:99999;display:none;flex-direction:column;box-sizing:border-box;width:370px;max-width:calc(100vw - 24px);height:540px;max-height:calc(100vh - 24px);overflow:hidden;border:1px solid rgba(27,82,132,.11);border-radius:18px;background:#fff;box-shadow:0 18px 55px rgba(19,51,93,.24);font:14px/1.5 Arial,"Microsoft YaHei",sans-serif;color:#243246;text-align:left}
.dsc-panel--open{display:flex;animation:dsc-in .18s ease-out}
.dsc-panel.dsc-theme-mint{--dsc-accent:#0caa9a;--dsc-accent-2:#44c6b6}
.dsc-panel.dsc-theme-night{--dsc-accent:#354b88;--dsc-accent-2:#7065c9}
@keyframes dsc-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
.dsc-header{display:flex;align-items:center;gap:11px;min-height:69px;box-sizing:border-box;padding:12px 15px;background:linear-gradient(125deg,var(--dsc-accent),var(--dsc-accent-2));color:#fff}
.dsc-avatar{display:flex;align-items:center;justify-content:center;flex:none;width:39px;height:39px;border-radius:13px;background:rgba(255,255,255,.22);font-size:19px;font-weight:700}
.dsc-heading{min-width:0;flex:1}
.dsc-title{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px;font-weight:700}
.dsc-state{display:block;margin-top:1px;opacity:.92;font-size:11px}
.dsc-close{flex:none;width:31px;height:31px;padding:0;border:0;border-radius:9px;background:rgba(255,255,255,.16);color:#fff;font-size:22px;line-height:1;cursor:pointer}
.dsc-close:hover{background:rgba(255,255,255,.3)}
.dsc-messages{flex:1;min-height:0;overflow-y:auto;padding:18px 14px;background:linear-gradient(#f8fbfe,#f2f7fc)}
.dsc-msg{display:flex;margin-bottom:13px}
.dsc-msg--self{justify-content:flex-end}
.dsc-bubble{max-width:78%;box-sizing:border-box;padding:9px 12px;border:1px solid #e4eaf2;border-radius:14px 14px 14px 3px;background:#fff;box-shadow:0 2px 6px rgba(38,70,103,.04);color:#2e3b49;overflow-wrap:anywhere;white-space:pre-wrap}
.dsc-msg--self .dsc-bubble{border:0;border-radius:14px 14px 3px 14px;background:var(--dsc-accent);color:#fff}
.dsc-bubble img{display:block;max-width:200px;max-height:190px;border-radius:8px;object-fit:contain}
.dsc-composer{display:flex;align-items:center;gap:8px;box-sizing:border-box;padding:11px;background:#fff;border-top:1px solid #e8edf3}
.dsc-attach{position:relative;display:flex;align-items:center;justify-content:center;flex:none;width:34px;height:34px;border:1px solid #d8e1eb;border-radius:10px;background:#f7fafd;color:#59738e;cursor:pointer;font-size:19px;line-height:1}
.dsc-attach:hover{background:#edf5fc;color:var(--dsc-accent)}
.dsc-attach input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.dsc-text{flex:1;min-width:0;box-sizing:border-box;height:36px;padding:0 10px;border:1px solid #dce5ee;border-radius:9px;background:#fff;color:#263443;font:13px Arial,"Microsoft YaHei",sans-serif;outline:none}
.dsc-text:focus{border-color:var(--dsc-accent);box-shadow:0 0 0 2px rgba(29,138,222,.12)}
.dsc-send{flex:none;height:36px;padding:0 13px;border:0;border-radius:9px;background:var(--dsc-accent);color:#fff;font:600 13px Arial,"Microsoft YaHei",sans-serif;cursor:pointer}
.dsc-send:hover{filter:brightness(.94)}
.dsc-toast{min-height:18px;padding:0 13px 8px;background:#fff;color:#b34343;font-size:11px}
@media(max-width:520px){.dsc-panel{right:10px;bottom:10px;width:calc(100vw - 20px);height:min(560px,calc(100vh - 20px));border-radius:16px}.dsc-trigger--cart{margin-left:4px}}
