#serenaGuideRoot{position:fixed;right:clamp(12px,2.5vw,30px);bottom:84px;z-index:2147480000;font-family:Inter,system-ui,-apple-system,sans-serif;color:#edf5ed}#serenaGuideRoot *{box-sizing:border-box}#serenaGuideRoot button,#serenaGuideRoot input{font:inherit}#serenaGuideRoot button{cursor:pointer}#serenaGuideRoot .sg-launch{display:flex;align-items:center;gap:10px;border:1px solid #ddb46c;border-radius:999px;background:#0f2220;color:#fff;padding:8px 13px 8px 8px;box-shadow:0 9px 28px #0006;max-width:240px}#serenaGuideRoot .sg-launch img{width:49px;height:49px;border-radius:50%;object-fit:cover;object-position:center 30%;border:2px solid #bff76d}#serenaGuideRoot .sg-launch strong{display:block;text-align:left;font-size:13px}#serenaGuideRoot .sg-launch small{display:block;font-size:10px;color:#c6d6ce;text-align:left}#serenaGuideRoot .sg-panel{width:min(388px,calc(100vw - 24px));height:min(640px,calc(100dvh - 110px));background:#0b171b;border:1px solid #b38d50;border-radius:21px;overflow:hidden;box-shadow:0 14px 65px #0009;display:none;flex-direction:column}#serenaGuideRoot.sg-open .sg-panel{display:flex}#serenaGuideRoot.sg-open .sg-launch{display:none}#serenaGuideRoot .sg-top{display:flex;justify-content:space-between;align-items:center;padding:12px 14px;background:#0e2024;border-bottom:1px solid #2c4845}#serenaGuideRoot .sg-top strong{font-size:14px}#serenaGuideRoot .sg-top span{font-size:10px;color:#b4e68c}#serenaGuideRoot .sg-close{background:transparent;color:white;border:0;font-size:24px;min-width:35px}#serenaGuideRoot .sg-portrait{height:128px;position:relative;background:linear-gradient(125deg,#162923,#090d14);flex-shrink:0;overflow:hidden;display:flex;align-items:center;gap:14px;padding:8px 16px}#serenaGuideRoot .sg-avatar{position:relative;width:100px;height:110px;flex-shrink:0;overflow:hidden;border-radius:15px;border:1px solid #bc985f}#serenaGuideRoot .sg-avatar img{height:100%;width:100%;object-fit:cover;object-position:center 18%;animation:sg-breathe 5s ease-in-out infinite}#serenaGuideRoot .sg-portrait.sg-speaking .sg-avatar{box-shadow:0 0 0 3px #b7ff56aa}#serenaGuideRoot .sg-portrait.sg-speaking .sg-avatar:after{content:'';position:absolute;bottom:2px;left:50%;transform:translateX(-50%);width:31px;height:4px;background:#bbfa65;box-shadow:0 0 16px #b5ff5c;animation:sg-talk .22s infinite alternate;border-radius:10px}#serenaGuideRoot .sg-blink{position:absolute;top:33%;left:19%;height:2px;width:62%;background:#aa8e79;opacity:0;animation:sg-blink 5.6s infinite;pointer-events:none}#serenaGuideRoot .sg-portrait p{font-size:12px;color:#d7dfdb;line-height:1.5;margin:5px 0}#serenaGuideRoot .sg-portrait b{color:#e9c990}#serenaGuideRoot .sg-portrait .sg-light{font-size:11px;color:#b8ee92}#serenaGuideRoot .sg-messages{flex:1;overflow:auto;min-height:70px;padding:12px;display:flex;flex-direction:column;gap:9px}#serenaGuideRoot .sg-msg{font-size:13px;line-height:1.55;border-radius:13px;padding:10px 12px;max-width:95%;overflow-wrap:anywhere;background:#1a2d34}#serenaGuideRoot .sg-msg.user{background:#344334;align-self:flex-end}#serenaGuideRoot .sg-msg a{color:#c5ff74;text-decoration:underline}#serenaGuideRoot .sg-tools{display:flex;gap:7px;padding:8px 12px;align-items:center;flex-wrap:wrap;background:#102229;border-top:1px solid #2b4140}#serenaGuideRoot .sg-tools select{background:#122027;border:1px solid #4c625d;border-radius:8px;color:white;font-size:12px;padding:6px;max-width:140px}#serenaGuideRoot .sg-tools button{border:1px solid #577369;border-radius:10px;color:#fff;padding:7px 10px;background:#1e3032;font-size:12px}#serenaGuideRoot .sg-tools .sg-start{background:#c7ff63;color:#142019;border:0;font-weight:800}#serenaGuideRoot .sg-input{display:flex;gap:8px;padding:10px;background:#0c161a}#serenaGuideRoot .sg-input input{flex:1;min-width:0;border:1px solid #41504d;background:#14242a;color:white;border-radius:11px;padding:11px;font-size:13px}#serenaGuideRoot .sg-input button{background:#c1f661;border:0;color:#111d15;padding:0 14px;font-weight:800;border-radius:11px}#serenaGuideRoot .sg-bottom{font-size:10px;line-height:1.4;color:#a0ada9;padding:0 12px 8px}#serenaGuideRoot .sg-bottom a{color:#d9e5db}#serenaGuideRoot .sg-live[hidden]{display:none!important}#serenaGuideRoot .sg-live{background:#131c2b!important}#serenaGuideRoot .sg-small{font-size:10px}#serenaGuideRoot .sg-tools button:disabled{opacity:.45;cursor:not-allowed}#serenaGuideRoot button:focus-visible,#serenaGuideRoot input:focus-visible{outline:3px solid #d8ff6b;outline-offset:2px}@keyframes sg-breathe{50%{transform:scale(1.035)}}@keyframes sg-talk{to{height:11px;width:26px}}@keyframes sg-blink{0%,96%,98%,100%{opacity:0}97%{opacity:.8}}@media(max-width:600px){#serenaGuideRoot{right:10px;bottom:calc(68px + env(safe-area-inset-bottom,0px))}#serenaGuideRoot .sg-launch{padding:6px 12px 6px 6px}#serenaGuideRoot .sg-launch img{height:42px;width:42px}#serenaGuideRoot .sg-panel{width:calc(100vw - 20px);height:min(72dvh,640px);border-radius:16px}#serenaGuideRoot .sg-portrait{height:105px}#serenaGuideRoot .sg-avatar{width:74px;height:90px}#serenaGuideRoot .sg-messages{padding:10px}#serenaGuideRoot .sg-msg{font-size:12px}}@media(prefers-reduced-motion:reduce){#serenaGuideRoot .sg-avatar img,#serenaGuideRoot .sg-blink{animation:none!important}}

