:root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#1a1a1a;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}#root{width:100%;height:100vh}.app-container{display:flex;flex-direction:column;height:100vh;max-width:900px;margin:0 auto;background-color:#111;color:#fff;position:relative}.header{padding:1.5rem;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #333;background:#111c;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);position:sticky;top:0;z-index:10}.header h1{font-size:1.25rem;margin:0;font-weight:600;background:linear-gradient(to right,#a855f7,#3b82f6);-webkit-background-clip:text;-webkit-text-fill-color:transparent}.status-badge{display:flex;align-items:center;gap:.5rem;font-size:.875rem;color:#888}.dot{width:8px;height:8px;border-radius:50%;background-color:#444}.dot.active{background-color:#eab308;box-shadow:0 0 8px #eab30866}.dot.ready{background-color:#22c55e;box-shadow:0 0 8px #22c55e66}.dot.idle{background-color:#666}.dot.error{background-color:#ef4444}.chat-area{flex:1;overflow-y:auto;padding:2rem 1.5rem;display:flex;flex-direction:column;gap:1.5rem}.empty-state{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#666;text-align:center}.logo-placeholder{width:80px;height:80px;background:linear-gradient(135deg,#333,#222);border-radius:20px;display:flex;align-items:center;justify-content:center;font-size:1.5rem;font-weight:700;margin-bottom:1.5rem;color:#444;border:1px solid #333}.message{display:flex;width:100%}.message.user{justify-content:flex-end}.message.assistant{justify-content:flex-start}.message-content{max-width:80%;padding:1rem 1.25rem;border-radius:1rem;line-height:1.6;font-size:.95rem;position:relative;white-space:pre-wrap}.message.user .message-content{background-color:#3b82f6;color:#fff;border-bottom-right-radius:.25rem}.message.assistant .message-content{background-color:#262626;color:#e5e5e5;border-bottom-left-radius:.25rem;border:1px solid #333}.message.system .message-content{background-color:#3f1515;color:#fca5a5;border:1px solid #7f1d1d;width:100%;text-align:center}.typing-indicator{display:flex;gap:4px;padding:4px 2px;align-items:center;justify-content:center;height:24px}.typing-dot{width:6px;height:6px;background-color:#888;border-radius:50%;animation:typing 1.4s infinite ease-in-out both}.typing-dot:nth-child(1){animation-delay:-.32s}.typing-dot:nth-child(2){animation-delay:-.16s}@keyframes typing{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}.input-area{padding:1.5rem;background-color:#111;border-top:1px solid #333;display:flex;gap:1rem;position:sticky;bottom:0}input[type=text]{flex:1;background-color:#262626;border:1px solid #404040;border-radius:.75rem;padding:1rem;color:#fff;font-size:1rem;outline:none;transition:border-color .2s}input[type=text]:focus{border-color:#3b82f6}input[type=text]:disabled{opacity:.6;cursor:not-allowed}button{background-color:#3b82f6;color:#fff;border:none;padding:0 1.5rem;border-radius:.75rem;font-weight:600;cursor:pointer;transition:background-color .2s,opacity .2s}button:hover:not(:disabled){background-color:#2563eb}button:disabled{background-color:#333;color:#666;cursor:not-allowed}.loading-overlay{position:absolute;inset:0;background:#000000b3;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:50}.loading-card{background-color:#1e1e1e;padding:2rem;border-radius:1rem;border:1px solid #333;width:400px;max-height:80vh;overflow-y:auto;text-align:center;box-shadow:0 20px 25px -5px #00000080;display:flex;flex-direction:column}.loading-card h3{margin-top:0;color:#e5e5e5;margin-bottom:1.5rem}.loading-list{display:flex;flex-direction:column;gap:1rem;width:100%}.loading-item{display:flex;flex-direction:column;gap:.5rem;text-align:left}.loading-info{display:flex;justify-content:space-between;font-size:.85rem;color:#aaa}.filename{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:80%}.percentage{font-weight:600;color:#3b82f6}.progress-bar{height:4px;background-color:#333;border-radius:2px;overflow:hidden}.progress-fill{height:100%;background:linear-gradient(to right,#3b82f6,#a855f7);transition:width .2s ease-out}
