:root{--ink:#26312f;--muted:#57665f;--paper:#fbfaf5;--white:#fff;--line:#e6e0d2;--leaf:#2d6a4f;--leaf-dark:#1e4c38;--soft:#eef3ed;--clay:#99452d;--error:#9d3329;color-scheme:light;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei","PingFang SC",sans-serif;font-size:16px;line-height:1.65}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink)}[hidden]{display:none!important}a{color:var(--leaf);text-underline-offset:4px}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.6}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,.upload-zone:focus-within{outline:3px solid #a66927;outline-offset:3px}::selection{background:#dbe9d9;color:var(--leaf-dark)}input,select,textarea{accent-color:var(--leaf);caret-color:var(--leaf);color:var(--ink)}svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}h1,h2,h3,p{margin-top:0}h1{font-size:2.3rem;line-height:1.28;letter-spacing:-.03em;margin-bottom:20px;font-weight:650;text-wrap:balance}h2{font-size:1.28rem;line-height:1.4;margin-bottom:22px;font-weight:650}h3{font-size:1.03rem;margin-bottom:12px}p{margin-bottom:14px}small,.small{font-size:.82rem;line-height:1.7}.muted{color:var(--muted)}.centered{text-align:center}.topbar{max-width:1240px;min-height:88px;margin:0 auto;padding:20px 36px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line)}.brand{display:flex;gap:12px;align-items:center;color:var(--ink);text-decoration:none;font-weight:650;font-size:1.08rem;line-height:1.25}.brand svg{color:var(--leaf);width:34px;height:34px;stroke-width:2}.brand-sub{display:block;font-size:.72rem;font-weight:400;color:var(--muted);margin-top:5px;letter-spacing:.05em}.quiet-link{border:0;background:none;text-decoration:none;color:var(--muted);font-size:.85rem;padding:10px 4px;min-height:44px;white-space:nowrap}.quiet-link:hover{color:var(--leaf-dark);text-decoration:underline}.form-shell{max-width:720px;margin:0 auto;padding:54px 36px 24px}.intro{padding:0 0 32px;position:relative}.intro-mark{display:block;width:42px;height:5px;background:var(--leaf);margin-bottom:26px;border-radius:2px}.intro>p:not(.small){font-size:1.05rem;line-height:1.9}.intro .small{margin-top:22px}.form-section{border-top:1px solid var(--line);padding:32px 0 10px}.field{margin-bottom:24px}.field label,legend{display:block;font-weight:550;margin-bottom:10px}.required,.field-hint{font-size:.76rem;color:var(--muted);font-weight:400;margin-left:10px}.section-note{font-size:.78rem;font-weight:400;color:var(--muted);margin-left:12px}input:not([type=checkbox]),select,textarea{display:block;width:100%;border:1px solid #b9c4b7;border-radius:10px;background:var(--white);padding:12px 14px;min-height:49px;line-height:1.5}input::placeholder,textarea::placeholder{color:#64716a;opacity:1}textarea{resize:vertical}select{padding-right:28px}.two-columns{display:grid;grid-template-columns:2fr 1fr;gap:18px}fieldset{border:0;padding:0;margin:0 0 24px;min-width:0}legend{padding:0;margin-bottom:12px}.option-list{display:grid;gap:9px}.option{display:flex;align-items:flex-start;gap:11px;padding:11px 14px;border:1px solid var(--line);border-radius:10px;background:var(--white);cursor:pointer;min-height:48px}.option:has(input:checked){background:var(--soft);border-color:var(--leaf)}input[type=checkbox]{width:19px;height:19px;margin:4px 0 0;flex:0 0 auto}.option span{font-size:.94rem}.upload-zone{display:flex;flex-direction:column;align-items:center;gap:5px;padding:28px 12px;border:1px dashed #7b947e;border-radius:12px;text-align:center;background:#f3f5ef;cursor:pointer;margin:22px 0 16px}.upload-zone svg{width:34px;height:34px;margin-bottom:5px;color:var(--leaf)}.upload-zone>span:not(.small){font-weight:550}.upload-zone:hover{background:#e9f0e5}.artwork-previews{display:grid;gap:16px}.artwork-preview{display:grid;grid-template-columns:92px 1fr;gap:14px;padding:14px 0;border-bottom:1px solid var(--line);position:relative}.artwork-preview img{width:92px;height:105px;object-fit:contain;background:#eceee7;border-radius:8px}.artwork-preview textarea{font-size:.85rem;padding:8px 10px;min-height:75px}.artwork-preview label{font-size:.82rem;margin-bottom:7px;display:block}.remove-image{border:0;background:none;color:var(--error);font-size:.8rem;padding:7px 0;min-height:38px}.submit-section{padding-top:30px}.consent{display:flex;align-items:flex-start;gap:12px;font-size:.82rem;color:var(--muted);margin-bottom:14px}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;border-radius:10px;padding:12px 21px;min-height:48px;font-size:.95rem;font-weight:550;text-decoration:none;line-height:1.4}.primary{background:var(--leaf);color:#fff}.primary:hover:not(:disabled){background:var(--leaf-dark)}.secondary{color:var(--leaf-dark);border-color:#b9c4b7;background:transparent}.secondary:hover{background:#eaf0e6}.full{width:100%}.small-button{font-size:.82rem;padding:8px 14px;min-height:42px}.submit-section .centered{margin-top:12px}.page-footer{text-align:center;color:var(--muted);font-size:.75rem;padding:42px 0 12px}.message{border:1px solid #b4c6b2;background:#eef4e9;border-radius:10px;padding:14px 16px;font-size:.89rem;margin-bottom:20px;overflow-wrap:anywhere}.message.error{border-color:#d6a79d;background:#fff2ed;color:var(--error)}.success-panel{text-align:center;padding:50px 0 20px}.success-panel h1{font-size:1.9rem}.success-icon{height:56px;width:56px;color:var(--leaf);margin-bottom:25px}.receipt{font-size:.85rem;background:var(--soft);padding:13px;margin:28px 0;border-radius:8px}.success-panel .button{margin-top:20px}.login-panel{max-width:420px;padding:64px 24px;margin:0 auto}.login-panel h1{font-size:2rem}.login-panel form{margin-top:35px}.demo-link{display:block;text-align:center;font-size:.88rem;margin-top:25px}.workspace{max-width:1220px;margin:0 auto;padding:36px}.workspace-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}.workspace-heading h1{font-size:1.9rem;margin-bottom:8px}.workspace-heading p{font-size:.85rem;margin-bottom:0}.toolbar{display:flex;gap:8px;align-items:center}.workspace-grid{display:grid;grid-template-columns:310px minmax(0,1fr);gap:35px}.search-label{display:block;font-size:.85rem;margin-bottom:9px}.filter-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:12px 0}.filter-row select{max-width:150px;min-height:40px;padding:6px 10px;font-size:.82rem}.records-list{border-top:1px solid var(--line)}.record-button{display:block;width:100%;padding:18px 14px;border:0;border-bottom:1px solid var(--line);background:transparent;text-align:left;border-radius:0;color:var(--ink)}.record-button:hover,.record-button.active{background:var(--soft)}.record-name{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px}.record-name strong{font-weight:600}.record-name .age{font-size:.82rem;font-weight:400;color:var(--muted);margin-left:8px}.record-button p{font-size:.8rem;color:var(--muted);margin:0 0 9px}.record-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--muted);font-size:.72rem}.status{display:inline-block;font-size:.72rem;border-radius:5px;padding:2px 7px;background:#e8eee5;color:var(--leaf-dark);white-space:nowrap}.status.failed{background:#f7e8df;color:#8f3d2b}.status.waiting_key{background:#f1ebdd;color:#715b2c}.record-detail{min-width:0;background:var(--white);border-radius:14px;padding:30px;border:1px solid var(--line)}.empty-detail{padding:65px 5px;text-align:center}.empty-detail h2{margin-bottom:12px}.empty-detail p{font-size:.9rem}.text-link{font-size:.86rem}.detail-header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:20px}.detail-header h2{font-size:1.5rem;margin-bottom:6px}.detail-header p{font-size:.76rem;color:var(--muted);margin:0}.detail-status{margin:12px 0 18px}.report-section{border-top:1px solid var(--line);padding-top:26px;margin-top:28px}.report-section h2,.report-section h3{margin-bottom:18px}.teacher-notes{margin:0}.teacher-notes>div{display:grid;grid-template-columns:100px minmax(0,1fr);gap:16px;padding:12px 0}.teacher-notes dt{font-size:.83rem;color:var(--muted)}.teacher-notes dd{margin:0;font-size:.93rem;overflow-wrap:anywhere}.parent-prose{line-height:1.95;font-size:.95rem}.parent-editor{min-height:245px;line-height:1.85!important}.report-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.review-note{font-size:.8rem;color:var(--muted);margin:13px 0 0}.original-answers{margin:0}.original-answers>div{padding:12px 0;border-bottom:1px solid var(--line)}.original-answers dt{font-size:.8rem;color:var(--muted);margin-bottom:4px}.original-answers dd{margin:0;font-size:.92rem;white-space:pre-wrap;overflow-wrap:anywhere}.original-details summary{cursor:pointer;font-weight:550;padding:12px 0}.record-artworks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.record-artworks figure{margin:0}.record-artworks a{display:block;border:1px solid var(--line);border-radius:9px;overflow:hidden}.record-artworks img{width:100%;height:150px;object-fit:contain;background:#f2f3ed;display:block}.record-artworks figcaption{font-size:.75rem;color:var(--muted);margin-top:6px;overflow-wrap:anywhere}.settings-panel{background:#eef3e9;border-radius:12px;padding:25px;margin-bottom:28px}.settings-panel h2{margin-bottom:12px}.settings-panel form{display:flex;gap:14px;align-items:end;max-width:750px;margin:18px 0}.settings-panel form .field{flex:1;margin:0}.settings-panel form .button{margin-bottom:1px}.settings-panel .small{max-width:85ch}.install-note{border-top:1px solid var(--line);padding-top:20px;margin:35px 0 0}.back-to-list{display:none}.demo-shell{max-width:760px;margin:0 auto;padding:40px 28px}.demo-shell>h1{font-size:1.9rem;margin-top:35px}.demo-shell .button{margin-top:28px}.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.empty-records{padding:32px 12px;color:var(--muted);font-size:.88rem}.save-indicator{font-size:.78rem;color:var(--clay);margin-top:8px}.loading-label{font-size:.88rem;color:var(--muted);padding:20px 0}.record-id{overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
@media(max-width:760px){.topbar{min-height:76px;padding:17px 20px}.brand{font-size:1rem}.form-shell{padding:34px 23px 20px}.intro{padding-bottom:26px}h1{font-size:2rem}.intro>p:not(.small){font-size:1rem}.form-section{padding-top:28px}.workspace{padding:27px 18px}.workspace-heading{align-items:flex-start;gap:12px;flex-direction:column;margin-bottom:23px}.workspace-heading h1{font-size:1.7rem}.toolbar{width:100%;gap:9px}.toolbar .quiet-link{margin-left:auto}.workspace-grid{grid-template-columns:1fr;gap:22px}.record-detail{padding:23px 18px}.record-detail .empty-detail{padding:25px 0}.workspace.has-selection #records-panel{display:none}.workspace.has-selection .back-to-list{display:inline-flex;margin:0 0 18px}.workspace:not(.has-selection) #record-detail{display:none}.record-button{padding:18px 8px}.record-name strong{font-size:1.04rem}.teacher-notes>div{grid-template-columns:83px minmax(0,1fr);gap:11px}.settings-panel{padding:21px 18px}.settings-panel form{display:block}.settings-panel form .button{margin-top:15px;width:100%}.record-artworks{grid-template-columns:repeat(2,minmax(0,1fr))}.record-artworks img{height:145px}.report-actions .button{flex:1;padding:12px 10px;font-size:.85rem}.login-panel{padding-top:43px}.install-note{margin-top:25px}.success-panel{padding-top:35px}.success-panel h1{font-size:1.65rem}.receipt{font-size:.8rem}.demo-shell{padding:28px 22px}.two-columns{grid-template-columns:1.8fr 1fr;gap:13px}.record-id{font-size:.72rem}.parent-editor{min-height:310px}.field label,legend{font-size:.94rem}.consent{font-size:.78rem}.page-footer{padding-top:32px}}
.brand-mark{width:47px;height:42px;object-fit:contain;flex-shrink:0}.art-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin:20px 0}.art-choice{display:block;min-width:0;padding:8px 8px 12px;background:#fff;border:1px solid var(--line);border-radius:12px;cursor:pointer;overflow:hidden}.art-choice:has(input:checked){border-color:var(--leaf);background:var(--soft)}.art-choice img{width:100%;height:165px;object-fit:contain;background:#f9f8f3;display:block;border-radius:6px}.art-choice-line{display:flex;align-items:flex-start;gap:8px;margin:10px 2px 3px;font-size:.85rem;font-weight:550}.art-choice small{display:block;margin-left:29px;font-size:.72rem;color:var(--muted)}.no-favorite{margin-bottom:20px}.topbar .brand{white-space:nowrap}.topbar .brand-sub{letter-spacing:0}.art-choice input{width:17px;height:17px}.teacher-body .topbar{background:#fff}.teacher-body .toolbar{flex-wrap:wrap}
@media(max-width:760px){.brand-mark{width:39px;height:37px}.topbar .brand{font-size:.92rem;gap:8px}.art-choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.art-choice img{height:145px}.art-choice-line{font-size:.8rem}.art-choice small{margin-left:27px}.topbar{gap:12px}.topbar .quiet-link{font-size:.76rem}}
.art-choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.art-choice{padding:0 0 14px;cursor:default}.art-preview{display:block;width:100%;border:0;background:#f7f5ee;padding:0;cursor:zoom-in;border-radius:11px 11px 0 0;overflow:hidden}.art-preview img{width:100%;height:230px;object-fit:contain;border-radius:0;display:block}.art-choice-line{padding:8px 14px 0;margin:0;min-height:44px;cursor:pointer;font-size:.95rem}.art-choice small{margin:2px 0 0 39px}.art-viewer{width:min(96vw,960px);max-height:95vh;padding:16px;border:0;border-radius:14px;background:var(--paper)}.art-viewer::backdrop{background:rgba(20,30,24,.78)}.art-viewer .button{display:flex;margin-left:auto;margin-bottom:12px}.art-viewer img{display:block;width:100%;height:70vh;object-fit:contain;background:#fff}.art-viewer p{text-align:center;margin:12px 0 0;font-size:.9rem}
@media(max-width:760px){.art-choices{grid-template-columns:1fr;gap:20px}.art-preview img{height:250px}.art-choice-line{font-size:.95rem}.art-choice small{font-size:.8rem;margin-left:41px}.art-viewer{width:96vw;padding:12px}.art-viewer img{height:65vh}}
.viewer-toolbar{display:flex;gap:12px;justify-content:space-between;margin-bottom:12px}.art-viewer .viewer-toolbar .button{margin:0}.viewer-stage{overflow:auto;max-height:70vh;background:#fff;overscroll-behavior:contain;touch-action:pan-x pan-y pinch-zoom}.art-viewer .viewer-stage img{display:block;width:100%;height:auto;max-height:70vh;object-fit:contain}.art-viewer .viewer-stage.zoomed img{width:200%;height:auto;max-height:none;max-width:none;object-fit:contain}.art-viewer p{margin-top:14px}
@media(prefers-reduced-motion:no-preference){.success-panel{animation:arrive .35s ease-out}@keyframes arrive{from{transform:translateY(6px)}to{transform:translateY(0)}}}
:root{font-size:17px}
.teacher-body{height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden;overscroll-behavior:none}
html:has(.teacher-body){height:100%;overflow:hidden;overscroll-behavior:none}
.teacher-body>.topbar{flex:0 0 auto;width:100%;min-height:68px;padding:13px 30px;border-bottom:1px solid var(--line);background:var(--paper)}
.teacher-body .brand-mark{mix-blend-mode:normal}
.teacher-body>main{flex:1;min-height:0;overflow:hidden}
.teacher-body .login-panel{height:100%;overflow-y:auto;overscroll-behavior:contain}
.teacher-body .workspace{height:100%;padding:22px 30px;display:flex;flex-direction:column;min-height:0}
.teacher-body .workspace-heading{flex:0 0 auto;flex-direction:row;align-items:center;margin-bottom:17px;gap:15px}
.teacher-body .workspace-heading h1{font-size:1.4rem;margin-bottom:3px}
.teacher-body .workspace-heading p{font-size:.77rem}
.teacher-body .toolbar{width:auto;flex-wrap:nowrap;gap:10px}
.teacher-body .workspace-grid{flex:1;min-height:0;grid-template-columns:290px minmax(0,1fr);gap:24px}
.teacher-body #records-panel{display:flex;flex-direction:column;min-height:0}
.records-controls{flex:0 0 auto;padding:0 2px}
.teacher-body .records-list{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.teacher-body .record-button{padding:16px 12px;touch-action:pan-y pinch-zoom}
.teacher-body .record-button.active{box-shadow:inset 3px 0 0 var(--leaf)}
.teacher-body .record-button p{margin-bottom:7px}
.student-panel{display:flex;flex-direction:column;min-height:0;border:1px solid var(--line);border-radius:14px;background:#fff;overflow:hidden}
.student-bar{flex:0 0 auto;display:flex;align-items:center;gap:14px;padding:20px 25px;border-bottom:1px solid var(--line);background:#fff}
.student-identity{flex:1;min-width:0}
.student-identity h2{font-size:1.2rem;margin:0;overflow-wrap:anywhere}
.student-identity p{font-size:.77rem;color:var(--muted);margin:4px 0 0}
.teacher-body .record-detail{display:block;flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:24px 25px;border:0;border-radius:0;scrollbar-width:thin;scrollbar-color:#b5c2af transparent}
.teacher-body .record-detail .empty-detail{padding:50px 5px}
.teacher-body .teacher-notes>div{display:block;padding:0 0 22px}
.teacher-body .teacher-notes dt{font-size:.82rem;color:var(--leaf);font-weight:600;margin-bottom:7px}
.teacher-body .teacher-notes dd{font-size:1rem;line-height:1.8}
.lesson-brief h3{font-size:1rem;margin-bottom:24px}
.teacher-body .report-section{margin-top:16px;padding-top:12px}
.teacher-body .original-details summary{font-size:.9rem;min-height:44px}
.teacher-menu{position:relative;font-size:.84rem}
.teacher-menu>summary{list-style:none;cursor:pointer;min-height:44px;display:flex;align-items:center;padding:8px 5px;color:var(--muted)}
.teacher-menu>summary::-webkit-details-marker{display:none}
.teacher-menu>div{position:absolute;right:0;top:44px;z-index:5;min-width:160px;background:#fff;border-radius:10px;box-shadow:0 8px 28px rgba(38,49,47,.17);padding:6px}
.teacher-menu button{display:block;width:100%;min-height:44px;padding:9px 12px;border:0;background:transparent;text-align:left;color:var(--ink);white-space:nowrap}
.teacher-body #back-to-list{display:none}
.teacher-body #teacher-message{flex:0 0 auto;margin-bottom:14px}
@media(max-width:760px){
 .teacher-body>.topbar{min-height:63px;padding:12px max(18px,env(safe-area-inset-right)) 12px max(18px,env(safe-area-inset-left));padding-top:max(12px,env(safe-area-inset-top))}
 .teacher-body .workspace{padding:15px max(17px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(17px,env(safe-area-inset-left))}
 .teacher-body .workspace-grid{display:flex;flex-direction:column;gap:0}
 .teacher-body #records-panel,.student-panel{flex:1;min-height:0}
 .teacher-body .workspace:not(.has-selection) .student-panel{display:none}
 .teacher-body .workspace.has-selection #records-panel{display:none}
 .teacher-body .workspace-heading{margin-bottom:13px}
 .teacher-body .workspace-heading h1{font-size:1.25rem}
 .teacher-body .workspace-heading p{font-size:.73rem}
 .teacher-body .record-detail{padding:22px 18px}
 .teacher-body .workspace:not(.has-selection) .record-detail{display:block}
 .student-bar{padding:14px 13px;gap:10px;flex-wrap:wrap}
 .teacher-body #back-to-list{display:inline-flex;font-size:.84rem;padding:11px 15px;min-height:46px;flex-basis:100%;justify-content:flex-start}
 .student-identity h2{font-size:1.05rem}
 .student-identity p{font-size:.7rem}
 .student-bar .status{font-size:.66rem}
 .teacher-body .record-name strong{font-size:1rem}
 .teacher-body .record-button{padding:16px 8px}
 .teacher-body .teacher-notes dd{font-size:.96rem}
}
@media(hover:hover) and (pointer:fine){.teacher-menu button:hover{background:var(--soft)}}
.teacher-body .list-return{color:#fff;background:var(--leaf);border-color:var(--leaf);white-space:nowrap}
.list-return svg{width:19px;height:19px;flex-shrink:0}
.teacher-body .record-button{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.record-row{position:relative;overflow:hidden;border-bottom:1px solid var(--line)}
.teacher-body .record-row .record-button{position:relative;z-index:1;background:var(--paper);border-bottom:0;transition:transform .18s cubic-bezier(.23,1,.32,1)}
.teacher-body .record-row .record-button.active{background:var(--soft)}
.record-row.delete-visible .record-button{transform:translateX(-104px)}
.record-delete{position:absolute;inset:0 0 0 auto;z-index:2;width:104px;min-height:48px;border:0;background:var(--error);color:#fff;font-weight:600;touch-action:manipulation}
.record-delete:focus-visible{outline-offset:-5px}
.record-delete:active{background:#7e2921}
@media(prefers-reduced-motion:reduce){.teacher-body .record-row .record-button{transition:none}}
.teacher-body button,.teacher-body summary,.teacher-body a{touch-action:manipulation;-webkit-user-select:none;user-select:none}
.delete-record{width:min(430px,calc(100vw - 36px));padding:28px 24px;border:0;border-radius:16px;background:var(--paper);color:var(--ink);max-height:calc(100dvh - 36px);overflow-y:auto}
.delete-record::backdrop{background:rgba(28,42,34,.54)}
.delete-record h2{margin-bottom:15px;font-size:1.3rem}
#delete-student{font-weight:600;overflow-wrap:anywhere}
#delete-description{color:var(--muted);font-size:.9rem}
.delete-actions{display:flex;gap:12px;margin-top:26px}
.delete-actions .button{flex:1}
.danger{background:var(--error);color:#fff}
@media(hover:hover) and (pointer:fine){.teacher-body .list-return:hover{background:var(--leaf-dark)}.danger:hover{background:#7e2921}}
.list-return:active,.danger:active{filter:brightness(.9)}
