/* Classroom surfaces share the studio's paper, moss and warm wood palette. */
[hidden]{display:none!important}
.button-link{display:inline-flex;align-items:center;justify-content:center;border:1px solid #d8e0ce;background:#fffef9;border-radius:7px;padding:9px 12px;text-decoration:none;color:#4a6543;font-size:12px;white-space:nowrap}
.button-link:hover{border-color:#8da77b;background:#f3f7eb}.teacher-entry{font-size:11px;padding:8px 10px}
.classroom-panel label,.teacher-page label{display:grid;gap:7px;font-size:11px;color:#637257;margin-bottom:12px}
.classroom-panel input,.teacher-page input,.teacher-page select,.teacher-page textarea{width:100%;min-width:0;border:1px solid #d4dfc9;background:#fffefb;border-radius:7px;padding:10px 11px;font:inherit;color:#3e5137;outline:none}
.classroom-panel input:focus,.teacher-page input:focus,.teacher-page textarea:focus,.teacher-page select:focus{border-color:#7b9c66;box-shadow:0 0 0 3px #dfeacb66}
.classroom-panel #class-code,.teacher-page #teacher-code{font-family:ui-monospace,monospace;letter-spacing:.12em;text-transform:uppercase}
.classroom-panel form>button,.classroom-panel #submit-group{width:100%;font-size:12px;min-height:40px}
.resume-details{margin:4px 0 13px;font-size:10px;color:#92a184}.resume-details summary{cursor:pointer}.resume-details label{margin-top:12px}
.class-message{font-size:11px;line-height:1.8;color:#7b8d6e;overflow-wrap:anywhere;margin:10px 0 0;white-space:pre-wrap}
.class-message[data-kind="error"]{color:#a3763e}.class-message[data-kind="success"]{color:#4d7a46}
.classroom-inline-actions{display:flex;flex-wrap:wrap;gap:5px;margin:9px 0}.classroom-inline-actions button{font-size:10px;padding:6px 8px}
.joined-badge{display:flex;gap:9px;align-items:center;padding:12px;background:#eef4e7;border:1px solid #d8e4cb;border-radius:8px;color:#486b3c}.joined-badge span{font-size:8px;letter-spacing:.15em;color:#8ea078}.joined-badge b{font-size:16px;overflow-wrap:anywhere;min-width:0}
#submission-state{font-size:11px;color:#617951;line-height:1.6}#group-recovery{font-size:10px;color:#7a8e68;margin:12px 0;line-height:1.8}#group-recovery summary{cursor:pointer}#group-resume-code{display:block;margin-top:8px;font-size:15px;letter-spacing:.12em;color:#51713d}
.student-feedback{background:#f0f5e8;border:1px solid #d4e2c6;border-radius:8px;padding:12px;margin-top:14px;overflow-wrap:anywhere}.student-feedback>b{font-size:13px;color:#4c743c}.student-feedback p{font-size:12px;line-height:1.8;color:#657653;white-space:pre-wrap}.student-feedback small{font-size:10px;color:#93a080;line-height:1.6;display:block}
.assessment-score{white-space:nowrap;flex-shrink:0;font-size:28px}.assessment-header{gap:9px}.assessment-header p{line-height:1.6}.assessment-header small{font-size:10px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* A submitted design is an isolated read-only viewport: no local work is loaded or saved. */
.review-mode header,.review-mode .library,.review-mode .header-actions,.review-mode .main-tools,.review-mode #undo,.review-mode #redo,.review-mode #group-entry,.review-mode .secondary-tools>.divider,.review-mode .timeline-bar,.review-mode #properties,.review-mode .basic-check,.review-mode .classroom-panel{display:none!important}
.review-mode .app{grid-template-columns:minmax(0,1fr) 205px;height:100dvh;min-height:500px}
.review-mode .viewport-toolbar{min-height:43px;justify-content:flex-end}.review-mode .viewport-wrap{min-width:0}
.review-mode .inspector{padding:14px 12px}.review-mode .inspector section{padding-bottom:16px;margin-bottom:16px}
.review-mode .mini-surface{height:122px}.review-mode #viewport{min-height:210px}.review-mode .scene-footer-end{display:none}
.review-mode .assembly-log ol{max-height:300px}.review-mode .scene-badge{font-size:9px}.review-mode .view-switch{top:40px}
.viewer-state{position:fixed;z-index:100;left:15px;top:15px;right:15px;background:#fff8e9;border:1px solid #d9bf91;border-radius:10px;padding:16px;color:#896a37;font-size:13px}
/* Teacher workspace */
.teacher-page{background:#f4f6ed;color:#45573b;min-height:100dvh}.teacher-page header{background:#fefef8;position:relative;height:78px;padding:0 28px;border-bottom:1px solid #dce3d2;display:flex;gap:20px;justify-content:space-between;align-items:center}
.teacher-main{max-width:1600px;margin:auto;padding:28px 32px 16px}.teacher-page h1,.teacher-page h2,.teacher-page p{margin-top:0}.teacher-page h1{font-size:25px;letter-spacing:-.03em;font-weight:600}.teacher-page h2{font-size:15px;font-weight:600}
.teacher-page button{font-size:12px;padding:10px 14px;min-height:36px}.teacher-page .tiny{font-size:9px;letter-spacing:.16em;color:#96a882}
.teacher-welcome{min-height:calc(100dvh - 210px);display:grid;grid-template-columns:1.1fr 1fr;align-items:center;gap:9%;max-width:1120px;margin:0 auto}
.welcome-copy h1{font-size:48px;line-height:1.4;font-weight:550;margin:20px 0;color:#4b6b3d}.welcome-copy p{font-size:15px;color:#819371;line-height:2;max-width:420px}
.welcome-pills{display:flex;flex-wrap:wrap;gap:8px;margin-top:26px}.welcome-pills span{background:#eaf0df;border:1px solid #dce5cf;padding:7px 10px;border-radius:20px;font-size:11px;color:#718859}
.teacher-card{border:1px solid #dce4d1;background:#fffef9;border-radius:13px;padding:22px;box-shadow:0 4px 18px #53663c04}
.welcome-forms{display:grid;gap:16px}.welcome-forms p{line-height:1.8}.welcome-forms form>button{width:100%}.welcome-forms details summary{cursor:pointer;font-size:13px}.welcome-forms details form{padding-top:20px}.welcome-forms form input{font-size:14px;padding:12px}
.teacher-page>.teacher-main>.class-message{margin:0 0 15px}.teacher-page .teacher-welcome+.class-message{max-width:1120px;margin:0 auto 18px}
.management-receipt{background:#eff4e4;border:1px solid #b9cc9d;border-radius:12px;padding:20px 24px;margin-bottom:22px;display:flex;gap:20px;justify-content:space-between;align-items:center}.management-receipt b{font-size:14px}.management-receipt p{font-size:12px;color:#7c8f65;margin:7px 0}.management-receipt code{font-size:22px;color:#4b7034;letter-spacing:.12em}
.classroom-bar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:10px 0 19px}.classroom-bar h1{margin:7px 0 12px}.classroom-bar p{font-size:12px;color:#8e9d7a;margin:0}.classroom-bar strong{font-size:21px;font-family:ui-monospace,monospace;color:#567a3e;letter-spacing:.15em;padding:7px 11px;background:#e9f0df;border-radius:7px;display:inline-block;margin-left:6px}.classroom-help{padding-left:15px;font-size:11px;color:#99a68c}.classroom-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.network-note{font-size:11px;color:#9b8154;background:#faf4e5;border:1px solid #ede1c7;padding:10px 14px;border-radius:8px;margin-bottom:18px;line-height:1.8}
.class-stats{display:flex;gap:50px;align-items:center;padding:18px 24px;border:1px solid #dce5cf;border-radius:11px;background:#eef3e6;margin-bottom:23px}.class-stats>div{display:flex;gap:12px;align-items:baseline}.class-stats>div b{font-size:28px;color:#62834a;font-weight:500;font-variant-numeric:tabular-nums}.class-stats span{font-size:11px;color:#879775}.class-stats p{font-size:11px;line-height:1.8;color:#91a07f;margin:0 0 0 auto}.class-stats p b{font-weight:500;color:#738d5c}
.teacher-grid{display:grid;grid-template-columns:285px minmax(0,1fr);gap:22px;align-items:start}.group-sidebar{padding:18px 14px;position:sticky;top:16px}.group-sidebar .section-heading{margin-bottom:16px}.group-sidebar .section-heading span{font-size:9px;white-space:nowrap}.teacher-page .group-search{margin:0 3px 15px}.group-search input{font-size:11px}
.teacher-groups{display:grid;gap:9px;max-height:calc(100dvh - 400px);min-height:140px;overflow:auto;padding:1px}.teacher-page .group-card{width:100%;padding:12px 9px;display:flex;text-align:left;align-items:center;gap:8px;border-color:#e2e7db;background:#fbfcf7;border-radius:8px}.teacher-page .group-card.selected{border-color:#8ea977;background:#eef4e5;box-shadow:0 0 0 1px #8ea97722}.group-avatar{background:#e7eddc;border-radius:7px;width:29px;height:32px;flex-shrink:0;display:grid;place-items:center;font-size:12px;color:#7c9764}.group-card-text{display:grid;gap:5px;min-width:0;flex:1}.group-card-text b{font-size:12px;overflow-wrap:anywhere;color:#5c7447}.group-card-text small{font-size:9px;color:#9da88c;line-height:1.5}.group-status{font-size:9px;color:#aa8d60;white-space:nowrap}.group-status.reviewed{color:#6f8c55}.group-empty{font-size:12px;line-height:1.9;color:#98a487;padding:18px 10px;white-space:pre-wrap}
.empty-review{min-height:520px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;border-style:dashed;background:#f8faf2}.empty-review>span{font-size:60px;color:#c2cfad;margin-bottom:25px}.empty-review h2{color:#7d9367;font-weight:500}.empty-review p{font-size:12px;line-height:2;color:#a0ad90}.review-workspace{min-width:0}.review-title{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}.review-title h2{font-size:22px;margin:6px 0;color:#56753f}.review-title p{font-size:10px;color:#9ba88b;margin:0;line-height:1.7}.review-title>label{font-size:9px;min-width:120px;margin:0}.review-title select{font-size:11px;padding:7px 9px}
.teacher-viewer{position:relative;height:560px;border:1px solid #d9e2ce;border-radius:12px;overflow:hidden;background:#ebeee3;margin-bottom:18px}.teacher-viewer iframe{border:0;display:block;width:100%;height:100%}.viewer-message{position:absolute;z-index:2;left:15px;right:15px;top:15px;padding:14px;background:#fffef5;border:1px solid #d6dfc9;border-radius:8px;color:#849670;font-size:12px;line-height:1.7}.new-version-notice{padding:10px 14px;background:#eff6e3;color:#698448;border:1px solid #ccddb4;border-radius:8px;font-size:11px;line-height:1.7}.teacher-page .new-version-notice button{font-size:10px;padding:5px 8px;min-height:0;margin-left:10px}
.teacher-review-form{padding:20px 23px}.review-form-heading{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:15px}.review-form-heading h2{margin-bottom:7px}.review-form-heading p{margin:0;font-size:10px;color:#98a58a}.reference-pill{font-size:10px;background:#eef3e5;border:1px solid #dee6d2;border-radius:20px;padding:7px 12px;color:#7c9164;white-space:nowrap}.score-input-row{display:flex;gap:25px;align-items:center}.score-input-row>label{width:190px;flex-shrink:0}.score-input-row input{font-size:24px;padding:9px 12px}.feedback-shortcuts{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.feedback-shortcuts>span{width:100%;font-size:9px;color:#9ba98b;margin-bottom:1px}.teacher-page .feedback-shortcuts button{font-size:10px;padding:6px 10px;min-height:28px}.teacher-review-form textarea{resize:vertical;min-height:85px;font-size:12px;line-height:1.9}.teacher-review-form label>span.muted{font-size:9px}.review-save-row{display:flex;align-items:center;justify-content:space-between;gap:15px}.review-save-row>span{color:#8a9b76;font-size:11px;line-height:1.7}.review-save-row button{flex-shrink:0}.teacher-footer{font-size:10px;color:#a1ae91;text-align:center;margin:28px 0 12px;line-height:1.8}
@media(max-width:1150px){.teacher-main{padding:22px 20px 14px}.teacher-grid{grid-template-columns:245px minmax(0,1fr);gap:15px}.classroom-help{display:block;padding:12px 0 0}.class-stats{gap:27px}.teacher-viewer{height:540px}.review-mode .app{grid-template-columns:minmax(0,1fr) 180px}.reference-pill{white-space:normal;max-width:145px;line-height:1.6}}
@media(max-width:820px){.teacher-page header{padding:0 16px}.teacher-page .project-title{display:none}.teacher-main{padding:18px 14px}.teacher-welcome{grid-template-columns:1fr;max-width:530px;gap:27px;padding:15px 0}.welcome-copy h1{font-size:34px}.teacher-grid{grid-template-columns:1fr}.group-sidebar{position:static}.teacher-groups{display:flex;overflow-x:auto;min-height:0;max-height:none}.teacher-page .group-card{min-width:210px;max-width:240px}.group-sidebar .fine{display:none}.teacher-page .group-search{max-width:240px}.teacher-viewer{height:570px}.classroom-bar{align-items:start}.classroom-actions{justify-content:flex-end}.class-stats{gap:20px;padding:14px}.class-stats p{display:none}.class-stats>div{gap:6px}.class-stats>div b{font-size:23px}.class-stats span{font-size:10px}.review-mode .app{display:grid;grid-template-columns:minmax(0,1fr) 175px;height:100dvh;min-height:500px}.review-mode .viewport-wrap{height:100%;min-height:0}.review-mode .inspector{display:block;overflow-y:auto;min-height:0}.review-mode #viewport{height:auto;min-height:180px;flex:1}.review-mode .mini-surface{height:100px}.review-mode .scene-footer{font-size:8px}.review-mode .viewport-toolbar{height:42px;min-height:42px}.review-mode .view-switch{left:8px}.review-mode .viewport-hint{display:none}.review-mode .axes{display:none}}
@media(max-width:520px){header .teacher-entry{font-size:10px;padding:6px}header .header-actions{gap:5px}.teacher-main{padding:16px 10px}.teacher-page header{height:66px;padding:0 12px}.teacher-page header .button-link{font-size:10px;padding:8px}.teacher-page .brand{font-size:15px}.classroom-bar{display:block}.classroom-actions{justify-content:flex-start;margin-top:15px}.classroom-actions button{font-size:11px;padding:8px 10px}.class-stats{justify-content:space-between;gap:8px}.class-stats>div{display:grid;gap:4px}.teacher-viewer{height:650px}.review-title h2{font-size:19px}.review-title{align-items:start}.review-title>label{min-width:100px}.teacher-review-form{padding:17px 14px}.review-form-heading{align-items:start}.score-input-row{gap:13px;align-items:start}.score-input-row>label{width:120px}.feedback-shortcuts{gap:4px;padding-top:5px}.teacher-page .feedback-shortcuts button{padding:5px 7px}.review-save-row{display:block}.review-save-row button{width:100%;margin-top:12px}.review-save-row>span{display:block}.reference-pill{font-size:9px;max-width:130px;padding:6px 9px}.management-receipt{display:block;padding:17px}.management-receipt code{font-size:17px}.management-receipt button{margin-top:12px}.review-mode .app{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) 165px;height:100dvh;min-height:590px}.review-mode .inspector{display:grid;grid-template-columns:1fr 1fr;gap:15px;padding:11px;border-top:1px solid #dbe3d0}.review-mode .inspector>section{padding:0;margin:0}.review-mode .lighting{display:none}.review-mode .mini-surface{height:100px}.review-mode .assembly-log ol{max-height:93px}.review-mode #outliner{max-height:100px;overflow:auto}.review-mode #mini-views{padding:9px}.review-mode .mini-grid figcaption{padding:5px 7px}.review-mode .scene-footer{height:25px}.review-mode .view-switch{top:30px}.review-mode .scene-badge{top:8px}}
/* Prevent a horizontally scrollable group strip from widening its grid column. */
.group-sidebar{min-width:0}
@media(max-width:820px){.teacher-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:520px){.review-mode .inspector{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.review-mode .inspector>section{min-width:0}}

@media(max-width:520px){.library-footer{flex-wrap:wrap}.library-footer button{flex:1 0 auto}.header-actions #group-entry{font-size:11px;padding:8px 10px}}
.entry-gate[hidden]{display:none!important}
.entry-gate{position:fixed;z-index:200;inset:0;display:grid;place-items:center;overflow:auto;padding:24px;background:rgba(34,43,37,.62);backdrop-filter:blur(8px)}
.entry-gate-card{width:min(100%,900px);max-height:min(92dvh,980px);overflow:auto;background:#fbfcf7;border:1px solid #d9e1d2;border-radius:10px;padding:28px 32px;box-shadow:0 24px 80px #14201955;color:#465640}
.entry-gate-card>.tiny{font-size:10px;letter-spacing:.15em;color:#829674}
.entry-gate-card>h1{font-size:24px;font-weight:600;line-height:1.35;margin:10px 0 6px;color:#405842}
.entry-gate-copy{font-size:13px;color:#788474;line-height:1.7;margin:0 0 20px}
.entry-gate #join-form{display:grid;grid-template-columns:1fr 1fr;gap:0 14px;align-items:end}
.entry-gate #join-form>.resume-details,.entry-gate #join-form>button{grid-column:1/-1}
.entry-gate label{display:grid;gap:7px;margin:0 0 13px;color:#5f6c5a;font-size:12px}
.entry-gate input:not([type=radio]){width:100%;min-width:0;min-height:42px;padding:10px 12px;border:1px solid #d1dacc;border-radius:6px;background:#fff;color:#344237;font:inherit;outline:none}
.entry-gate input:focus{border-color:#759b76;box-shadow:0 0 0 3px #dce8d966}
.entry-gate #join-form>button{width:100%;min-height:44px}
.entry-gate .resume-details{margin:0 0 14px;color:#75836f;font-size:12px}
.entry-gate .resume-details summary{cursor:pointer}
.entry-gate .resume-details label{margin-top:10px}
.survey-progress{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:4px 0 15px;padding:11px 13px;border-top:1px solid #e3e8df;border-bottom:1px solid #e3e8df;color:#576b52;font-size:12px}
.survey-progress b{font-weight:500;color:#899383;font-size:11px}
.survey-questions{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.survey-question{min-width:0;border:1px solid #e0e6dc;border-radius:7px;background:#fff;padding:14px}
.survey-question-title{display:grid;grid-template-columns:27px 1fr;column-gap:8px;align-items:baseline;margin-bottom:10px}
.survey-question-title>span{grid-row:span 2;color:#8ca17c;font:600 12px ui-monospace,monospace}
.survey-question-title h2{font-size:14px;font-weight:600;margin:0;color:#475942}
.survey-question-title p{font-size:11px;color:#8b9484;margin:3px 0 0}
.survey-answer-set{border:0;padding:0;margin:10px 0 0;min-width:0}
.survey-answer-set legend{font-size:10px;color:#84907f;margin-bottom:6px}
.survey-choice-grid{display:flex;flex-wrap:wrap;gap:6px}
.survey-choice{position:relative!important;display:inline-flex!important;align-items:center;gap:6px!important;min-height:30px;padding:5px 8px!important;margin:0!important;border:1px solid #e2e7df;border-radius:5px;background:#fcfdf9;color:#596455!important;font-size:11px!important;line-height:1.35;cursor:pointer}
.survey-choice:has(input:checked){border-color:#86a27e;background:#eef4e9;color:#42643e!important}
.survey-choice input{width:14px;height:14px;margin:0;accent-color:#668a58;flex:none}
.survey-choice span{overflow-wrap:anywhere}
.survey-submit-row{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:16px;padding-top:14px;border-top:1px solid #e3e8df}
.survey-submit-row p{font-size:11px;line-height:1.6;color:#85907e;margin:0}
.survey-submit-row button{min-height:42px;flex:none}
.classroom-locked .entry-gate{display:grid}
.group-questionnaire{margin:0 0 14px;padding:16px 18px}
.group-questionnaire h2{margin:0 0 4px;color:#486348}
.group-questionnaire>p{font-size:11px;line-height:1.6;color:#899382;margin:0 0 9px}
.group-questionnaire ol{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px;padding-left:22px;margin:0}
.group-questionnaire li{padding:8px 0;border-top:1px solid #e6eae2;font-size:11px;color:#66735f;min-width:0}
.group-questionnaire li::marker{color:#9aa98e}
.group-questionnaire li b,.group-questionnaire li span,.group-questionnaire li small{display:block;overflow-wrap:anywhere}
.group-questionnaire li b{font-size:10px;font-weight:500;color:#899382;margin-bottom:3px}
.group-questionnaire li span{font-size:12px;color:#4c6147}
.group-questionnaire li small{font-size:10px;color:#8a9385;margin-top:3px}
@media(max-width:760px){.entry-gate{padding:12px;place-items:start center}.entry-gate-card{max-height:calc(100dvh - 24px);padding:21px 17px}.survey-questions{grid-template-columns:1fr}.survey-submit-row{align-items:stretch;flex-direction:column}.survey-submit-row button{width:100%}.group-questionnaire ol{grid-template-columns:1fr}.entry-gate #join-form{grid-template-columns:1fr}.entry-gate #join-form>.resume-details,.entry-gate #join-form>button{grid-column:auto}}
