:root {
  --ink: #234c3b;
  --muted: #6c8276;
  --green: #119655;
  --line: #deebe2;
  --mint: #f4fbf7;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--mint);
  color: var(--ink);
  font:
    14px/1.5 Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
canvas:focus-visible {
  outline: 3px solid #65ac8a;
  outline-offset: 3px;
}
input[type="checkbox"] {
  accent-color: var(--green);
}
[hidden] {
  display: none !important;
}
#lab {
  max-width: 1600px;
  margin: auto;
  padding: 0 28px;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 92px;
}
.brand {
  display: flex;
  gap: 9px;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}
.brand img {
  width: 42px;
  height: 48px;
  object-fit: contain;
}
.brand b {
  font-size: 22px;
}
.brand b span {
  color: var(--green);
}
.brand small {
  display: block;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 2px;
}
.modes {
  display: flex;
  gap: 8px;
}
.modes button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 11px 18px;
  border-radius: 11px;
  font-weight: 650;
}
.modes button span {
  font-size: 10px;
  margin-right: 6px;
  color: #93aa9c;
}
.modes button.active {
  background: #e0f2e7;
  color: var(--green);
}
.help {
  border: 1px solid var(--line);
  background: white;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  color: var(--muted);
}
.workshop {
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 25px 25px 0;
  box-shadow: 0 8px 35px #345c3b05;
  overflow: hidden;
}
.heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.eyebrow {
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 1.8px;
  color: #7a9385;
}
h1 {
  font-size: clamp(23px, 2.5vw, 36px);
  line-height: 1.15;
  letter-spacing: -1.25px;
  margin: 7px 0 20px;
  font-weight: 650;
}
h1 span {
  color: var(--green);
}
h2 {
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.45px;
  margin: 4px 0 9px;
  font-weight: 650;
}
p {
  margin: 6px 0;
}
.transport,
.data-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
button.quiet,
.primary,
.text-button,
.bottom-toolbar button,
.view-tools button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 13px;
  background: white;
  color: var(--ink);
  font-weight: 600;
  font-size: 12px;
}
.primary {
  border-color: var(--green);
  background: var(--green);
  color: white;
}
.text-button {
  border-color: transparent;
  padding: 5px 9px;
  background: transparent;
  color: var(--muted);
}
.danger {
  color: #ac5650 !important;
}
.contextbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  gap: 12px;
  font-size: 11px;
}
.contextbar > div {
  display: flex;
  gap: 11px;
  align-items: center;
}
.state-tag {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1px;
  background: #e6f4ec;
  color: var(--green);
  padding: 5px 8px;
  border-radius: 4px;
}
select,
input[type="number"],
input[type="text"],
input:not([type]) {
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 8px;
  background: white;
  color: var(--ink);
}
.contextbar select {
  margin-left: 6px;
  max-width: 240px;
  font-size: 11px;
}
.task-panel {
  display: grid;
  grid-template-columns: 35px 1fr auto;
  gap: 14px;
  background: #f5faf7;
  border: 1px solid #e6eee8;
  border-radius: 12px;
  padding: 16px 18px;
  margin: 6px 0 17px;
}
.task-index {
  font-size: 23px;
  font-weight: 600;
  color: #a7c5b3;
}
.task-panel h2 {
  font-size: 16px;
}
.task-panel p {
  font-size: 12px;
  max-width: 850px;
}
.task-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
}
.task-actions label {
  font-size: 10px;
}
.task-actions input {
  display: block;
  width: 140px;
}
.interactionbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 11px;
}
.interactionbar > div {
  display: flex;
  gap: 13px;
  align-items: center;
}
.interactionbar label {
  white-space: nowrap;
}
.workspace-layout {
  display: grid;
  grid-template-columns: 115px minmax(0, 1fr) 220px;
  gap: 16px;
  min-height: 475px;
}
.parts {
  border-right: 1px solid #edf3ee;
  padding: 10px 12px 8px 0;
}
.part-group {
  margin: 13px 0 6px;
  font-size: 9px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.part {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 6px 3px;
  color: #4e6b5d;
  font-size: 11px;
  border-radius: 6px;
}
.part:hover,
.part.active {
  background: #e8f6ee;
  color: var(--green);
}
.part svg {
  width: 26px;
  height: 24px;
  flex-shrink: 0;
}
.tray-note {
  font-size: 10px;
  line-height: 1.5;
  color: #91a598;
  margin-top: 17px;
}
.stage {
  position: relative;
  background: #fbfdfb;
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 475px;
}
.stage-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 15px 17px;
  color: var(--muted);
  font-size: 10px;
  position: relative;
  z-index: 1;
}
.bench-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  padding: 0 12px 9px;
  border-bottom: 1px solid var(--line);
  background: #fbfdfb;
}
.bench-tools button,
.bench-tools select {
  border: 1px solid #d6e5db;
  border-radius: 7px;
  padding: 7px 9px;
  color: #42624f;
  background: white;
  font-size: 12px;
  font-weight: 600;
  min-height: 34px;
}
.bench-tools button[aria-pressed="true"] {
  background: #119655;
  color: white;
  border-color: #119655;
}
.bench-tools #bench-run {
  color: white;
  background: #234c3b;
  border-color: #234c3b;
}
kbd {
  font:
    10px ui-monospace,
    monospace;
  opacity: 0.6;
  margin-left: 5px;
}
.tool-divider {
  height: 20px;
  border-left: 1px solid var(--line);
  margin: 0 4px;
}
.apparatus-hint {
  margin: 0;
  padding: 7px 14px;
  min-height: 32px;
  color: #3c7456;
  font-size: 11px;
  background: #eff8f2;
}
#workspace {
  width: 100%;
  height: 470px;
  display: block;
  touch-action: none;
  flex: 1;
  min-height: 400px;
}
.view-tools {
  position: absolute;
  right: 12px;
  bottom: 35px;
  display: flex;
  align-items: center;
  background: #ffffffed;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 3px 15px #153c2710;
  z-index: 2;
}
.view-tools button {
  padding: 5px 8px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  font-size: 11px;
}
.view-tools output {
  font-size: 9px;
  color: var(--muted);
  padding: 0 3px;
}
.stage-hint {
  padding: 7px 13px;
  background: #f4faf6;
  border-top: 1px solid #e5eee8;
  color: var(--muted);
  font-size: 10px;
  min-height: 31px;
}
.inspector {
  padding: 12px;
  background: #fafcfb;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: auto;
  max-height: 580px;
}
.inspector-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.inspector-head button {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 20px;
}
.field {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin: 10px 0;
}
.field input,
.field select {
  display: block;
  width: 100%;
  font-size: 12px;
  margin-top: 4px;
}
.field small {
  display: block;
  font-size: 9px;
  margin-top: 4px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.object-actions {
  display: flex;
  gap: 5px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 14px;
}
.object-actions button {
  flex: 1;
  font-size: 10px;
  padding: 7px 4px;
}
.property-note {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.6;
  border-left: 2px solid #bddbc9;
  padding-left: 9px;
  margin: 10px 0;
}
.bottom-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.bottom-toolbar > div {
  display: flex;
  gap: 7px;
}
.bottom-toolbar button {
  font-size: 10px;
  padding: 5px 8px;
}
.overlays {
  flex-wrap: wrap;
  font-size: 10px;
  color: var(--muted);
  gap: 12px !important;
}
.settings {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  padding: 14px;
  background: #f7faf8;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.settings label {
  display: flex;
  align-items: center;
  gap: 7px;
}
.settings input[type="number"] {
  width: 95px;
}
.settings p {
  width: 100%;
  color: var(--muted);
  font-size: 10px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.section-heading label {
  font-size: 10px;
  color: var(--muted);
}
.section-heading select {
  font-size: 11px;
}
.measurements {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.reading-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}
.reading-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  position: relative;
  min-height: 105px;
  background: linear-gradient(135deg, #fff, #f8fcfa);
}
.reading-card .label {
  font-size: 10px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 5px;
}
.reading-card strong {
  display: block;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.5px;
  margin: 5px 0;
}
.reading-card strong small {
  font-size: 12px;
  font-weight: 450;
  color: var(--muted);
}
.reading-card p {
  font-size: 9px;
  color: var(--muted);
}
.reading-card button {
  position: absolute;
  right: 9px;
  bottom: 7px;
  padding: 2px 5px;
  font-size: 9px;
}
.reading-card.warning {
  border-color: #e6c38c;
}
.muted {
  color: var(--muted);
  font-size: 11px;
}
.model-values {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
  background: #edf7f1;
  border-radius: 8px;
  margin-top: 12px;
}
.model-values > div {
  font-size: 11px;
  flex: 1;
  min-width: 160px;
}
.model-values b {
  display: block;
  color: var(--green);
  margin-bottom: 4px;
}
.data-section {
  padding: 22px 0;
}
.graph-controls {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  align-items: end;
}
.graph-controls label,
.manual-controls label {
  display: block;
  font-size: 10px;
  color: var(--muted);
}
.graph-controls select {
  display: block;
  max-width: 235px;
  font-size: 11px;
  margin-top: 4px;
}
.manual-controls {
  display: flex;
  gap: 10px;
  margin: 11px 0 14px;
}
.manual-controls input {
  display: block;
  width: 145px;
  font-size: 11px;
  margin-top: 3px;
}
.manual-controls label:first-child input {
  width: 210px;
}
.manual-controls label:last-child input {
  width: 70px;
}
.evidence-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr);
  gap: 16px;
}
.graph-wrap {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  min-width: 0;
}
#graph {
  display: block;
  width: 100%;
  height: 240px;
}
.graph-wrap p {
  font-size: 10px;
  min-height: 20px;
}
.replay {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  color: var(--muted);
}
.replay input {
  flex: 1;
  min-width: 0;
  accent-color: var(--green);
}
.replay output {
  min-width: 53px;
  text-align: right;
}
.results {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px;
  min-width: 0;
}
.runs-heading {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
}
.table-scroll {
  overflow: auto;
  max-height: 265px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
  text-align: right;
}
th {
  font-size: 9px;
  color: var(--muted);
  font-weight: 600;
  background: #f5faf7;
  position: sticky;
  top: 0;
}
th,
td {
  padding: 8px 6px;
  border-bottom: 1px solid #edf3ee;
}
th:first-child,
td:first-child {
  text-align: left;
}
.kept-run {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  margin: 5px 0;
}
.kept-run input[type="text"] {
  min-width: 0;
  flex: 1;
  font-size: 10px;
  padding: 2px 5px;
}
.kept-run button {
  border: 0;
  background: transparent;
  color: #af625b;
}
.filebar {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}
.filebar label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: var(--muted);
}
.filebar input {
  width: 230px;
  font-size: 11px;
}
.filebar button {
  font-size: 10px;
}
.filebar span {
  margin-left: auto;
  font-size: 9px;
}
footer {
  display: flex;
  justify-content: space-between;
  padding: 18px 3px;
  color: #88a292;
  font-size: 10px;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #234c3b;
  color: white;
  padding: 12px 22px;
  border-radius: 10px;
  box-shadow: 0 7px 24px #234c3b30;
  z-index: 30;
  max-width: 90%;
  font-size: 12px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 20px;
  max-width: 580px;
  padding: 32px;
  color: var(--ink);
}
dialog::backdrop {
  background: #183b2e60;
}
dialog h2 {
  font-size: 27px;
  margin: 8px 0 18px;
}
dialog li {
  margin: 12px 0;
  font-size: 13px;
}
dialog p {
  font-size: 12px;
  color: var(--muted);
}
.dialog-close {
  float: right;
  border: 0;
  background: none;
  font-size: 25px;
  color: var(--muted);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: white;
  padding: 8px;
  z-index: 40;
}
.skip-link:focus {
  top: 12px;
}
.teacher .parts,
.teacher .inspector,
.teacher .manual-controls {
  display: none;
}
.teacher .workspace-layout {
  grid-template-columns: 1fr;
}
.teacher #workspace {
  height: 560px;
}
.teacher .reading-card strong {
  font-size: 34px;
}
.teacher .reading-cards {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.teacher .task-panel {
  padding: 20px;
}
.teacher #graph {
  height: 300px;
}
.inspector-closed .workspace-layout {
  grid-template-columns: 115px minmax(0, 1fr);
}
.inspector-closed .inspector {
  display: none;
}
.teacher.inspector-closed .workspace-layout {
  grid-template-columns: 1fr;
}
.teacher #inspect-object {
  display: none;
}
@media (max-width: 1100px) {
  #lab {
    padding: 0 16px;
  }
  .workshop {
    padding: 20px 16px 0;
  }
  .workspace-layout {
    grid-template-columns: 95px minmax(0, 1fr) 185px;
    gap: 10px;
  }
  .heading {
    align-items: start;
  }
  .transport {
    justify-content: end;
  }
  .modes button {
    padding: 10px 12px;
  }
  .part {
    font-size: 10px;
  }
  .overlays {
    gap: 6px !important;
  }
  .interactionbar {
    align-items: start;
  }
}
@media (max-width: 850px) {
  .workspace-layout {
    grid-template-columns: 90px minmax(0, 1fr);
  }
  .inspector {
    grid-column: 1/-1;
    max-height: none;
  }
  .inspector #properties {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 12px;
  }
  .inspector .property-note {
    grid-column: 1/-1;
  }
  .inspector-head #close-inspector {
    display: none;
  }
  .heading {
    display: block;
  }
  .transport {
    justify-content: start;
    margin-bottom: 15px;
  }
  .contextbar {
    flex-wrap: wrap;
  }
  .interactionbar {
    flex-direction: column;
  }
  .evidence-layout {
    grid-template-columns: 1fr;
  }
  .bottom-toolbar {
    flex-wrap: wrap;
  }
  .topbar {
    gap: 7px;
  }
  .brand b {
    font-size: 18px;
  }
  .modes button {
    font-size: 11px;
    padding: 8px;
  }
  .modes button span {
    display: none;
  }
  .filebar span {
    width: 100%;
    margin: 0;
  }
  .teacher .workspace-layout {
    grid-template-columns: 1fr;
  }
  .teacher #workspace {
    height: 490px;
  }
}
@media (max-width: 520px) {
  #lab {
    padding: 0 8px;
  }
  .topbar {
    min-height: 74px;
  }
  .brand img {
    width: 30px;
    height: 38px;
  }
  .brand b {
    font-size: 15px;
  }
  .brand small {
    font-size: 6px;
    letter-spacing: 1px;
  }
  .modes {
    gap: 1px;
  }
  .modes button {
    font-size: 9px;
    padding: 7px 5px;
  }
  .help {
    width: 26px;
    height: 26px;
  }
  .workshop {
    border-radius: 15px;
    padding: 16px 11px 0;
  }
  h1 {
    font-size: 26px;
    letter-spacing: -0.7px;
  }
  .transport button {
    padding: 7px 9px;
    font-size: 11px;
  }
  .contextbar label {
    width: 100%;
    font-size: 10px;
  }
  .task-panel {
    grid-template-columns: 24px 1fr;
    gap: 8px;
    padding: 12px;
  }
  .task-actions {
    grid-column: 2;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: start;
  }
  .workspace-layout {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .parts {
    border: 0;
    padding: 0;
    overflow-x: auto;
  }
  .parts > .eyebrow,
  .tray-note,
  .part-group {
    display: none;
  }
  #parts-list {
    display: flex;
    gap: 3px;
    min-width: max-content;
  }
  .part {
    width: auto;
    flex-direction: column;
    font-size: 9px;
    padding: 5px 7px;
  }
  .part svg {
    width: 23px;
    height: 22px;
  }
  .stage {
    min-height: 390px;
  }
  #workspace {
    min-height: 330px;
    height: 350px;
  }
  .stage-top {
    padding: 10px;
    flex-direction: column;
    gap: 3px;
  }
  .view-tools {
    bottom: 42px;
    right: 6px;
  }
  .view-tools button {
    padding: 5px 6px;
  }
  .inspector #properties {
    grid-template-columns: 1fr 1fr;
  }
  .inspector .field-row {
    grid-column: 1/-1;
  }
  .inspector-closed .workspace-layout {
    grid-template-columns: 1fr;
  }
  .section-heading {
    align-items: start;
    flex-direction: column;
  }
  .data-actions {
    gap: 5px;
  }
  .data-actions button {
    font-size: 10px;
    padding: 7px 8px;
  }
  .graph-controls {
    gap: 7px;
  }
  .graph-controls select {
    max-width: 170px;
    font-size: 10px;
  }
  .manual-controls {
    flex-wrap: wrap;
  }
  .manual-controls label:first-child input {
    width: 160px;
  }
  .manual-controls input {
    width: 90px;
  }
  .reading-cards {
    grid-template-columns: 1fr 1fr;
  }
  .reading-card {
    padding: 10px;
    min-width: 0;
  }
  .reading-card strong {
    font-size: 21px;
  }
  .interactionbar > div {
    gap: 9px;
    font-size: 10px;
  }
  .bottom-toolbar > .overlays {
    width: 100%;
  }
  .filebar input {
    width: 190px;
  }
  footer {
    font-size: 8px;
  }
  .teacher .reading-cards {
    grid-template-columns: 1fr 1fr;
  }
  .teacher .reading-card strong {
    font-size: 26px;
  }
}
@media (min-width: 851px) {
  .workspace-layout {
    height: 540px;
    min-height: 540px;
  }
  .parts {
    max-height: 540px;
    overflow-y: auto;
    scrollbar-width: thin;
  }
  .inspector {
    max-height: 540px;
  }
  .stage {
    min-height: 0;
  }
  #workspace {
    min-height: 0;
    height: 440px;
  }
  .teacher .workspace-layout {
    height: 600px;
  }
  .teacher #workspace {
    height: 520px;
  }
  .topbar {
    min-height: 66px;
  }
  .heading {
    padding-top: 8px;
    padding-bottom: 14px;
  }
  .heading h1 {
    font-size: 29px;
  }
  .experiment-controls {
    margin-bottom: 14px;
  }
}

