body.step2-remake {
  --step2-bg: #fbf7f0;
  --step2-bg-soft: #fffdf9;
  --step2-surface: rgba(255, 255, 255, 0.86);
  --step2-surface-strong: rgba(255, 255, 255, 0.96);
  --step2-line: rgba(31, 35, 40, 0.1);
  --step2-line-strong: rgba(31, 35, 40, 0.16);
  --step2-text: #1d1d1f;
  --step2-text-soft: #515154;
  --step2-text-muted: #86868b;
  --step2-blue: #007aff;
  --step2-blue-dark: #0062d1;
  --step2-green: #30d158;
  --step2-warm: #f3e8d8;
  --step2-shadow: 0 24px 70px rgba(29, 29, 31, 0.1);
  --step2-shadow-soft: 0 12px 34px rgba(29, 29, 31, 0.07);
  width: 100%;
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  color: var(--step2-text);
  background:
    linear-gradient(180deg, #fffdf8 0%, #f8f2ea 48%, #ffffff 100%) !important;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  letter-spacing: 0;
}

/* Stage 4: rebuild the interaction model to match the selected Product Design visual. */
body.step2-remake [data-category="ceiling"][data-material="concrete"] { --swatch-img: url("step2-apple/material-microcement.png"); }
body.step2-remake [data-category="ceiling"][data-material="marble"] { --swatch-img: url("step2-apple/material-marble.png"); }
body.step2-remake [data-category="ceiling"][data-material="travertine"] { --swatch-img: url("step2-apple/material-travertine.png"); }
body.step2-remake [data-category="ceiling"][data-material="paint"] { --swatch-img: url("step2-apple/material-art-paint.png"); }
body.step2-remake [data-category="floor"][data-material="microcement"] { --swatch-img: url("step2-apple/material-microcement.png"); }
body.step2-remake [data-category="floor"][data-material="paint"] { --swatch-img: url("step2-apple/material-art-paint.png"); }
body.step2-remake [data-category="floor"][data-material="linen"] { --swatch-img: url("step2-apple/material-linen.png"); }
body.step2-remake [data-category="floor"][data-material="travertine"] { --swatch-img: url("step2-apple/material-travertine.png"); }
body.step2-remake [data-category="floor"][data-material="white-finish"] { --swatch-img: url("step2-apple/material-white-finish.png"); }
body.step2-remake [data-category="wall"][data-material="gypsum"] { --swatch-img: url("step2-apple/material-plaster.png"); }
body.step2-remake [data-category="wall"][data-material="marble"] { --swatch-img: url("step2-apple/material-marble.png"); }
body.step2-remake [data-category="wall"][data-material="travertine"] { --swatch-img: url("step2-apple/material-travertine.png"); }
body.step2-remake [data-category="wall"][data-material="white-finish"] { --swatch-img: url("step2-apple/material-white-finish.png"); }

body.step2-remake .step2-logo-mark {
  position: relative;
  overflow: hidden;
  color: transparent !important;
  background: linear-gradient(180deg, #ffffff, #eef8ff) !important;
}

body.step2-remake .step2-logo-mark > span {
  position: relative;
  width: 21px;
  height: 16px;
  border-radius: 7px 7px 5px 5px;
  background: linear-gradient(135deg, #78d7ff, #2f8cff 58%, #87e0a6);
  box-shadow: 0 5px 11px rgba(10, 132, 255, 0.25);
  transform: perspective(36px) rotateX(42deg);
}

body.step2-remake .step2-logo-mark > span::before,
body.step2-remake .step2-logo-mark > span::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 17px;
  height: 11px;
  border-radius: 6px;
  transform: translateX(-50%);
}

body.step2-remake .step2-logo-mark > span::before {
  top: -8px;
  background: rgba(255, 204, 96, 0.86);
}

body.step2-remake .step2-logo-mark > span::after {
  top: -4px;
  background: rgba(255, 255, 255, 0.72);
}

body.step2-remake .step2-reupload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 24px;
  border: 1px solid rgba(90, 76, 61, 0.09);
  border-radius: 999px;
  color: var(--step2-text);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 34px rgba(70, 54, 39, 0.1);
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
}

body.step2-remake .step2-nav-icon-upload {
  position: relative;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 9px 9px 5px 5px;
}

body.step2-remake .step2-nav-icon-upload::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 16px;
  height: 7px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 6px 6px;
  transform: translateX(-50%);
}

body.step2-remake .step2-nav-icon-upload::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 4px;
  width: 7px;
  height: 7px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: translateX(-50%) rotate(45deg);
}

body.step2-remake .step2-flow-pill {
  background: rgba(255, 255, 255, 0.68);
}

body.step2-remake .step2-flow-pill span {
  gap: 9px;
  color: rgba(78, 78, 83, 0.66);
  background: transparent !important;
  box-shadow: none !important;
}

body.step2-remake .step2-flow-pill span b {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border: 1px solid rgba(90, 90, 96, 0.18);
  border-radius: 50%;
  color: rgba(78, 78, 83, 0.72);
  background: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  line-height: 1;
}

body.step2-remake .step2-flow-pill .is-active {
  color: var(--step2-text);
}

body.step2-remake .step2-flow-pill .is-active b {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(180deg, #58aaff, var(--step2-blue));
  box-shadow: 0 8px 16px rgba(10, 132, 255, 0.24);
}

body.step2-remake .stage-divider {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.92) 14%, rgba(255,255,255,0.92) 86%, rgba(255,255,255,0));
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.92));
  transform: translateX(-50%);
}

@media (min-width: 1101px) {
  body.step2-remake .step2-header {
    min-height: 72px;
    padding: 14px 42px;
  }

  body.step2-remake .step2-workspace {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 286px);
    width: min(1520px, calc(100vw - 44px));
    padding-top: 34px;
  }

  body.step2-remake .step2-stage-shell {
    padding: 34px 74px 156px 132px;
    border-color: rgba(255, 255, 255, 0.6);
    border-radius: 58px;
    background: rgba(255, 255, 255, 0.36);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.95),
      0 30px 80px rgba(70, 54, 39, 0.1);
  }

  body.step2-remake #dropzone.dropzone {
    aspect-ratio: 16 / 9.35;
    max-height: calc(100vh - 300px);
    border-radius: 48px !important;
    cursor: default;
  }

  body.step2-remake .dropzone-preview img {
    border-radius: 48px;
  }

  body.step2-remake .dropzone-hint {
    display: none !important;
  }

  body.step2-remake .stage-line {
    opacity: 0.96;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.95));
  }

  body.step2-remake .stage-line-ceiling {
    left: 8.4%;
    right: 8.4%;
    top: 7.8%;
    height: 35%;
    border-top: 2px solid rgba(255, 161, 118, 0.88);
    border-left: 2px solid rgba(255, 161, 118, 0.46);
    border-right: 2px solid rgba(255, 161, 118, 0.46);
    border-radius: 44px 44px 12px 12px;
    background: transparent;
    box-shadow: 0 0 14px rgba(255, 161, 118, 0.42);
  }

  body.step2-remake .stage-line-wall {
    inset: 20% 10.8% 27% 12.4%;
    width: auto;
    height: auto;
    background: transparent;
    box-shadow: none;
  }

  body.step2-remake .stage-line-wall::before,
  body.step2-remake .stage-line-wall::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 20%;
    border-top: 2px solid rgba(10, 132, 255, 0.58);
    border-bottom: 2px solid rgba(10, 132, 255, 0.18);
    box-shadow: 0 0 15px rgba(10, 132, 255, 0.36);
  }

  body.step2-remake .stage-line-wall::before {
    left: 0;
    border-left: 2px solid rgba(10, 132, 255, 0.78);
    border-radius: 22px 0 0 18px;
  }

  body.step2-remake .stage-line-wall::after {
    right: 0;
    border-right: 2px solid rgba(10, 132, 255, 0.78);
    border-radius: 0 22px 18px 0;
  }

  body.step2-remake .stage-line-floor {
    left: 10%;
    right: 10%;
    bottom: 25%;
    height: 2px;
    background: linear-gradient(90deg, rgba(52, 199, 89, 0.08), rgba(52, 199, 89, 0.86), rgba(52, 199, 89, 0.08));
    box-shadow: 0 0 16px rgba(52, 199, 89, 0.44);
  }

  body.step2-remake .stage-tag-ceiling {
    top: 13%;
  }

  body.step2-remake .stage-tag-wall {
    right: auto;
    left: 18%;
    top: 45%;
  }

  body.step2-remake .stage-tag-floor {
    bottom: 20%;
  }

  body.step2-remake .step2-tray-shell {
    position: relative;
    z-index: 8;
    width: min(1160px, calc(100% - 124px));
    margin: -118px 50px 0 74px;
    padding: 46px 80px 28px;
    border: 1px solid rgba(255, 255, 255, 0.84);
    border-radius: 58px;
    background: rgba(255, 255, 255, 0.66);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.96),
      0 30px 80px rgba(70, 54, 39, 0.13);
    backdrop-filter: blur(28px) saturate(1.16);
    -webkit-backdrop-filter: blur(28px) saturate(1.16);
  }

  body.step2-remake .step2-tray-tabs {
    position: absolute;
    left: 50%;
    top: -28px;
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    min-width: 260px;
    min-height: 54px;
    overflow: hidden;
    border: 1px solid rgba(90, 76, 61, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 18px 42px rgba(70, 54, 39, 0.12);
    backdrop-filter: blur(24px) saturate(1.14);
    -webkit-backdrop-filter: blur(24px) saturate(1.14);
    transform: translateX(-50%);
  }

  body.step2-remake .step2-tray-tabs button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 0;
    color: rgba(76, 68, 60, 0.62);
    background: transparent;
    font-size: 13px;
    font-weight: 850;
    cursor: pointer;
  }

  body.step2-remake .step2-tray-tabs button.is-active {
    color: var(--step2-text);
    background: rgba(255, 255, 255, 0.62);
  }

  body.step2-remake .step2-tray-tabs button span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--step2-blue);
    box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.08);
  }

  body.step2-remake .step2-tray-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(90, 76, 61, 0.08);
    border-radius: 50%;
    color: var(--step2-text);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 14px 30px rgba(70, 54, 39, 0.12);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
  }

  body.step2-remake .step2-tray-arrow-prev {
    left: 28px;
  }

  body.step2-remake .step2-tray-arrow-next {
    right: 28px;
  }

  body.step2-remake .step2-sample-tray,
  body.step2-remake[data-page="step2"] .step2-sample-tray {
    position: static !important;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 132px;
    gap: 18px;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 2px 2px !important;
    overflow-x: auto;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    scrollbar-width: none;
  }

  body.step2-remake .step2-sample-tray .tray-material.is-tray-hidden {
    display: none !important;
  }

  body.step2-remake[data-page="step2"] .step2-sample-tray .tray-material.material-option {
    min-height: 146px !important;
    padding: 10px 10px 13px !important;
    border-radius: 23px !important;
    transform: rotate(-3deg);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  }

  body.step2-remake[data-page="step2"] .step2-sample-tray .tray-material.material-option:nth-child(2n) {
    transform: rotate(2deg);
  }

  body.step2-remake[data-page="step2"] .step2-sample-tray .tray-material.material-option::before {
    min-height: 92px !important;
    border-radius: 18px !important;
  }

  body.step2-remake[data-page="step2"] .step2-sample-tray .tray-material.material-option:hover,
  body.step2-remake[data-page="step2"] .step2-sample-tray .tray-material.material-option.selected {
    transform: translateY(-8px) rotate(-3deg);
  }

  body.step2-remake[data-page="step2"]:not(.is-renovation-upload) .step2-sample-tray .tray-material.material-option.selected::after {
    top: 82px !important;
    right: 14px !important;
  }

  body.step2-remake #step2MaterialsPane.step2-materials-panel {
    width: clamp(254px, 18vw, 282px) !important;
    margin-left: -92px;
    padding: 22px;
    border-radius: 38px !important;
    background: rgba(255, 255, 255, 0.76) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.96),
      0 28px 74px rgba(70, 54, 39, 0.14) !important;
  }

  body.step2-remake .step2-materials-head {
    align-items: start;
    margin-bottom: 14px;
  }

  body.step2-remake .step2-materials-head p {
    margin-bottom: 5px;
    font-size: 12px;
  }

  body.step2-remake .step2-materials-panel h2 {
    font-size: 21px;
  }

  body.step2-remake .materials-summary {
    min-height: 30px;
    padding: 0 11px;
    font-size: 12px;
  }

  body.step2-remake .material-inspector-card {
    aspect-ratio: 1 / 0.78;
    border-radius: 22px;
  }

  body.step2-remake .material-zoom-btn {
    width: 42px;
    height: 42px;
  }

  body.step2-remake .material-inspector-copy {
    position: relative;
    margin: 16px 0 14px;
    padding: 0 34px 15px 0;
  }

  body.step2-remake .material-inspector-copy h3 {
    font-size: 19px;
  }

  body.step2-remake .material-favorite-btn {
    position: absolute;
    top: 0;
    right: 0;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 0;
    color: #ff3b57;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
  }

  body.step2-remake .material-favorite-btn.is-active {
    color: #ff2d55;
  }

  body.step2-remake .material-detail-list {
    display: grid;
    gap: 13px;
    padding-top: 2px;
  }

  body.step2-remake .material-detail-list h4 {
    margin: 0 0 3px;
    color: var(--step2-text);
    font-size: 13px;
    line-height: 1.2;
    font-weight: 850;
  }

  body.step2-remake .material-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: rgba(76, 68, 60, 0.62);
    font-size: 12px;
    font-weight: 800;
  }

  body.step2-remake .material-detail-row strong {
    color: rgba(76, 68, 60, 0.74);
    font-size: 12px;
    font-weight: 850;
  }

  body.step2-remake .material-tone-dot {
    width: 14px;
    height: 14px;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 5px 12px rgba(70, 54, 39, 0.13);
  }

  body.step2-remake .material-rating {
    display: inline-flex;
    gap: 5px;
  }

  body.step2-remake .material-rating i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(10, 132, 255, 0.12);
  }

  body.step2-remake .material-rating i.is-on {
    background: var(--step2-blue);
  }

  body.step2-remake .surface-selection-list,
  body.step2-remake #step2MaterialsPane > .material-tabs,
  body.step2-remake .materials-layout {
    display: none !important;
  }

  body.step2-remake .step2-floating-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    min-height: 58px;
    margin-top: 22px;
    border-radius: 18px;
  }

  body.step2-remake .step2-action-row {
    width: min(280px, calc(100% - 240px)) !important;
    min-height: 52px;
    margin: -14px auto 0 !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.96),
      0 18px 42px rgba(70, 54, 39, 0.12);
  }

  body.step2-remake .step2-action-row .btn {
    display: none;
  }

  body.step2-remake .step2-selected-chip {
    min-height: 38px;
    padding: 0 14px;
  }

  body.step2-remake .step2-selected-chip i {
    background-size: cover;
    background-position: center;
  }
}

@media (min-width: 1101px) and (max-height: 820px) {
  body.step2-remake .step2-workspace {
    padding-top: 18px;
  }

  body.step2-remake .step2-stage-shell {
    padding-bottom: 134px;
  }

  body.step2-remake #dropzone.dropzone {
    max-height: calc(100vh - 276px);
  }

  body.step2-remake .step2-tray-shell {
    margin-top: -98px;
    padding-top: 40px;
    padding-bottom: 24px;
  }

  body.step2-remake[data-page="step2"] .step2-sample-tray .tray-material.material-option {
    min-height: 128px !important;
  }

  body.step2-remake[data-page="step2"] .step2-sample-tray .tray-material.material-option::before {
    min-height: 76px !important;
  }

  body.step2-remake[data-page="step2"]:not(.is-renovation-upload) .step2-sample-tray .tray-material.material-option.selected::after {
    top: 66px !important;
  }

  body.step2-remake .material-detail-list {
    gap: 9px;
  }

  body.step2-remake .step2-floating-next {
    min-height: 52px;
    margin-top: 16px;
  }
}

@media (max-width: 1100px) {
  body.step2-remake .step2-tray-shell {
    position: relative;
    z-index: 8;
    width: 100%;
  }

  body.step2-remake .step2-tray-tabs,
  body.step2-remake .step2-tray-arrow {
    display: none;
  }

  body.step2-remake .step2-sample-tray .tray-material.is-tray-hidden {
    display: none !important;
  }

  body.step2-remake .material-detail-list {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
  }

  body.step2-remake .material-detail-list h4 {
    margin: 0;
    font-size: 13px;
  }

  body.step2-remake .material-detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
  }
}

body.step2-remake *,
body.step2-remake *::before,
body.step2-remake *::after {
  box-sizing: border-box;
}

body.step2-remake::before,
body.step2-remake::after {
  content: none !important;
  display: none !important;
}

body.step2-remake .progress,
body.step2-remake .footer,
body.step2-remake .thumbs,
body.step2-remake .icp-footer {
  display: none !important;
}

body.step2-remake .step2-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

body.step2-remake .step2-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 250, 242, 0.76) 52%, rgba(255, 255, 255, 0.9) 100%);
}

body.step2-remake .step2-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding: 14px 28px;
  border-bottom: 1px solid rgba(31, 35, 40, 0.08);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(22px) saturate(1.18);
  -webkit-backdrop-filter: blur(22px) saturate(1.18);
}

body.step2-remake .step2-logo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--step2-text);
  text-decoration: none;
}

body.step2-remake .step2-logo img {
  display: none !important;
}

body.step2-remake .step2-logo-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(31, 35, 40, 0.08);
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, #1d1d1f 0%, #3a3a3c 100%);
  box-shadow: 0 12px 24px rgba(29, 29, 31, 0.16);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

body.step2-remake .step2-logo strong {
  font-size: 20px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

body.step2-remake .step2-nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

body.step2-remake .step2-nav a,
body.step2-remake .step2-account {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(31, 35, 40, 0.08);
  border-radius: 999px;
  color: var(--step2-text-soft);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: none;
  text-decoration: none;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, color 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

body.step2-remake .step2-nav img {
  display: none !important;
}

body.step2-remake .step2-nav-icon {
  position: relative;
  display: block;
  width: 17px;
  height: 17px;
  color: currentColor;
}

body.step2-remake .step2-nav-icon-home::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 6px;
  width: 13px;
  height: 10px;
  border: 1.8px solid currentColor;
  border-top: 0;
  border-radius: 3px;
}

body.step2-remake .step2-nav-icon-home::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 9px;
  height: 9px;
  border-left: 1.8px solid currentColor;
  border-top: 1.8px solid currentColor;
  transform: rotate(45deg);
  border-radius: 2px 0 0 0;
}

body.step2-remake .step2-nav-icon-reset::before {
  content: "";
  position: absolute;
  inset: 2px;
  border: 1.8px solid currentColor;
  border-left-color: transparent;
  border-radius: 50%;
}

body.step2-remake .step2-nav-icon-reset::after {
  content: "";
  position: absolute;
  left: 1px;
  top: 2px;
  width: 7px;
  height: 7px;
  border-left: 1.8px solid currentColor;
  border-top: 1.8px solid currentColor;
  transform: rotate(-20deg);
  border-radius: 2px 0 0 0;
}

body.step2-remake .step2-nav a:hover,
body.step2-remake .step2-account:hover {
  color: var(--step2-text);
  border-color: rgba(0, 122, 255, 0.18);
  background: #fff;
  box-shadow: 0 10px 24px rgba(29, 29, 31, 0.08);
  transform: translateY(-1px);
}

body.step2-remake .step2-nav a:focus-visible,
body.step2-remake .step2-account:focus-visible,
body.step2-remake .dropzone:focus-visible,
body.step2-remake .material-tab:focus-visible,
body.step2-remake .material-option:focus-visible,
body.step2-remake .btn:focus-visible,
body.step2-remake .material-note-input:focus-visible {
  outline: 3px solid rgba(0, 122, 255, 0.22);
  outline-offset: 3px;
}

body.step2-remake .step2-workspace {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  grid-template-areas:
    "upload materials"
    "actions actions";
  gap: 22px;
  width: min(1460px, calc(100vw - 48px));
  min-height: calc(100vh - 76px);
  margin: 0 auto;
  padding: 34px 0 28px;
}

body.step2-remake .step2-upload-area {
  grid-area: upload;
  position: relative !important;
  left: auto !important;
  top: auto !important;
  width: auto !important;
  min-width: 0;
}

body.step2-remake #step2Title {
  margin: 8px 0 22px;
  color: var(--step2-text);
  font-size: 42px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0;
  white-space: normal;
}

body.step2-remake #step2Title span {
  color: var(--step2-blue);
}

body.step2-remake #dropzone.dropzone {
  position: relative;
  display: grid !important;
  place-items: center;
  width: 100%;
  min-height: 500px !important;
  height: clamp(500px, calc(100vh - 260px), 660px) !important;
  margin: 0 !important;
  overflow: hidden;
  padding: 28px !important;
  border: 1px solid rgba(31, 35, 40, 0.1) !important;
  border-radius: 34px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 242, 0.9)) !important;
  box-shadow: var(--step2-shadow) !important;
  cursor: pointer;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

body.step2-remake #dropzone.dropzone::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px dashed rgba(0, 122, 255, 0.24);
  border-radius: 24px;
  pointer-events: none;
}

body.step2-remake .dropzone::after {
  display: none !important;
}

