/* Only the new conditional-transfer preset uses this compact view. */
#lab[data-program-lesson="branch"] .lab-top{padding:10px 16px}
#lab[data-program-lesson="branch"] .lab-top h2{font-size:19px;margin:0}
#lab[data-program-lesson="branch"] .lab-form{padding:12px 16px}
#lab[data-program-lesson="branch"] .field:has(select[name="op"]){display:none}
#lab[data-program-lesson="branch"] .field-hint{margin:7px 0 0;font-size:14px;line-height:1.5}
#lab[data-program-lesson="branch"] .narration{padding:10px 16px}
#lab[data-program-lesson="branch"] .narration-top strong{font-size:18px}
#lab[data-program-lesson="branch"] #lab-narration{margin:7px 0 0;font-size:16px;line-height:1.5}
#lab[data-program-lesson="branch"] .lab-output{padding:12px 16px}
#lab[data-program-lesson="branch"] .program-visual{margin:0;padding:12px}
#lab[data-program-lesson="branch"] .visual-label{font-size:16px}
#lab[data-program-lesson="branch"] .memory-map{grid-template-columns:2fr 1fr;margin-top:10px}
#lab[data-program-lesson="branch"] .memory-program{grid-template-columns:repeat(2,minmax(0,1fr))}
#lab[data-program-lesson="branch"] .memory-data{grid-template-columns:repeat(2,minmax(0,1fr));align-content:start}
#lab[data-program-lesson="branch"] .memory-cell{padding:8px 10px;min-width:0}
#lab[data-program-lesson="branch"] .memory-cell small{font-size:13px}
#lab[data-program-lesson="branch"] .memory-cell b{font-size:18px;line-height:1.5;overflow-wrap:anywhere}
#lab[data-program-lesson="branch"] .program-result{margin-top:9px;padding:7px;font-size:17px}
#lab[data-program-lesson="branch"] .visual-teach{font-size:17px;margin:8px 0}
#lab[data-program-lesson="branch"] .trace-table,#lab[data-program-lesson="branch"] .chapter-stats{display:none}
#lab[data-program-lesson="branch"] .lab-controls{padding:10px 16px}
#lab[data-program-lesson="branch"] .step-question{padding:12px;margin:0;font-size:17px}
#lab[data-program-lesson="branch"] .step-question input,#lab[data-program-lesson="branch"] .step-question textarea{width:100%;min-width:0;margin:5px 0 9px;box-sizing:border-box;font:inherit;min-height:40px;border:1px solid #9cb6a2;border-radius:6px;padding:6px}
#lab[data-program-lesson="branch"] .step-question p{font-size:17px;line-height:1.5;margin:8px 0}
@media(min-width:900px){#lab[data-program-lesson="branch"] .lab-output:has(.step-question){display:grid;grid-template-columns:1.45fr 1fr;gap:12px;align-items:start}#lab[data-program-lesson="branch"] .lab-output:has(.step-question) .memory-map{grid-template-columns:1fr}#lab[data-program-lesson="branch"] .lab-output:has(.step-question) .memory-data{grid-template-columns:repeat(4,minmax(0,1fr))}#lab[data-program-lesson="branch"] .lab-output:has(.step-question) .memory-cell b{font-size:18px}}
@media(max-width:899px){#lab[data-program-lesson="branch"] .memory-map{grid-template-columns:1fr}#lab[data-program-lesson="branch"] .memory-program{grid-template-columns:1fr}#lab[data-program-lesson="branch"] .lab-output{padding:12px}#lab[data-program-lesson="branch"] .step-question{margin-top:12px}#lab[data-program-lesson="branch"] .lab-form,#lab[data-program-lesson="branch"] .narration{padding:12px}#lab[data-program-lesson="branch"] .embedded-return{padding:0 8px}}
#lab[data-program-lesson="branch"] .lab-top{display:none}
#lab[data-program-lesson="branch"] .lab-form{padding-top:8px;padding-bottom:8px}
#lab[data-program-lesson="branch"] .field-hint{display:none}
#lab[data-program-lesson="branch"] .narration{min-height:0}
#lab[data-program-lesson="branch"] .step-question{line-height:1.4}
#lab[data-program-lesson="branch"] .step-question label{margin:0 0 4px;line-height:1.4}
#lab[data-program-lesson="branch"] .step-question input,#lab[data-program-lesson="branch"] .step-question textarea{line-height:1.4;font-size:17px}
#lab[data-program-lesson="branch"] .step-question button{line-height:1.4;min-height:40px;padding:7px 12px}
#lab[data-program-lesson="branch"] .step-question small{margin:6px 0;font-size:13px;line-height:1.4}
