/* Typing Coach Core v1.87.152 — social-psychology and memory short practice only.
 * Root cause: a fixed-height keyboard wrapper clips the actual fifth row,
 * while the previous height-fit check only measured the wrapper's height.
 * Respect the real intrinsic height of all five rows so the existing
 * viewport-fit function measures the entire practice screen correctly.
 * Do not modify lesson text, typography, keys or scoring. */
@media (min-width: 1101px) {
  html body.tc-stage-practice .tc-shell[data-tc-app][data-lesson-type="short"]:is([data-tc-social-short],[data-tc-memory-short]):is([data-tc-social-short],[data-tc-memory-short])
  .tc-practice-canvas .tc-keyboard-wrap-formal {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }
  html body.tc-stage-practice .tc-shell[data-tc-app][data-lesson-type="short"]:is([data-tc-social-short],[data-tc-memory-short]):is([data-tc-social-short],[data-tc-memory-short])
  .tc-practice-canvas .tc-keyboard-wrap-formal .tc-keyboard {
    height: max-content !important;
    min-height: 0 !important;
    grid-template-rows: repeat(5, max-content) !important;
    overflow: visible !important;
  }
  /* Save unused vertical inter-section space, not key or text dimensions. */
  html body.tc-stage-practice .tc-shell[data-tc-app][data-lesson-type="short"]:is([data-tc-social-short],[data-tc-memory-short]):is([data-tc-social-short],[data-tc-memory-short])
  .tc-practice-canvas {
    row-gap: 2px !important;
  }
}

/* Existing short-lessons geometry fixes the 6th track at 228px even when the
   five actual key rows need more. Release only that keyboard track for the
   three seeded memory short lessons; keep the other six tracks unchanged. */
@media(min-width:1101px){
 html body.tc-stage-practice .tc-shell[data-tc-app][data-lesson-type="short"][data-tc-memory-short][data-tc-memory-short] .tc-practice-canvas {
   grid-template-rows: 48px 64px 182px 76px 32px max-content 28px !important;
 }
}
