[hidden] { display: none !important; }
#investigation { max-width: 65rem; }
.full-lab-link { margin: .25rem 0 0; }
#full-lab { scroll-margin-top: .75rem; }
#p-lab .readout { align-items: center; column-gap: .45rem; }
#bench-method { margin: 0; }
#bench-sample { margin: .3rem .2rem; }
.skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.experiment-sheet { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(1rem,3vw,2.5rem); padding: clamp(1rem,3vw,2.1rem); border: 1px solid var(--line); border-radius: 1rem; background: var(--card); margin: 1rem 0; }
.experiment-sheet h2 { margin: 0 0 .45rem; }
#investigation label, #setup-visual figcaption { display: block; font-weight: 700; margin: 0 0 .4rem; }
#investigation select { font: inherit; max-width: 100%; width: 100%; min-height: 44px; border: 1px solid var(--muted); border-radius: .5rem; padding: .45rem; color: var(--ink); background: var(--card); }
#setup-visual { align-self: center; margin: 0; padding: 1rem; background: var(--bg); border-radius: .65rem; }
.standard-rack { display: flex; justify-content: space-around; margin-block: 1rem; }
.standard-rack span { text-align: center; font-variant-numeric: tabular-nums; }
.standard-rack span::before { content: ""; display: block; width: 1rem; height: 3rem; margin: 0 auto .25rem; border: 2px solid var(--muted); border-radius: 0 0 .5rem .5rem; background: linear-gradient(transparent 45%,var(--water) 45%); }
#investigation p { max-width: 62ch; }
#run, #estimate-form, #investigation .actions { margin-top: .8rem; }
#investigation .actions, .number-unit { display: flex; gap: .65rem; align-items: center; flex-wrap: wrap; }
.number-unit input { width: 8rem; }
#investigation #calibration svg { display: block; width: 100%; height: auto; max-width: 29rem; }
#calibration .f-sm { font-size: 12px !important; }
#calibration .diagram-zoom { margin-bottom: .5rem; }
#investigation table { border-collapse: collapse; width: 100%; }
#investigation td, #investigation th { text-align: left; border-bottom: 1px solid var(--line); padding: .25rem; }
#investigation summary, .activity-links a { min-height: 44px; padding-block: .6rem; cursor: pointer; }
#investigation .activity-links { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
#history-row { max-width: 27rem; }
#activities { margin: .8rem 0; }
#activities h3 { margin: .6rem 0 0; }
#estimate-feedback:not(:empty), #estimate-support { border-left: .25rem solid var(--acc); background: var(--acc-soft); padding: .65rem 1rem; margin-top: .75rem; }
#estimate-feedback p { margin: .3rem 0; }
body:has(#investigation:not([hidden])) main h1 { font-size: clamp(1.85rem,4vw,2.8rem); line-height: 1.15; border: 0; }
.closeup-only #method-work > :not(.lab):not(p:first-child), .closeup-only .col-tasks, .closeup-only #ptabs { display: none; }
.closeup-only .lab { display: block; }
.closeup-only .col-app { position: static; max-height: none; overflow: visible; }
@media (max-width: 44rem) {
 .experiment-sheet { grid-template-columns: minmax(0,1fr); }
 .standard-rack span::before { height: 2rem; }
}

/* Fit the panel choices to the apparatus column, including at high zoom. */
#full-lab { container-type: inline-size; }
#ptabs { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
#ptabs .chip { padding-inline: .2rem; }
#ptabs [aria-pressed="true"] { text-decoration: underline; text-underline-offset: .18em; }
@container (max-width: 28rem) {
 #ptabs { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
#stage-note { margin-block: .3rem; }
#stage-note summary { min-height: 44px; align-content: center; font-weight: 700; cursor: pointer; }
#stage-note p { margin: .1rem 0 .5rem; }
#playback { display: flex; gap: .4rem; }
#p-lab #playback button, button.diagram-zoom { display: inline-grid; place-items: center; width: 48px; height: 48px; min-width: 48px; min-height: 48px; padding: 0; flex: none; }
button svg.control-icon, #investigation #calibration .diagram-zoom svg { width: 1.25rem; height: 1.25rem; margin: 0; display: block; }

#p-lab .runbar { display: flex; flex-wrap: wrap; align-items: center; }
#p-lab .runbar #call { width: auto; flex: none; min-width: 6rem; }
