body.tenant-tool-undress {
  --undress-bg: #0b0c0f;
  --undress-panel: #15161b;
  --undress-line: rgba(255, 255, 255, 0.12);
  --undress-text: #f7f7f8;
  --undress-muted: #a7aab3;
  --undress-accent: #ff4f7a;
  --undress-teal: #2de2c8;
  padding-left: 0;
  background: var(--undress-bg);
  color: var(--undress-text);
}

body.tenant-tool-undress .aurora,
body.tenant-tool-undress .support-fab,
body.tenant-tool-undress .video-tool-fabs,
body.tenant-tool-undress .tool-download-trigger,
body.tenant-tool-undress [data-gallery-shortcut] {
  display: none !important;
}

body.tenant-tool-undress main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

/* The shared launch banner reserves space even when it is hidden.  Undress has
   its own compact header, so clear that stale reservation and keep the cases
   directly below the local tabs. */
body.tenant-tool-undress .launch-banner + .site-head,
body.tenant-tool-undress.wan30-launch-visible .launch-banner + .site-head,
body.tenant-tool-undress.wan30-launch-dismissed .launch-banner + .site-head {
  margin-top: 0 !important;
}

body.tenant-tool-undress.wan30-launch-visible,
body.tenant-tool-undress.wan30-launch-dismissed {
  padding-top: 76px !important;
}

body.tenant-tool-undress .workspace,
body.tenant-tool-undress .gallery-panel {
  min-height: calc(100dvh - 78px);
}

body.tenant-tool-undress .workspace[data-panel="gallery"] {
  isolation: isolate;
}

body.tenant-tool-undress .undress-tool-home {
  display: block;
  min-height: calc(100dvh - 76px);
  padding: 0 12px 78px;
}

body.tenant-tool-undress .undress-tool-home > .undress-ambient {
  display: none !important;
}

body.tenant-tool-undress .undress-tool-home-inner {
  width: min(1320px, 100%);
  margin: 0 auto;
  padding-top: 12px;
  gap: 8px;
  align-content: start;
}

body.tenant-tool-undress .undress-tool-copy {
  display: none;
}

body.tenant-tool-undress .undress-tool-copy h2 {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
}

body.tenant-tool-undress .undress-case-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  width: min(520px, 100%);
  margin: 0 auto;
  padding: 4px;
  border: 1px solid var(--undress-line);
  border-radius: 8px;
  background: #17181e;
}

body.tenant-tool-undress .undress-case-tabs-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: auto;
  margin: 0;
  padding: 3px;
  border: 1px solid var(--undress-line);
  border-radius: 8px;
  background: #15161b;
}

body.tenant-tool-undress .undress-case-tab {
  min-height: 40px;
  padding: 8px 6px;
  border: 0;
  border-radius: 6px;
  color: var(--undress-muted);
  background: transparent;
  font: inherit;
  font-size: .82rem;
  font-weight: 750;
  cursor: pointer;
}

body.tenant-tool-undress .undress-case-tabs-nav .undress-case-tab {
  min-height: 34px;
  padding: 7px 8px;
  font-size: .7rem;
  white-space: nowrap;
}

@media (min-width: 721px) and (max-width: 1100px) {
  body.tenant-tool-undress .top-tabs { gap: 3px; }
  body.tenant-tool-undress .top-tabs > .top-tab { padding-inline: 9px; font-size: .78rem; }
  body.tenant-tool-undress .undress-case-tabs-nav .undress-case-tab { padding-inline: 6px; font-size: .66rem; }
}

body.tenant-tool-undress .undress-case-tab.is-active {
  color: #0b0c0f;
  background: #ff7a00;
}

body.tenant-tool-undress .undress-case-stage {
  display: grid;
  place-items: start center;
  align-content: start;
  width: 100%;
  min-height: 0;
  margin: 0 auto;
  padding: 0 !important;
}

body.tenant-tool-undress main,
body.tenant-tool-undress .undress-tool-home {
  padding-top: 0 !important;
}

body.tenant-tool-undress .undress-case-media {
  position: relative;
  width: min(560px, 88vw);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 7px;
  background: #08090c;
  box-shadow: 0 16px 48px rgba(0,0,0,.32);
}

/* Single-page upload and generation state */
body.tenant-tool-undress .undress-home-submit {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: min(560px, 100%);
  margin: 0 auto;
}

