.upload-panel{min-height:278px}
.upload-preview{display:grid;gap:12px}
.preview-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-height:310px;overflow:auto;padding:2px}
.preview-card{position:relative;border:1px solid var(--line);border-radius:12px;background:#fafafe;overflow:hidden;min-width:0}
.preview-card img{display:block;width:100%;height:112px;object-fit:cover;background:#eeedf6}
.preview-card-info{display:grid;gap:3px;padding:8px 9px 10px;min-width:0}
.preview-card-info b{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.preview-card-info small{font-size:11px;color:var(--muted)}
.preview-index{position:absolute;top:7px;left:7px;min-width:23px;height:23px;padding:0 6px;border-radius:12px;background:#242238d9;color:#fff;font-size:11px;display:grid;place-items:center}
.preview-remove{position:absolute;top:7px;right:7px;width:25px;height:25px;border-radius:50%;background:#fff;color:#e65968;box-shadow:0 2px 8px #17172a33;font-weight:700}
.upload-actions{display:flex;gap:9px;align-items:center}
.add-more,.upload-actions button{position:relative;padding:9px 12px;border-radius:9px;font-size:13px;cursor:pointer}
.add-more{background:var(--soft);color:var(--violet);font-weight:700}
.add-more input{position:absolute;inset:0;opacity:0;cursor:pointer}
.upload-actions button{background:#fff0f1;color:#e65968}
.upload-tip{color:var(--muted);font-size:12px}
#uploadCount{color:var(--violet);letter-spacing:0}
.preview-card.replaceable{transition:background .15s,box-shadow .15s}
.preview-card.drag-replace{background:var(--soft);box-shadow:inset 0 0 0 3px var(--violet)}
.preview-replace-tip{position:absolute;left:7px;top:82px;padding:4px 6px;background:var(--paper);border:1px solid var(--ink);font-size:10px;font-weight:700;opacity:.88}
.style-upload-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.style-upload-slot{display:grid;grid-template-rows:auto 1fr auto;gap:9px;min-width:0;padding:12px;border:1px solid var(--ink);background:var(--paper)}
.style-slot-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.style-slot-head>div{display:flex;align-items:center;gap:8px;min-width:0}
.style-slot-head em{display:grid;place-items:center;min-width:38px;height:24px;padding:0 6px;background:var(--violet);border:1px solid var(--ink);font-size:11px;font-style:normal;font-weight:800}
.style-slot-head b{font-size:12px}
.style-slot-head>small{color:var(--muted);font-size:10px;text-align:right}
.style-slot-drop{position:relative;min-height:230px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;overflow:hidden;border:1.5px dashed var(--ink);background:var(--paper);cursor:pointer;text-align:center}
.style-slot-drop.drag{background:var(--soft);box-shadow:inset 0 0 0 3px var(--violet)}
.style-slot-drop input{position:absolute;inset:0;opacity:0;cursor:pointer}
.style-slot-drop img{width:100%;height:230px;display:block;object-fit:contain;background:#e9e3dc}
.style-slot-plus{display:grid;place-items:center;width:42px;height:42px;border:1px solid var(--ink);background:var(--violet);font-size:24px}
.style-slot-drop b{max-width:180px;font-size:12px}
.style-slot-drop small{color:var(--muted);font-size:10px}
.style-replace-tip{position:absolute;left:8px;right:8px;bottom:8px;padding:7px;background:rgba(247,243,238,.9);border:1px solid var(--ink);font-size:10px;font-weight:700}
.style-slot-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
.style-slot-foot small{overflow:hidden;color:var(--muted);font-size:10px;white-space:nowrap;text-overflow:ellipsis}
.style-slot-foot button{flex:0 0 auto;padding:5px 7px;border:1px solid var(--ink);background:var(--paper);font-size:10px}
.drop.compact{height:82px;flex-direction:row;justify-content:flex-start;padding:12px 16px}
.drop.compact .drop-icon{width:34px;height:34px;font-size:20px;flex:0 0 auto}
.drop.compact small{margin-left:auto}
@media(max-width:1100px){.preview-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.preview-list,.style-upload-grid{grid-template-columns:1fr}.drop.compact small{display:none}}
.production-style{margin:-2px 0 20px;padding:16px;border:1px solid #dedbea;border-radius:14px;background:#fafafe}
.production-title{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:12px}
.production-title small{color:var(--muted)}
.production-options{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.production-option{display:grid;grid-template-columns:auto 1fr;column-gap:9px;row-gap:4px;padding:14px;border:1.5px solid var(--line);border-radius:12px;cursor:pointer;color:var(--ink)}
.production-option.active{border-color:var(--violet);background:var(--soft)}
.production-option input{display:none}
.production-option span{grid-row:1/3;color:var(--violet);font-size:21px}
.production-option b{font-size:14px}
.production-option small{line-height:1.5}
.production-style p{margin:11px 2px 0;color:#66647b;font-size:12px}
@media(max-width:750px){.production-options{grid-template-columns:1fr}.production-title{display:grid}}
.ip-upload-section{margin-top:16px;padding-top:15px;border-top:1px solid var(--line);display:grid;gap:10px}
.ip-upload-head{display:flex;justify-content:space-between;gap:12px;align-items:start}
.ip-upload-head>div{display:grid;gap:5px}
.ip-upload-head b{font-size:13px}
.ip-upload-head b span{margin-left:5px;padding:2px 6px;border-radius:8px;background:var(--soft);color:var(--violet);font-size:10px}
.ip-upload-head small,.ip-upload-tip{color:var(--muted);font-size:11px;line-height:1.5}
.ip-upload-head em{font-style:normal;color:var(--violet);font-size:12px;white-space:nowrap}
.ip-drop{position:relative;display:grid;place-items:center;min-height:54px;border:1.5px dashed #cbc8df;border-radius:10px;background:#fbfbfe;color:var(--violet);font-size:12px;font-weight:700;cursor:pointer}
.ip-drop.drag{border-color:var(--violet);background:var(--soft)}
.ip-drop input{position:absolute;inset:0;opacity:0;cursor:pointer}
.ip-preview-list{grid-template-columns:repeat(3,minmax(0,1fr));max-height:220px}
.ip-preview-list .preview-card img{height:88px}
.ip-preview-list .preview-replace-tip{top:58px}
.ip-preview-list .ip-description{height:58px;min-height:58px;padding:7px 8px;font-size:11px;line-height:1.4;resize:vertical}
@media(max-width:1100px){.ip-preview-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
