/* Xiaphia chat - frosted glass + voice orb (design #1, 5 Dec 2026) */
#xc-btn,#xc-panel{--xc-navy:#092e50;--xc-blue:#1677c8;--xc-green:#1eb579;font-family:Montserrat,Arial,Helvetica,sans-serif}
.xc-orb{position:relative;display:inline-block;width:34px;height:34px;flex:none;border-radius:50%;background:radial-gradient(circle at 32% 28%,#9be7c8 0,#1eb579 28%,#1677c8 66%,#092e50 100%);box-shadow:0 0 0 2px rgba(255,255,255,.35),0 0 14px rgba(30,181,121,.55)}
.xc-orb:after{content:"";position:absolute;inset:-5px;border-radius:50%;border:2px solid rgba(30,181,121,.55);opacity:0}
@media(prefers-reduced-motion:no-preference){.xc-orb:after{animation:xcpulse 2.6s ease-out infinite}@keyframes xcpulse{0%{transform:scale(.8);opacity:.8}100%{transform:scale(1.35);opacity:0}}}
#xc-btn{position:fixed;right:22px;bottom:22px;z-index:99990;display:flex;align-items:center;gap:10px;border:0;cursor:pointer;color:#fff;padding:7px 20px 7px 8px;border-radius:999px;background:rgba(9,46,80,.88);box-shadow:0 10px 30px rgba(9,46,80,.35);text-align:left;isolation:isolate;overflow:hidden}
@supports((backdrop-filter:blur(10px)) or (-webkit-backdrop-filter:blur(10px))){#xc-btn{background:rgba(9,46,80,.72);-webkit-backdrop-filter:blur(14px) saturate(1.5);backdrop-filter:blur(14px) saturate(1.5)}}
#xc-btn:before{content:"";position:absolute;left:-60%;right:-60%;top:-400%;bottom:-400%;z-index:-2;background:conic-gradient(from 0deg,#1eb579,#1677c8,#9a8cff,#1eb579)}
@media(prefers-reduced-motion:no-preference){#xc-btn:before{animation:xcspin 6s linear infinite}@keyframes xcspin{to{transform:rotate(360deg)}}}
#xc-btn:after{content:"";position:absolute;inset:2px;border-radius:inherit;z-index:-1;background:rgba(9,46,80,.96)}
.xc-lt{display:flex;flex-direction:column;line-height:1.15}.xc-lt b{font-size:14px;font-weight:700}.xc-lt i{font-style:normal;font-size:11px;color:#9be7c8;font-weight:600}
#xc-btn:hover{transform:translateY(-1px)}
#xc-btn:focus-visible,#xc-panel button:focus-visible,#xc-panel input:focus-visible,#xc-panel textarea:focus-visible{outline:3px solid #1eb579;outline-offset:2px}
#xc-panel{position:fixed;right:22px;bottom:22px;z-index:99991;width:380px;max-width:calc(100vw - 24px);height:560px;max-height:calc(100vh - 44px);display:none;flex-direction:column;overflow:hidden;border-radius:20px;color:#1f2d3d;font-size:14.5px;line-height:1.5;border:1px solid rgba(255,255,255,.7);box-shadow:0 24px 60px rgba(9,46,80,.32),0 2px 6px rgba(9,46,80,.12);background:linear-gradient(160deg,#f4f1ff 0%,#eaf6f3 55%,#eef4fb 100%)}
@supports((backdrop-filter:blur(10px)) or (-webkit-backdrop-filter:blur(10px))){#xc-panel{background:linear-gradient(160deg,rgba(244,241,255,.82),rgba(234,246,243,.8) 55%,rgba(238,244,251,.82));-webkit-backdrop-filter:blur(22px) saturate(1.5);backdrop-filter:blur(22px) saturate(1.5)}}
#xc-panel.open{display:flex}
.xc-head{display:flex;align-items:center;gap:11px;padding:14px 14px 14px 16px;color:#fff;background:linear-gradient(135deg,#092e50 0%,#0d4274 100%)}
.xc-head .xc-orb{width:38px;height:38px}
.xc-ht{flex:1;min-width:0}.xc-ht b{display:block;font-size:14.5px;font-weight:700;line-height:1.2}
.xc-tag{display:inline-block;margin-top:3px;font-size:10.5px;font-weight:700;letter-spacing:.2px;color:#06331f;background:#7ee3b3;border-radius:999px;padding:1px 8px}
.xc-x{background:rgba(255,255,255,.12);border:0;color:#fff;width:30px;height:30px;border-radius:50%;font-size:20px;line-height:1;cursor:pointer}
.xc-x:hover{background:rgba(255,255,255,.22)}
.xc-log{flex:1;overflow-y:auto;padding:16px 14px 8px;display:flex;flex-direction:column;gap:10px;scroll-behavior:smooth}
.xc-m{max-width:88%;padding:10px 13px;border-radius:16px;white-space:pre-wrap;word-wrap:break-word;overflow-wrap:anywhere}
.xc-m.a{background:#fff;border:1px solid #e4ebf3;align-self:flex-start;border-top-left-radius:5px;box-shadow:0 1px 3px rgba(9,46,80,.06)}
.xc-m.u{background:linear-gradient(135deg,#1677c8,#0f5fa6);color:#fff;align-self:flex-end;border-bottom-right-radius:5px}
.xc-m a{color:inherit;text-decoration:underline}.xc-m.a a{color:#1677c8}
.xc-m.t{color:#64748b;background:transparent;border:0;box-shadow:none;padding:4px 2px;display:flex;gap:4px;align-items:center}
.xc-m.t span{width:7px;height:7px;border-radius:50%;background:#94a3b8;display:inline-block}
@media(prefers-reduced-motion:no-preference){.xc-m.t span{animation:xcdot 1.1s infinite ease-in-out}.xc-m.t span:nth-child(2){animation-delay:.15s}.xc-m.t span:nth-child(3){animation-delay:.3s}@keyframes xcdot{0%,80%,100%{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}}
.xc-chips{display:flex;flex-direction:column;align-items:flex-start;gap:7px;margin-top:2px}
.xc-chips button{background:rgba(255,255,255,.92);border:1px solid #c9d8e8;color:#0b4a82;border-radius:999px;padding:8px 14px;font:600 13px Montserrat,Arial,sans-serif;cursor:pointer;text-align:left;transition:background .15s,border-color .15s}
.xc-chips button:hover{background:#fff;border-color:#1677c8}
.xc-form{display:flex;gap:8px;align-items:center;padding:10px 12px 6px}
.xc-form input{flex:1;min-width:0;border:1px solid #cdd9e6;border-radius:999px;padding:11px 16px;font:14.5px Montserrat,Arial,sans-serif;background:rgba(255,255,255,.95);color:#1f2d3d}
.xc-form input::placeholder{color:#7b8b9d}
.xc-send{width:42px;height:42px;border-radius:50%;border:0;background:linear-gradient(135deg,#1677c8,#0f5fa6);cursor:pointer;display:flex;align-items:center;justify-content:center;flex:none}
.xc-send svg{width:18px;height:18px;fill:#fff}.xc-send:disabled{opacity:.45;cursor:default}
.xc-foot{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;padding:2px 14px 12px;font-size:11px;line-height:1.35;color:#5b6b7e}
.xc-foot button{background:none;border:0;color:#1677c8;cursor:pointer;font:600 11.5px Montserrat,Arial,sans-serif;white-space:nowrap;padding:0;text-decoration:underline}
.xc-ho{display:none;flex-direction:column;gap:8px;padding:12px 14px;background:rgba(255,255,255,.96);border-top:1px solid #dbe5ef;max-height:62%;overflow-y:auto}
.xc-ho.open{display:flex}
.xc-ho input,.xc-ho textarea{border:1px solid #cdd9e6;border-radius:12px;padding:10px 12px;font:14px Montserrat,Arial,sans-serif;width:100%;box-sizing:border-box}
.xc-ho .row{display:flex;gap:8px}.xc-ho .row button{flex:1;border:0;border-radius:999px;padding:10px;font:700 13px Montserrat,Arial,sans-serif;cursor:pointer}
.xc-ho .go{background:#1eb579;color:#fff}.xc-ho .no{background:#e2e8f0;color:#334155}
.xc-hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
@media(prefers-reduced-motion:no-preference){#xc-panel.open{animation:xcin .22s ease-out}@keyframes xcin{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:none}}}
@media(max-width:560px){
#xc-panel{right:0;left:0;bottom:0;width:100%;max-width:100%;height:82vh;max-height:82vh;border-radius:22px 22px 0 0}
#xc-panel:before{content:"";position:absolute;top:6px;left:50%;width:40px;height:4px;margin-left:-20px;border-radius:4px;background:rgba(255,255,255,.55);z-index:2}
.xc-chips{flex-direction:column;align-items:stretch}.xc-chips button{padding:11px 14px;font-size:13.5px}
#xc-btn{right:14px;bottom:14px}
}

#xc-btn,#xc-panel,#xc-panel *{-webkit-tap-highlight-color:transparent}
.xc-send svg{width:22px;height:22px}
@media(max-width:560px){body:has(#xc-panel.open) #xfit-ck-open{display:none!important}}
/* Emma profile photo instead of the orb */
.xc-orb{background:#dfe9f2 url(emma.jpg) center 30%/cover no-repeat;box-shadow:0 0 0 2px rgba(255,255,255,.7),0 0 12px rgba(30,181,121,.5)}
.xc-orb:before{content:"";position:absolute;right:-1px;bottom:-1px;width:9px;height:9px;border-radius:50%;background:#1eb579;border:2px solid #fff}
/* lead card, 5-minute timer */
.xc-left{display:block;font-size:11px;color:#cfe6f7;margin-top:2px;min-height:0}
.xc-m.xc-card{max-width:96%;width:96%;display:flex;flex-direction:column;gap:8px;white-space:normal}
.xc-card.done{display:none}
.xc-lead{display:flex;flex-direction:column;gap:8px;width:100%}
.xc-lead input:not([type=radio]),.xc-lead textarea{border:1px solid #cdd9e6;border-radius:12px;padding:10px 12px;font:14px Montserrat,Arial,sans-serif;width:100%;box-sizing:border-box}
.xc-choice{display:flex;flex-direction:column;gap:6px}
.xc-choice label{display:flex;gap:8px;align-items:flex-start;font:600 13px/1.3 Montserrat,Arial,sans-serif;color:#0f2f4d;cursor:pointer}
.xc-choice input{margin-top:2px;flex:none}
.xc-note{font-size:12px;color:#64748b}
.xc-lead .row{display:flex;gap:8px}.xc-lead .row button{flex:1;border:0;border-radius:999px;padding:10px;font:700 13px Montserrat,Arial,sans-serif;cursor:pointer}
.xc-lead .go{background:#1eb579;color:#fff}.xc-lead .no{background:#e2e8f0;color:#334155}
.xc-form input:disabled{background:#eef2f6;cursor:not-allowed}
/* beat theme button styles (pink hover/outline) */
#xc-panel .xc-lead .row button{background:#1eb579!important;color:#fff!important;border:0!important;border-radius:999px!important;box-shadow:none!important}
#xc-panel .xc-lead .row button.no{background:#e2e8f0!important;color:#334155!important}
#xc-panel .xc-lead .row button:disabled{opacity:.6}
#xc-panel .xc-foot button,#xc-panel .xc-foot button:hover,#xc-panel .xc-foot button:focus{background:transparent!important;color:#1677c8!important;border:0!important;box-shadow:none!important;text-decoration:underline}
#xc-panel .xc-choice input[type=radio]{width:auto!important;padding:0!important;border:0;flex:none}
#xc-panel .xc-choice label{flex-direction:row}
#xc-panel .xc-m.xc-lead{display:flex;flex-direction:column;gap:8px}
