/* ANFLX 智能修图界面层 r1398：仅还原 2026-10-18 备份中的可见布局。 */
.sz-topline{grid-template-columns:minmax(0,1fr) minmax(0,2fr)}
.sz-wrap{grid-template-columns:minmax(0,1fr) minmax(0,2fr)}
.sz-pv-main.is-fixed-preview{width:100%;height:clamp(360px,52vh,620px);min-height:360px;max-height:620px;aspect-ratio:auto;flex:0 0 auto}
.sz-pv-main.is-fixed-preview.is-empty,.sz-pv-main.is-fixed-preview.has-img{width:100%;height:clamp(360px,52vh,620px);min-height:360px;max-height:620px;aspect-ratio:auto}
.sz-pv-main.is-fixed-preview img{max-width:100%;max-height:100%;width:auto;height:auto;display:block;object-fit:contain;border-radius:10px;cursor:zoom-in}
/* r1700 透明底PNG独立批量画布：复用图片转PSD视觉，不包含模型选择 */
.transparent-png-host{display:none;width:100%;min-width:0}
.sz-right.tpdf-active>.transparent-png-host{display:block}
.sz-right.tpdf-active>:not(.transparent-png-host){display:none!important}
.tpdf-points{white-space:nowrap;border:0;border-radius:0;padding:0;color:#8fe5f2!important;font-size:10.5px!important;background:transparent;font-weight:600}
.tpdf-stage-shell{max-height:64vh;overflow:auto}
.ark-toolbar.tpdf-toolbar{display:flex;align-items:flex-start;justify-content:flex-start;flex-direction:column;gap:6px;flex-wrap:nowrap;width:100%;box-sizing:border-box;padding:0}
.tpdf-toolbar-main{display:flex;align-items:center;gap:6px;min-width:0;width:100%;flex-wrap:nowrap}
.tpdf-toolbar-actions{display:flex;align-items:center;justify-content:flex-start;gap:5px;margin-left:0;flex:0 0 auto;flex-wrap:nowrap}.tpdf-upload-btn{padding:5px 7px!important;font-size:10px!important;line-height:1.2!important}
@media(min-width:901px){.tpdf-card .ark-body{grid-template-columns:minmax(0,1fr) minmax(0,2fr)}}
.tpdf-queue{display:grid;grid-template-columns:repeat(auto-fill,minmax(158px,1fr));gap:9px;width:100%;padding:4px}
.tpdf-queue[hidden]{display:none}
.tpdf-queue-item{position:relative;display:flex;align-items:center;gap:8px;min-width:0;padding:8px;border:1px solid #29405f;border-radius:10px;background:#0b1726}
.tpdf-queue-item.processing{border-color:#d97706;background:#1d1709}
.tpdf-queue-item.done{border-color:#16835f;background:#0a1d19}
.tpdf-queue-item.err{border-color:#a33b4b;background:#211015}
.tpdf-queue-thumb{width:58px;height:58px;flex:0 0 58px;display:flex;align-items:center;justify-content:center;border:1px solid #29405f;border-radius:8px;overflow:hidden;background-color:#fff;background-image:linear-gradient(45deg,#d9e0e8 25%,transparent 25%),linear-gradient(-45deg,#d9e0e8 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#d9e0e8 75%),linear-gradient(-45deg,transparent 75%,#d9e0e8 75%);background-size:12px 12px;background-position:0 0,0 6px,6px -6px,-6px 0}
.tpdf-queue-thumb img{display:block;width:100%;height:100%;object-fit:contain}.tpdf-thumb-pending{display:flex;align-items:center;justify-content:center;width:100%;height:100%;padding:4px;color:#6f879e;font-size:9px;text-align:center;background:#0a1424}
.tpdf-queue-meta{min-width:0;flex:1}
.tpdf-queue-meta b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#dceafa;font-size:11.5px}
.tpdf-queue-meta span{display:block;margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;color:#8299b3}
.tpdf-item-status.busy{color:#fcd34d}.tpdf-item-status.ok{color:#76d7a7}.tpdf-item-status.err{color:#ff9ca9}
.tpdf-item-remove{position:absolute;right:5px;top:5px;padding:2px 5px;border:1px solid #3a526f;border-radius:6px;background:#101f31;color:#a9bed6;font-size:9px;cursor:pointer}
.tpdf-item-remove:hover{border-color:#7f3944;color:#ffb4c0;background:#2a151b}
.tpdf-results{display:flex;flex-direction:column;gap:9px;max-height:58vh;overflow:auto}
.tpdf-result-box{position:relative;display:flex;align-items:center;justify-content:center;min-height:170px;max-height:34vh;overflow:auto;border:1px solid #29405f;border-radius:10px;cursor:zoom-in;background-color:#fff;background-image:linear-gradient(45deg,#d9e0e8 25%,transparent 25%),linear-gradient(-45deg,#d9e0e8 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#d9e0e8 75%),linear-gradient(-45deg,transparent 75%,#d9e0e8 75%);background-size:18px 18px;background-position:0 0,0 9px,9px -9px,-9px 0}
.tpdf-result-box img{display:block;width:100%;height:auto;max-height:32vh;object-fit:contain}.tpdf-result-box>.tpdf-thumb-pending{min-height:160px;color:#475569;background:rgba(255,255,255,.82)}
.tpdf-result-empty{display:flex;align-items:center;justify-content:center;width:100%;min-height:250px;padding:16px;color:#64748b;font-size:11.5px;text-align:center;background:rgba(255,255,255,.88)}
.tpdf-result-card{position:relative;display:flex;flex-direction:column;gap:7px;padding:8px;border:1px solid #29405f;border-radius:10px;background:#0b1726}
.tpdf-result-select{position:absolute;right:8px;top:8px;z-index:3;display:inline-flex;align-items:center;gap:4px;padding:4px 7px;border:1px solid #2b4a67;border-radius:999px;background:rgba(7,18,31,.9);color:#b9d7ea;font-size:10px;cursor:pointer}
.tpdf-result-select input{accent-color:#22d3ee;margin:0}
.tpdf-result-meta{display:flex;align-items:baseline;justify-content:space-between;gap:8px;min-width:0}
.tpdf-result-meta b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#e2f5ff;font-size:11px}
.tpdf-result-meta span{color:#7f9ab0;font-size:9.5px;white-space:nowrap}
.tpdf-result-card>.lpdf-btn{width:100%}
@media(max-width:900px){.tpdf-queue{grid-template-columns:1fr}.tpdf-result-box{min-height:150px}.tpdf-result-empty{min-height:180px}.tpdf-points{white-space:normal;text-align:right}}
@media(max-width:620px){.lpdf-head{align-items:flex-start}.tpdf-toolbar{align-items:stretch}.tpdf-toolbar-main,.tpdf-toolbar-actions{width:100%;justify-content:flex-start}.tpdf-toolbar-actions{margin-left:0}}