body,html{padding:0;margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif;background:#0f0f0f;color:#f0f0f0;min-height:100vh;display:flex;justify-content:center;align-items:flex-start}*{box-sizing:border-box}.container{width:100%;max-width:650px;padding:1rem;display:flex;flex-direction:column;gap:1.5rem}.title{font-size:1.6rem;font-weight:600;text-align:center;line-height:1.3}.input-row{display:flex;gap:.5rem;width:100%}.question-input{flex:1 1;padding:.8rem 1rem;font-size:1rem;border-radius:.5rem;border:1px solid #333;background-color:#1e1e1e;color:#f9f9f9;outline:none}.question-input::placeholder{color:#888}.ask-button{padding:.8rem 1.2rem;font-size:1rem;border-radius:.5rem;border:none;background-color:#3b82f6;color:#fff;cursor:pointer;transition:background-color .2s ease}.ask-button:disabled{background-color:#2c5dbf;cursor:not-allowed}.ask-button:not(:disabled):hover{background-color:#2f6fe6}.answer-box{white-space:pre-wrap;background:#1a1a1a;min-height:4rem;max-height:600px;line-height:1.4;font-size:1rem}.answer-box,.history{padding:1rem;border-radius:.5rem;overflow-y:auto}.history{display:flex;flex-direction:column;gap:.5rem;max-height:250px}.history-title{font-weight:600;margin-bottom:.5rem}.history-entry{border-top:1px solid #333;padding-top:.5rem}.history-entry:first-of-type{border-top:none;padding-top:0}.clear-button{margin-top:.5rem;align-self:flex-end;font-size:.85rem;padding:.3rem .6rem;background:#e11d48;color:#fff;border:none;border-radius:.3rem;cursor:pointer;transition:background-color .2s ease}.clear-button:hover{background:#be123c}.history-list{list-style:none;padding:0;margin:0}.history-list-item{margin-bottom:.5rem}.history-btn{background:#181818;color:#f0f0f0;border:none;text-align:left;width:100%;padding:.75rem 1rem;cursor:pointer;font-weight:400;border-radius:.4rem;transition:background .2s,box-shadow .2s;box-shadow:none}.history-btn.selected{font-weight:700;box-shadow:0 0 0 2px #d72660;background:#222}.history-btn:hover{background:#292929}.history-answer{margin:.5rem 0 1rem 1rem;color:#bbb;transition:max-height .3s}.loader-dot{display:inline-block;width:8px;height:8px;margin:0 4px;border-radius:50%;background:#888;animation:loader-bounce 1s infinite alternate}.loader-dot:nth-child(2){animation-delay:.2s}.loader-dot:nth-child(3){animation-delay:.4s}@keyframes loader-bounce{to{opacity:.3;transform:translateY(-8px)}}.footer{margin-top:2rem;padding:1rem 0;text-align:center;color:#888;font-size:.95rem}.italic{font-style:italic}.text-gray-400{color:#9ca3af}.rate-limit-message{background:#2d0a0a;color:#f87171;border-radius:.5rem;padding:1rem;margin:1rem 0;text-align:center;font-size:1.1rem;border:1px solid #f87171}.rate-limit-message strong{display:block;font-size:1.2rem;margin-bottom:.5rem}.current-question-label{font-size:1rem;color:#f0f0f0;padding:.5rem 1rem;border-radius:.4rem}.current-question-label span{color:#888;margin-right:.5rem}.current-question-label strong{color:#fff}