.upload-workflow{min-width:0;font-size:12px}.up-intro{display:flex;align-items:center;gap:8px;margin-bottom:10px}.up-intro h2{font-size:15px;line-height:1.3;margin:0}.up-help{display:inline-flex;align-items:center;flex-shrink:0}.up-section h3>.up-help{margin-left:auto}.up-pick{position:relative;display:flex;align-items:center;flex-direction:column;gap:7px;border:1px dashed #16d6ed75;background:#16d6ed06;border-radius:10px;padding:18px 12px;text-align:center;cursor:pointer}.up-pick>span{font-size:24px;color:var(--cyan,#16d6ed)}.up-pick strong{font-size:12px;color:var(--text,#f2f6f5)}.up-pick small{font-size:10px;color:var(--muted,#aab6bf)}.up-pick input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}.up-pick:focus-within{outline:2px solid var(--cyan,#16d6ed);outline-offset:3px}.up-message{font-size:12px;line-height:1.55;color:var(--cyan,#16d6ed);margin:10px 0;overflow-wrap:anywhere}.up-message:empty{display:none}.up-message.is-error{color:#ffb9b0}.up-file-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:3px 0 10px}.up-filename{font-size:11px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--muted,#aab6bf)}.up-change{font-size:10px;min-height:32px;padding:5px 0;border:0;background:none;color:var(--cyan,#16d6ed);flex-shrink:0}.up-section{border-top:1px solid var(--line,#ffffff24);padding-top:11px;margin-top:11px}.up-section h3{display:flex;align-items:center;gap:7px;font-size:12px;margin:0 0 7px}.up-section h3>.up-step{display:flex;align-items:center;justify-content:center;width:19px;height:19px;border:1px solid var(--line,#ffffff24);border-radius:50%;font-size:10px;color:var(--muted,#aab6bf);font-weight:400}.up-background-hint,.up-color-summary,.up-apply-hint{font-size:10px;color:var(--muted,#aab6bf);line-height:1.45;margin:5px 0}.up-background-hint{color:#b5dce3}.up-background-hint:empty,.up-apply-hint:empty{display:none}.up-comparison{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:7px}.up-choice{display:flex;align-items:stretch;flex-direction:column;border:1px solid var(--line,#ffffff24);padding:5px;border-radius:7px;min-width:0;background:var(--bg,#0e141a);text-align:left}.up-choice[aria-pressed=true]{border-color:var(--cyan,#16d6ed);box-shadow:inset 0 0 0 1px #16d6ed55}.up-choice strong{font-size:10px;line-height:1.3;margin:6px 2px 2px;font-weight:600;white-space:normal}.up-image{height:88px;display:flex;align-items:center;justify-content:center;border-radius:5px;overflow:hidden;background-color:#7d8e99;background-image:linear-gradient(45deg,#566875 25%,transparent 25%),linear-gradient(-45deg,#566875 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#566875 75%),linear-gradient(-45deg,transparent 75%,#566875 75%);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0}.up-image img{width:100%;height:100%;max-height:88px;object-fit:contain;padding:4px}.up-remove-placeholder{font-size:25px;color:#eaf7fa;filter:drop-shadow(0 1px 3px #0007)}.up-detected-colors{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:7px 0}.up-detected-color{display:inline-block;width:18px;height:18px;border:1px solid #ffffff4d;border-radius:50%;box-shadow:0 1px 3px #0003}.up-detected-colors small{font-size:9px;color:var(--muted,#aab6bf)}.up-reduction{border:1px solid #eabf7350;background:#eabf7309;padding:9px;border-radius:7px;margin-top:9px}.up-reduction-warning{font-size:11px;color:#e2c89f;line-height:1.45;margin:0 0 8px}.up-reduction>label:not(.up-approve){display:flex;align-items:center;gap:10px;font-size:11px;margin:0 0 9px}.up-reduction select{width:auto!important;flex:1;min-width:0;font-size:11px!important;padding:8px!important;min-height:35px!important;margin:0!important}.up-reduce{width:100%;font-size:11px;padding:10px;background:#26353e;border-color:#16d6ed50;color:var(--cyan,#16d6ed)}.up-approve{display:flex;align-items:flex-start;gap:8px;font-size:10px;line-height:1.5;color:var(--text,#f2f6f5);margin:9px 0 0}.up-approve input{width:16px;height:16px;accent-color:var(--cyan,#16d6ed);flex-shrink:0;margin:1px 0 0}.up-thread-mappings{display:flex;flex-direction:column;gap:5px;margin-top:8px}.up-thread-row{display:flex;align-items:center;gap:9px;margin:0!important}.up-thread-pair{display:flex;align-items:center;gap:5px;flex-shrink:0}.up-thread-pair>span:not(.up-thread-arrow){display:block;width:20px;height:20px;border:1px solid #ffffff55;border-radius:50%}.up-thread-arrow{font-size:10px;color:var(--muted,#aab6bf)}.up-thread-row select{font-size:10px!important;padding:8px 5px!important;min-height:36px!important;margin:0!important;min-width:0;width:100%;border-radius:6px}.up-final-preview{width:100%;height:120px;border:1px solid var(--line,#ffffff24);border-radius:8px;background:#334652;padding:9px;display:flex;align-items:center;justify-content:center}.up-final-preview img{max-width:100%;max-height:100%;object-fit:contain;filter:drop-shadow(0 1px 1px #0001)}.up-use{font-size:12px;margin-top:12px!important}.up-apply-hint{font-size:10px;text-align:center;margin-bottom:2px}.upload-workflow button:disabled{opacity:.45;cursor:not-allowed}.upload-workflow [hidden]{display:none!important}
@media(max-width:760px){.up-image{height:96px}.up-image img{max-height:96px}.up-final-preview{height:130px}.up-choice strong{font-size:11px}.up-thread-row select{font-size:12px!important;min-height:40px!important}.up-thread-pair>span:not(.up-thread-arrow){width:25px;height:25px}}
.up-processing-warnings{display:none}
/* In split-view mobile editing the working image is displayed above the
   sheet. Keep preparation controls compact without duplicating that image. */
@media (max-width:700px), (max-height:500px) and (pointer:coarse){
 body.mobile-tools-open .upload-workflow .up-comparison{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:6px}
 body.mobile-tools-open .upload-workflow .up-choice{align-items:center;justify-content:center;min-height:40px;padding:8px 7px;text-align:center}
 body.mobile-tools-open .upload-workflow .up-choice .up-image{display:none}
 body.mobile-tools-open .upload-workflow .up-choice strong{margin:0;font-size:12px;line-height:1.3}
 body.mobile-tools-open .upload-workflow .up-section.up-prepared-section{border:0;margin:6px 0 0;padding:0}
 body.mobile-tools-open .upload-workflow .up-prepared-section>h3,
 body.mobile-tools-open .upload-workflow .up-final-preview{display:none}
 body.mobile-tools-open .upload-workflow .up-processing-warnings:not([hidden]){display:block;font-size:11px;line-height:1.45;color:#e2c89f;margin:5px 0}
 body.mobile-tools-open .upload-workflow .up-intro{margin-bottom:6px}
 body.mobile-tools-open .upload-workflow .up-file-row{margin-bottom:6px}
 body.mobile-tools-open .upload-workflow .up-section{padding-top:8px;margin-top:8px}
}
