.transpiration-potometer {
  --tp-text: var(--wiki-text, #20343c);
  --tp-muted: var(--wiki-text-muted, #52616b);
  --tp-line: var(--wiki-line, #d4dfe2);
  --tp-surface: var(--wiki-surface, #fff);
  --tp-soft: var(--wiki-surface-soft, #f3f7f6);
  --tp-accent: var(--wiki-link, #277367);
  --tp-button-ink: var(--wiki-surface, #fff);
  --tp-water: #297fa5;
  --tp-leaf: #dbe9cb;
  --tp-leaf-stroke: #698750;
  --tp-glass: #648292;
  container-type: inline-size;
  width: 100%;
  min-width: 0;
  color: var(--tp-text);
  font-size: 16px;
  line-height: 1.5;
}
[data-md-color-scheme="slate"] .transpiration-potometer {
  --tp-water: #8dcced;
  --tp-leaf: #344d36;
  --tp-leaf-stroke: #a3be8d;
  --tp-glass: #adc9d4;
}
.transpiration-potometer *, .transpiration-potometer *::before, .transpiration-potometer *::after { box-sizing: border-box; }
.transpiration-potometer [hidden] { display: none !important; }
.transpiration-potometer .tp-shell { padding: clamp(16px, 2.6cqw, 30px); background: var(--tp-surface); border: 1px solid var(--tp-line); border-radius: var(--wiki-radius-lg, 16px); }
.transpiration-potometer h2, .transpiration-potometer h3, .transpiration-potometer p { margin: 0; }
.transpiration-potometer h2 { font-size: clamp(22px, 2.5cqw, 30px); line-height: 1.2; font-weight: 680; letter-spacing: -.02em; }
.transpiration-potometer h3 { font-size: 20px; line-height: 1.3; font-weight: 650; }
.transpiration-potometer .tp-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; padding-bottom: 20px; }
.transpiration-potometer .tp-heading p:last-child { color: var(--tp-muted); margin-top: 10px; }
.transpiration-potometer .tp-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .11em; color: var(--tp-accent); margin-bottom: 8px; }
.transpiration-potometer .tp-course-note { border-left: 3px solid var(--tp-accent); padding: 8px 12px; margin: 0 0 20px; font-size: 14px; color: var(--tp-muted); }
.transpiration-potometer button, .transpiration-potometer select, .transpiration-potometer input { font: inherit; color: inherit; }
.transpiration-potometer button { min-height: 44px; border: 1px solid var(--tp-line); border-radius: 8px; padding: 10px 15px; background: var(--tp-surface); cursor: pointer; font-size: 14px; font-weight: 600; line-height: 1.35; transition: background 150ms ease, border-color 150ms ease; }
.transpiration-potometer button:hover:not(:disabled) { background: var(--tp-soft); border-color: var(--tp-accent); }
.transpiration-potometer button:disabled { opacity: .48; cursor: default; }
.transpiration-potometer button.tp-primary { background: var(--tp-accent); border-color: var(--tp-accent); color: var(--tp-button-ink); }
.transpiration-potometer button.tp-primary:hover:not(:disabled) { background: color-mix(in srgb, var(--tp-accent) 88%, #000); }
.transpiration-potometer button.tp-quiet { background: transparent; }
.transpiration-potometer :is(button, select, input, summary, [tabindex]):focus-visible { outline: 3px solid var(--tp-water); outline-offset: 3px; }
.transpiration-potometer .tp-view-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--tp-line); margin-bottom: 22px; padding-bottom: 10px; }
.transpiration-potometer .tp-view-tabs button { border-color: transparent; font-size: 16px; }
.transpiration-potometer .tp-view-tabs button[aria-selected="true"] { color: var(--tp-accent); background: var(--tp-soft); border-color: var(--tp-line); }
.transpiration-potometer .tp-water-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 285px; gap: 26px; align-items: center; }
.transpiration-potometer .tp-diagram { background: var(--tp-soft); border-radius: 10px; min-width: 0; overflow: hidden; }
.transpiration-potometer .tp-diagram svg { display: block; width: 100%; height: auto; }
.transpiration-potometer .tp-water-diagram { min-height: clamp(260px, 34cqw, 420px); display: grid; align-content: center; }
.transpiration-potometer .tp-water-inspector { padding: 12px 0; }
.transpiration-potometer .tp-step-counter { font-size: 12px; color: var(--tp-accent); font-weight: 700; letter-spacing: .04em; margin-bottom: 10px; }
.transpiration-potometer .tp-water-inspector h3 { margin-bottom: 12px; }
.transpiration-potometer .tp-water-inspector p + p { margin-top: 14px; }
.transpiration-potometer .tp-detail { color: var(--tp-muted); font-size: 14px; border-left: 2px solid var(--tp-line); padding-left: 12px; }
.transpiration-potometer .tp-diagram-note { text-align: center; color: var(--tp-muted); font-size: 14px; padding: 12px 16px 15px; }
.transpiration-potometer .tp-water-focus { display: none; }
.transpiration-potometer .tp-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.transpiration-potometer .tp-step-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 20px 0; }
.transpiration-potometer .tp-step-list button { display: flex; align-items: center; gap: 9px; }
.transpiration-potometer .tp-step-list button span { width: 23px; height: 23px; border-radius: 50%; border: 1px solid var(--tp-line); display: grid; place-items: center; }
.transpiration-potometer .tp-step-list button[aria-pressed="true"] { color: var(--tp-accent); border-color: var(--tp-accent); background: var(--tp-soft); }
.transpiration-potometer .tp-bridge { border-top: 1px solid var(--tp-line); padding: 18px 0; color: var(--tp-muted); max-width: 850px; }
.transpiration-potometer svg text { fill: var(--tp-text); font-family: inherit; font-size: 18px; }
.transpiration-potometer .tp-label-soft { fill: var(--tp-muted); font-size: 16px; }
.transpiration-potometer .tp-label-small { font-size: 14px; }
.transpiration-potometer .tp-phase-label { fill: var(--tp-water); font-size: 15px; letter-spacing: .04em; font-weight: 600; }
.transpiration-potometer .tp-ground, .transpiration-potometer .tp-soil { fill: none; stroke: var(--tp-line); stroke-width: 3; }
.transpiration-potometer .tp-stem, .transpiration-potometer .tp-root, .transpiration-potometer .tp-root-hair { fill: none; stroke: var(--tp-leaf-stroke); stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; }
.transpiration-potometer .tp-root-hair { stroke-width: 8; }
.transpiration-potometer .tp-leaf { fill: var(--tp-leaf); stroke: var(--tp-leaf-stroke); stroke-width: 2; }
.transpiration-potometer .tp-vein, .transpiration-potometer .tp-leaf-detail, .transpiration-potometer .tp-shoot { fill: none; stroke: var(--tp-leaf-stroke); stroke-width: 3; }
.transpiration-potometer .tp-shoot { stroke-width: 7; stroke-linecap: round; }
.transpiration-potometer .tp-xylem { fill: none; stroke: var(--tp-water); stroke-width: 3; }
.transpiration-potometer .tp-liquid-flow, .transpiration-potometer .tp-direction { fill: none; stroke: var(--tp-water); stroke-width: 3; }
.transpiration-potometer .tp-arrow-fill { fill: var(--tp-water); }
.transpiration-potometer .tp-link { fill: none; stroke: var(--tp-line); stroke-width: 2; stroke-dasharray: 5 5; }
.transpiration-potometer .tp-cells rect { fill: var(--tp-leaf); stroke: var(--tp-leaf-stroke); stroke-width: 2; }
.transpiration-potometer .tp-epidermis, .transpiration-potometer .tp-guard { fill: none; stroke: var(--tp-leaf-stroke); stroke-width: 5; stroke-linecap: round; }
.transpiration-potometer .tp-vapour-flow { fill: none; stroke: var(--tp-water); stroke-width: 3; stroke-dasharray: 4 4; }
.transpiration-potometer .tp-stage-focus { opacity: .12; transition: opacity 180ms ease; }
.transpiration-potometer .tp-stage-focus.is-active { opacity: 1; }
.transpiration-potometer .tp-stage-focus circle { fill: var(--tp-surface); stroke: var(--tp-water); stroke-width: 3; }
.transpiration-potometer .tp-stage-focus text { fill: var(--tp-water); font-weight: 700; }
.transpiration-potometer .tp-stage-focus path { fill: none; stroke: var(--tp-water); stroke-width: 3; }
.transpiration-potometer .tp-measure-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 275px; gap: 28px; align-items: start; }
.transpiration-potometer .tp-apparatus { padding: 12px 10px 0; }
.transpiration-potometer .tp-glass { stroke: var(--tp-glass); fill: transparent; stroke-width: 2; }
.transpiration-potometer .tp-water-tube { stroke: var(--tp-water); fill: none; stroke-width: 7; opacity: .65; }
.transpiration-potometer .tp-water-fill { fill: var(--tp-water); opacity: .24; }
.transpiration-potometer .tp-seal { fill: var(--tp-muted); }
.transpiration-potometer .tp-tap { fill: none; stroke: var(--tp-muted); stroke-width: 5; stroke-linecap: round; }
.transpiration-potometer .tp-ruler line { stroke: var(--tp-muted); stroke-width: 1; }
.transpiration-potometer .tp-bubble rect { fill: var(--tp-surface); stroke: var(--tp-water); stroke-width: 2; }
.transpiration-potometer .tp-locator { display: none; fill: none; stroke: var(--tp-water); stroke-width: 2; stroke-dasharray: 4 3; }
.transpiration-potometer .tp-capillary-focus { display: none; }
.transpiration-potometer .tp-readouts { display: flex; justify-content: space-around; gap: 18px; border-top: 1px solid var(--tp-line); padding: 18px 12px; }
.transpiration-potometer .tp-readouts div { display: flex; flex-direction: column; }
.transpiration-potometer .tp-readouts span { font-size: 13px; color: var(--tp-muted); }
.transpiration-potometer .tp-readouts strong { font-size: 25px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.transpiration-potometer .tp-readouts small { font-size: 15px; font-weight: 500; }
.transpiration-potometer .tp-synthetic { color: var(--tp-muted); font-size: 13px; padding: 12px 0; }
.transpiration-potometer .tp-controls { display: flex; flex-direction: column; gap: 8px; }
.transpiration-potometer .tp-controls h3 { margin: 2px 0 8px; }
.transpiration-potometer .tp-control-group { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.transpiration-potometer .tp-control-group > label { font-size: 14px; font-weight: 600; }
.transpiration-potometer select, .transpiration-potometer input[type="number"] { width: 100%; min-height: 44px; min-width: 0; border: 1px solid var(--tp-line); border-radius: 7px; background: var(--tp-surface); padding: 8px 10px; font-size: 15px; }
.transpiration-potometer input[type="range"] { width: 100%; min-height: 44px; margin: 0; accent-color: var(--tp-accent); cursor: pointer; }
.transpiration-potometer .tp-setting-line { display: flex; justify-content: space-between; gap: 15px; padding-top: 7px; font-size: 15px; font-weight: 600; }
.transpiration-potometer .tp-range-ends { font-size: 13px; color: var(--tp-muted); padding-top: 0; margin-top: -9px; font-weight: 400; }
.transpiration-potometer .tp-fixed { font-size: 13px; color: var(--tp-muted); margin: 3px 0 7px; }
.transpiration-potometer .tp-checkbox { display: flex; align-items: center; min-height: 44px; gap: 10px; font-size: 14px; }
.transpiration-potometer .tp-checkbox input { width: 20px; height: 20px; accent-color: var(--tp-accent); }
.transpiration-potometer .tp-new-series { padding: 12px; background: var(--tp-soft); border-left: 3px solid var(--tp-accent); }
.transpiration-potometer .tp-new-series p { font-size: 14px; margin-bottom: 10px; }
.transpiration-potometer .tp-new-series button + button { margin-top: 6px; }
.transpiration-potometer .tp-run-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 18px 0 12px; border-top: 1px solid var(--tp-line); }
.transpiration-potometer .tp-status { color: var(--tp-muted); font-size: 14px; min-height: 42px; padding-bottom: 12px; }
.transpiration-potometer .tp-calculation, .transpiration-potometer .tp-results { border-top: 1px solid var(--tp-line); padding-top: 24px; margin-top: 14px; }
.transpiration-potometer .tp-section-heading { display: flex; gap: 16px; justify-content: space-between; align-items: start; margin-bottom: 18px; }
.transpiration-potometer .tp-section-heading > p { font-size: 14px; color: var(--tp-muted); }
.transpiration-potometer .tp-calculation > p { font-size: 14px; color: var(--tp-muted); }
.transpiration-potometer .tp-calc-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.transpiration-potometer .tp-calc-fields label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.transpiration-potometer .tp-feedback { margin-top: 16px; font-size: 15px; }
.transpiration-potometer .tp-worked { margin-top: 16px; padding: 14px 16px; background: var(--tp-soft); line-height: 1.7; }
.transpiration-potometer .tp-graph { width: 100%; min-width: 0; margin-top: 12px; }
.transpiration-potometer .tp-graph svg { display: block; width: 100%; height: auto; overflow: visible; }
.transpiration-potometer .tp-graph svg text { font-size: 14px; }
.transpiration-potometer .tp-graph-label { font-weight: 600; }
.transpiration-potometer .tp-grid { fill: none; stroke: var(--tp-line); stroke-width: 1; }
.transpiration-potometer .tp-axis { fill: none; stroke: var(--tp-muted); stroke-width: 1.5; }
.transpiration-potometer .tp-point-target { fill: transparent; }
.transpiration-potometer .tp-point { fill: var(--tp-surface); stroke: var(--tp-water); stroke-width: 2; }
.transpiration-potometer [data-point] { cursor: pointer; outline: none; }
.transpiration-potometer [data-point]:focus-visible .tp-point-target { stroke: var(--tp-water); stroke-width: 2; }
.transpiration-potometer [data-point][aria-pressed="true"] .tp-point { fill: var(--tp-water); stroke: var(--tp-text); }
.transpiration-potometer .tp-mean-point { fill: var(--tp-accent); stroke: var(--tp-surface); stroke-width: 1.5; pointer-events: none; }
.transpiration-potometer .tp-graph-key, .transpiration-potometer .tp-selection { color: var(--tp-muted); font-size: 14px; margin-top: 10px; }
.transpiration-potometer .tp-selection { min-height: 42px; }
.transpiration-potometer .tp-table-scroll { overflow-x: auto; margin-top: 14px; }
.transpiration-potometer table { width: 100%; border-collapse: collapse; font-size: 14px; white-space: nowrap; margin: 0; }
.transpiration-potometer th, .transpiration-potometer td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--tp-line); }
.transpiration-potometer th { font-size: 12px; color: var(--tp-muted); font-weight: 650; }
.transpiration-potometer td { font-variant-numeric: tabular-nums; }
.transpiration-potometer td button { min-width: 44px; padding: 8px; }
.transpiration-potometer tr.is-selected { background: var(--tp-soft); }
.transpiration-potometer .tp-means { font-size: 14px; color: var(--tp-muted); margin-top: 15px; }
.transpiration-potometer .tp-explain { border-top: 1px solid var(--tp-line); margin-top: 22px; padding-top: 12px; font-size: 14px; }
.transpiration-potometer summary { min-height: 44px; cursor: pointer; font-size: 15px; font-weight: 600; display: list-item; padding: 10px 0; }
.transpiration-potometer .tp-explain p { margin: 10px 0; color: var(--tp-muted); }
@container (max-width: 1100px) {
  .transpiration-potometer .tp-water-workspace, .transpiration-potometer .tp-measure-workspace { grid-template-columns: 1fr; gap: 18px; }
  .transpiration-potometer .tp-water-inspector { padding: 0; max-width: 850px; }
  .transpiration-potometer .tp-water-diagram { min-height: clamp(250px, 45cqw, 440px); }
  .transpiration-potometer .tp-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 24px; }
  .transpiration-potometer .tp-controls h3 { grid-column: 1 / -1; }
  .transpiration-potometer .tp-control-group { grid-column: auto; }
  .transpiration-potometer .tp-controls h3 { margin-bottom: 4px; }

  .transpiration-potometer .tp-run-actions { margin-top: 18px; }
}
@container (max-width: 640px) {
  .transpiration-potometer .tp-heading { display: block; }
  .transpiration-potometer .tp-heading > button { margin-top: 14px; }
  .transpiration-potometer .tp-water-overview { display: none; }
  .transpiration-potometer .tp-water-focus { display: block; max-width: 470px; width: 100%; margin: auto; }
  .transpiration-potometer .tp-water-diagram { min-height: clamp(270px, 84cqw, 490px); }
  .transpiration-potometer .tp-diagram-note { font-size: 13px; }
  .transpiration-potometer .tp-apparatus-overview svg { height: clamp(215px, 48cqw, 280px); }
  .transpiration-potometer .tp-apparatus-overview svg text { font-size: 19px; }
  .transpiration-potometer .tp-capillary-focus { display: block; border-top: 1px dashed var(--tp-line); margin: 10px 0 0; }
  .transpiration-potometer .tp-capillary-focus svg { max-width: 520px; margin: auto; }
  .transpiration-potometer .tp-capillary-focus svg text { font-size: 16px; }
  .transpiration-potometer .tp-capillary-focus .tp-label-small { font-size: 13px; }
  .transpiration-potometer .tp-capillary-focus .tp-direction { display: none; }
  .transpiration-potometer .tp-locator { display: block; }
  .transpiration-potometer .tp-readouts { flex-wrap: wrap; justify-content: flex-start; gap: 16px 28px; padding: 16px 8px; }
  .transpiration-potometer .tp-readouts strong { font-size: 23px; }
  .transpiration-potometer .tp-controls { display: flex; gap: 8px; }
  .transpiration-potometer .tp-calc-fields { grid-template-columns: 1fr; gap: 12px; }
  .transpiration-potometer .tp-section-heading { flex-wrap: wrap; }
  .transpiration-potometer .tp-phase-label { font-size: 14px; }
  .transpiration-potometer .tp-step-list { display: grid; grid-template-columns: 1fr 1fr; }
  .transpiration-potometer .tp-step-list button { padding: 9px; }
  .transpiration-potometer .tp-view-tabs button { font-size: 14px; padding: 9px 10px; flex: 1; }
}
@container (max-width: 400px) {
  .transpiration-potometer .tp-shell { padding: 16px 12px; }
  .transpiration-potometer .tp-water-diagram { min-height: 280px; }
  .transpiration-potometer .tp-run-actions button { flex: 1 1 125px; }
  .transpiration-potometer .tp-apparatus { padding: 10px 3px 0; }
  .transpiration-potometer .tp-water-focus svg text { font-size: 16px; }
  .transpiration-potometer .tp-water-focus .tp-phase-label { font-size: 13px; }
  .transpiration-potometer .tp-readouts { gap: 14px 24px; }
  .transpiration-potometer .tp-readouts > div:last-child { flex-basis: 100%; }
  .transpiration-potometer .tp-readouts > div:last-child strong { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .transpiration-potometer *, .transpiration-potometer *::before, .transpiration-potometer *::after { transition: none !important; scroll-behavior: auto !important; }
}
/* Biological tissue and laboratory-material drawing vocabulary. */
.transpiration-potometer .tp-botanical-leaf { fill: var(--tp-leaf); stroke: var(--tp-leaf-stroke); stroke-width: 1.4; stroke-linejoin: round; }
.transpiration-potometer .tp-leaf-veins { fill: none; stroke: var(--tp-leaf-stroke); stroke-width: .8; }
.transpiration-potometer .tp-botanical-stem { fill: var(--tp-leaf-stroke); stroke: var(--tp-leaf-stroke); stroke-width: 1; }
.transpiration-potometer .tp-petiole { fill: none; stroke: var(--tp-leaf-stroke); stroke-width: 3; stroke-linecap: round; }
.transpiration-potometer .tp-chloroplast { fill: #65945b; stroke: none; }
.transpiration-potometer .tp-soil-field { fill: color-mix(in srgb, var(--tp-soft) 86%, #b8a07a); stroke: none; }
.transpiration-potometer .tp-soil-grains { fill: color-mix(in srgb, var(--tp-line) 65%, #9d8b73); stroke: var(--tp-line); stroke-width: .8; }
.transpiration-potometer .tp-root-cortex path { fill: var(--tp-surface); stroke: var(--tp-glass); stroke-width: 1; }
.transpiration-potometer .tp-root-cell { fill: color-mix(in srgb, var(--tp-leaf) 40%, var(--tp-surface)); stroke: var(--tp-glass); stroke-width: 1.5; }
.transpiration-potometer .tp-root-ground, .transpiration-potometer .tp-root-cortex-fill { fill: color-mix(in srgb,#d5be96 16%,var(--tp-surface)); stroke: var(--tp-glass); stroke-width: 1; }
.transpiration-potometer .tp-root-epidermis path { fill: color-mix(in srgb,#cbb48e 24%,var(--tp-surface)); stroke: var(--tp-glass); stroke-width: 1.3; }
.transpiration-potometer .tp-root-cell { fill: color-mix(in srgb,#d6ba7b 24%,var(--tp-surface)); }
.transpiration-potometer .tp-root-cell-walls { fill: none; stroke: var(--tp-glass); stroke-width: 1.3; }
.transpiration-potometer .tp-root-vacuoles { fill: color-mix(in srgb,var(--tp-water) 5%,var(--tp-surface)); stroke: color-mix(in srgb,var(--tp-glass) 25%,transparent); stroke-width: .7; }
.transpiration-potometer .tp-endodermis { fill: color-mix(in srgb,#c4a575 23%,var(--tp-surface)); stroke: var(--tp-glass); stroke-width: 1.2; }
.transpiration-potometer .tp-root-nucleus { fill: color-mix(in srgb,#ae8e66 55%,var(--tp-surface)); stroke: var(--tp-glass); stroke-width: .8; }
.transpiration-potometer .tp-root-xylem-water { fill: color-mix(in srgb,var(--tp-water) 12%,var(--tp-surface)); }
.transpiration-potometer .tp-root-xylem-wall { fill: none; stroke: var(--tp-leaf-stroke); stroke-width: 3; }
.transpiration-potometer .tp-root-xylem-bands { fill: none; stroke: var(--tp-leaf-stroke); stroke-width: 3; }
.transpiration-potometer .tp-cell-membrane { fill: none; stroke: var(--tp-leaf-stroke); stroke-width: 1; }
.transpiration-potometer .tp-vacuole { fill: color-mix(in srgb, var(--tp-water) 8%, var(--tp-surface)); stroke: var(--tp-line); stroke-width: 1; }
.transpiration-potometer .tp-nucleus { fill: var(--tp-leaf); stroke: var(--tp-leaf-stroke); stroke-width: 1; }
.transpiration-potometer .tp-xylem-wall { stroke: var(--tp-leaf-stroke); stroke-width: 3; fill: none; }
.transpiration-potometer .tp-xylem-inner { stroke: var(--tp-glass); stroke-width: 1; fill: none; }
.transpiration-potometer .tp-xylem-water { fill: color-mix(in srgb, var(--tp-water) 12%, transparent); stroke: none; }
.transpiration-potometer .tp-xylem-band { stroke: var(--tp-leaf-stroke); stroke-width: 4; fill: none; }
.transpiration-potometer .tp-epidermal-cell { fill: var(--tp-surface); stroke: var(--tp-glass); stroke-width: 1.2; }
.transpiration-potometer .tp-mesophyll-cell { fill: color-mix(in srgb, var(--tp-leaf) 36%, var(--tp-surface)); stroke: var(--tp-glass); stroke-width: 1.2; }
.transpiration-potometer .tp-cuticle { fill: var(--tp-leaf); stroke: var(--tp-glass); stroke-width: 1; }
.transpiration-potometer .tp-cuticle-line { fill: none; stroke: var(--tp-glass); stroke-width: 2; }
.transpiration-potometer .tp-guard-cell { fill: var(--tp-leaf); stroke: var(--tp-glass); stroke-width: 1.2; }
.transpiration-potometer .tp-water-arrow { fill: none; stroke: var(--tp-water); stroke-width: 2.3; stroke-linecap: round; }
.transpiration-potometer .tp-vapour-arrow { fill: none; stroke: var(--tp-water); stroke-width: 2; stroke-dasharray: 3 4; }
.transpiration-potometer .tp-leader { stroke: var(--tp-muted); stroke-width: 1; fill: none; }
.transpiration-potometer .tp-fine-glass { fill: color-mix(in srgb, var(--tp-water) 2%, var(--tp-surface)); stroke: var(--tp-glass); stroke-width: 1.6; stroke-linejoin: round; }
.transpiration-potometer .tp-glass-inner { stroke: color-mix(in srgb, var(--tp-glass) 65%, var(--tp-surface)); stroke-width: 1; fill: none; }
.transpiration-potometer .tp-fluid-route { fill: none; stroke: color-mix(in srgb, var(--tp-water) 50%, var(--tp-surface)); stroke-width: 6; stroke-linejoin: round; }
.transpiration-potometer .tp-water-body { fill: color-mix(in srgb, var(--tp-water) 20%, var(--tp-surface)); stroke: none; }
.transpiration-potometer .tp-meniscus { fill: none; stroke: var(--tp-glass); stroke-width: 1; }
.transpiration-potometer .tp-bench { fill: none; stroke: var(--tp-line); stroke-width: 1.5; }
.transpiration-potometer .tp-stand-base { fill: var(--tp-soft); stroke: var(--tp-glass); stroke-width: 1.2; }
.transpiration-potometer .tp-stand-rod { fill: none; stroke: var(--tp-glass); stroke-width: 1.5; }
.transpiration-potometer .tp-clamp { fill: var(--tp-soft); stroke: var(--tp-glass); stroke-width: 2.2; stroke-linejoin: round; }
.transpiration-potometer .tp-rubber-bung { fill: var(--tp-text); stroke: var(--tp-text); stroke-width: 1; }
.transpiration-potometer .tp-bung-highlight { fill: none; stroke: var(--tp-muted); stroke-width: 1; }
.transpiration-potometer .tp-stopcock-body { fill: var(--tp-surface); stroke: var(--tp-glass); stroke-width: 1.5; }
.transpiration-potometer .tp-stopcock-handle { fill: none; stroke: var(--tp-text); stroke-width: 3; stroke-linecap: round; }
.transpiration-potometer .tp-stopcock-centre { fill: var(--tp-text); }
.transpiration-potometer .tp-graduation { fill: none; stroke: var(--tp-glass); stroke-width: 1; }
.transpiration-potometer .tp-scale-board { fill: var(--tp-surface); stroke: var(--tp-line); stroke-width: 1; }
.transpiration-potometer .tp-stage-focus { opacity: 0; }
.transpiration-potometer .tp-stage-focus.is-active { opacity: 1; }
.transpiration-potometer .tp-stage-focus path { fill: none; stroke: color-mix(in srgb, var(--tp-water) 35%, transparent); stroke-width: 2; stroke-dasharray: 3 5; }
.transpiration-potometer .tp-apparatus-overview svg { min-height: clamp(280px, 49cqw, 550px); }
@container (max-width: 640px) {
  .transpiration-potometer .tp-apparatus-overview svg { min-height: 0; height: clamp(270px, 75cqw, 430px); }
  .transpiration-potometer .tp-apparatus-overview .tp-apparatus-labels text { font-size: 17px; }
  .transpiration-potometer .tp-apparatus-overview .tp-apparatus-labels text:nth-of-type(1) { visibility: hidden; }
}
/* The drawing leads; optional tasks sit behind native disclosures. */
.transpiration-potometer .tp-heading { padding-bottom: 18px; }
.transpiration-potometer .tp-heading h2 { font-size: 25px; }
.transpiration-potometer .tp-heading p:last-child { font-size: 15px; margin-top: 8px; }
.transpiration-potometer .tp-view-tabs { margin-bottom: 18px; }
.transpiration-potometer .tp-water-workspace, .transpiration-potometer .tp-measure-workspace { display: block; }
.transpiration-potometer .tp-water-diagram { min-height: clamp(280px, 48cqw, 610px); }
.transpiration-potometer .tp-water-inspector { max-width: none; padding: 18px 0 0; }
.transpiration-potometer .tp-water-inspector > p { max-width: 950px; font-size: 15px; }
.transpiration-potometer .tp-route-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 10px; }
.transpiration-potometer .tp-route-heading h3 { font-size: 19px; }
.transpiration-potometer .tp-route-heading .tp-actions { margin-top: 0; flex-wrap: nowrap; }
.transpiration-potometer .tp-route-heading button { min-width: 44px; font-size: 20px; }
.transpiration-potometer .tp-step-counter { margin-bottom: 5px; }
.transpiration-potometer .tp-mechanism, .transpiration-potometer .tp-route-steps { margin-top: 8px; font-size: 14px; }
.transpiration-potometer .tp-mechanism summary, .transpiration-potometer .tp-route-steps summary { font-size: 14px; color: var(--tp-muted); font-weight: 500; }
.transpiration-potometer .tp-mechanism p { margin-top: 3px; color: var(--tp-muted); }
.transpiration-potometer .tp-route-steps .tp-step-list { padding: 8px 0; }
.transpiration-potometer .tp-water-footer { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-top: 15px; padding-top: 16px; border-top: 1px solid var(--tp-line); }
.transpiration-potometer .tp-water-footer p { max-width: 700px; color: var(--tp-muted); font-size: 14px; }
.transpiration-potometer .tp-water-footer button { flex-shrink: 0; }
.transpiration-potometer .tp-controls { display: block; }
.transpiration-potometer .tp-main-controls { display: grid; grid-template-columns: 180px minmax(0, 1fr) 120px; gap: 24px; align-items: start; }
.transpiration-potometer .tp-factor-select, .transpiration-potometer .tp-duration-control { display: flex; flex-direction: column; gap: 9px; }
.transpiration-potometer .tp-main-controls label { font-size: 14px; font-weight: 600; }
.transpiration-potometer .tp-main-controls .tp-setting-line { padding-top: 0; min-height: 21px; }
.transpiration-potometer .tp-main-controls .tp-range-ends { min-height: 0; padding-top: 0; }
.transpiration-potometer .tp-experiment-options summary { color: var(--tp-muted); font-size: 14px; font-weight: 500; }
.transpiration-potometer .tp-experiment-options label { display: block; font-size: 14px; margin: 10px 0 8px; }
.transpiration-potometer .tp-experiment-options select { max-width: 400px; }
.transpiration-potometer .tp-run-actions { border-top: none; padding-top: 8px; margin-top: 0; align-items: start; }
.transpiration-potometer .tp-more-actions { margin-left: auto; position: relative; }
.transpiration-potometer .tp-more-actions summary { font-size: 14px; font-weight: 500; color: var(--tp-muted); }
.transpiration-potometer .tp-more-actions .tp-actions { margin-top: 6px; }
.transpiration-potometer .tp-status { font-size: 14px; min-height: 0; }
.transpiration-potometer .tp-calculation, .transpiration-potometer .tp-results { padding-top: 16px; margin-top: 8px; }
.transpiration-potometer .tp-calculation .tp-section-heading { margin-bottom: 6px; }
.transpiration-potometer .tp-calculation h3 { font-size: 18px; }
.transpiration-potometer .tp-calc-drawer summary, .transpiration-potometer .tp-results-drawer > summary { font-weight: 500; }
.transpiration-potometer .tp-calc-drawer > p { font-size: 14px; color: var(--tp-muted); }
.transpiration-potometer .tp-results-drawer > summary { font-size: 16px; }
.transpiration-potometer .tp-results-drawer[open] > summary { margin-bottom: 16px; }
.transpiration-potometer .tp-explain { margin-top: 10px; }
.transpiration-potometer .tp-explain > summary { font-size: 14px; font-weight: 500; color: var(--tp-muted); }
.transpiration-potometer .tp-water-arrow, .transpiration-potometer .tp-vapour-arrow { marker-end: var(--tp-flow-arrow); }
@container (max-width: 640px) {
  .transpiration-potometer .tp-main-controls { grid-template-columns: minmax(0, 1fr) 90px; gap: 12px 18px; }
  .transpiration-potometer .tp-factor-select { grid-column: 1; grid-row: 1; }
  .transpiration-potometer .tp-duration-control { grid-column: 2; grid-row: 1; }
  .transpiration-potometer .tp-factor-setting { grid-column: 1 / -1; grid-row: 2; }
  .transpiration-potometer .tp-water-footer { flex-wrap: wrap; gap: 12px; }
  .transpiration-potometer .tp-water-diagram { min-height: 0; }
  .transpiration-potometer .tp-route-heading { gap: 12px; align-items: start; }
  .transpiration-potometer .tp-route-heading .tp-actions { gap: 5px; }
  .transpiration-potometer .tp-run-actions button { flex: 0 1 auto; }
  .transpiration-potometer .tp-more-actions { flex-basis: 100%; margin-left: 0; }
  .transpiration-potometer .tp-readouts > div:last-child { flex-basis: auto; }
  .transpiration-potometer .tp-readouts { justify-content: space-between; gap: 12px; }
  .transpiration-potometer .tp-readouts strong { font-size: 21px; }
  .transpiration-potometer .tp-readouts span { font-size: 12px; }
}
.transpiration-potometer .tp-clamp-collar { fill: none; stroke: var(--tp-glass); stroke-width: 3; stroke-linecap: round; }
.transpiration-potometer .tp-mobile-label { display: none; }
@container (max-width: 640px) {
  .transpiration-potometer .tp-mobile-label { display: block; }
  .transpiration-potometer .tp-desktop-label { display: none; }
}
.transpiration-potometer .tp-vascular-bundle { fill: var(--tp-surface); stroke: var(--tp-glass); stroke-width: 1.3; }
.transpiration-potometer .tp-leaf-xylem-route, .transpiration-potometer .tp-leaf-xylem { fill: color-mix(in srgb, var(--tp-water) 14%, var(--tp-surface)); stroke: var(--tp-glass); stroke-width: 1; }
.transpiration-potometer .tp-leaf-phloem { fill: color-mix(in srgb, #cf9a95 18%, var(--tp-surface)); stroke: var(--tp-glass); stroke-width: 1; }
.transpiration-potometer .tp-shell details { border: 0; background: transparent; box-shadow: none; border-radius: 0; padding: 0; margin: 8px 0 0; color: inherit; }
.transpiration-potometer .tp-shell details > summary { position: static; margin: 0; padding: 10px 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; display: list-item; list-style-type: disclosure-closed; color: var(--tp-muted); }
.transpiration-potometer .tp-shell details[open] > summary { list-style-type: disclosure-open; }
.transpiration-potometer .tp-shell details > summary::before, .transpiration-potometer .tp-shell details > summary::after { display: none; content: none; }
.transpiration-potometer .tp-shell details > summary::marker { content: normal; color: var(--tp-muted); }
@container (max-width: 400px) {
  .transpiration-potometer .tp-water-focus .tp-phase-label { font-size: 16px; }
}

/* One viewport-sized working surface; only supporting reading scrolls. */
.transpiration-potometer .tp-shell {
  height: max(440px, calc(100svh - var(--interactive-viewport-offset, 96px)));
  max-height: 900px;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  padding: 14px 18px;
  overflow: hidden;
}
.transpiration-potometer .tp-heading { padding-bottom: 8px; align-items: center; }
.transpiration-potometer .tp-heading h2 { font-size: 22px; }
.transpiration-potometer .tp-heading p:last-child { display: none; }
.transpiration-potometer .tp-view-tabs { margin: 0 0 8px; padding: 0; }
.transpiration-potometer [data-panel] { min-height: 0; position: relative; }
.transpiration-potometer [data-panel="water"] { display: grid; grid-template-rows: minmax(150px, 1fr) 66px minmax(90px, 150px); }
.transpiration-potometer .tp-water-diagram { min-height: 0; height: 100%; display: block; }
.transpiration-potometer .tp-water-overview,
.transpiration-potometer .tp-water-focus { height: 100%; }
.transpiration-potometer .tp-water-diagram svg { width: 100%; height: 100%; object-fit: contain; }
.transpiration-potometer .tp-route-heading { margin: 0; padding: 8px 0; align-items: center; }
.transpiration-potometer .tp-route-heading h3 { margin: 0; font-size: 17px; }
.transpiration-potometer .tp-step-counter { font-size: 11px; margin-bottom: 2px; }
.transpiration-potometer .tp-water-inspector { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 5px 4px 0 0; scrollbar-gutter: stable; }
.transpiration-potometer .tp-water-inspector > p { font-size: 14px; }
.transpiration-potometer .tp-water-footer { margin-top: 8px; padding-top: 8px; }
.transpiration-potometer .tp-course-note { margin: 10px 0 0; }
.transpiration-potometer [data-panel="measure"] { display: grid; grid-template-rows: minmax(180px, 1fr) minmax(120px, auto) 44px 52px; gap: 6px; --tp-primary-row-height: 52px; --tp-measure-gap: 6px; }
.transpiration-potometer .tp-apparatus { min-height: 0; height: 100%; padding: 0; display: grid; grid-template-rows: minmax(0, 1fr) 62px; position: relative; }
.transpiration-potometer .tp-apparatus-overview { min-height: 0; height: 100%; }
.transpiration-potometer .tp-apparatus-overview svg { height: 100%; min-height: 0; object-fit: contain; }
.transpiration-potometer .tp-readouts { padding: 5px 10px; gap: 8px; flex-wrap: nowrap; }
.transpiration-potometer .tp-readouts strong { font-size: 22px; }
.transpiration-potometer .tp-readouts span { font-size: 12px; }
.transpiration-potometer .tp-readouts > div:last-child { flex-basis: auto; }
.transpiration-potometer .tp-main-controls { gap: 12px; }
.transpiration-potometer .tp-factor-select,
.transpiration-potometer .tp-duration-control { gap: 2px; }
.transpiration-potometer .tp-main-controls label { font-size: 13px; }
.transpiration-potometer .tp-main-controls .tp-range-ends { display: none; }
.transpiration-potometer .tp-run-actions { padding: 4px 0; margin: 0; flex-wrap: nowrap; }
.transpiration-potometer .tp-run-actions button { padding-inline: 12px; }
.transpiration-potometer .tp-apparatus-choice { display: none; }
.transpiration-potometer .tp-reading-drawer { min-height: 0; margin: 0 !important; }
.transpiration-potometer .tp-reading-drawer > summary { height: 44px; font-size: 14px; }
.transpiration-potometer .tp-reading-content {
  margin: 0 !important;
  /* The drawer covers settings only. Leave the notes toggle and primary run
     actions visible below, and the apparatus/readouts visible above. */
  position: absolute; z-index: 2; bottom: calc(44px + var(--tp-primary-row-height) + var(--tp-measure-gap)); left: 0; right: 0;
  max-height: max(0px, min(48%, calc(100% - var(--tp-apparatus-height, 200px) - 52px - var(--tp-primary-row-height) - var(--tp-measure-gap)))); overflow-y: auto; overscroll-behavior: contain;
  padding: 12px 16px; background: var(--tp-surface); border: 1px solid var(--tp-line);
  border-radius: 8px; box-shadow: 0 -6px 20px #0000000d;
}
@container (max-width: 640px) {
  .transpiration-potometer .tp-shell { padding: 10px 12px; }
  .transpiration-potometer .tp-heading { display: flex; gap: 8px; }
  .transpiration-potometer .tp-heading h2 { font-size: 18px; line-height: 1.2; }
  .transpiration-potometer .tp-heading > button { margin: 0; padding-inline: 9px; }
  .transpiration-potometer [data-panel="water"] { grid-template-rows: minmax(130px, 1fr) 72px minmax(90px, 130px); }
  .transpiration-potometer .tp-water-focus { max-width: none; }
  .transpiration-potometer .tp-route-heading h3 { font-size: 16px; }
  .transpiration-potometer .tp-step-counter { max-width: 25ch; }
  .transpiration-potometer [data-panel="measure"] { grid-template-rows: minmax(135px, 1fr) 123px 44px 48px; gap: 4px; --tp-primary-row-height: 48px; --tp-measure-gap: 4px; }
  .transpiration-potometer .tp-apparatus { grid-template-rows: minmax(0, 1fr) 54px; }
  .transpiration-potometer .tp-apparatus-overview { display: none; }
  .transpiration-potometer .tp-capillary-focus { display: block; min-height: 0; margin: 0; border: 0; padding-top: 0; }
  .transpiration-potometer .tp-capillary-focus svg { height: 100%; width: 100%; object-fit: contain; }
  .transpiration-potometer .tp-apparatus.is-overview .tp-apparatus-overview { display: block; padding-top: 28px; }
  .transpiration-potometer .tp-apparatus.is-overview .tp-capillary-focus { display: none; }
  .transpiration-potometer .tp-apparatus-choice { display: block; position: absolute; right: 4px; top: 0; z-index: 1; min-height: 28px; padding: 4px 8px; font-size: 12px; }
  .transpiration-potometer .tp-readouts { padding: 3px 6px; }
  .transpiration-potometer .tp-readouts strong { font-size: 19px; }
  .transpiration-potometer .tp-readouts span { font-size: 11px; }
  .transpiration-potometer .tp-main-controls { grid-template-columns: minmax(0, 1fr) 82px; gap: 4px 12px; }
  .transpiration-potometer .tp-main-controls .tp-setting-line { min-height: 18px; line-height: 18px; }
  .transpiration-potometer .tp-run-actions button { flex: 1 1 auto; padding: 8px 7px; font-size: 13px; }
}

/* Clip at the actual artwork viewport, with readable labels after containment. */
.transpiration-potometer .tp-water-overview,
.transpiration-potometer .tp-water-focus { align-content: center; justify-items: center; }
.transpiration-potometer .tp-water-overview { display: grid; }
.transpiration-potometer .tp-water-diagram svg { overflow: hidden; margin: auto; }
@container (max-width: 640px) {
  .transpiration-potometer .tp-water-overview { display: none; }
  .transpiration-potometer .tp-water-focus { display: grid; }
}

.transpiration-potometer .tp-capillary-focus,
.transpiration-potometer .tp-apparatus-overview { overflow: hidden; }
.transpiration-potometer .tp-capillary-focus svg,
.transpiration-potometer .tp-apparatus-overview svg { overflow: hidden; margin: auto; }
@container (max-width: 640px) {
  .transpiration-potometer .tp-reading-content .tp-apparatus-choice { position: static; min-height: 44px; padding: 8px 12px; font-size: 14px; margin-bottom: 8px; }
  .transpiration-potometer .tp-apparatus.is-overview .tp-apparatus-overview { padding-top: 0; }
  .transpiration-potometer .tp-apparatus-overview .tp-apparatus-labels { display: none; }
}

@container (max-width: 640px) {
  .transpiration-potometer .tp-apparatus-overview svg text { display: none; }
}
