.rwm-twv {
  box-sizing: border-box;
  max-width: 100%;
  color: #18202b;
  font-family: inherit;
}

.rwm-twv *,
.rwm-twv *::before,
.rwm-twv *::after {
  box-sizing: inherit;
}

.rwm-twv__app {
  position: relative;
  border: 1px solid #d8e0e8;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(24, 32, 43, 0.08);
  color: inherit;
  overflow: hidden;
}

.rwm-twv__loading {
  margin: 0;
  padding: 18px;
}

.rwm-twv__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  min-height: 420px;
}

.rwm-twv__controls,
.rwm-twv__preview-stack {
  min-width: 0;
}

.rwm-twv__controls {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px;
  border-right: 1px solid #e3e8ef;
  background: #fbfcfe;
}

.rwm-twv__preview-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px;
  background: #f4f8fb;
}

.rwm-twv__title {
  margin: 0;
  color: #17202a;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
}

.rwm-twv__intro,
.rwm-twv__hint,
.rwm-twv__status-message {
  margin: 0;
  color: #526173;
  font-size: 0.95rem;
  line-height: 1.55;
}

.rwm-twv__hint--muted {
  color: #6f7b8a;
  font-size: 0.88rem;
}

.rwm-twv__upload {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rwm-twv__upload-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.rwm-twv__upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.rwm-twv__upload-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid #2f7d7b;
  border-radius: 6px;
  padding: 0 16px;
  background: #2f7d7b;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 650;
  text-align: center;
}

.rwm-twv__upload-input:focus-visible + .rwm-twv__upload-button,
.rwm-twv__upload-button:focus-visible {
  outline: 2px solid #18202b;
  outline-offset: 2px;
}

.rwm-twv__upload-meta {
  color: #526173;
  font-size: 0.88rem;
  line-height: 1.35;
}

.rwm-twv__status {
  border-left: 3px solid #2f7d7b;
  padding: 10px 12px;
  background: #eef8f7;
}

.rwm-twv__status[data-rwm-twv-state="error"] {
  border-left-color: #b42318;
  background: #fff1f0;
}

.rwm-twv__status[data-rwm-twv-state="needs_manual_correction"] {
  border-left-color: #b7791f;
  background: #fff8e6;
}

.rwm-twv__status[data-rwm-twv-state="requesting_mask"],
.rwm-twv__status[data-rwm-twv-state="requesting_remote_mask"],
.rwm-twv__status[data-rwm-twv-state="processing_remote_response"],
.rwm-twv__status[data-rwm-twv-state="processing_fallback_mask"],
.rwm-twv__status[data-rwm-twv-state="demo_loading"],
.rwm-twv__status[data-rwm-twv-state="preprocessing"],
.rwm-twv__status[data-rwm-twv-state="detecting_mouth"] {
  border-left-color: #4f6f8f;
  background: #eef5fc;
}

.rwm-twv__status[data-rwm-twv-state="rendering"] {
  border-left-color: #4f6f8f;
  background: #eef5fc;
}

.rwm-twv__status[data-rwm-twv-state="upload_guide"] {
  border-left-color: #2f7d7b;
  background: #eef8f7;
}

.rwm-twv__status[data-rwm-twv-state="mask_ready"] {
  border-left-color: #2f7d7b;
  background: #eef8f7;
}

.rwm-twv__status[data-rwm-twv-state="ready"] {
  border-left-color: #2f7d7b;
  background: #eef8f7;
}

.rwm-twv__status-title,
.rwm-twv__debug-title {
  margin: 0 0 4px;
  color: #17202a;
  font-size: 0.82rem;
  font-weight: 700;
}

.rwm-twv__preview {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rwm-twv__preview-header,
.rwm-twv__slider-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.rwm-twv__preview-title {
  margin: 0;
  color: #17202a;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
}

.rwm-twv__simulation-label {
  color: #586779;
  font-size: 0.82rem;
  font-weight: 650;
  white-space: nowrap;
}

.rwm-twv__preview-frame {
  position: relative;
  display: grid;
  min-height: 230px;
  overflow: hidden;
  border: 1px solid #cdd7e2;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 58%, rgba(255, 255, 255, 0.88) 0 10%, rgba(255, 255, 255, 0) 11%),
    linear-gradient(135deg, #dce8ef 0%, #eef3f7 48%, #dbe7ec 100%);
  aspect-ratio: 16 / 9;
}

.rwm-twv__preview-frame::before {
  position: absolute;
  inset: 18% 18% auto;
  height: 38%;
  border: 1px solid rgba(76, 92, 110, 0.16);
  border-radius: 999px 999px 46% 46%;
  background: rgba(255, 255, 255, 0.46);
  content: "";
}

.rwm-twv__preview-frame--has-image {
  background: #101820;
}

.rwm-twv__preview-frame--has-image::before {
  display: none;
}

.rwm-twv__canvas-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.rwm-twv__preview-frame--has-image .rwm-twv__canvas-placeholder {
  visibility: hidden;
}

.rwm-twv__preview-frame--has-renderer .rwm-twv__render-canvas {
  position: absolute;
  inset: 0;
  visibility: visible;
  background: #101820;
}

.rwm-twv__preview-frame--has-renderer .rwm-twv__preview-image {
  display: none;
}

.rwm-twv__preview-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #101820;
}

.rwm-twv__preview-image[hidden] {
  display: none;
}

.rwm-twv__mouth-overlay {
  position: absolute;
  z-index: 2;
  border: 2px solid #ffcc4d;
  border-radius: 6px;
  background: rgba(255, 204, 77, 0.16);
  box-shadow: 0 0 0 9999px rgba(16, 24, 32, 0.18);
  pointer-events: none;
}

.rwm-twv__mouth-overlay[hidden] {
  display: none;
}

.rwm-twv__preview-overlay {
  position: absolute;
  z-index: 3;
  right: 14px;
  bottom: 14px;
  left: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 6px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.82);
  color: #253246;
}

