/* "Tea" AI helper — avatar launcher (always-green dot), "Hi 👋" card, glass chat panel */
.as-root{position:fixed;right:22px;bottom:22px;z-index:80;font-family:'DM Sans',system-ui,sans-serif;--as-red:#b0473d;--as-navy:#1f2b47;--as-cream:#fbf6ee}
.as-launch{position:relative;width:64px;height:64px;padding:0;border:0;border-radius:50%;background:#fff;cursor:pointer;box-shadow:0 14px 34px -12px rgba(31,43,71,.55),0 0 0 3px #fff;transition:transform .45s cubic-bezier(.34,1.56,.64,1)}
.as-launch img{width:100%;height:100%;border-radius:50%;object-fit:cover;display:block}
.as-launch:hover{transform:translateY(-3px) scale(1.06)}
.as-launch:focus-visible{outline:3px solid var(--as-red);outline-offset:3px}
.as-dot{position:absolute;right:2px;bottom:3px;width:15px;height:15px;border-radius:50%;background:#2fb36b;box-shadow:0 0 0 3px #fff}
.as-dot::after{content:"";position:absolute;inset:0;border-radius:50%;background:#2fb36b;animation:as-ping 2.2s cubic-bezier(0,0,.2,1) infinite}
@keyframes as-ping{75%,100%{transform:scale(2.2);opacity:0}}
.as-ring{position:absolute;inset:-7px;border-radius:50%;border:2px solid rgba(176,71,61,.35);animation:as-ring 3.2s ease-out infinite;pointer-events:none}
@keyframes as-ring{0%{transform:scale(.85);opacity:0}30%{opacity:1}100%{transform:scale(1.25);opacity:0}}
.as-root.open .as-ring,.as-root.asked .as-ring{display:none}
.as-hello{position:absolute;right:0;bottom:80px;width:250px;padding:14px 38px 14px 16px;border-radius:18px 18px 6px 18px;background:#fff;box-shadow:0 20px 44px -18px rgba(31,43,71,.45),0 0 0 1px rgba(31,43,71,.06);cursor:pointer;display:flex;flex-direction:column;gap:4px;animation:as-pop .55s cubic-bezier(.34,1.56,.64,1)}
.as-hello b{font:600 1.02rem Fraunces,Georgia,serif;color:var(--as-navy)}.as-hello span{font-size:.9rem;color:#5b6274;line-height:1.4}
.as-hello[hidden]{display:none}
.as-x{position:absolute;top:8px;right:8px;width:26px;height:26px;border:0;border-radius:8px;background:transparent;color:#8a90a0;display:grid;place-items:center;cursor:pointer}.as-x:hover{background:#f3ede3}
.as-x .ic,.as-close .ic{width:15px;height:15px}
@keyframes as-pop{from{opacity:0;transform:translateY(10px) scale(.92)}}
.as-panel{position:absolute;right:0;bottom:82px;width:min(390px,calc(100vw - 28px));height:min(600px,calc(100vh - 120px));display:flex;flex-direction:column;border-radius:24px;overflow:hidden;background:rgba(255,253,249,.97);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);box-shadow:0 30px 70px -26px rgba(31,43,71,.55),0 0 0 1px rgba(31,43,71,.08);transform-origin:calc(100% - 32px) 100%;animation:as-open .45s cubic-bezier(.16,1,.3,1)}
.as-panel[hidden]{display:none}
@keyframes as-open{from{opacity:0;transform:translateY(14px) scale(.94)}}
.as-h{display:flex;align-items:center;gap:12px;padding:14px 14px 14px 16px;background:linear-gradient(120deg,#1f2b47,#2d3c60 60%,#4a3a52);color:#fff}
.as-h img{width:42px;height:42px;border-radius:50%;object-fit:cover;box-shadow:0 0 0 2px rgba(255,255,255,.7)}
.as-h div{flex:1;display:flex;flex-direction:column;gap:2px}.as-h b{font:600 1.06rem Fraunces,Georgia,serif}
.as-h small{display:flex;align-items:center;gap:6px;font-size:.8rem;opacity:.85}
.as-on{width:8px;height:8px;border-radius:50%;background:#2fb36b;box-shadow:0 0 0 0 rgba(47,179,107,.6);animation:as-on 2s infinite}
@keyframes as-on{70%{box-shadow:0 0 0 7px rgba(47,179,107,0)}100%{box-shadow:0 0 0 0 rgba(47,179,107,0)}}
.as-close{width:34px;height:34px;border:0;border-radius:11px;background:rgba(255,255,255,.12);color:#fff;display:grid;place-items:center;cursor:pointer;transition:background .2s,transform .3s}.as-close:hover{background:rgba(255,255,255,.24);transform:rotate(90deg)}
.as-body{flex:1;overflow:auto;padding:16px 14px 8px;display:flex;flex-direction:column;gap:10px;scroll-behavior:smooth}
.as-m{display:flex;gap:8px;align-items:flex-end;max-width:100%;animation:as-in .4s cubic-bezier(.16,1,.3,1)}
@keyframes as-in{from{opacity:0;transform:translateY(8px)}}
.as-m img{flex:none;width:28px;height:28px;border-radius:50%;object-fit:cover}
.as-b{padding:10px 14px;border-radius:18px;font-size:.95rem;line-height:1.5;color:#1d2333;max-width:82%;overflow-wrap:anywhere}
.as-m.bot .as-b{background:#f3ede3;border-bottom-left-radius:6px}
.as-m.me{justify-content:flex-end}.as-m.me .as-b{background:linear-gradient(135deg,#b0473d,#c8603f);color:#fff;border-bottom-right-radius:6px}
.as-li{display:block;padding-left:14px;position:relative}.as-li::before{content:"";position:absolute;left:3px;top:.62em;width:5px;height:5px;border-radius:50%;background:var(--as-red)}
.as-typing{display:inline-flex;gap:4px;padding:4px 0}.as-typing i{width:7px;height:7px;border-radius:50%;background:#9aa0ae;animation:as-dots 1.2s infinite}.as-typing i:nth-child(2){animation-delay:.15s}.as-typing i:nth-child(3){animation-delay:.3s}
@keyframes as-dots{0%,60%,100%{transform:none;opacity:.5}30%{transform:translateY(-5px);opacity:1}}
.as-act{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}
.as-mail input{flex:1;min-width:140px;min-height:40px;padding:8px 12px;border-radius:12px;border:1.5px solid rgba(31,43,71,.2);font:inherit;background:#fff}.as-mail input.bad{border-color:var(--as-red)}
.as-btn{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:8px 14px;border:0;border-radius:999px;background:var(--as-navy);color:#fff;font:600 .9rem 'DM Sans',sans-serif;cursor:pointer;transition:transform .3s cubic-bezier(.34,1.56,.64,1),box-shadow .3s}
.as-btn:hover{transform:translateY(-2px);box-shadow:0 10px 20px -10px var(--as-navy)}.as-btn:disabled{opacity:.6}
.as-btn .ic{width:16px;height:16px}
.as-ok,.as-err{display:flex;gap:8px;align-items:center;margin:10px 0 0;font-weight:600;color:#2f7a4f}.as-err{color:var(--as-red)}.as-ok .ic{width:18px;height:18px;flex:none}
.as-chips{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:4px 14px 10px}
.as-root.asked .as-chips{display:none}
.as-chip{min-width:0;display:flex;align-items:center;gap:7px;padding:8px 11px;text-align:left;line-height:1.25;border-radius:999px;border:1.5px solid rgba(31,43,71,.14);background:#fff;font:500 .86rem 'DM Sans',sans-serif;color:#1d2333;cursor:pointer;transition:border-color .2s,transform .3s cubic-bezier(.34,1.56,.64,1),background .2s}
.as-chip .ic{width:16px;height:16px;color:var(--as-red);transition:transform .4s cubic-bezier(.34,1.56,.64,1)}
.as-chip:hover{border-color:var(--as-red);background:#fdf3f0;transform:translateY(-2px)}.as-chip:hover .ic{transform:rotate(-12deg) scale(1.15)}
.as-f{display:flex;gap:8px;padding:10px 12px;border-top:1px solid rgba(31,43,71,.08);background:#fff}
.as-in{flex:1;min-height:46px;padding:10px 14px;border-radius:14px;border:1.5px solid rgba(31,43,71,.16);font:400 .98rem 'DM Sans',sans-serif;color:#1d2333;background:#fbf8f3;outline:none;transition:border-color .2s,box-shadow .2s}
.as-in:focus{border-color:#2d3c60;box-shadow:0 0 0 4px rgba(45,60,96,.12);background:#fff}
.as-send{flex:none;width:46px;height:46px;border:0;border-radius:14px;background:linear-gradient(135deg,#b0473d,#c8603f);color:#fff;display:grid;place-items:center;cursor:pointer;transition:transform .3s cubic-bezier(.34,1.56,.64,1)}
.as-send:hover{transform:translateY(-2px) rotate(-8deg)}.as-send .ic{width:19px;height:19px}
.as-note{margin:0;padding:0 14px 10px;background:#fff;font-size:.72rem;color:#8a90a0;text-align:center}
@media (max-width:560px){.as-root{right:12px;bottom:12px}.as-launch{width:52px;height:52px}.as-hello{width:220px;bottom:66px}.as-panel{position:fixed;inset:auto 8px 8px 8px;width:auto;height:min(640px,calc(100dvh - 16px));bottom:8px}.as-root.open .as-launch,.as-root.open .as-hello{display:none}}
@media (prefers-reduced-motion:reduce){.as-root *{animation:none!important;transition:none!important}}

.as-chip span{min-width:0;overflow-wrap:anywhere}.as-chip .ic{flex:none}
@media (max-width:360px){.as-chips{grid-template-columns:1fr}}
/* help bubble (no AI): a short message straight to the host */
.hb .hb-cup{display:grid;place-items:center;width:100%;height:100%;border-radius:50%;background:radial-gradient(circle at 30% 25%,#e9a07a,#b0473d 70%);color:#fff}
.hb .hb-cup .ic{width:30px;height:30px;stroke:#fff}.hb .as-h .hb-cup{width:42px;height:42px;flex:none}.hb .as-h .hb-cup .ic{width:22px;height:22px}
.hb .hb-cup .wisp{animation:hbW 2.6s ease-in-out infinite}.hb .hb-cup .w2{animation-delay:.9s}
@keyframes hbW{0%,100%{opacity:.35;transform:translateY(1px)}50%{opacity:1;transform:translateY(-1.5px)}}
.hb .as-panel{height:auto;max-height:min(640px,calc(100dvh - 120px))}
.hb-f,.hb-ok{display:flex;flex-direction:column;gap:12px;padding:16px 18px 18px;overflow:auto}
.hb-t{margin:0;color:#545b6e;font-size:.94rem;line-height:1.5}
.hb-l{display:flex;flex-direction:column;gap:6px;font:600 .82rem 'DM Sans',sans-serif;color:#1f2b47}
.hb-l input,.hb-l textarea{font:400 .95rem 'DM Sans',sans-serif;color:#1d2333;border:1.5px solid #e2d8c6;border-radius:12px;padding:10px 12px;background:#fffdf9;resize:vertical;transition:border-color .2s,box-shadow .2s}
.hb-l input:focus,.hb-l textarea:focus{outline:0;border-color:#b0473d;box-shadow:0 0 0 4px rgba(176,71,61,.12)}
.hb-l em{display:none;font:500 .78rem 'DM Sans',sans-serif;color:#b0473d;font-style:normal}.hb-l.bad em{display:block}.hb-l.bad input,.hb-l.bad textarea{border-color:#b0473d}
.hb-send,.hb-again{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;border:0;border-radius:999px;background:linear-gradient(135deg,#c2574b,#b0473d);color:#fff;font:700 .92rem 'DM Sans',sans-serif;cursor:pointer;transition:transform .3s cubic-bezier(.34,1.56,.64,1),box-shadow .3s}
.hb-send:hover,.hb-again:hover{transform:translateY(-2px);box-shadow:0 12px 22px -12px rgba(176,71,61,.8)}.hb-send .ic,.hb-again .ic{width:18px;height:18px;stroke:#fff}
.hb-send:disabled{opacity:.6;cursor:wait}
.hb-again{background:#fff;color:#1f2b47;border:1.5px solid #e2d8c6}.hb-again .ic{stroke:#1f2b47}
.hb-ok{align-items:center;text-align:center;padding:26px 20px}.hb-ok b{font:700 1.15rem 'Fraunces',Georgia,serif;color:#1f2b47}.hb-ok p{margin:0;color:#545b6e}
.hb-okic{display:grid;place-items:center;width:58px;height:58px;border-radius:50%;background:#e7f2ea;animation:hbPop .6s cubic-bezier(.34,1.56,.64,1)}.hb-okic .ic{width:28px;height:28px;stroke:#3d7a57;stroke-dasharray:30;stroke-dashoffset:30;animation:hbChk .5s .25s forwards}
@keyframes hbPop{from{transform:scale(.4);opacity:0}}@keyframes hbChk{to{stroke-dashoffset:0}}
@media (prefers-reduced-motion:reduce){.hb .hb-cup .wisp,.hb-okic,.hb-okic .ic{animation:none;stroke-dashoffset:0}}
.hb-s1,.hb-s2{display:flex;flex-direction:column;gap:12px;animation:hbStep .4s cubic-bezier(.16,1,.3,1)}.hb-s1[hidden],.hb-s2[hidden]{display:none}
.hb-who{display:flex;align-items:center;gap:8px;margin:0;padding:9px 12px;border-radius:12px;background:#f6efe4;font:500 .88rem 'DM Sans',sans-serif;color:#1f2b47;min-width:0}
.hb-who .ic{width:16px;height:16px;flex:none;stroke:#b0473d}.hb-who span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hb-chg{border:0;background:none;color:#b0473d;font:700 .82rem 'DM Sans',sans-serif;cursor:pointer;padding:2px 4px}.hb-chg{border-radius:999px;transition:background .2s}.hb-chg:hover{background:rgba(176,71,61,.1)}
@keyframes hbStep{from{opacity:0;transform:translateX(10px)}}
