#hannes-mascot{position:fixed;right:18px;bottom:16px;z-index:8000;font:13px/1.45 system-ui,sans-serif;color:#e6eff7;pointer-events:none}#hannes-mascot *{box-sizing:border-box}#hannes-mascot button{cursor:pointer}#hannes-mascot .hannes-character{pointer-events:auto;display:block;margin-left:auto;padding:0;background:transparent;border:0;width:91px;height:112px;filter:drop-shadow(0 7px 9px #0009);transform-origin:50% 90%;animation:hannes-sway 6s ease-in-out infinite}#hannes-mascot .hannes-character[hidden]{display:none}
#hannes-mascot .hannes-character:hover{filter:drop-shadow(0 0 10px #47b8ed88)}#hannes-mascot .hannes-character img{width:100%;height:100%;display:block}#hannes-mascot .hannes-panel{pointer-events:auto;width:252px;background:#18232f;border:1px solid #3d657f;border-radius:12px;box-shadow:0 15px 45px #000b;padding:13px;margin-bottom:5px}#hannes-mascot .hannes-panel[hidden]{display:none}#hannes-mascot .hannes-title{display:flex;justify-content:space-between;align-items:center;font-weight:700;letter-spacing:.05em;color:#90d4f5;margin-bottom:9px}#hannes-mascot .hannes-close{background:transparent;border:0;color:#b7c8d7;padding:1px 6px}#hannes-mascot .hannes-message{font-size:12px;color:#bdcdd9;min-height:34px;margin:0 0 10px}#hannes-mascot .hannes-actions{display:grid;gap:6px}#hannes-mascot .hannes-actions button{background:#233747;color:#e7f3fa;border:1px solid #37536a;border-radius:7px;padding:7px 9px;text-align:left}#hannes-mascot .hannes-actions button:hover{border-color:#4fb5e9}#hannes-mascot .hannes-footer{display:flex;align-items:center;gap:7px;margin-top:10px;font-size:11px;color:#a7bac9}#hannes-mascot .hannes-footer input{accent-color:#329bd3}#hannes-mascot .hannes-reopen{pointer-events:auto;position:fixed;right:16px;bottom:14px;padding:7px 11px;background:#1c3345;border:1px solid #3b7899;border-radius:9px;color:#c4eaff}#hannes-mascot .hannes-reopen[hidden]{display:none}@keyframes hannes-sway{0%,85%,100%{transform:rotate(0deg)}89%{transform:rotate(-5deg)}94%{transform:rotate(3deg)}}@media(prefers-reduced-motion:reduce){#hannes-mascot .hannes-character{animation:none}}@media(max-width:650px){#hannes-mascot{right:8px;bottom:8px}#hannes-mascot .hannes-character{width:65px;height:80px}}

/* Bright eyes, subtle gaze and blink; no impact on editor layout. */
#hannes-mascot .hannes-character svg{width:100%;height:100%;display:block;overflow:visible}
#hannes-mascot .hannes-pupils{transition:transform .32s ease-out}
#hannes-mascot .hannes-eyelids{transform-origin:72px 79px;transform:scaleY(0);pointer-events:none}
#hannes-mascot .hannes-eyelids path{stroke-width:17}
#hannes-mascot .hannes-eyelids.hannes-blink{animation:hannes-blink .19s ease-in-out}
@keyframes hannes-blink{0%,100%{transform:scaleY(0)}45%,60%{transform:scaleY(1)}}
@media(prefers-reduced-motion:reduce){#hannes-mascot .hannes-pupils{transition:none}#hannes-mascot .hannes-eyelids.hannes-blink{animation:none}}

/* Movable companion: the panel follows its character, not the editor layout. */
#hannes-mascot .hannes-character{touch-action:none;user-select:none;cursor:grab}
#hannes-mascot .hannes-character:active{cursor:grabbing}
#hannes-mascot .hannes-panel{position:absolute;bottom:100%;right:0;margin-bottom:6px;margin-top:6px}

/* Read-only input/output recommendations. Scroll instead of covering the workspace. */
#hannes-mascot .hannes-panel{max-height:min(72vh,560px);overflow-y:auto}
#hannes-mascot .hannes-suggestions{margin-top:9px;border-top:1px solid #37536a;padding-top:6px;max-height:220px;overflow-y:auto;font-size:11px}
#hannes-mascot .hannes-suggestions[hidden]{display:none}
#hannes-mascot .hannes-suggestion-heading{color:#92d7f5;font-weight:700;margin:7px 0 4px}
#hannes-mascot .hannes-suggestion-list{display:grid;gap:4px;color:#d5e5ef}
#hannes-mascot .hannes-suggestion-list div{padding:5px 7px;border-radius:5px;background:#243849}
#hannes-mascot .hannes-suggestion-list span{color:#a7bac9}

/* v11: Keep companion heading/actions fixed; scroll only recommendations. */
#hannes-mascot .hannes-panel { display:flex; flex-direction:column; overflow:hidden; }
#hannes-mascot .hannes-panel[hidden] { display:none; }
#hannes-mascot .hannes-title, #hannes-mascot .hannes-message, #hannes-mascot .hannes-actions, #hannes-mascot .hannes-footer { flex:0 0 auto; }
#hannes-mascot .hannes-suggestions { flex:1 1 auto; min-height:0; max-height:none; overflow-y:auto; }

#hannes-mascot .hannes-character.hannes-sleeping {
  animation:none;transform:rotate(5deg);transition:transform 1.3s ease-in-out;
}
/* Hide the bright eyeballs entirely while asleep, not merely cover them
   with a semi-transparent eyelid. Show only a dark closed-eye stroke. */
