/* One visual shell for the native H WSI viewer and the M IMC viewer. */
:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;color:#152a3d;background:#e8edf1}
.topbar{height:62px;padding:0 26px;background:#0b1d2c;color:#eaf5fa;border-bottom:1px solid #344a5c;display:flex;align-items:center;justify-content:space-between}
.brand{display:flex;align-items:center;gap:12px;font-size:13px;color:#a9bac7}
.brand strong{font-size:23px;color:#fff;letter-spacing:-1px}
.brand-icon{color:#71d9dd;font-size:25px}
.brand-divider{height:22px;width:1px;background:#416071;margin:0 5px}
.topright{font-size:12px;color:#a9c0cf;display:flex;align-items:center;gap:10px}
.status-dot{width:7px;height:7px;border-radius:50%;background:#6ee6b8;box-shadow:0 0 0 4px #6ee6b824}
.private{border:1px solid #446275;border-radius:4px;padding:6px 8px;margin-left:12px;font-size:10px;letter-spacing:1px;color:#d8e7ee}
.casebar{height:auto;min-height:74px;padding:12px 25px;background:#f8fafb;border-bottom:1px solid #d6e0e6;display:flex;align-items:center;justify-content:initial;gap:24px}
.casebar .case-name{display:flex;align-items:baseline;gap:12px;min-width:0;flex:1}
.case-name small{font-size:10px;font-weight:800;letter-spacing:1.2px;color:#45738b}
.case-name strong{font-size:20px;letter-spacing:-.6px;white-space:nowrap}
.case-name span{font-size:12px;color:#718492;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.case-name .slide-outcome{display:inline-flex;align-items:center;flex:none;align-self:center;white-space:nowrap;overflow:visible;text-overflow:clip;padding:5px 9px;border-radius:999px;border:1px solid;font-size:11px;font-weight:750;letter-spacing:.1px}
.case-name .slide-outcome.deceased{color:#a85543;background:#fff0ea;border-color:#e9c0b2}
.case-name .slide-outcome.censored{color:#29734f;background:#eaf7ef;border-color:#acd8bb}
.case-name .slide-outcome[hidden]{display:none}
.mode-toggle,.case-selector{display:flex;gap:3px;background:#e5edf1;border:1px solid #d5e0e5;padding:3px;border-radius:7px;flex:none}
.mode-toggle button,.case-selector button{border:0;background:transparent;color:#647a8b;font-weight:700;font-size:12px;padding:9px 14px;border-radius:5px;cursor:pointer;white-space:nowrap}
.mode-toggle button.selected,.case-selector button.selected{background:#fff;color:#17536d;box-shadow:0 1px 5px #2840511f}
.layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(390px,.9fr);height:calc(100vh - 136px);min-height:640px;gap:12px;padding:12px}
.viewer,.report{background:#fff;border:1px solid #cfdae1;border-radius:10px;overflow:hidden;box-shadow:0 8px 28px #173a4b10}
.viewer{display:flex;flex-direction:column}
.section-head,.viewer-head{height:93px;min-height:93px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:15px 20px;border-bottom:1px solid #e0e7eb}
.eyebrow{font-size:10px;font-weight:800;color:#5c8ba0;letter-spacing:1.6px}
.section-head h1,.viewer-head h1{font-size:21px;line-height:1.15;margin:6px 0 3px;letter-spacing:-.5px}
.section-head p,.viewer-head p{font-size:11px;margin:0;color:#789}
.zoom-controls,.controls{display:flex;align-items:center;gap:4px;flex:none}
.zoom-controls button,.controls button{border:1px solid #d8e2e7;background:#f8fafb;border-radius:5px;height:30px;min-width:31px;color:#3c6274;cursor:pointer;font-weight:700;padding:0 8px}
.zoom-controls span,.controls span{font-size:11px;min-width:43px;text-align:center;color:#657b89}
.viewport{flex:1;min-height:300px;background:#f5f5f3;position:relative;overflow:hidden;cursor:grab}
.viewport:active{cursor:grabbing}
.viewport-help,.scale-note,.resolution{position:absolute;bottom:15px;background:#102936d9;color:#eef8f9;padding:7px 10px;border-radius:5px;font-size:10px;pointer-events:none}
.viewport-help{left:15px}.scale-note,.resolution{right:15px}
.layerbar{min-height:144px;padding:15px 20px 18px;border-top:1px solid #dce6ea;background:#fbfcfd}
.layer-head,.layerbar-title{font-size:10px;font-weight:800;letter-spacing:1px;color:#36586a;display:flex;justify-content:space-between}
.layer-head span,.layerbar-title span{font-weight:500;letter-spacing:0;color:#8b9da8}
.layers{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin:13px 0 8px}
.layers label{font-size:12px;color:#38596b;display:flex;align-items:center;gap:6px;cursor:pointer}
.layers input{accent-color:#23869c}
.layers .graph,.graph-toggle{font-weight:750;color:#12647a;padding:3px 7px;border:1px solid #9cced5;border-radius:5px;background:#eefafb}
.legend,.layer-hint{font-size:10px;color:#758b97}
.report{display:flex;flex-direction:column}
.report-top,.report-head{padding:20px 21px 16px;border-bottom:1px solid #e0e8ec;display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.report-top h2,.report-head h2{margin:7px 0 4px;font-size:21px;letter-spacing:-.6px}
.report-top p,.report-head p{font-size:11px;color:#718793;margin:0;line-height:1.5}
.badge{font-size:9px;font-weight:800;letter-spacing:.7px;border:1px solid #b8dedc;color:#1d7a78;background:#effaf8;padding:6px;border-radius:4px;white-space:nowrap}
.m-snapshot,.report-snapshot{display:flex;flex-wrap:wrap;gap:7px 13px;padding:9px 21px;background:#eef7f8;border-bottom:1px solid #d5e8eb;color:#245b66;font-size:12px;font-weight:700;line-height:1.3}
.m-snapshot span+span,.report-snapshot span+span{border-left:1px solid #b9d9dd;padding-left:13px}
.report-content,.report-scroll{overflow-y:auto;flex:1}
.report .report-section{padding:18px 21px;border-bottom:1px solid #e7edf0}
.section-title{display:flex;align-items:center;justify-content:flex-start;gap:9px;margin-bottom:14px;font-size:13px;font-weight:800;color:#203e51}
.section-title span{font-size:10px;color:#88a1ae;font-weight:800}
.section-title strong{font-size:13px;color:#203e51}
.section-title small{margin-left:auto;font-size:10px;color:#95a5af}
.candidate-list,.candidates{display:flex;flex-direction:column;gap:6px}
.candidate{display:flex;align-items:center;width:100%;border:1px solid #e1e9ed;background:#fff;text-align:left;border-radius:7px;padding:9px;gap:10px;cursor:pointer}
.candidate:hover{border-color:#8bc1ca}.candidate.selected{background:#eff8f9;border-color:#71b8c4}
.candidate i,.candidate .swatch{width:11px;height:28px;border-radius:3px;flex:none}
.candidate b,.candidate .name b{display:block;font-size:11px;color:#24485b}
.candidate small,.candidate .name small{display:block;color:#79909d;font-size:10px;margin-top:2px}
.candidate em{font-size:12px;color:#2d4d5e}
.candidate .name{min-width:0;flex:1}.candidate .metric{min-width:80px;flex:none;text-align:right}.candidate .metric strong{font-size:12px;color:#2d4d5e}.candidate .metric small{font-size:9px;color:#90a0a9}
.selected-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.selected-heading h3{font-size:17px;margin:0 0 5px}.selected-heading p{font-size:11px;color:#6d8491;margin:0 0 13px;line-height:1.5}.direction-pill{border-radius:15px;font-size:10px;padding:5px 8px;font-weight:800;white-space:nowrap}.direction-pill.good{background:#eaf7ed;color:#4d8c63}.direction-pill.bad{background:#fff0e9;color:#bd694e}
.patch,.patch-box{height:158px;background:#ebedef;position:relative;border-radius:6px;overflow:hidden}
.patch img,.patch-box img{height:100%;width:100%;object-fit:cover}
.patch span,.patch-caption{position:absolute;left:8px;bottom:8px;background:#102a39d9;color:#fff;padding:4px 7px;border-radius:3px;font-size:9px}
.composition-head{font-size:10px;font-weight:800;color:#47697a;display:flex;justify-content:space-between;margin:15px 0 9px;text-transform:uppercase;letter-spacing:.4px}
.composition-head span{color:#94a6b0;text-transform:none;font-weight:500;letter-spacing:0}
.composition-row,.m-composition-row{display:grid;grid-template-columns:minmax(112px,145px) minmax(65px,1fr) 42px;gap:8px;align-items:center;font-size:12px;line-height:1.3;margin:7px 0;color:#68808d}
.composition-row span{overflow-wrap:anywhere}.composition-row b{text-align:right;color:#2d4d5e}
.note,.evidence-note{border-left:3px solid #78a9ba;background:#f4f9fa;padding:10px;font-size:11px;line-height:1.5;color:#4f6d7c;margin:0 0 13px}
.interpretation-row,.biology-item{background:#f7fafb;border:1px solid #e4ecef;border-radius:5px;padding:10px 11px;font-size:11px;display:flex;justify-content:space-between;gap:12px}
.interpretation-row{margin:6px 0}.interpretation-row b,.biology-item strong{color:#284d60}.interpretation-row span,.biology-item span{color:#567e8b;text-align:right}
.provenance{background:#fafcfd}.provenance p,#source-note{font-size:10px;color:#78909d;line-height:1.6}
@media(max-width:1080px){.layout{grid-template-columns:1fr;height:auto}.viewer{height:690px}.report{height:650px}.case-name span{display:none}}
@media(max-width:650px){.topbar{padding:0 12px}.brand>span:last-child,.topright{display:none}.casebar{padding:10px;flex-wrap:wrap;gap:8px}.casebar .case-name{width:100%;flex-basis:100%;flex-wrap:wrap;align-items:center}.mode-toggle button,.case-selector button{padding:8px 9px;font-size:11px}.layout{padding:6px;gap:6px}.viewer{height:580px}.section-head,.viewer-head{padding:12px;min-height:110px;height:auto;display:block}.section-head h1,.viewer-head h1{font-size:17px}.zoom-controls,.controls{margin-top:8px}.layerbar{padding:12px}.layers{gap:10px}.report{height:680px}}
