/* One vector icon system, and a shared alignment rail for lesson controls. */
.iconSlot{display:inline-flex;align-items:center;justify-content:center;flex:none;vertical-align:middle;font-style:normal;line-height:1}.iconSlot>.uiIcon{width:1.2em;height:1.2em}.thaiFlag{width:27px;height:18px;flex:none}.changSymbol{width:36px;height:36px;object-fit:contain}.stats [title="Sequência de dias"],.stats [title="Experiência"]{display:inline-flex;align-items:center;gap:5px}.stats .iconSlot{width:18px;height:21px;color:var(--accent)}.stats [title="Experiência"] .iconSlot{color:var(--coin)}.stats .iconSlot .uiIcon{width:18px;height:18px}.course>.iconSlot{width:31px;height:23px}.sidebarbottom .miniLotus .uiIcon{width:32px;height:32px}.wallet>.uiIcon{width:17px;height:17px}.themeToggle>.uiIcon{width:20px;height:20px}.lessonScene>span:first-child>.uiIcon{width:26px;height:26px}.hubNode>span>.uiIcon{width:28px;height:28px}.hubMode>span>.uiIcon{width:28px;height:28px}.sectionChoices>button>span>.uiIcon{width:27px;height:27px}.sectionChoices .changSymbol{width:32px;height:32px}.hubPocket>span>.thaiFlag{width:31px;height:21px}.hubWeek b>.uiIcon{width:13px;height:13px}.hubCallPending>.uiIcon:first-child{width:25px;height:25px}.storyCover>span>.uiIcon{width:52px;height:52px;stroke-width:1.5}.storyScene>.uiIcon{width:46px;height:46px;stroke-width:1.6}.storyCard>span>.uiIcon{width:29px;height:29px}.phraseContextIcon>.uiIcon,.studyContextIcon>.uiIcon{width:25px;height:25px;color:var(--green)}.achievement>span>.uiIcon{width:35px;height:35px;stroke-width:1.7}.achievement>span{display:grid;place-items:center;min-height:38px;color:var(--green)}.avatarPicker button>.uiIcon{width:40px;height:40px;color:var(--green)}.profileAvatar>.uiIcon{width:44px;height:44px;color:var(--green)}.profile>span>.uiIcon,.stats .avatar>.uiIcon{width:23px;height:23px;color:var(--green)}.friendAvatar>.uiIcon{width:29px;height:29px;color:var(--green)}.friendInfo small>.uiIcon{width:12px;height:12px;vertical-align:-2px;color:var(--accent)}.profileHero>div>span>.iconSlot .thaiFlag{width:18px;height:12px}.freezeIcon .uiIcon{width:40px;height:40px}.pauseElephant{display:grid;place-items:center;margin:0 auto 16px;line-height:1}.pauseElephant img{display:block;width:110px;height:104px;object-fit:contain}.empty>.iconSlot .uiIcon{width:36px;height:36px;color:var(--green)}.profileStats h3 .iconSlot{margin-right:5px;color:var(--green)}.profileStats h3 .iconSlot .uiIcon{width:18px;height:18px}
/* Keep the eye and its label padded and centered as one button. */
.readingHelp{box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:8px;width:max-content;max-width:100%;min-height:44px;padding:10px 14px;margin:14px auto 0;text-align:left;white-space:normal;overflow:visible}.readingHelp>.uiIcon{display:block;flex:0 0 17px;width:17px;height:17px;align-self:center}.readingHelp>span{display:block;flex:0 1 auto;min-width:0;white-space:normal;overflow-wrap:break-word;line-height:1.5}.focusPhrase .readingHelp{padding:10px 14px;margin:14px auto 0;max-width:100%;min-height:44px}.focusPhrase .audioControls{align-items:center;justify-content:center}.focusPhrase .audioBtn{flex:none}.grammarDetails summary>.uiIcon{display:block;flex:none}
/* Header, card and footer use the same 650px content rail. */
#modal.lessonMode .focusLesson{width:100%;max-width:960px;margin:0 auto;min-width:0}#modal.lessonMode .focusHead{display:grid;grid-template-columns:42px minmax(0,1fr) 42px;align-items:center;gap:17px;width:100%;max-width:650px;margin:0 auto 12px;flex:none}#modal.lessonMode .focusHead .close,#modal.lessonMode .focusHead .sessionTheme{width:42px;height:42px;min-width:42px;min-height:42px;display:grid;place-items:center;padding:9px;margin:0}#modal.lessonMode .focusProgress{min-width:0;width:100%}#modal.lessonMode .focusHead .bar{width:100%;height:10px;margin:0}#modal.lessonMode .focusLesson>.modalfoot{position:relative;inset:auto;display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:space-between;width:100%;max-width:650px;min-width:0;margin:0 auto;padding:17px 0 23px;gap:18px;max-height:52%;overflow:hidden;flex:0 0 auto}#modal.lessonMode .focusLesson>.modalfoot>small{flex:1;min-width:0;width:auto;text-align:left;line-height:1.6}#modal.lessonMode .focusLesson>.modalfoot>.primary{flex:none;width:auto;min-width:190px;max-width:100%;min-height:50px}#modal.lessonMode .focusLesson>.modalfoot.focusFeedback{padding:16px 18px;border-radius:16px 16px 0 0}#modal.lessonMode .focusLesson>.modalfoot #feedback{min-width:0;min-height:0;flex:1 1 auto;overflow-y:auto;overscroll-behavior:contain;max-height:calc(52dvh - 80px)}
@media(max-width:760px){.stats [title="Experiência"]{display:none}.stats .iconSlot{width:14px;height:18px}.stats .iconSlot .uiIcon{width:14px;height:16px}.stats [title="Sequência de dias"]{gap:3px}.hubMode>span>.uiIcon{width:25px;height:25px}.achievement>span>.uiIcon{width:28px;height:28px}.sectionChoices>button>span>.uiIcon{width:24px;height:24px}.storyCover>span>.uiIcon{width:40px;height:40px}.storyScene>.uiIcon{width:39px;height:39px}.phraseContextIcon>.uiIcon{width:22px;height:22px}.readingHelp,.focusPhrase .readingHelp{font-size:10px;padding:10px 12px;gap:7px}.readingHelp>.uiIcon{flex-basis:16px;width:16px;height:16px}#modal.lessonMode .focusHead{grid-template-columns:44px minmax(0,1fr) 44px;gap:11px;margin-bottom:4px}#modal.lessonMode .focusHead .close,#modal.lessonMode .focusHead .sessionTheme{width:44px;height:44px;min-width:44px;min-height:44px}#modal.lessonMode .focusHead .bar{height:8px}#modal.lessonMode .focusLesson>.modalfoot{flex-direction:column;align-items:stretch;gap:9px;padding:12px 0 max(15px,env(safe-area-inset-bottom));max-height:52%}#modal.lessonMode .focusLesson>.modalfoot>small{flex:none;text-align:center;font-size:9px}#modal.lessonMode .focusLesson>.modalfoot>.primary{width:100%;min-width:0;min-height:49px}#modal.lessonMode .focusLesson>.modalfoot.focusFeedback{padding:13px 14px max(15px,env(safe-area-inset-bottom))}#modal.lessonMode .focusLesson>.modalfoot #feedback{max-height:calc(52dvh - 100px)}}
.toneListen>.uiIcon,.alphabetAudio>.uiIcon,.vowelTile button>.uiIcon,.tokenTools button>.uiIcon{width:18px;height:18px}.feedbackAudio>.uiIcon{width:13px;height:13px;margin-right:5px}.exampleWords small>.uiIcon{width:12px;height:12px;vertical-align:-2px}
.exerciseLabel{display:flex;align-items:center;gap:6px;min-width:0}.exerciseLabel>.uiIcon{width:15px;height:15px;flex:none}.exerciseLabel>span{font:inherit;letter-spacing:inherit;line-height:1.5}.choiceAudio>.uiIcon,.phraseactions .iconbutton>.uiIcon{width:18px;height:18px}#clearTokens>.uiIcon{width:14px;height:14px;margin-right:4px}
/* Base language remains visible on desktop and in the mobile header. */
.languagePicker{display:flex;flex-direction:column;gap:6px;margin:0 18px 16px;font-size:11px;font-weight:800;color:var(--muted,#78919d)}
.languagePicker select{font:inherit;font-size:12px;line-height:1.3;font-weight:800;color:var(--text,#e6f3f6);background:var(--surface,#183440);border:1.5px solid var(--line,#35535f);border-radius:12px;padding:10px 24px 10px 10px;max-width:100%;cursor:pointer;min-height:40px}
.languagePicker select:focus-visible{outline:3px solid #39bbc5;outline-offset:3px}
.compactLanguage{margin:0;max-width:136px;flex-shrink:0}.compactLanguage>span{display:none}.compactLanguage select{max-width:136px;font-size:11px}
@media(max-width:600px){.compactLanguage{max-width:88px}.compactLanguage select{width:88px;padding:8px 15px 8px 6px;font-size:10px}.stats{gap:8px!important}.stats .avatar{display:none}}
@media(max-width:360px){.compactLanguage{max-width:76px}.compactLanguage select{width:76px;font-size:9px}.stats{gap:5px!important}}
/* Calm, phone-first learning surfaces. One task and one main action per screen. */
.wordRoman{display:block;font-family:inherit!important;color:var(--reading,#c5b4ef);font-size:14px!important;line-height:1.5;font-weight:650;letter-spacing:0!important;overflow-wrap:anywhere}
.wordGlossary{border:1px solid var(--border);border-radius:16px;background:var(--surface);margin:18px 0;text-align:left;font-family:inherit}
.wordGlossary>summary{display:flex;align-items:center;gap:9px;min-height:52px;padding:13px 16px;cursor:pointer;font-size:13px;font-weight:750;list-style:none}.wordGlossary>summary::-webkit-details-marker{display:none}.wordGlossary>summary>.uiIcon{width:19px;height:19px;flex:none;color:var(--green)}.wordGlossary>summary small{margin-left:auto;color:var(--muted);font-size:10px;border:1px solid var(--border);border-radius:7px;padding:3px 7px}.wordGlossary[open]>summary{border-bottom:1px solid var(--border)}.glossaryBody{padding:5px 15px 12px}.glossaryNote{font-size:11px!important;color:var(--muted);line-height:1.7!important;margin:10px 0!important}.glossaryWord{display:grid;grid-template-columns:minmax(90px,1fr) minmax(90px,1.2fr) 42px;gap:12px;align-items:center;padding:13px 0;border-bottom:1px solid var(--border)}.glossaryWord:last-child{border:0}.glossaryWord .thai{display:block;font-size:24px;line-height:1.6;color:var(--text)}.glossaryWord small{font-size:9px;letter-spacing:.3px;text-transform:uppercase;color:var(--muted);font-weight:750}.glossaryWord p{font-size:13px!important;margin:3px 0!important;line-height:1.6!important}.wordSound{display:grid;place-items:center;width:42px;min-height:44px;padding:10px;background:var(--hubSoft);color:var(--green);border:1px solid var(--border);border-radius:12px;cursor:pointer}.wordSound .uiIcon{width:20px;height:20px}
#modal .clozeSentence{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:22px 0;margin:0 0 22px;border:0;border-bottom:1px solid var(--border)}#modal .clozeChunk{display:flex;flex-direction:column;align-items:center;gap:4px;line-height:1.5}#modal .clozeChunk>.reading{display:block!important;font-family:inherit;font-size:14px;color:var(--reading);letter-spacing:0;line-height:1.5;margin:0}#modal .clozeSentence .blankSlot{display:grid;place-items:center;min-width:64px;min-height:60px;align-self:flex-start;padding:0 8px}
#modal .choiceContent{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-width:0;width:100%;gap:5px;font-family:inherit;line-height:1.5}#modal .choiceContent>.thai{display:block;max-width:100%;padding:0;border:0;border-radius:0;box-shadow:none;background:none;overflow-wrap:anywhere}#modal .choiceContent>.reading{display:block!important;opacity:1;visibility:visible;font-family:inherit;color:var(--reading);font-size:14px;line-height:1.5;margin:0;letter-spacing:0}#modal .option{height:100%;min-width:0;white-space:normal;text-align:left;align-items:center;line-height:1.5}#modal .choiceRow{min-width:0;align-items:stretch}#modal .choiceAudio{flex:0 0 42px;min-width:42px;align-self:center;min-height:46px;width:42px;padding:10px;border-radius:12px}.choiceAudio>.uiIcon{width:21px;height:21px}
#modal .exerciseArea>.audioControls{margin:0 auto 25px;gap:12px}#modal .exerciseArea>.questionPrompt{margin-bottom:20px}#modal .options{align-items:stretch;margin-top:15px}#modal .option .choiceNumber{flex:none;align-self:center}#modal .withoutReading .optionalReading{display:block!important;visibility:visible!important;opacity:1!important}#modal .wordBank{display:flex;flex-wrap:wrap;justify-content:center;align-items:stretch;gap:14px;margin:24px 0}#modal .tokenCell{display:flex;flex-direction:column;gap:10px;align-items:stretch;min-width:90px;max-width:100%;flex:0 1 auto}#modal .wordTile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:13px 16px;min-height:83px;max-width:100%;border-radius:15px;font-family:inherit}#modal .wordTile>small{display:block!important;opacity:1;visibility:visible;max-width:180px;font-size:13px;line-height:1.5;color:var(--reading);font-family:inherit;white-space:normal}#modal .wordTile .thai{font-size:27px;line-height:1.5}#modal .tokenTools{display:flex;justify-content:center;gap:8px;min-height:40px}#modal .tokenTools button{min-width:40px;width:40px;height:40px;padding:10px;border-radius:11px}#modal .tokenTools .uiIcon{width:18px;height:18px}#modal .assembledTile{font-family:inherit;padding:10px 15px}.retrySupport{background:var(--hubSoft);padding:16px;border-radius:16px;font-size:13px}.retrySupport>.thai{font-size:25px;line-height:1.7}.adaptiveNote{font-size:11px;line-height:1.6;color:var(--muted)}
.vocabularyShelf{margin:0 0 30px}.vocabularyHeading{display:flex;align-items:center;justify-content:space-between;gap:12px}.vocabularyHeading small{font-size:9px;letter-spacing:1px;font-weight:800;color:var(--green)}.vocabularyHeading h2{font-size:25px;margin:8px 0}.vocabularyHeading>span{font-size:11px;color:var(--muted);white-space:nowrap}.vocabularyShelf>p{font-size:13px;line-height:1.7;color:var(--muted);margin:8px 0 20px}.vocabularyGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.vocabularyCard{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:20px;border:1px solid var(--border);border-bottom-width:4px;border-radius:20px;background:var(--surface);color:var(--text);text-align:left;cursor:pointer}.vocabularyWord{font-size:34px;line-height:1.5;color:var(--green)}.vocabularyCard strong{font-size:14px;line-height:1.5;margin:7px 0}.vocabularyCard small{font-size:10px;color:var(--muted);display:flex;gap:5px}.vocabularyCard small>.uiIcon{width:14px;height:14px}.vocabularyCard>.uiIcon{position:absolute;right:17px;top:24px;width:18px;height:18px;color:var(--muted)}
.pathVocabulary{width:100%;display:flex;gap:18px;align-items:center;text-align:left;border:1px solid var(--border);border-radius:20px;background:var(--surface);color:var(--text);padding:18px;margin:15px 0 28px;cursor:pointer}.pathVocabulary>.hubNode{width:58px;height:58px;min-width:58px;background:var(--hubSoft);color:var(--green);border-radius:20px;display:grid;place-items:center}.pathVocabulary>.hubNode>.uiIcon{width:25px;height:25px}.pathVocabulary>span:nth-child(2){flex:1;min-width:0;display:grid;gap:6px}.pathVocabulary small{font-size:9px;color:var(--green);font-weight:800;letter-spacing:.5px}.pathVocabulary strong{font-size:15px;line-height:1.5}.pathVocabulary em{font-size:11px;color:var(--muted);font-style:normal}.pathVocabulary>.uiIcon{width:20px;height:20px}
.vocabHero{display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;margin:24px auto 30px;padding:26px;border:1px solid var(--border);border-radius:22px;background:var(--surface)}.vocabHero>.thai{font-size:52px;line-height:1.5}.vocabHero>.wordRoman{font-size:22px!important}.vocabHero>p{font-size:15px;margin:3px 0 12px}.vocabHero>p>small{color:var(--muted)}.wordContexts{display:grid;gap:12px}.wordContexts>div{display:grid;grid-template-columns:25px minmax(0,1fr) 42px;gap:10px;align-items:center;border-bottom:1px solid var(--border);padding:15px 0}.wordContexts>div>span{font-size:11px;color:var(--muted)}.wordContexts strong{display:block;font-size:23px;font-weight:600;line-height:1.7}.wordContexts p{font-size:13px;color:var(--muted);margin:5px 0}.vocabFeedback{padding:17px;border-radius:16px;background:var(--hubSoft);font-size:14px;line-height:1.7}.vocabFeedback.bad{background:var(--surface)}.vocabGap{font-size:31px;line-height:2;padding:15px 0;margin-bottom:15px}.vocabGap .blankSlot{border-bottom:2px dashed var(--green);color:var(--green);padding:0 10px}.optionalWriting{margin:16px auto 0;display:flex;align-items:center;gap:9px;justify-content:center}.optionalWriting>.uiIcon{width:18px;height:18px}
/* Unified result and settings alignment. */
#modal .focusResult{width:min(100%,680px);max-width:680px;padding:34px 28px;margin:0 auto;text-align:center;box-sizing:border-box}#modal .focusResult>.medal{display:flex;justify-content:center;align-items:center;height:140px;width:100%;margin:0 0 17px;position:relative}#modal .focusResult .medal>img{display:block;width:150px;height:140px;object-fit:contain;position:relative;inset:auto;transform:none}#modal .focusResult h2{font-size:32px;line-height:1.25;margin:16px 0 14px}#modal .focusResult>p{font-size:13px;line-height:1.7;margin:12px auto;max-width:540px}#modal .focusResult>.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;width:100%;margin:24px 0 16px}#modal .focusResult>.grid>.card{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:104px;padding:16px 10px;border-radius:18px;gap:10px}#modal .focusResult>.grid small{font-size:10px;font-weight:750;color:var(--muted);letter-spacing:.4px}#modal .focusResult .bigstat{font-size:33px;margin:0;line-height:1.2}#modal .focusResult>.earnedCoins{width:100%;max-width:none;box-sizing:border-box;margin:12px 0;padding:15px;border-radius:15px;font-size:15px}#modal .focusResult #done,#modal .focusResult #doneVocabulary{display:flex;align-items:center;justify-content:center;gap:18px;width:100%;min-height:52px;margin:22px 0 0}#modal .focusResult #done>.uiIcon{width:21px;height:21px;flex:none}#modal:has(.focusResult){max-width:720px}
#modal .settingsrow{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,230px);align-items:center;gap:16px;padding:18px 0;margin:0;border-bottom:1px solid var(--border)}#modal .settingsrow>label{font-size:14px;line-height:1.6}#modal .settingsrow>select,#modal .settingsrow>input[type=range]{width:100%;min-width:0;max-width:100%;box-sizing:border-box}#modal .settingsrow>select{padding:10px 12px;border-radius:11px;min-height:43px;font-size:13px;background:var(--surface);color:var(--text);border:1px solid var(--border)}#modal .settingsrow>input[type=checkbox]{justify-self:end;width:22px;height:22px;accent-color:var(--green);cursor:pointer}#modal #saveSettings{width:100%;min-height:50px}.settingsEffects{display:flex;gap:9px;flex-wrap:wrap;padding:14px 0}.settingsEffects>button{min-height:42px;flex:1;display:flex;align-items:center;justify-content:center;gap:6px;font-size:11px}
/* Decorative rail stays out of the phone's primary task. */
.miniLotus{display:none}.hubHeroArt .heroSun,.hubHeroArt .heroArch{opacity:.25}.hubWelcome h1{font-size:30px}.hubHero{border-radius:25px}.hubHero h2{font-size:34px;line-height:1.2}.hubHeroCopy{padding:30px}.hubPocket{display:none}.hubRail .weekCard{display:none}.hubRail .hubInstall{margin-top:12px}.hubHeroArt .buddyWord{display:none}
@media(max-width:760px){#modal .focusLesson .options{grid-template-columns:1fr;gap:11px}#modal .focusLesson .option{min-height:72px;padding:14px 13px;font-size:15px}#modal .focusLesson .option .thai{font-size:25px}#modal .choiceAudio{width:44px;min-width:44px;flex-basis:44px}#modal .focusLesson .exerciseArea>h2{font-size:25px;margin-bottom:23px}#modal .focusLesson .promptBubble{padding:14px 16px}#modal .focusLesson .promptBubble .thai{font-size:27px}#modal .focusLesson .questionPrompt{gap:12px;align-items:center}#modal .focusLesson .promptMascot{width:58px;height:72px}#modal .focusLesson .promptMascot>.heroArt{width:58px;height:72px}.hubWelcome{margin-bottom:18px}.hubWelcome h1{font-size:27px}.hubHeroCopy{padding:23px!important}.hubHero h2{font-size:28px!important;max-width:100%}.hubHero p{font-size:14px}.hubHeroArt{display:none!important}.hubHero{min-height:0!important;display:block!important;background:var(--surface)!important;border:1px solid var(--border)!important}.hubHeroCopy .primary{width:100%;min-height:50px;font-size:13px}.heroMeta{font-size:11px}.hubDailyBar{margin:16px 0 21px}.hubRail{display:none!important}.hubMain{width:100%;max-width:600px;margin:0 auto}.journeyHub{display:block}.hubSectionHeading h2{font-size:22px}.hubSectionHeading p{font-size:12px}.hubLessonText>strong{font-size:15px}.hubLessonText>span{font-size:11px;line-height:1.5}.hubLessonText>em{font-size:10px}.hubNode{width:56px;height:56px;min-width:56px;border-radius:19px}.hubLesson{gap:15px;padding:16px 8px}.hubSectionEnd{padding:20px 14px}.hubSectionEnd>span{display:none}.hubSectionEnd .secondary{width:100%;min-height:46px}.vocabularyGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.vocabularyCard{padding:16px 12px}.vocabularyCard strong{font-size:12px}.vocabularyCard>.uiIcon{right:10px;width:15px}.vocabularyCard small{font-size:9px}.vocabularyHeading h2{font-size:23px}.vocabularyWord{font-size:30px}.glossaryWord{grid-template-columns:minmax(80px,.9fr) minmax(90px,1fr) 40px;gap:8px}.glossaryBody{padding:3px 12px 10px}.glossaryWord .thai{font-size:22px}.glossaryWord p{font-size:12px!important}.glossaryWord .wordRoman{font-size:12px!important}.vocabHero{padding:22px 15px}.wordContexts strong{font-size:21px}#modal .focusResult{padding:26px 20px}#modal .focusResult h2{font-size:28px}#modal .settingsrow{grid-template-columns:minmax(0,1fr) minmax(125px,47%);gap:13px}#modal .settingsrow>label{font-size:12px}#modal .settingsrow>select{font-size:11px;padding:10px 6px}.settingsEffects{gap:7px}.settingsEffects>button{font-size:10px;padding:9px}.pathVocabulary{padding:15px 12px;gap:12px}.pathVocabulary strong{font-size:14px}}
@media(max-width:360px){.vocabularyGrid{grid-template-columns:1fr}.vocabularyCard{padding:16px}.vocabularyCard strong{font-size:14px}.glossaryWord{grid-template-columns:minmax(75px,.9fr) minmax(80px,1fr) 36px}.wordSound{width:36px;padding:7px}.glossaryWord .thai{font-size:20px}.compactLanguage select{min-height:36px}.hubHeroCopy{padding:18px!important}#modal .focusResult>.grid{gap:10px}#modal .focusResult .bigstat{font-size:28px}}
@media(prefers-reduced-motion:no-preference){.vocabularyCard,.pathVocabulary{transition:transform .18s ease,border-color .18s ease}.vocabularyCard:active,.pathVocabulary:active{transform:translateY(2px)}.wordGlossary[open]>.glossaryBody{animation:glossaryReveal .18s ease}@keyframes glossaryReveal{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}}

#modal .focusResult>.grid h3{font-size:10px;line-height:1.5;margin:0;font-weight:750;color:var(--muted);letter-spacing:.4px}
@media(max-width:760px){#sidebar>.languagePicker{display:none}header{padding-left:14px;padding-right:14px}header .breadcrumb:before{content:'SabaiTalk';font-size:20px;letter-spacing:-.7px;white-space:nowrap}header #themeToggle,header .stats>span:has(#xp){display:none}header .stats{gap:7px!important}header .stats .wallet{font-size:11px;padding:7px;min-width:38px}header .stats .mobileSettings{width:34px;min-width:34px;height:36px}header .compactLanguage{max-width:88px}header .compactLanguage select{width:88px;max-width:88px;font-size:10px}header .mobilePreviewButton{display:none}}
@media(max-width:360px){header .breadcrumb:before{font-size:18px}header .stats{gap:5px!important}header .compactLanguage,header .compactLanguage select{width:78px;max-width:78px}}
/* Custom course switcher: accessible, touch-friendly and consistent with the app. */
.languageSwitch{display:flex;align-items:center;gap:12px;width:100%;min-height:51px;padding:10px 12px;background:var(--surface);border:1.5px solid var(--border);border-bottom-width:3px;border-radius:15px;color:var(--text);cursor:pointer;font-size:13px;text-align:left}.languageSwitch>strong{flex:1;min-width:0}.languageSwitch[aria-expanded=true]{border-color:var(--green);background:var(--hubSoft)}.courseFlag{position:relative;display:block;width:32px;height:26px;flex:0 0 32px}.courseFlag>svg{display:block;width:32px;height:24px;border:1.5px solid var(--surface);border-radius:6px}.courseFlag>i{position:absolute;right:-5px;bottom:-3px;display:block;width:18px;height:15px;background:var(--surface);padding:1.5px;border-radius:4px}.courseFlag>i>svg{display:block;width:15px;height:12px}.courseChevron{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;flex:none}.compactLanguage .languageSwitch{min-height:42px;width:auto;gap:8px;padding:7px 10px;border-radius:12px;font-size:11px}.compactLanguage .courseChevron{display:none}.compactLanguage .courseFlag{width:27px;flex-basis:27px;height:23px}.compactLanguage .courseFlag>svg{width:27px;height:21px}.compactLanguage .courseFlag>i{right:-4px;bottom:-2px;width:15px;height:12px;padding:1px}.compactLanguage .courseFlag>i>svg{width:13px;height:10px}
.courseLanguageMenu{position:fixed;z-index:100;max-height:calc(100dvh - 24px);overflow-y:auto;border:2px solid var(--border);border-radius:20px;background:var(--bg);color:var(--text);box-shadow:0 15px 45px #04192355;overscroll-behavior:contain}.courseMenuHeading{padding:18px 20px;border-bottom:1px solid var(--border);display:grid;gap:5px}.courseMenuHeading>strong{font-size:15px}.courseMenuHeading>span{font-size:11px;color:var(--muted)}.courseMenuOptions{padding:7px}.courseLanguageChoice{display:flex;align-items:center;gap:15px;width:100%;min-height:82px;padding:15px 13px;border:1px solid transparent;border-radius:13px;background:none;color:var(--text);cursor:pointer;text-align:left}.courseLanguageChoice.active{background:var(--hubSoft);border-color:var(--border)}.courseLanguageChoice>span:nth-child(2){display:grid;gap:5px;flex:1;min-width:0}.courseLanguageChoice strong{font-size:17px}.courseLanguageChoice small{font-size:11px;color:var(--muted)}.courseLanguageChoice:hover{background:var(--hubSoft)}.courseLanguageChoice:focus-visible{outline:2px solid var(--green);outline-offset:-2px}.courseCheck{width:21px;height:21px;fill:none;stroke:var(--green);stroke-width:3;stroke-linecap:round;stroke-linejoin:round;opacity:0}.courseLanguageChoice.active .courseCheck{opacity:1}.courseLanguageMenu>p{margin:0;padding:14px 20px 17px;border-top:1px solid var(--border);font-size:11px;line-height:1.6;color:var(--muted)}
@media(max-width:760px){.compactLanguage .languageSwitch{min-height:39px;width:70px;padding:7px;gap:8px}.compactLanguage .languageSwitch>strong{font-size:10px}.courseLanguageMenu{border-radius:18px}.courseMenuHeading{padding:16px 18px}.courseLanguageChoice{min-height:78px}.courseLanguageChoice strong{font-size:16px}}
.supportDetails{margin:18px 0;border:1px solid var(--border);border-radius:15px;background:var(--surface);text-align:left}.supportDetails>summary{padding:15px 16px;min-height:49px;font-size:12px;font-weight:750;line-height:1.6;cursor:pointer;color:var(--muted)}.supportDetails[open]>summary{border-bottom:1px solid var(--border);color:var(--text)}.supportDetails>.note{margin:0!important;padding:16px;font-size:12px;line-height:1.7;border:0;background:transparent}.supportDetails>.card{margin:0!important;border:0!important;box-shadow:none;padding:20px 16px}.sectionProgressDetails>.card>h3{display:none}.notebookDetails .writingHistory>h2{display:none}.settingsAbout{margin:16px 0}.settingsAbout>p,.settingsAbout>.sources{padding:0 16px;font-size:11px!important;line-height:1.7;margin:14px 0}.settingsAbout>.note{font-size:11px}.settingsSheet .modalhead{margin-bottom:18px!important}.settingsSheet .settingsrow{padding:14px 0!important}.settingsSheet .modalhead h2{font-size:24px}.settingsEffects{padding:12px 0 3px}.settingsEffects>button>.uiIcon{width:16px;height:16px;flex:none}.settingsSheet #saveSettings{position:sticky;bottom:0;z-index:1;margin-top:10px!important;box-shadow:0 -6px 15px var(--surface)}.showAllWords{display:flex;justify-content:center;align-items:center;gap:12px;width:100%;min-height:46px;margin:17px 0 0;font-size:11px}.showAllWords>.uiIcon{width:17px;height:17px}.reviewDestination>.vocabularyShelf{margin-top:30px}.hubTabs{scroll-margin-top:82px}
@media(max-width:760px){#main .hubHero{padding:0!important}#main .hubHero .hubHeroCopy{width:100%!important;max-width:none!important;padding:23px!important}#main .hubHero h2{font-size:28px!important;max-width:100%;margin:12px 0}#main .hubHero p{max-width:100%;font-size:14px;margin:0 0 16px}#main .hubHero .heroMeta{display:flex;flex-wrap:wrap;gap:7px;font-size:11px;margin-bottom:20px}#main .hubHero .primary{display:flex;width:100%;justify-content:center;min-height:50px;gap:16px;margin-top:0}.hubWelcome{padding-top:5px;margin-bottom:17px}.hubSectionProgress{flex-wrap:wrap;gap:10px}.hubSectionProgress>span{font-size:11px}.hubSectionHeading .hubSmallButton{font-size:10px;min-height:40px}.hubLessonText>span{display:none}.hubLessonText>em{line-height:1.5}.hubLessonText>strong{line-height:1.4}.hubSectionEnd>div>p{font-size:12px}.settingsSheet{padding:22px 20px!important}.settingsSheet .settingsrow>label{font-size:12px}.settingsSheet .settingsrow{grid-template-columns:minmax(0,1fr) minmax(135px,47%)}.settingsSheet .settingsAbout{margin:12px 0}.settingsSheet .sources{font-size:10px}.profileHero{padding:20px!important}.socialPanel{padding:20px!important}.socialPanel .socialSignIn{font-size:11px;min-height:46px;width:100%;text-align:center}.socialPanel .socialContent>p{font-size:12px}.reviewDestination>.grid{gap:13px}.reviewDestination>.grid>.card{padding:20px}.reviewDestination>.grid>.card .primary,.reviewDestination>.grid>.card .secondary{width:100%;justify-content:center}.vocabIntro>h3{font-size:16px}.vocabularyHeading h2{font-size:22px}.vocabularyCard{min-height:168px}}
@media(max-width:360px){#main .hubHero .hubHeroCopy{padding:20px!important}.settingsSheet .settingsrow{grid-template-columns:minmax(0,1fr) minmax(118px,44%)}.settingsSheet .settingsrow>select{font-size:10px}.settingsSheet{padding:20px 17px!important}}
/* Answer content is text, never a nested tile or keycap. */
#modal .option .choiceContent,#modal .option .choiceContent span{border:0!important;padding:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}#modal .option .choiceContent{font-size:inherit!important;color:inherit}#modal .option .choiceContent>span:not(.thai){font-size:inherit;color:inherit}#modal .option .choiceContent>.thai{color:inherit}#modal .option.wrong{border-color:#c77c80!important;background:#502e38!important;color:#ffd0cf!important}#modal .option.correct{border-color:var(--green)!important;background:var(--hubSoft)!important;color:var(--text)!important}.wordFeedbackFoot #wordFeedback{min-width:0;max-height:min(30dvh,210px);overflow:auto;overscroll-behavior:contain;width:100%}.wordFeedbackFoot .vocabFeedback{border-radius:12px;padding:12px 15px;font-size:12px}.wordFeedbackFoot .vocabFeedback>p{margin:5px 0;line-height:1.6}.wordFeedbackFoot .vocabFeedback.bad{background:#502e38;color:#ffd0cf}.wordFeedbackFoot .wordGlossary{margin:10px 0 0}.wordFeedbackFoot .wordGlossary>summary{min-height:42px;font-size:11px}.wordFeedbackFoot{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center!important}
@media(max-width:760px){.wordFeedbackFoot{display:flex!important;flex-direction:column;gap:10px!important;align-items:stretch!important}.wordFeedbackFoot>.primary{width:100%!important}.vocabHero{padding:19px 18px;gap:7px;margin:20px auto}.vocabHero>.thai{font-size:43px;line-height:1.35}.vocabHero>.wordRoman{font-size:20px!important}.vocabHero>p{font-size:13px;margin:3px 0 8px}.vocabHero>.secondary{min-height:43px;font-size:11px}.vocabIntro .wordContexts strong{font-size:21px}}
@media(max-width:760px){.hubSectionEnd{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:15px!important}.hubSectionEnd>div,.hubSectionEnd>.secondary{grid-column:1;min-width:0}.hubSectionEnd>div>strong{display:block;font-size:16px;line-height:1.5}.hubSectionEnd>div>p{font-size:12px;line-height:1.7;margin:7px 0 0}.hubSectionEnd>.secondary{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:47px}.hubSectionEnd>.secondary>.uiIcon{width:18px;height:18px;flex:none}}
.sceneAudio{display:grid;place-items:center;flex:0 0 42px;width:42px;height:44px;padding:9px;border:1px solid var(--border);border-bottom-width:3px;border-radius:12px;background:var(--hubSoft);color:var(--green)}.sceneAudio>.uiIcon{width:21px;height:21px}.sceneAudio.playing{border-color:var(--green);box-shadow:0 0 0 3px var(--hubSoft)}
@media(max-width:760px){header{height:calc(66px + env(safe-area-inset-top));padding-top:env(safe-area-inset-top)}.hubTabs{scroll-margin-top:calc(82px + env(safe-area-inset-top))}#modal.lessonMode .lessonInner{padding-top:calc(12px + env(safe-area-inset-top))!important}#modal.lessonMode .lessonInner>.modalfoot{padding-bottom:calc(15px + env(safe-area-inset-bottom))!important}#modal:not(.lessonMode){max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px)}.modalinner:not(.lessonInner)>.sheetHeader,.settingsSheet>.modalhead,.letterSheet>.sheetHeader{position:sticky;top:0;background:var(--surface);z-index:4;padding-bottom:12px}}
@media(max-height:700px) and (max-width:760px){.focusStudy .lessonScene{margin-bottom:12px}.focusStudy>h2{font-size:22px!important;margin-bottom:17px!important}.focusStudy .studycard.focusPhrase{padding:18px 14px 14px}.focusPhrase>.phraseOverline{margin-bottom:9px}.focusPhrase>.thai{font-size:32px;line-height:1.5;margin-bottom:5px}.focusPhrase>.reading{font-size:17px;padding:6px 10px}.focusPhrase>.translation{font-size:17px;margin:12px 0}.focusPhrase .audioBtn{min-height:41px;padding:9px 12px;font-size:10px}.focusPhrase .readingHelp{margin-top:10px;min-height:40px;font-size:9px}}
#sidebar>.languagePicker{margin-left:0;margin-right:0;width:100%}.languageSwitch>strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nativeCloseReady #closeWidgetCard{visibility:hidden;pointer-events:none}#closeWidgetCard{width:44px;height:44px;min-width:44px;display:grid;place-items:center;border:0;background:var(--surface2);color:var(--sub);box-shadow:none;border-radius:50%;padding:11px}#closeWidgetCard .uiIcon{width:20px;height:20px;stroke-width:2}
