/* src/PromoBanner/style.css */
.promo-banner {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  padding: 28px 14px;
  box-sizing: border-box;
}
.promo-banner * {
  box-sizing: border-box;
}
.promo-banner__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  pointer-events: none;
}
.promo-banner__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(var(--grid-line, rgba(248, 113, 113, 0.14)) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line, rgba(248, 113, 113, 0.14)) 1px, transparent 1px);
  background-size: 92px 92px;
  -webkit-mask-image: radial-gradient(circle at 50% 45%, black 25%, transparent 82%);
  mask-image: radial-gradient(circle at 50% 45%, black 25%, transparent 82%);
  animation: grid-drift 16s linear infinite;
}
.promo-banner__glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 45%, var(--promo-glow, rgba(220, 38, 38, 0.32)), transparent 60%);
  animation: glow-breathe 5s ease-in-out infinite;
}
.promo-banner__beams {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.promo-banner__beam {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 120px;
  margin-top: -60px;
  background: linear-gradient(90deg, var(--promo-glow, rgba(220, 38, 38, 0.32)), transparent 72%);
  filter: blur(18px);
  transform-origin: left center;
  transform: rotate(var(--beam-angle, -26deg));
  opacity: 0.2;
}
.promo-banner__beam--left {
  --beam-angle: -26deg;
  animation: beam-sweep 6s ease-in-out infinite;
}
.promo-banner__beam--right {
  --beam-angle: 22deg;
  animation: beam-sweep 6s ease-in-out 3s infinite reverse;
}
@keyframes grid-drift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 92px 92px, 92px 92px;
  }
}
@keyframes glow-breathe {
  0%, 100% {
    opacity: 0.75;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}
@keyframes beam-sweep {
  0%, 100% {
    opacity: 0.12;
    transform: rotate(var(--beam-angle, -26deg)) scale(0.92);
  }
  50% {
    opacity: 0.38;
    transform: rotate(var(--beam-angle, -26deg)) scale(1.05);
  }
}
.promo-banner__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 1080px;
  margin: 0 auto;
  animation: promo-rise 0.5s ease both;
}
@keyframes promo-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.promo-banner__title {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 800;
  font-size: clamp(22px, 7vw, 32px);
  line-height: 1.12;
  letter-spacing: 0.02em;
  overflow-wrap: break-word;
}
.promo-banner__title-line {
  display: block;
}
.promo-banner__title-line.is-gradient {
  text-shadow: none;
}
.promo-banner__countdown {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  width: 100%;
}
.promo-banner__unit {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.flip-card {
  --fc-w: 100%;
  --fc-h: 72px;
  position: relative;
  width: var(--fc-w);
  height: var(--fc-h);
  perspective: 400px;
  font-variant-numeric: tabular-nums;
}
.fc-face,
.fc-flap {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50%;
  overflow: hidden;
}
.fc-face--top {
  top: 0;
  border-radius: 14px 14px 0 0;
}
.fc-face--bottom {
  bottom: 0;
  border-radius: 0 0 14px 14px;
}
.fc-inner {
  position: absolute;
  left: 0;
  width: 100%;
  height: var(--fc-h);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}
.fc-face--top .fc-inner {
  top: 0;
}
.fc-face--bottom .fc-inner {
  bottom: 0;
}
.fc-flap {
  top: 0;
  transform-origin: bottom center;
  backface-visibility: hidden;
  visibility: hidden;
  z-index: 2;
}
.flip-card.is-flipping .fc-flap {
  visibility: visible;
  animation: fc-fold 0.32s ease-in forwards;
}
@keyframes fc-fold {
  from {
    transform: rotateX(0);
  }
  to {
    transform: rotateX(-90deg);
  }
}
.flip-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  z-index: 3;
  pointer-events: none;
}
.fc-face--top::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.promo-banner__unit-label {
  margin-top: 10px;
  font-size: 10px;
  letter-spacing: 0.06em;
}
.promo-banner__countdown.is-expired .flip-card {
  opacity: 0.5;
}
.promo-banner__button {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: min(280px, 100%);
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    opacity 0.15s ease,
    box-shadow 0.15s ease;
}
.promo-banner__button:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}
@media (min-width: 768px) {
  .promo-banner {
    padding: 40px 24px;
    border-radius: 16px;
  }
  .promo-banner__title {
    font-size: clamp(30px, 4.5vw, 44px);
    gap: 6px;
  }
  .promo-banner__countdown {
    gap: 14px;
    margin-top: 24px;
  }
  .promo-banner__unit {
    flex: 0 1 auto;
  }
  .flip-card {
    width: 100px;
    --fc-h: 84px;
  }
  .fc-inner {
    font-size: 28px;
  }
  .promo-banner__unit-label {
    margin-top: 12px;
    font-size: 12px;
  }
  .promo-banner__button {
    width: auto;
    max-width: none;
    margin-top: 24px;
    padding: 14px 28px;
    font-size: 15px;
    white-space: nowrap;
  }
}
@media (min-width: 1024px) {
  .promo-banner {
    padding: 48px 24px;
  }
  .promo-banner__title {
    font-size: clamp(34px, 4.5vw, 52px);
  }
  .promo-banner__countdown {
    gap: 18px;
    margin-top: 28px;
  }
  .flip-card {
    width: 120px;
    --fc-h: 96px;
  }
  .fc-inner {
    font-size: 38px;
  }
  .promo-banner__button {
    margin-top: 28px;
    padding: 16px 32px;
    font-size: 16px;
  }
}
.promo-banner--dark {
  color: #ffffff;
  --grid-line: rgba(248, 113, 113, 0.16);
}
.promo-banner--dark .promo-banner__title-line:not(.is-gradient) {
  text-shadow:
    0 0 6px rgba(255, 255, 255, 0.85),
    0 0 22px var(--title-glow, rgba(244, 63, 94, 0.6)),
    0 0 48px var(--title-glow, rgba(244, 63, 94, 0.32));
}
.promo-banner--dark .promo-banner__title-line--accent:not(.is-gradient) {
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.7), 0 0 18px var(--title-glow, rgba(244, 63, 94, 0.45));
}
.promo-banner--dark.no-title-glow .promo-banner__title-line:not(.is-gradient) {
  text-shadow: none;
}
.promo-banner--dark .fc-face,
.promo-banner--dark .fc-flap {
  background: linear-gradient(180deg, #241014 0%, #160a0d 100%);
  border: 1px solid rgba(248, 113, 113, 0.3);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}
.promo-banner--dark .fc-face--top {
  border-bottom: none;
}
.promo-banner--dark .fc-face--bottom {
  border-top: none;
}
.promo-banner--dark .fc-inner {
  color: #ffffff;
}
.promo-banner--dark .fc-face--top::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 60%);
}
.promo-banner--dark .flip-card::after {
  background: rgba(248, 113, 113, 0.3);
}
.promo-banner--dark .promo-banner__unit-label {
  color: #fca5a5;
}
.promo-banner--dark .promo-banner__button {
  background: #ffffff;
  color: #0a0a0a;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.promo-banner--light {
  color: #182349;
  --grid-line: rgba(24, 35, 73, 0.12);
}
.promo-banner--light .promo-banner__glow {
  background: radial-gradient(circle at 50% 55%, rgba(255, 45, 111, 0.18), transparent 62%);
}
.promo-banner--light .promo-banner__beam {
  display: none;
}
.promo-banner--light .promo-banner__title {
  text-shadow: 0 2px 16px rgba(24, 35, 73, 0.12);
}
.promo-banner--light .fc-face,
.promo-banner--light .fc-flap {
  background: linear-gradient(180deg, #ffffff 0%, #f2f4fa 100%);
  border: 1px solid rgba(24, 35, 73, 0.12);
  box-shadow: 0 6px 20px rgba(24, 35, 73, 0.08);
}
.promo-banner--light .fc-face--top {
  border-bottom: none;
}
.promo-banner--light .fc-face--bottom {
  border-top: none;
}
.promo-banner--light .fc-inner {
  color: #182349;
}
.promo-banner--light .fc-face--top::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), transparent 60%);
}
.promo-banner--light .flip-card::after {
  background: rgba(24, 35, 73, 0.15);
}
.promo-banner--light .promo-banner__unit-label {
  color: rgba(24, 35, 73, 0.55);
}
.promo-banner--light .promo-banner__button {
  background: #182349;
  color: #ffffff;
}
@media (prefers-reduced-motion: reduce) {
  .promo-banner__content,
  .flip-card.is-flipping .fc-flap {
    animation-duration: 0.01ms;
  }
  .promo-banner__grid,
  .promo-banner__glow,
  .promo-banner__beam {
    animation: none;
  }
  .promo-banner__button {
    transition-duration: 0.01ms;
  }
}

