*{box-sizing:border-box;margin:0;padding:0}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,SF Pro Text,sans-serif;font-size:15px;line-height:1.5;color:#1e293b;background:#f7f9fc}a{color:#1976d2}.demo{max-width:1300px;margin:0 auto;padding:60px 60px 80px}.demo-header h1{font-size:28px;font-weight:600;color:#333;margin-bottom:20px;line-height:1.2}.lede{color:#555;font-size:16px}.demo-links{margin:16px 0 4px;display:flex;flex-wrap:wrap;gap:20px}.btn{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;background:#1976d2;border:1px solid #1976d2;color:#fff;border-radius:8px;padding:8px 14px;font-size:13px;font-weight:500;text-decoration:none;box-shadow:0 1px 3px #0000001f;transition:background .15s,border-color .15s}.btn:hover{background:#0b5ed7;border-color:#0a58ca}.btn svg{flex-shrink:0}.custom-select{flex:1;min-width:0;position:relative}.custom-select-btn{align-items:center;background:#fff;border:1px solid #ccd4df;border-radius:6px;cursor:pointer;display:flex;font:inherit;font-size:15px;font-weight:400;gap:8px;height:46px;justify-content:space-between;padding:10px;text-align:left;width:100%}.custom-select-btn:focus{outline:2px solid #007bff;outline-offset:1px}.custom-select-text{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.custom-select-caret{color:#999;flex-shrink:0;font-size:11px}.custom-select-list{background:#fff;border:1px solid #ccd4df;border-radius:6px;box-shadow:0 8px 24px #0000001f;display:none;left:0;list-style:none;max-height:340px;overflow-y:auto;padding:4px 0;position:absolute;right:0;top:calc(100% + 4px);z-index:200}.custom-select-list.is-open{display:block}.custom-select-option{align-items:center;cursor:pointer;display:flex;gap:16px;justify-content:space-between;padding:8px 12px;font-weight:400}.custom-select-option:hover,.custom-select-option.is-active{background:#f0f3f8}.custom-select-option.is-active .option-name{color:#007bff}.option-name{color:#333;flex:1;font-size:14px;min-width:0}.option-cat{color:#bbb;flex-shrink:0;font-size:13px;white-space:nowrap}.demo-section{margin-top:44px}.demo-section h2{font-size:22px;font-weight:600;color:#333;margin-bottom:8px}.section-intro{color:#555;margin-bottom:16px;max-width:1000px}.card{background:#fff;border:1px solid #e5e9f0;border-radius:8px;box-shadow:0 8px 22px #0000000d;padding:18px}.notice{background:#fff7e6;border-left:4px solid #f0ad4e;border-radius:4px;color:#6b4b16;padding:10px 12px;margin:12px 0}.toolbar{display:flex;flex-wrap:wrap;gap:12px 24px;align-items:center;margin-bottom:12px}.toolbar.compact{align-items:center;gap:10px 16px}.field{display:flex;align-items:center;gap:12px;font-size:15px;font-weight:600;color:#333;white-space:nowrap;min-width:0}.field.grow{flex:1;min-width:280px}.field-label{font-size:13px;font-weight:600;color:#333}.field select{-webkit-appearance:none;appearance:none;font:inherit;font-weight:400;font-size:15px;height:46px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%23999' d='M5 7L0 2h10z'/%3E%3C/svg%3E") no-repeat right 10px center;border:1px solid #ccd4df;border-radius:6px;padding:10px 30px 10px 10px;min-width:220px;max-width:100%}.swap{height:46px;width:46px;border:1px solid #ccd4df;background:#fff;border-radius:6px;cursor:pointer;font-size:16px;color:#475569}.swap:hover{background:#f0f3f8}.check{display:inline-flex;align-items:center;gap:6px;font-size:13px;cursor:pointer}.check.muted{color:#94a3b8;cursor:default}.instruction{background:#f6f8fb;border-radius:6px;padding:10px 12px;margin-bottom:12px;font-size:14px}.score-wrap{overflow-x:auto;margin-bottom:14px}.score-table{border-collapse:separate;border-spacing:3px;font-size:13px}.score-table caption{text-align:left;font-size:13px;color:#555;padding-bottom:4px;caption-side:top}.score-table th{font-weight:600;text-align:left;padding:4px 10px 4px 2px;color:#475569}.score-table thead th{text-align:center}.score-table td{min-width:64px;text-align:center;padding:5px 8px;border-radius:4px;font-variant-numeric:tabular-nums;border:1px solid #edf0f5}.segmented{display:inline-flex;flex-wrap:wrap;border:1px solid #ccd4df;border-radius:6px;overflow:hidden}.segmented button{background:#fff;border:0;border-right:1px solid #ccd4df;color:#333;cursor:pointer;font:inherit;font-size:13px;height:34px;padding:0 12px}.segmented button:last-child{border-right:0}.segmented button[aria-pressed=true]{background:#1976d2;color:#fff}.segmented button:disabled{color:#b8c0cc;background:#fafbfc;cursor:not-allowed}.segmented button:focus-visible,.thumb:focus-visible{outline:2px solid #1976d2;outline-offset:-2px}.panel-caption{font-weight:600;color:#333;margin:6px 0 10px}.sim-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:start}.heatmap svg,.pca svg{width:100%;height:auto;display:block}.axis{font-size:10px;fill:#64748b}.axis-hi{fill:#0f172a;font-weight:700}.cell{cursor:pointer}.block-line line{stroke:#94a3b8;stroke-width:1;stroke-dasharray:3 3}.readout{font-size:13px;color:#475569;margin-top:6px;min-height:20px}.legend-ramp{display:flex;align-items:center;gap:2px;font-size:11px;color:#64748b;margin-top:4px}.legend-ramp i{width:18px;height:10px;display:inline-block;border:1px solid #e2e8f0}.legend-ramp span{margin:0 4px}.pca-frame{fill:#fff;stroke:#d8dde3}.pt{cursor:default}.pt-label{font-size:10px;fill:#475569;pointer-events:none}.pca figcaption{display:flex;flex-wrap:wrap;gap:14px;align-items:center;font-size:13px;color:#475569;margin-top:6px}.stat{font-variant-numeric:tabular-nums;background:#f1f5f9;border-radius:4px;padding:2px 8px}.shape-legend{display:inline-flex;gap:10px}.shape-legend span{display:inline-flex;align-items:center;gap:3px}.overview{margin-top:24px;border-top:1px solid #edf0f5;padding-top:14px}.overview h3{font-size:14px;font-weight:600;color:#333;margin-bottom:8px}.overview-grid{display:flex;flex-direction:column;gap:6px}.overview-row{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.overview-label{width:72px;font-size:12px;font-weight:600;color:#475569}.thumb{background:#fff;border:2px solid transparent;border-radius:6px;cursor:pointer;padding:3px;display:flex;flex-direction:column;align-items:center;font-size:10.5px;color:#475569;width:92px}.thumb svg{width:72px;height:72px;display:block}.thumb.on{border-color:#1976d2}.thumb:hover{background:#f0f3f8}.thumb-sil{color:#94a3b8}@media(max-width:960px){.demo{padding:24px 16px 60px}.sim-grid{grid-template-columns:1fr}.toolbar:not(.compact),.toolbar:not(.compact) .field{flex-direction:column;align-items:flex-start}.toolbar:not(.compact) .field,.field select,.custom-select{width:100%;min-width:0}}.trace-hierarchy-scroll{flex-grow:1;min-height:0;overflow:hidden;padding:.5rem 1.25rem 1.5rem}.trace-hierarchy-svg{width:100%;height:100%;cursor:grab}.trace-hierarchy-svg:active{cursor:grabbing}.mirrored-hierarchy-scroll{height:78vh;min-height:420px;border:1px solid #e2e8f0;border-radius:8px;position:relative}.mirrored-hierarchy-legend{position:absolute;top:.5rem;right:.75rem;z-index:1;display:flex;gap:.75rem;font-size:.75rem;font-weight:600}.hierarchy-row-label{font-size:11px;font-weight:700;fill:#475569;text-transform:uppercase;letter-spacing:.03em}.hierarchy-node-rect{fill:#fff;stroke:#cbd5e1;stroke-width:1}.hierarchy-node-rect.l1-tag-b,.hierarchy-node-rect.l1-tag-p,.hierarchy-node-rect.l1-tag-s,.hierarchy-node-rect.l1-tag-k,.hierarchy-node-rect.l1-tag-h,.hierarchy-node-rect.l1-tag-d,.hierarchy-node-rect.l1-tag-db,.hierarchy-node-rect.l1-tag-r,.hierarchy-node-rect.l1-tag-u{fill-opacity:.55}.hierarchy-node-rect.l1-tag-b{fill:#ccebc5;stroke:color-mix(in srgb,#ccebc5 85%,black)}.hierarchy-node-rect.l1-tag-p{fill:#fed9a6;stroke:color-mix(in srgb,#fed9a6 85%,black)}.hierarchy-node-rect.l1-tag-s{fill:#b3cde3;stroke:color-mix(in srgb,#b3cde3 85%,black)}.hierarchy-node-rect.l1-tag-k{fill:#8dd3c7;stroke:color-mix(in srgb,#8dd3c7 85%,black)}.hierarchy-node-rect.l1-tag-h{fill:#fbb4ae;stroke:color-mix(in srgb,#fbb4ae 85%,black)}.hierarchy-node-rect.l1-tag-d{fill:#fddaec;stroke:color-mix(in srgb,#fddaec 85%,black)}.hierarchy-node-rect.l1-tag-db{fill:#ffc;stroke:color-mix(in srgb,#ffffcc 85%,black)}.hierarchy-node-rect.l1-tag-r{fill:#decbe4;stroke:color-mix(in srgb,#decbe4 85%,black)}.hierarchy-node-rect.l1-tag-u{fill:#f2f2f2;stroke:color-mix(in srgb,#f2f2f2 85%,black)}.hierarchy-node-text{font-size:11px;fill:#1e293b}.hierarchy-node-text-primary{font-size:11px;font-weight:400;fill:#1e293b}.hierarchy-node-arrow{font-size:11px;font-weight:400;fill:#1d4ed8}.hierarchy-node-text-specific{font-size:9.5px;font-weight:500;fill:#a21caf}.mirrored-hierarchy-scroll{height:min(78vh,760px);background:#fff}.diagram-controls{position:absolute;top:.5rem;left:.75rem;z-index:1;display:flex;gap:4px}.diagram-controls button{background:#fff;border:1px solid #ccd4df;border-radius:5px;cursor:pointer;font:inherit;font-size:12px;height:26px;min-width:28px;padding:0 8px;color:#334155}.diagram-controls button:hover{background:#f0f3f8}.shape-legend span{white-space:nowrap}.leader{stroke:#b6bfca;stroke-width:.8}
