:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#263e36;background:#f4f6f2;font-synthesis:none;--rail:256px;--yellow:#f6d025;--video-ratio:1.777778}*{box-sizing:border-box}body{margin:0}button,input,a{font:inherit}button{cursor:pointer;border:1px solid #dce5dc;border-radius:8px;background:#fafcf8;color:#3c5b4d;padding:9px 13px}button:hover{background:#e9f0e7}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #82b5a2;outline-offset:3px}button:disabled{opacity:.4;cursor:default}button[hidden],[hidden]{display:none!important}.workspace{width:calc(100% - var(--rail));height:100dvh;min-height:480px;position:relative;overflow:hidden}.main-heading{position:absolute;z-index:6;inset:27px 30px auto;display:flex;justify-content:space-between;gap:15px;pointer-events:none}.main-heading button{pointer-events:auto}.eyebrow{display:flex;align-items:center;gap:9px;font-size:9px;letter-spacing:2px;color:#849287;font-weight:600}.brandmark{height:11px;width:11px;border:3px solid #537868;transform:rotate(-12deg);border-radius:2px}h1{font-size:31px;font-weight:550;letter-spacing:-1px;margin:17px 0 8px}.main-heading p{font-size:10px;color:#8b998e;margin:0}.main-heading p span{margin:0 8px}.header-tools{display:flex;align-items:flex-start;gap:12px;padding-top:5px}.mode-tag{font-size:9px;color:#8a998d;padding:5px 8px;background:#e8eee7;border-radius:5px;white-space:nowrap}#watch-video{font-size:10px;padding:5px 8px;border:0;background:none;color:#74907e}.scene{position:absolute;inset:0 0 75px;opacity:0;pointer-events:none;transition:opacity .45s}.scene.visible{opacity:1;pointer-events:auto}#viewport{position:absolute;inset:145px 0 24px;overflow:hidden}#viewport canvas{display:block;width:100%;height:100%;touch-action:none}#annotations{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}.annotation-number{font:600 13px Inter,-apple-system,sans-serif;fill:#6d5c0a;paint-order:stroke;stroke:#fff6c8;stroke-width:.4px;text-anchor:middle;dominant-baseline:central}.annotation-line{fill:none;stroke:#f6d025;stroke-width:2;stroke-dasharray:6 5;stroke-linecap:round;filter:drop-shadow(0 1px 1px #6e70454d)}.annotation-angle{fill:#e1b812;font-size:19px;font-weight:550;paint-order:stroke;stroke:#f4f6f2;stroke-width:3px}.scene-top{position:absolute;z-index:3;top:149px;left:30px;right:25px;display:flex;justify-content:space-between;align-items:flex-start;pointer-events:none}.ref-badge{display:flex;gap:9px;align-items:center;background:#f8faf5dc;padding:8px 10px;border:1px solid #e3e9df;border-radius:9px}.ref-badge>span{display:grid;place-items:center;width:27px;height:27px;border-radius:50%;background:#f9d431;color:#746017;font-size:12px;font-weight:650}.ref-badge small{display:block;font-size:7px;letter-spacing:1.3px;color:#8e9d8a;margin-bottom:4px}.ref-badge strong{font-size:10px;font-weight:550}.view-switch{display:flex;background:#fafbf8;border:1px solid #dce5dc;border-radius:9px;padding:3px;pointer-events:auto}.view-switch button{border:0;background:none;padding:6px 8px;font-size:10px}.view-switch button[aria-pressed=true]{background:#e5ede3;border-radius:5px}.scene-bottom{position:absolute;bottom:0;left:30px;right:30px;display:flex;justify-content:space-between;gap:15px;align-items:center;font-size:10px;color:#7c927f}#phase{font-weight:500}.view-help{font-size:8px;color:#a1ad9c}.diagram-title{font-size:9px;font-weight:550;color:#5d7b68}.diagram-caption{font-size:8px;line-height:1.5;color:#879b86}#ref-diagram{position:absolute;left:28px;bottom:42px;width:170px;padding:13px 12px 10px;border:1px solid #e0e7da;border-radius:12px;background:#fbfcf7ed;pointer-events:none}#diagram{width:100%;display:block;margin:2px 0}.diagram-line{stroke:#ecc820;stroke-width:2.5;stroke-dasharray:5 4;fill:none}.diagram-number{font-size:18px;font-weight:650;fill:#786309;text-anchor:middle;dominant-baseline:central}.diagram-muted{opacity:.37}#intro{position:absolute;z-index:7;inset:137px 28px 38px;display:flex;flex-direction:column;justify-content:center;gap:18px;transition:opacity .6s}#intro.leaving{opacity:0;pointer-events:none}.video-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.video-heading>div>span{font-size:8px;letter-spacing:1.6px;color:#92a28d}.video-heading h2{font-size:19px;font-weight:500;letter-spacing:-.3px;margin:7px 0 0}.video-heading button{font-size:10px;white-space:nowrap}.video-frame{position:relative;align-self:center;flex:none;width:min(100%,calc((100dvh - 300px)*var(--video-ratio,1.777778)));aspect-ratio:var(--video-ratio,1.777778);background:#e8ede6;border-radius:9px;overflow:hidden}.video-frame video{width:100%;height:100%;display:block;object-fit:contain}#play-video{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;gap:10px;align-items:center;color:#fff;background:#365e50ef;border:1px solid #ffffff3b;box-shadow:0 5px 20px #142e2940;font-size:12px;padding:14px 20px;white-space:nowrap}.video-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:8px;color:#8b9d87}.video-footer strong{font-weight:500}.video-footer i{font-style:normal;padding:0 9px}#video-note{text-align:right;max-width:42%;line-height:1.5}#playback{position:absolute;bottom:19px;left:30px;right:30px;display:flex;align-items:center;gap:10px}#playback button{font-size:12px;padding:6px 10px}#playback span{font-size:9px;color:#8fa08b;white-space:nowrap}#playback input{flex:1;min-width:10px;accent-color:#719a7c;height:3px}.end-label{margin-left:5px}#pose-dissolve{position:absolute;inset:0;width:100%;height:100%;z-index:2;pointer-events:none;transition:opacity .55s}.transitioning .scene-top,.transitioning .scene-bottom,.transitioning #ref-diagram,.transitioning #annotations,.transitioning #playback{visibility:hidden}.library{overflow-anchor:none;position:fixed;inset:0 0 0 auto;width:var(--rail);height:100dvh;padding:29px 20px 20px;background:#f9faf7;border-left:1px solid #e0e6dc;display:flex;flex-direction:column;gap:25px;overflow:auto}.library header h2{font-size:17px;font-weight:550;letter-spacing:-.4px;margin:13px 0 6px}.library header p{font-size:9px;color:#a2ad9d;margin:0}.library h3{font-size:10px;color:#8a9d84;margin:0 0 10px;font-weight:500}.task-switch{display:flex;gap:4px;background:#edf2e9;padding:4px;border-radius:9px}.task-switch button{font-size:10px;padding:10px 9px;flex:1;border:0;background:none;color:#809478;white-space:nowrap}.task-switch button[aria-pressed=true]{background:#fff;box-shadow:0 1px 5px #718b651a;color:#355a40}.section-label{display:flex;align-items:baseline;justify-content:space-between}.section-label>span{font-size:8px;color:#a3afa0}#reference-list{display:flex;flex-direction:column;gap:7px}.reference-card{display:flex;align-items:center;gap:10px;padding:9px 8px;width:100%;text-align:left;border-color:transparent;background:none;position:relative;min-height:65px}.reference-card[aria-pressed=true]{border-color:#ccdcbc;background:#fff;box-shadow:0 2px 7px #687d5810}.reference-card:hover{background:#eef3e8}.reference-card img{width:71px;height:47px;object-fit:cover;border-radius:5px;background:#dce9e0}.card-copy{display:flex;flex-direction:column;gap:6px;min-width:0}.card-copy strong{font-size:11px;font-weight:550;color:#4a6546}.card-copy small{font-size:8px;color:#96a38c;line-height:1.4}.card-number{position:absolute;left:3px;top:3px;border:2px solid #f9faf7;display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#f6d22e;color:#806815;font-weight:650;font-size:9px}.reference-card[aria-pressed=false] .card-number{background:#eee9c9;color:#9a9161}.library-footer{margin-top:auto;display:flex;flex-direction:column;gap:10px;padding-top:15px;font-size:9px}.library-footer a{text-decoration:none;color:#809774}.library-footer a:hover{text-decoration:underline}.fixed-note{display:flex;align-items:center;gap:6px;color:#a0ad97;font-size:8px;line-height:1.5}.fixed-note>span{width:5px;height:5px;border-radius:50%;background:#e5c742;flex:none}#loading{position:absolute;inset:0;z-index:20;display:grid;place-items:center;color:#819377;background:#f4f6f2;font-size:12px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(max-width:1000px){:root{--rail:202px}.library{padding:25px 12px 18px;gap:22px}.library header h2{font-size:15px}.library header p{font-size:8px}.reference-card{gap:7px;padding:9px 6px}.reference-card img{width:60px;height:43px}.card-copy strong{font-size:10px}.card-copy small{font-size:7px}.task-switch button{font-size:9px;padding:9px 7px}.main-heading{inset:25px 22px auto}.scene-top{left:21px;right:17px}.view-switch button{font-size:9px;padding:6px}.ref-badge{gap:7px;padding:6px 8px}.ref-badge strong{font-size:9px}.ref-badge small{font-size:6px}#intro{left:21px;right:21px}.video-heading h2{font-size:17px}#ref-diagram{width:135px;left:18px;padding:10px;bottom:38px}.diagram-caption{font-size:7px}.diagram-title{font-size:8px}.scene-bottom{left:23px;right:23px}.view-help{font-size:7px}#playback{left:23px;right:23px}.header-tools{flex-direction:column;align-items:flex-end;gap:5px}.video-footer{font-size:7px}.video-footer i{padding:0 5px}}
@media(max-width:650px){:root{--rail:150px}.library{padding:21px 8px;gap:19px}.library .eyebrow{font-size:7px;letter-spacing:1.5px}.library header h2{font-size:13px}.library header p{font-size:7px;line-height:1.5}.task-switch{flex-direction:column;padding:3px}.reference-card{gap:6px;padding:8px 5px;min-height:61px}.reference-card img{width:46px;height:38px}.card-copy strong{font-size:9px}.card-copy small{font-size:6px}.card-number{width:17px;height:17px;font-size:8px}.main-heading{left:16px;right:16px}.main-heading .eyebrow{font-size:7px;letter-spacing:1px}h1{font-size:27px}.main-heading p{font-size:8px}.mode-tag{font-size:7px}#watch-video{font-size:8px}.scene-top{left:13px;right:10px;top:146px;flex-wrap:wrap;gap:8px}.ref-badge{padding:5px}.view-switch{margin-left:auto}.view-switch button{font-size:8px;padding:5px}#intro{left:14px;right:14px}.video-heading h2{font-size:15px}.video-heading button{font-size:8px;padding:8px}.video-heading>div>span{font-size:7px}#play-video{font-size:10px;padding:12px 15px}.video-footer{font-size:6px}#video-note{display:none}#ref-diagram{width:110px;left:13px;padding:8px}.diagram-title{font-size:7px}.diagram-caption{font-size:6px}.view-help{display:none}.scene-bottom{left:16px}#playback{left:15px;right:15px;gap:7px}.end-label{display:none}.library-footer{font-size:8px}.fixed-note{font-size:7px}.library h3{font-size:9px}.section-label>span{font-size:7px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

.environment-switch{display:flex;gap:4px;background:#edf2e9;padding:4px;border-radius:9px}.environment-switch button{flex:1;min-width:0;font-size:10px;padding:9px 6px;border:0;background:none;color:#809478;white-space:nowrap}.environment-switch button[aria-pressed=true]{background:#fff;box-shadow:0 1px 5px #718b651a;color:#355a40}.flow-marker{fill:#f6d025;stroke:#a18113;stroke-width:1.4;filter:drop-shadow(0 1px 2px #536b3a66)}.flow-number{font:600 10px Inter,-apple-system,sans-serif;fill:#70580d;text-anchor:middle;dominant-baseline:central;pointer-events:none}.flow-marker.consumed,.flow-number.consumed{opacity:0}
@media(max-width:1000px){.environment-switch button{font-size:9px;padding:9px 5px}}
@media(max-width:650px){.environment-switch{gap:2px;padding:3px}.environment-switch button{font-size:8px;padding:8px 3px}}

.flow-number{font-size:10px;font-weight:650;fill:#756011;paint-order:stroke;stroke:#fff8d7;stroke-width:3px;stroke-linejoin:round}

.presentation-switch{display:flex;gap:4px;background:#e9eee8;padding:4px;border-radius:9px}.presentation-switch button{flex:1;font-size:10px;padding:8px 5px;border:0;background:none}.presentation-switch button[aria-pressed=true]{background:#fff;box-shadow:0 1px 5px #426b4915;color:#315d48}.method-link{border:0;background:none;padding:8px 0 0;color:#718975;font-size:9px}.library{gap:19px}.library .presentation-section h3{margin-bottom:7px}.transitioning #algorithm-panel{visibility:hidden}
#method-dialog{max-width:580px;width:calc(100vw - 40px);max-height:calc(100dvh - 40px);overflow:auto;border:1px solid #dbe3d8;border-radius:18px;padding:24px 28px;color:#314939;background:#fafcf8;box-shadow:0 20px 90px #17352d33}#method-dialog::backdrop{background:#17352d66;backdrop-filter:blur(4px)}.method-heading{display:flex;justify-content:space-between;align-items:center}.method-heading button{font-size:18px;border:0;padding:3px 9px}#method-title{font-size:25px;font-weight:550;letter-spacing:-.6px;margin:16px 0 24px}.method-steps{padding-left:22px}.method-steps li{padding-left:9px;margin-bottom:20px;color:#667d65;font-size:13px}.method-steps strong{font-size:14px;color:#34553f;font-weight:550}.method-steps p{line-height:1.65;margin:6px 0}.method-types{display:flex;gap:12px;padding:15px 0;border-block:1px solid #e2e8dc;font-size:12px;justify-content:space-between;color:#74866b}.method-types b{display:block;margin-bottom:6px;font-size:10px;color:#3c634a;font-weight:550}.method-caveat{font-size:11px;line-height:1.7;color:#768371;margin-top:20px}.method-source{font-size:10px;line-height:1.65;color:#8c9985}.method-source a{color:#547b62}.method-source em{font-style:normal}@media(max-width:650px){.library{gap:15px}.presentation-switch button{font-size:8px}.method-link{font-size:8px}}

/* A consistent reference-type label links the task header to its action mask. */
.reference-type-badge{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border:1px solid #e9d99b;background:#fbf5de;color:#746128;border-radius:6px;letter-spacing:0;white-space:nowrap}.reference-type-badge small{font-size:7px;letter-spacing:1px;color:#a58e4f}.reference-type-badge strong{font-size:13px;font-weight:650}.main-heading>div:first-child{min-width:0}.main-heading .eyebrow{flex-wrap:wrap;row-gap:6px;font-size:8px;letter-spacing:1.6px}.main-heading h1{font-size:28px;line-height:1.15;margin:12px 0 0;text-shadow:0 1px 4px #f4f6f2,0 0 14px #f4f6f2}.task-switch{flex-direction:column;gap:3px}.task-switch button{text-align:left;white-space:normal;line-height:1.35;padding:9px 10px}.reference-instruction{font-size:10px;line-height:1.6;color:#627b68;margin:0 0 12px;padding:0 0 12px;border-bottom:1px solid #e0e7dc}.algorithm-heading-copy{display:flex;align-items:center;gap:9px;min-width:0}.algorithm-ref-type{font-size:9px;font-weight:600;color:#8e742c;background:#fbf5df;border:1px solid #eaddb1;border-radius:4px;padding:3px 7px;white-space:nowrap}.algorithm-heading h2{margin-bottom:0}
@media(max-width:700px){.reference-type-badge{padding:4px 6px}.reference-type-badge strong{font-size:10px}.reference-type-badge small{font-size:6px}.main-heading h1{font-size:24px}.reference-instruction{font-size:9px}.algorithm-heading-copy{gap:5px}.algorithm-ref-type{font-size:8px;padding:2px 5px}}

:root{--algorithm-height:245px;--algorithm-blue:#589dcc;--algorithm-purple:#9c69bd}
body.algorithm-visible .scene{bottom:calc(75px + var(--algorithm-height))}
body.algorithm-visible #viewport{top:126px;bottom:22px}
body.algorithm-visible .scene-top{top:126px}
body.algorithm-visible #ref-diagram{display:none}
body.algorithm-visible .scene-bottom{font-size:9px}
body.algorithm-visible .view-help{font-size:7px}
.transitioning #algorithm-panel{visibility:hidden}
.algorithm-panel{position:absolute;z-index:5;left:22px;right:22px;bottom:66px;height:var(--algorithm-height);padding:12px 14px 10px;border:1px solid #dde5e1;border-radius:13px;background:#fbfcf9;box-shadow:0 5px 21px #314b3c05;display:flex;flex-direction:column;gap:7px;color:#405349}
.algorithm-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;flex:none;min-height:29px}
.algorithm-heading-copy{min-width:0}
.algorithm-heading h2{font-size:12px;font-weight:600;letter-spacing:-.15px;line-height:1.3;margin:0 0 3px}
.algorithm-summary{font-size:8px;line-height:1.4;color:#7d8e80;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.algorithm-window-toggle{font-size:8px;color:#8d7a9c;display:flex;gap:4px;align-items:center;flex:none;padding-top:2px;white-space:nowrap;cursor:pointer}
.algorithm-window-toggle input{accent-color:var(--algorithm-purple);width:10px;height:10px;margin:0}
.algorithm-frames{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;min-height:42px;flex:none}
.algorithm-frame{display:flex;align-items:center;gap:7px;min-width:0;text-align:left;padding:4px;border:1px solid #e2e9e3;border-radius:7px;background:#f5f8f2;height:42px;color:#607565}
.algorithm-frame:hover{background:#eef4eb;border-color:#c8d8c8}
.algorithm-frame.is-current{border-color:#c5afd4;background:#f4eef8}
.algorithm-frame:disabled{opacity:.7}
.algorithm-frame img{width:47px;height:32px;object-fit:cover;border-radius:4px;background:#e2e9df;flex:none}
.algorithm-frame>span{display:flex;min-width:0;flex-direction:column;gap:3px}
.algorithm-frame strong{font-size:8px;font-weight:550;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.algorithm-frame small{font-size:7px;color:#8b998b;white-space:nowrap}
.algorithm-timeline{position:relative;flex:1;min-height:123px;max-height:142px;touch-action:none;cursor:crosshair;border-radius:4px;outline-offset:2px}
.algorithm-timeline:focus-within{outline:2px solid #bc9bd0}
.algorithm-timeline.is-disabled{cursor:default}
.algorithm-scrub-input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;clip-path:inset(50%);border:0}
.algorithm-plot{display:block;width:100%;height:100%;overflow:visible;user-select:none}
.algorithm-mask-row{fill:#e9edeb}
.algorithm-axis-label{font:500 10px Inter,-apple-system,sans-serif;fill:#829188}
.algorithm-axis-ticks{font:8px Inter,-apple-system,sans-serif;fill:#99a59a}
.algorithm-axis-ticks path{stroke:#c5d0c7;stroke-width:1}
.algorithm-local-window{fill:#ad82c8;opacity:.09;pointer-events:none}
.algorithm-anchor{cursor:pointer;outline:none}
.algorithm-timeline.is-disabled .algorithm-anchor{cursor:default}
.algorithm-anchor-hit{fill:transparent}
.algorithm-anchor-line{fill:none;stroke:#aa83c5;stroke-width:1;stroke-dasharray:2 3;opacity:.65;pointer-events:none}
.algorithm-anchor-dot{fill:#ad85c7;pointer-events:none}
.algorithm-anchor-label{fill:#9b77b4;font:600 7px Inter,-apple-system,sans-serif;pointer-events:none}
.algorithm-control-cell{fill:var(--algorithm-blue);stroke:#478ab8;stroke-width:.35}
.algorithm-anchor:hover .algorithm-control-cell,.algorithm-anchor:focus .algorithm-control-cell,.algorithm-anchor.is-current .algorithm-control-cell{fill:#448fbe;stroke:#276b98;stroke-width:1}
.algorithm-anchor:hover .algorithm-anchor-line,.algorithm-anchor:focus .algorithm-anchor-line,.algorithm-anchor.is-current .algorithm-anchor-line{stroke:#9561b8;opacity:1;stroke-dasharray:none}
.algorithm-anchor:focus .algorithm-anchor-dot{stroke:#70468e;stroke-width:2}
.algorithm-playhead{fill:#9863b9;stroke:#9863b9;stroke-width:1.5;pointer-events:none}
.algorithm-playhead-cap{stroke:none}
.algorithm-footer{flex:none;min-height:43px}
.algorithm-legend{display:flex;gap:13px;align-items:center;font-size:7px;color:#8a998d;white-space:nowrap;line-height:12px}
.algorithm-legend>span{display:flex;gap:4px;align-items:center}
.algorithm-legend b{font-weight:550;color:#75847b}
.algorithm-legend i{display:inline-block;width:8px;height:8px;border-radius:2px;flex:none}
.algorithm-legend .algorithm-known{background:var(--algorithm-blue)}
.algorithm-legend .algorithm-unknown{background:#e4e9e5;border:1px solid #dbe2dc}
.algorithm-legend .algorithm-anchor-swatch{height:9px;width:2px;border-radius:0;background:var(--algorithm-purple);margin:0 3px}
.algorithm-progress{margin-left:auto;font-size:8px;font-variant-numeric:tabular-nums;color:#9475a7}
.algorithm-source{font-size:8px;color:#829084;margin:4px 0 0;line-height:1.35}
.algorithm-status{font-size:7px;color:#8c9b8b;margin:3px 0 0;line-height:1.2}
@media(min-width:1100px){.algorithm-panel{left:30px;right:30px}.algorithm-heading h2{font-size:13px}.algorithm-summary{font-size:9px}.algorithm-window-toggle{font-size:9px}.algorithm-frame strong{font-size:9px}.algorithm-frame small{font-size:8px}.algorithm-legend,.algorithm-source,.algorithm-status{font-size:8px}}
@media(max-width:700px){.algorithm-panel{left:14px;right:14px;padding:11px 9px;gap:6px}.algorithm-heading h2{font-size:11px}.algorithm-window-toggle{font-size:7px;gap:3px}.algorithm-summary{font-size:7px}.algorithm-frame{gap:4px;padding:3px}.algorithm-frame img{width:32px;height:28px}.algorithm-frame strong{font-size:7px}.algorithm-frame small{font-size:6px}.algorithm-frames{gap:4px}.algorithm-legend{gap:6px;font-size:6px}.algorithm-legend>span{gap:2px}.algorithm-progress{font-size:7px}.algorithm-legend i{width:6px;height:6px}.algorithm-source,.algorithm-status{font-size:6.5px}}
@media(max-height:650px){:root{--algorithm-height:225px}.algorithm-panel{gap:4px;padding-top:9px;padding-bottom:8px}.algorithm-heading{min-height:26px}.algorithm-frames{min-height:35px}.algorithm-frame{height:35px}.algorithm-frame img{height:27px}.algorithm-timeline{min-height:107px}.algorithm-footer{min-height:40px}body.algorithm-visible #viewport,body.algorithm-visible .scene-top{top:116px}}

.algorithm-scene-progress{display:none;position:absolute;left:30px;top:186px;pointer-events:none;color:#9873ad}.algorithm-scene-progress span{display:block;font-size:7px;letter-spacing:1.6px;margin-bottom:5px;color:#a091aa}.algorithm-scene-progress strong{font-size:27px;font-weight:450;letter-spacing:-.8px;font-variant-numeric:tabular-nums}body.algorithm-visible .algorithm-scene-progress{display:block}.transitioning .algorithm-scene-progress{visibility:hidden}@media(max-width:1000px){.algorithm-scene-progress{left:22px;top:179px}.algorithm-scene-progress strong{font-size:23px}}@media(max-width:650px){.algorithm-scene-progress{left:14px;top:194px}.algorithm-scene-progress strong{font-size:19px}}

.scene-top{justify-content:flex-end}.algorithm-heading{min-height:20px}.algorithm-scene-progress{top:164px}

/* Motion Studio: three type sizes and a shared video / 3D playback stage. */
body[data-layout="compact"]{
 --rail:320px;--algorithm-height:240px;--type-title:34px;--type-body:17px;--type-note:13px;--pane-heading:52px;
 line-height:1.45;
}
body[data-layout="compact"] .workspace{min-height:690px}
body[data-layout="compact"] .main-heading{inset:22px 24px auto;display:block;pointer-events:none}
body[data-layout="compact"] .main-heading .eyebrow{letter-spacing:1.5px;gap:10px}
body[data-layout="compact"] .main-heading h1{line-height:1.2;margin:12px 0 0;letter-spacing:-.6px;text-shadow:none}
body[data-layout="compact"] .reference-type-badge{padding:4px 8px}
body[data-layout="compact"] .reference-type-badge small{}
body[data-layout="compact"] .reference-type-badge strong{}
body[data-layout="compact"] .header-tools{position:static;display:flex;flex-direction:row;align-items:center;gap:12px;margin-top:16px;padding:0}
body[data-layout="compact"] #playback{position:static;display:flex;gap:8px;pointer-events:auto}
body[data-layout="compact"] #playback button{padding:7px 18px;border-radius:7px}
body[data-layout="compact"] #play{background:#456f5b;color:#fff;border-color:#456f5b;min-width:78px}
body[data-layout="compact"] .mode-tag{padding:4px 8px}
body[data-layout="compact"] #watch-video,body[data-layout="compact"] #skip-video,body[data-layout="compact"] #play-video{display:none!important}
body[data-layout="compact"] #intro{inset:160px calc(50% + 8px) calc(var(--algorithm-height) + 50px) 24px;gap:10px;justify-content:flex-start;z-index:2;opacity:1;transition:none}
body[data-layout="compact"] .video-heading{min-height:34px;align-items:center}
body[data-layout="compact"] .video-heading>div{display:flex;flex-direction:column;gap:2px}
body[data-layout="compact"] .video-heading>div>span{letter-spacing:1.2px}
body[data-layout="compact"] .video-heading h2{line-height:1.45;margin:0;letter-spacing:0}
body[data-layout="compact"] .video-frame{width:100%;min-height:0;flex:1;aspect-ratio:auto;align-self:stretch;border-radius:8px;background:#e9eee8}
body[data-layout="compact"] .video-frame video{object-fit:contain}
body[data-layout="compact"] .video-footer{min-height:28px;align-items:start;gap:5px}
body[data-layout="compact"] #video-note{display:block;max-width:72%;text-align:right;line-height:1.4}
body[data-layout="compact"].algorithm-visible .scene{inset:160px 24px calc(var(--algorithm-height) + 50px) calc(50% + 8px);opacity:1;transition:none}
body[data-layout="compact"].algorithm-visible #viewport{inset:44px 0 38px;border-radius:8px;background:#edf1eb}
body[data-layout="compact"] .scene-top{top:0;left:0;right:0;display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:34px}
body[data-layout="compact"] .scene-top h2{margin:0;white-space:nowrap}
body[data-layout="compact"] .view-switch{border-radius:6px;padding:2px;gap:0}
body[data-layout="compact"] .view-switch button{padding:5px}
body[data-layout="compact"] .scene-bottom{bottom:0;left:0;right:0;display:block;min-height:28px;line-height:1.4}
body[data-layout="compact"] .view-help{display:block;color:#8a998b}
body[data-layout="compact"] .algorithm-scene-progress{position:static;inset:auto;background:transparent;padding:0 0 0 8px;display:flex;align-items:center;gap:8px}
body[data-layout="compact"] .algorithm-scene-progress span{letter-spacing:.7px;margin:0}
body[data-layout="compact"] .algorithm-scene-progress strong{letter-spacing:0;}
body[data-layout="compact"] .algorithm-panel{bottom:20px;left:24px;right:24px;padding:12px 14px;height:var(--algorithm-height);gap:8px;border-radius:10px}
body[data-layout="compact"] .algorithm-heading{min-height:25px;align-items:center}
body[data-layout="compact"] .algorithm-heading-copy{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
body[data-layout="compact"] .algorithm-heading h2{margin:0}
body[data-layout="compact"] .algorithm-ref-type,body[data-layout="compact"] .prediction-state{white-space:nowrap;max-width:none}
body[data-layout="compact"] .prediction-state{color:#849282}
body[data-layout="compact"] .is-predicted .prediction-state{color:#397fae}
body[data-layout="compact"] .algorithm-window-toggle{padding:0}
body[data-layout="compact"] .algorithm-timeline{min-height:112px;max-height:none}
body[data-layout="compact"] .algorithm-mask-row{fill:#d5d5d5;stroke:none}
body[data-layout="compact"] .algorithm-completed-row{fill:var(--algorithm-blue)}
body[data-layout="compact"] .algorithm-control-cell{fill:#589dcc;stroke:none}
body[data-layout="compact"] .algorithm-anchor:hover .algorithm-control-cell,body[data-layout="compact"] .algorithm-anchor:focus .algorithm-control-cell,body[data-layout="compact"] .algorithm-anchor.is-current .algorithm-control-cell{fill:#397fae}
body[data-layout="compact"] .algorithm-local-window{fill:none;stroke:#ad82c8;stroke-width:1;opacity:.2}
body[data-layout="compact"] .algorithm-legend .algorithm-unknown{background:#d5d5d5;border-color:#c8c8c8}
body[data-layout="compact"] .algorithm-axis-label,body[data-layout="compact"] .algorithm-axis-ticks,body[data-layout="compact"] .algorithm-anchor-label{}
body[data-layout="compact"] .algorithm-footer{min-height:36px}
body[data-layout="compact"] .algorithm-legend{gap:12px;flex-wrap:wrap;line-height:1.4}
body[data-layout="compact"] .algorithm-progress,body[data-layout="compact"] .algorithm-source{}
body[data-layout="compact"] .algorithm-status{display:none}
body[data-layout="compact"] .library{padding:25px 18px 20px;gap:20px}
body[data-layout="compact"] .library header h2{letter-spacing:0;margin:10px 0 6px}
body[data-layout="compact"] .library .eyebrow,body[data-layout="compact"] .library header p{}
body[data-layout="compact"] .library h3{margin:0 0 10px;color:#58715f}
body[data-layout="compact"] .type-switch{display:flex;flex-wrap:wrap;gap:6px}
body[data-layout="compact"] .type-switch button{padding:7px 9px;border-color:#dce4d8;background:transparent}
body[data-layout="compact"] .type-switch button[aria-pressed=true]{background:#fbf2cb;border-color:#e8d98a;color:#766019}
body[data-layout="compact"] .section-label>span{}
body[data-layout="compact"] .reference-instruction{line-height:1.55;padding-bottom:14px;margin-bottom:12px}
body[data-layout="compact"] #reference-list{gap:6px}
body[data-layout="compact"] .reference-card{min-height:66px;gap:9px;padding:8px 6px;border-radius:8px}
body[data-layout="compact"] .reference-card img{width:52px;height:42px;flex:none}
body[data-layout="compact"] .card-copy{gap:4px}
body[data-layout="compact"] .card-copy strong{line-height:1.35;overflow-wrap:anywhere}
body[data-layout="compact"] .card-copy small,body[data-layout="compact"] .card-number{line-height:1.4}
body[data-layout="compact"] .library-footer{gap:9px}
body[data-layout="compact"] .method-link{text-align:left}
body[data-layout="compact"] .fixed-note,body[data-layout="compact"] #interactive-link,body[data-layout="compact"] #saved-link{display:none}
body[data-layout="compact"] #method-title{}
body[data-layout="compact"] .method-steps li,body[data-layout="compact"] .method-steps strong,body[data-layout="compact"] .method-types{}
body[data-layout="compact"] .method-caveat,body[data-layout="compact"] .method-source{}
body[data-layout="compact"] .annotation-number,body[data-layout="compact"] .annotation-angle,body[data-layout="compact"] #loading,body[data-layout="compact"] .method-heading button{}

/* Roomier controls and a normal-flow layout keep larger labels from colliding. */
body[data-layout="compact"] .workspace{
 display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);
 grid-template-rows:auto minmax(240px,1fr) auto;gap:12px 20px;
 padding:18px 24px;min-height:680px;min-width:0;height:100dvh;overflow:visible;
}
body[data-layout="compact"] .main-heading{position:static;inset:auto;grid-column:1/-1;grid-row:1;min-width:0}
body[data-layout="compact"] .main-heading h1{margin-top:6px;line-height:1.2}
body[data-layout="compact"] .main-heading #video-title{line-height:1.45;margin:4px 0 0;color:#557162;letter-spacing:0}
body[data-layout="compact"] .main-heading .eyebrow{color:#617568;letter-spacing:1.2px}
body[data-layout="compact"] .reference-type-badge{padding:7px 10px;border-radius:8px}
body[data-layout="compact"] .header-tools{margin-top:10px;gap:16px;flex-wrap:wrap}
body[data-layout="compact"] #playback{gap:10px}
body[data-layout="compact"] #playback button{min-height:48px;min-width:100px;padding:10px 24px;border-radius:10px;}
body[data-layout="compact"] .mode-tag{display:none}
body[data-layout="compact"] .algorithm-scene-progress{padding:0;gap:10px;min-height:44px}
body[data-layout="compact"] .algorithm-scene-progress span{color:#7c6e89;letter-spacing:.5px}
body[data-layout="compact"] #intro,
body[data-layout="compact"].algorithm-visible .scene{
 position:relative;inset:auto;min-width:0;min-height:0;grid-row:2;
 display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:var(--pane-heading) minmax(0,1fr) 22px;gap:6px;
}
body[data-layout="compact"] #intro{grid-column:1}
body[data-layout="compact"].algorithm-visible .scene{grid-column:2}
body[data-layout="compact"] .video-heading{grid-row:1;min-height:0;align-items:flex-start;padding-top:4px}
body[data-layout="compact"] .video-heading>div>span{color:#405e50;letter-spacing:0}
body[data-layout="compact"] .video-frame{grid-row:2;width:100%;height:100%;aspect-ratio:auto;min-height:0;align-self:stretch;border-radius:12px}
body[data-layout="compact"].algorithm-visible #viewport{position:relative;inset:auto;grid-row:2;border-radius:12px;min-height:0}
body[data-layout="compact"] .scene-top{position:static;inset:auto;grid-row:1;min-height:0;gap:10px;flex-wrap:wrap}
body[data-layout="compact"] .scene-top h2{display:block}
body[data-layout="compact"] .view-switch{padding:3px;gap:2px;border-radius:10px;margin:0}
body[data-layout="compact"] .view-switch button{min-height:44px;min-width:44px;padding:8px;border-radius:7px}
body[data-layout="compact"] .scene-bottom,
body[data-layout="compact"] .video-footer{position:static;inset:auto;grid-row:3;min-height:0;line-height:1.45}
body[data-layout="compact"] .video-footer{display:block}
body[data-layout="compact"] #video-note{max-width:none;text-align:left;margin-top:4px;color:#677e6d}
body[data-layout="compact"] .view-help{margin-top:4px;color:#677e6d}
body[data-layout="compact"] .algorithm-panel{position:relative;inset:auto;grid-column:1/-1;grid-row:3;height:auto;min-height:210px;padding:8px 14px;gap:4px;border-radius:12px}
body[data-layout="compact"] .algorithm-heading{min-height:44px;flex-wrap:wrap;gap:8px}
body[data-layout="compact"] .algorithm-heading-copy{gap:10px}
body[data-layout="compact"] .algorithm-window-toggle{min-height:44px;display:flex;align-items:center;gap:9px;cursor:pointer}
body[data-layout="compact"] .algorithm-window-toggle input{width:20px;height:20px;cursor:pointer;margin:0}
body[data-layout="compact"] .algorithm-timeline{min-height:118px}
body[data-layout="compact"] .algorithm-source{line-height:1.5;margin-top:6px;color:#617768}
body[data-layout="compact"] .algorithm-legend{line-height:1.6}
body[data-layout="compact"] .library{padding:20px 16px;gap:16px}
body[data-layout="compact"] .library header h2{margin:0}
body[data-layout="compact"] .library header p{color:#657c6b;line-height:1.55}
body[data-layout="compact"] .library h3{margin-bottom:8px;color:#405f4d}
body[data-layout="compact"] .type-switch{gap:8px}
body[data-layout="compact"] .type-switch button{min-height:48px;padding:10px 12px;border-radius:10px;line-height:1.3}
body[data-layout="compact"] .type-switch button[aria-pressed=true]{background:#f8edb9;border-color:#d9c561;color:#5e4c13;}
body[data-layout="compact"] #reference-list{gap:10px}
body[data-layout="compact"] .reference-card{min-height:74px;padding:8px 10px;gap:12px;border-radius:12px}
body[data-layout="compact"] .reference-card img{width:72px;height:52px;border-radius:7px}
body[data-layout="compact"] .card-copy small{color:#64795b}
body[data-layout="compact"] .card-number{width:28px;height:28px;left:4px;top:4px}
body[data-layout="compact"] .reference-card[aria-pressed=true]{border-color:#a9c39b;background:#fff}
body[data-layout="compact"] .reference-instruction{color:#4f6a58}
body[data-layout="compact"] .method-link{min-height:44px;padding:10px 0;color:#46694f}
body[data-layout="compact"] .method-heading button{min-height:44px;min-width:44px}
body[data-layout="compact"] .method-types{flex-wrap:wrap;gap:18px}
body[data-layout="compact"] .method-types b{}
body[data-layout="compact"] button{transition:background-color .15s,border-color .15s}
body[data-layout="compact"] button:focus-visible{outline:3px solid #458976;outline-offset:3px}
@media(max-width:1250px){
 body[data-layout="compact"]{--pane-heading:76px}
 body[data-layout="compact"] .scene-top{align-content:center;align-items:flex-start;gap:8px}
 body[data-layout="compact"] .scene-top h2{width:100%}
}
@media(max-width:1100px){
 body[data-layout="compact"]{--rail:264px}
 body[data-layout="compact"] .workspace{padding:16px;gap:10px 16px;min-height:680px}
 body[data-layout="compact"] .library{padding:18px 14px}
 body[data-layout="compact"] .reference-card{gap:10px;padding:8px}
 body[data-layout="compact"] .reference-card img{width:60px;height:46px}
 body[data-layout="compact"] .algorithm-panel{padding:8px 12px}
 body[data-layout="compact"] .algorithm-heading-copy{gap:7px}
 body[data-layout="compact"] .prediction-state{display:none}
}
@media(max-width:760px){
 body[data-layout="compact"] .workspace{width:100%;height:auto;min-height:0;grid-template-columns:minmax(0,1fr);grid-template-rows:auto 370px 370px auto}
 body[data-layout="compact"] .header-tools{gap:12px}
 body[data-layout="compact"] #intro{grid-column:1;grid-row:2}
 body[data-layout="compact"].algorithm-visible .scene{grid-column:1;grid-row:3}
 body[data-layout="compact"] .algorithm-panel{grid-row:4;grid-column:1}
 body[data-layout="compact"] .library{position:relative;inset:auto;width:100%;height:auto;border-left:0;border-top:1px solid #dce4d8}
}

/* Use the viewport for the demos; let only the reference list scroll. */
body[data-layout="compact"] .library header .eyebrow,
body[data-layout="compact"] .library header p,
body[data-layout="compact"] .video-footer,
body[data-layout="compact"] .view-help,
body[data-layout="compact"] .algorithm-source{display:none}
body[data-layout="compact"] .algorithm-footer{min-height:22px}
body[data-layout="compact"] .reference-section{display:flex;flex-direction:column;min-height:0;flex:1}
body[data-layout="compact"] #reference-list{min-height:0;overflow-y:auto;gap:8px;padding:2px}
body[data-layout="compact"] .reference-instruction{line-height:1.45;margin:0 0 10px;padding-bottom:10px}
body[data-layout="compact"] .library-footer{margin-top:0;flex:none}
@media(min-width:1300px){
 body[data-layout="compact"] .main-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}
 body[data-layout="compact"] .header-tools{margin-top:0;flex:none;flex-direction:column;align-items:flex-end;gap:4px}
}
@media(max-width:760px){
 body[data-layout="compact"] .reference-section{max-height:420px;flex:auto}
}

/* Exactly three text tiers, with one consistent weight per tier. */
body[data-layout="compact"]{
 --weight-title:600;--weight-body:500;--weight-note:400;
 font-size:var(--type-body);font-weight:var(--weight-body);
}
body[data-layout="compact"] *{font-family:inherit;font-size:inherit;font-weight:inherit}
body[data-layout="compact"] :is(.main-heading h1,#method-title){
 font-size:var(--type-title);font-weight:var(--weight-title);
}
body[data-layout="compact"] :is(#video-title,button,.library h2,.library h3,.card-copy strong,
 .reference-type-badge strong,.video-heading>div>span,.scene-top h2,.algorithm-heading h2,
 .algorithm-window-toggle,.algorithm-scene-progress strong,.method-steps,.method-types,
 .method-types b,.annotation-number,.annotation-angle,#loading){
 font-size:var(--type-body);font-weight:var(--weight-body);
}
body[data-layout="compact"] :is(.eyebrow,.reference-type-badge small,.mode-tag,
 .scene-bottom,#phase,.view-help,.video-footer,#video-note,.algorithm-scene-progress span,
 .algorithm-ref-type,.prediction-state,.algorithm-summary,.algorithm-axis-label,
 .algorithm-axis-ticks,.algorithm-anchor-label,.algorithm-legend,.algorithm-progress,
 .algorithm-source,.algorithm-status,.library header p,.section-label>span,
 .reference-instruction,.card-copy small,.card-number,.library-footer,
 .method-caveat,.method-source,.diagram-caption,.diagram-title){
 font-size:var(--type-note);font-weight:var(--weight-note);
}
/* The footer action remains a full-size control. */
body[data-layout="compact"] .library-footer .method-link{
 font-size:var(--type-body);font-weight:var(--weight-body);
}

/* Quiet interface: matched frames and four explicit camera presets. */
body[data-layout="compact"] :is(#environment-label,.brandmark,.library>header,#ref-count,
 .reference-instruction,.card-number,#phase,.algorithm-window-toggle){display:none}
body[data-layout="compact"] #video-title:empty{display:none}
body[data-layout="compact"] .main-heading .eyebrow{gap:0}
body[data-layout="compact"] #intro,body[data-layout="compact"].algorithm-visible .scene{
 grid-template-rows:82px minmax(0,1fr);gap:8px;
}
body[data-layout="compact"] .video-frame video{object-fit:cover}
body[data-layout="compact"] .scene-top{align-content:center;align-items:center;gap:6px}
body[data-layout="compact"] .scene-label{flex:1;min-width:180px}
body[data-layout="compact"] .interaction-hint{font-size:var(--type-note);font-weight:var(--weight-note);line-height:1.35;margin:5px 0 0;color:#687d70}
body[data-layout="compact"] .view-switch{flex:none}
body[data-layout="compact"] .view-switch button{min-width:48px;padding:8px 10px}
body[data-layout="compact"] .algorithm-heading{min-height:30px}
body[data-layout="compact"] .algorithm-panel{min-height:196px}
@media(max-width:1100px){
 body[data-layout="compact"] #intro,body[data-layout="compact"].algorithm-visible .scene{grid-template-rows:104px minmax(0,1fr)}
 body[data-layout="compact"] .scene-label{width:100%}
 body[data-layout="compact"] .view-switch button{padding:8px 6px}
}
body[data-layout="compact"] .scene-bottom{display:none}
body[data-layout="compact"] .video-frame video{object-position:50% 100%}

/* Paper notation: blue rectangular constraints, gray mask, purple anchors. */
body[data-layout="compact"]{--algorithm-blue:#5eb0f7;--algorithm-purple:#6c00a6}
body[data-layout="compact"] :is(button,.view-switch,.ref-type-switch,.type-switch,.algorithm-timeline){border-radius:0!important}
body[data-layout="compact"] :is(.algorithm-mask-row){fill:#cfcfcf}
body[data-layout="compact"] :is(.algorithm-control-cell,.algorithm-completed-row){fill:#5eb0f7;stroke:none}
body[data-layout="compact"] :is(.algorithm-anchor-dot,.algorithm-anchor-label){fill:#6c00a6}
body[data-layout="compact"] .algorithm-anchor-line{stroke:#6c00a6;stroke-dasharray:none;opacity:1}
body[data-layout="compact"] .algorithm-playhead{fill:#6c00a6;stroke:#6c00a6}
body[data-layout="compact"] .algorithm-legend .algorithm-anchor-swatch{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-bottom:8px solid #6c00a6;background:none}

body[data-layout="compact"] .algorithm-anchor:is(:hover,:focus,.is-current) .algorithm-control-cell{fill:#5eb0f7;stroke:none}

body[data-layout="compact"] .algorithm-legend .algorithm-unknown{background:#cfcfcf;border-color:#cfcfcf}

/* Keep pane captions attached to their images; interaction help sits below. */
body[data-layout="compact"] #intro,body[data-layout="compact"].algorithm-visible .scene{grid-template-rows:44px minmax(0,1fr) 22px;gap:5px}
body[data-layout="compact"] .scene-top{align-items:end;align-content:end;flex-wrap:nowrap;padding:0}
body[data-layout="compact"] .scene-label{min-width:0;width:auto;flex:1}
body[data-layout="compact"] .video-heading{align-items:end;padding:0}
body[data-layout="compact"] .scene-bottom{display:block;grid-row:3;position:static}
body[data-layout="compact"] .scene-bottom :is(#phase,.view-help){display:none}
body[data-layout="compact"] .interaction-hint{margin:0;font-size:var(--type-note);font-weight:var(--weight-note);line-height:1.4}
body[data-layout="compact"] .algorithm-control-cell{fill:#5eb0f7;fill-opacity:1;stroke:none}
body[data-layout="compact"] .algorithm-anchor:is(:hover,:focus,.is-current) .algorithm-control-cell{fill:#5eb0f7;fill-opacity:1;stroke:none}
body[data-layout="compact"] .algorithm-completed-row{fill:#5eb0f7;fill-opacity:1}
body[data-layout="compact"] .algorithm-legend .algorithm-known{background:#5eb0f7;border-color:#5eb0f7}

/* A compact, explicit hand-off between the automatic and manual camera. */
body[data-layout="compact"] #intro,body[data-layout="compact"].algorithm-visible .scene{grid-template-rows:44px minmax(0,1fr) 38px}
body[data-layout="compact"] .scene-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px}
body[data-layout="compact"] .interaction-hint{min-width:0}

/* Curated LIBERO items share the same categories, clock, and two-pane layout. */
#libero-detail,#libero-overlay,#libero-detail-controls{display:none}
body.libero-reference #viewport>:not(#libero-detail){display:none!important}
body.libero-reference #libero-detail{display:block;width:100%;height:100%;position:absolute;inset:0}
body.libero-reference #libero-overlay{display:block;position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
body.libero-reference .video-frame video{object-fit:contain;object-position:center}
body.libero-reference #libero-detail-controls{display:flex;gap:4px}
#libero-detail-controls button{padding:8px 12px;min-height:44px;border:1px solid #ccd9ce;background:transparent}
#libero-detail-controls button[aria-pressed=true]{background:#e5ede3}
body.libero-reference #video-note{display:block!important}

body:not(.libero-reference) :is(#libero-detail,#libero-overlay,#libero-detail-controls){display:none!important}

/* Map Interface: quiet coordinates, generous tracks, visible scrub handle. */
body[data-layout="compact"]{--algorithm-purple:#386d67}
body[data-layout="compact"] :is(.algorithm-axis-ticks,.algorithm-anchor-label,.algorithm-anchor-dot,.algorithm-scene-progress){display:none!important}
body[data-layout="compact"] .algorithm-anchor-line{stroke:#a1b2ae;opacity:.4;stroke-dasharray:3 4}
body[data-layout="compact"] .algorithm-playhead{stroke:#285f59;fill:#285f59;stroke-width:3}
body[data-layout="compact"] .algorithm-playhead-cap{stroke-width:1}
body[data-layout="compact"] .algorithm-timeline:focus-within{outline:2px solid #65968e}
body[data-layout="compact"] .algorithm-legend .algorithm-anchor-swatch{border-bottom-color:#65968e}
body[data-layout="compact"] .algorithm-timeline{min-height:142px;max-height:none}
body[data-layout="compact"] .algorithm-panel{padding:10px 12px;gap:4px}
body[data-layout="compact"] :is(.algorithm-ref-type,.prediction-state,.algorithm-legend){font-size:var(--type-body);font-weight:var(--weight-body)}
body[data-layout="compact"] .algorithm-legend{gap:16px}
body[data-layout="compact"] .algorithm-ref-type{color:#456f5b}
body[data-layout="compact"] .video-frame video{transform:scale(1.12);transform-origin:50% 65%}
body.libero-reference .video-frame video{transform:none}

body[data-layout="compact"] .algorithm-anchor:is(:hover,:focus,.is-current) .algorithm-anchor-line{stroke:#386d67}
body[data-layout="compact"] .algorithm-legend{line-height:1.4}

/* Use the freed progress area for controls, rather than a tall extra row. */
@media(min-width:900px){
 body[data-layout="compact"] .main-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 18px;align-items:center}
 body[data-layout="compact"] .main-heading h1{grid-column:1;grid-row:1;margin:0}
 body[data-layout="compact"] .main-heading .eyebrow{grid-column:2;grid-row:1;justify-content:flex-end}
 body[data-layout="compact"] .main-heading #video-title{grid-column:1;grid-row:2;margin:0}
 body[data-layout="compact"] .main-heading .header-tools{grid-column:2;grid-row:2;margin:0}
}
body[data-layout="compact"] #algorithm-panel :is(.algorithm-ref-type,.prediction-state,.algorithm-legend){font-size:var(--type-body);font-weight:var(--weight-body)}
body[data-layout="compact"] #algorithm-panel .algorithm-heading{min-height:28px}
body[data-layout="compact"] #algorithm-panel .algorithm-footer{min-height:24px}
body[data-layout="compact"] #algorithm-panel{min-height:212px}

@media(min-width:900px){body[data-layout="compact"] .main-heading>div:first-child{display:contents}}

/* Mouse-first instructions, with a device override for ambiguous wheel drivers. */
body[data-layout="compact"] .interaction-hint span{display:block}

body[data-layout="compact"] #intro,body[data-layout="compact"].algorithm-visible .scene{grid-template-rows:44px minmax(0,1fr) 24px}

/* Dimension names stay beside the tracks; one progress value belongs to Map. */
body[data-layout="compact"] #algorithm-panel .algorithm-axis-label{font-size:var(--type-note);font-weight:var(--weight-body);fill:#456459}
body[data-layout="compact"] #algorithm-panel .algorithm-progress{display:block;margin-left:auto;color:#456459;font-size:var(--type-body);font-weight:var(--weight-body);font-variant-numeric:tabular-nums;white-space:nowrap}
body.libero-reference .view-switch{display:none}

/* Paper reference palette: blue constraints and a purple progress cursor. */
body[data-layout="compact"]{--algorithm-purple:#6c00a6;--algorithm-blue:#5eb0f7}
body[data-layout="compact"] .algorithm-playhead{stroke:#6c00a6;fill:#6c00a6}
body[data-layout="compact"] .algorithm-legend .algorithm-anchor-swatch{border-bottom-color:#6c00a6}
body[data-layout="compact"] .algorithm-timeline:focus-within{outline-color:#6c00a6}
/* LIBERO has recorded video annotations, not a reconstructed second camera. */
body.libero-reference .scene,
body.libero-reference #libero-detail,
body.libero-reference #libero-detail-controls{display:none!important}
body[data-layout="compact"].libero-reference #intro{
 grid-column:1/-1;
 grid-template-rows:32px minmax(0,1fr) 22px;
}
body[data-layout="compact"].libero-reference .video-frame{
 justify-self:center;
 width:auto;
 height:100%;
 max-width:100%;
 aspect-ratio:var(--video-ratio,1.777778);
}
body.libero-reference #libero-overlay{
 display:block;
 position:absolute;
 inset:0;
 width:100%;
 height:100%;
 pointer-events:none;
}
body[data-layout="compact"].libero-reference .video-heading{
 justify-content:center;
 text-align:center;
}
body[data-layout="compact"].libero-reference .video-footer{
 justify-content:flex-start;
}
body[data-layout="compact"].libero-reference #video-note{
 max-width:none;
 text-align:left;
}
@media(max-width:899px){
 body[data-layout="compact"].libero-reference .workspace{
  grid-template-rows:auto auto auto;
 }
 body[data-layout="compact"].libero-reference #intro{
  grid-template-rows:32px auto 22px;
 }
 body[data-layout="compact"].libero-reference .algorithm-panel{grid-row:3}
 body[data-layout="compact"].libero-reference .video-frame{
 width:100%;height:auto;aspect-ratio:var(--video-ratio,1.777778);
 }
}