body.tenant-tool-undress .undress-home-media-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 7px;
  background: #08090c;
}

body.tenant-tool-undress .undress-home-media {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: #08090c;
}

body.tenant-tool-undress .undress-home-media-empty {
  display: grid;
  place-items: center;
  color: var(--undress-muted);
}

body.tenant-tool-undress .undress-home-media-empty svg {
  width: 34px;
  height: 34px;
}

body.tenant-tool-undress .undress-home-progress {
  position: absolute;
  top: 50%;
  left: 12px;
  right: 12px;
  transform: translateY(-50%);
  z-index: 3;
  display: grid;
  gap: 6px;
  padding: 9px 10px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 7px;
  color: #fff;
  background: rgba(8,9,12,.78);
  backdrop-filter: blur(8px);
}

body.tenant-tool-undress .undress-home-progress > span {
  display: block;
  width: 0;
  height: 4px;
  border-radius: 999px;
  background: var(--undress-accent);
  transition: width .25s ease;
}

body.tenant-tool-undress .undress-home-progress strong {
  font-size: .78rem;
  text-align: center;
}

body.tenant-tool-undress .undress-home-generate,
body.tenant-tool-undress .undress-home-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 8px 20px;
  border: 0;
  border-radius: 7px;
  color: #111;
  background: var(--undress-accent);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

body.tenant-tool-undress .undress-home-generate:disabled {
  cursor: wait;
  opacity: .55;
}

body.tenant-tool-undress .undress-home-reset {
  min-height: 36px;
  color: var(--undress-text);
  border: 1px solid var(--undress-line);
  background: transparent;
}

body.tenant-tool-undress .undress-home-hint {
  max-width: 560px;
  margin: 0;
  color: var(--undress-muted);
  font-size: .78rem;
  line-height: 1.45;
  text-align: center;
}

body.tenant-tool-undress .undress-case-layer,
body.tenant-tool-undress .undress-case-media > video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.tenant-tool-undress .undress-case-layer {
  position: absolute;
  inset: 0;
}

body.tenant-tool-undress .undress-case-layer.is-template {
  opacity: 1;
  /* The result is revealed on the left side of the same top-left →
     bottom-right diagonal as the light, so it does not slide in from the
     right as a separate motion. */
  clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  animation: undress-case-reveal 3s linear 1 both;
}

body.tenant-tool-undress .undress-case-video-switch .undress-case-layer.is-template {
  position: absolute;
  inset: 0;
}

body.tenant-tool-undress .undress-case-shimmer {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  background: linear-gradient(100deg, transparent 35%, rgba(255,255,255,.9) 50%, transparent 65%);
  filter: blur(4px);
  /* The beam is clipped to the same diagonal boundary as the reveal below.
     Keeping both animations in viewport percentages prevents them drifting
     apart when the card changes size. */
  clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  opacity: 0;
  animation: undress-case-sweep 3s linear 1 both;
  pointer-events: none;
}

body.tenant-tool-undress .undress-case-source-thumb {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  width: 92px;
  aspect-ratio: 1;
  object-fit: cover;
  border: 3px solid #fff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,.34);
}

body.tenant-tool-undress .undress-case-label {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  padding: 8px 12px;
  border-radius: 7px;
  color: #111;
  background: #ff7a00;
  font-weight: 800;
}

body.tenant-tool-undress .undress-case-play {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  color: #fff;
  background: rgba(0,0,0,.58);
  transform: translate(-50%, -50%);
  cursor: pointer;
}

body.tenant-tool-undress .undress-case-play.is-playing { display: none; }

body.tenant-tool-undress .undress-tool-submit-panel {
  width: min(520px, 100%);
  margin: 0 auto;
  padding: 14px;
  border: 1px solid var(--undress-line);
  border-radius: 8px;
  background: rgba(21,22,27,.94);
}

body.tenant-tool-undress .undress-tool-upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 148px;
  min-height: 44px;
  padding: 9px 20px;
  border: 0;
  border-radius: 7px;
  color: #111;
  background: var(--undress-accent);
  font: inherit;
  font-weight: 800;
  position: relative;
  z-index: 2;
  margin: 10px auto 0;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(255, 79, 122, .2);
}

body.tenant-tool-undress .undress-tool-upload-button:hover { filter: brightness(1.08); }

