*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;background:#fff;color:#222;font:14px/1.7 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}main{max-width:1400px;padding:44px 5%;margin:auto}header{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:44px;gap:25px}h1,h2{font:inherit;font-weight:500}h1{font-size:19px;margin:0}h2{font-size:15px}nav{display:flex;gap:28px}button,select{font:inherit;color:inherit;background:white;border:1px solid #ddd;padding:7px 11px;cursor:pointer;border-radius:0}nav button{border:0;border-bottom:1px solid transparent;padding:3px 0;color:#888}nav button[aria-pressed=true]{color:#222;border-bottom-color:#222}button:hover{border-color:#888}button:focus-visible,select:focus-visible{outline:2px solid #444;outline-offset:4px}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:12px;color:#777}.toolbar>div{display:flex;gap:8px;color:#333}#steering{padding:20px 0 5px;max-width:780px}#steering label{display:block;font-size:12px;color:#777;margin-bottom:7px}select{width:100%;max-width:460px}#instruction{font-size:13px}.scene{display:grid;grid-template-columns:minmax(240px,.85fr) minmax(420px,1.3fr);gap:30px;align-items:center;margin-top:16px}.eyebrow,.note{font-size:11px;color:#777}.prompt pre{font:inherit;white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.9;margin-top:17px}.canvas svg{display:block;width:100%;height:auto;overflow:visible}svg text{font-family:inherit;fill:#222}svg .secondary{fill:#777}.moving{transition:transform 1.2s cubic-bezier(.4,0,.15,1)}.idle{animation:breathe 3s ease-in-out infinite;transform-box:fill-box;transform-origin:center bottom}@keyframes breathe{50%{transform:translateY(-2px) rotate(2deg)}}.figure-note{text-align:center;margin-top:0}.scores{margin-top:35px;border-top:1px solid #ddd;padding-top:16px}.table-scroll{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:12px;margin:20px 0}th,td{text-align:right;padding:12px 10px;border-bottom:1px solid #eee;white-space:nowrap;font-weight:400}th:first-child{text-align:left;padding-left:0}thead th{color:#777;font-size:11px}.human{color:#777}footer{font-size:11px;color:#888;margin-top:45px}#daily{min-height:55vh;padding-top:35px}@media(max-width:800px){main{padding:28px 6%}header{display:block;margin-bottom:25px}nav{margin-top:20px}.scene{grid-template-columns:1fr;gap:0}.canvas{max-width:620px;margin:auto}.toolbar{flex-wrap:wrap}.prompt pre{font-size:13px}.scores{margin-top:20px}}@media(prefers-reduced-motion:reduce){.moving{transition:none}.idle{animation:none}}

