select:not(.picker-card select){box-sizing:border-box;height:24px;width:min-content;font-size:12px;line-height:1;color:#d1d1d1;background-color:#252525;border:1px solid #444;border-radius:4px;padding:0 24px 0 8px;cursor:pointer;outline:none;-moz-appearance:none;appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 6px center;background-size:12px}select:hover{border-color:#666;background-color:#2a2a2a}select:focus{border-color:#3d8bfd}select option{background-color:#252525;color:#d1d1d1}.switch{width:40px;height:24px;border-radius:4px;display:flex;border:1px solid #555;background:#3c3c3c;font-size:12px;font-family:monospace;align-items:center;cursor:pointer;-webkit-user-select:none;user-select:none;overflow:hidden}.switch .indicator{width:6px;height:24px;background:#a4a4a4}.switch>div:not(.indicator){width:100%;text-align:center}.switch:not(.on)>div:first-of-type{display:none}.switch.on>div:last-of-type{display:none}:root{--card: #111111;--border: #262626;--input-bg: #0a0a0a;--text: #888;--accent: #ffffff;--track-bg: #1d1d1d}.current-color{border:2px solid var(--border);border-radius:8px;width:35px;aspect-ratio:1 / 1;cursor:pointer}.picker-card.hidden{display:none}.picker-card{background:var(--card);padding:16px;border-radius:12px;border:1px solid var(--border);display:flex;gap:20px;color:var(--text);position:fixed;bottom:45px;left:45px}.picker-card>div:first-of-type{height:100%}.main-area{height:230px;border-radius:4px;position:relative;cursor:crosshair;background-color:red;border:1px solid var(--border);overflow:hidden}.sat-gradient{aspect-ratio:1.5 / 1;height:100%;background:linear-gradient(to right,#fff,transparent)}.val-gradient{width:100%;height:100%;background:linear-gradient(to top,#000,transparent)}.pointer{width:10px;height:10px;border:2px solid white;border-radius:50%;position:absolute;transform:translate(-50%,-50%);box-shadow:0 0 3px #000;pointer-events:none;z-index:10}.picker-card>div:last-of-type{display:flex;flex-direction:column;gap:12px}.sliders{display:flex;flex-direction:column;gap:8px}.slider-row{display:flex;align-items:center;gap:10px}.slider-row span{font-size:10px;color:#444;width:10px;font-weight:900}.track-wrap{flex-grow:1;height:10px;border-radius:5px;background:var(--track-bg);position:relative;border:1px solid #1a1a1a}input[type=range]{-webkit-appearance:none;width:100%;height:100%;background:transparent;position:absolute;top:0;left:0;margin:0;outline:none;cursor:pointer;z-index:5}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:14px;height:14px;border-radius:50%;background:#fff;border:2px solid #000}.grad{width:100%;height:100%;position:absolute;top:0;left:0;border-radius:4px}.h-grad{background:linear-gradient(to right,red,#ff0,#0f0,#0ff,#00f,#f0f,red)}.checkerboard{background-image:linear-gradient(45deg,#222 25%,transparent 25%),linear-gradient(-45deg,#222 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#222 75%),linear-gradient(-45deg,transparent 75%,#222 75%);background-size:6px 6px;border-radius:5px}.controls-bottom{display:flex;gap:8px;align-items:center;padding-bottom:8px;border-bottom:1px solid var(--border)}.picker-card .preview{width:20px;aspect-ratio:1 / 1;border-radius:6px;border:1px solid var(--border);flex-shrink:0;position:relative;overflow:hidden}.preview-color{width:100%;height:100%;position:relative;z-index:1}.hex-input{flex-grow:1;background:var(--input-bg);border:1px solid var(--border);color:#fff;padding-inline:8px;border-radius:6px;font-family:monospace;font-size:13px;text-transform:uppercase;outline:none}.palette-section{display:flex;flex-direction:column;gap:10px}.palette-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}.palette-header span{font-size:9px;color:#555;text-transform:uppercase;font-weight:700}.palette-section select{background:transparent;color:#777;border:none;font-size:10px;outline:none;cursor:pointer}.grid{display:grid;grid-template-columns:repeat(12,1fr);gap:4px}.swatch{aspect-ratio:1;border-radius:3px;cursor:pointer;border:1px solid rgba(255,255,255,.03)}*{margin:0;padding:0;font-family:Sans-Serif;-webkit-user-select:none;user-select:none}:root{--navbar-height: 30px;--footer-height: 15px;--main-content-height: calc(100vh - var(--navbar-height) - var(--footer-height));--background-secondary: #2a2a2a}body{background:#1f1f1f;overflow:hidden}.hidden{display:none}footer{background:var(--background-secondary);height:var(--footer-height)}nav{color:#fff;background-color:var(--background-secondary);padding-inline:10px;height:var(--navbar-height);display:flex}nav>div{width:calc(100% / 3)}nav>.menu{display:flex;align-items:center;gap:10px}nav>.menu>div:hover>div{position:absolute;display:block;cursor:pointer;z-index:100;padding-block:5px;border-radius:5px;transform:translate(-5px);background:var(--background-secondary)}nav>.menu>div>div>div{padding-inline:5px}nav>.menu>div>div>div:hover{background:#0006}nav>.menu>div>div{display:none}.tabs{display:flex;justify-content:center;gap:10px;align-items:center}.tabs>div{opacity:.6;cursor:pointer}.tabs>div.selected{border-bottom:white 2px solid;opacity:1}.main{display:grid;grid-template-columns:auto 1fr auto}aside{overflow:auto;height:var(--main-content-height);background:var(--background-secondary)}.main>aside:last-of-type{min-width:300px;max-width:35vw;display:grid;grid-template-rows:auto 1fr}.layers-container{overflow:auto;display:grid;grid-template-rows:auto 1fr auto}main,main>canvas,main>section>iframe{width:100%;height:var(--main-content-height);border:0}.bg-shadow{background:#000c;z-index:1001;height:100vh;width:100vw;position:fixed;top:0;left:0}.modals{width:100vw;height:100vh;position:fixed;z-index:1002;top:0;left:0;display:flex;align-items:center;justify-content:center}body:not(:has(.modal:not(.hidden))) .bg-shadow,body:not(:has(.modal:not(.hidden))) .modals{max-height:0;max-width:0}.modal{width:60vw;height:80vh;background:#191919;position:relative;border-radius:15px;overflow:auto}.modal img.close{position:absolute;right:10px;top:10px;cursor:pointer}.modal .tabs{color:#fff;padding-inline:20px;padding-block:10px;justify-content:left}.from-file{padding:20px;color:#768390;border:2px dashed #272727;background-color:#1f1f1f;margin:10px 20px 20px;border-radius:10px;font-size:14.5px;position:relative;overflow:hidden}.from-file .upload-link{color:#cdcdcd;text-decoration:underline;cursor:pointer}.from-file input{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;cursor:pointer}.loaded-preview{display:flex;gap:20px;margin-inline:20px}.loaded-preview>*{width:50%;aspect-ratio:1 / 1;image-rendering:pixelated}.modal .actions{display:flex;justify-content:end;align-items:center;gap:8px;margin:20px}.modal .actions button{padding:10px;cursor:pointer}.modal .actions button.close{background:none;border:none;color:#fff}.modal.new-project{width:fit-content;height:fit-content}.modal.new-project:has(.tabs>div:first-of-type:not(.selected))>div.from-file{display:none}.modal.new-project:has(.tabs>div:last-of-type:not(.selected))>div:last-of-type{display:none}.actions.skin-type{justify-content:center}main>section{position:relative}main>section>section{--text-color: rgba(255, 255, 255, .5);background:#00000040;position:absolute;top:0;display:flex;justify-content:space-between;width:100%;height:35px;color:var(--text-color)}main>section>section:hover{background:#0006;--text-color: rgba(255, 255, 255, .8);color:var(--text-color)}main>section>section button svg{fill:var(--text-color)}main>section>section button:hover{--text-color: white;color:var(--text-color)}main{display:flex;gap:10px;background-color:var(--background-secondary)}main>section{width:100%;border-radius:10px;overflow:hidden}@media screen and (max-width:800px){main{flex-direction:column}}body:has(.render-view-select>.skin-value.selected) section.preview{display:none}.modal.new-mask:not(.hidden){display:grid;grid-template-rows:auto 1fr auto}.default-mask-list{color:#fff;margin-inline:20px;overflow:auto}.default-mask-list .content{display:flex;flex-wrap:wrap;gap:15px}.default-mask-list label input{display:none}.default-mask-list label img{width:180px;image-rendering:pixelated}.default-mask-list label{display:flex;justify-content:center;align-items:center;flex-direction:column;gap:5px;padding:10px;color:#fff9;border-radius:8px;border:1px solid #555;cursor:pointer}.default-mask-list label:hover{border-color:#666}.default-mask-list label:has(input:checked){border-color:#4a90e2;color:#fff}.default-mask-list details{width:calc(100% - 20px)}.default-mask-list summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;padding-block:20px;font-size:18px}.default-mask-list summary::-webkit-details-marker{display:none}.default-mask-list summary:after{content:"▸";transform:rotate(-90deg)}.default-mask-list details[open] summary:after{transform:rotate(90deg)}.modal.new-mask:has(.tabs div:last-of-type.selected) .default-mask-list{display:none}.modal.new-mask:has(.tabs div:first-of-type.selected) .mask-from-file{display:none}aside:last-of-type{color:#fff;background-color:var(--background-secondary);display:grid;grid-template-columns:100%;grid-template-rows:auto 1fr}aside:last-of-type>div{padding:10px}.layers-panel{display:flex;flex-direction:column;height:100%;-webkit-user-select:none;user-select:none}.layers-list{flex-grow:1;overflow-y:auto;margin-block:10px;padding:5px}.layer{background-color:#3c3c3c;border:1px solid #555;margin-bottom:5px;padding:5px;cursor:grab;border-radius:3px}.layer.selected{border-color:#4a90e2;background-color:#444}.layer-header{display:flex;align-items:center;gap:8px;margin-bottom:5px}.visibility,.mask-join,.auto-outer{cursor:pointer;background:none;border:none;display:flex;align-items:center}.layer.hidden-layer{opacity:.6}.layer.join-full .mask-join img:first-of-type{display:none}.layer:not(.join-full) .mask-join img:last-of-type{display:none}.layer.hidden-layer .visibility img:first-of-type{display:none}.layer:not(.hidden-layer) .visibility img:last-of-type{display:none}.mask.auto-outer-mask .auto-outer img:first-of-type{display:none}.mask:not(.auto-outer-mask) .auto-outer img:last-of-type{display:none}.thumbnail{width:30px;height:30px;background-color:#777;border:1px solid #999;flex-shrink:0}.layer-name,.mask-name{flex-grow:1;font-size:14px;text-overflow:ellipsis;text-wrap:nowrap;overflow:hidden}.masks-container summary{cursor:pointer;padding:2px;margin-top:5px;list-style:none}.masks-container summary::-webkit-details-marker{display:none}.masks-container summary:before{content:"▶ ";font-size:.8em}.masks-container[open]>summary:before{content:"▼ "}.mask-list,.auto-mask{padding-left:20px;margin-top:5px;border-left:1px dashed #666}.auto-mask>div{background:#4f4f4f;border-radius:3px;padding:5px;display:flex;font-size:14px;align-items:center;justify-content:space-between}.auto-mask>div>div{display:flex;align-items:center;gap:8px}.layer.auto-mask-ao .auto-mask .auto-outer img:first-of-type{display:none}.layer:not(.auto-mask-ao) .auto-mask .auto-outer img:last-of-type{display:none}.mask{display:flex;align-items:center;gap:8px;padding:3px;margin-bottom:3px;cursor:grab;border-radius:2px;cursor:pointer}.mask.selected{background-color:#333}.mask .thumbnail{width:25px;height:25px;background-color:#555;border-color:#777}.add-mask{padding:2px 5px;background-color:#4f4f4f;color:#fff;border:1px solid #666;cursor:pointer;margin-top:5px;margin-left:20px;font-size:.9em;border-radius:3px;width:calc(100% - 20px)}.add-mask:hover{background-color:#606060}.dragging{opacity:.5}.drag-over-top{border-top:2px solid #4a90e2!important}.drag-over-bottom{border-bottom:2px solid #4a90e2!important}.drop-target{border:2px dashed #4a90e2!important;background-color:#333}.cut{opacity:.6;border-style:dashed}.action-row{width:100%;display:flex;justify-content:space-around}.action-row button{height:30px;width:30px;display:flex;justify-content:center;padding:4px;cursor:pointer;background-color:#444;border:1px solid #666;border-radius:3px}.action-row button:not(:disabled):hover{background-color:#555}.action-row button:disabled{opacity:.6;cursor:auto}.action-row .add-layer{display:flex}.action-row .add-layer button:first-of-type{border-radius:3px 0 0 3px}.action-row .add-layer button:last-of-type{border-radius:0 3px 3px 0;width:14px;border-left:0}.body-parts-toggle{display:flex;flex-direction:column;align-items:center;--scale: 4;--gap: 5px;gap:var(--gap)}.body-parts-toggle>div{display:flex;flex-direction:row-reverse;justify-content:center;gap:var(--gap)}.body-parts-toggle>div>div{background:#fff;cursor:pointer}.body-parts-toggle>div>div.disabled{opacity:.5}.body-parts-toggle .left-arm,.right-arm,.left-leg,.right-leg{width:calc(4px * var(--scale));height:calc(12px * var(--scale))}.body-parts-toggle .head{height:calc(8px * var(--scale));width:calc(8px * var(--scale))}.body-parts-toggle .torso{height:calc(12px * var(--scale));width:calc(8px * var(--scale))}aside:first-of-type{display:flex;flex-direction:column;justify-content:space-between}aside:first-of-type>div{padding-inline:5px;padding-block:10px}.tools,.tools-mask{display:flex;flex-direction:column;gap:5px}.tools div,.tools-mask div{padding:6px;border-radius:4px;cursor:pointer}.tools div.selected,.tools-mask div.selected,.brush-sizes>div.selected,.brush-shapes>div.selected{background-color:#0003}.tools div img,.tools-mask div img{color:#fff}main>section>section>div{display:flex;align-items:center}main>section>section button{background-color:transparent;color:var(--text-color);border:none;cursor:pointer;padding-inline:10px;display:flex;align-items:center}.outer-visible .state{font-weight:700}main>section>section:has(.display-options.open) .body-parts-modal-open svg:first-of-type{display:none}main>section>section:has(.display-options:not(.open)) .body-parts-modal-open svg:last-of-type{display:none}.display-options:not(.open){display:none}.display-options{right:0;top:35px;padding-inline:20px;padding-block:10px;position:absolute;background:#0006}body:has(.render-view-select>.mask-value.selected) section.preview .preview-select .layer-options{display:none}body:has(.render-view-select>.layer-value.selected) section.preview .preview-select .mask-options{display:none}section.preview .preview-select .options,.preview .preview-select .options>*{display:flex;flex-direction:column}.preview-select .options{background:#0006;position:absolute}body:has(.render-view-select>.layer-value.selected) .preview-select .selected .mask-selected-options{display:none}body:has(.render-view-select>.mask-value.selected) .preview-select:has(.mask-options .option-mask-current:not(.selected)) .selected .option-mask-current,body:has(.render-view-select>.mask-value.selected) .preview-select:has(.mask-options .option-mask-ao:not(.selected)) .selected .option-mask-ao,body:has(.render-view-select>.mask-value.selected) .preview-select:has(.mask-options .option-mask-combined:not(.selected)) .selected .option-mask-combined,body:has(.render-view-select>.mask-value.selected) .preview-select:has(.mask-options .option-layer-cut:not(.selected)) .selected .option-layer-cut,body:has(.render-view-select>.mask-value.selected) .preview-select:has(.mask-options .option-layer-full:not(.selected)) .selected .option-layer-full,body:has(.render-view-select>.mask-value.selected) .preview-select:has(.mask-options .option-skin:not(.selected)) .selected .option-skin{display:none}body:has(.render-view-select>.layer-value.selected) .preview-select:has(.layer-options .option-skin:not(.selected)) .selected .option-skin,body:has(.render-view-select>.layer-value.selected) .preview-select:has(.layer-options .option-layer-cut:not(.selected)) .selected .option-layer-cut,body:has(.render-view-select>.layer-value.selected) .preview-select:has(.layer-options .option-layer-full:not(.selected)) .selected .option-layer-full{display:none}.preview-select .options>div>button,.preview-select>.selected{height:35px;display:flex;align-items:center;justify-content:space-between;width:255px}.preview-select:has(.options.open) .selected svg:first-of-type{display:none}.preview-select:has(.options:not(.open)) .selected svg:last-of-type{display:none}section.preview .preview-select .options:not(.open){display:none}.preview-select .options>div>button.selected:after{content:"●"}.preview-select button.selected>div{display:flex;text-wrap:nowrap}.color-picker>input{width:40px;height:40px;border:none;border-radius:5px;color:transparent}.color-picker{position:absolute!important;bottom:10px;padding:0!important;left:2.5px;z-index:1000}body:has(.render-view-select>.mask-value:not(.selected)) aside>.tools-mask{display:none}body:has(.render-view-select>.mask-value.selected) aside>.tools{display:none}.brush-sizes,.brush-shapes{display:flex;gap:3px;color:#d9d9d9}.tools-options{display:flex;flex-direction:column;gap:5px;font-size:14px}.tools-options>div{display:flex;justify-content:space-between}.tools-options>div>div:first-of-type{display:flex;align-items:center}.brush-sizes>div,.brush-shapes>div{padding:5px;display:flex;align-items:center;justify-content:center;border-radius:4px;cursor:pointer}.brush-sizes img,.brush-shapes img{filter:invert(90%);width:19px;height:19px}.title-tools{padding-inline:10px;padding-block:5px;background:#696969;border-radius:5px;font-size:12px}body:not(body:has(.render-view-select>.mask-value:not(.selected)):has(.tools div:nth-child(1).selected),body:has(.render-view-select>.mask-value:not(.selected)):has(.tools div:nth-child(2).selected),body:has(.render-view-select>.mask-value.selected):has(.tools-mask div:nth-child(1).selected),body:has(.render-view-select>.mask-value.selected):has(.tools-mask div:nth-child(2).selected),body:has(.render-view-select>.mask-value.selected):has(.tools-mask div:nth-child(3).selected),body:has(.render-view-select>.mask-value.selected):has(.tools-mask div:nth-child(4).selected)) .pen-bucket-only{display:none}body:not(body:has(.render-view-select>.mask-value:not(.selected)):has(.tools div:nth-child(1).selected),body:has(.render-view-select>.mask-value.selected):has(.tools-mask div:nth-child(1).selected),body:has(.render-view-select>.mask-value.selected):has(.tools-mask div:nth-child(2).selected),body:has(.render-view-select>.mask-value:not(.selected)):has(.tools div:nth-child(3).selected),body:has(.render-view-select>.mask-value:not(.selected)):has(.tools div:nth-child(4).selected)) .pen-eraser-shade-only{display:none}body:not(body:has(.render-view-select>.mask-value:not(.selected)):has(.tools div:nth-child(1).selected),body:has(.render-view-select>.mask-value.selected):has(.tools-mask div:nth-child(1).selected),body:has(.render-view-select>.mask-value.selected):has(.tools-mask div:nth-child(2).selected),body:has(.render-view-select>.mask-value:not(.selected)):has(.tools div:nth-child(3).selected)) .pen-eraser-only{display:none}body:not(body:has(.render-view-select>.mask-value:not(.selected)):has(.tools div:nth-child(1).selected),body:has(.render-view-select>.mask-value.selected):has(.tools-mask div:nth-child(1).selected),body:has(.render-view-select>.mask-value.selected):has(.tools-mask div:nth-child(2).selected)) .pen-only{display:none}body:not(body:has(.render-view-select>.mask-value:not(.selected)):has(.tools div:nth-child(2).selected),body:has(.render-view-select>.mask-value.selected):has(.tools-mask div:nth-child(3).selected),body:has(.render-view-select>.mask-value.selected):has(.tools-mask div:nth-child(4).selected)) .bucket-only{display:none}body:not(:has(.render-view-select>.mask-value:not(.selected)):has(.tools div:nth-child(4).selected)) .shade-only{display:none}body:not(:has(.render-view-select>.mask-value:not(.selected)):has(.tools div:nth-child(3).selected)) .eraser-only{display:none}.info-box{background-color:#1a253b;border:1px solid #3b82f6;border-radius:6px;box-shadow:0 4px 12px #0006;padding:12px 15px;color:#d1d5db;font-size:14px;line-height:1.5}.context-menu{position:absolute;z-index:1000;background-color:#3c3c3c;border:1px solid #666;border-radius:4px;padding:5px 0;min-width:150px;box-shadow:0 4px 8px #0000004d;color:#fff;font-size:14px}.context-menu-item{padding:8px 15px;cursor:pointer}.context-menu-item:hover{background-color:#4a90e2}.context-menu-item.disabled{opacity:.5;cursor:not-allowed;background-color:transparent!important}.context-menu .separator{height:1px;background-color:#555;margin:5px 0}
