.master73{margin:26px 0;padding:0;overflow:hidden;border:1px solid #c5dce6;border-radius:20px;background:#f8fcff;color:#123047;box-shadow:0 8px 28px #142a3812}.master73 *{box-sizing:border-box}.master73-heading{padding:20px 23px;background:linear-gradient(120deg,#103a56,#146b80);color:#fff}.master73-heading small{font-size:12px;letter-spacing:.06em;opacity:.84}.master73-heading h3{color:#fff;font-size:24px;margin:9px 0}.master73-heading p{line-height:1.6;margin:0}.master73-panels{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:15px;padding:16px}.master73-editor,.master73-preview{background:#fff;border:1px solid #d8e8ef;border-radius:14px;padding:16px;min-width:0}.master73 h4{margin:0 0 14px;color:#194763}.master73-fields{display:grid;gap:12px}.master73-fields label{display:grid;gap:5px;font-weight:700;font-size:13px;color:#2b5269}.master73-fields input,.master73-fields textarea{width:100%;min-height:39px;border:1px solid #9bbbc8;border-radius:9px;background:#fbfdff;color:#123047;padding:9px 11px;font:400 14px/1.5 system-ui,sans-serif}.master73-fields textarea{min-height:85px;resize:vertical}.master73-fields textarea.master73-code{font-family:ui-monospace,Consolas,monospace;white-space:pre;min-height:180px}.master73-fields input:focus,.master73-fields textarea:focus{outline:3px solid #8cd3dc;outline-offset:1px}.master73-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:17px}.master73-actions button{cursor:pointer;padding:10px 12px;border:0;border-radius:9px;background:#096c87;color:white;font-weight:750}.master73-actions button:nth-child(2){background:#14774c}.master73-actions button.master73-outline{background:#e7f2f7;color:#174a62}.master73-actions button:disabled{opacity:.5;cursor:not-allowed}.master73-feedback,.master73-warning,.master73-teacher-note{padding:10px;margin:13px 0 0;border-radius:9px;background:#e9f4fa;color:#174b65;font-size:13px}.master73-feedback.master73-error{color:#7d1c1c;background:#fff0ed}.master73-preview-inner{min-height:150px;padding:15px;border:1px dashed #a7c4d2;border-radius:12px;background:#fbfdff;overflow-wrap:anywhere}.master73-preview-inner h5{margin:0 0 10px;font-size:22px;color:#173951}.master73-preview-inner p,.master73-preview-inner li{line-height:1.6;white-space:pre-wrap}.master73-preview-inner pre{padding:12px;background:#152a38;color:#f2f8fc;overflow-x:auto;border-radius:9px;font:13px/1.5 ui-monospace,monospace}.master73-preview-inner table{width:100%;border-collapse:collapse;font-size:13px}.master73-preview-inner td,.master73-preview-inner th{border-bottom:1px solid #d6e5ed;padding:7px;text-align:left}.master73-stat{display:inline-flex;gap:8px;align-items:center;padding:7px 10px;border-radius:9px;margin:8px 5px 0 0;background:#e3f2f2;font-size:13px}.master73-preview-inner iframe{width:100%;height:245px;border:1px solid #a8c6d2;border-radius:9px;background:white}.master73-slide{background:linear-gradient(135deg,#deebf4,#eff8f8);border-radius:10px;padding:18px;min-height:120px}.master73-slide-navigation{display:flex;gap:8px;margin-top:10px}.master73-slide-navigation button{border:1px solid #acc7d5;border-radius:7px;padding:7px;background:#f7fbff;color:#194463;cursor:pointer}.master73-rubric{margin-top:20px;background:#f1f8f5;padding:14px;border-radius:10px}.master73-rubric ol{padding-left:21px;line-height:1.6}.master73-rubric p{font-weight:700;font-size:13px}.master73-disclaimer{padding:0 19px 18px;color:#4b6877;font-size:13px;line-height:1.6}.master73-preview-inner .master73-empty{font-style:italic;color:#577482}.master73-preview-inner .master73-poster{padding:26px 15px;text-align:center;border-radius:10px;background:linear-gradient(120deg,#194862,#1a7882);color:#fff}.master73-preview-inner .master73-poster h5{color:#fff;font-size:25px}.master73-preview-inner .master73-poster p{color:#fff}.master73-preview-inner .master73-chart{display:flex;align-items:end;justify-content:space-around;min-height:125px;gap:9px;padding:9px}.master73-preview-inner .master73-bar{background:#24a0ab;border-radius:4px 4px 0 0;min-width:12px;max-width:54px;flex:1}
@media(max-width:900px){.master73-panels{grid-template-columns:minmax(0,1fr);padding:10px}.master73-heading{padding:16px}.master73-heading h3{font-size:20px}}

/* Misiarium 7.4: visual concept maps, timelines, quality prompts and contrast-aware posters */
.master73-preview-inner .master73-poster h5,.master73-preview-inner .master73-poster p{color:inherit}
.master73-fields input[type=color]{height:49px;padding:5px;cursor:pointer;max-width:160px}
.master74-diagram{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:18px 0}
.master74-node{flex:1 1 100px;background:#e8f4f6;border:2px solid #96bfce;border-radius:12px;padding:12px 8px;min-width:0;text-align:center}
.master74-node small,.master74-node strong{display:block;overflow-wrap:anywhere}.master74-node small{color:#456579;margin-bottom:6px}.master74-node strong{font-size:14px}
.master74-arrow{display:grid;justify-items:center;gap:1px;max-width:95px;min-width:35px;flex:0 1 55px;color:#15707d}
.master74-arrow span{font-size:25px;font-weight:850}.master74-arrow small{text-align:center;overflow-wrap:anywhere;font-size:11px}
.master74-timeline{display:flex;gap:4px;margin:12px 0;padding:10px;background:#f2f7f9;border-radius:10px;min-height:100px}
.master74-segment{background:#dcebf6;min-width:0;border:1px solid #b0ced9;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:7px 3px;overflow-wrap:anywhere;text-align:center;font-size:12px}
.master74-segment:nth-child(2){background:#dff1e7}.master74-segment:nth-child(3){background:#f9edcd}
.master74-segment strong{font-size:12px}.master74-segment small{font-size:11px;line-height:1.4}
.master74-checks{margin-top:14px;padding:12px;border:1px solid #d1e1e6;background:white;border-radius:9px;font-size:12px}
.master74-checks>strong{display:block;margin-bottom:7px}.master74-checks ul{padding-left:20px;margin:5px 0 7px;line-height:1.5}.master74-checks li{margin:5px 0}
.master74-good{color:#1d7550}.master74-improve{color:#855a22}
.master73-fields input:disabled,.master73-fields textarea:disabled{background:#f0f3f5;color:#586a77}
@media(max-width:650px){.master74-diagram{flex-direction:column}.master74-node{width:100%;flex:auto}.master74-arrow{transform:rotate(90deg);height:35px}.master74-timeline{min-height:75px}}

/* 7.5 — formula worksheet and bounded population simulation */
.master75-formula{padding:7px 9px;background:#e6f1ff;border-left:3px solid #237e9d;border-radius:5px;font-family:ui-monospace,Consolas,monospace;overflow-wrap:anywhere}
.master75-population-chart{display:flex;align-items:end;gap:6px;height:135px;padding:12px 7px 5px;border-bottom:2px solid #7399aa;margin:12px 0}
.master75-population-bar{flex:1;min-width:10px;max-width:70px;background:#3f9978;border-radius:5px 5px 0 0}

.master75-population-pair{flex:1;min-width:16px;max-width:100px;display:flex;align-items:end;justify-content:center;gap:2px;height:115px}.master75-population-bar{flex:1;min-width:5px}.master75-population-bar.master75-a{background:#288eac}.master75-population-bar.master75-b{background:#69ad64}

/* 7.6 — actionable revision notes and bounded version comparison */
.master76-revision-label{display:grid;gap:7px;margin:16px 0;padding:13px;border:1px solid #e9cb82;border-radius:11px;background:#fffaf0;font-weight:700;color:#593b18}
.master76-revision-label textarea{width:100%;min-height:90px;resize:vertical;border:1px solid #c7a865;border-radius:8px;padding:10px;font:400 14px/1.5 system-ui,sans-serif}
.master76-revision-label small{font-weight:400;color:#745423}
.master76-history{margin-top:13px;background:#f5f9fc;padding:13px;border:1px solid #cde0e9;border-radius:11px}
.master76-history details{margin:11px 0;padding:10px;border-left:2px solid #6a9cb1;background:white;overflow-wrap:anywhere}
.master76-history summary{cursor:pointer;font-weight:700}
.master76-history p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px}
.m76-version{margin-top:12px}.m76-diff{padding:10px;border:1px solid #d4e6ed;border-radius:10px;margin:10px 0}
.m76-diff pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f6fafc;padding:10px}
@media print{.master73-editor,.master73-actions,.master76-history{display:none!important}.master73-panels{display:block}}

.master76-order{display:flex;gap:8px;flex-wrap:wrap;margin:5px 0 12px}
.master76-order button{border:1px solid #a9cbd6;border-radius:8px;background:#eaf5f8;color:#1a586c;padding:6px 10px;cursor:pointer;font-weight:700}
.master76-order button:disabled{opacity:.45;cursor:not-allowed}

/* 7.7: keyboard-accessible pixel canvas and conditional testbench. */
.master77-hidden-pixel{display:none!important}
.master77-swatches{display:flex;gap:.5rem;flex-wrap:wrap;margin:12px 0}
.master77-swatch{width:38px;height:38px;min-width:38px;border-radius:9px;border:2px solid #a3bdc9;cursor:pointer;box-shadow:inset 0 0 0 1px #fff3}
.master77-swatch[aria-pressed=true]{outline:3px solid #48cae4;outline-offset:2px}
.master77-pixel-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));width:min(100%,390px);gap:1px;padding:5px;background:#678499;border-radius:10px;margin:12px 0;touch-action:manipulation}
.master77-pixel-cell{aspect-ratio:1;width:100%;min-width:0;border:0!important;border-radius:1px!important;cursor:crosshair;padding:0!important;min-height:0!important}
.master77-pixel-cell:focus-visible{outline:2px solid #eb5d30;outline-offset:-1px;z-index:1}
.master77-branch{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0}
.master77-branch section{background:#152f46;border:1px solid #477388;border-radius:10px;padding:12px;overflow-wrap:anywhere}
.master77-testline{border-left:4px solid #8196a8;padding:8px 10px;background:#143349;border-radius:4px}
.master77-testline.master77-pass{border-left-color:#51bb89}.master77-testline.master77-fail{border-left-color:#e9ae68}
@media(max-width:520px){.master77-pixel-grid{width:100%}.master77-branch{grid-template-columns:1fr}}

/* 7.8 – Evidence panel, clear without claiming an automated grade. */
.master78-evidence{border-left:3px solid #a9b9c2;padding:8px 10px;margin:6px 0;border-radius:5px;background:#f4f7fa;font-size:.92rem;overflow-wrap:anywhere}
.master78-evidence.master77-pass{border-color:#3a9b73;background:#e9f7f0}
.master78-evidence.master77-fail{border-color:#be8d44;background:#fff6e7}

.master78-trial{margin-top:18px;border-top:1px solid #cbdbe4;padding:12px;background:#f7fbfc;border-radius:9px}

/* 7.9 optional client-side real Python test runner */
.master79-pytest{margin:1rem 0;padding:1rem;border:1px solid #9dc4d9;border-radius:14px;background:#edf8fc;color:#21425a}
.master79-pytest button{background:#155c79;color:#fff;border:0;border-radius:9px;padding:.8rem 1rem;cursor:pointer;font:inherit;font-weight:700}
.master79-pytest button:disabled{opacity:.5;cursor:not-allowed}
.master79-pytest p{font-size:.91rem;line-height:1.5}
.master79-results{white-space:pre-wrap;overflow-wrap:anywhere;margin-top:.7rem}
.master79-results p{border-left:4px solid #d9a040;padding:.4rem .7rem;background:#fff;border-radius:6px}
.master79-results p.master77-pass{border-color:#2e9b78}

/* 8.1: new transfer situations, responsive and accessible. */
.master81-challenge{margin:1rem 0 1.4rem;border:1px solid #83b3be;border-left:5px solid #1b858b;border-radius:14px;padding:1.1rem 1.25rem;background:#eef9f9;color:#164658}
.master81-challenge small{display:block;font-weight:800;letter-spacing:.04em;color:#286f75}
.master81-challenge h4{font-size:1.3rem;margin:.45rem 0 .7rem;color:#154e57}
.master81-challenge p{margin:.55rem 0;line-height:1.6;color:#174b54}
.master81-challenge .master81-small{font-size:.9rem;color:#526b70}
@media(prefers-color-scheme:dark){.master81-challenge{background:#102f39;color:#e7f3f7;border-color:#377987}.master81-challenge h4,.master81-challenge p,.master81-challenge small{color:#ecf6f8}.master81-challenge .master81-small{color:#c7e0e8}}


/* 8.1.1 — Five authentic learning actions, not automatic badges. */
.master811-path{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.5rem;margin:1rem 0 1.2rem}
.master811-path button{border:1px solid #9bc9d4;border-radius:12px;background:#eaf5f8;color:#164b61;cursor:pointer;padding:.75rem .35rem;font:700 .9rem/1.3 system-ui,sans-serif}
.master811-path button span{display:block;font-weight:800;font-size:1.1rem;margin-bottom:.2rem}
.master811-path button:hover,.master811-path button:focus-visible{outline:2px solid #258ca7;outline-offset:2px;background:#d7eef4}
.master811-lesson{margin:1.25rem 0;border:1px solid #a6c8b8;border-radius:14px;background:#f1faf4;color:#20513e;padding:1rem 1.3rem}
.master811-lesson h4{margin:.5rem 0;font-size:1.02rem;color:#20513e}
.master811-lesson p{line-height:1.6;margin:.45rem 0 .9rem}
.master811-question{border-top:1px solid #b6d4c4;padding-top:1rem}
.master811-question small{display:block;line-height:1.5}
.master811-check{background:#196b78!important;color:#fff!important;padding:.7rem 1rem!important;border:0!important;border-radius:9px!important;margin:.25rem 0!important;cursor:pointer!important}
.master811-result{min-height:2.5rem;margin:.4rem 0 1rem;padding:.6rem .8rem;border-left:3px solid #8a9ba8;background:#f5f9fa;border-radius:5px}
.master811-result[data-state=correct]{border-left-color:#26996f;background:#e6f7ee;color:#115335}
.master811-result[data-state=retry]{border-left-color:#cd9147;background:#fff4e5;color:#754918}
@media(max-width:760px){.master811-path{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:470px){.master811-path{grid-template-columns:repeat(2,minmax(0,1fr))}.master811-path button{font-size:.82rem}}
@media(prefers-color-scheme:dark){.master811-lesson{background:#15342d;color:#e2f2e9;border-color:#366e5d}.master811-lesson h4{color:#d9f4e7}.master811-question{border-color:#366e5d}.master811-path button{background:#153949;color:#e1f2f9;border-color:#417e95}}
