/* Current USMLE-style single-block workspace. Tutor layouts remain independent. */
#playerDialogTitle{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
#qbankModal [hidden],.qb-exam-dialog [hidden]{display:none!important}
#qbankModal:has([data-study-mode="exam"]){z-index:10000}
#playerShell[data-study-mode="exam"]{--exam-blue:#064b70;--qb-font-scale:1;width:100%;max-width:1280px;height:min(900px,calc(100dvh - var(--qb-modal-inset)*2));max-height:calc(100dvh - var(--qb-modal-inset)*2);border:1px solid #c2d0ca;border-radius:16px;box-shadow:-6px 12px 40px #123a3038;display:grid;grid-template-columns:106px minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr) auto;grid-template-areas:"status header" "status summary" "status workspace" "status footer";font-family:Arial,Helvetica,sans-serif;color:#111;background:#fff}
#playerShell[data-study-mode="exam"].font-lg{--qb-font-scale:1.2}
#playerShell[data-study-mode="exam"].font-sm{--qb-font-scale:.94}
#playerShell[data-study-mode="exam"] .qb-exam-bar{grid-area:header;min-height:64px;gap:12px;padding:6px 12px;background:var(--exam-blue);color:#fff;border-bottom:1px solid #1b3549}
#playerShell[data-study-mode="exam"] .qb-exam-left{flex:none}
#playerShell[data-study-mode="exam"] :is(.qb-exam-bar,.qb-exam-foot,.qb-exam-tools,.qb-foot-left,.qb-foot-right){min-width:0}
#playerShell[data-study-mode="exam"] .qb-exam-badge{white-space:normal;border:1px solid #fff;border-radius:0;background:transparent;color:#fff;font:16px/1.3 Arial;padding:6px 10px;letter-spacing:0}
#playerShell[data-study-mode="exam"] .qb-top-mode-switch{display:none}
#examTopNav{display:flex;gap:12px;margin:auto}
#playerShell[data-study-mode="exam"] :is(.qb-tool-btn,.qb-btn){font:14px/1.2 Arial,Helvetica,sans-serif;min-height:44px;border-radius:4px;padding:7px 12px;box-shadow:none;letter-spacing:0}
#playerShell[data-study-mode="exam"] :is(.qb-exam-bar,.qb-exam-foot) :is(.qb-btn,.qb-tool-btn){background:var(--exam-blue);color:#fff;border:1px solid #fff9}
#playerShell[data-study-mode="exam"] :is(.qb-exam-bar,.qb-exam-foot) :is(.qb-btn,.qb-tool-btn):hover{background:#17698e}
#playerShell[data-study-mode="exam"] :disabled{opacity:.5;cursor:default}
#playerShell[data-study-mode="exam"] .qb-exam-tools{gap:6px;flex-wrap:nowrap}
#playerShell[data-study-mode="exam"] .qb-exam-strip{grid-area:status;display:flex;flex-direction:column;align-items:stretch;gap:0;min-height:0;padding:0;overflow:hidden;background:#fff;border-right:1px solid #536674;border-bottom:0}
#playerShell[data-study-mode="exam"] .qb-exam-strip-lbl{flex:none;text-align:center;white-space:normal;padding:6px 2px;margin:0;color:#111;font:700 14px/1.2 Arial;letter-spacing:0;text-transform:none}
.qb-status-items{overflow-y:auto;min-height:0;overscroll-behavior:contain}
#playerShell[data-study-mode="exam"] .qb-exam-qpill{display:grid;grid-template-columns:22px 1fr 12px;gap:2px;align-items:center;width:100%;height:auto;min-height:32px;padding:3px 4px;border:0;border-radius:0;font:16px/1.2 Arial;color:#111;background:#fff;justify-content:stretch}
#playerShell[data-study-mode="exam"] .qb-exam-qpill:nth-child(even){background:#e1e1e1}
#playerShell[data-study-mode="exam"] .qb-exam-qpill small{font:10px Arial;text-align:left}
#playerShell[data-study-mode="exam"] .qb-exam-qpill.cur{background:var(--exam-blue);color:#fff;outline-offset:-2px}
.qb-status-key{font:11px/1.5 Arial;padding:8px 5px;border-top:1px solid #aaa}
#playerShell[data-study-mode="exam"] .qb-workspace{grid-area:workspace;display:block;overflow-y:auto;overscroll-behavior:contain;scroll-padding:16px;background:#fff;min-height:0}
#playerShell[data-study-mode="exam"] .qb-pane{overflow:visible;border:0;background:#fff;padding:16px 30px 0;max-width:900px;margin-inline:auto;width:100%;font:calc(16px * var(--qb-font-scale))/1.45 Arial,Helvetica,sans-serif;color:#111}
#playerShell[data-study-mode="exam"] .qb-pane-stem p{font:inherit;margin:0 0 15px;color:inherit}
#playerShell[data-study-mode="exam"] .qb-stem-body{font:inherit;display:block;color:inherit}
#playerShell[data-study-mode="exam"] .qb-stem-para{border:0;padding:0;margin:0;background:none;box-shadow:none}
#playerShell[data-study-mode="exam"] .qb-lead-in{font:inherit;margin:8px 0 0;padding:0;border:0}
#examMarkRow{margin-bottom:12px}
#playerShell[data-study-mode="exam"] #flagBtn{color:#111;background:#fff;border:1px solid #8f9ba2;min-height:36px;border-radius:2px}
#playerShell[data-study-mode="exam"] #flagBtn[aria-pressed="true"]{background:#fff1bd;border-color:#966b00}
#playerShell[data-study-mode="exam"] .qb-pane-options{padding-top:12px;padding-bottom:28px}
#playerShell[data-study-mode="exam"] .qb-options-head{margin:0 0 6px;font:12px/1.4 Arial;letter-spacing:0;text-transform:none;color:#425462;justify-content:flex-start;gap:16px}
#playerShell[data-study-mode="exam"] .qb-options-list{width:fit-content;min-width:min(440px,100%);max-width:100%;border:1px solid var(--exam-blue);border-bottom:5px solid var(--exam-blue);border-radius:0;padding:6px 0;gap:0;background:#fff}
#playerShell[data-study-mode="exam"] .qb-opt-row{border:0;border-radius:0;box-shadow:none;background:#fff;min-height:44px;padding:8px 10px;gap:8px;font:inherit;color:#111}
#playerShell[data-study-mode="exam"] .qb-opt-letter{border:1px solid #65727a;background:#fff;color:#111;min-width:22px;width:22px;height:22px;font:12px Arial}
#playerShell[data-study-mode="exam"] .qb-opt-row.selected{background:#eaf2f8}
#playerShell[data-study-mode="exam"] .qb-opt-row.selected .qb-opt-letter{background:var(--exam-blue);color:#fff}
#playerShell[data-study-mode="exam"] .qb-opt-text{font:inherit}
#playerShell[data-study-mode="exam"] .qb-opt-strike{width:32px;height:32px;margin-left:10px;background:#fff;border:1px solid #b4c2cd;color:#4b5563}
#playerShell[data-study-mode="exam"] .qb-submit-box{display:none}
#playerShell[data-study-mode="exam"] .qb-exam-summary{grid-area:summary;max-height:160px;overflow-y:auto}
#playerShell[data-study-mode="exam"] .qb-exam-foot{grid-area:footer;min-height:58px;background:var(--exam-blue);color:#fff;border-top:1px solid #122f43;padding:6px 12px;gap:10px}
#playerShell[data-study-mode="exam"] .qb-timer{font:16px/1.3 Arial;color:#fff;background:transparent;border:1px solid #fff;border-radius:0;padding:8px;white-space:nowrap}
#playerShell[data-study-mode="exam"] .qb-timer.crit{background:#8b1d1d}
#playerShell[data-study-mode="exam"] .qb-foot-center{font:11px/1.4 Arial;color:#fff;max-width:300px;text-align:center}
#playerShell[data-study-mode="exam"][data-exam-state="ending"] .qb-options-list{pointer-events:none;opacity:.7}
#playerShell[data-study-mode="exam"] .qb-labs-drawer{position:fixed;top:66px;bottom:60px;right:0;height:auto;max-height:none;width:min(530px,calc(100vw - 106px));z-index:20;border-radius:0;background:white;box-shadow:-4px 0 18px #0002}
#playerShell[data-study-mode="exam"] .qb-calc-pop{position:fixed;top:70px;right:20px;max-height:calc(100dvh - 140px);overflow:auto;z-index:21}
#qbankModal button:focus-visible,#qbankModal [role="radio"]:focus-visible,.qb-exam-dialog :focus-visible{outline:3px solid #d59500;outline-offset:2px}
.qb-exam-dialog{box-sizing:border-box;width:min(600px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;border:1px solid #b8c9c0;border-left:4px solid #0b4a3d;border-radius:16px;padding:22px;box-shadow:-6px 10px 32px #0b4a3d33;background:#fffdf8;color:#142e28;font:15px/1.5 Arial}
.qb-exam-dialog::backdrop{background:#193d42aa}
.qb-exam-dialog header,.qb-exam-dialog footer{display:flex;justify-content:space-between;align-items:center;gap:12px;position:sticky;background:#fffdf8;z-index:1}
.qb-exam-dialog header{top:-22px;padding:8px 0}.qb-exam-dialog footer{bottom:-22px;padding:12px 0}
.qb-exam-dialog h2{font:600 22px/1.25 Arial;margin:0}.qb-exam-dialog p{margin:12px 0}.qb-exam-dialog button,.qb-exam-dialog select{font:600 14px Arial;min-height:44px;border:1px solid #a8beb2;background:white;color:#0b4a3d;border-radius:8px;padding:8px 12px}
.qb-exam-dialog label{display:block;margin-top:12px}.qb-exam-dialog textarea{box-sizing:border-box;width:100%;font:16px/1.5 Arial;padding:12px;border:1px solid #a8beb2;border-radius:8px;resize:vertical;min-height:120px;max-height:50dvh}
#examConfirmEnd{background:#0b4a3d;color:white}#examReviewList{display:grid;gap:4px;margin:12px 0}#examReviewList button{display:flex;justify-content:space-between;font-weight:400;text-align:left}#examReviewList button span{font-size:12px}.qb-review-counts{font-weight:700}
@media(pointer:coarse){#playerShell[data-study-mode="exam"] .qb-exam-qpill,#playerShell[data-study-mode="exam"] .qb-opt-strike{min-height:44px}#playerShell[data-study-mode="exam"] .qb-opt-strike{min-width:44px}}
@media(max-width:1000px){#playerShell[data-study-mode="exam"] .qb-exam-bar{flex-wrap:wrap;gap:6px}#playerShell[data-study-mode="exam"] .qb-exam-tools{margin-left:auto}#playerShell[data-study-mode="exam"] .qb-pane{padding-left:18px;padding-right:18px}#playerShell[data-study-mode="exam"] .qb-foot-center{display:none}}
@media(max-width:600px){#playerShell[data-study-mode="exam"]{grid-template-columns:1fr;grid-template-rows:auto auto auto minmax(0,1fr) auto;grid-template-areas:"header" "status" "summary" "workspace" "footer"}#playerShell[data-study-mode="exam"] .qb-exam-strip{flex-direction:row;border-right:0;border-bottom:1px solid #bbc7ce;max-height:48px}#playerShell[data-study-mode="exam"] .qb-exam-strip-lbl{display:none}.qb-status-items{display:flex;overflow:auto}#playerShell[data-study-mode="exam"] .qb-exam-qpill{width:44px;flex:none;display:block;min-height:44px;padding:3px}#playerShell[data-study-mode="exam"] .qb-exam-qpill small{display:none}.qb-status-key{display:none}#playerShell[data-study-mode="exam"] .qb-exam-tools{width:100%;justify-content:space-between;gap:3px}#playerShell[data-study-mode="exam"] :is(.qb-tool-btn,.qb-btn){font-size:12px;padding:6px 7px}#playerShell[data-study-mode="exam"] .qb-exam-badge{font-size:14px}#examTopNav{margin:0 0 0 auto;gap:6px}#playerShell[data-study-mode="exam"] .qb-pane{padding-left:14px;padding-right:14px}#playerShell[data-study-mode="exam"] .qb-timer{font-size:12px;padding:8px 5px}#playerShell[data-study-mode="exam"] .qb-exam-foot{padding:6px;gap:5px;padding-bottom:max(6px,env(safe-area-inset-bottom))}#playerShell[data-study-mode="exam"] .qb-labs-drawer{top:150px;bottom:58px;width:100%}#playerShell[data-study-mode="exam"] .qb-calc-pop{top:140px;right:8px;max-height:calc(100dvh - 205px)}.qb-exam-dialog{padding:16px}.qb-exam-dialog header{top:-16px}.qb-exam-dialog footer{bottom:-16px}}
@media(max-height:500px) and (min-width:601px){#playerShell[data-study-mode="exam"] .qb-exam-bar{min-height:50px;flex-wrap:nowrap;gap:4px}#playerShell[data-study-mode="exam"] :is(.qb-tool-btn,.qb-btn){font-size:12px;padding:4px 6px}#examTopNav{gap:4px}#playerShell[data-study-mode="exam"] .qb-exam-tools{gap:4px}#playerShell[data-study-mode="exam"] .qb-exam-badge{font-size:13px;padding:4px}#playerShell[data-study-mode="exam"] .qb-exam-foot{min-height:50px}#playerShell[data-study-mode="exam"] .qb-labs-drawer{top:56px;bottom:54px}}
@media(max-width:360px){#playerShell[data-study-mode="exam"] .qb-exam-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}#playerShell[data-study-mode="exam"] .qb-exam-foot{flex-wrap:wrap}#playerShell[data-study-mode="exam"] .qb-foot-left{width:100%;justify-content:center}#playerShell[data-study-mode="exam"] .qb-timer{padding:3px 8px}#playerShell[data-study-mode="exam"] .qb-labs-drawer{top:195px;bottom:94px}}
@media(max-width:600px){#playerShell[data-study-mode="exam"] .qb-exam-qpill{position:relative}#playerShell[data-study-mode="exam"] .qb-exam-qpill small{display:block;font:8px/1.1 Arial;text-align:center}#playerShell[data-study-mode="exam"] .qb-exam-qpill b{position:absolute;top:2px;right:2px;font:700 9px Arial}}
