/* Additive styles: only the new mock-test surface. Existing page styles stay intact. */
#s-ex[data-jm]{min-width:0}
#s-ex[data-jm] *,#s-ex[data-jm] *::before,#s-ex[data-jm] *::after{box-sizing:border-box}
#s-ex .jm-top,#s-ex .jm-toolbar,#s-ex .jm-stagebar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
#s-ex .jm-top{justify-content:space-between;margin-bottom:20px}
#s-ex .jm-top h2{margin:0}
#s-ex .jm-icon{width:42px;min-width:42px;height:42px;padding:10px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #bbaa99;background:#fffdf9;color:#422a20;border-radius:5px;cursor:pointer;flex-shrink:0}
#s-ex .jm-icon svg,#s-ex .jm-audio svg{width:20px;height:20px;display:block;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#s-ex .jm-icon:focus-visible,#s-ex .jm-audio:focus-visible,#s-ex input:focus-visible,#s-ex textarea:focus-visible{outline:3px solid #a68260;outline-offset:3px}
#s-ex .jm-note{color:#6a5548;font-size:13px;line-height:1.65;margin:14px 0}
#s-ex .jm-counts{display:flex;gap:8px 22px;flex-wrap:wrap;padding:16px 0;border-top:1px solid #d9cec1;border-bottom:1px solid #d9cec1;margin:16px 0}
#s-ex .jm-counts span{display:flex;gap:8px;align-items:baseline}
#s-ex .jm-counts b{color:#40291e}
#s-ex .jm-scale{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:14px 16px;background:#f3eee5;border:1px solid #d8caba;color:#40291e}
#s-ex .jm-scale span{color:#6a5548;font-size:14px}
#s-ex .jm-stagebar{position:sticky;top:var(--jm-top,65px);z-index:7;padding:12px 0;background:#fbf8f3;border-bottom:1px solid #d9cec1;margin-bottom:22px;justify-content:space-between}
#s-ex .jm-stage-tabs{display:flex;gap:6px;max-width:100%;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#80634b transparent}
#s-ex .jm-stage-tabs button{white-space:nowrap;border:0;border-bottom:2px solid transparent;background:transparent;padding:9px 12px;color:#786253;font:inherit;cursor:pointer}
#s-ex .jm-stage-tabs button[aria-current=true]{border-bottom-color:#533626;color:#3f281d;font-weight:700}
#s-ex .jm-stage-tabs button:disabled{opacity:.45;cursor:default}
#s-ex .jm-clock{font-variant-numeric:tabular-nums;font-size:22px;letter-spacing:.04em;white-space:nowrap;color:#3d291f}
#s-ex .jm-clock[data-urgent=true]{font-weight:800;text-decoration:underline;text-underline-offset:6px}
#s-ex .jm-group-nav{display:flex;gap:8px;max-width:100%;overflow-x:auto;margin:2px 0 18px;padding:10px 0 14px;border-bottom:1px solid #d9cec1;scrollbar-width:thin;scrollbar-color:#80634b transparent}
#s-ex .jm-group-nav button{display:grid;grid-template-columns:30px minmax(max-content,1fr);grid-template-areas:"letter label" "letter count";align-items:center;gap:0 9px;min-width:max-content;padding:9px 13px 9px 9px;border:1px solid #cdbfad;border-radius:5px;background:#fffdf9;color:#493024;font:inherit;text-align:left;cursor:pointer}
#s-ex .jm-group-nav button:hover{border-color:#80634b;background:#f3eee5}
#s-ex .jm-group-nav button:focus-visible{outline:3px solid #a68260;outline-offset:3px}
#s-ex .jm-group-nav b{grid-area:letter;display:grid;place-items:center;width:30px;height:30px;background:#493024;color:#fff9ef;border-radius:3px;font-size:13px}
#s-ex .jm-group-nav span{grid-area:label;font-weight:700;font-size:13px;line-height:1.35}
#s-ex .jm-group-nav small{grid-area:count;color:#79604e;font-size:11px;line-height:1.35}
#s-ex .jm-group{margin:24px 0 32px;border-top:1px solid #d5c6b5;padding-top:20px;scroll-margin-top:180px}
#s-ex .jm-group h3{display:flex;gap:12px;align-items:baseline;font-size:18px;line-height:1.5;margin:0 0 8px}
#s-ex .jm-group h3 small{font-size:13px;color:#7d6454;font-weight:400}
#s-ex .jm-context{background:#f3eee5;border:1px solid #d8caba;padding:20px;margin:16px 0;color:#30251e;line-height:2;font-size:19px;white-space:pre-wrap;overflow-wrap:anywhere}
#s-ex .jm-context.jm-instructions{font-size:14px;line-height:1.7}
#s-ex .jm-question{padding:20px 0;border-bottom:1px solid #e1d6c9;min-width:0;scroll-margin-top:180px}
#s-ex .jm-question[data-speaking=true]{outline:2px solid #9e795b;outline-offset:5px}
#s-ex .jm-qline{display:flex;gap:12px;align-items:flex-start;margin-bottom:12px}
#s-ex .jm-qnumber{font-variant-numeric:tabular-nums;min-width:30px;color:#8b6b50;font-weight:700;padding-top:3px}
#s-ex .jm-prompt{font-size:20px;line-height:1.8;min-width:0;overflow-wrap:anywhere;flex:1}
#s-ex .jm-pinyin{display:block;font-family:inherit;font-size:13px;line-height:1.6;color:#79604e;margin-top:3px;font-weight:400}
#s-ex .jm-pinyin-tools{margin:0 0 18px}
#s-ex .jm-pinyin-toggle{min-width:max-content}
#s-ex .jm-audio{border:1px solid #baa48f;background:#fffdf9;color:#533626;min-width:42px;min-height:42px;padding:10px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:5px;cursor:pointer}
#s-ex .jm-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-left:42px}
#s-ex .jm-options.jm-picture-options{grid-template-columns:repeat(3,minmax(0,1fr));max-width:730px}
#s-ex .jm-option{position:relative;display:flex;align-items:flex-start;gap:10px;border:1px solid #d8c9b7;padding:13px 15px;border-radius:4px;background:#fffdf8;color:#3b2d24;min-width:0;cursor:pointer;font-size:17px;line-height:1.6;overflow-wrap:anywhere}
#s-ex .jm-option:has(input:checked){background:#ede3d6;border-color:#735036;box-shadow:inset 3px 0 #735036}
#s-ex .jm-option input{accent-color:#674631;width:17px;height:17px;margin:5px 0 0;flex-shrink:0}
#s-ex .jm-option .jm-option-content{flex:1;min-width:0}
#s-ex .jm-option-letter{font-family:inherit;font-size:12px;font-weight:700;color:#745337}
#s-ex .jm-bank{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:16px 0;padding:16px;background:#f3eee5;border:1px solid #d8caba}
#s-ex .jm-bank:has(.jm-object){grid-template-columns:repeat(3,minmax(0,1fr));max-width:800px}
#s-ex .jm-bank-entry{display:flex;gap:10px;align-items:flex-start;min-width:0;font-size:18px;line-height:1.7;overflow-wrap:anywhere}
#s-ex .jm-bank-entry>span{flex:1;min-width:0}
#s-ex .jm-bank-entry:has(.jm-object){display:block}
#s-ex .jm-bank-entry .jm-option-letter{display:block;margin-bottom:5px}
#s-ex .jm-option:has(.jm-object){padding:8px;gap:6px}
#s-ex .jm-object{display:block;width:100%;aspect-ratio:1;background-size:600% 600%;background-repeat:no-repeat;background-color:#faf4e8;border:1px solid #ddd0b8}
#s-ex .jm-story{width:100%;aspect-ratio:3.333;background-size:100% 500%;background-repeat:no-repeat;background-color:#f6efe1;margin:16px 0}
#s-ex .jm-scene{width:min(100%,540px);aspect-ratio:1;background-size:200% 300%;background-repeat:no-repeat;background-color:#f6efe1;margin:16px auto}
#s-ex .jm-write{width:100%;min-height:230px;resize:vertical;background:#fffdf9;color:#31251c;border:1px solid #bba68e;padding:16px;border-radius:4px;font-family:inherit;font-size:20px;line-height:1.9}
#s-ex .jm-character{font-size:36px;text-align:center;width:100px;height:80px;border:1px solid #ad9279;background:#fffdf9;color:#3d291f;border-radius:4px}
#s-ex .jm-draft-meta{display:flex;gap:12px;justify-content:space-between;flex-wrap:wrap;color:#79604e;font-size:13px;margin:8px 0}
#s-ex .jm-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:26px}
#s-ex .jm-status{font-size:13px;color:#785538;min-height:1.5em}
#s-ex .jm-status:empty{display:none}
#s-ex .jm-results{padding:20px;background:#493024;border:1px solid #795640;color:#fff9ef;margin-bottom:20px}
#s-ex .jm-results h3,#s-ex .jm-results b{color:inherit}
#s-ex .jm-results p{margin:8px 0}
#s-ex .jm-review-label{font-size:13px;font-family:inherit;color:#715037;margin:10px 0 0;line-height:1.6}
#s-ex .jm-review-label[data-correct=false]{font-weight:700}
#s-ex .jm-rubric{display:grid;gap:9px;margin:14px 0;border-left:2px solid #8e6b50;padding:12px 16px;background:#f5efe6}
#s-ex .jm-rubric label{display:flex;gap:10px;font-size:14px;line-height:1.6;align-items:flex-start}
#s-ex .jm-rubric input{accent-color:#64442e;width:17px;height:17px;flex-shrink:0;margin-top:3px}
#s-ex .jm-manual-score{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px;margin:14px 0;background:#fff8ea;border:1px solid #cdbb9f;color:#493024;font-weight:700}
#s-ex .jm-manual-score select{min-width:150px;height:42px;border:1px solid #aa8d70;background:#fffdf9;color:#33231a;padding:0 12px;font:inherit}
#s-ex .jm-exam-shell{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:28px;align-items:start}
#s-ex .jm-exam-main{min-width:0}
#s-ex .jm-answer-sheet{position:sticky;top:calc(var(--jm-top,65px) + 74px);border:1px solid #cdbfad;background:#fffdf9;padding:16px;box-shadow:0 12px 30px -26px rgba(51,32,23,.65)}
#s-ex .jm-sheet-head{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #ded2c5;padding-bottom:12px;color:#3f281d}
#s-ex .jm-sheet-head span{font-size:13px;color:#765b49}
#s-ex .jm-jumps{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;margin:14px 0}
#s-ex .jm-jumps a{width:100%;aspect-ratio:1;display:grid;place-items:center;border:1px solid #d7c6b1;color:#6e513b;text-decoration:none;border-radius:3px;font-size:12px;background:#fff}
#s-ex .jm-jumps a[data-answered=true]{background:#543725;color:#fff9ee;border-color:#543725}
#s-ex .jm-jumps a[data-marked=true]{box-shadow:inset 0 -3px #c69d65}
#s-ex .jm-sheet-legend{display:grid;gap:8px;border-top:1px solid #e1d6c9;padding-top:12px;font-size:12px;color:#6a5548}
#s-ex .jm-sheet-legend span{display:flex;align-items:center;gap:8px}
#s-ex .jm-sheet-legend i{display:block;width:14px;height:14px;border:1px solid #543725;background:#543725}
#s-ex .jm-sheet-legend span+span i{background:#fff;box-shadow:inset 0 -3px #c69d65}
#s-ex .jm-mode{display:flex;gap:18px;flex-wrap:wrap;line-height:1.7;margin:18px 0}
#s-ex .jm-mode label{display:flex;gap:8px;align-items:center}
#s-ex .jm-mode input{accent-color:#61432e;width:18px;height:18px}
#s-ex .jm-prep-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
#s-ex .jm-recording{display:flex;align-items:center;gap:8px;color:#6d3f25;font-size:14px}
#s-ex .jm-recording::before{content:'';width:9px;height:9px;border-radius:50%;background:#8c5434;animation:jm-pulse 1s ease-in-out infinite}
#s-ex .jm-playback{width:min(100%,500px);margin:12px 0}
#s-ex .jm-scoreboard{display:grid;grid-template-columns:minmax(210px,.7fr) minmax(0,1.3fr);gap:0;border:1px solid #795640;background:#fffdf9;margin:0 0 20px;color:#36251d}
#s-ex .jm-score-total{padding:24px;background:#493024;color:#fff9ef;display:flex;flex-direction:column;justify-content:center;gap:8px}
#s-ex .jm-score-total span{font-size:13px;letter-spacing:.08em;text-transform:uppercase}
#s-ex .jm-score-total strong{font-size:42px;line-height:1;font-variant-numeric:tabular-nums}
#s-ex .jm-score-total strong small{font-size:16px;font-weight:500;opacity:.8}
#s-ex .jm-score-total em{font-style:normal;font-size:13px;line-height:1.5;color:#f1ddc7}
#s-ex .jm-score-sections{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));align-self:stretch}
#s-ex .jm-score-sections>div{padding:20px 16px;border-left:1px solid #e0d4c7;display:flex;flex-direction:column;gap:6px;justify-content:center}
#s-ex .jm-score-sections span,#s-ex .jm-score-sections small{font-size:12px;color:#775f4e}
#s-ex .jm-score-sections b{font-size:22px;color:#493024;font-variant-numeric:tabular-nums}
#s-ex .jm-scoreboard>p{grid-column:1/-1;margin:0;padding:11px 16px;border-top:1px solid #e0d4c7;color:#725d4f;font-size:12px;line-height:1.55}
#s-ex.jm-fs,#s-ex:fullscreen{display:block!important;position:fixed;inset:0;z-index:2147482000;background:#fbf8f3;padding:24px clamp(16px,5vw,80px);overflow:auto;width:100%;height:100dvh;max-width:none;margin:0;--jm-top:0px}
#s-ex.jm-fs .jm-stagebar,#s-ex:fullscreen .jm-stagebar{top:0}
body.jm-fs-open{overflow:hidden}
#s-ex[data-jm] button:disabled{cursor:default;opacity:.5}
@keyframes jm-pulse{50%{opacity:.35}}
@media(max-width:650px){
 #s-ex .jm-options{margin-left:0;grid-template-columns:1fr}
 #s-ex .jm-options.jm-picture-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
 #s-ex .jm-options.jm-picture-options .jm-option{display:block;padding:6px}
 #s-ex .jm-options.jm-picture-options input{position:absolute;right:6px;top:3px}
 #s-ex .jm-bank{grid-template-columns:1fr;padding:10px;gap:12px}
 #s-ex .jm-bank:has(.jm-object){grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 #s-ex .jm-context{padding:14px;font-size:18px}
 #s-ex .jm-prompt{font-size:19px}
 #s-ex .jm-stagebar{top:var(--jm-top,56px);gap:8px;padding:8px 0}
 #s-ex .jm-clock{font-size:19px}
 #s-ex .jm-qline{gap:7px}
 #s-ex .jm-qnumber{min-width:25px}
 #s-ex .jm-prep-grid{grid-template-columns:1fr}
 #s-ex .jm-story{min-width:0}
 #s-ex .jm-top h2{font-size:26px}
 #s-ex .jm-write{min-height:260px;padding:12px}
 #s-ex .jm-scoreboard{grid-template-columns:1fr}
 #s-ex .jm-score-sections{grid-template-columns:repeat(auto-fit,minmax(95px,1fr))}
 #s-ex .jm-score-sections>div{border-left:0;border-top:1px solid #e0d4c7;padding:14px 10px}
 #s-ex .jm-score-sections b{font-size:18px}
 #s-ex .jm-manual-score{align-items:stretch;flex-direction:column}
 #s-ex .jm-manual-score select{width:100%}
}
@media(max-width:900px){
 #s-ex .jm-exam-shell{grid-template-columns:1fr;gap:10px}
 #s-ex .jm-answer-sheet{position:relative;top:auto;order:-1}
 #s-ex .jm-jumps{grid-template-columns:repeat(auto-fit,minmax(min(36px,100%),1fr));max-height:148px;overflow:auto}
}
@media(prefers-reduced-motion:reduce){#s-ex .jm-recording::before{animation:none}}

/* v39: every exam-card action occupies exactly one equal-width column. */
#s-ex .excard .jm-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:stretch;width:100%}
#s-ex .excard .jm-actions[data-buttons="1"]{grid-template-columns:minmax(0,1fr)}
#s-ex .excard .jm-actions[data-buttons="2"]{grid-template-columns:repeat(2,minmax(0,1fr))}
#s-ex .excard .jm-actions[data-buttons="3"]{grid-template-columns:repeat(3,minmax(0,1fr))}
#s-ex .excard .jm-actions>.btn{grid-column:auto;min-width:0;inline-size:100%;box-sizing:border-box;margin-top:0;align-self:stretch;padding-inline:8px;white-space:normal;line-height:1.3;display:flex;align-items:center;justify-content:center;text-align:center}
#s-ex .jm-history-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px}
#s-ex .jm-history-card{display:grid;grid-template-columns:1fr auto;gap:8px 14px;padding:18px;border:1px solid #d2c0b6;background:#fffdf9;box-shadow:0 10px 28px rgba(52,28,19,.07)}
#s-ex .jm-history-card>div{display:flex;flex-direction:column;gap:3px}#s-ex .jm-history-card>div span,#s-ex .jm-history-card small{font-size:12px;color:#706158}#s-ex .jm-history-card>strong{align-self:center;color:#721f24;font-size:1.4rem;font-variant-numeric:tabular-nums}#s-ex .jm-history-card>.btn{grid-column:1/-1;width:100%}
@media(max-width:430px){#s-ex .excard .jm-actions[data-buttons="3"]{gap:5px}#s-ex .excard .jm-actions[data-buttons="3"] .btn{padding:8px 4px;font-size:.72rem}}

/* v37: the practice/test workstation follows the existing HSK 1 oxblood palette. */
#s-ex .jm-preflight{border-color:#cbb8b0;background:#fbf5f2;color:#462a2b}#s-ex .jm-preflight h3{color:#721f24}#s-ex .jm-preflight>label{border-color:#c9aaa7}#s-ex .jm-preflight>label input{accent-color:#721f24}
#s-ex .jm-exam-idbar{background:#5a181e}#s-ex .jm-exam-idbar span:last-child{color:#f0d9d4}#s-ex .jm-lock-note{border-left-color:#b99054;background:#fff7e8;color:#493612}
#s-ex .jm-audio-state{border-color:#c8aaa7;background:#f9efec;color:#721f24}
#s-ex .jm-speaking-response{border-color:#d2bbb5;background:#fffaf8}#s-ex .jm-speaking-response>p{color:#684433}
#s-ex[data-jm-screen="paper"]{--jm-blue:#721f24;--jm-blue-dark:#4c1419;background:#f3ece9;color:#2d1c1a}
#s-ex[data-jm-screen="paper"] .jm-top{border-color:#d4c2ba}#s-ex[data-jm-screen="paper"] .jm-top h2{color:#5a181e}
#s-ex[data-jm-screen="paper"] .jm-stagebar{background:var(--jm-blue-dark);box-shadow:0 4px 13px rgba(76,20,25,.18)}#s-ex[data-jm-screen="paper"] .jm-stage-tabs button{color:#ead3cf}#s-ex[data-jm-screen="paper"] .jm-stage-tabs button[aria-current=true]{border-bottom-color:#d9a66d}
#s-ex[data-jm-screen="paper"] .jm-clock{color:#5a181e}#s-ex[data-jm-screen="paper"] .jm-exam-shell{border-color:#d4c2ba}#s-ex[data-jm-screen="paper"] .jm-answer-sheet{border-color:#c9b5ad;background:#fdf9f7}#s-ex[data-jm-screen="paper"] .jm-sheet-head{color:#5a181e;border-color:#dbc9c2}
#s-ex[data-jm-screen="paper"] .jm-jumps a{border-color:#ceb9b0;color:#684433}#s-ex[data-jm-screen="paper"] .jm-jumps a[data-answered=true]{background:#721f24;border-color:#721f24}#s-ex[data-jm-screen="paper"] .jm-group-nav button{border-color:#ceb9b0;background:#fdf9f7;color:#4a2a28}#s-ex[data-jm-screen="paper"] .jm-group-nav b{background:#721f24}
#s-ex[data-jm-screen="paper"] .jm-context{background:#faf3ef;border-color:#d7c4bc;color:#2d1c1a}#s-ex[data-jm-screen="paper"] .jm-option{border-color:#d4c1b8;color:#342220}#s-ex[data-jm-screen="paper"] .jm-option:has(input:checked){background:#f7e9e6;border-color:#8a3036;box-shadow:inset 4px 0 #8a3036}#s-ex[data-jm-screen="paper"] .jm-option input{accent-color:#721f24}
#s-ex[data-jm-screen="paper"] .jm-write,#s-ex[data-jm-screen="paper"] .jm-character{border-color:#bfa69c;color:#2d1c1a}#s-ex[data-jm-screen="paper"] .btn{background:#721f24;border-color:#721f24}#s-ex[data-jm-screen="paper"] .btn.ghost{background:#fff;color:#721f24;border-color:#a66f70}#s-ex[data-jm-screen="paper"] .jm-icon,#s-ex[data-jm-screen="paper"] .jm-audio{border-color:#b9908d;color:#721f24}#s-ex[data-jm-screen="paper"].jm-fs,#s-ex[data-jm-screen="paper"]:fullscreen{background:#efe6e2}

/* v26 — computer-based examination workstation */
#s-ex .jm-preflight{margin:22px 0;padding:22px;border:1px solid #b9c7d6;background:#f4f7fb;color:#203248}
#s-ex .jm-preflight h3{margin:0 0 12px;font-size:18px;color:#17365d}
#s-ex .jm-preflight ul{margin:0 0 16px;padding-left:22px;line-height:1.75}
#s-ex .jm-preflight>label{display:flex;align-items:flex-start;gap:10px;padding:13px 14px;background:#fff;border:1px solid #9fb3c8;font-weight:700}
#s-ex .jm-preflight>label input{width:19px;height:19px;margin-top:2px;accent-color:#155da3;flex:none}
#s-ex .jm-exam-idbar{display:grid;grid-template-columns:auto 1fr auto;gap:18px;align-items:center;margin:-2px 0 12px;padding:10px 14px;background:#17365d;color:#fff;font-size:13px;letter-spacing:.01em}
#s-ex .jm-exam-idbar b{font-size:12px;letter-spacing:.09em}
#s-ex .jm-exam-idbar span:last-child{color:#d8e8f8}
#s-ex .jm-lock-note{margin:0 0 14px;padding:9px 12px;border-left:4px solid #e4a11b;background:#fff5d9;color:#493612;font-size:13px;line-height:1.55}
#s-ex .jm-audio-state{display:inline-flex;align-items:center;gap:9px;padding:10px 13px;border:1px solid #a9bfd4;background:#edf5fc;color:#174c80;font-size:13px;font-weight:750}
#s-ex .jm-audio-state::before{content:'';width:9px;height:9px;border-radius:50%;background:#168254;box-shadow:0 0 0 4px rgba(22,130,84,.13)}
#s-ex .jm-speaking-response{margin-left:42px;padding:14px 16px;border:1px solid #c6d2de;background:#f7f9fb}
#s-ex .jm-speaking-response>p{margin:0 0 8px;color:#40566d;font-size:13px;font-weight:700}
#s-ex[data-jm-screen="paper"]{--jm-blue:#174d80;--jm-blue-dark:#102f51;background:#eef2f6;color:#1e2c3b}
#s-ex[data-jm-screen="paper"] .jm-top{margin:0;padding:13px 16px;background:#fff;border:1px solid #c8d2dc;border-bottom:0}
#s-ex[data-jm-screen="paper"] .jm-top h2{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-size:21px;color:#18334f;letter-spacing:0}
#s-ex[data-jm-screen="paper"] .jm-stagebar{top:0;margin:0;padding:0 14px;background:var(--jm-blue-dark);border:0;color:#fff;box-shadow:0 4px 13px rgba(18,46,75,.18)}
#s-ex[data-jm-screen="paper"] .jm-stage-tabs button{padding:13px 14px;color:#c9d9e8;border-bottom-width:3px}
#s-ex[data-jm-screen="paper"] .jm-stage-tabs button[aria-current=true]{color:#fff;border-bottom-color:#5dc2ff}
#s-ex[data-jm-screen="paper"] .jm-clock{padding:8px 12px;background:#fff;color:#133d65;font-size:22px;font-weight:800}
#s-ex[data-jm-screen="paper"] .jm-exam-shell{padding:18px;background:#fff;border:1px solid #c8d2dc;border-top:0}
#s-ex[data-jm-screen="paper"] .jm-answer-sheet{top:66px;border-color:#aebdcb;border-radius:0;box-shadow:none;background:#f8fafc}
#s-ex[data-jm-screen="paper"] .jm-sheet-head{color:#163d62;border-color:#cbd6e0}
#s-ex[data-jm-screen="paper"] .jm-jumps a{border-color:#b8c6d4;color:#234866;border-radius:2px}
#s-ex[data-jm-screen="paper"] .jm-jumps a[data-answered=true]{background:#1768a8;border-color:#1768a8;color:#fff}
#s-ex[data-jm-screen="paper"] .jm-jumps a[data-marked=true]{box-shadow:inset 0 -4px #f0ad2c}
#s-ex[data-jm-screen="paper"] .jm-group-nav button{border-color:#bac8d5;border-radius:2px;background:#f7f9fb;color:#223b54}
#s-ex[data-jm-screen="paper"] .jm-group-nav b{background:#1a568d;border-radius:2px}
#s-ex[data-jm-screen="paper"] .jm-context{background:#f4f7fa;border-color:#c7d3df;color:#1e2c3b}
#s-ex[data-jm-screen="paper"] .jm-option{border-color:#c3cfdb;border-radius:2px;background:#fff;color:#1d2d3d}
#s-ex[data-jm-screen="paper"] .jm-option:has(input:checked){background:#e9f3fb;border-color:#2474b5;box-shadow:inset 4px 0 #2474b5}
#s-ex[data-jm-screen="paper"] .jm-option input{accent-color:#1768a8}
#s-ex[data-jm-screen="paper"] .jm-write,#s-ex[data-jm-screen="paper"] .jm-character{border-color:#9eb1c3;border-radius:2px;background:#fff;color:#15283a}
#s-ex[data-jm-screen="paper"] .btn{border-radius:2px;background:#155d98;color:#fff;border-color:#155d98}
#s-ex[data-jm-screen="paper"] .btn.ghost{background:#fff;color:#174d80;border-color:#86a4bf}
#s-ex[data-jm-screen="paper"] .jm-icon,#s-ex[data-jm-screen="paper"] .jm-audio{border-radius:2px;border-color:#93aac0;color:#174d80;background:#fff}
#s-ex[data-jm-screen="paper"].jm-fs,#s-ex[data-jm-screen="paper"]:fullscreen{background:#e8edf3;padding:16px clamp(12px,3vw,42px)}
@media(max-width:650px){#s-ex .jm-exam-idbar{grid-template-columns:1fr;gap:4px}#s-ex .jm-speaking-response{margin-left:0}}
/* v30: printed-paper task controls, within the existing HSK paper palette. */
[data-jm] .jm-component{display:block;width:132px;height:132px;margin:16px 0;border:1px solid var(--line,#cfc5b6);background:#faf7f1;fill:#27211d}
[data-jm] .jm-character-grid{fill:none;stroke:#d4cbbf;stroke-width:5;stroke-dasharray:14 10}
[data-jm] .jm-sequence{width:110px;padding:10px 12px;font:600 20px/1.4 'Aptos','Segoe UI',sans-serif;letter-spacing:.22em;text-transform:uppercase;color:var(--ink,#2a241e);background:var(--paper,#faf7f1);border:1px solid var(--line,#cfc5b6)}
[data-jm] .jm-prompt>span{white-space:pre-line}
[data-jm] .jm-summary-note{padding:12px 16px;border-left:3px solid var(--red,#681e23);background:rgba(104,30,35,.06);line-height:1.65}
[data-jm] .jm-summary-source{white-space:pre-line;line-height:2;user-select:text}
[data-jm] .jm-write:disabled{opacity:.7;cursor:wait}
[data-jm] .jm-sequence:focus-visible{outline:2px solid var(--red,#681e23);outline-offset:3px}

/* v37 final palette override: must follow the legacy blue workstation block. */
#s-ex .jm-preflight{border-color:#cbb8b0;background:#fbf5f2;color:#462a2b}#s-ex .jm-preflight h3{color:#721f24}#s-ex .jm-preflight>label{border-color:#c9aaa7}#s-ex .jm-preflight>label input{accent-color:#721f24}
#s-ex .jm-exam-idbar{background:#5a181e}#s-ex .jm-exam-idbar span:last-child{color:#f0d9d4}#s-ex .jm-lock-note{border-left-color:#b99054;background:#fff7e8;color:#493612}#s-ex .jm-audio-state{border-color:#c8aaa7;background:#f9efec;color:#721f24}#s-ex .jm-speaking-response{border-color:#d2bbb5;background:#fffaf8}#s-ex .jm-speaking-response>p{color:#684433}
#s-ex[data-jm-screen="paper"]{--jm-blue:#721f24;--jm-blue-dark:#4c1419;background:#f3ece9;color:#2d1c1a}#s-ex[data-jm-screen="paper"] .jm-top{border-color:#d4c2ba}#s-ex[data-jm-screen="paper"] .jm-top h2{color:#5a181e}#s-ex[data-jm-screen="paper"] .jm-stagebar{background:var(--jm-blue-dark);box-shadow:0 4px 13px rgba(76,20,25,.18)}#s-ex[data-jm-screen="paper"] .jm-stage-tabs button{color:#ead3cf}#s-ex[data-jm-screen="paper"] .jm-stage-tabs button[aria-current=true]{border-bottom-color:#d9a66d}#s-ex[data-jm-screen="paper"] .jm-clock{color:#5a181e}
#s-ex[data-jm-screen="paper"] .jm-exam-shell{border-color:#d4c2ba}#s-ex[data-jm-screen="paper"] .jm-answer-sheet{border-color:#c9b5ad;background:#fdf9f7}#s-ex[data-jm-screen="paper"] .jm-sheet-head{color:#5a181e;border-color:#dbc9c2}#s-ex[data-jm-screen="paper"] .jm-jumps a{border-color:#ceb9b0;color:#684433}#s-ex[data-jm-screen="paper"] .jm-jumps a[data-answered=true]{background:#721f24;border-color:#721f24}#s-ex[data-jm-screen="paper"] .jm-group-nav button{border-color:#ceb9b0;background:#fdf9f7;color:#4a2a28}#s-ex[data-jm-screen="paper"] .jm-group-nav b{background:#721f24}
#s-ex[data-jm-screen="paper"] .jm-context{background:#faf3ef;border-color:#d7c4bc;color:#2d1c1a}#s-ex[data-jm-screen="paper"] .jm-option{border-color:#d4c1b8;color:#342220}#s-ex[data-jm-screen="paper"] .jm-option:has(input:checked){background:#f7e9e6;border-color:#8a3036;box-shadow:inset 4px 0 #8a3036}#s-ex[data-jm-screen="paper"] .jm-option input{accent-color:#721f24}#s-ex[data-jm-screen="paper"] .jm-write,#s-ex[data-jm-screen="paper"] .jm-character{border-color:#bfa69c;color:#2d1c1a}
#s-ex[data-jm-screen="paper"] .btn{background:#721f24;border-color:#721f24}#s-ex[data-jm-screen="paper"] .btn.ghost{background:#fff;color:#721f24;border-color:#a66f70}#s-ex[data-jm-screen="paper"] .jm-icon,#s-ex[data-jm-screen="paper"] .jm-audio{border-color:#b9908d;color:#721f24}#s-ex[data-jm-screen="paper"].jm-fs,#s-ex[data-jm-screen="paper"]:fullscreen{background:#efe6e2}