body.step2-remake #dropzone.dropzone:hover,
body.step2-remake #dropzone.dropzone.dragover {
  border-color: rgba(0, 122, 255, 0.28) !important;
  background: #fff !important;
  box-shadow: 0 30px 80px rgba(29, 29, 31, 0.12), 0 0 0 6px rgba(0, 122, 255, 0.08) !important;
  transform: translateY(-2px);
}

body.step2-remake .dropzone-hint {
  position: relative;
  z-index: 1;
  display: grid !important;
  place-items: center;
  align-content: center;
  gap: 18px;
  width: 100%;
  height: 100%;
  min-height: 0 !important;
  padding: 0 !important;
  text-align: center;
  color: var(--step2-text);
  opacity: 1 !important;
}

body.step2-remake .step2-upload-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(242, 247, 255, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 18px 36px rgba(0, 122, 255, 0.14);
}

body.step2-remake .step2-upload-icon::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 54px;
  width: 40px;
  height: 20px;
  border: 3px solid var(--step2-blue);
  border-top: 0;
  border-radius: 0 0 12px 12px;
}

body.step2-remake .step2-upload-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 24px;
  width: 30px;
  height: 34px;
  background: var(--step2-blue);
  clip-path: polygon(50% 0, 84% 34%, 66% 34%, 66% 100%, 34% 100%, 34% 34%, 16% 34%);
  transform: translateX(-50%);
}

body.step2-remake .dropzone-hint h2 {
  margin: 0;
  color: var(--step2-text);
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0;
}

body.step2-remake .dropzone-preview {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
}

body.step2-remake .dropzone-preview img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  border-radius: 0;
  background: #f5f5f7;
}

body.step2-remake .dropzone-preview-actions,
body.step2-remake .dropzone-preview-btn {
  display: none !important;
}

body.step2-remake #step2MaterialsPane.step2-materials-panel {
  grid-area: materials;
  position: relative !important;
  right: auto !important;
  top: auto !important;
  width: auto !important;
  height: auto !important;
  min-width: 0;
  padding: 24px;
  overflow: visible;
  border: 1px solid rgba(31, 35, 40, 0.1) !important;
  border-radius: 34px !important;
  color: var(--step2-text);
  background: var(--step2-surface) !important;
  box-shadow: var(--step2-shadow-soft) !important;
  backdrop-filter: blur(22px) saturate(1.12);
  -webkit-backdrop-filter: blur(22px) saturate(1.12);
}

body.step2-remake .step2-materials-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

body.step2-remake .step2-materials-panel h2 {
  margin: 0;
  color: var(--step2-text);
  font-size: 28px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0;
}

body.step2-remake .materials-summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--step2-blue);
  background: rgba(0, 122, 255, 0.1);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

body.step2-remake .material-tabs {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 6px !important;
  width: 100%;
  height: auto;
  margin: 0 0 20px !important;
  padding: 6px !important;
  max-height: calc(100vh - 112px);
  overflow-y: auto;
  scrollbar-width: none;
  border: 1px solid rgba(31, 35, 40, 0.08) !important;
  border-radius: 999px !important;
  background: rgba(245, 245, 247, 0.82) !important;
  box-shadow: inset 0 1px 1px rgba(31, 35, 40, 0.03);
}

body.step2-remake .material-tab {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  height: 42px !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: var(--step2-text-soft) !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

body.step2-remake .material-tab:hover {
  color: var(--step2-text) !important;
  transform: none !important;
}

body.step2-remake .material-tab.is-active {
  color: var(--step2-text) !important;
  background: #fff !important;
  box-shadow: 0 8px 18px rgba(29, 29, 31, 0.08) !important;
}

body.step2-remake:not(.is-renovation-upload) .material-tab.is-active {
  color: var(--step2-text) !important;
  background: #fff !important;
  box-shadow: 0 8px 18px rgba(29, 29, 31, 0.08) !important;
}

body.step2-remake .material-tab.is-done:not(.is-active) {
  color: var(--step2-blue) !important;
  background: rgba(0, 122, 255, 0.08) !important;
}

body.step2-remake:not(.is-renovation-upload) .material-tab.is-done:not(.is-active) {
  color: var(--step2-blue) !important;
  background: rgba(0, 122, 255, 0.08) !important;
}

body.step2-remake .materials-layout {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.step2-remake .material-panel {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.step2-remake .material-panel.is-active {
  display: block !important;
}

body.step2-remake .material-panel-head {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  padding: 0;
}

body.step2-remake .material-panel-head h3 {
  margin: 0;
  color: var(--step2-text);
  font-size: 17px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0;
}

body.step2-remake .material-picked {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--step2-text-muted);
  background: rgba(31, 35, 40, 0.05);
  font-size: 12px;
  font-weight: 800;
}

body.step2-remake .material-picked.is-done {
  color: #137333;
  background: rgba(48, 209, 88, 0.14);
}

body.step2-remake .material-options {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

body.step2-remake .material-options .material-option {
  position: relative !important;
  isolation: isolate;
  display: flex !important;
  align-items: flex-end;
  justify-content: flex-start;
  width: 100%;
  min-height: 128px !important;
  height: auto !important;
  overflow: hidden !important;
  padding: 18px !important;
  border: 1px solid rgba(31, 35, 40, 0.08) !important;
  border-radius: 26px !important;
  color: var(--step2-text) !important;
  background: #fff !important;
  box-shadow: 0 10px 24px rgba(29, 29, 31, 0.06) !important;
  font-size: 16px !important;
  line-height: 1.15 !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  text-align: left;
  text-shadow: none !important;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

body.step2-remake .material-options .material-option::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 0 auto 0 !important;
  z-index: -1;
  width: 100% !important;
  height: 74px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--swatch, linear-gradient(135deg, #f5f5f7, #e5e5ea)) !important;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.54) !important;
  transform: none !important;
}

body.step2-remake .material-options .material-option::after {
  content: "" !important;
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  display: grid !important;
  place-items: center;
  width: 28px !important;
  height: 28px !important;
  border: 1px solid rgba(31, 35, 40, 0.12) !important;
  border-radius: 50% !important;
  color: transparent !important;
  background: rgba(255, 255, 255, 0.66) !important;
  box-shadow: none !important;
  transform: none !important;
}

body.step2-remake .material-option[data-material="gypsum"] { --swatch: linear-gradient(135deg, #ffffff 0%, #edf1f6 52%, #d8dee7 100%); }
body.step2-remake .material-option[data-material="integrated"] { --swatch: repeating-linear-gradient(90deg, #f9fbff 0 16px, #e9f0f8 16px 18px, #f4f8fc 18px 34px); }
body.step2-remake .material-option[data-material="wood"] { --swatch: repeating-linear-gradient(90deg, #f2d6b4 0 12px, #deb987 12px 16px, #f7e5cf 16px 28px); }
body.step2-remake .material-option[data-material="none"] { --swatch: linear-gradient(135deg, #ffffff 0%, #f4efe8 100%); }
body.step2-remake .material-option[data-material="tile"] { --swatch: linear-gradient(135deg, #ffffff 0 48%, #dfe7ef 49% 51%, #f8fafc 52% 100%); }
body.step2-remake .material-option[data-material="marble"] { --swatch: linear-gradient(135deg, #ffffff 0%, #f4f5f6 32%, #cfd5dc 33%, #fffdfa 40%, #e9edf1 100%); }
body.step2-remake .material-option[data-material="concrete"] { --swatch: linear-gradient(135deg, #d9dde1 0%, #aeb7c0 100%); }
body.step2-remake .material-option[data-material="paint"] { --swatch: linear-gradient(135deg, #fff9f0 0%, #efe4d5 100%); }
body.step2-remake .material-option[data-material="wallpaper"] { --swatch: repeating-linear-gradient(135deg, #fff7fb 0 10px, #f1e2ee 10px 12px, #fffdf8 12px 24px); }
body.step2-remake .material-option[data-material="wood-panel"] { --swatch: repeating-linear-gradient(90deg, #e9c59a 0 14px, #c99662 14px 18px, #f1d7b6 18px 30px); }
body.step2-remake .material-option[data-material="brick"] { --swatch: repeating-linear-gradient(0deg, #d8a08b 0 16px, #f6dfd4 16px 19px, #c9846f 19px 35px); }

body.step2-remake .material-options .material-option:hover {
  border-color: rgba(0, 122, 255, 0.24) !important;
  box-shadow: 0 16px 34px rgba(29, 29, 31, 0.1) !important;
  transform: translateY(-2px);
}

body.step2-remake .material-options .material-option.selected {
  border-color: rgba(0, 122, 255, 0.52) !important;
  background: #fff !important;
  box-shadow: 0 18px 38px rgba(0, 122, 255, 0.13), 0 0 0 5px rgba(0, 122, 255, 0.08) !important;
}

body.step2-remake .material-options .material-option.selected::after {
  content: "" !important;
  border-color: var(--step2-blue) !important;
  color: #fff !important;
  background: var(--step2-blue) !important;
}

body.step2-remake .material-options .material-option.selected::before {
  filter: saturate(1.05) brightness(1.02);
}

body.step2-remake .material-options .material-option.selected > span {
  color: var(--step2-text);
}

body.step2-remake .material-options .material-option.selected::after {
  background:
    linear-gradient(135deg, transparent 0 42%, #fff 43% 57%, transparent 58%),
    var(--step2-blue) !important;
}

body.step2-remake .material-note-input {
  display: block !important;
  width: 100%;
  min-height: 46px;
  margin-top: 14px;
  padding: 0 16px;
  border: 1px solid rgba(31, 35, 40, 0.1);
  border-radius: 16px;
  color: var(--step2-text);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 1px 2px rgba(29, 29, 31, 0.04);
  font-size: 14px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

body.step2-remake .material-note-input::placeholder {
  color: var(--step2-text-muted);
}

body.step2-remake .material-note-input:focus {
  border-color: rgba(0, 122, 255, 0.34);
  background: #fff;
  box-shadow: 0 0 0 5px rgba(0, 122, 255, 0.08);
}

body.step2-remake .btnrow.step2-action-row {
  grid-area: actions;
  position: sticky !important;
  z-index: 5;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: 18px !important;
  width: 100% !important;
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-height: 78px;
  margin: 0 !important;
  padding: 12px;
  border: 1px solid rgba(31, 35, 40, 0.08);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 50px rgba(29, 29, 31, 0.1);
  backdrop-filter: blur(22px) saturate(1.16);
  -webkit-backdrop-filter: blur(22px) saturate(1.16);
  transform: none !important;
}

body.step2-remake .step2-change-image-btn {
  position: static !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  margin-right: auto;
}

body.step2-remake .step2-change-image-btn[hidden] {
  display: none !important;
}

body.step2-remake .step2-action-row .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  width: auto !important;
  min-height: 52px;
  height: 52px;
  margin: 0;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 16px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

body.step2-remake .step2-action-row .btn-secondary {
  border: 1px solid rgba(31, 35, 40, 0.1);
  color: var(--step2-text);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: none;
}

body.step2-remake .step2-action-row .btn-secondary:hover {
  border-color: rgba(31, 35, 40, 0.16);
  background: #fff;
  transform: translateY(-1px);
}

body.step2-remake .step2-action-row .btn-primary {
  min-width: 190px;
  border: 1px solid rgba(0, 122, 255, 0.28);
  color: #fff;
  background: linear-gradient(180deg, #1688ff 0%, var(--step2-blue) 100%);
  box-shadow: 0 12px 28px rgba(0, 122, 255, 0.24);
}

body.step2-remake .step2-action-row .btn-primary:hover:not(:disabled) {
  background: linear-gradient(180deg, #2c94ff 0%, var(--step2-blue-dark) 100%);
  transform: translateY(-1px);
}

body.step2-remake .step2-action-row .btn-primary:disabled {
  color: rgba(255, 255, 255, 0.92);
  background: #9ccaff;
  box-shadow: none;
  opacity: 0.72;
  cursor: default;
}

body.step2-remake .toast {
  z-index: 30;
}

body.step2-remake.is-renovation-upload #step2MaterialsPane.step2-materials-panel {
  display: none !important;
}

body.step2-remake.is-renovation-upload .step2-workspace {
  grid-template-columns: minmax(0, 900px);
  grid-template-areas:
    "upload"
    "actions";
  justify-content: center;
}

body.step2-remake.is-renovation-upload .step2-upload-area {
  margin: 0 auto;
  width: min(900px, 100%) !important;
  transform: none !important;
}

@media (max-width: 1100px) {
  body.step2-remake .step2-workspace {
    grid-template-columns: 1fr;
    grid-template-areas:
      "upload"
      "materials"
      "actions";
    width: min(820px, calc(100vw - 32px));
    min-height: 0;
    padding: 26px 0 24px;
  }

  body.step2-remake #dropzone.dropzone {
    min-height: 390px !important;
    height: 390px !important;
  }

  body.step2-remake .btnrow.step2-action-row {
    position: relative !important;
    bottom: auto !important;
  }
}

@media (min-width: 1101px) and (max-height: 780px) {
  body.step2-remake .step2-workspace {
    gap: 18px;
    padding: 24px 0 18px;
  }

  body.step2-remake #step2Title {
    margin: 4px 0 14px;
    font-size: 36px;
  }

  body.step2-remake #dropzone.dropzone {
    min-height: 405px !important;
    height: 405px !important;
  }

  body.step2-remake #step2MaterialsPane.step2-materials-panel {
    padding: 20px;
  }

  body.step2-remake .step2-materials-head {
    margin-bottom: 14px;
  }

  body.step2-remake .material-tabs {
    margin-bottom: 16px !important;
  }

  body.step2-remake .material-options .material-option {
    min-height: 108px !important;
    padding: 15px !important;
  }

  body.step2-remake .material-options .material-option::before {
    height: 62px !important;
  }

  body.step2-remake .material-note-input {
    min-height: 42px;
    margin-top: 12px;
  }

  body.step2-remake .btnrow.step2-action-row {
    min-height: 68px;
    bottom: 10px !important;
  }

  body.step2-remake .step2-action-row .btn {
    min-height: 48px;
    height: 48px;
  }
}

@media (max-width: 720px) {
  body.step2-remake .step2-header {
    align-items: center;
    min-height: 68px;
    padding: 12px 16px;
    gap: 10px;
  }

  body.step2-remake .step2-logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 13px;
  }

  body.step2-remake .step2-logo strong {
    font-size: 16px;
  }

  body.step2-remake .step2-nav {
    gap: 8px;
  }

  body.step2-remake .step2-nav a,
  body.step2-remake .step2-account {
    min-height: 38px;
    padding: 0 11px;
    font-size: 0;
  }

  body.step2-remake .step2-nav-icon {
    width: 18px;
    height: 18px;
  }

  body.step2-remake .step2-workspace {
    width: min(100%, calc(100vw - 24px));
    padding: 20px 0 18px;
    gap: 16px;
  }

  body.step2-remake #step2Title {
    margin-top: 4px;
    margin-bottom: 16px;
    font-size: 32px;
  }

  body.step2-remake #dropzone.dropzone {
    min-height: 300px !important;
    height: 300px !important;
    border-radius: 28px !important;
  }

  body.step2-remake #step2MaterialsPane.step2-materials-panel {
    padding: 18px;
    border-radius: 28px !important;
  }

  body.step2-remake .step2-materials-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  body.step2-remake .step2-materials-panel h2 {
    font-size: 24px;
  }

  body.step2-remake .material-tabs {
    border-radius: 20px !important;
  }

  body.step2-remake .material-tab {
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 8px !important;
    font-size: 14px !important;
  }

  body.step2-remake .material-options {
    grid-template-columns: 1fr !important;
  }

  body.step2-remake .material-options .material-option {
    min-height: 112px !important;
    border-radius: 22px !important;
  }

  body.step2-remake .btnrow.step2-action-row {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding: 10px;
    border-radius: 24px;
  }

  body.step2-remake .step2-change-image-btn {
    margin-right: 0;
  }

  body.step2-remake .step2-action-row .btn,
  body.step2-remake .step2-action-row .btn-primary {
    width: 100% !important;
    min-width: 0;
  }
}

/* Fidelity pass: closer to Product Design option 1 */
@media (min-width: 1101px) {
  body.step2-remake .step2-header {
    min-height: 74px;
    padding: 13px 34px;
  }

  body.step2-remake .step2-logo strong {
    font-size: 18px;
    font-weight: 850;
  }

  body.step2-remake .step2-logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 13px;
    font-size: 11px;
  }

  body.step2-remake .step2-nav a:first-child {
    display: none;
  }

  body.step2-remake .step2-workspace {
    grid-template-columns: minmax(0, 1fr) minmax(292px, 314px);
    width: min(1504px, calc(100vw - 44px));
    min-height: calc(100vh - 74px);
    padding: 30px 0 22px;
  }

  body.step2-remake .step2-hero-copy {
    display: none;
  }

  body.step2-remake .step2-stage-shell {
    min-height: min(780px, calc(100vh - 118px));
    padding: 38px 18px 120px 120px;
    border-radius: 56px;
  }

  body.step2-remake #dropzone.dropzone {
    height: min(620px, calc(100vh - 292px)) !important;
    min-height: 460px !important;
    border-radius: 52px !important;
  }

  body.step2-remake .dropzone-preview img {
    border-radius: 52px;
  }

  body.step2-remake #step2MaterialsPane.step2-materials-panel {
    width: 314px !important;
    align-self: center !important;
    height: auto !important;
    max-height: none;
    margin-left: -42px;
    padding: 20px;
    border-radius: 38px !important;
  }

  body.step2-remake .material-inspector-card {
    aspect-ratio: 1 / 0.82;
    border-radius: 24px;
  }

  body.step2-remake .material-inspector-copy {
    margin: 13px 0 14px;
    padding-bottom: 13px;
  }

  body.step2-remake .surface-selection-list {
    gap: 7px;
    margin-bottom: 14px;
  }

  body.step2-remake .surface-selection-row {
    min-height: 45px;
    padding: 6px 9px;
    border-radius: 17px;
  }

  body.step2-remake .step2-floating-next {
    min-height: 54px;
    margin-top: 15px;
    border-radius: 18px;
  }

  body.step2-remake .step2-sample-tray {
    grid-auto-columns: 112px;
    width: min(860px, calc(100% - 154px));
    margin: -96px 34px 0 112px;
    padding: 15px 18px;
    border-radius: 42px;
  }
}

body.step2-remake[data-page="step2"] .step2-sample-tray .tray-material.material-option {
  position: relative !important;
  isolation: isolate;
  display: grid !important;
  grid-template-rows: 1fr auto;
  gap: 9px;
  min-height: 134px !important;
  height: auto !important;
  padding: 9px 9px 12px !important;
  overflow: hidden !important;
  border: 1px solid rgba(90, 76, 61, 0.11) !important;
  border-radius: 23px !important;
  color: rgba(43, 43, 47, 0.78) !important;
  background: rgba(255, 255, 255, 0.86) !important;
  box-shadow: 0 12px 28px rgba(70, 54, 39, 0.08) !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
  font-weight: 850 !important;
  text-align: center;
  text-shadow: none !important;
  transform: none;
}

body.step2-remake[data-page="step2"] .step2-sample-tray .tray-material.material-option::before {
  content: "" !important;
  position: static !important;
  inset: auto !important;
  z-index: auto !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 82px !important;
  border: 0 !important;
  border-radius: 17px !important;
  background: var(--swatch-img) center / cover no-repeat !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.44) !important;
  filter: none !important;
  transform: none !important;
}

body.step2-remake[data-page="step2"] .step2-sample-tray .tray-material.material-option:hover {
  border-color: rgba(10, 132, 255, 0.3) !important;
  box-shadow: 0 16px 34px rgba(70, 54, 39, 0.11) !important;
  transform: translateY(-2px);
}

body.step2-remake[data-page="step2"] .step2-sample-tray .tray-material.material-option.selected {
  color: rgba(29, 29, 31, 0.86) !important;
  border-color: rgba(10, 132, 255, 0.86) !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow:
    0 16px 38px rgba(10, 132, 255, 0.16),
    0 0 0 4px rgba(10, 132, 255, 0.1) !important;
}

body.step2-remake[data-page="step2"]:not(.is-renovation-upload) .step2-sample-tray .tray-material.material-option.selected::after {
  content: "" !important;
  position: absolute !important;
  top: 72px !important;
  right: 14px !important;
  bottom: auto !important;
  display: block !important;
  width: 24px !important;
  height: 24px !important;
  border: 2px solid #fff !important;
  border-radius: 50% !important;
  color: transparent !important;
  background: var(--step2-blue) !important;
  box-shadow: 0 8px 16px rgba(10, 132, 255, 0.28) !important;
  opacity: 1 !important;
  transform: scale(1) !important;
}

body.step2-remake[data-page="step2"] .step2-sample-tray .tray-material.material-option:not(.selected)::after {
  content: "" !important;
  opacity: 0 !important;
}

@media (min-width: 1101px) and (max-height: 820px) {
  body.step2-remake .step2-workspace {
    padding-top: 18px;
  }

  body.step2-remake .step2-stage-shell {
    min-height: 560px;
    padding-top: 28px;
    padding-bottom: 94px;
  }

  body.step2-remake #dropzone.dropzone {
    height: 430px !important;
    min-height: 430px !important;
  }

  body.step2-remake #step2MaterialsPane.step2-materials-panel {
    width: 306px !important;
    padding: 18px;
  }

  body.step2-remake .material-inspector-card {
    aspect-ratio: 1 / 0.58;
  }

  body.step2-remake[data-page="step2"] .step2-sample-tray .tray-material.material-option {
    min-height: 110px !important;
  }

  body.step2-remake[data-page="step2"] .step2-sample-tray .tray-material.material-option::before {
    min-height: 64px !important;
  }

  body.step2-remake[data-page="step2"]:not(.is-renovation-upload) .step2-sample-tray .tray-material.material-option.selected::after {
    top: 55px !important;
  }
}

/* 2026-07 Apple stage redesign */
body.step2-remake {
  --step2-bg: #fffaf4;
  --step2-cream: #f7efe6;
  --step2-surface: rgba(255, 255, 255, 0.76);
  --step2-surface-strong: rgba(255, 255, 255, 0.92);
  --step2-line: rgba(59, 52, 45, 0.1);
  --step2-line-strong: rgba(59, 52, 45, 0.16);
  --step2-text: #1d1d1f;
  --step2-text-soft: #525257;
  --step2-text-muted: #858589;
  --step2-blue: #0a84ff;
  --step2-blue-dark: #0066d6;
  --step2-peach: #f3d5c5;
  --step2-green: #35c759;
  --step2-shadow: 0 34px 90px rgba(70, 54, 39, 0.12);
  --step2-shadow-soft: 0 18px 48px rgba(70, 54, 39, 0.09);
  background:
    linear-gradient(180deg, #fffdfa 0%, #fbf4ec 42%, #fffaf6 100%) !important;
}

body.step2-remake .step2-page {
  overflow: clip;
}

body.step2-remake .step2-page::before {
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.92), rgba(255, 246, 236, 0.72) 52%, rgba(255, 255, 255, 0.96)) !important;
}

body.step2-remake .step2-header {
  min-height: 82px;
  padding: 16px 36px;
  border-bottom-color: rgba(59, 52, 45, 0.06);
  background: rgba(255, 253, 249, 0.72);
  backdrop-filter: blur(28px) saturate(1.18);
  -webkit-backdrop-filter: blur(28px) saturate(1.18);
}

body.step2-remake .step2-logo-mark {
  border-color: rgba(10, 132, 255, 0.18);
  color: var(--step2-blue);
  background: linear-gradient(180deg, #fff, #edf6ff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 14px 30px rgba(10, 132, 255, 0.13);
}

body.step2-remake .step2-logo strong {
  font-size: 19px;
}

body.step2-remake .step2-flow-pill {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  padding: 7px 14px;
  border: 1px solid rgba(59, 52, 45, 0.08);
  border-radius: 999px;
  color: var(--step2-text-muted);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 40px rgba(70, 54, 39, 0.08);
  backdrop-filter: blur(24px) saturate(1.14);
  -webkit-backdrop-filter: blur(24px) saturate(1.14);
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

body.step2-remake .step2-flow-pill span {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

body.step2-remake .step2-flow-pill span + span::before {
  content: "";
  position: absolute;
  left: -10px;
  width: 8px;
  height: 1px;
  background: rgba(59, 52, 45, 0.18);
}

body.step2-remake .step2-flow-pill .is-active {
  color: #fff;
  background: linear-gradient(180deg, #48a2ff, var(--step2-blue));
  box-shadow: 0 9px 18px rgba(10, 132, 255, 0.24);
}

body.step2-remake .step2-workspace {
  grid-template-columns: minmax(0, 1fr) minmax(310px, 348px);
  grid-template-areas:
    "upload materials"
    "actions materials";
  align-items: center;
  gap: 0;
  width: min(1500px, calc(100vw - 54px));
  min-height: calc(100vh - 82px);
  padding: 28px 0 24px;
}

body.step2-remake .step2-upload-area {
  align-self: center;
  z-index: 1;
}

body.step2-remake .step2-hero-copy {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: 0 82px 18px 126px;
}

body.step2-remake .step2-hero-copy p {
  order: 2;
  margin: 0 0 6px;
  color: rgba(83, 70, 58, 0.62);
  font-size: 14px;
  font-weight: 800;
}

body.step2-remake #step2Title {
  margin: 0;
  font-size: clamp(32px, 3.4vw, 54px);
  line-height: 0.98;
  letter-spacing: 0;
}

body.step2-remake .step2-stage-shell {
  position: relative;
  min-height: 620px;
  padding: 40px 32px 128px 124px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 58px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 250, 244, 0.42));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 34px 110px rgba(70, 54, 39, 0.12);
}

body.step2-remake .step2-surface-rail {
  position: absolute;
  z-index: 5;
  left: 22px;
  top: 50%;
  display: grid;
  gap: 18px;
  width: 82px;
  padding: 18px 10px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 42px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 26px 70px rgba(70, 54, 39, 0.12);
  backdrop-filter: blur(28px) saturate(1.2);
  -webkit-backdrop-filter: blur(28px) saturate(1.2);
  transform: translateY(-50%);
}

body.step2-remake .step2-surface-rail .material-tab {
  display: grid !important;
  place-items: center;
  gap: 8px;
  width: 62px !important;
  height: 88px !important;
  min-height: 88px !important;
  padding: 0 !important;
  border: 1px solid rgba(59, 52, 45, 0.06) !important;
  border-radius: 26px !important;
  color: var(--step2-text-soft) !important;
  background: rgba(246, 246, 247, 0.72) !important;
  font-size: 13px !important;
  box-shadow: none !important;
}

body.step2-remake .step2-surface-rail .material-tab .surface-rail-mark {
  width: 24px;
  height: 18px;
  border: 2px solid currentColor;
  border-top-width: 1px;
  border-radius: 5px;
  transform: perspective(34px) rotateX(32deg);
}

body.step2-remake .step2-surface-rail .material-tab.is-active {
  color: var(--step2-blue) !important;
  border-color: rgba(10, 132, 255, 0.18) !important;
  background: linear-gradient(180deg, #ffffff, #edf6ff) !important;
  box-shadow: 0 14px 30px rgba(10, 132, 255, 0.16) !important;
}

body.step2-remake #dropzone.dropzone {
  display: block !important;
  min-height: 500px !important;
  height: clamp(500px, calc(100vh - 300px), 640px) !important;
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.78) !important;
  border-radius: 54px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 248, 238, 0.08)),
    url("step2-apple/rough-room-preview.png") center / cover no-repeat !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.26),
    0 28px 84px rgba(70, 54, 39, 0.14) !important;
}

body.step2-remake #dropzone.dropzone::before {
  content: none !important;
  display: none !important;
}

body.step2-remake #dropzone.dropzone:hover,
body.step2-remake #dropzone.dropzone.dragover {
  border-color: rgba(10, 132, 255, 0.28) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.26),
    0 34px 90px rgba(70, 54, 39, 0.16),
    0 0 0 8px rgba(10, 132, 255, 0.08) !important;
}

body.step2-remake .dropzone-preview img {
  border-radius: 54px;
}

body.step2-remake .dropzone-hint {
  position: absolute;
  z-index: 6;
  right: 28px;
  top: 28px;
  display: inline-flex !important;
  width: auto;
  height: 44px;
  min-height: 44px !important;
  padding: 0 18px !important;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  color: var(--step2-text);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 16px 38px rgba(70, 54, 39, 0.12);
  backdrop-filter: blur(20px) saturate(1.16);
  -webkit-backdrop-filter: blur(20px) saturate(1.16);
  font-size: 14px;
  font-weight: 800;
}

body.step2-remake .step2-upload-icon,
body.step2-remake .dropzone-hint h2 {
  display: none !important;
}

body.step2-remake .stage-material-overlay {
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
}

body.step2-remake .stage-line {
  position: absolute;
  display: block;
  opacity: 0.88;
  filter: drop-shadow(0 0 7px rgba(255, 255, 255, 0.95));
}

body.step2-remake .stage-line-ceiling {
  left: 10%;
  right: 11%;
  top: 31%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 159, 115, 0.08), rgba(255, 159, 115, 0.96), rgba(255, 159, 115, 0.1));
  box-shadow: 0 0 16px rgba(255, 159, 115, 0.62);
}

body.step2-remake .stage-line-wall {
  right: 11%;
  top: 27%;
  width: 2px;
  height: 48%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(10, 132, 255, 0.06), rgba(10, 132, 255, 0.92), rgba(10, 132, 255, 0.08));
  box-shadow: 0 0 16px rgba(10, 132, 255, 0.56);
}

body.step2-remake .stage-line-floor {
  left: 15%;
  right: 14%;
  bottom: 26%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(52, 199, 89, 0.06), rgba(52, 199, 89, 0.84), rgba(52, 199, 89, 0.08));
  box-shadow: 0 0 16px rgba(52, 199, 89, 0.5);
}

body.step2-remake .stage-tag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  color: var(--step2-text-soft);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 22px rgba(70, 54, 39, 0.1);
  font-size: 12px;
  font-weight: 800;
}

body.step2-remake .stage-tag-ceiling {
  left: 50%;
  top: 25%;
  color: #a96943;
  transform: translateX(-50%);
}

body.step2-remake .stage-tag-wall {
  right: 13%;
  top: 49%;
  color: #1f6fc5;
}

body.step2-remake .stage-tag-floor {
  left: 50%;
  bottom: 21%;
  color: #3f7751;
  transform: translateX(-50%);
}

body.step2-remake .stage-before-after {
  position: absolute;
  left: 50%;
  top: 52%;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  color: var(--step2-text);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 14px 34px rgba(70, 54, 39, 0.14);
  font-size: 24px;
  font-weight: 700;
  transform: translate(-50%, -50%);
}

body.step2-remake .step2-sample-tray {
  position: relative;
  z-index: 6;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(116px, 1fr);
  gap: 12px;
  width: min(100%, calc(100% - 150px));
  margin: -104px 38px 0 112px;
  padding: 16px 20px;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 44px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 26px 74px rgba(70, 54, 39, 0.13);
  backdrop-filter: blur(26px) saturate(1.18);
  -webkit-backdrop-filter: blur(26px) saturate(1.18);
  scrollbar-width: none;
}

body.step2-remake .step2-sample-tray::-webkit-scrollbar {
  display: none;
}

body.step2-remake .tray-material {
  position: relative;
  display: grid !important;
  grid-template-rows: 1fr auto;
  gap: 10px;
  min-height: 138px;
  padding: 9px 9px 12px !important;
  border: 1px solid rgba(59, 52, 45, 0.08) !important;
  border-radius: 24px !important;
  color: var(--step2-text-soft) !important;
  background: rgba(255, 255, 255, 0.88) !important;
  box-shadow: 0 10px 24px rgba(70, 54, 39, 0.07) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  text-align: center;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

body.step2-remake .tray-material::before {
  content: "" !important;
  display: block;
  width: 100%;
  min-height: 86px;
  border-radius: 18px;
  background: var(--swatch-img) center / cover no-repeat;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

body.step2-remake .tray-material::after {
  content: "" !important;
  position: absolute;
  right: 14px;
  bottom: 42px;
  width: 25px;
  height: 25px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--step2-blue) !important;
  box-shadow: 0 8px 16px rgba(10, 132, 255, 0.25) !important;
  opacity: 0;
  transform: scale(0.82);
  transition: opacity 180ms ease, transform 180ms ease;
}

body.step2-remake .tray-material:hover {
  border-color: rgba(10, 132, 255, 0.22) !important;
  transform: translateY(-2px);
}

body.step2-remake .tray-material.selected {
  border-color: rgba(10, 132, 255, 0.7) !important;
  color: var(--step2-text-soft) !important;
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 15px 34px rgba(10, 132, 255, 0.16), 0 0 0 4px rgba(10, 132, 255, 0.09) !important;
}

body.step2-remake[data-page="step2"]:not(.is-renovation-upload) .step2-sample-tray .tray-material.material-option.selected::after {
  content: "" !important;
  top: auto !important;
  right: 14px !important;
  bottom: 42px !important;
  display: block !important;
  width: 25px !important;
  height: 25px !important;
  border: 2px solid #fff !important;
  border-radius: 50% !important;
  color: transparent !important;
  background: var(--step2-blue) !important;
  box-shadow: 0 8px 16px rgba(10, 132, 255, 0.25) !important;
  opacity: 1 !important;
  transform: scale(1) !important;
}

body.step2-remake [data-category="ceiling"][data-material="gypsum"] { --swatch-img: url("step2-apple/material-plaster.png"); }
body.step2-remake [data-category="ceiling"][data-material="integrated"] { --swatch-img: url("step2-apple/material-ceiling-panel.png"); }
body.step2-remake [data-category="ceiling"][data-material="wood"] { --swatch-img: url("step2-apple/material-wood-panel.png"); }
body.step2-remake [data-category="ceiling"][data-material="none"] { --swatch-img: url("step2-apple/material-white-finish.png"); }
body.step2-remake [data-category="floor"][data-material="wood"] { --swatch-img: url("step2-apple/material-oak.png"); }
body.step2-remake [data-category="floor"][data-material="tile"] { --swatch-img: url("step2-apple/material-ceramic-tile.png"); }
body.step2-remake [data-category="floor"][data-material="marble"] { --swatch-img: url("step2-apple/material-marble.png"); }
body.step2-remake [data-category="floor"][data-material="concrete"] { --swatch-img: url("step2-apple/material-microcement.png"); }
body.step2-remake [data-category="wall"][data-material="paint"] { --swatch-img: url("step2-apple/material-art-paint.png"); }
body.step2-remake [data-category="wall"][data-material="wallpaper"] { --swatch-img: url("step2-apple/material-linen.png"); }
body.step2-remake [data-category="wall"][data-material="wood-panel"] { --swatch-img: url("step2-apple/material-wood-panel.png"); }
body.step2-remake [data-category="wall"][data-material="brick"] { --swatch-img: url("step2-apple/material-brick.png"); }

body.step2-remake #step2MaterialsPane.step2-materials-panel {
  z-index: 7;
  align-self: center !important;
  width: 348px !important;
  height: auto !important;
  min-width: 0;
  margin-left: -42px;
  padding: 22px;
  max-height: calc(100vh - 112px);
  overflow-y: auto;
  scrollbar-width: none;
  border: 1px solid rgba(255, 255, 255, 0.84) !important;
  border-radius: 42px !important;
  background: rgba(255, 255, 255, 0.74) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 32px 86px rgba(70, 54, 39, 0.16) !important;
  backdrop-filter: blur(30px) saturate(1.22);
  -webkit-backdrop-filter: blur(30px) saturate(1.22);
}

body.step2-remake #step2MaterialsPane.step2-materials-panel::-webkit-scrollbar {
  display: none;
}

body.step2-remake .step2-materials-head {
  margin-bottom: 14px;
}

body.step2-remake .step2-materials-head p {
  margin: 0 0 6px;
  color: var(--step2-text-soft);
  font-size: 13px;
  font-weight: 800;
}

body.step2-remake .step2-materials-panel h2 {
  font-size: 21px;
}

body.step2-remake #step2MaterialsPane > .material-tabs {
  display: none !important;
}

body.step2-remake .material-inspector-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 0.68;
  border-radius: 26px;
  background: #f5f0e9;
  box-shadow: 0 14px 34px rgba(70, 54, 39, 0.1);
}

