.lessons-title{font-size:26px;line-height:1.3;margin:18px 0 8px}
.lesson-card{display:grid;grid-template-columns:112px minmax(0,1fr) auto;align-items:center;gap:20px;width:100%;max-width:none;margin:8px 0;padding:10px 12px;text-align:left;border:1px solid #3c4c68;border-radius:12px;background:#19212e}
.lesson-card:hover{background:#202d43;border-color:#91a7e7}
.lesson-card strong{display:block;font-size:20px;line-height:1.4}
.lesson-card small{display:block;margin-top:10px;color:#acbad0;font-size:14px}
.lesson-card-cube{display:block;width:112px;aspect-ratio:204/212;pointer-events:none}
.lesson-card-cube svg{display:block;width:100%;height:100%}
.lesson-card-copy{min-width:0;display:flex;flex-wrap:wrap;align-items:baseline;gap:8px}
.lesson-card .lesson-card-copy small{display:inline;margin:0;font-size:12px;white-space:nowrap}
.lesson-group-field{display:flex;align-items:center;justify-content:center;gap:10px;margin-bottom:8px;font-size:13px;color:#acbad0;max-width:100%}
.lesson-group-field select{min-width:0;max-width:100%;min-height:44px;background:#202d43;color:#e0e9ff;border-color:#40516e;font-size:14px}
.practice-card.lesson-card{grid-template-columns:minmax(0,1fr);gap:4px;padding:8px 12px}
.practice-selecting .practice-card.lesson-card{grid-template-columns:36px minmax(0,1fr)}
.practice-select{display:grid;place-items:center;align-self:stretch;min-height:44px;cursor:pointer}
.practice-select input{width:20px;height:20px;margin:0;cursor:pointer;accent-color:#adbeef}
.practice-selecting .practice-card:has(input:checked),.practice-selecting .practice-card:has(input:indeterminate){border-color:#adbeef;background:#202d43}
.practice-card-open{display:grid;grid-template-columns:minmax(180px,300px) minmax(0,1fr);align-items:center;gap:24px;width:100%;min-width:0;min-height:44px;text-align:left;padding:0;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;touch-action:pan-y}
.catalog-lesson-card.lesson-card{grid-template-columns:minmax(180px,300px) minmax(0,1fr);gap:24px}
.catalog-case-previews{display:grid;grid-template-columns:repeat(var(--case-count),minmax(0,88px));align-items:center;gap:8px;min-width:0;width:100%}
.catalog-case-preview{display:block;min-width:0;aspect-ratio:204/212}
.catalog-case-preview svg{display:block;width:100%;height:100%}
#practice-page .lesson-activity{grid-template-rows:minmax(0,1fr)}
#practice-page .lesson-workspace{grid-template-columns:minmax(0,1fr)}
@media(max-width:740px){
 .practice-card.lesson-card{padding:8px}
 .catalog-lesson-card.lesson-card{padding:8px 12px}
 .practice-card-open,.catalog-lesson-card.lesson-card{grid-template-columns:minmax(0,1fr);gap:6px}
 .practice-card-open .catalog-case-previews,.catalog-lesson-card .catalog-case-previews{grid-row:2;grid-column:1/-1;grid-template-columns:repeat(auto-fill,64px);height:calc(64px * 212 / 204);align-items:start;overflow:hidden}
 .practice-card-open .lesson-card-copy strong,.catalog-lesson-card .lesson-card-copy strong{font-size:16px}
 .practice-card-open .lesson-card-copy small{font-size:12px}
 .lesson-group-field{flex-wrap:wrap;gap:6px}
}
main:has(#lesson-detail:not([hidden])){padding-bottom:calc(var(--lesson-navigation-height,0px) + 12px)}
#lesson-detail{display:grid;grid-template-rows:auto minmax(0,1fr);gap:10px;height:var(--lesson-available-height,calc(100dvh - 120px));min-height:0;min-width:0;overflow:hidden}
.lesson-activity{display:grid;grid-template-rows:auto minmax(0,1fr);min-height:0;min-width:0;border:1px solid #35435b;border-radius:12px;overflow:hidden;background:#19212e}
.lesson-heading{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:10px}
.lesson-heading .lessons-title{grid-column:2;grid-row:1;min-width:0;font-size:22px;margin:0}
.lesson-heading .header-context{grid-column:1;grid-row:1}
.fullscreen-lesson-title{position:absolute;top:64px;left:16px;right:16px;z-index:2;margin:0;text-align:center;font-size:18px;line-height:1.3;font-weight:550;pointer-events:none;opacity:0;transition:opacity 220ms ease}
body.focus-mode .fullscreen-lesson-title:not([hidden]){opacity:1}
body.focus-mode #lesson-practice-mount #timer-pad{padding-top:104px}
#lesson-practice-mount .scramble-kind{display:none}
.detail-back{display:grid;place-items:center;width:44px;min-width:44px;min-height:44px;padding:0;border:1px solid var(--line);border-radius:8px;background:#202a3a;color:#acbad0}
.detail-back:hover{color:#dce7ff}
.lesson-tabs{display:flex;gap:0;border-bottom:1px solid #35435b}
.lesson-tabs [role="tab"]{flex:1;min-width:0;min-height:44px;padding:8px 20px;border-bottom:3px solid transparent;font-size:15px;color:#acbad0}
.lesson-tabs [aria-selected="true"]{border-color:#adbeef;color:#e0e9ff;background:#202d43}
.lesson-panel{min-height:0;min-width:0}
.lesson-section{height:100%;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr);gap:8px;padding:clamp(10px,2vh,24px);box-sizing:border-box}
#lesson-panel-lesson{overflow:hidden}
.lesson-workspace{height:100%;min-height:0;min-width:0;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);overflow:hidden}
.lesson-workspace.lesson-demo-workspace{grid-template-columns:minmax(0,1fr)}
.lesson-case-heading{display:grid;grid-template-columns:minmax(0,1fr);justify-items:center;min-width:0}
#lesson-case-picker{min-width:0;border:0;margin:0;padding:0}
#lesson-case-picker legend{padding:0 0 10px;color:#acbad0;font-size:12px;font-weight:600}
#lesson-case-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.lesson-case-tile{min-width:0;min-height:44px;display:flex;flex-direction:column;align-items:center;gap:4px;padding:6px 3px;border:1px solid #35435b;border-radius:8px;background:#19212e;color:#acbad0;font-size:11px;line-height:1.3}
.lesson-case-tile:hover{background:#26354c;border-color:#91a7e7}
.lesson-case-tile[aria-pressed="true"],.lesson-case-tile[aria-current="true"]{background:#2b3b58;border-color:#adbeef;box-shadow:inset 0 0 0 1px #adbeef;color:#fff}
.lesson-case-tile:focus-visible{outline:2px solid #dce7ff;outline-offset:2px}
.lesson-case-thumbnail{display:block;width:108px;max-width:100%;aspect-ratio:204/212;pointer-events:none}
.lesson-case-thumbnail svg{display:block;width:100%;height:100%}
#lesson-case-picker:disabled{opacity:.6}
.lesson-content{grid-column:1;grid-row:1;min-width:0;min-height:0;overflow:hidden;container-type:inline-size}
body.focus-mode #lesson-panel-practice .lesson-workspace{display:block;height:auto}
#lesson-demo{flex:1;min-height:0;display:flex;flex-direction:column;gap:8px}
.lesson-section h3{margin:0;font-size:18px;line-height:1.3}
.lesson-section p{color:#acbad0;font-size:13px;line-height:1.4;margin:6px 0}
.lesson-demo-setup code{display:block;font:600 clamp(13px,1.5vw,18px)/1.5 var(--mono);color:#dce7ff;text-align:center;text-wrap:balance}
.lesson-view-frame{display:block;font-size:12px;line-height:1.5;color:var(--muted);text-align:center;margin:0 0 6px}
.lesson-demo-layout{flex:1;min-height:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto minmax(0,1fr);align-items:center;gap:12px}
.lesson-demo-setup{grid-column:1;grid-row:1}
.lesson-cube{grid-column:1;grid-row:2;min-width:0;min-height:0;height:100%;display:flex;align-items:center;justify-content:center}
.lesson-cube svg{display:block;width:100%;height:100%;max-height:min(56dvh,600px)}
.lesson-demo-guide{grid-column:2;grid-row:1/3;min-width:0;max-height:100%;overflow-y:auto;display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center}
.lesson-playback{display:flex;width:100%;max-width:350px;gap:6px}
.lesson-playback button{flex:1 1 0;min-height:44px;min-width:0;padding:6px;font-size:14px}
#lesson-help[aria-pressed="true"],#fullscreen-track[aria-pressed="true"],.timer-split-control:has(#fullscreen-track[aria-pressed="true"]){--toggle-background:#173c2c;--toggle-border:#3e976b;--toggle-color:#a2efbe}
#lesson-help[aria-pressed="false"],#fullscreen-track[aria-pressed="false"],.timer-split-control:has(#fullscreen-track[aria-pressed="false"]){--toggle-background:#44242c;--toggle-border:#a45262;--toggle-color:#ffc1c9}
#lesson-help[aria-pressed],#fullscreen-track[aria-pressed]{background:var(--toggle-background);border-color:var(--toggle-border);color:var(--toggle-color)}
.lesson-moves{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;font:600 24px/1.25 var(--mono);margin:10px 0}
.lesson-moves span{display:inline-block;min-width:38px;padding:6px;text-align:center;border:1px solid transparent;border-radius:6px}
.lesson-moves .done{color:#91a7c8}
.lesson-moves .current{background:#304669;border-color:#adbeef;color:#fff}
.lesson-moves .align{color:#8fa0bb}
.lesson-moves:has(.lesson-phase){font-size:22px}
/* An F2L solution as steps: each step is a button holding its moves and name. */
.lesson-phase{display:block;min-width:0;min-height:44px;padding:4px 8px 5px;border:1px solid #35435b;border-radius:10px;background:#1d2636;color:inherit;font:inherit;text-align:center;cursor:pointer}
.lesson-phase:hover{background:#26354c;border-color:#91a7e7}
.lesson-phase:focus-visible{outline:2px solid #dce7ff;outline-offset:2px}
.lesson-phase.active{background:#202d43;border-color:#adbeef}
.lesson-moves .lesson-phase span{min-width:0;padding:4px 2px}
.lesson-phase small{display:block;font:600 11px/1.4 system-ui,sans-serif;letter-spacing:.05em;text-transform:uppercase;color:#acbad0}
.lesson-phase.active small{color:#dce7ff}
/* The case a step leaves, between that step and the next one. */
.lesson-phase-case{display:grid;grid-template-columns:auto auto auto;grid-template-rows:auto auto;place-items:center;column-gap:4px;min-width:0;padding:2px;border:1px solid transparent;border-radius:8px;color:#acbad0;font:600 11px/1.3 system-ui,sans-serif;text-decoration:none;white-space:nowrap}
.lesson-phase-case::before,.lesson-phase-case::after{content:'→';grid-row:1/3;color:#6f819f;font-size:14px}
.lesson-phase-case::after{grid-column:3}
.lesson-phase-case i{grid-column:2;display:block;width:36px;aspect-ratio:204/212}
.lesson-phase-case small{grid-column:2;font:inherit}
.lesson-phase-case svg{display:block;width:100%;height:100%}
a.lesson-phase-case:hover{background:#26354c;color:#fff}
a.lesson-phase-case:focus-visible{outline:2px solid #dce7ff;outline-offset:2px}
.lesson-phase-case.here{border-color:#adbeef;color:#fff}
/* Narrow layouts name the case in the note instead of a tile. */
.lesson-phase-leaves{display:none;margin-left:4px;font-style:normal;color:#adbeef;text-decoration:none;white-space:nowrap}
.lesson-phase-leaves b{color:#dce7ff}
a.lesson-phase-leaves::after{content:' ›'}
.lesson-section .lesson-phase-note{max-width:440px;min-height:2.8em;margin:0;font-size:14px;line-height:1.4;color:#c9d4e7;text-wrap:balance}
.lesson-phase-note strong{color:#fff}
.lesson-focus[aria-pressed="true"]{background:#2b3b58;border-color:#adbeef;color:#fff}
.lesson-speed{display:flex;flex-direction:column;align-items:stretch;min-width:0;max-width:440px;width:100%;margin:6px auto 0;padding-top:10px;border-top:1px solid #35435b;color:#acbad0;font-size:12px}
.lesson-speed-heading{display:flex;justify-content:center;align-items:baseline;gap:8px}
.lesson-speed input{appearance:none;min-width:0;width:100%;min-height:44px;margin:0;padding:0;border:0;background:transparent;accent-color:#adbeef;cursor:pointer;outline-offset:-2px}
.lesson-speed input::-webkit-slider-runnable-track{height:5px;border-radius:999px;background:#40516e}
.lesson-speed input::-webkit-slider-thumb{appearance:none;width:17px;height:17px;margin-top:-6px;border:2px solid #dce7ff;border-radius:50%;background:#adbeef}
.lesson-speed input::-moz-range-track{height:5px;border-radius:999px;background:#40516e}
.lesson-speed input::-moz-range-thumb{width:13px;height:13px;border:2px solid #dce7ff;border-radius:50%;background:#adbeef}
.lesson-speed output{font-family:var(--mono)}
#lesson-panel-practice{overflow:hidden}
#lesson-practice-mount{grid-column:1;grid-row:1;min-height:0;min-width:0}
#lesson-help{min-height:44px;font-size:13px}
.lesson-solution{position:static;width:100%;text-align:center;pointer-events:none;color:#bdcce4;font-size:12px;line-height:1.5}
.lesson-solution strong{display:block;font:600 20px/1.5 var(--mono);color:#dce7ff}
body:not(.focus-mode) #lesson-practice-mount #timer-card{height:100%;min-height:0;overflow:visible;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto;padding:6px 10px;gap:4px;border:0;border-radius:0}
body:not(.focus-mode) #lesson-practice-mount .timer-toolbar{position:static;min-height:44px;min-width:0;flex-wrap:wrap;margin:0;gap:4px}
body:not(.focus-mode) #lesson-practice-mount .timer-toolbar .icon-button,body:not(.focus-mode) #lesson-practice-mount #fullscreen-track{min-height:44px;min-width:44px}
body:not(.focus-mode) #lesson-practice-mount .lesson-solution{font-size:12px;line-height:1.25}
body:not(.focus-mode) #lesson-practice-mount .lesson-solution strong{font-size:16px;line-height:1.25}
body:not(.focus-mode) #lesson-practice-mount #timer-pad{grid-row:2;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);height:auto;min-height:0;padding:0;gap:6px}
body:not(.focus-mode) #lesson-practice-mount .timer-center{grid-column:1;grid-row:1;max-width:100%;gap:8px}
body:not(.focus-mode) #lesson-practice-mount .fullscreen-scramble{font-size:clamp(17px,2vw,24px);line-height:1.4}
body:not(.focus-mode) #lesson-practice-mount .cube-preview{width:clamp(90px,16vh,160px)}
body:not(.focus-mode) #lesson-practice-mount .clock{font-size:clamp(48px,9vh,100px);line-height:1.1}
body:not(.focus-mode) #lesson-practice-mount .timer-instruction,body:not(.focus-mode) #lesson-practice-mount .touch-instruction{margin-top:4px;font-size:12px;line-height:1.3}
body:not(.focus-mode) #lesson-practice-mount .timer-hint{font-size:16px;margin-bottom:2px}
body:not(.focus-mode) #lesson-practice-mount .solve-feedback:not([hidden]){position:static;transform:none;width:100%;font-size:12px;line-height:1.3;max-width:none}
body:not(.focus-mode) #lesson-practice-mount .solve-ranking:not([hidden]){position:static;grid-row:3;transform:none;width:100%;max-width:none;font-size:11px;line-height:1.2}
body:not(.focus-mode) #lesson-practice-mount .ranking-track{margin:5px auto}
body.focus-mode #lesson-detail>.lesson-heading,body.focus-mode .lesson-tabs,body.focus-mode #lesson-panel-lesson{display:none}
body.focus-mode #lesson-detail{height:auto;display:block}
body.focus-mode .lesson-activity{display:block;border:0;border-radius:0;background:none;overflow:visible}
body.focus-mode main:has(#lesson-detail:not([hidden])){padding:0}
@media(min-width:741px){
 main:has(#lesson-detail:not([hidden])){max-width:none}
 #lesson-detail{width:100%;height:var(--lesson-available-height,calc(100dvh - 120px))}
}
@media(max-width:740px){
 .sidebar nav{flex:1;min-width:0;display:grid;grid-template-columns:none;grid-auto-columns:minmax(0,1fr);grid-auto-flow:column}
 .sidebar nav .nav{width:100%;min-width:0;padding-left:2px;padding-right:2px}
 #lesson-detail{gap:8px}
 .lesson-heading .lessons-title{font-size:18px}
 .lesson-section{padding:10px}
 .lesson-workspace{grid-template-columns:minmax(0,1fr)}
 #lesson-case-list{grid-template-columns:minmax(0,1fr);gap:8px}
 #lesson-case-picker legend{font-size:11px}
 .lesson-case-thumbnail{width:92px}
 .lesson-section h3{font-size:16px}
 .lesson-moves{gap:2px;font-size:20px;margin:2px 0}
 .lesson-moves span{min-width:26px;padding:4px 2px}
 .lesson-card{grid-template-columns:76px minmax(0,1fr) auto;padding:16px;gap:12px}
 .lesson-card-cube{width:76px}
 .lesson-card small{font-size:12px;margin-top:6px}
 .lesson-card strong{font-size:18px}
 body:not(.focus-mode) #lesson-practice-mount .timer-toolbar #lesson-help,body:not(.focus-mode) #lesson-practice-mount #fullscreen-track{padding:6px 8px;font-size:12px}
}
@media(max-width:740px) and (max-height:700px){
 #lesson-detail{gap:4px}
 .lesson-section{padding:8px}
 .lesson-section p{margin:4px 0;font-size:12px}
 .lesson-demo-setup code{font-size:12px}
 #lesson-demo{gap:4px}
 .lesson-moves{font-size:16px}
 body:not(.focus-mode) #lesson-practice-mount #timer-card{padding:2px 6px;gap:2px}
 body:not(.focus-mode) #lesson-practice-mount .timer-center{gap:4px}
 body:not(.focus-mode) #lesson-practice-mount .fullscreen-scramble{grid-column:1/-1;font-size:16px;line-height:1.35}
 body:not(.focus-mode) #lesson-practice-mount .cube-preview{width:76px}
 body:not(.focus-mode) #lesson-practice-mount .clock{font-size:40px}
 body:not(.focus-mode) #lesson-practice-mount .lesson-solution{font-size:11px}
 body:not(.focus-mode) #lesson-practice-mount .lesson-solution strong{font-size:14px}
 body:not(.focus-mode) #lesson-practice-mount .timer-instruction,body:not(.focus-mode) #lesson-practice-mount .touch-instruction{font-size:11px;margin-top:1px}
 body:not(.focus-mode) #lesson-practice-mount .timer-instruction kbd{font-size:9px;padding:1px 5px}
 body:not(.focus-mode) #lesson-practice-mount .has-solve-feedback .clock{font-size:36px}
}
@media(min-width:741px) and (max-height:800px){
 .lesson-demo-guide{gap:6px}
 .lesson-moves{margin:0}
 .lesson-section .lesson-phase-note{min-height:0}
}
@media(min-width:741px) and (max-height:600px){
 .lesson-moves:has(.lesson-phase){font-size:18px;gap:4px 16px}
 .lesson-phase{position:relative;padding:2px 6px 3px}
 .lesson-phase-case{display:none}
 .lesson-phase~.lesson-phase::before{content:"→";position:absolute;left:-13px;top:50%;translate:0 -50%;color:#6f819f;font:600 12px/1 system-ui,sans-serif}
 .lesson-phase-leaves{display:inline}
 .lesson-heading{grid-template-columns:auto minmax(0,1fr);gap:10px}
 .lesson-heading .lessons-title{font-size:18px}
 #lesson-detail{gap:6px}
 .lesson-section{padding:8px}
 #lesson-demo{gap:4px}
 .lesson-section .lesson-demo-setup{margin:0}
 .lesson-demo-setup code{font-size:12px}
 .lesson-playback button{font-size:12px;padding:5px 8px}
 .lesson-moves{font-size:18px;margin:0;gap:4px}
 .lesson-moves span{padding:2px;min-width:32px}
 body:not(.focus-mode) #lesson-practice-mount #timer-card{padding:2px 8px;gap:2px}
 body:not(.focus-mode) #lesson-practice-mount .timer-center{gap:4px}
 body:not(.focus-mode) #lesson-practice-mount .fullscreen-scramble{grid-column:1/-1;font-size:16px;line-height:1.3}
 body:not(.focus-mode) #lesson-practice-mount .cube-preview{width:88px}
 body:not(.focus-mode) #lesson-practice-mount .clock{font-size:40px}
 body:not(.focus-mode) #lesson-practice-mount .timer-instruction,body:not(.focus-mode) #lesson-practice-mount .touch-instruction{font-size:11px;margin-top:1px}
 body:not(.focus-mode) #lesson-practice-mount .timer-instruction kbd{font-size:9px;padding:1px 5px}
 body:not(.focus-mode) #lesson-practice-mount .lesson-solution strong{font-size:14px}
}
@container(max-width:560px){
 .lesson-demo-layout{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto;gap:8px}
 .lesson-demo-guide{grid-column:1;grid-row:3;width:100%;max-height:none;overflow:hidden;gap:6px}
 .lesson-moves{gap:2px;font-size:18px;margin:2px 0}
 .lesson-moves span{min-width:24px;padding:3px 2px}
 .lesson-moves:has(.lesson-phase){font-size:clamp(11.5px,4.2cqw,15px);gap:4px 12px}
 .lesson-phase{position:relative;padding:2px 3px 3px}
 .lesson-moves .lesson-phase span{padding:3px 0}
 .lesson-phase small{font-size:9px;letter-spacing:.02em}
 .lesson-phase-case{display:none}
 .lesson-phase~.lesson-phase::before{content:"→";position:absolute;left:-12px;top:50%;translate:0 -50%;color:#6f819f;font:600 12px/1 system-ui,sans-serif}
 .lesson-phase-leaves{display:inline}
 .lesson-section .lesson-phase-note{font-size:12px;min-height:2.6em}
 .lesson-playback{gap:4px}
 .lesson-playback button{padding:4px 2px;font-size:12px}
}
@media(max-height:700px){
 body:not(.focus-mode) #lesson-practice-mount .solve-feedback:not([hidden]),body:not(.focus-mode) #lesson-practice-mount .feedback-pb{font-size:11px;line-height:1.2}
 body:not(.focus-mode) #lesson-practice-mount .split-value.has-difference{transform:none}
 body:not(.focus-mode) #lesson-practice-mount .split-difference{display:block;position:static;font-size:10px;line-height:1.1}
 body:not(.focus-mode) #lesson-practice-mount .ranking-track,body:not(.focus-mode) #lesson-practice-mount .ranking-ends{display:none}
}

.practice-case-picker{display:none;min-width:0;max-width:100%;width:100%;margin:0;border:0;padding:0;background:transparent;touch-action:pan-x}
#lesson-case-row{min-width:0;width:100%}
.case-selection-mark{position:absolute;top:4px;right:6px;color:#dce7ff;visibility:hidden}
.case-strip-tile{position:relative}
.case-strip-tile[aria-pressed="true"] .case-selection-mark{visibility:visible}
#lesson-case-row #lesson-case-list,#practice-case-list{display:flex;gap:8px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scroll-padding-inline:4px;padding:4px;min-width:0;max-width:100%;justify-content:safe center}
#lesson-case-row .lesson-case-tile,.case-strip-tile{flex:0 0 88px;width:88px;padding:6px;gap:2px}
#lesson-case-row .lesson-case-thumbnail,.case-strip-tile .lesson-case-thumbnail{width:76px}
#lesson-practice-mount .practice-case-picker{display:block;padding-bottom:8px}
body:not(.focus-mode) #lesson-practice-mount #timer-pad{grid-template-rows:auto minmax(0,1fr)}
body:not(.focus-mode) #lesson-practice-mount .practice-case-picker{grid-column:1;grid-row:1;align-self:start}
body:not(.focus-mode) #lesson-practice-mount .timer-center{grid-row:2}
#lesson-practice-mount #timer-pad,#lesson-practice-mount .timer-center{touch-action:pan-x}
#lesson-practice-mount .fullscreen-scramble,#lesson-practice-mount .cube-preview,#lesson-practice-mount .timer-readout{touch-action:none}
.practice-case-picker:disabled{opacity:.6}
@media(min-width:741px){
 #lesson-demo{justify-content:center;gap:14px}
 .lesson-section .lesson-demo-setup{margin:0}
 .lesson-demo-setup code{font-size:clamp(22px,1.8vw,32px);line-height:1.5;max-width:1100px;margin:0 auto;text-wrap:balance}
 .lesson-demo-layout{flex:0 1 min(48dvh,520px);height:min(48dvh,520px)}
}
body.focus-mode #practice-case-picker{display:none}
body.focus-mode #lesson-panel-practice{display:block}

@media(max-width:740px) and (max-height:700px){
 .lesson-section{grid-template-rows:auto minmax(410px,1fr);overflow-y:auto}
 #lesson-case-row .lesson-case-tile,.case-strip-tile{flex-basis:60px;width:60px;padding:4px;font-size:10px}
 #lesson-case-row .lesson-case-thumbnail,.case-strip-tile .lesson-case-thumbnail{width:48px}
 .lesson-demo-guide{gap:4px}
 .lesson-moves{font-size:16px;gap:2px;margin:0}
 .lesson-moves span{min-width:22px;padding:2px}
 .lesson-speed{margin-top:2px;padding-top:6px}
}
/* Solving position under a practice cube, separate from the scramble label. */
.solve-frame{margin:4px 0 0}
/* Latest result can be edited (penalty, note, delete). */
.timer-actions{display:flex;align-items:center;gap:6px}
.edit-result{min-height:30px;padding:4px 10px}
#timer-card.running .edit-result{visibility:hidden}
.lesson-case-tile>span:not([class]){white-space:nowrap}
/* During a solve every tap on the card stops the timer or marks a split. */
#timer-card.running{touch-action:none}
#timer-card.running .timer-toolbar *{pointer-events:none}
#timer-card.running .solve-frame{display:none}
.lesson-demo-frame{text-align:center;margin-bottom:4px}
