/* G: isolated short-lesson / column / picture presentation fixes. */
#columnLearningScreen[data-step=success] .fc-controls,#subtractColumnHowtoScreen[data-step=clear] .s32-actions,#columnPlacePreviewScreen[data-step=course-clear] .cpp-actions{display:flex!important;flex-direction:column;gap:10px}#columnLearningScreen[data-step=success] .fc-controls button,#subtractColumnHowtoScreen[data-step=clear] .s32-actions button,#columnPlacePreviewScreen[data-step=course-clear] .cpp-actions button{width:100%;min-height:54px}
.cpp-howto .cpp-table{grid-template-rows:28px 26px 44px 44px 3px 44px!important}.cpp-howto .cpp-table>span:nth-child(n+4):nth-child(-n+6){min-height:26px!important;font-size:22px!important;line-height:26px!important}.cpp-howto .cpp-table>.cpp-head{height:28px!important;min-height:28px!important}
#columnLearningScreen[data-op=add] .fc-table{grid-template-rows:24px 78px 54px 4px 54px!important}#columnLearningScreen[data-op=add] .fc-table>.fc-digit:nth-child(5),#columnLearningScreen[data-op=add] .fc-table>.fc-digit:nth-child(6){padding-top:24px;box-sizing:border-box}#columnLearningScreen[data-op=add] .fc-carry{top:0;left:8px;height:24px;line-height:24px}
.s32 .s32-new-ten{top:-6px;right:7px}.s32 .s32-borrow-one{top:-4px;left:6px}.lf-column-world .s32-new-ten{top:-6px}.lf-column-world .s32-borrow-one{top:-4px;left:6px}
#pictureArithmeticScreen.picture-arithmetic[data-op=add]{grid-template-rows:58px 68px minmax(180px,1fr) 52px 24px 68px!important;gap:8px}#pictureArithmeticScreen[data-op=add] .pa-add-world{margin:0;gap:8px;grid-template-columns:minmax(0,1fr) 28px minmax(0,1fr)}#pictureArithmeticScreen[data-op=add] .pa-group{height:auto!important;min-height:150px;grid-template-rows:28px auto;padding:8px;align-self:center}#pictureArithmeticScreen[data-op=add] .pa-objects{grid-template-rows:none!important;grid-auto-rows:40px;align-content:center}#pictureArithmeticScreen[data-op=add] .pa-plus{margin:0;width:28px;text-align:center}
#additionCarryScreen.carry-learning{grid-template-rows:22px 52px minmax(176px,1fr) 74px 30px 66px 60px!important}#additionCarryScreen h2{font-size:20px;line-height:26px}body:has(#additionCarryScreen:not([hidden])) #screenTitle{font-size:18px;line-height:24px}
@media(min-width:600px){.cpp-howto .cpp-table{grid-template-rows:28px 30px 60px 60px 3px 60px!important}#pictureArithmeticScreen[data-op=add] .pa-group{min-height:180px}#pictureArithmeticScreen[data-op=add] .pa-objects{grid-auto-rows:58px}}

/* Stable reserved carry row; no numeric content is placed in a heading. */
#columnLearningScreen .lf-column-world .fc-table{grid-template-rows:24px 24px 54px 54px 4px 54px!important}#columnLearningScreen .fc-carry-space{height:24px;min-height:24px;position:relative;display:grid;place-items:center}#columnLearningScreen .fc-carry{position:static;display:block;font-size:20px;line-height:24px;height:24px;min-width:20px;padding:0}#columnLearningScreen[data-op=add] .fc-table>.fc-top-ten,#columnLearningScreen[data-op=add] .fc-table>.fc-top-one{padding-top:0!important}

.lf-subtract .lf-sub-caption{min-height:52px;height:52px;line-height:26px;display:grid!important;place-items:center}.lf-subtract .lf-ten-bundle{position:relative}.lf-subtract .lf-ten-bundle>strong{display:block;background:#adc899;border-radius:5px;border-bottom:2px solid #7e9d68;transform-origin:50% 0;line-height:24px;min-height:24px}.lf-subtract .lf-ten-bundle.lf-open>strong{visibility:visible!important}.lf-ten-bundle.lf-open:before,.lf-ten-bundle.lf-open:after{content:'';position:absolute;top:25px;bottom:10px;width:6px;background:#d9e7c8;border:1px solid #94ac7d;pointer-events:none}.lf-ten-bundle.lf-open:before{left:-7px;transform:rotate(-8deg)}.lf-ten-bundle.lf-open:after{right:-7px;transform:rotate(8deg)}

/* Cloud A3-A7: reserve content rows instead of overlaying text; scoped to affected lessons. */
#multiplyScreen:has(.meaning-body){height:auto!important;min-height:0!important;padding-bottom:0!important}#multiplyScreen:has(.meaning-body) #multiplyMessage{position:static!important;transform:none!important;height:auto!important;min-height:26px!important;line-height:26px;margin:4px 0!important;flex-shrink:0}#multiplyScreen:has(.meaning-body) #multiplyMessage:empty{display:block!important}#multiplyScreen:has(.meaning-body) .meaning-body:has(.meaning-plates){min-height:400px}#multiplyScreen:has(.meaning-body)>.child-other{margin-bottom:0!important}
.tp .tp-ten-badge{top:-36px;right:4px}
.au .au-group-b .au-quantity{top:-5px;left:50%;transform:translateX(-50%);line-height:28px;font-size:24px}
#cardGameScreen:not([hidden]),#learningTrialsScreen.trials[data-kind=number]{min-height:0!important;height:calc(100svh - 140px);box-sizing:border-box}
@media(min-width:600px){#multiplyScreen:has(.meaning-body) .meaning-body:has(.meaning-plates){min-height:530px}#cardGameScreen:not([hidden]),#learningTrialsScreen.trials[data-kind=number]{height:calc(100svh - 146px)}}

#additionCarryScreen .kug-text{word-break:keep-all;overflow-wrap:normal}

@media(min-width:600px){#columnLearningScreen .lf-column-world .fc-table{grid-template-rows:24px 28px 64px 64px 4px 64px!important}}

/* A5: a dedicated badge row avoids covering either a counting object or the large total. */
.tp .tp-ten{padding-top:32px}.tp .tp-ten-badge{top:0;right:4px}

/* U: scoped right-hand entries preserve the existing result line box. */
#columnLearningScreen .h-column-result{position:relative;display:inline-grid;place-items:center;min-width:44px;min-height:44px;vertical-align:middle}#columnPlacePreviewScreen .cpp-result>strong{position:relative;display:inline-grid;place-items:center}#columnLearningScreen .h-column-result .lf-cell-entry,#columnPlacePreviewScreen .cpp-result .lf-cell-entry,#subtractColumnHowtoScreen .s32-result .lf-cell-entry{font-size:inherit;background:#fff3ce;color:#305b40}

/* W: one-digit subtraction copies the unchanged tens digit. */
#columnLearningScreen .fc-lower-hint,#subtractColumnHowtoScreen .s32-lower-hint{font-size:15px;line-height:24px;margin:4px 0;white-space:nowrap}
