.detail-image-card.detail-image-loading .rich-content.source-rich {
  min-height: 260px;
}

.detail-image-status {
  display: none;
  min-height: 220px;
  margin: 16px 0 20px;
  border: 1px solid #d7e5dc;
  border-radius: 18px;
  background: #f4f8f5;
  color: #476056;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  text-align: center;
  padding: 28px;
}

.detail-image-loading .detail-image-status,
.detail-image-error .detail-image-status {
  display: flex;
}

.detail-image-status i {
  width: 30px;
  height: 30px;
  border: 3px solid #c8dbcf;
  border-top-color: #0b6549;
  border-radius: 50%;
  animation: detail-image-spin 0.8s linear infinite;
}

.detail-image-error .detail-image-status i {
  animation: none;
  border: 0;
}

.detail-image-error .detail-image-status i::before {
  content: "!";
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff2e3;
  color: #a45700;
  font-style: normal;
  font-weight: 800;
}

.detail-image-status button {
  display: none;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid #a9c7b6;
  border-radius: 12px;
  background: #fff;
  color: #0b6549;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.detail-image-error .detail-image-status button {
  display: inline-flex;
  align-items: center;
}

.detail-image-ready .detail-image-status {
  display: none;
}

@keyframes detail-image-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .detail-image-status i { animation: none; }
}
