.staging-gallery-panel { --staging-thumb-w: 54px; --staging-thumb-h: 72px; }

.staging-edit-thumb-cell { justify-content: center; }

.staging-image-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--staging-thumb-w);
  height: var(--staging-thumb-h);
  min-width: var(--staging-thumb-w);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #f7fbff;
  color: var(--muted);
  cursor: pointer;
}

.staging-image-frame:focus-visible { outline: 2px solid rgba(111, 169, 216, .45); outline-offset: 2px; }

.staging-image-frame .staging-table-thumb {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  object-fit: cover;
}

.staging-image-frame.is-empty { border-style: dashed; background: rgba(248, 251, 255, .92); }

.staging-image-plus { font-size: 24px; line-height: 1; font-weight: 600; color: rgba(57, 125, 170, .72); }

.staging-image-edit-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(15, 23, 42, .72);
  color: #fff;
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
}

.staging-image-upload-status {
  position: absolute;
  inset: auto 4px 4px;
  display: grid;
  gap: 3px;
  padding: 4px;
  border-radius: 5px;
  background: rgba(15, 23, 42, .72);
  color: #fff;
  font-size: 9px;
  font-weight: 780;
  line-height: 1.2;
}

.staging-image-upload-status span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.staging-image-upload-status i {
  display: block;
  width: 100%;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .28);
}

.staging-image-upload-status i::before {
  content: "";
  display: block;
  width: var(--staging-upload-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: #fff;
  transition: width .18s ease;
}

.staging-image-upload-status[data-status="error"] { background: rgba(190, 18, 60, .86); }

.staging-image-upload-status[data-status="error"] i { display: none; }

.staging-image-upload-status[data-status="done"] { background: rgba(22, 101, 52, .84); }

@container (max-width: 980px) {
  .staging-gallery-panel { --staging-thumb-w: 44px; --staging-thumb-h: 60px; }
  .staging-image-edit-badge { top: 3px; right: 3px; min-width: 16px; height: 16px; font-size: 9px; }
}
