@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #0d0d0f;
  --bg-elevated: #141418;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: rgba(255, 255, 255, 0.95);
  --text-soft: rgba(255, 255, 255, 0.72);
  --text-muted: rgba(255, 255, 255, 0.5);
  --accent: #c9a962;
  --accent-soft: rgba(201, 169, 98, 0.25);
  --accent-glow: rgba(201, 169, 98, 0.15);
  --warm: #e8dcc8;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ========== 动效关键帧 ========== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes gradientShift {
  0%, 100% { opacity: 1; filter: brightness(1); }
  50% { opacity: 0.92; filter: brightness(1.15); }
}
@keyframes btnGlow {
  0%, 100% { box-shadow: 0 12px 36px var(--accent-soft), 0 0 0 0 rgba(201, 169, 98, 0.2); }
  50% { box-shadow: 0 16px 48px rgba(201, 169, 98, 0.4), 0 0 30px 2px rgba(201, 169, 98, 0.15); }
}
@keyframes bgFloat {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 1; }
  33% { transform: translate(2%, -1%) scale(1.03); opacity: 0.95; }
  66% { transform: translate(-1%, 2%) scale(0.97); opacity: 0.98; }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes progressPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}
@keyframes glow {
  0%, 100% { box-shadow: 0 12px 32px var(--accent-soft); }
  50% { box-shadow: 0 12px 48px rgba(201, 169, 98, 0.35); }
}
@keyframes cardReveal {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
::selection {
  background: var(--accent-soft);
  color: var(--text);
}
body {
  font-family: 'Noto Sans SC', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

/* 背景层次：简约但丰富 + 轻微动效 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 50% -10%, var(--accent-glow), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 80%, rgba(201, 169, 98, 0.06), transparent 50%),
    radial-gradient(ellipse 50% 30% at 0% 60%, rgba(255, 255, 255, 0.03), transparent 45%);
  pointer-events: none;
  z-index: 0;
  animation: bgFloat 18s ease-in-out infinite;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 72px;
  position: relative;
  z-index: 1;
  animation: fadeIn 0.6s var(--ease-out-expo) both;
}

/* 顶栏 */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0 28px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text);
  transition: opacity var(--transition);
}
.brand:hover { opacity: 0.95; }
.brand:hover .brand-badge {
  transform: scale(1.04);
  animation: glow 2.5s ease-in-out infinite;
}
.brand-badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--accent) 0%, #a68b4a 100%);
  box-shadow: 0 12px 32px var(--accent-soft);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 15px;
  color: #0d0d0f;
  letter-spacing: -0.5px;
  transition: transform var(--transition);
}
.brand-title {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--text);
}
.nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.nav a {
  color: var(--text-soft);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color var(--transition);
}
.nav a:hover { color: var(--text); }

/* 主标题区 */
.hero {
  padding: 48px 0 40px;
  text-align: left;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  margin: 0 0 20px;
  font-size: 3.25rem;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text);
}
.hero h1 .gradient {
  display: inline-block;
  background: linear-gradient(135deg, var(--warm) 0%, var(--accent) 50%, var(--warm) 100%);
  background-size: 200% 100%;
  background-position: 0% 0;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease-in-out infinite, gradientShine 6s ease-in-out infinite;
}
@keyframes gradientShine {
  0%, 100% { background-position: 0% 0; }
  50% { background-position: 100% 0; }
}
.hero p {
  margin: 0 0 28px;
  color: var(--text-soft);
  font-size: 1.0625rem;
  line-height: 1.75;
  max-width: 42ch;
}
/* ========== 首页专用布局 ========== */
.container--home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 28px 28px 40px;
}
.container--home .topbar {
  padding: 0 0 24px;
  flex-shrink: 0;
}
.hero-wrap {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1000px;
  margin: 96px auto 40px;
  width: 100%;
}
.hero-single {
  padding: 20px 0 32px;
  max-width: 480px;
}
.hero-label {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 14px;
  background: rgba(201, 169, 98, 0.12);
  border: 1px solid rgba(201, 169, 98, 0.25);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  animation: fadeInUp 0.7s var(--ease-out-expo) 0.05s both;
}
.hero-single h1 {
  margin-bottom: 20px;
  font-size: 2.85rem;
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.12s both;
}
.hero-single .hero-desc {
  margin-bottom: 28px;
  max-width: 38ch;
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.22s both;
}
.hero-single .btnrow {
  margin-top: 28px;
  margin-bottom: 32px;
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.32s both;
}
.hero-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.42s both;
}
.hero-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
}
.hero-features__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  opacity: 0.9;
}
.hero-visual {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.9s var(--ease-out-expo) 0.2s both;
}
.hero-visual__frame {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4 / 3;
  background: linear-gradient(165deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.25);
}
.hero-visual__inner {
  position: absolute;
  inset: 12px;
  border-radius: 12px;
  background: 
    linear-gradient(135deg, rgba(201, 169, 98, 0.08) 0%, transparent 50%),
    linear-gradient(200deg, var(--bg-elevated) 0%, var(--bg) 100%);
}

.hero-carousel {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  overflow: hidden;
}

.hero-carousel__track {
  height: 100%;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}
.hero-carousel__track::-webkit-scrollbar { display: none; } /* Chromium/Safari */

.hero-carousel__slide {
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.hero-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-carousel__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 10px;
  pointer-events: auto;
}

.hero-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.10);
  padding: 0;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
}
.hero-carousel__dot:hover { transform: scale(1.08); }
.hero-carousel__dot.is-active {
  background: rgba(201, 169, 98, 0.75);
  border-color: rgba(201, 169, 98, 0.9);
}

.hero-carousel__nav {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 4;
  width: 26%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.hero-carousel__nav--prev {
  left: 0;
}

.hero-carousel__nav--next {
  right: 0;
}

.hero-carousel__nav::before {
  content: '';
  position: absolute;
  top: 50%;
  width: 34px;
  height: 54px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity var(--transition), background var(--transition), transform var(--transition);
}

.hero-carousel__nav--prev::before {
  left: 14px;
}

.hero-carousel__nav--next::before {
  right: 14px;
}

.hero-carousel__nav::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  border-top: 2px solid rgba(255, 255, 255, 0.82);
  opacity: 0;
  transform: translateY(-50%) rotate(-45deg);
  transition: opacity var(--transition), transform var(--transition);
}

.hero-carousel__nav--prev::after {
  left: 27px;
  border-left: 2px solid rgba(255, 255, 255, 0.82);
}

.hero-carousel__nav--next::after {
  right: 27px;
  border-right: 2px solid rgba(255, 255, 255, 0.82);
  border-left: 0;
  transform: translateY(-50%) rotate(45deg);
}

.hero-carousel:hover .hero-carousel__nav::before,
.hero-carousel:hover .hero-carousel__nav::after,
.hero-carousel__nav:focus-visible::before,
.hero-carousel__nav:focus-visible::after {
  opacity: 1;
}

.hero-carousel__nav:hover::before,
.hero-carousel__nav:focus-visible::before {
  background: rgba(255, 255, 255, 0.18);
}
.hero-visual__accent {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
  pointer-events: none;
}
.hero-visual__accent--1 {
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  top: 15%;
  right: 10%;
  animation: floatSoft 8s ease-in-out infinite;
}
.hero-visual__accent--2 {
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(201, 169, 98, 0.2) 0%, transparent 70%);
  bottom: 25%;
  left: 5%;
  animation: floatSoft 10s ease-in-out infinite 1s;
}
.hero-visual__accent--3 {
  width: 50px;
  height: 50px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  bottom: 15%;
  right: 20%;
  animation: floatSoft 7s ease-in-out infinite 0.5s;
}
@keyframes floatSoft {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(8px, -10px); }
}
.footer--home {
  flex-shrink: 0;
  margin-top: 0;
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
}
.footer__brand {
  font-weight: 600;
  color: var(--text-soft);
  font-size: 0.875rem;
}
.footer__divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.6;
}
.footer__tagline {
  color: var(--text-muted);
  font-size: 0.8125rem;
}
.login-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 40;
}
.login-backdrop.is-open {
  display: flex;
  animation: fadeIn 0.3s var(--ease-out-expo) both;
}
.login-dialog {
  width: 100%;
  max-width: 430px;
  background: var(--bg-elevated);
  border-radius: 22px;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  padding: 26px 22px 22px;
  animation: fadeInUp 0.35s var(--ease-out-expo) 0.05s both;
  position: relative;
}
.login-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  font-size: 22px;
  line-height: 32px;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.login-close:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.login-title {
  margin: 0 0 18px;
  font-size: 1.15rem;
  font-weight: 650;
  text-align: center;
}

.login-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 0 0 16px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
}

.login-tab {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
}

.login-tab.is-active {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.login-mode-panel.is-hidden {
  display: none;
}

.login-field {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 16px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.login-country {
  color: var(--text-soft);
  font-weight: 600;
  padding-right: 12px;
  border-right: 1px solid var(--border);
}

.login-field__input {
  flex: 1;
  min-height: 48px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 0.95rem;
}
.login-field__input::placeholder { color: var(--text-muted); }

.login-field--textarea {
  min-height: 86px;
  align-items: stretch;
  border-radius: 18px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.login-field--textarea textarea.login-field__input {
  min-height: 66px;
  resize: none;
  line-height: 1.5;
}

.login-getcode {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font-weight: 650;
  color: var(--accent);
}
.login-getcode:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-login {
  width: 100%;
  height: 54px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 750;
  font-size: 1.02rem;
  color: #fff;
  background: linear-gradient(145deg, var(--accent) 0%, #a68b4a 100%);
  box-shadow: 0 12px 36px var(--accent-soft);
  transition: transform var(--transition), filter var(--transition), box-shadow var(--transition);
}
.btn-login:hover { transform: translateY(-1px); filter: brightness(1.03); box-shadow: 0 16px 46px rgba(201, 169, 98, 0.42); }
.btn-login:active { transform: translateY(0px) scale(0.99); }

.login-terms {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.login-terms input { margin-top: 3px; }
.login-link {
  color: var(--text-soft);
  text-decoration: none;
}
.login-link:hover { color: var(--text); text-decoration: underline; }

.login-footer {
  text-align: center;
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 0.82rem;
}
.login-status {
  min-height: 18px;
  margin-top: 10px;
  color: #d85b5b;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
}
.login-profile {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}
.login-logout {
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
}
.login-logout:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.14);
}
.nav-link {
  color: var(--text-soft);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color var(--transition);
}
.nav-link:hover { color: var(--text); }
.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: border-color var(--transition), background var(--transition);
}
.hero-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
}
.hero-card h3 {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}
.pillrow { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-weight: 500;
  font-size: 0.8125rem;
}

/* 区块 */
.section { margin-top: 36px; }
.section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s var(--ease-out-expo) 0.05s both;
}
.section-title h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.section-title p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
}
.progress {
  animation: fadeInUp 0.5s var(--ease-out-expo) both;
}

/* 网格与卡片 */
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-step5 {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr);
  gap: 24px;
  align-items: flex-start;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: background 0.3s var(--ease-out-expo), border-color 0.3s var(--ease-out-expo), transform 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-out-expo);
}
.card:hover { background: var(--bg-card-hover); }
.card.clickable {
  cursor: pointer;
}
.card.clickable:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(201, 169, 98, 0.4);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(201, 169, 98, 0.1);
}
.card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}
.card h3 { margin: 0 0 8px; font-size: 1rem; font-weight: 600; color: var(--text); }
.card p { margin: 0; color: var(--text-soft); font-size: 0.875rem; line-height: 1.6; }

/* Step5 家具卡片：限制单卡最大宽度，可纵向滚动；宽度适配内容使滚动条紧贴卡片 */
#furnitureGrid,
#enterpriseFurnitureGrid {
  grid-template-columns: repeat(3, minmax(100px, 140px));
  max-height: 420px;
  width: fit-content;
  max-width: 100%;
  overflow-y: scroll;
  overflow-x: hidden;
  padding-right: 6px;
  gap: 12px;
  scrollbar-gutter: stable;
}
#furnitureGrid::-webkit-scrollbar,
#enterpriseFurnitureGrid::-webkit-scrollbar {
  width: 8px;
}
#furnitureGrid::-webkit-scrollbar-track,
#enterpriseFurnitureGrid::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
}
#furnitureGrid::-webkit-scrollbar-thumb,
#enterpriseFurnitureGrid::-webkit-scrollbar-thumb {
  background: rgba(201, 169, 98, 0.5);
  border-radius: 4px;
}
#furnitureGrid::-webkit-scrollbar-thumb:hover,
#enterpriseFurnitureGrid::-webkit-scrollbar-thumb:hover {
  background: rgba(201, 169, 98, 0.7);
}
.library-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
  margin-bottom: 14px;
}
.library-btn {
  border: 0;
  background: transparent;
  color: var(--text-soft);
  font-size: 0.875rem;
  font-weight: 700;
  min-height: 34px;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.library-btn:hover { color: var(--text); }
.library-btn.active {
  color: #fff;
  background: linear-gradient(180deg, #2ea8ff 0%, #0a84ff 100%);
  box-shadow: 0 6px 16px rgba(10, 132, 255, 0.28);
}
.vendor-chips {
  margin-bottom: 2px;
}
.step5-library-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.step5-pagination {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.step5-page-btn {
  min-height: 38px;
  min-width: 92px;
  padding: 0 16px;
  font-size: 0.84rem;
}
.step5-page-status {
  min-width: 88px;
  text-align: center;
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 700;
}
.furniture-card {
  padding: 8px;
  aspect-ratio: auto;
  max-width: 140px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.furniture-card h3 {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.2;
}
.furniture-card p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-soft);
}
.furn-media {
  flex: 1;
  min-height: 70px;
  width: 100%;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.furn-media img {
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.35));
}
.furn-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.7);
  background:
    radial-gradient(ellipse 60% 40% at 50% 30%, rgba(201, 169, 98, 0.10), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
}
.furn-meta {
  display: grid;
  gap: 4px;
  min-height: 74px;
}
.furn-hint {
  margin-top: 2px;
  font-size: 0.75rem;
  opacity: 0.85;
}

/* Step5 智能布局 / 手动布局 切换 */
.layout-mode-toggle {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  padding: 4px;
  width: fit-content;
}
.layout-mode-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.layout-mode-btn:hover { color: var(--text); }
.layout-mode-btn.active {
  background: var(--accent-soft);
  color: var(--accent);
}
.layout-mode-hint {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 0.875rem;
}
.layout-panel.is-hidden { display: none !important; }

/* Step5 手动布局：拖放区域与家具条 */
.manual-layout-wrap {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 20px;
  align-items: start;
}
.manual-drop-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elevated);
  border: 2px solid var(--border-strong);
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.manual-drop-wrap.dragover { border-color: var(--accent); background: var(--accent-soft); }
#manualCanvas {
  display: block;
  width: 100% !important;
  height: 480px !important;
  max-height: 600px;
  border-radius: var(--radius);
}
.manual-base-img {
  width: 100%;
  display: block;
  max-height: 420px;
  object-fit: contain;
  pointer-events: none;
}
.manual-placements {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.manual-placement-item {
  position: absolute;
  width: 72px;
  height: 72px;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--accent);
  background: var(--bg-card);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.manual-placement-item.manual-placement-draggable {
  cursor: grab;
}
.manual-placement-item.manual-placement-draggable:active {
  cursor: grabbing;
}
.manual-placement-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.manual-placement-del {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.manual-placement-del:hover { background: rgba(200,80,80,0.9); }
.manual-furniture-strip .hint { margin-bottom: 10px; font-size: 0.8125rem; color: var(--text-soft); }
.manual-furniture-strip .library-switch { margin-bottom: 12px; }
.manual-furniture-strip .chips { margin-bottom: 12px; }
.manual-furniture-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 4px;
}
.manual-furniture-list::-webkit-scrollbar {
  width: 6px;
}
.manual-furniture-list::-webkit-scrollbar-track {
  background: var(--bg-card);
  border-radius: 3px;
}
.manual-furniture-list::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 3px;
}
.manual-furniture-list::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}
.manual-draggable {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: grab;
  font-size: 0.875rem;
  color: var(--text);
  transition: all 0.2s ease;
}
.manual-draggable:active { cursor: grabbing; transform: scale(0.98); }
.manual-draggable:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  box-shadow: 0 4px 12px rgba(201, 169, 98, 0.15);
}
.manual-draggable img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  padding: 4px;
}
.manual-actions { margin-top: 16px; }

@media (max-width: 960px) {
  .manual-layout-wrap { grid-template-columns: 1fr; }
  .manual-furniture-list { max-height: 220px; }
}

/* 步骤页卡片依次出现 */
.section .grid .card {
  animation: cardReveal 0.55s var(--ease-out-expo) both;
}
.section .grid .card:nth-child(1) { animation-delay: 0.03s; }
.section .grid .card:nth-child(2) { animation-delay: 0.08s; }
.section .grid .card:nth-child(3) { animation-delay: 0.13s; }
.section .grid .card:nth-child(4) { animation-delay: 0.18s; }
.section .grid .card:nth-child(5) { animation-delay: 0.23s; }
.section .grid .card:nth-child(6) { animation-delay: 0.28s; }
.section .grid .card:nth-child(7) { animation-delay: 0.33s; }
.section .grid .card:nth-child(8) { animation-delay: 0.38s; }
.section .grid .card:nth-child(9) { animation-delay: 0.43s; }
.section .grid .card:nth-child(10) { animation-delay: 0.48s; }
.section .grid .card:nth-child(11) { animation-delay: 0.53s; }
.section .grid .card:nth-child(12) { animation-delay: 0.58s; }
.section .grid .card:nth-child(13) { animation-delay: 0.63s; }
.section .grid .card:nth-child(14) { animation-delay: 0.68s; }
.section .grid .card:nth-child(15) { animation-delay: 0.73s; }
.section .grid .card:nth-child(16) { animation-delay: 0.78s; }

/* 按钮 */
.btnrow { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 14px 24px;
  border-radius: 14px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-out-expo), background 0.3s ease, border-color 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: linear-gradient(145deg, var(--accent) 0%, #a68b4a 100%);
  color: #0d0d0f;
  box-shadow: 0 12px 36px var(--accent-soft);
  animation: btnGlow 2.5s ease-in-out infinite;
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 20px 56px rgba(201, 169, 98, 0.35);
  animation: none;
}
.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover {
  transform: translateY(-2px);
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
}
.btn-danger {
  background: rgba(220, 100, 100, 0.12);
  color: #fff;
  border: 1px solid rgba(220, 100, 100, 0.25);
}
.btn-danger:hover {
  transform: translateY(-2px);
  background: rgba(220, 100, 100, 0.18);
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

/* 进度条 */
.progress {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.progress .labels { display: flex; gap: 12px; flex-wrap: wrap; }
.progress .labels span {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.3s var(--ease-out-expo);
}
.progress .labels span.active { color: var(--accent); font-weight: 600; }
.bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  flex: 1;
}
.bar > div {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #a68b4a);
  width: 0%;
  transition: width 0.5s var(--ease-out-expo);
  position: relative;
}
.bar > div[style*="width: 100%"],
.bar > div[style*="width:100%"] {
  animation: progressPulse 2s ease-in-out infinite;
}
.bar > div::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  background-size: 50% 100%;
  animation: shimmer 2.5s ease-in-out infinite;
  pointer-events: none;
}

/* 表单与提示 */
.hint { color: var(--text-muted); font-size: 0.8125rem; line-height: 1.6; }

.step-task-status {
  position: relative;
  margin: 18px 0 24px;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(10, 132, 255, 0.16);
  background: linear-gradient(135deg, rgba(248, 251, 255, 0.98) 0%, rgba(240, 247, 255, 0.96) 100%);
  box-shadow: 0 16px 36px rgba(10, 132, 255, 0.12);
  overflow: hidden;
}

.step-task-status::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #0a84ff 0%, #6cb6ff 100%);
}

.step-task-status__main {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.step-task-status__icon {
  position: relative;
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(10, 132, 255, 0.16) 0%, rgba(10, 132, 255, 0.1) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.step-task-status__icon::before {
  content: '';
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  border: 2px solid rgba(10, 132, 255, 0.24);
  border-top-color: #0a84ff;
  animation: spin 0.9s linear infinite;
}

.step-task-status__content {
  flex: 1;
  min-width: 0;
}

.step-task-status__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.step-task-status__badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(10, 132, 255, 0.1);
  color: #0a84ff;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.step-task-status__meta {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 600;
}

.step-task-status__title {
  display: block;
  margin-bottom: 8px;
  color: #0f172a;
  font-size: 1.08rem;
  line-height: 1.4;
}

.step-task-status__detail {
  margin: 0;
  color: #475467;
  font-size: 0.94rem;
  line-height: 1.7;
}

.step-task-status__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.step-task-status__fact {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.74);
  color: #334155;
  font-size: 0.82rem;
  font-weight: 600;
}

.step-task-status__progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.step-task-status__progress-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.76);
  color: #64748b;
  font-size: 0.84rem;
  font-weight: 700;
}

.step-task-status__progress-item::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(100, 116, 139, 0.3);
  flex: 0 0 10px;
}

.step-task-status__progress-item.is-done {
  color: #0f172a;
  border-color: rgba(10, 132, 255, 0.18);
  background: rgba(236, 245, 255, 0.96);
}

.step-task-status__progress-item.is-done::before {
  background: #0a84ff;
}

.step-task-status__progress-item.is-active {
  color: #0a84ff;
  border-color: rgba(10, 132, 255, 0.28);
  background: linear-gradient(180deg, rgba(240, 247, 255, 1) 0%, rgba(232, 242, 255, 1) 100%);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.08);
}

.step-task-status__progress-item.is-active::before {
  background: #0a84ff;
  box-shadow: 0 0 0 6px rgba(10, 132, 255, 0.12);
}

.step-task-status__progress-item.is-error {
  color: #c2410c;
  border-color: rgba(194, 65, 12, 0.18);
  background: rgba(255, 247, 237, 0.98);
}

.step-task-status__progress-item.is-error::before {
  background: #ea580c;
}

.step-task-status.is-success {
  border-color: rgba(22, 163, 74, 0.18);
  background: linear-gradient(135deg, rgba(247, 255, 250, 0.98) 0%, rgba(239, 253, 245, 0.98) 100%);
  box-shadow: 0 16px 36px rgba(22, 163, 74, 0.1);
}

