.refined-hero #headline,
.refined-hero #headline > span {
  text-wrap: balance;
}
.refined-hero .hero-intro {
  text-wrap: pretty;
}
.refined-hero .hero-actions .button {
  white-space: nowrap;
}
.refined-hero .hero-copy:lang(zh) {
  text-autospace: normal;
  text-spacing-trim: trim-start;
}
.refined-hero .hero-intro:lang(zh) {
  max-width: 24em;
}
@media (min-width: 960px) {
  .refined-hero .hero-intro:lang(zh) {
    text-align: justify;
  }
}


#online-studio:not(.batch-visible-running):not(:has(#batch-results .batch-card)) .workspace-credits:has(#credit-balance:empty) {
  display: flex;
  min-height: 28px;
}
#online-studio .workspace-credits:has(#credit-balance:empty) .completed-gallery-button {
  display: none;
}

body[data-release-ui][data-theme="lime"] #online-studio .batch-card .batch-preview :is(.batch-original, .batch-close) {
  background: #18271c !important;
  border-color: #4b683b !important;
  color: var(--refined-accent, #c9fc65) !important;
}
body[data-release-ui][data-theme="lime"] #online-studio .batch-card .batch-preview .batch-close > span {
  color: inherit !important;
}
body[data-theme="lime"] #online-studio .batch-card:is([data-state="queued"],[data-state="uploading"],[data-state="processing"],[data-state="generating"],[data-state="saving"]) .batch-overlay {
  background: color-mix(in srgb, var(--refined-surface) 78%, transparent);
  color: #f4ffe8;
}
body[data-theme="lime"] #online-studio .batch-card:is([data-state="queued"],[data-state="uploading"],[data-state="processing"],[data-state="generating"],[data-state="saving"]) .batch-state {
  color: #f4ffe8;
}
body[data-theme="lime"] #online-studio .batch-preview .ripple-dot {
  background: var(--refined-accent);
}

@media (prefers-reduced-motion: no-preference) {
  .refined-hero > .hero-copy,
  .refined-hero > .demo {
    animation: yhoo-hero-enter 1850ms cubic-bezier(.37,0,.63,1) backwards;
  }
  .refined-hero > .demo {
    animation-delay: 100ms;
  }
}
@keyframes yhoo-hero-enter {
  from { opacity: 0; translate: 0 7px; }
  to { opacity: 1; translate: 0 0; }
}

.refined-visual:has(> .refined-hero) { position: relative; isolation: isolate; overflow: clip; }
.hero-aurora {
  --aurora-colors: repeating-linear-gradient(100deg,#3b82f6 10%,#a5b4fc 15%,#93c5fd 20%,#ddd6fe 25%,#60a5fa 30%);
  --aurora-base: repeating-linear-gradient(100deg,#fff 0%,#fff 7%,transparent 10%,transparent 12%,#fff 16%);
  position: absolute;
  inset: -10px;
  z-index: -1;
  pointer-events: none;
  background-image: var(--aurora-base),var(--aurora-colors);
  background-size: 300%,200%;
  background-position: 50% 50%,50% 50%;
  opacity: .5;
  filter: blur(10px) invert(1);
  mask-image: radial-gradient(ellipse at 100% 0%,black 10%,transparent 70%);
}
body[data-theme="lime"] .hero-aurora {
  --aurora-base: repeating-linear-gradient(100deg,#000 0%,#000 7%,transparent 10%,transparent 12%,#000 16%);
  filter: blur(10px);
}
.hero-aurora::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--aurora-base),var(--aurora-colors);
  background-size: 200%,100%;
  background-position: 50% 50%,50% 50%;
  background-attachment: fixed;
  mix-blend-mode: difference;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-aurora::after { animation: yhoo-hero-aurora 60s linear infinite; }
}
@keyframes yhoo-hero-aurora {
  from { background-position: 50% 50%,50% 50%; }
  to { background-position: 350% 50%,350% 50%; }
}


body[data-release-ui] #online-studio .queue-eta-title:not([hidden]) {
  display: flex !important;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: calc(100% - 32px);
  margin: 8px auto 18px !important;
  padding: 6px 13px;
  border: 1px solid var(--refined-line);
  border-radius: 999px;
  background: var(--refined-surface);
  color: var(--refined-emphasis);
  font-size: clamp(13px, 1.35vw, 16px) !important;
  line-height: 1.2 !important;
  font-weight: 650;
}
body[data-release-ui] #online-studio .queue-eta-title::before {
  content: '' !important;
  display: block;
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: queue-status-dot 2s ease-in-out infinite;
}
body[data-release-ui] #online-studio .queue-eta-title::after,
body[data-release-ui] #online-studio .queue-eta-title > span[aria-hidden="true"] { display: none !important; }
body[data-release-ui] #online-studio .queue-eta-title .queue-eta-wave span {
  animation: none !important;
  transform: none !important;
  color: inherit !important;
}
@supports (background-clip: text) {
  @media (prefers-reduced-motion: no-preference) and (forced-colors: none) {
    body[data-release-ui] #online-studio .queue-eta-title .queue-eta-wave {
      background: linear-gradient(105deg, currentColor 44%, color-mix(in srgb,currentColor 35%,white) 50%, currentColor 56%) 100% 50% / 230% 100%;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      animation: queue-status-shine 3.2s ease-in-out infinite;
    }
  }
}
@keyframes queue-status-dot { 50% { opacity: .48; } }
@keyframes queue-status-shine { 0%, 15% { background-position: 100% 50%; } 74%, 100% { background-position: 0% 50%; } }
@media (prefers-reduced-motion: reduce) {
  body[data-release-ui] #online-studio .queue-eta-title::before { animation: none; }
}

body:has(#online-studio.batch-visible-running) .hero-aurora::after {
  animation-play-state: paused;
}

.hero-aurora.is-past-intro::after { animation-play-state: paused; }
