.mas-overline{font-size:10px;color:#606c82;text-transform:uppercase;letter-spacing:1.2px;text-align:center;margin:12px 0}.mas-game-actions{display:flex;gap:8px;justify-content:center;align-items:center;margin:10px 0}.mas-shape{width:28px;height:28px;fill:#e9eeff;stroke:#4263ff;stroke-width:1.6}.mas-shape-name{display:flex;align-items:center;justify-content:center;gap:6px;font-size:13px}.mas-pan{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:9px;min-height:46px;padding:8px 10px;border-bottom:2px solid #899bc1;background:#f7f9ff;border-radius:6px 6px 0 0}.mas-pan-group{display:flex;align-items:center;gap:3px;font-size:12px;white-space:nowrap}.mas-pan-group b{font-size:15px}.mas-pan-group .mas-shape{width:23px;height:23px}.mas-equals{font-size:26px;font-weight:400;color:#7183ac;align-self:center;flex:none}.mas-reference-row{display:flex;gap:14px;justify-content:center;flex-wrap:wrap}.mas-equation{display:flex;align-items:center;justify-content:center;gap:10px;flex:1 1 250px;max-width:420px;border:1px solid #dce3f2;border-radius:10px;padding:12px;background:white;min-width:0}.mas-equation .mas-pan{flex:1;min-width:0}.mas-target-row{display:grid;grid-template-columns:1fr auto 1fr;gap:22px;max-width:700px;margin:20px auto}.mas-target-row .mas-pan{min-height:65px;background:white}.mas-target-row .mas-overline{letter-spacing:.7px}.mas-count-controls{display:flex;justify-content:center;gap:24px}.mas-count-control{display:flex;flex-direction:column;gap:8px}.mas-stepper{display:flex;align-items:center;border:1px solid #cdd7ef;border-radius:9px;overflow:hidden;background:white}.mas-stepper button{width:42px;background:#f3f6ff;color:#3451e8;font-size:22px}.mas-stepper output{display:grid;place-items:center;min-width:36px;font-size:16px}.mas-direction{text-align:center;padding:24px 0 12px}.mas-game-status{font-size:12px;color:#606c82}.mas-arrows{height:150px;display:flex;gap:18px;justify-content:center;align-items:center;font-family:Arial,sans-serif;font-size:72px;letter-spacing:0;color:#6d7c99;font-weight:500}.mas-centre-arrow{color:inherit}.mas-response-row{display:flex;justify-content:center;gap:16px;margin:12px 0}.mas-response{border:1px solid #aebff9;color:#3451e8;background:white;border-radius:11px;min-width:190px;min-height:54px;font-weight:600;font-size:15px}.mas-response:active{background:#e9efff}.mas-feedback{min-height:24px;font-size:12px;color:#606c82;text-align:center;margin:6px 0}.mas-feedback[data-tone=good]{color:#247b58}.mas-sequence{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;max-width:750px;margin:0 auto 18px}.mas-frame{margin:0;min-width:0;text-align:center;display:flex;flex-direction:column;align-items:center}.mas-frame-svg{border:1px solid #ccd7ef;border-radius:9px;background:white;width:min(100%,145px);aspect-ratio:1;color:#4263ff}.mas-frame figcaption{font-size:10px;color:#606c82;margin:5px 0}.mas-order-builder{display:grid;grid-template-columns:180px minmax(0,440px);gap:26px;justify-content:center;align-items:center}.mas-frame-large .mas-frame-svg{width:180px;border-color:#8da4f5}.mas-object-tabs{display:flex;gap:7px;margin-bottom:10px}.mas-object-tabs button{border:1px solid #cbd6f1;background:white;border-radius:7px;min-width:72px;color:#526588;font-size:11px;min-height:36px}.mas-object-tabs button.selected{border-color:#4263ff;color:#3451e8;background:#edf2ff}.mas-attribute-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.mas-attribute-grid label{min-width:0}.mas-attribute-grid label>span{display:block;font-size:9px;color:#606c82;margin-bottom:4px}.mas-attribute-grid select{width:100%;border:1px solid #cbd6ed;border-radius:7px;padding:6px;font-size:10px;background:white;color:#202b40;min-height:36px}.mas-object-editor .mas-link{font-size:10px;padding:4px 0;min-height:30px}.mas-security{text-align:center}.mas-security-target{font-size:22px;font-weight:600;margin:0}.mas-security .mas-hint{margin:5px 0}.mas-dial{display:block;width:260px;max-width:100%;margin:6px auto}.mas-stop{display:block;min-width:230px;margin:10px auto 0}.mas-security .mas-link{display:block;margin:auto;min-height:34px}.mas-review-list{border-top:1px solid #dce3f2}.mas-review-item{border-bottom:1px solid #dce3f2}.mas-review-item summary{padding:14px 8px;cursor:pointer;font-size:12px;color:#465777}.mas-review-body{padding:8px 16px 18px;font-size:12px;line-height:1.8}.mas-review-body p{margin:8px 0}.mas-review-body .mas-equation{margin:8px auto;max-width:500px}.mas-review-frames{display:flex;justify-content:center;gap:24px}.mas-review-frames .mas-frame{width:160px}.mas-mini-arrows{font-size:30px;font-family:Arial,sans-serif;letter-spacing:8px;color:#4263ff}
@media(min-width:651px) and (max-height:800px){.mas-dial{width:215px}.mas-sequence{max-width:650px;margin-bottom:12px}.mas-frame-svg{width:120px}.mas-order-builder{grid-template-columns:150px minmax(0,440px)}.mas-frame-large .mas-frame-svg{width:150px}.mas-direction{padding-top:12px}.mas-arrows{height:130px}.mas-target-row{margin:14px auto}}
@media(max-width:650px){.mas-arrows{font-size:51px;gap:10px;height:140px}.mas-response{min-width:0;flex:1;min-height:55px;font-size:13px}.mas-response-row{gap:10px}.mas-target-row{gap:10px;margin:16px auto}.mas-target-row .mas-overline{font-size:8px;letter-spacing:0;min-height:24px}.mas-reference-row{gap:9px}.mas-equation{padding:9px;flex-basis:100%;gap:8px}.mas-pan{padding:6px;gap:5px}.mas-pan-group{font-size:9px;gap:1px}.mas-pan-group .mas-shape{width:21px;height:21px}.mas-pan-group b{font-size:13px}.mas-count-controls{gap:12px}.mas-stepper button{width:35px}.mas-stepper output{min-width:26px}.mas-sequence{gap:7px;margin-bottom:14px}.mas-frame-svg{border-radius:6px}.mas-frame figcaption{font-size:8px}.mas-order-builder{grid-template-columns:105px minmax(0,1fr);gap:12px;align-items:start}.mas-frame-large .mas-frame-svg{width:105px}.mas-object-tabs{gap:4px;flex-wrap:wrap}.mas-object-tabs button{min-width:50px;min-height:36px;font-size:10px;padding:3px 6px}.mas-attribute-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.mas-attribute-grid select{min-height:42px;padding:5px 2px;font-size:9px}.mas-dial{width:250px}.mas-game-actions .mas-primary{font-size:11px;padding:10px 14px}.mas-review-body{padding:8px 4px 16px}.mas-game-actions .mas-link{font-size:10px;padding-inline:6px}}
@media(max-width:650px){.mas-sequence{grid-template-columns:repeat(2,minmax(0,1fr));max-width:285px;gap:10px}.mas-sequence .mas-frame-svg{width:125px}.mas-sequence figcaption{font-size:9px}}

/* A single reading order: reference, equal-weight target, then quantity controls. */
.cognitive-page .mas-balance {width:min(100%,640px);margin:auto;color:#202b40}
.cognitive-page .mas-balance-instruction {font-size:19px;font-weight:500;line-height:1.5;margin:0 0 20px;text-align:center;color:#202b40}
.cognitive-page .mas-balance .mas-reference-row {gap:8px;margin:0 auto 24px}
.cognitive-page .mas-balance .mas-equation {flex:0 1 auto;gap:12px;padding:6px 16px;max-width:100%;border:0;border-radius:0;background:transparent}
.cognitive-page .mas-balance .mas-pan {gap:12px;min-height:64px;padding:12px;background:#fff;border:1px solid #dce3f2;border-radius:10px;box-sizing:border-box}
.cognitive-page .mas-balance .mas-equation .mas-pan {min-height:0;padding:0;border:0;background:transparent}
.cognitive-page .mas-balance .mas-pan-group {gap:5px;font-size:14px}
.cognitive-page .mas-balance .mas-pan-group b {font-size:19px}
.cognitive-page .mas-balance .mas-pan-group .mas-shape {width:26px;height:26px}
.cognitive-page .mas-balance .mas-target-row {grid-template-columns:minmax(0,1fr) 20px minmax(0,1fr);gap:14px;align-items:stretch;margin:0 0 22px}
.cognitive-page .mas-balance .mas-target-row>.mas-equals {align-self:stretch;padding-top:29px;display:grid;place-items:center}
.cognitive-page .mas-balance .mas-overline {font-size:15px;line-height:1.4;letter-spacing:0;text-transform:none;font-weight:500;margin:0 0 8px;min-height:0}
.cognitive-page .mas-balance .mas-count-controls {gap:18px}
.cognitive-page .mas-balance .mas-shape-name {font-size:15px;gap:7px}
.cognitive-page .mas-balance .mas-stepper button {width:42px;min-height:42px;padding:0;font-size:20px;background:white}
.cognitive-page .mas-balance .mas-stepper output {min-width:34px;font-size:18px}
.cognitive-page .mas-balance .mas-hint {font-size:14px;margin:12px 0 0;color:#63718b}
.cognitive-page .mas-balance .mas-inline-error:empty {display:none}
.cognitive-page .mas-balance .mas-game-actions {margin:20px 0 0;gap:14px}
.cognitive-page .mas-balance .mas-game-actions .mas-link {font-size:15px}
@media(max-width:650px){
 .cognitive-page .mas-balance-instruction {font-size:17px;margin-bottom:16px}
 .cognitive-page .mas-balance .mas-count-controls {gap:10px}
 .cognitive-page .mas-balance .mas-stepper button {width:32px}
 .cognitive-page .mas-balance .mas-stepper output {min-width:24px}
 .cognitive-page .mas-balance .mas-target-row {gap:8px;grid-template-columns:minmax(0,1fr) 16px minmax(0,1fr)}
 .cognitive-page .mas-balance .mas-pan {gap:6px;padding:8px 4px}
 .cognitive-page .mas-balance .mas-pan-group {gap:2px;font-size:12px}
 .cognitive-page .mas-balance .mas-pan-group b {font-size:17px}
 .cognitive-page .mas-balance .mas-pan-group .mas-shape {width:22px;height:22px}
 .cognitive-page .mas-balance .mas-equation {padding:4px 8px;gap:8px}
}

.cognitive-page .mas-balance .mas-target-row>div {display:flex;flex-direction:column}
.cognitive-page .mas-balance .mas-answer-pan {display:flex;flex:1}
.cognitive-page .mas-balance .mas-target-row .mas-pan {flex:1}

/* Keep the construction tools readable at every viewport size. */
.cognitive-page .mas-order .mas-sequence{max-width:1000px;gap:20px}
.cognitive-page .mas-order .mas-frame-svg{width:210px;max-width:100%}
.cognitive-page .mas-order .mas-frame figcaption{font-size:14px}
.cognitive-page .mas-order .mas-order-builder{width:min(100%,880px);grid-template-columns:230px minmax(0,1fr);gap:32px;margin:26px auto}
.cognitive-page .mas-order .mas-next-frame .mas-frame-svg{width:230px}
.cognitive-page .mas-order .mas-attribute-grid{gap:14px}
.cognitive-page .mas-order .mas-attribute-grid label span{font-size:14px;line-height:1.4;margin-bottom:6px}
.cognitive-page .mas-order .mas-attribute-grid select{font-size:16px;min-height:52px;padding:10px;cursor:pointer}
.cognitive-page .mas-order .mas-object-tabs button{font-size:17px;min-height:46px;padding:8px 16px}
.cognitive-page .mas-order .mas-object-editor>.mas-link{font-size:14px;min-height:40px}
@media(max-width:700px){
.cognitive-page .mas-order .mas-sequence{max-width:440px;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.cognitive-page .mas-order .mas-frame-svg{width:100%}
.cognitive-page .mas-order .mas-order-builder{grid-template-columns:minmax(0,1fr);gap:18px;max-width:520px}
.cognitive-page .mas-order .mas-next-frame{justify-self:center;width:200px}
.cognitive-page .mas-order .mas-attribute-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.cognitive-page .mas-order .mas-attribute-grid select{width:100%;min-width:0;font-size:16px}
}

/* Direction: acknowledge an accepted response until the next trial. */
.mas-direction .mas-response {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:10px 16px}
.cognitive-page .oa-play-area .mas-direction button.mas-response[data-selected=true] {background:#4056ed!important;color:#fff!important;border-color:#3044d0!important;box-shadow:inset 0 0 0 2px #fff,0 0 0 2px #4056ed!important}