.step-task-status.is-success::before {
  background: linear-gradient(180deg, #16a34a 0%, #4ade80 100%);
}

.step-task-status.is-success .step-task-status__badge {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}

.step-task-status.is-success .step-task-status__icon {
  background: linear-gradient(180deg, rgba(22, 163, 74, 0.16) 0%, rgba(22, 163, 74, 0.1) 100%);
}

.step-task-status.is-success .step-task-status__icon::before {
  content: '✓';
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #15803d;
  font-size: 1.2rem;
  font-weight: 900;
  animation: none;
}

.step-task-status.is-error {
  border-color: rgba(220, 38, 38, 0.16);
  background: linear-gradient(135deg, rgba(255, 249, 249, 0.98) 0%, rgba(255, 243, 243, 0.98) 100%);
  box-shadow: 0 16px 36px rgba(220, 38, 38, 0.08);
}

.step-task-status.is-error::before {
  background: linear-gradient(180deg, #dc2626 0%, #fb7185 100%);
}

.step-task-status.is-error .step-task-status__badge {
  background: rgba(220, 38, 38, 0.1);
  color: #b42318;
}

.step-task-status.is-error .step-task-status__icon {
  background: linear-gradient(180deg, rgba(220, 38, 38, 0.14) 0%, rgba(220, 38, 38, 0.08) 100%);
}

.step-task-status.is-error .step-task-status__icon::before {
  content: '!';
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #c2410c;
  font-size: 1.25rem;
  font-weight: 900;
  animation: none;
}

.btn.is-loading:disabled {
  opacity: 1;
  cursor: wait;
}

.btn.is-loading::after {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(13, 13, 15, 0.24);
  border-top-color: #0d0d0f;
  animation: spin 0.9s linear infinite;
}

@media (max-width: 840px) {
  .step-task-status {
    padding: 16px;
  }

  .step-task-status__main {
    gap: 12px;
  }

  .step-task-status__icon {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .step-task-status__icon::before {
    inset: 12px;
  }

  .step-task-status__progress {
    grid-template-columns: 1fr;
  }
}

/* Step3：材质卡片内的文生图占位输入 */
.t2i {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.10);
}
.t2i--section {
  margin-top: 8px;
  padding-top: 0;
  border-top: 0;
}
.t2i-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.t2i-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.t2i-input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition), background var(--transition);
}
.t2i-input::placeholder { color: rgba(255, 255, 255, 0.45); }
.t2i-input:focus {
  border-color: rgba(201, 169, 98, 0.45);
  background: rgba(201, 169, 98, 0.06);
}
.t2i-btn {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.875rem;
  white-space: nowrap;
}

/* 上传区 */
.dropzone {
  border: 2px dashed var(--border-strong);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-align: center;
  transition: border-color var(--transition), background var(--transition);
}
.dropzone:hover {
  border-color: rgba(201, 169, 98, 0.5);
  background: rgba(201, 169, 98, 0.06);
}
.dropzone.dragover {
  border-color: var(--accent);
  background: var(--accent-soft);
  animation: progressPulse 1.2s ease-in-out infinite;
}
.dropzone-hint {
  padding: 28px 12px;
}
.dropzone-preview {
  margin-top: 0;
  border-radius: calc(var(--radius-lg) - 6px);
  overflow: hidden;
  display: none;
  position: relative;
}
.dropzone-preview img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  display: block;
  background: var(--bg-elevated);
}
.dropzone-preview-actions {
  margin-top: 12px;
  text-align: center;
}
.dropzone-preview-btn {
  font-size: 0.875rem;
  padding: 10px 20px;
}
.thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.thumb {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  position: relative;
  aspect-ratio: 4 / 3;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb button {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  transition: background var(--transition);
}
.thumb button:hover { background: rgba(0, 0, 0, 0.75); }

/* 预览图 */
.preview {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-elevated);
}
.preview img, .preview canvas { width: 100%; display: block; }
.preview--step5 {
  max-height: 420px;
}
.preview--step5 img {
  object-fit: contain;
  background: var(--bg-elevated);
}
.step6-furniture-preview {
  max-height: 380px;
  margin-bottom: 24px;
  position: relative;
}
.step6-loading {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 200px;
  padding: 32px 24px;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  color: var(--text-soft);
  text-align: center;
}
.step6-loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
.step6-loading p {
  margin: 0;
  font-size: 0.95rem;
}
.step6-loading-copy {
  display: grid;
  gap: 6px;
  width: min(100%, 460px);
  justify-items: center;
}
.step6-loading-title {
  display: block;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  color: #1c2a43;
}
.step6-loading-detail {
  max-width: 30ch;
  line-height: 1.6;
  color: #50617d;
}
.step6-loading-stages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(100%, 420px);
}
.step6-loading-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.66);
  color: #4f617c;
  font-size: 0.82rem;
  line-height: 1;
  white-space: nowrap;
}
.step6-furniture-preview img {
  object-fit: contain;
  background: var(--bg-elevated);
  max-height: 340px;
  width: 100%;
}
.step7-preview {
  position: relative;
  min-height: 200px;
  transition: opacity 0.6s ease-out;
}
.preview-caption {
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* 分类标签 */
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-soft);
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease-out-expo);
}
.chip:hover {
  color: var(--text);
  background: var(--bg-card-hover);
  transform: scale(1.03);
}
.chip.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  transform: scale(1.02);
}

/* 页脚 */
.footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8125rem;
  line-height: 1.6;
  animation: fadeIn 0.6s var(--ease-out-expo) 0.5s both;
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.25rem; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-step5 { grid-template-columns: minmax(0, 1fr); }
  .thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-wrap {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .hero-single { max-width: none; margin: 0 auto; }
  .hero-single .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-single .btnrow { justify-content: center; }
  .hero-features { justify-content: center; }
  .hero-visual { min-height: 240px; order: -1; }
  .hero-visual__frame { max-width: 280px; margin: 0 auto; }
}

/* ===== 2026 UI Refresh: Rounded Apple-like Visual System ===== */
:root {
  --bg: #f5f7fb;
  --bg-elevated: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.74);
  --bg-card-hover: rgba(255, 255, 255, 0.92);
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.14);
  --text: #101828;
  --text-soft: #344054;
  --text-muted: #667085;
  --accent: #0a84ff;
  --accent-soft: rgba(10, 132, 255, 0.16);
  --accent-glow: rgba(10, 132, 255, 0.25);
  --warm: #1f6fe5;
  --radius: 20px;
  --radius-lg: 30px;
  --shadow: 0 28px 56px rgba(15, 23, 42, 0.12), 0 6px 18px rgba(15, 23, 42, 0.08);
}

html {
  color-scheme: light;
}

body {
  font-family: "Manrope", "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(980px 520px at 6% 10%, rgba(10, 132, 255, 0.1), transparent 62%),
    radial-gradient(860px 480px at 94% 12%, rgba(46, 177, 255, 0.08), transparent 58%),
    radial-gradient(1100px 560px at 50% 88%, rgba(140, 180, 229, 0.07), transparent 64%),
    linear-gradient(180deg, #f7fbff 0%, #f7fbff 42%, #f5f9fe 100%);
  color: var(--text);
  letter-spacing: -0.01em;
}

body::before {
  animation: none;
  background:
    radial-gradient(42% 36% at 80% 18%, rgba(10, 132, 255, 0.08), transparent 72%),
    radial-gradient(34% 30% at 10% 76%, rgba(56, 189, 248, 0.06), transparent 78%);
}

body::after {
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.018'/%3E%3C/svg%3E");
}

.container {
  max-width: 1180px;
  padding: 26px 24px 56px;
}

.container.container--home {
  padding-top: 22px;
}

.container--home::before,
body[data-page]:not([data-page="index"]) .container::before {
  content: '';
  position: absolute;
  inset: 12px 8px 14px;
  border-radius: 36px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.1) 100%);
  border: 1px solid rgba(255, 255, 255, 0.44);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
  pointer-events: none;
  z-index: 0;
}

.container--home > *,
body[data-page]:not([data-page="index"]) .container > * {
  position: relative;
  z-index: 1;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 15;
  padding: 12px 16px;
  border-radius: 20px;
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.66) 0%, rgba(247, 250, 255, 0.6) 100%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.brand {
  gap: 12px;
}

.brand-badge {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(160deg, #34b8ff 0%, #007aff 100%);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(10, 132, 255, 0.3);
}

.brand-title {
  color: #0f172a;
}

.nav {
  gap: 10px;
}

.nav a,
.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text-soft);
  font-size: 0.84rem;
  font-weight: 700;
  transition: transform var(--transition), border-color var(--transition), color var(--transition), background var(--transition);
}

.nav a:hover,
.nav-link:hover {
  color: var(--text);
  border-color: rgba(10, 132, 255, 0.32);
  background: rgba(255, 255, 255, 0.96);
  transform: translateY(-1px);
}

.hero-wrap {
  margin-top: 48px;
  gap: 64px;
}

.hero-single h1 {
  font-size: clamp(2.3rem, 5.1vw, 4.1rem);
  line-height: 1.05;
  color: #0f172a;
}

.hero-single .hero-desc {
  color: var(--text-soft);
  font-size: 1.02rem;
  line-height: 1.78;
}

.hero h1 .gradient {
  background: linear-gradient(110deg, #007aff, #2eb1ff 45%, #2069ef 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-features li {
  color: #445164;
  font-weight: 700;
}

.hero-features__dot {
  width: 7px;
  height: 7px;
  background: linear-gradient(145deg, #4bc6ff 0%, #007aff 100%);
}

.hero-visual__frame {
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.96);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.58) 100%);
  box-shadow: 0 32px 72px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.hero-visual__inner {
  inset: 10px;
  border-radius: 24px;
  background:
    linear-gradient(170deg, rgba(255, 255, 255, 0.94) 0%, rgba(241, 247, 255, 0.92) 100%);
  border: 1px solid rgba(10, 132, 255, 0.08);
}

.hero-carousel__slide img {
  background: linear-gradient(170deg, #f8fbff 0%, #edf4ff 100%);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 18px;
}

.hero-carousel__dot {
  border-color: rgba(15, 23, 42, 0.18);
  background: rgba(255, 255, 255, 0.8);
}

.hero-carousel__dot.is-active {
  background: #0a84ff;
  border-color: #0a84ff;
}

.footer--home {
  border-top-color: rgba(15, 23, 42, 0.1);
}

.footer__brand,
.footer__tagline {
  color: #525f74;
}

.section {
  margin-top: 30px;
  padding: 28px;
  border-radius: 30px;
  backdrop-filter: blur(16px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(247, 250, 255, 0.54) 100%);
  border: 1px solid rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.46);
}

.section-title h2 {
  color: #0f172a;
}

.section-title p {
  color: #5f6c80;
}

.progress {
  padding: 14px 16px;
  margin-bottom: 24px;
  border-radius: 999px;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
}

.progress .labels span {
  color: #65758b;
}

.progress .labels span.active {
  color: #0a84ff;
}

.bar {
  background: rgba(10, 132, 255, 0.1);
}

.bar > div {
  background: linear-gradient(90deg, #34b8ff 0%, #0a84ff 62%, #2069ef 100%);
}

.card {
  border-radius: 22px;
  padding: 20px;
  backdrop-filter: blur(14px);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.6) 100%);
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.card:hover {
  background: rgba(255, 255, 255, 0.9);
}

.card.clickable:hover {
  transform: translateY(-4px);
  border-color: rgba(10, 132, 255, 0.24);
  box-shadow: 0 20px 38px rgba(15, 23, 42, 0.12), 0 0 0 2px rgba(10, 132, 255, 0.07);
}

.card.selected {
  border-color: rgba(10, 132, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.14), 0 16px 34px rgba(10, 132, 255, 0.12);
}

.card h3 {
  color: #0f172a;
}

.card p {
  color: var(--text-soft);
}

.btn {
  min-height: 46px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0;
}

.btn-primary {
  background: linear-gradient(180deg, #30a8ff 0%, #0a84ff 65%, #0065ff 100%);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(10, 132, 255, 0.34);
  animation: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(10, 132, 255, 0.4);
}

.btn-secondary {
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.78);
  color: #1f2a3d;
}

.btn-secondary:hover {
  border-color: rgba(10, 132, 255, 0.3);
  background: rgba(255, 255, 255, 0.94);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.09);
  color: #b42318;
  border-color: rgba(239, 68, 68, 0.24);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.14);
}

.btn:disabled {
  opacity: 0.5;
}

.hint {
  color: #697586;
}

.dropzone {
  border-style: solid;
  border-width: 1px;
  border-color: rgba(15, 23, 42, 0.1);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.76) 0%, rgba(245, 250, 255, 0.9) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.85), 0 16px 34px rgba(15, 23, 42, 0.08);
}

.dropzone:hover {
  border-color: rgba(10, 132, 255, 0.34);
  background: linear-gradient(170deg, rgba(247, 252, 255, 1) 0%, rgba(238, 247, 255, 1) 100%);
}

.dropzone.dragover {
  background: rgba(10, 132, 255, 0.08);
  border-color: #0a84ff;
  animation: none;
}

.thumb {
  border-radius: 16px;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.05);
}

.thumb button {
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(15, 23, 42, 0.45);
}

.preview {
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 22px 42px rgba(15, 23, 42, 0.1);
}

.preview img,
.preview canvas {
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
}

.preview-caption {
  border-top-color: rgba(15, 23, 42, 0.08);
  color: #5f6e84;
}

.step6-loading {
  background: linear-gradient(165deg, #f3f8ff 0%, #edf4ff 100%);
  color: #405069;
}

.step6-loading-spinner {
  border-color: rgba(15, 23, 42, 0.14);
  border-top-color: #0a84ff;
}

@media (max-width: 640px) {
  .step6-loading {
    padding: 28px 18px;
  }

  .step6-loading-copy {
    width: min(100%, 320px);
  }

  .step6-loading-title {
    font-size: 1rem;
  }

  .step6-loading-detail {
    max-width: 24ch;
    font-size: 0.9rem;
  }

  .step6-loading-stages {
    gap: 8px;
    width: min(100%, 320px);
  }

  .step6-loading-chip {
    min-width: 78px;
    font-size: 0.78rem;
  }
}

.chips {
  gap: 10px;
}

.chip {
  border-radius: 999px;
  border-color: rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.8);
  color: #44546a;
}

.chip:hover {
  border-color: rgba(10, 132, 255, 0.26);
  background: #ffffff;
}

.chip.active {
  color: #0a84ff;
  border-color: rgba(10, 132, 255, 0.34);
  background: rgba(10, 132, 255, 0.12);
}

#furnitureGrid,
#enterpriseFurnitureGrid {
  width: 100%;
  max-height: 486px;
  grid-template-columns: repeat(auto-fill, minmax(142px, 1fr));
  grid-auto-rows: 1fr;
  align-content: start;
  padding: 10px;
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.52);
}

#furnitureGrid::-webkit-scrollbar-track,
#enterpriseFurnitureGrid::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.08);
}

#furnitureGrid::-webkit-scrollbar-thumb,
#enterpriseFurnitureGrid::-webkit-scrollbar-thumb {
  background: rgba(10, 132, 255, 0.4);
}

#furnitureGrid::-webkit-scrollbar-thumb:hover,
#enterpriseFurnitureGrid::-webkit-scrollbar-thumb:hover {
  background: rgba(10, 132, 255, 0.58);
}

.furniture-card {
  max-width: none;
  min-height: 220px;
  height: 100%;
  padding: 9px;
  gap: 8px;
}

.furn-media {
  flex: 0 0 110px;
  border-radius: 14px;
  border-color: rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, rgba(252, 254, 255, 1) 0%, rgba(243, 249, 255, 1) 100%);
}

.furn-media img {
  filter: drop-shadow(0 8px 16px rgba(15, 23, 42, 0.18));
}

.furn-placeholder {
  background:
    radial-gradient(ellipse 60% 40% at 50% 30%, rgba(10, 132, 255, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(246, 251, 255, 1) 100%);
  color: #4b5f7b;
}

.furn-hint {
  color: #5c6f88;
  margin-top: auto;
}

.furniture-card.is-disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.furniture-card.is-disabled .furn-media img,
.furniture-card.is-disabled .furn-placeholder {
  filter: grayscale(0.08);
}

.furniture-card.card.clickable.is-disabled:hover {
  transform: none;
}

.furniture-card.is-disabled .furn-hint {
  color: #a66b00;
  white-space: normal;
}

.furniture-card.card.clickable:hover {
  transform: translateY(-2px);
}

.furniture-card h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4em;
}

.furniture-card p,
.furn-hint {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.layout-mode-toggle {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  padding: 4px;
}

.layout-mode-btn {
  border-radius: 999px;
  color: #5e6f85;
}

.layout-mode-btn.active {
  color: #ffffff;
  background: linear-gradient(180deg, #2ea8ff 0%, #0a84ff 100%);
  box-shadow: 0 8px 18px rgba(10, 132, 255, 0.28);
}

.manual-drop-wrap {
  border-style: solid;
  border-width: 1px;
  border-color: rgba(15, 23, 42, 0.12);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.8) 0%, rgba(246, 251, 255, 0.95) 100%);
}

.manual-drop-wrap.dragover {
  border-color: #0a84ff;
  background: rgba(10, 132, 255, 0.1);
}

.manual-placement-item {
  border-color: rgba(10, 132, 255, 0.8);
  background: rgba(255, 255, 255, 0.96);
}

.manual-placement-del {
  background: rgba(15, 23, 42, 0.7);
}

.manual-furniture-list {
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 8px;
  background: rgba(255, 255, 255, 0.56);
}

.manual-draggable {
  border-radius: 14px;
  border-color: rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.94);
  color: #23314a;
}

.manual-draggable:hover {
  border-color: rgba(10, 132, 255, 0.28);
  background: #ffffff;
}

.t2i {
  border-top-color: rgba(15, 23, 42, 0.1);
}

.t2i-label {
  color: #5e7088;
}

.t2i-input {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.9);
  color: #122038;
}

.t2i-input::placeholder {
  color: #8a95a8;
}

.t2i-input:focus {
  border-color: rgba(10, 132, 255, 0.38);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.12);
}

.login-backdrop {
  background: rgba(8, 20, 38, 0.28);
  backdrop-filter: blur(18px);
}

.login-dialog {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 26px 54px rgba(15, 23, 42, 0.18);
}

.login-title {
  color: #0f172a;
}

.login-field {
  border-color: rgba(15, 23, 42, 0.1);
  background: rgba(248, 251, 255, 0.95);
}

.login-field__input {
  color: #122038;
}

.login-status {
  color: #d64b4b;
}

.login-profile {
  color: #dbe7f7;
}

.login-logout {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.login-getcode {
  color: #0a84ff;
}

.btn-login {
  color: #ffffff;
  background: linear-gradient(180deg, #2ea8ff 0%, #0a84ff 65%, #0065ff 100%);
  box-shadow: 0 12px 28px rgba(10, 132, 255, 0.34);
}

.login-terms,
.login-footer {
  color: #62748c;
}

.login-link {
  color: #37536f;
}

.footer {
  border-top-color: rgba(15, 23, 42, 0.1);
  color: #66778f;
}

/* 首页对齐与垂直居中修正 */
.container--home {
  justify-content: space-between;
  gap: 18px;
}

.container--home .topbar {
  width: min(1020px, 100%);
  margin: 0 auto;
  padding: 12px 16px;
  position: relative;
  top: 0;
}

.container--home .hero-wrap {
  width: min(1020px, 100%);
  margin: 0 auto;
  align-items: center;
  align-content: center;
}

.container--home .hero-single {
  padding: 6px 0 14px;
}

.container--home .footer--home {
  width: min(1020px, 100%);
  margin: 0 auto;
  padding-top: 22px;
}

/* 步骤页（step1~step7）统一：隐藏流程条 + 居中布局 */
body[data-page]:not([data-page="index"]) .progress[data-progress] {
  display: none !important;
}

body[data-page]:not([data-page="index"]) .container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

body[data-page]:not([data-page="index"]) .container > .topbar,
body[data-page]:not([data-page="index"]) .container > .section,
body[data-page]:not([data-page="index"]) .container > .footer,
body[data-page]:not([data-page="index"]) .container > .btnrow {
  width: min(1020px, 100%);
  margin-left: auto;
  margin-right: auto;
}

body[data-page]:not([data-page="index"]) .container > .section,
body[data-page]:not([data-page="index"]) .container > .footer {
  margin-top: 0;
}

body[data-page]:not([data-page="index"]) .footer {
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(247, 250, 255, 0.42) 100%);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(14px);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(10, 132, 255, 0.35);
  outline-offset: 2px;
}

.login-field:focus-within {
  border-color: rgba(15, 23, 42, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.login-field__input:focus,
.login-field__input:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

@media (max-width: 1080px) {
  #furnitureGrid,
  #enterpriseFurnitureGrid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }

  .hero-wrap {
    gap: 36px;
  }
}

@media (max-width: 960px) {
  .container {
    padding: 18px 14px 42px;
  }

  .topbar {
    top: 10px;
    padding: 10px 12px;
    border-radius: 16px;
  }

  .section {
    margin-top: 20px;
    padding: 20px 16px;
    border-radius: 24px;
  }

  .progress {
    border-radius: 22px;
  }

  .hero-wrap {
    margin-top: 32px;
  }

  .container--home {
    gap: 14px;
  }

  .container--home .topbar {
    width: 100%;
    padding: 10px 12px;
  }

  .container--home .hero-wrap {
    width: 100%;
    margin: 4px auto 0;
  }

  .container--home .footer--home {
    width: 100%;
    padding-top: 18px;
  }

  body[data-page]:not([data-page="index"]) .container {
    justify-content: flex-start;
    gap: 14px;
  }

  body[data-page]:not([data-page="index"]) .container > .topbar,
  body[data-page]:not([data-page="index"]) .container > .section,
  body[data-page]:not([data-page="index"]) .container > .footer,
  body[data-page]:not([data-page="index"]) .container > .btnrow {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .btnrow {
    width: 100%;
  }

  .btnrow .btn {
    flex: 1;
    justify-content: center;
  }

  .nav {
    width: 100%;
  }

  .nav a,
  .nav-link {
    flex: 1;
  }

  #furnitureGrid,
  #enterpriseFurnitureGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 420px;
  }

  .furniture-card {
    min-height: 174px;
  }

  .hero-single h1 {
    font-size: clamp(1.9rem, 10.6vw, 2.5rem);
  }

  .section-title {
    align-items: flex-start;
  }
}

/* ========== Step1 图片方案选择（精简版） ========== */
.section-title--compact {
  margin-bottom: 6px;
}

.section-title--compact h2 {
  font-size: clamp(1.45rem, 2vw, 1.8rem);
}

.section-title--compact p {
  font-size: 0.82rem;
}

.room-type-grid {
  margin-top: 8px;
  gap: 18px;
}

.room-type-card {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-radius: 24px;
  min-width: 0;
  overflow: hidden;
}

.room-type-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, #eef5ff 0%, #e8f1ff 100%);
}

.room-type-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 0.4s var(--ease-out-expo), filter 0.4s var(--ease-out-expo);
}

.room-type-card:hover .room-type-media img {
  transform: scale(1.04);
  filter: saturate(1.05);
}

.room-type-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 2px;
}

.room-type-meta h3 {
  margin: 0;
  font-size: 1.08rem;
}

.room-type-meta p {
  margin: 0;
  font-size: 0.8rem;
  color: #6f7f93;
  font-weight: 600;
}

.room-type-btn {
  width: 100%;
  margin-top: auto;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
}

.room-type-card.selected .room-type-btn {
  box-shadow: 0 14px 30px rgba(10, 132, 255, 0.35);
}

.room-type-media--edit {
  display: grid;
  place-items: center;
}

.local-edit-visual {
  position: relative;
  width: min(72%, 210px);
  aspect-ratio: 4 / 3;
}

