#exam-desk-bar,.exam-focus-bar{display:flex;align-items:center;gap:14px;padding:15px 24px;background:var(--lib-panel,#fff);border-bottom:1px solid var(--lib-border,#dce3e9);color:var(--lib-ink,#263b53);min-width:0}
#player [hidden]{display:none!important}.exam-view-tabs{display:flex;gap:3px;padding:4px;border-radius:12px;background:var(--lib-soft,#edf2f6)}.exam-view-tabs button{border:0;border-radius:9px;background:transparent;color:var(--lib-muted,#788899);padding:9px 22px;font:600 13px/1.4 system-ui,'Microsoft YaHei',sans-serif;cursor:pointer}.exam-view-tabs button[aria-pressed=true]{color:var(--lib-accent,#356493);background:var(--lib-panel,#fff);box-shadow:0 1px 6px #1f334110}
.exam-desk-progress{margin-right:auto;color:var(--lib-muted,#788899);font-size:12px;font-variant-numeric:tabular-nums}#exam-desk-bar>.plain{font-size:12px}#exam-desk-bar>.primary{font-size:12px;padding:11px 19px;min-height:40px}.exam-focus-bar>span{margin-right:auto;font-size:13px}.exam-focus-bar button{font-size:12px}.exam-focus-bar [aria-pressed=true]{color:#b47728;border-color:#dfbf83;background:#e8c68715}
#exam-desk{padding:28px;max-height:calc(100svh - 210px);min-height:400px;overflow:auto;overscroll-behavior:contain;background:#e8edf1;scrollbar-gutter:stable;min-width:0;color:#28313c}
.exam-paper-grid,.exam-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:start;max-width:1350px;margin:auto}
.exam-leaf{background:#fffefa;box-shadow:0 3px 18px #25364712;border:1px solid #dae0e5;min-width:0;position:relative;padding:24px 28px 38px;font-family:Georgia,'Times New Roman','SimSun',serif;line-height:1.8;overflow-wrap:anywhere}
.exam-leaf-top{display:flex;justify-content:space-between;gap:10px;border-bottom:1px solid #d7dde1;padding-bottom:10px;margin-bottom:24px;color:#89939e;font:10px/1.5 system-ui,sans-serif;letter-spacing:.6px}.exam-leaf-number{text-align:center;border-top:1px solid #e0e4e7;margin-top:30px;padding-top:12px;font:11px/1.4 system-ui,sans-serif;color:#949ca5}
.exam-leaf button{cursor:pointer;color:inherit;font:inherit;letter-spacing:normal}.exam-leaf button:focus-visible,.exam-leaf input:focus-visible{outline:2px solid #356493;outline-offset:3px}.exam-leaf button:disabled{cursor:default}.desk-paper-cover{text-align:center;border-bottom:2px solid #344150;padding:12px 0 26px;margin-bottom:30px}.desk-paper-cover>span{font:11px system-ui,sans-serif;letter-spacing:3px;color:#718293}.app-shell .desk-paper-cover h1{font:700 23px/1.5 Georgia,'SimSun',serif;letter-spacing:0;margin:18px 0 12px;color:#273340}.desk-paper-cover>p{font:12px system-ui,sans-serif;color:#6f7e8b}.desk-paper-cover>div{display:flex;flex-wrap:wrap;justify-content:center;gap:9px 18px;margin-top:25px;font:11px system-ui,sans-serif;color:#71808c}.desk-paper-cover b{font-weight:500;color:#304256}
.app-shell .desk-section-title{font:700 16px/1.8 Georgia,'SimSun',serif;margin:16px 0;color:#2a3542}.desk-paper-question{padding:8px 0 24px;margin-bottom:18px;border-bottom:1px solid #e9ecee;font-size:14px}.desk-paper-question>header,.desk-writing-box>header{display:flex;justify-content:space-between;align-items:center;gap:6px;margin-bottom:14px}.desk-paper-question>header>button,.desk-writing-box>header>button{border:0;background:none;padding:2px 0;text-align:left;font-weight:700;font-size:16px}.desk-paper-question small,.desk-writing-box small{font:11px system-ui,sans-serif;color:#768594;font-weight:400}.desk-stem{line-height:1.85}.desk-stem .katex-display{overflow-x:auto;overflow-y:hidden}.desk-paper-question>footer{text-align:right;margin-top:14px}.desk-paper-question>footer button{background:transparent;border:0;color:#527698;font:11px system-ui,sans-serif;padding:6px 0}.desk-paper-options{display:grid;gap:6px;margin-top:12px}.desk-paper-options button{display:flex;align-items:baseline;gap:8px;text-align:left;border:1px solid transparent;border-radius:4px;background:none;padding:6px 9px;font-size:13px;min-height:38px}.desk-paper-options button[aria-pressed=true]{background:#e4edf5;border-color:#94b1c9;color:#315d83}.desk-paper-options b{font-weight:500}.desk-paper-passage{font-size:13px}.desk-paper-passage .english-passage{border:0!important;background:transparent!important;margin:0!important}.desk-paper-passage .english-passage-body{max-height:none!important;height:auto!important;overflow:visible!important;padding:0!important;color:#28313c!important}.desk-paper-passage .english-passage>summary{background:transparent!important;color:#587187!important;padding:8px 0!important}.desk-paper-passage .english-passage>summary span{display:none}.exam-leaf .question-illustration{margin:14px auto}.exam-leaf .question-illustration img{mix-blend-mode:multiply}.desk-status{font:10px/1.4 system-ui,sans-serif;color:#919aa4;white-space:nowrap}.desk-status.answered,.desk-status.graded{color:#388071}.desk-status.flagged{color:#b4823b;margin-left:6px}
.exam-card-grid{grid-template-columns:repeat(3,minmax(0,1fr));max-width:1600px;gap:20px}.exam-card-leaf{--card-red:#bf6783;min-height:640px;padding:20px 20px 30px}.exam-card-leaf .exam-leaf-top{color:#ad8190;border-color:#e6c5cf}.desk-card-cover{text-align:center;padding:10px 0 24px;border-bottom:1px solid var(--card-red);margin-bottom:20px}.desk-card-cover>span{font:11px/1.5 system-ui,sans-serif;letter-spacing:2px;color:#a48792}.app-shell .desk-card-cover h1{font:700 20px/1.6 'SimSun',serif;letter-spacing:1px;color:var(--card-red);margin:10px 0}.desk-card-cover>p{font:11px/1.7 system-ui,sans-serif;color:#8b7c85;margin:0}.desk-objective-card,.desk-blank-card{border:1px solid var(--card-red);padding:10px 12px;border-radius:9px;margin:14px 0}.app-shell .desk-objective-card h2,.app-shell .desk-blank-card h2{font:600 13px/1.6 'SimSun',serif;text-align:center;margin:4px 0 14px;color:#866373}.desk-bubbles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 12px;margin-bottom:18px}.desk-bubble-row{display:flex;align-items:center;gap:5px;font:10px system-ui,sans-serif;min-width:0}.desk-bubble-row>div{display:flex;gap:3px;flex-wrap:wrap}.desk-bubble-row button{font:10px/1.5 system-ui,sans-serif;min-width:18px;padding:0 2px;background:transparent;border:1px solid var(--card-red);color:#ae5b76;border-radius:1px}.desk-bubble-row button[aria-pressed=true]{background:#344355;border-color:#344355;color:white}.desk-bubble-row .desk-bubble-number{border:0;color:#4b4550;width:22px;flex-shrink:0;text-align:right}.desk-bubble-row i{color:#c59949}.desk-blank-row{display:grid;grid-template-columns:24px minmax(0,1fr) 54px;gap:5px;align-items:center;margin:17px 0}.desk-blank-row>button{border:0;padding:0;background:none;font-size:13px}.desk-blank-row input{min-width:0;max-width:100%;border:0!important;border-radius:0!important;border-bottom:1px solid var(--card-red)!important;background:transparent!important;color:#273340!important;font:14px Georgia,'SimSun',serif;padding:5px 2px!important}
.desk-writing-box{border:1px solid var(--card-red);border-radius:8px;padding:16px 14px;min-height:520px}.desk-writing-box>header{border-bottom:1px solid #e8c9d2;padding-bottom:12px}.desk-writing-box small{color:#ad7b8e;font-size:10px}.desk-writing-box .desk-ink-preview{min-height:460px}.desk-ink-preview{display:block;position:relative;width:100%;min-height:180px;background:transparent;border:0;padding:0;overflow:hidden;color:#b69aa4!important;text-align:center}.desk-ink-preview>span{font:12px system-ui,sans-serif;border:1px solid #ddc7ce;padding:9px 15px;border-radius:18px;background:#fffefa}.desk-ink-preview canvas{display:block;width:100%;height:auto;max-height:680px;object-fit:contain}.desk-ink-preview.compact{width:50px;min-height:32px;height:32px;align-self:center;border:1px solid #e7d3d9!important;border-radius:4px}.desk-ink-preview.compact>span{font:10px system-ui,sans-serif;padding:0;border:0}.desk-ink-preview.compact canvas{max-height:32px;height:32px;object-fit:contain}.desk-ink-preview.compact>span{font-size:0}.desk-ink-preview.compact>span:after{content:'手写';font-size:10px}.desk-writing-box.ruled .desk-ink-preview{background:repeating-linear-gradient(to bottom,transparent 0,transparent 31px,#e8c7d1 31px,#e8c7d1 32px);margin-top:8px}.desk-translation-box .desk-writing-box{min-height:150px;border:0;border-bottom:1px solid #dba5b6;border-radius:0;margin-bottom:20px;padding:0 4px 12px}.desk-translation-box .desk-writing-box .desk-ink-preview{min-height:120px}.desk-translation-box .desk-ink-preview canvas{max-height:160px;object-position:top}.app-shell .desk-card-section-title{font:600 15px/1.7 Georgia,serif;color:#83566a;margin:0 0 25px}.desk-self-summary{display:grid;border:1px solid var(--card-red);margin-top:25px}.desk-self-summary>button{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;text-align:center;background:transparent;border:0;border-bottom:1px solid #e6c5d0;font:11px/1.5 system-ui,sans-serif;padding:11px 5px}.desk-self-summary>button:last-child{border-bottom:0}.desk-response-preview{white-space:normal;font:13px/2 Georgia,'SimSun',serif;color:#3b414b}
.exam-before-handover .question-stage .answer-controls,.exam-before-handover .question-stage .study-grade,.exam-before-handover .question-stage #study-solution,.exam-before-handover .question-stage .english-translation-toolbar{display:none!important}.desk-typed-response{display:block;margin:20px 0;color:var(--lib-muted);font-size:12px}.desk-typed-response textarea{display:block;width:100%;box-sizing:border-box;margin-top:8px;padding:12px;resize:vertical;border:1px solid var(--lib-border);border-radius:10px;background:var(--lib-panel);color:var(--lib-ink);font:14px/1.8 system-ui,'Microsoft YaHei',sans-serif}.exam-session #q-options .desk-selected{background:#e4edf5!important;border-color:#87a8c5!important;color:#315d83!important}.exam-session #study-question-map .desk-map-answered{background:#e2f0e9;color:#397b65;border-color:#accabc}.exam-session #study-question-map .desk-map-flagged{box-shadow:inset 0 -3px #d9ae61}.exam-session .study-answer-sheet{background:var(--lib-panel)}
.desk-review-results{margin-top:28px;padding-top:24px;border-top:1px solid var(--lib-border)}.desk-review-table-wrap{overflow-x:auto;margin:16px 0}.desk-review-table{width:100%;border-collapse:collapse;font:12px/1.7 system-ui,sans-serif;color:var(--lib-ink)}.desk-review-table th,.desk-review-table td{text-align:left;padding:12px 14px;border-bottom:1px solid var(--lib-border);white-space:nowrap}.desk-review-table th{font-weight:500;color:var(--lib-muted)}#exam-desk-history{margin-top:24px}#exam-desk-history>details{border-top:1px solid var(--lib-border);padding:16px 0}#exam-desk-history summary{cursor:pointer;font-size:13px;color:var(--lib-ink)}
body:not(.light) #exam-desk{background:#1b2330}body:not(.light) .exam-leaf{box-shadow:0 4px 20px #0002;border-color:#4a515b}body:not(.light) .desk-review-table{color:#d6e0eb}
.desk-paper-question{font-size:clamp(12px,calc(var(--reader-font,20px)*.7),20px)}.desk-paper-options button,.desk-paper-passage{font-size:clamp(12px,calc(var(--reader-font,20px)*.65),19px)}.desk-bubble-row button{min-width:24px;min-height:28px;font-size:11px;display:inline-flex;align-items:center;justify-content:center}.desk-bubble-row .desk-bubble-number{min-width:22px}.desk-bubble-row>div{gap:3px}
@media(pointer:coarse){.desk-bubbles{grid-template-columns:minmax(0,1fr)!important}.desk-bubble-row{gap:9px}.desk-bubble-row button{min-width:36px;min-height:36px}.desk-bubble-row .desk-bubble-number{min-width:28px}.desk-bubble-row>div{gap:6px}.desk-bubble-row{margin-bottom:3px}}
.exam-focus-bar{scroll-margin-top:84px}
body:not(.light) .exam-view-tabs button[aria-pressed=true]{background:#30394a!important;color:#ceddf5!important;box-shadow:none}
@media(max-width:1350px){.exam-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.exam-paper-grid{gap:18px}.exam-leaf{padding-left:22px;padding-right:22px}}
@media(max-width:900px){#exam-desk{padding:18px;max-height:calc(100svh - 210px)}.exam-paper-grid{grid-template-columns:minmax(0,1fr);max-width:650px}.exam-card-grid{gap:14px}.exam-card-leaf{padding:15px 13px 24px}.desk-bubbles{grid-template-columns:1fr}.desk-writing-box{padding:12px}.desk-writing-box small{display:block}.desk-card-cover h1{font-size:18px!important}#exam-desk-bar{gap:9px;padding:12px 18px}.exam-view-tabs button{padding:8px 14px}.exam-focus-bar{padding:12px 18px}}
@media(max-width:600px){#exam-desk-bar{flex-wrap:wrap;gap:8px;padding:10px 12px}.exam-desk-progress{font-size:11px}.exam-view-tabs button{padding:8px 14px}#exam-desk-bar>[data-desk-action=hand-in]{margin-left:auto}#exam-desk{padding:12px;max-height:calc(100svh - 235px)}.exam-paper-grid,.exam-card-grid{grid-template-columns:minmax(0,1fr);gap:14px}.exam-leaf{padding:18px 18px 24px}.desk-bubbles{grid-template-columns:repeat(2,minmax(0,1fr))}.exam-focus-bar{flex-wrap:wrap;gap:8px;padding:10px 12px}.exam-focus-bar>span{font-size:12px}.exam-focus-bar button{padding:8px 10px}.desk-paper-question{font-size:13px}.desk-paper-cover h1{font-size:21px!important}.desk-review-table th,.desk-review-table td{padding:10px}.exam-card-leaf{min-height:580px}}
@media(max-width:600px){.desk-bubbles{grid-template-columns:minmax(0,1fr)}.desk-bubble-row button{min-width:34px;min-height:36px}.desk-bubble-row>div{gap:6px}.desk-bubble-row{margin-bottom:5px}}

/* The active past-paper workspace occupies the viewport, not the centered site card. */
.exam-desk-progress{display:flex;flex-direction:column;gap:3px;line-height:1.3}.exam-time-left{font-size:11px;white-space:nowrap;font-variant-numeric:tabular-nums;color:var(--lib-muted)}.exam-time-left.is-urgent{color:#b55742}
html.exam-viewport,body.exam-workspace-active{width:100%;height:100%;overflow:hidden;overscroll-behavior:none}
body.exam-workspace-active .library-shell main>header,body.exam-workspace-active .library-shell>.rail{display:none!important}
body.exam-workspace-active .library-shell main{margin-left:0!important;width:100%!important;transition:none!important}
body.exam-workspace-active .library-shell #practice{max-width:none!important;width:100%;margin:0!important;padding:0!important;animation:none!important;transform:none!important}
body.exam-workspace-active .library-shell #player{position:fixed;inset:0;z-index:20;display:flex;flex-direction:column;box-sizing:border-box;width:100%;height:100vh;height:100dvh;max-width:none;min-width:0;margin:0;border:0;border-radius:0;box-shadow:none;overflow:hidden;padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px);background:var(--lib-panel)}
body.exam-workspace-active .library-shell #player>.player-top{flex:0 0 auto;display:flex;flex-wrap:nowrap;align-items:center;gap:16px;padding:9px 18px;min-height:56px;background:var(--lib-panel);border-bottom:1px solid var(--lib-border)}
body.exam-workspace-active .player-top .player-progress{max-width:230px;margin-right:auto}
body.exam-workspace-active .player-top .timer{margin:0;min-width:72px;flex-shrink:0}
body.exam-workspace-active #exam-desk-bar,body.exam-workspace-active .exam-focus-bar{flex:0 0 auto;gap:12px;padding:9px 18px;min-height:50px;background:var(--lib-panel)}
body.exam-workspace-active .exam-view-tabs button{padding:7px 17px}
body.exam-workspace-active #exam-desk-bar>.primary{min-height:36px;padding:9px 17px}
body.exam-workspace-active .exam-in-focus .print-zoom-tools{display:none}
body.exam-workspace-active #player #exam-desk.exact-print-view{flex:1 1 0;min-height:0;max-height:none!important;width:100%;padding:8px;box-sizing:border-box;scrollbar-gutter:auto}
body.exam-workspace-active #player>.study-player-layout{flex:1 1 0;min-height:0;overflow:hidden;grid-template-columns:minmax(0,1fr) 176px;align-items:stretch}
body.exam-workspace-active .library-shell #player .question-stage{height:100%;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:18px 24px 24px;scroll-padding-top:12px}
body.exam-workspace-active .library-shell #player .study-answer-sheet.panel{position:relative;top:auto;align-self:stretch;min-height:0;height:100%;max-height:none;overflow-y:auto;overscroll-behavior:contain;margin:0;border-radius:0;padding:18px 12px;box-sizing:border-box}
body.exam-workspace-active .library-shell #q-title{margin:18px 0}
body.exam-workspace-active .ink-pad{margin:16px 0 20px;border-radius:12px}
body.exam-workspace-active .ink-heading{padding:9px 12px}
body.exam-workspace-active .ink-toolbar{padding:7px 9px}
@media(max-width:850px){
 body.exam-workspace-active .library-shell #player>.study-player-layout{display:block;overflow-y:auto;overscroll-behavior:contain}
 body.exam-workspace-active .library-shell #player .question-stage{height:auto;overflow:visible;padding:16px 18px 22px}
 body.exam-workspace-active .library-shell #player .study-answer-sheet.panel{height:auto;max-height:none;overflow:visible;border-left:0;border-top:1px solid var(--lib-border)}
 body.exam-workspace-active #player>.player-top{gap:12px;padding:8px 12px}
 body.exam-workspace-active #exam-desk-bar,body.exam-workspace-active .exam-focus-bar{gap:8px;padding:8px 12px}
}
@media(max-width:600px){
 body.exam-workspace-active .library-shell #player>.player-top{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:7px 10px;padding:7px 10px}
 body.exam-workspace-active #player .player-top #quit-practice{grid-column:1 / span 2;grid-row:1;justify-self:start}
 body.exam-workspace-active #player .player-top #study-pause{grid-column:3;grid-row:1}
 body.exam-workspace-active #player .player-top .player-progress{grid-column:1;grid-row:2;max-width:100%;width:100%;margin:0}
 body.exam-workspace-active #player .player-top .timer:not(.paper-timer){grid-column:2;grid-row:2}
 body.exam-workspace-active #player .player-top .paper-timer{grid-column:3;grid-row:2;min-width:58px;padding-left:10px}
 body.exam-workspace-active #exam-desk-bar{flex-wrap:wrap;padding:7px 10px;gap:5px 8px}
 body.exam-workspace-active #exam-desk-bar .print-zoom-tools{order:3;flex:0 0 100%;justify-content:flex-end;margin:0}
 body.exam-workspace-active .exam-view-tabs button{padding:7px 12px}
 body.exam-workspace-active .exam-desk-progress{font-size:10px;margin-right:0}
 body.exam-workspace-active #exam-desk-bar>[data-desk-action=review-flags]{margin-left:auto;padding:7px 9px;font-size:10px}
 body.exam-workspace-active #exam-desk-bar>.primary{padding:9px 12px;font-size:11px}
 body.exam-workspace-active .exam-focus-bar{min-height:44px;flex-wrap:wrap;padding:7px 10px}
 body.exam-workspace-active .exam-focus-bar button{padding:7px 10px}
 body.exam-workspace-active #player #exam-desk.exact-print-view{padding:4px}
 body.exam-workspace-active .library-shell #player .question-stage{padding:14px 12px 20px}
}
