#ago-ai-widget { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 14px; line-height: 1.5; } .ago-ai-toggle { position: fixed; bottom: 20px; z-index: 2147483646 !important; width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.25); display: flex; align-items: center; justify-content: center; transition: transform 0.2s; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.ago-ai-toggle:hover { transform: scale(1.1); }
.ago-ai-toggle svg { width: 28px; height: 28px; fill: #fff; pointer-events: none; display: block; }
.ago-ai-toggle svg * { pointer-events: none; }
.ago-ai-toggle.right { right: 20px; }
.ago-ai-toggle.left { left: 20px; }
.ago-ai-toggle.ago-offset-1 { bottom: 100px; }
.ago-ai-toggle.ago-offset-2 { bottom: 180px; } .ago-ai-window { position: fixed; bottom: 90px; z-index: 2147483647 !important; width: 380px; max-width: calc(100vw - 40px); height: 500px; max-height: calc(100vh - 120px); border-radius: 16px; background: #fff; box-shadow: 0 8px 30px rgba(0,0,0,0.2); display: none; flex-direction: column; overflow: hidden; }
.ago-ai-window.right { right: 20px; }
.ago-ai-window.left { left: 20px; }
.ago-ai-window.ago-offset-1 { bottom: 170px; }
.ago-ai-window.ago-offset-2 { bottom: 250px; }
.ago-ai-window.open { display: flex; } .ago-ai-header { padding: 14px 16px; display: flex; align-items: center; gap: 10px; color: #fff; }
.ago-ai-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.ago-ai-header-info h3 { margin: 0; font-size: 15px; font-weight: 600; }
.ago-ai-header-info span { font-size: 12px; opacity: 0.8; }
.ago-ai-close { appearance: none; -webkit-appearance: none; background: transparent !important; border: none; box-shadow: none; color: #fff; cursor: pointer; margin-left: auto; opacity: 0.9; width: 40px; height: 40px; min-width: 40px; min-height: 40px; padding: 0; display: flex; align-items: center; justify-content: center; font-size: 28px; line-height: 1; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.ago-ai-close:hover { opacity: 1; } .ago-ai-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.ago-ai-msg { max-width: 80%; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.5; word-break: break-word; }
.ago-ai-msg.user { align-self: flex-end; color: #fff; border-bottom-right-radius: 4px; }
.ago-ai-msg.bot { align-self: flex-start; background: #f0f0f1; color: #1d2327; border-bottom-left-radius: 4px; }
.ago-ai-msg.thinking { color: #999; font-style: italic; } .ago-ai-input-area { padding: 12px 16px; border-top: 1px solid #eee; display: flex; gap: 8px; }
.ago-ai-input { flex: 1; border: 1px solid #dcdcde; border-radius: 20px; padding: 8px 16px; font-size: 14px; outline: none; font-family: inherit; }
.ago-ai-input:focus { border-color: #2271b1; }
.ago-ai-send { border: none; border-radius: 50%; width: 36px; height: 36px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: opacity 0.2s; }
.ago-ai-send:hover { opacity: 0.9; }
.ago-ai-send svg { width: 18px; height: 18px; fill: #fff; } .ago-ai-msg.bot strong { font-weight: 600; }
.ago-ai-msg.bot em { font-style: italic; }
.ago-ai-msg.bot ul { margin: 4px 0; padding-left: 18px; }
.ago-ai-msg.bot li { margin: 2px 0; }
.ago-ai-msg.bot a { color: #2271b1; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.ago-ai-msg.bot a:hover { text-decoration-thickness: 2px; } .ago-ai-task-form { padding: 12px; background: #f9f9f9; border-radius: 10px; margin-top: 8px; }
.ago-ai-task-form h4 { margin: 0 0 8px; font-size: 14px; }
.ago-ai-task-form input, .ago-ai-task-form textarea { width: 100%; box-sizing: border-box; border: 1px solid #dcdcde; border-radius: 6px; padding: 6px 10px; font-size: 13px; margin-bottom: 6px; font-family: inherit; }
.ago-ai-task-form button { width: 100%; padding: 8px; border: none; border-radius: 6px; color: #fff; font-size: 13px; font-weight: 500; cursor: pointer; }
.ago-ai-task-sent { text-align: center; color: #00a32a; font-size: 13px; padding: 10px; } .ago-ai-powered { text-align: center; padding: 4px; font-size: 10px; color: #999; }
.ago-ai-powered a { color: #999; text-decoration: none; }
@media (max-width: 480px) {
.ago-ai-window,
.ago-ai-window.left,
.ago-ai-window.right,
.ago-ai-window.ago-offset-1,
.ago-ai-window.ago-offset-2 { width: 100%; max-width: 100%; bottom: 0; right: 0; left: 0; height: 100vh; height: 100dvh; max-height: 100vh; max-height: 100dvh; border-radius: 0; }
.ago-ai-header { padding-top: calc(14px + env(safe-area-inset-top, 0px)); }
.ago-ai-close { width: 44px; height: 44px; min-width: 44px; min-height: 44px; font-size: 32px; }
.ago-ai-toggle,
.ago-ai-toggle.ago-offset-1,
.ago-ai-toggle.ago-offset-2 { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
.ago-ai-input-area { padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
}