.round7-upload-list {
  display: grid;
  gap: var(--space-2);
  margin: var(--space-2) 0 0;
  padding: 0;
  list-style: none;
}

.round7-upload-list:empty { display: none; }

.round7-upload-list > li {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--surface);
  overflow-wrap: anywhere;
}

.round7-upload-list > li[data-upload-outcome="saved"] {
  border-color: var(--accent-ink);
}

.round7-upload-list > li[data-upload-outcome="failed"],
.photo-edit .photo-edit-message.round7-upload-failed,
.round7-gallery-removal.round7-upload-failed {
  border-color: #a2774d;
  background: #fdf2e5;
  color: #633c1e;
}

body #main .round7-gallery-item {
  min-width: 0;
}

.round7-gallery-item > [data-gallery-image-actions] {
  position: relative;
}

body #main .round7-gallery-remove {
  position: absolute;
  inset: var(--space-1) var(--space-1) auto auto;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
}

.round7-gallery-remove svg { width: 18px; height: 18px; }

.round7-gallery-removal {
  display: grid;
  justify-items: start;
  align-content: start;
  gap: var(--space-2);
  min-height: 100%;
  padding: var(--space-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--surface);
}

.round7-gallery-removal p { margin: 0; }

.round7-gallery-item .tonmio-photo-confirm {
  border-color: var(--accent-ink);
  background: var(--accent-soft);
}

.round7-gallery-item .tonmio-photo-confirm .tonmio-photo-actions button {
  width: 100%;
}

.photo-edit .photo-edit-message.round7-upload-failed {
  padding: var(--space-2);
  border-style: solid;
  border-width: 1px;
  border-radius: var(--radius);
}

.round7-upload-list [data-upload-action] { justify-self: start; }

.round7-upload-list progress,
.photo-edit-message progress {
  display: block;
  width: 100%;
  margin-block-start: var(--space-1);
  accent-color: var(--accent-ink);
}
