:root {
  color-scheme: dark;
  --bg: #0b1115;
  --panel: #101a20;
  --line: #23323a;
  --muted: #82959e;
  --text: #e3eced;
  --cyan: #9ce9df;
  --amber: #edbe82;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 13px;
}
header {
  height: 72px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 3.5%;
  gap: 35px;
  background: #0b1115;
}
.brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 1.3px;
  color: var(--text);
  text-decoration: none;
}
.brand > span {
  font-size: 31px;
  color: var(--cyan);
  margin-right: 8px;
}
.back {
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
}
#status {
  margin-left: auto;
  color: var(--cyan);
  font-size: 11px;
  letter-spacing: 0.4px;
}
main {
  max-width: 1680px;
  margin: auto;
  padding: 40px 3.5% 0;
  min-width: 0;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}
.eyebrow {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 600;
}
h1 {
  font-size: 46px;
  line-height: 1.15;
  letter-spacing: -1.8px;
  font-weight: 500;
  margin: 11px 0;
}
h1 > span {
  color: var(--cyan);
}
.heading p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}
button,
select {
  border: 1px solid #30414a;
  border-radius: 5px;
  background: #142129;
  color: var(--text);
  font: inherit;
  padding: 9px 12px;
  cursor: pointer;
}
button:hover,
select:hover {
  border-color: #789b9e;
  background: #1b3038;
}
button:disabled {
  opacity: 0.4;
  cursor: wait;
}
button:focus-visible,
select:focus-visible,
input:focus-visible,
canvas:focus-visible,
a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}
button.active {
  background: #ccede5;
  color: #122822;
  border-color: #ccede5;
}
#export {
  background: transparent;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 306px;
  gap: 20px;
}
.observation {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #0c151b;
}
.scene {
  position: relative;
  height: 540px;
  background: #080f14;
  overflow: hidden;
}
#scene {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
}
#scene:active {
  cursor: grabbing;
}
.scene-top,
.scene-bottom {
  position: absolute;
  left: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  pointer-events: none;
}
.scene-top {
  top: 24px;
  align-items: flex-start;
}
.scene-sub {
  display: block;
  margin-top: 8px;
  color: #72909b;
  font-size: 11px;
}
.segmented {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid #34505c;
  background: #0b151bd9;
  border-radius: 6px;
  pointer-events: auto;
}
.segmented button {
  border: 0;
  background: transparent;
  padding: 7px 12px;
  font-size: 11px;
}
.segmented button.active {
  background: #254049;
  color: #d1f4ee;
}
.phase-label {
  position: absolute;
  left: 24px;
  top: 88px;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #9babae;
  display: flex;
  gap: 8px;
  align-items: center;
}
.live-dot,
.tiny-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
}
.scene-bottom {
  bottom: 21px;
  font-size: 10px;
  color: #839ca6;
}
.scene-bottom button {
  pointer-events: auto;
  background: #12212aaa;
  font-size: 11px;
  padding: 6px 10px;
}
#scale-bar {
  height: 5px;
  border: 1px solid #a9c3cb;
  border-top: 0;
  width: 70px;
  margin-bottom: 7px;
}
#optical-note {
  margin-left: auto;
  font-size: 10px;
}
#loading {
  position: absolute;
  inset: 0;
  background: #091319ed;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 11px;
}
#loading[hidden] {
  display: none;
}
#loading strong {
  color: var(--text);
  font-weight: 400;
  font-size: 17px;
}
.loader {
  width: 28px;
  height: 28px;
  border: 1px solid #284a52;
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.transport {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px 10px;
  border-top: 1px solid var(--line);
}
.transport button {
  font-size: 11px;
  padding: 8px 11px;
}
#play {
  background: #bbdfd5;
  color: #172d2a;
  min-width: 78px;
}
.focus {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  font-size: 11px;
  color: #b3c6ca;
}
.transport select {
  font-size: 10px;
  padding: 7px;
}
.timeline {
  padding: 7px 22px 18px;
}
.timeline label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: #90a9b2;
}
.timeline output {
  font-family: ui-monospace, monospace;
  color: var(--text);
  font-size: 12px;
}
.timeline > div {
  display: flex;
  justify-content: space-between;
  color: #718993;
  font-size: 9px;
}
.timeline input {
  margin: 11px 0;
  width: 100%;
}
input[type="range"] {
  appearance: none;
  height: 3px;
  background: #30454d;
  border: 0;
  border-radius: 4px;
  accent-color: var(--cyan);
  cursor: pointer;
  display: block;
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #b7e9df;
  border: 2px solid #102029;
  box-shadow: 0 0 0 1px #638c8b;
}
input[type="checkbox"] {
  accent-color: #9ee4d9;
  width: 13px;
  height: 13px;
}
.readouts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  padding: 20px 22px;
  gap: 15px;
}
.readouts > div + div {
  border-left: 1px solid var(--line);
  padding-left: 18px;
}
.readouts span,
.summary span {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 1px;
  display: block;
}
.readouts strong {
  display: block;
  font-size: 23px;
  font-weight: 400;
  letter-spacing: -0.7px;
  margin: 8px 0;
}
.readouts small {
  color: #647c87;
  font-size: 9px;
}
aside {
  background: #111b21;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 23px;
  min-width: 0;
  width: auto;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 23px;
}
.panel-heading .eyebrow {
  font-size: 9px;
  letter-spacing: 1px;
}
.pill {
  font-size: 8px;
  letter-spacing: 0.7px;
  padding: 4px 6px;
  border: 1px solid #35454c;
  border-radius: 3px;
  color: #90a7ae;
  white-space: nowrap;
}
.select-label {
  display: block;
  color: #aabfc4;
  font-size: 11px;
  margin-bottom: 9px;
}
aside select {
  width: 100%;
  font-size: 11px;
  padding: 10px;
  margin-bottom: 14px;
  background: #0c161c;
}
.control {
  margin: 16px 0 23px;
}
.control label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #b9cbcf;
  gap: 10px;
}
.control output {
  color: #a5dfd5;
  font-family: ui-monospace, monospace;
  font-size: 10px;
}
.control input {
  width: 100%;
  margin: 15px 0 11px;
}
.control small {
  font-size: 9px;
  color: #718994;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 7px 0 23px;
}
.check {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hint {
  font-size: 10px;
  line-height: 1.7;
  color: #718994;
  margin: 13px 0 22px;
}
.model-note {
  display: flex;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.model-note .tiny-dot {
  flex-shrink: 0;
  margin-top: 5px;
}
.model-note strong {
  font-size: 10px;
  font-weight: 500;
  color: #c2d7d7;
}
.model-note p {
  font-size: 10px;
  line-height: 1.7;
  color: #7e959e;
  margin: 8px 0 0;
}
.analysis {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 20px;
  margin-top: 20px;
}
.chart-panel,
.spectrum-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: #0e171d;
  min-width: 0;
}
.chart-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.chart-heading h2 {
  font-size: 14px;
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.1px;
}
.chart-panel p,
.spectrum-panel p {
  font-size: 10px;
  color: #738b95;
  margin: 8px 0 14px;
}
.legend {
  display: flex;
  gap: 16px;
  font-size: 10px;
}
.legend span:before {
  content: "";
  display: inline-block;
  width: 13px;
  height: 2px;
  margin-right: 6px;
  vertical-align: middle;
  background: currentColor;
}
.cyan {
  color: var(--cyan);
}
.amber {
  color: var(--amber);
}
#trace,
#spectrum {
  width: 100%;
  height: 170px;
  display: block;
}
#trace {
  cursor: crosshair;
  touch-action: none;
}
.summary {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 27px 0;
  gap: 20px;
}
.summary strong {
  display: block;
  font-weight: 400;
  font-size: 21px;
  margin-top: 9px;
  color: #c9dbdd;
}
#validity {
  color: #8aa1ab;
  font-size: 11px;
  line-height: 1.7;
  margin: 0 0 24px;
}
details {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
summary {
  font-size: 12px;
  color: #b2c9ce;
  cursor: pointer;
}
summary span {
  float: right;
}
.model-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding-top: 12px;
}
.model-details h3 {
  font-weight: 500;
  font-size: 12px;
}
.model-details p {
  color: #819aa4;
  font-size: 11px;
  line-height: 1.8;
}
.model-details a,
footer a {
  color: #a4d7d0;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 25px 0;
  font-size: 9px;
  color: #56727c;
  letter-spacing: 1px;
}
footer a {
  text-decoration: none;
  letter-spacing: 0;
}
#error {
  padding: 15px;
  background: #3e2824;
  color: #ffd4b1;
  border: 1px solid #80513c;
  margin-bottom: 20px;
  border-radius: 5px;
  line-height: 1.6;
}
#error[hidden] {
  display: none;
}
@media (min-width: 1550px) {
  .scene {
    height: 610px;
  }
}
@media (max-width: 1150px) {
  main {
    padding-left: 22px;
    padding-right: 22px;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr) 275px;
    gap: 14px;
  }
  aside {
    padding: 18px;
  }
  .scene {
    height: 500px;
  }
  .scene-top,
  .scene-bottom {
    left: 17px;
    right: 17px;
  }
  .readouts strong {
    font-size: 19px;
  }
  .transport {
    flex-wrap: wrap;
  }
  .focus {
    margin-left: 0;
  }
  .scene-sub {
    max-width: 170px;
    line-height: 1.5;
  }
  #optical-note {
    display: none;
  }
  .readouts {
    gap: 8px;
    padding: 18px 15px;
  }
  .readouts > div + div {
    padding-left: 10px;
  }
}
@media (max-width: 800px) {
  header {
    padding: 0 20px;
    height: 62px;
    gap: 20px;
  }
  header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    height: auto;
    min-height: 72px;
    padding-top: 10px;
    padding-bottom: 10px;
    gap: 8px 12px;
  }
  .back {
    display: block;
    font-size: 11px;
  }
  header #status {
    grid-column: 1 / -1;
    margin-left: 0;
  }
  .brand {
    font-size: 10px;
    letter-spacing: 0.7px;
  }
  #status {
    font-size: 9px;
  }
  main {
    padding: 28px 16px 0;
  }
  h1 {
    font-size: 35px;
  }
  .heading {
    gap: 10px;
  }
  .heading p {
    font-size: 11px;
    line-height: 1.7;
  }
  #export {
    font-size: 10px;
    max-width: 95px;
    line-height: 1.5;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .scene {
    height: 440px;
  }
  .scene-sub {
    max-width: none;
  }
  .transport {
    gap: 7px;
  }
  .focus {
    margin-left: auto;
  }
  .readouts strong {
    font-size: 21px;
  }
  aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
    padding: 22px;
  }
  .panel-heading,
  .divider,
  .model-note,
  .hint,
  aside > .eyebrow {
    grid-column: 1/-1;
  }
  .select-label {
    grid-column: 1/-1;
  }
  aside > select {
    grid-column: 1/-1;
  }
  .control {
    margin-bottom: 20px;
  }
  .check {
    align-self: center;
  }
  .analysis {
    grid-template-columns: 1fr;
  }
  .summary {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .model-details {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  footer span {
    display: none;
  }
}
@media (max-width: 480px) {
  header {
    padding: 0 15px;
  }
  .scene {
    height: 390px;
  }
  .scene-top {
    top: 18px;
    gap: 7px;
  }
  .scene-top .eyebrow {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .scene-sub {
    font-size: 9px;
    max-width: 155px;
  }
  .segmented button {
    padding: 7px 8px;
    font-size: 10px;
  }
  .phase-label {
    left: 17px;
    top: 77px;
    font-size: 9px;
  }
  .readouts {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 8px;
  }
  .readouts > div:nth-child(3) {
    border: 0;
    padding-left: 0;
  }
  .readouts strong {
    font-size: 24px;
  }
  .transport {
    padding: 13px;
  }
  .transport .focus {
    order: 3;
    margin: 5px 0 0;
    width: 100%;
  }
  .transport select {
    margin-left: auto;
    max-width: 108px;
  }
  .transport button {
    font-size: 10px;
    padding: 8px;
  }
  .timeline {
    padding: 8px 15px 18px;
  }
  #time-mode {
    max-width: 190px;
    text-align: center;
    line-height: 1.5;
    font-size: 8px;
  }
  .summary {
    grid-template-columns: repeat(2, 1fr);
  }
  aside {
    gap: 0 16px;
    padding: 20px;
  }
  .control label {
    font-size: 10px;
  }
  .control output {
    font-size: 9px;
  }
  .chart-panel,
  .spectrum-panel {
    padding: 18px 14px;
  }
  .chart-heading h2 {
    font-size: 12px;
  }
  .legend {
    gap: 8px;
    font-size: 9px;
  }
  .heading {
    align-items: flex-start;
  }
  .heading p {
    max-width: 245px;
  }
  h1 {
    font-size: 32px;
  }
  .eyebrow {
    font-size: 8px;
  }
  .heading #export {
    margin-top: 20px;
  }
  footer {
    font-size: 8px;
  }
  .summary span {
    font-size: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .loader {
    animation: none;
  }
}
/* Connected laboratory equipment and inspection. */
.drive-controls {
  border-bottom: 1px solid var(--line);
  padding-bottom: 17px;
  margin-bottom: 20px;
}
.drive-controls .control {
  margin: 18px 0;
}
#source-toggle {
  width: 100%;
  color: #b4e9d3;
  background: #1a3535;
  font-size: 11px;
}
#source-toggle[aria-pressed="false"] {
  color: #aabac0;
  background: #1b252a;
}
#retune {
  font-size: 10px;
  width: 100%;
  background: #15252d;
}
#apparatus-status {
  font-size: 9px;
  line-height: 1.7;
  color: #7f9ba5;
  margin: 10px 0 0;
}
input:disabled,
select:disabled {
  opacity: 0.5;
  cursor: default;
}
.equipment-inspector {
  border-top: 1px solid var(--line);
  padding: 16px 22px 18px;
  background: #101b22;
}
.equipment-tabs {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.equipment-tabs button {
  font-size: 10px;
  padding: 6px 9px;
  background: #14232a;
  color: #9fbdc4;
}
.equipment-tabs button.active {
  color: #d0f6eb;
  background: #28453f;
  border-color: #4b7267;
}
.equipment-copy strong {
  font-size: 12px;
  font-weight: 500;
  color: #c7dfdd;
}
.equipment-copy p {
  font-size: 10px;
  color: #7d9ca7;
  line-height: 1.65;
  margin: 6px 0 13px;
  max-width: 700px;
}
.equipment-meters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.equipment-meters span {
  display: block;
  font-size: 8px;
  color: #688b97;
  letter-spacing: 0.5px;
}
.equipment-meters output {
  display: block;
  font-size: 15px;
  color: #b9ded5;
  font-family: ui-monospace, monospace;
  margin-top: 6px;
}
#equipment-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
#equipment-labels button {
  position: absolute;
  transform: translate(-50%, -100%);
  pointer-events: auto;
  padding: 5px 8px;
  color: #d5e9e4;
  background: #0b1b23dc;
  border: 1px solid #54777b;
  border-radius: 3px;
  font-size: 9px;
  white-space: nowrap;
  box-shadow: 0 3px 12px #0004;
}
#equipment-labels button:after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -13px;
  width: 1px;
  height: 12px;
  background: #80aba5;
}
#equipment-labels button.active {
  border-color: #a7dbca;
  background: #24413ee8;
}
#equipment-labels[hidden],
.equipment-inspector[hidden] {
  display: none;
}
.scene.laboratory {
  height: 690px;
}
.scene-top {
  z-index: 2;
}
.scene-bottom,
.phase-label {
  z-index: 2;
}
@media (min-width: 1550px) {
  .scene.laboratory {
    height: 760px;
  }
}
@media (max-width: 1150px) {
  .scene.laboratory {
    height: 590px;
  }
  .segmented button {
    padding: 7px 9px;
  }
  .scene-sub {
    max-width: 205px;
  }
  .equipment-meters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}