/* src/ImageGenDemo/style.css */
.igd {
  --igd-accent: #6366f1;
  --igd-accent-2: #38bdf8;
  --igd-guide: #f43f5e;
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  min-height: 520px;
  border-radius: 16px;
  overflow: hidden;
  box-sizing: border-box;
}
.igd * {
  box-sizing: border-box;
}
.igd__rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border-right: 1px solid;
}
.igd__rail-logo {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--igd-accent), var(--igd-accent-2));
}
.igd__rail-item {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  opacity: 0.35;
}
.igd__rail-item.is-active {
  opacity: 0.9;
}
.igd__main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.igd__feed {
  flex: 1 1 auto;
  padding: 24px 20px;
  overflow-y: auto;
}
.igd__welcome {
  height: 100%;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}
.igd__welcome-dots {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: radial-gradient(circle, currentColor 2.5px, transparent 3px) 0 0 / 11px 11px;
  opacity: 0.7;
}
.igd__title {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.igd__subtitle {
  margin: 0;
  font-size: 13px;
  opacity: 0.7;
}
.igd__messages {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 720px;
  margin: 0 auto;
}
.igd__bubble {
  align-self: flex-end;
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 14px 14px 4px 14px;
  font-size: 14px;
  line-height: 1.6;
}
.igd__row-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.55;
  margin-bottom: 6px;
}
.igd__row-body {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.9;
}
.igd__result {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.igd__result-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 240px;
  max-width: 100%;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid;
  background: transparent;
  cursor: pointer;
  text-align: left;
  color: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.igd__result-card:hover:not(:disabled) {
  transform: translateY(-2px);
}
.igd__result-card:disabled {
  cursor: wait;
}
.igd__result-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--igd-guide);
}
.igd__result-thumb {
  position: relative;
  width: 100%;
  flex: 0 0 auto;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid;
}
.igd__result-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.igd__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  line-height: 1.5;
  padding: 12px;
  text-align: center;
  word-break: normal;
  overflow-wrap: break-word;
}
.igd__placeholder-icon {
  font-size: 22px;
  opacity: 0.7;
}
.igd__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
}
.igd__progress-track {
  width: 70%;
  max-width: 220px;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
}
.igd__progress-bar {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--igd-accent), var(--igd-accent-2));
  transition: width 0.12s linear;
}
.igd__overlay-text {
  font-size: 12px;
}
.igd__apply {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid;
}
.igd__apply-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.igd__apply-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex: 0 0 auto;
}
.igd__apply-name {
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.igd__apply-status {
  font-size: 12px;
  font-weight: 700;
  color: var(--igd-accent);
}
.igd__apply-status.is-done {
  color: #16a34a;
}
.igd__apply-btn {
  flex: 0 0 auto;
  padding: 9px 18px;
  border-radius: 10px;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.igd__apply-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}
.igd__apply-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.igd__composer {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: stretch;
  padding: 0 20px 20px;
}
.igd__attach {
  flex: 0 0 auto;
  width: 44px;
  align-self: stretch;
  border-radius: 14px;
  border: 1px solid;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  cursor: default;
  color: inherit;
  opacity: 0.7;
}
.igd__prompt {
  flex: 1 1 auto;
  min-width: 0;
  border-radius: 14px;
  padding: 13px 16px;
  font-size: 14px;
  line-height: 1.6;
  border: 1px solid;
  display: flex;
  align-items: flex-start;
  word-break: break-word;
}
.igd__composer.is-guided .igd__prompt {
  border-color: var(--igd-guide);
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.18);
}
.igd__prompt-text {
  white-space: pre-wrap;
}
.igd__caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  align-self: center;
  background: var(--igd-accent-2);
  animation: igd-caret-blink 1s steps(1) infinite;
}
@keyframes igd-caret-blink {
  50% {
    opacity: 0;
  }
}
.igd__send {
  flex: 0 0 auto;
  align-self: stretch;
  min-width: 64px;
  padding: 0 22px;
  border-radius: 14px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.igd__send:hover:not(:disabled) {
  transform: translateY(-1px);
}
.igd__send:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
.igd__guide-tip {
  position: absolute;
  right: 20px;
  bottom: calc(100% + 8px);
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;
}
.igd__scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.igd__panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(380px, 92%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  padding: 20px;
  gap: 16px;
  overflow-y: auto;
}
.igd__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.igd__panel-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}
.igd__panel-close {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  color: inherit;
}
.igd__panel-media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid;
}
.igd__panel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.igd__panel-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.igd--dark {
  background: #121216;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
}
.igd--dark .igd__rail {
  border-color: rgba(255, 255, 255, 0.1);
}
.igd--dark .igd__bubble,
.igd--dark .igd__prompt,
.igd--dark .igd__apply,
.igd--dark .igd__panel {
  background: #1c1c22;
  border-color: rgba(255, 255, 255, 0.12);
}
.igd--dark .igd__result-card {
  border-color: rgba(255, 255, 255, 0.12);
}
.igd--dark .igd__result-thumb,
.igd--dark .igd__panel-media {
  border-color: rgba(255, 255, 255, 0.12);
  background: #1c1c22;
}
.igd--dark .igd__placeholder,
.igd--dark .igd__overlay {
  color: rgba(255, 255, 255, 0.65);
}
.igd--dark .igd__overlay {
  background: rgba(10, 10, 14, 0.72);
  backdrop-filter: blur(4px);
}
.igd--dark .igd__progress-track {
  background: rgba(255, 255, 255, 0.12);
}
.igd--dark .igd__send,
.igd--dark .igd__apply-btn {
  background: #ffffff;
  color: #0a0a0a;
}
.igd--dark .igd__apply-icon {
  background: rgba(255, 255, 255, 0.12);
}
.igd--dark .igd__guide-tip {
  background: #ffffff;
  color: #0a0a0a;
}
.igd--dark .igd__scrim {
  background: rgba(10, 10, 14, 0.55);
}
.igd--light {
  background: #ffffff;
  border: 1px solid rgba(17, 24, 39, 0.1);
  color: #111827;
}
.igd--light .igd__rail {
  border-color: rgba(17, 24, 39, 0.1);
}
.igd--light .igd__bubble,
.igd--light .igd__prompt,
.igd--light .igd__apply,
.igd--light .igd__panel {
  background: #f4f5f7;
  border-color: rgba(17, 24, 39, 0.12);
}
.igd--light .igd__result-card {
  border-color: rgba(17, 24, 39, 0.12);
}
.igd--light .igd__result-thumb,
.igd--light .igd__panel-media {
  border-color: rgba(17, 24, 39, 0.12);
  background: #f4f5f7;
}
.igd--light .igd__placeholder,
.igd--light .igd__overlay {
  color: rgba(17, 24, 39, 0.55);
}
.igd--light .igd__overlay {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(4px);
}
.igd--light .igd__progress-track {
  background: rgba(17, 24, 39, 0.1);
}
.igd--light .igd__send,
.igd--light .igd__apply-btn {
  background: #111827;
  color: #ffffff;
}
.igd--light .igd__apply-icon {
  background: rgba(17, 24, 39, 0.1);
}
.igd--light .igd__guide-tip {
  background: #111827;
  color: #ffffff;
}
.igd--light .igd__scrim {
  background: rgba(17, 24, 39, 0.4);
}
@media (max-width: 767px) {
  .igd {
    grid-template-columns: 1fr;
    min-height: 480px;
  }
  .igd__rail {
    display: none;
  }
  .igd__feed {
    padding: 18px 14px;
  }
  .igd__title {
    font-size: 20px;
  }
  .igd__composer {
    flex-direction: column;
    padding: 0 14px 16px;
  }
  .igd__send {
    align-self: stretch;
    padding: 12px 22px;
  }
  .igd__guide-tip {
    right: 14px;
  }
  .igd__result-thumb {
    width: 100%;
  }
  .igd__apply {
    flex-direction: column;
    align-items: stretch;
  }
  .igd__apply-btn {
    align-self: stretch;
  }
  .igd__panel {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .igd__caret,
  .igd__result-card,
  .igd__send,
  .igd__apply-btn,
  .igd__progress-bar {
    animation: none;
    transition-duration: 0.01ms;
  }
}

/* src/SeedanceDemo/style.css */
.svd {
  --svd-accent: #6366f1;
  --svd-accent-2: #38bdf8;
  --svd-guide: #f43f5e;
  --svd-bg: #ffffff;
  --svd-border: rgba(17, 24, 39, 0.12);
  --svd-surface: #f4f5f7;
  --svd-text: #111827;
  --svd-text-2: rgba(17, 24, 39, 0.65);
  --svd-text-3: rgba(17, 24, 39, 0.45);
  --svd-mask: rgba(255, 255, 255, 0.78);
  --svd-track: rgba(17, 24, 39, 0.1);
  --svd-spinner: rgba(17, 24, 39, 0.2);
  --svd-cta-bg: #111827;
  --svd-cta-text: #ffffff;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 470px;
  padding: 20px;
  border-radius: 16px;
  box-sizing: border-box;
  background-color: var(--svd-bg);
  background-image: var(--svd-bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--svd-text);
}
.svd * {
  box-sizing: border-box;
}
.svd__grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 18px;
  flex: 1 1 auto;
  min-height: 0;
}
.svd__tabs {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}
.svd__tab {
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid var(--svd-border);
  background: var(--svd-surface);
  color: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition:
    opacity 0.15s ease,
    transform 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}
