body {
  background: #f3f7fa;
}

.zsa-mmt {
  max-width: 1272px;
  padding-top: 22px;
  background: transparent;
  color: #334c61;
  font-size: 15px;
  line-height: 1.5;
}

.zsa-mmt .zsa-mmt-stations {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.zsa-mmt-stations button {
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: center;
  align-items: center;
  gap: 2px 8px;
  min-width: 0;
  min-height: 68px;
  padding: 8px 14px;
  border: 1px solid #c6d6e1;
  border-radius: 9px;
  background: #fff;
  color: #173a56;
  text-align: left;
}

.zsa-mmt-stations button:hover,
.zsa-mmt-bottles button:hover {
  background: #eef5fa;
}

.zsa-mmt-stations button[aria-pressed="true"],
.zsa-mmt-bottles button[aria-pressed="true"] {
  border-color: #3f7691;
  background: #e8f3f9;
  box-shadow: inset 0 0 0 1px #3f7691;
}

.zsa-mmt-stations button small {
  grid-column: 1 / -1;
  color: #46627a;
  font-size: 12px;
  font-weight: 600;
}

.zsa-mmt-stations strong {
  font-size: 15px;
  font-weight: 650;
  line-height: 1.25;
}

.zsa-mmt-tag {
  justify-self: start;
  padding: 3px 8px;
  border-radius: 5px;
  background: #f7eedb;
  color: #694b24;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.3;
}

.zsa-mmt-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.zsa-mmt-panel {
  min-width: 0;
  padding: 16px;
  border: 1px solid #cedce7;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 13px #193e5510;
}

.zsa-mmt-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
}

.zsa-mmt .zsa-mmt-restart {
  margin-left: auto;
}

.zsa-mmt-panel h2 {
  margin: 0;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 650;
  letter-spacing: -.025em;
}

.zsa-mmt-instruction {
  min-height: 1.5em;
  margin: 8px 0 12px;
}

.zsa-mmt-bottles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}

.zsa-mmt-bottles button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  min-width: 0;
  min-height: 53px;
  padding: 5px 8px;
  border: 1px solid #ccdbe5;
  border-radius: 8px;
  background: #f8fbfd;
  color: #193951;
  text-align: left;
  font-size: 14px;
  font-weight: 580;
  line-height: 1.2;
}

.zsa-mmt-bottles button svg {
  flex: 0 0 24px;
  width: 24px;
  height: 36px;
}

.zsa-mmt-bottle-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.45em;
  min-height: 1.45em;
  border-radius: 4px;
  background: #e9eff3;
  color: #243f53;
  font-size: 12px;
  font-weight: 700;
}

.zsa-mmt [data-liquid="W"] {
  --mmt-liquid-fill: url(#mmt-water);
  --mmt-liquid-stroke: #8bdef6;
  --mmt-bottle-fill: #42aee2;
  --mmt-key-fill: #deeffb;
  --mmt-key-ink: #0b5076;
}

.zsa-mmt [data-liquid="G"],
.zsa-mmt [data-liquid="O"] {
  --mmt-liquid-fill: url(#mmt-clear);
  --mmt-liquid-stroke: #ddf1f8;
  --mmt-bottle-fill: #d1e4e9;
}

.zsa-mmt [data-liquid="M"] {
  --mmt-liquid-fill: url(#mmt-oil);
  --mmt-liquid-stroke: #ffa68b;
  --mmt-bottle-fill: #df695c;
  --mmt-key-fill: #f9e7e1;
  --mmt-key-ink: #852f2a;
}

.zsa-mmt-bottle-code {
  background: var(--mmt-key-fill, #e9eff3);
  color: var(--mmt-key-ink, #243f53);
}

.zsa-mmt-bottle-liquid {
  fill: var(--mmt-bottle-fill);
}

.zsa-mmt-scene {
  display: grid;
  grid-template-columns: minmax(0, 218fr) minmax(0, 420fr);
  gap: 6px;
  padding: 6px;
  border: 1px solid #263f50;
  border-radius: 9px;
  background: #142939;
}

.zsa-mmt-scene svg {
  display: block;
  width: 100%;
  height: auto;
}

.zsa-mmt-scene-label {
  fill: #e3eff4;
  font-size: 14px;
  font-weight: 600;
}

.zsa-mmt-scene-note {
  fill: #b9cfda;
  font-size: 11px;
  font-weight: 600;
}

.zsa-mmt-fluid {
  fill: var(--mmt-liquid-fill);
  stroke: var(--mmt-liquid-stroke);
  stroke-width: 1.1;
}

#wax-boxes .zsa-mmt-fluid {
  stroke: #536d76;
  stroke-width: .65;
}

#wax-boxes .zsa-mmt-wax-outline {
  fill: none;
  stroke: transparent;
  stroke-width: 1.3;
}

#wax-boxes [data-selected="true"] .zsa-mmt-wax-outline {
  stroke: #356381;
}

.zsa-mmt-box-code {
  fill: #364b57;
  font-size: 12px;
  font-weight: 700;
}

.zsa-mmt-glint {
  fill: #f7fbff;
  opacity: .45;
}

#ruler[data-draggable="true"] #ruler-hit {
  cursor: ew-resize;
  touch-action: none;
}

#height-ruler-ticks {
  color: #28281f;
  fill: #28281f;
  font-size: 9px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  text-anchor: middle;
}

