.workflow-chat-modal-panel{position:fixed;bottom:16px;left:72px;z-index:1051;width:420px;height:560px;background:var(--bg-primary);border:1px solid var(--border-primary);border-radius:16px;box-shadow:var(--workflow-chat-panel-shadow);display:flex;flex-direction:column;overflow:hidden;animation:workflow-chat-modal-slide-in .25s cubic-bezier(.16,1,.3,1)}.workflow-chat-modal-panel-hidden{display:none}@keyframes workflow-chat-modal-slide-in{0%{opacity:0;transform:translateY(8px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}.workflow-chat-modal-header{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid var(--border-primary);flex-shrink:0;background:var(--bg-secondary)}.workflow-chat-modal-header-title{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;color:var(--text-primary)}.workflow-chat-modal-header-icon{color:var(--accent-primary)}.workflow-chat-modal-close-btn{width:28px;height:28px;border-radius:8px;border:none;background:transparent;color:var(--text-secondary);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .15s,color .15s}.workflow-chat-modal-close-btn:hover{background:var(--bg-hover);color:var(--text-primary)}.workflow-chat-modal-thread{display:flex;flex-direction:column;flex:1;min-height:0}.workflow-chat-modal-viewport{flex:1;overflow-y:auto;scroll-behavior:smooth;padding:8px 0}.workflow-chat-modal-viewport::-webkit-scrollbar{width:4px}.workflow-chat-modal-viewport::-webkit-scrollbar-track{background:transparent}.workflow-chat-modal-viewport::-webkit-scrollbar-thumb{background:var(--border-primary);border-radius:4px}.workflow-chat-modal-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 24px 24px;text-align:center}.workflow-chat-modal-empty-icon{width:52px;height:52px;border-radius:16px;background:linear-gradient(135deg,var(--accent-primary),color-mix(in srgb,var(--accent-primary) 60%,var(--workflow-chat-accent-mix-target)));display:flex;align-items:center;justify-content:center;color:var(--workflow-chat-on-accent-text);margin-bottom:16px;box-shadow:0 4px 16px color-mix(in srgb,var(--accent-primary) 30%,transparent)}.workflow-chat-modal-empty-title{font-size:15px;font-weight:600;color:var(--text-primary);margin:0 0 6px}.workflow-chat-modal-empty-desc{font-size:13px;color:var(--text-secondary);margin:0 0 20px;line-height:1.5;max-width:260px}.workflow-chat-modal-suggestions{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}.workflow-chat-modal-suggestion-chip{padding:8px 14px;border-radius:20px;border:1px solid var(--border-primary);background:var(--bg-secondary);color:var(--text-primary);font-size:12px;cursor:pointer;transition:background .15s,border-color .15s,transform .15s;white-space:nowrap}.workflow-chat-modal-suggestion-chip:hover{background:var(--bg-hover);border-color:var(--accent-primary);transform:translateY(-1px)}.workflow-chat-modal-suggestion-chip:disabled{opacity:.5;cursor:not-allowed;transform:none}.workflow-chat-modal-message-row{padding:6px 16px;animation:workflow-chat-modal-msg-in .3s cubic-bezier(.16,1,.3,1)}@keyframes workflow-chat-modal-msg-in{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}.workflow-chat-modal-message{font-size:13px;line-height:1.6;white-space:pre-wrap;word-break:break-word}.workflow-chat-modal-message-row-user{display:flex;justify-content:flex-end}.workflow-chat-modal-message-user{max-width:85%;padding:10px 14px;border-radius:16px;background:var(--workflow-chat-user-bubble-bg);color:var(--text-primary)}.workflow-chat-modal-message-row-assistant{display:flex;gap:8px;align-items:flex-start}.workflow-chat-modal-avatar{width:24px;height:24px;border-radius:8px;background:linear-gradient(135deg,var(--accent-primary),color-mix(in srgb,var(--accent-primary) 60%,var(--workflow-chat-accent-mix-target)));display:flex;align-items:center;justify-content:center;color:var(--workflow-chat-on-accent-text);flex-shrink:0;margin-top:2px}.workflow-chat-modal-message-assistant-content{flex:1;min-width:0}.workflow-chat-modal-message-assistant{padding:10px 14px;border-radius:16px;background:var(--bg-tertiary);color:var(--text-primary)}.workflow-chat-modal-thinking{padding:12px 14px;border-radius:16px;background:var(--bg-tertiary)}.workflow-chat-modal-thinking-dots{display:flex;gap:4px;align-items:center}.workflow-chat-modal-dot{width:6px;height:6px;border-radius:50%;background:var(--text-tertiary);animation:workflow-chat-modal-bounce 1.4s ease-in-out infinite both}.workflow-chat-modal-dot:nth-child(1){animation-delay:0s}.workflow-chat-modal-dot:nth-child(2){animation-delay:.16s}.workflow-chat-modal-dot:nth-child(3){animation-delay:.32s}@keyframes workflow-chat-modal-bounce{0%,80%,to{transform:scale(.6);opacity:.4}40%{transform:scale(1);opacity:1}}.workflow-chat-modal-action-bar{display:flex;gap:2px;padding:4px 0;opacity:0;transition:opacity .15s}.workflow-chat-modal-message-row-assistant:hover .workflow-chat-modal-action-bar{opacity:1}.workflow-chat-modal-action-btn{width:26px;height:26px;border-radius:6px;border:none;background:transparent;color:var(--text-tertiary);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .15s,color .15s}.workflow-chat-modal-action-btn:hover{background:var(--bg-hover);color:var(--text-primary)}.workflow-chat-modal-action-btn:disabled{opacity:.3;cursor:not-allowed}.workflow-chat-modal-scroll-to-bottom{position:-webkit-sticky;position:sticky;bottom:8px;align-self:center;width:28px;height:28px;border-radius:50%;border:none;background:var(--bg-secondary);color:var(--text-secondary);cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:var(--workflow-chat-send-btn-shadow);transition:transform .15s,opacity .2s;opacity:1}.workflow-chat-modal-scroll-to-bottom:disabled{display:none}.workflow-chat-modal-scroll-to-bottom:hover{transform:translateY(-1px);color:var(--text-primary)}.workflow-chat-modal-composer-wrapper{padding:12px 16px 16px;border-top:1px solid var(--border-primary);flex-shrink:0;background:var(--bg-primary)}.workflow-chat-modal-composer{display:flex;align-items:flex-end;gap:8px;padding:8px 12px;border-radius:12px;border:1px solid var(--border-primary);background:var(--bg-secondary);transition:border-color .2s,box-shadow .2s}.workflow-chat-modal-composer:focus-within{border-color:var(--accent-primary);box-shadow:0 0 0 2px color-mix(in srgb,var(--accent-primary) 16%,transparent)}.workflow-chat-modal-composer-input{flex:1;min-height:20px;max-height:120px;border:none;background:transparent;color:var(--text-primary);font-size:13px;font-family:inherit;resize:none;outline:none;line-height:1.5;padding:0}.workflow-chat-modal-composer-input::placeholder{color:var(--text-tertiary)}.workflow-chat-modal-send-btn{width:32px;height:32px;border-radius:10px;border:none;background:var(--accent-primary);color:var(--workflow-chat-on-accent-text);cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:background .15s,transform .1s,opacity .15s}.workflow-chat-modal-send-btn:hover{background:var(--accent-primary-hover)}.workflow-chat-modal-send-btn:active{transform:scale(.93)}.workflow-chat-modal-send-btn:disabled{opacity:.4;cursor:not-allowed;transform:none}.workflow-chat-modal-text-part{display:inline}@media(max-width:480px){.workflow-chat-modal-panel{width:calc(100vw - 32px);height:calc(100vh - 100px);left:16px;border-radius:12px}}
