#lab-stage[data-mode="human"] {
  position: relative;
  gap: 10px;
  padding: 18px;
  background:
    radial-gradient(circle at 18% 15%, rgba(85, 172, 187, 0.16), transparent 28%),
    linear-gradient(150deg, #163746, #0b1b29 65%);
}

#lab-stage[data-mode="human"] .model-heading {
  display: block !important;
  text-align: left;
  width: min(100%, 760px);
  margin: 0 auto;
}

#lab-stage[data-mode="human"] .model-heading .eyebrow {
  display: block;
  margin: 0 0 3px;
  color: #86c8cf;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

#lab-stage[data-mode="human"] .model-heading h2 {
  color: #f4fbf8;
  text-align: left;
  font-size: clamp(20px, 2.1vw, 28px);
  font-weight: 650;
  letter-spacing: -0.025em;
}

.model-heading__lede {
  margin: 4px 0 0;
  color: #afc9ce;
  font-size: 11px;
}

#lab-stage[data-mode="human"] .model-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-self: center;
  width: min(100%, 760px);
  max-width: none;
  padding: 5px;
  gap: 5px;
  border-color: #426372;
  border-radius: 14px;
  background: rgba(4, 21, 32, 0.9);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

#lab-stage[data-mode="human"] .model-tabs button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  min-height: 52px;
  padding: 7px 12px;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #b8cdd2;
  text-align: left;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

#lab-stage[data-mode="human"] .model-tabs button:hover {
  border-color: rgba(134, 200, 207, 0.35);
  background: rgba(30, 61, 74, 0.72);
}

#lab-stage[data-mode="human"] .model-tabs button[aria-pressed="true"] {
  border-color: #d8ead3;
  color: #112d2d;
  background: #c8dfc4;
  box-shadow: 0 5px 18px rgba(153, 207, 174, 0.16);
}

.model-tab-number {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 800;
  opacity: 0.8;
}

.model-tab-copy {
  min-width: 0;
}

.model-tab-copy strong,
.model-tab-copy small {
  display: block;
}

.model-tab-copy strong {
  font-size: 12px;
  font-weight: 700;
}

.model-tab-copy small {
  margin-top: 2px;
  overflow: hidden;
  font-size: 9px;
  line-height: 1.2;
  opacity: 0.72;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-visual-guide {
  display: grid;
  grid-template-columns: minmax(110px, 0.22fr) minmax(0, 1fr);
  align-items: center;
  width: 100%;
  min-height: 80px;
  padding: 10px 14px;
  gap: 16px;
  border: 1px solid rgba(89, 134, 148, 0.55);
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(8, 27, 39, 0.96), rgba(17, 47, 60, 0.88)),
    radial-gradient(circle at 70% 0%, rgba(107, 190, 194, 0.2), transparent 45%);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025), 0 12px 30px rgba(0, 0, 0, 0.12);
}

.model-visual-guide__label {
  padding-right: 14px;
  border-right: 1px solid rgba(112, 158, 169, 0.3);
}

.model-visual-guide__label small,
.model-visual-guide__label strong {
  display: block;
}

.model-visual-guide__label small {
  margin-bottom: 4px;
  color: #7fc5cc;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.model-visual-guide__label strong {
  color: #e9f4f1;
  font-size: 12px;
  line-height: 1.25;
}

.model-visual-guide__flow {
  display: grid;
  grid-template-columns: minmax(72px, auto) minmax(62px, 1fr) minmax(72px, auto) minmax(62px, 1fr) minmax(72px, auto);
  align-items: center;
  min-width: 0;
}

.model-guide-body {
  display: grid;
  grid-template-columns: 40px minmax(0, auto);
  align-items: center;
  justify-content: center;
  min-width: 0;
  gap: 8px;
}

.model-guide-orbit {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
}

.model-guide-orbit i {
  display: block;
  border-radius: 50%;
  box-shadow: 0 0 16px currentColor;
}

.model-guide-body--sun .model-guide-orbit {
  color: rgba(242, 196, 127, 0.42);
}