body.tenant-tool-undress .undress-home-guide {
  max-width: 560px;
  margin: 8px auto 0;
  padding: 0 10px;
  color: var(--undress-muted);
  font-size: .78rem;
  line-height: 1.45;
  text-align: center;
}

body.tenant-tool-undress .undress-tool-home-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 720px) {
  body.tenant-tool-undress.wan30-launch-visible,
  body.tenant-tool-undress.wan30-launch-dismissed {
    padding-top: 54px !important;
  }

  body.tenant-tool-undress .undress-case-tabs-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }
  body.tenant-tool-undress .undress-case-tabs-nav .undress-case-tab {
    min-width: 0;
    padding-inline: 5px;
    font-size: .7rem;
  }
  body.tenant-tool-undress .undress-case-stage { min-height: 0; }
  body.tenant-tool-undress .undress-case-media { width: 100%; max-width: 560px; }
}

body.tenant-tool-undress .undress-tool-inline-body .undress-tool-type-switch {
  display: none;
}

body.tenant-tool-undress .undress-tool-inline-body .video-tool-form-grid.is-single {
  grid-template-columns: minmax(0, 1fr);
}

body.tenant-tool-undress .undress-tool-inline-body .video-tool-upload {
  min-height: 88px;
}

body.tenant-tool-undress .undress-inline-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--undress-teal);
  font-size: .82rem;
}

body.tenant-tool-undress .undress-inline-result {
  display: grid;
  gap: 12px;
  justify-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--undress-line);
}

body.tenant-tool-undress .undress-inline-result video,
body.tenant-tool-undress .undress-inline-result img {
  display: block;
  width: min(330px, 78vw);
  max-height: 480px;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  border-radius: 7px;
  background: #08090c;
}

body.tenant-tool-undress .undress-result-placeholder {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--undress-muted);
}

body.tenant-tool-undress .undress-result-placeholder svg { animation: spin .8s linear infinite; }

body.tenant-tool-undress .undress-inline-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid var(--undress-line);
  border-radius: 6px;
  color: var(--undress-text);
  background: transparent;
  cursor: pointer;
}

@keyframes undress-case-reveal {
  /* One synchronized pass: the diagonal boundary starts after ~1s and the
     completed template remains in place instead of looping back/jumping. */
  0%, 30% {
    opacity: 1;
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  }
  36% {
    opacity: 1;
    clip-path: polygon(0 0, 12% 0, 24% 100%, 0 100%);
  }
  54% {
    opacity: 1;
    clip-path: polygon(0 0, 50% 0, 62% 100%, 0 100%);
  }
  70%, 100% {
    opacity: 1;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
}

@keyframes undress-case-sweep {
  /* A narrow beam travels on the exact top-left → bottom-right boundary used
     by undress-case-reveal. It disappears once the result is fully shown. */
  0%, 30% {
    opacity: 0;
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  }
  36% {
    opacity: 1;
    clip-path: polygon(8% 0, 16% 0, 28% 100%, 20% 100%);
  }
  54% {
    opacity: 1;
    clip-path: polygon(46% 0, 54% 0, 66% 100%, 58% 100%);
  }
  66% {
    opacity: 1;
    clip-path: polygon(84% 0, 92% 0, 100% 100%, 96% 100%);
  }
  70%, 100% {
    opacity: 0;
    clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.tenant-tool-undress .undress-case-layer.is-template,
  body.tenant-tool-undress .undress-case-shimmer { animation: none; opacity: 1; transform: none; clip-path: none; }
  body.tenant-tool-undress .undress-case-layer.is-original { opacity: 0; }
}

.undress-tool-home {
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(100dvh - 112px);
  padding: 40px 16px;
}

body.tenant-tool-undress .undress-ambient {
  position: fixed;
  inset: 74px 0 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #0b0c0f;
}

body.tenant-tool-undress .undress-ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(7, 8, 10, 0.66);
}

body.tenant-tool-undress .undress-ambient video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: saturate(0.76) contrast(0.92);
  transition: opacity 0.6s ease;
}

body.tenant-tool-undress .undress-ambient.is-playing video {
  opacity: 0.54;
}

.undress-tool-home-inner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 22px;
  width: min(560px, 100%);
  text-align: center;
}

.undress-tool-mark {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border: 1px solid var(--undress-line);
  border-radius: 8px;
  color: var(--undress-accent);
  background: var(--undress-panel);
}

.undress-tool-mark svg {
  width: 30px;
  height: 30px;
}

