.to-upload-root{display:flex;flex-direction:column;gap:.75rem}.to-upload-dropzone{border:2px dashed var(--th-border);background:var(--th-bg-elevated);border-radius:.5rem;padding:2rem 1rem;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;cursor:pointer;transition:background .15s ease,border-color .15s ease}.to-upload-dropzone--active{border-color:var(--th-text-secondary);background:var(--th-bg-muted)}.to-upload-dropzone-icon{font-size:1.75rem;color:var(--th-text-faint)}.to-upload-dropzone-text{font-size:.875rem;color:var(--th-text-secondary)}.to-upload-browse{color:#3b82f6;text-decoration:underline;cursor:pointer}.to-upload-file-input{display:none}.to-upload-list{display:flex;flex-direction:column;gap:.5rem;max-height:18rem;overflow-y:auto}.to-upload-row{background:var(--th-bg-surface);border:1px solid var(--th-border-muted);border-radius:.5rem;padding:.5rem .75rem;display:flex;flex-direction:column;gap:.375rem}.to-upload-row-main{display:flex;align-items:center;gap:.625rem}.to-upload-badge{flex-shrink:0;font-size:.625rem;font-weight:700;padding:.125rem .375rem;border-radius:.25rem;color:#fff;letter-spacing:.02em}.to-upload-badge--pdf{background:#dc2626}.to-upload-badge--doc{background:#2563eb}.to-upload-badge--img{background:#16a34a}.to-upload-badge--generic{background:#6b7280}.to-upload-filename{flex:1 1 8rem;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.8125rem;color:var(--th-text-primary)}.to-upload-progress-area{flex:1 1 auto;display:flex;align-items:center;gap:.5rem;min-width:8rem}.to-upload-progress-track{flex:1 1 auto;height:.375rem;border-radius:.25rem;background:var(--th-bg-muted);overflow:hidden}.to-upload-progress-fill{--to-upload-progress: 0%;height:100%;width:var(--to-upload-progress);background:#3b82f6;transition:width .15s ease}.to-upload-progress-pct{flex-shrink:0;font-size:.6875rem;color:var(--th-text-faint);width:2.25rem;text-align:right}.to-upload-filesize{flex:0 0 auto;width:8rem;font-size:.75rem;color:var(--th-text-muted)}.to-upload-error-text{font-size:.75rem;color:#dc2626}.to-upload-retry-btn{font-size:.6875rem;color:#3b82f6;text-decoration:underline;cursor:pointer;background:none;border:none;padding:0}.to-upload-trash-btn{flex-shrink:0;background:none;border:none;cursor:pointer;color:var(--th-text-muted);padding:.25rem}.to-upload-trash-btn:hover{color:#dc2626}.to-upload-row-desc{display:flex}.to-upload-desc-input{width:100%;background:var(--th-bg-elevated);border:1px solid var(--th-border-muted);border-radius:.375rem;padding:.375rem .5rem;font-size:.8125rem;color:var(--th-text-primary)}.to-upload-footer{display:flex;justify-content:space-between;align-items:center;margin-top:.25rem}.to-upload-cancel-btn{background:none;border:none;color:var(--th-text-secondary);text-decoration:underline;cursor:pointer;font-size:.8125rem;padding:0}