.local-edit-visual__image,
.local-edit-visual__mask,
.local-edit-visual__cursor {
  position: absolute;
  display: block;
}

.local-edit-visual__image {
  inset: 0;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(236, 245, 255, 0.86)),
    linear-gradient(135deg, #d7e5f7 0%, #f4f8ff 52%, #cfdcf0 100%);
  border: 1px solid rgba(10, 132, 255, 0.16);
  box-shadow: inset 0 -18px 34px rgba(10, 132, 255, 0.08);
}

.local-edit-visual__mask {
  left: 28%;
  top: 28%;
  width: 38%;
  height: 32%;
  border-radius: 999px;
  background: rgba(10, 132, 255, 0.22);
  border: 2px solid rgba(10, 132, 255, 0.55);
}

.local-edit-visual__cursor {
  right: 14%;
  bottom: 10%;
  width: 22%;
  aspect-ratio: 1;
  border-radius: 999px;
  background: #0a84ff;
  box-shadow: 0 12px 24px rgba(10, 132, 255, 0.26);
}

@media (max-width: 960px) {
  .room-type-grid {
    gap: 14px;
  }

  .room-type-card {
    border-radius: 20px;
  }

  .room-type-media {
    aspect-ratio: 4 / 3;
  }

  .room-type-meta {
    align-items: flex-start;
  }

  .room-type-meta p {
    text-align: left;
    white-space: normal;
  }
}

/* ========== 局部改图 ========== */
.local-edit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.75fr);
  gap: 16px;
  align-items: start;
}

.local-edit-workspace,
.local-edit-panel,
.local-edit-result {
  border-radius: 18px;
}

.local-edit-workspace {
  display: grid;
  gap: 12px;
  align-content: start;
}

.local-edit-upload {
  display: grid;
  place-items: center;
  min-height: 360px;
  border: 2px dashed rgba(10, 132, 255, 0.22);
  border-radius: 16px;
  background: rgba(244, 249, 255, 0.78);
  text-align: center;
  cursor: pointer;
}

.local-edit-upload[hidden],
.local-edit-toolbar[hidden],
.local-edit-canvas-viewport[hidden] {
  display: none !important;
}

.local-edit-upload h3 {
  margin: 0 0 8px;
}

.local-edit-upload p {
  margin: 0;
}

.local-edit-toolbar {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}

.local-edit-tool-btn {
  min-width: 58px;
  min-height: 36px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  background: #ffffff;
  color: #1d2939;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.local-edit-tool-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

#localEditZoomValue {
  min-width: 52px;
  color: #475467;
  font-size: 0.86rem;
  font-weight: 800;
  text-align: center;
}

.local-edit-canvas-viewport {
  max-height: min(64vh, 620px);
  overflow: auto;
  padding: 12px;
  border-radius: 16px;
  background: #eef4fb;
  overscroll-behavior: contain;
}

.local-edit-canvas-wrap {
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  border-radius: 14px;
  background: #eef4fb;
  touch-action: none;
}

.local-edit-canvas-wrap canvas {
  display: block;
  width: 100%;
  height: auto;
}

#localEditMaskCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: none;
}

.local-edit-controls {
  display: grid;
  gap: 14px;
}

.local-edit-controls label {
  display: grid;
  gap: 8px;
  color: #344054;
  font-weight: 700;
  font-size: 0.88rem;
}

.local-edit-controls select,
.local-edit-controls textarea,
.local-edit-controls input[type="range"] {
  width: 100%;
}

.local-edit-controls select,
.local-edit-controls textarea {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  padding: 11px 12px;
  background: #ffffff;
  color: #101828;
  font: inherit;
}

.local-edit-reference {
  display: grid;
  gap: 8px;
  color: #344054;
  font-weight: 700;
  font-size: 0.88rem;
}

.local-edit-reference.is-hidden,
.local-edit-reference-preview.is-hidden {
  display: none !important;
}

.local-edit-reference-upload {
  display: grid;
  gap: 3px;
  width: 100%;
  min-height: 76px;
  padding: 12px;
  border: 1px dashed rgba(10, 132, 255, 0.34);
  border-radius: 12px;
  background: rgba(244, 249, 255, 0.86);
  color: #175cd3;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.local-edit-reference-upload small {
  color: #667085;
  font-size: 0.76rem;
  font-weight: 600;
}

.local-edit-reference-preview {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 9px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 12px;
  background: #fff;
}

.local-edit-reference-preview img {
  width: 86px;
  height: 70px;
  object-fit: contain;
  border-radius: 10px;
  background: #f8fbff;
}

.local-edit-reference-preview p {
  margin: 0 0 8px;
  color: #344054;
  font-size: 0.78rem;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.local-edit-actions {
  margin-top: 18px;
}

.local-edit-result {
  margin-top: 16px;
}

.local-edit-result-preview {
  min-height: 220px;
  display: grid;
  place-items: center;
}

.local-edit-result-preview img {
  display: block;
  max-width: 100%;
  border-radius: 14px;
}

@media (max-width: 900px) {
  .local-edit-layout {
    grid-template-columns: 1fr;
  }

  .local-edit-upload {
    min-height: 260px;
  }

  .local-edit-toolbar {
    justify-content: stretch;
    flex-wrap: wrap;
  }

  .local-edit-tool-btn {
    flex: 1 1 72px;
  }

  .local-edit-canvas-viewport {
    max-height: 58vh;
    padding: 8px;
  }

  .local-edit-actions .btn {
    width: 100%;
  }
}

/* ========== Step3 紧凑材质选择 ========== */
body[data-page="step3"] .section--materials {
  padding: 20px 20px 16px;
}

body[data-page="step3"] .materials-summary {
  margin: 8px 0 12px;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(10, 132, 255, 0.18);
  background: linear-gradient(180deg, rgba(223, 242, 255, 0.55) 0%, rgba(208, 232, 255, 0.44) 100%);
  color: #2f4a67;
  font-size: 0.86rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}

body[data-page="step3"] .materials-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

body[data-page="step3"] .material-panel {
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
  padding: 12px;
}

body[data-page="step3"] .material-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

body[data-page="step3"] .material-panel-head h3 {
  margin: 0;
  font-size: 1rem;
  color: #0f172a;
}

body[data-page="step3"] .material-picked {
  min-width: 56px;
  text-align: center;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.72);
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
}

body[data-page="step3"] .material-picked.is-done {
  border-color: rgba(10, 132, 255, 0.3);
  background: rgba(10, 132, 255, 0.1);
  color: #0a84ff;
}

body[data-page="step3"] .material-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

body[data-page="step3"] .material-option {
  appearance: none;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.86);
  color: #334155;
  font-size: 0.84rem;
  font-weight: 700;
  min-height: 42px;
  padding: 8px 6px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
}

body[data-page="step3"] .material-option:hover {
  border-color: rgba(10, 132, 255, 0.3);
  background: #ffffff;
  transform: translateY(-1px);
}

body[data-page="step3"] .material-option.selected {
  border-color: rgba(10, 132, 255, 0.65);
  background: linear-gradient(180deg, rgba(85, 171, 255, 0.2) 0%, rgba(10, 132, 255, 0.15) 100%);
  color: #0a84ff;
  box-shadow: 0 0 0 2px rgba(10, 132, 255, 0.12);
}

body[data-page="step3"] .material-note-input {
  width: 100%;
  margin-top: 8px;
  min-height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.9);
  padding: 7px 10px;
  font-size: 0.8rem;
  color: #334155;
}

body[data-page="step3"] .material-note-input::placeholder {
  color: #94a3b8;
}

body[data-page="step3"] .material-note-input:focus {
  border-color: rgba(10, 132, 255, 0.34);
  box-shadow: 0 0 0 2px rgba(10, 132, 255, 0.1);
  outline: none;
}

body[data-page="step3"] .section--materials .btnrow {
  margin-top: 14px;
}

@media (max-width: 1080px) {
  body[data-page="step3"] .materials-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body[data-page="step3"] .section--materials {
    padding: 16px 14px 12px;
  }

  body[data-page="step3"] .materials-layout {
    grid-template-columns: 1fr;
  }

  body[data-page="step3"] .material-option {
    min-height: 44px;
  }

  body[data-page="step3"] .materials-summary {
    width: 100%;
    justify-content: center;
  }
}

body[data-page="step3"] .section--materials .btnrow {
  justify-content: center;
}

body[data-page="step2"] .step2-action-row {
  justify-content: center;
}

/* ========== 2026-05-15 Step2 Upload + Materials Combined ========== */
body[data-page="step2"] .section--combined {
  width: min(1320px, 100%);
  padding: 22px 24px 18px;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

@media (min-width: 821px) {
  body[data-page="step2"] .step2-combined-layout {
    grid-template-columns: minmax(300px, 0.82fr) minmax(360px, 1.18fr) !important;
  }

  body[data-page="step2"].is-renovation-upload .step2-combined-layout {
    grid-template-columns: 1fr !important;
  }
}

body[data-page="step2"] .section--combined .section-title {
  margin-bottom: 14px;
}

body[data-page="step2"] .step2-combined-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(360px, 1.18fr);
  gap: 18px;
  align-items: start;
}

body[data-page="step2"] .step2-upload-panel,
body[data-page="step2"] .step2-materials-panel {
  min-width: 0;
}

body[data-page="step2"] .step2-upload-panel {
  display: grid;
  align-content: start;
}

body[data-page="step2"] .step2-materials-panel {
  display: grid;
  gap: 12px;
  max-height: none;
  overflow: visible;
}

body[data-page="step2"] .step2-panel-head {
  min-height: 34px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body[data-page="step2"] .step2-panel-head h3 {
  margin: 0;
  color: #0f172a;
  font-size: 1.05rem;
}

body[data-page="step2"] #imgCount {
  min-width: 34px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.08);
  color: #334155;
  font-weight: 800;
}

body[data-page="step2"] .dropzone {
  min-height: 0;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-width: 1px;
  border-radius: 22px;
  background: rgba(241, 247, 255, 0.72);
}

body[data-page="step2"] .dropzone-hint {
  width: 100%;
}

body[data-page="step2"] .dropzone-preview {
  width: 100%;
  display: flex;
  justify-content: center;
}

body[data-page="step2"] .dropzone-preview img {
  width: auto;
  max-width: 100%;
  max-height: min(360px, calc(100vh - 330px));
  border-radius: 16px;
  object-fit: contain;
  background: transparent;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

body[data-page="step2"] .materials-summary {
  margin: 0;
  min-height: 30px;
  padding: 7px 11px;
  border-radius: 12px;
  border: 1px solid rgba(10, 132, 255, 0.18);
  background: linear-gradient(180deg, rgba(223, 242, 255, 0.55) 0%, rgba(208, 232, 255, 0.44) 100%);
  color: #2f4a67;
  font-size: 0.82rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

body[data-page="step2"] .materials-layout {
  display: block;
  max-height: none;
  overflow: visible;
  padding: 0;
}

body[data-page="step2"] .materials-layout::-webkit-scrollbar {
  width: 8px;
}

body[data-page="step2"] .materials-layout::-webkit-scrollbar-track {
  background: rgba(148, 163, 184, 0.14);
  border-radius: 999px;
}

body[data-page="step2"] .materials-layout::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.48);
  border-radius: 999px;
}

body[data-page="step2"] .material-panel {
  display: none;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  padding: 12px;
}

body[data-page="step2"] .material-panel.is-active {
  display: block;
}

body[data-page="step2"] .material-panel-head {
  display: none;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

body[data-page="step2"] .material-panel-head h3 {
  margin: 0;
  color: #0f172a;
  font-size: 1rem;
}

body[data-page="step2"] .material-picked {
  min-width: 56px;
  text-align: center;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.72);
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 800;
}

body[data-page="step2"] .material-picked.is-done {
  border-color: rgba(10, 132, 255, 0.3);
  background: rgba(10, 132, 255, 0.1);
  color: #0a84ff;
}

body[data-page="step2"] .material-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body[data-page="step2"] .material-option {
  appearance: none;
  min-height: 54px;
  padding: 11px 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  color: #334155;
  font-size: 0.84rem;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
}

body[data-page="step2"] .material-option:hover {
  border-color: rgba(10, 132, 255, 0.3);
  background: #ffffff;
  transform: translateY(-1px);
}

body[data-page="step2"] .material-option.selected {
  border-color: rgba(10, 132, 255, 0.65);
  background: linear-gradient(180deg, rgba(85, 171, 255, 0.2) 0%, rgba(10, 132, 255, 0.15) 100%);
  color: #0a84ff;
  box-shadow: 0 0 0 2px rgba(10, 132, 255, 0.12);
}

body[data-page="step2"] .material-note-input {
  width: 100%;
  margin-top: 12px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.9);
  color: #334155;
  font-size: 0.8rem;
}

body[data-page="step2"] .material-note-input::placeholder {
  color: #94a3b8;
}

body[data-page="step2"] .material-note-input:focus {
  border-color: rgba(10, 132, 255, 0.34);
  box-shadow: 0 0 0 2px rgba(10, 132, 255, 0.1);
  outline: none;
}

body[data-page="step2"] .step2-action-row {
  width: min(390px, 100%);
  margin: 20px auto 0;
  padding: 8px;
  border-radius: 999px;
  background: rgba(3, 10, 22, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
}

body[data-page="step2"] .step2-action-row .btn {
  min-height: 52px;
  font-size: 1rem;
  font-weight: 900;
}

body[data-page="step2"] .step2-action-row .btn-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
}

body[data-page="step2"] .step2-action-row .btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #203a58 0%, #d5a34c 100%);
  border-color: rgba(255, 255, 255, 0.16);
}

body[data-page="step2"] .material-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

body[data-page="step2"] .material-tab {
  appearance: none;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition), color var(--transition);
}

body[data-page="step2"] .material-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.22);
}

body[data-page="step2"] .material-tab.is-active {
  color: #0f2745;
  border-color: rgba(10, 132, 255, 0.5);
  background: linear-gradient(180deg, rgba(226, 241, 255, 0.96) 0%, rgba(190, 222, 250, 0.96) 100%);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.16);
}

body[data-page="step2"] .material-tab.is-done:not(.is-active) {
  color: #ffffff;
  border-color: rgba(213, 163, 76, 0.5);
  background: rgba(213, 163, 76, 0.28);
}

body[data-page="step2"].is-renovation-upload .section--combined {
  width: min(760px, 100%);
}

body[data-page="step2"].is-renovation-upload .step2-combined-layout {
  grid-template-columns: 1fr;
}

@media (max-width: 820px) {
  body[data-page="step2"] .step2-combined-layout {
    grid-template-columns: 1fr;
  }

  body[data-page="step2"] .dropzone {
    min-height: 300px;
  }

  body[data-page="step2"] .dropzone-preview img {
    max-height: 320px;
  }

  body[data-page="step2"] .step2-materials-panel {
    max-height: none;
    overflow: visible;
  }

  body[data-page="step2"] .materials-layout {
    max-height: none;
    overflow-y: visible;
  }
}

@media (max-width: 760px) {
  body[data-page="step2"] .section--combined {
    padding: 16px 14px 14px;
  }

  body[data-page="step2"] .step2-panel-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  body[data-page="step2"] .materials-summary {
    width: 100%;
    justify-content: center;
  }

  body[data-page="step2"] .material-tabs {
    gap: 8px;
  }

  body[data-page="step2"] .material-tab {
    min-height: 46px;
    font-size: 0.86rem;
  }

  body[data-page="step2"] .material-options {
    grid-template-columns: 1fr;
  }
}

/* ========== Homepage Revert ========== */
.container--home .topbar,
.container--home .hero-wrap,
.container--home .footer--home {
  width: min(1060px, 100%);
}

.container--home .hero-wrap {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 56px;
  margin-top: 8px;
}

.container--home .hero-single {
  max-width: 500px;
  padding: 8px 0 18px;
}

.container--home .hero-single .hero-desc {
  max-width: 42ch;
}

.container--home .hero-features {
  gap: 16px 22px;
}

.container--home .hero-visual {
  min-height: 448px;
}

.container--home .hero-visual__frame {
  width: min(100%, 640px);
  max-width: 640px;
  aspect-ratio: 4 / 3;
  border-radius: 36px;
  overflow: hidden;
}

.container--home .hero-visual__topbar,
.container--home .hero-visual__summary {
  display: none;
}

.container--home .hero-visual__inner {
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  background: #eef5ff;
}

.container--home .hero-carousel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
}

.container--home .hero-carousel__track {
  flex: 1;
  min-height: 0;
  border-radius: inherit;
  overflow: hidden;
  background: #eef5ff;
  box-shadow: none;
}

.container--home .hero-carousel__slide {
  padding: 0;
}

.container--home .hero-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  border-radius: 0;
  background: #eef5ff;
}

.container--home .hero-carousel__dots {
  position: static;
  align-self: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  gap: 8px;
}

.container--home .hero-carousel__dot {
  width: 9px;
  height: 9px;
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(148, 163, 184, 0.28);
}

.container--home .hero-carousel__dot.is-active {
  width: 24px;
  background: linear-gradient(135deg, #0a84ff 0%, #46b3ff 100%);
  border-color: rgba(10, 132, 255, 0.24);
}

.container--home .hero-visual__accent {
  display: none;
}

.container--home .footer--home {
  width: min(1020px, 100%);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  padding-top: 18px;
  border-top: none;
}

.container--home .home-footer-card {
  display: flex;
  justify-content: center;
  padding: 20px 22px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(247, 250, 255, 0.52) 100%);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.46);
}

.container--home .home-footer-shell {
  display: grid;
  grid-template-columns: minmax(140px, 180px) minmax(140px, 180px) minmax(220px, 280px);
  width: max-content;
  max-width: 100%;
  justify-content: center;
  gap: 44px;
  align-items: start;
}

.container--home .home-footer-group,
.container--home .home-footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
}

.container--home .home-footer-group h3,
.container--home .home-footer-contact h3 {
  margin: 0;
  color: #0f172a;
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.container--home .home-footer-link-list {
  display: grid;
  gap: 10px;
  justify-items: center;
}

.container--home .home-footer-link-list a {
  color: #5f6c80;
  font-size: 0.9rem;
  line-height: 1.45;
  transition: color var(--transition), transform var(--transition);
}

.container--home .home-footer-link-list a:hover {
  color: #0f172a;
  transform: translateY(-1px);
}

.container--home .home-footer-contact-list {
  display: grid;
  gap: 10px;
  justify-items: center;
}

.container--home .home-footer-link-list span,
.container--home .home-footer-contact-list span {
  color: #5f6c80;
  font-size: 0.9rem;
  line-height: 1.45;
}

.container--home .home-footer-contact-list span {
  word-break: break-all;
}

/* ========== Legal Pages ========== */
.legal-page {
  max-width: 980px;
}

.legal-shell {
  display: grid;
  gap: 22px;
}

.legal-card {
  padding: 30px 32px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.22);
}

.legal-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(201, 169, 98, 0.1);
  border: 1px solid rgba(201, 169, 98, 0.2);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
}

.legal-intro {
  margin: 0 0 10px;
  color: var(--text-soft);
  font-size: 0.96rem;
  line-height: 1.85;
}

.legal-block {
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-block:first-of-type {
  padding-top: 8px;
}

.legal-block:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.legal-block h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
}

.legal-block p {
  margin: 0 0 10px;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.9;
}

.legal-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-soft);
}

.legal-list li {
  margin: 8px 0;
  line-height: 1.85;
}

.legal-note {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 0.86rem;
}

/* ========== Step Preview Repair ========== */
.is-hidden {
  display: none !important;
}

.preview--zoomable {
  overflow: hidden;
}

.preview-zoom-stage {
  position: relative;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  border-radius: inherit;
}

.preview-zoom-pan {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}

.preview-zoom-stage.is-zoomed .preview-zoom-pan {
  cursor: grab;
}

.preview-zoom-stage.is-dragging .preview-zoom-pan {
  cursor: grabbing;
}

.preview-zoom-target {
  display: block;
  max-width: 100%;
  max-height: none;
  margin: 0 auto;
  user-select: none;
  touch-action: none;
  will-change: transform;
}

.preview-zoom-controls {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(14px);
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}

.preview-zoom-controls.is-ready {
  opacity: 1;
  pointer-events: auto;
}

.preview-zoom-controls--inline {
  position: static;
  left: auto;
  bottom: auto;
  transform: none;
  display: none;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  opacity: 1;
  pointer-events: auto;
}

.preview-zoom-controls--inline.is-ready {
  display: flex;
}

.preview-zoom-status {
  min-width: 54px;
  text-align: center;
  color: #344054;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
}

.preview-zoom-btn {
  appearance: none;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  color: #122038;
  font: inherit;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), opacity var(--transition);
}

.preview-zoom-btn--reset {
  width: auto;
  min-width: 54px;
  padding: 0 12px;
  font-size: 0.82rem;
}

.preview-zoom-btn:not(:disabled):hover {
  transform: translateY(-1px);
  border-color: rgba(10, 132, 255, 0.24);
  background: #ffffff;
}

.preview-zoom-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.step4-action-row,
.step5-nav-row,
.step6-action-row,
.step7-action-row {
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.step4-zoom-slot,
.step5-zoom-slot,
.step6-zoom-slot,
.step7-zoom-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
}

body[data-page="step4"] #step4Preview,
body[data-page="step5"] #basePreview,
body[data-page="step6"] #step6FurniturePreview,
body[data-page="step7"] #step7Preview {
  max-height: none;
  min-height: 0;
  margin-left: auto;
  margin-right: auto;
}

body[data-page="step4"] #resultImg,
body[data-page="step5"] #basePreviewImg,
body[data-page="step6"] #step6FurnitureImg,
body[data-page="step7"] #finalImage {
  max-height: none;
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

body[data-page="step6"] .step6-preview-tools {
  display: flex;
  justify-content: center;
  min-height: 58px;
  margin: 0 0 22px;
}

body[data-page="step6"] .step6-preview-tools .step6-zoom-slot {
  min-height: 0;
}

body[data-page="step6"] .step6-preview-tools .preview-zoom-controls--inline {
  margin-top: 0;
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.09);
  backdrop-filter: blur(12px);
}

body[data-page="step7"] #finalCanvas {
  max-width: 100%;
  height: auto;
}

/* ========== Step6 Style Panel Repair ========== */
.step6-preview-shell {
  display: grid;
  gap: 14px;
  margin-bottom: 4px;
}

.step6-style-column {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.step6-title-hint {
  margin: 6px 0 0;
  color: #5f6c80;
  font-size: 0.9rem;
  line-height: 1.55;
}

.step6-style-grid {
  gap: 16px;
}

.step6-style-grid .card {
  min-height: 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
}

.step6-style-grid .card.selected {
  border-color: rgba(10, 132, 255, 0.42);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.12);
  background: linear-gradient(180deg, rgba(244, 249, 255, 0.98) 0%, rgba(236, 245, 255, 1) 100%);
}

.step6-compact-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
}