.zsa-mmt-height-unit {
  fill: #d9e7ee;
  font-size: 8px;
  font-weight: 650;
}

#ruler-ticks {
  fill: #28281f;
  font-size: 9px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  text-anchor: middle;
}

.zsa-mmt .zsa-btn {
  padding: 6px 10px;
  border-color: #becfdd;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.zsa-mmt .zsa-mmt-primary:not([aria-disabled="true"]) {
  border-color: #174d70;
  background: #174d70;
  color: #fff;
}

.zsa-mmt .zsa-mmt-primary:hover:not([aria-disabled="true"]) {
  border-color: #103955;
  background: #103955;
}

.zsa-mmt .zsa-mmt-quiet {
  background: transparent;
}

.zsa-mmt .zsa-mmt-quiet:hover {
  background: #eef5fa;
}

.zsa-mmt .zsa-btn[aria-disabled="true"],
.zsa-mmt .zsa-btn[aria-disabled="true"]:hover {
  border-color: #d1dce5;
  background: #f4f7f9;
  color: #536778;
}

.zsa-mmt-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
}

.zsa-mmt-sample-status {
  flex: 1 1 135px;
  margin: 0 4px;
  color: #3e5b6e;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}


.zsa-mmt-measure {
  display: grid;
  grid-template-columns: auto minmax(75px, 1fr) auto;
  gap: 5px 10px;
  align-items: center;
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid #cbdde9;
  border-radius: 8px;
  background: #f3f8fb;
}

.zsa-mmt-measure label {
  font-size: 13px;
  font-weight: 650;
}

.zsa-mmt-measure input {
  width: 100%;
  height: 44px;
  margin: 0;
  accent-color: #174d70;
}

.zsa-mmt-measure p {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 13px;
}

#edge-reading:not(:empty) {
  padding: 5px 0 2px;
  color: #173e54;
  font-weight: 650;
}

.zsa-mmt-model {
  margin-top: 16px;
  font-size: 14px;
}

.zsa-mmt-model summary {
  width: fit-content;
  min-height: 44px;
  padding: 10px 0;
  cursor: pointer;
}

.zsa-mmt-model p {
  max-width: 68ch;
  margin: 0 0 10px;
}

/* Keep formula subscripts from widening the gap between lines. */
.zsa-mmt sub {
  line-height: 0;
}

.zsa-mmt .zsa-about {
  margin-inline: 0;
}

.zsa-mmt .zsa-mmt-close {
  min-width: 44px;
  font-size: 24px;
}

.zsa-mmt-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.zsa-mmt-shot-liquid {
  fill: var(--mmt-bottle-fill);
  fill-opacity: .62;
  stroke: var(--mmt-liquid-stroke);
  stroke-opacity: .7;
  stroke-width: .7;
}

.zsa-mmt-shot-liquid[data-liquid="G"],
.zsa-mmt-shot-liquid[data-liquid="O"] {
  fill-opacity: .18;
  stroke-opacity: .58;
}

.zsa-mmt-shot-rack-outline {
  fill: transparent;
  stroke: transparent;
}

#shot-rack-content [data-selected="true"] .zsa-mmt-shot-rack-outline {
  fill: #254656;
  stroke: #7bb1c8;
}

/* Rack tubes can be clicked to select them. */
#shot-rack-content [data-shot-rack-tube] {
  cursor: pointer;
}

#shot-rack-content [data-shot-rack-tube]:hover .zsa-mmt-shot-rack-outline {
  stroke: #5d8ea6;
}

.zsa-mmt-shot-markers {
  fill: #b7d0da;
  font-size: 13px;
}

.zsa-mmt-shot-markers [data-active="true"] {
  fill: #f4d783;
  stroke: #ffe8ad;
}

.zsa-mmt-bottles.zsa-mmt-shot-tubes button {
  justify-content: center;
  min-height: 44px;
  text-align: center;
}

