/* Reserve the control’s height before it is attached on the first paint. */
.rv-meta { min-height: 36px; }
.rv-meta:has(.rv-classroom-toggle) { column-gap: 9px; }
.rv-meta .rv-classroom-toggle { min-height: 36px; gap: 7px; padding: 5px 11px; font-size: .85rem; white-space: nowrap; }
.rv-classroom-toggle svg { width: 17px; height: 17px; flex-basis: 17px; }
.rv-classroom-toggle[aria-pressed="true"] { background: #deecdf; border-color: #7faf8c; color: #254438; }
.rv-classroom { background: #fefdfc; }
.rv-classroom:fullscreen { width: 100%; height: 100%; overflow: auto; background: #fefdfc; }
.rv-classroom .rv-frame { min-height: max(100dvh,340px); height: 100dvh; }
.rv-classroom .rv-header { padding-block: clamp(6px,1.15vh,16px); }
.rv-classroom .rv-main {
  width: 100%; max-width: none; min-height: 0; justify-content: flex-start;
  padding: clamp(6px,1vh,16px) clamp(9px,2vw,40px) clamp(8px,1.4vh,24px);
}
.rv-classroom .rv-meta { margin-bottom: 8px; }
.rv-classroom .rv-board {
  flex: 1 1 auto; container-type: size; height: auto; min-height: clamp(150px,48vh,300px);
  border: 1px solid #b8ccb6; background-color: #eef5ef; background-image: none; box-shadow: none;
}
.rv-classroom .rv-board:is(.rv-mystery,.rv-clues,.rv-scenes) { background-color: #fbf8e6; border-color: #d8c881; }
.rv-classroom .rv-board.rv-speed { background-color: #eef4f8; border-color: #c7ddef; }
.rv-classroom .rv-board.rv-pick { background-color: #fbf1f1; border-color: #e2c7ca; }
.rv-classroom .rv-teach-card {
  --card-max-width: 94cqw; --card-max-height: 94cqh; background: #fefdfc;
  border-color: #cdd9cd; box-shadow: 0 3px 0 #b3c3b0;
}
.rv-classroom .rv-teach-card.rv-illustrated { --card-ratio: 1.06; }
.rv-classroom .rv-teach-card .rv-card-art { inset: 0; width: 100%; height: 100%; }
.rv-classroom .rv-letter { font-size: min(84cqh,79cqw); }
.rv-classroom .rv-lex-letter .rv-letter { font-size: min(78cqh,36cqw); }
.rv-classroom .rv-clue { width: min(84%,820px); height: 93%; }
.rv-classroom .rv-status { margin: 0; font-size: clamp(1rem,min(2.1vw,3.3vh),1.75rem); }
.rv-classroom .rv-controls .rv-btn { min-height: clamp(44px,5.8vh,62px); font-size: clamp(.92rem,1.35vw,1.2rem); }

@media(max-width:700px) {
  .rv-meta { min-height: 44px; }
  .rv-meta:has(.rv-classroom-toggle) .rv-set { flex: 1; }
  .rv-meta .rv-classroom-toggle { order: 1; min-height: 44px; }
  .rv-classroom .rv-meta { margin-bottom: 6px; }
  .rv-classroom .rv-board { min-height: clamp(155px,40svh,320px); }
  .rv-classroom .rv-clue { width: 91%; height: 85%; }
}
@media(max-height:460px) and (min-width:651px) {
  .rv-classroom .rv-board { min-height: 142px; }
}
@media print { .rv-classroom-toggle { display: none !important; } }

