#homework-card{max-width:1240px;width:100%;padding:28px}.hw-workspace{display:grid;grid-template-columns:minmax(280px,.85fr) minmax(340px,1.2fr);gap:22px;align-items:start;text-align:left}.hw-conversation{min-width:0}.hw-conversation>h2{font-size:15px;margin:18px 0}.hw-conversation #hw-chat{max-height:430px;overflow-y:auto}.hw-conversation .voice-mode{font-size:10px;line-height:1.5}.hw-conversation .hw-form{flex-wrap:wrap}.hw-conversation #hw-text{min-width:120px}.hw-conversation .hw-help-actions{flex-wrap:wrap}.hw-board{border:1px solid #dfe8f5;border-radius:18px;background:#fff;min-width:0;overflow:hidden}.nb-heading{display:flex;justify-content:space-between;align-items:center;padding:20px;border-bottom:1px solid #e9eff8;gap:10px}.nb-heading h2{font-size:15px;margin:0}.nb-count{font-size:11px;color:#8194b0}.nb-paper{padding:20px;background-image:radial-gradient(#d9e5f5 .8px,transparent .8px);background-size:20px 20px}.nb-meta{display:flex;align-items:center;justify-content:space-between;gap:8px}.nb-topic{font-size:9px;letter-spacing:1.5px;color:#7c95b8}.nb-sound,.nb-controls button{border:1px solid #dce5f2;border-radius:9px;background:white;color:#44668f;padding:7px 9px;font-family:inherit;font-size:11px;font-weight:600;cursor:pointer}.nb-sound{font-size:10px}.nb-title{font-size:19px;line-height:1.4;margin:20px 0 10px}.nb-content{min-height:285px;max-height:520px;overflow:auto;display:flex;flex-direction:column;align-items:center;padding:20px 8px;scroll-behavior:smooth}.nb-empty{font-size:15px;line-height:1.8;color:#8499b7;max-width:260px;text-align:center;margin:auto}.nb-working{flex-shrink:0;max-width:100%}.nb-row{display:grid;grid-template-columns:repeat(var(--nb-cols),minmax(0,1fr));align-items:center}.nb-cell{padding:8px 4px;text-align:center;font-variant-numeric:tabular-nums;white-space:pre-wrap;overflow-wrap:anywhere;min-width:0}.nb-columns,.nb-division{font-size:clamp(18px,2.5vw,34px);min-width:min(100%,240px);width:max-content;max-width:100%}.nb-columns .nb-row,.nb-division .nb-row{grid-template-columns:repeat(var(--nb-cols),minmax(25px,48px))}.nb-equations,.nb-diagram{font-size:clamp(18px,2vw,27px);width:100%}.nb-equations .nb-cell,.nb-diagram .nb-cell{padding:13px 3px}.nb-given{color:#173054}.nb-note{color:#8b5ac4}.nb-answer{color:#168364;font-weight:700}.nb-columns .nb-note{font-size:.65em;align-self:end}.nb-rule .nb-cell{border-top:2px solid #adc1da}.nb-dividend .nb-cell:not(:first-child){border-top:2px solid #adc1da}.nb-dividend .nb-cell:nth-child(2){border-left:2px solid #adc1da}.nb-replaced{font-size:.7em;color:#9a8ba5;text-decoration-thickness:2px}.nb-fraction{display:inline-flex;flex-direction:column;vertical-align:middle;text-align:center;margin:0 5px;font-size:.85em;line-height:1.3}.nb-fraction>span:first-child{border-bottom:1px solid;padding-bottom:3px}.nb-fraction>span:last-child{padding-top:3px}.nb-cell sup,.nb-cell sub{font-size:.6em}.nb-diagram{width:100%;max-width:360px;max-height:240px;flex-shrink:0;overflow:visible}.nb-diagram polygon,.nb-diagram rect{fill:#edf4ff;stroke:#658ac4;stroke-width:2}.nb-diagram text{font:14px sans-serif;fill:#173054}.nb-diagram text.nb-answer{fill:#168364}.nb-diagram text.nb-note{fill:#8b5ac4}.nb-gridline{stroke:#b5cdec;stroke-width:1}.nb-schematic{font-size:9px;color:#92a3ba}.nb-caption{font-size:12px;line-height:1.6;background:#ffffffec;border:1px solid #e0e9f6;padding:12px;border-radius:10px;margin:15px 0 8px}.nb-question{font-size:13px;line-height:1.6;color:#315b91;margin:8px 0 0}.nb-controls{display:flex;flex-wrap:wrap;gap:6px;align-items:center;padding:13px;border-top:1px solid #edf1f7}.nb-history{display:flex;gap:3px;max-width:190px;overflow:auto}.nb-history button[aria-current]{background:#e9f1ff;border-color:#9bbdff;color:#2563eb}.nb-controls button:disabled{opacity:.4;cursor:default}.nb-legend{display:flex;gap:15px;padding:0 16px 16px;font-size:9px;color:#5f779b}.nb-changed{animation:nb-reveal .6s ease both}.nb-flash{animation:nb-pulse .6s ease}.hw-mobile-jump{display:none}.hw-review-note{font-size:12px;color:#5578a7;line-height:1.5}.hw-board button:focus-visible,.nb-content:focus-visible{outline:3px solid #93b8ff;outline-offset:2px}@keyframes nb-reveal{from{background:#dbeafe;opacity:.4;transform:translateY(-5px)}to{background:transparent;opacity:1;transform:translateY(0)}}@keyframes nb-pulse{from{background-color:#dbeafe80}to{background-color:transparent}}@media(max-width:850px){#homework-card{padding:18px}.hw-workspace{grid-template-columns:1fr}.hw-board{grid-row:1}.nb-content{min-height:235px;max-height:350px}.hw-mobile-jump{display:flex;gap:8px;margin:12px 0;position:sticky;top:8px;z-index:3;justify-content:center}.hw-mobile-jump button{font-size:12px;background:#fff;border:1px solid #dce7f7;border-radius:12px;padding:8px 15px;color:#2563eb;box-shadow:0 3px 12px #17305412}.nb-paper{padding:16px}.hw-conversation #hw-chat{max-height:270px}.hw-board,.hw-conversation{scroll-margin-top:65px}.nb-columns .nb-row,.nb-division .nb-row{grid-template-columns:repeat(var(--nb-cols),minmax(21px,38px))}.nb-columns,.nb-division{font-size:26px}.nb-equations{font-size:22px}.nb-legend{gap:10px}}@media(prefers-reduced-motion:reduce){.nb-changed,.nb-flash{animation:none}.nb-content{scroll-behavior:auto}}
/* Give the teaching workspace the full desktop canvas, rather than the home menu width. */
main:has(#homework-card){width:calc(100% - 64px);max-width:1680px;padding:30px 0 70px}#homework-card{max-width:none;padding:30px}.hw-workspace{grid-template-columns:minmax(0,1fr) minmax(0,1.08fr);gap:32px}.hw-conversation #hw-chat{max-height:560px}.nb-content{min-height:350px;max-height:600px}.nb-place-label{font-size:13px;font-weight:600;letter-spacing:.7px;color:#7c95b8}@media(max-width:1100px) and (min-width:851px){main:has(#homework-card){width:calc(100% - 32px)}#homework-card{padding:22px}.hw-workspace{gap:22px}}@media(max-width:850px){main:has(#homework-card){width:calc(100% - 24px);padding-top:20px}#homework-card{padding:16px}.hw-workspace{grid-template-columns:1fr;gap:20px}.hw-conversation #hw-chat{max-height:300px}.nb-content{min-height:235px;max-height:350px}}
/* Reserve every glyph's space, then reveal it without moving existing working. */
.nb-ink{opacity:0}.nb-writing .nb-ink{animation:nb-write-in 100ms linear var(--ink-delay,0ms) both}.nb-write{animation:none}@keyframes nb-write-in{from{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){.nb-ink{opacity:1}.nb-writing .nb-ink{animation:none}}
.nb-geometry{width:100%;max-width:600px;min-height:260px;max-height:420px;flex-shrink:0;overflow:visible}.nb-geo-shape{fill:#edf4ff;stroke:#567fc1;stroke-width:2.3;stroke-linejoin:round}.nb-geometry polyline{fill:none}.nb-geo-edge{stroke:#567fc1;stroke-width:2.3}.nb-geo-angle{fill:#dbeafe99;stroke:#7195c9;stroke-width:1.5}.nb-geo-right{fill:none}.nb-geo-point{fill:#325e9b;stroke:none}.nb-geometry .nb-geo-note:not(text){stroke:#8b5ac4}.nb-geometry .nb-geo-answer:not(text){stroke:#168364}.nb-geometry .nb-geo-angle.nb-geo-answer{fill:#d0efe099}.nb-geo-label{font:15px 'DM Sans',sans-serif;fill:#173054;paint-order:stroke;stroke:white;stroke-width:4px;stroke-linejoin:round}.nb-geo-label.nb-geo-note{fill:#8b5ac4}.nb-geo-label.nb-geo-answer{fill:#168364;font-weight:700}.nb-geometry .nb-geo-focus:not(text){stroke-width:3.5;filter:drop-shadow(0 0 3px #719cde55)}.nb-geometry .nb-geo-focus{animation:nb-geometry-focus .85s ease}.nb-geo-shape.nb-geo-new{stroke-dasharray:1;animation:nb-geometry-draw .7s ease both}@keyframes nb-geometry-draw{from{stroke-dashoffset:1;fill-opacity:.1}to{stroke-dashoffset:0;fill-opacity:1}}@keyframes nb-geometry-focus{from{opacity:.4}to{opacity:1}}@media(max-width:850px){.nb-geometry{min-height:210px;max-height:310px}}@media(prefers-reduced-motion:reduce){.nb-geometry .nb-geo-focus,.nb-geo-shape.nb-geo-new{animation:none}}
.nb-geometry-set{display:grid;gap:18px;width:100%}.nb-no-fill{fill:none!important}.nb-solid-face{stroke:none}.nb-net-face{fill:#edf4ff;stroke:#315c9c;stroke-width:2;stroke-linejoin:round}.nb-net-face.nb-geo-answer{fill:#dcfce7;stroke:#15803d}.nb-net-number,.nb-tick,.nb-diagram-footnote{fill:#59708e;font-family:inherit;font-size:12px}.nb-net-number{font-size:15px;font-weight:600}.nb-axis{stroke:#617b9e;stroke-width:1.5}.nb-gridline{stroke:#e1eaf6;stroke-width:1}.nb-figure-title{font-weight:600}.nb-figure-updated{animation:nb-figure-enter .7s ease-out}@keyframes nb-figure-enter{from{opacity:.35;transform:translateY(5px)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){.nb-figure-updated{animation:none}}
.nb-step-heading{font-size:16px;line-height:1.5;color:#0f2a5f;margin:24px 0 8px;text-align:left}.nb-step-explanation{font-size:13px;line-height:1.6;color:#607999;margin:0 0 12px;text-align:left}.nb-equations .nb-aligned-equation{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,2fr);gap:10px;align-items:center}.nb-eq-left{text-align:right}.nb-eq-right{text-align:left}.nb-result{border:2px solid #a8d6c4;border-radius:10px;background:#f0faf5;margin-top:12px}.nb-result .nb-cell{color:#168364;font-weight:700}
/* Mobile workspace and shared answer composer. */
.hw-composer{position:sticky;bottom:0;z-index:12;background:#fff;padding:12px 0 max(12px,env(safe-area-inset-bottom));border-top:1px solid #e2eaf6;margin-top:16px}.hw-composer .hw-form{display:flex;gap:8px;align-items:center}.hw-composer #hw-text{flex:1;min-width:0;font-size:16px}.hw-camera,.hw-send,.hw-mic,.hw-board-tools button,.hw-mobile-jump button,.hw-more-actions summary{min-width:44px;min-height:44px;box-sizing:border-box}.hw-camera{display:flex;align-items:center;justify-content:center;cursor:pointer}.hw-camera:focus-visible{outline:3px solid #93b8ff}.hw-more-actions summary{cursor:pointer;padding:12px;color:#315b91;font-size:14px}.hw-more-actions .hw-help-actions{display:flex;gap:10px;flex-wrap:wrap}.hw-board-tools{display:flex;align-items:center;gap:6px;justify-content:flex-end;padding:8px;border-bottom:1px solid #e2eaf6}.hw-board-tools button{border:1px solid #d8e4f4;background:white;border-radius:10px;color:#173b6d;font:inherit;cursor:pointer}.hw-board .nb-content{align-items:flex-start}.hw-board .nb-content>svg,.hw-board .nb-content>.nb-geometry-set,.hw-board .nb-content>.nb-working{zoom:var(--board-zoom,1);flex-shrink:0}.hw-board-open{overflow:hidden}.hw-board-expanded{position:fixed!important;inset:0!important;z-index:1000!important;background:white;border-radius:0!important;display:flex!important;flex-direction:column;padding-top:env(safe-area-inset-top)}.hw-board-expanded .nb-paper{flex:1;min-height:0;display:flex;flex-direction:column}.hw-board-expanded .nb-content{flex:1;min-height:0;max-height:none;overflow:auto;touch-action:none}.hw-board-expanded .nb-heading{padding:10px 20px}.hw-board-expanded .nb-controls{padding-bottom:max(12px,env(safe-area-inset-bottom))}.hw-board-expanded .nb-title{margin:8px 0}.hw-board-expanded .nb-caption:empty{display:none}
@media(max-width:850px){main:has(#homework-card){padding-bottom:90px;width:calc(100% - 16px)}#homework-card{padding:12px}.hw-workspace{display:block}.hw-mobile-jump{display:flex;position:sticky;top:0;z-index:15;background:#f5f9ff;padding:6px;margin:8px 0;gap:8px}.hw-mobile-jump button{flex:1;border-radius:10px;box-shadow:none}.hw-mobile-jump button[aria-selected=true]{background:#2563eb;color:white}.homework[data-mobile-tab=chat] .hw-board:not(.hw-board-expanded){display:none}.homework[data-mobile-tab=board] .hw-conversation{display:none}.hw-conversation>h2{display:none}.hw-conversation #hw-chat{max-height:55dvh;min-height:200px;overflow:auto;overscroll-behavior:contain}.hw-conversation .voice-mode{font-size:11px}.hw-composer{bottom:var(--hw-keyboard,0px);padding:8px 0 max(8px,env(safe-area-inset-bottom));margin-top:10px}.hw-composer .hw-form{flex-wrap:nowrap}.hw-composer .hw-mic{width:46px;height:46px;padding:8px}.hw-composer .hw-send{width:44px;padding:8px}.hw-top-actions button,.lesson-top .back,.nb-controls button{min-height:44px}.hw-top-actions{display:flex;gap:6px}.nb-paper{padding:12px}.nb-content{min-height:220px;max-height:52dvh;padding:12px 4px}.nb-heading{padding:12px}.nb-title{font-size:17px}.nb-geometry{min-height:230px;max-height:none}.hw-composer .prompt{font-size:13px;margin:6px 0}.hw-composer .hw-help-actions button{min-height:44px}.hw-board-expanded .nb-content{max-height:none}.hw-board-expanded .nb-geometry{max-width:none}.hw-photo img{max-height:120px;object-fit:contain}body:has(#homework-card) .tabbar{display:none}body:has(#homework-card)>header{padding-block:8px}body:has(#homework-card) footer{display:none}}
.hw-voice-options{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;padding:4px 0 10px;font-size:13px;color:#315b91}.hw-voice-options select{min-height:44px;max-width:100%;border:1px solid #cfdef2;border-radius:10px;background:#fff;color:#173054;padding:8px;font:inherit}.hw-voice-options span{width:100%;font-size:12px;line-height:1.5}@media(max-width:850px){.hw-voice-options select{flex:1;min-width:0;font-size:14px}.hw-voice-options span{font-size:11px}}
