/* Investigation tools inherit the published type, palette and scene dimensions. */
.featured-investigation{border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.featured-layout{display:grid;grid-template-columns:1.1fr 1fr;gap:70px;align-items:center}
.featured-investigation .sec{font-size:clamp(40px,5vw,70px)}
.featured-investigation .lead{font-size:18px;max-width:40ch}
.featured-evidence{min-width:0;color:var(--mute)}.featured-evidence>svg{width:min(100%,400px);display:block;margin-bottom:24px;color:var(--faint)}
.featured-evidence svg text{font-family:var(--mono);font-size:10px;fill:var(--mute);stroke:none}
.featured-evidence>p{font-size:.84rem;line-height:1.7;margin-bottom:14px}.featured-evidence .field-label{flex-basis:100%}.featured-evidence select{display:block;width:100%;margin-top:7px}
.personal-summary{font-family:var(--sans);font-size:.76rem;line-height:1.6;color:var(--ink2);max-width:61ch;margin:4px 0}
.blindspot-controls{background:var(--bg2);border:1px solid var(--acc-mid);border-radius:10px;padding:16px;margin-top:14px;pointer-events:auto;max-width:650px}
.blindspot-controls h3{font:500 19px var(--sans);margin:8px 0}.blindspot-controls p{font:400 13px/1.6 var(--sans);margin:9px 0}.blindspot-controls .context-actions{gap:12px}.view-buttons{display:flex;gap:8px;flex-wrap:wrap}.view-buttons [aria-pressed="true"]{border-color:var(--acc);color:var(--acc-ink)}
.expectation-choices{border:0;border-top:1px solid var(--line);padding-top:14px;margin-top:20px}.expectation-choices legend{font-size:.86rem;padding-top:14px}.expectation-choices legend span{font-size:.7rem;color:var(--faint);margin-left:7px}.expectation-choices label{display:flex;align-items:center;gap:9px;font-size:.84rem;line-height:1.5;min-height:44px}.expectation-choices input{min-height:20px;accent-color:var(--acc)}.expectation-choices p{font-size:.72rem;color:var(--faint);line-height:1.6}.expectation-result{flex-basis:100%;font-size:.85rem}.expectation-result h3{font-size:15px;margin-top:12px}
.memory-graph-preview{border-block:1px solid var(--line);margin-top:22px;padding:18px 0}.memory-graph-preview p{font-size:.83rem;color:var(--mute);line-height:1.6;margin-top:7px}.transfer-steps{padding-left:22px}.transfer-steps li{margin-bottom:14px}
.graph-filters{display:flex;gap:12px;flex-wrap:wrap}.graph-filters label{display:grid;gap:7px;flex:1;min-width:150px;font-size:12px}.graph-filters select{width:100%;font-size:12px}.evidence-graph-panel{border:1px solid var(--line2);padding:18px;border-radius:12px;margin:20px 0}.evidence-graph{display:block;width:100%;height:auto;margin-top:22px}.evidence-edge{fill:none;stroke:var(--acc-mid);stroke-width:1.4}.graph-node{cursor:pointer}.graph-node rect{fill:var(--panel);stroke:var(--line3)}.graph-node text{font-family:var(--sans);font-size:11px;fill:var(--ink2)}.graph-node text+text{font-family:var(--mono);font-size:8px;fill:var(--faint)}.graph-node:hover rect,.graph-node:focus rect{stroke:var(--acc)}.graph-node:focus{outline:0}.evidence-edge.related{stroke:var(--acc);stroke-width:3}#graphContent.has-highlight .evidence-edge:not(.related){opacity:.12}.evidence-list{list-style:none;margin-top:20px}.evidence-list li{padding:12px 0;border-bottom:1px solid var(--line);display:flex;gap:9px;align-items:center;flex-wrap:wrap;font-size:.8rem}.evidence-list small{display:block;width:100%;overflow-wrap:anywhere;color:var(--faint);font-size:.63rem}.new-evidence-edge{stroke:var(--acc);stroke-dasharray:8 6;animation:evidence-flow 1.1s linear 1}@keyframes evidence-flow{from{stroke-dashoffset:42}to{stroke-dashoffset:0}}
#detailDialog.focused-replay{max-width:1080px;width:min(1080px,calc(100vw - 32px))}.replay-brand{display:flex;justify-content:space-between;gap:14px;align-items:center;font-family:var(--disp);font-size:25px;color:var(--acc-ink)}.replay-brand a{font-family:var(--mono);font-size:12px;color:var(--mute)}.replay-scene{position:relative;display:flex;align-items:center;justify-content:center;height:180px;max-width:360px;margin:25px auto;border:1px solid #ffffff33;box-shadow:inset 15px 10px 35px #ffffff07,6px 6px 0 #ffffff09;border-radius:2px;background:linear-gradient(135deg,#ffffff0a,transparent 60%)}.replay-scene img{object-fit:contain;image-rendering:pixelated;max-width:48%;height:auto}.replay-scene-mark{position:absolute;right:18%;top:45%;height:2px;width:22px;background:var(--acc);transform:rotate(-35deg);opacity:.6}.replay-scene-mark[data-phase="0"]{opacity:.2}.replay-scene-mark[data-phase="3"]{box-shadow:0 0 8px var(--acc)}.replay-question{font-size:20px;color:var(--ink)!important}.replay-status{font-family:var(--mono);font-size:12px;color:var(--acc-ink)!important}.replay-controls,.replay-progress{display:flex;gap:9px;flex-wrap:wrap;margin:16px 0}.replay-progress button{min-width:44px}.focused-replay progress{display:block;width:100%;height:4px;accent-color:var(--acc);margin-bottom:20px}.replay-records{display:grid;grid-template-columns:1fr;gap:25px}.replay-comparison .replay-records{grid-template-columns:1fr 1fr}.replay-record{min-width:0;border-top:1px solid var(--line);padding-top:10px}.replay-record h3{font-size:20px}.replay-record p{font-size:14px}.replay-route{list-style:none;display:flex;gap:7px;flex-wrap:wrap;margin:15px 0;font-family:var(--mono);font-size:11px}.replay-route li{padding:5px 9px;border:1px solid var(--line);border-radius:5px}.replay-route .shared-route{opacity:.55}.replay-route .different-route{color:var(--acc-ink);border-color:var(--acc-mid)}.replay-route .current{opacity:1;background:var(--acc-soft);border-color:var(--acc)}.replay-step{border-left:2px solid var(--acc);padding-left:14px}.replay-finding{background:var(--acc-soft);padding:15px;margin:15px 0;border-radius:8px}
[hidden]{display:none!important}
@media(max-width:900px){.featured-layout{grid-template-columns:1fr;gap:30px}.featured-investigation .lead{max-width:100%}.featured-evidence>svg{max-width:340px}.blindspot-controls{max-width:100%}.featured-investigation .sec{font-size:44px}}
@media(max-width:700px){.replay-comparison .replay-records{grid-template-columns:1fr}.graph-filters{display:grid;grid-template-columns:1fr}.evidence-graph-panel{padding:12px}.evidence-graph{min-height:220px}.evidence-graph .graph-node text{font-size:13px}.replay-brand{font-size:22px}.replay-brand a{font-size:10px}.replay-scene{height:140px}.featured-investigation .sec{font-size:38px}}
@media(pointer:coarse){.text-action,.btn-sm,.close-detail,.layer-button{min-height:44px}.close-detail{min-width:44px}.view-buttons button{min-width:70px}}
@media(prefers-reduced-motion:reduce){.new-evidence-edge{animation:none}}
@media(min-width:901px){#cell-fallback{left:52%;width:46%}}
.replay-projections{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:20px;margin:18px 0}.replay-projection{margin:0;text-align:center}.replay-projection figcaption{font-family:var(--mono);font-size:11px;line-height:1.7;color:var(--mute);overflow-wrap:anywhere}.replay-projection svg{max-height:220px}
@media(max-width:700px){.replay-projections{grid-template-columns:1fr}}
/* Essential operations live in normal flow, outside every decorative fade. */
.hero-interactions{position:relative;z-index:4;flex-shrink:0;opacity:1;visibility:visible;pointer-events:auto;padding-top:12px;padding-bottom:clamp(22px,4vh,44px)}
.hero-interactions .hero-context{width:100%;margin:0;pointer-events:auto}
.hero .hero-foot{padding-bottom:0;flex-shrink:0}
.hero-entry .text-action+.text-action{margin-left:14px}
.blindspot-controls[data-mode="resume"]{padding:10px 0;border:0;border-top:1px solid var(--line);background:none;border-radius:0}
.memory-storage{margin-top:18px;max-width:70ch}.memory-storage .event-meta{font-size:.73rem;line-height:1.7}
.record-technical{border-top:1px solid var(--line);margin-block:15px;padding-top:9px}.record-technical summary{cursor:pointer;color:var(--mute);font-size:.8rem}.record-technical p{font-family:var(--mono);font-size:.72rem;overflow-wrap:anywhere}
.evidence-edge[role="button"]{cursor:pointer;pointer-events:stroke;stroke-width:3}.evidence-edge[role="button"]:hover,.evidence-edge[role="button"]:focus{stroke:var(--acc);stroke-width:5;outline:0}
.graph-filters{gap:9px}.graph-filters label{min-width:130px}.graph-filters select{min-height:42px}
@media(min-width:901px){.hero-interactions .hero-context{max-width:min(640px,49vw)}.hero .hero-foot,.hero-foot>.wrap{position:static}.hero-foot .readout{top:auto;bottom:clamp(22px,4vh,44px);right:max(var(--gut),calc((100vw - 1092px)/2));z-index:3}body[data-investigation-active="true"] #cell-canvas{height:100svh}body[data-investigation-active="true"] #cell-fallback{height:100svh}}
@media(max-width:900px){
 .hero-interactions{order:3;padding-top:10px;padding-bottom:16px}.hero .hero-foot{order:4;margin-top:0;padding-top:0;padding-bottom:26px}.hero-interactions .hero-context{max-width:100%}
 body[data-investigation-active="true"] #cell-canvas,body[data-investigation-active="true"] #cell-fallback{position:relative;top:auto;z-index:0;flex:none}
 .blindspot-controls{padding:14px}.blindspot-controls .context-actions{gap:9px}
}
@media(max-width:520px){.hero-interactions{padding-inline:var(--gut)}.hero-interactions .hero-context{width:100%}.blindspot-controls .view-buttons{gap:7px}.blindspot-controls .view-buttons button{min-width:66px}}