.step6-toolbar-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.step6-toolbar-label {
  flex: 0 0 86px;
  color: #475467;
  font-size: 0.92rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.step6-help-btn {
  appearance: none;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 1px solid rgba(10, 132, 255, 0.2);
  border-radius: 999px;
  background: rgba(10, 132, 255, 0.08);
  color: #0a84ff;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.step6-help-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(10, 132, 255, 0.36);
  background: rgba(10, 132, 255, 0.14);
}

.step6-choice-grid {
  flex: 1;
  display: grid;
  gap: 10px;
}

.step6-choice-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.step6-choice-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step6-choice-card {
  appearance: none;
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: #334155;
  text-align: center;
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.step6-choice-card strong {
  font-size: 0.9rem;
  font-weight: 700;
}

.step6-choice-card:hover {
  transform: translateY(-1px);
  border-color: rgba(10, 132, 255, 0.25);
  background: #ffffff;
}

.step6-choice-card.is-selected {
  color: #0a84ff;
  border-color: rgba(10, 132, 255, 0.42);
  background: linear-gradient(180deg, rgba(236, 245, 255, 1) 0%, rgba(228, 241, 255, 1) 100%);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.12);
}

.step6-reference-upload,
.step6-scene-grid,
.step6-precision-list,
.step6-summary {
  margin-top: -2px;
}

.step6-upload-dropzone {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 82px;
  padding: 16px;
  border: 1px dashed rgba(10, 132, 255, 0.28);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(247, 251, 255, 1) 0%, rgba(240, 247, 255, 1) 100%);
  color: #0a84ff;
  cursor: pointer;
  text-align: center;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.step6-upload-dropzone:hover,
.step6-upload-dropzone.dragover {
  border-color: rgba(10, 132, 255, 0.44);
  background: rgba(10, 132, 255, 0.08);
  transform: translateY(-1px);
}

.step6-reference-preview {
  display: none;
  margin-top: 12px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(248, 251, 255, 0.82);
  gap: 12px;
}

.step6-reference-preview.is-ready {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: center;
}

.step6-reference-preview img {
  width: 120px;
  height: 90px;
  border-radius: 12px;
  object-fit: cover;
  background: #eef4fb;
  display: block;
}

.step6-reference-preview-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.step6-reference-preview-actions p {
  margin: 0;
  color: #5f6c80;
  font-size: 0.86rem;
}

.step6-scene-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.step6-choice-card--compact {
  min-height: 44px;
  padding: 10px 12px;
}

.step6-precision-list--inline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.step6-precision-card {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.step6-precision-card.is-enabled {
  border-color: rgba(10, 132, 255, 0.34);
  background: rgba(237, 245, 255, 0.9);
  box-shadow: 0 0 0 2px rgba(10, 132, 255, 0.1);
}

.step6-precision-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.step6-precision-head input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.step6-precision-head strong {
  font-size: 0.92rem;
  color: #23314a;
}

.step6-summary--compact {
  min-height: 24px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(248, 251, 255, 0.72);
}

.step6-summary-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.step6-summary-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(10, 132, 255, 0.08);
  color: #0a84ff;
  font-size: 0.78rem;
  font-weight: 700;
}

.step6-summary p {
  margin: 10px 0 0;
  color: #5f6c80;
  font-size: 0.84rem;
  line-height: 1.6;
}

body[data-page="step6"] .step6-action-row {
  margin-top: 2px;
}

body[data-page="step6"] .step6-action-row .btn {
  min-width: 132px;
  justify-content: center;
  text-align: center;
  gap: 0;
}

@media (max-width: 1080px) {
  .container--home .hero-wrap {
    gap: 38px;
  }

  .container--home .hero-visual__frame {
    max-width: 588px;
  }
}

@media (max-width: 960px) {
  .container--home .hero-wrap {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 0;
  }

  .container--home .hero-single {
    max-width: none;
    text-align: center;
  }

  .container--home .hero-single .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .container--home .hero-features {
    justify-content: center;
  }

  .container--home .hero-visual {
    order: -1;
    min-height: 380px;
  }

  .container--home .hero-visual__frame {
    width: min(100%, 620px);
    max-width: min(100%, 620px);
  }

  .container--home .home-footer-shell {
    grid-template-columns: 1fr;
    width: 100%;
    justify-content: stretch;
    gap: 18px;
  }

  .step6-toolbar-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .step6-toolbar-label {
    flex: none;
    width: 100%;
    justify-content: space-between;
  }

  .step6-scene-grid,
  .step6-precision-list--inline {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .topbar {
    gap: 14px;
    padding-bottom: 18px;
  }

  .topbar .nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .topbar .nav a,
  .topbar .nav-link {
    width: 100%;
    min-height: 40px;
    padding: 10px 12px;
  }

  .step4-action-row,
  .step2-action-row,
  body[data-page="step3"] .section--materials .btnrow,
  .step5-nav-row,
  .step6-action-row,
  .step7-action-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    width: 100%;
    gap: 10px;
  }

  .step2-action-row .btn,
  body[data-page="step3"] .section--materials .btn,
  .step4-action-row .btn,
  .step5-nav-row .btn,
  .step6-action-row .btn,
  .step7-action-row .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .preview-zoom-controls--inline {
    justify-content: center;
    flex-wrap: wrap;
  }

  .step4-zoom-slot,
  .step5-zoom-slot,
  .step6-zoom-slot,
  .step7-zoom-slot {
    grid-column: 1 / -1;
    order: 10;
    min-height: 40px;
  }

  .step4-action-row .btn-primary,
  .step5-nav-row .btn-primary,
  .step6-action-row .btn-primary,
  .step7-action-row .btn-primary {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .topbar .nav {
    grid-template-columns: 1fr;
  }

  .step2-action-row,
  body[data-page="step3"] .section--materials .btnrow,
  .step4-action-row,
  .step5-nav-row,
  .step6-action-row,
  .step7-action-row {
    grid-template-columns: 1fr;
  }

  .step4-zoom-slot,
  .step5-zoom-slot,
  .step6-zoom-slot,
  .step7-zoom-slot,
  .step4-action-row .btn-primary,
  .step5-nav-row .btn-primary,
  .step6-action-row .btn-primary,
  .step7-action-row .btn-primary {
    grid-column: auto;
  }
}

@media (max-width: 680px) {
  .step6-preview-shell {
    gap: 12px;
  }

  body[data-page="step6"] .step6-preview-tools {
    min-height: 52px;
    margin-bottom: 18px;
  }

  .container--home .hero-visual {
    min-height: 312px;
  }

  .container--home .hero-carousel {
    gap: 10px;
    padding: 7px 7px 10px;
  }

  .container--home .hero-carousel__track {
    border-radius: 18px;
  }

  .container--home .hero-carousel__dots {
    padding: 7px 10px;
  }

  .container--home .home-footer-card {
    padding: 15px 16px;
    border-radius: 18px;
  }

  .container--home .home-footer-shell {
    gap: 18px;
  }

  .container--home .home-footer-link-list {
    gap: 8px;
  }

  .container--home .home-footer-link-list span,
  .container--home .home-footer-contact-list span {
    font-size: 0.86rem;
  }

  .step6-style-grid {
    grid-template-columns: 1fr;
  }

  .step6-compact-panel {
    padding: 18px 16px;
  }

  .step6-choice-grid--2,
  .step6-choice-grid--3 {
    grid-template-columns: 1fr;
  }

  .step6-reference-preview.is-ready {
    grid-template-columns: 1fr;
  }

  .step6-reference-preview img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }
}

/* ========== 2026-04-26 UI Tightening ========== */
.container--home {
  padding: 18px 22px 34px;
}

.container--home::before,
body[data-page]:not([data-page="index"]) .container::before {
  inset: 8px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.07) 100%);
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow: none;
}

.container--home .topbar {
  width: min(1120px, 100%);
  padding: 4px 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.container--home .brand {
  padding: 8px 12px 8px 8px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.container--home .brand-badge {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  font-size: 14px;
}

.container--home .brand-title {
  font-size: 1.12rem;
}

.container--home .hero-wrap {
  width: min(1280px, 100%);
  max-width: 1280px;
  grid-template-columns: minmax(420px, 0.74fr) minmax(0, 1.26fr);
  gap: 32px;
}

.container--home .hero-single h1 {
  font-size: clamp(2.7rem, 4.6vw, 4rem);
}

.container--home .hero-single .btnrow {
  margin-top: 24px;
  margin-bottom: 28px;
}

.container--home .hero-features {
  max-width: 480px;
  gap: 12px 20px;
}

.container--home .hero-features li {
  font-size: 0.88rem;
}

.container--home .hero-visual {
  min-height: 540px;
  flex-direction: column;
  gap: 12px;
}

.container--home .hero-visual__frame {
  width: min(100%, 800px);
  max-width: 800px;
  aspect-ratio: 3 / 2;
  border-radius: 28px;
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.1);
}

.container--home .hero-visual__inner {
  inset: 0;
  border-radius: inherit;
}

.container--home .hero-carousel__track {
  border-radius: inherit;
}

.container--home .footer--home {
  width: min(1280px, 100%);
  padding-top: 10px;
}

.container--home .home-footer-card {
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.54);
  border-color: rgba(15, 23, 42, 0.06);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.container--home .home-footer-shell {
  width: 100%;
  grid-template-columns: 1fr 1fr 1.25fr;
  gap: 20px;
}

.container--home .home-footer-group,
.container--home .home-footer-contact {
  align-items: flex-start;
  text-align: left;
  gap: 8px;
}

.container--home .home-footer-group h3,
.container--home .home-footer-contact h3 {
  font-size: 0.88rem;
}

.container--home .home-footer-link-list,
.container--home .home-footer-contact-list {
  gap: 6px;
  justify-items: start;
}

.container--home .home-footer-link-list a,
.container--home .home-footer-link-list span,
.container--home .home-footer-contact-list span {
  font-size: 0.82rem;
  line-height: 1.35;
}

body[data-page]:not([data-page="index"]) .container {
  justify-content: flex-start;
  padding-top: 18px;
}

body[data-page]:not([data-page="index"]) .topbar {
  position: relative;
  top: 0;
  padding: 10px 14px;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

body[data-page]:not([data-page="index"]) .section {
  padding: 24px;
  border-radius: 24px;
}

body[data-page]:not([data-page="index"]) .section-title {
  align-items: flex-start;
  margin-bottom: 16px;
}

body[data-page]:not([data-page="index"]) .section-title h2 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.25;
}

body[data-page]:not([data-page="index"]) .section-title p {
  max-width: 58ch;
  line-height: 1.55;
}

body[data-page]:not([data-page="index"]) .footer {
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: none;
  text-align: center;
}

.btn {
  min-height: 42px;
  padding: 10px 20px;
}

.chip {
  min-height: 38px;
  padding: 9px 14px;
  font-size: 0.84rem;
}

.library-switch {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 12px;
}

.library-btn {
  min-height: 38px;
}

#furnitureGrid,
#enterpriseFurnitureGrid {
  max-height: 520px;
  padding: 8px;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
}

.furniture-card {
  min-height: 202px;
  border-radius: 16px;
}

.furn-media {
  flex-basis: 98px;
}

.step5-library-footer {
  margin-top: 10px;
}

.step5-pagination {
  width: 100%;
  justify-content: center;
}

.step5-page-btn {
  min-width: 82px;
  min-height: 36px;
  padding: 0 12px;
}

.step6-compact-panel {
  border-radius: 20px;
}

@media (max-width: 960px) {
  .container--home {
    padding: 14px 14px 28px;
  }

  .container--home .hero-wrap {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .container--home .hero-visual {
    order: 0;
    min-height: auto;
  }

  .container--home .hero-visual__frame {
    width: min(100%, 560px);
  }

  .container--home .hero-single {
    text-align: left;
    padding-top: 0;
  }

  .container--home .hero-single h1 {
    font-size: clamp(2.2rem, 8vw, 3.2rem);
  }

  .container--home .hero-single .btnrow,
  .container--home .hero-features {
    justify-content: flex-start;
  }

  .container--home .home-footer-shell {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 760px) {
  body[data-page]:not([data-page="index"]) .section {
    padding: 18px 14px;
    border-radius: 20px;
  }

  .topbar .brand-badge {
    width: 34px;
    height: 34px;
  }

  .brand-title {
    font-size: 1.05rem;
  }

  .section-title {
    display: grid;
    gap: 6px;
  }

  .chips {
    gap: 8px;
  }

  .chip {
    flex: 1 1 auto;
    justify-content: center;
    text-align: center;
  }

  #furnitureGrid,
  #enterpriseFurnitureGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
    padding: 6px;
  }

  .furniture-card {
    min-height: 178px;
    padding: 8px;
  }

  .furn-media {
    flex-basis: 86px;
  }

  .furniture-card h3 {
    font-size: 0.84rem;
  }

  .furniture-card p,
  .furn-hint {
    font-size: 0.76rem;
  }
}

@media (max-width: 680px) {
  .container--home .topbar {
    justify-content: center;
  }

  .container--home .brand {
    width: auto;
    justify-content: center;
  }

  .container--home .hero-wrap {
    gap: 16px;
  }

  .container--home .hero-single {
    text-align: center;
  }

  .container--home .hero-single h1 {
    font-size: clamp(2rem, 11vw, 2.8rem);
  }

  .container--home .hero-single .btnrow,
  .container--home .hero-features {
    justify-content: center;
  }

  .container--home .hero-features {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 8px;
  }

  .container--home .hero-features li {
    justify-content: center;
  }

  .container--home .home-footer-card {
    padding: 14px;
  }

  .container--home .home-footer-shell {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .container--home .home-footer-group,
  .container--home .home-footer-contact,
  .container--home .home-footer-link-list,
  .container--home .home-footer-contact-list {
    align-items: center;
    justify-items: center;
    text-align: center;
  }

  .step5-pagination {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
  }

  .step5-page-btn {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 760px) {
  body[data-page]:not([data-page="index"]) .topbar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  body[data-page]:not([data-page="index"]) .topbar .brand {
    min-width: 0;
    flex: 0 1 auto;
  }

  body[data-page]:not([data-page="index"]) .topbar .nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    flex: 0 0 100%;
    gap: 6px;
  }

  body[data-page]:not([data-page="index"]) .topbar .nav a,
  body[data-page]:not([data-page="index"]) .topbar .nav-link {
    width: 100%;
    min-height: 34px;
    padding: 7px 10px;
    font-size: 0.8rem;
    white-space: nowrap;
  }
}

@media (max-width: 380px) {
  body[data-page]:not([data-page="index"]) .brand-title {
    display: none;
  }
}

/* ========== 2026-05-06 Home Logo ========== */
.brand-logo {
  width: 44px;
  height: 44px;
  display: block;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 8px 16px rgba(15, 23, 42, 0.12));
  transition: transform var(--transition), filter var(--transition);
}

.brand:hover .brand-logo {
  transform: scale(1.04);
  filter: drop-shadow(0 10px 20px rgba(15, 23, 42, 0.16));
}

.container--home .brand-logo {
  width: 42px;
  height: 42px;
}

.hero-title {
  display: grid;
  gap: 0;
}

.hero-title__main {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}

.hero-title__logo {
  width: clamp(48px, 5.6vw, 72px);
  height: clamp(48px, 5.6vw, 72px);
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 12px 22px rgba(15, 23, 42, 0.12));
}

.hero-title .gradient {
  display: block;
}

.container--home .hero-title {
  margin-bottom: 24px;
}

.container--home .hero-title__main {
  color: #0f172a;
  letter-spacing: 0;
}

.container--home .hero-single .btnrow {
  margin-top: 0;
  margin-bottom: 24px;
}

.container--home .hero-cta {
  min-height: 54px;
  padding: 0 18px 0 26px;
  border-radius: 999px;
  gap: 12px;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 16px 34px rgba(10, 132, 255, 0.3);
}

.hero-cta__icon {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #0a84ff;
  background: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
  line-height: 1;
}

.container--home .hero-features {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 420px;
  gap: 10px;
}

.container--home .hero-features li {
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(255, 255, 255, 0.52);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  color: #334155;
  font-size: 0.9rem;
}

.container--home .hero-features__dot {
  width: 8px;
  height: 8px;
  box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.1);
}

@media (max-width: 960px) {
  .hero-title__main {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .hero-title__main {
    justify-content: center;
    gap: 10px;
  }

  .hero-title__logo {
    width: 42px;
    height: 42px;
  }

  .container--home .hero-title__main {
    white-space: normal;
  }

  .container--home .hero-cta {
    width: min(100%, 220px);
    justify-content: center;
  }

  .container--home .hero-features {
    max-width: 100%;
  }
}

@media (max-width: 420px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .container--home .hero-visual__frame {
    border-radius: 20px;
  }

  .container--home .hero-visual__inner,
  .container--home .hero-carousel__track {
    border-radius: 15px;
  }

  #furnitureGrid,
  #enterpriseFurnitureGrid {
    grid-template-columns: 1fr;
  }

  .furniture-card {
    min-height: 160px;
  }
}

/* ========== 2026-05-06 Home Brand Palette & Wider Layout ========== */
body[data-page="index"] {
  background:
    radial-gradient(960px 520px at 8% 12%, rgba(30, 58, 95, 0.12), transparent 62%),
    radial-gradient(880px 520px at 92% 14%, rgba(197, 148, 75, 0.14), transparent 58%),
    radial-gradient(980px 560px at 50% 88%, rgba(222, 236, 250, 0.72), transparent 66%),
    linear-gradient(180deg, #f6fbff 0%, #f7fafc 44%, #f4f1eb 100%);
}

body[data-page="index"]::before {
  background:
    radial-gradient(44% 38% at 82% 18%, rgba(197, 148, 75, 0.12), transparent 72%),
    radial-gradient(34% 30% at 8% 74%, rgba(30, 58, 95, 0.08), transparent 78%);
}

.container--home {
  max-width: 1560px;
  padding-left: clamp(18px, 3vw, 46px);
  padding-right: clamp(18px, 3vw, 46px);
}

.container--home::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(250, 247, 241, 0.1) 100%);
  border-color: rgba(197, 148, 75, 0.16);
}

.container--home .topbar,
.container--home .hero-wrap,
.container--home .footer--home {
  width: min(1480px, 100%);
  max-width: 1480px;
}

.container--home .brand {
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(197, 148, 75, 0.22);
  box-shadow: 0 14px 32px rgba(30, 58, 95, 0.08);
}

.container--home .brand-title,
.container--home .hero-title__main {
  color: #122238;
}

.container--home .hero-wrap {
  grid-template-columns: minmax(470px, 0.78fr) minmax(720px, 1.22fr);
  gap: clamp(38px, 4.6vw, 72px);
}

.container--home .hero-single {
  max-width: 560px;
}

.container--home .hero-single h1 {
  font-size: clamp(3.2rem, 5vw, 4.8rem);
}

.container--home .hero-visual__frame {
  width: min(100%, 900px);
  max-width: 900px;
  border-color: rgba(197, 148, 75, 0.2);
  box-shadow: 0 28px 70px rgba(18, 34, 56, 0.13);
}

