.trajectory-demo{--td-clay:#B45B45;--td-clay-dark:#864130;--td-ink:#292B28;--td-muted:#77776C;--td-line:#deded4;--td-paper:#f8f8f3;font-family:var(--sans,Inter,"Segoe UI",Arial,sans-serif);color:var(--td-ink);min-width:0;container-type:inline-size}
.trajectory-demo *{box-sizing:border-box}
.trajectory-demo button,.trajectory-demo select{font:inherit;color:inherit}
.trajectory-demo button{cursor:pointer;touch-action:manipulation}
.trajectory-demo button:disabled{opacity:.42;cursor:default}
.trajectory-demo button:focus-visible,.trajectory-demo select:focus-visible,.trajectory-demo summary:focus-visible,.trajectory-demo .td-canvas:focus-visible{outline:3px solid #B45B45;outline-offset:4px}
.trajectory-demo button:not(:disabled):hover{border-color:var(--td-clay);color:var(--td-clay-dark)}
.trajectory-demo .td-controls{display:flex;justify-content:space-between;gap:24px;align-items:end;margin-bottom:18px}
.trajectory-demo .td-control-label{display:block;font-size:14px;font-weight:600;color:var(--td-muted);margin-bottom:8px}
.trajectory-demo .td-modes,.trajectory-demo .td-operations{display:flex;gap:5px}
.trajectory-demo .td-modes button,.trajectory-demo .td-operations button{border:1px solid var(--td-line);background:#fff;border-radius:7px;min-height:46px;padding:10px 15px;font-size:15px;font-weight:560;line-height:1.3;transition:background .15s,border-color .15s}
.trajectory-demo .td-modes button[aria-pressed=true],.trajectory-demo .td-operations button[aria-pressed=true]{background:#f4e7df;border-color:#c99782;color:var(--td-clay-dark)}
.trajectory-demo .td-mode-number{font-size:11px;letter-spacing:.03em;color:#77776C;margin-right:8px;font-variant-numeric:tabular-nums}
.trajectory-demo .td-edit-choice{flex-shrink:0}
.trajectory-demo .td-axis-controls{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;margin:0 0 15px;font-size:13px;color:var(--td-muted)}
.trajectory-demo .td-axis-controls[hidden]{display:none}
.trajectory-demo .td-rotation-axes{display:flex;gap:5px}
.trajectory-demo .td-rotation-axes button{min-width:44px;min-height:44px;border:1px solid var(--td-line);border-radius:6px;background:#fff;font-size:14px;font-weight:700}
.trajectory-demo .td-rotation-axes button[data-axis=x]{--td-axis-color:#b24f43}
.trajectory-demo .td-rotation-axes button[data-axis=y]{--td-axis-color:#48836b}
.trajectory-demo .td-rotation-axes button[data-axis=z]{--td-axis-color:#4e73ad}
.trajectory-demo .td-rotation-axes button{color:var(--td-axis-color)}
.trajectory-demo .td-rotation-axes button[aria-pressed=true]{background:var(--td-axis-color);border-color:var(--td-axis-color);color:#fff}
.trajectory-demo .td-rotation-axes button:not(:disabled):hover{border-color:var(--td-axis-color)}
.trajectory-demo .td-stage{border:1px solid var(--td-line);border-radius:12px;overflow:hidden;background:var(--td-paper)}
.trajectory-demo .td-stage-bar{min-height:52px;padding:12px 22px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--td-line);background:#fff;font-size:14px}
.trajectory-demo .td-state{display:flex;align-items:center;gap:9px;font-weight:600;white-space:nowrap}
.trajectory-demo .td-state-dot{display:block;width:8px;height:8px;background:#657044;border-radius:50%}
.trajectory-demo[data-phase=preview] .td-state-dot,.trajectory-demo[data-phase=executing] .td-state-dot{background:var(--td-clay)}
.trajectory-demo .td-stage-context{font-size:13px;color:var(--td-muted);text-align:right}
.trajectory-demo .td-views{display:grid;grid-template-columns:minmax(0,1fr)}
.trajectory-demo .td-views.td-has-map{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.trajectory-demo .td-view{position:relative;min-width:0;display:flex;align-items:center}
.trajectory-demo .td-map-view{border-left:1px solid var(--td-line);background:#f1f2e9}
.trajectory-demo .td-map-view[hidden]{display:none}
.trajectory-demo .td-map-view{flex-direction:column}
.trajectory-demo .td-map-view .td-map-toolbar{position:relative;inset:auto;width:100%;padding:10px 14px;background:#f7f8f0;border-bottom:1px solid var(--td-line);flex-wrap:wrap;justify-content:flex-start;gap:10px 16px;min-height:54px}
.trajectory-demo .td-map-toolbar strong{margin-right:auto}
.trajectory-demo .td-map-scale-label{display:flex;align-items:center;gap:6px;font-size:12px}
.trajectory-demo .td-map-scale-label select{background:#fff;border:1px solid var(--td-line);border-radius:4px;min-height:32px;padding:3px 5px;font-size:13px}
.trajectory-demo .td-map-nav{width:100%;display:flex;align-items:center;justify-content:center;gap:5px;padding:8px 12px;background:#f7f8f0;border-top:1px solid var(--td-line);font-size:12px;color:var(--td-muted)}
.trajectory-demo .td-map-nav>span{margin-right:6px}
.trajectory-demo .td-map-nav button{border:1px solid var(--td-line);background:#fff;border-radius:4px;min-width:31px;min-height:31px;padding:4px 8px;font-size:13px}
.trajectory-demo .td-display-options{display:flex;flex-wrap:wrap;align-items:center;gap:10px 20px;font-size:13px;margin:0 0 15px;color:var(--td-muted)}
.trajectory-demo .td-display-options label{display:flex;align-items:center;gap:8px;color:var(--td-ink);cursor:pointer}
.trajectory-demo .td-display-options input{accent-color:#B45B45;width:17px;height:17px;margin:0}
.trajectory-demo .td-display-options input:focus-visible{outline:2px solid #B45B45;outline-offset:3px}
.trajectory-demo .td-canvas.td-hand-visible{cursor:none!important}
.trajectory-demo .td-canvas .arise-hand{filter:drop-shadow(1px 2px 1px #292b2820)}
.trajectory-demo .td-canvas{display:block;width:100%;height:auto;aspect-ratio:960/420;max-height:480px;overflow:hidden;touch-action:pan-y;user-select:none;-webkit-user-select:none}
.trajectory-demo .td-canvas.td-can-edit{touch-action:none;cursor:none}
.trajectory-demo[data-mode=map] .td-main-view .td-canvas{cursor:default}
.trajectory-demo .td-canvas:focus-visible{outline-offset:-5px}
.trajectory-demo .td-map-toolbar{position:absolute;top:12px;left:18px;right:18px;z-index:1;display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:13px}
.trajectory-demo .td-map-toolbar strong{font-weight:600}
.trajectory-demo .td-map-toolbar strong span{display:inline-block;color:var(--td-clay);margin-left:6px}
.trajectory-demo .td-map-pan{display:flex;align-items:center;gap:9px;font-size:12px}
.trajectory-demo .td-map-pan button{border:1px solid #d1d3bf;background:#fff;border-radius:4px;width:30px;height:30px;font-size:17px;padding:0}
.trajectory-demo .td-path-original{fill:none;stroke:#657044;stroke-width:2.8;stroke-dasharray:9 8;stroke-linecap:round}
.trajectory-demo .td-path-edited{fill:none;stroke:var(--td-clay);stroke-width:4;stroke-linecap:round}
.trajectory-demo .td-path-prefix{fill:none;stroke:#292B28;stroke-width:5;stroke-linecap:round}
.trajectory-demo .td-offset{fill:none;stroke:#b5b99c;stroke-width:1.4;stroke-dasharray:4 5}
.trajectory-demo .td-original-node{fill:#989e80;stroke:var(--td-paper);stroke-width:1.5}
.trajectory-demo .td-node{stroke:var(--td-paper);stroke-width:2}
.trajectory-demo .td-node-fixed{fill:#292B28}
.trajectory-demo .td-node-future{fill:var(--td-clay)}
.trajectory-demo .td-node-hover{stroke:var(--td-clay);stroke-width:6;fill:#f4e7df}
.trajectory-demo .td-anchor-ring{fill:#fff;stroke:#292B28;stroke-width:3}
.trajectory-demo .td-selection-halo{fill:#B45B4517;stroke:var(--td-clay);stroke-width:1.5}
.trajectory-demo .td-selected-node{fill:var(--td-clay);stroke:#fff;stroke-width:2.5}
.trajectory-demo .td-svg-label{font:17px var(--sans,Inter,"Segoe UI",Arial,sans-serif);fill:#77776C}
.trajectory-demo .td-svg-selected-label{font:600 19px var(--sans,Inter,"Segoe UI",Arial,sans-serif);fill:var(--td-clay-dark)}
.trajectory-demo .td-svg-label{font-size:calc(17px * var(--td-svg-scale,1))}
.trajectory-demo .td-svg-selected-label{font-size:calc(19px * var(--td-svg-scale,1))}
.trajectory-demo .td-pose-axes{fill:none;stroke-width:2.4;stroke-linecap:round;opacity:.8;pointer-events:none}
.trajectory-demo .td-axis-x{stroke:#c4695d}.trajectory-demo .td-axis-y{stroke:#549474}.trajectory-demo .td-axis-z{fill:#5875b4;stroke:none}
.trajectory-demo .td-gripper{fill:none;stroke:#292B28;stroke-width:3.2;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.trajectory-demo .td-gripper-ghost{stroke:#77776C;stroke-dasharray:3 3;opacity:.8}
.trajectory-demo .td-rotation-guide{fill:none;stroke:#b5b99c;stroke-width:1.5;stroke-dasharray:4 6}
.trajectory-demo .td-rotation-arm{stroke:var(--td-clay);stroke-width:1.8}
.trajectory-demo .td-rotation-handle{fill:#fff;stroke:var(--td-clay);stroke-width:3;cursor:none}
.trajectory-demo .td-playhead-halo{fill:#B45B4519;stroke:#c99782;stroke-width:1.5}
.trajectory-demo .td-playhead{fill:#292B28;stroke:#fff;stroke-width:2}
.trajectory-demo .td-legend{display:flex;flex-wrap:wrap;justify-content:center;gap:15px 28px;padding:15px 20px;border-top:1px solid var(--td-line);background:#ffffffa3;font-size:12px;color:var(--td-muted)}
.trajectory-demo .td-legend>span{display:flex;align-items:center;gap:8px}
.trajectory-demo .td-legend i{display:block;width:25px;height:0;border-top:3px solid;flex-shrink:0}
.trajectory-demo .td-legend .td-key-original{border-color:#657044;border-top-style:dashed}
.trajectory-demo .td-legend .td-key-edited{border-color:var(--td-clay)}
.trajectory-demo .td-legend .td-key-prefix{border-color:#292B28}
.trajectory-demo .td-legend .td-key-selected{width:10px;height:10px;border:2px solid var(--td-clay);border-radius:50%;margin-inline:7px}
.trajectory-demo .td-edit-row{display:flex;gap:20px;align-items:center;min-height:77px;padding:15px 0;border-bottom:1px solid var(--td-line)}
.trajectory-demo .td-point-label{display:flex;align-items:center;gap:10px;font-size:14px;white-space:nowrap}
.trajectory-demo .td-point-label select{border:1px solid var(--td-line);background:#fff;border-radius:5px;min-height:40px;max-width:150px;padding:7px 30px 7px 11px;font-size:14px}
.trajectory-demo .td-hint{margin:0;flex:1;font-size:14px;line-height:1.6;color:var(--td-muted)}
.trajectory-demo .td-utility{display:flex;gap:4px;flex-shrink:0}
.trajectory-demo .td-utility button,.trajectory-demo .td-play-start{background:transparent;border:1px solid transparent;border-radius:5px;padding:8px 12px;min-height:40px;font-size:14px}
.trajectory-demo .td-action-row{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:20px 0 14px}
.trajectory-demo .td-workflow{display:flex;gap:12px;align-items:center;white-space:nowrap;font-size:13px;color:#77776C}
.trajectory-demo .td-current-step{color:var(--td-clay-dark);font-weight:650}
.trajectory-demo .td-play-actions{display:flex;align-items:center;gap:12px}
.trajectory-demo .td-primary{min-height:46px;background:var(--td-clay);color:#fff!important;border:1px solid var(--td-clay);border-radius:6px;padding:10px 18px;font-size:15px;font-weight:600;white-space:nowrap}
.trajectory-demo .td-primary span{margin-left:12px}
.trajectory-demo .td-primary:not(:disabled):hover{background:var(--td-clay-dark)}
.trajectory-demo .td-footnotes{display:flex;justify-content:space-between;gap:20px;align-items:start;font-size:12px;line-height:1.6;color:#77776C}
.trajectory-demo .td-footnotes details{max-width:550px;text-align:right}
.trajectory-demo .td-footnotes summary{cursor:pointer;text-decoration:underline;text-underline-offset:3px;list-style:none}
.trajectory-demo .td-footnotes summary::-webkit-details-marker{display:none}
.trajectory-demo .td-footnotes details p{margin:7px 0 0;line-height:1.7}
.trajectory-demo .td-sr-only{position:absolute!important;clip:rect(0,0,0,0)!important;clip-path:inset(50%)!important;width:1px!important;height:1px!important;overflow:hidden!important;white-space:nowrap!important}
@container (max-width:950px){.trajectory-demo .td-controls{flex-wrap:wrap;gap:14px}.trajectory-demo .td-edit-choice{display:flex;align-items:center;gap:15px}.trajectory-demo .td-edit-choice .td-control-label{margin:0}.trajectory-demo .td-operations button{min-height:40px;padding:8px 14px}.trajectory-demo .td-edit-row{gap:14px;flex-wrap:wrap}.trajectory-demo .td-hint{order:3;flex-basis:100%}.trajectory-demo .td-utility{margin-left:auto}.trajectory-demo .td-stage-context{font-size:12px}.trajectory-demo .td-workflow{gap:7px;font-size:12px}.trajectory-demo .td-play-actions{gap:6px}}
@container (max-width:700px){.trajectory-demo .td-modes{display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px}.trajectory-demo .td-choice-group{width:100%}.trajectory-demo .td-modes button{font-size:13px;padding:10px 9px;min-height:56px}.trajectory-demo .td-mode-number{display:none}.trajectory-demo .td-controls{margin-bottom:14px}.trajectory-demo .td-edit-choice{width:auto}.trajectory-demo .td-stage-bar{padding:12px 14px;min-height:46px}.trajectory-demo .td-stage-context{display:none}.trajectory-demo .td-state{font-size:13px}.trajectory-demo .td-canvas{min-height:240px;aspect-ratio:960/510}.trajectory-demo .td-views.td-has-map{grid-template-columns:1fr}.trajectory-demo .td-has-map .td-main-view .td-canvas{min-height:180px;aspect-ratio:960/360}.trajectory-demo .td-map-view{border-left:0;border-top:1px solid var(--td-line)}.trajectory-demo .td-map-toolbar{font-size:12px;top:10px}.trajectory-demo .td-map-pan button{width:32px;height:32px}.trajectory-demo .td-legend{justify-content:flex-start;gap:10px 18px;font-size:11px;padding:12px 14px}.trajectory-demo .td-action-row{flex-wrap:wrap;gap:15px;padding-top:17px}.trajectory-demo .td-play-actions{width:100%;justify-content:space-between}.trajectory-demo .td-primary{font-size:14px;padding:10px 14px}.trajectory-demo .td-play-start{padding-left:0;font-size:13px}.trajectory-demo .td-workflow{font-size:12px;gap:10px}.trajectory-demo .td-footnotes{flex-wrap:wrap;gap:7px}.trajectory-demo .td-footnotes details{text-align:left;max-width:none}.trajectory-demo .td-hint{font-size:13px}.trajectory-demo .td-control-label{font-size:13px}}
@media(prefers-reduced-motion:reduce){.trajectory-demo *{transition:none!important}}
@container (max-width:700px){.trajectory-demo .td-canvas{min-height:0;aspect-ratio:960/480}.trajectory-demo .td-has-map .td-main-view .td-canvas{min-height:0;aspect-ratio:960/440}.trajectory-demo .td-map-view .td-canvas{aspect-ratio:960/600}.trajectory-demo .td-point-label{font-size:13px;gap:8px}.trajectory-demo .td-point-label select{font-size:13px;max-width:138px;padding-right:22px}.trajectory-demo .td-utility button{padding:8px;font-size:13px}}
