/* Bluebook-style practice screen, layered on the Exam theme.
   Everything is scoped to body[data-workspace="exam"] so Notebook and Focus keep their own
   layouts. The markup, ids and handlers are untouched: this file and bluebook.js only move
   and restyle what app.js and workspace.js already render. */

body[data-workspace="exam"]{
  --ws-accent:#0b5fff; --ws-tint:#eaf1ff; --ws-rule:#1a1a1a;
  --fx-accent-line:#9fbaea; --fx-band:#a9bee6;
  --mint:#0b5fff; --mint2:#084bd0; --blue:#0b5fff; --ws-focus:#0b5fff;
  --bb-line:#b9bec7; --bb-ink:#111; --bb-head:64px; --bb-foot:64px;
}
body[data-workspace="exam"][data-test="act"]{ --ws-accent:#0b2a5b; --ws-tint:#e8f0ff; --mint:#0b2a5b; --mint2:#071d40; --blue:#0b2a5b; --ws-focus:#0b2a5b; }

/* ---------- The test screen is always the light Bluebook palette ----------
   The Progress Desk shell can be dark. The exam itself never is, so while a test is on screen the
   Desk's palette variables are replaced with the light set (and the Bluebook blue); every Desk
   token that derives from them follows. */
body.pd-shell[data-workspace="exam"].workspace-practicing{
  --desk-bg:#fff;--desk-surface:#fff;--desk-soft:#f3f4f6;--desk-ink:#111;--desk-muted:#5b6470;--desk-line:#c9ced6;
  --desk-accent:#0b5fff;--desk-on-accent:#fff;--desk-tint:#eaf1ff;color-scheme:light;
}
html[data-desk-appearance] body[data-workspace="exam"].workspace-practicing{
  color-scheme:light;--ws-success:#176341;--ws-error:#a62d29;--ws-warn:#775414;--ws-success-bg:#e7f4ec;--ws-error-bg:#fbece9;--ws-overlay:rgba(26,26,26,.74);
  --fx-overlay:rgba(26,26,26,.74);--fx-r-sm:4px;--fx-r-md:6px;--fx-r-lg:6px;
  --fx-good:#176341;--fx-good-lt:#176341;--fx-good-bg:#e7f4ec;--fx-good-line:#74a58a;--fx-on-good:#fff;
  --fx-warn:#775414;--fx-warn-bg:#faf1df;--fx-warn-line:#aa956d;--fx-gold:#775414;--fx-gold-bg:#faf1df;--fx-gold-line:#aa956d;
  --fx-info:#285b92;--fx-info-text:#285b92;--fx-info-bg:#edf3fa;--fx-info-line:#88a7c9;
  --fx-violet:#694294;--fx-violet-bg:#f3ecfa;--fx-accept:#176341;--fx-waitlist:#285b92;--fx-deny:#a62d29;
  background:#fff;color:#111;
}

/* ---------- Practice screen chrome ---------- */
body[data-workspace="exam"].workspace-practicing{background:#fff}
body[data-workspace="exam"].workspace-practicing .topbar,
body[data-workspace="exam"].workspace-practicing .foot,
body[data-workspace="exam"].workspace-practicing .sponsor-slot{display:none!important}
body[data-workspace="exam"].workspace-practicing .wrap{max-width:none!important;padding:0!important;margin:0!important}
body[data-workspace="exam"].workspace-practicing #screen-test>.card:first-child{
  position:sticky;top:0;z-index:40;border:0;border-bottom:2px dashed var(--bb-line);border-radius:0;
  box-shadow:none;margin:0;padding:0;background:#fff}
body[data-workspace="exam"][data-test="act"].workspace-practicing #screen-test>.card:first-child{background:#0b2a5b;color:#fff;border-bottom:0}
body[data-workspace="exam"].workspace-practicing #screen-test .module-head{
  display:grid;grid-template-columns:1fr auto 1fr;grid-template-rows:auto auto;align-items:center;column-gap:16px;
  padding:8px 24px;margin:0;position:relative}
body[data-workspace="exam"].workspace-practicing #screen-test .module-head>div:first-child{display:contents}
body[data-workspace="exam"].workspace-practicing #screen-test .module-tag{
  grid-column:1;grid-row:1;font:700 17px/1.2 Archivo,system-ui,sans-serif;letter-spacing:0;text-transform:none;color:inherit}
