/* Reliable uploads (docs/upload-plan.md): the file list PieceUpload.list() draws. */
.pu-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.pu-list:empty { display: none; }
.pu-item { border: 1px solid #dfe3e8; border-radius: 8px; padding: 8px 10px; background: #fff; font-size: 13px; line-height: 1.35; }
.pu-top { display: flex; align-items: center; gap: 8px; }
.pu-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: #1f2933; }
.pu-size { color: #616e7c; white-space: nowrap; }
.pu-remove { border: 0; background: none; font-size: 20px; line-height: 1; color: #616e7c; cursor: pointer; padding: 0 2px; }
.pu-remove:hover, .pu-remove:focus-visible { color: #b42318; }
.pu-bar { height: 6px; border-radius: 3px; background: #edf0f3; margin: 6px 0 4px; overflow: hidden; }
.pu-bar span { display: block; height: 100%; width: 0; background: #0c2e16; transition: width .3s ease; }
.pu-msg { color: #52606d; min-height: 1em; }
.pu-item[data-state="retrying"] .pu-msg { color: #8a5a00; }
.pu-item[data-state="retrying"] .pu-bar span { background: #c98a00; }
.pu-item[data-state="done"] .pu-msg { color: #157f3b; }
.pu-item[data-state="done"] .pu-bar span { background: #157f3b; }
.pu-item[data-state="failed"] { border-color: #f1b5ae; background: #fff8f7; }
.pu-item[data-state="failed"] .pu-msg { color: #b42318; }
.pu-item[data-state="failed"] .pu-bar { display: none; }
.pu-wait { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; background: #fff7e0; color: #6b4a00; font-size: 13px; }
.pu-skip { border: 1px solid #c98a00; background: #fff; color: #6b4a00; border-radius: 6px; padding: 4px 10px; font-size: 13px; cursor: pointer; }
.pu-skip:hover, .pu-skip:focus-visible { background: #fdecc0; }
