/* Focused teacher workspace. Scenery welcomes; the work surface carries the task. */
:root{--ink:#263f34;--muted:#6f7b6a;--line:#e0e6da;--paper:#fffef9;--soft:#f2f5ed;--green:#476c4d}
body{background:#f5f6f0;color:var(--ink)}main{max-width:1260px;padding:0 28px}.topbar{max-width:1260px;margin:0 auto;padding:12px 28px;border-bottom:1px solid var(--line)}.topbar .brand{font-size:20px;letter-spacing:1px}.topbar .brand img{width:40px;height:48px}.topbar .brand small{font-size:7px;letter-spacing:2px}.language-control{border-color:var(--line);background:#fffefa;border-radius:10px}.language-control select{font-size:12px;min-height:34px}.topbar .pill{background:transparent;border:0;color:#6e7f66;font-size:11px;letter-spacing:0}
.studio-masthead{height:174px!important;max-height:174px;margin:25px 0 27px;border:0;border-radius:18px;background:#edf0e4;box-shadow:none;overflow:hidden}.studio-masthead .cover-art{inset:0 0 0 auto;width:46%;height:100%;object-position:center 62%;border-radius:0 18px 18px 0}.studio-masthead:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#edf0e4 0%,#edf0e4 51%,#edf0e4c9 58%,#edf0e400 70%);z-index:-1;pointer-events:none}.studio-masthead .cover-copy{padding:25px 30px;max-width:72%;position:relative}.studio-masthead .cover-copy .eyebrow{font-size:9px;color:#78876b;letter-spacing:2px}.studio-masthead .cover-copy h1,html[lang=en] .studio-masthead .cover-copy h1,html[lang=ja] .studio-masthead .cover-copy h1{font-family:-apple-system,BlinkMacSystemFont,"PingFang TC",sans-serif;font-size:30px;font-weight:650;line-height:1.3;letter-spacing:1px;margin:9px 0 8px;text-shadow:none}.studio-masthead .cover-copy p{font-size:12px;letter-spacing:0;line-height:1.7;background:transparent;padding:0;margin:0;color:#66765d;width:auto;max-width:510px}.studio-masthead .cover-copy:before{display:none}.studio-masthead .cover-link{display:none}.prep-heading{margin:0 2px 15px;align-items:center}.prep-heading h2,html[lang=en] .prep-heading h2{font-size:17px;letter-spacing:.3px;margin:0;font-weight:650}.prep-heading .hand-note{font-size:11px;color:#7a8673;letter-spacing:0;transform:none}
.lesson-workspace{background:var(--paper);border:1px solid var(--line);border-radius:16px;box-shadow:0 8px 30px #33472805;overflow:clip}.workspace-toolbar{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);min-height:58px;padding:0 24px;gap:14px}.prep-steps{padding:0;gap:15px;min-height:44px}.prep-steps button{font-size:12px;color:#7a8772;gap:8px}.prep-steps button[aria-current=step]{color:#365840}.step-number{width:20px;height:20px;font-size:10px;background:#f2f5eb;border-color:#dce5d3}.prep-steps [aria-current=step] .step-number{background:#456f4d;border-color:#456f4d}.step-separator{color:#adb9a4}.workspace-storage{font-size:10px;color:#7f8d76;white-space:nowrap}
.studio{display:grid;grid-template-columns:205px minmax(0,1fr) 238px;gap:0;align-items:stretch;min-height:510px}.unit-library{margin:0;padding:24px 14px 18px;background:#f2f5ed;border-right:1px solid var(--line);position:static;min-width:0}.library-heading{padding:0 8px;margin-bottom:14px}.library-heading h2{font-size:14px;font-weight:650}.library-count{font-size:11px;color:#85917b}.add-unit{margin:0 0 13px;min-height:39px;border:1px solid #d6dfcb;border-radius:8px;background:#fffef6;color:#56734c;font-size:12px;display:flex;align-items:center;justify-content:center;gap:7px}.add-unit:before{content:'';width:14px;height:14px;background:url('assets/icons/plus.svg') center/contain no-repeat;opacity:.55}.add-unit:hover{background:#fffef9;border-color:#aabb9b}.library-hint{padding:0 6px 13px;font-size:10px;color:#7d8b73;line-height:1.7;letter-spacing:0}.unit-list{gap:5px;max-height:365px;padding:1px;overflow:auto}.unit-item{min-height:66px;grid-template-columns:30px minmax(0,1fr);border-radius:8px;background:transparent;border:1px solid transparent}.unit-item.active{background:#e3ecd8;border-color:#d5e0c9}.unit-item:hover{background:#eaf0e1}.unit-select{padding-left:5px;min-height:52px}.unit-select input{width:16px;height:16px;border-radius:4px;border-color:#b8c7a8}.unit-select input:checked{background:#577650;border-color:#577650}.unit-select input:checked:after{content:'';background:url('assets/icons/check.svg') center/12px no-repeat;filter:brightness(0) invert(1);width:12px;height:12px}.unit-open{padding:9px 7px 9px 4px;gap:7px}.folder-icon{border:0;width:17px;height:18px;background:url('assets/icons/folder.svg') center/17px no-repeat;border-radius:0;opacity:.45;margin-top:0}.folder-icon:before{display:none}.unit-copy{gap:5px}.unit-copy strong{font-size:12px;font-weight:550;line-height:1.45}.unit-copy small{font-size:10px;color:#7e8d71}.library-storage{font-size:10px;color:#7c896f;margin:20px 7px 0;line-height:1.8}.unit-workbench{display:block;max-width:none;min-width:0;scroll-margin-top:22px;background:var(--paper)}.studio .editor,.studio .review{background:transparent;border:0;border-radius:0;box-shadow:none;padding:25px 26px;margin:0;backdrop-filter:none}.studio .editor:before,.studio .review:before,.game-shell:after{display:none}.studio .editor .section-head{margin:0 0 10px;align-items:center;min-height:26px}.section-kicker{font-size:10px;letter-spacing:1px;color:#849078}.delete-unit{display:flex;gap:5px;align-items:center;font-size:10px;padding:4px 6px;min-height:30px;color:#8d927e}.delete-unit:before{content:'';width:12px;height:12px;background:url('assets/icons/trash-2.svg') center/contain no-repeat;opacity:.4}.unit-name{font-size:24px;letter-spacing:.3px;line-height:1.4;padding:0 1px 12px;margin:0 0 16px;font-weight:600;color:#2e4a38;border-bottom:1px solid #e8ecdf;border-radius:0}.unit-name:focus-visible{outline-offset:4px}.unit-name::placeholder{color:#9ca68f;font-size:21px}.studio textarea{min-height:290px;height:290px;max-height:600px;background-color:#fffefb;background-image:repeating-linear-gradient(transparent,transparent 33px,#eff1e8 33px,#eff1e8 34px);background-position:0 15px;background-size:100% 34px;border:1px solid #e0e5d7;border-radius:10px;padding:15px 17px;font-size:17px;line-height:34px;letter-spacing:1px;color:#3f5743;resize:vertical}.studio textarea:focus-visible{outline:2px solid #71946e;outline-offset:2px;border-color:#aabd9c}.input-foot{font-size:10px;color:#7c896e;padding:11px 1px 0;gap:10px}.input-foot>span:last-child{color:#647a56;white-space:nowrap}.preset-picker{margin-top:12px}.preset-picker summary{min-height:34px;font-size:11px;color:#5c7b50}.preset-picker .small{font-size:10px;color:#7f8a74}.preset-options{gap:7px}.preset-options button{font-size:11px;min-height:34px;background:#f3f6ec;border-color:#e0e7d6;border-radius:7px}.unit-message:not(:empty){padding:9px 0 0;font-size:11px}.unselected-note{font-size:11px;background:#f6efe0;color:#86734e;padding:8px 10px;margin:-3px 0 13px;border-radius:7px}
.game-setup{align-self:start;margin:24px 18px 24px 0;padding:18px 17px;background:#f3f6eb;border:1px solid #e2e8d9;border-radius:12px;position:sticky;top:16px;min-width:0}.setup-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.setup-heading h2{font-size:13px;font-weight:650;color:#405d42}.settings-toggle,.mobile-scope-count{display:none}.selection-summary{margin:17px 0 0;padding:0;border:0}.scope-metrics{display:grid!important;grid-template-columns:1fr 1fr;gap:10px!important;align-items:start!important;justify-content:initial!important}.scope-metrics>div{display:flex;flex-direction:column;gap:6px}.scope-metrics strong{font-size:29px;line-height:1.1;letter-spacing:-1px;font-weight:550;color:#385a3d;font-variant-numeric:tabular-nums}.scope-metrics span{font-size:10px;color:#7f8d72}.scope-chips{display:flex;gap:5px;flex-wrap:wrap;margin:17px 0 0!important;line-height:1.4!important;min-height:10px}.scope-chip{display:inline-block;padding:5px 7px;font-size:10px;line-height:1.5;background:#e8efdc;border-radius:5px;color:#5d7851;max-width:100%;overflow-wrap:anywhere}.game-setup fieldset{padding-top:18px;border-top:1px solid #dfe6d5;margin:20px 0 18px}.game-setup legend{font-size:10px;color:#77876b;padding-top:0;margin-bottom:8px;float:left;width:100%}.game-setup .segmented{clear:both;border:1px solid #dfe6d6;padding:3px;background:#e8efdc;border-radius:8px;gap:2px}.game-setup .segmented span{font-size:10px;padding:10px 3px;line-height:1.5;word-break:normal}.game-setup .segmented input:checked+span{color:#3e663e;background:#fffef8;box-shadow:0 1px 4px #5268350b}.studio #generate{font-size:12px;min-height:45px;padding:11px 10px;background:#486c4b;border-radius:8px;box-shadow:0 2px 0 #2c4c32;width:100%;justify-content:center}.studio #input-error{font-size:11px;line-height:1.7;color:#a0523b;margin-top:10px}.studio #save-warning{padding:0 5px}.game-teasers{display:none}.unit-undo{margin:12px 0 0;padding:7px 15px;border-radius:9px;font-size:12px}.studio[data-step=review]{grid-template-columns:205px minmax(0,1fr)}.studio[data-step=review] .game-setup{display:none}.studio[data-step=review] .review{min-height:510px;padding:25px 30px}.studio .review .section-head{margin-bottom:12px}.studio .review .section-head h2{font-size:23px;letter-spacing:.3px;font-weight:600;color:#2f4b37}.studio .review .section-head .review-back{font-size:11px;color:#6f8463}.studio .review .merge-note{font-size:11px;color:#6e7f62;margin:0 0 10px}.game-title-options{margin-bottom:8px}.game-title-options summary{color:#758569;font-size:10px;min-height:32px;padding:7px 0}.studio .review>p.small{font-size:11px;color:#6b7a60;line-height:1.8;margin:0 0 13px}.studio .reading-list{max-height:clamp(200px,calc(100dvh - 340px),390px);scrollbar-width:thin;scrollbar-color:#c6d2b9 transparent;border-top:1px solid #e8ecdf;border-bottom:1px solid #e8ecdf;padding:4px 5px 4px 0}.studio .reading-row{grid-template-columns:30px minmax(80px,1fr) minmax(120px,1.2fr);gap:12px;padding:8px 0;border-color:#edf0e6}.studio .reading-row .word{font-size:16px;font-weight:500;letter-spacing:.5px}.row-source{font-size:10px;color:#7c8b71;margin-top:3px}.reading-row .index{color:#8c9b80;font-size:10px}.studio .reading-row input{font-size:16px;background:#f4f6ef;border:1px solid #e7ecde;border-radius:7px;padding:10px 12px;min-height:42px}.studio .review .check{font-size:11px;margin:15px 0 16px;color:#617553;min-height:28px}.studio .review .publish-actions{display:flex;gap:10px;justify-content:flex-end}.studio .review .publish-actions button{flex:0 1 240px;min-height:45px;padding:11px 16px;font-size:12px;border-radius:8px}.studio .review .publish-actions .secondary{background:#486c4b;border-color:#3a5f3f;color:#fffef5;box-shadow:0 2px 0 #2c4c32}.studio .review .publish-actions #share{background:#f6f7f0;color:#647859;border:1px solid #e0e6d7}.title-input{border-radius:7px}footer{max-width:1204px;border:0;font-size:10px;color:#85917b;padding:20px 0 25px;margin:0 auto}.student-heading{padding-top:30px}.brand>span>[data-i18n=brand]{font-size:20px}
@media(max-width:1100px){main{padding:0 22px}.studio{grid-template-columns:180px minmax(0,1fr) 210px}.unit-library{padding:22px 10px}.studio .editor{padding:23px 20px}.game-setup{margin:23px 14px 23px 0;padding:17px 13px}.unit-copy strong{font-size:11px}.folder-icon{width:15px;background-size:15px}.unit-open{gap:6px}.studio[data-step=review]{grid-template-columns:180px minmax(0,1fr)}.studio-masthead .cover-copy h1,html[lang=en] .studio-masthead .cover-copy h1,html[lang=ja] .studio-masthead .cover-copy h1{font-size:27px}.workspace-toolbar{padding:0 20px}.studio-masthead .cover-copy{max-width:73%}.studio-masthead .cover-copy p{max-width:440px;font-size:11px}}
@media(max-width:860px) and (min-width:601px){.studio{grid-template-columns:175px minmax(0,1fr)}.game-setup{grid-column:2;margin:0 20px 20px;position:static;display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center}.game-setup .setup-fields{grid-column:1/-1;display:flex;gap:20px;align-items:center}.game-setup .scope-metrics{display:none!important}.game-setup .selection-summary{margin:0;flex:1}.game-setup .scope-chips{margin:0!important}.game-setup fieldset{flex:1;margin:0;border:0;padding:0}.game-setup #generate{grid-column:1/-1}.studio[data-step=review]{grid-template-columns:175px minmax(0,1fr)}.unit-library{grid-row:1/3}.unit-workbench{grid-column:2}.prep-heading .hand-note{font-size:10px}.studio-masthead .cover-copy h1,html[lang=en] .studio-masthead .cover-copy h1,html[lang=ja] .studio-masthead .cover-copy h1{font-size:24px}.studio-masthead .cover-copy{max-width:76%}}
@media(max-width:600px){main{padding:0 14px}.topbar{padding:10px 14px;gap:7px 10px;flex-wrap:nowrap;min-height:67px}.topbar .brand{gap:5px;min-width:0;margin-right:auto}.topbar .brand img{width:33px;height:42px}.brand>span>[data-i18n=brand]{font-size:17px!important;letter-spacing:.4px}.topbar .brand small{font-size:6px;letter-spacing:1.5px}.topbar .language-control{margin:0;padding:0 5px}.language-control select{font-size:11px;min-height:36px;max-width:88px}.topbar .pill{display:none}.topbar #edit-back{font-size:10px;max-width:100px;line-height:1.5}.studio-masthead{height:143px!important;max-height:143px;margin:17px 0 22px;border-radius:12px}.studio-masthead .cover-art{width:43%;border-radius:0 12px 12px 0;object-position:67% 65%}.studio-masthead:after{background:linear-gradient(90deg,#edf0e4 0%,#edf0e4 53%,#edf0e4c9 65%,#edf0e400 85%)}.studio-masthead .cover-copy{padding:20px 17px;max-width:82%}.studio-masthead .cover-copy .eyebrow{font-size:7px;letter-spacing:1.4px}.studio-masthead .cover-copy h1,html[lang=en] .studio-masthead .cover-copy h1,html[lang=ja] .studio-masthead .cover-copy h1{font-size:21px;line-height:1.4;letter-spacing:0;margin:7px 0}.studio-masthead .cover-copy p{font-size:10px;line-height:1.7;max-width:220px}.prep-heading{margin:0 2px 12px}.prep-heading h2,html[lang=en] .prep-heading h2{font-size:15px}.prep-heading .hand-note{display:none}.lesson-workspace{border-radius:12px;overflow:visible}.workspace-toolbar{padding:0 14px;min-height:51px;gap:8px}.prep-steps{gap:9px;min-height:40px}.prep-steps button{font-size:10px;gap:5px}.step-number{width:18px;height:18px;font-size:9px}.step-separator{font-size:14px}.workspace-storage{display:none}.studio,.studio[data-step=review]{display:flex;flex-direction:column;gap:0;min-height:0}.unit-library{margin:0;padding:17px 14px 14px;border:0;border-bottom:1px solid var(--line);border-radius:0}.library-heading{margin:0;padding:0;display:inline-flex;align-items:center;gap:7px;height:35px}.library-heading h2{font-size:13px}.library-count{font-size:10px}.unit-library .add-unit{float:right;width:auto;min-height:34px;font-size:10px;padding:7px 10px;margin:0}.add-unit:before{width:12px;height:12px}.library-hint{clear:both;padding:3px 0 10px;font-size:9px}.unit-list{display:grid;grid-template-columns:1fr 1fr;gap:5px;max-height:146px;clear:both}.unit-item{grid-template-columns:29px minmax(0,1fr);min-height:59px;border:1px solid #e1e7d8;background:#fffef7}.unit-open{padding:8px 5px 8px 2px;gap:5px}.unit-copy strong{font-size:11px}.unit-copy small{font-size:9px}.unit-select{min-height:44px;padding-left:4px}.unit-select input{width:17px;height:17px}.folder-icon{width:14px;height:16px;background-size:14px}.unit-item.active{border-color:#c9d9b8;background:#e7efdd}.library-storage{display:none}.unit-workbench{display:block;width:100%;scroll-margin-top:15px}.studio .editor,.studio[data-step=review] .review{padding:20px 17px;border-radius:0;min-height:0}.studio .editor .section-head{margin-bottom:8px}.section-kicker{font-size:9px}.delete-unit{font-size:9px}.unit-name{font-size:22px;margin-bottom:14px;padding-bottom:10px}.studio textarea{height:238px;min-height:210px;font-size:17px;padding:13px 14px;line-height:32px;background-size:100% 32px;background-position:0 13px}.input-foot{font-size:9px;padding-top:9px}.preset-picker{margin-top:11px}.preset-picker summary{font-size:11px;min-height:32px}.game-setup{position:sticky;bottom:10px;align-self:stretch;margin:0 10px 10px;padding:12px;background:#fffef8f5;backdrop-filter:blur(12px);border:1px solid #d6e0cb;border-radius:11px;box-shadow:0 3px 18px #405c3210;display:grid;grid-template-columns:1fr auto;gap:11px;z-index:4}.setup-heading{display:grid;grid-template-columns:1fr auto;gap:5px;grid-column:1/-1}.setup-heading h2{font-size:11px;font-weight:600}.settings-toggle{display:flex;align-items:center;gap:4px;background:transparent;border:0;font-size:10px;color:#6b805e;padding:0;min-height:28px;grid-column:2;grid-row:1/3}.settings-toggle:after{content:'';width:12px;height:12px;background:url('assets/icons/chevron-down.svg') center/contain no-repeat;opacity:.5}.settings-expanded .settings-toggle:after{transform:rotate(180deg)}.mobile-scope-count{display:block;font-size:13px;font-weight:600;color:#44653f;grid-column:1;line-height:1.5}.game-setup .setup-fields{display:none;grid-column:1/-1;max-height:260px;overflow:auto;padding:7px 0 4px}.game-setup.settings-expanded .setup-fields{display:block}.game-setup .scope-metrics{display:none!important}.game-setup .selection-summary{margin:0}.game-setup .scope-chips{margin:0 0 14px!important}.scope-chip{font-size:10px;padding:5px 7px}.game-setup fieldset{margin:0;padding-top:12px}.game-setup .segmented span{font-size:12px;padding:10px}.game-setup legend{font-size:10px;margin-bottom:7px}.studio #generate{grid-column:1/-1;font-size:13px;min-height:44px;padding:10px}.studio #input-error{grid-column:1/-1;margin:0;font-size:11px}.studio #input-error:empty{display:none}.studio[data-step=review] .unit-library,.studio[data-step=review] .game-setup{display:none}.studio .review .section-head h2{font-size:21px}.studio .review .section-head .review-back{font-size:10px}.studio .review .merge-note{font-size:10px;line-height:1.8}.studio .review>p.small{font-size:10px}.game-title-options summary{font-size:10px}.studio .reading-list{max-height:clamp(180px,calc(100dvh - 370px),380px)}.studio .reading-row{grid-template-columns:19px minmax(60px,.9fr) minmax(90px,1.1fr);gap:8px;padding:8px 0}.studio .reading-row .word{font-size:15px}.studio .reading-row input{font-size:16px;padding:9px;min-height:40px}.row-source{font-size:9px}.studio .review .check{font-size:11px;margin:14px 0;line-height:1.6}.studio .review .publish-actions{display:flex;flex-direction:column;gap:9px}.studio .review .publish-actions button{width:100%;flex:0 0 auto;font-size:13px;min-height:45px}.studio .review .publish-actions #share{min-height:41px}footer{padding:18px 14px 23px;gap:7px;font-size:9px;line-height:1.8}.unit-undo{margin:10px 0;padding:8px 11px}.student-heading{padding-top:25px}.game-nav{border-radius:12px}.game-shell{border-radius:14px}}
@media(prefers-reduced-transparency:reduce){.game-setup{background:#fffef8;backdrop-filter:none}}
@media(min-width:601px){.studio-masthead{height:128px!important;max-height:128px;margin:18px 0}.studio-masthead .cover-copy{padding-top:17px}.studio-masthead .cover-copy h1,html[lang=en] .studio-masthead .cover-copy h1,html[lang=ja] .studio-masthead .cover-copy h1{font-size:28px;margin:7px 0}.studio textarea{height:clamp(200px,calc(100dvh - 500px),330px);min-height:200px}.studio{min-height:455px}}
@media(max-width:600px){#teacher{padding-bottom:150px}.game-setup{position:fixed;left:24px;right:24px;bottom:10px;margin:0;max-height:70dvh;overflow:auto}body:has(.studio[data-step=review]) #teacher{padding-bottom:0}.studio-masthead{height:124px!important;max-height:124px}.studio-masthead .cover-copy{padding-top:15px}.studio-masthead .cover-copy h1,html[lang=en] .studio-masthead .cover-copy h1,html[lang=ja] .studio-masthead .cover-copy h1{font-size:20px}.studio-masthead .cover-copy p{max-width:205px;font-size:10px}.game-setup .setup-heading{grid-template-columns:minmax(0,1fr) auto}}
@media(max-width:600px){.game-setup{top:auto;height:auto;min-height:0;align-items:start;align-content:start}.game-setup #generate{height:44px;align-self:start}.setup-heading{align-self:start}.game-setup .scope-chips{min-height:0}}

@media(max-width:600px){html[lang=en] .studio-masthead .cover-copy h1,html[lang=ja] .studio-masthead .cover-copy h1{font-size:18px;line-height:1.25}.game-setup{bottom:max(10px,env(safe-area-inset-bottom))}}
@media(pointer:coarse){.unit-item{grid-template-columns:44px minmax(0,1fr)}.unit-select{min-width:44px;min-height:44px}.prep-steps button,.settings-toggle,.delete-unit{min-height:44px}.language-control select{min-height:42px}}
