:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial}}*{box-sizing:border-box}html,body,#root{width:100%;height:100%;margin:0;padding:0;overflow:hidden}.app{color:#eee;flex-direction:column;width:100%;height:100%;font-family:system-ui,sans-serif;display:flex}.body{flex:1;min-height:0;display:flex}.sidebar{background:#161616;border-right:1px solid #333;flex-direction:column;flex-shrink:0;gap:.75rem;width:300px;padding:.75rem;display:flex;overflow-y:auto}.panel{background:#1e1e1e;border:1px solid #333;border-radius:6px;flex-direction:column;gap:.5rem;padding:.65rem .75rem;display:flex}.panel h2{text-transform:uppercase;letter-spacing:.05em;color:#999;justify-content:space-between;align-items:center;margin:0 0 .15rem;font-size:.8rem;display:flex}button{color:#eee;cursor:pointer;text-align:left;background:#2a2a2a;border:1px solid #3a3a3a;border-radius:4px;padding:.4rem .6rem;font-family:inherit;font-size:.8rem}button:hover:not(:disabled){background:#333}button:disabled{opacity:.4;cursor:default}button.active{background:#3a5a3a;border-color:#5a8a5a}button.primary{text-align:center;background:#2d5a8f;border-color:#3d7ab8;font-weight:600}button.primary:hover:not(:disabled){background:#3568a3}button.small{text-align:center;padding:.15rem .4rem;font-size:.7rem}.button-row{gap:.4rem;display:flex}.button-row button{text-align:center;flex:1}.row{align-items:center;gap:.5rem;font-size:.85rem;display:flex}.vec3{flex-direction:column;gap:.2rem;display:flex}.vec3-label{color:#999;font-size:.75rem}.slider-number{color:#bbb;grid-template-columns:1rem 1fr 3.6rem;align-items:center;gap:.4rem;font-size:.75rem;display:grid}.slider-number-label{text-transform:none}.slider-number-input{color:#eee;font-variant-numeric:tabular-nums;background:#262626;border:1px solid #3a3a3a;border-radius:4px;width:3.6rem;padding:.15rem .3rem;font-size:.75rem}.timeline ol{flex-direction:column;gap:.35rem;margin:0;padding-left:0;list-style:none;display:flex;overflow-y:auto}.timeline li{word-break:break-word;font-size:.72rem}.timeline li.empty{color:#777;font-style:italic}.op-id{color:#7ec9ff}.op-error-text{color:#ff8080;font-size:.68rem}.viewport{flex:1;min-width:0;min-height:0;position:relative}.status,.error{z-index:1;margin:0;font-size:.9rem;position:absolute;top:1rem;left:1rem}.error{color:#ff6b6b}.popup-backdrop{z-index:1000;pointer-events:none;justify-content:flex-end;align-items:flex-start;padding:1rem;display:flex;position:absolute;inset:0}.popup{pointer-events:auto;box-sizing:border-box;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#1e1e1eee;border:1px solid #3a3a3a;border-radius:8px;flex-direction:column;gap:.55rem;width:280px;max-height:100%;padding:.85rem;display:flex;overflow-y:auto;box-shadow:0 8px 24px #00000080}.popup h2{margin:0 0 .15rem;font-size:.9rem}.popup .hint{color:#999;margin:0;font-size:.72rem}.popup .pick-hint-inline{color:#ffe066}.preview-row{border-top:1px solid #333;padding-top:.15rem}.preview-row input[type=checkbox]{width:1rem;height:1rem}.bug-report-text{box-sizing:border-box;color:#eee;resize:vertical;background:#262626;border:1px solid #3a3a3a;border-radius:4px;width:100%;padding:.5rem;font-family:inherit;font-size:.8rem}.button-grid{flex-wrap:wrap;gap:.3rem;display:flex}.button-grid button{text-align:center;flex:1 0 auto}.status-ok{color:#7ad17a;margin:0;font-size:.8rem}.status-bad{color:#ff8c8c;margin:0;font-size:.8rem}.dialog-list{flex-direction:column;gap:.2rem;max-height:16rem;margin:0;padding:0;list-style:none;display:flex;overflow-y:auto}.dialog-list li{cursor:pointer;background:#1e1e1e;border-radius:3px;align-items:center;gap:.4rem;padding:.2rem .35rem;font-size:.75rem;display:flex}.dialog-list li.hint{cursor:default;background:0 0}.dialog-list li.selected{outline:1px solid #ffd84a}.dialog-list li.failed{color:#ff8c8c;background:#3a1e1e}.dialog-list .item-label{text-overflow:ellipsis;white-space:nowrap;flex:1 0 auto;max-width:100%;overflow:hidden}.dialog-list .item-detail{text-overflow:ellipsis;white-space:nowrap;color:#888;flex:0 auto;min-width:0;font-size:.65rem;overflow:hidden}.dialog-list .item-remove{color:#888;cursor:pointer;background:0 0;border:none;flex-shrink:0;padding:0 4px;font-size:.75rem}.dialog-list .item-remove:hover{color:#ff8080}.dialog-list input{color:#eee;background:#111;border:1px solid #3a3a3a;border-radius:3px;width:5.5rem;padding:.1rem .25rem;font-size:.75rem}.popup .dialog-heading{color:#bbb;text-transform:uppercase;letter-spacing:.04em;margin:.35rem 0 0;font-size:.78rem}.visual-label{color:#eee;white-space:nowrap;background:#2a2a2a;border:1px solid #444;border-radius:3px;padding:0 4px;font:11px system-ui,sans-serif}.visual-label.selected{background:#6a5a20;border-color:#ffd84a}.visual-label.hover{border-color:#ffe0a0}.visual-label.failed{background:#5a2020;border-color:#ff5d5d}button.inline{margin-left:.4rem;padding:.1rem .4rem;font-size:.7rem}.timeline ol.dragging{cursor:grabbing;-webkit-user-select:none;user-select:none}.timeline li.step-box{cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none;background:#242424;border:1px solid #3a3a3a;border-radius:5px;justify-content:space-between;align-items:center;gap:6px;padding:5px 4px 5px 10px;display:flex}.timeline li.step-box:hover:not(.disabled){background:#2b2b2b;border-color:#666}.timeline li.step-box.disabled{cursor:default}.timeline li.step-box .step-name{text-overflow:ellipsis;white-space:nowrap;font-family:ui-monospace,monospace;overflow:hidden}.timeline li.step-box.op-error{color:#ff8080;border-color:#a04040}.timeline li.step-box.step-editing{color:#ffa040;border-color:#ffa040}.timeline li.step-box.step-dim{opacity:.4}.timeline li.step-box.dragging{opacity:.35}.timeline .step-remove{color:#888;cursor:pointer;background:0 0;border:none;flex-shrink:0;padding:0 6px;font-size:.8rem;line-height:1.4}.timeline .step-remove:hover:not(:disabled){color:#ff8080}.timeline li.drop-indicator{pointer-events:none;background:#7ec9ff;border-radius:1px;height:2px;margin:calc(-.175rem - 1px) 0}.timeline li.seeker{cursor:ns-resize;touch-action:none;--seeker:#777;align-items:center;height:12px;display:flex}.timeline li.seeker.rolled-back,.timeline li.seeker.dragging,.timeline li.seeker:hover{--seeker:#ffa040}.timeline .seeker-head{border-top:6px solid #0000;border-bottom:6px solid #0000;border-left:9px solid var(--seeker);width:0;height:0}.timeline .seeker-line{background:var(--seeker);flex:1;height:2px}.popup .field{flex-direction:column;gap:2px;display:flex}.popup .field .hint{margin:0 0 4px;font-size:.8em}.constructions{flex-direction:column;gap:.35rem;display:flex}.constructions fieldset{border:1px solid #333;border-radius:4px;grid-template-columns:1fr 1fr;gap:.1rem .4rem;margin:0;padding:.2rem .4rem .35rem;display:grid}.constructions legend{color:#999;padding:0 .25rem;font-size:.68rem}.constructions button{text-align:left;font-size:.7rem;line-height:1.2}.projection-toggle{z-index:2;background:#1e1e1eee;border:1px solid #3a3a3a;padding:.3rem .7rem;font-size:.75rem;position:absolute;bottom:.75rem;right:.75rem}.mobile-bottom{display:none}@media (width<=860px){.desktop-only{display:none}.body{flex:50%;min-height:0}.mobile-bottom{background:#161616;border-top:1px solid #333;flex-direction:column;flex:50%;min-height:0;display:flex}}.mobile-tabbar{border-bottom:1px solid #333;flex-shrink:0;display:flex}.mobile-tabbar button{text-align:center;background:#161616;border:none;border-bottom:2px solid #0000;border-radius:0;flex:1;padding:.6rem .5rem;font-size:.8rem}.mobile-tabbar button.active{color:#fff;background:#1e1e1e;border-bottom-color:#3d7ab8}.mobile-tab-content{flex:1;min-height:0;padding:.75rem;position:relative;overflow-y:auto}.mobile-tab-content .popup-backdrop{padding:0;display:block;position:static;inset:auto}.mobile-tab-content .popup{width:100%;max-height:none;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;background:#1e1e1e}.panel-host{height:100%}.explorer-bar{background:#181818;border-right:1px solid #2b2b2b;flex-shrink:0;width:240px;overflow-y:auto}.explorer{color:#ccc;-webkit-user-select:none;user-select:none;flex-direction:column;font-size:13px;display:flex}.explorer .icon{flex-shrink:0;display:block}.explorer-title{text-transform:uppercase;letter-spacing:.04em;color:#bbb;height:35px;padding:0 .75rem 0 1.25rem;font-size:11px;line-height:35px}.explorer-section-header{text-transform:uppercase;cursor:pointer;border-top:1px solid #2b2b2b;align-items:center;gap:2px;height:22px;padding:0 .25rem 0 .125rem;font-size:11px;font-weight:700;display:flex}.explorer-section-name{white-space:nowrap;text-overflow:ellipsis;flex:1;overflow:hidden}.explorer-actions,.explorer-row-actions{gap:2px;display:flex}.explorer-actions{visibility:hidden}.explorer:hover .explorer-actions,.explorer-actions:focus-within{visibility:visible}.explorer-actions button,.explorer-row-actions button{color:#ccc;background:0 0;border:none;border-radius:4px;padding:2px;line-height:0}.explorer-actions button:hover:not(:disabled),.explorer-row-actions button:hover:not(:disabled){background:#ffffff1f}.explorer-tree{margin:0;padding:0;list-style:none}.explorer-row{cursor:pointer;border:1px solid #0000;align-items:center;gap:4px;height:22px;padding-right:.5rem;display:flex}.explorer-row:hover{background:#2a2d2e}.explorer-row.active{color:#fff;background:#37373d;border-color:#0078d4}.explorer-row.disabled:not(.active){cursor:default;color:#888}.explorer-chevron-space{flex-shrink:0;width:16px}.explorer-name{white-space:nowrap;text-overflow:ellipsis;flex:1;min-width:0;overflow:hidden}.explorer-row-actions{visibility:hidden}.explorer-row:hover .explorer-row-actions{visibility:visible}.explorer-row.editing{cursor:default;align-items:flex-start;height:auto;min-height:22px}.explorer-row.editing:hover{background:0 0}.explorer-input{flex:1;min-width:0;position:relative}.explorer-input input{box-sizing:border-box;color:#eee;width:100%;height:20px;font:inherit;background:#313131;border:1px solid #0078d4;outline:none;padding:0 4px}.explorer-input input.invalid{border-color:#be1100}.explorer-problem{color:#eee;white-space:normal;background:#5a1d1d;border:1px solid #be1100;border-top:none;padding:2px 4px;font-size:12px}.editor-area{flex-direction:column;flex:1;min-width:0;min-height:0;display:flex}.editor-tabs{background:#181818;border-bottom:1px solid #2b2b2b;flex-shrink:0;height:35px;display:flex}.editor-tab{color:#999;border-right:1px solid #2b2b2b;align-items:center;gap:.5rem;max-width:50%;padding:0 1rem;font-size:13px;display:flex}.editor-tab.active{color:#fff;background:#1a1a1a;border-top:1px solid #0078d4}.editor-tab-name{white-space:nowrap}.editor-tab-folder{color:#888;white-space:nowrap;text-overflow:ellipsis;font-size:12px;overflow:hidden}.icon-toolbar{flex-direction:column;gap:.3rem;display:flex}.icon-group{flex-direction:column;gap:.15rem;display:flex}.icon-group-label{color:#888;text-transform:uppercase;letter-spacing:.05em;font-size:.62rem}.icon-group-buttons{grid-template-columns:repeat(auto-fill,minmax(30px,1fr));gap:2px;display:grid}.icon-button{color:#ddd;cursor:pointer;background:#262626;border:1px solid #333;border-radius:4px;justify-content:center;align-items:center;min-height:30px;padding:4px 0;display:flex}.icon-button:hover:not(:disabled){background:#333;border-color:#555}.icon-button.active{color:#ffc070;background:#5a4520;border-color:#ffa040}.icon-button:disabled{color:#555;cursor:default;background:#1c1c1c;border-color:#262626}.icon-button .icon{display:block}.viewport-prompt{z-index:5;pointer-events:auto;position:absolute;top:0;left:0}.viewport-prompt input{color:#fff;background:#111;border:1px solid #ffa040;border-radius:4px;outline:none;width:7rem;padding:.2rem .35rem;font:12px system-ui,sans-serif;box-shadow:0 2px 10px #0009}.snap-marker{box-sizing:border-box;pointer-events:none;border:2px solid #58e07a;border-radius:50%;width:12px;height:12px}.dialog-list input.formula-input{width:6.5rem;font-family:ui-monospace,monospace}.search-select-box{flex:1;display:flex;position:relative}.search-select-box input{flex:1;min-width:0}.search-select-options{z-index:10;background:#222;border:1px solid #444;border-radius:4px;max-height:12rem;margin:2px 0 0;padding:2px;list-style:none;position:absolute;top:100%;left:0;right:0;overflow-y:auto}.search-select-options li{cursor:pointer;border-radius:3px;padding:.2rem .35rem;font-size:.75rem}.search-select-options li:hover,.search-select-options li.selected{background:#3a3a3a}.structure-panel{margin-top:.6rem}.structure{flex-direction:column;gap:.25rem;display:flex}.structure-group summary{cursor:pointer;color:#aaa;text-transform:uppercase;letter-spacing:.04em;-webkit-user-select:none;user-select:none;font-size:.72rem}.structure-count{color:#666;margin-left:.2rem}.structure-group ul{flex-direction:column;gap:1px;margin:.15rem 0 0;padding:0;list-style:none;display:flex}.structure-group li{background:#1e1e1e;border-radius:3px;align-items:center;gap:.3rem;padding:.12rem .3rem;font-size:.75rem;display:flex}.structure-group li.hidden-item .structure-name{color:#666}.structure-name{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-family:ui-monospace,monospace;overflow:hidden}.structure-eye{color:#aaa;cursor:pointer;background:0 0;border:none;padding:1px 3px;display:flex}.structure-eye:hover:not(:disabled){color:#fff}.toolbar{box-sizing:border-box;background:#141414;border-bottom:1px solid #2c2c2c;flex-shrink:0;align-items:center;gap:.35rem;height:44px;padding:0 .6rem;display:flex}.brand{letter-spacing:.02em;color:#f0f0f0;padding:0 .6rem 0 .2rem;font-size:.95rem;font-weight:700}.toolbar-group{gap:2px;display:flex}.toolbar-divider{background:#2f2f2f;align-self:stretch;width:1px;margin:8px .35rem}.toolbar-spacer{flex:1}.toolbar button{color:#ddd;background:0 0;border:1px solid #0000;border-radius:5px;align-items:center;gap:.35rem;height:30px;padding:0 .6rem;font-size:.8rem;display:inline-flex}.toolbar button:hover:not(:disabled){background:#262626;border-color:#333}.toolbar button.tool-icon{padding:0 .4rem}.toolbar .icon{flex-shrink:0}.operation-tools{gap:2px;display:flex}.op-button.active,.toolbar .op-button.active{color:#ffc070;background:#5a4520;border-color:#ffa040}.stats{color:#777;font-variant-numeric:tabular-nums;white-space:nowrap;padding:0 .4rem;font-size:.75rem}.mode-badge{color:#ffb060;white-space:nowrap;background:#3a2a14;border:1px solid #6a4a1a;border-radius:999px;padding:.15rem .6rem;font-size:.75rem}.dropdown{position:relative}.dropdown-trigger.open{background:#262626;border-color:#333}.dropdown-trigger>.icon:last-child{opacity:.7;width:14px;height:14px}.dropdown-menu{z-index:1100;background:#1d1d1d;border:1px solid #353535;border-radius:7px;min-width:220px;max-height:min(70vh,560px);padding:4px;position:absolute;top:calc(100% + 4px);overflow-y:auto;box-shadow:0 10px 30px #0000008c}.dropdown-menu.left{left:0}.dropdown-menu.right{right:0}.toolbar .dropdown-menu button.dropdown-item,.dropdown-item{color:#e4e4e4;text-align:left;background:0 0;border:none;border-radius:4px;align-items:center;gap:.55rem;width:100%;height:auto;padding:.35rem .5rem;font-size:.8rem;display:flex}.toolbar .dropdown-menu button.dropdown-item:hover:not(:disabled){color:#fff;background:#2d5a8f;border:none}.dropdown-item-icon{color:#aaa;justify-content:center;width:18px;display:inline-flex}.dropdown-item-icon .icon{width:16px;height:16px}.dropdown-item-label{white-space:nowrap;flex:1}.dropdown-item-hint{color:#888;font-size:.7rem}.dropdown-heading{color:#888;text-transform:uppercase;letter-spacing:.06em;padding:.45rem .5rem .2rem;font-size:.65rem}.dropdown-separator{background:#303030;height:1px;margin:4px 2px}.mobile-tab-content .operation-tools{flex-wrap:wrap;gap:.35rem}.mobile-tab-content .op-button{align-items:center;gap:.35rem;display:inline-flex}.parameters{flex-direction:column;gap:2px;display:flex}.parameter-row{border-radius:4px;align-items:center;gap:.4rem;min-height:28px;padding:0 .3rem;font-size:.78rem;display:flex}.parameter-row:hover{background:#232323}.parameter-row.failed .parameter-value,.parameter-row.failed .parameter-name{color:#ff8c8c}.parameter-kind{color:#8aa;justify-content:center;width:20px;display:inline-flex}.parameter-kind .icon{width:16px;height:16px}.parameter-kind input[type=color]{cursor:pointer;background:0 0;border:1px solid #444;border-radius:4px;width:18px;height:18px;padding:0}.parameter-name{text-overflow:ellipsis;white-space:nowrap;color:#e8e8e8;flex:0 auto;min-width:2.5rem;max-width:6.5rem;font-family:ui-monospace,monospace;overflow:hidden}.parameter-formula{color:#eee;background:#111;border:1px solid #2f2f2f;border-radius:4px;flex:1 1 0;width:0;min-width:0;padding:.15rem .35rem;font-family:ui-monospace,monospace;font-size:.75rem}.parameter-formula:focus{border-color:#3d7ab8;outline:none}.parameter-value{color:#9fd39f;white-space:nowrap;margin-left:auto;font-family:ui-monospace,monospace;font-size:.75rem}.parameter-add{gap:.35rem;padding-top:.3rem;display:flex}button.icon-only{color:#888;background:0 0;border:1px solid #0000;justify-content:center;align-items:center;padding:2px;font-size:.75rem;line-height:1;display:inline-flex}button.icon-only:hover:not(:disabled){color:#fff;background:#2a2a2a;border-color:#3a3a3a}button.icon-only .icon{width:15px;height:15px}button.danger{color:#ff9a9a;background:#2a1a1a;border-color:#5a2a2a}button.danger:hover:not(:disabled){background:#3a1e1e}.modal-backdrop{z-index:2000;background:#0000008c;justify-content:center;align-items:center;padding:1rem;display:flex;position:fixed;inset:0}.modal{box-sizing:border-box;background:#1c1c1c;border:1px solid #353535;border-radius:9px;flex-direction:column;gap:.6rem;width:min(560px,100%);max-height:100%;padding:.9rem 1rem;display:flex;overflow:auto;box-shadow:0 16px 50px #0009}.modal-head{color:#9ab;align-items:center;gap:.5rem;display:flex}.modal-head h2{color:#eee;flex:1;margin:0;font-size:.95rem}.modal-field{align-items:center;gap:.5rem;font-size:.8rem;display:flex}.modal-field>span:first-child{color:#999;width:3.5rem}.modal input[type=text]{color:#eee;background:#111;border:1px solid #333;border-radius:4px;min-width:0;padding:.25rem .4rem;font-size:.8rem}.modal-field input[type=text]{flex:1}.modal input.formula{font-family:ui-monospace,monospace}.modal code{background:#262626;border-radius:3px;padding:0 .25rem}.modal-actions{justify-content:space-between;padding-top:.3rem;display:flex}.table-editor{flex-direction:column;align-items:flex-start;gap:.4rem;max-width:100%;display:flex;overflow-x:auto}.table-editor table{border-collapse:separate;border-spacing:2px}.table-editor th{color:#888;text-align:left;padding:0 2px;font-size:.7rem;font-weight:500}.table-editor td input[type=text],.table-editor th input[type=text]{width:5.5rem}.table-editor td.table-built{text-align:center}.table-editor tr.selected td input[type=text]{background:#142014;border-color:#3d6a3d}.table-column{align-items:center;gap:2px;display:inline-flex}.modal-head h2{text-transform:none;letter-spacing:normal}.modal .hint{color:#999;margin:0;font-size:.75rem;line-height:1.45}.parameter-add{margin-bottom:.5rem}