.preference-score{display:inline-block;min-width:66px;padding:7px 9px;color:#242424;font-weight:600;border-radius:3px;font-variant-numeric:tabular-nums}.preference-legend{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:22px;font-size:11px;color:#666}.color-scale{width:100px;height:9px;background:linear-gradient(to right,rgb(249,201,195),rgb(255,237,166),rgb(176,222,187));border-radius:2px}.scores td{padding:8px 6px}.human .preference-score{font-weight:400}

header{align-items:flex-start;flex-wrap:wrap}header h1{max-width:740px}nav{flex-wrap:wrap}#quiz{min-height:55vh;padding-top:35px;max-width:680px}#quiz h2{font-size:19px}

.layout-switch{display:flex;justify-content:flex-end;align-items:center;gap:8px;font-size:11px;color:#888;margin-bottom:24px}.layout-switch button{font-size:11px;border:0;border-bottom:1px solid transparent;padding:2px 0;color:#888}.layout-switch button[aria-pressed=true]{color:#222;border-bottom-color:#222}body[data-layout="long"] main{max-width:850px}body[data-layout="long"] header{display:block}body[data-layout="long"] nav{margin-top:20px}body[data-layout="long"] .scene{grid-template-columns:1fr;gap:0}body[data-layout="long"] .canvas{width:100%;max-width:620px;margin:auto}body[data-layout="wide"] main{max-width:1600px;padding:24px 4%}body[data-layout="wide"] .scene{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:28px}body[data-layout="wide"] .canvas{width:100%;max-width:680px;margin:auto}body[data-layout="wide"] header{margin-bottom:24px}body[data-layout="wide"] .prompt pre{font-size:clamp(11px,1.1vw,15px)}body[data-layout="wide"] .scores{margin-top:20px}@media(max-width:550px){.layout-switch{gap:6px}body[data-layout="wide"] .scene{gap:12px}}

@media(max-width:800px){body[data-layout="wide"] .scene{grid-template-columns:1fr}header h1{overflow-wrap:anywhere}nav{gap:20px}}

/* Two schematic outcomes; recorded choices below. */
.outcome-pair{display:grid;grid-template-columns:1fr 1fr;gap:16px}.outcome{border:1px solid #ddd;padding:12px 10px 0}.outcome-heading{font-size:12px;min-height:48px;text-align:center}.outcome-heading b{font-weight:500;display:block}.outcome-heading span{font-size:11px}.outcome svg{width:100%;max-height:240px}.outcome-car{offset-distance:0%;offset-rotate:0deg;animation:approach 1.6s ease-in-out forwards}@keyframes approach{to{offset-distance:84%}}.schematic-note{text-align:center;font-size:9px;margin:8px 0 14px}.decision-ends{display:flex;justify-content:space-between;margin:0 97px 3px 144px;font-size:10px;color:#777}.decision-row{display:grid;grid-template-columns:125px minmax(50px,1fr) 78px;gap:18px;align-items:center;min-height:59px}.decision-model{font-size:11px;line-height:1.5}.decision-track{position:relative;height:1px;background:#ddd;margin:0 10px}.decision-track:before,.decision-track:after{content:'';position:absolute;top:-4px;width:1px;height:9px;background:#bbb}.decision-track:after{right:0}.decision-agent{position:absolute;bottom:-8px;width:28px;height:38px;transform:translateX(-50%);transition:left 1.1s cubic-bezier(.22,1,.36,1)}.decision-agent svg{width:28px;height:38px}.decision-result{font-size:13px;text-align:right;white-space:nowrap}.decision-result small{display:block;font-size:9px;color:#777}.decision-result b{font-weight:500}.before{color:#aaa}.baseline-mark{position:absolute;top:7px;transform:translateX(-50%);font-size:9px;color:#999}.changed .decision-result b{background:#222;color:white;padding:3px 6px}.changed .decision-result small{color:#222}.human-decision{border-top:1px solid #eee;min-height:38px;margin-top:6px;color:#777}.human-decision .decision-result{font-size:10px}.human-tick{position:absolute;top:-5px;width:2px;height:11px;background:#777}.change-summary{border-bottom:1px solid #ddd;padding:9px 0 12px;margin-bottom:12px;font-size:11px;display:flex;gap:10px;align-items:center}.change-summary strong{font-size:19px;font-weight:500}.change-summary button{margin-left:auto;font-size:10px;padding:4px 7px}.steering-presets{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 15px}.steering-presets button{font-size:12px}.steering-presets [aria-pressed=true]{background:#222;color:#fff;border-color:#222}#steering{max-width:none;border-bottom:1px solid #ddd;padding-bottom:18px}#steering-effect{display:flex;gap:25px;align-items:center;border-top:1px solid #eee;padding-top:15px;font-size:11px;flex-wrap:wrap}#steering-effect>span{max-width:190px;color:#777}#steering-effect strong{display:block;font-size:17px;font-weight:500}.scene{align-items:start}.prompt{padding-top:10px}.canvas{min-width:0}.figure-note{font-size:9px;margin-top:10px}.outcome-pair svg text{font-family:inherit}@media(max-width:550px){.outcome-pair{gap:8px}.outcome{padding:8px 4px 0}.decision-row{grid-template-columns:95px 1fr 64px;gap:10px}.decision-ends{margin-left:105px;margin-right:75px}.decision-model{font-size:10px}.change-summary{flex-wrap:wrap}}@media(prefers-reduced-motion:reduce){.outcome-car{animation:none;offset-distance:84%}.decision-agent{transition:none}}
@media(min-width:801px){#steering{display:grid;grid-template-columns:1fr auto;gap:8px 20px;padding:14px 0}.steering-presets{margin:0;align-items:center}#steering label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}#condition{width:280px}#instruction{grid-column:1/-1;margin:5px 0}#steering-effect{grid-column:1/-1;padding-top:10px;gap:30px}.outcome svg{max-height:185px}.decision-row{min-height:52px}.human-decision{min-height:34px}}
/* Visual-first presentation with the exact prompt on demand. */
.scene,body[data-layout="wide"] .scene,body[data-layout="long"] .scene{display:flex;flex-direction:column;gap:10px}.prompt{width:100%;padding:0;border-bottom:1px solid #eee}.prompt summary{font-size:12px;cursor:pointer;padding:10px 0}.prompt pre{max-width:850px;font-size:13px!important;margin:12px 0 20px}.canvas,body[data-layout="wide"] .canvas,body[data-layout="long"] .canvas{max-width:960px;width:100%;margin:auto}.outcome{padding:12px 16px 8px}.outcome-heading{min-height:47px;font-size:14px}.outcome-heading span{font-size:12px}.outcome svg{max-height:300px;width:100%}.group-names{display:grid;grid-template-columns:1fr 1fr;gap:12px;text-align:center;font-size:11px;line-height:1.5;padding:8px 0}.decision-rows,.decision-ends,.change-summary{max-width:800px;margin-left:auto;margin-right:auto}.decision-ends{padding:0 97px 0 144px}.decision-row{min-height:55px}.human-decision{min-height:36px}.change-summary{margin-top:0}.schematic-note{margin:7px 0 10px}.pedestrian{animation:arrive .7s ease-out both}@keyframes arrive{from{opacity:0}to{opacity:1}}@media(max-width:550px){.outcome{padding:10px 4px 5px}.outcome-heading span{font-size:10px}.group-names{font-size:9px;gap:4px}.decision-ends{padding-left:105px;padding-right:75px}.outcome-heading{min-height:56px}.outcome svg{max-height:210px}}@media(prefers-reduced-motion:reduce){.pedestrian{animation:none}}

#research-data{min-height:55vh}

/* One recorded model choice, one scene. */
.model-picker{display:flex;align-items:center;gap:12px;color:#222}.model-picker select{width:210px}.canvas,body[data-layout="wide"] .canvas,body[data-layout="long"] .canvas{max-width:580px}.outcome{border:0;padding:0}.outcome-heading{display:none}.outcome svg{max-height:390px}.group-names{font-size:13px;padding:12px 0}.animation-caption{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #ddd;margin-top:18px;padding-top:12px;font-size:12px}.schematic-note{margin-top:12px}.toolbar{flex-wrap:wrap}.toolbar #context{font-size:10px}.scene{margin-top:8px}@media(max-width:550px){.model-picker select{width:180px}.outcome svg{max-height:320px}.group-names{font-size:11px}.toolbar #context{order:3;width:100%}}

/* Crosswalk scene: a single recorded trajectory. */
.outcome svg{max-height:420px}.driving-car{offset-distance:0%;offset-rotate:auto;animation:drive-choice 3.8s cubic-bezier(.45,0,.2,1) forwards}.walking-person{animation:walk-in 1s ease-out both}.other-group{animation:fade-other 3.8s linear forwards}.travel-guide{opacity:.6}@keyframes drive-choice{0%,16%{offset-distance:0%}100%{offset-distance:100%}}@keyframes walk-in{from{transform:translateY(8px);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes fade-other{0%,85%{opacity:1}100%{opacity:.35}}@media(prefers-reduced-motion:reduce){.driving-car{animation:none;offset-distance:100%}.walking-person,.other-group{animation:none}}

/* Keep the optional prompt beside the scene, never above its flow. */
.scene,body[data-layout="wide"] .scene,body[data-layout="long"] .scene{position:relative;display:grid;grid-template-columns:minmax(180px,1fr) minmax(0,580px) minmax(0,1fr);align-items:start;gap:22px;margin-top:24px}
.scene>.prompt{grid-column:1;grid-row:1;border:0;align-self:start;min-width:0}
.scene>.canvas{grid-column:2;grid-row:1;margin:0!important}
.prompt summary{padding:0 0 12px;font-size:11px}
.prompt pre{font-size:12px!important;line-height:1.8;margin:0;max-height:440px;overflow:auto}
@media(max-width:1100px){.scene,body[data-layout="wide"] .scene,body[data-layout="long"] .scene{grid-template-columns:minmax(180px,.65fr) minmax(0,1.35fr);gap:22px}}
@media(max-width:600px){.scene,body[data-layout="wide"] .scene,body[data-layout="long"] .scene{display:block;padding-top:32px}.scene>.prompt{position:absolute;left:0;top:0;width:auto;z-index:3}.scene>.prompt[open]{width:min(290px,85%);background:white;border:1px solid #ddd;padding:12px;box-shadow:0 4px 14px #0000000d}.prompt pre{max-height:360px}.scene>.canvas{margin:auto!important}}

/* Approved character artwork, animated independently of the car. */
.outcome .character-art{overflow:visible;width:75px;height:99px}
.character-art .leg{transform-box:view-box;transform-origin:0px 5px;animation:character-step 1.6s ease-in-out infinite}.character-art .right{animation-delay:-.8s}.character-art .body{animation:character-breathe 1.6s ease-in-out infinite}
@keyframes character-step{0%,100%{transform:rotate(-4deg)}50%{transform:rotate(4deg)}}@keyframes character-breathe{50%{transform:translateY(-1px)}}
@media(prefers-reduced-motion:reduce){.character-art .leg,.character-art .body{animation:none}}
.data-heading{display:flex;align-items:baseline;justify-content:space-between;gap:16px}.data-heading h2{font-size:18px;margin:0}.data-heading>span,.radar-legend{font-size:11px;color:#777}.radar-legend{display:flex;justify-content:center;gap:24px;margin:20px 0 5px}.radar-legend span{display:flex;align-items:center;gap:8px}.radar-legend i{display:inline-block;width:26px;border-top:2px solid #236a9e}.radar-legend .human-key{border-top:2px dashed #888}.radar-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.radar-grid figure{margin:0;text-align:center;min-width:0}.radar-grid h3{font-size:14px;font-weight:400;margin:16px 0 0}.radar-grid h3 small{display:block;color:#888;font-size:10px}.radar-grid img{width:100%;height:auto;display:block}.radar-grid figcaption{font-size:12px}.radar-grid figcaption strong{display:block;font-size:25px;font-weight:400}.data-scope{font-size:10px;color:#777;margin:24px 0 28px}.equation-grid{display:grid;grid-template-columns:1.25fr 1fr 1fr;gap:24px;border-top:1px solid #ddd;padding-top:20px}.equation-grid section{min-width:0}.equation-grid h3{font-size:12px;font-weight:400}.equation-grid p{font-size:11px;color:#666;line-height:1.7}.equation{min-height:80px;display:flex;align-items:center;overflow-x:auto;font-size:18px}.equation math{margin:auto;white-space:nowrap}.equation-grid section:first-child .equation{font-size:15px}@media(max-width:950px){.equation-grid{grid-template-columns:1fr}.equation{min-height:65px}.equation math{margin:0}.data-heading{flex-wrap:wrap}}@media(max-width:650px){.radar-grid{grid-template-columns:1fr}.radar-grid figure{max-width:430px;margin:auto;width:100%}}

.radar-grid h3{height:42px}.radar-grid img{max-height:370px;object-fit:contain}

.radar-control{display:flex;align-items:center;gap:12px;font-size:12px}.radar-control select{width:300px;max-width:100%}#radar-instruction{font-size:12px;color:#666;margin:18px 0;max-width:850px}.radar-legend .baseline-key{border-top:2px solid #afc3d2}.radar-legend{flex-wrap:wrap}@media(max-width:600px){.radar-control{width:100%;align-items:flex-start;flex-direction:column}.radar-control select{width:100%}}

#steering-menu{position:relative;color:#222}#steering-menu>summary{list-style:none;cursor:pointer;border:1px solid #ddd;padding:7px 11px;white-space:nowrap}#steering-menu>summary::-webkit-details-marker{display:none}#steering-menu>summary:after{content:' ▾';margin-left:8px}#steering-menu[open]>summary{border-color:#222}#steering-options{position:absolute;right:0;top:calc(100% + 8px);width:min(660px,85vw);max-height:65vh;overflow-y:auto;background:#fff;border:1px solid #bbb;box-shadow:0 8px 24px #00000012;z-index:10;padding:6px}#steering-options button{display:block;width:100%;white-space:normal;text-align:left;padding:13px 14px;border:0;border-bottom:1px solid #eee;font-size:12px;line-height:1.7}#steering-options button:last-child{border-bottom:0}#steering-options button:hover{background:#f5f5f5}#steering-options button[aria-pressed=true]{background:#f0f0f0;box-shadow:inset 2px 0 #222}.selected-instruction{font-size:12px;line-height:1.8;margin:18px 0 0;max-width:1000px}#steering-menu summary:focus-visible{outline:2px solid #444;outline-offset:3px}

/* Selection controls left; playback anchored right. */
.toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;flex-wrap:nowrap}.toolbar>.experiment-selectors{display:flex;flex-wrap:wrap;gap:14px 24px;align-items:center;min-width:0}.toolbar>.playback-controls{margin-left:auto;display:flex;gap:8px;flex-shrink:0}.steer-picker{display:flex;align-items:center;gap:12px;color:#222}.steer-picker>span{white-space:nowrap}.model-picker select{width:210px}.steer-picker #steering-menu>summary{width:210px;display:flex;align-items:center;justify-content:space-between;padding:7px 11px;border:1px solid #ddd;font:inherit;background:white}.steer-picker #steer-current{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.steer-picker #steering-options{left:0;right:auto}.scenario-context{font-size:10px;color:#777;margin-top:16px}.selected-instruction{margin-top:12px}@media(max-width:800px){.toolbar>.experiment-selectors{flex-direction:column;align-items:flex-start;gap:12px}.model-picker,.steer-picker{display:grid;grid-template-columns:48px minmax(0,1fr);gap:10px}.model-picker select,.steer-picker #steering-menu>summary{width:210px}.steer-picker #steering-options{left:auto;right:0}}@media(max-width:480px){.toolbar{gap:8px}.toolbar>.playback-controls{flex-direction:column}.model-picker select,.steer-picker #steering-menu>summary{width:160px}}

/* Give the animation breathing room beneath the experiment controls. */
#trolley .scene{margin-top:clamp(48px,8vh,96px);align-items:center}
@media(max-width:600px){#trolley .scene{margin-top:40px}}