.model-guide-body--sun .model-guide-orbit i {
  width: 36px;
  height: 36px;
  background: radial-gradient(circle at 35% 30%, #fff3b3, #e5a548 66%, #bd712f);
}

.model-guide-body--earth .model-guide-orbit {
  color: rgba(86, 190, 207, 0.45);
}

.model-guide-body--earth .model-guide-orbit i {
  width: 19px;
  height: 19px;
  border: 1px solid #b8eef1;
  background: radial-gradient(circle at 30% 28%, #afe8e4, #3d91ae 56%, #285376);
}

.model-guide-body--moon .model-guide-orbit {
  color: rgba(213, 222, 235, 0.34);
}

.model-guide-body--moon .model-guide-orbit i {
  width: 11px;
  height: 11px;
  border: 1px solid #eef5f7;
  background: radial-gradient(circle at 35% 30%, #f2f5f4, #a8b4bd 70%);
}

.model-guide-body__copy small,
.model-guide-body__copy strong {
  display: block;
  white-space: nowrap;
}

.model-guide-body__copy small {
  color: #86a8b2;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.model-guide-body__copy strong {
  margin-top: 2px;
  color: #f1f7f5;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}

.model-guide-link {
  position: relative;
  display: grid;
  justify-items: center;
  min-width: 0;
  color: #86c8cf;
  text-align: center;
}

.model-guide-link > span {
  width: calc(100% - 8px);
  height: 1px;
  margin-bottom: -8px;
  background: linear-gradient(90deg, transparent, currentColor 18%, currentColor 82%, transparent);
}

.model-guide-link > span::after {
  content: "";
  position: absolute;
  top: -2px;
  right: 5px;
  width: 5px;
  height: 5px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

.model-guide-link strong {
  z-index: 1;
  padding: 2px 7px;
  border: 1px solid rgba(134, 200, 207, 0.32);
  border-radius: 999px;
  color: #d9eeeb;
  background: #102d3b;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.model-guide-link small {
  margin-top: 2px;
  color: #809fa8;
  font-size: 7px;
  white-space: nowrap;
}

#lab-stage[data-mode="human"] .model-scene-wrap {
  min-height: 220px;
  border-color: #3c6270;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.03), 0 16px 34px rgba(0, 0, 0, 0.16);
}

#lab-stage[data-mode="human"] .model-legend {
  display: none;
}

.model-legend-dot--sun {
  --body: #f2c47f;
}

.model-legend-dot--earth {
  --body: #86d7e5;
}

.model-legend-dot--moon {
  --body: #d5deeb;
}

#lab-stage[data-mode="human"] > .lab-caption {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding-left: 18px;
  color: #a8bec5;
  text-align: left;
  font-size: 9px;
}

#lab-stage[data-mode="human"] > .lab-caption::before {
  content: "i";
  position: absolute;
  top: 1px;
  left: 0;
  display: grid;
  place-items: center;
  width: 13px;
  height: 13px;
  border: 1px solid #6daeb7;
  border-radius: 50%;
  color: #bfe1df;
  font-size: 8px;
  font-weight: 800;
}

@media (max-width: 900px) {
  #lab-stage[data-mode="human"] {
    gap: 8px;
    padding: 12px;
  }

  .model-heading__lede {
    display: none;
  }

  .model-visual-guide {
    grid-template-columns: 1fr;
    padding: 8px 10px;
    gap: 7px;
  }

  .model-visual-guide__label {
    display: flex;
    align-items: baseline;
    padding: 0 0 6px;
    gap: 7px;
    border-right: 0;
    border-bottom: 1px solid rgba(112, 158, 169, 0.25);
  }

  .model-visual-guide__label small {
    margin: 0;
  }
}

@media (max-width: 760px) {
  #workspace.with-panel:has(#lab-stage[data-mode="human"]:not([hidden])) {
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }

  #workspace.with-panel:has(#lab-stage[data-mode="human"]:not([hidden])) #stage-shell {
    flex: 0 0 auto;
    min-height: 560px;
  }

  #workspace.with-panel:has(#lab-stage[data-mode="human"]:not([hidden])) #learning-panel {
    flex: 0 0 560px;
    min-height: 560px;
  }

  #lab-stage[data-mode="human"] {
    min-height: 560px;
    padding: 12px 10px;
  }

  #lab-stage[data-mode="human"] .model-heading h2 {
    font-size: 19px;
  }

  #lab-stage[data-mode="human"] .model-tabs button {
    min-height: 58px;
    padding: 7px;
    gap: 6px;
  }

  .model-tab-number {
    width: 24px;
    height: 24px;
  }

  .model-tab-copy strong {
    font-size: 10px;
    line-height: 1.15;
  }

  .model-tab-copy small {
    display: none;
  }

  .model-visual-guide {
    min-height: 106px;
  }

  .model-visual-guide__label strong {
    font-size: 10px;
  }

  .model-visual-guide__flow {
    grid-template-columns: minmax(52px, auto) minmax(42px, 1fr) minmax(52px, auto) minmax(42px, 1fr) minmax(52px, auto);
  }

  .model-guide-body {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 2px;
    text-align: center;
  }

  .model-guide-orbit {
    width: 34px;
    height: 34px;
  }

  .model-guide-body--sun .model-guide-orbit i {
    width: 31px;
    height: 31px;
  }

  .model-guide-body__copy small {
    font-size: 7px;
  }

  .model-guide-body__copy strong {
    font-size: 10px;
  }

  .model-guide-link strong {
    padding: 2px 5px;
    font-size: 8px;
  }

  .model-guide-link small {
    max-width: 52px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #lab-stage[data-mode="human"] .model-scene-wrap {
    min-height: 245px;
  }

  #lab-stage[data-mode="human"] > .lab-caption {
    font-size: 9px;
    line-height: 1.35;
  }
}

@media (max-width: 380px) {
  #workspace.with-panel:has(#lab-stage[data-mode="human"]:not([hidden])) #stage-shell,
  #lab-stage[data-mode="human"] {
    min-height: 550px;
  }

  #lab-stage[data-mode="human"] .model-heading h2 {
    font-size: 17px;
  }

  .model-visual-guide__label strong {
    font-size: 9px;
  }

  .model-guide-body__copy strong {
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #lab-stage[data-mode="human"] .model-tabs button {
    transition: none;
  }
}