.svd__tab:hover:not(.is-active) {
  transform: translateY(-1px);
  border-color: var(--svd-accent);
}
.svd__tab:active:not(.is-active) {
  transform: translateY(0);
}
.svd__tab:focus-visible,
.svd__chip-opt:focus-visible,
.svd__cta:focus-visible,
.svd__volume:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--svd-bg), 0 0 0 4px var(--svd-accent-2);
}
.svd__tab.is-active {
  border-color: transparent;
  background: var(--svd-tab-light, linear-gradient(90deg, var(--svd-accent), var(--svd-accent-2)));
  color: #ffffff;
}
.svd--dark .svd__tab.is-active,
body[arco-theme=dark] .svd--follow .svd__tab.is-active {
  background: var(--svd-tab-dark, linear-gradient(90deg, var(--svd-accent), var(--svd-accent-2)));
}
.svd__option-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.svd__option-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--svd-text-2);
}
.svd__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.svd__chip-opt {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--svd-border);
  background: var(--svd-surface);
  color: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.svd__chip-opt:hover:not(.is-active) {
  border-color: var(--svd-accent);
}
.svd__chip-opt:active:not(.is-active) {
  border-color: var(--svd-accent);
}
.svd__chip-opt.is-active {
  border-color: transparent;
  background: var(--svd-accent);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.45);
}
.svd__volume {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(10, 10, 14, 0.55);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.svd__caption {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--svd-border);
  background: var(--svd-surface);
  color: var(--svd-text);
}
.svd__caption-badge {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--svd-accent);
  color: #ffffff;
}
.svd__caption-text {
  font-size: 12.5px;
  line-height: 1.4;
  word-break: break-word;
  color: var(--svd-text-2);
}
.svd__work {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  min-width: 0;
  min-height: 0;
}
.svd__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.svd__title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--svd-text);
}
.svd__subtitle {
  margin: 0;
  font-size: 13px;
  color: var(--svd-text-2);
}
.svd__source {
  position: relative;
  margin: 0;
  height: 156px;
  flex: 0 0 auto;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--svd-border);
  background: var(--svd-surface);
}
.svd__source-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.svd__prompt {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 4px;
  height: 120px;
  padding: 12px 15px;
  border-radius: 14px;
  border: 1px solid var(--svd-border);
  background: var(--svd-surface);
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--svd-text);
  word-break: break-word;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.svd__prompt::-webkit-scrollbar {
  display: none;
}
.svd__prompt-text {
  white-space: pre-wrap;
}
.svd__prompt-placeholder {
  white-space: pre-wrap;
  color: var(--svd-text-3);
  font-style: italic;
}
.svd__caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  align-self: baseline;
  background: var(--svd-accent-2);
  animation: svd-caret-blink 1s steps(1) infinite;
}
@keyframes svd-caret-blink {
  50% {
    opacity: 0;
  }
}
.svd__cta {
  flex: 0 0 auto;
  width: 100%;
  height: 48px;
  padding: 0 22px;
  border: none;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  background: var(--svd-cta-bg);
  color: var(--svd-cta-text);
  cursor: pointer;
  transition:
    opacity 0.15s ease,
    transform 0.15s ease,
    background 0.15s ease;
}
.svd__cta:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.05);
}
.svd__cta:active:not(:disabled) {
  transform: translateY(0);
}
.svd__cta:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
.svd__guide-tip {
  position: absolute;
  right: 20px;
  bottom: calc(100% + 8px);
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;
  background: var(--svd-cta-bg);
  color: var(--svd-cta-text);
}
.svd__result-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  min-height: 0;
}
.svd__stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--svd-border);
  background: var(--svd-surface);
  display: flex;
}
.svd__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
  padding: 12px;
  text-align: center;
  color: var(--svd-text-2);
  overflow-wrap: break-word;
}
.svd__placeholder-icon {
  font-size: 24px;
  color: var(--svd-text-3);
}
.svd__rendering {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
}
.svd__rendering-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(6px) saturate(0.85);
  opacity: 0.6;
}
.svd__rendering-mask {
  position: absolute;
  inset: 0;
  background: var(--svd-mask);
  backdrop-filter: blur(4px);
}
.svd__spinner {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid var(--svd-spinner);
  border-top-color: transparent;
  animation: svd-spin 0.9s linear infinite;
}
@keyframes svd-spin {
  to {
    transform: rotate(360deg);
  }
}
.svd__rendering-text {
  position: relative;
  font-size: 13px;
  font-weight: 600;
  color: var(--svd-text-2);
}
.svd__progress-track {
  position: relative;
  width: 70%;
  max-width: 240px;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--svd-track);
}
.svd__progress-bar {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--svd-accent), var(--svd-accent-2));
  transition: width 0.12s linear;
}
.svd__result {
  position: absolute;
  inset: 0;
}
.svd__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.svd__poster {
  position: absolute;
  inset: 0;
}
.svd__poster-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.svd__poster-img.is-active {
  opacity: 1;
}
.svd__chip {
  position: absolute;
  top: 12px;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(10, 10, 14, 0.55);
  backdrop-filter: blur(4px);
  color: #ffffff;
}
.svd__chip-label {
  left: 12px;
}
.svd__chip-duration {
  right: 52px;
}
.svd--light,
.svd--follow {
  --svd-bg-color-light: #ffffff;
  --svd-bg-image-light: none;
  --svd-bg: var(--svd-bg-color-light, #ffffff);
  --svd-bg-image: var(--svd-bg-image-light, none);
  --svd-border: rgba(17, 24, 39, 0.12);
  --svd-surface: #f4f5f7;
  --svd-text: #111827;
  --svd-text-2: rgba(17, 24, 39, 0.65);
  --svd-text-3: rgba(17, 24, 39, 0.45);
  --svd-mask: rgba(255, 255, 255, 0.78);
  --svd-track: rgba(17, 24, 39, 0.1);
  --svd-spinner: rgba(17, 24, 39, 0.2);
  --svd-cta-bg: #111827;
  --svd-cta-text: #ffffff;
}
.svd--dark,
body[arco-theme=dark] .svd--follow {
  --svd-bg-color-dark: #121216;
  --svd-bg-image-dark: none;
  --svd-bg: var(--svd-bg-color-dark, #121216);
  --svd-bg-image: var(--svd-bg-image-dark, none);
  --svd-border: rgba(255, 255, 255, 0.12);
  --svd-surface: #1c1c22;
  --svd-text: #ffffff;
  --svd-text-2: rgba(255, 255, 255, 0.85);
  --svd-text-3: rgba(255, 255, 255, 0.65);
  --svd-mask: rgba(10, 10, 14, 0.72);
  --svd-track: rgba(255, 255, 255, 0.12);
  --svd-spinner: rgba(255, 255, 255, 0.25);
  --svd-cta-bg: #ffffff;
  --svd-cta-text: #0a0a0a;
}
@media (max-width: 767px) {
  .svd {
    grid-template-columns: 1fr;
    height: auto;
    padding: 14px;
    gap: 14px;
  }
  .svd__grid {
    grid-template-columns: 1fr;
  }
  .svd__work {
    justify-content: flex-start;
  }
  .svd__source {
    height: auto;
    aspect-ratio: 16 / 9;
  }
  .svd__stage {
    aspect-ratio: 16 / 9;
    min-height: 220px;
  }
  .svd__title {
    font-size: 18px;
  }
  .svd__guide-tip {
    right: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .svd__caret,
  .svd__spinner,
  .svd__progress-bar,
  .svd__cta {
    animation: none;
    transition-duration: 0.01ms;
  }
}
