#i-guide{position:fixed;right:1rem;bottom:1rem;z-index:49;font:15px/1.45 system-ui;color:#102640}#i-guide .i-toggle{float:right;background:white;border:1px solid #cdd5dc;border-radius:50%;width:52px;height:52px;box-shadow:0 3px 14px #19334d33;cursor:pointer}#i-guide section{position:absolute;bottom:60px;right:0;background:white;border:1px solid #ccd6df;border-radius:12px;padding:18px;width:min(320px,calc(100vw - 32px));box-sizing:border-box;box-shadow:0 6px 30px #10264029;max-height:65vh;overflow:auto}#i-guide p{margin:.65em 0}#i-guide input{box-sizing:border-box;width:100%;padding:8px}#i-guide form button{margin-top:6px}#i-guide a{color:#164c86}
#i-guide .voice-controls{margin-top:.6rem}#i-guide .voice-controls small{display:block;margin-top:.4rem;color:#455769}

#i-guide .i-toggle{display:grid;place-items:center}
.i-mascot{display:block;position:relative;width:10px;height:34px;transform-origin:50% 98%;animation:i-sway 5s ease-in-out infinite}
.i-head,.i-body{position:absolute;left:50%;transform:translateX(-50%)}
.i-head{top:0;width:9px;height:9px;background:#fc171d}
.i-body{bottom:0;width:8px;height:23px;background:#071942}
.i-eyes{position:absolute;inset:3px 0 auto;height:3px;transform:translateX(var(--gaze,0));transition:transform .15s}
.i-eyes b{position:absolute;top:0;width:2px;height:3px;background:#fff;transform-origin:center;animation:i-play 6s ease-in-out infinite}
.i-eyes b:first-child{left:1.5px;--in:0.65px;--out:-0.5px}
.i-eyes b:last-child{right:1.5px;--in:-0.65px;--out:0.5px}
@keyframes i-play{0%,37%,59%,73%,78%,100%{transform:none}44%{transform:translateX(var(--out))}52%{transform:translateX(var(--in))}75%{transform:scaleY(.24)}}
.i-mascot.winking .i-eyes b{animation:none}
.i-mascot.winking:not(.wink-right) .i-eyes b:first-child,.i-mascot.winking.wink-right .i-eyes b:last-child{animation:i-wink .55s ease-in-out}
@keyframes i-wink{0%,100%{transform:none}32%,68%{transform:translateY(.5px) rotate(-14deg) scaleY(.24)}}
@keyframes i-sway{0%,54%,100%{transform:rotate(0)}64%{transform:rotate(-8deg)}78%{transform:rotate(7deg)}88%{transform:rotate(-3deg)}}
@media(prefers-reduced-motion:reduce){.i-mascot{animation:none}}

@media(prefers-reduced-motion:reduce){#i-guide .i-eyes,#i-guide .i-eyes b{animation:none;transition:none;transform:none}}
#i-guide .i-mascot:is([data-pose=listening],[data-pose=thinking]){animation:none}
#i-guide .i-mascot:is([data-pose=listening],[data-pose=thinking],[data-pose=answering]) .i-eyes b{animation:none}
#i-guide .i-mascot[data-pose=listening] .i-eyes,#i-guide .i-mascot[data-pose=answering] .i-eyes{transform:none}
#i-guide .i-mascot[data-pose=thinking] .i-eyes{transform:translateY(-2px)}
#i-guide .i-mascot[data-pose=answering]{animation:i-answer .95s ease-in-out infinite}
@keyframes i-answer{0%,100%{transform:rotate(0)}25%{transform:rotate(-6deg)}75%{transform:rotate(6deg)}}
@media(prefers-reduced-motion:reduce){#i-guide .i-mascot[data-pose=answering]{animation:none}}
