@font-face{font-family:Manrope;src:url('./manrope-latin.woff2') format('woff2');font-weight:200 800;font-display:swap}@font-face{font-family:Manrope;src:url('./manrope-cyrillic.woff2') format('woff2');font-weight:200 800;font-display:swap;unicode-range:U+0400-052F}
:root{font-family:Manrope,Arial,sans-serif;color:#f1f0eb;background:#111;--line:#383838;--muted:#a3a3a3;--paper:#f1f0eb;--panel:#191919f5;color-scheme:dark}*{box-sizing:border-box}[hidden]{display:none!important}html,body{margin:0;width:100%;height:100%;overflow:hidden;overscroll-behavior:none}button,a,input{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{font:inherit;color:inherit;cursor:pointer}button:disabled{opacity:.35;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid #fff;outline-offset:4px}button,a{transition:background .15s,color .15s}#app{position:fixed;inset:0;width:100%;height:100%;height:100dvh;overflow:hidden;background:#252525}#scene{position:absolute;inset:0}canvas{display:block;width:100%;height:100%;touch-action:none}header{position:absolute;left:24px;right:24px;top:max(20px,env(safe-area-inset-top));display:flex;align-items:center;gap:24px;pointer-events:none}.wordmark{font-size:30px;font-weight:750;letter-spacing:-2.3px;text-decoration:none;color:var(--paper);white-space:nowrap;pointer-events:auto}.wordmark span{font-weight:450}.wordmark i{display:inline-block;width:4px;height:4px;background:var(--paper);margin-left:6px}.heading{border-left:1px solid #555;padding-left:22px;max-width:calc(100% - 155px)}.eyebrow{font-size:10px;letter-spacing:2px;color:var(--muted);font-weight:650}h1{font-size:14px;font-weight:500;margin:5px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#menu{margin-left:auto;pointer-events:auto}.icon-button{border:1px solid var(--line);background:var(--panel);width:44px;height:44px;border-radius:4px;font-size:23px;flex-shrink:0}.icon-button:hover,button:hover:not(:disabled){background:#3a3a3a}.welcome{position:absolute;left:max(9vw,24px);top:50%;transform:translateY(-48%);max-width:500px}.welcome h2{font-size:clamp(48px,7vw,94px);line-height:1.05;letter-spacing:-5px;font-weight:500;margin:24px 0}.welcome p{font-size:16px;line-height:1.7;color:#b5b5b5}.primary{display:flex;justify-content:space-between;gap:55px;align-items:center;background:var(--paper);color:#111;border:0;padding:17px 21px;border-radius:2px;font-size:14px;font-weight:650;margin:28px 0 18px}.primary:hover{background:#d7d6cf!important}.primary span{font-size:21px}.welcome small{font-size:11px;color:#929292;line-height:1.8;display:block}.toolbar{position:absolute;left:24px;bottom:max(56px,calc(env(safe-area-inset-bottom) + 42px));display:flex;border:1px solid #454545;border-radius:6px;background:var(--panel);padding:5px;gap:3px}.toolbar button{border:0;background:transparent;border-radius:3px;min-width:76px;height:60px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px}.glyph{font-size:24px;line-height:27px}.tool-label{font-size:10px;letter-spacing:.2px}.toolbar button[aria-expanded=true]{background:var(--paper);color:#111}.panel{position:absolute;right:24px;top:88px;width:300px;max-height:calc(100dvh - 140px);overflow:auto;background:var(--panel);border:1px solid #454545;padding:16px;border-radius:6px;box-shadow:0 12px 45px #0004;z-index:5}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.panel-heading h2{font-size:14px;font-weight:600;margin:0}.panel-heading .icon-button{width:36px;height:36px;font-size:22px}.panel>button,.panel>a{display:flex;justify-content:space-between;align-items:center;width:100%;min-height:44px;padding:10px 0;border:0;border-top:1px solid var(--line);background:transparent;color:var(--paper);font-size:12px;text-decoration:none;text-align:left}.panel p{font-size:12px;line-height:1.7;color:#bbb}.panel .gesture-hint{font-size:11px;color:#999;margin:16px 0 0}.switch-line{display:flex;align-items:center;justify-content:space-between;font-size:12px;margin:12px 0 20px}.switch-line input{width:22px;height:22px;accent-color:var(--paper)}.axes{display:grid;grid-template-columns:1fr 1fr 1fr;border:1px solid var(--line);border-radius:3px;overflow:hidden}.axes button{border:0;background:transparent;height:40px;font-size:12px}.axes button[aria-pressed=true]{background:var(--paper);color:#111}.range-title{display:flex;justify-content:space-between;font-size:12px;color:#bbb;margin-top:22px}#cut-position{width:100%;height:44px;accent-color:#eee;margin:0 0 12px}.restore,.exit-fullscreen{position:absolute;z-index:10;background:#191919e8;color:#eee;border:1px solid #555;border-radius:5px;height:44px;min-width:44px;top:max(12px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right));font-size:20px}.exit-fullscreen{right:68px;font-size:20px;padding:0 12px}.exit-fullscreen span{font-size:11px;margin-left:6px}.ui-hidden .chrome{display:none!important}footer{position:absolute;left:24px;right:24px;bottom:max(16px,env(safe-area-inset-bottom));display:flex;justify-content:space-between;gap:20px;font-size:10px;color:#aaa;pointer-events:none}#status{max-width:75%;overflow-wrap:anywhere}#stats{white-space:nowrap}#drop-zone{position:absolute;inset:12px;border:2px dashed #ddd;background:#111e;z-index:20;display:grid;place-items:center;font-size:20px;text-align:center;padding:20px}
@media(max-width:700px){header{left:14px;right:14px;top:max(12px,env(safe-area-inset-top));gap:14px}.wordmark{font-size:25px;letter-spacing:-1.8px}.heading{padding-left:13px;max-width:calc(100% - 130px)}h1{font-size:11px;max-width:40vw}.eyebrow{font-size:8px;letter-spacing:1.5px}.icon-button{width:44px;height:44px}.toolbar{left:50%;transform:translateX(-50%);bottom:max(32px,calc(env(safe-area-inset-bottom) + 22px));padding:3px;gap:2px}.toolbar button{min-width:52px;width:52px;height:46px}.tool-label{display:none}.glyph{font-size:23px}.panel{top:auto;bottom:max(90px,calc(env(safe-area-inset-bottom) + 80px));left:12px;right:12px;width:auto;max-height:calc(100dvh - 170px);padding:14px}.panel-heading{margin-bottom:10px}.panel .gesture-hint{margin-top:10px}.welcome{left:24px;right:24px;top:47%;max-width:none}.welcome h2{font-size:58px;letter-spacing:-3px;margin:16px 0}.welcome p{font-size:13px}.welcome small{font-size:10px}.primary{margin:20px 0 12px;padding:14px 18px}.welcome~.toolbar{z-index:2}footer{left:14px;right:14px;bottom:max(8px,env(safe-area-inset-bottom));font-size:9px}#stats{display:none}#status{max-width:100%}.exit-fullscreen span{display:none}}
@media(max-height:500px){.welcome h2{font-size:40px;margin:10px 0}.welcome p{margin:8px 0}.welcome small{display:none}.welcome .primary{margin:12px 0}.welcome{top:48%;left:90px}.panel{top:70px;bottom:12px;left:auto;right:12px;width:280px;max-height:calc(100dvh - 82px)}.toolbar{left:12px;bottom:35px;transform:none}.toolbar button{min-width:44px;width:44px}.heading h1{max-width:45vw}}

.cut-coordinate{font-size:11px;color:#bbb;margin:-6px 0 14px}.cancel-pick{position:absolute;top:90px;left:50%;transform:translateX(-50%);z-index:15;border:1px solid #ccc;background:#191919ee;padding:12px 16px;min-height:44px;border-radius:4px;white-space:nowrap;font-size:12px}@media(max-width:700px){#section-panel{top:max(76px,calc(env(safe-area-inset-top) + 64px));bottom:auto}#section-panel .gesture-hint{display:none}#section-panel .switch-line{margin:6px 0 10px}#section-panel .range-title{margin-top:10px}#section-panel .panel-heading{margin-bottom:0}#section-panel .axes button{font-size:11px}#section-panel #cut-position{margin-bottom:0}}

.immersive:not(.ui-hidden) #restore-ui{top:auto;bottom:max(50px,calc(env(safe-area-inset-bottom) + 35px))}@media(orientation:landscape) and (max-height:500px){header{left:max(14px,env(safe-area-inset-left));right:max(14px,env(safe-area-inset-right))}#section-panel{top:70px;bottom:12px;right:max(12px,env(safe-area-inset-right));left:auto;width:280px;max-height:calc(100dvh - 82px)}.toolbar{left:max(12px,env(safe-area-inset-left));bottom:max(24px,env(safe-area-inset-bottom))}footer{left:max(14px,env(safe-area-inset-left));right:max(14px,env(safe-area-inset-right))}}

#section-panel{width:254px;padding:10px;max-height:calc(100dvh - 104px)}#section-panel .panel-heading{margin:0 0 8px;gap:8px}#section-panel .panel-heading h2{font-size:12px;margin-right:auto}#section-panel .icon-button{width:30px;height:30px;min-width:30px}#section-panel .axes button{height:32px;font-size:13px}#section-panel .range-title{font-size:10px;margin-top:10px;gap:10px}#section-panel #cut-position{height:32px;margin:0}#section-panel .cut-coordinate{margin:0}.cut-switch{display:flex;align-items:center;gap:4px;font-size:10px;color:#bbb}.cut-switch input{width:18px;height:18px;accent-color:#eee}.gizmo-modes{display:flex;gap:3px;margin-top:7px}.gizmo-modes button{flex:1;min-height:32px;font-size:10px;border:1px solid #444;background:transparent;border-radius:3px;padding:4px}.gizmo-modes #cut-flip{flex:0 0 32px;font-size:18px}.gizmo-modes button[aria-pressed=true]{background:#eee;color:#111}.axis-x{color:#fa6666}.axis-y{color:#54c47b}.axis-z{color:#67a8ff}.axes button[aria-pressed=true] b{color:#111}@media(max-width:700px){#section-panel{left:auto;right:12px;top:max(72px,calc(env(safe-area-inset-top) + 62px));bottom:auto;width:238px;padding:9px}}@media(orientation:landscape) and (max-height:500px){#section-panel{top:65px;bottom:auto;width:238px;max-height:calc(100dvh - 84px)}}

#section-panel .axes{grid-template-columns:1fr 1fr 1fr 1.65fr}#section-panel #cut-pick{font-size:10px}

.compact-panel{width:270px;padding:12px}.compact-panel .panel-heading{margin-bottom:8px}.compact-panel .panel-heading h2{font-size:12px}.compact-panel .icon-button{width:32px;height:32px}.appearance-tabs{display:flex;border:1px solid #444;border-radius:3px;margin-bottom:10px}.appearance-tabs button{width:50%;height:32px;background:transparent;border:0;font-size:11px}.appearance-tabs button[aria-pressed=true]{background:#eee;color:#111}.compact-panel .range-title{font-size:10px;margin:8px 0 0}.compact-panel input[type=range]{width:100%;height:28px;margin:0;accent-color:#eee}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;margin:9px 0}.setting-row select{background:#292929;border:1px solid #555;border-radius:3px;font:inherit;color:#eee;max-width:155px;padding:6px}.setting-row input{accent-color:#eee}.small-action{display:block;width:100%;min-height:34px;border:0;border-top:1px solid #444;background:transparent;text-align:left;font-size:10px;padding:7px 0}.setting-note{font-size:10px;color:#aaa;margin:8px 0;overflow-wrap:anywhere}.compact-panel [disabled]{opacity:.35}.toolbar #pivot{font-size:22px}@media(max-width:700px){#appearance-panel{left:auto;right:12px;width:248px;top:max(72px,calc(env(safe-area-inset-top) + 62px));bottom:auto;max-height:calc(100dvh - 160px)}}@media(orientation:landscape) and (max-height:500px){#appearance-panel{top:65px;right:12px;left:auto;bottom:auto;width:248px;max-height:calc(100dvh - 80px)}}

.compact-panel .light-control{display:grid;grid-template-columns:110px 1fr;gap:8px;align-items:center;min-height:36px}.compact-panel .light-control .range-title{display:block;margin:0;font-size:10px}.light-control output{float:right;color:#999}.compact-panel .light-control input[type=range]{height:28px}.compact-panel .setting-row{margin:5px 0}.compact-panel .setting-row select{padding:4px}.compact-panel .small-action{min-height:30px}.compact-panel .panel-heading{margin-bottom:6px}.compact-panel .appearance-tabs{margin-bottom:6px}

#models-panel{width:min(420px,calc(100% - 24px));max-height:calc(100dvh - 180px);overflow-y:auto}.model-row{border-bottom:1px solid #ffffff24;padding:12px 0}.model-row label{display:flex;gap:10px;align-items:flex-start;cursor:pointer}.model-row input{margin-top:4px;flex-shrink:0}.model-row strong,.model-row small{display:block;overflow-wrap:anywhere}.model-row small{font-size:11px;color:#bbb;line-height:1.5;margin-top:4px}.model-actions{display:flex;gap:16px;padding-left:24px}.panel .model-actions button,.panel .model-actions a{font-size:12px;width:auto;padding:8px 0;min-height:36px;color:#ddd}.model-actions a{border:0;text-decoration:none}
