/* Lesson 6 shares the course typography and controls; these rules describe its teaching scenes. */
.process-flow{list-style:none;padding:0;margin:14px 0 22px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.process-flow:has(li:nth-child(4)){grid-template-columns:repeat(4,minmax(0,1fr))}
.process-flow li{position:relative;border:2px solid #c4d0df;border-radius:12px;padding:17px;background:#f4f8fd;min-width:0}
.process-flow li:not(:last-child)::after{content:"→";position:absolute;right:-24px;top:40%;width:22px;text-align:center;font-size:24px;color:#AA3377}
.process-number{display:block;font:650 14px/1.5 ui-monospace,monospace;color:#AA3377;margin-bottom:8px}
.process-flow strong{display:block;font-size:17px;line-height:1.5}.process-flow p{font-size:15px;line-height:1.7;margin-top:9px}
.agent-contract,.project-functions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0}
.expert-grid,.conflict-grid,.context-grid,.classification-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0}
.context-grid,.conflict-grid,.classification-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.expert-card{border:2px dashed #c1c8d0;background:#fafafa}.expert-card.is-priority{border:2px solid #AA3377;background:#fff5fa}
.role-status{font-size:14px!important;font-weight:700;color:#805313!important;margin-top:12px!important}
.dynamic-panel{border:1px solid #b5c6d9;border-left:4px solid #365f88;border-radius:0 10px 10px 0;background:#f4f8fd;padding:17px 19px;margin:16px 0}
.dynamic-panel p{font-size:16px;line-height:1.8}.dynamic-panel p+p{margin-top:12px}.dynamic-panel h3{font-size:18px;line-height:1.5;margin-bottom:10px}
.dynamic-panel.warning{background:#fff8e9;border-color:#d6b673;border-left-color:#805313}
.source-dedup,.design-groups,.review-checklist{border:1px solid #c9d1dd;border-radius:12px;margin:20px 0;padding:18px;min-width:0}
.source-dedup legend,.design-groups legend,.review-checklist legend{font-size:17px;font-weight:650;padding:0 8px;line-height:1.6}
.source-dedup label,.review-checklist label{display:flex;align-items:center;gap:12px;min-height:48px;padding:8px;border-radius:8px;font-size:16px;line-height:1.6;cursor:pointer}
input[type=checkbox]{width:22px;height:22px;flex:none;accent-color:#AA3377}
.source-dedup label:hover,.review-checklist label:hover{background:#f5f7fa}
.conflict-card{border:2px solid #c9d1dd}.conflict-card.is-relevant{border-color:#AA3377;background:#fff5fa}
.classify-label{display:block;font-size:15px;margin-top:14px;margin-bottom:6px;font-weight:650}
.classification-grid select{font-size:15px;min-height:44px;width:100%;border:1px solid #b7c2ce;border-radius:7px;background:#fff;padding:7px;white-space:normal}
.classification-feedback{font-size:15px!important;border-top:1px solid #d9dfe7;margin-top:14px!important;padding-top:14px;color:#805313!important}
.classification-feedback.matched{color:#166534!important}
.claim-chain{padding:0;list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:20px 0;counter-reset:chain}
.chain-node{counter-increment:chain;border:2px solid #b5c6d9;border-radius:12px;padding:18px;background:#f4f8fd}
.chain-node::before{content:counter(chain,decimal-leading-zero);display:block;font:650 14px/1.5 ui-monospace,monospace;color:#AA3377;margin-bottom:8px}
.chain-node h3{font-size:18px;line-height:1.5}.chain-node p{font-size:16px;line-height:1.7;margin:10px 0}
.status-tag{display:inline-block;font-size:13px;font-weight:700;border:1px solid #d6b673;background:#fff8e9;color:#805313;border-radius:6px;padding:4px 8px}
.model-diagram{overflow-x:auto;max-width:100%;min-width:0;border:1px solid #c9d1dd;background:#fff;border-radius:12px;padding:12px;margin:12px 0 18px}
.stage .model-diagram svg{display:block;width:100%;max-width:900px;margin:auto;min-width:650px}
.stage svg .transwell-label{font-size:18px;fill:#354154}
.design-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.group-card{display:flex;gap:12px;border:2px solid #b5c6d9;border-radius:10px;padding:16px;background:#f4f8fd;align-items:flex-start;cursor:pointer;min-width:0}
.group-card strong{display:block;font-size:16px;line-height:1.6}.group-description{display:block;font-size:15px;line-height:1.7;margin-top:8px;color:#4e4e4e}
.group-card.omitted{border-style:dashed;background:#fafafa}.group-card.omitted strong{text-decoration:line-through;text-decoration-color:#805313}
.toy-readouts{border:1px solid #c9d1dd;border-radius:12px;padding:18px;background:#fff;margin:20px 0}
.chart-heading p{font-size:14px;margin-bottom:16px;color:#4e4e4e}
.toy-readout-row{display:grid;grid-template-columns:minmax(130px,190px) minmax(60px,1fr) 45px;gap:14px;align-items:center;margin:18px 0}
.toy-readout-row strong{font-size:16px;line-height:1.5}.toy-readout-track{height:28px;background:linear-gradient(90deg,#e9edf2 50%,#e0e5eb 50%);border-radius:5px;overflow:hidden}
.toy-readout-track i{display:block;height:100%;background:#365f88;transition:width .3s ease}.toy-readout-row:last-child i{background:#AA3377}
.toy-readout-row output{font-size:17px;font-weight:650;text-align:right;font-variant-numeric:tabular-nums}
.stage .readout-table{display:table!important;table-layout:fixed!important;min-width:0!important;width:100%!important;border-collapse:collapse;font-size:15px}
.stage .readout-table caption{display:table-caption;font-size:16px;text-align:left;line-height:1.7;padding:10px 0;font-weight:650}
.stage .readout-table thead{display:table-header-group!important}.stage .readout-table tbody{display:table-row-group!important}.stage .readout-table tr{display:table-row!important;border:0!important;border-radius:0!important;background:transparent!important;padding:0!important;margin:0!important}
.stage .readout-table th,.stage .readout-table td{display:table-cell!important;font-size:15px;line-height:1.6;padding:12px 9px;border:1px solid #d9dfe7!important;text-align:center;overflow-wrap:anywhere;position:static!important;width:auto!important;background:#fff!important}
.stage .readout-table thead th{background:#f4f8fd!important}.stage .readout-table tbody th{text-align:left;font-weight:650}.stage .readout-table th:first-child{width:27%!important}
.stage .readout-table td::before{display:none!important}
.stage .readout-table tbody tr:last-child td{color:#354154}
.review-checklist{background:#fff}.explore-options{flex-wrap:wrap}.explore-options button{max-width:100%;white-space:normal;line-height:1.5}
.reading-guide-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0}.reading-guide>p{font-size:15px;line-height:1.7}
@media(max-width:1100px){.process-flow,.process-flow:has(li:nth-child(4)){grid-template-columns:repeat(2,minmax(0,1fr))}.process-flow li::after{display:none}.context-grid,.conflict-grid,.classification-grid{grid-template-columns:1fr}.reading-guide-grid{grid-template-columns:1fr}}
@media(max-width:599px){.process-flow,.process-flow:has(li:nth-child(4)),.agent-contract,.project-functions,.expert-grid,.claim-chain,.design-groups{grid-template-columns:1fr}.process-flow{gap:18px}.process-flow li:not(:last-child)::after{display:block;content:"↓";top:auto;bottom:-23px;right:calc(50% - 11px);font-size:22px}.process-flow p{font-size:16px}.process-flow strong{font-size:18px}.dynamic-panel{padding:14px}.source-dedup,.design-groups,.review-checklist{padding:12px}.group-card{padding:13px}.stage .model-diagram{padding:4px}.stage svg .transwell-label{font-size:18px}.toy-readout-row{grid-template-columns:minmax(75px,110px) minmax(40px,1fr) 36px;gap:8px}.toy-readout-row strong{font-size:15px}.toy-readouts{padding:12px}.stage .readout-table th,.stage .readout-table td{font-size:14px;padding:9px 4px}.stage .readout-table caption{font-size:15px}.stage .table-scroll{overflow:visible}.chart-heading p{font-size:14px}.sandbox-toolbar label{font-size:16px}.classification-grid select{font-size:16px}}
@media(prefers-reduced-motion:reduce){.toy-readout-track i{transition:none}}

.toc-links{display:flex;flex-wrap:wrap;gap:8px;flex:1;min-width:0}.toc.toolbar{gap:10px}.toc-right{flex:none}
@media(max-width:599px){.toc.toolbar{display:block}.toc-links{flex-wrap:nowrap;overflow-x:auto;max-width:100%;padding:3px 1px 7px;margin-bottom:5px;scrollbar-width:thin}.toc-links .chip{flex:none}.toc-right{display:flex;width:100%;justify-content:flex-end;gap:8px;margin-left:0}.toc .spd{margin-left:auto}}
