:root {
  --presentation-action-bg: #007bff;
  --presentation-action-bg-hover: #0f63bd;
  --presentation-action-text: #fff;
  --presentation-action-disabled-opacity: 0.55;
  --presentation-result-panel-bg: #fbfcff;
  --presentation-result-card-bg: #fff;
  --presentation-result-card-border: #e5eaf3;
  --presentation-result-surface-bg: #f1f5f9;
  --presentation-result-surface-border: #dfe7f2;
  --presentation-result-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

#image-box {
  background: var(--presentation-result-panel-bg);
}

#image-box > div#images {
  background: transparent;
}

.image-skeleton {
  background: var(--presentation-result-card-bg);
  border: 1px solid var(--presentation-result-card-border);
  border-radius: 18px;
  box-shadow: var(--presentation-result-shadow);
  padding: 14px;
  max-width: 45vw;
}

.skeleton-image {
  background: linear-gradient(180deg, #f5f7fb 0%, #e9eef7 100%);
}

.presentation-card-fade-enter-active,
.presentation-card-fade-leave-active {
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.presentation-card-fade-enter-from,
.presentation-card-fade-leave-to {
  opacity: 0;
  transform: translateY(6px);
}

.presentation-image-frame {
  background: linear-gradient(180deg, #f8fafc 0%, var(--presentation-result-surface-bg) 100%);
  border: 1px solid var(--presentation-result-surface-border);
  border-radius: 14px;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
  width: 100%;
  min-height: 256px;
}

.presentation-image-frame--partial {
  border-radius: 12px;
  overflow: hidden;
}

.presentation-image-frame--partial .image-control-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.partial-image-overlay {
  align-items: center;
  backdrop-filter: blur(1.5px);
  background: rgba(255, 255, 255, 0.32);
  display: flex;
  inset: 0;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity 0.42s ease;
  z-index: 3;
}

.partial-image-overlay--active {
  opacity: 1;
}

.generated-image {
  border-radius: 10px;
  display: block;
  height: auto;
  margin: 0 auto;
  max-width: 100%;
  min-width: 0;
  transition:
    filter 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  width: 100%;
}

.generated-image--partial {
  filter: blur(1.2px) saturate(0.94);
  opacity: 0.86;
  transform: scale(0.998);
}

.image-action-row .download-link:disabled {
  background-color: var(--presentation-action-bg, #007bff);
  cursor: not-allowed;
  opacity: var(--presentation-action-disabled-opacity, 0.55);
}

.download-link {
  color: var(--presentation-action-text, #fff);
}

.download-link:hover:not(:disabled),
.copy-link:hover:not(:disabled) {
  background-color: var(--presentation-action-bg-hover, #0f63bd);
}

.copy-link:disabled,
.retry-link:disabled {
  cursor: not-allowed;
  opacity: var(--presentation-action-disabled-opacity, 0.55);
}

.image-card-body.big {
  padding: 48px;
}

.image-card-body.big .presentation-media-row {
  align-items: center;
  display: flex;
  justify-content: center;
  width: 100%;
}

.image-card-body.big .presentation-badge-slot {
  display: none !important;
}

.image-card-body.big .presentation-media-column {
  align-items: center;
  display: flex;
  flex: 0 1 auto;
  flex-direction: column;
  max-height: calc(100vh - 96px);
  max-width: calc(100vw - 96px);
}

.image-card-body.big .presentation-image-frame {
  background: transparent;
  border: 0;
  border-radius: 0;
  display: flex;
  justify-content: center;
  max-height: calc(100vh - 96px);
  max-width: calc(100vw - 96px);
  min-height: 0;
  overflow: visible;
  padding: 0;
  width: fit-content;
}

.image-card-body.big .generated-image {
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
  display: block;
  height: auto;
  max-height: calc(100vh - 96px);
  max-width: calc(100vw - 96px);
  object-fit: contain;
  width: auto;
}

.image-card-body.big .image-action-row,
.image-card-body.big .download-link {
  display: none !important;
}

.presentation-result-card--enlarged .presentation-image-frame {
  background: transparent;
  border: 0;
  min-height: 0;
  overflow: visible;
  padding: 0;
}
