.upload-panel .upload-status {
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.homepage-previews {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: 270px;
  overflow-y: auto;
  margin: 14px 0 0;
  padding: 4px;
  list-style: none;
  text-align: left;
}

.homepage-preview {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 5px 10px;
  padding: 10px;
  border: 1px solid #dceaff;
  border-radius: 10px;
  background: #fff;
}

.homepage-thumbnail {
  grid-row: span 2;
  width: 56px;
  height: 56px;
  border-radius: 6px;
  object-fit: contain;
  background: repeating-conic-gradient(#e8edf4 0 25%, #fff 0 50%) 0 / 12px 12px;
}

.homepage-file-name {
  margin: 0 0 3px;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.upload-panel .homepage-file-meta {
  font-size: 11px;
}

.homepage-remove {
  justify-self: start;
  min-height: 28px;
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: #005aff;
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.homepage-actions {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #dceaff;
}

.homepage-action-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 8px;
  margin-top: 10px;
}

.homepage-action-buttons .outline-link {
  min-height: 44px;
  border-radius: 9px;
  padding: 7px 12px;
}

.homepage-action-buttons small {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  font-weight: 400;
}

.homepage-action-buttons [aria-expanded="true"] {
  background: #eaf3ff;
}

.upload-panel button:disabled {
  cursor: not-allowed;
  opacity: .65;
}

.upload-panel[aria-busy="true"] button:disabled {
  cursor: wait;
}

.homepage-convert-options,
.homepage-upload-fallback {
  margin-top: 12px;
}

.homepage-convert-options .outline-link,
.homepage-upload-fallback .outline-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}

.upload-panel #homepage-convert-help {
  margin-top: 6px;
  font-size: 11px;
}

@media (max-width: 600px) {
  .homepage-previews {
    grid-template-columns: 1fr;
    max-height: 250px;
  }

  .homepage-remove {
    min-height: 32px;
  }
}
