.hx-exchange{--hx-avatar:80px;--hx-gap:14px;--hx-warm:#f7f0e3;--hx-cool:#e4ecf9;--hx-navy:#1a2144;--hx-gold:#e8c584;--hx-ease:var(--ease,cubic-bezier(.22, 1, .36, 1));width:100%;max-width:620px;margin-inline:auto;position:relative;container-type:inline-size}.hx-stage{flex-direction:column;justify-content:center;gap:6px;min-height:280px;padding:10px 4px;display:flex}.hx-row{align-items:center;gap:var(--hx-gap);display:flex}.hx-row[data-side=right]{flex-direction:row-reverse}.hx-avatar{width:var(--hx-avatar);height:var(--hx-avatar);filter:drop-shadow(0 6px 14px #0b0d1959);opacity:0;transition:opacity .45s var(--hx-ease), transform .45s var(--hx-ease);border-radius:50%;flex:none;transform:translateY(6px)}.hx-avatar-blank{filter:none;height:0;display:block}.hx-row[data-state=typing] .hx-avatar,.hx-row[data-state=said] .hx-avatar{opacity:1;transform:none}.hx-slot{flex:auto;min-width:0;display:flex;position:relative}.hx-row[data-side=right] .hx-slot{justify-content:flex-end}.hx-bubble{background:var(--hx-warm);max-width:100%;color:var(--hx-navy);text-wrap:pretty;opacity:0;transition:opacity .42s var(--hx-ease), transform .42s var(--hx-ease);border:1px solid #e8c58438;border-radius:20px;padding:13px 18px;font-size:15px;line-height:1.5;position:relative;transform:translateY(8px);box-shadow:0 10px 24px #0b0d1933}.hx-bubble[data-tone=cool]{background:var(--hx-cool)}.hx-row[data-state=said] .hx-bubble{opacity:1;transform:none}.hx-bubble:after{content:"";background:linear-gradient(90deg,#e8c5848c,#e8c58400);border-radius:2px;width:12px;height:2px;position:absolute;bottom:10px}.hx-row[data-side=left] .hx-bubble:after{left:-11px}.hx-row[data-side=right] .hx-bubble:after{background:linear-gradient(270deg,#e8c5848c,#e8c58400);right:-11px}.hx-typing{opacity:0;transition:opacity .28s var(--hx-ease), transform .28s var(--hx-ease);pointer-events:none;background:#f7f0e3cc;border:1px solid #e8c58433;border-radius:999px;gap:5px;padding:11px 14px;display:flex;position:absolute;top:50%;left:0;transform:translateY(-50%)scale(.86)}.hx-row[data-side=right] .hx-typing{left:auto;right:0}.hx-row[data-state=typing] .hx-typing{opacity:1;transform:translateY(-50%)scale(1)}.hx-dot{background:#2a3157a6;border-radius:50%;width:6px;height:6px}.hx-row[data-state=typing] .hx-dot{animation:hx-dot 1.1s var(--hx-ease) infinite}.hx-dot:nth-child(2){animation-delay:.16s}.hx-dot:nth-child(3){animation-delay:.32s}@keyframes hx-dot{0%,70%,to{opacity:.35;transform:none}35%{opacity:1;transform:translateY(-3px)}}.hx-caption{color:var(--muted,#adaebb);letter-spacing:.6px;text-align:center;border-top:1px solid #e8c58426;margin-top:6px;padding-top:10px;font-size:11px;line-height:1.4}.hx-controls{flex-wrap:wrap;justify-content:center;gap:10px;margin-top:8px;display:flex}.hx-controls .hx-control{border:1px solid var(--line,#c7c1b52b);min-height:44px;color:var(--muted,#adaebb);font:inherit;cursor:pointer;letter-spacing:.3px;transition:background .2s var(--hx-ease), color .2s var(--hx-ease), transform .12s var(--hx-ease);background:#15172559;border-radius:999px;align-items:center;gap:8px;padding:0 16px;font-size:12px;display:inline-flex}.hx-controls .demo-icon{width:13px;height:13px}@media (hover:hover){.hx-controls .hx-control:hover{color:var(--ink,#f6f0e6);background:#e8c5841f}}.hx-controls .hx-control:active{color:var(--ink,#f6f0e6);background:#e8c58429;transform:scale(.97)}.hx-transcript{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.hx-stage[data-phase=fade]{opacity:0;transition:opacity .5s linear}.hx-stage[data-phase=lead] .hx-avatar,.hx-stage[data-phase=lead] .hx-bubble,.hx-stage[data-phase=lead] .hx-typing{transition:none}.hx-stage[data-active=false] .hx-dot{animation-play-state:paused}html[data-interactive=true]:not([data-reduce-motion=true]) .hx-stage[data-mounted=false]{opacity:0;animation:1ms 1.2s forwards hx-boot-fallback}@keyframes hx-boot-fallback{to{opacity:1}}@container (width<=420px){.hx-stage{--hx-avatar:60px;--hx-gap:10px;gap:5px;min-height:260px;padding:6px 2px}.hx-bubble{border-radius:17px;padding:11px 14px;font-size:14px}.hx-typing{padding:9px 12px}.hx-controls .hx-control{padding:0 13px;font-size:11px}}html[data-reduce-motion=true] .hx-controls,html[data-reduce-motion=true] .hx-typing{display:none}html[data-reduce-motion=true] .hx-stage,html[data-reduce-motion=true] .hx-avatar,html[data-reduce-motion=true] .hx-bubble{opacity:1!important;transform:none!important}.hx-controls .hx-control:focus-visible{outline:2px solid var(--hx-gold);outline-offset:3px}.phone-demo{width:min(100%,245px);min-width:0;margin:0 auto;position:relative}.phone-device{aspect-ratio:1278/2501;filter:drop-shadow(0 25px 34px #0008);width:100%;transform:translateY(var(--phone-depth,0px));margin:0;transition:transform .3s ease-out;position:relative}.phone-screen{background:#080d0d;border-radius:7.77874%/3.75783%;position:absolute;inset:1.91923% 5.16432% 2.31907% 4.3036%;overflow:hidden}.phone-poster,.phone-screen video{object-fit:fill;width:100%;height:100%;display:block;position:absolute;inset:0}.phone-demo[data-screen=studio] .phone-screen{background:#141619}.phone-demo[data-screen=journal] .phone-screen{background:linear-gradient(#17181c 0 50%,#1d1e22 50% 100%)}.phone-demo[data-screen=four-in-a-row] .phone-screen{background:#111528}.phone-demo:is([data-screen=journal],[data-screen=four-in-a-row],[data-screen=studio]) :is(.phone-poster,video){height:93%;top:4%}.phone-screen video{opacity:0;transition:opacity .18s}.phone-screen video.is-playing{opacity:1}.phone-shell{pointer-events:none;width:100%;height:100%;position:absolute;inset:0}.phone-demo-actions{z-index:2;text-align:center;justify-items:center;gap:4px;margin-top:18px;display:grid;position:relative}.demo-caption{color:var(--muted);letter-spacing:.04em;font-size:11px}.phone-playback-controls,.connect-demo-actions{flex-wrap:wrap;justify-content:center;align-items:center;gap:2px 8px;display:flex}.demo-control{min-height:44px;color:var(--muted);font:inherit;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:9px;justify-content:center;align-items:center;gap:7px;padding:8px 10px;font-size:11px;line-height:1.4;transition:color .2s,border-color .2s,background .2s;display:inline-flex}.demo-control:hover{color:var(--gold);background:#e8c5840b;border-color:#e8c58430}.demo-control:focus-visible{outline:2px solid var(--gold);outline-offset:3px}.demo-accept{color:var(--gold)}.demo-icon{flex:none;width:15px;height:15px}.phone-demo[data-active=false]{display:none}@media (min-width:1000px) and (min-height:700px){.phone-demo{width:min(245px,51.1svh - 132.86px)}}@media (max-width:1100px){.phone-demo{max-width:245px}}@media (min-width:701px) and (max-width:900px){.phone-demo{max-width:245px}}@media (max-width:700px){.phone-demo{width:min(100%,230px);max-width:none}}@media (prefers-reduced-motion:reduce){.phone-device{transition:none;transform:none}.phone-screen video{display:none}}html[data-reduce-motion=true] .phone-device{transition:none;transform:none}html[data-reduce-motion=true] .phone-screen video{display:none}.phone-demo:is([data-screen=journal],[data-screen=studio]) .phone-poster{object-fit:cover;object-position:center top}
