:root{color:#172033;background:#eef1f5;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}html,body,#root{height:100%;overflow:hidden;overscroll-behavior:none}body{margin:0;min-width:320px;min-height:100%}button,label{font:inherit}button{border:1px solid #ccd3df;border-radius:6px;background:#fff;color:#172033;cursor:pointer;min-height:36px;padding:0 10px}button:disabled{color:#8b95a5;cursor:not-allowed}button.active{border-color:#2563eb;background:#dbeafe;color:#123c9c}.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}.math-loading{visibility:visible!important;display:grid;place-items:center;gap:8px;width:min(280px,calc(100vw - 48px));margin:auto;padding:28px 22px;border:1px solid #fee4a3;border-radius:24px;background:linear-gradient(180deg,#fffaf0,#fff);box-shadow:0 18px 48px #1b253e1f;color:#172033;text-align:center}.math-loading-orbit{position:relative;width:92px;height:92px;border:3px solid #f9c74f;border-radius:999px;background:#fff7dd;animation:math-loading-breathe 1.8s ease-in-out infinite}.math-loading-orbit span{position:absolute;display:grid;place-items:center;width:34px;height:34px;border-radius:999px;background:#fff;color:#163057;font-size:20px;font-weight:900;box-shadow:0 8px 18px #1b253e1f}.math-loading-orbit span:nth-child(1){top:-10px;left:28px}.math-loading-orbit span:nth-child(2){top:24px;right:-13px;color:#f97316}.math-loading-orbit span:nth-child(3){right:6px;bottom:-6px}.math-loading-orbit span:nth-child(4){bottom:-6px;left:6px;color:#22c55e}.math-loading-orbit span:nth-child(5){top:24px;left:-13px;color:#7c3aed}.math-loading p{margin:4px 0 0;color:#f97316;font-size:30px;font-weight:950;line-height:1}.math-loading strong{color:#5f6d7e;font-size:16px;line-height:1.35}@keyframes math-loading-breathe{0%,to{transform:scale(.96) rotate(-4deg)}50%{transform:scale(1.04) rotate(4deg)}}@media(prefers-reduced-motion:reduce){.math-loading-orbit{animation:none}}.app-shell{display:grid;grid-template-columns:1fr;grid-template-rows:auto 1fr 36px;height:100%;overflow:hidden;touch-action:none}.toolbar{position:relative;z-index:20;display:grid;gap:8px;grid-template-rows:34px 34px;grid-column:1;grid-row:1;max-height:92px;border-bottom:1px solid #d9dee8;background:#f8fafc;padding:8px 10px;overflow-x:auto;overflow-y:hidden;touch-action:manipulation}.toolbar-row{display:flex;flex-wrap:nowrap;align-items:center;gap:8px;min-width:max-content;height:34px;overflow:hidden}.toolbar button,.toolbar-file-button{min-width:34px;min-height:34px;padding:0}.toolbar-file-button{display:grid;place-items:center;border:1px solid #ccd3df;border-radius:6px;background:#fff;color:#172033;cursor:pointer}.toolbar-file-button input{position:absolute;inline-size:1px;block-size:1px;opacity:0;pointer-events:none}.toolbar button.danger{color:#b91c1c}.homework-work-mode{grid-template-rows:auto 1fr 36px}.homework-work-mode.homework-full-toolbar{grid-template-rows:auto auto 1fr 36px}.homework-work-mode.homework-full-toolbar .toolbar{grid-row:2}.homework-work-mode.homework-full-toolbar .workspace{grid-row:3}.homework-work-mode.homework-full-toolbar .status-bar{grid-row:4}.homework-work-bar{position:relative;z-index:22;display:flex;grid-column:1;grid-row:1;align-items:center;gap:8px;min-width:0;border-bottom:1px solid #d9dee8;background:#fff;padding:8px 10px;overflow-x:auto;touch-action:manipulation}.homework-work-bar strong{min-width:120px;max-width:28vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.homework-work-file-button{display:grid;place-items:center;min-width:42px;min-height:36px;border:1px solid #ccd3df;border-radius:6px;background:#fff;color:#172033;cursor:pointer;font-weight:650}.homework-work-file-button input{position:absolute;inline-size:1px;block-size:1px;opacity:0;pointer-events:none}.homework-submit-button{border-color:#15803d;background:#15803d;color:#fff;font-weight:800}.homework-markup{position:relative;width:min(520px,100%);aspect-ratio:4 / 3;overflow:hidden;border:1px solid #d9dee8;border-radius:8px;background:#f8fafc}.homework-markup img,.homework-markup svg{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%}.homework-markup img{object-fit:contain}.homework-markup svg{touch-action:none}.homework-markup polyline{fill:none;stroke-linecap:round;stroke-linejoin:round}.homework-feedback-tabs{display:inline-flex;gap:4px;margin-bottom:8px;padding:4px;border:1px solid #d9dee8;border-radius:8px;background:#fff}.homework-feedback-tabs button{min-height:30px;border-color:transparent;background:transparent;font-size:12px;font-weight:800}.homework-feedback-tabs button[aria-pressed=true]{background:#e0f2fe;color:#075985}.homework-feedback-marked,.homework-review-assets article{display:grid;gap:8px}.homework-review-asset-meta{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.homework-source-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.homework-source-actions button{min-height:48px;font-weight:800}.pdf-menu-wrap{position:sticky;left:0;z-index:14;background:#f8fafc}.pdf-menu{position:fixed;top:96px;left:4px;z-index:10;display:grid;gap:8px;width:min(180px,calc(100vw - 20px));max-height:min(560px,calc(100vh - 126px));overflow-y:auto;border:1px solid #ccd3df;border-radius:8px;background:#f8fafc;box-shadow:0 18px 45px #0f172a2e;padding:8px}.lesson-library-header{display:flex;align-items:center;justify-content:space-between;gap:8px}.lesson-library-header h2{margin:0;font-size:13px;line-height:1.2}.lesson-library-header p{margin:1px 0 0;color:#64748b;font-size:11px}.lesson-library-current{display:grid;gap:5px}.lesson-library-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.pdf-menu-action{display:inline-grid;grid-template-columns:auto minmax(0,1fr);gap:4px;place-items:center;justify-content:center;width:100%;min-height:30px;padding:0 6px;font-weight:650;font-size:12px;line-height:1.1;white-space:normal;text-align:center}.pdf-menu-action.primary,.lesson-library-actions>.import-button:first-of-type{grid-column:1 / -1}.pdf-menu-action.primary{border-color:#2563eb;background:#2563eb;color:#fff}.lesson-library .import-button{min-height:30px}.pdf-menu-lessons,.pdf-menu-group{display:grid;gap:6px}.pdf-menu-group h3{margin:1px 0 0;color:#334155;font-size:11px;font-weight:700;text-transform:uppercase}.pdf-menu-lesson-row{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 30px;gap:5px;align-items:stretch}.pdf-menu-lesson{display:grid;grid-template-columns:32px minmax(0,1fr);align-items:center;gap:8px;min-width:0;min-height:48px;padding:5px 6px;text-align:left;background:#fff}.pdf-menu-lesson-row.active .pdf-menu-lesson{border-color:#2563eb;background:#eff6ff}.lesson-thumbnail{display:grid;place-items:center;width:32px;height:36px;border:1px solid #cbd5e1;border-radius:5px;background:linear-gradient(180deg,#fff,#eef2f7);color:#475569;font-size:9px;font-weight:800}.lesson-details{display:grid;gap:2px;min-width:0}.lesson-title,.lesson-details small{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lesson-title{font-weight:700;font-size:14px}.lesson-details small{color:#64748b;font-size:11px}.pdf-menu-more{width:30px;min-width:30px;min-height:48px}.pdf-menu-more-wrap{position:relative}.pdf-menu-row-actions{position:absolute;top:100%;right:0;z-index:3;display:grid;min-width:150px;margin-top:4px;padding:4px;border:1px solid #ccd3df;border-radius:6px;background:#fff;box-shadow:0 10px 24px #0f172a29}.pdf-menu-row-actions button{justify-content:start;width:100%;min-height:32px;padding:0 10px;border:0;background:transparent;text-align:left}.pdf-menu-row-actions button.danger{color:#b91c1c}.button-icon{display:grid;place-items:center;font-size:18px;line-height:1}.instrument-tool-icon,.compass-tool-icon{width:22px;height:22px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round}.instrument-tool-icon{stroke-width:1.8}.compass-tool-icon{stroke-width:2.6}.compass-tool-icon circle:first-child{fill:currentColor}.compass-tool-icon-hole{fill:#fff;stroke:none}.brand{display:grid;gap:3px}.brand span{color:#64748b;font-size:12px;text-transform:uppercase}.brand strong{font-size:20px}.import-button{display:grid;place-items:center;min-height:42px;border:1px solid #1f5fd0;border-radius:6px;background:#2563eb;color:#fff;cursor:pointer}.import-button input{position:absolute;inline-size:1px;block-size:1px;opacity:0;pointer-events:none}.group-field{display:grid;gap:4px;color:#475569;font-size:11px;font-weight:700;text-transform:uppercase}.group-field input,.group-field select{width:100%;min-height:32px;border:1px solid #ccd3df;border-radius:6px;background:#fff;color:#172033;font:inherit;font-size:13px;font-weight:500;padding:0 10px;text-transform:none}.tool-grid,.toolbar-group{display:grid;gap:6px}.tool-grid{grid-template-columns:repeat(14,34px)}.toolbar:not(.kid-toolbar):not(.teaching-floating-toolbar) .toolbar-row-primary>.tool-grid{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:34px}.geometry-menu-wrap{position:relative}.geometry-menu{position:fixed;top:96px;left:50px;z-index:12;display:grid;grid-template-columns:repeat(2,minmax(180px,1fr));gap:6px;width:min(460px,calc(100vw - 62px));max-height:min(430px,calc(100vh - 126px));overflow-y:auto;border:1px solid #ccd3df;border-radius:8px;background:#fff;box-shadow:0 16px 40px #0f172a2e;padding:8px}.geometry-menu button{display:grid;grid-template-columns:28px minmax(0,1fr);align-items:center;justify-items:start;gap:6px;min-height:34px;padding:0 8px;font-size:12px;font-weight:700;text-align:left;white-space:normal}.geometry-menu-icon{display:grid;place-items:center;width:24px;font-size:17px}.tool-settings{display:flex;flex-wrap:nowrap;align-items:center;gap:6px;border-left:1px solid #d9dee8;padding-left:8px}.size-presets,.pen-mode-presets,.shape-presets{display:grid;grid-auto-flow:column;grid-auto-columns:34px;gap:6px}.color-presets{display:grid;grid-auto-flow:column;grid-auto-columns:34px;gap:6px;grid-auto-rows:34px}.size-dot{display:block;margin:auto;border-radius:999px;background:currentColor}.size-dot.xxsmall{width:2px;height:2px}.size-dot.xsmall{width:4px;height:4px}.size-dot.small{width:6px;height:6px}.size-dot.medium{width:11px;height:11px}.size-dot.large{width:16px;height:16px}.size-dot.xlarge{width:21px;height:21px}.color-dot{display:block;width:18px;height:18px;margin:auto;border:1px solid rgba(15,23,42,.18);border-radius:999px}.toolbar-group.compact-row{grid-template-columns:repeat(3,1fr)}.toolbar-group.capture-controls{display:flex;align-items:center;flex-wrap:nowrap}.capture-ready{color:#15803d;font-size:12px;font-weight:600;line-height:1;white-space:nowrap}.toolbar-group.history-controls{grid-auto-flow:column;grid-auto-columns:34px;grid-template-columns:none}.toolbar-group.page-view-controls{display:flex;grid-template-columns:none;align-items:center;gap:6px}.zoom-percent{width:54px;min-width:54px;min-height:34px;padding:0 4px;border:1px solid #ccd3df;border-radius:6px;background:#fff;color:#172033;font:inherit;font-size:12px;font-weight:700;text-align:center}.zoom-percent:disabled{color:#8b95a5}.zoom-percent:focus{outline:2px solid rgba(37,99,235,.35);outline-offset:0}.blank-page-wrap{position:relative}.blank-page-menu{position:fixed;z-index:11;display:grid;grid-template-columns:repeat(2,minmax(96px,1fr));gap:6px;margin-top:40px;border:1px solid #ccd3df;border-radius:8px;background:#fff;box-shadow:0 12px 32px #0f172a29;padding:8px}.blank-page-menu button{min-width:96px;min-height:30px;padding:0 8px;font-size:12px;text-transform:none}.toolbar-group.page-controls{grid-template-columns:34px minmax(52px,auto) 34px;border-left:1px solid #d9dee8;padding-left:8px}.lesson-library{display:grid;gap:8px}.lesson-library h2{margin:0;color:#475569;font-size:13px;font-weight:700;text-transform:uppercase}.lesson-groups,.lesson-group,.lesson-list{display:grid}.lesson-groups{gap:6px;max-height:180px;overflow-y:auto}.lesson-group{gap:6px}.lesson-group h3{margin:0;color:#64748b;font-size:12px;font-weight:700}.lesson-list{gap:6px}.lesson-item{display:grid;justify-items:start;gap:2px;min-height:48px;padding:7px 9px;text-align:left}.lesson-item span,.lesson-item small{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lesson-item small,.empty-library{color:#64748b;font-size:12px}.empty-library{margin:0}.page-count{display:grid;place-items:center;min-height:34px;color:#475569;font-size:12px}.workspace{overscroll-behavior:contain;position:relative;grid-column:1;grid-row:2;overflow:hidden;touch-action:none;background:linear-gradient(90deg,rgba(148,163,184,.15) 1px,transparent 1px),linear-gradient(rgba(148,163,184,.15) 1px,transparent 1px),#e5e9f0;background-size:24px 24px}.workspace,.annotation-layer,.toolbar,.mobile-student-toolbar,.mobile-student-header,.student-write-menu,.app-shell button,.app-shell button *{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.app-shell input,.app-shell textarea,.app-shell [contenteditable=true]{-webkit-touch-callout:default;-webkit-user-select:text;user-select:text}.continuous-pages{position:absolute;top:0;left:0;display:grid;gap:26px;padding:24px;transform-origin:0 0}.continuous-pages .page-stage{position:relative;top:auto;left:auto}.page-stage{position:absolute;top:0;left:0;transform-origin:0 0;box-shadow:0 18px 55px #0f172a38;background:#fff;touch-action:none}.pdf-canvas,.annotation-layer{position:absolute;top:0;right:0;bottom:0;left:0;display:block}.annotation-layer{z-index:2;overflow:visible;touch-action:none}.tool-pan{cursor:grab}.tool-pen,.tool-highlighter,.tool-shape{cursor:crosshair}.tool-eraser{cursor:cell}.tool-laser{cursor:none}.laser-pointer{position:absolute;z-index:8;width:18px;height:18px;border:3px solid rgba(255,255,255,.95);border-radius:50%;background:#ef4444;box-shadow:0 0 18px #ef4444e6;pointer-events:none;transform:translate(-50%,-50%)}.tool-select{cursor:default}.document-library{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;grid-template-rows:auto 1fr;gap:22px;overflow-y:auto;padding:34px}.library-header{display:flex;align-items:end;justify-content:space-between;gap:20px}.library-header h1{margin:0;color:#111827;font-size:34px}.library-header p{max-width:560px;margin:8px 0 0;color:#475569;font-size:16px}.library-actions{display:grid;grid-template-columns:minmax(180px,240px) 150px;align-items:end;gap:10px}.library-group-list{display:grid;align-content:start;gap:24px}.library-group{display:grid;gap:10px}.library-group h2{margin:0;color:#334155;font-size:16px}.library-document-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px}.library-document{display:grid;justify-items:start;gap:5px;min-height:104px;padding:12px;text-align:left}.library-document span{max-width:100%;overflow:hidden;color:#111827;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.library-document small{max-width:100%;overflow:hidden;color:#64748b;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.library-document time,.library-empty{color:#64748b;font-size:12px}.library-empty{border:1px dashed #aab5c5;border-radius:6px;background:#ffffffb8;padding:18px}.selection-box{fill:none;stroke:#0f766e;stroke-dasharray:7 5;stroke-width:2;vector-effect:non-scaling-stroke}.compass-recent-highlight{pointer-events:none;filter:drop-shadow(0 0 2px rgba(34,197,94,.28))}.image-floating-controls{position:absolute;z-index:5;display:grid;grid-template-columns:repeat(4,34px);gap:6px;width:max-content;padding:6px;border:1px solid #ccd3df;border-radius:8px;background:#f8fafcf5;box-shadow:0 8px 24px #0f172a29;pointer-events:auto;touch-action:manipulation;transform-origin:0 0}.image-floating-controls button{display:grid;place-items:center;min-width:34px;min-height:34px;border:1px solid #ccd3df;border-radius:6px;background:#fff;color:#172033;font:inherit;cursor:pointer}.image-floating-controls button:hover{border-color:#2563eb}.image-floating-controls .image-delete-button{grid-column:1 / -1;white-space:nowrap}.image-floating-controls button:focus-visible{outline:2px solid rgba(37,99,235,.36);outline-offset:2px}.geometry-floating-controls{grid-template-columns:repeat(6,34px)}.floating-instrument{position:absolute;z-index:9;transform-origin:50% 50%;pointer-events:auto;touch-action:none;-webkit-user-select:none;user-select:none}.instrument-ruler-svg{display:block;width:100%;height:100%;overflow:visible;filter:drop-shadow(0 10px 26px rgba(15,23,42,.18))}.instrument-ruler-svg rect{fill:#ffffffbd;stroke:#0f172a85;vector-effect:non-scaling-stroke}.ruler-mm-tick{stroke:#0f172a;vector-effect:non-scaling-stroke}.instrument-ruler-svg text{fill:#172033;font-weight:800;dominant-baseline:hanging}.floating-protractor{width:280px;height:164px;transform-origin:140px 136px}.protractor-face{width:280px;height:148px;overflow:visible;border-radius:110px 110px 8px 8px;background:#ffffff38;filter:drop-shadow(0 8px 20px rgba(15,23,42,.12))}.protractor-face path,.protractor-face line,.protractor-face circle{fill:none;stroke:#0f172a6b;stroke-width:1;vector-effect:non-scaling-stroke}.protractor-face circle{fill:#0f172a94}.protractor-arc,.protractor-outer-arc{stroke-width:1.4}.protractor-degree-tick,.protractor-outer-degree-tick{stroke:#0f172a3d;stroke-width:.28}.protractor-ten-degree-tick,.protractor-outer-ten-degree-tick{stroke:#0f172a75;stroke-width:.8}.protractor-degree-label,.protractor-reverse-degree-label{fill:#0f172a94;stroke:none;font-size:9px;font-weight:800;dominant-baseline:middle}.instrument-controls{position:absolute;right:6px;top:6px;display:flex;gap:4px;transform:scale(var(--control-scale, 1));transform-origin:top right}.ruler-controls{left:50%;right:auto;top:-34px;transform:translate(-50%) scale(var(--control-scale, 1));transform-origin:top center;z-index:1}.ruler-controls button{width:auto;min-width:25px;height:24px;padding:0 4px;border-radius:5px;font-size:10px}.protractor-controls{top:-34px;right:0;gap:3px}.instrument-controls button{display:grid;place-items:center;width:28px;height:28px;border:1px solid #ccd3df;border-radius:6px;background:#fffffff0;color:#172033;font:inherit;font-weight:800;cursor:pointer}.teaching-mode{grid-template-rows:1fr 36px}.teaching-mode .workspace{grid-row:1}.teaching-mode .status-bar{grid-row:2}.teaching-toolbar-toggle,.teaching-mode-exit{position:fixed;top:10px;z-index:30;width:36px;min-width:36px;padding:0;background:#ffffffe0}.teaching-toolbar-toggle{right:10px}.teaching-mode-exit{right:52px}.teaching-mode .teaching-floating-toolbar{position:fixed;top:54px;right:10px;z-index:29;display:grid;grid-template-columns:repeat(3,34px);grid-template-rows:none;gap:6px;width:136px;max-width:calc(100vw - 20px);max-height:calc(100vh - 100px);overflow:auto;border:1px solid #d9dee8;border-radius:8px;background:#f8fafcf5;padding:8px;box-shadow:0 16px 36px #0f172a29}.teaching-floating-toolbar .tool-settings,.teaching-floating-toolbar .toolbar-row,.teaching-floating-toolbar .toolbar-group,.teaching-floating-toolbar .tool-grid,.teaching-floating-toolbar .size-presets,.teaching-floating-toolbar .pen-mode-presets,.teaching-floating-toolbar .shape-presets,.teaching-floating-toolbar .color-presets,.teaching-floating-toolbar .pdf-menu-wrap,.teaching-floating-toolbar .geometry-menu-wrap,.teaching-floating-toolbar .blank-page-wrap{display:contents}.teaching-mode .teaching-floating-toolbar .pdf-menu{top:54px;right:154px;left:auto;width:min(180px,calc(100vw - 174px));max-height:calc(100vh - 100px)}.protractor-controls button{width:auto;min-width:25px;height:24px;padding:0 4px;border-radius:5px;font-size:10px}.text-annotation{width:100%;min-height:100%;overflow-wrap:anywhere;white-space:pre-wrap;font-family:inherit;font-weight:600}.text-editor{position:absolute;z-index:4;min-height:36px;border:1px solid #2563eb;border-radius:4px;background:#ffffffe6;box-shadow:0 4px 16px #0f172a24;font:inherit;font-weight:600;line-height:1.35;padding:4px 6px;pointer-events:auto;resize:none;touch-action:manipulation;user-select:text;-webkit-user-select:text;-webkit-touch-callout:default}.text-editor:focus{outline:2px solid rgba(37,99,235,.35);outline-offset:0}.empty-state{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;align-content:center;justify-items:center;padding:24px;text-align:center}.empty-state h1{margin:0;font-size:40px}.empty-state p{max-width:520px;margin:10px 0 0;color:#475569;font-size:17px}.status-bar{position:relative;z-index:20;display:flex;grid-row:3;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #d9dee8;background:#fff;color:#475569;font-size:13px;padding:0 14px;touch-action:manipulation}.account-chip{display:flex;align-items:center;gap:8px;min-width:0;color:#334155}.backup-reminder{display:flex;align-items:center;gap:8px;color:#92400e;font-size:12px}.backup-reminder button{min-height:28px;white-space:nowrap;font-size:12px}@media(max-width:900px){.backup-reminder>span{display:none}}.account-chip span{max-width:42vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-chip button{min-height:28px;padding:0 8px;font-size:12px}.class-drawer{position:fixed;top:100px;right:0;bottom:40px;z-index:30;display:flex;flex-direction:row;align-items:stretch;transform:translate(calc(100% - 36px));transition:transform .22s ease}.class-drawer.open{transform:translate(0)}.class-drawer-tab{align-self:center;width:36px;min-width:36px;min-height:112px;padding:12px 0;border:1px solid #d9dee8;border-right:0;border-radius:10px 0 0 10px;background:#fff;box-shadow:-6px 8px 24px #0f172a1f;color:#123c9c;font-size:12px;font-weight:800;letter-spacing:.12em;writing-mode:vertical-rl;transform:rotate(180deg)}.class-drawer.open .class-drawer-tab{background:#dbeafe}.class-panel{display:grid;gap:10px;width:min(360px,calc(100vw - 44px));max-height:100%;overflow:auto;padding:14px;border:1px solid #d9dee8;border-right:0;border-radius:12px 0 0 12px;background:#fff;box-shadow:-8px 18px 45px #0f172a29}.class-panel-header{display:flex;align-items:center;justify-content:space-between;gap:8px}.student-work-panel{align-content:start;gap:12px}.student-work-panel h3{margin:0;font-size:15px}.student-work-panel button{min-height:44px}.student-work-panel .class-panel-header button{min-width:44px;flex-shrink:0}.student-work-notice{margin:0;padding:10px;background:#eaf6f0;color:#226144;font-size:13px}.student-current-work{display:grid;gap:8px;padding:12px 0;border-bottom:1px solid #d9dee8}.student-current-work strong,.student-work-details strong{overflow-wrap:anywhere;white-space:normal!important}.student-current-work button{justify-self:start}.student-work-panel .class-inbox-list li{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:10px}.student-work-details{display:grid;gap:5px;min-width:0}.student-work-feedback{margin:0;font-size:12px;color:#536477;overflow-wrap:anywhere}.student-work-tab{letter-spacing:0}.class-panel-header h2{margin:0;font-size:18px}.class-panel-copy,.class-room-list,.class-student-list,.class-inbox-list{margin:0}.class-panel-copy{color:#475569;font-size:13px}.class-room-filters{display:flex;flex-wrap:wrap;gap:6px;padding-bottom:2px}.class-room-filters button{min-height:44px;padding:0 12px;border-color:#cbd5e1;border-radius:7px;background:#fff;color:#475569;font-size:13px;font-weight:800}.class-room-filters button[aria-pressed=true]{border-color:#0e7490;background:#e6f6fa;color:#0c5f75;box-shadow:inset 0 0 0 1px #0e7490}.class-room-list,.class-student-list,.class-inbox-list{display:grid;gap:8px;padding:0;list-style:none}.class-room-list{gap:10px}.class-room-group:not([hidden]){display:grid;gap:8px;padding:10px;border:1px solid #e2e8f0;border-radius:8px;background:#f8fafc}.class-room-group-head{display:flex;align-items:start;justify-content:space-between;gap:8px}.class-room-group-head h3{margin:0;font-size:13px}.class-room-group-head p{margin:2px 0 0;color:#64748b;font-size:11px}.class-room-group-head>span{flex:0 0 auto;color:#0e7490;font-size:11px;font-weight:800}.class-student-list>li:not([hidden]),.class-inbox-list li{display:grid;gap:8px;font-size:13px}.class-panel:not(.student-work-panel){align-content:start}.class-online-filter{align-items:center;padding-bottom:0}.class-online-filter button{min-height:34px}.class-online-filter span{color:#475569;font-size:11px}.class-student-row{min-width:0;padding:4px 0;border-top:1px solid #e2e8f0}.class-student-heading{display:grid;grid-template-columns:minmax(0,1fr) repeat(4,auto);gap:4px;align-items:center}.class-student-heading>label{gap:4px}.class-student-heading>label input{margin:0}.class-student-heading strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.class-student-history-empty{color:#64748b;font-size:11px;text-align:center;white-space:nowrap}.class-student-heading .presence-online,.class-student-heading .presence-offline{font-size:10px}.class-student-heading button{display:inline-flex;min-height:32px;align-items:center;justify-content:center;padding:0 4px;font-size:11px;white-space:nowrap}.class-student-heading .class-student-icon{width:32px}.class-student-pin[aria-pressed=true]{border-color:#0e7490;background:#e6f6fa;color:#0c5f75}.class-student-history[aria-expanded=true] svg{transform:rotate(180deg)}.class-student-history-content:not([hidden]){display:grid;min-width:0;gap:8px;padding:8px;border:1px solid #e2e8f0;border-radius:6px;background:#fff}.class-inbox-list li{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center}.class-record-meta{margin:0;color:#64748b;font-size:11px}.class-section-heading{margin:4px 0 0;color:#0f172a;font-size:13px}.class-topic-summary{display:grid;gap:2px;margin:0;padding:7px 8px;border:1px solid #dbe3ef;border-radius:6px;background:#f8fafc;color:#334155;font-size:11px}.class-student-records{display:grid;gap:6px;margin:0;padding:0;list-style:none}.class-student-record{display:grid;gap:6px}.class-student-record-main{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}.class-record-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:4px}.class-record-actions>button:has(svg){display:inline-grid;place-items:center;padding-inline:8px}.class-student-record strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.class-record-summary{margin-top:3px;color:#334155;font-size:11px}.class-student-list label{display:flex;align-items:center;gap:8px;min-width:0}.class-student-list label span,.class-inbox-list li span{overflow:hidden;text-overflow:ellipsis}.class-student-list label span{display:inline-grid;gap:1px;white-space:nowrap}.class-student-list label small{color:#64748b;font-size:10px;font-weight:600}.class-inbox-list li span{display:grid;gap:2px}.class-inbox-list li strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.class-inbox-list li small{color:#64748b;font-size:11px}.presence-online{color:#15803d;font-weight:700}.presence-offline{color:#64748b}.class-panel-actions{display:grid;gap:8px}.monitor-banner{position:relative;z-index:21;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 14px;background:#111827;color:#f8fafc;font-size:13px}.auth-screen{position:relative;display:grid;place-items:center;min-height:100%;overflow-x:hidden;overflow-y:auto;padding:24px;background:#eef1f5}.student-login-screen{isolation:isolate;background:radial-gradient(circle at -5% 28%,rgba(250,223,128,.58) 0 0,rgba(250,223,128,.58) 27%,transparent 27.2%),radial-gradient(circle at 92% 96%,rgba(218,231,242,.72) 0 0,rgba(218,231,242,.72) 23%,transparent 23.2%),linear-gradient(180deg,#fffaf0,#fff8e8);color:#172033}.auth-shell{display:grid;gap:12px;width:min(860px,100%)}.auth-shell-student,.auth-shell-teacher{width:min(460px,100%)}.auth-shell-student{justify-items:center;gap:18px;width:min(560px,100%);padding:76px 0 14px}.student-menu-button{position:fixed;top:22px;left:22px;z-index:3;display:grid;place-items:center;width:58px;height:58px;min-height:58px;padding:0;border:1px solid rgba(236,220,167,.9);border-radius:18px;background:#ffffffe6;box-shadow:0 12px 28px #a6581221}.student-menu-logo{display:block;width:48px;height:48px;object-fit:contain;border-radius:13px}.auth-language-toggle{position:fixed;top:24px;right:24px;z-index:2;display:inline-flex;align-items:center;gap:2px;padding:4px;border:1px solid #d2dae6;border-radius:999px;background:#ffffffdb;box-shadow:0 8px 24px #11203314}.auth-language-toggle button{min-height:34px;border:0;border-radius:999px;background:transparent;color:#667385;font-size:13px;font-weight:800;padding:0 14px}.auth-language-toggle button[aria-pressed=true]{background:#172d4f;color:#fff}.student-login-hero{display:grid;justify-items:center;gap:12px;text-align:center}.auth-card{display:grid;align-content:start;gap:12px;min-width:0;padding:28px 24px;border:1px solid #d9dee8;border-radius:8px;background:#fff;box-shadow:0 18px 45px #0f172a1f}.auth-shell-student .auth-card{width:min(500px,100%);gap:18px;border-color:#ecdca7;border-radius:28px;padding:34px;box-shadow:0 14px #f3df91,0 34px 70px #2b1f0c1f}.auth-options{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:stretch;gap:22px}.auth-kicker{margin:0;color:#f97316;font-size:12px;font-weight:1000;letter-spacing:.08em;text-transform:uppercase}.auth-shell h1{margin:0;font-size:42px;line-height:1.15;color:#172d4f;font-weight:1000;letter-spacing:0}.auth-card h2{margin:0;font-size:18px}.auth-card p{margin:0;color:#475569;font-size:15px;line-height:1.45}.auth-card-title{display:flex;align-items:center;gap:16px}.auth-card-title>span{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:#ffefb8;color:#f97316}.auth-card-title p{color:#f97316;font-size:12px;font-weight:1000;letter-spacing:.12em;text-transform:uppercase}.auth-card-title h2{color:#1f2937;font-size:29px;line-height:1.25;letter-spacing:0}.auth-shell>p{margin:0;color:#475569;font-size:15px;line-height:1.45}.auth-card label{display:grid;gap:6px;color:#334155;font-size:13px;font-weight:700}.auth-card input{width:100%;min-height:54px;border:0;background:transparent;padding:0 4px;font:inherit;color:#172033;outline:none}.auth-card input::placeholder{color:#9aa3af;font-weight:800}.student-input-label>label,.student-pin-row label{color:#2f3a4b;font-weight:900}.student-input-wrap{display:flex;align-items:center;gap:10px;min-height:56px;border:1px solid #d5dce6;border-radius:14px;background:#fbfcff;color:#9aa3af;padding:0 16px}.student-input-wrap:focus-within{border-color:#f59e0b;box-shadow:0 0 0 4px #f59e0b21}.student-pin-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.student-pin-row a,.student-pin-toggle,.student-help strong{color:#173661;font-weight:1000;text-decoration:none}.student-pin-toggle{min-height:36px;flex:0 0 auto;border:0;background:transparent;padding:0;font-size:13px}.auth-error{color:#b91c1c}.auth-student,.auth-google{width:100%;min-height:44px;font-weight:700}.auth-student{border-color:#111827;background:#172d4f;color:#fff;min-height:56px;border-radius:14px;font-size:20px;justify-content:center;box-shadow:0 8px #0d1f39,0 18px 30px #172d4f33}.auth-google{border-color:#2563eb;background:#2563eb;color:#fff}.auth-divider{display:grid;place-items:center;color:#111827;font-size:26px;font-weight:800}.student-privacy-note{display:flex;align-items:center;justify-content:center;gap:8px;color:#6b7280;font-size:13px;font-weight:800}.student-privacy-note svg{color:#173661}.student-help{margin:0;color:#7b8492;font-size:13px;font-weight:800;text-align:center}.teacher-home{height:100%;min-height:100vh;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:28px;background:#f6f7f9;color:#111827}.teacher-home-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 auto 18px;max-width:1160px}.teacher-home-header p{margin:0 0 4px;color:#64748b;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.teacher-home-header h1{margin:0;font-size:28px}.teacher-home-header button{min-height:42px;padding:0 16px;border-color:#111827;background:#111827;color:#fff;font-weight:800}.teacher-view-toggle{display:inline-flex;gap:4px;margin:0 calc((100% - min(1160px,100%))/2) 18px;padding:4px;border:1px solid #cbd5e1;border-radius:8px;background:#fff}.teacher-view-toggle button{min-height:34px;padding:0 14px;border-color:transparent;background:transparent;color:#475569;font-weight:800}.teacher-view-toggle button[aria-pressed=true]{background:#e0f2fe;color:#075985}.teacher-pin-panel{display:grid;gap:14px;max-width:1160px;margin:0 auto 22px;border:1px solid #d9dee8;border-radius:12px;background:#fff;padding:18px;box-shadow:0 12px 32px #0f172a0f}.teacher-pin-panel>div:first-child p{margin:0 0 4px;color:#f97316;font-size:12px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.teacher-pin-panel h2{margin:0;color:#111827;font-size:22px}.teacher-pin-controls{display:grid;grid-template-columns:minmax(220px,1fr) minmax(170px,220px);gap:12px}.teacher-pin-controls label{display:grid;gap:6px;color:#334155;font-size:13px;font-weight:800}.teacher-pin-controls select,.teacher-pin-controls input{min-height:42px;border:1px solid #ccd3df;border-radius:8px;background:#fff;color:#172033;font:inherit;padding:0 10px}.teacher-pin-status{display:flex;flex-wrap:wrap;align-items:center;gap:10px;border-radius:10px;background:#f8fafc;padding:12px}.teacher-pin-status span{border-radius:999px;padding:4px 10px;background:#e2e8f0;color:#334155;font-weight:900}.teacher-pin-status span[data-status=active]{background:#dcfce7;color:#166534}.teacher-pin-status span[data-status=expired]{background:#fee2e2;color:#991b1b}.teacher-pin-status small{color:#64748b;font-weight:700}.teacher-pin-actions{display:flex;flex-wrap:wrap;gap:10px}.teacher-pin-actions button:first-child{border-color:#111827;background:#111827;color:#fff;font-weight:900}.teacher-pin-actions button:nth-child(2){border-color:#facc15;background:#fef3c7;color:#78350f;font-weight:900}.teacher-pin-share{display:grid;gap:10px;border:1px solid #bbf7d0;border-radius:10px;background:#f0fdf4;padding:12px}.teacher-pin-share strong{color:#166534;font-size:20px}.teacher-pin-share button{width:fit-content;border-color:#16a34a;background:#16a34a;color:#fff;font-weight:900}.teacher-pin-share pre{margin:0;overflow-x:auto;border-radius:8px;background:#fff;padding:10px;color:#172033;font:700 13px/1.6 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;white-space:pre-wrap}.teacher-pin-message{margin:0;color:#334155;font-weight:800}.teacher-room-section{max-width:1160px;margin:0 auto 28px}.teacher-room-section h2{margin:0 0 12px;font-size:18px}.teacher-room-grid{display:grid;align-items:start;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px}.teacher-room-card{display:grid;align-content:start;gap:8px;min-width:0;padding:16px;border:1px solid #dde3ec;border-radius:8px;background:#fff}.teacher-room-head{display:flex;align-items:start;justify-content:space-between;gap:12px}.teacher-room-head h3{margin:0;font-size:17px}.teacher-room-head p{margin:3px 0 0;color:#64748b;font-size:13px}.teacher-room-head>span{flex:0 0 auto;border-radius:999px;background:#ecfeff;color:#155e75;padding:4px 8px;font-size:12px;font-weight:800}.teacher-student-list{display:grid;gap:8px;margin:0;padding:0;list-style:none}.teacher-student-list li{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:30px;border-bottom:1px solid #eef2f7}.teacher-student-list li:last-child{border-bottom:0}.teacher-student-list span{font-weight:700}.teacher-student-list small{color:#64748b;font-size:12px}.teacher-worksheet-view{display:grid;gap:8px;color:#475569;font-size:13px;font-weight:700}.teacher-home-fallback{display:flex;grid-template-rows:none;flex-shrink:0}.homework-shell{min-height:100vh;overflow:auto;padding:24px;background:#f6f7f9;color:#111827}.student-desk{height:100dvh;overflow-y:auto;padding:32px 24px;background:#f5f7f8}.desk-header,.desk-section{width:100%;max-width:1000px;margin:0 auto}.desk-header{display:flex;align-items:center;gap:16px;margin-bottom:32px}.desk-header img{flex:0 0 64px;object-fit:contain;border-radius:8px}.desk-header h1{margin:4px 0 0;font-size:28px}.desk-header p{margin:0;color:#536474;font-size:14px}.desk-header>div{flex:1;min-width:0;overflow-wrap:anywhere}.student-desk button{min-height:48px;display:inline-flex;align-items:center;justify-content:center;gap:8px}.student-desk .desk-enter{background:#176b60;color:#fff;border-color:#176b60;font-weight:700;padding:0 20px}.desk-section{margin-bottom:32px}.desk-section>h2{font-size:20px;margin:0 0 12px}.student-desk .math-loading{border:0;box-shadow:none;background:transparent;padding:12px}.desk-empty{color:#5c6874;margin:0;padding:16px 0}.desk-work-list{display:grid;gap:12px}.desk-work{display:flex;align-items:center;gap:16px;padding:18px;border:1px solid #dbe2e7;border-radius:8px;background:#fff}.desk-file-icon{color:#38749a;flex-shrink:0}.desk-work-info{flex:1;min-width:0}.desk-work h3{font-size:17px;margin:0 0 8px;overflow-wrap:anywhere}.desk-work p{margin:4px 0 0;font-size:13px;color:#596574;display:flex;align-items:center;flex-wrap:wrap;gap:10px;overflow-wrap:anywhere}.desk-status{color:#356756;background:#edf5ef;padding:2px 8px;border-radius:4px}.desk-status-new{color:#8b5006;background:#fff1d5}.desk-work>button{flex-shrink:0}.student-desk .homework-room-list{max-width:none}@media(max-width:600px){.student-desk{padding:20px 16px}.desk-header{flex-wrap:wrap;gap:12px;margin-bottom:24px}.desk-header h1{font-size:24px}.student-desk .desk-enter{width:100%}.desk-work{padding:12px;gap:10px}.desk-file-icon{display:none}.desk-work h3{font-size:16px}}.homework-header{display:flex;align-items:center;justify-content:space-between;gap:12px;max-width:1160px;margin:0 auto 16px}.homework-header h1,.homework-header p{margin:0}.homework-header p{color:#15803d;font-size:13px;font-weight:800}.homework-header button:last-child{border-color:#111827;background:#111827;color:#fff;font-weight:800}.homework-toolbar{display:flex;flex-wrap:wrap;gap:8px;max-width:1160px;margin:0 auto 16px}.homework-toolbar label{display:grid;gap:4px;color:#475569;font-size:12px;font-weight:800}.homework-toolbar input,.homework-toolbar select,.homework-dialog input,.homework-dialog textarea,.homework-dialog select,.homework-review-pane textarea{min-height:36px;border:1px solid #ccd3df;border-radius:6px;background:#fff;color:#111827;font:inherit;padding:0 10px}.homework-toolbar input{min-width:220px}.homework-segments{display:inline-flex;gap:4px;align-self:end;padding:4px;border:1px solid #cbd5e1;border-radius:8px;background:#fff}.homework-segments button{min-height:30px;border-color:transparent;background:transparent;font-weight:800}.homework-segments button[aria-pressed=true]{background:#e0f2fe;color:#075985}.homework-room-list{display:grid;gap:12px;max-width:1160px;margin:0 auto}.homework-card{border:1px solid #dde3ec;border-radius:8px;background:#fff;padding:14px}.homework-status{display:inline-flex;align-items:center;min-height:24px;border-radius:999px;padding:0 8px;background:#eef2ff;color:#3730a3;font-size:12px;font-weight:800}.homework-empty{max-width:1160px;margin:0 auto;border:1px dashed #cbd5e1;border-radius:8px;background:#fff;padding:28px;color:#64748b;font-weight:800;text-align:center}.report-page{min-height:100vh;overflow:auto;padding:28px;background:#f5f7fb;color:#111827}.report-header{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;max-width:1160px;margin:0 auto 18px}.report-header p,.report-header h1{margin:0}.report-header p{color:#047857;font-size:13px;font-weight:900;text-transform:uppercase}.report-header h1{font-size:34px;line-height:1.1}.report-header a,.report-summary a{color:inherit;font-weight:900}.report-header>a{min-height:38px;border:1px solid #111827;border-radius:8px;background:#111827;color:#fff;padding:9px 14px;text-decoration:none}.report-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-width:1160px;margin:0 auto 14px}.report-summary>div{display:grid;gap:4px;border:1px solid #d7dee8;border-radius:8px;background:#fff;padding:14px}.report-summary strong{font-size:13px}.report-summary span,.report-summary a{color:#475569;font-size:13px}.report-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-width:1160px;margin:0 auto}.report-card{border:1px solid #d7dee8;border-radius:8px;background:#fff;padding:16px}.report-card header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.report-card h2{margin:0;font-size:18px}.report-card header span{flex:0 0 auto;border-radius:999px;padding:5px 9px;background:#e2e8f0;color:#334155;font-size:12px;font-weight:900}.report-card-done header span,.report-card-live header span{background:#dcfce7;color:#166534}.report-card-waiting header span{background:#fef3c7;color:#92400e}.report-card ul{display:grid;gap:7px;margin:0;padding-left:18px;color:#334155;font-size:14px;line-height:1.45}@media(max-width:760px){.report-page{padding:18px}.report-header,.report-summary,.report-grid{grid-template-columns:1fr}.report-header{display:grid;align-items:start}.report-header h1{font-size:28px}}.homework-room-group{display:grid;gap:12px}.homework-room-group>header,.homework-assignment-row,.homework-dialog header,.homework-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:12px}.homework-room-group h2,.homework-room-group p,.homework-assignment-row h2,.homework-assignment-row h3,.homework-assignment-row p,.homework-dialog h2,.homework-submit-panel h2,.homework-submit-panel p{margin:0}.homework-room-group p,.homework-assignment-row p,.homework-assignment-row small,.homework-row-actions small,.homework-submit-panel p{color:#64748b}.homework-room-group>header>span{color:#475569;font-size:12px;font-weight:800}.homework-row-list{display:grid;gap:8px}.homework-assignment-row{align-items:stretch}.homework-assignment-row>div:first-child{display:grid;align-content:start;gap:5px;min-width:0}.homework-row-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;min-width:220px}.homework-late{display:inline-flex;align-items:center;min-height:24px;border-radius:999px;padding:0 8px;background:#fee2e2;color:#991b1b;font-size:12px;font-weight:800}.homework-submit-panel{display:grid;gap:12px;max-width:1160px;margin:16px auto 0}.homework-submit-panel header{display:flex;align-items:start;justify-content:space-between;gap:12px}.homework-submit-panel label{display:grid;gap:6px;color:#334155;font-size:13px;font-weight:800}.homework-submit-panel select{width:min(320px,100%);min-height:36px;border:1px solid #ccd3df;border-radius:6px;background:#fff;color:#111827;font:inherit;padding:0 10px}.homework-submit-panel>button{justify-self:start}.homework-feedback{display:grid;gap:4px;border-left:3px solid #0f766e;padding-left:10px}.homework-feedback p{margin:0;color:#0f766e;font-weight:800}.homework-review-pane{display:grid;gap:12px;max-width:760px;margin:0 auto}.homework-review-pane header,.homework-review-pane footer{display:flex;align-items:start;justify-content:space-between;gap:12px}.homework-review-pane h2,.homework-review-pane p{margin:0}.homework-review-pane p{color:#64748b}.homework-review-pane label{display:grid;gap:6px;color:#334155;font-size:13px;font-weight:800}.homework-review-pane textarea{min-height:140px;padding:8px 10px;resize:vertical}.homework-review-actions{display:flex;flex-wrap:wrap;gap:8px}.homework-review-actions button[aria-pressed=true]{border-color:#0f766e;background:#ccfbf1;color:#134e4a;font-weight:800}.homework-dialog-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:40;display:grid;place-items:center;overflow:auto;padding:20px;background:#0f172a73}.homework-dialog{display:grid;gap:12px;width:min(620px,100%)}.homework-dialog-wide{width:min(980px,100%);max-height:calc(100dvh - 40px);overflow:auto}.homework-source-step,.homework-page-picker{display:grid;gap:10px}.homework-source-summary{display:flex;justify-content:space-between;gap:12px;margin:0;color:#166534;font-weight:800}.homework-error{margin:0;color:#b91c1c;font-weight:800}.homework-page-picker>header{display:flex;align-items:center;justify-content:space-between;gap:12px}.homework-page-picker h3{margin:0}.homework-page-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:10px}.homework-page-thumbnail{position:relative;display:grid;gap:6px;min-height:184px;padding:8px;overflow:hidden;border:2px solid #cbd5e1;border-radius:8px;background:#fff;color:#172033}.homework-page-thumbnail[aria-pressed=true]{border-color:#dc2626;background:#fff7f7}.homework-thumbnail-canvas{display:grid;place-items:center;min-height:140px;overflow:hidden;background:#f8fafc}.homework-thumbnail-canvas canvas{display:block;max-width:100%;height:auto}.homework-thumbnail-stamp{position:absolute;top:12px;left:50%;max-width:calc(100% - 16px);transform:translate(-50%);color:#dc2626;font-size:10px;font-weight:900;white-space:nowrap}.homework-page-stamp{position:absolute;z-index:4;top:12px;left:50%;max-width:calc(100% - 24px);transform:translate(-50%);pointer-events:none;color:#dc2626;font-size:16px;font-weight:900;letter-spacing:0;white-space:nowrap}.homework-work-attachments{position:fixed;z-index:35;top:84px;right:16px;width:min(420px,calc(100vw - 32px));max-height:calc(100dvh - 120px);overflow:auto;padding:14px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;box-shadow:0 12px 30px #0f172a2e}.homework-attachment-picker,.homework-camera-preview,.homework-attachment-list{display:grid;gap:10px}.homework-attachment-actions,.homework-camera-preview>div,.homework-attachment-list article>div{display:flex;flex-wrap:wrap;gap:8px}.homework-attachment-actions label{min-height:48px;padding:12px;border:1px solid #cbd5e1;border-radius:8px;cursor:pointer}.homework-attachment-actions input{position:absolute;width:1px;height:1px;opacity:0}.homework-camera-preview,.homework-attachment-list article{padding:10px;border:1px solid #e2e8f0;border-radius:8px}.homework-camera-preview img,.homework-attachment-list img{width:100%;max-height:180px;object-fit:contain}.homework-camera-preview button,.homework-attachment-list button{min-height:48px}.homework-student-picker>button,.homework-dialog footer button{min-height:48px}.homework-dialog label,.homework-student-picker{display:grid;gap:6px;color:#334155;font-size:13px;font-weight:800}.homework-dialog textarea{min-height:86px;padding:8px 10px;resize:vertical}.homework-student-picker{margin:0;border:1px solid #dde3ec;border-radius:8px;padding:10px}.homework-student-picker legend{padding:0 4px}.homework-student-picker label{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;min-height:30px;font-weight:700}.homework-student-picker small{color:#64748b}@media(max-width:760px){.app-shell{grid-template-columns:1fr;grid-template-rows:auto 1fr 36px}.app-shell.teaching-mode{grid-template-rows:1fr 36px}.toolbar{max-width:100vw;padding:6px;scrollbar-width:thin}.toolbar-row{gap:6px}.toolbar button,.toolbar-file-button{min-width:40px;min-height:40px}.workspace{grid-column:1}.auth-screen{align-items:start;padding:16px}.auth-shell-student{gap:14px;padding-top:64px}.student-menu-button{top:14px;left:14px;width:52px;height:52px;min-height:52px;border-radius:16px}.student-menu-logo{width:43px;height:43px;border-radius:12px}.auth-language-toggle{top:16px;right:16px}.auth-shell h1{font-size:34px}.auth-shell-student .auth-card{border-radius:24px;padding:26px 22px}.auth-card-title h2{font-size:25px}.auth-options{grid-template-columns:1fr;gap:14px}.auth-divider{min-height:28px;font-size:22px}.teacher-home{padding:18px}.teacher-home-header{align-items:stretch;flex-direction:column}.teacher-view-toggle{display:flex;margin:0 0 18px}.teacher-view-toggle button{flex:1}.teacher-pin-controls{grid-template-columns:1fr}.teacher-pin-actions button,.teacher-pin-share button{width:100%}.document-library{padding:20px}.library-header{align-items:stretch;flex-direction:column}.library-header h1{font-size:28px}.library-actions{grid-template-columns:1fr}}.login-keyboard-toggles{display:flex;justify-content:flex-end;gap:6px}.login-keyboard-tools button{display:inline-flex;align-items:center;justify-content:center;min-width:0;min-height:40px;padding:4px;border:1px solid #ccd6e0;border-radius:6px;color:#233e59;background:#fff;cursor:pointer}.login-keyboard-tools button:hover,.login-keyboard-tools button[aria-expanded=true]{background:#e4f3fb;border-color:#4382a5}.login-keyboard-tools button:focus-visible{outline:2px solid #28789b;outline-offset:2px}.login-keyboard-toggles button,.login-keyboard-heading button{width:40px}.login-onscreen-keyboard{margin-top:8px;padding:8px;border:1px solid #ccd6e0;border-radius:8px;background:#f3f7fa}.login-keyboard-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}.login-keyboard-row{display:flex;gap:3px;margin-top:4px}.login-keyboard-row button{flex:1;font-size:15px;min-height:44px}.watch-page{height:100dvh;display:flex;flex-direction:column;background:#eef2f4;color:#21343e}.watch-header,.watch-document-toolbar{display:flex;align-items:center;gap:12px;padding:12px 16px;background:#fff;border-bottom:1px solid #d9dee8;flex-wrap:wrap}.watch-header h1{margin:0;font-size:20px}.watch-header>div{flex:1;min-width:0;overflow-wrap:anywhere}.watch-document-toolbar strong{flex:1;min-width:100px;overflow-wrap:anywhere;font-size:14px}.watch-page button{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:6px}.watch-viewport{flex:1;min-height:0;overflow:auto;padding:12px}.watch-paper{position:relative;margin:0 auto;background:#fff}.watch-paper>canvas,.watch-paper>svg{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%}.watch-paper>svg{pointer-events:none}.watch-message{margin:0;padding:24px}@media print{@page{size:A4 landscape;margin:0}.toolbar,.status-bar,.class-drawer,.floating-instrument,.image-floating-controls,.geometry-floating-controls,.teaching-toolbar-toggle,.teaching-mode-exit{display:none!important}.app-shell,.workspace{display:block;width:100%;height:auto;overflow:visible;background:#fff}.page-stage{position:relative;box-shadow:none;transform:none!important}.continuous-page-stage:not(.current-page-stage){display:none!important}}.homework-composite-review{display:grid;gap:16px;margin:20px 0}.homework-composite-page{overflow:hidden;border:1px solid #cbd5e1;border-radius:8px;background:#fff}.homework-composite-page>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-bottom:1px solid #e2e8f0}.homework-composite-page iframe,.homework-composite-page img{display:block;width:100%;min-height:520px;border:0;object-fit:contain}.homework-composite-page>small{display:block;padding:8px 12px}.homework-page-stamp{color:#c81e1e;font-weight:800}.homework-round-history{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.homework-round-history button[aria-pressed=true]{border-color:#17345c;background:#e8f1ff}.homework-delete-round{margin-top:24px;padding-top:16px;border-top:1px solid #e2e8f0}.homework-delete-round button{color:#b42318}.watch-overview{height:100dvh;overflow-y:auto;padding:20px;background:#f4f6f8;color:#18212d}.watch-overview .watch-header h1{font-size:24px}.watch-overview .class-room-filters{margin:16px 0}.watch-overview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.watch-overview-zoom{display:flex;gap:8px;margin:12px 0}.watch-overview-zoom button[aria-pressed=true]{background:#e8f1ff;border-color:#17345c;color:#17345c;font-weight:700}.watch-overview.watch-overview-enlarged .watch-overview-grid{grid-template-columns:minmax(0,1fr)}.watch-overview-enlarged .watch-student .watch-viewport{height:544px}.watch-tile{min-height:120px;margin:0;padding:16px;display:flex;flex-direction:column;gap:8px}.watch-tile p{margin:0}.watch-overview-enlarged .watch-tile{min-height:220px}.watch-overview-enlarged .watch-tile strong{font-size:20px}.watch-student{min-width:0;border:1px solid #ccd5dd;border-radius:8px;overflow:hidden;background:#fff}.watch-student>header{display:flex;align-items:center;gap:8px;padding:12px;border-bottom:1px solid #e2e7ec}.watch-student>header>div{flex:1;min-width:0}.watch-student small{display:block;font-size:12px;overflow-wrap:anywhere}.watch-student>header>span{font-size:12px}.watch-overview button{min-width:44px;min-height:44px}.watch-student .watch-document-toolbar{padding:8px 12px;font-size:12px}.watch-student .watch-document-toolbar strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.watch-student .watch-viewport{height:280px;padding:8px;overflow:auto}.watch-student .watch-paper{margin:0 auto;pointer-events:none}.watch-student .watch-message{min-height:280px;margin:0;padding:24px}.watch-overview-pagination{display:flex;gap:16px;justify-content:center;align-items:center;padding:20px}.app-shell.mobile-student-mode{height:100dvh;grid-template-rows:auto minmax(0,1fr) auto}.mobile-student-header{grid-row:1;display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:2px 8px;padding:8px 12px;background:#fff;border-bottom:1px solid #d9dee8;min-width:0}.mobile-student-header button{grid-row:1;min-height:48px;min-width:48px;display:grid;place-items:center}.mobile-student-header strong{grid-column:2;font-size:15px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.mobile-student-header small{grid-column:2;font-size:11px;color:#50616c;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.mobile-student-header>strong:first-child{grid-column:1 / span 2}.mobile-student-header>strong:first-child+small{grid-column:1 / span 2}.mobile-student-header .mobile-work-menu{grid-column:3}.mobile-student-header .mobile-fullscreen-button{grid-column:4}.mobile-fullscreen-error{grid-column:1 / -1;font-size:12px;color:#9a2525}.mobile-student-mode .class-drawer-tab{display:none}.mobile-student-mode .class-drawer:not(.open){transform:translate(100%);visibility:hidden;pointer-events:none}.mobile-student-mode .workspace{grid-row:2;min-height:0}.mobile-student-mode>.status-bar{display:none}.mobile-student-toolbar{grid-row:3;padding:6px 8px max(6px,env(safe-area-inset-bottom));background:#fff;border-top:1px solid #d9dee8;z-index:25;min-width:0}.mobile-tool-row,.mobile-page-row,.mobile-zoom-row{display:flex;align-items:center;justify-content:center;gap:6px}.mobile-page-row{display:inline-flex;vertical-align:middle}.mobile-zoom-row{display:inline-flex;margin-left:6px;vertical-align:middle}.mobile-student-toolbar{text-align:center}.mobile-tool-row{margin-bottom:4px}.mobile-student-toolbar button{display:flex;align-items:center;justify-content:center;gap:4px;min-height:48px;min-width:48px;padding:4px;border-radius:6px}.mobile-student-toolbar button span{font-size:12px}.mobile-student-toolbar button[aria-pressed=true]{background:#e2f4ec;border-color:#19815a;color:#11583e}.mobile-page-row>span{width:36px;text-align:center;font-size:12px;font-variant-numeric:tabular-nums}.mobile-student-mode>.toolbar{position:fixed;left:8px;right:8px;bottom:calc(120px + env(safe-area-inset-bottom));width:auto;max-height:128px;grid-template-rows:48px 48px;padding:8px;border:1px solid #ccd3df;border-radius:8px;box-shadow:0 4px 20px #0002;z-index:30}.mobile-student-mode>.toolbar .toolbar-row{height:48px}.mobile-student-mode>.toolbar button,.mobile-student-mode>.toolbar .toolbar-file-button{min-height:48px;min-width:48px}.app-shell.mobile-student-mode.homework-work-mode{grid-template-rows:auto auto minmax(0,1fr) auto}.mobile-student-mode .homework-work-bar{grid-row:2;padding:6px 12px;gap:8px;flex-wrap:wrap}.mobile-student-mode .homework-work-bar>strong{display:none}.mobile-student-mode .homework-work-bar button{min-height:48px}.mobile-student-mode.homework-work-mode .workspace{grid-row:3}.mobile-student-mode.homework-work-mode .mobile-student-toolbar{grid-row:4}.mobile-student-mode .homework-work-attachments{max-width:calc(100vw - 24px);max-height:60dvh;overflow-y:auto}.tablet-student-mode .mobile-student-header{grid-template-columns:auto minmax(0,1fr) auto auto;gap:6px;padding:2px 12px}.tablet-student-mode .mobile-student-header button,.tablet-student-mode .mobile-student-header strong{grid-row:1}.tablet-student-mode .mobile-student-header small{grid-column:3;grid-row:1}.tablet-student-mode .mobile-student-header .mobile-work-menu{grid-column:3}.tablet-student-mode .mobile-student-header .mobile-fullscreen-button{grid-column:4}.tablet-student-mode .mobile-student-header>strong:first-child{grid-column:1 / span 2}.tablet-student-mode .mobile-student-header>strong:first-child+small{grid-column:3}.tablet-student-mode .mobile-student-toolbar{position:relative;display:flex;justify-content:center;align-items:center;gap:12px;padding-top:4px;padding-bottom:max(4px,env(safe-area-inset-bottom))}.tablet-student-mode .mobile-tool-row{margin-bottom:0}.tablet-student-mode .mobile-zoom-row{display:flex;margin:0}.tablet-student-mode .mobile-zoom-row button:not(:last-child){display:none}.tablet-student-mode .mobile-student-toolbar[data-more-open=true] .mobile-zoom-row{position:absolute;right:12px;bottom:calc(190px + env(safe-area-inset-bottom));padding:6px;background:#fff;border:1px solid #ccd3df;border-radius:6px;box-shadow:0 4px 20px #0002}.tablet-student-mode .mobile-student-toolbar[data-more-open=true] .mobile-zoom-row button{display:flex}.tablet-student-mode>.toolbar{bottom:calc(64px + env(safe-area-inset-bottom))}.student-write-trigger{position:relative}.write-selected-color{position:absolute;right:4px;bottom:4px;width:8px;height:8px;border-radius:50%;border:1px solid #50616c}.student-write-menu{position:fixed;z-index:40;left:50%;transform:translate(-50%);bottom:calc(var(--student-toolbar-height, 112px) + 8px);width:min(360px,calc(100vw - 16px));padding:8px;background:#fff;border:1px solid #ccd3df;border-radius:8px;box-shadow:0 4px 20px #0002;max-height:calc(100dvh - var(--student-toolbar-height, 112px) - 80px);overflow-y:auto}.student-write-row{display:flex;align-items:center;justify-content:center;gap:4px;min-height:48px}.student-write-row+.student-write-row{margin-top:6px;padding-top:6px;border-top:1px solid #e2e7ee}.student-write-row button{display:grid;place-items:center;width:48px;min-width:48px;height:48px;padding:0;border-radius:6px}.student-write-row button[aria-pressed=true]{background:#e2f4ec;border-color:#19815a;color:#11583e}.student-write-row input[type=range]{flex:1;min-width:60px;width:100px;max-width:220px;min-height:48px;margin:0;accent-color:#19815a}.student-write-row>select{width:80px;min-width:60px;height:48px;padding:2px;font-size:12px}.write-line-preview{width:26px;border-top:3px solid currentColor}.write-line-preview.dashed{border-top-style:dashed}.student-write-colors{gap:0}.write-color-swatch{width:28px;height:28px;border:1px solid #83909b;border-radius:50%}.write-more-colors{position:relative;display:grid;place-items:center;width:48px;height:48px;flex:0 0 48px;border:1px solid #ccd3df;border-radius:6px}.write-more-colors select{position:absolute;top:-1px;right:-1px;bottom:-1px;left:-1px;width:calc(100% + 2px);height:calc(100% + 2px);opacity:0;cursor:pointer}.write-more-colors:focus-within{outline:2px solid #19815a}@media(orientation:landscape)and (max-height:600px){.mobile-student-header{grid-template-columns:auto minmax(0,1fr) auto auto;gap:6px;padding:2px 8px}.mobile-student-header button,.mobile-student-header strong{grid-row:1}.mobile-student-header small{grid-column:3;grid-row:1}.mobile-student-header .mobile-work-menu{grid-column:3}.mobile-student-header .mobile-fullscreen-button{grid-column:4}.mobile-student-header>strong:first-child{grid-column:1 / span 2}.mobile-student-header>strong:first-child+small{grid-column:3}.mobile-student-toolbar{position:relative;display:flex;justify-content:center;align-items:center;gap:12px;padding-top:2px;padding-bottom:max(2px,env(safe-area-inset-bottom))}.mobile-tool-row{margin-bottom:0}.mobile-tool-row button span,.mobile-zoom-row{display:none}.mobile-student-toolbar[data-more-open=true] .mobile-zoom-row{display:flex;position:absolute;right:8px;bottom:calc(190px + env(safe-area-inset-bottom));background:#fff;padding:6px;border:1px solid #ccd3df;border-radius:6px;box-shadow:0 4px 20px #0002}.mobile-student-mode>.toolbar{bottom:calc(60px + env(safe-area-inset-bottom))}}@media(max-width:1000px){.watch-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.watch-overview{padding:12px}.watch-overview-grid{grid-template-columns:minmax(0,1fr)}.watch-overview .watch-header h1{font-size:20px}}@media(max-width:600px){.homework-composite-page iframe,.homework-composite-page img{min-height:360px}}.student-login-screen .auth-card label{font-size:18px;font-weight:700;color:#49351f}.student-login-screen .student-pin-row a,.student-login-screen .student-pin-toggle{font-size:17px;min-height:48px;display:inline-flex;align-items:center;padding:0 8px;color:#755018}.student-login-screen .auth-card-title p{font-size:17px;color:#61481f}.student-desk{background:radial-gradient(ellipse at top left,#ffedbb,transparent 65%),#fffaf0;color:#49351f}.student-desk .desk-header{background:#fff4d7;border:1px solid #f0d79e;border-radius:24px;padding:24px;align-items:center}.student-desk .desk-header img{width:144px;height:144px;flex-basis:144px;border-radius:24px}.student-desk .desk-header h1{font-size:clamp(28px,4vw,36px);line-height:1.4}.student-desk .desk-header p{font-size:18px;color:#634b2e}.student-desk .desk-welcome{margin:8px 0 18px}.desk-actions{display:flex;flex-wrap:wrap;gap:12px}.student-desk .desk-enter,.student-desk .desk-game{min-height:60px;min-width:190px;width:auto;padding:12px 22px;border-radius:16px;font-size:22px;font-weight:800;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:10px}.student-desk .desk-enter{background:#ffc84a;color:#49300e;border:2px solid #a76a00;box-shadow:0 4px #b27a1b}.student-desk .desk-game{background:#fff;color:#77441c;border:2px solid #c78d53}.student-desk .desk-section{background:#fffefb;padding:24px;border:1px solid #eddec5;border-radius:20px}.student-desk .desk-section>h2{font-size:24px;color:#49351f}.student-desk .desk-empty{border-radius:16px;background:#fff7e6;padding:20px;color:#634b2e;font-size:18px;line-height:1.7}.student-desk .desk-empty p{margin:8px 0 0}.student-desk .desk-work h3{font-size:20px}.student-desk .desk-work p{font-size:16px;color:#4b5563}.student-desk button:focus-visible,.desk-actions a:focus-visible{outline:3px solid #875912;outline-offset:4px}.kid-toolbar.toolbar{grid-template-rows:auto auto;height:auto;min-height:148px;max-height:38dvh;background:#fffbef;overflow:visible}.kid-toolbar .toolbar-row{height:auto;min-height:64px;min-width:0;width:100%;overflow-x:auto;align-items:center}.kid-toolbar button,.kid-toolbar .toolbar-file-button{min-height:56px;min-width:56px;padding:6px 8px;flex-shrink:0}.kid-toolbar button:has(.kid-tool-label){display:flex;flex-direction:column;justify-content:center;gap:2px}.kid-tool-label{font-size:13px;line-height:1.4;font-weight:700;white-space:nowrap}.kid-toolbar .color-dot{width:28px;height:28px}.kid-toolbar .size-dot{transform:scale(1.35)}.kid-toolbar .size-presets button{display:flex;flex-direction:column;gap:6px;font-size:12px}.kid-toolbar .zoom-percent{min-height:48px}.kid-toolbar .kid-more{font-size:15px;font-weight:700;white-space:nowrap}.kid-toolbar .kid-signout{margin:20px 0;background:#fff;color:#654e39}.kid-toolbar .pdf-menu{max-width:calc(100vw - 24px);max-height:65dvh;overflow-y:auto}.kid-toolbar .pdf-menu button{flex-direction:row}.kid-student-mode .student-work-tab{writing-mode:horizontal-tb;transform:none;width:112px;min-width:112px;min-height:56px;align-self:flex-start;padding:12px 8px;font-size:16px;letter-spacing:0;line-height:1.6;overflow-wrap:normal}.kid-student-mode .class-drawer:not(.open){transform:translate(calc(100% - 112px))}.kid-student-mode .status-bar{font-size:14px;color:#49351f}.mobile-student-mode>.kid-toolbar{min-height:148px;max-height:45dvh;bottom:calc(var(--student-toolbar-height, 120px) + 8px)}.mobile-student-mode>.kid-toolbar .toolbar-row{height:auto;min-height:64px}@media(max-width:600px){.student-desk .desk-header{padding:20px 16px;gap:16px}.student-desk .desk-header img{width:96px;height:96px;flex-basis:96px}.student-desk .desk-header>div{flex-basis:100%}.desk-actions{display:grid;grid-template-columns:1fr}.student-desk .desk-section{padding:18px}}.kid-toolbar .tool-grid,.kid-toolbar .toolbar-group{display:flex;align-items:center;flex-shrink:0}.kid-toolbar .tool-settings,.kid-toolbar .color-presets{flex-shrink:0}.kid-toolbar .pdf-menu-wrap>button{display:flex;flex-direction:column;align-items:center}.kid-student-mode .class-panel{width:min(360px,calc(100vw - 112px))}.mobile-student-mode .class-panel{width:min(360px,calc(100vw - 24px))}.mobile-student-mode .class-drawer:not(.open){transform:translate(100%)}.mobile-tool-row{gap:2px}.mobile-tool-row button{flex-direction:column;width:48px;padding:2px;gap:1px}.mobile-tool-row button span{font-size:12px;white-space:nowrap}.student-write-row button:has(svg+span){display:flex;flex-direction:column;justify-content:center;gap:1px}.student-write-row button>span:not(.write-color-swatch):not(.write-line-preview){font-size:11px}.kid-student-mode .compass-settings button[aria-label=ล้างรอยวงเวียน]{font-size:12px;font-weight:700;white-space:nowrap}.student-desk-return{position:static;align-self:flex-start;flex-shrink:0;min-height:48px;padding:8px 16px;font-size:16px}.kid-tool-label{font-size:15px}.kid-toolbar .size-presets{display:flex;gap:8px}.kid-toolbar .size-presets button{min-width:80px;flex-shrink:0;font-size:15px}.kid-toolbar .size-dot{flex-shrink:0;margin:4px auto}.kid-toolbar .lesson-title,.kid-toolbar .lesson-details small{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;font-size:16px;line-height:1.5}.kid-toolbar .pdf-menu-lesson{grid-template-columns:64px minmax(0,1fr)}.kid-toolbar .lesson-thumbnail{width:60px;font-size:14px}.student-confirm-dialog{position:fixed;top:0;right:0;bottom:0;left:0;margin:auto;width:min(420px,calc(100vw - 32px));box-sizing:border-box;border:2px solid #d9b96d;border-radius:20px;padding:24px;color:#49351f;background:#fffbef;font-size:18px;z-index:1000}.student-confirm-dialog::backdrop{background:#0006}.student-confirm-dialog>div{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:12px}.student-confirm-dialog button{min-height:48px;padding:8px 20px;font:inherit;border-radius:12px;cursor:pointer}.mobile-student-toolbar button span,.student-write-row button>span:not(.write-color-swatch):not(.write-line-preview){font-size:14px;line-height:1.3;white-space:normal}.kid-toolbar.toolbar{max-height:none}.kid-toolbar .toolbar-row{flex-wrap:wrap;overflow:visible}.kid-toolbar .tool-grid{flex-wrap:wrap;gap:8px;min-width:0}.kid-toolbar .tool-settings{flex-wrap:wrap;min-width:0;flex-shrink:1}.kid-toolbar .pen-mode-presets,.kid-toolbar .shape-presets,.kid-toolbar .color-presets{display:flex;flex-wrap:wrap;gap:8px}.kid-tool-label,.kid-toolbar .size-presets button>span:not(.size-dot){font-size:17px;line-height:1.4;font-weight:700}.kid-toolbar .pdf-menu{width:min(440px,calc(100vw - 24px));max-height:calc(100dvh - 110px)}.kid-toolbar .pdf-menu-lesson-row{grid-template-columns:minmax(0,1fr) 56px}.kid-toolbar .pdf-menu .lesson-library-actions{grid-template-columns:minmax(0,1fr)}.kid-toolbar .pdf-menu button,.kid-toolbar .pdf-menu label{font-size:17px;white-space:normal;overflow-wrap:break-word}.kid-toolbar .pdf-menu .lesson-title,.kid-toolbar .pdf-menu .lesson-details small{overflow-wrap:break-word}.student-login-screen .student-pin-row a,.student-login-screen .student-pin-toggle{font-size:19px}.student-login-screen .student-privacy-note,.student-login-screen .student-help{font-size:18px;line-height:1.6}.kid-toolbar .toolbar-row-primary>.tool-grid{flex-wrap:nowrap}.kid-toolbar .toolbar-row-secondary>.color-presets{flex-shrink:1}.kid-tools-popover{position:absolute;z-index:24;top:calc(100% + 8px);right:12px;width:min(680px,calc(100vw - 24px));max-height:calc(100dvh - 250px);overflow-y:auto;padding:16px;display:grid;gap:16px;border:2px solid #d9b96d;border-radius:16px;background:#fffbef;box-shadow:0 12px 36px #0003}.kid-tools-popover>header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;font-size:20px}.kid-toolbar .kid-tools-popover .toolbar-group{flex-wrap:wrap;gap:8px}.kid-toolbar .kid-tools-popover .size-presets{flex-wrap:wrap}.kid-toolbar .kid-tools-popover .geometry-menu,.kid-toolbar .kid-tools-popover .blank-page-menu{position:static;max-width:100%}.kid-toolbar:has(.kid-tools-popover){z-index:60}.mobile-student-mode>.kid-toolbar{top:auto;bottom:calc(var(--student-toolbar-height, 120px) + 8px);min-height:0;max-height:calc(100dvh - var(--student-toolbar-height, 120px) - 24px);height:max-content;overflow-y:auto;overflow-x:hidden;display:flex;flex-direction:column}.mobile-student-mode>.kid-toolbar .toolbar-row{flex:0 0 auto}.mobile-student-mode .kid-toolbar .toolbar-row-primary>.tool-grid{flex-wrap:wrap;flex-shrink:1}.mobile-student-mode .kid-tools-popover{position:static;flex:0 0 auto;width:auto;max-height:none;overflow:visible;padding:8px;box-shadow:none}.kid-toolbar .lesson-library-actions>.pdf-menu-action{display:inline-grid;min-height:56px;box-sizing:border-box;padding:8px;line-height:1.4;flex-shrink:0}.kid-toolbar .kid-more,.kid-toolbar .kid-tool-label,.kid-toolbar .page-count{font-size:17px}.kid-toolbar .kid-tool-label{font-size:18px;color:#49351f}.kid-toolbar button:disabled,.mobile-student-toolbar button:disabled{color:#596477;background:#e8ecf1;border-color:#7a8798;opacity:1}.kid-toolbar button:disabled .kid-tool-label{color:#596477}.kid-toolbar .tool-grid>button:has(.kid-tool-label),.kid-toolbar .history-controls>button{width:88px;min-width:88px}.kid-student-mode:not(.mobile-student-mode) .class-drawer{top:calc(var(--student-workspace-top, 160px) + 8px)}.kid-toolbar .kid-tool-label{font-size:20px;line-height:1.65}.kid-toolbar .zoom-percent{font-size:22px;min-width:84px}.mobile-student-toolbar button span,.student-write-row button>span:not(.write-color-swatch):not(.write-line-preview){font-size:20px;line-height:1.65}.kid-student-mode .student-work-tab{width:160px;min-width:160px;padding:12px 20px;font-size:20px;line-height:1.65;box-sizing:border-box}.kid-student-mode:not(.mobile-student-mode) .class-drawer:not(.open){transform:translate(calc(100% - 160px))}.kid-toolbar .student-desk-return{display:inline-flex;flex-direction:row;align-items:center;gap:8px;font-size:20px;line-height:1.65}.student-login-screen .student-password-help{font:inherit;font-size:19px;min-height:48px;padding:0 8px;color:#755018;background:transparent;border:0;text-decoration:underline;cursor:pointer}.student-password-hint{color:#49351f;background:#fff4d7;padding:12px;border-radius:12px;font-size:19px;line-height:1.65}.kid-toolbar .tool-grid>button:has(.kid-tool-label),.kid-toolbar .history-controls>button{width:104px;min-width:104px}@media(min-width:901px){.kid-toolbar .toolbar-row-primary{gap:1px}.kid-toolbar .toolbar-row-primary>.tool-grid{gap:4px}.kid-toolbar .student-desk-return{width:136px;white-space:normal;padding:6px}.kid-toolbar .student-desk-return span{min-width:0}}.chapter-controls{display:flex;align-items:center;gap:4px}.page-jump{width:42px;min-width:0;height:30px;padding:2px 4px;border:1px solid #d9dee8;border-radius:6px;text-align:center;color:#334155;background:#fff;font:inherit;font-size:12px}.chapter-panel{position:fixed;z-index:100;top:104px;right:16px;width:min(320px,calc(100vw - 32px));max-height:calc(100dvh - 128px);overflow-y:auto;padding:12px;box-sizing:border-box;background:#fff;color:#334155;border:1px solid #d9dee8;border-radius:12px;box-shadow:0 12px 32px #0f172a26}.chapter-panel header,.chapter-panel footer{display:flex;align-items:center;justify-content:space-between;gap:8px}.chapter-panel button{min-height:34px;min-width:34px;padding:4px 8px;border:1px solid #d9dee8;border-radius:6px;color:#334155;background:#f8fafc;cursor:pointer}.chapter-panel button:disabled{opacity:.45;cursor:default}.chapter-panel button:focus-visible,.chapter-controls :focus-visible{outline:2px solid #2563eb;outline-offset:2px}.chapter-bookmarks{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:12px 0}.chapter-thumbnail-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:12px}.chapter-thumbnail-grid button{display:grid;gap:4px;padding:4px;font-size:12px}.chapter-thumbnail-grid button[aria-current=page]{border-color:#2563eb;background:#eff6ff}.chapter-thumbnail{display:grid;place-items:center;height:80px;overflow:hidden;background:#fff;font-size:10px}.chapter-thumbnail canvas{display:block;max-width:100%;max-height:80px;width:auto;height:auto}.chapter-storage-error{max-width:160px;font-size:11px;color:#9b1c31}.kid-toolbar .page-jump{height:38px;font-size:20px}@media print{.chapter-panel{display:none}}.pdf-export-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:10000;display:grid;place-items:center;padding:16px;background:#0f172a59}.pdf-export-dialog{width:min(440px,100%);max-height:calc(100dvh - 32px);overflow:auto;padding:24px;border:1px solid #d7dee7;border-radius:16px;background:#fff;color:#1e293b;box-shadow:0 16px 48px #0f172a33}.pdf-export-dialog h2{margin:0 0 12px;font-size:20px}.pdf-export-dialog p{margin:12px 0}.pdf-export-dialog fieldset{margin:16px 0;padding:12px;border:1px solid #d7dee7;border-radius:8px}.pdf-export-dialog label{display:flex;align-items:center;gap:8px;min-height:44px}.pdf-export-dialog .pdf-export-range{flex-wrap:wrap}.pdf-export-range input{width:100%;min-height:44px;padding:8px;border:1px solid #cbd5e1;border-radius:8px;font:inherit}.pdf-export-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.pdf-export-actions button{min-height:44px;padding:8px 16px;border:1px solid #cbd5e1;border-radius:8px;background:#f8fafc;color:inherit;font:inherit;cursor:pointer}.pdf-export-actions button[type=submit]{background:#e8efff;border-color:#b8cbf4}.pdf-export-dialog [role=alert]{color:#b91c1c}.pdf-export-dialog :disabled{opacity:.6;cursor:default}.mobile-student-header small.student-save-status{white-space:normal;overflow:visible}.student-save-status>span{display:block}.student-cloud-sync{overflow-wrap:anywhere;color:#344860}.assignment-submission{display:inline-flex;align-items:center;gap:8px}.assignment-submit-button{min-height:44px;padding:8px 18px;border:1px solid #116640;border-radius:12px;color:#fff;background:#167747;font:inherit;font-weight:700;cursor:pointer}.assignment-submit-button:disabled{opacity:.65;cursor:default}.assignment-submission [role=alert]{max-width:260px;color:#b42318}.student-confirm-dialog{max-height:85vh;overflow-y:auto}.mobile-student-header>.assignment-submission{grid-column:1 / -1;justify-self:end}.status-bar{font-size:14px;min-height:40px}.app-shell:not(.mobile-student-mode){grid-template-rows:auto minmax(0,1fr) auto}.app-shell.homework-work-mode.homework-full-toolbar:not(.mobile-student-mode){grid-template-rows:auto auto minmax(0,1fr) auto}.backup-reminder,.backup-reminder button{color:#334155;font-size:14px}.mobile-student-header small{font-size:14px;color:#334155}.student-menu-button{cursor:default;pointer-events:none}.student-id-hint{margin:-8px 0 0;font-size:16px;line-height:1.6;color:#475569}.student-login-screen .student-privacy-note,.student-login-screen .student-help,.student-login-screen .auth-kicker{color:#475569}.login-keyboard-toggles button{width:auto;display:inline-flex;align-items:center;gap:8px;padding:8px 12px;min-height:44px;font-size:16px;color:#334155}.login-spinner{display:inline-block;width:22px;height:22px;flex-shrink:0;border:3px solid #cbd5e1;border-top-color:#475cc4;border-radius:50%;animation:p1-spin 1s linear infinite}@keyframes p1-spin{to{transform:rotate(360deg)}}.auth-student:disabled{cursor:wait;opacity:.85}.student-open-assignment{min-height:52px;min-width:88px;padding:10px 20px;background:#2446a2;color:#fff;border:2px solid #173479;font-size:18px;font-weight:700}.student-open-assignment:disabled{color:#475569;background:#e2e8f0;border-color:#94a3b8}.kid-toolbar .pdf-menu-lesson-row{grid-template-columns:minmax(0,1fr) 108px;gap:16px;padding-block:12px}.kid-toolbar .pdf-menu-more{display:flex;flex-direction:column;gap:2px;width:100%;font-size:14px}.document-danger-action,.toolbar-danger-zone{margin-top:24px;padding-top:16px;border-top:2px solid #d6dce5}.kid-toolbar .toolbar-danger-zone{display:flex;justify-content:flex-end}.kid-toolbar .kid-signout{margin:32px 0;padding:12px 20px}.kid-toolbar .lesson-library-actions>label:has(input[accept="application/json,.bigben.json"]){margin-block:16px}.hidden-lessons{padding:20px 0;border-top:1px solid #d6dce5}.hidden-lessons button{display:block;margin-top:12px}.kid-toolbar .color-presets[aria-disabled=true]{opacity:.55}.kid-tools-popover{position:static;width:auto;max-height:36dvh;overflow-y:auto}.kid-toolbar:has(.kid-tools-popover){grid-template-rows:auto auto auto}.mobile-student-mode>.kid-toolbar{max-height:42dvh}.mobile-student-mode .workspace{margin-bottom:0}.student-write-menu{max-height:min(38dvh,calc(100dvh - var(--student-toolbar-height, 112px) - 100px))}.write-menu-close{display:block;margin-left:auto;min-height:44px;font-size:16px}.mobile-tool-row>button{flex:1 1 0;min-width:0}.mobile-tool-row>button{flex-direction:column;gap:0}.mobile-tool-row button span{display:block;font-size:14px;line-height:1.65;white-space:nowrap}@media(orientation:landscape)and (max-height:600px){.mobile-zoom-row{display:inline-flex}}.document-opening{position:absolute;top:0;right:0;bottom:0;left:0;background:#edf1f7}.assignment-preview{position:absolute;top:12px;right:12px;bottom:12px;left:12px;display:grid;place-items:center}.assignment-preview .pdf-canvas{max-width:100%;max-height:100%;width:auto!important;height:auto!important;object-fit:contain}.page-loading{position:absolute;top:0;right:0;bottom:0;left:0;z-index:18;display:flex;align-items:center;justify-content:center;gap:12px;background:#edf1f7;color:#334155;font-size:18px}.assignment-preview+.page-loading{inset:auto 12px 12px;padding:12px;background:#ffffffed;border-radius:8px}.page-insert-toast{position:absolute;bottom:16px;left:50%;transform:translate(-50%);z-index:19;padding:12px 20px;border:2px solid #15803d;border-radius:10px;background:#f0fdf4;color:#14532d;font-size:18px;white-space:nowrap}.assignment-open-error{position:absolute;top:12px;left:12px;right:12px;z-index:19;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px;padding:12px;background:#fff1f2;border:1px solid #be123c;color:#881337;font-size:16px}.workspace:has(.page-insert-toast) .page-stage{outline:3px solid #16a34a}@media(prefers-reduced-motion:reduce){.login-spinner{animation:none}}.student-work-panel .class-inbox-list>li{column-gap:20px;row-gap:16px}.student-work-panel .student-work-details{grid-column:1 / -1}.student-work-panel .student-open-assignment{align-self:start}.class-inbox-list .assignment-submission{margin-inline-end:12px;flex-wrap:wrap}.student-open-assignment{min-height:60px;min-width:108px;font-size:22px;padding:12px 24px}.class-drawer>div[inert]{pointer-events:none}.class-drawer>div:has(>.class-panel){min-height:0}.class-drawer>div>.class-panel{box-sizing:border-box;height:100%}.student-confirm-dialog .student-confirm-primary{background:#167747;color:#fff;border:2px solid #116640;font-weight:700}.student-confirm-dialog .student-confirm-secondary{background:#fff;color:#334155;border:2px solid #64748b}.assignment-submitted-button{padding:8px 16px;min-height:44px;border:2px solid #15803d;border-radius:12px;color:#14532d;background:#dcfce7;font:inherit;font-weight:700;opacity:1}.assignment-resubmit-link{padding:6px;background:transparent;border:0;color:#475569;font:inherit;font-size:14px;text-decoration:underline;cursor:pointer}.submission-success{text-align:center;border-color:#15803d;background:#f0fdf4;color:#14532d}.submission-success .submission-success-art{display:flex;align-items:center;justify-content:center;gap:20px;color:#ca8a04;font-size:44px}.submission-success-art strong{display:grid;place-items:center;width:100px;height:100px;border-radius:50%;background:#15803d;color:#fff;font-size:76px}.submission-success h2{font-size:28px;line-height:1.5}.kid-toolbar .assignment-submitted-button:disabled{color:#14532d;background:#dcfce7;border-color:#15803d;opacity:1}.kid-toolbar .color-presets button{width:auto;min-width:42px;height:auto;display:flex;flex-direction:column;gap:3px}.swatch-label{font-size:12px;line-height:1.4}.eraser-active-indicator{color:#475569;font-size:14px}.student-pen-sizes{display:flex;align-items:center;gap:3px;flex-shrink:0}.student-pen-sizes button{min-width:42px;min-height:40px;padding:4px 8px;font:inherit;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#334155;touch-action:manipulation}.student-pen-sizes button[aria-pressed=true]{background:#e0e7ff;border-color:#6366f1;color:#312e81}.mobile-pen-settings{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;grid-column:1 / -1}.mobile-pen-colors{display:flex;gap:2px}.mobile-pen-colors button{min-width:36px;width:36px;height:40px;padding:6px}.mobile-pen-colors i{display:block;width:20px;height:20px;border-radius:50%}.mobile-pen-colors button[aria-pressed=true]{outline:2px solid #6366f1;outline-offset:-3px}.assignment-submitted-button{display:inline-block;font-size:.85rem}.tablet-student-mode .mobile-student-toolbar{flex-wrap:wrap;gap:4px 12px}.tablet-student-mode .mobile-pen-settings{order:4;flex:0 0 100%}.list-loading{padding:16px;color:#475569}.list-loading-row{display:flex;gap:16px;align-items:center;min-height:76px;margin-top:12px;padding:16px;border-radius:12px;background:#f1f5f9}.list-loading-row i{width:36px;height:40px;background:#cbd5e1;border-radius:6px}.list-loading-row span{width:65%;height:18px;background:#dbe3ec;border-radius:4px}.canvas-loading-shell{min-height:100dvh;padding:24px;background:#edf1f7}.desk-new-badge{display:inline-block;padding:2px 10px;border-radius:20px;background:#dcfce7;color:#166534;font-size:16px}.kid-toolbar button,.mobile-student-toolbar button,.mobile-student-header button{min-width:44px;min-height:44px}.kid-toolbar .color-presets button,.student-pen-sizes button,.mobile-pen-colors button{min-width:44px;min-height:44px;width:auto;height:auto}.student-pen-sizes button,.mobile-pen-colors button,.mobile-student-header>button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}.student-pen-sizes button,.mobile-student-toolbar button{font-size:15px}.kid-toolbar .kid-tool-label{font-size:17px;white-space:nowrap}.kid-toolbar .student-desk-return{white-space:nowrap;flex-shrink:0}.kid-toolbar .eraser-active-indicator{position:absolute;top:100%;right:12px;pointer-events:none;background:#f8fafc}[aria-disabled=true].mobile-pen-settings,[aria-disabled=true].student-pen-sizes{opacity:.45}.kid-toolbar .pdf-menu-lesson-row{grid-template-columns:minmax(0,1fr)}.student-worksheet-title{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.student-worksheet-title:empty{display:none}.assignment-submit-placeholder{display:inline-flex;min-width:110px;min-height:44px}.mobile-student-header>.assignment-submit-placeholder{grid-column:1 / -1;justify-self:end}.mobile-student-mode .status-bar>span:first-child{display:none}@media(max-width:420px){.mobile-pen-settings{flex-wrap:wrap;gap:4px}.mobile-student-header>button span{white-space:nowrap;font-size:12px}}.kid-toolbar .toolbar-row-secondary>.color-presets{width:260px;min-height:66px;flex-shrink:0;flex-wrap:nowrap}.kid-toolbar .student-worksheet-title{width:180px;min-height:26px}.kid-toolbar .chapter-controls>button{display:flex;flex-direction:column;justify-content:center;align-items:center;font-size:15px}.mobile-pen-settings{min-height:58px}.mobile-student-toolbar .mobile-pen-settings{flex-wrap:nowrap;gap:8px}.mobile-student-toolbar .mobile-pen-colors button,.mobile-student-toolbar .student-pen-sizes button{width:44px;padding:4px}.mobile-student-toolbar .mobile-pen-colors button span,.mobile-student-toolbar .student-pen-sizes button span{font-size:14px;line-height:1.3;white-space:nowrap}.mobile-page-row button,.mobile-zoom-row button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}.mobile-page-row button span,.mobile-zoom-row button span{font-size:14px;line-height:1.3}.size-presets.pen-size-presets,.teaching-floating-toolbar .size-presets.pen-size-presets,.kid-toolbar .size-presets.pen-size-presets,.student-pen-sizes{display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-width:0;max-width:100%;grid-column:1 / -1}.size-presets.pen-size-presets button,.teaching-floating-toolbar .size-presets.pen-size-presets button,.kid-toolbar .size-presets.pen-size-presets button,.student-pen-sizes button,.mobile-student-toolbar .student-pen-sizes button{display:grid;place-items:center;box-sizing:border-box;flex:0 0 44px;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;border-width:1px;gap:0}.size-presets.pen-size-presets button>.size-dot{width:20px;margin:0;transform:none}.size-presets.pen-size-presets .size-dot.xxsmall{height:1px}.size-presets.pen-size-presets .size-dot.xsmall{height:2px}.size-presets.pen-size-presets .size-dot.small{height:5px}.size-presets.pen-size-presets .size-dot.medium{height:8px}.teaching-mode .teaching-floating-toolbar:has(.pen-size-presets){width:210px}.teaching-floating-toolbar .size-presets.pen-size-presets{width:192px;max-width:none}.toolbar:has(.pen-size-presets):not(.teaching-floating-toolbar){grid-template-columns:minmax(0,1fr)}.toolbar:has(.pen-size-presets){grid-template-rows:auto auto;max-height:none}.toolbar-row:has(.pen-size-presets){flex-wrap:wrap;min-width:0;height:auto;overflow:visible}.toolbar .tool-settings:has(.pen-size-presets){flex-wrap:wrap;min-width:0}.teacher-menu-popup{padding:24px;min-height:100vh;height:100vh;box-sizing:border-box;overscroll-behavior:contain;overflow:auto}.teacher-menu-popup>fieldset{border:0;margin:0;padding:0;min-width:0}.teacher-menu-navigation{display:flex;flex-wrap:wrap;gap:4px;max-width:960px;margin:0 auto 6px}.teacher-menu-navigation a{display:inline-flex;align-items:center;min-height:28px;padding:0 8px;font-size:12px;line-height:1.2;border:1px solid #cbd5e1;border-radius:5px;background:#fff;color:#1d4ed8;text-decoration:underline;text-underline-offset:3px}.teacher-menu-navigation a:hover{background:#eff6ff}.teacher-menu-popup .pdf-menu.lesson-library{position:static;width:100%;max-width:960px;max-height:none;margin:0 auto;transform:none}.teacher-popup-status{margin:0;padding:4px 12px;background:#fff4ce}.teacher-lesson-library .lesson-library-actions{display:flex;flex-wrap:nowrap;gap:4px}.teacher-lesson-library .lesson-library-actions>.pdf-menu-action,.teacher-lesson-library .lesson-delete,.teacher-lesson-library .hidden-lesson-row>button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 32px;width:32px;height:32px;min-width:28px;min-height:28px;margin:0;padding:0;font-size:18px;line-height:1}.teacher-lesson-library .pdf-menu-lessons,.teacher-lesson-library .pdf-menu-group{gap:3px}.teacher-lesson-library .pdf-menu-lesson-row{grid-template-columns:minmax(0,1fr) 32px;gap:4px;align-items:center}.teacher-lesson-library .pdf-menu-lesson{grid-template-columns:28px minmax(0,1fr);gap:6px;min-height:40px;padding:3px 5px}.teacher-lesson-library .lesson-thumbnail{width:28px;height:30px}.teacher-lesson-library .lesson-details{gap:0}.teacher-lesson-library .lesson-title{font-size:13px;line-height:1.25}.teacher-lesson-library .lesson-details small{font-size:11px;line-height:1.2}.teacher-lesson-library .hidden-lessons{padding:5px 0 0}.teacher-lesson-library .hidden-lessons-toggle{display:flex;align-items:center;gap:4px;min-height:28px;margin:0;padding:2px 5px;font-size:12px}.teacher-lesson-library .hidden-lessons-head{display:flex;align-items:center;gap:4px}.teacher-lesson-library .hidden-lessons-head .hidden-lessons-toggle{flex:1 1 auto;min-width:0}.teacher-lesson-library .hidden-lessons-purge{display:inline-flex;align-items:center;gap:2px;min-height:28px;margin:0;padding:2px 6px;font-size:12px;color:#b91c1c}.teacher-lesson-library .hidden-lessons-purge-count{font-variant-numeric:tabular-nums;font-weight:600}.teacher-lesson-library .hidden-lessons-list{display:grid;gap:2px;margin-top:3px}.teacher-lesson-library .hidden-lesson-row{display:grid;grid-template-columns:minmax(0,1fr) 32px;gap:4px;align-items:center}.teacher-menu-popup{padding:12px}.teacher-menu-popup .teacher-lesson-library{gap:6px}.pdf-menu.teacher-lesson-library{width:min(300px,calc(100vw - 20px))}.teacher-menu-popup .pdf-menu.teacher-lesson-library{width:100%}.teacher-lesson-library .lesson-document-drop{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:58px;margin:0;padding:8px;border:1px dashed #7998bd;border-radius:7px;background:#f2f7ff;color:#234575;font-size:13px}.teacher-lesson-library .lesson-document-drop>*{pointer-events:none}.teacher-lesson-library .lesson-document-drop svg{flex:none}.teacher-lesson-library .lesson-document-drop small{display:block;margin-top:2px;font-size:11px}.teacher-lesson-library .lesson-document-drop:hover,.teacher-lesson-library .lesson-document-drop.is-dragging{background:#deebff;border-color:#255bc0}.teacher-lesson-library .lesson-document-drop-error{margin:0;color:#a11b1b;font-size:12px}.teacher-lesson-library .lesson-library-recent{display:grid;gap:3px;min-width:0}.teacher-lesson-library .lesson-library-recent h3{margin:2px 0;font-size:13px;color:#1e293b}.teacher-lesson-library .lesson-library-recent p{margin:0;font-size:12px;color:#52657e}.teacher-lesson-library .lesson-library-recent .pdf-menu-lesson{min-height:32px;width:100%}.teacher-lesson-library .lesson-library-recent [aria-current=true]{background:#eaf2ff;border-color:#7195cb}.teacher-lesson-library .lesson-recent-row{display:grid;grid-template-columns:minmax(0,1fr);align-items:center;gap:4px}.teacher-lesson-library .lesson-recent-row:has(.lesson-new-window){grid-template-columns:minmax(0,1fr) 32px}.teacher-lesson-library .lesson-new-window{display:grid;place-items:center;width:32px;height:32px;margin:0;padding:0}.lesson-library-columns{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:12px}@media(min-width:800px){.lesson-library-columns{grid-template-columns:minmax(0,.8fr) repeat(2,minmax(0,1fr))}}.teacher-lesson-library .lesson-library-columns>section>h3{display:flex;align-items:center;gap:5px;margin:2px 0 3px;font-size:13px;color:#1e293b}.lesson-library-grade>h3 small{margin-inline-start:auto;font-size:11px;color:#52657e}.lesson-library-grade>p{margin:0;font-size:12px;color:#52657e}.lesson-library-other{display:grid;gap:3px}.lesson-library-other>h3{margin:0}.teacher-lesson-library :is(.lesson-library-columns,.lesson-library-other) .lesson-title{white-space:normal;overflow-wrap:anywhere}.lesson-row-options-toggle{display:grid;place-items:center;width:32px;height:32px;margin:0;padding:0}.lesson-row-options{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:4px;grid-column:1 / -1}.choice-popover{display:flex;flex-wrap:wrap;gap:6px;max-width:312px;padding:6px;background:#fff;border:1px solid #d0d7de;border-radius:10px;box-shadow:0 6px 20px #0000002e}.choice-popover button{flex-shrink:0}.teacher-lesson-library .lesson-library-actions>.pdf-menu-action{flex:1 1 0;width:auto;min-width:0;height:34px;gap:1px;flex-direction:column;font-size:10px;font-weight:700}.teacher-lesson-library .lesson-action-icon{display:inline-flex;line-height:0}.teacher-lesson-library .lesson-action-abbr{font-size:10px;line-height:1;white-space:nowrap}.teacher-lesson-library .lesson-folder h3{margin:2px 0 0;text-transform:none}.teacher-lesson-library .lesson-folder-toggle{display:flex;align-items:center;gap:4px;width:100%;min-height:28px;margin:0;padding:3px 6px;font-size:13px;font-weight:700;color:#1e293b;text-align:left;background:#eef2f7;border:0;border-radius:6px}.teacher-lesson-library .lesson-folder-count{color:#64748b;font-weight:600}.teacher-lesson-library .pdf-menu-lesson-row:has(>.lesson-move){grid-template-columns:minmax(0,1fr) 64px 32px}.teacher-lesson-library .pdf-menu-lesson-row:has(.lesson-new-window){grid-template-columns:minmax(0,1fr) 32px 32px}.teacher-lesson-library .lesson-move{width:64px;height:32px;min-height:28px;padding:0 2px;font-size:12px}.teacher-lesson-library .lesson-row-options .lesson-move{width:auto;min-width:0;max-width:calc(100% - 36px)}.mobile-student-mode>.kid-toolbar{width:min(520px,calc(100vw - 16px));left:auto;right:8px;padding:0;min-height:0;max-height:min(60dvh,calc(100dvh - var(--student-toolbar-height, 112px) - 80px));border-radius:12px}.mobile-student-mode>.kid-toolbar>.toolbar-row{display:none}.mobile-student-mode .kid-toolbar .kid-tools-popover{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px;margin:0;border:0;max-height:none;overflow:visible}.mobile-student-mode .kid-tools-popover>header{flex:0 0 100%;font-size:15px;line-height:1.4;padding-bottom:6px;border-bottom:1px solid #e2d8bf}.mobile-student-mode .kid-toolbar .kid-tools-popover button,.mobile-student-mode .kid-toolbar .kid-tools-popover .toolbar-file-button{width:44px;height:44px;min-width:44px;min-height:44px;padding:4px;margin:0;font-size:16px;line-height:1;border-radius:8px}.mobile-student-mode .kid-tools-popover .kid-tool-label{display:none}.mobile-student-mode .kid-toolbar .kid-tools-popover>.tool-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(44px,1fr));flex:0 0 100%;gap:6px}.mobile-student-mode .kid-tools-popover .tool-grid>button,.mobile-student-mode .kid-tools-popover .tool-grid>.geometry-menu-wrap>button{width:100%}.mobile-student-mode .kid-toolbar .kid-tools-popover .tool-settings{display:flex;flex-wrap:wrap;gap:6px;flex:0 0 100%;padding:6px 0;border-block:1px solid #e2d8bf}.mobile-student-mode .kid-toolbar .kid-tools-popover .pen-mode-presets,.mobile-student-mode .kid-toolbar .kid-tools-popover .shape-presets,.mobile-student-mode .kid-toolbar .kid-tools-popover .toolbar-group{gap:6px}.mobile-student-mode .kid-toolbar .kid-tools-popover>.color-presets{display:grid;grid-template-columns:repeat(5,minmax(44px,1fr));grid-auto-flow:row;grid-auto-rows:44px;grid-template-rows:none;height:auto;min-width:0;flex:0 0 100%;width:auto;min-height:0;gap:6px}.mobile-student-mode .kid-tools-popover>.color-presets>button{width:100%}.mobile-student-mode .kid-tools-popover .color-dot{width:22px;height:22px}.mobile-student-mode .kid-toolbar .kid-tools-popover .toolbar-danger-zone{margin-left:auto;padding:0 0 0 8px;border:0;border-left:1px solid #e2d8bf}.mobile-student-mode .kid-tools-popover .blank-page-menu button{width:auto;min-width:44px;padding:6px 10px;font-size:14px}.mobile-student-mode .mobile-tool-row button span,.mobile-student-mode .mobile-page-row button span,.mobile-student-mode .mobile-zoom-row button span{font-size:12px;line-height:1.25}.mobile-student-mode .mobile-student-toolbar button{min-height:44px}.mobile-student-mode .student-write-menu{padding:8px;border-radius:12px;max-height:min(55dvh,calc(100dvh - var(--student-toolbar-height, 112px) - 80px))}.mobile-student-mode .student-write-menu .write-menu-close{display:grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:4px;margin:0 0 4px auto}.mobile-student-mode .student-write-menu .student-write-row{gap:4px;min-height:44px;flex-wrap:wrap}.mobile-student-mode .student-write-menu .student-write-row button,.mobile-student-mode .student-write-menu .write-more-colors{display:grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:4px;margin:0}.mobile-student-mode .student-write-menu .student-write-row input[type=range]{min-height:44px;max-width:none}.mobile-student-mode .student-write-menu .write-color-swatch{width:24px;height:24px}.mobile-student-mode .mobile-student-header{grid-template-columns:48px minmax(0,1fr) 64px 72px;gap:6px;padding:6px 8px}.mobile-student-header .student-file-title{grid-column:2;grid-row:1;display:block;min-width:0;width:100%;overflow:hidden;text-align:left;border:0;border-radius:4px;background:transparent;padding:4px;font:inherit;font-size:14px;font-weight:700}.mobile-student-header .student-file-title:first-child{grid-column:1 / span 2}.student-file-title>span{display:block;width:max-content;min-width:100%;white-space:nowrap}.student-file-title[data-scrolling=true]>span{animation:student-file-scroll var(--title-duration) linear 1}@keyframes student-file-scroll{0%,12%{transform:translate(0)}88%,to{transform:translate(var(--title-travel))}}.mobile-student-mode .mobile-student-header>.mobile-desk-return>span{display:block;font-size:11px;line-height:1.25;white-space:nowrap}.mobile-student-mode .mobile-student-header .mobile-work-menu{grid-column:3;grid-row:1;position:relative;width:64px;padding:4px}.mobile-student-header .mobile-work-menu>span:not(.sr-only){font-size:11px;white-space:nowrap}.mobile-student-mode .mobile-student-header>.assignment-submission,.mobile-student-mode .mobile-student-header>.assignment-submit-placeholder{grid-column:4;grid-row:1;width:100%;min-width:0;justify-self:stretch;justify-content:center;flex-wrap:wrap}.mobile-student-header .assignment-submit-button{min-width:0;width:100%;padding:8px 4px;font-size:14px;white-space:nowrap}.mobile-student-header .assignment-submitted-button{font-size:11px;overflow-wrap:anywhere}.mobile-student-header .assignment-submission [role=alert]{font-size:11px}.mobile-work-menu[data-new-work=true]{animation:student-work-siren 1.6s steps(1,end) infinite}.mobile-work-menu[data-new-work=true]:after{content:"";position:absolute;top:3px;right:3px;width:8px;height:8px;border-radius:50%;background:#facc15;border:1px solid #fff}@keyframes student-work-siren{0%,to{background:#b91c1c;color:#fff;border-color:#991b1b}50%{background:#1d4ed8;color:#fff;border-color:#1e40af}}.mobile-student-mode .mobile-zoom-row{position:static;display:inline-flex;gap:4px;margin-left:4px}.mobile-student-mode .mobile-student-toolbar[data-more-open=true] .mobile-zoom-row{position:static;padding:0;border:0;box-shadow:none;background:transparent}.mobile-student-mode .mobile-zoom-row button{width:44px;min-width:44px;padding:2px}.tablet-student-mode .mobile-zoom-row button:not(:last-child){display:flex}.mobile-student-mode .mobile-page-row{gap:2px}.mobile-student-mode .mobile-page-row button{min-width:44px;padding:2px}.mobile-student-mode .mobile-page-row>span{width:30px}.mobile-student-mode .mobile-fullscreen-error{max-width:140px;font-size:11px}@media(prefers-reduced-motion:reduce){.mobile-work-menu[data-new-work=true]{animation:none;background:#1d4ed8;color:#fff}.student-file-title[data-scrolling=true]{overflow-x:auto}.student-file-title[data-scrolling=true]>span{animation:none}}.mobile-student-mode .mobile-student-toolbar{display:grid;grid-template-columns:minmax(44px,1fr) 24px repeat(5,minmax(44px,1fr));gap:4px 2px}.mobile-student-mode .mobile-student-toolbar .mobile-tool-row{grid-column:1 / -1;margin:0}.mobile-student-mode .mobile-student-toolbar .mobile-page-row,.mobile-student-mode .mobile-student-toolbar .mobile-zoom-row{display:contents}.mobile-student-mode .mobile-student-toolbar .mobile-page-row>span{width:auto;align-self:center;font-size:12px}.mobile-student-mode .mobile-student-toolbar .mobile-page-row button,.mobile-student-mode .mobile-student-toolbar .mobile-zoom-row button{width:100%}.mobile-student-mode .mobile-student-toolbar .mobile-fullscreen-button>span{display:block;font-size:11px;line-height:1.25;white-space:nowrap}.mobile-student-mode .mobile-student-header .student-file-title{display:flex;align-items:flex-start;justify-content:center}.student-file-title>span{flex-shrink:0}.class-drawer-tabs{position:relative;display:flex;flex-direction:column;align-self:center}.class-drawer-new-window{width:36px;min-width:36px;min-height:44px;padding:0;border:1px solid #d9dee8;border-right:0;border-radius:10px 0 0 10px;background:#fff;color:#123c9c;font-size:14px;font-weight:800}.class-window-error{position:absolute;right:44px;top:0;width:220px;margin:0;padding:10px;border:1px solid #d9dee8;border-radius:8px;background:#fff;color:#9f1239;font-size:13px;box-shadow:0 4px 16px #0002}.class-window-body{margin:0;min-width:0;height:100vh;overflow:hidden;background:#fff}.class-drawer-content{min-height:0}.class-panel-host{height:100%}.class-panel-host>.class-panel{box-sizing:border-box;height:100%}.class-window-body>.class-panel-host>.class-panel{box-sizing:border-box;width:100%;height:100%;max-height:100%;border:0;border-radius:0;box-shadow:none;align-content:start}.class-room-title-controls{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.class-room-title-controls select{max-width:100%;min-height:32px;padding:3px 4px;border:1px solid #ccd3df;border-radius:6px;background:#fff;color:#172033;font:inherit;font-size:12px}.teacher-room-manage-head,.roster-row-actions,.roster-add-row,.roster-pin-result{display:flex;align-items:center;gap:5px}.teacher-room-manage-head{flex:0 0 auto;font-size:12px}.roster-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 32px;width:32px;height:32px;min-height:32px;padding:0}.roster-add{display:grid;gap:6px;margin:8px 0}.roster-add-row select{flex:1;min-width:0}.roster-add select,.roster-add input,.roster-row-actions select{box-sizing:border-box;min-height:32px;max-width:100%;border:1px solid #ccd3df;border-radius:6px;background:#fff;color:#172033;font:inherit;font-size:12px;padding:4px 6px}.roster-new-fields{display:grid;grid-template-columns:1fr 1fr;gap:5px}.roster-new-fields input{width:100%;min-width:0}.roster-new-fields label{display:flex;align-items:center;gap:6px;grid-column:1 / -1;font-size:12px}.roster-new-fields input[type=date]{width:auto}.teacher-student-list.managing{display:grid;gap:0}.teacher-student-list.managing>li{display:flex;justify-content:space-between;align-items:center;gap:6px;padding:5px 0;border-bottom:1px solid #e2e8f0}.roster-student-name{min-width:0;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px}.roster-student-name span{overflow-wrap:anywhere}.roster-student-name small{font-size:10px;color:#64748b}.roster-row-actions{flex-shrink:0}.roster-row-actions select{width:78px}.roster-message{margin:6px 0 0;font-size:12px;color:#334155;overflow-wrap:anywhere}.roster-pin-result{flex-wrap:wrap;margin-top:8px;padding:7px;border-radius:6px;background:#ecfdf5;font-size:12px}.roster-paused{color:#92400e!important}.roster-unassigned{margin-top:16px;padding:10px;border:1px solid #d9dee8;border-radius:8px;background:#fff}.roster-unassigned summary{cursor:pointer;font-size:13px;font-weight:600}@media(max-width:480px){.roster-icon{width:36px;height:36px;min-height:36px;flex-basis:36px}.teacher-student-list.managing>li{flex-wrap:nowrap}.teacher-student-list.managing .roster-student-name{flex:1;flex-direction:column;align-items:flex-start;gap:0}.roster-row-actions select{width:65px}}.student-csv-import{max-width:1160px;margin:0 auto 12px}.csv-open-button,.csv-import-results button{display:inline-flex;align-items:center;justify-content:center;gap:6px}.csv-open-button{min-height:34px;padding:0 10px;font-size:13px}.csv-import-panel{margin-top:8px;padding:12px;border:1px solid #d9dee8;border-radius:8px;background:#fff;font-size:13px}.csv-import-actions,.csv-import-preview-head,.csv-import-confirm{display:flex;align-items:center;flex-wrap:wrap;gap:6px}.csv-import-actions a,.csv-import-actions button,.csv-import-preview-head button{padding:5px 8px;min-height:30px;border:1px solid #ccd3df;border-radius:5px;background:#fff;color:#123c9c;font-size:12px;text-decoration:none}.csv-import-note{margin:7px 0;color:#475569;font-size:12px;line-height:1.5;overflow-wrap:anywhere}.csv-import-fields{display:flex;flex-wrap:wrap;align-items:end;gap:10px;margin:10px 0}.csv-import-fields label{display:grid;gap:4px;min-width:0;font-size:12px}.csv-import-fields input{max-width:100%;min-width:0}.csv-import-fields input[type=file]{width:270px}.csv-import-fields input[type=date]{min-height:32px;padding:4px;border:1px solid #ccd3df;border-radius:5px;font:inherit}.csv-import-preview-head{margin:8px 0;font-size:12px}.csv-import-table-wrap{max-height:280px;overflow:auto;border:1px solid #e2e8f0;border-radius:5px}.csv-import-table-wrap table{width:100%;min-width:560px;border-collapse:collapse;text-align:left;font-size:12px}.csv-import-table-wrap th,.csv-import-table-wrap td{padding:7px;border-bottom:1px solid #e2e8f0;vertical-align:top;overflow-wrap:anywhere;max-width:260px}.csv-import-table-wrap th{background:#f1f5f9;position:sticky;top:0;z-index:1}.csv-import-table-wrap small{display:block;color:#92400e;font-size:11px;line-height:1.4}.csv-import-table-wrap input[type=checkbox]{width:18px;height:18px}.csv-import-error{color:#991b1b;padding:8px;border-radius:5px;background:#fef2f2;overflow-wrap:anywhere;font-size:12px}.csv-import-error ul{margin:5px 0;padding-left:20px}.csv-import-confirm{margin-top:10px}.csv-import-confirm>button{min-height:36px;padding:0 12px;background:#123c9c;color:#fff;font-size:13px}.csv-import-confirm>button:disabled{background:#e2e8f0;color:#64748b}.csv-import-confirm small{color:#64748b;font-size:11px}.csv-import-summary{padding:8px;background:#ecfdf5;border-radius:5px;color:#14532d;font-size:12px}.csv-import-results{margin-top:12px}@media(max-width:480px){.csv-import-panel{padding:9px}.csv-import-fields{display:grid;grid-template-columns:1fr}.csv-import-fields input[type=file]{width:100%}}.teacher-menu-popup .teacher-library-browser{padding:16px;border:0;border-radius:0;box-shadow:none;background:transparent;gap:0}.teacher-library-browser .lesson-library-header{flex-wrap:wrap;gap:12px;padding-bottom:12px;border-bottom:1px solid #dce3ed}.teacher-library-browser .lesson-library-header h2{font-size:18px;color:#18263b;text-transform:none}.teacher-library-browser .lesson-library-header p{font-size:12px}.teacher-library-browser .teacher-menu-navigation{margin:0;gap:4px}.teacher-library-browser .teacher-menu-navigation a{display:inline-flex;align-items:center;min-height:32px;padding:4px 10px;border:0;background:transparent;font-size:13px;text-decoration:none}.teacher-library-browser .teacher-menu-navigation a:hover{background:#eaf0fb}.teacher-library-tools{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:12px 0 8px}.teacher-library-tools .lesson-library-current{margin-right:auto;min-width:0}.teacher-library-tools .group-field{display:flex;align-items:center;flex-direction:row;gap:8px;font-size:12px;text-transform:none}.teacher-library-tools .group-field select{width:180px;min-width:0;min-height:36px;font-size:13px;padding:4px 8px}.teacher-library-browser .lesson-library-actions{flex-wrap:wrap;align-items:center;gap:6px}.teacher-library-browser .lesson-library-actions>.pdf-menu-action{flex:none;flex-direction:row;gap:6px;width:auto;height:36px;min-height:36px;padding:6px 12px;font-size:13px;font-weight:600}.teacher-library-browser .lesson-action-abbr{font-size:13px;line-height:1.35;white-space:normal}.teacher-library-browser .lesson-library-actions>.import-button{background:#2563eb;border-color:#2563eb;color:#fff}.teacher-library-more{position:relative}.teacher-library-more summary{min-height:36px;padding:7px 10px;border:1px solid #cbd5e1;border-radius:6px;background:#fff;font-size:13px;cursor:pointer}.teacher-library-more-actions{position:absolute;right:0;top:calc(100% + 4px);z-index:20;display:grid;gap:3px;width:min(240px,calc(100vw - 48px));padding:6px;background:#fff;border:1px solid #dce3ed;border-radius:8px;box-shadow:0 8px 24px #0f172a26}.teacher-library-browser .teacher-library-more-actions :is(button,label){display:flex;align-items:center;justify-content:flex-start;gap:8px;width:100%;min-height:36px;height:auto;padding:6px 8px;margin:0;background:#fff;color:#18263b;border:0;font-size:13px;text-align:left}.teacher-library-browser .teacher-library-more-actions :is(button,label):hover{background:#eef2f7}.teacher-library-browser .teacher-library-more-actions button:disabled{color:#94a3b8}.teacher-library-browser .lesson-document-drop{min-height:34px;padding:5px 8px;margin-bottom:16px;font-size:12px;border-color:#cbd5e1;background:#f8fafc;color:#52657e}.teacher-library-browser .lesson-document-drop strong{font-weight:500}.teacher-library-content{display:grid;grid-template-columns:180px minmax(0,1fr);align-items:start;gap:24px}.teacher-library-sidebar{padding-right:14px;border-right:1px solid #dce3ed;min-width:0}.teacher-library-sidebar section{margin-top:16px}.teacher-library-sidebar h3{margin:0 0 4px;padding:0 10px;color:#64748b;font-size:12px;font-weight:500}.teacher-library-sidebar button{display:flex;align-items:center;gap:7px;width:100%;min-height:36px;padding:6px 10px;margin:0;border:0;border-radius:6px;background:transparent;color:#334155;text-align:left;font-size:13px;line-height:1.4;overflow-wrap:anywhere}.teacher-library-sidebar button span{margin-left:auto;font-size:11px;color:#64748b}.teacher-library-sidebar button svg{flex-shrink:0}.teacher-library-sidebar button:hover{background:#eef2f7}.teacher-library-sidebar button[aria-pressed=true]{color:#1d4ed8;background:#e8effc;font-weight:700}.teacher-library-sidebar>button:not(:first-child){margin-top:8px}.teacher-library-list{min-width:0}.teacher-library-browser .teacher-library-list :is(.teacher-library-list-title,.lesson-library-recent>h3){display:flex;align-items:center;gap:8px;margin:0 0 8px;font-size:16px;color:#18263b}.teacher-library-list-title small{color:#64748b;font-size:12px;font-weight:400}.teacher-library-browser .teacher-library-list .lesson-title{font-size:14px;line-height:1.45;white-space:normal;overflow-wrap:anywhere;overflow:visible;text-overflow:clip}.teacher-library-browser .teacher-library-list .lesson-details small{font-size:12px;line-height:1.45;white-space:normal;overflow-wrap:anywhere}.teacher-library-browser .teacher-library-list .pdf-menu-lesson{width:100%;min-height:60px;padding:10px 0;gap:10px;border:0;border-radius:0;background:transparent}.teacher-library-browser .teacher-library-list :is(.pdf-menu-lesson-row,.lesson-recent-row){border-bottom:1px solid #dce3ed;gap:8px}.teacher-library-browser .teacher-library-list .pdf-menu-lesson:hover{background:#eef2f7}.teacher-library-browser .teacher-library-list .lesson-thumbnail{background:transparent;border:0;font-size:10px;color:#64748b}.teacher-library-browser .teacher-library-list :is(.lesson-new-window,.lesson-row-options-toggle){background:transparent;border:0}.teacher-library-browser .teacher-library-list .lesson-row-options{padding-bottom:8px}.teacher-library-browser .hidden-lessons{margin-top:20px;border-top:1px solid #dce3ed;padding-top:10px}.teacher-menu-popup .platform-library{max-width:960px;margin-inline:auto}@media(max-width:650px){.teacher-menu-popup .teacher-library-browser{padding:0}.teacher-library-browser .lesson-library-header{gap:8px}.teacher-library-browser .teacher-menu-navigation{width:100%}.teacher-library-browser .teacher-menu-navigation a{padding-inline:8px}.teacher-library-tools{gap:8px}.teacher-library-tools .lesson-library-current{width:100%}.teacher-library-tools .group-field select{flex:1;width:auto}.teacher-library-content{grid-template-columns:minmax(0,1fr);gap:18px}.teacher-library-sidebar{display:flex;flex-wrap:wrap;gap:4px;border-right:0;border-bottom:1px solid #dce3ed;padding:0 0 12px}.teacher-library-sidebar section{display:flex;flex-wrap:wrap;gap:4px;margin:0;width:100%}.teacher-library-sidebar h3{width:64px;padding:0 8px;margin:0;align-self:center}.teacher-library-sidebar button{width:auto;min-width:64px}.teacher-library-sidebar>button:not(:first-child){margin:0}.teacher-library-browser .teacher-library-list .lesson-title{font-size:14px}.teacher-library-browser .lesson-document-drop{flex-wrap:wrap;gap:4px}}@media(pointer:coarse){.teacher-library-browser :is(.teacher-menu-navigation a,.teacher-library-sidebar button,.lesson-new-window,.lesson-row-options-toggle,.teacher-library-more summary,.teacher-library-more-actions button,.teacher-library-more-actions label),.teacher-library-browser .lesson-library-actions>.pdf-menu-action{min-height:44px;height:auto}.teacher-library-browser .teacher-library-list :is(.pdf-menu-lesson-row:has(.lesson-new-window),.lesson-recent-row:has(.lesson-new-window)){grid-template-columns:minmax(0,1fr) 44px 44px}.teacher-library-browser .teacher-library-list .lesson-recent-row:has(.lesson-new-window){grid-template-columns:minmax(0,1fr) 44px}.teacher-library-browser .teacher-library-list :is(.lesson-new-window,.lesson-row-options-toggle){width:44px}.teacher-library-tools .group-field select{font-size:16px;min-height:44px}}.teacher-library-browser .teacher-library-list .pdf-menu-lesson-row.active .pdf-menu-lesson{background:#e8effc}@media(max-width:650px){.teacher-library-tools .lesson-library-actions{position:relative;max-width:100%}.teacher-library-more{position:static}.teacher-library-more-actions{left:auto;right:0}}.app-shell[data-toolbar-theme]{--board-toolbar-background: #f1f5f9}.app-shell[data-toolbar-theme=year-1]{--board-toolbar-background: #fecaca}.app-shell[data-toolbar-theme=year-2]{--board-toolbar-background: #fed7aa}.app-shell[data-toolbar-theme=year-3]{--board-toolbar-background: #fef08a}.app-shell[data-toolbar-theme=year-4]{--board-toolbar-background: #bbf7d0}.app-shell[data-toolbar-theme=year-5]{--board-toolbar-background: #bae6fd}.app-shell[data-toolbar-theme=year-6]{--board-toolbar-background: #e9d5ff}.app-shell[data-toolbar-theme]:not([data-toolbar-theme=teacher]) .toolbar,.app-shell[data-toolbar-theme]:not([data-toolbar-theme=teacher]) .mobile-student-toolbar{background:var(--board-toolbar-background)}.app-shell[data-toolbar-theme=teacher] .toolbar:not(.teaching-floating-toolbar){grid-template-rows:44px 34px;max-height:none}.app-shell[data-toolbar-theme=teacher] .toolbar:not(.teaching-floating-toolbar)>.toolbar-row{flex-wrap:nowrap;min-width:max-content;height:auto}.app-shell[data-toolbar-theme=teacher] .toolbar:not(.teaching-floating-toolbar) .tool-settings:has(.pen-size-presets){flex-wrap:nowrap;min-width:max-content}.teaching-stamp-label{font-size:11px;font-weight:700;line-height:1}.teacher-timer{position:absolute;top:12px;right:12px;z-index:25;width:max-content;min-width:226px;max-width:calc(100% - 16px);padding:6px;box-sizing:border-box;background:#000;color:#fff;border:1px solid #525252;border-radius:10px;box-shadow:0 3px 14px #0005;-webkit-user-select:none;user-select:none;touch-action:none}.teacher-timer header,.timer-duration{display:flex;align-items:center;gap:4px}.teacher-timer button{display:flex;align-items:center;justify-content:center;width:32px;height:32px;min-height:32px;padding:0;border:1px solid #cbd5e1;border-radius:6px;color:inherit;background:#171717;touch-action:none}.teacher-timer button[aria-pressed=true]{background:#1e3a8a;border-color:#60a5fa}.teacher-timer .timer-drag{flex:1;cursor:grab}.teacher-timer output{display:block;padding:0 4px;text-align:center;font-size:51px;line-height:1.2;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}.timer-duration{justify-content:center;margin:2px 0 0;font-size:12px}.timer-duration input{width:44px;min-width:0;padding:4px 2px;border:1px solid #525252;border-radius:4px;background:#171717;color:#fff;font:inherit;text-align:center;touch-action:manipulation}.teacher-timer .timer-expired,.timer-alarm-message{color:#f87171}.timer-alarm-message{display:block;text-align:center;font-size:12px;font-weight:700}.workspace-frame{display:contents}.desktop-student-mode{background:#f1f5f2;--desktop-work-panel: min(360px, 38vw)}.desktop-student-mode .workspace-frame{grid-area:2 / 1;display:grid;place-items:center;container-type:size;min-width:0;min-height:0;padding:10px}.desktop-student-mode:has(>.class-drawer.open) .workspace-frame{margin-inline-end:var(--desktop-work-panel)}.desktop-student-mode .workspace{grid-area:1 / 1;width:min(100cqw,100cqh,850px);aspect-ratio:1;border-radius:14px;box-shadow:inset 0 0 0 1px #b2cabb;background:radial-gradient(#bed1c4 1px,transparent 1px) 0 0 / 18px 18px,#e5eee8}.app-shell[data-toolbar-theme]>.desktop-student-toolbar.toolbar{display:grid;grid-template-rows:62px 62px;gap:0;padding:0;min-height:0;max-height:none;background:#fff;color:#18332c;border-bottom:1px solid #d9e5de}.desktop-student-toolbar .toolbar-row{min-height:0;max-width:900px;margin-inline:auto;padding:7px 12px;gap:6px;flex-wrap:nowrap}.desktop-student-toolbar .desktop-student-tools{border-top:1px solid #eef2ef}.desktop-student-toolbar .desktop-student-heading>.assignment-submission,.desktop-student-toolbar .desktop-student-heading>.assignment-submit-placeholder{min-width:0}.desktop-student-toolbar .student-worksheet-identity{min-width:0;flex:1}.desktop-student-toolbar .student-worksheet-title,.desktop-student-toolbar .student-worksheet-identity small{display:block;width:auto;max-width:none;min-height:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.desktop-student-toolbar .student-worksheet-identity small{color:#51685d}.desktop-student-toolbar .toolbar-row>button,.desktop-student-toolbar .toolbar-row .pdf-menu-wrap>button,.desktop-student-toolbar .toolbar-row .page-controls>button,.desktop-student-toolbar .toolbar-row .color-presets button{display:inline-grid;place-items:center;width:48px;min-width:48px;height:48px;padding:4px;border-radius:9px}.desktop-student-toolbar .toolbar-row .assignment-submit-button,.desktop-student-toolbar .toolbar-row .assignment-resubmit-link{width:48px;min-width:48px;height:48px;min-height:48px;padding:4px;margin:0}.desktop-student-toolbar .toolbar-row .kid-tool-label,.desktop-student-toolbar .toolbar-row .swatch-label,.desktop-student-toolbar .student-desk-return>span{display:none}.desktop-student-toolbar .desktop-student-tools>.color-presets{flex:0 0 auto}.desktop-student-toolbar .color-dot{height:16px;width:16px}.desktop-student-toolbar .desktop-student-tools .page-controls{margin-inline-start:auto}.desktop-student-toolbar .desktop-student-tools button.active{background:#d9f2e5;color:#115438;border-color:#4d9a76}.desktop-student-toolbar .pdf-menu-wrap .pdf-menu{right:0;left:auto}.desktop-student-toolbar .kid-tools-popover{position:absolute;top:calc(100% + 4px);right:max(8px,calc((100% - 876px)/2));width:min(420px,calc(100vw - 16px));max-height:calc(100dvh - 145px);padding:8px 10px;gap:0;border:1px solid #c1d4c8;border-radius:10px;background:#fff}.desktop-student-toolbar .kid-tools-popover[hidden]{display:none}.desktop-student-toolbar .kid-tools-popover>header{gap:4px;font-size:15px}.desktop-student-toolbar .desktop-tool-section,.desktop-student-toolbar .desktop-tool-footer{padding:5px 0;border-top:1px solid #e6eee8}.desktop-student-toolbar .desktop-tool-section h3{margin:0 0 4px;color:#51685d;font-size:12px;font-weight:700}.desktop-student-toolbar .desktop-tool-row,.desktop-student-toolbar .kid-tools-popover :is(.toolbar-group,.tool-settings,.color-presets,.pen-mode-presets,.shape-presets,.chapter-controls){display:flex;align-items:center;flex-wrap:wrap;min-width:0;max-width:100%;gap:4px}.desktop-student-toolbar .kid-tools-popover :is(.toolbar-group,.tool-settings,.color-presets){margin:0;padding:0;border:0}.desktop-student-toolbar .kid-tools-popover button{display:inline-grid;place-items:center;width:36px;min-width:36px;height:36px;min-height:36px;padding:2px;border-radius:6px}.desktop-student-toolbar .kid-tools-popover .kid-tool-label,.desktop-student-toolbar .kid-tools-popover .chapter-controls button>span:not([aria-hidden]),.desktop-student-toolbar .kid-tools-popover .size-presets button>span:not([aria-hidden]){display:none}.desktop-student-toolbar .kid-tools-popover input:is(.zoom-percent,.page-jump){width:48px;min-width:0;height:36px;min-height:36px;font-size:14px}.desktop-student-toolbar .kid-tools-popover .geometry-menu-wrap:has(>.geometry-menu),.desktop-student-toolbar .kid-tools-popover .blank-page-wrap:has(>.blank-page-menu){display:contents}.desktop-student-toolbar .kid-tools-popover :is(.geometry-menu,.blank-page-menu){order:1;flex:1 0 100%;box-sizing:border-box;width:100%;min-width:0;display:flex;flex-wrap:wrap;gap:4px;padding:4px}.desktop-student-toolbar .kid-tools-popover .geometry-menu{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(165px,100%),1fr))}.desktop-student-toolbar .kid-tools-popover .geometry-menu button{grid-template-columns:24px minmax(0,1fr);justify-items:start;width:100%;height:auto;padding-inline:4px}.desktop-student-toolbar .kid-tools-popover .blank-page-menu button{width:auto;padding-inline:7px;font-size:13px}.desktop-student-toolbar .desktop-tool-footer{justify-content:space-between;padding-bottom:0}.desktop-student-toolbar .desktop-student-work[data-new-work=true]{border-color:#15803d;background:#dcfce7}.kid-student-mode.desktop-student-mode>.class-drawer{top:125px;width:var(--desktop-work-panel)}.kid-student-mode.desktop-student-mode:not(.mobile-student-mode)>.class-drawer:not(.open){visibility:hidden;pointer-events:none;transform:translate(100%)}.desktop-student-mode>.class-drawer .class-drawer-content,.desktop-student-mode>.class-drawer .class-panel{width:100%}@media(max-width:580px){.desktop-student-toolbar .toolbar-row{padding-inline:5px;gap:4px}.desktop-student-toolbar .desktop-student-tools{overflow-x:auto;scrollbar-width:thin}.desktop-student-toolbar .desktop-student-tools .page-controls{flex-shrink:0}}.desktop-student-toolbar :is(.toolbar-row,.kid-tools-popover) button[data-submenu=true]{position:relative;border:3px double #749482}.desktop-student-toolbar :is(.toolbar-row,.kid-tools-popover) button[data-submenu=true]:after{content:"";position:absolute;top:2px;right:2px;width:0;height:0;border-top:5px solid #496b58;border-left:5px solid transparent;pointer-events:none}.desktop-student-toolbar :is(.toolbar-row,.kid-tools-popover) button[data-submenu=true][aria-expanded=true]{border-color:#0f7650;background:#e3f5ea}.teacher-toolbar-popover{position:fixed;z-index:1100;display:grid;grid-template-columns:repeat(3,34px);gap:6px;padding:8px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);overflow:auto;background:#f8fafc;border:1px solid #d9dee8;border-radius:8px;box-shadow:0 8px 24px #0f172a26}.teacher-toolbar-popover button{min-width:34px;min-height:34px;padding:0}.teacher-toolbar-popover :focus-visible{outline:2px solid #2563eb;outline-offset:2px}.chapter-action-buttons,.teacher-more-page-actions{display:contents}.teacher-insert-menu:has(.geometry-menu){width:min(460px,calc(100vw - 16px));grid-template-columns:repeat(3,minmax(0,1fr))}.teacher-insert-menu:has(.geometry-menu)>button{width:34px;justify-self:start}.teacher-insert-menu .geometry-menu-wrap:has(.geometry-menu){display:contents}.teacher-insert-menu .geometry-menu{position:static;grid-column:1 / -1;width:auto;min-width:0;box-sizing:border-box;grid-template-columns:repeat(2,minmax(0,1fr));max-height:min(330px,50dvh);box-shadow:none}@media print{.teacher-toolbar-popover{display:none}}.worksheet-review-dialog{position:fixed;top:0;right:0;bottom:0;left:0;z-index:300;display:grid;min-width:0;min-height:0;background:#f1f5f9}
