.buddy-chat-bubble{position:fixed;bottom:24px;right:24px;width:90px;height:90px;border-radius:50%;cursor:pointer;z-index:9999;box-shadow:0 4px 20px #667eea66;border:2px solid var(--buddy-primary, #667eea);overflow:visible;transition:transform .2s ease,box-shadow .2s ease;background:var(--buddy-gradient, linear-gradient(135deg, #667eea, #764ba2));display:flex;align-items:center;justify-content:center}.buddy-chat-bubble:hover{transform:scale(1.08);box-shadow:0 6px 28px #667eea8c}.buddy-chat-bubble img{width:80%;height:80%;object-fit:cover;border-radius:50%}.buddy-spin-text{position:absolute;width:130px;height:130px;top:50%;left:50%;transform:translate(-50%,-50%);animation:buddySpin 12s linear infinite;pointer-events:none}.buddy-spin-text text{fill:var(--buddy-primary, #667eea);font-size:11.2px;font-weight:700;letter-spacing:1.5px;text-transform:uppercase}@keyframes buddySpin{0%{transform:translate(-50%,-50%) rotate(0)}to{transform:translate(-50%,-50%) rotate(360deg)}}.buddy-chat-drawer{position:fixed;bottom:24px;right:24px;width:480px;height:700px;max-height:calc(100vh - 100px);border-radius:16px;background:var(--buddy-surface, #fff);box-shadow:0 8px 40px #0000002e;z-index:10000;display:flex;flex-direction:column;overflow:hidden;animation:buddySlideUp .25s ease-out}.buddy-chat-drawer.fullscreen{position:fixed;inset:0;width:100vw;height:100vh;max-height:100vh;border-radius:0;animation:buddyFadeIn .15s ease-out}@keyframes buddySlideUp{0%{opacity:0;transform:translateY(20px) scale(.95)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes buddyFadeIn{0%{opacity:0}to{opacity:1}}.buddy-chat-header{display:flex;align-items:center;gap:10px;padding:12px 16px;background:var(--buddy-gradient, linear-gradient(135deg, #667eea, #764ba2));color:#fff;flex-shrink:0}.buddy-chat-header-avatar{width:32px;height:32px;border-radius:50%;border:2px solid rgba(255,255,255,.4)}.buddy-chat-header-title{flex:1;font-weight:600;font-size:15px}.buddy-chat-header-actions{display:flex;gap:4px}.buddy-chat-header-actions button{background:#ffffff26;border:none;color:#fff;width:28px;height:28px;border-radius:6px;cursor:pointer;font-size:14px;display:flex;align-items:center;justify-content:center;transition:background .15s}.buddy-chat-header-actions button:hover{background:#ffffff4d}.buddy-chat-selectors{display:flex;gap:8px;padding:8px 16px;background:var(--buddy-bg, #f5f5f7);border-bottom:1px solid var(--buddy-border, #e5e7eb);flex-shrink:0}.buddy-selector-group{display:flex;background:var(--buddy-surface, #fff);border:1px solid var(--buddy-border, #e5e7eb);border-radius:8px;overflow:hidden}.buddy-selector-btn{padding:4px 10px;font-size:12px;font-weight:500;border:none;background:transparent;cursor:pointer;color:var(--buddy-muted, #6b7280);transition:all .15s}.buddy-selector-btn.active{background:var(--buddy-primary, #667eea);color:#fff}.buddy-selector-btn:hover:not(.active){background:var(--buddy-accent-soft, rgba(102, 126, 234, .12))}.buddy-chat-messages{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:12px}.buddy-msg{max-width:85%;padding:10px 14px;border-radius:14px;font-size:14px;line-height:1.45;word-break:break-word}.buddy-msg.user{align-self:flex-end;background:var(--buddy-primary, #667eea);color:#fff;border-bottom-right-radius:4px}.buddy-msg.agent{align-self:flex-start;background:var(--buddy-bg, #f5f5f7);color:var(--buddy-text, #1f2937);border-bottom-left-radius:4px}.buddy-msg.system{align-self:center;font-size:12px;color:var(--buddy-muted, #6b7280);background:none;padding:4px}.buddy-step-trace{align-self:flex-start;max-width:90%;font-size:12px;padding:8px 12px;background:#667eea0f;border-left:3px solid var(--buddy-primary, #667eea);border-radius:0 8px 8px 0;color:var(--buddy-muted, #6b7280)}.buddy-step-trace .step-tool{font-weight:600;color:var(--buddy-primary, #667eea)}.buddy-step-trace .step-result{margin-top:4px;font-family:monospace;font-size:11px;white-space:pre-wrap;max-height:80px;overflow:hidden}.buddy-confirm-card{align-self:flex-start;max-width:90%;padding:12px 16px;background:#fffbeb;border:1px solid #f59e0b;border-radius:12px;font-size:13px}.buddy-confirm-card .confirm-desc{font-weight:500;margin-bottom:8px;color:#92400e}.buddy-confirm-actions{display:flex;gap:8px}.buddy-confirm-actions button{padding:5px 14px;border-radius:6px;border:none;font-size:12px;font-weight:600;cursor:pointer}.buddy-confirm-actions .approve-btn{background:#10b981;color:#fff}.buddy-confirm-actions .reject-btn{background:#ef4444;color:#fff}.buddy-thinking{align-self:flex-start;display:flex;gap:4px;padding:10px 14px}.buddy-thinking span{width:8px;height:8px;background:var(--buddy-primary, #667eea);border-radius:50%;animation:buddyBounce 1.2s infinite}.buddy-thinking span:nth-child(2){animation-delay:.15s}.buddy-thinking span:nth-child(3){animation-delay:.3s}@keyframes buddyBounce{0%,80%,to{transform:scale(.6);opacity:.4}40%{transform:scale(1);opacity:1}}.buddy-chat-input-area{display:flex;gap:8px;padding:12px 16px;border-top:1px solid var(--buddy-border, #e5e7eb);background:var(--buddy-surface, #fff);flex-shrink:0}.buddy-chat-input-area textarea{flex:1;resize:none;border:1px solid var(--buddy-border, #e5e7eb);border-radius:10px;padding:8px 12px;font-size:14px;font-family:inherit;max-height:100px;min-height:38px;outline:none;transition:border-color .15s}.buddy-chat-input-area textarea:focus{border-color:var(--buddy-primary, #667eea)}.buddy-chat-input-area .send-btn{align-self:flex-end;width:38px;height:38px;border-radius:10px;border:none;background:var(--buddy-primary, #667eea);color:#fff;cursor:pointer;font-size:16px;display:flex;align-items:center;justify-content:center;transition:background .15s}.buddy-chat-input-area .send-btn:hover{background:var(--buddy-secondary, #764ba2)}.buddy-chat-input-area .send-btn:disabled{opacity:.5;cursor:not-allowed}:root{--buddy-primary: #667eea;--buddy-secondary: #764ba2;--buddy-primary-rgb: 102, 126, 234;--buddy-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);--buddy-bg: #f5f5f7;--buddy-surface: #ffffff;--buddy-text: #1f2937;--buddy-muted: #6b7280;--buddy-border: #e5e7eb;--buddy-accent: #667eea;--buddy-accent-soft: rgba(102, 126, 234, .12);--buddy-danger: #c33}*{box-sizing:border-box}body{margin:0;background:var(--buddy-surface);color:var(--buddy-text);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;font-size:15px;line-height:1.45;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#root{min-height:100vh}button,input,select,textarea{font:inherit}h1,h2,h3,h4,h5,h6,p{font-family:inherit}
