/* Finite assignments keep every line in the document, with no hidden tail. */
#trainer #textViewport{height:auto;min-height:54px;max-height:none;overflow:visible;scroll-behavior:auto}
#trainer .exercise-area{min-height:0;padding:10px 24px 12px}
#trainer .typing-card{overflow:clip}
#targetText .word{white-space:normal;overflow-wrap:anywhere}
.text-overview{position:sticky;top:0;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 24px 5px;font-size:14px;color:#596475;background:var(--white,#fff)}
.text-overview strong{font-weight:600;font-variant-numeric:tabular-nums;color:#53695a}
#targetText .text-end-marker{display:inline-block;vertical-align:middle;margin-left:16px;padding:3px 9px;border-radius:7px;background:#eaf1ed;color:#426650;font:600 14px/1.4 'Segoe UI',sans-serif;letter-spacing:0;white-space:normal;user-select:none}
#trainer .focus-cover{justify-content:flex-start;padding-top:24px;border-radius:0 0 10px 10px}
@media(min-width:951px){.practice-active .hands-section{margin-top:8px}.practice-active .hand{height:110px;width:108px}.practice-active .key{height:25px}}
@media(max-width:650px){#trainer .exercise-area{padding:10px 14px 12px}.text-overview{padding:9px 14px 0;font-size:13px;flex-wrap:wrap;gap:4px 12px}#targetText .text-end-marker{font-size:13px;margin-left:8px}.text-overview strong{margin-left:auto}}
