.learning-workbench:has(>.wb-navigation){grid-template-rows:auto auto minmax(0,1fr) auto}
.pq-decision{height:100%;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:28px}.pq-prompt,.pq-evidence,.pq-result,.pq-lab{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:32px;display:flex;flex-direction:column;justify-content:center;align-items:start;gap:18px;min-height:0}.pq-prompt h2,.pq-evidence h2,.pq-result h2{font-size:clamp(22px,2.4vw,32px);line-height:1.35;margin:0}.pq-prompt p,.pq-evidence p,.pq-result p,.pq-lab p{margin:0}.pq-prompt .eyebrow,.pq-evidence .eyebrow,.pq-result .eyebrow{font-size:11px}.pq-hint,.pq-complete{font-size:12px;color:var(--muted)}.pq-answer{min-height:0;display:flex;flex-direction:column;justify-content:center;gap:24px}.pq-answer .choices{margin:0;gap:12px}.learning-workbench .pq-answer .choice{min-height:64px;padding:14px 18px;font-size:15px;gap:12px;line-height:1.5;border:2px solid var(--line)}.learning-workbench .pq-answer .choice[aria-pressed=true]{border-color:var(--accent);background:var(--tint)}.pq-answer .choice-letter{margin:0;min-width:15px}.pq-confidence{display:flex;align-items:center;gap:15px;flex-wrap:wrap}.pq-confidence>span{font-size:11px;color:var(--muted)}.pq-confidence .confidence{margin:0;gap:8px}.pq-confidence button{min-height:36px;font-size:11px}.pq-evidence,.pq-result,.pq-lab{height:100%;max-width:1100px;margin:auto}.pq-evidence{border-left:3px solid var(--coral)}.pq-facts{font:clamp(18px,2vw,27px)/1.6 ui-monospace,monospace;max-width:850px}.pq-prediction{font-size:15px;color:var(--muted)}.pq-result{position:relative;padding:32px 50px}.pq-result-mark{font-size:35px;color:var(--accent)}.pq-result .pq-picked{font-size:13px;color:var(--muted)}.pq-explanation{font-size:21px;line-height:1.6;max-width:900px}.pq-result .actions{margin-top:5px}.pq-result .button,.pq-result button{min-height:38px}.pq-collection{height:100%;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr);gap:18px}.pq-collection .filters{margin:0;gap:12px}.pq-collection .filters label{font-size:11px}.pq-collection input,.pq-collection select{min-height:36px;padding:6px 10px;font-size:12px}.pq-collection .filters>span{font-size:11px;color:var(--muted);margin:auto 0 auto auto}.pq-case-grid{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:repeat(2,minmax(0,1fr));gap:18px;min-height:0}.pq-case{border:1px solid var(--line);border-radius:12px;background:var(--surface);padding:22px;gap:9px;min-height:0;justify-content:center;align-items:start}.pq-case .module-num{font-size:11px}.pq-case h2{font-size:23px;line-height:1.25;margin:0}.pq-case p{font-size:13px;line-height:1.5;margin:0}.pq-case .button{min-height:32px;font-size:11px;padding:5px 9px}.pq-pages{display:flex;gap:14px;align-items:center}.pq-pages span{font:11px ui-monospace,monospace}.pq-pages button{min-height:30px!important;padding:3px 10px!important}.pq-empty{grid-column:1/-1;align-self:center;justify-self:center;font-size:14px}.pq-lab{padding:45px;gap:24px}.pq-lab h2{font-size:42px;line-height:1.15;letter-spacing:-.04em;margin:0}.pq-lab>p:not(.wb-command):not(.eyebrow){font-size:19px;max-width:800px;line-height:1.65}.pq-lab .pq-lab-note{font-size:12px!important;color:var(--muted)}
@media(max-width:1050px){.pq-decision{gap:18px}.pq-prompt,.pq-evidence,.pq-result{padding:24px;gap:14px}.pq-prompt h2,.pq-result h2,.pq-evidence h2{font-size:24px}.learning-workbench .pq-answer .choice{font-size:13px;padding:12px;min-height:60px}.pq-case{padding:16px;gap:8px}.pq-case h2{font-size:20px}.pq-case p{font-size:12px}.pq-explanation{font-size:18px}}
@media(max-width:700px){.wb-question .wb-heading h1{font-size:18px}.wb-question .wb-heading>button{font-size:11px;min-height:32px;padding:5px 7px;max-width:95px;flex-shrink:0}.pq-decision{display:flex;flex-direction:column;gap:12px}.pq-prompt{padding:0;border:0;background:none;gap:6px;flex-shrink:0}.pq-prompt .eyebrow,.pq-hint{display:none}.pq-prompt h2{font-size:18px;line-height:1.4}.pq-prompt>button{font-size:11px;min-height:25px;padding:3px 6px}.pq-answer{flex:1;gap:12px;justify-content:center}.pq-answer .choices{gap:8px}.learning-workbench .pq-answer .choice{font-size:12px;min-height:50px;padding:9px;gap:9px}.pq-confidence{gap:5px}.pq-confidence>span{font-size:11px}.pq-confidence .confidence{gap:6px}.pq-confidence .confidence button{font-size:11px;min-height:30px;padding:5px 7px}.pq-evidence,.pq-result{padding:18px;gap:14px}.pq-evidence h2,.pq-result h2{font-size:20px}.pq-facts{font-size:17px;line-height:1.6}.pq-prediction{font-size:12px}.pq-result-mark{font-size:24px}.pq-result .pq-picked{font-size:11px}.pq-explanation{font-size:15px;line-height:1.55}.pq-result .actions{gap:8px}.pq-result .button,.pq-result button{font-size:11px;padding:6px 9px;min-height:32px}.wb-question .wb-footer>button{font-size:11px;min-height:32px;padding:5px 8px}.wb-question .wb-footer>span{font-size:11px}.pq-complete{font-size:11px}.pq-collection{gap:12px}.pq-collection .filters{display:grid;grid-template-columns:1fr 1fr;gap:8px}.pq-collection .filters label{font-size:11px;gap:3px;min-width:0}.pq-collection .filters>span{grid-column:1/-1;font-size:11px;margin:0}.pq-collection input,.pq-collection select{font-size:11px;min-height:32px;padding:5px;min-width:0}.pq-case-grid{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr);gap:0}.pq-case{padding:22px;gap:18px}.pq-case h2{font-size:25px}.pq-case p{font-size:14px;line-height:1.65}.pq-case .button{font-size:11px;min-height:36px}.pq-lab{padding:22px;gap:20px}.pq-lab h2{font-size:30px}.pq-lab>p:not(.wb-command):not(.eyebrow){font-size:15px;line-height:1.6}.pq-lab .pq-lab-note{font-size:11px!important}.pq-lab .actions{gap:8px}.pq-lab .button{font-size:11px;min-height:34px;padding:6px 9px}}
@media(max-height:650px) and (min-width:701px){.pq-prompt,.pq-evidence,.pq-result{padding:16px;gap:10px}.pq-prompt h2,.pq-result h2,.pq-evidence h2{font-size:19px}.pq-prompt .eyebrow{font-size:11px}.pq-hint{font-size:11px}.pq-answer{gap:10px}.pq-answer .choices{gap:7px}.learning-workbench .pq-answer .choice{font-size:11px;min-height:40px;padding:7px 10px}.pq-confidence{gap:8px}.pq-confidence>span{font-size:11px}.pq-confidence button{font-size:11px;min-height:28px;padding:3px 7px}.pq-facts{font-size:19px;line-height:1.5}.pq-prediction{font-size:12px}.pq-result-mark{display:none}.pq-result .pq-picked{font-size:11px}.pq-explanation{font-size:14px;line-height:1.5}.pq-result .button,.pq-result button{min-height:29px;font-size:11px;padding:4px 8px}.pq-case-grid{grid-template-rows:minmax(0,1fr);gap:14px}.pq-collection{gap:10px}.pq-collection .filters label{font-size:11px;gap:3px}.pq-collection input,.pq-collection select{min-height:30px;font-size:11px;padding:4px 8px}.pq-case{padding:14px;gap:7px}.pq-case h2{font-size:18px}.pq-case p{font-size:11px}.pq-case .button{min-height:27px;padding:3px 7px;font-size:11px}.pq-lab{padding:20px;gap:12px}.pq-lab h2{font-size:29px}.pq-lab>p:not(.wb-command):not(.eyebrow){font-size:13px;line-height:1.5}.pq-lab .pq-lab-note{font-size:11px!important}.pq-lab .button{font-size:11px;min-height:30px;padding:4px 8px}}
@media(max-width:700px) and (max-height:650px){.pq-decision{gap:8px}.pq-prompt h2{font-size:15px}.pq-answer{gap:8px}.pq-answer .choices{gap:6px}.learning-workbench .pq-answer .choice{font-size:11px;min-height:44px;padding:7px;line-height:1.45}.pq-evidence,.pq-result{padding:14px;gap:11px}.pq-evidence h2,.pq-result h2{font-size:18px}.pq-facts{font-size:15px;line-height:1.5}.pq-explanation{font-size:13px}.pq-result-mark{display:none}.pq-case{padding:16px;gap:14px}.pq-case h2{font-size:22px}.pq-case p{font-size:12px}.pq-lab{padding:16px;gap:14px}.pq-lab h2{font-size:25px}.pq-lab>p:not(.wb-command):not(.eyebrow){font-size:12px}.pq-lab .pq-lab-note{font-size:11px!important}}

