:root{--background:#ffffff;--foreground:#171717}@media (prefers-color-scheme:dark){:root{--background:#0a0a0a;--foreground:#ededed}}body,html{max-width:100vw;overflow:hidden;height:100vh;margin:0;padding:0}body{color:var(--foreground);background:var(--background);font-family:Arial,Helvetica,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#__next{height:100vh;width:100vw}*{box-sizing:border-box;padding:0;margin:0}a{color:inherit;text-decoration:none}@media (prefers-color-scheme:dark){html{color-scheme:dark}}.chat-container{position:fixed;bottom:20px;right:20px;width:320px;max-height:500px;background:#ffffff;border-radius:12px;box-shadow:0 8px 32px rgba(0,0,0,.12);border:1px solid rgba(0,0,0,.1);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;z-index:1000;overflow:hidden;transition:all .3s ease}.chat-container.minimized{max-height:48px}.chat-header{background:linear-gradient(135deg,#0084ff,#0066cc);color:white;padding:12px 16px;justify-content:space-between;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.chat-header,.chat-title{display:flex;align-items:center}.chat-title{gap:8px;font-weight:600;font-size:14px}.status-indicator{width:8px;height:8px;border-radius:50%;background-color:#42b883}.status-indicator.online{background-color:#42b883;box-shadow:0 0 0 2px rgba(66,184,131,.3)}.minimize-btn{background:none;border:none;color:white;cursor:pointer;font-size:12px;padding:4px 8px;border-radius:4px;transition:background-color .2s ease}.minimize-btn:hover{background-color:rgba(255,255,255,.1)}.chat-messages{height:300px;overflow-y:auto;padding:16px;background-color:#f8f9fa;display:flex;flex-direction:column;gap:12px}.chat-messages::-webkit-scrollbar{width:6px}.chat-messages::-webkit-scrollbar-track{background:transparent}.chat-messages::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.2);border-radius:3px}.chat-messages::-webkit-scrollbar-thumb:hover{background-color:rgba(0,0,0,.3)}.message{display:flex;margin-bottom:4px}.user-message{justify-content:flex-end}.system-message{justify-content:flex-start}.message-bubble{max-width:75%;padding:10px 14px;border-radius:18px;position:relative;word-wrap:break-word;animation:messageSlideIn .3s ease-out}@keyframes messageSlideIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.user-message .message-bubble{background:linear-gradient(135deg,#0084ff,#0066cc);color:white;border-bottom-right-radius:4px}.system-message .message-bubble{background:#ffffff;color:#1c1e21;border:1px solid #e4e6ea;border-bottom-left-radius:4px}.message-text{font-size:14px;line-height:1.4;margin-bottom:4px}.message-time{font-size:11px;opacity:.7;text-align:right}.system-message .message-time{text-align:left}.chat-input-form{padding:12px 16px;background:white;border-top:1px solid #e4e6ea}.input-container{display:flex;align-items:center;gap:8px;background:#f0f2f5;border-radius:20px;padding:8px 12px;transition:all .2s ease}.input-container:focus-within{background:#e4e6ea;box-shadow:0 0 0 2px rgba(0,132,255,.2)}.chat-input{flex:1 1;border:none;background:none;outline:none;font-size:14px;padding:4px 0;color:#1c1e21;font-family:inherit}.chat-input::placeholder{color:#65676b}.send-btn{background:#0084ff;border:none;color:white;width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s ease;padding:0}.send-btn:hover:not(:disabled){background:#0066cc;transform:scale(1.05)}.send-btn:disabled{background:#bcc0c4;cursor:not-allowed;transform:none}.send-btn svg{width:16px;height:16px}.voice-btn{background:#28a745;border:none;color:white;width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s ease;padding:0;position:relative}.voice-btn:hover{background:#218838;transform:scale(1.05)}.voice-btn.listening{background:#dc3545;animation:pulse 2s infinite}.voice-btn.listening:hover{background:#c82333}.voice-btn svg{width:16px;height:16px}@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(220,53,69,.7)}70%{box-shadow:0 0 0 10px rgba(220,53,69,0)}to{box-shadow:0 0 0 0 rgba(220,53,69,0)}}@media (max-width:480px){.chat-container{right:10px;bottom:10px;width:calc(100vw - 20px);max-width:320px}}.chat-container:hover{box-shadow:0 12px 48px rgba(0,0,0,.15)}.chat-input:focus{outline:none}.minimize-btn:focus,.send-btn:focus,.voice-btn:focus{outline:2px solid rgba(255,255,255,.5);outline-offset:2px}.typing-indicator{display:flex;align-items:center;gap:4px;padding:10px 14px}.typing-dot{width:8px;height:8px;border-radius:50%;background-color:#65676b;animation:typing 1.4s ease-in-out infinite}.typing-dot:first-child{animation-delay:-.32s}.typing-dot:nth-child(2){animation-delay:-.16s}@keyframes typing{0%,80%,to{transform:scale(.8);opacity:.5}40%{transform:scale(1);opacity:1}}