/* Server status and typed materials reuse the approved canvas shell. */
#live-status{max-width:210px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.is-error{color:#9d473b!important;background:#fff0ed!important}.header-actions{min-width:0}.header-actions .button{white-space:nowrap}.context-picker{min-width:0;gap:7px}.context-picker label{white-space:nowrap}.context-picker select{max-width:190px;min-width:100px}.context-picker #experiment-context{max-width:165px}.context-picker #context-status{display:none}.stage-actions{display:flex;gap:7px}.stage-actions .button{font-size:11px}.canonical-source{display:flex;flex-wrap:wrap;gap:5px 12px;font-size:11px;color:#69768d;margin:10px 0;padding:8px 10px;background:#f4f6fa;border-radius:5px;overflow-wrap:anywhere}.canonical-source strong{font-weight:550}.external-source{background:#fff4de;color:#8b6a31}.record-text{font:inherit;font-size:12px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;background:#f8f9fc;padding:12px;border-radius:7px;max-width:100%;overflow:auto}.evidence-link small{font-size:10px;opacity:.7}.typed-metric{display:inline-grid;min-width:150px;padding:13px 18px;margin:8px;border:1px solid #e3e7ef;border-radius:9px;background:#fafbfe;gap:7px}.typed-metric>span{font-size:12px}.typed-metric strong{font-size:23px;font-weight:600}.typed-metric small{font-size:12px}.typed-metric p{font-size:10px;white-space:normal;margin:0}.typed-series{min-width:250px;max-width:680px;padding:12px;border:1px solid #e1e7ef;background:#fbfcfe;border-radius:8px;margin:10px 0}.typed-series>strong{font-size:12px}.typed-series svg{width:100%;height:auto;display:block}.typed-series svg text{font:11px system-ui;fill:#68758a}.typed-series p,.typed-series summary{font-size:11px;color:#6e7d90}.typed-series summary{cursor:pointer}.typed-images{display:flex;flex-wrap:wrap;gap:12px}.typed-image{margin:8px 0;min-width:160px;max-width:500px}.typed-image img{display:block;width:100%;max-height:270px;object-fit:contain;border-radius:7px;background:#eef1f5}.typed-image figcaption{font-size:11px;line-height:1.6;margin-top:6px;color:#68768b;white-space:normal}.typed-table{overflow:auto;margin:12px 0}.typed-table table{border-collapse:collapse;width:100%;font-size:12px}.typed-table th,.typed-table td{padding:9px;border:1px solid #e0e5ed;text-align:left}.typed-table th{background:#f2f5fa}.typed-attachment{padding:12px;border:1px solid #e1e7ef;border-radius:8px;margin:9px 0;white-space:normal;overflow-wrap:anywhere}.typed-attachment p{font-size:11px;color:#748197;line-height:1.6}.comparison-scroll .output-kind-section{margin:0 14px 24px}.output-kind-section>h2,.output-evaluations>h2{font-size:15px;margin:15px 0}.output-kind-section .comparison-table{width:100%;table-layout:fixed}.comparison-table th{min-width:240px}.comparison-table th:first-child{width:150px;min-width:150px}.output-artifact{min-width:240px;max-width:600px;padding:4px 0}.output-artifact>strong{display:block;font-size:12px}.output-artifact .canonical-source{font-size:10px;display:grid;gap:3px}.output-evaluations{padding:0 20px 20px}.output-evaluations>article{border-top:1px solid #e3e7ef;padding:14px 0}.result-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px}.comparison-controls select{border:1px solid #dbe1eb;border-radius:5px;padding:5px;background:#fff;font-size:11px}.comparison-foot{flex-wrap:wrap;max-height:110px;overflow:auto}.comparison-foot .button{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.form-error{padding:12px;background:#fff1ec;color:#a64c35;border-radius:7px;font-size:12px;line-height:1.7}.overview-field select,.overview-field input{border:1px solid #dce2eb;border-radius:7px;padding:10px;background:#fff;width:100%;font:inherit}.suggestion{padding:10px 0;border-bottom:1px solid #e5e9ef}.suggestion strong{font-size:13px}.suggestion p{font-size:12px;line-height:1.8}.suggestion code{font-size:10px;color:#8a7a9d}.evidence-empty{color:#8792a4;font-size:12px;line-height:1.8}.code-meta small{max-width:75px;overflow:hidden;text-overflow:ellipsis}.selected-executions .execution-chip{max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:1350px){.app-header{gap:12px;padding-left:20px;padding-right:20px}.project-switch{min-width:170px;max-width:220px;padding-left:14px}.studio-brand b{font-size:15px}.context-picker select{max-width:140px}.context-picker #experiment-context{max-width:125px}.mode-button{padding:9px 12px}.header-actions .button{font-size:11px;padding:8px 9px}.demo-badge{font-size:9px}}