.container--home .hero-cta {
  background: linear-gradient(135deg, #14263d 0%, #1f3b5d 54%, #c5944b 100%);
  box-shadow: 0 18px 38px rgba(30, 58, 95, 0.24), 0 8px 18px rgba(197, 148, 75, 0.16);
}

.container--home .hero-cta:hover {
  box-shadow: 0 22px 46px rgba(30, 58, 95, 0.3), 0 10px 22px rgba(197, 148, 75, 0.22);
}

.hero-cta__icon {
  color: #14263d;
  background: linear-gradient(180deg, #fffaf1 0%, #f1dcae 100%);
}

.container--home .hero-features {
  max-width: 500px;
}

.container--home .hero-features li {
  border-color: rgba(197, 148, 75, 0.16);
  background: rgba(255, 255, 255, 0.64);
  color: #24364d;
  box-shadow: 0 12px 26px rgba(30, 58, 95, 0.06);
}

.container--home .hero-features__dot,
.hero-carousel__dot.is-active {
  background: linear-gradient(145deg, #1f3b5d 0%, #c5944b 100%);
}

.container--home .home-footer-card {
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(197, 148, 75, 0.15);
}

@media (max-width: 1180px) {
  .container--home .hero-wrap {
    grid-template-columns: minmax(390px, 0.82fr) minmax(560px, 1.18fr);
    gap: 32px;
  }

  .container--home .hero-visual__frame {
    max-width: 760px;
  }
}

@media (max-width: 960px) {
  .container--home .hero-wrap {
    grid-template-columns: 1fr;
  }

  .container--home .hero-single {
    max-width: none;
  }

  .container--home .hero-visual__frame {
    width: min(100%, 680px);
    max-width: 680px;
  }
}

@media (max-width: 680px) {
  .container--home .hero-single h1 {
    font-size: clamp(2.2rem, 11vw, 3rem);
  }
}

/* ========== 2026-05-06 Reference Hero Layout ========== */
body[data-page="index"] {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(8, 13, 20, 0.76) 0%, rgba(8, 13, 20, 0.58) 42%, rgba(8, 13, 20, 0.5) 100%),
    linear-gradient(180deg, rgba(8, 13, 20, 0.28) 0%, rgba(8, 13, 20, 0.78) 100%),
    url("hero/hero-1.webp") center / cover no-repeat;
  color: #fff;
}

body[data-page="index"]::before,
body[data-page="index"]::after,
.container--home::before {
  display: none;
}

.container--home {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  padding: 14px clamp(18px, 3.8vw, 72px) 32px;
  justify-content: flex-start;
  gap: 0;
}

.container--home .topbar {
  width: 100%;
  max-width: none;
  min-height: 58px;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(20px, 3vw, 46px);
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  position: relative;
  top: 0;
}

.container--home .brand {
  padding: 0;
  gap: 12px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.container--home .brand-logo {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  padding: 5px;
  filter: none;
}

.container--home .brand-title {
  color: #fff;
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.32);
}

.home-nav {
  justify-content: flex-start;
  gap: clamp(16px, 2vw, 30px);
  flex-wrap: nowrap;
  min-width: 0;
  overflow: hidden;
}

.home-nav a {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: none;
}

.home-nav a:hover,
.home-nav a.is-active {
  color: #d7a85b;
  background: transparent;
  border: 0;
}

.home-top-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 22px;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #1d3a5d 0%, #d4a158 100%);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.container--home .hero-wrap {
  width: 100%;
  max-width: none;
  flex: 1;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(420px, 0.72fr) minmax(680px, 1.28fr);
  gap: clamp(42px, 5vw, 92px);
  align-items: center;
  padding: clamp(54px, 8vh, 104px) 0 64px;
}

.container--home .hero-single {
  max-width: 620px;
  padding: 0;
  color: #fff;
}

.container--home .hero-title {
  margin: 0 0 24px;
}

.container--home .hero-title__main {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  color: #fff;
  font-size: clamp(4.2rem, 6.2vw, 6.4rem);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: 0;
  text-shadow: 0 5px 26px rgba(0, 0, 0, 0.35);
}

.container--home .hero-title__logo {
  width: clamp(64px, 5.4vw, 86px);
  height: clamp(64px, 5.4vw, 86px);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  padding: 8px;
  filter: none;
}

.hero-copy {
  max-width: 620px;
  margin: 0 0 44px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.14rem, 1.55vw, 1.45rem);
  line-height: 1.75;
  font-weight: 650;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.container--home .hero-single .btnrow {
  margin: 0;
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.container--home .hero-cta,
.container--home .hero-guide {
  min-width: 184px;
  min-height: 62px;
  border-radius: 6px;
  font-size: 1.08rem;
}

.container--home .hero-cta {
  color: #fff;
  background: #24384b;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.container--home .hero-cta:hover {
  transform: translateY(-2px);
  background: #1b2c3d;
}

.hero-cta__icon {
  color: #24384b;
  background: #fff;
}

.container--home .hero-guide {
  color: #1d2f42;
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(255, 255, 255, 0.72);
}

.container--home .hero-visual {
  min-height: 0;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.container--home .hero-visual__frame {
  width: min(100%, 1010px);
  max-width: 1010px;
  aspect-ratio: 16 / 9.35;
  border-radius: 16px;
  border: 14px solid #050505;
  background: #050505;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.44);
  overflow: hidden;
}

.container--home .hero-visual__inner,
.container--home .hero-carousel,
.container--home .hero-carousel__track {
  inset: 0;
  border-radius: 2px;
  background: #050505;
}

.container--home .hero-carousel__slide {
  padding: 0;
  background: #050505;
}

.container--home .hero-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: #050505;
}

.container--home .hero-carousel__dots {
  position: static;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.container--home .hero-carousel__dot {
  background: rgba(255, 255, 255, 0.42);
  border-color: rgba(255, 255, 255, 0.28);
}

.container--home .hero-carousel__dot.is-active {
  width: 28px;
  background: #d7a85b;
  border-color: #d7a85b;
}

.container--home .hero-visual__accent,
.container--home .footer--home {
  display: none;
}

@media (max-width: 1180px) {
  .home-nav {
    display: none;
  }

  .container--home .topbar {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .container--home .hero-wrap {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 44px;
  }

  .container--home .hero-single {
    max-width: none;
  }

  .container--home .hero-visual__frame {
    max-width: 920px;
  }
}

@media (max-width: 680px) {
  .container--home {
    padding: 12px 14px 24px;
  }

  .container--home .brand-logo {
    width: 42px;
    height: 42px;
  }

  .container--home .brand-title {
    font-size: 1.2rem;
  }

  .home-top-cta {
    display: none;
  }

  .container--home .topbar {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .container--home .hero-wrap {
    padding-top: 36px;
    gap: 28px;
  }

  .container--home .hero-single {
    text-align: center;
  }

  .container--home .hero-title__main {
    justify-content: center;
    white-space: normal;
    font-size: clamp(2.6rem, 15vw, 4rem);
    gap: 12px;
  }

  .container--home .hero-title__logo {
    width: 54px;
    height: 54px;
  }

  .hero-copy {
    margin-bottom: 28px;
    font-size: 1rem;
  }

  .container--home .hero-single .btnrow {
    justify-content: center;
  }

  .container--home .hero-cta,
  .container--home .hero-guide {
    width: min(100%, 260px);
    min-height: 52px;
  }

  .container--home .hero-visual__frame {
    border-width: 8px;
    border-radius: 12px;
  }
}

/* ========== 2026-05-06 Reference Fine Tune ========== */
.container--home .topbar {
  padding-top: 2px;
}

.container--home .hero-wrap {
  grid-template-columns: minmax(650px, 0.78fr) minmax(760px, 1.22fr);
  gap: clamp(32px, 4vw, 76px);
  padding-top: clamp(58px, 9vh, 112px);
}

.container--home .hero-single {
  max-width: 760px;
}

.container--home .hero-title__main {
  font-size: clamp(4rem, 5.15vw, 5.55rem);
  gap: 24px;
  white-space: nowrap;
}

.container--home .hero-title__logo {
  width: clamp(70px, 5.2vw, 86px);
  height: clamp(70px, 5.2vw, 86px);
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 36px;
  color: #fff;
  font-size: clamp(1.08rem, 1.32vw, 1.32rem);
}

.container--home .hero-cta {
  min-width: 340px;
  min-height: 62px;
  padding: 0 34px;
  border-radius: 6px;
  justify-content: center;
  background: #27394b;
}

.container--home .hero-guide,
.hero-cta__icon {
  display: none;
}

.container--home .hero-visual {
  justify-content: flex-end;
}

.container--home .hero-visual__frame {
  width: min(100%, 1040px);
  max-width: 1040px;
  aspect-ratio: 3 / 2;
  border-width: 14px;
  border-radius: 16px;
}

.container--home .hero-carousel__slide img {
  object-fit: contain;
}

@media (max-width: 1440px) {
  .container--home .hero-wrap {
    grid-template-columns: minmax(560px, 0.78fr) minmax(640px, 1.22fr);
    gap: 34px;
  }

  .container--home .hero-title__main {
    font-size: clamp(3.35rem, 5vw, 4.7rem);
  }

  .container--home .hero-visual__frame {
    max-width: 900px;
  }
}

@media (max-width: 1180px) {
  .container--home .hero-wrap {
    grid-template-columns: 1fr;
  }

  .container--home .hero-visual {
    justify-content: center;
  }
}

@media (max-width: 680px) {
  .container--home .hero-title__main {
    white-space: normal;
    font-size: clamp(2.45rem, 13vw, 3.5rem);
  }

  .container--home .hero-cta {
    min-width: 0;
    width: min(100%, 260px);
  }
}

/* ========== 2026-05-06 Home Showcase Balance ========== */
body[data-page="index"] .container--home .hero-wrap {
  grid-template-columns: minmax(560px, 0.86fr) minmax(640px, 1.14fr);
  gap: clamp(28px, 3.2vw, 56px);
  padding-top: clamp(44px, 7vh, 88px);
}

body[data-page="index"] .hero-copy {
  color: #fff !important;
  opacity: 1;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.48);
}

body[data-page="index"] .container--home .hero-visual {
  justify-content: flex-start;
  transform: translateX(-24px);
}

body[data-page="index"] .container--home .hero-visual__frame {
  width: min(100%, 940px);
  max-width: 940px;
  aspect-ratio: 3 / 2;
}

body[data-page="index"] .container--home .hero-carousel__slide img {
  object-fit: contain;
}

@media (max-width: 1440px) {
  body[data-page="index"] .container--home .hero-wrap {
    grid-template-columns: minmax(500px, 0.82fr) minmax(560px, 1.18fr);
    gap: 30px;
  }

  body[data-page="index"] .container--home .hero-visual {
    transform: translateX(-12px);
  }

  body[data-page="index"] .container--home .hero-visual__frame {
    max-width: 820px;
  }
}

@media (max-width: 1180px) {
  body[data-page="index"] .container--home .hero-wrap {
    grid-template-columns: 1fr;
  }

  body[data-page="index"] .container--home .hero-visual {
    justify-content: center;
    transform: none;
  }
}

/* ========== 2026-05-06 Home Footer Restore ========== */
body[data-page="index"] .container--home {
  min-height: 100vh;
}

body[data-page="index"] .container--home .footer--home {
  display: block;
  width: calc(100% + clamp(36px, 7.6vw, 144px));
  margin: 18px calc(clamp(18px, 3.8vw, 72px) * -1) 0;
  padding: 0 clamp(18px, 3.8vw, 72px);
  background:
    linear-gradient(180deg, rgba(8, 13, 20, 0) 0%, rgba(8, 13, 20, 0.44) 28%, rgba(8, 13, 20, 0.68) 100%);
}

body[data-page="index"] .container--home .home-footer-card {
  display: block;
  width: 100%;
  border-radius: 0;
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
  backdrop-filter: none;
}

body[data-page="index"] .container--home .home-footer-shell {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 0;
}

body[data-page="index"] .container--home .home-footer-group,
body[data-page="index"] .container--home .home-footer-contact,
body[data-page="index"] .container--home .home-footer-link-list,
body[data-page="index"] .container--home .home-footer-contact-list {
  display: flex;
}

body[data-page="index"] .container--home .home-footer-group,
body[data-page="index"] .container--home .home-footer-contact {
  flex-direction: column;
  gap: 10px;
}

body[data-page="index"] .container--home .home-footer-group h3,
body[data-page="index"] .container--home .home-footer-contact h3 {
  color: #fff;
}

body[data-page="index"] .container--home .home-footer-link-list,
body[data-page="index"] .container--home .home-footer-contact-list {
  flex-direction: column;
  gap: 8px;
}

body[data-page="index"] .container--home .home-footer-link-list a,
body[data-page="index"] .container--home .home-footer-link-list span,
body[data-page="index"] .container--home .home-footer-contact-list span {
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 680px) {
  body[data-page="index"] .container--home .home-footer-shell {
    grid-template-columns: 1fr;
    padding: 22px 0;
  }
}

/* ========== 2026-05-06 Home Background Continuity ========== */
body[data-page="index"] {
  position: relative;
  background:
    url("hero/hero-1.webp") center / cover fixed no-repeat,
    #101418;
}

body[data-page="index"]::before {
  content: "";
  display: block;
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 13, 20, 0.82) 0%, rgba(8, 13, 20, 0.62) 44%, rgba(8, 13, 20, 0.46) 100%),
    linear-gradient(180deg, rgba(8, 13, 20, 0.18) 0%, rgba(8, 13, 20, 0.64) 100%);
}

body[data-page="index"] .container--home {
  position: relative;
  z-index: 1;
  background: transparent;
}

body[data-page="index"] .container--home .footer--home {
  background: transparent;
}

/* ========== 2026-05-06 Sitewide Home-Aligned Theme ========== */
body[data-page]:not([data-page="index"]) {
  color: #fff;
  background:
    url("hero/hero-1.webp") center / cover fixed no-repeat,
    #101418;
}

body[data-page]:not([data-page="index"])::before {
  content: "";
  display: block;
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 13, 20, 0.82) 0%, rgba(8, 13, 20, 0.66) 46%, rgba(8, 13, 20, 0.5) 100%),
    linear-gradient(180deg, rgba(8, 13, 20, 0.34) 0%, rgba(8, 13, 20, 0.74) 100%);
}

body[data-page]:not([data-page="index"]) .container {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  padding-top: 16px;
  min-height: auto;
  padding-bottom: 24px;
  background: transparent;
}

body[data-page]:not([data-page="index"]) .topbar,
body[data-page]:not([data-page="index"]) .progress,
body[data-page]:not([data-page="index"]) .section,
body[data-page]:not([data-page="index"]) .footer {
  background: rgba(6, 12, 20, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
}

body[data-page]:not([data-page="index"]) .topbar {
  border-radius: 16px;
}

body[data-page]:not([data-page="index"]) .brand,
body[data-page]:not([data-page="index"]) .topbar .nav a,
body[data-page]:not([data-page="index"]) .topbar .nav-link {
  color: rgba(255, 255, 255, 0.9);
}

body[data-page]:not([data-page="index"]) .brand-badge {
  background: rgba(255, 255, 255, 0.94);
  color: #1d3147;
}

body[data-page]:not([data-page="index"]) .brand-title,
body[data-page]:not([data-page="index"]) .section-title h2,
body[data-page]:not([data-page="index"]) .card h3 {
  color: #fff;
}

body[data-page]:not([data-page="index"]) .section-title p,
body[data-page]:not([data-page="index"]) .card p,
body[data-page]:not([data-page="index"]) .footer,
body[data-page]:not([data-page="index"]) .progress .labels span {
  color: rgba(255, 255, 255, 0.74);
}

body[data-page]:not([data-page="index"]) .topbar .nav a,
body[data-page]:not([data-page="index"]) .topbar .nav-link {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

body[data-page]:not([data-page="index"]) .topbar .nav a:hover,
body[data-page]:not([data-page="index"]) .topbar .nav-link:hover,
body[data-page]:not([data-page="index"]) .progress .labels span.active {
  color: #d7a85b;
}

body[data-page]:not([data-page="index"]) .section {
  border-radius: 20px;
  margin-bottom: 0;
}

body[data-page]:not([data-page="index"]) .card,
body[data-page]:not([data-page="index"]) .upload,
body[data-page]:not([data-page="index"]) .preview,
body[data-page]:not([data-page="index"]) .material-column,
body[data-page]:not([data-page="index"]) .step5-library-panel,
body[data-page]:not([data-page="index"]) .step6-mode-card {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

body[data-page]:not([data-page="index"]) .card h3,
body[data-page]:not([data-page="index"]) .card p,
body[data-page]:not([data-page="index"]) .upload,
body[data-page]:not([data-page="index"]) .material-column,
body[data-page]:not([data-page="index"]) .step5-library-panel,
body[data-page]:not([data-page="index"]) .step6-mode-card {
  color: #1d3147;
}

body[data-page]:not([data-page="index"]) .card.selected,
body[data-page]:not([data-page="index"]) .card.clickable:hover {
  border-color: rgba(215, 168, 91, 0.82);
  box-shadow: 0 20px 46px rgba(215, 168, 91, 0.2);
}

body[data-page]:not([data-page="index"]) .btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #1d3a5d 0%, #d4a158 100%);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

body[data-page]:not([data-page="index"]) .btn-primary:hover {
  background: linear-gradient(135deg, #162d49 0%, #c5944b 100%);
}

body[data-page]:not([data-page="index"]) .btn-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

body[data-page]:not([data-page="index"]) .bar {
  background: rgba(255, 255, 255, 0.16);
}

body[data-page]:not([data-page="index"]) .bar > div {
  background: linear-gradient(90deg, #d7a85b 0%, #f1d39a 100%);
}

body[data-page]:not([data-page="index"]) input,
body[data-page]:not([data-page="index"]) select,
body[data-page]:not([data-page="index"]) textarea {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(29, 49, 71, 0.16);
  color: #1d3147;
}

body[data-page="legal"] .section {
  color: rgba(255, 255, 255, 0.86);
}

body[data-page="legal"] .section h3,
body[data-page="legal"] .section strong {
  color: #fff;
}

body[data-page]:not([data-page="index"]) .footer {
  display: none !important;
}

body[data-page="step1"] .container,
body[data-page="step2"] .container,
body[data-page="step3"] .container,
body[data-page="step4"] .container,
body[data-page="step5"] .container,
body[data-page="step6"] .container,
body[data-page="step7"] .container,
body[data-page="local-edit"] .container {
  min-height: calc(100vh - 22px);
  justify-content: flex-start;
  gap: 18px;
}

body[data-page="step1"] .section,
body[data-page="step2"] .section,
body[data-page="step3"] .section,
body[data-page="step4"] .section,
body[data-page="step5"] .section,
body[data-page="step6"] .section,
body[data-page="step7"] .section,
body[data-page="local-edit"] .section {
  margin-top: auto;
  margin-bottom: auto;
}

@media (max-width: 760px) {
  body[data-page]:not([data-page="index"]) .container {
    padding-top: 12px;
  }

  body[data-page]:not([data-page="index"]) .section {
    border-radius: 16px;
    padding: 18px;
  }
}

/* ========== 2026-05-06 Restore Step Frame & Center Content ========== */
body[data-page="step1"] .container,
body[data-page="step2"] .container,
body[data-page="step3"] .container,
body[data-page="step4"] .container,
body[data-page="step5"] .container,
body[data-page="step6"] .container,
body[data-page="step7"] .container,
body[data-page="local-edit"] .container {
  min-height: calc(100vh - 22px) !important;
  padding-bottom: 56px !important;
}

body[data-page="step1"] .container::before,
body[data-page="step2"] .container::before,
body[data-page="step3"] .container::before,
body[data-page="step4"] .container::before,
body[data-page="step5"] .container::before,
body[data-page="step6"] .container::before,
body[data-page="step7"] .container::before,
body[data-page="local-edit"] .container::before {
  inset: 12px 8px 14px;
}

body[data-page="step1"] .section,
body[data-page="step2"] .section,
body[data-page="step3"] .section,
body[data-page="step4"] .section,
body[data-page="step5"] .section,
body[data-page="step6"] .section,
body[data-page="step7"] .section,
body[data-page="local-edit"] .section {
  margin-top: auto !important;
  margin-bottom: auto !important;
}

/* ========== 2026-05-07 Home Footer Brand Intro ========== */
body[data-page="index"] .container--home .home-footer-shell {
  grid-template-columns: minmax(280px, 1.7fr) minmax(130px, 0.75fr) minmax(130px, 0.75fr) minmax(190px, 1fr);
  align-items: start;
  gap: clamp(24px, 4vw, 56px);
  max-width: 1280px;
}

body[data-page="index"] .container--home .home-footer-brand {
  display: grid;
  gap: 14px;
  max-width: 430px;
  color: rgba(255, 255, 255, 0.82);
}

body[data-page="index"] .container--home .home-footer-brand__head {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

body[data-page="index"] .container--home .home-footer-brand__logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
}

body[data-page="index"] .container--home .home-footer-brand__head strong {
  font-size: 1.28rem;
  line-height: 1.2;
  font-weight: 800;
}

body[data-page="index"] .container--home .home-footer-brand p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
  line-height: 1.75;
  font-weight: 600;
}

@media (max-width: 960px) {
  body[data-page="index"] .container--home .home-footer-shell {
    grid-template-columns: 1fr 1fr;
  }

  body[data-page="index"] .container--home .home-footer-brand {
    grid-column: 1 / -1;
    max-width: 720px;
  }
}

@media (max-width: 680px) {
  body[data-page="index"] .container--home .home-footer-shell {
    grid-template-columns: 1fr;
  }

  body[data-page="index"] .container--home .home-footer-brand p {
    font-size: 0.86rem;
    line-height: 1.65;
  }
}

/* ========== 2026-05-07 Step5 / Step6 Viewport Fit ========== */
body[data-page="step5"] .container,
body[data-page="step6"] .container {
  max-width: 1360px;
  gap: 12px;
  padding-top: 12px !important;
  padding-bottom: 18px !important;
}

body[data-page="step5"] .container > .section,
body[data-page="step6"] .container > .section {
  width: min(1280px, 100%);
  padding: 18px;
}

body[data-page="step5"] .section,
body[data-page="step6"] .section {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

body[data-page="step5"] .section-title,
body[data-page="step6"] .section-title {
  margin-bottom: 12px;
}

body[data-page="step5"] .section-title h2,
body[data-page="step6"] .section-title h2 {
  font-size: 1.28rem;
  line-height: 1.2;
}

body[data-page="step5"] .section-title p,
body[data-page="step6"] .section-title p,
body[data-page="step6"] .step6-title-hint {
  font-size: 0.82rem;
  line-height: 1.35;
}

body[data-page="step5"] .step-task-status {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  gap: 14px;
  align-items: center;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 18px;
}

body[data-page="step5"] .step-task-status[hidden] {
  display: none;
}

body[data-page="step5"] .step-task-status__main {
  align-items: center;
  gap: 12px;
}

body[data-page="step5"] .step-task-status__icon {
  flex-basis: 38px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

body[data-page="step5"] .step-task-status__icon::before {
  inset: 10px;
}

body[data-page="step5"] .step-task-status__topline {
  margin-bottom: 4px;
}

body[data-page="step5"] .step-task-status__badge {
  min-height: 24px;
  padding: 4px 10px;
  font-size: 0.74rem;
}

body[data-page="step5"] .step-task-status__meta {
  font-size: 0.76rem;
}

body[data-page="step5"] .step-task-status__title {
  margin-bottom: 3px;
  font-size: 0.98rem;
  line-height: 1.25;
}

body[data-page="step5"] .step-task-status__detail {
  font-size: 0.82rem;
  line-height: 1.35;
}

body[data-page="step5"] .step-task-status__facts {
  gap: 8px;
  margin-top: 8px;
}

body[data-page="step5"] .step-task-status__fact {
  min-height: 28px;
  padding: 5px 10px;
  font-size: 0.76rem;
}

body[data-page="step5"] .step-task-status__progress {
  margin-top: 0;
  gap: 8px;
}

body[data-page="step5"] .step-task-status__progress-item {
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
}

body[data-page="step5"] .grid-step5 {
  grid-template-columns: minmax(380px, 0.92fr) minmax(520px, 1.08fr);
  gap: 20px;
  align-items: stretch;
}

body[data-page="step5"] .step5-preview-column,
body[data-page="step5"] .step5-library-column {
  min-width: 0;
}

body[data-page="step5"] #basePreviewImg {
  height: clamp(250px, 42vh, 390px);
  object-fit: contain;
}

body[data-page="step5"] .step5-nav-row {
  margin-top: 12px;
}

body[data-page="step5"] .library-switch {
  min-height: 34px;
  margin-bottom: 10px;
}

body[data-page="step5"] .library-btn {
  min-height: 30px;
  padding: 5px 12px;
  font-size: 0.82rem;
}

body[data-page="step5"] .chips {
  gap: 7px;
  margin-bottom: 0;
}

body[data-page="step5"] .chip {
  min-height: 30px;
  padding: 6px 10px;
  font-size: 0.78rem;
}

body[data-page="step5"] #officialGallery > div[style],
body[data-page="step5"] #enterpriseGallery > div[style] {
  height: 8px !important;
}

body[data-page="step5"] #furnitureGrid,
body[data-page="step5"] #enterpriseFurnitureGrid {
  max-height: clamp(338px, 45vh, 430px);
  grid-template-columns: repeat(3, minmax(126px, 1fr));
  gap: 10px;
  padding: 8px;
}

body[data-page="step5"] .furniture-card {
  min-height: 164px;
  padding: 8px;
  gap: 6px;
  border-radius: 14px;
}

body[data-page="step5"] .furn-media {
  flex-basis: 76px;
  min-height: 76px;
  border-radius: 12px;
}

body[data-page="step5"] .furn-meta {
  min-height: 58px;
  gap: 2px;
}

body[data-page="step5"] .furniture-card h3 {
  font-size: 0.8rem;
  line-height: 1.18;
  min-height: 0;
}

body[data-page="step5"] .furniture-card p,
body[data-page="step5"] .furn-hint {
  font-size: 0.72rem;
  line-height: 1.25;
}

body[data-page="step5"] .step5-library-footer {
  margin-top: 8px;
}

body[data-page="step5"] .step5-page-btn {
  min-height: 32px;
  min-width: 76px;
  padding: 0 10px;
  font-size: 0.78rem;
}

body[data-page="step6"] .step6-workspace {
  display: grid;
  grid-template-columns: minmax(470px, 1.08fr) minmax(430px, 0.92fr);
  gap: 20px;
  align-items: start;
}

body[data-page="step6"] .step6-preview-shell {
  position: relative;
  margin-bottom: 0;
  gap: 0;
}

body[data-page="step6"] #step6FurniturePreview {
  margin-bottom: 0;
}

body[data-page="step6"] #step6FurnitureImg {
  height: clamp(390px, 66vh, 620px);
  object-fit: contain;
}

body[data-page="step6"] .step6-loading {
  min-height: clamp(360px, 62vh, 560px);
}

body[data-page="step6"] .step6-preview-tools {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 3;
  min-height: 0;
  margin: 0;
  pointer-events: none;
}

body[data-page="step6"] .step6-preview-tools .step6-zoom-slot {
  pointer-events: auto;
}

body[data-page="step6"] .step6-style-column {
  gap: 12px;
  max-height: calc(100vh - 150px);
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-gutter: stable;
}

body[data-page="step6"] .step6-style-column::-webkit-scrollbar {
  width: 6px;
}

body[data-page="step6"] .step6-style-column::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

body[data-page="step6"] .step6-style-column::-webkit-scrollbar-thumb {
  background: rgba(215, 168, 91, 0.58);
  border-radius: 999px;
}

body[data-page="step6"] .step6-style-grid {
  gap: 10px;
}

body[data-page="step6"] .step6-style-grid .card {
  min-height: 68px;
  padding: 12px 14px;
  border-radius: 14px;
}

body[data-page="step6"] .step6-style-grid .card h3 {
  margin-bottom: 4px;
  font-size: 0.9rem;
}

body[data-page="step6"] .step6-style-grid .card p {
  font-size: 0.76rem;
  line-height: 1.3;
}

body[data-page="step6"] .step6-compact-panel {
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
}

body[data-page="step6"] .step6-toolbar-row {
  gap: 10px;
}

body[data-page="step6"] .step6-toolbar-label {
  flex-basis: 72px;
  font-size: 0.78rem;
}

body[data-page="step6"] .step6-choice-grid {
  gap: 8px;
}

body[data-page="step6"] .step6-choice-card {
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 12px;
}

body[data-page="step6"] .step6-choice-card strong {
  font-size: 0.78rem;
}

body[data-page="step6"] .step6-upload-dropzone {
  min-height: 46px;
  padding: 10px;
}

body[data-page="step6"] .step6-scene-grid,
body[data-page="step6"] .step6-precision-list--inline {
  gap: 8px;
}

body[data-page="step6"] .step6-precision-card {
  min-height: 42px;
  padding: 9px 10px;
  border-radius: 12px;
}

body[data-page="step6"] .step6-summary--compact {
  padding: 10px;
  border-radius: 14px;
}

body[data-page="step6"] .step6-summary-badges {
  gap: 6px;
}

body[data-page="step6"] .step6-summary-badge {
  min-height: 24px;
  padding: 4px 8px;
  font-size: 0.7rem;
}

body[data-page="step6"] .step6-summary p {
  margin-top: 6px;
  font-size: 0.74rem;
  line-height: 1.35;
}

body[data-page="step6"] .step6-action-row {
  position: sticky;
  bottom: 0;
  z-index: 2;
  justify-content: flex-end;
  margin-top: 0;
  padding-top: 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.92) 42%);
}

