/* Nexi on our websites (owner 2026-10-17): the owl's drawing and moves (copied from nextgen-docs/style.css,
   "Assistant character"), plus the corner button and the chat window of website-brief.js. */
#nexiFab,#nxBox{--nx-bg:#fff;--nx-tx:#1b1f2a;--nx-mu:#5d6577;--nx-ln:#e3e6ef;--nx-me:#f1efe9;--nx-ac:#2f8f83;--nx-acT:#fff;--brand:#2f8f83;--ink:#1e2a24;
  --nx-sh:0 12px 40px rgba(20,22,41,.22);font:15px/1.45 Inter,system-ui,-apple-system,"Segoe UI",sans-serif}
@media (prefers-color-scheme:dark){#nexiFab,#nxBox{--nx-bg:#1b1e29;--nx-tx:#eef0f6;--nx-mu:#a3a9b8;--nx-ln:#343949;--nx-me:#262a38}}

/* Nexi is the one helper on these pages: the chat links to the site helper for quick questions */
#shFab{display:none!important}
#nexiFab{position:fixed;right:max(16px,env(safe-area-inset-right,0px));bottom:max(16px,env(safe-area-inset-bottom,0px));z-index:46;display:flex;align-items:center;gap:8px;padding:6px 16px 6px 6px;border:1px solid var(--nx-ln);border-radius:999px;background:var(--nx-bg);color:var(--nx-tx);cursor:pointer;box-shadow:var(--nx-sh);font:inherit;text-align:left}
#nexiFab .mbuddy{width:52px;height:52px}#nexiFab b{display:block;line-height:1.1}#nexiFab small{color:var(--nx-mu)}
#nexiFab[hidden],#nxBox[hidden],#nxBox [hidden]{display:none!important}
#nexiFab:focus-visible,#nxBox button:focus-visible,#nxBox input:focus-visible{outline:3px solid #f0a832;outline-offset:2px}
@media (max-width:560px){#nexiFab span{display:none}#nexiFab{padding:6px}}

#nxBox{position:fixed;right:16px;bottom:16px;z-index:47;margin:0;padding:0;width:min(420px,calc(100vw - 32px));height:min(640px,calc(100dvh - 32px));display:flex;flex-direction:column;background:var(--nx-bg);color:var(--nx-tx);border:1px solid var(--nx-ln);border-radius:20px;box-shadow:var(--nx-sh);overflow:hidden}
#nxBox *{box-sizing:border-box}
.nx-hd{display:flex;align-items:center;gap:10px;padding:10px 12px;border-bottom:1px solid var(--nx-ln);background:linear-gradient(#f6f2e8,var(--nx-bg))}
@media (prefers-color-scheme:dark){.nx-hd{background:var(--nx-bg)}}
.nx-hd .mbuddy{width:58px;height:58px;flex:none}
.nx-hd div{flex:1;min-width:0}.nx-hd b{display:block;font-size:17px}.nx-hd small{color:var(--nx-mu);font-size:13px}
.nx-ic{background:none;border:0;color:var(--nx-tx);font-size:20px;line-height:1;cursor:pointer;padding:6px;border-radius:10px}
.nx-ic:hover{background:var(--nx-me)}
.nx-body{flex:1;overflow-y:auto;padding:14px 12px;display:flex;flex-direction:column;gap:8px}
.nx-m{max-width:88%;padding:9px 13px;border-radius:16px;background:var(--nx-me);white-space:pre-wrap;word-wrap:break-word;border-bottom-left-radius:4px}
.nx-m.me{align-self:flex-end;background:var(--nx-ac);color:var(--nx-acT);border-bottom-left-radius:16px;border-bottom-right-radius:4px}
.nx-m a{color:inherit;font-weight:700}
.nx-brief{margin:8px 0 0;padding:0;list-style:none;white-space:normal}
.nx-brief li{padding:5px 0;border-top:1px solid var(--nx-ln);font-size:14px}.nx-brief b{display:block;font-size:12px;color:var(--nx-mu);font-weight:600}
.nx-chips{display:flex;flex-wrap:wrap;gap:6px;padding:0 12px 10px;max-height:34%;overflow-y:auto}
.nx-chips:empty{display:none}
.nx-chip{padding:7px 12px;border:1px solid var(--nx-ln);border-radius:999px;background:var(--nx-bg);color:var(--nx-tx);font:inherit;font-size:14px;cursor:pointer}
.nx-chip:hover{border-color:var(--nx-ac)}
.nx-chip[aria-pressed=true]{background:var(--nx-me);border-color:var(--nx-ac);color:var(--nx-ac);font-weight:600}
.nx-chip.done{background:var(--nx-ac);border-color:var(--nx-ac);color:var(--nx-acT);font-weight:600}
.nx-chip.skip{color:var(--nx-mu)}
.nx-in{display:flex;gap:6px;padding:10px 12px;border-top:1px solid var(--nx-ln)}
.nx-in input{flex:1;min-width:0;font:inherit;color:var(--nx-tx);background:var(--nx-me);border:1px solid transparent;border-radius:999px;padding:10px 14px}
.nx-in input:focus{border-color:var(--nx-ac);outline:0}
.nx-send{border:0;border-radius:50%;width:42px;height:42px;flex:none;background:var(--nx-ac);color:var(--nx-acT);font-size:17px;cursor:pointer}
.nx-mic.on{background:#fde2e2;animation:mbRing 1.4s ease-out infinite}
.nx-ft{display:flex;gap:8px;justify-content:center;padding:0 12px 10px;font-size:13px;color:var(--nx-mu)}
.nx-ft button{background:none;border:0;color:var(--nx-mu);font:inherit;text-decoration:underline;cursor:pointer;padding:2px}
@media (max-width:560px){#nxBox{right:8px;left:8px;bottom:8px;width:auto;height:calc(100dvh - 16px);border-radius:16px}}

/* ---------- the owl (mascot.js), copied from nextgen-docs/style.css ---------- */
.mbuddy{display:block;overflow:visible}
.mbuddy *{transform-box:fill-box;transform-origin:center}
/* parts placed with a transform attribute keep the plain SVG meaning of it */
.mbuddy [transform]{transform-box:view-box;transform-origin:0 0}
.mb-glint{fill:#fff}
.mb-joy path,.mb-smile{fill:none;stroke-linecap:round}
.mb-spark path{fill:#f2b632}
.mb-joy,.mb-mouth,.mb-spark{opacity:0}
.mb-cheek{opacity:.55}
.mb-hand.l{transform-origin:100% 20%}.mb-hand.r{transform-origin:0 20%}
.bk-cover{fill:#1d5c43;fill:color-mix(in srgb,var(--brand) 70%,#000)}.bk-pages{fill:#f4ecd8}.bk-gold{stroke:#d9b45a;stroke-width:1.2}
.bk-sign{fill:#e9c76a;font:700 13px/1 Georgia,serif;text-anchor:middle}
.bk-wood{fill:#f2c230}.bk-tip{fill:#e7c9a0}.bk-eraser{fill:#e98a8a}

/* Nexi: the owl. Feathers follow the chosen look unless an owl colour is picked */
.c-owl{--ow1:color-mix(in srgb,var(--brand) 55%,#fff);--ow2:color-mix(in srgb,var(--brand) 70%,#20302a);--ow3:color-mix(in srgb,var(--brand) 45%,#0c1410);--owf:#f3ead6;--owi:#f0a832}
.c-owl.ow-brown{--ow1:#c79a68;--ow2:#8a5f3a;--ow3:#4f341f;--owf:#f4e6cc;--owi:#f0a832}
.c-owl.ow-navy{--ow1:#6f8fbf;--ow2:#2f4a78;--ow3:#16233d;--owf:#eef1f6;--owi:#f2b632}
.c-owl.ow-snow{--ow1:#ffffff;--ow2:#d9dee3;--ow3:#8a959e;--owf:#ffffff;--owi:#e8b84a}
.ow-s0{stop-color:var(--ow1)}.ow-s1{stop-color:var(--ow2)}.ow-s2{stop-color:var(--ow3)}
.ow-f0{stop-color:#fffdf7}.ow-f1{stop-color:var(--owf)}
.ow-wing{fill:var(--ow3)}.ow-quill,.ow-feather{fill:none;stroke:var(--ow1);stroke-width:1.2;stroke-linecap:round;opacity:.55}
.ow-chev{fill:none;stroke:#c8b48c;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round}
.ow-face{fill:var(--owf)}.ow-rim{fill:none;stroke:var(--ow3);stroke-width:1.4;opacity:.35}
.ow-brow{stroke:var(--ow3);stroke-width:4}
.ow-blush{fill:#f08a7a;opacity:.3}
.ow-iris{fill:var(--owi);stroke:#b87316;stroke-width:1}.ow-pupil{fill:#1d1712}
.ow-lens{fill:rgba(255,255,255,.14)}.ow-shine{fill:none;stroke:#fff;stroke-width:1.4;stroke-linecap:round;opacity:.7}
.ow-frame{fill:none;stroke:#c9a14a;stroke-width:2.2;stroke-linecap:round}
.ow-beak{fill:#f2a93b}.ow-beakhi{fill:none;stroke:#ffd27a;stroke-width:1.2;stroke-linecap:round}.ow-beak2{fill:#d98a1e}
.ow-talon{fill:none;stroke:#e39a2e;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.ow-shadow{fill:#000;opacity:.1}
.c-owl .mb-joy path{stroke:#2a2420;stroke-width:2.6}
.c-owl.ow-snow .ow-quill,.c-owl.ow-snow .ow-feather{stroke:var(--ow3)}
/* shared: eyes, gloved arms and shoes */
.ey-white{fill:#fff}.ey-pupil{fill:#1d1712}
.lb-arm,.lb-leg{fill:none;stroke:#1e2a24;stroke:var(--ink,#1e2a24);stroke-width:3;stroke-linecap:round}
.lb-glove{fill:#fff;stroke:#1e2a24;stroke-width:1.4}.lb-cuff{fill:none;stroke:#1e2a24;stroke-width:1;opacity:.5}
.lb-shoe{fill:#1e2a24}.lb-shine{fill:none;stroke:#fff;stroke-width:1.2;stroke-linecap:round;opacity:.5}
/* idle: breathing and blinking */
.mbuddy .mb-body{animation:mbBreathe 3.6s ease-in-out infinite}
.mbuddy .mb-eyes{animation:mbBlink 4.6s infinite}
/* listening: leans in, eyes a little wider */
.mbuddy[data-state="listen"] .mb-all{animation:mbTilt 1.8s ease-in-out infinite}
.mbuddy[data-state="listen"] .mb-eye{transform:scale(1.12)}
/* talking: the mouth opens and closes with the words */
.mbuddy[data-state="talk"] .mb-smile{opacity:0}
.mbuddy[data-state="talk"] .mb-mouth{opacity:1;animation:mbTalk .26s ease-in-out infinite alternate}
.mbuddy[data-state="talk"] .mb-bars{animation:none}
.mbuddy[data-state="talk"] .mb-bar{animation:mbBar .34s ease-in-out infinite alternate}
.mbuddy .mb-bar:nth-child(2){animation-delay:-.12s}.mbuddy .mb-bar:nth-child(3){animation-delay:-.24s}.mbuddy .mb-bar:nth-child(4){animation-delay:-.06s}.mbuddy .mb-bar:nth-child(5){animation-delay:-.18s}
.mbuddy[data-state="talk"] .mb-all{animation:mbTalkBob .5s ease-in-out infinite}
/* while talking the hands (or wings) gesture, eyebrows lift, and the mouth opens wide */
.mbuddy[data-state="talk"] .mb-hand{animation:mbGesture .9s ease-in-out infinite alternate}
.mbuddy[data-state="talk"] .mb-hand.r{animation-delay:-.45s}
.mbuddy[data-state="talk"] .hm-brow{animation:mbBrow 1.3s ease-in-out infinite}
/* working: eyes look up at the sparkles, wings or hands busy */
.mbuddy[data-state="work"] .mb-eyes{transform:translate(1.5px,-2px);animation:none}
.mbuddy[data-state="work"] .mb-spark{opacity:1;animation:mbSpin 1.2s linear infinite}
.mbuddy[data-state="work"] .mb-hand{animation:mbWave .35s ease-in-out infinite alternate}
.mbuddy[data-state="work"] .bk-pencil{animation:mbScribble .3s ease-in-out infinite alternate}
/* happy: smiling eyes and a nod */
.mbuddy[data-state="happy"] .mb-eyes{opacity:0;animation:none}
.mbuddy[data-state="happy"] .mb-joy{opacity:1}
.mbuddy[data-state="happy"] .mb-all{animation:mbNod .5s ease-out 2}
.mbuddy[data-state="happy"] .mb-hand{animation:mbWave .3s ease-in-out 6 alternate}
.mbuddy[data-state="happy"] .mb-cheek{opacity:.85}

@keyframes mbBreathe{0%,100%{transform:scale(1)}50%{transform:scale(1.025,1.035)}}
@keyframes mbBlink{0%,90%,100%{transform:scaleY(1)}94%{transform:scaleY(.1)}}
@keyframes mbSway{0%,100%{transform:rotate(-5deg)}50%{transform:rotate(5deg)}}
@keyframes mbPerk{from{transform:rotate(-2deg) scale(1.05)}to{transform:rotate(3deg) scale(1.15)}}
@keyframes mbTilt{0%,100%{transform:rotate(-5deg)}50%{transform:rotate(-2deg)}}
@keyframes mbTalk{from{transform:scaleY(.25)}to{transform:scaleY(1.15)}}
@keyframes mbTalkBob{0%,100%{transform:translateY(0) rotate(0)}25%{transform:translateY(-2px) rotate(-1.5deg)}75%{transform:translateY(-1px) rotate(1.5deg)}}
@keyframes mbTwinkle{0%,100%{opacity:.15}50%{opacity:.8}}
@keyframes mbGlow{from{opacity:.25}to{opacity:.6}}
@keyframes mbGesture{from{transform:rotate(-18deg)}to{transform:rotate(12deg)}}
@keyframes mbBrow{0%,60%,100%{transform:translateY(0)}75%{transform:translateY(-2px)}}
@keyframes mbBar{from{transform:scaleY(.4)}to{transform:scaleY(1.9)}}
@keyframes mbBob{0%,100%{transform:translateY(0)}50%{transform:translateY(-1.5px)}}
@keyframes mbSpin{to{transform:rotate(360deg)}}
@keyframes mbWave{from{transform:rotate(-14deg)}to{transform:rotate(14deg)}}
@keyframes mbScribble{from{transform:translate(0,0) rotate(-3deg)}to{transform:translate(-1.5px,1px) rotate(3deg)}}
@keyframes mbNod{0%,100%{transform:translateY(0)}40%{transform:translateY(3px) rotate(1deg)}}
@keyframes mbJump{0%,100%{transform:translateY(0)}40%{transform:translateY(-9px) scale(1.03)}}
@keyframes mbFlash{50%{fill:#f2b632}}
@keyframes mbRing{from{transform:scale(1);opacity:.7}to{transform:scale(1.35);opacity:0}}