/* An event-timed digital stopwatch: a dark case, a crown button and a green LCD screen. */
.zsa-mmt-stopwatch {
  position: relative;
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 14px 14px 12px;
  border: 1px solid #0f1d26;
  border-radius: 22px;
  background: linear-gradient(160deg, #3a5262, #1c2c37 55%, #142129);
  box-shadow: inset 0 1px 0 #ffffff2e, 0 4px 10px #0b1a2433;
  color: #d6e4ea;
}

.zsa-mmt-stopwatch-crown {
  position: absolute;
  top: -10px;
  left: 50%;
  width: 34px;
  height: 10px;
  border: 1px solid #0f1d26;
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(#7d97a6, #3d5564);
  transform: translateX(-50%);
}

.zsa-mmt .zsa-mmt-stopwatch-label {
  margin: 0;
  color: #d6e4ea;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}

.zsa-mmt-stopwatch-screen {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 62px;
  padding: 6px 14px 6px 26px;
  border: 2px solid #0c171e;
  border-radius: 8px;
  background: linear-gradient(180deg, #c3d1ab, #a9bb8f);
  box-shadow: inset 0 2px 5px #0000004d;
}

/* Run indicator: lit while the stopwatch is timing. */
.zsa-mmt-stopwatch-screen::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1c2a17;
  opacity: .14;
  transform: translateY(-50%);
}

.zsa-mmt-stopwatch[data-state="running"] .zsa-mmt-stopwatch-screen::before {
  opacity: .85;
}

.zsa-mmt-stopwatch-digits {
  color: #17230f;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 34px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  line-height: 1;
  text-shadow: 1px 1px 0 #17230f1f;
  white-space: nowrap;
}

.zsa-mmt-stopwatch[data-state="paused"] .zsa-mmt-stopwatch-digits,
.zsa-mmt-stopwatch[data-state="ready"] .zsa-mmt-stopwatch-digits {
  color: #2f3e27;
}

.zsa-mmt .zsa-mmt-stopwatch-note {
  margin: 0;
  color: #c9d8df;
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
}

/* A small version of the stopwatch for elapsed settling and stand time. */
.zsa-mmt .zsa-mmt-mini-stopwatch {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
  padding: 5px 6px 5px 10px;
  border-radius: 14px;
}

.zsa-mmt-mini-stopwatch .zsa-mmt-stopwatch-crown {
  top: -7px;
  width: 22px;
  height: 7px;
}

.zsa-mmt .zsa-mmt-mini-stopwatch .zsa-mmt-stopwatch-label {
  font-size: 10px;
  letter-spacing: .06em;
}

.zsa-mmt-mini-stopwatch .zsa-mmt-stopwatch-screen {
  min-height: 32px;
  min-width: 74px;
  padding: 3px 9px 3px 20px;
  border-radius: 6px;
}

.zsa-mmt-mini-stopwatch .zsa-mmt-stopwatch-screen::before {
  left: 8px;
  width: 6px;
  height: 6px;
}

.zsa-mmt-mini-stopwatch .zsa-mmt-stopwatch-digits {
  font-size: 20px;
}

.zsa-mmt-stopwatch[data-state="stopped"] .zsa-mmt-stopwatch-digits {
  color: #17230f;
}

.zsa-mmt-mix-scene {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.zsa-mmt-mix-rack {
  flex: 1 1 238px;
  min-width: 0;
  padding: 8px 5px 10px;
  border: 1px solid #38566a;
  border-radius: 7px;
  background: #182f41;
}

.zsa-mmt-mix-rack h3 {
  margin: 0 0 7px;
  color: #e6f1f5;
  font-size: 14px;
  text-align: center;
}

.zsa-mmt-mix-slots {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  border-block-end: 5px solid #55798a;
  border-radius: 4px;
  background: #203c4d;
}

.zsa-mmt-mix-slot {
  display: grid;
  justify-items: center;
  min-width: 0;
  min-height: 44px;
  padding: 4px 0 3px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #e8f5fa;
  font-weight: 650;
}

.zsa-mmt-mix-slot:hover,
.zsa-mmt-mix-slot[aria-pressed="true"] {
  border-color: #82b5cb;
  background: #315367;
}

.zsa-mmt .zsa-mmt-mix-slot:focus-visible {
  outline-color: #acdff2;
  outline-offset: -2px;
}

.zsa-mmt-mix-slots .zsa-mmt-mix-slot svg {
  width: 30px;
  max-width: 95%;
  height: 70px;
}

#mix-inspection {
  flex: 2 1 265px;
  width: 0;
  min-width: 0;
}

.zsa-mmt-mix-boundary,
.zsa-mmt-mix-meniscus {
  fill: none;
  stroke-width: 1.6;
}

.zsa-mmt-mix-boundary {
  stroke: #b0e1ec;
}

.zsa-mmt-mix-meniscus {
  stroke: #f2fafb;
}

.zsa-mmt-mix-refraction {
  fill: none;
  stroke: #e6f7f9;
  stroke-width: 1.3;
  stroke-linecap: round;
}

.zsa-mmt-mix-surface path {
  stroke: #d2e4ed;
  stroke-dasharray: 2 2;
}

.zsa-mmt-mix-surface text,
.zsa-mmt-waste-label {
  fill: #e3eff4;
  font-size: 11px;
}

.zsa-mmt-mix-recipe,
.zsa-mmt-mix-progress {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
  margin-top: 8px;
  font-size: 13px;
}

.zsa-mmt-mix-recipe output {
  font-variant-numeric: tabular-nums;
}

.zsa-mmt-mix-pipettes {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px 8px;
  max-width: 440px;
  margin-top: 8px;
  font-size: 13px;
}

.zsa-mmt .zsa-mmt-mix-amount {
  margin: 0;
  color: #3e5b6e;
}

/* 1-octanol is the one liquid with a 0.5 mL portion. While it is chosen, the note stands out. */
.zsa-mmt-mix-amount[data-emphasis="true"] {
  padding: 4px 8px;
  border-left: 4px solid #b3591a;
  border-radius: 4px;
  background: #fdf0e3;
  color: #6b3208;
  font-weight: 700;
}

/* Buttons that carry the eyedropper icon beside their text. The flex layout must not override [hidden]. */
.zsa-mmt .zsa-mmt-icon-btn:not([hidden]) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.zsa-mmt-btn-icon {
  flex: none;
  width: 18px;
  height: 18px;
}

.zsa-mmt-btn-icon[hidden] {
  display: none;
}

.zsa-mmt-mix-pipettes label {
  align-self: end;
  font-weight: 650;
}

.zsa-mmt-mix-pipettes select {
  min-width: 0;
  min-height: 44px;
  padding: 4px 7px;
  border: 1px solid #b4c6d1;
  border-radius: 6px;
  background: #fff;
  color: #213e51;
  font: inherit;
}

.zsa-mmt-mix-progress {
  justify-content: flex-start;
  font-weight: 650;
}

.zsa-mmt-mix-observation {
  margin: 7px 0 0;
  color: #173e54;
  font-size: 13px;
  font-weight: 650;
}

.zsa-mmt-mix-observation:empty {
  margin: 0;
}

/* Intro screen: the four liquids, their Lewis structures and molar masses. */
.zsa-mmt-intro {
  padding: 18px;
  border: 1px solid #cedce7;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 13px #193e5510;
}

.zsa-mmt-intro h2 {
  margin: 0;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 650;
  letter-spacing: -.02em;
}

.zsa-mmt-intro-lead {
  max-width: 78ch;
  margin: 8px 0 14px;
  font-size: 16px;
}

.zsa-mmt .zsa-mmt-liquids {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.zsa-mmt-liquid-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #d3e0e9;
  border-radius: 10px;
  background: #f8fbfd;
}

.zsa-mmt-liquid-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}

.zsa-mmt-liquid-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 650;
}

.zsa-mmt-liquid-tint {
  margin-left: auto;
  color: #46627a;
  font-size: 13px;
}

.zsa-mmt-lewis-frame {
  display: grid;
  place-items: center;
  min-height: 120px;
  padding: 6px;
  border-radius: 8px;
  background: #fff;
}

/* Every structure keeps the same atom size and only shrinks to fit a narrow card. */
.zsa-mmt-lewis {
  max-width: 100%;
  height: auto;
  color: #1d3446;
}

/* The stylesheet's display rules would otherwise override the hidden attribute. */
.zsa-mmt #intro[hidden],
.zsa-mmt #stations[hidden],
.zsa-mmt #workspace[hidden] {
  display: none;
}

