/* The campus renderer is reused beneath an unobstructed laboratory viewport. */
.training-overlay[hidden], .training-overlay [hidden] { display: none !important; }
.training-overlay { position: fixed; inset: 0; z-index: 130; color: #f2ede3; font: 13px/1.5 system-ui, 'Microsoft YaHei', sans-serif; pointer-events: none; }
.training-overlay *, .training-overlay *::before, .training-overlay *::after { box-sizing: border-box; }
.training-overlay button, .training-overlay input, .training-overlay select, .training-overlay summary, .dyn-viewport { pointer-events: auto; }
.training-overlay button { font: inherit; cursor: pointer; color: #e5ebef; border: 1px solid #496073; background: #253847; border-radius: 7px; padding: 8px 11px; transition: background .15s, border-color .15s; }
.training-overlay button:hover:not(:disabled) { background: #355269; border-color: #8fc0f5; }
.training-overlay button:disabled { opacity: .42; cursor: default; }
.training-overlay :focus-visible { outline: 2px solid #d8b26a; outline-offset: 3px; }
.dyn-header { height: 80px; padding: 16px 30px; display: flex; align-items: center; gap: 26px; background: linear-gradient(#14232f 65%, #14232f00); pointer-events: auto; }
.dyn-header h2 { margin: 1px 0 0; font-size: 19px; font-weight: 600; letter-spacing: .06em; }
.dyn-eyebrow { color: #92b3ca; font-size: 12px; font-weight: 600; letter-spacing: .16em; }
.training-overlay .dyn-back { background: transparent; border: 0; padding: 8px 0; color: #b8c8d3; font-size: 14px; }
.dyn-back span { margin-right: 8px; font-size: 18px; }
.dyn-header > div { border-left: 1px solid #456073; padding-left: 26px; }
.dyn-engine { margin-left: auto; font-size: 13px; color: #8da7b9; letter-spacing: .12em; }
.dyn-layout { display: grid; grid-template-columns: minmax(0, 1fr) 344px; gap: 28px; height: calc(100dvh - 80px); padding: 0 26px 24px; }
.dyn-stage { min-width: 0; position: relative; display: flex; flex-direction: column; }
.dyn-intro { padding: 20px 20px 0; pointer-events: none; }
.dyn-intro h3 { font-size: clamp(24px, 2.3vw, 38px); margin: 8px 0 6px; font-weight: 500; letter-spacing: .04em; }
.dyn-intro p { margin: 0; color: #9eb3c1; font-size: 14px; }
.dyn-viewport { flex: 1; min-height: 200px; outline-offset: -5px !important; cursor: grab; touch-action: none; }
.dyn-viewport:active { cursor: grabbing; }
.dyn-model-label { display: flex; gap: 13px; align-items: center; padding: 0 20px; margin-bottom: 10px; pointer-events: none; }
.dyn-model-label strong { font-size: 14px; font-weight: 600; letter-spacing: .15em; }
.dyn-model-label span { color: #9db0bd; font-size: 13px; border-left: 1px solid #496073; padding-left: 13px; }
.dyn-stage-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 20px 12px; color: #92a9ba; font-size: 13px; }
.dyn-stage-tools i { width: 6px; height: 6px; display: inline-block; margin-right: 5px; background: #8fc0f5; border-radius: 50%; }
.training-overlay .dyn-stage-tools button { background: transparent; border: 0; font-size: 13px; padding: 0; color: #cfdae2; }
.dyn-telemetry { border: 1px solid #48607180; background: #13222ee8; border-radius: 10px; padding: 16px 20px 12px; pointer-events: auto; }
.dyn-measures { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 15px; margin-bottom: 16px; }
.dyn-measures > div > span { display: block; color: #94aebe; font-size: 13px; margin-bottom: 5px; }
.dyn-measures strong { display: block; font-size: clamp(14px, 1.4vw, 21px); font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dyn-measures small { color: #90a6b4; font-size: 13px; font-weight: 400; }
.dyn-chart-head { display: flex; justify-content: space-between; color: #839bac; font-size: 12px; margin-bottom: 4px; }
.dyn-chart-head i { display: inline-block; width: 12px; height: 2px; margin: 0 5px 3px 10px; }
.dyn-pitch { background: #8fc0f5; }.dyn-roll { background: #d8b26a; }
.dyn-chart { height: 70px; width: 100%; display: block; }
.dyn-trial-line { display: flex; justify-content: space-between; margin-top: 9px; font-size: 13px; color: #829dab; }
.dyn-trial-state { color: #c3d3dc; }.dyn-trial-state[data-state="fallen"] { color: #efb59a; }.dyn-trial-state[data-state="running"] { color: #a2cebd; }
.dyn-panel { min-width: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #4d6575 transparent; border: 1px solid #4f687a66; border-radius: 12px; background: #132330f5; pointer-events: auto; box-shadow: 0 16px 50px #0002; }
.dyn-block { padding: 17px 19px; border-bottom: 1px solid #48607055; }.dyn-block:last-child { border: 0; }
.dyn-section-title { display: flex; align-items: center; gap: 9px; margin-bottom: 13px; }
.dyn-section-title > span:first-child { font-size: 13px; color: #c1a570; font-variant-numeric: tabular-nums; }
.dyn-section-title h3 { font-size: 14px; font-weight: 600; margin: 0; letter-spacing: .08em; }
.dyn-section-title > span:last-child:not(:first-child) { margin-left: auto; color: #7896ac; font-size: 12px; }
.dyn-platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.training-overlay .dyn-platforms button { text-align: left; background: #1b2c39; padding: 10px 12px; border-color: #46607177; }
.training-overlay .dyn-platforms button[aria-pressed="true"] { border-color: #8fc0f5; background: #003f8859; box-shadow: inset 0 0 0 1px #8fc0f526; }
.dyn-platforms b { display: block; font-size: 17px; font-weight: 500; letter-spacing: .06em; }
.dyn-platforms span { color: #9cb2c1; font-size: 13px; }
.dyn-caption { color: #93aab9; font-size: 13px; line-height: 1.7; margin: 10px 0 0; }
.dyn-range { display: block; font-size: 13px; color: #cbd7df; margin-top: 13px; }
.dyn-range output { float: right; font-size: 13px; font-variant-numeric: tabular-nums; color: #a9c8e6; }
.dyn-range input { display: block; width: 100%; height: 14px; margin: 7px 0 0; accent-color: #8fc0f5; cursor: pointer; }
.dyn-field { display: flex; flex-direction: column; gap: 7px; margin-top: 14px; font-size: 13px; color: #bacbd5; }
.dyn-field select { border: 1px solid #4e687a; color: #dfe9ef; background: #213746; border-radius: 5px; padding: 7px 8px; font: inherit; }
.training-overlay .dyn-text-button { padding: 0; border: 0; background: transparent; font-size: 13px; color: #8fc0f5; margin-left: auto; }
.dyn-advanced { margin-top: 14px; color: #92aaba; font-size: 13px; }.dyn-advanced summary { cursor: pointer; }
.dyn-torques { display: grid; gap: 6px; margin-top: 15px; }.dyn-torques > div { display: grid; grid-template-columns: 64px 1fr 68px; gap: 7px; align-items: center; font-size: 12px; }
.dyn-torques i { display: block; height: 3px; background: #48607166; }.dyn-torques b { display: block; height: 3px; background: #8fc0f5; }.dyn-torques output { text-align: right; font-variant-numeric: tabular-nums; }
.dyn-actions { display: flex; gap: 8px; }.dyn-actions button { flex: 1; white-space: nowrap; font-size: 13px; }
.training-overlay .dyn-primary { color: #1b2e3d; background: #f2ede3; border-color: #f2ede3; font-weight: 600; }
.training-overlay .dyn-primary:hover:not(:disabled) { color: #102337; background: #fff9ec; border-color: #d8b26a; }
.training-overlay .dyn-impulse { display: flex; justify-content: space-between; width: 100%; border-color: #4c657266; background: transparent; font-size: 13px; padding: 7px 10px; margin-top: 8px; color: #b9ccd9; }
.dyn-impulse span { color: #d8b26a; font-variant-numeric: tabular-nums; }
.dyn-optimize > .dyn-caption { margin: -4px 0 12px; }
.dyn-status { color: #a7c4da; font-size: 13px; margin: 11px 0 0; min-height: 2.5em; line-height: 1.6; }
.dyn-progress { height: 3px; background: #405c70; margin-top: 13px; border-radius: 2px; overflow: hidden; }.dyn-progress i { display: block; width: 0; height: 100%; background: #d8b26a; transition: width .2s; }
.dyn-result { margin-top: 15px; }.dyn-result-passes { color: #94adbd; font-size: 13px; }.dyn-result-passes b { display: block; color: #f2ede3; font-size: 24px; font-weight: 400; margin-top: 4px; font-variant-numeric: tabular-nums; }.dyn-result-passes i { font-style: normal; color: #bfa66f; font-size: 18px; margin: 0 14px; }
.dyn-score-chart { width: 100%; height: 64px; display: block; margin-top: 8px; }.dyn-result-detail { color: #97adbd; font-size: 13px; line-height: 1.7; margin: 8px 0 12px; }
.dyn-learning > button { width: 100%; text-align: left; font-size: 13px; border: 0; background: transparent; padding: 0; color: #d9c18c; }.dyn-learning > button span { float: right; }
.dyn-learning details { font-size: 13px; color: #93aab9; margin-top: 13px; line-height: 1.8; }.dyn-learning summary { cursor: pointer; }.dyn-learning a { color: #8fc0f5; }
.training-mode #app > :not(canvas) { visibility: hidden !important; }
.training-mode #workshop-root { visibility: hidden !important; }
@media (max-width: 1100px) { .dyn-layout { grid-template-columns: minmax(0,1fr) 312px; gap: 14px; padding: 0 16px 16px; }.dyn-intro { padding-left: 10px; }.dyn-telemetry { padding: 12px; }.dyn-measures { gap: 10px; }.dyn-stage-tools { padding-left: 10px; padding-right: 10px; }.dyn-stage-tools > span:last-child { display: none; } }
@media (max-width: 760px) { .dyn-header { height: 66px; padding: 10px 16px; gap: 18px; }.dyn-header > div { padding-left: 18px; }.dyn-header h2 { font-size: 16px; }.dyn-engine { display: none; }.dyn-layout { display: flex; flex-direction: column; overflow-y: auto; height: calc(100dvh - 66px); gap: 16px; padding: 0 12px 20px; pointer-events: auto; }.dyn-stage { flex: none; height: auto; }.dyn-viewport { flex: none; min-height: 280px; height: 280px; }.dyn-intro { padding: 12px 6px 0; }.dyn-intro h3 { font-size: 24px; }.dyn-panel { flex: none; overflow: visible; }.dyn-measures { grid-template-columns: repeat(3,minmax(0,1fr)); row-gap: 12px; margin-bottom: 12px; }.dyn-measures strong { font-size: 17px; }.dyn-measures > div > span { font-size: 12px; }.dyn-model-label { padding-left: 6px; }.dyn-model-label span { font-size: 12px; }.dyn-model-label strong { font-size: 14px; }.dyn-telemetry { background: #13222ff5; }.dyn-block { padding: 17px; }.dyn-stage-tools { padding-left: 6px; }.dyn-trial-line { font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { .training-overlay button,.dyn-progress i { transition: none; } }

/* Workbench / learning loop. The model keeps a dedicated, unobstructed frame. */
.lab-modes{display:flex;gap:6px;margin-left:auto;pointer-events:auto}
.lab-modes button[aria-pressed="true"]{background:#003f88;border-color:#8fc0f5;color:#fff}
.dyn-layout{grid-template-columns:minmax(0,1fr) 390px;gap:22px}
.dyn-intro{padding:10px 12px 0}.dyn-intro h3{font-size:clamp(23px,2vw,32px);margin:6px 0}
.dyn-intro p{font-size:14px;line-height:1.7;max-width:800px}
.lab-tasks{display:flex;gap:6px;flex-wrap:wrap;margin-top:13px;pointer-events:auto}
.lab-tasks button{font-size:14px;padding:6px 12px;background:#172e40;border-color:#496d89}
.lab-tasks button[aria-pressed="true"]{background:#003f88;border-color:#8fc0f5}
.lab-target{font-size:13px;color:#d8b26a;margin:9px 0 0;line-height:1.5}
.dyn-stage>.dyn-experiment{border:1px solid #52718c66;border-radius:9px;background:#142936ee;padding:10px 14px;margin:0 0 10px;pointer-events:auto}
.dyn-stage>.dyn-experiment>.dyn-actions{max-width:440px;margin:auto}
.dyn-stage>.dyn-experiment .dyn-impulse{border:0;margin:4px auto 0;max-width:440px;padding:4px 0}
.lab-feedback{pointer-events:auto;background:#13334ce8;border-left:3px solid #d8b26a;padding:9px 13px;margin-bottom:12px;font-size:14px;border-radius:0 6px 6px 0}
.lab-feedback b{color:#f2ede3}.lab-feedback p{color:#bacddc;margin:4px 0;line-height:1.6}.lab-feedback>span{color:#8fc0f5;font-size:13px}
.dyn-measures{margin-bottom:9px}.dyn-telemetry{padding:12px 16px 9px}.dyn-chart{height:52px}.dyn-chart-head{font-size:13px}.dyn-measures>div>span{font-size:13px}
.dyn-section-title h3{font-size:14px}.dyn-section-title>button{font-size:13px;padding:3px 5px;margin-left:auto}
.dyn-caption,.dyn-advanced,.dyn-status,.dyn-learning details,.dyn-result-detail{font-size:14px}
.dyn-range{font-size:14px}.dyn-range small{display:block;color:#8eaabe;font-size:13px;line-height:1.6;margin-top:4px}.dyn-range input{height:19px}
.dyn-actions button{font-size:14px}.dyn-platforms span{font-size:13px}.dyn-block{padding:15px 18px}
.lab-section-kicker{font-size:13px;color:#d8b26a;letter-spacing:.12em}
.lab-bench h3,.lab-notebook h3{font-size:19px;font-weight:500;margin:7px 0}.lab-muted{font-size:14px;line-height:1.7;color:#9bb6c8}
.bench-progress{display:grid;gap:7px;font-size:14px;color:#d8b26a;margin:15px 0}
.bench-progress progress{width:100%;height:6px;accent-color:#8fc0f5}
.bench-routes{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:12px 0}
.bench-routes button{padding:8px;text-align:left;background:#1b3244}.bench-routes button:last-child{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between}
.bench-routes b{font-size:14px;display:block;font-weight:500}.bench-routes small{font-size:13px;color:#a8bfd0;display:block;margin-top:3px}
.bench-routes button[aria-pressed="true"]{background:#003f88;border-color:#8fc0f5}
.bench-complete{padding:12px;border:1px solid #d8b26a77;background:#35403455;border-radius:7px;margin-top:14px}.bench-complete b{color:#e9d3a7;font-size:14px}.bench-complete p{font-size:14px;color:#c2d4df;line-height:1.7}.bench-complete button{width:100%}
.bench-parts{display:grid;grid-template-columns:1fr 1fr;gap:5px}
.bench-parts button{font-size:13px;text-align:left;padding:7px 8px;border-radius:5px;background:#1c3345}
.bench-parts button[aria-pressed="true"]{background:#003f88;border-color:#8fc0f5;color:#fff}
.bench-selected{border-left:2px solid #8fc0f5;padding:10px 12px;background:#003f882b;margin:14px 0}
.bench-selected b{font-size:14px}.bench-selected p{font-size:14px;line-height:1.7;color:#a9c2d4;margin:5px 0 0}
.bench-socket{margin-bottom:10px}.bench-feedback{font-size:14px;line-height:1.7;color:#d8b26a;min-height:3em}
.bench-check{border-top:1px solid #49647b66;padding-top:10px}.bench-check h4{font-size:14px;font-weight:500;margin:4px 0}.bench-check>button{margin-top:12px;width:100%}
.bench-handoff{display:grid;gap:8px;margin-top:18px}.bench-handoff>span{font-size:13px}
.lab-record{border:1px solid #49667e;background:#18344a;border-radius:7px;padding:12px;margin:12px 0;font-size:14px}
.lab-loading{position:absolute;left:50%;top:43%;transform:translate(-50%,-50%);width:min(340px,86%);padding:18px;background:#102b40f5;border:1px solid #496d89;border-radius:9px;text-align:center;pointer-events:auto;z-index:4;font-size:14px}.lab-loading p{margin:0 0 9px;line-height:1.6}
.lab-record p{color:#c1d4e1;margin:6px 0}.lab-record small{color:#9ab6ca;display:block;margin-bottom:9px}.lab-records{line-height:1.65}
.lab-replay{font-size:13px;border-top:1px solid #48607166;margin-top:6px;padding-top:6px;display:flex;align-items:center;gap:12px}.lab-replay label{flex:1;color:#d8b26a}.lab-replay input{width:100%;accent-color:#8fc0f5}.lab-replay button{font-size:13px}
.training-overlay[data-mode="assembly"] .dyn-viewport{min-height:320px}
.training-overlay[data-mode="assembly"] .dyn-stage-tools>span:first-child{visibility:visible}
.bench-inventory summary{font-size:14px;color:#c3d8e8;margin:12px 0 8px;cursor:pointer}.bench-inventory summary small{color:#8ba9bf;font-size:13px;margin-left:5px}
.bench-parts button[data-ready="true"]{border-color:#d8b26a99}.bench-parts button[data-installed="true"]{color:#9fb9ca}
.bench-parts button[aria-pressed="true"]{color:#fff}
.bench-dock{position:sticky;bottom:0;background:#142b3af5;border-top:1px solid #597a9166;z-index:2;padding:1px 0 3px;margin:10px 0 0;box-shadow:0 -10px 18px #142b3a55}
.bench-selected{margin:8px 0;padding:8px 10px}.bench-selected p{font-size:13px;line-height:1.65}.bench-feedback{margin:7px 0 4px;min-height:2.8em}
.bench-dock .dyn-field{margin-top:6px}.bench-dock .dyn-actions button{min-height:39px}.bench-check{margin-top:14px}
@media(min-width:1400px){.bench-parts{grid-template-columns:repeat(3,minmax(0,1fr))}.bench-parts button{min-height:44px;font-size:13px;padding:6px}}
.training-overlay a{pointer-events:auto}
@media(max-width:1100px){.dyn-layout{grid-template-columns:minmax(0,1fr) 340px;gap:12px}.dyn-header{padding:12px 18px;gap:16px}.dyn-header>div{padding-left:16px}.lab-modes button{padding:7px 9px;font-size:14px}.lab-feedback{font-size:13px}.dyn-intro h3{font-size:24px}}
@media(max-width:760px){.dyn-header{height:108px;flex-wrap:wrap;gap:5px 14px;padding:10px 14px}.lab-modes{width:100%;margin:0;justify-content:center}.lab-modes button{flex:1}.dyn-layout{height:calc(100dvh - 108px);display:flex}.dyn-intro{padding:8px 4px 0}.dyn-viewport{height:280px;min-height:280px}.training-overlay[data-mode="assembly"] .dyn-viewport{height:330px;min-height:330px}.lab-tasks{gap:4px}.lab-tasks button{font-size:13px;padding:6px 8px}.lab-feedback{font-size:14px}.dyn-panel{width:100%}.dyn-model-label{flex-wrap:wrap;gap:5px}.dyn-intro p{font-size:14px}.dyn-header h2{font-size:17px}.bench-dock{position:static}}