.research-judgment-fields{border:1px solid #e0d8eb;border-radius:8px;padding:14px 16px;margin:20px 0}.research-judgment-fields legend{font-size:13px;color:#806996;padding:0 7px}.overview-field small{font-size:10px;font-weight:400;color:#8f7e9c}

.research-node .node-meta{width:100%;min-width:0;flex:0 0 auto;white-space:nowrap}.research-node .node-meta>span{min-width:0;max-width:65%;flex:0 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.research-node .node-meta>small{min-width:0;max-width:46%;flex:0 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:right}
/* Bounded reading and selection, without changing the research canvas hierarchy. */
#reader,.studio-dialog{overflow-x:hidden;overflow-y:auto}.reader-body,.studio-dialog-body{min-width:0;max-width:100%}.reader-header>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.reader-header>div{flex-shrink:0}.evidence-title h2,.record-prose,.evidence-link,.report-library button,.change-pair p{overflow-wrap:anywhere}.record-prose{white-space:pre-wrap}.evidence-link{max-width:100%;white-space:normal;text-align:left}.evidence-link small{min-width:0}.code-selection-title{flex:0 1 36%;min-width:0;max-width:45%}.code-selection-title>strong{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.code-selection-title>.button{flex-shrink:0}.code-selection-title>.external-source{max-width:130px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:10px}.code-selection-detail>.button{flex-shrink:0}.code-meta{min-width:0;white-space:nowrap;gap:5px}.code-meta>span:first-child{min-width:0;max-width:40%;overflow:hidden;text-overflow:ellipsis}.code-meta>span:nth-child(2){flex-shrink:0}.code-meta small{min-width:0;white-space:nowrap}.app-footer #status{min-width:0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.app-footer>span:last-child{flex-shrink:0}.detail-experiment{max-width:400px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dialog-notice{position:sticky;top:65px;z-index:3;background:#edf6ef;color:#32604a;padding:10px 24px;margin:0;font-size:12px;line-height:1.7}.form-actions{position:sticky;bottom:-28px;background:#fff;padding:12px 0;margin-top:16px;z-index:3;box-shadow:0 -5px 12px #fff}.research-judgment-fields,.research-parents{min-width:0}.research-parents{border:1px solid #e0d8eb;border-radius:8px;padding:12px 16px;margin:15px 0}.research-parents legend{font-size:12px;color:#7d6993}.research-parents>input{width:100%;padding:9px;border:1px solid #dfe4ee;border-radius:5px}.parent-options{max-height:170px;overflow:auto;display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}.parent-options label{display:flex;gap:8px;align-items:flex-start;font-size:12px;line-height:1.6;min-width:0}.parent-options small{display:block;color:#8d97a7;font-size:10px}.parent-options input{margin-top:4px;flex-shrink:0}#research-form{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}#research-form>label,#research-form>p,#research-form>fieldset,#research-form>.form-actions{grid-column:1/-1}#research-form>label:has(select[name=kind]),#research-form>label:has(select[name=stage]){grid-column:auto}.collection-pager,.output-pager{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:11px;color:#728097;margin-top:9px}.collection-pager .button,.output-pager .button{min-height:30px;font-size:10px}.paged-collection{min-width:0;max-width:100%}.evidence-actions>.paged-collection{width:100%}.paged-content>.evidence-link{margin:3px}.typed-images{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));align-items:start}.typed-images>.paged-collection{grid-column:1/-1}.typed-images .paged-content{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}.typed-image{min-width:0;max-width:none}.unavailable-uri{display:block;font-size:10px;white-space:pre-wrap;overflow-wrap:anywhere;color:#8b7898}.series-value{display:grid;grid-template-columns:1fr 1fr;font-size:11px;padding:5px;border-bottom:1px solid #e8edf3}.evaluation-pair{display:grid;grid-template-columns:80px 1fr 1fr;gap:10px;padding:8px 0;border-bottom:1px solid #e8edf3;font-size:11px;min-width:0}.evaluation-pair>div{min-width:0}.report-markdown{font-size:14px;line-height:1.9;color:#40516a;overflow-wrap:anywhere}.report-markdown h2{font-size:23px;margin:16px 0}.report-markdown h3{font-size:18px;margin:16px 0 10px}.report-markdown h4{font-size:15px;margin:12px 0}.report-markdown p{margin:10px 0}.report-markdown li{margin:5px 0}.report-markdown a{color:#476e9d;text-decoration:underline}.report-markdown pre{overflow:auto;background:#f6f8fb;border-radius:6px;padding:12px;font-size:12px;line-height:1.6}.report-markdown code{font-family:ui-monospace,monospace;font-size:.9em}.report-sources{margin-top:15px;border:1px solid #e2e7ef;padding:12px;border-radius:7px}.report-sources summary{cursor:pointer;font-size:12px}.evidence-section{padding:14px 0}.comparison-controls{flex-wrap:wrap;height:auto;min-height:48px;flex-shrink:0;padding:8px 14px;gap:9px}.comparison-controls select{max-width:220px}.comparison-controls>span{font-size:10px}.comparison-conditions{padding:14px 20px;background:#f6f7fc;font-size:12px;line-height:1.7}.comparison-conditions dl{display:grid;grid-template-columns:120px 1fr;gap:5px 12px;margin:9px 0}.comparison-conditions dd{margin:0;overflow-wrap:anywhere}.comparison-conditions>span{font-size:10px;color:#8d97a7;margin-left:10px}.output-kind-section .result-heading{flex-wrap:wrap;justify-content:flex-start;gap:16px}.output-kind-section .comparison-table caption{font-size:10px;text-align:left;color:#8d96a6;padding:8px 0}.output-kind-section .comparison-table th[scope=row]{font-size:11px;white-space:normal;overflow-wrap:anywhere}.comparison-foot>div:first-child{min-width:160px;flex:1}.comparison-foot .paged-content{display:flex;gap:6px}.comparison-foot .paged-collection{flex:0 1 auto}.material-target{display:grid;grid-template-columns:2fr 1fr;gap:16px}.material-source-tools{display:grid;grid-template-columns:2fr 1fr 1.5fr;gap:12px;margin:16px 0;font-size:11px}.material-source-tools select,.material-source-tools input{display:block;width:100%;min-width:0;margin-top:7px;padding:9px;border:1px solid #dce2eb;border-radius:6px;background:#fff}.material-source-list{max-height:290px;overflow:auto;border:1px solid #e1e6ef;border-radius:8px;padding:10px}.material-option{display:flex;gap:10px;padding:10px;border-bottom:1px solid #edf0f4;cursor:pointer;align-items:flex-start}.material-option:last-child{border:0}.material-option:has(input:checked){background:#f2eef9}.material-option input{margin-top:4px;flex-shrink:0}.material-option span{min-width:0;overflow-wrap:anywhere}.material-option strong{font-size:12px}.material-option small{display:block;font-size:10px;color:#8190a4;margin-top:4px}.material-result-count{font-size:10px;color:#8b94a3;padding:0 10px}.material-selected{margin-top:18px;font-size:12px}.material-selected>div{display:flex;flex-wrap:wrap;gap:7px;max-height:130px;overflow:auto;margin-top:10px}.material-selected-chip{position:relative;max-width:280px;border:1px solid #d5ddea;border-radius:6px;background:#f8faff;text-align:left;padding:8px 27px 8px 10px;font-size:11px;overflow-wrap:anywhere}.material-selected-chip small{display:block;font-size:9px;color:#8a96a6;margin-top:4px}.material-selected-chip>span{position:absolute;right:9px;top:9px}.home-project{min-height:280px;padding:22px}.home-project .project-purpose{min-height:0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.home-project .project-current{margin:14px 0 18px;padding-top:12px}.home-project h2{margin:12px 0 10px;font-size:20px}
.comparison-conditions.compact{display:flex;align-items:flex-start;gap:12px;padding:7px 16px}.comparison-conditions.compact>details{flex:1;min-width:0}.comparison-conditions.compact summary{display:flex;align-items:center;gap:10px;cursor:pointer;min-height:28px;font-size:11px}.comparison-conditions.compact summary::before{content:'▸';color:#8b7ba9}.comparison-conditions.compact details[open] summary::before{content:'▾'}.comparison-conditions.compact summary>strong{flex-shrink:0;font-size:11px}.comparison-conditions.compact summary>span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#8290a4}.comparison-conditions.compact>.button{flex-shrink:0;margin:0}.output-kind-section>.result-heading{margin:5px 0 8px}.output-kind-section>.result-heading h2{font-size:16px;line-height:1.5}.output-kind-section>.result-heading .output-pager{margin-top:0}.reference-fold{padding:12px 0;border-bottom:1px solid #e5eaf2}.reference-fold>summary{font-size:12px;color:#687990;cursor:pointer}.reference-fold>.evidence-actions{margin-top:10px}
.studio-dialog[open]{display:flex;flex-direction:column;overflow:hidden}.studio-dialog>header{position:relative;flex:0 0 auto}.studio-dialog>.dialog-notice{position:relative;top:auto;flex:0 0 auto}.studio-dialog-body{overflow-y:auto;overflow-x:hidden;min-height:0;flex:1 1 auto;scroll-padding-bottom:76px}.studio-dialog .form-actions,.studio-dialog .review-actions{bottom:0;padding:12px 0;flex-shrink:0}.studio-dialog .form-actions>.button{flex-shrink:0}
.comparison-table .output-artifact{padding-top:0}.comparison-table .output-artifact>.typed-images{margin-top:0}.comparison-table .typed-image{margin:0}.matrix-artifact-meta{display:flex;align-items:center;gap:7px;margin-top:6px}.matrix-artifact-meta>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px;color:#97a1b2}.matrix-artifact-meta>.button{flex-shrink:0;margin-left:auto;font-size:10px;padding:4px 7px;min-height:27px}
.comparison-controls #output-grouping{max-width:110px}.matrix-producer{margin-top:5px;min-width:0;font-size:10px;color:#8794a8}.matrix-producer .evidence-link{display:block;max-width:100%;min-width:0;padding:4px 7px;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
