/* 住一下：奶油零售 Honey Cream */

html.dream-home-play,
html.dream-home-play body {
  background: #f7f3ec;
  --safe-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
  --safe-bottom: var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px));
  --xhs-chrome-top: 48px;
}

html.dream-home-play #inviteGate,
html.dream-home-play #topbar,
html.dream-home-play #leftPanel,
html.dream-home-play #leftPanelHandle,
html.dream-home-play #drawer,
html.dream-home-play #drawerHandle,
html.dream-home-play #canvasToolbar,
html.dream-home-play #editorEmptyState,
html.dream-home-play #renderPanel,
html.dream-home-play #renderPanelHandle,
html.dream-home-play #selectionToolbar,
html.dream-home-play .aid__action-toolbar,
html.dream-home-play .aid__action-toolbar-sublist,
html.dream-home-play .aid2d__div {
  display: none !important;
}

html.dream-home-play #gpc-editor-2d,
html.dream-home-play [data-gpc-2d] {
  visibility: hidden !important;
  pointer-events: none !important;
}

html.dream-home-play.dream-home-resizing #gpc-editor-3d,
html.dream-home-play.dream-home-resizing [data-gpc-3d] {
  opacity: 0;
}

html.dream-home-play #main {
  height: 100%;
}

html.dream-home-play #viewport {
  inset: 0;
}

html.dream-home-play #gpc-editor-3d,
html.dream-home-play #gpc-editor-3d canvas {
  touch-action: none;
}

html.dream-home-play .toast {
  bottom: calc(var(--dream-dock-h, 240px) + var(--dream-stage-h, 0px) + 68px + var(--safe-bottom));
  max-width: calc(100vw - 32px);
  white-space: nowrap;
}

html.dream-home-play.dream-home-color-open .toast {
  bottom: calc(var(--dream-dock-h, 240px) + var(--dream-stage-h, 0px) + 148px + var(--safe-bottom));
}

html.dream-home-play.dream-home-look-open .toast {
  bottom: calc(var(--dream-dock-h, 240px) + var(--dream-stage-h, 0px) + 250px + var(--safe-bottom));
}

html.dream-home-play.dream-home-style-open .toast {
  bottom: calc(var(--dream-dock-h, 240px) + var(--dream-stage-h, 0px) + 84px + var(--safe-bottom));
}

/* 外观弹层替掉底部货架，画面留给正在改的这件家具。 */
html.dream-home-look-open .dream-home-dock,
html.dream-home-look-open .dream-home-stage-bar {
  display: none !important;
}

html.dream-home-look-open .dream-home-sel-stack {
  bottom: calc(12px + var(--safe-bottom));
}

.dream-home-hud {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  font-family: inherit;
  color: #2a2416;
}

.dream-home-hud button {
  font: inherit;
  cursor: pointer;
}

.dream-home-top,
.dream-home-spaces,
.dream-home-album,
.dream-home-album-viewer,
.dream-home-sel-stack,
.dream-home-selection,
.dream-home-wall-cta,
.dream-home-stage-bar,
.dream-home-dock,
.dream-home-intro,
.dream-home-confirm {
  pointer-events: auto;
}

.dream-home-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 8;
  padding: calc(8px + var(--safe-top) + var(--xhs-chrome-top)) 16px 20px;
  background: linear-gradient(180deg, #f7f3ec 0%, rgba(247, 243, 236, 0.55) 55%, rgba(247, 243, 236, 0));
}

.dream-home-hud.is-album .dream-home-top,
.dream-home-hud.is-spaces .dream-home-top {
  background: linear-gradient(180deg, rgba(247, 243, 236, 0.78) 0%, rgba(247, 243, 236, 0.28) 70%, rgba(247, 243, 236, 0));
}

.dream-home-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
}

.dream-home-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.dream-home-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.dream-home-sub {
  display: none;
  min-width: 0;
  font-size: 13px;
  color: #8a8175;
  white-space: nowrap;
}

.dream-home-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.dream-home-segment {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 3px;
  border-radius: 999px;
  background: #efe8dc;
}

.dream-home-mode {
  border: 0;
  border-radius: 999px;
  padding: 7px 12px;
  background: transparent;
  color: #6b6257;
  font-size: 14px;
}

.dream-home-mode.is-active {
  background: #f2d36b;
  color: #2a2416;
  font-weight: 600;
}

.dream-home-text-btn {
  border: 0;
  padding: 7px 4px;
  background: transparent;
  color: #6b6257;
  font-size: 14px;
}

.dream-home-text-btn--ink {
  border-radius: 999px;
  padding: 7px 12px;
  background: #2a2416;
  color: #f7f3ec;
  font-size: 13px;
}

.dream-home-chip {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  background: #f2d36b;
  color: #2a2416;
  font-size: 13px;
  font-weight: 600;
}

.dream-home-chip--ghost {
  background: #2a2416;
  color: #f7f3ec;
}

.dream-home-sel-stack,
.dream-home-wall-cta {
  position: absolute;
  left: 50%;
  bottom: calc(var(--dream-dock-h, 168px) + var(--dream-stage-h, 0px) + 12px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
}

.dream-home-sel-stack {
  z-index: 6;
  flex-direction: column;
  width: min(480px, calc(100% - 16px));
  max-width: calc(100% - 16px);
}

.dream-home-sel-stack.hidden {
  display: none !important;
}

.dream-home-selection {
  display: flex;
  align-items: center;
  gap: 8px;
  width: auto;
  max-width: 100%;
  padding: 6px 8px;
  border-radius: 999px;
  background: #fffdf8;
  box-shadow: 0 10px 28px rgba(42, 36, 22, 0.1);
}

.dream-home-color-track {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  justify-items: center;
  align-items: center;
  gap: 6px 4px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  padding: 8px 10px;
  border-radius: 20px;
  background: #fffdf8;
  box-shadow: 0 10px 28px rgba(42, 36, 22, 0.1);
}

.dream-home-color-track.hidden {
  display: none !important;
}

.dream-home-color-chip {
  width: min(22px, 100%);
  aspect-ratio: 1;
  height: auto;
  border: 0;
  border-radius: 999px;
  padding: 0;
  box-shadow: inset 0 0 0 1px rgba(42, 36, 22, 0.12);
}

.dream-home-color-chip.is-on {
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px #f2d36b;
}

/* 软陶家具的外观弹层：部件 / 材质 / 颜色三排。 */
.dream-home-look-panel {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: 100%;
  padding: 10px 10px 9px;
  border-radius: 22px;
  background: #fffdf8;
  box-shadow: 0 10px 28px rgba(42, 36, 22, 0.1);
}

.dream-home-look-panel.hidden {
  display: none !important;
}

.dream-home-look-parts {
  display: flex;
  align-self: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: #f1e8d8;
}

.dream-home-look-part {
  border: 0;
  border-radius: 999px;
  padding: 4px 14px;
  background: transparent;
  color: #8a7a62;
  font-size: 12px;
  line-height: 18px;
}

.dream-home-look-part.is-on {
  background: #fffdf8;
  color: #2a2416;
  font-weight: 700;
  box-shadow: 0 1.5px 0 rgba(42, 36, 22, 0.1);
}

.dream-home-look-finishes {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
}

.dream-home-look-finish {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #7a6b55;
  font-size: 10.5px;
  line-height: 13px;
  white-space: nowrap;
}

.dream-home-look-finish.is-on {
  color: #2a2416;
  font-weight: 700;
}

.dream-home-look-swatch {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(42, 36, 22, 0.12);
}

.dream-home-look-finish.is-on .dream-home-look-swatch {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #f2d36b;
}

/* 色块上叠一层半透明纹理，底色是当前部件的颜色。 */
.dream-home-look-swatch.is-matte {
  background-image: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0) 62%);
}

.dream-home-look-swatch.is-wood {
  background-image: repeating-linear-gradient(100deg, rgba(60, 30, 10, 0.16) 0, rgba(60, 30, 10, 0.16) 2px, rgba(0, 0, 0, 0) 2px, rgba(0, 0, 0, 0) 6px), radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 62%);
}

.dream-home-look-swatch.is-linen {
  background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.16) 0, rgba(255, 255, 255, 0.16) 1px, rgba(0, 0, 0, 0) 1px, rgba(0, 0, 0, 0) 3px), repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.08) 0, rgba(0, 0, 0, 0.08) 1px, rgba(0, 0, 0, 0) 1px, rgba(0, 0, 0, 0) 3px);
}

.dream-home-look-swatch.is-boucle {
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.4) 1.3px, rgba(255, 255, 255, 0) 1.8px), radial-gradient(circle, rgba(0, 0, 0, 0.14) 1.3px, rgba(0, 0, 0, 0) 1.8px);
  background-size: 5px 5px;
  background-position: 0 0, 2.5px 2.5px;
}

.dream-home-look-swatch.is-leather {
  background-image: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 42%), radial-gradient(circle at 70% 76%, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0) 56%);
}

