.deep-research-modal{align-items:center;background:rgba(44,42,41,.95);display:none;height:100%;justify-content:center;left:0;padding:var(--space-4);position:fixed;top:0;width:100%;z-index:var(--z-modal)}.deep-research-modal.active{display:flex}.deep-research-content{background:#f8f6f4;border:1px solid #e8e6e4;border-radius:0;box-shadow:0 8px 32px rgba(0,0,0,.3);display:flex;flex-direction:column;max-height:90vh;max-width:1000px;overflow:hidden;width:95%}.deep-research-header{align-items:center;background:#2c6b6f;border-bottom:2px solid #245559;color:#f8f6f4;display:flex;justify-content:space-between;padding:var(--space-6)}.deep-research-header h3{color:#f8f6f4;font-family:Playfair Display,Georgia,serif;font-size:var(--text-2xl);font-weight:600;letter-spacing:.02em;margin:0}.deep-research-header h3:before{content:"";display:none}.close-deep-research{align-items:center;background:none;border:none;border-radius:0;color:#f8f6f4;cursor:pointer;display:flex;font-size:var(--text-xl);height:40px;justify-content:center;padding:var(--space-2);transition:all var(--transition-normal);width:40px}.close-deep-research:hover{background:hsla(30,22%,96%,.1)}.deep-research-container{background:#f8f6f4;flex:1;overflow-y:auto;padding:0}.deep-research-loading{align-items:center;display:flex;flex-direction:column;justify-content:center;min-height:300px;padding:var(--space-12);text-align:center}.loading-spinner{animation:spin 1s linear infinite;border:4px solid #e8e6e4;border-radius:50%;border-top-color:#2c6b6f;height:50px;margin-bottom:var(--space-6);width:50px}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.loading-title{color:#2c2a29;font-family:Playfair Display,Georgia,serif;font-size:var(--text-xl);font-weight:600;margin-bottom:var(--space-2)}.loading-subtitle{color:#5a5654;font-family:Georgia,serif;font-size:var(--text-base);margin-bottom:var(--space-4)}.loading-cost{background:#e8e6e4;border-radius:0;color:#2c6b6f;font-size:var(--text-sm);font-weight:500;padding:var(--space-2) var(--space-4)}.deep-research-data{background:#fff;border:1px solid #e8e6e4;margin:var(--space-6);padding:var(--space-8)}.research-title{color:#2c6b6f;font-family:Playfair Display,Georgia,serif;font-size:var(--text-3xl);font-weight:600;letter-spacing:.02em;line-height:1.2;margin-bottom:var(--space-6)}.system-explanation{background:#f8f6f4;border-left:4px solid #2c6b6f;border-radius:0;margin-bottom:20px;padding:20px}.system-explanation-header{align-items:center;border-radius:0;cursor:pointer;display:flex;justify-content:space-between;margin:-10px;padding:10px;transition:background-color .2s ease}.system-explanation-header:hover{background-color:rgba(44,107,111,.05)}.system-explanation-header h4{color:#2c2a29;font-family:Georgia,serif;font-size:1.1rem;font-weight:600;margin:0}.system-explanation-toggle{color:#2c6b6f;font-size:.9rem;font-weight:700;transition:transform .2s ease}.system-explanation-content{margin-top:15px}.system-explanation-content p{color:#5a5654;font-family:Georgia,serif;line-height:1.6;margin:0 0 15px}.system-explanation-content ul{margin:0 0 15px;padding-left:20px}.system-explanation-content li{color:#5a5654;font-family:Georgia,serif;line-height:1.5;margin-bottom:8px}.system-explanation-content strong{color:#2c2a29;font-weight:600}.system-explanation-content em{color:#2c6b6f;font-style:italic}.research-content{color:#2c2a29;font-family:Georgia,serif;font-size:var(--text-base);line-height:1.7}.research-content-header{align-items:center;border-bottom:1px solid #e8e6e4;display:flex;justify-content:space-between;margin-bottom:var(--space-4);padding-bottom:var(--space-2)}.research-content-header h3{color:#2c6b6f;font-family:Playfair Display,Georgia,serif;font-size:var(--text-lg);font-weight:600;margin:0}.research-content h1,.research-content h2,.research-content h3,.research-content h4{color:#2c6b6f;font-family:Playfair Display,Georgia,serif;font-weight:600;margin-bottom:var(--space-4);margin-top:var(--space-8)}.research-content h1{border-bottom:2px solid #2c6b6f;font-size:var(--text-2xl);padding-bottom:var(--space-2)}.research-content h2{border-bottom:1px solid #e8e6e4;font-size:var(--text-xl);padding-bottom:var(--space-1)}.research-content h3{font-size:var(--text-lg)}.research-content h4{font-size:var(--text-base)}.research-content p{margin-bottom:var(--space-4);text-align:justify}.research-content ol,.research-content ul{margin-bottom:var(--space-4);padding-left:var(--space-6)}.research-content li{margin-bottom:var(--space-2)}.research-content strong{color:#2c6b6f;font-weight:600}.research-content em{color:#2c6b6f;font-style:italic}.research-content a{border-bottom:1px solid #2c6b6f;color:#2c6b6f;text-decoration:none;transition:all var(--transition-fast)}.research-content a:hover{background:rgba(44,107,111,.1);padding:1px 2px}.research-sources{display:none!important}.research-sources h3:before{content:"";display:none}.research-cost{background:#f8f6f4;border:1px solid #e8e6e4;border-radius:0;margin-top:var(--space-8);padding:var(--space-4)}.cost-header{align-items:center;display:flex;gap:var(--space-2);margin-bottom:var(--space-3)}.cost-header h4{color:#2c2a29;font-family:Playfair Display,Georgia,serif;font-size:var(--text-lg);font-weight:600;margin:0}.cost-header:before{content:"";display:none}.cost-details{display:grid;gap:var(--space-4);grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}.cost-item{background:#fff;border:1px solid #e8e6e4;border-radius:0;padding:var(--space-3);text-align:center}.cost-label{color:#5a5654;font-family:Georgia,serif;font-size:var(--text-sm);margin-bottom:var(--space-1)}.cost-value{color:#2c6b6f;font-family:Playfair Display,Georgia,serif;font-size:var(--text-lg);font-weight:600}.cost-total{color:#2c6b6f;font-size:var(--text-xl)}.deep-research-error{color:#5a5654;padding:var(--space-12);text-align:center}.deep-research-error h4{color:#8b4513;font-family:Playfair Display,Georgia,serif;font-size:var(--text-xl);margin-bottom:var(--space-4)}.deep-research-error .retry-button{background:#2c6b6f;border:none;border-radius:0;color:#f8f6f4;cursor:pointer;font-family:Georgia,serif;font-size:var(--text-base);font-weight:500;margin-top:var(--space-6);padding:var(--space-3) var(--space-6);transition:all var(--transition-normal)}.deep-research-error .retry-button:hover{background:#245559;box-shadow:0 2px 8px rgba(0,0,0,.15)}.text-editor-overlay{align-items:center;background:rgba(44,42,41,.9);display:flex;height:100%;justify-content:center;left:0;padding:var(--space-4);position:fixed;top:0;width:100%;z-index:10000}.text-editor-modal{background:#f8f6f4;border:1px solid #e8e6e4;border-radius:0;box-shadow:0 8px 32px rgba(0,0,0,.3);display:flex;flex-direction:column;max-height:80vh;max-width:800px;width:90%}.text-editor-header{align-items:center;background:#2c6b6f;border-bottom:2px solid #245559;color:#f8f6f4;display:flex;justify-content:space-between;padding:var(--space-4)}.text-editor-header h3{font-family:Playfair Display,Georgia,serif;font-size:var(--text-lg);font-weight:600;margin:0}.text-editor-close{background:none;border:none;border-radius:0;color:#f8f6f4;cursor:pointer;font-size:var(--text-xl);padding:var(--space-1);transition:background-color .2s ease}.text-editor-close:hover{background:hsla(30,22%,96%,.1)}.text-editor-content{background:#fff;flex:1;overflow:hidden;padding:var(--space-4)}.text-editor-content textarea{border:1px solid #e8e6e4;border-radius:0;font-family:Georgia,serif;font-size:var(--text-sm);height:100%;line-height:1.6;min-height:400px;outline:none;padding:var(--space-3);resize:vertical;transition:border-color .2s ease;width:100%}.text-editor-content textarea:focus{border-color:#2c6b6f;box-shadow:0 0 0 3px rgba(44,107,111,.1)}.text-editor-footer{background:#f8f6f4;border-top:1px solid #e8e6e4;display:flex;gap:var(--space-3);justify-content:flex-end;padding:var(--space-4)}.text-editor-cancel,.text-editor-save{border:none;border-radius:0;cursor:pointer;font-family:Georgia,serif;font-size:var(--text-sm);font-weight:500;padding:var(--space-2) var(--space-4);transition:all .2s ease}.text-editor-cancel{background:#e8e6e4;color:#2c2a29}.text-editor-cancel:hover{background:#d8d6d4}.text-editor-save{background:#2c6b6f;color:#f8f6f4}.text-editor-save:hover{background:#245559;box-shadow:0 2px 8px rgba(0,0,0,.15)}.inline-editor{background:#f8f6f4;border:2px solid #2c6b6f;border-radius:0;margin:var(--space-2) 0;padding:var(--space-4)}.inline-editor-header{align-items:center;background:#fff;border-bottom:1px solid #e8e6e4;box-shadow:0 2px 4px rgba(0,0,0,.05);display:flex;justify-content:space-between;margin-bottom:var(--space-3);padding-bottom:var(--space-2);position:sticky;top:0;z-index:10}.inline-editor-header h4{color:#2c6b6f;font-family:Playfair Display,Georgia,serif;font-size:var(--text-lg);font-weight:600;margin:0}.inline-editor-actions{display:flex;gap:var(--space-2)}.inline-editor-cancel,.inline-editor-save{border:none;border-radius:0;cursor:pointer;font-family:Georgia,serif;font-size:var(--text-sm);font-weight:500;min-width:70px;padding:var(--space-2) var(--space-3);transition:all .2s ease}.inline-editor-save{background:#2c6b6f!important;color:#f8f6f4!important}.inline-editor-save:hover{background:#245559!important}.inline-editor-cancel{background:#e8e6e4;color:#2c2a29}.inline-editor-cancel:hover{background:#d8d6d4}.inline-editor-textarea{background:#fff;border:1px solid #e8e6e4;border-radius:0;font-family:Georgia,serif;font-size:var(--text-base);line-height:1.6;min-height:300px;outline:none;padding:var(--space-3);resize:vertical;transition:border-color .2s ease;width:100%}.inline-editor-textarea:focus{border-color:#2c6b6f;box-shadow:0 0 0 3px rgba(44,107,111,.1)}@media (max-width:768px){.deep-research-content{max-height:95vh;width:98%}.deep-research-data{padding:var(--space-6)}.research-title{font-size:var(--text-2xl)}.research-content h1{font-size:var(--text-xl)}.research-content h2{font-size:var(--text-lg)}.cost-details{grid-template-columns:1fr}.research-content-header{align-items:flex-start;flex-direction:column;gap:var(--space-2)}.text-editor-modal{max-height:90vh;width:95%}.text-editor-content textarea{min-height:300px}}@media (max-width:480px){.deep-research-header{padding:var(--space-4)}.deep-research-header h3{font-size:var(--text-lg)}.deep-research-data{padding:var(--space-4)}.research-title{font-size:var(--text-xl)}.research-content{font-size:var(--text-sm)}}