[hidden]{display:none!important}
.markdown-body{white-space:normal!important;overflow-wrap:anywhere}.markdown-body p{margin:10px 0}.markdown-body h1,.markdown-body h2,.markdown-body h3{margin:20px 0 10px}.markdown-body ul,.markdown-body ol{padding-left:24px;margin:10px 0}.markdown-body pre{background:#f3f5f9;border-radius:9px;padding:14px;overflow:auto;white-space:pre}.markdown-body code{font-family:Consolas,monospace;background:#f1f3f7;padding:2px 4px;border-radius:4px}.markdown-body blockquote{border-left:3px solid #a9caff;padding:4px 14px;color:#69778c}.markdown-body table{border-collapse:collapse;width:100%;margin:12px 0}.markdown-body td,.markdown-body th{border:1px solid #e5e9ef;padding:8px;text-align:left}.katex-display{overflow:auto;padding:5px}
dialog{margin:auto;max-height:90vh;overflow:auto}
.model-toolbar{display:flex;align-items:center;gap:10px;padding:4px 24px 12px;flex-wrap:wrap}
.model-toolbar select{max-width:220px;background:#f4f7fb;border:1px solid #e4eaf1;border-radius:10px;padding:8px;color:#263449;outline:none}
.connection-status{font-size:12px;color:#8090a0}.connection-status.ready{color:#28855a}
.model-toolbar button{border:0;background:transparent;color:#777;cursor:pointer;font-size:12px;padding:6px}
.welcome-block{text-align:center}.welcome-subtitle{color:#8a8a8a;font-size:13px;margin-top:13px}
.starter-chips{display:flex;gap:8px;justify-content:center;margin-top:24px;flex-wrap:wrap}
.starter-chips button{background:#eef5ff;border:1px solid #deebff;color:#4278b6;border-radius:999px;padding:9px 15px;cursor:pointer}
.starter-chips button:nth-child(2){background:#f5efff;color:#865cc2;border-color:#ece1ff}.starter-chips button:nth-child(3){background:#fff4e9;color:#b78346;border-color:#f8e4ce}
#chat-content.message-list{flex:1;min-height:0;overflow-y:auto;margin:0 auto;width:min(780px,100%);padding:26px 24px;justify-content:flex-start}
.chat-input-box textarea{flex:1;min-width:0;border:0;outline:0;background:transparent;font-size:15px;resize:none;max-height:140px;line-height:1.6;color:#1f1f1f}
.chat-input-box:focus-within{outline:1px solid #d8e7ff}
.file-chips{position:static;transform:none;width:min(720px,90vw);margin:0 auto 8px;pointer-events:auto}
.file-chip{cursor:pointer}.file-chip:hover{background:#deecff}
.message-actions{display:flex;gap:8px;margin-top:7px}.message-actions button{border:0;background:transparent;color:#8a8a8a;font-size:11px;padding:4px;cursor:pointer}.message-actions button:hover{color:#1677ff}
.message.pending{color:#8a98aa;font-size:13px}.message.error{color:#bd5656;font-size:13px}
.retry-btn{display:block;margin-top:8px;padding:7px 12px;background:#fff1f1;color:#ad5050;border:1px solid #f0dada;border-radius:8px;cursor:pointer}
.history-item.active{background:#edf4ff;color:#1677ff}
.command-item.selected{background:#eef5ff}.command-item b{background:#eef5ff;border-radius:999px;padding:3px 8px;font-size:12px;text-align:center}
.toast{position:fixed;top:20px;left:50%;transform:translateX(-50%);background:#253447;color:#fff;padding:11px 18px;border-radius:10px;z-index:99;font-size:13px;max-width:90vw}
.free-provider{margin:16px 20px;padding:14px;background:#edf8f1;border-radius:10px;color:#28734b}.free-provider b{font-size:14px}.free-provider p{font-size:12px;margin:8px 0;line-height:1.6}.free-provider button{border:0;border-radius:6px;background:#32855b;color:white;padding:8px 12px;cursor:pointer}
.file-card:focus{outline:2px solid #1677ff}.storage-content{overflow:hidden}.file-preview{margin:0 20px 20px;padding:12px;background:#f7f8fb;white-space:pre-wrap;max-height:55vh;overflow:auto;font:12px monospace}
@media(max-width:700px){.sidebar.open{position:fixed;inset:0 auto 0 0;z-index:10;background:white;box-shadow:15px 0 40px #0001}.model-toolbar{padding-left:16px}.file-chips{width:100%}.text-action{max-width:80px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}}