.rwm-twv__preview-overlay-title {
  font-size: 0.88rem;
  font-weight: 700;
}

.rwm-twv__preview-overlay-text {
  color: #5b6878;
  font-size: 0.8rem;
}

.rwm-twv__upload-guide-overlay {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(8, 17, 31, 0.38);
}

.rwm-twv__upload-guide-overlay[hidden] {
  display: none;
}

.rwm-twv__upload-guide-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(220px, 1fr);
  gap: 16px;
  width: min(100%, 650px);
  max-height: calc(100% - 24px);
  overflow-y: auto;
  border: 1px solid rgba(205, 215, 226, 0.9);
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(8, 17, 31, 0.24);
}

.rwm-twv__upload-guide {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
}

.rwm-twv__upload-guide-image {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: contain;
}

.rwm-twv__upload-guide-title {
  margin: 0;
  color: #17202a;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.25;
}

.rwm-twv__upload-guide-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: #253246;
  font-size: 0.9rem;
  line-height: 1.35;
}

.rwm-twv__upload-guide-privacy {
  margin: 0;
  border: 1px solid rgba(30, 159, 186, 0.34);
  border-left: 4px solid #1e9fba;
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(108, 210, 234, 0.12);
  color: #17202a;
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.4;
}

.rwm-twv__upload-guide-cta,
.rwm-twv__upload-guide-close {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 6px;
  padding: 0 14px;
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
}

.rwm-twv__upload-guide-cta {
  border: 1px solid #2f7d7b;
  background: #2f7d7b;
  color: #ffffff;
}

.rwm-twv__upload-guide-close {
  border: 1px solid #cdd7e2;
  background: #ffffff;
  color: #253246;
}

.rwm-twv__upload-guide-cta:focus-visible,
.rwm-twv__upload-guide-close:focus-visible {
  outline: 2px solid #18202b;
  outline-offset: 2px;
}

.rwm-twv__loading-overlay {
  position: absolute;
  z-index: 5;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  background: rgba(8, 17, 31, 0.58);
  color: #ffffff;
  text-align: center;
}

.rwm-twv__loading-overlay[hidden] {
  display: none;
}

.rwm-twv__loading-spinner {
  display: block;
  width: 46px;
  height: 46px;
  border: 4px solid rgba(255, 255, 255, 0.38);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: rwm-twv-spin 900ms linear infinite;
}

.rwm-twv__loading-text {
  max-width: min(320px, 90%);
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.35;
}

@keyframes rwm-twv-spin {
  to {
    transform: rotate(360deg);
  }
}

.rwm-twv__slider {
  border: 1px solid #d4dde7;
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
}

.rwm-twv__slider[data-rwm-twv-slider-locked="true"],
.rwm-twv__live-whitening-scale[data-rwm-twv-slider-locked="true"] {
  opacity: 0.62;
}

.rwm-twv__slider-label {
  color: #17202a;
  font-size: 0.96rem;
  font-weight: 700;
}

.rwm-twv__slider-value {
  color: #2f7d7b;
  font-size: 0.96rem;
  font-weight: 800;
}

.rwm-twv__slider-input {
  width: 100%;
  margin: 12px 0 0;
  accent-color: #2f7d7b;
}

.rwm-twv__slider-input:disabled {
  cursor: wait;
}

.rwm-twv__debug {
  border: 1px dashed #b9c5d2;
  border-radius: 6px;
  padding: 12px;
  background: #ffffff;
}

.rwm-twv__debug-body {
  display: grid;
  gap: 5px;
}

.rwm-twv__meta-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #526173;
  font-size: 0.78rem;
  line-height: 1.35;
}

.rwm-twv__meta-label {
  font-weight: 650;
}

.rwm-twv__meta-value {
  color: #17202a;
  text-align: right;
  overflow-wrap: anywhere;
}

