:root{--bg:#111214;--panel:#1b1d21;--panel2:#24272c;--text:#e8e8ea;--muted:#8b8f98;--accent:#39d0d6;--accent2:#1fa3a8;--sheet-h:44vh;--safe-b:env(safe-area-inset-bottom,0px);--safe-t:env(safe-area-inset-top,0px)}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{background:var(--bg);height:100%;color:var(--text);overscroll-behavior:none;margin:0;font:15px/1.3 system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Noto Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;overflow:hidden}#app{flex-direction:column;display:flex;position:fixed;top:0;bottom:0;left:0;right:0}#stage{flex:auto;min-height:0;position:relative}#gl{touch-action:none;width:100%;height:100%;display:block;position:absolute;top:0;bottom:0;left:0;right:0}#loading{background:var(--bg);z-index:5;color:var(--muted);flex-direction:column;justify-content:center;align-items:center;gap:14px;transition:opacity .3s;display:flex;position:absolute;top:0;bottom:0;left:0;right:0}#loading.hidden{opacity:0;pointer-events:none}.spinner{border:3px solid #333;border-top-color:var(--accent);border-radius:50%;width:34px;height:34px;animation:1s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}#topbar{top:calc(8px + var(--safe-t));z-index:3;align-items:center;gap:8px;display:flex;position:absolute;left:8px;right:8px}.views{flex:1;justify-content:center;gap:6px;display:flex}.heads{gap:2px;display:flex}.heads .chip{text-align:center;min-width:36px;padding:7px 10px;font-weight:600}.heads .chip:first-child{border-radius:999px 4px 4px 999px}.heads .chip:last-child{border-radius:4px 999px 999px 4px}button{font:inherit;color:var(--text);background:var(--panel2);cursor:pointer;border:0;border-radius:10px;padding:9px 14px}button:active{filter:brightness(1.2)}button.icon{background:#24272cd9;border-radius:50%;width:40px;height:40px;padding:0;font-size:18px}.chip{letter-spacing:.02em;white-space:nowrap;background:#24272cd9;border-radius:999px;padding:7px 12px;font-size:13px}.chip.active{background:var(--accent);color:#0a0a0a;font-weight:600}#sheet{height:var(--sheet-h);background:var(--panel);padding-bottom:var(--safe-b);border-radius:18px 18px 0 0;flex-direction:column;flex:none;display:flex;box-shadow:0 -4px 24px #0006}#sheet-handle{background:#3a3d44;border-radius:2px;flex:none;width:40px;height:4px;margin:8px auto 6px}#groups{scrollbar-width:none;flex:none;gap:6px;padding:4px 12px 10px;display:flex;overflow-x:auto}#groups::-webkit-scrollbar{display:none}#sliders{flex:auto;padding:0 16px 16px;overflow-y:auto}.slider{padding:6px 0 4px}.slider .head{letter-spacing:.04em;color:var(--muted);justify-content:space-between;margin-bottom:2px;font-size:12px;display:flex}.slider .head .val{color:var(--accent);font-variant-numeric:tabular-nums}.slider .track{align-items:center;height:36px;display:flex;position:relative}.slider .track:before{content:"";background:#3a3d44;width:1px;position:absolute;top:8px;bottom:8px;left:50%}input[type=range]{-webkit-appearance:none;appearance:none;touch-action:pan-y;background:0 0;width:100%;height:36px;margin:0}input[type=range]::-webkit-slider-runnable-track{background:#3a3d44;border-radius:2px;height:4px}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;background:var(--accent);border-radius:50%;width:26px;height:26px;margin-top:-11px;box-shadow:0 2px 6px #00000080}input[type=range]::-moz-range-track{background:#3a3d44;border-radius:2px;height:4px}input[type=range]::-moz-range-thumb{background:var(--accent);border:0;border-radius:50%;width:26px;height:26px}.steps{flex-wrap:wrap;gap:6px;display:flex}.steps button{border-radius:8px;padding:8px 12px;font-size:13px}.steps button.active{background:var(--accent);color:#0a0a0a}.steps button .sw{vertical-align:-2px;border:1px solid #ffffff40;border-radius:50%;width:14px;height:14px;margin-right:7px;display:inline-block}#menu{z-index:20;padding-top:var(--safe-t);background:#111214f5;flex-direction:column;display:flex;position:fixed;top:0;bottom:0;left:0;right:0}#menu.hidden{display:none}.menu-head{justify-content:space-between;align-items:center;padding:12px 16px;font-size:18px;font-weight:600;display:flex}.menu-body{flex-direction:column;gap:10px;padding:0 16px 24px;display:flex;overflow-y:auto}.menu-body button,.menu-body label.file{text-align:left;background:var(--panel2);border-radius:10px;width:100%;padding:12px 14px;display:block}.menu-body label.file input{display:none}.menu-body .row{align-items:center;gap:10px;padding:8px 4px;display:flex}.menu-body hr{border:0;border-top:1px solid #2c2f35;margin:6px 0}.menu-title{color:var(--muted);letter-spacing:.06em;text-transform:uppercase;font-size:12px}#saved{flex-direction:column;gap:6px;display:flex}#saved .item{gap:6px;display:flex}#saved .item button:first-child{flex:1}#saved .item button.del{text-align:center;width:44px;padding:12px 0}@media (min-width:900px){#app{flex-direction:row}#sheet{border-radius:0;width:380px;height:auto}}
