/*
 * Yahoai test-site V3 frontend UX patch.
 * This file is intentionally independent from the exported Next.js bundles so
 * the complete patch can be removed without touching the verified baseline.
 */

.yahoai-dropzone-v3 {
  position: relative;
  border-radius: 14px;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.yahoai-drop-overlay-v3 {
  position: absolute;
  inset: 8px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed rgba(121, 218, 255, 0.95);
  border-radius: 12px;
  color: #ffffff;
  background: rgba(31, 12, 56, 0.8);
  font-size: clamp(14px, 1.4vw, 18px);
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.yahoai-dropzone-v3.yahoai-drag-active-v3 {
  border-color: rgba(110, 222, 255, 0.95) !important;
  background: rgba(121, 74, 183, 0.36) !important;
  box-shadow: 0 0 0 3px rgba(88, 207, 255, 0.2), 0 0 28px rgba(127, 69, 255, 0.25);
  transform: translateY(-1px);
}

.yahoai-dropzone-v3.yahoai-drag-active-v3 .yahoai-drop-overlay-v3 {
  opacity: 1;
}

.yahoai-dropzone-v3.yahoai-image-processing-v3 {
  cursor: progress;
  opacity: 0.82;
}

.yahoai-upload-short-hint-v3 {
  display: inline-block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}

#yahoai-responsive-announcement-v3 {
  position: relative;
  z-index: 30;
  display: none;
  width: 100%;
  min-height: 34px;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  background: rgba(22, 3, 38, 0.96);
}

#yahoai-responsive-announcement-v3 .yahoai-announcement-track-v3 {
  display: inline-flex;
  min-width: max-content;
  align-items: center;
  min-height: 34px;
  padding-left: 100%;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  animation: yahoai-announcement-marquee-v3 18s linear infinite;
}

#yahoai-responsive-announcement-v3 .yahoai-announcement-copy-v3 {
  padding-right: 64px;
}

.yahoai-online-support-v3,
.yahoai-online-support-v3 * {
  color: #ffffff !important;
  opacity: 1 !important;
}

.yahoai-point-tip-v3,
.yahoai-3d-point-tip-v3 {
  color: rgba(255, 255, 255, 0.46) !important;
}

.yahoai-create-panel-row-v3 {
  align-items: stretch !important;
}

.yahoai-create-column-v3 {
  position: relative !important;
  justify-content: flex-start !important;
  gap: 24px !important;
  min-height: 462px !important;
}

.yahoai-create-control-stack-v3 {
  min-height: 132px !important;
  justify-content: flex-start !important;
}

.yahoai-relief-base-panel-v3 {
  position: absolute !important;
  top: 86px !important;
  right: 0 !important;
  left: 0 !important;
  z-index: 8 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  pointer-events: auto !important;
}

.yahoai-relief-base-panel-v3 > p {
  display: none !important;
}

.yahoai-relief-base-group-v3 {
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  min-height: 50px !important;
  padding: 4px !important;
  border: 1px solid rgba(180, 120, 255, 0.32) !important;
  border-radius: 14px !important;
  background: rgba(7, 0, 13, 0.88) !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.26) !important;
}

.yahoai-relief-base-option-v3 {
  box-sizing: border-box !important;
  min-width: 150px !important;
  height: 42px !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 10px !important;
  color: rgba(255, 255, 255, 0.66) !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  transition:
    color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease !important;
}

.yahoai-relief-base-option-v3:hover {
  color: #ffffff !important;
}