@media (max-width: 800px) {
  .scene.laboratory {
    height: 500px;
  }
  .drive-controls {
    grid-column: 1/-1;
  }
  .drive-controls .control {
    margin: 22px 0;
  }
  .equipment-inspector {
    padding: 17px;
  }
  .scene-sub {
    max-width: 235px;
  }
}
@media (max-width: 480px) {
  .scene.laboratory {
    height: 440px;
  }
  .scene-top {
    flex-wrap: wrap;
    gap: 10px;
  }
  .scene-sub {
    max-width: 100%;
    font-size: 8px;
  }
  .scene-top .segmented {
    margin-left: auto;
  }
  .phase-label {
    top: 102px;
    font-size: 8px;
  }
  #equipment-labels button {
    font-size: 8px;
    padding: 4px 5px;
  }
  .equipment-meters output {
    font-size: 14px;
  }
  .equipment-tabs {
    gap: 4px;
  }
  .equipment-tabs button {
    font-size: 9px;
    padding: 6px;
  }
  .scene-bottom {
    font-size: 9px;
  }
}
.understanding {
  border: 1px solid #324c51;
  border-radius: 8px;
  background: linear-gradient(110deg, #142a2e, #101a21);
  padding: 24px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 28px;
}
.understanding h2 {
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.5px;
  margin: 8px 0 10px;
}
.understanding p {
  font-size: 12px;
  color: #a1bbc2;
  line-height: 1.7;
  margin: 0;
  max-width: 820px;
}
.lesson-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-width: 220px;
}
.lesson-actions button {
  font-size: 11px;
  text-align: left;
}
.lesson-actions button:first-child {
  background: #b7e3d5;
  color: #163b32;
  border-color: #b7e3d5;
}
.time-scales {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding-top: 16px;
  border-top: 1px solid #2a4147;
}
.time-scales span {
  font-size: 8px;
  letter-spacing: 0.8px;
  color: #85a5ad;
  display: block;
}
.time-scales strong {
  font-size: 20px;
  font-weight: 400;
  display: block;
  margin-top: 7px;
  color: #cbe9e1;
}
.understanding .understanding-note {
  grid-column: 1/-1;
  font-size: 10px;
  color: #7898a3;
  max-width: none;
}
.understanding a {
  color: #a4d6ce;
}
.observation-controls {
  padding: 15px 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  background: #102027;
}
.observation-controls label {
  font-size: 11px;
  color: #b6d5d3;
}
.observation-controls select {
  font-size: 10px;
  max-width: 100%;
}
.observation-controls p {
  width: 100%;
  margin: 0;
  font-size: 10px;
  line-height: 1.7;
  color: #8caab3;
}
.stage-explorer {
  padding: 15px 22px 7px;
  background: #0e1a21;
}
.stage-buttons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.stage-buttons button {
  font-size: 10px;
  padding: 7px 11px;
}
.stage-explorer p {
  font-size: 11px;
  line-height: 1.7;
  color: #8daab3;
  margin: 12px 0 5px;
  min-height: 37px;
}
@media (max-width: 800px) {
  .understanding {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .lesson-actions {
    flex-direction: row;
    flex-wrap: wrap;
    min-width: 0;
  }
  .lesson-actions button {
    flex: 1;
    min-width: 150px;
  }
  .time-scales {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
  .observation-controls,
  .stage-explorer {
    padding-left: 17px;
    padding-right: 17px;
  }
}
@media (max-width: 480px) {
  .understanding {
    padding: 17px;
    gap: 16px;
  }
  .understanding h2 {
    font-size: 19px;
  }
  .understanding p {
    font-size: 11px;
  }
  .lesson-actions button {
    min-width: 100%;
    text-align: center;
  }
  .time-scales strong {
    font-size: 19px;
  }
  .stage-buttons {
    gap: 5px;
  }
  .stage-buttons button {
    padding: 7px 8px;
    font-size: 9px;
  }
  .readouts #radius-value {
    font-size: 20px;
  }
}

#flask-panel {
  border-top: 1px solid #294047;
  padding-top: 16px;
  margin-top: 14px;
}
#flask-panel p,
.physics-audit p {
  color: #9bb4bb;
  font-size: 12px;
  line-height: 1.65;
}
#flask-panel button {
  width: 100%;
  margin: 4px 0;
}
#resonance-plot {
  display: block;
  width: 100%;
  height: 150px;
  cursor: crosshair;
}
.physics-audit {
  margin: 24px 0;
  padding: 22px;
  border: 1px solid #294047;
  border-radius: 12px;
  background: #101c22;
}
.physics-audit h2 {
  font-size: 18px;
}
#physics-coverage {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 0 24px;
}

/* Coupled-physics controls follow the existing instrument panel. */
aside > label[for="structural-degree"],
aside > label[for="mount-stiffness"],
aside > label[for="bubble-offset"],
aside > label[for="settle-cycles"] {
  display: block;
  margin-top: 14px;
  font-size: 12px;
  color: #a9bbc2;
}
#bubble-offset {
  width: 100%;
  box-sizing: border-box;
  margin: 8px 0;
  padding: 9px 12px;
  background: #0b171d;
  color: #d7e5e9;
  border: 1px solid #314650;
  border-radius: 5px;
}
#coupled-status,
#photon-channels {
  font-size: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  color: #9bb4bf;
}

#coupled-status,
#photon-channels {
  grid-column: 1 / -1;
}