@media(max-width:700px) and (max-height:650px){.learning-workbench .pq-answer .choice{font-size:13px;min-height:48px}.pq-prompt h2{font-size:16px}.pq-confidence .confidence button{font-size:11px;min-height:32px}.pq-confidence>span{font-size:11px}}
@media(min-width:480px) and (max-width:700px) and (max-height:450px){.pq-decision{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.2fr);gap:14px}.pq-prompt h2{font-size:16px}.pq-prompt{justify-content:center}.pq-answer{gap:7px}.pq-answer .choices{gap:6px}.learning-workbench .pq-answer .choice{min-height:36px;font-size:11px;padding:6px;gap:7px}.pq-confidence{gap:4px}.pq-confidence>span{font-size:11px}.pq-confidence .confidence button{font-size:11px;min-height:26px;padding:4px 6px}.pq-collection{gap:8px}.pq-collection .filters{grid-template-columns:1fr 1fr auto;align-items:end}.pq-collection .filters>span{grid-column:auto;margin-bottom:6px}.pq-case{padding:12px;gap:7px}.pq-case h2{font-size:20px}.pq-case p{font-size:11px;line-height:1.5}.pq-case .button{min-height:28px;padding:4px 7px;font-size:11px}.pq-lab{padding:14px;gap:10px}.pq-lab h2{font-size:22px}.pq-lab>p:not(.wb-command):not(.eyebrow){font-size:11px;line-height:1.45}.pq-lab .button{min-height:28px;font-size:11px;padding:4px 7px}.pq-result{padding:12px;gap:8px}.pq-result h2{font-size:17px}.pq-explanation{font-size:12px}.pq-result .button,.pq-result button{min-height:28px;padding:4px 7px;font-size:11px}}
@media(min-width:480px) and (max-width:700px) and (max-height:350px){.pq-case{display:grid;grid-template-columns:minmax(0,1fr) 155px;grid-template-rows:auto auto minmax(0,1fr);gap:5px 12px;padding:10px}.pq-case .module-num{grid-column:1;grid-row:1}.pq-case h2{grid-column:1;grid-row:2;font-size:18px}.pq-case p{grid-column:1;grid-row:3;font-size:11px;line-height:1.4}.pq-case .button{grid-column:2;grid-row:1/4;align-self:center;font-size:11px}.pq-lab{padding:10px;gap:7px}.pq-lab h2{font-size:20px}.pq-lab>p:not(.wb-command):not(.eyebrow){font-size:11px}.pq-lab .pq-lab-note{font-size:11px!important}.pq-lab .button{min-height:25px;font-size:11px;padding:3px 6px}}