@media (max-width: 1080px) {
  body[data-page="step5"] .grid-step5,
  body[data-page="step6"] .step6-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-page="step5"] .step-task-status {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-page="step6"] .step6-style-column {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  body[data-page="step6"] #step6FurnitureImg {
    height: auto;
    max-height: 420px;
  }
}

@media (max-width: 760px) {
  body[data-page="step5"] .container,
  body[data-page="step6"] .container {
    padding-bottom: 24px !important;
  }

  body[data-page="step5"] .container > .section,
  body[data-page="step6"] .container > .section {
    padding: 16px;
  }

  body[data-page="step5"] .step-task-status {
    padding: 12px;
  }

  body[data-page="step5"] .step-task-status__main {
    align-items: flex-start;
  }

  body[data-page="step5"] .step-task-status__progress {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-page="step5"] #basePreviewImg {
    height: auto;
    max-height: 360px;
  }

  body[data-page="step5"] #furnitureGrid,
  body[data-page="step5"] #enterpriseFurnitureGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
  }

  body[data-page="step6"] .step6-preview-tools {
    position: static;
    transform: none;
    justify-content: center;
    margin: 10px 0 0;
  }
}

/* ========== 2026-05-07 Step5 / Step6 Final Layout Override ========== */
@media (min-width: 1081px) {
  body[data-page="step5"] .container,
  body[data-page="step6"] .container {
    max-width: 1480px;
    padding-top: 10px !important;
    padding-bottom: 14px !important;
  }

  body[data-page="step5"] .container > .topbar,
  body[data-page="step6"] .container > .topbar {
    width: min(1320px, 100%);
  }

  body[data-page="step5"] .container > .section,
  body[data-page="step6"] .container > .section {
    width: min(1320px, 100%);
    min-height: calc(100vh - 120px);
    padding: 20px 24px;
  }

  body[data-page="step5"] .section-title,
  body[data-page="step6"] .section-title {
    margin-bottom: 10px;
  }

  body[data-page="step5"] .layout-panel {
    min-height: calc(100vh - 210px);
    display: grid;
    align-items: center;
  }

  body[data-page="step5"] .grid-step5 {
    grid-template-columns: minmax(440px, 0.9fr) minmax(560px, 1.1fr);
    align-items: center;
    gap: 28px;
  }

  body[data-page="step5"] .step5-preview-column {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 14px;
    transform: translateY(18px);
  }

  body[data-page="step5"] #basePreview {
    width: min(100%, 560px);
    aspect-ratio: 4 / 3;
    display: grid;
    place-items: center;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.06);
  }

  body[data-page="step5"] #basePreviewImg {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center;
    background: transparent;
  }

  body[data-page="step5"] .step5-nav-row {
    margin-top: 0;
  }

  body[data-page="step5"] #furnitureGrid,
  body[data-page="step5"] #enterpriseFurnitureGrid {
    max-height: clamp(360px, 52vh, 470px);
    grid-template-columns: repeat(3, minmax(140px, 1fr));
  }

  body[data-page="step5"] .furniture-card {
    min-height: 172px;
  }

  body[data-page="step6"] .section {
    display: block;
  }

  body[data-page="step6"] .step6-workspace {
    display: grid !important;
    grid-template-columns: minmax(560px, 1.08fr) minmax(500px, 0.92fr);
    gap: 24px;
    align-items: center;
    min-height: calc(100vh - 205px);
  }

  body[data-page="step6"] .step6-preview-shell {
    position: relative;
    align-self: center;
  }

  body[data-page="step6"] #step6FurniturePreview {
    width: 100%;
    max-height: none;
    margin: 0;
    border-radius: 22px;
  }

  body[data-page="step6"] #step6FurnitureImg {
    width: 100%;
    height: min(58vh, 520px);
    max-height: none;
    object-fit: cover;
    object-position: center;
    background: transparent;
  }

  body[data-page="step6"] .step6-preview-tools {
    position: absolute !important;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    margin: 0 !important;
  }

  body[data-page="step6"] .step6-style-column {
    max-height: none;
    overflow: visible;
    gap: 12px;
    padding-right: 0;
  }

  body[data-page="step6"] .step6-style-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  body[data-page="step6"] .step6-style-grid .card {
    min-height: 74px;
    padding: 12px 14px;
    border-radius: 14px;
  }

  body[data-page="step6"] .step6-compact-panel {
    gap: 10px;
    padding: 14px;
    border-radius: 16px;
  }

  body[data-page="step6"] .step6-toolbar-row {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
  }

  body[data-page="step6"] .step6-toolbar-label {
    width: auto;
    flex: none;
    font-size: 0.8rem;
  }

  body[data-page="step6"] .step6-choice-card {
    min-height: 38px;
    padding: 8px 10px;
  }

  body[data-page="step6"] .step6-summary--compact {
    padding: 10px 12px;
  }

  body[data-page="step6"] .step6-summary p {
    margin-top: 6px;
    line-height: 1.35;
  }

  body[data-page="step6"] .step6-action-row {
    position: static;
    justify-content: flex-end;
    padding-top: 0;
    background: transparent;
  }

  body[data-page="step6"] .step6-action-row .btn {
    min-width: 150px;
    min-height: 44px;
    border-radius: 999px;
  }
}

@media (min-width: 1081px) and (max-height: 820px) {
  body[data-page="step6"] .container > .section {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  body[data-page="step6"] .step6-workspace {
    min-height: calc(100vh - 185px);
  }

  body[data-page="step6"] #step6FurnitureImg {
    height: min(54vh, 470px);
  }

  body[data-page="step6"] .step6-style-grid .card {
    min-height: 66px;
    padding: 10px 12px;
  }

  body[data-page="step6"] .step6-compact-panel {
    gap: 8px;
    padding: 12px;
  }

  body[data-page="step6"] .step6-choice-card {
    min-height: 34px;
    padding: 7px 9px;
  }

  body[data-page="step6"] .step6-summary-badge {
    min-height: 22px;
  }
}

@supports selector(:has(*)) {
  @media (min-width: 1081px) {
    body[data-page="step6"] .section:has(> .step6-preview-shell):has(> .step6-style-column) {
      display: grid;
      grid-template-columns: minmax(560px, 1.08fr) minmax(500px, 0.92fr);
      gap: 24px;
      align-items: center;
    }

    body[data-page="step6"] .section:has(> .step6-preview-shell):has(> .step6-style-column) > .section-title {
      grid-column: 1 / -1;
      margin-bottom: 0;
    }

    body[data-page="step6"] .section:has(> .step6-preview-shell):has(> .step6-style-column) > .step6-preview-shell {
      grid-column: 1;
      margin-bottom: 0;
    }

    body[data-page="step6"] .section:has(> .step6-preview-shell):has(> .step6-style-column) > .step6-style-column {
      grid-column: 2;
      max-height: none;
      overflow: visible;
    }
  }
}

/* ========== 2026-05-07 Step5 / Step6 One-Screen Polish ========== */
@media (min-width: 1081px) {
  body[data-page="step5"],
  body[data-page="step6"] {
    overflow-y: hidden;
  }

  body[data-page="step5"] .container,
  body[data-page="step6"] .container {
    height: 100vh;
    min-height: 0;
    gap: 8px;
    padding-top: 8px !important;
    padding-bottom: 10px !important;
  }

  body[data-page="step5"] .container > .topbar,
  body[data-page="step6"] .container > .topbar {
    padding-top: 0;
    padding-bottom: 8px;
  }

  body[data-page="step5"] .progress[data-progress],
  body[data-page="step6"] .progress[data-progress] {
    margin-bottom: 6px;
  }

  body[data-page="step5"] .container > .section,
  body[data-page="step6"] .container > .section {
    height: calc(100vh - 118px);
    min-height: 0;
    padding: 16px 22px;
    overflow: hidden;
  }

  body[data-page="step5"] .footer,
  body[data-page="step6"] .footer {
    display: none;
  }

  body[data-page="step5"] .section {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
  }

  body[data-page="step5"] .layout-panel {
    min-height: 0;
    height: 100%;
    align-items: center;
  }

  body[data-page="step5"] .grid-step5 {
    height: 100%;
    align-items: center;
  }

  body[data-page="step5"] .step5-preview-column {
    transform: translateY(30px);
  }

  body[data-page="step5"] #basePreview {
    width: min(100%, 600px);
    aspect-ratio: 16 / 11;
    overflow: hidden;
  }

  body[data-page="step5"] #basePreviewImg {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: center;
  }

  body[data-page="step6"] .section {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 10px;
  }

  body[data-page="step6"] .section-title {
    margin-bottom: 0;
  }

  body[data-page="step6"] .section-title h2 {
    font-size: 1.12rem;
  }

  body[data-page="step6"] .step6-title-hint {
    margin-top: 3px;
    font-size: 0.76rem;
  }

  body[data-page="step6"] .step6-workspace {
    grid-template-columns: minmax(540px, 1.08fr) minmax(500px, 0.92fr);
    min-height: 0;
    height: 100%;
    align-items: center;
  }

  body[data-page="step6"] .step6-preview-shell,
  body[data-page="step6"] .step6-style-column {
    min-height: 0;
  }

  body[data-page="step6"] #step6FurnitureImg {
    height: min(100%, 560px);
    max-height: calc(100vh - 215px);
  }

  body[data-page="step6"] .step6-style-column {
    gap: 10px;
  }

  body[data-page="step6"] .step6-style-grid {
    gap: 8px;
  }

  body[data-page="step6"] .step6-style-grid .card {
    min-height: 62px;
    padding: 10px 12px;
  }

  body[data-page="step6"] .step6-style-grid .card h3 {
    margin-bottom: 3px;
    font-size: 0.92rem;
  }

  body[data-page="step6"] .step6-style-grid .card p {
    font-size: 0.74rem;
  }

  body[data-page="step6"] .step6-compact-panel {
    gap: 8px;
    padding: 12px;
  }

  body[data-page="step6"] .step6-toolbar-row {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  body[data-page="step6"] .step6-choice-card {
    min-height: 32px;
    padding: 6px 8px;
  }

  body[data-page="step6"] .step6-summary--compact {
    padding: 9px 10px;
  }

  body[data-page="step6"] .step6-summary p {
    font-size: 0.72rem;
  }
}

@media (min-width: 1081px) and (max-height: 760px) {
  body[data-page="step5"] .topbar,
  body[data-page="step6"] .topbar,
  body[data-page="step5"] .progress[data-progress],
  body[data-page="step6"] .progress[data-progress] {
    display: none;
  }

  body[data-page="step5"] .container > .section,
  body[data-page="step6"] .container > .section {
    height: calc(100vh - 18px);
  }

  body[data-page="step6"] #step6FurnitureImg {
    max-height: calc(100vh - 118px);
  }
}

/* ========== 2026-05-07 Step5 / Step6 Right Edge Fix ========== */
@media (min-width: 1081px) {
  body[data-page="step5"] .container,
  body[data-page="step6"] .container {
    max-width: min(1540px, calc(100vw - 56px));
  }

  body[data-page="step5"] .container > .topbar,
  body[data-page="step6"] .container > .topbar,
  body[data-page="step5"] .container > .section,
  body[data-page="step6"] .container > .section {
    width: min(1440px, 100%);
  }

  body[data-page="step5"] .container > .section,
  body[data-page="step6"] .container > .section {
    overflow: visible;
  }

  body[data-page="step5"] .grid-step5 {
    grid-template-columns: minmax(430px, 0.84fr) minmax(0, 1.16fr);
    gap: 22px;
  }

  body[data-page="step5"] .step5-library-column,
  body[data-page="step6"] .step6-style-column {
    min-width: 0;
    max-width: 100%;
  }

  body[data-page="step5"] #furnitureGrid,
  body[data-page="step5"] #enterpriseFurnitureGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 8px;
    overflow-x: hidden;
  }

  body[data-page="step5"] .furniture-card {
    min-width: 0;
  }

  body[data-page="step6"] .step6-workspace {
    grid-template-columns: minmax(560px, 1.03fr) minmax(0, 0.97fr);
    gap: 22px;
  }

  body[data-page="step6"] .step6-style-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body[data-page="step6"] .step6-style-grid .card,
  body[data-page="step6"] .step6-choice-card {
    min-width: 0;
  }

  body[data-page="step6"] .step6-action-row .btn {
    max-width: 100%;
  }
}

@media (min-width: 1081px) and (max-width: 1660px) {
  body[data-page="step5"] .container,
  body[data-page="step6"] .container {
    max-width: calc(100vw - 42px);
  }

  body[data-page="step5"] .container > .section,
  body[data-page="step6"] .container > .section {
    padding-left: 18px;
    padding-right: 18px;
  }

  body[data-page="step5"] .grid-step5 {
    grid-template-columns: minmax(390px, 0.8fr) minmax(0, 1.2fr);
    gap: 18px;
  }

  body[data-page="step5"] #basePreview {
    width: min(100%, 560px);
  }

  body[data-page="step5"] #furnitureGrid,
  body[data-page="step5"] #enterpriseFurnitureGrid {
    gap: 8px;
  }

  body[data-page="step5"] .furniture-card {
    padding: 8px;
  }

  body[data-page="step6"] .step6-workspace {
    grid-template-columns: minmax(500px, 0.98fr) minmax(0, 1.02fr);
    gap: 18px;
  }

  body[data-page="step6"] .step6-style-grid {
    gap: 8px;
  }

  body[data-page="step6"] .step6-style-grid .card {
    padding: 9px 11px;
  }
}

/* ========== 2026-05-07 Step5 Furniture Card Image Priority ========== */
body[data-page="step5"] .furniture-card .furn-hint {
  display: none !important;
}

body[data-page="step5"] .furniture-card {
  justify-content: flex-start;
  min-height: 188px;
  padding: 8px 8px 10px;
  gap: 7px;
}

body[data-page="step5"] .furn-media {
  flex: 0 0 112px;
  min-height: 112px;
  width: 100%;
}

body[data-page="step5"] .furn-media img {
  max-width: 98%;
  max-height: 98%;
  object-fit: contain;
}

body[data-page="step5"] .furn-meta {
  min-height: 0;
  gap: 1px;
  padding-top: 3px;
}

body[data-page="step5"] .furniture-card h3 {
  font-size: 0.76rem;
  line-height: 1.16;
  min-height: 0;
  -webkit-line-clamp: 1;
}

body[data-page="step5"] .furniture-card p {
  font-size: 0.7rem;
  line-height: 1.18;
}

@media (min-width: 1081px) and (max-width: 1660px) {
  body[data-page="step5"] .furniture-card {
    min-height: 178px;
  }

  body[data-page="step5"] .furn-media {
    flex-basis: 104px;
    min-height: 104px;
  }
}

/* ========== 2026-05-07 Step6 Panel Containment ========== */
@media (min-width: 1081px) {
  body[data-page="step6"] .container {
    max-width: min(1560px, calc(100vw - 48px));
  }

  body[data-page="step6"] .container > .topbar,
  body[data-page="step6"] .container > .section {
    width: min(1500px, 100%);
  }

  body[data-page="step6"] .container > .section {
    padding-left: 24px;
    padding-right: 24px;
    overflow: hidden;
  }

  body[data-page="step6"] .step6-workspace {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 24px;
    width: 100%;
    max-width: 100%;
  }

  body[data-page="step6"] .step6-preview-shell,
  body[data-page="step6"] .step6-style-column,
  body[data-page="step6"] .step6-compact-panel,
  body[data-page="step6"] .step6-style-grid {
    min-width: 0;
    max-width: 100%;
  }

  body[data-page="step6"] #step6FurniturePreview {
    width: 100%;
  }
}

@media (min-width: 1081px) and (max-width: 1660px) {
  body[data-page="step6"] .container {
    max-width: calc(100vw - 40px);
  }

  body[data-page="step6"] .container > .section {
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }

  body[data-page="step6"] .step6-workspace {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
    gap: 18px;
  }
}

/* ========== 2026-05-07 Home Footer Compact ========== */
body[data-page="index"] .container--home .footer--home {
  margin-top: 10px;
  padding-left: clamp(16px, 3vw, 54px);
  padding-right: clamp(16px, 3vw, 54px);
}

body[data-page="index"] .container--home .home-footer-shell {
  max-width: 1120px;
  grid-template-columns: minmax(240px, 1.35fr) minmax(120px, 0.7fr) minmax(120px, 0.7fr) minmax(180px, 0.95fr);
  gap: clamp(18px, 3vw, 38px);
  padding: 16px 0;
}

body[data-page="index"] .container--home .home-footer-brand {
  gap: 8px;
  max-width: 360px;
}

body[data-page="index"] .container--home .home-footer-brand__head {
  gap: 9px;
}

body[data-page="index"] .container--home .home-footer-brand__logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

body[data-page="index"] .container--home .home-footer-brand__head strong {
  font-size: 1.06rem;
}

body[data-page="index"] .container--home .home-footer-brand p {
  font-size: 0.76rem;
  line-height: 1.52;
  font-weight: 500;
}

body[data-page="index"] .container--home .home-footer-group,
body[data-page="index"] .container--home .home-footer-contact {
  gap: 7px;
}

body[data-page="index"] .container--home .home-footer-group h3,
body[data-page="index"] .container--home .home-footer-contact h3 {
  font-size: 0.82rem;
}

body[data-page="index"] .container--home .home-footer-link-list,
body[data-page="index"] .container--home .home-footer-contact-list {
  gap: 5px;
}

body[data-page="index"] .container--home .home-footer-link-list a,
body[data-page="index"] .container--home .home-footer-link-list span,
body[data-page="index"] .container--home .home-footer-contact-list span {
  font-size: 0.76rem;
  line-height: 1.45;
}

@media (max-width: 960px) {
  body[data-page="index"] .container--home .home-footer-shell {
    grid-template-columns: 1fr 1fr;
    padding: 16px 0;
  }
}

@media (max-width: 680px) {
  body[data-page="index"] .container--home .home-footer-shell {
    grid-template-columns: 1fr;
    padding: 14px 0;
  }

  body[data-page="index"] .container--home .home-footer-brand {
    max-width: none;
  }
}

/* ========== 2026-05-07 Home Footer Alignment ========== */
body[data-page="index"] .container--home .home-footer-shell {
  align-items: center;
}

body[data-page="index"] .container--home .home-footer-group,
body[data-page="index"] .container--home .home-footer-contact {
  align-self: center;
  transform: translateY(10px);
}

body[data-page="index"] .container--home .home-footer-brand {
  align-self: center;
}

@media (max-width: 960px) {
  body[data-page="index"] .container--home .home-footer-group,
  body[data-page="index"] .container--home .home-footer-contact {
    transform: none;
  }
}

/* ========== 2026-05-07 Step5 Waiting Panel Under Preview ========== */
@media (min-width: 1081px) {
  body[data-page="step5"] .section {
    grid-template-rows: auto minmax(0, 1fr);
  }

  body[data-page="step5"] .layout-panel {
    align-items: start;
  }

  body[data-page="step5"] .grid-step5 {
    align-items: start;
    padding-top: 18px;
  }

  body[data-page="step5"] .step5-preview-column {
    align-content: start;
    transform: translateY(-18px);
    gap: 12px;
  }

  body[data-page="step5"] .step5-nav-row {
    margin-top: 4px;
  }

  body[data-page="step5"] .step-task-status {
    width: min(100%, 600px);
    margin: 6px auto 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 12px 14px;
    border-radius: 18px;
  }

  body[data-page="step5"] .step-task-status__main {
    align-items: center;
  }

  body[data-page="step5"] .step-task-status__progress {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
}

/* ========== 2026-05-09 Home Footer Centered + Step5 Clean Status ========== */
body[data-page="index"] .container--home .home-footer-card {
  align-items: center;
}

body[data-page="index"] .container--home .home-footer-shell {
  --home-footer-gap: clamp(28px, 4vw, 56px);
  width: 100%;
  max-width: 1120px;
  grid-template-columns: minmax(260px, 1.28fr) repeat(2, minmax(140px, 0.72fr)) minmax(190px, 0.92fr);
  align-items: center;
  justify-items: center;
  gap: var(--home-footer-gap);
  padding: 16px 0;
  margin: 0 auto;
}

body[data-page="index"] .container--home .home-footer-brand,
body[data-page="index"] .container--home .home-footer-group,
body[data-page="index"] .container--home .home-footer-contact {
  align-self: center;
  justify-self: center;
  transform: none;
}

body[data-page="index"] .container--home .home-footer-brand {
  max-width: 360px;
}

body[data-page="index"] .container--home .home-footer-group,
body[data-page="index"] .container--home .home-footer-contact {
  min-width: 150px;
  gap: 7px;
  text-align: left;
  align-items: flex-start;
}

body[data-page="index"] .container--home .home-footer-link-list,
body[data-page="index"] .container--home .home-footer-contact-list {
  gap: 7px;
  justify-items: start;
}

@media (max-width: 960px) {
  body[data-page="index"] .container--home .home-footer-shell {
    grid-template-columns: 1fr 1fr;
    justify-items: start;
    gap: 18px 28px;
  }

  body[data-page="index"] .container--home .home-footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  body[data-page="index"] .container--home .home-footer-shell {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 16px;
  }
}

body[data-page="step5"] .step-task-status::before {
  display: none;
}

body[data-page="step5"] .step-task-status {
  padding-left: 14px;
}

body[data-page="step5"] .step-task-status__topline {
  justify-content: flex-end;
  margin-bottom: 4px;
}

body[data-page="step5"] .step-task-status__meta {
  color: #475467;
}

/* ========== 2026-05-09 Step5 Align Library + Horizontal Categories ========== */
body[data-page="step5"] .step5-chip-rail {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

body[data-page="step5"] .step5-scroll-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 1px 2px 5px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

body[data-page="step5"] .step5-scroll-chips::-webkit-scrollbar {
  display: none;
}

body[data-page="step5"] .step5-scroll-chips .chip {
  flex: 0 0 auto;
  white-space: nowrap;
}

body[data-page="step5"] .step5-chip-arrow {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #1d3147;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
}

body[data-page="step5"] .step5-chip-arrow:hover {
  transform: translateY(-1px);
  border-color: rgba(10, 132, 255, 0.3);
  background: #ffffff;
}

/* ========== 2026-05-09 Step5 Restore Furniture Grid ========== */
body[data-page="step5"] #furnitureGrid,
body[data-page="step5"] #enterpriseFurnitureGrid {
  display: grid !important;
  grid-auto-flow: row !important;
  grid-auto-columns: initial !important;
  overflow-x: hidden !important;
  overflow-y: auto;
}

body[data-page="step5"] #furnitureGrid > .furniture-card,
body[data-page="step5"] #enterpriseFurnitureGrid > .furniture-card {
  flex: initial !important;
  width: auto !important;
}