.dream-home-look-swatch.is-rattan {
  background-image: repeating-linear-gradient(45deg, rgba(60, 30, 10, 0.2) 0, rgba(60, 30, 10, 0.2) 1.5px, rgba(0, 0, 0, 0) 1.5px, rgba(0, 0, 0, 0) 5px), repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.24) 0, rgba(255, 255, 255, 0.24) 1.5px, rgba(0, 0, 0, 0) 1.5px, rgba(0, 0, 0, 0) 5px);
}

.dream-home-look-swatch.is-marble {
  background-image: linear-gradient(125deg, rgba(0, 0, 0, 0) 40%, rgba(70, 70, 70, 0.35) 43%, rgba(0, 0, 0, 0) 46%), linear-gradient(35deg, rgba(0, 0, 0, 0) 62%, rgba(70, 70, 70, 0.22) 63.5%, rgba(0, 0, 0, 0) 65%), radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 62%);
}

.dream-home-look-tints {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  justify-items: center;
  align-items: center;
  gap: 7px 4px;
}

.dream-home-selection.is-opening,
.dream-home-selection.is-furniture {
  width: auto;
}

.dream-home-wall-cta.hidden,
.dream-home-wall-cta > [hidden],
.dream-home-wall-back.hidden {
  display: none !important;
}

.dream-home-wall-back {
  pointer-events: auto;
}

.dream-home-selection.hidden {
  display: none !important;
}

.dream-home-sel {
  border: 0;
  border-radius: 999px;
  min-width: 72px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 600;
}

.dream-home-sel--rotate {
  background: #f2d36b;
  color: #2a2416;
}

.dream-home-sel--delete {
  background: #2a2416;
  color: #f7f3ec;
}

.dream-home-sel-icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  padding: 0;
}

.dream-home-sel-icon svg {
  width: 18px;
  height: 18px;
}

.dream-home-sel-icon--rotate {
  background: #f2d36b;
  color: #2a2416;
}

.dream-home-sel-icon--delete {
  background: #2a2416;
  color: #f7f3ec;
}

.dream-home-sel-icon--color {
  background: #fff;
  color: #2a2416;
  box-shadow: inset 0 0 0 1px rgba(42, 36, 22, 0.12);
}

.dream-home-sel-icon--color svg {
  width: 20px;
  height: 20px;
  overflow: visible;
}

.dream-home-sel-icon--color.is-on {
  background: #f2d36b;
  box-shadow: none;
}

.dream-home-sel-icon[hidden] {
  display: none !important;
}

.dream-home-size-bar {
  display: flex;
  align-items: center;
  min-width: 0;
}

.dream-home-size-bar.hidden {
  display: none !important;
}

.dream-home-size-axis {
  min-width: 0;
  flex: 1 1 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
}

.dream-home-size-field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.dream-home-size-label {
  color: #6b6257;
  font-size: 11px;
  line-height: 1;
}

.dream-home-size-value {
  width: 3.2em;
  min-width: 0;
  height: 28px;
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: #f3eee6;
  color: #2a2416;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 14px;
}

.dream-home-size-value:focus {
  outline: 2px solid #f2d36b;
  outline-offset: 1px;
}

.dream-home-size-btn {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: #f2d36b;
  color: #2a2416;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.dream-home-opening-bar {
  display: flex;
  align-items: center;
  min-width: 0;
}

.dream-home-opening-bar.hidden {
  display: none !important;
}

.dream-home-opening-track {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 3px;
  border-radius: 999px;
  background: #efe8dc;
}

.dream-home-opening-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 4px 12px 5px;
  border-radius: 999px;
  color: #6b6257;
  cursor: pointer;
}

.dream-home-opening-cell.is-on {
  background: #fff;
  color: #2a2416;
}

.dream-home-opening-label {
  font-size: 10px;
  line-height: 1;
}

.dream-home-opening-value {
  width: 3em;
  min-width: 0;
  height: 20px;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 14px;
}

.dream-home-opening-value:focus {
  outline: none;
}

.dream-home-stage-bar {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 6;
  bottom: calc(var(--dream-dock-h, 240px) + 10px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 16px;
}

.dream-home-stage-bar.hidden {
  display: none !important;
}

.dream-home-stage-left,
.dream-home-stage-views,
.dream-home-stage-toggles,
.dream-home-history {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dream-home-stage-right {
  display: flex;
  align-items: center;
}

.dream-home-stage-views.hidden,
.dream-home-stage-toggles.hidden {
  display: none !important;
}

.dream-home-history {
  gap: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(42, 36, 22, 0.1);
  overflow: hidden;
}

.dream-home-stage-icon,
.dream-home-history-btn {
  width: 40px;
  height: 40px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(42, 36, 22, 0.28);
}

.dream-home-stage-icon {
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(42, 36, 22, 0.1);
}

.dream-home-stage-icon.is-on,
.dream-home-history-btn {
  color: #2a2416;
}

.dream-home-stage-icon.is-on {
  background: #f2d36b;
}

.dream-home-history-btn {
  background: transparent;
}

.dream-home-history-btn + .dream-home-history-btn {
  border-left: 1px solid rgba(42, 36, 22, 0.08);
}

.dream-home-history-btn:disabled {
  color: rgba(42, 36, 22, 0.22);
  cursor: default;
}

.dream-home-stage-icon svg,
.dream-home-history-btn svg {
  width: 20px;
  height: 20px;
}

.dream-home-stage-icon svg {
  fill: none;
  stroke: currentColor;
}

.dream-home-stage-icon[data-dream-toggle='shadows'] svg,
.dream-home-stage-icon[data-dream-action='toggle-light'] svg {
  fill: currentColor;
}

.dream-home-light {
  position: relative;
}

.dream-home-light-pop {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: calc(100vw - 28px);
  height: 48px;
  padding: 5px 8px 5px 5px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 3px 0 #e6d7bd, 0 8px 16px rgba(120, 92, 44, 0.12), inset 0 1.5px 0 rgba(255, 255, 255, 0.9);
}

.dream-home-light-pop.hidden {
  display: none !important;
}

.dream-home-light-segs {
  display: flex;
  align-items: stretch;
  flex: none;
  height: 38px;
  padding: 3px;
  border-radius: 999px;
  background: #f3eee6;
  box-shadow: inset 0 2px 4px rgba(120, 92, 44, 0.14);
}

.dream-home-light-seg {
  flex: none;
  border: 0;
  padding: 0 12px;
  border-radius: 999px;
  background: transparent;
  color: #7d6f5a;
  font-size: 13px;
  font-weight: 500;
  line-height: 32px;
  white-space: nowrap;
}

.dream-home-light-seg.is-on {
  background: #f3d46e;
  color: #3a2f20;
  font-weight: 700;
  box-shadow: 0 2px 0 #d8b248, inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.dream-home-light-name {
  flex: none;
  color: #3a2f20;
  font-size: 13px;
  font-weight: 700;
}

.dream-home-light-sw {
  position: relative;
  flex: none;
  width: 46px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #f1e8d8;
  box-shadow: inset 0 2px 4px rgba(120, 92, 44, 0.16);
}

.dream-home-light-sw i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fffaf1;
  box-shadow: 0 2px 0 #e6d7bd;
}

.dream-home-light-sw.is-on {
  background: #f3d46e;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.dream-home-light-sw.is-on i {
  left: 21px;
}

.dream-home-history-btn svg {
  fill: none;
  stroke: currentColor;
}

.dream-home-stage-icon svg [fill='none'] {
  fill: none;
}

.dream-home-dock {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  max-height: calc(100% - var(--dream-top-h, 132px) - 56px);
  display: flex;
  flex-direction: column;
  background: #fffdf8;
  box-shadow: 0 -8px 24px rgba(42, 36, 22, 0.06);
}

.dream-home-dock.hidden {
  display: none !important;
}

.dream-home-dock[data-dock='furnish'] {
  background: #fff;
}

.dream-home-dock-main {
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 8px 14px calc(8px + var(--safe-bottom));
}

.dream-home-dock[data-dock='furnish'] .dream-home-dock-main {
  padding-bottom: calc(8px + var(--safe-bottom));
}

.dream-home-dock-main[hidden] {
  display: none !important;
}

.dream-home-room-bar {
  margin-bottom: 8px;
}

.dream-home-groups {
  display: flex;
  width: 100%;
  padding: 3px;
  border-radius: 999px;
  background: #f3eee6;
}

.dream-home-choices {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dream-home-group,
.dream-home-choice {
  border: 0;
  border-radius: 999px;
  padding: 6px 12px;
  background: transparent;
  color: #6b6257;
  font-size: 13px;
}

.dream-home-group.is-active,
.dream-home-cat.is-active,
.dream-home-choice.is-active {
  background: #f2d36b;
  color: #2a2416;
  font-weight: 600;
}

.dream-home-subchips {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  align-self: center;
  width: max-content;
  height: 38px;
  padding: 3px;
  border-radius: 999px;
  background: #f3eee6;
}

.dream-home-subslot {
  height: 38px;
}

.dream-home-subchip {
  border: 0;
  border-radius: 999px;
  padding: 5px 12px;
  background: transparent;
  color: #6b6257;
  font-size: 12px;
}

.dream-home-subchip.is-active {
  background: #fff;
  color: #2a2416;
  font-weight: 600;
}

.dream-home-cats {
  display: flex;
  align-items: stretch;
  box-sizing: border-box;
  width: 100%;
  margin-bottom: 8px;
  padding: 3px;
  border-radius: 999px;
  background: #f3eee6;
}

.dream-home-cat {
  flex: 1 1 0;
  min-width: 0;
  border: 0;
  border-radius: 999px;
  padding: 8px 0;
  background: transparent;
  color: #6b6257;
  font-size: 12px;
  text-align: center;
  white-space: nowrap;
}

.dream-home-cats.hidden,
.dream-home-shelf.hidden,
.dream-home-room-bar.hidden,
.dream-home-furnish-bar.hidden {
  display: none !important;
}

.dream-home-furnish-bar {
  margin-bottom: 8px;
}

.dream-home-furnish-groups {
  display: flex;
  width: 100%;
  padding: 3px;
  border-radius: 999px;
  background: #f3eee6;
}

.dream-home-tab {
  flex: 1;
  border: 0;
  border-radius: 999px;
  padding: 8px 0;
  background: transparent;
  color: #6b6257;
  font-size: 12px;
  text-align: center;
}

.dream-home-layouts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  height: 100%;
}

.dream-home-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  height: 100%;
  padding: 10px 8px 8px;
  border: 0;
  border-radius: 14px;
  background: #f3eee6;
  color: #2a2416;
}