.undress-tool-home h2 {
  margin: 0;
  color: var(--undress-text);
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.undress-tool-copy {
  display: grid;
  gap: 10px;
  justify-items: center;
}

.undress-tool-copy p {
  max-width: 540px;
  margin: 0;
  color: var(--undress-muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.undress-tool-create {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 180px;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  color: #0b0c0f;
  background: var(--undress-teal);
  font-weight: 800;
  cursor: pointer;
}

.undress-tool-create:hover {
  background: #64ead7;
}

body.tenant-tool-undress .video-tool-dialog {
  width: min(500px, calc(100vw - 24px));
  border: 1px solid var(--undress-line);
  border-radius: 8px;
  color: var(--undress-text);
  background: #111217;
}

.undress-tool-type-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 14px;
  padding: 4px;
  border: 1px solid var(--undress-line);
  border-radius: 8px;
  background: #0b0c10;
}

.undress-tool-type-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 40px;
  padding: 7px 6px;
  border: 0;
  border-radius: 6px;
  color: var(--undress-muted);
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.undress-tool-type-option svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}

.undress-tool-type-option span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.undress-tool-type-option.is-active {
  color: #0b0c0f;
  background: var(--undress-teal);
}

.undress-tool-example-flow {
  display: grid;
  grid-template-columns: minmax(0, 112px) 30px minmax(0, 112px);
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 14px;
}

.undress-tool-example-media {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 14;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  background: #08090c;
}

.undress-tool-example-media img,
.undress-tool-example-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #08090c;
}

.undress-tool-example-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 50%;
  color: #fff;
  background: rgba(8, 9, 12, 0.76);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.34);
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.undress-tool-example-play svg {
  width: 20px;
  height: 20px;
  margin-left: 2px;
  fill: currentColor;
}

.undress-tool-example-play.is-playing {
  display: none;
}

.undress-tool-example-play.is-loading svg {
  animation: spin 0.8s linear infinite;
}

.undress-tool-example-arrow {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--undress-line);
  border-radius: 50%;
  color: var(--undress-teal);
  background: #17181e;
}

.undress-tool-example-arrow svg {
  width: 16px;
  height: 16px;
}

body.tenant-tool-undress .video-tool-form-grid.is-single {
  grid-template-columns: minmax(0, 230px);
}

body.tenant-tool-undress .video-tool-upload {
  border-color: rgba(255, 255, 255, 0.24);
  background: #17181e;
}

body.tenant-tool-undress .video-tool-upload:hover {
  border-color: var(--undress-teal);
}

body.tenant-tool-undress .video-tool-upload-preview {
  object-fit: contain;
  background: #08090c;
}

.undress-tool-kind {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  padding: 5px 7px;
  border-radius: 6px;
  color: #0b0c0f;
  background: var(--undress-teal);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.undress-tool-price-note {
  min-height: 38px;
  margin: 12px 0 0;
  padding: 9px 10px;
  border: 1px solid var(--undress-line);
  border-radius: 7px;
  color: var(--undress-muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.82rem;
  line-height: 1.45;
}

.undress-tool-price-note strong {
  color: var(--undress-text);
}

body.tenant-tool-undress .history-panel,
body.tenant-tool-undress .pricing-panel,
body.tenant-tool-undress .topups-panel,
body.tenant-tool-undress .spending-panel,
body.tenant-tool-undress .ledger-panel {
  max-width: 1080px;
  margin: 0 auto;
}

body.tenant-tool-undress .history-panel {
  width: min(100%, 1080px);
}

body.tenant-tool-undress .history-panel .history-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-height: none;
  overflow: visible;
  padding: 2px 2px 72px;
}

body.tenant-tool-undress .history-item {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: #15161b;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

body.tenant-tool-undress .history-item.is-failed {
  border-color: rgba(255, 92, 92, 0.26);
  background: #171619;
}

body.tenant-tool-undress .history-media {
  height: 300px;
  overflow: hidden;
  border-radius: 11px 11px 0 0;
  background: #0b0b0e;
}

body.tenant-tool-undress .history-media video,
body.tenant-tool-undress .history-poster,
body.tenant-tool-undress .history-result-image,
body.tenant-tool-undress .history-placeholder {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  aspect-ratio: auto;
  border-radius: 0;
}

body.tenant-tool-undress .history-poster img,
body.tenant-tool-undress .history-result-image {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
}

body.tenant-tool-undress .history-placeholder {
  gap: 10px;
  color: #a7aab3;
  background: #101114;
}

body.tenant-tool-undress .history-placeholder svg {
  width: 28px;
  height: 28px;
  color: currentColor;
}

body.tenant-tool-undress .history-item.is-running .history-placeholder svg {
  animation: spin 1.2s linear infinite;
}

body.tenant-tool-undress .undress-history-footer {
  display: grid;
  gap: 10px;
  padding: 12px 13px 13px;
}

body.tenant-tool-undress .undress-history-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  color: #8f929c;
  font-size: 0.74rem;
}

body.tenant-tool-undress .undress-history-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: #d5d7de;
  font-weight: 750;
}