/* ========== 2026-05-09 Step5 Library Height + Button Centering ========== */
body[data-page="step5"] .step5-chip-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  text-align: center;
}

body[data-page="step5"] .step5-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  line-height: 1;
  text-align: center;
}

@media (min-width: 1081px) {
  body[data-page="step5"] #furnitureGrid,
  body[data-page="step5"] #enterpriseFurnitureGrid {
    height: clamp(430px, 61vh, 535px);
    max-height: clamp(430px, 61vh, 535px);
  }
}

@media (min-width: 1081px) {
  body[data-page="step5"] .grid-step5 {
    align-items: start;
  }

  body[data-page="step5"] .step5-library-column {
    align-self: start;
    transform: translateY(-18px);
  }

  body[data-page="step5"] .library-switch {
    margin-bottom: 8px;
  }

  body[data-page="step5"] #officialGallery > div[style],
  body[data-page="step5"] #enterpriseGallery > div[style] {
    height: 8px !important;
  }
}

/* ========== 2026-05-09 Local Edit UI Polish ========== */
body[data-page="local-edit"] .container {
  max-width: 1480px;
  gap: 18px;
}

body[data-page="local-edit"] .container > .section {
  width: min(1280px, 100%);
  padding: clamp(20px, 2.2vw, 32px);
  border-color: rgba(255, 255, 255, 0.16);
  background: linear-gradient(135deg, rgba(26, 33, 43, 0.9), rgba(18, 24, 32, 0.78));
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
}

body[data-page="local-edit"] .section-title--compact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px;
  margin-bottom: 20px;
}

body[data-page="local-edit"] .section-title--compact h2 {
  font-size: clamp(1.7rem, 2.2vw, 2.45rem);
  line-height: 1.08;
}

body[data-page="local-edit"] .section-title--compact p {
  max-width: 360px;
  justify-self: end;
  text-align: right;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.55;
}

body[data-page="local-edit"] .local-edit-layout {
  grid-template-columns: minmax(0, 1.55fr) minmax(340px, 0.72fr);
  gap: 20px;
}

body[data-page="local-edit"] .local-edit-workspace,
body[data-page="local-edit"] .local-edit-panel,
body[data-page="local-edit"] .local-edit-result {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

body[data-page="local-edit"] .local-edit-workspace {
  padding: 18px;
  background: rgba(255, 255, 255, 0.94);
}

body[data-page="local-edit"] .local-edit-upload {
  position: relative;
  min-height: clamp(380px, 48vh, 560px);
  gap: 10px;
  border: 2px dashed rgba(10, 132, 255, 0.34);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.96), rgba(239, 246, 255, 0.92)),
    radial-gradient(circle at 50% 38%, rgba(10, 132, 255, 0.08), transparent 34%);
  color: #17233a;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

body[data-page="local-edit"] .local-edit-upload::before {
  content: '+';
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 8px;
  border-radius: 18px;
  background: #ffffff;
  color: #0a84ff;
  font-size: 2rem;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(10, 132, 255, 0.16);
}

body[data-page="local-edit"] .local-edit-upload:hover {
  border-color: rgba(10, 132, 255, 0.58);
  box-shadow: inset 0 0 0 4px rgba(10, 132, 255, 0.06);
  transform: translateY(-1px);
}

body[data-page="local-edit"] .local-edit-upload h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #17233a;
}

body[data-page="local-edit"] .local-edit-upload p {
  color: #5b6b82;
  font-weight: 600;
}

body[data-page="local-edit"] .local-edit-toolbar {
  justify-content: center;
  padding: 8px;
  border-radius: 999px;
  background: rgba(244, 247, 251, 0.92);
}

body[data-page="local-edit"] .local-edit-tool-btn {
  min-width: 44px;
  min-height: 36px;
  border-color: rgba(15, 23, 42, 0.1);
  color: #17233a;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

body[data-page="local-edit"] .local-edit-canvas-viewport {
  max-height: min(62vh, 650px);
  position: relative;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, #f3f7fc, #eaf1f8);
}

body[data-page="local-edit"] .local-edit-canvas-viewport.is-processing {
  overflow: hidden;
}

body[data-page="local-edit"] .local-edit-canvas-viewport.is-processing::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 38%, rgba(10, 132, 255, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(244, 248, 253, 0.98), rgba(232, 240, 248, 0.98));
}

body[data-page="local-edit"] .local-edit-canvas-viewport.is-processing::after {
  content: '修改中...';
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 6;
  transform: translate(-50%, -50%);
  min-width: 128px;
  padding: 14px 22px;
  border-radius: 999px;
  background: #ffffff;
  color: #17233a;
  font-size: 1rem;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
}

body[data-page="local-edit"] .local-edit-panel {
  padding: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 248, 251, 0.94));
}

body[data-page="local-edit"] .local-edit-controls {
  gap: 16px;
}

body[data-page="local-edit"] .local-edit-controls label,
body[data-page="local-edit"] .local-edit-reference {
  gap: 9px;
  color: #25324a;
  font-size: 0.9rem;
  font-weight: 800;
}

body[data-page="local-edit"] .local-edit-controls select,
body[data-page="local-edit"] .local-edit-controls textarea {
  border-color: rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  background: #ffffff;
  color: #17233a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 8px 20px rgba(15, 23, 42, 0.04);
}

body[data-page="local-edit"] .local-edit-controls select {
  min-height: 54px;
  padding-inline: 16px;
  font-weight: 800;
}

body[data-page="local-edit"] .local-edit-controls textarea {
  min-height: 128px;
  resize: vertical;
  line-height: 1.55;
}

body[data-page="local-edit"] .local-edit-controls input[type="range"] {
  accent-color: #0a84ff;
}

body[data-page="local-edit"] .local-edit-reference-upload {
  min-height: 82px;
  border-color: rgba(10, 132, 255, 0.42);
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbff, #eef6ff);
}

body[data-page="local-edit"] .local-edit-reference-preview {
  border-radius: 14px;
}

body[data-page="local-edit"] .local-edit-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 12px;
  margin-top: 22px;
}

body[data-page="local-edit"] .local-edit-actions .btn,
body[data-page="local-edit"] .local-edit-result .btn {
  width: 100%;
  min-height: 52px;
  justify-content: center;
  border-radius: 16px;
  font-size: 0.95rem;
}

body[data-page="local-edit"] #localEditClearMaskBtn,
body[data-page="local-edit"] #localEditContinueBtn,
body[data-page="local-edit"] #localEditReferenceRemoveBtn {
  color: #1f2a3d;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.16);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

body[data-page="local-edit"] #localEditClearMaskBtn {
  color: #b42318;
  border-color: rgba(239, 68, 68, 0.34);
  background: #fff7f7;
}

body[data-page="local-edit"] #localEditClearMaskBtn:hover {
  color: #991b1b;
  border-color: rgba(239, 68, 68, 0.5);
  background: #fff0f0;
}

body[data-page="local-edit"] #localEditContinueBtn:hover,
body[data-page="local-edit"] #localEditReferenceRemoveBtn:hover {
  color: #0a84ff;
  border-color: rgba(10, 132, 255, 0.34);
  background: #f5faff;
}

body[data-page="local-edit"] #localEditGenerateBtn,
body[data-page="local-edit"] #localEditDownloadBtn {
  color: #ffffff;
  background: linear-gradient(135deg, #0a84ff 0%, #1d3a5d 100%);
  box-shadow: 0 14px 30px rgba(10, 132, 255, 0.26);
}

body[data-page="local-edit"] #localEditGenerateBtn:disabled {
  opacity: 1;
  color: #5b6678;
  background: #e6ebf1;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: none;
}

body[data-page="local-edit"] .local-edit-generation-time {
  min-height: 34px;
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(10, 132, 255, 0.08);
  color: #23415f;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 800;
}

body[data-page="local-edit"] .local-edit-generation-time[hidden] {
  display: none !important;
}

body[data-page="local-edit"] .local-edit-result {
  display: grid;
  gap: 16px;
  margin-top: 20px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.96);
}

body[data-page="local-edit"] .local-edit-lead-card {
  margin-top: 20px;
}

body[data-page="local-edit"] .local-edit-result[hidden] {
  display: none !important;
}

body[data-page="local-edit"] .local-edit-result .section-title--compact {
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: 0;
}

body[data-page="local-edit"] .local-edit-result .section-title--compact h2 {
  color: #17233a;
  font-size: 1.35rem;
}

body[data-page="local-edit"] .local-edit-result .section-title--compact p {
  justify-self: start;
  max-width: none;
  text-align: left;
  color: #667085;
}

body[data-page="local-edit"] .local-edit-result-preview {
  min-height: 300px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f7f9fc, #eef3f8);
}

body[data-page="local-edit"] .local-edit-result-preview img {
  max-height: 560px;
  object-fit: contain;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
}

body[data-page="local-edit"] .local-edit-result .btnrow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 0;
}

body[data-page="local-edit"] .local-edit-canvas-viewport.is-processing {
  min-height: min(46vh, 430px);
  overflow: hidden;
}

body[data-page="local-edit"] .local-edit-canvas-viewport.is-processing .local-edit-canvas-wrap {
  visibility: hidden;
  pointer-events: none;
}

body[data-page="local-edit"] .footer {
  color: rgba(255, 255, 255, 0.62);
}

@media (max-width: 980px) {
  body[data-page="local-edit"] .section-title--compact {
    grid-template-columns: 1fr;
    align-items: start;
  }

  body[data-page="local-edit"] .section-title--compact p {
    justify-self: start;
    text-align: left;
  }

  body[data-page="local-edit"] .local-edit-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  body[data-page="local-edit"] .local-edit-actions,
  body[data-page="local-edit"] .local-edit-result .btnrow {
    grid-template-columns: 1fr;
  }

body[data-page="local-edit"] .local-edit-panel,
body[data-page="local-edit"] .local-edit-workspace,
body[data-page="local-edit"] .local-edit-result {
    padding: 16px;
  }
}

/* ========== 2026-05-16 Local Edit Studio Refresh ========== */
body[data-page="local-edit"] .container > .section {
  width: min(1320px, 100%);
  color: #152238;
  border-color: rgba(213, 222, 232, 0.84);
  background: rgba(246, 249, 252, 0.98);
  box-shadow: 0 24px 70px rgba(12, 20, 32, 0.24);
}

body[data-page="local-edit"] .section-title--compact {
  align-items: center;
  margin-bottom: 18px;
}

body[data-page="local-edit"] .section-title--compact h2 {
  color: #000000;
  font-size: clamp(1.55rem, 2vw, 2.15rem);
}

body[data-page="local-edit"] .section-title--compact p {
  max-width: 300px;
  color: #111827;
  font-size: 0.92rem;
  font-weight: 800;
}

body[data-page="local-edit"] .local-edit-layout {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 400px);
  gap: 18px;
  align-items: start;
}

body[data-page="local-edit"] .local-edit-workspace,
body[data-page="local-edit"] .local-edit-panel,
body[data-page="local-edit"] .local-edit-result {
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.1);
}

body[data-page="local-edit"] .local-edit-workspace {
  gap: 10px;
  padding: 14px;
}

body[data-page="local-edit"] .local-edit-upload {
  min-height: clamp(380px, 56vh, 650px);
  border: 1px dashed rgba(10, 132, 255, 0.42);
  border-radius: 16px;
  background: linear-gradient(180deg, #fbfdff, #eef5fb);
}

body[data-page="local-edit"] .local-edit-upload::before {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  color: #0a84ff;
}

body[data-page="local-edit"] .local-edit-upload::before {
  display: none !important;
  content: none !important;
}

body[data-page="local-edit"] .local-edit-upload h3 {
  font-size: 1rem;
}

body[data-page="local-edit"] .local-edit-upload p {
  color: #718096;
}

body[data-page="local-edit"] .local-edit-workspace-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 8px 10px 8px 14px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 14px;
  background: #f8fafc;
}

body[data-page="local-edit"] .local-edit-workspace-head[hidden] {
  display: none !important;
}

body[data-page="local-edit"] #localEditImageMeta {
  min-width: 0;
  overflow: hidden;
  color: #475569;
  font-size: 0.86rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page="local-edit"] .local-edit-mini-btn,
body[data-page="local-edit"] .local-edit-mode-tab {
  border: 1px solid rgba(203, 213, 225, 0.92);
  background: #ffffff;
  color: #334155;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
}

body[data-page="local-edit"] .local-edit-mini-btn {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 0.84rem;
}

body[data-page="local-edit"] .local-edit-mini-btn:hover {
  color: #0a84ff;
  border-color: rgba(10, 132, 255, 0.34);
  background: #f4f9ff;
}

body[data-page="local-edit"] .local-edit-toolbar {
  justify-content: flex-start;
  width: max-content;
  max-width: 100%;
  padding: 6px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 14px;
  background: #f8fafc;
}

body[data-page="local-edit"] .local-edit-toolbar span {
  min-width: 52px;
  color: #475569;
  font-size: 0.86rem;
  font-weight: 900;
  text-align: center;
}

body[data-page="local-edit"] .local-edit-tool-btn {
  min-width: 38px;
  min-height: 34px;
  border-radius: 10px;
  box-shadow: none;
}

body[data-page="local-edit"] .local-edit-canvas-viewport {
  min-height: clamp(360px, 58vh, 640px);
  max-height: clamp(420px, 66vh, 720px);
  padding: 12px;
  border-color: rgba(203, 213, 225, 0.95);
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(226, 232, 240, 0.45) 1px, transparent 1px),
    linear-gradient(180deg, #f8fafc, #eef3f8);
  background-size: 22px 22px, auto;
}

body[data-page="local-edit"] .local-edit-canvas-wrap {
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

body[data-page="local-edit"] .local-edit-canvas-viewport.is-processing {
  min-height: min(46vh, 430px);
  overflow: hidden;
}

body[data-page="local-edit"] .local-edit-canvas-viewport.is-processing::after {
  content: '修改中...';
}

body[data-page="local-edit"] .local-edit-panel {
  position: sticky;
  top: 14px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
}

body[data-page="local-edit"] .local-edit-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 4px;
}

body[data-page="local-edit"] .local-edit-panel-head strong {
  color: #111827;
  font-size: 1.05rem;
}

body[data-page="local-edit"] #localEditReadyHint {
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 900;
}

body[data-page="local-edit"] #localEditReadyHint.is-ready {
  background: #e9f8f1;
  color: #0f7a4d;
}

body[data-page="local-edit"] .local-edit-controls {
  gap: 14px;
}

body[data-page="local-edit"] .local-edit-controls label,
body[data-page="local-edit"] .local-edit-reference {
  gap: 8px;
  color: #334155;
  font-size: 0.88rem;
}

body[data-page="local-edit"] .local-edit-mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 14px;
  background: #f8fafc;
}

body[data-page="local-edit"] .local-edit-mode-tab {
  min-height: 38px;
  padding: 0 8px;
  border-radius: 10px;
  font-size: 0.86rem;
}

body[data-page="local-edit"] .local-edit-mode-tab.is-active {
  color: #ffffff;
  border-color: #0a84ff;
  background: #0a84ff;
  box-shadow: 0 10px 20px rgba(10, 132, 255, 0.22);
}

body[data-page="local-edit"] .local-edit-native-select {
  display: none;
}

body[data-page="local-edit"] .local-edit-controls textarea {
  min-height: 118px;
  border-radius: 14px;
  background: #fbfdff;
}

body[data-page="local-edit"] .local-edit-reference-upload {
  min-height: 74px;
  border-radius: 14px;
  background: #f8fbff;
}

body[data-page="local-edit"] .local-edit-reference-upload small {
  color: #64748b;
}

body[data-page="local-edit"] .local-edit-brush-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body[data-page="local-edit"] #localEditBrushValue {
  min-width: 40px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 900;
  text-align: center;
}

body[data-page="local-edit"] .local-edit-actions {
  margin-top: 2px;
}

body[data-page="local-edit"] .local-edit-actions .btn,
body[data-page="local-edit"] .local-edit-result .btn {
  min-height: 48px;
  border-radius: 14px;
}

body[data-page="local-edit"] #localEditGenerateBtn,
body[data-page="local-edit"] #localEditDownloadBtn {
  background: #0a84ff;
  box-shadow: 0 14px 26px rgba(10, 132, 255, 0.24);
}

body[data-page="local-edit"] #localEditGenerateBtn:not(:disabled):hover,
body[data-page="local-edit"] #localEditDownloadBtn:hover {
  background: #0873df;
}

body[data-page="local-edit"] .local-edit-result {
  background: #ffffff;
}

body[data-page="local-edit"] .footer {
  color: rgba(255, 255, 255, 0.68);
}

@media (max-width: 980px) {
  body[data-page="local-edit"] .local-edit-layout {
    grid-template-columns: 1fr;
  }

  body[data-page="local-edit"] .local-edit-panel {
    position: static;
  }
}

@media (max-width: 680px) {
  body[data-page="local-edit"] .container > .section {
    padding: 16px;
  }

  body[data-page="local-edit"] .local-edit-upload {
    min-height: 300px;
  }

  body[data-page="local-edit"] .local-edit-canvas-viewport {
    min-height: 320px;
    max-height: 58vh;
  }

  body[data-page="local-edit"] .local-edit-toolbar {
    width: 100%;
    justify-content: center;
  }

  body[data-page="local-edit"] .local-edit-mode-tab {
    font-size: 0.82rem;
  }
}

/* ========== 2026-05-09 Home Footer Brand Spacing ========== */
body[data-page="index"] .container--home .home-footer-shell {
  grid-template-columns: minmax(330px, 360px) minmax(130px, 150px) minmax(130px, 150px) minmax(190px, 220px);
  justify-content: center;
  justify-items: start;
  column-gap: clamp(34px, 4.2vw, 58px);
}

body[data-page="index"] .container--home .home-footer-brand,
body[data-page="index"] .container--home .home-footer-group,
body[data-page="index"] .container--home .home-footer-contact {
  justify-self: start;
}

@media (min-width: 961px) {
  body[data-page="index"] .container--home .home-footer-brand {
    transform: translateX(-42px);
  }
}

/* ========== 2026-05-09 Site Logo / Favicon Refresh ========== */
.brand-badge {
  background: rgba(255, 255, 255, 0.94) url("logo/inspiration-logo.png?v=20260509g") center / 82% no-repeat !important;
  color: transparent !important;
  font-size: 0 !important;
  text-indent: -999px;
  overflow: hidden;
}

body[data-page]:not([data-page="index"]) .brand-badge {
  background: rgba(255, 255, 255, 0.94) url("logo/inspiration-logo.png?v=20260509g") center / 82% no-repeat !important;
}

/* ========== 2026-05-12 Floorplan Render ========== */
body[data-page="floorplan"] .container {
  max-width: 1520px;
}

body[data-page="floorplan"] .container > .topbar,
body[data-page="floorplan"] .container > .section,
body[data-page="floorplan"] .container > .footer {
  width: min(1280px, 100%);
  margin-left: auto;
  margin-right: auto;
}

body[data-page="floorplan"] .section {
  max-width: 1280px;
  margin-inline: auto;
}

body[data-page="floorplan"] .floorplan-section {
  padding: clamp(18px, 2vw, 28px);
}

.floorplan-workspace {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: stretch;
}

.floorplan-panel,
.floorplan-results {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(245, 248, 252, 0.94);
  box-shadow: 0 18px 48px rgba(3, 7, 18, 0.18);
  padding: 18px;
  color: #17233a;
}

.floorplan-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.floorplan-panel-head h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #17233a;
}

.floorplan-style-panel {
  display: flex;
  flex-direction: column;
}

.floorplan-panel-head span {
  color: #5e6b80;
  font-size: 0.85rem;
  font-weight: 800;
}

.floorplan-upload-zone {
  position: relative;
  display: grid;
  place-items: center;
  gap: 8px;
  width: 100%;
  min-height: 330px;
  border: 1px dashed rgba(10, 132, 255, 0.48);
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbff, #edf5ff);
  color: #17233a;
  cursor: pointer;
  overflow: hidden;
}

.floorplan-upload-zone img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: contain;
  border-radius: 16px;
  background: #ffffff;
}

.floorplan-upload-zone.has-image {
  padding: 0;
  background: #ffffff;
}

.floorplan-upload-zone.has-image span,
.floorplan-upload-zone.has-image small {
  display: none;
}

.floorplan-upload-zone span {
  font-size: 1.15rem;
  font-weight: 900;
}

.floorplan-upload-zone small {
  max-width: 260px;
  text-align: center;
  color: #667085;
  line-height: 1.5;
}

.floorplan-upload-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.floorplan-upload-action-btn {
  width: 100%;
  min-height: 46px;
  justify-content: center;
  text-align: center;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #2d4258, #d7a34a);
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(45, 66, 88, 0.18);
}

.floorplan-upload-action-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #162d49 0%, #c5944b 100%);
  box-shadow: 0 14px 28px rgba(45, 66, 88, 0.24);
}

.floorplan-upload-action-btn:disabled {
  cursor: not-allowed;
  background: linear-gradient(135deg, #d8dee7, #b8c0cc);
  color: #ffffff;
  box-shadow: none;
  opacity: 1;
}

.floorplan-preview {
  display: grid;
  gap: 12px;
}

.floorplan-preview[hidden],
.floorplan-reference-preview[hidden],
.floorplan-results[hidden] {
  display: none !important;
}

.floorplan-preview img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  background: #ffffff;
}

