*{box-sizing:border-box}body{margin:0;font-family:-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif}:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial}}#root{min-height:100vh}.app{flex-direction:column;max-width:720px;min-height:100vh;margin:0 auto;padding:24px 16px;display:flex}header{text-align:center;margin-bottom:16px}header h1{margin:0 0 4px;font-size:28px}.subtitle{opacity:.65;margin:0;font-size:14px}.chat{background:#7f7f7f14;border-radius:12px;flex-direction:column;flex:1;gap:10px;min-height:320px;margin-bottom:12px;padding:16px;display:flex;overflow-y:auto}.bubble-row{display:flex}.bubble-row.user{justify-content:flex-end}.bubble-row.assistant{justify-content:flex-start}.bubble{white-space:pre-wrap;border-radius:14px;max-width:75%;padding:10px 14px;font-size:15px;line-height:1.4}.bubble.user{color:#fff;background:linear-gradient(45deg,#4776e6,#8e54e9)}.bubble.assistant{background:#7f7f7f2e}.bubble.thinking{opacity:.6;font-style:italic}.error-banner{color:#ff4b4b;background:#ff4b4b26;border:1px solid #ff4b4b66;border-radius:8px;margin-bottom:12px;padding:8px 12px;font-size:14px}.controls{gap:8px;display:flex}.controls input{color:inherit;background:0 0;border:1px solid #7f7f7f59;border-radius:10px;flex:1;padding:10px 14px;font-size:15px}.controls button{cursor:pointer;color:inherit;background:#7f7f7f2e;border:none;border-radius:10px;padding:10px 16px;font-size:15px}.controls button:disabled{opacity:.5;cursor:not-allowed}.record-btn.recording{color:#fff;background:linear-gradient(45deg,#ff4b4b,#ff8a4b);animation:1.2s ease-in-out infinite pulse}@keyframes pulse{0%,to{opacity:1}50%{opacity:.7}}.controls button[type=submit]{color:#fff;background:linear-gradient(45deg,#4776e6,#8e54e9)}
