:root{--ink:#23262b;--muted:#747980;--line:#181d2321;--panel:#f9fafbdb;--blue:#176ff2;color:var(--ink);font-synthesis:none;-webkit-font-smoothing:antialiased;background:#e8eaed;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,SF Pro Text,sans-serif}*{box-sizing:border-box}html,body,#app{width:100%;height:100%;margin:0;overflow:hidden}button{color:inherit;font:inherit}#app{position:relative}#canvas{position:absolute}.has-model:not(.panel-collapsed) #canvas{width:calc(100% - 318px);left:318px}#canvas,#canvas canvas{width:100%;height:100%;display:block}#canvas canvas{outline:none}#canvas canvas.measuring{cursor:crosshair}.view-tools button.active{color:var(--blue);background:#176ff21f}.view-tools button:disabled{opacity:.4;cursor:default}.component-row.selected{background:#176ff21f}.selection-panel{z-index:4;background:var(--panel);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);border:1px solid #fff;border-radius:12px;width:min(320px,100vw - 28px);padding:14px;position:absolute;bottom:66px;right:14px;box-shadow:0 8px 28px #1e252c1a}.selection-panel header{justify-content:space-between;align-items:center;gap:10px;font-size:12px;display:flex}.selection-panel strong{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.selection-panel button{cursor:pointer;background:0 0;border:0;font-size:20px}#selection-result{white-space:pre-line;font-variant-numeric:tabular-nums;margin:8px 0;font-size:14px}.selection-panel small{color:var(--muted);font-size:11px;line-height:1.6;display:block}.dimension-label{z-index:3;pointer-events:none;color:#145bd7;font-variant-numeric:tabular-nums;background:#f8fbff;border:1px solid #8db3ed;border-radius:6px;padding:5px 9px;font-size:13px;position:fixed;transform:translate(-50%,-100%);box-shadow:0 2px 8px #0001}[hidden]{display:none!important}.topbar{z-index:4;background:var(--panel);-webkit-backdrop-filter:blur(22px)saturate(1.3);backdrop-filter:blur(22px)saturate(1.3);border:1px solid #ffffffbd;border-radius:14px;grid-template-columns:1fr minmax(100px,1fr) 1fr;align-items:center;height:52px;padding:0 9px 0 18px;display:grid;position:absolute;inset:14px 14px auto;box-shadow:0 12px 40px #1e252c14,0 1px 2px #1e252c14}.brand{letter-spacing:-.01em;align-items:center;gap:9px;font-size:13px;font-weight:650;display:flex}.brand-mark{border:2px solid var(--ink);border-radius:4px;width:17px;height:17px;transform:rotate(-5deg);box-shadow:inset -4px -4px #b8bec5}.file-name{color:var(--muted);text-align:center;text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.open-button{color:#fff;background:var(--blue);cursor:pointer;border:0;border-radius:8px;justify-self:end;height:34px;padding:0 14px;font-size:12px;font-weight:600;box-shadow:0 2px 5px #176ff23d}.open-button span{vertical-align:-1px;margin-right:4px;font-size:16px;font-weight:300}.open-button:hover{background:#0865ed}.open-button:active{transform:translateY(1px)}.open-button:disabled{opacity:.65;cursor:wait}.file-actions{justify-self:end;align-items:center;gap:10px;display:flex}.share-action{position:relative}.share-button{border:1px solid var(--line);cursor:pointer;white-space:nowrap;background:#fff9;border-radius:8px;height:34px;padding:0 12px;font-size:14px}.share-button:disabled{opacity:.5;cursor:default}.share-button:hover:not(:disabled){background:#fff}.share-panel{z-index:6;background:#f8fafc;border:1px solid #fff;border-radius:12px;width:min(380px,100vw - 80px);padding:14px;font-size:14px;position:absolute;top:86px;right:66px;box-shadow:0 8px 28px #1e252c22}.share-panel p{overflow-wrap:anywhere;margin:0 20px 0 0;line-height:1.5}.share-panel input{border:1px solid var(--line);width:100%;font:inherit;border-radius:5px;margin-top:12px;padding:8px}.share-panel a{color:var(--blue);margin-top:10px;display:inline-block}.share-links{flex-wrap:wrap;gap:0 14px;font-size:12px;display:flex}#close-share{cursor:pointer;background:0 0;border:0;font-size:20px;position:absolute;top:8px;right:8px}.view-tools{z-index:3;background:var(--panel);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);border:1px solid #ffffffc7;border-radius:11px;flex-direction:column;padding:5px;display:flex;position:absolute;top:82px;right:14px;box-shadow:0 8px 28px #1e252c14}.view-tools button{cursor:pointer;background:0 0;border:0;border-radius:7px;width:34px;height:32px;font-size:11px;font-weight:650}#fit{place-items:center;display:grid}.view-tools button:hover{background:#1e242a12}#section{width:48px;font-size:10px}.section-offset{align-items:center;gap:8px;margin:12px 0;font-size:12px;display:flex}.section-offset input{border:1px solid var(--line);border-radius:6px;width:130px;padding:7px}.section-actions{gap:8px;display:flex}.section-actions button{background:#1e242a12;border-radius:6px;padding:7px 12px;font-size:12px}.view-tools span{background:var(--line);height:1px;margin:5px 4px}.components{z-index:3;background:var(--panel);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);border:1px solid #ffffffc7;border-radius:12px;width:min(290px,100vw - 80px);max-height:calc(100vh - 150px);position:absolute;top:82px;left:14px;overflow:hidden;box-shadow:0 10px 34px #1e252c1a}.components-header{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;height:46px;padding:0 8px 0 13px;display:flex}.components-header>div:first-child{flex-direction:column;gap:2px;min-width:0;display:flex}.components-header strong{letter-spacing:.01em;font-size:11px;font-weight:650}.components-header span{color:var(--muted);font-size:9px}.component-actions{align-items:center;gap:2px;display:flex}.component-actions button{height:26px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:5px;padding:0 6px;font-size:9px}.component-actions button:hover{color:var(--ink);background:#1e242a12}.component-actions .collapse-components{border-left:1px solid var(--line);border-radius:0 5px 5px 0;width:25px;margin-left:3px;font-size:15px;line-height:1}.tree-toolbar{border-bottom:1px solid var(--line);align-items:center;gap:2px;height:33px;padding:4px 7px;display:flex}.tree-toolbar button{height:24px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:5px;padding:0 6px;font-size:8px}.tree-toolbar button:hover{color:var(--ink);background:#1e242a12}.tree-toolbar span{flex:1}.component-tree{scrollbar-color:#b5bac0 transparent;scrollbar-width:thin;max-height:calc(100vh - 229px);padding:6px;overflow:auto}.component-row{min-width:calc(180px + var(--depth) * 16px);height:30px;padding:0 5px 0 calc(2px + var(--depth) * 16px);border-radius:6px;align-items:center;display:flex}.component-row:hover{background:#1e242a0e}.branch-button,.visibility-button,.component-download{cursor:pointer;background:0 0;border:0;border-radius:4px;flex:none;place-items:center;width:24px;height:24px;padding:0;display:grid}.component-download{color:#899097;margin-left:4px}.component-download:hover{color:var(--ink);background:#1e242a14}.component-download:focus-visible{outline:2px solid var(--blue);outline-offset:1px}.component-download:disabled{opacity:.35;cursor:default}.branch-button{color:#747a81;width:19px;font-size:14px}.branch-button:disabled{cursor:default}.visibility-button:hover{background:#1e242a14}.visibility-button span{border:1.4px solid #626970;border-radius:11px/8px;width:15px;height:10px;position:relative}.visibility-button span:after{content:"";background:#555c63;border-radius:50%;width:4px;height:4px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.visibility-button.off span{border-color:#adb2b7}.visibility-button.off span:before{content:"";background:#959ba1;width:18px;height:1px;position:absolute;top:4px;left:-2px;transform:rotate(-35deg)}.visibility-button.off span:after{display:none}.visibility-button.mixed span:after{background:#868c92;border-radius:2px;width:7px;height:2px}.part-icon,.assembly-icon{background:linear-gradient(135deg,#f7f8f9 48%,#cfd3d7 50%);border:1px solid #899097;border-radius:2px;flex:none;width:13px;height:13px;margin:0 7px 0 3px;position:relative;transform:rotate(45deg)scale(.72)}.assembly-icon{box-shadow:4px -4px 0 -1px #eef0f2,4px -4px #899097}.component-name{text-align:left;cursor:pointer;color:#3f454b;text-overflow:ellipsis;white-space:nowrap;background:0 0;border:0;flex:1;min-width:0;padding:0;font-size:10px;overflow:hidden}.component-name:focus-visible{outline:2px solid var(--blue);outline-offset:2px;border-radius:2px}.part-total{color:#747a81;background:#1e242a12;border-radius:9px;place-items:center;min-width:17px;height:17px;margin-left:5px;font-size:8px;display:grid}.components.collapsed{width:150px}.components.collapsed .component-tree,.components.collapsed .tree-toolbar,.components.collapsed .components-header>div:first-child span,.components.collapsed .component-actions button:not(.collapse-components){display:none}.components.collapsed .components-header{border-bottom:0}.empty-state{z-index:2;cursor:pointer;-webkit-backdrop-filter:blur(13px);backdrop-filter:blur(13px);background:#f8f9fab8;border:1.5px dashed #a5aab1;border-radius:19px;flex-direction:column;justify-content:center;align-items:center;width:min(390px,100vw - 44px);min-height:224px;display:flex;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);box-shadow:0 20px 70px #252b310f}.empty-state:hover{background:#fbfcfdd6;border-color:#747a81}.file-icon{width:52px;height:62px;color:var(--muted);letter-spacing:.07em;background:#fff;border:1px solid #aeb4ba;border-radius:7px;place-items:center;margin-bottom:18px;font-size:9px;font-weight:700;display:grid;box-shadow:0 5px 15px #1e232814}.empty-state strong{letter-spacing:-.02em;font-size:16px;font-weight:620}.empty-state small{color:var(--muted);margin-top:7px;font-size:11px}.loading-card{z-index:5;color:#4d535a;background:#fafbfceb;border:1px solid #fffc;border-radius:11px;align-items:center;gap:10px;padding:13px 17px;font-size:12px;display:flex;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);box-shadow:0 14px 50px #1c222824}.spinner{border:2px solid #ccd1d7;border-top-color:var(--blue);border-radius:50%;width:15px;height:15px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.statusbar{z-index:3;height:38px;color:var(--muted);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);background:#f9fafbcc;border:1px solid #ffffffb8;border-radius:11px;align-items:center;padding:0 13px;font-size:10px;display:flex;position:absolute;bottom:14px;left:14px;right:14px;box-shadow:0 8px 28px #1e252c12}.status-dot{background:#a9afb5;border-radius:50%;width:6px;height:6px;margin-right:6px;display:inline-block}.status-dot.ready{background:#31a96b;box-shadow:0 0 0 3px #31a96b1a}.model-stats{align-items:center;gap:10px;margin-left:18px;display:flex}.model-stats span{background:var(--line);width:1px;height:12px}.statusbar button{border:1px solid var(--line);cursor:pointer;background:0 0;border-radius:6px;margin-left:auto;padding:4px 8px;font-size:10px}.statusbar button.active{color:var(--blue);background:#176ff214;border-color:#176ff240}.statusbar button:disabled{opacity:.5}.mouse-help{margin-left:16px}.mouse-help b{color:#4b5056;font-weight:600}.drop-layer{z-index:20;border:4px solid var(--blue);pointer-events:none;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#176ff21a;place-items:center;display:grid;position:absolute;inset:0}.drop-layer>div{color:#fff;background:var(--blue);border-radius:18px;flex-direction:column;justify-content:center;align-items:center;min-width:220px;min-height:130px;display:flex;box-shadow:0 22px 60px #176ff247}.drop-layer span{margin-bottom:5px;font-size:32px;font-weight:300}.drop-layer strong{font-size:16px}@media (width<=680px){.has-model:not(.panel-collapsed) #canvas{width:100%;left:0}.topbar{grid-template-columns:1fr auto;inset:8px 8px auto}.file-name,.mouse-help{display:none}.view-tools{top:72px;right:8px}.components{width:min(260px,100vw - 64px);max-height:calc(100vh - 130px);top:72px;left:8px}.component-tree{max-height:calc(100vh - 209px)}.statusbar{bottom:8px;left:8px;right:8px}.model-stats{margin-left:10px}}@media (width<=460px){.topbar{padding-left:10px}.brand{gap:0;font-size:0}.file-actions{gap:6px}.open-button{padding:0 8px}.file-actions .share-button{padding:0 7px;font-size:12px}}
