#textureGeneratorView{--tg-accent:#ece3c2;--tg-line:#333a45;--tg-panel:#191d24;--tg-muted:#a6afbf}
.tg-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:24px;align-items:start}
.tg-panel{background:var(--tg-panel);border:1px solid var(--tg-line);border-radius:14px;padding:20px;min-width:0}
.tg-form label,.tg-feedback-label{display:grid;gap:8px;margin-bottom:16px;font-size:14px;color:var(--tg-muted)}
.tg-form input,.tg-form select,.tg-form textarea,.tg-feedback{width:100%;box-sizing:border-box;background:#11151c;border:1px solid #414957;border-radius:8px;color:#eef1f5;padding:11px;font:inherit}
.tg-form textarea,.tg-feedback{resize:vertical;line-height:1.5}
.tg-form details{margin:16px 0}.tg-form details label{margin-top:12px}.tg-form summary{cursor:pointer;color:var(--tg-muted);font-size:13px}
.tg-button{border:1px solid var(--tg-line);border-radius:8px;background:#252b35;color:#eef1f5;padding:11px 16px;font:inherit;cursor:pointer}
.tg-button:hover:not(:disabled){border-color:var(--tg-accent)}.tg-button:disabled{opacity:.45;cursor:default}
.tg-primary{background:var(--tg-accent);color:#20232a;border-color:var(--tg-accent)}.tg-danger{color:#efb3ab}
.tg-actions,.tg-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.tg-actions{margin:16px 0}.tg-toolbar{justify-content:space-between;margin-bottom:14px}
.tg-status{color:var(--tg-muted);line-height:1.5;margin:0 0 18px;min-height:24px}.tg-status[data-error=true]{color:#efb3ab}
.tg-steps{list-style:none;padding:0;margin:22px 0 0;display:grid;gap:12px}.tg-steps li{display:flex;align-items:center;gap:10px;color:var(--tg-muted);font-size:14px}
.tg-step-num{width:24px;height:24px;border-radius:50%;background:#2b313b;display:grid;place-items:center;font-size:12px}.tg-steps .active{color:var(--tg-accent)}.tg-steps .active .tg-step-num,.tg-steps .passed .tg-step-num{background:var(--tg-accent);color:#20232a}.tg-steps .passed{color:#d7dcc5}
.tg-candidates{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.tg-candidates.tg-single{grid-template-columns:minmax(0,1fr)}
.tg-candidate{padding:14px;border:1px solid var(--tg-line);border-radius:12px;background:#151920;min-width:0}.tg-candidate.selected{border-color:var(--tg-accent)}
.tg-candidate h4{font-size:14px;margin:0 0 12px}.tg-candidate .tg-button{width:100%;margin-top:12px}.tg-image{height:150px;display:grid;place-items:center;overflow:auto;border-radius:8px}
.tg-checker{background-color:#20252d;background-image:conic-gradient(#2b313b 25%,transparent 0 50%,#2b313b 0 75%,transparent 0);background-size:16px 16px}
.tg-image img{width:128px;height:128px;image-rendering:pixelated}.tg-placeholder{color:var(--tg-muted);font-size:13px;text-align:center;padding:12px;line-height:1.5}
.tg-previews{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:16px;margin-top:14px}.tg-preview{min-width:0;margin:0}.tg-preview figcaption{color:var(--tg-muted);font-size:13px;margin-bottom:10px}.tg-canvas-wrap{overflow:auto;display:grid;place-items:center;padding:16px;min-height:180px;border-radius:8px}.tg-preview canvas{image-rendering:pixelated;display:block;flex-shrink:0}
.tg-switch{font-size:13px;color:var(--tg-muted);display:flex;align-items:center;gap:8px}.tg-switch select{background:#252b35;color:#fff;border:1px solid var(--tg-line);border-radius:6px;padding:5px}
.tg-prompt{font-size:12px;color:var(--tg-muted);margin-top:12px}.tg-prompt summary{cursor:pointer}.tg-prompt pre{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5;font:inherit}
.tg-source-links{display:flex;gap:12px;flex-wrap:wrap;margin-top:12px;font-size:12px}.tg-source-links a,.tg-set a{color:var(--tg-accent)}
.tg-set{display:flex;align-items:center;gap:18px;padding:16px 0;border-bottom:1px solid var(--tg-line);min-width:0}.tg-set>img{width:64px;height:64px;object-fit:contain;image-rendering:pixelated;border-radius:6px}.tg-set h4{margin:0 0 6px}.tg-set .muted{font-size:13px}.tg-set-assets{display:flex;gap:12px;flex-wrap:wrap;margin-top:10px;font-size:12px}.tg-archive{margin-top:24px}
.tg-empty{color:var(--tg-muted);padding:24px 0;line-height:1.6}.tg-heading{margin:0 0 16px}.tg-review-note{font-size:13px;color:var(--tg-muted);line-height:1.5}
@media(max-width:950px){.tg-layout{grid-template-columns:1fr}.tg-steps{grid-template-columns:repeat(3,1fr)}.tg-form{display:grid;grid-template-columns:1fr 1fr;column-gap:18px}.tg-form .tg-wide{grid-column:1/-1}}
@media(max-width:620px){.tabs{flex-wrap:wrap}.tg-form{display:block}.tg-candidates{grid-template-columns:1fr}.tg-steps{grid-template-columns:1fr 1fr}.tg-previews{grid-template-columns:1fr}.tg-set{align-items:flex-start}.tg-panel{padding:16px}}


.tg-step-link{display:flex;align-items:center;gap:10px;width:100%;padding:5px 0;text-align:left;background:none;border:0;color:inherit;font:inherit;cursor:pointer;border-radius:5px}.tg-step-link .tg-step-num{flex-shrink:0}.tg-step-link:hover:not(:disabled){color:var(--tg-accent);text-decoration:underline}.tg-step-link:focus-visible{outline:2px solid var(--tg-accent);outline-offset:4px}.tg-step-link:disabled{cursor:default}

.tg-set{display:grid;grid-template-columns:minmax(240px,1fr) minmax(0,2fr);gap:18px}.tg-set-open{display:flex;align-items:center;gap:18px;text-align:left;background:none;color:inherit;border:1px solid transparent;border-radius:8px;padding:8px;font:inherit;cursor:pointer;min-width:0}.tg-set-open:hover,.tg-set-open:focus-visible{border-color:var(--tg-accent);outline:none}.tg-set-open strong{display:block;margin-bottom:6px;overflow-wrap:anywhere}.tg-set-open .muted{display:block}.tg-set-icon{display:grid;place-items:center;width:64px;height:64px;border-radius:6px;flex-shrink:0}.tg-set-icon img{width:64px;height:64px;object-fit:contain;image-rendering:pixelated}.tg-set-type{display:block;color:var(--tg-muted);font-size:13px;margin-bottom:6px}.tg-set-assets{margin:0}@media(max-width:620px){.tg-set{grid-template-columns:1fr}}

.tg-form [hidden]{display:none!important}.tg-reference-preview{display:flex;align-items:center;gap:10px}.tg-reference-preview img{width:64px;height:64px;object-fit:contain;image-rendering:pixelated;border:1px solid var(--border,#544d40);border-radius:6px}

#tgAutoFloorPanel[hidden]{display:none}#tgAutoFloor{width:100%}#tgAutoFloorPanel{margin-top:18px}


#tgProperties,#tgUsage{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px}#tgUsage>p{grid-column:1/-1}#tgTransitions{min-height:110px}#tgObjectFields{display:grid;grid-template-columns:1fr 1fr;gap:12px}[hidden]{display:none!important}
