:root{color-scheme:light;font-family:Arial,"Noto Sans TC","Microsoft JhengHei",sans-serif;color:#242424;background:#fff;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}#stage{width:100%;min-height:100svh;max-width:1600px;margin:auto;padding:24px 30px 15px;display:flex;flex-direction:column;outline:none}.scene-line{display:flex;align-items:center;gap:16px;min-height:35px;font-size:14px;color:#5d5d5d}.semantic{flex:1;font-size:12px;letter-spacing:.08em}#scenario{color:#333;font-size:16px;font-weight:600}#scene-count{font-size:12px;font-variant-numeric:tabular-nums;min-width:45px;text-align:right}.minor{color:#767676}#drawing{flex:1;min-height:0;display:flex;align-items:center;justify-content:center}#diagram{display:block;width:100%;max-height:calc(100svh - 224px);min-height:450px;overflow:visible}#caption{font-size:17px;text-align:center;margin:6px 0 13px;min-height:26px;line-height:1.6}.legend{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:9px 22px;min-height:30px;font-size:12px}.legend span{display:inline-flex;align-items:center;gap:7px}.legend i{display:inline-block;width:22px}.material{height:8px;border-top:1px solid #aaa;border-bottom:1px solid #aaa;position:relative}.material:after{content:"";position:absolute;width:7px;height:7px;left:7px;top:-.5px;background:#383838}.energy{height:5px;background:#8b8b8b}.information{height:1px;background:#555;position:relative}.information:after{content:"";position:absolute;width:4px;height:4px;border-radius:50%;background:#222;left:9px;top:-1.5px}.solid{height:11px;border:1px solid #777}.dashed{height:11px;border:1px dashed #777}.controls{display:flex;align-items:center;gap:5px;max-width:700px;width:100%;margin:12px auto 0;border-top:1px solid #e8e8e8;padding-top:5px}.controls button{border:0;background:transparent;color:#444;width:44px;height:44px;flex:none;cursor:pointer;font-size:22px;border-radius:4px}.controls button:hover{background:#f1f1f1}.controls button:focus-visible,input:focus-visible,#stage:focus-visible{outline:2px solid #555;outline-offset:2px}.controls button:disabled{color:#bcbcbc;cursor:default}.controls input{min-width:20px;flex:1;height:44px;accent-color:#444;cursor:pointer}.controls output{font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap;margin-left:7px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}svg text{font-family:inherit}svg .node-label{font-size:18px;font-weight:600;fill:#363636}svg .node-id{font-size:10px;letter-spacing:.1em;fill:#777}svg .small{font-size:13px;fill:#646464}svg .edge-label{font-size:14px;fill:#686868;paint-order:stroke;stroke:#fff;stroke-width:5px;stroke-linejoin:round}svg .status{font-size:13px;fill:#454545}svg .measure-label{font-size:11px;fill:#5b5b5b}svg .node-box{fill:#fff;stroke:#9d9d9d;stroke-width:1}svg .focused .node-box{fill:#f8f8f8;stroke:#3c3c3c;stroke-width:1.5}svg .optional .node-box{stroke-dasharray:5 4;fill:white}svg .optional text{fill:#737373}svg .boundary{fill:none;stroke:#e4e4e4;stroke-width:1}svg .edge-path{fill:none;stroke-linejoin:round;stroke-linecap:round}svg .edge-under{fill:none;stroke:#fff;stroke-width:9;stroke-linejoin:round}svg .pulse{fill:#343434}svg .workpiece{fill:#eee;stroke:#444;stroke-width:1.2}svg .sample{fill:#fff;stroke:#333;stroke-width:1.2}
@media(max-width:700px){#stage{padding:12px 5px 10px;min-height:100svh}.scene-line{padding:0 12px;flex-wrap:wrap;gap:6px 10px;min-height:47px;align-content:center}.semantic{flex:1;font-size:11px}.semantic .minor{display:none}#scenario{font-size:14px}#scene-count{font-size:11px;min-width:40px}#diagram{max-height:none;min-height:0;height:auto}#drawing{flex:0}#caption{font-size:15px;line-height:1.5;padding:0 14px;margin:4px 0 10px;min-height:23px}.legend{padding:0 10px;gap:8px 13px;font-size:11px}.legend .minor{flex-basis:100%;justify-content:center;font-size:10px}.controls{margin-top:9px;gap:0;padding:3px 6px 0}.controls button{width:44px;height:44px}.controls output{font-size:10px;margin-left:2px}svg .node-label{font-size:14px}svg .small{font-size:11px}svg .edge-label{font-size:11px}svg .status{font-size:12px}svg .measure-label{font-size:10px}}
@media(max-height:700px) and (min-width:701px){#stage{padding-top:10px}#diagram{min-height:480px;max-height:none}.scene-line{min-height:25px}#caption{margin:0 0 5px}}

@media(max-width:700px){svg .node-id{display:none}}
@media(max-width:350px){svg .optional .node-label{font-size:12px}}

@media(max-width:700px){#stage{padding-top:8px}.scene-line{min-height:34px}#caption{margin:1px 0 5px}.legend{column-gap:8px;row-gap:5px;font-size:10px}.legend span{gap:4px}.controls{margin-top:5px}svg .edge-label{font-size:11px}}
