.faybot{--fb-ink:#273136;--fb-gold:#d5a848;--fb-muted:#667277;box-sizing:border-box;width:100%;max-width:540px;background:#fff;color:var(--fb-ink);border:1px solid rgba(39,49,54,.09);border-radius:24px;padding:30px;box-shadow:0 22px 60px rgba(0,0,0,.2);font-family:Inter,Arial,sans-serif;line-height:1.55}.faybot *{box-sizing:border-box}.faybot button,.faybot input{font:inherit}.faybot-head{display:flex;align-items:center;gap:17px}.faybot-orb{flex:none;position:relative;width:70px;height:70px;border:0;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff4d0,#d5a848 52%,#89631d);box-shadow:0 0 0 8px rgba(213,168,72,.14),0 10px 24px rgba(113,78,13,.2);cursor:pointer}.faybot-orb:after{content:"";position:absolute;inset:17px;border:1px solid rgba(255,255,255,.85);border-radius:50%}.faybot-orb.listening,.faybot-orb.speaking{animation:faybot-pulse 1.4s infinite}@keyframes faybot-pulse{50%{box-shadow:0 0 0 17px rgba(213,168,72,.12),0 10px 24px rgba(113,78,13,.2)}}.faybot-head h2{font-family:Manrope,Inter,Arial,sans-serif;font-size:26px;line-height:1.15;letter-spacing:-.04em;margin:0;color:var(--fb-ink)}.faybot-head p{font-size:13px;color:var(--fb-muted);margin:5px 0 0}.faybot-log{height:220px;overflow:auto;background:#f5f5f1;border-radius:14px;padding:14px;margin:20px 0 14px;font-size:14px}.faybot-bubble{max-width:94%;background:#fff;padding:10px 13px;border-radius:12px;white-space:pre-wrap;margin:0 0 10px;color:var(--fb-ink)}.faybot-bubble.user{margin-left:auto;background:#ead9ad}.faybot-replay{display:block;margin:8px 0 0;padding:0;border:0;background:none;color:#8a641a;font-size:12px;font-weight:700;cursor:pointer}.faybot-form{display:flex;gap:8px}.faybot-form input{flex:1;min-width:0;background:#fff;color:var(--fb-ink);border:1px solid #dadcd7;border-radius:11px;padding:12px 13px;font-size:14px}.faybot-form button{background:var(--fb-ink);color:#fff;border:0;border-radius:11px;padding:0 17px;font-size:14px;font-weight:700;cursor:pointer}.faybot-form button:disabled{opacity:.55;cursor:wait}.faybot-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}.faybot-file{font-size:12px;font-weight:700;color:var(--fb-muted);cursor:pointer}.faybot-file input{display:none}.faybot-sound{padding:3px 0;border:0;background:transparent;color:#8a641a;font-size:12px;font-weight:700;cursor:pointer}.faybot-status{font-size:11px;color:var(--fb-muted);margin:10px 0 0}.faybot :focus-visible{outline:3px solid var(--fb-gold);outline-offset:3px}@media(max-width:600px){.faybot{padding:22px;border-radius:19px}.faybot-head h2{font-size:22px}.faybot-orb{width:60px;height:60px}.faybot-log{height:190px}}

.faybot-listen{display:block;margin-top:9px;border:0;border-radius:8px;background:#d5a848;color:#273136;padding:8px 12px;font-size:12px;font-weight:800;cursor:pointer}

.faybot-orb-icon{position:absolute;left:50%;top:50%;width:0;height:0;border-top:9px solid transparent;border-bottom:9px solid transparent;border-left:15px solid #fff;transform:translate(-38%,-50%);filter:drop-shadow(0 1px 2px rgba(69,44,5,.2))}.faybot-orb.is-listening .faybot-orb-icon,.faybot-orb.is-thinking .faybot-orb-icon,.faybot-orb.is-speaking .faybot-orb-icon{width:16px;height:20px;border:0;background:linear-gradient(to right,#fff 0 5px,transparent 5px 11px,#fff 11px 16px);transform:translate(-50%,-50%);border-radius:2px}.faybot-orb.is-thinking:before{content:"";position:absolute;inset:-9px;border-radius:50%;border:2px solid transparent;border-top-color:#d5a848;border-right-color:rgba(213,168,72,.55);animation:faybot-spin 1.8s linear infinite}.faybot-orb.is-speaking:before{content:"";position:absolute;inset:-8px;border:2px solid rgba(213,168,72,.65);border-radius:50%;animation:faybot-wave 1.1s ease-in-out infinite}.faybot-orb.is-listening:before{content:"";position:absolute;inset:-8px;border:2px solid rgba(213,168,72,.55);border-radius:50%;animation:faybot-wave 1.6s ease-in-out infinite}.faybot-orb.is-paused{filter:saturate(.75)}.faybot-orb.is-paused:before{content:"";position:absolute;inset:-8px;border:2px solid rgba(39,49,54,.2);border-radius:50%}@keyframes faybot-spin{to{transform:rotate(360deg)}}@keyframes faybot-wave{50%{transform:scale(1.1);opacity:.4}}@media(prefers-reduced-motion:reduce){.faybot-orb.is-thinking:before,.faybot-orb.is-speaking:before,.faybot-orb.is-listening:before{animation:none}}
.faybot-nexor{max-width:520px}.faybot-nexor .faybot-orb{display:inline-block;pointer-events:none}.faybot-nexor-copy{color:#5d686c;font-size:14px;line-height:1.6;margin:20px 0}.faybot-nexor-open{border:0;border-radius:999px;background:#273136;color:#fff;padding:13px 22px;font:700 14px Inter,Arial,sans-serif;cursor:pointer}.faybot-nexor-open:hover{background:#394449}.faybot-nexor-open span{font-size:22px;vertical-align:-2px;margin-left:8px}

.faybot .faybot-voice-orb {
  width: clamp(82px, 14vw, 116px);
  height: auto;
  aspect-ratio: 1;
  isolation: isolate;
  background: #15213e;
  box-shadow: 0 0 0 6px #674fff19, 0 0 24px #6a76ff60;
}
.faybot-voice-orb .faybot-orb-light {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 28% 24%, #c4fcff 0%, #23badb 16%, transparent 45%),
    radial-gradient(ellipse at 82% 27%, #fb85ff 0%, #8546de 20%, transparent 55%),
    radial-gradient(ellipse at 65% 86%, #ffc987 0%, #c65bdc 24%, transparent 55%),
    #17274e;
  box-shadow: inset 0 0 14px #d4cfff, 0 0 15px #6757e980;
  transform: scale(var(--voice-scale, 1));
  pointer-events: none;
}
.faybot .faybot-voice-orb:after {
  border-color: #ffffff80;
  z-index: 1;
}
.faybot .faybot-voice-orb .faybot-orb-icon { z-index: 2; }
.faybot .faybot-voice-orb:focus-visible { outline: 3px solid #6955c5; outline-offset: 9px; }
.faybot .faybot-voice-orb.is-speaking:before,
.faybot .faybot-voice-orb.is-listening:before { border-color: #7766e6; }
.faybot .faybot-voice-orb.is-listening .faybot-orb-light { animation: faybot-wave 1.5s ease-in-out infinite; }
@media(prefers-reduced-motion:reduce) {
  .faybot .faybot-voice-orb .faybot-orb-light { animation: none; transform: none; }
}

.faybot .faybot-stop-voice{margin-top:12px;padding:8px 13px;border-radius:10px;border:1px solid #273136;background:#fff;color:#273136;font-weight:700}
.faybot .faybot-stop-voice[hidden]{display:none}
.fay-conversation:has(.faybot-orb.is-listening) .fay-portal{animation:faybot-wave 1.25s ease-in-out infinite}
@media(prefers-reduced-motion:reduce){.fay-conversation:has(.faybot-orb.is-listening) .fay-portal{animation:none}}
