[hidden]{display:none!important}.demo .stage svg{width:100%;height:65vh;min-height:350px;max-height:760px;display:block;touch-action:none;user-select:none}.demo-controls .panel{margin-top:15px}.model-list{display:flex;gap:8px;flex-wrap:wrap}.param{display:grid;gap:8px;margin:20px 0}.param output{color:#0062ff}.param input{width:100%}.demo-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;flex-wrap:wrap}.demo-actions{display:flex;gap:8px}.demo-readout{display:flex;gap:12px;flex-wrap:wrap;margin:14px 0}.readout-item{flex:1;min-width:130px;background:#eef6ff;padding:13px 16px;border-radius:12px;font-size:17px}.readout-item strong{display:block;font-size:25px;color:#0062ff}.short-note,#formula{color:#64748b;margin:12px 0;font-size:16px}#formula{color:#0062ff;font-size:20px}#dimensions label{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:10px 0}#dimensions input{width:100px;padding:6px;font-size:17px}#error{color:#b45309}.model-button{padding:12px 14px;border:1px solid #cbd5e1;border-radius:10px;background:white;font-size:18px;cursor:pointer}.model-button.on{background:#0062ff;color:white}.demo nav .wrap{gap:12px}.demo nav #project{margin-left:auto;white-space:nowrap}svg text{font-family:'Microsoft YaHei',sans-serif}.projection .demo-controls{display:none}.projection .demo-layout{display:block;max-width:1500px;margin:auto}.projection .stage svg{height:72vh}.projection nav{display:block!important}@media(max-width:760px){.demo .stage svg{height:51vh;min-height:300px}.demo-readout{gap:6px}.readout-item{padding:9px;min-width:100px}.readout-item strong{font-size:21px}.demo-toolbar{font-size:16px}.demo nav .logo{font-size:15px}.demo .nav-back{font-size:13px;margin-left:0}}


/* Three-column tool layout; model and parameter containers retain their IDs. */
.demo .layout-three{display:grid;grid-template-columns:210px minmax(0,1fr);gap:16px;max-width:1780px;padding:16px 22px;align-items:start}
.demo .layout-three>.demo-left{grid-column:1;grid-row:1}
.demo .layout-three>.demo-main{grid-column:2;grid-row:1 / span 2;position:sticky;top:74px;min-width:0;width:auto;order:initial}
.demo .layout-three>.demo-right{grid-column:1;grid-row:2}
.demo .layout-three>.demo-controls{display:block;position:sticky;top:74px;max-height:calc(100dvh - 92px);overflow:auto;min-width:0;width:auto;order:initial}
.demo .layout-three .demo-main .stage svg{height:calc(100dvh - 225px);min-height:370px;max-height:800px;width:100%}
.demo .demo-right .demo-readout{display:flex;flex-direction:column;align-items:stretch;font-size:16px;gap:9px;margin:0;padding:0;min-height:0;line-height:1.8}
.demo .demo-right .demo-readout strong{font-size:21px}.demo .demo-right .readout-item{width:100%;min-width:0;padding:10px 12px;font-size:13px;flex:auto}
.demo .demo-right .formula,.demo .demo-right #formula{font-size:14px;line-height:1.8;margin:10px 0 0;overflow-wrap:anywhere}
.demo .layout-three>.demo-right>.panel{margin-top:0;margin-bottom:12px}.demo .layout-three .model-list{display:flex;flex-direction:column;gap:6px}.demo .layout-three .model-button{font-size:14px;padding:9px 10px;text-align:left}
.demo .demo-right #controls{display:block}.demo .demo-right .param{min-width:0;font-size:13px;margin:13px 0}
@media(min-width:1280px){.demo .layout-three{grid-template-columns:200px minmax(0,1fr) 240px}.demo .layout-three>.demo-main{grid-column:2;grid-row:1}.demo .layout-three>.demo-right{grid-column:3;grid-row:1}}
.demo.projection .layout-three{display:block;max-width:1750px}.demo.projection .layout-three>.demo-controls{display:none!important}.demo.projection .layout-three>.demo-main{position:static;width:100%}.demo.projection .layout-three .demo-main .stage svg{height:calc(100dvh - 190px);max-height:none}
@media(max-width:760px){.demo .layout-three{display:flex;flex-direction:column;padding:10px;gap:10px}.demo .layout-three>.demo-controls{position:static;max-height:none;overflow:visible;width:100%}.demo .layout-three>.demo-left{order:-1}.demo .layout-three>.demo-main{order:0;position:static;width:100%}.demo .layout-three>.demo-right{order:1}.demo .layout-three .model-list{flex-direction:row;flex-wrap:wrap;margin-bottom:0}.demo .layout-three .model-button{font-size:12px;padding:7px 9px}.demo .layout-three .demo-main .stage svg{height:51dvh;min-height:285px;max-height:600px}.demo .demo-right .demo-readout{flex-direction:row;flex-wrap:wrap}.demo .demo-right .readout-item{width:auto;min-width:105px;flex:1}.demo .demo-right .param{margin:12px 0}.demo .demo-right #controls{display:block}.demo.projection .layout-three .demo-main .stage svg{height:72dvh;min-height:330px}}
