.ai-chat-grid{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:18px;align-items:start}.ai-chat-grid .ai-chat-context{position:static;display:block;width:auto;height:auto;margin:0 0 18px;padding:22px;box-sizing:border-box;background:var(--ai-bg);color:inherit;border:1px solid var(--ai-line);border-radius:15px}.ai-chat-context ul{padding-left:18px;line-height:1.8;font-size:13px;color:var(--ai-muted)}.ai-chat-prompts{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.ai-chat-prompts a{font-size:12px;padding:9px 11px;border:1px solid var(--ai-line);border-radius:9px;text-decoration:none}.ai-chat-empty{padding:24px;background:#f3f7ff;border-radius:12px;color:#29456e}.ai-chat-message{padding:18px;border:1px solid var(--ai-line);border-radius:13px;margin:16px 0;background:var(--ai-bg)}.ai-chat-message .ai-row{gap:10px;margin-bottom:12px}.ai-chat-message time{font-size:11px;color:var(--ai-muted)}.ai-chat-user{background:#edf4ff;border-color:#d5e3fc;color:#17396a;margin-left:32px}.ai-chat-assistant{margin-right:16px}.ai-chat-text{white-space:normal;line-height:1.75;overflow-wrap:anywhere;font-size:14px}.ai-chat-message strong{font-size:13px}.ai-chat-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:16px}.ai-chat-actions form{margin:0!important}.ai-chat-actions .ai-help{width:100%;margin:3px 0}.ai-chat-sources{margin-top:16px;font-size:12px;border-top:1px solid var(--ai-line);padding-top:12px}.ai-chat-sources summary{cursor:pointer;color:var(--ai-muted)}.ai-chat-sources ul{padding-left:16px;line-height:1.8}.ai-chat-composer{border-top:1px solid var(--ai-line);margin-top:24px;padding-top:10px;scroll-margin-top:120px}.ai-chat-composer textarea{box-sizing:border-box;width:100%;resize:vertical;min-height:110px;padding:14px;border:1px solid var(--ai-line);border-radius:11px;background:var(--ai-bg);color:inherit;font:inherit;line-height:1.6}.ai-chat-composer .ai-row .ai-help{max-width:340px;margin:0}.ai-chat-progress{font-size:13px;color:var(--ai-muted);margin:0}.ai-chat-error{background:#fff4ed;color:#805023}.ai-chat-shortcut{display:flex;gap:18px;align-items:center;justify-content:space-between;flex-wrap:wrap}.ai-chat-shortcut h3{margin:0 0 8px}.ai-chat-shortcut p{margin:0}
#ai-chat-latest{scroll-margin-top:120px}[data-theme=dark] .ai-chat-user{background:#213b60;border-color:#335580;color:#e4edff}[data-theme=dark] .ai-chat-empty{background:#21324d;color:#cfdef5}[data-theme=dark] .ai-chat-error{background:#483523;color:#ffdfb6}
@media(min-width:1101px){.ai-chat-grid .ai-chat-context{position:sticky;top:125px;max-height:calc(100vh - 320px);overflow:auto}}
@media(max-width:1100px){.ai-chat-grid{grid-template-columns:1fr}.ai-chat-context{order:2}}@media(max-width:600px){.ai-chat-main{padding:16px}.ai-chat-user{margin-left:12px}.ai-chat-assistant{margin-right:0}.ai-chat-message{padding:14px}.ai-chat-composer .ai-row{display:block}.ai-chat-composer button{margin-top:14px}.ai-chat-prompts a{flex:1 1 auto;text-align:center}}