/* Responsive humanoid-expression accents; illustrated animation, not true mouth tracking. */
#serenaGuideRoot .sg-portrait.sg-thinking .sg-avatar img{animation:sg-curious 2.8s ease-in-out infinite}
#serenaGuideRoot .sg-portrait.sg-listening .sg-avatar img{animation:sg-attentive 3.4s ease-in-out infinite}
#serenaGuideRoot .sg-avatar::before{content:'';position:absolute;inset:0;z-index:2;pointer-events:none;background:linear-gradient(135deg,transparent 35%,rgba(245,201,154,.07) 65%,transparent 85%);animation:sg-expression 7s ease-in-out infinite}
#serenaGuideRoot .sg-call-clock{color:#ffe4a7!important;font-size:12px!important;letter-spacing:.03em}
#serenaGuideRoot .sg-time-left{color:#c6f77a;font-variant-numeric:tabular-nums}
@keyframes sg-curious{0%,100%{transform:scale(1.025) rotate(0deg)}55%{transform:scale(1.075) rotate(.7deg)}}
@keyframes sg-attentive{0%,100%{transform:scale(1.02)}50%{transform:scale(1.06) translateY(-1px)}}
@keyframes sg-expression{0%,30%,100%{opacity:0}33%,40%{opacity:1}48%,90%{opacity:.3}}
@media(prefers-reduced-motion:reduce){#serenaGuideRoot .sg-portrait.sg-thinking .sg-avatar img,#serenaGuideRoot .sg-portrait.sg-listening .sg-avatar img,#serenaGuideRoot .sg-avatar::before{animation:none!important}}

/* iPhone Safari safe areas, touch layout, tap to activate speech. */
@media(max-width:600px){#serenaGuideRoot{right:8px;bottom:calc(12px + env(safe-area-inset-bottom,0px));max-width:calc(100vw - 16px)}#serenaGuideRoot .sg-panel{width:min(100vw - 16px,430px)!important;max-height:calc(100dvh - 90px - env(safe-area-inset-bottom,0px));height:min(76dvh,620px)!important;min-height:360px;overflow:hidden}#serenaGuideRoot .sg-top button,#serenaGuideRoot .sg-tools button{min-height:42px;touch-action:manipulation}#serenaGuideRoot .sg-input input{font-size:16px;min-height:44px}#serenaGuideRoot .sg-tools{flex-wrap:wrap}#serenaGuideRoot .sg-messages{overscroll-behavior:contain;-webkit-overflow-scrolling:touch}#serenaGuideRoot .sg-launch{min-height:52px;touch-action:manipulation}}@media(max-height:560px){#serenaGuideRoot .sg-panel{height:calc(100dvh - 55px)!important}#serenaGuideRoot .sg-portrait{display:none}}

/* Final navigation spacing: leave Serena's right-hand launcher unobstructed. */
body .floating-actions #backTop{position:fixed;left:18px;right:auto;bottom:calc(80px + env(safe-area-inset-bottom, 0px));margin:0;transform:none;z-index:90;}
body .floating-actions #donateFloat{position:fixed;left:18px;right:auto;bottom:calc(18px + env(safe-area-inset-bottom, 0px));margin:0;transform:none;z-index:90;}
@media(max-width:600px){
 body .floating-actions #backTop{left:10px;right:auto;bottom:calc(120px + env(safe-area-inset-bottom, 0px));margin:0;transform:none;}
 body .floating-actions #donateFloat{left:10px;right:auto;bottom:calc(180px + env(safe-area-inset-bottom, 0px));margin:0;transform:none;max-width:172px;}
}

/* Nov 8: slightly raise Serena to clear Netlify floating credit badge on mobile. */
@media(max-width:600px){#serenaGuideRoot{bottom:calc(22px + env(safe-area-inset-bottom,0px))!important}}