#hannes-mascot .hannes-character.hannes-sleeping .hannes-eye-white,
#hannes-mascot .hannes-character.hannes-sleeping .hannes-pupils {opacity:0}
#hannes-mascot .hannes-character.hannes-sleeping .hannes-eyelids {
  transform:none;opacity:1;
}
#hannes-mascot .hannes-character.hannes-sleeping .hannes-eyelids path {stroke-width:2.5}
#hannes-mascot .hannes-character.hannes-sleeping .hannes-pupils {transform:none!important}
@media(prefers-reduced-motion:reduce){
  #hannes-mascot .hannes-character.hannes-sleeping{transform:none;transition:none}
}

/* v20: Retro sleep bubbles, shown only while the companion is asleep. */
#hannes-mascot .hannes-character.hannes-sleeping {
  animation:hannes-sleep-bob 3.8s ease-in-out infinite;
}
#hannes-mascot .hannes-character.hannes-sleeping::after {
  content:"Z z z";
  position:absolute;
  left:80%;top:-9px;
  white-space:nowrap;
  font:700 15px/1 system-ui,sans-serif;
  letter-spacing:2px;
  color:#a9dfff;
  text-shadow:0 1px 4px #061421;
  pointer-events:none;
  animation:hannes-sleep-zzz 3s ease-in-out infinite;
}
@keyframes hannes-sleep-bob {
  0%,100% {transform:rotate(5deg) translateY(0)}
  50% {transform:rotate(6deg) translateY(2px)}
}
@keyframes hannes-sleep-zzz {
  0%,100% {opacity:0;transform:translate(0,7px) scale(.85)}
  25%,70% {opacity:.95}
  85% {opacity:0;transform:translate(9px,-15px) scale(1.08)}
}
@media(prefers-reduced-motion:reduce) {
  #hannes-mascot .hannes-character.hannes-sleeping {animation:none}
  #hannes-mascot .hannes-character.hannes-sleeping::after {animation:none;opacity:.85}
}

/* v30.1: short, interruptible character reactions; no animation when reduced motion is requested. */
#hannes-mascot .hannes-character.hannes-wave{animation:hannes-wave 1.05s ease-in-out 1}
#hannes-mascot .hannes-character.hannes-celebrate{animation:hannes-celebrate .9s ease-out 1}
#hannes-mascot .hannes-character.hannes-curious{animation:hannes-curious 1.05s ease-in-out 1}
#hannes-mascot .hannes-character.hannes-thinking{animation:hannes-thinking 1.05s ease-in-out 1}
#hannes-mascot .hannes-character.hannes-confused{animation:hannes-confused .75s ease-in-out 1}
@keyframes hannes-wave{0%,100%{transform:rotate(0)}25%{transform:rotate(-13deg)}55%{transform:rotate(11deg)}80%{transform:rotate(-6deg)}}
@keyframes hannes-celebrate{0%,100%{transform:translateY(0) scale(1)}38%{transform:translateY(-15px) scale(1.08)}70%{transform:translateY(-3px) scale(.97)}}
@keyframes hannes-curious{0%,100%{transform:rotate(0)}35%,65%{transform:rotate(12deg)}}
@keyframes hannes-thinking{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(3px) rotate(-5deg)}}
@keyframes hannes-confused{0%,100%{transform:translateX(0)}25%,75%{transform:translateX(-5px)}50%{transform:translateX(5px)}}
@media(prefers-reduced-motion:reduce){
  #hannes-mascot .hannes-character.hannes-wave,
  #hannes-mascot .hannes-character.hannes-celebrate,
  #hannes-mascot .hannes-character.hannes-curious,
  #hannes-mascot .hannes-character.hannes-thinking,
  #hannes-mascot .hannes-character.hannes-confused{animation:none}
}

