:root{color-scheme:dark;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;line-height:1.5}*{box-sizing:border-box}html,body,#root{margin:0;min-height:100vh;background:#0a0a0a;color:#fafafa}.app{display:flex;flex-direction:column;height:100vh;max-width:800px;margin:0 auto;padding:0 1rem}.header{text-align:center;padding:2rem 0 1rem;border-bottom:1px solid rgba(255,255,255,.08)}.header h1{margin:0;font-size:1.75rem;font-weight:700;letter-spacing:-.03em;background:linear-gradient(135deg,#a78bfa,#60a5fa,#34d399);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.header p{margin:.5rem 0 0;font-size:.85rem;color:#fff6}.messages{flex:1;overflow-y:auto;padding:1.5rem 0;display:flex;flex-direction:column;gap:1.25rem}.messages::-webkit-scrollbar{width:6px}.messages::-webkit-scrollbar-thumb{background:#ffffff1a;border-radius:3px}.welcome{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.5rem;text-align:center}.welcome-icon{font-size:3rem;width:80px;height:80px;display:grid;place-items:center;border-radius:50%;background:linear-gradient(135deg,#a78bfa26,#60a5fa26);border:1px solid rgba(167,139,250,.2)}.welcome h2{margin:0;font-size:1.25rem;font-weight:600}.welcome p{margin:0;color:#fff6;font-size:.9rem;max-width:400px}.suggestions{display:flex;flex-wrap:wrap;gap:.5rem;justify-content:center;max-width:500px}.suggestion{background:#ffffff0a;border:1px solid rgba(255,255,255,.1);color:#ffffffb3;padding:.5rem 1rem;border-radius:1.5rem;font-size:.8rem;cursor:pointer;transition:all .2s;font-family:inherit}.suggestion:hover{background:#ffffff14;border-color:#fff3;color:#fff}.message{display:flex;gap:.75rem;max-width:100%;animation:fadeIn .3s ease}@keyframes fadeIn{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.message.user{flex-direction:row-reverse;align-self:flex-end;max-width:80%}.message.ai{align-self:flex-start}.avatar{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;font-size:.85rem;flex-shrink:0}.message.user .avatar{background:#60a5fa26;border:1px solid rgba(96,165,250,.25)}.message.ai .avatar{background:linear-gradient(135deg,#a78bfa33,#60a5fa33);border:1px solid rgba(167,139,250,.25)}.bubble{padding:.75rem 1rem;border-radius:1rem;font-size:.9rem;line-height:1.6;white-space:pre-wrap;word-break:break-word}.message.user .bubble{background:#60a5fa1f;border:1px solid rgba(96,165,250,.15);border-top-right-radius:.25rem}.message.ai .bubble{background:#ffffff0a;border:1px solid rgba(255,255,255,.08);border-top-left-radius:.25rem}.bubble code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;background:#ffffff14;padding:.15em .4em;border-radius:.25rem;font-size:.85em}.bubble pre{background:#0006;border:1px solid rgba(255,255,255,.08);border-radius:.5rem;padding:.75rem 1rem;overflow-x:auto;margin:.5rem 0}.bubble pre code{background:none;padding:0;font-size:.8rem;line-height:1.5}.thinking{display:flex;gap:.75rem;align-items:flex-start}.thinking-dots{display:flex;gap:4px;padding:.75rem 1rem;background:#ffffff0a;border:1px solid rgba(255,255,255,.08);border-radius:.25rem 1rem 1rem}.thinking-dots span{width:6px;height:6px;border-radius:50%;background:#ffffff4d;animation:pulse 1.4s infinite}.thinking-dots span:nth-child(2){animation-delay:.2s}.thinking-dots span:nth-child(3){animation-delay:.4s}@keyframes pulse{0%,80%,to{opacity:.3;transform:scale(1)}40%{opacity:1;transform:scale(1.2)}}.input-area{padding:1rem 0 1.5rem;border-top:1px solid rgba(255,255,255,.08)}.input-form{display:flex;gap:.5rem;background:#ffffff0a;border:1px solid rgba(255,255,255,.1);border-radius:1rem;padding:.5rem;transition:border-color .2s}.input-form:focus-within{border-color:#a78bfa66}.input-form textarea{flex:1;background:transparent;border:none;color:#fafafa;font-family:inherit;font-size:.9rem;padding:.5rem .75rem;resize:none;outline:none;line-height:1.5;max-height:120px}.input-form textarea::placeholder{color:#ffffff4d}.send-btn{background:linear-gradient(135deg,#a78bfa,#60a5fa);border:none;color:#fff;width:36px;height:36px;border-radius:50%;cursor:pointer;display:grid;place-items:center;transition:opacity .2s;flex-shrink:0;align-self:flex-end}.send-btn:disabled{opacity:.3;cursor:not-allowed}.send-btn:not(:disabled):hover{opacity:.85}.send-btn svg{width:16px;height:16px}