/* Short landscape / enlarged browser view: keep decisions and their actions alongside the text. */
@media(min-width:480px) and (max-width:700px) and (max-height:350px){
 .pq-answer{gap:4px;justify-content:center}.pq-answer .choices{gap:4px}
 .learning-workbench .pq-answer .choice{padding:4px 6px;min-height:30px;line-height:1.3}
 .pq-confidence{display:grid;grid-template-columns:auto minmax(0,1fr);gap:5px}.pq-confidence>span{line-height:1.1}
 .pq-confidence .confidence button{min-height:24px;padding:3px 6px}
 .pq-result{display:grid;grid-template-columns:minmax(0,1fr) 115px;grid-template-rows:auto auto auto minmax(0,1fr);gap:5px 12px;padding:10px;align-content:center;align-items:center}
 .pq-result>.eyebrow{grid-column:1;grid-row:1;font-size:11px}.pq-result h2{grid-column:1;grid-row:2;font-size:14px;line-height:1.3}
 .pq-result .pq-picked{grid-column:1;grid-row:3;font-size:11px;line-height:1.3}.pq-result .pq-explanation{grid-column:1;grid-row:4;font-size:12px;line-height:1.4;align-self:center}
 .pq-result .actions{grid-column:2;grid-row:1/5;display:flex;flex-direction:column;align-items:stretch;align-self:center;margin:0;gap:7px;width:100%}
 .pq-result .actions>*{width:100%;text-align:center;justify-content:center}
 .pq-evidence{display:grid;grid-template-columns:minmax(0,1fr) 130px;grid-template-rows:auto auto minmax(0,1fr);gap:5px 12px;padding:10px;align-items:center}
 .pq-evidence>.eyebrow{grid-column:1;grid-row:1;font-size:11px}.pq-evidence h2{grid-column:1;grid-row:2;font-size:16px;line-height:1.25}
 .pq-evidence .pq-facts{grid-column:1;grid-row:3;font-size:12px;line-height:1.45;align-self:center}
 .pq-evidence .pq-prediction{grid-column:2;grid-row:1/3;font-size:11px;line-height:1.4;align-self:end}
 .pq-evidence>button{grid-column:2;grid-row:3;font-size:11px;min-height:30px;padding:5px 7px;align-self:center}
}