/* Hannes scoots out of a context menu's way, then returns to his saved spot. */
#hannes-mascot.hannes-dodging { transition: left .22s ease-out, top .22s ease-out; }
@media(prefers-reduced-motion:reduce) { #hannes-mascot.hannes-dodging { transition: none; } }

/* After a manual reposition, Hannes briefly looks around in confusion. */
#hannes-mascot .hannes-character.hannes-drag-dizzy{animation:hannes-drag-dizzy 1.05s ease-in-out 1}
@keyframes hannes-drag-dizzy{0%,100%{transform:rotate(0) translateY(0)}18%{transform:rotate(-10deg) translateY(-3px)}40%{transform:rotate(8deg) translateY(1px)}65%{transform:rotate(-5deg)}82%{transform:rotate(3deg)}}
@media(prefers-reduced-motion:reduce){#hannes-mascot .hannes-character.hannes-drag-dizzy{animation:none}}

/* v30.2: actionable port suggestions and consistent narrow scrollbar. */
#hannes-mascot .hannes-suggestion-add{display:block;width:100%;text-align:left;color:#d5e5ef;background:#243849;border:1px solid #37536a;border-radius:5px;padding:6px 7px;font:inherit;cursor:pointer}
#hannes-mascot .hannes-suggestion-add:hover,#hannes-mascot .hannes-suggestion-add:focus-visible{background:#30546c;border-color:#65b8dc;outline-offset:2px}
#hannes-mascot .hannes-suggestions::-webkit-scrollbar{width:7px}
#hannes-mascot .hannes-suggestions::-webkit-scrollbar-thumb{background:#517c94;border-radius:8px}

/* v30.13: compact, explicit A/B node-help control. */
#hannes-mascot .hannes-help-mode{border:1px solid #37536a;border-radius:7px;margin:9px 0 0;padding:6px 8px;display:flex;gap:10px;flex-wrap:wrap;font-size:11px;color:#c7d9e6}
#hannes-mascot .hannes-help-mode legend{color:#90d4f5;padding:0 4px}
#hannes-mascot .hannes-help-mode label{display:flex;align-items:center;gap:4px;cursor:pointer}
#hannes-mascot .hannes-help-mode input{accent-color:#329bd3}

/* v30.14: compact automatic help; the full assistant opens only on click. */
#hannes-mascot .hannes-help-bubble{position:absolute;bottom:100%;right:0;width:min(300px,calc(100vw - 24px));max-height:160px;overflow:auto;padding:10px 12px;margin-bottom:8px;background:#18232f;border:1px solid #3d657f;border-radius:10px;box-shadow:0 9px 24px #0009;color:#d8eaf5;font-size:12px;line-height:1.5;pointer-events:none;overflow-wrap:anywhere}
#hannes-mascot .hannes-help-bubble[hidden]{display:none}

#hannes-mascot .hannes-help-bubble{pointer-events:auto}
#hannes-mascot .hannes-read-more{display:block;margin-top:7px;background:#28445b;border:1px solid #547b98;color:#e1f1ff;border-radius:5px;padding:4px 9px;cursor:pointer}
#hannes-mascot .hannes-alarm{position:absolute;bottom:100%;right:0;width:240px;max-width:70vw;padding:10px;border:1px solid #d47777;background:#39252b;color:#ffd4d4;border-radius:5px;overflow-wrap:anywhere;box-shadow:0 0 14px #d4777766}
#hannes-mascot .hannes-alarm[hidden]{display:none}
#hannes-mascot .hannes-error-alarm{filter:drop-shadow(0 0 8px #e66);animation:hannes-confused .75s ease-in-out 2}
@media(prefers-reduced-motion:reduce){#hannes-mascot .hannes-error-alarm{animation:none}}
#hannes-mascot .hannes-character.hannes-dance{animation:hannes-dance 1.1s ease-in-out}
#hannes-mascot .hannes-character.hannes-nod{animation:hannes-nod .9s ease-in-out}
#hannes-mascot .hannes-character.hannes-relief{animation:hannes-relief 1s ease-in-out}
#hannes-mascot .hannes-character.hannes-impatient{animation:hannes-impatient 1.1s ease-in-out}
#hannes-mascot .hannes-character.hannes-startled{animation:hannes-startled .7s ease-out}
#hannes-mascot .hannes-character.hannes-yawn{animation:hannes-yawn 1.1s ease-in-out}
@keyframes hannes-dance{0%,100%{transform:none}20%{transform:translate(-8px,-12px) rotate(-15deg)}50%{transform:translate(8px,-8px) rotate(15deg)}75%{transform:translate(-4px,-10px) rotate(-8deg)}}
@keyframes hannes-nod{0%,100%{transform:none}25%,75%{transform:translateY(5px) scaleY(.88)}50%{transform:translateY(-2px)}}
@keyframes hannes-relief{0%,100%{transform:none}35%{transform:scale(1.08,1.04) translateY(-5px)}70%{transform:scale(1.04,.92) translateY(4px)}}
@keyframes hannes-impatient{0%,100%{transform:none}20%,60%{transform:rotate(-8deg) translateX(-3px)}40%,80%{transform:rotate(8deg) translateX(3px)}}
@keyframes hannes-startled{0%,100%{transform:none}25%{transform:translateY(-19px) scale(1.12) rotate(-8deg)}60%{transform:translateY(3px) scaleY(.9)}}
@keyframes hannes-yawn{0%,100%{transform:none}50%{transform:scaleY(1.09) rotate(7deg)}}
@media(prefers-reduced-motion:reduce){#hannes-mascot .hannes-character:is(.hannes-dance,.hannes-nod,.hannes-relief,.hannes-impatient,.hannes-startled,.hannes-yawn){animation:none}}
/* Helping Hands: non-interactive pointer and readable, hoverable alarm. */
#hannes-mascot .hannes-alarm{pointer-events:auto;max-height: min(35vh,240px);overflow:auto;z-index:2}
#hannes-mascot .hannes-hand{position:absolute;width:64px;height:48px;pointer-events:none;filter:drop-shadow(0 2px 3px #000a);z-index:1}
#hannes-mascot .hannes-hand[hidden]{display:none}
#hannes-mascot .hannes-hand svg{width:100%;height:100%;animation:hannes-point-tap .8s ease-in-out infinite}
#hannes-mascot .hannes-hand.hannes-thumb svg{animation:hannes-thumb-pop .45s ease-out both}
@keyframes hannes-point-tap{0%,100%{transform:translateX(-7px)}50%{transform:translateX(0)}}
@keyframes hannes-thumb-pop{0%{transform:scale(.4)}70%{transform:scale(1.15)}100%{transform:scale(1)}}
@media(prefers-reduced-motion:reduce){#hannes-mascot .hannes-hand svg,#hannes-mascot .hannes-hand.hannes-thumb svg{animation:none}}
/* Body language: mirror only the artwork, never the message or hit target. */
#hannes-mascot .hannes-facing{transform-origin:65px 80px;transition:transform .32s ease-in-out}
#hannes-mascot .hannes-character[data-facing="left"] .hannes-facing{transform:scaleX(-1)}
#hannes-mascot .hannes-mouth-open{opacity:0;transform-origin:73.5px 97px}
#hannes-mascot .hannes-talking .hannes-mouth{animation:hannes-mouth-closed .43s steps(1,end) infinite}
#hannes-mascot .hannes-talking .hannes-mouth-open{animation:hannes-mouth-open .43s ease-in-out infinite}
@keyframes hannes-mouth-closed{0%,75%,100%{opacity:1}15%,55%{opacity:0}}
@keyframes hannes-mouth-open{0%,75%,100%{opacity:0;transform:scaleY(.2)}20%,55%{opacity:1;transform:scaleY(1)}}
@media(prefers-reduced-motion:reduce){#hannes-mascot .hannes-facing{transition:none}#hannes-mascot .hannes-talking :is(.hannes-mouth,.hannes-mouth-open){animation:none}}
#hannes-mascot .hannes-character[data-facing="left"] .hannes-helmet text{transform:translate(143px,0) scaleX(-1)}

#hannes-mascot .hannes-comment{position:absolute;bottom:100%;right:0;width:230px;max-width:70vw;padding:10px;background:#18232f;border:1px solid #5790ae;border-radius:8px;color:#d8eaf5;font-size:12px;box-shadow:0 5px 15px #0008;pointer-events:none}
#hannes-mascot .hannes-comment[hidden]{display:none}
/* Walking limbs appear only in motion; facing mirrors the complete figure. */
#hannes-mascot .hannes-limbs{opacity:0;pointer-events:none}
#hannes-mascot .hannes-walking .hannes-limbs{opacity:1}
#hannes-mascot .hannes-character.hannes-walking{animation:hannes-step-bob .42s ease-in-out infinite}
#hannes-mascot .hannes-walking :is(.hannes-leg,.hannes-arm){animation:hannes-stride .42s ease-in-out infinite;transform-box:fill-box;transform-origin:50% 0}
#hannes-mascot .hannes-walking :is(.hannes-leg-b,.hannes-arm-a){animation-delay:-.21s}
#hannes-mascot .hannes-running,#hannes-mascot .hannes-running :is(.hannes-leg,.hannes-arm){animation-duration:.26s!important}
@keyframes hannes-stride{0%,100%{transform:rotate(-28deg)}50%{transform:rotate(28deg)}}
@keyframes hannes-step-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
@media(prefers-reduced-motion:reduce){#hannes-mascot .hannes-character.hannes-walking,#hannes-mascot .hannes-walking :is(.hannes-leg,.hannes-arm){animation:none!important}}