.dream-home-layout.is-active {
  background: #fff;
  box-shadow: 0 0 0 2px #f2d36b;
}

.dream-home-layout-plan {
  display: grid;
  place-items: center;
  width: 100%;
  height: 72px;
  color: #1a1610;
}

.dream-home-layout-plan svg {
  display: block;
  width: 88px;
  height: auto;
  overflow: visible;
}

.dream-home-layout-name {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
}

.dream-home-layout-size {
  margin-top: 2px;
  color: #8a8175;
  font-size: 10px;
  line-height: 1.2;
}

.dream-home-tab.is-active {
  background: #f2d36b;
  color: #2a2416;
  font-weight: 600;
}

.dream-home-shelf {
  min-height: 0;
  flex: 1 1 auto;
  /* 卡片选中是 box-shadow 画的 2px 黄圈，overflow 会把它裁掉；横向滚动在 .dream-home-grid 上。 */
  overflow: visible;
}

.dream-home-dock[data-dock='furnish'] .dream-home-shelf {
  min-height: 89px;
}

.dream-home-dock[data-furnish='atmosphere'] .dream-home-shelf {
  display: flex;
  align-items: center;
  min-height: 129px;
}

.dream-home-dock[data-furnish='atmosphere'] .dream-home-looks {
  width: 100%;
  padding: 0 3px;
}

.dream-home-steppers {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  padding: 2px 0 4px;
}

.dream-home-stepper {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

.dream-home-stepper-label {
  width: auto;
  text-align: center;
  color: #8a8175;
  font-size: 12px;
}

.dream-home-stepper-ctrl {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.dream-home-stepper-field {
  flex: 1 1 0;
  min-width: 0;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 4px;
  border-radius: 10px;
  background: #f3eee6;
}

.dream-home-stepper-field:focus-within {
  outline: 2px solid #f2d36b;
  outline-offset: 1px;
}

.dream-home-stepper-value {
  width: 2.2em;
  min-width: 0;
  height: 32px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #2a2416;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 14px;
}

.dream-home-stepper-value:focus {
  outline: none;
}

.dream-home-stepper-unit {
  color: #8a8175;
  font-size: 11px;
  flex: 0 0 auto;
}

.dream-home-stepper-btn {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: #f3eee6;
  color: #2a2416;
  font-size: 16px;
  line-height: 1;
}

@media (max-width: 430px) {
  .dream-home-steppers {
    gap: 4px;
  }

  .dream-home-stepper-btn {
    flex-basis: 24px;
    width: 24px;
    height: 24px;
    font-size: 15px;
  }

  .dream-home-stepper-value {
    width: 2.1em;
    font-size: 13px;
  }

  .dream-home-stepper-unit {
    font-size: 10px;
  }
}

@media (max-width: 320px) {
  .dream-home-steppers {
    flex-direction: column;
    gap: 8px;
  }

  .dream-home-stepper {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .dream-home-stepper-label {
    width: 1.2em;
    text-align: left;
  }

  .dream-home-stepper-ctrl {
    flex: 1 1 auto;
  }
}

.dream-home-group-body {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 156px;
  max-height: 156px;
}

@media (max-height: 700px) {
  .dream-home-group-body {
    height: 120px;
  }

  .dream-home-layout-plan {
    height: 40px;
  }
}

.dream-home-group-body.is-flush {
  justify-content: stretch;
}

.dream-home-group-body.is-flush .dream-home-shelf-pane {
  height: 100%;
  flex: 1 1 auto;
}

.dream-home-shelf-pane {
  flex: 1 1 auto;
  height: 110px;
  display: flex;
  align-items: flex-start;
}

.dream-home-shelf-pane.is-center {
  align-items: center;
}

.dream-home-shelf-pane .dream-home-steppers {
  width: 100%;
}

/* 不够一排就居中，多了按 100% 宽横向滚动。 */
.dream-home-shelf-pane .dream-home-swatches,
.dream-home-shelf-pane .dream-home-grid {
  width: max-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* 门窗没有子标签，一排卡片在面板里上下居中。 */
.dream-home-shelf-pane .dream-home-grid.is-openings {
  align-self: center;
}

.dream-home-swatches,
.dream-home-grid {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 3px;
  scrollbar-width: none;
}

.dream-home-swatches::-webkit-scrollbar,
.dream-home-grid::-webkit-scrollbar {
  display: none;
}

.dream-home-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 76px;
}

.dream-home-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #3a342c;
}

.dream-home-card-thumb {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  background: #fff8f0 center / contain no-repeat;
  box-shadow: inset 0 0 0 1px rgba(42, 36, 22, 0.06);
}

.dream-home-card.is-active .dream-home-card-thumb {
  box-shadow: 0 0 0 2px #f2d36b;
}

.dream-home-place-ghost {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 45;
  width: 72px;
  height: 72px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

.dream-home-place-ghost.is-on {
  opacity: 1;
  visibility: visible;
}

.dream-home-place-ghost-thumb {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  background: #fff center / cover no-repeat;
  box-shadow: 0 8px 22px rgba(42, 36, 22, 0.18);
}

.dream-home-place-ghost.is-valid .dream-home-place-ghost-thumb {
  box-shadow: 0 0 0 2px #f2d36b, 0 8px 22px rgba(42, 36, 22, 0.18);
}

.dream-home-place-ghost.is-miss {
  opacity: 0.45;
}

.dream-home-card-name {
  max-width: 76px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}

.dream-home-swatch {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  border: 0;
  padding: 0;
  background: transparent;
}

.dream-home-swatch-chip {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  background: #fff center / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(42, 36, 22, 0.1);
}

.dream-home-swatch.is-active .dream-home-swatch-chip {
  box-shadow: 0 0 0 2px #f2d36b;
}

.dream-home-empty {
  margin: 18px 0 8px;
  text-align: center;
  color: #8a8175;
  font-size: 13px;
}

.dream-home-choices {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.dream-home-looks {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  /* 选中是 2px 外扩 box-shadow，横向滚动容器要留边，首尾两张的黄框才不会被裁。 */
  padding: 2px 3px 4px;
  scrollbar-width: none;
}

.dream-home-looks::-webkit-scrollbar {
  display: none;
}

.dream-home-look {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #6b6257;
  font-size: 11px;
}

.dream-home-look-thumb {
  width: 96px;
  height: 64px;
  border-radius: 12px;
  background: #ddd6cc center / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(42, 36, 22, 0.08);
}

.dream-home-look.is-active .dream-home-look-thumb {
  box-shadow: 0 0 0 2px #f2d36b;
}

.dream-home-backdrops {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.dream-home-backdrops--compact {
  gap: 6px;
}

.dream-home-backdrops--compact .dream-home-backdrop {
  gap: 2px;
  font-size: 9px;
}

.dream-home-backdrops--compact .dream-home-backdrop-thumb {
  width: 52px;
  height: 32px;
  border-radius: 6px;
}

.dream-home-backdrop {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #6b6257;
  font-size: 10px;
}

.dream-home-backdrop-thumb {
  width: 72px;
  height: 44px;
  border-radius: 8px;
  background: #ddd6cc center / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(42, 36, 22, 0.08);
}

.dream-home-backdrop.is-active .dream-home-backdrop-thumb {
  box-shadow: 0 0 0 2px #f2d36b;
}

.dream-home-hud .dream-home-spaces {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  background: #f7f3ec;
}

.dream-home-hud .dream-home-spaces.hidden {
  display: none !important;
}

.dream-home-spaces-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: calc(112px + var(--safe-top) + var(--xhs-chrome-top)) 16px calc(28px + var(--safe-bottom));
}

.dream-home-spaces-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 10px;
  max-width: 520px;
  margin: 0 auto;
}

.dream-home-space-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 8px 8px 10px;
  border-radius: 16px;
  background: #fffdf8;
  box-shadow: 0 8px 18px rgba(42, 36, 22, 0.06);
}

.dream-home-space-card.is-current {
  box-shadow: 0 0 0 2px #f2d36b, 0 8px 18px rgba(42, 36, 22, 0.06);
}

.dream-home-space-cover {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: #efe8dc;
}

.dream-home-space-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.dream-home-space-cover-empty {
  display: grid;
  place-items: center;
  height: 100%;
  color: #8a8175;
  font-size: 12px;
}

.dream-home-space-now {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f2d36b;
  color: #2a2416;
  font-size: 11px;
  font-weight: 650;
}

.dream-home-space-name {
  width: 100%;
  margin: 0;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: #2a2416;
  font: inherit;
  font-size: 15px;
  font-weight: 650;
}

.dream-home-space-name:focus {
  outline: none;
  border-radius: 6px;
  background: #fff6d6;
}

.dream-home-space-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 0 2px;
}

.dream-home-space-meta {
  margin: 0;
  min-width: 0;
  color: #8a8175;
  font-size: 11px;
  line-height: 1.35;
}

.dream-home-space-del {
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #b3aaa0;
  font-size: 11px;
}

.dream-home-space-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 168px;
  padding: 16px;
  border: 1.5px dashed #d4cbbd;
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.55);
  color: #8a8175;
  font-size: 13px;
}

