/* All rules are scoped to the standalone ZENTERA mascot. */
#zentera-duck{--zd-orange:#ed8039;--zd-ink:#21323d;position:fixed;right:20px;bottom:max(16px,env(safe-area-inset-bottom));z-index:5000;font:14px/1.45 system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--zd-ink);isolation:isolate;text-align:left}
#zentera-duck *{box-sizing:border-box}#zentera-duck [hidden]{display:none!important}
#zentera-duck button,#zentera-duck a{-webkit-tap-highlight-color:transparent}
#zentera-duck button{font:inherit;cursor:pointer}
#zentera-duck .zd-launcher{position:relative;display:block;width:106px;height:125px;padding:0 0 14px;border:0;background:transparent;color:var(--zd-ink);border-radius:26px;touch-action:manipulation}
#zentera-duck .zd-duck{position:relative;display:block;width:106px;height:109px;overflow:visible;filter:drop-shadow(0 3px 2px #172a331c);transition:transform .2s}
#zentera-duck .zd-launcher:hover .zd-duck{transform:translateY(-3px) rotate(-3deg)}
#zentera-duck .zd-caption{position:absolute;bottom:0;left:50%;transform:translateX(-50%);border:1px solid #dce3e6;border-radius:20px;background:#fffffff5;padding:3px 11px;font-size:10px;letter-spacing:.04em;font-weight:700;white-space:nowrap;box-shadow:0 3px 10px #1526300b}
#zentera-duck .zd-shadow{position:absolute;left:20px;bottom:23px;width:70px;height:9px;border-radius:50%;background:#1f354629;filter:blur(3px)}
#zentera-duck .zd-notice{position:absolute;z-index:2;right:4px;top:9px;min-width:24px;height:24px;border:3px solid white;border-radius:20px;background:#e67b35;color:white;font-size:10px;line-height:18px;font-weight:800;text-align:center;padding:0 3px;box-shadow:0 2px 9px #8b4e2526}
#zentera-duck .zd-popover{position:absolute;right:9px;bottom:132px;width:320px;max-width:calc(100vw - 28px);max-height:calc(100dvh - 175px);overflow:auto;border:1px solid #d9e2e5;border-radius:18px;background:#fff;box-shadow:0 16px 60px #18313b26,0 3px 10px #18313b10;animation:zd-reveal .18s ease-out}
#zentera-duck .zd-header{display:flex;align-items:center;gap:9px;padding:17px 14px 14px;border-bottom:1px solid #edf0f2}
#zentera-duck .zd-header strong{display:block;font-size:13px;font-weight:750;letter-spacing:.01em}
#zentera-duck .zd-logo-mark{display:grid;place-items:center;width:31px;height:34px;flex:0 0 auto;border-radius:9px;background:#20323c;color:#ff9955;font-weight:900;font-style:italic;font-size:23px}
#zentera-duck .zd-subtitle{display:block;font-size:10px;color:#7b8b94;margin-top:2px}
#zentera-duck .zd-close{flex:0 0 28px;height:28px;border:0;border-radius:8px;background:#f1f4f5;color:#647983;font-size:20px;line-height:1}
#zentera-duck .zd-sound{position:relative;margin-left:auto;flex:0 0 28px;height:28px;padding:0;border:1px solid #e4e9eb;border-radius:8px;background:#fff;color:#8c9ba2;font-size:18px;line-height:1}
#zentera-duck .zd-sound[aria-pressed=true]{color:#bd6328;background:#fff3e9;border-color:#e9ba98}
#zentera-duck .zd-sound span{position:absolute;right:2px;bottom:1px;font-size:13px;font-weight:700;background:#fff;border-radius:9px}
#zentera-duck .zd-message{font-size:13px;padding:0;margin:15px 16px 12px;overflow-wrap:anywhere;white-space:pre-line}
#zentera-duck .zd-countdown{margin:0 16px 12px;background:#fff1e6;border-radius:8px;padding:8px 10px;font-size:12px;font-variant-numeric:tabular-nums;color:#98440e}
#zentera-duck .zd-counts{margin:0 16px 12px;border-radius:7px;background:#f2f5f6;padding:7px 9px;font-size:11px;font-weight:650;color:#61727b}
#zentera-duck .zd-actions{display:grid;gap:7px;padding:0 16px 16px}
#zentera-duck .zd-actions a,#zentera-duck .zd-actions button{display:block;width:100%;border:1px solid #e4e9eb;background:#fff;text-decoration:none;color:#2d424e;border-radius:9px;text-align:left;padding:10px 12px;font-size:12px;font-weight:650;line-height:1.4;overflow-wrap:anywhere;transition:background .15s,border-color .15s}
#zentera-duck .zd-actions a:after,#zentera-duck .zd-actions button:after{content:'↗';float:right;color:#d0783e;padding-left:8px}
#zentera-duck .zd-actions a:hover,#zentera-duck .zd-actions button:hover{background:#fff7f1;border-color:#edb18a}
#zentera-duck .zd-empty{font-size:12px;color:#81919a;margin:0}
#zentera-duck footer{padding:10px 16px;background:#f7f9f9;border-top:1px solid #edf0f2;color:#8a979e;font-size:10px}
#zentera-duck :is(button,a):focus-visible{outline:3px solid #e78843;outline-offset:3px}
#zentera-duck .zd-head{transform-origin:83px 81px}#zentera-duck .zd-wing{transform-origin:110px 101px}#zentera-duck .zd-character{transform-origin:80px 143px}#zentera-duck .zd-foot{transform-origin:80px 141px}
#zentera-duck .zd-eyes{transform-origin:85px 60px;animation:zd-blink 9s infinite}
#zentera-duck .zd-brows,#zentera-duck .zd-prop,#zentera-duck .zd-sparkles{opacity:0;transition:opacity .2s}
#zentera-duck[data-mood=concerned] .zd-head{transform:rotate(-5deg)}
#zentera-duck[data-mood=annoyed] .zd-brows{opacity:.55}
#zentera-duck[data-mood=angry] .zd-brows,#zentera-duck[data-mood=furious] .zd-brows{opacity:1}
#zentera-duck[data-mood=angry] .zd-eyes,#zentera-duck[data-mood=furious] .zd-eyes{fill:#ffb16b}
#zentera-duck[data-mood=furious] .zd-head{transform:rotate(-7deg)}
#zentera-duck[data-mood=furious] .zd-logo-mark{color:#ff795c}
#zentera-duck[data-mood=happy] .zd-eyes{fill:#c4ffdf}
#zentera-duck.zd-play .zd-head{animation:zd-curious 3.8s ease-in-out}
#zentera-duck.zd-play .zd-wing{animation:zd-wave 1s ease-in-out 3}
#zentera-duck.zd-play[data-scene=report] .zd-clipboard,#zentera-duck.zd-play[data-scene=hours] .zd-clock,#zentera-duck.zd-play[data-scene=finance] .zd-calculator,#zentera-duck.zd-play[data-scene=cars] .zd-car,#zentera-duck.zd-play[data-scene=chat] .zd-keyboard{opacity:1}
#zentera-duck.zd-play[data-scene=report] .zd-wing,#zentera-duck.zd-play[data-scene=hours] .zd-wing,#zentera-duck.zd-play[data-scene=finance] .zd-wing{animation:none}
#zentera-duck.zd-play[data-scene=chat] .zd-wing{animation:zd-type .24s ease-in-out 14}
#zentera-duck.zd-play[data-scene=chat] .zd-character{animation:zd-dance .65s ease-in-out 5}
#zentera-duck.zd-play[data-scene=cars] .zd-character{animation:zd-drive .55s ease-in-out 6}
#zentera-duck.zd-play[data-scene=hours] .zd-clock{transform-origin:123px 119px;animation:zd-clock 2s ease-in-out}
#zentera-duck.zd-celebrate .zd-character{animation:zd-hop .65s ease-in-out 4}
#zentera-duck.zd-celebrate .zd-sparkles{opacity:1;animation:zd-twinkle .7s ease-in-out 5}
#zentera-duck.zd-paused *,#zentera-duck.zd-paused *:before,#zentera-duck.zd-paused *:after{animation-play-state:paused!important}
@keyframes zd-reveal{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@keyframes zd-blink{0%,44%,47%,89%,92%,100%{transform:scaleY(1)}45%,46%,90%,91%{transform:scaleY(.08)}}
@keyframes zd-curious{0%,100%{transform:rotate(0)}25%,45%{transform:rotate(-9deg)}65%,80%{transform:rotate(5deg)}}
@keyframes zd-wave{0%,100%{transform:rotate(0)}35%,65%{transform:rotate(-28deg)}}
@keyframes zd-type{50%{transform:rotate(12deg) translateY(3px)}}
@keyframes zd-dance{0%,100%{transform:rotate(-3deg)}50%{transform:rotate(4deg) translateY(-2px)}}
@keyframes zd-drive{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-2px) rotate(1deg)}}
@keyframes zd-clock{30%{transform:rotate(-15deg)}65%{transform:rotate(12deg)}}
@keyframes zd-hop{0%,100%{transform:translateY(0)}40%{transform:translateY(-13px) rotate(-5deg)}70%{transform:translateY(0) scaleY(.96)}}
@keyframes zd-twinkle{50%{opacity:.3}}
@media(max-width:600px){#zentera-duck{right:10px;bottom:max(11px,env(safe-area-inset-bottom))}#zentera-duck .zd-launcher{width:82px;height:100px}#zentera-duck .zd-duck{width:82px;height:85px}#zentera-duck .zd-caption{font-size:9px;padding:2px 9px}#zentera-duck .zd-shadow{left:14px;bottom:19px;width:57px}#zentera-duck .zd-popover{right:0;bottom:110px;max-height:calc(100dvh - 145px)}#zentera-duck .zd-notice{right:0;top:2px}}
@media(prefers-reduced-motion:reduce){#zentera-duck *,#zentera-duck *:before,#zentera-duck *:after{animation:none!important;transition:none!important}}
@media print{#zentera-duck{display:none!important}}

#zentera-duck.zd-play[data-motion="1"] .zd-character{transform-origin:80px 120px;animation:zd-dance 0.72s ease-in-out 3;}
#zentera-duck.zd-play[data-motion="2"] .zd-character{transform-origin:80px 120px;animation:zd-drive 0.89s ease-in-out 4;}
#zentera-duck.zd-play[data-motion="3"] .zd-character{transform-origin:80px 120px;animation:zd-curious 1.06s ease-in-out 2;}
#zentera-duck.zd-play[data-motion="4"] .zd-character{transform-origin:80px 120px;animation:zd-v6-sway 1.23s ease-in-out 3;}
#zentera-duck.zd-play[data-motion="5"] .zd-character{transform-origin:80px 120px;animation:zd-v6-bounce 0.55s ease-in-out 4;}
#zentera-duck.zd-play[data-motion="6"] .zd-character{transform-origin:80px 120px;animation:zd-v6-peek 0.72s ease-in-out 2;}
#zentera-duck.zd-play[data-motion="7"] .zd-character{transform-origin:80px 120px;animation:zd-v6-spin 0.89s ease-in-out 3;}
#zentera-duck.zd-play[data-motion="8"] .zd-character{transform-origin:80px 120px;animation:zd-hop 1.06s ease-in-out 4;}
#zentera-duck.zd-play[data-motion="9"] .zd-character{transform-origin:80px 120px;animation:zd-dance 1.23s ease-in-out 2;}
#zentera-duck.zd-play[data-motion="10"] .zd-character{transform-origin:80px 120px;animation:zd-drive 0.55s ease-in-out 3;}
#zentera-duck.zd-play[data-motion="11"] .zd-character{transform-origin:80px 120px;animation:zd-curious 0.72s ease-in-out 4;}
#zentera-duck.zd-play[data-motion="12"] .zd-character{transform-origin:80px 120px;animation:zd-v6-sway 0.89s ease-in-out 2;}
#zentera-duck.zd-play[data-motion="13"] .zd-character{transform-origin:80px 120px;animation:zd-v6-bounce 1.06s ease-in-out 3;}
#zentera-duck.zd-play[data-motion="14"] .zd-character{transform-origin:80px 120px;animation:zd-v6-peek 1.23s ease-in-out 4;}
#zentera-duck.zd-play[data-motion="15"] .zd-character{transform-origin:80px 120px;animation:zd-v6-spin 0.55s ease-in-out 2;}
#zentera-duck.zd-play[data-motion="16"] .zd-character{transform-origin:80px 120px;animation:zd-hop 0.72s ease-in-out 3;}
#zentera-duck.zd-play[data-motion="17"] .zd-character{transform-origin:80px 120px;animation:zd-dance 0.89s ease-in-out 4;}
#zentera-duck.zd-play[data-motion="18"] .zd-character{transform-origin:80px 120px;animation:zd-drive 1.06s ease-in-out 2;}
#zentera-duck.zd-play[data-motion="19"] .zd-character{transform-origin:80px 120px;animation:zd-curious 1.23s ease-in-out 3;}
#zentera-duck.zd-play[data-motion="20"] .zd-character{transform-origin:80px 120px;animation:zd-v6-sway 0.55s ease-in-out 4;}
#zentera-duck.zd-play[data-motion="21"] .zd-character{transform-origin:80px 120px;animation:zd-v6-bounce 0.72s ease-in-out 2;}
#zentera-duck.zd-play[data-motion="22"] .zd-character{transform-origin:80px 120px;animation:zd-v6-peek 0.89s ease-in-out 3;}
#zentera-duck.zd-play[data-motion="23"] .zd-character{transform-origin:80px 120px;animation:zd-v6-spin 1.06s ease-in-out 4;}
#zentera-duck.zd-play[data-motion="24"] .zd-character{transform-origin:80px 120px;animation:zd-hop 1.23s ease-in-out 2;}
@keyframes zd-v6-sway{25%{transform:translateX(-5px) rotate(-3deg)}75%{transform:translateX(5px) rotate(3deg)}}@keyframes zd-v6-bounce{40%{transform:translateY(-7px) scale(1.03,.97)}80%{transform:scale(.98,1.02)}}@keyframes zd-v6-peek{35%,70%{transform:translateX(-7px) rotate(-7deg)}}@keyframes zd-v6-spin{40%{transform:rotate(10deg) translateY(-4px)}75%{transform:rotate(-5deg)}}

/* v6.1: restore the original Microduck silhouette, keep helper actions. */
#zentera-duck .zd-launcher{width:106px;height:154px;padding:0 0 18px}
#zentera-duck .zd-duck{width:106px;height:136px}
#zentera-duck .zd-popover{bottom:162px}
#zentera-duck .zd-character{transform-origin:70px 165px}
#zentera-duck .zd-head{transform-origin:68px 61px}
#zentera-duck .zd-eyes{transform-origin:68px 38px}
#zentera-duck .zd-foot{transform-box:fill-box;transform-origin:center top}
#zentera-duck[data-mood=angry] .zd-eyes,#zentera-duck[data-mood=furious] .zd-eyes{filter:drop-shadow(0 0 3px #ff7324)}
@media(max-width:600px){#zentera-duck .zd-launcher{width:82px;height:126px}#zentera-duck .zd-duck{width:82px;height:106px}#zentera-duck .zd-popover{bottom:134px}}

/* Mobile repositioning; clicks still open the helper. */
@media(max-width:700px),(pointer:coarse){#zentera-duck .zd-launcher{touch-action:none;user-select:none;-webkit-user-select:none}#zentera-duck.zd-dragging .zd-duck{transform:none!important;animation:none!important}#zentera-duck .zd-popover{animation:none}}

/* Optional device-motion reaction; independent of task/login state. */
#zentera-duck .zd-motion-controls{padding:10px 16px;border-top:1px solid #edf0f2}
#zentera-duck .zd-motion{width:100%;padding:9px 12px;border:1px solid #dce3e6;border-radius:9px;background:#f7f9f9;color:#21323d;font-size:12px}
#zentera-duck .zd-motion[aria-pressed=true]{border-color:#ed8039;background:#fff2e8}
#zentera-duck .zd-motion-status{margin:7px 0 0;color:#647983;font-size:11px}
#zentera-duck .zd-dizzy-caption{position:absolute;bottom:calc(100% + 6px);right:0;max-width:170px;width:max-content;padding:8px 12px;border-radius:12px;border:1px solid #efb783;background:#fff7e9;color:#824619;font-size:12px;pointer-events:none}
#zentera-duck.zd-dizzy .zd-character{animation:zd-seasick .7s ease-in-out 6!important}
#zentera-duck.zd-dizzy .zd-head{animation:zd-woozy .55s ease-in-out 7!important}
#zentera-duck.zd-dizzy .zd-eyes{animation:zd-dizzy-eye .6s ease-in-out 7!important}
@keyframes zd-seasick{0%,100%{transform:rotate(0)}25%{transform:translateX(-5px) rotate(-8deg)}75%{transform:translateX(5px) rotate(8deg)}}
@keyframes zd-woozy{25%{transform:rotate(10deg)}75%{transform:rotate(-10deg)}}
@keyframes zd-dizzy-eye{50%{transform:scaleY(.25);opacity:.6}}
@media(prefers-reduced-motion:reduce){#zentera-duck.zd-dizzy .zd-character,#zentera-duck.zd-dizzy .zd-head,#zentera-duck.zd-dizzy .zd-eyes{animation:none!important}}
