/* R4-learning6: preserve object sizes, reserve space for decisions rather than pinning to the browser edge. */
.app-header .back-button{flex:0 0 auto;max-width:none;min-width:94px;min-height:44px;overflow:visible;text-overflow:clip;white-space:nowrap;padding:0 10px}.app-header .header-right{flex-shrink:0}.app-header .header-right .icon-button{min-width:44px;min-height:44px}.app-header.wr-list-header #homeButton{min-width:94px;min-height:44px}.app-header .screen-title{overflow-wrap:anywhere}.spec-wide-grid{grid-column:1/-1!important;min-height:74px!important;display:flex!important;align-items:center;justify-content:center;gap:12px}.spec-wide-grid .menu-icon{font-size:32px}.spec-wide-grid .menu-name{font-size:22px}
#additionCarryScreen,#additionUnit1Screen.au:not(.au-clear),#multiplyScreen:has(.meaning-body){min-height:calc(100svh - 140px);box-sizing:border-box}#additionCarryScreen .cl-actions,#additionUnit1Screen .au-controls{margin-top:auto;padding-top:8px;min-height:86px}#additionCarryScreen .kug--banner .kug-bubble{min-height:64px}#additionUnit1Screen .au-result{margin:4px 0;min-height:25px}#additionUnit1Screen .au-equation{margin:4px 0}#additionUnit1Screen .au-scene{flex-shrink:0}
#learningTrialsScreen[data-kind^="division"]{min-height:calc(100svh - 158px);padding-bottom:26px;gap:5px}#learningTrialsScreen[data-kind^="division"] .trial-equation{margin:2px 0;font-size:29px}#learningTrialsScreen[data-kind^="division"] .trial-status{min-height:44px;font-size:16px;line-height:1.35}#learningTrialsScreen[data-kind^="division"] .trial-result{min-height:28px;margin:2px 0;font-size:22px}#learningTrialsScreen[data-kind^="division"]>.trial-quantity{height:50px;min-height:50px;margin:0}#learningTrialsScreen[data-kind^="division"] .trial-bowls{min-height:214px;grid-template-rows:repeat(2,102px);gap:8px}#learningTrialsScreen[data-kind^="division"] .trial-bowl{min-height:102px;height:102px;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:5px;font-size:17px}#learningTrialsScreen[data-kind^="division"] .trial-bowl .trial-quantity{margin:0;padding:3px}#learningTrialsScreen[data-kind^="division"] .trial-division-actions{min-height:104px;display:flex;flex-direction:column;gap:6px}#learningTrialsScreen[data-kind^="division"] .trial-division-actions button{margin:0;min-height:48px;height:48px;padding:6px;font-size:19px}
.spec-operation-band{order:10;align-self:stretch;width:100%;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:8px;margin-top:auto;min-height:100px}.spec-operation-band>.lp-choices,.spec-operation-band>.sl-people-controls{width:100%;margin:0}.spec-operation-band button{min-height:48px!important}.spec-operation-band .sl-person-button{width:100%}.spec-operation-band .lp-choices{gap:8px}.spec-operation-band .lp-choice{padding:6px;min-width:65px}#learnPlayScreen:has(.lp-share) .lp-stage,#learnPlayScreen:has(.lp-divide-groups) .lp-stage{gap:6px;min-height:420px}#learnPlayScreen:has(.lp-share) .sl-tray,#learnPlayScreen:has(.lp-divide-groups) .sl-tray{margin:4px auto;min-height:46px}#learnPlayScreen:has(.lp-share) .lp-stage>.sl-equation{margin:2px 0}#learnPlayScreen .lp-subtract-take>.lp-eq{order:4}#learnPlayScreen .lp-subtract-take>.hs-tray{order:2}#learnPlayScreen .lp-subtract-take>.hs-count{order:3}#learnPlayScreen .lp-subtract-take{min-height:365px!important;gap:8px}#learnPlayScreen:has(.spec-operation-band) .lp-msg{min-height:42px;margin:4px 0}#learnPlayScreen:has(.spec-operation-band)>.child-other{margin-bottom:28px}
#multiplyScreen:has(.meaning-body) .multiply-actions{margin-top:auto;min-height:94px}#multiplyScreen:has(.meaning-body) #multiplyActions .meaning-hint-toggle{position:static;width:100%;min-height:44px}#multiplyScreen:has(.meaning-body)>.child-other{margin-bottom:28px}#arithmeticBattleScreen[data-boss-stage="4"] .arith-arena{background:linear-gradient(#e1d9fa,#f5e4cf)}
@media(min-width:600px){#learningTrialsScreen[data-kind^="division"] .trial-bowls{min-height:290px;grid-template-rows:repeat(2,141px)}#learningTrialsScreen[data-kind^="division"] .trial-bowl{height:141px;min-height:141px}#learningTrialsScreen[data-kind^="division"] .trial-equation{font-size:38px}.spec-operation-band{min-height:126px}#learnPlayScreen .lp-subtract-take{min-height:455px!important}}
@media(max-width:400px){.app-header:not(.wr-list-header) .screen-title{font-size:17px;white-space:normal;line-height:1.2}.app-header{gap:4px}.app-header .header-right{gap:2px}}
#additionCarryScreen:not([hidden]),#additionUnit1Screen.au:not(.au-clear):not([hidden]),#multiplyScreen:has(.meaning-body):not([hidden]){display:flex;flex-direction:column}#additionCarryScreen .cl-actions{min-height:64px;height:64px;align-items:center;padding-bottom:24px}#additionCarryScreen .cl-actions .cl-button{height:54px;min-height:54px}#additionUnit1Screen .au-controls{min-height:72px;padding-bottom:24px}
#subtractionUnit1Screen.su:not(.su-clear):not([hidden]){display:flex;flex-direction:column;min-height:calc(100svh - 140px)}#subtractionUnit1Screen .su-controls{margin-top:auto;padding-bottom:24px;min-height:72px}#subtractionUnit1Screen .su-equation{margin:4px 0}#subtractionUnit1Screen .su-result{margin:4px 0;min-height:25px}#subtractionUnit1Screen .su-scene{flex-shrink:0}#learnPlayScreen .lp-subtract-keep-ten>.lp-eq,#learnPlayScreen .lp-subtract-unbundle>.sl-equation{order:5}
#multiplyScreen:has(.meaning-body) #multiplyTitle{margin:4px 0;font-size:21px}#multiplyScreen:has(.meaning-body) #multiplySub{margin:4px 0;font-size:17px}#multiplyScreen:has(.meaning-body) .meaning-body{padding:8px}#multiplyScreen:has(.meaning-body) .meaning-link{margin:5px 0}