body[data-workspace="exam"].workspace-practicing #screen-test #moduleSub{grid-column:1;grid-row:2;font-size:13px;color:inherit;opacity:.8}
body[data-workspace="exam"].workspace-practicing #screen-test .bb-timer{
  grid-column:2;grid-row:1/3;justify-self:center;display:flex;flex-direction:column;align-items:center;gap:2px}
body[data-workspace="exam"].workspace-practicing #screen-test #modTimer{font:700 22px/1 Archivo,system-ui,sans-serif;font-variant-numeric:tabular-nums;color:inherit}
body[data-workspace="exam"].workspace-practicing #screen-test #btnHideTimer{
  min-height:0;padding:1px 10px;font-size:12px;border:1px solid currentColor;border-radius:12px;background:transparent;color:inherit}
body[data-workspace="exam"].workspace-practicing #screen-test .workspace-tools-home{grid-column:3;grid-row:1/3;justify-self:end}
body[data-workspace="exam"].workspace-practicing #screen-test .tools-bar{display:flex;gap:4px;border:0;background:none;padding:0}
body[data-workspace="exam"].workspace-practicing #screen-test .tool-btn{
  display:flex;flex-direction:column;align-items:center;gap:2px;min-width:64px;min-height:48px;padding:5px 8px;
  border:0;border-bottom:3px solid transparent;border-radius:6px;background:transparent;color:inherit;font-size:12px;font-weight:600}
