.kg-chat{width:min(960px,94vw);max-height:90vh;border:1px solid #e6ebe6;border-radius:22px;padding:0;color:#15221a;box-shadow:0 24px 70px #15221a40}.kg-chat::backdrop{background:#13251c99}.kg-chat-head{display:flex;align-items:center;justify-content:space-between;padding:18px 22px;border-bottom:1px solid #e6ebe6}.kg-chat-head h2{margin:0}.kg-chat-layout{display:grid;grid-template-columns: minmax(180px,32%) 1fr;min-height:440px}.kg-chat-list{background:#f5f7f4;border-right:1px solid #e6ebe6;padding:12px;max-height:65vh;overflow:auto}.kg-chat-thread{display:grid;text-align:left;gap:4px;width:100%;padding:13px;border-radius:12px;background:white;color:#193126;margin-bottom:8px;border:1px solid #e6ebe6}.kg-chat-thread.active{border-color:#87c83e;background:#eef8e4}.kg-chat-thread span,.kg-chat-context{font-size:12px;color:#758078}.kg-chat-thread small{color:#496838}.kg-chat-main{padding:18px;min-width:0;display:flex;flex-direction:column;gap:8px}.kg-chat-main h3{margin:0}.kg-chat-feed{height:min(42vh,360px);overflow:auto;background:#f5f7f4;border-radius:14px;padding:12px;display:flex;flex-direction:column;gap:8px}.kg-chat-bubble{align-self:flex-start;background:white;border:1px solid #e6ebe6;border-radius:14px 14px 14px 4px;padding:10px 12px;max-width:85%;white-space:pre-wrap;overflow-wrap:anywhere}.kg-chat-bubble.mine{align-self:flex-end;background:#e4f5d0;border-color:#d3e8bc;border-radius:14px 14px 4px 14px}.kg-chat-bubble small{display:block;color:#758078;font-size:10px;margin-top:5px}.kg-chat-form{display:flex;gap:8px;align-items:end}.kg-chat-form textarea{flex:1;min-width:0;border:1px solid #dfe6df;border-radius:12px;padding:10px;resize:vertical;min-height:48px}.kg-chat-open{white-space:nowrap}@media(max-width:620px){.kg-chat-layout{grid-template-columns:1fr}.kg-chat-list{max-height:130px;border-right:0;border-bottom:1px solid #e6ebe6}.kg-chat-main{padding:12px}.kg-chat-open{font-size:11px;padding:5px}.kg-chat-feed{height:30vh}.kg-chat-head{padding:12px}}
