.case-section {padding:clamp(36px,6vw,82px) 0;background:#fafbf8;color:#182119}
.case-section .section-title p {max-width:68ch}
.case-choices,.related-choices {display:flex;flex-wrap:wrap;gap:6px;margin:18px 0}
.case-choices button,.related-choices button,.case-player header button {border:1px solid #b9c4b3;background:transparent;border-radius:5px;color:inherit;min-height:42px;padding:7px 13px;font:inherit;font-size:14px;cursor:pointer}
.case-choices button[aria-pressed=true],.related-choices button[aria-pressed=true] {background:#273920;border-color:#86ae58;color:white}
.case-player {color:#edf4ed;background:#141b16;border-radius:12px;padding:clamp(12px,2vw,24px)}
.case-player header {display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.case-player h3 {font-size:clamp(20px,2.6vw,32px);letter-spacing:-.035em;line-height:1.15}
.case-source {font:500 12px/1.5 var(--mono,monospace);color:#c1d3b9;margin-bottom:4px}
.case-player header button {border-color:#667a64;flex-shrink:0}
.case-views {display:grid;grid-template-columns:.94fr 1.9fr .76fr;gap:10px}
.case-views figure {margin:0;min-width:0}
.case-views video,.case-views svg {width:100%;display:block;aspect-ratio:4/3;background:#080e0b;object-fit:contain;border-radius:5px}
.case-views svg {background:#ced8d7}
.case-views figcaption {font:500 13px/1.4 system-ui;color:#c9d6c6;margin:7px 0}
.case-image {position:relative}
.speaker-outline,#exchange-person {position:absolute;display:block;pointer-events:none;border:2px solid #a5df66;box-shadow:0 0 0 1px #1118;border-radius:3px}
.speaker-outline[hidden],#exchange-person[hidden]{display:none}
.speech-readout {min-height:40px;padding:9px 12px;line-height:1.4;color:#f3f7ed;background:#273429;border-left:3px solid #95c956;font-size:14px}
.case-result {margin:9px 0 0;color:#c5d1c3;font-size:14px;line-height:1.45}
.exchange-link {color:#dcf2bf;text-underline-offset:4px;font-size:14px}
.related-choices:empty {display:none}.related-choices {margin-top:0}
.test-gallery {padding:30px 0;border-top:1px solid #424e46}.test-gallery .case-choices button {color:#e5ebe3;border-color:#5a6d5d}
.test-view {display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr);gap:clamp(12px,3vw,40px);align-items:center;background:#101712;padding:12px;border-radius:8px}
.test-view video {display:block;width:100%;height:clamp(240px,31vw,395px);object-fit:contain;background:#070d09}
.test-chart {padding:12px}.test-chart h4{font-size:17px;color:#e1eedb}.test-chart svg {display:block;width:100%;max-height:180px}
.test-chart p,.test-gallery figcaption {font-size:14px;line-height:1.45;color:#c6d5c8;margin:8px 0}
.method-frame video {aspect-ratio:16/9}.map-key .mk-commit::before{height:0;border:none;border-top:3px solid #e49a59}
@media(max-width:700px){
 .case-views {grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px}
 .case-views .case-capture {grid-column:1/-1}.case-choices{display:flex;flex-wrap:nowrap;overflow-x:auto;padding:3px 0 7px;margin:8px 0 10px;scroll-snap-type:x proximity}
 .case-choices button {white-space:nowrap;scroll-snap-align:start}.related-choices {margin-bottom:8px}
 .case-player {margin-inline:-6px}.case-player header button{font-size:13px;padding:5px 8px}
 .case-views figcaption{font-size:12px}.case-result{font-size:13px}
 .test-view{grid-template-columns:1fr;gap:0;padding:0}.test-view video{height:auto;max-height:52svh}.test-chart{display:grid;grid-template-columns:1fr;gap:4px;padding:12px}.test-chart svg{height:115px}
 .test-gallery .lab-heading {flex-wrap:wrap}.run-console .exchange-link{font-size:12px;min-height:40px;display:flex;align-items:center}
 .run-signals #primary-speech {margin:4px 12px 12px}
}

#exchange-choices,#test-choices {display:grid;grid-auto-flow:column;grid-auto-columns:minmax(110px,1fr);gap:8px;overflow-x:auto;padding:3px 1px 9px;scroll-snap-type:x proximity}
#exchange-choices button,#test-choices button {padding:0;overflow:hidden;min-width:0;text-align:left;scroll-snap-align:start;background:#182019;color:#f4f6f1;border:2px solid transparent}
#exchange-choices button[aria-pressed=true],#test-choices button[aria-pressed=true] {border-color:#76b900}
#exchange-choices img,#test-choices img {display:block;width:100%;height:66px;object-fit:cover}
#exchange-choices span,#test-choices span {display:block;padding:6px 7px;line-height:1.35;font-size:13px}
@media(max-width:700px){
 #exchange-choices {grid-auto-flow:row;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
 #exchange-choices span {white-space:normal;padding:6px 5px}
 #test-choices {grid-auto-columns:114px}
 #test-choices span {white-space:normal}
}

.exchange-bearings{display:flex;flex-wrap:wrap;gap:8px 16px;margin:5px 0 11px;font-size:12px;line-height:1.4}
.exchange-bearings div{display:grid;gap:1px}.exchange-bearings span{color:#c4cbbf}.exchange-bearings strong{color:#ffd179}.exchange-bearings div:nth-child(2) strong{color:#8be2ea}.exchange-bearings div:nth-child(3) strong{color:#eab4d8}

@media(max-width:700px){.case-views .exchange-robot,.case-views figure:has(#exchange-plan){grid-column:1/-1}.case-views #exchange-plan{max-height:195px}}
.gaze-recording{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#c9d6ca;font-size:13px;margin-bottom:10px}.gaze-recording select{max-width:72%;color:#eff5ef;background:#19241e;padding:7px;border:1px solid #526754;border-radius:4px;font:inherit}

.exchange-radar{display:flex;align-items:center;gap:10px}.exchange-radar>svg{width:72px;flex:none;background:transparent;aspect-ratio:1}
.exchange-radar .exchange-bearings{flex:1}.exchange-bearings>div:nth-child(1){color:#a8dc2f}.exchange-bearings>div:nth-child(2){color:#62e5ef}.exchange-bearings>div:nth-child(3){color:#ff98c6}
#exchange-pair-key{display:flex;justify-content:space-around;font-weight:600;font-size:14px}
.case-views video.paired{aspect-ratio:8/3}
@media(max-width:700px){.case-views .exchange-robot{grid-column:1/-1}.case-views>figure:last-child{grid-column:1/-1}.route-panel .map-views[aria-label="Trajectory source"]{grid-column:1/-1;grid-row:2;justify-self:start}.route-panel :is(#map-masks,#map-regions){grid-row:3}}

#exchange-pair-key span[hidden]{display:none}.exchange-robot video:not(.paired){max-height:310px}

#exchange-choices:has(button:only-child){display:none}

.pair-view-label{display:block;color:#cfdbcd;margin:4px 0;font-size:12px}
.exchange-robot canvas{display:block;width:100%;height:auto;background:#111914;border-radius:5px;cursor:pointer}
.avoidance-choices{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:16px 0}
.avoidance-choices a{display:block;overflow:hidden;color:#edf4ed;background:#182019;border:2px solid transparent;border-radius:5px;text-decoration:none;font:500 13px/1.4 system-ui}
.avoidance-choices a[aria-current=true]{border-color:#76b900}
.avoidance-choices img{display:block;width:100%;height:70px;object-fit:cover}.avoidance-choices span{display:block;padding:6px 8px}
.case-views.avoidance-views{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);align-items:start}
.avoidance-legend{display:flex;flex-wrap:wrap;gap:4px 12px}.avoidance-legend span::before{content:'';display:inline-block;width:10px;height:4px;vertical-align:middle;margin-right:4px;background:var(--swatch)}
@media(max-width:700px){.avoidance-choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.avoidance-choices img{height:44px}.case-views.avoidance-views{grid-template-columns:1fr}.avoidance-views svg{max-height:260px}}

#crossing-details {margin-top:1rem;color:#c9d6c6;font-size:14px}
#crossing-details a {color:#dcf5c0}
.social15-chapters{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-top:10px}.social15-chapters button{cursor:pointer}
@media(max-width:700px){.run-bar>.group{flex-wrap:wrap}}

#avoidance{margin-top:clamp(36px,6vw,70px)}#avoidance-title{font-size:clamp(24px,3.2vw,40px);letter-spacing:-.035em}
#avoidance-view{font:inherit;color:#edf4ed;border:1px solid #657665;border-radius:4px;padding:6px 9px;background:#233127}
#avoidance .case-player header{flex-wrap:wrap}.exchange-robot canvas[width="480"]{max-width:480px;margin:auto}


/* Link the upright camera image and its ground-plane projection at the same instant. */
.test-camera {min-width:0}
.test-camera-heading,#test-track-overlay,#track-picker {display:none}
.test-view[data-mode="perception"] {
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  align-items:start;
  gap:clamp(16px,4vw,54px);
  padding:clamp(14px,2.3vw,30px);
}
.test-view[data-mode="perception"] .test-camera {width:100%;max-width:450px;justify-self:center}
.test-view[data-mode="perception"] .test-camera-heading {
  display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:0 0 12px;
}
.test-view[data-mode="perception"] h4 {margin:0;color:#e1eedb;font-size:clamp(16px,1.4vw,20px);line-height:1.3}
#test-frame-time {color:#c6d5c8;font-variant-numeric:tabular-nums;font-size:14px}
.test-view[data-mode="perception"] .test-camera-image {position:relative;aspect-ratio:1;isolation:isolate}
.test-view[data-mode="perception"] video {width:100%;height:100%;max-height:none}
.test-view[data-mode="perception"] #test-track-overlay {position:absolute;display:block;inset:0;width:100%;height:100%;pointer-events:none}
.test-view[data-mode="perception"] .test-chart {width:100%;max-width:495px;justify-self:center;align-self:start;padding:0}
.test-view[data-mode="perception"] #test-plot {display:block;width:100%;height:auto;max-height:none;margin:12px 0}
.test-view[data-mode="perception"] #track-picker {display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:14px;color:#e1eedb}
#track-picker select {
  background:#18231e;color:#29cbeb;border:1px solid currentColor;border-radius:5px;
  font-family:inherit;font-weight:650;font-size:14px;line-height:1.25;padding:5px 8px;cursor:pointer;
}
#track-picker select + select {color:#ffbc54}
#track-picker select option {color:white;background:#18231e}
.test-view[data-mode="perception"] #test-value {margin:9px 0 0;max-width:52ch}
@media(max-width:700px) {
  .test-view[data-mode="perception"] {grid-template-columns:1fr;padding:12px;gap:18px}
  .test-view[data-mode="perception"] .test-chart {display:block;max-width:450px}
}
