@font-face {
  font-family: Lab;
  src: local("Aptos"), local("Segoe UI");
}
:root {
  --green: #147653;
  --green-dark: #105e42;
  --ink: #173e33;
  --muted: #526d60;
  --paper: #ffffff;
  --wash: #f3f9f5;
  --tint: #e5f3eb;
  --line: #cce2d5;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  font-family: Lab, system-ui, sans-serif;
  background: var(--wash);
  color: var(--ink);
}
button,
input,
select {
  font: inherit;
}
button,
select {
  cursor: pointer;
}
button {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  color: var(--green-dark);
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.12s;
}
button:hover {
  background: var(--tint);
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
[role="button"]:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}
button[aria-pressed="true"] {
  background: var(--green);
  color: var(--paper);
  border-color: var(--green);
}
select,
input[type="number"] {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 6px;
  padding: 7px 8px;
  font-size: 12px;
  max-width: 100%;
  min-width: 0;
}
input[type="range"] {
  accent-color: var(--green);
  width: 100%;
}
button.primary {
  background: var(--green);
  color: var(--paper);
  border-color: var(--green);
  padding-inline: 18px;
}
button.primary:hover {
  background: var(--green-dark);
}
.primary span {
  margin-left: 12px;
}
a {
  color: var(--green);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h2 {
  font-size: 16px;
}
label {
  font-size: 11px;
  color: #547064;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
small {
  font-size: 11px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
[hidden] {
  display: none !important;
}
#lab {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 62px;
  padding: 10px 25px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
}
.brand img {
  object-fit: contain;
  width: 112px;
  height: auto;
}
.topbar nav {
  display: flex;
  gap: 4px;
}
.topbar nav button {
  border: 0;
  background: transparent;
  color: #65776a;
  padding: 9px 15px;
}
.topbar nav button[aria-pressed="true"] {
  background: var(--green);
  color: var(--paper);
}
.top-actions {
  display: flex;
  gap: 6px;
}
.top-actions button {
  background: transparent;
  border-color: var(--line);
}
.top-actions span {
  font-size: 10px;
  padding: 1px 5px;
  background: var(--tint);
  border-radius: 9px;
  color: #345c44;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 5px;
}
main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 16px 25px 0;
  gap: 14px;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.heading h1 {
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 500;
  letter-spacing: -0.8px;
  line-height: 1.15;
}
.heading p:not(.eyebrow) {
  font-size: 12px;
  color: #60776a;
  margin-top: 5px;
}
.element-picker {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.element-picker select {
  min-width: 165px;
  text-transform: none;
  letter-spacing: 0;
  padding: 10px;
}
.workbench {
  flex: 1;
  min-height: 285px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 364px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 6px 30px #183c3410;
}
.stage-panel {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: radial-gradient(
    ellipse at 45% 43%,
    #e8f6ec 0%,
    #f8fcf9 45%,
    #ffffff 100%
  );
  color: var(--ink);
  overflow: hidden;
}
.scene {
  position: absolute;
  inset: 32px 0 112px;
  min-height: 140px;
}
.scene canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}
.stage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 19px;
  z-index: 1;
  pointer-events: none;
}
.stage-top > div:first-child {
  font-size: 9px;
  letter-spacing: 1.7px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.live-dot {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px #14765335;
}
.view-buttons {
  display: flex;
  gap: 4px;
  pointer-events: auto;
}
.stage-panel button {
  background: var(--paper);
  border-color: var(--line);
  color: var(--green-dark);
}
.stage-panel button:hover {
  background: var(--tint);
}
.stage-panel button[aria-pressed="true"] {
  background: var(--green);
  color: var(--paper);
}
.stage-panel button.primary {
  background: var(--green);
  border-color: var(--green);
  color: var(--paper);
}
.stage-panel select,
.stage-panel input {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
}
.view-buttons button {
  font-size: 11px;
  padding: 5px 9px;
}
.scene-overlay {
  pointer-events: none;
  position: absolute;
  top: 62px;
  left: 25px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 1;
}
.scene-overlay > span {
  font-size: 38px;
  font-weight: 300;
  color: var(--green);
  letter-spacing: -1px;
}
.scene-overlay small {
  color: var(--muted);
  max-width: 210px;
  line-height: 1.5;
}
.stage-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding: 8px 20px;
  font-size: 10px;
  color: var(--muted);
  z-index: 1;
  pointer-events: none;
}
.transport {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px 8px;
  z-index: 1;
  background: var(--paper);
  flex-wrap: wrap;
}
.transport #clock {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.transport button {
  padding: 7px 10px;
}
.transport .primary {
  margin-right: 4px;
}
#event-status {
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted);
  padding: 0 20px 12px;
  min-height: 26px;
  z-index: 1;
  background: var(--paper);
}
.quick-controls {
  z-index: 1;
  display: flex;
  align-items: end;
  gap: 10px;
  padding: 8px 18px;
  background: var(--wash);
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
}
.quick-controls label {
  color: var(--muted);
  font-size: 10px;
  flex: 1;
  min-width: 120px;
}
.quick-controls label span {
  display: flex;
  gap: 5px;
  align-items: center;
}
.quick-controls input {
  width: 110px;
}
.quick-controls button {
  font-size: 11px;
}
.quick-controls select {
  width: 100%;
}
.levels-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--paper);
  padding: 15px 17px 12px;
  gap: 8px;
  border-left: 1px solid var(--line);
}
.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.panel-title h2 {
  font-size: 14px;
  font-weight: 600;
}
.panel-title button {
  padding: 4px 7px;
  font-size: 10px;
}
.state-pickers {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 15px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
}
.state-pickers label {
  font-size: 10px;
}
.state-pickers > span {
  align-self: end;
  margin-bottom: 9px;
  color: #8b9e8f;
}
.state-pickers select {
  font-size: 11px;
  padding: 5px;
}
.ladder-scroll {
  flex: 1;
  min-height: 120px;
  overflow: auto;
}
#ladder {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 164px;
}
.axis-label,
.energy-value,
.state-name {
  font:
    12px Lab,
    system-ui;
  fill: #577164;
}
.level-line {
  stroke: #9aafa3;
  stroke-width: 1.3;
}
.level.initial .level-line {
  stroke: var(--green);
  stroke-width: 2.8;
}
.level.final .level-line {
  stroke: #39a46a;
  stroke-width: 2.8;
}
.level.initial .state-name {
  fill: var(--green-dark);
  font-weight: 700;
}
.level.final .state-name {
  fill: var(--green-dark);
  font-weight: 700;
}
.level {
  cursor: pointer;
}
.level:hover .level-line {
  stroke: var(--green-dark);
  stroke-width: 3;
}
.limit {
  stroke: #9fafa0;
  stroke-dasharray: 4 3;
}
.limit-label {
  font:
    10px Lab,
    system-ui;
  fill: #84988b;
}
.occupancy {
  fill: var(--green);
  stroke: var(--paper);
  stroke-width: 1.5;
}
.leader {
  stroke: #becbc2;
  fill: none;
}
.transition-arrow {
  stroke: var(--green);
  stroke-width: 2;
}
.unsupported {
  stroke-dasharray: 4 4;
}
.diagram-tools {
  display: flex;
  align-items: center;
  gap: 5px;
}
.diagram-tools select,
.diagram-tools button {
  font-size: 10px;
  padding: 5px;
}
.diagram-tools select:first-of-type {
  flex: 1;
}
.eligibility {
  font-size: 10px;
  color: #657d6a;
  min-height: 13px;
}
.eligibility.warning {
  color: #9a5827;
}
.calculation {
  border-top: 1px solid #d9e3d9;
  padding-top: 9px;
}
.equation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #40654a;
  letter-spacing: 0.2px;
}
.equation button {
  font-size: 10px;
  padding: 3px 6px;
  border: 0;
  background: var(--tint);
  color: #345a3e;
}
.readings {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin: 10px 0;
}
.readings > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.readings span {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #7b8c79;
}
.readings strong {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.4px;
  font-variant-numeric: tabular-nums;
}
.readings small {
  font-size: 10px;
  color: #70816d;
}
.wavelength-reading {
  grid-column: auto;
  align-items: start;
}
.wavelength-reading strong {
  font-size: 17px;
}
#region-reading {
  color: #4b6859;
}
#region-reading::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 4px;
  border-radius: 50%;
  background: var(--photon-colour, transparent);
  box-shadow: 0 0 0 1px #173e3320;
}
#capture {
  width: auto;
  font-size: 10px;
  padding: 4px 7px;
  background: var(--tint);
  border-color: #d4dfcc;
}
.spectrum-panel {
  height: 208px;
  flex-shrink: 0;
  background: var(--paper);
  color: var(--ink);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  padding: 12px 18px 8px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.spectrum-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.spectrum-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}
