/* Polyglot AI 5.7 - AI conversation and speaking practice */
.v57-launcher{position:fixed;right:18px;bottom:92px;z-index:2300;display:flex;gap:8px}
.v57-launcher button{border:1px solid rgba(255,255,255,.15);background:rgba(16,27,50,.96);color:#fff;border-radius:14px;min-height:44px;padding:0 14px;font-weight:800;box-shadow:0 12px 32px rgba(0,0,0,.28);cursor:pointer}
.v57-launcher button:first-child{background:linear-gradient(135deg,#7c3aed,#4f46e5)}
.v57-overlay{position:fixed;inset:0;z-index:4200;background:rgba(3,8,20,.72);backdrop-filter:blur(12px);display:grid;place-items:center;padding:16px}
.v57-shell{width:min(980px,96vw);height:min(790px,94dvh);background:linear-gradient(165deg,#1b2c50,#0d172c);border:1px solid rgba(255,255,255,.15);border-radius:26px;color:#fff;box-shadow:0 36px 100px rgba(0,0,0,.58);display:grid;grid-template-rows:auto auto 1fr auto;overflow:hidden}
.v57-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 17px;border-bottom:1px solid rgba(255,255,255,.1)}
.v57-head h2{font-size:20px;margin:0}.v57-head p{font-size:11px;color:#b7c6df;margin:3px 0 0}.v57-close{width:40px;height:40px;border-radius:12px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.05);color:#fff;font-size:22px;cursor:pointer}
.v57-controls{display:grid;grid-template-columns:1fr 1fr 1fr auto;gap:8px;padding:10px 14px;border-bottom:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.025)}
.v57-controls select,.v57-controls button{min-height:40px;border-radius:11px;border:1px solid rgba(255,255,255,.12);background:#152542;color:#fff;padding:0 10px}.v57-controls option{color:#111}
.v57-budget{display:flex;align-items:center;gap:6px;font-size:11px;color:#b7c6df;white-space:nowrap}
.v57-chat{overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:11px;overscroll-behavior:contain}
.v57-msg{max-width:78%;border:1px solid rgba(255,255,255,.1);border-radius:17px;padding:11px 13px;line-height:1.6;font-size:15px;white-space:pre-wrap}
.v57-msg.user{align-self:flex-end;background:linear-gradient(135deg,rgba(124,58,237,.35),rgba(79,70,229,.22))}.v57-msg.ai{align-self:flex-start;background:rgba(255,255,255,.055)}
.v57-msg small{display:block;margin-top:5px;color:#9fb1d0;font-size:10px}.v57-correction{margin-top:8px;padding:8px;border-radius:10px;background:rgba(251,191,36,.08);border:1px solid rgba(251,191,36,.2);font-size:12px;color:#ffe7a6}
.v57-compose{padding:11px 14px calc(11px + env(safe-area-inset-bottom));border-top:1px solid rgba(255,255,255,.1);display:grid;grid-template-columns:auto 1fr auto;gap:8px;background:rgba(9,16,31,.94)}
.v57-compose textarea{min-height:48px;max-height:120px;resize:none;border:1px solid rgba(255,255,255,.12);background:#12213c;color:#fff;border-radius:13px;padding:12px;font:inherit}
.v57-compose button{min-width:48px;border:0;border-radius:13px;color:#fff;background:#26395f;font-weight:900;cursor:pointer}.v57-compose .v57-send{padding:0 16px;background:linear-gradient(135deg,#7c3aed,#4f46e5)}
.v57-mic.active{background:#ef4444;animation:v57pulse 1.1s infinite}@keyframes v57pulse{50%{transform:scale(1.04)}}
.v57-cost-note{font-size:10px;color:#93a5c6;text-align:center;padding:0 12px 7px}
.v57-typing{opacity:.7;font-style:italic}
@media(max-width:980px){.v57-launcher{right:10px;bottom:calc(78px + env(safe-area-inset-bottom));flex-direction:column}.v57-launcher button{font-size:0;width:46px;padding:0}.v57-launcher button:before{font-size:19px}.v57-launcher button:first-child:before{content:'✦'}.v57-launcher button:last-child:before{content:'🎙'}
.v57-overlay{padding:0}.v57-shell{width:100vw;height:100dvh;border-radius:0}.v57-controls{grid-template-columns:1fr 1fr}.v57-budget{grid-column:1/-1}.v57-msg{max-width:90%;font-size:16px}.v57-compose{grid-template-columns:46px 1fr 58px}.v57-compose textarea{font-size:16px}}
