:root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light;color:#213547;background-color:#f4f4f9}body{margin:0;display:flex;flex-direction:column;min-width:320px;min-height:100vh}h1{font-size:2.5em;line-height:1.1;text-align:center;margin:20px 0}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}input,textarea,select{font-family:inherit;font-weight:400;letter-spacing:-.01em}*{box-sizing:border-box}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:#fff}.app-container{min-height:100vh;display:flex;flex-direction:column}::-webkit-scrollbar{width:10px;height:10px}::-webkit-scrollbar-track{background:#f1f1f1;border-radius:10px}::-webkit-scrollbar-thumb{background:#cbd5e0;border-radius:10px}::-webkit-scrollbar-thumb:hover{background:#a0aec0}.main-controls{background-color:#fff;padding:20px;border-radius:8px;box-shadow:0 2px 4px #0000001a;margin-bottom:20px;display:flex;align-items:center;gap:15px;flex-wrap:wrap}.main-controls label{font-weight:700}.main-controls input[type=number]{padding:8px;border:1px solid #ccc;border-radius:4px;width:60px}.prompt-container{flex-grow:1;border:1px solid #ccc;padding:8px;border-radius:4px;background-color:#f8f8f8;font-size:1.1em;line-height:1.5}.prompt-container span{cursor:pointer;padding:2px 3px;border-radius:3px;transition:background-color .2s}.prompt-container span.non-clickable{cursor:default;color:#888}.prompt-container span:not(.non-clickable):hover{background-color:#dbeafe}.prompt-container span.selected{background-color:#93c5fd;font-weight:700}.loader{display:inline-block;margin-left:15px;border:4px solid #f3f3f3;border-radius:50%;border-top:4px solid #3498db;width:24px;height:24px;animation:spin 2s linear infinite}.container{display:flex;justify-content:space-around;gap:20px;width:100%}.tree-view{background-color:#fff;border-radius:8px;box-shadow:0 2px 4px #0000001a;width:50%;padding:10px;box-sizing:border-box;display:flex;flex-direction:column}.tree-view h2{text-align:center;color:#333;margin-top:10px}.tree-container{flex:1;min-height:600px;position:relative}.tree-svg{border:1px solid #ddd;border-radius:4px;width:100%;height:600px;background-color:#fafafa;overflow:visible}.tree-svg .link{fill:none;stroke:#ccc;stroke-width:1.5px}.tree-svg .node circle{fill:#fff;stroke:#4682b4;stroke-width:2px}.tree-svg .node text{font:12px sans-serif}.intermediate-steps{margin-top:20px;border-top:1px solid #eee;padding-top:10px;font-family:monospace;font-size:12px}.intermediate-steps h4{margin-top:0;margin-bottom:5px;color:#555}.intermediate-steps pre{background-color:#f8f8f8;border:1px solid #ddd;padding:10px;border-radius:4px;max-height:200px;overflow:auto;white-space:pre-wrap;word-break:break-all}.ontology-menu{position:absolute;background-color:#fff;border:1px solid #ccc;box-shadow:0 4px 8px #0000001a;border-radius:5px;padding:10px;z-index:1000;min-width:200px}.ontology-list{max-height:400px;overflow-y:auto;margin-bottom:10px}.ontology-menu label{display:block;padding:5px 8px;cursor:pointer;border-radius:4px;-webkit-user-select:none;user-select:none}.ontology-menu label:hover{background-color:#f0f0f0}.ontology-menu button{width:100%;background-color:#22c55e;color:#fff}.ontology-menu button:hover{border-color:#16a34a}.app-container:has(.gt-page){height:100vh;min-height:0;overflow:hidden}@supports (height: 100dvh){.app-container:has(.gt-page){height:100dvh}}.gt-page{flex:1 1 auto;display:flex;flex-direction:column;width:100%;min-height:0;margin:0;padding:0;overflow:hidden;color:#1e293b}.gt-workspace{display:flex;align-items:stretch;width:100%;max-width:none;margin:0;flex:1 1 auto;min-height:0;height:auto;max-height:none;padding:1rem .5rem;box-sizing:border-box;gap:.35rem;overflow:hidden}.gt-workspace-viewport{flex:1;min-width:0;min-height:0;overflow:hidden;overflow:clip;overflow-anchor:none;overscroll-behavior:contain;scroll-behavior:auto;position:relative}.gt-workspace-track{display:flex;height:100%;align-items:stretch;transition:transform .38s cubic-bezier(.22,1,.36,1);will-change:transform}.gt-workspace-slide{flex-shrink:0;height:100%;min-height:0;overflow-y:auto;overflow-x:hidden;box-sizing:border-box;padding:0 .5rem}.gt-workspace-slide--split{display:flex;flex-direction:row;align-items:stretch;gap:.75rem;padding:0 .35rem;overflow:hidden}.gt-workspace-split-col{flex:1 1 50%;min-width:0;min-height:0;display:flex;flex-direction:column}.gt-workspace-split-col--saved{overflow:hidden}.gt-workspace-split-col--saved .saved-examples-panel{flex:1;min-height:0;margin-bottom:0;max-height:100%;overflow:hidden}.gt-workspace-split-col--saved .saved-examples-panel .examples-list.has-items,.gt-workspace-split-col--saved .saved-examples-panel .examples-list.is-empty{max-height:none}.gt-workspace-split-col--saved .saved-examples-panel .examples-list{flex:1;min-height:0}.gt-workspace-split-col--config{display:flex;flex-direction:column;min-height:0;overflow:hidden;border-left:1px solid #e2e8f0;padding-left:.75rem}.gt-page .gt-workspace-split-col--config .pipeline-config-panel{flex:1 1 auto;min-height:0;height:100%;overflow:hidden}.gt-workspace-arrow{flex:0 0 44px;align-self:center;display:flex;align-items:center;justify-content:center;padding:7px;border:1px solid #e2e8f0;border-radius:12px;background:#fff;color:#334155;cursor:pointer;transition:background .15s,color .15s,opacity .15s,border-color .15s}.gt-workspace-arrow:hover:not(:disabled){background:#f8fafc;color:#0f172a;border-color:#cbd5e1}.gt-workspace-arrow:disabled{opacity:.32;cursor:not-allowed}.gt-page .gt-workspace-split-col .saved-examples-panel,.gt-page .gt-workspace-split-col .pipeline-config-panel{max-width:none;width:100%;margin-left:0;margin-right:0}.gt-page .gt-workspace-slide--results .saved-examples-panel,.gt-page .gt-workspace-slide--results .pipeline-config-panel{max-width:none;width:100%}.gt-error{background:#fef2f2;border:1px solid #fecaca;border-radius:10px;padding:1rem 1.25rem;margin-top:1.5rem}.gt-error strong{display:block;color:#b91c1c;font-size:.9rem;margin-bottom:.4rem}.gt-error pre{margin:0;color:#7f1d1d;white-space:pre-wrap;font-size:.82rem;line-height:1.5}.gt-results-area{width:100%;max-width:none;margin:0;padding:0 0 3rem;box-sizing:border-box}.gt-workspace-slide--results{display:flex;flex-direction:column;min-height:0;overflow:hidden}.gt-workspace-slide--results .gt-results-area{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;overflow:hidden;padding-bottom:1.25rem}.gt-workspace-slide--results .gt-results-header{flex-shrink:0}.gt-results-error-banner{flex-shrink:0;display:flex;align-items:flex-start;gap:.55rem;padding:.55rem .8rem;margin:0 0 .75rem;border:1px solid #fecaca;border-radius:10px;background:#fff7f7;color:#7f1d1d;font-size:.82rem;line-height:1.35}.gt-results-error-banner strong{flex:0 0 auto;color:#b91c1c;font-weight:700}.gt-results-error-banner span{min-width:0;overflow-wrap:anywhere}.gt-results-primary-viz{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}.gt-results-primary-viz--hidden{display:none!important}.gt-results-merged-viz--solo{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;margin-top:0;padding-top:0;border-top:none}.gt-results-merged-viz--solo .gt-merged-results-area{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}.gt-results-merged-viz:not(.gt-results-merged-viz--solo){flex-shrink:0;margin-top:.65rem;padding-top:.65rem;border-top:1px solid #e2e8f0}.gt-results-header{display:block;padding:.4rem .85rem .5rem;background:#fff;border:1px solid #e2e8f0;border-radius:12px;margin-bottom:.75rem;width:100%;max-width:none;box-shadow:0 4px 14px #0f172a0f}.gt-results-header-bar{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:.65rem 1rem;width:100%;min-width:0}.gt-results-header-start{justify-self:start;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:.45rem}.gt-results-cluster-slider{margin-top:.1rem}.gt-results-header-center{justify-self:center;min-width:0;max-width:100%;display:flex;justify-content:center}.gt-results-header-end{justify-self:end;min-width:0;display:flex;align-items:center;justify-content:flex-end}.gt-results-ontology-row{display:flex;align-items:center;justify-content:center;gap:.65rem;flex-wrap:wrap;width:100%}.gt-results-ontology-row--in-bar{width:auto;max-width:100%;justify-content:center}.gt-results-ontology-row--stacked{flex-direction:column;align-items:center;gap:.15rem}.gt-pill{display:flex;flex-direction:column;align-items:center;text-align:center;gap:.15rem;font-weight:600;font-size:.9rem;padding:.38rem .8rem;border-radius:10px}.gt-pill-name{font-weight:700;width:100%}.gt-pill-meta{font-weight:400;font-size:.78rem;color:inherit;opacity:1;width:100%}.gt-pill--primary{background:#dbeafe;color:#000}.gt-pill--secondary{background:#ede9fe;color:#000}.gt-pill-meta--branch-filter{font-size:.72rem;opacity:1;font-weight:600;letter-spacing:.01em}.gt-pill-vs{font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:#000}.gt-single-ontology{font-weight:700;font-size:1.05rem;color:#0f172a}.gt-single-stats{display:flex;align-items:center;gap:.65rem;font-size:.9rem;color:#64748b}.gt-stat-dot{width:3px;height:3px;border-radius:50%;background:#cbd5e1;flex-shrink:0}.gt-results-inference-block{flex:0 1 auto;min-width:0;max-width:min(100%,24rem);display:flex;justify-content:flex-start;align-items:center;padding:.1rem 0;border:none;border-radius:0;background:transparent;box-sizing:border-box}.gt-results-header-start .gt-results-inference-inline{text-align:left}.gt-results-inference-inline{display:block;max-width:100%;font-size:.68rem;line-height:1.3;text-align:left;color:#64748b;white-space:nowrap;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;scrollbar-width:thin}.gt-results-inference-inline-strong{font-weight:600;color:#0f172a}.gt-results-inference-inline-muted{font-weight:500;color:#64748b}.gt-results-inference-sep{color:#cbd5e1;font-weight:400}.gt-results-comparison-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:.4rem;flex:0 0 auto;margin-top:0;width:auto}.gt-results-export-wrap{position:relative}.gt-results-action-btn{display:inline-flex;align-items:center;gap:5px;padding:.28rem .65rem;font-size:.72rem;font-weight:700;color:#4a5568;background:#f8fafc;border:2px solid #e2e8f0;border-radius:8px;cursor:pointer;transition:background .15s,border-color .15s,color .15s;white-space:nowrap;font-family:inherit}.gt-results-action-btn:hover{color:#2d3748;background:#edf2f7;border-color:#94a3b8}.gt-results-merge-btn.has-filters{color:#334155;background:#f1f5f9;border-color:#94a3b8}.gt-results-merge-btn.has-filters:hover{background:#e2e8f0;border-color:#64748b}.gt-merged-view-tabs{display:flex;gap:2px;background:#edf2f7;border-radius:8px;padding:3px;flex:0 0 auto}.gt-merged-view-tab{display:inline-flex;align-items:center;gap:4px;padding:.28rem .55rem;font-size:.68rem;font-weight:700;color:#718096;background:transparent;border:none;border-radius:6px;cursor:pointer;transition:all .15s ease;font-family:inherit;letter-spacing:.01em;white-space:nowrap}.gt-merged-view-tab:hover{color:#4a5568;background:#e2e8f0}.gt-merged-view-tab.active{color:#2d3748;background:#fff;box-shadow:0 1px 3px #00000014}.gt-results-export-menu{position:absolute;top:calc(100% + 6px);right:0;min-width:118px;display:flex;flex-direction:column;gap:4px;padding:6px;border-radius:8px;background:#fff;border:1px solid #e2e8f0;box-shadow:0 12px 24px #0000002e;z-index:50}.gt-results-export-menu-item{padding:.35rem .5rem;font-size:.72rem;font-weight:600;text-align:left;border:1px solid #e2e8f0;border-radius:6px;background:#f8fafc;color:#334155;cursor:pointer;font-family:inherit}.gt-results-export-menu-item:hover{background:#edf2f7}.gt-sankey-stage{background:transparent;padding:0;min-height:600px;overflow:hidden}.gt-workspace-slide--results .gt-sankey-stage{flex:1 1 0%;min-height:0;display:flex;flex-direction:column;overflow:hidden}.gt-sankey-stage--fill>.comparison-sankey-view{flex:1 1 auto;min-height:0;max-height:none}.gt-sankey-single-host{flex:1 1 auto;min-height:0;width:100%;display:flex;flex-direction:column;overflow:hidden}.gt-sankey-single-host .sankey-container{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;height:100%}.gt-results-merged-viz .gt-merged-results-area{margin-top:0}.gt-merged-results-area{margin-top:.25rem}.gt-empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:340px;text-align:center;gap:.5rem;padding:3rem}.gt-empty-icon{font-size:3rem;line-height:1;margin-bottom:.25rem;opacity:.6}.gt-empty-state p{margin:0;font-size:1.05rem;font-weight:600;color:#334155}.gt-empty-state span{font-size:.88rem;color:#94a3b8}.gt-save-overlay{position:fixed;inset:0;background:#0f172a73;display:flex;align-items:center;justify-content:center;z-index:10000;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}.gt-save-dialog{background:#fff;border-radius:14px;padding:1.75rem;width:420px;max-width:calc(100vw - 2rem);box-shadow:0 24px 64px #0000002e}.gt-save-dialog h4{margin:0 0 1rem;font-size:1.1rem;font-weight:700;color:#0f172a}.gt-save-error{background:#fef2f2;color:#b91c1c;padding:.5rem .75rem;border-radius:8px;font-size:.82rem;margin-bottom:.75rem;border:1px solid #fecaca}.gt-save-dialog input{width:100%;padding:.7rem .85rem;border:1.5px solid #e2e8f0;border-radius:10px;font-size:.92rem;margin-bottom:1rem;box-sizing:border-box;transition:border-color .15s;outline:none;font-family:inherit}.gt-save-dialog input:focus{border-color:#3b82f6}.gt-save-actions{display:flex;justify-content:flex-end;gap:.5rem}.gt-save-actions button{padding:.5rem 1.15rem;border:none;border-radius:8px;font-weight:600;cursor:pointer;font-size:.88rem;font-family:inherit;transition:background .15s,opacity .15s;background:#f1f5f9;color:#475569}.gt-save-actions button:hover{background:#e2e8f0}.gt-save-actions button.gt-save-primary{background:#3b82f6;color:#fff}.gt-save-actions button.gt-save-primary:hover{background:#2563eb}.gt-save-actions button:disabled{opacity:.5;cursor:not-allowed}@media(max-width:740px){.gt-workspace{padding:.75rem .25rem;gap:.2rem}.gt-workspace-arrow{flex-basis:38px}.gt-workspace-slide{padding:0 .35rem}.gt-workspace-slide--split{flex-direction:column;gap:1rem;overflow-y:auto}.gt-workspace-split-col{flex:1 1 auto;width:100%}.gt-workspace-split-col--config{border-left:none;border-top:1px solid #e2e8f0;padding-left:0;padding-top:.75rem}.gt-results-area{padding:0 .75rem 2rem}.gt-results-header{padding:.45rem .65rem .5rem}.gt-results-header-bar{display:flex;flex-direction:column;align-items:stretch;gap:.5rem}.gt-results-header-center{order:-1;width:100%;justify-self:center}.gt-results-ontology-row--in-bar{width:100%;justify-content:center}.gt-results-header-start{width:100%}.gt-results-header-end{width:100%;justify-content:flex-end}.gt-results-ontology-row{flex-direction:column;align-items:center;gap:.5rem}.gt-results-comparison-actions{width:auto;justify-content:flex-end}.gt-workspace-slide--results{overflow-y:auto;-webkit-overflow-scrolling:touch}.gt-results-inference-block{justify-content:flex-start}.gt-results-inference-inline{text-align:left;font-size:.65rem}}.saved-examples-panel{background:#fff;border:1px solid #e2e8f0;border-radius:14px;box-shadow:0 3px 16px #0000000e;padding:0;margin-bottom:1.5rem;max-width:1000px;margin-left:auto;margin-right:auto;transition:opacity .2s ease-in-out;display:flex;flex-direction:column;min-height:0;color:#2d3748;font-family:inherit;overflow:hidden}.saved-examples-panel.disabled{opacity:.6;pointer-events:none;cursor:wait}.saved-examples-panel.collapsed-shell{padding:.5rem;background:#fff;border:1px solid #e2e8f0;box-shadow:0 3px 16px #0000000e;border-radius:14px;gap:.625rem}.saved-examples-panel.collapsed-shell .panel-reopen-btn{border:1px solid #e2e8f0;background:#f8fafc;color:#2d3748;border-radius:10px}.saved-examples-panel .panel-reopen-btn{width:100%;border:1px solid #b5c4de;background:linear-gradient(180deg,#f9fcff,#edf3fd);color:#1f2a44;border-radius:10px;padding:.65rem .9rem;font-weight:700;display:flex;justify-content:space-between;align-items:center;cursor:pointer}.saved-examples-panel .panel-reopen-count{background:#4a5568;color:#fff;border-radius:999px;padding:.1rem .5rem;font-size:.72rem;font-weight:700}.saved-examples-panel-header{flex-shrink:0;padding:.85rem 1.5rem .65rem;border-bottom:1px solid #edf2f7}.saved-examples-panel-title{margin:0;font-size:1.2rem;font-weight:700;letter-spacing:-.02em;color:#2d3748}.saved-examples-panel-body{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;gap:.875rem;padding:1rem 1.5rem 1.25rem;overflow:hidden}.saved-examples-panel .examples-header-actions{display:flex;align-items:center;gap:.45rem}.saved-examples-panel .save-example-btn{padding:.45rem .875rem;background:#38a169;color:#fff;border:none;border-radius:8px;font-size:.76rem;font-weight:700;cursor:pointer;transition:background .15s ease,transform .15s ease}.saved-examples-panel .save-example-btn:hover:not(:disabled){background:#2f855a;transform:translateY(-1px)}.saved-examples-panel .save-example-btn:disabled{opacity:.5;cursor:not-allowed;transform:none}.saved-examples-panel .panel-close-btn{padding:.45rem .75rem;border-radius:8px;border:1px solid #e2e8f0;background:#f8fafc;color:#4a5568;cursor:pointer;font-weight:600;font-size:.75rem;transition:border-color .15s ease,background .15s ease}.saved-examples-panel .panel-close-btn:hover{border-color:#4a5568;background:#fff}.saved-examples-panel .panel-controls{display:block;position:relative;flex-shrink:0}.saved-examples-panel .panel-search-field{display:flex;align-items:center;gap:.3rem;border:2px solid #e2e8f0;border-radius:8px;background:#f8fafc;transition:border-color .2s ease,background .2s ease;box-sizing:border-box}.saved-examples-panel .panel-search-field:focus-within{border-color:#4a5568;background:#fff}.saved-examples-panel .panel-search-field.has-model{padding-left:.25rem}.saved-examples-panel .panel-search-input{flex:1;min-width:0;width:100%;border:none;background:transparent;color:#2d3748;font-size:.8rem;padding:.32rem .6rem;font-family:inherit;box-sizing:border-box;line-height:1.35}.saved-examples-panel .panel-search-field.has-model .panel-search-input{padding-left:.2rem}.saved-examples-panel .panel-search-input:focus{outline:none}.saved-examples-panel .panel-search-model-chip{display:inline-flex;align-items:center;gap:.15rem;max-width:60%;padding:.1rem .15rem .1rem .45rem;border-radius:6px;background:#4a5568;color:#fff;font-size:.7rem;font-weight:600;line-height:1.35}.saved-examples-panel .panel-search-model-chip-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.saved-examples-panel .panel-search-model-chip-remove{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;padding:.1rem;border:none;border-radius:4px;background:transparent;color:inherit;cursor:pointer}.saved-examples-panel .panel-search-model-chip-remove:hover{background:#ffffff2e}.saved-examples-panel .panel-search-menu{position:absolute;top:calc(100% + 4px);left:0;right:0;z-index:20;margin:0;padding:.3rem;list-style:none;background:#fff;border:1px solid #e2e8f0;border-radius:8px;box-shadow:0 6px 20px #0f172a14;max-height:260px;overflow-y:auto}.saved-examples-panel .panel-search-menu-label{padding:.3rem .5rem .2rem;font-size:.62rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#a0aec0}.saved-examples-panel .panel-search-option{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.38rem .5rem;border-radius:6px;font-size:.8rem;color:#2d3748;cursor:pointer}.saved-examples-panel .panel-search-option.is-active{background:#edf2f7}.saved-examples-panel .panel-search-option.is-selected .panel-search-option-name{font-weight:700}.saved-examples-panel .panel-search-option-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.saved-examples-panel .panel-search-option-count{flex-shrink:0;font-size:.68rem;color:#718096;font-variant-numeric:tabular-nums}.saved-examples-panel .panel-filter-pills{display:flex;gap:.4rem;flex-wrap:wrap}.saved-examples-panel .panel-filter-pills+.panel-filter-pills{margin-top:-.25rem;padding-top:.5rem;border-top:1px solid #edf2f7}.saved-examples-panel .panel-filter-pill{border:2px solid #e2e8f0;border-radius:8px;padding:.3rem .65rem;font-size:.72rem;font-weight:700;letter-spacing:.02em;background:#f8fafc;color:#4a5568;cursor:pointer;transition:all .15s ease;text-transform:uppercase}.saved-examples-panel .panel-filter-pill:hover{border-color:#4a5568;background:#fff;color:#2d3748}.saved-examples-panel .panel-filter-pill.active{background:#4a5568;border-color:#4a5568;color:#fff}.saved-examples-panel .panel-filter-pills--models .panel-filter-pill.active{background:#2b6cb0;border-color:#2b6cb0;color:#fff}.saved-examples-panel .panel-filter-pills--models .panel-filter-pill:hover{border-color:#2b6cb0;color:#2b6cb0;background:#ebf8ff}.saved-examples-panel .examples-loading,.saved-examples-panel .examples-error,.saved-examples-panel .no-examples{margin:0;color:#718096;font-size:.86rem;font-style:italic}.saved-examples-panel .examples-error{color:#c53030}.saved-examples-panel .examples-list{display:grid;grid-template-columns:1fr 1fr;grid-auto-rows:84px;gap:.5rem;flex:1;min-height:0;overflow-y:auto;padding-right:.1rem}.saved-examples-panel .examples-list.has-items{max-height:calc(504px + 2.5rem)}.saved-examples-panel .examples-list.is-empty{max-height:none;overflow-y:visible}.saved-examples-panel .example-btn{display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:.4rem;padding:.6rem .75rem;height:84px;background:#fff;border:2px solid #e2e8f0;border-radius:10px;cursor:pointer;transition:border-color .15s ease,background .15s ease,transform .15s ease;width:100%;text-align:left;box-sizing:border-box;overflow:hidden}.saved-examples-panel .example-btn:hover:not(:disabled){border-color:#4a5568;background:#f8fafc;transform:translateY(-1px)}.saved-examples-panel .example-btn.active{border-color:#64748b;background:#cbd5e1;color:#0f172a;font-weight:700;box-shadow:inset 0 0 0 1px #33415559}.saved-examples-panel .example-btn.active .example-time{color:#475569}.saved-examples-panel .example-btn:disabled{opacity:.6;cursor:not-allowed;transform:none}.saved-examples-panel .example-btn.unsaved-example{border-color:#d69e2e;background:#fffbf0}.saved-examples-panel .example-text{min-width:0;width:100%;display:flex;flex-direction:column;gap:.15rem}.saved-examples-panel .example-name{font-weight:600;color:#2d3748;font-size:.875rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.saved-examples-panel .example-btn .example-name{color:#2d3748!important}.saved-examples-panel .example-time{font-size:.68rem;color:#a0aec0;letter-spacing:.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.saved-examples-panel .example-tags{display:flex;gap:.25rem;align-items:center;flex-wrap:nowrap;justify-content:flex-start;margin-left:0;flex-shrink:0;min-width:0;width:100%;overflow:hidden}.saved-examples-panel .example-tags>span{min-width:0;max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex-shrink:1}.saved-examples-panel .example-meta-chip{display:inline-flex;align-items:center;padding:.12rem .45rem;border-radius:6px;font-size:.62rem;font-weight:600;color:#4a5568;background:#edf2f7;border:1px solid #e2e8f0}.saved-examples-panel .example-current-tag{display:inline-flex;align-items:center;padding:.12rem .45rem;border-radius:6px;font-size:.62rem;font-weight:700;color:#1e293b;background:#e2e8f0;border:1px solid #94a3b8;text-transform:uppercase}.saved-examples-panel .example-model-chip{max-width:168px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.saved-examples-panel .example-unsaved-badge{padding:.12rem .45rem;border-radius:6px;font-size:.62rem;font-weight:700;background:#fffaf0;color:#744210;border:1px solid #fbd38d;text-transform:uppercase}@media(max-width:900px){.saved-examples-panel{padding:.85rem}.saved-examples-panel .examples-header{flex-direction:column;align-items:stretch}.saved-examples-panel .examples-header-actions{justify-content:flex-end}.saved-examples-panel .examples-list{grid-template-columns:1fr}}@media(max-width:768px){.saved-examples-panel .examples-list.has-items{max-height:calc(252px + 1rem)}}.custom-dropdown{position:relative;width:100%;font-family:inherit}.custom-dropdown:focus{outline:none}.custom-dropdown:focus .custom-dropdown-trigger{border-color:#4a5568;background:#fff}.custom-dropdown.disabled{opacity:.6;cursor:not-allowed}.custom-dropdown.disabled .custom-dropdown-trigger{cursor:not-allowed}.custom-dropdown-trigger{display:flex;align-items:center;justify-content:space-between;width:100%;padding:.875rem 1rem;background:#f8fafc;border:2px solid #e2e8f0;border-radius:10px;font-size:.9rem;font-weight:500;color:#2d3748;cursor:pointer;transition:all .2s ease}.custom-dropdown-trigger:hover{border-color:#cbd5e0}.custom-dropdown.open .custom-dropdown-trigger{border-color:#4a5568;background:#fff;border-bottom-left-radius:0;border-bottom-right-radius:0}.custom-dropdown-value{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.custom-dropdown-arrow{color:#4a5568;flex-shrink:0;transition:transform .2s ease}.custom-dropdown-arrow.rotated{transform:rotate(180deg)}.custom-dropdown-menu{position:absolute;top:100%;left:0;right:0;background:#fff;border:2px solid #4a5568;border-top:none;border-bottom-left-radius:10px;border-bottom-right-radius:10px;max-height:240px;overflow-y:auto;z-index:1000;box-shadow:0 4px 12px #0000001a;animation:dropdownSlideIn .15s ease-out}.custom-dropdown-option{padding:.75rem 1rem;font-size:.9rem;font-weight:500;color:#2d3748;cursor:pointer;transition:background .15s ease}.custom-dropdown-option:hover,.custom-dropdown-option.highlighted{background:#f7fafc}.custom-dropdown-option.selected{background:#edf2f7;color:#2d3748;font-weight:600}.custom-dropdown-option.selected.highlighted{background:#e2e8f0}.custom-dropdown-option:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.custom-dropdown-empty{padding:1rem;text-align:center;color:#a0aec0;font-size:.85rem;font-style:italic}.custom-dropdown-menu::-webkit-scrollbar{width:6px}.custom-dropdown-menu::-webkit-scrollbar-track{background:#f1f1f1;border-radius:3px}.custom-dropdown-menu::-webkit-scrollbar-thumb{background:#cbd5e0;border-radius:3px}.custom-dropdown-menu::-webkit-scrollbar-thumb:hover{background:#a0aec0}.pipeline-config-panel{background:#fff;border:1px solid #e2e8f0;border-radius:14px;box-shadow:0 3px 16px #0000000e;color:#2d3748;max-width:1000px;margin-left:auto;margin-right:auto;overflow:hidden;display:flex;flex-direction:column;min-height:0}.pipeline-config-panel-header{flex-shrink:0;padding:.85rem 1.5rem .65rem;border-bottom:1px solid #edf2f7}.pipeline-config-panel-body{flex:1 1 auto;min-height:0;overflow-x:hidden;overflow-y:auto;display:flex;flex-direction:column}.pipeline-config-panel-body-inner{width:100%;box-sizing:border-box;flex-shrink:0;margin-top:auto;margin-bottom:auto}.pipeline-config-panel-title{margin:0;font-size:1.2rem;font-weight:700;letter-spacing:-.02em;color:#2d3748}.config-warning-banner{margin:.65rem 1rem 0;padding:.55rem .85rem;border-radius:8px;border:1px solid #d69e2e;background:#fffaf0;color:#744210;font-size:.82rem;font-weight:500}.config-warning-banner.subtle{border-color:#cbd5e0;background:#f7fafc;color:#4a5568}.config-section-card{padding:1.15rem 1.5rem;border-bottom:1px solid #edf2f7}.config-section-card:last-child{border-bottom:none}.config-section-card.collapsed{padding:.95rem 1.5rem}.section-header-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:.85rem}.section-header-row.clickable{cursor:pointer}.section-header-row.clickable:hover .section-number{background:#4a5568;color:#fff}.collapsed .section-header-row{margin-bottom:0}.section-title-group{display:flex;align-items:center;gap:.65rem}.section-number{width:28px;height:28px;display:flex;align-items:center;justify-content:center;background:#edf2f7;color:#4a5568;border-radius:7px;font-weight:700;font-size:.82rem;transition:all .2s ease}.section-number.completed{background:#48bb78;color:#fff}.section-title{font-size:.98rem;font-weight:600;color:#2d3748;margin:0}.section-subtitle{font-size:.78rem;color:#718096;margin-left:.5rem}.section-badge{padding:.28rem .6rem;background:#edf2f7;border-radius:6px;font-size:.75rem;font-weight:600;color:#4a5568;text-transform:uppercase;letter-spacing:.5px}.section-badge.active{background:#ebf8ff;color:#2b6cb0}.section-badge.success{background:#f0fff4;color:#276749}.template-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.6rem;margin-bottom:1.05rem}@media(max-width:768px){.template-grid{grid-template-columns:repeat(2,1fr)}}.template-card{padding:.72rem .8rem;background:#f8fafc;border:2px solid #e2e8f0;border-radius:9px;cursor:pointer;transition:all .2s ease;text-align:left}.template-card:hover{border-color:#4a5568;background:#fff}.template-card.selected{border-color:#4a5568;background:#f7fafc}.template-card-label{font-size:.65rem;font-weight:700;color:#718096;text-transform:uppercase;letter-spacing:.5px;margin-bottom:.28rem}.template-card-prompt{font-size:.8rem;color:#2d3748;font-style:italic;line-height:1.35}.prompt-input-wrapper{margin-bottom:.95rem}.prompt-textarea-modern{width:100%;padding:.7rem .95rem;border:2px solid #e2e8f0;border-radius:9px;font-size:.93rem;font-family:inherit;resize:none;transition:all .2s ease;background:#f8fafc;min-height:64px}.prompt-textarea-modern:focus{outline:none;border-color:#4a5568;background:#fff}.prompt-textarea-modern::placeholder{color:#a0aec0}.token-selector-wrapper{background:#f8fafc;border-radius:9px;padding:.75rem .95rem;border:1px solid #e2e8f0}.token-selector-label{font-size:.7rem;font-weight:600;color:#718096;text-transform:uppercase;letter-spacing:.5px;margin-bottom:.55rem}.token-row{display:flex;flex-wrap:wrap;gap:.45rem}.prompt-token{padding:.38rem .65rem;border-radius:7px;font-size:.86rem;font-weight:500;transition:all .15s ease;border:2px solid transparent}.prompt-token.selectable{background:#fff;color:#4a5568;border-color:#cbd5e0;cursor:pointer}.prompt-token.selectable:hover{border-color:#4a5568;color:#2d3748}.prompt-token.selected{background:#4a5568;color:#fff;border-color:#4a5568}.prompt-token.stop-word{background:#edf2f7;color:#a0aec0;cursor:not-allowed;opacity:.7}.ontology-summary-card{background:#f8fafc;border-radius:10px;padding:.95rem 1.15rem;border:1px solid #e2e8f0}.ontology-summary-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:.6rem}.ontology-summary-title{font-size:.82rem;font-weight:600;color:#2d3748}.ontology-change-btn{padding:.38rem .82rem;background:#fff;border:2px solid #e2e8f0;border-radius:8px;font-size:.74rem;font-weight:600;color:#4a5568;cursor:pointer;transition:all .2s ease}.ontology-change-btn:hover{border-color:#4a5568;background:#f7fafc}.ontology-pills{display:flex;flex-wrap:wrap;gap:.5rem}.ontology-pill{display:flex;align-items:center;gap:.45rem;padding:.48rem .82rem;background:#fff;border:2px solid #e2e8f0;border-radius:8px}.ontology-pill.primary{border-color:#3b82f6}.ontology-pill.secondary{border-color:#8b5cf6}.ontology-pill.primary .ontology-pill-label{font-size:.65rem;font-weight:700;color:#3b82f6;text-transform:uppercase;letter-spacing:.5px}.ontology-pill.secondary .ontology-pill-label{font-size:.65rem;font-weight:700;color:#8b5cf6;text-transform:uppercase;letter-spacing:.5px}.ontology-pill-name{font-size:.8rem;font-weight:600;color:#2d3748}.ontology-pill-count{font-size:.7rem;color:#718096;margin-left:.25rem}.ontology-preview-words{margin-top:.45rem;font-size:.75rem;color:#718096;font-style:italic}.ontology-select-prompt{display:flex;align-items:center;justify-content:center;padding:1.35rem;background:#f8fafc;border:2px dashed #e2e8f0;border-radius:12px;color:#718096;cursor:pointer;transition:all .2s ease}.ontology-select-prompt:hover{border-color:#4a5568;background:#fff;color:#4a5568}.ontology-select-prompt-text{font-size:.86rem;font-weight:500}.strategy-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.72rem;margin-bottom:1.1rem}@media(max-width:640px){.strategy-grid{grid-template-columns:1fr}}.strategy-option{padding:.95rem;background:#f8fafc;border:2px solid #e2e8f0;border-radius:10px;cursor:pointer;transition:all .2s ease}.strategy-option:hover{border-color:#cbd5e0;background:#fff}.strategy-option.selected{border-color:#4a5568;background:#fff}.strategy-option-header{display:flex;align-items:center;gap:.55rem;margin-bottom:.38rem}.strategy-radio{width:16px;height:16px;border:2px solid #cbd5e0;border-radius:50%;display:flex;align-items:center;justify-content:center;transition:all .15s ease}.strategy-option.selected .strategy-radio{border-color:#4a5568}.strategy-radio-inner{width:8px;height:8px;background:#4a5568;border-radius:50%;opacity:0;transition:opacity .15s ease}.strategy-option.selected .strategy-radio-inner{opacity:1}.strategy-name{font-size:.86rem;font-weight:600;color:#2d3748}.strategy-description{font-size:.74rem;color:#718096;line-height:1.35}.model-selector-wrapper{margin-bottom:1.1rem}.model-selector-label{font-size:.76rem;font-weight:600;color:#4a5568;margin-bottom:.5rem;display:flex;align-items:center;gap:.5rem}.model-selector-badge{padding:.2rem .5rem;background:#ebf8ff;color:#2b6cb0;border-radius:4px;font-size:.65rem;font-weight:700;text-transform:uppercase}.model-dropdown{width:100%;padding:.62rem 2.5rem .62rem .85rem;background:#f8fafc;border:2px solid #e2e8f0;border-radius:9px;font-size:.84rem;font-family:inherit;font-weight:500;color:#2d3748;cursor:pointer;transition:all .2s ease;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234a5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 1rem center}.model-dropdown:focus{outline:none;border-color:#4a5568;background-color:#fff}.model-dropdown:disabled{opacity:.6;cursor:not-allowed}.params-layout{display:flex;flex-direction:column;gap:.65rem}.params-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:.85rem}.params-category{background:#f8fafc;border:1px solid #e2e8f0;border-radius:9px;padding:.85rem 1rem;display:flex;flex-direction:column;gap:.65rem}.params-category-label{font-size:.7rem;font-weight:700;color:#a0aec0;text-transform:uppercase;letter-spacing:.06em}.params-two-col{display:grid;grid-template-columns:1fr 1fr;gap:.85rem}.param-group{display:flex;flex-direction:column;gap:.5rem}.param-label{font-size:.8rem;font-weight:600;color:#4a5568;display:flex;align-items:center;gap:.375rem}.param-help{width:16px;height:16px;display:inline-flex;align-items:center;justify-content:center;background:#edf2f7;color:#718096;border-radius:50%;font-size:.65rem;font-weight:700;cursor:help}.param-input{padding:.55rem .8rem;border:2px solid #e2e8f0;border-radius:7px;font-size:.84rem;font-weight:500;color:#2d3748;background:#f8fafc;transition:all .2s ease}.param-input:focus{outline:none;border-color:#4a5568;background:#fff}.beam-tree-toggle-row{display:grid;align-content:end}.beam-tree-toggle-label{display:flex;align-items:center;gap:.45rem;padding:.55rem .72rem;border:1px solid #e2e8f0;border-radius:7px;background:#f8fafc;color:#2d3748;font-size:.78rem;font-weight:500;cursor:pointer}.beam-tree-toggle-input{width:16px;height:16px;accent-color:#4a5568}@media(max-width:900px){.params-two-col{grid-template-columns:1fr}}.slider-control{display:flex;flex-direction:column;gap:.55rem}.slider-track-wrapper{position:relative;padding:.5rem 0}.slider-input{width:100%;height:6px;background:#e2e8f0;border-radius:3px;appearance:none;cursor:pointer}.slider-input::-webkit-slider-thumb{appearance:none;width:20px;height:20px;background:#4a5568;border-radius:50%;cursor:pointer;transition:all .15s ease;box-shadow:0 2px 4px #00000026}.slider-input::-webkit-slider-thumb:hover{transform:scale(1.1)}.slider-input::-moz-range-thumb{width:20px;height:20px;background:#4a5568;border-radius:50%;cursor:pointer;border:none}.slider-labels{display:flex;justify-content:space-between;font-size:.7rem;color:#a0aec0}.slider-value-display{display:flex;align-items:center;justify-content:center;padding:.38rem .75rem;background:#f8fafc;border-radius:7px;font-size:.9rem;font-weight:700;color:#2d3748;min-width:60px}.clustering-method-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:.5rem;margin-bottom:1.05rem}@media(max-width:900px){.clustering-method-grid{grid-template-columns:repeat(2,1fr)}}.clustering-method-option{padding:.62rem .55rem;background:#f8fafc;border:2px solid #e2e8f0;border-radius:9px;cursor:pointer;transition:all .2s ease;text-align:center}.clustering-method-option:hover{border-color:#cbd5e0}.clustering-method-option.selected{border-color:#4a5568;background:#fff}.clustering-method-name{font-size:.78rem;font-weight:600;color:#2d3748}.clustering-params-section{background:#f8fafc;border-radius:9px;padding:.95rem;border:1px solid #e2e8f0}.clustering-params-title{font-size:.74rem;font-weight:600;color:#718096;text-transform:uppercase;letter-spacing:.5px;margin-bottom:.75rem}.action-row{display:flex;justify-content:center;padding:1rem 1.5rem;border-top:1px solid #edf2f7;background:#f8fafc}.generate-btn-modern{padding:.72rem 2.1rem;background:#38a169;color:#fff;border:none;border-radius:10px;font-size:.9rem;font-weight:700;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;gap:.55rem}.generate-btn-modern:hover:not(:disabled){background:#2f855a;transform:translateY(-1px)}.generate-btn-modern:disabled{background:#cbd5e0;cursor:not-allowed;transform:none}.btn-spinner-icon{animation:spin 1s linear infinite;flex-shrink:0}.toggle-templates-btn{padding:.38rem .82rem;background:transparent;border:2px solid #e2e8f0;border-radius:7px;font-size:.74rem;font-weight:600;color:#4a5568;cursor:pointer;transition:all .2s ease}.toggle-templates-btn:hover{border-color:#4a5568}.toggle-templates-btn.active{background:#4a5568;border-color:#4a5568;color:#fff}.collapse-arrow{font-size:.9rem;color:#718096;transition:transform .2s ease}.collapsed .collapse-arrow{transform:rotate(-90deg)}.section-divider{height:1px;background:#e2e8f0;margin:1.05rem 0}.info-text{font-size:.8rem;color:#718096;margin-top:.5rem}.inference-mode-toggle{display:flex;background:#edf2f7;border-radius:9px;padding:3px;margin-bottom:.75rem}.inference-mode-option{flex:1;padding:.48rem .75rem;background:transparent;border:none;border-radius:7px;font-size:.78rem;font-weight:600;color:#718096;cursor:pointer;transition:all .2s ease}.inference-mode-option.active{background:#fff;color:#2d3748;box-shadow:0 1px 3px #0000001a}.inference-mode-option:hover:not(.active){color:#4a5568}.fade-in{animation:fadeIn .4s ease-in-out forwards}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.local-model-status-wrapper{background:#f8fafc;border-radius:9px;padding:.55rem .75rem;display:flex;justify-content:space-between;align-items:center;margin-bottom:.75rem;border:1px solid #e2e8f0;gap:.65rem}.local-model-info{display:flex;align-items:center;gap:.38rem;font-size:.8rem;min-width:0}.local-model-info-stack{min-width:0;display:flex;flex-direction:column;gap:.3rem;flex:1}.local-model-current-label{color:#718096;font-weight:600;font-size:.76rem;text-transform:uppercase;letter-spacing:.04em}.local-model-current-value{font-weight:600;color:#2d3748;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.local-model-current-value.loaded{color:#2f855a}.local-model-current-value.empty{color:#975a16;font-style:italic}.local-model-warning{font-size:.72rem;color:#975a16;line-height:1.25}.manage-model-btn{background:#fff;border:1px solid #d1d5db;color:#4a5568;font-size:.78rem;padding:.43rem .62rem;border-radius:8px;cursor:pointer;font-weight:600;transition:all .2s;flex-shrink:0}.manage-model-btn:hover{background:#f8fafc;border-color:#a0aec0}.local-model-settings-overlay{position:fixed;inset:0;width:100vw;height:100vh;background:#0f172a73;display:flex;align-items:center;justify-content:center;padding:1rem;box-sizing:border-box;z-index:10050}@supports (height: 100dvh){.local-model-settings-overlay{height:100dvh}}.local-model-settings-modal{position:relative;width:min(920px,96vw);max-height:92vh;background:#fff;border:1px solid #e2e8f0;border-radius:14px;box-shadow:0 16px 44px #0f172a2e;display:flex;flex-direction:column;overflow:hidden}.local-model-settings-close-btn{position:absolute;top:.8rem;right:.8rem;border:1px solid #e2e8f0;background:#fff;color:#475569;border-radius:8px;width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.local-model-settings-close-btn:hover{background:#f8fafc;color:#334155}.local-model-settings-close-btn svg,.local-model-settings-close-btn .local-model-settings-close-icon{stroke:currentColor;stroke-width:2;fill:none;display:inline-block;color:inherit}.local-model-settings-header{padding:1.25rem 1.5rem 1rem;border-bottom:1px solid #edf2f7}.local-model-settings-title{margin:0;font-size:1.15rem;color:#1e293b;font-weight:700}.local-model-settings-subtitle{margin:.35rem 0 0;font-size:.86rem;color:#64748b}.local-model-settings-content{padding:1rem 1.5rem 1.1rem;overflow-y:auto;display:flex;flex-direction:column;gap:1rem}.local-model-settings-status-card{border:1px solid #e2e8f0;border-radius:10px;padding:.8rem .95rem;display:flex;gap:.8rem;align-items:flex-start;background:#f8fafc}.local-model-settings-status-card.is-loaded{background:#f0fff4;border-color:#c6f6d5}.local-model-settings-status-card.is-empty{background:#f8fafc}.local-model-settings-status-icon{color:#475569;margin-top:.05rem}.local-model-settings-status-card.is-loaded .local-model-settings-status-icon{color:#2f855a}.local-model-settings-status-body{flex:1;min-width:0}.local-model-settings-status-title{font-size:.72rem;color:#64748b;font-weight:700;letter-spacing:.04em;text-transform:uppercase}.local-model-settings-status-main{margin-top:.2rem;font-size:.93rem;color:#1e293b;font-weight:600}.local-model-settings-status-meta{margin-top:.35rem;font-size:.8rem;color:#64748b;display:flex;flex-wrap:wrap;gap:.65rem}.local-model-settings-status-meta span{display:inline-flex;gap:.25rem;align-items:center}.local-model-settings-unload-btn{border:1px solid #e2e8f0;background:#fff;color:#334155;border-radius:8px;padding:.45rem .75rem;font-size:.8rem;font-weight:600;cursor:pointer}.local-model-settings-unload-btn:hover:not(:disabled){background:#f8fafc}.local-model-settings-unload-btn:disabled{opacity:.6;cursor:not-allowed}.local-model-settings-alert{border:1px solid;border-radius:9px;padding:.6rem .75rem;display:flex;align-items:flex-start;gap:.45rem;font-size:.82rem;line-height:1.35}.local-model-settings-alert.error{background:#fff5f5;border-color:#fed7d7;color:#c53030}.local-model-settings-alert.warning{background:#fffaf0;border-color:#fbd38d;color:#975a16}.local-model-settings-section{border:1px solid #e2e8f0;border-radius:10px;padding:.85rem .95rem;background:#fff}.local-model-settings-section-title{margin:0 0 .65rem;font-size:.8rem;color:#475569;font-weight:700;letter-spacing:.04em;text-transform:uppercase}.local-model-settings-model-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem}.local-model-settings-model-card{border:1px solid #e2e8f0;background:#f8fafc;border-radius:8px;padding:.6rem .65rem;text-align:left;cursor:pointer}.local-model-settings-model-card:hover{border-color:#cbd5e0;background:#fff}.local-model-settings-model-card.is-selected{border-color:#4a5568;background:#fff}.local-model-settings-model-name{font-size:.86rem;color:#1e293b;font-weight:700}.local-model-settings-model-desc{margin-top:.2rem;font-size:.74rem;color:#64748b;line-height:1.25;word-break:break-word}.local-model-settings-model-meta{margin-top:.35rem;font-size:.72rem;color:#718096}.local-model-settings-loading-state{font-size:.85rem;color:#64748b;padding:.25rem}.local-model-settings-quant-row{display:flex}.local-model-settings-select{width:100%;border:1px solid #d1d5db;border-radius:8px;padding:.55rem .65rem;font-size:.9rem;color:#1f2937;background:#fff}.local-model-settings-select:focus{outline:none;border-color:#4a5568}.local-model-settings-hint{margin-top:.45rem;color:#718096;font-size:.77rem;line-height:1.35}.local-model-settings-hint.warning{color:#975a16}.local-model-settings-vram-note{font-size:.77rem;color:#718096;margin-bottom:.5rem}.local-model-settings-vram-table-wrap{width:100%;overflow-x:auto;border:1px solid #e2e8f0;border-radius:8px}.local-model-settings-vram-table{width:100%;border-collapse:collapse;min-width:560px;font-size:.78rem}.local-model-settings-vram-table th,.local-model-settings-vram-table td{padding:.45rem .55rem;border-bottom:1px solid #edf2f7;text-align:left;white-space:nowrap}.local-model-settings-vram-table th{background:#f8fafc;color:#475569;font-weight:700}.local-model-settings-vram-table tbody tr:last-child td{border-bottom:none}.local-model-settings-vram-table .selected-model-row td{background:#f8fafc}.local-model-settings-vram-table .selected-quant-cell{outline:2px solid #4a5568;outline-offset:-2px;font-weight:700;color:#1e293b}.local-model-settings-vram-table .unsupported-cell{color:#a0aec0}.local-model-settings-cell-mark{margin-left:.35rem;font-size:.65rem;color:#c05621;font-weight:700;text-transform:uppercase}.local-model-settings-footer{border-top:1px solid #edf2f7;padding:.9rem 1.5rem;display:flex;justify-content:flex-end;gap:.55rem;background:#fff}.local-model-settings-cancel-btn,.local-model-settings-load-btn{border-radius:8px;padding:.55rem .95rem;font-size:.85rem;font-weight:600;cursor:pointer;display:inline-flex;align-items:center;gap:.4rem}.local-model-settings-cancel-btn{border:1px solid #e2e8f0;background:#fff;color:#334155}.local-model-settings-cancel-btn:hover{background:#f8fafc}.local-model-settings-load-btn{border:1px solid #4a5568;background:#4a5568;color:#fff}.local-model-settings-load-btn:hover:not(:disabled){background:#2d3748;border-color:#2d3748}.local-model-settings-load-btn:disabled{opacity:.6;cursor:not-allowed}.local-model-settings-spin{animation:local-model-settings-spin 1s linear infinite}@keyframes local-model-settings-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media(max-width:860px){.local-model-settings-model-grid{grid-template-columns:1fr}.local-model-settings-status-card{flex-direction:column}.local-model-settings-unload-btn{align-self:flex-start}}.ontology-selector-overlay{position:fixed;inset:0;background:#00000080;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:1000;animation:fadeIn .2s ease}.ontology-selector-modal{background:#fff;border-radius:20px;width:90%;max-width:1000px;max-height:90vh;display:flex;flex-direction:column;box-shadow:0 20px 60px #0000004d;animation:slideUp .3s ease;overflow:hidden}.modal-body{flex:1;overflow-y:auto;display:flex;flex-direction:column}.modal-title-section{flex:1;display:flex;flex-direction:column;gap:.75rem}.prompt-context{display:flex;flex-direction:column;gap:.5rem}.prompt-label{font-size:.875rem;color:#718096;font-weight:500;text-transform:uppercase;letter-spacing:.5px}.prompt-with-highlight{display:flex;flex-wrap:wrap;gap:.5rem;padding:.75rem;background:#fff;border-radius:8px;border:2px solid #e2e8f0;align-items:center}.context-word{color:#4a5568;font-size:.95rem}.highlighted-word{color:#fff;background:#4a5568;padding:.25rem .75rem;border-radius:6px;font-weight:600;font-size:.95rem}.prompt-selector{padding:1.5rem 2rem;background:#f7fafc;border-bottom:2px solid #e2e8f0}.prompt-selector label{display:block;font-weight:600;color:#2d3748;margin-bottom:.75rem;font-size:.95rem}.prompt-buttons{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:.75rem}.prompt-buttons button{padding:.5rem 1rem;border:2px solid #e2e8f0;background:#fff;border-radius:8px;font-size:.875rem;font-weight:500;color:#4a5568;cursor:pointer;transition:all .2s ease}.prompt-buttons button:hover{border-color:#4a5568;color:#4a5568}.prompt-buttons button.active{background:#4a5568;border-color:#4a5568;color:#fff}.custom-prompt-input{width:100%;padding:.75rem;border:2px solid #e2e8f0;border-radius:12px;font-size:.95rem;font-family:inherit;font-weight:400;transition:all .2s ease}.prompt-display{padding:.75rem;background:#fff;border:2px solid #e2e8f0;border-radius:8px;font-size:.9rem;color:#4a5568}.prompt-display strong{color:#2d3748;margin-right:.5rem}.loading-section{padding:3rem 2rem;text-align:center;color:#718096}.loading-section-inline{padding:2rem;text-align:center;color:#718096;background:#f7fafc;border-radius:8px;border:2px dashed #e2e8f0}.loading-section-inline p{margin:0}.spinner-icon{color:#4a5568;animation:spin 1s linear infinite;margin:0 auto 1rem}.spinner-icon-small{color:#4a5568;animation:spin 1s linear infinite}.ontology-sections{flex:1;padding:1.5rem 2rem}.ontology-section{margin-bottom:2rem}.ontology-section:last-child{margin-bottom:0}.section-title{display:flex;align-items:center;gap:.75rem;font-size:1.1rem;color:#2d3748;margin:0 0 1rem;padding-bottom:.75rem;border-bottom:2px solid #e2e8f0}.section-icon{display:inline-block;padding:.25rem .75rem;background:#4a5568;color:#fff;border-radius:6px;font-size:.75rem;font-weight:700;letter-spacing:.5px}.section-icon.cn-icon,.section-icon.llm-icon,.section-icon.saved-icon{background:#4a5568}.ontology-selector-modal .ontology-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1rem;padding:1.5rem 2rem}.ontology-selector-modal .ontology-card{background:#fff;border:2px solid #e2e8f0;border-radius:12px;padding:1.25rem;cursor:pointer;transition:all .2s ease;position:relative}.ontology-selector-modal .ontology-card:hover{border-color:#4a5568}.ontology-selector-modal .ontology-card.loading{cursor:default;opacity:.8;background:#f7fafc}.ontology-selector-modal .ontology-card.loading:hover{border-color:#e2e8f0}.ontology-selector-modal .ontology-card.loading .card-header{display:flex;align-items:center;gap:.75rem}.ontology-selector-modal .ontology-card .loading-text{color:#718096;font-style:italic}.ontology-selector-modal .card-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.75rem}.strategy-badge{padding:.25rem .75rem;border-radius:6px;font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.5px}.strategy-badge.bfs,.strategy-badge.direct{background:#4a5568;color:#fff}.ontology-selector-modal .word-count{font-size:.8rem;color:#718096;font-weight:500}.ontology-selector-modal .card-title{font-size:1rem;font-weight:600;color:#2d3748;margin-bottom:.5rem}.ontology-selector-modal .card-preview{font-size:.85rem;color:#4a5568;line-height:1.5}.llm-suggestions{display:flex;flex-direction:column;gap:1rem;padding:1.5rem 2rem}.llm-suggestion-card{background:#f7fafc;border:2px solid #e2e8f0;border-radius:12px;padding:1.25rem;transition:all .2s ease;cursor:pointer}.llm-suggestion-card:hover{border-color:#4a5568}.suggestion-header{display:flex;align-items:center;gap:.75rem;margin-bottom:.75rem}.suggestion-number{display:inline-flex;width:28px;height:28px;background:#4a5568;color:#fff;border-radius:50%;align-items:center;justify-content:center;font-size:.8rem;font-weight:700}.suggestion-type{flex:1;font-weight:600;color:#2d3748;font-size:1rem}.llm-word-count{font-size:.8rem;color:#718096;font-weight:500;padding:.25rem .75rem;background:#fff;border-radius:6px;border:1px solid #e2e8f0}.suggestion-reasoning{color:#4a5568;font-size:.9rem;line-height:1.6;margin:0 0 .75rem}.suggestion-words{font-size:.85rem;color:#718096;padding:.5rem .75rem;background:#fff;border-radius:6px}.suggestion-words strong{color:#2d3748;margin-right:.5rem}.ontology-list{display:flex;flex-direction:column;gap:.75rem;flex:1;overflow-y:auto;padding:1.5rem 2rem}.ontology-item{background:#f7fafc;border:2px solid #e2e8f0;border-radius:12px;padding:1.25rem;margin-bottom:1rem;cursor:pointer;transition:all .2s ease;position:relative}.ontology-item:hover{border-color:#4a5568}.ontology-item.llm-suggestion{background:#edf2f7;border-color:#4a5568;cursor:default}.ontology-item.llm-suggestion:hover{transform:none}.ontology-header{display:flex;align-items:center;gap:1rem;margin-bottom:.75rem}.ontology-icon{display:inline-block;padding:.25rem .75rem;background:#4a5568;color:#fff;border-radius:6px;font-size:.75rem;font-weight:700;letter-spacing:.5px}.ontology-icon.cn-icon,.ontology-icon.llm-icon,.ontology-icon.pred-icon{background:#4a5568}.ontology-info{flex:1}.ontology-info h4{font-size:1.1rem;color:#2d3748;margin:0 0 .25rem;font-weight:600}.ontology-count{font-size:.875rem;color:#718096;font-weight:500}.ontology-description{font-size:.875rem;color:#4a5568;margin:.25rem 0 0}.ontology-preview{color:#4a5568;font-size:.9rem;line-height:1.5}.seed-badge{padding:.25rem .75rem;background:#edf2f7;border-radius:12px;font-size:.75rem;color:#4a5568;font-weight:600}.relevance-score{padding:.375rem .75rem;background:#4a5568;color:#fff;border-radius:8px;font-size:.875rem;font-weight:700}.warning-text{margin-top:.75rem;padding:.5rem .75rem;background:#f1f5f9;border-left:3px solid #64748b;border-radius:4px;font-size:.85rem;color:#334155;margin-bottom:0}.empty-message{text-align:center;padding:3rem;color:#718096}.empty-message p{margin:0}.modal-tabs{display:flex;gap:.5rem;padding:1rem 2rem 0;border-bottom:2px solid #e2e8f0}.modal-tabs button{padding:.75rem 1.25rem;background:transparent;border:none;border-bottom:3px solid transparent;color:#718096;font-weight:600;cursor:pointer;transition:all .2s ease;white-space:nowrap}.modal-tabs button:hover{color:#4a5568}.modal-tabs button.active{color:#2d3748;border-bottom-color:#4a5568}.modal-tabs button.llm-tab{margin-left:auto;background:#4a5568;color:#fff;border-radius:8px 8px 0 0;border-bottom:3px solid transparent}.modal-tabs button.llm-tab:hover{background:#2d3748;color:#fff}.modal-tabs button.llm-tab.active{border-bottom-color:#4a5568}.modal-tabs button:disabled{opacity:.6;cursor:not-allowed}.search-bar{padding:1rem 2rem;background:#f7fafc}.search-bar input{width:100%;padding:.75rem 1rem;border:2px solid #e2e8f0;border-radius:10px;font-size:.95rem;font-family:inherit;font-weight:400;transition:all .2s ease}.search-bar input:focus{outline:none;border-color:#4a5568}.custom-llm-form{display:flex;flex-direction:column;gap:.75rem;padding:1.5rem 2rem}.custom-ontology-name{width:100%;padding:.6rem .75rem;border:2px solid #e2e8f0;border-radius:12px;font-size:.9rem;font-family:inherit;font-weight:500;transition:all .2s ease}.custom-ontology-name:focus{outline:none;border-color:#4a5568}.generate-custom-btn{padding:.6rem 1.2rem;background:#4a5568;color:#fff;border:none;border-radius:8px;font-size:.9rem;font-weight:500;cursor:pointer;transition:all .2s ease;align-self:flex-start}.generate-custom-btn:hover:not(:disabled){background:#2d3748}.generate-custom-btn:disabled{opacity:.5;cursor:not-allowed}.custom-llm-result{margin-top:.5rem;cursor:pointer}.custom-llm-result .click-hint{font-size:.75rem;color:#718096;font-style:italic;margin-top:.5rem}.strategy-badge.custom{background:#4a5568;color:#fff}.selection-status-bar{display:flex;align-items:center;justify-content:space-between;padding:1rem 2rem;background:#f8fafc;border-bottom:2px solid #e2e8f0}.selection-status{display:flex;align-items:center;gap:1rem}.status-label{font-size:.875rem;font-weight:600;color:#64748b}.selected-items{display:flex;gap:.75rem;align-items:center}.selection-chip{display:inline-flex;align-items:center;gap:.5rem;padding:.4rem;border-radius:8px;font-size:.875rem;font-weight:500;cursor:pointer;transition:all .2s ease}.selection-chip.primary,.selection-chip.secondary{background:#f1f5f9;color:#334155;border:1px solid #94a3b8}.selection-chip.empty{background:transparent;border:2px dashed #cbd5e0;color:#94a3b8;cursor:default}.selection-chip:not(.empty):hover{opacity:.9}.chip-badge{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;background:#fff3;border-radius:50%;font-size:.75rem;font-weight:700}.chip-remove{margin-left:.25rem;font-size:1rem;opacity:.7}.chip-remove:hover{opacity:1}.confirm-selection-btn{padding:.625rem 1.25rem;background:#0f172a;color:#fff;border:1px solid #334155;border-radius:8px;font-size:.875rem;font-weight:600;cursor:pointer;box-shadow:0 1px 2px #0000000d;transition:all .2s cubic-bezier(.4,0,.2,1)}.confirm-selection-btn:hover{background:#1e293b;border-color:#475569;transform:translateY(-1px);box-shadow:0 4px 6px -1px #0000001a}.selection-badge{position:absolute;bottom:1.25rem;right:1.5rem;padding:.25rem .75rem;border-radius:6px;font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.5px}.selection-badge.primary,.selection-badge.secondary{background:#4a5568;color:#fff}.llm-suggestion-card{position:relative}.llm-suggestion-card.selected-primary,.ontology-card.selected-primary,.ontology-item.selected-primary{border-color:#2d3748;box-shadow:0 0 0 1px #2d3748;animation:selectPulse .3s ease}.llm-suggestion-card.selected-secondary,.ontology-card.selected-secondary,.ontology-item.selected-secondary{border-color:#4a5568;box-shadow:0 0 0 1px #4a5568;animation:selectPulse .3s ease}@keyframes selectPulse{0%{transform:scale(1)}50%{transform:scale(1.01)}to{transform:scale(1)}}.contrasting-section{padding:1.25rem 2rem;background:#f8fafc;border-bottom:2px solid #e2e8f0}.contrasting-suggestions{background:transparent}.section-icon.contrast-icon{background:#4a5568}.contrast-reason{font-size:.85rem;color:#475569;font-style:italic;margin:.5rem 0;padding:.375rem .75rem;background:#f1f5f9;border-radius:4px}.sankey-container{position:relative;background:#fff;border-radius:8px;width:100%;height:100%;min-height:600px;display:flex;flex-direction:column;border:1px solid #e2e8f0}.sankey-svg-wrapper button{display:flex!important;align-items:center!important;justify-content:center!important}.sankey-svg-wrapper .sankey-filter-menu button,.sankey-svg-wrapper .sankey-filter-menu-item{justify-content:flex-start!important;text-align:left!important}.sankey-svg-wrapper button svg{display:block!important;flex-shrink:0!important;width:auto!important;height:auto!important}.sankey-empty{color:#64748b;text-align:center;padding:60px 20px;font-size:14px}.sankey-stats{display:flex;gap:24px;margin-bottom:16px;padding-bottom:12px;border-bottom:1px solid #e2e8f0}.sankey-stats .stat-item{display:flex;flex-direction:column;align-items:center}.sankey-stats .stat-value{font-size:20px;font-weight:600;color:#0f172a}.sankey-stats .stat-label{font-size:11px;color:#64748b;text-transform:uppercase;letter-spacing:.5px}.sankey-stats .stat-item.reduction .stat-value{color:#15803d}.sankey-stats .stat-item.mode .stat-value{color:#2563eb;font-size:14px}.sankey-svg-wrapper{background:#fff;border-radius:6px;position:relative;flex:1;min-height:0}.sankey-svg{display:block;cursor:grab;width:100%;height:100%}.sankey-svg:active{cursor:grabbing}.sankey-tooltip{position:absolute;background:#fff;border:1px solid #cbd5e1;border-radius:6px;padding:10px 12px;pointer-events:none;z-index:100;min-width:180px;box-shadow:0 8px 24px #0f172a1f}.sankey-tooltip .tooltip-name{font-weight:600;color:#0f172a;font-size:13px;margin-bottom:8px;border-bottom:1px solid #e2e8f0;padding-bottom:6px}.sankey-tooltip .tooltip-row{display:flex;justify-content:space-between;gap:10px;margin-bottom:6px;font-size:11px}.sankey-tooltip .tooltip-label{color:#475569;font-size:11px}.sankey-tooltip .tooltip-value{color:#0f172a;font-weight:500;text-align:right}.single-tooltip-context{margin-bottom:10px;font-size:14px;line-height:1.65;color:#1e293b}.single-tooltip-context-quote{opacity:.55;font-style:italic;color:#64748b}.single-tooltip-substitutes-section{flex-direction:column;align-items:center;margin:12px 0 10px;border-top:1px solid #e2e8f0;padding-top:9px}.single-tooltip-substitutes-label{font-size:11px;color:#475569;text-transform:uppercase;display:block;letter-spacing:.45px;text-align:center}.single-tooltip-substitutes-list{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;align-items:center;margin-bottom:6px}.single-tooltip-substitute-chip{background:#60a5fa26;padding:1px 4px;border-radius:3px;font-size:13px;font-weight:700;color:#60a5fa;border:none;line-height:1.2;display:inline-block}.single-tooltip-divider{margin-top:8px;border-top:1px solid #e2e8f0;padding-top:6px}.single-tooltip-merged-from{margin-top:8px;align-items:flex-start}.sankey-svg-wrapper>div::-webkit-scrollbar{height:4px;width:4px}.sankey-svg-wrapper>div::-webkit-scrollbar-track{background:transparent}.sankey-svg-wrapper>div::-webkit-scrollbar-thumb{background:#0f172a33;border-radius:2px}.sankey-svg-wrapper>div::-webkit-scrollbar-thumb:hover{background:#0f172a59}.sankey-container[style*="position: fixed"] .sankey-svg-wrapper>div::-webkit-scrollbar{display:none}.sankey-container.sankey-container--viewport-fullscreen{display:flex;flex-direction:column;height:100vh!important;max-height:100vh!important;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px);padding-left:env(safe-area-inset-left,0px);padding-right:env(safe-area-inset-right,0px)}@supports (height: 100dvh){.sankey-container.sankey-container--viewport-fullscreen{height:100dvh!important;max-height:100dvh!important}}.sankey-fullscreen-exit-btn{position:absolute;top:max(12px,env(safe-area-inset-top,0px));right:max(12px,env(safe-area-inset-right,0px));z-index:120;display:inline-flex;align-items:center;gap:8px;padding:8px 14px;font-size:.875rem;font-weight:600;color:#0f172a;background:#fff;border:1px solid #cbd5e1;border-radius:10px;box-shadow:0 2px 10px #0f172a1f;cursor:pointer;font-family:inherit}.sankey-fullscreen-exit-btn:hover{background:#f1f5f9}.sankey-container.sankey-container--viewport-fullscreen .sankey-svg-wrapper{flex:1 1 auto;min-height:0!important;height:auto!important;box-sizing:border-box}.dual-substitute-chip{font-size:12px;font-weight:500;color:#334155;background:#f8fafc;border:1px solid #e2e8f0;border-left:3px solid var(--dual-substitute-accent, transparent);box-shadow:none;padding:6px 12px;border-radius:6px;cursor:pointer;opacity:1;transition:all .15s ease;white-space:nowrap;line-height:1.2}.dual-substitute-chip:hover:not(.is-disabled){background:#f1f5f9!important;border-color:#94a3b8!important;color:#0f172a!important}.dual-substitute-chip.is-selected{font-weight:700;color:#f8fafc;background:#475569;border:2px solid #64748b;border-left:3px solid var(--dual-substitute-accent, #64748b);box-shadow:0 0 10px #33415559,inset 0 1px #ffffff1f;padding:5px 11px}.dual-substitute-chip.is-selected:hover{background:#334155!important;border-color:#64748b!important;border-left-color:var(--dual-substitute-accent, #64748b)!important;border-left-width:3px!important}.dual-substitute-chip.is-disabled{color:#94a3b8;background:#f1f5f9;cursor:not-allowed;opacity:.5;box-shadow:none}.dual-substitute-chip.is-disabled:hover{background:#f1f5f9!important;border-color:#e2e8f0!important}.dual-tooltip-substitutes-section{flex-direction:column;align-items:flex-start;margin:12px 0 8px;border-top:1px solid #e2e8f0;padding-top:8px}.dual-tooltip-substitutes-label{font-size:11px;color:#475569;text-transform:uppercase;margin-bottom:6px;display:block}.dual-tooltip-substitutes-list{display:flex;flex-wrap:wrap;gap:8px}.dual-tooltip-substitute-chip{background:#f1f5f9;padding:4px 10px;border-radius:6px;font-size:14px;font-weight:700;color:#0f172a;border:1px solid #e2e8f0;border-left:3px solid var(--dual-substitute-accent, var(--dual-tooltip-substitute-accent, transparent))}.dual-comparison-tooltip{border:1px solid #e2e8f0;border-radius:10px;padding:12px 14px;max-width:360px;box-shadow:0 18px 36px #0f172a1f}.dual-tooltip-context{margin-bottom:8px;line-height:1.6;color:#1e293b}.dual-tooltip-comparison-section{margin-top:10px;padding:12px;border:1px solid #dbe6f3;border-radius:9px;background:#f8fafc}.dual-tooltip-encoding-section{margin-top:10px;padding-top:10px;border-top:1px solid #e2e8f0}.dual-tooltip-exclusive-section{margin-top:10px;padding-top:10px;border-top:1px solid #e2e8f0;display:flex;align-items:center;justify-content:space-between;gap:10px}.dual-tooltip-comparison-kicker{margin-bottom:10px;color:#64748b;font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.dual-tooltip-comparison-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(108px,1.2fr) minmax(0,1fr);align-items:stretch;gap:10px}.dual-tooltip-comparison-column{display:flex;flex-direction:column;justify-content:center;gap:4px}.dual-tooltip-comparison-column-left{text-align:left}.dual-tooltip-comparison-column-right{text-align:right}.dual-tooltip-comparison-label{font-size:11px;font-weight:700;line-height:1.25;text-align:center;white-space:pre-line}.dual-tooltip-comparison-value{font-size:var(--dual-tooltip-ontology-prob-size, 14px);font-weight:800;line-height:1.1;word-break:break-word}.dual-tooltip-comparison-meta{color:#64748b;font-size:10px;font-weight:600;letter-spacing:.02em;text-transform:uppercase}.dual-tooltip-ratio-block{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:8px 10px}.dual-tooltip-ratio-values{display:flex;align-items:baseline;gap:8px}.dual-tooltip-ratio-value{font-size:16px;font-weight:800;line-height:1}.dual-tooltip-ratio-divider{color:#94a3b8;font-size:14px;font-weight:700}.dual-tooltip-secondary-block{margin-top:10px;padding-top:10px;border-top:1px solid #e2e8f0}.dual-tooltip-presence-badges{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}.dual-tooltip-presence-badge{color:var(--dual-tooltip-presence-fg, #0f172a);background:var(--dual-tooltip-presence-bg, #f1f5f9);padding:3px 8px;border-radius:999px;font-size:11px;font-weight:700;line-height:1.2}.dual-tooltip-presence-unknown{color:#64748b;font-weight:500}.dual-tooltip-tree-substitutes{margin-top:10px;display:flex;flex-direction:column;gap:8px}.dual-tooltip-tree-substitute-group{display:flex;flex-direction:column;gap:5px}.dual-tooltip-tree-substitute-title{font-size:11px;font-weight:700;letter-spacing:.02em}.dual-tooltip-tree-substitute-list{display:flex;flex-wrap:wrap;gap:6px}.dual-tooltip-tree-substitute-chip{color:var(--dual-tooltip-tree-chip-fg, #334155);background:var(--dual-tooltip-tree-chip-bg, #f1f5f9);padding:2px 7px;border-radius:999px;font-size:11px;font-weight:700;line-height:1.25}.bipolar-ratio-slider{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #cbd5e1;border-radius:6px;padding:6px 10px;cursor:pointer;white-space:nowrap;--bipolar-ont1: #60a5fa;--bipolar-ont2: #a78bfa;--bipolar-thumb: #64748b}.bipolar-ratio-slider-pct{font-size:11px;font-weight:700;min-width:3em;text-align:center;line-height:1}.bipolar-ratio-slider-pct--ont1{color:var(--bipolar-ont1)}.bipolar-ratio-slider-pct--ont2{color:var(--bipolar-ont2)}.bipolar-ratio-slider-input{-webkit-appearance:none;appearance:none;height:4px;margin:0;border-radius:999px;background:linear-gradient(to right,var(--bipolar-ont1) 0%,var(--bipolar-ont1) 50%,var(--bipolar-ont2) 50%,var(--bipolar-ont2) 100%);cursor:pointer;accent-color:transparent}.bipolar-ratio-slider-input:focus{outline:none}.bipolar-ratio-slider-input:focus-visible{outline:2px solid #94a3b8;outline-offset:2px}.bipolar-ratio-slider-input::-webkit-slider-runnable-track{height:4px;border-radius:999px;background:linear-gradient(to right,var(--bipolar-ont1) 0%,var(--bipolar-ont1) 50%,var(--bipolar-ont2) 50%,var(--bipolar-ont2) 100%)}.bipolar-ratio-slider-input::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:14px;height:14px;margin-top:-5px;border-radius:50%;background:var(--bipolar-thumb);border:2px solid #ffffff;box-shadow:0 0 0 1px #94a3b8;cursor:pointer}.bipolar-ratio-slider-input::-moz-range-track{height:4px;border:none;border-radius:999px;background:linear-gradient(to right,var(--bipolar-ont1) 0%,var(--bipolar-ont1) 50%,var(--bipolar-ont2) 50%,var(--bipolar-ont2) 100%)}.bipolar-ratio-slider-input::-moz-range-thumb{width:14px;height:14px;border-radius:50%;background:var(--bipolar-thumb);border:2px solid #ffffff;box-shadow:0 0 0 1px #94a3b8;cursor:pointer}.bipolar-prune-toggle{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #cbd5e1;border-radius:6px;padding:6px 10px;cursor:pointer;white-space:nowrap;color:#64748b;font-size:11px;font-weight:500;line-height:1}.bipolar-prune-toggle:hover{border-color:#94a3b8;color:#475569}.bipolar-prune-toggle.is-checked{color:#334155;font-weight:600}.bipolar-prune-toggle-box{width:14px;height:14px;border-radius:3px;border:1.5px solid #cbd5e1;background:#fff;flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;color:#fff;font-size:10px;line-height:1}.bipolar-prune-toggle.is-checked .bipolar-prune-toggle-box{border-color:#475569;background:#475569}.comparison-sankey-view{position:relative;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto 1fr;gap:4px;width:100%;flex:1 1 auto;min-height:400px;height:100%;max-height:100%;box-sizing:border-box}.comparison-sankey-view.comparison-sankey-view--embed-toolbar:not(.merged-view){grid-template-rows:minmax(0,1fr)}.comparison-sankey-view.is-fullscreen{--comparison-fs-exit-h: 52px;position:fixed;inset:0;width:100vw;margin:0;transform:none;z-index:10050;box-sizing:border-box;background:#f8fafc;padding:0 10px 10px;padding-left:max(10px,env(safe-area-inset-left,0px));padding-right:max(10px,env(safe-area-inset-right,0px));padding-bottom:max(10px,env(safe-area-inset-bottom,0px));width:100%;max-width:100vw;height:100vh;max-height:100vh;min-height:0;grid-template-rows:auto minmax(0,1fr)}@supports (height: 100dvh){.comparison-sankey-view.is-fullscreen{height:100dvh;max-height:100dvh}}.comparison-sankey-view.is-fullscreen.comparison-sankey-view--embed-toolbar{grid-template-rows:auto minmax(0,1fr)}.comparison-sankey-view.is-fullscreen.comparison-sankey-view--fullscreen-with-toolbar{--comparison-fs-exit-h: 112px;grid-template-rows:auto auto minmax(0,1fr)}.comparison-sankey-view.is-fullscreen.comparison-sankey-view--fullscreen-with-toolbar .merge-toolbar.comparison-toolbar{grid-row:2;grid-column:1 / -1;margin-top:0;margin-bottom:0}.comparison-sankey-view.is-fullscreen.comparison-sankey-view--fullscreen-with-toolbar>.comparison-column{grid-row:3}.comparison-fullscreen-exit-row{grid-column:1 / -1;grid-row:1;display:flex;justify-content:flex-end;align-items:center;flex-shrink:0;padding:10px 2px 8px;padding-top:max(10px,env(safe-area-inset-top,0px));box-sizing:border-box}.comparison-fullscreen-exit-btn{display:inline-flex;align-items:center;gap:8px;padding:8px 14px;font-size:.875rem;font-weight:600;color:#0f172a;background:#fff;border:1px solid #cbd5e1;border-radius:10px;box-shadow:0 2px 8px #0f172a14;cursor:pointer;font-family:inherit}.comparison-fullscreen-exit-btn:hover{background:#f1f5f9;border-color:#94a3b8}.comparison-fullscreen-exit-btn:focus-visible{outline:2px solid #3b82f6;outline-offset:2px}.comparison-sankey-view.is-fullscreen.comparison-sankey-view--embed-toolbar>.comparison-column{grid-row:2;min-height:0}.comparison-sankey-view.is-fullscreen.is-fullscreen-single-primary,.comparison-sankey-view.is-fullscreen.is-fullscreen-single-secondary{grid-template-columns:1fr}.comparison-sankey-view.is-fullscreen.is-fullscreen-single-primary .comparison-column.secondary,.comparison-sankey-view.is-fullscreen.is-fullscreen-single-secondary .comparison-column.primary{display:none!important}.comparison-sankey-view.is-fullscreen.is-fullscreen-single-primary .comparison-column.primary,.comparison-sankey-view.is-fullscreen.is-fullscreen-single-secondary .comparison-column.secondary{grid-column:1 / -1}.comparison-column{background:#fff;border-radius:8px;border:none;overflow:hidden;display:flex;flex-direction:column;min-height:0}.comparison-sankey-view.is-fullscreen .comparison-column{border-radius:6px}.comparison-column-content{flex:1;display:flex;flex-direction:column;width:100%;min-height:0;overflow:visible}.comparison-column-content .sankey-container{flex:1;height:100%;min-height:0}.comparison-column-content .sankey-svg-wrapper{height:100%!important;min-height:0!important}.comparison-column-content button{display:flex;align-items:center;justify-content:center}.comparison-column-content button svg{display:block;flex-shrink:0}.comparison-column-content .sankey-container>div::-webkit-scrollbar{height:4px}.comparison-column-content .sankey-container>div::-webkit-scrollbar-track{background:transparent}.comparison-column-content .sankey-container>div::-webkit-scrollbar-thumb{background:#0f172a33;border-radius:2px}.comparison-empty{display:flex;align-items:center;justify-content:center;height:200px;color:#64748b;font-size:.85rem;font-style:italic}.merge-toolbar{grid-column:1 / -1;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:.6rem 1rem;background:#fff;border:1px solid #e2e8f0;border-radius:10px;box-shadow:0 2px 8px #0000000a;box-sizing:border-box}.merge-toolbar.comparison-toolbar{order:-1;grid-row:1;width:100%;margin:0 0 .35rem}.comparison-embed-floating-actions{position:absolute;top:12px;right:12px;z-index:10002;display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end;max-width:calc(100% - 24px)}.comparison-sankey-view.is-fullscreen .merge-toolbar{padding:.35rem .75rem;border-radius:8px;background:#fff;border-color:#e2e8f0;box-shadow:0 2px 8px #0000000f;backdrop-filter:none;-webkit-backdrop-filter:none}.comparison-sankey-view.is-fullscreen .merge-toolbar-title{font-size:.78rem;color:#1e293b}.comparison-sankey-view.is-fullscreen .merge-toolbar-subtitle,.comparison-sankey-view.is-fullscreen .merge-info{display:none}.comparison-sankey-view.is-fullscreen .merge-btn{padding:.3rem .65rem;font-size:.75rem;background:#f8fafc;border-color:#e2e8f0;color:#334155}.comparison-sankey-view.is-fullscreen .merge-btn:hover{background:#edf2f7;color:#0f172a;transform:none}.comparison-sankey-view.is-fullscreen .merge-btn.has-filters{background:#f1f5f9;border-color:#94a3b8;color:#334155}.merge-toolbar-content{display:flex;align-items:center;gap:.75rem;min-width:0;flex:1;flex-wrap:wrap}.merge-toolbar-title-group{display:flex;align-items:baseline;gap:.5rem;flex-wrap:wrap}.merge-toolbar-title{font-size:.82rem;font-weight:700;color:#2d3748;white-space:nowrap}.merge-toolbar-subtitle{font-size:.75rem;color:#a0aec0;line-height:1.3}.merge-toolbar-actions{display:flex;align-items:center;gap:.5rem;flex-shrink:0}.merge-btn{display:inline-flex;align-items:center;gap:6px;padding:.4rem .875rem;font-size:.78rem;font-weight:700;color:#4a5568;background:#f8fafc;border:2px solid #e2e8f0;border-radius:8px;cursor:pointer;transition:all .15s ease;white-space:nowrap;font-family:inherit}.merge-btn:hover{color:#2d3748;background:#edf2f7;border-color:#4a5568;transform:translateY(-1px)}.merge-btn.has-filters{color:#334155;background:#f1f5f9;border-color:#94a3b8}.merge-btn.has-filters:hover{background:#e2e8f0;border-color:#64748b}.merge-back-btn{display:inline-flex;align-items:center;gap:5px;padding:.35rem .75rem;font-size:.75rem;font-weight:700;color:#4a5568;background:#f8fafc;border:2px solid #e2e8f0;border-radius:8px;cursor:pointer;transition:all .15s ease;font-family:inherit}.merge-back-btn:hover{color:#2d3748;background:#edf2f7;border-color:#4a5568}.merge-view-tabs{display:flex;gap:2px;background:#edf2f7;border-radius:8px;padding:3px}.merge-tab{display:inline-flex;align-items:center;gap:4px;padding:.3rem .65rem;font-size:.72rem;font-weight:700;color:#718096;background:transparent;border:none;border-radius:6px;cursor:pointer;transition:all .15s ease;font-family:inherit;text-transform:uppercase;letter-spacing:.03em}.merge-tab:hover{color:#4a5568;background:#e2e8f0}.merge-tab.active{color:#2d3748;background:#fff;box-shadow:0 1px 3px #00000014}.merge-info{display:flex;gap:.3rem;align-items:center;flex-wrap:wrap}.merge-filter-badge{font-size:.67rem;font-weight:700;padding:.15rem .5rem;border-radius:6px;letter-spacing:.03em;border:1px solid transparent;text-transform:uppercase}.merge-filter-badge.primary{color:#2b6cb0;background:#ebf8ff;border-color:#bee3f8}.merge-filter-badge.secondary{color:#553c9a;background:#faf5ff;border-color:#e9d8fd}.merge-filter-badge.neutral{color:#718096;background:#f8fafc;border-color:#e2e8f0}.merge-filter-badge.local{color:#276749;background:#f0fff4;border-color:#c6f6d5}.comparison-sankey-view.merged-view{display:flex;flex-direction:column;width:100%;min-height:400px;height:100%;max-height:100%;flex:1 1 auto;grid-template-columns:unset}.comparison-sankey-view.merged-view.comparison-sankey-view--embed-toolbar{min-height:0}.merged-view-container{flex:1;display:flex;flex-direction:column;align-items:center;background:#fff;border-radius:8px;border:none;overflow:hidden;min-height:0}.merged-canvas-shell{width:100%;max-width:1600px;margin:0 auto;min-height:700px;height:calc(100vh - 500px)}.comparison-sankey-view--embed-toolbar .merged-canvas-shell{flex:1;min-height:0;height:100%;max-height:100%}.merged-side-by-side{display:grid;grid-template-columns:1fr 1fr;gap:4px;width:100%;height:100%;min-height:0}.merged-side-by-side .merged-panel{display:flex;flex-direction:column;background:#fff;border-radius:8px;border:none;overflow:hidden;min-height:0}.merged-side-by-side .merged-panel-header{display:flex;align-items:center;justify-content:center;padding:8px 12px;background:#f8fafc;border-bottom:1px solid #e2e8f0;flex-shrink:0}.merged-side-by-side .merged-panel-header h4{margin:0;font-size:.82rem;font-weight:600;color:#475569;letter-spacing:-.01em}.merged-side-by-side .merged-panel-content{flex:1;display:flex;flex-direction:column;min-height:0}.merge-empty{display:flex;align-items:center;justify-content:center;height:200px;color:#64748b;font-size:.85rem;font-style:italic}.comparison-fullscreen-btn:hover{background:#4755691f!important;border-color:#64748b73!important;color:#475569!important}@media(max-width:1200px){.merge-toolbar{flex-wrap:wrap}.merge-toolbar-actions{width:100%;justify-content:flex-start;flex-wrap:wrap}.comparison-sankey-view{grid-template-columns:1fr;grid-template-rows:auto auto auto;height:auto;max-height:none}.comparison-sankey-view.comparison-sankey-view--embed-toolbar:not(.merged-view){grid-template-rows:auto}.comparison-column-content{min-height:400px}.merged-side-by-side{grid-template-columns:1fr}}@media(max-width:740px){.merge-toolbar-title{font-size:.94rem}.merge-toolbar-subtitle{font-size:.78rem}.merge-btn{width:100%;justify-content:center}}.comparison-merged-view{display:flex;align-items:stretch;flex-direction:column;width:100%;margin-top:10px}.comparison-merged-view--fill{flex:1 1 auto;min-height:0;margin-top:0}.comparison-merged-view.is-fullscreen{position:fixed;inset:0;width:100vw;max-width:100vw;margin:0;transform:none;z-index:10050;box-sizing:border-box;background:#f8fafc;padding:0 10px 10px;padding-left:max(10px,env(safe-area-inset-left,0px));padding-right:max(10px,env(safe-area-inset-right,0px));padding-bottom:max(10px,env(safe-area-inset-bottom,0px));height:100vh;max-height:100vh;min-height:0}@supports (height: 100dvh){.comparison-merged-view.is-fullscreen{height:100dvh;max-height:100dvh}}.merged-fullscreen-exit-row{display:flex;justify-content:flex-end;align-items:center;flex-shrink:0;width:100%;padding:10px 2px 8px;padding-top:max(10px,env(safe-area-inset-top,0px));box-sizing:border-box}.merged-fullscreen-exit-btn{display:inline-flex;align-items:center;gap:8px;padding:8px 14px;font-size:.875rem;font-weight:600;color:#0f172a;background:#fff;border:1px solid #cbd5e1;border-radius:10px;box-shadow:0 2px 8px #0f172a14;cursor:pointer;font-family:inherit}.merged-fullscreen-exit-btn:hover{background:#f1f5f9;border-color:#94a3b8}.comparison-merged-panels.is-fullscreen-single-left,.comparison-merged-panels.is-fullscreen-single-right{grid-template-columns:1fr}.comparison-merged-panels.is-fullscreen-single-left .merged-panel:last-child{display:none!important}.comparison-merged-panels.is-fullscreen-single-right .merged-panel:first-child{display:none!important}.comparison-merged-panels.is-fullscreen-single-left .merged-panel:first-child,.comparison-merged-panels.is-fullscreen-single-right .merged-panel:last-child{grid-column:1 / -1}.comparison-merged-view-tabs-row{display:flex;justify-content:center;align-items:center;flex-shrink:0;width:100%;padding:.35rem .5rem .45rem;box-sizing:border-box}.merged-view-tabs{display:flex;gap:2px;background:#edf2f7;border-radius:8px;padding:3px}.merged-view-tab{display:inline-flex;align-items:center;gap:4px;padding:.3rem .65rem;font-size:.72rem;font-weight:700;color:#718096;background:transparent;border:none;border-radius:6px;cursor:pointer;transition:all .15s ease;font-family:inherit;letter-spacing:.01em;white-space:nowrap}.merged-view-tab:hover{color:#4a5568;background:#e2e8f0}.merged-view-tab.active{color:#2d3748;background:#fff;box-shadow:0 1px 3px #00000014}.comparison-merged-panels--solo{grid-template-columns:1fr;position:relative}.comparison-merged-panels--solo .merged-panel{display:flex;position:absolute;inset:0;grid-column:1 / -1;opacity:0;visibility:hidden;pointer-events:none;z-index:0;transition:opacity .4s ease,visibility .4s ease}.comparison-merged-panels--solo .merged-panel.is-active-panel{opacity:1;visibility:visible;pointer-events:auto;z-index:1}.comparison-merged-panels--solo .merged-panel-header{display:none}.comparison-merged-panels--solo.is-fullscreen-single-left .merged-panel:first-child,.comparison-merged-panels--solo.is-fullscreen-single-right .merged-panel:last-child{display:flex}.comparison-merged-panels--solo.is-fullscreen-single-left .merged-panel:last-child,.comparison-merged-panels--solo.is-fullscreen-single-right .merged-panel:first-child{display:none!important}.comparison-merged-toolbar{display:flex;align-items:center;gap:10px;padding:.55rem 1rem;background:#fff;border:1px solid #e2e8f0;border-radius:10px 10px 0 0;width:100%;box-shadow:0 2px 8px #0000000a;box-sizing:border-box;flex-shrink:0}.comparison-merged-toolbar--badges-only{justify-content:center}.comparison-merged-toolbar--badges-only .merged-toolbar-info{margin-left:0;justify-content:center}.merged-back-btn{display:inline-flex;align-items:center;gap:5px;padding:.35rem .75rem;font-size:.75rem;font-weight:700;color:#4a5568;background:#f8fafc;border:2px solid #e2e8f0;border-radius:8px;cursor:pointer;transition:all .15s ease;font-family:inherit;flex-shrink:0}.merged-back-btn:hover{color:#2d3748;background:#edf2f7;border-color:#4a5568}.merged-toolbar-info{display:flex;gap:.35rem;align-items:center;flex-wrap:wrap;min-width:0}.merged-toolbar-ontology-row{display:flex;align-items:center;justify-content:center;gap:.65rem;flex-wrap:wrap;flex:1;min-width:0}.merged-ontology-pill{display:flex;flex-direction:column;align-items:flex-start;gap:.15rem;font-weight:600;font-size:.88rem;padding:.38rem .8rem;border-radius:10px;line-height:1.25}.merged-ontology-pill--primary{background:#dbeafe;color:#1e40af}.merged-ontology-pill--secondary{background:#ede9fe;color:#5b21b6}.merged-ontology-name{font-weight:700}.merged-ontology-meta{font-weight:400;font-size:.78rem;opacity:.85}.merged-ontology-vs{font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:#94a3b8;flex-shrink:0}.merged-toolbar-title{font-size:.8rem;font-weight:700;color:#2d3748;letter-spacing:-.01em;white-space:nowrap;margin-right:.25rem}.merged-filter-badge{font-size:.67rem;font-weight:700;padding:.15rem .5rem;border-radius:6px;letter-spacing:.03em;border:1px solid transparent;text-transform:uppercase}.merged-filter-badge.primary{color:#2b6cb0;background:#ebf8ff;border-color:#bee3f8}.merged-filter-badge.secondary{color:#553c9a;background:#faf5ff;border-color:#e9d8fd}.merged-filter-badge.neutral{color:#718096;background:#f8fafc;border-color:#e2e8f0}.merged-filter-badge.local{color:#276749;background:#f0fff4;border-color:#c6f6d5}.comparison-merged-panels{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:minmax(0,1fr);gap:4px;width:100%;min-height:400px;box-sizing:border-box}.comparison-merged-panels--fill{flex:1 1 auto;min-height:0}.merged-panel{display:flex;flex-direction:column;background:#fff;border-radius:8px;border:none;overflow:hidden;min-height:0}.merged-panel-header{display:flex;align-items:center;justify-content:center;padding:6px 12px;background:#f8fafc;border-bottom:1px solid #e2e8f0;flex-shrink:0}.merged-panel-header h4{margin:0;font-size:.72rem;font-weight:700;color:#718096;letter-spacing:.01em}.merged-panel-content{flex:1;display:flex;flex-direction:column;min-height:0;overflow:visible}.merged-panel-content .sankey-container{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;height:100%}.merged-panel-content .sankey-svg-wrapper{flex:1 1 auto;min-height:0}.merged-panel-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;height:200px;color:#64748b;font-size:.85rem;font-style:italic;gap:12px}.merged-panel-empty button{padding:6px 14px;font-size:.78rem;font-weight:600;color:#475569;background:#f8fafc;border:1px solid #cbd5e1;border-radius:6px;cursor:pointer;transition:all .15s ease;font-family:inherit}.merged-panel-empty button:hover{color:#1e293b;background:#edf2f7}.merged-panel-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;height:200px;color:#64748b;font-size:.85rem;gap:8px}.merged-panel-loading .loading-spinner{width:32px;height:32px;border:3px solid #e2e8f0;border-top-color:#60a5fa;border-radius:50%;animation:spin .8s linear infinite}.merged-panel-loading .hint{font-size:.75rem;color:#64748b}.merged-panel-error{display:flex;flex-direction:column;align-items:center;justify-content:center;height:200px;color:#f87171;font-size:.85rem;gap:12px}.merged-panel-error button{padding:6px 14px;font-size:.78rem;font-weight:500;color:#f87171;background:#fff5f5;border:1px solid #feb2b2;border-radius:6px;cursor:pointer;transition:all .15s ease;font-family:inherit}.merged-panel-error button:hover{background:#fed7d7}@media(max-width:1200px){.comparison-merged-toolbar{flex-wrap:wrap}.comparison-merged-panels{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) minmax(0,1fr)}.merged-panel{min-height:0}}@media(max-width:740px){.merged-toolbar-title{font-size:.92rem}.merged-back-btn{width:100%;justify-content:center}}.sankey-merge-animation-host{position:absolute;inset:0;display:flex;flex-direction:column;background:#fff;border-radius:8px;overflow:hidden;z-index:4;min-height:320px}.sankey-merge-animation-stage{position:relative;flex:1 1 auto;display:grid;grid-template-columns:1fr 1fr;gap:0;min-height:0;padding:.35rem .25rem .5rem}.sankey-merge-animation-stage--juxtaposition{display:block;padding:0}.sankey-merge-animation-panel{position:relative;display:flex;flex-direction:column;min-width:0;min-height:0;transform-origin:center center;will-change:transform,opacity}.sankey-merge-animation-stage--juxtaposition .sankey-merge-animation-panel{overflow:hidden;border-radius:8px}.sankey-merge-animation-panel-label{display:none}.sankey-merge-animation-panel-viz{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}.sankey-merge-animation-panel-viz .sankey-container{flex:1 1 auto;min-height:0;border:none}.sankey-merge-animation-panel-viz .sankey-svg-wrapper{min-height:0!important}.merged-panel-content--merge-animating{position:relative;flex:1 1 auto;min-height:320px}.merged-panel:has(.merged-panel-content--merge-animating){border-color:transparent}.merged-panel-content--merge-animating>.sankey-container{display:none}.cluster-count-slider{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #cbd5e1;border-radius:6px;padding:6px 10px;cursor:pointer;white-space:nowrap;min-width:0}.cluster-count-slider-label{font-size:11px;font-weight:500;color:#64748b}.cluster-count-slider-input{width:88px;margin:0;accent-color:#64748b;cursor:pointer}.cluster-count-slider-input:disabled{opacity:.45;cursor:not-allowed}.gt-old-page .gt-page{width:100%;min-height:100vh;margin:0;padding:0;color:#1e293b}.gt-old-page .gt-controls-area{max-width:920px;margin:0 auto;padding:2.5rem 2rem 1rem}.gt-old-page .gt-page-header{text-align:center;margin-bottom:2rem}.gt-old-page .gt-page-header h1{font-size:2.25rem;font-weight:700;letter-spacing:-.04em;color:#0f172a;margin:0 0 .35rem}.gt-old-page .gt-subtitle{color:#64748b;font-size:.95rem;font-weight:400;margin:0;letter-spacing:-.01em}.gt-old-page .gt-error{background:#fef2f2;border:1px solid #fecaca;border-radius:10px;padding:1rem 1.25rem;margin-top:1.5rem}.gt-old-page .gt-error strong{display:block;color:#b91c1c;font-size:.9rem;margin-bottom:.4rem}.gt-old-page .gt-error pre{margin:0;color:#7f1d1d;white-space:pre-wrap;font-size:.82rem;line-height:1.5}.gt-old-page .gt-results-area{width:100%;padding:0 1.5rem 3rem}.gt-old-page .gt-results-header{display:flex;flex-direction:column;gap:.95rem;align-items:center;padding:1.25rem 1.4rem;background:#fff;border:1px solid #e2e8f0;border-radius:16px;margin-bottom:1.25rem;max-width:1320px;margin-left:auto;margin-right:auto;box-shadow:0 6px 18px #0f172a14}.gt-old-page .gt-results-header-top{display:flex;align-items:center;justify-content:center;gap:.75rem;flex-wrap:wrap;width:100%}.gt-old-page .gt-results-mode-tag{font-size:.76rem;font-weight:700;text-transform:uppercase;letter-spacing:.07em;color:#334155;background:#e2e8f0;padding:.3rem .7rem;border-radius:7px}.gt-old-page .gt-results-strategy-tag{font-size:.76rem;font-weight:700;color:#1e3a8a;background:#dbeafe;border:1px solid #bfdbfe;padding:.3rem .7rem;border-radius:7px}.gt-old-page .gt-results-ontology-row{display:flex;align-items:center;justify-content:center;gap:.75rem;flex-wrap:wrap;width:100%}.gt-old-page .gt-pill{display:flex;align-items:center;gap:.5rem;font-weight:600;font-size:.94rem;padding:.5rem .95rem;border-radius:10px}.gt-old-page .gt-pill--primary{background:#dbeafe;color:#1e40af}.gt-old-page .gt-pill--secondary{background:#ede9fe;color:#5b21b6}.gt-old-page .gt-pill-meta{font-weight:400;font-size:.78rem;color:inherit;opacity:.7}.gt-old-page .gt-pill-vs{font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:#94a3b8}.gt-old-page .gt-single-ontology{font-weight:700;font-size:1.05rem;color:#0f172a}.gt-old-page .gt-single-stats{display:flex;align-items:center;gap:.65rem;font-size:.9rem;color:#64748b}.gt-old-page .gt-stat-dot{width:3px;height:3px;border-radius:50%;background:#cbd5e1;flex-shrink:0}.gt-old-page .gt-results-inference-block{width:min(100%,980px);display:flex;flex-direction:column;align-items:center;gap:.8rem;padding:.95rem 1rem 1rem;border:1px solid #dbe3ee;border-radius:12px;background:#f8fafc}.gt-old-page .gt-results-inference-title{text-align:center;color:#0f172a;font-size:1.02rem;font-weight:700;letter-spacing:-.01em}.gt-old-page .gt-results-inference-grid{width:100%;display:grid;grid-template-columns:repeat(3,minmax(160px,1fr));gap:.6rem}.gt-old-page .gt-results-inference-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.28rem;min-height:74px;padding:.55rem .6rem;border:1px solid #d5dde8;border-radius:10px;background:#fff;text-align:center}.gt-old-page .gt-results-inference-label{font-size:.73rem;color:#64748b;text-transform:uppercase;letter-spacing:.05em;font-weight:700}.gt-old-page .gt-results-inference-value{font-size:.92rem;color:#1e293b;font-weight:700;line-height:1.25}.gt-old-page .gt-sankey-stage{background:transparent;padding:0;min-height:600px;overflow:hidden}.gt-old-page .gt-merged-results-area{margin-top:.25rem}.gt-old-page .gt-empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:340px;text-align:center;gap:.5rem;padding:3rem}.gt-old-page .gt-empty-icon{font-size:3rem;line-height:1;margin-bottom:.25rem;opacity:.6}.gt-old-page .gt-empty-state p{margin:0;font-size:1.05rem;font-weight:600;color:#334155}.gt-old-page .gt-empty-state span{font-size:.88rem;color:#94a3b8}.gt-old-page .gt-save-overlay{position:fixed;inset:0;background:#0f172a73;display:flex;align-items:center;justify-content:center;z-index:10000;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}.gt-old-page .gt-save-dialog{background:#fff;border-radius:14px;padding:1.75rem;width:420px;max-width:calc(100vw - 2rem);box-shadow:0 24px 64px #0000002e}.gt-old-page .gt-save-dialog h4{margin:0 0 1rem;font-size:1.1rem;font-weight:700;color:#0f172a}.gt-old-page .gt-save-error{background:#fef2f2;color:#b91c1c;padding:.5rem .75rem;border-radius:8px;font-size:.82rem;margin-bottom:.75rem;border:1px solid #fecaca}.gt-old-page .gt-save-dialog input{width:100%;padding:.7rem .85rem;border:1.5px solid #e2e8f0;border-radius:10px;font-size:.92rem;margin-bottom:1rem;box-sizing:border-box;transition:border-color .15s;outline:none;font-family:inherit}.gt-old-page .gt-save-dialog input:focus{border-color:#3b82f6}.gt-old-page .gt-save-actions{display:flex;justify-content:flex-end;gap:.5rem}.gt-old-page .gt-save-actions button{padding:.5rem 1.15rem;border:none;border-radius:8px;font-weight:600;cursor:pointer;font-size:.88rem;font-family:inherit;transition:background .15s,opacity .15s;background:#f1f5f9;color:#475569}.gt-old-page .gt-save-actions button:hover{background:#e2e8f0}.gt-old-page .gt-save-actions button.gt-save-primary{background:#3b82f6;color:#fff}.gt-old-page .gt-save-actions button.gt-save-primary:hover{background:#2563eb}.gt-old-page .gt-save-actions button:disabled{opacity:.5;cursor:not-allowed}@media(max-width:740px){.gt-old-page .gt-controls-area{padding:1.5rem 1rem .5rem}.gt-old-page .gt-page-header h1{font-size:1.75rem}.gt-old-page .gt-results-area{padding:0 .75rem 2rem}.gt-old-page .gt-results-header{padding:.8rem .85rem}.gt-old-page .gt-results-header-top{justify-content:flex-start}.gt-old-page .gt-results-ontology-row{flex-direction:column;align-items:flex-start;gap:.5rem}.gt-old-page .gt-results-inference-block{width:100%;align-items:flex-start}.gt-old-page .gt-results-inference-title{width:100%;text-align:left;font-size:.94rem}.gt-old-page .gt-results-inference-grid{grid-template-columns:1fr;gap:.5rem}.gt-old-page .gt-results-inference-item{align-items:flex-start;text-align:left;min-height:unset}}.gt-old-page .saved-examples-panel{background:#fff;border:1px solid #e2e8f0;border-radius:16px;box-shadow:0 4px 20px #0000000f;padding:1.25rem;margin-bottom:1.5rem;max-width:1000px;margin-left:auto;margin-right:auto;transition:opacity .2s ease-in-out;display:flex;flex-direction:column;min-height:0;gap:.875rem;color:#2d3748;font-family:inherit;overflow:visible}.gt-old-page .saved-examples-panel.disabled{opacity:.6;pointer-events:none;cursor:wait}.gt-old-page .saved-examples-panel.collapsed-shell{padding:.5rem;background:#fff;border:1px solid #e2e8f0;box-shadow:0 4px 20px #0000000f;border-radius:16px;gap:.625rem}.gt-old-page .saved-examples-panel.collapsed-shell .panel-reopen-btn{border:1px solid #e2e8f0;background:#f8fafc;color:#2d3748;border-radius:10px}.gt-old-page .saved-examples-panel.collapsed-shell .recent-section{margin:0}.gt-old-page .saved-examples-panel.collapsed-shell .recent-list{display:grid;grid-template-columns:1fr 1fr 1fr;gap:.4rem}.gt-old-page .saved-examples-panel .panel-reopen-btn{width:100%;border:1px solid #b5c4de;background:linear-gradient(180deg,#f9fcff,#edf3fd);color:#1f2a44;border-radius:10px;padding:.65rem .9rem;font-weight:700;display:flex;justify-content:space-between;align-items:center;cursor:pointer}.gt-old-page .saved-examples-panel .panel-reopen-count{background:#4a5568;color:#fff;border-radius:999px;padding:.1rem .5rem;font-size:.72rem;font-weight:700}.gt-old-page .saved-examples-panel .examples-header{display:flex;justify-content:space-between;align-items:flex-start;gap:.75rem}.gt-old-page .saved-examples-panel .examples-header-main h3{margin:0;font-size:1.05rem;font-weight:600;color:#2d3748}.gt-old-page .saved-examples-panel .examples-header-main p{margin:.2rem 0 0;color:#718096;font-size:.78rem;letter-spacing:.02em;text-transform:uppercase}.gt-old-page .saved-examples-panel .examples-header-actions{display:flex;align-items:center;gap:.45rem}.gt-old-page .saved-examples-panel .save-example-btn{padding:.45rem .875rem;background:#38a169;color:#fff;border:none;border-radius:8px;font-size:.76rem;font-weight:700;cursor:pointer;transition:background .15s ease,transform .15s ease}.gt-old-page .saved-examples-panel .save-example-btn:hover:not(:disabled){background:#2f855a;transform:translateY(-1px)}.gt-old-page .saved-examples-panel .save-example-btn:disabled{opacity:.5;cursor:not-allowed;transform:none}.gt-old-page .saved-examples-panel .panel-close-btn{padding:.45rem .75rem;border-radius:8px;border:1px solid #e2e8f0;background:#f8fafc;color:#4a5568;cursor:pointer;font-weight:600;font-size:.75rem;transition:border-color .15s ease,background .15s ease}.gt-old-page .saved-examples-panel .panel-close-btn:hover{border-color:#4a5568;background:#fff}.gt-old-page .saved-examples-panel .panel-controls{display:grid;grid-template-columns:1fr auto;gap:.5rem}.gt-old-page .saved-examples-panel .panel-search-input,.gt-old-page .saved-examples-panel .panel-sort-select{width:100%;border:2px solid #e2e8f0;border-radius:9px;background:#f8fafc;color:#2d3748;font-size:.82rem;padding:.5rem .75rem;font-family:inherit;transition:border-color .2s ease,background .2s ease;box-sizing:border-box}.gt-old-page .saved-examples-panel .panel-search-input:focus,.gt-old-page .saved-examples-panel .panel-sort-select:focus{outline:none;border-color:#4a5568;background:#fff}.gt-old-page .saved-examples-panel .panel-filter-pills{display:flex;gap:.4rem;flex-wrap:wrap}.gt-old-page .saved-examples-panel .panel-filter-pills+.panel-filter-pills{margin-top:-.25rem;padding-top:.5rem;border-top:1px solid #edf2f7}.gt-old-page .saved-examples-panel .panel-filter-pill{border:2px solid #e2e8f0;border-radius:8px;padding:.3rem .65rem;font-size:.72rem;font-weight:700;letter-spacing:.02em;background:#f8fafc;color:#4a5568;cursor:pointer;transition:all .15s ease;text-transform:uppercase}.gt-old-page .saved-examples-panel .panel-filter-pill:hover{border-color:#4a5568;background:#fff;color:#2d3748}.gt-old-page .saved-examples-panel .panel-filter-pill.active{background:#4a5568;border-color:#4a5568;color:#fff}.gt-old-page .saved-examples-panel .panel-filter-pills--models .panel-filter-pill.active{background:#2b6cb0;border-color:#2b6cb0;color:#fff}.gt-old-page .saved-examples-panel .panel-filter-pills--models .panel-filter-pill:hover{border-color:#2b6cb0;color:#2b6cb0;background:#ebf8ff}.gt-old-page .saved-examples-panel .recent-section{border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc;padding:.65rem}.gt-old-page .saved-examples-panel .recent-title{font-size:.69rem;font-weight:700;letter-spacing:.06em;color:#718096;margin-bottom:.5rem;text-transform:uppercase}.gt-old-page .saved-examples-panel .recent-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.4rem;grid-auto-rows:1fr}.gt-old-page .saved-examples-panel .examples-loading,.gt-old-page .saved-examples-panel .examples-error,.gt-old-page .saved-examples-panel .no-examples{margin:0;color:#718096;font-size:.86rem;font-style:italic}.gt-old-page .saved-examples-panel .examples-error{color:#c53030}.gt-old-page .saved-examples-panel .examples-list{display:grid;grid-template-columns:1fr 1fr;grid-auto-rows:84px;gap:.5rem;min-height:0;overflow-y:auto;padding-right:.1rem}.gt-old-page .saved-examples-panel .examples-list.has-items{max-height:calc(504px + 2.5rem)}.gt-old-page .saved-examples-panel .examples-list.is-empty{max-height:none;overflow-y:visible}.gt-old-page .saved-examples-panel .example-btn{display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:.4rem;padding:.6rem .75rem;height:84px;background:#fff;border:2px solid #e2e8f0;border-radius:10px;cursor:pointer;transition:border-color .15s ease,background .15s ease,transform .15s ease;width:100%;text-align:left;box-sizing:border-box;overflow:hidden}.gt-old-page .saved-examples-panel .example-btn:hover:not(:disabled){border-color:#4a5568;background:#f8fafc;transform:translateY(-1px)}.gt-old-page .saved-examples-panel .example-btn.active{border-color:#86efac;background:#f0fdf4;color:#166534;font-weight:700;box-shadow:inset 0 0 0 1px #22c55e33}.gt-old-page .saved-examples-panel .example-btn:disabled{opacity:.6;cursor:not-allowed;transform:none}.gt-old-page .saved-examples-panel .example-btn.is-comparison:not(.active){border-left:3px solid #667eea}.gt-old-page .saved-examples-panel .example-btn.unsaved-example{border-color:#d69e2e;background:#fffbf0}.gt-old-page .saved-examples-panel .example-btn.is-compact{padding-top:.45rem;padding-bottom:.45rem}.gt-old-page .saved-examples-panel .example-btn.is-recent{min-height:84px;max-height:84px;overflow:hidden}.gt-old-page .saved-examples-panel .example-text{min-width:0;width:100%;display:flex;flex-direction:column;gap:.15rem}.gt-old-page .saved-examples-panel .example-name{font-weight:600;color:#2d3748;font-size:.875rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gt-old-page .saved-examples-panel .example-btn .example-name{color:#2d3748!important}.gt-old-page .saved-examples-panel .example-time{font-size:.68rem;color:#a0aec0;letter-spacing:.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.gt-old-page .saved-examples-panel .example-tags{display:flex;gap:.25rem;align-items:center;flex-wrap:nowrap;justify-content:flex-start;margin-left:0;flex-shrink:0;min-width:0;width:100%;overflow:hidden}.gt-old-page .saved-examples-panel .example-tags>span{min-width:0;max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex-shrink:1}.gt-old-page .saved-examples-panel .example-btn.is-recent .example-time{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gt-old-page .saved-examples-panel .example-btn.is-recent .example-tags{flex-wrap:nowrap;min-width:0;overflow:hidden;gap:.2rem}.gt-old-page .saved-examples-panel .example-btn.is-recent .example-tags>span{min-width:0;max-width:92px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex-shrink:1}.gt-old-page .saved-examples-panel .example-btn.is-recent .example-model-chip{max-width:122px;flex:0 1 auto;width:fit-content}.gt-old-page .saved-examples-panel .example-inference-mode{padding:.13rem .45rem;border-radius:6px;font-size:.62rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em}.gt-old-page .saved-examples-panel .example-inference-mode.local{background:#f0fff4;color:#276749;border:1px solid #c6f6d5}.gt-old-page .saved-examples-panel .example-inference-mode.api{background:#fffaf0;color:#744210;border:1px solid #fbd38d}.gt-old-page .saved-examples-panel .example-meta-chip{display:inline-flex;align-items:center;padding:.12rem .45rem;border-radius:6px;font-size:.62rem;font-weight:600;color:#4a5568;background:#edf2f7;border:1px solid #e2e8f0}.gt-old-page .saved-examples-panel .example-current-tag{display:inline-flex;align-items:center;padding:.12rem .45rem;border-radius:6px;font-size:.62rem;font-weight:700;color:#166534;background:#ecfdf3;border:1px solid #bbf7d0;text-transform:uppercase}.gt-old-page .saved-examples-panel .example-model-chip{max-width:168px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gt-old-page .saved-examples-panel .example-model-chip.apertus{color:#9b2c2c;background:#fff5f5;border-color:#fed7d7;font-weight:700}.gt-old-page .saved-examples-panel .example-comparison{padding:.12rem .45rem;border-radius:6px;font-size:.62rem;font-weight:700;background:#ebf4ff;color:#2b6cb0;border:1px solid #bee3f8;text-transform:uppercase}.gt-old-page .saved-examples-panel .example-unsaved-badge{padding:.12rem .45rem;border-radius:6px;font-size:.62rem;font-weight:700;background:#fffaf0;color:#744210;border:1px solid #fbd38d;text-transform:uppercase}@media(max-width:900px){.gt-old-page .saved-examples-panel{padding:.85rem}.gt-old-page .saved-examples-panel .examples-header{flex-direction:column;align-items:stretch}.gt-old-page .saved-examples-panel .examples-header-actions{justify-content:flex-end}.gt-old-page .saved-examples-panel .panel-controls,.gt-old-page .saved-examples-panel .examples-list,.gt-old-page .saved-examples-panel.collapsed-shell .recent-list{grid-template-columns:1fr}}@media(max-width:768px){.gt-old-page .saved-examples-panel .examples-list.has-items{max-height:calc(252px + 1rem)}}.gt-old-page .custom-dropdown{position:relative;width:100%;font-family:inherit}.gt-old-page .custom-dropdown:focus{outline:none}.gt-old-page .custom-dropdown:focus .custom-dropdown-trigger{border-color:#4a5568;background:#fff}.gt-old-page .custom-dropdown.disabled{opacity:.6;cursor:not-allowed}.gt-old-page .custom-dropdown.disabled .custom-dropdown-trigger{cursor:not-allowed}.gt-old-page .custom-dropdown-trigger{display:flex;align-items:center;justify-content:space-between;width:100%;padding:.875rem 1rem;background:#f8fafc;border:2px solid #e2e8f0;border-radius:10px;font-size:.9rem;font-weight:500;color:#2d3748;cursor:pointer;transition:all .2s ease}.gt-old-page .custom-dropdown-trigger:hover{border-color:#cbd5e0}.gt-old-page .custom-dropdown.open .custom-dropdown-trigger{border-color:#4a5568;background:#fff;border-bottom-left-radius:0;border-bottom-right-radius:0}.gt-old-page .custom-dropdown-value{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gt-old-page .custom-dropdown-arrow{color:#4a5568;flex-shrink:0;transition:transform .2s ease}.gt-old-page .custom-dropdown-arrow.rotated{transform:rotate(180deg)}.gt-old-page .custom-dropdown-menu{position:absolute;top:100%;left:0;right:0;background:#fff;border:2px solid #4a5568;border-top:none;border-bottom-left-radius:10px;border-bottom-right-radius:10px;max-height:240px;overflow-y:auto;z-index:1000;box-shadow:0 4px 12px #0000001a;animation:dropdownSlideIn .15s ease-out}@keyframes dropdownSlideIn{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}.gt-old-page .custom-dropdown-option{padding:.75rem 1rem;font-size:.9rem;font-weight:500;color:#2d3748;cursor:pointer;transition:background .15s ease}.gt-old-page .custom-dropdown-option:hover,.gt-old-page .custom-dropdown-option.highlighted{background:#f7fafc}.gt-old-page .custom-dropdown-option.selected{background:#edf2f7;color:#2d3748;font-weight:600}.gt-old-page .custom-dropdown-option.selected.highlighted{background:#e2e8f0}.gt-old-page .custom-dropdown-option:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.gt-old-page .custom-dropdown-empty{padding:1rem;text-align:center;color:#a0aec0;font-size:.85rem;font-style:italic}.gt-old-page .custom-dropdown-menu::-webkit-scrollbar{width:6px}.gt-old-page .custom-dropdown-menu::-webkit-scrollbar-track{background:#f1f1f1;border-radius:3px}.gt-old-page .custom-dropdown-menu::-webkit-scrollbar-thumb{background:#cbd5e0;border-radius:3px}.gt-old-page .custom-dropdown-menu::-webkit-scrollbar-thumb:hover{background:#a0aec0}.gt-old-page .comparison-sankey-view{position:relative;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto 1fr;gap:4px;width:100%;height:max(820px,calc(100vh - 360px));min-height:550px}.gt-old-page .comparison-sankey-view.is-fullscreen{position:fixed;inset:0;z-index:9998;background:#0f172a;padding:12px;height:100vh;min-height:100vh;grid-template-rows:auto 1fr}.gt-old-page .comparison-column{background:#0f172a;border-radius:8px;border:1px solid rgba(255,255,255,.08);overflow:hidden;display:flex;flex-direction:column;min-height:0}.gt-old-page .comparison-sankey-view.is-fullscreen .comparison-column{border-radius:6px}.gt-old-page .comparison-column-header{display:flex;align-items:center;justify-content:center;padding:7px 14px;background:#ffffff05;border-bottom:1px solid rgba(255,255,255,.06);flex-shrink:0}.gt-old-page .ontology-title-container{display:flex;flex-direction:column;align-items:center;gap:2px}.gt-old-page .ontology-title-container .ontology-title{margin:0;font-size:.88rem;font-weight:600;color:#e2e8f0;letter-spacing:-.01em;text-align:center}.gt-old-page .comparison-column-header .ontology-badge{display:inline-flex;align-items:center;padding:3px 10px;border-radius:4px;font-size:.7rem;font-weight:600;letter-spacing:.3px}.gt-old-page .comparison-column-header .ontology-badge.primary{background:#3b82f626;color:#60a5fa;border:1px solid rgba(59,130,246,.25)}.gt-old-page .comparison-column-header .ontology-badge.secondary{background:#8b5cf626;color:#a78bfa;border:1px solid rgba(139,92,246,.25)}.gt-old-page .comparison-column-content{flex:1;display:flex;flex-direction:column;width:100%;min-height:0;overflow:visible}.gt-old-page .comparison-column-content .sankey-container{flex:1;height:100%;min-height:0}.gt-old-page .comparison-column-content .sankey-svg-wrapper{height:100%!important;min-height:0!important}.gt-old-page .comparison-column-content button{display:flex;align-items:center;justify-content:center}.gt-old-page .comparison-column-content button svg{display:block;flex-shrink:0}.gt-old-page .comparison-column-content .sankey-container>div::-webkit-scrollbar{height:4px}.gt-old-page .comparison-column-content .sankey-container>div::-webkit-scrollbar-track{background:transparent}.gt-old-page .comparison-column-content .sankey-container>div::-webkit-scrollbar-thumb{background:#ffffff1f;border-radius:2px}.gt-old-page .comparison-empty{display:flex;align-items:center;justify-content:center;height:200px;color:#64748b;font-size:.85rem;font-style:italic}.gt-old-page .merge-toolbar{grid-column:1 / -1;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:.6rem 1rem;background:#fff;border:1px solid #e2e8f0;border-radius:10px;box-shadow:0 2px 8px #0000000a;box-sizing:border-box}.gt-old-page .merge-toolbar.comparison-toolbar{order:-1;grid-row:1;width:100%;margin:0 0 .35rem}.gt-old-page .comparison-sankey-view.is-fullscreen .merge-toolbar{padding:.35rem .75rem;border-radius:8px;background:#0f172ab3;border-color:#ffffff1a;box-shadow:none;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}.gt-old-page .comparison-sankey-view.is-fullscreen .merge-toolbar-title{font-size:.78rem;color:#e2e8f0}.gt-old-page .comparison-sankey-view.is-fullscreen .merge-toolbar-subtitle,.gt-old-page .comparison-sankey-view.is-fullscreen .merge-info{display:none}.gt-old-page .comparison-sankey-view.is-fullscreen .merge-btn{padding:.3rem .65rem;font-size:.75rem;background:#ffffff14;border-color:#ffffff26;color:#cbd5e0}.gt-old-page .comparison-sankey-view.is-fullscreen .merge-btn:hover{background:#ffffff24;color:#fff;transform:none}.gt-old-page .comparison-sankey-view.is-fullscreen .merge-btn.has-filters{background:#ffffff29;border-color:#ffffff59;color:#f1f5f9}.gt-old-page .merge-toolbar-content{display:flex;align-items:center;gap:.75rem;min-width:0;flex:1;flex-wrap:wrap}.gt-old-page .merge-toolbar-title-group{display:flex;align-items:baseline;gap:.5rem;flex-wrap:wrap}.gt-old-page .merge-toolbar-title{font-size:.82rem;font-weight:700;color:#2d3748;white-space:nowrap}.gt-old-page .merge-toolbar-subtitle{font-size:.75rem;color:#a0aec0;line-height:1.3}.gt-old-page .merge-toolbar-actions{display:flex;align-items:center;gap:.5rem;flex-shrink:0}.gt-old-page .merge-btn{display:inline-flex;align-items:center;gap:6px;padding:.4rem .875rem;font-size:.78rem;font-weight:700;color:#4a5568;background:#f8fafc;border:2px solid #e2e8f0;border-radius:8px;cursor:pointer;transition:all .15s ease;white-space:nowrap;font-family:inherit}.gt-old-page .merge-btn:hover{color:#2d3748;background:#edf2f7;border-color:#4a5568;transform:translateY(-1px)}.gt-old-page .merge-btn.has-filters{color:#334155;background:#f1f5f9;border-color:#94a3b8}.gt-old-page .merge-btn.has-filters:hover{background:#e2e8f0;border-color:#64748b}.gt-old-page .merge-back-btn{display:inline-flex;align-items:center;gap:5px;padding:.35rem .75rem;font-size:.75rem;font-weight:700;color:#4a5568;background:#f8fafc;border:2px solid #e2e8f0;border-radius:8px;cursor:pointer;transition:all .15s ease;font-family:inherit}.gt-old-page .merge-back-btn:hover{color:#2d3748;background:#edf2f7;border-color:#4a5568}.gt-old-page .merge-view-tabs{display:flex;gap:2px;background:#edf2f7;border-radius:8px;padding:3px}.gt-old-page .merge-tab{display:inline-flex;align-items:center;gap:4px;padding:.3rem .65rem;font-size:.72rem;font-weight:700;color:#718096;background:transparent;border:none;border-radius:6px;cursor:pointer;transition:all .15s ease;font-family:inherit;text-transform:uppercase;letter-spacing:.03em}.gt-old-page .merge-tab:hover{color:#4a5568;background:#e2e8f0}.gt-old-page .merge-tab.active{color:#2d3748;background:#fff;box-shadow:0 1px 3px #00000014}.gt-old-page .merge-info{display:flex;gap:.3rem;align-items:center;flex-wrap:wrap}.gt-old-page .merge-filter-badge{font-size:.67rem;font-weight:700;padding:.15rem .5rem;border-radius:6px;letter-spacing:.03em;border:1px solid transparent;text-transform:uppercase}.gt-old-page .merge-filter-badge.primary{color:#2b6cb0;background:#ebf8ff;border-color:#bee3f8}.gt-old-page .merge-filter-badge.secondary{color:#553c9a;background:#faf5ff;border-color:#e9d8fd}.gt-old-page .merge-filter-badge.neutral{color:#718096;background:#f8fafc;border-color:#e2e8f0}.gt-old-page .merge-filter-badge.local{color:#276749;background:#f0fff4;border-color:#c6f6d5}.gt-old-page .comparison-sankey-view.merged-view{display:flex;flex-direction:column;width:100%;min-height:550px;grid-template-columns:unset}.gt-old-page .merged-view-container{flex:1;display:flex;flex-direction:column;align-items:center;background:#fff;border-radius:0 0 8px 8px;border:1px solid #dbe3ee;border-top:none;overflow:hidden;min-height:0}.gt-old-page .merged-canvas-shell{width:100%;max-width:1600px;margin:0 auto;min-height:700px;height:calc(100vh - 500px)}.gt-old-page .merged-side-by-side{display:grid;grid-template-columns:1fr 1fr;gap:4px;width:100%;height:100%;min-height:0}.gt-old-page .merged-side-by-side .merged-panel{display:flex;flex-direction:column;background:#0f172a;border-radius:6px;border:1px solid rgba(255,255,255,.06);overflow:hidden;min-height:0}.gt-old-page .merged-side-by-side .merged-panel-header{display:flex;align-items:center;justify-content:center;padding:8px 12px;background:#ffffff05;border-bottom:1px solid rgba(255,255,255,.05);flex-shrink:0}.gt-old-page .merged-side-by-side .merged-panel-header h4{margin:0;font-size:.82rem;font-weight:600;color:#94a3b8;letter-spacing:-.01em}.gt-old-page .merged-side-by-side .merged-panel-content{flex:1;display:flex;flex-direction:column;min-height:0}.gt-old-page .merge-empty{display:flex;align-items:center;justify-content:center;height:200px;color:#64748b;font-size:.85rem;font-style:italic}.gt-old-page .comparison-fullscreen-btn:hover{background:#3b82f633!important;border-color:#3b82f666!important;color:#60a5fa!important}@media(max-width:1200px){.gt-old-page .merge-toolbar{flex-wrap:wrap}.gt-old-page .merge-toolbar-actions{width:100%;justify-content:flex-start;flex-wrap:wrap}.gt-old-page .comparison-sankey-view{grid-template-columns:1fr;grid-template-rows:auto auto auto;height:auto}.gt-old-page .comparison-column-content{min-height:400px}.gt-old-page .merged-side-by-side{grid-template-columns:1fr}}@media(max-width:740px){.gt-old-page .merge-toolbar-title{font-size:.94rem}.gt-old-page .merge-toolbar-subtitle{font-size:.78rem}.gt-old-page .merge-btn{width:100%;justify-content:center}}.gt-old-page .comparison-merged-view{display:flex;align-items:center;flex-direction:column;width:100%;min-height:550px;margin-top:10px}.gt-old-page .comparison-merged-toolbar{display:flex;align-items:center;gap:10px;padding:.55rem 1rem;background:#fff;border:1px solid #e2e8f0;border-radius:10px 10px 0 0;width:100%;box-shadow:0 2px 8px #0000000a;box-sizing:border-box}.gt-old-page .merged-back-btn{display:inline-flex;align-items:center;gap:5px;padding:.35rem .75rem;font-size:.75rem;font-weight:700;color:#4a5568;background:#f8fafc;border:2px solid #e2e8f0;border-radius:8px;cursor:pointer;transition:all .15s ease;font-family:inherit;flex-shrink:0}.gt-old-page .merged-back-btn:hover{color:#2d3748;background:#edf2f7;border-color:#4a5568}.gt-old-page .merged-toolbar-info{display:flex;gap:.35rem;align-items:center;flex-wrap:wrap;min-width:0}.gt-old-page .merged-toolbar-title{font-size:.8rem;font-weight:700;color:#2d3748;letter-spacing:-.01em;white-space:nowrap;margin-right:.25rem}.gt-old-page .merged-filter-badge{font-size:.67rem;font-weight:700;padding:.15rem .5rem;border-radius:6px;letter-spacing:.03em;border:1px solid transparent;text-transform:uppercase}.gt-old-page .merged-filter-badge.primary{color:#2b6cb0;background:#ebf8ff;border-color:#bee3f8}.gt-old-page .merged-filter-badge.secondary{color:#553c9a;background:#faf5ff;border-color:#e9d8fd}.gt-old-page .merged-filter-badge.neutral{color:#718096;background:#f8fafc;border-color:#e2e8f0}.gt-old-page .merged-filter-badge.local{color:#276749;background:#f0fff4;border-color:#c6f6d5}.gt-old-page .comparison-merged-panels{display:grid;grid-template-columns:1fr 1fr;gap:4px;width:100%;height:max(800px,calc(100vh - 500px));min-height:500px}.gt-old-page .merged-panel{display:flex;flex-direction:column;background:#fff;border-radius:0 0 6px 6px;border:1px solid #dbe3ee;overflow:hidden;min-height:0}.gt-old-page .merged-panel-header{display:flex;align-items:center;justify-content:center;padding:6px 12px;background:#f8fafc;border-bottom:1px solid #e2e8f0;flex-shrink:0}.gt-old-page .merged-panel-header h4{margin:0;font-size:.72rem;font-weight:700;color:#718096;letter-spacing:.05em;text-transform:uppercase}.gt-old-page .merged-panel-content{flex:1;display:flex;flex-direction:column;min-height:0;overflow:visible}.gt-old-page .merged-panel-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;height:200px;color:#64748b;font-size:.85rem;font-style:italic;gap:12px}.gt-old-page .merged-panel-empty button{padding:6px 14px;font-size:.78rem;font-weight:600;color:#475569;background:#f8fafc;border:1px solid #cbd5e1;border-radius:6px;cursor:pointer;transition:all .15s ease;font-family:inherit}.gt-old-page .merged-panel-empty button:hover{color:#1e293b;background:#edf2f7}.gt-old-page .merged-panel-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;height:200px;color:#64748b;font-size:.85rem;gap:8px}.gt-old-page .merged-panel-loading .loading-spinner{width:32px;height:32px;border:3px solid #e2e8f0;border-top-color:#60a5fa;border-radius:50%;animation:spin .8s linear infinite}.gt-old-page .merged-panel-loading .hint{font-size:.75rem;color:#64748b}.gt-old-page .merged-panel-error{display:flex;flex-direction:column;align-items:center;justify-content:center;height:200px;color:#f87171;font-size:.85rem;gap:12px}.gt-old-page .merged-panel-error button{padding:6px 14px;font-size:.78rem;font-weight:500;color:#f87171;background:#fff5f5;border:1px solid #feb2b2;border-radius:6px;cursor:pointer;transition:all .15s ease;font-family:inherit}.gt-old-page .merged-panel-error button:hover{background:#fed7d7}@media(max-width:1200px){.gt-old-page .comparison-merged-toolbar{flex-wrap:wrap}.gt-old-page .comparison-merged-panels{grid-template-columns:1fr;height:auto}.gt-old-page .merged-panel{min-height:400px}}@media(max-width:740px){.gt-old-page .merged-toolbar-title{font-size:.92rem}.gt-old-page .merged-back-btn{width:100%;justify-content:center}}.ontology-explorer-page{max-width:1200px;margin:0 auto;padding:2rem}.page-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:2rem}.page-header h2{font-size:2.5rem;color:#2d3748;margin-bottom:.5rem}.create-btn{padding:.875rem 1.5rem;background:#4a5568;color:#fff;border:none;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;gap:.5rem}.create-btn:hover{background:#2d3748}.controls-bar{display:flex;justify-content:space-between;align-items:center;margin-bottom:2rem;gap:2rem}.filter-tabs{display:flex;gap:.5rem;background:#fff;padding:.375rem;border-radius:8px;box-shadow:0 2px 8px #00000014}.filter-tabs button{padding:.625rem 1.25rem;background:transparent;border:none;border-radius:6px;color:#718096;font-weight:500;cursor:pointer;transition:all .2s ease}.filter-tabs button:hover{color:#4a5568;background:#f7fafc}.filter-tabs button.active{background:#4a5568;color:#fff}.search-box{position:relative;flex:0 0 300px}.search-icon{position:absolute;left:1rem;top:50%;transform:translateY(-50%);font-size:1rem;color:#718096}.search-box input{width:100%;padding:.75rem 1rem .75rem 2.5rem;border:2px solid #e2e8f0;border-radius:8px;font-size:.95rem;transition:all .2s ease}.search-box input:focus{outline:none;border-color:#4a5568}.ontologies-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem}.loading-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:4rem;color:#718096}.spinner-large{width:60px;height:60px;border:4px solid #e2e8f0;border-top-color:#4a5568;border-radius:50%;animation:spin 1s linear infinite;margin-bottom:1rem}.empty-state{text-align:center;padding:4rem;color:#718096}.empty-state h3{color:#4a5568;margin-bottom:.5rem}@media(max-width:1100px){.ontologies-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:768px){.page-header{flex-direction:column;gap:1.5rem}.controls-bar{flex-direction:column;align-items:stretch}.search-box{flex:1}.ontologies-grid{grid-template-columns:1fr}}.graph-modal-overlay{position:fixed;inset:0;background:#0009;display:flex;align-items:center;justify-content:center;z-index:1000;padding:2rem}.graph-modal{background:#fff;border-radius:12px;width:100%;max-width:1100px;height:85vh;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 20px 50px #0000004d}.graph-modal-header{display:flex;justify-content:space-between;align-items:center;padding:1rem 1.5rem;border-bottom:1px solid #e2e8f0;background:#f8fafc;flex-shrink:0}.graph-modal-header h3{margin:0;color:#2d3748;font-size:1.1rem;font-weight:600}.graph-modal-controls{display:flex;align-items:center;gap:1rem}.filter-toggle-container{display:flex;align-items:center;gap:.5rem}.filter-toggle-btn{padding:.5rem 1rem;background:#edf2f7;border:1px solid #e2e8f0;border-radius:6px;font-size:.875rem;font-weight:500;color:#4a5568;cursor:pointer;transition:all .2s ease}.filter-toggle-btn:hover{background:#e2e8f0}.filter-toggle-btn.active{background:#4299e1;color:#fff;border-color:#3182ce}.filter-toggle-btn:disabled{opacity:.6;cursor:not-allowed}.filter-stats-badge{background:#fed7d7;color:#c53030;padding:.25rem .5rem;border-radius:4px;font-size:.75rem;font-weight:600}.graph-modal-header .close-btn{width:36px;height:36px;min-width:36px;min-height:36px;border:none;background:#f7fafc;border-radius:50%;font-size:1.25rem;color:#718096;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;justify-content:center;padding:0;line-height:1}.graph-modal-header .close-btn:hover{background:#e2e8f0;color:#2d3748;transform:scale(1.1)}.graph-modal-content{flex:1;min-height:0;overflow:hidden}.filter-panel{background:#f7fafc;border-bottom:1px solid #e2e8f0;padding:1rem 1.5rem;flex-shrink:0}.filter-panel-header{margin-bottom:1rem}.filter-panel-header h4{margin:0 0 .25rem;font-size:.95rem;color:#2d3748}.filter-help{margin:0;font-size:.8rem;color:#718096}.filter-panel-toggle{padding:.5rem 1rem;background:#edf2f7;border:1px solid #e2e8f0;border-radius:6px;font-size:.875rem;color:#4a5568;cursor:pointer;transition:all .2s}.filter-panel-toggle:hover{background:#e2e8f0}.filter-algorithms-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:.75rem}.filter-algo-card{background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:.75rem;transition:all .2s}.filter-algo-card:hover{border-color:#cbd5e0}.filter-algo-card.active{border-color:#4299e1;background:#ebf8ff}.filter-algo-card.combined{background:#fffaf0;border-color:#fbd38d}.filter-algo-card.combined.active{background:#fef3c7;border-color:#f59e0b}.algo-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem}.algo-name{font-weight:600;font-size:.85rem;color:#2d3748}.algo-apply-btn{padding:.25rem .5rem;background:#4a5568;color:#fff;border:none;border-radius:4px;font-size:.75rem;cursor:pointer;transition:all .2s}.algo-apply-btn:hover{background:#2d3748}.algo-apply-btn.active{background:#48bb78}.algo-apply-btn:disabled{opacity:.6;cursor:not-allowed}.algo-desc{margin:0 0 .5rem;font-size:.75rem;color:#718096;line-height:1.3}.algo-params{display:flex;flex-direction:column;gap:.25rem}.algo-params label{display:flex;justify-content:space-between;align-items:center;font-size:.75rem;color:#4a5568}.algo-params input{width:50px;padding:.25rem .5rem;border:1px solid #e2e8f0;border-radius:4px;font-size:.75rem;text-align:center}.algo-params input:focus{outline:none;border-color:#4299e1}.filter-actions-row{display:flex;align-items:center;gap:1rem;margin-top:1rem;padding-top:1rem;border-top:1px solid #e2e8f0;flex-wrap:wrap}.show-removed-toggle{display:flex;align-items:center;gap:.5rem;font-size:.85rem;color:#4a5568;cursor:pointer}.show-removed-toggle input[type=checkbox]{width:16px;height:16px;cursor:pointer}.clear-filter-btn{padding:.5rem 1rem;background:#fff5f5;border:1px solid #fed7d7;border-radius:6px;color:#c53030;font-size:.85rem;cursor:pointer;transition:all .2s}.clear-filter-btn:hover{background:#fed7d7}.apply-filter-ontology-btn{padding:.5rem 1rem;background:#48bb78;border:none;border-radius:6px;color:#fff;font-size:.85rem;font-weight:500;cursor:pointer;transition:all .2s;margin-left:auto}.apply-filter-ontology-btn:hover{background:#38a169}.apply-filter-ontology-btn:disabled{background:#a0aec0;cursor:not-allowed}.filter-stats-bar{display:flex;justify-content:space-between;align-items:center;padding:.75rem 1.5rem;background:#ebf8ff;border-bottom:1px solid #bee3f8;font-size:.875rem;color:#2b6cb0;flex-shrink:0}.filter-stats-bar strong{color:#2c5282}.removed-count{color:#c53030;font-weight:600;margin-left:.5rem}.filter-algorithms{color:#4299e1;font-size:.8rem}.removed-nodes-preview{padding:.5rem 1.5rem;background:#fff5f5;border-bottom:1px solid #fed7d7;font-size:.8rem;color:#c53030;flex-shrink:0}.removed-nodes-preview strong{color:#742a2a}.debug-btn{padding:.4rem .75rem;background:#faf5ff;border:1px solid #d6bcfa;border-radius:4px;color:#6b46c1;font-size:.8rem;cursor:pointer}.debug-btn:hover{background:#e9d8fd}.debug-edges-panel{background:#1a202c;color:#e2e8f0;font-family:monospace;font-size:.75rem;max-height:200px;overflow-y:auto;border-bottom:1px solid #4a5568}.debug-edges-panel summary{padding:.5rem 1rem;cursor:pointer;background:#2d3748;font-weight:600}.debug-edges-panel summary:hover{background:#4a5568}.debug-edges-list{padding:.5rem 1rem;display:flex;flex-direction:column;gap:.25rem}.debug-edge-item{display:flex;gap:.5rem;align-items:center}.debug-edge-source{color:#90cdf4}.debug-edge-relation{font-weight:600}.debug-edge-target{color:#9ae6b4}.relation-checkboxes{display:flex;flex-direction:column;gap:.5rem}.param-label{font-size:.8rem;color:#718096;margin-bottom:.25rem}.relation-checkbox-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.35rem}.relation-checkbox{display:flex;align-items:center;gap:.35rem;padding:.25rem .4rem;background:#f7fafc;border:1px solid #e2e8f0;border-radius:4px;cursor:pointer;font-size:.75rem;transition:all .15s ease}.relation-checkbox:hover{background:#edf2f7}.relation-checkbox input[type=checkbox]{width:12px;height:12px;cursor:pointer}.relation-checkbox input[type=checkbox]:checked+.relation-color-dot+.relation-label{font-weight:600}.relation-color-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}.relation-label{color:#4a5568;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media(max-width:1000px){.filter-algorithms-grid{grid-template-columns:repeat(2,1fr)}}.explorer-ontology-card{background:#fff;border-radius:12px;border:2px solid #e2e8f0;padding:1.5rem;transition:all .2s ease}.explorer-ontology-card:hover{border-color:#cbd5e0}.explorer-ontology-card .explorer-card-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:1rem}.explorer-ontology-card .explorer-card-title-section{flex:1;min-width:0;margin-right:.75rem}.explorer-ontology-card .explorer-card-title-section h3{font-size:1.25rem;line-height:1.35;color:#2d3748;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:3.375rem;margin:0 0 .25rem}.explorer-ontology-card .explorer-word-count{font-size:.875rem;color:#718096;font-weight:500}.explorer-ontology-card .explorer-source-badge{padding:.375rem .875rem;border-radius:8px;color:#fff;font-size:.8rem;font-weight:600;white-space:nowrap}.explorer-ontology-card .explorer-card-metadata{display:flex;flex-wrap:wrap;gap:1rem;margin-bottom:1rem;padding:.75rem;background:#f7fafc;border-radius:8px;font-size:.85rem}.explorer-ontology-card .explorer-metadata-item{color:#4a5568}.explorer-ontology-card .explorer-metadata-item strong{color:#2d3748;margin-right:.25rem}.explorer-ontology-card .explorer-card-preview{margin-bottom:1rem}.explorer-ontology-card .explorer-card-preview strong{display:block;color:#4a5568;font-size:.875rem;margin-bottom:.75rem}.explorer-ontology-card .explorer-word-chips{height:72px;overflow:hidden;display:flex;flex-wrap:wrap;gap:.5rem;align-content:flex-start}.explorer-ontology-card .explorer-word-chips.full{height:auto;max-height:none;overflow:visible;padding:.5rem;background:#f7fafc;border-radius:8px}.explorer-ontology-card .explorer-word-chip{padding:.375rem .75rem;background:#edf2f7;border:1px solid #e2e8f0;border-radius:6px;color:#4a5568;font-size:.875rem;line-height:1.2;white-space:nowrap;font-weight:500;display:inline-flex;align-items:center}.explorer-ontology-card .explorer-word-chip.more{background:#4a5568;color:#fff;border-color:#4a5568}.explorer-ontology-card .explorer-card-actions{display:flex;gap:.5rem;padding-top:1rem;border-top:2px solid #e2e8f0}.explorer-ontology-card .explorer-expand-btn{flex:1;padding:.625rem 1rem;background:transparent;border:2px solid #4a5568;color:#4a5568;border-radius:8px;font-weight:600;cursor:pointer;transition:all .2s ease}.explorer-ontology-card .explorer-expand-btn:hover:not(:disabled){background:#4a5568;color:#fff}.explorer-ontology-card .explorer-expand-btn:disabled{opacity:.5;cursor:not-allowed}.explorer-ontology-card .explorer-graph-btn{padding:.625rem 1rem;background:#48bb78;border:2px solid #48bb78;color:#fff;border-radius:8px;font-weight:600;cursor:pointer;transition:all .2s ease}.explorer-ontology-card .explorer-graph-btn:hover:not(:disabled){background:#38a169;border-color:#38a169}.explorer-ontology-card .explorer-graph-btn:disabled{opacity:.5;cursor:not-allowed}.explorer-ontology-card .explorer-full-words-section{margin-top:1rem;padding-top:1rem;border-top:2px solid #e2e8f0}.explorer-ontology-card .explorer-edit-actions{display:flex;align-items:center;gap:.5rem;margin-bottom:.75rem}.explorer-ontology-card .explorer-edit-toggle-btn,.explorer-ontology-card .explorer-save-btn,.explorer-ontology-card .explorer-cancel-btn{display:inline-flex;align-items:center;gap:.375rem;padding:.45rem .75rem;border-radius:8px;font-size:.85rem;font-weight:600;cursor:pointer;transition:all .2s ease}.explorer-ontology-card .explorer-edit-toggle-btn{background:#edf2f7;color:#4a5568;border:1px solid #cbd5e0}.explorer-ontology-card .explorer-edit-toggle-btn:hover:not(:disabled){background:#4a5568;border-color:#4a5568;color:#fff}.explorer-ontology-card .explorer-save-btn{background:#4a5568;border:1px solid #4a5568;color:#fff}.explorer-ontology-card .explorer-save-btn:hover:not(:disabled){background:#2d3748;border-color:#2d3748}.explorer-ontology-card .explorer-cancel-btn{background:#f7fafc;border:1px solid #cbd5e0;color:#4a5568}.explorer-ontology-card .explorer-cancel-btn:hover:not(:disabled){background:#edf2f7}.explorer-ontology-card .explorer-edit-toggle-btn:disabled,.explorer-ontology-card .explorer-save-btn:disabled,.explorer-ontology-card .explorer-cancel-btn:disabled{opacity:.5;cursor:not-allowed}.explorer-ontology-card .explorer-edit-count{margin-left:auto;font-size:.8rem;font-weight:600;color:#718096}.explorer-ontology-card .explorer-word-chip.editable{position:relative;padding-right:1rem}.explorer-ontology-card .explorer-chip-remove-btn{position:absolute;top:-8px;right:-8px;width:18px;height:18px;border:none;border-radius:50%;background:#e53e3e;color:#fff;display:inline-flex;align-items:center;justify-content:center;padding:0;cursor:pointer;transition:background-color .2s ease,transform .2s ease}.explorer-ontology-card .explorer-chip-remove-btn:hover{background:#c53030;transform:scale(1.08)}.explorer-ontology-card .explorer-chip-remove-btn:focus-visible{outline:2px solid #c53030;outline-offset:2px}.explorer-ontology-card .explorer-edit-empty{margin-bottom:.75rem;padding:.5rem .75rem;border-radius:8px;border:1px solid #fed7d7;background:#fff5f5;color:#c53030;font-size:.8rem;font-weight:500}.create-modal-overlay{position:fixed;inset:0;background:#00000080;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:1000;animation:fadeIn .2s ease}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.create-ontology-modal{background:#fff;border-radius:20px;width:90%;max-width:900px;max-height:90vh;display:flex;flex-direction:column;box-shadow:0 20px 60px #0000004d;animation:slideUp .3s ease;overflow:hidden}@keyframes slideUp{0%{transform:translateY(50px);opacity:0}to{transform:translateY(0);opacity:1}}.modal-header{display:flex;justify-content:space-between;align-items:flex-start;padding:1.5rem 2rem;border-bottom:2px solid #e2e8f0}.modal-title-section{flex:1;display:flex;flex-direction:column;gap:.5rem}.modal-header h3{font-size:1.5rem;color:#2d3748;margin:0}.selected-context{display:flex;align-items:center;gap:.5rem}.context-label{font-size:.85rem;color:#718096}.context-word-badge{display:inline-block;padding:.25rem .75rem;background:#4a5568;color:#fff;border-radius:6px;font-weight:600;font-size:.9rem}.close-btn{width:36px;height:36px;min-width:36px;min-height:36px;border:none;background:#f7fafc;border-radius:50%;font-size:1.25rem;color:#718096;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;justify-content:center;padding:0;line-height:1}.close-btn:hover{background:#e2e8f0;color:#2d3748;transform:scale(1.1)}.modal-body{flex:1;overflow-y:auto;padding:1.5rem 4rem}.section-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem}.section-header h4{display:flex;align-items:center;gap:.75rem;font-size:1rem;color:#2d3748;margin:0}.step-number{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;background:#4a5568;color:#fff;border-radius:50%;font-size:.85rem;font-weight:700}.selection-count{padding:.25rem .75rem;background:#48bb78;color:#fff;border-radius:6px;font-size:.8rem;font-weight:600}.input-section{margin-bottom:1.5rem;padding-bottom:1.5rem;border-bottom:2px solid #e2e8f0}.form-field{margin-top:2rem;margin-bottom:1.25rem}.form-field>label{display:block;font-size:.9rem;font-weight:600;color:#2d3748;margin-bottom:.5rem}.field-hint{font-size:.8rem;color:#718096;margin:0 0 .5rem}.create-ontology-modal :scope .template-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:.75rem}.template-card{display:flex;flex-direction:column;align-items:flex-start;gap:.35rem;padding:.85rem 1rem;background:#fff;border:2px solid #e2e8f0;border-radius:10px;cursor:pointer;transition:all .2s ease;text-align:left}.template-card:hover{border-color:#a0aec0;background:#f7fafc}.template-card.selected{border-color:#4a5568;background:#edf2f7}.template-label{font-size:.85rem;font-weight:600;color:#2d3748}.template-text{font-size:.75rem;color:#718096;font-style:italic}.selected-word-display{margin-top:.75rem;padding:.5rem .75rem;background:#edf2f7;border-radius:6px;font-size:.85rem;color:#2d3748}.selected-word-display strong{color:#4a5568}.custom-prompt-section{padding-top:1rem;border-top:1px dashed #e2e8f0}.prompt-input-wrapper{margin-bottom:1rem}.prompt-input{width:100%;padding:.75rem 1rem;border:2px solid #e2e8f0;border-radius:10px;font-size:.95rem;font-family:inherit;resize:none;transition:all .2s ease}.prompt-input:focus{outline:none;border-color:#4a5568}.token-selector{margin-top:.75rem}.token-hint{display:block;font-size:.8rem;color:#718096;margin-bottom:.5rem}.token-display{display:flex;flex-wrap:wrap;gap:.5rem;padding:1rem;background:#f7fafc;border:2px solid #e2e8f0;border-radius:10px}.token{padding:.4rem .75rem;border-radius:6px;font-size:.9rem;font-weight:500;transition:all .2s ease;-webkit-user-select:none;user-select:none}.token.clickable{background:#fff;border:2px solid #cbd5e0;color:#2d3748;cursor:pointer}.token.clickable:hover{border-color:#4a5568}.token.selected{background:#4a5568;border-color:#4a5568;color:#fff}.token.stop-word{background:#e2e8f0;color:#a0aec0;border:2px solid transparent;cursor:not-allowed;opacity:.6}.settings-section{background:#f8fafc;border:2px solid #e2e8f0;border-radius:12px;padding:1rem 1.25rem;margin-bottom:1.5rem}.settings-row{display:flex;flex-wrap:wrap;gap:1.5rem;align-items:flex-start}.setting-group{display:flex;flex-direction:column;gap:.4rem}.setting-group label{font-size:.75rem;font-weight:600;color:#4a5568;text-transform:uppercase;letter-spacing:.3px}.toggle-group{display:flex;gap:.35rem}.toggle-btn{padding:.4rem .75rem;background:#fff;border:2px solid #e2e8f0;border-radius:6px;font-size:.8rem;font-weight:500;color:#4a5568;cursor:pointer;transition:all .2s ease}.toggle-btn:hover{border-color:#cbd5e0;background:#f7fafc}.toggle-btn.active.litellm{background:#10b981;border-color:#10b981}.toggle-btn.active.gemini{background:#4285f4;border-color:#4285f4}.toggle-btn.small{padding:.3rem .5rem;font-size:.7rem}.number-input{width:70px;padding:.4rem .5rem;border:2px solid #e2e8f0;border-radius:6px;font-size:.85rem;text-align:center}.number-input:focus{outline:none;border-color:#4a5568}.preview-section{margin-top:1rem}.ontology-group{margin-bottom:1.5rem}.group-header{display:flex;align-items:center;gap:.75rem;margin-bottom:.75rem;padding-bottom:.5rem;border-bottom:2px solid #e2e8f0;padding-top:1rem}.group-icon{display:inline-flex;align-items:center;justify-content:center;width:32px;height:24px;border-radius:6px;font-size:.7rem;font-weight:700;color:#fff}.group-icon.cn{background:#38a169}.group-icon.llm{background:#805ad5}.group-icon.custom{background:#dd6b20;font-size:1rem}.group-title{font-size:.95rem;font-weight:600;color:#2d3748}.create-ontology-modal .ontology-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1rem}.create-ontology-modal .ontology-cards.llm-cards{display:flex;flex-direction:column;gap:.75rem}.create-ontology-modal .ontology-card{background:#fff;border:2px solid #e2e8f0;border-radius:12px;padding:1rem;position:relative;transition:all .2s ease}.create-ontology-modal .ontology-card.loading{background:#f7fafc;opacity:.9}.create-ontology-modal .ontology-card.selectable{cursor:pointer}.create-ontology-modal .ontology-card.selectable:hover{border-color:#4a5568}.create-ontology-modal .ontology-card.selected{border-color:#48bb78;background:#f0fff4}.create-ontology-modal .card-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem}.create-ontology-modal .card-badge{padding:.2rem .6rem;border-radius:5px;font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.3px;background:#4a5568;color:#fff}.create-ontology-modal .card-badge.bfs{background:#4a5568}.create-ontology-modal .card-badge.direct{background:#38a169}.create-ontology-modal .card-badge.custom{background:#dd6b20}.create-ontology-modal .card-number{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;background:#805ad5;color:#fff;border-radius:50%;font-size:.75rem;font-weight:700}.create-ontology-modal .card-count{font-size:.75rem;color:#718096;font-weight:500}.create-ontology-modal .card-title{font-size:.95rem;font-weight:600;color:#2d3748;margin-bottom:.35rem}.create-ontology-modal .card-description{font-size:.8rem;color:#4a5568;line-height:1.4;margin-bottom:.5rem}.create-ontology-modal .card-preview{font-size:.8rem;color:#718096;background:#f7fafc;padding:.5rem .75rem;border-radius:6px;line-height:1.4}.create-ontology-modal .card-checkbox{position:absolute;bottom:.75rem;right:.75rem}.create-ontology-modal .checkbox{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border:2px solid #cbd5e0;border-radius:5px;background:#fff;transition:all .2s ease}.create-ontology-modal .checkbox.checked{background:#48bb78;border-color:#48bb78;color:#fff}.loading-indicator{display:flex;align-items:center;gap:.75rem;color:#718096;font-size:.85rem}.loading-section{display:flex;align-items:center;gap:.75rem;padding:1.5rem;background:#f7fafc;border:2px dashed #e2e8f0;border-radius:10px;color:#718096;font-size:.9rem}.spinner{width:24px;height:24px;border:3px solid #e2e8f0;border-top-color:#4a5568;border-radius:50%;animation:spin .8s linear infinite}.spinner-small{width:16px;height:16px;border:2px solid #cbd5e0;border-top-color:#4a5568;border-radius:50%;animation:spin .8s linear infinite}.empty-section{padding:1.5rem;background:#f7fafc;border:2px dashed #e2e8f0;border-radius:10px;text-align:center;color:#a0aec0;font-size:.9rem}.custom-llm-form{display:flex;flex-direction:column;gap:.75rem}.custom-name-input{padding:.6rem .875rem;border:2px solid #e2e8f0;border-radius:8px;font-size:.9rem;font-family:inherit;font-weight:500;transition:all .2s ease}.custom-name-input:focus{outline:none;border-color:#4a5568}.custom-prompt-input{padding:.75rem .875rem;border:2px solid #e2e8f0;border-radius:8px;font-size:.9rem;font-family:inherit;font-weight:500;resize:vertical;min-height:80px;transition:all .2s ease}.custom-prompt-input:focus{outline:none;border-color:#4a5568}.generate-btn{align-self:flex-start;display:flex;align-items:center;gap:.5rem;padding:.6rem 1.25rem;background:#805ad5;border:none;border-radius:8px;color:#fff;font-size:.85rem;font-weight:600;cursor:pointer;transition:all .2s ease}.generate-btn:hover:not(:disabled){background:#6b46c1}.generate-btn:disabled{opacity:.6;cursor:not-allowed}.custom-result{margin-top:.5rem}.save-results{margin-top:1rem;padding:1rem;background:#f7fafc;border-radius:10px}.result-success{color:#276749;font-size:.9rem;font-weight:500}.result-failed{color:#c53030;font-size:.9rem;font-weight:500;margin-top:.5rem}.modal-footer{display:flex;gap:1rem;padding:1.25rem 2rem;border-top:2px solid #e2e8f0;background:#f8fafc}.cancel-btn,.save-btn{flex:1;padding:.875rem;border-radius:10px;font-size:.95rem;font-weight:600;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;justify-content:center;gap:.5rem}.cancel-btn{background:#fff;border:2px solid #e2e8f0;color:#718096}.cancel-btn:hover:not(:disabled){border-color:#cbd5e0;color:#4a5568}.save-btn{background:#48bb78;border:none;color:#fff}.save-btn:hover:not(:disabled){background:#38a169}.save-btn:disabled{opacity:.5;cursor:not-allowed}.conceptnet-graph-container{position:relative;width:100%;height:100%;min-height:500px;background:#f8fafc;border-radius:8px;overflow:hidden}.conceptnet-graph-empty{display:flex;align-items:center;justify-content:center;height:100%;min-height:400px;color:#718096;font-size:14px;text-align:center;padding:2rem}.conceptnet-graph-svg{width:100%;height:100%;display:block}.graph-edge{pointer-events:stroke;transition:stroke-width .15s}.graph-node{transition:transform .1s ease}.graph-node:hover rect{filter:drop-shadow(0 2px 6px rgba(0,0,0,.15))}.graph-legend{position:absolute;top:12px;left:12px;background:#fff;border-radius:6px;padding:10px 14px;box-shadow:0 1px 4px #0000001a;z-index:10;max-width:160px}.graph-legend h4{margin:0 0 8px;font-size:11px;font-weight:600;color:#4a5568;text-transform:uppercase;letter-spacing:.5px}.legend-items{display:flex;flex-direction:column;gap:5px}.legend-item{display:flex;align-items:center;gap:8px}.legend-label{font-size:11px;color:#4a5568;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.graph-tooltip{position:absolute;top:12px;right:12px;background:#fff;border-radius:6px;padding:12px 16px;box-shadow:0 2px 8px #0000001f;z-index:10;min-width:140px;max-width:200px}.tooltip-title{font-size:14px;font-weight:600;color:#1a202c;margin-bottom:8px;word-break:break-word}.tooltip-row{display:flex;justify-content:space-between;align-items:center;font-size:12px;margin-bottom:4px}.tooltip-label{color:#718096}.tooltip-value{font-weight:500;color:#2d3748}.tooltip-seed{margin-top:8px;padding:4px 8px;background:#edf2f7;border-radius:4px;font-size:10px;font-weight:600;color:#4a5568;text-align:center;text-transform:uppercase;letter-spacing:.5px}.graph-controls{position:absolute;bottom:12px;right:12px;display:flex;gap:6px;z-index:10}.graph-controls button{width:32px;height:32px;border:none;background:#fff;border-radius:6px;font-size:16px;font-weight:500;color:#4a5568;cursor:pointer;box-shadow:0 1px 3px #0000001a;display:flex;align-items:center;justify-content:center;transition:background .15s,transform .1s}.graph-controls button:hover{background:#edf2f7;transform:scale(1.05)}.graph-controls button:active{transform:scale(.95)}.graph-stats{position:absolute;bottom:12px;left:12px;display:flex;gap:8px;font-size:11px;color:#718096;background:#ffffffe6;padding:6px 10px;border-radius:4px;z-index:10}.graph-stats span{white-space:nowrap}.graph-copy-controls{position:absolute;bottom:50px;right:12px;display:flex;gap:6px;z-index:10}.copy-format-select{padding:6px 10px;border:1px solid #e2e8f0;border-radius:6px;background:#fff;font-size:12px;color:#4a5568;cursor:pointer;box-shadow:0 1px 3px #0000001a}.copy-format-select:hover{border-color:#cbd5e0}.copy-format-select:focus{outline:none;border-color:#4299e1;box-shadow:0 0 0 2px #4299e133}.copy-btn{padding:6px 12px;border:none;background:#fff;border-radius:6px;font-size:12px;font-weight:500;color:#4a5568;cursor:pointer;box-shadow:0 1px 3px #0000001a;display:flex;align-items:center;gap:4px;transition:background .15s,transform .1s,color .15s;white-space:nowrap}.copy-btn:hover{background:#edf2f7;transform:scale(1.02)}.copy-btn:active{transform:scale(.98)}.copy-btn.success{background:#48bb78;color:#fff}.debug-pipeline-page{width:100%;margin:0;padding:2rem}.debug-pipeline-page .centered-content{max-width:900px;margin:0 auto;padding:2rem;width:100%}.pipeline-results{width:100%;margin-top:2rem}.debug-pipeline-page .page-header{text-align:center;margin-bottom:2rem;max-width:900px;margin-left:auto;margin-right:auto}.debug-pipeline-page .page-header h2{font-size:2.25rem;color:#2d3748;margin-bottom:.5rem}.debug-pipeline-page .subtitle{color:#718096;font-size:1rem}.examples-panel{background:#fff;border-radius:12px;box-shadow:0 2px 8px #00000014;padding:1rem 1.5rem;margin-bottom:1.5rem}.examples-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.75rem}.examples-header h3{margin:0;font-size:1rem;color:#2d3748}.save-example-btn{padding:.5rem 1rem;background:#38a169;color:#fff;border:none;border-radius:6px;font-size:.85rem;font-weight:600;cursor:pointer;transition:background .2s}.save-example-btn:hover{background:#2f855a}.examples-list{display:flex;flex-wrap:wrap;gap:.5rem}.example-btn{display:flex;align-items:center;gap:.5rem;padding:.5rem 1rem;background:#f7fafc;border:2px solid #e2e8f0;border-radius:8px;cursor:pointer;transition:all .2s}.example-name{font-weight:600;color:#2d3748;font-size:.9rem}.no-examples{margin:0;color:#a0aec0;font-size:.9rem;font-style:italic}.save-dialog-overlay{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000}.save-dialog{background:#fff;border-radius:12px;padding:1.5rem;width:400px;max-width:90%}.save-dialog h4{margin:0 0 1rem;color:#2d3748}.save-dialog-error{background:#fed7d7;color:#c53030;padding:.5rem .75rem;border-radius:6px;font-size:.85rem;margin-bottom:.75rem}.save-dialog input{width:100%;padding:.75rem;border:2px solid #e2e8f0;border-radius:8px;font-size:.95rem;margin-bottom:1rem}.save-dialog input:focus{outline:none;border-color:#4a5568}.save-dialog-actions{display:flex;justify-content:flex-end;gap:.5rem}.save-dialog-actions button{padding:.5rem 1rem;border:none;border-radius:6px;font-weight:600;cursor:pointer}.save-dialog-actions button:first-child{background:#e2e8f0;color:#4a5568}.save-dialog-actions button.primary{background:#4a5568;color:#fff}.save-dialog-actions button:hover{opacity:.9}.select-ontology-btn{width:100%;padding:.6rem .75rem;background:#4a5568;color:#fff;border:none;border-radius:8px;font-size:.85rem;font-weight:600;cursor:pointer;transition:background .2s;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ontology-selection-container{display:flex;flex-direction:column;gap:.75rem}.debug-pipeline-page .debug-ontology-cards{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}.debug-pipeline-page .debug-ontology-card{padding:.6rem .75rem;border-radius:8px;border:2px solid;transition:all .2s ease}.debug-pipeline-page .debug-ontology-card.primary{background:#eff6ff;border-color:#3182ce}.debug-pipeline-page .debug-ontology-card.secondary{background:#faf5ff;border-color:#805ad5}.debug-pipeline-page .debug-ontology-card.empty{background:#f7fafc;border-color:#e2e8f0;border-style:dashed;display:flex;align-items:center;justify-content:center;min-height:60px}.debug-pipeline-page .debug-ontology-card-empty-text{color:#a0aec0;font-size:.8rem;font-style:italic}.debug-pipeline-page .debug-ontology-card-header{display:flex;align-items:center;gap:.5rem;margin-bottom:.35rem}.debug-pipeline-page .debug-ontology-card-badge{font-size:.65rem;font-weight:700;text-transform:uppercase;letter-spacing:.5px;padding:.15rem .4rem;border-radius:4px}.debug-pipeline-page .debug-ontology-card.primary .debug-ontology-card-badge{background:#3182ce;color:#fff}.debug-pipeline-page .debug-ontology-card.secondary .debug-ontology-card-badge{background:#805ad5;color:#fff}.debug-pipeline-page .debug-ontology-card-name{font-size:.8rem;font-weight:600;color:#2d3748;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.debug-pipeline-page .debug-ontology-card-preview{font-size:.75rem;color:#718096;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.help-text{color:#a0aec0;font-style:italic;text-align:center;padding:.75rem;font-size:.85rem}.strategy-section{max-width:400px}.strategy-btn{flex:1;padding:.75rem 1rem;background:#e2e8f0;color:#4a5568;border:2px solid transparent;border-radius:8px;font-size:.9rem;font-weight:600;cursor:pointer;transition:all .2s}.strategy-params{display:flex;flex-direction:column;gap:.75rem}.inference-mode-row{padding-bottom:.5rem;margin-bottom:.5rem;border-bottom:1px solid #e2e8f0}.inference-mode-toggle{display:flex;gap:.25rem;flex:1}.inference-btn{flex:1;padding:.5rem .75rem;background:#f7fafc;color:#718096;border:1px solid #e2e8f0;border-radius:6px;font-size:.8rem;font-weight:500;cursor:pointer;transition:all .2s}.inference-btn:hover{background:#edf2f7;border-color:#cbd5e0}.inference-btn.active{background:#2d3748;color:#fff;border-color:#2d3748}.inference-btn.active[title*=API]{background:#2b6cb0;border-color:#2b6cb0}.inference-btn.disabled,.inference-btn:disabled{opacity:.5;cursor:not-allowed;background:#f7fafc;color:#a0aec0}.inference-btn.disabled:hover,.inference-btn:disabled:hover{background:#f7fafc;border-color:#e2e8f0}.creative-mode-row{padding-top:.5rem;margin-top:.25rem;border-top:1px dashed #e2e8f0;flex-wrap:wrap}.creative-mode-toggle{display:flex;gap:.25rem;flex:1}.creative-btn{flex:1;padding:.4rem .6rem;background:#f7fafc;color:#718096;border:1px solid #e2e8f0;border-radius:6px;font-size:.75rem;font-weight:500;cursor:pointer;transition:all .2s}.creative-btn:hover{background:#edf2f7;border-color:#cbd5e0}.creative-btn.active{background:#48bb78;color:#fff;border-color:#38a169}.creative-hint{width:100%;margin-top:.25rem;font-size:.7rem;color:#38a169;font-style:italic}.param-row{display:flex;align-items:center;gap:1rem}.param-row label{width:100px;font-size:.85rem;color:#4a5568}.param-row input{flex:1;padding:.5rem;border:1px solid #e2e8f0;border-radius:6px;font-size:.9rem}.action-section{display:flex;justify-content:center;padding-top:1rem;border-top:1px solid #e2e8f0}.generate-btn{padding:1rem 2.5rem;background:#667eea;color:#fff;border:none;border-radius:10px;font-size:1rem;font-weight:700;cursor:pointer;transition:background .2s;display:flex;align-items:center;gap:.5rem}.generate-btn .spinner-icon{animation:spin 1s linear infinite;flex-shrink:0}.debug-pipeline-page .pipeline-results{display:flex;flex-direction:column;gap:1rem;max-width:1200px;margin:0 auto}.pipeline-step{background:#fff;border-radius:12px;box-shadow:0 2px 8px #00000014;overflow:hidden}.step-header h3{flex:1;margin:0;font-size:1.1rem;color:#2d3748}.info-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1rem;margin-bottom:1.5rem}.info-item{display:flex;flex-direction:column;gap:.25rem}.info-item label{font-size:.8rem;color:#718096;text-transform:uppercase}.info-item code{background:#edf2f7;padding:.5rem;border-radius:6px;font-size:.9rem}.list-section{margin-top:1rem}.list-section h4{font-size:.9rem;color:#4a5568;margin-bottom:.5rem}.tag-list{display:flex;flex-wrap:wrap;gap:.5rem}.tag{background:#edf2f7;padding:.25rem .75rem;border-radius:4px;font-size:.85rem;color:#4a5568}.debug-pipeline-page .tag.substitute-tag.primary{background:#3b82f62e;border:1px solid #3b82f652;color:#3b82f6}.debug-pipeline-page .tag.substitute-tag.secondary{background:#8b5cf62e;border:1px solid #8b5cf652;color:#8b5cf6}.prompt-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.5rem}.prompt-list li code{display:block;background:#edf2f7;padding:.5rem .75rem;border-radius:6px;font-size:.85rem}.generation-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(400px,1fr));gap:1rem}.debug-pipeline-page .generation-card{background:#f7fafc;border-radius:8px;padding:1rem;border:1px solid #e2e8f0}.debug-pipeline-page .generation-card .card-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem}.debug-pipeline-page .generation-card .card-header strong{color:#2d3748}.debug-pipeline-page .generation-card .card-badge{background:#667eea;color:#fff;padding:.125rem .5rem;border-radius:4px;font-size:.75rem}.debug-pipeline-page .generation-card .card-prompt{font-size:.8rem;color:#718096;margin-bottom:.75rem;padding-bottom:.5rem;border-bottom:1px dashed #e2e8f0}.debug-pipeline-page .substitute-highlight{display:inline;padding:.08rem .3rem;border-radius:4px;font-weight:600;color:inherit;-webkit-box-decoration-break:clone;box-decoration-break:clone}.debug-pipeline-page .substitute-highlight.primary{background:#3b82f633;box-shadow:inset 0 0 0 1px #3b82f64d}.debug-pipeline-page .substitute-highlight.secondary{background:#8b5cf633;box-shadow:inset 0 0 0 1px #8b5cf64d}.beam-trees-section{margin-bottom:2rem;padding-bottom:1.5rem;border-bottom:2px solid #e2e8f0}.beam-trees-section h4{margin:0 0 .5rem;color:#2d3748}.section-description{font-size:.85rem;color:#718096;margin-bottom:1rem}.beam-trees-grid{display:grid;grid-template-columns:1fr;gap:1.5rem}.beam-tree-card{background:#fff;border:1px solid #e2e8f0;border-radius:8px;overflow:hidden}.beam-tree-header{display:flex;justify-content:space-between;align-items:center;padding:.75rem 1rem;background:#f7fafc;border-bottom:1px solid #e2e8f0}.beam-tree-header strong{color:#2d3748}.node-count{font-size:.75rem;color:#718096;background:#e2e8f0;padding:.125rem .5rem;border-radius:4px}.beam-tree-prompt{font-size:.8rem;color:#718096;padding:.5rem 1rem;background:#fafafa;border-bottom:1px solid #e2e8f0}.beam-tree-graph-container{background:#fafafa;overflow:auto;min-height:400px;border:1px solid #e2e8f0;border-radius:4px}.beam-tree-svg{display:block;min-height:400px;width:100%;background:#fff}.beam-tree-empty{padding:2rem;text-align:center;color:#a0aec0;font-size:.85rem;min-height:200px;display:flex;align-items:center;justify-content:center}.generation-section h4{margin:0 0 1rem;color:#2d3748}.beam-tree-section{background:#fff;border:1px solid #e2e8f0;border-radius:6px;padding:.5rem;margin-bottom:.75rem}.beam-tree-section h5{margin:0 0 .5rem;font-size:.75rem;color:#718096;text-transform:uppercase;letter-spacing:.5px}.mini-tree-container{background:#fafafa;border-radius:4px;overflow:hidden}.mini-tree-svg{display:block;min-height:120px}.mini-tree-empty{padding:1rem;text-align:center;color:#a0aec0;font-size:.8rem}.card-generations{display:flex;flex-direction:column;gap:.5rem}.card-generations h5{margin:0 0 .25rem;font-size:.75rem;color:#718096;text-transform:uppercase;letter-spacing:.5px}.generation-item{background:#fff;padding:.5rem;border-radius:6px;border:1px solid #e2e8f0}.gen-index{display:inline-block;background:#edf2f7;padding:.125rem .5rem;border-radius:4px;font-size:.7rem;color:#718096;margin-right:.5rem}.gen-text{font-size:.85rem;color:#2d3748}.prob-bar{display:flex;gap:2px;margin-top:.25rem;align-items:center}.prob-segment{width:20px;height:4px;background:#667eea;border-radius:2px}.prob-more{font-size:.65rem;color:#a0aec0;margin-left:4px}.parsing-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(350px,1fr));gap:1rem}.parsing-card{background:#f7fafc;border-radius:8px;padding:1rem;border:1px solid #e2e8f0}.parsing-card.error{border-color:#fc8181;background:#fff5f5}.parsing-card .card-header{margin-bottom:.5rem}.parse-index{font-weight:600;color:#4a5568}.parse-status{font-size:.75rem;padding:.125rem .5rem;border-radius:4px}.parse-status.success{background:#c6f6d5;color:#276749}.parse-status.error{background:#fed7d7;color:#c53030}.parse-text{font-size:.85rem;color:#2d3748;margin-bottom:.75rem;padding-bottom:.5rem;border-bottom:1px dashed #e2e8f0}.parse-error{color:#c53030;font-size:.8rem}.structure-item{margin-bottom:1rem;padding:.75rem;background:#f7fafc;border-radius:8px}.structure-item.included,.structure-item.included.most-common{background:#c6f6d5;border:2px solid #38a169}.structure-bar{height:24px;background:#e2e8f0;border-radius:4px;margin-bottom:.5rem;position:relative;overflow:hidden}.bar-fill{height:100%;background:#667eea;border-radius:4px;transition:width .3s}.structure-item.included .bar-fill{background:#38a169}.bar-label{position:absolute;right:8px;top:50%;transform:translateY(-50%);font-size:.75rem;font-weight:600;color:#4a5568}.structure-signature{display:block;font-size:.75rem;color:#718096;word-break:break-all}.clustering-config-section{margin-top:0}.clustering-params{display:flex;flex-direction:column;gap:1rem;padding:1rem;background:#f7fafc;border-radius:8px}.clustering-params .param-row{display:flex;align-items:center;gap:.75rem;min-width:0;flex-wrap:wrap}.clustering-params .param-row label{display:flex;align-items:center;gap:.5rem;font-size:.85rem;color:#4a5568;white-space:nowrap;flex-shrink:0;min-width:120px}.clustering-method-buttons{display:flex;gap:.5rem;flex-wrap:wrap}.method-btn{padding:.4rem .75rem;border:2px solid #e2e8f0;border-radius:6px;background:#fff;color:#4a5568;font-size:.8rem;font-weight:500;cursor:pointer;transition:all .15s}.method-btn:hover{border-color:#4a5568;background:#f7fafc}.method-btn.active{border-color:#4a5568;background:#4a5568;color:#fff}.clustering-params input[type=number]{width:70px;padding:.45rem .5rem;border:2px solid #e2e8f0;border-radius:6px;font-size:.85rem;flex-shrink:0}.clustering-params input[type=number]:focus{outline:none;border-color:#4a5568}.classification-warning{background:#fffbeb;border:1px solid #f6e05e;border-radius:8px;padding:.75rem 1rem;margin-bottom:1rem;color:#744210;font-size:.85rem;line-height:1.5}.classification-legend{display:flex;flex-wrap:wrap;gap:.5rem 1rem;margin:1rem 0 1.25rem;padding:.75rem 1rem;background:#f7fafc;border-radius:8px;border:1px solid #e2e8f0}.legend-swatch{width:12px;height:12px;border-radius:3px;flex-shrink:0}.legend-label{font-size:.78rem;color:#4a5568;font-weight:500}.classification-sentences{display:flex;flex-direction:column;gap:.5rem;max-height:600px;overflow-y:auto}.classification-cluster-group{display:flex;flex-direction:column;gap:.4rem}.classification-cluster-header{display:flex;align-items:center;gap:.6rem;padding:.35rem 0;margin-top:.25rem}.classification-cluster-tag{font-size:.75rem;font-weight:600;color:#4a5568;background:#e2e8f0;padding:.2rem .6rem;border-radius:4px;letter-spacing:.02em}.classification-cluster-count{font-size:.72rem;color:#a0aec0}.classification-cluster-badge{font-size:.68rem;font-weight:600;color:#667eea;background:#ebf0ff;padding:.1rem .4rem;border-radius:4px;font-variant-numeric:tabular-nums}.classified-sentence-card{background:#fafafa;border:1px solid #e2e8f0;border-radius:8px;padding:.75rem 1rem}.classified-sentence-header{display:flex;align-items:center;gap:.75rem;margin-bottom:.5rem}.classification-word-count{font-size:.75rem;color:#718096;background:#edf2f7;padding:.15rem .5rem;border-radius:10px}.classified-sentence-text{display:flex;flex-wrap:wrap;gap:.3rem;line-height:1.8;font-size:.9rem;color:#2d3748}.classified-word{display:inline-block;padding:.1rem .45rem;border-left:3px solid;border-radius:4px;font-weight:500;cursor:default;transition:opacity .15s ease}.classified-word:hover{opacity:.8}.unclassified-word{display:inline-block;padding:.1rem .15rem}.classification-flat-map{margin-top:.5rem}.classification-flat-map h4{margin:0 0 .75rem;font-size:.95rem;color:#4a5568}.golden-tree-views-container{display:flex;flex-direction:column;gap:2rem}.golden-tree-view-section{border:1px solid #e2e8f0;border-radius:8px;padding:1rem;background:#fff}.view-mode-label{margin:0 0 .25rem;font-size:1.1rem;font-weight:600;color:#2d3748}.view-mode-description{margin:0 0 1rem;font-size:.85rem;color:#718096}.golden-tree-container{border:1px solid #e2e8f0;border-radius:8px;overflow:hidden;background:#fafafa}.tree-svg{display:block;min-height:500px}.no-tree-message{background:#fffbeb;border:1px solid #f6e05e;border-radius:8px;padding:1.5rem;color:#744210}.no-tree-message p{margin:0 0 .5rem}.no-tree-message ul{margin:0;padding-left:1.5rem}.tree-json{margin-top:1rem}.tree-json h4{margin-bottom:.5rem;color:#4a5568}.tree-json pre{background:#1a202c;color:#a0aec0;padding:1rem;border-radius:8px;overflow-x:auto;font-size:.8rem;max-height:300px}.golden-tree-svg{display:block;margin:0 auto}.golden-tree-empty{padding:2rem;text-align:center;color:#a0aec0;font-size:.9rem}@media(max-width:768px){.config-row{flex-direction:column}.clustering-summary{flex-wrap:wrap}.generation-grid,.parsing-grid{grid-template-columns:1fr}}@media(max-width:500px){.generation-grid{grid-template-columns:1fr}}.experimental-viz-section{margin-top:3rem;padding-top:2rem;border-top:2px dashed #e2e8f0}.experimental-viz-header{font-size:1.25rem;color:#2d3748;margin-bottom:.5rem}.experimental-viz-description{color:#718096;font-size:.9rem;margin-bottom:1.5rem}.treemap-container{background:#f7fafc;border-radius:8px;padding:1rem}.treemap-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));grid-auto-rows:min-content;align-items:start;gap:12px}.treemap-group{border-radius:8px;padding:12px;min-width:150px;display:flex;flex-direction:column;transition:transform .2s,box-shadow .2s}.treemap-group:hover{transform:translateY(-2px);box-shadow:0 4px 12px #00000026}.treemap-group-header{font-weight:700;font-size:.9rem;color:#2d3748;margin-bottom:8px;padding-bottom:6px;border-bottom:1px solid rgba(0,0,0,.1)}.treemap-tokens{display:flex;flex-wrap:wrap;gap:6px;flex-grow:1}.treemap-token{background:#ffffffb3;padding:4px 8px;border-radius:4px;font-size:.85rem;color:#2d3748;white-space:nowrap}.treemap-count{font-size:.7rem;color:#718096;margin-left:4px}.treemap-more{font-size:.75rem;color:#718096;font-style:italic;align-self:flex-end;margin-top:auto;padding-top:8px}.treemap-empty{padding:2rem;text-align:center;color:#a0aec0}.treemap-group-count{font-weight:400;font-size:.8rem;color:#4a5568;margin-left:6px}.sankey-container{background:#f7fafc;border-radius:8px;overflow-x:auto}.sankey-svg{display:block;min-width:100%}.sankey-flow{transition:opacity .2s}.sankey-flow:hover{opacity:.8!important}.sankey-node rect{transition:all .2s;cursor:pointer}.sankey-node:hover rect{filter:brightness(.9);stroke-width:2}.sankey-empty{padding:2rem;text-align:center;color:#a0aec0}.sankey-legend{display:flex;flex-wrap:wrap;gap:12px;margin-top:1rem;padding:8px 12px;background:#fff;border-radius:6px;justify-content:center}.sankey-legend-item{display:flex;align-items:center;gap:6px}.sankey-legend-color{width:14px;height:14px;border-radius:3px;border:1px solid rgba(0,0,0,.1)}.sankey-legend-label{font-size:.75rem;color:#4a5568}.sentiment-branch-container{background:#f7fafc;border-radius:8px;padding:1rem;position:relative;overflow-x:auto}.sentiment-legend{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:1rem;padding:8px 12px;background:#fff;border-radius:6px;box-shadow:0 1px 4px #00000014}.legend-item{display:flex;align-items:center;gap:6px}.legend-color{width:16px;height:16px;border-radius:4px;border:1px solid rgba(0,0,0,.1)}.sentiment-branch-svg{display:block;background:#fff;border-radius:8px;min-width:100%}.sentiment-branch-svg .node rect{transition:all .2s;cursor:pointer}.sentiment-branch-svg .node:hover rect{filter:brightness(.95)}.sentiment-branch-svg .branch-backgrounds rect{pointer-events:none}.sentiment-branch-empty{padding:2rem;text-align:center;color:#a0aec0}.classifying-indicator{display:flex;align-items:center;justify-content:center;gap:10px;padding:12px 20px;background:#ebf8ff;border-radius:10px;margin-bottom:16px;color:#2b6cb0;font-size:.9rem;font-weight:500}.classifying-indicator .spinner{width:16px;height:16px;border:2px solid #90cdf4;border-top-color:#2b6cb0;border-radius:50%;animation:spin .8s linear infinite}.debug-pipeline-page .comparison-mode-banner{display:flex;align-items:center;justify-content:space-between;background:#f8fafc;border:2px solid #e2e8f0;border-radius:12px;padding:1rem 1.5rem;margin-bottom:1.5rem;max-width:1200px;margin-left:auto;margin-right:auto}.debug-pipeline-page .comparison-label{font-weight:700;color:#4a5568;font-size:.9rem;text-transform:uppercase;letter-spacing:.5px}.debug-pipeline-page .comparison-ontologies{display:flex;align-items:center;gap:1rem}.debug-pipeline-page .ontology-badge{padding:.5rem 1rem;border-radius:8px;font-weight:600;font-size:.9rem}.debug-pipeline-page .ontology-badge.primary{background:#3182ce;color:#fff}.debug-pipeline-page .ontology-badge.secondary{background:#805ad5;color:#fff}.debug-pipeline-page .vs-badge{background:#4a5568;color:#fff;padding:.25rem .5rem;border-radius:4px;font-size:.75rem;font-weight:700}.debug-pipeline-page .pipeline-results.comparison-layout{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem;align-items:start;width:100%}.debug-pipeline-page .pipeline-column{display:flex;flex-direction:column;gap:1rem;width:100%;min-width:0}.debug-pipeline-page .column-header{padding:.75rem 1.25rem;border-radius:8px;font-size:1rem;font-weight:600;margin:0 0 .5rem}.debug-pipeline-page .column-header.primary{background:#3182ce;color:#fff}.debug-pipeline-page .column-header.secondary{background:#805ad5;color:#fff}.debug-pipeline-page .pipeline-inference-strip{display:flex;flex-wrap:wrap;gap:.4rem;margin:-.2rem 0 .7rem}.debug-pipeline-page .pipeline-inference-chip{display:inline-flex;align-items:center;padding:.2rem .55rem;border-radius:999px;border:1px solid #cbd5e1;background:#f8fafc;color:#475569;font-size:.72rem;font-weight:600}.debug-pipeline-page .pipeline-inference-chip.mode.local{border-color:#9ae6b4;background:#f0fff4;color:#2f855a}.debug-pipeline-page .pipeline-inference-chip.mode.api{border-color:#fbd38d;background:#fffaf0;color:#b7791f}.debug-pipeline-page .pipeline-results.comparison-layout .primary-column,.debug-pipeline-page .pipeline-results.comparison-layout .secondary-column{background:#fff;border-radius:12px;box-shadow:0 2px 8px #00000014;padding:1.25rem}.debug-pipeline-page .pipeline-results.comparison-layout .primary-column{border-top:3px solid #3182ce}.debug-pipeline-page .pipeline-results.comparison-layout .secondary-column{border-top:3px solid #805ad5}.secondary-summary{display:flex;flex-direction:column;gap:.75rem}.secondary-summary .summary-item{padding:.5rem .75rem;background:#f7fafc;border-radius:6px;font-size:.9rem;color:#4a5568}.secondary-summary .summary-item strong{color:#2d3748;margin-right:.5rem}.secondary-sankey-preview{margin-top:1rem;padding-top:1rem;border-top:1px solid #e2e8f0}.secondary-sankey-preview h5{margin:0 0 .75rem;font-size:.9rem;color:#2d3748}@media(max-width:1200px){.debug-pipeline-page .pipeline-results.comparison-layout{grid-template-columns:1fr}.debug-pipeline-page .secondary-column{position:static}}.debug-pipeline-page .sankey-preview-section{margin-top:3rem;margin-bottom:2rem}.debug-pipeline-page .sankey-preview-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1.5rem}.debug-pipeline-page .sankey-preview-header h3{margin:0;font-size:1.5rem;font-weight:700;color:#f8fafc;letter-spacing:-.025em}.debug-pipeline-page .sankey-preview-container{background:#fff;border-radius:16px;padding:1rem;border:1px solid #e2e8f0;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f;min-height:600px;display:flex;align-items:center;justify-content:center}.debug-pipeline-page .sankey-preview-container>div{width:100%;max-width:100%;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}.debug-pipeline-page .sankey-preview-container>div{margin:0 auto;flex-shrink:0}.debug-pipeline-page .sankey-preview-section{margin-top:3rem;padding:2rem;background:#f8fafc;border-radius:20px;box-shadow:0 10px 25px #0000000d;border:1px solid #e2e8f0;margin-bottom:2rem}.debug-pipeline-page .sankey-preview-header h3{margin:0;font-size:1.5rem;font-weight:700;color:#1e293b;letter-spacing:-.025em}.classifier-test-page{padding:2rem;max-width:900px;margin:0 auto}.classifier-test-page .page-header{margin-bottom:2rem}.classifier-test-page .page-header h2{font-size:1.6rem;font-weight:700;margin-bottom:.4rem;color:#2d3748}.classifier-test-page .page-header .subtitle{color:#718096;font-size:.9rem}.reclassify-panel{background:#fff;border-radius:16px;box-shadow:0 4px 20px #0000000f;overflow:hidden;margin-bottom:1.5rem;margin-left:auto;margin-right:auto;max-width:1000px;padding:1.75rem 2rem}.reclassify-panel-inner{padding:0}.reclassify-panel h3{margin:0 0 1.25rem;font-size:1.1rem;font-weight:600;color:#2d3748}.reclassify-controls{display:flex;align-items:flex-end;gap:1.5rem;flex-wrap:wrap}.reclassify-controls .param-group{display:flex;flex-direction:column;gap:.4rem}.reclassify-controls .param-group label{font-size:.8rem;font-weight:600;color:#4a5568;text-transform:uppercase;letter-spacing:.4px}.reclassify-controls .param-group input{width:90px;padding:.625rem .75rem;border:2px solid #e2e8f0;border-radius:8px;font-size:.9rem;font-family:inherit;color:#2d3748;background:#f8fafc;transition:border-color .2s ease,background .2s ease}.reclassify-controls .param-group input:focus{outline:none;border-color:#4a5568;background:#fff}.reclassify-controls .param-hint{font-size:.7rem;color:#a0aec0}.reclassify-panel h4{margin:1.5rem 0 .875rem;font-size:.8rem;font-weight:700;color:#718096;text-transform:uppercase;letter-spacing:.5px;padding-top:1.25rem;border-top:1px solid #edf2f7}.llm-settings-controls{display:flex;flex-direction:column;gap:1rem}.llm-setting-row{display:flex;flex-direction:column;gap:.5rem}.setting-label{font-size:.8rem;font-weight:600;color:#4a5568;text-transform:uppercase;letter-spacing:.4px}.toggle-button-group{display:flex;gap:.5rem;flex-wrap:wrap}.toggle-btn{display:flex;align-items:center;gap:.375rem;padding:.5rem .875rem;background:#f8fafc;border:2px solid #e2e8f0;border-radius:8px;font-size:.85rem;font-weight:500;color:#4a5568;cursor:pointer;transition:all .2s ease;font-family:inherit}.toggle-btn:hover{border-color:#4a5568;background:#fff}.toggle-btn.active{background:#4a5568;border-color:#4a5568;color:#fff}.toggle-btn .btn-icon{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;background:#00000014;border-radius:4px;font-size:.75rem;font-weight:700}.toggle-btn.active .btn-icon{background:#fff3}.thinking-levels .toggle-btn{padding:.4rem .75rem;font-size:.8rem}.comparison-mode .toggle-btn{flex:1;justify-content:center}.reclassify-action{padding:1.5rem 0 0;border-top:1px solid #edf2f7;margin-top:1.5rem;display:flex;align-items:center;gap:1.5rem;flex-wrap:wrap}.reclassify-btn{padding:.875rem 2.5rem;background:#38a169;color:#fff;border:none;border-radius:12px;font-size:.95rem;font-weight:700;cursor:pointer;display:flex;align-items:center;gap:.625rem;transition:background .2s ease,transform .2s ease;font-family:inherit}.reclassify-btn:hover:not(:disabled){background:#2f855a;transform:translateY(-1px)}.reclassify-btn:disabled{background:#cbd5e0;cursor:not-allowed;transform:none}.timing-display{background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:.875rem 1.25rem;display:flex;align-items:center;gap:1rem}.timing-header{display:flex;align-items:center;gap:.4rem}.timing-icon{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;background:#48bb78;color:#fff;border-radius:6px;font-size:.7rem;font-weight:700}.timing-title{font-size:.8rem;font-weight:600;color:#4a5568;white-space:nowrap}.timing-stats{display:flex;gap:.5rem;flex-wrap:wrap}.timing-stat{display:flex;flex-direction:column;gap:.1rem;padding:.4rem .6rem;background:#f8fafc;border:1px solid #e2e8f0;border-radius:7px;min-width:60px}.timing-stat .stat-value{font-size:.875rem;font-weight:700;color:#2d3748;font-family:SF Mono,Monaco,Courier New,monospace}.timing-stat .stat-label{font-size:.62rem;font-weight:600;color:#a0aec0;text-transform:uppercase;letter-spacing:.3px}.spinner-icon{animation:spin 1s linear infinite}.processing-status{display:flex;align-items:center;gap:.875rem;padding:1rem 1.25rem;background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;margin-bottom:1.5rem;max-width:1000px;margin-left:auto;margin-right:auto;color:#4a5568;font-size:.9rem;font-weight:500}.stats-section{background:#fff;border-radius:16px;box-shadow:0 4px 20px #0000000f;padding:1.75rem 2rem;margin-bottom:1.5rem;margin-left:auto;margin-right:auto;max-width:1000px}.stats-section h3{margin:0 0 1.25rem;font-size:1.1rem;font-weight:600;color:#2d3748}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:1rem}.stat-card{background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:1.25rem;text-align:center}.stat-value{display:block;font-size:1.75rem;font-weight:700;color:#2d3748}.stat-label{display:block;font-size:.72rem;font-weight:600;color:#a0aec0;text-transform:uppercase;letter-spacing:.4px;margin-top:.25rem}.legend-section{background:#fff;border-radius:16px;box-shadow:0 4px 20px #0000000f;padding:1.5rem 2rem;margin-bottom:1.5rem;margin-left:auto;margin-right:auto;max-width:1000px}.legend-section h4{margin:0 0 .875rem;font-size:.8rem;font-weight:700;color:#718096;text-transform:uppercase;letter-spacing:.5px}.legend-items{display:flex;flex-wrap:wrap;gap:.625rem}.legend-item{display:flex;align-items:center;gap:.4rem;font-size:.85rem;color:#2d3748}.legend-count{color:#a0aec0;font-size:.75rem}.legend-item-bonus{background:#f0fff4;padding:.2rem .5rem;border-radius:6px;border:1px solid #c6f6d5}.legend-bonus-desc{display:inline-flex;align-items:center;justify-content:center;width:15px;height:15px;font-size:.65rem;background:#4a5568;color:#fff;border-radius:50%;cursor:help;margin-left:.25rem}.bonus-categories-detail{margin-top:1rem;padding-top:1rem;border-top:1px solid #edf2f7}.bonus-categories-detail h5{margin:0 0 .625rem;font-size:.75rem;font-weight:700;color:#718096;text-transform:uppercase;letter-spacing:.5px}.bonus-category-item{display:flex;align-items:center;gap:.5rem;padding:.5rem .625rem;margin-bottom:.35rem;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;font-size:.85rem;color:#2d3748}.bonus-color-swatch{width:12px;height:12px;border-radius:3px;flex-shrink:0}.bonus-examples{color:#718096;font-style:italic;font-size:.8rem}.visualization-section{background:#fff;width:100%;border-radius:16px;box-shadow:0 4px 20px #0000000f;overflow:hidden;margin-bottom:2rem}.section-header-with-controls{display:flex;justify-content:space-between;align-items:center;padding:1.5rem 2rem;border-bottom:1px solid #edf2f7;flex-wrap:wrap;gap:1rem}.section-header-with-controls h3{margin:0;font-size:1.1rem;font-weight:600;color:#2d3748}.visualization-mode-buttons{display:flex;gap:.5rem;background:#edf2f7;border-radius:10px;padding:4px}.visualization-mode-buttons .mode-btn{padding:.5rem 1rem;background:transparent;border:none;border-radius:7px;font-size:.85rem;font-weight:600;cursor:pointer;transition:all .2s ease;color:#718096;font-family:inherit}.visualization-mode-buttons .mode-btn:hover{color:#4a5568}.visualization-mode-buttons .mode-btn.active{background:#fff;color:#2d3748;box-shadow:0 1px 3px #0000001a}.sankey-controls{background:#f8fafc;border-bottom:1px solid #edf2f7;padding:1.25rem 2rem}.sankey-controls .control-row{display:flex;gap:2rem;align-items:center;margin-bottom:1rem;flex-wrap:wrap}.sankey-controls .control-row label{display:flex;gap:.5rem;align-items:center;font-size:.85rem;font-weight:500;color:#4a5568}.sankey-controls .control-row select{padding:.4rem .75rem;border:2px solid #e2e8f0;border-radius:7px;font-size:.85rem;background:#fff;color:#2d3748;font-family:inherit;cursor:pointer;transition:border-color .2s ease}.sankey-controls .control-row select:focus{outline:none;border-color:#4a5568}.sankey-controls .checkbox-label{cursor:pointer}.sankey-controls .checkbox-label input[type=checkbox]{width:16px;height:16px;cursor:pointer;accent-color:#4a5568}.sankey-controls .slider-row{display:flex;gap:2rem;flex-wrap:wrap}.sankey-controls .slider-row label{display:flex;flex-direction:column;gap:.375rem;font-size:.8rem;font-weight:600;color:#4a5568;min-width:150px}.sankey-controls .slider-row input[type=range]{width:100%;cursor:pointer;accent-color:#4a5568}.sankey-section{min-height:500px;width:100%;overflow:auto}.comparison-sankey-section{min-height:600px;width:100%}.results-section{background:#fff;border-radius:16px;box-shadow:0 4px 20px #0000000f;padding:1.75rem 2rem;margin-bottom:2rem;margin-left:auto;margin-right:auto}.results-section h3{margin:0 0 .375rem;font-size:1.1rem;font-weight:600;color:#2d3748}.edit-hint{font-size:.8rem;color:#718096;margin-bottom:1.25rem}.results-table-container{max-height:500px;overflow-y:auto;border:1px solid #e2e8f0;border-radius:10px}.results-table{width:100%;border-collapse:collapse;font-size:.875rem}.results-table th,.results-table td{padding:.75rem .875rem;text-align:left;border-bottom:1px solid #edf2f7}.results-table th{background:#f8fafc;font-size:.75rem;font-weight:700;color:#718096;text-transform:uppercase;letter-spacing:.4px;position:sticky;top:0}.results-table tr:last-child td{border-bottom:none}.results-table tbody tr:hover{background:#f8fafc}.token-cell{font-family:SF Mono,Monaco,Courier New,monospace;font-size:.82rem;color:#2d3748}.category-badge{display:inline-block;padding:.25rem .625rem;border-radius:6px;font-size:.75rem;font-weight:600;color:#fff}.category-cell{min-width:180px}.category-select{width:100%;padding:.4rem .6rem;border:2px solid #4a5568;border-radius:7px;font-size:.875rem;background:#fff;cursor:pointer;font-family:inherit;color:#2d3748}.category-select:focus{outline:none}.results-table th:last-child,.results-table td:last-child{width:120px;text-align:center}.actions-cell{white-space:nowrap}.edit-btn{padding:.3rem .7rem;background:#f8fafc;color:#4a5568;border:1px solid #e2e8f0;border-radius:6px;font-size:.78rem;font-weight:600;cursor:pointer;transition:all .15s ease;font-family:inherit}.edit-btn:hover{background:#edf2f7;border-color:#4a5568;color:#2d3748}.edit-actions{display:flex;gap:.4rem;justify-content:center}.save-btn{padding:.3rem .7rem;background:#38a169;color:#fff;border:none;border-radius:6px;font-size:.78rem;font-weight:700;cursor:pointer;transition:background .15s ease;font-family:inherit}.save-btn:hover:not(:disabled){background:#2f855a}.save-btn:disabled{opacity:.6;cursor:not-allowed}.cancel-btn{padding:.3rem .7rem;background:#f8fafc;color:#718096;border:1px solid #e2e8f0;border-radius:6px;font-size:.78rem;font-weight:600;cursor:pointer;transition:all .15s ease;font-family:inherit}.cancel-btn:hover:not(:disabled){background:#edf2f7;color:#4a5568}.cancel-btn:disabled{opacity:.6;cursor:not-allowed}.editing-row{background:#fffbf0}.editing-row td{border-color:#f6e05e}@media(max-width:768px){.classifier-test-page{padding:1rem}.reclassify-panel{padding:1.25rem}.reclassify-action{flex-direction:column;align-items:stretch}.reclassify-btn{width:100%;justify-content:center}.section-header-with-controls{flex-direction:column;align-items:stretch;padding:1.25rem}.visualization-mode-buttons{justify-content:center}.results-section{padding:1.25rem}.edit-actions{flex-direction:column;gap:.25rem}}.treemap-test-page{max-width:1400px;margin:0 auto;padding:2rem}.example-strategy.temperature_sampling{background:#dd6b20;color:#fff}.example-btn.active .example-strategy{background:#fff3}.algorithm-toggles{display:flex;flex-wrap:wrap;gap:.75rem}.view-mode-toggle{display:flex;gap:.5rem;margin-bottom:.75rem}.mode-btn{flex:1;padding:.75rem 1.25rem;background:#f7fafc;border:2px solid #e2e8f0;border-radius:8px;cursor:pointer;transition:all .2s;font-size:.9rem;font-weight:500;color:#4a5568}.mode-btn.active{background:#4a5568;border-color:#4a5568;color:#fff}.full-view-type-toggle{display:flex;gap:.5rem}.type-btn{flex:1;padding:.5rem 1rem;background:#edf2f7;border:1px solid #e2e8f0;border-radius:6px;cursor:pointer;transition:all .2s;font-size:.8rem;color:#4a5568}.type-btn:hover:not(.active){background:#e2e8f0}.type-btn.active{background:#718096;border-color:#718096;color:#fff}.full-tree-view{background:#fff;border-radius:16px;box-shadow:0 2px 12px #00000014;padding:1.5rem;margin-bottom:1.5rem}.full-tree-stack{display:flex;flex-direction:column;gap:2rem}.full-tree-item{display:flex;flex-direction:column;width:100%}.full-tree-label{font-size:1rem;font-weight:600;color:#4a5568;margin-bottom:.75rem;text-align:center}.toggle-label{display:flex;align-items:center;gap:.5rem;cursor:pointer;padding:.5rem 1rem;background:#f7fafc;border-radius:8px;border:2px solid transparent;transition:all .2s;font-size:.9rem;color:#4a5568}.toggle-label:hover{background:#edf2f7}.toggle-label input:checked+span{color:#2d3748;font-weight:600}.toggle-label:has(input:checked){border-color:#4a5568;background:#edf2f7}.toggle-label input{accent-color:#4a5568}.settings-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem}.setting-item{display:flex;align-items:center;gap:.75rem}.setting-item label{font-size:.85rem;color:#4a5568;min-width:120px}.setting-item input[type=range]{flex:1;accent-color:#4a5568}.setting-item span{font-size:.8rem;color:#718096;min-width:35px;text-align:right}.setting-item.checkbox label{display:flex;align-items:center;gap:.5rem;cursor:pointer}.setting-item.checkbox input{accent-color:#4a5568;width:16px;height:16px}.status-bar{display:flex;align-items:center;justify-content:center;gap:.75rem;padding:.75rem 1.5rem;background:#ebf8ff;border-radius:10px;margin-bottom:1.5rem;color:#2b6cb0;font-size:.9rem;font-weight:500}.spinner{width:16px;height:16px;border:2px solid #90cdf4;border-top-color:#2b6cb0;border-radius:50%;animation:spin .8s linear infinite}.legend-bar{display:flex;flex-wrap:wrap;align-items:center;gap:1rem;padding:.75rem 1.5rem;background:#fff;border-radius:10px;margin-bottom:1.5rem;box-shadow:0 1px 4px #0000000d}.legend-title{font-size:.85rem;color:#718096;font-weight:600}.legend-item{display:flex;align-items:center;gap:.4rem}.legend-color{width:12px;height:12px;border-radius:3px}.legend-label{font-size:.8rem;color:#4a5568}.treemaps-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(500px,1fr));gap:1.5rem;justify-items:center}.treemap-card{position:relative;background:#fff;border-radius:16px;box-shadow:0 2px 12px #00000014;overflow:hidden;width:100%;max-width:600px}.treemap-card-header{padding:1rem 1.25rem .75rem;border-bottom:1px solid #f0f0f0}.treemap-card-header h4{margin:0 0 .25rem;font-size:1rem;color:#2d3748}.treemap-card-header p{margin:0;font-size:.8rem;color:#718096;line-height:1.4}.treemap-breadcrumb-mini{display:flex;align-items:center;gap:2px;padding:.5rem 1rem;background:#f9fafb;font-size:.75rem}.treemap-breadcrumb-mini .breadcrumb-sep{color:#ccc;margin:0 4px}.treemap-breadcrumb-mini button{background:transparent;border:none;color:#5c7cfa;cursor:pointer;padding:2px 6px;border-radius:4px;font-size:.75rem;transition:all .15s}.treemap-breadcrumb-mini button:hover:not(:disabled){background:#5c7cfa1a}.treemap-breadcrumb-mini button.active{color:#2d3748;font-weight:600;background:#e9ecef;cursor:default}.treemap-svg{display:block;background:#f5f5f5}.treemap-tooltip{background:#fff;border-radius:8px;padding:.75rem 1rem;box-shadow:0 4px 16px #00000026;z-index:1000;pointer-events:none;min-width:140px}.tooltip-token{font-size:.9rem;font-weight:600;color:#2d3748;margin-bottom:4px}.tooltip-stats{font-size:.8rem;color:#718096}.tooltip-category{display:flex;align-items:center;gap:6px;font-size:.8rem;color:#5c7cfa;margin-top:6px;padding-top:6px;border-top:1px solid #f0f0f0}.category-dot{width:8px;height:8px;border-radius:50%}.tooltip-hint{font-size:.7rem;color:#a0aec0;font-style:italic;margin-top:4px}.treemap-empty-state{display:flex;align-items:center;justify-content:center;height:200px;color:#a0aec0;font-size:.9rem}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:4rem 2rem;background:#fff;border-radius:16px;box-shadow:0 2px 12px #00000014}.empty-icon{color:#cbd5e0;margin-bottom:1.5rem}.empty-state h3{margin:0 0 .5rem;color:#4a5568;font-size:1.25rem}.empty-state p{margin:0;color:#a0aec0;font-size:.95rem}.metadata-panel{background:#fff;border-radius:16px;box-shadow:0 2px 12px #00000014;padding:1.25rem 1.5rem;margin-top:1.5rem}.metadata-panel h3{font-size:.9rem;color:#4a5568;margin:0 0 1rem;font-weight:600;text-transform:uppercase;letter-spacing:.5px}.metadata-grid{display:flex;flex-wrap:wrap;gap:1.5rem}.metadata-item{display:flex;flex-direction:column;gap:.25rem}.metadata-item label{font-size:.75rem;color:#a0aec0;text-transform:uppercase;letter-spacing:.5px}.metadata-item span{font-size:.95rem;color:#2d3748;font-weight:500}@media(max-width:900px){.treemaps-grid{grid-template-columns:1fr}.treemap-card{max-width:100%}}.slider-controls{background:linear-gradient(135deg,#f7fafc,#edf2f7);border:1px solid #e2e8f0}.slider-group{background:#fff;border-radius:12px;padding:1rem;box-shadow:0 1px 4px #0000000d}.slider-group h4{font-size:.85rem;color:#4a5568;margin:0 0 .75rem;font-weight:600;border-bottom:1px solid #e2e8f0;padding-bottom:.5rem}.slider-item{display:grid;grid-template-columns:1fr auto;align-items:center;gap:.5rem;margin-bottom:.5rem}.slider-item label{font-size:.8rem;color:#718096;grid-column:1 / -1}.slider-item input[type=range]{width:100%;height:6px;-webkit-appearance:none;appearance:none;background:linear-gradient(to right,#667eea,#764ba2);border-radius:3px;outline:none;cursor:pointer}.slider-item input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:16px;height:16px;border-radius:50%;background:#fff;border:2px solid #667eea;box-shadow:0 2px 4px #00000026;cursor:pointer;transition:transform .1s ease}.slider-item input[type=range]::-webkit-slider-thumb:hover{transform:scale(1.1)}.slider-item input[type=range]::-moz-range-thumb{width:16px;height:16px;border-radius:50%;background:#fff;border:2px solid #667eea;box-shadow:0 2px 4px #00000026;cursor:pointer}.slider-item span{font-size:.75rem;color:#667eea;font-weight:600;min-width:50px;text-align:right;background:#eef2ff;padding:.25rem .5rem;border-radius:4px}.algorithm-select{display:flex;flex-wrap:wrap;gap:.5rem}.algo-btn{padding:.5rem .75rem;border:1px solid #e2e8f0;border-radius:6px;background:#fff;color:#4a5568;font-size:.8rem;cursor:pointer;transition:all .15s ease}.algo-btn:hover{border-color:#667eea;color:#667eea}.algo-btn.active{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border-color:transparent}.config-export{margin-top:1.5rem;padding-top:1rem;border-top:1px solid #e2e8f0}.config-export button{padding:.75rem 1.5rem;background:#4a5568;color:#fff;border:none;border-radius:8px;font-size:.9rem;cursor:pointer;display:inline-flex;align-items:center;gap:.5rem;transition:transform .1s ease,box-shadow .15s ease}.config-export button:hover{transform:translateY(-1px);box-shadow:0 4px 12px #4a556866}.config-preview{margin-top:1rem;background:#1a202c;color:#68d391;padding:1rem;border-radius:8px;font-family:Fira Code,Monaco,monospace;font-size:.75rem;line-height:1.5;overflow-x:auto;max-height:200px;overflow-y:auto}.slider-view{background:#fff;border-radius:16px;box-shadow:0 4px 20px #00000014;padding:1.5rem;overflow-x:auto}.slider-treemap-container{min-width:fit-content}.slider-treemap-container .full-tree-label{text-align:center;color:#4a5568;margin-bottom:1rem}.full-tree-desc{font-size:.8rem;color:#718096;text-align:center;margin:.25rem 0 .75rem;font-family:Fira Code,Monaco,monospace}.partition-intro{color:#718096;font-size:.9rem;margin-bottom:1rem;padding:.75rem 1rem;background:#f0f4f8;border-radius:8px;border-left:3px solid #4a5568}.viz-type-selector{display:flex;gap:.5rem;margin-bottom:1.5rem;flex-wrap:wrap}.viz-type-btn{padding:.75rem 1.5rem;background:#f7fafc;border:2px solid #e2e8f0;border-radius:8px;font-size:.9rem;font-weight:600;color:#4a5568;cursor:pointer;transition:all .2s}.viz-type-btn:hover{border-color:#4a5568;background:#edf2f7}.viz-type-btn.active{background:#4a5568;border-color:#4a5568;color:#fff}.partition-view{background:#fff;border-radius:16px;box-shadow:0 4px 20px #00000014;padding:1.5rem;overflow-x:auto}.partition-container{min-width:fit-content}.partition-container .full-tree-label{text-align:center;color:#4a5568;margin-bottom:.5rem;font-size:1.25rem}.partition-container .full-tree-desc{text-align:center;color:#718096;margin-bottom:1rem;font-family:inherit;font-size:.9rem}.d3-nested-treemap-container{position:relative;width:100%;padding:16px;background:#0f172a;border-radius:12px;box-shadow:0 4px 16px #0006;scrollbar-width:thin;scrollbar-color:#475569 #1e293b}.d3-nested-treemap-container::-webkit-scrollbar{height:8px}.d3-nested-treemap-container::-webkit-scrollbar-track{background:#1e293b;border-radius:4px}.d3-nested-treemap-container::-webkit-scrollbar-thumb{background:#475569;border-radius:4px}.d3-nested-treemap-container::-webkit-scrollbar-thumb:hover{background:#64748b}.d3-nested-treemap-svg{display:block}.treemap-header{text-align:center;margin-bottom:12px;padding-bottom:12px;border-bottom:1px solid rgba(255,255,255,.08)}.header-label{font-size:11px;color:#64748b;text-transform:uppercase;letter-spacing:.8px}.header-phrase{font-size:16px;font-weight:600;color:#e2e8f0;margin-top:4px;font-style:italic}.treemap-stats{display:flex;justify-content:center;gap:20px;margin-bottom:12px;font-size:11px;color:#64748b}.treemap-stats span{background:#ffffff0d;padding:4px 10px;border-radius:4px}.treemap-empty{text-align:center;padding:60px;color:#475569;font-size:14px}.treemap-tooltip{position:absolute;background:#0f172af7;border:1px solid rgba(100,116,139,.25);border-radius:8px;padding:12px 16px;pointer-events:none;z-index:100;box-shadow:0 8px 24px #00000080;max-width:280px;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.tooltip-token{font-size:14px;font-weight:600;color:#f1f5f9;margin-bottom:6px;word-break:break-word}.tooltip-stats{font-size:12px;color:#94a3b8;margin-bottom:4px}.tooltip-meta{font-size:11px;color:#64748b}.tooltip-category{display:flex;align-items:center;gap:8px;font-size:12px;color:#a5b4fc;margin-top:8px;padding-top:8px;border-top:1px solid rgba(255,255,255,.08)}.category-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0}.treemap-legend{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:center;margin-top:16px;padding-top:14px;border-top:1px solid rgba(255,255,255,.08)}.legend-title{font-size:11px;color:#475569;text-transform:uppercase;letter-spacing:.8px;margin-right:6px}.legend-item{display:flex;align-items:center;gap:5px}.legend-color{width:12px;height:12px;border-radius:3px;flex-shrink:0}.legend-label{font-size:11px;color:#94a3b8}.treemap-cell rect{transition:opacity .12s ease,stroke-width .12s ease}.treemap-cell:hover rect{opacity:1!important;stroke-width:2px!important}.clustering-comparison-page{max-width:900px;margin:0 auto;padding:2rem;box-sizing:border-box}.page-header{text-align:center;margin-bottom:2rem}.page-header h2{font-size:2.25rem;color:#2d3748;margin-bottom:.5rem}.subtitle{color:#718096;font-size:1rem}.content-panel{display:flex;flex-direction:column;gap:2rem;max-width:1000px;margin-left:auto;margin-right:auto}.examples-section{margin-bottom:2rem;margin-left:auto;margin-right:auto;max-width:1000px}.examples-section h3{margin:0 0 .5rem;font-size:1.1rem;font-weight:600;color:#2d3748}.section-note{font-size:.82rem;color:#718096;margin-bottom:1rem}.comparison-results{background:#fff;border-radius:12px;box-shadow:0 2px 8px #00000014;padding:1.5rem;width:100%;box-sizing:border-box}.loading-overlay{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:3rem;background:#fffc;border-radius:12px;color:#4a5568}.spinner-icon.large{animation:spin 1s linear infinite;color:#667eea;margin-bottom:1rem}.example-btn{padding:.5rem 1rem;background:#f7fafc;border:2px solid #e2e8f0;border-radius:8px;cursor:pointer;transition:all .2s;font-size:.9rem}.example-strategy{padding:.125rem .5rem;border-radius:4px;font-size:.65rem;font-weight:700;text-transform:uppercase}.example-strategy.beam_search{background:#4a5568;color:#fff}.example-strategy.temperature{background:#ed8936;color:#fff}.no-examples{color:#718096;font-style:italic;font-size:.9rem}.config-panel{background:#fff;border-radius:12px;box-shadow:0 2px 8px #00000014;padding:1.5rem;margin-bottom:2rem;max-width:1000px;margin-left:auto;margin-right:auto}.config-row{display:flex;gap:1.5rem;margin-bottom:1rem}.config-row:last-child{margin-bottom:0}.config-section{flex:1;min-width:0}.config-section h3{font-size:.95rem;color:#2d3748;margin-bottom:.5rem}.select-ontology-btn{width:100%;padding:.6rem .75rem;background:#4a5568;color:#fff;border:none;border-radius:8px;font-size:.85rem;font-weight:600;cursor:pointer;transition:background .2s;text-align:left}.select-ontology-btn:hover{background:#2d3748}.ontology-preview{margin-top:.4rem;padding:.4rem .5rem;background:#f7fafc;border-radius:6px;font-size:.8rem;color:#4a5568;border-left:3px solid #4a5568}.strategy-section{max-width:280px}.strategy-toggle{display:flex;gap:.5rem;margin-bottom:1rem}.strategy-btn{flex:1;padding:.6rem .75rem;background:#e2e8f0;color:#4a5568;border:2px solid transparent;border-radius:8px;font-size:.85rem;font-weight:600;cursor:pointer;transition:all .2s}.strategy-btn:hover{background:#cbd5e0}.strategy-btn.active{background:#4a5568;color:#fff}.strategy-params,.clustering-params,.threshold-params{display:flex;flex-direction:column;gap:.5rem}.param-row{display:flex;align-items:center;gap:.75rem}.param-row label{width:100px;font-size:.8rem;color:#4a5568}.param-row input{flex:1;max-width:80px;padding:.4rem .5rem;border:1px solid #e2e8f0;border-radius:6px;font-size:.85rem}.param-hint{font-size:.7rem;color:#a0aec0}.action-section{display:flex;justify-content:center;padding-top:1rem;border-top:1px solid #e2e8f0;margin-top:1rem}.generate-btn{padding:.85rem 2rem;background:#667eea;color:#fff;border:none;border-radius:10px;font-size:.95rem;font-weight:700;cursor:pointer;transition:background .2s;display:flex;align-items:center;gap:.5rem}.generate-btn:hover:not(:disabled){background:#5a67d8}.generate-btn:disabled{background:#cbd5e0;cursor:not-allowed}.generate-btn .spinner{width:16px;height:16px;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:spin .8s linear infinite}.error-panel{background:#fed7d7;border:1px solid #fc8181;border-radius:8px;padding:1rem;margin-bottom:2rem}.error-panel h3{color:#c53030;margin:0 0 .5rem}.error-panel pre{margin:0;color:#742a2a;white-space:pre-wrap;font-size:.85rem}.comparison-results{margin-top:2rem;background-color:#fff;border-radius:12px;padding:1.5rem;box-shadow:0 10px 25px #0f172a26;border:1px solid #e2e8f0}.results-summary{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem;padding-bottom:1rem;border-bottom:1px solid #e2e8f0}.results-summary h3{margin:0;color:#2d3748}.summary-stats{display:flex;gap:1.5rem}.summary-stats span{font-size:.85rem;color:#718096}.strategy-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;margin-bottom:2rem}.strategy-card{background:#fff;border-radius:8px;padding:.85rem 1rem;border-left:3px solid #4a5568;box-shadow:0 1px 3px #0000000f,0 1px 2px #0000000a}.strategy-card.exact_match{border-left-color:#4a5568}.strategy-card.levenshtein_skeleton{border-left-color:#667eea}.strategy-card.tree_edit_distance{border-left-color:#48bb78}.strategy-card.ngram_jaccard{border-left-color:#ed8936}.strategy-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.45rem;gap:.5rem}.strategy-header h4{margin:0;font-size:.875rem;font-weight:600;color:#2d3748;text-transform:capitalize;flex-shrink:1;min-width:0}.strategy-stats{display:flex;flex-direction:column;align-items:flex-end;gap:.25rem;flex-shrink:0}.stat-clusters,.stat-selected{font-size:.7rem;font-weight:500;padding:.2rem .5rem;border-radius:3px;line-height:1;display:inline-flex;align-items:center;white-space:nowrap}.stat-clusters{background:#edf2f7;color:#4a5568}.stat-selected{background:#48bb78;color:#fff}.strategy-description{margin:0;font-size:.8rem;color:#718096;line-height:1.4}.strategy-details{display:flex;flex-direction:column;gap:1rem}.strategy-panel{border:1px solid #e2e8f0;border-radius:8px;overflow:hidden}.strategy-panel.exact_match{border-left:4px solid #4a5568}.strategy-panel.levenshtein_skeleton{border-left:4px solid #667eea}.strategy-panel.tree_edit_distance{border-left:4px solid #48bb78}.strategy-panel.ngram_jaccard{border-left:4px solid #ed8936}.panel-header{display:flex;justify-content:space-between;align-items:center;padding:.75rem 1rem;background:#f7fafc;cursor:pointer;-webkit-user-select:none;user-select:none}.panel-header:hover{background:#edf2f7}.panel-header h4{margin:0;font-size:1rem;color:#2d3748;text-transform:capitalize}.expand-icon{display:inline-block;width:20px;font-weight:700;color:#718096}.panel-stats{display:flex;gap:1rem}.panel-stats span{font-size:.85rem;color:#718096}.panel-content{padding:1rem;display:flex;flex-direction:column;gap:1.5rem}.cluster-distribution h5,.selected-sentences h5,.all-sentences h5,.skeleton-samples h5{margin:0 0 .75rem;font-size:.9rem;color:#4a5568}.cluster-bars{display:flex;flex-wrap:wrap;gap:.5rem}.cluster-bar{display:flex;align-items:center;justify-content:center;min-width:30px;height:28px;border-radius:4px;transition:transform .2s}.cluster-bar:hover{transform:scale(1.05)}.cluster-bar.included{box-shadow:0 2px 4px #00000026}.cluster-count{font-size:.8rem;font-weight:600;color:#fff}.cluster-bar:not(.included) .cluster-count{color:#718096}.more-clusters{font-size:.75rem;color:#a0aec0;margin-left:.5rem}.sentence-list{display:flex;flex-direction:column;gap:.5rem;max-height:300px;overflow-y:auto}.sentence-list.compact{max-height:200px}.sentence-item{display:flex;align-items:center;gap:.75rem;padding:.5rem .75rem;background:#f7fafc;border-radius:6px;font-size:.85rem}.sentence-item.selected{background:#e6fffa;border:1px solid #81e6d9}.sentence-item.not-selected{background:#f7fafc;opacity:.6}.sentence-index{font-weight:600;color:#718096;min-width:30px}.sentence-text{flex:1;color:#2d3748;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sentence-substitute{font-size:.75rem;padding:.15rem .4rem;background:#e2e8f0;border-radius:4px;color:#4a5568}.sentence-cluster{font-size:.7rem;padding:.15rem .4rem;border-radius:4px;color:#fff;font-weight:600}.selected-badge{font-size:.7rem;padding:.15rem .5rem;background:#48bb78;color:#fff;border-radius:4px;font-weight:600}.skeleton-list{display:flex;flex-direction:column;gap:.5rem}.skeleton-item{display:flex;align-items:flex-start;gap:.75rem;padding:.5rem;background:#2d3748;border-radius:6px}.skeleton-index{font-size:.75rem;color:#a0aec0;min-width:25px}.skeleton-text{font-size:.75rem;color:#e2e8f0;word-break:break-all;line-height:1.4}.modal-overlay{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000}.modal-content{background:#fff;border-radius:12px;padding:1.5rem;max-width:600px;max-height:80vh;overflow-y:auto}.modal-close-btn{width:100%;margin-top:1rem;padding:.75rem;background:#e2e8f0;color:#4a5568;border:none;border-radius:8px;font-weight:600;cursor:pointer}.modal-close-btn:hover{background:#cbd5e0}.pipeline-step{background:#fff;border-radius:12px;box-shadow:0 2px 8px #00000014;overflow:hidden;margin-bottom:1rem}.step-header{display:flex;align-items:center;gap:1rem;padding:1rem 1.5rem;background:#f7fafc;cursor:pointer;-webkit-user-select:none;user-select:none;border-bottom:1px solid #e2e8f0}.step-header:hover{background:#edf2f7}.step-number{width:28px;height:28px;background:#667eea;color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.85rem}.step-header h3{flex:1;margin:0;font-size:1.1rem;color:#2d3748;text-transform:capitalize}.step-badge{background:#e2e8f0;color:#4a5568;padding:.25rem .75rem;border-radius:20px;font-size:.8rem;font-weight:600}.toggle-icon{font-size:1.2rem;color:#718096;width:24px;text-align:center}.step-content{padding:1.5rem}.clustering-summary{display:flex;gap:2rem;margin-bottom:1.5rem}.cluster-stat{background:#f7fafc;padding:1rem 1.5rem;border-radius:8px;text-align:center;border:1px solid #e2e8f0}.cluster-stat.highlight{background:#ebf4ff;border-color:#667eea}.stat-value{display:block;font-size:2rem;font-weight:700;color:#2d3748}.stat-label{font-size:.8rem;color:#718096}.strategy-description-inline{margin:0 0 1.5rem;padding:.75rem 1rem;background:#f7fafc;border-left:3px solid #667eea;border-radius:0 6px 6px 0;font-size:.85rem;color:#4a5568}.structure-distribution{margin-bottom:1.5rem}.structure-distribution h4{margin-bottom:1rem;color:#4a5568}.structure-item{margin-bottom:.75rem;padding:.75rem;background:#f7fafc;border-radius:8px}.structure-item.most-common{background:#ebf4ff;border:1px solid #667eea}.structure-item.included{background:#f0fff4;border:2px solid #48bb78}.structure-bar{height:28px;background:#e2e8f0;border-radius:4px;margin-bottom:.5rem;position:relative;overflow:hidden}.structure-bar .bar-fill{height:100%;border-radius:4px;transition:width .3s ease}.structure-bar .bar-label{position:absolute;right:8px;top:50%;transform:translateY(-50%);font-size:.75rem;font-weight:600;color:#4a5568}.included-badge{display:inline-block;margin-left:.5rem;padding:.125rem .5rem;background:#38a169;color:#fff;font-size:.6rem;font-weight:700;border-radius:4px;text-transform:uppercase}.structure-signature{display:block;margin-top:.5rem;font-size:.7rem;color:#718096;word-break:break-all}.more-structures{text-align:center;padding:.5rem;color:#718096;font-size:.8rem}.selected-sentences-section{margin-bottom:1.5rem}.selected-sentences-section h4{margin-bottom:1rem;color:#4a5568}.parsing-grid{display:flex;flex-direction:column;gap:1rem}.cluster-group{border:1px solid #e2e8f0;border-radius:8px;overflow:hidden}.cluster-group-header{display:flex;align-items:center;gap:.75rem;padding:.75rem 1rem;background:#f7fafc;border-left:4px solid}.cluster-badge{padding:.25rem .6rem;border-radius:4px;color:#fff;font-size:.75rem;font-weight:700}.cluster-group .cluster-count{font-size:.8rem;color:#718096}.parsing-card{padding:.75rem 1rem;border-bottom:1px solid #e2e8f0}.parsing-card:last-child{border-bottom:none}.parsing-card.success{background:#fff}.parsing-card .card-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.25rem}.parse-index{font-weight:600;color:#4a5568;font-size:.8rem}.substitute-tag{background:#667eea;color:#fff;padding:.125rem .5rem;border-radius:4px;font-size:.7rem;font-weight:600}.parse-text{font-size:.85rem;color:#2d3748}.cluster-group .parse-text{margin-bottom:.5rem;padding-bottom:0;border-bottom:none}.skeleton-section{margin-top:1.5rem}.skeleton-section h4{margin-bottom:1rem;color:#4a5568}.skeleton-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(350px,1fr));gap:1rem}.skeleton-grid .parsing-card{background:#f7fafc;border:1px solid #e2e8f0;border-radius:8px}.parse-tree{background:#1a202c;border-radius:6px;padding:.75rem;overflow-x:auto}.parse-tree pre{margin:0;font-size:.7rem;color:#a0aec0;white-space:pre-wrap;word-break:break-all}@media(max-width:1000px){.strategy-cards{grid-template-columns:repeat(2,1fr)}.config-row{flex-direction:column}.strategy-section{max-width:none}.clustering-summary{flex-wrap:wrap;gap:1rem}}@media(max-width:600px){.strategy-cards{grid-template-columns:1fr}.clustering-comparison-page{padding:1rem}.skeleton-grid{grid-template-columns:1fr}}.merged-tree-graph-container{background:#fff;border-radius:8px;padding:16px;border:1px solid #e2e8f0}.merged-tree-empty{color:#64748b;text-align:center;padding:60px 20px;font-size:14px}.merged-tree-stats{display:flex;gap:24px;margin-bottom:12px;padding-bottom:12px;border-bottom:1px solid #e2e8f0}.merged-tree-stats .stat-item{display:flex;flex-direction:column;align-items:center}.merged-tree-stats .stat-value{font-size:20px;font-weight:600;color:#0f172a}.merged-tree-stats .stat-label{font-size:11px;color:#64748b;text-transform:uppercase;letter-spacing:.5px}.merged-tree-stats .stat-item.reduction .stat-value{color:#15803d}.merged-tree-legend{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-bottom:12px;padding:8px 12px;background:#f8fafc;border-radius:6px;border:1px solid #e2e8f0}.merged-tree-legend .legend-title{font-size:11px;color:#475569;font-weight:500;text-transform:uppercase;letter-spacing:.5px}.merged-tree-legend .legend-item{display:flex;align-items:center;gap:6px}.merged-tree-legend .legend-color{width:12px;height:12px;border-radius:3px}.merged-tree-legend .legend-label{font-size:12px;color:#1e293b}.merged-tree-svg-container{background:#fff;border-radius:6px;overflow:auto;max-height:700px;border:1px solid #e2e8f0}.merged-tree-svg{display:block;min-width:100%}.merged-tree-debug-panel{margin-top:16px;border-top:1px solid #e2e8f0;padding-top:12px}.merged-tree-debug-panel details{margin-bottom:8px}.merged-tree-debug-panel summary{cursor:pointer;color:#475569;font-size:12px;padding:6px 0}.merged-tree-debug-panel summary:hover{color:#0f172a}.merged-tree-debug-panel .debug-json-container{position:relative;margin-top:8px}.merged-tree-debug-panel .copy-btn{position:absolute;top:8px;right:8px;padding:4px 12px;background:#3b82f6;color:#fff;border:none;border-radius:4px;font-size:11px;cursor:pointer;z-index:10}.merged-tree-debug-panel .copy-btn:hover{background:#2563eb}.merged-tree-debug-panel pre{background:#f8fafc;padding:36px 12px 12px;border-radius:6px;overflow-x:auto;max-height:300px;font-size:10px;color:#334155;margin:0;border:1px solid #e2e8f0}.visualization-lab-page{width:100%;margin:0;padding:2rem}.visualization-lab-page .centered-content{max-width:900px;margin:0 auto;width:100%;padding:2rem}.visualization-lab-page .page-header{text-align:center;margin-bottom:2rem}.visualization-lab-page .page-header h2{font-size:2.25rem;color:#2d3748;margin-bottom:.5rem}.visualization-lab-page .subtitle{color:#718096;font-size:1rem}.control-panel{background:#fff;border-radius:16px;box-shadow:0 2px 12px #00000014;padding:1.5rem;margin-bottom:1.5rem;display:grid;gap:1.5rem;max-width:1000px;margin-left:auto;margin-right:auto}.control-section h3{font-size:.9rem;color:#4a5568;margin-bottom:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.5px}.examples-grid{display:flex;flex-wrap:wrap;gap:.5rem}.example-btn{display:flex;align-items:center;gap:.5rem;padding:.5rem 1rem;background:#f7fafc;border:2px solid #e2e8f0;border-radius:8px;cursor:pointer;transition:all .2s;font-size:.9rem}.example-btn:hover:not(:disabled){border-color:#4a5568;background:#edf2f7}.example-btn.active{border-color:#4a5568;background:#4a5568;color:#fff}.example-btn.active .example-name{color:#fff}.example-btn:disabled{opacity:.6;cursor:not-allowed}.example-name{font-weight:600;color:#2d3748}.empty-hint{color:#a0aec0;font-size:.9rem;font-style:italic;margin:0}.mode-groups{display:flex;flex-direction:column;gap:.75rem}.mode-group{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}.group-label{font-size:.8rem;color:#718096;font-weight:500;min-width:80px}.mode-buttons{display:flex;gap:.5rem;flex-wrap:wrap}.mode-btn{padding:.5rem 1rem;background:#f7fafc;border:2px solid #e2e8f0;border-radius:8px;cursor:pointer;transition:all .2s;font-size:.85rem;font-weight:500;color:#4a5568}.mode-btn:hover:not(.active){background:#edf2f7;border-color:#cbd5e0}.mode-btn.active{border-color:#3182ce;background:#3182ce;color:#fff}.mode-description{margin-top:.75rem;padding:.75rem 1rem;background:#f0f4f8;border-radius:8px;font-size:.85rem;color:#4a5568;border-left:3px solid #3182ce}.view-toggle{margin-top:.75rem}.view-toggle label{display:flex;align-items:center;gap:.5rem;font-size:.9rem;color:#4a5568;cursor:pointer}.view-toggle input[type=checkbox]{width:18px;height:18px;cursor:pointer}.merge-toggle{margin-top:.75rem;display:flex;align-items:center;gap:.75rem}.merge-toggle .toggle-label{font-size:.9rem;color:#4a5568}.merge-toggle .merge-buttons{display:flex;gap:.25rem}.merge-toggle .merge-btn{padding:.4rem .75rem;background:#f7fafc;border:1px solid #e2e8f0;border-radius:6px;cursor:pointer;transition:all .2s;font-size:.8rem;color:#4a5568}.merge-toggle .merge-btn:hover{border-color:#38a169}.merge-toggle .merge-btn.active{border-color:#38a169;background:#38a169;color:#fff}.slider-controls{border-top:1px solid #e2e8f0;padding-top:1.5rem}.slider-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.5rem}.slider-group{background:#f7fafc;border-radius:8px;padding:1rem}.slider-group h4{font-size:.8rem;color:#4a5568;margin-bottom:.75rem;font-weight:600}.slider-item{display:flex;align-items:center;gap:.5rem;margin-bottom:.5rem}.slider-item:last-child{margin-bottom:0}.slider-item label{font-size:.8rem;color:#718096;min-width:140px}.slider-item input[type=range]{flex:1;height:4px;cursor:pointer}.slider-item span{font-size:.75rem;color:#4a5568;font-weight:600;min-width:50px;text-align:right}.config-export{margin-top:1rem;display:flex;gap:.75rem;align-items:center}.config-export button{padding:.5rem 1rem;background:#4a5568;color:#fff;border:none;border-radius:6px;cursor:pointer;font-size:.85rem;transition:background .2s}.config-export button:hover{background:#2d3748}.config-export button:last-of-type{background:#718096}.config-export button:last-of-type:hover{background:#4a5568}.category-legend{background:#fff;border-radius:12px;box-shadow:0 2px 8px #0000000f;padding:1rem 1.5rem;margin-bottom:1.5rem}.category-legend h4{font-size:.8rem;color:#718096;margin-bottom:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.5px}.legend-items{display:flex;flex-wrap:wrap;flex-direction:row;gap:1rem}.legend-item{display:flex;align-items:center;gap:.5rem}.legend-dot{width:12px;height:12px;border-radius:50%;flex-shrink:0}.legend-label{font-size:.85rem;color:#4a5568}.loading-indicator{text-align:center;padding:1rem;background:#edf2f7;border-radius:8px;margin-bottom:1.5rem;color:#4a5568;font-size:.9rem}.visualization-area{background:#fff;border-radius:16px;box-shadow:0 2px 12px #00000014;padding:1.5rem;min-height:400px}.empty-state{display:flex;align-items:center;justify-content:center;min-height:300px;color:#a0aec0;font-size:1rem}.single-mode-view{display:flex;flex-direction:column;gap:1rem;flex:1;min-height:600px}.mode-header{display:flex;align-items:center;gap:1rem}.mode-header h3{font-size:1.25rem;color:#2d3748;margin:0}.mode-badge{padding:.25rem .75rem;background:#e2e8f0;border-radius:4px;font-size:.7rem;font-weight:600;text-transform:uppercase;color:#4a5568}.modes-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(600px,1fr));gap:1.5rem}.mode-card{border:1px solid #e2e8f0;border-radius:12px;overflow:hidden}.mode-card-header{background:#f7fafc;padding:1rem;border-bottom:1px solid #e2e8f0}.mode-card-header h4{font-size:1rem;color:#2d3748;margin:0 0 .25rem}.mode-card-header p{font-size:.8rem;color:#718096;margin:0}.mode-card-viz{padding:1rem;overflow-x:auto}.mode-header{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}.debug-toggle{display:flex;align-items:center;gap:.5rem;font-size:.85rem;color:#4a5568;cursor:pointer;padding:.5rem 1rem;background:#f7fafc;border-radius:6px;border:1px solid #e2e8f0;margin-left:auto}.debug-toggle:hover{background:#edf2f7}.debug-toggle input[type=checkbox]{accent-color:#3b82f6;width:16px;height:16px}@media(max-width:768px){.visualization-lab-page{padding:1rem}.page-header h2{font-size:1.75rem}.slider-grid{grid-template-columns:1fr}.mode-group{flex-direction:column;align-items:flex-start}.group-label{min-width:auto}.modes-grid{grid-template-columns:1fr}}.prob-mode-buttons{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:.75rem}.prob-mode-btn{padding:.5rem 1rem;background:#f7fafc;border:2px solid #e2e8f0;border-radius:8px;cursor:pointer;transition:all .2s;font-size:.85rem;font-weight:500;color:#4a5568}.prob-mode-btn:hover{border-color:#4a5568;background:#edf2f7}.prob-mode-btn.active{border-color:#3182ce;background:#3182ce;color:#fff}.power-exponent-control{display:flex;align-items:center;gap:1rem;padding:.75rem;background:#f7fafc;border-radius:8px;margin-bottom:.75rem}.power-exponent-control label{font-size:.85rem;font-weight:500;color:#4a5568;min-width:140px}.power-exponent-control input[type=range]{flex:1;max-width:200px}.power-exponent-control .hint{font-size:.75rem;color:#718096}.prob-mode-badge{padding:.25rem .5rem;background:#3182ce;color:#fff;border-radius:4px;font-size:.7rem;font-weight:600;text-transform:uppercase}.stats-section{background:#f7fafc;border-radius:8px;padding:1rem}.stats-grid{display:flex;gap:2rem;margin-bottom:1rem}.stat-item{display:flex;flex-direction:column;align-items:center}.stat-value{font-size:1.5rem;font-weight:700;color:#2d3748}.stat-label{font-size:.75rem;color:#718096;text-transform:uppercase}.substitute-breakdown h4{font-size:.8rem;color:#4a5568;margin-bottom:.5rem}.substitute-list{display:flex;flex-wrap:wrap;gap:.5rem}.substitute-item{display:flex;align-items:center;gap:.5rem;padding:.25rem .75rem;background:#fff;border:1px solid #e2e8f0;border-radius:6px;font-size:.8rem}.substitute-word{font-weight:600;color:#2d3748}.substitute-count{color:#718096;font-size:.75rem}.prob-modes-grid{background:#fff;border-radius:16px;box-shadow:0 2px 12px #00000014;padding:1.5rem}.prob-modes-grid .grid-title{font-size:1.25rem;color:#2d3748;margin-bottom:1rem;text-align:center}.prob-modes-row{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem}.prob-mode-card{background:#f7fafc;border-radius:12px;overflow:hidden;border:1px solid #e2e8f0}.prob-mode-card-header{background:#edf2f7;padding:.75rem 1rem;border-bottom:1px solid #e2e8f0}.prob-mode-card-header h4{font-size:1rem;color:#2d3748;margin:0}.prob-mode-card-viz{padding:.5rem;overflow:auto;min-height:300px}.non-sankey-note{display:flex;align-items:center;justify-content:center;height:200px;color:#718096;font-size:.9rem;text-align:center;padding:2rem}.contrastive-loading,.contrastive-error,.contrastive-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;height:400px;gap:1rem;background:#312e81;border-radius:12px;padding:2rem}.contrastive-loading p,.contrastive-empty p{color:#c7d2fe;font-size:1rem;margin:0}.contrastive-loading .hint{color:#818cf8;font-size:.85rem}.contrastive-error p{color:#fca5a5;font-size:1rem;margin:0}.contrastive-error button,.contrastive-empty button{padding:.75rem 1.5rem;background:#6366f1;color:#fff;border:none;border-radius:8px;cursor:pointer;font-weight:600;transition:background .2s}.contrastive-error button:hover,.contrastive-empty button:hover{background:#4f46e5}.loading-spinner{width:48px;height:48px;border:4px solid rgba(99,102,241,.3);border-top:4px solid #6366f1;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.substitute-trees-page{max-width:1600px;margin:0 auto;padding:2rem}.substitute-trees-page .page-header{text-align:center;margin-bottom:2rem}.substitute-trees-page .page-header h2{font-size:2.25rem;color:#2d3748;margin-bottom:.5rem}.substitute-trees-page .subtitle{color:#718096;font-size:1rem}.substitute-trees-page .control-panel{background:#fff;border-radius:16px;box-shadow:0 2px 12px #00000014;padding:1.5rem;margin-bottom:1.5rem;display:grid;gap:1.5rem}.substitute-trees-page .control-section h3{font-size:.9rem;color:#4a5568;margin-bottom:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.5px}.substitute-trees-page .examples-grid{display:flex;flex-wrap:wrap;gap:.5rem}.substitute-trees-page .example-btn{display:flex;align-items:center;gap:.5rem;padding:.5rem 1rem;background:#f7fafc;border:2px solid #e2e8f0;border-radius:8px;cursor:pointer;transition:all .2s;font-size:.9rem}.substitute-trees-page .example-btn:hover:not(:disabled){border-color:#4a5568;background:#edf2f7}.substitute-trees-page .example-btn.active{border-color:#4a5568;background:#4a5568;color:#fff}.substitute-trees-page .example-btn:disabled{opacity:.6;cursor:not-allowed}.substitute-trees-page .example-name{font-weight:600}.settings-row{display:flex;flex-wrap:wrap;gap:2rem;margin-bottom:1rem}.setting-group{display:flex;flex-direction:column;gap:.5rem}.setting-group>label{font-size:.8rem;font-weight:500;color:#4a5568}.substitute-trees-page .prob-mode-buttons{display:flex;gap:.25rem}.substitute-trees-page .prob-mode-btn{padding:.4rem .75rem;background:#f7fafc;border:1px solid #e2e8f0;border-radius:6px;cursor:pointer;transition:all .2s;font-size:.8rem;color:#4a5568}.substitute-trees-page .prob-mode-btn:hover{border-color:#4a5568}.substitute-trees-page .prob-mode-btn.active{border-color:#3182ce;background:#3182ce;color:#fff}.orientation-buttons{display:flex;gap:.25rem}.orient-btn{padding:.4rem .75rem;background:#f7fafc;border:1px solid #e2e8f0;border-radius:6px;cursor:pointer;transition:all .2s;font-size:.8rem;color:#4a5568}.orient-btn:hover{border-color:#4a5568}.orient-btn.active{border-color:#4a5568;background:#4a5568;color:#fff}.merge-buttons{display:flex;gap:.25rem}.merge-btn{padding:.4rem .75rem;background:#f7fafc;border:1px solid #e2e8f0;border-radius:6px;cursor:pointer;transition:all .2s;font-size:.8rem;color:#4a5568}.merge-btn:hover{border-color:#38a169}.merge-btn.active{border-color:#38a169;background:#38a169;color:#fff}.size-controls{display:flex;gap:2rem}.size-control{display:flex;align-items:center;gap:.75rem}.size-control label{font-size:.8rem;color:#4a5568;min-width:100px}.size-control input[type=range]{width:150px}.error-message{background:#fed7d7;color:#c53030;padding:.75rem 1rem;border-radius:8px;margin-bottom:1rem;font-size:.9rem}.substitute-trees-page .loading-indicator{text-align:center;padding:2rem;color:#718096;font-size:1rem}.substitute-trees-page .category-legend{background:#fff;border-radius:12px;box-shadow:0 2px 8px #0000000f;padding:1rem;margin-bottom:1.5rem}.substitute-trees-page .category-legend h4{font-size:.8rem;color:#4a5568;margin-bottom:.5rem;font-weight:600}.substitute-trees-page .legend-items{display:flex;flex-wrap:wrap;gap:.75rem}.substitute-trees-page .legend-item{display:flex;align-items:center;gap:.4rem;font-size:.8rem;color:#2d3748}.substitute-trees-page .legend-dot{width:12px;height:12px;border-radius:3px}.trees-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(500px,1fr));gap:1.5rem}.substitute-tree-card{background:#fff;border-radius:16px;box-shadow:0 2px 12px #00000014;overflow:hidden}.tree-card-header{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.25rem;background:#f7fafc;border-bottom:1px solid #e2e8f0}.substitute-word{font-size:1.25rem;font-weight:700;color:#2d3748;margin:0}.tree-stats{display:flex;gap:1rem}.tree-stats .stat{font-size:.75rem;color:#718096;padding:.25rem .5rem;background:#edf2f7;border-radius:4px}.tree-card-viz{padding:1rem;overflow:auto}.substitute-trees-page .empty-state{grid-column:1 / -1;text-align:center;padding:3rem;color:#718096}.substitute-trees-page .empty-hint{color:#718096;font-size:.9rem;margin-top:.5rem}@media(max-width:768px){.substitute-trees-page{padding:1rem}.trees-grid{grid-template-columns:1fr}.settings-row,.size-controls{flex-direction:column;gap:1rem}}.debug-apertus-page{min-height:100vh;padding:2rem;background-color:#0f172a;color:#e2e8f0}.debug-apertus-page .page-container{max-width:1400px;margin:0 auto}.debug-apertus-page .page-header{text-align:center;margin-bottom:2rem}.debug-apertus-page .page-header h1{font-size:2.5rem;font-weight:700;color:#f1f5f9;margin:0 0 .5rem}.debug-apertus-page .subtitle{font-size:1.1rem;color:#94a3b8;margin:0}.debug-apertus-page .status-bar{display:flex;align-items:center;justify-content:center;gap:1.5rem;padding:1rem 1.5rem;background-color:#1e293b;border:1px solid #334155;border-radius:12px;margin-bottom:1.5rem}.debug-apertus-page .status-indicator{display:flex;align-items:center;gap:.75rem;font-size:.95rem}.debug-apertus-page .status-dot{width:12px;height:12px;border-radius:50%}.debug-apertus-page .status-dot.available{background-color:#22c55e;box-shadow:0 0 8px #22c55e}.debug-apertus-page .status-dot.unavailable{background-color:#ef4444;box-shadow:0 0 8px #ef4444}.debug-apertus-page .refresh-btn{padding:.5rem 1rem;background-color:#334155;border:1px solid #475569;border-radius:6px;color:#e2e8f0;cursor:pointer;font-size:.85rem;transition:all .2s}.debug-apertus-page .refresh-btn:hover{background-color:#475569}.debug-apertus-page .refresh-btn:disabled{opacity:.5;cursor:not-allowed}.debug-apertus-page .config-panel{background-color:#1e293b;border:1px solid #334155;border-radius:12px;padding:1.5rem;margin-bottom:1.5rem}.debug-apertus-page .config-section{margin-bottom:1rem}.debug-apertus-page .config-section label{display:block;font-size:.9rem;font-weight:500;color:#94a3b8;margin-bottom:.5rem}.debug-apertus-page .config-row{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem;margin-top:1rem}.debug-apertus-page .prompt-input-group{display:flex;gap:.5rem}.debug-apertus-page .prompt-input{flex:1;padding:.75rem 1rem;background-color:#0f172a;border:1px solid #334155;border-radius:8px;color:#f1f5f9;font-size:1rem}.debug-apertus-page .prompt-input:focus{outline:none;border-color:#3b82f6}.debug-apertus-page .preset-select,.debug-apertus-page .ontology-select{padding:.5rem 1rem;background-color:#0f172a;border:1px solid #334155;border-radius:8px;color:#e2e8f0;font-size:.9rem;cursor:pointer}.debug-apertus-page .substitutes-preview{font-size:.8rem;color:#64748b;margin-top:.5rem}.debug-apertus-page input[type=range]{width:100%;height:6px;background-color:#334155;border-radius:3px;-webkit-appearance:none;appearance:none;cursor:pointer}.debug-apertus-page input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:16px;height:16px;background-color:#3b82f6;border-radius:50%;cursor:pointer}.debug-apertus-page .action-row{display:flex;align-items:center;gap:1.5rem;margin-top:1.5rem;padding-top:1rem;border-top:1px solid #334155}.debug-apertus-page .run-btn{padding:.75rem 2rem;background-color:#3b82f6;border:none;border-radius:8px;color:#fff;font-size:1rem;font-weight:600;cursor:pointer;display:flex;align-items:center;gap:.5rem;transition:all .2s}.debug-apertus-page .run-btn:hover:not(:disabled){background-color:#2563eb}.debug-apertus-page .run-btn:disabled{background-color:#475569;cursor:not-allowed}.debug-apertus-page .spinner{width:16px;height:16px;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.debug-apertus-page .checkbox-label{display:flex;align-items:center;gap:.5rem;font-size:.9rem;color:#94a3b8;cursor:pointer}.debug-apertus-page .checkbox-label input{width:16px;height:16px;cursor:pointer}.debug-apertus-page .error-panel{background-color:#450a0a;border:1px solid #dc2626;border-radius:8px;padding:1rem 1.5rem;margin-bottom:1.5rem}.debug-apertus-page .error-panel h3{color:#fca5a5;margin:0 0 .5rem}.debug-apertus-page .error-panel pre{color:#fecaca;font-size:.85rem;white-space:pre-wrap;margin:0}.debug-apertus-page .results-section{background-color:#1e293b;border:1px solid #334155;border-radius:12px;padding:1.5rem}.debug-apertus-page .aggregate-stats{margin-bottom:2rem}.debug-apertus-page .aggregate-stats h2{font-size:1.3rem;font-weight:600;color:#f1f5f9;margin:0 0 1rem}.debug-apertus-page .stats-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:1rem;margin-bottom:1.5rem}.debug-apertus-page .stat-card{background-color:#0f172a;border:1px solid #334155;border-radius:8px;padding:1rem;text-align:center}.debug-apertus-page .stat-card.warning{border-color:#f59e0b}.debug-apertus-page .stat-card.error{border-color:#ef4444}.debug-apertus-page .stat-value{font-size:1.75rem;font-weight:700;color:#f1f5f9}.debug-apertus-page .stat-card.warning .stat-value{color:#fbbf24}.debug-apertus-page .stat-card.error .stat-value{color:#f87171}.debug-apertus-page .stat-label{font-size:.8rem;color:#64748b;margin-top:.25rem}.debug-apertus-page .histogram-container{background-color:#0f172a;border:1px solid #334155;border-radius:8px;padding:1rem}.debug-apertus-page .histogram-title{font-size:.9rem;font-weight:500;color:#94a3b8;margin-bottom:.75rem}.debug-apertus-page .histogram-bars{display:flex;align-items:flex-end;height:120px;gap:4px}.debug-apertus-page .histogram-bar-wrapper{flex:1;display:flex;flex-direction:column;align-items:center;height:100%}.debug-apertus-page .histogram-bar{width:100%;min-height:2px;border-radius:2px 2px 0 0;transition:height .3s ease}.debug-apertus-page .histogram-label{font-size:.65rem;color:#64748b;margin-top:4px}.debug-apertus-page .histogram-stats{display:flex;justify-content:space-around;margin-top:.75rem;padding-top:.75rem;border-top:1px solid #334155;font-size:.8rem;color:#94a3b8}.debug-apertus-page .samples-section{margin-top:2rem}.debug-apertus-page .samples-section h2{font-size:1.3rem;font-weight:600;color:#f1f5f9;margin:0 0 1rem}.debug-apertus-page .samples-list{display:flex;flex-direction:column;gap:.75rem}.debug-apertus-page .sample-card{background-color:#0f172a;border:1px solid #334155;border-radius:8px;overflow:hidden}.debug-apertus-page .sample-card.has-zeros{border-left:3px solid #f59e0b}.debug-apertus-page .sample-card.has-mismatch{border-left:3px solid #ef4444}.debug-apertus-page .sample-header{display:flex;align-items:center;gap:1rem;padding:.75rem 1rem;cursor:pointer;transition:background-color .2s}.debug-apertus-page .sample-header:hover{background-color:#1e293b}.debug-apertus-page .sample-meta{display:flex;align-items:center;gap:.5rem;flex-shrink:0}.debug-apertus-page .sample-index{font-size:.8rem;color:#64748b;font-weight:500}.debug-apertus-page .sample-substitute{font-size:.85rem;color:#3b82f6;font-weight:600;padding:.2rem .5rem;background-color:#3b82f626;border-radius:4px}.debug-apertus-page .warning-badge,.debug-apertus-page .error-badge{font-size:.7rem;padding:.15rem .4rem;border-radius:4px;font-weight:500}.debug-apertus-page .warning-badge{background-color:#f59e0b33;color:#fbbf24}.debug-apertus-page .error-badge{background-color:#ef444433;color:#f87171}.debug-apertus-page .sample-text-preview{flex:1;font-size:.9rem;color:#cbd5e1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.debug-apertus-page .expand-btn{padding:.4rem .75rem;background-color:#334155;border:none;border-radius:4px;color:#94a3b8;font-size:.8rem;cursor:pointer;transition:all .2s}.debug-apertus-page .expand-btn:hover{background-color:#475569;color:#e2e8f0}.debug-apertus-page .sample-details{padding:1rem;border-top:1px solid #334155;background-color:#0c1222}.debug-apertus-page .sample-full-text{font-size:.9rem;color:#e2e8f0;margin-bottom:1rem;padding:.75rem;background-color:#1e293b;border-radius:6px}.debug-apertus-page .alignment-info{display:flex;gap:1.5rem;margin-bottom:1rem;font-size:.85rem}.debug-apertus-page .alignment-info span{color:#94a3b8}.debug-apertus-page .alignment-info .ok{color:#22c55e}.debug-apertus-page .alignment-info .error{color:#ef4444;font-weight:600}.debug-apertus-page .token-probabilities{display:flex;flex-direction:column;gap:4px;margin-bottom:1rem}.debug-apertus-page .token-prob-item{display:grid;grid-template-columns:30px 100px 1fr 70px;align-items:center;gap:.75rem;padding:.4rem .5rem;background-color:#1e293b;border-radius:4px}.debug-apertus-page .token-index{font-size:.75rem;color:#475569;text-align:center}.debug-apertus-page .token-text{font-family:JetBrains Mono,Fira Code,monospace;font-size:.85rem;color:#e2e8f0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.debug-apertus-page .token-bar-container{height:16px;background-color:#0f172a;border-radius:3px;overflow:hidden}.debug-apertus-page .token-bar{height:100%;border-radius:3px;transition:width .3s ease}.debug-apertus-page .token-percentage{font-size:.8rem;font-weight:600;text-align:right;font-family:JetBrains Mono,monospace}.debug-apertus-page .raw-logprobs{margin-top:1rem;padding:1rem;background-color:#0f172a;border:1px solid #334155;border-radius:6px}.debug-apertus-page .raw-logprobs strong{color:#94a3b8;font-size:.85rem}.debug-apertus-page .raw-logprobs pre{margin:.5rem 0 0;font-size:.75rem;color:#64748b;overflow-x:auto}.debug-apertus-page .raw-response-section{margin-top:2rem;padding-top:1.5rem;border-top:1px solid #334155}.debug-apertus-page .toggle-raw-btn{padding:.5rem 1rem;background-color:#334155;border:1px solid #475569;border-radius:6px;color:#94a3b8;font-size:.85rem;cursor:pointer;transition:all .2s}.debug-apertus-page .toggle-raw-btn:hover{background-color:#475569;color:#e2e8f0}.debug-apertus-page .raw-response{margin-top:1rem;padding:1rem;background-color:#0f172a;border:1px solid #334155;border-radius:6px;font-size:.75rem;color:#64748b;overflow-x:auto;max-height:400px}.debug-apertus-page .empty-state{text-align:center;padding:4rem 2rem;background-color:#1e293b;border:1px dashed #334155;border-radius:12px}.debug-apertus-page .empty-icon{font-size:4rem;margin-bottom:1rem}.debug-apertus-page .empty-state h3{font-size:1.5rem;color:#f1f5f9;margin:0 0 .5rem}.debug-apertus-page .empty-state p{color:#94a3b8;margin:.5rem 0}.debug-apertus-page .empty-state .hint{font-size:.9rem;color:#64748b;max-width:500px;margin:1rem auto 0}@media(max-width:1200px){.debug-apertus-page .config-row{grid-template-columns:repeat(2,1fr)}.debug-apertus-page .stats-grid{grid-template-columns:repeat(3,1fr)}}@media(max-width:768px){.debug-apertus-page{padding:1rem}.debug-apertus-page .config-row{grid-template-columns:1fr}.debug-apertus-page .stats-grid{grid-template-columns:repeat(2,1fr)}.debug-apertus-page .token-prob-item{grid-template-columns:25px 80px 1fr 60px}}.landing-grouping-visual{margin:0 0 1rem;padding:.85rem .95rem 1rem;border-radius:12px;border:1px solid #e2e8f0;background:#fff;transition:border-color .28s ease}.landing-grouping-visual.is-focus{border-color:#94a3b8}.landing-grouping-visual-panel{padding:.65rem 0;border-bottom:1px solid #f1f5f9}.landing-grouping-visual-panel:last-child{border-bottom:none;padding-bottom:0}.landing-grouping-visual-panel:first-child{padding-top:0}.landing-grouping-visual-panel--structural-dendrogram-only{border-bottom:none;padding-bottom:0}.landing-grouping-visual-kicker{font-size:.65rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#64748b;margin-bottom:.35rem}.landing-grouping-visual-kicker--as-typed{text-transform:none;letter-spacing:.06em;font-size:.72rem}.landing-grouping-visual-caption{margin:0 0 .65rem;font-size:.9rem;line-height:1.5;color:#64748b}.landing-grouping-visual-caption-link{color:#334155;font-weight:600;text-decoration:underline;text-decoration-color:#94a3b8;text-underline-offset:2px}.landing-grouping-visual-caption-link:hover{color:#0f172a;text-decoration-color:#64748b}.landing-grouping-visual-parse-examples{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.5rem;align-items:stretch}@media(max-width:900px){.landing-grouping-visual-parse-examples{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){.landing-grouping-visual-parse-examples{grid-template-columns:1fr}}.landing-grouping-visual-parse-example{margin:0;padding:.45rem .5rem;border-radius:12px;border:1px solid #e2e8f0;background:#f8fafc;min-width:0;display:flex;flex-direction:column}.landing-grouping-visual-parse-example-prompt{margin:0 0 .35rem;font-size:.8rem;line-height:1.45;color:#334155;font-weight:600}.landing-grouping-visual-parse-example-brackets{margin:0;padding:0;font-family:ui-monospace,Menlo,Monaco,Consolas,monospace;font-size:.68rem;line-height:1.35;color:#0f172a;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;background:transparent;border:none;flex:1;min-height:0}.landing-grouping-visual-dendro-block{width:100%;max-width:100%;margin:0 auto}.landing-grouping-visual-dendro-svg-cell{width:100%;line-height:0}.landing-grouping-visual-dendro-svg{display:block;width:100%;height:auto;max-height:200px}@media(max-width:520px){.landing-grouping-visual-dendro-block{min-width:300px;overflow-x:auto;-webkit-overflow-scrolling:touch}}.landing-classification-visual{margin:0;padding:.85rem .95rem 1rem;border-radius:12px;border:1px solid #e2e8f0;background:#fff;transition:border-color .28s ease}.landing-classification-visual.is-focus{border:none}.landing-classification-visual-caption{margin:0 0 .65rem;font-size:.9rem;line-height:1.5;color:#64748b}.landing-classification-visual-chips{margin:0;padding:0;list-style:none;display:flex;flex-direction:row;flex-wrap:wrap;gap:.45rem;align-items:stretch}.landing-classification-visual-chip{margin:0;padding:.4rem .55rem .45rem;border-radius:12px;border:1px solid #e2e8f0;min-width:0;max-width:11rem;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.15rem}.landing-classification-visual-chip-token{font-family:ui-monospace,Cascadia Code,SF Mono,Menlo,Consolas,monospace;font-size:.8rem;font-weight:700;line-height:1.2;color:inherit}.landing-classification-visual-chip-category{font-size:.65rem;font-weight:700;line-height:1.25;letter-spacing:.02em;color:inherit;opacity:.92;word-break:break-word}.landing-classification-visual-reclassify-demo{margin-top:.85rem;padding-top:.85rem;border-top:1px solid #e2e8f0}.landing-classification-visual-reclassify-lead{margin:0 0 .75rem;font-size:.88rem;line-height:1.5;color:#475569}.landing-classification-visual-reclassify-lead strong{color:#334155;font-weight:700}.landing-classification-visual-reclassify-flow{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.65rem 1rem}.landing-classification-visual-reclassify-col{display:flex;flex-direction:column;align-items:center;min-width:min(100%,9.5rem)}.landing-classification-visual-reclassify-mid{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.35rem;padding:0 .25rem;min-width:4.5rem}.landing-classification-visual-reclassify-arrow-line{display:block;width:100%;max-width:4rem;height:2px;margin-top:0;background:linear-gradient(90deg,#cbd5e1,#94a3b8);border-radius:1px}.landing-classification-visual-reclassify-mid-cap{font-size:.62rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#64748b}@media(max-width:520px){.landing-classification-visual-reclassify-flow{flex-direction:column;align-items:center}.landing-classification-visual-reclassify-arrow-line{width:2px;height:1.25rem;max-width:none;margin-top:0;background:linear-gradient(180deg,#cbd5e1,#94a3b8)}}.landing-prob-tree-intro{margin:0 0 1rem;padding:.85rem 1rem 1rem;border-radius:12px;border:1px solid #e2e8f0;background:#fff;max-width:min(56rem,100%);margin-left:auto;margin-right:auto}.landing-prob-tree-intro-lead{margin:0 0 .85rem;font-size:.88rem;line-height:1.55;color:#64748b}.landing-prob-tree-intro-lead strong{color:#475569;font-weight:600}.landing-prob-tree-intro-block+.landing-prob-tree-intro-block{margin-top:.85rem;padding-top:.85rem;border-top:1px solid #f1f5f9}.landing-prob-tree-intro-term{margin:0 0 .45rem;font-size:.9rem;line-height:1.55;color:#475569}.landing-prob-tree-intro-term strong{color:#334155;font-weight:700}.landing-prob-tree-intro-symbol em,.landing-prob-tree-intro-formula em{font-style:italic}.landing-prob-tree-intro-formula{margin:0;font-size:.95rem;line-height:1.5;color:#1e293b;padding:.5rem .65rem;border-radius:12px;background:#f8fafc;border:1px solid #e2e8f0;font-family:ui-serif,Times New Roman,Times,serif;display:flex;flex-wrap:wrap;align-items:center;gap:.25rem .35rem}.landing-prob-tree-intro-formula-lhs{font-weight:600;white-space:nowrap}.landing-prob-tree-intro-formula-eq{font-weight:500}.landing-prob-tree-intro-fraction{display:inline-flex;flex-direction:column;align-items:center;vertical-align:middle;margin:0 .1rem}.landing-prob-tree-intro-fraction-num{text-align:center;padding:0 .2rem .12rem;line-height:1.25;font-size:.92em}.landing-prob-tree-intro-fraction-bar{display:block;width:100%;min-width:4.5rem;height:1px;background:#64748b}.landing-prob-tree-intro-fraction-den{text-align:center;padding:.12rem .2rem 0;line-height:1.25;font-size:.92em}.landing-prob-tree-intro sub{font-size:.72em}.landing-prob-tree-intro-subkicker{font-size:.7rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:#475569;margin-bottom:.45rem}.landing-prob-tree-intro-encoding-list{margin:0 0 .75rem;padding-left:1.15rem;font-size:.9rem;line-height:1.55;color:#475569}.landing-prob-tree-intro-encoding-list li{margin-bottom:.5rem}.landing-prob-tree-intro-encoding-list li:last-child{margin-bottom:0}.landing-prob-tree-intro-encoding-list strong{color:#334155}.landing-prob-tree-intro-encoding-note{margin:.65rem 0 .75rem;font-size:.88rem;line-height:1.55;color:#64748b}.landing-prob-tree-intro-schematic{margin:0;padding:.65rem .85rem .55rem;border-radius:12px;background:#fafafa;border:1px solid #e2e8f0}.landing-prob-tree-intro-schematic-wrap{position:relative;width:100%;max-width:400px;margin:0 auto}.landing-prob-tree-intro-schematic-svg{display:block;width:100%;max-width:400px;height:auto}.landing-prob-tree-intro-schematic-icon-badge{position:absolute;left:calc(100% * (var(--schematic-node-x, 102) - var(--schematic-vb-min-x, 8)) / var(--schematic-vb-w, 214) + 1px);top:calc(100% * (var(--schematic-node-y, 16) - var(--schematic-vb-min-y, 10)) / var(--schematic-vb-h, 98));width:26px;height:26px;display:block;pointer-events:none}.landing-prob-tree-intro-schematic-icon-badge svg{display:block;width:100%;height:100%}.landing-prob-tree-intro-schematic-ribbon{fill:#d81b60;fill-opacity:.6}.landing-prob-tree-intro-schematic-node{fill:#d81b60;stroke:#fff;stroke-width:.85;stroke-opacity:.45}.landing-prob-tree-intro-schematic-token{font-family:system-ui,sans-serif;font-size:9px;font-weight:700;fill:#0f172a}.landing-prob-tree-intro-schematic-cat{font-family:system-ui,sans-serif;font-size:7.5px;font-weight:600;fill:#d81b60}.landing-prob-tree-intro-schematic-annot-leader{fill:none;stroke:#94a3b8;stroke-width:.85;stroke-dasharray:2.5 3.5;stroke-linecap:round;stroke-linejoin:round}.landing-prob-tree-intro-schematic-annot-bracket{fill:none;stroke:#94a3b8;stroke-width:.85;stroke-linecap:round;stroke-linejoin:round}.landing-prob-tree-intro-schematic-annot{font-family:system-ui,-apple-system,sans-serif;font-size:6.75px;font-weight:600;fill:#475569}.landing-prob-tree-intro-schematic-annot-sub{font-size:6.25px;font-weight:500;fill:#64748b}.landing-prob-tree-intro-schematic-annot-math{font-style:italic;font-weight:700;fill:#334155}.landing-prob-tree-intro-schematic-annot-subscript{font-size:5px;font-weight:600;fill:#334155;baseline-shift:-1.8px}.landing-sankey-visual-encoding-layout{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:1rem 1.35rem}.landing-sankey-visual-encoding-copy{flex:1 1 17rem;min-width:0}.landing-sankey-visual-encoding-layout .landing-prob-tree-intro-schematic{flex:0 1 auto;margin:0;padding:0;border:none;background:transparent;border-radius:0}.landing-sankey-visual-encoding-layout .landing-prob-tree-intro-schematic-wrap{margin:0;max-width:min(300px,100%);width:min(300px,34vw)}.landing-sankey-visual-encoding-layout .landing-prob-tree-intro-schematic-icon-badge{width:30px;height:30px}.landing-prob-tree-intro-encoding-note--in-layout{margin-bottom:0}@media(max-width:640px){.landing-sankey-visual-encoding-layout{flex-direction:column;align-items:stretch}.landing-sankey-visual-encoding-layout .landing-prob-tree-intro-schematic{align-self:center}.landing-sankey-visual-encoding-layout .landing-prob-tree-intro-schematic-wrap{margin:0 auto;width:100%;max-width:min(320px,100%)}.landing-prob-tree-intro-encoding-note--in-layout{margin-bottom:.75rem}}.landing-comparative-visual{margin:0 0 1rem;padding:.85rem .95rem 1rem;border-radius:12px;border:1px solid #e2e8f0;background:#fff}.landing-comparative-visual-grid{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:1fr;gap:1rem;max-width:min(1180px,100%);margin-inline:auto}.landing-comparative-visual-card{margin:0;padding:.65rem .7rem .75rem;border-radius:12px;border:1px solid #e2e8f0;background:#f8fafc}.landing-comparative-visual-kicker{font-size:.6rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#94a3b8;margin-bottom:.3rem}.landing-comparative-visual-name{margin:0 0 .4rem;font-size:.88rem;font-weight:800;color:#0f172a;line-height:1.25}.landing-comparative-visual-figure{margin:.65rem 0 0;padding:.5rem .55rem;border-radius:12px;background:#fff;border:1px solid #e2e8f0}.landing-comparative-visual-figure--sankey{padding:.35rem;overflow:visible}.landing-comparative-sankey-pair{display:flex;flex-wrap:wrap;gap:.5rem;align-items:flex-start;justify-content:center}.landing-comparative-sankey-slot{flex:1 1 300px;min-width:min(100%,280px);max-width:100%}.landing-comparative-sankey-label{display:block;margin-bottom:.25rem;font-size:.62rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#64748b}.landing-comparative-sankey-wrap{width:100%;max-width:100%;height:var(--landing-comp-sankey-h, 430px);min-height:var(--landing-comp-sankey-h, 430px);border-radius:12px;overflow:visible;border:1px solid #e2e8f0;background:#fff;box-sizing:border-box}.landing-comparative-sankey-wrap .sankey-container{width:100%;max-width:100%;height:100%!important;min-height:0!important;border:none;border-radius:0;box-sizing:border-box;overflow:visible}.landing-comparative-visual .landing-comparative-sankey-wrap .sankey-svg-wrapper{min-height:0!important;height:100%!important;max-height:100%!important;box-sizing:border-box;overflow:visible!important}.landing-comparative-sankey-wrap .sankey-tooltip{max-width:min(340px,calc(100vw - 1.5rem))!important;max-height:none!important;overflow:visible!important;z-index:200}.landing-comparative-sankey-wrap .sankey-tooltip .tooltip-row,.landing-comparative-sankey-wrap .sankey-tooltip .tooltip-label,.landing-comparative-sankey-wrap .sankey-tooltip .tooltip-value{font-size:10px}.landing-comparative-sankey-wrap .sankey-tooltip .tooltip-name{font-size:12px}.landing-comparative-sankey-wrap .sankey-tooltip .single-tooltip-substitute-chip,.landing-comparative-sankey-wrap .sankey-tooltip .dual-tooltip-substitute-chip{font-size:11px;padding:3px 8px}.landing-comparative-sankey-wrap .sankey-tooltip .single-tooltip-substitutes-label{font-size:10px}.landing-comparative-sankey-wrap .dual-tooltip-comparison-kicker{font-size:9px}.landing-comparative-sankey-wrap .dual-tooltip-comparison-label,.landing-comparative-sankey-wrap .dual-tooltip-comparison-value{font-size:10px}.landing-comparative-sankey-wrap--wide{width:100%}.landing-comparative-visual-body{margin:0;font-size:.88rem;line-height:1.5;color:#475569}.landing-comparative-visual-body-stack{display:flex;flex-direction:column;gap:.65rem}.landing-comp-explicit-root .landing-comparative-visual-body em{font-style:italic}.landing-comp-explicit-formula{margin:0;font-size:.95rem;line-height:1.5;color:#1e293b;padding:.5rem .65rem;border-radius:12px;background:#f8fafc;border:1px solid #e2e8f0;font-family:ui-serif,Times New Roman,Times,serif;display:flex;flex-wrap:wrap;align-items:center;gap:.25rem .35rem}.landing-comp-explicit-formula-lhs{font-weight:600;white-space:nowrap}.landing-comp-explicit-formula em{font-style:italic}.landing-comp-explicit-formula-eq{font-weight:500}.landing-comp-explicit-fraction{display:inline-flex;flex-direction:column;align-items:center;vertical-align:middle;margin:0 .1rem}.landing-comp-explicit-fraction-num{text-align:center;padding:0 .2rem .12rem;line-height:1.25;font-size:.92em}.landing-comp-explicit-fraction-bar{display:block;width:100%;min-width:5.5rem;height:1px;background:#64748b}.landing-comp-explicit-fraction--wide .landing-comp-explicit-fraction-bar{min-width:12rem}.landing-comp-explicit-fraction--scalar .landing-comp-explicit-fraction-bar{min-width:2.25rem}.landing-comp-explicit-fraction--scalar .landing-comp-explicit-fraction-num,.landing-comp-explicit-fraction--scalar .landing-comp-explicit-fraction-den{font-size:.95em}.landing-comp-explicit-formula-dot{font-weight:500;padding:0 .05rem}.landing-comp-explicit-sum{display:inline-flex;flex-wrap:wrap;align-items:baseline;gap:.15rem .25rem}.landing-comp-explicit-fraction-den{text-align:center;padding:.12rem .2rem 0;line-height:1.25;font-size:.92em}.landing-comp-explicit-formula sub{font-size:.72em}.landing-comp-explicit-visual-row{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:1rem 1.25rem;margin-top:.65rem}.landing-comp-explicit-visual-copy{flex:1 1 0;min-width:0}.landing-comp-explicit-visual-row .landing-comp-explicit-schematic-subkicker{margin-top:0}.landing-comp-explicit-visual-row .landing-comp-explicit-schematic-subkicker+.landing-comparative-visual-body+.landing-comp-explicit-schematic-subkicker{margin-top:.75rem}.landing-comp-explicit-post-encoding{width:100%;max-width:100%;margin-top:.85rem;display:flex;flex-direction:column;gap:.65rem}.landing-comp-explicit-schematic{margin:.35rem 0 0;padding:.65rem .85rem .55rem;border-radius:12px;background:#fafafa;border:1px solid #e2e8f0}.landing-comp-explicit-visual-row .landing-comp-explicit-schematic{margin:16px 0 0;padding:0;border:none;background:transparent;border-radius:0;box-sizing:border-box;flex:0 0 40%;width:40%;max-width:40%;min-width:0}.landing-comp-explicit-schematic-subkicker{font-size:.65rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:#475569;margin:.65rem 0 .45rem}.landing-comp-explicit-schematic-wrap{position:relative;width:100%;max-width:400px;margin:0 auto}.landing-comp-explicit-visual-row .landing-comp-explicit-schematic-wrap{margin:0;width:100%;max-width:100%}.landing-comp-explicit-visual-row .landing-comp-explicit-schematic-icon-badge{width:26px;height:26px}@media(max-width:720px){.landing-comp-explicit-visual-row{flex-direction:column;align-items:stretch}.landing-comp-explicit-visual-row .landing-comp-explicit-schematic{flex:1 1 auto;width:100%;max-width:100%;align-self:center}.landing-comp-explicit-visual-row .landing-comp-explicit-schematic-wrap{margin:0 auto;width:100%;max-width:min(300px,100%)}}.landing-comp-explicit-schematic-svg{display:block;width:100%;max-width:400px;height:auto}.landing-comp-explicit-visual-row .landing-comp-explicit-schematic-svg{max-width:100%}.landing-comp-explicit-schematic-icon-badge{position:absolute;left:calc(100% * (var(--comp-schematic-node-x, 108) - var(--comp-schematic-vb-min-x, 0)) / var(--comp-schematic-vb-w, 236) + 1px);top:calc(100% * (var(--comp-schematic-node-y, 29) - var(--comp-schematic-vb-min-y, -10)) / var(--comp-schematic-vb-h, 96));width:26px;height:26px;display:block;pointer-events:none}.landing-comp-explicit-schematic-icon-badge svg{display:block;width:100%;height:100%}.landing-comp-explicit-schematic-source-node{fill:#e2e8f0;stroke:#cbd5e1;stroke-width:.6}.landing-comp-explicit-schematic-beam-tree1{fill-opacity:.88;stroke:#93c5fd;stroke-width:.4}.landing-comp-explicit-schematic-beam-tree2{fill-opacity:.78;stroke:#7c3aed;stroke-width:.35;stroke-opacity:.5}.landing-comp-explicit-schematic-beam-divider{fill:none;stroke:#ffffffeb;stroke-width:1.25;stroke-dasharray:4 2;stroke-linecap:round}.landing-comp-explicit-schematic-node{stroke:#fff;stroke-width:.85;stroke-opacity:.45}.landing-comp-explicit-schematic-token{font-family:system-ui,sans-serif;font-size:9px;font-weight:700;fill:#0f172a}.landing-comp-explicit-schematic-cat{font-family:system-ui,sans-serif;font-size:7.5px;font-weight:600}.landing-comp-explicit-schematic-annot-leader{fill:none;stroke:#94a3b8;stroke-width:.85;stroke-dasharray:2.5 3.5;stroke-linecap:round;stroke-linejoin:round}.landing-comp-explicit-schematic-annot{font-family:system-ui,-apple-system,sans-serif;font-size:6.75px;font-weight:600;fill:#475569}.landing-comp-explicit-schematic-annot-math{font-style:italic;font-weight:700;fill:#334155}.landing-comp-explicit-schematic-annot-subscript{font-size:5.5px;font-weight:600;fill:#334155;baseline-shift:-1.5px}.landing-comparative-visual-framework-lead{margin:0 auto 1.25rem;padding:0;max-width:min(56rem,100%);font-size:.95rem;line-height:1.6;color:#475569;text-align:center;text-wrap:pretty}.landing-comparative-visual-framework-link{color:#334155;font-weight:600;text-decoration:underline;text-decoration-color:#94a3b8;text-underline-offset:2px}.landing-comparative-visual-framework-link:hover{color:#0f172a;text-decoration-color:#64748b}@media(max-width:640px){.landing-comparative-visual-grid{max-width:100%}.landing-comparative-sankey-slot{min-width:100%}}.landing-page{flex:1;max-width:1200px;margin:0 auto;padding:2.5rem 1.5rem 3.5rem;width:100%}.landing-hero{text-align:center;margin-bottom:2rem}.landing-kicker{margin:0 0 .5rem;font-size:.85rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:#4a5568}.landing-title{margin:0;font-size:clamp(2.25rem,6vw,3.25rem);font-weight:800;letter-spacing:-.04em;color:#1a202c;line-height:1.05}.landing-title-accent{color:#2b6cb0}.landing-teaser-figure{margin:0 0 2.5rem;padding:0}.landing-teaser-image-frame{border-radius:12px;overflow:hidden;background:#fff;line-height:0;box-sizing:border-box}.landing-teaser-image{display:block;width:100%;height:auto;vertical-align:middle}.landing-teaser-caption{display:block;box-sizing:border-box;width:100%;margin:1.35rem auto 0;padding:0;font-size:.98rem;line-height:1.65;color:#4a5568;text-align:left;text-wrap:pretty}.landing-teaser-links{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.75rem;margin:1.25rem 0 0;padding:0}.landing-resource-btn{gap:.45rem;min-width:8.5rem}.landing-motivation{margin:0 auto 2.5rem;max-width:100%}.landing-motivation-title{margin:0 0 1.25rem;font-size:clamp(1.25rem,3.5vw,1.5rem);font-weight:700;letter-spacing:-.02em;color:#1a202c;text-align:center}.landing-motivation-text{box-sizing:border-box;width:100%;margin:0 auto 1.25rem;font-size:.98rem;line-height:1.65;color:#4a5568;text-align:left;text-wrap:pretty}.landing-motivation-cite{font-size:.88em;font-weight:600;color:#2d3748;white-space:nowrap}.landing-motivation-cite-link{color:#2b6cb0;text-decoration:none}.landing-motivation-cite-link:hover{text-decoration:underline}.landing-motivation-refs-list{box-sizing:border-box;width:100%;margin:0 auto;padding:0;padding-inline-start:1.5rem;font-size:.82rem;line-height:1.58;color:#4a5568;text-align:left;list-style-position:outside}.landing-motivation-ref-item{margin:0 0 .65rem;padding-left:.5rem;text-align:left}.landing-motivation-ref-item::marker{font-weight:700;color:#2d3748}.landing-motivation-ref-text{display:inline}.landing-motivation-ref-open-btn{display:inline-flex;align-items:center;justify-content:center;margin-left:.2rem;padding:.18rem;vertical-align:middle;text-decoration:none;color:#334155;background:#fff;border:1px solid #cbd5e1;border-radius:5px;transition:background .15s ease,border-color .15s ease,color .15s ease}.landing-motivation-ref-open-icon{display:block;flex-shrink:0}.landing-motivation-ref-open-btn:hover{color:#0f172a;background:#f8fafc;border-color:#94a3b8}.landing-motivation-ref-open-btn:focus-visible{outline:2px solid #3b82f6;outline-offset:2px}.landing-references .landing-motivation-title{margin-bottom:.75rem}.landing-how-trees{margin-top:2.75rem;padding-top:2rem;border-top:1px solid #e2e8f0}.landing-contribution-lead{box-sizing:border-box;width:100%;margin-left:auto;margin-right:auto;text-align:left;line-height:1.65;text-wrap:pretty}.landing-contribution-hook{font-weight:600;color:#1a202c;letter-spacing:-.01em}.landing-how-trees-lead:has(+.landing-contribution-bullets){margin-bottom:0}.landing-contribution-bullets{margin:0;padding:0 0 0 1.35rem;max-width:100%;font-size:.98rem;line-height:1.65;color:#4a5568;text-align:left;text-wrap:pretty}.landing-contribution-bullets>li{margin:0 0 .85rem;padding-left:.35rem}.landing-contribution-bullets>li:last-child{margin-bottom:0}.landing-contribution-bullet-label{font-weight:600;color:#1a202c;letter-spacing:-.01em}.landing-contribution-views-emphasis,.landing-contribution-contrastive-emphasis{font-weight:700;color:inherit;letter-spacing:-.02em}.landing-contribution-evaluation{margin-top:0;margin-bottom:0}.landing-contribution-figure .landing-teaser-caption{margin-top:1.15rem}.landing-contribution-figure{margin-bottom:0}.landing-how-trees-title{margin:0 0 .5rem;font-size:clamp(1.25rem,3.5vw,1.5rem);font-weight:700;letter-spacing:-.02em;color:#1a202c;text-align:center}.landing-how-trees-lead{margin:0 auto 1.5rem;font-size:.98rem;line-height:1.55;color:#4a5568;text-align:left}.landing-how-trees-lead.landing-contribution-lead{text-align:left;line-height:1.65}.landing-how-trees-paired-list{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:0}.landing-how-trees-paired-item{display:grid;grid-template-columns:minmax(11rem,15rem) minmax(0,1fr);gap:1rem 1.5rem;align-items:start;padding:1.15rem 0;border-top:1px solid #e2e8f0}.landing-how-trees-paired-item:last-child{border-bottom:1px solid #e2e8f0}@media(max-width:640px){.landing-how-trees-paired-item{grid-template-columns:1fr;gap:.65rem;padding:1rem 0}}.landing-how-trees-paired-gutter{position:relative;min-width:0}.landing-how-trees-paired-item:not(:last-child) .landing-how-trees-paired-gutter:after{content:"";position:absolute;left:13px;top:40px;bottom:-1.15rem;width:2px;background:linear-gradient(180deg,#cbd5e1,#e2e8f0);border-radius:1px;pointer-events:none}@media(max-width:640px){.landing-how-trees-paired-item:not(:last-child) .landing-how-trees-paired-gutter:after{display:none}}.landing-how-trees-paired-head{display:grid;grid-template-columns:28px 1fr;gap:.65rem;align-items:start;width:100%;text-align:left;font:inherit;padding:.2rem .35rem .2rem 0;margin:0}.landing-how-trees-paired-num{width:28px;height:28px;display:flex;align-items:center;justify-content:center;border-radius:50%;font-size:.78rem;font-weight:800;color:#334155;background:#f1f5f9;border:1px solid #cbd5e1;flex-shrink:0;z-index:1;transition:background .2s ease,color .2s ease}.landing-how-trees-paired-title{grid-column:2;font-size:.82rem;font-weight:600;line-height:1.4;color:#64748b;padding-top:.12rem;transition:color .2s ease}.landing-how-trees-paired-body{min-width:0}.landing-how-trees-paired-text{margin:0;font-size:.95rem;line-height:1.62;color:#2d3748}.landing-how-trees-paired-visual{min-width:0}.landing-how-trees-sankey-slot{min-width:0;overflow:visible}.landing-step-merge-prob-intro{min-width:0;box-sizing:border-box;padding:1rem 1.15rem 1.1rem;border-radius:12px;border:1px solid #e2e8f0;background:#fff;max-width:min(56rem,100%);margin-left:auto;margin-right:auto}.landing-step-merge-prob-intro .landing-prob-tree-intro{margin:0 0 .75rem;padding:0;border:none;background:transparent;max-width:none;margin-left:0;margin-right:0}.landing-step-merge-prob-intro .landing-demo-showcase-block{border:none;background:transparent;border-radius:0;padding:0}.landing-step-merge-prob-intro .landing-demo-showcase-block.is-focus{border-color:transparent}.landing-step-merge-prob-intro .landing-demo-showcase-gens-stack{gap:0}.landing-step-merge-prob-intro .landing-demo-showcase-gens-stack>.landing-demo-showcase-block+.landing-demo-showcase-block{margin-top:1rem;padding-top:1rem;border-top:1px solid #f1f5f9}.landing-step-merge-prob-intro .landing-grouping-visual,.landing-step-merge-prob-intro .landing-classification-visual{margin:0;padding:0;border:none;background:transparent;border-radius:0}.landing-step-merge-prob-intro .landing-grouping-visual.is-focus{border-color:transparent}.landing-step-merge-prob-intro .landing-classification-visual.is-focus{border:none}.landing-perturbation-pipeline,.landing-pipeline-sketch-theme{--landing-pipeline-ink: #0a0a0a;--landing-pipeline-border: 1px solid var(--landing-pipeline-ink);--landing-pipeline-mono: ui-monospace, "Courier New", Courier, "Nimbus Mono PS", monospace;--landing-pipeline-paper: #ffffff;--landing-pipeline-fs: .72rem;--landing-pipeline-fs-tight: .68rem;--landing-pipeline-fs-micro: .6rem;--landing-pipeline-fs-section: clamp(1.05rem, 2.9vw, 1.22rem);--landing-pipeline-fs-prompt: clamp(.66rem, 1.85vw, .74rem);--landing-pipeline-serif-math: ui-serif, "Times New Roman", "Palatino Linotype", Palatino, Georgia, serif;--landing-pipeline-fs-formula: .78rem;--landing-pipeline-fs-step-title: clamp(.92rem, 2.5vw, 1.08rem)}.landing-perturbation-pipeline .landing-how-trees-title{font-family:var(--landing-pipeline-mono);font-size:var(--landing-pipeline-fs-section);font-weight:800;letter-spacing:-.03em;color:var(--landing-pipeline-ink)}.landing-perturbation-pipeline .landing-pipeline-step-desc{margin:0 0 .9rem;max-width:min(56rem,100%);font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:.98rem;line-height:1.65;font-weight:400;color:#4a5568;text-wrap:pretty}.landing-perturbation-pipeline .landing-pipeline-step-desc-link{color:#334155;font-weight:600;text-decoration:underline;text-decoration-color:#94a3b8;text-underline-offset:2px}.landing-perturbation-pipeline .landing-pipeline-step-desc-link:hover{color:#0f172a;text-decoration-color:#64748b}.landing-perturbation-pipeline .landing-how-trees-paired-visual,.landing-pipeline-sketch-theme.landing-step-merge-prob-intro{font-family:var(--landing-pipeline-mono);font-size:var(--landing-pipeline-fs);line-height:1.45}.landing-perturbation-pipeline .landing-how-trees-paired-item{border-top:var(--landing-pipeline-border);padding-top:1.25rem;padding-bottom:1.25rem}.landing-perturbation-pipeline .landing-how-trees-paired-item:last-child{border-bottom:var(--landing-pipeline-border)}.landing-perturbation-pipeline .landing-how-trees-paired-item:not(:last-child) .landing-how-trees-paired-gutter:after{left:13px;top:44px;width:0;border-left:2px dashed var(--landing-pipeline-ink);background:none;border-radius:0;opacity:.88}.landing-perturbation-pipeline .landing-how-trees-paired-num{font-family:var(--landing-pipeline-mono);font-size:var(--landing-pipeline-fs-tight);font-weight:800;color:var(--landing-pipeline-ink);background:var(--landing-pipeline-paper);border:var(--landing-pipeline-border)}.landing-perturbation-pipeline .landing-how-trees-paired-title{font-family:var(--landing-pipeline-mono);font-weight:700;font-size:var(--landing-pipeline-fs-step-title);letter-spacing:-.02em;color:var(--landing-pipeline-ink);text-transform:none}.landing-perturbation-pipeline .landing-step-merge-prob-intro,.landing-pipeline-sketch-theme.landing-step-merge-prob-intro{border:var(--landing-pipeline-border);border-radius:28px;background:var(--landing-pipeline-paper);padding:1rem 1.2rem 1.15rem}.landing-perturbation-pipeline .landing-step-merge-prob-intro:has(>.landing-grouping-visual--structural){padding:.45rem .55rem .5rem}.landing-pipeline-sketch-theme.landing-step-merge-prob-intro .landing-demo-showcase-gens-stack>.landing-demo-showcase-block+.landing-demo-showcase-block{border-top:2px dashed var(--landing-pipeline-ink)}.landing-pipeline-sketch-connector{display:flex;flex-direction:column;align-items:center;gap:.2rem;padding:.35rem 0 .15rem}.landing-pipeline-sketch-connector-line{width:0;height:.85rem;border-left:2px dashed var(--landing-pipeline-ink);opacity:.9}.landing-pipeline-sketch-connector-cap{font-family:var(--landing-pipeline-mono);font-size:var(--landing-pipeline-fs-micro);font-weight:700;font-style:italic;color:var(--landing-pipeline-ink);letter-spacing:.02em;text-align:center;max-width:12rem;line-height:1.35}.landing-perturbation-pipeline .landing-pipeline-step1-stack>.landing-pipeline-sketch-connector+.landing-demo-showcase-block{margin-top:.35rem;padding-top:.85rem;border-top:2px dashed var(--landing-pipeline-ink)}:is(.landing-perturbation-pipeline,.landing-pipeline-sketch-theme) .landing-demo-showcase--pipeline-sketch{--landing-showcase-prose-font: var(--landing-pipeline-mono);--landing-showcase-prompt-body-size: var(--landing-pipeline-fs);--landing-showcase-prompt-body-line-height: 1.45}:is(.landing-perturbation-pipeline,.landing-pipeline-sketch-theme) .landing-demo-showcase--pipeline-sketch .landing-demo-showcase-kicker{font-family:var(--landing-pipeline-mono);font-size:var(--landing-pipeline-fs-micro);font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:var(--landing-pipeline-ink);border:none;border-radius:4px;padding:.3rem .5rem;display:inline-block;margin-bottom:.55rem;background:#0a0a0a0f;box-shadow:none}:is(.landing-perturbation-pipeline,.landing-pipeline-sketch-theme) .landing-demo-showcase-prompt-text--token-pills{display:flex;flex-wrap:wrap;gap:.32rem .28rem;align-items:center;font-family:var(--landing-pipeline-mono);font-size:var(--landing-pipeline-fs-prompt);font-weight:600;line-height:1.45;color:var(--landing-pipeline-ink)}:is(.landing-perturbation-pipeline,.landing-pipeline-sketch-theme) .landing-demo-showcase--pipeline-sketch.landing-demo-showcase-prompt .landing-demo-showcase-prompt-text{font-size:var(--landing-pipeline-fs-prompt);line-height:1.45}:is(.landing-perturbation-pipeline,.landing-pipeline-sketch-theme) .landing-demo-showcase-token-pill{display:inline-flex;align-items:center;padding:.14em .5em;border:var(--landing-pipeline-border);border-radius:999px;background:#fff;color:var(--landing-pipeline-ink);font-weight:600}:is(.landing-perturbation-pipeline,.landing-pipeline-sketch-theme) .landing-demo-showcase-token-pill--target{background:var(--landing-pipeline-ink);color:#fff;font-weight:800}:is(.landing-perturbation-pipeline,.landing-pipeline-sketch-theme) .landing-demo-showcase--pipeline-sketch .landing-demo-showcase-prompt-text:not(.landing-demo-showcase-prompt-text--token-pills){font-family:var(--landing-pipeline-mono);color:var(--landing-pipeline-ink)}:is(.landing-perturbation-pipeline,.landing-pipeline-sketch-theme) .landing-demo-showcase--pipeline-sketch .landing-demo-showcase-target{border:var(--landing-pipeline-border);border-radius:999px;background:var(--landing-pipeline-ink);color:#fff}:is(.landing-perturbation-pipeline,.landing-pipeline-sketch-theme) .landing-demo-showcase--pipeline-sketch .landing-demo-showcase-aug-list{gap:.4rem;padding:0;border:none;background:transparent;max-height:none}:is(.landing-perturbation-pipeline,.landing-pipeline-sketch-theme) .landing-demo-showcase--pipeline-sketch .landing-demo-showcase-aug-item{padding:0}:is(.landing-perturbation-pipeline,.landing-pipeline-sketch-theme) .landing-demo-showcase--pipeline-sketch .landing-demo-showcase-aug-mono{display:block;padding:.45rem .65rem;border:var(--landing-pipeline-border);border-radius:999px;background:#fff;color:var(--landing-pipeline-ink)}:is(.landing-perturbation-pipeline,.landing-pipeline-sketch-theme) .landing-demo-showcase--pipeline-sketch .landing-demo-showcase-aug-sub{font-weight:800;text-decoration:underline;text-underline-offset:2px}:is(.landing-perturbation-pipeline,.landing-pipeline-sketch-theme) .landing-demo-showcase--pipeline-sketch .landing-demo-showcase-gen-card{border:var(--landing-pipeline-border);border-radius:22px;background:#fff}:is(.landing-perturbation-pipeline,.landing-pipeline-sketch-theme) .landing-demo-showcase--pipeline-sketch .landing-demo-showcase-gen-head{border-bottom:var(--landing-pipeline-border);margin-bottom:.45rem}:is(.landing-perturbation-pipeline,.landing-pipeline-sketch-theme) .landing-demo-showcase--pipeline-sketch .landing-demo-showcase-gen-label{font-family:var(--landing-pipeline-mono);font-size:var(--landing-pipeline-fs-micro);color:var(--landing-pipeline-ink)}:is(.landing-perturbation-pipeline,.landing-pipeline-sketch-theme) .landing-demo-showcase--pipeline-sketch .landing-demo-showcase-gen-label--tag{background:#0a0a0a14;color:var(--landing-pipeline-ink)}:is(.landing-perturbation-pipeline,.landing-pipeline-sketch-theme) .landing-demo-showcase--pipeline-sketch .landing-demo-showcase-gen-name{font-family:var(--landing-pipeline-mono);font-size:var(--landing-pipeline-fs-tight);color:var(--landing-pipeline-ink)}:is(.landing-perturbation-pipeline,.landing-pipeline-sketch-theme) .landing-demo-showcase--pipeline-sketch .landing-demo-showcase-gen-line{font-family:var(--landing-pipeline-mono);font-size:var(--landing-pipeline-fs);color:var(--landing-pipeline-ink)}:is(.landing-perturbation-pipeline,.landing-pipeline-sketch-theme) .landing-demo-showcase--pipeline-sketch .landing-demo-showcase-constituency-parse{border:var(--landing-pipeline-border);border-radius:18px;padding:.5rem .6rem;background:#fff;font-family:var(--landing-pipeline-mono);font-size:var(--landing-pipeline-fs-tight);color:var(--landing-pipeline-ink)}:is(.landing-perturbation-pipeline,.landing-pipeline-sketch-theme) .landing-demo-showcase--pipeline-sketch .landing-demo-showcase-continuation-mark{border:var(--landing-pipeline-border);border-radius:6px;background:#0a0a0a14;color:var(--landing-pipeline-ink)}:is(.landing-perturbation-pipeline,.landing-pipeline-sketch-theme) .landing-demo-showcase--pipeline-sketch .landing-demo-showcase-run-desc{font-family:var(--landing-pipeline-mono);font-size:var(--landing-pipeline-fs-micro);color:var(--landing-pipeline-ink);opacity:.72}:is(.landing-perturbation-pipeline,.landing-pipeline-sketch-theme) .landing-grouping-visual{border:var(--landing-pipeline-border);border-radius:22px;background:var(--landing-pipeline-paper)}:is(.landing-perturbation-pipeline,.landing-pipeline-sketch-theme) .landing-grouping-visual-kicker{font-family:var(--landing-pipeline-mono);font-size:var(--landing-pipeline-fs-micro);color:var(--landing-pipeline-ink)}:is(.landing-perturbation-pipeline,.landing-pipeline-sketch-theme) .landing-grouping-visual-caption{font-family:var(--landing-pipeline-mono);font-size:var(--landing-pipeline-fs-tight);color:var(--landing-pipeline-ink)}:is(.landing-perturbation-pipeline,.landing-pipeline-sketch-theme) .landing-grouping-visual-parse-example{border:var(--landing-pipeline-border);border-radius:16px;background:#fff}:is(.landing-perturbation-pipeline,.landing-pipeline-sketch-theme) .landing-grouping-visual-parse-example-prompt{font-family:var(--landing-pipeline-mono);font-size:var(--landing-pipeline-fs-tight)}:is(.landing-perturbation-pipeline,.landing-pipeline-sketch-theme) .landing-grouping-visual-parse-example-brackets{font-family:var(--landing-pipeline-mono);font-size:var(--landing-pipeline-fs-micro)}:is(.landing-perturbation-pipeline,.landing-pipeline-sketch-theme) .landing-classification-visual{border:var(--landing-pipeline-border);border-radius:22px;background:var(--landing-pipeline-paper)}:is(.landing-perturbation-pipeline,.landing-pipeline-sketch-theme) .landing-classification-visual-caption,:is(.landing-perturbation-pipeline,.landing-pipeline-sketch-theme) .landing-classification-visual-reclassify-lead{font-family:var(--landing-pipeline-mono);font-size:var(--landing-pipeline-fs-tight);color:var(--landing-pipeline-ink);opacity:.9}:is(.landing-perturbation-pipeline,.landing-pipeline-sketch-theme) .landing-classification-visual-chip{border:var(--landing-pipeline-border);border-radius:999px}:is(.landing-perturbation-pipeline,.landing-pipeline-sketch-theme) .landing-classification-visual-chip-token{font-family:var(--landing-pipeline-mono);font-size:var(--landing-pipeline-fs-tight)}:is(.landing-perturbation-pipeline,.landing-pipeline-sketch-theme) .landing-classification-visual-chip-category{font-family:var(--landing-pipeline-mono);font-size:var(--landing-pipeline-fs-micro)}:is(.landing-perturbation-pipeline,.landing-pipeline-sketch-theme) .landing-classification-visual-reclassify-demo{border-top:2px dashed var(--landing-pipeline-ink)}:is(.landing-perturbation-pipeline,.landing-pipeline-sketch-theme) .landing-classification-visual-reclassify-arrow-line{height:0;border-top:2px dashed var(--landing-pipeline-ink);background:none;border-radius:0}:is(.landing-perturbation-pipeline,.landing-pipeline-sketch-theme) .landing-classification-visual-reclassify-mid-cap{font-family:var(--landing-pipeline-mono);font-size:var(--landing-pipeline-fs-micro);color:var(--landing-pipeline-ink);letter-spacing:.06em}@media(max-width:520px){:is(.landing-perturbation-pipeline,.landing-pipeline-sketch-theme) .landing-classification-visual-reclassify-arrow-line{border-top:none;border-left:2px dashed var(--landing-pipeline-ink);width:0;height:1.25rem;background:none}}.landing-perturbation-pipeline .landing-step-merge-prob-intro .landing-classification-visual{padding:.85rem .95rem 1rem;border-radius:12px;border:1px solid #e2e8f0;background:#fff}.landing-perturbation-pipeline .landing-step-merge-prob-intro .landing-classification-visual.is-focus{border:none}.landing-perturbation-pipeline .landing-step-merge-prob-intro .landing-classification-visual-caption,.landing-perturbation-pipeline .landing-step-merge-prob-intro .landing-classification-visual-reclassify-lead{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:.9rem;line-height:1.5;color:#64748b;opacity:1}.landing-perturbation-pipeline .landing-step-merge-prob-intro .landing-classification-visual-reclassify-lead{font-size:.88rem;color:#475569}.landing-perturbation-pipeline .landing-step-merge-prob-intro .landing-classification-visual-chip{border:1px solid #e2e8f0;border-radius:12px}.landing-perturbation-pipeline .landing-step-merge-prob-intro .landing-classification-visual-chip-token{font-family:ui-monospace,Cascadia Code,SF Mono,Menlo,Consolas,monospace;font-size:.8rem;font-weight:700}.landing-perturbation-pipeline .landing-step-merge-prob-intro .landing-classification-visual-chip-category{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:.65rem;font-weight:700}.landing-perturbation-pipeline .landing-step-merge-prob-intro .landing-classification-visual-reclassify-demo{border-top:1px solid #e2e8f0}.landing-perturbation-pipeline .landing-step-merge-prob-intro .landing-classification-visual-reclassify-arrow-line{display:block;width:100%;max-width:4rem;height:2px;margin-top:0;border:none;border-radius:1px;background:linear-gradient(90deg,#cbd5e1,#94a3b8)}.landing-perturbation-pipeline .landing-step-merge-prob-intro .landing-classification-visual-reclassify-mid-cap{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:.62rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#64748b}@media(max-width:520px){.landing-perturbation-pipeline .landing-step-merge-prob-intro .landing-classification-visual-reclassify-arrow-line{width:2px;height:1.25rem;max-width:none;margin-top:0;background:linear-gradient(180deg,#cbd5e1,#94a3b8)}}:is(.landing-perturbation-pipeline,.landing-pipeline-sketch-theme) .landing-prob-tree-intro-lead,:is(.landing-perturbation-pipeline,.landing-pipeline-sketch-theme) .landing-prob-tree-intro-term{font-family:var(--landing-pipeline-mono);font-size:var(--landing-pipeline-fs-tight);color:var(--landing-pipeline-ink)}:is(.landing-perturbation-pipeline,.landing-pipeline-sketch-theme) .landing-prob-tree-intro-formula{font-family:var(--landing-pipeline-serif-math);font-size:var(--landing-pipeline-fs-formula);border:var(--landing-pipeline-border);background:#fff;border-radius:16px}:is(.landing-perturbation-pipeline,.landing-pipeline-sketch-theme) .landing-prob-tree-intro-block+.landing-prob-tree-intro-block{border-top:2px dashed var(--landing-pipeline-ink)}.landing-sankey-tree-viz-panel{margin:0 auto 1.5rem;max-width:min(1180px,100%);padding:.65rem .75rem .85rem;border-radius:12px;border:1px solid #e2e8f0;background:#f8fafc;box-sizing:border-box}.landing-sankey-tree-viz-panel .landing-sankey-visual-encoding-root{margin:0 0 1rem;max-width:none;text-align:left}.landing-sankey-tree-viz-panel .landing-sankey-tree-viz-shell{margin-inline:0;max-width:none}.landing-sankey-tree-viz-shell{max-width:min(1180px,100%);margin-inline:auto}.landing-demo-showcase-gens-stack{display:flex;flex-direction:column;gap:1rem}.landing-how-trees-lead.landing-comparative-design-lead{margin-bottom:2.25rem}.landing-comparative-male-shell{margin-bottom:20px}.landing-comparative-male-examples{margin-bottom:1.5rem}.landing-demo-showcase-block{--landing-showcase-prose-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--landing-showcase-prompt-body-size: .9rem;--landing-showcase-prompt-body-line-height: 1.5;border-radius:12px;border:1px solid #e2e8f0;padding:1rem 1.15rem 1.1rem;margin-bottom:0;background:#fff;transition:border-color .28s ease}.landing-demo-showcase-block.is-focus{border-color:#94a3b8}.landing-demo-showcase-kicker{font-size:.68rem;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:#64748b;margin-bottom:.5rem}.landing-demo-showcase-prompt-text{margin:0 0 .85rem;font-family:var(--landing-showcase-prose-font);font-size:var(--landing-showcase-prompt-body-size);line-height:var(--landing-showcase-prompt-body-line-height);color:#1e293b;font-weight:500}.landing-demo-showcase-prompt .landing-demo-showcase-prompt-text{font-size:clamp(1.12rem,3vw,1.3rem);line-height:1.55}.landing-demo-showcase-target{margin:0 .06em;padding:.1em .28em;border-radius:4px;background:#e2e8f0;color:#0f172a;font-weight:800;font-size:.98em}.landing-demo-showcase-meta{margin:0;display:flex;flex-wrap:wrap;gap:.65rem 1.25rem;font-size:.82rem;color:#475569}.landing-demo-showcase-meta-row{display:flex;gap:.4rem;align-items:baseline}.landing-demo-showcase-meta-row dt{margin:0;font-weight:700;color:#64748b}.landing-demo-showcase-meta-row dd{margin:0;font-weight:600;color:#334155}.landing-demo-showcase-run-desc{margin:.65rem 0 0;font-size:.88rem;line-height:1.5;color:#94a3b8}.landing-demo-showcase-aug-list{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:.45rem;max-height:11.5rem;overflow:auto;border-radius:12px;background:#f8fafc;border:1px solid #e2e8f0;padding:.55rem .65rem}.landing-demo-showcase-aug-item{margin:0}.landing-demo-showcase-aug-mono{display:block;font-family:var(--landing-showcase-prose-font);font-size:var(--landing-showcase-prompt-body-size);line-height:var(--landing-showcase-prompt-body-line-height);color:#334155;word-break:break-word}.landing-demo-showcase-aug-sub{font-weight:800;color:#0f172a}.landing-demo-showcase-cursor{margin-left:.15em;color:#94a3b8;font-weight:400;animation:landing-demo-cursor-blink 1.1s step-end infinite}@keyframes landing-demo-cursor-blink{50%{opacity:0}}.landing-demo-showcase-gen-grid{display:grid;grid-template-columns:1fr;gap:.75rem}@media(min-width:640px){.landing-demo-showcase-gen-grid{grid-template-columns:repeat(2,1fr)}}@media(min-width:900px){.landing-demo-showcase-gen-grid{grid-template-columns:repeat(3,1fr)}}.landing-demo-showcase-gen-card{margin:0;padding:.65rem .75rem;border-radius:12px;border:1px solid #e2e8f0;background:#fafafa}.landing-demo-showcase-gen-head{display:flex;flex-direction:column;gap:.15rem;margin-bottom:.5rem;padding-bottom:.45rem;border-bottom:1px solid #e2e8f0}.landing-demo-showcase-gen-label{font-size:.65rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#94a3b8}.landing-demo-showcase-gen-label--tag{display:inline-flex;align-items:center;align-self:flex-start;width:fit-content;padding:.28em .55em;border-radius:4px;background:#e8edf3;color:#334155;font-weight:800;letter-spacing:.14em}.landing-demo-showcase-gen-name{font-family:var(--landing-showcase-prose-font);font-size:1.05rem;font-weight:800;color:#1e293b}.landing-demo-showcase-gen-samples{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:.5rem}.landing-demo-showcase-gen-line{margin:0;font-family:var(--landing-showcase-prose-font);font-size:var(--landing-showcase-prompt-body-size);line-height:var(--landing-showcase-prompt-body-line-height);font-weight:500;color:#334155}.landing-demo-showcase-constituency-parse{margin:0;padding:0;font-family:ui-monospace,Cascadia Code,SF Mono,Menlo,Consolas,monospace;font-size:.82rem;line-height:1.45;color:#334155;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;background:transparent;border:none}.landing-demo-showcase-continuation-mark{margin:0;padding:.08em .2em;border-radius:4px;background:#94a3b859;color:#0f172a;font-weight:600}@media(prefers-reduced-motion:reduce){.landing-demo-showcase-cursor{animation:none}}.landing-sankey-demo-figure{margin:0 auto 1.5rem;padding:0;max-width:100%}.landing-sankey-demo-figure--embed{margin:0}.landing-sankey-demo-stage{position:relative;width:var(--landing-sankey-demo-w, 960px);max-width:100%;height:var(--landing-sankey-demo-h, 540px);min-height:var(--landing-sankey-demo-h, 540px);margin-inline:auto;border-radius:12px;overflow:visible;border:1px solid #e2e8f0;background:#fff;box-sizing:border-box}.landing-sankey-demo-wrap{width:100%;max-width:100%;height:100%;min-height:100%;border-radius:0;overflow:visible;border:none;box-shadow:none;background:#fff;box-sizing:border-box}.landing-sankey-demo-wrap .sankey-container{width:100%;max-width:100%;height:100%!important;min-height:0!important;border:none;border-radius:0;box-sizing:border-box;overflow:visible}.landing-sankey-demo-wrap .sankey-svg-wrapper{height:100%!important;min-height:0!important;max-height:100%!important;box-sizing:border-box;overflow:visible!important}.landing-sankey-demo-wrap .sankey-tooltip{max-width:min(320px,calc(100vw - 1.5rem))!important;max-height:none!important;overflow:visible!important;z-index:200}.landing-sankey-demo-wrap .sankey-tooltip .tooltip-row,.landing-sankey-demo-wrap .sankey-tooltip .tooltip-label,.landing-sankey-demo-wrap .sankey-tooltip .tooltip-value{font-size:10px}.landing-sankey-demo-wrap .sankey-tooltip .tooltip-name{font-size:12px}.landing-sankey-demo-wrap .sankey-tooltip .single-tooltip-substitute-chip{font-size:11px;padding:3px 8px}.landing-sankey-demo-wrap .sankey-tooltip .single-tooltip-substitutes-label{font-size:10px}.landing-how-trees-panel{max-width:44rem;margin:0 auto;padding:1.25rem 1.35rem;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px}.landing-how-trees-panel-title{margin:0 0 .65rem;font-size:1.05rem;font-weight:700;color:#1a202c;letter-spacing:-.02em}.landing-how-trees-panel-body{margin:0;font-size:.95rem;line-height:1.62;color:#2d3748}.landing-how-trees-nav{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-top:1.25rem;padding-top:1rem;border-top:1px solid #e2e8f0}.landing-how-trees-nav--under-chart{margin-top:.65rem;margin-bottom:0;padding-top:.85rem;max-width:100%}.landing-how-trees-nav-btn{padding:.4rem .85rem;font:inherit;font-size:.85rem;font-weight:600;color:#2d3748;background:#fff;border:1px solid #cbd5e1;border-radius:8px;cursor:pointer;transition:background .15s ease,border-color .15s ease}.landing-how-trees-nav-btn:hover:not(:disabled){background:#edf2f7;border-color:#a0aec0}.landing-how-trees-nav-btn:focus-visible{outline:2px solid #2d3748;outline-offset:2px}.landing-how-trees-nav-btn:disabled{opacity:.4;cursor:not-allowed}.landing-how-trees-nav-dots{display:flex;gap:6px;flex-shrink:0}.landing-how-trees-dot{width:6px;height:6px;border-radius:50%;background:#cbd5e1;transition:background .15s ease,transform .15s ease}.landing-how-trees-dot.is-current{background:#2d3748;transform:scale(1.25)}.landing-actions{display:flex;justify-content:center;margin-top:2.25rem}.landing-cta{display:inline-flex;align-items:center;justify-content:center;gap:.45rem;padding:.75rem 1.75rem;font-size:1rem;font-weight:600;color:#fff;background:#2d3748;border-radius:10px;text-decoration:none;box-shadow:0 2px 4px #0000001f;transition:background .2s ease,transform .15s ease}.landing-cta:hover{background:#1a202c;transform:translateY(-1px)}.landing-cta:focus-visible{outline:2px solid #2b6cb0;outline-offset:3px}.navigation{background:#2d3748;box-shadow:0 2px 4px #0000001a;position:sticky;top:0;z-index:1000}.nav-container{max-width:1400px;margin:0 auto;padding:.75rem 2rem;display:grid;grid-template-columns:1fr auto 1fr;align-items:center}.nav-brand{grid-column:2;display:flex;align-items:center;justify-content:center;gap:.75rem}.nav-status-area{grid-column:1;display:flex;align-items:center}.nav-brand-link{text-decoration:none;color:inherit;border-radius:4px}.nav-brand-link:hover h1{opacity:.92}.nav-brand-link:focus-visible{outline:2px solid rgba(255,255,255,.85);outline-offset:4px;border-radius:4px}.nav-brand h1{color:#fff;margin:0;font-size:1.5rem;font-weight:700;letter-spacing:-.5px}.nav-right{grid-column:3;display:flex;align-items:center;justify-content:flex-end;gap:.75rem}.nav-links{display:flex;gap:1rem;align-items:center}.nav-links a{color:#ffffffe6;text-decoration:none;padding:.5rem 1.25rem;border-radius:8px;font-weight:500;transition:all .2s ease}.nav-links a:hover{background:#ffffff26;color:#fff}.nav-links a.active{background:#ffffff40;color:#fff}.nav-run-status-card{display:flex;align-items:center;gap:.5rem;padding:.3rem .45rem .3rem .6rem;background:#ffffff12;border:1px solid rgba(255,255,255,.13);border-radius:8px;color:#ffffffe0;font-size:.78rem;white-space:nowrap;transition:border-color .2s}.nav-run-state-dot{width:7px;height:7px;border-radius:50%;flex-shrink:0}.nav-run-state-dot.running{background:#63b3ed;box-shadow:0 0 0 3px #63b3ed38;animation:nav-run-pulse 1.4s ease-in-out infinite}.nav-run-state-dot.completed{background:#68d391;box-shadow:0 0 0 3px #68d39133}.nav-run-state-dot.failed{background:#fc8181;box-shadow:0 0 0 3px #fc818133}.nav-run-status-title{font-size:.78rem;font-weight:500;color:#ffffffe0;letter-spacing:.01em}.nav-run-status-sep{color:#ffffff4d;font-size:.7rem}.nav-run-status-detail{font-size:.73rem;color:#ffffff73;max-width:180px;overflow:hidden;text-overflow:ellipsis}.nav-run-open-link{text-decoration:none;padding:.22rem .55rem;background:#ffffff1a;border:1px solid rgba(255,255,255,.18);border-radius:5px;color:#ffffffe6;font-size:.73rem;font-weight:600;transition:all .15s ease;margin-left:.2rem}.nav-run-open-link:hover{background:#ffffff2e;color:#fff}.nav-run-open-link:focus-visible,.nav-run-dismiss-btn:focus-visible{outline:2px solid rgba(255,255,255,.5);outline-offset:2px}.nav-run-dismiss-btn{display:flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:4px;border:1px solid rgba(255,255,255,.14);background:transparent;color:#fff6;font-size:.85rem;line-height:1;cursor:pointer;transition:all .15s ease;padding:0}.nav-run-dismiss-btn:hover{background:#ffffff1a;color:#fffc}.nav-run-status-card.running{border-color:#63b3ed4d}.nav-run-status-card.completed{border-color:#68d3914d}.nav-run-status-card.failed{border-color:#fc81814d}@keyframes nav-run-pulse{0%{transform:scale(.92);opacity:.75}50%{transform:scale(1);opacity:1}to{transform:scale(.92);opacity:.75}}@media(max-width:1100px){.nav-container{grid-template-columns:1fr 1fr;grid-template-rows:auto auto;gap:.5rem}.nav-brand{grid-column:1;justify-content:flex-start}.nav-status-area{grid-column:2;justify-content:flex-end}.nav-right{grid-column:1 / -1;justify-content:flex-start}}@media(max-width:640px){.nav-run-status-detail,.nav-run-status-sep{display:none}}