body.step2-remake .material-inspector-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.step2-remake .material-zoom-btn {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  color: var(--step2-text);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 24px rgba(70, 54, 39, 0.12);
  font-size: 18px;
  cursor: default;
}

body.step2-remake .material-inspector-copy {
  margin: 14px 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(59, 52, 45, 0.08);
}

body.step2-remake .material-inspector-copy h3 {
  margin: 0 0 7px;
  color: var(--step2-text);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 850;
}

body.step2-remake .material-inspector-copy p {
  margin: 0;
  color: var(--step2-text-soft);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 700;
}

body.step2-remake .surface-selection-list {
  display: grid;
  gap: 8px;
  margin-bottom: 15px;
}

body.step2-remake .surface-selection-row {
  display: grid;
  grid-template-columns: 34px auto 1fr;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 7px 10px;
  border: 1px solid rgba(59, 52, 45, 0.07);
  border-radius: 18px;
  color: var(--step2-text-muted);
  background: rgba(255, 255, 255, 0.54);
  font-size: 13px;
  font-weight: 800;
}

body.step2-remake .surface-selection-row.is-active {
  border-color: rgba(10, 132, 255, 0.2);
  color: var(--step2-text);
  background: rgba(237, 246, 255, 0.78);
}

body.step2-remake .surface-selection-swatch {
  width: 34px;
  height: 34px;
  border: 2px solid #fff;
  border-radius: 12px;
  background: #f5f5f7 center / cover no-repeat;
  box-shadow: 0 8px 16px rgba(70, 54, 39, 0.12);
}

body.step2-remake .surface-selection-row strong {
  justify-self: end;
  color: var(--step2-text);
  font-size: 13px;
}

body.step2-remake .materials-layout {
  display: none !important;
}

body.step2-remake .material-panel-head {
  margin-bottom: 10px;
}

body.step2-remake .material-panel-head h3 {
  font-size: 15px;
}

body.step2-remake .material-options {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

body.step2-remake .material-options .material-option {
  min-height: 82px !important;
  padding: 10px !important;
  border-radius: 20px !important;
  font-size: 13px !important;
}

body.step2-remake .material-options .material-option::before {
  height: 44px !important;
  background: var(--swatch-img) center / cover no-repeat !important;
}

body.step2-remake .material-options .material-option::after {
  top: 9px !important;
  right: 9px !important;
  width: 22px !important;
  height: 22px !important;
}

body.step2-remake .material-note-input {
  min-height: 40px;
  margin-top: 10px;
  border-radius: 14px;
}

body.step2-remake .step2-floating-next {
  width: 100% !important;
  min-height: 58px;
  margin-top: 18px;
  border-radius: 20px;
  border: 0 !important;
  color: #fff !important;
  background: linear-gradient(180deg, #55a8ff 0%, var(--step2-blue) 100%) !important;
  box-shadow: 0 16px 34px rgba(10, 132, 255, 0.28) !important;
  font-size: 16px;
  font-weight: 850;
}

body.step2-remake .step2-floating-next:hover:not(:disabled) {
  background: linear-gradient(180deg, #6bb4ff 0%, var(--step2-blue-dark) 100%) !important;
  transform: translateY(-1px);
}

body.step2-remake .btnrow.step2-action-row {
  z-index: 6;
  justify-content: center;
  width: min(360px, calc(100% - 160px)) !important;
  min-height: 58px;
  margin: -28px auto 0 !important;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
}

body.step2-remake .step2-action-row .btn {
  min-width: 112px;
  min-height: 42px;
  height: 42px;
  padding: 0 16px;
  font-size: 14px;
}

body.step2-remake .step2-selected-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--step2-text-soft);
  font-size: 13px;
  font-weight: 800;
}

body.step2-remake .step2-selected-chip i {
  display: block;
  width: 20px;
  height: 20px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #ead8c8;
  box-shadow: 0 5px 12px rgba(70, 54, 39, 0.1);
}

body.step2-remake .step2-selected-chip i:nth-child(3) {
  background: #d8ad7a;
}

body.step2-remake .step2-selected-chip i:nth-child(4) {
  background: #deddd9;
}

body.step2-remake.is-renovation-upload .step2-stage-shell {
  padding-left: 32px;
  padding-bottom: 40px;
}

body.step2-remake.is-renovation-upload .step2-surface-rail,
body.step2-remake.is-renovation-upload .stage-material-overlay,
body.step2-remake.is-renovation-upload .step2-sample-tray,
body.step2-remake.is-renovation-upload .step2-selected-chip {
  display: none !important;
}

body.step2-remake.is-renovation-upload .step2-workspace {
  grid-template-columns: minmax(0, 940px);
  grid-template-areas:
    "upload"
    "actions";
}

body.step2-remake.is-renovation-upload .step2-action-row {
  width: min(360px, 100%) !important;
}

@media (max-width: 1240px) {
  body.step2-remake .step2-flow-pill {
    display: none;
  }

  body.step2-remake .step2-workspace {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 330px);
    width: min(1180px, calc(100vw - 34px));
  }

  body.step2-remake .step2-stage-shell {
    padding-left: 108px;
  }

  body.step2-remake #step2MaterialsPane.step2-materials-panel {
    width: 330px !important;
    margin-left: -28px;
  }
}

@media (max-width: 1100px) {
  body.step2-remake .step2-workspace {
    grid-template-columns: 1fr;
    grid-template-areas:
      "upload"
      "materials"
      "actions";
    width: min(860px, calc(100vw - 32px));
    gap: 18px;
  }

  body.step2-remake .step2-hero-copy {
    margin: 0 0 16px;
  }

  body.step2-remake .step2-stage-shell {
    min-height: 0;
    padding: 92px 18px 106px;
  }

  body.step2-remake .step2-surface-rail {
    left: 18px;
    right: 18px;
    top: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: auto;
    padding: 8px;
    border-radius: 28px;
    transform: none;
  }

  body.step2-remake .step2-surface-rail .material-tab {
    width: 100% !important;
    height: 54px !important;
    min-height: 54px !important;
    grid-template-columns: auto auto;
    border-radius: 20px !important;
  }

  body.step2-remake #dropzone.dropzone {
    height: 430px !important;
  }

  body.step2-remake .step2-sample-tray {
    width: calc(100% - 28px);
    margin: -90px 14px 0;
  }

  body.step2-remake #step2MaterialsPane.step2-materials-panel {
    width: 100% !important;
    margin-left: 0;
  }

  body.step2-remake .btnrow.step2-action-row {
    width: 100% !important;
    margin: 0 !important;
  }
}

