.yt-practice-dialog{--yt-visible-height:100dvh;--yt-visible-top:0px;--yt-ink:#152b23;--yt-muted:#617169;--yt-line:#dbe3d4;box-sizing:border-box;width:min(820px,calc(100% - 32px));max-width:none;height:min(900px,calc(var(--yt-visible-height) - 32px));max-height:none;padding:0;border:1px solid #d4decb;border-radius:24px;background:#f8faf2;color:var(--yt-ink);box-shadow:0 24px 100px #09241c40;overflow:hidden;font-family:inherit;overscroll-behavior:contain}
.yt-practice-dialog::backdrop{background:#0b241bd9;backdrop-filter:blur(7px)}
.yt-practice-dialog *{box-sizing:border-box}.yt-practice-dialog [hidden]{display:none!important}.yt-practice-dialog button,.yt-practice-dialog input{font:inherit}.yt-practice-dialog button{cursor:pointer}.yt-practice-dialog button:focus-visible,.yt-practice-dialog input:focus-visible{outline:3px solid #809d4d;outline-offset:3px}.yt-practice-dialog button:disabled{cursor:wait;opacity:.6}
.yt-practice-shell{height:100%;min-height:0;display:flex;flex-direction:column;position:relative}.yt-practice-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 22px;flex:none}.yt-practice-brand{font-size:16px;font-weight:850;letter-spacing:-.5px}.yt-practice-brand span{font-size:12px;font-weight:500;color:var(--yt-muted);letter-spacing:0}.yt-practice-header h2{font-size:14px;font-weight:500;line-height:1.4;margin:3px 0 0;max-width:600px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.yt-practice-header>div{min-width:0}.yt-practice-header>button,.yt-practice-word-top button{border:1px solid var(--yt-line);border-radius:50%;height:44px;width:44px;flex:none;background:#fff;color:var(--yt-ink);font-size:27px;line-height:1}
.yt-practice-media{position:relative;width:100%;flex:none;height:clamp(140px,34vh,330px);background:#0f1b15}.yt-practice-media>div,.yt-practice-media iframe{width:100%;height:100%;border:0}.yt-practice-workspace{padding:20px 28px 22px;overflow-y:auto;overscroll-behavior:contain;flex:1;min-height:0;scrollbar-width:thin;position:relative}.yt-practice-meta{display:flex;justify-content:space-between;gap:16px;color:var(--yt-muted);font-size:12px;font-weight:650;margin-bottom:18px}.yt-practice-caption{font-size:25px;font-weight:750;line-height:1.6;text-align:center;text-wrap:pretty;overflow-wrap:anywhere}.yt-practice-word{display:inline!important;min-width:0!important;min-height:0!important;max-width:100%;padding:2px 0!important;margin:0;border:0;border-bottom:1px solid transparent;border-radius:0!important;background:transparent!important;color:inherit;font:inherit!important;line-height:inherit!important;vertical-align:baseline;box-shadow:none!important;white-space:normal!important}.yt-practice-word:hover,.yt-practice-word-selected{border-bottom:1px dashed #47905a!important;color:#356c43!important}.yt-practice-revealed{color:#47721c!important;background:#d9f4ad!important;border-radius:5px!important;padding-inline:3px!important}.yt-practice-blank{display:inline-block;min-width:64px;border-bottom:2px solid #86a057;line-height:1.2;color:#709844;letter-spacing:4px;margin-inline:3px;text-align:center}.yt-practice-translation{font-size:16px;line-height:1.55;text-align:center;color:#53665b;margin:9px 0 0}.yt-practice-hint{font-size:11px;color:#738174;text-align:center;margin:6px 0 16px}.yt-practice-dialog form{margin:0}.yt-practice-dialog form label{display:block;font-size:12px;font-weight:650;margin-bottom:7px}.yt-practice-answer-row{display:flex;gap:9px}.yt-practice-answer-row input{min-width:0;width:100%;height:54px;font-size:19px;padding:10px 14px;border:1px solid #adbda0;border-radius:12px;background:white;color:var(--yt-ink);box-shadow:none}.yt-practice-answer-row input[aria-invalid=true]{border-color:#b4543a;background:#fff8f5}.yt-practice-answer-row button,#yt-practice-play,#yt-practice-flashcards{border:1px solid #b6d580;background:#d1fb6a;color:#183119;min-height:52px;padding:12px 22px;border-radius:12px;font-weight:750;white-space:nowrap}.yt-practice-actions{display:flex;justify-content:space-between;gap:8px;margin-top:9px}.yt-practice-actions button{border:0;background:transparent;color:#45613d;min-height:44px;padding:8px 5px;font-size:13px}.yt-practice-actions kbd{border:1px solid #c7d4ba;border-radius:4px;padding:1px 5px;margin-left:3px;font:inherit;font-size:10px;color:#64745e}#yt-practice-status{font-size:13px;line-height:1.5;color:var(--yt-muted);min-height:20px;margin:10px 0 0;text-align:center}#yt-practice-play{display:block;width:100%;margin-top:15px}.yt-practice-sound{display:block;width:52px;height:52px;line-height:52px;border-radius:50%;background:#e5efd8;color:#799947;font-size:26px;margin:16px auto 12px}#yt-practice-listening{text-align:center;line-height:1.6;color:#5a6d5d;font-size:16px;padding:6px 0 10px}#yt-practice-finish{text-align:center;padding:12px 0}.yt-practice-success{display:block;font-size:30px;background:#d4f594;color:#3f652b;border-radius:50%;width:56px;height:56px;line-height:56px;margin:0 auto 14px}#yt-practice-finish h3{font-size:25px;margin:0 0 10px;letter-spacing:-.7px}#yt-practice-finish p{line-height:1.6;color:var(--yt-muted);font-size:15px;margin:0 0 20px}#yt-practice-flashcards{width:100%}
#yt-practice-word-popup{position:absolute;z-index:5;right:20px;left:20px;bottom:18px;max-height:calc(100% - 90px);overflow-y:auto;padding:16px 20px 20px;background:#fff;border:1px solid #a4c589;border-radius:18px;box-shadow:0 8px 50px #16332335;text-align:left}.yt-practice-word-top{display:flex;align-items:center;justify-content:space-between;gap:16px}.yt-practice-word-top strong{font-size:23px;overflow-wrap:anywhere}.yt-practice-word-top button{width:38px;height:38px;font-size:24px}.yt-practice-word-label{font-size:10px;font-weight:750;text-transform:uppercase;letter-spacing:1px;color:#71825e;margin:13px 0 5px}#yt-practice-word-context{font-size:15px;line-height:1.5;margin:0;color:#5f6e59}#yt-practice-word-meaning{font-size:22px;font-weight:700;line-height:1.45;margin:0;color:#31572a}#yt-practice-word-retry{min-height:44px;margin-top:12px;border:1px solid #c8d6ba;background:#f4f8ee;border-radius:9px;padding:8px 14px;color:#31572a}
@media(prefers-reduced-motion:reduce){.yt-practice-dialog *{scroll-behavior:auto!important;transition:none!important}}
/* One stable layout before and after focus: the keyboard never collapses the
   header or video above the answer. The stage, not the sales page, can scroll. */
.yt-practice-dialog{height:min(940px,calc(var(--yt-visible-height) - 32px));border-radius:26px;background:#f6f8f1}
.yt-practice-header{padding:18px 24px;background:#fff;border-bottom:1px solid var(--yt-line);z-index:1}
.yt-practice-brands{display:flex;align-items:center;gap:15px}.yt-practice-brand{display:flex;align-items:center;font-size:23px;font-weight:800;letter-spacing:-1.1px;white-space:nowrap}.yt-practice-brand img{margin-right:7px;border-radius:8px}.yt-practice-brand .yt-practice-brand-dot{font:inherit;color:#7c9c38}.yt-practice-brand-divider{font-size:17px;color:#a8b3a3}.yt-practice-youtube-logo{display:block;width:92px;height:auto;flex:none}
.yt-practice-header h2{font-size:12px;line-height:1.5;margin-top:7px;color:var(--yt-muted)}.yt-practice-header>button{background:#f7f9f3;color:#506151}
.yt-practice-stage{display:flex;flex-direction:column;min-height:0;flex:1;overflow-y:auto;overscroll-behavior:contain;overflow-anchor:none;scroll-behavior:auto;scrollbar-width:thin}
.yt-practice-media{height:clamp(200px,32vw,310px)}.yt-practice-workspace{padding:22px 30px 24px;flex:none;overflow:visible;background:#fff}
.yt-practice-meta{align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:22px;font-size:11px}
#yt-practice-language{display:flex;align-items:center;gap:8px}.yt-practice-language-chip{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border:1px solid #dce6d0;border-radius:9px;font-size:12px;line-height:18px;white-space:nowrap;background:#f7f9f4;color:#435842}.yt-practice-language-chip.learning{background:#eff7df;border-color:#d6e7bb;color:#3d6024}.yt-practice-language-chip img{display:block;width:24px;height:17px;object-fit:cover;border-radius:3px;box-shadow:0 0 0 1px #0000000a}.yt-practice-language-arrow{color:#9aa58d;font-size:15px}#yt-practice-progress{white-space:nowrap;margin-left:auto;font-variant-numeric:tabular-nums}
.yt-practice-caption{font-size:28px;line-height:1.5;color:#193328}.yt-practice-translation{color:#66745e;margin-top:7px}.yt-practice-hint{font-size:11px;line-height:1.5;color:#8a9481;margin:7px 0 0}
.yt-practice-dialog form{margin:20px auto 0;max-width:550px}.yt-practice-answer-row input{height:56px;padding:12px 15px;border-color:#cad6bc;border-radius:13px;background:#fbfcf8}.yt-practice-answer-row input::placeholder{color:#89977d}.yt-practice-answer-row input:focus{border-color:#86a852;background:#fff;box-shadow:0 0 0 3px #9ebc5d18}.yt-practice-answer-row button{border-color:#c1e96a;background:#d2fa7c;border-radius:13px}.yt-practice-actions{margin:8px auto 0;max-width:550px}.yt-practice-actions button{color:#526646;touch-action:manipulation}#yt-practice-status{font-size:12px;min-height:18px;margin-top:12px}
@media(max-width:759px){
 .yt-practice-dialog{position:fixed;inset:auto;top:var(--yt-visible-top);left:0;margin:0;width:100%;height:var(--yt-visible-height);border:0;border-radius:0}
 .yt-practice-header{padding:10px 16px}.yt-practice-header h2{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;margin:0}.yt-practice-brands{gap:12px}.yt-practice-brand{font-size:22px}.yt-practice-youtube-logo{width:86px}
 .yt-practice-workspace{order:1;padding:14px 18px max(16px,env(safe-area-inset-bottom));border-radius:22px;box-shadow:0 3px 12px #1b362408}
 .yt-practice-media{order:0;height:clamp(200px,56.25vw,350px);width:calc(100% - 28px);margin:14px 14px 16px;border-radius:15px;overflow:hidden}
 .yt-practice-meta{gap:7px;margin-bottom:16px;font-size:10px}.yt-practice-language-chip{padding:5px 8px;font-size:11px;gap:6px}.yt-practice-language-chip img{width:23px;height:16px}#yt-practice-language{gap:6px}
 .yt-practice-caption{font-size:23px;line-height:1.4}.yt-practice-translation{font-size:14px;margin-top:6px}.yt-practice-dialog form{margin-top:16px}.yt-practice-dialog form label{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden;margin:0}
 .yt-practice-answer-row input{height:52px;font-size:18px}.yt-practice-answer-row button{height:52px;padding-inline:17px;font-size:14px}.yt-practice-actions{margin-top:6px}.yt-practice-actions kbd{display:none}.yt-practice-hint{margin-top:3px}#yt-practice-status{font-size:11px;margin-top:10px}
 #yt-practice-word-popup{left:12px;right:12px;bottom:12px;padding:12px 16px 18px;max-height:calc(100% - 76px)}
}
@media(max-width:360px){.yt-practice-workspace{padding-inline:14px}.yt-practice-brands{gap:10px}.yt-practice-brand{font-size:21px}.yt-practice-youtube-logo{width:78px}.yt-practice-answer-row button{padding-inline:12px}.yt-practice-caption{font-size:22px}}

/* The blank is the answer field. Its reserved width never changes on input. */
#yt-practice-form{max-width:none;margin:0}
.yt-practice-caption{text-wrap:wrap;line-height:1.8}
#yt-practice-answer{display:inline-block;vertical-align:baseline;box-sizing:border-box;min-width:76px;max-width:min(100%,320px);height:1.75em;min-height:48px;margin:0 3px;padding:1px 9px 2px;border:0;border-bottom:2px solid #83a83e;border-radius:7px 7px 0 0;background:#eff6df;color:#3e651c;font:inherit;line-height:1.35;text-align:center;caret-color:#375e18;outline:none;box-shadow:none;scroll-margin:0}
#yt-practice-answer::placeholder{color:#7a9b43;opacity:1;letter-spacing:3px}
#yt-practice-answer:focus{background:#e9f5cd;border-bottom-color:#577d22;outline:none;box-shadow:0 0 0 2px #93b45335}
#yt-practice-answer[aria-invalid=true]{background:#fff1e9;border-bottom-color:#bb5234;color:#94351c}
#yt-practice-revealed-answer{margin:10px 0 0;text-align:center;font-size:14px;line-height:1.7;color:#62734f}
#yt-practice-revealed-answer .yt-practice-revealed{font-weight:750!important}
.yt-practice-actions{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:10px;max-width:600px;margin:20px auto 12px}
.yt-practice-actions button{display:flex;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:48px;padding:11px 13px;border:1px solid #c9d8b6;border-radius:12px;background:#f1f6e9;color:#3c542e;font-size:14px;font-weight:650;line-height:1.3;box-shadow:0 2px 0 #dce6cf;touch-action:manipulation}
.yt-practice-actions button:hover{background:#e5efd7;border-color:#a5be82}
.yt-practice-actions button:active{box-shadow:none;background:#dae9c5}
.yt-practice-actions kbd{background:#fff9;margin:0;border-color:#bfceae}
.yt-practice-actions #yt-practice-check{background:#d2fa7c;border-color:#badd70;color:#223c13;box-shadow:0 2px 0 #b5d66e}
.yt-practice-actions #yt-practice-check:hover{background:#c6f269}
@media(max-width:759px){
 .yt-practice-actions{grid-template-columns:1fr 1fr;gap:10px;margin-top:16px}
 .yt-practice-actions #yt-practice-check{grid-column:1/-1;min-height:50px}
 .yt-practice-actions button{font-size:14px;padding:12px 9px}
 .yt-practice-caption{line-height:1.85}
 #yt-practice-answer{max-width:min(100%,240px)}
}
