.progress-dialog{max-width:min(660px,90vw);max-height:85dvh;overflow:auto;border:2px solid #b49bcf;border-radius:24px;padding:24px;color:#302440;background:#fffaf1;font:24px/1.5 Cloud,CloudSans,sans-serif;box-sizing:border-box}.progress-dialog::backdrop{background:#30244080}.progress-dialog h2{font-size:30px;line-height:1.3;margin:0 0 14px}.progress-dialog>div{display:flex;gap:12px;flex-wrap:wrap}.progress-dialog button,.notebook-tools button{font:inherit;min-height:48px;padding:10px 16px;border-radius:14px;border:1px solid #a995c0;color:#563780;background:#eee5f7}.progress-dialog button:first-child{background:#7250a4;color:white}.progress-dialog label{display:block;margin:14px 0}.progress-dialog select,.progress-dialog textarea{display:block;box-sizing:border-box;width:100%;font:inherit;border:1px solid #a995c0;border-radius:10px;padding:8px;background:#fff;color:#302440}.notebook-tools{display:flex;gap:8px;align-items:center;justify-content:center;flex-wrap:wrap}.notebook-tools button{font-size:20px}.keyboard-puzzle{position:absolute;inset:0;display:grid;grid-template-columns:repeat(3,1fr);pointer-events:none}.puzzle-frame{position:relative}.keyboard-puzzle button{background:transparent;border:0;pointer-events:none;min-width:0;padding:0}.keyboard-puzzle button:focus-visible{outline:5px solid #ffb900;outline-offset:-6px;background:#ffffff25}.point-keyboard:focus-visible,.reader-viewport:focus-visible{outline:4px solid #e5a100;outline-offset:-4px}.input-crosshair{position:absolute;width:28px;height:28px;border:3px solid #ffbf35;box-shadow:0 0 0 2px #4b305f;border-radius:50%;transform:translate(-50%,-50%);pointer-events:none;z-index:5}.input-crosshair[hidden]{display:none}.image-recovery{position:absolute;inset:12px;display:grid;place-content:center;gap:12px;background:#fffaf0ed;border-radius:16px;color:#302440;font:24px/1.4 Cloud,CloudSans,sans-serif;z-index:8;text-align:center;padding:16px;box-sizing:border-box}.image-recovery button{min-height:48px;font:inherit;border:1px solid #a995c0;border-radius:12px;padding:8px;color:#563780;background:white}.image-recovery p{margin:0}.recovery-anchor{position:relative}.support-note{font-size:22px!important;line-height:1.3!important}.notebook-tools button:focus-visible,.progress-dialog button:focus-visible{outline:4px solid #db9800;outline-offset:3px}@media(max-height:700px){.progress-dialog{font-size:21px;padding:18px}.progress-dialog h2{font-size:26px}.notebook-tools button{font-size:18px;padding:6px 10px;min-height:44px}}
/* Keep notebook actions within the existing lower band instead of shrinking the activity. */
.student .is-notebook>.footer{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.student .is-notebook>.footer>.feedback{flex:1 1 280px;margin:0;font-size:22px}.student .is-notebook>.footer>.notebook-tools{flex:1 1 auto}.game-page .notebook-tools{display:inline-flex;margin-left:auto}.learning-guide article{margin:18px 0;padding:18px;background:#fffaf0;border-radius:16px}.learning-guide details{margin-top:10px}.learning-guide summary{cursor:pointer}
.student .is-notebook>.footer>.feedback{display:none}.student .is-notebook>.footer{flex-wrap:nowrap}.student .is-notebook>.footer>.notebook-tools{justify-content:flex-end;flex-wrap:nowrap}.notebook-tools button{min-height:48px!important}.game-page .space-active #activity[data-step="8"]:has(.notebook-tools){grid-template-rows:auto minmax(0,1fr) 112px}.game-page .space-active #activity[data-step="8"]>.action-row{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:48px 48px;gap:8px}.game-page .space-active #activity[data-step="8"]>.action-row>.notebook-tools{grid-row:2;grid-column:1/-1;justify-content:flex-end}.game-page .space-active #activity[data-step="8"]>.action-row>.notebook-tabs{min-width:0}.game-page .space-active #activity[data-step="8"]>.action-row>#extra{grid-column:2;grid-row:1}@media(orientation:portrait){.game-page .space-active #activity[data-step="8"]>.action-row{grid-template-columns:minmax(0,1fr);grid-template-rows:48px 48px}.game-page .space-active #activity[data-step="8"]>.action-row>#extra{display:none}.game-page .space-active #activity[data-step="8"] .notebook-tools{margin:0;justify-content:space-between}}
/* Native tile buttons share the scene's move function for touch and keyboard. */
.keyboard-puzzle button{pointer-events:auto}