@media (max-width: 720px) {
  .rwm-twv__layout {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .rwm-twv__preview-stack {
    order: 1;
    gap: 10px;
    padding: 16px;
  }

  .rwm-twv__controls {
    order: 2;
    gap: 12px;
    padding: 16px;
    border-top: 1px solid #e3e8ef;
    border-right: 0;
  }

  .rwm-twv__preview-frame {
    min-height: 190px;
  }

  .rwm-twv__preview {
    position: static;
  }

  .rwm-twv__upload-guide-overlay {
    padding: 16px;
    align-items: center;
  }

  .rwm-twv__upload-guide-panel {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: min(92vw, 420px);
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    gap: 12px;
    overflow-x: hidden;
  }

  .rwm-twv__upload-guide-image {
    max-height: min(42vh, 320px);
    max-height: min(42dvh, 320px);
  }

  .rwm-twv__upload-label {
    align-items: flex-start;
  }

  .rwm-twv__preview-header,
  .rwm-twv__slider-header {
    align-items: flex-start;
  }

  .rwm-twv__preview-overlay {
    position: static;
    border-width: 1px 0 0;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.9);
  }

  .rwm-twv__title {
    font-size: 1.15rem;
  }
}

.rwm-twv--live {
  --rwm-twv-live-primary: #6CD2EA;
  --rwm-twv-live-primary-dark: #1E9FBA;
  --rwm-twv-live-primary-soft: rgba(108, 210, 234, 0.16);
  --rwm-twv-live-text: #07111F;
  --rwm-twv-live-muted: #526174;
  --rwm-twv-live-surface: #ffffff;
  --rwm-twv-live-surface-soft: #f4fbfd;
  --rwm-twv-live-border: rgba(108, 210, 234, 0.38);
  color: var(--rwm-twv-live-text);
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
}

.rwm-twv--live .rwm-twv__app {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, #ffffff 0%, #f4fbfd 100%);
  box-shadow: none;
}

.rwm-twv--live .rwm-twv__live-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(340px, 0.86fr);
  gap: clamp(28px, 4vw, 70px);
  align-items: stretch;
  padding: clamp(18px, 2.5vw, 40px);
}

.rwm-twv--live .rwm-twv__live-preview-column {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
}

.rwm-twv--live .rwm-twv__preview {
  flex: 1;
  min-height: 0;
}

