/* Quiet additions share the existing palette and components. */
textarea{font:inherit;max-width:100%;min-width:0;width:100%;resize:vertical;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:9px;padding:12px 14px;line-height:1.65;outline-offset:4px}textarea:focus{outline:2px solid var(--teal)}
.sidebar{overflow-y:auto}.sidebar nav{gap:3px}.nav-link{padding:11px 12px}.sidebar-bottom{padding-top:18px}.quiet-note{display:none}.profile-mini small{white-space:normal;overflow-wrap:anywhere}.brand{padding-bottom:26px}.nav-caption{margin-bottom:13px}
.exam-bar{display:flex;align-items:center;gap:20px;margin:0 0 28px;padding:15px 20px;background:var(--surface);border:1px solid var(--line);border-radius:12px;flex-wrap:wrap}.exam-bar label{display:flex;align-items:center;gap:14px;font-size:.78rem;color:var(--muted);margin:0}.exam-bar select{min-width:200px;max-width:340px;margin:0;padding:9px 30px 9px 11px;border:1px solid var(--line);border-radius:7px;background:var(--surface-soft);color:var(--ink)}.exam-bar>.badge{margin-left:auto}.exam-context{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:30px}.exam-context h2{margin:6px 0}.exam-context p{font-size:.85rem}.exam-context>div:last-child{padding-left:25px;border-left:1px solid var(--line);align-self:center}.exam-context .badge{margin:8px 0}
.learning-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.learning-grid .test-card{box-shadow:none}.learning-grid>section>.btn{margin-top:20px}.next-step-number{font:700 3rem Manrope,sans-serif;color:var(--teal);margin:12px 0}.next-step-number span{font:400 .85rem 'DM Sans',sans-serif;color:var(--muted);margin-left:12px}.essay-hero-art{background:var(--surface);padding:26px 30px 22px;transform:rotate(5deg);border:1px solid #d5e1db;box-shadow:-14px 14px 0 #bed4c64d;border-radius:9px;width:240px;margin:0 8%;color:var(--teal-deep)}.essay-hero-art>span{font-size:.6rem;letter-spacing:2px}.essay-hero-art>div{height:1px;background:#dce7df;margin:22px 0}.essay-hero-art p{font:italic 19px Georgia,serif}.spaced{margin-top:24px}.preserve-lines{white-space:pre-wrap;overflow-wrap:anywhere}.writing-teaser{display:flex;flex-direction:column;gap:18px}.writing-teaser .btn{align-self:flex-start;margin-top:auto}
.writing-intro{display:grid;grid-template-columns:minmax(0,2.3fr) minmax(220px,1fr);gap:24px}.writing-intro h2{margin:10px 0}.writing-intro p{font-size:.88rem}.prompt-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin-top:24px}.prompt-card{display:flex;flex-direction:column;align-items:flex-start;gap:14px;text-align:left;padding:20px 16px;background:var(--surface-soft);border:1px solid var(--line);border-radius:10px;transition:border-color .15s}.prompt-card:hover{border-color:var(--teal)}.prompt-card strong{font:650 .95rem Manrope,sans-serif;line-height:1.5}.prompt-card small{font-size:.72rem;color:var(--muted);margin-top:auto}.prompt-card>.text-link{font-size:.8rem}.studio-note{display:flex;flex-direction:column;gap:16px}.studio-note .badge{align-self:flex-start}.studio-note p{font-size:.85rem;color:var(--muted)}.writing-row{display:flex;align-items:center;gap:18px;padding:20px 0;border-bottom:1px solid var(--line)}.writing-row:last-child{border-bottom:0}.writing-row>div{flex:1;min-width:0}.writing-row strong{display:block;font-size:.9rem;overflow-wrap:anywhere}.writing-row small{display:block;margin-top:7px;font-size:.73rem;color:var(--muted)}.writing-row:hover strong{color:var(--teal)}
.editor-layout{display:grid;grid-template-columns:minmax(0,2.4fr) minmax(240px,1fr);gap:24px}.editor-layout>aside{display:flex;flex-direction:column;gap:20px}.answer-editor label,.question-editor label{font-size:.8rem;font-weight:500}.answer-editor form>label,.question-editor>label{display:block;margin-bottom:20px}.answer-editor input:not([type=checkbox]),.answer-editor select,.question-editor input:not([type=radio]):not([type=checkbox]),.question-editor select{width:100%;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:8px;padding:12px;margin-top:8px}.answer-editor textarea,.question-editor textarea{margin-top:8px}.editor-label{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:22px}.essay-text{font-size:1rem;line-height:1.9;min-height:400px;padding:22px;tab-size:4;border-color:#c9dcd5}.upload-zone{padding:22px;background:var(--surface-soft);border:1px dashed #b5cbc3;border-radius:10px;margin:24px 0;overflow-wrap:anywhere}.upload-zone>label{display:flex;align-items:center;gap:8px;color:var(--teal);font-weight:650;margin-bottom:10px}.upload-zone input{padding:10px 0!important;border:none!important;background:transparent!important;font-size:.8rem}.upload-zone p{margin-top:8px}.editor-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:20px;margin-top:24px}.rubric-card h2{margin:6px 0 18px}.rubric-list>div{border-bottom:1px solid var(--line);padding:15px 0}.rubric-list>div:first-child{padding-top:0}.rubric-list>div:last-child{margin-bottom:18px}.rubric-list strong{display:flex;justify-content:space-between;gap:10px;font-size:.85rem}.rubric-list strong>span{color:var(--teal);font-weight:500}.rubric-list p{color:var(--muted);font-size:.78rem;margin-top:7px}.version-strip{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 24px}.answer-reading>p{margin-top:14px}.answer-reading h2{margin-bottom:18px}.answer-reading .preserve-lines{line-height:1.95;font-size:.95rem}.answer-reading hr{border:0;border-top:1px solid var(--line);margin:24px 0}.attachment-list{display:grid;gap:10px;margin-top:20px}.attachment-link{display:flex;gap:12px;align-items:center;border:1px solid var(--line);padding:12px 14px;border-radius:8px;margin-top:10px;font-size:.8rem;overflow-wrap:anywhere}.attachment-link span{min-width:0}.attachment-link small{display:block;color:var(--muted);margin-top:4px;font-size:.7rem}.assessment{margin-top:22px}.assessment>p{margin:10px 0}.criterion-feedback{padding:16px 0;border-bottom:1px solid var(--line);margin-bottom:15px}.criterion-feedback>div{display:flex;justify-content:space-between;font-size:.85rem;gap:10px}.criterion-feedback p{margin-top:7px;font-size:.85rem;color:var(--muted)}.mentor-criterion,.option-editor{border:1px solid var(--line);border-radius:9px;padding:18px;margin:20px 0}.mentor-criterion legend,.option-editor legend{font-size:.85rem;font-weight:650;padding:0 8px}.mentor-criterion label{margin-top:13px!important}.form-error{color:#a14444;font-size:.85rem;margin:18px 0 0!important;padding:14px;background:#fff1ee;border-radius:8px}
.mistake-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.mistake-card{display:flex;flex-direction:column;gap:18px}.mistake-card>p{font-size:.85rem;color:var(--muted)}.mistake-card>.row:last-child{margin-top:auto;gap:10px}.mistake-card small{font-size:.7rem;color:var(--muted)}.retry-panel{max-width:850px}.retry-panel>.passage{margin-bottom:24px}.retry-panel h2{margin-bottom:24px}.bank-row{display:grid;grid-template-columns:minmax(0,1fr) 150px;gap:24px;padding:25px 0;border-bottom:1px solid var(--line)}.bank-row:first-child{padding-top:0}.bank-row:last-child{padding-bottom:0;border-bottom:0}.bank-row h3{margin:8px 0}.bank-row p{margin-top:5px;overflow-wrap:anywhere}.bank-actions{display:flex;flex-direction:column;align-items:stretch;gap:10px}.bank-actions .badge{align-self:center}.toolbar label{font-size:.8rem}.toolbar select{margin-left:12px;max-width:300px;background:var(--surface);color:var(--ink);padding:10px;border:1px solid var(--line);border-radius:8px}.question-editor{max-width:950px}.exam-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-height:240px;overflow-y:auto;gap:4px 16px;border:1px solid var(--line);border-radius:10px;padding:18px;margin-bottom:22px}.exam-checks legend{padding:0 7px;font-size:.9rem}.exam-checks .check-row{font-size:.75rem;margin:0;padding:7px 0}.review-key{background:var(--surface-soft);padding:16px;border-radius:9px;margin:15px 0;max-height:300px;overflow:auto}.review-key p{margin-top:10px;font-size:.82rem}.exam-directory>section{margin-bottom:30px}.exam-directory h2{margin-bottom:16px}.exam-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.exam-list article{display:flex;flex-direction:column;gap:14px;padding:22px}.exam-list article>.row{margin-top:auto;gap:10px}.marking-inputs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.featured-exams{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-bottom:28px}.featured-exams button{border:1px solid var(--line);border-radius:12px;background:var(--surface);padding:24px 15px;display:flex;flex-direction:column;align-items:center;gap:18px}.featured-exams .icon{width:30px;height:30px;color:var(--teal)}.featured-exams button:hover{border-color:var(--teal);background:var(--teal-soft)}
[data-theme=dark] .essay-hero-art{border-color:var(--line);color:var(--ink);box-shadow:none}[data-theme=dark] .essay-hero-art>div{background:var(--line)}[data-theme=dark] .form-error{background:#422e2c;color:#efb9af}
@media(min-width:1450px){.editor-layout{grid-template-columns:minmax(0,2.6fr) minmax(280px,1fr)}}
@media(max-width:1100px){.writing-intro{grid-template-columns:minmax(0,1fr)}.writing-intro>.studio-note{display:none}.prompt-list{grid-template-columns:repeat(3,minmax(0,1fr))}.editor-layout{grid-template-columns:minmax(0,1fr) minmax(220px,.6fr)}.exam-list{grid-template-columns:repeat(2,minmax(0,1fr))}.essay-hero-art{margin:0 5%;width:200px}.exam-context{grid-template-columns:minmax(0,1fr)}.exam-context>div:last-child{border-left:0;padding-left:0}.featured-exams{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.learning-grid,.editor-layout,.mistake-grid{grid-template-columns:minmax(0,1fr)}.editor-layout>aside{display:block}.editor-layout>aside>section{margin-bottom:20px}.essay-hero-art{display:none}.exam-bar{align-items:stretch;gap:14px;padding:15px}.exam-bar label{display:block;width:100%}.exam-bar select{display:block;width:100%;max-width:none;min-width:0;margin-top:8px}.exam-bar>.badge{margin-left:0}.prompt-list{grid-template-columns:minmax(0,1fr)}.prompt-card{display:grid;grid-template-columns:minmax(0,1fr) auto}.prompt-card .badge{grid-column:1 / -1;justify-self:start}.prompt-card small{grid-column:1}.prompt-card .text-link{grid-column:2;grid-row:2 / 4;align-self:center}.essay-text{padding:14px;min-height:350px}.writing-row{flex-wrap:wrap}.writing-row>div{flex-basis:100%}.bank-row{grid-template-columns:minmax(0,1fr)}.bank-actions{flex-direction:row;flex-wrap:wrap}.bank-actions .badge{margin-right:auto}.exam-list{grid-template-columns:minmax(0,1fr)}.exam-checks{grid-template-columns:minmax(0,1fr)}.toolbar{flex-wrap:wrap;gap:15px}.toolbar label{width:100%}.toolbar select{margin:8px 0 0;width:100%;max-width:none}.featured-exams{grid-template-columns:repeat(2,minmax(0,1fr))}.featured-exams button:last-child{grid-column:1 / -1}.marking-inputs{gap:8px}.sidebar-bottom{padding-top:10px}.nav-link{padding:10px 12px}.nav-caption{margin-bottom:10px}.brand{padding-bottom:20px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.focus-exam-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}.focus-exam-card{display:flex;flex-direction:column;align-items:flex-start;gap:16px;padding:24px 18px;min-width:0}.focus-exam-card h2,.focus-exam-card p{margin:0}.focus-exam-card h2{font-size:1.3rem}.focus-exam-card p{font-size:.875rem;line-height:1.7;color:var(--muted);flex:1}.focus-exam-card .btn{width:100%;padding-inline:8px;font-size:.8125rem}@media(max-width:1200px){.focus-exam-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:650px){.focus-exam-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:380px){.focus-exam-grid{grid-template-columns:1fr}}

/* Preserve source-paper lists and paragraph boundaries. */
.question-text,.question-panel .passage p,.review-body .passage,.review-question summary strong,.options .option>span:not(.option-letter),.review-option,.topic-question,.focus-question{white-space:pre-wrap;overflow-wrap:anywhere}
