:root{font-family:"Times New Roman",Times,serif;color:#16252f;background:#f5f7f9;font-size:16px;--line:#dee5e9;--muted:#55656f;--microbe:#2d6b5f;--phenotype:#8d4257;--metabolite:#634a8a;--prediction:#1f4f7c;--known:#96262f}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;color:inherit;background:none;border:0}input{min-width:0}button:disabled,input:disabled{cursor:default;opacity:.45}[hidden]{display:none!important}button:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:2px solid #7ba4c0;outline-offset:2px}.masthead{height:56px;background:white;display:flex;align-items:center;justify-content:space-between;padding:0 23px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:#132430}.brand strong{font-size:22px;letter-spacing:-.6px}.brand>span{font-size:10px;letter-spacing:1.5px;color:var(--muted);margin-left:5px}.header-right{display:flex;align-items:center;gap:22px}.local-label{font-size:12px;color:var(--muted)}.text-button{font-size:13px;color:#4c7286}main{padding:16px 20px 12px}.query-bar{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;align-items:center;background:white;border:1px solid #d3dfe5;border-radius:3px;max-width:1140px;position:relative;z-index:5;box-shadow:0 2px 8px #17374704}.query-field{position:relative;padding:11px 18px}.query-field+.query-field{border-left:1px solid var(--line)}.query-field label{font-size:12px;font-weight:650;display:block;color:#2f4a57;margin-bottom:6px}.query-field label span{font-weight:400;color:#92a0a8;margin-left:5px}.query-input{display:flex;gap:8px;align-items:center}.query-input input{border:0;outline:0;background:transparent;width:100%;font-size:14px;color:#15242e;padding:0;line-height:21px;text-overflow:ellipsis}.query-input input::placeholder{color:#98a5ad}.input-clear{font-size:20px;padding:0 4px;color:#81949e;line-height:20px}.clear-query{margin:0 12px}.suggestions{position:absolute;top:calc(100% + 5px);left:0;right:0;z-index:20;max-height:330px;overflow:auto;background:white;border:1px solid #d1dde3;border-radius:3px;box-shadow:0 10px 30px #25425222;padding:5px}.suggestion{display:flex;width:100%;text-align:left;gap:12px;padding:10px 12px;border-radius:4px;align-items:center;line-height:1.4;font-size:13px}.suggestion:hover,.suggestion.active{background:#eaf2f7}.suggestion .entity{min-width:0;flex:1}.entity-id{font-family:"Times New Roman",Times,serif;font-size:.85em;color:#748592;overflow-wrap:anywhere}.suggestion .entity-id{display:block;font-size:11px}.suggestion small{font-size:10px;color:#81929c;max-width:85px;text-align:right}.no-match{font-size:13px;padding:15px;color:var(--muted)}.query-summary{min-height:37px;display:flex;align-items:center;gap:12px;font-size:12px;color:var(--muted);margin:0 1px}.query-summary p{margin:8px 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:70%}.query-summary #pair-summary{display:flex;gap:13px;flex-wrap:wrap;margin-left:auto;font-size:11px;white-space:nowrap}.query-summary #pair-label{border-left:1px solid #d6e0e5;padding-left:12px}.exploration-grid{display:grid;grid-template-columns:minmax(0,1fr) 286px;gap:14px;align-items:start}.graph-card,.ranking-card{background:#fff;border:1px solid var(--line);border-radius:3px;overflow:hidden}.graph-heading{display:flex;justify-content:space-between;align-items:center;padding:12px 15px;gap:14px;border-bottom:1px solid #edf1f3;min-height:56px}.graph-heading h1{font-size:15px;font-weight:650;margin:0;white-space:nowrap}.graph-heading h1 span{font-size:11px;font-weight:400;color:#84949d;margin-left:12px}.graph-controls{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.button{border:1px solid #d5dfe5;background:#fff;border-radius:3px;padding:7px 10px;font-size:12px;white-space:nowrap}.button:hover,.icon-button:hover{background:#eff4f6}.icon-button{border:1px solid var(--line);border-radius:4px;min-width:27px;height:28px;font-size:18px;line-height:1;background:white}.fade-label{font-size:10px;color:#8b9ba4;margin-left:9px}#background-opacity{width:65px;accent-color:#668f9c;height:12px}#opacity-value{font-size:10px;color:#7c8f99;width:25px}.graph-stage{position:relative;height:calc(100dvh - 246px);min-height:460px;max-height:1100px;background:white;overflow:hidden}#network,#network-overlay{position:absolute;inset:0;width:100%;height:100%;touch-action:none;user-select:none}#network-overlay{cursor:grab}#network-overlay:active{cursor:grabbing}.graph-loading{position:absolute;inset:0;display:grid;place-items:center;background:#ffffffed;color:var(--muted);font-size:14px;z-index:4}.graph-hint,.graph-status{position:absolute;bottom:10px;font-size:10px;color:#8f9da5;pointer-events:none}.graph-hint{left:15px}.graph-status{right:15px}.graph-tooltip{position:absolute;z-index:3;pointer-events:none;background:#203c4bec;color:white;padding:10px 12px;border-radius:3px;max-width:300px;font-size:12px;line-height:1.5;box-shadow:0 4px 14px #203c4b22}.graph-tooltip .entity-id{color:#a9c7d4;display:block}.legend{display:flex;flex-wrap:wrap;gap:10px 15px;padding:11px 15px;border-top:1px solid #edf1f3;font-size:10px;color:#7c8e99}.legend span{display:inline-flex;align-items:center;gap:5px}.legend i{display:inline-block;width:8px;height:8px;border-radius:100%}.legend .legend-line{width:17px;height:0;border-radius:0;border-top:1.5px solid #97a5af}.legend .prediction-line{border-top:1.5px dashed var(--prediction)}.legend .known-line{border-top:1.5px solid var(--known)}.ranking-heading{display:flex;align-items:center;justify-content:space-between;padding:17px 16px 12px}.ranking-heading p{font-size:9px;color:#8a9aa4;letter-spacing:1px;margin:0 0 7px}.ranking-heading h2{font-size:15px;margin:0;font-weight:650}.count-tag{font-size:11px;color:#758b97;padding:5px 6px;background:#eef3f6;border-radius:4px}.ranking-options{padding:0 13px 11px}select{appearance:none;border:1px solid var(--line);background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='m3 4 3 3 3-3' fill='none' stroke='%237e919c'/%3E%3C/svg%3E") no-repeat right 8px center;border-radius:3px;color:#657e8c;font-size:11px;padding:6px 25px 6px 8px;width:100%}.ranking-mode{display:flex;gap:4px}.ranking-mode button{font-size:11px;color:#7b8e9b;padding:6px 9px;border-radius:4px}.ranking-mode .active{background:#f0eaf5;color:#7b6295}.rank-columns{display:flex;justify-content:space-between;font-size:9px;letter-spacing:.5px;color:#94a1a9;padding:0 15px 9px;border-bottom:1px solid #e5ecef}.ranking-list{height:calc(100dvh - 420px);min-height:290px;max-height:960px;overflow:auto;overscroll-behavior:contain}.rank-row{display:flex;width:100%;align-items:flex-start;gap:9px;text-align:left;padding:11px 13px;border-bottom:1px solid #edf1f3;line-height:1.35}.rank-row:hover,.rank-row.selected{background:#f1f5f7}.rank-row .rank-body{flex:1;min-width:0}.rank-row .entity-id{display:block;font-size:10px;margin-bottom:3px}.rank-name{font-size:12px;font-weight:550;overflow-wrap:anywhere}.rank-subtitle{display:block;color:#8a9aa4;font-size:9px;margin-top:5px}.rank-score{font-size:11px;font-variant-numeric:tabular-nums;white-space:nowrap;padding-top:3px}.rank-bar{display:block;max-width:65px;height:3px;border-radius:2px;margin-top:6px}.rank-dot{display:inline-block;width:5px;height:5px;border-radius:50%;margin-right:4px;vertical-align:1px}.empty-state{padding:25px 18px;color:#81939e;font-size:13px;line-height:1.7}.empty-state h3{font-size:14px;color:#2f4a59;margin:0 0 12px}.empty-state button{margin-top:10px}.ranking-note{font-size:10px;line-height:1.5;color:#8c9ba4;padding:0 14px;margin:10px 0}.export-actions{display:flex;gap:7px;padding:11px 13px;border-top:1px solid #e5ecef}.node-detail{padding:14px;background:#f5f8fa;border-top:1px solid var(--line)}.node-detail .close-detail{float:right;font-size:17px;padding:0}.node-detail h3{font-size:13px;margin:5px 0;line-height:1.4;overflow-wrap:anywhere}.node-detail .entity-id{font-size:10px;display:block;margin-bottom:5px}.node-detail p{font-size:10px;line-height:1.5;color:#81939e;overflow-wrap:anywhere}.detail-grid{display:grid;grid-template-columns:1fr auto;gap:6px;font-size:10px;margin:12px 0}.detail-grid span{color:#80919c}.coverage-note{font-size:11px;line-height:1.5;padding:12px 14px;background:#f6f4ed;color:#81775f;border-top:1px solid #e8e5db}.error-banner{padding:12px 15px;margin:0 0 12px;color:#994941;background:#fff0ed;border:1px solid #efcac4;border-radius:6px;font-size:13px}dialog{border:1px solid #dce4e9;border-radius:4px;max-width:650px;width:90vw;padding:25px;color:#385363;box-shadow:0 20px 80px #1d344a33}dialog::backdrop{background:#152f4655}dialog h2{font-size:20px;margin:0}dialog h3{font-size:14px;margin-top:22px}dialog p{font-size:13px;line-height:1.7;color:#738794}.dialog-header{display:flex;justify-content:space-between;align-items:center}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media(min-width:1600px){.exploration-grid{grid-template-columns:minmax(0,1fr) 305px}.graph-stage{height:calc(100dvh - 240px)}}@media(max-width:1100px){.graph-heading{flex-wrap:wrap;gap:8px}.graph-stage{height:calc(100dvh - 270px)}.graph-controls{gap:4px}.fade-label{margin-left:3px}.query-summary #pair-summary{font-size:10px;gap:8px}.query-summary p{max-width:52%}}@media(max-width:850px){main{padding:12px}.exploration-grid{grid-template-columns:minmax(0,1fr) 250px;gap:10px}.graph-heading h1 span{display:none}.graph-controls .button{font-size:10px;padding:6px}.fade-label{display:none}.query-input input{font-size:12px}.query-field{padding:10px 13px}.graph-stage{min-height:510px}.brand>span{display:none}.rank-score{font-size:10px}.query-summary{display:block;min-height:40px}.query-summary p{max-width:100%;margin:8px 0}.query-summary #pair-summary{margin:0 0 8px}}@media(max-width:680px){.masthead{height:49px;padding:0 14px}.brand strong{font-size:20px}.local-label{display:none}.text-button{font-size:11px}.query-bar{grid-template-columns:minmax(0,1fr) minmax(0,1fr);max-width:none}.query-field{padding:10px}.query-field label{font-size:11px}.query-field label span{display:block;margin:0;font-size:9px}.query-input input{font-size:11px}.clear-query{display:none}.suggestions{width:calc(200% + 3px)}.query-field:nth-child(2) .suggestions{left:auto;right:0}.query-summary{font-size:10px;min-height:32px}.exploration-grid{display:block}.graph-heading{padding:10px;flex-wrap:nowrap}.graph-heading h1{font-size:12px}.graph-controls{justify-content:flex-end}.graph-controls .button{font-size:10px;padding:5px}.graph-controls .icon-button{min-width:23px;height:25px}#background-opacity{width:45px}#opacity-value{display:none}.graph-stage{height:68dvh;min-height:440px;max-height:850px}.graph-hint{font-size:9px}.graph-status{font-size:9px;bottom:25px;left:15px;right:auto}.legend{gap:8px 12px;font-size:9px;padding:10px}.ranking-card{margin-top:12px}.ranking-list{height:360px;min-height:250px}.ranking-heading{padding:15px}.rank-row .entity-id{display:inline;margin-right:7px;font-size:11px}.rank-name{font-size:13px}.rank-subtitle{font-size:10px}.rank-score{font-size:12px}.ranking-options{max-width:300px}.rank-columns{font-size:10px}}
#pair-label.known-label{color:var(--known)}#pair-label.predicted-label{color:var(--prediction)}
/* A full-window graph with a map-style, floating query panel. */
html,body{width:100%;height:100%;overflow:hidden;background:#fff}
.map-workspace{position:relative;width:100%;height:100dvh;padding:0;overflow:hidden}
.map-workspace>.graph-card{position:absolute;inset:0;border:0;border-radius:0;background:#fff;overflow:hidden}
.graph-stage{position:absolute;inset:0;width:100%;height:100%;min-height:0;max-height:none}
.graph-heading{position:absolute;top:18px;right:18px;z-index:3;display:block;padding:8px;border:1px solid #e2e8ec;border-radius:4px;min-height:0;background:#fffffff2;box-shadow:0 5px 20px #203b5010;max-width:calc(100% - 410px)}
.graph-heading h1{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.graph-controls{display:flex;justify-content:flex-end;gap:6px;align-items:center}
.graph-controls .button{padding:8px 10px;font-size:12px;border:0;border-radius:3px;background:#f4f7f9}
.graph-controls .icon-button{border:0;background:#f4f7f9;border-radius:3px;width:31px;height:31px;font-size:19px}
.graph-controls .fade-label{display:block;margin-left:8px;font-size:10px}
#background-opacity{width:60px}#opacity-value{display:block;font-size:10px;width:24px}
.graph-hint{bottom:18px;left:calc(360px + 48px);color:#91a0a9;font-size:10px}
.graph-status{bottom:39px;right:26px;font-size:10px;color:#99a6ae}
.legend{position:absolute;z-index:2;right:18px;bottom:63px;max-width:min(690px,calc(100% - 420px));border:1px solid #e4eaee;border-radius:4px;background:#fffffff0;box-shadow:0 4px 18px #203b5008;padding:12px 14px;font-size:10px;gap:11px 15px}
.floating-panel{position:absolute;left:20px;top:20px;z-index:6;width:360px;max-height:calc(100dvh - 40px);display:flex;flex-direction:column;background:#fffffff5;border:1px solid #ffffff;border-radius:3px;box-shadow:0 12px 50px #263c5228,0 1px 7px #203b5014;isolation:isolate}
.floating-panel .masthead{height:68px;min-height:68px;background:transparent;padding:0 19px;border:0;flex-shrink:0}
.floating-panel .brand{gap:9px}.floating-panel .brand strong{font-size:24px;letter-spacing:-.7px}.floating-panel 
.panel-toggle{display:grid;place-items:center;width:33px;height:33px;border-radius:50%;background:#f1f5f7;color:#6c8190}.panel-toggle:hover{background:#e5edf1}.panel-toggle svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.panel-collapsed .panel-toggle svg{transform:rotate(180deg)}
.panel-content{display:flex;flex-direction:column;min-height:0;max-height:calc(100dvh - 108px)}
.floating-panel .query-bar{display:grid;grid-template-columns:minmax(0,1fr);margin:0 15px;flex-shrink:0;border:1px solid #dce5eb;border-radius:4px;box-shadow:none;background:#f8fafc;max-width:none;z-index:5}
.floating-panel .query-field{padding:11px 12px}.floating-panel .query-field+.query-field{border-left:0;border-top:1px solid #e2e9ee}.floating-panel .query-field label{font-size:11px;margin-bottom:6px}.floating-panel .query-field label span{display:inline;margin-left:5px;font-size:10px}.floating-panel .query-input input{font-size:13px;line-height:20px}.floating-panel .clear-query{display:none}
.floating-panel .suggestions{left:-1px;right:-1px;top:calc(100% + 5px);width:auto;max-height:min(310px,38dvh);z-index:30;overscroll-behavior:contain;box-shadow:0 10px 28px #20394e26}.floating-panel .query-field:nth-child(2) .suggestions{left:-1px;right:-1px}
.floating-panel .query-summary{display:block;margin:0;padding:9px 17px 7px;min-height:0;flex-shrink:0;font-size:10px}.floating-panel .query-summary p{margin:0;max-width:100%;font-size:10px;line-height:1.6}.floating-panel .query-summary #pair-summary{margin:6px 0 0;display:flex;gap:7px;justify-content:flex-start;font-size:10px}.floating-panel .query-summary #pair-label{padding-left:7px}
.floating-panel .ranking-card{border:0;border-top:1px solid #edf1f4;border-radius:0 0 5px 5px;display:flex;flex-direction:column;min-height:0;margin:0;background:transparent;flex:1;overflow:hidden}
.floating-panel .ranking-heading{padding:15px 17px 12px;flex-shrink:0}.floating-panel .ranking-heading h2{font-size:15px}.floating-panel .ranking-heading p{font-size:9px;letter-spacing:.8px}.ranking-heading-actions{display:flex;align-items:center;gap:9px}#results-toggle{display:none}
.floating-panel .ranking-options{padding:0 15px 11px;flex-shrink:0;max-width:none}.floating-panel .rank-columns{padding:0 17px 10px;flex-shrink:0}.floating-panel .ranking-list{height:auto;min-height:100px;max-height:none;flex:1 1 250px;overflow:auto;scrollbar-width:thin}.floating-panel .rank-row{padding:11px 15px}.floating-panel .rank-row .entity-id{display:block;font-size:10px;margin-bottom:3px}.floating-panel .rank-name{font-size:13px}.floating-panel .rank-subtitle{font-size:10px}.floating-panel .rank-score{font-size:12px}.floating-panel .empty-state{font-size:13px;padding:18px 18px 22px}.floating-panel .node-detail{flex-shrink:0;max-height:220px;overflow:auto}.floating-panel .coverage-note{flex-shrink:0;max-height:90px;overflow:auto}.floating-panel .ranking-note{font-size:10px;margin:10px 0;padding:0 16px;flex-shrink:0}.floating-panel .export-actions{padding:11px 15px 14px;background:#ffffffb8;flex-shrink:0;gap:7px}.export-actions #about-open{margin-right:auto;font-size:11px;padding:5px 3px;color:#8b9ba5}.floating-panel .error-banner{margin:0 15px 10px;flex-shrink:0;font-size:12px}
.panel-collapsed .panel-content{display:none}.floating-panel.panel-collapsed{width:245px}.panel-collapsed .masthead{height:58px;min-height:58px}.panel-collapsed .brand strong{font-size:21px}.panel-collapsed 
@media(max-width:1000px){.floating-panel{width:325px;left:16px;top:16px;max-height:calc(100dvh - 32px)}.panel-content{max-height:calc(100dvh - 100px)}.graph-heading{top:16px;right:16px;max-width:calc(100% - 370px)}.graph-controls .fade-label,.graph-controls #opacity-value{display:none}.graph-controls{gap:5px}.graph-controls .button{font-size:11px;padding:7px 8px}.legend{right:16px;max-width:calc(100% - 372px);padding:10px 12px}.graph-hint{left:365px}}
@media(max-width:700px){.floating-panel{top:12px;left:12px;width:min(360px,calc(100% - 24px));max-height:calc(100dvh - 140px);border-radius:3px}.floating-panel .masthead{height:55px;min-height:55px;padding:0 15px}.floating-panel .brand strong{font-size:22px}.floating-panel .panel-content{max-height:calc(100dvh - 195px)}.floating-panel .query-bar{margin:0 12px;grid-template-columns:minmax(0,1fr)}.floating-panel .query-field{padding:9px 11px}.floating-panel .query-input input{font-size:12px}.floating-panel .query-field label{margin-bottom:4px;font-size:10px}.floating-panel .query-summary{padding:7px 14px;font-size:10px}.floating-panel .query-summary p{font-size:9px;white-space:nowrap}.floating-panel .query-summary #pair-summary{font-size:9px}.floating-panel .ranking-heading{padding:10px 14px}.floating-panel .ranking-heading p{display:none}.floating-panel .ranking-heading h2{font-size:13px}.floating-panel .ranking-card{border-radius:0 0 5px 5px}.floating-panel .ranking-heading .count-tag{font-size:10px}#results-toggle{display:block;font-size:11px;padding:5px 0}.floating-panel:not(.results-expanded) .ranking-options,.floating-panel:not(.results-expanded) .rank-columns,.floating-panel:not(.results-expanded) .ranking-list,.floating-panel:not(.results-expanded) .node-detail,.floating-panel:not(.results-expanded) .coverage-note,.floating-panel:not(.results-expanded) .ranking-note,.floating-panel:not(.results-expanded) .export-actions{display:none}.floating-panel.results-expanded .ranking-list{min-height:70px;flex-basis:180px}.floating-panel .node-detail{max-height:145px}.floating-panel .export-actions{padding:8px 12px}.floating-panel .ranking-note{margin:7px 0;font-size:9px}.graph-heading{top:auto;bottom:94px;right:12px;left:auto;max-width:calc(100% - 24px);border-radius:4px;padding:6px}.graph-controls .button{font-size:11px;padding:7px 8px}.graph-controls .icon-button{width:28px;height:28px}.graph-controls .fade-label,#opacity-value{display:none}#background-opacity{width:49px}.legend{bottom:12px;left:12px;right:12px;max-width:none;gap:8px 12px;padding:10px 12px;font-size:9px;border-radius:4px}.graph-hint{display:none}.graph-status{left:15px;right:auto;bottom:144px;font-size:9px}.floating-panel.panel-collapsed{width:230px}.panel-collapsed .masthead{height:52px;min-height:52px}.floating-panel .suggestions{max-height:min(240px,36dvh)}}
@media(max-height:620px) and (min-width:701px){.floating-panel .masthead{height:54px;min-height:54px}.panel-content{max-height:calc(100dvh - 94px)}.floating-panel .query-field{padding:8px 11px}.floating-panel .ranking-heading{padding:10px 15px}.floating-panel .query-summary p{display:none}.floating-panel .ranking-list{min-height:70px}.floating-panel .ranking-note{display:none}}
/* All query, view and visibility controls share the left floating panel. */
.graph-settings{flex-shrink:0;border-top:1px solid #e7edf1;padding:0 15px 10px;background:transparent}
.display-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;padding:10px 1px 9px;text-align:left;font-size:12px;font-weight:600;color:#476170}
.display-toggle svg{width:16px;height:16px;fill:none;stroke:#8799a5;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;transition:transform .15s}
.display-toggle[aria-expanded=false] svg{transform:rotate(-90deg)}
#display-options{max-height:36dvh;overflow:auto;scrollbar-width:thin}
.graph-settings .graph-controls{justify-content:flex-start;flex-wrap:nowrap;gap:5px}
.graph-settings .graph-controls .button{font-size:11px;padding:8px 9px;flex:1}
.graph-settings .graph-controls .icon-button{width:29px;height:29px;flex-shrink:0}
.background-control{display:flex;align-items:center;gap:10px;padding:10px 1px 8px;color:#81939f;font-size:11px}
.background-control #background-opacity{width:auto;flex:1;min-width:50px;margin:0;height:13px}
.background-control #opacity-value{display:block;width:28px;font-size:11px;text-align:right}
.node-types{border:0;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px 9px}
.node-types legend{padding:2px 0 8px;font-size:10px;color:#8a9aa5}
.node-type-option{display:flex;align-items:center;gap:6px;cursor:pointer;font-size:11px;color:#506a7a;white-space:nowrap;user-select:none}
.node-type-option input{width:14px;height:14px;margin:0;accent-color:var(--type-colour);cursor:pointer;flex-shrink:0}
.node-type-option:has(input:not(:checked)){color:#9da9b2}
.graph-settings .legend{position:static;display:flex;max-width:none;width:auto;inset:auto;padding:12px 0 0;gap:7px 12px;background:transparent;border:0;border-radius:0;box-shadow:none;font-size:9px;line-height:1.2}
.graph-settings .legend span{gap:5px}.graph-settings .legend .legend-line{width:14px}
.graph-settings .graph-status{position:static;font-size:9px;color:#95a2ab;margin:9px 0 0;line-height:1.5;pointer-events:auto}
@media(max-width:700px){
  .floating-panel{max-height:calc(100dvh - 24px)}
  .panel-content{max-height:calc(100dvh - 79px)}
  .graph-settings{padding:0 13px 9px}
  .graph-settings .graph-controls .button{font-size:11px}
  .graph-settings .graph-controls .icon-button{width:29px;height:29px}
  .graph-settings .legend{font-size:9px}
  .floating-panel.results-expanded .ranking-list{min-height:70px;flex-basis:180px}
}

.floating-panel .ranking-card{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
/* Night-sky graph: real nodes carry the light; the controls stay quiet. */
html[data-theme="night"]{color-scheme:dark;color:#dce7f2;--line:#263445;--muted:#90a3b7;--microbe:#44b4a0;--phenotype:#d4739a;--metabolite:#9f7ed8;--prediction:#3e85d4;--known:#d4525f}
html[data-theme="night"],html[data-theme="night"] body,html[data-theme="night"] .map-workspace,html[data-theme="night"] .map-workspace>.graph-card,html[data-theme="night"] .graph-stage{background:#060a12}
html[data-theme="night"] .floating-panel{background:#101923f5;border:1px solid #2c3c4c;box-shadow:0 18px 55px #0009,0 1px 0 #ffffff08}
html[data-theme="night"] .brand{color:#ecf4ff}
html[data-theme="night"] 
html[data-theme="night"] .panel-toggle{color:#a0b7ca;background:#1d2b39}
html[data-theme="night"] .panel-toggle:hover{background:#2c4053}
html[data-theme="night"] .floating-panel .query-bar{border-color:#2c3b4b;background:#141f2c}
html[data-theme="night"] .floating-panel .query-field+.query-field{border-color:#2c3b4b}
html[data-theme="night"] .floating-panel .query-field label{color:#c3d3e3}
html[data-theme="night"] .query-field label span{color:#7e93a7}
html[data-theme="night"] .floating-panel .query-input input{color:#ecf3fb}
html[data-theme="night"] .query-input input::placeholder{color:#71869c}
html[data-theme="night"] .input-clear{color:#9baec0}
html[data-theme="night"] .suggestions{background:#13202e;border-color:#34495c;box-shadow:0 14px 35px #0009}
html[data-theme="night"] .suggestion:hover,html[data-theme="night"] .suggestion.active{background:#23374b}
html[data-theme="night"] .entity-id{color:#90a9c0}
html[data-theme="night"] .suggestion small,html[data-theme="night"] .no-match{color:#8098ad}
html[data-theme="night"] .floating-panel .query-summary{color:#92a9bc}
html[data-theme="night"] .query-summary #pair-label{border-color:#344354}
html[data-theme="night"] .graph-settings{border-color:#273544}
html[data-theme="night"] .display-toggle{color:#c7d8e8}
html[data-theme="night"] .display-toggle svg{stroke:#829bb2}
html[data-theme="night"] .graph-settings .graph-controls .button,html[data-theme="night"] .graph-settings .graph-controls .icon-button{background:#1c2a39;color:#c7d9e9}
html[data-theme="night"] .graph-settings .graph-controls .button:hover,html[data-theme="night"] .graph-settings .graph-controls .icon-button:hover{background:#2c4157}
html[data-theme="night"] .background-control{color:#91a8bc}
html[data-theme="night"] .background-control #background-opacity{accent-color:#7dafa8}
html[data-theme="night"] .node-types legend{color:#7e98ae}
html[data-theme="night"] .node-type-option{color:#c1d3e3}
html[data-theme="night"] .node-type-option:has(input:not(:checked)){color:#637b90}
html[data-theme="night"] .graph-settings .legend{color:#8fa6bb}
html[data-theme="night"] .legend .legend-line{border-top-color:#718398}
html[data-theme="night"] .legend .prediction-line{border-top-color:var(--prediction)}
html[data-theme="night"] .legend .known-line{border-top-color:var(--known)}
html[data-theme="night"] .graph-settings .graph-status{color:#718ca4}
html[data-theme="night"] .graph-hint{color:#50677c}
html[data-theme="night"] .floating-panel .ranking-card{border-color:#273544}
html[data-theme="night"] .ranking-heading h2{color:#e2edf7}
html[data-theme="night"] .ranking-heading p{color:#728fa8}
html[data-theme="night"] .count-tag{background:#1b2c3c;color:#aec3d7}
html[data-theme="night"] .rank-columns{color:#7892aa;border-color:#293b4c}
html[data-theme="night"] select{background-color:#172433;border-color:#304254;color:#c1d3e4}
html[data-theme="night"] .ranking-mode button{color:#90a6bb}
html[data-theme="night"] .ranking-mode .active{background:#302a43;color:#c9b3ea}
html[data-theme="night"] .rank-row{border-color:#223141}
html[data-theme="night"] .rank-row:hover,html[data-theme="night"] .rank-row.selected{background:#1d3043}
html[data-theme="night"] .rank-name{color:#d9e5f1}
html[data-theme="night"] .rank-subtitle{color:#829bb0}
html[data-theme="night"] .rank-score{color:#bdd1e3}
html[data-theme="night"] .empty-state{color:#92a8bb}
html[data-theme="night"] .empty-state h3{color:#cbdae8}
html[data-theme="night"] .button{border-color:#35495d;background:#1c2a39;color:#c5d6e7}
html[data-theme="night"] .button:hover,html[data-theme="night"] .icon-button:hover{background:#2b4054}
html[data-theme="night"] .floating-panel .ranking-note{color:#7891a7}
html[data-theme="night"] .floating-panel .export-actions{border-color:#293b4b;background:#111d2a}
html[data-theme="night"] .export-actions #about-open{color:#94acc1}
html[data-theme="night"] .text-button{color:#9ab9d3}
html[data-theme="night"] .node-detail{background:#162535;border-color:#304458}
html[data-theme="night"] .node-detail p{color:#92a9bf}
html[data-theme="night"] .detail-grid span{color:#91aac0}
html[data-theme="night"] .coverage-note{background:#2b2b23;color:#c8be96;border-color:#494638}
html[data-theme="night"] .graph-tooltip{background:#101e2ff5;color:#e3effb;border:1px solid #34516c;box-shadow:0 5px 22px #0008}
html[data-theme="night"] .graph-tooltip .entity-id{color:#9ec4e2}
html[data-theme="night"] .graph-loading{background:#060a12ee;color:#9ab1c5}
html[data-theme="night"] .error-banner{background:#35232a;border-color:#7e434e;color:#efb1b8}
html[data-theme="night"] dialog{background:#101d2c;color:#d5e3ef;border-color:#324a5f;box-shadow:0 25px 90px #000b}
html[data-theme="night"] dialog p{color:#a2b9cd}
html[data-theme="night"] dialog::backdrop{background:#03060a99}

.display-header{display:flex;align-items:center;gap:8px}
.display-header .display-toggle{width:auto;flex:1;gap:8px}
.display-header .display-toggle svg{margin-right:auto}
.theme-switch{display:flex;align-items:center;gap:2px;padding:3px;background:#eff3f6;border-radius:3px}
.theme-switch button{display:flex;align-items:center;justify-content:center;gap:4px;padding:4px 7px;border-radius:3px;font-size:10px;color:#8a9aa6}
.theme-switch button svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.theme-switch button[aria-pressed=true]{color:#365566;background:#fff;box-shadow:0 1px 4px #25405212}
html[data-theme="night"] .theme-switch{background:#1b2a39}
html[data-theme="night"] .theme-switch button{color:#7f9bb4}
html[data-theme="night"] .theme-switch button[aria-pressed=true]{background:#31485f;color:#def0ff;box-shadow:0 1px 6px #0004}

/* Keep the primary panel focused on query, node types and results. */
:root{font-family:"Times New Roman",Times,serif}
button,input,select,textarea,.entity-id{font-family:"Times New Roman",Times,serif}
.floating-panel .masthead{padding:0 15px;height:62px;min-height:62px}
.floating-panel .brand{gap:7px}.floating-panel .brand strong{font-size:23px;letter-spacing:-.5px}.floating-panel 
.floating-panel .header-right{gap:8px}.theme-switch button{padding:4px 6px}.panel-toggle{width:28px;height:28px}
.floating-panel .query-summary p,.ranking-heading #ranking-eyebrow,.floating-panel .ranking-note{display:none}
.floating-panel .query-summary{padding:2px 16px 10px}.floating-panel .query-summary #pair-summary{font-size:10px}
.graph-settings{margin-top:14px;padding:12px 15px 0}
.node-types legend{font-size:11px;color:#718896;padding:0 0 9px}
.node-types{gap:10px 9px}.node-type-option{font-size:12px;gap:6px}
.graph-settings .legend{font-size:10px;padding-top:12px;gap:8px 15px}
.display-header{margin-top:8px}.display-header .display-toggle{font-size:11px;font-weight:400;color:#7c929f;padding:9px 0 11px}
.display-header .display-toggle svg{width:13px;height:13px;margin-right:0}
#display-options{padding-bottom:12px;max-height:40dvh}
.pool-controls{display:flex;align-items:center;gap:12px;padding:7px 0}
.pool-label{font-size:11px;color:#8095a4;white-space:nowrap}.pool-controls select{flex:1;font-size:11px}
.settings-footer{padding:5px 0 0}.settings-footer .text-button{font-size:11px;padding:0;color:#8197a6}
.floating-panel .ranking-heading{padding:14px 15px 10px}.floating-panel .ranking-heading h2{font-size:15px;font-weight:600}
.floating-panel .rank-columns{font-size:10px;letter-spacing:0;padding-top:2px}
.floating-panel .export-actions{justify-content:flex-end;padding:10px 14px}.floating-panel .export-actions .button{font-size:11px;padding:5px 12px}
.floating-panel .ranking-list{flex-basis:230px;min-height:90px}.ranking-mode button{font-size:11px}
.panel-collapsed .theme-switch{display:none}
html[data-theme="night"] .display-header .display-toggle{color:#91a9bd}
@media(max-width:1000px){.floating-panel .brand strong{font-size:21px}.floating-panel .floating-panel .header-right{gap:6px}.theme-switch button{padding:4px 5px}.theme-switch button svg{display:none}}
@media(max-width:700px){.floating-panel .masthead{height:55px;min-height:55px}.graph-settings{padding:10px 13px 0;margin-top:12px}.node-type-option{font-size:11px}.floating-panel .ranking-list{min-height:80px}.panel-content{max-height:calc(100dvh - 79px)}}

.theme-switch #theme-toggle{color:#365566;background:#fff;box-shadow:0 1px 4px #25405212}
html[data-theme="night"] .theme-switch #theme-toggle{background:#31485f;color:#def0ff;box-shadow:0 1px 6px #0004}

/* Motion & polish (2026-11-23): frosted panel, micro-interactions and entrances. Reduced motion turns them off. */
:root{--ease-out:cubic-bezier(.2,.8,.2,1);--ease-spring:cubic-bezier(.3,1.45,.5,1);--glass:rgba(253,253,252,.96);--glass-border:#c9d2d6;--ring:rgba(57,121,184,.16)}
html[data-theme="night"]{--glass:rgba(13,19,26,.97);--glass-border:#2b3a47;--ring:rgba(93,158,233,.24)}
.floating-panel{background:var(--glass);-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px);border:1px solid var(--glass-border);box-shadow:0 6px 20px rgba(22,37,47,.10)}
html[data-theme="night"] .floating-panel{background:var(--glass);border-color:var(--glass-border);box-shadow:0 6px 22px rgba(0,0,0,.5)}
.floating-panel .query-bar{background:rgba(248,250,252,.6);transition:border-color .2s,box-shadow .25s var(--ease-out),background-color .2s}
.floating-panel .query-bar:focus-within{border-color:#a9c4d6;box-shadow:0 0 0 4px var(--ring);background:rgba(255,255,255,.92)}
html[data-theme="night"] .floating-panel .query-bar{background:rgba(20,31,44,.55)}
html[data-theme="night"] .floating-panel .query-bar:focus-within{border-color:#3f6b92;background:rgba(18,30,44,.92)}
.floating-panel .query-field label{transition:color .2s}
.floating-panel .query-field:focus-within label,html[data-theme="night"] .floating-panel .query-field:focus-within label{color:var(--prediction)}
.floating-panel .export-actions,html[data-theme="night"] .floating-panel .export-actions{background:transparent}
.floating-panel .ranking-card,.suggestions,#display-options{scrollbar-color:rgba(110,135,155,.35) transparent}

/* Micro-interactions */
.button,.icon-button,.panel-toggle,.text-button,.theme-switch button,.ranking-mode button,.display-toggle,.input-clear,.suggestion,.rank-row,.node-type-option{transition:background-color .18s ease,color .18s ease,box-shadow .2s ease,transform .16s var(--ease-out),opacity .18s}
.button:active:not(:disabled),.icon-button:active:not(:disabled),.panel-toggle:active,.theme-switch button:active,.ranking-mode button:active{transform:scale(.95)}
.button:hover:not(:disabled){box-shadow:0 2px 8px rgba(30,54,78,.08)}
.panel-toggle svg{transition:transform .42s var(--ease-out)}
.display-toggle svg,.display-header .display-toggle svg{transition:transform .28s var(--ease-out)}
#theme-toggle svg:not([hidden]){animation:icon-swap .55s var(--ease-spring)}
@keyframes icon-swap{from{opacity:0;transform:rotate(-120deg) scale(.4)}}
.rank-row.selected{box-shadow:inset 3px 0 0 var(--prediction)}

/* Node-type chips: custom checkboxes in each type colour */
.node-type-option input{appearance:none;-webkit-appearance:none;width:15px;height:15px;border-radius:3px;border:1.5px solid var(--type-colour);background:transparent center/10px 10px no-repeat;transition:background-color .2s ease,box-shadow .2s ease}
.node-type-option input:checked{background-color:var(--type-colour);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5.2 4.1 7.2 8 3' fill='none' stroke='white' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");animation:check-pop .34s var(--ease-spring)}
html[data-theme="night"] .node-type-option input:checked{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5.2 4.1 7.2 8 3' fill='none' stroke='%230b1420' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
.node-type-option:hover input:not(:disabled){box-shadow:0 0 0 4px color-mix(in srgb,var(--type-colour) 20%,transparent)}
@keyframes check-pop{from{transform:scale(.7)}}

/* Entrances */
.suggestions:not([hidden]){transform-origin:top center;animation:drop-in .18s var(--ease-out)}
@keyframes drop-in{from{opacity:0;transform:translateY(-4px) scale(.985)}}
.graph-tooltip{border-radius:3px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.graph-tooltip:not([hidden]){animation:tip-in .16s var(--ease-out)}
@keyframes tip-in{from{opacity:0;transform:translateY(3px) scale(.97)}}
.ranking-card:not([hidden]){animation:rise-in .42s var(--ease-out)}
.node-detail:not([hidden]),.query-summary:not([hidden]){animation:rise-in .3s var(--ease-out)}
@keyframes rise-in{from{opacity:0;transform:translateY(6px)}}
.ranking-list.animate-in .rank-row{animation:row-in .45s var(--ease-out) both;animation-delay:calc(min(var(--i,0),20) * 18ms)}
@keyframes row-in{from{opacity:0;transform:translateX(-6px)}}
.rank-bar{transform-origin:left center}
.ranking-list.animate-in .rank-bar{animation:bar-grow .7s var(--ease-out) both;animation-delay:calc(min(var(--i,0),20) * 18ms + 120ms)}
@keyframes bar-grow{from{transform:scaleX(0)}}
dialog[open]{animation:dialog-in .34s var(--ease-out)}
dialog[open]::backdrop{animation:fade-in .3s ease;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
@keyframes dialog-in{from{opacity:0;transform:translateY(12px) scale(.97)}}
@keyframes fade-in{from{opacity:0}}

/* Loading: the MicroLACE mark draws itself, then the graph fades in while the camera settles */
.graph-loading{transition:opacity .6s ease;background:radial-gradient(ellipse at 50% 45%,#fff 0%,#f2f6f9 75%)}
html[data-theme="night"] .graph-loading{background:radial-gradient(ellipse at 50% 45%,#0d1524 0%,#060a12 75%)}
.graph-loading.is-done{opacity:0;pointer-events:none}
.loader{display:flex;flex-direction:column;align-items:center;gap:14px;color:var(--muted);font-size:13px;letter-spacing:.2px}

.loader-bar{position:relative;width:120px;height:2px;border-radius:2px;background:color-mix(in srgb,var(--microbe) 16%,transparent);overflow:hidden}
.loader-bar i{position:absolute;inset:0;width:40%;border-radius:inherit;background:linear-gradient(90deg,transparent,var(--microbe),transparent);animation:bar-slide 1.3s ease-in-out infinite}
@keyframes bar-slide{from{transform:translateX(-100%)}to{transform:translateX(260%)}}
#network,#network-overlay{transition:opacity .9s ease}
body:not(.graph-ready) #network,body:not(.graph-ready) #network-overlay{opacity:0}
.graph-hint{padding:5px 10px;border-radius:999px;background:rgba(255,255,255,.6);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
html[data-theme="night"] .graph-hint{background:rgba(10,16,26,.5)}

/* Day/Night circular reveal (View Transitions) */
::view-transition-old(root),::view-transition-new(root){animation:none;mix-blend-mode:normal}

@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* Search results retain the existing dropdown layout and motion. */
.suggestion-count{font-size:11px;color:var(--muted);margin:0;padding:7px 12px}