@media (min-width: 1101px) and (max-height: 780px) {
  body.step2-remake .step2-header {
    min-height: 70px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  body.step2-remake .step2-workspace {
    min-height: calc(100vh - 70px);
    padding: 18px 0 16px;
  }

  body.step2-remake .step2-hero-copy {
    margin-bottom: 12px;
  }

  body.step2-remake #step2Title {
    font-size: 34px;
  }

  body.step2-remake .step2-stage-shell {
    min-height: 500px;
    padding-top: 28px;
    padding-bottom: 92px;
  }

  body.step2-remake #dropzone.dropzone {
    min-height: 372px !important;
    height: 372px !important;
  }

  body.step2-remake .step2-sample-tray {
    margin-top: -74px;
    padding: 11px 14px;
  }

  body.step2-remake .tray-material {
    min-height: 104px;
  }

  body.step2-remake .tray-material::before {
    min-height: 60px;
  }

  body.step2-remake #step2MaterialsPane.step2-materials-panel {
    padding: 18px;
  }

  body.step2-remake .material-inspector-card {
    aspect-ratio: 1 / 0.5;
  }

  body.step2-remake .materials-layout {
    display: none !important;
  }

  body.step2-remake .step2-floating-next {
    min-height: 50px;
    margin-top: 12px;
  }
}

@media (max-width: 720px) {
  body.step2-remake .step2-header {
    min-height: 66px;
    padding: 11px 14px;
  }

  body.step2-remake .step2-logo strong {
    font-size: 15px;
  }

  body.step2-remake .step2-workspace {
    width: min(100%, calc(100vw - 22px));
    padding: 18px 0;
  }

  body.step2-remake .step2-hero-copy {
    display: block;
  }

  body.step2-remake .step2-hero-copy p {
    margin-bottom: 7px;
  }

  body.step2-remake #step2Title {
    font-size: 31px;
  }

  body.step2-remake .step2-stage-shell {
    padding: 82px 10px 94px;
    border-radius: 34px;
  }

  body.step2-remake .step2-surface-rail {
    left: 10px;
    right: 10px;
    top: 10px;
    gap: 6px;
    border-radius: 24px;
  }

  body.step2-remake .step2-surface-rail .material-tab {
    min-height: 48px !important;
    height: 48px !important;
    gap: 6px;
    font-size: 12px !important;
  }

  body.step2-remake .step2-surface-rail .material-tab .surface-rail-mark {
    width: 19px;
    height: 14px;
  }

  body.step2-remake #dropzone.dropzone {
    height: 330px !important;
    min-height: 330px !important;
    border-radius: 30px !important;
  }

  body.step2-remake .dropzone-preview img {
    border-radius: 30px;
  }

  body.step2-remake .dropzone-hint {
    right: 14px;
    top: 14px;
    height: 38px;
    min-height: 38px !important;
    padding: 0 13px !important;
    font-size: 12px;
  }

  body.step2-remake .stage-line,
  body.step2-remake .stage-tag,
  body.step2-remake .stage-before-after {
    display: none;
  }

  body.step2-remake .step2-sample-tray {
    grid-auto-columns: 112px;
    width: calc(100% - 18px);
    margin: -82px 9px 0;
    padding: 12px;
    border-radius: 30px;
  }

  body.step2-remake .tray-material {
    min-height: 122px;
    border-radius: 20px !important;
  }

  body.step2-remake .tray-material::before {
    min-height: 76px;
    border-radius: 15px;
  }

  body.step2-remake #step2MaterialsPane.step2-materials-panel {
    padding: 16px;
    border-radius: 30px !important;
  }

  body.step2-remake .material-inspector-card {
    aspect-ratio: 1 / 0.58;
    border-radius: 22px;
  }

  body.step2-remake .surface-selection-row {
    grid-template-columns: 30px auto 1fr;
    min-height: 44px;
    font-size: 12px;
  }

  body.step2-remake .surface-selection-swatch {
    width: 30px;
    height: 30px;
  }

  body.step2-remake .materials-layout {
    max-height: none;
  }

  body.step2-remake .material-options {
    grid-template-columns: 1fr !important;
  }

  body.step2-remake .btnrow.step2-action-row {
    flex-direction: column;
    border-radius: 26px;
  }

  body.step2-remake .step2-selected-chip {
    justify-content: center;
  }
}

/* Stage 3: match the 80% browser-density reference without requiring browser zoom. */
@media (min-width: 1101px) {
  body.step2-remake .step2-header {
    min-height: 66px;
    padding: 11px 34px;
  }

  body.step2-remake .step2-logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 13px;
  }

  body.step2-remake .step2-logo strong {
    font-size: 17px;
  }

  body.step2-remake .step2-flow-pill {
    min-height: 46px;
    padding: 6px 12px;
    gap: 12px;
  }

  body.step2-remake .step2-flow-pill span {
    min-height: 31px;
    padding: 0 12px;
    font-size: 12px;
  }

  body.step2-remake .step2-workspace {
    grid-template-columns: minmax(0, 1fr) minmax(286px, 320px);
    width: min(1880px, calc(100vw - 36px));
    min-height: calc(100vh - 66px);
    padding: 18px 0 16px;
  }

  body.step2-remake .step2-upload-area {
    min-width: 0;
  }

  body.step2-remake .step2-hero-copy {
    display: none;
  }

  body.step2-remake .step2-stage-shell {
    min-height: 0;
    padding: 38px 82px 122px 128px;
    border-radius: 58px;
  }

  body.step2-remake .step2-surface-rail {
    left: 24px;
    gap: 16px;
    width: 78px;
    padding: 16px 9px;
    border-radius: 40px;
  }

  body.step2-remake .step2-surface-rail .material-tab {
    width: 60px !important;
    height: 82px !important;
    min-height: 82px !important;
    border-radius: 25px !important;
  }

  body.step2-remake #dropzone.dropzone {
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100vh - 236px);
    aspect-ratio: 16 / 9;
    border-radius: 50px !important;
    background-position: center center !important;
  }

  body.step2-remake .dropzone-preview img {
    border-radius: 50px;
  }

  body.step2-remake .dropzone-hint {
    top: 34px;
    right: 22px;
    bottom: 34px;
    left: auto;
    flex-direction: column;
    justify-content: center;
    width: 76px;
    height: auto;
    min-height: 0 !important;
    padding: 0 !important;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.96);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.48));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.82),
      0 24px 56px rgba(70, 54, 39, 0.14);
    text-shadow: 0 1px 10px rgba(70, 54, 39, 0.16);
  }

  body.step2-remake .stage-line-ceiling {
    left: 12%;
    right: 13%;
    top: 31%;
  }

  body.step2-remake .stage-line-wall {
    right: 13%;
    top: 27%;
    height: 49%;
  }

  body.step2-remake .stage-line-floor {
    left: 16%;
    right: 15%;
    bottom: 25%;
  }

  body.step2-remake .stage-tag-wall {
    right: 15%;
  }

  body.step2-remake .step2-sample-tray {
    grid-auto-columns: 112px;
    width: min(1120px, calc(100% - 210px));
    margin: -100px 72px 0 128px;
    padding: 14px 18px;
    border-radius: 40px;
  }

  body.step2-remake[data-page="step2"] .step2-sample-tray .tray-material.material-option {
    min-height: 126px !important;
    padding: 8px 8px 11px !important;
    border-radius: 22px !important;
  }

  body.step2-remake[data-page="step2"] .step2-sample-tray .tray-material.material-option::before {
    min-height: 76px !important;
    border-radius: 16px !important;
  }

  body.step2-remake[data-page="step2"]:not(.is-renovation-upload) .step2-sample-tray .tray-material.material-option.selected::after {
    top: 66px !important;
    right: 13px !important;
  }

  body.step2-remake .btnrow.step2-action-row {
    width: min(380px, calc(100% - 210px)) !important;
    min-height: 54px;
    margin: -26px auto 0 !important;
  }

  body.step2-remake #step2MaterialsPane.step2-materials-panel {
    width: clamp(292px, 16vw, 318px) !important;
    margin-left: -82px;
    padding: 20px;
    border-radius: 38px !important;
  }

  body.step2-remake .step2-materials-head {
    margin-bottom: 12px;
  }

  body.step2-remake .step2-materials-head p {
    white-space: nowrap;
  }

  body.step2-remake .step2-materials-panel h2 {
    font-size: 20px;
  }

  body.step2-remake .material-inspector-card {
    aspect-ratio: 1 / 0.72;
    border-radius: 24px;
  }

  body.step2-remake .surface-selection-row {
    min-height: 44px;
  }

  body.step2-remake .step2-floating-next {
    min-height: 54px;
    margin-top: 14px;
  }
}

@media (min-width: 1600px) {
  body.step2-remake .step2-stage-shell {
    padding-left: 132px;
    padding-right: 96px;
  }

  body.step2-remake .step2-sample-tray {
    width: min(1180px, calc(100% - 228px));
    margin-left: 132px;
  }

  body.step2-remake #step2MaterialsPane.step2-materials-panel {
    margin-left: -92px;
  }
}

@media (min-width: 1101px) and (max-width: 1320px) {
  body.step2-remake .step2-workspace {
    grid-template-columns: minmax(0, 1fr) minmax(274px, 294px);
    width: min(1288px, calc(100vw - 28px));
  }

  body.step2-remake .step2-stage-shell {
    padding-left: 104px;
    padding-right: 40px;
  }

  body.step2-remake .step2-surface-rail {
    left: 18px;
  }

  body.step2-remake .step2-sample-tray {
    width: min(960px, calc(100% - 144px));
    margin-left: 104px;
    margin-right: 40px;
  }

  body.step2-remake #step2MaterialsPane.step2-materials-panel {
    width: 294px !important;
    margin-left: -82px;
  }
}

@media (min-width: 1101px) and (max-height: 820px) {
  body.step2-remake .step2-workspace {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  body.step2-remake .step2-stage-shell {
    padding-top: 26px;
    padding-bottom: 96px;
  }

  body.step2-remake #dropzone.dropzone {
    max-height: calc(100vh - 214px);
  }

  body.step2-remake .dropzone-hint {
    top: 26px;
    bottom: 26px;
    width: 68px;
  }

  body.step2-remake .step2-sample-tray {
    margin-top: -76px;
    padding: 11px 14px;
  }

  body.step2-remake[data-page="step2"] .step2-sample-tray .tray-material.material-option {
    min-height: 104px !important;
  }

  body.step2-remake[data-page="step2"] .step2-sample-tray .tray-material.material-option::before {
    min-height: 60px !important;
  }

  body.step2-remake[data-page="step2"]:not(.is-renovation-upload) .step2-sample-tray .tray-material.material-option.selected::after {
    top: 52px !important;
  }

  body.step2-remake .material-inspector-card {
    aspect-ratio: 1 / 0.54;
  }

  body.step2-remake .surface-selection-row {
    min-height: 42px;
  }
}

/* Stage 4 final overrides: keep the structural redesign above all earlier passes. */
@media (min-width: 1101px) {
  body.step2-remake .step2-header {
    min-height: 72px !important;
    padding: 14px 42px !important;
  }

  body.step2-remake .step2-nav a {
    display: none !important;
  }

  body.step2-remake .step2-reupload-btn {
    display: inline-flex !important;
  }

  body.step2-remake .step2-flow-pill span {
    color: rgba(78, 78, 83, 0.66) !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.step2-remake .step2-workspace {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 286px) !important;
    width: min(1520px, calc(100vw - 44px)) !important;
    min-height: calc(100vh - 72px) !important;
    padding: 34px 0 16px !important;
  }

  body.step2-remake .step2-stage-shell {
    min-height: 0 !important;
    padding: 34px 74px 156px 132px !important;
    border-radius: 58px !important;
    background: rgba(255, 255, 255, 0.36) !important;
  }

  body.step2-remake #dropzone.dropzone {
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100vh - 300px) !important;
    aspect-ratio: 16 / 9.35 !important;
    border-radius: 48px !important;
    cursor: default;
  }

  body.step2-remake .dropzone-preview img {
    border-radius: 48px !important;
  }

  body.step2-remake .dropzone-hint {
    display: none !important;
  }

  body.step2-remake .stage-divider {
    display: block !important;
  }

  body.step2-remake .stage-line-ceiling {
    left: 8.4% !important;
    right: 8.4% !important;
    top: 7.8% !important;
    height: 35% !important;
    border-top: 2px solid rgba(255, 161, 118, 0.88);
    border-left: 2px solid rgba(255, 161, 118, 0.46);
    border-right: 2px solid rgba(255, 161, 118, 0.46);
    border-radius: 44px 44px 12px 12px;
    background: transparent !important;
  }

  body.step2-remake .stage-line-wall {
    inset: 20% 10.8% 27% 12.4% !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.step2-remake .stage-line-floor {
    left: 10% !important;
    right: 10% !important;
    bottom: 25% !important;
  }

  body.step2-remake .stage-tag-wall {
    right: auto !important;
    left: 18% !important;
    top: 45% !important;
  }

  body.step2-remake .step2-tray-shell {
    position: relative !important;
    z-index: 8 !important;
    display: block !important;
    width: min(1160px, calc(100% - 124px)) !important;
    margin: -118px 50px 0 74px !important;
    padding: 46px 80px 28px !important;
    border: 1px solid rgba(255, 255, 255, 0.84) !important;
    border-radius: 58px !important;
    background: rgba(255, 255, 255, 0.66) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.96),
      0 30px 80px rgba(70, 54, 39, 0.13) !important;
    backdrop-filter: blur(28px) saturate(1.16);
    -webkit-backdrop-filter: blur(28px) saturate(1.16);
  }

  body.step2-remake .step2-sample-tray,
  body.step2-remake[data-page="step2"] .step2-sample-tray {
    position: static !important;
    display: grid !important;
    grid-auto-flow: column !important;
    grid-auto-columns: 132px !important;
    gap: 18px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 2px 2px !important;
    overflow-x: auto !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  body.step2-remake .step2-sample-tray .tray-material.is-tray-hidden {
    display: none !important;
  }

  body.step2-remake[data-page="step2"] .step2-sample-tray .tray-material.material-option {
    min-height: 146px !important;
    padding: 10px 10px 13px !important;
    border-radius: 23px !important;
    transform: rotate(-3deg) !important;
  }

  body.step2-remake[data-page="step2"] .step2-sample-tray .tray-material.material-option:nth-child(2n) {
    transform: rotate(2deg) !important;
  }

  body.step2-remake[data-page="step2"] .step2-sample-tray .tray-material.material-option:hover,
  body.step2-remake[data-page="step2"] .step2-sample-tray .tray-material.material-option.selected {
    transform: translateY(-8px) rotate(-3deg) !important;
  }

  body.step2-remake[data-page="step2"] .step2-sample-tray .tray-material.material-option::before {
    min-height: 92px !important;
  }

  body.step2-remake[data-page="step2"]:not(.is-renovation-upload) .step2-sample-tray .tray-material.material-option.selected::after {
    top: 82px !important;
  }

  body.step2-remake #step2MaterialsPane.step2-materials-panel {
    width: clamp(254px, 18vw, 282px) !important;
    margin-left: -92px !important;
    padding: 22px !important;
    border-radius: 38px !important;
    background: rgba(255, 255, 255, 0.76) !important;
  }

  body.step2-remake .surface-selection-list,
  body.step2-remake #step2MaterialsPane > .material-tabs,
  body.step2-remake .materials-layout {
    display: none !important;
  }

  body.step2-remake .material-detail-list {
    display: grid !important;
  }

  body.step2-remake .step2-floating-next {
    display: inline-flex !important;
    gap: 22px !important;
    min-height: 58px !important;
    margin-top: 22px !important;
  }

  body.step2-remake .step2-action-row {
    width: min(280px, calc(100% - 240px)) !important;
    margin: -14px auto 0 !important;
  }

  body.step2-remake .step2-action-row .btn {
    display: none !important;
  }
}

@media (min-width: 1101px) and (max-height: 820px) {
  body.step2-remake .step2-workspace {
    padding-top: 18px !important;
  }

  body.step2-remake .step2-stage-shell {
    padding-top: 26px !important;
    padding-right: 42px !important;
    padding-bottom: 118px !important;
    padding-left: 112px !important;
  }

  body.step2-remake #dropzone.dropzone {
    aspect-ratio: 16 / 8.7 !important;
    max-height: calc(100vh - 318px) !important;
  }

  body.step2-remake .step2-tray-shell {
    width: min(1060px, calc(100% - 104px)) !important;
    margin: -88px 42px 0 62px !important;
    padding: 36px 66px 18px !important;
    border-radius: 52px !important;
  }

  body.step2-remake .step2-tray-tabs {
    top: -24px !important;
    min-height: 48px !important;
  }

  body.step2-remake .step2-tray-arrow {
    width: 42px !important;
    height: 42px !important;
  }

  body.step2-remake .step2-tray-arrow-prev {
    left: 20px !important;
  }

  body.step2-remake .step2-tray-arrow-next {
    right: 20px !important;
  }

  body.step2-remake .step2-sample-tray,
  body.step2-remake[data-page="step2"] .step2-sample-tray {
    grid-auto-columns: 116px !important;
    gap: 14px !important;
  }

  body.step2-remake[data-page="step2"] .step2-sample-tray .tray-material.material-option {
    min-height: 112px !important;
    padding: 8px 8px 10px !important;
    font-size: 12px !important;
  }

  body.step2-remake[data-page="step2"] .step2-sample-tray .tray-material.material-option::before {
    min-height: 64px !important;
  }

  body.step2-remake[data-page="step2"]:not(.is-renovation-upload) .step2-sample-tray .tray-material.material-option.selected::after {
    top: 54px !important;
    width: 22px !important;
    height: 22px !important;
  }

  body.step2-remake .step2-action-row,
  body.step2-remake .btnrow.step2-action-row {
    display: none !important;
  }
}

/* Surface rail fidelity pass: match the reference selector icons. */
body.step2-remake .step2-surface-rail {
  gap: 14px !important;
  width: 74px !important;
  padding: 16px 8px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.78) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 22px 58px rgba(70, 54, 39, 0.12) !important;
}

body.step2-remake .step2-surface-rail .material-tab {
  width: 58px !important;
  height: 84px !important;
  min-height: 84px !important;
  gap: 10px !important;
  border: 1px solid rgba(10, 132, 255, 0.12) !important;
  border-radius: 28px !important;
  color: rgba(76, 76, 82, 0.72) !important;
  background: rgba(255, 255, 255, 0.58) !important;
  box-shadow: 0 10px 24px rgba(70, 54, 39, 0.05) !important;
  font-size: 14px !important;
  font-weight: 850 !important;
}

body.step2-remake .step2-surface-rail .material-tab.is-active {
  color: var(--step2-blue) !important;
  border-color: rgba(10, 132, 255, 0.16) !important;
  background: linear-gradient(180deg, rgba(234, 244, 255, 0.98), rgba(223, 236, 255, 0.92)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 14px 28px rgba(10, 132, 255, 0.1) !important;
}

body.step2-remake .step2-surface-rail .material-tab .surface-rail-mark {
  position: relative !important;
  display: block !important;
  width: 28px !important;
  height: 22px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  transform: none !important;
}

body.step2-remake .step2-surface-rail .material-tab .surface-rail-mark::before,
body.step2-remake .step2-surface-rail .material-tab .surface-rail-mark::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

body.step2-remake .step2-surface-rail [data-material-tab="ceiling"] .surface-rail-mark::before {
  left: 1px;
  top: 3px;
  width: 26px;
  height: 16px;
  border: 3px solid var(--step2-blue);
  border-top-width: 2px;
  border-radius: 6px;
  transform: perspective(42px) rotateX(38deg);
}

body.step2-remake .step2-surface-rail [data-material-tab="floor"] .surface-rail-mark {
  color: #7ea982 !important;
}

body.step2-remake .step2-surface-rail [data-material-tab="floor"] .surface-rail-mark::before {
  left: 4px;
  top: 2px;
  width: 20px;
  height: 20px;
  border: 2px solid currentColor;
  border-radius: 2px;
  transform: rotate(45deg) scaleY(0.58);
}

body.step2-remake .step2-surface-rail [data-material-tab="floor"] .surface-rail-mark::after {
  left: 8px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  opacity: 0.78;
  transform: rotate(45deg) scaleY(0.58);
}

body.step2-remake .step2-surface-rail [data-material-tab="wall"] .surface-rail-mark {
  color: var(--step2-blue) !important;
}

body.step2-remake .step2-surface-rail [data-material-tab="wall"] .surface-rail-mark::before {
  left: 4px;
  top: 3px;
  width: 19px;
  height: 16px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  border-radius: 0 0 0 4px;
}

body.step2-remake .step2-surface-rail [data-material-tab="wall"] .surface-rail-mark::after {
  right: 3px;
  top: 4px;
  width: 2px;
  height: 15px;
  border-radius: 999px;
  background: currentColor;
  box-shadow:
    -6px 0 0 rgba(10, 132, 255, 0.18),
    -12px 0 0 rgba(10, 132, 255, 0.1);
}

body.step2-remake .step2-surface-rail [data-material-tab="floor"].is-active .surface-rail-mark,
body.step2-remake .step2-surface-rail [data-material-tab="wall"].is-active .surface-rail-mark {
  color: var(--step2-blue) !important;
}

body.step2-remake .step2-surface-rail .material-tab.is-done:not(.is-active) {
  color: rgba(76, 76, 82, 0.72) !important;
  border-color: rgba(59, 52, 45, 0.06) !important;
  background: rgba(255, 255, 255, 0.58) !important;
  box-shadow: 0 10px 24px rgba(70, 54, 39, 0.05) !important;
}

body.step2-remake .step2-surface-rail [data-material-tab="floor"].is-done:not(.is-active) .surface-rail-mark {
  color: #7ea982 !important;
}

body.step2-remake .step2-surface-rail [data-material-tab="wall"].is-done:not(.is-active) .surface-rail-mark {
  color: #8aaef4 !important;
}

/* Stage overlay cleanup: keep labels only. */
body.step2-remake .stage-line,
body.step2-remake .stage-divider,
body.step2-remake .stage-before-after {
  display: none !important;
}

/* Keep the room preview stable on hover. */
body.step2-remake .step2-stage-shell {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.step2-remake #dropzone.dropzone {
  background: url("step2-apple/rough-room-preview.png") center / cover no-repeat !important;
  border-color: transparent !important;
}

body.step2-remake #dropzone.dropzone:hover,
body.step2-remake #dropzone.dropzone.dragover {
  background: url("step2-apple/rough-room-preview.png") center / cover no-repeat !important;
  border-color: transparent !important;
  box-shadow:
    0 28px 84px rgba(70, 54, 39, 0.14) !important;
  transform: none !important;
}