.floorplan-style-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-height: 360px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px 8px 8px 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(29, 58, 93, 0.42) rgba(255, 255, 255, 0.5);
  -webkit-overflow-scrolling: touch;
}

.floorplan-style-grid::-webkit-scrollbar {
  width: 8px;
}

.floorplan-style-grid::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
}

.floorplan-style-grid::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(29, 58, 93, 0.42);
}

.floorplan-style-search {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  color: #25324a;
  font-weight: 850;
}

.floorplan-style-search input {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  padding: 0 14px;
  background: #ffffff;
  color: #17233a;
  font: inherit;
  font-weight: 750;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.floorplan-style-search input:focus {
  border-color: rgba(10, 132, 255, 0.46);
  box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.12);
}

.floorplan-style-empty {
  display: grid;
  place-items: center;
  min-height: 88px;
  border: 1px dashed rgba(15, 23, 42, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
  color: #5e6b80;
  font-weight: 850;
}

.floorplan-style-empty[hidden] {
  display: none;
}

.floorplan-style-card {
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 2px solid transparent;
  border-radius: 14px;
  background: #ffffff;
  color: #17233a;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.floorplan-style-card.is-selected {
  border-color: #0a84ff;
  box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.14);
}

.floorplan-style-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
}

.floorplan-style-card span {
  font-size: 0.9rem;
  font-weight: 900;
}

.floorplan-reference-upload {
  display: grid;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
}

.floorplan-reference-upload > .btn {
  min-height: 46px;
  justify-content: center;
  border: 0;
  background: linear-gradient(135deg, #2d4258, #d7a34a);
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(45, 66, 88, 0.18);
}

.floorplan-reference-upload > .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(45, 66, 88, 0.24);
}

.floorplan-reference-preview {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  background: #ffffff;
}

.floorplan-reference-preview img {
  width: 72px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
}

.floorplan-space-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.floorplan-space-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 14px;
  background: #ffffff;
  color: #17233a;
  font-weight: 850;
}

.floorplan-space-grid input {
  accent-color: #0a84ff;
}

.floorplan-extra {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  color: #25324a;
  font-weight: 850;
}

.floorplan-extra textarea {
  min-height: 112px;
  resize: vertical;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  padding: 12px 14px;
  color: #17233a;
  background: #ffffff;
}

.floorplan-generate-btn {
  width: 100%;
  min-height: 54px;
  margin-top: 16px;
  justify-content: center;
}

.floorplan-results {
  margin-top: 18px;
}

.floorplan-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.floorplan-lead-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.7fr);
  gap: 18px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(10, 132, 255, 0.14);
  border-radius: 18px;
  background:
    radial-gradient(circle at 0 0, rgba(10, 132, 255, 0.1), transparent 32%),
    linear-gradient(180deg, #ffffff, #f7fafc);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.floorplan-lead-card[hidden] {
  display: none !important;
}

.floorplan-lead-copy h3 {
  margin: 0 0 8px;
  color: #17233a;
  font-size: 1.05rem;
}

.floorplan-lead-copy p {
  margin: 0;
  color: #667085;
  font-size: 0.9rem;
  line-height: 1.7;
}

.floorplan-lead-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.floorplan-lead-form input,
.floorplan-lead-form select,
.floorplan-lead-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  color: #17233a;
  font: inherit;
  font-size: 0.9rem;
  outline: none;
}

.floorplan-lead-form input,
.floorplan-lead-form select {
  padding: 0 12px;
}

.floorplan-lead-form textarea {
  grid-column: span 2;
  min-height: 44px;
  resize: vertical;
  padding: 11px 12px;
}

.floorplan-lead-form input:focus,
.floorplan-lead-form select:focus,
.floorplan-lead-form textarea:focus {
  border-color: rgba(10, 132, 255, 0.46);
  box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.12);
}

.floorplan-lead-submit {
  min-height: 44px;
  justify-content: center;
  border: 0 !important;
  border-radius: 999px;
  color: #ffffff !important;
  background: linear-gradient(135deg, #2d4258 0%, #d7a34a 100%) !important;
}

.floorplan-lead-submit:disabled {
  opacity: 0.64;
  cursor: not-allowed;
}

.floorplan-lead-done {
  align-self: center;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(18, 183, 106, 0.12);
  color: #047857;
  font-weight: 800;
}

.floorplan-lead-status {
  grid-column: 1 / -1;
  min-height: 18px;
  color: #667085;
  font-size: 0.86rem;
}

body[data-page="step7"] .step7-lead-card {
  width: min(980px, 100%);
  justify-self: center;
}

body[data-page="renovation"] .renovation-lead-card {
  width: 100%;
}

.floorplan-result-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.floorplan-result-media {
  display: grid;
  place-items: center;
  aspect-ratio: 5 / 4;
  min-height: 180px;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fbff, #eef3f8);
  overflow: hidden;
}

.floorplan-result-media img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
}

.floorplan-result-placeholder {
  color: #5e6b80;
  font-weight: 900;
}

.floorplan-result-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.floorplan-result-copy h4 {
  margin: 0;
  color: #17233a;
  font-size: 1rem;
}

.floorplan-result-state {
  max-width: 65%;
  color: #5e6b80;
  font-size: 0.82rem;
  font-weight: 850;
  text-align: right;
}

.floorplan-result-state.is-loading {
  color: #0a84ff;
}

.floorplan-result-state.is-done {
  color: #047857;
}

.floorplan-result-state.is-pending-api {
  color: #a16207;
}

.floorplan-result-state.is-failed {
  color: #b42318;
}

.floorplan-result-actions .btn {
  width: 100%;
  justify-content: center;
  min-height: 42px;
  border: 0;
  background: linear-gradient(135deg, #2d4258, #d7a34a);
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(45, 66, 88, 0.18);
}

.floorplan-result-actions .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(45, 66, 88, 0.24);
}

.floorplan-result-placeholder {
  display: grid;
  place-items: center;
  min-height: 180px;
  text-align: center;
  color: #2d4258;
  font-weight: 900;
}

@media (max-width: 1120px) {
  .floorplan-workspace,
  .floorplan-result-grid,
  .floorplan-lead-card {
    grid-template-columns: 1fr;
  }

  .floorplan-lead-form {
    grid-template-columns: 1fr 1fr;
  }

  .floorplan-lead-form textarea {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .floorplan-style-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: 330px;
    gap: 8px;
  }

  .floorplan-space-grid {
    grid-template-columns: 1fr;
  }

  .floorplan-lead-form {
    grid-template-columns: 1fr;
  }

  .floorplan-lead-form textarea {
    grid-column: auto;
  }
}

/* ========== 2026-05-12 Floorplan Wide Frame Fix ========== */
body[data-page="floorplan"] .container {
  max-width: 1600px !important;
}

body[data-page="floorplan"] .container > .topbar,
body[data-page="floorplan"] .container > .section,
body[data-page="floorplan"] .container > .footer {
  width: min(1400px, calc(100vw - 64px)) !important;
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body[data-page="floorplan"] .section.floorplan-section {
  padding: clamp(24px, 2.2vw, 34px) !important;
  overflow: visible;
}

body[data-page="floorplan"] .floorplan-workspace {
  grid-template-columns: minmax(360px, 1fr) minmax(400px, 1.08fr) minmax(360px, 0.98fr);
  gap: 20px;
}

body[data-page="floorplan"] .floorplan-panel {
  min-width: 0;
}

@media (max-width: 1240px) {
  body[data-page="floorplan"] .container > .topbar,
  body[data-page="floorplan"] .container > .section,
  body[data-page="floorplan"] .container > .footer {
    width: min(100%, calc(100vw - 32px)) !important;
  }

  body[data-page="floorplan"] .floorplan-workspace {
    grid-template-columns: 1fr;
  }
}

/* ========== 2026-05-12 Floorplan Primary Button Fix ========== */
body[data-page="floorplan"] .floorplan-reference-upload > .btn,
body[data-page="floorplan"] .floorplan-upload-action-btn,
body[data-page="floorplan"] .floorplan-result-actions .btn {
  width: 100%;
  min-height: 50px;
  justify-content: center;
  border: 0 !important;
  border-radius: 999px;
  background: linear-gradient(135deg, #1d3a5d 0%, #d4a158 100%) !important;
  color: #ffffff !important;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

body[data-page="floorplan"] .floorplan-reference-upload > .btn:hover,
body[data-page="floorplan"] .floorplan-upload-action-btn:hover:not(:disabled),
body[data-page="floorplan"] .floorplan-result-actions .btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #162d49 0%, #c5944b 100%) !important;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

body[data-page="floorplan"] .floorplan-upload-action-btn:disabled {
  cursor: not-allowed;
  transform: none;
  background: linear-gradient(135deg, #d8dee7, #b8c0cc) !important;
  color: #ffffff !important;
  box-shadow: none;
}

body[data-page="floorplan"] .floorplan-result-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body[data-page="floorplan"] .floorplan-result-actions .btn {
  padding-left: 12px;
  padding-right: 12px;
}

.floorplan-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 24px;
  background: rgba(3, 7, 18, 0.72);
  -webkit-overflow-scrolling: touch;
}

.floorplan-lightbox[hidden] {
  display: none !important;
}

.floorplan-lightbox-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  justify-items: center;
  gap: 14px;
  width: min(1120px, 96vw);
  max-height: calc(100vh - 48px);
  padding: 18px;
  border-radius: 18px;
  background: rgba(245, 248, 252, 0.98);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.floorplan-lightbox-panel h3 {
  margin: 0;
  color: #17233a;
  font-size: 1.1rem;
  font-weight: 900;
}

.floorplan-lightbox-panel img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 190px);
  object-fit: contain;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
}

.floorplan-lightbox-close {
  width: min(360px, 100%);
  min-height: 50px;
  justify-content: center;
}

@media (max-height: 720px) {
  .floorplan-lightbox {
    align-items: start;
    padding: 14px;
  }

  .floorplan-lightbox-panel {
    max-height: calc(100vh - 28px);
    gap: 10px;
    padding: 12px;
  }

  .floorplan-lightbox-panel img {
    max-height: calc(100vh - 150px);
  }

  .floorplan-lightbox-close {
    min-height: 44px;
  }
}

@media (max-width: 680px) {
  .floorplan-lightbox {
    padding: 12px;
  }

  .floorplan-lightbox-panel {
    width: 100%;
    max-height: calc(100vh - 24px);
    border-radius: 16px;
    gap: 10px;
    padding: 12px;
  }

  .floorplan-lightbox-panel h3 {
    font-size: 1rem;
  }

  .floorplan-lightbox-panel img {
    max-height: calc(100vh - 154px);
  }
}

body[data-page="floorplan-image-view"] .container {
  max-width: 1400px;
}

.floorplan-viewer-section {
  min-height: calc(100vh - 190px);
}

.floorplan-viewer-media {
  display: grid;
  place-items: center;
  min-height: min(72vh, 760px);
  padding: clamp(12px, 2vw, 24px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(245, 248, 252, 0.94);
  box-shadow: 0 18px 48px rgba(3, 7, 18, 0.18);
}

.floorplan-viewer-media img {
  display: block;
  max-width: 100%;
  max-height: min(68vh, 720px);
  object-fit: contain;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
}

.floorplan-viewer-empty {
  display: grid;
  place-items: center;
  min-height: 260px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  background: rgba(245, 248, 252, 0.94);
  color: #25324a;
  font-weight: 850;
}

.floorplan-viewer-empty[hidden] {
  display: none;
}

@media (max-width: 680px) {
  body[data-page="floorplan"] .floorplan-result-actions {
    grid-template-columns: 1fr;
  }

  .floorplan-viewer-media {
    min-height: 58vh;
    padding: 10px;
  }
}

/* ========== 2026-05-15 Step5 Furniture Selection Polish ========== */
body[data-page="step5"] #furnitureGrid,
body[data-page="step5"] #enterpriseFurnitureGrid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  grid-auto-rows: 164px !important;
  justify-content: stretch;
  align-content: start;
}

body[data-page="step5"] #furnitureGrid > .furniture-card,
body[data-page="step5"] #enterpriseFurnitureGrid > .furniture-card {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 164px !important;
  height: 164px !important;
}

body[data-page="step5"] .furniture-card.selected {
  border-color: #0a84ff !important;
  background: linear-gradient(180deg, rgba(236, 247, 255, 0.98) 0%, rgba(215, 235, 255, 0.96) 100%) !important;
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.32), 0 16px 34px rgba(10, 132, 255, 0.18) !important;
}

body[data-page="step5"] .furniture-card.selected .furn-media {
  border-color: rgba(10, 132, 255, 0.55);
  background: linear-gradient(180deg, rgba(232, 244, 255, 1) 0%, rgba(213, 234, 255, 1) 100%);
}

body[data-page="step5"] .furniture-card.selected h3,
body[data-page="step5"] .furniture-card.selected p,
body[data-page="step5"] .furniture-card.selected .furn-hint {
  color: #075ca8;
}

body[data-page="step5"] .furniture-card.selected .furn-hint {
  font-weight: 800;
}

body[data-page="step5"] .furniture-card.card.clickable.selected:hover {
  border-color: #0a84ff !important;
  transform: translateY(-2px);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.36), 0 18px 38px rgba(10, 132, 255, 0.22) !important;
}

body[data-page="step5"] #furnitureGrid > .card:not(.furniture-card),
body[data-page="step5"] #enterpriseFurnitureGrid > .card:not(.furniture-card) {
  grid-column: 1 / -1;
  width: 100%;
}

@media (max-width: 760px) {
  body[data-page="step5"] #furnitureGrid,
  body[data-page="step5"] #enterpriseFurnitureGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: 150px !important;
  }

  body[data-page="step5"] #furnitureGrid > .furniture-card,
  body[data-page="step5"] #enterpriseFurnitureGrid > .furniture-card {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 150px !important;
    height: 150px !important;
  }
}

/* ========== 2026-05-15 Step4/Step7 Result One Screen Fit ========== */
body[data-page="step4"] .container,
body[data-page="step7"] .container {
  max-width: 1320px;
  gap: 10px;
  padding-top: 12px !important;
  padding-bottom: 14px !important;
}

body[data-page="step4"] .container > .section,
body[data-page="step7"] .container > .section {
  width: min(1180px, 100%);
  padding: 22px 28px 18px;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  display: grid;
  justify-items: center;
}

body[data-page="step4"] .section-title,
body[data-page="step7"] .section-title {
  width: 100%;
  margin-bottom: 12px;
}

body[data-page="step4"] .section-title h2,
body[data-page="step7"] .section-title h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  line-height: 1.15;
}

body[data-page="step4"] .section-title p,
body[data-page="step7"] .section-title p {
  font-size: 0.9rem;
}

body[data-page="step4"] #step4Preview,
body[data-page="step7"] #step7Preview {
  width: fit-content;
  max-width: min(100%, 1120px);
  height: min(60vh, 560px);
  min-height: 320px;
  margin: 0 auto;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border-radius: 22px;
  background: transparent;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
  justify-self: center;
}

body[data-page="step4"] #step4Preview.is-loading {
  width: auto;
  height: auto;
  min-height: 0;
  overflow: visible;
  border-radius: 0;
  box-shadow: none;
}

body[data-page="step4"] #step4Preview.is-loading .preview-zoom-stage {
  display: none;
}

body[data-page="step4"] #step4Preview.is-loading .step6-loading {
  min-height: 0;
}

body[data-page="step4"] #resultImg,
body[data-page="step7"] #finalImage,
body[data-page="step7"] #finalCanvas {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 18px;
  background: transparent;
}

body[data-page="step4"] #step4Preview .preview-zoom-stage,
body[data-page="step4"] #step4Preview .preview-zoom-pan,
body[data-page="step7"] #step7Preview .preview-zoom-stage,
body[data-page="step7"] #step7Preview .preview-zoom-pan {
  width: 100%;
  height: 100%;
}

body[data-page="step4"] #step4Preview .preview-zoom-pan,
body[data-page="step7"] #step7Preview .preview-zoom-pan {
  display: flex;
  align-items: center;
  justify-content: center;
}

body[data-page="step4"] #resultImg.preview-zoom-target,
body[data-page="step7"] #finalImage.preview-zoom-target {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  background: transparent !important;
}

body[data-page="step4"] #step4Preview .preview-zoom-stage,
body[data-page="step7"] #step7Preview .preview-zoom-stage {
  width: auto;
  max-width: 100%;
}

body[data-page="step4"] #step4Preview .preview-zoom-pan,
body[data-page="step7"] #step7Preview .preview-zoom-pan {
  width: auto;
  max-width: 100%;
}

body[data-page="step4"] .step6-loading,
body[data-page="step7"] .step6-loading {
  min-height: 100%;
}

body[data-page="step4"] .step4-action-row,
body[data-page="step7"] .step7-action-row {
  justify-self: center;
  margin-top: 12px;
  gap: 10px;
}

body[data-page="step4"] .step4-action-row .btn,
body[data-page="step7"] .step7-action-row .btn {
  min-height: 42px;
  padding: 10px 18px;
}

body[data-page="step4"] .preview-zoom-controls--inline,
body[data-page="step7"] .preview-zoom-controls--inline {
  padding: 8px 10px;
}

@media (max-height: 760px) {
  body[data-page="step4"] .topbar,
  body[data-page="step7"] .topbar {
    min-height: 58px;
    padding: 8px 14px;
  }

  body[data-page="step4"] .container > .section,
  body[data-page="step7"] .container > .section {
    padding: 18px 24px 14px;
  }

  body[data-page="step4"] #step4Preview,
  body[data-page="step7"] #step7Preview {
    height: min(56vh, 500px);
    min-height: 280px;
  }
}

@media (max-width: 760px) {
  body[data-page="step4"] .container > .section,
  body[data-page="step7"] .container > .section {
    padding: 16px 14px 14px;
  }

  body[data-page="step4"] .section-title,
  body[data-page="step7"] .section-title {
    gap: 8px;
  }

  body[data-page="step4"] #step4Preview,
  body[data-page="step7"] #step7Preview {
    width: fit-content;
    max-width: 100%;
    height: 48vh;
    min-height: 260px;
  }
}

/* Local edit title needs to beat the shared dark-page heading rule. */
body[data-page="local-edit"]:not([data-page="index"]) .container > .section > .section-title.section-title--compact h2 {
  color: #000000 !important;
}

body[data-page="local-edit"]:not([data-page="index"]) .container > .section > .section-title.section-title--compact p {
  color: #111827 !important;
  font-weight: 800 !important;
}

/* ========== 2026-05-16 Renovation Render ========== */
body[data-page="renovation"] .container {
  max-width: 1640px;
}

body[data-page="renovation"] .container > .topbar,
body[data-page="renovation"] .container > .section,
body[data-page="renovation"] .container > .footer {
  width: min(1480px, calc(100vw - 64px));
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

body[data-page="renovation"] .section {
  max-width: none;
  margin-inline: auto;
}

body[data-page="renovation"] .floorplan-section {
  padding: clamp(18px, 2vw, 28px);
}

body[data-page="renovation"] .renovation-workspace {
  grid-template-columns: minmax(360px, 1fr) minmax(400px, 1.08fr) minmax(360px, 0.98fr);
  gap: 22px;
}

body[data-page="renovation"] .section-title h2 {
  color: #ffffff;
}

body[data-page="renovation"] .section-title p {
  color: rgba(255, 255, 255, 0.78);
}

body[data-page="renovation"] #renovationPreview {
  display: none !important;
}

.renovation-space-select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  padding: 0 14px;
  background: #ffffff;
  color: #17233a;
  font: inherit;
  font-weight: 850;
  outline: none;
}

.renovation-space-select:focus {
  border-color: rgba(10, 132, 255, 0.46);
  box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.12);
}

body[data-page="renovation"] .renovation-result-grid {
  grid-template-columns: minmax(0, 520px);
  justify-content: center;
}

body[data-page="renovation"] .renovation-result-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

body[data-page="renovation"] .floorplan-result-actions .btn {
  width: 100%;
  min-height: 50px;
  justify-content: center;
  border: 0 !important;
  border-radius: 999px;
  color: #ffffff !important;
  background: linear-gradient(135deg, #2d4258 0%, #d7a34a 100%) !important;
  box-shadow: 0 14px 30px rgba(45, 66, 88, 0.22);
}

body[data-page="renovation"] .floorplan-result-actions .btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #162d49 0%, #c5944b 100%) !important;
}

@media (max-width: 980px) {
  body[data-page="renovation"] .floorplan-workspace,
  body[data-page="renovation"] .floorplan-result-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  body[data-page="renovation"] .renovation-result-actions {
    grid-template-columns: 1fr;
  }
}

/* ========== 2026-05-20 Renovation Frame Fit ========== */
body[data-page="renovation"] .container {
  width: 100% !important;
  max-width: none !important;
  padding-inline: clamp(14px, 4vw, 56px);
}

body[data-page="renovation"] .container::before {
  inset: 8px clamp(8px, 2vw, 24px) 12px !important;
}

body[data-page="renovation"] .container > .topbar,
body[data-page="renovation"] .container > .section,
body[data-page="renovation"] .container > .footer {
  width: min(1320px, calc(100vw - 72px)) !important;
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body[data-page="renovation"] .section.floorplan-section {
  overflow: visible;
}

body[data-page="renovation"] .renovation-workspace {
  grid-template-columns: minmax(300px, 1fr) minmax(340px, 1.08fr) minmax(300px, 0.95fr) !important;
  gap: 20px !important;
}

body[data-page="renovation"] .floorplan-panel {
  min-width: 0;
}

@media (max-width: 1100px) {
  body[data-page="renovation"] .container > .topbar,
  body[data-page="renovation"] .container > .section,
  body[data-page="renovation"] .container > .footer {
    width: min(100%, calc(100vw - 32px)) !important;
  }

  body[data-page="renovation"] .renovation-workspace {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 680px) {
  body[data-page="renovation"] .container {
    padding-inline: 12px;
  }
}

/* ========== 2026-05-20 Home Login Slot ========== */
.home-login-slot {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 128px;
}

.home-login-slot .home-top-cta {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.home-login-slot .home-top-cta[hidden],
.home-login-slot .login-profile[hidden] {
  display: none !important;
}

.home-login-slot .login-profile {
  padding: 6px 8px 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(12px);
}

.home-login-slot .login-logout {
  min-height: 30px;
  padding-inline: 10px;
}

/* ========== 2026-05-22 ICP Footer ========== */
.icp-footer {
  width: 100%;
  padding: 18px 16px 24px;
  text-align: center;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(226, 232, 240, 0.74);
}

.icp-footer a {
  color: inherit;
  text-decoration: none;
}

.icp-footer a:hover,
.icp-footer a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer--home .icp-footer {
  margin-top: 18px;
  padding: 16px 0 0;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

body[data-page="legal"] .icp-footer {
  padding: 22px 0 4px;
  color: #64748b;
}

body[data-page="legal"] .icp-footer a:hover,
body[data-page="legal"] .icp-footer a:focus-visible {
  color: #0f172a;
}

@media (max-width: 680px) {
  .home-login-slot {
    justify-content: center;
  }

  .home-login-slot .home-top-cta {
    display: inline-flex;
  }
}
