/* Homepage-only fit: keep every activity and its feedback inside one phone. */
[aria-labelledby="home-title"] #try-cantonese [class*="_screen_"] { height:660px; min-height:660px; max-height:660px; }
[aria-labelledby="home-title"] #try-cantonese [class*="_statusBar_"] { height:44px; }
[aria-labelledby="home-title"] #try-cantonese [class*="_lessonBar_"] { height:30px; padding:4px 18px 7px; }
[aria-labelledby="home-title"] #try-cantonese [class*="_homeIndicator_"] { height:12px; }
[aria-labelledby="home-title"] #try-cantonese [class*="_lessonBody_"] { padding:8px 18px; overflow:clip; overscroll-behavior:auto; }
[aria-labelledby="home-title"] #try-cantonese [class*="_lessonKicker_"] { margin-bottom:4px!important; font-size:12px; line-height:1.3; }
[aria-labelledby="home-title"] #try-cantonese [class*="_screen_"] [class*="_taskTitle_"] { font-size:23px; line-height:1.2; }
[aria-labelledby="home-title"] #try-cantonese [class*="_context_"] { margin-top:6px!important; font-size:13px; line-height:1.35; }
[aria-labelledby="home-title"] #try-cantonese [class*="_screen_"][data-exercise-kind="picture"] [class*="_sourceBubble_"] { height:76px; margin-top:10px; padding:8px 10px; border-radius:20px; }
[aria-labelledby="home-title"] #try-cantonese [class*="_sourceRow_"] { gap:12px; }
[aria-labelledby="home-title"] #try-cantonese [class*="_sourceText_"] > strong { font-size:26px; line-height:1.2; }
[aria-labelledby="home-title"] #try-cantonese [class*="_sourceText_"] > span { font-size:14px; line-height:1.35; }
[aria-labelledby="home-title"] #try-cantonese [class*="_pictureGrid_"] { gap:10px; margin-top:12px; }
[aria-labelledby="home-title"] #try-cantonese [class*="_pictureChoice_"] { height:108px; min-height:108px; max-height:108px; padding:10px 8px; border-radius:20px; }
[aria-labelledby="home-title"] #try-cantonese [class*="_pictureChoice_"] > img { height:80px; }
[aria-labelledby="home-title"] #try-cantonese [class*="_matchProgress_"] { min-height:28px; margin-top:6px; font-size:10px; }
[aria-labelledby="home-title"] #try-cantonese [class*="_matchBoard_"] { gap:10px; }
[aria-labelledby="home-title"] #try-cantonese [class*="_matchColumn_"] { gap:8px; }
[aria-labelledby="home-title"] #try-cantonese [class*="_matchCard_"] { height:80px; min-height:80px; max-height:80px; padding:6px; border-radius:17px; }
[aria-labelledby="home-title"] #try-cantonese [class*="_matchPicture_"] > img { height:62px; }
[aria-labelledby="home-title"] #try-cantonese [class*="_matchWord_"] > strong { font-size:23px; line-height:1.25; }
[aria-labelledby="home-title"] #try-cantonese [class*="_matchWord_"] > span:last-child { font-size:12px; line-height:1.3; }
[aria-labelledby="home-title"] #try-cantonese [class*="_actions_"] { display:flex; flex-direction:column; justify-content:flex-end; height:156px; min-height:156px; max-height:156px; padding:8px 18px 10px; }
[aria-labelledby="home-title"] #try-cantonese [class*="_primary_"],
[aria-labelledby="home-title"] #try-cantonese [class*="_secondaryAction_"] { height:56px; min-height:56px; flex-shrink:0; }
[aria-labelledby="home-title"] #try-cantonese [class*="_actionRow_"] { flex-shrink:0; }
[aria-labelledby="home-title"] #try-cantonese [class*="_screen_"][data-feedback] [class*="_feedback_"] { margin:0 0 7px; padding:8px 10px; font-size:12px; line-height:1.35; }
[aria-labelledby="home-title"] #try-cantonese [class*="_audioError_"] { margin-top:4px!important; font-size:10px; line-height:1.3; }