/* Surface rail position/proportion pass. */
@media (min-width: 1101px) {
  body.step2-remake .step2-stage-shell {
    padding-left: clamp(184px, 12vw, 218px) !important;
  }

  body.step2-remake .step2-surface-rail {
    left: clamp(58px, 4.4vw, 82px) !important;
    top: 51% !important;
    width: 92px !important;
    min-height: clamp(500px, 56vh, 690px) !important;
    padding: 42px 10px !important;
    gap: clamp(40px, 4.6vh, 62px) !important;
    align-content: start !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.76) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.96),
      0 24px 64px rgba(70, 54, 39, 0.11) !important;
  }

  body.step2-remake .step2-surface-rail .material-tab {
    width: 72px !important;
    height: 112px !important;
    min-height: 112px !important;
    gap: 12px !important;
    border-radius: 32px !important;
    font-size: 15px !important;
  }

  body.step2-remake .step2-surface-rail .material-tab .surface-rail-mark {
    width: 31px !important;
    height: 25px !important;
  }

  body.step2-remake .step2-surface-rail [data-material-tab="ceiling"] .surface-rail-mark::before {
    left: 2px;
    top: 5px;
    width: 27px;
    height: 17px;
    border-width: 3px;
    border-top-width: 2px;
    border-radius: 6px;
  }

  body.step2-remake .step2-surface-rail [data-material-tab="floor"] .surface-rail-mark::before {
    left: 6px;
    top: 4px;
    width: 20px;
    height: 20px;
  }

  body.step2-remake .step2-surface-rail [data-material-tab="floor"] .surface-rail-mark::after {
    left: 10px;
    top: 8px;
    width: 12px;
    height: 12px;
  }

  body.step2-remake .step2-surface-rail [data-material-tab="wall"] .surface-rail-mark::before {
    left: 6px;
    top: 5px;
    width: 20px;
    height: 17px;
  }

  body.step2-remake .step2-surface-rail [data-material-tab="wall"] .surface-rail-mark::after {
    right: 4px;
    top: 6px;
    height: 16px;
  }
}

@media (min-width: 1101px) and (max-height: 820px) {
  body.step2-remake .step2-stage-shell {
    padding-left: 164px !important;
  }

  body.step2-remake .step2-surface-rail {
    left: 44px !important;
    width: 82px !important;
    min-height: 430px !important;
    padding: 30px 9px !important;
    gap: 28px !important;
  }

  body.step2-remake .step2-surface-rail .material-tab {
    width: 64px !important;
    height: 96px !important;
    min-height: 96px !important;
    gap: 10px !important;
    border-radius: 29px !important;
    font-size: 14px !important;
  }
}

/* Browser feedback pass: compact selector, higher inspector, straight material cards. */
@media (min-width: 1101px) {
  body.step2-remake .step2-surface-rail {
    top: 40.5% !important;
    width: 78px !important;
    min-height: clamp(350px, 44vh, 430px) !important;
    padding: 22px 9px !important;
    gap: clamp(16px, 2.1vh, 24px) !important;
  }

  body.step2-remake .step2-surface-rail .material-tab {
    width: 60px !important;
    height: 88px !important;
    min-height: 88px !important;
    gap: 10px !important;
    border-radius: 27px !important;
    font-size: 14px !important;
  }

  body.step2-remake .step2-surface-rail .material-tab .surface-rail-mark {
    width: 28px !important;
    height: 22px !important;
  }

  body.step2-remake .step2-surface-rail [data-material-tab="ceiling"] .surface-rail-mark::before {
    left: 1px;
    top: 3px;
    width: 26px;
    height: 16px;
    border-width: 3px;
    border-top-width: 2px;
    border-radius: 6px;
  }

  body.step2-remake .step2-surface-rail [data-material-tab="floor"] .surface-rail-mark::before {
    left: 4px;
    top: 2px;
    width: 20px;
    height: 20px;
  }

  body.step2-remake .step2-surface-rail [data-material-tab="floor"] .surface-rail-mark::after {
    left: 8px;
    top: 6px;
    width: 12px;
    height: 12px;
  }

  body.step2-remake .step2-surface-rail [data-material-tab="wall"] .surface-rail-mark::before {
    left: 4px;
    top: 3px;
    width: 19px;
    height: 16px;
  }

  body.step2-remake .step2-surface-rail [data-material-tab="wall"] .surface-rail-mark::after {
    right: 3px;
    top: 4px;
    height: 15px;
  }

  body.step2-remake #step2MaterialsPane.step2-materials-panel {
    margin-top: -36px !important;
  }

  body.step2-remake[data-page="step2"] .step2-sample-tray .tray-material.material-option,
  body.step2-remake[data-page="step2"] .step2-sample-tray .tray-material.material-option:nth-child(2n) {
    transform: none !important;
  }

  body.step2-remake[data-page="step2"] .step2-sample-tray .tray-material.material-option:hover,
  body.step2-remake[data-page="step2"] .step2-sample-tray .tray-material.material-option.selected {
    transform: translateY(-5px) !important;
  }
}

@media (min-width: 1101px) and (max-height: 820px) {
  body.step2-remake .step2-surface-rail {
    top: 40% !important;
    min-height: 336px !important;
    padding: 20px 9px !important;
    gap: 14px !important;
  }

  body.step2-remake .step2-surface-rail .material-tab {
    width: 58px !important;
    height: 82px !important;
    min-height: 82px !important;
  }

  body.step2-remake #step2MaterialsPane.step2-materials-panel {
    margin-top: -18px !important;
  }
}

/* Stage 13 structural rebuild: one coordinated Apple-style scene. */
body.step2-remake {
  --stage13-blue: #0a84ff;
  --stage13-ink: #1d1d1f;
  --stage13-muted: #77777d;
  --stage13-line: rgba(60, 55, 48, 0.08);
  --stage13-glass: rgba(255, 255, 255, 0.76);
  --stage13-soft-shadow: 0 28px 80px rgba(70, 54, 39, 0.12);
  background:
    radial-gradient(circle at 22% 18%, rgba(236, 246, 255, 0.72), transparent 28%),
    radial-gradient(circle at 78% 82%, rgba(245, 232, 213, 0.5), transparent 34%),
    linear-gradient(180deg, #fffefa 0%, #fbf7f0 100%) !important;
}

body.step2-remake .step2-page {
  min-height: 100vh !important;
  overflow-x: clip;
}

body.step2-remake .step2-header {
  min-height: 76px !important;
  padding: 14px clamp(28px, 3.7vw, 54px) !important;
  border-bottom: 1px solid rgba(68, 58, 48, 0.06) !important;
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(26px) saturate(1.12);
  -webkit-backdrop-filter: blur(26px) saturate(1.12);
}

body.step2-remake .step2-logo strong {
  color: var(--stage13-ink);
  font-size: 20px !important;
  letter-spacing: 0 !important;
}

body.step2-remake .step2-flow-pill {
  display: inline-flex !important;
  min-height: 48px !important;
  padding: 6px 12px !important;
  background: rgba(255, 255, 255, 0.82) !important;
  box-shadow: 0 16px 44px rgba(70, 54, 39, 0.09) !important;
}

body.step2-remake .step2-workspace {
  position: relative !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) clamp(252px, 20vw, 300px) !important;
  grid-template-areas:
    "upload materials"
    "actions actions" !important;
  align-items: start !important;
  gap: 0 !important;
  width: min(1440px, calc(100vw - 46px)) !important;
  min-height: calc(100vh - 76px) !important;
  margin: 0 auto !important;
  padding: clamp(36px, 5vh, 58px) 0 54px !important;
}

body.step2-remake .step2-upload-area {
  grid-area: upload !important;
  position: relative !important;
  min-width: 0 !important;
  align-self: start !important;
}

body.step2-remake .step2-hero-copy {
  display: none !important;
}

body.step2-remake .step2-stage-shell {
  position: relative !important;
  min-height: 0 !important;
  width: 100% !important;
  padding: clamp(24px, 3vw, 48px) clamp(54px, 6vw, 96px) clamp(128px, 15vh, 176px) clamp(150px, 13vw, 206px) !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.step2-remake #dropzone.dropzone {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: 16 / 9.25 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.84) !important;
  border-radius: clamp(34px, 4vw, 58px) !important;
  background: url("step2-apple/rough-room-preview.png") center / cover no-repeat !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 28px 84px rgba(70, 54, 39, 0.14) !important;
  transform: none !important;
  cursor: default !important;
}

body.step2-remake #dropzone.dropzone:hover,
body.step2-remake #dropzone.dropzone.dragover {
  border-color: rgba(255, 255, 255, 0.84) !important;
  background: url("step2-apple/rough-room-preview.png") center / cover no-repeat !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 28px 84px rgba(70, 54, 39, 0.14) !important;
  transform: none !important;
}

body.step2-remake .dropzone-hint,
body.step2-remake .dropzone-preview,
body.step2-remake .stage-line,
body.step2-remake .stage-divider,
body.step2-remake .stage-before-after {
  display: none !important;
}

body.step2-remake .stage-material-overlay {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
}

body.step2-remake .stage-tag {
  position: absolute !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 28px !important;
  padding: 0 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.74) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.72) !important;
  box-shadow: 0 12px 30px rgba(70, 54, 39, 0.12) !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
  transform: none !important;
}

body.step2-remake .stage-tag-ceiling {
  left: 49% !important;
  top: 24% !important;
  color: #a86843 !important;
  transform: translateX(-50%) !important;
}

body.step2-remake .stage-tag-wall {
  left: 18% !important;
  top: 46% !important;
  right: auto !important;
  color: #1f6fc5 !important;
}

body.step2-remake .stage-tag-floor {
  left: 50% !important;
  bottom: 20% !important;
  color: #3f7751 !important;
  transform: translateX(-50%) !important;
}

body.step2-remake .step2-surface-rail {
  position: absolute !important;
  z-index: 9 !important;
  left: clamp(34px, 4.1vw, 70px) !important;
  top: clamp(64px, 8.2vh, 96px) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 84px !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 24px 10px !important;
  gap: 22px !important;
  border: 1px solid rgba(255, 255, 255, 0.86) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.7) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 26px 70px rgba(70, 54, 39, 0.12) !important;
  backdrop-filter: blur(30px) saturate(1.18);
  -webkit-backdrop-filter: blur(30px) saturate(1.18);
  transform: none !important;
}

body.step2-remake .step2-surface-rail .material-tab {
  display: grid !important;
  place-items: center !important;
  width: 64px !important;
  height: 92px !important;
  min-height: 92px !important;
  padding: 0 !important;
  gap: 9px !important;
  border: 1px solid rgba(59, 52, 45, 0.06) !important;
  border-radius: 30px !important;
  color: rgba(74, 74, 80, 0.7) !important;
  background: rgba(248, 248, 248, 0.64) !important;
  box-shadow: 0 12px 26px rgba(70, 54, 39, 0.055) !important;
  font-size: 14px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  transform: none !important;
}

body.step2-remake .step2-surface-rail .material-tab:hover {
  background: rgba(248, 248, 248, 0.8) !important;
  transform: translateY(-1px) !important;
}

body.step2-remake .step2-surface-rail .material-tab.is-active {
  color: var(--stage13-blue) !important;
  border-color: rgba(10, 132, 255, 0.16) !important;
  background: linear-gradient(180deg, rgba(233, 244, 255, 0.98), rgba(221, 236, 255, 0.94)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 16px 32px rgba(10, 132, 255, 0.12) !important;
}

body.step2-remake .step2-surface-rail .material-tab .surface-rail-mark {
  width: 28px !important;
  height: 22px !important;
}

body.step2-remake .step2-tray-shell {
  position: relative !important;
  z-index: 10 !important;
  display: block !important;
  width: min(980px, calc(100% - clamp(120px, 13vw, 190px))) !important;
  margin: clamp(-124px, -12vh, -88px) clamp(34px, 4.8vw, 74px) 0 clamp(88px, 9vw, 140px) !important;
  padding: 44px 78px 30px !important;
  border: 1px solid rgba(255, 255, 255, 0.88) !important;
  border-radius: 58px !important;
  background: rgba(255, 255, 255, 0.68) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 30px 82px rgba(70, 54, 39, 0.13) !important;
  backdrop-filter: blur(30px) saturate(1.16);
  -webkit-backdrop-filter: blur(30px) saturate(1.16);
}

body.step2-remake .step2-tray-tabs {
  top: -30px !important;
  min-height: 54px !important;
  padding: 6px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.82) !important;
  box-shadow: 0 16px 42px rgba(70, 54, 39, 0.1) !important;
}

body.step2-remake .step2-tray-tabs button {
  min-width: 132px !important;
  min-height: 42px !important;
  border-radius: 999px !important;
  color: rgba(80, 78, 78, 0.58) !important;
  font-size: 13px !important;
  font-weight: 850 !important;
}

body.step2-remake .step2-tray-tabs button.is-active {
  color: var(--stage13-ink) !important;
  background: rgba(255, 255, 255, 0.86) !important;
}

body.step2-remake .step2-sample-tray,
body.step2-remake[data-page="step2"] .step2-sample-tray {
  display: grid !important;
  grid-auto-flow: column !important;
  grid-auto-columns: clamp(116px, 10vw, 140px) !important;
  gap: 18px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 2px 4px 4px !important;
  overflow-x: auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  scrollbar-width: none;
}

body.step2-remake .step2-sample-tray::-webkit-scrollbar {
  display: none;
}

body.step2-remake[data-page="step2"] .step2-sample-tray .tray-material.material-option {
  display: grid !important;
  grid-template-rows: 1fr auto !important;
  gap: 10px !important;
  min-height: 146px !important;
  padding: 10px 10px 13px !important;
  border: 1px solid rgba(60, 55, 48, 0.08) !important;
  border-radius: 24px !important;
  color: #3f3f44 !important;
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 14px 30px rgba(70, 54, 39, 0.08) !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  text-align: center !important;
  transform: none !important;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease !important;
}

body.step2-remake[data-page="step2"] .step2-sample-tray .tray-material.material-option:nth-child(2n) {
  transform: none !important;
}

body.step2-remake[data-page="step2"] .step2-sample-tray .tray-material.material-option.is-tray-hidden,
body.step2-remake[data-page="step2"] .step2-sample-tray .tray-material.material-option[hidden] {
  display: none !important;
}

body.step2-remake[data-page="step2"] .step2-sample-tray .tray-material.material-option::before {
  min-height: 88px !important;
  border-radius: 18px !important;
  background: var(--swatch-img) center / cover no-repeat !important;
}

body.step2-remake[data-page="step2"] .step2-sample-tray .tray-material.material-option:hover,
body.step2-remake[data-page="step2"] .step2-sample-tray .tray-material.material-option.selected {
  border-color: rgba(10, 132, 255, 0.72) !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 18px 38px rgba(10, 132, 255, 0.13), 0 14px 30px rgba(70, 54, 39, 0.08) !important;
  transform: translateY(-4px) !important;
}

body.step2-remake[data-page="step2"]:not(.is-renovation-upload) .step2-sample-tray .tray-material.material-option.selected::after {
  top: 78px !important;
  right: 16px !important;
  width: 24px !important;
  height: 24px !important;
  border: 3px solid #fff !important;
  box-shadow: 0 8px 18px rgba(10, 132, 255, 0.24) !important;
}

body.step2-remake .step2-tray-arrow {
  width: 52px !important;
  height: 52px !important;
  border: 1px solid rgba(255, 255, 255, 0.88) !important;
  background: rgba(255, 255, 255, 0.86) !important;
  box-shadow: 0 14px 30px rgba(70, 54, 39, 0.1) !important;
  color: var(--stage13-ink) !important;
  font-size: 34px !important;
  line-height: 1 !important;
}

body.step2-remake .step2-tray-arrow-prev {
  left: 26px !important;
}

body.step2-remake .step2-tray-arrow-next {
  right: 26px !important;
}

body.step2-remake #step2MaterialsPane.step2-materials-panel {
  grid-area: materials !important;
  align-self: start !important;
  position: relative !important;
  z-index: 12 !important;
  width: clamp(252px, 20vw, 300px) !important;
  max-height: none !important;
  margin: clamp(54px, 7vh, 82px) 0 0 clamp(-92px, -7vw, -54px) !important;
  padding: 24px !important;
  overflow: visible !important;
  border: 1px solid rgba(255, 255, 255, 0.88) !important;
  border-radius: 38px !important;
  background: rgba(255, 255, 255, 0.76) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 30px 84px rgba(70, 54, 39, 0.14) !important;
  backdrop-filter: blur(30px) saturate(1.18);
  -webkit-backdrop-filter: blur(30px) saturate(1.18);
}

body.step2-remake .step2-materials-head {
  margin-bottom: 16px !important;
}

body.step2-remake .step2-materials-head p {
  color: rgba(58, 57, 62, 0.72) !important;
  font-size: 13px !important;
  font-weight: 850 !important;
}

body.step2-remake .step2-materials-panel h2 {
  color: var(--stage13-ink) !important;
  font-size: 25px !important;
  line-height: 1.05 !important;
  letter-spacing: 0 !important;
}

body.step2-remake .materials-summary {
  min-height: 34px !important;
  padding: 0 13px !important;
  border-color: rgba(10, 132, 255, 0.18) !important;
  color: var(--stage13-blue) !important;
  background: rgba(233, 244, 255, 0.88) !important;
}

body.step2-remake .material-inspector-card {
  aspect-ratio: 1 / 0.74 !important;
  border-radius: 25px !important;
  box-shadow: 0 18px 40px rgba(70, 54, 39, 0.1) !important;
}

body.step2-remake .material-inspector-copy {
  margin-top: 16px !important;
  padding-bottom: 14px !important;
}

body.step2-remake .material-inspector-copy h3 {
  color: var(--stage13-ink) !important;
  font-size: 20px !important;
  line-height: 1.12 !important;
}

body.step2-remake .material-inspector-copy p,
body.step2-remake .material-detail-row {
  color: rgba(66, 64, 66, 0.7) !important;
  font-size: 13px !important;
}

body.step2-remake .material-detail-list {
  gap: 12px !important;
  padding-top: 15px !important;
  border-top: 1px solid rgba(60, 55, 48, 0.08) !important;
}

body.step2-remake .step2-floating-next {
  min-height: 60px !important;
  margin-top: 22px !important;
  border-radius: 20px !important;
  box-shadow: 0 16px 32px rgba(10, 132, 255, 0.24) !important;
}

body.step2-remake .step2-action-row {
  grid-area: actions !important;
  position: relative !important;
  z-index: 11 !important;
  width: min(420px, 38vw) !important;
  margin: -6px auto 0 !important;
}

body.step2-remake .step2-action-row .btn {
  display: none !important;
}

body.step2-remake .step2-selected-chip {
  min-height: 54px !important;
  padding: 0 28px !important;
  border: 1px solid rgba(255, 255, 255, 0.88) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.82) !important;
  box-shadow: 0 18px 46px rgba(70, 54, 39, 0.1) !important;
}

@media (min-width: 1101px) and (max-width: 1240px) {
  body.step2-remake .step2-flow-pill {
    display: none !important;
  }

  body.step2-remake .step2-workspace {
    grid-template-columns: minmax(0, 1fr) 260px !important;
    width: min(1130px, calc(100vw - 42px)) !important;
    padding-top: 46px !important;
  }

  body.step2-remake .step2-stage-shell {
    padding: 28px 72px 136px 166px !important;
  }

  body.step2-remake .step2-surface-rail {
    left: 58px !important;
    top: 72px !important;
    width: 82px !important;
    padding: 22px 9px !important;
    gap: 18px !important;
  }

  body.step2-remake .step2-surface-rail .material-tab {
    width: 62px !important;
    height: 88px !important;
    min-height: 88px !important;
  }

  body.step2-remake .step2-tray-shell {
    width: min(710px, calc(100% - 146px)) !important;
    margin: -96px 50px 0 84px !important;
    padding: 42px 74px 30px !important;
  }

  body.step2-remake #step2MaterialsPane.step2-materials-panel {
    width: 254px !important;
    margin: 54px 0 0 -92px !important;
    padding: 22px !important;
  }
}

