@import url("./dialogue.css");
@import url("./study.css");
@import url("./picture-learning.css");
.learning-room {
  --l-ink: #29585a;
  --l-sea: #459b91;
  color: var(--l-ink);
  padding: 6px 8px;
}
/* The demonstration never replaces or disables the child's work surface. */
.l-teacher-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 12px 0;
}
.l-teacher-face {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  flex-shrink: 0;
  background: #ffedb4;
  border-radius: 50%;
  font-size: 42px;
}
.l-teacher-row h2 {
  margin: 4px 0;
}
.l-teacher-row small {
  font-size: 14px;
  color: #5c8076;
}
.l-action-cue {
  margin: 16px 0 8px;
  text-align: center;
  font-size: 17px;
  font-weight: 600;
}
.l-inline-example {
  background: #fff1bf;
  border-radius: 18px;
  padding: 12px 18px;
}
.l-inline-example[hidden],
.l-submit[hidden] {
  display: none !important;
}
.l-inline-example > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.l-count-workshop {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 24px;
  align-items: stretch;
}
.l-target-tray {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 16px;
  border-right: 2px dashed #accac0;
}
.l-target-tray > strong,
.l-child-tray > strong {
  display: block;
  font-size: 18px;
  margin-bottom: 14px;
  text-align: center;
}
.l-target-tray strong b {
  color: #e29029;
  font-size: 30px;
}
.l-target-tray .l-group {
  border: 0;
  padding: 0;
  justify-content: center;
}
.l-target-tray .l-group i {
  font-size: 42px;
}
.l-count-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}
.l-pick-object {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: 2px solid #efbe63;
  border-radius: 22px;
  background: #fff0ba;
  color: #69481a;
  padding: 12px 24px;
  min-width: 140px;
  cursor: pointer;
  font: inherit;
  box-shadow: 0 5px 0 #dbaa56;
}
.l-pick-object i {
  font-style: normal;
  font-size: 48px;
}
.l-count-tools {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}
.l-count-tools output {
  font-size: 32px;
  font-weight: 700;
}
.l-count-tools button {
  width: 48px;
  height: 44px;
  border: 1px solid #bccfc6;
  border-radius: 12px;
  background: #fffdf4;
  color: #386a5b;
  font-size: 26px;
  cursor: pointer;
}
.l-coach-target {
  position: relative;
  outline: 3px solid #e5ad3e !important;
  outline-offset: 5px;
  animation: l-guide-glow 1.5s ease-in-out infinite;
}
.l-coach-target::after {
  content: "";
  width: 14px;
  height: 14px;
  border: 3px solid white;
  background: #e7aa39;
  border-radius: 50%;
  position: absolute;
  right: -9px;
  bottom: -13px;
  font-size: 30px;
  pointer-events: none;
  z-index: 1;
}
.l-learn-together .l-feedback:empty {
  display: none;
}
.l-learn-together .l-stage {
  margin-top: 8px;
}
@keyframes l-guide-glow {
  50% {
    outline-color: #fae5ac;
  }
}
@media (max-width: 600px) {
  .l-count-workshop {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .l-target-tray {
    padding: 0 0 10px;
    border-right: 0;
    border-bottom: 2px dashed #accac0;
  }
  .l-target-tray > strong {
    margin: 0 0 5px;
  }
  .l-target-tray .l-reference {
    padding: 0;
  }
  .l-target-tray .l-group i {
    font-size: 32px;
  }
  .l-teacher-face {
    width: 48px;
    height: 48px;
    font-size: 30px;
  }
  .l-teacher-row {
    gap: 10px;
  }
  .l-count-actions {
    margin-top: 14px;
  }
  .l-pick-object {
    flex-direction: row;
    min-height: 60px;
  }
  .l-pick-object i {
    font-size: 36px;
  }
  .l-action-cue {
    font-size: 14px;
  }
}
.l-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
  font-size: 13px;
}
.l-top strong {
  font-size: 18px;
}
.l-progress {
  display: flex;
  gap: 7px;
  margin: 14px 0 20px;
}
.l-progress i {
  height: 7px;
  background: #e0e9df;
  flex: 1;
  border-radius: 12px;
}
.l-progress .done {
  background: #4cafa0;
}
.l-progress .current {
  background: #eeb45e;
}
.learning-room h2 {
  font-size: clamp(20px, 3vw, 29px);
  line-height: 1.3;
  max-width: 780px;
}
.l-stage {
  min-height: 220px;
  background: linear-gradient(155deg, #f1f7df, #e2f0eb);
  border-radius: 28px;
  padding: 24px;
  margin-top: 14px;
  border-bottom: 5px solid #cbded2;
  transition: box-shadow 0.2s;
}
.l-stage.l-success {
  box-shadow: 0 0 0 5px #8ddbc3;
}
.l-reference {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 16px;
}
.l-group {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  border: 2px dashed #7aaba0;
  padding: 10px;
  border-radius: 12px;
}
.l-group i {
  font-style: normal;
  font-size: 26px;
}
.l-worktray {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 92px;
  border: 3px solid #b49a69;
  border-radius: 20px;
  background: #fffaf0;
  padding: 12px;
  box-shadow: 0 6px 0 #ddcbac;
}
.l-object {
  font-size: 30px;
  display: inline-block;
  animation: l-pop 0.2s ease-out;
}
.l-bundle {
  display: inline-block;
  background: #e9b257;
  border: 2px solid #b98840;
  border-radius: 10px;
  padding: 8px;
  font-size: 23px;
  color: #5b4624;
}
.l-empty {
  color: #758e83;
  font-size: 14px;
}
.l-tools {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.l-tools button {
  min-width: 58px;
  min-height: 52px;
  background: #fffcf2;
  border: 2px solid #b3d2c0;
  border-radius: 18px;
  font-size: 23px;
  color: #2c6557;
  cursor: pointer;
  box-shadow: 0 4px 0 #b3d2c0;
}
.l-tools output {
  font-size: 27px;
  font-weight: 800;
  min-width: 45px;
  text-align: center;
}
.l-fraction {
  text-align: center;
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 20px;
}
.l-parts {
  display: flex;
  max-width: 600px;
  margin: 20px auto;
  gap: 4px;
}
.l-parts button {
  flex: 1;
  min-height: 95px;
  border: 3px solid #81afa2;
  background: #f9fcf6;
  font-size: 32px;
  opacity: 0.65;
  border-radius: 8px;
  cursor: pointer;
}
.l-parts button[aria-pressed="true"] {
  background: #f8d682;
  border-color: #cb9c49;
  opacity: 1;
}
.l-measuring {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}
.l-measuring strong {
  font-size: 35px;
}
.l-jug {
  width: 150px;
  height: 260px;
  position: relative;
  border: 5px solid #8ab4b7;
  border-top: 0;
  border-radius: 0 0 24px 24px;
  background: #ffffff8f;
  overflow: hidden;
}
.l-jug #l-water {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(#7bdae7, #3fabcc);
  transition: height 0.25s;
  border-top: 3px solid #c4f5ff;
}
.l-jug button {
  position: absolute;
  left: 0;
  right: 0;
  height: 12px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  color: #32646c;
  font-size: 10px;
}
.l-jug button:hover {
  background: #ffffffaa;
}
.l-sequence {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  min-height: 95px;
  padding: 14px;
  border: 2px dashed #8bb5a7;
  border-radius: 20px;
  margin-bottom: 16px;
  align-items: center;
  justify-content: center;
  background: #fffcf1;
}
.l-tiles {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.l-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: #fffdf6;
  border: 2px solid #d9cdaa;
  border-bottom-width: 5px;
  padding: 12px 15px;
  border-radius: 17px;
  min-height: 64px;
  font: inherit;
  font-weight: 650;
  color: #355853;
  cursor: pointer;
  line-height: 1.4;
  position: relative;
}
.l-tile i {
  font-style: normal;
  font-size: 30px;
  flex-shrink: 0;
}
.l-tile b {
  font-size: 12px;
  background: #589f93;
  border-radius: 50%;
  color: white;
  min-width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
}
.l-tile b:empty {
  display: none;
}
.l-tile:disabled {
  opacity: 0.25;
  cursor: default;
}
.l-tile[aria-pressed="true"] {
  border-color: #deac4e;
  box-shadow: 0 0 0 3px #f6d884;
}
.l-tile.linked {
  background: #d9f1e3;
  border-color: #8ac7ae;
}
.l-matching {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.l-matching > div {
  display: grid;
  gap: 12px;
}
.l-matching .l-tile {
  width: 100%;
  min-height: 75px;
}
.l-feedback {
  min-height: 40px;
  text-align: center;
  padding-top: 12px;
  font-weight: 600;
  font-size: 14px;
}
.l-footer {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.l-round,
.l-submit {
  min-height: 54px !important;
  font-size: 18px !important;
  border-radius: 20px !important;
}
.l-submit {
  margin-left: auto;
  min-width: 155px;
}
.l-example {
  background: #fff1c8;
  border: 2px solid #e5c76e;
  border-radius: 24px;
  padding: 20px;
  margin-top: 14px;
}
.l-example > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 14px 0;
}
.l-example-tile {
  background: #fffcf2;
  border-radius: 12px;
  padding: 10px;
  font-size: 15px;
}
.l-example-number {
  font-size: 36px;
  padding: 15px;
}
.l-example-part {
  width: 55px;
  height: 55px;
  border: 2px solid #baa773;
  background: #fffdf6;
  display: grid;
  place-items: center;
}
.l-example-part.filled {
  background: #f9d477;
}
.l-festival-shelf {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  background: #edf4e8;
  border-radius: 24px;
  padding: 16px;
  margin: 18px 0;
}
.l-festival-shelf > div {
  text-align: center;
  opacity: 0.58;
}
.l-festival-shelf .ready {
  opacity: 1;
}
.l-festival-shelf i {
  font-size: 38px;
  font-style: normal;
  display: block;
  filter: grayscale(0.6);
}
.l-festival-shelf .ready i {
  filter: none;
}
.l-festival-shelf span {
  display: block;
  font-size: 13px;
  font-weight: 700;
}
.l-festival-shelf small {
  font-size: 10px;
}
.l-quest-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}
.l-quest {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 0;
  border-bottom: 1px solid #dfe7d8;
  background: transparent;
  text-align: left;
  padding: 14px 6px;
  cursor: pointer;
  color: #30524c;
  font: inherit;
}
.l-quest:hover {
  background: #edf4e5;
  border-radius: 14px;
}
.l-quest > i {
  font-style: normal;
  font-size: 30px;
  width: 45px;
  text-align: center;
}
.l-quest span {
  flex: 1;
}
.l-quest small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #708574;
}
.l-dialogue {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 20px 0;
}
.l-dialogue p {
  font-size: 19px;
  line-height: 1.6;
}
.l-portrait {
  background: #e2efdf;
  border-radius: 50%;
  min-width: 80px;
  height: 80px;
  display: grid;
  place-items: center;
  font-size: 42px;
}
.l-button-icon {
  font-size: 26px;
}
.form-actions button[data-quest-action] small {
  display: block;
  font-size: 11px;
  margin-top: 4px;
  font-weight: 400;
}
.l-celebrate {
  font-size: 95px;
  text-align: center;
  padding: 15px;
  animation: l-pop 0.5s ease-out;
}
.l-completed {
  margin: 20px 0;
  padding: 14px;
  background: #f1f4e8;
  border-radius: 12px;
  color: #627960;
  font-size: 13px;
  line-height: 1.7;
}
.l-voice-row {
  padding: 18px 0;
  border-bottom: 1px solid #dde2d8;
}
.l-voice-row audio {
  display: block;
  width: 100%;
  margin: 10px 0;
}
#r9-json {
  font-family: monospace;
  font-size: 13px;
  line-height: 1.5;
  width: 100%;
  box-sizing: border-box;
}
.l-editor-list .card-row[hidden] {
  display: none;
}
.l-capacity {
  columns: 2;
}
@keyframes l-pop {
  from {
    transform: scale(0.75);
    opacity: 0.4;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
@media (max-width: 600px) {
  .learning-room {
    padding: 0;
  }
  .l-stage {
    padding: 16px 10px;
    min-height: 190px;
  }
  .l-tile {
    padding: 9px 10px;
    font-size: 14px;
    min-height: 62px;
  }
  .l-matching {
    gap: 13px;
  }
  .l-tile i {
    font-size: 25px;
  }
  .l-footer {
    gap: 8px;
  }
  .l-round span {
    display: none;
  }
  .l-submit {
    margin-left: 0;
    flex: 1;
  }
  .l-festival-shelf {
    gap: 3px;
    padding: 10px;
  }
  .l-festival-shelf i {
    font-size: 29px;
  }
  .l-festival-shelf small {
    display: none;
  }
  .l-dialogue {
    align-items: flex-start;
  }
  .l-dialogue p {
    font-size: 16px;
  }
  .l-portrait {
    min-width: 55px;
    height: 55px;
    font-size: 30px;
  }
  .l-measuring {
    gap: 18px;
  }
  .l-measuring strong {
    font-size: 25px;
  }
  .l-tools {
    gap: 8px;
  }
  .l-tools button {
    min-width: 48px;
  }
  .l-jug {
    width: 110px;
  }
  .l-capacity {
    columns: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .learning-room *,
  .l-celebrate {
    animation: none !important;
    transition: none !important;
  }
}

.l-stage[hidden],
.l-example[hidden] {
  display: none !important;
}
.l-hook {
  display: grid;
  place-items: center;
  width: 54px;
  height: 60px;
  border: 2px dashed #acbba3;
  border-radius: 15px;
  font-size: 32px;
  color: #789c8b;
}
.l-hook.filled {
  background: #fff0bc;
  border-style: solid;
  border-color: #dcbe71;
  animation: l-pop 0.2s;
}
.l-worktray[role="button"] {
  cursor: pointer;
}
.l-footer {
  position: sticky;
  bottom: -1px;
  background: #fffdf5;
  padding: 12px 0 4px;
  z-index: 2;
}
/* R10: one task at a time, visible history, large picture actions. */
.l-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid #e6eadb;
  padding: 10px 0;
  position: sticky;
  top: 0;
  background: #fffdf5;
  z-index: 3;
}
.l-tabs button,
.l-island-filters button {
  background: #edf3e7;
  color: #30594e;
  border: 0;
  border-radius: 14px;
  padding: 12px 16px;
  font: inherit;
  cursor: pointer;
}
.l-tabs button[aria-pressed="true"] {
  background: #2f6559;
  color: white;
}
.l-tabs button b {
  margin-left: 8px;
  opacity: 0.7;
}
.l-island-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 15px;
}
.l-island-filters button {
  font-size: 12px;
  padding: 10px;
}
.l-island-filters button[aria-pressed="true"] {
  background: #fae2a3;
}
.l-mission {
  padding: 20px;
  border-bottom: 1px solid #dbe5d5;
}
.l-mission-head {
  display: flex;
  gap: 15px;
  align-items: center;
}
.l-mission-head > i {
  font-style: normal;
  font-size: 40px;
}
.l-mission-head > div {
  flex: 1;
}
.l-mission h3,
.l-record h3 {
  margin: 5px 0;
  font-size: 19px;
}
.l-mission p {
  margin: 6px 0;
  font-size: 13px;
}
.l-mission small {
  font-size: 10px;
  letter-spacing: 1px;
  color: #608477;
}
.l-trail {
  display: flex;
  align-items: center;
  margin-top: 18px;
  gap: 12px;
}
.l-trail > span {
  display: grid;
  justify-items: center;
  gap: 6px;
  flex: 1;
  position: relative;
}
.l-trail b {
  border: 2px solid #dce7d4;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: #edf2e6;
}
.l-trail .done b {
  background: #c8e8d8;
  color: #26735a;
}
.l-trail .current b {
  background: #ffe7aa;
  border-color: #d7ad59;
}
.l-next-step {
  color: #517669;
  padding: 14px 0 0;
}
.l-medal {
  font-size: 38px;
}
.l-journal-footer {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.l-empty-state {
  text-align: center;
  padding: 32px 12px;
  font-size: 40px;
}
.l-empty-state h3 {
  font-size: 20px;
}
.l-empty-state p {
  font-size: 15px;
}
.l-history-summary {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 20px;
  background: #eaf1e2;
  border-radius: 20px;
  flex-wrap: wrap;
}
.l-record {
  display: flex;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid #dde7d7;
}
.l-record-icon {
  font-size: 32px;
}
.l-record small,
.l-record p {
  font-size: 13px;
  color: #668375;
}
.l-review-step {
  border-bottom: 1px solid #dce4d5;
  padding: 16px 0;
}
.l-review-step summary {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.l-review-step summary span {
  flex: 1;
}
.l-review-step em {
  font-size: 12px;
}
.l-example-review {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  padding: 12px;
  background: #edf3e7;
  border-radius: 14px;
}
.l-choice-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.l-choice {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex: 1;
  min-width: 140px;
  max-width: 270px;
  min-height: 150px;
  padding: 20px;
  border: 3px solid #c2d7bc;
  border-bottom-width: 7px;
  border-radius: 24px;
  background: #fffdf4;
  color: #315d51;
  font: inherit;
  cursor: pointer;
}
.l-choice i {
  font-style: normal;
  font-size: 36px;
}
.l-choice span {
  font-size: 25px;
  font-weight: 700;
}
.l-choice[aria-pressed="true"] {
  border-color: #dcab44;
  background: #fff0bd;
  transform: translateY(2px);
}
.l-tap-hint {
  text-align: center;
  font-size: 18px;
}
.l-picture-cue {
  text-align: center;
  font-size: 28px;
}
.l-sort-items {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.l-sort-arrow {
  text-align: center;
  margin: 12px;
  font-size: 25px;
}
.l-sort-bins {
  display: flex;
  gap: 16px;
}
.l-sort-bins > button {
  flex: 1;
  min-height: 140px;
  border: 3px dashed #c7ae76;
  border-radius: 24px;
  background: #fff8dd;
  color: #395f4e;
  cursor: pointer;
  padding: 14px;
  font: inherit;
}
.l-sort-bins strong {
  font-size: 19px;
}
.l-bin-items {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
  justify-content: center;
}
.l-bin-items > span {
  padding: 7px;
  background: #e0ecd2;
  border-radius: 10px;
}
.l-bin-ghost {
  font-size: 30px;
}
.l-beginner .l-choice {
  min-height: 170px;
}
.l-beginner .l-choice i {
  font-size: 46px;
}
.l-beginner .l-tile {
  min-height: 85px;
  font-size: 18px;
}
.l-beginner .l-tile i {
  font-size: 42px;
}
.l-beginner .l-tile[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 6px;
  width: 12px;
  height: 12px;
  background: #e7aa39;
  border: 3px solid white;
  border-radius: 50%;
}
.l-beginner .l-stage {
  padding: 20px;
}
.l-model-choice {
  font-size: 32px;
}
@media (max-width: 600px) {
  .l-tabs {
    gap: 4px;
  }
  .l-tabs button {
    padding: 12px 8px;
    font-size: 12px;
    flex: 1;
  }
  .l-tabs button b {
    margin-left: 3px;
  }
  .l-mission {
    padding: 16px 0;
  }
  .l-mission-head {
    gap: 8px;
  }
  .l-mission-head h3 {
    font-size: 17px;
  }
  .l-mission-head > i {
    font-size: 28px;
  }
  .l-choice-grid {
    gap: 9px;
  }
  .l-choice {
    min-width: 100px;
    min-height: 130px;
    padding: 14px 7px;
  }
  .l-beginner .l-choice {
    min-height: 145px;
  }
  .l-beginner .l-choice i {
    font-size: 34px;
  }
  .l-beginner .l-stage {
    padding: 14px 10px;
  }
  .l-sort-bins {
    gap: 9px;
  }
  .l-sort-bins > button {
    padding: 10px;
  }
  .l-history-summary {
    font-size: 13px;
  }
  .l-review-step summary {
    flex-wrap: wrap;
  }
  .l-trail small {
    font-size: 9px;
    letter-spacing: 0;
  }
}

/* R13: fit touch controls without covering the answer cards. */
.l-learn-together .l-top .l-back {
  margin: 0 !important;
  min-width: 112px;
}
.l-learn-together .l-top {
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.l-learn-together .l-footer {
  position: relative;
  bottom: auto;
  margin-top: 8px;
  background: transparent;
}
.l-learn-together .l-feedback:empty {
  display: none;
}
@media (min-width: 650px) and (max-height: 850px) {
  .l-learn-together .l-top {
    margin: 0 0 8px;
  }
  .l-learn-together .l-progress {
    margin: 8px 0;
  }
  .l-learn-together .l-teacher-row {
    margin: 8px 0;
  }
  .l-learn-together .l-teacher-face {
    width: 48px;
    height: 48px;
  }
  .l-learn-together .l-teacher-face img {
    width: 42px;
    height: 42px;
  }
  .l-learn-together h2 {
    font-size: 25px;
  }
  .l-learn-together .l-action-cue {
    margin: 8px 0;
  }
  .l-learn-together .l-audio-prompt {
    min-height: 54px;
    margin: 5px auto 10px;
  }
  .l-learn-together .l-listening-controls {
    margin: 8px 0 12px;
  }
  .l-learn-together .l-stage {
    padding: 12px;
    min-height: 180px;
  }
  .l-learn-together .l-choice {
    min-height: 150px;
    padding: 10px;
  }
  .l-learn-together .l-choice .l-art {
    width: 96px;
    height: 96px;
  }
  .l-learn-together .l-footer {
    padding: 8px 0 0;
    margin: 0;
  }
}

/* R14: the activity scrolls; navigation and answer controls stay reachable. */
#modal.wide:has(.l-learn-together) {
  padding: 20px 28px;
  overflow: hidden;
  max-height: calc(100dvh - 28px);
}
.learning-room.l-learn-together {
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 90px);
  box-sizing: border-box;
}
.l-learn-together > :not(.l-stage) {
  flex-shrink: 0;
}
.l-learn-together .l-stage {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.l-learn-together .l-inline-example {
  max-height: 22dvh;
  overflow-y: auto;
}
.l-learn-together .l-footer {
  display: grid;
  grid-template-columns: auto auto 48px minmax(130px, 1fr);
  gap: 8px;
  padding: 12px 0 4px;
  margin: 0;
}
.l-learn-together .l-footer .l-submit {
  grid-column: -2 / -1;
}
.l-learn-together .l-footer button {
  min-height: 50px;
  margin: 0;
}
.l-learn-together .l-choice {
  gap: 8px;
}
.l-learn-together .l-teacher-face .l-art {
  width: 100%;
  height: 100%;
}
@media (max-width: 600px) {
  #modal.wide:has(.l-learn-together) {
    padding: 10px;
  }
  .learning-room.l-learn-together {
    max-height: calc(100dvh - 58px);
    padding: 4px;
  }
  .l-learn-together .l-footer {
    grid-template-columns: 1fr 1fr 48px;
  }
  .l-learn-together .l-footer .l-submit {
    grid-column: 1 / -1;
  }
  .l-learn-together .l-footer button {
    font-size: 14px;
    padding: 9px;
  }
  .l-learn-together .l-choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .l-learn-together .l-choice {
    min-width: 0;
    max-width: none;
    padding: 8px 3px;
  }
  .l-learn-together .l-choice span {
    font-size: 20px;
  }
  .l-learn-together .l-choice .l-art {
    width: 74px;
    height: 84px;
  }
}
@media (max-width: 600px) {
  .l-learn-together .l-top {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
  }
  .l-learn-together .l-top .l-back {
    justify-self: start;
  }
  .l-learn-together .l-top > strong {
    grid-column: 2;
    grid-row: 1;
    margin-right: 40px;
  }
  .l-learn-together .l-learning-subject {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
  }
  .l-learn-together .l-round span {
    display: inline;
  }
  .l-learn-together .l-progress {
    margin: 10px 0;
  }
  .l-learn-together .l-teacher-row {
    margin: 8px 0;
  }
}
@media (max-width: 600px) {
  .l-learn-together .l-story-context {
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 10px;
  }
  .l-learn-together .l-story-context .l-reading-passage {
    padding: 12px;
    font-size: 16px;
  }
  .l-learn-together .l-story-scene {
    width: 112px;
    height: 110px;
  }
  .l-learn-together .l-story-scene.l-art-single {
    background-size: contain !important;
  }
}
.l-step-art .l-art { width:150px; height:150px; }
