/* Match the approved pilot: hide legacy floating tools, preserve saved notebook data. */
.investigation-active .sidebar,.investigation-active .science-floating-tools,.investigation-active #notebook-button,.investigation-active #reset-progress,.investigation-active #teacher-button,.investigation-active .science-language,.investigation-active #science-language,.investigation-active label[for="science-language"],.investigation-active .workspace-top,.investigation-active .site-footer #save-state{display:none!important}
.investigation-active .app-shell{display:block;max-width:1320px;margin:auto}.investigation-active .workspace{padding:0}.investigation-active #main{max-width:none;padding:14px 26px 24px}.investigation-active .topbar{position:static;min-height:64px}.investigation-active .science-identity{padding-block:8px}.investigation-active #science-connection-status:empty{display:none}
.investigation{overflow-wrap:break-word}.investigation .pilot-reference,.investigation .pilot-explain{min-width:0}.investigation .pilot-reading-block>*{min-width:0}.investigation-evidence{border-top:1px solid #d3ded0;margin-top:18px;padding-top:18px}.investigation-evidence-text{white-space:pre-wrap;font-size:14px}.investigation .investigation-table{max-width:100%;overflow-x:auto}.investigation table{overflow-wrap:normal;word-break:normal;table-layout:auto}.investigation th,.investigation td{overflow-wrap:normal;word-break:normal}.investigation th:first-child{width:auto}.investigation .model-controls{display:flex;flex-wrap:wrap;gap:10px;align-items:end}.investigation .model-controls>*{flex:1 1 150px}.investigation .model-result{padding:12px;border-left:4px solid #32765a;background:#edf3e6;border-radius:6px}.investigation figure{max-width:100%;margin:12px 0}.investigation svg{max-width:100%;height:auto}.investigation input[type=range]{padding:5px;min-height:40px}.investigation button{max-width:100%;overflow-wrap:anywhere}.investigation .model-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.investigation .model-card{padding:12px;border:1px solid #ced8c7;border-radius:10px;background:#f5f8ef}.investigation [role=status]{overflow-wrap:anywhere}.investigation .pilot-reflection textarea{min-height:90px}
@media(max-width:760px){.investigation-active #main{padding:14px 12px}.investigation-active .topbar{height:auto;flex-wrap:wrap;padding:10px 12px}.investigation-active .top-actions{gap:8px;flex-wrap:wrap}.investigation-active .top-actions button,.investigation-active .top-actions a{font-size:12px}.investigation .model-grid{grid-template-columns:1fr}.investigation .pilot-trail button{overflow-wrap:anywhere}.investigation .pilot-footer button{flex:1}.investigation .pilot-reference{position:static;max-height:none}.investigation table{font-size:13px}}
@media(prefers-reduced-motion:reduce){.investigation *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

.investigation [data-investigation-enlarge]{display:block;font-size:13px;padding:7px 12px;margin-top:8px}.investigation-diagram-dialog{width:min(96vw,1100px);max-width:96vw;max-height:90vh;box-sizing:border-box;padding:18px;border:2px solid #28664f;border-radius:14px;background:#fffdf6;color:#193b31}.investigation-diagram-dialog::backdrop{background:rgb(12 29 23 / 65%)}.investigation-diagram-dialog header{display:flex;justify-content:space-between;align-items:start;gap:12px}.investigation-diagram-dialog h2{margin:0;font-size:20px}.investigation-diagram-dialog button{min-height:44px}.investigation-diagram-scroll{overflow:auto;max-height:65vh;border:1px solid #ced8c7;background:#fff}.investigation-diagram-scroll svg{display:block;width:100%;min-width:700px;max-width:none;height:auto}.investigation-diagram-dialog p{font-size:15px;line-height:1.5}

.investigation .investigation-wide-table table{min-width:560px;table-layout:auto;overflow-wrap:normal;word-break:normal}.investigation .investigation-wide-table th,.investigation .investigation-wide-table td{min-width:90px;overflow-wrap:normal;word-break:normal}.investigation .investigation-table:focus-visible{outline:3px solid #28664f;outline-offset:3px}.investigation .investigation-table-hint{display:block;font-size:13px;line-height:1.5}