.zsa-mmt-lewis-atoms {
  fill: currentColor;
  font-size: 15px;
  font-weight: 650;
  text-anchor: middle;
  dominant-baseline: central;
}

.zsa-mmt-lewis-atoms .zsa-mmt-lewis-o {
  fill: #b0352a;
}

.zsa-mmt-lewis-bonds {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.zsa-mmt-lewis-pairs {
  fill: #b0352a;
}

/* Mineral oil: brackets around the repeating CH2 unit, with its repeat count n. */
.zsa-mmt-lewis-bonds .zsa-mmt-lewis-bracket {
  stroke-width: 1.8;
}

.zsa-mmt-lewis-atoms .zsa-mmt-lewis-n {
  font-size: 14px;
  font-style: italic;
}

.zsa-mmt .zsa-mmt-lewis-caption {
  margin: 2px 0 0;
  color: #46627a;
  font-size: 12px;
  text-align: center;
}

.zsa-mmt .zsa-mmt-liquid-facts {
  display: grid;
  gap: 8px;
  margin: 0;
}

/* The molar mass row carries its bar, so the bar reads as the mass. */
.zsa-mmt .zsa-mmt-mass dd {
  display: grid;
  gap: 4px;
}

.zsa-mmt-liquid-facts dt {
  color: #46627a;
  font-size: 12px;
  font-weight: 650;
}

.zsa-mmt .zsa-mmt-liquid-facts dd {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.zsa-mmt-liquid-facts sub {
  line-height: 0;
}

/* Bar lengths compare molar masses, with mineral oil's roughly 300 g/mol as the full width. */
.zsa-mmt-mass-bar {
  display: block;
  height: 10px;
  border-radius: 4px;
  background: #e3ecf2;
  overflow: hidden;
}

.zsa-mmt-mass-bar span {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: #3f7691;
}

[data-liquid="W"] .zsa-mmt-mass-bar span { width: 6%; }
[data-liquid="G"] .zsa-mmt-mass-bar span { width: 31%; }
[data-liquid="O"] .zsa-mmt-mass-bar span { width: 43%; }
[data-liquid="M"] .zsa-mmt-mass-bar span { width: 100%; }

.zsa-mmt .zsa-mmt-intro-note {
  margin: 10px 0 0;
  color: #46627a;
  font-size: 13px;
}

/* The Start button sits beside the heading so students see it first. */
.zsa-mmt-intro-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
}

.zsa-mmt .zsa-mmt-intro-top .zsa-btn {
  min-height: 44px;
  padding-inline: 22px;
  font-size: 16px;
}

.zsa-mmt .zsa-mmt-intro-tests {
  max-width: 78ch;
  margin: 0 0 14px;
}

@media (max-width: 700px) {
  .zsa-mmt .zsa-mmt-liquids {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* With no notebook column, wide screens put each station's controls beside its scene so the whole bench fits without scrolling. */
@media (min-width: 1000px) {
  #wax-bench:not([hidden]),
  #shot-bench:not([hidden]),
  #mixing-bench:not([hidden]) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(270px, 300px);
    grid-auto-rows: min-content;
    column-gap: 14px;
    align-items: start;
  }

  #wax-bench > *,
  #shot-bench > *,
  #mixing-bench > * {
    grid-column: 2;
  }

  #wax-bench > .zsa-mmt-scene,
  #shot-bench > .zsa-mmt-scene,
  #mixing-bench > .zsa-mmt-scene {
    grid-column: 1;
    grid-row: 1 / span 12;
  }

  #wax-bench > :first-child,
  #shot-bench > :first-child,
  #mixing-bench > .zsa-mmt-mix-recipe {
    margin-top: 0;
  }

  .zsa-mmt-bottles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .zsa-mmt-measure {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .zsa-mmt-measure label {
    grid-column: 1 / -1;
  }

  .zsa-mmt-sample-status {
    flex-basis: 100%;
  }

  /* Stack each pipette label above its menu so the full choice stays readable. */}

@media (max-width: 540px) {
  .zsa-mmt {
    padding: 14px 10px;
  }

  .zsa-mmt-panel {
    padding: 10px;
  }

  .zsa-mmt-stations button {
    grid-template-columns: 1fr;
    align-content: start;
    padding: 7px;
    overflow-wrap: anywhere;
  }

  .zsa-mmt-stations strong {
    font-size: 13px;
  }

  .zsa-mmt-tag {
    padding-inline: 5px;
    font-size: 11px;
  }

  .zsa-mmt-bottles button {
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding: 5px 2px;
    font-size: 12px;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .zsa-mmt-bottles button svg {
    flex-basis: auto;
    height: 31px;
  }

  .zsa-mmt-scene {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  #wax-paper,
  #shot-rack {
    max-width: 188px;
  }

  .zsa-mmt-mix-rack {
    padding-block: 5px 6px;
  }

  .zsa-mmt-mix-slots .zsa-mmt-mix-slot svg {
    width: 24px;
    height: 48px;
  }

  .zsa-mmt-sample-status {
    flex-basis: 100%;
  }

  .zsa-mmt-measure {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .zsa-mmt-measure label {
    grid-column: 1 / -1;
  }
}
