#chat{max-width:960px;margin:auto;padding:0;overflow:hidden}.chat-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px 24px;border-bottom:1px solid #edf0f4}.chat-toolbar h2{margin:0;font-size:19px}.chat-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.chat-model-wrap{display:flex;align-items:center;gap:8px;color:#697487;font-size:12px}.chat-model-wrap select{max-width:250px;min-width:0;padding:9px 11px;border:1px solid #dce2e9;border-radius:9px;background:#fff;color:#293446;font:inherit;font-weight:700}.chat-credit{font-size:12px;color:#687589;font-weight:650;white-space:nowrap}.chat-credit strong{color:#6751bd}.chat-messages{height:clamp(360px,54vh,680px);overflow-y:auto;padding:22px 24px;display:flex;flex-direction:column;gap:20px;scroll-behavior:auto;overscroll-behavior:contain}.chat-welcome{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;flex:1;color:#728092;min-height:260px}.chat-welcome>span{display:grid;place-items:center;width:58px;height:58px;border-radius:19px;background:#f0ecff;color:#7054d0;font-size:30px;margin-bottom:20px}.chat-welcome h2{font-size:24px;margin:0 0 10px;color:#293342}.chat-welcome p{font-size:14px;line-height:1.6;margin:0}.chat-message{flex:none;min-width:0;max-width:100%;padding:17px 19px;border-radius:15px}.chat-user{background:#f3f0ff;border:1px solid #e9e3fc;margin-left:12%;align-self:stretch}.chat-assistant{background:#fafbfd;border:1px solid #edf0f4;margin-right:4%}.chat-message-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:9px;font-size:12px;color:#657185}.chat-message-head strong{font-weight:800}.chat-message-head .btn{padding:5px 8px;font-size:10px}.chat-message-body{font-size:14px;line-height:1.65;color:#253043;overflow-wrap:anywhere}.chat-prose{white-space:pre-wrap}.chat-photo{display:block;max-width:100%;max-height:320px;object-fit:contain;border-radius:10px;margin-top:12px}.chat-file-label{display:inline-block;padding:6px 10px;margin:10px 6px 0 0;background:#fff;border:1px solid #e1e5ed;border-radius:8px;font-size:12px;max-width:100%;overflow-wrap:anywhere}.chat-code{margin:12px 0;border:1px solid #dce2eb;border-radius:10px;overflow:hidden;background:#fff}.chat-code-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 12px;background:#f0f3f8;color:#697589;font-size:11px}.chat-code-bar .btn{font-size:10px;padding:4px 7px}.chat-code pre{padding:13px;margin:0;max-width:100%;overflow-x:auto;white-space:pre;font:12px/1.65 ui-monospace,SFMono-Regular,Consolas,monospace}.chat-compose{border-top:1px solid #e7ebf1;padding:16px 24px 18px;background:#fff}.chat-compose textarea{width:100%;display:block;resize:none;min-height:80px;max-height:180px;border:1px solid #dce2eb;background:#fafbfd;border-radius:12px;padding:12px 14px;color:#273243;font-size:14px;line-height:1.5;font-family:inherit;outline:none}.chat-compose textarea:focus{border-color:#a895df;box-shadow:0 0 0 3px #f1edff}.chat-compose textarea:disabled{opacity:.7}.chat-compose .btn:disabled,.chat-toolbar .btn:disabled{opacity:.5;cursor:default}.chat-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px}.chat-actions>div{display:flex;gap:8px;align-items:center}.chat-actions .primary{background:#6c52c7;border-color:#6c52c7;padding:10px 19px}.chat-status{font-size:12px;color:#75658e}.chat-note{margin:10px 0 0;color:#8791a0;font-size:11px;line-height:1.5}.chat-history-note{padding:0 24px 17px;margin:0;color:#8791a0;font-size:11px;line-height:1.6}.chat-attachments{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}.chat-attachments:empty{display:none}.chat-attachment{display:flex;align-items:center;gap:8px;border:1px solid #dfd9f2;border-radius:9px;padding:6px 8px;background:#faf8ff;min-width:0;max-width:100%;font-size:12px;color:#57486e}.chat-attachment img{width:34px;height:34px;border-radius:5px;object-fit:cover;flex:none}.chat-attachment span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:220px}.chat-attachment .btn{border:0;background:transparent;padding:2px 5px;font-size:18px}.chat-drag{outline:3px solid #9b82df;outline-offset:2px}#chatError{margin-top:12px;overflow-wrap:anywhere}#chatStop{color:#b13c54;border-color:#ead4db}@media(max-width:760px){.chat-toolbar{padding:16px;flex-wrap:wrap;gap:12px}.chat-toolbar h2{font-size:17px}.chat-controls{width:100%;justify-content:space-between;gap:8px}.chat-model-wrap{flex:1;min-width:0}.chat-model-wrap select{max-width:100%;width:100%;font-size:12px}.chat-model-wrap>span{display:none}.chat-credit{font-size:11px}.chat-messages{padding:16px 12px;height:50dvh;min-height:300px;gap:15px}.chat-message{padding:13px 12px;border-radius:12px}.chat-user{margin-left:5%}.chat-assistant{margin-right:0}.chat-message-body{font-size:13px}.chat-compose{padding:13px 12px}.chat-compose textarea{font-size:16px;min-height:90px}.chat-actions{align-items:flex-start;flex-wrap:wrap}.chat-actions>div{margin-left:auto}.chat-history-note{padding:0 12px 14px;font-size:10px}.chat-welcome h2{font-size:21px}.chat-welcome p{font-size:12px}.chat-attachment span{max-width:180px}.chat-status{max-width:180px}.chat-code pre{font-size:11px}}

#dashboard.chat-focused .hero{display:none}@media(max-width:760px){#dashboard.chat-focused .chat-messages{height:calc(100dvh - 440px);min-height:220px}}
