.brain-main{max-width:none}.brain-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:18px}.brain-stats article{display:flex;align-items:center;gap:12px;padding:16px 18px;border:1px solid var(--line);border-radius:12px;background:#fff}.brain-stats article>span{width:38px;height:38px;display:grid;place-items:center;border-radius:10px;background:#edf4ff;color:#3075dc;font-size:18px}.brain-stats small,.brain-stats strong{display:block}.brain-stats small{color:var(--muted);font-size:11px}.brain-stats strong{font-size:16px}.brain-layout{display:grid;grid-template-columns:minmax(360px,.82fr) minmax(520px,1.18fr);gap:18px;min-height:650px}.knowledge-panel,.chat-panel{border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 3px 14px #2036590a}.knowledge-panel{padding:22px}.chat-panel{display:flex;flex-direction:column;min-height:650px;padding:22px}.panel-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.panel-heading h2{margin:0;font-size:18px}.panel-heading p{margin:0}.panel-heading>span{color:#8490a5;font-size:11px}.upload-box{padding:16px;border:1px dashed #8db6ef;border-radius:12px;background:#f6f9ff}.upload-box label{display:flex;flex-direction:column;align-items:center;margin:0 0 12px;text-align:center;cursor:pointer}.upload-box label>span{width:38px;height:38px;display:grid;place-items:center;border-radius:10px;background:#e5efff;color:#2a70d4;font-size:24px}.upload-box label strong{margin-top:7px}.upload-box label small{color:#8490a5;font-weight:400}.upload-box input[type=file]{position:absolute;width:1px;height:1px;opacity:0}.upload-box button:disabled,.ask-form button:disabled{opacity:.5;cursor:not-allowed}.document-list{margin-top:16px;max-height:440px;overflow:auto}.document-item{display:grid;grid-template-columns:42px minmax(0,1fr) auto auto;gap:10px;align-items:center;padding:12px 4px;border-bottom:1px solid #edf0f4}.file-icon{width:40px;height:40px;display:grid;place-items:center;border-radius:9px;background:#edf4ff;color:#3875ca;font-size:8px;font-weight:800}.document-item b,.document-item small,.document-item em{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.document-item small{color:#8490a5;font-size:10px}.document-item em{max-width:260px;color:#b13b45;font-size:10px;font-style:normal}.doc-status{padding:4px 7px;border-radius:20px;font-size:9px;font-weight:700}.doc-status.ready{background:#e8f6ef;color:#17714f}.doc-status.failed{background:#fff0f1;color:#b3323d}.doc-status.processing{background:#fff7e5;color:#946714}.document-item form{margin:0}.delete-doc{width:26px;padding:3px;background:#f4f6f9;color:#8490a5;box-shadow:none}.delete-doc:hover{background:#fff0f1;color:#b3323d}.brain-empty{text-align:center;padding:38px 12px;color:#8c97aa}.brain-empty>span{display:block;font-size:26px}.brain-empty b{display:block;color:#526078}.brain-empty p{margin:3px 0;font-size:11px}.clear-chat{width:auto;padding:7px 10px;background:#f2f5f9;color:#68758a;box-shadow:none;font-size:10px}.chat-messages{flex:1;max-height:525px;overflow:auto;padding:6px 4px 20px}.welcome-message{padding:55px 25px;text-align:center}.welcome-message>span{width:50px;height:50px;display:grid;place-items:center;margin:auto;border-radius:14px;background:linear-gradient(145deg,#397bf2,#7258db);color:#fff;font-size:22px}.welcome-message h3{margin:13px 0 4px}.welcome-message p{margin:0 auto 18px;max-width:430px;color:#7e8ba0}.welcome-message div{display:flex;justify-content:center;flex-wrap:wrap;gap:7px}.welcome-message button{width:auto;padding:8px 10px;border:1px solid #dbe5f4;background:#f7faff;color:#4371ae;box-shadow:none;font-size:10px}.chat-message{display:flex;gap:10px;margin:15px 0}.chat-message>span{flex:none;width:31px;height:31px;display:grid;place-items:center;border-radius:9px;background:#eaf2ff;color:#286fd4;font-weight:800}.chat-message>div{max-width:82%;padding:12px 14px;border-radius:3px 13px 13px;background:#f2f6fb}.chat-message.user{flex-direction:row-reverse}.chat-message.user>span{background:#334767;color:#fff}.chat-message.user>div{border-radius:13px 3px 13px 13px;background:#1877f2;color:#fff}.chat-message p{margin:0;white-space:normal;overflow-wrap:anywhere}.source-list{display:flex;flex-wrap:wrap;gap:5px;margin-top:10px;padding-top:9px;border-top:1px solid #dce5f1}.source-list span{padding:4px 7px;border-radius:6px;background:#fff;color:#65758c;font-size:9px}.ask-form{display:grid;grid-template-columns:1fr auto;gap:8px;border-top:1px solid #edf0f4;padding-top:14px}.ask-form textarea{height:62px;min-height:62px}.ask-form button{width:88px}.answer-note{text-align:center;margin:7px 0 0;color:#98a2b2;font-size:9px}@media(max-width:1100px){.brain-layout{grid-template-columns:1fr}.document-list{max-height:360px}}@media(max-width:700px){.brain-stats{grid-template-columns:1fr}.brain-layout{display:block}.chat-panel{margin-top:16px}.document-item{grid-template-columns:42px minmax(0,1fr) auto}.document-item form{grid-column:3}.doc-status{display:none}.ask-form{grid-template-columns:1fr}.ask-form button{width:100%}}
