.math-lesson .solver-workspace .solver-key-tabs{min-width:0;max-width:100%;overflow-x:auto;flex:1 1 480px;scrollbar-width:thin;white-space:nowrap}
.math-lesson .solver-workspace .solver-key-tabs button{flex:none;padding:9px 10px;font-size:.78rem}
.math-lesson .solver-workspace .solver-key-page-name{display:none}
.math-lesson .solver-workspace .solver-key-viewport{display:flex;width:100%;min-width:0;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;touch-action:pan-x pan-y pinch-zoom;scrollbar-width:none;border-radius:6px}
.math-lesson .solver-key-viewport::-webkit-scrollbar{display:none}
.math-lesson .solver-workspace .solver-key-page{flex:0 0 100%;width:100%;min-width:0;box-sizing:border-box;scroll-snap-align:start;scroll-snap-stop:always;padding:3px;min-height:246px;grid-template-columns:repeat(6,minmax(0,1fr));grid-auto-rows:52px;align-content:start;gap:7px}
.math-lesson .solver-workspace .solver-key-page[data-layout=main]{grid-template-columns:repeat(9,minmax(0,1fr))}
.math-lesson .solver-workspace .solver-key-page[data-layout=abc]{display:flex;flex-wrap:wrap;justify-content:center;gap:5px}
.math-lesson .solver-workspace .solver-key-page[data-layout=abc] .sci-key{flex:0 0 calc((100% - 45px)/10);height:52px}
.math-lesson .solver-workspace .solver-key-page .sci-key{min-width:0;min-height:0;height:52px;white-space:nowrap;padding:5px 2px;font-size:1rem;user-select:none;-webkit-user-select:none;touch-action:pan-x pan-y pinch-zoom}
.math-lesson .solver-workspace .solver-key-page .sci-key.solver-key-long{font-size:.8rem}
.math-lesson .solver-workspace .solver-key-page .sci-key:focus-visible{outline-offset:-3px}
.math-lesson .solver-workspace .solver-key-page .sci-key[aria-pressed=true]{background:#266c58;color:white}
.math-lesson .solver-workspace .solver-key-pager{display:none}
.math-lesson .solver-workspace .solver-key-help{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:.72rem;color:#526b5e;padding:10px 3px 0;min-width:0}
.math-lesson .solver-workspace .solver-box-nav{display:flex;gap:6px}
.math-lesson .solver-workspace .solver-box-nav button{padding:8px 10px;min-height:36px;border:1px solid #c9d9ce;border-radius:7px;color:#266c58;background:#fff;font-size:.74rem;white-space:nowrap}
.math-lesson .solver-workspace .solver-case-toggle{font-size:.72rem!important;padding:8px!important}
@media(max-width:650px), (max-width:900px) and (orientation:portrait){
 .math-lesson .solver-workspace .solver-key-tabs{display:none}
 .math-lesson .solver-workspace .solver-key-page-name{display:block;font-size:.78rem;font-weight:750;color:#205540;min-width:0;max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .math-lesson .solver-workspace .sci-toolbar{flex-wrap:nowrap;justify-content:space-between;gap:4px;min-height:40px}
 .math-lesson .solver-workspace .sci-utilities{flex:0 0 auto;gap:0;margin-left:auto}
 .math-lesson .solver-workspace .sci-utilities button{padding:7px;min-height:36px;font-size:.75rem}
 .math-lesson .solver-workspace .sci-utilities button[data-edit=undo],.math-lesson .solver-workspace .sci-utilities button[data-edit=redo]{padding:5px 7px;font-size:1.15rem}
 .math-lesson .solver-workspace .solver-key-page{display:grid;min-height:307px;grid-auto-rows:46px;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;padding:3px;align-content:start}
 .math-lesson .solver-workspace .solver-key-page[data-layout=main],.math-lesson .solver-workspace .solver-key-page[data-layout=abc]{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px}
 .math-lesson .solver-workspace .solver-key-page[data-layout=abc] .sci-key,.math-lesson .solver-workspace .solver-key-page .sci-key{height:46px;min-height:46px;font-size:1.02rem}
 .math-lesson .solver-workspace .solver-key-page[data-layout=main] .sci-key{font-size:.95rem}
 .math-lesson .solver-workspace .solver-key-page .sci-key.solver-key-long{font-size:.7rem}
 .math-lesson .solver-workspace .solver-key-pager{display:flex;align-items:center;justify-content:center;gap:0;min-width:0;margin-top:7px}
 .math-lesson .solver-workspace .solver-key-pager>button{width:24px;min-width:24px;height:36px;min-height:36px;padding:0;border:0;border-radius:7px;background:transparent;color:#326d51;font-size:1.5rem}
 .math-lesson .solver-workspace .solver-key-dots{display:flex;gap:0;min-width:0}
 .math-lesson .solver-workspace .solver-key-dots button{display:grid;place-items:center;width:24px;min-width:24px;height:36px;min-height:36px;padding:0;border:0;background:transparent;border-radius:6px}
 .math-lesson .solver-workspace .solver-key-dots button span{display:block;width:6px;height:6px;border-radius:50%;background:#b3cbbd;transition:transform .15s,background .15s}
 .math-lesson .solver-workspace .solver-key-dots button[aria-current=true] span{background:#266c58;transform:scale(1.45)}
 .math-lesson .solver-workspace .solver-key-help{font-size:.68rem;gap:4px;padding-top:3px}
 .math-lesson .solver-workspace .solver-box-nav{gap:4px}.math-lesson .solver-workspace .solver-box-nav button{font-size:.68rem;padding:7px}
}
@media(prefers-reduced-motion:reduce){.math-lesson .solver-key-dots button span{transition:none}}