.dream-home-space-plus {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #efe8dc;
  color: #2a2416;
  font-size: 22px;
  line-height: 1;
}

/* 相册（§33.3）：和空间页一样铺满顶栏下面；3 列 3:4 小图，新的在前。 */
.dream-home-hud .dream-home-album {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  background: #f7f3ec;
}

.dream-home-hud .dream-home-album.hidden,
.dream-home-album-bar.hidden,
.dream-home-album-viewer.hidden {
  display: none !important;
}

.dream-home-album-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: calc(104px + var(--safe-top) + var(--xhs-chrome-top)) 14px calc(24px + var(--safe-bottom));
}

.dream-home-album.is-selecting .dream-home-album-scroll {
  padding-bottom: calc(84px + var(--safe-bottom));
}

.dream-home-album-inner {
  max-width: 520px;
  margin: 0 auto;
}

.dream-home-album-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dream-home-album-title {
  color: #2a2416;
  font-size: 17px;
  font-weight: 700;
}

.dream-home-album-title span {
  margin-left: 8px;
  color: #8a8175;
  font-size: 12px;
  font-weight: 500;
}

.dream-home-album-select {
  border: 0;
  border-radius: 999px;
  padding: 6px 14px;
  background: #fffdf8;
  color: #2a2416;
  font-size: 13px;
  box-shadow: 0 2px 8px rgba(42, 36, 22, 0.08);
}

.dream-home-album-tip {
  margin: 6px 0 12px;
  color: #8a8175;
  font-size: 11.5px;
  line-height: 1.5;
}

.dream-home-album-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 6px;
}

.dream-home-album-cell {
  position: relative;
  display: block;
  width: 100%;
  height: 0;
  padding: 133.33% 0 0;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: #efe8dc;
}

.dream-home-album-cell img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dream-home-album-cell.is-picked img {
  opacity: 0.8;
}

.dream-home-album-check {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: rgba(42, 36, 22, 0.3);
  color: #2a2416;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

.dream-home-album-cell.is-picked .dream-home-album-check {
  background: #f2d36b;
}

.dream-home-album-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  padding: 20px;
  border: 1.5px dashed #d4cbbd;
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.55);
  color: #8a8175;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.dream-home-album-empty b {
  margin-bottom: 4px;
  color: #2a2416;
  font-size: 15px;
}

.dream-home-album-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: 10px 14px calc(10px + var(--safe-bottom));
  background: rgba(255, 253, 248, 0.97);
  box-shadow: 0 -6px 18px rgba(42, 36, 22, 0.08);
}

.dream-home-album-count {
  flex: 1;
  min-width: 0;
  color: #6b6257;
  font-size: 13px;
  white-space: nowrap;
}

.dream-home-album-btn {
  flex-shrink: 0;
  height: 36px;
  margin-left: 8px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #2a2416;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(42, 36, 22, 0.1);
}

.dream-home-album-btn.is-primary {
  background: #f2d36b;
}

.dream-home-album-btn.is-danger {
  color: #b42318;
}

.dream-home-album-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

/* 看大图：盖住整个屏幕（连顶栏），左右滑换张。 */
.dream-home-hud .dream-home-album-viewer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9;
  display: flex;
  flex-direction: column;
  padding: calc(8px + var(--safe-top) + var(--xhs-chrome-top)) 14px calc(14px + var(--safe-bottom));
  background: #f7f3ec;
  touch-action: none;
}

.dream-home-album-view-top {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  height: 40px;
}

.dream-home-album-view-meta {
  color: #6b6257;
  font-size: 13px;
}

.dream-home-album-close {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #fffdf8;
  color: #2a2416;
  font-size: 22px;
  line-height: 36px;
  box-shadow: 0 2px 8px rgba(42, 36, 22, 0.1);
}

.dream-home-album-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  margin: 8px 0 12px;
}

.dream-home-album-stage img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  -webkit-user-drag: none;
}

.dream-home-album-view-actions {
  display: flex;
  flex-shrink: 0;
  justify-content: center;
}

.dream-home-album-view-actions .dream-home-album-btn {
  flex: 1 1 0;
  max-width: 150px;
  height: 44px;
  margin: 0 5px;
  font-size: 14px;
}

.dream-home-intro,
.dream-home-confirm {
  position: absolute;
  inset: 0;
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(42, 36, 22, 0.28);
}

.dream-home-intro.hidden,
.dream-home-confirm.hidden {
  display: none !important;
}

.dream-home-intro-card,
.dream-home-confirm-card {
  width: min(360px, 100%);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  padding: 22px 20px 20px;
  border-radius: 20px;
  background: #f7f3ec;
  color: #2f2a25;
  text-align: center;
}

.dream-home-intro-logo {
  display: block;
  height: 56px;
  width: auto;
  margin: 0 auto 12px;
  object-fit: contain;
}

.dream-home-intro-kicker {
  margin: 0 0 10px;
  font-size: 14px;
  color: #8a8175;
}

.dream-home-intro-card p,
.dream-home-confirm-card p {
  margin: 0 0 18px;
  line-height: 1.6;
  color: #6b6257;
}

.dream-home-intro-go {
  border: 0;
  border-radius: 999px;
  padding: 10px 22px;
  background: #2f2a25;
  color: #f7f2ea;
}

/* 冷启动（§35）：挑一间主题房间、再挑门外的场景，住进去。 */
.dream-home-intro-card.is-pick {
  position: relative;
  width: 420px;
  max-width: 100%;
  padding: 16px 16px 16px;
  box-sizing: border-box;
}

.dream-home-intro-card.is-pick .dream-home-intro-logo {
  height: 42px;
  margin-bottom: 4px;
}

.dream-home-intro-card.is-pick .dream-home-intro-kicker {
  margin-bottom: 10px;
}

.dream-home-intro-h {
  margin: 4px 2px 8px;
  font-size: 15px;
  font-weight: 800;
  text-align: left;
  color: #3a2f20;
}

.dream-home-intro-themes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 8px;
  gap: 8px;
}

.dream-home-intro-scenes {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-gap: 6px;
  gap: 6px;
}

.dream-home-intro-theme,
.dream-home-intro-scene {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  border: 0;
  padding: 3px 3px 5px;
  border-radius: 14px;
  background: #fffdf8;
  color: #3a2f20;
  box-shadow: 0 3px 0 #e6d7bd, 0 5px 10px rgba(120, 92, 44, 0.08);
}

.dream-home-intro-theme.is-active,
.dream-home-intro-scene.is-active {
  background: #f3d46e;
  box-shadow: 0 3px 0 #d8b248;
}

.dream-home-intro-img {
  position: relative;
  display: block;
  width: 100%;
  height: 0;
  padding-bottom: 100%;
  border-radius: 11px;
  background: #efe6d6 center / cover no-repeat;
}

.dream-home-intro-theme.is-empty .dream-home-intro-img > span {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  font-weight: 700;
  color: #a08c6c;
}

.dream-home-intro-name {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  white-space: nowrap;
  overflow: hidden;
}

.dream-home-intro-scene .dream-home-intro-name {
  margin: 3px -3px 0;
  font-size: 11px;
  letter-spacing: -0.4px;
}

.dream-home-intro-card .dream-home-intro-desc {
  min-height: 20px;
  margin: 8px 2px 6px;
  font-size: 12.5px;
  line-height: 1.5;
  text-align: left;
  color: #8a7a62;
}

.dream-home-intro-card.is-pick .dream-home-intro-go {
  margin-top: 14px;
  padding: 12px 42px;
  font-size: 16px;
  font-weight: 800;
  background: #f2d36b;
  color: #2a2416;
  box-shadow: 0 3px 0 #d8b248;
}

