/* fx-progress: the file being imported fills with a soft light of the effect as it goes; a 2px line gives the exact share */
.cx-upload { display: grid; gap: var(--s-4); width: min(100%, 560px); padding: var(--s-5); isolation: isolate; }
.cx-upload__head { display: flex; align-items: center; gap: var(--s-3); padding: 0 var(--s-2); min-height: 28px; }
.cx-upload__title { font: 500 var(--t-body)/1.3 var(--font-text); margin: 0; }
.cx-upload__count { margin-left: auto; font-size: var(--t-label); color: var(--muted); font-variant-numeric: tabular-nums; }
.cx-upload__head .cx-pause--inline { margin-left: 0; }
.cx-upload__list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.cx-upload__row {
  position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr) 24px; align-items: center; gap: 12px;
  height: 56px; padding: 0 12px; border-radius: var(--r-sm); background: var(--bg); border: 1px solid var(--cx-line);
}
.cx-upload__row > * { position: relative; z-index: 2; }
.cx-upload__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-md); background: var(--cx-panel); color: var(--muted); }
.cx-upload__icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.cx-upload__text { display: grid; gap: 2px; min-width: 0; }
.cx-upload__name { font-size: var(--t-small); line-height: 1.3; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-upload__meta { font-size: 12px; line-height: 1.3; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cx-upload__state { width: 20px; height: 20px; border-radius: 99px; border: 1.5px solid var(--cx-line-2); justify-self: end; }
.cx-upload__row.is-busy .cx-upload__state { border-color: var(--cx-line-2); border-top-color: var(--accent); animation: cx-upload-spin .9s linear infinite; }
.cx-upload__row.is-done .cx-upload__state { border: 0; background: var(--action); position: relative; }
.cx-upload__row.is-done .cx-upload__state::after {
  content: ""; position: absolute; left: 6px; top: 6px; width: 8px; height: 4.5px;
  border-left: 1.75px solid var(--action-ink); border-bottom: 1.75px solid var(--action-ink); transform: rotate(-45deg);
}
@keyframes cx-upload-spin { to { transform: rotate(360deg); } }
.cx-upload__line {
  position: absolute !important; left: 12px; right: 12px; bottom: -1px; height: 2px; border-radius: 2px; z-index: 3 !important;
  background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); opacity: 0;
}
.cx-upload__row.is-busy .cx-upload__line { opacity: 1; }
.cx-upload__fx { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .9; }
@media (prefers-reduced-motion: reduce) { .cx-upload__row.is-busy .cx-upload__state { animation: none; } }
@media (max-width: 479px) { .cx-upload { padding: var(--s-3); } .cx-upload__head { padding: var(--s-2) var(--s-2) 0; } }
