.orb{position:relative;flex:none;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle at 32% 28%,#9A7C4B 0,#6E1515 42%,#4C0101 78%);box-shadow:0 0 0 0 rgba(154,124,75,.45),0 6px 18px -6px rgba(76,1,1,.55);animation:orbBreath 3.6s ease-in-out infinite;overflow:hidden}
.orb::before{content:"";position:absolute;inset:-30%;background:conic-gradient(from 0deg,transparent 0 55%,rgba(242,238,231,.38) 68%,transparent 80%);animation:orbSpin 6s linear infinite}
.orb svg{position:relative;width:56%;height:56%;animation:orbTwinkle 3.6s ease-in-out infinite}
.orb.think{animation:orbPulse 1.2s ease-in-out infinite}
@keyframes orbBreath{0%,100%{transform:scale(1)}50%{transform:scale(1.04);box-shadow:0 0 0 8px rgba(154,124,75,0),0 8px 22px -6px rgba(76,1,1,.6)}}
@keyframes orbPulse{0%,100%{box-shadow:0 0 0 0 rgba(154,124,75,.6)}70%{box-shadow:0 0 0 12px rgba(154,124,75,0)}}
@keyframes orbSpin{to{transform:rotate(360deg)}}
@keyframes orbTwinkle{0%,100%{transform:scale(1) rotate(0)}50%{transform:scale(.88) rotate(12deg)}}
.aly-fab{position:fixed;right:20px;bottom:20px;z-index:81;display:flex;align-items:center;gap:10px;padding:0;background:none;border:none;cursor:pointer;font-family:inherit}
.aly-fab .lbl{padding:8px 14px;background:#FDFDFD;color:#282522;border:1px solid #E4DDD2;border-radius:99px;font-size:14px;font-weight:600;box-shadow:0 6px 18px -8px rgba(0,0,0,.35);transition:transform .2s}
.aly-fab:hover .lbl{transform:translateX(-4px)}
.aly-fab .orb{width:60px;height:60px}
.aly-panel{position:fixed;right:20px;bottom:96px;z-index:80;width:380px;max-width:calc(100vw - 32px);height:580px;max-height:calc(100vh - 120px);display:flex;flex-direction:column;background:#FDFDFD;border-radius:14px;box-shadow:0 30px 70px -20px rgba(40,37,34,.55);overflow:hidden;font-family:Manrope,system-ui,sans-serif;color:#282522;animation:alyIn .35s cubic-bezier(.2,.7,.2,1) both;transform-origin:bottom right}
.aly-panel[hidden]{display:none}
@keyframes alyIn{from{opacity:0;transform:translateY(16px) scale(.97)}to{opacity:1;transform:none}}
.aly-head{display:flex;align-items:center;gap:12px;padding:14px 14px 14px 16px;background:#4C0101;color:#FDFDFD}
.aly-head .orb{width:40px;height:40px}
.aly-head .who{display:flex;flex-direction:column;flex:1;min-width:0}
.aly-head strong{font-weight:700;font-size:17px}
.aly-head .ia{margin-left:8px;padding:2px 8px;border-radius:10px;background:#9A7C4B;font-size:11px;font-weight:700;letter-spacing:.06em}
.aly-head .sub{font-size:12.5px;color:#EDE6DA}
.aly-x{width:44px;height:44px;display:flex;align-items:center;justify-content:center;background:transparent;border:none;color:#FDFDFD;cursor:pointer}
.aly-note{margin:0;padding:9px 16px;background:#F2EEE7;font-size:12px;line-height:1.5;color:#4A443D}
.aly-log{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:10px;background:#FBF9F6}
.aly-m{max-width:88%;margin:0;padding:12px 14px;font-size:14.5px;line-height:1.55;white-space:pre-line;animation:alyMsg .4s cubic-bezier(.2,.7,.2,1) both}
@keyframes alyMsg{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.aly-m.bot{align-self:flex-start;background:#F2EEE7;border-radius:14px 14px 14px 4px}
.aly-m.me{align-self:flex-end;background:#4C0101;color:#FDFDFD;border-radius:14px 14px 4px 14px}
.aly-cta{display:flex;flex-wrap:wrap;gap:6px;align-self:flex-start}
.aly-cta a{display:inline-flex;align-items:center;min-height:38px;padding:0 12px;border-radius:20px;text-decoration:none;font-size:13px;font-weight:600;border:1px solid #4C0101;color:#4C0101}
.aly-cta a.p{background:#4C0101;color:#FDFDFD}
.aly-typing{align-self:flex-start;display:flex;gap:5px;padding:14px 16px;background:#F2EEE7;border-radius:14px 14px 14px 4px}
.aly-typing i{width:7px;height:7px;border-radius:50%;background:#9A7C4B;animation:alyDot 1.2s ease-in-out infinite}
.aly-typing i:nth-child(2){animation-delay:.15s}.aly-typing i:nth-child(3){animation-delay:.3s}
@keyframes alyDot{0%,80%,100%{opacity:.25}40%{opacity:1}}
.aly-sugg{display:flex;gap:6px;padding:10px 14px 2px;overflow-x:auto}
.aly-sugg button{flex-shrink:0;min-height:38px;padding:0 12px;background:#FDFDFD;color:#4C0101;border:1px solid #C7BEB2;border-radius:20px;font:inherit;font-size:13px;font-weight:600;cursor:pointer;white-space:nowrap}
.aly-sugg button:hover{background:#4C0101;color:#FDFDFD}
.aly-form{display:flex;gap:8px;padding:10px 14px 14px}
.aly-form input{flex:1;min-width:0;height:46px;padding:0 14px;border:1px solid #C7BEB2;border-radius:23px;background:#FDFDFD;font:inherit;font-size:14.5px;color:#282522}
.aly-form button{width:46px;height:46px;flex-shrink:0;display:flex;align-items:center;justify-content:center;border:none;border-radius:50%;background:#4C0101;color:#FDFDFD;cursor:pointer}
@media (prefers-reduced-motion: reduce){.orb,.orb::before,.orb svg,.aly-panel,.aly-m,.aly-typing i{animation:none}}
@media (max-width:560px){.aly-fab .lbl{display:none}.aly-fab .orb{width:54px;height:54px}.aly-fab{right:14px;bottom:14px}.aly-panel{right:12px;bottom:80px;height:calc(100vh - 110px)}}
.aly-fab{bottom:calc(20px + env(safe-area-inset-bottom))}
@media (max-width:1079.98px),(pointer:coarse){
  .aly-form input{font-size:16px}
  .aly-sugg button,.aly-cta a{min-height:44px}
  .aly-head .ia{font-size:12px}
}
@media (max-width:560px){
  .aly-fab{bottom:calc(14px + env(safe-area-inset-bottom))}
  .aly-panel{inset:0;right:0;bottom:0;width:100%;max-width:none;height:100%;height:100dvh;max-height:none;border-radius:0;transform-origin:bottom center}
  .aly-head{padding-top:calc(14px + env(safe-area-inset-top))}
  .aly-form{padding-bottom:calc(14px + env(safe-area-inset-bottom))}
  body.aly-open{overflow:hidden}
  body.aly-open .aly-fab{display:none}
}
