.tf-export-overlay{position:fixed;inset:0;z-index:99999;background:#000a;display:flex;align-items:center;justify-content:center;padding:20px}.tf-export-dialog{background:#202831;color:#e8edf2;border:1px solid #53616d;border-radius:10px;padding:22px;max-width:510px;width:100%;max-height:90vh;overflow:auto;box-shadow:0 18px 50px #0009}.tf-export-dialog h2{margin:0 0 10px}.tf-export-dialog p{font-size:13px;color:#aebdca}.tf-export-field{display:flex;flex-direction:column;gap:6px;margin:12px 0;font-size:13px}.tf-export-field input,.tf-export-field select{width:100%;box-sizing:border-box;padding:9px;background:#131b23;color:#eef;border:1px solid #566575;border-radius:5px}.tf-export-check{display:inline-flex;gap:5px;align-items:center;margin:10px 13px 10px 0;font-size:13px}.tf-export-buttons{display:flex;justify-content:flex-end;gap:9px;margin-top:16px}.tf-export-buttons button{padding:8px 15px;cursor:pointer}

.tf-export-channels{display:flex;flex-wrap:wrap;gap:4px 12px}.tf-export-channels .tf-export-check{margin:6px 0}

/* Stage 58.3.3: source-aligned compact export previews. */
.tf-export-dialog:has(.tf-export-source-grid){max-width:760px}
.tf-export-source-grid{display:grid;grid-template-columns:minmax(0,1fr) 112px;gap:10px 16px;align-items:center}
.tf-export-source-grid .tf-export-field{margin:0;min-width:0}
.tf-export-preview-card{background:#17212a;border:1px solid #465566;border-radius:6px;padding:5px;min-height:115px;display:flex;flex-direction:column;gap:3px}
.tf-export-preview-card canvas{display:block;width:96px;height:96px;max-width:100%;object-fit:contain;cursor:zoom-in;background:#10161c;border-radius:3px}
.tf-export-preview-card span{font-size:10px;color:#9bcdb3;overflow-wrap:anywhere}
.tf-export-preview-card.tf-preview-error span{color:#f2a2a2}
.tf-export-preview-card.tf-preview-disabled{opacity:.42}
.tf-export-preview-zoom{position:fixed;inset:0;z-index:100001;background:#000d;display:flex;align-items:center;justify-content:center;padding:24px;cursor:zoom-out}
.tf-export-preview-zoom canvas{max-width:95vw;max-height:90vh;object-fit:contain;image-rendering:auto}
@media(max-width:580px){.tf-export-source-grid{grid-template-columns:minmax(0,1fr) 104px;gap:8px}.tf-export-preview-card{min-height:107px}.tf-export-preview-card canvas{width:88px;height:88px}}

/* Compact side-by-side previews for Simple Output. */
.tf-simple-export-dialog{max-width:430px;padding:18px}
.tf-simple-preview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-width:308px;margin:12px auto 6px}
.tf-simple-preview-card{display:flex;flex-direction:column;gap:6px;min-width:0;color:#b8c8d5;font-size:12px;text-align:center}
.tf-simple-preview-card canvas{display:block;width:100%;max-width:140px;aspect-ratio:1;height:auto;margin:auto;border:1px solid #50606d;border-radius:5px;background:#131b23}
.tf-simple-preview-unavailable canvas{opacity:.3}
.tf-simple-texture-hint{margin:4px auto 8px!important;text-align:center;font-size:12px!important;max-width:320px}
.tf-simple-texture-hint[hidden]{display:none}