.dream-home-intro-card .dream-home-intro-note {
  margin: 10px 0 0;
  font-size: 12px;
  color: #a0947f;
}

.dream-home-intro-close {
  position: absolute;
  right: 8px;
  top: 6px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 24px;
  line-height: 34px;
  color: #8a7a62;
}

.dream-home-intro-close.hidden {
  display: none !important;
}

/* 装修 → 风格：第一张随机，后面每种风格四个色块。 */
.dream-home-grid.is-styles,
html.dream-home-clay .dream-home-grid.is-styles {
  grid-auto-columns: 62px;
  grid-gap: 9px;
  gap: 9px;
  padding: 4px 4px 12px;
}

.dream-home-grid.is-styles .dream-home-card {
  align-items: center;
  padding: 4px 4px 5px;
  border-radius: 15px;
  background: #fffdf8;
  box-shadow: 0 3px 0 #e6d7bd, 0 5px 10px rgba(120, 92, 44, 0.08);
}

.dream-home-grid.is-styles .dream-home-card.is-active {
  background: #f3d46e;
  box-shadow: 0 3px 0 #d8b248;
}

.dream-home-style-dots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  grid-gap: 3px;
  width: 52px;
  height: 52px;
  padding: 5px;
  box-sizing: border-box;
  border-radius: 12px;
  background: #fbf6ec;
}

.dream-home-style-dots i {
  display: block;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(42, 36, 22, 0.08);
}

.dream-home-style-dots.is-dice {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3e7cf;
  color: #6b5a3e;
}

.dream-home-style-dots.is-dice svg {
  width: 30px;
  height: 30px;
}

.dream-home-grid.is-styles .dream-home-card-name {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
}

/* 摆放 →「换风格」（§35.4）：按钮上方一排八张（随机 + 七种），撑满屏宽不用滑。 */
.dream-home-stage-toggles {
  position: relative;
}

.dream-home-style-pop {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  grid-gap: 3px;
  width: calc(100vw - 32px);
  max-width: 400px;
  box-sizing: border-box;
  padding: 5px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 3px 0 #e6d7bd, 0 8px 16px rgba(120, 92, 44, 0.12), inset 0 1.5px 0 rgba(255, 255, 255, 0.9);
}

.dream-home-style-pop.hidden {
  display: none !important;
}

.dream-home-style-pop .dream-home-card.is-style {
  gap: 0;
  min-width: 0;
  padding: 4px 0 3px;
  border-radius: 14px;
}

.dream-home-style-pop .dream-home-card.is-style.is-active {
  background: #f3d46e;
  box-shadow: 0 2px 0 #d8b248;
}

.dream-home-style-pop .dream-home-style-dots {
  width: 32px;
  height: 32px;
  padding: 3px;
  grid-gap: 2px;
  border-radius: 10px;
}

.dream-home-style-pop .dream-home-style-dots i {
  border-radius: 5px;
}

.dream-home-style-pop .dream-home-style-dots.is-dice svg {
  width: 20px;
  height: 20px;
}

.dream-home-style-pop .is-style .dream-home-card-name {
  max-width: 100%;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 700;
  line-height: 13px;
}

html.dream-home-clay .dream-home-style-pop {
  background: var(--clay-face);
  box-shadow: var(--clay-raise);
}

html.dream-home-clay .dream-home-style-pop .dream-home-card.is-style.is-active {
  background: var(--clay-honey);
  box-shadow: 0 2px 0 var(--clay-honey-lip);
}

@media (min-width: 880px) {
  .dream-home-sub {
    display: block;
  }

  .dream-home-logo {
    height: 44px;
  }

  .dream-home-dock,
  .dream-home-stage-bar {
    left: 50%;
    right: auto;
    width: min(760px, calc(100% - 32px));
    transform: translateX(-50%);
  }

  .dream-home-dock {
    border-radius: 20px 20px 0 0;
    overflow: hidden;
  }

  .dream-home-stage-bar {
    padding: 0;
  }

}

html.dream-home-placing #viewport,
html.dream-home-placing #gpc-editor-3d {
  cursor: crosshair;
}

html.dream-home-album #viewport,
html.dream-home-album #gpc-editor-3d,
html.dream-home-spaces #viewport,
html.dream-home-spaces #gpc-editor-3d {
  pointer-events: none;
}

.dream-home-plan-labels {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.dream-home-plan-label {
  position: absolute;
  z-index: 5;
  min-width: 3.4em;
  height: 20px;
  margin: 0;
  border: 1px solid rgba(42, 36, 22, 0.12);
  border-radius: 10px;
  padding: 0 8px;
  background: #fff;
  color: #2a2416;
  font: 600 11px/18px system-ui, sans-serif;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  cursor: text;
}

.dream-home-plan-edit {
  position: absolute;
  z-index: 6;
  width: 4.6em;
  height: 22px;
  margin: 0;
  border: 1.5px solid #f2d36b;
  border-radius: 10px;
  padding: 0 6px;
  background: #fff;
  color: #2a2416;
  text-align: center;
  font: 600 11px/20px system-ui, sans-serif;
  box-shadow: 0 4px 12px rgba(42, 36, 22, 0.12);
  transform: translate(-50%, -50%);
  pointer-events: auto;
}

.dream-home-plan-edit:focus {
  outline: none;
}

html.dream-home-sharing #gpc-editor-3d,
html.dream-home-sharing #gpc-editor-3d canvas {
  opacity: 0;
}

@media (max-width: 430px) {
  .dream-home-logo {
    height: 34px;
  }

  .dream-home-mode {
    font-size: 13px;
    padding: 6px 8px;
  }
}

@media (max-width: 360px) {
  .dream-home-mode {
    font-size: 12px;
    padding: 6px 6px;
  }
}

/* ===== 奶油软陶界面（讨论稿 §22、§27）：只在 html.dream-home-clay 下生效，?clay=0 回到旧界面 ===== */