#lab:fullscreen {
  background: var(--mint);
  overflow: auto;
  max-width: none;
  padding-bottom: 24px;
}
.table-replay {
  border: 0;
  background: none;
  color: var(--green);
  font-size: inherit;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
@media (min-width: 521px) and (max-width: 850px) {
  .parts {
    max-height: 500px;
    overflow-y: auto;
    scrollbar-width: thin;
  }
  .stage {
    height: 500px;
    min-height: 500px;
  }
  #workspace {
    height: 410px;
    min-height: 0;
  }
  .teacher .stage {
    height: 550px;
    min-height: 550px;
  }
}

@media (min-width: 521px) {
  .parts {
    overflow-x: hidden;
  }
}
.experiment-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  margin: 0 0 16px;
  background: #f0f8f4;
  border: 1px solid #dcece2;
  border-radius: 12px;
}
.experiment-control {
  min-width: 0;
}
.experiment-control > label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 650;
}
.experiment-control select {
  max-width: 170px;
  min-width: 0;
  font-size: 11px;
  padding: 4px 6px;
}
.slider-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.slider-row input[type="range"] {
  flex: 1;
  min-width: 30px;
  width: 100%;
  accent-color: var(--green);
  cursor: pointer;
}
.slider-row input[type="number"] {
  width: 78px;
  flex-shrink: 0;
  font-size: 12px;
  padding: 4px 7px;
}
.slider-row > span {
  font-size: 10px;
  white-space: nowrap;
  color: var(--muted);
}
.experiment-control p {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.4;
  margin-top: 6px;
  min-height: 14px;
}
#compare-floats {
  padding: 11px 13px;
  border-color: #bddbc9;
  color: #148250;
  background: white;
}
#compare-floats span {
  display: block;
  font-size: 9px;
  color: var(--muted);
  font-weight: 450;
  margin-top: 3px;
}
.view-tools button[aria-pressed="true"] {
  background: #e3f3e9;
  color: #10854c;
}
.teacher .experiment-controls {
  font-size: 15px;
}
.teacher .experiment-control > label {
  font-size: 14px;
}
@media (min-width: 851px) {
  .workspace-layout {
    height: 620px;
    min-height: 620px;
  }
  .parts,
  .inspector {
    max-height: 620px;
  }
  #workspace {
    height: 540px;
  }
  .teacher .workspace-layout {
    height: 680px;
  }
  .teacher #workspace {
    height: 600px;
  }
}
@media (max-width: 850px) {
  .experiment-controls {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }
  #compare-floats {
    grid-column: 1/-1;
    justify-self: start;
    padding: 7px 12px;
  }
  #compare-floats span {
    display: inline;
    margin-left: 8px;
  }
  .experiment-control > label {
    align-items: start;
    flex-direction: column;
    gap: 4px;
  }
  .experiment-control select {
    width: 100%;
    max-width: none;
  }
}
@media (max-width: 520px) {
  .experiment-controls {
    gap: 10px;
    padding: 10px;
  }
  .slider-row {
    flex-wrap: wrap;
    gap: 5px;
  }
  .slider-row input[type="range"] {
    flex-basis: 100%;
    margin: 4px 0;
  }
  .slider-row input[type="number"] {
    width: 75px;
  }
  .experiment-control p {
    font-size: 9px;
  }
  #compare-floats {
    width: 100%;
    font-size: 11px;
  }
  #compare-floats span {
    font-size: 8px;
  }
  .stage {
    min-height: 425px;
  }
  #workspace {
    min-height: 365px;
    height: 385px;
  }
  .view-tools {
    max-width: calc(100% - 12px);
    flex-wrap: wrap;
    justify-content: end;
  }
  .view-tools button {
    font-size: 10px;
    padding: 5px;
  }
  .stage-hint {
    padding-right: 10px;
  }
  .bench-tools {
    padding: 0 8px 7px;
    gap: 4px;
  }
  .bench-tools button {
    padding: 7px 8px;
    font-size: 11px;
  }
  .bench-tools kbd,
  .tool-divider {
    display: none;
  }
  .apparatus-hint {
    font-size: 10px;
    padding: 7px 9px;
  }
}
