/* Yellow identifies actions and selected details. Lesson text uses the shared ink. */
body[data-course="writing"]{--muted:#625e57;--writing-muted:#625e57}
.writing-course-title{display:flex;align-items:baseline;gap:12px;margin:0 0 12px;font-size:23px;line-height:1.2;letter-spacing:-.03em}
.writing-course-title small{color:var(--muted);font-size:12px;font-weight:750;letter-spacing:0;white-space:nowrap}
@media(max-height:650px){.writing-course-title{font-size:19px;margin-bottom:6px}.writing-course-title small{font-size:11px}}
/* Shared lesson shell, with the available game area given to the learner's text. */
.course-language-note{display:block;margin-top:2px;color:var(--muted);font-size:10px;font-weight:750}
.writing-symbol{flex:none}
.student-picture{position:relative;display:block;flex:none;min-width:0;padding:0;border:0;border-radius:14px;overflow:hidden;background:#fff8dc;cursor:zoom-in}
.student-picture img{display:block;flex:none!important;width:100%;height:100%!important;object-fit:cover!important;min-height:0!important;border-radius:0!important}
.student-picture>span{position:absolute;right:5px;bottom:4px;display:grid;place-items:center;width:24px;height:24px;border-radius:8px;background:#fff9e9ed;color:var(--ink);font-size:16px}
.student-picture:focus-visible{outline:3px solid #b28b24;outline-offset:3px}
.student-look .student-picture{flex:0 1 auto;min-height:0;width:100%;height:auto;aspect-ratio:3/2}
.student-scene-reference{display:flex;align-items:center;flex:none;gap:12px;width:100%;margin:0 0 10px;text-align:left}
.student-scene-reference .student-picture{width:132px;aspect-ratio:3/2}
.student-scene-reference p{margin:0;min-width:0;color:var(--ink);font-size:12px;font-weight:750;line-height:1.4;overflow-wrap:break-word}
.student-kept-idea>span{display:block;margin-bottom:3px;color:var(--ink);font-size:10px;font-weight:900}
.student-workspace .student-scene-reference{margin:0}
.student-workspace .student-review{flex:none;min-height:0;gap:0}
.student-workspace .student-review p{padding:8px 11px;border-radius:12px;background:#fff3bf;font-size:12px;line-height:1.35}
.student-workspace .student-editor{height:0}
.student-picture-dialog{position:fixed;inset:0;width:min(96vw,1000px);max-width:96vw;max-height:92dvh;padding:44px 14px 14px;border:0;border-radius:23px;background:#fffdf7;color:var(--ink);overflow:hidden;box-shadow:0 20px 90px #5d49284d}
.student-picture-dialog::backdrop{background:#382e24ad}
.student-picture-dialog>img{display:block;width:100%;max-height:calc(92dvh - 125px);object-fit:contain;border-radius:12px}
.student-picture-dialog>p{margin:12px 0 0;font-size:12px;line-height:1.4}
.student-picture-close{position:absolute;right:9px;top:7px;display:grid;place-items:center;width:34px;height:34px;border:0;border-radius:50%;background:#fff1b7;color:var(--ink);font-size:17px}
@media(max-height:650px){.student-scene-reference{gap:9px;margin-bottom:8px}.student-scene-reference .student-picture{width:102px}.student-scene-reference p{font-size:11px;line-height:1.3}.student-change-mode .student-change-preview{padding:11px 13px;font-size:16px;margin-bottom:8px}}
.keyboard-open .student-workspace .student-scene-reference{gap:7px}
.keyboard-open .student-workspace .student-picture{width:76px;border-radius:9px}
.keyboard-open .student-workspace .student-scene-reference p{font-size:10px;line-height:1.25}
.keyboard-open .student-workspace .student-kept-idea>span{display:none}
.keyboard-open .student-workspace .student-review p{padding:4px 7px;font-size:10px}
.student-look{display:flex;flex:1;flex-direction:column;gap:13px;height:100%;width:100%;min-height:0}
.student-look .writing-scene{flex:0 1 auto;min-height:0;height:auto}
.student-look .writing-scene img{object-position:center}
.student-tip{flex:none;margin:0;padding:12px 15px;border-radius:16px;background:#fff8dc;color:var(--ink);font-size:clamp(13px,1.9svh,16px);line-height:1.4;font-weight:750}
.student-change-preview{width:100%;margin:0 0 15px;padding:22px 18px;border-radius:20px;background:#fff8dc;color:var(--ink);font-size:clamp(18px,2.8svh,25px);font-weight:850;line-height:1.5;text-align:left;overflow-wrap:break-word}
.student-change-preview mark{color:inherit;background:#ffe16b;border-radius:4px;box-shadow:2px 0 #ffe16b,-2px 0 #ffe16b;white-space:pre-wrap}
.student-change-mode .answer-grid{gap:9px}
.student-change-mode .answer-choice{min-height:45px}
.student-change-mode .answer-choice.selected,.student-change-mode .answer-choice.is-correct{background:#fff1b7;border-color:transparent;box-shadow:0 3px 0 #e9ce64;color:var(--ink)}
.student-change-mode .choice-mark{background:#ffdb60;color:var(--ink)}
.student-change-mode .feedback-copy.correct strong{color:var(--ink)}
.student-writing-tools{display:flex;flex:none;gap:8px}
.student-writing-tools button{min-height:33px;padding:6px 11px;border-radius:11px;background:#f8f5e9;color:var(--ink);font:800 11px 'Nunito',sans-serif}
.student-writing-tools button[aria-pressed=true]{background:#ffe16b;color:var(--ink)}
.student-writing-goal{margin:0;color:var(--ink);font-size:11px;line-height:1.3}
.writing-exam-link{font-size:12px;color:var(--ink);display:flex;align-items:center;gap:5px}
.writing-exam-link .icon{width:16px;height:16px}
.writing-exam-hub .fit-content{gap:13px;justify-content:flex-start!important}
.writing-exam-hub h1{margin-bottom:0}
.writing-exam-intro{margin:0;font-size:13px;color:var(--ink);line-height:1.4}
.writing-paper-card{display:flex;flex-direction:column;gap:11px;padding:20px;border-radius:21px;background:#fff8dc;text-align:left;color:var(--ink)}
.writing-paper-card h2{margin:0;font-size:20px;color:var(--ink)}
.writing-paper-card p{margin:0;font-size:14px;line-height:1.45}
.writing-paper-card .writing-paper-note{font-size:12px;color:var(--ink)}
.writing-paper-card a,.writing-paper-inline{color:var(--ink);font-size:12px;line-height:1.5;font-weight:850}
.writing-exam-hub .writing-pages{margin:0}
.writing-exam-hub .writing-pages .icon{width:17px;height:17px}
.writing-exam-hub .screen-actions{display:flex;flex-direction:column;gap:10px}
.writing-exam-editor .fit-content{display:flex!important;flex-direction:column;align-items:stretch;gap:11px;height:100%;min-height:0;transform:none!important}
.writing-exam-editor .writing-editor{height:0;min-height:70px}
.writing-exam-editor h1{font-size:clamp(21px,3svh,30px);margin:0}
.writing-exam-editor .screen-actions{margin-top:0}
.keyboard-open .writing-exam-editor .writing-task,.keyboard-open .writing-exam-editor .writing-paper-inline,.keyboard-open .writing-exam-editor .writing-task-options,.keyboard-open .writing-exam-editor .writing-timer-row{display:none}
@media(max-height:650px){.writing-exam-hub .fit-content{gap:10px}.writing-paper-card{padding:15px;gap:8px}.writing-paper-card h2{font-size:18px}.writing-paper-card p{font-size:12px}.writing-paper-card .writing-paper-note{font-size:11px}.writing-exam-intro{font-size:12px}.writing-exam-hub .screen-actions{gap:5px}.writing-exam-editor .fit-content{gap:7px}.writing-exam-editor .writing-task{font-size:12px}}
.student-help{display:flex;flex:1;min-height:0;flex-direction:column;justify-content:center;gap:18px;padding:16px;background:#fff8dc;border-radius:20px;color:var(--ink);font-size:15px;line-height:1.5}
.student-help p{margin:0}
.student-help-example{color:var(--ink);font-size:13px}
.student-review{display:flex;flex:1;min-height:0;flex-direction:column;justify-content:center;gap:13px;text-align:left}
.student-review blockquote{margin:0;padding:15px;border-radius:17px;background:#fff8dc;color:var(--ink);font-size:clamp(14px,2svh,18px);line-height:1.5;overflow-wrap:anywhere}
.student-review>p{margin:0;color:var(--ink);font-size:13px;line-height:1.45}
.student-review>.text-button{align-self:flex-start;font-size:12px}
.keyboard-open .student-writing-goal{display:none}
@media(max-height:650px){.student-look{gap:9px}.student-tip{padding:10px 12px;font-size:12px}.student-look .writing-scene{gap:8px}.student-look .writing-scene figcaption{font-size:12px;line-height:1.35}.student-change-preview{padding:15px;font-size:18px;margin-bottom:10px}.student-help{font-size:13px;gap:13px}.student-review{gap:9px}.student-review blockquote{font-size:13px;padding:12px}.student-review>p{font-size:12px}}
.language-choice:has(.course-language-note){padding-right:23px;gap:7px}
.language-choice:has(.course-language-note)>span:not(.language-check){min-width:0;font-size:14px}
.writing-lesson .question-head h1{font-size:clamp(17px,2.7svh,24px);line-height:1.25}
.writing-lesson .lesson-scene{max-height:155px}
.writing-model{display:grid;gap:12px;width:100%;min-width:0;font-size:clamp(14px,2svh,17px);line-height:1.5}
.writing-model p{margin:0}
.writing-model blockquote{margin:0;padding:16px 18px;background:#fff8dc;border-radius:20px;color:var(--ink);font-size:clamp(15px,2.15svh,19px);font-weight:850;line-height:1.5}
.writing-model .writing-notice{color:var(--ink);font-size:.88em}
.writing-lesson .matching-grid .match-tile{font-size:clamp(12px,1.8svh,16px);line-height:1.3;overflow-wrap:anywhere}
.writing-lesson .answer-choice{white-space:normal;overflow-wrap:break-word;font-size:clamp(13px,2.1svh,17px);line-height:1.35;padding:11px 13px;min-height:48px}
.writing-editor-mode .exercise-body{overflow:hidden!important;padding-top:0;padding-bottom:0}
.writing-editor-mode .exercise-body>.fit-content{display:flex!important;flex-direction:column;justify-content:flex-start!important;height:100%;min-height:0;overflow:visible;transform:none!important}
.writing-workspace{display:flex;flex:1;flex-direction:column;gap:9px;width:100%;min-height:0;height:100%;text-align:left}
.writing-task{margin:0;color:var(--ink);font-size:clamp(13px,1.9svh,16px);font-weight:700;line-height:1.4;overflow-wrap:break-word}
.writing-tabs,.writing-task-options{display:flex;flex:none;gap:4px;padding:4px;background:#f4f3ed;border-radius:15px}
.writing-tabs button,.writing-task-options button{display:flex;align-items:center;justify-content:center;flex:1;min-width:0;min-height:36px;padding:5px 8px;border-radius:11px;background:transparent;color:var(--ink);font:inherit;font-size:13px;font-weight:900}
.writing-tabs button[aria-pressed=true],.writing-task-options button[aria-pressed=true]{background:#ffe16b;color:var(--ink);box-shadow:0 2px 0 #e7cc62}
.writing-editor{display:block;width:100%;flex:1;min-height:65px;resize:none;border:0;border-radius:19px;outline:none;padding:15px 16px;background:#fff8dc;color:var(--ink);font:500 16px/1.65 'Nunito',sans-serif;caret-color:#8e721f;overflow-y:auto;overscroll-behavior:contain;box-sizing:border-box;-webkit-text-size-adjust:100%}
.writing-editor::placeholder{color:var(--ink)}
.writing-editor[readonly]{background:#f7f5eb}
.writing-meta{display:flex;justify-content:space-between;align-items:center;gap:12px;flex:none;margin:0;color:var(--ink);font-size:10px;font-weight:800;line-height:1.4}
.writing-review{display:flex;flex:1;min-height:0;flex-direction:column;justify-content:center;gap:12px}
.writing-review>p{margin:0;font-size:13px;color:var(--ink)}
.writing-check{display:flex;align-items:center;gap:10px;min-height:52px;width:100%;padding:12px 14px;border:0;border-radius:16px;background:#fff8dc;color:var(--ink);font:800 14px/1.4 'Nunito',sans-serif;text-align:left}
.writing-check>span:first-child{display:grid;place-items:center;flex:none;width:23px;height:23px;border-radius:7px;background:#fff0a9;color:var(--ink);font-size:17px}
.writing-check.checked>span:first-child{background:#ffdc55}
.writing-guidance{color:var(--ink)!important;font-size:12px!important}
.writing-timer-row{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:none;min-height:29px}
.writing-timer-row .text-button{padding:3px 0;min-height:29px;font-size:12px;color:var(--ink)}
.writing-timer{font-size:18px;font-weight:950;font-variant-numeric:tabular-nums;color:var(--ink)}
.writing-time-note{font-size:10px;color:var(--ink)}
.writing-library-list{display:grid;gap:14px;width:100%}
.writing-piece-card{display:block;width:100%;padding:17px 18px;border-radius:21px;background:#fff8dc;text-align:left;color:var(--ink)}
.writing-piece-card strong{font-size:17px;line-height:1.3}
.writing-piece-card p{margin:9px 0;color:var(--ink);font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.writing-piece-card>span{display:flex;justify-content:space-between;align-items:center;font-size:11px;font-weight:800;color:var(--ink)}
.writing-piece-card .icon{width:17px;height:17px}
.writing-empty{text-align:center;padding:30px 15px;color:var(--ink)}
.writing-empty .writing-symbol{width:70px;height:70px;margin:0 auto 20px}
.writing-pages{display:flex;align-items:center;justify-content:center;gap:18px;margin-bottom:10px;font-size:12px;color:var(--ink)}
.writing-pages button:first-child .icon{transform:rotate(180deg)}
.writing-library .screen-actions{display:flex;flex-direction:column}
.writing-library .fit-content{gap:20px}
.writing-saved-piece .fit-stage{overflow:hidden!important}
.writing-saved-piece .fit-content{height:100%;display:flex;flex-direction:column;gap:12px;transform:none!important;min-height:0}
.writing-saved-piece .writing-editor{height:0;min-height:90px}
.writing-saved-piece h1{font-size:clamp(21px,3svh,30px);line-height:1.2}
.writing-saved-piece .writing-meta{justify-content:center}
@media(max-height:650px){.writing-lesson .lesson-scene{max-height:75px}.writing-model{gap:8px;font-size:13px;line-height:1.4}.writing-model blockquote{padding:11px 13px;font-size:14px;line-height:1.4}.writing-workspace{gap:6px}.writing-task{font-size:12px;line-height:1.35}.writing-tabs,.writing-task-options{padding:3px;border-radius:12px}.writing-tabs button,.writing-task-options button{min-height:30px;font-size:11px}.writing-check{min-height:44px;padding:9px 11px;font-size:12px}.writing-review{gap:8px}.writing-review>p{font-size:12px}.writing-editor{padding:10px 12px;line-height:1.5}.writing-meta{font-size:9px}.writing-timer-row{min-height:25px}.writing-timer-row .text-button{min-height:25px}.writing-time-note{font-size:9px}.writing-library-list{gap:10px}.writing-piece-card{padding:13px}.writing-piece-card strong{font-size:15px}.writing-piece-card p{font-size:12px;margin:6px 0}}
.keyboard-open .writing-editor-mode .question-head{padding-bottom:5px}
.keyboard-open .writing-editor-mode .question-head h1{font-size:15px}
.keyboard-open .writing-task{font-size:11px;line-height:1.25}
.keyboard-open .writing-workspace{gap:4px}
.keyboard-open .writing-tabs button,.keyboard-open .writing-task-options button{min-height:25px;font-size:10px}
.keyboard-open .writing-editor{min-height:45px;padding:8px 10px}
.keyboard-open .writing-editor-mode .lesson-controls{padding-top:5px;padding-bottom:5px}
.keyboard-open .writing-timer-row{display:none}
.keyboard-tight .writing-task,.keyboard-tight .writing-task-options,.keyboard-tight .writing-tabs{display:none}
/* Workshop panels keep the existing white, honey-yellow and rounded visual language. */
.writing-model-mode .exercise-body{overflow:hidden!important;padding-top:0;padding-bottom:0}
.writing-model-mode .exercise-body>.fit-content{display:flex!important;flex-direction:column;height:100%;min-height:0;transform:none!important;justify-content:flex-start!important}
.writing-model-view{display:flex;flex-direction:column;gap:12px;height:100%;width:100%;min-height:0;text-align:left}
.writing-model-panel{display:flex;flex:1;min-height:0;align-items:center;width:100%}
.writing-model-panel>.writing-model{max-height:100%;gap:10px}
.writing-model-panel .writing-model-text{font-size:clamp(14px,2.1svh,18px);font-weight:700;line-height:1.55}
.writing-model-text mark{color:inherit;background:#ffe16b;border-radius:4px;box-shadow:2px 0 #ffe16b,-2px 0 #ffe16b}
.writing-kicker{display:block;color:var(--ink);font-size:10px;font-weight:950;letter-spacing:.04em;line-height:1.4}
.writing-decisions p{position:relative;padding:14px 14px 14px 43px;border-radius:17px;background:#fff8dc;font-size:clamp(13px,1.9svh,16px);line-height:1.5}
.writing-decision-number{position:absolute;left:13px;top:14px;display:grid;place-items:center;background:#ffe16b;border-radius:50%;width:22px;height:22px;font-size:12px}
.writing-scene{display:flex;flex:1;flex-direction:column;gap:11px;min-height:0;width:100%;height:100%;margin:0}
.writing-scene img{display:block;flex:1;min-height:70px;height:0;width:100%;object-fit:cover;border-radius:22px;background:#fff8dc}
.writing-scene figcaption{flex:none;color:var(--ink);font-size:clamp(12px,1.8svh,15px);font-weight:750;line-height:1.45}
.writing-context{margin:0 0 10px;padding:12px 15px;border-radius:17px;background:#fff8dc;color:var(--ink);font-size:clamp(13px,1.9svh,16px);line-height:1.4;font-weight:750}
.writing-feedback-card{padding:12px 14px;border-radius:16px;background:#f8f6ec;display:flex;flex-direction:column;gap:5px}
.writing-feedback-card strong{font-size:13px;color:var(--ink);line-height:1.3}
.writing-feedback-card q{display:block;color:var(--ink);font-size:11px;line-height:1.4}
.writing-feedback-card>p{margin:0;color:var(--ink);font-size:12px;line-height:1.4}
.writing-workspace .writing-review{justify-content:center;gap:8px}
.writing-workspace .writing-check{padding:10px 12px;min-height:46px;font-size:13px}
.writing-feedback-pages{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--ink);font-size:9px}
.writing-feedback-pages button{display:grid;place-items:center;width:32px;height:30px;border-radius:9px;background:#fff0b1;font-size:17px;color:var(--ink)}
.writing-review-switch{display:flex;gap:6px;flex:none}
.writing-review-switch button{flex:1;border-radius:10px;min-height:30px;padding:5px 8px;background:#f8f6ed;color:var(--ink);font:800 11px 'Nunito',sans-serif}
.writing-review-switch button[aria-pressed=true]{background:#fff0b1;color:var(--ink)}
.writing-evidence{display:flex;flex:1;min-height:0;flex-direction:column;justify-content:center;gap:7px}
.writing-evidence-label{font-size:12px;color:var(--ink);font-weight:850;line-height:1.3}
.writing-evidence-input{width:100%;min-height:37px;border:0;border-radius:12px;padding:10px 12px;background:#fff8dc;color:var(--ink);font:600 16px/1.4 'Nunito',sans-serif;box-sizing:border-box;resize:none}
.writing-evidence-area{height:75px;min-height:44px;max-height:100px;overflow-y:auto;overscroll-behavior:contain}
.writing-evidence-input::placeholder{color:var(--ink);font-size:12px}
.writing-evidence .writing-guidance{font-size:11px!important;line-height:1.3;margin:0}
.writing-evidence fieldset{display:contents}
.writing-guide{display:flex;flex:1;flex-direction:column;min-height:0;gap:10px}
.writing-guide .writing-tabs{background:#f9f7ee;padding:3px}
.writing-guide .writing-tabs button{font-size:11px;min-height:30px}
.writing-guide-card{display:flex;flex:1;min-height:0;flex-direction:column;justify-content:center;gap:13px;padding:16px;border-radius:20px;background:#fff8dc}
.writing-guide-card p{margin:0;color:var(--ink);font-size:clamp(13px,2svh,16px);line-height:1.5;font-weight:750}
.writing-word-bank{display:flex;flex-wrap:wrap;gap:6px}
.writing-word-bank>span{background:#fff0b1;color:var(--ink);padding:6px 9px;border-radius:9px;font-size:12px;font-weight:850}
.writing-word-bank small{width:100%;color:var(--ink);font-size:10px;line-height:1.3}
.writing-repair{display:flex;flex-direction:column;gap:13px;width:100%;text-align:left}
.writing-repair blockquote{margin:0;background:#fff8dc;padding:17px;border-radius:18px;font-size:clamp(16px,2.5svh,21px);line-height:1.5;color:var(--ink);font-weight:800}
.writing-repair label{color:var(--ink);font-size:12px;font-weight:850}
.writing-repair-input{min-height:95px;height:115px;width:100%;resize:none;padding:15px;border:2px solid #f3e6bd;border-radius:17px;font:600 16px/1.5 'Nunito',sans-serif;color:var(--ink);background:#fffdf6;box-sizing:border-box}
.writing-repair>p{margin:0;color:var(--ink);font-size:12px;line-height:1.4}
.writing-export-button{font-size:12px!important;min-height:32px!important;color:var(--ink)!important}
.writing-independent-note{font-size:10px;color:var(--ink);font-weight:800}
.writing-workspace button:focus-visible,.writing-evidence-input:focus-visible,.writing-repair-input:focus-visible,.writing-model-view button:focus-visible{outline:3px solid #d7b444;outline-offset:2px}
@media(max-height:650px){.writing-model-view{gap:8px}.writing-model-panel>.writing-model{gap:7px}.writing-model-panel .writing-model-text{font-size:13px;line-height:1.4;padding:12px}.writing-decisions p{font-size:12px;line-height:1.4;padding:11px 11px 11px 38px}.writing-decision-number{left:10px;top:11px;width:20px;height:20px}.writing-scene{gap:8px}.writing-scene figcaption{font-size:11px}.writing-feedback-card{padding:9px 10px;gap:4px}.writing-feedback-card strong{font-size:12px}.writing-feedback-card>p{font-size:11px;line-height:1.3}.writing-feedback-card q{font-size:10px}.writing-workspace .writing-check{min-height:39px;font-size:11px;line-height:1.3;padding:8px 9px}.writing-workspace .writing-review{gap:6px}.writing-kicker{font-size:9px}.writing-evidence{gap:5px}.writing-evidence-label{font-size:11px}.writing-evidence-area{height:62px}.writing-evidence-input{min-height:33px;padding:8px 10px}.writing-evidence .writing-guidance{font-size:10px!important}.writing-guide-card{padding:12px;gap:10px}.writing-guide-card p{font-size:12px}.writing-repair{gap:9px}.writing-repair-input{height:85px;min-height:65px}.writing-context{padding:9px 11px;font-size:12px}.writing-review-switch button{font-size:10px;min-height:27px}}
.keyboard-open .writing-workspace .writing-evidence{justify-content:flex-start;gap:4px}
.keyboard-open .writing-evidence-area{height:50px;min-height:35px}
.keyboard-tight .writing-review-switch,.keyboard-tight .writing-evidence .writing-guidance{display:none}

.writing-library .fit-content{position:relative!important;left:auto!important;top:auto!important;transform:none!important;width:100%;display:flex;flex-direction:column;justify-content:center;gap:12px;min-height:0}
.writing-library .fit-content>h1{margin:0!important}
.writing-teacher-panel>p{font-size:13px;line-height:1.4;color:var(--ink)}
.writing-teacher-panel>a{display:block;font-size:12px;color:var(--ink);margin-top:9px}
.student-workspace:has(.student-review)>.writing-task{display:none}
@media(max-height:650px){
 .writing-lesson .exercise-body>.fit-content:has(>.student-scene-reference){padding-bottom:0}
 .writing-lesson .exercise-body>.fit-content>.student-scene-reference{margin-bottom:6px}
 .writing-lesson .exercise-body>.fit-content>.student-scene-reference .student-picture{width:90px}
}
/* Keep a usable editor during keyboard transitions and short landscape views. */
@media(max-height:500px){
 .writing-editor-mode .lesson-progress{height:54px;min-height:54px;padding:3px 0}
 .writing-editor-mode .question-head{padding:4px 0 5px}
 .writing-editor-mode .question-head h1{font-size:15px}
 .writing-editor-mode .lesson-controls{padding:4px 0}
 .writing-editor-mode .lesson-controls .bottom-actions{height:58px;min-height:58px}
 .student-workspace{gap:4px}
 .student-workspace .student-picture{width:76px;border-radius:9px}
 .student-workspace .student-scene-reference{gap:7px}
 .student-workspace .student-scene-reference p{font-size:10px;line-height:1.25}
 .student-workspace .student-kept-idea>span,.student-workspace .student-writing-goal{display:none}
 .student-workspace .writing-task{font-size:11px;line-height:1.25}
 .student-workspace .writing-task-options button{min-height:25px;font-size:10px}
 .student-workspace .student-review p{padding:4px 7px;font-size:10px}
 .student-workspace .writing-editor{min-height:45px;padding:8px 10px}
}
@media(max-height:650px){.writing-library .writing-piece-card{padding:11px 12px}.writing-library .writing-piece-card p{font-size:11px;line-height:1.4;margin:6px 0}.writing-library .writing-piece-card strong{font-size:14px}.writing-library .fit-content{gap:10px}}

/* Secondary information stays neutral and readable throughout the course. */
.student-kept-idea>span,.student-writing-goal,.writing-meta,.writing-kicker,.writing-pages,.writing-independent-note,.writing-paper-card .writing-paper-note,.writing-exam-intro,.writing-time-note,.writing-word-bank small{color:var(--writing-muted)}
.writing-editor::placeholder,.writing-evidence-input::placeholder{color:var(--writing-muted)}
body[data-course="writing"] .hint-button,body[data-course="writing"] .lesson-menu>button,body[data-course="writing"] .popup-bubble>p,body[data-course="writing"] .lesson-status-popup h2,body[data-course="writing"] .lesson-status-popup p{color:var(--ink)}

/* Source provenance stays secondary to the student activity. */
.writing-source-note{align-self:center;flex:0 0 auto;color:var(--writing-muted);font-size:11px;line-height:1.3;text-decoration:underline;text-underline-offset:3px}
.writing-source-note:focus-visible{outline:2px solid var(--ink);outline-offset:4px;border-radius:2px}
