.demo-content-input{width:100%}.demo-input-label{display:block;font-size:.875rem;font-weight:600;color:var(--color-text-secondary, #6b7280);margin-bottom:.5rem;text-transform:uppercase;letter-spacing:.05em}.demo-textarea{width:100%;min-height:200px;padding:1rem;border:2px solid var(--color-border, #e5e7eb);border-radius:12px;font-family:Inter,system-ui,sans-serif;font-size:.95rem;line-height:1.6;color:var(--color-text, #111827);background:var(--color-bg-card, #ffffff);resize:vertical;transition:border-color .2s,box-shadow .2s}.demo-textarea:focus{outline:none;border-color:var(--color-primary, #10b981);box-shadow:0 0 0 3px #10b98126}.demo-textarea::-moz-placeholder{color:var(--color-text-muted, #9ca3af)}.demo-textarea::placeholder{color:var(--color-text-muted, #9ca3af)}.demo-textarea:disabled{opacity:.6;cursor:not-allowed}.demo-input-footer{display:flex;justify-content:space-between;align-items:center;margin-top:.75rem;gap:1rem}.demo-char-count{font-size:.8rem;color:var(--color-text-muted, #9ca3af);font-variant-numeric:tabular-nums}.demo-submit-btn{display:inline-flex;align-items:center;gap:.5rem;padding:.625rem 1.25rem;background:linear-gradient(135deg,var(--color-primary, #10b981),var(--color-primary-dark, #059669));color:#fff;border:none;border-radius:10px;font-size:.9rem;font-weight:600;cursor:pointer;transition:transform .15s,box-shadow .15s,opacity .15s;white-space:nowrap}.demo-submit-btn:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 4px 14px #10b98159}.demo-submit-btn:disabled{opacity:.5;cursor:not-allowed;transform:none}.demo-file-drop{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.75rem;padding:3rem 2rem;border:2px dashed var(--color-border, #d1d5db);border-radius:16px;background:var(--color-bg-card, #ffffff);cursor:pointer;transition:border-color .2s,background .2s;color:var(--color-text-secondary, #6b7280)}.demo-file-drop:hover,.demo-file-drop.dragging{border-color:var(--color-primary, #10b981);background:#10b9810a}.demo-file-drop.dragging{border-style:solid}.demo-file-instruction{font-size:1rem;font-weight:600;color:var(--color-text, #374151);margin:0}.demo-file-types{font-size:.8rem;color:var(--color-text-muted, #9ca3af);margin:0}.demo-url-field{display:flex;align-items:center;gap:0;border:2px solid var(--color-border, #e5e7eb);border-radius:12px;overflow:hidden;background:var(--color-bg-card, #ffffff);transition:border-color .2s,box-shadow .2s}.demo-url-field:focus-within{border-color:var(--color-primary, #10b981);box-shadow:0 0 0 3px #10b98126}.demo-url-icon{margin-left:.75rem;color:var(--color-text-muted, #9ca3af);flex-shrink:0}.demo-url-text{flex:1;padding:.75rem;border:none;outline:none;font-size:.95rem;background:transparent;color:var(--color-text, #111827);min-width:0}.demo-url-text::-moz-placeholder{color:var(--color-text-muted, #9ca3af)}.demo-url-text::placeholder{color:var(--color-text-muted, #9ca3af)}.demo-url-field .demo-submit-btn{border-radius:0;padding:.75rem 1.5rem;margin:0}.demo-error{color:#ef4444;font-size:.85rem;margin-top:.75rem;padding:.5rem .75rem;background:#ef444414;border-radius:8px;border-left:3px solid #ef4444}.demo-error-boundary{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:3rem 2rem;text-align:center;min-height:280px;border:2px solid var(--color-border, #e5e7eb);border-radius:16px;background:var(--color-bg-card, #ffffff);gap:1rem}.demo-error-boundary p{color:var(--color-text-secondary, #6b7280);font-size:.95rem;margin:0}.demo-error-detail{font-family:monospace;font-size:.8rem!important;color:#ef4444!important;background:#ef44440f;padding:.5rem 1rem;border-radius:8px;max-width:100%;word-break:break-word}.demo-training-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:3rem 2rem;text-align:center;color:var(--color-text-secondary, #6b7280);min-height:280px;border:2px solid var(--color-border, #e5e7eb);border-radius:16px;background:var(--color-bg-card, #ffffff)}.demo-training-title{font-size:1rem;font-weight:600;color:var(--color-text, #374151);margin:.5rem 0 0}.demo-training-sub{font-size:.8rem;color:var(--color-text-muted, #9ca3af);max-width:400px;line-height:1.5;margin:.5rem 0 0}.demo-training-dots{display:flex;gap:.5rem;margin-bottom:.5rem}.demo-dot{width:10px;height:10px;border-radius:50%;background:var(--color-primary, #10b981);animation:demoPulse 1.4s infinite ease-in-out}.demo-dot:nth-child(2){animation-delay:.2s}.demo-dot:nth-child(3){animation-delay:.4s}.demo-chat-container{border:2px solid var(--color-border, #e5e7eb);border-radius:16px;overflow:hidden;background:var(--color-bg-card, #ffffff);box-shadow:0 4px 20px #00000014;display:flex;flex-direction:column;max-height:600px}.demo-chat-header{display:flex;justify-content:space-between;align-items:center;padding:.75rem 1rem;border-bottom:1px solid var(--color-border, #e5e7eb);background:var(--color-bg-subtle, #f9fafb);flex-shrink:0}.demo-chat-title{display:flex;align-items:center;gap:.5rem;font-size:.85rem;font-weight:600;color:var(--color-text, #374151)}.demo-chat-remaining{font-size:.7rem;font-weight:500;color:var(--color-text-muted, #9ca3af);background:var(--color-bg-card, #f3f4f6);padding:.15rem .5rem;border-radius:10px}.demo-chat-actions{display:flex;align-items:center;gap:.5rem}.demo-chat-messages{flex:1;overflow-y:auto;padding:1rem;display:flex;flex-direction:column;gap:.75rem;min-height:300px}.demo-chat-loading-init{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.75rem;height:100%;min-height:250px;color:var(--color-text-muted, #9ca3af)}.demo-chat-msg{display:flex;gap:.5rem;max-width:85%;animation:msgFadeIn .2s ease}@keyframes msgFadeIn{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}.demo-chat-msg-user{align-self:flex-end;flex-direction:row-reverse}.demo-chat-msg-assistant{align-self:flex-start}.demo-chat-msg-avatar{width:26px;height:26px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-size:.75rem}.demo-chat-msg-user .demo-chat-msg-avatar{background:var(--color-primary, #10b981);color:#fff}.demo-chat-msg-assistant .demo-chat-msg-avatar{background:var(--color-bg-subtle, #f3f4f6);color:var(--color-text-secondary, #6b7280);border:1px solid var(--color-border, #e5e7eb)}.demo-chat-msg-content{padding:.6rem .9rem;border-radius:12px;font-size:.9rem;line-height:1.5;white-space:pre-wrap;word-break:break-word}.demo-chat-msg-user .demo-chat-msg-content{background:var(--color-primary, #10b981);color:#fff;border-bottom-right-radius:4px}.demo-chat-msg-assistant .demo-chat-msg-content{background:var(--color-bg-subtle, #f3f4f6);color:var(--color-text, #374151);border-bottom-left-radius:4px}.demo-chat-typing{display:flex;gap:.3rem;padding:.8rem 1rem!important}.demo-chat-typing span{width:7px;height:7px;border-radius:50%;background:var(--color-text-muted, #9ca3af);animation:demoPulse 1.4s infinite ease-in-out}.demo-chat-typing span:nth-child(2){animation-delay:.2s}.demo-chat-typing span:nth-child(3){animation-delay:.4s}.demo-chat-error{color:#ef4444;font-size:.8rem;padding:.4rem 1rem;background:#ef44440f;border-top:1px solid rgba(239,68,68,.15);flex-shrink:0}.demo-chat-error-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:3rem;gap:1rem;text-align:center;color:var(--color-text-secondary, #6b7280)}.demo-chat-input-bar{display:flex;align-items:center;gap:0;border-top:1px solid var(--color-border, #e5e7eb);background:var(--color-bg-card, #ffffff);flex-shrink:0}.demo-chat-input{flex:1;padding:.75rem 1rem;border:none;outline:none;font-size:.9rem;background:transparent;color:var(--color-text, #111827)}.demo-chat-input::-moz-placeholder{color:var(--color-text-muted, #9ca3af)}.demo-chat-input::placeholder{color:var(--color-text-muted, #9ca3af)}.demo-chat-input:disabled{opacity:.5}.demo-chat-send{padding:.75rem 1rem;border:none;background:transparent;color:var(--color-primary, #10b981);cursor:pointer;transition:opacity .15s;flex-shrink:0}.demo-chat-send:hover:not(:disabled){opacity:.7}.demo-chat-send:disabled{opacity:.3;cursor:not-allowed}.demo-chat-cta{display:flex;align-items:center;justify-content:space-between;padding:.6rem 1rem;background:linear-gradient(135deg,#10b9810f,#10b98105);border-top:1px solid rgba(16,185,129,.15);gap:1rem;flex-shrink:0}.demo-chat-cta p{margin:0;font-size:.8rem;color:var(--color-text-secondary, #6b7280)}.demo-chat-cta .demo-submit-btn{font-size:.8rem;padding:.4rem .8rem;text-decoration:none}.spin{animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes demoPulse{0%,80%,to{opacity:.3;transform:scale(.8)}40%{opacity:1;transform:scale(1.2)}}@media(max-width:640px){.demo-input-footer{flex-direction:column;align-items:stretch}.demo-char-count{text-align:right}.demo-chat-header{flex-direction:column;gap:.5rem}.demo-chat-msg{max-width:92%}.demo-chat-cta{flex-direction:column;text-align:center}.demo-url-field{flex-direction:column}.demo-url-field .demo-submit-btn{border-radius:0;width:100%;justify-content:center}}.demo-chat-welcome{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.75rem;min-height:250px;color:var(--color-text-secondary, #6b7280);text-align:center}.demo-chat-welcome p{margin:0;font-size:.95rem;font-weight:500;color:var(--color-text, #374151)}.demo-chat-starters{display:flex;flex-wrap:wrap;gap:.5rem;justify-content:center;margin-top:.5rem}.demo-chat-starters button{padding:.4rem .75rem;border:1px solid var(--color-border, #d1d5db);border-radius:20px;font-size:.8rem;color:var(--color-text-secondary, #6b7280);background:#fff;cursor:pointer;transition:all .15s;white-space:nowrap}.demo-chat-starters button:hover{border-color:var(--color-primary, #10b981);color:var(--color-primary, #10b981);background:#10b9810a}
