/* Recovery: targeted 'Read the abacus' only; no global page, login or reporting overrides. */
#fun.sa78ReadActive #funGrid,#fun.sa78ReadActive #v25FunSummary{display:none!important}
#fun.sa78ReadActive .activitypanel{display:flex;flex-direction:column;gap:5px;box-sizing:border-box}
#fun.sa78ReadActive .kidActivityTop{display:none}
#fun.sa78ReadActive .sa78ReadLayout{display:flex;flex-direction:column;gap:7px;min-height:0;flex:1}
#fun.sa78ReadActive .sa78ReadHint{margin:0;text-align:center;font-weight:800;font-size:14px}
#fun.sa78ReadActive .sa78ReadBoard{display:flex;justify-content:center;align-items:center;min-height:80px;flex:1 1 0;border-radius:14px;padding:5px;background:#fff9ec;border:1px solid #e3cca6;overflow:hidden}
#fun.sa78ReadActive .sa78ReadBoard svg{display:block;width:100%;height:100%;max-height:100%;object-fit:contain}
#fun.sa78ReadActive .sa78ReadAnswer{display:flex;flex-direction:column;gap:5px;flex:0 0 auto}
#fun.sa78ReadActive .sa78ReadAnswer label{font-size:12px;font-weight:800}
#fun.sa78ReadActive .sa78ReadAnswerRow{display:grid;grid-template-columns:minmax(0,1fr) 110px;gap:7px}
#fun.sa78ReadActive #readInput{width:100%;min-width:0;font-size:22px;text-align:center;height:46px;min-height:46px;box-sizing:border-box}
#fun.sa78ReadActive #sa78ReadCheck{font-size:16px;height:46px;min-height:46px;box-sizing:border-box}
#fun.sa78ReadActive .sa78ReadFeedback{min-height:28px;font-size:12px;padding:5px 8px;border-radius:10px;background:#e8f1fc;color:#174d6e;text-align:center;font-weight:800}
#fun.sa78ReadActive .sa78ReadFeedback.good{background:#dcf7e5;color:#176441}
#fun.sa78ReadActive .sa78ReadFeedback.bad{background:#ffe7e7;color:#9b3333}
@media (max-width:700px){
 #fun.sa78ReadActive{max-width:100%;overflow:hidden!important;padding:6px 7px!important;box-sizing:border-box}
 #fun.sa78ReadActive>.head{margin:0 0 3px!important;min-height:0!important}
 #fun.sa78ReadActive>.head h2{font-size:18px!important;margin:0!important}
 #fun.sa78ReadActive>.head p{display:none}
 #fun.sa78ReadActive #activityArea{min-height:0;flex:1 1 0;overflow:hidden!important}
 #fun.sa78ReadActive #activityArea>.activitypanel{padding:6px!important;margin:0!important;min-height:0;height:100%;max-height:100%;overflow:hidden!important}
 #fun.sa78ReadActive{height:calc(100dvh - 174px)!important;max-height:calc(100dvh - 174px)!important;min-height:0!important;display:flex;flex-direction:column}
 #fun.sa78ReadActive #activityArea>.activitypanel>.head{margin:0!important;min-height:0!important;padding:0!important}
 #fun.sa78ReadActive #activityArea>.activitypanel>.head h3{font-size:14px!important;margin:0!important}
 #fun.sa78ReadActive .sa78ReadFeedback{max-height:42px;overflow:hidden}
 #fun.sa78ReadActive .actTimerTrack{min-height:3px!important;max-height:3px!important}
}
@media (max-height:570px) and (orientation:landscape){
 #fun.sa78ReadActive{height:calc(100dvh - 85px)!important;max-height:calc(100dvh - 85px)!important}
 #fun.sa78ReadActive .sa78ReadHint{display:none}
 #fun.sa78ReadActive .sa78ReadBoard{min-height:45px}
}

/* Keep the complete existing laboratory functional and move its theme menu under settings. */
#abacus.saAbacusClean:not(.saShowOptions) #v174ThemeGallery,
#abacus.saAbacusClean:not(.saShowOptions) #v171ThemePanel{display:none!important}
#abacus.saAbacusClean .abstage{display:block!important;visibility:visible!important;opacity:1!important;margin-top:7px!important}
#abacus.saAbacusClean #abinner{display:flex!important;visibility:visible!important;opacity:1!important}
@media(max-width:700px){
 #abacus.saAbacusClean{padding:7px 9px 115px!important}
 #abacus.saAbacusClean>.head{margin-bottom:4px!important}
 #abacus.saAbacusClean>.head h2{font-size:19px!important;margin:0!important}
 #abacus.saAbacusClean>.head small{display:none}
 #abacus.saAbacusClean>.saSettingsToggle{min-height:41px!important;padding:7px!important;margin:3px 0!important}
 #abacus.saAbacusClean .abstage{height:min(50dvh,430px)!important;min-height:160px!important;overflow:auto!important}
 #abacus.saAbacusClean .abframe{max-height:100%!important;overflow:auto!important}
 #abacus.saAbacusClean .readout{margin-top:4px!important}
}