body[data-workspace="exam"].workspace-practicing #screen-test .tool-btn svg{width:20px;height:20px}
body[data-workspace="exam"].workspace-practicing #screen-test .tool-btn.on{border-bottom-color:var(--ws-accent);background:var(--ws-tint);color:var(--bb-ink)}
body[data-workspace="exam"][data-test="act"].workspace-practicing .tool-btn.on{background:rgba(255,255,255,.18);color:#fff;border-bottom-color:#fff}
body[data-workspace="exam"].workspace-practicing #screen-test .tool-btn:hover{background:var(--ws-tint);color:var(--bb-ink)}
body[data-workspace="exam"][data-test="act"].workspace-practicing .tool-btn:hover{background:rgba(255,255,255,.14);color:#fff}
/* The less-used actions live behind a "More" button, as in Bluebook. */
body[data-workspace="exam"].workspace-practicing #screen-test .module-actions{
  display:none!important;position:absolute;top:100%;right:24px;z-index:50;flex-direction:column;gap:6px;min-width:210px;
  padding:10px;background:#fff;color:var(--bb-ink);border:2px solid var(--bb-ink);border-radius:10px;box-shadow:0 12px 30px rgba(0,0,0,.25)}
body[data-workspace="exam"].workspace-practicing.bb-more-open #screen-test .module-actions{display:flex!important}
body[data-workspace="exam"].workspace-practicing #screen-test .module-actions button{justify-content:flex-start;width:100%}
body[data-workspace="exam"].workspace-practicing #screen-test .progress-track{height:3px;margin:0;border-radius:0;background:#e6e8ec}
body[data-workspace="exam"].workspace-practicing #screen-test .progress-fill{background:var(--ws-accent)}
body[data-workspace="exam"].workspace-practicing #screen-test .progress-label,
body[data-workspace="exam"].workspace-practicing #screen-test .qfx-streak{display:none}

body[data-workspace="exam"][data-test="act"].workspace-practicing #screen-test :is(.bb-timer,#modTimer,#btnHideTimer,.module-tag,#moduleSub){color:#fff!important}
body[data-workspace="exam"][data-test="act"].workspace-practicing #screen-test #btnHideTimer{border-color:#fff}

body[data-workspace="exam"].workspace-practicing #screen-test .module-actions button{
  min-height:42px;background:#fff;color:var(--bb-ink);border:1px solid var(--bb-line);border-radius:8px;font-size:14px;font-weight:700;line-height:1.25;padding:10px 12px}
body[data-workspace="exam"].workspace-practicing #screen-test .module-actions button:hover{background:var(--ws-tint)}

/* The screen is exactly one viewport: header on top, a scrolling middle, the bar at the bottom.
   The bar is part of the layout, not laid over it, so nothing can ever scroll underneath it. */
body[data-workspace="exam"].workspace-practicing #screen-test{display:flex!important;flex-direction:column;height:100dvh;overflow:hidden}
body[data-workspace="exam"].workspace-practicing #screen-test #questionCard{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}
body[data-workspace="exam"].workspace-practicing #screen-test .workspace-grid{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}
body[data-workspace="exam"].workspace-practicing #screen-test .workspace-canvas{flex:1 1 auto;min-height:0;display:grid;grid-template-rows:minmax(0,1fr) auto}

/* ---------- Question area ---------- */
body[data-workspace="exam"].workspace-practicing #screen-test #questionCard{
  margin:0!important;padding:0;border:0;border-radius:0;box-shadow:none;background:#fff}
body[data-workspace="exam"].workspace-practicing #screen-test .workspace-grid{padding:0}
body[data-workspace="exam"].workspace-practicing #screen-test .workspace-navigator{display:none}
body[data-workspace="exam"].workspace-practicing #screen-test .workspace-canvas{width:100%;max-width:none;margin:0;padding:0;border:0;background:#fff;overflow:visible}
body[data-workspace="exam"].workspace-practicing #screen-test .workspace-question-body{width:100%;max-width:none;margin:0;padding:0 0 32px;overflow-y:auto;overflow-x:hidden;max-height:none;min-height:0}
body[data-workspace="exam"].workspace-practicing #screen-test .split{display:grid;grid-template-columns:1fr 1fr;gap:0;margin:0;min-height:100%}
body[data-workspace="exam"].workspace-practicing #screen-test .split-l{padding:28px 40px;border-right:2px solid var(--bb-ink);overflow:auto}
body[data-workspace="exam"].workspace-practicing #screen-test .split-r{padding:0 40px}
body[data-workspace="exam"].workspace-practicing #screen-test .passage{font-family:Georgia,"Times New Roman",serif;font-size:17px;line-height:1.7;color:var(--bb-ink);background:transparent;border:0;padding:0}
body[data-workspace="exam"].workspace-practicing #screen-test .workspace-question-body:not(:has(.split)){max-width:820px;margin:0 auto;padding-left:24px;padding-right:24px}
body[data-workspace="exam"].workspace-practicing #screen-test .bb-qhead{
  display:flex;align-items:center;gap:12px;background:#eef0f5;border-bottom:2px solid var(--bb-ink);margin:0 -40px 20px;padding:8px 40px}
body[data-workspace="exam"].workspace-practicing #screen-test .workspace-question-body:not(:has(.split)) .bb-qhead{margin:0 -24px 20px;padding:8px 24px}
body[data-workspace="exam"].workspace-practicing #screen-test .bb-num{background:var(--bb-ink);color:#fff;font-weight:800;padding:6px 12px;border-radius:0;font-size:16px}
body[data-workspace="exam"].workspace-practicing #screen-test .bb-star{margin-left:auto;background:transparent;border:0;color:var(--bb-ink);font-weight:600;min-height:0}
body[data-workspace="exam"].workspace-practicing #screen-test .qtext{font-size:18px;line-height:1.6;color:var(--bb-ink);margin:0 0 18px}
body[data-workspace="exam"].workspace-practicing #screen-test .choice{
  display:flex;align-items:center;gap:14px;width:100%;text-align:left;padding:12px 16px;min-height:54px;
  background:#fff;color:var(--bb-ink);border:2px solid var(--bb-ink);border-radius:10px;font-size:16px;font-weight:500}
body[data-workspace="exam"].workspace-practicing #screen-test .choice .key{
  display:grid;place-items:center;flex:none;width:30px;height:30px;border:2px solid var(--bb-ink);border-radius:50%;font-weight:800;font-size:14px;background:#fff;color:var(--bb-ink)}
body[data-workspace="exam"].workspace-practicing #screen-test .choice.sel{border-color:var(--ws-accent);background:var(--ws-tint)}
body[data-workspace="exam"].workspace-practicing #screen-test .choice.sel .key{background:var(--ws-accent);border-color:var(--ws-accent);color:#fff}
body[data-workspace="exam"].workspace-practicing #screen-test .choice:hover:not(:disabled){border-color:var(--ws-accent)}
body[data-workspace="exam"].workspace-practicing #screen-test .choice:focus-visible{outline:3px solid var(--ws-accent);outline-offset:2px}
body[data-workspace="exam"].workspace-practicing #screen-test .choice-row.struck .choice{opacity:.55;text-decoration:line-through}
body[data-workspace="exam"].workspace-practicing #screen-test .choice.correct{border-color:#1d6b3f;background:#edf6f0}
body[data-workspace="exam"].workspace-practicing #screen-test .choice.wrong{border-color:#b4241f;background:#fdeeee}

body[data-workspace="exam"].workspace-practicing.calc-open,body[data-workspace="exam"].workspace-practicing.calc-open.calc-wide{padding:0!important}

/* ---------- Bottom bar ---------- */
.bb-btns-pre{display:none}
body[data-workspace="exam"].workspace-practicing #screen-test .bb-foot{
  position:relative;z-index:45;margin:0;min-height:var(--bb-foot);
  display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;
  padding:8px 24px max(8px,env(safe-area-inset-bottom));background:#fff;border:0;border-top:2px dashed var(--bb-line);box-shadow:none}
.bbx-left,.bbx-right{display:flex;align-items:center;gap:10px;min-width:0}
.bbx-right{justify-content:flex-end;flex-wrap:nowrap}
body[data-workspace="exam"].workspace-practicing #screen-test .bb-btns{flex-direction:row;flex-wrap:nowrap;align-items:center}
body[data-workspace="exam"].workspace-practicing #screen-test .bb-btns button{width:auto;flex:none;white-space:nowrap}
.bbx-mid{display:flex;justify-content:center}
body[data-workspace="exam"].workspace-practicing #screen-test .bb-coin{display:none}
body[data-workspace="exam"].workspace-practicing #screen-test .bb-btns,
body[data-workspace="exam"].workspace-practicing #screen-test .bb-btns-pre{display:flex;gap:10px}
body[data-workspace="exam"].workspace-practicing #screen-test .bb-navbtn,
body[data-workspace="exam"].workspace-practicing #screen-test .bb-foot .secondary,
body[data-workspace="exam"].workspace-practicing #screen-test .bb-foot .qfx-check{
  min-height:44px;padding:11px 20px;line-height:1.25;border-radius:24px;font-weight:800;font-size:15px;border:2px solid var(--ws-accent);background:#fff;color:var(--ws-accent)}
body[data-workspace="exam"].workspace-practicing #screen-test .bb-foot .qfx-check,
body[data-workspace="exam"].workspace-practicing #screen-test .bb-foot .qfx-check.next{background:var(--ws-accent);color:#fff}
body[data-workspace="exam"].workspace-practicing #screen-test .bb-foot .qfx-check:disabled{background:#e6e8ec;border-color:#e6e8ec;color:#5b6470}
body[data-workspace="exam"].workspace-practicing #screen-test .bb-foot .secondary:disabled{opacity:1;color:#5b6470;border-color:#c9ced6;background:#f3f4f6}
body[data-workspace="exam"].workspace-practicing #screen-test .qfx-icon{width:44px;height:44px;border-radius:50%;border:2px solid var(--bb-ink);background:#fff;color:var(--bb-ink);font-size:20px;padding:0}
body[data-workspace="exam"].workspace-practicing #screen-test .qfx-icon.on{background:var(--ws-accent);border-color:var(--ws-accent);color:#fff}
body[data-workspace="exam"].workspace-practicing #screen-test .bb-pop{bottom:calc(100% + 12px);top:auto}

/* Question navigator: white cells, dashed when unanswered, filled when answered. */
body[data-workspace="exam"].workspace-practicing #screen-test .bb-pop .qdot{
  min-width:40px;height:40px;padding:0 6px;border:2px dashed var(--bb-line);border-radius:6px;background:#fff;color:var(--ws-accent);font-weight:800}
body[data-workspace="exam"].workspace-practicing #screen-test .bb-pop .qdot.answered{border:2px solid var(--ws-accent);background:var(--ws-accent);color:#fff}
body[data-workspace="exam"].workspace-practicing #screen-test .bb-pop .qdot.flagged{box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 6px #c0201a}
body[data-workspace="exam"].workspace-practicing #screen-test .bb-pop .qdot.current{outline:3px solid var(--bb-ink);outline-offset:2px}
body[data-workspace="exam"].workspace-practicing #screen-test .bb-pop{background:#fff;color:var(--bb-ink);border:2px solid var(--bb-ink);border-radius:12px;box-shadow:0 14px 36px rgba(0,0,0,.3);padding:14px}

/* ---------- Floating calculator ---------- */
body[data-workspace="exam"].workspace-practicing #screen-test .workspace-calculator-dock{
  position:fixed;z-index:60;top:92px;right:24px;left:auto;width:min(540px,calc(100vw - 32px));
  background:#fff;border:2px solid var(--bb-ink);border-radius:10px;box-shadow:0 14px 36px rgba(0,0,0,.32);overflow:hidden;grid-column:auto;grid-row:auto}
body[data-workspace="exam"].workspace-practicing #screen-test .workspace-calculator-dock:not(:has(.show)){display:none}
body[data-workspace="exam"].workspace-practicing #screen-test .workspace-calculator-dock .calc-head{
  background:var(--bb-ink);color:#fff;cursor:grab;touch-action:none;user-select:none}
body[data-workspace="exam"].workspace-practicing #screen-test .workspace-calculator-dock .calc-head button{background:#fff;color:var(--bb-ink);border:0}
body[data-workspace="exam"].workspace-practicing #screen-test .workspace-calculator-dock.dragging .calc-head{cursor:grabbing}

/* ---------- Tutor bubble ---------- */
.bbx-bubble{display:none}
body[data-workspace="exam"].workspace-practicing .bbx-bubble{
  display:grid;place-items:center;position:fixed;z-index:70;right:20px;bottom:calc(var(--bb-foot) + 22px);width:56px;height:56px;padding:0;
  border-radius:50%;border:0;background:var(--ws-accent);color:#fff;font:800 24px/1 Archivo,system-ui,sans-serif;box-shadow:0 6px 18px rgba(11,95,255,.45);cursor:pointer}
body[data-workspace="exam"][data-test="act"].workspace-practicing .bbx-bubble{box-shadow:0 6px 18px rgba(11,42,91,.45)}
body[data-workspace="exam"].workspace-practicing .bbx-bubble:focus-visible{outline:3px solid var(--bb-ink);outline-offset:3px}
body[data-workspace="exam"].workspace-practicing #screen-test .workspace-learning{
  display:none;position:fixed;z-index:65;right:20px;bottom:calc(var(--bb-foot) + 90px);width:min(390px,calc(100vw - 24px));
  max-height:min(560px,calc(100dvh - var(--bb-head) - var(--bb-foot) - 120px));overflow:auto;margin:0;padding:12px 14px;
  background:#fff;color:var(--bb-ink);border:2px solid var(--bb-ink);border-radius:14px;box-shadow:0 14px 36px rgba(0,0,0,.32)}
body[data-workspace="exam"].workspace-practicing.bb-ai-open #screen-test .workspace-learning{display:block!important}
body[data-workspace="exam"].workspace-practicing #screen-test .workspace-learning h2{font-size:16px;margin:0 0 8px}
body[data-workspace="exam"].workspace-practicing #screen-test .bbx-sheetbar{display:none}

/* ---------- Phones ---------- */
@media (max-width:820px){
  body[data-workspace="exam"]{--bb-head:112px;--bb-foot:76px}
  body[data-workspace="exam"].workspace-practicing #screen-test .module-head{grid-template-columns:1fr auto;padding:8px 14px;row-gap:4px}
  body[data-workspace="exam"].workspace-practicing #screen-test .module-tag{font-size:15px}
  body[data-workspace="exam"].workspace-practicing #screen-test .bb-timer{grid-column:2;grid-row:1;flex-direction:row;gap:8px}
  body[data-workspace="exam"].workspace-practicing #screen-test #modTimer{font-size:19px}
  body[data-workspace="exam"].workspace-practicing #screen-test .workspace-tools-home{grid-column:1/-1;grid-row:3;justify-self:stretch}
  body[data-workspace="exam"].workspace-practicing #screen-test .tools-bar{justify-content:space-between;width:100%}
  body[data-workspace="exam"].workspace-practicing #screen-test .tool-btn{min-width:0;flex:1;min-height:44px;font-size:11px}
  body[data-workspace="exam"].workspace-practicing #screen-test .module-actions{right:14px}
  body[data-workspace="exam"].workspace-practicing #screen-test .split{grid-template-columns:1fr;min-height:0}
  body[data-workspace="exam"].workspace-practicing #screen-test .split-l{border-right:0;border-bottom:2px solid var(--bb-ink);padding:18px 16px;max-height:38dvh}
  body[data-workspace="exam"].workspace-practicing #screen-test .split-r{padding:0 16px}
  body[data-workspace="exam"].workspace-practicing #screen-test .bb-qhead{margin:0 -16px 14px;padding:8px 16px}
  body[data-workspace="exam"].workspace-practicing #screen-test .workspace-question-body:not(:has(.split)){padding-left:16px;padding-right:16px}
  body[data-workspace="exam"].workspace-practicing #screen-test .workspace-question-body:not(:has(.split)) .bb-qhead{margin:0 -16px 14px;padding:8px 16px}
  body[data-workspace="exam"].workspace-practicing #screen-test .qtext{font-size:18px}
  body[data-workspace="exam"].workspace-practicing #screen-test .bb-foot{grid-template-columns:auto 1fr auto;gap:8px;padding:8px 12px max(8px,env(safe-area-inset-bottom))}
  body[data-workspace="exam"].workspace-practicing #screen-test .bb-navbtn{padding:0 10px;font-size:13px;white-space:nowrap}
  body[data-workspace="exam"].workspace-practicing #screen-test .bbx-left{gap:6px}
  body[data-workspace="exam"].workspace-practicing #screen-test .bb-btns{gap:6px}
  body[data-workspace="exam"].workspace-practicing #screen-test .tool-btn span{font-size:11px;line-height:1.1;text-align:center}
  body[data-workspace="exam"].workspace-practicing #screen-test .bb-foot .secondary,
body[data-workspace="exam"].workspace-practicing #screen-test .bb-foot .qfx-check{padding:0 14px;font-size:14px}
  body[data-workspace="exam"].workspace-practicing #screen-test .qfx-icon{width:38px;height:38px;font-size:18px}
  body[data-workspace="exam"].workspace-practicing #screen-test .bb-foot .secondary,body[data-workspace="exam"].workspace-practicing #screen-test .bb-foot .qfx-check{min-height:42px;padding:10px 12px}
  /* The calculator becomes a sheet over the lower part of the screen. */
  body[data-workspace="exam"].workspace-practicing #screen-test .workspace-calculator-dock{
    top:auto!important;left:0!important;right:0!important;bottom:var(--bb-foot);width:100%;border-radius:14px 14px 0 0;border-width:2px 0 0}
  body[data-workspace="exam"].workspace-practicing .bbx-bubble{right:14px;bottom:calc(var(--bb-foot) + 14px);width:50px;height:50px}
  body[data-workspace="exam"].workspace-practicing #screen-test .workspace-learning{
    left:8px;right:8px;width:auto;bottom:calc(var(--bb-foot) + 74px);max-height:60dvh}
}
@media (prefers-reduced-motion:no-preference){
  body[data-workspace="exam"].workspace-practicing #screen-test .choice{transition:border-color .12s,background .12s}
}

/* Between modules the stock chrome comes back: the site bar (with the layout picker) and a normal page flow. */
body[data-workspace="exam"].workspace-practicing:has(#routingCard[style*="block"]) .topbar{display:flex!important}
body[data-workspace="exam"].workspace-practicing:has(#routingCard[style*="block"]) #screen-test{display:block!important;height:auto;overflow:visible}
body[data-workspace="exam"].workspace-practicing:has(#routingCard[style*="block"]) .bbx-bubble{display:none}
body[data-workspace="exam"].workspace-practicing:has(#routingCard[style*="block"]) .wrap{padding:0 24px 24px!important}

/* On desktop, keep the entire multiple-choice item in view. Long passages and
   unusually long choice sets can scroll inside their own pane, while the page
   and the question card itself stay still. The hint controls are available in
   a compact disclosure so they do not push the last choice below the fold. */
@media (min-width:821px){
  body[data-workspace="exam"].workspace-practicing:not(:has(#routingCard[style*="block"])) #screen-test #questionCard,
  body[data-workspace="exam"].workspace-practicing:not(:has(#routingCard[style*="block"])) #screen-test .workspace-grid,
  body[data-workspace="exam"].workspace-practicing:not(:has(#routingCard[style*="block"])) #screen-test .workspace-canvas{min-height:0;max-height:none}
  body[data-workspace="exam"].workspace-practicing:not(:has(#routingCard[style*="block"])) #screen-test .workspace-question-body{
    overflow:hidden;padding:10px 0 0;scrollbar-gutter:auto}
  body[data-workspace="exam"].workspace-practicing:not(:has(#routingCard[style*="block"])) #screen-test .workspace-question-body:not(:has(.split)){
    display:flex;flex-direction:column;justify-content:center;padding:10px 24px}
  body[data-workspace="exam"].workspace-practicing:not(:has(#routingCard[style*="block"])) #screen-test .split{
    height:100%;max-height:100%;min-height:0;grid-template-rows:minmax(0,1fr);overflow:hidden}
  body[data-workspace="exam"].workspace-practicing:not(:has(#routingCard[style*="block"])) #screen-test .split-l,
  body[data-workspace="exam"].workspace-practicing:not(:has(#routingCard[style*="block"])) #screen-test .split-r{
    min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
  body[data-workspace="exam"].workspace-practicing:not(:has(#routingCard[style*="block"])) #screen-test .split-l{padding:20px 32px}
  body[data-workspace="exam"].workspace-practicing:not(:has(#routingCard[style*="block"])) #screen-test .split-r{padding:0 32px}
  body[data-workspace="exam"].workspace-practicing:not(:has(#routingCard[style*="block"])) #screen-test .bb-qhead{margin-bottom:12px}
  body[data-workspace="exam"].workspace-practicing:not(:has(#routingCard[style*="block"])) #screen-test .qtext{font-size:17px;line-height:1.4;margin:0 0 12px}
  body[data-workspace="exam"].workspace-practicing:not(:has(#routingCard[style*="block"])) #screen-test .choices{gap:8px;margin-top:0}
  body[data-workspace="exam"].workspace-practicing:not(:has(#routingCard[style*="block"])) #screen-test .choice{min-height:46px;padding:8px 12px;font-size:15px;line-height:1.3}
  body[data-workspace="exam"].workspace-practicing:not(:has(#routingCard[style*="block"])) #screen-test .idk-btn{min-height:32px;padding:4px 0}
  body[data-workspace="exam"].workspace-practicing:not(:has(#routingCard[style*="block"])) #screen-test .qfx-stuck{margin-top:8px;padding:0}
  body[data-workspace="exam"].workspace-practicing:not(:has(#routingCard[style*="block"])) #screen-test .qfx-stuck-head{min-height:34px;padding:4px 10px;cursor:pointer;list-style:none}
  body[data-workspace="exam"].workspace-practicing:not(:has(#routingCard[style*="block"])) #screen-test .qfx-stuck-head::-webkit-details-marker{display:none}
  body[data-workspace="exam"].workspace-practicing:not(:has(#routingCard[style*="block"])) #screen-test .qfx-stuck-head::after{content:"+";font-weight:800;color:var(--ws-accent)}
  body[data-workspace="exam"].workspace-practicing:not(:has(#routingCard[style*="block"])) #screen-test .qfx-stuck[open] .qfx-stuck-head::after{content:"−"}
  body[data-workspace="exam"].workspace-practicing:not(:has(#routingCard[style*="block"])) #screen-test .qfx-stuck-btns{margin:0;padding:4px 10px 8px}
  body[data-workspace="exam"].workspace-practicing:not(:has(#routingCard[style*="block"])) #screen-test .qfx-stuck-out{margin:0;padding:0 10px 8px}
  body[data-workspace="exam"].workspace-practicing:not(:has(#routingCard[style*="block"])) #screen-test .bb-foot{min-height:56px;padding:6px 20px max(6px,env(safe-area-inset-bottom))}
}
@media (min-width:821px) and (max-height:700px){
  body[data-workspace="exam"].workspace-practicing:not(:has(#routingCard[style*="block"])) #screen-test .module-head{padding-block:4px}
  body[data-workspace="exam"].workspace-practicing:not(:has(#routingCard[style*="block"])) #screen-test .tool-btn{min-height:40px;padding-block:2px}
  body[data-workspace="exam"].workspace-practicing:not(:has(#routingCard[style*="block"])) #screen-test .qtext{font-size:16px;line-height:1.3;margin-bottom:8px}
  body[data-workspace="exam"].workspace-practicing:not(:has(#routingCard[style*="block"])) #screen-test .choice{min-height:40px;padding-block:6px;font-size:14px}
  body[data-workspace="exam"].workspace-practicing:not(:has(#routingCard[style*="block"])) #screen-test .choices{gap:6px}
  body[data-workspace="exam"].workspace-practicing:not(:has(#routingCard[style*="block"])) #screen-test .bb-qhead{margin-bottom:8px}
  body[data-workspace="exam"].workspace-practicing:not(:has(#routingCard[style*="block"])) #screen-test .bb-foot{min-height:50px;padding-block:4px}
}
