.emalm-media-edit-modal .modal-dialog {
  margin: 40px auto;
  width: min(1100px, calc(100vw - 32px));
}

.emalm-media-edit-modal .modal-content {
  border: 1px solid #d3d3d3;
  border-radius: 16px;
  overflow: hidden;
}

.emalm-media-edit-header {
  background: linear-gradient(180deg, #fffceb 0%, #f7f7f7 100%);
  border-bottom: 1px solid #ddd;
  padding: 22px 24px 18px;
}

.emalm-media-edit-header .close {
  font-size: 30px;
  line-height: 1;
}

.emalm-media-edit-header .modal-title {
  font-size: 34px;
  font-weight: 700;
  margin: 0;
}

.emalm-media-edit-subtitle {
  color: #5a5a5a;
  margin: 8px 0 0;
}

.emalm-media-edit-alert {
  margin-bottom: 18px;
}

.emalm-media-edit-surface {
  background: transparent;
  box-shadow: none;
  margin: 0;
  padding: 0;
}

.emalm-media-edit-surface .emalm-upload-section {
  margin-left: 0;
  margin-right: 0;
}

.emalm-media-edit-preview {
  align-items: center;
  background: #f4f4f4;
  border: 1px solid #dbdbdb;
  border-radius: 12px;
  display: flex;
  gap: 16px;
  margin-bottom: 18px;
  overflow: hidden;
  padding: 14px;
}

.emalm-media-edit-preview img {
  background: #161616;
  border-radius: 10px;
  display: block;
  height: 92px;
  object-fit: cover;
  width: 148px;
}

.emalm-media-edit-preview-copy {
  display: grid;
  gap: 4px;
}

.emalm-media-edit-preview-copy span {
  color: #616161;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.emalm-media-edit-assets {
  display: grid;
  gap: 14px;
}

.emalm-media-edit-asset-row {
  align-items: center;
  background: #f6f6f6;
  border: 1px solid #d8d8d8;
  border-radius: 12px;
  display: grid;
  gap: 14px;
  grid-template-columns: 128px minmax(0, 1fr) auto;
  padding: 14px;
}

.emalm-media-edit-asset-row.is-removed {
  opacity: 0.5;
}

.emalm-media-edit-asset-thumb img {
  background: #161616;
  border-radius: 10px;
  display: block;
  height: 92px;
  object-fit: cover;
  width: 100%;
}

.emalm-media-edit-asset-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.emalm-media-edit-asset-copy span {
  color: #5f5f5f;
  font-size: 13px;
}

.emalm-media-edit-asset-actions {
  display: grid;
  gap: 8px;
}

.emalm-media-edit-file-input {
  max-width: 100%;
}

.emalm-media-edit-footer {
  background: #fafafa;
  border-top: 1px solid #ddd;
  padding: 16px 24px 22px;
}

.emalm-media-edit-modal .admin-button {
  background: #ffffff;
  border: 1px solid #c9c9c9;
  border-radius: 8px;
  color: #1f1f1f;
  font-weight: 600;
  padding: 8px 12px;
}

@media (max-width: 860px) {
  .emalm-media-edit-asset-row {
    grid-template-columns: 1fr;
  }

  .emalm-media-edit-asset-thumb img {
    height: 180px;
  }

  .emalm-media-edit-asset-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
