.quiz-block{min-width:0;overflow-wrap:anywhere}.quiz-block h3{margin-top:0}.quiz-block h4{font-size:1.15rem;margin:8px 0 14px}.quiz-block .form-hint{font-size:.85rem}.qb-mode{margin-top:0}.qb-progress-label{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:.85rem;margin:12px 0 7px}.qb-progress{appearance:none;display:block;border:0;background:var(--brand-soft,#e3ebe5);border-radius:8px;height:7px;width:100%;margin-bottom:18px;overflow:hidden}.qb-progress::-webkit-progress-bar{background:var(--brand-soft,#e3ebe5);border-radius:8px}.qb-progress::-webkit-progress-value{background:var(--green,#285e4c);border-radius:8px}.qb-progress::-moz-progress-bar{background:var(--green,#285e4c);border-radius:8px}.qb-question-nav,.qb-actions,.qb-navigation,.qb-tabs{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.qb-question-nav{margin:15px 0 22px}.qb-question-nav .button{font-size:.8rem;padding:8px 12px}.qb-question-nav [aria-current=true],.qb-question-list [aria-current=true],.qb-tabs [aria-pressed=true]{outline:2px solid currentColor;outline-offset:2px}.qb-question{min-width:0}.qb-type{font-size:.75rem;letter-spacing:.05em;text-transform:uppercase}.qb-choices{display:grid;gap:10px;margin:18px 0}.qb-choice{display:flex;align-items:flex-start;gap:12px;padding:14px;border:1px solid currentColor;border-radius:var(--radius,12px);cursor:pointer;min-width:0}.qb-choice:has(input:checked){background:color-mix(in srgb,currentColor 9%,transparent)}.qb-choice input{flex:none;margin-top:4px;accent-color:var(--green,#285e4c)}.qb-sort{list-style:none;padding:0;display:grid;gap:10px;margin:18px 0}.qb-sort li{display:flex;align-items:center;gap:8px;padding:10px;border:1px solid currentColor;border-radius:var(--radius,12px);min-width:0}.qb-grip{cursor:grab}.qb-sort-label{min-width:0;flex:1;text-align:left;color:inherit;background:transparent;border:0;font:inherit;overflow-wrap:anywhere;padding:5px;cursor:pointer}.qb-sort-label[aria-pressed=true]{text-decoration:underline;text-underline-offset:4px}.qb-sort .button{padding:6px 12px;flex:none}.qb-match{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:20px 0}.qb-match-column{display:grid;gap:10px;align-content:start;min-width:0}.qb-match-column>strong{font-size:.85rem}.qb-match-item{min-width:0;min-height:70px;display:flex;gap:10px;align-items:flex-start;text-align:left;padding:13px;border:1px solid currentColor;border-radius:var(--radius,12px);background:transparent;color:inherit;cursor:pointer;font:inherit;overflow-wrap:anywhere}.qb-match-item[aria-pressed=true]{background:color-mix(in srgb,currentColor 12%,transparent)}.qb-match-item small{display:block;margin-top:5px;font-size:.8rem}.qb-pair-number{font-size:.8rem;flex:none}.qb-hint,.qb-feedback{padding:14px 16px;margin:18px 0;border:1px dashed currentColor;border-radius:var(--radius,12px)}.qb-feedback strong{display:block;margin-bottom:5px}.qb-feedback-correct{border-style:solid}.qb-actions{margin-top:18px}.qb-navigation{justify-content:space-between;margin:22px 0}.qb-potential{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.qb-potential span{font-size:.8rem;padding:5px 8px;border:1px solid currentColor;border-radius:var(--radius,8px)}.qb-earned{display:grid;gap:10px;margin:18px 0}.qb-earned-item{border:1px solid currentColor;border-radius:var(--radius,12px);padding:14px}.qb-earned-item strong,.qb-earned-item span{display:block}.qb-earned-item span{font-size:.85rem;margin-top:4px}.qb-reward-link{display:inline-block;margin:15px}.qb-image figure{margin:0 0 18px}.qb-image img{display:block;max-width:100%;max-height:380px;object-fit:contain}.qb-preview{padding:18px;border:1px dashed currentColor;border-radius:var(--radius,12px)}.qb-editor{margin:18px 0}.qb-tabs{padding-bottom:16px;margin-bottom:20px;border-bottom:1px solid var(--border,#dce4dc)}.qb-editor-layout{display:grid;grid-template-columns:185px minmax(0,1fr);gap:24px}.qb-question-list{display:flex;flex-direction:column;align-items:stretch;gap:10px;min-width:0}.qb-question-list .button{text-align:left;justify-content:flex-start;overflow-wrap:anywhere;white-space:normal}.qb-question-list select{width:100%;font:inherit;padding:10px;color:var(--ink,#173e35);background:var(--surface,#fff);border:1px solid var(--border,#ddd);border-radius:8px}.qb-question-editor{min-width:0}.qb-answer-editor{display:flex;gap:10px;align-items:center;margin:12px 0}.qb-answer-editor>.field{flex:1;min-width:0;margin:0}.qb-answer-editor>.button{flex:none;padding:8px 12px}.qb-pair-editor{display:grid;grid-template-columns:1fr 1fr auto;align-items:center;gap:12px;margin:14px 0}.qb-pair-editor>.field{min-width:0;margin:0}.qb-reward-settings{padding:18px 0;border-top:1px solid var(--border,#ddd)}.qb-check{display:flex;align-items:flex-start;gap:10px;margin:15px 0}.qb-editor-preview{margin-top:22px;padding:18px;border:1px solid var(--border,#ddd);border-radius:var(--radius,12px)}.website-quiz>.quiz-block{width:100%}.qb-question-editor details{margin:18px 0}.qb-question-editor details>summary{cursor:pointer;font-weight:600;margin-bottom:12px}@media(max-width:800px){.qb-editor-layout{grid-template-columns:1fr}.qb-question-list{display:flex;flex-direction:row;flex-wrap:wrap}.qb-question-list .button{flex:1 1 160px}.qb-question-list select{flex:1 1 170px;width:auto}.qb-question-list>.form-hint{width:100%}}@media(max-width:560px){.qb-match{grid-template-columns:1fr}.qb-match-item{min-height:50px}.qb-pair-editor{grid-template-columns:1fr}.qb-pair-editor>.button{justify-self:start}.qb-answer-editor{flex-wrap:wrap}.qb-answer-editor>.field{flex:1 1 150px}.qb-sort{font-size:.92rem}.qb-sort .button{padding:6px 10px}.qb-navigation>.button{max-width:100%;white-space:normal}.qb-image img{max-height:280px}}@media(pointer:coarse){.quiz-block button{min-height:44px}.quiz-block input,.qb-editor input,.qb-editor select,.qb-editor textarea{font-size:16px}}
.cw-dialog-body .qb-editor input[type=checkbox],.cw-dialog-body .qb-editor input[type=radio],.cw-dialog-body .quiz-block input[type=checkbox],.cw-dialog-body .quiz-block input[type=radio]{width:18px;height:18px;min-width:18px;max-width:18px;padding:0;flex:0 0 18px;appearance:auto}

/* Compact quiz cards; independent of general form input and label styles. */
.quiz-block .qb-choices,.quiz-block .qb-sort{width:max-content;max-width:100%;box-sizing:border-box}
.quiz-block .qb-choice{display:grid;grid-template-columns:18px minmax(0,1fr);align-items:start;gap:12px;width:auto;max-width:100%;box-sizing:border-box;margin:0}
.quiz-block .qb-choice-label{min-width:0;white-space:normal;overflow-wrap:anywhere}
.quiz-block .qb-choice input[type=checkbox],.quiz-block .qb-choice input[type=radio]{box-sizing:border-box;width:18px!important;height:18px!important;min-width:18px!important;max-width:18px!important;min-height:18px!important;max-height:18px!important;padding:0!important;margin:3px 0 0;appearance:auto;align-self:start;justify-self:start;flex:0 0 18px}
.quiz-block .qb-sort li{box-sizing:border-box;width:auto;max-width:100%}
.quiz-block .qb-match-reorder{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px;width:max-content;max-width:100%;box-sizing:border-box}
.qb-match-row{display:contents}
.qb-match-fixed,.qb-match-target{min-width:0;box-sizing:border-box;border:1px solid currentColor;border-radius:var(--radius,12px);padding:12px;display:flex;align-items:center;gap:8px;overflow-wrap:anywhere}
.qb-match-target{cursor:grab;touch-action:pan-y}.qb-match-target:active{cursor:grabbing}
.qb-match-content{min-width:0;display:flex;flex-direction:column;gap:8px;flex:1}.qb-match-label{min-width:0;white-space:normal;overflow-wrap:anywhere}
.qb-match-controls{display:flex;flex-direction:column;gap:5px;flex:none}.qb-match-controls .button{padding:5px 10px;min-width:0;flex:none}
.qb-match-media{min-width:0;max-width:160px}.qb-match-media figure{margin:0!important;width:auto!important;max-width:100%}
.qb-match-media img{display:block;width:auto!important;max-width:100%!important;max-height:125px;object-fit:contain;margin:0}
.qb-match-media figcaption{font-size:.7rem;line-height:1.4;margin-top:4px}.qb-match-media .content-image-source{font-size:inherit}
.qb-pair-side{min-width:0}.qb-pair-side details{margin:10px 0}.qb-pair-side summary{font-size:.85rem}
@media(max-width:560px){.quiz-block .qb-match-reorder{gap:8px}.qb-match-fixed,.qb-match-target{padding:9px}.qb-match-target{flex-wrap:wrap;align-content:start}.qb-match-target>.qb-match-content{flex:1 1 calc(100% - 22px)}.qb-match-controls{flex-direction:row;width:100%;justify-content:flex-end}.qb-match-controls .button{flex:1;padding:5px 8px}.qb-match-media{max-width:120px}.qb-match-media img{max-height:100px}.qb-pair-side{width:100%}}

/* Image choice and proportional hotspot canvases. */
.quiz-block .qb-picture-choices{width:100%;max-width:680px;grid-template-columns:repeat(auto-fit,minmax(min(150px,100%),1fr))}
.qb-picture-choices .qb-choice{align-items:start}.qb-picture-choices .qb-choice>div{min-width:0}.qb-picture-choices figure{margin:0!important;width:auto!important}.qb-picture-choices img{display:block;width:100%!important;height:145px!important;max-width:100%!important;object-fit:contain}.qb-picture-choices figcaption{font-size:.75rem}
.qb-picture-answer-editor{display:grid;grid-template-columns:18px minmax(0,1fr) auto;gap:12px;align-items:start;border-top:1px solid var(--border,#ddd);padding:18px 0}.qb-picture-answer-fields{min-width:0}.qb-picture-thumb img{max-width:220px;max-height:160px;object-fit:contain}.qb-picture-thumb figure{margin:10px 0}
.qb-hotspot{width:100%;max-width:760px;min-width:0}.qb-hotspot-viewport{max-width:100%;max-height:70vh;overflow:auto;border:1px solid var(--border,#aaa);border-radius:var(--radius,10px);overscroll-behavior:contain}.qb-hotspot-stage{position:relative;width:100%;line-height:0;touch-action:pan-x pan-y;cursor:crosshair}.qb-hotspot-stage:focus-visible{outline:3px solid var(--green,#285e4c);outline-offset:-3px}.qb-hotspot-stage img{display:block!important;width:100%!important;max-width:none!important;height:auto!important;max-height:none!important;user-select:none;pointer-events:none}.qb-hotspot-overlay{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.qb-hotspot-hit{fill:#35b35d;fill-opacity:.25;stroke:#177335;stroke-width:3}.qb-hotspot-mark{fill:#fff;stroke:#172fdd;stroke-width:3}.qb-hotspot-zoomed .qb-hotspot-stage{width:200%;max-width:none}.qb-hotspot>.button{margin-top:10px}.qb-hotspot>figcaption{font-size:.75rem}.qb-hotspot .form-hint{line-height:1.5}
@media(max-width:420px){.qb-picture-choices img{height:115px!important}.quiz-block .qb-picture-choices{grid-template-columns:repeat(2,minmax(0,1fr))}.qb-picture-choices .qb-choice{padding:9px;gap:6px}.qb-picture-answer-editor{gap:8px}}

/* Visible, numbered hotspot alternatives with fixed author-selected colors. */
.qb-hotspot-options .qb-hotspot-overlay{pointer-events:auto}.qb-hotspot-options-editor .qb-hotspot-overlay{pointer-events:none}
.qb-visible-spot{--spot-color:#1f5dcc;--spot-text:#fff;cursor:pointer}.qb-visible-spot circle{fill:var(--spot-color);fill-opacity:.3;stroke:var(--spot-color);stroke-width:3;filter:drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #000)}
.qb-visible-spot text{fill:var(--spot-text);stroke:#111;stroke-width:1px;paint-order:stroke fill;font-size:48px;font-weight:800;user-select:none;pointer-events:none}
.qb-spot-white{--spot-color:#fff;--spot-text:#111}.qb-spot-white text,.qb-spot-yellow text{stroke:#fff}
.qb-spot-black{--spot-color:#111}.qb-spot-green{--spot-color:#13843b}.qb-spot-blue{--spot-color:#1f5dcc}.qb-spot-red{--spot-color:#cf202a}.qb-spot-yellow{--spot-color:#ffe021;--spot-text:#111}
.qb-spot-selected circle{stroke-width:6;fill-opacity:.6;stroke-dasharray:7 3}.qb-visible-spot:focus-visible circle{stroke-width:6;stroke-dasharray:2 2}.qb-spot-correct circle{stroke:#07843b;stroke-width:7;stroke-dasharray:none}

.qb-hotspot-frame{position:relative;min-width:0}.qb-hotspot-frame>.qb-image-zoom{position:absolute;right:8px;bottom:8px;z-index:2;display:grid;place-items:center;width:34px;height:34px;min-height:34px;padding:0;border-radius:50%;background:rgba(255,255,255,.72);color:#173e35;border:1px solid rgba(23,62,53,.22);box-shadow:0 1px 4px #0002}.qb-image-zoom svg{width:18px;height:18px}.qb-hotspot-frame>.qb-image-zoom:hover{background:rgba(255,255,255,.95)}.qb-image-zoom:focus-visible{outline:3px solid var(--green,#285e4c);outline-offset:2px}@media(pointer:coarse){.qb-hotspot-frame>.qb-image-zoom{width:44px;height:44px;min-height:44px}}

/* Optional public/course mini-missions use the same player and grading. */
.qb-start-card,.qb-outro-card{padding:clamp(24px,4vw,48px);border:1px solid var(--border,#dce4dc);border-radius:var(--radius,12px);background:var(--brand-soft,#f0f6ec);max-width:820px;margin-inline:auto}.qb-start-card h3,.qb-outro-card h3{font-size:clamp(1.5rem,3vw,2.2rem);line-height:1.18}.qb-start-kicker{text-transform:uppercase;letter-spacing:.09em;font-size:.78rem;font-weight:700}.qb-start-card p,.qb-outro-card p{max-width:62ch;white-space:pre-line}.qb-outro-card{margin-bottom:28px}.qb-slides .qb-question-nav{gap:6px}.qb-slides .qb-question-nav .button{font-size:.75rem}.qb-slides .qb-image img{max-height:300px;width:auto;max-width:100%}.qb-slides .qb-image .website-image{padding:0;max-width:720px;margin:18px 0}.qb-slides .qb-choices{max-width:min(100%,780px)}.qb-slides .qb-picture-choices{max-width:min(100%,900px)}.qb-slides .qb-picture-choices img{max-height:160px;object-fit:contain}.qb-slides .qb-match-media img{max-height:110px;object-fit:contain}.qb-slides .qb-outro-card .button{white-space:normal}@media(max-width:560px){.qb-slides .qb-question-nav{display:none}.qb-start-card,.qb-outro-card{padding:22px}.qb-slides .qb-navigation{gap:12px}.qb-slides .qb-navigation .button{flex:1 1 150px}.qb-slides .qb-image img{max-height:260px}}

.qb-slides{max-width:960px;margin-inline:auto}.qb-slides h4,.qb-slides .qb-outro-card h3{scroll-margin-top:80px}.qb-start-chips{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 24px}.qb-start-chips span{display:inline-block;padding:9px 14px;border-radius:8px 8px 8px 2px;color:#fff;font-size:.85rem;font-weight:700;background:#2874c9}.qb-start-chips span:nth-child(2){background:#7950c8}.qb-start-chips span:nth-child(3){background:#996000}

@media(max-width:560px){.quiz-block.qb-slides .qb-picture-choices{grid-template-columns:1fr}.qb-slides .qb-picture-choices .qb-choice{align-items:center}.qb-slides .qb-picture-choices img{height:90px!important}}

/* Public mini-missions: compact matching cards, full-width block graphics. */
.qb-slides .qb-match-reorder{width:min(100%,720px);grid-template-columns:repeat(2,minmax(0,1fr))}.qb-slides .qb-match-fixed,.qb-slides .qb-match-target{padding:8px}.qb-slides .qb-match-media{width:100%;max-width:none}.qb-slides .qb-match-media img{width:100%!important;max-height:160px}.qb-slides .qb-match-media figure{width:100%!important}.qb-slides .qb-outro-card{margin-bottom:0}.qb-result-summary{margin:0 0 20px;font-size:.95rem;line-height:1.6}.qb-outro-card>.button{margin:8px 10px 0 0}.qb-outro-card>.button.secondary{font-size:.85rem}@media(max-width:560px){.qb-slides .qb-match-reorder{gap:8px}.qb-slides .qb-match-media img{max-height:120px}.qb-outro-card>.button{display:flex;width:100%;margin:12px 0 0;justify-content:center}}

.qb-match-media{position:relative}.quiz-block .qb-match-zoom{position:absolute;right:3px;bottom:3px;display:grid;place-items:center;width:30px;height:30px;min-height:30px;padding:0;border-radius:50%;background:#ffffffc4;color:#173e35;border:1px solid #173e3540}.qb-match-zoom svg{width:18px;height:18px}.qb-image-dialog{box-sizing:border-box;width:min(1000px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:18px;border:1px solid var(--border,#ccc);border-radius:var(--radius,12px);background:var(--surface,#fff);color:var(--ink,#173e35)}.qb-image-dialog::backdrop{background:#0009}.qb-image-dialog>img{display:block;width:100%;max-height:75dvh;object-fit:contain;margin-top:16px}.qb-image-dialog>.button{display:flex;margin-left:auto}

/* Shared task navigation: compact progress segments, with the question in focus. */
.quiz-block .qb-header{margin:0 0 2px;padding:0;border:0;background:none;display:block}
.quiz-block .qb-header>h3{margin:0;font-size:1rem;font-weight:600;line-height:1.4;color:inherit}
.quiz-block .qb-header .qb-progress-label{margin:8px 0 0;font-size:.8rem;line-height:1.4;gap:8px}
.quiz-block .qb-segments{position:relative;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(26px,1fr);gap:3px;max-width:100%;box-sizing:border-box;overflow-x:auto;scrollbar-width:thin;padding:5px 3px 6px;margin:4px 0 12px;align-items:start}
.quiz-block .qb-step{appearance:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:44px;padding:2px 3px;margin:0;border:0;border-radius:4px;background:transparent;color:inherit;font:inherit;cursor:pointer;box-sizing:border-box}
.quiz-block .qb-step-track{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:18px;border-radius:3px;background:color-mix(in srgb,var(--ink,#183e43) 60%,var(--surface,#fff));color:#fff;font-size:13px;line-height:1;font-weight:800}
.quiz-block .qb-step-index{font-size:.7rem;font-weight:500;line-height:1.1;color:inherit}
.quiz-block .qb-step.is-attempted .qb-step-track{background:#946200}
.quiz-block .qb-step.is-solved .qb-step-track{background:#24734c}
.quiz-block .qb-step.is-current .qb-step-track{outline:2px solid var(--primary,var(--green,#087d85));outline-offset:2px}
.quiz-block .qb-step.is-current .qb-step-index{font-weight:800}
.quiz-block .qb-step:hover:not(:disabled) .qb-step-track{filter:brightness(.9)}
.quiz-block .qb-step:focus-visible{outline:2px solid currentColor;outline-offset:-1px}
.quiz-block .qb-step:disabled{cursor:wait;opacity:.6}
.quiz-block .qb-question{margin-top:0}
.quiz-block .qb-question>.qb-type{font-size:.72rem;line-height:1.4;letter-spacing:.04em}
.quiz-block .qb-question>h4{font-size:clamp(1.25rem,2vw,1.55rem);font-weight:700;line-height:1.3;margin:6px 0 16px}
.quiz-block .qb-question>h4:focus{outline:none}
@media(max-width:560px){.quiz-block .qb-header .qb-progress-label{font-size:.75rem}.quiz-block .qb-segments{margin-bottom:10px}.quiz-block .qb-step{padding-inline:2px}.quiz-block .qb-question>h4{font-size:1.25rem}}
@media(forced-colors:active){.quiz-block .qb-step-track{border:1px solid ButtonText}.quiz-block .qb-step.is-current .qb-step-track{outline-color:Highlight}.quiz-block .qb-step.is-solved .qb-step-track,.quiz-block .qb-step.is-attempted .qb-step-track{background:Highlight;color:HighlightText}}

/* Answer tools and question navigation share a row; each group wraps as a unit. */
.quiz-block .qb-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px 16px;margin:18px 0 22px}
.quiz-block .qb-footer>.qb-actions,.quiz-block .qb-footer>.qb-navigation{display:flex;align-items:center;flex-wrap:nowrap;gap:8px;margin:0;flex:0 0 auto}
.quiz-block .qb-footer>.qb-navigation{margin-left:auto}
.quiz-block .qb-footer .button{white-space:nowrap}
@media(max-width:560px){.quiz-block .qb-footer{gap:10px}.quiz-block .qb-footer .button{font-size:.8rem;padding:9px 12px}}
