.tmw {
  --tmw-ink: #151515;
  --tmw-muted: #777;
  --tmw-line: #e9e9e9;
  overflow: hidden;
  border: 1px solid #dedede;
  border-radius: 14px;
  color: var(--tmw-ink);
  background: #fff;
  box-shadow:
    0 26px 60px -26px #00000024,
    0 3px 12px #00000005;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
}
.tmw *,
.tmw *::before,
.tmw *::after {
  box-sizing: border-box;
}
.tmw [hidden] {
  display: none !important;
}
.tmw[data-replay-ready='true'] {
  cursor: pointer;
  user-select: none;
}
.tmw[data-replay-ready='true']:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 5px;
}
.tmw-gallery .intro-grid {
  margin-bottom: 52px;
}
.tmw-gallery .intro-grid .eyebrow {
  display: block;
  margin-bottom: 20px;
}
.tmw-look-story {
  padding-block: 32px 48px;
  border-top: 1px solid var(--line);
}
.tmw-look-story + .tmw-look-story {
  margin-top: 24px;
}
.tmw-look-story > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 30px;
}
.tmw-look-story h3 {
  margin: 0;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 500;
  letter-spacing: -0.035em;
}
.tmw-look-story > header > span {
  font-size: 12px;
  color: var(--muted);
}
.tmw-look-layout {
  display: grid;
  grid-template-columns: minmax(180px, 0.65fr) minmax(0, 2fr);
  gap: 38px;
}
.tmw-look-layout .eyebrow {
  margin: 0 0 18px;
}
.tmw-look-input > div,
.tmw-look-output > div {
  display: grid;
  align-items: start;
  gap: 16px;
}
.tmw-look-input > div {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.tmw-look-output > div {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.tmw-look-layout figure {
  min-width: 0;
  margin: 0;
}
.tmw-look-layout img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  background: #fff;
}
.tmw-look-layout figcaption {
  margin-top: 10px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}
@media (max-width: 850px) {
  .tmw-look-layout {
    grid-template-columns: minmax(140px, 0.65fr) minmax(0, 2fr);
    gap: 24px;
  }
  .tmw-look-output > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .tmw-gallery .intro-grid {
    margin-bottom: 28px;
  }
  .tmw-look-story > header {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 24px;
  }
  .tmw-look-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .tmw-look-input > div {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }
  .tmw-look-layout figcaption {
    font-size: 10px;
  }
}
.tmw button {
  font: inherit;
  color: inherit;
  cursor: default;
}
.tmw svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
.tmw-toolbar {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 0 25px;
  border-bottom: 1px solid var(--tmw-line);
}
.tmw-toolbar > img {
  width: 113px;
  height: 38px;
  object-fit: contain;
}
.tmw-toolbar > span:first-of-type {
  border-left: 1px solid var(--tmw-line);
  padding-left: 26px;
  font-weight: 500;
}
.tmw-toolbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.tmw-toolbar .tmw-demo-badge {
  font-size: 11px;
  color: var(--tmw-muted);
  background: #f5f5f5;
  border-radius: 20px;
  padding: 5px 12px;
}
.tmw-body {
  display: grid;
  grid-template-columns: 164px minmax(245px, 0.72fr) minmax(0, 1.28fr);
  pointer-events: none;
  user-select: none;
}
.tmw-rail {
  display: flex;
  flex-direction: column;
  padding: 28px 12px 24px;
  border-right: 1px solid var(--tmw-line);
}
.tmw-rail-label {
  font-size: 11px;
  color: #999;
  padding-left: 12px;
}
.tmw-rail ol {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: grid;
  gap: 9px;
}
.tmw-rail li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 7px;
  color: #929292;
  transition:
    color 0.25s,
    background 0.25s;
  white-space: nowrap;
}
.tmw-rail li > span {
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.tmw-rail li[aria-current='step'] {
  color: #171717;
  background: #f0f0f0;
}
.tmw-rail li[data-done='true'] {
  color: #555;
}
.tmw-rail > p {
  margin: auto 12px 0;
  padding-top: 24px;
  color: #999;
  font-size: 12px;
  line-height: 1.9;
}
.tmw-settings {
  padding: 26px;
  border-right: 1px solid var(--tmw-line);
  display: flex;
  flex-direction: column;
  gap: 23px;
  min-width: 0;
}
.tmw-setting h4 {
  font-size: 12px;
  margin: 0 0 12px;
  font-weight: 500;
}
.tmw-setting h4 > span {
  color: #aaa;
  margin-right: 9px;
  font-size: 10px;
}
.tmw-model-card {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 9px;
  border: 1px solid var(--tmw-line);
  border-radius: 9px;
  background: #fff;
  text-align: left;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}
.tmw-model-card > img {
  width: 77px;
  height: 116px;
  object-fit: cover;
  border-radius: 4px;
}
.tmw-model-card > span {
  min-width: 0;
}
.tmw-model-card strong,
.tmw-model-card small {
  display: block;
}
.tmw-model-card strong {
  font-size: 14px;
  font-weight: 500;
}
.tmw-model-card small {
  margin-top: 5px;
  color: var(--tmw-muted);
  font-size: 10px;
}
.tmw-model-choice {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  margin-top: 19px;
}
.tmw-model-choice svg {
  width: 12px;
  height: 12px;
}
.tmw-model-card .tmw-selected-mark {
  display: none;
  position: absolute;
  right: 8px;
  top: 8px;
  width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  background: #151515;
}
.tmw-selected-mark svg {
  width: 11px;
  height: 11px;
}
.tmw-model-card[aria-pressed='true'] {
  border-color: #222;
  box-shadow: 0 0 0 1px #222;
}
.tmw-model-card[aria-pressed='true'] .tmw-selected-mark {
  display: flex;
}
.tmw-look-switch {
  display: flex;
  gap: 7px;
  margin-bottom: 10px;
}
.tmw-look-switch button {
  border: 1px solid transparent;
  background: #f5f5f5;
  padding: 5px 11px;
  border-radius: 20px;
  color: #777;
  font-size: 10px;
}
.tmw-look-switch button[aria-pressed='true'] {
  border-color: #333;
  color: #161616;
  background: #fff;
}
.tmw-upload {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 111px;
  padding: 8px;
  background: #fff;
  border: 1px dashed #ccc;
  border-radius: 9px;
  overflow: hidden;
}
.tmw-upload-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #777;
}
.tmw-upload-empty svg {
  margin-bottom: 3px;
  color: #444;
}
.tmw-upload-empty strong {
  font-size: 11px;
  font-weight: 400;
}
.tmw-upload-empty small {
  font-size: 9px;
  color: #aaa;
}
.tmw-product-images {
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3px;
  width: 100%;
}
.tmw-product-images img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}
.tmw-upload-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #efefef;
  opacity: 0;
}
.tmw-upload-progress i {
  display: block;
  height: 100%;
  background: #333;
  transform: scaleX(var(--tmw-upload-progress, 0));
  transform-origin: left;
}
.tmw[data-state='uploading'] .tmw-upload-progress {
  opacity: 1;
}
.tmw[data-state='uploading'] .tmw-upload-empty,
.tmw[data-uploaded='true'] .tmw-upload-empty {
  display: none;
}
.tmw[data-state='uploading'] .tmw-product-images,
.tmw[data-uploaded='true'] .tmw-product-images {
  display: grid;
}
.tmw[data-state='uploading'] .tmw-upload {
  border-style: solid;
  border-color: #666;
}
.tmw[data-uploaded='true'] .tmw-upload {
  border-style: solid;
}
.tmw-file-status {
  margin: 8px 0 0;
  font-size: 10px;
  color: #888;
  min-height: 15px;
}
.tmw-brief {
  padding: 13px 14px;
  background: #f6f6f6;
  border-radius: 8px;
}
.tmw-brief > span {
  font-size: 10px;
  color: #888;
}
.tmw-brief > p {
  margin: 6px 0 0;
  font-size: 11px;
  color: #606060;
  line-height: 1.8;
}
.tmw-generate {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 24px;
  color: white !important;
  background: #151515;
  margin-top: auto;
}
.tmw-generate:disabled {
  background: #e8e8e8;
  color: #999 !important;
}
.tmw[data-state='generating'] .tmw-generate {
  color: white !important;
  background: #333;
}
.tmw-output {
  min-width: 0;
  padding: 24px 25px 18px;
  background: #fafafa;
}
.tmw-output-heading,
.tmw-output-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.tmw-output-heading {
  margin-bottom: 15px;
}
.tmw-output-heading h4 {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
}
.tmw-output-heading > span {
  font-size: 10px;
  color: #929292;
}
.tmw-picture {
  display: grid;
  place-items: center;
  position: relative;
  height: 450px;
  background: #f0efed;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
  isolation: isolate;
}
.tmw-picture > img {
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition:
    opacity 0.7s ease,
    filter 0.5s;
}
.tmw-finished {
  opacity: 0;
}
.tmw[data-state='result'] .tmw-finished {
  opacity: 1;
}
.tmw[data-state='result'] .tmw-base {
  opacity: 0;
}
.tmw-image-label {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 4px 8px;
  border: 1px solid #e1e1e1;
  border-radius: 4px;
  color: #777;
  background: #ffffffed;
  font-size: 9px;
}
.tmw-generating {
  display: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #f5f5f56e;
}
.tmw-generating > div {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.tmw-generating strong {
  font-size: 15px;
  font-weight: 500;
}
.tmw-generating small {
  color: #666;
  font-size: 10px;
}
.tmw[data-state='generating'] .tmw-generating {
  display: block;
}
.tmw[data-state='generating'] .tmw-base {
  filter: blur(8px);
  opacity: 0.48;
}
.tmw-spinner {
  width: 25px;
  height: 25px;
  border: 1.5px solid #cccccc;
  border-top-color: #181818;
  border-radius: 50%;
  animation: tmw-spin 1s linear infinite;
}
.tmw-scan {
  position: absolute;
  inset: -80% 0 auto;
  height: 80%;
  background: linear-gradient(transparent, #ffffff80, transparent);
  animation: tmw-scan 2s ease-in-out infinite;
}
.tmw-output-footer {
  padding: 10px 0;
  color: #858585;
  font-size: 10px;
}
.tmw-results {
  display: flex;
  gap: 7px;
  min-height: 67px;
}
.tmw-results button {
  min-width: 0;
  width: 58px;
  padding: 3px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
}
.tmw-results button > img {
  display: block;
  width: 100%;
  height: 55px;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.4s;
}
.tmw-results button > span {
  display: block;
  margin-top: 4px;
  font-size: 8px;
  white-space: nowrap;
  color: #777;
}
.tmw-results button:disabled {
  background: #efefef;
}
.tmw-results button:disabled > span {
  visibility: hidden;
}
.tmw[data-state='result'] .tmw-results button > img {
  opacity: 1;
}
.tmw[data-state='result'] .tmw-results button[aria-pressed='true'] {
  border-color: #333;
}
.tmw[data-animating='false'] *,
.tmw[data-animating='false'] *::before,
.tmw[data-animating='false'] *::after {
  animation-play-state: paused !important;
}
html[data-theme='dark'] .tmw {
  border-color: #444;
  box-shadow: 0 26px 60px -26px #00000080;
}
@keyframes tmw-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes tmw-scan {
  to {
    transform: translateY(250%);
  }
}
@media (min-width: 1400px) {
  .tmw-picture {
    height: 520px;
  }
  .tmw-settings {
    gap: 29px;
    padding: 30px;
  }
}
@media (max-width: 1100px) {
  .tmw-body {
    grid-template-columns: 126px 270px minmax(0, 1fr);
  }
  .tmw-rail {
    padding-inline: 6px;
  }
  .tmw-rail li {
    padding-inline: 9px;
    gap: 7px;
    font-size: 11px;
  }
  .tmw-settings {
    padding: 22px 20px;
  }
  .tmw-output {
    padding: 24px 20px 18px;
  }
}
@media (max-width: 850px) {
  .tmw-body {
    grid-template-columns: 260px minmax(0, 1fr);
  }
  .tmw-rail {
    display: none;
  }
  .tmw-toolbar {
    height: 60px;
  }
  .tmw-picture {
    height: 433px;
  }
}
@media (max-width: 620px) {
  .tmw {
    border-radius: 10px;
  }
  .tmw-toolbar {
    height: 58px;
    gap: 10px;
    padding-inline: 15px;
  }
  .tmw-toolbar > img {
    width: 84px;
    height: 30px;
  }
  .tmw-toolbar > span:first-of-type {
    padding-left: 10px;
    font-size: 11px;
    white-space: nowrap;
  }
  .tmw-toolbar .tmw-demo-badge {
    display: none;
  }
  .tmw-body {
    display: flex;
    flex-direction: column;
  }
  .tmw-settings {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    padding: 19px 15px;
    gap: 16px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--tmw-line);
  }
  .tmw-setting h4 {
    font-size: 11px;
    margin-bottom: 10px;
  }
  .tmw-setting h4 > span {
    margin-right: 5px;
  }
  .tmw-model-card {
    padding: 6px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    height: 197px;
  }
  .tmw-model-card > img {
    width: 100%;
    height: 104px;
    object-fit: contain;
    background: #f2f1f0;
  }
  .tmw-model-card > span:not(.tmw-selected-mark) {
    padding-left: 3px;
  }
  .tmw-model-card strong {
    font-size: 12px;
  }
  .tmw-model-card small {
    font-size: 9px;
    margin-top: 2px;
  }
  .tmw-model-choice {
    margin-top: 7px;
    font-size: 9px;
  }
  .tmw-look-switch {
    gap: 4px;
  }
  .tmw-look-switch button {
    font-size: 9px;
    padding: 5px 6px;
    flex: 1;
    white-space: nowrap;
  }
  .tmw-upload {
    height: 133px;
    padding: 7px;
  }
  .tmw-product-images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }
  .tmw-product-images img {
    height: 53px;
  }
  .tmw-file-status {
    font-size: 9px;
    line-height: 1.4;
  }
  .tmw-brief {
    grid-column: 1 / -1;
    padding: 10px 12px;
  }
  .tmw-brief > p {
    font-size: 10px;
  }
  .tmw-generate {
    grid-column: 1 / -1;
    min-height: 43px;
  }
  .tmw-output {
    padding: 19px 15px 15px;
  }
  .tmw-picture {
    height: auto;
    aspect-ratio: 2 / 3;
    max-height: 540px;
  }
  .tmw-output-heading > span {
    font-size: 9px;
  }
  .tmw-generating small {
    font-size: 9px;
  }
  .tmw-results {
    min-height: 71px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tmw *,
  .tmw *::before,
  .tmw *::after {
    animation: none !important;
    transition: none !important;
  }
}
