/* Original Vitrum Explorer context shell. Warm light surfaces reuse Vitrum tokens. */
.context-tabs{display:flex;align-items:center;gap:5px;min-height:58px;border-bottom:1px solid var(--line);flex:none;overflow-x:auto;background:var(--paper)}
.context-tabs>button{font-size:14px;padding:10px 15px;min-height:42px;background:transparent;border-color:transparent;flex:none}
.context-tabs>button:disabled{opacity:.4;cursor:not-allowed}
.context-tabs>button[aria-selected=true]{background:var(--tint);color:var(--teal);border-color:var(--line)}
.context-tabs>.context-library{margin-left:auto}.context-tabs>button.primary{background:#257d83;color:#fff}
.context-session-status{font:11px/1.5 'IBM Plex Mono',monospace;color:var(--muted);margin-left:auto;white-space:nowrap}
.context-session-status+.context-library{margin-left:10px}
:root{--link:#1b686f}html[data-theme=dark]{--link:#73c9cb}.context-tabs>button[aria-selected=true],.investigation-stepper button[aria-current=step]{color:var(--link)}
.workbench[data-context]:not([data-context=workbench]) .view-status{height:auto;min-height:0}.workbench[data-context]:not([data-context=workbench]) .view-status:has(#notice:not([hidden]),#cancel-task:not([hidden])){min-height:36px}
.workbench[data-context]:not([data-context=workbench]){grid-template-columns:minmax(0,1fr)}
.workbench[data-context]:not([data-context=workbench])>.sidebar{display:none}
body[data-context]:not([data-context=workbench]) #sidebar-toggle,body[data-context]:not([data-context=workbench]) .mobile-execution{display:none}
body[data-context]:not([data-context=workbench]) .main-tabs{display:none}
body[data-context]:not([data-context=workbench]) #display-settings,body[data-context]:not([data-context=workbench]) #sample-source{display:none!important}
.main-tabs>[data-view=study],.main-tabs>[data-view=experiments]{display:none}
.study-mode-tabs{display:flex;gap:8px;padding:12px clamp(12px,3vw,36px);border-bottom:1px solid var(--line);background:var(--paper)}
.study-mode-tabs button{min-height:40px;background:transparent;border-color:transparent;font-size:13px}.study-mode-tabs button[aria-selected=true]{color:var(--link);background:var(--tint);border-color:var(--line)}
#individual-authoring-workspace{padding:clamp(16px,3vw,36px)}
.investigation-flow{max-width:1280px;margin:auto;padding:clamp(18px,3vw,36px);color:var(--ink)}
.investigation-flow p{font-size:14px;line-height:1.7;max-width:80ch}
.investigation-flow h1{font-size:clamp(24px,2.6vw,34px);letter-spacing:-.035em;line-height:1.2;margin:0 0 12px}
.investigation-flow h2{font-size:20px;line-height:1.35;margin-bottom:12px}.investigation-flow h3{font-size:16px;line-height:1.4}
.investigation-flow button,.investigation-flow select,.investigation-flow input{font-size:14px;min-height:42px}
.investigation-flow textarea{font:14px/1.7 'Public Sans',sans-serif;min-height:96px;width:100%;resize:vertical;background:var(--reading)}
.investigation-flow .field{font-size:14px;gap:8px}.investigation-flow .ve-note{font-size:12px;line-height:1.7;color:var(--muted)}
.investigation-heading{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:20px}
.investigation-heading .ve-toolbar{margin-top:0;justify-content:flex-end}.investigation-heading button{font-size:12px;min-height:38px;padding:7px 10px}
.investigation-meta{display:flex;gap:12px;flex-wrap:wrap;color:var(--muted);font:11px/1.6 'IBM Plex Mono',monospace;margin:12px 0}
.investigation-stepper{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:20px 0 28px}
.investigation-stepper button{display:flex;align-items:center;gap:10px;text-align:left;font-size:13px;white-space:normal;padding:12px;background:var(--paper)}
.investigation-stepper button[aria-current=step]{border-color:var(--teal);background:var(--tint);color:var(--link)}
.investigation-stepper .step-index{border:1px solid var(--line);border-radius:50%;width:27px;height:27px;display:grid;place-items:center;flex:none;font:12px 'IBM Plex Mono',monospace}
.investigation-content{min-width:0}.investigation-section{background:var(--paper);border:1px solid var(--line);border-radius:9px;padding:clamp(16px,2vw,26px);margin:0 0 18px;min-width:0}
.investigation-section>p:last-child{margin-bottom:0}.investigation-section .field{margin:14px 0}
.investigation-readouts{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:12px;margin:18px 0}
.investigation-readout{background:var(--reading);padding:16px;border:1px solid var(--line);border-radius:9px;min-width:0}
.investigation-readout span{display:block;font-size:12px;color:var(--muted);line-height:1.5}.investigation-readout strong{display:block;font:26px/1.5 'IBM Plex Mono',monospace;overflow-wrap:anywhere}.investigation-readout small{display:block;color:var(--muted);font:11px/1.7 'IBM Plex Mono',monospace}
.investigation-step-actions{display:flex;justify-content:space-between;gap:12px;margin:24px 0 10px}.investigation-step-actions>.primary{margin-left:auto}
.investigation-candidates{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px;margin:18px 0}
.investigation-candidate{background:var(--reading);border:1px solid var(--line);border-radius:9px;padding:18px;min-width:0}
.investigation-candidate.selected{border-color:var(--teal)}.investigation-candidate label{display:flex;align-items:flex-start;gap:10px;font-size:15px;line-height:1.5;font-weight:600}.investigation-candidate input[type=checkbox]{width:18px;min-height:18px;margin:3px 0 0;flex:none}
.investigation-candidate button{width:100%;margin-top:12px}.investigation-candidate .ve-note{margin:10px 0 0}
.investigation-case-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(255px,1fr));gap:16px;margin-top:20px}
.investigation-case-card{display:flex;flex-direction:column;align-items:stretch;padding:22px;border:1px solid var(--line);border-radius:9px;background:var(--paper);min-width:0}
.investigation-case-card h2{font-size:18px}.investigation-case-card p{font-size:13px}.investigation-case-card button{margin-top:auto;text-align:left}
.investigation-filter{width:min(100%,460px);background:var(--reading)}
.investigation-observation-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.investigation-analysis-controls{display:flex;gap:12px;flex-wrap:wrap;align-items:flex-end}.investigation-analysis-controls .field{min-width:180px;flex:1}
.investigation-advanced{margin-top:20px;border-top:1px solid var(--line);padding-top:16px}.investigation-advanced>summary{font-size:14px;font-weight:600;cursor:pointer;min-height:42px;display:flex;align-items:center}
.investigation-flow .investigation-table{font-size:12px;background:var(--reading)}.investigation-flow .investigation-table th,.investigation-flow .investigation-table td{padding:12px 10px}
.investigation-flow .investigation-table th code{font-size:10px}.investigation-flow .investigation-table caption{font-size:12px}
.investigation-plot{width:100%;display:block;background:var(--reading);border:1px solid var(--line);border-radius:9px;margin:16px 0;min-height:220px}
.investigation-plot text{font:11px 'IBM Plex Mono',monospace;fill:var(--muted)}
.investigation-evidence-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.investigation-evidence-grid textarea{min-height:100px}
.investigation-source-panel{margin-top:20px}.investigation-source-panel ul{list-style:none;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:20px}
.investigation-source-panel a{font-size:13px;text-decoration:underline}.investigation-source-panel p{font-size:12px;margin:7px 0}
.investigation-flow code{font:11px/1.7 'IBM Plex Mono',monospace;overflow-wrap:anywhere}.investigation-procedure{white-space:pre-wrap;background:var(--reading);border:1px solid var(--line);padding:14px;border-radius:9px;max-height:350px;overflow:auto}
.investigation-attempts{margin:12px 0}.investigation-attempts select{max-width:100%;background:var(--reading)}
.investigation-loading{padding:18px;border-left:3px solid var(--teal);background:var(--tint);margin:14px 0;font-size:14px}
.investigation-status:empty{margin:0;padding:0;min-height:0}
.investigation-flow .investigation-heading{margin-bottom:12px}
.investigation-flow .investigation-stepper{margin:12px 0 18px}
@media(max-width:560px){.investigation-flow .investigation-stepper{margin:10px 0 14px}.investigation-flow .investigation-heading{padding-bottom:8px}}
.workspace-divider{border-top:1px solid var(--line);margin-top:24px;padding-top:18px}
@media(min-width:1100px){body[data-context]:not([data-context=workbench]) .main-area{padding:0 clamp(20px,4vw,72px)}}
@media(max-width:900px){.context-tabs{min-height:54px}.context-tabs>button{padding:9px 12px;font-size:13px}.context-session-status{display:none}.context-tabs>.context-library{margin-left:auto}.investigation-flow{padding:18px}.investigation-heading{flex-direction:column;gap:8px}.investigation-stepper button{font-size:12px;gap:6px;padding:10px}.investigation-evidence-grid{grid-template-columns:1fr}}
@media(max-width:560px){.context-tabs{gap:2px}.context-tabs>button{font-size:12px;padding:8px 10px;min-height:42px}.context-tabs>#header-save{display:none}.investigation-flow{padding:16px 12px}.investigation-flow p{font-size:15px}.investigation-heading .ve-toolbar{justify-content:flex-start}.investigation-stepper{gap:6px;grid-template-columns:repeat(2,minmax(0,1fr));margin:14px 0 20px}.investigation-stepper button{min-height:48px}.investigation-section{padding:16px}.investigation-candidates{grid-template-columns:1fr}.investigation-case-grid{grid-template-columns:1fr}.investigation-readouts{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.investigation-readout{padding:12px}.investigation-readout strong{font-size:22px}.investigation-step-actions{flex-wrap:wrap}.investigation-plot{min-height:160px}.investigation-analysis-controls{display:grid;grid-template-columns:1fr}.investigation-analysis-controls .field{min-width:0}.investigation-source-panel p{font-size:13px}}
