/* Learning: one typography system, responsive modules, explicit connection gutters. */
#workspace{padding-top:var(--section-gap);scroll-margin-top:10px;--learning:#487599;--contract:#487599;--control:#39877d}
.learning-stage-rail{grid-column:1/-1;position:relative;z-index:2;padding:20px 22px;border:1px solid #dbe3e9;border-radius:14px;background:#fff}
.learning-stage-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:16px}.learning-stage-heading h3{font-size:22px;line-height:1.3;margin:4px 0 5px;color:#2d3c48}.learning-stage-heading p{margin:0;color:#697783;font-size:13px;line-height:1.5}.learning-stage-count{flex:0 0 auto;border:1px solid #dce5eb;border-radius:999px;padding:5px 9px;color:#668099;font-size:11px;white-space:nowrap}
.learning-stage-rail ol{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:6px;padding:0;margin:0;list-style:none}.learning-stage-rail li{min-width:0}.learning-stage-rail button{width:100%;height:100%;min-height:74px;display:flex;flex-direction:column;align-items:flex-start;gap:3px;text-align:left;padding:9px 8px;border:1px solid #e2e8ed;border-radius:8px;background:#f8fafb;color:#415466;cursor:pointer}.learning-stage-rail button:hover,.learning-stage-rail li.active button{border-color:#8daac0;background:#eef5f9;box-shadow:inset 0 2px #487599}.learning-stage-rail button>span{font-size:10px;color:#6485a0;font-weight:700;letter-spacing:.5px}.learning-stage-rail button strong{font-size:11px;line-height:1.25;font-weight:600}.learning-stage-rail button small{font-size:10px;line-height:1.3;color:#788793}.learning-stage-detail{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;margin-top:13px;padding:10px 12px;border-radius:8px;background:#f3f7fa;border:1px solid #dfe8f0}.learning-stage-detail-kicker{font-size:10px;color:#487599;letter-spacing:.6px;font-weight:600;white-space:nowrap}.learning-stage-detail p{margin:0;font-size:12px;line-height:1.45;color:#4a5258}.learning-stage-detail-output{font-size:10px;color:#79828a;text-align:right}.learning-demo-meta{display:block;color:#7c8b96;font-size:10px;line-height:1.4;margin-top:8px;text-align:center}
@media(max-width:1100px){.learning-stage-rail ol{grid-template-columns:repeat(5,minmax(0,1fr))}.learning-stage-detail{grid-template-columns:1fr}.learning-stage-detail-output{text-align:left}}
@media(max-width:999px){.learning-stage-rail{width:100%;box-sizing:border-box}.learning-stage-rail ol{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:520px){.learning-stage-rail{padding:16px 12px}.learning-stage-heading{display:block}.learning-stage-count{display:inline-block;margin-top:8px}.learning-stage-rail ol{grid-template-columns:repeat(2,minmax(0,1fr))}.learning-stage-rail button{min-height:68px}.learning-stage-heading h3{font-size:20px}}
.learning-heading{display:flex;justify-content:space-between;align-items:center;gap:24px}.learning-heading h2{font-size:32px;color:var(--learning,#a3835c);margin:8px 0}.learning-status{display:flex;justify-content:space-between;gap:16px;font-size:12px;color:#687783;margin:14px 0 24px}
.learning-board{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:52px 80px;align-items:start}.learning-module{position:relative;z-index:1;min-width:0}.module-kicker{font-size:12px;letter-spacing:1.2px;color:#738393;margin-bottom:8px}.learning-module h3,#demo-module .module-title{font-size:22px;line-height:1.3;letter-spacing:-.5px;font-weight:600;margin:0 0 18px}.module-title{font-size:16px;font-weight:600;line-height:1.5}.task-name{font-size:14px}.inner-module,.skill-lane{border:1px solid #dce4ea;border-radius:12px;padding:20px;background:#fff}.micro-note,.coarse-meta,.refinement-title>span{font-size:12px;color:#677785}
#demo-module{grid-column:1/-1;padding:18px 20px;border:1px solid #dbe5ed;background:#f3f7fa;border-radius:14px;display:grid;grid-template-columns:1fr auto;gap:0 20px;align-items:center}#demo-module .module-kicker{grid-column:1/-1}#demo-module .module-title{margin-bottom:0}#mini-episodes{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:18px}.mini-episode{min-width:0;background:white;border:1px solid #dde5ec;border-radius:10px;padding:12px}.mini-episode.focus{border-color:#86a7c1;box-shadow:0 2px 10px #48759910}.demo-video-label{display:flex;flex-direction:column;gap:3px;margin-bottom:12px}.demo-video-label strong{font-size:14px;color:#324c62}.demo-video-label span{font-size:12px;color:#697b8c}.episode-views{display:grid;grid-template-columns:1fr 1.6fr 1fr;gap:6px;align-items:center}.episode-views figure{margin:0;min-width:0}.demo-inline-video{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:contain;border-radius:5px;background:#e9eef1}.episode-views figcaption{font-size:12px;text-align:center;color:#657583;margin-top:6px;line-height:1.3}.episode-controls{display:flex;align-items:center;gap:10px;font-size:12px;margin-top:12px;color:#6b7a85}.episode-controls button{padding:4px 10px;border:1px solid #ccd9e3;border-radius:5px;background:#f4f8fb;font-size:12px;min-width:58px}.episode-play-state{margin-left:auto}.episode-focus{grid-column:1/-1;font-size:12px;color:#487599;display:flex;gap:12px;margin-top:12px}.episode-focus span{color:#6b7b86}
#parsing-module{grid-column:1;grid-row:2}#skills-module{grid-column:2;grid-row:2}.coarse-meta{display:flex;justify-content:space-between;gap:12px;margin:10px 0}.coarse-film{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}.coarse-film img{display:block;width:100%;aspect-ratio:4/3;object-fit:contain;border-radius:4px}.coarse-tracks>div{display:flex;gap:7px;align-items:center;margin-top:7px}.coarse-tracks span{font-size:12px;color:#6385a1;width:10px}.coarse-tracks svg{width:calc(100% - 17px);height:28px;overflow:visible}.coarse-tracks path{fill:none;stroke:#648bab;stroke-width:1.3;vector-effect:non-scaling-stroke}.coarse-tracks line{stroke:#8aa8c1;stroke-width:1;vector-effect:non-scaling-stroke;stroke-dasharray:2 3}.coarse-clips{display:flex;gap:3px;margin:10px 0}.coarse-clips button{min-width:9px;overflow:hidden;background:#e6edf4;color:#50728f;border-radius:2px;padding:3px 0;font-size:10px;height:23px}.micro-note{display:block;margin-top:8px}.inner-flow{height:46px;position:relative;display:flex;align-items:center;justify-content:center;pointer-events:none}.inner-flow span{position:relative;left:0;transform:translateX(58%);max-width:45%;font-size:12px;color:#487599;background:#fafaf8;padding:2px 5px;line-height:1.3}.reasoning-module{display:flex;align-items:center;gap:14px;min-height:86px;background:#f1f5f8;border-color:#d4dfe8}.reasoning-symbol{font-size:28px;color:#487599}.reasoning-module strong{font-size:16px}.reasoning-module small{display:block;font-size:12px;color:#6a7e8e;margin-top:5px}.refinement-title{display:flex;justify-content:space-between;gap:12px;align-items:center;font-size:16px}.semantic-phases{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:16px 0}.semantic-phases button{padding:10px 3px;border:1px solid #dce3e9;border-radius:7px;background:#f8fafc;color:#487599;min-width:0;line-height:1.5}.semantic-phases small{font-size:12px;font-weight:600;display:block}.semantic-phases span{font-size:14px;display:block}.semantic-phases [aria-pressed=true]{background:#e5edf4;border-color:#8ba6bc}.semantic-phases .generated-phase{box-shadow:inset 0 -2px #8ba6bc}.inline-contract{border-top:1px solid #dfe7ed;padding-top:14px}.contract-mini-heading{font-size:14px;color:#487599;line-height:1.5}.contract-mini-heading b{font-weight:500}.inline-contract dl{display:grid;grid-template-columns:65px minmax(0,1fr);gap:8px 12px;margin:12px 0 0;font-size:14px;line-height:1.5}.inline-contract dt{color:#78818b}.inline-contract dd{margin:0;color:#434950;overflow-wrap:anywhere}
.skill-lane{background:#f3f7fb;border-color:#d6e3ed;margin-bottom:20px}.control-lane{background:#f2f7f5;border-color:#d5e4de}.lane-inputs{display:flex;gap:8px;margin:16px 0}.routed-phase{flex:1;display:flex;align-items:center;gap:8px;min-width:0;padding:8px;border:1px solid #dce5ed;background:white;border-radius:7px;text-align:left}.routed-phase img{width:40px;aspect-ratio:4/3;object-fit:contain;border-radius:3px}.routed-phase span{font-size:14px;line-height:1.5}.routed-phase small{display:block;font-size:12px;font-weight:600;color:#4c78a8}.lane-flow{text-align:center;font-size:12px;color:#6d8191;margin:12px 0}.lane-flow:after{content:'↓';display:block;font-size:18px;margin:5px}.model-block{display:grid;grid-template-columns:70px minmax(0,1fr);column-gap:14px;padding:16px;border-radius:9px;background:#e8eff7;align-items:center}.model-block svg{width:70px;grid-row:span 2;fill:#7698b5;stroke:#7698b5;stroke-width:1}.model-block strong{font-size:16px;color:#4b7396;line-height:1.5}.model-block span{font-size:12px;color:#667e93}.skill-output{display:flex;align-items:center;gap:12px;padding-top:14px;margin-top:16px;border-top:1px solid #dce5eb;color:#4c78a8}.skill-output>span{font-size:30px}.skill-output small{display:block;font-size:12px;letter-spacing:.5px;margin-bottom:3px}.skill-output strong{font-size:14px;line-height:1.5}.skill-output svg{width:48px;height:32px;fill:#fff;stroke:#39877d;stroke-width:2}.control-lane .skill-output{color:#39877d;border-color:#d5e4dd}.control-pipeline{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 0;color:#39877d;font-size:16px}.control-pipeline small{font-size:12px;color:#65827a;display:block;margin-top:5px}.control-pipeline i{font-style:normal}.home-route{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 20px;background:#f2f7f5;border:1px solid #d5e4de;border-radius:10px;color:#39877d;font-size:14px;line-height:1.5}.home-route strong{font-weight:600}.home-route i{font-style:normal}.selected-route{box-shadow:0 0 0 2px #799bb312}.flow-active{outline:2px solid #91b1ca55;outline-offset:4px}
.learning-connections{position:absolute;top:0;left:0;width:100%;overflow:visible;pointer-events:none;z-index:0}.canvas-flow-path{fill:none;stroke-width:1.5;opacity:.7;stroke-linejoin:round;stroke-linecap:round}.canvas-flow-energy{fill:none;stroke-width:2;stroke-dasharray:4 14}.learning-travel{position:absolute;left:0;top:0;z-index:4;pointer-events:none;opacity:0}.learning-travel span{display:block;transform:translate(-50%,-50%);border:1px solid currentColor;border-radius:5px;background:#fff;padding:5px 8px;white-space:nowrap;font-size:12px;box-shadow:0 3px 9px #31455915}.learning-delivery{position:relative;z-index:1;justify-self:center;text-align:center;font-size:12px;background:#fafaf8;color:#487599;padding:4px 10px;max-width:90%}.learning-delivery>span{display:none}#parsing-delivery{grid-column:1;grid-row:3}#skills-delivery{grid-column:2;grid-row:3;color:#39877d}.learning-footnote{display:flex;justify-content:space-between;gap:20px;margin-top:18px;font-size:12px;line-height:1.5;color:#69757f}.learning-footnote>*{max-width:46%;background:#fafaf8;position:relative;z-index:1}.tour-track{margin-top:16px}.motion-off .canvas-flow-energy{display:none}.situation-bridge-label{position:relative;z-index:1;display:table;margin:0 auto 12px;background:#fafaf8}.situation-section{position:relative}.learning-module div.module-title,.learning-module div.reasoning-module{cursor:default}
@media(min-width:1000px) and (max-width:1350px){.routed-phase{flex-direction:column;align-items:flex-start}.routed-phase img{width:48px}.inner-module,.skill-lane{padding:18px}.episode-views{gap:4px}}
@media(max-width:999px){.learning-board{display:flex;flex-direction:column;gap:52px;padding:0 12px}.learning-module{width:100%}.learning-delivery{display:none}.learning-heading{flex-wrap:wrap}.learning-footnote{flex-direction:column}.learning-footnote>*{max-width:100%}#mini-episodes{grid-template-columns:1fr}.demo-video-label{flex-direction:row;justify-content:space-between}.episode-views{gap:10px}.episode-views figure{max-width:100%}.learning-section .wrap{width:auto}.inner-flow span{font-size:12px}.episode-focus{flex-wrap:wrap}.home-route{flex-wrap:wrap}}
@media(max-width:520px){.learning-heading h2{font-size:32px}.learning-status{flex-direction:column;gap:5px}#demo-module{padding:18px;grid-template-columns:1fr}#demo-module .task-name{margin-top:8px}#mini-episodes{margin-top:16px;gap:16px}.demo-video-label{flex-direction:column}.episode-views{gap:4px}.episode-views figcaption{font-size:12px;min-height:32px}.episode-controls{gap:8px;flex-wrap:wrap}.learning-board{padding:0 8px}.inner-module,.skill-lane{padding:18px}.semantic-phases{gap:3px}.semantic-phases span{font-size:14px;overflow-wrap:anywhere}.routed-phase{flex-direction:column;align-items:flex-start;padding:7px}.routed-phase img{width:38px}.routed-phase span{font-size:14px;overflow-wrap:anywhere}.model-block{grid-template-columns:1fr;gap:8px}.inline-contract dl{grid-template-columns:48px minmax(0,1fr);column-gap:8px}.refinement-title{flex-wrap:wrap}.inner-flow{height:62px}.inner-flow span{transform:translateX(58%);max-width:46%}.control-pipeline{flex-wrap:wrap}.coarse-meta{flex-wrap:wrap}.learning-heading .play-controls{flex-wrap:wrap}.module-kicker{letter-spacing:.8px}}
/* Focused demonstration gallery: quiet side previews, selected card in front. */
#demo-module{background:transparent;border:0;padding:8px 0 0;border-radius:0}
#mini-episodes{display:block;position:relative;height:340px;margin:30px 0 12px;perspective:1200px;isolation:isolate}
#mini-episodes .mini-episode{position:absolute;left:50%;top:50%;width:68%;margin:0;padding:14px;background:#fff;border:1px solid #dce4ea;border-radius:14px;cursor:default;transform-origin:center;transition:transform .72s cubic-bezier(.22,.68,.2,1),opacity .72s,filter .72s,box-shadow .72s;box-shadow:0 8px 22px #26374518;overflow:hidden}
#mini-episodes .mini-episode[data-position=center]{transform:translate(-50%,-50%);z-index:3;opacity:1;filter:none;box-shadow:0 18px 42px #26374528}
#mini-episodes .mini-episode[data-position=center] .demo-task,#mini-episodes .mini-episode[data-position=center] .learning-demo-meta{position:relative;z-index:4;transform:translateZ(0)}
#mini-episodes .mini-episode[data-position=left]{transform:translate(-85%,-50%) scale(.65) rotateY(10deg);z-index:1;opacity:.43;filter:saturate(.5)}
#mini-episodes .mini-episode[data-position=right]{transform:translate(-15%,-50%) scale(.65) rotateY(-10deg);z-index:1;opacity:.43;filter:saturate(.5)}

#mini-episodes .episode-views{gap:12px;pointer-events:none}
#mini-episodes figcaption{font-size:12px;color:#82909b}
#mini-episodes .mini-episode:not(.focus) figcaption{opacity:0}
#mini-episodes .mini-episode:focus-visible{outline:3px solid #487599;outline-offset:4px}
#demo-module.flow-active{outline:none}
@media(min-width:1600px){#mini-episodes{height:370px}}
@media(max-width:1100px){#mini-episodes{height:285px}#mini-episodes .mini-episode{padding:10px;width:72%}#mini-episodes .episode-views{gap:6px}}
@media(max-width:999px){#mini-episodes{height:310px}#demo-module{padding:8px 0}.learning-board{padding:0 12px}}
@media(max-width:520px){#mini-episodes{height:180px;margin-top:20px}#mini-episodes .mini-episode{width:78%;padding:6px;border-radius:9px}#mini-episodes .mini-episode[data-position=left]{transform:translate(-80%,-50%) scale(.68) rotateY(8deg)}#mini-episodes .mini-episode[data-position=right]{transform:translate(-20%,-50%) scale(.68) rotateY(-8deg)}#mini-episodes .episode-views{gap:3px}#mini-episodes figcaption{display:none}}
@media(prefers-reduced-motion:reduce){#mini-episodes .mini-episode{transition:none}}
.motion-off #mini-episodes .mini-episode{transition:none}

#mini-episodes .demo-task{font-size:15px;line-height:1.4;text-align:right;margin:0 2px 12px auto;max-width:100%;color:#425968;font-weight:500;pointer-events:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-rendering:geometricPrecision;-webkit-font-smoothing:antialiased}#mini-episodes .demo-task strong{color:#1f394d;font-weight:700}#mini-episodes .learning-demo-meta{color:#4d6574;font-size:12px;font-weight:500;line-height:1.4;text-rendering:geometricPrecision;-webkit-font-smoothing:antialiased}#mini-episodes .mini-episode:not(.focus) .demo-task{visibility:hidden}@media(max-width:520px){#mini-episodes .demo-task{font-size:12px;margin:0 2px 7px auto}}

.learning-packets{position:absolute;inset:0;pointer-events:none;z-index:4}.motion-off .learning-packets{display:none}

.vla-original-art{display:block;width:100%;max-width:560px;height:auto;margin:20px auto;object-fit:contain}.vla-original-note{text-align:center;font-size:12px;color:#6b6b6b;margin:8px 0 16px}

/* Native VLA diagram and phase-to-model inputs. */
#vla-lane{position:relative;isolation:isolate}
#vla-inputs{gap:12px;margin:18px 0 0}
#vla-inputs .routed-phase{display:flex;flex-direction:column;align-items:stretch;gap:0;padding:0;overflow:hidden;background:#fff;border-radius:8px}
#vla-inputs .routed-phase img{display:block;width:100%;height:auto;aspect-ratio:16/10;object-fit:contain;background:#edf2f6;border-radius:0}
#vla-inputs .routed-phase>span{display:block;padding:10px 8px;border-top:1px solid #d6e3ed;font-size:14px;line-height:1.5}
#vla-inputs .routed-phase small{display:inline;color:#4c78a8;font-size:14px;font-weight:600;margin-right:6px}
.vla-input-description{font-size:12px;color:#6b7782;text-align:center;margin:42px 0 12px}
.vla-native-model{margin:0 0 48px 30px}
.vla-native-model .vla-original-art{display:block;width:100%;max-width:none;height:auto;margin:0;overflow:visible;font-family:inherit}
.vla-input-connections{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:-1;overflow:visible}
.vla-input-wire{fill:none;stroke:#4c78a8;stroke-width:1.5;stroke-linejoin:round;stroke-linecap:round}
.vla-input-dot{fill:#4c78a8}.motion-off .vla-input-dot{display:none}
@media(prefers-reduced-motion:reduce){.vla-input-dot{display:none}}
@media(max-width:520px){#vla-inputs{gap:6px}#vla-inputs .routed-phase>span{padding:8px 5px}.vla-native-model{margin-left:22px}}

/* Phase demonstrations feed the model from below. */
.vla-native-model{margin:24px 0 0}
#vla-inputs{margin:54px 0 0}
.vla-input-description{position:relative;z-index:1;display:table;background:#f3f7fb;margin:12px auto -28px;padding:0 8px}
.vla-original-note{margin-top:16px}
@media(max-width:520px){.vla-native-model{margin-left:0}}

.vla-input-description{margin:12px auto 0}

#vla-lane>.module-title{color:#426D91;font-weight:600}

/* Learning typography follows the site's section hierarchy. */
#workspace .learning-heading h2{font-size:36px;line-height:1.2;margin-top:13px}
#workspace .learning-module h3,#workspace #demo-module .module-title{font-size:26px;line-height:1.3}
#workspace .module-title,#workspace .reasoning-module strong,#workspace .refinement-title{font-size:18px;line-height:1.5}
#workspace .semantic-phases span,#workspace .contract-mini-heading,#workspace .inline-contract dl,#workspace .routed-phase span,#workspace #vla-inputs .routed-phase>span,#workspace .skill-output strong{font-size:16px;line-height:1.5}
#workspace .inline-contract dl{grid-template-columns:72px minmax(0,1fr);gap:10px 14px}
#workspace .module-kicker,#workspace .micro-note,#workspace .coarse-meta,#workspace .refinement-title>span,#workspace .reasoning-module small,#workspace .semantic-phases small,#workspace .skill-output small,#workspace .control-pipeline small,#workspace .learning-status,#workspace .learning-footnote,#workspace .learning-delivery{font-size:13px;line-height:1.5}
#workspace #vla-inputs .routed-phase small{font-size:14px}
#workspace .control-pipeline{font-size:18px}
#workspace .inner-module,#workspace .skill-lane{padding:24px}
#workspace .inner-flow{height:54px}
#workspace .reasoning-module{min-height:96px}
#workspace .coarse-meta{flex-wrap:wrap}
@media(max-width:1100px){#workspace .learning-module h3,#workspace #demo-module .module-title{font-size:24px}#workspace .inner-module,#workspace .skill-lane{padding:20px}}
@media(max-width:800px){#workspace .learning-heading h2{font-size:31px}}
@media(max-width:520px){#workspace .learning-heading h2{font-size:29px}#workspace .learning-module h3,#workspace #demo-module .module-title{font-size:22px}#workspace .inner-module,#workspace .skill-lane{padding:18px}#workspace .inline-contract dl{grid-template-columns:60px minmax(0,1fr);gap:10px}#workspace #vla-inputs .routed-phase>span{font-size:14px}#workspace .semantic-phases span{font-size:14px}}

/* Five visible learning stages replace the old internal nine-step rail. */
#workspace .learning-stage-rail{grid-column:1/-1;padding:22px 24px;background:#fff;border-color:#dbe3e9}
#workspace .learning-stage-rail ol{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
#workspace .learning-stage-rail button{min-height:86px;padding:11px 10px}
#workspace .learning-stage-rail li.active button{box-shadow:inset 0 3px #487599;border-color:#8ba6bc;background:#f3f7fa}
#workspace .learning-stage-rail li.active button>span{color:#487599}
.learning-stage-focus{outline:2px solid #48759944;outline-offset:5px;transition:outline-color .2s,box-shadow .2s}
#demo-module.learning-stage-focus{outline:0!important;outline-offset:0}
#workspace #parsing-module{grid-column:1/-1;grid-row:2}
#workspace #learning-graph-preview{grid-row:3}
#workspace #skills-module{grid-column:1/-1;grid-row:4}
#coarse-module{position:relative}.coarse-signal-panel{position:relative}.coarse-clips button{position:relative;transition:background .15s,color .15s,transform .15s}.coarse-clips button span{display:block}
.phase-analysis-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-bottom:10px;border-bottom:1px solid #dfe7ed}.phase-analysis-heading small{display:block;font-size:10px;letter-spacing:.8px;color:#487599}.phase-analysis-heading h4{font-size:18px;line-height:1.4;margin:4px 0 0;color:#30373c}.phase-analysis-heading>span{padding:4px 7px;border-radius:5px;background:#edf1f5;color:#487599;font-size:10px;white-space:nowrap}.phase-analysis-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0 0;padding-top:13px;border-top:1px solid #dfe7ed}.phase-analysis-facts div{min-width:0}.phase-analysis-facts dt{font-size:9px;letter-spacing:.7px;text-transform:uppercase;color:#8a949d}.phase-analysis-facts dd{font-size:11px;line-height:1.5;color:#474e54;margin:5px 0 0;overflow-wrap:anywhere}
#learning-graph-preview{grid-column:1/-1;position:relative;z-index:1;border:1px solid #d4dfe8;border-radius:12px;padding:22px 24px;background:#fbfdfe}.learning-graph-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.learning-graph-heading h3{font-size:22px;line-height:1.3;margin:4px 0}.learning-graph-heading p{font-size:12px;line-height:1.5;color:#647987;margin:0;max-width:650px}.learning-graph-stats{display:flex;gap:8px;flex-shrink:0}.learning-graph-stats span{display:grid;gap:2px;min-width:58px;padding:7px 8px;border:1px solid #dce5ed;border-radius:7px;text-align:center;color:#7b8791;font-size:9px}.learning-graph-stats strong{font-size:17px;color:#487599;font-weight:600}
.graph-processing-flow{display:grid;grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr) 24px minmax(0,1fr);align-items:stretch;gap:8px;margin-top:20px}.graph-processing-step{display:flex;gap:12px;min-width:0;padding:15px;border:1px solid #d9e3eb;border-radius:10px;background:#fff}.graph-processing-index{display:grid;place-items:center;flex:0 0 29px;width:29px;height:29px;border-radius:50%;background:#487599;color:#fff;font-size:10px;font-weight:700;letter-spacing:.4px}.graph-processing-copy{min-width:0}.graph-processing-copy>small{display:block;color:#487599;font-size:9px;font-weight:700;letter-spacing:1px}.graph-processing-copy h4{margin:5px 0 5px;color:#304451;font-size:14px;line-height:1.3}.graph-processing-copy p{margin:0;color:#647987;font-size:11px;line-height:1.45}.graph-processing-stats{display:flex;flex-wrap:wrap;gap:5px;margin-top:13px}.graph-processing-stats span{padding:4px 7px;border-radius:999px;background:#eff3f6;color:#667480;font-size:9px;white-space:nowrap}.graph-processing-stats strong{color:#315f86;font-size:13px}.graph-processing-timeline{border-color:#cddfeb;background:#fbfdff}.graph-processing-timeline .graph-processing-index{background:#4c78a8}.graph-processing-timeline .graph-processing-copy>small,.graph-processing-timeline .graph-processing-stats strong{color:#4c78a8}.graph-processing-timeline .graph-processing-stats span{background:#edf4f9;color:#527591}.graph-processing-merge{border-color:#d4dfe8;background:#fbfdfe}.graph-processing-branch{border-color:#d5e5df;background:#fbfdfc}.graph-processing-branch .graph-processing-index{background:#39877d}.graph-processing-branch .graph-processing-copy>small,.graph-processing-branch .graph-processing-stats strong{color:#39877d}.graph-processing-branch .graph-processing-stats span{background:#eaf5f1;color:#4c8279}.graph-processing-connector{display:grid;place-items:center;align-self:center;color:#9fb1c0;font-size:19px;font-style:normal}.graph-processing-output{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:14px;padding:13px 15px;border:1px solid #d4dfe8;border-radius:9px;background:#f5f8fb}.graph-processing-output>div:first-child{min-width:0}.graph-processing-output .module-kicker{display:block;color:#487599;font-size:9px;letter-spacing:1px}.graph-processing-output strong{display:block;margin-top:3px;color:#3b4955;font-size:14px}.graph-processing-output p{margin:3px 0 0;color:#647987;font-size:11px;line-height:1.4}.graph-processing-output-stats{display:flex;gap:12px;flex-shrink:0}.graph-processing-output-stats span{display:grid;gap:1px;min-width:45px;text-align:center}.graph-processing-output-stats strong{margin:0;color:#487599;font-size:18px}.graph-processing-output-stats small{color:#6b7e8e;font-size:9px}
@media(max-width:900px){#workspace .learning-stage-rail ol{grid-template-columns:repeat(3,minmax(0,1fr))}.phase-analysis-facts{grid-template-columns:1fr}.learning-graph-heading{display:block}.learning-graph-stats{margin-top:12px}.learning-graph-stats span{display:inline-grid}.graph-processing-flow{grid-template-columns:1fr;gap:8px}.graph-processing-connector{transform:rotate(90deg);height:18px}}
@media(max-width:520px){#workspace .learning-stage-rail{padding:18px 14px}#workspace .learning-stage-rail ol{grid-template-columns:repeat(2,minmax(0,1fr))}.learning-stage-heading h3{font-size:20px}.phase-analysis-heading h4{font-size:16px}.learning-graph-heading h3{font-size:20px}#learning-graph-preview{padding:18px 14px}.graph-processing-output{display:block}.graph-processing-output-stats{margin-top:12px;justify-content:flex-start}.graph-processing-output-stats span{text-align:left}}

/* Compact phase cards aligned directly with the VLA input body. */
#workspace #vla-inputs{gap:8px;max-width:100%;align-items:stretch}
#workspace #vla-inputs .routed-phase img{aspect-ratio:4/3}
#workspace #vla-inputs .routed-phase>span{font-size:14px;padding:8px 6px;line-height:1.4}
#workspace #vla-inputs .routed-phase small{font-size:12px;margin-right:4px}
@media(max-width:520px){#workspace #vla-inputs{gap:4px}#workspace #vla-inputs .routed-phase>span{font-size:12px;padding:6px 3px}#workspace #vla-inputs .routed-phase small{font-size:11px}}

/* Desktop Learning canvas: demonstrations above, parsing and skill construction in two columns. */
@media(min-width:1000px){
 #workspace .learning-board{grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:36px;row-gap:28px}
 #workspace #demo-module{grid-column:1/-1;grid-row:1}
 #workspace #learning-stage-rail{grid-column:1/-1;grid-row:2}
 #workspace #parsing-module{grid-column:1;grid-row:3}
 #workspace #skills-module{grid-column:2;grid-row:3 / span 2}
 #workspace #learning-graph-preview{grid-column:1;grid-row:4}
}

/* Balance the diagram, examples and prepared skill in one compact composition. */
#workspace #vla-lane .vla-native-model{margin-top:14px}
/* Semantic refinement: actual phase video with aligned raw gripper evidence. */
#workspace #semantic-phases{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:18px 0 0}
.semantic-video-card{min-width:0;border:1px solid #dce3e9;border-radius:9px;overflow:hidden;background:#fff}
#workspace .semantic-video-card>button{width:100%;display:flex;align-items:center;gap:8px;border:0;border-bottom:1px solid #dce3e9;border-radius:0;text-align:left;padding:10px 12px;min-height:64px}
#workspace .semantic-video-card>button small{font-size:13px;flex-shrink:0}
#workspace .semantic-video-card>button span{font-size:15px;line-height:1.4}
.phase-preview-video{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:contain;background:#f0f3f6}
.phase-gripper-evidence{padding:10px 8px 0}.phase-gripper-row{display:flex;align-items:center;gap:5px;margin:4px 0}.phase-gripper-row>span{font-size:11px;color:#6385a1;width:10px;flex-shrink:0}
.phase-gripper-row svg{display:block;width:calc(100% - 15px);height:24px;overflow:visible}
.phase-gripper-row path{fill:none;stroke:#648bab;stroke-width:1.2;vector-effect:non-scaling-stroke}.phase-cut{stroke:#8aa8c1;stroke-width:1;stroke-dasharray:2 3;vector-effect:non-scaling-stroke}.phase-video-cursor{stroke:#487599;stroke-width:1.5;vector-effect:non-scaling-stroke}
.phase-coarse-segments{display:flex;gap:2px;margin:6px 0 0 15px}.phase-coarse-segments span{min-width:6px;text-align:center;background:#e6edf4;color:#50728f;border-radius:2px;font-size:10px;padding:3px 0;overflow:hidden}
.phase-frame-caption{padding:9px 10px 12px;font-size:12px;color:#687783;line-height:1.5}.phase-video-error{font-size:12px;color:#b96b5f;padding:8px}
#phase-video-toggle{font:inherit;font-size:12px;color:#487599;background:#f1f5f8;border:1px solid #d4dfe8;border-radius:6px;padding:6px 9px;white-space:nowrap}
@media(max-width:520px){#workspace #semantic-phases{gap:10px}#workspace .semantic-video-card>button{padding:8px;gap:5px}#workspace .semantic-video-card>button span{font-size:14px}.phase-frame-caption{font-size:11px;padding:8px}}
#workspace .phase-gripper-row>span{font-size:11px;line-height:1}
#workspace .phase-coarse-segments span{font-size:10px;line-height:1.4}

/* One selected phase preview beneath the compact four-phase selector. */
#workspace #semantic-phases{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:16px 0}
#semantic-preview .semantic-video-card[hidden]{display:none}
#semantic-preview .semantic-video-card{border:0;border-radius:8px}
#semantic-preview .phase-preview-video{max-height:280px;aspect-ratio:4/3}
#semantic-preview .phase-gripper-evidence{padding:12px 0 0}
#semantic-preview .phase-frame-caption{padding:10px 0 0}

/* Three sequential frames from the same main camera. */
.phase-three-views{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;align-items:start;background:#f3f6f8;padding:8px;border-radius:8px}
#semantic-preview .phase-three-views .phase-preview-video{width:100%;height:auto;max-height:none;min-width:0;aspect-ratio:4/3;object-fit:contain;border-radius:5px}
#semantic-preview .phase-temporal-views figure{display:grid;gap:5px;margin:0;min-width:0}
#semantic-preview .phase-temporal-views figcaption{font-size:10px;line-height:1.2;text-align:center;color:#7d8b95;letter-spacing:.2px}
@media(max-width:520px){.phase-three-views{gap:4px;padding:4px}}

/* Coarse evidence shares one frame axis; phase images belong in refinement. */
#coarse-tracks{padding-top:8px}
#coarse-tracks>div{margin-top:12px}
#coarse-tracks svg{height:38px;flex:none}
#coarse-tracks span{flex:0 0 10px}
#coarse-clips{position:relative;display:block;gap:0;height:26px;margin:16px 0 0 17px}
#coarse-clips button{position:absolute;top:0;height:26px;min-width:0;border:0;border-right:1px solid #fff;border-radius:0;overflow:visible;padding:0;font-size:10px}
#coarse-clips button:nth-child(even){background:#dce7f1}
#coarse-clips button span{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}
.coarse-frame-axis{display:flex;justify-content:space-between;margin:7px 0 12px 17px;font-size:11px;color:#738393}

/* Cohesive gripper-event timeline. */
#workspace #coarse-module{padding:24px}
#coarse-module .coarse-meta{margin:8px 0 18px;align-items:center}
.sequence-analysis-divider{display:flex;align-items:center;gap:10px;margin:22px 0 8px;color:#8794a0;font-size:10px;letter-spacing:.8px}.sequence-analysis-divider span{height:1px;flex:1;background:#e1e8ee}.sequence-analysis-divider b{font-weight:600;white-space:nowrap}
#coarse-module .refinement-title{margin-top:0;padding-top:0;border-top:0}#coarse-module .refinement-title>span{max-width:52%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#487599;font-size:11px}
.coarse-event-legend{display:flex;flex-wrap:wrap;gap:6px;margin:-8px 0 12px 0;font-size:10px;color:#6b7883}
.coarse-event-legend span{padding:3px 7px;border-radius:999px;border:1px solid transparent}.coarse-event-legend .legend-close{background:#cfe0ef;color:#315f86}.coarse-event-legend .legend-open{background:#d9eee9;color:#2d7167}.coarse-event-legend .legend-move{background:#e7e0f0;color:#69517c}.coarse-event-legend .legend-combined{background:linear-gradient(90deg,#cfe0ef 0 50%,#d9eee9 50%);color:#4b4d64}
#coarse-count{background:#edf3f8;color:#527591;border:1px solid #dce7ef;border-radius:20px;padding:4px 10px;font-size:12px}
.coarse-signal-panel{background:transparent;border:0;border-radius:0;padding:0}
#coarse-tracks{padding:0}
#coarse-tracks>div{gap:10px;margin:0 0 13px;align-items:center}
#coarse-tracks>div:last-child{margin-bottom:0}
#coarse-tracks span{display:grid;place-items:center;flex:0 0 20px;height:22px;border-radius:5px;background:#e3edf5;color:#4c78a8;font-size:11px;font-weight:600}
#coarse-tracks svg{width:calc(100% - 30px);height:42px;background:repeating-linear-gradient(to right,transparent 0,transparent calc(20% - 1px),#dfe8f0 20%),linear-gradient(to bottom,transparent 49%,#e2eaf1 50%,transparent 51%);border-bottom:1px solid #dce5ed}
#coarse-tracks path:not(.coarse-signal-area){stroke:#6389aa;stroke-width:1.6}
#coarse-tracks path.coarse-signal-area{fill:#7b9fbc;fill-opacity:.12;stroke:none}
#coarse-tracks line{stroke:#8ba4b8;opacity:.65;stroke-dasharray:2 4}
#coarse-clips{margin:16px 0 0 30px;height:28px}
#coarse-clips button{height:28px;background:#e2ebf3;color:#466b8b;border-right:2px solid #f4f7fa}
#coarse-clips button:nth-child(even){background:#d5e3ee}
#coarse-clips button:first-child{border-radius:4px 0 0 4px}#coarse-clips button:last-child{border-radius:0 4px 4px 0;border-right:0}
#coarse-clips button:hover,#coarse-clips button:focus-visible{background:#b9cee0;color:#294f70}
#coarse-clips button{display:flex;align-items:center;justify-content:center;padding:0 4px;border-right:1px solid #fff;border-radius:3px;color:#35556d;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#coarse-clips button{cursor:pointer}
#coarse-clips button span{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#coarse-clips button[data-event-kind="close"]{background:#cfe0ef;color:#315f86}
#coarse-clips button[data-event-kind="open"]{background:#d9eee9;color:#2d7167}
#coarse-clips button[data-event-kind="move"]{background:#f3e8d6;color:#986e34}
#coarse-clips button[data-event-kind="combined"]{background:linear-gradient(90deg,#cfe0ef 0 50%,#d9eee9 50%);color:#4b4d64}
#coarse-clips button.selected{outline:0;box-shadow:inset 0 -3px #4c78a8;z-index:3}
.sequence-switcher{display:flex;gap:5px;overflow-x:auto;margin:0 0 2px;padding:0 0 3px;border-bottom:1px solid #e2e8ee;scrollbar-width:thin}.sequence-switcher button{--sequence-accent:#487599;--sequence-edge:#c6d8e6;--sequence-wash:#edf3f9;display:grid;gap:2px;flex:1 1 0;min-width:0;padding:8px 7px;border:1px solid transparent;border-radius:7px 7px 0 0;background:transparent;color:#697785;text-align:left;cursor:pointer}.sequence-switcher button:hover{background:var(--sequence-wash);color:var(--sequence-accent)}.sequence-switcher button.selected{background:var(--sequence-wash);border-color:var(--sequence-edge);color:var(--sequence-accent);box-shadow:inset 0 -2px var(--sequence-accent)}.sequence-switcher button small{color:var(--sequence-accent);font-size:9px;letter-spacing:.4px;font-weight:600;white-space:nowrap}.sequence-switcher button strong{font-size:11px;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.coarse-frame-axis{margin:8px 0 7px 30px;font-size:10px;color:#8091a0}
#coarse-module .micro-note{margin-top:12px;font-size:12px;color:#82909c}
@media(max-width:520px){#workspace #coarse-module{padding:18px}.coarse-signal-panel{padding:12px 8px 4px}}
#parsing-module.learning-stage-focus{outline:0!important;outline-offset:0}

/* Paused/reduced motion keeps the current data position readable. */
.motion-off .learning-packets{display:block}
.motion-off .vla-input-dot{display:block}

/* Motion off hides travelling data cards; structural connections remain. */
.motion-off .learning-packets,.motion-off .vla-input-dot{display:none}

/* Phase prompts are part of the selector, rather than oversized anonymous tabs. */
#workspace #refinement-module{padding:20px}
#workspace #semantic-phases{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:12px 0}
#workspace #semantic-phases button{padding:9px 10px;text-align:left;border:1px solid #e4e8ed;border-radius:8px;background:#fafbfc;color:#171717;box-shadow:none;transition:background .15s,border-color .15s}
#workspace #semantic-phases button[aria-pressed=true]{background:#edf3f9;border-color:#7e9fbc;box-shadow:inset 3px 0 #4c78a8}
#workspace #semantic-phases .phase-option-heading{display:flex;align-items:center;gap:7px;line-height:1.3;font-size:14px}
#workspace #semantic-phases small{display:inline;font-size:12px;color:#4c78a8;font-weight:600}
#workspace #semantic-phases strong{font-size:14px;font-weight:600}
#workspace #semantic-phases em{margin-left:auto;font-size:10px;font-style:normal;font-weight:500;color:#738391}
#workspace #semantic-phases .phase-option-prompt{display:block;margin-top:5px;font-size:13px;line-height:1.4;color:#64717d}
#workspace #semantic-phases button[aria-pressed=true] .phase-option-prompt{color:#3b5c78}
#semantic-preview .phase-three-views{padding:5px;gap:6px;background:#f3f5f7;border-radius:7px;grid-template-columns:repeat(3,minmax(0,1fr))}
#semantic-preview .phase-gripper-evidence{padding:7px 0 0}
#semantic-preview .phase-gripper-row{margin:3px 0}
#semantic-preview .phase-gripper-row svg{height:19px}
#semantic-preview .phase-coarse-segments{margin-top:4px}
#semantic-preview .phase-coarse-segments span{padding:1px 0}
#semantic-preview .phase-frame-caption{padding:6px 0 0;font-size:11px;color:#81909c}
#workspace #phase-video-toggle{background:transparent;border-color:#e2e7ed;color:#6a7d8e;font-size:11px;padding:4px 7px}
@media(max-width:520px){#workspace #refinement-module{padding:16px}#workspace #semantic-phases strong{font-size:13px}#workspace #semantic-phases .phase-option-prompt{font-size:12px}#workspace #semantic-phases button{padding:8px}#workspace #semantic-phases em{display:none}}

/* Keep navigation concise; the prompt belongs to its selected phase. */
#workspace #semantic-phases{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:12px 0 8px}
#workspace #semantic-phases button{padding:9px 8px}
#workspace #semantic-phases .phase-option-heading{flex-wrap:wrap;gap:4px 6px}
#workspace #semantic-phases em{display:none}
#workspace #semantic-phases strong{font-size:13px}
.semantic-phases{grid-template-columns:repeat(auto-fit,minmax(145px,1fr))!important;align-items:stretch;gap:7px!important}
#workspace #semantic-phases button{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;align-content:center;min-height:66px;padding:10px 11px;text-align:left}
#workspace #semantic-phases .phase-option-heading{grid-column:1/-1;display:flex;align-items:flex-start;gap:5px;min-width:0}
#workspace #semantic-phases .phase-option-heading strong{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#workspace #semantic-phases .phase-event-link{display:block;grid-column:1/-1;margin-top:5px;font-size:10px;line-height:1.2;color:#83909b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#workspace #semantic-phases button[aria-pressed=true] .phase-event-link{color:#456b88}
.phase-preview-prompt{padding:9px 0 12px;display:flex;align-items:baseline;gap:10px}
.phase-preview-prompt small{font-size:10px;letter-spacing:.8px;color:#7b8c9b;flex-shrink:0}
.phase-preview-prompt p{margin:0;font-size:14px;line-height:1.5;color:#3b5c78}
.phase-evidence-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:2px 0 6px;color:#7d8b95;font-size:9px;letter-spacing:.6px}.phase-evidence-heading small{font-weight:650}.phase-evidence-heading span{letter-spacing:.2px;white-space:nowrap}
@media(max-width:520px){#workspace #semantic-phases button{padding:8px 6px}#workspace #semantic-phases strong{font-size:12px}.phase-preview-prompt{gap:8px}.phase-preview-prompt p{font-size:13px}}

/* Motion toggles travelling labels, not the VLA playback sequence. */
.motion-off .vla-input-dot{display:block}
@media(prefers-reduced-motion:reduce){.motion-off .vla-input-dot{display:none}}

/* Playback determines visibility of external flow, independently of Motion. */
body:not(.learning-paused) .learning-packets{display:block}
body:not(.learning-paused) .canvas-flow-energy{display:block}
body.learning-paused .learning-packets,body.learning-paused .canvas-flow-energy,body.learning-paused .vla-input-dot{display:none}

/* A short entrance transition keeps phase changes readable without delaying playback. */
#workspace #semantic-phases button{transition:background-color 180ms ease,border-color 180ms ease,box-shadow 180ms ease,color 180ms ease}
@media(prefers-reduced-motion:reduce){#semantic-preview .semantic-video-card:not([hidden]){animation:none}#workspace #semantic-phases button{transition:none}}

/* Phase cards mirror the event colors above so the timeline and its analysis read as one sequence. */
#workspace #semantic-phases{display:grid;grid-template-columns:repeat(auto-fit,minmax(164px,1fr));gap:8px;margin:14px 0 10px;align-items:stretch}
#workspace #semantic-phases .phase-map-card{--event-accent:#487599;--event-edge:#9db8ce;--event-wash:#f1f6fa;--event-chip:#e7f0f7;position:relative;display:flex;flex-direction:column;align-items:stretch;min-width:0;min-height:88px;padding:10px 11px 9px;border:1px solid #e0e6eb;border-left:4px solid var(--event-edge);border-radius:9px;background:#fff;color:#334b5d;text-align:left;box-shadow:0 2px 5px #2d48590c;transition:background-color 180ms ease,border-color 180ms ease,box-shadow 180ms ease,transform 180ms ease}
#workspace #semantic-phases .phase-map-card:hover{transform:translateY(-1px);border-color:#aebfcb;box-shadow:0 5px 12px #2d485918}
#workspace #semantic-phases .phase-map-card[aria-pressed=true]{background:var(--event-wash);border-color:var(--event-edge);box-shadow:inset 3px 0 var(--event-accent),0 4px 12px #2d48591c}
#workspace #semantic-phases .phase-map-head{display:flex;align-items:center;justify-content:space-between;gap:8px;line-height:1}
#workspace #semantic-phases .phase-map-head>small{display:inline;color:#4c78a8;font-size:10px;font-weight:700;letter-spacing:.6px}
#workspace #semantic-phases .phase-map-kind{display:inline-flex;align-items:center;min-height:17px;padding:2px 6px;border-radius:999px;background:#f0f3f6;color:#71818d;font-size:9px;font-weight:700;letter-spacing:.45px}
#workspace #semantic-phases .phase-map-title{display:block;margin:9px 0 8px;min-width:0;overflow:hidden;color:#3c5364;font-size:12px;font-weight:650;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}
#workspace #semantic-phases .phase-map-action{display:flex;align-items:center;gap:6px;min-width:0;margin-top:auto;color:#7a8994;font-size:10px;line-height:1.2}
#workspace #semantic-phases .phase-map-action b{flex:0 0 auto;color:#8094a2;font-size:9px;letter-spacing:.35px}
#workspace #semantic-phases .phase-map-action>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#workspace #semantic-phases .phase-map-card{border-left-color:var(--event-edge)}
#workspace #semantic-phases .phase-map-open{--event-accent:#367f73;--event-edge:#91beb2;--event-wash:#f2faf6;--event-chip:#e3f1eb}
#workspace #semantic-phases .phase-map-move{--event-accent:#986e34;--event-edge:#cfb58e;--event-wash:#fcf8f0;--event-chip:#f5ead7}
#workspace #semantic-phases .phase-map-home{--event-accent:#5d7888;--event-edge:#afc3cd;--event-wash:#f3f7f8;--event-chip:#e8eff2}
#workspace #semantic-phases .phase-map-card .phase-map-kind{background:var(--event-chip);color:var(--event-accent)}
#workspace #semantic-phases .phase-map-combined .phase-map-kind{background:linear-gradient(90deg,#e7f0f7 0 50%,#e3f1eb 50%);color:#3c636b}
@media(max-width:520px){#workspace #semantic-phases{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}#workspace #semantic-phases .phase-map-card{min-height:78px;padding:8px 8px 7px}#workspace #semantic-phases .phase-map-title{font-size:11px;margin:7px 0 6px}#workspace #semantic-phases .phase-map-action{font-size:9px}}


.reasoning-model-logos{display:flex;align-items:center;gap:9px;flex-shrink:0}
.reasoning-model-logos img{display:block;width:27px;height:27px;object-fit:contain}
.reasoning-model-logos>span{color:#b8c3cc;font-size:17px;font-weight:300}
@media(max-width:520px){.reasoning-model-logos{gap:6px}.reasoning-model-logos img{width:23px;height:23px}#workspace .reasoning-module{gap:12px}}

/* Situation Parsing uses the shared Situation purple palette. */
#parsing-module{--parsing-accent:#487599;--parsing-ink:#315f86;--parsing-line:#d9e3eb;--parsing-wash:#f4f7fa}
#parsing-module .inner-module{border-color:var(--parsing-line)}
#parsing-module .flow-active{outline-color:#8ba6bc55}
/* Each demonstrated sequence has a restrained accent within Learning. */
.sequence-switcher button:nth-child(4n+2){--sequence-accent:#367f73;--sequence-edge:#afcfc5;--sequence-wash:#f0f8f4}
.sequence-switcher button:nth-child(4n+3){--sequence-accent:#986e34;--sequence-edge:#d7c3a3;--sequence-wash:#faf4e9}
.sequence-switcher button:nth-child(4n+4){--sequence-accent:#62749a;--sequence-edge:#c2ccdf;--sequence-wash:#f2f4f9}
#parsing-module .coarse-meta,#parsing-module .micro-note,#parsing-module .phase-frame-caption,#parsing-module .coarse-frame-axis{color:#7c8b98}
#parsing-module #coarse-count{background:#ebf1f6;color:var(--parsing-ink);border-color:var(--parsing-line)}
#parsing-module .coarse-signal-panel{background:var(--parsing-wash);border-color:#e0e8ef}
#parsing-module #coarse-tracks span{background:#e4ecf3;color:var(--parsing-accent)}
#parsing-module #coarse-tracks svg{background:repeating-linear-gradient(to right,transparent 0,transparent calc(20% - 1px),#dfe8ef 20%),linear-gradient(to bottom,transparent 49%,#dfe8ef 50%,transparent 51%);border-bottom-color:var(--parsing-line)}
#parsing-module #coarse-tracks path:not(.coarse-signal-area),#parsing-module .phase-gripper-row path{stroke:var(--parsing-accent)}
#parsing-module #coarse-tracks path.coarse-signal-area{fill:#8ba6bc}
#parsing-module #coarse-clips button{background:#e2ebf2;color:var(--parsing-ink);border-right-color:var(--parsing-wash)}
#parsing-module #coarse-clips button:nth-child(even){background:#d3e0eb}
#parsing-module #coarse-clips button:hover,#parsing-module #coarse-clips button:focus-visible{background:#bbcedd;color:#3b556a}
#parsing-module #coarse-clips button[data-event-kind="open"]{background:#e3f1eb;color:#367f73}
#parsing-module #coarse-clips button[data-event-kind="move"]{background:#f3e8d6;color:#986e34}
#parsing-module #coarse-clips button[data-event-kind="combined"]{background:linear-gradient(90deg,#e7f0f7 0 50%,#e3f1eb 50%);color:#3c636b}
#workspace #parsing-module #semantic-phases button{background:#fafcfd;border-color:#e0e8ee;border-left-color:var(--event-edge,#e0e8ee)}
#workspace #parsing-module #semantic-phases button[aria-pressed=true]{background:var(--event-wash,#e9f0f6);border-color:var(--event-edge,#8ba6bc);box-shadow:inset 3px 0 var(--event-accent,#487599)}
#workspace #parsing-module #semantic-phases small,#parsing-module .phase-gripper-row>span{color:var(--parsing-accent)}
#parsing-module .phase-preview-prompt small{color:#80919f}
#parsing-module .phase-preview-prompt p{color:var(--parsing-ink)}
#parsing-module .phase-three-views,#parsing-module .phase-preview-video{background:var(--parsing-wash)}
#parsing-module .phase-coarse-segments span{background:#e2ebf2;color:var(--parsing-ink)}
#parsing-module .refinement-title button{color:var(--parsing-ink);border-color:var(--parsing-line)}

/* Skill construction: a shared title / study / artifact layout. */
#workspace #vla-lane,#workspace #control-lane{background:#fff;border:1px solid #dfe5e5;border-radius:14px;padding:24px;outline:none;box-shadow:none}
#workspace #vla-lane>.module-title,#workspace #control-lane>.module-title{font-size:18px;font-weight:600;color:#252b30;line-height:1.5}
.vla-model-heading{text-align:center;font-size:14px;font-weight:500;line-height:1.5;color:#536a7c;margin:22px auto 12px;max-width:430px}
#workspace #vla-lane .vla-native-model{width:90%;margin:8px auto 0}
.vla-original-art .vla-model-loop{stroke-width:.7}
.vla-preparation-row{display:block;margin-top:12px}
#workspace .vla-preparation-row #vla-inputs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0;max-width:none}
#workspace #vla-inputs .routed-phase{border:1px solid #e1e8ed;border-radius:8px;box-shadow:none}
#workspace #vla-inputs .routed-phase img{aspect-ratio:16/10;background:#f5f7f9}
#workspace #vla-inputs .routed-phase>span{padding:8px;font-size:14px;line-height:1.4;border-top:1px solid #edf0f3;color:#252b30}
#workspace #vla-inputs .routed-phase small{font-size:12px;color:#4c78a8}
#workspace #vla-lane>.skill-output,#workspace #control-lane>.skill-output{display:flex;align-items:center;gap:12px;min-height:60px;margin:18px 0 0;padding:10px 14px;border:1px solid #e5e9eb;border-radius:8px;background:#f8fafb;box-sizing:border-box;opacity:1}
#workspace #vla-lane>.skill-output>svg,#workspace #control-lane>.skill-output>svg{flex:0 0 42px;width:42px;height:30px;fill:none;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
#workspace #vla-lane>.skill-output>svg{stroke:#4c78a8}
#workspace #control-lane>.skill-output>svg{stroke:#39877d}
#workspace #vla-lane>.skill-output strong,#workspace #control-lane>.skill-output strong{font-size:14px;font-weight:600;line-height:1.4;color:#252b30}
#workspace #vla-lane>.skill-output small,#workspace #control-lane>.skill-output small{display:block;font-size:12px;line-height:1.4;letter-spacing:0;margin:3px 0 0;color:#748078}
#workspace #control-lane>.material-complete{border-color:#c9ddd3;background:#f5faf7}
.control-capture{display:grid;grid-template-columns:minmax(0,2fr) minmax(125px,1fr);gap:20px;align-items:center;margin-top:22px}
.control-media{position:relative;min-width:0}
.control-footage{position:relative;overflow:hidden;border-radius:9px;background:#eff3f1;aspect-ratio:4/3}
.control-footage video{width:100%;height:100%;object-fit:contain}
#control-overlay{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
#control-overlay path{fill:none;stroke:#39877d;stroke-width:.55;stroke-linecap:round;stroke-linejoin:round}
#control-overlay .control-trace-base{opacity:0}
.control-keypoint circle{fill:#39877d;stroke:#fff;stroke-width:.3}
.control-keypoint text{font-size:2.5px;font-weight:600;text-anchor:middle;fill:#fff}
.control-keypoint line{stroke:#39877d;stroke-width:.35;stroke-dasharray:1 1}
#control-inputs{position:relative;display:flex;margin:0;justify-content:flex-end;padding:0;flex-shrink:0}
#control-inputs .routed-phase{flex:0 1 auto;flex-direction:row;align-items:center;justify-content:center;padding:5px 9px;border:0;background:#eaf3f0;border-radius:7px;box-shadow:none}
#control-inputs .routed-phase img{display:none}
#workspace #control-inputs .routed-phase span{display:flex;align-items:center;gap:7px;font-size:14px;line-height:1.5;color:#252b30}
#control-inputs .routed-phase small{display:inline;color:#39877d}
#control-records{list-style:none;padding:0;margin:0;display:grid;gap:24px}
#control-records li{display:flex;align-items:center;gap:10px;position:relative;min-width:0}
#control-records li>.control-step-icon{position:relative;display:grid;place-items:center;width:34px;height:38px;flex:0 0 34px;color:#9aada7}
.control-step-icon svg{width:28px;height:32px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.control-step-icon .icon-guide{stroke-dasharray:2 2;opacity:.6}
.control-step-icon b{position:absolute;bottom:-3px;right:-3px;width:14px;height:14px;display:grid;place-items:center;background:#eef2f0;border:2px solid #fff;border-radius:50%;color:#748078;font-size:9px;font-weight:600;line-height:1}
#control-records .recorded>.control-step-icon{color:#39877d}
#control-records .recorded .control-step-icon b{background:#39877d;color:#fff}
#control-records strong{display:block;font-size:14px;font-weight:600;line-height:1.5;color:#252b30}
#control-records small{display:block;font-size:12px;line-height:1.4;color:#748078;margin-top:3px}
@media(max-width:520px){#workspace #vla-lane,#workspace #control-lane{padding:18px}.control-capture{grid-template-columns:1fr;gap:20px}#control-records{gap:18px}.vla-model-heading{font-size:14px;max-width:240px}.vla-preparation-row{margin-top:12px}#workspace .vla-preparation-row #vla-inputs{gap:6px}#workspace #vla-inputs .routed-phase>span{font-size:12px;padding:7px 5px}#workspace #vla-inputs .routed-phase small{font-size:11px}}
/* Keep decorative routes within the narrow viewport. */
@media(max-width:520px){body{overflow-x:clip}.knowledge-grid{min-width:0}.knowledge-grid>div{min-width:0;overflow-wrap:anywhere}}

/* The three phase demonstrations form one shared VLA input. */
#workspace .vla-preparation-row #vla-inputs{padding:12px;border:1px solid #d6e3ed;border-radius:10px;background:#f7fafc;box-sizing:border-box}
@media(max-width:520px){#workspace .vla-preparation-row #vla-inputs{padding:8px;gap:6px}}

@media(max-width:520px){#workspace #vla-lane .vla-native-model{width:100%}}
/* Balance the control preview against its three-step legend. */
#control-lane .control-capture{grid-template-columns:minmax(0,260px) minmax(130px,170px);justify-content:space-between;gap:24px;align-items:center;padding:0 8px}
#control-lane #control-records{gap:22px}
@media(max-width:1200px) and (min-width:521px){#control-lane .control-capture{grid-template-columns:minmax(0,1.45fr) minmax(120px,1fr);gap:18px;padding:0}}
@media(max-width:520px){#control-lane .control-capture{grid-template-columns:1fr;justify-items:center;padding:0;gap:20px}#control-lane .control-media{width:100%;max-width:260px}#control-lane #control-records{width:100%;max-width:260px}}
#control-lane .control-capture{justify-content:center;gap:16px;background:#eaf3f0;border-radius:12px;padding:14px 12px}
@media(max-width:1200px) and (min-width:521px){#control-lane .control-capture{gap:16px}}

/* Readable image-space waypoints in the compact control preview. */
#control-overlay .control-keypoint circle{stroke-width:.45}
#control-overlay .control-keypoint text{font-size:3.4px;font-weight:700}
#control-overlay .control-keypoint line{stroke-width:.45}

/* Learning overview: fixed routing channel and consistent visual hierarchy. */
.learning-board{column-gap:120px;row-gap:24px}
#mini-episodes{margin-bottom:14px}
#workspace #parsing-module .inner-module{padding:24px;border:1px solid #d9e3eb;outline:none;box-shadow:none}
#workspace #parsing-module .flow-active{outline:none;box-shadow:none}
#workspace .inner-flow{height:36px}
#workspace .learning-module h3{font-size:26px;line-height:1.3}
#workspace .module-title,#workspace .reasoning-module strong,#workspace .refinement-title{font-size:18px}
#workspace .semantic-phases span,#workspace .inline-contract dl{font-size:14px}
#workspace .module-kicker,#workspace .micro-note,#workspace .coarse-meta,#workspace .reasoning-module small,#workspace .learning-delivery{font-size:12px}
#skills-module .skill-lane{margin-bottom:20px}
#skills-module .skill-lane:last-child{margin-bottom:0}
#skills-delivery{color:#487599}
.canvas-flow-path{stroke-width:1.5;opacity:.6;stroke-linejoin:round;stroke-linecap:round}
.canvas-flow-energy{stroke-width:1.5}
.learning-travel span{font-size:11px;padding:4px 6px;box-shadow:none;border-color:currentColor}
.compact-routing{display:none}
@media(max-width:1199px){
 .learning-board{display:flex;flex-direction:column;gap:24px;padding:0 12px}
 .learning-module{width:100%}
 .learning-delivery{display:none}
 .compact-routing{display:flex;justify-content:center;flex-wrap:wrap;gap:10px 22px;margin:0 0 28px;padding:10px 12px;background:#f7f9fa;border:1px solid #dfe5ea;border-radius:8px;font-size:12px;line-height:1.5}
 .compact-routing span:first-child{color:#4c78a8}.compact-routing span:last-child{color:#39877d}
 #skills-module #control-lane{margin-top:32px}
 .learning-travel.compact-packet span{display:none}
 .learning-travel.compact-packet:after{content:'';display:block;width:5px;height:5px;background:currentColor;border-radius:50%;transform:translate(-50%,-50%)}
}
@media(max-width:520px){#workspace #parsing-module .inner-module{padding:18px}.learning-board{padding:0 8px}.compact-routing{gap:5px 14px;font-size:11px}}

/* Task identity shares the heading row instead of adding an empty band. */
.control-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
#control-lane .control-heading + .control-capture{margin-top:14px}
#workspace .control-heading .module-title{margin:0}
#workspace .control-heading #control-inputs .routed-phase span{font-size:12px;gap:6px}

/* Compact Learning → Situation handoff. Labels do not occupy a grid row. */
#offline-view .learning-delivery{position:absolute;grid-area:auto;justify-self:auto;max-width:none;padding:0;background:var(--bg);font-size:12px;line-height:1.5;white-space:nowrap;color:#487599}
section#situation.situation-section{padding-top:88px}
@media(max-width:1199px){section#situation.situation-section{padding-top:64px}}


/* Selected task manifest presentation */
.selected-learning-task{padding:24px 26px 30px;background:#fff}
.learning-task-kicker{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.learning-local-note{font-size:10px;color:#838a90}
.task-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:8px 0 24px}
.task-picker-card{display:grid;grid-template-columns:28px 1fr 16px;gap:10px;align-items:start;text-align:left;padding:14px;border:1px solid #e1e5e8;border-radius:10px;background:#fcfcfb;min-height:74px}.task-picker-card[aria-selected=true]{border-color:#487599;background:#f3f7fa;box-shadow:0 0 0 2px #4875991a}.task-picker-card:hover{border-color:#a2b7c9}.task-picker-index{font-size:10px;color:#487599;font-weight:600}.task-picker-card strong{display:block;font-size:12px;font-weight:600;line-height:1.35}.task-picker-card small{display:block;color:#858087;font-size:9px;margin-top:5px}.task-picker-card i{font-style:normal;color:#91a0ad;font-size:14px}
.task-demo-heading{display:flex;justify-content:space-between;align-items:end;gap:16px;border-top:1px solid #eaedf0;padding-top:20px}.task-demo-heading h3{font-size:21px;margin:4px 0}.task-demo-heading p{font-size:12px}.task-source-pill,.summary-count{font-size:9px;color:#6b747c;border:1px solid #e1e5e8;border-radius:999px;padding:5px 8px;white-space:nowrap}
.task-demo-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0 26px}.task-demo-card{min-width:0}.task-demo-media{height:118px;border-radius:8px;overflow:hidden;background:#f4f2f0;border:1px solid #e8e4e0;position:relative}.task-demo-media video,.task-demo-media img{width:100%;height:100%;object-fit:cover}.task-demo-media>span{position:absolute;top:7px;left:7px;padding:3px 6px;border-radius:4px;background:#fffdfbcc;color:#5a5f63;font-size:8px}.task-demo-card>strong{display:block;font-size:10px;margin-top:8px}.task-demo-card>small{display:block;color:#81868a;font-size:9px;line-height:1.35;margin-top:3px;max-height:2.7em;overflow:hidden}
.learning-analysis-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:14px}.learning-phase-summary,.learning-phase-detail{border:1px solid #e3e7ea;border-radius:10px;background:#fdfdfb;padding:16px}.learning-subhead{display:flex;justify-content:space-between;align-items:start;gap:10px;margin-bottom:12px}.learning-subhead h3{font-size:17px;margin-top:4px}.learning-phase-list{display:grid;gap:5px}.learning-phase-row{display:grid;grid-template-columns:35px 1fr auto;gap:9px;align-items:center;text-align:left;border:1px solid transparent;border-radius:7px;padding:8px;background:#fff}.learning-phase-row:hover,.learning-phase-row.selected{border-color:#c0cfdb;background:#f3f7fa}.learning-phase-number{font-size:9px;color:#487599}.learning-phase-row strong{display:block;font-size:10px;font-weight:600}.learning-phase-row small{display:block;font-size:9px;color:#89838a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:300px}.learning-phase-row em{font-style:normal;font-size:8px;color:#707b84}.learning-phase-detail{background:#fbfcfd}.learning-phase-detail .learning-subhead h3{max-width:500px;line-height:1.35}.learning-detail-grid{display:grid;grid-template-columns:180px 1fr;gap:14px}.learning-detail-grid figure{margin:0}.learning-detail-grid figure img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:7px;border:1px solid #e1e5e8}.learning-detail-grid figcaption{font-size:8px;color:#888d91;margin-top:5px}.learning-detail-grid dl{margin:0}.learning-detail-grid dt{font-size:8px;color:#848b91;letter-spacing:.6px;text-transform:uppercase}.learning-detail-grid dd{margin:2px 0 8px;font-size:10px;line-height:1.4}.learning-empty-media{display:grid;place-items:center;min-height:120px;border:1px dashed #d0d7dc;border-radius:7px;color:#899095;font-size:9px}.route.home{color:#8d6a50;background:#f5eee8}.route.prepared{color:#527e78;background:#eaf3ef}
@media(max-width:800px){.task-picker{grid-template-columns:1fr}.task-demo-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.learning-analysis-grid{grid-template-columns:1fr}.task-demo-heading{display:block}.task-source-pill{display:inline-block;margin-top:10px}.selected-learning-task{padding:18px 14px}.learning-detail-grid{grid-template-columns:130px 1fr}}
@media(max-width:520px){.task-demo-strip{grid-template-columns:1fr 1fr}.task-demo-media{height:92px}.learning-detail-grid{grid-template-columns:1fr}.learning-detail-grid figure{max-width:220px}.learning-phase-row{grid-template-columns:30px 1fr}.learning-phase-row em{display:none}}
/* Carousel task cards use the original side-preview window layout. */
.learning-carousel-note{position:absolute;top:-28px;right:0;z-index:5;text-align:right;font-size:10px;line-height:1.3;color:#828a90;margin:0;max-width:55%;pointer-events:none}
#mini-episodes .mini-episode{cursor:pointer}
#mini-episodes .mini-episode[aria-current=true]{cursor:default}
#mini-episodes .mini-episode:not([aria-current=true]) .demo-inline-video{pointer-events:none}
@media(max-width:520px){.learning-carousel-note{top:-24px;right:auto;left:0;text-align:left;max-width:100%}}

/* Situation graph result: processing summary at right, clickable graph across the board. */
#learning-graph-preview{grid-column:2;grid-row:3;min-width:0;height:auto;box-sizing:border-box}
#learning-graph-result{min-width:0;margin-bottom:24px;padding-bottom:22px;border-bottom:1px solid #dfe7ed}
.graph-processing-flow{display:flex;flex-direction:column;gap:8px;margin-top:16px}
.graph-processing-step{min-height:0;padding:12px;gap:10px}
.graph-processing-index{flex-basis:27px;width:27px;height:27px;font-size:9px}
.graph-processing-copy h4{margin:3px 0 7px;font-size:13px}
.graph-result-list{display:grid;gap:4px;max-height:128px;overflow:auto;padding-right:3px}
.graph-result-chip{display:flex;align-items:baseline;gap:6px;min-width:0;padding:4px 6px;border:1px solid #e0e8ef;border-radius:5px;background:#fff;color:#667480;font-size:10px;line-height:1.25}
.graph-result-chip b{flex:0 0 auto;color:#315f86;font-size:9px;letter-spacing:.25px}
.graph-result-empty{color:#6b7e8e;font-size:10px}
.graph-processing-stats{margin-top:8px}
.graph-processing-output{margin-top:10px;padding:10px 12px}
.graph-processing-output p{display:none}


.graph-result-legend{display:flex;gap:10px;flex-wrap:wrap;align-items:center;color:#647987;font-size:10px;white-space:nowrap}
.graph-result-legend span{display:inline-flex;align-items:center;gap:4px}
.graph-result-legend i{display:inline-block;width:14px;height:10px;border:1px solid #bbcedd;border-radius:3px;background:#f7fafc}
.graph-result-legend .graph-legend-home{border-color:#75a99c;background:#f1faf6}
.graph-svg-scroll{overflow:auto;border:1px solid #dde5ec;border-radius:9px;background:#fff;scrollbar-width:thin}
.graph-svg-host{min-width:100%;padding:8px}
.situation-graph-svg{display:block;width:max-content;min-width:100%;height:auto;min-height:350px}
.graph-svg-edge{fill:none;stroke:#b7c5d1;stroke-width:1.4;marker-end:url(#graph-arrow)}
.graph-svg-edge.branch{stroke:#75a99c;stroke-dasharray:4 3}
.graph-svg-node{cursor:pointer;outline:none}
.graph-svg-node rect{fill:#f7fafc;stroke:#bbcedd;stroke-width:1.2}
.graph-svg-node.state circle{fill:#edf4f9;stroke:#4c78a8;stroke-width:1.4}
.graph-svg-node.home rect{fill:#f1faf6;stroke:#75a99c}
.graph-svg-node:hover rect,.graph-svg-node:focus rect,.graph-svg-node.selected rect{fill:#e9f0f6;stroke:#487599;stroke-width:2}
.graph-svg-node.state:hover circle,.graph-svg-node.state:focus circle,.graph-svg-node.state.selected circle{fill:#dcebf4;stroke:#315f86;stroke-width:2}
.graph-svg-node.home:hover rect,.graph-svg-node.home.selected rect{fill:#e6f4ee;stroke:#39877d}
.graph-svg-phase{font-size:10px;font-weight:700;fill:#487599;letter-spacing:.4px}
.graph-svg-node.state .graph-svg-phase{fill:#4c78a8}
.graph-svg-title{font-size:11px;font-weight:600;fill:#304451}
.graph-svg-detail{font-size:9px;font-weight:400;fill:#6b7e8e}
@media(min-width:1000px){
  #workspace #parsing-module{grid-column:1;grid-row:3}
  #workspace #learning-graph-preview{grid-column:2;grid-row:3}
  #workspace #skills-module{grid-column:1/-1;grid-row:4}
}
@media(max-width:999px){
  #workspace #learning-graph-preview,#workspace #skills-module{grid-column:1;grid-row:auto}

  .graph-result-legend{margin-top:10px}
}
@media(max-width:520px){
  #learning-graph-preview{padding:18px 14px}

  .graph-result-legend{gap:7px;font-size:9px}
  .graph-processing-step{padding:10px}
  .graph-result-chip{font-size:9px}
}
.graph-result-path{display:grid;gap:2px}.graph-result-path em{display:block;color:#6b7e8e;font-style:normal;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.situation-graph-svg{min-height:220px}
/* Situation graph construction follows the same module treatment as 02 / UNDERSTAND. */
#learning-graph-preview{border:1px solid #dce4ea;border-radius:12px;padding:24px;background:#fff}
#learning-graph-preview .learning-graph-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}
#learning-graph-preview .learning-graph-heading h3{font-size:26px;line-height:1.3;letter-spacing:-.5px;font-weight:600;margin:0 0 18px;color:#2d3c48}
#learning-graph-preview .learning-graph-heading p{font-size:13px;line-height:1.5;color:#697783;margin:-8px 0 18px;max-width:650px}
#learning-graph-preview .learning-graph-stats{display:flex;gap:8px;flex-shrink:0}
#learning-graph-preview .learning-graph-stats span{border-color:#dce4ea;background:#f8fafb;color:#697783}
#learning-graph-preview .learning-graph-stats strong{color:#487599}
#learning-graph-preview .graph-processing-flow{display:grid;grid-template-columns:minmax(0,1fr) 18px minmax(0,1fr) 18px minmax(0,1fr);align-items:stretch;gap:8px;margin-top:0}
#learning-graph-preview .graph-processing-step{cursor:pointer;border-color:#dce4ea;background:#fff;transition:border-color .18s,background .18s,box-shadow .18s;outline:none}
#learning-graph-preview .graph-processing-step:hover,#learning-graph-preview .graph-processing-step:focus-visible{border-color:#9db6c8;box-shadow:0 2px 10px #48759916}
#learning-graph-preview .graph-processing-step.selected{border-color:#8daac0;background:#f7fafc;box-shadow:inset 0 2px #487599,0 2px 10px #48759912}
#learning-graph-preview .graph-processing-step:not(.selected) .graph-result-list{display:none}
#learning-graph-preview .graph-processing-copy>small{color:#6485a0}
#learning-graph-preview .graph-processing-copy h4{color:#344b5d}
#learning-graph-preview .graph-processing-stats span{background:#eef5f9;color:#527591}
#learning-graph-preview .graph-processing-stats strong{color:#487599}
#learning-graph-preview .graph-processing-merge .graph-processing-index{background:#487599}
#learning-graph-preview .graph-processing-merge .graph-processing-copy>small,#learning-graph-preview .graph-processing-merge .graph-processing-stats strong{color:#487599}
#learning-graph-preview .graph-processing-merge .graph-processing-stats span{background:#eff3f6;color:#667480}
#learning-graph-preview .graph-processing-branch .graph-processing-index{background:#39877d}
#learning-graph-preview .graph-processing-branch .graph-processing-copy>small,#learning-graph-preview .graph-processing-branch .graph-processing-stats strong{color:#39877d}
#learning-graph-preview .graph-processing-branch .graph-processing-stats span{background:#eaf5f1;color:#4c8279}
@media(max-width:900px){#learning-graph-preview .graph-processing-flow{grid-template-columns:1fr;gap:8px}#learning-graph-preview .graph-processing-connector{transform:rotate(90deg);height:18px}}
@media(max-width:520px){#learning-graph-preview{padding:18px}#learning-graph-preview .learning-graph-heading{display:block}#learning-graph-preview .learning-graph-heading h3{font-size:22px}#learning-graph-preview .learning-graph-stats{margin-top:4px}}
/* Keep the graph heading outside its content frame, matching 02 / UNDERSTAND. */
#learning-graph-preview{border:0;border-radius:0;padding:0;background:transparent}
#learning-graph-preview .learning-graph-heading h3{margin-bottom:18px}
#learning-graph-preview .learning-graph-body{border:1px solid #d4dfe8;border-radius:12px;padding:24px;background:#fff}
#learning-graph-preview .learning-graph-body-head{display:flex;justify-content:flex-end;margin-bottom:14px}
@media(max-width:520px){#learning-graph-preview .learning-graph-body{padding:18px}}

/* Situation graph stages: tabbed detail view with a shared timeline. */
#learning-graph-preview .graph-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:18px;border-bottom:1px solid #dfe7ed;padding-bottom:8px}
#learning-graph-preview .graph-tabs button{--stage-accent:#487599;--stage-edge:#c0cfdb;--stage-wash:#f2f6fa;--stage-chip:#e8eff4;display:grid;grid-template-columns:28px minmax(0,1fr);grid-template-rows:auto auto;gap:1px 8px;min-width:0;padding:10px 11px;border:1px solid transparent;border-radius:8px;background:transparent;text-align:left;color:#667480;cursor:pointer}
#learning-graph-preview .graph-tabs button:hover{background:var(--stage-wash);border-color:var(--stage-edge)}
#learning-graph-preview .graph-tabs button[aria-selected=true]{border-color:var(--stage-edge);background:var(--stage-wash);box-shadow:inset 0 2px var(--stage-accent);color:var(--stage-accent)}
#learning-graph-preview .graph-tabs button b{grid-row:1/3;display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:var(--stage-chip);color:var(--stage-accent);font-size:10px}
#learning-graph-preview .graph-tabs button[aria-selected=true] b{background:var(--stage-accent);color:#fff}
#learning-graph-preview .graph-tabs [data-graph-tab="merge"]{--stage-accent:#986e34;--stage-edge:#d7c3a3;--stage-wash:#faf4e9;--stage-chip:#f2e7d4}
#learning-graph-preview .graph-tabs [data-graph-tab="branch"]{--stage-accent:#367f73;--stage-edge:#afcfc5;--stage-wash:#f0f8f4;--stage-chip:#e3f1eb}
#learning-graph-preview .graph-tabs button span{font-size:12px;font-weight:650;line-height:1.25}
#learning-graph-preview .graph-tabs button small{font-size:10px;color:#7e8b95;line-height:1.3}
#learning-graph-preview .graph-tab-panel[hidden]{display:none}
#learning-graph-preview .graph-tab-count{flex:0 0 auto;padding:5px 8px;border:1px solid #d9e3eb;border-radius:999px;background:#f8fafc;color:#487599;font-size:10px;white-space:nowrap}
/* Compact aligned rows on one shared horizontal canvas. */
#graph-tab-timeline .timeline-playback-position{display:block;margin-bottom:8px;text-align:right;color:#7a8a98;font-size:10px;font-variant-numeric:tabular-nums}
#graph-tab-timeline .timeline-playback-position:empty{display:none}
#graph-tab-timeline .graph-timeline-viewport{max-width:100%;overflow-x:auto;scrollbar-width:thin}
#graph-tab-timeline .graph-timeline-chart{min-width:calc(var(--timeline-columns) * 66px);padding:14px 10px 4px;border:1px solid #e1e8ee;border-radius:10px;background:#fcfdfe}
#graph-tab-timeline .graph-timeline-axis,#graph-tab-timeline .graph-timeline-track{display:grid;grid-template-columns:repeat(var(--timeline-columns),minmax(0,1fr));gap:7px;padding:0 4px}
#graph-tab-timeline .graph-timeline-axis{padding-bottom:12px;border-bottom:1px solid #e7ecf0;color:#8a949d;font-size:10px;text-align:center;font-variant-numeric:tabular-nums}
#graph-tab-timeline .graph-timeline-axis span{border-radius:4px;padding:4px 0;transition:color .2s,background-color .2s}
#graph-tab-timeline .graph-timeline-axis .is-current{color:#315f86;background:#e7eff5}
#graph-tab-timeline .graph-timeline-row{margin:0;padding:16px 0;border:0;background:transparent}
#graph-tab-timeline .graph-timeline-row+.graph-timeline-row{border-top:1px solid #e9eef3}
#graph-tab-timeline .graph-timeline-row>header{margin-bottom:10px;padding:0 4px;color:#566775;font-size:12px;font-weight:500}
#graph-tab-timeline .graph-timeline-track{align-items:stretch}
#graph-tab-timeline .graph-timeline-event{grid-column:var(--timeline-column);grid-row:1;display:flex;flex-direction:column;gap:5px;min-width:0;padding:10px 6px;border:1px solid #e0e7ed;border-top:2px solid #89a0b2;border-radius:7px;background:#fff;overflow-wrap:anywhere;transition:border-color .2s,background-color .2s}
#graph-tab-timeline .graph-timeline-event b{font-size:10px;font-weight:600;letter-spacing:.4px;color:#487599}
#graph-tab-timeline .graph-timeline-event strong{font-size:12px;font-weight:500;line-height:1.4;color:#354a5a}
#graph-tab-timeline .graph-timeline-event small{font-size:11px;line-height:1.4;color:#6b7e8e}
#graph-tab-timeline .graph-timeline-event small:empty{display:none}
#graph-tab-timeline .graph-timeline-event.kind-home{border-top-color:#b49b88}
#graph-tab-timeline .graph-timeline-event.is-current{border-color:#9ab3c8;background:#f0f5fa}
#graph-tab-timeline .graph-timeline-event.is-upcoming{opacity:.55}




#learning-graph-preview .graph-tab-empty{padding:28px;border:1px dashed #ced7df;border-radius:8px;color:#6b7e8e;font-size:11px;text-align:center}
@media(max-width:600px){#learning-graph-preview .graph-tabs{display:flex;overflow-x:auto}.graph-tabs button{min-width:158px}.graph-processing-output{display:block}.graph-processing-output-stats{margin-top:10px;justify-content:flex-start}}


/* Match the Situation's short content and selection transitions. */
#learning-graph-result .graph-svg-node rect,#learning-graph-result .graph-svg-node circle{transition:fill .22s ease,stroke .22s ease,stroke-width .22s ease}
#learning-graph-preview .graph-tabs button,.localization-tabs button,.localization-samples button{transition:background-color .2s ease,border-color .2s ease,color .2s ease,box-shadow .2s ease}
#learning-graph-preview .graph-tabs button b,.localization-tabs button b{transition:background-color .2s ease,color .2s ease}
.motion-off #learning-graph-result *,.motion-off #learning-graph-preview *,.motion-off #control-phase-detail *{transition:none!important}
@media(prefers-reduced-motion:reduce){#learning-graph-result *,#learning-graph-preview * ,#control-phase-detail *{transition:none!important}}

/* The constructed graph is the phase selector inside stage 04. */
#skills-module{scroll-margin-top:108px}
#learning-graph-preview,#parsing-module,#demo-module{scroll-margin-top:108px}

#skills-module #learning-graph-result .module-kicker{font-size:10px;color:#89959e}
#skills-module #learning-graph-result .graph-svg-scroll{background:#fbfdfe}







.graph-processing-output>div>small{display:block;margin-top:5px;color:#6b7e8e;font-size:11px;line-height:1.5}
#learning-card .learning-stage-focus{outline:0;box-shadow:none}
#play-status{max-width:310px;line-height:1.5;text-align:right}
@media(max-width:700px){#skills-module #learning-graph-result{margin-bottom:20px;padding-bottom:18px}#play-status{max-width:100%;text-align:left}}

/* Only the active graph stage contributes to its natural content height. */
#learning-graph-preview .graph-tab-panel{min-width:0}
#learning-graph-preview .graph-tab-panel[hidden]{display:none!important}
#control-phase-detail .localization-result-panel{height:auto;overflow:visible}
#learning-card .phase-temporal-views figure{border-radius:6px}
#learning-card .phase-temporal-views img{position:relative;z-index:-1}
#learning-card .phase-temporal-views figure{isolation:isolate}
#learning-card[data-walkthrough-state=playing] .learning-module>.module-kicker::before,
#learning-card[data-walkthrough-state=playing] .learning-graph-heading .module-kicker::before{content:"";display:inline-block;width:5px;height:5px;margin-right:7px;border-radius:50%;background:currentColor}

@media(max-width:600px){#learning-graph-preview .graph-tabs button{flex:0 0 170px;min-width:170px}}

#learning-graph-preview #graph-tab-merge{height:auto;overflow:visible;scrollbar-gutter:auto}

/* main's sequential gripper cuts use each recorded sequence's actual boundaries. */
#coarse-tracks line{transform-box:fill-box;transform-origin:center top}
#coarse-clips button{transform-origin:left center}

/* Phase playback updates content in place, with a stable height across the sequence. */
#semantic-preview{display:grid;align-items:start}
#semantic-preview .semantic-video-card{grid-area:1/1;min-width:0}
#semantic-preview .semantic-video-card[hidden]{display:block!important;visibility:hidden;pointer-events:none}
.semantic-phase-progress{position:absolute;left:6px;right:6px;bottom:1px;height:3px;border-radius:3px;background:var(--event-accent,#487599);transform:scaleX(0);transform-origin:left;opacity:0;pointer-events:none}

.merge-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px;color:#647987;font-size:12px}
.merge-toolbar>div{display:flex;gap:5px}
.merge-toolbar button,.merge-step-picker button{border:1px solid #dde5ec;border-radius:6px;padding:5px 9px;background:#fff;color:#315f86;font-size:11px;cursor:pointer}
.merge-toolbar button:hover,.merge-step-picker button:hover{background:#f0f5f9}
.merge-single{margin:10px 0 14px;color:#647987;font-size:12px}
#learning-graph-preview .merge-source{transition:border-color .3s,background-color .3s}
#learning-graph-preview .merge-source.merge-resolved{background:var(--merge-wash);border-color:var(--merge-edge);color:var(--merge-color)}
.merge-phase-mark{color:var(--merge-color)}
.merge-phase-mark{flex:none;font-size:9px;line-height:14px;font-style:normal;font-weight:500}
.merge-phase-mark:empty{display:none}

.merge-flow{position:relative;display:flex;align-items:center;flex-direction:column;padding:18px 4px 14px;gap:46px}
.merge-origin-chips{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;width:100%;z-index:1}
.merge-origin-chip{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border:1px solid #d4e0e9;border-radius:6px;background:#f7fafd;color:#59748a;font-size:11px}
.merge-connections{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}
.merge-connections path{fill:none;stroke:#96afc3;stroke-width:1.5;vector-effect:non-scaling-stroke}
.merge-result{z-index:1;display:grid;grid-template-columns:auto minmax(0,1fr);gap:6px 10px;max-width:100%;padding:12px 18px;border:1px solid #a9becf;border-radius:9px;background:#f0f5f9;text-align:left}
.merge-result b{color:#487599;font-size:11px;font-weight:600}
.merge-result strong{color:#3c5364;font-size:13px;font-weight:600;overflow-wrap:anywhere}
.merge-result small{grid-column:1/-1;color:#647987;font-size:11px}
.merge-step-picker{display:flex;flex-wrap:nowrap;gap:8px;margin:0 0 18px;overflow-x:auto;padding:2px 1px 6px}
.merge-step-picker button{display:flex;flex:0 0 auto;align-items:center;gap:10px;padding:9px 12px;white-space:nowrap;font-size:12px}
.merge-step-picker b{font-size:11px;font-weight:500;color:#61798d;padding-right:10px;border-right:1px solid #dde5ec}
.merge-step-picker button[aria-pressed=true]{background:#e5eef5;border-color:#a4bbce;color:#315f86}
.merge-decision{border-top:1px solid #e1e9ef;padding-top:18px}
.merge-decision-heading{display:flex;align-items:center;justify-content:space-between;gap:14px}
.merge-decision-heading h5{font-size:15px;font-weight:500;color:#354a5a;line-height:1.5;margin:5px 0 0}
.merge-verdict{display:grid;flex:none;text-align:right;font-size:12px}
.merge-verdict>*{grid-area:1/1}
.merge-comparing{opacity:0;color:#6b7e8e}
.merge-results{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;z-index:1}
.merge-view[data-merge-outcome=not_merged] .merge-result{background:#faf9f7;border-color:#d6d0c9}
.merge-view[data-merge-outcome=not_merged] .merge-connections path{stroke:#a99b8f}
.merge-sequence-evidence{min-width:0}
.merge-sequence-evidence h6{font-size:12px;color:#315f86;font-weight:500;margin:0 0 10px}
.merge-sequence-evidence .merge-evidence-source+.merge-evidence-source{margin-top:12px}
.merge-recorded-input{border-top:1px solid #e1e9ef;margin-top:18px;padding-top:14px;font-size:12px;color:#647987}
.merge-recorded-input summary{cursor:pointer}
.merge-recorded-sheets{display:grid;gap:12px;margin-top:12px}
.merge-recorded-sheets img{display:block;width:100%;height:auto;border-radius:6px}
@media(max-width:600px){.merge-decision-heading{align-items:flex-start;flex-direction:column}.merge-verdict{text-align:left}.merge-step-picker button{font-size:10px}}
.merge-view button:focus-visible,.merge-view a:focus-visible{outline:2px solid #8ba6bc;outline-offset:3px}
.merge-evidence{padding-top:18px;border-top:1px solid #e1e9ef}
.merge-evidence-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.merge-outcome{font-size:11px;color:#487599}
.merge-reason{margin:10px 0 16px;font-size:12px;line-height:1.65;color:#465058}
.merge-evidence-picker{display:flex;gap:6px;margin:0 0 12px}
.merge-evidence-picker[hidden]{display:none}
.merge-evidence-picker button{border:1px solid #dde5ec;border-radius:6px;background:#fff;color:#61798d;font:inherit;font-size:11px;padding:6px 10px;cursor:pointer}
.merge-evidence-picker button[aria-pressed=true]{background:#e5eef5;border-color:#a4bbce;color:#315f86}
.merge-comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.merge-evidence-source{min-width:0;padding:10px;border:1px solid #e1e9ef;border-radius:8px;background:#fcfdfe}
.merge-evidence-source header{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px;margin-bottom:10px}
.merge-evidence-source header strong{font-size:11px;font-weight:500;color:#315f86}
.merge-evidence-source header span{font-size:10px;color:#6b7e8e}
.merge-image-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.merge-image-pair figure{margin:0;min-width:0}
.merge-image-pair a{display:block;border-radius:5px;overflow:hidden;background:#edf1f5}
.merge-image-pair img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:contain}
.merge-image-pair figcaption{margin-top:4px;color:#6b7e8e;font-size:10px}
.merge-evidence-source>p,.merge-no-images{margin:8px 0 0;color:#647987;font-size:11px;line-height:1.55}
.merge-no-images{grid-column:1/-1;min-height:60px}
@media(max-width:600px){.merge-comparison{grid-template-columns:1fr}.merge-origin-chip{display:inline-flex;align-items:center;gap:6px;padding:4px 6px}.merge-result{padding:12px}}
@media(prefers-reduced-motion:reduce){#learning-graph-preview .merge-source{transition:none}}
.motion-off #learning-graph-preview .merge-source{transition:none}

/* Branch choices connect the recorded state to its actual next actions. */
#learning-graph-preview #graph-tab-branch{height:auto;overflow:visible}
.branch-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:18px}
.branch-decision-picker{display:flex;flex-wrap:wrap;gap:6px}
.branch-toolbar button{padding:6px 10px;border:1px solid #dde5ec;border-radius:6px;background:#fff;color:#647987;font-size:11px;white-space:nowrap}
.branch-toolbar button[aria-pressed=true]{background:#e6eef5;border-color:#a5bcce;color:#315f86}
.branch-toolbar>[data-branch-play]{flex:none}
.branch-decision{min-width:0}
.branch-decision[hidden]{display:none!important}
.branch-context{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 9px;padding:11px 13px;border:1px solid #e1e8ee;border-radius:7px;background:#f8fafc;color:#647987;font-size:12px;line-height:1.6}
.branch-context b{font-size:11px;font-weight:600;color:#487599}
.branch-context strong{font-size:12px;font-weight:500;color:#354a5a}
.branch-evidence-grid{display:grid;grid-template-columns:repeat(var(--branch-count),minmax(0,1fr));gap:14px;margin-top:20px;align-items:start}
.branch-case-evidence{--case-accent:#367f73;--case-edge:#a6c9bd;--case-wash:#f5faf7;min-width:0;padding:12px;border:1px solid #e1e9ef;border-radius:8px;border-top:2px solid var(--case-accent);background:#fff;transition:border-color .3s,background .3s}
.branch-case-evidence:nth-child(3n+2){--case-accent:#986e34;--case-edge:#d0b994;--case-wash:#fcf9f2}
.branch-case-evidence:nth-child(3n){--case-accent:#487599;--case-edge:#a7bfd1;--case-wash:#f3f7fb}
.branch-case-evidence.is-selected{border-color:var(--case-edge);border-top-color:var(--case-accent);background:var(--case-wash)}
.branch-case-heading{display:flex;align-items:baseline;flex-wrap:wrap;gap:5px 8px;width:100%;padding:0;text-align:left}
.branch-case-heading b{font-size:12px;font-weight:600;color:var(--case-accent)}
.branch-case-heading span{font-size:10px;color:#6b7e8e;line-height:1.5}
.branch-condition{margin:10px 0 12px;color:#434c53;font-size:12px;line-height:1.65}
.branch-case-evidence figure{margin:0}
.branch-case-evidence figure>a{display:block;border:1px solid #e1e8ee;border-radius:5px;overflow:hidden;background:#f8fafc}
.branch-case-evidence img{display:block;width:100%;height:auto}
.branch-case-evidence figcaption{margin-top:5px;font-size:10px;color:#6b7e8e}
.branch-next{margin-top:16px;padding-top:12px;border-top:1px solid #e1e9ef}
.branch-next .module-kicker{font-size:9px}
.branch-next button{display:flex;align-items:baseline;flex-wrap:wrap;gap:5px 8px;padding:0;margin:6px 0;text-align:left;color:#3c5364}
.branch-next button b{font-size:10px;color:var(--case-accent);font-weight:500}
.branch-next button span{font-size:12px;font-weight:500}
.branch-next p{font-size:11px;line-height:1.65;color:#647987;overflow-wrap:anywhere}
.branch-saved-reason{margin-top:18px;padding-top:15px;border-top:1px solid #e1e8ee}
.branch-saved-reason .module-kicker{font-size:9px}
.branch-saved-reason p{margin-top:7px;font-size:12px;line-height:1.65;color:#647987;overflow-wrap:anywhere}
.branch-missing{font-size:11px;line-height:1.6;color:#6b7e8e}
.branch-single{padding:20px;border:1px solid #e1e8ee;border-radius:9px;background:#fcfdfe}
.branch-single h4{margin:0 0 6px;color:#354a5a;font-size:16px}
.branch-single p{font-size:12px;line-height:1.6;color:#6b7e8e}
.branch-view button:focus-visible,.branch-view a:focus-visible{outline:2px solid #8ba6bc;outline-offset:3px}
@media(max-width:600px){.branch-evidence-grid{grid-template-columns:1fr}.branch-toolbar{gap:8px}}
@media(prefers-reduced-motion:reduce){.branch-view *{transition:none!important}}
.motion-off .branch-view *{transition:none!important}

/* Localization learning: horizontal graph, then one centered evidence panel. */
#skills-module.learning-stage-focus{outline:0;box-shadow:none}
#skills-module .localization-workspace{display:grid;grid-template-columns:minmax(0,1fr);gap:28px;margin-top:16px}
#skills-module #learning-graph-result{min-width:0;margin:0;padding:0 0 22px;border:0;border-bottom:1px solid #e1e8ee}

.localization-phase-count,.localization-graph-note{font-size:12px;color:#61798d}
.localization-graph-note{margin:10px 0 0;line-height:1.5}
#learning-graph-result .graph-svg-scroll{max-height:none;overflow:auto;overscroll-behavior-x:contain;background:#fcfdfe}
#learning-graph-result .graph-svg-host{display:flex;justify-content:center;width:max-content;min-width:100%;padding:12px;box-sizing:border-box}
#learning-graph-result .situation-graph-svg{display:block;flex:none;width:auto;height:auto;min-width:0;min-height:0;max-width:none}
#learning-graph-result .graph-svg-phase{font-size:11px;font-weight:500;letter-spacing:.2px}
#learning-graph-result .graph-svg-title{font-size:12px;font-weight:500}
#learning-graph-result .graph-svg-edge{marker-end:url(#learning-phase-arrow);stroke:#b3c2cf}
#learning-graph-result .graph-svg-node.state{cursor:default}
#learning-graph-result .graph-svg-node.state circle{fill:#fff;stroke:#a1b5c5}
#learning-graph-result .graph-svg-node.state .state-center{fill:#a1b5c5;stroke:none}
#learning-graph-result .graph-svg-node.selected rect{stroke:#487599;fill:#e6eff6;stroke-width:2}
#learning-graph-result .graph-svg-node:focus-visible rect{stroke:#506e87;stroke-width:2.5}
#skills-module #control-overview{width:100%;margin:0;min-width:0;padding:0;border:0}
#control-phase-detail{--localization-content-height:340px;--localization-tabs-height:53px;--localization-tabs-gap:12px}
.localization-phase-heading{min-height:38px;display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
.localization-phase-heading>div{display:flex;align-items:baseline;gap:10px;min-width:0}
.localization-phase-heading h4{font-size:18px;font-weight:500;line-height:1.5;margin:0;color:#354a5a}
.localization-skill{flex:none;font-size:12px;color:#315f86;background:#f8fafc;border:1px solid #d9e3eb;border-radius:20px;padding:5px 10px}
.localization-phase-heading>.localization-heading-actions{align-items:center;flex-shrink:0;gap:8px}
.localization-heading-actions button,.localization-image-switch button,.localization-samples button{background:#fff;border:1px solid #dde5ec;color:#315f86;border-radius:6px;padding:6px 11px;font:inherit;font-size:12px;cursor:pointer}
.localization-tabs{height:var(--localization-tabs-height);position:relative;display:flex;align-items:center;gap:8px;overflow-x:auto;scrollbar-width:thin;padding-bottom:12px;margin-bottom:12px;border-bottom:1px solid #e1e8ee}
.localization-tabs button{flex:0 0 auto;min-height:40px;display:flex;align-items:center;gap:8px;padding:8px 12px;background:#f8fafc;border:1px solid #e8eef3;border-radius:8px;color:#61798d;cursor:pointer;text-align:left;white-space:nowrap}
.localization-tabs button:hover{background:#f8fafc}
.localization-tabs button[aria-selected=true]{border-color:#b2c6d7;background:#e6eef5;color:#315f86}
.localization-tabs button b{display:grid;place-items:center;width:23px;height:23px;flex:none;border-radius:50%;background:#e8eff4;color:#487599;font-size:10px;font-weight:500}
.localization-tabs button[aria-selected=true] b{background:#487599;color:#fff}
.localization-tabs button span{font-size:13px;font-weight:500;line-height:1.4}
.localization-tabs button small{display:none}
#control-phase-detail button:focus-visible,#control-phase-detail a:focus-visible{outline:2px solid #8ba6bc;outline-offset:3px}
.localization-result-body{height:var(--localization-content-height);display:grid;grid-template-columns:minmax(0,2fr) minmax(220px,1fr);gap:28px;align-items:center}
#control-phase-detail:not(:has(>.localization-tabs)) .localization-result-body{height:calc(var(--localization-content-height) + var(--localization-tabs-height) + var(--localization-tabs-gap))}
.localization-result-body>div{min-width:0;min-height:0;width:100%;height:100%}
.localization-result-body>aside{padding:4px 0 0 24px;border-left:1px solid #e1e8ee;display:grid;gap:18px}
.localization-result-body>aside:empty{display:none}
.localization-result-body:has(>aside:empty){grid-template-columns:1fr}
.localization-gallery{width:100%;height:100%;margin:0;display:grid;grid-template-rows:34px minmax(0,1fr) 44px;gap:10px}
.localization-gallery.has-image-pair{grid-template-rows:minmax(0,1fr) 44px}
.localization-image-pair{grid-row:1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;min-height:0}
.localization-gallery.has-image-pair>.localization-samples{grid-row:2}
.localization-result-body.is-geometry{grid-template-columns:minmax(0,1fr) 220px;gap:24px}
.localization-gallery.geometry-gallery{grid-template-rows:34px minmax(0,1fr);gap:14px}
.geometry-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
.geometry-toolbar .localization-samples,.geometry-toolbar .localization-image-switch{margin:0;flex-wrap:nowrap}
.geometry-views{display:grid;grid-template-columns:repeat(var(--camera-count,3),minmax(0,1fr));gap:14px;min-height:0;align-items:center}
.geometry-views .localization-figure{height:auto;max-height:100%;grid-template-rows:minmax(0,1fr) 24px}
.geometry-views .localization-figure a{aspect-ratio:1;max-height:268px}
.geometry-views .localization-figure figcaption{font-size:13px;text-align:center;color:#47545f}
.validation-gallery .geometry-views{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:18px}
.validation-gallery .geometry-views .localization-figure:first-child a{aspect-ratio:16/10}
.segmentation-gallery .geometry-views .localization-figure a{aspect-ratio:4/3}
.localization-evidence-key{font-size:12px;color:#61798d;text-align:right}
.localization-frame-row{height:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;min-height:0;align-items:start;align-content:center}
.localization-image-switch{grid-row:1;display:flex;justify-content:center;gap:6px}
.localization-image-switch[hidden]{display:none}
.localization-image-switch button[aria-pressed=true],.localization-samples button[aria-pressed=true]{background:#e5eef5;border-color:#a4bbce;color:#315f86}
.localization-figure{margin:0;min-width:0;min-height:0;height:100%;display:grid;grid-template-rows:minmax(0,1fr) 24px;gap:4px}
.localization-gallery>.localization-figure{grid-row:2}
.localization-figure a{min-height:0;display:block;overflow:hidden;border:1px solid #dfe7ed;border-radius:8px;background:#f9fbfc}
.localization-figure img{display:block;width:100%;height:100%;object-fit:contain}
.localization-frame-row .localization-figure{height:auto;grid-template-rows:auto 24px}
.localization-frame-row img{height:auto}
.localization-figure figcaption{margin:0;font-size:12px;line-height:1.5;color:#61798d}
.localization-samples{grid-row:3;display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:0}
.localization-samples>span{margin-left:auto;font-size:11px;color:#74828e}
.localization-facts{display:grid;grid-template-columns:1fr;gap:14px 22px;margin:0}
.localization-facts dt{font-size:12px;line-height:1.5;color:#61798d;margin-bottom:4px}
.localization-facts dd{font-size:14px;line-height:1.6;color:#354a5a;margin:0;overflow-wrap:anywhere}
.localization-metric{display:grid;gap:8px;padding-bottom:14px;border-bottom:1px solid #e1e8ee}
.localization-metric small{font-size:13px;color:#566775}
.localization-metric strong{font-size:26px;font-weight:500;color:#487599;letter-spacing:-.3px}
.localization-metric>span{font-size:12px;color:#61798d}
.localization-route-note{margin:0;font-size:12px;line-height:1.6;color:#61798d}
.training-curves{height:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:minmax(0,1fr) 24px;gap:12px}
.localization-result-body.is-training{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) 74px;gap:18px}
.localization-result-body.is-training>aside{border-left:0;border-top:1px solid #e1e8ee;padding:14px 0 0}
.localization-result-body.is-training .localization-facts{grid-template-columns:repeat(3,minmax(0,1fr))}
.training-caption{grid-column:1/-1}

.training-chart{min-width:0;min-height:0;display:grid;grid-template-rows:22px 30px minmax(0,1fr);margin:0;border:1px solid #dfe7ed;border-radius:8px;padding:14px 14px 4px;background:#fff}
.training-chart figcaption{font-size:14px;font-weight:500;color:#354a5a}
.training-legend{display:flex;gap:16px;flex-wrap:wrap;margin-top:8px;font-size:11px;color:#61798d}
.training-legend span{display:flex;align-items:center;gap:6px}
.training-legend i{width:14px;height:2px;display:inline-block}
.training-chart svg{display:block;width:100%;height:100%;overflow:visible}
.training-chart svg text{font-size:11px;fill:#61798d}
.training-grid{stroke:#e8eef3;stroke-width:1}
.training-line{fill:none;stroke-width:1.8;vector-effect:non-scaling-stroke}
.training-point{opacity:0}
.training-point:hover{opacity:1}
.training-caption{margin:0;font-size:12px;color:#61798d}
.training-caption a{color:#315f86;text-underline-offset:3px}
.localization-empty{height:100%;min-height:0;display:flex;flex-direction:column;justify-content:center;border:1px dashed #d4e0e9;border-radius:8px;padding:24px;color:#61798d;font-size:14px;line-height:1.6}
.localization-empty strong{font-size:18px;font-weight:500}
.localization-empty p{margin:8px 0 0}
@media(max-width:700px){
 #control-phase-detail{--localization-content-height:620px;--localization-tabs-height:64px}
 .localization-result-body.is-geometry{grid-template-columns:1fr;gap:20px}
 .localization-gallery.geometry-gallery{grid-template-rows:76px minmax(0,1fr);gap:8px}
 .geometry-toolbar{flex-wrap:wrap;gap:6px}
 .geometry-views{gap:6px}
 .validation-gallery .geometry-views{gap:8px;grid-template-columns:1fr 1fr}
 .localization-evidence-key{font-size:10px;text-align:left}
 .geometry-views .localization-figure figcaption{font-size:12px}
 .localization-result-body{grid-template-columns:1fr;grid-template-rows:260px minmax(0,1fr);gap:20px;align-items:start}
 .localization-result-body.is-training{grid-template-rows:minmax(0,1fr) 100px}
 .training-curves{grid-template-columns:1fr;grid-template-rows:repeat(2,minmax(0,1fr)) 44px}
 .training-caption{line-height:1.5}
 .localization-result-body:has(>aside:empty){grid-template-rows:1fr}
 .localization-result-body>aside{padding:18px 0 0;border-left:0;border-top:1px solid #e1e8ee}
 .localization-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
 .localization-metric{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px 14px}
}
@media(max-width:600px){
 .localization-phase-heading{height:80px;min-height:80px;align-items:flex-start;flex-wrap:wrap}
 .localization-tabs button span{font-size:12px}
 .localization-samples>span{width:100%;margin-left:0}
 .localization-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Keep evidence previews on the current page. */
.localization-figure a{cursor:zoom-in}
.localization-preview{position:fixed;inset:0;width:min(1100px,94vw);max-width:94vw;max-height:92dvh;margin:auto;padding:18px;border:1px solid #d4e0e9;border-radius:14px;background:#fff;box-shadow:0 24px 80px #1728354d;color:#354a5a}
.localization-preview::backdrop{background:#15232e99}
.localization-preview[open]{display:flex;flex-direction:column;gap:14px}
.localization-preview header{display:flex;align-items:center;justify-content:space-between;gap:16px;flex:none}
.localization-preview h2{margin:0;font-size:16px;font-weight:500}
.localization-preview button{flex:none;border:1px solid #d4e0e9;border-radius:7px;padding:8px 12px;background:#f8fafc;color:#315f86;font:inherit;cursor:pointer}
.localization-preview button:focus-visible{outline:2px solid #8ba6bc;outline-offset:3px}
.localization-preview>img{display:block;min-height:0;max-width:100%;max-height:calc(92dvh - 100px);object-fit:contain;border-radius:6px}

/* Keep the relative-grasp review and selected wrist reference side by side. */
.relative-image-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;height:100%;min-height:0}
.relative-image-pair>.localization-figure:only-child{grid-column:1/-1}
@media(max-width:700px){
 .localization-result-body:has(.relative-image-pair){grid-template-rows:minmax(0,1fr) auto}
 .relative-image-pair{grid-template-columns:1fr;grid-template-rows:repeat(2,minmax(0,1fr))}
}

/* The control heading groups the stage title and its graph input. */
#learning-card{--purple:#487599}
.control-section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px}
#skills-module .control-section-heading h3{margin:4px 0 0;color:#171717}
.control-section-heading .module-kicker{margin:0;font-size:11px;line-height:1.5;color:#527591}
.control-section-meta{display:grid;gap:4px;flex:none;text-align:right}
.control-section-meta .localization-phase-count{color:#61798d}
@media(max-width:700px){.control-section-heading{align-items:flex-start;flex-direction:column;gap:14px}.control-section-meta{display:flex;align-items:center;justify-content:space-between;width:100%;text-align:left}}
