: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}.app-body{flex:1;display:flex;min-height:0}.sidebar{width:220px;flex-shrink:0;background:#fff;border-right:1px solid #e0e0e0;box-shadow:2px 0 4px #0000000a;display:flex;flex-direction:column;padding:.75rem 0;overflow-y:auto}.tab{display:block;width:100%;padding:.85rem 1.25rem;background:none;border:none;border-left:3px solid transparent;text-align:left;font-size:.95rem;color:#4b5563;cursor:pointer;transition:background .15s,color .15s,border-color .15s}.tab:hover{background:#f5f3ff;color:#1f2937}.tab.active{color:#667eea;border-left-color:#667eea;font-weight:600;background:#f0eefc}.content{flex:1;padding:2rem;overflow-y:auto;min-width:0}.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}.app-body{flex-direction:column}.sidebar{width:100%;flex-direction:row;overflow-x:auto;border-right:none;border-bottom:1px solid #e0e0e0;padding:0}.tab{flex:1 0 auto;border-left:none;border-bottom:3px solid transparent;text-align:center}.tab.active{border-left-color:transparent;border-bottom-color:#667eea}.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-options{display:flex;flex-direction:column;gap:.75rem;padding:.75rem 1rem;background:#fffbeb;border:1px solid #fcd34d;border-radius:8px;margin-bottom:.75rem}.admission-option-group{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}.admission-option-label{color:#92400e;font-weight:600;font-size:.875rem;min-width:56px}.admission-radio-group{display:flex;gap:1rem;flex-wrap:wrap}.admission-radio{display:inline-flex;align-items:center;gap:.375rem;cursor:pointer;color:#78350f;font-size:.875rem}.admission-radio input[type=radio]{cursor:pointer;accent-color:#d97706}.admission-radio input[type=radio]:disabled{cursor:not-allowed}.admission-universities{display:flex;flex-direction:column;gap:.5rem;padding:.75rem 1rem;background:#fffbeb;border:1px solid #fcd34d;border-radius:8px;margin-bottom:.75rem}.admission-univ-quick{display:flex;flex-wrap:wrap;gap:.375rem}.admission-univ-quick-btn{padding:.25rem .625rem;border:1px solid #fcd34d;background:#fff;color:#78350f;border-radius:999px;cursor:pointer;font-size:.75rem;font-weight:500;transition:all .15s ease}.admission-univ-quick-btn:hover:not(:disabled){background:#fef3c7;border-color:#d97706}.admission-univ-quick-btn.selected{background:#d97706;border-color:#b45309;color:#fff}.admission-univ-quick-btn:disabled{opacity:.4;cursor:not-allowed}.admission-univ-chips{display:flex;flex-wrap:wrap;gap:.375rem}.admission-univ-chip{display:inline-flex;align-items:center;gap:.25rem;padding:.25rem .625rem;background:#d97706;color:#fff;border-radius:999px;font-size:.8125rem;font-weight:500}.admission-univ-chip-remove{display:inline-flex;align-items:center;justify-content:center;width:1rem;height:1rem;border:none;background:#ffffff4d;color:#fff;border-radius:50%;cursor:pointer;font-size:.75rem;line-height:1;padding:0}.admission-univ-chip-remove:hover{background:#ffffff80}.admission-univ-search-wrapper{position:relative}.admission-univ-search{width:100%;padding:.5rem .75rem;border:1px solid #fcd34d;border-radius:6px;font-size:.875rem;background:#fff;color:#78350f;outline:none;box-sizing:border-box}.admission-univ-search:focus{border-color:#d97706;box-shadow:0 0 0 2px #d9770626}.admission-univ-search::placeholder{color:#b45309;opacity:.5}.admission-univ-dropdown{position:absolute;top:100%;left:0;right:0;max-height:200px;overflow-y:auto;margin:0;padding:0;list-style:none;background:#fff;border:1px solid #fcd34d;border-top:none;border-radius:0 0 6px 6px;box-shadow:0 4px 12px #0000001a;z-index:10}.admission-univ-dropdown-item{padding:.5rem .75rem;font-size:.8125rem;color:#78350f;cursor:pointer}.admission-univ-dropdown-item:hover{background:#fef3c7}.admission-result-meta{margin-top:.75rem;padding-top:.75rem;border-top:1px dashed #fcd34d;display:flex;flex-direction:column;gap:.25rem}.admission-result-meta-row{display:flex;gap:.5rem;font-size:.875rem;color:#78350f}.admission-result-meta-label{font-weight:600;min-width:64px;color:#92400e}.admission-result-meta-value{color:#78350f}.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}.description-input{margin-bottom:.5rem}.description-input label{font-size:.875rem;font-weight:600;margin-bottom:.25rem;display:block;color:#374151}.description-input input{width:100%;padding:.5rem .75rem;border:1px solid #d1d5db;border-radius:.5rem;font-size:.875rem;background:#f9fafb;transition:border-color .2s;box-sizing:border-box}.description-input input:focus{outline:none;border-color:#6366f1;background:#fff;box-shadow:0 0 0 3px #6366f11a}.run-id-section{display:flex;align-items:center;gap:8px;background:#f3f4f6;border:1px solid #d1d5db;border-radius:.75rem;padding:.5rem 1rem}.run-id-label{font-size:.85rem;font-weight:600;color:#374151}.run-id-value{font-family:Consolas,Monaco,monospace;font-size:.85rem;color:#6366f1;background:#eef2ff;border:1px solid #c7d2fe;border-radius:4px;padding:2px 8px}.description-section{background:#fef3c7;border:1px solid #fbbf24;border-radius:.75rem;padding:.75rem 1rem}.description-section h4{color:#92400e;margin:0 0 .25rem;font-size:.875rem}.description-content{color:#78350f;font-size:.875rem}.model-token-section{display:flex;gap:1.5rem;flex-wrap:wrap}.model-info-block,.token-usage-block{flex:1;min-width:200px;background:#f0fdf4;border:1px solid #86efac;border-radius:.75rem;padding:.75rem 1rem}.token-usage-block{background:#eff6ff;border-color:#93c5fd}.model-info-block h4,.token-usage-block h4{margin:0 0 .5rem;font-size:.875rem;color:#374151}.model-info-grid,.token-usage-grid{display:flex;flex-wrap:wrap;gap:.5rem}.model-info-item,.token-item{display:flex;align-items:center;gap:.375rem;background:#fff;padding:.25rem .625rem;border-radius:.375rem;font-size:.8125rem;border:1px solid #e5e7eb}.model-label,.token-label{color:#6b7280;font-weight:600;font-size:.75rem}.model-value,.token-value{color:#111827;font-family:JetBrains Mono,Fira Code,monospace;font-size:.8125rem}.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}.table-scroll-container{width:100%;overflow-x:auto;border-radius:8px;box-shadow:0 2px 8px #0000001a}.requests-table{width:100%;background:#fff;border-collapse:collapse}.requests-table th{background:#f8f9fa;padding:.5rem .6rem;text-align:left;font-weight:600;font-size:.75rem;border-bottom:2px solid #e0e0e0;white-space:nowrap}.requests-table td{padding:.4rem .6rem;border-bottom:1px solid #f0f0f0;font-size:.78rem;vertical-align:top}.requests-table .clickable-row{cursor:pointer;transition:background-color .15s}.requests-table .clickable-row:hover{background:#f5f7ff}.col-id{white-space:nowrap}.col-type{white-space:nowrap;text-align:center}.col-time{white-space:nowrap;font-size:.72rem;color:#6b7280}.col-query{min-width:200px}.col-cat{white-space:nowrap}.col-run{min-width:120px;max-width:200px;font-size:.72rem}.cell-run-id{font-family:Consolas,Monaco,monospace;color:#6366f1;word-break:break-all;line-height:1.3}.cell-desc{color:#92400e;margin-top:2px}.col-model{min-width:140px;font-size:.72rem;font-family:Consolas,Monaco,monospace;color:#374151}.cell-model-list{line-height:1.4}.cell-model-list div{white-space:nowrap}.col-status{white-space:nowrap;text-align:center}.col-stats{white-space:nowrap;font-size:.72rem;text-align:right}.cell-sub{color:#9ca3af;font-size:.68rem}.col-action{text-align:center}.clickable{cursor:pointer;transition:background-color .2s}.clickable:hover{background-color:#f5f5f5!important}.query-cell{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-time{min-width:60px;text-align:right;color:#059669;font-size:.8125rem}.stage-cost{min-width:70px;text-align:right;color:#667eea;font-weight:500}.ttft-badge{margin-left:.75rem;padding:.125rem .5rem;background:#ecfdf5;color:#059669;border-radius:3px;font-size:.75rem;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}.citation-id-badge{margin-left:.5rem;padding:.125rem .5rem;background:#e0f2fe;color:#0369a1;border-radius:3px;font-size:.75rem;font-family:monospace}.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}.doc-citation-physical{color:#6b7280;font-size:.85em}.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}.model-info-in-grid{grid-column:1 / -1;display:flex;align-items:center;gap:8px;flex-wrap:wrap}.model-grid-badges{display:inline-flex;flex-wrap:wrap;gap:6px}.description-model-section{display:flex;flex-direction:column;gap:12px}.detail-description{background:#fffbeb;border:1px solid #fde68a;border-radius:8px;padding:12px 16px}.detail-description h3{margin:0 0 6px;font-size:.9rem;color:#92400e}.description-text{font-size:.95rem;color:#78350f;line-height:1.5}.detail-model-info{background:#f0fdf4;border:1px solid #bbf7d0;border-radius:8px;padding:12px 16px}.detail-model-info h3{margin:0 0 8px;font-size:.9rem;color:#166534}.model-badges{display:flex;flex-wrap:wrap;gap:8px}.model-badge{display:inline-flex;align-items:center;border-radius:6px;overflow:hidden;font-size:.85rem;border:1px solid #86efac}.model-badge-label{background:#dcfce7;color:#166534;padding:4px 8px;font-weight:600}.model-badge-value{background:#fff;color:#374151;padding:4px 10px;font-family:Consolas,Monaco,monospace}.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}}.unified-tab{padding:20px;max-width:1100px;margin:0 auto}.unified-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.unified-header h2{margin:0 0 4px}.unified-new-chat{flex-shrink:0;padding:6px 12px;background:#fff;border:1px solid #d0d0d0;border-radius:6px;cursor:pointer;font-size:13px;font-family:inherit;align-self:center}.unified-new-chat:hover:not(:disabled){background:#f0f6ff;border-color:#b8d4f0;color:#1e5aa7}.unified-new-chat:disabled{opacity:.4;cursor:not-allowed}.unified-desc{color:#666;font-size:13px;margin:0 0 16px}.unified-desc code{background:#f4f4f4;padding:2px 6px;border-radius:3px;font-size:12px}.unified-examples{background:#fafbfc;border:1px solid #e0e0e0;border-radius:8px;padding:12px 14px;margin-bottom:16px;display:flex;flex-direction:column;gap:8px}.unified-examples-label{font-size:12px;color:#666;font-weight:500;margin-bottom:4px}.unified-example-group{display:flex;align-items:flex-start;gap:10px}.unified-example-group-name{flex-shrink:0;width:110px;font-size:12px;color:#4a90e2;font-weight:600;padding-top:6px}.unified-example-chips{display:flex;flex-wrap:wrap;gap:6px;flex:1}.unified-example-chip{background:#fff;border:1px solid #d0d0d0;border-radius:14px;padding:5px 12px;font-size:12px;color:#333;cursor:pointer;font-family:inherit;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}.unified-example-chip:hover:not(:disabled){background:#eef4ff;border-color:#b8d4f0;color:#1e5aa7}.unified-example-chip:disabled{opacity:.5;cursor:not-allowed}.unified-form{display:flex;flex-direction:column;gap:8px;margin-bottom:16px}.unified-input{width:100%;padding:10px 12px;font-size:14px;border:1px solid #ccc;border-radius:6px;resize:vertical;font-family:inherit;box-sizing:border-box}.unified-input:focus{outline:none;border-color:#4a90e2;box-shadow:0 0 0 3px #4a90e226}.unified-form-actions{display:flex;justify-content:space-between;align-items:center}.unified-hint{font-size:12px;color:#888}.unified-submit{padding:8px 20px;background:#4a90e2;color:#fff;border:none;border-radius:6px;cursor:pointer;font-size:14px;font-weight:500}.unified-submit:hover:not(:disabled){background:#3a7bc8}.unified-submit:disabled{background:#b0b0b0;cursor:not-allowed}.unified-error{padding:12px 16px;background:#ffe0e0;border:1px solid #f5a0a0;border-radius:6px;color:#b00020;margin-bottom:16px}.unified-loading{padding:12px 16px;background:#f0f6ff;border:1px solid #c7dcf6;border-radius:6px;color:#2a5a9a;margin-bottom:16px}.unified-result{display:flex;flex-direction:column;gap:20px}.unified-section{background:#fff;border:1px solid #e0e0e0;border-radius:8px;padding:16px}.unified-section h3{margin:0 0 12px;font-size:15px;color:#333}.unified-answer{line-height:1.6;font-size:14px;word-break:break-word}.unified-answer h1,.unified-answer h2,.unified-answer h3,.unified-answer h4{margin:14px 0 8px;font-weight:600}.unified-answer h1{font-size:18px}.unified-answer h2{font-size:16px}.unified-answer h3{font-size:15px}.unified-answer h4{font-size:14px}.unified-answer p{margin:8px 0}.unified-answer ul,.unified-answer ol{margin:8px 0;padding-left:22px}.unified-answer li{margin:3px 0}.unified-answer code{background:#f4f4f4;padding:1px 5px;border-radius:3px;font-size:12px;font-family:Menlo,Consolas,monospace}.unified-answer pre{background:#f4f4f4;padding:10px 12px;border-radius:4px;overflow-x:auto;margin:8px 0}.unified-answer pre code{background:transparent;padding:0}.unified-answer blockquote{margin:8px 0;padding-left:12px;border-left:3px solid #d0d0d0;color:#555}.unified-answer table{border-collapse:collapse;margin:10px 0;font-size:13px}.unified-answer th,.unified-answer td{border:1px solid #d0d0d0;padding:6px 10px;text-align:left}.unified-answer th{background:#f8f9fa;font-weight:600}.unified-answer hr{margin:14px 0;border:0;border-top:1px solid #e0e0e0}.unified-answer a{color:#4a90e2;text-decoration:none}.unified-answer a:hover{text-decoration:underline}.unified-cursor{display:inline-block;margin-left:2px;animation:unified-blink 1s steps(2,start) infinite;color:#4a90e2;font-weight:700}@keyframes unified-blink{to{visibility:hidden}}.unified-doc-list{list-style:none;padding:0;margin:0}.unified-doc-list li{margin-bottom:6px}.unified-doc-link{width:100%;text-align:left;background:#f8f9fa;border:1px solid #e0e0e0;border-radius:4px;padding:8px 12px;cursor:pointer;font-size:13px;display:flex;gap:12px;align-items:center}.unified-doc-link:hover{background:#eef4ff;border-color:#b8d4f0}.unified-doc-index{color:#4a90e2;font-family:Menlo,Consolas,monospace;font-size:12px;white-space:nowrap}.unified-doc-id{color:#555;font-family:Menlo,Consolas,monospace;font-size:12px;word-break:break-all}.unified-meta .unified-meta-row{display:flex;flex-wrap:wrap;gap:24px;font-size:13px;color:#555;margin-bottom:6px}.unified-meta .unified-meta-row:last-child{margin-bottom:0}.unified-meta code{background:#f4f4f4;padding:2px 6px;border-radius:3px;font-size:12px;color:#333}.unified-profile{background:#fefdf6;border:1px solid #efe4b9;border-radius:8px;padding:10px 14px;margin:12px 0 16px;display:flex;flex-direction:column;gap:8px}.unified-profile-row{display:flex;align-items:center;gap:10px;font-size:13px}.unified-profile-label{font-weight:600;color:#6b5b00;flex-shrink:0}.unified-profile-active{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.unified-profile-tags{display:inline-flex;gap:4px}.unified-profile-tag{background:#fff7c2;color:#6b5b00;font-size:11px;padding:2px 7px;border-radius:10px;border:1px solid #efe4b9}.unified-profile-clear{margin-left:4px;background:transparent;border:1px solid #d0c89c;color:#6b5b00;font-size:11px;padding:2px 8px;border-radius:10px;cursor:pointer;font-family:inherit}.unified-profile-clear:hover:not(:disabled){background:#fff7c2}.unified-profile-none{color:#888;font-style:italic}.unified-profile-presets{display:flex;flex-wrap:wrap;gap:6px}.unified-profile-chip{background:#fff;border:1px solid #d0c89c;border-radius:14px;padding:5px 12px;font-size:12px;color:#555;cursor:pointer;font-family:inherit;white-space:nowrap}.unified-profile-chip:hover:not(:disabled){background:#fff7c2;color:#6b5b00}.unified-profile-chip.active{background:#ffea7a;border-color:#c9b850;color:#4a3e00;font-weight:600}.unified-profile-chip:disabled{opacity:.5;cursor:not-allowed}.unified-profile-custom-toggle{border-style:dashed}.unified-profile-form{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end;padding:10px;background:#fff;border:1px solid #efe4b9;border-radius:6px;margin-top:4px}.unified-profile-form label{display:flex;flex-direction:column;gap:4px;font-size:12px;color:#555}.unified-profile-form input,.unified-profile-form select{padding:5px 8px;font-size:13px;border:1px solid #ccc;border-radius:4px;font-family:inherit;min-width:90px}.unified-profile-apply{padding:6px 16px;background:#6b5b00;color:#fff;border:none;border-radius:4px;cursor:pointer;font-size:13px;font-weight:500}.unified-profile-apply:hover{background:#4a3e00}.unified-chat-list{display:flex;flex-direction:column;gap:14px;margin:16px 0;padding:4px 0;min-height:50px}.unified-chat-msg{display:flex}.unified-msg-user{justify-content:flex-end}.unified-msg-assistant{justify-content:flex-start}.unified-msg-bubble{max-width:80%;padding:12px 14px;border-radius:10px;font-size:14px;line-height:1.55;word-break:break-word}.unified-msg-bubble-user{background:#4a90e2;color:#fff;border-top-right-radius:2px;white-space:pre-wrap}.unified-msg-bubble-assistant{background:#f5f7fa;border:1px solid #e0e6ee;color:#222;border-top-left-radius:2px}.unified-msg-placeholder{color:#888;font-style:italic}.unified-msg-error{background:#ffe0e0;border:1px solid #f5a0a0;border-radius:6px;padding:8px 10px;color:#b00020;font-size:13px}.unified-msg-details{margin-top:10px;padding-top:8px;border-top:1px dashed #d0d8e0}.unified-msg-details summary{cursor:pointer;font-size:12px;color:#555;font-weight:500;-webkit-user-select:none;user-select:none;padding:2px 0}.unified-msg-details summary:hover{color:#1e5aa7}.unified-msg-details>.unified-doc-list,.unified-msg-details>.unified-meta-row{margin-top:8px}.megastudy-tab{padding:20px;max-width:1100px;margin:0 auto}.megastudy-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}.megastudy-header h2{margin:0 0 4px}.megastudy-desc{color:#666;font-size:13px;margin:0}.megastudy-desc code{background:#f4f4f4;padding:2px 6px;border-radius:3px;font-size:12px}.megastudy-reset{flex-shrink:0;padding:6px 12px;background:#fff;border:1px solid #d0d0d0;border-radius:6px;cursor:pointer;font-size:13px;font-family:inherit;align-self:center}.megastudy-reset:hover:not(:disabled){background:#f0f6ff;border-color:#b8d4f0;color:#1e5aa7}.megastudy-reset:disabled{opacity:.4;cursor:not-allowed}.megastudy-mode-toggle{display:flex;gap:8px;margin-bottom:16px}.megastudy-mode-btn{flex:1;display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:10px 14px;background:#fff;border:1px solid #d0d0d0;border-radius:8px;cursor:pointer;font-family:inherit;font-size:14px;font-weight:500;transition:all .15s}.megastudy-mode-btn:hover:not(:disabled){background:#f7faff;border-color:#b8d4f0}.megastudy-mode-btn.active{background:#e8f1ff;border-color:#1e5aa7;color:#1e5aa7}.megastudy-mode-btn:disabled{opacity:.5;cursor:not-allowed}.megastudy-mode-endpoint{font-size:11px;color:#888;font-family:SF Mono,Monaco,Consolas,monospace;font-weight:400}.megastudy-mode-btn.active .megastudy-mode-endpoint{color:#4a7bbf}.megastudy-examples{background:#fafafa;border:1px solid #ececec;border-radius:8px;padding:12px 16px;margin-bottom:12px}.megastudy-examples-label{font-size:12px;color:#666;margin-bottom:8px}.megastudy-example-group{display:flex;align-items:flex-start;gap:12px;padding:6px 0}.megastudy-example-group+.megastudy-example-group{border-top:1px dashed #e0e0e0}.megastudy-example-group-name{flex-shrink:0;width:100px;font-size:12px;color:#555;font-weight:500;padding-top:6px}.megastudy-example-chips{display:flex;flex-wrap:wrap;gap:6px;flex:1}.megastudy-example-chip{padding:5px 10px;background:#fff;border:1px solid #d8d8d8;border-radius:14px;font-size:12px;cursor:pointer;font-family:inherit;color:#333;white-space:nowrap;max-width:320px;overflow:hidden;text-overflow:ellipsis}.megastudy-example-chip:hover:not(:disabled){background:#e8f1ff;border-color:#1e5aa7;color:#1e5aa7}.megastudy-example-chip:disabled{opacity:.5;cursor:not-allowed}.megastudy-form{display:flex;flex-direction:column;gap:8px;margin-bottom:16px}.megastudy-input{width:100%;padding:10px 12px;font-family:inherit;font-size:14px;border:1px solid #ccc;border-radius:6px;resize:vertical;box-sizing:border-box}.megastudy-input:focus{outline:none;border-color:#1e5aa7}.megastudy-form-actions{display:flex;align-items:center;justify-content:space-between}.megastudy-hint{font-size:12px;color:#888}.megastudy-submit{padding:8px 18px;background:#1e5aa7;border:none;border-radius:6px;color:#fff;font-family:inherit;font-size:14px;font-weight:500;cursor:pointer}.megastudy-submit:hover:not(:disabled){background:#174a8c}.megastudy-submit:disabled{opacity:.5;cursor:not-allowed}.megastudy-error{padding:12px 16px;background:#fff5f5;border:1px solid #f5c0c0;border-radius:6px;color:#b03030;font-size:14px;margin-bottom:12px}.megastudy-result{display:flex;flex-direction:column;gap:16px}.megastudy-section-title{margin:0 0 8px;font-size:15px;color:#333}.megastudy-answer-section{background:#f7faff;border:1px solid #d4e3f5;border-radius:8px;padding:14px 18px}.megastudy-answer-body{font-size:14px;line-height:1.6;color:#222}.megastudy-answer-body p{margin:0 0 10px}.megastudy-answer-body ul,.megastudy-answer-body ol{margin:8px 0;padding-left:24px}.megastudy-answer-body code{background:#eef3fa;padding:1px 6px;border-radius:3px;font-size:12px}.megastudy-docs-section{background:#fff;border:1px solid #ececec;border-radius:8px;padding:12px 16px}.megastudy-doc-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:4px}.megastudy-doc-list li{display:block}.megastudy-doc-link{display:inline-flex;align-items:center;gap:8px;padding:4px 8px;background:transparent;border:1px solid transparent;border-radius:4px;font-family:SF Mono,Monaco,Consolas,monospace;font-size:12px;cursor:pointer;text-align:left;color:#333;width:100%}.megastudy-doc-link:hover{background:#f0f6ff;border-color:#b8d4f0;color:#1e5aa7}.megastudy-doc-index{color:#1e5aa7;font-weight:500}.megastudy-doc-id{color:#666;word-break:break-all}.megastudy-empty{padding:12px 16px;background:#fafafa;border:1px solid #ececec;border-radius:6px;color:#888;font-size:13px;text-align:center}.megastudy-meta{background:#fafafa;border:1px solid #ececec;border-radius:6px;padding:8px 12px}.megastudy-meta summary{cursor:pointer;font-size:13px;color:#555}.megastudy-meta-row{display:flex;flex-wrap:wrap;gap:16px;margin-top:8px;font-size:12px;color:#555}.megastudy-meta-row code{background:#eef3fa;padding:1px 6px;border-radius:3px;font-size:11px}.megastudy-raw-json{background:#fafafa;border:1px solid #ececec;border-radius:8px;padding:10px 14px}.megastudy-raw-json>summary{cursor:pointer;font-size:13px;font-weight:500;color:#555}.megastudy-raw-json-pre{margin:8px 0 0;padding:10px 12px;background:#1e1e1e;color:#d4d4d4;border-radius:4px;font-family:SF Mono,Monaco,Consolas,monospace;font-size:11px;overflow-x:auto;white-space:pre-wrap;word-break:break-all;line-height:1.4;max-height:480px;overflow-y:auto}.megastudy-stats{display:flex;flex-wrap:wrap;gap:14px;padding:10px 14px;background:#f7faff;border:1px solid #d4e3f5;border-radius:6px;font-size:13px;color:#333}.megastudy-stat{display:inline-flex;align-items:center;gap:4px}.megastudy-stat strong{color:#1e5aa7}.megastudy-stat-cost strong{color:#b06a00}.megastudy-stat-total strong{color:#1e5aa7;font-weight:600}.megastudy-log-link-row{display:flex;justify-content:flex-start}.megastudy-log-link{padding:6px 14px;background:#fff;border:1px solid #b8d4f0;border-radius:6px;color:#1e5aa7;font-family:inherit;font-size:13px;font-weight:500;cursor:pointer}.megastudy-log-link:hover{background:#e8f1ff;border-color:#1e5aa7}.megastudy-streaming-placeholder{display:inline-block;padding:10px 14px;font-size:14px;color:#555;background:#fafafa;border:1px dashed #d0d0d0;border-radius:6px;font-style:italic}.megastudy-cursor{display:inline-block;margin-left:2px;color:#1e5aa7;animation:megastudy-blink 1s step-end infinite;font-weight:700}@keyframes megastudy-blink{0%,to{opacity:1}50%{opacity:0}}.gather-tab{position:relative;width:100%;height:100%;min-height:calc(100vh - 130px);overflow:hidden;background:#1f2937}.phaser-container{position:absolute;inset:0;width:100%;height:100%}.phaser-container canvas{display:block}.gather-bubble-overlay{position:absolute;transform:translate(-50%,-100%);z-index:10;max-width:min(560px,80%);pointer-events:auto}.gather-bubble-content{position:relative;background:#fff;border:2px solid #1f2937;border-radius:12px;padding:12px 14px 10px;box-shadow:0 4px 16px #00000040;font-size:13px;line-height:1.55;color:#1f2937;min-width:200px}.gather-md-compact{max-height:110px;overflow:hidden;position:relative}.gather-md-compact.has-fade:after{content:"";position:absolute;bottom:0;left:0;right:0;height:32px;background:linear-gradient(to bottom,#fff0,#fff);pointer-events:none}.gather-bubble-actions{display:flex;gap:6px;align-items:center;margin-top:8px;justify-content:flex-end}.gather-bubble-expand-btn{flex:1;padding:5px 10px;background:#2563eb;color:#fff;border:none;border-radius:14px;font-size:11px;font-weight:600;cursor:pointer;white-space:nowrap}.gather-bubble-expand-btn:hover{background:#1d4ed8}.gather-bubble-expand-btn.alt{background:#f3f4f6;color:#1f2937;border:1px solid #d1d5db}.gather-bubble-expand-btn.alt:hover{background:#e5e7eb}.gather-bubble-close-btn{width:24px;height:24px;padding:0;background:#f3f4f6;border:1px solid #d1d5db;border-radius:50%;cursor:pointer;font-size:11px;line-height:1;color:#4b5563;flex-shrink:0}.gather-bubble-close-btn:hover{background:#e5e7eb}.gather-bubble-modal{position:absolute;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:30;animation:gatherModalFadeIn .18s ease-out}@keyframes gatherModalFadeIn{0%{opacity:0}to{opacity:1}}.gather-bubble-modal-content{width:min(720px,88%);max-height:80vh;background:#fff;border:2px solid #1f2937;border-radius:14px;box-shadow:0 12px 40px #00000080;display:flex;flex-direction:column;overflow:hidden;animation:gatherModalSlide .22s ease-out}@keyframes gatherModalSlide{0%{transform:translateY(12px) scale(.98)}to{transform:translateY(0) scale(1)}}.gather-bubble-modal-header{padding:10px 14px;border-bottom:1px solid #e5e7eb;background:#f9fafb;display:flex;justify-content:space-between;align-items:center;font-size:13px;font-weight:600;color:#1f2937;gap:8px}.gather-bubble-modal-actions{display:flex;gap:6px;align-items:center}.gather-modal-secondary{background:#2563eb;color:#fff;border:none;border-radius:6px;padding:5px 10px;cursor:pointer;font-size:12px;font-weight:600;white-space:nowrap}.gather-modal-secondary:hover{background:#1d4ed8}.gather-modal-close{background:#fff;border:1px solid #d1d5db;border-radius:6px;padding:5px 10px;cursor:pointer;font-size:12px;color:#4b5563;white-space:nowrap}.gather-modal-close:hover{background:#f3f4f6;border-color:#9ca3af}.gather-md-modal{padding:18px 22px;overflow-y:auto;font-size:14px;line-height:1.7;color:#1f2937}.gather-bubble-modal-header small{color:#6b7280;font-weight:400;margin-left:4px}.gather-history-body{flex:1;overflow-y:auto;padding:14px 16px;background:#f9fafb;display:flex;flex-direction:column;gap:10px}.gather-history-empty{text-align:center;color:#9ca3af;font-size:13px;padding:32px 16px;line-height:1.6}.gather-history-msg{max-width:92%;padding:8px 12px;border-radius:12px;font-size:13px;line-height:1.55;word-break:break-word}.gather-history-msg.user{align-self:flex-end;background:#2563eb;color:#fff;border-bottom-right-radius:4px}.gather-history-msg.assistant{align-self:flex-start;background:#fff;border:1px solid #e5e7eb;color:#1f2937;border-bottom-left-radius:4px}.gather-history-msg.pending{border-style:dashed;border-color:#93c5fd}.gather-history-text{white-space:pre-wrap}.gather-history-status{font-style:italic;color:#6b7280}.gather-md-history{font-size:13px;line-height:1.55}.gather-bubble-arrow{position:absolute;bottom:-8px;left:50%;transform:translate(-50%);width:0;height:0;border-left:10px solid transparent;border-right:10px solid transparent;border-top:12px solid #1f2937;z-index:1}.gather-bubble-arrow:after{content:"";position:absolute;top:-14px;left:-8px;width:0;height:0;border-left:8px solid transparent;border-right:8px solid transparent;border-top:10px solid #ffffff}.gather-bubble-thinking{font-style:italic;color:#6b7280}.gather-bubble-close{position:absolute;top:6px;right:6px;width:22px;height:22px;padding:0;background:#f3f4f6;border:1px solid #d1d5db;border-radius:50%;cursor:pointer;font-size:11px;line-height:1;color:#4b5563}.gather-bubble-close:hover{background:#e5e7eb}.gather-md p{margin:.4em 0}.gather-md p:first-child{margin-top:0}.gather-md p:last-child{margin-bottom:0}.gather-md h1,.gather-md h2,.gather-md h3,.gather-md h4{margin:.6em 0 .3em;line-height:1.3}.gather-md h1{font-size:1.2em}.gather-md h2{font-size:1.12em}.gather-md h3{font-size:1.05em}.gather-md ul,.gather-md ol{margin:.4em 0;padding-left:1.4em}.gather-md li{margin:.15em 0}.gather-md code{background:#f3f4f6;padding:1px 5px;border-radius:4px;font-size:.92em}.gather-md pre{background:#1f2937;color:#f9fafb;padding:10px;border-radius:6px;overflow-x:auto}.gather-md pre code{background:transparent;color:inherit;padding:0}.gather-md blockquote{border-left:3px solid #d1d5db;margin:.4em 0;padding:.2em .8em;color:#4b5563}.gather-md a{color:#2563eb}.gather-md table{border-collapse:collapse;margin:.4em 0}.gather-md th,.gather-md td{border:1px solid #e5e7eb;padding:4px 8px;font-size:.95em}.gather-md hr{border:0;border-top:1px solid #e5e7eb;margin:.6em 0}.gather-input-overlay{position:absolute;bottom:96px;left:50%;transform:translate(-50%);display:flex;align-items:center;gap:8px;width:min(560px,90%);padding:8px 12px;background:#ffffffeb;border:2px solid #94a3b8;border-radius:12px;box-shadow:0 4px 16px #00000040;z-index:11;transition:border-color .15s,background .15s;animation:gatherInputFadeIn .2s ease-out}.gather-input-overlay.focused{background:#fff;border-color:#2563eb}@keyframes gatherInputFadeIn{0%{opacity:0;transform:translate(-50%,12px)}to{opacity:1;transform:translate(-50%)}}.gather-input-prefix{font-size:16px;width:22px;text-align:center;color:#6b7280}.gather-input-overlay input{flex:1;padding:8px 0;border:none;background:transparent;font-size:14px;outline:none}.gather-input-overlay input:disabled{color:#9ca3af}.gather-input-overlay input::placeholder{color:#9ca3af}.gather-input-overlay button{padding:6px 14px;background:#2563eb;color:#fff;border:none;border-radius:6px;font-size:13px;cursor:pointer;white-space:nowrap}.gather-input-overlay button:hover:not(:disabled){background:#1d4ed8}.gather-input-overlay button:disabled{opacity:.4;cursor:not-allowed}.gather-talk-prompt{position:absolute;bottom:168px;left:50%;transform:translate(-50%);padding:4px 12px;background:#2563ebeb;color:#fff;font-size:12px;border-radius:12px;box-shadow:0 2px 8px #0003;pointer-events:none;z-index:10;animation:gatherPromptPulse 1.6s ease-in-out infinite}@keyframes gatherPromptPulse{0%,to{opacity:.85}50%{opacity:1}}.gather-character-picker{position:absolute;top:12px;right:12px;display:flex;gap:4px;padding:4px;background:#1f2937d9;border-radius:10px;box-shadow:0 2px 8px #0000004d;z-index:6}.gather-character-picker button{padding:5px 10px;background:transparent;color:#d1d5db;border:1px solid transparent;border-radius:6px;font-size:12px;cursor:pointer;transition:background .15s}.gather-character-picker button:hover{background:#ffffff1a;color:#fff}.gather-character-picker button.active{background:#2563eb;color:#fff;border-color:#1d4ed8}.gather-controls-hint{position:absolute;top:12px;left:12px;padding:6px 10px;background:#1f2937d9;color:#f9fafb;font-size:12px;border-radius:6px;pointer-events:auto;z-index:5}.gather-history-info{color:#fde68a}.gather-reset-link{margin-left:8px;background:none;border:1px solid #fde68a;color:#fde68a;font-size:11px;padding:2px 8px;border-radius:10px;cursor:pointer}.gather-reset-link:hover{background:#fde68a33}.home-tab{max-width:1100px;margin:0 auto}.home-header{margin-bottom:28px}.home-header h1{font-size:1.75rem;margin:0 0 12px;color:#1f2937}.home-header p{font-size:.95rem;line-height:1.7;color:#4b5563;max-width:800px;margin:0}.home-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(380px,1fr));gap:16px}.home-card{display:flex;align-items:center;gap:16px;padding:18px 20px;background:#fff;border:1px solid #e5e7eb;border-radius:10px;text-align:left;cursor:pointer;transition:transform .12s,box-shadow .12s,border-color .12s;font-family:inherit}.home-card:hover{transform:translateY(-2px);border-color:#667eea;box-shadow:0 4px 12px #667eea26}.home-card-icon{font-size:2rem;line-height:1;flex-shrink:0}.home-card-body{flex:1;min-width:0}.home-card-title{font-size:1.05rem;margin:0 0 6px;color:#1f2937;font-weight:600}.home-card-desc{font-size:.85rem;line-height:1.55;color:#6b7280;margin:0}.home-card-arrow{font-size:1.5rem;color:#9ca3af;flex-shrink:0;transition:color .12s,transform .12s}.home-card:hover .home-card-arrow{color:#667eea;transform:translate(3px)}.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}}