body.tenant-tool-undress .undress-history-status svg {
  width: 15px;
  height: 15px;
  color: currentColor;
}

body.tenant-tool-undress .undress-history-status.is-succeeded {
  color: #8ee8dc;
}

body.tenant-tool-undress .undress-history-status.is-failed {
  color: #ff9eab;
}

body.tenant-tool-undress .undress-history-status.is-running,
body.tenant-tool-undress .undress-history-status.is-submitted {
  color: #b5bac5;
}

body.tenant-tool-undress .undress-history-meta time {
  flex: 0 0 auto;
  white-space: nowrap;
}

body.tenant-tool-undress .history-item.is-result-locked .history-media {
  border-color: rgba(255, 79, 122, 0.34);
  background: #111217;
}

body.tenant-tool-undress .history-item.is-result-locked .history-placeholder svg {
  animation: none;
}

body.tenant-tool-undress .history-locked-preview-wrap {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #111217;
}

body.tenant-tool-undress .history-locked-preview {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.82) saturate(0.72);
  transform: scale(1.04);
}

body.tenant-tool-undress .history-locked-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(7, 8, 11, 0.38);
  backdrop-filter: blur(3px);
}

body.tenant-tool-undress .history-locked-mark {
  position: absolute;
  left: 50%;
  top: 44%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: #fff;
  background: rgba(8, 9, 12, 0.72);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
  transform: translate(-50%, -50%);
}

body.tenant-tool-undress .history-locked-mark svg {
  width: 19px;
  height: 19px;
  color: currentColor !important;
}

body.tenant-tool-undress .history-unlock-overlay {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  max-width: calc(100% - 28px);
  padding: 9px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  color: #0b0c0f;
  background: var(--undress-teal);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38), inset 0 1px rgba(255, 255, 255, 0.3);
  transform: translateX(-50%);
  cursor: pointer;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

body.tenant-tool-undress .history-unlock-overlay:disabled {
  cursor: wait;
  opacity: 0.72;
}

body.tenant-tool-undress .history-unlock-overlay svg {
  width: 17px;
  height: 17px;
  color: currentColor !important;
}

body.tenant-tool-undress .history-placeholder .history-unlock-overlay span {
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

body.tenant-tool-undress .history-item {
  padding: 0;
}

body.tenant-tool-undress .history-undress-result-actions {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  width: max-content;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(7, 8, 11, 0.78);
}

body.tenant-tool-undress .history-undress-result-actions button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #c9cbd2;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  cursor: pointer;
}

body.tenant-tool-undress .history-undress-download {
  color: #9ce9df;
  background: rgba(45, 226, 200, 0.14);
}

body.tenant-tool-undress .history-undress-download:hover {
  border-color: rgba(45, 226, 200, 0.36);
  background: rgba(45, 226, 200, 0.24);
}

body.tenant-tool-undress .history-undress-delete {
  color: #ffacb7;
  background: rgba(255, 79, 122, 0.12);
}

body.tenant-tool-undress .history-undress-delete:hover {
  border-color: rgba(255, 79, 122, 0.34);
  background: rgba(255, 79, 122, 0.22);
}

body.tenant-tool-undress .history-undress-result-actions button:disabled {
  cursor: wait;
  opacity: 0.72;
}

body.tenant-tool-undress .history-undress-result-actions button svg {
  width: 19px;
  height: 19px;
  color: currentColor !important;
}

body.tenant-tool-undress .history-item.is-result-locked .history-placeholder {
  min-height: 0;
  max-height: none;
  border-radius: 0;
}

