.elevn-photo-composer-header {
  align-items: center;
  background: #101323;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 58px;
  padding: 0 16px;
}

.elevn-photo-composer-header .modal-title {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  text-align: center;
}

.elevn-photo-composer-close {
  filter: invert(1);
  margin: 0 !important;
  opacity: 0.82;
}

.elevn-photo-header-balance {
  display: block;
  height: 32px;
  width: 32px;
}

.elevn-photo-composer-body,
.elevn-photo-composer {
  background: #101323;
}

.elevn-photo-composer {
  color: #fff;
  min-height: 420px;
  padding: 18px 16px 24px;
}

.elevn-photo-destination {
  align-items: center;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  min-height: 70px;
  padding: 12px;
}

.elevn-photo-destination-picture {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  flex: 0 0 44px;
  height: 44px;
  object-fit: cover;
  width: 44px;
}

.elevn-photo-destination[data-destination-type="event"]
  .elevn-photo-destination-picture {
  border-radius: 11px;
}

.elevn-photo-destination[data-destination-type="fan-zone"]
  .elevn-photo-destination-picture {
  background: transparent;
  object-fit: contain;
  padding: 2px;
}

.elevn-photo-destination-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}

.elevn-photo-destination-label {
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.2;
  text-transform: uppercase;
}

.elevn-photo-destination-name {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.elevn-photo-stage {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  min-height: 300px;
  overflow: hidden;
  padding: 18px;
}

.elevn-photo-stage-copy {
  align-items: center;
  display: flex;
  flex-direction: column;
  padding: 26px 12px 20px;
  text-align: center;
}

.elevn-photo-stage-copy strong {
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}

.elevn-photo-stage-copy > span:last-child {
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  margin-top: 5px;
}

.elevn-photo-stage-icon {
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  display: flex;
  font-size: 24px;
  height: 58px;
  justify-content: center;
  margin-bottom: 14px;
  width: 58px;
}

.elevn-photo-attachments {
  margin: 0;
}

/*
 * Sngine's global .attachments rules force every li to 64x64px
 * (96x96px desktop) and apply legacy padding to li.add.
 *
 * Reset those dimensions only inside the ELEVN Photo composer.
 * Upload ownership and behaviour remain entirely native.
 */
.elevn-photo-attachments > ul {
  display: block;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.elevn-photo-attachments li {
  box-sizing: border-box;
  float: none !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

.elevn-photo-attachments li.loading {
  border-radius: 14px;
  min-height: 54px;
  overflow: hidden;
  position: relative;
}

.elevn-photo-attachments li.item {
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}

.elevn-photo-attachments li.item img {
  height: 100% !important;
  object-fit: cover;
  width: 100% !important;
}

.elevn-photo-add {
  align-items: center;
  background: rgba(255, 255, 255, 0.055);
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.82);
  display: flex;
  flex-direction: row;
  font-size: 13px;
  font-weight: 700;
  gap: 10px;
  justify-content: center;
  min-height: 58px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.elevn-photo-add .x-uploader,
.elevn-photo-add form.x-uploader {
  inset: 0;
  margin: 0;
  position: absolute;
  width: 100%;
}

.elevn-photo-add .js_x-uploader {
  font-size: 20px;
  margin: 0;
}

/*
 * Once native publisher-mini has rendered at least one real item,
 * elevn-photo-composer.js adds --has-media. Only then do we turn the
 * attachment list into the thumbnail grid.
 */
.elevn-photo-composer--has-media
  .elevn-photo-stage-copy {
  display: none;
}

.elevn-photo-composer--has-media
  .elevn-photo-attachments > ul {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.elevn-photo-composer--has-media
  .elevn-photo-attachments li.item,
.elevn-photo-composer--has-media
  .elevn-photo-attachments li.add {
  aspect-ratio: 1 / 1;
  min-height: 0;
}

.elevn-photo-composer--has-media
  .elevn-photo-add {
  flex-direction: column;
  gap: 8px;
}

@media (min-width: 768px) {
  .elevn-photo-composer {
    min-height: 470px;
    padding: 20px;
  }

  .elevn-photo-composer--has-media
    .elevn-photo-attachments > ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
