.three-scene{background:var(--paper);min-height:0}
.three-viewport{height:460px;position:relative;overflow:hidden;background:#d4d7da}
.three-viewport canvas{display:block;width:100%;height:100%;cursor:grab;touch-action:none}
.three-viewport canvas:active{cursor:grabbing}
.three-scene[data-kind=robot] .three-viewport,.three-scene[data-kind=flow] .three-viewport{height:600px}
.hero .three-viewport{height:380px}
.three-caption{position:absolute;left:24px;top:24px;pointer-events:none;display:grid;gap:8px;z-index:1}
.three-kicker{font-size:10px;letter-spacing:.15em;font-weight:700;color:var(--muted)}
.three-caption strong{font-size:14px;font-weight:600}
.three-gesture{position:absolute;bottom:20px;left:24px;right:24px;font-size:12px;line-height:1.5;color:var(--muted);pointer-events:none}
.three-status{position:absolute;inset:0;display:grid;place-content:center;padding:40px;text-align:center;font-size:14px;line-height:1.8;background:var(--paper);z-index:2}
.three-tools{background:var(--surface);padding:12px 20px;display:flex;flex-wrap:wrap;gap:8px 20px;align-items:center;border-top:1px solid var(--line)}
.three-camera{display:flex;gap:4px;flex-wrap:wrap}
.three-camera button{border:0;background:transparent;color:var(--muted);border-radius:var(--r1);font-size:12px;min-width:44px;min-height:44px;padding:8px}
.three-camera button:hover{background:var(--wash);color:var(--ink)}
.three-explode{display:flex;gap:12px;align-items:center;font-size:12px;white-space:nowrap;flex:1;min-width:240px;max-width:380px}
.three-explode input{min-height:44px;min-width:72px;flex:1;width:auto}
.three-explode output{width:35px;font-size:12px;color:var(--blue);font-variant-numeric:tabular-nums;text-align:right}
.three-anchor{position:absolute;transform:translate(-50%,-50%);background:var(--blue);border:2px solid white;border-radius:24px;box-shadow:0 2px 16px #202b3120;min-height:44px;padding:7px 12px;color:white;font-size:11px;white-space:nowrap}
.three-anchor::before{content:"";display:inline-block;width:5px;height:5px;border-radius:50%;background:white;margin-right:7px;vertical-align:middle}
.three-legend{position:absolute;top:24px;right:24px;display:grid;gap:8px;padding:10px 12px;background:#ffffffd9;border-radius:8px;font-size:11px;pointer-events:none}
.three-legend span:first-child{color:var(--orange)}
.three-legend span:last-child{color:var(--blue)}
.response-chart{padding:16px 24px 0;margin:0}
.response-chart>div{max-width:640px;margin:auto}
.response-chart svg{width:100%;max-height:240px}
.experiment-card .mini-art{position:relative;background:#d4d7da}
.mini-art img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain}
.model-disclaimer a{text-decoration:underline;text-underline-offset:3px}
.three-scene[data-kind=cup] .three-viewport{height:600px}
.hero .three-scene[data-kind=cup] .three-viewport{height:440px}
.grasp-playback{padding:20px 24px;background:var(--surface);border-top:1px solid var(--line)}
.grasp-stage{display:grid;gap:8px;min-height:60px}
.grasp-stage strong{font-size:14px;color:var(--ink)}
.grasp-stage span,.grasp-reduced{font-size:12px;line-height:1.6;color:var(--muted)}
.grasp-timeline{display:flex;gap:16px;align-items:center;margin-top:12px}
.grasp-timeline button{min-width:88px;min-height:44px;padding:8px 12px;border:0;border-radius:var(--r1);background:var(--wash);color:var(--ink);font-size:12px}
.grasp-timeline label{display:flex;gap:12px;align-items:center;flex:1;font-size:12px;white-space:nowrap;min-width:0}
.grasp-timeline input{width:100%;min-width:40px;min-height:44px;flex:1}
.grasp-timeline output{min-width:32px;text-align:right;color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}
.grasp-reduced{margin-top:12px}
.lab-primary:has(.three-scene){top:104px}
@media(max-width:900px){.three-scene[data-kind=robot] .three-viewport,.three-scene[data-kind=flow] .three-viewport{height:560px}}
@media(max-width:600px){.three-scene[data-kind=cup] .three-viewport,.hero .three-scene[data-kind=cup] .three-viewport{height:460px}.grasp-playback{padding:16px}.grasp-timeline{gap:8px}.grasp-timeline label{font-size:0;gap:0}.grasp-timeline button{min-width:76px}.grasp-stage{min-height:66px}}
@media(max-width:600px){.three-viewport,.hero .three-viewport{height:340px}.three-scene[data-kind=robot] .three-viewport,.three-scene[data-kind=flow] .three-viewport{height:460px}.three-caption{top:20px;left:20px}.three-caption strong{font-size:12px}.three-tools{padding:8px 12px;gap:4px}.three-camera{width:100%;justify-content:space-between}.three-explode{min-width:0;max-width:none;width:100%;padding:0 8px}.three-gesture{left:20px;right:20px;bottom:16px;font-size:12px}.three-legend{top:auto;right:16px;bottom:40px;font-size:10px;gap:4px}.three-anchor{font-size:10px;min-height:44px;padding:6px 10px}}
.three-status{gap:20px;margin:0}
.three-status p{margin:0;max-width:420px}
.three-status .button{justify-self:center;min-height:44px}
.three-tools button:disabled,.grasp-timeline button:disabled{opacity:.5;cursor:default}

.three-touch-toggle{min-height:44px;padding:8px 12px;border:1px solid var(--blue);border-radius:var(--r1);background:var(--surface);color:var(--blue);font-size:12px}
.three-touch-toggle[aria-pressed=true]{background:var(--wash);color:var(--ink)}
