:root{color-scheme:dark}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;background:#202020;color:#dedede;font-size:12px}body{min-height:100dvh;display:flex;flex-direction:column;overflow:hidden}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}[hidden]{display:none!important}a{color:#82ceff}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #82ceff;outline-offset:2px}.muted{color:#a9a9a9}.tiny{font-size:10px}.blue{color:#82ceff}.good{color:#75c9a6}.bad{color:#e09090}.topbar{flex:0 0 54px;min-width:0;background:#1a1a1a;border-bottom:1px solid #424242;padding:0 18px;display:flex;align-items:center;justify-content:space-between;gap:10px}.brand{display:flex;align-items:center;gap:10px;min-width:0}.brand img{width:31px;height:31px;object-fit:contain}.brand strong{font-size:14px;white-space:nowrap}.brand strong em{font-style:normal;color:#82ceff;font-size:10px}.tagline{font-size:10px;color:#858585;border-left:1px solid #484848;padding-left:12px;white-space:nowrap}.topactions{display:flex;align-items:center;gap:8px}.btn{border:1px solid #595959;border-radius:4px;background:#414141;color:#ededed;padding:8px 12px;line-height:1.25}.btn:hover{background:#515151}.btn.primary{background:#347dab;border-color:#4b98c9;color:white;font-weight:700}.btn.primary:hover{background:#3f96c5}.btn.ghost{border-color:#424242;background:#303030}.btn.small{padding:7px 9px;font-size:11px}.btn.block{width:100%}.app-foot{flex:0 0 31px;min-width:0;background:#1a1a1a;border-top:1px solid #424242;display:flex;align-items:center;justify-content:center;gap:5px;color:#888;font-size:10px}.app-foot button{border:0;background:none;color:#82ceff;font-size:inherit;cursor:pointer;padding:3px}.app-foot a{text-decoration:none}.content{flex:1;min-height:0;min-width:0;display:flex;flex-direction:column}.start,.processing{flex:1;min-height:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:18px;padding:20px;overflow:auto}.overline{color:#82ceff;font-size:10px;font-weight:800;letter-spacing:.12em}.hero{text-align:center}.hero h1{margin:10px 0 5px;font-size:38px;letter-spacing:-.05em}.hero p{font-size:15px;color:#aaa;margin:0}.drop{width:min(710px,100%);min-height:278px;background:#292929;border:2px dashed #606060;border-radius:6px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px;color:#eee}.drop:hover,.drop.drag{background:#263e4d;border-color:#82ceff}.drop-symbol{width:70px;height:70px;border-radius:5px;border:1px solid #648da9;background:#263e4d;display:grid;place-items:center;color:#82ceff;font-size:42px}.drop strong{font-size:20px}.drop small{color:#999;text-align:center;padding:0 14px}.processing-card{width:min(600px,100%);border:1px solid #484848;background:#292929;border-radius:6px;padding:29px}.processing-card h2{font-size:25px;margin:10px 0}.progressbar{width:100%;height:8px;border-radius:5px;background:#484848;overflow:hidden;margin:16px 0 9px}.progressbar>div{height:100%;background:#82ceff;width:0;transition:width .2s}.processing-number{display:flex;align-items:center;justify-content:space-between;gap:8px}.workspace{flex:1;min-height:0;display:grid;grid-template-columns:252px minmax(290px,1fr) 278px;grid-template-rows:minmax(0,1fr);overflow:hidden}.side{display:flex;flex-direction:column;min-width:0;min-height:0;background:#292929}.side.left{border-right:1px solid #424242}.side.right{border-left:1px solid #424242}.panel-head{flex:0 0 auto;min-height:62px;border-bottom:1px solid #424242;padding:10px 12px;display:flex;align-items:center;justify-content:space-between;gap:6px}.panel-head h2{font-size:13px;margin:3px 0 0}.panel-head .overline{font-size:9px}.panel-controls{flex:0 0 auto;display:flex;padding:10px;gap:7px;flex-wrap:wrap;border-bottom:1px solid #424242}.file-list{flex:1 1 0;min-height:0;max-height:100%;overflow-y:auto;overscroll-behavior:contain;padding:10px;display:flex;flex-direction:column;gap:6px;scrollbar-color:#626262 #303030;scrollbar-width:thin}.file-item{border:1px solid #464646;border-radius:4px;background:#333;color:#ddd;padding:8px;display:flex;align-items:center;gap:8px;text-align:left;width:100%;min-height:65px;flex:0 0 auto}.file-item:hover{background:#414141}.file-item.active{background:#263e4d;border-color:#82ceff}.thumb{width:58px;height:49px;flex-shrink:0;border:1px solid #606060;border-radius:3px;overflow:hidden;display:grid;place-items:center;background-color:#444;background-image:linear-gradient(45deg,#515151 25%,transparent 25%,transparent 75%,#515151 75%),linear-gradient(45deg,#515151 25%,transparent 25%,transparent 75%,#515151 75%);background-size:12px 12px;background-position:0 0,6px 6px}.thumb img{max-width:100%;max-height:100%;object-fit:contain}.file-meta{min-width:0;display:flex;flex-direction:column;gap:5px;flex:1}.file-name{font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.file-status{color:#aaa;font-size:10px}.side-foot{flex:0 0 auto;border-top:1px solid #424242;padding:11px;display:grid;gap:8px}.stage{background:#242424;display:flex;flex-direction:column;min-height:0;min-width:0;position:relative}.stage-head{flex:0 0 54px;padding:10px 12px;border-bottom:1px solid #424242;display:flex;justify-content:space-between;align-items:center;gap:12px}.stage-tabs{display:flex;gap:3px}.tab{background:none;border:none;color:#a9a9a9;padding:9px 11px;border-bottom:2px solid transparent;font-weight:700}.tab.active{color:#82ceff;border-color:#82ceff}.stage-body{flex:1;min-height:0;position:relative;overflow:hidden;touch-action:none;cursor:grab;background-color:#3d3d3d;background-image:linear-gradient(45deg,#484848 25%,transparent 25%,transparent 75%,#484848 75%),linear-gradient(45deg,#484848 25%,transparent 25%,transparent 75%,#484848 75%);background-size:24px 24px;background-position:0 0,12px 12px}.stage-body.dragging{cursor:grabbing}.stage-body canvas{position:absolute;top:0;left:0;transform-origin:0 0;max-width:none;max-height:none;pointer-events:none}.stage-empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#969696;font-size:13px;text-align:center;padding:20px;pointer-events:none}.zoom-bubble{position:absolute;right:10px;bottom:10px;border-radius:3px;background:#181818dc;padding:5px 8px;color:#82ceff;pointer-events:none}.stage-bottom{flex:0 0 36px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 11px;border-top:1px solid #424242;font-size:10px;min-width:0}.ellipsis{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.inspector{flex:1 1 0;min-height:0;overflow-y:auto;padding:14px 12px}.inspector h3{font-size:10px;letter-spacing:.07em;margin:20px 0 12px;border-top:1px solid #454545;padding-top:14px}.inspector h3:first-child{border:0;padding-top:0;margin-top:4px}.inspector label{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;color:#bdbdbd;margin:13px 0 6px}.inspector input[type=range]{width:100%;accent-color:#82ceff}.inspector output{color:#82ceff}.inspector p{font-size:11px;color:#959595;line-height:1.55}.field{width:100%;background:#363636;border:1px solid #5b5b5b;border-radius:4px;padding:9px;color:#dedede}.inspector .dim{font-size:10px;line-height:1.6;color:#aaa;overflow-wrap:anywhere}.toast{position:fixed;bottom:46px;left:50%;transform:translateX(-50%);background:#263e4d;border:1px solid #82ceff;padding:11px 16px;border-radius:4px;z-index:300;max-width:min(90vw,560px)}.overlay{position:fixed;inset:0;background:#090b0de3;z-index:150;display:flex;align-items:center;justify-content:center;padding:15px}.dialog{width:min(650px,100%);max-height:min(91dvh,850px);overflow:hidden;display:flex;flex-direction:column;background:#292929;border:1px solid #505050;border-radius:7px;box-shadow:0 22px 80px #0009}.dialog.narrow{width:min(485px,100%)}.dialog-head{padding:17px 21px;flex:0 0 auto;border-bottom:1px solid #444;display:flex;align-items:center;justify-content:space-between;gap:10px}.dialog-head h2{font-size:19px;margin:0}.dialog-body{padding:19px 21px;overflow:auto;line-height:1.65;color:#c9c9c9}.dialog-body h3{color:#eee;margin:13px 0 6px;font-size:13px}.dialog-body p{margin:5px 0 12px}.dialog-body li{margin:6px 0}.dialog-foot{flex:0 0 auto;display:flex;justify-content:flex-end;gap:9px;padding:13px 21px;border-top:1px solid #444}.feature{display:flex;gap:14px;padding:12px 0;border-bottom:1px solid #424242}.feature b{color:#82ceff}.feature-icon{font-size:23px;color:#82ceff;min-width:32px}.cookie{position:fixed;right:18px;bottom:44px;width:min(430px,calc(100vw - 36px));z-index:180;background:#292929;border:1px solid #555;padding:17px;border-radius:6px;box-shadow:0 16px 54px #000b}.cookie p{margin:5px 0 12px;line-height:1.55;color:#bbb}.spaced{display:flex;justify-content:space-between;align-items:center;gap:12px}.loader{color:#82ceff}.warn{color:#ecad78}
@media(max-width:1050px){.workspace{grid-template-columns:210px minmax(220px,1fr) 230px}.tagline{display:none}.topbar{padding:0 10px}}
@media(max-width:770px){body{overflow:auto;height:auto;min-height:100dvh}.topbar{flex-basis:auto;min-height:54px;flex-wrap:wrap;padding:9px 12px}.topactions{margin-left:auto}.topactions .btn{padding:6px 8px}.content{flex:1}.workspace{display:flex;flex-direction:column;overflow:visible}.stage{order:0;height:min(55dvh,490px);min-height:280px;flex:none}.side.left{order:1;height:245px;flex:none;border-right:0;border-top:1px solid #424242}.side.right{order:2;flex:none;min-height:190px;border-left:0;border-top:1px solid #424242}.side.right .inspector{max-height:300px}.app-foot{flex:0 0 auto;min-height:38px;flex-wrap:wrap;padding:5px}.hero h1{font-size:32px}.drop{min-height:240px}.start{min-height:calc(100dvh - 130px)}}
@media(max-width:420px){.stage-head{padding:7px;gap:3px}.tab{padding:7px 8px;font-size:11px}.file-list{padding:7px}.dialog-body{padding:14px}.dialog-head{padding:12px}.processing-card{padding:19px}}
