.c338-page { background-position:center,right center; }
.c338-lab { --amb-ink:#eaf2e8; --amb-edge:#6d95937c; color:var(--amb-ink); min-width:0; }
.c338-lab header { margin:0 0 1.25rem; max-width:73ch; }
.c338-lab header h2 { color:#f4f1df; font-size:clamp(1.55rem,3.3vw,2.3rem); margin:0 0 .7rem; line-height:1.22; }
.c338-lab header p,.c338-note { color:#c6dbd4; line-height:1.58; margin:.5rem 0 0; }
.c338-layout { display:grid; grid-template-columns:minmax(215px,260px) minmax(0,1fr); gap:1.2rem; align-items:start; }
.c338-lab aside,.c338-board,.c338-records { min-width:0; border:1px solid var(--amb-edge); border-radius:12px; background:#112b32; }
.c338-lab aside { padding:1rem; }
.c338-board { overflow:hidden; }
.c338-lab aside label,.c338-decision label { display:grid; gap:.45rem; font-weight:650; margin:0 0 .8rem; }
.c338-lab select { width:100%; min-width:0; max-width:100%; font:inherit; font-size:.91rem; color:#e6f4e6; background:#16372f; border:1px solid #81a49a; border-radius:6px; padding:.6rem; }
.c338-lab button:not(.chem-bench-point) { min-height:42px; background:#193d45; border:1px solid #83a39c; border-radius:7px; color:#e7f4ec; font:650 .88rem/1.3 system-ui,sans-serif; padding:.65rem .7rem; cursor:pointer; }
.c338-lab button[data-start]:enabled { color:#173124; background:#d6eb9d; border-color:#e5f3c3; }
.c338-lab button:disabled,.c338-lab select:disabled { opacity:.56; cursor:default; }
.c338-lab :is(button,select,[tabindex]):focus-visible { outline:2px solid #dcf4a5; outline-offset:3px; }
.c338-commands { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.5rem; }
.c338-commands [data-start] { grid-column:1/-1; }
.c338-lab [data-status] { color:#d6e5c2; font-size:.88rem; min-height:2.5em; margin:.7rem 0 0; }
.c338-lab [data-stages] { margin:1rem 0; padding-left:1.7rem; display:grid; gap:.3rem; font-size:.87rem; color:#d1e0d6; }
.c338-lab [data-stages] li { padding:.35rem .4rem; }
.c338-lab li[aria-current=step] { color:#f0f8d8; background:#2a4438; border-radius:4px; }
.c338-lab li.is-complete { color:#bfd9a6; }
.c338-lab li.is-complete::marker { content:'✓  '; }
.c338-lab svg { display:block; width:100%; aspect-ratio:900/455; height:auto; }
.c338-lab svg :is(path,rect,circle,ellipse) { animation:none; filter:none; }
.c338-lab svg text { stroke:none; paint-order:normal; }
.c338-lab .chem-bench-hint { background:#112b32; color:#dcebbd; }
.c338-readings { display:grid; grid-template-columns:repeat(auto-fit,minmax(125px,1fr)); margin:0; border-top:1px solid var(--amb-edge); }
.c338-readings div { padding:.65rem .8rem; min-width:0; border-right:1px solid #76928f36; }
.c338-readings dt { color:#c4dcd2; font-size:.8rem; }
.c338-readings dd { margin:.35rem 0 0; color:#e6f1c8; font-weight:750; font-variant-numeric:tabular-nums; }
.c338-observation { background:#1e3a38; border-left:3px solid #b9da8e; border-radius:5px; padding:.85rem 1rem; line-height:1.55; }
.c338-records { padding:1rem; margin-top:1rem; }
.c338-records h3 { margin:0 0 .75rem; color:#e8efcb; }
.c338-records [role=region] { overflow:auto; }
.c338-records table { width:100%; border-collapse:collapse; text-align:left; font-size:.92rem; }
.c338-records :is(td,th) { padding:.6rem .75rem; border-bottom:1px solid #789d985c; white-space:nowrap; }
.c338-records th { color:#d6e5b7; }
.c338-orbit { display:flex; flex-wrap:wrap; align-items:center; gap:.5rem; padding:.5rem; border-bottom:1px solid var(--amb-edge); }
.c338-orbit span { margin-right:auto; color:#cddfca; font-size:.84rem; }
.c338-decision { margin-top:.9rem; }
.c338-note { font-size:.87rem; }
@media(max-width:880px) {
  .c338-layout { grid-template-columns:minmax(0,1fr); }
}
@media(max-width:500px) {
  .c338-layout { gap:.75rem; }
  .c338-readings { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .c338-readings div { padding:.55rem; }
  .c338-lab .chem-bench-surface .chem-bench-overlay > button.chem-bench-point { width:27px; height:27px; }
}
.c338-legend { display:flex; flex-wrap:wrap; gap:.45rem 1rem; list-style:none; padding:.55rem .8rem; margin:0; border-top:1px solid var(--amb-edge); font-size:.82rem; color:#e1ece4; }
.c338-legend li { display:inline-flex; align-items:center; gap:.35rem; }
.c338-legend i { width:.7rem; height:.7rem; border-radius:50%; flex:none; }
.c339-progress { display:grid; grid-template-columns:minmax(0,1fr) minmax(75px,25%); align-items:center; gap:.6rem; padding:.65rem .8rem; border-bottom:1px solid var(--amb-edge); background:#183940; color:#eef2dd; font-size:.9rem; font-weight:650; }
.c339-progress progress { width:100%; height:.65rem; accent-color:#cee59c; }
.c338-commands [data-reset] { grid-column:1/-1; }
.c338-commands [data-repeat] { grid-column:1/-1; }
.c338-lab .chem-bench-hint { min-height:2.45rem; }
.c339-chart { margin:0 0 1rem; padding:.7rem .85rem; border:1px solid #6e969366; border-radius:7px; background:#17353d; }
.c339-chart figcaption { font-weight:650; color:#e2efc9; margin-bottom:.5rem; }
.c338-lab .c339-chart svg { width:min(100%,560px); aspect-ratio:auto; }
.c339-chart ul { display:grid; gap:.45rem; list-style:none; padding:0; margin:0; }
.c339-chart li { display:grid; grid-template-columns:minmax(0,1fr) minmax(50px,35%) auto; align-items:center; gap:.6rem; font-size:.84rem; }
.c339-chart strong { font-variant-numeric:tabular-nums; }
.c339-track { height:.63rem; border-radius:10px; background:#0d252c; }
.c339-track i { display:block; height:100%; border-radius:inherit; background:#b9d995; }
@media(max-width:500px) {
  .c338-lab [data-stages] li:not([aria-current=step]) { display:none; }
  .c338-lab [data-stages] { margin:.55rem 0; }
  .c338-lab [data-status] { min-height:0; }
  .c338-lab svg text { font-weight:750; }
  .c339-chart li { grid-template-columns:minmax(0,1fr) auto; }
  .c339-chart .c339-track { grid-row:2; grid-column:1/-1; }
}
.c340-view-controls { display:none; align-items:center; flex-wrap:wrap; gap:.4rem .65rem; padding:.55rem .7rem; border-bottom:1px solid var(--amb-edge); font-size:.8rem; }
.c340-view-controls span { color:#d1e1d7; }
.c340-window { min-width:0; overflow:auto; }
.c340-window.is-enlarged .chem-bench-surface { min-width:660px; }
.c340-gesture { color:#f2dfae; font-size:.88rem; margin:0; }
.c340-gesture:not(:empty) { padding:.5rem .75rem; border-top:1px solid var(--amb-edge); }
.c338-lab [data-jump] { display:inline-block; margin-top:.65rem; color:#dcec9d; font-weight:650; text-decoration:underline; }
.c338-records :is(td,th) { white-space:normal; min-width:5rem; vertical-align:top; }
.c338-records th { background:#1c3a40; }
@media(max-width:880px) {
  .c340-view-controls { display:flex; }
  .c338-lab aside { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.55rem .7rem; }
  .c338-lab aside label { margin:0; align-content:start; font-size:.87rem; }
  .c338-lab aside :is([data-stages],.c338-commands,[data-status],[data-jump]) { grid-column:1/-1; }
  .c338-lab [data-stages] { display:none; }
  .c338-lab [data-status] { margin:0; min-height:0; }
  .c338-lab [data-jump] { margin-top:0; }
}
.c340-plan { margin-top:.85rem; color:#dce9d5; }
.c340-plan summary { cursor:pointer; font-weight:650; color:#dcebaa; width:fit-content; }
.c340-plan ol { margin:.65rem 0 0; padding-left:1.4rem; }
.c340-plan li { padding:.25rem 0; line-height:1.45; }
