:root{--chat-bg:#080f16;--chat-panel:#0c151e;--chat-line:#344956;--chat-cyan:#00d9ec;--chat-muted:#a7bacb}
.chat-icon{width:23px;height:23px;flex-shrink:0;vertical-align:middle}
.chat-message{max-width:94%;align-self:flex-start;min-width:0}.chat-message.master{align-self:flex-end}.chat-message.system{align-self:stretch;max-width:100%}.chat-meta{display:block;margin:0 4px 6px;font-size:11px;color:#bfccd8}.chat-message.master .chat-meta{text-align:right}.chat-bubble{margin:0;background:linear-gradient(120deg,#24313d,#1d2833);border:1px solid #405363;border-radius:9px;padding:8px 12px;color:#eff5fb;font-size:14px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}.chat-message.master .chat-bubble{background:#00cee4;border-color:#00d9ec;color:#001116}.chat-message.system .chat-bubble{background:#101c26;border-color:#2b414f;color:#aabfce;font-size:12px}.chat-message.system .chat-meta{color:#6e94a5}
.chat-date{display:flex;align-items:center;gap:16px;color:#b7c9d9;font-size:12px;justify-content:center;margin-bottom:3px}.chat-date:before,.chat-date:after{content:'';height:1px;background:#344957;flex:1}.chat-empty{margin:auto;text-align:center;color:#819aaa;display:grid;gap:10px;justify-items:center;padding:25px}.chat-empty .chat-icon{width:35px;height:35px;color:#00d9ec}.chat-empty strong{color:#d9e5ed;font-size:15px}.chat-empty span{font-size:12px;max-width:230px;line-height:1.6}
.chat-file{border:1px solid #536b7c;background:linear-gradient(115deg,#24313d,#14202b);border-radius:9px;padding:8px;display:flex;gap:14px;align-items:center;min-width:260px;max-width:100%}.chat-file img{width:110px;height:72px;object-fit:cover;border-radius:7px}.chat-file>div{flex:1;min-width:0}.chat-file strong{display:block;overflow-wrap:anywhere;font-size:13px}.chat-file small{display:block;color:#b3c3d0;font-size:11px;margin-top:7px}.chat-download{padding:5px;border:1px solid #405363;border-radius:5px;color:#dbeaf2;display:flex;background:#0e1a24}.chat-progress{border:1px solid #446576;border-radius:9px;padding:13px 15px;background:linear-gradient(120deg,#112430,#0d1821)}.chat-progress-heading{display:flex;gap:13px;align-items:center}.chat-progress-heading>.chat-icon,.chat-progress-heading>b{color:var(--chat-cyan)}.chat-progress-heading>div{flex:1}.chat-progress-heading strong{display:block;font-size:14px}.chat-progress-heading small{display:block;color:#b4c8d5;margin-top:5px;font-size:12px}.chat-track{height:12px;background:#263541;border:1px solid #4a6070;border-radius:10px;margin:12px 0 0;overflow:hidden}.chat-track>div{height:100%;background:#00d9ec;border-radius:10px;transition:width .25s}.chat-stages{font-size:11px;color:#c9dce9;margin-top:11px;word-spacing:4px}.chat-message:has(.chat-progress){width:90%;max-width:100%;align-self:flex-end}
.chat-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;font:inherit;color:#e9f3fa;background:linear-gradient(#1b2833,#0c1720);border:1px solid #536d80;border-radius:7px;padding:9px 12px;cursor:pointer}.chat-button:hover{border-color:#00d9ec;background:#142c39}.chat-button:focus-visible{outline:2px solid #00d9ec;outline-offset:3px}.chat-button:disabled{opacity:.45;cursor:not-allowed}.chat-button.primary{background:#00d9ec;color:#00131a;border-color:#00d9ec}.chat-button.danger{color:#ff7c83;border-color:#a7525a;background:linear-gradient(#2a1d24,#17151d)}.chat-button.warn{color:#ffdb60;border-color:#b68b28;background:linear-gradient(#292416,#151712)}.chat-dot{display:inline-block;border-radius:50%;width:10px;height:10px;background:#617281;flex-shrink:0}.chat-dot.online{background:#00ec4f;box-shadow:0 0 8px #00ec4f33}.chat-brand{color:#00e2ef;font-size:34px;font-weight:900;font-style:italic;letter-spacing:-8px;margin-right:12px;line-height:1}.chat-radar{width:72px;height:72px;flex-shrink:0;border:4px solid #063b49;border-radius:50%;position:relative;box-shadow:inset 0 0 0 8px #07131b}.chat-radar:before{content:'';position:absolute;inset:8px;border:2px solid #00d9ec;border-left-color:#084657;border-radius:50%}.chat-radar:after{content:'';position:absolute;inset:15px;border:1px solid #0b6979;border-radius:50%}
@media(max-width:600px){.chat-file{min-width:0}.chat-file img{width:70px;height:58px}.chat-message{max-width:98%}.chat-bubble{font-size:13px}}
