:root{--navy:#011e5b;--blue:#0b6cff;--cyan:#00d2ff;--sky:#9ee3ff;--ice:#f3fbff;--line:#dce9f6;--text:#0c2550;--muted:#6d819f;--x:#ef5664;--y:#20ad83;--z:#237dff;--panel-h:15dvh;--selection-h:5dvh;--row-h:40px;--radius:18px;--safe-bottom:env(safe-area-inset-bottom,0px);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:var(--text);color-scheme:light}
*{box-sizing:border-box}html,body{height:100%;width:100%;margin:0;overflow:hidden;background:var(--ice)}body{-webkit-tap-highlight-color:transparent}button,input,select,textarea{font:inherit;color:inherit}button{border:0;cursor:pointer;background:transparent;-webkit-user-select:none;user-select:none;touch-action:manipulation;font-size:13px;display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap;padding:0 12px;min-height:36px}button:disabled{opacity:.36;cursor:default}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--sky);outline-offset:2px}svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}[hidden]{display:none!important}.svg-defs{position:absolute;width:0;height:0;overflow:hidden}
#app{height:100dvh;padding-top:env(safe-area-inset-top,0px);padding-bottom:var(--safe-bottom);display:flex;flex-direction:column;overflow:hidden}#app.panel-open{--panel-h:15dvh}.topbar{flex:none;z-index:10;background:#fff;box-shadow:0 1px 0 var(--line)}.head-main{height:63px;display:flex;justify-content:space-between;align-items:center;padding:8px 18px;gap:10px}.brand{display:flex;align-items:center;gap:10px;min-width:0}.brand img{width:41px;height:41px;border-radius:11px;box-shadow:0 4px 11px #0656cc20}.brand h1{font-size:19px;letter-spacing:.4px;line-height:1.25;margin:0;color:var(--navy);font-weight:750}.review-badge{min-height:19px;font-size:9px;color:var(--muted);padding:0;gap:5px;letter-spacing:1px;justify-content:flex-start}.review-badge span{background:#eef5ff;color:var(--blue);font-size:9px;letter-spacing:0;border-radius:4px;padding:0 4px}.top-actions{display:flex;gap:7px}.top-actions button{height:39px;border-radius:11px;padding:0 10px;font-size:12px}.top-actions svg{width:17px;height:17px}.primary{background:var(--blue);color:#fff;border:1px solid var(--blue);border-radius:12px;font-weight:600;box-shadow:0 5px 14px #0b6cff1a}.primary:hover{background:#005ee7}.soft{border:1px solid var(--line);background:#fff;border-radius:10px;font-weight:500}.soft:hover{background:#edf6ff}.status-line{height:25px;display:flex;align-items:center;justify-content:space-between;padding:0 18px 5px;font-size:10px;color:var(--muted);gap:8px}.mode-label{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}.mode-label i{width:5px;height:5px;border-radius:50%;background:var(--blue)}.privacy{display:inline-flex;align-items:center;gap:4px;font-size:10px;white-space:nowrap}.privacy svg{width:12px;height:12px;color:var(--blue)}
#stage{position:relative;flex:1;min-height:0;overflow:hidden;background:radial-gradient(ellipse at 65% 28%,#fff 2%,#f3fbff 54%,#e7f3fe 100%)}#viewport{position:absolute;inset:0}#viewport canvas{width:100%;height:100%;display:block;touch-action:none;outline:none}.viewport-head{position:absolute;top:14px;left:77px;right:16px;display:flex;justify-content:space-between;align-items:flex-start;pointer-events:none;z-index:8}.viewport-head>*{pointer-events:auto}.glass{background:#ffffffed;border:1px solid #dbe9f6;box-shadow:0 5px 20px #163d6f08;backdrop-filter:blur(12px);border-radius:12px}.view-toggle{font-size:12px;min-height:37px;padding:0 10px;gap:5px}.view-toggle>svg{width:16px;height:16px}.view-toggle .chevron{width:13px;height:13px;color:var(--muted)}.view-control{position:relative}.pop-menu{position:absolute;top:44px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 12px 34px #072f6e1a;padding:5px;min-width:140px}.pop-menu button{display:flex;width:100%;justify-content:space-between;padding:0 11px;min-height:37px;border-radius:9px;font-size:12px}.pop-menu button:hover,.pop-menu button.selected{background:#edf5ff;color:var(--blue)}.pop-menu .checked{width:15px;height:15px;color:var(--blue)}.eye-control{position:relative}.eye-menu{right:0;width:164px}.eye-menu button{justify-content:flex-start;gap:8px}.eye-menu button svg{width:16px;height:16px}.icon-btn{width:38px;min-height:38px;padding:0;border-radius:11px}.eye-control .icon-btn{width:52px;gap:2px}.small-chevron{width:12px;height:12px}
.rail{position:absolute;left:14px;top:14px;z-index:9;width:51px;padding:4px;background:#fffefeee;border:1px solid #deebf7;box-shadow:0 8px 25px #1548870d;border-radius:17px;backdrop-filter:blur(14px)}.rail-toggle{width:100%;height:31px;min-height:31px;padding:0;color:#6682a5;border-radius:10px;margin-bottom:4px;border-bottom:1px solid #ecf2f9}.rail-toggle svg{width:17px;height:17px}.rail #rail-items{display:flex;flex-direction:column;gap:3px}.rail [data-tool]{height:51px;width:41px;min-height:0;flex:none;flex-direction:column;font-size:10px;gap:4px;padding:4px 0;color:#6b819e;border-radius:11px;position:relative}.rail [data-tool] svg{width:21px;height:21px}.rail [data-tool].active{background:var(--blue);color:#fff;box-shadow:0 4px 11px #0b6cff25}.rail [data-tool]:last-child{border-top:1px solid #e7f0fa;margin-top:3px}.rail [data-tool]:last-child.active{border-top-color:transparent}.rail.collapsed{width:39px;padding:3px;left:12px;border-radius:11px}.rail.collapsed #rail-items{display:none}.rail.collapsed .rail-toggle{margin:0;border:0;height:33px}.is-home .rail [data-tool]:not([data-tool="settings"]):not([data-tool="measure"]){opacity:.3}.is-home .viewport-head{display:none!important}.welcome{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:28px 28px 48px 64px;background:radial-gradient(ellipse at center,#ffffff 0%,#ffffffbb 31%,#f3fbff00 66%);z-index:2}.hero-logo{width:min(61vw,286px);border-radius:38px;mix-blend-mode:multiply;display:block;margin-top:-18px}.hero-open{height:46px;min-width:180px;border-radius:14px;font-size:15px;margin-top:4px;gap:10px}.hero-open svg{width:20px;height:20px}.text-button{min-height:40px;color:var(--blue);font-size:12px;padding:0;margin-top:10px}.text-button span{font-size:18px}.welcome p{font-size:9px;letter-spacing:.7px;color:#93a3b8;margin:18px 0 0;text-align:center}.gizmo{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:6;touch-action:none}.gizmo .hit{stroke:transparent;stroke-width:23;fill:none;pointer-events:stroke;cursor:grab;touch-action:none}.gizmo .gizmo-visual{pointer-events:none;stroke-width:3.2;fill:none}.gizmo text{font-family:inherit;font-size:12px;font-weight:700;stroke:none;pointer-events:none}.gizmo-readout{position:absolute;top:64px;left:78px;background:#011e5be8;color:white;font-size:11px;padding:7px 10px;border-radius:8px;z-index:7;pointer-events:none;box-shadow:0 5px 12px #011e5b10}.model-caption{position:absolute;bottom:40px;left:78px;right:18px;display:flex;align-items:center;justify-content:space-between;gap:8px;color:#8196af;font-size:10px;pointer-events:none}.model-caption #file-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.model-caption #model-count{white-space:nowrap;color:#96abc1}.gesture-hint{position:absolute;bottom:15px;left:65px;right:10px;text-align:center;color:#8a9fb7;font-size:9px;letter-spacing:.3px;pointer-events:none}.selection{flex:none;height:var(--selection-h);min-height:31px;display:flex;align-items:center;gap:9px;padding:3px 16px;background:#fff;border-top:1px solid var(--line);box-shadow:0 -3px 14px #1c559b03;z-index:10;overflow:hidden}.selected-symbol{height:28px;width:28px;display:flex;align-items:center;justify-content:center;border-radius:8px;background:#edf6ff;color:var(--blue)}.selected-symbol svg{width:17px;height:17px}.selected-copy{min-width:0;flex:1;display:flex;flex-direction:column;gap:2px}.selected-copy strong{font-size:11px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.selected-copy small{font-size:9px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}.type-tag{font-size:9px;border:1px solid #e0ebf7;padding:4px 6px;border-radius:6px;color:#7791b1;white-space:nowrap}.is-home .selection{display:none}
.panel{height:var(--panel-h);flex:none;background:white;border-top:1px solid var(--line);z-index:12;overflow:hidden}.panel-head{height:33px;display:flex;align-items:center;justify-content:space-between;padding:0 12px 0 16px;gap:5px}.panel-head h2{font-size:12px;line-height:1;margin:0;font-weight:700;letter-spacing:.3px;white-space:nowrap}.panel-top-right{display:flex;align-items:center;gap:6px}.collapse-btn{border:1px solid #bcd8fb;color:var(--blue);background:#f1f7ff;border-radius:8px;min-height:27px;height:27px;padding:0 8px;font-size:10px;gap:3px;font-weight:600}.collapse-btn svg{width:14px;height:14px}.restore-mini{color:var(--blue);font-size:10px;min-height:28px;padding:0 2px;gap:4px}.restore-mini svg{width:14px;height:14px}.page-controls{display:flex;align-items:center;font-size:9px;color:#798da9;gap:0;border:1px solid #e1ebf8;border-radius:8px}.page-controls button{width:26px;min-height:25px;padding:0}.page-controls svg{width:14px;height:14px}.page-controls span{min-width:22px;text-align:center}.panel-body{height:calc(100% - 33px);padding:0 14px 5px;overflow:hidden}.tool-content{height:100%;overflow:hidden;display:flex;flex-direction:column;gap:5px;justify-content:center}.control-row{display:flex;align-items:center;gap:8px;height:var(--row-h);min-height:var(--row-h);flex:none}.step-row{gap:10px}.step-field{height:var(--row-h);flex:1;min-width:0;display:flex;align-items:center;gap:5px;font-size:11px;white-space:nowrap}.step-field input{width:48px;min-width:34px;flex:1;height:33px;border:1px solid #d9e7f7;background:#f6faff;text-align:center;border-radius:8px;font-size:16px;font-variant-numeric:tabular-nums;padding:0 2px}.step-field>span:last-child{font-size:10px;color:#7d92ad;min-width:19px}.step-field:nth-child(2)>span:last-child{min-width:8px}.explode-row{gap:10px}.explode-button{min-width:108px;height:var(--row-h);min-height:0;color:var(--blue);background:#edf5ff;border-color:#d7e8ff;font-size:12px}.explode-button.active{background:var(--blue);color:white}.explode-button svg{width:17px;height:17px}.axis-options{display:flex;background:#f3f7fc;border:1px solid #e5edf7;border-radius:9px;padding:2px;gap:2px;height:35px}.axis-options button{min-height:0;width:34px;padding:0;font-size:12px;color:#7187a4;border-radius:6px}.axis-options button.selected{background:white;color:var(--blue);box-shadow:0 1px 4px #12417e16;font-weight:700}.row-note{margin-left:auto;color:#8d9fb6;font-size:10px;white-space:nowrap}.swatches{justify-content:space-between;gap:7px}.swatch{width:32px;height:32px;min-height:32px;border:3px solid white;border-radius:50%;padding:0;box-shadow:0 0 0 1px #d6e2f0;position:relative}.swatch.chosen{box-shadow:0 0 0 2px var(--blue)}.swatch svg{width:16px;height:16px;color:#fff;filter:drop-shadow(0 1px 1px #00112f99)}.custom-color-row{justify-content:space-between;gap:12px}.custom-color-label{display:flex;align-items:center;gap:8px;font-size:11px;min-height:34px;white-space:nowrap}.custom-color-label input{width:30px;height:30px;border:1px solid var(--line);padding:2px;background:#fff;border-radius:8px}.custom-color-row button{font-size:11px;min-height:33px;height:33px;padding:0 10px}.custom-color-row button svg{width:15px;height:15px}.clip-actions{justify-content:space-between;gap:8px;font-size:11px}.cap-toggle{display:flex;align-items:center;gap:3px;white-space:nowrap;font-size:11px}.cap-toggle input{accent-color:var(--blue);width:15px;height:15px;margin:0 3px 0 0}.clip-actions button{font-size:11px;min-height:33px;height:33px;padding:0 10px;flex:1}.clip-actions button svg{width:15px;height:15px}.mini-toggle{font-size:10px;color:#7d91ab;display:flex;align-items:center;gap:3px}.mini-toggle input{accent-color:var(--blue);margin:0;width:13px;height:13px}.settings-row{gap:7px;justify-content:space-between}.settings-row button{font-size:11px;min-height:36px;padding:0 9px}.unit-choice{display:flex;align-items:center;gap:5px;min-width:0;font-size:10px}.unit-choice select{height:34px;width:91px;border:1px solid var(--line);border-radius:8px;padding:0 4px;background:#f8fbff;font-size:11px}.coming-soon{align-items:center;justify-content:center;flex-direction:row;gap:9px;color:#8aa0bb}.coming-soon strong{font-size:14px;font-weight:500;letter-spacing:3px}.coming-soon svg{width:22px;height:22px;color:#97c3f6}.tree-scroll{overflow-y:auto;overscroll-behavior:contain;display:block;scrollbar-width:thin;scrollbar-color:#c5dafa transparent}.tree-row{display:flex;align-items:center;gap:3px;min-height:34px;border-radius:8px;font-size:11px;padding-right:8px;flex:none}.tree-row.selected{background:#eaf4ff;color:var(--blue)}.tree-row .eye-btn,.tree-row .fold-btn{width:30px;min-width:30px;min-height:32px;height:32px;padding:0}.tree-row .eye-btn{color:#7b98b7}.tree-row .eye-btn svg{width:17px;height:17px}.tree-row .fold-btn svg{width:12px;height:12px}.tree-row .fold-btn.placeholder{visibility:hidden}.tree-row .tree-name{justify-content:flex-start;padding:0 4px;min-height:32px;min-width:0;flex:1;gap:6px;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tree-row .tree-name svg{width:15px;height:15px;opacity:.65}.tree-row .tree-name span{overflow:hidden;text-overflow:ellipsis}.tree-row .tree-count{font-size:9px;color:#8da2ba;padding-left:5px}.tree-row.is-hidden .tree-name{opacity:.42}.tree-row.is-mixed .eye-btn{color:var(--blue)}
.toast{position:fixed;z-index:100;bottom:calc(var(--panel-h) + var(--selection-h) + 13px + var(--safe-bottom));left:50%;transform:translateX(-50%);background:#011e5bf2;border:1px solid #124586;color:white;border-radius:12px;padding:11px 15px;font-size:12px;line-height:1.5;max-width:calc(100% - 40px);width:max-content;box-shadow:0 12px 26px #011e5b24;pointer-events:none}.modal{border:1px solid var(--line);border-radius:24px;padding:22px;color:var(--text);width:min(440px,calc(100% - 30px));background:#fff;box-shadow:0 22px 100px #021f6333;max-height:90dvh;overflow:auto}.modal::backdrop{background:#061d4166;backdrop-filter:blur(5px)}.modal-head{display:flex;justify-content:space-between;align-items:center;gap:14px}.modal-head h2{font-size:20px;margin:4px 0}.modal-head .icon-btn{color:#8295ac;background:#f3f8fc}.eyebrow{font-size:9px;letter-spacing:2px;color:var(--blue);font-weight:650}.modal-lead{font-size:13px;color:var(--muted);line-height:1.8}.file-select{position:relative;display:flex;align-items:center;justify-content:center;gap:8px;font-size:14px;width:100%;height:48px;margin:18px 0 10px;overflow:hidden}.file-select input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;font-size:16px}.wide{width:100%;min-height:44px}.local-note{font-size:11px;color:#8a9db5;line-height:1.8;margin:18px 0 0}.confirm-actions{display:flex;gap:12px;justify-content:flex-end;margin-top:22px}.confirm-actions button{min-width:88px;min-height:40px}.load-shade{position:absolute;inset:0;z-index:30;display:flex;align-items:center;justify-content:center;background:#f4faffd9;backdrop-filter:blur(5px)}.load-card{max-width:84%;width:350px;text-align:center;background:#fff;border:1px solid var(--line);padding:30px 20px;border-radius:22px;box-shadow:0 16px 80px #16479718}.spinner{display:inline-block;width:27px;height:27px;border:3px solid #d9eaff;border-top-color:var(--blue);border-radius:50%;animation:spin .9s linear infinite}.load-card h2{font-size:17px;margin:20px 0 10px}.load-card p{font-size:12px;line-height:1.6;color:var(--muted);overflow-wrap:anywhere}.load-card button{margin-top:14px;min-width:140px}.webgl-error{position:absolute;top:52%;left:20%;right:8%;text-align:center;color:var(--muted)}.webgl-error h2{font-size:14px}.webgl-error p{font-size:11px;line-height:1.8}.icon-proofs{display:flex;justify-content:center;gap:36px;margin:10px 0}.icon-proofs figure{margin:16px 0;text-align:center}.icon-proofs img{width:77px;height:77px;border-radius:18px;box-shadow:0 7px 22px #0e45a41a}.icon-proofs figcaption{font-size:10px;color:var(--muted);margin-top:9px}.review-scope{font-size:11px;color:var(--muted);line-height:1.7}.review-item{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:7px 0;border-top:1px solid #f0f5fb;font-size:11px}.review-item select{border:1px solid var(--line);padding:5px;border-radius:6px;font-size:11px;background:#fff}.review-modal textarea{width:100%;border:1px solid var(--line);border-radius:9px;font-size:12px;padding:10px;margin:10px 0;resize:vertical}.review-modal pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px;background:#f3f8ff;padding:10px;border-radius:8px}.noscript{position:fixed;inset:auto 20px 20px;z-index:200;background:white;border:1px solid var(--line);padding:20px;border-radius:15px;color:var(--navy);font-size:14px}.noscript p{font-size:12px;line-height:1.8}
@keyframes spin{to{transform:rotate(360deg)}}@media(min-width:768px){.head-main{height:66px;padding-left:24px;padding-right:24px}.status-line{padding-left:24px;padding-right:24px}.brand h1{font-size:21px}.top-actions button{font-size:13px;padding:0 15px}.status-line,.privacy{font-size:11px}.panel-head{padding:0 22px;height:36px}.panel-body{height:calc(100% - 36px);padding:2px 22px 8px}.panel-head h2{font-size:14px}.tool-content:not(.tree-scroll){max-width:720px;margin:auto}.tree-scroll{padding-left:8px}.step-field{font-size:12px;flex:0 1 240px}.step-field input{max-width:100px}.control-row{justify-content:center;gap:18px}.swatches{justify-content:space-evenly}.custom-color-row{justify-content:center;gap:50px}.row-note{margin-left:0}.explode-row{justify-content:flex-start;gap:14px}.gesture-hint{font-size:11px}.model-caption{font-size:11px}.selection{padding:3px 22px}.selected-copy strong{font-size:12px}.selected-copy small{font-size:10px}.welcome{padding-left:24px}.hero-logo{width:min(43dvh,320px)}.rail{left:22px;top:22px}.viewport-head{left:89px;top:22px;right:24px}.model-caption{left:90px}.tree-row{font-size:12px}.tree-row .tree-name{font-size:12px}.collapse-btn{min-height:29px;font-size:11px}.restore-mini{font-size:11px}.coming-soon{gap:12px}}
@media(max-width:365px){.head-main{padding:6px 11px;gap:7px;height:61px}.brand{gap:7px}.brand h1{font-size:17px}.brand img{width:34px;height:34px;border-radius:9px}.top-actions{gap:5px}.top-actions button{padding:0 8px;font-size:11px;gap:4px;height:36px}.top-actions svg{display:none}.status-line{padding:0 11px 5px;font-size:9px}.privacy{font-size:9px}.rail{left:9px;width:47px}.rail [data-tool]{width:37px;height:47px}.viewport-head{left:64px;right:12px}.welcome{padding-left:58px;padding-right:20px}.hero-logo{width:61vw}.panel-head{padding-left:11px;padding-right:8px}.panel-body{padding-left:10px;padding-right:10px}.step-field{font-size:10px;gap:3px}.step-row{gap:7px}.swatch{width:28px;height:28px;min-height:28px}.swatches{gap:5px}.settings-row{gap:5px}.settings-row button{padding:0 7px;font-size:10px}.unit-choice{font-size:9px}.unit-choice select{width:80px}.row-note{font-size:9px}.clip-actions{gap:5px}.clip-actions button{font-size:10px;padding:0 7px}.cap-toggle{font-size:10px}.restore-mini{font-size:9px}}
@media(max-height:610px){.head-main{height:51px}.brand img{width:34px;height:34px}.status-line{height:21px}.rail{top:10px}.rail [data-tool]{height:36px;gap:2px;font-size:9px}.rail [data-tool] svg{width:17px;height:17px}.rail-toggle{height:24px;min-height:24px;margin-bottom:1px}.rail #rail-items{gap:1px}.rail [data-tool]:last-child{margin-top:1px}.viewport-head{top:10px}.panel-head{height:28px}.panel-body{height:calc(100% - 28px);padding-bottom:2px}.collapse-btn{height:24px;min-height:24px}.panel-top-right{gap:3px}.panel-head h2{font-size:11px}.hero-logo{width:min(50dvh,205px);margin-top:-10px}.welcome{padding-bottom:10px}.hero-open{height:37px;min-height:37px;font-size:13px}.text-button{margin-top:4px;min-height:32px}.welcome p{margin-top:6px}.model-caption{bottom:28px}.gesture-hint{bottom:9px}.tree-row{min-height:30px}.tree-row .eye-btn,.tree-row .fold-btn,.tree-row .tree-name{min-height:28px;height:28px}}
@media(orientation:landscape) and (max-height:550px){:root{--row-h:30px}.head-main{height:46px}.status-line{display:none}.rail{top:7px;left:10px;width:45px;padding:3px}.rail [data-tool]{height:31px;width:37px;flex-direction:row;gap:0}.rail [data-tool] span{display:none}.rail-toggle{height:23px;min-height:23px}.viewport-head{top:9px;left:65px;right:13px}.view-toggle{min-height:30px}.eye-control .icon-btn{min-height:30px;height:30px}.panel-head{height:25px}.panel-body{height:calc(100% - 25px);padding:0 13px 2px}.panel-top-right button{height:22px;min-height:22px}.step-field input{height:26px}.axis-options{height:27px}.control-row .soft{height:28px;min-height:28px}.hero-logo{width:160px;margin-top:0}.welcome{flex-direction:row;gap:20px;padding:0 30px 20px 65px;flex-wrap:wrap;align-content:center}.welcome p{width:100%;margin:0}.welcome .text-button{display:none}.selection{min-height:23px;padding-top:1px;padding-bottom:1px}.selected-copy{flex-direction:row;gap:15px;align-items:center}.selected-symbol{height:21px;width:22px}.selected-symbol svg{width:14px;height:14px}.type-tag{padding:2px 6px}.gesture-hint{font-size:8px}.model-caption{font-size:9px;bottom:24px}.swatch{width:25px;height:25px;min-height:25px}.custom-color-label input{height:25px;width:26px}.unit-choice select{height:27px}.coming-soon strong{font-size:12px}.coming-soon svg{height:18px;width:18px}}

.rail-toggle{gap:2px}.rail-toggle .rail-toggle-text{font-size:9px;letter-spacing:0}.rail-toggle svg{width:13px;height:13px}.rail.collapsed .rail-toggle{flex-direction:column;gap:0}.rail.collapsed .rail-toggle svg{width:13px;height:13px}
@media(orientation:landscape) and (max-height:550px){.rail-toggle .rail-toggle-text{display:none}}

/* UI 02: view rendering options and always-available section shortcut */
.viewport-head{display:flex;gap:7px;align-items:flex-start;flex-wrap:nowrap;pointer-events:none}.viewport-head >*{pointer-events:auto}.render-control{position:relative;min-width:0}.render-control .view-toggle{font-size:10px;padding:0 8px;max-width:127px}.render-control .view-toggle span{overflow:hidden;text-overflow:ellipsis}.render-control .pop-menu{left:0;right:auto;min-width:132px}.stage-utilities{margin-left:auto;display:flex;align-items:flex-start;gap:6px;min-width:0}.clip-quick{height:36px;min-height:36px;padding:0 10px;border:1px solid #81bbf1;background:#e7f5ff;color:#075cb8;border-radius:12px;font-size:11px;font-weight:700;box-shadow:0 3px 9px #004b9a10}.clip-quick svg{width:16px;height:16px}.clip-quick[aria-pressed=true]{background:#0b6cff;color:#fff;border-color:#0b6cff;box-shadow:0 6px 14px #0b6cff44}.clip-color-row{justify-content:space-between}.clip-color-label{display:flex;align-items:center;gap:12px;font-size:11px;font-weight:600}.clip-color-label input{height:29px;width:48px;border:1px solid var(--line);background:#fff;border-radius:7px;padding:2px}.clip-color-row small{font-size:10px;color:var(--muted)}.eye-control{position:relative}.eye-control .pop-menu{right:0;left:auto}.render-control .pop-menu button{justify-content:flex-start}.view-control{flex:none}.stage-utilities{flex:none}.viewport-head{right:12px}@media(max-width:410px){.viewport-head{gap:4px;left:62px;right:7px}.view-toggle{font-size:10px;padding:0 6px}.render-control .view-toggle{font-size:9px;max-width:101px;padding:0 5px}.render-control .view-toggle svg:first-child{display:none}.clip-quick{height:31px;min-height:31px;padding:0 6px}.clip-quick span{display:none}.eye-control .icon-btn{height:31px;min-height:31px}.clip-color-row small{max-width:50%;line-height:1.4}}@media(orientation:landscape) and (max-height:550px){.clip-quick{height:29px;min-height:29px}.render-control .view-toggle{max-width:127px}.clip-color-row small{font-size:9px}}

.clip-actions{gap:7px}.clip-actions .soft{padding:0 8px}.clip-actions .clip-color-label{gap:4px;font-size:10px;margin-left:auto;white-space:nowrap}.clip-actions .clip-color-label input{width:28px;height:29px;padding:1px}.clip-actions .cap-toggle{white-space:nowrap}@media(max-width:365px){.clip-actions .clip-color-label span{display:none}.clip-actions .clip-color-label input{width:26px}.clip-actions{gap:4px}}

/* Production bridge; no application data is transmitted. */
.activation{position:fixed;inset:0;z-index:400;background:var(--ice);display:grid;place-items:center;padding:16px;overflow-y:auto}.activation-card{background:white;border:1px solid var(--line);border-radius:24px;box-shadow:0 20px 60px #0e45a414;padding:28px;width:min(460px,100%);display:flex;flex-direction:column;gap:14px}.activation h2{margin:0;color:var(--navy);font-size:23px}.activation p{line-height:1.65;margin:4px 0;font-size:13px}.activation label{font-size:13px}.activation input{width:100%;height:44px;border:1px solid var(--line);padding:0 12px;border-radius:10px;min-width:0}.update-bar{z-index:20;display:flex;gap:12px;align-items:center;justify-content:center;background:#ecf6ff;color:#075cb8;padding:8px 12px;font-size:12px}.update-bar button{min-height:32px}.runtime-support{display:none!important}
.eye-grid-stack{display:flex;flex-direction:column;align-items:center;min-width:45px;gap:6px}.eye-grid-stack .eye-control{height:36px;min-height:36px}.eye-grid-stack .eye-control[hidden]{display:block!important;visibility:hidden;pointer-events:none}.grid-toggle{width:52px;min-height:35px;height:35px;padding:0 3px;display:flex;flex-direction:column;gap:0;font-size:9px;font-weight:600;color:#597a9d}.grid-toggle svg{width:17px;height:17px}.grid-toggle[aria-pressed=false]{color:#a0abb9;background:#ecf0f3}.grid-toggle[aria-pressed=false] svg{stroke:#b1bbc7}.grid-toggle[aria-pressed=true]{border-color:#b9d8f4;color:var(--blue);background:#edf7ff}.stage-utilities{align-items:flex-start}.clip-quick{align-self:flex-start}
@media(max-width:410px){.eye-grid-stack{min-width:35px}.eye-grid-stack .eye-control{height:31px;min-height:31px}.grid-toggle{width:43px;min-height:31px;height:31px;font-size:9px}}
@media(orientation:landscape) and (max-height:550px){.eye-grid-stack{gap:3px}.eye-grid-stack .eye-control{height:29px;min-height:29px}.grid-toggle{min-height:27px;height:27px}}
#review-open{display:none!important}

/* 3.2.1: two-row transformation controls; finite height, no panel overflow. */
.transform-tools{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.90fr) 51px 80px;gap:5px;justify-content:stretch}
.transform-tools .step-field{gap:3px;font-size:10px;flex:initial;max-width:none}
.transform-tools .step-field input{width:28px;min-width:24px;max-width:65px;height:30px;font-size:16px}
.transform-tools .step-field>span:last-child{min-width:0;font-size:9px}
.transform-tools .explode-button{width:51px;min-width:0;height:31px;font-size:10px;padding:0 3px;white-space:nowrap}
.transform-tools .axis-options{height:31px;gap:1px;padding:2px;width:80px}
.transform-tools .axis-options button{width:24px;font-size:11px}
.explosion-adjust{gap:6px}.explosion-adjust input[type=range]{flex:1;width:0;min-width:42px;height:32px;margin:0;accent-color:var(--blue);touch-action:none;cursor:ew-resize}
.range-end{font-size:16px;color:var(--blue);min-width:10px;text-align:center}
.explosion-step-label{display:flex;gap:4px;align-items:center;font-size:10px;white-space:nowrap}
.explosion-step-label input{width:42px;height:30px;border:1px solid var(--line);background:#f6faff;text-align:center;border-radius:7px;padding:0 1px;font-size:16px}
.clip-axis-options{height:27px;padding:1px;gap:1px;border-radius:7px}.clip-axis-options button{width:25px;min-height:23px;font-size:10px}
.panel-top-right{gap:5px}.mini-toggle{color:var(--blue);font-weight:700;font-size:11px}
.import-options{display:grid;grid-template-columns:1.25fr 1fr;gap:10px}.import-options label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:600}
.import-options select{height:42px;padding:0 6px;border:1px solid var(--line);border-radius:9px;background:#f6faff;min-width:0;width:100%;font-size:14px;color:var(--text)}
.import-summary{font-size:12px;background:#f3f8ff;border-radius:9px;padding:10px;overflow-wrap:anywhere;line-height:1.6}
.quality-note{font-size:11px;color:var(--muted);line-height:1.6}.quality-note:empty{display:none}
#loading-time{font-variant-numeric:tabular-nums;line-height:1.7}#open-dialog .file-select{margin-top:10px}
@media(max-width:365px){.transform-tools{grid-template-columns:minmax(0,1fr) minmax(0,.85fr) 46px 71px;gap:3px}.transform-tools .step-field{font-size:9px;gap:2px}.transform-tools .axis-options{width:71px}.transform-tools .axis-options button{width:21px}.transform-tools .explode-button{width:46px;font-size:9px}.panel-top-right{gap:3px}.clip-axis-options button{width:22px}.clip-axis-options{height:25px}.mini-toggle{font-size:10px}}
@media(orientation:landscape) and (max-height:550px){.transform-tools .step-field input{height:25px}.transform-tools .explode-button,.transform-tools .axis-options{height:27px}.explosion-adjust input[type=range]{height:26px}.explosion-step-label input{height:25px}.clip-axis-options{height:22px}.clip-axis-options button{height:19px;min-height:19px}}


/* 3.2.2: mobile-native touch and single-row toolbar.
   Selection/callout protection only on this app; editable fields remain selectable.
   No global touchmove.preventDefault(): OrbitControls needs pointer gestures. */
html,body,#app,#activation,#stage,.modal{ -webkit-touch-callout:none; -webkit-user-select:none; user-select:none; }
#app button,#app svg,#app img,#app label,#app .view-control,#app .render-control,
#activation button,.modal button,.modal label{ -webkit-touch-callout:none; -webkit-user-select:none; user-select:none; -webkit-user-drag:none; user-drag:none; }
#viewport,#viewport canvas,#gizmo{ touch-action:none!important; -webkit-user-select:none; user-select:none; -webkit-touch-callout:none; }
#stage .tree-scroll { touch-action:pan-y; overflow-y:auto; -webkit-overflow-scrolling:touch; }
input,textarea,select,[contenteditable="true"],#diagnostic-text { -webkit-user-select:text!important; user-select:text!important; -webkit-touch-callout:default!important; }
#app button,.activation button,.modal button { touch-action:manipulation; }
#stage .viewport-head { position:absolute;top:10px;left:8px;right:8px;z-index:15;
  display:grid;grid-template-columns:minmax(0,1.26fr) minmax(0,1.26fr) minmax(0,.85fr) minmax(0,.85fr) minmax(0,.77fr);
  gap:5px;align-items:start;justify-content:initial;flex-wrap:nowrap;pointer-events:none; }
#stage .viewport-head > * { min-width:0;max-width:100%;pointer-events:auto; }
#stage .viewport-head .view-control,#stage .viewport-head .render-control,#stage .viewport-head .eye-control { min-width:0;position:relative;width:100%; }
#stage .viewport-head #view-toggle,#stage .viewport-head #render-toggle,
#stage .viewport-head #clip-quick,#stage .viewport-head #grid-toggle,
#stage .viewport-head #eye-toggle{ width:100%;max-width:100%;min-width:0;height:38px;min-height:38px;
  box-sizing:border-box;margin:0;padding:0 5px;gap:3px;align-items:center;justify-content:center;
  display:flex;flex-direction:row;font-size:10px;border-radius:10px; }
#stage .viewport-head #view-toggle span,#stage .viewport-head #render-toggle span {
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0; }
#stage .viewport-head #view-toggle svg,#stage .viewport-head #render-toggle svg,
#stage .viewport-head #clip-quick svg,#stage .viewport-head #grid-toggle svg,
#stage .viewport-head #eye-toggle svg{ width:15px;height:15px;flex:none; }
#stage .viewport-head #view-toggle svg:first-child,#stage .viewport-head #render-toggle svg:first-child{display:none;}
#stage .viewport-head #clip-quick span,#stage .viewport-head #grid-toggle span{display:inline;font-size:10px;white-space:nowrap;}
#stage .viewport-head #eye-toggle svg.small-chevron { width:10px;height:10px; }
#stage .viewport-head .pop-menu{top:calc(100% + 5px);max-height:min(52dvh,310px);overflow-y:auto;z-index:30;}
#stage .viewport-head .eye-menu {right:0;left:auto;min-width:145px;}
#stage .rail {top:57px;}
#stage .viewport-head #eye-menu button:disabled {opacity:.36;pointer-events:none;}
#offline-state.ready {color:#13834b!important;font-weight:750;background:#e6f7ed;padding:3px 7px;border-radius:7px;}
@media(max-width:430px){
  #stage .viewport-head{gap:3px;left:6px;right:6px;top:7px;}
  #stage .viewport-head #view-toggle,#stage .viewport-head #render-toggle,
  #stage .viewport-head #clip-quick,#stage .viewport-head #grid-toggle,
  #stage .viewport-head #eye-toggle{height:35px;min-height:35px;padding:0 2px;font-size:9px;gap:2px;}
  #stage .viewport-head #view-toggle svg.chevron,#stage .viewport-head #render-toggle svg.chevron{width:10px;height:10px;}
  #stage .viewport-head #clip-quick svg,#stage .viewport-head #grid-toggle svg{width:13px;height:13px;}
  #stage .viewport-head #clip-quick span,#stage .viewport-head #grid-toggle span{font-size:9px;}
  #stage .rail{top:48px;}
}
@media(max-width:350px){
  #stage .viewport-head{grid-template-columns:minmax(0,1.35fr) minmax(0,1.25fr) minmax(0,.86fr) minmax(0,.86fr) minmax(0,.77fr);gap:2px;}
  #stage .viewport-head #clip-quick svg,#stage .viewport-head #grid-toggle svg{display:none;}
}
@media(orientation:landscape) and (max-height:550px){
  #stage .viewport-head{top:5px;left:5px;right:5px;gap:5px;}
  #stage .viewport-head #view-toggle,#stage .viewport-head #render-toggle,
  #stage .viewport-head #clip-quick,#stage .viewport-head #grid-toggle,
  #stage .viewport-head #eye-toggle{height:30px;min-height:30px;}
  #stage .rail{top:41px;}
}
@media (orientation:landscape) and (max-height:390px){
  #stage .rail {top:34px;}
  #stage .rail [data-tool] {height:24px;}
  #stage .rail .rail-toggle {height:20px;min-height:20px;}
}

/* 3.2.4: seven evenly high viewport controls, small-screen optimized. */
#stage .viewport-head{grid-template-columns:minmax(0,1.18fr) minmax(0,1.18fr) minmax(0,.64fr) minmax(0,.64fr) minmax(0,.65fr) minmax(0,.51fr) minmax(0,.51fr);gap:3px;align-items:center;}
#stage .viewport-head #undo-edit,#stage .viewport-head #redo-edit{
 width:100%;max-width:100%;min-width:0;min-height:38px;height:38px;
 padding:0 2px;border-radius:10px;display:flex;align-items:center;justify-content:center;box-sizing:border-box;
}
#stage .viewport-head .history-btn svg{height:17px;width:17px;}
#stage .viewport-head .history-btn:disabled{opacity:.36;cursor:not-allowed;}
#stage .viewport-head #view-toggle,#stage .viewport-head #render-toggle{padding:0 1px;gap:1px;}
#stage .viewport-head #clip-quick,#stage .viewport-head #grid-toggle,#stage .viewport-head #eye-toggle{padding:0 1px;gap:1px;}
#stage .viewport-head #clip-quick span,#stage .viewport-head #grid-toggle span{display:none;}
#stage .viewport-head .eye-control #eye-menu{right:0;left:auto;}
.opacity-row{gap:8px;justify-content:space-between;}
.opacity-row>label:first-child{flex:none;font-size:11px;white-space:nowrap;}
.opacity-row input[type=range]{flex:1;min-width:35px;max-width:none;accent-color:var(--blue);touch-action:pan-x;}
.opacity-number{display:flex;align-items:center;gap:2px;white-space:nowrap;font-size:11px;}
.opacity-number input{width:48px;min-height:30px;height:30px;box-sizing:border-box;background:white;border:1px solid var(--line);border-radius:7px;padding:0 4px;text-align:center;}
.clip-color-row{gap:7px;justify-content:space-between;}
.clip-color-row>label:first-child{font-size:10px;white-space:nowrap;}
.clip-color-row select{min-width:0;width:38%;max-width:130px;min-height:30px;height:30px;font-size:11px;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--navy);}
.clip-color-row .clip-color-label{font-size:11px;flex:0 0 auto;gap:4px;}
.clip-color-row .clip-color-label input{width:30px;height:30px;}
@media(max-width:430px){
  #stage .viewport-head{left:5px;right:5px;gap:2px;}
  #stage .viewport-head #undo-edit,#stage .viewport-head #redo-edit{min-height:35px;height:35px;}
  #stage .viewport-head #view-toggle,#stage .viewport-head #render-toggle{font-size:9px;}
  #stage .viewport-head #clip-quick svg,#stage .viewport-head #grid-toggle svg{display:block;}
  #stage .viewport-head .history-btn svg{height:15px;width:15px;}
  .opacity-row>label:first-child{font-size:10px;}
}
@media(max-width:350px){
  #stage .viewport-head{grid-template-columns:minmax(0,1.1fr) minmax(0,1.1fr) repeat(5,minmax(0,.59fr));gap:2px;}
  #stage .viewport-head #view-toggle svg.chevron,#stage .viewport-head #render-toggle svg.chevron{display:none;}
  .opacity-row{gap:3px;}
  .opacity-number input{width:36px;}
}
@media(orientation:landscape) and (max-height:550px){
 #stage .viewport-head #undo-edit,#stage .viewport-head #redo-edit{height:30px;min-height:30px;}
}


/* 3.2.5: named mode switches replace cryptic < 1/2 > in color and clipping. */
.panel-mode-toggle{min-height:27px;height:27px;min-width:60px;padding:0 10px;
 border:1px solid #c7daf7;border-radius:8px;background:#eff6ff;color:#0b58c8;
 font-size:11px;font-weight:750;white-space:nowrap;touch-action:manipulation;}
.panel-mode-toggle.active{background:#0b6cff;color:#fff;border-color:#0b6cff;}
.panel.named-subpanel{min-height:96px;}
.panel.named-subpanel .control-row{min-height:var(--row-h);height:var(--row-h);}
@media(max-width:350px){
 .panel-mode-toggle{min-width:53px;padding:0 6px;font-size:10px;}
 .panel.named-subpanel .control-row{gap:3px;}
 .panel.named-subpanel .custom-color-row button{padding:0 4px;font-size:10px;min-height:27px;height:27px;}
 .panel.named-subpanel .clip-actions button{padding:0 4px;min-height:27px;height:27px;}
 .panel.named-subpanel .step-field input{height:28px;}
}
