@charset "UTF-8";
:root{--ink:#173b35;--muted:#61756e;--green:#087866;--green-dark:#075e50;--paper:#fff;--line:#d9e4df;--sand:#fbf8f0;--bg:#f2f6f3;--red:#a83d35;--font:system-ui,-apple-system,"Segoe UI",sans-serif}
*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;color:var(--ink);background:var(--bg);font-family:var(--font);font-size:16px;line-height:1.5}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #e6ad58;outline-offset:3px}a{color:var(--green)}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(26px,3.7vw,48px);line-height:1.16;letter-spacing:-.03em;margin-bottom:16px}h2{font-size:23px;line-height:1.25;margin-bottom:16px}small,.muted{color:var(--muted)}.muted{font-size:14px;margin-bottom:10px}.eyebrow{font-size:12px;font-weight:750;letter-spacing:.14em;color:var(--green);margin-bottom:10px}
.app-header{padding:20px max(22px,calc((100vw - 1370px)/2));background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:20px}.wordmark{color:var(--ink);font-size:21px;font-weight:750;line-height:1.2;text-decoration:none;display:flex;gap:12px;align-items:center}.wordmark small{display:block;font-size:11px;font-weight:500;letter-spacing:.09em;margin-top:4px}.brand-pen{display:grid;place-items:center;width:42px;height:42px;border-radius:11px;background:var(--green);color:#fff;font-size:29px}.session-tools{display:flex;align-items:center;gap:16px;font-size:14px}
main{max-width:1370px;margin:auto;padding:30px 24px}.welcome{display:grid;grid-template-columns:1fr 440px;gap:clamp(32px,6vw,100px);align-items:center;min-height:calc(100svh - 140px);max-width:1180px}.welcome-copy h1{font-size:clamp(34px,4.5vw,58px)}.welcome-copy>p:not(.eyebrow){max-width:490px;font-size:18px;color:var(--muted)}.welcome-drawing{max-width:330px;color:var(--green);opacity:.8;margin:35px 0}.login-card,.panel,.install-card{background:#fff;padding:30px;border:1px solid var(--line);border-radius:16px}.login-card{box-shadow:0 15px 60px #153c3510}.login-tabs{display:flex;gap:8px;border-bottom:1px solid var(--line);margin-bottom:25px;padding-bottom:12px}.login-tabs button,.navigation button{background:transparent;border:0;color:var(--muted);padding:10px 14px;border-radius:8px;font-weight:650}.login-tabs button[aria-pressed=true],.navigation button.active{background:#e1f0e9;color:var(--green-dark)}
label{display:block;font-size:14px;font-weight:650;margin-bottom:15px}input:not([type=checkbox]),select{width:100%;display:block;padding:11px 12px;color:var(--ink);background:#fff;border:1px solid #baccc2;border-radius:8px;margin-top:6px;min-height:44px}input[type=checkbox]{width:19px;height:19px;accent-color:var(--green);flex-shrink:0}.button{padding:11px 18px;border-radius:9px;border:1px solid transparent;font-weight:650;min-height:44px}.primary{background:var(--green);color:#fff}.primary:hover{background:var(--green-dark)}.secondary{background:#fff;border-color:#b9cfc5;color:var(--green-dark)}.quiet{background:transparent;border:0;color:var(--green);padding:9px 11px;border-radius:7px;min-height:44px}.quiet:hover{background:#e9f1ec}.danger{color:var(--red)}.stop{background:#ab382e;color:#fff}.button-row{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.message{position:sticky;top:0;z-index:50;padding:14px 24px;text-align:center;background:#d7eee1;color:var(--green-dark);border-bottom:1px solid #9ec3af}.message.error,.notice.error{background:#fbe8e4;color:#953c31}.notice{background:var(--sand);border:1px solid #e7dcc3;padding:13px 15px;border-radius:8px;font-size:14px;overflow-wrap:anywhere}.notice.success{background:#e5f2e9;border-color:#aed0bb}.install-card{max-width:650px;margin:45px auto}.install-card ol li{margin-bottom:9px}
.workshop-top{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:24px}.workshop-top h1{font-size:32px;margin-bottom:6px}.workshop-top p{margin-bottom:0}.navigation{display:flex;gap:4px;flex-wrap:wrap}.create-strip{display:flex;gap:18px;align-items:center;margin-bottom:15px}.create-strip label{margin:0}.job-title-input{flex:1}.format-pill{font-size:13px;background:#e4ece4;padding:8px 12px;border-radius:8px;white-space:nowrap}.editor-shell{background:#fff;border:1px solid var(--line);border-radius:13px;overflow:hidden}.editor-shell iframe{display:block;width:100%;height:850px;height:max(640px,calc(100svh - 260px));border:0}.submit-strip{display:flex;gap:25px;justify-content:space-between;align-items:center;background:#fff;border:1px solid var(--line);border-radius:13px;padding:20px;margin-top:15px}.submit-strip p{margin-bottom:0}
.queue-toolbar{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-bottom:20px}.queue-toolbar label{margin:0;min-width:140px}.queue-layout{display:grid;grid-template-columns:350px minmax(0,1fr);gap:20px}.queue-list{max-height:calc(100svh - 200px);overflow:auto;padding:1px 5px 10px 1px}.job-card{display:grid;grid-template-columns:68px minmax(0,1fr);gap:13px;width:100%;text-align:left;background:#fff;border:1px solid var(--line);border-radius:11px;padding:14px;margin-bottom:10px;color:var(--ink)}.job-card.selected{border:2px solid var(--green);padding:13px;background:#f1faf4}.job-card canvas{width:68px;height:68px;border:1px solid #e1e8e2;background:#fff;border-radius:6px}.job-card strong{display:block;overflow-wrap:anywhere;line-height:1.3;margin-bottom:5px}.job-card small{display:block;font-size:12px}.status{display:inline-block;border-radius:5px;background:#e5ebe6;padding:2px 6px;margin-top:6px;font-size:11px;font-weight:700}.status.approved,.status.completed{background:#dcefe1;color:#176548}.status.interrupted{background:#f8dfd8;color:#993d2d}.empty-list{padding:35px;text-align:center;color:var(--muted)}.viewer{background:#fff;border:1px solid var(--line);border-radius:13px;padding:22px;min-width:0}.viewer-heading{display:flex;justify-content:space-between;gap:14px}.viewer-heading h2{font-size:27px;overflow-wrap:anywhere}.viewer-heading .eyebrow{margin-bottom:5px}.viewer-controls{display:flex;gap:12px;align-items:center;flex-wrap:wrap;border-block:1px solid var(--line);padding:12px 0;margin-bottom:15px}.viewer-controls label{margin:0;font-size:12px}.viewer-controls select{padding:6px 8px;min-height:36px}.inline-check{display:flex;align-items:center;gap:9px;font-weight:500}.presentation{display:grid;grid-template-columns:1fr 1fr;gap:15px;min-height:370px}.presentation[data-layout=program]{grid-template-columns:1fr}.presentation[data-layout=drawing]{grid-template-columns:1fr}.presentation[data-layout=program] .preview-view,.presentation[data-layout=drawing] .program-view{display:none}.read-blocks{height:390px;background:#f8faf8;border-radius:8px;overflow:hidden}.program-view{min-width:0;border:1px solid var(--line);border-radius:8px;overflow:hidden}pre{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;overflow:auto;background:#f8faf8;padding:18px;min-height:390px;max-height:480px;font:17px/1.7 ui-monospace,"Cascadia Code",monospace}.code-line{display:block;border-radius:3px;padding:0 4px}.code-line.current{background:#ffebaa}.preview-view{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;background:#fff;border:1px solid var(--line);border-radius:8px;padding:12px}.preview-view canvas{width:100%;max-height:430px;object-fit:contain;aspect-ratio:1}.preview-view p{margin:10px 0 0;font-size:12px}.simulation-tools{margin:15px 0}.paper-confirm{background:#f7f0df;padding:12px;margin:16px 0 10px;border-radius:8px}#historyPanel{border-top:1px solid var(--line);margin-top:18px;padding-top:12px;font-size:13px;color:var(--muted)}#history li{margin:8px 0}.active-lock{padding:13px 17px;border-radius:9px;background:#faecd9;border:1px solid #ebd6b1;margin-bottom:15px}
.management{display:grid;grid-template-columns:1fr 1fr;gap:22px}.two-columns{display:grid;grid-template-columns:1fr 1fr;gap:15px}.class-item{padding:15px 0;border-bottom:1px solid var(--line)}.class-item strong{display:block}.class-item .button-row{margin-top:8px}.class-item p{margin:5px 0;font-size:13px;color:var(--muted)}details>summary{cursor:pointer;font-weight:650;margin:14px 0}details>label{margin-top:12px}.app-footer{padding:22px;text-align:center;color:var(--muted);font-size:12px}
body.beamer{background:#fff}body.beamer .app-header,body.beamer .workshop-top,body.beamer .queue-toolbar,body.beamer .queue-list,body.beamer .active-lock,body.beamer #teacherJobActions,body.beamer #historyPanel,body.beamer .app-footer,body.beamer #project{display:none!important}body.beamer main{max-width:none;padding:16px}body.beamer .queue-layout{display:block}body.beamer .viewer{border:0;padding:0}body.beamer .viewer-heading h2{font-size:36px}body.beamer .presentation{min-height:calc(100svh - 230px)}body.beamer .read-blocks{height:calc(100svh - 250px);min-height:360px}body.beamer pre{height:calc(100svh - 250px);max-height:none;font-size:25px}body.beamer .preview-view canvas{max-height:calc(100svh - 260px)}body.beamer .viewer-controls{margin-bottom:10px}body.beamer .simulation-tools{font-size:18px}
@media(max-width:1050px){.queue-layout{grid-template-columns:290px minmax(0,1fr)}.presentation{grid-template-columns:1fr}.preview-view canvas{max-height:400px}.welcome{grid-template-columns:1fr 390px;gap:30px}.workshop-top{align-items:flex-start;flex-direction:column}.management{grid-template-columns:1fr 1fr}.viewer-heading h2{font-size:24px}}
@media(max-width:760px){main{padding:23px 14px}.app-header{padding:16px}.wordmark{font-size:18px}.session-tools{gap:4px}.welcome{grid-template-columns:1fr;gap:12px;min-height:0;max-width:560px}.welcome-drawing{display:none}.welcome-copy h1{font-size:35px}.welcome-copy>p:not(.eyebrow){font-size:16px}.login-card,.panel{padding:22px}.queue-layout,.management{grid-template-columns:1fr}.queue-list{max-height:310px}.job-card{grid-template-columns:50px 1fr;padding:11px}.job-card canvas{height:50px;width:50px}.queue-toolbar{gap:12px}.queue-toolbar label{min-width:120px;flex:1}.viewer{padding:16px}.viewer-heading{flex-wrap:wrap}.create-strip{flex-wrap:wrap;gap:12px}.create-strip label{width:100%}.create-strip .format-pill{width:100%;white-space:normal}.submit-strip{flex-direction:column;align-items:stretch}.editor-shell iframe{height:900px}.button-row .button{flex-grow:1}.two-columns{grid-template-columns:1fr 1fr}.navigation button{padding:9px;font-size:14px}.workshop-top h1{font-size:28px}.viewer-controls{gap:10px}.install-card{margin:20px 12px;padding:24px}.session-tools #sessionLabel{max-width:125px;text-align:right;font-size:12px}}

/* The editor uses the available viewport, including on FullHD and iPad. */
body.editor-mode{height:100dvh;min-height:500px;display:flex;flex-direction:column;overflow:hidden}
body.editor-mode .app-header{padding:6px 16px;flex:none;gap:10px}
body.editor-mode .wordmark{font-size:17px}body.editor-mode .wordmark small{display:none}
body.editor-mode .brand-pen{width:32px;height:32px;font-size:22px}
body.editor-mode #workshop{max-width:none;width:100%;padding:5px 12px 0;min-height:0;flex:1;display:flex;flex-direction:column}
body.editor-mode .workshop-top{margin:0 0 5px;flex:none;display:block}
body.editor-mode .workshop-top>div,body.editor-mode .app-footer{display:none}
body.editor-mode .navigation{gap:5px}body.editor-mode .navigation button{padding:7px 12px;min-height:38px}
#createArea{min-height:0}
body.editor-mode #createArea{display:flex;flex-direction:column;flex:1;min-height:0}
body.editor-mode .create-strip{margin:0 0 6px;gap:10px;flex:none;flex-wrap:wrap}
body.editor-mode .create-strip label{font-size:12px;width:auto;display:flex;align-items:center;gap:8px;white-space:nowrap}
body.editor-mode .create-strip input,body.editor-mode .create-strip select{margin:0;padding:7px 10px;min-height:36px}
body.editor-mode .job-title-input{flex:1;max-width:560px;min-width:240px}
body.editor-mode .format-pill{font-size:12px;padding:6px 10px;width:auto}
body.editor-mode .editor-shell{flex:1;min-height:180px;border-radius:8px;display:flex;flex-direction:column}
body.editor-mode .editor-shell iframe{flex:1;width:100%;height:100%!important;min-height:0}
body.editor-mode .submit-strip{padding:7px 3px;margin:0;border:0;border-radius:0;flex:none;gap:12px;background:transparent;flex-direction:row}
body.editor-mode .submit-strip .muted{font-size:12px;max-width:440px;margin:0}
body.editor-mode .submit-strip button{font-size:13px;padding:8px 12px;min-height:40px}
body.editor-mode .message{position:fixed;top:54px;left:50%;transform:translateX(-50%);width:min(700px,94vw);padding:10px 16px;border-radius:9px;box-shadow:0 8px 25px #173b3522}
.assignment-box{margin:0 0 6px;background:#eef5eb;border:1px solid #c9dbbd;border-left:4px solid #6c9637;border-radius:7px;flex:none;padding:0 12px}
.assignment-box summary{font-size:14px;margin:6px 0;color:#375325}
#assignmentText{white-space:pre-wrap;overflow-wrap:anywhere;max-height:100px;overflow:auto;font-size:15px;line-height:1.5;margin:0 0 8px}
#createArea:fullscreen{height:100dvh;background:var(--bg);padding:10px;display:flex;flex-direction:column}
#createArea:fullscreen .editor-shell{flex:1;min-height:0}#createArea:fullscreen iframe{height:100%!important;flex:1}
#createArea:fullscreen .submit-strip{margin:0;padding:8px 4px}#createArea:fullscreen #assignmentText{max-height:80px}
.simple-dialog{border:1px solid var(--line);border-radius:16px;padding:26px;width:min(480px,94vw);color:var(--ink)}
.simple-dialog::backdrop{background:#112e2870}.dialog-title{display:flex;align-items:center;justify-content:space-between;gap:12px}
.dialog-title h2{margin:0 0 15px}.dialog-title button{font-size:23px;align-self:flex-start}
textarea{font:inherit;color:var(--ink);border:1px solid #baccc2;border-radius:8px;padding:10px;width:100%;resize:vertical;line-height:1.5}
.management{grid-template-columns:minmax(280px,.7fr) minmax(0,1.3fr)}.classes-panel{min-width:0}
.class-item{padding:20px 0}.class-code{display:flex;align-items:center;gap:12px;margin:9px 0;font-size:14px}
.class-code code{font:700 20px/1.2 ui-monospace,monospace;letter-spacing:.12em;background:#e9f3e7;border:1px solid #cbdcc3;border-radius:6px;padding:7px 10px;user-select:all}
.class-task-form{margin-top:16px}.class-task-form textarea{margin-top:7px;font-size:15px}
.bonus-settings{background:#f7f5ee;border-radius:8px;padding:1px 12px 12px;margin-top:12px}
.class-format-info{margin-top:14px}.class-format-info p{line-height:1.55}
.viewer-arm{width:100%;height:430px;position:relative;overflow:hidden;border-radius:8px;background:#edf3ef}
.viewer-arm canvas{display:block;width:100%!important;height:100%!important;max-height:none!important;aspect-ratio:auto!important}
.arm3d-unsupported{font-size:13px;color:var(--muted);padding:12px}
body.beamer .viewer-arm{height:calc(100svh - 280px)}
@media(max-width:1050px){.management{grid-template-columns:1fr}}
@media(max-width:760px){body.editor-mode .app-header{padding:3px 9px}.session-tools{gap:2px}#accountOpen{font-size:12px;padding:6px}
body.editor-mode #workshop{padding:4px 6px 0}body.editor-mode .job-title-input{min-width:185px;max-width:none}body.editor-mode .job-title-input input{min-width:100px}
body.editor-mode .create-strip{gap:5px}body.editor-mode .create-strip label{font-size:11px}body.editor-mode .create-strip .quiet{min-height:36px;font-size:12px;padding:5px 7px}
body.editor-mode .format-pill{font-size:11px}body.editor-mode .submit-strip>div:first-child{display:none}
body.editor-mode .submit-strip .button-row{width:100%;justify-content:space-between;gap:5px}body.editor-mode .submit-strip .button-row button{font-size:12px;padding:7px 9px;flex-grow:0}
body.editor-mode .navigation button{font-size:13px;padding:7px 10px}#assignmentText{max-height:80px;font-size:14px}}
