.app-simulator {
  border: 1px solid #b9cec7;
  border-radius: 24px;
  overflow: hidden;
  background: #eef5f2;
  box-shadow: 0 18px 45px rgb(25 61 51 / 10%);
  scroll-margin-top: 2rem;
}
.app-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.3rem 1.8rem;
  color: white;
  background: #075e54;
}
.app-topbar strong {
  font-size: 1.25rem;
}
.app-topbar strong span {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
}
.app-badge {
  padding: 0.4rem 0.7rem;
  border: 1px solid #a1c9bd;
  border-radius: 99px;
  font-size: 0.8rem;
}
.app-body {
  padding: clamp(1rem, 4vw, 2.4rem);
}
.app-body h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
}
.app-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}
.app-progress li {
  padding: 0.6rem 0.8rem;
  border: 1px solid #b9cec7;
  border-radius: 99px;
  color: #4b625b;
  background: white;
  font-size: 0.88rem;
}
.app-progress li[aria-current="step"] {
  background: #075e54;
  color: white;
  border-color: #075e54;
  font-weight: 700;
}
.app-panel {
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid #b9cec7;
  border-radius: 18px;
  background: white;
}
.app-panel[hidden] {
  display: none;
}
.app-panel h3 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.app-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.app-facts div {
  padding: 1rem;
  background: #e1efeb;
  border-radius: 12px;
}
.app-facts dt {
  font-size: 0.8rem;
  color: #4b625b;
}
.app-facts dd {
  margin: 0.4rem 0 0;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.app-panel .button {
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  border: 2px solid transparent;
  max-width: 100%;
  white-space: normal;
}
.app-panel .button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}
.app-complete {
  background: #e1efeb;
}
#app-result {
  min-height: 1.5em;
  font-weight: 650;
}
.app-about {
  max-width: 75ch;
}
.app-video video {
  display: block;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 480 / 760;
  background: #eef5f2;
  border: 1px solid #b9cec7;
  border-radius: 16px;
  margin-top: 1.5rem;
  margin-inline: auto;
}
.app-transcript {
  margin-top: 1.5rem;
  padding: 1rem;
  border: 1px solid #b9cec7;
  border-radius: 12px;
}
.video-explanation {
  padding: 1rem 1.25rem;
  margin-top: 0.75rem;
  min-height: 8rem;
  border-left: 4px solid #075e54;
  background: #eef5f2;
  border-radius: 0 12px 12px 0;
  max-width: 480px;
  margin-inline: auto;
}
.app-video video::cue {
  font-size: clamp(14px, 1.4vw, 22px);
}
.video-explanation p {
  margin: 0;
}
.video-explanation .eyebrow {
  margin-bottom: 0.5rem;
}
.video-chapters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 1.25rem auto;
  max-width: 640px;
}
.video-chapters button {
  padding: 0.65rem;
  min-height: 48px;
  border: 1px solid #b9cec7;
  border-radius: 10px;
  color: #075e54;
  background: white;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.video-chapters button[aria-current="step"] {
  border-color: #075e54;
  background: #eef5f2;
  font-weight: 700;
}
.video-chapters button:disabled {
  cursor: not-allowed;
}
.app-transcript summary {
  cursor: pointer;
  min-height: 44px;
  font-weight: 650;
}
.app-transcript li {
  margin-bottom: 0.75rem;
}
.app-controls {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}
.app-controls button {
  padding: 0.7rem 1rem;
  min-height: 48px;
  font: inherit;
  font-weight: 650;
  border: 1px solid #075e54;
  border-radius: 12px;
  color: #075e54;
  background: white;
  cursor: pointer;
}
.app-controls button[aria-pressed="true"] {
  color: white;
  background: #075e54;
}
.app-controls button:disabled {
  cursor: not-allowed;
}
.app-panel .app-secondary {
  background: white;
  color: #075e54;
  border-color: #075e54;
  margin-top: 0.7rem;
}
@media (max-width: 640px) {
  .app-facts {
    grid-template-columns: 1fr;
  }
  .app-panel .button {
    width: 100%;
  }
}
