/* Child-facing controls; worksheet sizing and print layout remain in their own styles. */
.mode-band{background:#fff;border-bottom:1px solid #d5e4e8;padding:16px 28px 20px}.learning-mode{max-width:680px;margin:0 auto;display:grid;grid-template-columns:1fr 1fr;gap:16px}.learning-mode .mode-card{position:relative;display:flex;align-items:center;gap:16px;min-height:94px;padding:18px 24px;border:2px solid #b8d0d9;border-radius:18px;background:#f7fafc;color:#244b5d;text-decoration:none;white-space:normal;box-shadow:0 3px 0 #dbe8ec;transition:background .15s,border-color .15s,transform .15s}.mode-card:hover{background:#eaf4f8;border-color:#5d91a5}.learning-mode .mode-card[aria-current=page]{background:#e0f2ec;border:3px solid #137b73;color:#075f58;box-shadow:0 4px 0 #badbd1;padding:17px 23px}.mode-icon{width:43px;height:43px;flex-shrink:0}.mode-copy{display:flex;flex-direction:column;gap:6px;min-width:0}.mode-copy strong{font-size:23px;line-height:1.5}.mode-copy rt{font:12px Arial,sans-serif;color:#587b88}.mode-copy small{font-size:13px;color:#516f7b}.mode-state{position:absolute;right:10px;top:-10px;font-size:11px;font-weight:bold;padding:2px 10px;border-radius:12px;background:#ffe19a;border:1px solid #e8c264;color:#604613}.learning-mode a:focus-visible{outline:3px solid #d89d1f;outline-offset:5px}.lab-header nav{gap:8px}.lab-header nav button{min-height:48px}.lab-header .nav-active{background:#f0f7f8;color:#244b5d}.child-ruby rt{font:11px Arial,sans-serif;color:#486773;line-height:1.2}.child-ruby{ruby-align:center}.child-ruby-button{line-height:1.9!important;padding-top:15px!important;min-height:54px!important}.child-ruby-button.primary rt{color:#fff}.child-feedback{font-size:16px;line-height:2.4!important;padding-top:9px}.child-feedback.error{border-left:4px solid #b56936;margin:0 24px 15px;padding:8px 14px;background:#fff2df;border-radius:8px}.bench-footer .primary{min-width:170px}.workbench .stepper{padding-top:24px;padding-bottom:20px}.workbench .stepper span{font-size:15px}.coach-tools button,.coach-panel .hint-button{min-height:52px;font-size:15px}.scene-box .bead-button{min-width:48px;min-height:48px}.scene-box .shape-item{min-width:52px;min-height:52px}.scene-box .person{width:56px;min-height:95px}.scene-box .bin>button{min-height:48px}.scene-box .sudoku-cell{min-height:44px}.scene-box .sudoku-palette button{min-width:48px;min-height:48px}.scene-box .scene-counter button{min-width:52px;min-height:52px}.scene-box .scene-actions button{min-height:52px;font-size:16px}.scene-box .puzzle-pieces button{min-height:90px;min-width:90px}.scene-box .puzzle-pieces button:focus-visible{outline:3px solid #c48f1c}.scene-box select,.scene-box input,.coach-panel select{min-height:50px}.topic-nav>button{min-height:58px;font-size:16px}.model-card h3.child-ruby-button{padding-top:0!important;min-height:0!important;font-size:21px;line-height:2!important}.model-card{min-height:166px}.topic-nav .child-ruby rt{font-size:9px}.practice-title h1{line-height:2}.child-listen-controls{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding-top:10px;margin-top:10px;border-top:1px solid #b6c8e8}.child-listen-controls label{font-size:16px;display:flex;gap:10px;align-items:center}.child-listen-controls select{width:auto;min-width:130px}.child-listen-controls button{min-height:50px;font-size:16px}.child-listen-controls .child-stop{background:#fff;color:#785034;border-color:#d1b38c}.child-form-heading{display:inline-block;background:#dceee8;padding:5px 12px;border-radius:8px;color:#1f695e;font-size:14px;margin:0 0 10px}.child-status-hint{font-size:14px;color:#366655;margin-top:7px}
@media screen{.controls .subjects button{min-height:68px;font-size:18px}.controls .subjects rt{font-size:10px}.controls .type-option{min-height:48px;font-size:14px;padding:11px 10px}.controls .type-option input,.controls input[type=checkbox]{width:20px;height:20px}.controls select,.controls input[type=number],.controls input:not([type]),.controls .save-button{min-height:50px;font-size:16px}.controls .generate{min-height:60px;font-size:18px}.controls .lesson-actions button{min-height:44px}.preview-zone .tools button{min-height:48px;font-size:15px}.preview-zone .audio-panel select{min-height:46px;font-size:16px}.preview-zone .audio-panel>label{font-size:15px}.learning-bar button{min-height:44px;font-size:14px}dialog .close,dialog #learningClose,dialog #closeDialog{min-width:48px;min-height:48px}dialog .answer-list{font-size:16px;line-height:1.9}.lab-notice,.toast{line-height:1.7;font-size:16px}}
@media(max-width:740px){.mode-band{padding:17px 18px 19px}.learning-mode{gap:12px}.learning-mode .mode-card{min-height:98px;gap:10px;padding:17px 13px;border-radius:15px}.learning-mode .mode-card[aria-current=page]{padding:16px 12px}.mode-icon{width:32px;height:32px}.mode-copy strong{font-size:20px}.mode-copy rt{font-size:10px}.mode-copy small{font-size:12px}.mode-state{font-size:10px;right:8px}.scene-box .person{width:48px}.scene-box .sudoku-cell{min-height:0;aspect-ratio:1}.scene-box .sudoku-board{width:min(100%,336px)}.scene-box .bin>button{padding:6px;font-size:14px}.bench-footer .primary{min-width:145px}.bench-footer{gap:12px}.workbench .stepper{gap:8px;padding:22px 14px 18px}.workbench .stepper span{font-size:13px}.workbench .stepper em{width:12px}.child-listen-controls label,.child-listen-controls button{font-size:15px}.child-feedback.error{margin-left:15px;margin-right:15px}.model-card{min-height:150px}}
@media(max-width:390px){.learning-mode .mode-card{gap:7px;padding-left:10px;padding-right:10px}.learning-mode .mode-card[aria-current=page]{padding-left:9px;padding-right:9px}.mode-copy strong{font-size:18px}.mode-icon{width:27px;height:27px}.mode-copy small{font-size:11px}.mode-band{padding-left:14px;padding-right:14px}.bench-footer>div{width:100%;justify-content:flex-start}.bench-footer .primary{width:100%}.scene-box .sudoku-board{width:100%}.scene-box .sudoku-cell{font-size:21px}.scene-box .sudoku-palette{gap:6px}.scene-box .bead-button{min-width:46px;min-height:46px}.scene-box .scene-counter{gap:7px}.workbench .stepper span{font-size:12px}.scene-actions .child-ruby rt{font-size:9px}}
@media(prefers-reduced-motion:reduce){.learning-mode .mode-card{transition:none}}
.model-card h3:has(.child-ruby){line-height:2;font-size:21px}.scene-box:has(.sudoku-board){padding:10px}
.topic-name{line-height:2}.topic-name rt{font:9px Arial,sans-serif;color:#567580}.topic-nav>button{gap:10px}.scene-box .sudoku-cell{min-height:44px}
.scene-box .sudoku-cell.given{opacity:1;color:#193f51}.topic-nav{top:20px}.preview-bar{scroll-margin-top:145px}
@media print{.mode-band,.child-listen-controls,.child-form-heading{display:none!important}}

.material-picker{padding:12px 24px;background:#f5faf7;border-top:1px solid #dce9e2}.material-picker>span{font-size:15px;color:#476b65}.material-picker>div{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}.material-picker button{display:flex;align-items:center;gap:7px;min-height:52px;padding:8px 12px;border:2px solid #cbded7;border-radius:12px;background:white;font-size:16px}.material-picker button[aria-pressed=true]{border-color:#178379;background:#e0f3e9}.material-picker button svg{width:30px;height:30px}.material-picker rt{font-size:10px}.count-groups{display:flex;flex-wrap:wrap;gap:12px}.count-ten{display:grid;grid-template-columns:repeat(5,24px);gap:3px;padding:8px;border:1px solid #b6d4ca;border-radius:9px}.count-ten svg{width:24px;height:24px}.count-ten small{grid-column:1/-1;text-align:center;font-size:13px}.count-ten.loose{border-style:dashed}@media(max-width:740px){.material-picker{padding:10px 14px}.material-picker>div{gap:7px}.material-picker button{padding:7px 9px;font-size:14px}}

@media(max-width:740px){.material-picker>div{display:grid;grid-template-columns:1fr 1fr}.material-picker button{justify-content:center}}

.scene-box .shape-display>svg{width:86px;height:86px}.scene-box .shape-item svg{width:64px;height:64px}.scene-box .shape-item.marked{outline:3px solid #d29e28;outline-offset:1px;background:#fff3cc}.scene-box .shape-display{gap:14px}.scene-box .bins{gap:10px}@media(max-width:740px){.scene-box .shape-display{gap:10px}.scene-box .shape-item{width:70px;height:76px}.scene-box .bins{grid-template-columns:repeat(2,minmax(0,1fr))}.scene-box .bin{min-width:0}}