/* 圆体：Resource Han Rounded CN（SIL OFL 1.1，© Cyano Hao / Adobe），按界面用字裁剪。 */
@font-face {
  font-family: 'StayClay';
  src: url('fonts/stayclay-medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'StayClay';
  src: url('fonts/stayclay-bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

html.dream-home-clay {
  --clay-face: #fffaf1;
  --clay-well: #f1e8d8;
  --clay-lip: #e6d7bd;
  --clay-honey: #f3d46e;
  --clay-honey-lip: #d8b248;
  --clay-ink: #3a2f20;
  --clay-ink-soft: #7d6f5a;
  --clay-raise: 0 3px 0 var(--clay-lip), 0 8px 16px rgba(120, 92, 44, 0.12), inset 0 1.5px 0 rgba(255, 255, 255, 0.9);
  --clay-raise-honey: 0 3px 0 var(--clay-honey-lip), 0 6px 12px rgba(170, 128, 32, 0.22), inset 0 1.5px 0 rgba(255, 255, 255, 0.55);
  --clay-raise-small: 0 2px 0 var(--clay-lip), 0 4px 8px rgba(120, 92, 44, 0.1), inset 0 1px 0 #fff;
  --clay-well-shadow: inset 0 2px 4px rgba(120, 92, 44, 0.16), inset 0 -1px 0 rgba(255, 255, 255, 0.75);
  --clay-lifted: 0 0 0 2.5px var(--clay-honey), 0 3px 0 2.5px var(--clay-honey-lip), 0 8px 14px rgba(170, 128, 32, 0.2);
}

/* style.css 在后面加载、同样写了 html.dream-home-play body 的字体，这里要多一层类名才压得住。 */
html.dream-home-play.dream-home-clay,
html.dream-home-play.dream-home-clay body {
  font-family: 'StayClay', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-weight: 500;
}

/* 按下去轻轻压扁一下，不回弹。 */
html.dream-home-clay .dream-home-hud button,
html.dream-home-clay .pet-dock button {
  transition: transform 0.09s ease, box-shadow 0.09s ease, background-color 0.12s ease;
}

html.dream-home-clay .dream-home-hud button:active:not(:disabled),
html.dream-home-clay .pet-dock button:active:not(:disabled) {
  transform: translateY(1px) scale(1.02, 0.94);
}

/* 顶栏：模式标签压在一条奶油凹槽里，选中的是凸起的鹅黄块。 */
html.dream-home-clay .dream-home-top {
  background: linear-gradient(180deg, #f6efe3 0%, rgba(246, 239, 227, 0.6) 55%, rgba(246, 239, 227, 0));
}

html.dream-home-clay .dream-home-segment {
  padding: 4px;
  background: var(--clay-well);
  box-shadow: var(--clay-well-shadow);
}

html.dream-home-clay .dream-home-mode {
  color: var(--clay-ink-soft);
}

html.dream-home-clay .dream-home-mode.is-active {
  background: var(--clay-honey);
  color: var(--clay-ink);
  font-weight: 700;
  box-shadow: var(--clay-raise-honey);
}

/* 宠物爪印和宠物卡。 */
html.dream-home-clay .pet-toggle {
  border-radius: 15px;
  background: var(--clay-honey);
  color: #5d4a26;
  box-shadow: var(--clay-raise-honey);
}

html.dream-home-clay .pet-toggle[aria-expanded="true"] {
  background: #ecc653;
}

html.dream-home-clay .photo-shot {
  border-radius: 15px;
  background: var(--clay-face);
  color: var(--clay-ink);
  box-shadow: var(--clay-raise);
}

html.dream-home-clay .photo-shot .photo-shot-lens {
  fill: var(--clay-honey);
}

html.dream-home-clay .pet-card::before {
  background: var(--clay-face);
  box-shadow: 0 2px 0 var(--clay-lip), 0 5px 10px rgba(120, 92, 44, 0.1), inset 0 1px 0 #fff;
}

html.dream-home-clay .pet-name {
  font-weight: 700;
}

html.dream-home-clay .pet-stepper button {
  border: 0;
  background: var(--clay-face);
  box-shadow: var(--clay-raise-small);
}

html.dream-home-clay .pet-stepper button:not(:disabled):active {
  background: var(--clay-honey);
  box-shadow: 0 1px 0 var(--clay-honey-lip);
}

/* 画面上的圆按钮：平面 / 平视 / 阴影 / 标尺 / 看全屋 / 撤销重做。 */
html.dream-home-clay .dream-home-stage-icon,
html.dream-home-clay .dream-home-history {
  background: var(--clay-face);
  box-shadow: var(--clay-raise);
}

html.dream-home-clay .dream-home-stage-icon {
  color: rgba(58, 47, 32, 0.4);
}

html.dream-home-clay .dream-home-stage-icon.is-on {
  background: var(--clay-honey);
  color: var(--clay-ink);
  box-shadow: var(--clay-raise-honey);
}

html.dream-home-clay .dream-home-light-pop {
  background: var(--clay-face);
  box-shadow: var(--clay-raise);
}

html.dream-home-clay .dream-home-light-segs {
  background: var(--clay-well);
  box-shadow: var(--clay-well-shadow);
}

html.dream-home-clay .dream-home-light-seg {
  color: var(--clay-ink-soft);
}

html.dream-home-clay .dream-home-light-seg.is-on {
  background: var(--clay-honey);
  color: var(--clay-ink);
  box-shadow: 0 2px 0 var(--clay-honey-lip), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

html.dream-home-clay .dream-home-light-name {
  color: var(--clay-ink);
}

html.dream-home-clay .dream-home-light-sw {
  background: var(--clay-well);
  box-shadow: var(--clay-well-shadow);
}

html.dream-home-clay .dream-home-light-sw i {
  background: var(--clay-face);
  box-shadow: 0 2px 0 var(--clay-lip);
}

html.dream-home-clay .dream-home-light-sw.is-on {
  background: var(--clay-honey);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

html.dream-home-clay .dream-home-history-btn + .dream-home-history-btn {
  border-left-color: rgba(120, 92, 44, 0.12);
}

/* 细线图标加粗、圆头。 */
html.dream-home-clay .dream-home-stage-icon svg *,
html.dream-home-clay .dream-home-history-btn svg *,
html.dream-home-clay .dream-home-sel-icon--rotate svg *,
html.dream-home-clay .dream-home-sel-icon--delete svg * {
  stroke-width: 2.3px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 底部面板：一整块奶油泥板。 */
html.dream-home-clay .dream-home-dock,
html.dream-home-clay .dream-home-dock[data-dock='furnish'] {
  border-radius: 26px 26px 0 0;
  background: var(--clay-face);
  box-shadow: 0 -3px 0 #efe3cd, 0 -10px 26px rgba(120, 92, 44, 0.1), inset 0 1.5px 0 #fff;
}

html.dream-home-clay .dream-home-groups,
html.dream-home-clay .dream-home-furnish-groups,
html.dream-home-clay .dream-home-subchips,
html.dream-home-clay .dream-home-opening-track {
  background: var(--clay-well);
  box-shadow: var(--clay-well-shadow);
}

html.dream-home-clay .dream-home-groups,
html.dream-home-clay .dream-home-furnish-groups {
  padding: 4px;
}

html.dream-home-clay .dream-home-tab,
html.dream-home-clay .dream-home-cat,
html.dream-home-clay .dream-home-choice,
html.dream-home-clay .dream-home-subchip,
html.dream-home-clay .dream-home-opening-cell {
  color: var(--clay-ink-soft);
}

html.dream-home-clay .dream-home-tab.is-active,
html.dream-home-clay .dream-home-cat.is-active,
html.dream-home-clay .dream-home-choice.is-active {
  background: var(--clay-honey);
  color: var(--clay-ink);
  font-weight: 700;
  box-shadow: var(--clay-raise-honey);
}

html.dream-home-clay .dream-home-subchip.is-active,
html.dream-home-clay .dream-home-opening-cell.is-on {
  background: var(--clay-face);
  color: var(--clay-ink);
  font-weight: 700;
  box-shadow: var(--clay-raise-small);
}

/* 货架卡片：软陶小托盘，选中抬起一圈鹅黄。横向滚动容器会裁掉上下溢出，上下都留出抬起和托盘厚度的空间。 */
html.dream-home-clay .dream-home-grid,
html.dream-home-clay .dream-home-swatches {
  padding: 6px 4px 8px;
}

html.dream-home-clay .dream-home-looks,
html.dream-home-clay .dream-home-dock[data-furnish='atmosphere'] .dream-home-looks {
  padding: 6px 4px 9px;
}

html.dream-home-clay .dream-home-card-thumb,
html.dream-home-clay .dream-home-swatch-chip,
html.dream-home-clay .dream-home-look-thumb {
  border-radius: 16px;
  box-shadow: 0 3px 0 var(--clay-lip), 0 6px 12px rgba(120, 92, 44, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

html.dream-home-clay .dream-home-card-thumb {
  background-color: var(--clay-face);
}

html.dream-home-clay .dream-home-layout {
  border-radius: 18px;
  background: var(--clay-face);
  box-shadow: var(--clay-raise);
}

html.dream-home-clay .dream-home-card.is-active .dream-home-card-thumb,
html.dream-home-clay .dream-home-swatch.is-active .dream-home-swatch-chip,
html.dream-home-clay .dream-home-look.is-active .dream-home-look-thumb,
html.dream-home-clay .dream-home-layout.is-active {
  box-shadow: var(--clay-lifted);
  transform: translateY(-2px);
}

html.dream-home-clay .dream-home-layout-name {
  font-weight: 700;
}

html.dream-home-clay .dream-home-layout-size {
  color: var(--clay-ink-soft);
}

/* 尺寸输入：压进去的小凹槽。 */
html.dream-home-clay .dream-home-stepper-field,
html.dream-home-clay .dream-home-size-value {
  background: var(--clay-well);
  box-shadow: var(--clay-well-shadow);
}

html.dream-home-clay .dream-home-stepper-btn {
  background: var(--clay-face);
  box-shadow: var(--clay-raise-small);
}

html.dream-home-clay .dream-home-size-btn {
  box-shadow: 0 2px 0 var(--clay-honey-lip);
}

/* 选中家具后的操作条和颜色条。 */
html.dream-home-clay .dream-home-selection,
html.dream-home-clay .dream-home-color-track,
html.dream-home-clay .dream-home-look-panel {
  background: var(--clay-face);
  box-shadow: var(--clay-raise);
}

html.dream-home-clay .dream-home-look-parts {
  background: var(--clay-well);
  box-shadow: var(--clay-well-shadow);
}

html.dream-home-clay .dream-home-look-part {
  color: var(--clay-ink-soft);
}

html.dream-home-clay .dream-home-look-part.is-on {
  background: var(--clay-face);
  color: var(--clay-ink);
  box-shadow: var(--clay-raise-small);
}

html.dream-home-clay .dream-home-look-finish {
  color: var(--clay-ink-soft);
}

html.dream-home-clay .dream-home-look-finish.is-on {
  color: var(--clay-ink);
}

html.dream-home-clay .dream-home-look-swatch {
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

html.dream-home-clay .dream-home-look-finish.is-on .dream-home-look-swatch {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--clay-honey);
}

html.dream-home-clay .dream-home-sel-icon--rotate {
  box-shadow: 0 2.5px 0 var(--clay-honey-lip), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

html.dream-home-clay .dream-home-sel-icon--delete {
  background: var(--clay-ink);
  box-shadow: 0 2.5px 0 #1d170f, inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

html.dream-home-clay .dream-home-sel-icon--color {
  background: var(--clay-face);
  box-shadow: 0 2.5px 0 var(--clay-lip), inset 0 1px 0 #fff;
}

html.dream-home-clay .dream-home-sel-icon--color.is-on {
  background: var(--clay-honey);
  box-shadow: 0 2.5px 0 var(--clay-honey-lip);
}

html.dream-home-clay .dream-home-color-chip {
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

html.dream-home-clay .dream-home-color-chip.is-on {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--clay-honey);
}

html.dream-home-clay .dream-home-chip {
  background: var(--clay-honey);
  font-weight: 700;
  box-shadow: var(--clay-raise-honey);
}

html.dream-home-clay .dream-home-chip--ghost {
  background: var(--clay-ink);
  box-shadow: 0 3px 0 #1d170f, 0 6px 12px rgba(40, 30, 15, 0.2);
}

html.dream-home-clay .toast {
  border: 0;
  background: var(--clay-face);
  box-shadow: var(--clay-raise);
}

/* 量尺数字：系统字体、等宽数字，一眼读准。 */
html.dream-home-clay #dream-home-furnish-ruler text,
html.dream-home-clay #dream-home-wall-ruler text,
html.dream-home-clay .dream-home-plan-label,
html.dream-home-clay .dream-home-plan-edit,
html.dream-home-clay .dream-home-size-value,
html.dream-home-clay .dream-home-opening-value,
html.dream-home-clay .dream-home-stepper-value {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}

html.dream-home-clay #dream-home-furnish-ruler text,
html.dream-home-clay #dream-home-wall-ruler text {
  font-weight: 600;
}

/* ===== 底部栏收紧（§27.3）：画面上的圆按钮更小、贴近面板；面板里的标签、卡片、间距都压一档 ===== */
html.dream-home-clay .dream-home-stage-bar {
  bottom: calc(var(--dream-dock-h, 240px) + 6px);
}

html.dream-home-clay .dream-home-stage-icon,
html.dream-home-clay .dream-home-history-btn {
  width: 36px;
  height: 36px;
}

html.dream-home-clay .dream-home-stage-icon svg,
html.dream-home-clay .dream-home-history-btn svg {
  width: 18px;
  height: 18px;
}

html.dream-home-clay .dream-home-dock-main,
html.dream-home-clay .dream-home-dock[data-dock='furnish'] .dream-home-dock-main {
  padding: 6px 12px calc(6px + var(--safe-bottom));
}

html.dream-home-clay .dream-home-room-bar,
html.dream-home-clay .dream-home-furnish-bar {
  margin-bottom: 6px;
}

html.dream-home-clay .dream-home-groups,
html.dream-home-clay .dream-home-furnish-groups {
  padding: 3px;
}

html.dream-home-clay .dream-home-tab {
  padding: 6px 0;
  font-size: 13px;
  line-height: 18px;
}

html.dream-home-clay .dream-home-cats {
  height: 36px;
  margin-bottom: 6px;
  padding: 3px;
  border-radius: 999px;
  background: var(--clay-well);
  box-shadow: var(--clay-well-shadow);
}

html.dream-home-clay .dream-home-cat {
  padding: 0;
  font-size: 13px;
  line-height: 30px;
}

html.dream-home-clay .dream-home-group-body {
  height: 112px;
  max-height: 112px;
  gap: 6px;
}

html.dream-home-clay .dream-home-shelf-pane {
  height: auto;
}

html.dream-home-clay .dream-home-subchips,
html.dream-home-clay .dream-home-subslot {
  height: 30px;
}

html.dream-home-clay .dream-home-subchip {
  padding: 4px 12px;
  font-size: 12px;
  line-height: 16px;
}

html.dream-home-clay .dream-home-layout {
  padding: 6px 6px 8px;
}

html.dream-home-clay .dream-home-layout-plan {
  height: 76px;
}

html.dream-home-clay .dream-home-layout-plan svg {
  width: 100px;
  height: 75px;
  overflow: visible;
}

html.dream-home-clay .dream-home-layout-name {
  margin-top: 2px;
  color: var(--clay-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 16px;
}

html.dream-home-clay .dream-home-layout-size {
  margin-top: 1px;
  font-size: 10.5px;
  line-height: 13px;
}

html.dream-home-clay .dream-home-grid {
  grid-auto-columns: 62px;
  gap: 8px;
}

html.dream-home-clay .dream-home-card,
html.dream-home-clay .dream-home-swatch {
  gap: 3px;
}

html.dream-home-clay .dream-home-card-thumb,
html.dream-home-clay .dream-home-swatch-chip {
  width: 58px;
  height: 58px;
  border-radius: 14px;
}

html.dream-home-clay .dream-home-grid,
html.dream-home-clay .dream-home-swatches {
  padding: 5px 4px 7px;
}

html.dream-home-clay .dream-home-card-name {
  max-width: 62px;
  line-height: 12px;
}

html.dream-home-clay .dream-home-dock[data-dock='furnish'] .dream-home-shelf {
  min-height: 0;
}

html.dream-home-clay .dream-home-dock[data-dock='furnish'] .dream-home-shelf-pane {
  align-items: center;
}

html.dream-home-clay .dream-home-dock[data-furnish='atmosphere'] .dream-home-shelf {
  min-height: 0;
}

html.dream-home-clay .dream-home-look-thumb {
  width: 80px;
  height: 50px;
}

html.dream-home-clay .dream-home-look {
  gap: 4px;
}

html.dream-home-clay .dream-home-stepper-field,
html.dream-home-clay .dream-home-stepper-value {
  height: 30px;
}

@media (max-height: 700px) {
  html.dream-home-clay .dream-home-group-body {
    height: 106px;
    max-height: 106px;
  }

  html.dream-home-clay .dream-home-card-thumb,
  html.dream-home-clay .dream-home-swatch-chip {
    width: 52px;
    height: 52px;
  }

  html.dream-home-clay .dream-home-grid {
    grid-auto-columns: 56px;
  }

  html.dream-home-clay .dream-home-layout-plan {
    height: 70px;
  }

  html.dream-home-clay .dream-home-layout-plan svg {
    width: 92px;
    height: 69px;
  }
}

/* 门窗没有子标签、家具没有文字，面板高度都留给缩略图；360 宽下四扇门窗仍一排放下。 */
html.dream-home-clay .dream-home-grid.is-openings {
  grid-auto-columns: 74px;
  gap: 10px;
}

html.dream-home-clay .dream-home-grid.is-openings .dream-home-card-thumb {
  width: 72px;
  height: 72px;
  border-radius: 18px;
}

html.dream-home-clay .dream-home-dock[data-dock='furnish'] .dream-home-grid {
  grid-auto-columns: 80px;
  gap: 8px;
}

html.dream-home-clay .dream-home-dock[data-dock='furnish'] .dream-home-card-thumb {
  width: 78px;
  height: 78px;
  border-radius: 18px;
}

@media (min-width: 380px) and (min-height: 701px) {
  html.dream-home-clay .dream-home-grid.is-openings {
    grid-auto-columns: 78px;
    gap: 12px;
  }

  html.dream-home-clay .dream-home-grid.is-openings .dream-home-card-thumb {
    width: 76px;
    height: 76px;
  }
}

@media (max-height: 700px) {
  html.dream-home-clay .dream-home-grid.is-openings .dream-home-card-thumb {
    width: 70px;
    height: 70px;
  }

  html.dream-home-clay .dream-home-dock[data-dock='furnish'] .dream-home-grid {
    grid-auto-columns: 76px;
  }

  html.dream-home-clay .dream-home-dock[data-dock='furnish'] .dream-home-card-thumb {
    width: 74px;
    height: 74px;
  }
}

/* 宠物外观面板（§33）：点屋里的宠物弹出，皮肤 / 装饰两页，每页 4 列小图；画面留给这只宠物。 */
html.dream-home-pet-look-open .dream-home-dock,
html.dream-home-pet-look-open .dream-home-stage-bar,
html.dream-home-pet-look-open .dream-home-sel-stack,
html.dream-home-pet-look-open .dream-home-wall-cta {
  display: none !important;
}

html.dream-home-play.dream-home-pet-look-open .toast {
  bottom: calc(256px + var(--safe-bottom));
}

.pet-look {
  position: absolute;
  left: 50%;
  bottom: calc(12px + var(--safe-bottom));
  z-index: 7;
  box-sizing: border-box;
  width: 480px;
  max-width: calc(100% - 16px);
  padding: 10px 10px 12px;
  border-radius: 22px;
  background: #fffdf8;
  box-shadow: 0 10px 28px rgba(42, 36, 22, 0.1);
  transform: translateX(-50%);
  pointer-events: auto;
}

.pet-look.hidden,
.pet-look[hidden] {
  display: none !important;
}

.pet-look-head {
  position: relative;
  margin-bottom: 10px;
}

.pet-look .dream-home-look-parts {
  width: -webkit-max-content;
  width: max-content;
  margin: 0 auto;
}

.pet-look-follow {
  position: absolute;
  top: 50%;
  right: 0;
  display: flex;
  align-items: center;
  height: 28px;
  margin-top: -14px;
  padding: 0 11px 0 8px;
  border: 0;
  border-radius: 999px;
  background: #f2d36b;
  color: #2a2416;
}

.pet-look-follow svg {
  width: 16px;
  height: 16px;
  margin-right: 3px;
}

.pet-look-follow span {
  font-size: 12px;
  font-weight: 700;
  line-height: 28px;
}

.pet-look-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 10px 4px;
}

.pet-look-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: #7a6b55;
}

.pet-look-thumb {
  display: block;
  width: 62px;
  height: 62px;
  margin-bottom: 5px;
  border-radius: 16px;
  background: #f4ecde;
  overflow: hidden;
}

.pet-look-thumb img {
  display: block;
  width: 100%;
  height: 100%;
}

.pet-look-thumb img:not([src]) {
  visibility: hidden;
}

.pet-look-name {
  display: block;
  max-width: 100%;
  overflow: hidden;
  font-size: 11px;
  line-height: 14px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pet-look-card.is-on {
  color: #2a2416;
  font-weight: 700;
}

.pet-look-card.is-on .pet-look-thumb {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #f2d36b;
}

html.dream-home-clay .pet-look {
  background: var(--clay-face);
  box-shadow: var(--clay-raise);
}

html.dream-home-clay .pet-look-card {
  color: var(--clay-ink-soft);
}

html.dream-home-clay .pet-look-card.is-on {
  color: var(--clay-ink);
}

html.dream-home-clay .pet-look-thumb {
  background: radial-gradient(circle at 35% 28%, #fffaf0, #f3e8d4);
  box-shadow: 0 3px 0 var(--clay-lip), 0 6px 12px rgba(120, 92, 44, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

html.dream-home-clay .pet-look-card.is-on .pet-look-thumb {
  box-shadow: var(--clay-lifted);
  transform: translateY(-2px);
}

html.dream-home-clay .pet-look-follow {
  background: var(--clay-honey);
  color: var(--clay-ink);
  box-shadow: var(--clay-raise-honey);
}

/* 跟拍（§33.2）：屏幕上只留退出和快门，3:4 取景框外压暗一点。 */
html.dream-home-following .dream-home-top,
html.dream-home-following .pet-dock,
html.dream-home-following .dream-home-dock,
html.dream-home-following .dream-home-stage-bar,
html.dream-home-following .dream-home-sel-stack,
html.dream-home-following .dream-home-wall-cta,
html.dream-home-following .pet-look {
  display: none !important;
}

html.dream-home-play.dream-home-following .toast {
  bottom: calc(118px + var(--safe-bottom));
}

.follow-frame {
  position: fixed;
  z-index: 0;
  display: none;
  border-radius: 2px;
  box-shadow: 0 0 0 100vmax rgba(24, 18, 10, 0.22);
  pointer-events: none;
}

.follow-frame.is-on {
  display: block;
}

.follow-bar {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 8;
  pointer-events: none;
}

.follow-bar.hidden,
.follow-bar[hidden] {
  display: none !important;
}

.follow-bar .follow-exit {
  position: absolute;
  top: calc(12px + var(--safe-top) + var(--xhs-chrome-top));
  left: 12px;
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.94);
  color: #2a2416;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(42, 36, 22, 0.16);
  pointer-events: auto;
}

.follow-bar .follow-shot {
  position: absolute;
  left: 50%;
  bottom: calc(28px + var(--safe-bottom));
  width: 68px;
  height: 68px;
  margin-left: -34px;
  padding: 15px;
  border: 4px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  background: #f2d36b;
  color: #3a2f20;
  box-shadow: 0 6px 18px rgba(42, 36, 22, 0.25);
  pointer-events: auto;
}

.follow-shot svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.follow-shot .photo-shot-lens {
  fill: #fffaf1;
}

/* ---------- 户外（§34.19）：摆放里出门是户外物件的货架（§34.28）；装修里是「场景」这一组。撤销、标尺、平面 / 平视在户外不用。 ---------- */
html.dream-home-outdoor .dream-home-history,
html.dream-home-outdoor #btnRuler,
html.dream-home-outdoor #btnStyle,
html.dream-home-outdoor .dream-home-stage-views {
  display: none !important;
}

/* 太阳旁边的「素材」：点开户外物件货架，再点收起（§34.30）。收着时下面的按钮和选中条贴到底。屋里标尺旁边的「换风格」也是这种胶囊（§35.4）。 */
.dream-home-stage-assets,
.dream-home-stage-style {
  width: auto;
  padding: 0 15px 0 12px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.dream-home-stage-assets svg,
.dream-home-stage-style svg {
  flex: 0 0 auto;
}

.dream-home-stage-assets span,
.dream-home-stage-style span {
  margin-left: 5px;
}

.dream-home-stage-assets.hidden {
  display: none !important;
}

html.dream-home-clay .dream-home-stage-assets,
html.dream-home-clay .dream-home-stage-style {
  width: auto;
  padding: 0 14px 0 11px;
  white-space: nowrap;
  color: var(--clay-ink);
}

html.dream-home-shelf-shut .dream-home-stage-bar {
  bottom: calc(14px + var(--safe-bottom, 0px));
}

html.dream-home-shelf-shut .dream-home-sel-stack {
  bottom: calc(var(--dream-stage-h, 0px) + 14px + var(--safe-bottom, 0px));
}

/* 户外物件只有三四个颜色：颜色条缩到刚好装下，居中。 */
.dream-home-color-track.is-few {
  display: flex;
  justify-content: center;
  width: auto;
  padding: 8px 9px;
  border-radius: 999px;
}

.dream-home-color-track.is-few .dream-home-color-chip {
  width: 26px;
  height: 26px;
  margin: 0 6px;
}

html.dream-home-clay .dock-btn {
  border-radius: 15px;
  background: var(--clay-face);
  color: var(--clay-ink);
  box-shadow: var(--clay-raise);
}

html.dream-home-clay .music-btn[aria-pressed="false"] {
  color: var(--clay-ink-soft);
}

html.dream-home-clay .out-btn.is-out {
  background: var(--clay-honey);
  box-shadow: var(--clay-raise-honey);
}

/* 季节、天气：一排胶囊按钮，选中的是鹅黄。 */
.dream-home-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 10px 12px 14px;
}

.dream-home-option {
  flex: none;
  margin: 4px;
  padding: 0 14px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: #fffdf8;
  color: #5b4d36;
  font-size: 14px;
  font-weight: 600;
  line-height: 38px;
  white-space: nowrap;
  box-shadow: 0 3px 0 #e6d7bd, 0 6px 12px rgba(120, 92, 44, 0.08);
}

.dream-home-option.is-active {
  background: #f3d46e;
  color: #3a2f20;
  font-weight: 700;
  box-shadow: 0 3px 0 #d8b248, inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

html.dream-home-clay .dream-home-option {
  background: var(--clay-face);
  color: var(--clay-ink-soft);
  box-shadow: var(--clay-raise);
}

html.dream-home-clay .dream-home-option.is-active {
  background: var(--clay-honey);
  color: var(--clay-ink);
  box-shadow: var(--clay-raise-honey);
}

html.dream-home-clay .dream-home-light-segs.is-weather {
  margin-left: 2px;
}

/* 户外的太阳弹层：上一排时间，下一排天气。 */
html.dream-home-outdoor .dream-home-light-pop {
  flex-direction: column;
  align-items: flex-start;
  height: auto;
  padding: 5px;
  border-radius: 24px;
}

html.dream-home-outdoor .dream-home-light-segs.is-weather {
  margin: 6px 0 0;
}

/* 场景卡片（§34.32）：一排六张，上面整座小图、下面名字，手机上不用左右滑；场景这一组的面板高一点，卡片的影子不被裁掉。 */
.dream-home-grid.is-scenes,
html.dream-home-clay .dream-home-grid.is-scenes {
  grid-auto-flow: row;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-columns: auto;
  grid-gap: 7px;
  gap: 7px;
  width: 100%;
  max-width: 440px;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 4px 2px 12px;
  overflow: visible;
}

.dream-home-grid.is-scenes .dream-home-card {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  min-width: 0;
  padding: 3px 3px 5px;
  border-radius: 15px;
  background: #fffdf8;
  box-shadow: 0 3px 0 #e6d7bd, 0 5px 10px rgba(120, 92, 44, 0.08);
}

.dream-home-grid.is-scenes .dream-home-card.is-active {
  background: #f3d46e;
  box-shadow: 0 3px 0 #d8b248;
}

.dream-home-grid.is-scenes .dream-home-card-name {
  max-width: none;
  margin: 4px -3px 0;
  overflow: visible;
  text-overflow: clip;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: -0.3px;
  text-align: center;
  white-space: nowrap;
}

.dream-home-grid.is-scenes.is-bare .dream-home-card-name {
  display: none;
}

.dream-home-grid.is-scenes.is-bare .dream-home-card {
  padding: 3px;
}

.dream-home-grid.is-scenes .dream-home-card-thumb,
html.dream-home-clay .dream-home-grid.is-scenes .dream-home-card-thumb {
  width: 100%;
  height: 0;
  padding-bottom: 100%;
  border-radius: 12px;
  background-size: cover;
  box-shadow: none;
}

html.dream-home-clay .dream-home-grid.is-scenes .dream-home-card {
  background: var(--clay-face);
  box-shadow: 0 3px 0 var(--clay-lip), 0 5px 10px rgba(120, 92, 44, 0.1), inset 0 1.5px 0 rgba(255, 255, 255, 0.9);
}

html.dream-home-clay .dream-home-grid.is-scenes .dream-home-card.is-active {
  background: var(--clay-honey);
  box-shadow: var(--clay-raise-honey);
}

html.dream-home-clay .dream-home-group-body.is-scene-body {
  height: 132px;
  max-height: 132px;
}

