/* Selected combined concept: quiet teacher editor, pill controls, borderless surfaces. */
body{background:#fafaf5;font-family:-apple-system,BlinkMacSystemFont,"PingFang TC","Hiragino Sans",sans-serif}main{max-width:1440px;padding:0 40px}.topbar{max-width:1440px;padding:16px 40px;border:0;background:transparent;box-shadow:none}.topbar .brand img{width:45px;height:57px}.language-control{border:0!important;border-radius:999px;background:#eef1e9;padding:3px 14px}.topbar #view-label{display:none}button,.quiet,.primary,.secondary,select,.pill,.segmented,.segmented span,summary{border-radius:999px!important;border:0!important;box-shadow:none!important}button{transition:background .15s,transform .15s}button:active:not(:disabled){transform:scale(.98)}button:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible,select:focus-visible{outline:3px solid #75977e!important;outline-offset:3px!important}input,textarea{border:0!important;box-shadow:none!important}.workspace-toolbar{border:0;padding:8px 0;min-height:48px;background:transparent}.workspace-storage{font-size:12px}.prep-steps{gap:14px}.prep-steps button{font-size:14px;padding:8px 12px;background:transparent}.prep-steps button[aria-current=step]{background:#edf2e6}.step-number{width:27px;height:27px;border:0}.studio-masthead{height:145px!important;max-height:none;margin:0 0 22px!important;position:relative;background:transparent;border-radius:0;overflow:hidden;isolation:auto}.studio-masthead:after,.studio-masthead:before{display:none}.studio-masthead .cover-copy{padding:28px 0 16px!important;max-width:75%}.studio-masthead .cover-copy h1,html[lang=en] .studio-masthead .cover-copy h1,html[lang=ja] .studio-masthead .cover-copy h1{font-size:34px;letter-spacing:.3px;margin:0 0 14px;line-height:1.3}.studio-masthead .cover-copy p{font-size:14px;max-width:620px;color:#6b786b}.studio-peek{position:absolute;right:0;bottom:0;width:285px;height:134px;object-fit:contain;object-position:bottom right}.prep-heading{display:none}.lesson-workspace{border:0;background:transparent;box-shadow:none;border-radius:0;overflow:visible}.studio,.studio[data-step=review]{grid-template-columns:260px minmax(0,1fr);gap:24px;min-height:0;align-items:start}.unit-library{grid-column:1;grid-row:1;position:static;padding:20px 16px;background:#f0f3eb;border:0;border-radius:26px;min-height:480px}.library-heading{margin-bottom:16px}.library-heading h2{font-size:15px}.add-unit{background:#fff;border:0;min-height:46px;font-size:14px}.library-hint{font-size:12px;line-height:1.6}.unit-list{max-height:340px;gap:8px}.unit-item{border:0;border-radius:22px;grid-template-columns:40px minmax(0,1fr);min-height:76px}.unit-item.active{background:#dfe9d7;border:0}.unit-select{padding:0;min-height:44px}.unit-select input{width:22px;height:22px;border-radius:50%;background:#fff}.unit-copy strong{font-size:14px}.unit-copy small{font-size:12px}.unit-open{padding:12px 8px 12px 0;gap:8px;border-radius:18px!important}.folder-icon{display:none}.library-storage{font-size:11px;line-height:1.7}.unit-workbench{grid-column:2;grid-row:1}.studio .editor,.studio .review{border:0;background:transparent;padding:4px 0 0;box-shadow:none;border-radius:0}.studio .editor:before,.studio .review:before{display:none}.section-kicker{font-size:13px;letter-spacing:0}.studio .editor .section-head{margin-bottom:10px}.delete-unit{font-size:12px;min-height:36px;padding:8px 14px;background:#f0f2ec}.studio .unit-name{border:0;border-radius:20px;background:#f0f3eb;font-size:25px;padding:15px 20px;margin:0 0 20px;font-weight:600}.studio textarea{background:#f2f4ee!important;border:0;border-radius:24px;font-size:18px;line-height:35px;letter-spacing:.5px;padding:20px 24px;height:clamp(260px,calc(100dvh - 490px),470px);min-height:260px;max-height:650px}.input-foot{font-size:12px;padding:12px 4px 0}.preset-picker{margin:12px 0 0}.preset-picker summary{display:inline-flex;background:#edf2e6;font-size:13px;padding:10px 18px;min-height:42px}.preset-options button{font-size:13px;padding:10px 16px}.preset-picker .small{font-size:12px;margin-top:12px}.game-setup{grid-column:1/-1;grid-row:2;position:sticky;bottom:12px;top:auto;margin:0;padding:16px 22px;background:#eef2e8f5;border:0;border-radius:30px;box-shadow:0 8px 30px #314a3410;display:flex;align-items:center;gap:22px;z-index:5;backdrop-filter:blur(16px)}.game-setup .setup-heading{display:none}.game-setup .setup-fields{display:flex;align-items:center;gap:24px;flex:1;min-width:0}.selection-summary{margin:0;flex:1;padding:0;border:0}.scope-metrics{display:flex!important;gap:20px!important}.scope-metrics>div{flex-direction:row;align-items:baseline;gap:6px}.scope-metrics strong{font-size:24px}.scope-metrics span{font-size:13px}.scope-chips{display:none}.game-setup fieldset{margin:0;padding:0;border:0;min-width:250px}.game-setup legend{display:none}.game-setup .segmented{border:0;padding:4px;background:#e0e7d9}.game-setup .segmented span{font-size:13px;padding:11px 16px}.game-setup .segmented input:checked+span{background:#fff;color:#34573b}.studio #generate{width:auto;min-width:190px;min-height:48px;font-size:15px;padding:13px 24px;background:#456b4d}.studio #input-error:empty{display:none}.studio #input-error:not(:empty){position:absolute;bottom:100%;left:0;right:0;padding:12px 18px;background:#fff1e9;border-radius:18px;font-size:13px}.studio[data-step=review] .review{padding:10px 0;min-height:0}.studio .reading-row input{border:0;border-radius:999px;background:#edf1e7;font-size:17px}.studio .reading-row{border:0;padding:10px 0}.studio .review .publish-actions button{font-size:14px;min-height:48px}.studio .review .check,.studio .review>p.small{font-size:13px}.studio .review .publish-actions #share{border:0;background:#e8eee1}.studio .reading-list{border:0;max-height:420px}.studio .review .merge-note{font-size:12px}.studio .review .section-head .review-back{font-size:13px}.game-title-options summary{font-size:12px}.title-input{background:#eef2e9;border-radius:20px}.game-nav,.game-shell{border:0}.game-nav button{border:0}.game-shell{border-radius:28px}footer{padding:24px 40px;font-size:11px}
@media(max-width:900px){main{padding:0 24px}.topbar{padding:12px 24px}.studio,.studio[data-step=review]{grid-template-columns:210px minmax(0,1fr);gap:18px}.unit-library{padding:18px 10px}.studio-peek{width:220px}.studio-masthead .cover-copy{max-width:70%}.studio-masthead .cover-copy h1,html[lang=en] .studio-masthead .cover-copy h1,html[lang=ja] .studio-masthead .cover-copy h1{font-size:28px}.game-setup{gap:12px;padding:14px 16px}.game-setup .setup-fields{gap:12px}.game-setup fieldset{min-width:220px}.studio #generate{min-width:150px;font-size:13px}.scope-metrics{gap:12px!important}}
@media(max-width:600px){main{padding:0 16px}.topbar{padding:10px 16px}.topbar .brand img{width:35px;height:45px}.workspace-toolbar{padding:5px 0}.workspace-storage{display:none}.prep-steps button{font-size:12px;padding:7px 10px}.prep-steps{gap:7px}.studio-masthead{height:120px!important;margin-bottom:18px!important}.studio-masthead .cover-copy{max-width:72%;padding:20px 0!important}.studio-masthead .cover-copy h1,html[lang=en] .studio-masthead .cover-copy h1,html[lang=ja] .studio-masthead .cover-copy h1{font-size:23px;margin-bottom:10px}.studio-masthead .cover-copy p{font-size:12px;max-width:230px}.studio-peek{width:120px;height:80px;right:-14px}.studio,.studio[data-step=review]{grid-template-columns:minmax(0,1fr);gap:18px}.unit-library{grid-column:1;grid-row:auto;min-height:0;padding:16px;border-radius:24px}.library-heading{margin-bottom:12px}.unit-list{display:flex;max-height:180px}.unit-item{min-height:64px}.library-storage{display:none}.library-hint{padding-bottom:8px}.unit-workbench{grid-column:1;grid-row:auto}.studio .editor{padding:0}.studio .unit-name{font-size:22px}.studio textarea{height:290px;min-height:250px;font-size:17px}.game-setup{grid-column:1;grid-row:auto;position:fixed;bottom:10px;left:12px;right:12px;max-height:65dvh;display:grid;grid-template-columns:1fr auto;padding:12px 16px;border-radius:26px;gap:10px}.game-setup .setup-heading{display:flex;grid-column:1;gap:8px}.setup-heading h2{display:none}.mobile-scope-count{display:block;font-size:12px}.settings-toggle{display:block;background:#e0e7d9;font-size:11px;padding:8px;min-height:34px}.game-setup .setup-fields{display:none;grid-column:1/-1;grid-row:1}.game-setup.settings-expanded .setup-fields{display:block}.game-setup .selection-summary{display:none}.game-setup fieldset{width:100%;min-width:0}.studio #generate{grid-column:2;min-width:125px;font-size:12px;padding:12px;min-height:44px;width:auto;height:auto}.game-setup .segmented span{font-size:13px}.studio[data-step=review] .unit-library{display:none}#teacher{padding-bottom:110px}body:has(.studio[data-step=review]) #teacher{padding-bottom:0}.studio[data-step=review] .review{padding:0}.studio .review .publish-actions button{flex:auto}.studio .review .section-head h2{font-size:22px}footer{padding:16px;font-size:10px}}
.studio-masthead{padding:0!important}.studio .editor{background:transparent!important}.unit-library{min-height:410px}
@media(min-width:601px) and (max-height:800px){.studio-masthead{height:115px!important}.studio-masthead .cover-copy{padding:15px 0!important}.studio-peek{height:108px;width:240px}.studio textarea{height:260px}.unit-library{min-height:410px}}
@media(max-width:600px){.unit-library{display:block;width:100%;min-height:0;grid-template-columns:none}.unit-library .library-heading,.unit-library .add-unit,.unit-library .library-hint,.unit-library .unit-list{grid-column:auto;grid-row:auto}.unit-list{width:100%}.library-heading{display:flex}.add-unit{width:100%}.studio{display:grid}.unit-workbench{width:100%}}
@media(max-width:600px){.unit-library .add-unit{position:static;width:100%;margin:0 0 12px;min-height:44px}.studio .editor{background:transparent!important}}

/* Inset the editor contents within its rounded paper surface. */
.studio .unit-workbench{border-radius:28px}
.studio #editor-panel{padding:20px 24px 24px;border-radius:28px;background:var(--paper)!important}
@media(max-width:600px){.studio #editor-panel{padding:16px;border-radius:24px}}

/* Match the review surface to the inset editor. */
.studio #review-panel{padding:20px 24px 24px;border-radius:28px;background:var(--paper)}
.review-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 12px;color:#7b8874}
.studio .review .review-meta p{font-size:12px;line-height:1.5;margin:0}
.studio .review .game-title-options{margin:12px 0 0}
@media(max-width:600px){.studio #review-panel{padding:16px;border-radius:24px}.review-meta{gap:6px}}

/* Personal lessons and optional starter topics share the library. */
.library-tabs{display:flex;gap:4px;padding:4px;background:#e3e9dc;border-radius:999px;margin-bottom:16px}
.library-tabs button{flex:1;min-width:0;padding:10px 6px;min-height:42px;background:transparent;color:#6b7c61;font-size:13px;white-space:normal;line-height:1.4}
.library-tabs button[aria-selected=true]{background:#fff;color:#34573b;font-weight:600}
#my-units-panel .library-heading{margin:0 4px 8px;justify-content:flex-end}
.catalog-intro{font-size:12px;line-height:1.6;margin:0 4px 12px}
.catalog-list{display:grid;gap:10px;max-height:420px;overflow:auto;padding:2px}
.catalog-card{padding:12px;background:#fffdf8;border-radius:20px;min-width:0}
.catalog-preview summary{display:flex;flex-direction:column;gap:4px;cursor:pointer;padding:4px;min-height:46px;border-radius:12px!important}
.catalog-preview summary strong{font-size:14px;color:#34573b;font-weight:600}
.catalog-preview summary small{font-size:11px;color:#7b8874}
.catalog-preview summary strong:after{content:' ⌄';font-weight:400;color:#8a967e}
.catalog-preview[open] summary strong:after{content:' ⌃'}
.catalog-words{font-size:12px;line-height:1.9;margin:8px 4px 12px;overflow-wrap:anywhere}
.catalog-add{width:100%;background:#e8efdf;color:#456b4d;font-size:12px;padding:8px 12px;min-height:38px;margin-top:8px}
.catalog-add:disabled{background:#f0f2ec;color:#7b8874}
.catalog-sources{margin:14px 4px 0;font-size:11px;color:#7b8874}
.catalog-sources summary{cursor:pointer;padding:6px 0}
.catalog-sources p,.catalog-sources a{font-size:11px;line-height:1.7;margin-top:6px;color:#6b7c61}
@media(max-width:600px){.catalog-list{max-height:340px}.library-tabs button{font-size:13px}}

.unit-list .unit-item{grid-template-columns:40px minmax(0,1fr) 32px;align-items:center}
.unit-list .unit-remove{display:grid;place-items:center;align-self:center;width:32px;min-height:44px;padding:0;background:transparent;color:#8a967e;font-size:23px}
.unit-list .unit-remove:hover{background:#f4e8df;color:#96664d}
.unit-list .unit-item{grid-template-columns:40px minmax(0,1fr) 40px;padding-right:8px}
.unit-list .unit-remove{width:32px;height:32px;min-height:32px;justify-self:center;border-radius:50%!important}

.unit-library .unit-undo{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 12px;padding:8px 12px;border-radius:20px;background:#fff7e8;color:#6d735b;font-size:12px}
.unit-library .unit-undo button{padding:8px 14px;background:#e3ecd9;color:#34573b;min-height:36px;white-space:nowrap;font-weight:600}

.unit-library #my-units-panel .add-unit{margin:14px 0 0;width:100%;position:static}
/* A slightly more compact desktop scale. */
@media(min-width:901px){body{zoom:.92;min-height:calc(100dvh / .92)}}

/* Let the rabbit rest its paws on the workbench edge. */
.studio .unit-workbench{position:relative}
.unit-workbench>.studio-peek{top:auto;bottom:100%;right:24px;margin-bottom:-8px;z-index:2;pointer-events:none}
@media(max-width:600px){.studio .unit-workbench{margin-top:62px}.unit-workbench>.studio-peek{right:16px}}
