/* Shared utility surfaces: concise controls, readable hierarchy, one main action. */
html[data-design] #modal .clearCompletion{padding:24px!important;gap:0;border-radius:26px;max-width:420px;margin:auto}
html[data-design] #modal .clearCompletion>[hidden]{display:none!important}
html[data-design] #modal .clearCompletion>.lessonRewardStage{order:0;padding:0 0 12px;gap:12px}
html[data-design] #modal .clearCompletion .rewardChestButton{width:138px;height:108px;filter:drop-shadow(0 8px 0 #062e3520)}
html[data-design] #modal .clearCompletion>h2{order:1;font-size:28px!important;line-height:1.15;margin:4px 0 18px!important}
html[data-design] #modal .clearCompletion>.recapStats{order:2;display:flex;justify-content:center;gap:30px;margin:0 0 24px!important;padding:16px 0!important;border-top:1px solid var(--border);border-bottom:1px solid var(--border);background:none}
html[data-design] #modal .clearCompletion .recapStats strong{font-size:23px;line-height:1.3;color:var(--text)}
html[data-design] #modal .clearCompletion .recapStats small{font-size:12px;margin-top:4px;color:var(--sub)}
html[data-design] #modal .clearCompletion>button.primary{order:3;min-height:50px;font-size:16px}
html[data-design] #modal .clearCompletion>button:not(.primary){order:4}
/* Plan offer: the plan is the action; dismissal is a quiet text control. */
.sabaiAdDialog:has(.offerRefresh){width:min(390px,calc(100vw - 32px));background:var(--bg,#12383e);color:var(--text,#f3f7ed);border-color:var(--border);border-radius:26px;box-shadow:0 18px 70px #001d2460}
.sabaiAdSheet.offerRefresh{padding:22px}
.offerRefresh>header{margin:0 0 18px;min-height:0;color:var(--sub);font-size:13px;font-weight:600}
.offerRefresh .sabaiAdCreative{background:transparent;padding:0;border-radius:0;text-align:left;color:var(--text)}
.offerRefresh .offerHero{display:grid;grid-template-columns:minmax(0,1fr) 100px;gap:8px;align-items:center;min-height:112px;margin:0 0 14px}
.offerRefresh .sabaiAdArt{height:112px;width:100px;margin:0;max-width:none}
.offerRefresh .sabaiAdCreative h2{font-size:28px;line-height:1.12;letter-spacing:-.5px;max-width:none;margin:0;color:var(--text)}
.offerRefresh .sabaiAdCreative>p{font-size:14px;line-height:1.55;max-width:none;margin:0;color:var(--sub)}
.offerBenefits{padding:18px 0;margin:16px 0 20px;display:grid;gap:16px;list-style:none;border-block:1px solid var(--border,#45686d)}
.offerBenefits li{display:flex;align-items:center;gap:12px;font-size:14px;line-height:1.45;color:var(--text)}
.offerBenefits li svg{width:21px;height:21px;flex:none;color:var(--green)}
.offerRefresh .sabaiAdOffer{background:var(--green);color:#123b39;min-height:52px;border-radius:14px;font-size:15px;font-weight:700;box-shadow:0 4px 0 #279e8d}
.offerRefresh.familyOffer .sabaiAdOffer{background:#c3a2ff;color:#2f2450;box-shadow:0 4px 0 #8b70bd}
.offerRefresh>footer{padding:12px 0 0}
.offerRefresh .sabaiAdContinue{display:block;width:auto;max-width:100%;margin:auto;background:transparent;border:0;border-radius:8px;min-height:44px;padding:10px 16px;box-shadow:none;color:var(--sub);font-family:inherit;font-size:13px;font-weight:500;line-height:1.4;letter-spacing:0;text-transform:none}

/* Preferences retain real controls, with sound character and live volume feedback. */
html[data-design] #modal .preferencesContent{padding-top:14px}
.preferenceSaved{margin:0 0 4px;color:var(--sub);font-size:12px;line-height:1.5}
html[data-design] #modal .preferencesContent .settingsrow{padding:18px 0;gap:12px;align-items:center}
html[data-design] #modal .preferencesContent .settingsrow>label{font-size:15px;line-height:1.4}
html[data-design] #modal .preferencesContent .settingsrow:has(.themeChips){grid-template-columns:1fr;gap:12px}
html[data-design] #modal .preferencesContent .themeChips{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:10px}
html[data-design] #modal .preferencesContent .themeChips button{min-width:0;justify-content:center;white-space:nowrap;word-break:normal;overflow-wrap:normal;font-size:14px;min-height:46px;padding:10px 12px}
html[data-design] #modal .preferencesContent .themeChips span{flex:none;white-space:nowrap;word-break:normal;overflow-wrap:normal;min-width:max-content}
html[data-design] #modal .preferencesContent .settingsrow:has(#soundVolume){display:grid;grid-template-columns:1fr auto}
html[data-design] #modal .preferencesContent .settingsrow:has(#soundVolume)>label{grid-column:1}
html[data-design] #modal .preferencesContent #soundVolume{grid-column:1;grid-row:2;width:100%;min-width:0;accent-color:var(--green);min-height:32px;padding:0}
html[data-design] #modal .preferencesContent .volumeValue{grid-column:2;grid-row:2;font-size:13px;min-width:38px;text-align:right;color:var(--sub);font-variant-numeric:tabular-nums}
html[data-design] #modal .preferencesContent .settingsrow:has(#soundStyle){display:grid;grid-template-columns:1fr;gap:10px}
html[data-design] #modal .preferencesContent #soundStyle{width:100%;max-width:100%;font-size:14px;padding:12px;min-height:46px;background:var(--surface);border:1px solid var(--border);border-radius:12px;color:var(--text)}
html[data-design] #modal .preferencesContent #sfx{appearance:none;-webkit-appearance:none;position:relative;width:46px;min-width:46px;height:28px;min-height:28px;padding:0;border:1px solid var(--border);border-radius:16px;background:var(--surface2);cursor:pointer}
html[data-design] #modal .preferencesContent #sfx:before{content:'';position:absolute;left:3px;top:3px;width:20px;height:20px;border-radius:50%;background:var(--sub);transition:translate .18s}
html[data-design] #modal .preferencesContent #sfx:checked{background:var(--green);border-color:var(--green)}
html[data-design] #modal .preferencesContent #sfx:checked:before{translate:18px 0;background:#123c3c}
html[data-design] #modal .preferencesContent .settingsEffects{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:0 0 16px}
html[data-design] #modal .preferencesContent .settingsEffects button{font-size:12px!important;padding:10px 4px!important;min-width:0;white-space:nowrap;letter-spacing:0!important;min-height:44px}
html[data-design] #modal .preferencesContent .preferenceLanguage{min-height:64px;padding:12px 0;gap:12px}
.preferenceLanguage>svg{width:23px;height:23px;flex:none;color:var(--green)}
/* Automatic notifications expose permission, not campaign timing. */
.notificationHero{padding:10px 0 24px}
.notificationHero>svg{width:44px;height:44px;color:#ffbf72;margin-bottom:18px}
.notificationHero h2{font-size:29px;line-height:1.12;letter-spacing:-.4px;margin:0 0 12px}
.notificationHero p,.notificationFeature p{color:var(--sub);font-size:14px;line-height:1.55;margin:0}
.notificationFeature{display:flex;gap:14px;padding:18px 0;border-top:1px solid var(--border)}
.notificationFeature>svg{width:24px;height:24px;flex:none;color:var(--green);margin-top:3px}
.notificationFeature h3{font-size:17px;line-height:1.3;margin:0 0 7px}
html[data-design] #modal #automaticNotificationsToggle{width:100%;min-height:50px;margin-top:24px;font-size:15px}
.notificationPermission{font-size:12px;color:var(--sub);line-height:1.5;margin:14px 0}
/* Reporting: category, explanation, contact, optional evidence, send. */
html[data-design] #modal .supportRefresh .utilityScroll{padding-top:16px}
html[data-design] #modal .supportRefresh #supportForm{display:flex;flex-direction:column;gap:0}
html[data-design] #modal .supportRefresh .supportType{margin:0 0 2px}
html[data-design] #modal .supportRefresh .supportType legend{font-size:15px;margin-bottom:10px}
html[data-design] #modal .supportRefresh .supportType>div{gap:8px}
html[data-design] #modal .supportRefresh .supportType button{display:flex;align-items:center;gap:8px;padding:10px;font-size:13px;min-height:44px}
.supportRefresh .supportType button svg{width:18px;height:18px;flex:none}
html[data-design] #modal .supportRefresh #supportForm>label:not(.supportUpload){font-size:14px;margin:16px 0 8px}
html[data-design] #modal .supportRefresh #supportForm>input:not([hidden]),html[data-design] #modal .supportRefresh #supportForm>textarea{font-family:inherit;font-size:15px;line-height:1.5;min-height:46px;padding:12px;border-radius:12px;box-sizing:border-box}
html[data-design] #modal .supportRefresh #supportForm>textarea{height:108px;min-height:100px;resize:vertical}
.supportDescriptionMeta{display:flex;justify-content:space-between;gap:8px;margin-top:6px;color:var(--sub);font-size:11px}
.supportDescriptionMeta small{font-size:inherit}.supportDescriptionMeta output{font-variant-numeric:tabular-nums}
html[data-design] #modal .supportRefresh .supportUpload{margin-top:16px;padding:12px;display:flex;flex-direction:row;gap:12px;border-style:solid;border-radius:12px;min-height:48px;box-sizing:border-box}
.supportRefresh .supportUpload>svg{width:22px;height:22px;flex:none}
.supportRefresh .supportUpload>span{font-size:13px;flex:1}.supportRefresh .supportUpload small{display:block;font-size:10px;margin-top:3px}
html[data-design] #modal .supportRefresh #supportFileName:empty,html[data-design] #modal .supportRefresh #supportStatus:empty{display:none}
html[data-design] #modal .supportRefresh #sendSupport{min-height:50px;margin-top:18px;font-size:15px}
/* Family: a conversation to try, then individual seats with honest availability. */
.planDialog:has(.familyHub){width:min(440px,calc(100vw - 24px))}
.planDialog .familyHub{padding:20px}
.planDialog .familyHub .sheetHeader{margin:0 0 16px}
.planDialog .familyHub .sheetHeader h2{font-size:22px}
.familyHub .sheetHeader .close{background:transparent;border:0;width:36px;height:36px;padding:8px;color:var(--sub)}
.familyCallCard{padding:18px;background:#b8a1f519;border-radius:20px}
.familyCallArt{position:relative;height:92px;display:flex;align-items:center;justify-content:center}
.familyCallArt>svg{height:94px;width:104px}.familyCallArt>span{position:absolute;left:calc(50% + 29px);bottom:12px;background:#c3a2ff;color:#30224a;width:34px;height:34px;border-radius:50%;display:grid;place-items:center}.familyCallArt>span svg{width:18px;height:18px}
.familyHub .familyCallCard h3{font-size:24px;line-height:1.15;margin:12px 0 8px;letter-spacing:-.3px}
.familyCallCard p{font-size:14px;line-height:1.5;color:var(--sub);margin:0 0 18px}
.familyHub .familyCallCard .primary{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:48px;font-size:14px;background:#c3a2ff;color:#30224a;box-shadow:0 3px 0 #8167ac}
.familyCallCard .primary svg{width:20px;height:20px}
.familyMembers{margin-top:24px}
.familyMembersHeading{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:6px}
.familyMembersHeading h3{margin:0;font-size:18px}.familyMembersHeading>span{font-size:12px;color:var(--sub)}
.familyMember{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid var(--border)}
.familyAvatar{width:38px;height:38px;flex:none;display:grid;place-items:center;border:1px solid var(--border);border-radius:50%;background:var(--surface)}
.familyAvatar svg{width:20px;height:20px;color:var(--green)}
.familyMember>div{flex:1;min-width:0}.familyMember strong{display:block;font-size:14px;font-weight:600}.familyMember small{display:block;font-size:11px;color:var(--sub);margin-top:4px}
.familyOwner{font-size:10px;color:var(--green);background:#4bdbba16;border-radius:7px;padding:5px 7px}
.familyAvailability{display:flex;gap:9px;font-size:11px;line-height:1.5;color:var(--sub);margin:14px 0 0}.familyAvailability svg{width:16px;height:16px;flex:none;margin-top:2px}
@media(max-height:710px){.sabaiAdSheet.offerRefresh{padding:18px}.offerRefresh .offerHero{min-height:92px;grid-template-columns:minmax(0,1fr) 84px}.offerRefresh .sabaiAdArt{height:92px;width:84px}.offerRefresh .sabaiAdCreative h2{font-size:26px}.offerBenefits{margin:14px 0 16px;padding:14px 0;gap:12px}.planDialog .familyHub{padding:16px}.familyCallArt{height:62px}.familyCallArt>svg{height:70px}.familyMembers{margin-top:18px}.familyMember{padding:10px 0}}
@media(prefers-reduced-motion:reduce){html[data-design] #modal .preferencesContent #sfx:before{transition:none}}
@media(max-width:760px){
 html[data-design="2026"] body #sidebar nav{position:relative;isolation:isolate}
 html[data-design="2026"] body #sidebar nav:before{content:'';position:absolute;left:0;top:0;width:var(--nav-pill-width,20%);height:var(--nav-pill-height,48px);transform:translateX(var(--nav-pill-x,0));background:color-mix(in srgb,var(--text) 13%,transparent);border-radius:28px;z-index:0;pointer-events:none;opacity:0;will-change:transform}
 html[data-design="2026"] body #sidebar nav.navCapsuleReady:before{opacity:1;transition:transform .42s cubic-bezier(.22,1.18,.35,1),width .3s ease,background .2s ease}
 html[data-design="2026"] body #sidebar nav button{z-index:1;transition:color .18s ease;isolation:isolate}
 html[data-design="2026"]:not([data-theme="light"]) body #sidebar nav [data-page].active,html[data-design="2026"][data-theme="light"] body #sidebar nav [data-page].active{background:transparent!important;border-color:transparent!important;color:var(--text)!important}
 html[data-design="2026"] body #sidebar nav button.active:after{display:none!important}
 html[data-design="2026"] body #sidebar nav button:active .navLineIcon{scale:.92}
}
.planDialog .familyHub .familyCallCard .primary{border-bottom-color:#8167ac!important;box-shadow:0 3px 0 #8167ac!important}
@media(prefers-reduced-motion:reduce){html[data-design="2026"] body #sidebar nav.navCapsuleReady:before{transition:none;will-change:auto}}
/* Section terrain is visible again; the old biome layer had hidden every terrain SVG. */
html[data-design="2026"] .sectionScenery .routeTerrain{display:block!important;opacity:.24;animation:none!important}
html[data-design="2026"] .sectionScenery .sceneryLandmarkSecondary{left:auto;right:12px}
html[data-design="2026"] .sectionScenery .sceneryPlaceSecondary{left:auto;right:12px}
html[data-design="2026"] .pathHome .trailStop>.trailChang{width:84px!important;z-index:2;max-width:84px;animation:none!important}
html[data-design="2026"] .pathHome .trailChang.changOnLeft{left:auto!important}
html[data-design="2026"] .pathHome .trailChang>svg{width:100%;height:auto;display:block}
/* Playable scenes fill the device; introducing the microphone does not overlap the scene. */
html[data-design="2026"] #modal:has(.walkingSheet){inset:0!important;width:100%!important;height:100dvh!important;max-width:none!important;max-height:100dvh!important;margin:0!important;border:0!important;border-radius:0!important;overflow:hidden!important;padding:0!important}
html[data-design="2026"] #modal:has(.walkingSheet) #modalBody{height:100%;min-height:0;overflow:hidden;padding:0!important}
html[data-design="2026"] #modal .walkingSheet{height:100%;max-height:100dvh;min-height:0;width:100%;max-width:600px!important;display:flex;flex-direction:column;gap:8px;padding:calc(8px + var(--app-safe-top)) 12px calc(8px + var(--app-safe-bottom))!important;overflow:hidden;box-sizing:border-box;background:#203c38}
html[data-design="2026"] #modal .walkingHead{min-height:34px;height:34px;gap:8px;flex:none}
.walkingHead>strong{flex:1;min-width:0;font-size:15px;line-height:1.2}.walkingHead>.walkingMenu{order:2;flex:none;width:32px;min-width:32px;min-height:34px;padding:5px}.walkingHead>.exerciseClock{order:1;flex:none;font-size:12px;min-width:30px}
html[data-design="2026"] #modal .walkingSheet>.bar{height:5px;flex:none}
html[data-design="2026"] #modal .walkingWorld,html[data-design="2026"] #modal .walkingWorld.isTalking{flex:1 1 0;max-height:none;min-height:100px;width:100%;margin:0;border-radius:18px;border-bottom-width:3px;transition:none}
html[data-design="2026"] #modal .walkingSheet:not(.isRepeating) .walkingWorld{min-height:120px}
html[data-design="2026"] #modal .walkingNpcBubble{position:absolute;top:12px;left:12px;right:auto;bottom:auto;width:auto;max-width:180px;padding:9px 12px;border-radius:14px;z-index:7;cursor:pointer;font-size:12px}
html[data-design="2026"] #modal .walkingNpcBubble:after{display:none}
html[data-design="2026"] #modal .walkingActor{width:58px;height:68px}
html[data-design="2026"] #modal .walkingNpcPortrait{width:56px;height:70px}
.walkingNpcPortrait>.storyPerson{display:block;width:100%;height:100%;object-fit:contain}
html[data-design="2026"] #modal .walkingDialogue{gap:2px;padding:0;flex:none}
html[data-design="2026"] #modal .walkingDialogue>.thai{font-size:20px;line-height:1.3}
html[data-design="2026"] #modal .walkingDialogue>span:not(.thai){display:none}
html[data-design="2026"] #modal .walkingDialogue small{font-size:13px;margin-top:2px}
html[data-design="2026"] #modal .walkingChoices{flex:none;gap:7px}
html[data-design="2026"] #modal .walkingChoices button{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;text-align:left;gap:3px;min-height:56px;padding:8px 12px;border-radius:13px;border-bottom-width:3px}
html[data-design="2026"] #modal .walkingChoices strong{font-size:15px;line-height:1.2;overflow-wrap:normal}
html[data-design="2026"] #modal .walkingChoices .thai{display:none}
html[data-design="2026"] #modal .walkingChoices small{font-size:12px;line-height:1.25;overflow-wrap:normal}
html[data-design="2026"] #modal .walkingSheet>#walkingNext{display:block!important;flex:none;min-height:46px;height:46px;margin:0;padding:9px!important;font-size:15px}
html[data-design="2026"] #modal .walkingSheet>#walkingNext[hidden]{visibility:hidden;pointer-events:none}
html[data-design="2026"] #modal .walkingSheet.isRepeating>:is(.walkingChoices,.walkingDialogue){display:none!important}
#walkingRepeatHost:empty{display:none}#walkingRepeatHost{flex:none}
.gameRepeatPanel{border:1px solid #bdcdb54d;border-radius:18px;padding:14px;background:#fff1d7;color:#294a3b}
.gameRepeatModel{display:flex;flex-direction:column;gap:4px;text-align:left;min-width:0}
.gameRepeatModel>strong{font-size:19px;line-height:1.25;overflow-wrap:normal}.gameRepeatModel>.thai{font-size:25px;line-height:1.4;color:#3b6455;overflow-wrap:normal}.gameRepeatModel>small{font-size:13px;line-height:1.35;color:#586b57}
.gameRepeatActions{display:flex;gap:8px;margin:14px 0 10px}
.gameRepeatActions button{min-height:46px;padding:10px 14px;border:1px solid #96ad8b;border-radius:13px;font:650 15px/1.2 Outfit,sans-serif;background:#d5e3c4;color:#304f3e;display:flex;align-items:center;justify-content:center;gap:8px}
.gameRepeatActions svg{width:22px;height:22px}.gameRepeatMic{flex:1;background:#6dd7b4!important;border-color:#60b795!important}
.gameRepeatStatus{font-size:12px;line-height:1.4;margin:0;color:#486847;min-height:17px}
.gameRepeatPanel .gameRepeatFallback{display:block;width:100%;min-height:40px;padding:8px 0 0;color:#486847;font-size:12px;text-align:center;background:none;border:0;box-shadow:none}
.gameRepeatPanel .gameRepeatFallback[hidden]{display:none!important}
html[data-design="2026"] #modal:has(.miniGameSheet){inset:0!important;width:100%!important;height:100dvh!important;max-height:100dvh!important;max-width:none!important;border:0!important;border-radius:0!important;overflow:hidden!important;margin:0!important}
html[data-design="2026"] #modal:has(.miniGameSheet) #modalBody{height:100%;padding:0!important;overflow:hidden}
html[data-design="2026"] #modal .miniGameSheet{height:100%;max-height:100%;min-height:0;padding:calc(8px + var(--app-safe-top)) 12px calc(8px + var(--app-safe-bottom))!important;box-sizing:border-box;display:flex;flex-direction:column;overflow:hidden;gap:8px}
html[data-design="2026"] #modal .miniGameHead{min-height:34px;flex:none;gap:6px}
html[data-design="2026"] #modal .miniGameHead>small{display:none}
html[data-design="2026"] #modal .miniGameHead>strong{flex:1;font-size:15px;line-height:1.2}
html[data-design="2026"] #modal .miniGameTrack{flex:none;height:5px;margin:0}
html[data-design="2026"] #modal .miniGameBody{flex:1;min-height:0;padding:0;overflow:hidden}
html[data-design="2026"] #modal .miniGameFoot{flex:none;padding:0;margin:0;gap:8px}
html[data-design="2026"] #modal .miniGameFoot .primary{min-height:46px;padding:10px;font-size:15px;margin:0}
html[data-design="2026"] #modal .miniGameFoot #nextMiniRound[hidden]{display:block!important;visibility:hidden;pointer-events:none;height:46px}
html[data-design="2026"] #modal .miniGameSheet.isRepeating .miniGameBody>:not(.miniScene){display:none!important}
html[data-design="2026"] #modal .miniGameSheet.isRepeating .miniScene{height:100%;max-height:100%;min-height:0;margin:0}
html[data-design="2026"] #modal .miniGameSheet.isRepeating #miniFeedback{padding:0;margin:0;background:none;border:0}
html[data-design="2026"] #modal .miniGameSheet.isRepeating .gameRepeatPanel{max-height:none}
@media(max-height:710px){html[data-design="2026"] #modal .walkingSheet{gap:6px}.gameRepeatPanel{padding:10px}.gameRepeatModel>strong{font-size:16px}.gameRepeatModel>.thai{font-size:22px;line-height:1.3}.gameRepeatModel>small{font-size:12px}.gameRepeatActions{margin:10px 0 8px}html[data-design="2026"] #modal .walkingChoices button{min-height:50px;padding:6px 10px}html[data-design="2026"] #modal .walkingChoices strong{font-size:14px}.walkingNpcPortrait{height:56px!important}.walkingActor{height:58px!important}}
html[data-design="2026"] .pathHome .trailStop>.trailChang{right:auto!important}
/* Real gaps for scenery: large art can remain visible without covering the route. */
html[data-design="2026"] .trailStop:is(.sceneryRestPrimary,.sceneryRestStreet,.sceneryRestSecondary){padding-bottom:220px!important}
html[data-design="2026"] #modal .walkingSheet:has(.walkingDialogue[hidden])>#walkingNext[hidden]{display:none!important}
@media(max-height:710px){
 html[data-design="2026"] body.authPage .workspace #main{padding-top:calc(8px + var(--app-safe-top))!important}
 html[data-design="2026"] body.authPage .accountSheet>.sheetHeader h2{font-size:24px;line-height:1.15}
 html[data-design="2026"] body.authPage .accountSheet>p{margin-bottom:10px!important;line-height:1.4!important}
 html[data-design="2026"] body.authPage .oauthProviders{gap:8px;margin-top:12px}
 html[data-design="2026"] body.authPage .oauthProviders .oauthButton{min-height:44px;padding:9px 12px;font-size:14px}
 html[data-design="2026"] body.authPage .oauthStatus{font-size:12px;line-height:1.4}
 html[data-design="2026"] body.authPage .oauthDivider{margin:12px 0 10px}
}
html[data-design="2026"] #modal .miniGameSheet .miniGameBody{justify-content:flex-start!important;gap:8px!important}
html[data-design="2026"] #modal .miniGameSheet .miniGameBody>.miniScene{height:100px!important;min-height:0!important;max-height:100px!important;flex:0 0 100px!important;margin:0!important;overflow:hidden}
html[data-design="2026"] #modal .miniGameSheet .miniGameBody>.miniScene>svg{height:100%;width:100%;object-fit:contain}
html[data-design="2026"] #modal .miniGameSheet .miniGameBody>h2{font-size:20px!important;line-height:1.2!important;margin:0!important;flex:none}
html[data-design="2026"] #modal .miniGameSheet .miniGameBody>.miniOrder{margin:0!important;padding:8px 10px!important;flex:none}
html[data-design="2026"] #modal .miniGameSheet .miniChoices{flex:none;margin:0!important;gap:8px}
html[data-design="2026"] #modal .miniGameSheet .miniChoice{min-height:74px!important;padding:8px!important;overflow:visible;min-width:0}
html[data-design="2026"] #modal .miniGameSheet .miniChoice>svg{height:38px!important;width:70px!important}
html[data-design="2026"] #modal .miniGameSheet .miniChoice strong{font-size:13px!important;line-height:1.25!important}
html[data-design="2026"] #modal .miniGameSheet .miniMama{width:80px;height:84px;bottom:0;top:auto}
html[data-design="2026"] #modal .miniGameSheet .miniMama>.storyPerson{width:100%;height:100%;object-fit:contain}
html[data-design="2026"] #modal .miniGameSheet .miniModels{gap:8px;margin:4px 0!important;flex:none}
html[data-design="2026"] #modal .miniGameSheet .miniModels>div{min-height:76px;padding:10px!important;height:auto!important;overflow:visible}
html[data-design="2026"] #modal .miniGameSheet .miniGameBody>.miniIntroArt{height:60px!important;flex:none}
html[data-design="2026"] #modal .miniGameSheet.isRepeating .miniGameBody>.miniScene{height:auto!important;flex:1!important;max-height:none!important}
html[data-design="2026"] #modal .miniGameSheet.isRepeating .miniGameBody{justify-content:stretch!important}
html[data-design="2026"] #modal .miniGameSheet .miniGameFoot #miniFeedback:not(:has(.gameRepeatPanel)){padding:6px 0!important;margin:0;min-height:24px;font-size:12px;line-height:1.35}
html[data-design="2026"] #modal .miniGameSheet .miniGameFoot #miniFeedback:not(:has(.gameRepeatPanel))>span{font-size:12px;line-height:1.35}
html[data-design="2026"] #modal:has(.learningQuizSheet){inset:0!important;width:100%!important;height:100dvh!important;max-width:none!important;max-height:100dvh!important;margin:0!important;border:0!important;border-radius:0!important;padding:0!important;overflow:hidden!important}
html[data-design="2026"] #modal:has(.learningQuizSheet) #modalBody{height:100%;padding:0!important;overflow:hidden}
html[data-design="2026"] #modal .learningQuizSheet{height:100%;min-height:0!important;max-height:100%!important;padding:calc(10px + var(--app-safe-top)) 0 0!important;box-sizing:border-box}
html[data-design="2026"] #modal .learningQuizSheet .quizHeader{display:none}
html[data-design="2026"] #modal .learningQuizSheet .quizBody{padding:16px 18px;overflow:hidden}
html[data-design="2026"] #modal .learningQuizSheet .quizBody>p{font-size:13px;line-height:1.4;margin-bottom:12px}
html[data-design="2026"] #modal .learningQuizSheet .quizChoices{gap:7px}
html[data-design="2026"] #modal .learningQuizSheet .quizChoice{min-height:44px;padding:9px 12px;font-size:14px;line-height:1.3}
html[data-design="2026"] #modal .learningQuizSheet .quizFooter{padding:10px 18px calc(8px + var(--app-safe-bottom));gap:5px}
html[data-design="2026"] #modal .learningQuizSheet .quizFooter .primary{min-height:46px;height:46px;font-size:15px}
html[data-design="2026"] #modal .learningQuizSheet .quizFooter .textbutton{min-height:36px;padding:5px 0;margin:0}
/* Sentence tasks share the same height budget as the other exercise types. */
html[data-design="2026"] #modal .foundationSession:has(.sceneWordTag) .foundationArea{justify-content:flex-start!important;gap:7px!important;padding:8px 0!important;overflow:hidden!important}
html[data-design="2026"] #modal .foundationSession .sceneWordTag{display:none}
html[data-design="2026"] #modal .foundationSession:has(.sceneWordTag) .foundationArea>h2{margin:0!important;font-size:20px!important;line-height:1.2!important}
html[data-design="2026"] #modal .foundationSession:has(.sceneWordTag) .foundationArea>h3{margin:0;font-size:16px;line-height:1.3;flex:none}
html[data-design="2026"] #modal .foundationSession:has(.sceneWordTag) .sceneMeaning{font-size:16px;line-height:1.35;margin:0;flex:none}
html[data-design="2026"] #modal .foundationSession .sceneReading{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:4px 10px;padding:12px;margin:0;border-radius:16px;flex:none}
html[data-design="2026"] #modal .foundationSession .sceneReading>small{display:none}
html[data-design="2026"] #modal .foundationSession .sceneReading>strong{grid-column:1;grid-row:1;font-size:26px;line-height:1.35}
html[data-design="2026"] #modal .foundationSession .sceneReading>span{grid-column:1;grid-row:2;font-size:14px;line-height:1.35}
html[data-design="2026"] #modal .foundationSession .sceneReading>button{grid-column:2;grid-row:1/span 2;align-self:center;display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:8px;font-size:0;border:1px solid var(--border);border-radius:12px}
html[data-design="2026"] #modal .foundationSession .sceneReading>button svg{width:22px;height:22px}
html[data-design="2026"] #modal .foundationArea:has(.sceneReading)>h2{display:none}
html[data-design="2026"] #modal .foundationSession:has(.sceneWordTag) .options{min-height:0!important;height:auto!important;flex:none!important;margin:0!important;padding:0!important;gap:7px!important;grid-auto-rows:minmax(48px,auto)!important}
html[data-design="2026"] #modal .foundationSession:has(.sceneWordTag) .options .option{min-height:48px!important;height:auto!important;padding:9px 12px!important;font-size:15px;line-height:1.3}
html[data-design="2026"] #modal .foundationSession .sceneSentence{padding:10px;margin:0;gap:8px;flex:none}
html[data-design="2026"] #modal .foundationSession .sceneSentence .thai{font-size:23px;line-height:1.35}
html[data-design="2026"] #modal .foundationSession .sceneModel{margin:0;padding:0;flex:none}
html[data-design="2026"] #modal .foundationSession .sceneModel summary{min-height:36px;padding:8px 0;font-size:13px;line-height:1.35}
html[data-design="2026"] #modal .foundationSession .sceneModel>strong{font-size:24px;line-height:1.4;margin:6px 0}
html[data-design="2026"] #modal .foundationSession .sceneModel>span{font-size:14px;line-height:1.4;margin:6px 0}
html[data-design="2026"] #modal .foundationArea:has(.sceneModel[open])>:is(.options,.sceneBank,.sceneSentence,.sceneReading){display:none!important}
html[data-design="2026"] #modal .foundationSession:has(.sceneWordTag):has(.modalfoot .feedback) .foundationArea>:is(.options,.sceneBank,.sceneModel){display:none!important}

/* One-day protection: a single shield, readable stock and a compact redemption row. */
html #modal .crystalProduct{grid-template-columns:64px minmax(0,1fr);gap:16px 14px;padding:20px;border-bottom-width:1px;border-radius:22px}
html #modal .crystalProductArt{width:64px;height:76px;background:none;border-radius:0}
html #modal .crystalProductArt>.streakShieldArt{width:64px;height:76px;filter:drop-shadow(0 4px 3px #061f2430)}
html #modal .crystalProduct h3{font-size:19px;line-height:1.3;margin:0 0 7px}
html #modal .crystalProductCopy p{font-size:13px;line-height:1.55;margin:0 0 12px}
html #modal .shieldStored{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--sub)}
.shieldStored>span{display:flex;gap:4px}.shieldStored i{width:14px;height:5px;border-radius:3px;border:1px solid var(--border)}.shieldStored i.filled{background:var(--green);border-color:var(--green)}
.shieldRedeemRow{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid var(--border);padding-top:16px}
.shieldPrice{display:flex;align-items:center;gap:6px;white-space:nowrap}.shieldPrice>.crystalIcon{width:20px;height:24px}.shieldPrice>strong{font-size:19px;color:var(--text)}html #modal .shieldPrice>small{font-size:12px;color:var(--sub)}
html #modal .shieldRedeemRow>.crystalBuy{width:auto;min-width:110px;min-height:44px;padding:10px 18px;font-size:14px;border-radius:14px;flex-shrink:0}
html #modal .crystalShortfall{margin:-5px 0 0;text-align:right;font-size:12px;line-height:1.4;color:var(--sub)}
@media(max-width:350px){html #modal .crystalProduct{padding:16px;grid-template-columns:52px minmax(0,1fr);column-gap:12px}html #modal .crystalProductArt,html #modal .crystalProductArt>.streakShieldArt{width:52px;height:65px}html #modal .crystalProduct h3{font-size:17px}.shieldRedeemRow{gap:8px}html #modal .shieldPrice>small{font-size:11px}}

/* Local river gardens occupy scenery rests, leaving the exercise route clear. */
.routeWaterGarden{position:absolute;left:8px;height:180px;z-index:-3;pointer-events:none}.routeWaterGarden>svg{display:block;width:100%;height:100%;overflow:visible}
html[data-design="2026"] body.pathHome .cleanJourney>.learningTrail{padding-top:12px}
html[data-design="2026"] body.pathHome .cleanJourney>.learningTrail:has(>.stop0.isCurrent){padding-top:48px}
@media(max-width:760px){html[data-design="2026"] body.pathHome #main{padding-top:calc(var(--path-dock-height,167px) + 4px)!important}}
html[data-design="2026"] .trailStop>.changSpeech{bottom:auto;right:auto;box-sizing:border-box}
html[data-design="2026"] .changSpeech:after{left:var(--chang-tip-left,50%);right:auto}
html[data-design="2026"] .trailStop>.changSpeech[data-side="above"]:after{left:var(--chang-tip-left,50%);right:auto;top:auto;bottom:-8px;border-radius:0 0 4px 0}

@media(prefers-reduced-motion:no-preference){html[data-design="2026"] .changSpeech{animation:changAnchoredIn .16s ease-out}}
@keyframes changAnchoredIn{from{opacity:0}to{opacity:1}}

@media(max-width:350px){html[data-design="2026"] .trailStop>.changSpeech{width:128px}}

/* Mission details stay between the dock and navigation instead of stacking over the section title. */
html[data-design="2026"] .pathBackdrop{background:#061f294f!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
html[data-design="2026"] .pathPopover.popDetached:before,html[data-design="2026"] .pathPopover.popDetached:after{display:none}


/* Preferences: each divider separates groups instead of touching controls. */
html[data-design] #modal .preferencesPage>.utilityHeader{grid-template-columns:44px minmax(0,1fr) 44px;flex:0 0 auto;z-index:1}
html[data-design] #modal .preferencesPage>.preferencesContent{padding-top:20px;scroll-padding-block:20px;min-width:0;box-sizing:border-box}
html[data-design] #modal .preferencesContent .settingsrow{padding:18px 0!important;column-gap:12px;row-gap:12px;min-width:0}
html[data-design] #modal .preferencesContent .goalChips{margin-top:12px;gap:8px}
html[data-design] #modal .preferencesContent .settingsrow:has(#sfx){grid-template-columns:minmax(0,1fr) 46px}
html[data-design] #modal .preferencesContent .soundPreferences{margin:0;padding:0;border:0}
html[data-design] #modal .preferencesContent .settingsrow:has(#soundVolume){grid-template-columns:minmax(0,1fr) 40px;border-bottom:0;padding-bottom:4px!important;column-gap:14px}
html[data-design] #modal .preferencesContent .settingsrow:has(#soundVolume)>label{grid-column:1/-1}
html[data-design] #modal .preferencesContent #soundVolume{height:40px;min-height:40px;margin:0;align-self:center}
html[data-design] #modal .preferencesContent .volumeValue{margin:0;align-self:center;line-height:1.4}
html[data-design] #modal .preferencesContent .settingsEffects{gap:8px;padding:12px 0 22px;margin:0;border-bottom:1px solid var(--border)}
html[data-design] #modal .preferencesContent .settingsEffects button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:46px;margin:0;padding:10px 4px!important;line-height:1.3}
html[data-design] #modal .preferencesContent .settingsEffects button svg{width:16px;height:16px;flex:0 0 16px}
html[data-design] #modal .preferencesContent .settingsAbout{margin:22px 0 10px}
html[data-design] #modal .preferencesContent .preferenceLanguage{margin:0;padding:18px 0;gap:12px;min-height:76px}
@media(max-width:350px){html[data-design] #modal .preferencesContent .settingsEffects button{font-size:11px!important;gap:4px}}