@media (min-width: 1101px) and (max-height: 820px) {
  body.step2-remake .step2-workspace {
    padding-top: 28px !important;
  }

  body.step2-remake .step2-stage-shell {
    padding-top: 22px !important;
    padding-bottom: 116px !important;
  }

  body.step2-remake #dropzone.dropzone {
    aspect-ratio: 16 / 8.9 !important;
  }

  body.step2-remake .step2-surface-rail {
    top: 60px !important;
    padding: 18px 9px !important;
    gap: 14px !important;
  }

  body.step2-remake .step2-surface-rail .material-tab {
    height: 80px !important;
    min-height: 80px !important;
    border-radius: 27px !important;
  }

  body.step2-remake .step2-tray-shell {
    margin-top: -86px !important;
    padding-top: 38px !important;
    padding-bottom: 24px !important;
  }

  body.step2-remake[data-page="step2"] .step2-sample-tray .tray-material.material-option {
    min-height: 132px !important;
  }

  body.step2-remake[data-page="step2"] .step2-sample-tray .tray-material.material-option::before {
    min-height: 76px !important;
  }

  body.step2-remake[data-page="step2"]:not(.is-renovation-upload) .step2-sample-tray .tray-material.material-option.selected::after {
    top: 66px !important;
  }

  body.step2-remake #step2MaterialsPane.step2-materials-panel {
    margin-top: 34px !important;
  }
}

@media (max-width: 1100px) {
  body.step2-remake .step2-flow-pill {
    display: none !important;
  }

  body.step2-remake .step2-workspace {
    display: block !important;
    width: min(860px, calc(100vw - 28px)) !important;
    padding: 26px 0 44px !important;
  }

  body.step2-remake .step2-stage-shell {
    padding: 86px 16px 110px !important;
  }

  body.step2-remake .step2-surface-rail {
    left: 16px !important;
    right: 16px !important;
    top: 10px !important;
    width: auto !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    padding: 8px !important;
    gap: 8px !important;
    border-radius: 28px !important;
  }

  body.step2-remake .step2-surface-rail .material-tab {
    width: 100% !important;
    height: 56px !important;
    min-height: 56px !important;
    grid-template-columns: auto auto !important;
    border-radius: 20px !important;
  }

  body.step2-remake .step2-tray-shell {
    width: 100% !important;
    margin: -76px 0 18px !important;
    padding: 38px 62px 22px !important;
    border-radius: 38px !important;
  }

  body.step2-remake #step2MaterialsPane.step2-materials-panel {
    width: 100% !important;
    margin: 0 !important;
  }
}

/* Stage 15 ratio polish: closer to the selected reference composition. */
@media (min-width: 1101px) {
  body.step2-remake .step2-action-row {
    width: auto !important;
    min-height: 0 !important;
    margin: -4px auto 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  body.step2-remake .step2-selected-chip {
    width: auto !important;
    min-height: 52px !important;
    padding: 0 30px !important;
  }

  body.step2-remake #step2MaterialsPane.step2-materials-panel {
    padding: 21px !important;
  }

  body.step2-remake .step2-materials-head {
    margin-bottom: 14px !important;
  }

  body.step2-remake .material-inspector-copy {
    margin-top: 14px !important;
    padding-bottom: 12px !important;
  }

  body.step2-remake .material-detail-list {
    gap: 10px !important;
    padding-top: 13px !important;
  }

  body.step2-remake .step2-floating-next {
    min-height: 56px !important;
    margin-top: 18px !important;
  }
}

@media (min-width: 1101px) and (max-width: 1240px) {
  body.step2-remake .step2-stage-shell {
    padding: 22px 44px 122px 154px !important;
  }

  body.step2-remake .step2-surface-rail {
    top: 64px !important;
    width: 78px !important;
    padding: 20px 9px !important;
    gap: 14px !important;
  }

  body.step2-remake .step2-surface-rail .material-tab {
    width: 58px !important;
    height: 80px !important;
    min-height: 80px !important;
    border-radius: 27px !important;
    font-size: 13px !important;
  }

  body.step2-remake .step2-surface-rail .material-tab .surface-rail-mark {
    width: 26px !important;
    height: 20px !important;
  }

  body.step2-remake .step2-tray-shell {
    width: min(742px, calc(100% - 120px)) !important;
    margin: -126px 42px 0 74px !important;
    padding: 40px 74px 28px !important;
  }

  body.step2-remake #step2MaterialsPane.step2-materials-panel {
    margin: 50px 0 0 -70px !important;
  }
}

/* Stage 16 final annotation pass. */
@media (min-width: 1101px) {
  body.step2-remake .step2-action-row,
  body.step2-remake .btnrow.step2-action-row,
  body.step2-remake .step2-selected-chip {
    display: none !important;
  }

  body.step2-remake #step2MaterialsPane.step2-materials-panel {
    border-radius: 42px !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(248, 252, 255, 0.78)) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.98),
      -18px 24px 70px rgba(70, 54, 39, 0.08),
      0 34px 96px rgba(70, 54, 39, 0.15) !important;
  }

  body.step2-remake #step2MaterialsPane.step2-materials-panel::before {
    content: "";
    position: absolute;
    left: -30px;
    top: 34px;
    bottom: 34px;
    width: 34px;
    border-radius: 999px 0 0 999px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.58));
    filter: blur(1px);
    pointer-events: none;
  }
}

@media (min-width: 1101px) and (max-width: 1240px) {
  body.step2-remake .step2-workspace {
    grid-template-columns: minmax(0, 1fr) 270px !important;
  }

  body.step2-remake .step2-stage-shell {
    padding-right: 36px !important;
  }

  body.step2-remake #step2MaterialsPane.step2-materials-panel {
    width: 270px !important;
    margin: 50px 0 0 0 !important;
  }

  body.step2-remake .step2-tray-shell {
    width: min(742px, calc(100% - 116px)) !important;
    margin-right: 34px !important;
  }

  body.step2-remake .step2-sample-tray,
  body.step2-remake[data-page="step2"] .step2-sample-tray {
    grid-auto-columns: 132px !important;
    gap: 18px !important;
  }
}

/* Stage 18 final annotation pass: align side panel, relocate upload, rebuild tray cards. */
@media (min-width: 1101px) {
  body.step2-remake .step2-reupload-btn {
    position: fixed !important;
    z-index: 40 !important;
    left: clamp(74px, 7vw, 94px) !important;
    top: 132px !important;
    display: inline-flex !important;
    min-width: 112px !important;
    min-height: 42px !important;
    padding: 0 16px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.84) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.98),
      0 16px 38px rgba(70, 54, 39, 0.11) !important;
    backdrop-filter: blur(26px) saturate(1.14);
    -webkit-backdrop-filter: blur(26px) saturate(1.14);
  }

  body.step2-remake .step2-reupload-btn span:last-child {
    font-size: 13px !important;
    font-weight: 850 !important;
  }

  body.step2-remake #step2MaterialsPane.step2-materials-panel {
    margin-top: 22px !important;
  }

  body.step2-remake[data-page="step2"] .step2-sample-tray .tray-material.material-option {
    grid-template-rows: 88px auto !important;
    justify-items: center !important;
    align-items: center !important;
    min-height: 148px !important;
    padding: 12px 12px 14px !important;
    gap: 9px !important;
    border-color: rgba(60, 55, 48, 0.07) !important;
    border-radius: 26px !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 249, 246, 0.9)) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.98),
      0 14px 32px rgba(70, 54, 39, 0.08) !important;
    text-align: center !important;
  }

  body.step2-remake[data-page="step2"] .step2-sample-tray .tray-material.material-option::before {
    justify-self: center !important;
    align-self: center !important;
    width: 82px !important;
    min-height: 82px !important;
    height: 82px !important;
    border-radius: 22px !important;
    background-position: center !important;
    background-size: cover !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.48),
      0 8px 18px rgba(70, 54, 39, 0.06) !important;
  }

  body.step2-remake[data-page="step2"] .step2-sample-tray .tray-material.material-option::after {
    display: none !important;
  }

  body.step2-remake[data-page="step2"]:not(.is-renovation-upload) .step2-sample-tray .tray-material.material-option.selected::after,
  body.step2-remake[data-page="step2"]:not(.is-renovation-upload) .step2-sample-tray .tray-material.material-option:not(.selected)::after {
    content: "" !important;
    display: none !important;
  }

  body.step2-remake[data-page="step2"] .step2-sample-tray .tray-material.material-option:hover,
  body.step2-remake[data-page="step2"] .step2-sample-tray .tray-material.material-option.selected {
    border-color: rgba(10, 132, 255, 0.62) !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 247, 255, 0.9)) !important;
    box-shadow:
      inset 0 0 0 1px rgba(10, 132, 255, 0.16),
      inset 0 1px 0 rgba(255, 255, 255, 0.98),
      0 18px 40px rgba(10, 132, 255, 0.12),
      0 14px 32px rgba(70, 54, 39, 0.08) !important;
    transform: translateY(-4px) !important;
  }
}

@media (min-width: 1101px) and (max-width: 1240px) {
  body.step2-remake #step2MaterialsPane.step2-materials-panel {
    margin: 22px 0 0 0 !important;
  }
}

/* Stage 20: move reupload below the surface rail. */
@media (min-width: 1101px) {
  body.step2-remake .step2-reupload-btn {
    left: clamp(54px, calc(4.1vw + 14px), 78px) !important;
    top: clamp(508px, 61vh, 548px) !important;
  }
}

/* Stage 21: push reupload fully below the rail. */
@media (min-width: 1101px) {
  body.step2-remake .step2-reupload-btn {
    left: clamp(54px, calc(4.1vw + 14px), 78px) !important;
    top: clamp(606px, 72vh, 690px) !important;
  }
}

/* Stage 22: selected sequential Apple-style material picker. */
body.step2-remake {
  --seq-bg: #fbf8f2;
  --seq-surface: rgba(255, 255, 255, 0.84);
  --seq-surface-strong: rgba(255, 255, 255, 0.96);
  --seq-ink: #1d1d1f;
  --seq-muted: #77716a;
  --seq-soft: #a49b91;
  --seq-line: rgba(62, 49, 36, 0.1);
  --seq-blue: #007aff;
  --seq-warm: #f3eadf;
  min-height: 100vh !important;
  color: var(--seq-ink) !important;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.92) 0 16%, rgba(255, 255, 255, 0) 42%),
    linear-gradient(180deg, #fffdf9 0%, var(--seq-bg) 46%, #fffaf4 100%) !important;
}

body.step2-remake .step2-page {
  min-height: 100vh !important;
  background: transparent !important;
}

body.step2-remake .step2-sequential-header {
  position: relative !important;
  z-index: 20 !important;
  display: grid !important;
  grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr) !important;
  align-items: center !important;
  width: min(1280px, calc(100% - 64px)) !important;
  min-height: 88px !important;
  margin: 0 auto !important;
  padding: 12px 0 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.step2-remake .step2-logo {
  display: inline-flex !important;
  justify-self: start !important;
  gap: 10px !important;
  color: var(--seq-ink) !important;
  text-decoration: none !important;
}

body.step2-remake .step2-logo strong {
  font-size: 17px !important;
  font-weight: 780 !important;
  letter-spacing: 0 !important;
}

body.step2-remake .step2-logo-mark {
  width: 34px !important;
  height: 34px !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 28px rgba(0, 122, 255, 0.16) !important;
}

body.step2-remake .step2-header-title {
  justify-self: center !important;
  color: var(--seq-ink) !important;
  font-size: 18px !important;
  font-weight: 780 !important;
  letter-spacing: 0 !important;
}

body.step2-remake .step2-step-count {
  justify-self: end !important;
  min-width: 124px !important;
  padding: 10px 16px !important;
  border: 1px solid var(--seq-line) !important;
  border-radius: 999px !important;
  color: #5f5851 !important;
  background: rgba(255, 255, 255, 0.72) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 14px 34px rgba(72, 58, 42, 0.06) !important;
  font-size: 14px !important;
  font-weight: 720 !important;
  text-align: center !important;
}

body.step2-remake .step2-nav {
  position: absolute !important;
  right: 148px !important;
  top: 24px !important;
  display: flex !important;
  width: auto !important;
}

body.step2-remake .step2-reupload-btn {
  position: static !important;
  display: inline-flex !important;
  min-height: 42px !important;
  padding: 0 16px !important;
  border: 1px solid rgba(62, 49, 36, 0.1) !important;
  border-radius: 999px !important;
  color: #393530 !important;
  background: rgba(255, 255, 255, 0.74) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 14px 32px rgba(72, 58, 42, 0.07) !important;
  font-size: 13px !important;
  font-weight: 760 !important;
}

body.step2-remake .step2-sequential-workspace {
  position: relative !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.48fr) minmax(360px, 0.72fr) !important;
  gap: 28px !important;
  align-items: start !important;
  width: min(1280px, calc(100% - 64px)) !important;
  min-height: calc(100vh - 88px) !important;
  margin: 0 auto !important;
  padding: 22px 0 30px !important;
}

body.step2-remake .step2-preview-panel {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 38px !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.step2-remake .step2-stage-shell {
  position: relative !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 38px !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.step2-remake #dropzone.dropzone {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  min-height: 610px !important;
  aspect-ratio: 1.28 / 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(72, 58, 42, 0.08) !important;
  border-radius: 38px !important;
  background: #efe6dc !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 36px 90px rgba(72, 58, 42, 0.14) !important;
  cursor: pointer !important;
}

body.step2-remake #dropzone.dropzone::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(79, 56, 34, 0.04) 72%, rgba(49, 33, 20, 0.16)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0)) !important;
}

body.step2-remake .step2-room-placeholder,
body.step2-remake #dropzonePreview img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

body.step2-remake #dropzone.has-upload .step2-room-placeholder {
  opacity: 0 !important;
}

body.step2-remake .dropzone-preview {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
}

body.step2-remake .dropzone-hint {
  position: absolute !important;
  z-index: 5 !important;
  left: 24px !important;
  top: 24px !important;
  right: auto !important;
  bottom: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: row !important;
  gap: 8px !important;
  width: auto !important;
  height: 42px !important;
  max-width: calc(100% - 48px) !important;
  min-height: 42px !important;
  padding: 0 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.54) !important;
  border-radius: 999px !important;
  color: #403a34 !important;
  background: rgba(255, 255, 255, 0.72) !important;
  box-shadow: 0 14px 34px rgba(72, 58, 42, 0.1) !important;
  backdrop-filter: blur(22px) saturate(1.2) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.2) !important;
  font-size: 13px !important;
  font-weight: 760 !important;
}

body.step2-remake .step2-upload-icon {
  width: 17px !important;
  height: 17px !important;
}

body.step2-remake .stage-material-overlay {
  position: absolute !important;
  z-index: 6 !important;
  left: 24px !important;
  right: auto !important;
  bottom: 24px !important;
  top: auto !important;
  display: flex !important;
  pointer-events: none !important;
}

body.step2-remake .stage-tag {
  position: static !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  height: auto !important;
  min-height: 40px !important;
  padding: 0 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.54) !important;
  border-radius: 999px !important;
  color: #433b33 !important;
  background: rgba(255, 255, 255, 0.74) !important;
  box-shadow: 0 14px 34px rgba(72, 58, 42, 0.1) !important;
  backdrop-filter: blur(22px) saturate(1.2) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.2) !important;
  font-size: 13px !important;
  font-weight: 780 !important;
  white-space: nowrap !important;
  transform: none !important;
}

body.step2-remake #step2MaterialsPane.step2-materials-panel {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 24px !important;
  overflow: hidden !important;
  border: 1px solid rgba(72, 58, 42, 0.08) !important;
  border-radius: 34px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 251, 246, 0.84)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 28px 72px rgba(72, 58, 42, 0.11) !important;
  backdrop-filter: blur(30px) saturate(1.18) !important;
  -webkit-backdrop-filter: blur(30px) saturate(1.18) !important;
}

body.step2-remake #step2MaterialsPane.step2-materials-panel::before {
  display: none !important;
}

body.step2-remake .step2-materials-head {
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  gap: 16px !important;
  align-items: start !important;
  margin: 0 0 18px !important;
  padding: 0 !important;
}

body.step2-remake .step2-materials-head p {
  margin: 0 0 8px !important;
  color: var(--seq-soft) !important;
  font-size: 13px !important;
  font-weight: 760 !important;
}

body.step2-remake .step2-materials-head h2 {
  margin: 0 !important;
  color: var(--seq-ink) !important;
  font-size: 28px !important;
  line-height: 1.08 !important;
  font-weight: 820 !important;
  letter-spacing: 0 !important;
}

body.step2-remake .step2-step-helper {
  display: block !important;
  margin-top: 9px !important;
  color: var(--seq-muted) !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  font-weight: 520 !important;
}

body.step2-remake .materials-summary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 90px !important;
  min-height: 38px !important;
  padding: 0 12px !important;
  border: 1px solid rgba(62, 49, 36, 0.08) !important;
  border-radius: 999px !important;
  color: #5f5851 !important;
  background: rgba(255, 255, 255, 0.76) !important;
  font-size: 13px !important;
  font-weight: 760 !important;
}

body.step2-remake .surface-selection-list {
  display: grid !important;
  gap: 10px !important;
  margin: 0 0 18px !important;
}

body.step2-remake .surface-selection-row {
  display: grid !important;
  grid-template-columns: 42px 1fr auto !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  min-height: 64px !important;
  padding: 10px 14px 10px 10px !important;
  border: 1px solid rgba(62, 49, 36, 0.08) !important;
  border-radius: 22px !important;
  color: var(--seq-ink) !important;
  background: rgba(255, 255, 255, 0.58) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78) !important;
  cursor: pointer !important;
  text-align: left !important;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease !important;
}

body.step2-remake .surface-selection-row:hover {
  transform: translateY(-1px) !important;
}

body.step2-remake .surface-selection-row.is-active {
  border-color: rgba(0, 122, 255, 0.34) !important;
  background: rgba(245, 250, 255, 0.9) !important;
  box-shadow: inset 0 0 0 1px rgba(0, 122, 255, 0.08), 0 14px 34px rgba(0, 122, 255, 0.1) !important;
}

body.step2-remake .surface-selection-row.is-locked {
  color: #aaa29a !important;
  background: rgba(255, 255, 255, 0.38) !important;
  cursor: default !important;
  transform: none !important;
}

body.step2-remake .surface-selection-swatch {
  width: 42px !important;
  height: 42px !important;
  border-radius: 15px !important;
  background-color: #efe8df !important;
  background-size: cover !important;
  background-position: center !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 8px 18px rgba(72, 58, 42, 0.08) !important;
}

body.step2-remake .surface-selection-row > span:not(.surface-selection-swatch) {
  font-size: 15px !important;
  font-weight: 780 !important;
}

body.step2-remake .surface-selection-row strong {
  color: #867d74 !important;
  font-size: 13px !important;
  font-weight: 720 !important;
}

body.step2-remake .materials-layout {
  display: block !important;
}

body.step2-remake .material-panel {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.step2-remake .material-panel.is-active {
  display: block !important;
}

body.step2-remake .material-panel-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin: 0 0 10px !important;
}

body.step2-remake .material-panel-head h3 {
  margin: 0 !important;
  color: #5f5851 !important;
  font-size: 14px !important;
  font-weight: 780 !important;
}

body.step2-remake .material-picked {
  color: var(--seq-soft) !important;
  font-size: 13px !important;
  font-weight: 720 !important;
}

body.step2-remake .material-picked.is-done {
  color: var(--seq-blue) !important;
}

body.step2-remake .material-options {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
}

body.step2-remake .material-option {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 70px minmax(0, 1fr) 24px !important;
  align-items: center !important;
  gap: 14px !important;
  width: 100% !important;
  min-height: 86px !important;
  padding: 10px 14px 10px 10px !important;
  border: 1px solid rgba(62, 49, 36, 0.08) !important;
  border-radius: 24px !important;
  color: var(--seq-ink) !important;
  background: rgba(255, 255, 255, 0.68) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 12px 30px rgba(72, 58, 42, 0.05) !important;
  cursor: pointer !important;
  text-align: left !important;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease !important;
}

body.step2-remake .material-option::before,
body.step2-remake .material-option::after {
  display: none !important;
  content: none !important;
}

body.step2-remake .material-option:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(0, 122, 255, 0.26) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 18px 38px rgba(72, 58, 42, 0.08) !important;
}

body.step2-remake .material-option.selected {
  border-color: rgba(0, 122, 255, 0.46) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 248, 255, 0.88)) !important;
  box-shadow: inset 0 0 0 1px rgba(0, 122, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 18px 42px rgba(0, 122, 255, 0.12) !important;
}

body.step2-remake .material-option-thumb {
  display: block !important;
  width: 70px !important;
  height: 66px !important;
  border-radius: 20px !important;
  background-color: #eee6dd !important;
  background-image: var(--material-img) !important;
  background-size: cover !important;
  background-position: center !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 9px 20px rgba(72, 58, 42, 0.08) !important;
}

body.step2-remake .material-option span:not(.material-option-thumb) {
  display: grid !important;
  gap: 6px !important;
  min-width: 0 !important;
}

body.step2-remake .material-option strong {
  color: var(--seq-ink) !important;
  font-size: 16px !important;
  line-height: 1.18 !important;
  font-weight: 820 !important;
  letter-spacing: 0 !important;
}

body.step2-remake .material-option small {
  color: var(--seq-muted) !important;
  font-size: 13px !important;
  line-height: 1.32 !important;
  font-weight: 520 !important;
}

body.step2-remake .material-option i {
  display: grid !important;
  place-items: center !important;
  width: 22px !important;
  min-width: 22px !important;
  height: 22px !important;
  border: 1.5px solid rgba(86, 78, 69, 0.22) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.82) !important;
}

