:root{--text:#6b6375;--text-h:#08060d;--bg:#fff;--border:#e5e4e7;--code-bg:#f4f3ec;--accent:#aa3bff;--accent-bg:#aa3bff1a;--accent-border:#aa3bff80;--social-bg:#f4f3ec80;--shadow:#0000001a 0 10px 15px -3px, #0000000d 0 4px 6px -2px;--sans:system-ui, "Segoe UI", Roboto, sans-serif;--heading:system-ui, "Segoe UI", Roboto, sans-serif;--mono:ui-monospace, Consolas, monospace;font:18px/145% var(--sans);letter-spacing:.18px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;color:var(--text);background:var(--bg);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial}}@media (width<=1024px){:root{font-size:16px}}@media (prefers-color-scheme:dark){:root{--text:#9ca3af;--text-h:#f3f4f6;--bg:#16171d;--border:#2e303a;--code-bg:#1f2028;--accent:#c084fc;--accent-bg:#c084fc26;--accent-border:#c084fc80;--social-bg:#2f303a80;--shadow:#0006 0 10px 15px -3px, #00000040 0 4px 6px -2px}#social .button-icon{filter:invert()brightness(2)}}#root{text-align:center;border-inline:1px solid var(--border);box-sizing:border-box;flex-direction:column;width:1126px;max-width:100%;min-height:100svh;margin:0 auto;display:flex}body{margin:0}h1,h2{font-family:var(--heading);color:var(--text-h);font-weight:500}h1{letter-spacing:-1.68px;margin:32px 0;font-size:56px}@media (width<=1024px){h1{margin:20px 0;font-size:36px}}h2{letter-spacing:-.24px;margin:0 0 8px;font-size:24px;line-height:118%}@media (width<=1024px){h2{font-size:20px}}p{margin:0}code,.counter{font-family:var(--mono);color:var(--text-h);border-radius:4px;display:inline-flex}code{background:var(--code-bg);padding:4px 8px;font-size:15px;line-height:135%}.sidebar{background-color:#f8f9fa;border-right:1px solid #dee2e6;flex-direction:column;width:300px;height:100vh;display:flex;overflow:hidden}.sidebar-header{border-bottom:1px solid #e9ecef;padding:1.5rem 1rem 1rem}.sidebar-header h2{color:#212529;margin:0 0 1rem;font-size:1.25rem;font-weight:600}.new-chat-button{color:#fff;cursor:pointer;background-color:#007bff;border:none;border-radius:.375rem;justify-content:center;align-items:center;gap:.5rem;width:100%;padding:.75rem;font-size:.875rem;font-weight:500;transition:background-color .15s ease-in-out;display:flex}.new-chat-button:hover:not(:disabled){background-color:#0056b3}.new-chat-button:disabled{cursor:not-allowed;background-color:#6c757d}.sidebar-content{flex:1;padding:1rem;overflow-y:auto}.conversations-header{justify-content:space-between;align-items:center;margin-bottom:1rem;display:flex}.conversations-header h3{color:#6c757d;text-transform:uppercase;letter-spacing:.05em;margin:0;font-size:.875rem;font-weight:600}.conversation-count{color:#6c757d;font-size:.75rem}.threads-list{flex-direction:column;gap:.25rem;display:flex}.thread-button{cursor:pointer;text-align:left;background-color:#0000;border:1px solid #0000;border-radius:.375rem;width:100%;padding:.75rem;transition:all .15s ease-in-out}.thread-button:hover:not(:disabled){background-color:#e9ecef;border-color:#dee2e6}.thread-button.active{color:#fff;background-color:#007bff}.thread-button:disabled{cursor:not-allowed;opacity:.6}.thread-info{flex-direction:column;gap:.25rem;display:flex}.thread-title{font-size:.875rem;font-weight:500;line-height:1.25}.thread-button.active .thread-title{color:#fff}.thread-id{color:#6c757d;opacity:.7;word-break:break-all;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:.75rem}.thread-button.active .thread-id{color:#fffc}.no-threads{text-align:center;color:#6c757d;padding:2rem 1rem}.no-threads p{margin:.25rem 0;font-size:.875rem}.no-threads p:first-child{font-weight:500}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media (width<=768px){.sidebar{border-bottom:1px solid #dee2e6;border-right:none;width:100%;height:auto;max-height:40vh}.sidebar-header{padding:1rem .75rem}.sidebar-content{padding:0 .75rem 1rem}.thread-button{padding:.5rem}.thread-title{font-size:.8rem}.thread-id{font-size:.7rem}}@media (width>=769px) and (width<=1024px){.sidebar{width:250px}}.message-list{flex-direction:column;flex:1;gap:1rem;padding:1rem;display:flex;overflow-y:auto}.message{align-items:flex-start;display:flex}.message.user{justify-content:flex-end}.message.assistant{justify-content:flex-start}.message-content{border-radius:.5rem;max-width:70%;padding:.75rem 1rem;box-shadow:0 1px 2px #0000001a}.message.user .message-content{color:#fff;background-color:#007bff}.message.assistant .message-content{color:#333;background-color:#f8f9fa;border:1px solid #dee2e6}.message.streaming .message-content{background-color:#e9ecef}.message-role{opacity:.7;margin-bottom:.25rem;font-size:.75rem;font-weight:600}.message-text{white-space:pre-wrap;word-wrap:break-word;line-height:1.5}.cursor{animation:1s infinite blink}@keyframes blink{0%,50%{opacity:1}51%,to{opacity:0}}@media (width<=768px){.message-content{max-width:85%}}.message-input-container{background-color:#f8f9fa;border-top:1px solid #dee2e6;padding:1rem}.message-form{align-items:flex-end;display:flex}.input-wrapper{background-color:#fff;border:1px solid #ced4da;border-radius:.5rem;align-items:flex-end;width:100%;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;display:flex;overflow:hidden}.input-wrapper:focus-within{border-color:#007bff;box-shadow:0 0 0 .2rem #007bff40}.message-textarea{resize:none;border:none;outline:none;flex:1;min-height:44px;max-height:120px;padding:.75rem 1rem;font-family:inherit;font-size:.95rem;line-height:1.5;overflow-y:auto}.message-textarea:disabled{cursor:not-allowed;background-color:#f8f9fa}.message-textarea::placeholder{color:#6c757d}.send-button{color:#fff;cursor:pointer;background-color:#007bff;border:none;justify-content:center;align-items:center;min-width:44px;height:44px;padding:.75rem;transition:background-color .15s ease-in-out;display:flex}.send-button:hover:not(:disabled){background-color:#0056b3}.send-button:disabled{cursor:not-allowed;background-color:#6c757d}.loading-spinner{border:2px solid #f3f3f3;border-top-color:#007bff;border-radius:50%;width:16px;height:16px;animation:1s linear infinite spin}@media (width<=768px){.message-input-container{padding:.75rem}.message-textarea{padding:.5rem .75rem;font-size:16px}.send-button{min-width:40px;height:40px;padding:.5rem}}*{box-sizing:border-box;margin:0;padding:0}body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#212529;background-color:#f8f9fa;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;line-height:1.6}#root{width:100vw;height:100vh}.app{width:100vw;height:100vh;display:flex;overflow:hidden}.chat-container{background-color:#fff;flex-direction:column;flex:1;display:flex;overflow:hidden}.chat-header{z-index:10;background-color:#fff;border-bottom:1px solid #dee2e6;padding:1rem 1.5rem;box-shadow:0 1px 3px #0000001a}.chat-title{align-items:center;gap:1rem;display:flex}.chat-title h1{color:#212529;font-size:1.5rem;font-weight:600}.current-thread{color:#6c757d;background-color:#f8f9fa;border-radius:.25rem;padding:.25rem .5rem;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:.875rem}.error-banner{background-color:#f8d7da;border-bottom:1px solid #f5c6cb;padding:.75rem 1.5rem}.error-content{align-items:center;gap:.75rem;max-width:1200px;margin:0 auto;display:flex}.error-icon{font-size:1rem}.error-message{color:#721c24;flex:1;font-size:.875rem}.error-dismiss{color:#721c24;cursor:pointer;background:0 0;border:none;border-radius:50%;justify-content:center;align-items:center;width:24px;height:24px;padding:0;font-size:1.25rem;transition:background-color .15s ease-in-out;display:flex}.error-dismiss:hover{background-color:#721c241a}.chat-content{flex:1;position:relative;overflow:hidden}.welcome-message{justify-content:center;align-items:center;height:100%;padding:2rem;display:flex}.welcome-content{text-align:center;max-width:600px}.welcome-content h2{color:#212529;margin-bottom:1rem;font-size:2rem;font-weight:600}.welcome-content p{color:#6c757d;margin-bottom:2rem;font-size:1.125rem}.welcome-features{text-align:left;flex-direction:column;gap:1rem;display:flex}.feature{background-color:#f8f9fa;border:1px solid #e9ecef;border-radius:.5rem;align-items:center;gap:1rem;padding:1rem;display:flex}.feature-icon{font-size:1.5rem}.feature span:last-child{color:#495057;font-size:1rem}@media (width<=768px){.app{flex-direction:column}.chat-header{padding:.75rem 1rem}.chat-title{flex-direction:column;align-items:flex-start;gap:.5rem}.chat-title h1{font-size:1.25rem}.current-thread{font-size:.75rem}.error-banner{padding:.5rem 1rem}.welcome-message{padding:1rem}.welcome-content h2{font-size:1.5rem}.welcome-content p{font-size:1rem}.feature{padding:.75rem}.feature-icon{font-size:1.25rem}.feature span:last-child{font-size:.875rem}}@media (width>=769px) and (width<=1024px){.chat-header{padding:.875rem 1.25rem}.welcome-content h2{font-size:1.75rem}}html{scroll-behavior:smooth}button:focus,textarea:focus{outline-offset:2px;outline:2px solid #007bff}button:focus:not(:focus-visible){outline:none}@media (prefers-contrast:high){.message-content{border:2px solid}.thread-button{border:2px solid #0000}.thread-button:hover{border-color:currentColor}}@media (prefers-reduced-motion:reduce){*{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}html{scroll-behavior:auto}}
