:root{color-scheme:dark;--bg:#171b23;--panel:#222833;--line:#343d4c;--text:#e5eaf2;--muted:#9ba9bd;--accent:#e9a34d;--blue:#416baf}*{box-sizing:border-box}html,body{margin:0;height:100%;overflow:hidden;font:14px system-ui,sans-serif;background:var(--bg);color:var(--text)}body{display:flex;flex-direction:column;height:100dvh}button,input,select{font:inherit;color:inherit}button{border:1px solid var(--line);border-radius:6px;background:#303846;min-height:39px;padding:6px 11px;cursor:pointer;white-space:nowrap;touch-action:manipulation}button:hover{background:#3b475a}button.active,button.accent{background:#3d6297;border-color:#6589bd}button:disabled{opacity:.4;cursor:not-allowed}header{height:54px;display:flex;align-items:center;gap:6px;padding:6px 9px;background:#202631;border-bottom:1px solid var(--line);z-index:3}.brand{font-size:15px;font-weight:700;white-space:nowrap;margin-right:8px}.brand b{color:var(--accent);font-size:22px;vertical-align:middle}.brand span{font-weight:400}.brand small{font-size:9px;color:var(--muted);margin-left:5px}.spacer{flex:1}main{display:flex;min-height:0;flex:1;position:relative}.tools{display:flex;flex-direction:column;gap:5px;padding:6px;width:67px;background:#202631;border-right:1px solid var(--line);overflow:auto;flex-shrink:0}.tools button{font-size:22px;line-height:22px;min-height:49px;padding:4px}.tools small{display:block;font-size:10px;line-height:14px}.tools hr{width:100%;border:0;border-top:1px solid var(--line);margin:1px 0}#work{position:relative;min-width:0;flex:1;overflow:hidden}#viewport{position:absolute;inset:0;touch-action:none}canvas{display:block;touch-action:none;width:100%;height:100%}#side{width:265px;background:var(--panel);border-left:1px solid var(--line);overflow:auto;flex-shrink:0}.sect{padding:12px;border-bottom:1px solid var(--line)}.heading{font-weight:700;font-size:11px;letter-spacing:1.3px;color:var(--muted);margin-bottom:10px;display:flex;justify-content:space-between}.row{display:flex;gap:6px;margin-top:8px}.row button{flex:1}.objrow{display:flex;align-items:center;gap:6px;width:100%;border:0;text-align:left;background:transparent;min-height:36px;padding:5px 7px}.objrow span{overflow:hidden;text-overflow:ellipsis;flex:1}.objrow.active{background:#3b567e}.objrow i{width:11px;height:11px;border-radius:3px;flex-shrink:0}label{display:flex;gap:8px;align-items:center;justify-content:space-between;margin:8px 0;font-size:12px;color:var(--muted)}input,select{min-width:0;background:#171d27;border:1px solid #3b4658;border-radius:5px;padding:8px;max-width:100%;outline:none}input:focus,select:focus{border-color:#74a2e1}input[type=color]{width:45px;height:32px;padding:3px}input[type=checkbox]{accent-color:#6c9ee0;width:19px;height:19px}#objName{width:150px}.triplet{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin-bottom:12px}.triplet label{display:block;margin:0;font-size:10px}.triplet input{width:100%;margin-top:3px;padding:7px 4px;font-size:13px}.axis-x{color:#ec7777}.axis-y{color:#70ce91}.axis-z{color:#7ca7f7}.subhead{color:var(--muted);font-size:11px;margin:7px 0}#dimensions{font-size:11px;color:var(--muted)}.views{position:absolute;right:8px;top:8px;display:flex;flex-direction:column;gap:4px;z-index:1}.views button{min-height:32px;font-size:11px;padding:4px 8px;background:#262e3bdf}.views button.active{background:#416baf}.hint,#viewlabel{position:absolute;left:10px;color:#c1cad8;font-size:11px;pointer-events:none;text-shadow:0 1px 3px black}.hint{bottom:10px}#viewlabel{top:10px}#meshbar:not([hidden]){position:absolute;top:32px;left:8px;right:75px;display:flex;flex-wrap:wrap;gap:4px;pointer-events:none;z-index:2}#meshbar button{pointer-events:auto;min-height:35px;font-size:12px;background:#303846ef}#meshbar button.active{background:#416baf}.seg{display:flex;gap:3px}#toast{position:absolute;bottom:40px;left:50%;transform:translateX(-50%);background:#182230f5;border:1px solid #526984;border-radius:8px;padding:10px 15px;max-width:88%;text-align:center;opacity:0;pointer-events:none;transition:opacity .15s;z-index:3}#toast.show{opacity:1}footer{display:flex;gap:12px;align-items:center;min-height:26px;padding:4px 9px;background:#202631;border-top:1px solid var(--line);font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden}#overlay:not([hidden]){position:fixed;inset:0;background:#0009;display:flex;align-items:center;justify-content:center;padding:15px;z-index:10}.dialog{width:min(480px,100%);max-height:90dvh;overflow:auto;border:1px solid #465367;background:#232b38;border-radius:12px;padding:15px;box-shadow:0 20px 70px #0008}.dialoghead{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.dialoghead button{min-height:32px}.dialog p{font-size:13px;color:#b9c5d5;line-height:1.5}.menugrid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.menugrid button{min-height:46px;text-align:left}.dialog input[type=number]{width:120px}.dialog .primary{background:#416baf;width:100%;margin-top:12px}.dialog .note{color:#e9ae6d}#fatal:not([hidden]){position:fixed;inset:65px 20px auto;background:#643d37;padding:20px;z-index:30;border-radius:8px}body.hide-side #side{display:none}@media(max-width:900px){#side{width:220px}.brand span,.brand small{display:none}.tools{width:58px}}@media(max-width:650px){header{gap:3px;padding:4px}.brand{font-size:11px;margin-right:2px}header button{padding:5px 7px;font-size:12px}.tools{width:49px;padding:4px}.tools button{min-height:44px;font-size:19px}#side{position:absolute;right:0;top:0;bottom:0;width:min(245px,75vw);z-index:4;box-shadow:-10px 0 25px #0006}#meshbar button{padding:5px 7px;font-size:11px}.views{right:4px}.views button{min-height:30px}.hint{max-width:70%}footer{font-size:9px;gap:5px}}
.dim-note{font-size:11px;line-height:1.4;margin:5px 0;color:var(--muted)}#dimensions .subhead{font-weight:700;color:var(--text);margin-top:12px}#settingsWindow[hidden]{display:none}#settingsWindow{position:fixed;inset:0;background:#0009;display:grid;place-items:center;padding:16px;z-index:40}.settings-card{width:min(490px,100%);max-height:92dvh;overflow:auto;background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:18px;box-shadow:0 20px 70px #0006}.settings-card h2{font-size:19px;margin:0}.settings-card h3{font-size:13px;margin:0 0 8px}.settings-card p{font-size:12px;line-height:1.5;color:var(--muted);margin:7px 0 12px}.settings-section{border-top:1px solid var(--line);padding:15px 0 4px}.settings-card button{min-height:44px}.settings-card select{min-height:40px}.offline-state{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;margin:8px 0}.offline-state i{width:9px;height:9px;border-radius:50%;background:#db9c44}.offline-state[data-state=ready] i{background:#47b881}.offline-state[data-state=error] i{background:#e46d6d}#offlineFooter{overflow:hidden;text-overflow:ellipsis}html[data-theme=light]{color-scheme:light;--bg:#e4eaf1;--panel:#f5f7fa;--line:#c7d0dc;--text:#243246;--muted:#52647b;--accent:#b86c16;--blue:#416baf}html[data-theme=light] header,html[data-theme=light] .tools,html[data-theme=light] footer{background:#e2e8ef}html[data-theme=light] button{background:#f4f7fb}html[data-theme=light] button:hover{background:#dae5f2}html[data-theme=light] button.active,html[data-theme=light] button.accent,html[data-theme=light] .dialog .primary{background:#416baf;color:#fff;border-color:#416baf}html[data-theme=light] input,html[data-theme=light] select{background:#fff;border-color:#bcc8d7}html[data-theme=light] .dialog{background:#f5f7fa;border-color:#c7d0dc}html[data-theme=light] .dialog p{color:var(--muted)}html[data-theme=light] .views button,html[data-theme=light] #meshbar button{background:#edf2f9ed;color:#25374c}html[data-theme=light] .views button.active,html[data-theme=light] #meshbar button.active{background:#416baf;color:#fff}html[data-theme=light] .objrow.active{background:#d4e3f8}html[data-theme=light] #viewlabel,html[data-theme=light] .hint{color:#29394d;text-shadow:0 1px 3px #fff}html[data-theme=light] #toast{color:#fff}html[data-theme=light] .axis-x{color:#ad4141}html[data-theme=light] .axis-y{color:#24713e}html[data-theme=light] .axis-z{color:#345ea6}@media(max-width:650px){#offlineFooter{max-width:80px}.brand{max-width:62px;overflow:hidden}.settings-card{padding:14px}}