.rwm-twv--live .rwm-twv__preview-frame {
  height: 100%;
  min-height: 610px;
  overflow: hidden;
  border: 1px solid var(--rwm-twv-live-border);
  border-radius: 18px;
  background:
    radial-gradient(circle at 42% 42%, rgba(255, 255, 255, 0.92) 0 12%, rgba(255, 255, 255, 0) 34%),
    linear-gradient(145deg, #eaf9fc 0%, #e5eef4 52%, #d8e6ec 100%);
  box-shadow: 0 22px 50px rgba(7, 17, 31, 0.1);
  aspect-ratio: auto;
}

.rwm-twv--live .rwm-twv__preview-frame--has-image,
.rwm-twv--live .rwm-twv__preview-frame--has-renderer {
  background: #101820;
}

.rwm-twv--live .rwm-twv__canvas-placeholder,
.rwm-twv--live .rwm-twv__preview-image,
.rwm-twv--live .rwm-twv__render-canvas {
  border-radius: inherit;
  object-fit: contain;
}

.rwm-twv--live .rwm-twv__live-preview-badge {
  position: absolute;
  z-index: 4;
  top: 28px;
  left: 28px;
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0 20px;
  background: rgba(31, 37, 39, 0.52);
  box-shadow: 0 8px 22px rgba(7, 17, 38, 0.16);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.rwm-twv--live .rwm-twv__upload--live {
  align-items: flex-start;
  padding: 2px 4px 0;
}

.rwm-twv--live .rwm-twv__upload--live .rwm-twv__upload-label {
  gap: 8px 12px;
}

.rwm-twv--live .rwm-twv__upload--live .rwm-twv__upload-button {
  min-height: 44px;
  border-color: rgba(30, 159, 186, 0.32);
  border-radius: 999px;
  padding: 0 18px;
  background: var(--rwm-twv-live-primary-dark);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 750;
}

.rwm-twv--live .rwm-twv__upload--live .rwm-twv__upload-button:hover {
  background: #167f96;
}

.rwm-twv--live .rwm-twv__upload--live .rwm-twv__upload-meta,
.rwm-twv--live .rwm-twv__live-privacy {
  color: var(--rwm-twv-live-muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.rwm-twv--live .rwm-twv__live-privacy {
  margin: 0;
  padding: 0 4px;
}

.rwm-twv--live .rwm-twv__live-status {
  border-left: 3px solid var(--rwm-twv-live-primary);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.72);
}

.rwm-twv--live .rwm-twv__live-status[hidden] {
  display: none;
}

.rwm-twv--live .rwm-twv__live-status[data-rwm-twv-state="error"] {
  border-left-color: #b42318;
  background: #fff1f0;
}

.rwm-twv--live .rwm-twv__live-status-message {
  margin: 0;
  color: var(--rwm-twv-live-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.rwm-twv--live .rwm-twv__live-controls {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: clamp(18px, 2vw, 30px);
  justify-content: center;
}

.rwm-twv--live .rwm-twv__live-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.rwm-twv--live .rwm-twv__live-intro-text {
  max-width: 720px;
  margin: 0;
  color: var(--rwm-twv-live-text);
  font-size: clamp(1.04rem, 1.28vw, 1.34rem);
  font-weight: 450;
  line-height: 1.48;
}

.rwm-twv--live .rwm-twv__live-whitening-scale {
  display: grid;
  gap: 16px;
  padding: 20px 0 22px;
  border-top: 1px solid rgba(82, 97, 116, 0.14);
  border-bottom: 1px solid rgba(82, 97, 116, 0.14);
}

.rwm-twv--live .rwm-twv__live-scale-title {
  margin: 0;
  color: var(--rwm-twv-live-text);
  font-size: clamp(1.28rem, 1.8vw, 1.72rem);
  font-weight: 760;
  line-height: 1.15;
}

.rwm-twv--live .rwm-twv__live-slider-wrap {
  display: grid;
}

.rwm-twv--live .rwm-twv__live-eyebrow,
.rwm-twv--live .rwm-twv__live-options-label,
.rwm-twv--live .rwm-twv__live-secondary-heading {
  color: var(--rwm-twv-live-primary-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  line-height: 1.2;
  text-transform: uppercase;
}

.rwm-twv--live .rwm-twv__live-slider-input {
  width: 100%;
  height: 30px;
  margin: 0;
  padding: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.rwm-twv--live .rwm-twv__live-slider-input::-webkit-slider-runnable-track {
  height: 12px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--rwm-twv-live-primary-dark), var(--rwm-twv-live-primary)) 0 / var(--rwm-twv-slider-value, 35%) 100% no-repeat,
    linear-gradient(90deg, #dcebf0, #f4fbfd);
}

.rwm-twv--live .rwm-twv__live-slider-input::-webkit-slider-thumb {
  width: 34px;
  height: 34px;
  margin-top: -11px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  appearance: none;
  background: var(--rwm-twv-live-primary);
  box-shadow: 0 5px 16px rgba(30, 159, 186, 0.26);
}

.rwm-twv--live .rwm-twv__live-slider-input::-moz-range-track {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #dcebf0, #f4fbfd);
}

.rwm-twv--live .rwm-twv__live-slider-input::-moz-range-progress {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rwm-twv-live-primary-dark), var(--rwm-twv-live-primary));
}

.rwm-twv--live .rwm-twv__live-slider-input::-moz-range-thumb {
  width: 29px;
  height: 29px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: var(--rwm-twv-live-primary);
  box-shadow: 0 5px 16px rgba(30, 159, 186, 0.26);
}

.rwm-twv--live .rwm-twv__live-stage-list {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.rwm-twv--live .rwm-twv__live-stage-tick {
  display: grid;
  min-width: 0;
  gap: 5px;
  justify-items: center;
  border: 0;
  border-radius: 8px;
  padding: 8px 5px;
  background: transparent;
  color: var(--rwm-twv-live-muted);
  cursor: pointer;
  font: inherit;
  text-align: center;
}

.rwm-twv--live .rwm-twv__live-stage-marker {
  width: 11px;
  height: 11px;
  border: 2px solid rgba(30, 159, 186, 0.34);
  border-radius: 50%;
  background: #ffffff;
}

.rwm-twv--live .rwm-twv__live-stage-label {
  font-size: 0.75rem;
  font-weight: 760;
  line-height: 1.15;
}

.rwm-twv--live .rwm-twv__live-stage-package {
  color: var(--rwm-twv-live-muted);
  font-size: 0.68rem;
  line-height: 1.15;
}

.rwm-twv--live .rwm-twv__live-stage-tick[data-rwm-twv-stage-active="true"] {
  background: var(--rwm-twv-live-primary-soft);
  color: var(--rwm-twv-live-text);
}

.rwm-twv--live .rwm-twv__live-stage-tick[data-rwm-twv-stage-active="true"] .rwm-twv__live-stage-marker {
  border-color: var(--rwm-twv-live-primary);
  background: var(--rwm-twv-live-primary);
  box-shadow: 0 0 0 5px rgba(108, 210, 234, 0.18);
}

.rwm-twv--live .rwm-twv__live-stage-tick:disabled {
  cursor: wait;
}

.rwm-twv--live .rwm-twv__live-packages {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
}

.rwm-twv--live .rwm-twv__live-packages-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.rwm-twv--live .rwm-twv__live-options-label {
  color: var(--rwm-twv-live-muted);
  text-align: right;
}

.rwm-twv--live .rwm-twv__live-package-list {
  display: grid;
  gap: 10px;
}

.rwm-twv--live .rwm-twv__live-package-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start;
  border: 1px solid rgba(82, 97, 116, 0.18);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 24px rgba(7, 17, 31, 0.04);
}

.rwm-twv--live .rwm-twv__live-package-card--recommended {
  border-color: var(--rwm-twv-live-primary);
  background: linear-gradient(180deg, #ffffff 0%, rgba(108, 210, 234, 0.13) 100%);
  box-shadow: 0 18px 38px rgba(30, 159, 186, 0.16);
}

.rwm-twv--live .rwm-twv__live-package-card--recommended::before {
  grid-column: 1 / -1;
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rwm-twv-live-primary-dark), var(--rwm-twv-live-primary));
  content: "";
}

.rwm-twv--live .rwm-twv__live-package-heading,
.rwm-twv--live .rwm-twv__live-package-details {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.rwm-twv--live .rwm-twv__live-package-title {
  color: var(--rwm-twv-live-text);
  font-size: 1rem;
  font-weight: 720;
  line-height: 1.15;
}

.rwm-twv--live .rwm-twv__live-package-card--recommended .rwm-twv__live-package-title {
  font-size: clamp(1.28rem, 1.8vw, 1.7rem);
}

.rwm-twv--live .rwm-twv__live-package-category,
.rwm-twv--live .rwm-twv__live-package-category-note,
.rwm-twv--live .rwm-twv__live-package-duration,
.rwm-twv--live .rwm-twv__live-package-durability,
.rwm-twv--live .rwm-twv__live-package-result,
.rwm-twv--live .rwm-twv__live-package-disclaimer {
  color: var(--rwm-twv-live-muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.rwm-twv--live .rwm-twv__live-package-result {
  color: var(--rwm-twv-live-primary-dark);
  font-weight: 700;
}

.rwm-twv--live .rwm-twv__live-package-price {
  justify-self: start;
  color: var(--rwm-twv-live-text);
  font-size: 1.18rem;
  font-weight: 760;
  line-height: 1;
  white-space: nowrap;
}

.rwm-twv--live .rwm-twv__live-package-card--recommended .rwm-twv__live-package-price {
  color: var(--rwm-twv-live-primary-dark);
  font-size: clamp(1.52rem, 2vw, 2rem);
}

.rwm-twv--live .rwm-twv__live-package-secondary-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.rwm-twv--live .rwm-twv__live-package-secondary {
  display: grid;
  gap: 4px;
  min-width: 0;
  border-left: 3px solid var(--rwm-twv-live-primary);
  border-radius: 0 8px 8px 0;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.68);
}

.rwm-twv--live .rwm-twv__live-package-secondary-title {
  color: var(--rwm-twv-live-text);
  font-size: 0.82rem;
  font-weight: 740;
  line-height: 1.2;
}

.rwm-twv--live .rwm-twv__live-package-secondary-meta {
  color: var(--rwm-twv-live-muted);
  font-size: 0.74rem;
  line-height: 1.25;
}

.rwm-twv--live .rwm-twv__live-package-cta {
  grid-column: 1 / -1;
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(30, 159, 186, 0.28);
  border-radius: 999px;
  padding: 0 18px;
  background: #ffffff;
  color: var(--rwm-twv-live-primary-dark);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 750;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.rwm-twv--live .rwm-twv__live-package-card--recommended .rwm-twv__live-package-cta {
  border-color: transparent;
  background: linear-gradient(90deg, var(--rwm-twv-live-primary-dark), var(--rwm-twv-live-primary));
  box-shadow: 0 12px 26px rgba(30, 159, 186, 0.22);
  color: var(--rwm-twv-live-text);
}

.rwm-twv--live .rwm-twv__live-package-cta:hover {
  transform: translateY(-1px);
  background: var(--rwm-twv-live-primary-soft);
}

.rwm-twv--live .rwm-twv__live-package-card--recommended .rwm-twv__live-package-cta:hover {
  box-shadow: 0 16px 32px rgba(30, 159, 186, 0.28);
}

.rwm-twv--live .rwm-twv__live-package-disclaimer {
  margin: 0;
}

.rwm-twv--live .rwm-twv__live-package-guarantee-note {
  margin: 0;
  text-align: center;
}

.rwm-twv--live .rwm-twv__upload-input:focus-visible + .rwm-twv__upload-button,
.rwm-twv--live .rwm-twv__upload-button:focus-visible,
.rwm-twv--live .rwm-twv__upload-guide-cta:focus-visible,
.rwm-twv--live .rwm-twv__upload-guide-close:focus-visible,
.rwm-twv--live .rwm-twv__live-slider-input:focus-visible,
.rwm-twv--live .rwm-twv__live-stage-tick:focus-visible,
.rwm-twv--live .rwm-twv__live-package-cta:focus-visible {
  outline: 3px solid rgba(30, 159, 186, 0.62);
  outline-offset: 3px;
}

.rwm-twv--live-layout-neu-2 .rwm-twv__app {
  background:
    radial-gradient(circle, rgba(0, 113, 255, 0.22) 1px, transparent 1.4px) 0 0 / 16px 16px,
    linear-gradient(180deg, #ffffff 0%, #f5fbff 100%);
}

.rwm-twv--live-layout-neu-2 .rwm-twv__live-neu-2-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 4.4vw, 76px);
  align-items: center;
  padding: clamp(18px, 3vw, 46px);
}

.rwm-twv--live-layout-neu-2 .rwm-twv__live-neu-2-controls,
.rwm-twv--live-layout-neu-2 .rwm-twv__live-neu-2-preview-column {
  min-width: 0;
}

.rwm-twv--live-layout-neu-2 .rwm-twv__live-neu-2-controls {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 26px);
}

.rwm-twv--live-layout-neu-2 .rwm-twv__live-neu-2-preview-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rwm-twv--live-layout-neu-2 .rwm-twv__live-neu-2-intro {
  display: grid;
  gap: 12px;
}

.rwm-twv--live-layout-neu-2 .rwm-twv__live-neu-2-kicker {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(7, 17, 31, 0.08);
  border-radius: 999px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 26px rgba(7, 17, 31, 0.08);
  color: var(--rwm-twv-live-text);
  font-size: 0.82rem;
  font-weight: 720;
  line-height: 1.2;
}

.rwm-twv--live-layout-neu-2 .rwm-twv__live-neu-2-kicker-dot {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #0071ff;
  box-shadow: 0 0 0 6px rgba(0, 113, 255, 0.12);
}

.rwm-twv--live-layout-neu-2 .rwm-twv__live-neu-2-title {
  max-width: 620px;
  margin: 0;
  color: var(--rwm-twv-live-text);
  letter-spacing: 0;
}

.rwm-twv--live-layout-neu-2 .rwm-twv__live-neu-2-title-gradient {
  background: linear-gradient(90deg, #5fd8c8, #0071ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rwm-twv--live-layout-neu-2 .rwm-twv__live-neu-2-title-main {
  color: #0071ff;
}

.rwm-twv--live-layout-neu-2 .rwm-twv__live-neu-2-title-text {
  color: #2f3138;
}

.rwm-twv--live-layout-neu-2 .rwm-twv__live-neu-2-intro-text {
  max-width: 500px;
  margin: 0;
  color: var(--rwm-twv-live-muted);
  font-size: clamp(0.98rem, 1.2vw, 1.18rem);
  line-height: 1.55;
}

.rwm-twv--live-layout-neu-2 .rwm-twv__preview {
  min-height: 0;
}

.rwm-twv--live-layout-neu-2 .rwm-twv__preview-frame {
  min-height: clamp(440px, 52vw, 650px);
  overflow: visible;
  border: 0;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(95, 216, 200, 0.18), rgba(0, 113, 255, 0.16)),
    #eef8fd;
  box-shadow: 0 26px 60px rgba(7, 17, 31, 0.16);
  transform: rotate(-1.5deg);
}

.rwm-twv--live-layout-neu-2 .rwm-twv__live-preview-badge {
  display: none;
}

.rwm-twv--live-layout-neu-2 .rwm-twv__live-status {
  max-width: 360px;
  margin-left: auto;
  border-left: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
}

.rwm-twv--live-layout-neu-2 .rwm-twv__live-status-message {
  color: var(--rwm-twv-live-muted);
}

.rwm-twv--live-layout-neu-2 .rwm-twv__live-neu-2-preview-status {
  position: absolute;
  z-index: 4;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(7, 17, 31, 0.08);
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(7, 17, 31, 0.14);
  color: #2f3138;
  font-size: 0.78rem;
  font-weight: 760;
  line-height: 1;
}

.rwm-twv--live-layout-neu-2 .rwm-twv__live-neu-2-status-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #5fd8c8;
}

.rwm-twv--live-layout-neu-2 .rwm-twv__live-neu-2-preview-stats {
  position: absolute;
  z-index: 4;
  inset: 18px 18px auto auto;
  display: grid;
  gap: 10px;
  width: min(230px, calc(100% - 36px));
}

.rwm-twv--live-layout-neu-2 .rwm-twv__live-neu-2-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(7, 17, 31, 0.08);
  border-radius: 14px;
  padding: 11px 13px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 14px 30px rgba(7, 17, 31, 0.13);
}

.rwm-twv--live-layout-neu-2 .rwm-twv__live-neu-2-stat-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #0071ff;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
}

.rwm-twv--live-layout-neu-2 .rwm-twv__live-neu-2-stat-content {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.rwm-twv--live-layout-neu-2 .rwm-twv__live-neu-2-stat-label {
  color: var(--rwm-twv-live-muted);
  font-size: 0.74rem;
  line-height: 1.1;
}

.rwm-twv--live-layout-neu-2 .rwm-twv__live-neu-2-stat-value {
  color: var(--rwm-twv-live-text);
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.12;
}

.rwm-twv--live-layout-neu-2 .rwm-twv__live-whitening-scale {
  gap: 18px;
  padding: 18px 0;
  border-top-color: rgba(30, 159, 186, 0.18);
  border-bottom-color: rgba(30, 159, 186, 0.18);
}

.rwm-twv--live-layout-neu-2 .rwm-twv__live-scale-title {
  max-width: 520px;
  font-size: clamp(1.2rem, 1.7vw, 1.62rem);
}

.rwm-twv--live-layout-neu-2 .rwm-twv__live-stage-list {
  gap: 0;
  border: 1px solid rgba(30, 159, 186, 0.18);
  border-radius: 8px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.68);
}

.rwm-twv--live-layout-neu-2 .rwm-twv__live-stage-tick {
  border-radius: 6px;
  padding: 10px 6px;
}

.rwm-twv--live-layout-neu-2 .rwm-twv__live-stage-tick[data-rwm-twv-stage-active="true"] {
  background: #0071ff;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(0, 113, 255, 0.22);
}

.rwm-twv--live-layout-neu-2 .rwm-twv__live-stage-marker {
  width: 9px;
  height: 9px;
}

.rwm-twv--live-layout-neu-2 .rwm-twv__live-stage-tick[data-rwm-twv-stage-active="true"] .rwm-twv__live-stage-package {
  color: rgba(255, 255, 255, 0.82);
}

.rwm-twv--live-layout-neu-2 .rwm-twv__live-packages {
  gap: 10px;
}

.rwm-twv--live-layout-neu-2 .rwm-twv__live-package-card {
  border-color: rgba(30, 159, 186, 0.2);
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(7, 17, 31, 0.07);
}

.rwm-twv--live-layout-neu-2 .rwm-twv__live-package-card--recommended {
  border-color: #0071ff;
  background: #0071ff;
  box-shadow: 0 22px 46px rgba(0, 113, 255, 0.24);
}

.rwm-twv--live-layout-neu-2 .rwm-twv__live-package-card--recommended::before {
  height: 0;
}

.rwm-twv--live-layout-neu-2 .rwm-twv__live-package-card--recommended .rwm-twv__live-package-title,
.rwm-twv--live-layout-neu-2 .rwm-twv__live-package-card--recommended .rwm-twv__live-package-price {
  color: #ffffff;
}

.rwm-twv--live-layout-neu-2 .rwm-twv__live-package-card--recommended .rwm-twv__live-package-category,
.rwm-twv--live-layout-neu-2 .rwm-twv__live-package-card--recommended .rwm-twv__live-package-category-note,
.rwm-twv--live-layout-neu-2 .rwm-twv__live-package-card--recommended .rwm-twv__live-package-duration,
.rwm-twv--live-layout-neu-2 .rwm-twv__live-package-card--recommended .rwm-twv__live-package-durability,
.rwm-twv--live-layout-neu-2 .rwm-twv__live-package-card--recommended .rwm-twv__live-package-result {
  color: rgba(255, 255, 255, 0.86);
}

.rwm-twv--live-layout-neu-2 .rwm-twv__live-package-card--recommended .rwm-twv__live-package-cta {
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(7, 17, 31, 0.16);
  color: #0071ff;
}

.rwm-twv--live-layout-neu-2 .rwm-twv__live-package-secondary-list {
  display: none;
}

.rwm-twv--live-layout-neu-2 .rwm-twv__live-secondary-heading,
.rwm-twv--live-layout-neu-2 .rwm-twv__live-package-disclaimer {
  display: none;
}

.rwm-twv--live-layout-neu-2 .rwm-twv__upload--live {
  padding: 0;
}

.rwm-twv--live-layout-neu-2 .rwm-twv__upload--live .rwm-twv__upload-button {
  min-height: 42px;
  border-radius: 8px;
}

.rwm-twv--live-layout-neu-2 .rwm-twv__live-neu-2-privacy {
  max-width: 420px;
  border: 1px solid rgba(30, 159, 186, 0.3);
  border-left: 4px solid var(--rwm-twv-live-primary);
  border-radius: 10px;
  padding: 12px 14px;
  background: linear-gradient(90deg, rgba(108, 210, 234, 0.16), rgba(255, 255, 255, 0.82));
  color: #17202a;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.42;
  box-shadow: 0 10px 24px rgba(0, 113, 255, 0.08);
}

.rwm-twv--live-layout-neu-2 .rwm-twv__debug {
  border-color: rgba(30, 159, 186, 0.28);
  background: rgba(255, 255, 255, 0.78);
}

@media (max-width: 1100px) {
  .rwm-twv--live .rwm-twv__live-layout {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
    gap: 28px;
  }

  .rwm-twv--live .rwm-twv__preview-frame {
    min-height: 520px;
  }
}

@media (max-width: 760px) {
  .rwm-twv--live .rwm-twv__app {
    overflow: hidden;
    border-radius: 22px;
  }

  .rwm-twv--live .rwm-twv__live-layout {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 12px;
  }

  .rwm-twv--live .rwm-twv__live-preview-column {
    display: contents;
  }

  .rwm-twv--live .rwm-twv__live-controls {
    display: contents;
  }

  .rwm-twv--live .rwm-twv__live-intro {
    display: none;
  }

  .rwm-twv--live .rwm-twv__live-whitening-scale {
    order: 3;
  }

  .rwm-twv--live .rwm-twv__live-packages {
    order: 4;
  }

  .rwm-twv--live .rwm-twv__upload--live {
    order: 2;
  }

  .rwm-twv--live .rwm-twv__live-privacy {
    order: 5;
  }

  .rwm-twv--live .rwm-twv__live-status {
    order: 6;
  }

  .rwm-twv--live .rwm-twv__preview {
    order: 1;
    min-height: 0;
    position: static;
  }

  .rwm-twv--live .rwm-twv__upload-guide-panel {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: min(92vw, 420px);
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    gap: 12px;
    overflow-x: hidden;
  }

  .rwm-twv--live .rwm-twv__upload-guide-image {
    max-height: min(42vh, 320px);
    max-height: min(42dvh, 320px);
  }

  .rwm-twv--live .rwm-twv__preview-frame {
    min-height: 0;
    border-radius: 22px;
    aspect-ratio: 4 / 3;
  }

  .rwm-twv--live .rwm-twv__live-preview-badge {
    top: 16px;
    left: 16px;
    min-height: 38px;
    padding: 0 14px;
    font-size: 0.66rem;
  }

  .rwm-twv--live .rwm-twv__upload--live {
    padding: 0 2px;
  }

  .rwm-twv--live .rwm-twv__upload--live .rwm-twv__upload-label {
    align-items: center;
  }

  .rwm-twv--live .rwm-twv__live-whitening-scale {
    padding: 18px 2px;
  }

  .rwm-twv--live .rwm-twv__live-stage-list {
    gap: 4px;
  }

  .rwm-twv--live .rwm-twv__live-stage-tick {
    padding: 7px 3px;
  }

  .rwm-twv--live .rwm-twv__live-stage-label {
    font-size: 0.68rem;
  }

  .rwm-twv--live .rwm-twv__live-stage-package {
    font-size: 0.62rem;
  }

  .rwm-twv--live .rwm-twv__live-package-list {
    grid-template-columns: 1fr;
  }

  .rwm-twv--live .rwm-twv__live-package-secondary-list {
    grid-template-columns: 1fr;
  }

  .rwm-twv--live .rwm-twv__live-package-card {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .rwm-twv--live .rwm-twv__live-package-price {
    font-size: 1.18rem;
  }

  .rwm-twv--live-layout-neu-2 .rwm-twv__live-neu-2-layout {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 12px;
  }

  .rwm-twv--live-layout-neu-2 .rwm-twv__live-neu-2-controls,
  .rwm-twv--live-layout-neu-2 .rwm-twv__live-neu-2-preview-column {
    display: contents;
  }

  .rwm-twv--live-layout-neu-2 .rwm-twv__preview {
    display: block;
    order: 3;
    flex: 0 0 auto;
    width: 100%;
    min-height: auto;
  }

  .rwm-twv--live-layout-neu-2 .rwm-twv__upload--live {
    order: 4;
  }

  .rwm-twv--live-layout-neu-2 .rwm-twv__live-neu-2-intro {
    order: 1;
    padding: 2px;
  }

  .rwm-twv--live-layout-neu-2 .rwm-twv__live-whitening-scale {
    order: 5;
  }

  .rwm-twv--live-layout-neu-2 .rwm-twv__live-packages {
    order: 6;
  }

  .rwm-twv--live-layout-neu-2 .rwm-twv__live-neu-2-privacy {
    order: 2;
    max-width: none;
  }

  .rwm-twv--live-layout-neu-2 .rwm-twv__live-status {
    order: 7;
    max-width: none;
    margin-left: 0;
  }

  .rwm-twv--live-layout-neu-2 .rwm-twv__debug {
    order: 8;
  }

  .rwm-twv--live-layout-neu-2 .rwm-twv__preview-frame {
    height: auto;
    min-height: clamp(220px, 62vw, 320px);
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 4 / 3;
    transform: none;
  }

  .rwm-twv--live-layout-neu-2 .rwm-twv__live-neu-2-preview-status {
    top: 12px;
    left: 12px;
    padding: 7px 10px;
    font-size: 0.68rem;
  }

  .rwm-twv--live-layout-neu-2 .rwm-twv__live-neu-2-preview-stats {
    display: none;
  }

  .rwm-twv--live-layout-neu-2 .rwm-twv__live-neu-2-stat {
    border-radius: 12px;
    padding: 8px 10px;
  }

  .rwm-twv--live-layout-neu-2 .rwm-twv__live-neu-2-stat-icon {
    width: 24px;
    height: 24px;
    font-size: 0.72rem;
  }

  .rwm-twv--live-layout-neu-2 .rwm-twv__live-neu-2-stat-value {
    font-size: 0.82rem;
  }

}

@media (max-width: 480px) {
  .rwm-twv--live .rwm-twv__live-package-price {
    justify-self: start;
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rwm-twv__loading-spinner {
    animation-duration: 1600ms;
  }

  .rwm-twv--live .rwm-twv__live-package-cta {
    transition: none;
  }
}
