:root{font-family:Segoe UI,Microsoft YaHei,sans-serif;color:#292e2b;background:#f2f0e9;font-synthesis:none;--line:#dcded4;--muted:#7d827b;--accent:#a76443}*{box-sizing:border-box}body{margin:0}button,input,a{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{font:inherit;cursor:pointer;border:0;background:none;color:inherit}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid #a76443;outline-offset:4px}a{color:inherit;text-decoration:none}header{height:87px;display:flex;align-items:center;padding:0 35px;border-bottom:1px solid var(--line);gap:16px;background:#f7f6f1}.brand-mark{width:35px;height:35px;background:#293b35;color:#f5f1e8;font-size:28px;font-weight:600;display:grid;place-items:center}.brand{display:flex;flex-direction:column;gap:3px}.brand b{letter-spacing:4px;font-size:19px;font-weight:650}.brand span{letter-spacing:1.9px;font-size:8px;color:var(--muted)}nav{display:flex;align-items:center;gap:32px;margin-left:auto;font-size:12px}nav .active{font-weight:600}nav a{color:var(--muted)}.local{margin-left:40px;font-size:11px;display:flex;gap:8px;align-items:center;color:#59695d}i{font-style:normal}.local i,footer i{display:inline-block;width:5px;height:5px;border-radius:100%;background:#55745b;margin-right:5px}main{display:grid;grid-template-columns:250px minmax(250px,1fr) 280px;height:calc(100dvh - 128px);min-height:640px}.left-panel,.right-panel{padding:35px 26px}.left-panel{border-right:1px solid var(--line)}.eyebrow{font:9px Consolas,monospace;letter-spacing:1.2px;color:var(--muted)}h1{font-size:35px;line-height:1.43;letter-spacing:-1.5px;font-weight:500;margin:20px 0 14px}h1 span{color:var(--accent)}.intro{font-size:11px;line-height:1.9;color:#777d74;margin:0}.rule{height:1px;background:var(--line);margin:27px 0 24px}.section-caption{font-size:12px;font-weight:600;display:flex;justify-content:space-between;align-items:center;margin-bottom:21px}.section-caption>span{font:8px Consolas,monospace;letter-spacing:.8px;color:#a0a49a;font-weight:400}.assembly-item{width:100%;display:flex;align-items:center;text-align:left;padding:14px 10px;margin:5px 0;border-radius:3px;gap:12px;transition:background .2s}.assembly-item>span{font:10px Consolas;color:#999f95}.assembly-item div{display:flex;flex-direction:column;gap:6px}.assembly-item b{font-size:11px;font-weight:500}.assembly-item small{font-size:9px;color:var(--muted)}.assembly-item>i{margin-left:auto;font-size:14px;color:#9ba093}.assembly-item.selected{background:#e6e9df}.assembly-item:hover{background:#e9ebe3}.reference-note{margin-top:32px;border-top:1px solid var(--line);padding-top:20px}.reference-note b{font-size:10px;font-weight:500}.reference-note p{font-size:10px;color:#8a8e84;line-height:1.9}.reference-note a{font-size:10px;color:#64755f}.viewport{position:relative;overflow:hidden;min-height:570px}#scene{display:block;width:100%;height:100%;touch-action:none}.viewport-title{position:absolute;top:27px;left:28px;right:28px;display:flex;justify-content:space-between;font:9px Consolas,Microsoft Yahei,sans-serif;color:#7d8579;letter-spacing:1px;pointer-events:none}.viewport-title span:first-child{color:#454e42}.model-caption{position:absolute;top:65px;left:28px;display:flex;flex-direction:column;gap:5px;pointer-events:none}.small-line{width:26px;height:2px;background:#b27a57;margin-bottom:9px}.model-caption b{font-size:12px;letter-spacing:4px;font-weight:500}.model-caption>span:last-child{font:7px Consolas;letter-spacing:1.7px;color:#969b91}.view-buttons{position:absolute;bottom:50px;left:50%;transform:translate(-50%);display:flex;gap:4px;background:#faf9f5d9;border:1px solid #ddded6;padding:5px;border-radius:5px;white-space:nowrap}.view-buttons button{font-size:10px;padding:8px 13px;border-radius:3px}.view-buttons button:hover{background:#e7e9df}.gesture-hint{position:absolute;bottom:23px;left:50%;transform:translate(-50%);font-size:9px;white-space:nowrap;color:#92978e}.gesture-hint span{margin:0 8px;color:#b7b9b1}.axis-key{position:absolute;bottom:42px;left:25px;display:flex;gap:8px;font:9px Consolas}.axis-key span:nth-child(1){color:#b97962}.axis-key span:nth-child(2){color:#789273}.axis-key span:nth-child(3){color:#6e8fa7}.axis-key small{margin-left:4px;color:#a0a598}.right-panel{border-left:1px solid var(--line);background:#f7f6f0;padding:34px 24px;display:flex;flex-direction:column;overflow:auto}.play-row{display:flex;gap:8px;margin:3px 0 24px}.play-row button{border:1px solid #d8ddd1;border-radius:4px;font-size:11px;padding:11px 14px}.play-row .primary{flex:1;background:#30483d;border-color:#30483d;color:#fff}.range-title{font-size:11px;display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.range-title output{font:11px Consolas;color:#88725f}input[type=range]{width:100%;height:3px;accent-color:#986747;margin:8px 0 13px;cursor:pointer}.range-end{display:flex;justify-content:space-between;font-size:8px;color:#9a9f95}.toggle-row{display:flex;justify-content:space-between;align-items:center;font-size:11px;margin-top:25px;cursor:pointer}.toggle-row small{display:block;font-size:8px;color:#969b91;margin-top:5px}.toggle-row input{appearance:none;width:28px;height:16px;background:#d4d9cf;border-radius:20px;position:relative;cursor:pointer;flex-shrink:0}.toggle-row input:before{content:"";width:10px;height:10px;border-radius:50%;background:#fff;position:absolute;top:3px;left:3px;transition:transform .15s}.toggle-row input:checked{background:#7c927f}.toggle-row input:checked:before{transform:translate(12px)}.part-index{font:9px Consolas,Microsoft Yahei,sans-serif;color:#a0a397}#part-info h2{font-size:14px;font-weight:500;margin:11px 0}#part-info p{font-size:10px;color:#858c7e;line-height:1.9;margin:0}#part-info{min-height:100px}.export-area{margin-top:auto;padding-top:24px}.export-area button{width:100%;border:1px solid #cdd3c4;padding:12px 13px;border-radius:4px;text-align:left;font-size:11px;display:flex;justify-content:space-between}.export-area button:hover{background:#e5e9df}.export-area p{font-size:8px;text-align:center;color:#a1a799;margin:10px 0 0}footer{height:41px;display:flex;align-items:center;justify-content:space-between;padding:0 35px;border-top:1px solid var(--line);font:9px Consolas,Microsoft Yahei,sans-serif;color:#92978c;background:#f7f6f1}footer b{font-weight:400;color:#707c6b}footer em{font-style:normal;margin:0 12px;color:#b9bdb3}#toast{position:absolute;bottom:110px;left:50%;transform:translate(-50%) translateY(8px);opacity:0;transition:.2s;padding:12px 20px;background:#30483d;color:#fff;font-size:11px;border-radius:5px;pointer-events:none;max-width:90%;text-align:center}#toast.show{opacity:1;transform:translate(-50%)}h1{font-size:31px;letter-spacing:-1px}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}#part-picker{font:10px Microsoft Yahei,sans-serif;padding:9px 8px;width:100%;border:1px solid #d8ddd1;background:#f7f6f0;color:#69735f;border-radius:3px;margin-bottom:16px}.source-page{display:block;font-size:9px;margin-top:12px;color:#986747}.part-index{overflow-wrap:anywhere}.left-panel{overflow:auto}main{min-height:480px}.viewport{min-height:0}button:disabled{opacity:.55;cursor:wait}.loading-screen{height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px;color:#697566}.loading-screen b{font-size:34px;letter-spacing:10px}.loading-screen span{font-size:13px}.loading-screen small{font-size:10px;color:#99a092}.assembly-row{display:flex;align-items:center;gap:4px}.assembly-row input{accent-color:#55745b;width:12px;height:12px;cursor:pointer}.assembly-item{padding:12px 9px;margin:2px 0}.demo-list{display:grid;gap:3px}.demo-list button{padding:10px 9px;text-align:left;font:9px Consolas;color:#8b9385;border-radius:3px}.demo-list b{font:11px Microsoft Yahei,sans-serif;margin-left:12px;color:#65725c}.demo-list button.selected{background:#e6e9df}.left-panel>.rule{margin:22px 0 20px}.reference-note{margin-top:23px}.live-readout{position:absolute;left:28px;top:62px;display:flex;gap:26px;pointer-events:none}.live-readout div{display:flex;flex-direction:column;gap:7px}.live-readout small{font-size:9px;color:#939c8d}.live-readout b{font:17px Consolas;color:#737c6c}.lesson{position:absolute;left:28px;right:28px;bottom:104px;max-width:480px;background:#f4f3eccf;padding:12px 15px;border-left:2px solid #af8a60;pointer-events:none}.lesson>b{font-size:11px;font-weight:500}.lesson p{font-size:9px;line-height:1.8;color:#888f82;margin:7px 0}#beat-track{display:flex;align-items:center;gap:7px;font-size:8px;color:#8c9782}#beat-track i{width:5px;height:5px;background:#97a58e;border-radius:50%}#beat-track.ticking i{background:#bc7843;box-shadow:0 0 6px #bd7943}#beat-track output{margin-left:auto;font:9px Consolas;color:#957a58}.right-panel .section-caption{margin-bottom:17px}.right-panel .play-row{margin-bottom:20px}.motor-title{margin-top:21px}.fault-buttons{display:flex;justify-content:space-between;gap:6px;margin:4px 0 16px}.fault-buttons button{font-size:9px;background:#edf0e7;border:1px solid #dce1d3;flex:1;padding:6px;border-radius:3px}.slot-diagram>span{display:flex;justify-content:space-between;font-size:9px;color:#8d9684}.slot-diagram b{font-weight:400;color:#638069}.slot-diagram b.fault{color:#b26545}.slot-diagram>div{margin:12px 0 9px;height:8px;background:#e1e5da;border:1px solid #c8d0bd;border-radius:7px;position:relative}.slot-diagram i{position:absolute;width:7px;height:14px;border-radius:3px;top:-4px;left:50%;background:#ba8051;transform:translate(-50%)}.slot-diagram em{position:absolute;width:1px;height:10px;background:#c3ccba;left:50%;top:-2px}.slot-diagram small{font-size:8px;color:#9aa18f;line-height:1.6}.right-panel>.rule{flex-shrink:0;margin:21px 0}.toggle-row{margin-top:18px}#isolate{font-size:10px;margin:10px 0;padding:8px;border:1px solid #dce1d4;border-radius:3px;color:#7c8871}.export-area button+button{margin-top:8px}.export-area{padding-top:16px}.assembly-stepper{display:flex;justify-content:space-between;align-items:center;font-size:9px;margin-top:13px;padding:8px;background:#e6eadf}.assembly-stepper[hidden],[hidden]{display:none!important}.assembly-stepper button{padding:3px 8px}.view-buttons{z-index:2}nav button{font-size:11px;color:#84907a}nav button.active{color:#35482e;font-weight:600}.gear-label{font-size:9px;color:#7b8673;margin-bottom:7px}#gear-set{font:10px Microsoft YaHei,sans-serif;padding:7px;border:1px solid #d7ddcf;background:#f7f6f0;color:#596a50;width:100%;margin-bottom:18px}#mechanism-readout{display:block;font:9px Consolas,Microsoft YaHei,sans-serif;color:#8d795f;line-height:1.8;margin:7px 0 9px}@media(min-width:1550px){main{grid-template-columns:285px minmax(250px,1fr) 310px}.left-panel{padding:35px 34px}.right-panel{padding:35px 30px}h1{font-size:35px}}@media(max-width:1100px){main{grid-template-columns:190px minmax(240px,1fr) 245px}.left-panel,.right-panel{padding:28px 18px}h1{font-size:28px}.model-caption,.axis-key{display:none}}@media(max-width:800px){header{height:70px;padding:0 16px;gap:8px}.brand-mark{width:28px;height:28px;font-size:23px;flex-shrink:0}.brand b{font-size:14px;letter-spacing:2px}.brand span{display:none}nav{gap:8px;font-size:9px}nav button{font-size:9px;padding:4px 2px}.local{display:none}main{height:auto;min-height:0;grid-template-columns:minmax(0,1fr)}.left-panel{grid-column:1/-1;border:0;padding:20px 18px 0}.eyebrow,.intro,.reference-note,.left-panel>.rule,.left-panel>.section-caption{display:none}h1{font-size:25px;line-height:1;margin:0 0 15px}h1 br{display:none}#assembly-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}.assembly-item{padding:11px 8px;gap:7px}.assembly-item small,.assembly-item>i{display:none}.assembly-item b{font-size:10px}.assembly-item>span{font-size:8px}.demo-list{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:10px}.viewport{grid-column:1/-1;min-height:500px;height:62dvh}.viewport-title{left:20px;right:20px;top:14px;font-size:8px}.live-readout{left:20px;top:45px}.live-readout b{font-size:13px}.lesson{left:18px;right:18px;bottom:95px;padding:8px 10px}.right-panel{grid-column:1/-1;border-top:1px solid var(--line);border-left:0;display:block;padding:24px 22px}.play-row{max-width:370px}.right-panel>.rule{margin:21px 0}.export-area{max-width:420px;margin:16px auto 0}.toggle-row{margin-top:22px}footer{padding:0 18px;font-size:8px;gap:15px;height:auto;min-height:41px}footer>span:nth-child(2){display:none}.view-buttons{bottom:36px;max-width:95%;gap:0}.view-buttons button{padding:7px 8px;font-size:9px}.gesture-hint{bottom:14px}#toast{bottom:85px}}@media(max-width:800px){.viewport{min-height:660px;height:78dvh}#scene{height:calc(100% - 158px)}.lesson{bottom:68px}.view-buttons{bottom:26px}.gesture-hint{bottom:8px}}.control-note{font-size:11px;line-height:1.6;color:#827d72;margin:4px 0 10px}.mate-panel{margin:17px 0;font-size:12px}.mate-panel>label{display:block;margin:0 0 8px;color:#776e60}.mate-panel select{width:100%;margin-bottom:7px}.mate-panel button{padding:8px;margin:3px 0;width:100%}#contact-list{font-size:10px;margin:9px 0}#contact-list>div{display:flex;justify-content:space-between;padding:3px 0}#contact-list b{font-weight:500;color:#568169}#contact-list .disconnected{color:#b16150}.workshop-mode main{grid-template-columns:210px minmax(300px,1fr) 340px}.workshop-mode .left-panel{padding:25px 18px;overflow:auto}.workshop-mode .left-panel>h1,.workshop-mode .left-panel>.intro,.workshop-mode .left-panel>.eyebrow,.workshop-mode #assembly-list,.workshop-mode .left-panel>.rule,.workshop-mode .left-panel>.section-caption,.workshop-mode .reference-note{display:none}.workshop-mode .right-panel>:not(#workshop-panel){display:none!important}.workshop-mode .live-readout,.workshop-mode #beat-track{display:none}.workshop-mode .lesson{max-width:490px;bottom:110px;background:#f8f6efeb}.workshop-mode .lesson p{font-size:12px;line-height:1.8}.workshop-mode #mechanism-readout{font-size:10px}.guide-chapters{margin-top:30px}.guide-chapters button{display:flex;align-items:center;gap:10px;text-align:left;width:100%;padding:14px 9px;font-size:12px;border-left:2px solid transparent;line-height:1.5}.guide-chapters small{font:10px Consolas;color:#8d9687}.guide-chapters .selected{background:#e5e9df;border-left-color:#9e623f}.workshop-directions{display:flex;gap:4px;border-bottom:1px solid #d3d8cc;padding-bottom:13px;margin-bottom:20px}.workshop-directions button{flex:1;padding:10px 8px;font-size:12px;border-radius:3px}.workshop-directions .selected{background:#30483d;color:#fff}#guide-count{color:#886647;font-size:11px;margin:0 0 17px}#workshop-panel>label{font-size:11px;color:#69765e;display:block;margin:12px 0 8px}#guide-step{width:100%;padding:10px 5px;font-size:11px;background:#fffef8;border:1px solid #d2d7ca;color:#344339}#guide-title{font-size:21px;line-height:1.55;font-weight:500;margin:20px 0 12px}#guide-instruction,#guide-check{font-size:13px;line-height:1.85;margin:0}.guide-check{margin:19px 0;padding:14px;background:#e9ece2;border-left:2px solid #8b9f80}.guide-check>b{font-size:11px;display:block;margin-bottom:6px;color:#4f6550}.guide-transport{display:flex;align-items:center;gap:5px;margin:20px 0 12px}.guide-transport button{border:1px solid #cbd1c1;border-radius:3px;padding:10px 7px;font-size:11px;flex:1;white-space:nowrap}.guide-transport #guide-play{background:#30483d;color:#fff;border-color:#30483d}.guide-options{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#707b68}.guide-options button{text-decoration:underline;text-underline-offset:3px}.guide-options button[aria-pressed=true]{font-weight:600;color:#30483d;background:#e5e9df;padding:6px 10px;border-radius:3px}#guide-frame[hidden],#guide-video[hidden]{display:none}.guide-options input{accent-color:#52734f}.guide-key{font-size:10px;line-height:1.9;color:#8b745c;margin:17px 0 22px}.guide-key i{display:inline-block;width:7px;height:7px;background:#b27340;border-radius:50%;margin-right:5px}.guide-parts-label{font-size:11px;font-weight:500}#guide-parts{max-height:135px;overflow:auto;margin:9px 0 18px;border-top:1px solid #dbdfd3}#guide-parts button{display:block;text-align:left;width:100%;font-size:10px;line-height:1.6;padding:8px 2px;border-bottom:1px solid #e3e6dc}#guide-parts button:hover{color:#9e613b;background:#eef0e8}#guide-parts p{font-size:11px;line-height:1.8;color:#64745c}#guide-reference{font-size:11px;margin:18px 0}#guide-reference summary{cursor:pointer;color:#607454;line-height:1.7}#guide-frame{display:block;width:100%;height:auto;margin:12px 0}#guide-video{font-size:10px;text-decoration:underline}#guide-run{background:#e7eadf;border:1px solid #c5cebb;display:block;width:100%;text-align:center;padding:14px 7px;margin-top:20px;font-size:12px;border-radius:3px}.guide-footnote{font-size:10px;color:#8a9481;line-height:1.8}.setup-panel summary{cursor:pointer;font-size:12px;margin-bottom:12px;color:#30483d}.setup-panel label{display:block;font-size:11px;margin:12px 0 6px}.setup-panel select{width:100%;padding:8px 5px;background:#fafaf5;color:#344339;border:1px solid #ccd2c3;font-size:11px}.setup-panel a{font-size:10px;text-decoration:underline;line-height:1.8}#physics-readout{white-space:pre-line}#power-controls{margin-top:0;padding-top:0}#power-controls .toggle-row{display:flex;justify-content:space-between;align-items:center}@media(max-width:1100px){.workshop-mode main{grid-template-columns:170px minmax(260px,1fr) 310px}.workshop-mode .left-panel{padding:20px 10px}.guide-chapters button{font-size:11px}.workshop-mode .right-panel{padding:22px 15px}}@media(max-width:800px){.workshop-mode main{display:flex;flex-direction:column}.workshop-mode .left-panel{order:0;padding:12px 16px}.workshop-mode .guide-chapters{margin-top:15px;display:flex;overflow:auto;gap:4px}.workshop-mode .guide-chapters .section-caption{display:none}.guide-chapters button{min-width:125px;padding:9px 7px}.workshop-mode .viewport{order:1;min-height:510px;height:68dvh}.workshop-mode #scene{height:100%}.workshop-mode .lesson{bottom:75px;max-width:none;padding:8px 10px}.workshop-mode .lesson p{font-size:10px}.workshop-mode .right-panel{order:2;padding:23px 20px}.workshop-mode .view-buttons{bottom:30px}.workshop-mode #guide-title{font-size:23px}}#explosion-control{position:absolute;left:50%;bottom:104px;transform:translate(-50%);width:min(500px,calc(100% - 64px));padding:5px 12px 6px;background:#f2f0e9ee;z-index:3}#explosion-control .range-title{margin:0 0 4px;font-size:10px}#explosion-control input{display:block;width:100%;margin:5px 0}#explosion-control .range-end{font-size:8px;margin:3px 0 0}.viewport .lesson{bottom:174px}.workshop-mode #explosion-control,.inventory-mode #explosion-control{display:none}.workshop-mode .viewport .lesson{bottom:110px}#catalog-controls{position:absolute;top:62px;left:28px;right:28px;z-index:3;display:flex;gap:5px;flex-wrap:wrap}#catalog-controls[hidden]{display:none}#catalog-controls button{border:1px solid #d4dacd;border-radius:3px;background:#f8f7f1ed;padding:8px 12px;font-size:11px}#catalog-controls .selected{background:#344d41;color:#fff;border-color:#344d41}.inventory-mode .live-readout{display:none}.inventory-mode .left-panel .demo-list,.inventory-mode .left-panel .assembly-row{opacity:.7}#part-tooltip{position:absolute;z-index:10;pointer-events:none;max-width:min(380px,calc(100% - 20px));padding:9px 12px;border:1px solid #d3d9ca;border-radius:4px;background:#fffffbf5;box-shadow:0 3px 14px #293b3520;color:#293e32;font-size:12px;line-height:1.5}#part-tooltip[hidden]{display:none}#part-inspector{min-width:0;flex-shrink:0}#part-inspector .section-caption{margin-top:4px}#part-picker{width:100%;min-width:0}#part-inspector #part-info{min-height:0;margin:17px 0}#part-colors{border-top:1px solid var(--line);padding-top:16px;margin:18px 0 8px}#color-fields{border:0;padding:0;margin:0;min-width:0}#color-fields legend{display:flex;justify-content:space-between;width:100%;padding:0;font-size:12px;margin-bottom:12px}#color-fields legend span{font:10px Consolas,monospace;color:#788475}#color-fields:disabled{opacity:.48}.color-current{display:flex;align-items:center;gap:8px}#part-color{padding:0;width:32px;height:32px;border:1px solid #bdc9b9;border-radius:4px;background:none;cursor:pointer;flex-shrink:0}#color-hex{font:12px Consolas,monospace;letter-spacing:.3px}#color-reset{margin-left:auto;font-size:10px;color:#65765a;text-decoration:underline;text-underline-offset:3px;padding:3px 0;white-space:nowrap}.rgb-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:13px 0 18px}.rgb-fields label{font:10px Consolas,monospace;color:#737f6e}.rgb-fields input{display:block;width:100%;min-width:0;margin-top:5px;border:1px solid #cbd3c3;background:#fffef9;border-radius:3px;padding:7px 5px;color:#304233;font:13px Consolas,monospace}.preset-title{display:flex;align-items:center;justify-content:space-between;font-size:11px;margin-bottom:11px}.preset-title small{color:#84907c;font-size:9px}#color-presets{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px 5px}.preset-cell{position:relative;min-width:0}.color-swatch{display:flex;align-items:center;flex-direction:column;gap:4px;width:100%;padding:4px 2px;border:1px solid transparent;border-radius:4px;min-width:0}.color-swatch:hover{background:#e8ebdf}.color-swatch[aria-pressed=true]{border-color:#718467;background:#e8ebdf}.color-swatch i{display:block;width:28px;height:23px;border-radius:3px;border:1px solid #0002}.color-swatch span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px;color:#687360}.preset-delete{position:absolute;right:0;top:0;width:16px;height:16px;padding:0;border-radius:50%;color:#65392c;background:#fffdf6;border:1px solid #d3d8cb;font-size:12px;line-height:12px}.save-preset{display:flex;gap:6px;margin-top:15px}#preset-name{min-width:0;width:100%;border:1px solid #cbd3c3;border-radius:3px;background:#fffef9;padding:8px;font-size:11px}#preset-add{flex-shrink:0;border-radius:3px;background:#344d41;color:#fff;padding:7px 9px;font-size:11px}#color-status{font-size:10px;line-height:1.7;color:#718168;min-height:34px;margin:12px 0 7px}#isolate{width:100%}@media(max-width:800px){#explosion-control{bottom:72px;width:calc(100% - 40px)}.viewport .lesson{bottom:137px}.workshop-mode .viewport .lesson{bottom:83px}#catalog-controls{top:46px;left:18px;right:18px;gap:4px}#catalog-controls button{font-size:10px;padding:7px 9px}#color-presets{grid-template-columns:repeat(6,minmax(0,1fr))}.inventory-mode #scene{height:calc(100% - 75px)}}.source-comparison{display:flex;align-items:center;gap:5px;margin-left:auto;padding:5px 0;font-size:10px;color:#718168}.source-comparison input{accent-color:#344d41}.inventory-mode #catalog-source:checked{accent-color:#a76443}.right-panel{padding:0 20px 18px;scrollbar-width:thin;scrollbar-color:#c9cec3 transparent;scroll-padding-top:66px;overflow-x:hidden;overscroll-behavior:contain;gap:0}.panel-heading{position:sticky;top:0;z-index:4;display:flex;align-items:center;justify-content:space-between;flex-shrink:0;min-height:66px;background:#f7f6f0;border-bottom:1px solid #e0e2d8;margin-bottom:19px}.panel-heading>strong{font-size:14px;font-weight:600;letter-spacing:.1px}#panel-play-state{font-size:10px;color:#838b80;display:flex;align-items:center;gap:6px}#panel-play-state:before{content:"";width:5px;height:5px;border-radius:50%;background:#bbc1b5}#panel-play-state.running:before{background:#5d8063}.quick-controls{padding-bottom:19px;flex-shrink:0}.quick-motor{padding-top:18px}.right-panel .quick-motor .fault-buttons{margin-bottom:0}.right-panel .play-row{margin:0 0 19px;gap:7px}.right-panel .play-row button{min-height:39px;font-size:12px;padding:9px 14px;border-radius:5px;font-weight:500}.right-panel .play-row .primary:hover{background:#3c594a}.right-panel .play-row button:last-child:hover{background:#edf0e7}.right-panel .range-title{font-size:11px;font-weight:500;margin:0 0 6px;color:#46584b}.right-panel .range-title output{font-size:11px;font-variant-numeric:tabular-nums;background:#ebece3;padding:3px 6px;border-radius:3px;color:#6b735f}.right-panel input[type=range]{margin:8px 0 11px;height:3px}.right-panel .range-end{font-size:9px;color:#909789}.right-panel .tool-section{border:0;border-top:1px solid #dce0d4;margin:0;padding:0;flex-shrink:0;min-width:0}.right-panel .tool-section>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:8px;cursor:pointer;min-height:68px;padding:15px 1px;margin:0;color:#34483c;transition:color .16s}.right-panel .tool-section>summary::-webkit-details-marker{display:none}.right-panel .tool-section>summary>span{display:grid;gap:5px;min-width:0}.right-panel .tool-section>summary strong{font-size:12px;font-weight:600;line-height:1.4}.right-panel .tool-section>summary small{font-size:10px;font-weight:400;color:#838e7c;line-height:1.45;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.right-panel .tool-section>summary:after{content:"";display:block;width:6px;height:6px;border-right:1.5px solid #82917c;border-bottom:1.5px solid #82917c;transform:rotate(-45deg);margin-right:5px;flex-shrink:0;transition:transform .18s}.right-panel .tool-section[open]>summary:after{transform:rotate(45deg)}.right-panel .tool-section>summary:hover{color:#a06845}.right-panel .tool-section[open]>summary{padding-bottom:14px}.right-panel .tool-body{padding:0 1px 19px;min-width:0}.right-panel .control-field{margin:0 0 15px}.right-panel .control-field>label{display:block;font-size:11px;font-weight:500;color:#596957;margin:0 0 7px}.right-panel select{display:block;width:100%;min-width:0;background-color:#fdfcf8;border:1px solid #d0d7c8;border-radius:5px;padding:9px 7px;min-height:35px;font:11px Segoe UI,Microsoft YaHei,sans-serif;color:#3d5542;line-height:1.5;margin:0;cursor:pointer;transition:border-color .16s,background-color .16s}.right-panel select:hover{border-color:#9cae94;background-color:#fffefa}.right-panel #part-picker,.right-panel #gear-set{margin:0;font-size:11px;padding:9px 7px;background-color:#fdfcf8;border-radius:5px}.right-panel .field-hint{font-size:10px;color:#87917d;line-height:1.5;margin:6px 0 0}.right-panel .fault-buttons{gap:5px;margin:1px 0 15px}.right-panel .fault-buttons button{padding:6px 4px;background:#eef0e6;color:#6d7965;border-color:#dfe4d5;font-size:10px;min-height:28px;transition:background .15s}.right-panel .fault-buttons button:hover{background:#e1e8d8}.right-panel .switch-group{border-top:1px solid #e2e5db;padding-top:7px}.right-panel .toggle-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0;min-height:33px;font-size:11px;color:#58684e;font-weight:400;line-height:1.5}.right-panel .toggle-row input{width:29px;height:16px;margin:0;flex-shrink:0}.right-panel .toggle-row input:checked{background:#6c896f}.right-panel .toggle-row input:checked:before{transform:translate(13px)}.right-panel .control-note{font-size:10px;line-height:1.75;color:#7e8973;margin:7px 0 10px}.right-panel .power-status{font-size:9px;margin:6px 0 2px;min-height:17px;color:#6b805e}.right-panel .text-action{display:flex;align-items:center;justify-content:space-between;width:100%;text-align:left;color:#6a7c5c;font-size:10px;padding:7px 0;min-height:30px;margin:0;line-height:1.5}.right-panel .text-action:hover{color:#9b6949}.right-panel .secondary-action{width:100%;background:#eef1e8;border:1px solid #d7dfce;border-radius:4px;padding:8px 5px;font-size:10px;line-height:1.6;color:#556b4b;margin:0;min-height:33px}.right-panel .secondary-action:hover{background:#e5ebdc;border-color:#bdcdae}.right-panel .secondary-action[aria-pressed=true]{background:#e0e9da;border-color:#9bae90;color:#3e5c38}.right-panel .action-pair{display:grid;grid-template-columns:1fr 1fr;gap:6px}.right-panel .separated-field{border-top:1px solid #e0e4d8;padding-top:16px;margin-top:10px}.right-panel .tool-help{border-top:1px solid #e2e5db;margin:11px 0 0;padding-top:0;font-size:10px}.right-panel .tool-help>summary{cursor:pointer;padding:10px 0 6px;margin:0;font-size:10px;line-height:1.6;color:#748465}.right-panel .tool-help[open]>summary{color:#4e6548}.right-panel .tool-help a{font-size:10px;line-height:1.7;text-decoration:underline;text-underline-offset:3px;color:#8e6d4b}.right-panel .slot-diagram{padding:7px 0}.right-panel .slot-diagram small{font-size:9px}.right-panel #part-info{min-height:0;margin:16px 0 0}.right-panel #part-info h2{font-size:13px;line-height:1.6;color:#3e5345;margin:8px 0}.right-panel #part-info p{font-size:10px;color:#7b8773;line-height:1.8}.right-panel #part-colors{padding-top:16px;margin:15px 0 2px}.right-panel #color-fields legend{font-size:11px;margin-bottom:12px}.right-panel #color-status{min-height:0;font-size:9px;margin-bottom:10px}.right-panel #isolate{margin:2px 0 0;padding:8px;color:#556b4b}.right-panel .export-area{max-width:none;margin:0;padding:0}.right-panel .export-area button{font-size:11px;padding:10px 9px;min-height:36px;border-radius:4px}.right-panel .export-area p{font-size:9px;margin-top:11px}.right-panel :is(button,input,select,summary,a):focus-visible{outline:2px solid #a17453;outline-offset:3px}.right-panel button:active{transform:translateY(1px)}.inventory-mode .right-panel>:not(#part-inspector):not(.export-area){display:none!important}.inventory-mode .right-panel{padding-top:10px}.inventory-mode #part-inspector{border-top:0}.workshop-mode .right-panel{padding:26px 22px}@media(min-width:1550px){.right-panel{padding-left:24px;padding-right:24px}.workshop-mode .right-panel{padding:26px 22px}}@media(max-width:1100px){.right-panel{padding-left:15px;padding-right:15px}.right-panel .tool-section>summary strong{font-size:11px}.right-panel select{font-size:10px}.workshop-mode .right-panel{padding:22px 15px}}@media(max-width:800px){.right-panel{padding:0 22px 20px;overscroll-behavior:auto}.panel-heading{position:static;min-height:63px}.quick-controls .play-row{max-width:none}.right-panel .tool-section>summary strong{font-size:13px}.right-panel .tool-section>summary small{font-size:11px}.right-panel .toggle-row{min-height:38px;font-size:12px}.right-panel select{font-size:12px;min-height:39px}.right-panel .control-field>label{font-size:12px}.right-panel .tool-section>summary{min-height:72px}.workshop-mode .right-panel{padding:23px 20px}}@media(prefers-reduced-motion:reduce){.right-panel *{transition:none!important}}.viewport{container-type:inline-size}.view-toolbar{position:absolute;bottom:50px;left:50%;transform:translate(-50%);display:flex;align-items:center;justify-content:center;gap:8px;width:max-content;max-width:calc(100% - 24px);z-index:3}.view-toolbar .view-buttons{position:static;transform:none;max-width:none;flex-shrink:0}.observation-tools{display:flex;align-items:center;gap:2px;flex-shrink:0;background:#faf9f5ed;border:1px solid #ddded6;border-radius:5px;padding:5px}.observation-tools label{display:flex;align-items:center;gap:5px;padding:8px 7px;font-size:10px;line-height:15px;color:#7b8476;cursor:pointer;white-space:nowrap;border-radius:3px;transition:background .15s,color .15s}.observation-tools input{margin:0;width:11px;height:11px;accent-color:#5c765f;cursor:pointer}.observation-tools label:hover{background:#e7e9df;color:#435641}.observation-tools label:has(input:checked){background:#e4eadf;color:#3c5840}.observation-tools label:has(input:focus-visible){outline:2px solid #a17453;outline-offset:2px}.inventory-mode .observation-tools,.workshop-mode .observation-tools{display:none}@container (max-width:540px){.view-toolbar{flex-direction:column;gap:7px}body:not(.inventory-mode):not(.workshop-mode) #explosion-control{bottom:150px}body:not(.inventory-mode):not(.workshop-mode) .viewport .lesson{bottom:218px}}@media(max-width:800px){.view-toolbar{bottom:26px}.observation-tools label{padding:7px 8px;font-size:10px}body:not(.inventory-mode):not(.workshop-mode) #explosion-control{bottom:124px}body:not(.inventory-mode):not(.workshop-mode) .viewport .lesson{bottom:190px}}@media(prefers-reduced-motion:reduce){.observation-tools label{transition:none}}
