/* Module 05 is a self-contained assisted endpoint lab. */

.m05-shell { min-height: 100vh; color: #1e3a5f; background: rgba(248, 250, 252, .78); }
.m05-topbar { min-height: 64px; padding: 10px clamp(16px, 4vw, 48px); display: flex; align-items: center; justify-content: space-between; gap: 20px; background: rgba(255,255,255,.96); border-bottom: 1px solid #f3f4f6; }
.m05-brand img { width: auto; height: 42px; display: block; }
.m05-topbar > div { display: flex; align-items: center; gap: 16px; }
.m05-simulation, .m05-exit { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; }
.m05-simulation { padding: 7px 11px; color: #1e3a5f; background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 999px; }
.m05-exit { color: #1e3a5f; text-decoration: none; }
.m05-exit:hover, .m05-exit:focus-visible { color: #ea580c; text-decoration: underline; }
.m05-main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 44px 0 80px; }

.m05-kicker { margin: 0; color: #f97316; font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.m05-primary { width: fit-content; margin-top: 24px; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; color: #fff; background: #f97316; border-radius: 12px; font-size: 13px; font-weight: 700; text-decoration: none; }
.m05-primary:hover, .m05-primary:focus-visible { background: #ea580c; }

.m05-objective { margin-top: 22px; display: flex; align-items: flex-start; gap: 16px; padding: 22px; background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; box-shadow: 0 1px 3px rgba(30,58,95,.08); }
.m05-objective > i { width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; color: #fff; background: #f97316; border-radius: 12px; font-size: 21px; }
.m05-objective h2 { margin: 4px 0 6px; color: #1e3a5f; font-size: 20px; line-height: 1.35; }
.m05-objective p:last-child { margin: 0; color: #6b7280; font: 14px/1.65 Inter, sans-serif; }

.m05-section-intro { margin: -5px 0 20px; color: #6b7280; font: 14px/1.65 Inter, sans-serif; }

.m05-lesson-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.m05-lesson { overflow: hidden; background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 16px; }
.m05-lesson summary { min-height: 84px; display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 15px 17px; cursor: pointer; list-style: none; }
.m05-lesson summary::-webkit-details-marker { display: none; }
.m05-lesson summary:hover { background: #fff; }
.m05-lesson[open] { background: #fff; border-color: #1e3a5f; box-shadow: 0 1px 3px rgba(30,58,95,.08); }
.m05-lesson summary > i:not(.m05-chevron) { width: 38px; height: 38px; display: grid; place-items: center; color: #1e3a5f; background: rgba(59,130,246,.08); border-radius: 12px; font-size: 19px; }
.m05-lesson summary strong, .m05-lesson summary small { display: block; }
.m05-lesson summary strong { color: #1e3a5f; font-size: 14px; }
.m05-lesson summary small { margin-top: 3px; color: #6b7280; font: 11px/1.45 Inter, sans-serif; }
.m05-lesson[open] .m05-chevron { transform: rotate(180deg); }
.m05-lesson-copy { margin: 0 17px 17px; padding: 15px 17px; color: #4b5563; background: #f8fafc; border-radius: 12px; font: 13px/1.65 Inter, sans-serif; }
.m05-lesson-copy p { margin: 0; }
.m05-lesson-copy p + p { margin-top: 10px; padding-top: 10px; color: #1e3a5f; border-top: 1px solid #e5e7eb; }
.m05-crosswalk { margin: 18px 0; padding: 14px 16px; color: #4b5563; background: #f8fafc; border-left: 3px solid #1e3a5f; border-radius: 0 10px 10px 0; font: 12px/1.55 Inter, sans-serif; }
.m05-crosswalk strong { color: #1e3a5f; }
.m05-crosswalk p { margin: 4px 0 0; }
.m05-lesson-loops { margin-top: 4px; }
.m05-lesson-loop summary { display: flex; align-items: center; gap: 12px; padding: 15px 17px; cursor: pointer; list-style: none; }
.m05-lesson-loop summary::-webkit-details-marker { display: none; }
.m05-lesson-loop summary > span:nth-child(2) { flex: 1; }
.m05-lesson-loop summary strong, .m05-lesson-loop summary small { display: block; }
.m05-lesson-loop summary strong { color: #1e3a5f; font-size: 14px; }
.m05-lesson-loop summary small { margin-top: 3px; color: #6b7280; font: 11px/1.45 Inter, sans-serif; }
.m05-lesson-loop-body { display: grid; gap: 12px; padding: 0 17px 17px; }
.m05-lesson-loop-body > section { padding: 14px; background: #f8fafc; border-radius: 12px; }
.m05-lesson-loop-body p:not(.m05-kicker) { margin: 5px 0 0; color: #4b5563; font: 13px/1.6 Inter, sans-serif; }
.m05-lesson-question { margin: 10px 0 0; padding: 10px; border: 1px solid #e5e7eb; border-radius: 10px; }
.m05-lesson-question legend { color: #1e3a5f; font-size: 12px; font-weight: 700; }
.m05-lesson-question label, .m05-independent-question label { display: flex; gap: 8px; align-items: flex-start; margin-top: 7px; color: #4b5563; font: 12px/1.45 Inter, sans-serif; }
.m05-lesson-check, .m05-lesson-task-button, .m05-independent-submit { margin-top: 10px; padding: 9px 12px; color: #fff; background: #1e3a5f; border: 0; border-radius: 8px; font-size: 11px; font-weight: 700; cursor: pointer; }
.m05-lesson-task { width: 100%; box-sizing: border-box; margin-top: 8px; padding: 10px; border: 1px solid #d1d5db; border-radius: 8px; font: 12px/1.5 Inter, sans-serif; }
.m05-lesson-feedback { margin-top: 9px !important; padding: 9px; color: #1e3a5f !important; background: rgba(59,130,246,.08); border-radius: 8px; }
.m05-lesson-feedback.is-pass { color: #166534 !important; background: rgba(34,197,94,.1); }
.m05-independent-lab { margin-top: 20px; padding: 20px; border: 1px solid #f97316; border-radius: 14px; background: #fffaf5; }
.m05-independent-question { margin: 12px 0; padding: 12px; border: 1px solid #eadfd5; border-radius: 10px; }
.m05-independent-question legend { color: #1e3a5f; font-size: 12px; font-weight: 700; }
.m05-panel-instruction { color: #4b5563; font: 13px/1.6 Inter, sans-serif; }
.m05-independent-feedback { margin-top: 12px; padding: 12px; border-radius: 10px; background: rgba(249,115,22,.1); color: #7c2d12; font: 12px/1.5 Inter, sans-serif; }
.m05-independent-feedback.is-pass { color: #166534; background: rgba(34,197,94,.1); }

.m05-route { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
.m05-route li { display: flex; align-items: flex-start; gap: 10px; padding: 17px; background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 16px; }
.m05-route li > span { width: 26px; height: 26px; flex: 0 0 auto; display: grid; place-items: center; color: #fff; background: #1e3a5f; border-radius: 8px; font-size: 11px; font-weight: 700; }
.m05-route strong { color: #1e3a5f; font-size: 13px; }
.m05-route p { margin: 4px 0 0; color: #6b7280; font: 11px/1.5 Inter, sans-serif; }
.m05-boundary { margin-top: 16px; display: flex; align-items: flex-start; gap: 12px; padding: 16px; color: #4b5563; background: rgba(249,115,22,.08); border-left: 3px solid #f97316; border-radius: 0 12px 12px 0; }
.m05-boundary i { flex: 0 0 auto; color: #ea580c; font-size: 20px; }
.m05-boundary p { margin: 0; font: 13px/1.6 Inter, sans-serif; }

.m05-lab { border-top: 4px solid #f97316; }
.m05-progress-card { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; overflow: hidden; margin-bottom: 16px; background: #e5e7eb; border: 1px solid #e5e7eb; border-radius: 16px; }
.m05-progress-card div { min-height: 66px; display: flex; align-items: center; gap: 9px; padding: 13px; color: #6b7280; background: #f8fafc; font: 11px/1.4 Inter, sans-serif; }
.m05-progress-card i { flex: 0 0 auto; color: #6b7280; font-size: 17px; }
.m05-progress-card .is-done { color: #1e3a5f; background: #fff; font-weight: 600; }
.m05-progress-card .is-done i { color: #f97316; }

.m05-workbench { overflow: hidden; border: 1px solid #e5e7eb; border-radius: 16px; }
.m05-casebar { padding: 22px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; color: #fff; background: linear-gradient(135deg, #0a1628 0%, #1e3a5f 45%, #0f2440 100%); }
.m05-casebar h3 { margin: 5px 0 7px; color: #fff; font-size: 20px; }
.m05-casebar p:not(.m05-kicker) { max-width: 690px; margin: 0; color: rgba(255,255,255,.72); font: 12px/1.6 Inter, sans-serif; }
.m05-casebar code { color: #fff; }
.m05-casebar dl { min-width: 315px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 0; overflow: hidden; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; }
.m05-casebar dl div { padding: 10px 12px; background: rgba(12,30,50,.56); }
.m05-casebar dt { color: rgba(255,255,255,.56); font: 9px Inter, sans-serif; }
.m05-casebar dd { margin: 4px 0 0; color: #fff; font: 600 11px Inter, sans-serif; }

.m05-source-tabs { display: flex; align-items: stretch; gap: 0; padding: 10px 12px 0; background: #f8fafc; border-bottom: 1px solid #e5e7eb; }
.m05-source-tabs > button { min-height: 48px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; color: #6b7280; background: transparent; border: 0; border-bottom: 3px solid transparent; font: 600 12px 'Space Grotesk', sans-serif; cursor: pointer; }
.m05-source-tabs > button[aria-selected="true"] { color: #1e3a5f; border-bottom-color: #f97316; background: #fff; }
.m05-source-tabs > button span { padding: 3px 6px; color: #6b7280; background: #f3f4f6; border-radius: 999px; font-size: 9px; }
.m05-source-tabs .m05-hint-button { margin-left: auto; color: #1e3a5f; }
.m05-hint { margin: 14px 16px 0; padding: 14px 16px; color: #4b5563; background: rgba(249,115,22,.08); border: 1px solid rgba(249,115,22,.3); border-radius: 12px; }
.m05-hint[hidden] { display: none; }
.m05-hint strong { color: #ea580c; font-size: 12px; }
.m05-hint p { margin: 4px 0 0; font: 12px/1.55 Inter, sans-serif; }
.m05-source-panel { padding: 18px; background: #fff; }
.m05-source-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); gap: 16px; align-items: start; }
.m05-source-list { min-width: 0; }
.m05-source-heading, .m05-panel-heading, .m05-score-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.m05-source-heading h3, .m05-panel-heading h3, .m05-score-head h3 { margin: 4px 0 0; color: #1e3a5f; font-size: 18px; }
.m05-source-heading > span, .m05-panel-heading > span { color: #6b7280; font: 10px Inter, sans-serif; }
.m05-source-instruction { margin: 8px 0 14px; color: #6b7280; font: 11px/1.55 Inter, sans-serif; }

.m05-tree { display: grid; gap: 7px; }
.m05-tree-row { width: calc(100% - (var(--m05-depth) * 22px)); min-width: 0; margin-left: calc(var(--m05-depth) * 22px); display: grid; grid-template-columns: 60px 28px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 11px; color: #4b5563; background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 12px; text-align: left; cursor: pointer; }
.m05-tree-row:hover, .m05-tree-row.is-active { background: #fff; border-color: #1e3a5f; }
.m05-tree-time { color: #6b7280; font: 10px Inter, sans-serif; }
.m05-tree-row > i { color: #1e3a5f; font-size: 17px; }
.m05-tree-row strong, .m05-tree-row small { display: block; overflow-wrap: anywhere; }
.m05-tree-row strong { color: #1e3a5f; font-size: 12px; }
.m05-tree-row small { margin-top: 2px; color: #6b7280; font: 10px/1.4 Inter, sans-serif; }
.m05-risk { padding: 4px 7px; border-radius: 999px; font-size: 9px; font-weight: 700; }
.m05-risk-suspicious { color: #fff; background: #ea580c; }
.m05-risk-review { color: #ea580c; background: rgba(249,115,22,.08); border: 1px solid rgba(249,115,22,.3); }
.m05-risk-expected { color: #1e3a5f; background: rgba(59,130,246,.08); }

.m05-event-list { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.m05-event-row { width: 100%; display: grid; grid-template-columns: 66px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px; color: #4b5563; background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 12px; text-align: left; cursor: pointer; }
.m05-event-row:hover, .m05-event-row.is-active { background: #fff; border-color: #1e3a5f; }
.m05-event-row time { color: #f97316; font: 700 10px Inter, sans-serif; }
.m05-event-row strong, .m05-event-row small { display: block; overflow-wrap: anywhere; }
.m05-event-row strong { color: #1e3a5f; font-size: 12px; }
.m05-event-row small { margin-top: 2px; color: #6b7280; font: 10px/1.4 Inter, sans-serif; }
.m05-event-row > i { color: #6b7280; }

.m05-detail { min-width: 0; padding: 18px; background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 16px; }
.m05-detail > h3 { margin: 4px 0 15px; color: #1e3a5f; font-size: 19px; }
.m05-detail-grid { display: grid; gap: 8px; margin: 0; }
.m05-detail-grid div { min-width: 0; padding: 10px; background: #fff; border-radius: 12px; }
.m05-detail-grid dt { color: #6b7280; font: 9px Inter, sans-serif; text-transform: uppercase; letter-spacing: .06em; }
.m05-detail-grid dd { margin: 4px 0 0; color: #4b5563; font: 11px/1.5 Inter, sans-serif; overflow-wrap: anywhere; }
.m05-detail code, .m05-file-card code { font: 10px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.m05-observation { margin-top: 10px; padding: 12px; color: #4b5563; background: #fff; border-left: 3px solid #1e3a5f; border-radius: 0 12px 12px 0; }
.m05-observation strong { color: #1e3a5f; font-size: 11px; }
.m05-observation p { margin: 4px 0 0; font: 11px/1.55 Inter, sans-serif; }
.m05-evidence-toggle { min-height: 40px; margin-top: 12px; display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; color: #fff; background: #1e3a5f; border: 1px solid #1e3a5f; border-radius: 12px; font: 700 11px 'Space Grotesk', sans-serif; cursor: pointer; }
.m05-evidence-toggle.is-selected { color: #1e3a5f; background: #fff; }
.m05-file-card { margin-top: 10px; padding: 12px; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; }
.m05-file-card > strong { display: flex; align-items: center; gap: 7px; color: #1e3a5f; font-size: 11px; }
.m05-file-card dl { display: grid; gap: 7px; margin: 10px 0 0; }
.m05-file-card dl div { min-width: 0; }
.m05-file-card dt { color: #6b7280; font: 9px Inter, sans-serif; }
.m05-file-card dd { margin: 2px 0 0; color: #4b5563; font: 10px/1.45 Inter, sans-serif; overflow-wrap: anywhere; }

.m05-findings, .m05-assessment { margin-top: 16px; padding: 22px; background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 16px; }
.m05-findings ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.m05-findings li { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 11px 12px; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; }
.m05-findings li span { min-width: 0; }
.m05-findings li strong, .m05-findings li small { display: block; overflow-wrap: anywhere; }
.m05-findings li strong { color: #1e3a5f; font-size: 11px; }
.m05-findings li small { margin-top: 2px; color: #6b7280; font: 9px Inter, sans-serif; }
.m05-findings li button { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; color: #6b7280; background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 999px; cursor: pointer; }
.m05-empty { margin: 14px 0 0; padding: 14px; color: #6b7280; background: #fff; border: 1px dashed #e5e7eb; border-radius: 12px; font: 11px/1.5 Inter, sans-serif; }

.m05-fieldset { min-width: 0; margin: 24px 0 0; padding: 0; border: 0; }
.m05-fieldset legend, .m05-note-field > label { color: #1e3a5f; font-size: 14px; font-weight: 700; }
.m05-fieldset > p, .m05-note-field > p { margin: 5px 0 10px; color: #6b7280; font: 11px/1.5 Inter, sans-serif; }
.m05-options { display: grid; gap: 8px; }
.m05-options label { display: flex; align-items: flex-start; gap: 10px; padding: 12px 13px; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; cursor: pointer; }
.m05-options label:has(input:checked) { border-color: #f97316; background: rgba(249,115,22,.08); }
.m05-options input { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 1px; accent-color: #f97316; }
.m05-options strong, .m05-options small { display: block; }
.m05-options strong { color: #4b5563; font: 600 12px/1.45 Inter, sans-serif; }
.m05-options small { margin-top: 3px; color: #6b7280; font: 10px/1.45 Inter, sans-serif; }
.m05-note-field { margin-top: 24px; }
.m05-note-field textarea { width: 100%; padding: 13px 14px; resize: vertical; color: #4b5563; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; font: 13px/1.6 Inter, sans-serif; }
.m05-note-tools { margin-top: 7px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.m05-note-tools button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 11px; color: #1e3a5f; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; font: 600 10px 'Space Grotesk', sans-serif; cursor: pointer; }
.m05-note-tools span { color: #6b7280; font: 10px Inter, sans-serif; }
.m05-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.m05-actions button { min-height: 42px; display: inline-flex; align-items: center; gap: 7px; padding: 10px 15px; border-radius: 12px; font: 700 12px 'Space Grotesk', sans-serif; cursor: pointer; }
.m05-submit { color: #fff; background: #f97316; border: 1px solid #f97316; }
.m05-submit:hover, .m05-submit:focus-visible { background: #ea580c; }
.m05-reset { color: #1e3a5f; background: #fff; border: 1px solid #e5e7eb; }
.m05-reset:hover, .m05-reset:focus-visible { background: #f8fafc; border-color: #1e3a5f; }

.m05-score-empty, .m05-score, .m05-validation { margin-top: 20px; padding: 18px; border-radius: 16px; }
.m05-score-empty { color: #6b7280; background: #fff; border: 1px dashed #e5e7eb; font: 11px/1.55 Inter, sans-serif; }
.m05-validation { display: flex; align-items: flex-start; gap: 10px; color: #4b5563; background: rgba(249,115,22,.08); border: 1px solid rgba(249,115,22,.3); }
.m05-validation i { color: #ea580c; font-size: 19px; }
.m05-validation strong { color: #1e3a5f; font-size: 12px; }
.m05-validation p { margin: 3px 0 0; font: 11px/1.5 Inter, sans-serif; }
.m05-score { border: 1px solid #e5e7eb; }
.m05-score.is-pass { background: #fff; border-top: 4px solid #1e3a5f; }
.m05-score.is-remediate { background: rgba(249,115,22,.08); border-color: rgba(249,115,22,.3); }
.m05-score-head > span { width: 56px; height: 56px; flex: 0 0 auto; display: grid; place-items: center; color: #fff; background: #1e3a5f; border-radius: 50%; font-size: 18px; font-weight: 700; }
.m05-score-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-top: 15px; }
.m05-score-grid div { padding: 10px; background: #fff; border-radius: 12px; }
.m05-score-grid strong, .m05-score-grid span { display: block; }
.m05-score-grid strong { color: #1e3a5f; font-size: 13px; }
.m05-score-grid span { margin-top: 2px; color: #6b7280; font: 9px Inter, sans-serif; }
.m05-feedback-list { margin: 14px 0 0; padding-left: 18px; color: #4b5563; font: 11px/1.65 Inter, sans-serif; }
.m05-model { margin-top: 14px; padding: 13px; color: #4b5563; background: #f8fafc; border-radius: 12px; }
.m05-model strong { color: #1e3a5f; font-size: 11px; }
.m05-model p { margin: 5px 0 0; font: 10px/1.6 Inter, sans-serif; }


.m05-section-collapsible .m05-section-body h3:not(.learn-it *):not(.m03e-console *) { margin-top: 22px; color: #1e3a5f; font-size: 17px; font-weight: 700; }
.m05-section-collapsible .m05-section-body h3:first-child:not(.learn-it *):not(.m03e-console *) { margin-top: 0; }
.m05-section-collapsible .m05-section-body p:not(.learn-it *):not(.m03e-console *) { margin: 10px 0; color: #4b5563; font: 14px/1.65 Inter, sans-serif; }
.m05-section-collapsible .m05-section-body ul { margin: 12px 0; padding-left: 20px; color: #4b5563; font: 14px/1.65 Inter, sans-serif; }
.m05-section-collapsible .m05-section-body li { margin: 8px 0; }
.m05-section-collapsible .m05-section-body li strong { color: #334155; }

.m05-lecture-section { padding: 0; }
.m05-lecture-intro { margin-bottom: 18px; }
.m05-lecture-intro p { color: #4b5563; font: 14px/1.65 Inter, sans-serif; }

.m05-quiz-form { margin-top: 14px; }
.m05-quiz-question { margin-bottom: 16px; padding: 14px; background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 12px; }
.m05-quiz-question legend { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 11px; color: #1e3a5f; font-size: 14px; font-weight: 700; }
.m05-quiz-question legend span { width: 22px; height: 22px; flex: 0 0 auto; display: grid; place-items: center; color: #fff; background: #1e3a5f; border-radius: 5px; font-size: 9px; }
.m05-quiz-options { display: grid; gap: 8px; margin-left: 31px; }
.m05-quiz-options label { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; }
.m05-quiz-options input { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 2px; accent-color: #f97316; }
.m05-quiz-options span { color: #4b5563; font: 12px/1.55 Inter, sans-serif; }
.m05-quiz-submit { min-height: 40px; margin-top: 10px; display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; color: #fff; background: #f97316; border: 1px solid #f97316; border-radius: 9px; font-size: 11px; font-weight: 800; cursor: pointer; }
.m05-quiz-submit:hover { background: #ea580c; }
.m05-quiz-submit:disabled { background: #cbd5e1; border-color: #cbd5e1; cursor: not-allowed; }
.m05-quiz-score { margin-top: 14px; padding: 14px; border: 1px solid; border-radius: 10px; }
.m05-quiz-pass { background: #eff6ff; border-color: #bfdbfe; }
.m05-quiz-remediate { background: #fff7ed; border-color: #fed7aa; }
.m05-quiz-score-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.m05-quiz-score-heading h3 { margin: 2px 0 0; color: #1e3a5f; font-size: 16px; }
.m05-quiz-score-heading span { width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-items: center; color: #fff; background: #1e3a5f; border-radius: 50%; font-size: 16px; font-weight: 800; }
.m05-quiz-feedback-list { margin: 10px 0 0; padding-left: 16px; color: #4b5563; font: 11px/1.55 Inter, sans-serif; }
.m05-quiz-feedback-list li { margin: 8px 0; display: flex; gap: 8px; }
.m05-quiz-feedback-list li i { flex: 0 0 auto; margin-top: 1px; }
.m05-quiz-feedback-correct i { color: #059669; }
.m05-quiz-feedback-incorrect i { color: #dc2626; }
.m05-quiz-feedback-list strong { color: #334155; display: block; }
.m05-quiz-feedback-list p { margin: 3px 0 0; }
.m05-quiz-actions { display: flex; gap: 10px; margin-top: 10px; }
.m05-quiz-retry { min-height: 36px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 11px; color: #1e3a5f; background: #eef6ff; border: 1px solid #cfe2f7; border-radius: 8px; font-size: 10px; font-weight: 800; cursor: pointer; }
.m05-quiz-retry:hover { background: #dbeafe; }
.m05-quiz-empty { margin-top: 10px; padding: 12px; color: #6b7280; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 9px; font: 11px/1.5 Inter, sans-serif; }
.m05-quiz-ready { margin-top: 10px; padding: 12px; color: #1e3a5f; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 9px; font: 11px/1.5 Inter, sans-serif; }

.m05-review-section p { color: #4b5563; font: 14px/1.65 Inter, sans-serif; }
.m05-review-section ul { margin: 12px 0; padding-left: 20px; color: #4b5563; font: 14px/1.65 Inter, sans-serif; }
.m05-review-section li { margin: 8px 0; }
.m05-review-section li strong { color: #334155; }

.m05-shell :focus-visible { outline: 3px solid rgba(249,115,22,.38); outline-offset: 2px; }

.m05-guided-status { padding: 10px 14px; background: #f8fafc; border-left: 3px solid #f97316; }


@media (max-width: 920px) {
  .m05-lesson-grid { grid-template-columns: 1fr; }
  .m05-route { grid-template-columns: repeat(2, 1fr); }
  .m05-progress-card { grid-template-columns: repeat(2, 1fr); }
  .m05-casebar { grid-template-columns: 1fr; }
  .m05-casebar dl { width: 100%; min-width: 0; }
  .m05-source-layout { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .m05-main { width: min(100% - 24px, 1180px); padding-top: 22px; }
  .m05-topbar { padding-inline: 14px; }
  .m05-brand img { height: 34px; }
  .m05-simulation { display: none; }
  .m05-exit { font-size: 0; }
  .m05-exit i { font-size: 20px; }
  .m05-hero dl, .m05-route, .m05-progress-card, .m05-score-grid, .m05-findings ul { grid-template-columns: 1fr; }
  .m05-lesson summary { grid-template-columns: auto minmax(0, 1fr) auto; }
  .m05-casebar dl { grid-template-columns: 1fr; }
  .m05-source-tabs { flex-wrap: wrap; padding: 8px; }
  .m05-source-tabs > button { flex: 1 1 45%; justify-content: center; }
  .m05-source-tabs .m05-hint-button { flex-basis: 100%; margin-left: 0; border-top: 1px solid #e5e7eb; }
  .m05-source-panel { padding: 12px; }
  .m05-tree-row { width: calc(100% - (var(--m05-depth) * 10px)); margin-left: calc(var(--m05-depth) * 10px); grid-template-columns: 48px 22px minmax(0, 1fr); }
  .m05-tree-row .m05-risk { grid-column: 3; justify-self: start; }
  .m05-event-row { grid-template-columns: 54px minmax(0, 1fr) auto; }
  .m05-source-heading, .m05-panel-heading, .m05-score-head { flex-direction: column; }
  .m05-note-tools { align-items: flex-start; flex-direction: column; }
}

/* Keep a submitted practice debrief accessible from its docked console header. */
.m03e-console header .m02e-learn-tip:not(.is-collapsed) .m02e-tip-body { display:block; }

/* Process ancestry reference (Guided Lab) */
.m05-anc-ref { margin: 0 0 14px; }
.m05-anc { margin: 0; padding: 14px 4px 4px; }
.m05-anc h4 { margin: 4px 0 14px; color: #1e3a5f; font-size: 16px; }
.m05-anc-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 60px; }
.m05-anc-item { position: relative; display: flex; min-width: 0; }
.m05-anc-node { flex: 1; display: flex; flex-direction: column; min-width: 0; background: #f8fafc; border: 2px solid #1e3a5f; border-radius: 12px; font: 12px/1.4 Inter, sans-serif; color: #4b5563; overflow-wrap: anywhere; }
.m05-anc-body { flex: 1; display: flex; flex-direction: column; gap: 3px; padding: 10px; }
.m05-anc-body small { color: #f97316; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.m05-anc-body strong { color: #1e3a5f; font-size: 12.5px; overflow-wrap: normal; word-break: keep-all; }
.m05-anc-time { display: flex; flex-direction: column; padding: 6px 10px 8px; border-top: 1px solid #e5e7eb; color: #1e3a5f; font: 600 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.m05-anc-time small { color: #6b7280; font: 11px/1.4 Inter, sans-serif; }
.m05-anc-item.is-missing .m05-anc-node { background: transparent; border: 2px dotted #9ca3af; }
.m05-anc-link { position: absolute; top: 50%; left: -60px; width: 60px; height: 0; }
.m05-anc-linktext { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; color: #4b5563; font: 700 9.5px/1.1 Inter, sans-serif; }
.m05-anc-line { position: absolute; left: 4px; right: 6px; top: 0; border-top: 3px solid #1e3a5f; }
.m05-anc-line::after { content: ''; position: absolute; right: -6px; top: -7px; border: 5.5px solid transparent; border-left: 8px solid #1e3a5f; border-right: 0; }
.m05-anc-link.is-inferred .m05-anc-line { border-top-style: dashed; border-top-color: #6b7280; }
.m05-anc-link.is-inferred .m05-anc-line::after { border-left-color: #6b7280; }
.m05-anc-link.is-missing .m05-anc-line { border-top-style: dotted; border-top-color: #9ca3af; }
.m05-anc-link.is-missing .m05-anc-line::after { border-left-color: #9ca3af; }
.m05-anc-legend { list-style: none; margin: 16px 0 0; padding: 12px 0 0; border-top: 1px solid #e5e7eb; display: grid; gap: 6px; color: #4b5563; font: 12px/1.5 Inter, sans-serif; }
.m05-anc-legend li { display: flex; gap: 10px; align-items: center; }
.m05-anc-key { flex: 0 0 34px; border-top: 3px solid #1e3a5f; }
.m05-anc-key.is-inferred { border-top: 3px dashed #6b7280; }
.m05-anc-key.is-missing { border-top: 3px dotted #9ca3af; }
.m05-anc-caption { margin: 12px 0 0; color: #6b7280; font: 12px/1.55 Inter, sans-serif; }
@media (max-width: 760px) {
  .m05-anc-flow { grid-template-columns: minmax(0, 1fr); gap: 46px 0; }
  .m05-anc-link { top: -46px; left: 28px; width: auto; height: 46px; }
  .m05-anc-linktext { white-space: nowrap; left: 14px; right: auto; bottom: auto; top: 15px; text-align: left; }
  .m05-anc-line { left: 0; right: auto; top: 4px; bottom: 6px; height: auto; width: 0; border-top: 0 !important; border-left: 3px solid #1e3a5f; }
  .m05-anc-line::after { right: auto; top: auto; left: -7px; bottom: -6px; border: 5.5px solid transparent; border-top: 8px solid #1e3a5f; border-bottom: 0; }
  .m05-anc-link.is-inferred .m05-anc-line { border-left-style: dashed; border-left-color: #6b7280; }
  .m05-anc-link.is-inferred .m05-anc-line::after { border-top-color: #6b7280; border-left-color: transparent; }
  .m05-anc-link.is-missing .m05-anc-line { border-left-style: dotted; border-left-color: #9ca3af; }
  .m05-anc-link.is-missing .m05-anc-line::after { border-top-color: #9ca3af; border-left-color: transparent; }
  .m05-anc-line::after { border-left-color: transparent; }
}
