:root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media(prefers-color-scheme:light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}*{box-sizing:border-box;margin:0;padding:0}html,body,#root{width:100%;height:100%}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;background:#f5f5f5;color:#333}.app{min-height:100vh;width:100%;display:flex;flex-direction:column}.header{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:2rem;text-align:center;box-shadow:0 2px 8px #0000001a}.header h1{margin-bottom:.5rem;font-size:2rem}.api-url{opacity:.9;font-size:.875rem;font-family:Courier New,monospace}.tabs{display:flex;background:#fff;border-bottom:2px solid #e0e0e0;box-shadow:0 2px 4px #0000000d}.tab{flex:1;padding:1rem 2rem;background:none;border:none;font-size:1rem;cursor:pointer;transition:all .2s;border-bottom:3px solid transparent}.tab:hover{background:#f9f9f9}.tab.active{color:#667eea;border-bottom-color:#667eea;font-weight:600}.content{flex:1;padding:2rem;max-width:1400px;width:100%;margin:0 auto}.error{background:#fee;border:1px solid #fcc;color:#c33;padding:1rem;border-radius:4px;margin-bottom:1rem}.loading{text-align:center;padding:2rem;color:#666;font-size:1.1rem}@media(max-width:768px){.header h1{font-size:1.5rem}.content{padding:1rem}}.query-container{max-width:1400px;margin:0 auto}.query-container h2{margin-bottom:1.5rem;color:#667eea}.query-layout{display:grid;grid-template-columns:1fr 340px;gap:1.5rem;align-items:start}.query-main{min-width:0}.query-sidebar{background:#fff;border-radius:8px;box-shadow:0 2px 8px #0000001a;position:sticky;top:1rem;max-height:calc(100vh - 8rem);display:flex;flex-direction:column}.sidebar-header{padding:1rem;border-bottom:1px solid #e5e7eb;display:flex;justify-content:space-between;align-items:center}.sidebar-header h3{margin:0;font-size:1rem;color:#374151}.sidebar-actions{display:flex;gap:.5rem}.load-recent-btn{padding:.5rem .75rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:6px;font-size:.8125rem;font-weight:600;cursor:pointer;transition:all .2s}.load-recent-btn:hover:not(:disabled){opacity:.9}.load-recent-btn:disabled{opacity:.6;cursor:not-allowed}.sidebar-id-search{padding:.75rem;border-bottom:1px solid #e5e7eb}.id-input-group{display:flex;gap:.375rem}.qna-id-input{flex:1;padding:.5rem .75rem;border:1px solid #e5e7eb;border-radius:6px;font-size:.8125rem;font-family:monospace}.qna-id-input:focus{outline:none;border-color:#667eea}.qna-id-input:disabled{background:#f9fafb;cursor:not-allowed}.fetch-id-btn{padding:.5rem .75rem;background:#8b5cf6;color:#fff;border:none;border-radius:6px;font-size:.8125rem;cursor:pointer;transition:all .2s}.fetch-id-btn:hover:not(:disabled){background:#7c3aed}.fetch-id-btn:disabled{opacity:.6;cursor:not-allowed}.sidebar-search{padding:.75rem;border-bottom:1px solid #e5e7eb;display:flex;flex-direction:column;gap:.5rem}.sidebar-search .course-filter-select{width:100%;min-width:unset;max-width:unset;padding:.5rem .75rem;font-size:.8125rem}.search-input-group{display:flex;gap:.375rem}.sidebar-search .search-qna-input{flex:1;width:auto;padding:.5rem .75rem;font-size:.8125rem}.sidebar-search .search-qna-btn{padding:.5rem .75rem;font-size:.8125rem}.title-only-checkbox{display:flex;align-items:center;gap:.375rem;font-size:.75rem;color:#6b7280;cursor:pointer}.title-only-checkbox input{margin:0;cursor:pointer}.samples-list-container{flex:1;overflow-y:auto;min-height:200px}.samples-count{padding:.5rem .75rem;font-size:.75rem;color:#6b7280;background:#f9fafb;border-bottom:1px solid #e5e7eb}.samples-empty{display:flex;align-items:center;justify-content:center;padding:3rem 1rem;color:#9ca3af;text-align:center;font-size:.875rem;line-height:1.5}.query-sidebar .samples-list{padding:.5rem}.query-sidebar .sample-item{padding:.625rem;margin-bottom:.375rem;font-size:.8125rem}.query-sidebar .sample-title{font-size:.8125rem;margin-bottom:.25rem;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.query-sidebar .sample-meta{font-size:.6875rem;margin-bottom:.25rem;flex-wrap:wrap}.query-sidebar .sample-category,.query-sidebar .sample-course{padding:.0625rem .375rem;font-size:.6875rem}.query-sidebar .sample-preview{font-size:.75rem;-webkit-line-clamp:2}.query-form{background:#fff;padding:2rem;border-radius:8px;box-shadow:0 2px 8px #0000001a;margin-bottom:2rem}.form-group{margin-bottom:1.5rem}.form-group label{display:block;margin-bottom:.5rem;font-weight:600;color:#333}.form-group textarea,.form-group input,.form-group select{width:100%;padding:.75rem;border:1px solid #ddd;border-radius:4px;font-size:1rem;font-family:inherit;transition:border-color .2s}.form-group textarea:focus,.form-group input:focus,.form-group select:focus{outline:none;border-color:#667eea}.form-group textarea{resize:vertical}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.submit-btn{width:100%;padding:1rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:4px;font-size:1.1rem;font-weight:600;cursor:pointer;transition:opacity .2s}.submit-btn:hover:not(:disabled){opacity:.9}.submit-btn:disabled{opacity:.6;cursor:not-allowed}.streaming-container{background:#fff;padding:1.5rem;border-radius:8px;box-shadow:0 2px 8px #0000001a;margin-bottom:2rem}.streaming-container h3{margin-bottom:1rem;color:#667eea}.streaming-messages{max-height:500px;overflow-y:auto;border:1px solid #e0e0e0;border-radius:4px;padding:1rem;background:#f9f9f9}.stream-message{margin-bottom:1rem;padding:.75rem;background:#fff;border-radius:4px;border-left:3px solid #667eea}.stream-type{display:inline-block;padding:.25rem .5rem;background:#667eea;color:#fff;border-radius:3px;font-size:.75rem;font-weight:600;margin-bottom:.5rem}.stream-content{margin:0;font-size:.875rem;overflow-x:auto}.query-result{background:#fff;padding:2rem;border-radius:8px;box-shadow:0 2px 8px #0000001a}.query-result h3{margin-bottom:1.5rem;color:#28a745}.result-section{margin-bottom:1.5rem}.result-section h4{margin-bottom:.75rem;color:#333}.result-info{background:#f0f8ff;padding:1rem;border-radius:4px;margin-bottom:1rem;display:flex;align-items:center;justify-content:space-between}.result-info p{margin:0}.view-log-btn{padding:.5rem 1rem;background:#667eea;color:#fff;border:none;border-radius:4px;cursor:pointer;font-size:.9rem;transition:opacity .2s}.view-log-btn:hover{opacity:.9}.reset-btn{padding:.75rem 1.5rem;background:#6c757d;color:#fff;border:none;border-radius:4px;cursor:pointer;font-size:1rem;transition:opacity .2s}.reset-btn:hover{opacity:.9}.samples-section{margin-bottom:1.5rem;position:relative}.samples-buttons{display:flex;gap:1rem;align-items:center;flex-wrap:wrap}.load-samples-btn{padding:.75rem 1.5rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:8px;font-size:.9375rem;font-weight:600;cursor:pointer;transition:all .2s;box-shadow:0 2px 4px #667eea4d}.load-samples-btn:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 4px 8px #667eea66}.load-samples-btn:disabled{opacity:.6;cursor:not-allowed}.search-qna-group{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap}.course-filter-select{padding:.75rem 1rem;border:1px solid #e5e7eb;border-radius:8px;font-size:.9375rem;background:#fff;cursor:pointer;min-width:150px;max-width:250px;transition:border-color .2s,box-shadow .2s}.course-filter-select:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.course-filter-select:disabled{background:#f9fafb;cursor:not-allowed}.search-qna-input{padding:.75rem 1rem;border:1px solid #e5e7eb;border-radius:8px;font-size:.9375rem;width:200px;transition:border-color .2s,box-shadow .2s}.search-qna-input:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.search-qna-input:disabled{background:#f3f4f6;cursor:not-allowed}.search-qna-btn{padding:.75rem 1rem;background:#10b981;color:#fff;border:none;border-radius:8px;font-size:.9375rem;font-weight:600;cursor:pointer;transition:all .2s;white-space:nowrap}.search-qna-btn:hover:not(:disabled){background:#059669}.search-qna-btn:disabled{opacity:.6;cursor:not-allowed}.no-results{padding:2rem;text-align:center;color:#6b7280;font-size:.9375rem}.samples-dropdown{position:absolute;top:100%;left:0;width:100%;max-width:700px;margin-top:.5rem;background:#fff;border:1px solid #e5e7eb;border-radius:8px;box-shadow:0 4px 12px #00000026;z-index:100;max-height:500px;display:flex;flex-direction:column}.samples-header{display:flex;justify-content:space-between;align-items:center;padding:.75rem 1rem;background:#f9fafb;border-bottom:1px solid #e5e7eb;border-radius:8px 8px 0 0;font-weight:600;color:#374151;font-size:.875rem}.close-samples-btn{background:none;border:none;font-size:1.25rem;color:#9ca3af;cursor:pointer;padding:.25rem .5rem;line-height:1;transition:color .2s}.close-samples-btn:hover{color:#374151}.samples-list{overflow-y:auto;padding:.5rem}.sample-item{padding:.75rem;margin-bottom:.5rem;border:1px solid #e5e7eb;border-radius:6px;cursor:pointer;transition:all .2s;background:#fff}.sample-item:hover{background:#f9fafb;border-color:#667eea;box-shadow:0 2px 4px #667eea1a}.sample-item:last-child{margin-bottom:0}.sample-title{font-weight:600;color:#111827;margin-bottom:.375rem;font-size:.9375rem}.sample-id{display:inline-block;font-family:Consolas,Monaco,Courier New,monospace;background:#e0e7ff;color:#3730a3;padding:.125rem .375rem;border-radius:3px;font-size:.6875rem;font-weight:600;margin-right:.5rem;vertical-align:middle}.selected-qna-id{display:inline-block;font-family:Consolas,Monaco,Courier New,monospace;background:#dcfce7;color:#166534;padding:.25rem .5rem;border-radius:4px;font-size:.75rem;font-weight:600;margin-left:.75rem;vertical-align:middle}.sample-meta{display:flex;gap:.5rem;margin-bottom:.375rem;font-size:.8125rem}.sample-category{padding:.125rem .5rem;background:#dbeafe;color:#1e40af;border-radius:4px;font-weight:500}.sample-course{padding:.125rem .5rem;background:#fef3c7;color:#92400e;border-radius:4px;font-weight:500}.sample-subject{padding:.125rem .5rem;background:#d1fae5;color:#065f46;border-radius:4px;font-weight:500}.sample-preview{font-size:.8125rem;color:#6b7280;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.api-mode-selector{background:#fff;padding:1.5rem;border-radius:8px;box-shadow:0 2px 8px #0000001a;margin-bottom:1.5rem}.mode-label{display:block;font-weight:600;color:#333;margin-bottom:.75rem}.mode-buttons{display:flex;gap:1rem;margin-bottom:.75rem}.mode-btn{flex:1;padding:1rem;background:#f3f4f6;border:2px solid #e5e7eb;border-radius:8px;cursor:pointer;transition:all .2s;text-align:center;display:flex;flex-direction:column;gap:.25rem;font-weight:600;color:#374151}.mode-btn:hover:not(:disabled){border-color:#667eea;background:#f0f4ff}.mode-btn.active{border-color:#667eea;background:linear-gradient(135deg,#667eea1a,#764ba21a);color:#667eea}.mode-btn:disabled{opacity:.6;cursor:not-allowed}.mode-endpoint{font-size:.75rem;font-weight:400;color:#9ca3af;font-family:monospace}.mode-btn.active .mode-endpoint{color:#667eea}.mode-description{font-size:.875rem;color:#6b7280;padding:.5rem;background:#f9fafb;border-radius:4px}.loading-container{background:#fff;padding:3rem;border-radius:8px;box-shadow:0 2px 8px #0000001a;margin-bottom:2rem;text-align:center}.loading-spinner{width:48px;height:48px;border:4px solid #e5e7eb;border-top-color:#667eea;border-radius:50%;animation:spin 1s linear infinite;margin:0 auto 1rem}.loading-container p{color:#6b7280;margin:0}.pipeline-result{display:flex;flex-direction:column;gap:1.5rem}.ai-answer-section{position:relative}.verification-badge{display:inline-block;padding:.375rem .75rem;border-radius:999px;font-size:.875rem;font-weight:600;margin-bottom:1rem}.verification-badge.verified{background:#d1fae5;color:#065f46}.verification-badge.not-verified{background:#fef3c7;color:#92400e}.ai-answer-content{background:#f9fafb;border:1px solid #e5e7eb;border-radius:8px;padding:1.5rem;line-height:1.8;white-space:pre-wrap;font-size:.9375rem}.checklist-section h4{color:#667eea}.checklist-items{display:flex;flex-direction:column;gap:.5rem}.checklist-item{display:flex;align-items:flex-start;gap:.5rem;padding:.75rem;border-radius:6px;background:#f9fafb;border:1px solid #e5e7eb}.checklist-item.passed{border-left:3px solid #10b981}.checklist-item.failed{border-left:3px solid #f59e0b}.checklist-icon{flex-shrink:0}.checklist-id{font-weight:600;color:#374151;min-width:120px}.checklist-reason{color:#6b7280;font-size:.875rem}.cited-docs-section h4{color:#667eea}.cited-docs-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.5rem}.cited-doc-item{display:flex;align-items:center;gap:.75rem;padding:.75rem;background:#f9fafb;border:1px solid #e5e7eb;border-radius:6px}.doc-index{background:#667eea;color:#fff;padding:.125rem .5rem;border-radius:4px;font-size:.75rem;font-weight:600}.search-results-section{border:1px solid #e5e7eb;border-radius:8px;padding:0}.search-results-section summary{padding:1rem;cursor:pointer;font-weight:600;color:#374151;background:#f9fafb;border-radius:8px}.search-results-section[open] summary{border-bottom:1px solid #e5e7eb;border-radius:8px 8px 0 0}.search-results-list{list-style:none;padding:.5rem;margin:0;max-height:300px;overflow-y:auto}.search-result-item{padding:.5rem .75rem;border-bottom:1px solid #f3f4f6}.search-result-item:last-child{border-bottom:none}.request-preview{margin-bottom:1rem;border:1px solid #e5e7eb;border-radius:8px;background:#f9fafb}.request-preview summary{padding:.75rem 1rem;cursor:pointer;font-weight:600;font-size:.875rem;color:#374151;-webkit-user-select:none;user-select:none}.request-preview summary:hover{background:#f3f4f6}.request-preview[open] summary{border-bottom:1px solid #e5e7eb}.request-preview-json{margin:0;padding:1rem;font-size:.8125rem;font-family:Courier New,monospace;background:#1e1e1e;color:#d4d4d4;border-radius:0 0 8px 8px;overflow-x:auto;max-height:300px;overflow-y:auto}.index-metadata-section{margin-bottom:1.5rem}.index-metadata-toggle{width:100%;padding:.875rem 1.25rem;background:linear-gradient(135deg,#f0f9ff,#e0f2fe);border:1px solid #bae6fd;border-radius:8px;font-size:.9375rem;font-weight:600;color:#0369a1;cursor:pointer;transition:all .2s;text-align:left}.index-metadata-toggle:hover{background:linear-gradient(135deg,#e0f2fe,#bae6fd);border-color:#7dd3fc}.index-metadata-panel{margin-top:.5rem;background:#fff;border:1px solid #e5e7eb;border-radius:8px;box-shadow:0 2px 8px #00000014;overflow:hidden}.metadata-tabs{display:flex;border-bottom:1px solid #e5e7eb;background:#f9fafb}.metadata-tab{flex:1;padding:.875rem;background:transparent;border:none;font-size:.9375rem;font-weight:500;color:#6b7280;cursor:pointer;transition:all .2s}.metadata-tab:hover{background:#f3f4f6;color:#374151}.metadata-tab.active{background:#fff;color:#667eea;border-bottom:2px solid #667eea;margin-bottom:-1px}.metadata-content{padding:1rem;max-height:400px;overflow-y:auto}.metadata-loading,.metadata-empty{padding:2rem;text-align:center;color:#6b7280}.metadata-filter{display:flex;gap:.75rem;align-items:center;margin-bottom:1rem;padding-bottom:1rem;border-bottom:1px solid #e5e7eb}.metadata-filter input{flex:1;padding:.625rem 1rem;border:1px solid #e5e7eb;border-radius:6px;font-size:.875rem}.metadata-filter input:focus{outline:none;border-color:#667eea}.filter-count{font-size:.8125rem;color:#6b7280;white-space:nowrap}.textbooks-list{display:flex;flex-direction:column;gap:.5rem}.textbook-item{padding:.75rem;background:#f9fafb;border:1px solid #e5e7eb;border-radius:6px;transition:all .2s}.textbook-item:hover{border-color:#667eea;background:#f0f4ff}.textbook-title{font-weight:600;color:#111827;margin-bottom:.375rem}.textbook-meta{display:flex;flex-wrap:wrap;gap:.375rem;margin-bottom:.375rem}.meta-badge{padding:.125rem .5rem;border-radius:4px;font-size:.75rem;font-weight:500}.meta-badge.year{background:#dbeafe;color:#1e40af}.meta-badge.series{background:#fef3c7;color:#92400e}.meta-badge.track{background:#d1fae5;color:#065f46}.meta-badge.material{background:#ede9fe;color:#5b21b6}.meta-pages{font-size:.75rem;color:#6b7280}.textbook-id{font-size:.75rem;color:#9ca3af;font-family:monospace}.courses-list{display:flex;flex-direction:column;gap:.5rem}.course-item{border:1px solid #e5e7eb;border-radius:6px;overflow:hidden}.course-header{display:flex;align-items:center;gap:.625rem;padding:.75rem;background:#f9fafb;cursor:pointer;transition:background .2s}.course-header:hover{background:#f3f4f6}.course-expand{font-size:.75rem;color:#6b7280;width:1rem}.course-name{flex:1;font-weight:600;color:#111827;font-size:.9375rem}.course-stats{font-size:.8125rem;color:#6b7280}.course-lectures{border-top:1px solid #e5e7eb;background:#fff;max-height:300px;overflow-y:auto}.lecture-item{display:flex;justify-content:space-between;align-items:center;padding:.5rem .75rem .5rem 2rem;border-bottom:1px solid #f3f4f6;font-size:.875rem}.lecture-item:last-child{border-bottom:none}.lecture-name{color:#374151}.lecture-segments{font-size:.75rem;color:#9ca3af}@media(max-width:1024px){.query-layout{grid-template-columns:1fr}.query-sidebar{position:static;max-height:none}}@media(max-width:768px){.form-row{grid-template-columns:1fr}.query-form{padding:1rem}.mode-buttons{flex-direction:column}.mode-btn{flex-direction:row;justify-content:center;gap:.5rem}.metadata-tabs{flex-direction:column}.metadata-tab.active{border-bottom:none;border-left:2px solid #667eea}}.mode-btn.admission{border-color:#f59e0b}.mode-btn.admission:hover:not(:disabled){border-color:#d97706;background:#fffbeb}.mode-btn.admission.active{border-color:#d97706;background:linear-gradient(135deg,#f59e0b1a,#d977061a);color:#d97706}.mode-btn.admission.active .mode-endpoint,.admission-input label{color:#d97706}.admission-input textarea{border-color:#fcd34d}.admission-input textarea:focus{border-color:#d97706;box-shadow:0 0 0 3px #f59e0b1a}.admission-result{display:flex;flex-direction:column;gap:1.5rem}.admission-result .query-section{background:#fffbeb;border:1px solid #fcd34d;border-radius:8px;padding:1rem}.admission-result .query-section h4{color:#d97706;margin-bottom:.5rem}.admission-result .query-content{color:#92400e;font-size:.9375rem}.admission-result .ai-answer-section h4,.admission-result .cited-docs-section h4{color:#d97706}.admission-result .doc-index-name{font-size:.75rem;color:#9ca3af;margin-left:.5rem;font-family:monospace}.admission-search-result .results-summary{color:#d97706;font-weight:600}.admission-search-result .index-header{color:#d97706}.admission-search-result .doc-item{border-left-color:#f59e0b}.query-layout:has(.admission-input){grid-template-columns:1fr}.json-viewer{font-family:Courier New,monospace;font-size:.875rem;line-height:1.6;background:#f8fafc;padding:1rem;border-radius:6px;border:1px solid #e2e8f0;overflow-x:auto;max-height:500px;overflow-y:auto}.json-viewer .json-key{color:#7c3aed;font-weight:600}.json-viewer .json-string{color:#059669}.json-viewer .json-number{color:#dc2626;font-weight:500}.json-viewer .json-boolean{color:#2563eb;font-weight:600}.json-viewer .json-null{color:#6b7280;font-style:italic}.filters{display:flex;gap:.5rem;margin-bottom:1rem;flex-wrap:wrap}.filter-btn,.refresh-btn{padding:.5rem 1rem;border:1px solid #ddd;background:#fff;border-radius:4px;cursor:pointer;transition:all .2s}.filter-btn:hover,.refresh-btn:hover{background:#f5f5f5;border-color:#667eea}.filter-btn.active{background:#667eea;color:#fff;border-color:#667eea}.refresh-btn{margin-left:auto}.refresh-btn:disabled{opacity:.5;cursor:not-allowed}.delete-all-btn{padding:.5rem 1rem;border:1px solid #dc3545;background:#fff;color:#dc3545;border-radius:4px;cursor:pointer;transition:all .2s;font-weight:600}.delete-all-btn:hover{background:#dc3545;color:#fff}.delete-all-btn:disabled{opacity:.5;cursor:not-allowed}.requests-table{width:100%;background:#fff;border-radius:8px;overflow:hidden;box-shadow:0 2px 8px #0000001a;border-collapse:collapse}.requests-table th{background:#f8f9fa;padding:1rem;text-align:left;font-weight:600;border-bottom:2px solid #e0e0e0}.requests-table td{padding:.875rem 1rem;border-bottom:1px solid #f0f0f0}.requests-table tbody tr:hover{background:#f9f9f9}.clickable{cursor:pointer;transition:background-color .2s}.clickable:hover{background-color:#f5f5f5!important}.query-cell{max-width:400px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.qna-id-badge{display:inline-block;font-family:Consolas,Monaco,Courier New,monospace;background:#e0e7ff;color:#3730a3;padding:.125rem .375rem;border-radius:3px;font-size:.75rem;font-weight:600;margin-right:.5rem;vertical-align:middle}.delete-btn{background:none;border:none;font-size:1.2rem;cursor:pointer;padding:.25rem .5rem;transition:transform .2s}.delete-btn:hover{transform:scale(1.2)}.delete-btn-large{background:#dc3545;color:#fff;border:none;padding:.5rem 1rem;border-radius:4px;cursor:pointer;font-size:.9rem;transition:background-color .2s;margin-left:1rem}.delete-btn-large:hover{background:#c82333}.badge{display:inline-block;padding:.25rem .75rem;border-radius:12px;font-size:.75rem;font-weight:600}.badge.success{background:#d4edda;color:#155724}.badge.pending{background:#fff3cd;color:#856404}.badge.error{background:#f8d7da;color:#721c24}.token-info{display:inline-block;font-weight:500}.token-info small{color:#888;font-size:.8em;margin-left:.3rem}.cost-info{color:#667eea;font-weight:600}.pagination{display:flex;justify-content:center;align-items:center;gap:1rem;margin-top:1.5rem}.pagination button{padding:.5rem 1rem;border:1px solid #ddd;background:#fff;border-radius:4px;cursor:pointer;transition:all .2s}.pagination button:hover:not(:disabled){background:#667eea;color:#fff;border-color:#667eea}.pagination button:disabled{opacity:.5;cursor:not-allowed}.request-detail{background:#fff;border-radius:8px;padding:2rem;box-shadow:0 2px 8px #0000001a}.detail-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.back-btn{padding:.5rem 1rem;border:1px solid #ddd;background:#fff;border-radius:4px;cursor:pointer;margin-bottom:1.5rem;transition:all .2s}.back-btn:hover{background:#f5f5f5;border-color:#667eea}.detail-section{margin-bottom:2rem}.detail-section h3{margin-bottom:1rem;color:#667eea;border-bottom:2px solid #e0e0e0;padding-bottom:.5rem}.detail-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1rem;margin-bottom:1rem}.detail-item{margin-bottom:1rem}.token-section{margin-top:1.5rem;padding-top:1.5rem;border-top:1px solid #e0e0e0}.token-section h4{margin-bottom:1rem;color:#667eea}.cost-highlight{color:#667eea;font-size:1.1em;font-weight:700}.token-total-row{display:flex;justify-content:space-between;align-items:center;padding:.75rem 1rem;background:#f8fafc;border-radius:8px;margin-bottom:.75rem}.token-stat{display:flex;align-items:center;gap:.75rem}.token-label{font-weight:600;color:#374151}.token-value{font-size:1.25rem;font-weight:700;color:#1f2937}.token-detail{color:#6b7280;font-size:.875rem}.token-cost{font-size:1rem}.token-stage-breakdown{display:flex;flex-direction:column;gap:.5rem;margin-top:.5rem}.token-stage-row{display:flex;align-items:center;gap:.75rem;padding:.625rem 1rem;background:#fff;border:1px solid #e5e7eb;border-radius:6px;font-size:.875rem}.stage-indicator{width:4px;height:24px;border-radius:2px;flex-shrink:0}.stage-info{display:flex;align-items:center;gap:.375rem;min-width:120px}.stage-label{font-weight:500;color:#374151}.stage-turns{color:#9ca3af;font-size:.75rem}.stage-tokens{display:flex;align-items:center;gap:.5rem;flex:1}.stage-total{font-weight:600;color:#1f2937;min-width:70px}.stage-detail{color:#9ca3af;font-size:.75rem}.stage-percentage{min-width:50px;text-align:right;color:#6b7280;font-weight:500}.stage-cost{min-width:70px;text-align:right;color:#667eea;font-weight:500}.code-block{background:#f8f9fa;border:1px solid #e0e0e0;border-radius:4px;padding:1rem;margin-top:.5rem;white-space:pre-wrap;word-wrap:break-word;font-family:Courier New,monospace;font-size:.875rem}.json-block{background:#282c34;color:#abb2bf;border-radius:4px;padding:1rem;margin-top:.5rem;overflow-x:auto;font-family:Courier New,monospace;font-size:.8125rem;line-height:1.5;white-space:pre-wrap;word-break:break-word;max-height:400px;overflow-y:auto}.results-display{background:#f8f9fa;border:1px solid #e0e0e0;border-radius:8px;padding:1.5rem;margin-top:.5rem}.results-summary{font-size:1.1rem;margin-bottom:1.5rem;padding-bottom:1rem;border-bottom:2px solid #e0e0e0;color:#555}.index-group{margin-bottom:1.5rem;background:#fff;border-radius:6px;padding:1rem;box-shadow:0 1px 3px #0000001a}.index-header{font-weight:600;font-size:1rem;color:#667eea;margin-bottom:.75rem;padding-bottom:.5rem;border-bottom:1px solid #e0e0e0}.doc-list{list-style:none;padding:0;margin:0}.doc-item{padding:.5rem;margin:.25rem 0;background:#f8f9fa;border-left:3px solid #667eea;border-radius:4px;transition:all .2s}.doc-item:hover{background:#e9ecef;transform:translate(4px)}.doc-id{font-family:Courier New,monospace;font-size:.875rem;color:#666;margin-bottom:.5rem}.clickable-doc{cursor:pointer;color:#667eea;text-decoration:underline;transition:color .2s}.clickable-doc:hover{color:#4c51bf}.timeline{position:relative;padding-left:2rem}.timeline:before{content:"";position:absolute;left:.75rem;top:0;bottom:0;width:2px;background:linear-gradient(180deg,#667eea,#764ba2)}.timeline-item{position:relative;margin-bottom:1.5rem;padding-bottom:1.5rem}.timeline-item:last-child{margin-bottom:0;padding-bottom:0}.timeline-marker{position:absolute;left:-1.4rem;top:.5rem;width:1.5rem;height:1.5rem;border-radius:50%;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;display:flex;align-items:center;justify-content:center;font-size:.75rem;font-weight:700;box-shadow:0 0 0 4px #fff,0 2px 4px #0000001a;z-index:1}.timeline-item.selection .timeline-marker{background:linear-gradient(135deg,#f093fb,#f5576c)}.timeline-content{background:#fff;border-radius:8px;padding:1rem;box-shadow:0 2px 8px #0000001a;border-left:4px solid #667eea}.timeline-item.selection .timeline-content{border-left-color:#f5576c}.timeline-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.75rem;flex-wrap:wrap;gap:.5rem}.timeline-header>div{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.stage-badge{padding:.25rem .5rem;border-radius:4px;font-size:.75rem;font-weight:600}.stage-badge.information_gathering{background:#e3f2fd;color:#1976d2}.stage-badge.selection{background:#fce4ec;color:#c2185b}.stage-badge.answer_generation{background:#e8f5e9;color:#388e3c}.stage-badge.evaluation{background:#fff3e0;color:#f57c00}.tool-badge{padding:.25rem .5rem;border-radius:4px;font-size:.75rem;font-weight:600;background:#fff3e0;color:#e65100}.time-badge{background:#e0e7ff;color:#4c51bf;padding:.25rem .5rem;border-radius:4px;font-size:.75rem;font-weight:600;margin-left:auto}.turn-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:.75rem;margin-bottom:.75rem;padding:.75rem;background:#f9f9f9;border-radius:6px}.stat-item{display:flex;flex-direction:column;gap:.25rem}.stat-label{font-size:.75rem;color:#666;font-weight:500}.stat-value{font-size:1rem;font-weight:600;color:#333}.stat-value.total{color:#667eea}.stat-value.cost{color:#ff9800}.stat-value.thinking{color:#9333ea;font-weight:700}.turn-tools-details{margin-top:.75rem;border:1px solid #e0e7ff;border-radius:8px;overflow:hidden}.turn-tools-details>summary.turn-tools-header{padding:.75rem 1rem;background:linear-gradient(135deg,#f0f4ff,#fef5ff);font-size:.875rem;font-weight:600;color:#667eea;cursor:pointer;-webkit-user-select:none;user-select:none;list-style:none;display:flex;align-items:center;gap:.5rem}.turn-tools-details>summary.turn-tools-header::-webkit-details-marker{display:none}.turn-tools-details>summary.turn-tools-header:before{content:"▶";font-size:.75rem;transition:transform .2s}.turn-tools-details[open]>summary.turn-tools-header:before{transform:rotate(90deg)}.turn-tools-details>summary.turn-tools-header:hover{background:linear-gradient(135deg,#e8edff,#fcefff)}.turn-tools-expanded{padding:.75rem;background:#fafbfc;display:flex;flex-direction:column;gap:.75rem}.tool-call-inline{background:#fff;border:1px solid #e5e7eb;border-radius:8px;overflow:hidden;border-left:4px solid #667eea}.tool-inline-header{display:flex;align-items:center;gap:.5rem;padding:.75rem 1rem;background:#f8f9fa;border-bottom:1px solid #e5e7eb;flex-wrap:wrap}.tool-inline-header .tool-order{font-weight:700;color:#667eea;font-size:.875rem}.tool-inline-header .tool-name{font-family:Courier New,monospace;font-weight:600;color:#374151;font-size:.9rem}.tool-inline-header .badge{margin-left:.25rem}.tool-inline-header .time-badge{margin-left:auto}.tool-input-details,.tool-output-details{margin:0;border-top:1px solid #f0f0f0}.tool-input-details summary,.tool-output-details summary{padding:.625rem 1rem;background:#fafafa;cursor:pointer;font-size:.8125rem;font-weight:500;color:#555;-webkit-user-select:none;user-select:none}.tool-input-details summary:hover,.tool-output-details summary:hover{background:#f0f0f0}.tool-input-details[open] summary,.tool-output-details[open] summary{border-bottom:1px solid #e5e7eb}.tool-call-inline .tool-input-plain,.tool-call-inline .tool-output-formatted{margin:0;padding:.875rem 1rem;background:#fff;border-radius:0}.tool-call-inline .error-text{padding:.75rem 1rem;background:#fef2f2;border-top:1px solid #fecaca}.tool-chip{display:inline-flex;align-items:center;gap:.25rem;padding:.375rem .75rem;background:#fff;border:1px solid #d0d7ff;border-radius:16px;font-size:.8125rem;font-weight:500;color:#4f5b9e;box-shadow:0 1px 2px #667eea1a;transition:all .2s}.tool-chip:hover{background:#f8f9ff;box-shadow:0 2px 4px #667eea26}.tool-name{font-family:Courier New,monospace}.tool-status.failed{color:#ef4444;font-weight:700}.input-details{margin-top:.75rem}.input-details summary{cursor:pointer;padding:.5rem;background:#f5f5f5;border-radius:4px;font-size:.875rem;color:#667eea;font-weight:500;-webkit-user-select:none;user-select:none}.input-details summary:hover{background:#ebebeb}.input-content{margin-top:.5rem;padding:1rem;background:#fafafa;border-radius:4px;font-family:Courier New,monospace;font-size:.875rem;white-space:pre-wrap;word-break:break-word;max-height:300px;overflow-y:auto;overflow-x:auto;border:1px solid #e0e0e0}.input-content pre{margin:0;white-space:pre-wrap;word-break:break-word;overflow-wrap:break-word}.output-details{margin-top:.75rem}.output-details summary{cursor:pointer;padding:.5rem;background:#f5f5f5;border-radius:4px;font-size:.875rem;color:#667eea;font-weight:500;-webkit-user-select:none;user-select:none}.output-details summary:hover{background:#ebebeb}.output-content{margin-top:.5rem;padding:1rem;background:#fafafa;border-radius:4px;font-family:Courier New,monospace;font-size:.875rem;white-space:pre-wrap;word-break:break-word;max-height:300px;overflow-y:auto;overflow-x:auto;border:1px solid #e0e0e0}.thinking-details{margin-top:.75rem}.thinking-details summary{cursor:pointer;padding:.5rem;background:#f5f5f5;border-radius:4px;font-size:.875rem;color:#667eea;font-weight:500;-webkit-user-select:none;user-select:none}.thinking-details summary:hover{background:#ebebeb}.content-length-badge{display:inline-block;margin-left:.5rem;padding:.125rem .5rem;background:#e0e7ff;color:#4338ca;border-radius:10px;font-size:.75rem;font-weight:600;font-family:Courier New,monospace}.thinking-content{margin-top:.5rem;padding:1rem;background:#fafafa;border-radius:4px;font-family:Courier New,monospace;font-size:.875rem;white-space:pre-wrap;word-break:break-word;max-height:300px;overflow-y:auto;overflow-x:auto;border:1px solid #e0e0e0}.thinking-content pre{margin:0;white-space:pre-wrap;word-break:break-word;overflow-wrap:break-word}.tool-call-item{background:#f8f9fa;border-radius:8px;padding:1rem;margin-bottom:1rem;border-left:4px solid #667eea}.tool-header{display:flex;align-items:center;gap:.5rem;margin-bottom:.5rem}details{margin-top:.5rem}details summary{cursor:pointer;padding:.5rem;background:#fff;border-radius:4px;-webkit-user-select:none;user-select:none;font-weight:500}details summary:hover{background:#f0f0f0}details[open] summary{margin-bottom:.5rem}.tool-input-plain{padding:1rem;background:#f8f9fa;border-radius:6px;font-family:Courier New,monospace;font-size:.875rem}.tool-input-plain .input-field{display:flex;gap:.5rem;padding:.375rem 0;border-bottom:1px solid #e5e7eb}.tool-input-plain .input-field:last-child{border-bottom:none}.tool-input-plain .input-key{color:#6366f1;font-weight:600;min-width:100px}.tool-input-plain .input-value{color:#374151;word-break:break-word}.tool-output-formatted{padding:1rem;background:#f8fafc;border-radius:6px}.tool-output-formatted .output-text{font-family:Courier New,monospace;font-size:.875rem;white-space:pre-wrap;word-break:break-word;color:#374151}.tool-output-formatted .output-empty{color:#9ca3af;font-style:italic}.output-array .array-header,.output-results .results-header{font-weight:600;color:#4f46e5;margin-bottom:.75rem;padding-bottom:.5rem;border-bottom:2px solid #e0e7ff}.output-array .array-item,.output-results .result-item{margin-bottom:.5rem;border:1px solid #e5e7eb;border-radius:6px;overflow:hidden}.output-array .array-item-summary,.output-results .result-item-summary{padding:.75rem 1rem;background:#f1f5f9;cursor:pointer;font-weight:500;font-size:.875rem;color:#334155;display:flex;align-items:center;gap:.5rem}.output-array .array-item-summary:hover,.output-results .result-item-summary:hover{background:#e2e8f0}.output-array .array-item-content,.output-results .result-item-content{padding:.75rem;background:#fff;border-top:1px solid #e5e7eb;max-height:400px;overflow-y:auto}.relevance-score{margin-left:auto;padding:.125rem .5rem;background:#dcfce7;color:#166534;border-radius:9999px;font-size:.75rem;font-weight:600}.turn-group{margin-bottom:1.5rem;border:2px solid #e0e7ff;border-radius:12px;overflow:hidden}.turn-group .turn-header{display:flex;align-items:center;gap:1rem;padding:.75rem 1rem;background:linear-gradient(135deg,#4f46e5,#6366f1);color:#fff}.turn-group .turn-badge{font-weight:700;font-size:1rem;padding:.25rem .75rem;background:#fff3;border-radius:6px}.turn-tool-count{font-size:.875rem;opacity:.9}.turn-group .turn-tools{padding:.75rem;background:#fafbfc}.turn-group .turn-tools .tool-call-item{margin-bottom:.75rem;border-left:3px solid #6366f1}.turn-group .turn-tools .tool-call-item:last-child{margin-bottom:0}.document-item{background:#f8f9fa;border-radius:8px;padding:1rem;margin-bottom:1rem;border-left:4px solid #28a745}.doc-header{display:flex;align-items:center;gap:.5rem;margin-bottom:.5rem}.score-badge{background:#d4edda;color:#155724;padding:.25rem .5rem;border-radius:4px;font-size:.75rem;font-weight:600;margin-left:auto}.document-item .json-block{max-height:300px;overflow-y:auto;white-space:pre-wrap;word-break:break-word}.llm-input-viewer{display:flex;flex-direction:column;gap:.75rem}.llm-input-viewer .viewer-toolbar{display:flex;justify-content:space-between;align-items:center;padding:.5rem .75rem;background:linear-gradient(135deg,#f8fafc,#f1f5f9);border-radius:8px;border:1px solid #e2e8f0}.llm-input-viewer .type-summary{display:flex;gap:.5rem;flex-wrap:wrap}.llm-input-viewer .type-chip{display:inline-flex;align-items:center;gap:.25rem;padding:.25rem .5rem;border-radius:12px;font-size:.75rem;font-weight:600}.llm-input-viewer .expand-toggle-btn{padding:.375rem .75rem;background:#fff;border:1px solid #d1d5db;border-radius:6px;font-size:.75rem;font-weight:500;color:#4b5563;cursor:pointer;transition:all .2s}.llm-input-viewer .expand-toggle-btn:hover{background:#f9fafb;border-color:#9ca3af}.llm-input-viewer .messages-list{display:flex;flex-direction:column;gap:.5rem}.llm-input-viewer .message-block{border:1px solid #e5e7eb;border-radius:8px;overflow:hidden;transition:box-shadow .2s}.llm-input-viewer .message-block:hover{box-shadow:0 2px 8px #00000014}.llm-input-viewer .message-block[open]{box-shadow:0 4px 12px #0000001a}.llm-input-viewer .message-summary{display:flex;flex-wrap:wrap;align-items:flex-start;gap:.5rem;padding:.75rem 1rem;cursor:pointer;border-left:4px solid;font-size:.875rem;transition:all .2s}.llm-input-viewer .message-summary:hover{filter:brightness(.97)}.llm-input-viewer .message-summary::marker{color:#9ca3af}.llm-input-viewer .message-icon{font-size:1.125rem;flex-shrink:0}.llm-input-viewer .message-type{font-weight:700;flex-shrink:0;min-width:55px;font-size:.8125rem;text-transform:uppercase;letter-spacing:.025em}.llm-input-viewer .tool-info-badge{padding:.125rem .5rem;background:#f59e0b26;color:#b45309;border-radius:4px;font-size:.75rem;font-weight:600;flex-shrink:0}.llm-input-viewer .message-preview{color:#4b5563;flex-basis:100%;font-size:.8125rem;line-height:1.6;margin-top:.25rem;padding:.5rem .75rem;background:#00000005;border-radius:6px;white-space:pre-wrap;word-break:break-word}.llm-input-viewer .message-size{flex-shrink:0;padding:.125rem .5rem;background:#0000000d;border-radius:4px;font-size:.6875rem;font-weight:600;color:#6b7280;font-family:Courier New,monospace}.llm-input-viewer .message-content{padding:1rem;background:#fff;border-top:1px solid #e5e7eb;border-left:4px solid;max-height:500px;overflow:auto}.llm-input-viewer .json-content{display:flex;flex-direction:column;gap:.5rem}.llm-input-viewer .json-toolbar{display:flex;align-items:center;gap:.5rem}.llm-input-viewer .json-badge{padding:.125rem .5rem;background:linear-gradient(135deg,#6366f1,#8b5cf6);color:#fff;border-radius:4px;font-size:.6875rem;font-weight:700;text-transform:uppercase}.llm-input-viewer .array-count{padding:.125rem .5rem;background:#e0e7ff;color:#4338ca;border-radius:4px;font-size:.75rem;font-weight:600}.llm-input-viewer .json-formatted{margin:0;padding:1rem;background:#1e1e2e;color:#cdd6f4;border-radius:6px;font-size:.8125rem;line-height:1.6;white-space:pre-wrap;word-break:break-word;font-family:Fira Code,Consolas,Monaco,monospace;max-height:400px;overflow:auto}.formatted-text-wrapper{font-size:.875rem;line-height:1.7;color:#1f2937}.formatted-empty-line{height:.5rem}.formatted-hr{border:none;border-top:2px solid #e5e7eb;margin:1rem 0}.formatted-heading{font-weight:700;color:#111827;margin:.75rem 0 .5rem;padding-bottom:.25rem}.formatted-h1{font-size:1.25rem;border-bottom:2px solid #6366f1;padding-bottom:.5rem;color:#4f46e5}.formatted-h2{font-size:1.1rem;border-bottom:1px solid #e5e7eb;color:#1e40af}.formatted-h3{font-size:1rem;color:#374151}.formatted-list-item{display:flex;align-items:flex-start;gap:.5rem;margin:.25rem 0}.formatted-list-item .list-marker{flex-shrink:0;color:#6366f1;font-weight:600;min-width:1.25rem}.formatted-list-item.ordered .list-marker{color:#059669}.formatted-list-item .list-text{flex:1}.formatted-paragraph{margin:.25rem 0;white-space:pre-wrap;word-break:break-word}.formatted-code-block{position:relative;margin:.75rem 0;border-radius:8px;overflow:hidden;background:#1e1e2e}.formatted-code-block .code-lang{position:absolute;top:0;right:0;padding:.25rem .75rem;background:#6366f1cc;color:#fff;font-size:.6875rem;font-weight:600;text-transform:uppercase;border-bottom-left-radius:6px}.formatted-code-block pre{margin:0;padding:1rem;color:#cdd6f4;font-family:Fira Code,Consolas,Monaco,monospace;font-size:.8125rem;line-height:1.6;overflow-x:auto;white-space:pre-wrap;word-break:break-word}.formatted-bold{font-weight:700;color:#111827}.formatted-italic{font-style:italic;color:#4b5563}.formatted-inline-code{padding:.125rem .375rem;background:#f3f4f6;border:1px solid #e5e7eb;border-radius:4px;font-family:Fira Code,Consolas,Monaco,monospace;font-size:.8125em;color:#dc2626}.llm-input-viewer .text-content{margin:0;font-size:.8125rem;white-space:pre-wrap;word-break:break-word;line-height:1.6;color:#374151}.llm-input-viewer .no-content{padding:1.5rem;text-align:center;color:#9ca3af;background:#f9fafb;border-radius:8px;font-style:italic}.llm-input-viewer .message-block.systemmessage[open]{border-color:#6b7280}.llm-input-viewer .message-block.humanmessage[open]{border-color:#3b82f6}.llm-input-viewer .message-block.aimessage[open]{border-color:#10b981}.llm-input-viewer .message-block.toolmessage[open]{border-color:#f59e0b}.xml-section-viewer{display:flex;flex-direction:column;gap:8px}.xml-text-between{padding:8px 12px;background:#f9fafb;border-radius:4px}.xml-text-between pre{margin:0;font-family:Pretendard,-apple-system,sans-serif;font-size:.875rem;line-height:1.5;white-space:pre-wrap;word-break:break-word}.xml-section-block{border:1px solid #e5e7eb;border-radius:6px;overflow:hidden;transition:all .2s ease}.xml-section-block:hover{border-color:#d1d5db}.xml-section-block[open]{border-color:#9ca3af}.xml-section-summary{display:flex;align-items:center;gap:8px;padding:10px 12px;cursor:pointer;-webkit-user-select:none;user-select:none;border-left:3px solid;transition:background .2s}.xml-section-summary:hover{filter:brightness(.97)}.xml-section-summary::marker{color:#9ca3af}.xml-section-icon{font-size:1rem;flex-shrink:0}.xml-section-label{font-weight:600;font-size:.8rem;text-transform:uppercase;letter-spacing:.02em;flex-shrink:0}.xml-section-preview{flex:1;font-size:.8rem;color:#6b7280;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:Pretendard,-apple-system,sans-serif}.xml-section-size{font-size:.75rem;color:#9ca3af;background:#0000000d;padding:2px 8px;border-radius:10px;flex-shrink:0}.xml-section-content{padding:12px 16px;background:#fafafa;border-left:3px solid;border-top:1px solid #e5e7eb;max-height:400px;overflow-y:auto}.xml-section-content pre{margin:0;font-family:Pretendard,ui-monospace,monospace;font-size:.8rem;line-height:1.6;white-space:pre-wrap;word-break:break-word;color:#374151}.xml-raw-content{padding:12px;background:#f9fafb;border-radius:4px;margin:0;font-family:Pretendard,ui-monospace,monospace;font-size:.85rem;line-height:1.5;white-space:pre-wrap;word-break:break-word}.api-type-badge{display:inline-block;padding:.25rem .5rem;border-radius:6px;font-size:.75rem;font-weight:600;white-space:nowrap}.api-type-badge.pipeline{background:linear-gradient(135deg,#6366f1,#8b5cf6);color:#fff}.api-type-badge.search{background:#e0f2fe;color:#0369a1}.badge.verified{background:#d1fae5;color:#065f46}.badge.not-verified{background:#fef3c7;color:#92400e}.pipeline-answer-section{margin-top:1.5rem}.ai-answer-box{margin-top:.5rem;background:#f9fafb;border:1px solid #e5e7eb;border-radius:8px;padding:1.25rem}.ai-answer-text{margin:0;font-family:inherit;font-size:.9375rem;line-height:1.8;white-space:pre-wrap;word-break:break-word;color:#1f2937;max-height:500px;overflow-y:auto}.pipeline-checklists{margin-top:1.5rem}.checklist-grid{display:flex;flex-direction:column;gap:.5rem;margin-top:.75rem}.pipeline-checklists .checklist-item{display:flex;align-items:flex-start;gap:.75rem;padding:.75rem 1rem;background:#f9fafb;border:1px solid #e5e7eb;border-radius:8px;transition:all .2s}.pipeline-checklists .checklist-item.passed{border-left:4px solid #10b981;background:#f0fdf4}.pipeline-checklists .checklist-item.failed{border-left:4px solid #f59e0b;background:#fffbeb}.pipeline-checklists .checklist-icon{flex-shrink:0;font-size:1rem}.pipeline-checklists .checklist-id{font-weight:600;color:#374151;min-width:140px;font-size:.875rem}.pipeline-checklists .checklist-reason{flex:1;color:#6b7280;font-size:.8125rem;line-height:1.5}.pipeline-cited-docs{margin-top:1.5rem}.pipeline-cited-docs .cited-docs-list{list-style:none;padding:0;margin:.75rem 0 0;display:flex;flex-direction:column;gap:.5rem}.pipeline-cited-docs .cited-doc-item{display:flex;align-items:center;gap:.75rem;padding:.625rem 1rem;background:#f9fafb;border:1px solid #e5e7eb;border-radius:6px;font-size:.875rem}.pipeline-cited-docs .doc-index{flex-shrink:0;background:#6366f1;color:#fff;padding:.125rem .5rem;border-radius:4px;font-size:.75rem;font-weight:600}.pipeline-cited-docs .doc-index-name{color:#6b7280;font-size:.8125rem}.pipeline-cited-docs .doc-id.clickable-doc{color:#4f46e5;cursor:pointer;font-weight:500}.pipeline-cited-docs .doc-id.clickable-doc:hover{text-decoration:underline}.pipeline-reference-docs{margin-top:1.5rem;border:1px solid #e5e7eb;border-radius:8px}.pipeline-reference-docs>summary{padding:1rem;cursor:pointer;background:#f9fafb;border-radius:8px;font-size:.9375rem;-webkit-user-select:none;user-select:none}.pipeline-reference-docs[open]>summary{border-bottom:1px solid #e5e7eb;border-radius:8px 8px 0 0}.pipeline-reference-docs .reference-docs-content{padding:1rem}.pipeline-reference-docs .index-group{margin-bottom:1rem}.pipeline-reference-docs .index-group:last-child{margin-bottom:0}.pipeline-reference-docs .index-header{font-weight:600;color:#374151;margin-bottom:.5rem;padding-bottom:.25rem;border-bottom:1px solid #e5e7eb;font-size:.875rem}.pipeline-reference-docs .doc-list{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:.5rem}.pipeline-reference-docs .doc-item{padding:.375rem .75rem;background:#f3f4f6;border-radius:4px;font-size:.8125rem}.pipeline-reference-docs .doc-id.clickable-doc{color:#4f46e5;cursor:pointer}.pipeline-reference-docs .doc-id.clickable-doc:hover{text-decoration:underline}@media(max-width:768px){.detail-grid{grid-template-columns:1fr}.requests-table{font-size:.875rem}.requests-table th,.requests-table td{padding:.5rem}.pipeline-reference-docs .doc-list{grid-template-columns:1fr}.pipeline-checklists .checklist-item{flex-direction:column;gap:.5rem}.pipeline-checklists .checklist-id{min-width:auto}}.collapsible-section{border:1px solid #e5e7eb;border-radius:8px;margin-bottom:1rem;background:#fff}.collapsible-section>summary{padding:1rem 1.25rem;cursor:pointer;background:#f9fafb;border-radius:8px;list-style:none;display:flex;align-items:center}.collapsible-section>summary::-webkit-details-marker{display:none}.collapsible-section>summary:before{content:"▶";margin-right:.75rem;font-size:.75rem;color:#6b7280;transition:transform .2s}.collapsible-section[open]>summary:before{transform:rotate(90deg)}.collapsible-section[open]>summary{border-bottom:1px solid #e5e7eb;border-radius:8px 8px 0 0}.collapsible-section>summary h3{margin:0;font-size:1rem;font-weight:600;color:#374151;display:flex;align-items:center;gap:.75rem}.collapsible-section .verification-badge{font-size:.75rem;padding:.25rem .5rem;border-radius:4px;font-weight:500}.collapsible-section .verification-badge.verified{background:#d1fae5;color:#065f46}.collapsible-section .verification-badge.not-verified{background:#fef3c7;color:#92400e}.collapsible-section .checklist-count{font-size:.8125rem;font-weight:400;color:#6b7280}.llm-timeline-content,.reference-section-content{padding:1rem 1.25rem}.reference-section-content .index-group{margin-bottom:1rem}.reference-section-content .index-group:last-child{margin-bottom:0}.reference-section-content .index-header{font-weight:600;color:#374151;margin-bottom:.5rem;padding-bottom:.25rem;border-bottom:1px solid #e5e7eb;font-size:.875rem}.reference-section-content .doc-list{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:.5rem}.reference-section-content .doc-item{padding:.375rem .75rem;background:#f3f4f6;border-radius:4px;font-size:.8125rem}.reference-section-content .doc-id.clickable-doc{color:#4f46e5;cursor:pointer}.reference-section-content .doc-id.clickable-doc:hover{text-decoration:underline}.pipeline-cited-section{background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:1rem 1.25rem;margin-bottom:1rem}.pipeline-cited-section h3{margin:0 0 .75rem;font-size:1rem;font-weight:600;color:#374151}.pipeline-cited-section .cited-docs-content{margin:0}.pipeline-cited-section .cited-docs-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.5rem}.pipeline-cited-section .cited-doc-item{display:flex;align-items:center;gap:.75rem;padding:.625rem 1rem;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:6px;font-size:.875rem}.pipeline-cited-section .doc-index{flex-shrink:0;background:#22c55e;color:#fff;padding:.125rem .5rem;border-radius:4px;font-size:.75rem;font-weight:600}.pipeline-cited-section .doc-index-name{color:#6b7280;font-size:.8125rem}.pipeline-cited-section .doc-id.clickable-doc{color:#16a34a;cursor:pointer;font-weight:500}.pipeline-cited-section .doc-id.clickable-doc:hover{text-decoration:underline}.collapsible-section .checklist-grid{padding:1rem 1.25rem;margin-top:0}.question-info-section{background:linear-gradient(135deg,#fef3c7,#fef9c3);border:1px solid #fcd34d}.question-info-section h3{color:#92400e}.question-info-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:.875rem;padding:.5rem 0}.question-info-item{display:flex;flex-direction:column;gap:.25rem;padding:.625rem .875rem;background:#ffffffb3;border-radius:6px;border:1px solid rgba(252,211,77,.4)}.question-info-item.full-width{grid-column:1 / -1}.question-info-item .info-label{font-size:.75rem;color:#92400e;font-weight:600;text-transform:uppercase;letter-spacing:.025em}.question-info-item .info-value{font-size:.9375rem;color:#1f2937;line-height:1.5}.question-info-item .info-value.long-text{white-space:pre-wrap;word-break:break-word;background:#ffffff80;padding:.5rem .75rem;border-radius:4px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}.question-info-item .info-value.link{color:#2563eb;text-decoration:none;font-weight:500}.question-info-item .info-value.link:hover{text-decoration:underline}.question-info-item .info-value.code-value{font-family:Consolas,Monaco,Courier New,monospace;background:#f1f5f9;padding:.25rem .5rem;border-radius:4px;font-size:.875rem;color:#0f172a;font-weight:600}.analysis-section{margin-top:1.5rem;border:2px solid #e2e8f0;border-radius:12px;overflow:hidden}.analysis-header{display:flex;justify-content:space-between;align-items:center;padding:1rem 1.5rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.analysis-header h3{margin:0;font-size:1.1rem}.analysis-actions{display:flex;gap:.5rem}.generate-analysis-btn,.regenerate-analysis-btn{background:#fff3;border:1px solid rgba(255,255,255,.3);color:#fff;padding:.5rem 1rem;border-radius:6px;cursor:pointer;font-weight:500;transition:all .2s}.generate-analysis-btn:hover,.regenerate-analysis-btn:hover{background:#ffffff4d}.generate-analysis-btn:disabled,.regenerate-analysis-btn:disabled{opacity:.5;cursor:not-allowed}.delete-analysis-btn{background:#ef444433;border:1px solid rgba(239,68,68,.3);color:#fff;padding:.5rem .75rem;border-radius:6px;cursor:pointer;transition:all .2s}.delete-analysis-btn:hover{background:#ef444466}.analysis-loading{display:flex;align-items:center;justify-content:center;gap:1rem;padding:3rem;color:#6b7280}.loading-spinner{width:24px;height:24px;border:3px solid #e5e7eb;border-top-color:#667eea;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.analysis-error{padding:1rem 1.5rem;background:#fef2f2;color:#dc2626;border-bottom:1px solid #fecaca}.analysis-content{padding:0}.analysis-meta{display:flex;gap:1.5rem;padding:.75rem 1.5rem;background:#f8fafc;border-bottom:1px solid #e2e8f0;font-size:.85rem;color:#64748b}.analysis-meta .meta-item{display:flex;align-items:center;gap:.25rem}.analysis-body{padding:1.5rem;max-height:600px;overflow-y:auto}.analysis-body .formatted-text-wrapper{line-height:1.7}.analysis-body .formatted-heading{color:#1e293b;border-bottom:1px solid #e2e8f0;padding-bottom:.5rem;margin-top:1.5rem;margin-bottom:1rem}.analysis-body .formatted-h1{font-size:1.5rem}.analysis-body .formatted-h2{font-size:1.25rem}.analysis-body .formatted-h3{font-size:1.1rem}.analysis-body .formatted-list-item{margin:.5rem 0}.analysis-body .formatted-code-block{background:#1e293b;color:#e2e8f0;border-radius:8px;margin:1rem 0}.analysis-body .formatted-code-block pre{padding:1rem;margin:0;overflow-x:auto}.analysis-empty{padding:3rem;text-align:center;color:#6b7280}.analysis-empty p{margin:.5rem 0}.analysis-empty .hint{font-size:.9rem;color:#9ca3af}.memo-section{margin-top:1rem;border:1px solid #e5e7eb;border-radius:8px;background:#fff;padding:1rem 1.25rem}.memo-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.75rem}.memo-header h3{margin:0;font-size:1rem;font-weight:600;color:#374151;border-bottom:none;padding-bottom:0}.memo-actions{display:flex;gap:.5rem}.memo-edit-btn,.memo-save-btn,.memo-cancel-btn,.memo-delete-btn{padding:.375rem .75rem;border-radius:6px;font-size:.8125rem;font-weight:500;cursor:pointer;transition:all .2s;border:1px solid}.memo-edit-btn{background:#f3f4f6;border-color:#d1d5db;color:#374151}.memo-edit-btn:hover{background:#e5e7eb;border-color:#9ca3af}.memo-save-btn{background:#10b981;border-color:#10b981;color:#fff}.memo-save-btn:hover:not(:disabled){background:#059669;border-color:#059669}.memo-save-btn:disabled{opacity:.6;cursor:not-allowed}.memo-cancel-btn{background:#fff;border-color:#d1d5db;color:#6b7280}.memo-cancel-btn:hover:not(:disabled){background:#f3f4f6}.memo-cancel-btn:disabled{opacity:.6;cursor:not-allowed}.memo-delete-btn{background:#fef2f2;border-color:#fecaca;color:#dc2626;padding:.375rem .5rem}.memo-delete-btn:hover:not(:disabled){background:#fee2e2;border-color:#f87171}.memo-delete-btn:disabled{opacity:.6;cursor:not-allowed}.memo-error{padding:.5rem .75rem;background:#fef2f2;border:1px solid #fecaca;border-radius:6px;color:#dc2626;font-size:.875rem;margin-bottom:.75rem}.memo-textarea{width:100%;min-height:100px;padding:.75rem;border:1px solid #d1d5db;border-radius:6px;font-size:.875rem;font-family:inherit;line-height:1.6;resize:vertical;transition:border-color .2s,box-shadow .2s}.memo-textarea:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.memo-textarea:disabled{background:#f9fafb;cursor:not-allowed}.memo-content{padding:.75rem;background:#f9fafb;border:1px solid #e5e7eb;border-radius:6px;min-height:50px}.memo-text{margin:0;font-size:.875rem;line-height:1.6;white-space:pre-wrap;word-break:break-word;color:#1f2937;font-family:inherit}.memo-empty{color:#9ca3af;font-size:.875rem;font-style:italic}.memo-edit-area{display:flex;flex-direction:column;gap:.75rem}.memo-image-upload{display:flex;align-items:center;gap:.75rem}.image-upload-btn{display:inline-flex;align-items:center;gap:.375rem;padding:.5rem .875rem;background:#f3f4f6;border:1px dashed #9ca3af;border-radius:6px;font-size:.8125rem;color:#374151;cursor:pointer;transition:all .2s}.image-upload-btn:hover{background:#e5e7eb;border-color:#6b7280}.upload-hint{font-size:.75rem;color:#9ca3af}.memo-images-preview{display:flex;flex-wrap:wrap;gap:.75rem}.image-preview-item{position:relative;width:120px;height:120px;border-radius:8px;overflow:hidden;border:1px solid #e5e7eb;box-shadow:0 2px 4px #0000001a}.image-preview-item img{width:100%;height:100%;object-fit:cover}.image-remove-btn{position:absolute;top:4px;right:4px;width:24px;height:24px;background:#0009;color:#fff;border:none;border-radius:50%;font-size:16px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .2s}.image-remove-btn:hover{background:#dc2626cc}.image-remove-btn:disabled{opacity:.5;cursor:not-allowed}.memo-images-display{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:.75rem}.image-display-item{width:150px;height:150px;border-radius:8px;overflow:hidden;border:1px solid #e5e7eb;box-shadow:0 2px 4px #0000001a;cursor:pointer;transition:transform .2s,box-shadow .2s}.image-display-item:hover{transform:scale(1.02);box-shadow:0 4px 8px #00000026}.image-display-item img{width:100%;height:100%;object-fit:cover}.badge.grade-a{background-color:#dcfce7;color:#15803d;font-weight:700}.badge.grade-b{background-color:#dbeafe;color:#1d4ed8;font-weight:700}.badge.grade-c{background-color:#fef3c7;color:#b45309;font-weight:700}.badge.grade-d{background-color:#ffedd5;color:#c2410c;font-weight:700}.badge.grade-f{background-color:#fee2e2;color:#dc2626;font-weight:700}.grade-details-section{background-color:#f8fafc;border-radius:8px;padding:12px;margin-bottom:12px}.grade-details-section strong{color:#374151}.checklist-item .checklist-level{font-size:.75em;padding:2px 6px;border-radius:4px;margin-left:8px}.checklist-item .checklist-level.critical{background-color:#fee2e2;color:#dc2626}.checklist-item .checklist-level.major{background-color:#fef3c7;color:#b45309}.checklist-item .checklist-level.minor{background-color:#e0f2fe;color:#0369a1}.domain-badge{font-size:.85em;color:#6b7280;margin-left:8px}.stats-container{display:flex;flex-direction:column;gap:2rem}.stats-section{background:#fff;border-radius:8px;padding:1.5rem;box-shadow:0 2px 8px #0000001a}.stats-section h2{margin-bottom:1rem;color:#667eea}.overall-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:1rem;margin-bottom:2rem}.stat-card{background:#fff;padding:1.5rem;border-radius:8px;box-shadow:0 2px 8px #0000001a;text-align:center;border-left:4px solid #667eea}.stat-card.success{border-left-color:#4caf50}.stat-card.error{border-left-color:#f44336}.stat-card.cost{border-left-color:#ff9800}.stat-card h3{font-size:2rem;margin-bottom:.5rem;color:#333}.stat-card p{color:#666;font-size:.9rem}.stats-table{width:100%;background:#fff;border-radius:8px;overflow:hidden;box-shadow:0 2px 8px #0000001a;border-collapse:collapse}.stats-table th{background:#f8f9fa;padding:1rem;text-align:left;font-weight:600;border-bottom:2px solid #e0e0e0}.stats-table td{padding:.875rem 1rem;border-bottom:1px solid #f0f0f0}.stats-table tbody tr:hover{background:#f9f9f9}.success-text{color:#28a745;font-weight:600}.error-text{color:#dc3545;font-weight:600}.cost-cell{color:#667eea;font-weight:600}@media(max-width:768px){.overall-stats{grid-template-columns:repeat(2,1fr)}.stat-card h3{font-size:1.5rem}.stats-table{font-size:.875rem}.stats-table th,.stats-table td{padding:.5rem}}.modal-overlay{position:fixed;inset:0;background:#0009;display:flex;align-items:center;justify-content:center;z-index:1000;padding:2rem}.modal-content{background:#fff;border-radius:12px;width:100%;max-width:900px;max-height:90vh;display:flex;flex-direction:column;box-shadow:0 20px 60px #0000004d}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:1rem 1.5rem;border-bottom:1px solid #e5e7eb;background:#f8f9fa;border-radius:12px 12px 0 0}.modal-header h3{margin:0;color:#1f2937}.modal-close{background:none;border:none;font-size:1.5rem;cursor:pointer;color:#6b7280;padding:.25rem .5rem;border-radius:4px;transition:all .2s}.modal-close:hover{background:#e5e7eb;color:#1f2937}.modal-body{padding:1.5rem;overflow-y:auto;flex:1}.modal-info{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-bottom:1.5rem;padding:1rem;background:#f3f4f6;border-radius:8px}.modal-info div{font-size:.9rem}.modal-loading{text-align:center;padding:2rem;color:#6b7280;font-size:1.1rem}.modal-error{padding:1rem;background:#fef2f2;color:#dc2626;border-radius:8px;border-left:4px solid #dc2626}.modal-data h4{margin-bottom:1rem;color:#1f2937}.collapsible-json{display:flex;flex-direction:column;gap:.5rem}.collapsible-json>details{background:#f8f9fa;border-radius:6px;border:1px solid #e5e7eb;overflow:hidden}.json-field-summary{padding:.75rem 1rem;cursor:pointer;display:flex;align-items:center;gap:.75rem;background:#f1f5f9;-webkit-user-select:none;user-select:none;font-weight:500}.json-field-summary:hover{background:#e2e8f0}.json-key{color:#7c3aed;font-family:Courier New,monospace;font-weight:600}.json-length{font-size:.75rem;color:#6b7280;background:#e5e7eb;padding:.125rem .5rem;border-radius:9999px;margin-left:auto}.json-value-container{padding:1rem;background:#fff;border-top:1px solid #e5e7eb;max-height:400px;overflow-y:auto}.json-value-text{white-space:pre-wrap;word-break:break-word;font-family:Courier New,monospace;font-size:.875rem;line-height:1.6;color:#374151}.json-value-pre{white-space:pre-wrap;word-break:break-word;font-family:Courier New,monospace;font-size:.8rem;line-height:1.5;margin:0;color:#1f2937;background:transparent}@media(max-width:768px){.modal-overlay{padding:1rem}.modal-info{grid-template-columns:1fr}}
