:root{--ink:#193d30;--green:#27533c;--muted:#75806b;--paper:#f3f2e9;--line:#dadfd0;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI','PingFang SC','Microsoft YaHei',sans-serif;color:#40513c;background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,summary,select,input[type=range]{cursor:pointer;touch-action:manipulation}button{border:0;background:none;color:inherit;min-height:44px}button:disabled{opacity:.5;cursor:default}button:not(:disabled):hover{filter:brightness(.95)}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #90aa62;outline-offset:4px}a{color:inherit}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip{position:fixed;top:-80px;left:20px;background:white;padding:12px;z-index:30}.skip:focus{top:10px}
.site-header{min-height:80px;padding:17px 40px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;max-width:1600px;margin:auto;gap:16px}.brand{display:flex;gap:12px;align-items:center;text-decoration:none}.brand-mark{width:42px;height:42px;border-radius:50% 50% 5px 50%;background:var(--ink);color:#dfe7aa;display:grid;place-items:center;font:28px 'Songti SC',serif}.brand strong{font-size:20px;color:var(--ink);letter-spacing:.05em}.brand small{display:block;font-size:10px;color:var(--muted);margin-top:4px;letter-spacing:.07em}.header-end{display:flex;gap:18px;align-items:center}.connection{display:flex;align-items:center;gap:8px;font-size:11px;color:#6b795c}.connection i{width:6px;height:6px;border-radius:50%;background:#939a87}.connection i.live{background:#628747;box-shadow:0 0 0 3px #e3ead9}.demo-badge{border:1px solid #ced7be;border-radius:20px;padding:7px 12px;font-size:11px;color:#64704f}.workspace{max-width:1600px;margin:auto;padding:0 40px}.page-intro{display:flex;align-items:center;justify-content:space-between;padding:25px 0 22px}.eyebrow{font-size:9px;letter-spacing:.22em;color:#81865e;margin:0 0 8px}h1{font-size:32px;line-height:1.4;letter-spacing:-.04em;color:var(--ink);margin:0;font-weight:560}h1 em{font-style:normal;color:#74894f}.page-intro>p{font-size:12px;line-height:1.9;text-align:right;color:#778269;margin:0}
.question-studio{background:#fbfbf7;border:1px solid #d4ddc9;border-radius:10px;padding:17px 20px 10px;box-shadow:0 5px 15px #273b1f03;margin-bottom:23px}#question-label{font-size:12px;font-weight:550;display:flex;align-items:center;gap:9px;margin-bottom:9px}.input-number{font-size:10px;color:#83936a;border:1px solid #cdd8bd;border-radius:4px;padding:3px 5px}.input-row{display:flex;align-items:center;gap:16px}#question-input{flex:1;min-width:0;border:0;outline:none;background:transparent;color:#2f4533;padding:2px 0;font-size:15px;line-height:1.8;resize:vertical;min-height:55px;max-height:180px}#question-input:focus-visible{outline:2px solid #a3b480;outline-offset:5px;border-radius:4px}textarea::placeholder{color:#8b9580}.generate-button{display:flex;align-items:center;justify-content:center;gap:13px;min-height:49px;background:var(--green);color:#f1f6df;border-radius:7px;padding:12px 19px;font-size:13px;white-space:nowrap;box-shadow:0 4px 8px #224c3514}.generate-button>span:first-child{font-size:24px;color:#d8e5ab;line-height:1}.cancel-button{font-size:12px;color:#8d5b35}.question-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #e7ebdd;margin-top:11px;padding-top:5px}.examples{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.examples>span{font-size:10px;color:#808c6d;margin-right:3px}.examples button{font-size:11px;min-height:36px;background:#edf1e4;padding:6px 10px;border-radius:5px;color:#687a50}.input-hint{font-size:10px;color:#7f8970}.generation-status{font-size:13px;line-height:1.8;border-radius:6px;padding:10px 14px;background:#e9efdc;color:#536b3e;margin:10px 0 0}.generation-status.error{background:#fcecdf;color:#8a4d2c}.generation-status.clarification{background:#f9f1d7;color:#7a6225}
.classroom{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:25px;align-items:start}.board-column{min-width:0}.lesson-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px;padding:0 3px}.lesson-heading>div{display:flex;align-items:center;gap:10px;min-width:0}.lesson-type{font-size:10px;border:1px solid #d5dfc5;border-radius:4px;background:#e8eddc;padding:5px 8px;white-space:nowrap}.lesson-type.live{background:#e0edd6;color:#4e7136}.lesson-heading h2{font-size:16px;font-weight:550;line-height:1.5;margin:0;color:#2f432e;overflow-wrap:anywhere}.scene-count{font-size:11px;white-space:nowrap;color:#7a866b;font-variant-numeric:tabular-nums}
.board-frame{position:relative;padding:11px 11px 0;border-radius:7px 7px 3px 3px;background:linear-gradient(90deg,#827151,#b7a17a 1%,#8f7c5c 2%,#a28e68 98%,#736448 99%);box-shadow:0 18px 30px -20px #243b2c8c,0 2px 3px #453b292b,inset 0 1px 2px #e0c49e;isolation:isolate}.chalk-surface{background-color:#193b30;background-image:radial-gradient(ellipse at 35% 32%,#54715b30,transparent 55%),radial-gradient(ellipse at 80% 88%,#87937e16,transparent 44%),linear-gradient(155deg,#21493699,#102b2355);box-shadow:inset 0 2px 9px #081d1bad,inset 0 0 50px #061b1326;position:relative;overflow:hidden}.chalk-surface::before{content:'';position:absolute;inset:0;pointer-events:none;z-index:3;opacity:.14;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23ffffff' opacity='.62' filter='url(%23n)' d='M0 0h160v160H0z'/%3E%3C/svg%3E");mix-blend-mode:screen}.chalk-surface::after{content:'';position:absolute;inset:20% 8%;border-radius:45%;background:linear-gradient(168deg,transparent 20%,#c0cab408 22%,transparent 24%,transparent 38%,#d9e4c907 42%,transparent 44%,transparent 58%,#d9e4c907 60%,transparent 63%);transform:rotate(-4deg);pointer-events:none}.board-top{padding:18px 24px 0;display:flex;justify-content:space-between;gap:12px;font-size:10px;letter-spacing:.06em;color:#c9d5b8;position:relative;z-index:4}.board-top>span:first-child{display:flex;align-items:center;gap:7px}.board-top i{width:4px;height:4px;background:#d5e6ad;border-radius:50%}.chalk-stage{width:100%;aspect-ratio:900/520;position:relative;z-index:2}.chalk-stage>svg{display:block;width:100%;height:100%;stroke-width:initial;fill:initial}.board-caption{position:relative;z-index:4;color:#d3dfc2;font-size:13px;line-height:1.8;min-height:43px;text-align:center;padding:0 25px 18px;overflow-wrap:anywhere}.chalk-tray{height:21px;margin:0 -16px -2px;position:relative;z-index:5;border-radius:2px 2px 5px 5px;background:linear-gradient(#ac9773,#bba584 12%,#7f6e51 19%,#a28a64 32%,#a28a64 68%,#655941 75%,#8d7955);box-shadow:0 4px 7px #30312038}.chalk-stick{position:absolute;top:-7px;width:34px;height:7px;border-radius:2px;background:#e7e8dc;transform:rotate(-3deg);box-shadow:1px 2px 2px #14241a66,inset 0 1px #fff8}.chalk-stick.white{left:40px}.chalk-stick.yellow{left:84px;background:#e8cf78;transform:rotate(3deg);width:29px}.chalk-stick.blue{left:124px;background:#9bc6cb;transform:rotate(-5deg);width:25px}.eraser{position:absolute;right:40px;top:-11px;width:60px;height:16px;border-radius:3px;background:linear-gradient(#7c705a 45%,#454a3c 48%,#454a3c 80%,#333c31);box-shadow:1px 3px 3px #15221a80;transform:rotate(2deg)}
.player{display:flex;align-items:center;gap:13px;padding:17px 4px 11px}.play-button{display:grid;place-items:center;min-width:44px;min-height:44px;border-radius:50%;background:var(--green);color:#e6efc5}.play-button svg{width:19px;stroke-width:2}.icon-button{min-width:42px;display:grid;place-items:center;color:#6c7c58;border-radius:50%}.icon-button svg{width:17px}.timeline-wrap{flex:1;min-width:30px;display:flex;align-items:center;gap:12px}input[type=range]{min-width:20px;width:100%;accent-color:var(--green);height:28px;margin:0}#time-label{font-size:10px;white-space:nowrap;color:#7b886d;font-variant-numeric:tabular-nums}.speed-label select{appearance:none;border:1px solid #d2dcc4;background:#f6f8ef;color:#576c45;border-radius:6px;padding:8px 9px;min-height:42px;font-size:12px;text-align:center}.voice-button{display:flex;align-items:center;gap:6px;color:#5c7347;font-size:12px;white-space:nowrap}.voice-button svg{width:17px}.voice-button.speaking{background:#dde8cb;padding:0 9px;border-radius:6px}.scene-tabs{display:flex;gap:8px;flex-wrap:wrap;padding:5px 2px 0}.scene-tab{flex:1;display:flex;align-items:center;justify-content:center;gap:7px;border:1px solid #d6dfc9;border-radius:6px;padding:8px 11px;min-height:42px;font-size:11px;background:#f9faf3;color:#6e805d}.scene-tab>span{font-size:10px;opacity:.7}.scene-tab.active{background:#e3ecd4;border-color:#9eb77e;color:#405f2d;font-weight:600}.voice-status{font-size:11px;color:#748563;line-height:1.8;margin:10px 3px 0}.voice-status:empty{display:none}
.lesson-notes{margin-top:38px;border:1px solid #dce1d0;border-radius:8px;background:#fbfbf6;overflow:hidden;min-width:0}.notes-header{padding:20px;display:flex;gap:10px;align-items:center;border-bottom:1px solid #e8ecde}.note-icon{width:35px;height:37px;display:grid;place-items:center;background:#e7eed9;color:#7d965d;border-radius:8px}.note-icon svg{width:18px}.notes-header h2{font-size:15px;font-weight:550;margin:0 0 5px;color:#354d2e}.notes-header p{font-size:10px;margin:0;color:#879578}.current-note{padding:24px 22px 19px}.note-eyebrow{font-size:9px;letter-spacing:.12em;color:#899a72;font-weight:600}.current-note h3{font-size:19px;line-height:1.5;color:#39512f;font-weight:500;margin:10px 0 12px}.current-note p{font-size:13px;line-height:1.95;white-space:pre-wrap;overflow-wrap:anywhere;color:#65765a;margin:0}.next-button{width:100%;display:flex;align-items:center;justify-content:space-between;border:1px solid #d5dfc5;border-radius:6px;background:#f0f5e6;padding:10px 12px;font-size:12px;color:#577444;margin-top:18px}.question-note{margin:0 22px;padding:18px 0;border-top:1px dashed #d6dec6}.question-note p{font-size:12px;line-height:1.85;color:#78896a;white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0 0}.takeaway{margin:0 14px 18px;padding:16px;border:1px solid #e5dfc3;background:#f2efda;border-radius:5px}.takeaway .note-eyebrow{color:#97875d}.takeaway p{font-size:12px;line-height:1.9;color:#7d7353;margin:8px 0 0;overflow-wrap:anywhere}.note-footer{padding:0 22px 17px;font-size:10px;line-height:1.8;color:#8a967e}.note-footer>span{color:#6e8556}.note-footer p{margin:5px 0 0}.transcript{margin-top:24px;border-top:1px solid var(--line);padding:8px 0}.transcript>summary{font-size:12px;min-height:48px;align-content:center;color:#657a53}.transcript>summary>span{font-size:10px;color:#929e80;margin-left:12px}#transcript-content{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:10px 0 20px}#transcript-content article{background:#fcfcf7;border:1px solid var(--line);padding:20px;border-radius:6px}#transcript-content h3{font-size:16px;margin:0 0 12px;color:#425c33}#transcript-content p{font-size:13px;line-height:1.9;overflow-wrap:anywhere}#transcript-content .transcript-equation{font-size:17px;color:#324c2e}footer{display:flex;justify-content:space-between;gap:12px;padding:18px 0 26px;border-top:1px solid var(--line);font-size:10px;color:#909d7f}.board-column.is-loading .board-frame{opacity:.65}
@media(min-width:1500px){.workspace{padding:0 60px}.site-header{padding:18px 60px}.classroom{grid-template-columns:minmax(0,1fr) 340px;gap:30px}.current-note p{font-size:14px}.current-note{padding:26px}.lesson-heading h2{font-size:18px}}
@media(max-width:1100px){.workspace{padding:0 26px}.site-header{padding:17px 26px}.classroom{grid-template-columns:minmax(0,1fr) 260px;gap:18px}.current-note{padding:20px 17px}.notes-header{padding:18px 17px}.question-note{margin:0 17px}.note-footer{padding:0 17px 16px}.board-caption{font-size:12px;padding:0 20px 15px}.player{gap:7px}.timeline-wrap{gap:7px}#time-label{display:none}.generate-button{padding:13px 15px;gap:9px}.scene-tab{padding:8px 9px;gap:5px}.lesson-heading h2{font-size:14px}}
@media(max-width:840px){.classroom{grid-template-columns:1fr}.lesson-notes{margin-top:0;display:grid;grid-template-columns:1.2fr 1fr}.notes-header{grid-column:1/-1}.current-note{grid-row:2/5}.question-note{margin:0 18px;border-top:0;padding-top:20px}.takeaway{margin:0 14px 14px}.note-footer{grid-column:1/-1;border-top:1px solid var(--line);padding:13px 18px}.player{gap:12px}#time-label{display:block}.input-hint{display:none}.board-caption{font-size:13px}.board-frame{padding:9px 9px 0}.chalk-tray{margin:0 -13px -2px}}
@media(max-width:520px){.site-header{min-height:74px;padding:15px 17px;gap:10px}.brand strong{font-size:18px}.brand small{font-size:8px;letter-spacing:.05em}.brand-mark{width:36px;height:36px;font-size:25px}.brand{gap:9px}.connection{font-size:9px;max-width:105px;line-height:1.6;gap:6px}.demo-badge{display:none}.workspace{padding:0 16px}.page-intro{padding:25px 0 19px}.page-intro h1{font-size:28px}.page-intro>p{display:none}.eyebrow{font-size:8px;letter-spacing:.18em}.question-studio{padding:15px 14px 9px;border-radius:9px}.input-row{flex-wrap:wrap;gap:10px}#question-input{flex-basis:100%;min-height:76px;font-size:14px}.generate-button{flex:1;min-height:46px;font-size:12px;justify-content:center;padding:12px}.generate-button>span:last-child{margin-left:auto}.generate-button>span:first-child{margin-right:auto}.question-bottom{margin-top:12px;padding-top:5px}.examples{gap:5px}.examples>span{font-size:9px;margin-right:0}.examples button{font-size:10px;padding:8px 7px;min-height:40px}.lesson-heading{padding:0;gap:7px;margin-bottom:10px}.lesson-heading>div{gap:7px}.lesson-heading h2{font-size:13px}.lesson-type{font-size:9px;padding:5px 6px}.scene-count{font-size:9px}.board-frame{padding:7px 7px 0;border-radius:4px 4px 0 0}.board-top{font-size:8px;padding:15px 13px 0;gap:7px}.board-caption{font-size:11px;line-height:1.8;padding:4px 15px 18px;min-height:50px;text-align:left}.chalk-stage{min-height:205px}.chalk-tray{height:16px;margin:0 -10px -2px}.chalk-stick{height:5px;top:-4px;width:26px}.chalk-stick.white{left:22px}.chalk-stick.yellow{left:57px;width:23px}.chalk-stick.blue{left:89px;width:21px}.eraser{width:44px;height:12px;top:-8px;right:24px}.player{gap:5px;padding:13px 0 8px}.play-button{min-width:42px;min-height:42px}.icon-button{min-width:38px}.speed-label select{font-size:11px;min-height:40px;padding:7px 6px}#time-label{display:none}.voice-button{font-size:10px;gap:4px;padding:0 3px}.voice-button svg{width:15px}.scene-tabs{padding:3px 0 0;gap:6px}.scene-tab{font-size:10px;min-height:42px;padding:7px 8px;flex-basis:42%}.scene-tab>span{font-size:9px}.lesson-notes{display:block}.notes-header{padding:17px 18px}.current-note{padding:19px}.current-note p{font-size:13px}.question-note{margin:0 19px;padding:17px 0;border-top:1px dashed #d6ddc9}.takeaway{margin:0 13px 16px}.note-footer{padding:12px 19px 16px}#transcript-content{grid-template-columns:1fr}.transcript>summary>span{display:none}footer{flex-direction:column;font-size:9px;gap:6px}.generation-status{font-size:12px;padding:10px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Geometry lessons keep the figure visible while its proof develops. */
.lesson-heading-end{display:flex;align-items:center;gap:12px;flex-shrink:0}.focus-button{display:flex;align-items:center;gap:6px;padding:6px 10px;min-height:36px;border:1px solid #d1dbc6;border-radius:5px;color:#657c4c;font-size:10px;background:#f8faf2}.focus-button svg{width:14px;height:14px}.geometry-legend{display:flex;align-items:center;gap:15px;padding:2px 3px 14px;font-size:10px;color:#6a7c59}.geometry-legend>span{display:flex;align-items:center;gap:6px}.geometry-legend i{width:19px;height:0;border-top:2px solid}.legend-base{color:#62745d}.legend-aux{color:#438da1;border-top-style:dashed!important}.legend-focus{color:#a39038}.geometry-legend small{font-size:9px;color:#899679;margin-left:auto}.geometry-lesson .lesson-notes{margin-top:75px}.geometry-context{padding:18px 22px 0}.geometry-context+.current-note{padding-top:18px}#geometry-focus{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.geometry-focus-tag{font-size:10px;border:1px solid #d9e2c4;border-radius:4px;padding:5px 8px;background:#edf3df;color:#697c47}#geometry-focus>p{font-size:12px;line-height:1.8;margin:0;color:#738664}.transcript-diagram{padding:10px;border-left:2px solid #9daf79;background:#f2f5e8;color:#5d7450}.chalk-stage.has-geometry{transition:none}.chalk-stage.has-geometry>svg{overflow:visible}.board-focus{overflow-x:hidden}.board-focus .site-header,.board-focus .page-intro,.board-focus .question-studio,.board-focus .lesson-notes,.board-focus .transcript,.board-focus footer{display:none}.board-focus .workspace{max-width:1600px;padding:18px 30px}.board-focus .classroom{display:block}.board-focus .board-column{max-width:1400px;margin:auto}.board-focus .board-caption{display:none}.board-focus .board-top{padding-top:14px}.board-focus .lesson-heading{margin-bottom:8px}.board-focus .geometry-legend{padding-bottom:10px}.board-focus .player{padding-top:15px}.board-focus .scene-tabs{padding-top:2px}.board-focus .board-frame{background:#85734e}.board-focus .focus-button{background:#e5edd7;color:#3f5d2d}
@media(max-width:840px){.geometry-lesson .lesson-notes{margin-top:0}.geometry-context{grid-column:1/-1}.geometry-context+.current-note{grid-row:auto;padding-top:20px}.geometry-lesson .current-note{grid-row:3/5}.board-focus .workspace{padding:15px 20px}}
@media(max-width:520px){.lesson-heading-end{gap:7px}.focus-button{min-width:40px;min-height:40px;padding:7px;font-size:0}.focus-button svg{width:16px;height:16px}.board-focus .focus-button{font-size:10px}.geometry-legend{gap:12px;padding:0 0 11px;font-size:9px}.geometry-legend small{display:none}.geometry-legend i{width:16px}.geometry-context{padding:17px 19px 0}.geometry-focus-tag{font-size:10px}.geometry-context+.current-note{padding-top:19px}.board-focus .workspace{padding:12px 16px}.board-focus .chalk-stage{min-height:400px}.board-focus .board-caption{display:block;font-size:11px}.board-focus .scene-tab{flex-basis:42%}.board-focus .board-column{padding-bottom:20px}}

@font-face{font-family:'Jiangyou Chalk';src:url('./fonts/LXGWWenKaiLite-Regular.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
/* Blackboard text must not inherit the dark icon stroke from the site's svg rule. */
:root{--chalk-hand-font:'Jiangyou Chalk','Kaiti SC','STKaiti','KaiTi',cursive}
.chalk-stage>.chalk-svg{stroke:none;fill:none}
.chalk-svg text{stroke:none;paint-order:stroke fill;font-synthesis:weight}

/* Classroom dialogue: Q&A, grade-aware reteaching, session-local multi-solution. */
.dialogue{margin-top:22px;border:1px solid #d7e0ca;border-radius:9px;background:#fbfcf6;overflow:hidden}
.dialogue-details>summary{display:flex;align-items:center;gap:12px;min-height:48px;padding:10px 18px;font-size:13px;font-weight:600;color:#3f5c34;cursor:pointer;list-style:none}
.dialogue-details>summary::-webkit-details-marker{display:none}
.dialogue-details>summary::before{content:'✧';color:#7d965d;font-size:16px}
.dialogue-details>summary>span:last-child{font-size:10px;font-weight:400;color:#8b977c}
.dialogue-body{padding:2px 18px 18px;display:grid;gap:14px}
.dialogue-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:12px;color:#5c7049}
.dialogue-row label{font-weight:600}
#grade-select{min-height:40px;border:1px solid #ccd8be;border-radius:6px;background:#f6f8ef;color:#4d6538;padding:7px 10px;font-size:12px}
.dialogue-action{min-height:40px;padding:8px 14px;border-radius:6px;background:var(--green);color:#f1f6df;font-size:12px;white-space:nowrap}
.dialogue-hint{font-size:10px;color:#8b977c}
.solution-tabs{display:flex;gap:8px;flex-wrap:wrap}
.solution-tab{min-height:38px;padding:7px 12px;border:1px solid #d4dfc4;border-radius:6px;background:#f7f9f1;color:#657a50;font-size:11px}
.solution-tab.active{background:#e3ecd4;border-color:#9eb77e;color:#405f2d;font-weight:600}
.dialogue-log{max-height:260px;min-height:56px;overflow-y:auto;display:grid;gap:10px;padding:12px;border:1px solid #e3e8d8;border-radius:7px;background:#fff}
.dialogue-log:empty::before{content:'还没有对话。可以先问一句「这一步为什么这样做」，或换一个学段重讲。';font-size:11px;color:#9aa58c;line-height:1.8}
.dialogue-message{font-size:12px;line-height:1.85;color:#4b5f41}
.dialogue-role{display:block;font-size:10px;font-weight:600;color:#7d965d;margin-bottom:3px}
.dialogue-message.from-user .dialogue-role{color:#a07a3c}
.dialogue-message p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.dialogue-form{display:flex;gap:10px;align-items:flex-end}
.dialogue-form textarea,.dialogue-idea textarea{flex:1;min-width:0;min-height:60px;max-height:160px;resize:vertical;border:1px solid #d3ddc6;border-radius:6px;background:#fff;padding:9px 11px;font-size:12px;line-height:1.7;color:#40513c}
.dialogue-idea{display:grid;gap:8px;border-top:1px dashed #dfe6d3;padding-top:14px}
.dialogue-idea label{font-size:12px;font-weight:600;color:#4d6538}
.dialogue-idea label span{font-weight:400;font-size:10px;color:#8b977c;margin-left:8px}
.dialogue-idea .dialogue-action{justify-self:start}
.dialogue-status{font-size:12px;line-height:1.8;border-radius:6px;padding:9px 12px;background:#e9efdc;color:#536b3e;margin:0}
.dialogue-status.error{background:#fcecdf;color:#8a4d2c}
.dialogue-note{font-size:10px;line-height:1.8;color:#8a967e;margin:0}
.board-focus .dialogue{display:none}
@media(max-width:520px){.dialogue-body{padding:2px 13px 15px}.dialogue-form{flex-wrap:wrap}.dialogue-form .dialogue-action{width:100%}.dialogue-details>summary>span:last-child{display:none}}
.chalk-surface::before{opacity:.065}
.chalk-surface{background-color:#214737;background-image:radial-gradient(ellipse at 35% 32%,#60816a18,transparent 65%),linear-gradient(155deg,#2b544533,#14392d55)}
.board-top{color:#ecf0db;font-weight:500}
.board-caption{color:#f2f1df}
.board-focus .chalk-stage{height:auto;min-height:300px}
@media(min-width:1101px){.geometry-lesson{grid-template-columns:minmax(0,1fr) 250px;gap:22px}}
@media(max-width:1100px) and (min-width:841px){.geometry-lesson{grid-template-columns:1fr}.geometry-lesson .lesson-notes{margin-top:0;display:grid;grid-template-columns:1.2fr 1fr}.geometry-lesson .notes-header,.geometry-lesson .geometry-context,.geometry-lesson .note-footer{grid-column:1/-1}.geometry-lesson .current-note{grid-row:3/5}}
/* MathJax owns formula strokes and glyph metrics; site icon rules must not apply. */
.chalk-svg .chalk-math{overflow:visible;stroke:none;fill:currentColor;stroke-width:0}
.chalk-svg .chalk-math path{stroke-width:0}
.chalk-svg .chalk-math text{font-family:var(--chalk-hand-font);stroke:none}
.transcript-equation{overflow-x:auto;padding-block:8px}
.transcript-math{display:block;max-width:none;fill:currentColor;stroke:none;stroke-width:0}
.math-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
/* Image questions use an explicit read step; the existing lesson stays visible. */
.image-entry{display:flex;align-items:center;gap:14px;min-width:0;margin:12px 0 14px;padding:13px 14px;border:1px dashed #c6d3b7;border-radius:8px;background:#f4f7ee;transition:background .15s,border-color .15s}
.image-entry.dragging{border-color:#456b39;background:#e2edd5}
.image-choose{display:flex;align-items:center;justify-content:center;gap:8px;padding:9px 14px;min-height:44px;border:1px solid #c8d5b9;border-radius:6px;background:#fff;color:#37582d;font-size:13px;white-space:nowrap}
.image-entry-hint{font-size:12px;line-height:1.7;color:#586b4b}.image-entry-hint>span{display:block;font-size:11px;color:#7a886b}
.image-preview{display:grid;grid-template-columns:150px minmax(0,1fr);gap:18px;align-items:center;margin:0 0 15px;padding:14px;border:1px solid #d9e0ce;border-radius:8px;background:#fff}
#image-preview-img{display:block;width:150px;max-height:190px;object-fit:contain;object-position:center;background:#f3f4ed;border-radius:4px}
.image-preview-body{min-width:0}.image-preview-body>strong{display:block;overflow-wrap:anywhere;font-size:13px;color:#36512d;line-height:1.6}.image-meta{display:block;margin-top:3px;font-size:11px;color:#758568}
.image-upload-note{font-size:12px;line-height:1.8;color:#68795b;margin:8px 0}.image-actions{display:flex;align-items:center;flex-wrap:wrap;gap:9px}
.image-actions button,#image-apply-result{min-height:44px;border-radius:6px;padding:10px 15px;font-size:12px}.image-recognize{background:#2f5c3d;color:#f7f9ed}.image-remove,.image-cancel{border:1px solid #d6deca;color:#647455}.image-cancel{color:#885b35}
.image-status{font-size:12px;line-height:1.8;margin:0 0 12px;padding:9px 12px;border-radius:6px;background:#edf2e4;color:#536d43;overflow-wrap:anywhere}.image-status.error{background:#fcecdf;color:#8a4d2c}.image-status.clarification{background:#f9f1d7;color:#7a6225}
.image-uncertainties{padding:0 0 0 27px;margin:0 0 15px;font-size:12px;line-height:1.8;color:#82662c}.image-pending-result{padding:13px;margin:0 0 15px;border:1px solid #d9dfcd;border-radius:6px}.image-pending-result label{display:block;font-size:12px;color:#627550;margin-bottom:8px}
#image-recognized-text{display:block;width:100%;resize:vertical;max-height:220px;min-height:80px;border:1px solid #d1dbc3;border-radius:4px;background:#fcfcf8;padding:10px;color:#435a36;font-size:13px;line-height:1.8}
#image-apply-result{border:1px solid #bccfac;color:#42652e;margin-top:10px;background:#eef4e4}
@media(max-width:520px){.image-entry{flex-wrap:wrap;gap:8px;padding:10px}.image-choose{width:100%;font-size:13px}.image-entry-hint{font-size:11px}.image-preview{grid-template-columns:1fr;gap:12px;padding:12px}#image-preview-img{width:100%;height:auto;max-height:220px}.image-actions{gap:8px}.image-actions button{flex:1;padding:10px 9px}.image-preview-body>strong{font-size:12px}.image-status,.image-upload-note{font-size:12px}}

/* Keep the classroom attached to the official site on desktop and phones. */
.home-link{min-height:44px;display:inline-flex;align-items:center;gap:10px;padding:0 12px;border:1px solid var(--line);border-radius:7px;color:var(--ink);font-size:12px;text-decoration:none;white-space:nowrap}.home-link:hover{background:#e9eedf}.home-link:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
@media(max-width:640px){.header-end{display:grid;justify-items:end;gap:0}.header-end .demo-badge{display:none}.header-end .connection{grid-row:2;font-size:9px}.home-link{padding:0 8px;font-size:11px}.site-header{padding-top:10px;padding-bottom:10px}}

.retry-math{min-height:44px;padding:10px 16px;margin-top:8px;border:1px solid #b7c7a6;border-radius:6px;background:#edf3e5;color:var(--ink);font-size:13px}.retry-math:hover{background:#e2ecd8}.retry-math:focus-visible{outline:2px solid var(--ink);outline-offset:3px}

/* Photo-to-question flow: the source stays compact while the question is editable. */
.image-entry-buttons{display:flex;gap:8px;flex-shrink:0}.image-camera{background:#e9efdf}.image-entry{flex-wrap:wrap}.image-entry-hint{color:#526449}.image-entry-hint>span{color:#68775b}
.image-preview{grid-template-columns:132px minmax(0,1fr);padding:12px;gap:16px}.image-thumbnail{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;padding:6px;border:1px solid #d9e0ce;border-radius:6px;background:#f8f9f4;min-height:80px;overflow:hidden}.image-thumbnail span{font-size:11px;color:#536947;padding:5px 0 0}.image-thumbnail:hover{border-color:#839c69}#image-preview-img{width:100%;height:82px;object-fit:contain;background:#fff}.image-preview.reading .image-thumbnail{border-color:#64834e}.image-preview.reading .image-meta::before{content:'';display:inline-block;width:9px;height:9px;margin-right:7px;border:2px solid #c8d5ba;border-top-color:#496b37;border-radius:50%;animation:photo-reading 1s linear infinite}.image-meta{font-size:12px;color:#637459}.image-upload-note{margin:5px 0 8px;color:#5c6e51}.image-actions{gap:8px}.image-actions button{padding:7px 12px;font-size:12px}.image-recognize{background:#eff4e6;color:#385a2d;border:1px solid #cad8bc}.image-remove{background:#fff}.image-status{margin-bottom:10px}.image-status.success{background:transparent;padding:0 2px;color:#47633b}
.diagram-details{margin:0 0 13px;border:1px solid #dbe2d1;border-radius:7px;background:#f5f7ef}.diagram-details>summary{min-height:44px;padding:11px 12px;color:#526947;font-size:12px;cursor:pointer;line-height:1.7}.diagram-details>summary span{margin-left:10px;color:#748267;font-size:11px}#diagram-facts{display:block;width:calc(100% - 24px);margin:0 12px 12px;border:1px solid #cbd6bf;border-radius:5px;background:#fff;padding:10px;color:#445b39;font-size:13px;line-height:1.8;resize:vertical;min-height:100px;max-height:260px}#diagram-facts:focus-visible{outline:2px solid #6b8556;outline-offset:2px}#question-input{max-height:220px}
.question-bottom-actions{display:flex;align-items:center;justify-content:flex-end;gap:16px}.share-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:8px 10px;border-radius:6px;color:#48603b;font-size:12px;white-space:nowrap}.share-button svg{width:16px;height:16px}.share-button:hover{background:#e8eedf}.share-button:focus-visible,.image-choose:focus-visible,.image-thumbnail:focus-visible,.image-actions button:focus-visible,.diagram-details>summary:focus-visible{outline:2px solid #54733e;outline-offset:3px}.share-button:disabled{opacity:.45;cursor:default}.lesson-heading-end{gap:7px}
.classroom-dialog{padding:22px;border:1px solid #cbd6bf;border-radius:12px;background:#fbfcf7;color:#2f4533;box-shadow:0 18px 70px #13281c40;max-height:calc(100dvh - 40px);overflow:auto}.classroom-dialog::backdrop{background:#13251d99}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}.dialog-heading h2{font-size:20px;line-height:1.4;margin:0;color:#274c39}.dialog-close{display:grid;place-items:center;flex-shrink:0;min-width:44px;min-height:44px;border-radius:50%;font-size:26px;color:#53694a;background:#edf2e5}.dialog-close:hover{background:#e0e9d5}.classroom-dialog button:focus-visible,.classroom-dialog input:focus-visible{outline:2px solid #426a36;outline-offset:3px}.image-dialog{width:min(960px,calc(100% - 32px));padding:18px}.image-dialog img{display:block;width:100%;height:auto;background:white}.share-dialog{width:min(470px,calc(100% - 32px));padding-bottom:calc(22px + env(safe-area-inset-bottom))}.share-dialog p{font-size:13px;line-height:1.8;color:#5a6e4f;margin:0 0 15px}.share-status{padding:10px 12px;background:#edf3e3;border-radius:6px}.share-status.error{background:#fcecdf;color:#8a4d2c}.share-dialog label{display:block;font-size:12px;margin:0 0 7px;color:#536b45}.share-dialog input{width:100%;min-width:0;padding:12px;border:1px solid #c8d4b9;border-radius:6px;background:white;color:#355832;font-size:14px;min-height:46px}.share-actions{display:flex;gap:10px;margin:14px 0 11px}.share-actions button,.share-native{min-height:46px;padding:11px 16px;border-radius:6px;font-size:13px}.share-copy{background:var(--green);color:#f7faef;flex:1}.share-native{border:1px solid #bdcdb0;background:#f0f5e8;color:#47643a}.share-dialog .share-expiry{font-size:12px;margin:0;color:#6b7a61}
/* The source photo is an in-memory comparison aid beside the blackboard. */
.source-photo{margin:14px 2px 0;border:1px solid #d6dfca;border-radius:8px;background:#f8faf3;overflow:hidden}
.source-photo>summary{display:flex;align-items:center;gap:12px;min-height:44px;padding:10px 14px;font-size:12px;color:#526947;cursor:pointer;line-height:1.7}
.source-photo>summary>span{font-size:10px;color:#879578}
.source-photo-body{display:grid;grid-template-columns:132px minmax(0,1fr);align-items:center;gap:14px;padding:12px 14px 14px;border-top:1px solid #e2e9d8}
.source-photo-thumb{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:96px;padding:6px;border:1px solid #d9e0ce;border-radius:6px;background:#fff;overflow:hidden}
.source-photo-thumb:disabled{opacity:.5;cursor:default}
.source-photo-thumb img{display:block;width:100%;height:82px;object-fit:contain;background:#fff}
.source-photo-thumb span{font-size:10px;color:#536947}
.source-photo-body p{margin:0;font-size:12px;line-height:1.9;color:#66775a;overflow-wrap:anywhere}
.board-focus .source-photo{margin-top:10px}
@media(max-width:640px){.source-photo{margin-top:12px}.source-photo>summary>span{display:block;font-size:9px}.source-photo-body{grid-template-columns:96px minmax(0,1fr);gap:10px;padding:10px}.source-photo-thumb{min-height:80px}.source-photo-thumb img{height:64px}.source-photo-body p{font-size:11px;line-height:1.8}}
@keyframes photo-reading{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.image-preview.reading .image-meta::before{animation:none}}
@media(max-width:640px){.question-bottom{flex-wrap:wrap;align-items:flex-start;gap:3px}.question-bottom-actions{margin-left:auto}.lesson-heading{flex-wrap:wrap}.lesson-heading>div:first-child{min-width:0}.lesson-heading-end{margin-left:auto}.lesson-heading .share-button{font-size:11px;padding:5px 8px}.diagram-details>summary span{display:block;margin:0 0 0 15px}.image-entry{gap:8px}.image-entry-buttons{width:100%}.image-entry-buttons .image-choose{flex:1;width:auto;padding:9px 10px}.image-entry-hint{font-size:12px}.image-entry-hint>span{font-size:11px}.image-preview{grid-template-columns:96px minmax(0,1fr);gap:10px;padding:10px}.image-thumbnail{min-height:110px}#image-preview-img{height:78px;max-height:78px}.image-thumbnail span{font-size:10px}.image-meta{display:none}.image-upload-note{font-size:11px;line-height:1.7}.image-actions{gap:5px}.image-actions button{flex:initial;padding:7px 9px;min-height:44px}.image-preview-body>strong{font-size:13px}.classroom-dialog{padding:18px}.dialog-heading h2{font-size:18px}.share-actions{flex-wrap:wrap}.share-actions button{flex:1}#question-input{font-size:16px;line-height:1.75}.examples button{min-height:44px}.input-row{align-items:flex-end}.cancel-button{min-height:44px}}
