
*{box-sizing:border-box}body{margin:0;font-family:system-ui,"Microsoft YaHei",sans-serif;background:#101823;color:#e8eef4;font-size:14px}button,input,select{font:inherit}button,select{background:#233244;color:#eef5fc;border:1px solid #46576b;border-radius:7px;padding:9px 13px;cursor:pointer}button:hover{background:#34485d}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #7bded6;outline-offset:3px}button.primary{background:#78d9ca;border-color:#78d9ca;color:#102f32;font-weight:600}button[aria-pressed=true]{border-color:#87e3d5;background:#2d5659}header{padding:20px 26px 16px;border-bottom:1px solid #2f3c4b;display:flex;justify-content:space-between;align-items:center;gap:16px}h1{font-size:21px;margin:0 0 6px;font-weight:600}header p{margin:0;color:#aebdcb;font-size:13px}.badge{padding:7px 11px;border-radius:5px;background:#433c28;color:#f2d390;white-space:nowrap;font-size:12px}main{display:grid;grid-template-columns:240px minmax(0,1fr);min-height:0}aside{padding:22px 18px;border-right:1px solid #2f3c4b}h2{font-size:14px;margin:0 0 14px;font-weight:600}.legend{display:grid;gap:12px;margin-bottom:22px}.legend label{display:flex;align-items:center;gap:8px;cursor:pointer}.legend input{accent-color:#7bded6}.dot{width:10px;height:10px;border-radius:3px;display:inline-block}.small{font-size:12px;color:#adbfce;line-height:1.65}.tools{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.tools button{font-size:12px;padding:7px 10px}.viewport{position:relative;min-width:0;height:clamp(380px,calc(100vh - 300px),580px);background:radial-gradient(ellipse at center,#263749 0%,#17222e 75%)}#canvas{width:100%;height:100%;display:block;touch-action:none}.view-top{position:absolute;top:17px;left:20px;right:20px;display:flex;justify-content:space-between;gap:12px;pointer-events:none}.view-top span{background:#14212dd9;padding:7px 10px;border-radius:5px;color:#c2d3e0;font-size:12px}.view-bottom{position:absolute;bottom:16px;left:20px;right:20px;display:flex;justify-content:space-between;gap:10px;pointer-events:none;font-size:12px;color:#c0cfda}#loading{position:absolute;inset:0;display:grid;place-items:center;background:#17222ef0;color:#b7e7dc;font-size:17px;z-index:4}#picked{min-height:57px;padding-top:12px;border-top:1px solid #304252;overflow-wrap:anywhere}.transport{padding:20px 26px 22px;border-top:1px solid #2f3c4b}.status{display:flex;justify-content:space-between;gap:16px;align-items:baseline;margin-bottom:15px}.status strong{font-size:17px;font-weight:500}.status span{font-size:12px;color:#b7c6d3}.control-row{display:flex;gap:13px;align-items:center;flex-wrap:wrap}.range-wrap{flex:1;min-width:180px}input[type=range]{width:100%;accent-color:#7bded6;cursor:pointer}.stages{display:flex;gap:7px;flex-wrap:wrap;margin-top:16px}.stages button{flex:1;min-width:100px;font-size:12px;padding:8px}.note{margin-top:15px;font-size:12px;color:#c5d1dc;line-height:1.7}footer{padding:12px 26px 18px;font-size:12px;line-height:1.65;color:#8fa4b7}summary{cursor:pointer;color:#b7c9d7}details p{max-width:1050px}#percent{width:42px;text-align:right;font-variant-numeric:tabular-nums}#speed{padding:8px;max-width:100px}.sr{position:absolute;width:1px;height:1px;clip:rect(0,0,0,0);overflow:hidden}@media(max-width:750px){header{padding:15px;align-items:flex-start;flex-direction:column;gap:9px}h1{font-size:18px}main{grid-template-columns:1fr;min-height:0}aside{order:2;border-right:0;border-top:1px solid #304252;padding:16px}.legend{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:10px}.viewport{height:430px}.transport{padding:16px}.status{flex-direction:column;gap:7px}.view-top,.view-bottom{left:12px;right:12px}.view-top{gap:5px}.view-top span{font-size:11px;padding:5px}.view-bottom{font-size:11px}footer{padding:12px 16px}#picked{min-height:35px}.tools{margin:10px 0}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}
.header-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}.header-actions .badge{white-space:normal;max-width:310px}.language{display:flex;align-items:center;gap:7px;font-size:12px;white-space:nowrap}.status{flex-wrap:wrap}.status label{display:flex;align-items:center;gap:8px;min-width:0;max-width:100%}#program{max-width:100%;width:min(440px,100%)}.stages button{overflow-wrap:anywhere}.view-top span:last-child{white-space:nowrap}
[lang=en] .legend{gap:10px;font-size:13px}[lang=en] .legend .dot{flex-shrink:0}@media(min-width:751px){[lang=en] main{grid-template-columns:300px minmax(0,1fr)}}

/* Keep playback before the optional settings in document and mobile order. */
a{color:#9ceadd}a:focus-visible,summary:focus-visible{outline:2px solid #7bded6;outline-offset:3px}.project-links{display:flex;justify-content:space-between;gap:14px;padding:12px 26px;border-bottom:1px solid #2f3c4b;font-size:13px}.project-links a{padding:5px 0;overflow-wrap:anywhere}.demo-boundary{margin:0;padding:10px 26px;color:#c5d1dc;font-size:12px;line-height:1.6;border-bottom:1px solid #2f3c4b}.settings-content{padding-top:18px}main{grid-template-columns:300px minmax(0,1fr)}aside{grid-column:1;grid-row:1 / 3}.viewport{grid-column:2;grid-row:1;height:clamp(380px,calc(100vh - 360px),580px)}.transport{grid-column:2;grid-row:2;min-width:0}.status label{flex:1;min-width:200px}.status label>span{flex-shrink:0}#program{min-width:0}.control-row{gap:10px}.view-top{flex-wrap:wrap}.view-top span{max-width:100%;overflow-wrap:anywhere}#runner-info{top:68px}.view-bottom{flex-wrap:wrap}.view-bottom span{max-width:100%;overflow-wrap:anywhere}.touch-help{display:none}#loading{text-align:center;padding:25px;line-height:1.6}#settings summary{font-weight:600}.range-wrap{min-width:0;flex-basis:100%}.legend label{min-width:0;overflow-wrap:anywhere}.legend input,.legend .dot{flex-shrink:0}
@media(max-width:750px){main,[lang=en] main{display:flex;flex-direction:column}.viewport{height:clamp(280px,42vh,360px);width:100%}.transport{order:0}aside{order:1;width:100%}.project-links{padding:8px 15px;align-items:center}.project-links a{flex:1}.project-links a:last-child{text-align:right}.demo-boundary{padding:10px 15px}.legend{grid-template-columns:1fr}.status label{width:100%;flex:none;min-width:0;align-items:flex-start;flex-direction:column}#program{width:100%}.view-top{top:12px;gap:5px}.view-top span:first-child{max-width:calc(100% - 95px)}.view-top span:last-child{font-size:10px;padding:5px 2px}#runner-info{left:12px!important;right:12px!important;top:74px!important;font-size:10px}.view-bottom{bottom:10px;font-size:10px;gap:5px}.header-actions{justify-content:flex-start}button{min-height:40px}.stages button{min-width:120px}.pointer-help{display:none}.touch-help{display:inline}}