.yahoai-relief-base-option-v3.yahoai-active-relief-base-option-v3,
.yahoai-relief-base-option-v3[class*="bg-purple"] {
  color: #ffffff !important;
  background: linear-gradient(90deg, #9333ea 0%, #c026f4 100%) !important;
  box-shadow: 0 10px 24px rgba(174, 64, 255, 0.34) !important;
  transform: translateY(-1px) !important;
}

.yahoai-create-upload-row-v3 {
  min-height: 180px !important;
  max-height: 180px !important;
  align-items: center !important;
  overflow: visible !important;
}

.yahoai-create-upload-zone-v3 {
  min-height: 180px !important;
  max-height: 180px !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
  border-radius: 18px !important;
}

.yahoai-create-action-row-v3 {
  min-height: 116px !important;
}

.yahoai-section-title-v3 {
  color: rgba(255, 255, 255, 0.38) !important;
}

.yahoai-hidden-format-button-v3 {
  display: none !important;
}

.yahoai-format-download-button-v3 {
  box-sizing: border-box !important;
  display: inline-flex !important;
  width: 144px !important;
  min-width: 144px !important;
  max-width: 144px !important;
  height: 52px !important;
  min-height: 52px !important;
  max-height: 52px !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  padding: 7px 18px !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: #ffffff !important;
  background: linear-gradient(90deg, #8b2df4 0%, #b431f3 100%) !important;
  box-shadow: 0 10px 24px rgba(129, 48, 230, 0.24) !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-align: center !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

.yahoai-format-download-button-v3:disabled,
.yahoai-format-download-button-v3[aria-disabled="true"] {
  cursor: not-allowed !important;
  opacity: 0.55 !important;
  box-shadow: none !important;
}

.yahoai-download-label-v3 {
  display: block !important;
  color: inherit !important;
  font-size: 16px !important;
  line-height: 1.05 !important;
}

.yahoai-download-note-v3 {
  display: block !important;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
}

.yahoai-download-note-placeholder-v3 {
  visibility: hidden !important;
}

#yahoai-toast-stack-v3 {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  left: 50%;
  z-index: 2147483600;
  display: flex;
  width: min(92vw, 520px);
  flex-direction: column;
  gap: 8px;
  transform: translateX(-50%);
  pointer-events: none;
}

.yahoai-toast-v3 {
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #ffffff;
  background: rgba(24, 8, 40, 0.96);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.36);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  animation: yahoai-toast-in-v3 180ms ease-out;
}

.yahoai-toast-v3[data-kind="error"] {
  border-color: rgba(255, 106, 122, 0.78);
  background: rgba(83, 18, 35, 0.97);
}

.yahoai-toast-v3[data-kind="success"] {
  border-color: rgba(90, 222, 184, 0.72);
}

@keyframes yahoai-announcement-marquee-v3 {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

@keyframes yahoai-toast-in-v3 {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1399px) {
  #yahoai-responsive-announcement-v3 {
    display: block;
  }

  .yahoai-original-notice-v3 {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .yahoai-create-column-v3 {
    min-height: auto !important;
    gap: 18px !important;
  }

  .yahoai-create-control-stack-v3 {
    min-height: auto !important;
  }

  .yahoai-relief-base-panel-v3 {
    position: static !important;
    margin-top: -8px !important;
  }

  .yahoai-relief-base-group-v3 {
    width: min(100%, 342px) !important;
  }

  .yahoai-relief-base-option-v3 {
    min-width: 0 !important;
    flex: 1 1 0 !important;
    padding: 0 12px !important;
    font-size: 13px !important;
  }

  .yahoai-create-upload-row-v3,
  .yahoai-create-upload-zone-v3 {
    min-height: 160px !important;
    max-height: 160px !important;
  }

  .yahoai-create-action-row-v3 {
    min-height: auto !important;
  }

  .yahoai-format-download-button-v3 {
    width: 132px !important;
    min-width: 132px !important;
    max-width: 132px !important;
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
  }

  .yahoai-download-label-v3 {
    font-size: 15px !important;
  }

  .yahoai-drop-overlay-v3 {
    inset: 5px;
    font-size: 14px;
  }

  #yahoai-responsive-announcement-v3,
  #yahoai-responsive-announcement-v3 .yahoai-announcement-track-v3 {
    min-height: 32px;
  }

  #yahoai-responsive-announcement-v3 .yahoai-announcement-track-v3 {
    font-size: 12px;
    animation-duration: 15s;
  }
}

@media (prefers-reduced-motion: reduce) {
  #yahoai-responsive-announcement-v3 .yahoai-announcement-track-v3,
  .yahoai-toast-v3 {
    animation: none;
  }

  #yahoai-responsive-announcement-v3 .yahoai-announcement-track-v3 {
    min-width: 100%;
    justify-content: center;
    padding: 0 12px;
    white-space: normal;
    text-align: center;
  }

  #yahoai-responsive-announcement-v3 .yahoai-announcement-copy-v3 {
    padding: 0;
  }
}
