.picture-controls{display:grid;grid-template-columns:1fr 1fr;gap:12px}.picture-controls>*{min-width:0}.picture-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:start}.picture-reference{position:sticky;top:8px;background:#0c1a2f;border:1px solid #637594;border-radius:12px;padding:12px;margin:0}.picture-reference img{display:block;width:100%;height:clamp(180px,38vh,390px);object-fit:contain;background:#e6eef1;border-radius:7px}.picture-reference figcaption{font-size:.9rem;margin-top:8px;color:#c5d8ec}.picture-writing{min-width:0}#pictureText{height:48vh;min-height:180px;resize:vertical;line-height:1.7}#pictureStatus,#pictureTeacherStatus{white-space:pre-wrap;overflow-wrap:anywhere}.picture-response{white-space:pre-wrap;max-height:250px;overflow:auto;background:#0c1a2f;padding:12px}.picture-review{padding:12px;border:1px solid #637594;border-radius:8px;margin:10px 0}.picture-review input{width:100%}#pictureAssignments button{margin:6px}#pictureMode input,#pictureMode select{width:100%}#pictureMode h3{margin-top:12px}#pictureProgress{font-variant-numeric:tabular-nums}
@media(max-width:650px){#pictureMode{padding:12px}.picture-workspace{grid-template-columns:minmax(0,1fr);gap:10px}.picture-reference{top:0;z-index:2;padding:6px}.picture-reference img{height:25vh;height:25dvh;min-height:90px;max-height:210px}.picture-reference figcaption{font-size:.8rem;margin:4px}.picture-controls{grid-template-columns:minmax(0,1fr)}#pictureText{height:32vh;min-height:130px}#pictureMode .row>*{min-width:0;flex-basis:100%}}
@media(max-height:500px){.picture-reference img{height:27vh;min-height:70px}.picture-reference figcaption{display:none}#pictureText{min-height:110px;height:40vh}}

#copyPlay{max-width:1100px;margin:auto;scroll-margin-top:8px}#copyImageWrap{position:sticky;top:0;z-index:3;margin:0;background:#10233b;border-radius:14px;overflow:hidden;box-shadow:0 5px 20px #0005}#copyImage{display:block;width:100%;height:clamp(180px,38vh,440px);object-fit:contain;background:#f1efe5}#copySource{white-space:pre-wrap;line-height:1.85;font-size:1.12rem;height:20vh;min-height:105px;overflow-y:auto;padding:14px;border:1px solid #6b87a5;background:#0c1a2f;border-radius:10px;margin:12px 0;font-family:ui-monospace,monospace}#copySource .copy-correct{color:#75f0ab}#copySource .copy-wrong{color:#ffb4b4;background:#711f35;text-decoration:underline}#copySource .copy-neutral{color:#e2eaf2}#copySource .copy-cursor{box-shadow:inset 2px 0 #ffd76e;background-color:#ffd76e22}#copyTyping{width:100%;min-height:85px;height:12vh;resize:vertical;font-size:1.05rem;line-height:1.6}#copyTeacher{margin:24px 0;border:1px solid #637594;border-radius:12px;padding:16px}#copyTasks article{border:1px solid #637594;border-radius:10px;padding:12px;margin:10px 0}#legacyPictureWork{margin-top:26px;padding:14px;border-top:1px solid #637594}#copyStatus{white-space:pre-wrap}#pictureMode [hidden]{display:none!important}
@media(max-width:650px){#copyImage{height:26dvh;min-height:130px}#copySource{height:19dvh;font-size:1rem;min-height:90px}#copyTyping{height:12dvh;min-height:75px}#copyTeacher{padding:10px}#copyImageWrap{border-radius:8px}}

#copySource.copy-at-end::after{content:"▏";color:#ffd76e}
#copyPlay.copy-writing #copySource,#copyPlay.copy-writing label[for=copyTyping],#copyPlay.copy-writing #copyTyping,#copyPlay.copy-writing #copyMetrics,#copyPlay.copy-writing small,#copyPlay.copy-writing #copyFinish{display:none}
#copyOwn{margin-top:12px}#copyOwnText{width:100%;min-height:180px;font-size:1.05rem;line-height:1.5}#copyOwnCount{font-weight:700}
.copy-own-review{white-space:pre-wrap;text-align:left;max-width:60ch}.copy-own-review textarea{width:100%;min-height:60px}