.spectrum-heading h2 {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.4px;
}
.spectrum-heading span {
  font-size: 10px;
  color: var(--muted);
}
.spectrum-tools {
  display: flex;
  gap: 6px;
}
.spectrum-panel select,
.spectrum-panel button {
  background: var(--paper);
  color: var(--green-dark);
  border-color: var(--line);
  font-size: 10px;
  padding: 5px 7px;
}
.spectrum-panel canvas {
  width: 100%;
  flex: 1;
  min-height: 60px;
  cursor: crosshair;
}
.spectrum-footer {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 10px;
  color: var(--muted);
}
.spectrum-footer label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
}
.spectrum-footer select {
  max-width: 250px;
}
.spectrum-footer button {
  margin-left: auto;
}
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 7px 26px;
  color: #7b9083;
  font-size: 9px;
  min-height: 30px;
}
.footer > div {
  display: flex;
  gap: 5px;
}
.footer button {
  border: 0;
  background: transparent;
  padding: 3px 8px;
  font-size: 10px;
  color: #5e7c68;
}
.mobile-views,
.mobile-summary {
  display: none;
}
dialog {
  border: 1px solid #c6d6c9;
  border-radius: 14px;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  width: min(620px, calc(100vw - 28px));
  max-height: calc(100dvh - 40px);
  box-shadow: 0 22px 100px #173e3326;
}
dialog::backdrop {
  background: #173e3370;
  backdrop-filter: blur(5px);
}
dialog > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid #d6e0d2;
  background: var(--wash);
}
dialog > header button {
  font-size: 24px;
  border: 0;
  background: transparent;
  padding: 0 8px;
}
dialog[open] {
  display: flex;
  flex-direction: column;
}
.dialog-content {
  padding: 22px 24px;
  overflow: auto;
  min-height: 0;
}
.dialog-content p {
  font-size: 12px;
  line-height: 1.7;
  color: #5f7564;
  margin: 7px 0 14px;
}
.preset-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.preset-list button {
  text-align: left;
  white-space: normal;
  background: var(--wash);
  padding: 17px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  border-color: #d4dfcd;
}
.preset-list button strong {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}
.preset-list button small {
  font-size: 10px;
  color: #6f846c;
  line-height: 1.5;
  font-weight: 400;
}
.control-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
fieldset {
  min-width: 0;
  border: 1px solid #d4dfcd;
  border-radius: 8px;
  padding: 14px;
}
legend {
  font-size: 13px;
  font-weight: 600;
  padding: 0 4px;
}
fieldset label {
  margin-bottom: 12px;
}
fieldset p {
  font-size: 11px !important;
}
.check {
  flex-direction: row;
  align-items: center;
}
.check input {
  accent-color: var(--green);
}
#custom-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
#control-error {
  grid-column: 1/-1;
  color: #a34526;
}
.wide-dialog {
  width: min(900px, calc(100vw - 28px));
}
.notebook-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.table-wrap {
  overflow: auto;
  margin-top: 20px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
td,
th {
  text-align: left;
  padding: 12px 9px;
  border-bottom: 1px solid #d6e0d2;
  white-space: nowrap;
}
th {
  font-size: 10px;
  color: #6c816c;
  font-weight: 600;
}
td small {
  font-size: 10px;
  color: #74846c;
}
.prose h3 {
  font-size: 16px;
  font-weight: 500;
  margin-top: 22px;
}
.prose ul {
  font-size: 12px;
  line-height: 1.9;
  padding-left: 18px;
}
#toast {
  position: fixed;
  bottom: 38px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: var(--paper);
  border: 1px solid #79a68a;
  border-radius: 9px;
  padding: 12px 20px;
  font-size: 12px;
  max-width: 90%;
  z-index: 20;
  box-shadow: 0 4px 20px #133c3550;
}
.teacher .heading h1 {
  font-size: 30px;
}
.teacher .readings strong {
  font-size: 22px;
}
.teacher .stage-top > div:first-child {
  font-size: 11px;
}
.teacher .spectrum-panel {
  height: 235px;
}
@media (min-width: 1700px) {
  main {
    padding-inline: 40px;
    gap: 20px;
  }
  .workbench {
    grid-template-columns: minmax(0, 1fr) 430px;
  }
  .spectrum-panel {
    height: 240px;
  }
  .levels-panel {
    padding: 22px;
  }
  .readings strong {
    font-size: 22px;
  }
  .scene-overlay > span {
    font-size: 50px;
  }
}
@media (max-height: 800px) and (min-width: 761px) {
  .topbar {
    min-height: 52px;
    padding-block: 7px;
  }
  main {
    padding-top: 10px;
    gap: 10px;
  }
  .heading h1 {
    font-size: 23px;
  }
  .spectrum-panel {
    height: 160px;
    padding-top: 8px;
  }
  .workbench {
    min-height: 300px;
  }
  .levels-panel {
    padding: 10px 14px;
    gap: 5px;
  }
  .readings {
    margin: 7px 0;
    gap: 5px;
  }
  .readings strong {
    font-size: 15px;
  }
  .wavelength-reading strong {
    font-size: 19px;
  }
  .scene {
    bottom: 120px;
  }
  .transport {
    padding: 8px 12px 6px;
  }
  .stage-top {
    padding: 12px;
  }
  .footer {
    padding-block: 4px;
  }
  .spectrum-heading h2 {
    font-size: 15px;
  }
  .spectrum-footer {
    font-size: 9px;
  }
}
@media (max-width: 1100px) {
  .topbar {
    padding-inline: 15px;
    gap: 10px;
  }
  .topbar nav button {
    padding: 8px 10px;
    font-size: 11px;
  }
  .top-actions {
    gap: 3px;
  }
  .top-actions button {
    padding: 6px;
    font-size: 10px;
  }
  main {
    padding-inline: 15px;
  }
  .workbench {
    grid-template-columns: minmax(0, 1fr) 330px;
  }
  .transport {
    gap: 4px;
    padding-inline: 12px;
  }
  .transport button {
    font-size: 10px;
    padding: 7px;
  }
  .spectrum-heading span {
    display: none;
  }
  .footer {
    padding-inline: 16px;
  }
  .quick-controls {
    gap: 6px;
    padding-inline: 12px;
  }
  .scene-overlay {
    left: 17px;
  }
}
@media (max-width: 760px) {
  #lab {
    overflow: auto;
  }
  .topbar {
    flex-wrap: wrap;
    padding: 9px 12px;
    gap: 8px;
    min-height: auto;
  }
  .brand img {
    width: 92px;
  }
  .topbar nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }
  .topbar nav button {
    flex: 1;
    padding: 7px 4px;
    font-size: 11px;
  }
  .top-actions {
    margin-left: auto;
  }
  .top-actions button {
    padding: 7px 6px;
    font-size: 10px;
  }
  main {
    padding: 12px 10px 0;
    gap: 9px;
    flex: 1 0 auto;
    min-height: 610px;
  }
  .heading {
    gap: 8px;
  }
  .heading h1 {
    font-size: 21px;
  }
  .heading p:not(.eyebrow) {
    font-size: 10px;
    max-width: 230px;
  }
  .heading .eyebrow {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .element-picker {
    flex-direction: column;
    align-items: start;
    gap: 3px;
    font-size: 8px;
  }
  .element-picker select {
    min-width: 0;
    width: 116px;
    font-size: 11px;
    padding: 8px 5px;
  }
  .mobile-views {
    display: flex;
    gap: 5px;
  }
  .mobile-views button {
    flex: 1;
    font-size: 10px;
    padding: 7px;
    transition: none;
  }
  .workbench {
    display: flex;
    min-height: 370px;
    flex: 1;
    border-radius: 9px;
  }
  .stage-panel {
    width: 100%;
    min-height: 330px;
  }
  .levels-panel {
    width: 100%;
    min-height: 0;
    border-left: 0;
    display: none;
    gap: 5px;
  }
  .workbench[data-mobile="levels"] .stage-panel {
    display: none;
  }
  .workbench[data-mobile="levels"] .levels-panel {
    display: flex;
  }
  .stage-top {
    padding: 10px;
  }
  .stage-top > div:first-child {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .view-buttons button {
    padding: 5px 7px;
    font-size: 10px;
  }
  .scene-overlay {
    top: 45px;
    left: 14px;
  }
  .scene-overlay > span {
    font-size: 29px;
  }
  .scene-overlay small {
    font-size: 9px;
    max-width: 150px;
  }
  .scene {
    inset: 32px 0 120px;
  }
  .stage-bottom {
    padding: 7px 12px;
    font-size: 9px;
  }
  .transport {
    padding: 7px 10px 5px;
    gap: 4px;
  }
  .transport button {
    padding: 7px 8px;
    font-size: 10px;
  }
  .transport .primary {
    padding-inline: 10px;
  }
  .transport #restart span {
    display: none;
  }
  .transport #clock {
    display: none;
  }
  #event-status {
    padding: 0 12px 9px;
    font-size: 10px;
  }
  .quick-controls {
    padding: 7px 10px;
  }
  .quick-controls label {
    min-width: 110px;
    font-size: 9px;
  }
  .quick-controls input,
  .quick-controls select {
    padding: 6px;
    font-size: 12px;
  }
  .quick-controls button {
    padding: 6px;
    font-size: 10px;
  }
  .spectrum-panel {
    height: 420px;
    flex: 1;
    min-height: 370px;
    padding: 12px;
    display: none;
  }
  #lab[data-mobile="spectrum"] .spectrum-panel {
    display: flex;
  }
  #lab[data-mobile="spectrum"] .workbench {
    display: none;
  }
  .mobile-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 8px 3px;
    font-size: 11px;
    color: #4c6b55;
  }
  .mobile-summary strong {
    margin-left: auto;
    font-weight: 500;
  }
  .mobile-summary button {
    font-size: 10px;
  }
  .spectrum-header {
    flex-wrap: wrap;
    gap: 6px;
  }
  .spectrum-heading h2 {
    font-size: 15px;
  }
  .spectrum-tools {
    width: 100%;
    gap: 4px;
  }
  .spectrum-tools select:first-of-type {
    flex: 1;
    min-width: 0;
  }
  .spectrum-tools select,
  .spectrum-tools button {
    font-size: 9px;
    padding: 5px;
  }
  .spectrum-footer {
    gap: 5px;
  }
  .spectrum-footer label {
    gap: 5px;
    font-size: 9px;
  }
  .spectrum-footer select {
    max-width: 170px;
    font-size: 9px;
  }
  .spectrum-footer > span {
    display: none;
  }
  .spectrum-footer button {
    font-size: 9px;
    padding: 4px;
  }
  .footer {
    padding: 7px 12px;
    align-items: flex-start;
  }
  .footer > span {
    font-size: 8px;
    max-width: 45%;
  }
  .footer > div {
    gap: 2px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .footer button {
    font-size: 9px;
    padding: 2px 4px;
  }
  .dialog-content {
    padding: 16px;
  }
  dialog > header {
    padding: 16px;
  }
  .control-grid {
    grid-template-columns: 1fr;
  }
  .preset-list {
    grid-template-columns: 1fr;
  }
  .readings {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .wavelength-reading {
    grid-column: auto;
    flex-direction: column !important;
    border: 0;
    padding: 0;
    align-items: start;
  }
  .wavelength-reading strong {
    font-size: 17px;
  }
  .readings span {
    font-size: 8px;
  }
  .teacher .heading h1 {
    font-size: 23px;
  }
  .teacher .spectrum-panel {
    height: 420px;
  }
}
@media (max-height: 620px) {
  #lab {
    overflow: auto;
  }
  main {
    flex: none;
    height: 730px;
  }
  .footer {
    flex-shrink: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
@media (pointer: coarse) {
  button {
    min-height: 36px;
  }
  input[type="number"],
  select {
    font-size: 16px !important;
  }
  .topbar nav button {
    min-height: 38px;
  }
}