body.step2-remake .material-option.selected i {
  border-color: var(--seq-blue) !important;
  background: var(--seq-blue) !important;
  box-shadow: 0 8px 16px rgba(0, 122, 255, 0.22) !important;
}

body.step2-remake .material-option.selected i::before {
  content: "" !important;
  width: 8px !important;
  height: 5px !important;
  border-left: 2px solid #fff !important;
  border-bottom: 2px solid #fff !important;
  transform: translateY(-1px) rotate(-45deg) !important;
}

body.step2-remake [data-category="ceiling"][data-material="gypsum"] { --material-img: url("step2-sequential/mat-gypsum-board.png?v=20260703sequential1"); }
body.step2-remake [data-category="ceiling"][data-material="none"] { --material-img: url("step2-sequential/mat-no-ceiling.png?v=20260703sequential1"); }
body.step2-remake [data-category="ceiling"][data-material="wood"] { --material-img: url("step2-sequential/mat-ceiling-wood.png?v=20260703sequential1"); }
body.step2-remake [data-category="ceiling"][data-material="integrated"] { --material-img: url("step2-sequential/mat-integrated-ceiling.png?v=20260703sequential1"); }
body.step2-remake [data-category="wall"][data-material="paint"] { --material-img: url("step2-sequential/mat-art-paint.png?v=20260703sequential1"); }
body.step2-remake [data-category="wall"][data-material="wallpaper"] { --material-img: url("step2-sequential/mat-wallpaper-linen.png?v=20260703sequential1"); }
body.step2-remake [data-category="wall"][data-material="wood-panel"] { --material-img: url("step2-sequential/mat-wood-panel.png?v=20260703sequential1"); }
body.step2-remake [data-category="wall"][data-material="brick"] { --material-img: url("step2-sequential/mat-brick.png?v=20260703sequential1"); }
body.step2-remake [data-category="floor"][data-material="wood"] { --material-img: url("step2-sequential/mat-oak-floor.png?v=20260703sequential1"); }
body.step2-remake [data-category="floor"][data-material="tile"] { --material-img: url("step2-sequential/mat-ceramic-tile.png?v=20260703sequential1"); }
body.step2-remake [data-category="floor"][data-material="marble"] { --material-img: url("step2-sequential/mat-marble.png?v=20260703sequential1"); }
body.step2-remake [data-category="floor"][data-material="concrete"] { --material-img: url("step2-sequential/mat-microcement.png?v=20260703sequential1"); }

body.step2-remake .material-note-input {
  display: none !important;
}

body.step2-remake .step2-locked-hints {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin: 16px 0 0 !important;
}

body.step2-remake .step2-locked-hints span {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 34px !important;
  padding: 0 12px !important;
  border: 1px solid rgba(62, 49, 36, 0.08) !important;
  border-radius: 999px !important;
  color: #867d74 !important;
  background: rgba(255, 255, 255, 0.58) !important;
  font-size: 13px !important;
  font-weight: 680 !important;
}

body.step2-remake .step2-action-row,
body.step2-remake .btnrow.step2-action-row {
  position: sticky !important;
  z-index: 30 !important;
  bottom: 22px !important;
  grid-column: 1 / -1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 12px !important;
  width: min(660px, 100%) !important;
  min-height: 72px !important;
  margin: 2px 0 0 auto !important;
  padding: 10px !important;
  border: 1px solid rgba(72, 58, 42, 0.08) !important;
  border-radius: 28px !important;
  background: rgba(255, 255, 255, 0.82) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 26px 70px rgba(72, 58, 42, 0.13) !important;
  backdrop-filter: blur(30px) saturate(1.18) !important;
  -webkit-backdrop-filter: blur(30px) saturate(1.18) !important;
}

body.step2-remake .step2-change-image-btn {
  display: none !important;
}

body.step2-remake .step2-selected-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  min-height: 48px !important;
  margin-right: auto !important;
  padding: 0 16px !important;
  border: 1px solid rgba(62, 49, 36, 0.08) !important;
  border-radius: 999px !important;
  color: #5f5851 !important;
  background: rgba(255, 255, 255, 0.7) !important;
  font-size: 13px !important;
  font-weight: 760 !important;
}

body.step2-remake .step2-selected-chip i {
  width: 18px !important;
  height: 18px !important;
  border: 1px solid rgba(62, 49, 36, 0.1) !important;
  border-radius: 999px !important;
  background: rgba(239, 232, 224, 0.7) !important;
  background-size: cover !important;
  background-position: center !important;
}

body.step2-remake .step2-selected-chip i.is-filled {
  border-color: rgba(255, 255, 255, 0.72) !important;
  box-shadow: 0 6px 14px rgba(72, 58, 42, 0.1) !important;
}

body.step2-remake .btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 52px !important;
  padding: 0 22px !important;
  border-radius: 18px !important;
  font-size: 15px !important;
  font-weight: 780 !important;
  letter-spacing: 0 !important;
}

body.step2-remake #changeImageBtn[hidden],
body.step2-remake .step2-change-image-btn[hidden] {
  display: none !important;
}

body.step2-remake .btn-secondary {
  border: 1px solid rgba(62, 49, 36, 0.1) !important;
  color: #393530 !important;
  background: rgba(255, 255, 255, 0.78) !important;
  box-shadow: none !important;
}

body.step2-remake .step2-generate-btn,
body.step2-remake .btn-primary.step2-generate-btn {
  min-width: 146px !important;
  border: 0 !important;
  color: #fff !important;
  background: linear-gradient(180deg, #4aa3ff, var(--seq-blue)) !important;
  box-shadow: 0 16px 34px rgba(0, 122, 255, 0.22) !important;
}

body.step2-remake .step2-generate-btn:disabled {
  color: rgba(92, 84, 76, 0.45) !important;
  background: #eee8df !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
}

body.step2-remake .step2-tray-shell,
body.step2-remake .step2-surface-rail,
body.step2-remake .material-inspector,
body.step2-remake .material-inspector-copy,
body.step2-remake .material-detail-list,
body.step2-remake .step2-floating-next {
  display: none !important;
}

@media (max-width: 1120px) {
  body.step2-remake .step2-sequential-header,
  body.step2-remake .step2-sequential-workspace {
    width: min(100% - 36px, 860px) !important;
  }

  body.step2-remake .step2-sequential-header {
    grid-template-columns: 1fr auto !important;
    gap: 12px !important;
  }

  body.step2-remake .step2-header-title {
    display: none !important;
  }

  body.step2-remake .step2-nav {
    display: none !important;
  }

  body.step2-remake .step2-sequential-workspace {
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
  }

  body.step2-remake #dropzone.dropzone {
    min-height: 430px !important;
  }

  body.step2-remake .step2-action-row,
  body.step2-remake .btnrow.step2-action-row {
    width: 100% !important;
    margin-top: 0 !important;
  }
}

@media (max-width: 640px) {
  body.step2-remake .step2-sequential-header,
  body.step2-remake .step2-sequential-workspace {
    width: calc(100% - 24px) !important;
  }

  body.step2-remake .step2-sequential-header {
    min-height: 74px !important;
    padding-top: 6px !important;
  }

  body.step2-remake .step2-step-count {
    min-width: 104px !important;
    padding: 8px 11px !important;
    font-size: 12px !important;
  }

  body.step2-remake .step2-sequential-workspace {
    gap: 14px !important;
    padding-top: 8px !important;
  }

  body.step2-remake #dropzone.dropzone {
    min-height: 320px !important;
    border-radius: 28px !important;
  }

  body.step2-remake #step2MaterialsPane.step2-materials-panel {
    padding: 18px !important;
    border-radius: 28px !important;
  }

  body.step2-remake .step2-materials-head {
    grid-template-columns: 1fr !important;
  }

  body.step2-remake .materials-summary {
    justify-self: start !important;
  }

  body.step2-remake .step2-materials-head h2 {
    font-size: 24px !important;
  }

  body.step2-remake .material-option {
    grid-template-columns: 60px minmax(0, 1fr) 22px !important;
    min-height: 78px !important;
  }

  body.step2-remake .material-option-thumb {
    width: 60px !important;
    height: 58px !important;
    border-radius: 18px !important;
  }

  body.step2-remake .material-option strong {
    font-size: 15px !important;
  }

  body.step2-remake .material-option small {
    font-size: 12px !important;
  }

  body.step2-remake .step2-action-row,
  body.step2-remake .btnrow.step2-action-row {
    bottom: 12px !important;
    flex-wrap: wrap !important;
    justify-content: stretch !important;
    border-radius: 24px !important;
  }

  body.step2-remake .step2-selected-chip {
    flex: 1 0 100% !important;
    justify-content: center !important;
    margin-right: 0 !important;
  }

  body.step2-remake .btn {
    flex: 1 1 0 !important;
    min-width: 0 !important;
  }
}

/* Stage 24: closer to the selected reference render. */
@media (min-width: 1121px) {
  html,
  body.step2-remake {
    min-height: 100% !important;
    background: #f8f5ef !important;
  }

  body.step2-remake {
    padding: 14px !important;
    overflow: hidden !important;
  }

  body.step2-remake .step2-page {
    position: relative !important;
    height: calc(100vh - 28px) !important;
    min-height: calc(100vh - 28px) !important;
    overflow: hidden !important;
    border: 1px solid rgba(31, 28, 24, 0.08) !important;
    border-radius: 18px !important;
    background: #fffefd !important;
    box-shadow: 0 22px 80px rgba(50, 38, 24, 0.08) !important;
  }

  body.step2-remake .step2-sequential-header {
    display: grid !important;
    grid-template-columns: auto 1px minmax(0, 1fr) auto !important;
    width: 100% !important;
    min-height: 84px !important;
    margin: 0 !important;
    padding: 0 40px !important;
    border-bottom: 1px solid rgba(31, 28, 24, 0.09) !important;
    background: rgba(255, 255, 255, 0.92) !important;
    box-shadow: none !important;
  }

  body.step2-remake .step2-logo {
    gap: 12px !important;
    align-self: center !important;
    justify-self: start !important;
    min-width: 186px !important;
  }

  body.step2-remake .step2-logo::after {
    content: "" !important;
    position: absolute !important;
    left: 244px !important;
    top: 28px !important;
    width: 1px !important;
    height: 30px !important;
    background: rgba(31, 28, 24, 0.14) !important;
  }

  body.step2-remake .step2-logo-mark {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: #111111 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: 0 !important;
  }

  body.step2-remake .step2-logo-mark > span {
    display: none !important;
  }

  body.step2-remake .step2-logo-mark i {
    display: inline-flex !important;
    color: #111111 !important;
    font-size: 28px !important;
    line-height: 1 !important;
  }

  body.step2-remake .step2-logo strong {
    color: #111111 !important;
    font-size: 25px !important;
    font-weight: 820 !important;
  }

  body.step2-remake .step2-header-title {
    grid-column: 3 !important;
    justify-self: start !important;
    align-self: center !important;
    margin-left: 56px !important;
    color: #111111 !important;
    font-size: 25px !important;
    font-weight: 820 !important;
    white-space: nowrap !important;
  }

  body.step2-remake .step2-step-count {
    grid-column: 4 !important;
    min-width: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: #2b2b2f !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 16px !important;
    font-weight: 520 !important;
  }

  body.step2-remake .step2-nav {
    display: none !important;
  }

  body.step2-remake .step2-sequential-workspace {
    position: static !important;
    display: grid !important;
    grid-template-columns: minmax(720px, 842px) minmax(420px, 1fr) !important;
    gap: 48px !important;
    align-items: start !important;
    width: 100% !important;
    min-height: calc(100vh - 112px) !important;
    margin: 0 !important;
    padding: 40px 34px 126px 34px !important;
  }

  body.step2-remake .step2-preview-panel,
  body.step2-remake .step2-stage-shell {
    width: 100% !important;
    height: auto !important;
    border-radius: 30px !important;
  }

  body.step2-remake #dropzone.dropzone {
    width: 100% !important;
    min-height: min(725px, calc(100vh - 256px)) !important;
    aspect-ratio: 1.1 / 1 !important;
    border: 1px solid rgba(46, 39, 31, 0.09) !important;
    border-radius: 30px !important;
    box-shadow: 0 18px 44px rgba(64, 49, 35, 0.08) !important;
  }

  body.step2-remake #dropzone.dropzone::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(54, 35, 18, 0.05)) !important;
  }

  body.step2-remake[data-page="step2"] #dropzone > .dropzone-hint {
    display: none !important;
  }

  body.step2-remake .stage-material-overlay {
    left: 22px !important;
    top: 22px !important;
    bottom: auto !important;
  }

  body.step2-remake .stage-tag {
    min-height: 48px !important;
    padding: 0 24px !important;
    border-color: rgba(255, 255, 255, 0.66) !important;
    border-radius: 999px !important;
    color: #2b251f !important;
    background: rgba(255, 255, 255, 0.82) !important;
    box-shadow: 0 12px 30px rgba(49, 38, 26, 0.08) !important;
    font-size: 18px !important;
    font-weight: 620 !important;
  }

  body.step2-remake .stage-tag::before {
    content: "" !important;
    width: 9px !important;
    height: 9px !important;
    margin-right: 10px !important;
    border-radius: 999px !important;
    background: #a76c14 !important;
  }

  body.step2-remake #step2MaterialsPane.step2-materials-panel {
    align-self: start !important;
    width: min(100%, 488px) !important;
    min-height: 0 !important;
    margin: 20px 0 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  body.step2-remake .step2-materials-head {
    display: block !important;
    margin: 0 0 32px !important;
  }

  body.step2-remake .step2-materials-head p,
  body.step2-remake .materials-summary,
  body.step2-remake .surface-selection-list,
  body.step2-remake .material-panel-head {
    display: none !important;
  }

  body.step2-remake .step2-materials-head h2 {
    margin: 0 0 14px !important;
    color: #111111 !important;
    font-size: 38px !important;
    line-height: 1.08 !important;
    font-weight: 860 !important;
  }

  body.step2-remake .step2-step-helper {
    margin: 0 !important;
    color: #767676 !important;
    font-size: 20px !important;
    line-height: 1.36 !important;
    font-weight: 420 !important;
  }

  body.step2-remake .material-options {
    gap: 16px !important;
  }

  body.step2-remake .material-option {
    display: grid !important;
    grid-template-columns: 88px minmax(0, 1fr) 28px !important;
    gap: 28px !important;
    min-height: 112px !important;
    padding: 14px 24px 14px 14px !important;
    border: 1px solid rgba(40, 32, 24, 0.12) !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, 0.82) !important;
    box-shadow: none !important;
  }

  body.step2-remake .material-option:hover {
    transform: translateY(-1px) !important;
    border-color: rgba(0, 122, 255, 0.32) !important;
    box-shadow: 0 12px 30px rgba(40, 32, 24, 0.06) !important;
  }

  body.step2-remake .material-option.selected {
    border-color: rgba(0, 122, 255, 0.48) !important;
    background: rgba(247, 251, 255, 0.92) !important;
    box-shadow: inset 0 0 0 1px rgba(0, 122, 255, 0.1) !important;
  }

  body.step2-remake .material-option-thumb {
    width: 88px !important;
    height: 88px !important;
    border-radius: 12px !important;
    box-shadow: none !important;
  }

  body.step2-remake .material-option strong {
    font-size: 20px !important;
    line-height: 1.2 !important;
    font-weight: 720 !important;
  }

  body.step2-remake .material-option small {
    margin-top: 3px !important;
    color: #777777 !important;
    font-size: 16px !important;
    line-height: 1.32 !important;
    font-weight: 430 !important;
  }

  body.step2-remake .material-option i {
    width: 24px !important;
    min-width: 24px !important;
    height: 24px !important;
    border: 2px solid #4d5358 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.step2-remake .material-option.selected i {
    border-color: var(--seq-blue) !important;
    background: var(--seq-blue) !important;
  }

  body.step2-remake .step2-locked-hints {
    display: grid !important;
    gap: 22px !important;
    margin: 28px 0 0 !important;
  }

  body.step2-remake .step2-locked-hints span {
    display: inline-flex !important;
    align-items: center !important;
    gap: 18px !important;
    min-height: 24px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: #818181 !important;
    background: transparent !important;
    font-size: 18px !important;
    font-weight: 430 !important;
  }

  body.step2-remake .step2-locked-hints i {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    border-radius: 999px !important;
    color: #2e3033 !important;
    background: rgba(240, 240, 240, 0.9) !important;
    font-size: 16px !important;
  }

  body.step2-remake .step2-locked-hints b {
    font-weight: 430 !important;
  }

  body.step2-remake .step2-action-row,
  body.step2-remake .btnrow.step2-action-row {
    position: absolute !important;
    left: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
    grid-column: 1 / -1 !important;
    display: grid !important;
    grid-template-columns: minmax(360px, 1fr) 180px 260px !important;
    align-items: center !important;
    gap: 20px !important;
    width: auto !important;
    min-height: 96px !important;
    margin: 0 !important;
    padding: 20px 38px !important;
    border: 1px solid rgba(40, 32, 24, 0.08) !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 -12px 38px rgba(49, 38, 26, 0.04) !important;
    backdrop-filter: blur(18px) saturate(1.1) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.1) !important;
  }

  body.step2-remake .step2-selected-chip {
    position: relative !important;
    justify-self: start !important;
    display: grid !important;
    grid-template-columns: auto 80px 80px 80px !important;
    gap: 0 !important;
    min-width: 360px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #111111 !important;
    font-size: 18px !important;
    font-weight: 520 !important;
  }

  body.step2-remake .step2-selected-chip::before {
    content: "" !important;
    position: absolute !important;
    left: 156px !important;
    right: 34px !important;
    top: 50% !important;
    height: 2px !important;
    background: #d8d8d8 !important;
    transform: translateY(-50%) !important;
  }

  body.step2-remake .step2-selected-chip span {
    position: relative !important;
    z-index: 1 !important;
    align-self: center !important;
    white-space: nowrap !important;
  }

  body.step2-remake .step2-selected-chip i {
    position: relative !important;
    z-index: 1 !important;
    justify-self: center !important;
    align-self: center !important;
    width: 14px !important;
    height: 14px !important;
    border: 2px solid #d5d5d5 !important;
    border-radius: 999px !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  body.step2-remake .step2-selected-chip i:first-of-type,
  body.step2-remake .step2-selected-chip i.is-filled {
    border-color: #0a84ff !important;
    background: #fff !important;
  }

  body.step2-remake .btn {
    min-height: 58px !important;
    padding: 0 24px !important;
    border-radius: 12px !important;
    font-size: 20px !important;
    font-weight: 520 !important;
  }

  body.step2-remake[data-page="step2"] .step2-action-row #backBtn.btn,
  body.step2-remake[data-page="step2"] .step2-action-row #nextBtn.btn {
    width: 100% !important;
    min-height: 58px !important;
  }

  body.step2-remake .btn-secondary {
    border: 1px solid rgba(40, 32, 24, 0.14) !important;
    color: #111111 !important;
    background: #ffffff !important;
  }

  body.step2-remake .step2-generate-btn,
  body.step2-remake .btn-primary.step2-generate-btn {
    min-width: 0 !important;
    gap: 8px !important;
    color: #ffffff !important;
    background: #0a84ff !important;
    box-shadow: none !important;
  }

  body.step2-remake .step2-generate-btn:not(:disabled) i {
    display: none !important;
  }

  body.step2-remake .step2-generate-btn:disabled {
    color: rgba(255, 255, 255, 0.76) !important;
    background: #cbc5bd !important;
  }
}

@media (min-width: 1121px) {
  body.step2-remake[data-page="step2"] #step2MaterialsPane .materials-layout .material-options .material-option {
    display: grid !important;
    grid-template-columns: 88px minmax(0, 1fr) 28px !important;
    align-items: center !important;
    gap: 28px !important;
    min-height: 112px !important;
    padding: 14px 24px 14px 14px !important;
  }
}

/* Stage 26: make step navigation visible so users can go back and revise. */
@media (min-width: 1121px) {
  body.step2-remake[data-page="step2"] #step2MaterialsPane .surface-selection-list {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin: -12px 0 20px !important;
  }

  body.step2-remake[data-page="step2"] #step2MaterialsPane .surface-selection-row {
    display: grid !important;
    grid-template-columns: 28px minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    align-items: center !important;
    column-gap: 8px !important;
    row-gap: 2px !important;
    min-height: 58px !important;
    padding: 8px 10px !important;
    border: 1px solid rgba(40, 32, 24, 0.1) !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.72) !important;
    box-shadow: none !important;
    cursor: pointer !important;
  }

  body.step2-remake[data-page="step2"] #step2MaterialsPane .surface-selection-row.is-active {
    border-color: rgba(0, 122, 255, 0.55) !important;
    background: rgba(242, 248, 255, 0.94) !important;
  }

  body.step2-remake[data-page="step2"] #step2MaterialsPane .surface-selection-row.is-done:not(.is-active) {
    border-color: rgba(0, 122, 255, 0.2) !important;
  }

  body.step2-remake[data-page="step2"] #step2MaterialsPane .surface-selection-row.is-locked {
    cursor: not-allowed !important;
    opacity: 0.58 !important;
  }

  body.step2-remake[data-page="step2"] #step2MaterialsPane .surface-selection-swatch {
    grid-row: 1 / 3 !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 9px !important;
    box-shadow: none !important;
  }

  body.step2-remake[data-page="step2"] #step2MaterialsPane .surface-selection-row > span:not(.surface-selection-swatch) {
    grid-column: 2 !important;
    min-width: 0 !important;
    color: #111111 !important;
    font-size: 13px !important;
    line-height: 1.1 !important;
    font-weight: 760 !important;
  }

  body.step2-remake[data-page="step2"] #step2MaterialsPane .surface-selection-row strong {
    grid-column: 2 !important;
    min-width: 0 !important;
    overflow: hidden !important;
    color: #737373 !important;
    font-size: 12px !important;
    line-height: 1.15 !important;
    font-weight: 520 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
}

