/* 10.2 – targeted curricular enrichment; scoped to pre-existing lessons. */
.magic90-lesson .mastery102 { margin: 26px 0; padding: clamp(16px,3vw,28px); border: 1px solid #8667c8; border-radius: 22px; background: linear-gradient(150deg, #161333, #18253d 78%); color: #f7f4ff; box-shadow: 0 8px 24px #080d2452; min-width:0 }
.mastery102 * { box-sizing:border-box }
.mastery102 .mastery102-header h3 { color:#fff; font-size:clamp(1.2rem,2.5vw,1.7rem); margin:8px 0 10px; line-height:1.3 }
.mastery102 .mastery102-header p { color:#d8d8f1; margin:0 0 18px; line-height:1.65 }
.mastery102 .mastery102-kicker { font-size:.73rem; font-weight:800; letter-spacing:.10em; color:#e8d2ff }
.mastery102 .mastery102-columns { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-bottom:14px }
.mastery102 .mastery102-surface { border:1px solid #61577c; border-radius:15px; background:#20223f; padding:16px; min-width:0; margin:0 0 14px }
.mastery102 .mastery102-columns .mastery102-surface { margin-bottom:0 }
.mastery102 h4 { color:#fff7da; margin:0 0 10px; font-size:1.04rem }
.mastery102 p, .mastery102 li { color:#f4f3ff; line-height:1.66 }
.mastery102 p { margin:0 0 10px }
.mastery102 .mastery102-note { margin:14px 0 0; color:#efe3ff; border-left:3px solid #c49afb; padding-left:12px }
.mastery102 .mastery102-worked { white-space:normal; overflow-wrap:anywhere }
.mastery102 .mastery102-label {display:block;font-weight:750;margin:15px 0 7px; color:#fff}
.magic90-lesson .mastery102 .mastery102-notes { width:100%; min-height:92px; background:#0b1528; color:#fafaff; border:1px solid #a5addb; border-radius:9px; padding:12px; font-size:.97rem; line-height:1.6; resize:vertical }
.mastery102 button { background:#e8dcff; color:#20153d; border:2px solid transparent; border-radius:11px; padding:10px 15px; font-weight:750; cursor:pointer; margin:6px 0 0 }
.mastery102 button:hover:not(:disabled) { background:#fff0d5; border-color:#d8b47e }
.mastery102 button:focus-visible,.mastery102 input:focus-visible,.mastery102 textarea:focus-visible { outline:3px solid #fcd68a; outline-offset:3px }
.mastery102 button:disabled {opacity:.55;cursor:not-allowed}
.mastery102 .mastery102-transfer-status,.mastery102 .mastery102-disclaimer {font-size:.87rem;color:#dddaed; margin-top:8px}
.mastery102 .mastery102-quiz {min-width:0}
.mastery102 .mastery102-quiz legend {font-size:1.1rem;font-weight:800;color:#fff6d5;padding:0 8px}
.mastery102 .mastery102-options {display:grid;gap:9px}
.mastery102 .mastery102-option {display:flex;align-items:flex-start;gap:11px;cursor:pointer;padding:11px;border:1px solid #8b83ad;border-radius:10px;color:#f7f4ff;background:#272844;line-height:1.45}
.mastery102 .mastery102-option:has(input:checked) {border-color:#dcc4ff;background:#41365c}
.mastery102 .mastery102-option.is-key-match {border-color:#90bce5!important;background:#26334e!important}
.mastery102 .mastery102-option.is-key-mismatch {border-color:#cba7e8!important;background:#302747!important}
.mastery102 .mastery102-option input {margin-top:4px;flex-shrink:0;accent-color:#e3c5ff}
.mastery102 .mastery102-result {margin:12px 0 3px;border-radius:10px;border:1px solid #8a83a8;color:#fff;padding:12px;background:#2c2a49}
.mastery102 .mastery102-result[data-state="key-match"] {border-color:#90bce5;background:#26334e;color:#f2f7ff}
.mastery102 .mastery102-result[data-state="key-mismatch"] {border-color:#cba7e8;background:#302747;color:#f8f1ff}
.mastery102 .mastery102-rubric summary {cursor:pointer;font-weight:800;color:#fff7da}
.mastery102 .mastery102-rubric ul {padding-left:24px}
.mastery102 .mastery102-lab {margin:16px 0; border:1px solid #737eab;padding:14px;border-radius:12px;background:#141b34}
.mastery102 .mastery102-lab label {display:block;font-weight:700;color:#fff;margin:10px 0 6px}
.magic90-lesson .mastery102 .mastery102-lab input, .magic90-lesson .mastery102 .mastery102-lab select {max-width:100%;width:100%;background:#0d1830;color:#fff;border:1px solid #a6b0d5;border-radius:8px;padding:10px}
.mastery102 .mastery102-lab output {display:block;padding:11px 0;color:#faf5e6;line-height:1.55}
.mastery102 .mastery102-lab small {color:#dfd8ee}
@media(max-width:740px){.mastery102 .mastery102-columns{grid-template-columns:minmax(0,1fr)}.mastery102 .mastery102-surface{padding:13px}.magic90-lesson .mastery102{padding:13px;margin:18px 0}.mastery102 button{max-width:100%;white-space:normal;text-align:center}}
@media(prefers-reduced-motion:reduce){.mastery102 *, .mastery102 *::before,.mastery102 *::after {scroll-behavior:auto!important;transition:none!important}}

/* Existing lesson images must not force horizontal scroll on small screens. */
.magic90-lesson .lesson img { max-width:100%; height:auto; }

/* 10.2.1 – specific reflection is distinct from scored formative questions. */
.mastery102 .mastery102-reflection { border-left:3px solid #c9abff; background:#1b2940 }
.mastery102 .mastery102-reflection h4 { margin-top:0 }
.mastery102 .mastery102-lab .m1021-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(160px,100%),1fr)); gap:10px; margin:10px 0 }
.mastery102 .mastery102-lab .m1021-grid label { margin:0 }
.mastery102 .mastery102-lab .m1021-grid input { margin-top:5px }
.mastery102 .mastery102-lab button { font-size:.9rem;padding:7px 12px;margin:3px }
.mastery102 .mastery102-lab .m1021-maze { font-family:ui-monospace,monospace;font-size:1.2rem;letter-spacing:.28em;white-space:pre;line-height:1.6;max-width:100%;overflow-x:auto }

/* 10.4 — interactive inquiry paths used by every catalog lesson. */
.mastery102 .m104-meter{height:10px;width:100%;border-radius:99px;background:#080e23;overflow:hidden;border:1px solid #7f73a8;margin:8px 0}
.mastery102 .m104-meter span{height:100%;width:0;display:block;background:linear-gradient(90deg,#90d6ee,#d2a7ff);transition:width .2s ease}
.mastery102 .m104-progress{font-size:.87rem;color:#dbd4f7!important;margin-bottom:2px}
.mastery102 .m104-purpose{border-color:#9880c9;background:#202b44}
.mastery102 .m104-purpose strong{color:#fff8cf}
.mastery102 .m104-predict,.mastery102 .m104-save{border-left:3px solid #8fd7eb}
.magic90-lesson .mastery102 .m104-input{display:block;width:100%;max-width:100%;min-height:78px;color:#fff;background:#101b30;border:1px solid #9aa4d1;border-radius:10px;padding:12px;font:inherit;line-height:1.55;resize:vertical}
.mastery102 details.m104-hint,.mastery102 details.m104-worked{border:1px solid #736990;border-radius:10px;padding:11px 13px;margin-top:12px;background:#18213b;color:#f8f5ff}
.mastery102 details.m104-hint summary,.mastery102 details.m104-worked summary{cursor:pointer;font-weight:700;color:#fff1c8}
.mastery102 details.m104-hint p,.mastery102 details.m104-worked p{margin:11px 0 4px}
.mastery102 details.m104-worked small{display:block;color:#d5daeb;line-height:1.5}
.mastery102 .m104-subtitle{font-size:1.05rem;font-weight:800;color:#ddf5ff;margin-top:18px}
.mastery102 .m104-guidance{border-left:3px solid #90d1d9;padding-left:12px;margin-top:12px}
.mastery102 .m104-quiz-scope{color:#fff3c4;border-left:3px solid #e0bb61;padding-left:12px}
.mastery102 .m104-rubric{border-top:1px solid #6f628e;padding-top:15px;margin-top:16px}
.mastery102 .m104-criteria{display:grid;gap:8px;margin:10px 0}
.mastery102 .m104-criteria label{display:flex;align-items:flex-start;gap:10px;line-height:1.5;background:#1a2940;border:1px solid #6d7598;border-radius:10px;padding:11px;color:#f6f4ff;cursor:pointer}
.mastery102 .m104-criteria input{margin:4px 0 0;flex:0 0 auto;accent-color:#a8d8dc}
.mastery102 .m104-criteria-status{font-size:.89rem;color:#e1d7f7}
.mastery102 .m104-save button{margin-right:8px}
.mastery102 .m104-review{background:#d3ebf3}
@media (prefers-reduced-motion:reduce){.mastery102 .m104-meter span{transition:none}}
/* Six compact steps make the complete lesson usable without excessive scrolling. */
.mastery102 .m104-stepnav{display:flex;flex-wrap:wrap;gap:7px;margin:16px 0 10px}
.mastery102 .m104-stepnav .m104-stepbtn{font-size:.83rem;line-height:1.25;padding:9px 11px;background:#242944;border:1px solid #7f739a;color:#f6f3ff;flex:1 1 145px;min-width:0;text-align:center;margin:0}
.mastery102 .m104-stepnav .m104-stepbtn[aria-current="step"]{background:#e8dcff;color:#20153d;border-color:#e8dcff}
.mastery102 [data-m104-stage][hidden]{display:none!important}
.mastery102 .m104-next{display:block;margin-top:16px;background:#d3ebf3}
@media(max-width:600px){.mastery102 .m104-stepnav .m104-stepbtn{flex-basis:calc(50% - 8px);font-size:.79rem;padding:10px 6px}}

/* 10.5: one authentic misconception investigation in each of the 608 lessons. */
.mastery102 .m105-investigation{border:1px solid #91b6c6;background:#142b3d;border-radius:14px;padding:clamp(13px,2vw,18px);margin:12px 0 22px}
.mastery102 .m105-case-tag{font-size:.78rem;letter-spacing:.04em;font-weight:800;color:#d7f1fb;margin-bottom:10px}
.mastery102 .m105-investigation h4{font-size:1.15rem}
.mastery102 .m105-false-claim{border-left:4px solid #ffcf83;background:#293242;padding:13px 16px;border-radius:0 9px 9px 0;color:#fff4e6;line-height:1.6;margin:15px 0;overflow-wrap:anywhere}
.mastery102 .m105-reveal{border:1px solid #8bc6a7;padding:12px 14px;border-radius:10px;margin-top:14px;background:#143c38}
.mastery102 .m105-reveal summary{color:#d9ffe8;cursor:pointer;font-weight:800}
.mastery102 .m105-reveal p{margin-top:13px}
.mastery102 .m105-scope{border-left:3px solid #b1bac7;padding-left:12px;color:#f1f6ff!important;font-size:.94rem}
@media(max-width:600px){.mastery102 .m105-false-claim{padding:10px 11px}}

/* 11.2.22 — restored exercises, readable controls and output. */
.mastery102-lab.m1022-lab{display:grid;gap:12px;padding:15px;border:1px solid #7892a5;border-radius:13px;background:#f1f8fc;color:#193746;min-width:0}
.m1022-inputs{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(210px,100%),1fr));gap:11px}
.m1022-inputs label{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:.96rem;font-weight:750;color:#173a4b!important}
.m1022-inputs input,.m1022-inputs select{display:block;min-width:0;width:100%;font:inherit;font-weight:500;padding:10px;border:2px solid #557e90;border-radius:9px;color:#142e42;background:#fff}
.m1022-inputs input[type=checkbox]{display:inline-block;width:auto;min-width:22px;min-height:22px}
.m1022-inputs label:has(input[type=checkbox]){display:flex;align-items:center;flex-direction:row;gap:11px}
.m1022-output{display:block;padding:13px 14px;background:#e0f3eb;color:#133c31!important;border-left:4px solid #247a62;border-radius:8px;line-height:1.55;overflow-wrap:anywhere}
.m1022-note{color:#385466!important;font-size:.88rem;line-height:1.5}
.m1022-actions{display:flex;gap:9px;flex-wrap:wrap;align-items:center}
.m1022-actions button{min-height:44px;padding:9px 14px;border:2px solid #1e596e;border-radius:9px;background:#20596e;color:#fff!important;font-weight:750}
.mastery102-lab.m1022-lab :focus-visible{outline:3px solid #ae641a;outline-offset:3px}