/* Replay stays in the same completion view, with one recorded-audio card per word. */
[aria-labelledby="home-title"] #try-cantonese [class*="_complete_"][class*="_finish_"] { height:100%; min-height:0; gap:6px; padding:0; }
[aria-labelledby="home-title"] #try-cantonese [class*="_lessonBody_"]:has(> [class*="_audioError_"]) [class*="_complete_"][class*="_finish_"] { height:calc(100% - 30px); }
[aria-labelledby="home-title"] #try-cantonese [class*="_complete_"][class*="_finish_"] > * { flex-shrink:0; }
[aria-labelledby="home-title"] #try-cantonese [class*="_complete_"][class*="_finish_"] > h2 { font-size:22px; line-height:1.2; }
[aria-labelledby="home-title"] #try-cantonese [class*="_complete_"] > p { font-size:13px; line-height:1.4; }
[aria-labelledby="home-title"] #try-cantonese [class*="_complete_"] > [class*="_eyebrow_"] { font-size:10px; line-height:1.3; }
[aria-labelledby="home-title"] #try-cantonese [class*="_complete_"] > [class*="_downloadNote_"] { font-size:10px; line-height:1.35; }
[aria-labelledby="home-title"] #try-cantonese [class*="_finishPictures_"] > img { height:56px; }
[aria-labelledby="home-title"] #try-cantonese [class*="_screen_"]:has([class*="_reviewNote_"][open]) [class*="_finishPictures_"] > img { height:40px; }
[aria-labelledby="home-title"] #try-cantonese [class*="_complete_"] [data-position="final"] { display:flex; flex-flow:row nowrap; gap:8px; width:100%; }
[aria-labelledby="home-title"] #try-cantonese [class*="_complete_"] [data-position="final"] > a { width:calc((100% - 8px)/2); min-width:0; min-height:44px; }
[aria-labelledby="home-title"] #try-cantonese [class*="_complete_"] [data-position="final"] > a > img { width:100%; height:auto; max-height:44px; object-fit:contain; }
[aria-labelledby="home-title"] #try-cantonese [class*="_complete_"] [class*="_googleLink_"] { gap:4px; padding:5px; }
[aria-labelledby="home-title"] #try-cantonese [class*="_complete_"] [class*="_googleLink_"] > svg { width:17px; height:22px; }
[aria-labelledby="home-title"] #try-cantonese [class*="_complete_"] [class*="_googleLink_"] strong { font-size:14px; }
[aria-labelledby="home-title"] #try-cantonese [class*="_complete_"] [class*="_reviewNote_"] { margin:0!important; }
[aria-labelledby="home-title"] #try-cantonese [class*="_reviewNote_"][open] { display:block; font-size:0; }
[aria-labelledby="home-title"] #try-cantonese [class*="_reviewNote_"] > summary { grid-column:1/-1; min-height:44px; padding:12px 0; font-size:11px; line-height:20px; }
[aria-labelledby="home-title"] #try-cantonese [class*="_reviewNote_"] > [class*="_dialogueTurn_"] { display:inline-flex; width:calc((100% - 12px)/3); min-height:114px; vertical-align:top; flex-direction:column; align-items:center; justify-content:space-between; gap:4px; min-width:0; margin:0 6px 0 0; padding:6px 3px; text-align:center; }
[aria-labelledby="home-title"] #try-cantonese [class*="_reviewNote_"] [class*="_dialogueTurn_"] > div { align-items:center; gap:2px; width:100%; }
[aria-labelledby="home-title"] #try-cantonese [class*="_reviewNote_"] [class*="_dialogueTurn_"] :is(small,span) { font-size:9px; line-height:1.3; }
[aria-labelledby="home-title"] #try-cantonese [class*="_reviewNote_"] [class*="_dialogueTurn_"] strong { font-size:21px; line-height:1.3; }
[aria-labelledby="home-title"] #try-cantonese [class*="_reviewNote_"] [class*="_dialogueTurn_"] > div > p { display:none; }
[aria-labelledby="home-title"] #try-cantonese [class*="_reviewNote_"] [class*="_modelButton_"] { width:100%; min-height:44px; margin-top:0; gap:4px; padding:5px 2px; font-size:10px!important; }
[aria-labelledby="home-title"] #try-cantonese [class*="_complete_"] > [class*="_textButton_"] { min-height:44px; padding-block:10px; }

[aria-labelledby="home-title"] #try-cantonese [class*="_reviewNote_"] > [class*="_dialogueTurn_"]:last-child { margin-right:0; }
