*,:before,:after{box-sizing:border-box;margin:0;padding:0}html{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:Segoe UI,system-ui,-apple-system,BlinkMacSystemFont,sans-serif}body{color:#f5f3ff;background:#050308;min-height:100dvh}#root{min-height:100dvh}button,input{font:inherit}.app{flex-direction:column;align-items:center;min-height:100dvh;display:flex;position:relative;overflow:hidden}.app__bg{z-index:0;background:radial-gradient(at 50% 0,#1a1033 0%,#0a0612 50%,#050308 100%);position:fixed;inset:0}.app__orb{filter:blur(80px);opacity:.4;border-radius:50%;animation:8s ease-in-out infinite float;position:absolute}.app__orb--1{background:#7c3aed;width:400px;height:400px;top:-100px;left:50%;transform:translate(-50%)}.app__orb--2{background:#ec4899;width:300px;height:300px;animation-delay:-3s;bottom:10%;left:-5%}.app__orb--3{background:#3b82f6;width:250px;height:250px;animation-delay:-5s;bottom:20%;right:-5%}@keyframes float{0%,to{transform:translateY(0)translate(-50%)}50%{transform:translateY(30px)translate(-50%)}}.app__header{z-index:1;align-items:center;gap:.6rem;padding:1.5rem 1rem .5rem;display:flex;position:relative}.app__logo-icon{color:#c084fc}.app__title{letter-spacing:-.02em;color:#f5f3ff;font-size:1.25rem;font-weight:600}.app__badge{color:#c4b5fd;background:#7c3aed40;border:1px solid #7c3aed59;border-radius:999px;padding:.2rem .55rem;font-size:.7rem;font-weight:500}.app__main{z-index:1;flex-direction:column;flex:1;gap:1.5rem;width:100%;max-width:520px;padding:1rem 1.25rem 2rem;display:flex;position:relative}.app__error{color:#fca5a5;text-align:center;background:#ef444426;border:1px solid #ef444459;border-radius:12px;padding:.75rem 1rem;font-size:.875rem}.avatar-ring-container{flex-direction:column;align-items:center;gap:1.25rem;display:flex}.avatar-ring{justify-content:center;align-items:center;width:180px;height:180px;display:flex;position:relative}.avatar-ring__pulse{opacity:0;border:2px solid #0000;border-radius:50%;position:absolute;inset:0}.avatar-ring--listening .avatar-ring__pulse,.avatar-ring--speaking .avatar-ring__pulse{animation:2s ease-out infinite pulse-ring}.avatar-ring--listening .avatar-ring__pulse{border-color:#34d39999}.avatar-ring--speaking .avatar-ring__pulse{border-color:#c084fc99}.avatar-ring--loading .avatar-ring__pulse{border-color:#60a5fa80;animation:1.5s ease-out infinite pulse-ring}.avatar-ring__pulse--2{animation-delay:.4s}.avatar-ring__pulse--3{animation-delay:.8s}@keyframes pulse-ring{0%{opacity:.8;transform:scale(.85)}to{opacity:0;transform:scale(1.35)}}.avatar-ring__core{background:linear-gradient(145deg,#2d1b4e 0%,#1a0f2e 100%);border:2px solid #c084fc59;border-radius:50%;justify-content:center;align-items:center;width:130px;height:130px;transition:box-shadow .3s;display:flex;box-shadow:0 0 40px #7c3aed4d,inset 0 0 30px #7c3aed1a}.avatar-ring--listening .avatar-ring__core{border-color:#34d39980;box-shadow:0 0 50px #34d39966,inset 0 0 30px #34d3991a}.avatar-ring--speaking .avatar-ring__core{border-color:#c084fc99;animation:1.2s ease-in-out infinite glow-speak;box-shadow:0 0 50px #c084fc80,inset 0 0 30px #c084fc26}@keyframes glow-speak{0%,to{transform:scale(1)}50%{transform:scale(1.03)}}.avatar-ring__face{background:linear-gradient(160deg,#a855f7 0%,#7c3aed 50%,#6d28d9 100%);border-radius:50%;justify-content:center;align-items:center;width:90px;height:90px;display:flex}.avatar-ring__initial{color:#fff;text-shadow:0 2px 8px #0000004d;font-size:2.5rem;font-weight:700}.mic-button{color:#fff;cursor:pointer;background:linear-gradient(145deg,#7c3aed,#6d28d9);border:none;border-radius:50%;justify-content:center;align-items:center;width:64px;height:64px;transition:transform .2s,box-shadow .2s,background .2s;display:flex;box-shadow:0 4px 20px #7c3aed73}.mic-button:hover:not(:disabled){transform:scale(1.06);box-shadow:0 6px 28px #7c3aed8c}.mic-button:active:not(:disabled){transform:scale(.97)}.mic-button--active{background:linear-gradient(145deg,#10b981,#059669);animation:1.5s ease-in-out infinite mic-pulse;box-shadow:0 4px 20px #10b98173}.mic-button:disabled{opacity:.5;cursor:not-allowed}@keyframes mic-pulse{0%,to{box-shadow:0 4px 20px #10b98173}50%{box-shadow:0 4px 32px #10b981b3}}.avatar-ring__status{color:#a78bfa;text-align:center;min-height:1.25rem;font-size:.875rem}.chat-box{-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background:#ffffff0a;border:1px solid #ffffff14;border-radius:20px;flex-direction:column;flex:1;min-height:280px;display:flex;overflow:hidden}.chat-box__messages{flex-direction:column;flex:1;gap:.75rem;max-height:340px;padding:1.25rem;display:flex;overflow-y:auto}.chat-box__empty{color:#6b7280;text-align:center;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:.75rem;padding:2rem 1rem;display:flex}.chat-box__empty p{font-size:.875rem;line-height:1.5}.chat-bubble{align-items:flex-start;gap:.6rem;max-width:92%;animation:.3s fade-in;display:flex}.chat-bubble--user{flex-direction:row-reverse;align-self:flex-end}.chat-bubble--assistant{align-self:flex-start}.chat-bubble__icon{border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:28px;height:28px;display:flex}.chat-bubble--user .chat-bubble__icon{color:#93c5fd;background:#3b82f640}.chat-bubble--assistant .chat-bubble__icon{color:#c4b5fd;background:#7c3aed40}.chat-bubble__text{border-radius:14px;padding:.65rem .9rem;font-size:.9rem;line-height:1.5}.chat-bubble--user .chat-bubble__text{color:#e0e7ff;background:#3b82f633;border-bottom-right-radius:4px}.chat-bubble--assistant .chat-bubble__text{color:#ede9fe;background:#7c3aed26;border-bottom-left-radius:4px}.typing-indicator{background:#7c3aed26;border-radius:14px 14px 14px 4px;gap:4px;padding:.75rem 1rem;display:flex}.typing-indicator span{background:#a78bfa;border-radius:50%;width:7px;height:7px;animation:1.2s ease-in-out infinite bounce}.typing-indicator span:nth-child(2){animation-delay:.15s}.typing-indicator span:nth-child(3){animation-delay:.3s}@keyframes bounce{0%,60%,to{transform:translateY(0)}30%{transform:translateY(-6px)}}@keyframes fade-in{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}.chat-box__input-row{background:#00000026;border-top:1px solid #ffffff0f;gap:.5rem;padding:.85rem 1rem;display:flex}.chat-box__input{color:#f5f3ff;background:#ffffff0d;border:1px solid #ffffff1a;border-radius:12px;outline:none;flex:1;padding:.65rem 1rem;font-size:.9rem;transition:border-color .2s}.chat-box__input::placeholder{color:#6b7280}.chat-box__input:focus{border-color:#7c3aed80}.chat-box__send{color:#fff;cursor:pointer;background:linear-gradient(145deg,#7c3aed,#6d28d9);border:none;border-radius:12px;padding:.65rem 1.1rem;font-size:.875rem;font-weight:500;transition:opacity .2s}.chat-box__send:hover:not(:disabled){opacity:.9}.chat-box__send:disabled{opacity:.4;cursor:not-allowed}
