@import"https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=JetBrains+Mono:wght@400;600&display=swap";*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}:root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color:#ffffffde;background-color:#242424;-webkit-font-smoothing:antialiased}html,body{height:100%;width:100%;overflow:hidden}body{margin:0;display:flex;flex-direction:column;height:100vh;height:100dvh;overflow:hidden;overscroll-behavior:none}#header{height:36px;background:#1a1a1a;border-bottom:1px solid #333;display:flex;align-items:center;justify-content:space-between;padding:0 16px;flex-shrink:0;-webkit-user-select:none;user-select:none}#app-title{font-size:1rem;font-weight:700;color:#ffffffde;letter-spacing:-.3px}.editor-save-status{display:inline-flex;align-items:center;gap:5px;color:#777782;font-family:JetBrains Mono,monospace;font-size:.61rem;line-height:1;white-space:nowrap}.editor-save-status:before{width:5px;height:5px;border-radius:50%;background:#62626d;content:""}.editor-save-status[data-save-status=saving]:before{background:#8c73ff;box-shadow:0 0 7px #8c73ffb3}.editor-save-status[data-save-status=saved]:before{background:#58b987}.editor-save-status[data-save-status=unavailable]{color:#e28d8d}.editor-save-status[data-save-status=unavailable]:before{background:#d85f5f}#header-right{display:flex;align-items:center;gap:8px}.editor-command-group{display:inline-flex;gap:3px;padding-right:7px;border-right:1px solid #393940}.editor-command-btn{display:grid;width:28px;height:28px;place-items:center;padding:0;border:1px solid #414148;border-radius:5px;background:#242429;color:#c4c4cc;cursor:pointer;transition:border-color .15s,background .15s,color .15s,opacity .15s}.editor-command-btn:hover:not(:disabled),.editor-command-btn:focus-visible{border-color:#7662df;outline:none;background:#302d40;color:#fff}.editor-command-btn:disabled{opacity:.32;cursor:default}.editor-command-btn svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.7}.header-info{font-size:.75rem;color:#666;font-family:JetBrains Mono,monospace}.header-sep{color:#444;font-size:.75rem}#texture-create-app{display:flex;flex-direction:column;height:100vh;height:100dvh;max-height:100dvh;min-height:0;width:100%;overflow:hidden}#body{display:flex;flex:1;min-width:0;min-height:0;overflow:hidden}.side-panel{background:#1a1a1a;overflow-y:auto;overflow-x:hidden;flex-shrink:0;font-size:13px;color:#ffffffde;padding-bottom:40px;min-height:0;max-height:100%}#left-panel{width:220px;border-right:1px solid #333}#right-panel{width:220px;border-left:1px solid #333}.side-panel::-webkit-scrollbar{width:6px}.side-panel::-webkit-scrollbar-track{background:#1a1a1a}.side-panel::-webkit-scrollbar-thumb{background:#444;border-radius:3px}.layer-side-panel{width:120px;background:#151515;border-right:1px solid #333;display:flex;flex-direction:column;flex-shrink:0;overflow-y:auto;overflow-x:hidden;min-height:0}.dropdown{position:relative;display:inline-block}.dropdown-btn{background:#2d88ff;border:none;cursor:pointer;padding:6px 12px;border-radius:4px;color:#fff;font-weight:700;height:28px}.dropdown-content{display:none;position:absolute;background-color:#2a2a2a;min-width:160px;box-shadow:0 8px 16px #00000080;z-index:1000;border-radius:4px;border:1px solid #444;top:100%;left:0;margin-top:4px}.dropdown-content button{color:#fff;padding:10px 16px;text-decoration:none;display:block;background:none;border:none;width:100%;text-align:left;cursor:pointer;font-size:13px;font-family:inherit}.dropdown-content button:hover{background-color:#444}.dropdown.open .dropdown-content{display:block}#type-panel-shell{display:flex;height:100%;min-height:0;flex-shrink:0}.thumbnail-panel-wrapper{position:relative;display:flex;height:100%;flex-shrink:0;overflow:hidden;width:240px;transition:width .3s ease;min-height:0}.thumbnail-panel-wrapper.is-closed{width:0}.thumb-toggle-tab{position:relative;width:24px;flex-shrink:0;background:#2a2a2a;border-left:1px solid #444;cursor:pointer;display:flex;align-items:center;justify-content:center;z-index:100;-webkit-user-select:none;user-select:none}.thumb-toggle-tab:hover{background:#3a3a3a}.thumb-toggle-tab .tab-inner{writing-mode:vertical-rl;text-orientation:mixed;transform:rotate(180deg);font-size:10px;color:#aaa;white-space:nowrap;line-height:1;display:flex;flex-direction:column;align-items:center;gap:4px}.thumb-toggle-tab .tab-arrow{font-size:8px;display:block}.thumbnail-panel-wrapper.is-closed+.thumb-toggle-tab .tab-inner{transform:rotate(0)}.thumbnail-side-panel{width:240px;min-width:240px;background:#1a1a1a;border-left:1px solid #333;display:flex;flex-direction:column;flex-shrink:0;overflow-y:hidden;overflow-x:hidden;height:100%;min-height:0}.layer-panel-header{height:32px;background:#222;border-bottom:1px solid #333;display:flex;align-items:stretch;flex-shrink:0;padding:0}.layer-add-btn{width:100%;height:100%;background:transparent;border:none;color:#888;font-size:18px;cursor:pointer;line-height:1;display:flex;align-items:center;justify-content:center;transition:background .15s,color .15s}.layer-add-btn:hover{background:#333;color:#fff}#layer-list-container{padding:8px 4px;display:flex;flex-direction:column;gap:8px}.layer-item{width:100%;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:8px;padding:4px 6px;border-radius:4px;cursor:pointer;border:1px solid transparent;transition:background .15s,border-color .15s;position:relative}.layer-item:hover{background:#2a2a2a}.layer-item.selected{background:#333;border-color:#646cff}.layer-thumb-wrap{width:32px;height:32px;background:#000;border:1px solid #444;border-radius:3px;overflow:hidden;position:relative;box-shadow:0 1px 3px #00000080;flex-shrink:0}.layer-thumb-wrap.is-hidden:after{content:"";position:absolute;inset:0;background:linear-gradient(45deg,transparent 46%,#ff4444 48%,#ff4444 52%,transparent 54%);pointer-events:none;z-index:5}.layer-visible-btn{position:absolute;top:1px;left:1px;width:10px;height:10px;background:#fff6;border:none;border-radius:50%;cursor:pointer;z-index:10;padding:0}.layer-visible-btn.off{background:#f44}.layer-visible-btn:hover{background:#444}.layer-visible-btn.off:hover{background:#c33}.layer-thumb{width:100%;height:100%;display:block;image-rendering:pixelated}.layer-item-name{font-size:11px;color:#888;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1}.layer-item-name-input{flex:1;background:#000;border:1px solid #646cff;color:#fff;font-size:11px;text-align:left;outline:none}.layer-controls{display:none;position:absolute;top:0;right:0;flex-direction:column;background:#000c;border-radius:0 4px;z-index:10}.layer-item:hover .layer-controls{display:flex}.layer-ctrl-btn{background:transparent;border:none;color:#ccc;font-size:10px;cursor:pointer;padding:2px;line-height:1}.layer-ctrl-btn:hover{color:#fff;background:#ffffff1a}.layer-item.selected .layer-item-name{color:#fff;font-weight:700}.thumbnail-side-panel::-webkit-scrollbar{width:6px}.thumbnail-side-panel::-webkit-scrollbar-track{background:#1a1a1a}.thumbnail-side-panel::-webkit-scrollbar-thumb{background:#444;border-radius:3px}#center-column{flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden;background:#242424}#top-panel{height:48px;background:#1a1a1a;border-bottom:1px solid #333;display:flex;align-items:center;justify-content:center;gap:8px;padding:0 16px;flex-shrink:0;-webkit-user-select:none;user-select:none}.export-btn{padding:6px 12px;color:#fff;border:none;border-radius:4px;cursor:pointer;font-size:.82rem;font-weight:600;height:32px;white-space:nowrap;transition:opacity .15s}.export-btn:hover{opacity:.85}.top-divider{width:1px;height:20px;background:#444;margin:0 4px}.tool-btn{background:#2a2a2a;border:1px solid #444;border-radius:4px;color:#fff9;cursor:pointer;padding:5px;width:30px;height:30px;display:flex;align-items:center;justify-content:center;transition:all .15s}.tool-btn svg{width:14px;height:14px}.tool-btn:hover{border-color:#646cff;color:#646cff}.tool-btn.active{border-color:#646cff;color:#646cff;background:#646cff22}#thumbnail-grid-container{flex:1;min-height:0;height:100%}.type-browser{display:flex;min-width:0;min-height:0;height:100%;flex-direction:column;background:#1a1a1a}.type-browser-toolbar{position:relative;z-index:2;display:flex;flex:0 0 auto;flex-direction:column;gap:7px;padding:8px;border-bottom:1px solid #333;background:#181818;box-shadow:0 5px 14px #0000002e}.type-browser-search{display:flex;height:30px;min-width:0;align-items:center;gap:6px;padding:0 7px;border:1px solid #41414a;border-radius:5px;background:#242429;color:#85858f;transition:border-color .15s,box-shadow .15s}.type-browser-search:focus-within{border-color:#6d5de7;box-shadow:0 0 0 2px #6d5de721}.type-browser-search>svg,.type-browser-search-clear svg{width:14px;height:14px;flex:0 0 14px}.type-browser-search>svg path,.type-browser-search-clear svg path{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}.type-browser-search input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:#eee;font:500 10px/1.2 Inter,sans-serif}.type-browser-search input::placeholder{color:#6f6f78}.type-browser-search input::-webkit-search-cancel-button{display:none}.type-browser-search-clear{display:grid;width:22px;height:22px;flex:0 0 22px;place-items:center;border:0;border-radius:4px;background:transparent;color:#888892;cursor:pointer}.type-browser-search-clear:hover{background:#36363e;color:#fff}.type-browser-filter-row{display:flex;min-width:0}.type-browser-category{width:100%;height:28px;min-width:0;padding:0 7px;border:1px solid #3b3b43;border-radius:5px;outline:0;background:#242429;color:#c4c4ca;font:500 10px Inter,sans-serif;cursor:pointer}.type-browser-category:focus-visible{border-color:#6d5de7}.type-browser-modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;padding:3px;border-radius:5px;background:#101012}.type-browser-modes button{min-width:0;height:24px;overflow:hidden;border:0;border-radius:4px;background:transparent;color:#777781;font:600 9px Inter,sans-serif;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.type-browser-modes button:hover{color:#cacacf}.type-browser-modes button.is-active{background:#33313f;color:#bfb4ff;box-shadow:inset 0 0 0 1px #7f6bea52}.type-browser-summary{display:flex;min-height:17px;align-items:center;justify-content:space-between;gap:8px}.type-browser-count{color:#777780;font:500 9px JetBrains Mono,monospace}.type-browser-reset{overflow:hidden;border:0;background:transparent;color:#9f92ee;font:600 9px Inter,sans-serif;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.type-browser-reset:hover{color:#c9c0ff;text-decoration:underline}.type-browser-detail{min-height:78px;padding:7px 8px;border:1px solid #313139;border-radius:6px;background:#202025}.type-browser-detail-heading{display:flex;min-width:0;align-items:baseline;justify-content:space-between;gap:8px}.type-browser-detail-heading strong{overflow:hidden;color:#eeeef1;font:600 10px Inter,sans-serif;text-overflow:ellipsis;white-space:nowrap}.type-browser-detail-heading>span{flex:0 0 auto;color:#8d81df;font:600 8px Inter,sans-serif}.type-browser-detail p{display:-webkit-box;margin-top:4px;overflow:hidden;color:#8b8b94;font:400 9px/1.45 Inter,sans-serif;-webkit-box-orient:vertical;-webkit-line-clamp:2}.type-browser-tags{display:flex;gap:4px;margin-top:6px;overflow:hidden}.type-browser-tags span{max-width:96px;padding:2px 5px;overflow:hidden;border:1px solid #393541;border-radius:99px;background:#292631;color:#9f94dc;font:500 7px Inter,sans-serif;text-overflow:ellipsis;white-space:nowrap}.type-browser-grid-wrap{position:relative;flex:1 1 auto;min-height:0;overflow:hidden}.type-browser-side .type-browser-grid-wrap{overflow-y:auto}#thumbnail-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:0px;padding:4px 0}.type-browser-card{position:relative;min-width:0}.type-browser-card .thumbnail-item{width:100%;margin:0;background:transparent;color:inherit;font:inherit}.type-favorite-button{position:absolute;top:4px;right:3px;z-index:1;display:grid;width:17px;height:17px;place-items:center;border:0;border-radius:50%;background:#141417cc;color:#5d5d65;opacity:.25;cursor:pointer;transition:color .15s,opacity .15s,transform .15s}.type-favorite-button svg{width:10px;height:10px}.type-browser-card:hover .type-favorite-button,.type-favorite-button:focus-visible,.type-favorite-button.is-favorite{opacity:1}.type-favorite-button:hover,.type-favorite-button:focus-visible{color:#f7cc5a;outline:none;transform:scale(1.08)}.type-favorite-button.is-favorite{color:#f7c84e}.type-browser-empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:24px;flex-direction:column;text-align:center}.type-browser-empty strong{color:#d5d5da;font-size:12px}.type-browser-empty span{margin-top:5px;color:#777781;font-size:10px}.type-browser-empty button{margin-top:12px;padding:6px 10px;border:1px solid #514797;border-radius:5px;background:#2a263f;color:#c3baff;font:600 10px Inter,sans-serif;cursor:pointer}#thumbnail-grid::-webkit-scrollbar{width:6px}#thumbnail-grid::-webkit-scrollbar-thumb{background:#444;border-radius:3px}.thumbnail-item{display:flex;flex-direction:column;align-items:center;gap:4px;cursor:pointer;padding:10px 4px;border-radius:4px;border:1px solid transparent;transition:all .1s}.thumbnail-item:hover{border-color:#646cff;background:#646cff18}.thumbnail-item.selected{border-color:#ff9800;background:#ff980015}.thumbnail-item img{border-radius:2px;display:block;image-rendering:auto;width:40px;height:40px}.thumbnail-item span{font-size:8px;transform:scale(.85);color:#777;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:40px;margin-top:2px}#canvas-area{flex:1;min-width:0;min-height:0;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;background:#111;cursor:crosshair}#preview-canvas-container{position:relative;width:min(512px,calc(100% - 32px),calc(100dvh - 132px));aspect-ratio:1 / 1;flex:0 0 auto;transition:transform .05s ease-out;transform-origin:center center}#preview-canvas{display:block;width:100%;height:100%;image-rendering:pixelated;box-shadow:0 10px 40px #0009;background-color:#000}.checkerboard-bg{background-color:#333!important;background-image:linear-gradient(45deg,#1f1f1f 25%,transparent 25%),linear-gradient(-45deg,#1f1f1f 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#1f1f1f 75%),linear-gradient(-45deg,transparent 75%,#1f1f1f 75%)!important;background-size:20px 20px!important;background-position:0 0,0 10px,10px -10px,-10px 0!important}#canvas-overlay{position:absolute;bottom:10px;right:10px;background:#00000080;border:1px solid #333;border-radius:3px;padding:2px 6px;font-size:.72rem;font-family:JetBrains Mono,monospace;color:#888;pointer-events:none}.category-group{margin-bottom:8px;background:#222;overflow:hidden}.category-header{padding:8px 12px;background:#333;cursor:pointer;font-weight:700;font-size:.82rem;color:#eee;display:flex;justify-content:space-between;align-items:center;-webkit-user-select:none;user-select:none}.category-header:hover{background:#3a3a3a}.category-arrow{font-size:.7rem;color:#888}.category-body{padding:8px}.collapsible-section{border-bottom:1px solid #333;padding-bottom:6px}.section-header{display:flex;align-items:center;justify-content:space-between;cursor:pointer;padding:7px 0;-webkit-user-select:none;user-select:none}.section-title-wrap{display:flex;align-items:center;gap:6px}.section-arrow{font-size:.65rem;color:#666;transition:transform .15s;display:inline-block}.section-arrow.open{transform:rotate(90deg)}.section-title{font-size:.82rem;text-transform:uppercase;font-weight:600;letter-spacing:.4px;color:#888}.section-title.open{color:#fff}.section-checkbox{accent-color:#646cff;width:14px;height:14px;cursor:pointer}.section-body{padding:4px 0 4px 10px}.control-row{margin-bottom:8px}.control-label-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:2px}.control-label{font-size:.8rem;color:#ffffffb3}.control-number{width:52px;background:#2a2a2a;border:1px solid #444;border-radius:3px;color:#ccc;padding:1px 4px;font-size:.75rem;text-align:right}.control-number:focus{outline:none;border-color:#646cff}.control-slider{width:100%;accent-color:#646cff}.control-select{width:100%;padding:5px 7px;background:#2a2a2a;border:1px solid #444;border-radius:4px;color:#ccc;font-size:.8rem;cursor:pointer;margin-top:2px}.control-checkbox-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.control-checkbox{accent-color:#646cff;width:14px;height:14px;cursor:pointer}#gradient-section{border-top:1px solid #333;margin-top:4px}#grad-cat-header{cursor:default}.check-label{display:flex;align-items:center;gap:5px;cursor:pointer;font-weight:400;font-size:.78rem;color:#888}.check-label input{accent-color:#646cff;width:13px;height:13px;cursor:pointer}.gradient-editor{padding:8px 10px;background:#222}.ge-label{font-size:10px;color:#666;margin-bottom:4px;display:flex;align-items:center;gap:4px}.ge-canvas-wrap{position:relative;margin-bottom:5px}.ge-canvas{width:100%;height:24px;display:block;border-radius:3px;cursor:crosshair;border:1px solid #444}.ge-stops-row{position:absolute;top:0;left:0;width:100%;height:24px;pointer-events:none}.ge-handle{position:absolute;width:10px;height:24px;border-radius:2px;border:2px solid rgba(255,255,255,.4);cursor:ew-resize;pointer-events:all;box-shadow:0 0 0 1px #000}.ge-handle.selected{border-color:#fff;box-shadow:0 0 0 1px #646cff}.ge-color-row{display:flex;gap:4px;align-items:center;flex-wrap:wrap;margin-top:5px}.ge-color-input{width:24px;height:20px;border:1px solid #444;border-radius:2px;padding:1px;background:transparent;cursor:pointer}.ge-btn{background:#2a2a2a;border:1px solid #444;border-radius:3px;color:#888;font-size:.72rem;padding:2px 6px;cursor:pointer;transition:border-color .15s,color .15s}.ge-btn:hover{border-color:#646cff;color:#646cff}.ge-btn-delete{color:#f55;border-color:#522}.ge-btn-delete:hover:not(:disabled){border-color:#f55;color:#f55;background:#ff55551a}.ge-presets-label{font-size:10px;color:#666;margin-top:10px;margin-bottom:4px}.ge-presets-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;max-height:120px;overflow-y:auto;padding-right:4px}.ge-presets-grid::-webkit-scrollbar{width:4px}.ge-presets-grid::-webkit-scrollbar-thumb{background:#444;border-radius:2px}.ge-preset-item{display:flex;flex-direction:column;align-items:center;gap:2px;background:#2a2a2a;border:1px solid #333;border-radius:4px;padding:4px;cursor:pointer;transition:all .15s}.ge-preset-item:hover{border-color:#646cff;background:#646cff1a}.ge-preset-thumb{width:100%;height:16px;border-radius:2px;display:block;border:1px solid #111}.ge-preset-name{font-size:9px;color:#aaa;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%}[hidden]{display:none!important}.sheet-export-overlay{position:fixed;inset:0;z-index:10055;display:grid;place-items:center;padding:24px;background:#050508e0;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.sheet-export-dialog{display:flex;width:min(880px,100%);max-height:min(700px,calc(100dvh - 48px));flex-direction:column;overflow:hidden;border:1px solid #43434e;border-radius:14px;background:#18181d;box-shadow:0 26px 90px #000000b8}.sheet-export-header{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:22px 24px 18px;border-bottom:1px solid #33333b}.sheet-export-header h2{color:#f7f7f8;font-size:1.35rem;line-height:1.25;letter-spacing:-.025em}.sheet-export-header p{max-width:610px;margin-top:6px;color:#9e9ea8;font-size:.78rem;line-height:1.55}.sheet-export-close{display:grid;width:36px;height:36px;flex:0 0 36px;place-items:center;border:1px solid #464650;border-radius:8px;background:#24242b;color:#aaaab3;cursor:pointer}.sheet-export-close:hover,.sheet-export-close:focus-visible{border-color:#7f6bea;outline:none;background:#2c293d;color:#fff}.sheet-export-close svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-width:1.8}.sheet-export-body{display:grid;min-height:0;grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr);overflow-y:auto}.sheet-export-preview-panel{display:flex;min-width:0;flex-direction:column;padding:20px;border-right:1px solid #33333b;background:#141418}.sheet-export-section-label,.sheet-export-fieldset legend,.sheet-export-control-grid label>span{color:#aaaab4;font-size:.68rem;font-weight:600}.sheet-export-preview-frame{display:grid;min-height:280px;margin-top:10px;place-items:center;overflow:hidden;border:1px solid #393942;border-radius:9px;background-color:#222228;background-image:linear-gradient(45deg,#303036 25%,transparent 25%),linear-gradient(-45deg,#303036 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#303036 75%),linear-gradient(-45deg,transparent 75%,#303036 75%);background-position:0 0,0 8px,8px -8px,-8px 0;background-size:16px 16px}.sheet-export-preview-frame canvas{display:block;max-width:calc(100% - 24px);max-height:250px;object-fit:contain;image-rendering:auto;box-shadow:0 8px 24px #00000061}.sheet-export-output-summary{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-top:12px}.sheet-export-output-summary div{display:flex;flex-direction:column;gap:2px}.sheet-export-output-summary span{color:#777781;font-size:.62rem}.sheet-export-output-summary strong,.sheet-export-output-summary code{color:#d7d7dc;font-family:JetBrains Mono,monospace;font-size:.72rem}.sheet-export-output-summary code{color:#888894;font-size:.64rem}.sheet-export-settings{display:flex;min-width:0;flex-direction:column;padding:20px}.sheet-export-fieldset{border:0}.sheet-export-fieldset legend{margin-bottom:8px}.sheet-export-mode-tabs{display:grid;grid-template-columns:1fr 1fr;overflow:hidden;border:1px solid #44444e;border-radius:7px}.sheet-export-mode-tabs label{min-width:0;cursor:pointer}.sheet-export-mode-tabs input{position:absolute;opacity:0}.sheet-export-mode-tabs span{display:grid;min-height:38px;padding:0 8px;place-items:center;background:#24242a;color:#aaaab3;font-size:.7rem;font-weight:600;text-align:center}.sheet-export-mode-tabs label+label span{border-left:1px solid #44444e}.sheet-export-mode-tabs input:checked+span{background:#39324f;color:#f0ecff;box-shadow:inset 0 -2px #826cef}.sheet-export-mode-tabs input:focus-visible+span{outline:2px solid #8871f2;outline-offset:-2px}.sheet-export-help{min-height:34px;margin-top:7px;color:#858590;font-size:.64rem;line-height:1.5}.sheet-export-control-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}.sheet-export-control-grid label{display:flex;min-width:0;flex-direction:column;gap:5px}.sheet-export-control-grid select{width:100%;height:34px;padding:0 9px;border:1px solid #44444d;border-radius:6px;outline:none;background:#24242a;color:#e2e2e5;font:.72rem Inter,sans-serif}.sheet-export-control-grid select:focus{border-color:#806bf0}.sheet-export-metadata{display:flex;align-items:center;gap:8px;margin-top:16px;color:#b8b8c0;font-size:.7rem;cursor:pointer}.sheet-export-generate{min-height:40px;margin-top:auto;padding:0 14px;border:1px solid rgba(255,255,255,.14);border-radius:7px;background:#2d88ff;color:#fff;font:600 .78rem Inter,sans-serif;cursor:pointer}.sheet-export-generate:hover:not(:disabled),.sheet-export-generate:focus-visible{outline:none;background:#4a98ff}.sheet-export-generate:disabled{opacity:.48;cursor:default}.channel-pack-preview-frame canvas{width:min(280px,calc(100% - 24px));aspect-ratio:1 / 1}.channel-pack-field{display:flex;min-width:0;flex-direction:column;gap:5px}.channel-pack-field>span{color:#aaaab4;font-size:.68rem;font-weight:600}.channel-pack-field>select{width:100%;height:36px;padding:0 9px;border:1px solid #44444d;border-radius:6px;outline:none;background:#24242a;color:#e2e2e5;font:.72rem Inter,sans-serif}.channel-pack-field>select:focus{border-color:#806bf0;box-shadow:0 0 0 2px #806bf024}.channel-pack-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}.channel-pack-help{margin-top:12px;color:#858590;font-size:.64rem;line-height:1.55}.preset-library-dialog{width:min(900px,100%)}.preset-library-body{min-height:0;padding:20px 24px 24px;overflow-y:auto}.preset-library-save-panel{margin-top:22px;padding:16px;border:1px solid #3a3a44;border-radius:9px;background:#202026}.preset-library-save-panel>label,.preset-library-list-header strong{color:#d7d7dc;font-size:.72rem;font-weight:600}.preset-library-save-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin-top:8px}.preset-library-save-row input{min-width:0;height:38px;padding:0 11px;border:1px solid #494953;border-radius:7px;outline:none;background:#16161b;color:#f0f0f2;font:.76rem Inter,sans-serif}.preset-library-save-row input:focus{border-color:#806bf0;box-shadow:0 0 0 2px #806bf029}.preset-library-save-row button,.preset-library-item-actions button,.preset-library-builtin-item>button{min-height:36px;padding:0 13px;border:1px solid #50496e;border-radius:7px;background:#332d4b;color:#e7e2ff;font:600 .69rem Inter,sans-serif;cursor:pointer}.preset-library-save-row button:hover,.preset-library-save-row button:focus-visible,.preset-library-item-actions button:hover,.preset-library-item-actions button:focus-visible,.preset-library-builtin-item>button:hover,.preset-library-builtin-item>button:focus-visible{border-color:#836cf2;outline:none;background:#41375f}.preset-library-save-panel p{margin-top:7px;color:#858590;font-size:.63rem;line-height:1.45}.preset-library-list-header{display:flex;align-items:center;justify-content:space-between;margin:20px 2px 9px}.preset-library-list-header span{color:#858590;font:.66rem JetBrains Mono,monospace;white-space:nowrap}.preset-library-builtin-header{align-items:flex-start;margin-top:0}.preset-library-builtin-header>div{min-width:0}.preset-library-builtin-header p{max-width:620px;margin-top:5px;color:#858590;font-size:.64rem;line-height:1.5}.preset-library-builtin-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.preset-library-builtin-item{display:grid;min-width:0;grid-template-columns:108px minmax(0,1fr);grid-template-rows:1fr auto;gap:10px 12px;padding:10px;border:1px solid #3b394a;border-radius:10px;background:linear-gradient(145deg,#222129,#1b1b21)}.preset-library-builtin-preview{grid-row:1 / 3;aspect-ratio:1;overflow:hidden;border:1px solid #403d52;border-radius:8px;background:radial-gradient(circle at 50% 50%,rgba(92,70,168,.2),transparent 64%),#111116}.preset-library-builtin-preview img{display:block;width:100%;height:100%;object-fit:cover}.preset-library-builtin-copy{display:flex;min-width:0;flex-direction:column;gap:5px}.preset-library-builtin-copy strong{color:#f0eef8;font-size:.75rem;line-height:1.3}.preset-library-builtin-copy p{color:#92909d;font-size:.62rem;line-height:1.5}.preset-library-builtin-copy span{color:#777482;font:.6rem JetBrains Mono,monospace}.preset-library-builtin-item>button{width:100%}.preset-library-list{display:flex;flex-direction:column;gap:8px}.preset-library-item{display:flex;min-width:0;align-items:center;justify-content:space-between;gap:16px;padding:12px 13px;border:1px solid #373741;border-radius:8px;background:#1d1d22}.preset-library-item-copy{display:flex;min-width:0;flex-direction:column;gap:4px}.preset-library-item-copy strong{overflow:hidden;color:#eeeef1;font-size:.76rem;text-overflow:ellipsis;white-space:nowrap}.preset-library-item-copy span{overflow:hidden;color:#81818c;font-size:.62rem;text-overflow:ellipsis;white-space:nowrap}.preset-library-item-actions{display:flex;flex:0 0 auto;gap:6px}.preset-library-item-actions .preset-library-remove{border-color:#564044;background:#39272b;color:#f0b9bf}.preset-library-empty{padding:28px 14px;border:1px dashed #3a3a43;border-radius:8px;color:#7f7f88;font-size:.72rem;text-align:center}.quick-start-open-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;background:linear-gradient(135deg,#6c4df6,#9257e8);border:1px solid rgba(255,255,255,.16);box-shadow:inset 0 1px #ffffff21}.quick-start-open-btn svg{width:15px;height:15px;fill:currentColor}.quick-start-overlay{position:fixed;inset:0;z-index:10050;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 50% 0%,rgba(108,77,246,.16),transparent 42%),#050508e0;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.quick-start-dialog{display:flex;width:min(980px,100%);max-height:min(760px,calc(100dvh - 48px));flex-direction:column;overflow:hidden;border:1px solid #43434e;border-radius:14px;background:#18181d;box-shadow:0 26px 90px #000000b8,0 0 0 1px #ffffff06}.quick-start-header{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:24px 26px 20px;border-bottom:1px solid #33333b;background:linear-gradient(135deg,rgba(108,77,246,.12),transparent 55%)}.quick-start-heading{min-width:0}.quick-start-eyebrow{display:block;margin-bottom:5px;color:#a997ff;font-family:JetBrains Mono,monospace;font-size:10px;font-weight:600;letter-spacing:.13em;text-transform:uppercase}.quick-start-heading h2{color:#fff;font-size:clamp(1.35rem,2.2vw,1.8rem);line-height:1.25;letter-spacing:-.025em}.quick-start-heading p{max-width:650px;margin-top:7px;color:#a7a7b0;font-size:.84rem;line-height:1.6}.quick-start-close{display:grid;width:36px;height:36px;flex:0 0 36px;place-items:center;border:1px solid #464650;border-radius:8px;background:#24242b;color:#aaaab3;cursor:pointer;transition:border-color .15s,color .15s,background .15s}.quick-start-close:hover,.quick-start-close:focus-visible{border-color:#7f6bea;background:#2c293d;color:#fff}.quick-start-close svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-width:1.8}.quick-start-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:18px;overflow-y:auto;overscroll-behavior:contain}.quick-start-grid::-webkit-scrollbar{width:7px}.quick-start-grid::-webkit-scrollbar-thumb{border-radius:99px;background:#4b4b58}.quick-start-card{min-width:0;overflow:hidden;border:1px solid #34343e;border-radius:10px;background:#222228;color:inherit;font:inherit;text-align:left;cursor:pointer;transition:transform .16s ease,border-color .16s ease,background .16s ease,box-shadow .16s ease}.quick-start-card:hover,.quick-start-card:focus-visible{transform:translateY(-2px);border-color:#745ff0;outline:none;background:#282733;box-shadow:0 10px 24px #0000004d,0 0 0 2px #745ff021}.quick-start-card-media{position:relative;display:block;height:100px;overflow:hidden;background:#0d0d10}.quick-start-card-media:after{position:absolute;inset:0;content:"";background:linear-gradient(180deg,transparent 55%,rgba(9,9,12,.46));pointer-events:none}.quick-start-card-media img{display:block;width:100%;height:100%;object-fit:cover;image-rendering:auto;transition:transform .22s ease}.quick-start-card:hover .quick-start-card-media img,.quick-start-card:focus-visible .quick-start-card-media img{transform:scale(1.045)}.quick-start-card-palette{position:absolute;right:8px;bottom:8px;z-index:1;width:66px;height:7px;border:1px solid rgba(255,255,255,.32);border-radius:99px;box-shadow:0 2px 7px #0000008c}.quick-start-card-copy{display:flex;min-height:116px;flex-direction:column;padding:12px 13px 13px}.quick-start-card-title{color:#f4f4f6;font-size:.91rem;line-height:1.35}.quick-start-card-description{display:block;margin-top:5px;color:#9b9ba5;font-size:.71rem;line-height:1.5}.quick-start-card-type{display:block;margin-top:auto;padding-top:9px;overflow:hidden;color:#7f7f8b;font-family:JetBrains Mono,monospace;font-size:.59rem;text-overflow:ellipsis;white-space:nowrap}.quick-start-toast{position:fixed;left:50%;bottom:24px;z-index:10060;padding:10px 16px;transform:translate(-50%,10px);border:1px solid #5b4cca;border-radius:8px;background:#1f1c30f5;box-shadow:0 10px 35px #00000080;color:#f1efff;font-size:.8rem;opacity:0;pointer-events:none;transition:opacity .18s ease,transform .18s ease}.quick-start-toast.is-visible{transform:translate(-50%);opacity:1}.modal-overlay{position:fixed;top:0;left:0;width:100vw;height:100vh;background:#000000d9;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:9999;display:flex;align-items:center;justify-content:center;padding:40px}.modal-content{background:#1a1a1a;border:1px solid #333;border-radius:8px;width:100%;height:100%;max-width:1600px;display:flex;flex-direction:column;box-shadow:0 10px 40px #000c;overflow:hidden}.modal-header{height:50px;background:#222;border-bottom:1px solid #333;display:flex;align-items:center;justify-content:space-between;padding:0 24px;flex-shrink:0}.modal-title{font-size:1.1rem;font-weight:600;color:#fff}.modal-close{display:grid;width:34px;height:34px;place-items:center;background:transparent;border:1px solid transparent;border-radius:6px;color:#888;cursor:pointer;transition:color .15s,border-color .15s,background .15s}.modal-close:hover{border-color:#6d5de7;background:#302c43;color:#ff5252}.modal-close svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-width:1.8}.type-browser-modal{flex:1;min-height:0}.type-browser-modal .type-browser-toolbar{display:grid;grid-template-columns:minmax(240px,1fr) 220px minmax(260px,auto);gap:9px 12px;padding:12px 18px}.type-browser-modal .type-browser-search,.type-browser-modal .type-browser-category{height:34px}.type-browser-modal .type-browser-search input,.type-browser-modal .type-browser-category{font-size:11px}.type-browser-modal .type-browser-modes{align-self:stretch}.type-browser-modal .type-browser-modes button{height:28px;font-size:10px}.type-browser-modal .type-browser-summary{grid-column:1}.type-browser-modal .type-browser-detail{display:grid;min-height:58px;grid-column:2 / 4;grid-template-columns:minmax(150px,.7fr) minmax(240px,1.5fr) auto;align-items:center;gap:12px;padding:8px 10px}.type-browser-modal .type-browser-detail p,.type-browser-modal .type-browser-tags{margin-top:0}.type-browser-modal .type-browser-grid-wrap{overflow:hidden}.type-browser-modal .modal-body{width:100%;height:100%;grid-template-columns:repeat(auto-fill,104px);justify-content:start;overflow-y:auto}.type-browser-modal .type-favorite-button{top:8px;right:8px;width:24px;height:24px}.type-browser-modal .type-favorite-button svg{width:13px;height:13px}.modal-body{flex:1;padding:24px;overflow-y:auto;display:grid;grid-template-columns:repeat(auto-fill,minmax(80px,1fr));gap:12px;align-content:start}.modal-body::-webkit-scrollbar{width:10px}.modal-body::-webkit-scrollbar-thumb{background:#444;border-radius:5px}.modal-body .thumbnail-item{display:flex;flex-direction:column;align-items:center;gap:6px;cursor:pointer;padding:8px;border-radius:6px;border:1px solid transparent;transition:all .15s;background:#222}.modal-body .thumbnail-item:hover{border-color:#646cff;background:#646cff22;transform:translateY(-2px)}.modal-body .thumbnail-item.selected{border-color:#ff9800;background:#ff980022}.modal-body .thumbnail-item img{border-radius:4px;width:100%;height:auto;aspect-ratio:1 / 1;image-rendering:pixelated}.modal-body .thumbnail-item span{font-size:11px;color:#aaa;text-align:center;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#mobile-panel-tabs{display:none}@media(max-width:1365px){.header-links{max-width:46vw;overflow:hidden;white-space:nowrap}}@media(max-width:767px){.sheet-export-overlay{padding:8px}.sheet-export-dialog{width:100%;max-height:calc(100dvh - 16px);border-radius:12px}.sheet-export-header{gap:12px;padding:16px 15px 14px}.sheet-export-header h2{font-size:1.08rem}.sheet-export-header p{font-size:.68rem}.sheet-export-body{display:flex;flex-direction:column;overflow-y:auto}.sheet-export-preview-panel{padding:12px;border-right:0;border-bottom:1px solid #33333b}.sheet-export-preview-frame{min-height:190px}.sheet-export-preview-frame canvas{max-height:170px}.sheet-export-settings{padding:14px}.sheet-export-generate{margin-top:18px}.channel-pack-grid{gap:8px}.preset-library-body{padding:14px}.preset-library-save-panel{padding:12px}.preset-library-builtin-list{grid-template-columns:1fr}.preset-library-builtin-item{grid-template-columns:96px minmax(0,1fr)}.preset-library-save-row{grid-template-columns:1fr}.preset-library-item{align-items:stretch;flex-direction:column;gap:10px}.preset-library-item-actions button{flex:1}.type-browser-side .type-browser-toolbar{padding:9px 10px}.type-browser-side .type-browser-search,.type-browser-side .type-browser-category{height:34px}.type-browser-side .type-browser-search input,.type-browser-side .type-browser-category{font-size:11px}.type-browser-side .type-browser-modes button{height:28px;font-size:10px}.type-browser-side .type-browser-detail{min-height:72px}.type-browser-card .type-favorite-button{top:5px;right:5px;width:22px;height:22px}.type-browser-modal .type-browser-toolbar{display:flex;gap:7px;padding:9px 10px}.type-browser-modal .type-browser-detail{display:block;min-height:72px}.type-browser-modal .type-browser-detail p{margin-top:4px}.type-browser-modal .type-browser-tags{margin-top:6px}.type-browser-modal .modal-body{grid-template-columns:repeat(3,minmax(0,1fr))}.quick-start-overlay{padding:8px}.quick-start-dialog{width:100%;max-height:calc(100dvh - 16px);border-radius:12px}.quick-start-header{gap:12px;padding:16px 15px 14px}.quick-start-heading p{margin-top:5px;font-size:.73rem;line-height:1.45}.quick-start-close{width:34px;height:34px;flex-basis:34px}.quick-start-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:10px}.quick-start-card-media{height:80px}.quick-start-card-copy{min-height:138px;padding:10px}.quick-start-card-title{font-size:.8rem}.quick-start-card-description{font-size:.65rem;line-height:1.42}.quick-start-card-type{padding-top:7px;font-size:.54rem}.quick-start-toast{bottom:calc(112px + env(safe-area-inset-bottom));width:max-content;max-width:calc(100vw - 24px);text-align:center}#texture-create-app{height:100dvh;max-height:100dvh}#header{height:44px;min-height:44px;padding:0 8px;gap:8px}#header-left{min-width:0}#app-title{font-size:.9rem}.header-links,#texture-create-revenue-trigger{display:none!important}#header-right{margin-left:auto;gap:4px;min-width:0}#header-right .preset-file-action{display:none}.editor-command-group{gap:2px;padding-right:4px}.editor-command-btn{width:28px;min-width:28px;padding:0!important}.editor-save-status{font-size:.56rem}#header-right .header-btn{margin-left:0!important;padding:3px 6px!important;min-height:28px;font-size:.7rem!important;white-space:nowrap}#body{position:relative;display:block;flex:1 1 auto;min-height:0;width:100%;overflow:hidden}#body>#layer-panel,#body>#left-panel,#body>#type-panel-shell,#body>#center-column,#body>#right-panel{display:none}#mobile-panel-tabs{position:relative;z-index:1000;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));flex:0 0 calc(50px + env(safe-area-inset-bottom));min-height:calc(50px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);border-top:1px solid #3a3a3a;background:#181818;box-shadow:0 -4px 18px #00000073}.mobile-panel-tab{display:flex;min-width:0;min-height:50px;padding:4px 2px;border:0;border-radius:0;background:transparent;color:#888;flex-direction:column;align-items:center;justify-content:center;gap:1px;font:inherit;cursor:pointer}.mobile-panel-tab.is-active{color:#fff;background:#2d88ff22;box-shadow:inset 0 2px #2d88ff}.mobile-tab-icon{font-size:17px;line-height:1}.mobile-tab-label{max-width:100%;overflow:hidden;font-size:10px;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}#texture-create-app.mobile-view-preview #center-column{display:flex;width:100%;height:100%}#texture-create-app.mobile-view-preview #top-panel{order:2;height:54px;min-height:54px;padding:7px 8px;justify-content:flex-start;overflow-x:auto;overflow-y:hidden;border-top:1px solid #333;border-bottom:0}#texture-create-app.mobile-view-preview .dropdown-content{position:fixed;left:8px;top:auto;bottom:calc(108px + env(safe-area-inset-bottom));margin-top:0;margin-bottom:0}#texture-create-app.mobile-view-preview #canvas-area{order:1}#texture-create-app.mobile-view-preview #preview-canvas-container{width:min(512px,calc(100vw - 24px),calc(100dvh - 172px))}#texture-create-app.mobile-view-types #body{display:flex}#texture-create-app.mobile-view-types #type-panel-shell{display:flex;width:100%;height:100%}#texture-create-app.mobile-view-types .thumbnail-panel-wrapper,#texture-create-app.mobile-view-types .thumbnail-panel-wrapper.is-closed{width:100%;height:100%}#texture-create-app.mobile-view-types .thumbnail-side-panel{width:100%;min-width:0;border-left:0}#texture-create-app.mobile-view-types .thumb-toggle-tab{display:none}#texture-create-app.mobile-view-types #thumbnail-grid{grid-template-columns:repeat(5,minmax(0,1fr));padding:8px 4px 24px}#texture-create-app.mobile-view-types .thumbnail-item{padding:8px 2px}#texture-create-app.mobile-view-types .thumbnail-item img{width:min(48px,calc(20vw - 12px));height:min(48px,calc(20vw - 12px))}#texture-create-app.mobile-view-settings #body{display:block;overflow-x:hidden;overflow-y:auto;background:#1a1a1a}#texture-create-app.mobile-view-settings #left-panel,#texture-create-app.mobile-view-settings #right-panel{display:block;width:100%;height:auto;max-height:none;overflow:visible;border:0;padding-bottom:12px}#texture-create-app.mobile-view-settings #right-panel{border-top:8px solid #111}#texture-create-app.mobile-view-layers #body{display:flex}#texture-create-app.mobile-view-layers #layer-panel{display:flex;width:100%;height:100%;border-right:0}#texture-create-app.mobile-view-layers #layer-list-container{padding:12px}#texture-create-app.mobile-view-layers .layer-item{min-height:56px;padding:8px 10px}#texture-create-app.mobile-view-layers .layer-thumb-wrap{width:40px;height:40px}.modal-overlay{width:100dvw;height:100dvh;padding:12px}.modal-header{height:44px;padding:0 14px}.modal-body{padding:12px;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}}
