@keyframes hw-fadeUp{0%{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}@keyframes hw-dotBounce{0%,80%,to{opacity:.3;transform:scale(.5)}40%{opacity:1;transform:scale(1)}}@keyframes hw-statusPulse{0%,to{opacity:1}50%{opacity:.5}}.humano-widget{z-index:9999;position:fixed;bottom:24px;right:24px}.humano-fab{border:1px solid var(--glass-border);cursor:pointer;background:var(--surface);width:44px;height:44px;color:var(--foreground);transition:all var(--duration-normal)var(--ease-out-expo);-webkit-backdrop-filter:blur(12px);border-radius:50%;justify-content:center;align-items:center;display:flex;position:relative;overflow:hidden;box-shadow:0 2px 12px #00000026}.humano-fab:hover{border-color:var(--glass-hover-border);transform:scale(1.06);box-shadow:0 4px 20px #0003}.humano-fab:active{transform:scale(.95)}.humano-fab svg{opacity:.7;width:18px;height:18px}.humano-fab .fab-icon,.humano-fab .fab-close{transition:all var(--duration-normal)var(--ease-out-expo);position:absolute}.humano-fab .fab-icon{opacity:1;transform:scale(1)rotate(0)}.humano-fab .fab-close{opacity:0;transform:scale(.5)rotate(-90deg)}.humano-fab.open .fab-icon{opacity:0;transform:scale(.5)rotate(90deg)}.humano-fab.open .fab-close{opacity:1;transform:scale(1)rotate(0)}.humano-greeting{background:var(--surface);border:1px solid var(--glass-border);max-width:220px;animation:hw-fadeUp var(--duration-slow)var(--ease-out-expo)10s forwards;opacity:0;pointer-events:auto;cursor:pointer;transition:opacity var(--duration-normal);border-radius:12px;padding:10px 14px;position:absolute;bottom:60px;right:0;box-shadow:0 4px 20px #0003}.humano-greeting p{color:color-mix(in srgb,var(--foreground)80%,transparent);font-size:13px;line-height:1.5}.humano-greeting:after{content:"";background:var(--surface);border-right:1px solid var(--glass-border);border-bottom:1px solid var(--glass-border);width:12px;height:12px;position:absolute;bottom:-6px;right:22px;transform:rotate(45deg)}.humano-popup{border:1px solid var(--glass-border);background:var(--background);opacity:0;transform-origin:100% 100%;pointer-events:none;width:380px;height:560px;max-height:calc(100dvh - 120px);transition:all .35s var(--ease-out-expo);border-radius:20px;grid-template-rows:auto auto 1fr auto auto;display:grid;position:absolute;bottom:72px;right:0;overflow:hidden;transform:translateY(16px)scale(.95);box-shadow:0 20px 60px #00000080,0 0 1px #ffffff1a}.humano-popup.open{opacity:1;pointer-events:auto;transform:translateY(0)scale(1)}.hw-header{border-bottom:1px solid var(--glass-border);background:var(--nav-bg);-webkit-backdrop-filter:blur(16px);align-items:center;gap:12px;padding:14px 16px;display:flex}.hw-avatar{background:var(--gradient-text-primary)border-box;background-size:300% 300%;border:2px solid #0000;border-radius:50%;flex-shrink:0;width:36px;height:36px;animation:6s infinite gradientShift;position:relative;overflow:hidden}.hw-avatar img{object-fit:cover;border-radius:50%;width:100%;height:100%;display:block}.hw-header-info{flex:1;min-width:0}.hw-header-info h2{color:var(--foreground);font-size:14px;font-weight:700;line-height:1.2}.hw-status{color:color-mix(in srgb,var(--foreground)60%,transparent);align-items:center;gap:5px;font-size:11px;font-weight:500;display:flex}.hw-status-dot{background:#28c840;border-radius:50%;width:6px;height:6px;animation:2s ease-in-out infinite hw-statusPulse}.hw-header-actions{align-items:center;gap:4px;display:flex}.hw-close-btn{border:1px solid var(--glass-border);width:30px;height:30px;color:var(--foreground);opacity:.5;cursor:pointer;transition:all var(--duration-fast);background:0 0;border-radius:8px;justify-content:center;align-items:center;display:none}.hw-close-btn svg{width:16px;height:16px}.hw-close-btn:hover{opacity:1;border-color:var(--glass-hover-border);background:var(--glass-bg)}@media (max-width:480px){.hw-close-btn{display:flex}}.hw-restart-btn{border:1px solid var(--glass-border);width:30px;height:30px;color:var(--foreground);opacity:.5;cursor:pointer;transition:all .2s var(--ease-out-expo);background:0 0;border-radius:8px;justify-content:center;align-items:center;display:flex}.hw-restart-btn svg{width:16px;height:16px}.hw-restart-btn:hover{opacity:1;border-color:var(--glass-hover-border);background:var(--glass-bg)}.hw-header-btn{border:1px solid var(--glass-border);width:30px;height:30px;color:color-mix(in srgb,var(--foreground)60%,transparent);cursor:pointer;transition:all var(--duration-fast)var(--ease-out-expo);background:0 0;border-radius:8px;justify-content:center;align-items:center;display:flex}.hw-header-btn:hover{border-color:var(--glass-hover-border);color:var(--foreground);background:var(--glass-bg)}.hw-header-btn svg{width:14px;height:14px}.hw-progress{background:#ffffff0a;height:2px}.hw-progress-fill{background:var(--gradient-text-primary);height:100%;transition:width var(--duration-slower)var(--ease-out-expo);background-size:300% 100%;border-radius:0 2px 2px 0;animation:4s infinite gradientShift}.hw-chat{scroll-behavior:smooth;scrollbar-width:thin;scrollbar-color:#ffffff14 transparent;flex-direction:column;justify-content:flex-end;gap:3px;padding:16px 14px;display:flex;overflow:hidden auto}.hw-chat::-webkit-scrollbar{width:3px}.hw-chat::-webkit-scrollbar-thumb{background:#ffffff14;border-radius:3px}.hw-welcome{text-align:center;border:1px solid var(--glass-border);animation:hw-fadeUp var(--duration-slow)var(--ease-out-expo)forwards;opacity:0;background:linear-gradient(135deg,#1e00721f,#8200c40f);border-radius:14px;margin-bottom:8px;padding:16px 12px}.hw-welcome h3{background:var(--gradient-text-primary);-webkit-text-fill-color:transparent;-webkit-background-clip:text;background-clip:text;margin-bottom:4px;font-size:15px;font-weight:800}.hw-welcome p{color:color-mix(in srgb,var(--foreground)60%,transparent);font-size:12px;line-height:1.55}.hw-msg{max-width:100%;animation:hw-fadeUp .4s var(--ease-out-expo)forwards;opacity:0;gap:8px;display:flex}.hw-msg.agent{padding-right:32px}.hw-msg.user{flex-direction:row-reverse;padding-left:32px}.hw-msg-avatar{color:#fff;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:26px;height:26px;margin-top:2px;font-size:11px;font-weight:800;display:flex;overflow:hidden}.hw-msg-avatar.agent{background:var(--gradient-hero)}.hw-msg-avatar.agent img{object-fit:cover;width:100%;height:100%}.hw-msg-avatar.user{background:rgba(var(--primary-rgb),.2)}.hw-msg-avatar.user svg{opacity:.5;width:13px;height:13px}.hw-msg-body{flex-direction:column;gap:3px;display:flex}.hw-bubble{padding:var(--msg-padding);font-size:var(--msg-font-size);line-height:var(--msg-line-height);word-break:break-word;border-radius:16px}.hw-msg.agent .hw-bubble{background:var(--msg-ai-bg);border:1px solid var(--msg-ai-border);border-top-left-radius:var(--msg-ai-radius-tl);border-top-right-radius:var(--msg-ai-radius-tr);border-bottom-left-radius:var(--msg-ai-radius-bl);border-bottom-right-radius:var(--msg-ai-radius-br);color:color-mix(in srgb,var(--foreground)82%,transparent)}.hw-msg.user .hw-bubble{background:var(--msg-user-bg);border:1px solid var(--msg-user-border);border-top-left-radius:var(--msg-user-radius-tl);border-top-right-radius:var(--msg-user-radius-tr);border-bottom-left-radius:var(--msg-user-radius-bl);border-bottom-right-radius:var(--msg-user-radius-br);color:color-mix(in srgb,var(--foreground)88%,transparent)}.hw-bubble p{margin:var(--prose-p-margin)}.hw-bubble p:last-child{margin-bottom:0}.hw-bubble strong{font-weight:var(--prose-heading-weight);color:var(--foreground)}.hw-bubble em{font-style:italic}.hw-bubble ul,.hw-bubble ol{margin:var(--prose-list-margin);padding-left:var(--prose-list-padding-left)}.hw-bubble li{margin:var(--prose-li-margin)}.hw-bubble code{background:var(--prose-code-bg);padding:var(--prose-code-padding);border-radius:var(--prose-code-radius);font-size:var(--prose-code-size)}.hw-bubble h2,.hw-bubble h3,.hw-bubble h4{font-weight:var(--prose-heading-weight);color:var(--foreground);margin:var(--prose-heading-margin);line-height:1.3}.hw-bubble h2{font-size:var(--prose-h2-size)}.hw-bubble h3{font-size:var(--prose-h3-size)}.hw-bubble h4{font-size:var(--prose-h4-size)}.hw-bubble :first-child{margin-top:0}.hw-bubble a{color:var(--prose-link-color);text-underline-offset:2px;text-decoration:underline}.hw-bubble a:hover{text-decoration:none}.hw-time{color:color-mix(in srgb,var(--foreground)40%,transparent);padding:0 3px;font-size:10px}.hw-msg.user .hw-time{text-align:right}.hw-chips{animation:hw-fadeUp .4s var(--ease-out-expo).15s forwards;opacity:0;flex-wrap:wrap;gap:6px;margin-top:6px;padding-left:34px;display:flex}.hw-chip{border:1px solid rgba(var(--primary-rgb),.25);background:rgba(var(--primary-rgb),.08);color:var(--primary);cursor:pointer;transition:all var(--duration-fast)var(--ease-out-expo);-webkit-user-select:none;user-select:none;border-radius:100px;padding:6px 13px;font-family:inherit;font-size:12px;font-weight:600}.hw-chip:hover{background:rgba(var(--primary-rgb),.18);border-color:rgba(var(--primary-rgb),.4);transform:translateY(-1px)}.hw-chip:active{transform:translateY(0)scale(.97)}.hw-chip.selected{background:var(--primary);color:#fff;border-color:var(--primary)}.hw-chip.dimmed{opacity:.25;pointer-events:none}.hw-typing{animation:hw-fadeUp .3s var(--ease-out-expo)forwards;opacity:0;gap:8px;padding-right:32px;display:flex}.hw-typing-dots{background:var(--surface);border:1px solid var(--glass-border);border-radius:16px 16px 16px 5px;align-items:center;gap:3px;padding:10px 14px;display:flex}.hw-typing-dots span{background:color-mix(in srgb,var(--foreground)45%,transparent);border-radius:50%;width:6px;height:6px;animation:1.4s ease-in-out infinite hw-dotBounce}.hw-typing-dots span:nth-child(2){animation-delay:.2s}.hw-typing-dots span:nth-child(3){animation-delay:.4s}.hw-summary{border:1px solid rgba(var(--primary-rgb),.12);background:rgba(var(--primary-rgb),.04);border-radius:12px;margin-top:6px;padding:14px}.hw-summary h4{color:var(--primary);text-transform:uppercase;letter-spacing:.08em;margin-bottom:10px;font-size:11px;font-weight:700}.hw-summary-row{border-bottom:1px solid #ffffff08;justify-content:space-between;align-items:baseline;padding:4px 0;display:flex}.hw-summary-row:last-child{border-bottom:none}.hw-summary-label{color:color-mix(in srgb,var(--foreground)50%,transparent);font-size:11px}.hw-summary-value{color:color-mix(in srgb,var(--foreground)75%,transparent);text-align:right;max-width:55%;font-size:12px;font-weight:600}.hw-input-area{border-top:1px solid var(--glass-border);background:var(--nav-bg);-webkit-backdrop-filter:blur(16px);padding:10px 12px 14px}.hw-input-wrap{align-items:flex-end;gap:6px;display:flex}.hw-input-field-wrap{border:1px solid var(--glass-border);background:var(--glass-bg);transition:all var(--duration-fast)var(--ease-out-expo);border-radius:20px;flex:1;align-items:flex-end;display:flex}.hw-input-field-wrap:focus-within{border-color:rgba(var(--primary-rgb),.35);box-shadow:0 0 0 2px rgba(var(--primary-rgb),.06)}.hw-input{color:var(--foreground);resize:none;background:0 0;border:none;outline:none;flex:1;min-height:38px;max-height:80px;padding:10px 14px;font-family:inherit;font-size:13px;line-height:1.4}.hw-input::placeholder{color:color-mix(in srgb,var(--foreground)40%,transparent)}.hw-send-btn{background:var(--primary);color:#fff;cursor:pointer;width:38px;height:38px;transition:all var(--duration-fast)var(--ease-out-expo);opacity:.35;pointer-events:none;border:none;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;display:flex}.hw-send-btn.active{opacity:1;pointer-events:auto}.hw-send-btn.active:hover{box-shadow:var(--glow-sm);transform:scale(1.06)}.hw-send-btn svg{width:16px;height:16px}.hw-powered{text-align:center;color:color-mix(in srgb,var(--foreground)40%,transparent);background:var(--nav-bg);padding:0 0 6px;font-size:10px}.hw-powered a{color:color-mix(in srgb,var(--foreground)45%,transparent);transition:color var(--duration-fast);text-decoration:none}.hw-powered a:hover{color:var(--primary)}.hw-mic-btn{border:1px solid var(--glass-border);width:38px;height:38px;color:color-mix(in srgb,var(--foreground)60%,transparent);cursor:pointer;transition:all var(--duration-fast)var(--ease-out-expo);background:0 0;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;display:flex}.hw-mic-btn:hover{border-color:var(--glass-hover-border);color:var(--foreground);background:var(--glass-bg)}.hw-mic-btn.active{border-color:var(--coral);color:var(--coral);background:#ff658e14;animation:1s ease-in-out infinite hw-statusPulse}.hw-mic-btn svg{width:16px;height:16px}@media (max-width:480px){.humano-widget{bottom:16px;right:16px}.humano-greeting{max-width:200px;bottom:56px}.humano-popup{transform-origin:100% 100%;width:100%;height:100%;max-height:100dvh;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom);border-radius:0;position:fixed;inset:0}.hw-header{padding:12px 16px;padding-top:calc(12px + env(safe-area-inset-top))}.hw-chat{padding:12px 10px}.hw-bubble{padding:9px 12px;font-size:13px}.hw-msg-avatar{width:24px;height:24px}.hw-msg.agent{padding-right:20px}.hw-msg.user{padding-left:20px}.hw-chip{padding:8px 14px;font-size:13px}.hw-input-area{padding:10px 12px;padding-bottom:calc(10px + env(safe-area-inset-bottom))}.hw-input{min-height:42px;font-size:16px}.hw-send-btn,.hw-mic-btn{width:42px;height:42px}}@media (prefers-reduced-motion:reduce){.humano-widget *,.humano-widget :before,.humano-widget :after{transition-duration:.01ms!important;animation-duration:.01ms!important}}
