.dse-chat{--dse-ink:#17233b;--dse-muted:#52617a;--dse-blue:#315fea;--dse-line:#e3e9f2;--dse-soft:#f5f8ff;box-sizing:border-box;isolation:isolate;max-width:1060px;width:100%;margin:28px auto 38px;border:1px solid var(--dse-line);border-radius:22px;background:#fff;color:var(--dse-ink);box-shadow:0 12px 44px #203c7220;font-family:inherit;font-size:15px;line-height:1.6;overflow:hidden;text-align:left;direction:ltr}
.dse-chat *,.dse-chat *::before,.dse-chat *::after{box-sizing:border-box}
.dse-chat [hidden]{display:none!important}
.dse-chat button,.dse-chat textarea{font:inherit;letter-spacing:normal;text-transform:none;box-shadow:none}
.dse-chat button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;margin:0;cursor:pointer;transition:background .16s,color .16s,border-color .16s;white-space:normal;transform:none}
.dse-chat button:focus-visible,.dse-chat a:focus-visible{outline:3px solid #8bafff;outline-offset:3px}
.dse-chat button:disabled{cursor:not-allowed;opacity:.5}
.dse-chat svg{display:block;width:21px;height:21px;flex:0 0 auto}
.dse-chat .dse-header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:21px 25px 18px;border-bottom:1px solid var(--dse-line);background:#fff}
.dse-chat .dse-brand{display:flex;align-items:center;gap:12px;min-width:0}
.dse-chat .dse-logo{width:46px;height:46px;display:grid;place-items:center;border:1px solid #dce6ff;border-radius:14px;background:#eef3ff;color:var(--dse-blue)}
.dse-chat .dse-logo svg{width:31px;height:31px}
.dse-chat .dse-brand strong{display:block;font-size:19px;line-height:1.3;font-weight:750;letter-spacing:-.4px;color:var(--dse-ink)}
.dse-chat .dse-brand strong span{font-weight:450;color:var(--dse-muted)}
.dse-chat .dse-brand small{display:block;margin-top:3px;font-size:12px;color:var(--dse-muted);line-height:1.4}
.dse-chat .dse-new{padding:8px 13px;border:1px solid var(--dse-line);border-radius:10px;color:#36435c;background:white;font-size:12px;font-weight:600}
.dse-chat .dse-new:hover{background:var(--dse-soft);border-color:#c8d5ed}
.dse-chat .dse-quota-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 25px;background:#f8faff;border-bottom:1px solid #edf1f8;min-height:42px}
.dse-chat .dse-quota-text{font-size:12px;font-weight:550;color:#435675}
.dse-chat .dse-quota-dots{display:flex;gap:5px}
.dse-chat .dse-quota-dots i{width:8px;height:8px;display:block;border-radius:50%;background:#d6dfea}
.dse-chat .dse-quota-dots .dse-dot-active{background:var(--dse-blue)}
.dse-chat .dse-messages{height:440px;max-height:58vh;min-height:320px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#ccd6e8 transparent;padding:27px 28px;background:linear-gradient(180deg,#fbfcff 0,#fff 50%)}
.dse-chat .dse-welcome{max-width:690px;margin:2px auto 6px;text-align:center}
.dse-chat .dse-welcome-icon{display:grid;place-items:center;width:49px;height:49px;margin:0 auto 13px;border-radius:16px;color:var(--dse-blue);background:#eef3ff;border:1px solid #e0e8fc}
.dse-chat .dse-welcome-icon svg{width:25px;height:25px}
.dse-chat .dse-welcome h3{margin:0 0 9px;font-family:inherit;font-size:27px;font-weight:700;letter-spacing:-.7px;line-height:1.25;color:var(--dse-ink)}
.dse-chat .dse-welcome>p{margin:0;color:var(--dse-muted);font-size:14px;line-height:1.65}
.dse-chat .dse-suggestions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:25px}
.dse-chat .dse-suggestions button{justify-content:flex-start;text-align:left;padding:14px 12px;gap:10px;min-height:72px;border:1px solid var(--dse-line);border-radius:12px;background:#fff;color:var(--dse-ink);font-size:13px;font-weight:600;line-height:1.4}
.dse-chat .dse-suggestions button>svg:first-child{color:#5972a1;width:19px;height:19px}
.dse-chat .dse-suggestions button>svg:last-child{margin-left:auto;width:15px;height:15px;color:#7184a4}
.dse-chat .dse-suggestions button small{display:block;font-size:11px;font-weight:400;color:var(--dse-muted);margin-top:3px}
.dse-chat .dse-suggestions button:hover{background:#f6f9ff;border-color:#acc1ef}
.dse-chat .dse-message{margin:0 0 23px;max-width:92%;font-size:14px;line-height:1.75}
.dse-chat .dse-message-author{display:block;font-size:11px;font-weight:700;color:#63738c;margin-bottom:6px}
.dse-chat .dse-user{margin-left:auto;max-width:84%}
.dse-chat .dse-user .dse-message-author{text-align:right}
.dse-chat .dse-user .dse-message-content{padding:12px 17px;background:#edf3ff;border:1px solid #e1eafb;border-radius:15px 15px 4px 15px;white-space:pre-wrap;overflow-wrap:anywhere}
.dse-chat .dse-assistant .dse-message-author{color:var(--dse-blue)}
.dse-chat .dse-assistant .dse-message-content{padding:1px 0;color:#24334d;overflow-wrap:anywhere}
.dse-chat .dse-message-content p{margin:0 0 11px;font:inherit;color:inherit}
.dse-chat .dse-message-content h4{margin:16px 0 8px;font-family:inherit;font-size:16px;font-weight:700;line-height:1.5;letter-spacing:0;color:var(--dse-ink)}
.dse-chat .dse-message-content h4:first-child{margin-top:0}
.dse-chat .dse-message-content ul,.dse-chat .dse-message-content ol{padding-left:23px;margin:8px 0 14px}
.dse-chat .dse-message-content li{margin:4px 0}
.dse-chat .dse-message-content a{color:#234bc6;text-decoration:underline;text-underline-offset:3px}
.dse-chat .dse-message-content blockquote{border:0;border-left:3px solid #bacaf1;padding:7px 14px;margin:12px 0;background:#f7f9fe;font-size:inherit;font-style:normal}
.dse-chat .dse-message-content code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.9em;background:#edf1f8;color:#213b6c;padding:2px 5px;border-radius:4px}
.dse-chat .dse-code{max-width:100%;border:1px solid #dfe6f2;border-radius:10px;overflow:hidden;margin:13px 0}
.dse-chat .dse-code-bar{padding:7px 12px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#edf2fa;color:#4d5e78;font-size:11px}
.dse-chat .dse-code-bar button,.dse-chat .dse-message-actions button{min-height:30px;padding:3px 6px;border:0;border-radius:5px;background:transparent;font-size:11px;color:#435e8f}
.dse-chat .dse-code-bar button:hover,.dse-chat .dse-message-actions button:hover{background:#e2eafb;color:#173d98}
.dse-chat .dse-code pre{margin:0;max-height:370px;padding:15px;background:#f7f9fe;overflow:auto;white-space:pre;text-align:left;direction:ltr;line-height:1.65;border:0}
.dse-chat .dse-code pre code{background:transparent;color:#233553;padding:0;font-size:12px;white-space:pre}
.dse-chat .dse-table{overflow-x:auto;margin:12px 0;border:1px solid var(--dse-line);border-radius:9px}
.dse-chat .dse-table table{margin:0;border:0;border-collapse:collapse;min-width:100%;width:auto;font-size:12px}
.dse-chat .dse-table th,.dse-chat .dse-table td{padding:9px 12px;border:0;border-bottom:1px solid var(--dse-line);text-align:left;min-width:100px}
.dse-chat .dse-table th{background:#f2f5fb;font-weight:650}
.dse-chat .dse-message-actions{display:flex;gap:10px;margin-top:3px}
.dse-chat .dse-truncated,.dse-chat .dse-message-failed>small{font-size:12px;color:#805a10;background:#fff8e8;border-radius:7px;padding:8px 11px;margin:9px 0 0;display:block}
.dse-chat .dse-message-failed{opacity:.8}
.dse-chat .dse-pending{display:flex;align-items:center;gap:5px;margin:8px 0 21px;color:#5d6f8d;min-height:32px}
.dse-chat .dse-typing-dot{width:5px;height:5px;background:#6485ce;border-radius:50%;animation:dse-pulse 1.25s infinite}
.dse-chat .dse-typing-dot:nth-child(2){animation-delay:.16s}.dse-chat .dse-typing-dot:nth-child(3){animation-delay:.32s}
.dse-chat .dse-pending-label{font-size:12px;margin-left:8px}
@keyframes dse-pulse{0%,75%,100%{opacity:.35;transform:translateY(0)}35%{opacity:1;transform:translateY(-3px)}}
.dse-chat .dse-alert{margin:0 22px 12px;background:#fff6ef;border:1px solid #f1d8c6;color:#884b25;padding:11px 14px;border-radius:9px;font-size:12px;line-height:1.65}
.dse-chat .dse-limit{margin:0 22px 14px;padding:15px 18px;background:#f5f7fd;border:1px solid #dce4f4;border-radius:12px;text-align:center}
.dse-chat .dse-limit strong{font-size:14px}.dse-chat .dse-limit p{font-size:13px;margin:5px 0}.dse-chat .dse-limit small{font-size:11px;color:var(--dse-muted)}
.dse-chat .dse-countdown{font-variant-numeric:tabular-nums;font-weight:700;color:#234cb5}
.dse-chat .dse-form{margin:0;padding:0 22px 0;background:#fff}
.dse-chat .dse-input-wrap{display:flex;align-items:flex-end;gap:12px;border:1px solid #cbd7eb;border-radius:14px;background:#fff;padding:12px 12px 12px 16px;transition:border .16s,box-shadow .16s}
.dse-chat .dse-input-wrap:focus-within{border-color:#7196f4;box-shadow:0 0 0 3px #eaf0ff}
.dse-chat textarea{display:block;width:100%;height:49px;min-height:49px;max-height:170px;resize:none;border:0!important;outline:0!important;border-radius:0;background:transparent!important;box-shadow:none!important;padding:3px 0;margin:0;color:#17233b;line-height:1.6;font-size:14px}
.dse-chat textarea::placeholder{color:#72819a;opacity:1}.dse-chat textarea:disabled{color:#7c879b;opacity:.8}
.dse-chat .dse-send{flex:0 0 42px;width:42px;min-height:42px;height:42px;border:0;border-radius:11px;background:var(--dse-blue);color:white;padding:0}
.dse-chat .dse-send:hover{background:#214dd4}.dse-chat .dse-send:disabled{background:#dce4f2;color:#6a7e9f;opacity:1}
.dse-chat .dse-composer-meta{display:flex;justify-content:space-between;gap:10px;color:#697992;font-size:10px;padding:7px 3px 0;line-height:1.4}
.dse-chat .dse-char-count{margin-left:auto;font-variant-numeric:tabular-nums;white-space:nowrap}
.dse-chat .dse-footer{padding:15px 24px 19px;text-align:center;font-size:11px;line-height:1.6;color:#52617a}
.dse-chat .dse-footer>span{display:block;font-weight:550}.dse-chat .dse-footer small{display:block;font-size:10px;max-width:690px;margin:5px auto 0;color:#69758a}
.dse-chat .dse-sr{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:640px){.dse-chat{margin:20px 0 28px;border-radius:16px;font-size:14px}.dse-chat .dse-header{padding:17px 16px 15px}.dse-chat .dse-logo{width:40px;height:40px;border-radius:12px}.dse-chat .dse-brand{gap:10px}.dse-chat .dse-brand strong{font-size:17px}.dse-chat .dse-brand small{font-size:11px}.dse-chat .dse-new{width:42px;min-height:42px;padding:7px}.dse-chat .dse-new span{display:none}.dse-chat .dse-quota-bar{padding:9px 17px}.dse-chat .dse-messages{padding:22px 17px;height:410px;max-height:60vh;min-height:335px}.dse-chat .dse-welcome{margin:7px auto}.dse-chat .dse-welcome h3{font-size:23px}.dse-chat .dse-welcome>p{font-size:13px}.dse-chat .dse-suggestions{gap:8px;margin-top:20px}.dse-chat .dse-suggestions button{padding:12px 9px;min-height:74px;font-size:12px;gap:7px}.dse-chat .dse-suggestions button small{font-size:10px}.dse-chat .dse-suggestions button>svg:last-child{display:none}.dse-chat .dse-suggestions button>svg:first-child{width:17px;height:17px}.dse-chat .dse-message{max-width:100%;font-size:14px}.dse-chat .dse-user{max-width:92%}.dse-chat .dse-form{padding:0 13px}.dse-chat .dse-input-wrap{padding:10px 9px 10px 12px;gap:9px;border-radius:12px}.dse-chat textarea{font-size:16px;min-height:49px}.dse-chat .dse-alert,.dse-chat .dse-limit{margin-left:13px;margin-right:13px}.dse-chat .dse-footer{padding:13px 15px 16px}.dse-chat .dse-keyboard-hint{display:none}.dse-chat .dse-pending-label{font-size:11px}}
@media(prefers-reduced-motion:reduce){.dse-chat *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
