*{margin:0;padding:0;box-sizing:border-box}body{font-family:Inter,SF Pro Display,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background:linear-gradient(135deg,#667eea,#764ba2);min-height:100vh;line-height:1.6}.App{min-height:100vh;display:flex;flex-direction:column;align-items:center;padding:2rem 1rem}.app-header{text-align:center;margin-bottom:2rem}.app-title{font-size:clamp(2.5rem,5vw,4rem);font-weight:700;color:#fff;margin-bottom:.5rem;text-shadow:0 4px 8px rgba(0,0,0,.1)}.app-subtitle{font-size:1.2rem;color:#fffc;font-weight:300}.chatbox{background:#fffffff2;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);border-radius:24px;padding:2rem;width:100%;max-width:800px;box-shadow:0 20px 40px #0000001a;border:1px solid rgba(255,255,255,.2)}.input-section{margin-bottom:1.5rem}.chat-textarea{width:100%;min-height:120px;padding:1.5rem;border:2px solid #e1e5e9;border-radius:16px;font-size:1rem;font-family:inherit;resize:vertical;transition:all .3s ease;background:#fafbfc;outline:none}.chat-textarea:focus{border-color:#667eea;background:#fff;box-shadow:0 0 0 4px #667eea1a}.chat-textarea::placeholder{color:#64748b}.controls-section{display:flex;flex-wrap:wrap;gap:1rem;margin-bottom:2rem;align-items:center}.btn{padding:.8rem 1.5rem;border:none;border-radius:12px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .3s ease;display:flex;align-items:center;gap:.5rem;font-family:inherit;text-decoration:none;outline:none}.btn-primary{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;box-shadow:0 4px 12px #667eea4d}.btn-primary:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 8px 25px #667eea66}.btn-primary:disabled{opacity:.6;cursor:not-allowed;transform:none}.btn-secondary{background:#fff;color:#475569;border:2px solid #e1e5e9;box-shadow:0 2px 8px #0000000d}.btn-secondary:hover{background:#f8fafc;border-color:#cbd5e1;transform:translateY(-1px)}.file-input-wrapper{position:relative;overflow:hidden;display:inline-block}.file-input{position:absolute;left:-9999px;opacity:0}.file-input-label{display:flex;align-items:center;gap:.5rem;padding:.8rem 1.5rem;background:#f1f5f9;color:#475569;border:2px solid #e1e5e9;border-radius:12px;cursor:pointer;transition:all .3s ease;font-size:1rem;font-weight:600}.file-input-label:hover{background:#e2e8f0;border-color:#cbd5e1;transform:translateY(-1px)}.response-section{background:#f8fafc;border:2px solid #e1e5e9;border-radius:16px;padding:1.5rem;min-height:100px}.response-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.response-title{font-size:1.1rem;font-weight:600;color:#334155}.response-content{color:#475569;line-height:1.7;font-size:1rem;white-space:pre-wrap;word-wrap:break-word}.response-empty{color:#94a3b8;font-style:italic;text-align:center;padding:2rem}.loading-spinner{display:inline-block;width:20px;height:20px;border:2px solid rgba(255,255,255,.3);border-radius:50%;border-top-color:#fff;animation:spin 1s ease-in-out infinite}@keyframes spin{to{transform:rotate(360deg)}}@media (max-width: 768px){.App{padding:1rem .5rem}.chatbox{padding:1.5rem;border-radius:20px}.controls-section{flex-direction:column;align-items:stretch}.btn,.file-input-label{justify-content:center;width:100%}.response-header{flex-direction:column;align-items:flex-start;gap:1rem}}@media (max-width: 480px){.app-title{font-size:2.5rem}.chatbox{margin:0;border-radius:16px}.chat-textarea{padding:1rem;min-height:100px}}.document-status{display:flex;justify-content:space-between;align-items:center;background:linear-gradient(135deg,#4facfe,#00f2fe);color:#fff;padding:1rem 1.5rem;border-radius:12px;margin-bottom:1.5rem;box-shadow:0 4px 12px #4facfe4d}.document-info{font-weight:500;flex:1}.clear-doc-btn{background:#fff3;color:#fff;border:1px solid rgba(255,255,255,.3);padding:.5rem 1rem;border-radius:8px;font-size:.9rem;cursor:pointer;transition:all .2s ease}.clear-doc-btn:hover{background:#ffffff4d;transform:translateY(-1px)}.btn.btn-primary[title*="Auto-voice enabled"]{background:linear-gradient(135deg,#4facfe,#00f2fe)}.btn.btn-secondary[title*="Auto-voice disabled"]{background:#6c757dcc}.auth-container{display:flex;justify-content:center;align-items:center;min-height:100vh;padding:2rem}.auth-card{background:#fffffff2;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);border-radius:24px;padding:3rem;width:100%;max-width:450px;box-shadow:0 20px 40px #0000001a;border:1px solid rgba(255,255,255,.2)}.auth-header{text-align:center;margin-bottom:2rem}.auth-title{font-size:2rem;font-weight:700;color:#333;margin-bottom:.5rem}.auth-subtitle{color:#666;font-size:1rem}.google-login-btn{width:100%;display:flex;align-items:center;justify-content:center;gap:.75rem;padding:.875rem 1.5rem;border:2px solid #e5e7eb;border-radius:12px;background:#fff;color:#374151;font-weight:500;cursor:pointer;transition:all .2s ease;margin-bottom:1.5rem}.google-login-btn:hover{border-color:#d1d5db;box-shadow:0 2px 8px #0000001a}.divider{display:flex;align-items:center;margin:1.5rem 0;color:#9ca3af}.divider:before,.divider:after{content:"";flex:1;height:1px;background:#e5e7eb}.divider span{margin:0 1rem;font-size:.875rem}.form-group{margin-bottom:1rem}.form-input{width:100%;padding:.875rem 1rem;border:2px solid #e5e7eb;border-radius:12px;font-size:1rem;transition:all .2s ease;background:#fff}.form-input:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.error-message{background:#fee2e2;color:#dc2626;padding:.75rem;border-radius:8px;font-size:.875rem;margin-bottom:1rem;border:1px solid #fecaca}.auth-submit-btn{width:100%;padding:.875rem 1.5rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:12px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .2s ease;margin-bottom:1.5rem}.auth-submit-btn:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 8px 25px #667eea4d}.auth-submit-btn:disabled{opacity:.6;cursor:not-allowed}.auth-switch{text-align:center;margin-bottom:2rem}.auth-switch p{color:#6b7280;font-size:.875rem}.auth-switch-btn{background:none;border:none;color:#667eea;font-weight:600;cursor:pointer;text-decoration:underline}.usage-info{background:linear-gradient(135deg,#96e1aa,#d38dd2);padding:1rem;border-radius:12px;text-align:center}.usage-text{margin:.25rem 0;font-size:.875rem;color:#374151}.contact-text{margin-top:.5rem;font-size:.75rem;color:#6b7280}.contact-text a{color:#667eea;text-decoration:none;font-weight:500}.contact-text a:hover{text-decoration:underline}.header-content{display:flex;justify-content:space-between;align-items:center;width:100%;max-width:800px;margin:0 auto}.header-left{text-align:left}.header-right{display:flex;align-items:center}.user-info{display:flex;flex-direction:column;align-items:flex-end;gap:.5rem}.user-name{color:#fff;font-weight:500;font-size:1rem}.usage-count{background:#fff3;color:#fff;padding:.25rem .75rem;border-radius:20px;font-size:.875rem;font-weight:500}.usage-unlimited{background:linear-gradient(135deg,#10b981,#059669);color:#fff;padding:.25rem .75rem;border-radius:20px;font-size:.875rem;font-weight:500}.logout-btn{background:#fff3;color:#fff;border:1px solid rgba(255,255,255,.3);padding:.5rem 1rem;border-radius:8px;font-size:.875rem;cursor:pointer;transition:all .2s ease}.logout-btn:hover{background:#ffffff4d;transform:translateY(-1px)}.loading-container{display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:100vh;color:#fff}@media (max-width: 768px){.auth-card{margin:1rem;padding:2rem}.header-content{flex-direction:column;gap:1rem;text-align:center}.header-right{width:100%;justify-content:center}.user-info{align-items:center}}