@media (max-width: 720px) {
  body.tenant-tool-undress .history-panel {
    width: min(100%, 680px);
    margin: 0 auto;
  }

  body.tenant-tool-undress .history-panel .history-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 2px 0 76px;
  }

  body.tenant-tool-undress .history-media {
    height: min(300px, 72vw);
  }

  body.tenant-tool-undress .undress-history-footer {
    padding: 11px 12px 12px;
  }
}

body.tenant-tool-undress .undress-credit-alert {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 18px 8px 8px;
  color: var(--undress-text);
  text-align: center;
}

body.tenant-tool-undress .undress-credit-alert svg {
  width: 34px;
  height: 34px;
  color: var(--undress-accent);
}

body.tenant-tool-undress .undress-credit-alert p {
  margin: 0;
  color: var(--undress-muted);
  line-height: 1.6;
}

body.tenant-tool-undress .undress-unlock-confirm {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 16px 8px 8px;
  color: var(--undress-muted);
  text-align: center;
}

body.tenant-tool-undress .undress-unlock-confirm strong {
  color: var(--undress-text);
  font-size: 1.8rem;
  line-height: 1.1;
}

body.tenant-tool-undress .undress-unlock-confirm small {
  color: var(--undress-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

body.tenant-tool-undress .inline-modal.is-undress-unlock .inline-actions {
  justify-content: center;
}

@media (min-width: 721px) {
  body.tenant-tool-undress {
    padding-top: 76px;
  }

  body.tenant-tool-undress .side-rail {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px;
    width: 100%;
    height: 74px;
    min-height: 0;
    padding: 12px 28px;
    border-right: 0;
    border-bottom: 1px solid var(--undress-line);
    background: rgba(8, 9, 12, 0.94);
  }

  body.tenant-tool-undress .brand {
    min-width: 170px;
  }

  body.tenant-tool-undress .brand-mark {
    border-radius: 8px;
    background: #191a20;
  }

  body.tenant-tool-undress .top-tabs {
    justify-self: center;
    display: inline-flex;
    width: auto;
    gap: 6px;
    padding: 4px;
    border: 1px solid var(--undress-line);
    border-radius: 8px;
    background: #15161b;
  }

  body.tenant-tool-undress .top-tab {
    min-height: 38px;
    padding: 8px 13px;
    border-radius: 6px;
    color: var(--undress-muted);
    background: transparent;
    box-shadow: none;
  }

  body.tenant-tool-undress .top-tab.is-active {
    color: #0b0c0f;
    background: var(--undress-teal);
  }

  body.tenant-tool-undress .side-utility-nav {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    padding-top: 0;
    border-top: 0;
  }

  body.tenant-tool-undress .side-utility-link {
    width: auto;
    min-height: 34px;
    padding: 7px 9px;
    font-size: 0.82rem;
  }

  body.tenant-tool-undress .mobile-drawer-account {
    display: none;
  }

  body.tenant-tool-undress .site-head {
    position: fixed;
    inset: 13px 22px auto auto;
    z-index: 60;
    min-height: 0;
    padding: 0;
    background: transparent;
  }
}

@media (max-width: 720px) {
  body.tenant-tool-undress main {
    width: 100%;
  }

  body.tenant-tool-undress .undress-tool-home {
    min-height: calc(100dvh - 76px);
    padding: 0 4px 96px;
  }

  body.tenant-tool-undress .undress-tool-home-inner {
    width: 100%;
  }

  body.tenant-tool-undress .undress-ambient {
    inset: 54px 0 0;
  }

  .undress-tool-home h2 {
    font-size: 1.55rem;
  }

  .undress-tool-copy p {
    max-width: 340px;
    font-size: 0.9rem;
    line-height: 1.55;
  }

  body.tenant-tool-undress .video-tool-dialog {
    width: calc(100vw - 12px);
    max-height: calc(100dvh - 16px);
  }

  body.tenant-tool-undress .video-tool-dialog .modal-body {
    padding: 11px;
  }

  body.tenant-tool-undress .video-tool-form-grid.is-single {
    grid-template-columns: minmax(0, min(62vw, 230px));
  }

  .undress-tool-example-flow {
    grid-template-columns: minmax(0, min(27vw, 104px)) 28px minmax(0, min(27vw, 104px));
    gap: 6px;
  }

  body.tenant-tool-undress .mobile-header-actions {
    right: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.tenant-tool-undress .undress-ambient video {
    display: none;
  }
}
