#water-chat{position:fixed;right:28px;bottom:72px;z-index:80;font-family:inherit;color:#173f50}#water-chat [hidden]{display:none!important}#water-chat button{cursor:pointer;font:inherit}#water-chat button:disabled{opacity:.5;cursor:default}#water-chat button:focus-visible,#water-chat textarea:focus-visible,#water-chat select:focus-visible{outline:2px solid #0799ad;outline-offset:3px}
#water-chat .chat-launch{border:0;background:transparent;padding:8px;width:88px;height:88px;position:relative;filter:drop-shadow(0 5px 6px #163e4c24)}.robot-head{display:flex;align-items:center;justify-content:center;width:70px;height:66px;border-radius:25px;background:linear-gradient(145deg,#fff 20%,#e4ecec 75%,#b8cecf);box-shadow:inset 2px 3px 4px white,inset -3px -4px 6px #b2c5c7}.robot-face{display:block;position:relative;width:52px;height:44px;border-radius:17px;background:linear-gradient(145deg,#225768,#0c2d3d);box-shadow:inset 0 2px 4px #081b2b55}.robot-face i{position:absolute;top:15px;width:6px;height:12px;background:#91fff0;box-shadow:0 0 5px #78fff780;border-radius:5px;left:12px;animation:chat-blink 7s infinite}.robot-face i+i{left:auto;right:12px}.robot-face b{position:absolute;left:22px;top:29px;width:9px;height:4px;border-bottom:2px solid #8bf9ef;border-radius:0 0 9px 9px}.chat-launch:hover .robot-head{transform:translateY(-3px)}@keyframes chat-blink{0%,45%,49%,100%{transform:scaleY(1)}47%{transform:scaleY(.12)}}#water-chat .chat-badge{position:absolute;right:0;top:0;min-width:21px;padding:3px;border-radius:20px;background:#d74657;color:white;font-size:12px;font-weight:600;text-align:center}
#water-chat .chat-panel{position:absolute;right:0;bottom:94px;width:390px;max-width:calc(100vw - 32px);height:560px;max-height:calc(100dvh - 185px);display:flex;flex-direction:column;border:1px solid #d1e2e7;border-radius:20px;background:#fff;box-shadow:0 14px 50px #183f502b;overflow:hidden}#water-chat header{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;background:#eff7f8;border-bottom:1px solid #dcebee;height:auto}#water-chat header strong{font-size:17px}#water-chat header small{display:block;margin-top:4px;color:#6c838e;font-size:12px}#water-chat .chat-close{background:none;border:0;font-size:26px;color:#6a8591;width:32px;height:32px}#water-chat .chat-tools{padding:12px 16px;display:flex;gap:8px;align-items:center}#water-chat .chat-tools label{display:flex;align-items:center;gap:8px;flex:1;min-width:0;font-size:12px}#water-chat select{min-width:0;flex:1;width:100%;padding:8px;border:1px solid #d7e6e9;border-radius:8px;color:#245266;background:white}#water-chat .chat-older,#water-chat .chat-latest{border:0;background:none;color:#087e94;font-size:12px;padding:6px}#water-chat .chat-error{margin:0 16px;color:#b93d48;font-size:12px;line-height:1.5}#water-chat .chat-error:empty{display:none}#water-chat .chat-messages{flex:1;min-height:0;overflow:auto;padding:12px 16px;background:#f7fafb;overscroll-behavior:contain}#water-chat article{margin:0 0 16px;display:flex;flex-direction:column;align-items:flex-start}#water-chat article.mine{align-items:flex-end}#water-chat article small{font-size:11px;color:#758b96;margin:0 0 5px}#water-chat article>div{max-width:90%;padding:10px 13px;border:1px solid #e0ebee;border-radius:4px 12px 12px 12px;background:white}#water-chat article.mine>div{background:#e2f4f2;border-color:#c6e8e3;border-radius:12px 4px 12px 12px}#water-chat article p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.6}#water-chat .chat-tag{font-size:12px;color:#00788e;margin-right:5px}#water-chat .chat-empty{color:#80949e;text-align:center;padding:40px 0;font-size:13px}
#water-chat .chat-compose{padding:12px 16px;border-top:1px solid #e0eaee;position:relative}#water-chat textarea{width:100%;box-sizing:border-box;resize:none;border:0;background:white;color:#173f50;line-height:1.6;font:inherit;font-size:14px;min-height:54px;padding:5px}#water-chat .chat-send-row{display:flex;gap:8px;align-items:center}#water-chat .chat-send-row small{font-size:10px;color:#8a9ba4;flex:1}#water-chat .chat-at{background:none;color:#087e94;border:0;padding:7px 0;font-size:12px}#water-chat .chat-send{background:#087e94;color:white;border:0;border-radius:16px;padding:7px 18px;font-size:13px}#water-chat .chat-mentions{display:flex;flex-wrap:wrap;gap:4px;max-height:70px;overflow:auto}#water-chat .chat-mentions button{background:#e8f5f5;border:0;border-radius:6px;color:#167085;font-size:12px;padding:3px 7px}#water-chat .chat-mention-options{position:absolute;bottom:100%;left:12px;right:12px;max-height:180px;overflow:auto;background:white;border:1px solid #d6e6eb;border-radius:12px;box-shadow:0 4px 20px #133e5019;padding:6px;display:flex;flex-wrap:wrap;gap:4px}#water-chat .chat-mention-options button{border:0;background:#f1f7f8;padding:7px 10px;border-radius:6px;color:#23586a;font-size:12px}
@media(max-width:600px){#water-chat{right:12px;bottom:70px}#water-chat .chat-panel{bottom:84px;width:calc(100vw - 24px);max-width:calc(100vw - 24px);max-height:calc(100dvh - 174px)}#water-chat .chat-launch{width:76px;height:76px}#water-chat .chat-send-row small{display:none}#water-chat .chat-send{margin-left:auto}}@media(prefers-reduced-motion:reduce){.robot-face i{animation:none}.chat-launch:hover .robot-head{transform:none}}

#water-chat .chat-badge{right:2px;top:1px;z-index:2;min-width:22px;height:22px;line-height:22px;padding:0 5px;box-sizing:border-box;border-radius:12px;background:#df4054;color:#fff;box-shadow:0 0 0 2px #fff,0 2px 6px #aa263333;font-size:12px;font-weight:700;pointer-events:none}#water-chat .chat-badge.has-mention{box-shadow:0 0 0 2px #fff,0 0 0 5px #f4b7c055}

/* Facial motion: stable silhouette, soft morphs, and independent brief eyelids. */
#water-chat .robot-head{animation:robot-breathe 6s ease-in-out infinite}
#water-chat .robot-face{--eye-h:12px;--eye-w:6px;--eye-y:15px;--gaze:0px;--mouth-w:9px;--mouth-h:4px;--mouth-y:29px;--mouth-fill:transparent;--mouth-radius:0 0 9px 9px}
#water-chat .robot-face i{animation:none;width:var(--eye-w);height:var(--eye-h);top:var(--eye-y);left:calc(12px + var(--gaze));transform-origin:center;transition:width .85s cubic-bezier(.22,1,.36,1),height .85s cubic-bezier(.22,1,.36,1),top .85s cubic-bezier(.22,1,.36,1),left .85s ease,right .85s ease,border-radius .85s ease,transform .85s ease}
#water-chat .robot-face i+i{left:auto;right:calc(12px - var(--gaze))}
#water-chat .robot-face b{box-sizing:border-box;left:50%;transform:translateX(-50%);width:var(--mouth-w);height:var(--mouth-h);top:var(--mouth-y);border-radius:var(--mouth-radius);background:var(--mouth-fill);transition:width .95s cubic-bezier(.22,1,.36,1),height .95s cubic-bezier(.22,1,.36,1),top .95s ease,border-radius .95s ease,background-color .95s ease,transform .95s ease}
#water-chat .robot-face[data-expression=happy]{--eye-h:5px;--eye-w:9px;--eye-y:18px;--mouth-w:13px;--mouth-h:6px}
#water-chat .robot-face[data-expression=wink] i+i{height:3px;top:20px;transform:rotate(-8deg)}
#water-chat .robot-face[data-expression=wink]{--mouth-w:11px}
#water-chat .robot-face[data-expression=curious]{--gaze:2px;--mouth-w:5px;--mouth-h:5px;--mouth-radius:50%}
#water-chat .robot-face[data-expression=curious] i:first-child{height:14px;top:13px}
#water-chat .robot-face[data-expression=surprised]{--eye-h:14px;--eye-w:8px;--eye-y:13px;--mouth-w:7px;--mouth-h:8px;--mouth-y:29px;--mouth-radius:50%;--mouth-fill:#8bf9ef}
#water-chat .robot-face[data-expression=thinking]{--gaze:-2px;--eye-h:9px;--eye-y:16px;--mouth-w:7px;--mouth-h:2px;--mouth-radius:2px}
#water-chat .robot-face[data-expression=thinking] b{transform:translateX(-20%) rotate(-8deg)}
#water-chat .robot-face[data-expression=sleepy]{--eye-h:3px;--eye-w:8px;--eye-y:20px;--mouth-w:5px;--mouth-h:3px}
#water-chat .robot-face[data-expression=laughing]{--eye-h:4px;--eye-w:9px;--eye-y:18px;--mouth-w:12px;--mouth-h:8px;--mouth-y:27px;--mouth-radius:2px 2px 9px 9px;--mouth-fill:#8bf9ef}
#water-chat .robot-face[data-expression=content]{--eye-h:5px;--eye-w:7px;--eye-y:18px;--mouth-w:12px;--mouth-h:3px;--mouth-y:30px}
#water-chat .robot-face[data-expression=playful]{--gaze:1px;--mouth-w:10px;--mouth-h:5px}
#water-chat .robot-face[data-expression=playful] i:first-child{height:4px;top:19px;transform:rotate(8deg)}
#water-chat .robot-blinking .robot-face i{transform:scaleY(.12);transition:transform .09s ease-in}
@keyframes robot-breathe{0%,100%{transform:translateY(0) rotate(-.5deg)}50%{transform:translateY(-2px) rotate(.5deg)}}
@media(prefers-reduced-motion:reduce){#water-chat .robot-head{animation:none}#water-chat .robot-face i,#water-chat .robot-face b{transition:none}#water-chat .robot-blinking .robot-face i{transform:none}}

/* Composer: consistent inset, independent input and action rows. */
#water-chat .chat-compose{flex:0 0 auto;display:flex;flex-direction:column;gap:10px;margin:0;padding:14px 16px 16px;box-sizing:border-box;background:#fff}
#water-chat .chat-compose textarea{display:block;flex:none;width:100%;height:72px;min-height:72px;max-height:72px;margin:0;padding:10px 12px;box-sizing:border-box;border:1px solid #d5e5e9;border-radius:12px;background:#f9fcfc;font-family:inherit;font-size:14px;line-height:22px;resize:none;outline:none;box-shadow:none}
#water-chat .chat-compose textarea:focus{border-color:#078ba0;box-shadow:0 0 0 2px #078ba014;outline:none}
#water-chat .chat-send-row{display:flex;flex:0 0 auto;justify-content:space-between;align-items:center;gap:12px;min-height:36px;margin:0;padding:0}
#water-chat .chat-send-row small{flex:1;min-width:0;margin:0;font-size:11px;line-height:16px;color:#7f939c}
#water-chat .chat-send{flex:0 0 auto;min-width:68px;height:36px;min-height:36px;margin:0;padding:7px 18px;border-radius:18px;line-height:22px;box-sizing:border-box}
#water-chat .chat-mentions:empty{display:none}
@media(max-width:600px){#water-chat .chat-compose{padding:12px;gap:8px}#water-chat .chat-compose textarea{height:64px;min-height:64px;max-height:64px}}

#water-chat .chat-tip{position:absolute;right:48px;bottom:88px;width:216px;max-width:calc(100vw - 110px);box-sizing:border-box;padding:12px 15px;border:1px solid #d8e8eb;border-radius:14px 14px 4px 14px;background:#fff;color:#305e6d;font-size:13px;line-height:1.65;box-shadow:0 4px 18px #193f5012;pointer-events:none}


/* Five gentle hover gestures, one per pointer entry; the hit target stays still. */
#water-chat .chat-launch:hover .robot-head{transform-origin:50% 65%}
#water-chat .chat-launch:hover .robot-head[data-hover=wiggle]{animation:robot-hover-wiggle 1.1s ease-in-out 1}
#water-chat .chat-launch:hover .robot-head[data-hover=nod]{animation:robot-hover-nod 1.1s ease-in-out 1}
#water-chat .chat-launch:hover .robot-head[data-hover=bounce]{animation:robot-hover-bounce 1.1s ease-in-out 1}
#water-chat .chat-launch:hover .robot-head[data-hover=tilt]{animation:robot-hover-tilt 1.1s ease-in-out 1}
#water-chat .chat-launch:hover .robot-head[data-hover=greet]{animation:robot-hover-greet 1.1s ease-in-out 1}
@keyframes robot-hover-wiggle{0%,100%{transform:translateY(0) rotate(0)}20%{transform:translateY(-1px) rotate(-4deg)}40%{transform:translateY(-2px) rotate(4deg)}60%{transform:translateY(-1px) rotate(-2deg)}80%{transform:rotate(2deg)}}
@keyframes robot-hover-nod{0%,100%{transform:translateY(0) scaleY(1)}30%{transform:translateY(3px) scaleY(.96)}60%{transform:translateY(-1px) scaleY(1.015)}80%{transform:translateY(1px) scaleY(.99)}}
@keyframes robot-hover-bounce{0%,100%{transform:translateY(0)}35%{transform:translateY(-5px)}65%{transform:translateY(1px)}82%{transform:translateY(-1px)}}
@keyframes robot-hover-tilt{0%,100%{transform:rotate(0)}35%,50%{transform:rotate(-7deg)}75%{transform:rotate(2deg)}}
@keyframes robot-hover-greet{0%,100%{transform:scale(1)}40%{transform:scale(1.065)}70%{transform:scale(.99)}}
@media(prefers-reduced-motion:reduce){#water-chat .chat-launch:hover .robot-head[data-hover]{animation:none;transform:none}}

#water-chat .chat-pet{display:inline-flex;align-items:center;justify-content:center;flex:0 0 40px;width:40px;height:40px;border:1px solid #cce5e5;border-radius:50%;background:#eff9f8;box-sizing:border-box;text-decoration:none;transition:background .18s,transform .18s}#water-chat .chat-pet img{display:block;width:36px;height:36px;object-fit:contain}#water-chat .chat-pet:hover{background:#d9f1ed;transform:translateY(-2px)}#water-chat .chat-pet:focus-visible{outline:2px solid #087e94;outline-offset:3px}#water-chat .chat-pet+.chat-send{margin-left:0}@media(max-width:600px){#water-chat .chat-pet{margin-left:auto}}@media(prefers-reduced-motion:reduce){#water-chat .chat-pet{transition:none}#water-chat .chat-pet:hover{transform:none}}

#water-chat .pet-panel{z-index:2}#water-chat .pet-close{border:0;background:none;font-size:26px;color:#6a8591;width:32px;height:32px}#water-chat .pet-welcome{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;background:#f3faf8;padding:24px;text-align:center}#water-chat .pet-welcome img{width:100px;height:100px;object-fit:contain}#water-chat .pet-welcome p{margin:0}#water-chat .pet-welcome small{font-size:11px;color:#748c91}#water-chat .pet-claim{background:#087e94;color:#fff;border:0;border-radius:22px;padding:12px 30px}#water-chat .pet-panel iframe{border:0;width:100%;flex:1;min-height:0;background:#edf4f3}

#water-chat .chat-pet{flex:0 1 auto;width:auto;border-radius:16px;padding:4px 9px;gap:4px;font-size:12px}#water-chat .chat-pet img{width:25px;height:25px}#water-chat .chat-platform{border:1px solid #cce5e5;background:#eff9f8;color:#235a65;border-radius:16px;padding:8px 10px;font-size:12px}#water-chat .chat-send-row{gap:6px}#water-chat .chat-pet+.chat-platform+.chat-send{margin-left:auto}@media(max-width:600px){#water-chat .chat-pet{margin-left:0}}

#water-chat .chat-pet-icon{display:block;flex:0 0 22px;width:22px;height:22px;color:#087e94}

#water-chat .chat-pet img.chat-pet-egg{width:24px;height:28px;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(0.6px 0 0 #164959) drop-shadow(-0.6px 0 0 #164959) drop-shadow(0 0.6px 0 #164959);flex:0 0 24px}

#water-chat .pet-welcome{position:relative;min-height:0;padding:24px;display:grid;place-items:center;gap:0}#water-chat .pet-welcome .pet-claim{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);margin:0;white-space:nowrap}#water-chat .pet-welcome>small{position:absolute;left:16px;right:16px;top:calc(50% + 40px);text-align:center}

#water-chat .chat-tip{display:none!important}
/* Phone popups use the viewport, independent of the launcher position. */
@media(max-width:600px),(pointer:coarse) and (max-height:600px){
 #water-chat .chat-panel{position:fixed;left:max(8px,env(safe-area-inset-left));right:max(8px,env(safe-area-inset-right));top:max(8px,env(safe-area-inset-top));bottom:max(8px,env(safe-area-inset-bottom));width:auto;max-width:none;height:auto;max-height:none;border-radius:16px;box-sizing:border-box}
 #water-chat .chat-panel header{flex:0 0 auto;padding:14px 16px}
 #water-chat .pet-panel iframe{flex:1 1 0;min-height:0;width:100%;overscroll-behavior:contain}
 #water-chat:has(.chat-panel:not([hidden])) .chat-launch{visibility:hidden}
}
