#chat-fab{position:fixed;bottom:calc(68px + env(safe-area-inset-bottom,0px));right:16px;z-index:9990;width:52px;height:52px;border-radius:50%;background:#eb722f;color:#fff;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 20px rgba(235,114,47,.45);transition:transform .25s cubic-bezier(.34,1.56,.64,1),background .2s;will-change:transform}#chat-fab:hover{background:#d4611e;transform:scale(1.08)}#chat-fab.is-open{background:#374151;box-shadow:0 4px 16px rgba(0,0,0,.25)}#chat-unread-badge{position:absolute;top:-4px;right:-4px;background:#ef4444;color:#fff;font-size:10px;font-weight:700;min-width:18px;height:18px;border-radius:9px;display:flex;align-items:center;justify-content:center;padding:0 4px;border:2px solid #fff;animation:chat-pop .3s cubic-bezier(.34,1.56,.64,1)}@keyframes chat-pop{from{transform:scale(0)}to{transform:scale(1)}}@media (min-width:768px){#chat-fab{bottom:96px;right:28px;width:56px;height:56px}}#chat-panel{position:fixed;bottom:calc(130px + env(safe-area-inset-bottom,0px));right:16px;z-index:9989;width:calc(100vw - 32px);max-width:360px;height:480px;max-height:calc(100vh - 160px);background:#fff;border-radius:20px;box-shadow:0 8px 40px rgba(0,0,0,.18);display:flex;flex-direction:column;overflow:hidden;transform:translateY(20px) scale(.95);opacity:0;pointer-events:none;transition:transform .3s cubic-bezier(.34,1.2,.64,1),opacity .25s ease}#chat-panel.is-open{transform:translateY(0) scale(1);opacity:1;pointer-events:all}@media (min-width:768px){#chat-panel{bottom:164px;right:28px;width:360px}}#chat-header{background:#eb722f;color:#fff;padding:14px 16px;display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.chat-header-info{display:flex;align-items:center;gap:10px}.chat-avatar{width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.25);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:14px;flex-shrink:0}.chat-title{font-weight:700;font-size:14px}.chat-subtitle{font-size:11px;opacity:.85;margin-top:1px}.chat-close-btn{background:none;border:none;color:rgba(255,255,255,.8);cursor:pointer;padding:4px;border-radius:6px;display:flex;transition:color .15s}.chat-close-btn:hover{color:#fff}#chat-messages{flex:1;overflow-y:auto;padding:16px 14px 8px;display:flex;flex-direction:column;gap:8px;scroll-behavior:smooth}#chat-messages::-webkit-scrollbar{width:4px}#chat-messages::-webkit-scrollbar-thumb{background:#e5e7eb;border-radius:2px}.chat-system-msg{text-align:center;padding:24px 16px;color:#6b7280}.chat-system-icon{font-size:32px;margin-bottom:10px}.chat-system-msg p{font-size:14px;margin:0 0 6px}.chat-system-sub{font-size:12px;color:#9ca3af}.chat-msg{display:flex;flex-direction:column;max-width:82%;animation:chat-msg-in .2s ease}@keyframes chat-msg-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}.chat-msg--out{align-self:flex-end;align-items:flex-end}.chat-msg--in{align-self:flex-start;align-items:flex-start}.chat-bubble{padding:9px 13px;border-radius:16px;font-size:14px;line-height:1.45;word-break:break-word}.chat-msg--out .chat-bubble{background:#eb722f;color:#fff;border-bottom-right-radius:4px}.chat-msg--in .chat-bubble{background:#f3f4f6;color:#111827;border-bottom-left-radius:4px}.chat-meta{font-size:10px;color:#9ca3af;margin-top:3px;padding:0 4px}.chat-typing-bubble{display:flex;align-items:center;gap:4px;padding:10px 14px}.chat-typing-bubble span{width:7px;height:7px;border-radius:50%;background:#9ca3af;animation:typing-dot 1.2s infinite}.chat-typing-bubble span:nth-child(2){animation-delay:.2s}.chat-typing-bubble span:nth-child(3){animation-delay:.4s}@keyframes typing-dot{0%,60%,100%{transform:translateY(0);opacity:.4}30%{transform:translateY(-5px);opacity:1}}#chat-name-form{padding:6px 14px 4px;flex-shrink:0;display:flex;flex-direction:column;gap:4px}#chat-name-input{border:1px solid #e5e7eb;border-radius:8px;padding:7px 11px;font-size:13px;outline:none;font-family:inherit;transition:border-color .2s;width:100%;box-sizing:border-box}#chat-name-input:focus{border-color:#eb722f}.chat-name-hint{font-size:11px;color:#9ca3af;padding-left:2px}#chat-emoji-bar{padding:4px 10px;display:flex;gap:2px;overflow-x:auto;flex-shrink:0;scrollbar-width:none}#chat-emoji-bar::-webkit-scrollbar{display:none}.chat-emoji-btn{background:none;border:none;cursor:pointer;font-size:18px;padding:4px 5px;border-radius:8px;transition:transform .15s,background .1s;flex-shrink:0}.chat-emoji-btn:hover{background:#f3f4f6;transform:scale(1.3)}.chat-emoji-btn:active{transform:scale(.9)}#chat-input-row{display:flex;gap:8px;padding:8px 12px calc(12px + env(safe-area-inset-bottom,0px));border-top:1px solid #f3f4f6;align-items:flex-end;flex-shrink:0}#chat-input{flex:1;resize:none;border:1px solid #e5e7eb;border-radius:20px;padding:9px 14px;font-size:14px;font-family:inherit;outline:none;line-height:1.4;min-height:38px;max-height:120px;overflow-y:auto;transition:border-color .2s;box-sizing:border-box}#chat-input:focus{border-color:#eb722f}#chat-send-btn{width:38px;height:38px;border-radius:50%;background:#eb722f;color:#fff;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:background .15s,transform .15s}#chat-send-btn:hover{background:#d4611e;transform:scale(1.05)}#chat-send-btn:active{transform:scale(.92)}#chat-send-btn:disabled{background:#d1d5db;cursor:not-allowed;transform:none}#chat-emoji-bar.is-hidden{display:none}#chat-emoji-toggle,#chat-mic-btn{flex-shrink:0;width:36px;height:36px;border:none;background:transparent;color:#9ca3af;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:color .15s,background-color .15s,transform .15s;-webkit-tap-highlight-color:transparent;touch-action:none}#chat-emoji-toggle:hover,#chat-mic-btn:hover{color:#eb722f;background:rgba(235,114,47,.08)}#chat-emoji-toggle.is-active{color:#eb722f;background:rgba(235,114,47,.12)}#chat-mic-btn.is-recording{color:#fff;background:#ef4444;animation:chatRecPulse 1.1s ease-in-out infinite}@keyframes chatRecPulse{0%,100%{box-shadow:0 0 0 0 rgba(239,68,68,.45)}50%{box-shadow:0 0 0 9px rgba(239,68,68,0)}}#chat-rec-hint{display:flex;align-items:center;gap:7px;font-size:11px;color:#ef4444;padding:4px 14px 8px;background:#fff}#chat-rec-hint .rec-dot{width:8px;height:8px;border-radius:50%;background:#ef4444;animation:chatRecPulse 1.1s ease-in-out infinite}.chat-bubble--voice{padding:6px 8px !important}.chat-bubble--voice audio{width:210px;height:36px;display:block;outline:none}.chat-anim-emoji{width:22px;height:22px;vertical-align:-5px;display:inline-block}.chat-anim-emoji--bar{width:26px;height:26px;vertical-align:middle;pointer-events:none}.chat-anim-emoji--big{width:48px;height:48px}.chat-emoji-btn{display:inline-flex;align-items:center;justify-content:center}#chat-header.is-offline{background:#4b5563}#chat-header.is-offline .chat-avatar{background:#6b7280}.chat-bubble--ask{background:#fff7ed !important;border:1px solid #fed7aa;max-width:100% !important}.chat-bubble--ask .ask-title{font-size:13px;color:#7c2d12;margin-bottom:8px;line-height:1.45}.chat-bubble--ask .ask-row{display:flex;gap:6px}.chat-bubble--ask input{flex:1;min-width:0;border:1.5px solid #fdba74;border-radius:8px;padding:8px 10px;font-size:13px;outline:none;transition:border-color .15s,box-shadow .15s}.chat-bubble--ask input:focus{border-color:#eb722f;box-shadow:0 0 0 3px rgba(235,114,47,.15)}.chat-bubble--ask input.is-error{border-color:#ef4444;box-shadow:0 0 0 3px rgba(239,68,68,.15)}.chat-bubble--ask button{background:#eb722f;color:#fff;border:none;border-radius:8px;padding:8px 12px;font-size:12px;font-weight:700;cursor:pointer;white-space:nowrap;transition:background .15s,transform .15s}.chat-bubble--ask button:hover{background:#d4611e}.chat-bubble--ask button:active{transform:scale(.97)}