.state-lab{margin:18px 0;padding:20px;border:1px solid #34534e;border-radius:12px;background:#142326}
.state-lab h4{margin:0}.state-lab .replay-table{max-height:440px}.state-lab table{width:100%}
.state-lab th{text-align:left;font-weight:500}.state-lab td{vertical-align:middle}.state-lab input[type=number]{width:145px;max-width:100%;font-variant-numeric:tabular-nums}
.state-lab .state-changed{color:#ffc48e}.state-lab-actions,.state-playback-controls{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:16px}
.state-playback-controls label{display:flex;align-items:center;gap:8px}.state-playback-controls input[type=number]{width:72px}
.state-playback-controls input[type=range]{flex:1;min-width:160px}.state-compare-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;margin:18px 0}
.state-compare-side{min-width:0;background:#101820;border:1px solid #334652;border-radius:12px;overflow:hidden;border-top:3px solid #81bcf5}
.state-compare-side.modified{border-top-color:#edb67b}.state-compare-side header{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:14px 16px}
.state-robot-viewport{height:420px;position:relative;overflow:hidden}.state-robot-viewport:empty::after{content:'载入 WA2 机器人模型…';position:absolute;inset:45% 0;text-align:center;color:#a1b3c3}
.state-robot-viewport canvas{display:block;width:100%;height:100%}.state-compare-plot{display:block;width:100%;height:auto;border-top:1px solid #2b3b49}
.state-compare-output{margin:16px 0}.state-compare-output .module-section-heading{gap:15px}
.state-empty-note{padding:12px;border-left:2px solid #7abfbb;background:#122126;color:#bed1dd}
@media(max-width:850px){.state-compare-grid{grid-template-columns:1fr}.state-robot-viewport{height:340px}.state-lab{padding:12px}.state-lab input[type=number]{width:110px}}

.state-path-controls{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:14px 0}.state-path-controls label{display:flex;gap:6px;align-items:center}
.gpu-auth-dialog{width:min(420px,calc(100vw - 48px));padding:26px;border:1px solid #385260;border-radius:12px;background:#17232d;color:#e0e9ef;font:inherit;box-shadow:0 24px 80px #0008}.gpu-auth-dialog::backdrop{background:#050b12b3}.gpu-auth-dialog h3{margin:10px 0}.gpu-auth-dialog label{display:grid;gap:8px;margin:18px 0}.gpu-auth-dialog input{box-sizing:border-box;width:100%}.gpu-auth-dialog .state-lab-actions{justify-content:flex-end}.gpu-auth-dialog #gpu_auth_note{min-height:1.5em;color:#edb67b}
/* State editing belongs to the input node. Only the shared inspector expands. */
.flow-input-grid>.flow-input-state-module{display:contents}
.flow-input-grid>.flow-source,.flow-input-grid>.flow-input-state-module>.flow-source{order:1}
#flow_input_state{width:100%;text-align:left;cursor:pointer;font:inherit;grid-column:3}
#flow_input_noise{grid-column:4}
#flow_body_input_state{order:2;grid-column:1/-1;margin-top:10px;--node-border:#3f6a63;--node-ink:#8fdac7}
#flow_input_state .source-kind{display:flex;justify-content:space-between;gap:6px}
#state_input_badge{color:#9ddccb;font-size:9px}
#module_state_editor .replay-table{max-height:none;overflow-x:auto}
.state-value-stepper{display:flex;align-items:center;gap:6px}
.state-value-stepper button{min-width:32px;padding:7px 9px;font-size:16px}
.state-value-stepper input[type=number]{width:150px;appearance:textfield;-moz-appearance:textfield}
.state-value-stepper input::-webkit-inner-spin-button,.state-value-stepper input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.state-step-control{display:flex;gap:10px;align-items:center;margin:14px 0}
.state-step-control select{width:auto}
.state-shared-scene{margin-top:16px;border-top:1px solid #334652}
.state-shared-scene .state-robot-viewport{height:560px}
.state-trajectory-legend{display:flex;gap:22px;flex-wrap:wrap;font-size:12px}
.state-trajectory-legend .dataset{color:#81bcf5}.state-trajectory-legend .modified{color:#edb67b}
.state-playback-controls select{max-width:200px}
@media(max-width:850px){.state-shared-scene .state-robot-viewport{height:400px}.state-value-stepper input[type=number]{width:120px}}