/* Stage 23: hard overrides for legacy step2 selectors. */
body.step2-remake[data-page="step2"] #dropzone > .dropzone-hint {
  inset: 24px auto auto 24px !important;
  width: max-content !important;
  height: 42px !important;
  min-width: 0 !important;
  max-width: calc(100% - 48px) !important;
  min-height: 42px !important;
  max-height: 42px !important;
  padding: 0 16px !important;
  border-radius: 999px !important;
  color: #403a34 !important;
  transform: none !important;
}

body.step2-remake[data-page="step2"] #dropzone > .dropzone-hint::before,
body.step2-remake[data-page="step2"] #dropzone > .dropzone-hint::after {
  display: none !important;
  content: none !important;
}

body.step2-remake[data-page="step2"] #step2MaterialsPane .material-panel .material-options {
  grid-template-columns: minmax(0, 1fr) !important;
}

body.step2-remake[data-page="step2"] #step2MaterialsPane .material-options .material-option::before,
body.step2-remake[data-page="step2"] #step2MaterialsPane .material-options .material-option::after,
body.step2-remake[data-page="step2"]:not(.is-renovation-upload) #step2MaterialsPane .material-options .material-option::before,
body.step2-remake[data-page="step2"]:not(.is-renovation-upload) #step2MaterialsPane .material-options .material-option::after {
  display: none !important;
  content: none !important;
}

body.step2-remake[data-page="step2"] .step2-action-row #backBtn.btn,
body.step2-remake[data-page="step2"] .step2-action-row #nextBtn.btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  height: auto !important;
  min-height: 52px !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body.step2-remake[data-page="step2"] .step2-action-row #nextBtn.btn:disabled {
  opacity: 1 !important;
}

@media (max-width: 640px) {
  body.step2-remake[data-page="step2"] main.step2-workspace.step2-sequential-workspace {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      "preview"
      "materials"
      "actions" !important;
    width: calc(100% - 24px) !important;
    gap: 14px !important;
    padding: 8px 0 132px !important;
  }

  body.step2-remake[data-page="step2"] .step2-preview-panel,
  body.step2-remake[data-page="step2"] .step2-stage-shell,
  body.step2-remake[data-page="step2"] #dropzone.dropzone,
  body.step2-remake[data-page="step2"] #step2MaterialsPane.step2-materials-panel {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
  }

  body.step2-remake[data-page="step2"] .step2-preview-panel,
  body.step2-remake[data-page="step2"] #step2MaterialsPane.step2-materials-panel,
  body.step2-remake[data-page="step2"] .step2-action-row {
    grid-column: 1 / -1 !important;
  }

  body.step2-remake[data-page="step2"] .step2-preview-panel {
    grid-area: preview !important;
  }

  body.step2-remake[data-page="step2"] #step2MaterialsPane.step2-materials-panel {
    grid-area: materials !important;
  }

  body.step2-remake[data-page="step2"] .step2-action-row {
    grid-area: actions !important;
  }

  body.step2-remake[data-page="step2"] #dropzone.dropzone {
    min-height: 280px !important;
    aspect-ratio: 1.18 / 1 !important;
    border-radius: 28px !important;
  }

  body.step2-remake[data-page="step2"] #dropzone > .dropzone-hint {
    inset: 14px auto auto 14px !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    padding: 0 13px !important;
    font-size: 12px !important;
  }

  body.step2-remake[data-page="step2"] .stage-material-overlay {
    left: 14px !important;
    bottom: 14px !important;
  }

  body.step2-remake[data-page="step2"] .stage-tag {
    min-height: 36px !important;
    padding: 0 13px !important;
    font-size: 12px !important;
  }

  body.step2-remake[data-page="step2"] .step2-action-row,
  body.step2-remake[data-page="step2"] .btnrow.step2-action-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    bottom: 10px !important;
    width: calc(100% - 24px) !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 10px !important;
    border-radius: 24px !important;
  }

  body.step2-remake[data-page="step2"] .step2-selected-chip {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    min-height: 44px !important;
    justify-content: center !important;
    margin: 0 !important;
  }

  body.step2-remake[data-page="step2"] .step2-action-row #backBtn.btn,
  body.step2-remake[data-page="step2"] .step2-action-row #nextBtn.btn {
    width: 100% !important;
    min-height: 48px !important;
    padding: 0 12px !important;
  }
}

/* Stage 25: bug fixes for uploaded preview and fixed bottom dock. */
body.step2-remake[data-page="step2"] #dropzone.has-upload #dropzonePreview,
body.step2-remake[data-page="step2"] #dropzone.has-upload .dropzone-preview {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
}

body.step2-remake[data-page="step2"] #dropzone:not(.has-upload) #dropzonePreview,
body.step2-remake[data-page="step2"] #dropzone:not(.has-upload) .dropzone-preview {
  display: none !important;
}

body.step2-remake[data-page="step2"] #dropzone.has-upload #dropzonePreview img,
body.step2-remake[data-page="step2"] #dropzone.has-upload .dropzone-preview img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  opacity: 1 !important;
}

body.step2-remake[data-page="step2"] #dropzone.has-upload .step2-room-placeholder {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

body.step2-remake[data-page="step2"] #dropzone.has-upload:hover #dropzonePreview,
body.step2-remake[data-page="step2"] #dropzone.has-upload:not(:hover) #dropzonePreview,
body.step2-remake[data-page="step2"] #dropzone.has-upload:hover .dropzone-preview,
body.step2-remake[data-page="step2"] #dropzone.has-upload:not(:hover) .dropzone-preview {
  display: block !important;
}

body.step2-remake[data-page="step2"] #dropzone.has-upload::after {
  background: transparent !important;
}

@media (min-width: 1121px) {
  body.step2-remake {
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  body.step2-remake .step2-page {
    height: auto !important;
    min-height: calc(100vh - 28px) !important;
    overflow: visible !important;
    padding-bottom: 128px !important;
  }

  body.step2-remake .step2-sequential-workspace {
    min-height: auto !important;
    padding-bottom: 40px !important;
  }

  body.step2-remake #dropzone.dropzone {
    height: min(725px, calc(100vh - 278px)) !important;
    min-height: 520px !important;
    aspect-ratio: auto !important;
  }

  body.step2-remake #step2MaterialsPane.step2-materials-panel {
    max-height: min(720px, calc(100vh - 330px)) !important;
    padding-right: 2px !important;
    padding-bottom: 12px !important;
    overflow-y: auto !important;
    scroll-padding-bottom: 24px !important;
    scrollbar-width: thin !important;
  }

  body.step2-remake #step2MaterialsPane.step2-materials-panel::-webkit-scrollbar {
    width: 6px !important;
  }

  body.step2-remake #step2MaterialsPane.step2-materials-panel::-webkit-scrollbar-thumb {
    border-radius: 999px !important;
    background: rgba(70, 60, 48, 0.18) !important;
  }

  body.step2-remake .step2-action-row,
  body.step2-remake .btnrow.step2-action-row {
    position: fixed !important;
    left: 36px !important;
    right: 36px !important;
    bottom: 26px !important;
    z-index: 1000 !important;
    width: auto !important;
    max-width: none !important;
  }
}

/* Stage 27: simplify material step picker per feedback. */
body.step2-remake[data-page="step2"] #step2MaterialsPane .step2-materials-head {
  display: none !important;
}

body.step2-remake[data-page="step2"] #step2MaterialsPane .surface-selection-list {
  margin-top: 0 !important;
}

body.step2-remake[data-page="step2"] #step2MaterialsPane .surface-selection-row [data-surface-value] {
  display: none !important;
}

body.step2-remake[data-page="step2"] #step2MaterialsPane .surface-selection-row {
  grid-template-columns: 34px minmax(0, 1fr) !important;
  grid-template-rows: 1fr !important;
  min-height: 62px !important;
  padding: 10px 16px !important;
  gap: 12px !important;
}

body.step2-remake[data-page="step2"] #step2MaterialsPane .surface-selection-swatch {
  grid-row: 1 !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 11px !important;
}

body.step2-remake[data-page="step2"] #step2MaterialsPane .surface-selection-row > span:not(.surface-selection-swatch) {
  grid-column: 2 !important;
  align-self: center !important;
  font-size: 18px !important;
  line-height: 1 !important;
  font-weight: 820 !important;
}

@media (max-width: 640px) {
  body.step2-remake[data-page="step2"] #step2MaterialsPane .surface-selection-row {
    min-height: 58px !important;
    padding: 10px 14px !important;
  }

  body.step2-remake[data-page="step2"] #step2MaterialsPane .surface-selection-row > span:not(.surface-selection-swatch) {
    font-size: 16px !important;
  }
}

/* Stage 28: polish the right-side material picker. */
body.step2-remake[data-page="step2"] #step2MaterialsPane .step2-locked-hints {
  display: none !important;
}

body.step2-remake[data-page="step2"] #step2MaterialsPane .material-panel-head {
  margin: 2px 2px 14px !important;
  padding: 0 2px !important;
}

body.step2-remake[data-page="step2"] #step2MaterialsPane .material-panel-head h3 {
  color: #151515 !important;
  font-size: 18px !important;
  line-height: 1.15 !important;
  font-weight: 820 !important;
}

body.step2-remake[data-page="step2"] #step2MaterialsPane .material-picked {
  min-height: 28px !important;
  padding: 0 11px !important;
  border: 1px solid rgba(50, 42, 34, 0.08) !important;
  border-radius: 999px !important;
  color: #8a837b !important;
  background: rgba(255, 255, 255, 0.72) !important;
  font-size: 12px !important;
  line-height: 28px !important;
  font-weight: 720 !important;
}

body.step2-remake[data-page="step2"] #step2MaterialsPane .material-picked.is-done {
  border-color: rgba(0, 122, 255, 0.18) !important;
  color: #0a84ff !important;
  background: rgba(238, 247, 255, 0.86) !important;
}

body.step2-remake[data-page="step2"] #step2MaterialsPane .material-options {
  gap: 12px !important;
}

body.step2-remake[data-page="step2"] #step2MaterialsPane .material-option {
  grid-template-columns: 76px minmax(0, 1fr) 30px !important;
  gap: 18px !important;
  min-height: 100px !important;
  padding: 12px 18px 12px 12px !important;
  border: 1px solid rgba(32, 28, 24, 0.07) !important;
  border-radius: 24px !important;
  background: rgba(255, 255, 255, 0.74) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 10px 24px rgba(64, 52, 40, 0.045) !important;
}

body.step2-remake[data-page="step2"] #step2MaterialsPane .material-option:hover {
  transform: translateY(-1px) !important;
  border-color: rgba(0, 122, 255, 0.22) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 14px 30px rgba(64, 52, 40, 0.07) !important;
}

body.step2-remake[data-page="step2"] #step2MaterialsPane .material-option.selected {
  border-color: rgba(0, 122, 255, 0.5) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 250, 255, 0.94)) !important;
  box-shadow: inset 0 0 0 1px rgba(0, 122, 255, 0.08), 0 0 0 4px rgba(0, 122, 255, 0.08), 0 16px 34px rgba(0, 122, 255, 0.1) !important;
}

body.step2-remake[data-page="step2"] #step2MaterialsPane .material-option-thumb {
  width: 76px !important;
  height: 76px !important;
  border-radius: 21px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48), 0 8px 18px rgba(64, 52, 40, 0.08) !important;
}

body.step2-remake[data-page="step2"] #step2MaterialsPane .material-option span:not(.material-option-thumb) {
  gap: 8px !important;
}

body.step2-remake[data-page="step2"] #step2MaterialsPane .material-option strong {
  font-size: 18px !important;
  line-height: 1.12 !important;
  font-weight: 840 !important;
}

body.step2-remake[data-page="step2"] #step2MaterialsPane .material-option small {
  color: #77716b !important;
  font-size: 14px !important;
  line-height: 1.3 !important;
  font-weight: 560 !important;
}

body.step2-remake[data-page="step2"] #step2MaterialsPane .material-option i {
  width: 26px !important;
  min-width: 26px !important;
  height: 26px !important;
  border-width: 2px !important;
  border-color: rgba(56, 52, 47, 0.38) !important;
  background: rgba(255, 255, 255, 0.72) !important;
}

body.step2-remake[data-page="step2"] #step2MaterialsPane .material-option.selected i {
  border-color: #0a84ff !important;
  background: #0a84ff !important;
  box-shadow: 0 8px 18px rgba(0, 122, 255, 0.2) !important;
}

body.step2-remake[data-page="step2"] #step2MaterialsPane .material-note-input {
  min-height: 44px !important;
  margin-top: 14px !important;
  border: 1px solid rgba(32, 28, 24, 0.08) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.62) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
}

@media (min-width: 1121px) {
  body.step2-remake[data-page="step2"] #step2MaterialsPane.step2-materials-panel {
    padding: 4px 4px 18px !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  body.step2-remake[data-page="step2"] #step2MaterialsPane .surface-selection-list {
    position: sticky !important;
    top: 0 !important;
    z-index: 5 !important;
    gap: 10px !important;
    margin: 0 0 22px !important;
    padding: 0 0 12px !important;
    background: linear-gradient(180deg, rgba(255, 252, 248, 0.98) 0%, rgba(255, 252, 248, 0.88) 72%, rgba(255, 252, 248, 0) 100%) !important;
  }

  body.step2-remake[data-page="step2"] #step2MaterialsPane .surface-selection-row {
    grid-template-columns: 32px minmax(0, 1fr) !important;
    min-height: 60px !important;
    padding: 10px 12px !important;
    border-color: rgba(32, 28, 24, 0.08) !important;
    border-radius: 20px !important;
    background: rgba(255, 255, 255, 0.76) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 8px 20px rgba(64, 52, 40, 0.035) !important;
  }

  body.step2-remake[data-page="step2"] #step2MaterialsPane .surface-selection-row:hover {
    transform: translateY(-1px) !important;
    background: rgba(255, 255, 255, 0.94) !important;
  }

  body.step2-remake[data-page="step2"] #step2MaterialsPane .surface-selection-row.is-active {
    border-color: rgba(0, 122, 255, 0.5) !important;
    background: rgba(240, 248, 255, 0.95) !important;
    box-shadow: inset 0 0 0 1px rgba(0, 122, 255, 0.08), 0 0 0 4px rgba(0, 122, 255, 0.07), 0 12px 24px rgba(0, 122, 255, 0.08) !important;
  }

  body.step2-remake[data-page="step2"] #step2MaterialsPane .surface-selection-row.is-done:not(.is-active) {
    border-color: rgba(0, 122, 255, 0.18) !important;
    background: rgba(249, 252, 255, 0.82) !important;
  }

  body.step2-remake[data-page="step2"] #step2MaterialsPane .surface-selection-row.is-locked {
    opacity: 0.5 !important;
    filter: saturate(0.72) !important;
  }

  body.step2-remake[data-page="step2"] #step2MaterialsPane .surface-selection-swatch {
    width: 32px !important;
    height: 32px !important;
    border-radius: 11px !important;
  }

  body.step2-remake[data-page="step2"] #step2MaterialsPane .surface-selection-row > span:not(.surface-selection-swatch) {
    font-size: 16px !important;
    line-height: 1 !important;
    font-weight: 820 !important;
  }
}

@media (max-width: 640px) {
  body.step2-remake[data-page="step2"] #step2MaterialsPane .material-panel-head h3 {
    font-size: 16px !important;
  }

  body.step2-remake[data-page="step2"] #step2MaterialsPane .material-option {
    grid-template-columns: 64px minmax(0, 1fr) 26px !important;
    gap: 13px !important;
    min-height: 88px !important;
    padding: 10px 13px 10px 10px !important;
    border-radius: 22px !important;
  }

  body.step2-remake[data-page="step2"] #step2MaterialsPane .material-option-thumb {
    width: 64px !important;
    height: 64px !important;
    border-radius: 18px !important;
  }

  body.step2-remake[data-page="step2"] #step2MaterialsPane .material-option strong {
    font-size: 16px !important;
  }

  body.step2-remake[data-page="step2"] #step2MaterialsPane .material-option small {
    font-size: 13px !important;
  }
}

/* Stage 29: make the material list denser so the right side reads as a tool, not oversized cards. */
body.step2-remake[data-page="step2"] #step2MaterialsPane .material-panel-head {
  display: none !important;
}

@media (min-width: 1121px) {
  body.step2-remake[data-page="step2"] #step2MaterialsPane .material-options {
    gap: 10px !important;
  }

  body.step2-remake[data-page="step2"] #step2MaterialsPane .materials-layout .material-options .material-option {
    grid-template-columns: 70px minmax(0, 1fr) 28px !important;
    gap: 18px !important;
    min-height: 94px !important;
    padding: 10px 18px 10px 10px !important;
    border-radius: 22px !important;
  }

  body.step2-remake[data-page="step2"] #step2MaterialsPane .material-option-thumb {
    width: 70px !important;
    height: 70px !important;
    border-radius: 19px !important;
  }

  body.step2-remake[data-page="step2"] #step2MaterialsPane .material-option strong {
    font-size: 17px !important;
  }

  body.step2-remake[data-page="step2"] #step2MaterialsPane .material-option small {
    font-size: 13px !important;
  }
}

/* Stage 30: ensure uploaded rough-room photos fully replace the default preview. */
body.step2-remake[data-page="step2"] #dropzone.has-upload.dropzone {
  background: #ffffff !important;
  background-image: none !important;
}

body.step2-remake[data-page="step2"] #dropzone.has-upload.dropzone::before,
body.step2-remake[data-page="step2"] #dropzone.has-upload.dropzone::after {
  display: none !important;
  content: none !important;
  background: none !important;
  background-image: none !important;
}

body.step2-remake[data-page="step2"] #dropzone.has-upload .dropzone-hint,
body.step2-remake[data-page="step2"] #dropzone.has-upload .step2-room-placeholder {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.step2-remake[data-page="step2"] #dropzone.has-upload #dropzonePreview,
body.step2-remake[data-page="step2"] #dropzone.has-upload .dropzone-preview {
  z-index: 3 !important;
  background: #ffffff !important;
}

body.step2-remake[data-page="step2"] #dropzone.has-upload #dropzonePreview::before,
body.step2-remake[data-page="step2"] #dropzone.has-upload #dropzonePreview::after,
body.step2-remake[data-page="step2"] #dropzone.has-upload .dropzone-preview::before,
body.step2-remake[data-page="step2"] #dropzone.has-upload .dropzone-preview::after {
  display: none !important;
  content: none !important;
}

/* Stage 31: separate the step picker from the material option list. */
body.step2-remake[data-page="step2"] #step2MaterialsPane .surface-selection-list {
  position: relative !important;
}

body.step2-remake[data-page="step2"] #step2MaterialsPane .materials-layout {
  position: relative !important;
  padding: 12px !important;
  border: 1px solid rgba(46, 38, 30, 0.08) !important;
  border-radius: 28px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 250, 244, 0.5)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 18px 42px rgba(64, 52, 40, 0.055) !important;
}

body.step2-remake[data-page="step2"] #step2MaterialsPane .materials-layout::before {
  content: "" !important;
  position: absolute !important;
  left: 26px !important;
  right: 26px !important;
  top: -13px !important;
  height: 1px !important;
  background: linear-gradient(90deg, transparent, rgba(74, 62, 50, 0.16), transparent) !important;
  pointer-events: none !important;
}

@media (min-width: 1121px) {
  body.step2-remake[data-page="step2"] #step2MaterialsPane .surface-selection-list {
    gap: 9px !important;
    margin: 0 0 26px !important;
    padding: 10px !important;
    border: 1px solid rgba(46, 38, 30, 0.08) !important;
    border-radius: 28px !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(250, 246, 240, 0.72)) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 16px 38px rgba(64, 52, 40, 0.06) !important;
    backdrop-filter: blur(18px) saturate(1.08) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.08) !important;
  }

  body.step2-remake[data-page="step2"] #step2MaterialsPane .surface-selection-row {
    min-height: 56px !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, 0.68) !important;
    box-shadow: none !important;
  }

  body.step2-remake[data-page="step2"] #step2MaterialsPane .surface-selection-row.is-active {
    background: rgba(239, 247, 255, 0.98) !important;
    box-shadow: inset 0 0 0 1px rgba(0, 122, 255, 0.09), 0 8px 18px rgba(0, 122, 255, 0.08) !important;
  }

  body.step2-remake[data-page="step2"] #step2MaterialsPane .materials-layout {
    padding: 10px !important;
  }

  body.step2-remake[data-page="step2"] #step2MaterialsPane .materials-layout .material-options .material-option {
    width: 100% !important;
  }
}

@media (max-width: 640px) {
  body.step2-remake[data-page="step2"] #step2MaterialsPane .surface-selection-list {
    padding: 8px !important;
    border: 1px solid rgba(46, 38, 30, 0.08) !important;
    border-radius: 24px !important;
    background: rgba(255, 255, 255, 0.72) !important;
  }

  body.step2-remake[data-page="step2"] #step2MaterialsPane .materials-layout {
    padding: 9px !important;
    border-radius: 24px !important;
  }
}
