.dot-equal-codex .dot-equal-object{display:inline-flex;align-items:flex-end;justify-content:center;width:112px;height:112px;max-width:100%;flex-shrink:0;vertical-align:bottom;container-type:size}
.dot-equal-codex .dot-equal-object .eq-cutout{width:calc(min(100cqw,100cqh * var(--ratio)) * var(--object-scale,1))!important;height:calc(min(100cqh,100cqw / var(--ratio)) * var(--object-scale,1))!important;max-width:100%!important;max-height:100%!important;aspect-ratio:var(--ratio);margin:0!important}
.dot-equal-codex .dot-equal-object>.source-object{width:calc(100% * var(--object-scale,1))!important;height:calc(100% * var(--object-scale,1))!important;object-fit:contain!important}
.dot-equal-codex .equal-target:after,.dot-equal-codex .equal-target:before{display:none!important}
.dot-equal-codex .equal-target,.dot-equal-codex .equal-options>button{min-height:140px;display:flex;flex-direction:column;align-items:center;justify-content:center}
.dot-equal-codex .equal-choice-stage{grid-template-columns:1fr 2fr!important;gap:14px!important}
.dot-equal-codex .equal-options{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap}
.dot-equal-codex .equal-options>button{flex:1;min-width:100px}
.dot-equal-codex .completion-slot{min-width:120px;min-height:132px;border:2px dashed #579b86;background:#f9fff9;border-radius:20px}
.dot-equal-codex .completion-pair,.dot-equal-codex .completion-options{display:flex;align-items:center;justify-content:center;gap:18px}
.dot-equal-codex .completion-options>button{min-width:100px;min-height:124px}
.dot-equal-codex .dot-equal-prompt{position:relative!important;clip:auto!important;width:auto!important;height:auto!important;margin:0;padding:8px 16px;font-size:16px;line-height:1.4;text-align:center;color:#285b50;flex-shrink:0}
.dot-equal-codex #teaching-board{display:flex;flex-direction:column}
.dot-equal-codex #teaching-board>.board-square{flex:1;min-height:0}
.dot-equal-codex .dot-equal-model{border:1px solid #b7d6c8;border-radius:16px;padding:8px;background:#f3faf5;margin:10px auto;max-width:100%;color:#325f50;text-align:center}
.dot-equal-codex .dot-equal-baseline{display:flex;align-items:flex-end;justify-content:center;gap:12px;border-bottom:2px solid #3d9b7d;padding-bottom:4px}
.dot-equal-codex .dot-equal-model .dot-equal-object{width:64px;height:64px}
.dot-equal-codex .dot-equal-features{display:flex;gap:12px;justify-content:center;font-size:13px;flex-wrap:wrap}
.dot-equal-codex .dot-size-model .dot-equal-object{width:140px;height:140px}
.dot-equal-codex .eq-definition-canvas[hidden]{display:none!important}
.dot-equal-codex #teaching-board:has(.eq-definition-canvas[hidden])>.equal-definition-board{display:none!important}
.dot-equal-codex #teaching-board:has(.eq-definition-canvas[hidden]){justify-content:center}
.dot-equal-codex #teaching-board:has(.eq-definition-canvas[hidden])>.dot-equal-model{max-height:none}
.dot-equal-codex #teaching-board:has(.eq-definition-canvas[hidden])>.dot-equal-model .dot-equal-object{width:100px;height:100px}
.dot-equal-codex .dot-memory-map{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;width:160px;margin:auto}.dot-memory-map i{background:#deeae5;border-radius:4px;font-size:12px}
.dot-equal-codex .dot-equal-scan{outline:3px solid #eeb44c;outline-offset:-3px}
.dot-equal-codex .picture-hotspot.hotspot-correct,.dot-equal-codex .picture-hotspot.hotspot-wrong{background:transparent!important;transform:none!important}
.dot-equal-codex button:focus-visible{outline:3px solid #e6a73c;outline-offset:3px}
.dot-equal-codex .dot-equal-done{text-align:center;padding:24px}.dot-equal-done>b{font-size:48px;color:#248760}.dot-equal-done button,.dot-equal-codex [data-dot-equal-resume]{min-height:44px;padding:10px 18px;border-radius:14px;border:1px solid #c1ddce;background:#edf8ef}
.dot-equal-codex .memory-front .dot-equal-object{width:70px;height:70px}
@media(max-width:600px){.dot-equal-codex .dot-equal-object{width:78px;height:78px}.dot-equal-codex .equal-choice-stage{grid-template-columns:1fr!important;gap:8px!important}.dot-equal-codex .equal-target,.dot-equal-codex .equal-options>button{min-height:98px}.dot-equal-codex .equal-options>button{min-width:75px}.dot-equal-codex .completion-options{gap:8px}.dot-equal-codex .completion-options>button{min-width:80px;min-height:98px}.dot-equal-codex .dot-equal-prompt{font-size:14px;padding:6px 10px}.dot-equal-codex .dot-equal-model .dot-equal-object{width:44px;height:44px}}

/* Keep the task, its instruction and its optional comparison in separate rows. */
.dot-equal-codex #teaching-board > .board-square{aspect-ratio:auto;height:auto!important;max-height:none;min-height:0;overflow:hidden}
.dot-equal-codex #teaching-board .equal-choice-board,
.dot-equal-codex #teaching-board .equal-matching-board,
.dot-equal-codex #teaching-board .memory-board,
.dot-equal-codex #teaching-board .equal-detail-board,
.dot-equal-codex #teaching-board .equal-completion-board{padding:12px!important;display:flex;align-items:stretch;justify-content:center}
.dot-equal-codex :is(.equal-choice-board,.equal-matching-board,.equal-detail-board,.equal-completion-board)>div{display:flex;flex-direction:column;min-height:0;height:100%;width:100%}
.dot-equal-codex :is(#equal-choice-host,#detail-host,#completion-host){display:flex;flex:1;flex-direction:column;justify-content:center;gap:10px;min-height:0}
.dot-equal-codex .equal-choice-stage{flex:1;min-height:0!important;grid-template-columns:1fr!important;grid-template-rows:minmax(0,1fr) minmax(0,1fr);gap:14px!important}
.dot-equal-codex .equal-target{width:128px;justify-self:center}
.dot-equal-codex .equal-options{flex-direction:row!important;flex-wrap:nowrap;gap:8px!important;min-width:0}
.dot-equal-codex .equal-target,.dot-equal-codex .equal-options>button{min-height:110px!important;padding:8px!important;gap:4px!important;min-width:0!important}
.dot-equal-codex .equal-options>button{width:0;flex:1}
.dot-equal-codex .equal-choice-stage .dot-equal-object{width:90px;height:90px}
.dot-equal-codex .dot-equal-model{flex:0 0 auto;width:100%;box-sizing:border-box;margin:0!important;display:block;max-height:126px}
.dot-equal-codex .dot-equal-model .dot-equal-object{width:54px;height:54px}
.dot-equal-codex .dot-equal-model .dot-equal-baseline{gap:8px}
.dot-equal-codex .dot-equal-features{gap:10px;font-size:13px;line-height:1.5}
.dot-equal-codex .pair-matching{height:100%!important;min-height:0;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;column-gap:80px!important;grid-template-rows:minmax(0,1fr);align-items:stretch}
.dot-equal-codex .pair-matching:has(.dot-equal-model){grid-template-rows:minmax(0,1fr) auto;row-gap:10px}
.dot-equal-codex .pair-matching>div:not(.dot-equal-model){grid-template-rows:repeat(4,minmax(44px,1fr))!important;gap:7px;min-height:0}
.dot-equal-codex .pair-matching>.dot-equal-model{grid-column:1/-1;display:block;z-index:2}
.dot-equal-codex .pair-matching button{min-height:44px!important;min-width:44px!important;padding:3px}
.dot-equal-codex .pair-matching button .dot-equal-object{width:64px;height:100%;max-height:64px}
.dot-equal-codex .pair-matching button .eq-cutout{max-height:100%!important;max-width:64px!important}
.dot-equal-codex .memory-grid{height:100%;min-height:0;grid-template-rows:repeat(3,minmax(44px,1fr));gap:10px!important}
.dot-equal-codex .memory-grid .memory-card{aspect-ratio:auto;min-height:44px;min-width:44px}
.dot-equal-codex .memory-front .dot-equal-object{width:64px;height:64px}
.dot-equal-codex .memory-front .dot-equal-object{--memory-object-size:64px;position:relative!important;inset:auto!important;display:flex!important;align-items:center;justify-content:center;transform:none;transition:none;border-radius:0}
.dot-equal-codex .memory-front .dot-equal-object .eq-cutout{width:min(var(--memory-object-size),calc(var(--memory-object-size) * var(--ratio)))!important;height:min(var(--memory-object-size),calc(var(--memory-object-size) / var(--ratio)))!important;max-width:100%!important;max-height:100%!important;transform:none!important;transition:none!important;border-radius:0}
.dot-equal-codex #teaching-board>.dot-equal-model{width:calc(100% - 24px);align-self:center;margin-bottom:10px!important}
.dot-equal-codex .detail-row{display:flex;gap:10px;min-height:0;align-items:center;justify-content:center;flex:1}
.dot-equal-codex .detail-row>button{display:flex;align-items:center;justify-content:center;flex:1;min-width:0;min-height:100px;padding:6px}
.dot-equal-codex .detail-row .dot-equal-object{width:96px;height:96px}
.dot-equal-codex .eq-detail-creative>.dot-equal-model{display:none!important}
.dot-equal-codex .eq-detail-creative .detail-row{flex:0 0 auto}
.dot-equal-codex .eq-detail-creative .eq-detail-proof{max-height:calc(100% - 122px);object-fit:contain;min-height:0}
.dot-equal-codex .completion-pair{display:grid!important;grid-template-columns:1fr 1fr;gap:14px!important;padding:0!important;flex:1;min-height:0;align-items:center}
.dot-equal-codex .completion-target,.dot-equal-codex .completion-slot.location-zone{height:130px!important;min-height:110px!important;padding:6px!important;min-width:0!important}
.dot-equal-codex .completion-options{display:flex!important;gap:10px!important;flex:0 0 auto}
.dot-equal-codex .completion-options>button{min-height:104px!important;min-width:0!important;flex:1;width:0;padding:6px!important}
.dot-equal-codex .completion-options .dot-equal-object,.dot-equal-codex .completion-pair .dot-equal-object{width:90px;height:90px}
.dot-equal-codex .dot-size-model{max-height:180px}
.dot-equal-codex .dot-size-model .dot-equal-object{width:128px;height:128px}
.dot-equal-codex #teaching-board .topic-finish-board{display:flex;align-items:center;justify-content:center;padding:20px!important;text-align:center}
.dot-equal-codex #teaching-board .topic-finish-board>div{width:100%;display:flex;align-items:center;flex-direction:column;gap:14px}
.dot-equal-codex #teaching-board .topic-finish-board h1{position:static!important;display:block!important;width:auto!important;height:auto!important;clip:auto!important;overflow:visible!important;white-space:normal!important;margin:0;font-size:24px;line-height:1.2}
.dot-equal-codex #teaching-board .topic-finish-board p{margin:0;font-size:16px;line-height:1.4}
.dot-equal-codex #teaching-board .topic-finish-board>div>b{font-size:48px;line-height:1;color:#248760}
@media(max-width:600px){
 .dot-equal-codex #teaching-board{min-height:400px!important}
 .dot-equal-codex .equal-choice-stage{grid-template-columns:1fr!important;grid-template-rows:minmax(0,1fr) minmax(0,1fr);gap:8px!important}
 .dot-equal-codex .equal-target{width:108px;justify-self:center}
 .dot-equal-codex .equal-target,.dot-equal-codex .equal-options>button{min-height:84px!important;padding:4px!important}
 .dot-equal-codex .equal-choice-stage .dot-equal-object{width:70px;height:70px}
 .dot-equal-codex .equal-target small{font-size:10px}
 .dot-equal-codex .dot-equal-model .dot-equal-object{width:42px;height:42px}
 .dot-equal-codex .dot-equal-model{padding:6px}
 .dot-equal-codex .dot-equal-model .dot-equal-baseline{gap:6px}
 .dot-equal-codex .dot-equal-features{gap:7px;font-size:12px}
 .dot-equal-codex .pair-matching{column-gap:56px!important}
 .dot-equal-codex .pair-matching button .dot-equal-object{width:44px;max-height:44px}
 .dot-equal-codex .memory-grid{gap:8px!important}
 .dot-equal-codex .memory-front .dot-equal-object{--memory-object-size:48px;width:48px;height:48px}
 .dot-equal-codex .detail-row .dot-equal-object{width:70px;height:70px}
 .dot-equal-codex .completion-target,.dot-equal-codex .completion-slot.location-zone{height:96px!important;min-height:84px!important}
 .dot-equal-codex .completion-pair .dot-equal-object,.dot-equal-codex .completion-options .dot-equal-object{width:70px;height:70px}
 .dot-equal-codex .completion-options>button{min-height:84px!important}
 .dot-equal-codex .dot-size-model .dot-equal-object{width:100px;height:100px}
}
