/* Attachments waiting to be saved, in the composer and in the editor. */

.draft {
  display: flex;
  gap: 0.5rem;
  margin: 0;
  padding: 0.5rem 0.5rem 0 0.25rem;   /* room for the remove buttons that stick out */
  overflow-x: auto;
  list-style: none;
  scrollbar-width: thin;
}
.draft-item {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  height: 4rem;
  max-width: 12rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  font-size: 0.8rem;
}
.draft-item img { width: 4rem; height: 100%; border-radius: 9px; object-fit: cover; display: block; }
.draft-item.file { padding: 0 2.25rem 0 0.6rem; }
.draft-item.file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.draft-item .remove {
  position: absolute;
  top: -0.45rem;
  right: -0.45rem;
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  min-height: 0;
  padding: 0;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
}
.draft-item .remove svg { width: 0.85rem; height: 0.85rem; }
.draft-item.file .remove { top: 50%; right: 0.35rem; transform: translateY(-50%); background: transparent; color: var(--muted); }
