.a346-page { background-image:linear-gradient(90deg,#081921f0,#0d252cbf 55%,#0d252c59),var(--c318-background); }
.a346-page .c318-heading h1 { max-width:24ch; }
.a346-lab { color:#e5f2ef; min-width:0; }
.a346-lab header { max-width:76ch; margin:0 0 1.3rem; }
.a346-lab header span { font-weight:730; color:#bae2d2; font-size:.85rem; }
.a346-lab h2 { font:700 clamp(1.45rem,3vw,2.3rem)/1.2 Georgia,serif; margin:.45rem 0 .65rem; color:#f1f5e9; }
.a346-lab header p { margin:0; line-height:1.55; }
.a346-layout { display:grid; grid-template-columns:minmax(215px,285px) minmax(0,1fr); gap:1rem; align-items:start; }
.a346-controls,.a346-stage,.a346-result,.a346-status,.a346-readout { background:#102b36; border:1px solid #749e9c88; border-radius:.75rem; min-width:0; }
.a346-controls { display:grid; gap:.65rem; padding:.9rem; }
.a346-controls [data-spectro],.a346-controls [data-paper-controls] { display:grid; gap:.65rem; }
.a346-controls label { display:grid; gap:.35rem; font-size:.86rem; font-weight:700; color:#e1f0e9; }
#chemistry-study .a346-controls :is(select,input) {
  width:100%; min-width:0; max-width:100%; min-height:42px; padding:.5rem .55rem;
  color:#f1f7ed; background:#183b40; border:1px solid #779b95; border-radius:.4rem; font:inherit;
}
#chemistry-study .a346-lab button { padding:.5rem .65rem; line-height:1.22; font-size:.86rem; min-height:42px; }
#chemistry-study .a346-lab button[aria-pressed=true],#chemistry-study .a346-lab button[data-dose] {
  background:#d8eb9f; color:#17322b; border-color:#d8eb9f;
}
.a346-buttons { display:flex; flex-wrap:wrap; gap:.4rem; }
.a346-work { min-width:0; display:grid; gap:.7rem; }
.a346-stage { background:radial-gradient(ellipse at 50% 42%,#224655,#102b37 77%); overflow:hidden; }
.a346-stage svg { display:block; width:100%; height:auto; max-height:460px; margin:auto; }
.a346-stage svg text { fill:#edf7f3; font:650 16px system-ui,sans-serif; stroke:none; }
.a346-stage svg .small { font-size:13px; }
.a346-stage svg .center { text-anchor:middle; }
.a346-stage svg .end { text-anchor:end; }
.a346-stage svg .dark { fill:#243a3f; }
.a346-stage svg path { stroke-linecap:round; }
.a346-apparatus { position:relative; max-width:720px; margin:auto; }
.a346-result,.a346-status,.a346-readout { padding:.75rem .9rem; margin:0; line-height:1.5; }
.a346-result p { margin:.22rem 0; }
.a346-status { border-left:3px solid #c5e598; color:#edf4d5; overflow-wrap:anywhere; }
.a346-status:empty { display:none; }
.a346-readout [data-readings] { display:flex; flex-wrap:wrap; gap:.45rem .8rem; }
.a346-readout span { display:flex; flex-wrap:wrap; gap:.35rem; align-items:baseline; font-size:.85rem; }
.a346-readout strong { font-variant-numeric:tabular-nums; color:#eef7c9; }
.a346-readout .a346-indication { flex-basis:100%; font-weight:750; color:#f7d7eb; border-top:1px solid #7da0a166; padding-top:.45rem; }
.a346-chart svg { max-height:330px; }
.a346-method { padding:.85rem; overflow-wrap:anywhere; }
.a346-method p { margin:.35rem 0 0; }
.a346-limit { margin:.12rem 0; color:#d2e7df; font-size:.82rem; }
.a346-drop { animation:a346-fall .48s ease-in forwards; }
@media(max-width:775px) { .a346-layout { grid-template-columns:minmax(0,1fr); } }
@media(max-width:500px) {
  .a346-stage svg .small { font-size:15px; }
}
@media(prefers-reduced-motion:reduce){ .a346-drop { animation:none; } }
.a346-key { margin:0; padding:.55rem .8rem; color:#e3ece9; border-top:1px solid #749e9c55; font-size:.82rem; }

.a346-lesson-figure {
  margin:0 0 1.5rem;
  color:#e8f6ef;
}
.a346-lesson-figure svg { max-height:235px; }
.a346-lesson-figure figcaption {
  padding:.7rem 1rem;
  line-height:1.5;
  border-top:1px solid #749e9c55;
  font-size:.9rem;
}
.a346-page .c318-topics button { overflow-wrap:anywhere; }
.a346-page .c318-workspace fieldset { min-inline-size:0; overflow-wrap:anywhere; }
.a346-page .c318-workspace fieldset input { flex:none; }
.a346-controls .a346-hint { margin:0; color:#c9e7db; font-size:.83rem; line-height:1.5; }
.a346-steps {
  margin:.1rem 0;
  padding:0 0 0 1.35rem;
  color:#bed7d5;
  font-size:.85rem;
  line-height:1.6;
}
.a346-steps .current { color:#f6df9c; font-weight:750; }
.a346-steps .done::marker { content:"✓  "; color:#cce79f; }
.a346-result h3 { margin:.1rem 0 .5rem; color:#eff6d9; font-size:1.02rem; }
.a346-evidence { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.6rem; }
.a346-evidence p { display:grid; gap:.18rem; padding:.45rem .6rem; border-left:2px solid #74b5b3; }
.a346-evidence span { color:#d3e5e1; }
.a346-equation { display:flex; flex-wrap:wrap; align-items:center; gap:.45rem .7rem; padding:.65rem 0; }
.a346-fraction { display:inline-grid; text-align:center; line-height:1.45; }
.a346-fraction span:first-child { padding:.14rem .32rem; border-bottom:1px solid #e7f2da; }
.a346-fraction span:last-child { padding:.14rem .32rem; }
.a346-reagent-drop { animation:a346-reagent-fall .46s ease-in forwards; }
.a346-swirl { transform-box:fill-box; transform-origin:center bottom; animation:a346-agitate .52s ease-in-out; }
.a346-band { animation:a346-band-form .32s ease-out; }
.a346-stage [data-drag-cuvette] { cursor:grab; touch-action:none; }
.a346-stage [data-drag-cuvette]:active { cursor:grabbing; }
@keyframes a346-reagent-fall { to { transform:translateY(77px); opacity:0; } }
@keyframes a346-agitate {
  0%,100% { transform:rotate(0); }
  24% { transform:translateX(5px) rotate(4deg); }
  65% { transform:translateX(-5px) rotate(-4deg); }
}
@keyframes a346-band-form { from { opacity:.45; } }
@media(max-width:500px) {
  .a346-evidence { grid-template-columns:minmax(0,1fr); }
  .a346-layout { gap:.75rem; }
  .a346-lab .a346-status { font-size:.9rem; }
}
@media(prefers-reduced-motion:reduce) {
  .a346-drop,.a346-reagent-drop { display:none; }
  .a346-swirl,.a346-band { animation:none; }
}
.a348-bench,.a348-sampling-form { padding:.9rem 1rem; border-top:1px solid #7da0a166; background:#122d38; }
.a348-bench .a346-buttons,.a348-sampling-form .a346-buttons { gap:.55rem; }
.a348-bench p { margin:.15rem 0 .7rem; line-height:1.55; }
.a348-next { color:#f1e4b2; font-weight:700; }
.a348-portions,.a348-result-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.65rem; }
.a348-sampling-form h3 { margin:.1rem 0 .7rem; font-size:1rem; color:#e7f3ea; }
.a348-portions { margin-bottom:.8rem; }
.a348-portions small { color:#c4dcdd; font-weight:450; line-height:1.4; }
#chemistry-study .a346-lab :is(.a348-bench,.a348-sampling-form,.a348-lab-report) label { display:grid; gap:.32rem; color:#e5f1e9; font-size:.88rem; font-weight:650; }
#chemistry-study .a346-lab :is(.a348-bench,.a348-sampling-form,.a348-lab-report) :is(input,select) {
  min-width:0; width:100%; min-height:44px; color:#eff7f2; background:#183943; border:1px solid #79a5a6; border-radius:.38rem; padding:.45rem .55rem; font:inherit;
}
#chemistry-study .a348-bench label { max-width:16rem; margin-bottom:.65rem; }
#chemistry-study .a348-lab-report label { max-width:26rem; margin-bottom:.65rem; }
.a348-result-grid { margin:0 0 .85rem; }
.a348-result-grid div { min-width:0; padding:.55rem .65rem; border:1px solid #67929b66; border-radius:.4rem; }
.a348-result-grid dt { font-weight:750; }
.a348-result-grid dd { margin:.25rem 0 0; color:#cfe7e2; }
.a348-tube-signal { display:block; width:1.1rem; height:1.55rem; margin:0 0 .35rem; border:1px solid #a5d9df; border-radius:0 0 .4rem .4rem; background:#73a4b655; }
.a348-tube-signal.turbid { background:linear-gradient(transparent 16%,#ece7c8 88%); }
.a348-lab-tabs { margin:0 0 1.2rem; }
#chemistry-study .a348-lab-tabs [aria-pressed=true],#chemistry-study .a348-bench button[data-prep],
#chemistry-study .a348-bench button:is([data-stopcock],[data-mix-scene],[data-grav-action]):not(:disabled) {
  background:#d8eb9f; color:#17322b; border-color:#d8eb9f;
}
.a346-stage [data-apparatus-action],.a346-stage [data-tube-pick] { cursor:pointer; }
.a346-drop { opacity:0; animation-fill-mode:both; }
@keyframes a346-fall { from { transform:translateY(-3px); opacity:1; } to { transform:translateY(34px); opacity:0; } }
@media(max-width:540px) {
  .a348-bench,.a348-sampling-form { padding:.7rem; }
  .a348-result-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .a348-portions { grid-template-columns:minmax(0,1fr); }
  .a348-bench .a346-buttons button { flex:1 1 8.5rem; }
}

/* Analytical benches: separate guidance, instrument and readings. */
.a350-instrument-head { padding:.8rem 1rem 0; }
.a350-instrument-head p { margin:.6rem 0 .15rem; color:#f2e7bd; line-height:1.45; font-weight:700; }
.a350-checklist { display:flex; flex-wrap:wrap; gap:.35rem; list-style:none; margin:0; padding:0; }
.a350-checklist li { padding:.32rem .6rem; color:#c5dadd; background:#152e38; border:1px solid #64858b; border-radius:.35rem; font-size:.82rem; }
.a350-checklist li[aria-current] { color:#152b28; background:#dbeaa5; border-color:#dbeaa5; font-weight:800; }
.a350-checklist li.done::before { content:"✓ "; color:#c7e792; }
.a350-standards { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,8.2rem),1fr)); gap:.5rem; }
.a350-standards p { display:grid; gap:.15rem; padding:.45rem .65rem; border:1px solid #739597; border-radius:.4rem; }
.a350-standards span,.a346-lab [data-drag-hint] { color:#c6dde2; }
#chemistry-study .a346-lab :is([data-recover],[data-insert],[data-zero],[data-measure],[data-run]):not(:disabled) { color:#152b28; background:#dbeaa5; border-color:#dbeaa5; }
.a346-stage :is([data-layer-take],[data-eye-pick]) { cursor:pointer; }
.a350-sample-flow { animation:a350-sample-flow .7s linear; }
.a350-beam { animation:a350-read .55s ease-out both; }
@keyframes a350-sample-flow { from { stroke-dashoffset:35; } to { stroke-dashoffset:0; } }
@keyframes a350-read { from { stroke-dasharray:0 130; } to { stroke-dasharray:130 0; } }
@media(prefers-reduced-motion:reduce) { .a350-beam,.a350-sample-flow { animation:none; } }
.a350-settle { animation:a350-settle .65s ease-out both; }
.a350-cloud { animation:a350-cloud .55s .3s ease-out both; }
@keyframes a350-settle { from { transform:translateY(-22px); opacity:0; } }
@keyframes a350-cloud { from { opacity:0; } }
@media(prefers-reduced-motion:reduce) { .a350-settle,.a350-cloud { animation:none; } }
#chemistry-study .a346-stage svg { stroke:none; stroke-width:1; }
.a346-lab [data-drag-hint],.a346-lab [data-paper-next] { margin:0 0 .6rem; }
.a346-lab [data-optical-calc] { margin:0; }
