@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);
}
.brand-copy {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}
.brand-tagline {
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0;
  white-space: nowrap;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.26);
}
.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;
  }
}

/* Step 1: full rebuild from the approved dark premium mock */
body[data-page="step1"] {
  --step1-cream: #fff8ea;
  --step1-muted: rgba(255, 248, 234, 0.76);
  --step1-soft: rgba(255, 248, 234, 0.52);
  --step1-gold: #f0c675;
  --step1-gold-strong: #ffd98b;
  --step1-panel: rgba(12, 13, 12, 0.86);
  --step1-line: rgba(255, 255, 255, 0.16);
  height: 100svh;
  min-height: 100svh;
  margin: 0;
  overflow: hidden;
  color: var(--step1-cream);
  background: #050504 url("home-v2/step1-hero-bg-generated-optimized.webp?v=20260622a") center center / cover no-repeat;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

body[data-page="step1"]::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 24% 22%, rgba(255, 219, 153, 0.14), transparent 28%),
    linear-gradient(90deg, rgba(2, 3, 3, 0.72) 0%, rgba(6, 7, 7, 0.55) 46%, rgba(6, 7, 7, 0.2) 76%, rgba(2, 3, 3, 0.42) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.12) 42%, rgba(0, 0, 0, 0.64) 100%);
  opacity: 1;
  animation: none;
}

body[data-page="step1"]::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 42%, rgba(0, 0, 0, 0.44) 100%);
  opacity: 0.9;
  animation: none;
}

body[data-page="step1"] .step1-stage,
body[data-page="step1"] .step1-stage * {
  box-sizing: border-box;
}

body[data-page="step1"] .step1-stage {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100svh;
  min-height: 100svh;
  padding: clamp(24px, 3vh, 34px) clamp(42px, 4.4vw, 84px) 0;
}

body[data-page="step1"] .step1-stage a {
  color: inherit;
  text-decoration: none;
}

body[data-page="step1"] .step1-progress {
  display: none !important;
}

body[data-page="step1"] .step1-glassbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: clamp(82px, 8.9vh, 96px);
  padding: 0 clamp(22px, 3.2vw, 48px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 26px;
  background: linear-gradient(90deg, rgba(18, 24, 29, 0.82), rgba(24, 29, 33, 0.68));
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(22px) saturate(128%);
}

body[data-page="step1"] .step1-logo {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 16px;
}

body[data-page="step1"] .step1-logo img {
  display: block;
  width: clamp(48px, 4vw, 58px);
  height: clamp(48px, 4vw, 58px);
  border-radius: 18px;
  background: #fff9ef;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

body[data-page="step1"] .step1-logo-title {
  color: #fffaf1;
  font-size: clamp(1.55rem, 2vw, 2.15rem);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

body[data-page="step1"] .step1-logo-tagline {
  margin-left: 2px;
  color: rgba(255, 248, 234, 0.74);
  font-size: clamp(0.9rem, 1.1vw, 1.05rem);
  font-weight: 500;
  white-space: nowrap;
}

body[data-page="step1"] .step1-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

body[data-page="step1"] .step1-action {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  height: 54px;
  padding: 0 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 248, 234, 0.92);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  font: inherit;
  font-size: 0.98rem;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.24s var(--ease-out-expo), background 0.24s var(--ease-out-expo), transform 0.24s var(--ease-out-expo);
}

body[data-page="step1"] .step1-action:hover {
  border-color: rgba(240, 198, 117, 0.4);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

body[data-page="step1"] .step1-copy {
  width: min(890px, 68vw);
  margin-top: clamp(74px, 10.8vh, 116px);
  margin-left: clamp(2px, 1vw, 16px);
}

body[data-page="step1"] .step1-copy h1 {
  margin: 0;
  color: #fffaf0;
  font-size: clamp(4rem, 5vw, 6rem);
  font-weight: 950;
  line-height: 0.98;
  letter-spacing: 0;
  text-shadow: 0 24px 55px rgba(0, 0, 0, 0.54);
}

body[data-page="step1"] .step1-copy h1 span {
  color: var(--step1-gold);
  background: linear-gradient(135deg, #fff0b9 0%, #f2c66f 42%, #d99c3f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

body[data-page="step1"] .step1-copy p {
  margin: 24px 0 0;
  color: rgba(255, 248, 234, 0.78);
  font-size: clamp(1.25rem, 1.75vw, 1.8rem);
  font-weight: 650;
  line-height: 1.35;
  text-shadow: 0 14px 32px rgba(0, 0, 0, 0.62);
}

body[data-page="step1"] .step1-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(28px, 3.6vh, 42px);
}

body[data-page="step1"] .step1-facts span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 999px;
  color: rgba(255, 248, 234, 0.9);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 14px 32px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px);
  font-size: clamp(0.92rem, 1vw, 1.05rem);
  font-weight: 800;
  white-space: nowrap;
}

body[data-page="step1"] .step1-facts img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(1.22);
}

body[data-page="step1"] .step1-options {
  position: absolute;
  left: clamp(72px, 5.4vw, 106px);
  right: clamp(72px, 5.4vw, 106px);
  bottom: clamp(84px, 10.4vh, 122px);
  display: grid;
  grid-template-columns: 1.05fr 1fr 1fr 1fr;
  gap: clamp(16px, 1.55vw, 26px);
}

body[data-page="step1"] .step1-option {
  position: relative;
  display: flex;
  flex-direction: column;
  height: clamp(334px, 42.5vh, 430px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 26px;
  color: var(--step1-cream);
  background: linear-gradient(180deg, rgba(18, 17, 15, 0.82) 0%, rgba(6, 6, 5, 0.96) 100%);
  box-shadow: 0 28px 74px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.09);
  cursor: pointer;
  outline: none;
  isolation: isolate;
  transition: transform 0.3s var(--ease-out-expo), border-color 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-out-expo);
}

body[data-page="step1"] .step1-option::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

body[data-page="step1"] .step1-option:hover,
body[data-page="step1"] .step1-option:focus-visible,
body[data-page="step1"] .step1-option.selected {
  transform: translateY(-5px);
  border-color: rgba(240, 198, 117, 0.6);
  box-shadow: 0 34px 84px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(240, 198, 117, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body[data-page="step1"] .step1-option--featured {
  border-color: rgba(240, 198, 117, 0.66);
  box-shadow: 0 34px 86px rgba(0, 0, 0, 0.5), 0 0 38px rgba(240, 198, 117, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body[data-page="step1"] .step1-option-media {
  position: relative;
  height: 58%;
  min-height: 0;
  overflow: hidden;
  background: #14110e;
}

body[data-page="step1"] .step1-option-media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 58%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 5, 4, 0) 0%, rgba(5, 5, 4, 0.44) 52%, rgba(5, 5, 4, 0.92) 100%);
}

body[data-page="step1"] .step1-option-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.98;
  filter: saturate(1.04) contrast(1.04);
  transition: transform 0.55s var(--ease-out-expo), filter 0.55s var(--ease-out-expo);
}

body[data-page="step1"] .step1-option:hover .step1-option-media img,
body[data-page="step1"] .step1-option.selected .step1-option-media img {
  transform: scale(1.045);
  filter: saturate(1.08) contrast(1.05);
}

body[data-page="step1"] .step1-option:nth-child(3) .step1-option-media img {
  object-position: center 52%;
}

body[data-page="step1"] .step1-option:nth-child(4) .step1-option-media img {
  object-position: center 50%;
}

body[data-page="step1"] .step1-option-badge {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid rgba(240, 198, 117, 0.72);
  border-radius: 999px;
  color: #ffe6ae;
  background: rgba(31, 22, 9, 0.66);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(14px);
  font-size: 0.86rem;
  font-weight: 850;
}

body[data-page="step1"] .step1-option-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: clamp(18px, 2vw, 26px) clamp(20px, 2.1vw, 28px) clamp(20px, 2vw, 26px);
  background: linear-gradient(180deg, rgba(7, 7, 6, 0.78), rgba(5, 5, 4, 0.98));
}

body[data-page="step1"] .step1-option h3 {
  margin: 0;
  color: #fffaf0;
  font-size: clamp(1.55rem, 1.95vw, 2.15rem);
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: 0;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.64);
}

body[data-page="step1"] .step1-option p {
  margin: 10px 0 0;
  color: rgba(255, 248, 234, 0.82);
  font-size: clamp(0.96rem, 1.08vw, 1.08rem);
  font-weight: 750;
  line-height: 1.28;
}

body[data-page="step1"] .step1-option-button {
  all: unset;
  box-sizing: border-box;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  width: 100% !important;
  height: clamp(50px, 5.5vh, 58px) !important;
  margin-top: auto !important;
  padding: 0 clamp(20px, 2.2vw, 26px) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 17px !important;
  color: rgba(255, 248, 234, 0.94) !important;
  background: rgba(255, 255, 255, 0.105) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  font-size: 1rem !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  cursor: pointer;
  transition: color 0.26s var(--ease-out-expo), background 0.26s var(--ease-out-expo), border-color 0.26s var(--ease-out-expo), transform 0.26s var(--ease-out-expo);
}

body[data-page="step1"] .step1-option-button span:last-child {
  font-size: 1.25rem;
  line-height: 1;
}

body[data-page="step1"] .step1-option--featured .step1-option-button,
body[data-page="step1"] .step1-option.selected .step1-option-button {
  border-color: rgba(255, 224, 154, 0.82) !important;
  color: #211407 !important;
  background: linear-gradient(135deg, #d9a94f 0%, #ffd98b 100%) !important;
  box-shadow: 0 16px 34px rgba(240, 198, 117, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.34) !important;
}

body[data-page="step1"] .step1-option:hover .step1-option-button,
body[data-page="step1"] .step1-option:focus-visible .step1-option-button {
  transform: translateY(-2px);
  border-color: rgba(240, 198, 117, 0.54) !important;
}

body[data-page="step1"] .step1-note {
  position: fixed;
  left: 50%;
  bottom: 36px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  transform: translateX(-50%);
  color: rgba(255, 248, 234, 0.84);
  font-size: clamp(0.9rem, 1vw, 1.02rem);
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
  text-shadow: 0 9px 22px rgba(0, 0, 0, 0.72);
  pointer-events: none;
}

body[data-page="step1"] .step1-note::before {
  content: "";
  width: 15px;
  height: 15px;
  border: 1px solid rgba(240, 198, 117, 0.62);
  border-radius: 50% 50% 45% 45%;
  background: radial-gradient(circle at center, rgba(240, 198, 117, 0.72) 0 2px, transparent 3px);
  box-shadow: 0 0 18px rgba(240, 198, 117, 0.2);
}

body[data-page="step1"] .icp-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 5;
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  color: rgba(255, 248, 234, 0.44);
  background: transparent;
  box-shadow: none;
  font-size: 0.68rem;
  line-height: 1;
  text-align: center;
  pointer-events: auto;
}

body[data-page="step1"] .icp-footer a {
  color: inherit;
}

@media (max-height: 820px) and (min-width: 1181px) {
  body[data-page="step1"] .step1-stage {
    padding-top: 22px;
  }

  body[data-page="step1"] .step1-glassbar {
    height: 78px;
    border-radius: 23px;
  }

  body[data-page="step1"] .step1-logo img {
    width: 48px;
    height: 48px;
  }

  body[data-page="step1"] .step1-copy {
    margin-top: 62px;
  }

  body[data-page="step1"] .step1-copy h1 {
    font-size: clamp(3.5rem, 4.5vw, 5rem);
  }

  body[data-page="step1"] .step1-copy p {
    margin-top: 16px;
  }

  body[data-page="step1"] .step1-facts {
    margin-top: 22px;
  }

  body[data-page="step1"] .step1-options {
    bottom: 74px;
  }

  body[data-page="step1"] .step1-option {
    height: clamp(306px, 40vh, 344px);
  }

  body[data-page="step1"] .step1-note {
    bottom: 30px;
  }
}

@media (max-width: 1180px) {
  body[data-page="step1"] {
    height: auto;
    min-height: 100svh;
    overflow-x: hidden;
    overflow-y: auto;
    background-attachment: scroll;
    background-position: 58% center;
  }

  body[data-page="step1"] .step1-stage {
    height: auto;
    min-height: 100svh;
    padding: 18px 20px 40px;
  }

  body[data-page="step1"] .step1-glassbar {
    height: auto;
    min-height: 76px;
    padding: 14px 16px;
    border-radius: 22px;
  }

  body[data-page="step1"] .step1-logo-title {
    font-size: 1.42rem;
  }

  body[data-page="step1"] .step1-logo-tagline {
    display: none;
  }

  body[data-page="step1"] .step1-action {
    min-width: auto;
    height: 44px;
    padding: 0 16px;
  }

  body[data-page="step1"] .step1-copy {
    width: 100%;
    margin: 64px 0 0;
  }

  body[data-page="step1"] .step1-copy h1 {
    font-size: clamp(3.35rem, 9vw, 5.3rem);
  }

  body[data-page="step1"] .step1-copy p {
    font-size: clamp(1.05rem, 2.6vw, 1.45rem);
  }

  body[data-page="step1"] .step1-options {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 42px;
  }

  body[data-page="step1"] .step1-option {
    height: 380px;
  }

  body[data-page="step1"] .step1-note,
  body[data-page="step1"] .icp-footer {
    position: static;
    display: flex;
    justify-content: center;
    transform: none;
    margin-top: 30px;
    white-space: normal;
  }

  body[data-page="step1"] .icp-footer {
    margin-top: 14px;
  }
}

@media (max-width: 680px) {
  body[data-page="step1"] .step1-stage {
    padding: 14px 14px 28px;
  }

  body[data-page="step1"] .step1-glassbar {
    gap: 12px;
  }

  body[data-page="step1"] .step1-logo {
    gap: 10px;
  }

  body[data-page="step1"] .step1-logo img {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  body[data-page="step1"] .step1-logo-title {
    font-size: 1.18rem;
  }

  body[data-page="step1"] .step1-actions {
    gap: 8px;
  }

  body[data-page="step1"] .step1-action {
    height: 38px;
    padding: 0 11px;
    font-size: 0.82rem;
  }

  body[data-page="step1"] .step1-copy {
    margin-top: 48px;
  }

  body[data-page="step1"] .step1-copy h1 {
    font-size: clamp(2.7rem, 14vw, 4.4rem);
  }

  body[data-page="step1"] .step1-facts {
    gap: 9px;
  }

  body[data-page="step1"] .step1-facts span {
    height: 40px;
    padding: 0 13px;
    font-size: 0.82rem;
  }

  body[data-page="step1"] .step1-options {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  body[data-page="step1"] .step1-option {
    height: 350px;
    border-radius: 22px;
  }

body[data-page="step1"] .step1-option h3 {
    font-size: 1.55rem;
  }
}

/* 2026-06-27 unified black house logo */
.brand-logo,
body[data-page="index"] .home-topbar-v2 .brand-logo,
body[data-page="index"] .home-mock-brand img,
body[data-page="step1"] .step1-logo img {
  background: #fff;
  object-fit: contain;
}

/* ========== 2026-06-22 Step2 Premium Single Upload Rebuild ========== */
body[data-page="step2"] {
  --step2-gold: #e9bd66;
  --step2-gold-soft: #ffd889;
  --step2-ink: #fff8eb;
  --step2-muted: rgba(255, 248, 235, 0.68);
  position: relative;
  min-height: 100vh;
  overflow: hidden !important;
  color: var(--step2-ink);
  background:
    linear-gradient(90deg, rgba(2, 2, 2, 0.92) 0%, rgba(8, 6, 4, 0.76) 37%, rgba(10, 9, 8, 0.44) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.18)),
    url("home-v2/step1-hero-bg-generated-optimized.webp?v=20260622a") center / cover fixed no-repeat !important;
}

body[data-page="step2"]::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 28% 36%, rgba(233, 189, 102, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.14) 0%, rgba(0, 0, 0, 0.7) 100%);
}

body[data-page="step2"] .container {
  position: relative !important;
  z-index: 1;
  display: block !important;
  width: 100%;
  max-width: none !important;
  min-height: 100vh !important;
  padding: 0 !important;
}

body[data-page="step2"] .container::before,
body[data-page="step2"] .progress,
body[data-page="step2"] .footer,
body[data-page="step2"] .thumbs {
  display: none !important;
}

body[data-page="step2"] .step2-topbar {
  position: absolute !important;
  top: 28px;
  left: clamp(26px, 3vw, 58px);
  right: clamp(26px, 3vw, 58px);
  z-index: 5;
  width: auto !important;
  max-width: none !important;
  height: 76px;
  margin: 0 !important;
  padding: 0 clamp(18px, 2vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 28px;
  background: linear-gradient(90deg, rgba(20, 18, 15, 0.86), rgba(48, 44, 39, 0.78));
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(18px);
}

body[data-page="step2"] .step2-brand {
  gap: 14px;
  min-width: 0;
}

body[data-page="step2"] .step2-brand-logo {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  object-fit: contain;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

body[data-page="step2"] .brand-title {
  color: #fff;
  font-size: clamp(1.55rem, 2vw, 2rem);
  letter-spacing: 0;
}

body[data-page="step2"] .brand-tagline {
  color: rgba(255, 248, 235, 0.76);
  font-size: 0.9rem;
}

body[data-page="step2"] .step2-nav {
  gap: 12px;
}

body[data-page="step2"] .step2-nav a,
body[data-page="step2"] .step2-account {
  min-width: 92px;
  height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 248, 235, 0.94);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

body[data-page="step2"] .step2-nav a:hover,
body[data-page="step2"] .step2-account:hover {
  color: #14110d;
  border-color: rgba(255, 216, 137, 0.72);
  background: linear-gradient(135deg, var(--step2-gold), var(--step2-gold-soft));
  transform: translateY(-1px);
}

body[data-page="step2"] .section--combined {
  position: absolute !important;
  top: 146px;
  left: clamp(36px, 5.4vw, 104px);
  right: clamp(36px, 5.4vw, 104px);
  bottom: 34px;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--step2-ink);
}

body[data-page="step2"] .section--combined .section-title {
  margin: 0 !important;
}

body[data-page="step2"] .section--combined .section-title h2 {
  max-width: 760px;
  margin: 0;
  color: #fffdf6;
  font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
  font-size: clamp(3.3rem, 5.2vw, 5.9rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: 0;
  text-shadow: 0 12px 42px rgba(0, 0, 0, 0.48);
}

body[data-page="step2"] .section--combined .section-title h2 span {
  color: var(--step2-gold);
}

body[data-page="step2"] .step2-combined-layout {
  position: absolute;
  top: clamp(146px, 19vh, 186px);
  left: 0;
  right: 0;
  bottom: 98px;
  display: grid !important;
  grid-template-columns: minmax(500px, 720px) minmax(420px, 510px) !important;
  justify-content: space-between;
  align-items: stretch;
  gap: clamp(34px, 5vw, 90px);
}

body[data-page="step2"] .step2-upload-panel,
body[data-page="step2"] .step2-materials-panel {
  min-width: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body[data-page="step2"] .dropzone {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0 !important;
  overflow: hidden;
  padding: 0 !important;
  border: 1px solid rgba(233, 189, 102, 0.56) !important;
  border-radius: 30px !important;
  background:
    linear-gradient(180deg, rgba(7, 6, 5, 0.08) 0%, rgba(5, 4, 3, 0.68) 100%),
    url("home-v2/scenario-rough-clean.jpg?v=20260622a") center / cover no-repeat !important;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.43), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  cursor: pointer;
}

body[data-page="step2"] .dropzone::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.1) 48%, rgba(0, 0, 0, 0.72) 100%),
    radial-gradient(circle at 50% 42%, rgba(233, 189, 102, 0.14), transparent 34%);
}

body[data-page="step2"] .dropzone:hover,
body[data-page="step2"] .dropzone.dragover {
  border-color: rgba(255, 216, 137, 0.9) !important;
  transform: translateY(-2px);
  box-shadow: 0 30px 86px rgba(0, 0, 0, 0.5), 0 0 0 4px rgba(233, 189, 102, 0.1);
}

body[data-page="step2"] .dropzone-hint {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 13px;
  height: 100%;
  min-height: 0;
  padding: 28px;
  color: #fff;
  text-align: center;
}

body[data-page="step2"] .step2-upload-mark {
  position: relative;
  width: 70px;
  height: 70px;
  border: 1px solid rgba(255, 216, 137, 0.58);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.34);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32), inset 0 0 0 10px rgba(255, 255, 255, 0.04);
}

body[data-page="step2"] .step2-upload-mark::before,
body[data-page="step2"] .step2-upload-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: var(--step2-gold-soft);
  transform: translate(-50%, -50%);
}

body[data-page="step2"] .step2-upload-mark::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

body[data-page="step2"] .dropzone-hint h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.2;
}

body[data-page="step2"] .dropzone-hint p {
  margin: 0;
  color: rgba(255, 248, 235, 0.7);
  font-size: 0.95rem;
  font-weight: 700;
}

body[data-page="step2"] .dropzone-preview {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: none;
}

body[data-page="step2"] .dropzone-preview img {
  width: 100%;
  height: 100%;
  max-height: none !important;
  object-fit: cover;
  border-radius: 0;
}

body[data-page="step2"] .dropzone-preview::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 36%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.62));
}

body[data-page="step2"] .dropzone-preview-actions {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;
}

body[data-page="step2"] .dropzone-preview-btn {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  color: #15110c;
  background: linear-gradient(135deg, var(--step2-gold), var(--step2-gold-soft));
  border-color: rgba(255, 216, 137, 0.65);
}

body[data-page="step2"] .step2-materials-panel {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(22, 19, 15, 0.82), rgba(7, 6, 5, 0.8));
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

body[data-page="step2"] .step2-materials-head h3 {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(1.6rem, 2vw, 2rem);
  line-height: 1.18;
}

body[data-page="step2"] .material-tabs {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin: 0 0 18px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

body[data-page="step2"] .material-tab {
  height: 48px;
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  color: rgba(255, 248, 235, 0.64);
  background: transparent;
  box-shadow: none;
  font-size: 0.96rem;
  font-weight: 900;
}

body[data-page="step2"] .material-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transform: none;
}

body[data-page="step2"] .material-tab.is-active {
  color: #17120b;
  background: linear-gradient(135deg, var(--step2-gold), var(--step2-gold-soft));
  box-shadow: 0 12px 28px rgba(233, 189, 102, 0.2);
}

body[data-page="step2"] .material-tab.is-done:not(.is-active) {
  color: var(--step2-gold-soft);
  background: rgba(233, 189, 102, 0.13);
}

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

body[data-page="step2"] .material-panel {
  display: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

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

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

body[data-page="step2"] .material-option {
  position: relative;
  isolation: isolate;
  height: clamp(120px, 16.5vh, 148px);
  min-height: 118px;
  overflow: hidden;
  padding: 0 16px 15px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  color: #fffaf0;
  background: #17130f;
  box-shadow: inset 0 -70px 54px rgba(0, 0, 0, 0.64), 0 16px 34px rgba(0, 0, 0, 0.2);
  text-align: left;
  font-size: 1rem;
  font-weight: 900;
  align-items: flex-end;
  justify-content: flex-start;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.7);
}

body[data-page="step2"] .material-option::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("materials/premium-material-atlas-optimized.webp?v=20260622a");
  background-size: 400% 300%;
  background-repeat: no-repeat;
  transform: scale(1.01);
  transition: transform 220ms ease, filter 220ms ease;
}

body[data-page="step2"] .material-option[data-category="ceiling"][data-material="gypsum"]::before { background-position: 0% 0%; }
body[data-page="step2"] .material-option[data-category="ceiling"][data-material="integrated"]::before { background-position: 33.333% 0%; }
body[data-page="step2"] .material-option[data-category="ceiling"][data-material="wood"]::before { background-position: 66.666% 0%; }
body[data-page="step2"] .material-option[data-category="ceiling"][data-material="none"]::before { background-position: 100% 0%; }
body[data-page="step2"] .material-option[data-category="floor"][data-material="wood"]::before { background-position: 0% 50%; }
body[data-page="step2"] .material-option[data-category="floor"][data-material="tile"]::before { background-position: 33.333% 50%; }
body[data-page="step2"] .material-option[data-category="floor"][data-material="marble"]::before { background-position: 66.666% 50%; }
body[data-page="step2"] .material-option[data-category="floor"][data-material="concrete"]::before { background-position: 100% 50%; }
body[data-page="step2"] .material-option[data-category="wall"][data-material="paint"]::before { background-position: 0% 100%; }
body[data-page="step2"] .material-option[data-category="wall"][data-material="wallpaper"]::before { background-position: 33.333% 100%; }
body[data-page="step2"] .material-option[data-category="wall"][data-material="wood-panel"]::before { background-position: 66.666% 100%; }
body[data-page="step2"] .material-option[data-category="wall"][data-material="brick"]::before { background-position: 100% 100%; }

body[data-page="step2"] .material-option:hover {
  border-color: rgba(255, 216, 137, 0.72);
  transform: translateY(-2px);
}

body[data-page="step2"] .material-option:hover::before {
  transform: scale(1.06);
  filter: brightness(1.08);
}

body[data-page="step2"] .material-option.selected {
  color: #fff;
  border-color: rgba(255, 216, 137, 0.95);
  background: #17130f;
  box-shadow: inset 0 -70px 54px rgba(0, 0, 0, 0.58), 0 0 0 2px rgba(233, 189, 102, 0.16), 0 22px 46px rgba(0, 0, 0, 0.3);
}

body[data-page="step2"] .material-option.selected::after {
  content: "✓";
  position: absolute;
  right: 14px;
  top: 14px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #17120b;
  background: linear-gradient(135deg, var(--step2-gold), var(--step2-gold-soft));
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.32);
  font-size: 0.86rem;
  font-weight: 1000;
  text-shadow: none;
}

body[data-page="step2"] .material-note-input,
body[data-page="step2"] .material-panel-head {
  display: none !important;
}

body[data-page="step2"] .step2-action-row {
  position: absolute !important;
  left: 50%;
  bottom: 0;
  display: grid !important;
  grid-template-columns: 0.9fr 1.35fr;
  gap: 10px;
  width: min(540px, 46vw);
  min-height: 66px;
  margin: 0 !important;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(6, 6, 5, 0.62);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  transform: translateX(-50%);
}

body[data-page="step2"] .step2-action-row .btn {
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 1rem;
  font-weight: 1000;
}

body[data-page="step2"] .step2-action-row .btn-secondary {
  color: rgba(255, 248, 235, 0.86);
  background: rgba(255, 255, 255, 0.1);
}

body[data-page="step2"] .step2-action-row .btn-secondary:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

body[data-page="step2"] .step2-action-row .btn-primary {
  color: #17120b;
  border-color: rgba(255, 216, 137, 0.74);
  background: linear-gradient(135deg, var(--step2-gold), var(--step2-gold-soft));
  box-shadow: 0 12px 28px rgba(233, 189, 102, 0.2);
}

body[data-page="step2"] .step2-action-row .btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #f2c975, #ffe2a1);
}

body[data-page="step2"] .step2-action-row .btn-primary:disabled {
  color: rgba(255, 248, 235, 0.42);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
  opacity: 1;
  cursor: not-allowed;
}

body[data-page="step2"].is-renovation-upload .step2-combined-layout {
  grid-template-columns: minmax(520px, 760px) !important;
  justify-content: center;
}

body[data-page="step2"].is-renovation-upload .step2-materials-panel {
  display: none !important;
}

@media (max-width: 1180px) {
  body[data-page="step2"] {
    overflow: auto !important;
  }

  body[data-page="step2"] .container {
    min-height: 100vh !important;
    padding: 18px !important;
  }

  body[data-page="step2"] .step2-topbar,
  body[data-page="step2"] .section--combined,
  body[data-page="step2"] .step2-combined-layout,
  body[data-page="step2"] .step2-action-row {
    position: static !important;
    transform: none;
  }

  body[data-page="step2"] .step2-topbar {
    height: auto;
    min-height: 72px;
    margin-bottom: 42px !important;
  }

  body[data-page="step2"] .section--combined .section-title h2 {
    font-size: clamp(2.8rem, 10vw, 4.7rem);
  }

  body[data-page="step2"] .step2-combined-layout {
    grid-template-columns: 1fr !important;
    margin-top: 34px;
  }

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

  body[data-page="step2"] .step2-action-row {
    width: min(540px, 100%);
    margin: 28px auto 0 !important;
  }
}

@media (max-width: 720px) {
  body[data-page="step2"] .step2-topbar {
    gap: 14px;
    align-items: flex-start;
    padding: 16px;
    border-radius: 22px;
  }

  body[data-page="step2"] .step2-nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  body[data-page="step2"] .step2-nav a,
  body[data-page="step2"] .step2-account {
    min-width: max-content;
  }

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

  body[data-page="step2"] .step2-action-row {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }
}

/* Step2 final override: beats earlier page-specific polish blocks. */
body[data-page="step2"]:not(.is-renovation-upload) .section--combined .section-title h2 {
  max-width: none !important;
  color: #fffdf6 !important;
  font-family: "Noto Serif SC", "Songti SC", "SimSun", serif !important;
  font-size: clamp(4rem, 4.9vw, 5.35rem) !important;
  font-weight: 900 !important;
  line-height: 1.02 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
}

body[data-page="step2"]:not(.is-renovation-upload) .section--combined .section-title h2 span {
  color: var(--step2-gold) !important;
}

body[data-page="step2"]:not(.is-renovation-upload) .step2-combined-layout {
  top: clamp(154px, 18vh, 164px) !important;
  bottom: 122px !important;
  grid-template-columns: minmax(520px, 760px) minmax(420px, 510px) !important;
  justify-content: start !important;
  align-items: stretch !important;
  gap: clamp(44px, 4.6vw, 78px) !important;
}

body[data-page="step2"]:not(.is-renovation-upload) .step2-upload-panel,
body[data-page="step2"]:not(.is-renovation-upload) .step2-materials-panel {
  box-sizing: border-box !important;
  align-self: stretch !important;
  height: 100% !important;
}

body[data-page="step2"]:not(.is-renovation-upload) .step2-upload-panel {
  display: block !important;
  align-content: stretch !important;
}

body[data-page="step2"]:not(.is-renovation-upload) .dropzone {
  box-sizing: border-box !important;
  display: grid !important;
  height: 100% !important;
  min-height: 0 !important;
  border-color: rgba(233, 189, 102, 0.56) !important;
  background:
    linear-gradient(180deg, rgba(7, 6, 5, 0.08) 0%, rgba(5, 4, 3, 0.68) 100%),
    url("home-v2/scenario-rough-clean.jpg?v=20260622a") center / cover no-repeat !important;
}

body[data-page="step2"]:not(.is-renovation-upload) .dropzone-hint {
  height: 100% !important;
  min-height: 0 !important;
  color: #fff !important;
}

body[data-page="step2"]:not(.is-renovation-upload) .dropzone-hint h3 {
  color: #fff !important;
  font-size: clamp(1.45rem, 2.2vw, 2rem) !important;
}

body[data-page="step2"]:not(.is-renovation-upload) .dropzone-hint p {
  color: rgba(255, 248, 235, 0.7) !important;
}

body[data-page="step2"]:not(.is-renovation-upload) .step2-materials-panel {
  display: block !important;
  width: 510px !important;
  padding: 24px !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 30px !important;
  background: linear-gradient(180deg, rgba(22, 19, 15, 0.82), rgba(7, 6, 5, 0.8)) !important;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

body[data-page="step2"]:not(.is-renovation-upload) .step2-materials-head h3 {
  margin: 0 0 18px !important;
  color: #fff !important;
  font-size: clamp(1.6rem, 2vw, 2rem) !important;
  line-height: 1.18 !important;
}

body[data-page="step2"]:not(.is-renovation-upload) .material-tabs {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 7px !important;
  margin: 0 0 18px !important;
  padding: 6px !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

body[data-page="step2"]:not(.is-renovation-upload) .material-tab {
  height: 48px !important;
  min-height: 48px !important;
  border: 0 !important;
  border-radius: 14px !important;
  color: rgba(255, 248, 235, 0.64) !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-page="step2"]:not(.is-renovation-upload) .material-tab.is-active {
  color: #17120b !important;
  background: linear-gradient(135deg, var(--step2-gold), var(--step2-gold-soft)) !important;
  box-shadow: 0 12px 28px rgba(233, 189, 102, 0.2) !important;
}

body[data-page="step2"]:not(.is-renovation-upload) .material-panel {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-page="step2"]:not(.is-renovation-upload) .material-panel.is-active {
  display: block !important;
}

body[data-page="step2"]:not(.is-renovation-upload) .material-options {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

body[data-page="step2"]:not(.is-renovation-upload) .material-option {
  position: relative !important;
  isolation: isolate !important;
  height: clamp(108px, 13.4vh, 122px) !important;
  min-height: 108px !important;
  overflow: hidden !important;
  padding: 0 16px 15px !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 22px !important;
  color: #fffaf0 !important;
  background: #17130f !important;
  box-shadow: inset 0 -70px 54px rgba(0, 0, 0, 0.64), 0 16px 34px rgba(0, 0, 0, 0.2) !important;
  text-align: left !important;
  font-size: 1rem !important;
  font-weight: 900 !important;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.7) !important;
}

body[data-page="step2"]:not(.is-renovation-upload) .material-option::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  left: 0 !important;
  top: 0 !important;
  z-index: -1 !important;
  width: auto !important;
  height: auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  background-image: url("materials/premium-material-atlas-optimized.webp?v=20260622a") !important;
  background-size: 400% 300% !important;
  background-repeat: no-repeat !important;
  box-shadow: none !important;
  transform: scale(1.01) !important;
}

body[data-page="step2"]:not(.is-renovation-upload) .material-option[data-category="ceiling"][data-material="gypsum"]::before { background-position: 0% 0% !important; }
body[data-page="step2"]:not(.is-renovation-upload) .material-option[data-category="ceiling"][data-material="integrated"]::before { background-position: 33.333% 0% !important; }
body[data-page="step2"]:not(.is-renovation-upload) .material-option[data-category="ceiling"][data-material="wood"]::before { background-position: 66.666% 0% !important; }
body[data-page="step2"]:not(.is-renovation-upload) .material-option[data-category="ceiling"][data-material="none"]::before { background-position: 100% 0% !important; }
body[data-page="step2"]:not(.is-renovation-upload) .material-option[data-category="floor"][data-material="wood"]::before { background-position: 0% 50% !important; }
body[data-page="step2"]:not(.is-renovation-upload) .material-option[data-category="floor"][data-material="tile"]::before { background-position: 33.333% 50% !important; }
body[data-page="step2"]:not(.is-renovation-upload) .material-option[data-category="floor"][data-material="marble"]::before { background-position: 66.666% 50% !important; }
body[data-page="step2"]:not(.is-renovation-upload) .material-option[data-category="floor"][data-material="concrete"]::before { background-position: 100% 50% !important; }
body[data-page="step2"]:not(.is-renovation-upload) .material-option[data-category="wall"][data-material="paint"]::before { background-position: 0% 100% !important; }
body[data-page="step2"]:not(.is-renovation-upload) .material-option[data-category="wall"][data-material="wallpaper"]::before { background-position: 33.333% 100% !important; }
body[data-page="step2"]:not(.is-renovation-upload) .material-option[data-category="wall"][data-material="wood-panel"]::before { background-position: 66.666% 100% !important; }
body[data-page="step2"]:not(.is-renovation-upload) .material-option[data-category="wall"][data-material="brick"]::before { background-position: 100% 100% !important; }

body[data-page="step2"]:not(.is-renovation-upload) .material-option.selected::after {
  content: "✓" !important;
  right: 14px !important;
  top: 14px !important;
  width: 28px !important;
  height: 28px !important;
  border: 0 !important;
  border-radius: 50% !important;
  color: #17120b !important;
  background: linear-gradient(135deg, var(--step2-gold), var(--step2-gold-soft)) !important;
  transform: none !important;
}

body[data-page="step2"]:not(.is-renovation-upload) .material-note-input,
body[data-page="step2"]:not(.is-renovation-upload) .material-panel-head {
  display: none !important;
}

body[data-page="step2"]:not(.is-renovation-upload) .step2-action-row {
  width: min(540px, 46vw) !important;
  min-height: 66px !important;
}

/* Step1 interaction fix: prevent stale yellow CTA and make return-from-back-cache clickable again. */
body[data-page="step1"] .step1-option {
  will-change: transform;
  transition: transform 0.18s var(--ease-out-expo), border-color 0.18s var(--ease-out-expo), box-shadow 0.18s var(--ease-out-expo);
}

body[data-page="step1"] .step1-option-media img {
  transition: transform 0.24s var(--ease-out-expo);
  filter: none;
}

body[data-page="step1"] .step1-option:hover .step1-option-media img,
body[data-page="step1"] .step1-option.selected .step1-option-media img {
  transform: scale(1.025);
  filter: none;
}

body[data-page="step1"] .step1-option-button,
body[data-page="step1"] .step1-option--featured:not(.selected):not(:hover):not(:focus-within) .step1-option-button {
  border-color: rgba(255, 255, 255, 0.18) !important;
  color: rgba(255, 248, 234, 0.94) !important;
  background: rgba(255, 255, 255, 0.105) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

body[data-page="step1"] .step1-option:hover .step1-option-button,
body[data-page="step1"] .step1-option:focus-visible .step1-option-button,
body[data-page="step1"] .step1-option:focus-within .step1-option-button,
body[data-page="step1"] .step1-option.selected .step1-option-button,
body[data-page="step1"] .step1-option.is-navigating .step1-option-button {
  border-color: rgba(255, 224, 154, 0.82) !important;
  color: #211407 !important;
  background: linear-gradient(135deg, #d9a94f 0%, #ffd98b 100%) !important;
  box-shadow: 0 12px 24px rgba(240, 198, 117, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.34) !important;
}

body[data-page="step1"].is-step1-navigating .step1-option:not(.is-navigating) {
  pointer-events: none;
}

body[data-page="step1"].is-step1-navigating .step1-option.is-navigating {
  transform: translateY(-4px);
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="step1"] .step1-option,
  body[data-page="step1"] .step1-option-media img,
  body[data-page="step1"] .step1-option-button {
    transition: none !important;
  }
}

body[data-page="step1"][data-page] {
  background: #050504 url("home-v2/step1-hero-bg-generated-optimized.webp?v=20260622a") center center / cover no-repeat !important;
}

body[data-page="step1"][data-page]::before {
  background:
    radial-gradient(circle at 22% 22%, rgba(255, 219, 153, 0.14), transparent 28%),
    linear-gradient(90deg, rgba(2, 3, 3, 0.62) 0%, rgba(6, 7, 7, 0.42) 46%, rgba(6, 7, 7, 0.12) 76%, rgba(2, 3, 3, 0.34) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.1) 42%, rgba(0, 0, 0, 0.52) 100%) !important;
}

body[data-page="step1"][data-page]::after {
  background: radial-gradient(ellipse at center, transparent 42%, rgba(0, 0, 0, 0.42) 100%) !important;
}

@media (min-width: 1181px) {
  body[data-page="step1"][data-page] .step1-stage {
    padding-top: clamp(24px, 3vh, 30px);
  }

  body[data-page="step1"][data-page] .step1-glassbar {
    height: clamp(82px, 9.6vh, 88px);
    border-radius: 24px;
  }

  body[data-page="step1"][data-page] .step1-logo {
    gap: 14px;
  }

  body[data-page="step1"][data-page] .step1-logo img {
    width: clamp(45px, 3.55vw, 52px);
    height: clamp(45px, 3.55vw, 52px);
    border-radius: 16px;
  }

  body[data-page="step1"][data-page] .step1-logo-title {
    font-size: clamp(1.42rem, 1.78vw, 1.88rem);
  }

  body[data-page="step1"][data-page] .step1-logo-tagline {
    font-size: clamp(0.82rem, 0.96vw, 0.96rem);
  }

  body[data-page="step1"][data-page] .step1-action {
    min-width: 82px;
    height: 48px;
    padding: 0 22px;
    font-size: 0.9rem;
  }

  body[data-page="step1"][data-page] .step1-copy {
    margin-top: clamp(56px, 8.2vh, 82px);
  }

  body[data-page="step1"][data-page] .step1-copy h1 {
    font-size: clamp(3.15rem, 3.45vw, 4.1rem);
  }

  body[data-page="step1"][data-page] .step1-copy h1::after {
    flex-basis: clamp(70px, 6vw, 108px);
    margin-left: 22px;
  }

  body[data-page="step1"][data-page] .step1-copy p {
    margin-top: 16px;
    font-size: clamp(1.1rem, 1.52vw, 1.55rem);
  }

  body[data-page="step1"][data-page] .step1-facts {
    margin-top: 22px;
    gap: 12px;
  }

  body[data-page="step1"][data-page] .step1-facts span {
    height: 42px;
    padding: 0 18px;
    font-size: clamp(0.84rem, 0.92vw, 0.95rem);
  }

  body[data-page="step1"][data-page] .step1-options {
    bottom: clamp(84px, 10.2vh, 100px);
    gap: clamp(15px, 1.45vw, 24px);
  }

  body[data-page="step1"][data-page] .step1-option {
    height: clamp(320px, 40.5vh, 405px);
    border-radius: 24px;
  }

  body[data-page="step1"][data-page] .step1-option-body {
    padding: clamp(16px, 1.75vw, 22px) clamp(18px, 1.9vw, 24px) clamp(18px, 1.8vw, 22px);
  }

  body[data-page="step1"][data-page] .step1-option h3 {
    font-size: clamp(1.42rem, 1.72vw, 1.88rem);
  }

  body[data-page="step1"][data-page] .step1-option p {
    display: none;
  }

  body[data-page="step1"][data-page] .step1-option-button {
    height: clamp(46px, 5vh, 52px) !important;
    padding: 0 clamp(18px, 1.9vw, 23px) !important;
    border-radius: 15px !important;
    font-size: 0.92rem !important;
  }

  body[data-page="step1"][data-page] .step1-option-badge {
    min-height: 32px;
    padding: 0 14px;
    font-size: 0.78rem;
  }

  body[data-page="step1"][data-page] .step1-note {
    bottom: 34px;
    font-size: clamp(0.84rem, 0.92vw, 0.95rem);
  }
}

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-06-08 Step2 Rough Room Layout Polish ========== */
body[data-page="step2"]:not(.is-renovation-upload) .container {
  gap: 14px;
}

body[data-page="step2"]:not(.is-renovation-upload) .section--combined {
  width: min(1180px, 100%);
  padding: clamp(22px, 2.6vw, 34px);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(18, 28, 42, 0.88) 0%, rgba(18, 28, 42, 0.76) 100%),
    rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

body[data-page="step2"]:not(.is-renovation-upload) .section--combined .section-title {
  margin-bottom: 20px;
}

body[data-page="step2"]:not(.is-renovation-upload) .section--combined .section-title h2 {
  font-size: clamp(1.75rem, 2.4vw, 2.45rem);
  line-height: 1.12;
}

body[data-page="step2"]:not(.is-renovation-upload) .step2-combined-layout {
  grid-template-columns: minmax(330px, 0.92fr) minmax(420px, 1.08fr) !important;
  gap: clamp(20px, 2.4vw, 34px);
  align-items: stretch;
}

body[data-page="step2"]:not(.is-renovation-upload) .step2-upload-panel,
body[data-page="step2"]:not(.is-renovation-upload) .step2-materials-panel {
  border-radius: 22px;
}

body[data-page="step2"]:not(.is-renovation-upload) .dropzone {
  height: 100%;
  min-height: clamp(310px, 34vw, 420px);
  padding: 18px;
  border: 1px solid rgba(190, 216, 240, 0.55);
  border-radius: 22px;
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.34), transparent 35%),
    linear-gradient(145deg, rgba(233, 240, 247, 0.96) 0%, rgba(195, 207, 219, 0.9) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 18px 40px rgba(0, 0, 0, 0.18);
}

body[data-page="step2"]:not(.is-renovation-upload) .dropzone:hover,
body[data-page="step2"]:not(.is-renovation-upload) .dropzone.dragover {
  border-color: rgba(113, 175, 236, 0.78);
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.42), transparent 35%),
    linear-gradient(145deg, rgba(238, 247, 255, 0.98) 0%, rgba(203, 222, 240, 0.94) 100%);
}

body[data-page="step2"]:not(.is-renovation-upload) .dropzone-hint {
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: 240px;
  padding: 28px;
}

body[data-page="step2"]:not(.is-renovation-upload) .dropzone-hint h3 {
  margin: 0;
  color: #213145;
  font-size: 1.18rem;
  line-height: 1.35;
}

body[data-page="step2"]:not(.is-renovation-upload) .dropzone-hint p {
  margin: 0;
  color: #5d7188;
  font-size: 0.95rem;
  font-weight: 700;
}

body[data-page="step2"]:not(.is-renovation-upload) .dropzone-preview img {
  max-height: clamp(280px, 32vw, 390px);
  border-radius: 18px;
}

body[data-page="step2"]:not(.is-renovation-upload) .step2-materials-panel {
  padding: 16px;
  background: rgba(238, 242, 246, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74), 0 18px 40px rgba(0, 0, 0, 0.16);
}

body[data-page="step2"]:not(.is-renovation-upload) .material-tabs {
  gap: 6px;
  padding: 5px;
  border-radius: 18px;
  background: rgba(27, 39, 54, 0.1);
  border: 1px solid rgba(27, 39, 54, 0.08);
}

body[data-page="step2"]:not(.is-renovation-upload) .material-tab {
  min-height: 50px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #526173;
  font-size: 0.96rem;
  box-shadow: none;
}

body[data-page="step2"]:not(.is-renovation-upload) .material-tab:hover {
  color: #172235;
  background: rgba(255, 255, 255, 0.42);
  transform: none;
}

body[data-page="step2"]:not(.is-renovation-upload) .material-tab.is-active {
  color: #10253f;
  background: linear-gradient(180deg, #ffffff 0%, #e8f3ff 100%);
  box-shadow: 0 10px 26px rgba(42, 103, 166, 0.18), inset 0 0 0 1px rgba(84, 150, 215, 0.22);
}

body[data-page="step2"]:not(.is-renovation-upload) .material-tab.is-done:not(.is-active) {
  color: #1f5f3d;
  background: rgba(225, 247, 235, 0.7);
}

body[data-page="step2"]:not(.is-renovation-upload) .material-panel {
  margin-top: 14px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(19, 31, 45, 0.08);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: none;
}

body[data-page="step2"]:not(.is-renovation-upload) .material-options {
  gap: 12px;
}

body[data-page="step2"]:not(.is-renovation-upload) .material-option {
  position: relative;
  min-height: 64px;
  padding: 13px 16px 13px 48px;
  border-radius: 15px;
  text-align: left;
  color: #243348;
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(22, 34, 49, 0.1);
  box-shadow: 0 8px 20px rgba(32, 49, 69, 0.06);
}

body[data-page="step2"]:not(.is-renovation-upload) .material-option::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 50%;
  width: 20px;
  height: 20px;
  border-radius: 7px;
  transform: translateY(-50%);
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

body[data-page="step2"]:not(.is-renovation-upload) .material-option[data-material="gypsum"]::before { background: linear-gradient(135deg, #eef2f7, #cfd8e3); }
body[data-page="step2"]:not(.is-renovation-upload) .material-option[data-material="integrated"]::before { background: linear-gradient(135deg, #dce7f2, #93a9bd); }
body[data-page="step2"]:not(.is-renovation-upload) .material-option[data-material="wood"]::before { background: linear-gradient(135deg, #d8ae78, #875b35); }
body[data-page="step2"]:not(.is-renovation-upload) .material-option[data-material="none"]::before { background: linear-gradient(135deg, #f7f7f3, #d9d7cf); }
body[data-page="step2"]:not(.is-renovation-upload) .material-option[data-material="tile"]::before { background: linear-gradient(135deg, #e7edf4 0 48%, #c5d1dd 49% 52%, #f8fafc 53%); }
body[data-page="step2"]:not(.is-renovation-upload) .material-option[data-material="marble"]::before { background: linear-gradient(135deg, #fbfbf8, #c9ced7 45%, #f0f3f5 55%, #9aa4b1); }
body[data-page="step2"]:not(.is-renovation-upload) .material-option[data-material="concrete"]::before { background: linear-gradient(135deg, #b6bec6, #7d8792); }
body[data-page="step2"]:not(.is-renovation-upload) .material-option[data-material="paint"]::before { background: linear-gradient(135deg, #fff7ed, #e6dccf); }
body[data-page="step2"]:not(.is-renovation-upload) .material-option[data-material="wallpaper"]::before { background: repeating-linear-gradient(135deg, #f5edf7 0 5px, #dcc8e4 5px 10px); }
body[data-page="step2"]:not(.is-renovation-upload) .material-option[data-material="wood-panel"]::before { background: repeating-linear-gradient(90deg, #b47d4e 0 5px, #8d5f38 5px 10px); }
body[data-page="step2"]:not(.is-renovation-upload) .material-option[data-material="brick"]::before { background: repeating-linear-gradient(0deg, #a45c45 0 7px, #e2c0ae 7px 9px); }

body[data-page="step2"]:not(.is-renovation-upload) .material-option:hover {
  border-color: rgba(61, 129, 198, 0.34);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(32, 49, 69, 0.1);
}

body[data-page="step2"]:not(.is-renovation-upload) .material-option.selected {
  color: #0f3159;
  border-color: rgba(43, 119, 196, 0.46);
  background: linear-gradient(180deg, #ffffff 0%, #edf6ff 100%);
  box-shadow: 0 0 0 3px rgba(67, 145, 224, 0.13), 0 14px 30px rgba(43, 119, 196, 0.12);
}

body[data-page="step2"]:not(.is-renovation-upload) .material-option.selected::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 14px;
  border: solid #2b77c4;
  border-width: 0 2px 2px 0;
  transform: translateY(-58%) rotate(45deg);
}

body[data-page="step2"]:not(.is-renovation-upload) .material-note-input {
  min-height: 50px;
  margin-top: 14px;
  padding-inline: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

body[data-page="step2"]:not(.is-renovation-upload) .step2-action-row {
  width: min(420px, 100%);
  margin-top: 24px;
  background: rgba(10, 18, 31, 0.5);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
}

@media (max-width: 980px) {
  body[data-page="step2"]:not(.is-renovation-upload) .step2-combined-layout {
    grid-template-columns: 1fr !important;
  }

  body[data-page="step2"]:not(.is-renovation-upload) .dropzone {
    min-height: 280px;
  }
}

@media (max-width: 640px) {
  body[data-page="step2"]:not(.is-renovation-upload) .section--combined {
    padding: 16px;
  }

  body[data-page="step2"]:not(.is-renovation-upload) .material-tabs {
    grid-template-columns: 1fr;
  }

  body[data-page="step2"]:not(.is-renovation-upload) .material-options {
    grid-template-columns: 1fr;
  }

  body[data-page="step2"]:not(.is-renovation-upload) .material-option {
    min-height: 58px;
  }
}

/* ========== 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;
}

body[data-page="step2"]:not(.is-renovation-upload) .container {
  justify-content: flex-start !important;
}

body[data-page="step2"]:not(.is-renovation-upload) .section--combined {
  margin-top: clamp(12px, 2.2vh, 28px) !important;
  margin-bottom: 0 !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/smf-user-logo-256.png?v=20260627newlogo1") 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/smf-user-logo-256.png?v=20260627newlogo1") 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-mode-block {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
  color: #25324a;
  font-weight: 850;
}

.floorplan-mode-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  background: #ffffff;
}

.floorplan-mode-btn {
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #43536a;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.floorplan-mode-btn.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, #1d3a5d 0%, #d4a158 100%);
  box-shadow: 0 12px 24px rgba(29, 58, 93, 0.18);
}

.floorplan-space-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.floorplan-space-grid[hidden] {
  display: none !important;
}

.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;
  }
}

@media (max-width: 760px) {
  .brand-copy {
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
  }

  .brand-tagline {
    font-size: 0.62rem;
  }
}

/* ========== 2026-06-08 Step4 Base Render Loading Polish ========== */
body[data-page="step4"] .container {
  justify-content: flex-start;
  gap: clamp(12px, 2vh, 22px);
}

body[data-page="step4"] .container > .section {
  width: min(1220px, 100%);
  min-height: clamp(430px, 58vh, 560px);
  padding: clamp(22px, 3vw, 34px);
  align-content: start;
  row-gap: 0;
}

body[data-page="step4"] .section-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, auto);
  align-items: start;
  gap: 18px;
  margin-bottom: clamp(22px, 3vh, 34px);
}

body[data-page="step4"] .section-title h2 {
  letter-spacing: 0;
}

body[data-page="step4"] .section-title p {
  max-width: 30ch;
  justify-self: end;
  padding-top: 8px;
  text-align: right;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
}

body[data-page="step4"] #step4Preview.is-loading {
  width: min(780px, 100%);
  max-width: 100%;
  height: auto;
  min-height: 340px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  overflow: visible;
  border: 0 !important;
  border-radius: 0;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-page="step4"] #step4Preview.is-loading::before,
body[data-page="step4"] #step4Preview.is-loading::after {
  content: none !important;
}

body[data-page="step4"] #step4Preview.is-loading .preview-zoom-stage,
body[data-page="step4"] #step4Preview.is-loading .preview-zoom-pan {
  display: none !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-page="step4"] #step4Preview.is-loading .step6-loading {
  width: min(720px, 100%);
  min-height: 310px;
  padding: 42px 46px 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  justify-items: center;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0) 50%),
    linear-gradient(180deg, rgba(244, 249, 255, 0.98) 0%, rgba(229, 239, 252, 0.98) 100%);
  box-shadow: 0 22px 46px rgba(4, 14, 28, 0.28);
  color: #173052;
  text-align: center;
}

body[data-page="step4"] #step4Preview.is-loading .step6-loading-spinner {
  justify-self: center;
  width: 48px;
  height: 48px;
  border-width: 4px;
  border-color: rgba(23, 48, 82, 0.12);
  border-top-color: #1687ff;
  box-shadow: 0 0 0 8px rgba(22, 135, 255, 0.08);
}

body[data-page="step4"] #step4Preview.is-loading .step6-loading-copy {
  width: min(100%, 480px);
  gap: 8px;
  justify-items: center;
  text-align: center;
}

body[data-page="step4"] #step4Preview.is-loading .step6-loading-title {
  font-size: clamp(1.18rem, 1.7vw, 1.45rem);
  font-weight: 900;
  color: #071f43;
}

body[data-page="step4"] #step4Preview.is-loading .step6-loading-detail {
  max-width: 42ch;
  font-size: 1rem;
  color: #365681;
}

body[data-page="step4"] #step4Preview.is-loading .step6-loading-stages {
  width: min(100%, 430px);
  gap: 8px;
  justify-content: center;
}

body[data-page="step4"] #step4Preview.is-loading .step6-loading-chip {
  min-width: 102px;
  min-height: 36px;
  padding: 8px 14px;
  border-color: rgba(23, 48, 82, 0.08);
  background: rgba(255, 255, 255, 0.76);
  color: #35506f;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

body[data-page="step4"] .step4-action-row {
  width: min(640px, 100%);
  margin-top: clamp(12px, 2vh, 20px);
  padding: 8px;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(11, 20, 32, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body[data-page="step4"] .step4-action-row .btn {
  min-height: 48px;
  padding: 11px 22px;
  border-radius: 999px;
}

@media (max-width: 820px) {
  body[data-page="step4"] .container > .section {
    min-height: auto;
  }

  body[data-page="step4"] .section-title {
    grid-template-columns: 1fr;
    gap: 8px;
    text-align: left;
  }

  body[data-page="step4"] .section-title p {
    max-width: none;
    justify-self: start;
    padding-top: 0;
    text-align: left;
  }

  body[data-page="step4"] #step4Preview.is-loading {
    min-height: 250px;
  }

  body[data-page="step4"] #step4Preview.is-loading .step6-loading {
    width: min(520px, 100%);
    min-height: 268px;
    display: flex;
    align-items: center;
    justify-items: center;
    gap: 18px;
    text-align: center;
  }

  body[data-page="step4"] #step4Preview.is-loading .step6-loading-copy {
    justify-items: center;
    text-align: center;
  }

  body[data-page="step4"] #step4Preview.is-loading .step6-loading-stages {
    justify-content: center;
  }

  body[data-page="step4"] .step4-action-row {
    width: min(520px, 100%);
    flex-wrap: wrap;
    border-radius: 24px;
  }
}

@media (max-width: 560px) {
  body[data-page="step4"] .container > .section {
    padding: 18px 14px;
  }

  body[data-page="step4"] #step4Preview.is-loading .step6-loading {
    min-height: 246px;
    padding: 28px 18px 24px;
    border-radius: 24px;
  }

  body[data-page="step4"] #step4Preview.is-loading .step6-loading-stages {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  body[data-page="step4"] #step4Preview.is-loading .step6-loading-chip {
    width: 100%;
  }

  body[data-page="step4"] .step4-action-row {
    display: grid;
    grid-template-columns: 1fr;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  body[data-page="step4"] .step4-action-row .btn {
    width: 100%;
  }
}

/* ========== 2026-06-08 Step5 Furniture Header + Spacing Polish ========== */
body[data-page="step5"] {
  overflow-y: auto !important;
}

body[data-page="step5"] #step5Subtitle {
  display: none !important;
}

@media (min-width: 1081px) {
  body[data-page="step5"] .container {
    height: auto !important;
    min-height: 100vh !important;
    max-width: min(1500px, calc(100vw - 42px)) !important;
    gap: clamp(14px, 1.8vh, 22px) !important;
    padding-top: clamp(16px, 2vh, 24px) !important;
    padding-bottom: clamp(22px, 3vh, 34px) !important;
    justify-content: flex-start !important;
  }

  body[data-page="step5"] .container::before {
    inset: 10px clamp(8px, 1.4vw, 18px) 14px !important;
  }

  body[data-page="step5"] .container > .topbar {
    display: flex !important;
    width: min(1320px, 100%) !important;
    min-height: 68px;
    margin: 0 auto clamp(10px, 1.5vh, 18px) !important;
    padding: 10px 16px !important;
    align-items: center;
    border-radius: 16px;
  }

  body[data-page="step5"] .container > .topbar .nav {
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
  }

  body[data-page="step5"] .container > .topbar .login-profile {
    display: inline-flex !important;
  }

  body[data-page="step5"] .progress[data-progress] {
    display: none !important;
  }

  body[data-page="step5"] .container > .section {
    width: min(1320px, 100%) !important;
    height: auto !important;
    min-height: min(760px, calc(100vh - 150px)) !important;
    margin: 0 auto !important;
    padding: clamp(22px, 2.2vw, 30px) !important;
    overflow: visible !important;
    border-radius: 24px;
  }

  body[data-page="step5"] .section-title {
    margin-bottom: clamp(12px, 1.3vh, 18px) !important;
  }

  body[data-page="step5"] .section-title h2 {
    font-size: clamp(1.65rem, 2vw, 2.25rem) !important;
    line-height: 1.12;
  }

  body[data-page="step5"] .layout-panel {
    height: auto !important;
    min-height: 0 !important;
    display: block !important;
    align-items: initial !important;
  }

  body[data-page="step5"] .grid-step5 {
    height: auto !important;
    grid-template-columns: minmax(430px, 0.82fr) minmax(0, 1.18fr) !important;
    align-items: start !important;
    gap: clamp(24px, 2.8vw, 36px) !important;
  }

  body[data-page="step5"] .step5-preview-column {
    transform: none !important;
    align-content: start !important;
    padding-top: 4px;
  }

  body[data-page="step5"] .step5-library-column {
    transform: translateY(clamp(-86px, -7vh, -48px)) !important;
    align-self: start !important;
  }

  body[data-page="step5"] #basePreview {
    width: min(100%, 540px) !important;
  }

  body[data-page="step5"] #furnitureGrid,
  body[data-page="step5"] #enterpriseFurnitureGrid {
    height: clamp(500px, 62vh, 650px) !important;
    max-height: clamp(500px, 62vh, 650px) !important;
  }
}

@media (min-width: 1081px) and (max-height: 760px) {
  body[data-page="step5"] .topbar {
    display: flex !important;
  }

  body[data-page="step5"] .container > .section {
    height: auto !important;
    min-height: calc(100vh - 150px) !important;
  }

  body[data-page="step5"] #furnitureGrid,
  body[data-page="step5"] #enterpriseFurnitureGrid {
    height: clamp(430px, 58vh, 560px) !important;
    max-height: clamp(430px, 58vh, 560px) !important;
  }
}

@media (max-width: 1080px) {
  body[data-page="step5"] .container {
    gap: 16px;
  }

  body[data-page="step5"] .container > .topbar {
    display: flex !important;
    margin-bottom: 8px;
  }
}

/* ========== 2026-06-08 Step5 Furniture Full Image Cards ========== */
body[data-page="step5"] #furnitureGrid,
body[data-page="step5"] #enterpriseFurnitureGrid {
  grid-auto-rows: 244px !important;
}

body[data-page="step5"] #furnitureGrid > .furniture-card,
body[data-page="step5"] #enterpriseFurnitureGrid > .furniture-card {
  height: 244px !important;
  min-height: 244px !important;
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 10px 12px 12px !important;
}

body[data-page="step5"] .furn-media {
  width: 100%;
  min-height: 0 !important;
  height: 174px !important;
  flex: none !important;
  padding: 10px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef5fb 100%);
}

body[data-page="step5"] .furn-media img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block;
}

body[data-page="step5"] .furn-meta {
  min-height: 38px !important;
  padding-top: 0;
  display: grid;
  align-content: start;
  gap: 2px;
}

body[data-page="step5"] .furniture-card h3 {
  -webkit-line-clamp: 1;
}

@media (min-width: 1081px) and (max-height: 760px) {
  body[data-page="step5"] #furnitureGrid,
  body[data-page="step5"] #enterpriseFurnitureGrid {
    grid-auto-rows: 230px !important;
  }

  body[data-page="step5"] #furnitureGrid > .furniture-card,
  body[data-page="step5"] #enterpriseFurnitureGrid > .furniture-card {
    height: 230px !important;
    min-height: 230px !important;
  }

  body[data-page="step5"] .furn-media {
    height: 162px !important;
  }
}

@media (max-width: 760px) {
  body[data-page="step5"] #furnitureGrid,
  body[data-page="step5"] #enterpriseFurnitureGrid {
    grid-auto-rows: 220px !important;
  }

  body[data-page="step5"] #furnitureGrid > .furniture-card,
  body[data-page="step5"] #enterpriseFurnitureGrid > .furniture-card {
    height: 220px !important;
    min-height: 220px !important;
  }

  body[data-page="step5"] .furn-media {
    height: 152px !important;
  }
}

/* Wood doors are tall product shots; give them a vertical preview slot. */
body[data-page="step5"] #furnitureGrid:has(.furniture-card--vertical),
body[data-page="step5"] #enterpriseFurnitureGrid:has(.furniture-card--vertical) {
  grid-auto-rows: 330px !important;
}

body[data-page="step5"] #furnitureGrid > .furniture-card--vertical,
body[data-page="step5"] #enterpriseFurnitureGrid > .furniture-card--vertical {
  height: 330px !important;
  min-height: 330px !important;
}

body[data-page="step5"] .furniture-card--vertical .furn-media {
  height: 260px !important;
  padding: 8px 18px;
}

body[data-page="step5"] .furniture-card--vertical .furn-media img {
  width: auto !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
}

@media (min-width: 1081px) and (max-height: 760px) {
  body[data-page="step5"] #furnitureGrid:has(.furniture-card--vertical),
  body[data-page="step5"] #enterpriseFurnitureGrid:has(.furniture-card--vertical) {
    grid-auto-rows: 310px !important;
  }

  body[data-page="step5"] #furnitureGrid > .furniture-card--vertical,
  body[data-page="step5"] #enterpriseFurnitureGrid > .furniture-card--vertical {
    height: 310px !important;
    min-height: 310px !important;
  }

  body[data-page="step5"] .furniture-card--vertical .furn-media {
    height: 242px !important;
  }
}

@media (max-width: 760px) {
  body[data-page="step5"] #furnitureGrid:has(.furniture-card--vertical),
  body[data-page="step5"] #enterpriseFurnitureGrid:has(.furniture-card--vertical) {
    grid-auto-rows: 300px !important;
  }

  body[data-page="step5"] #furnitureGrid > .furniture-card--vertical,
  body[data-page="step5"] #enterpriseFurnitureGrid > .furniture-card--vertical {
    height: 300px !important;
    min-height: 300px !important;
  }

body[data-page="step5"] .furniture-card--vertical .furn-media {
    height: 230px !important;
  }
}

/* ========== 2026-06-16 Home Premium Redesign ========== */
body[data-page="index"] {
  margin: 0;
  color: #16191f;
  background: #f5f1ea;
}

body[data-page="index"]::before,
body[data-page="index"]::after {
  content: none !important;
  display: none !important;
}

body[data-page="index"] .container--home {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  padding: 0 !important;
  overflow: hidden;
  background: #f5f1ea;
}

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

body[data-page="index"] .container--home > * {
  position: relative;
  z-index: auto;
}

body[data-page="index"] .home-topbar-v2 {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: none;
  min-height: 86px;
  margin: 0 !important;
  padding: 24px clamp(24px, 4.2vw, 64px) 18px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: linear-gradient(180deg, rgba(18, 15, 11, 0.46), rgba(18, 15, 11, 0));
  backdrop-filter: none;
}

body[data-page="index"] .home-topbar-v2 .brand {
  min-width: 0;
  gap: 12px;
  color: #fff;
}

body[data-page="index"] .home-topbar-v2 .brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
}

body[data-page="index"] .home-topbar-v2 .brand-title {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0;
}

body[data-page="index"] .home-topbar-v2 .brand-tagline {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.76rem;
}

body[data-page="index"] .home-nav {
  flex: 1;
  justify-content: flex-end;
  gap: clamp(18px, 2.4vw, 36px);
}

body[data-page="index"] .home-nav a {
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.82);
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: none;
}

body[data-page="index"] .home-nav a:hover,
body[data-page="index"] .home-nav a.is-active {
  color: #fff;
  background: transparent;
}

body[data-page="index"] .home-nav a.is-active::after {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  margin-top: 8px;
  background: #fff;
}

body[data-page="index"] .home-login-slot {
  flex: none;
  min-width: auto;
}

body[data-page="index"] .home-top-cta,
body[data-page="index"] .home-login-slot .home-top-cta {
  min-height: 44px;
  padding: 0 26px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  font-weight: 800;
}

body[data-page="index"] .home-top-cta:hover,
body[data-page="index"] .home-login-slot .home-top-cta:hover {
  color: #111827;
  background: #fff;
}

body[data-page="index"] .home-main-v2 {
  background: #f5f1ea;
}

body[data-page="index"] .home-hero-v2 {
  position: relative;
  min-height: clamp(720px, 88vh, 860px);
  padding: clamp(142px, 17vh, 176px) clamp(24px, 4.2vw, 64px) 34px;
  display: flex;
  align-items: flex-start;
  background:
    linear-gradient(90deg, rgba(13, 12, 10, 0.8) 0%, rgba(13, 12, 10, 0.58) 30%, rgba(13, 12, 10, 0.14) 58%, rgba(13, 12, 10, 0.02) 100%),
    linear-gradient(180deg, rgba(13, 12, 10, 0.08), rgba(13, 12, 10, 0.05)),
    url("hero/hero-2.webp?v=20260505a") center / cover no-repeat;
}

body[data-page="index"] .home-hero-v2__content {
  width: min(620px, 100%);
  color: #fff;
}

body[data-page="index"] .home-kicker {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.5;
}

body[data-page="index"] .home-hero-v2 h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(4.4rem, 8vw, 7.8rem);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: 0;
  text-shadow: 0 20px 46px rgba(0, 0, 0, 0.22);
}

body[data-page="index"] .home-hero-v2__lead {
  margin: 18px 0 0;
  color: #fff;
  font-size: clamp(1.9rem, 3.2vw, 3.4rem);
  font-weight: 850;
  line-height: 1.12;
  letter-spacing: 0;
}

body[data-page="index"] .home-hero-v2__copy {
  width: min(560px, 100%);
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.25vw, 1.16rem);
  line-height: 1.85;
}

body[data-page="index"] .home-hero-v2__facts {
  margin: clamp(28px, 4vh, 44px) 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 30px;
}

body[data-page="index"] .home-hero-v2__facts span {
  min-width: 126px;
  display: grid;
  gap: 6px;
}

body[data-page="index"] .home-hero-v2__facts strong {
  color: #fff;
  font-size: 0.98rem;
}

body[data-page="index"] .home-hero-v2__facts small {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.78rem;
  line-height: 1.4;
}

body[data-page="index"] .home-hero-v2__actions {
  margin-top: clamp(30px, 5vh, 54px);
  display: flex;
  align-items: center;
  gap: 22px;
}

body[data-page="index"] .home-primary-cta,
body[data-page="index"] .home-primary-cta.btn {
  min-width: 190px;
  min-height: 56px;
  padding: 0 34px;
  border: 0;
  border-radius: 999px;
  background: #1f6fff;
  color: #fff;
  box-shadow: 0 18px 46px rgba(31, 111, 255, 0.28);
  font-size: 1.04rem;
  font-weight: 850;
  text-decoration: none;
}

body[data-page="index"] .home-primary-cta:hover,
body[data-page="index"] .home-primary-cta.btn:hover {
  background: #0f5fe8;
  transform: translateY(-1px);
}

body[data-page="index"] .home-secondary-link {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.98rem;
  font-weight: 750;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
  padding-bottom: 4px;
}

body[data-page="index"] .home-secondary-link:hover {
  color: #fff;
  border-color: #fff;
}

body[data-page="index"] .home-service-rail {
  position: absolute;
  z-index: 5;
  left: clamp(24px, 4.2vw, 64px);
  right: clamp(24px, 4.2vw, 64px);
  bottom: 26px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 60px rgba(17, 24, 39, 0.18);
}

body[data-page="index"] .home-service-tile {
  min-width: 0;
  padding: 14px 16px 16px;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  column-gap: 16px;
  row-gap: 5px;
  color: #16191f;
  text-decoration: none;
  border-right: 1px solid #e8e0d5;
  background: transparent;
  transition: background 0.18s ease, transform 0.18s ease;
}

body[data-page="index"] .home-service-tile:last-child {
  border-right: 0;
}

body[data-page="index"] .home-service-tile:hover {
  background: #fff;
  transform: translateY(-1px);
}

body[data-page="index"] .home-service-tile img {
  grid-row: 1 / 4;
  width: 112px;
  height: 82px;
  display: block;
  object-fit: cover;
  border-radius: 6px;
}

body[data-page="index"] .home-service-tile span {
  align-self: end;
  color: #6d7482;
  font-size: 0.78rem;
  font-weight: 850;
}

body[data-page="index"] .home-service-tile strong {
  min-width: 0;
  color: #141820;
  font-size: 1.02rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body[data-page="index"] .home-service-tile small {
  color: #667085;
  font-size: 0.78rem;
  line-height: 1.4;
}

body[data-page="index"] .home-studio-v2 {
  width: min(1320px, calc(100% - 48px));
  margin: clamp(70px, 9vw, 118px) auto clamp(56px, 8vw, 92px);
}

body[data-page="index"] .home-section-head {
  width: min(720px, 100%);
  margin-bottom: 28px;
}

body[data-page="index"] .home-section-head p {
  margin: 0 0 10px;
  color: #1f6fff;
  font-size: 0.84rem;
  font-weight: 850;
}

body[data-page="index"] .home-section-head h2 {
  margin: 0;
  color: #141820;
  font-size: clamp(2rem, 3.3vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: 0;
}

body[data-page="index"] .home-studio-v2__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.72fr);
  gap: clamp(28px, 4vw, 58px);
  align-items: center;
}

body[data-page="index"] .home-studio-v2__media {
  min-height: 420px;
  overflow: hidden;
  border-radius: 8px;
  background: #ded8cf;
}

body[data-page="index"] .home-studio-v2__media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  display: block;
  object-fit: cover;
}

body[data-page="index"] .home-studio-v2__copy {
  padding: clamp(8px, 2vw, 22px) 0;
}

body[data-page="index"] .home-studio-v2__copy h3 {
  margin: 0 0 16px;
  color: #141820;
  font-size: clamp(1.45rem, 2vw, 2.08rem);
  line-height: 1.24;
}

body[data-page="index"] .home-studio-v2__copy p {
  margin: 0;
  color: #5a6372;
  font-size: 1rem;
  line-height: 1.85;
}

body[data-page="index"] .home-studio-v2__copy dl {
  margin: 30px 0 0;
  display: grid;
  gap: 18px;
}

body[data-page="index"] .home-studio-v2__copy dl div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid #ded6ca;
}

body[data-page="index"] .home-studio-v2__copy dt {
  color: #141820;
  font-weight: 850;
}

body[data-page="index"] .home-studio-v2__copy dd {
  margin: 0;
  color: #667085;
  line-height: 1.7;
}

body[data-page="index"] .home-footer-v2 {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto 28px;
  padding: 28px 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px 36px;
  align-items: start;
  color: #667085;
  border-top: 1px solid #ddd5ca;
  background: transparent;
}

body[data-page="index"] .home-footer-v2__brand {
  display: grid;
  gap: 8px;
}

body[data-page="index"] .home-footer-v2__brand strong {
  color: #141820;
  font-size: 1.05rem;
}

body[data-page="index"] .home-footer-v2__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
  font-size: 0.9rem;
}

body[data-page="index"] .home-footer-v2 a {
  color: #667085;
  text-decoration: none;
}

body[data-page="index"] .home-footer-v2 a:hover {
  color: #1f6fff;
}

body[data-page="index"] .footer--home .icp-footer,
body[data-page="index"] .home-footer-v2 .icp-footer {
  grid-column: 1 / -1;
  margin-top: 4px;
  padding: 0 0 4px;
  color: #8a92a0;
  text-align: left;
  background: transparent;
  border: 0;
}

body[data-page="index"] .home-footer-v2 .icp-footer a {
  color: inherit;
}

@media (max-width: 1120px) {
  body[data-page="index"] .home-service-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="index"] .home-service-tile:nth-child(2) {
    border-right: 0;
  }

  body[data-page="index"] .home-service-tile:nth-child(-n + 2) {
    border-bottom: 1px solid #e8e0d5;
  }

  body[data-page="index"] .home-studio-v2__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  body[data-page="index"] .home-topbar-v2 {
    padding: 18px 18px 10px !important;
    gap: 12px;
  }

  body[data-page="index"] .home-nav {
    display: none;
  }

  body[data-page="index"] .home-topbar-v2 .brand-logo {
    width: 38px;
    height: 38px;
  }

  body[data-page="index"] .home-topbar-v2 .brand-title {
    font-size: 1.02rem;
  }

  body[data-page="index"] .home-topbar-v2 .brand-tagline {
    display: none;
  }

  body[data-page="index"] .home-login-slot .home-top-cta {
    min-height: 38px;
    padding: 0 18px;
  }

  body[data-page="index"] .home-hero-v2 {
    min-height: auto;
    padding: 116px 18px 22px;
    display: block;
    background-position: 60% center;
  }

  body[data-page="index"] .home-hero-v2 h1 {
    font-size: clamp(3.35rem, 15vw, 5.4rem);
  }

  body[data-page="index"] .home-hero-v2__lead {
    font-size: clamp(1.56rem, 8vw, 2.4rem);
  }

  body[data-page="index"] .home-hero-v2__facts {
    gap: 14px 22px;
  }

  body[data-page="index"] .home-hero-v2__actions {
    flex-wrap: wrap;
  }

  body[data-page="index"] .home-service-rail {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 44px;
    grid-template-columns: 1fr;
  }

  body[data-page="index"] .home-service-tile,
  body[data-page="index"] .home-service-tile:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid #e8e0d5;
  }

  body[data-page="index"] .home-service-tile:last-child {
    border-bottom: 0;
  }

  body[data-page="index"] .home-studio-v2 {
    width: calc(100% - 36px);
    margin-top: 54px;
  }

  body[data-page="index"] .home-studio-v2__media,
  body[data-page="index"] .home-studio-v2__media img {
    min-height: 280px;
  }

  body[data-page="index"] .home-studio-v2__copy dl div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  body[data-page="index"] .home-footer-v2 {
    width: calc(100% - 36px);
    grid-template-columns: 1fr;
  }

  body[data-page="index"] .home-footer-v2__links {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  body[data-page="index"] .home-service-tile {
    grid-template-columns: 96px minmax(0, 1fr);
    padding: 12px;
  }

  body[data-page="index"] .home-service-tile img {
    width: 96px;
    height: 72px;
  }

  body[data-page="index"] .home-service-tile strong {
    white-space: normal;
  }
}

/* ========== 2026-06-16 Home Option 1 Exact Restore ========== */
body[data-page="index"] {
  margin: 0;
  color: #111827;
  background: #ffffff;
  overflow-x: hidden;
}

body[data-page="index"]::before,
body[data-page="index"]::after {
  content: none !important;
  display: none !important;
}

body[data-page="index"] .home-mock-v3 {
  width: 100%;
  min-height: 100vh;
  max-width: none;
  margin: 0;
  padding: 0 !important;
  overflow: hidden;
  color: #111827;
  background: #ffffff;
}

body[data-page="index"] .home-mock-v3 *,
body[data-page="index"] .home-mock-v3 *::before,
body[data-page="index"] .home-mock-v3 *::after {
  box-sizing: border-box;
}

body[data-page="index"] .home-mock-nav {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 104px;
  padding: 30px 56px 20px;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(18, 15, 12, 0.5), rgba(18, 15, 12, 0));
}

body[data-page="index"] .home-mock-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: 230px;
  color: #ffffff;
  text-decoration: none;
}

body[data-page="index"] .home-mock-brand img {
  display: block;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

body[data-page="index"] .home-mock-brand span {
  display: grid;
  gap: 2px;
}

body[data-page="index"] .home-mock-brand strong {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.15;
}

body[data-page="index"] .home-mock-brand small {
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.76);
}

body[data-page="index"] .home-mock-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 54px;
  margin-left: auto;
  margin-right: 44px;
}

body[data-page="index"] .home-mock-menu a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.18s ease;
}

body[data-page="index"] .home-mock-menu a:hover,
body[data-page="index"] .home-mock-menu a.is-active {
  color: #ffffff;
}

body[data-page="index"] .home-mock-menu a.is-active::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
  content: "";
}

body[data-page="index"] .home-mock-login {
  min-width: 88px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  cursor: pointer;
}

body[data-page="index"] .home-mock-login:hover {
  background: rgba(255, 255, 255, 0.2);
}

body[data-page="index"] .home-mock-hero {
  position: relative;
  min-height: 650px;
  padding: 172px 56px 76px;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(18, 15, 12, 0.92) 0%, rgba(18, 15, 12, 0.8) 28%, rgba(18, 15, 12, 0.42) 50%, rgba(18, 15, 12, 0.04) 76%, rgba(18, 15, 12, 0) 100%),
    url("home-v2/home-hero-user.jpg?v=20260617b") center center / cover no-repeat;
}

body[data-page="index"] .home-mock-hero__content {
  width: min(590px, 100%);
  padding-left: 4px;
}

body[data-page="index"] .home-mock-hero h1 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: clamp(3.9rem, 5.2vw, 5.05rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: 0;
  text-shadow: 0 20px 46px rgba(0, 0, 0, 0.28);
}

body[data-page="index"] .home-mock-hero__lead {
  margin: 0 0 24px;
  color: #ffffff;
  font-size: clamp(2rem, 3vw, 2.58rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
}

body[data-page="index"] .home-mock-hero__copy {
  width: min(510px, 100%);
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.78;
}

body[data-page="index"] .home-mock-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 210px));
  gap: 15px 26px;
  width: min(460px, 100%);
  margin-top: 34px;
}

body[data-page="index"] .home-mock-features span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  width: 100%;
  color: #ffffff;
}

body[data-page="index"] .home-mock-features img {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

body[data-page="index"] .home-mock-features strong {
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

body[data-page="index"] .home-mock-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 158px;
  height: 52px;
  margin-top: 38px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  font-size: 1.04rem;
  font-weight: 800;
  text-decoration: none;
  background: #1677ff;
  box-shadow: 0 20px 46px rgba(22, 119, 255, 0.35);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

body[data-page="index"] .home-mock-cta:hover {
  color: #ffffff;
  background: #0f6be8;
  box-shadow: 0 24px 54px rgba(22, 119, 255, 0.42);
  transform: translateY(-2px);
}

body[data-page="index"] .home-mock-scenarios {
  width: min(1380px, calc(100% - 96px));
  margin: 0 auto;
  padding: 34px 0 52px;
  background: #ffffff;
}

body[data-page="index"] .home-mock-section-title {
  margin: 0 auto 29px;
  text-align: center;
}

body[data-page="index"] .home-mock-section-title h2 {
  margin: 0 0 6px;
  color: #101827;
  font-size: clamp(1.75rem, 2.5vw, 2.18rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: 0;
}

body[data-page="index"] .home-mock-section-title p {
  margin: 0;
  color: #6b7280;
  font-size: 0.94rem;
  line-height: 1.5;
}

body[data-page="index"] .home-mock-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

body[data-page="index"] .home-mock-card {
  display: block;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #edf0f3;
  border-radius: 8px;
  color: #111827;
  text-decoration: none;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

body[data-page="index"] .home-mock-card:hover {
  border-color: rgba(22, 119, 255, 0.22);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  transform: translateY(-4px);
}

body[data-page="index"] .home-mock-card img {
  display: block;
  width: 100%;
  height: 194px;
  object-fit: cover;
  background: #eef2f4;
}

body[data-page="index"] .home-mock-card span {
  display: block;
  margin: 14px 20px 6px;
  color: #1677ff;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
}

body[data-page="index"] .home-mock-card h3 {
  margin: 0 20px 6px;
  color: #101827;
  font-size: 1.06rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0;
}

body[data-page="index"] .home-mock-card p {
  min-height: 0;
  margin: 0 20px 18px;
  color: #697386;
  font-size: 0.84rem;
  line-height: 1.5;
}

body[data-page="index"] .home-mock-footer {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 24px;
  align-items: center;
  width: min(1380px, calc(100% - 96px));
  margin: 0 auto;
  padding: 30px 0 36px;
  border-top: 1px solid #eef1f4;
  color: #667085;
  background: #ffffff;
}

body[data-page="index"] .home-mock-footer__brand {
  display: grid;
  gap: 7px;
}

body[data-page="index"] .home-mock-footer__brand strong {
  color: #111827;
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.2;
}

body[data-page="index"] .home-mock-footer__brand span,
body[data-page="index"] .home-mock-footer__links,
body[data-page="index"] .home-mock-footer .icp-footer {
  font-size: 0.9rem;
  line-height: 1.65;
}

body[data-page="index"] .home-mock-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
}

body[data-page="index"] .home-mock-footer a {
  color: #667085;
  text-decoration: none;
}

body[data-page="index"] .home-mock-footer a:hover {
  color: #1677ff;
}

body[data-page="index"] .home-mock-footer .icp-footer {
  margin: 0;
  padding: 0;
  text-align: right;
  background: transparent;
}

@media (max-width: 1160px) {
  body[data-page="index"] .home-mock-menu {
    gap: 28px;
    margin-right: 24px;
  }

  body[data-page="index"] .home-mock-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="index"] .home-mock-footer {
    grid-template-columns: 1fr;
  }

  body[data-page="index"] .home-mock-footer__links,
  body[data-page="index"] .home-mock-footer .icp-footer {
    justify-content: flex-start;
    text-align: left;
  }
}

@media (max-width: 760px) {
  body[data-page="index"] .home-mock-nav {
    height: 84px;
    padding: 18px 20px;
  }

  body[data-page="index"] .home-mock-brand {
    min-width: 0;
  }

  body[data-page="index"] .home-mock-brand img {
    width: 44px;
    height: 44px;
  }

  body[data-page="index"] .home-mock-brand strong {
    font-size: 1.14rem;
  }

  body[data-page="index"] .home-mock-brand small {
    display: none;
  }

  body[data-page="index"] .home-mock-menu {
    display: none;
  }

  body[data-page="index"] .home-mock-login {
    min-width: 74px;
    height: 38px;
    font-size: 0.9rem;
  }

  body[data-page="index"] .home-mock-hero {
    min-height: 610px;
    padding: 126px 22px 44px;
    background:
      linear-gradient(180deg, rgba(18, 15, 12, 0.86) 0%, rgba(18, 15, 12, 0.66) 52%, rgba(18, 15, 12, 0.28) 100%),
      url("home-v2/home-hero-user.jpg?v=20260617b") 62% center / cover no-repeat;
  }

  body[data-page="index"] .home-mock-hero h1 {
    font-size: clamp(2.75rem, 14vw, 4rem);
  }

  body[data-page="index"] .home-mock-hero__lead {
    font-size: clamp(1.48rem, 7vw, 2.08rem);
  }

  body[data-page="index"] .home-mock-hero__copy {
    width: min(430px, 100%);
    font-size: 0.98rem;
    line-height: 1.75;
  }

  body[data-page="index"] .home-mock-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
    width: min(410px, 100%);
    margin-top: 30px;
  }

  body[data-page="index"] .home-mock-features span {
    min-width: 0;
  }

  body[data-page="index"] .home-mock-cta {
    width: 154px;
    min-width: 154px;
    height: 50px;
    margin-top: 34px;
  }

  body[data-page="index"] .home-mock-scenarios,
  body[data-page="index"] .home-mock-footer {
    width: calc(100% - 36px);
  }

  body[data-page="index"] .home-mock-section-title h2 {
    font-size: 2rem;
  }

  body[data-page="index"] .home-mock-card-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  body[data-page="index"] .home-mock-card img {
    height: 212px;
  }
}

@media (max-width: 420px) {
  body[data-page="index"] .home-mock-hero {
    min-height: 628px;
  }

  body[data-page="index"] .home-mock-features span {
    min-width: 0;
  }

  body[data-page="index"] .home-mock-features strong {
    font-size: 0.9rem;
    white-space: normal;
  }
}

/* ========== 2026-06-30 Home Landing Reference Build ========== */
body[data-page="index"] {
  color: #111720;
  background: #f8fafc;
}

body[data-page="index"] .home-landing {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 0 !important;
  overflow: hidden;
  color: #111720;
  font-family:
    "PingFang SC",
    "Microsoft YaHei",
    "Noto Sans SC",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.88) 32%, rgba(241, 245, 249, 0.76) 68%, rgba(232, 237, 244, 0.92) 100%),
    linear-gradient(180deg, #ffffff 0%, #f7f9fc 62%, #edf2f7 100%);
}

body[data-page="index"] .home-landing *,
body[data-page="index"] .home-landing *::before,
body[data-page="index"] .home-landing *::after {
  box-sizing: border-box;
}

body[data-page="index"] .landing-nav {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  width: 100%;
  max-width: 1540px;
  height: 98px;
  margin: 0 auto;
  padding: 26px 58px 18px;
}

body[data-page="index"] .landing-brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 12px;
  min-width: 0;
  color: #05070a;
  text-decoration: none;
}

body[data-page="index"] .landing-brand-mark {
  display: block;
  width: 48px;
  height: 48px;
  border: 0;
  object-fit: contain;
}

body[data-page="index"] .landing-brand-mark::before {
  content: "";
  display: none;
}

body[data-page="index"] .landing-brand-mark::after {
  content: "";
  display: none;
}

body[data-page="index"] .landing-brand strong {
  color: #05070a;
  font-size: 1.64rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

body[data-page="index"] .landing-menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(44px, 5.5vw, 84px);
}

body[data-page="index"] .landing-menu a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: #161b22;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition:
    color 0.18s ease,
    transform 0.18s ease;
}

body[data-page="index"] .landing-menu a:hover {
  color: #000000;
  transform: translateY(-1px);
}

body[data-page="index"] .landing-menu a.is-active::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 3px;
  border-radius: 999px;
  background: #05070a;
  content: "";
}

body[data-page="index"] .landing-login {
  justify-self: end;
  min-width: 136px;
  height: 46px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  background: #030406;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 12px 24px rgba(3, 4, 6, 0.16);
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

body[data-page="index"] .landing-login:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 16px 28px rgba(3, 4, 6, 0.2);
}

body[data-page="index"] .landing-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 872px;
  padding: 20px 56px 42px;
  overflow: hidden;
}

body[data-page="index"] .landing-hero::before {
  position: absolute;
  right: -12vw;
  bottom: 34px;
  left: -12vw;
  z-index: -2;
  height: 312px;
  border-radius: 50% 50% 0 0;
  background:
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.96) 0%, rgba(238, 242, 247, 0.74) 42%, rgba(211, 220, 232, 0.58) 74%, rgba(211, 220, 232, 0) 100%);
  content: "";
  filter: blur(1px);
}

body[data-page="index"] .landing-hero::after {
  position: absolute;
  right: 8vw;
  bottom: 170px;
  left: 8vw;
  z-index: -1;
  height: 76px;
  border-radius: 999px;
  background:
    radial-gradient(ellipse at center, rgba(47, 58, 72, 0.26) 0%, rgba(77, 91, 109, 0.12) 42%, rgba(77, 91, 109, 0) 76%);
  content: "";
  filter: blur(18px);
}

body[data-page="index"] .landing-copy {
  position: relative;
  z-index: 3;
  width: min(900px, 100%);
  text-align: center;
}

body[data-page="index"] .landing-copy h1 {
  margin: 0;
  color: #131820;
  font-size: clamp(4.2rem, 6.2vw, 6.15rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0;
  text-shadow: 0 14px 34px rgba(13, 18, 25, 0.08);
}

body[data-page="index"] .landing-copy p {
  margin: 13px 0 0;
  color: #606873;
  font-size: clamp(1.12rem, 1.7vw, 1.55rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0;
}

body[data-page="index"] .landing-action-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  margin-top: 18px;
}

body[data-page="index"] .landing-primary {
  --landing-button-width: 270px;
  --landing-button-height: 56px;
  --landing-button-panel: 42%;
  --landing-button-text: #f5fbff;
  isolation: isolate;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  width: min(var(--landing-button-width), calc(100vw - 56px));
  height: var(--landing-button-height);
  padding: 0 30px 0 52px;
  overflow: hidden;
  border: 1px solid rgba(143, 171, 188, 0.64);
  border-radius: 999px;
  color: var(--landing-button-text);
  line-height: 1;
  text-decoration: none;
  background:
    radial-gradient(circle at 31% 5%, rgba(124, 154, 167, 0.17), transparent 38%),
    linear-gradient(180deg, #111923 0%, #061019 55%, #02070c 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    inset 0 -13px 20px rgba(0, 0, 0, 0.34),
    0 11px 22px rgba(25, 47, 62, 0.14),
    0 0 18px rgba(121, 201, 255, 0.1);
  transform: translateZ(0);
  transition:
    border-color 0.32s ease,
    box-shadow 0.32s ease,
    background 0.32s ease,
    transform 0.32s ease;
}

body[data-page="index"] .landing-primary::before {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: -1;
  width: var(--landing-button-panel);
  border-radius: inherit;
  background:
    radial-gradient(circle at 58% 50%, rgba(122, 141, 150, 0.3), transparent 62%),
    linear-gradient(90deg, rgba(50, 65, 75, 0.68), rgba(64, 79, 88, 0.4) 72%, rgba(86, 100, 108, 0.06));
  clip-path: polygon(0 0, 100% 0, 87% 100%, 0 100%);
  content: "";
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    12px 0 22px rgba(69, 88, 99, 0.14);
  pointer-events: none;
  transform: translateX(0);
  transition:
    width 0.36s ease,
    background 0.36s ease,
    box-shadow 0.36s ease,
    transform 0.36s ease;
}

body[data-page="index"] .landing-primary::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1px solid rgba(225, 246, 255, 0.12);
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), transparent 28%, transparent 72%, rgba(91, 154, 190, 0.12)),
    linear-gradient(105deg, transparent 0%, transparent 42%, rgba(255, 255, 255, 0.26) 50%, transparent 58%, transparent 100%),
    radial-gradient(circle at 28% 50%, rgba(191, 235, 255, 0.2), transparent 34%);
  background-position: 0 0, -80% 0, 0 0;
  background-size: 100% 100%, 210% 100%, 160% 140%;
  content: "";
  opacity: 0.78;
  pointer-events: none;
  transition:
    opacity 0.32s ease,
    background-position 0.72s cubic-bezier(0.16, 1, 0.3, 1);
}

body[data-page="index"] .landing-primary__icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border: 2px solid rgba(198, 221, 231, 0.22);
  border-radius: 13px;
  color: #ffffff;
  background: rgba(110, 129, 141, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -8px 12px rgba(0, 0, 0, 0.16),
    0 0 14px rgba(190, 237, 255, 0.1);
  font-size: 1.12rem;
  transition:
    border-color 0.36s ease,
    box-shadow 0.36s ease,
    transform 0.36s cubic-bezier(0.16, 1, 0.3, 1);
}

body[data-page="index"] .landing-primary__icon::after {
  position: absolute;
  inset: -7px;
  border-radius: 17px;
  background: radial-gradient(circle, rgba(205, 242, 255, 0.28) 0%, rgba(205, 242, 255, 0.1) 38%, transparent 68%);
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: scale(0.72);
  transition:
    opacity 0.36s ease,
    transform 0.36s cubic-bezier(0.16, 1, 0.3, 1);
}

body[data-page="index"] .landing-primary__text-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  overflow: hidden;
  min-width: 96px;
  height: 1.28em;
  color: var(--landing-button-text);
  font-size: 1.36rem;
  font-weight: 950;
  line-height: 1;
  text-shadow:
    0 0 6px rgba(185, 231, 255, 0.34),
    0 0 16px rgba(112, 198, 255, 0.16);
  white-space: nowrap;
}

body[data-page="index"] .landing-primary__text {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  gap: 1px;
  transition:
    opacity 0.34s ease,
    filter 0.34s ease,
    transform 0.34s cubic-bezier(0.16, 1, 0.3, 1);
}

body[data-page="index"] .landing-primary__letter {
  display: inline-block;
  transform: translateY(0);
  transition:
    opacity 0.34s ease,
    text-shadow 0.34s ease,
    transform 0.34s cubic-bezier(0.16, 1, 0.3, 1);
}

body[data-page="index"] .landing-primary__letter:nth-child(1) {
  transition-delay: 0s;
}

body[data-page="index"] .landing-primary__letter:nth-child(2) {
  transition-delay: 0.03s;
}

body[data-page="index"] .landing-primary__letter:nth-child(3) {
  transition-delay: 0.06s;
}

body[data-page="index"] .landing-primary__letter:nth-child(4) {
  transition-delay: 0.09s;
}

body[data-page="index"] .landing-primary:hover {
  color: #ffffff;
  border-color: rgba(195, 226, 241, 0.86);
  transform: translateY(-1px);
  background:
    radial-gradient(circle at 34% 3%, rgba(156, 190, 204, 0.22), transparent 42%),
    linear-gradient(180deg, #13212d 0%, #07131d 55%, #02070c 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -14px 22px rgba(0, 0, 0, 0.32),
    0 13px 26px rgba(25, 47, 62, 0.17),
    0 0 24px rgba(125, 215, 255, 0.22);
}

body[data-page="index"] .landing-primary:hover::before {
  width: 43.5%;
  background:
    radial-gradient(circle at 60% 50%, rgba(153, 174, 184, 0.34), transparent 62%),
    linear-gradient(90deg, rgba(58, 75, 86, 0.74), rgba(76, 92, 101, 0.45) 72%, rgba(113, 134, 144, 0.08));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    16px 0 26px rgba(94, 119, 132, 0.2);
  transform: translateX(2px);
}

body[data-page="index"] .landing-primary:hover::after {
  opacity: 1;
  background-position: 0 0, 100% 0, 12% 0;
  animation: landing-button-sheen 1.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

body[data-page="index"] .landing-primary:hover .landing-primary__icon,
body[data-page="index"] .landing-primary:focus-visible .landing-primary__icon {
  border-color: rgba(221, 243, 255, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -8px 12px rgba(0, 0, 0, 0.14),
    0 0 18px rgba(193, 236, 255, 0.2);
  transform: scale(1.05) rotate(-4deg);
}

body[data-page="index"] .landing-primary:hover .landing-primary__icon::after,
body[data-page="index"] .landing-primary:focus-visible .landing-primary__icon::after {
  opacity: 0.86;
  transform: scale(1.04);
}

body[data-page="index"] .landing-primary:hover .landing-primary__letter,
body[data-page="index"] .landing-primary:focus-visible .landing-primary__letter {
  text-shadow:
    0 0 7px rgba(230, 250, 255, 0.62),
    0 0 18px rgba(122, 213, 255, 0.34);
}

body[data-page="index"] .landing-primary:active {
  transform: translateY(0) scale(0.985);
}

body[data-page="index"] .landing-primary:focus-visible {
  outline: 3px solid rgba(111, 186, 245, 0.4);
  outline-offset: 5px;
}

@keyframes landing-button-sheen {
  0% {
    background-position: 0 0, -80% 0, 0 0;
  }
  56% {
    background-position: 0 0, 104% 0, 10% 0;
  }
  100% {
    background-position: 0 0, 118% 0, 12% 0;
  }
}

body[data-page="index"] .landing-ai-state {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #7a8491;
  font-size: 0.98rem;
  font-weight: 600;
  white-space: nowrap;
}

body[data-page="index"] .landing-ai-state--stage {
  position: absolute;
  top: 44%;
  left: 50%;
  z-index: 5;
  gap: 9px;
  color: rgba(255, 255, 255, 0.96);
  font-size: 1.02rem;
  font-weight: 850;
  line-height: 1;
  text-shadow:
    0 1px 8px rgba(39, 110, 154, 0.5),
    0 0 18px rgba(192, 239, 255, 0.4);
  transform: translate(-50%, -50%);
}

body[data-page="index"] .landing-ai-spinner {
  width: 22px;
  height: 22px;
  border: 3px solid rgba(127, 168, 232, 0.26);
  border-top-color: #8cb9ff;
  border-radius: 50%;
  animation: landing-spin 1.1s linear infinite;
}

body[data-page="index"] .landing-ai-state--stage .landing-ai-spinner {
  width: 20px;
  height: 20px;
  border-color: rgba(235, 250, 255, 0.52);
  border-top-color: #ffffff;
  box-shadow: 0 0 16px rgba(161, 230, 255, 0.42);
}

@keyframes landing-spin {
  to {
    transform: rotate(360deg);
  }
}

body[data-page="index"] .landing-stage {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(150px, 190px) minmax(760px, 960px) minmax(150px, 190px);
  align-items: center;
  gap: 0;
  width: min(1364px, 100%);
  margin-top: 31px;
}

body[data-page="index"] .landing-compare-card {
  position: relative;
  width: min(960px, 100%);
  aspect-ratio: 2.45;
  overflow: hidden;
  border: 1px solid rgba(190, 201, 213, 0.76);
  border-radius: 19px;
  background: #e8eef4;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.88),
    0 26px 60px rgba(58, 71, 88, 0.2),
    0 0 34px rgba(180, 222, 255, 0.42);
}

body[data-page="index"] .landing-compare-card::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.42),
    inset 0 -10px 22px rgba(255, 255, 255, 0.28);
  content: "";
  pointer-events: none;
}

body[data-page="index"] .landing-compare-card::after {
  position: absolute;
  right: 0;
  bottom: -22px;
  left: 0;
  z-index: 1;
  height: 44px;
  background:
    radial-gradient(ellipse at center, rgba(169, 215, 255, 0.82) 0%, rgba(169, 215, 255, 0.34) 34%, rgba(169, 215, 255, 0) 72%);
  content: "";
  filter: blur(10px);
  pointer-events: none;
}

body[data-page="index"] .landing-compare-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body[data-page="index"] .landing-pixel-card {
  position: absolute;
  top: -1px;
  bottom: -1px;
  left: 35.25%;
  z-index: 3;
  width: 31.6%;
  overflow: hidden;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.92;
  background:
    linear-gradient(90deg, rgba(107, 195, 233, 0.06) 0%, rgba(139, 219, 255, 0.32) 48%, rgba(255, 255, 255, 0.08) 100%),
    radial-gradient(circle at 50% 45%, rgba(152, 229, 255, 0.34) 0%, rgba(96, 178, 222, 0.16) 38%, rgba(77, 142, 178, 0) 76%);
  box-shadow:
    inset 1px 0 0 rgba(217, 248, 255, 0.82),
    inset -1px 0 0 rgba(217, 248, 255, 0.72),
    0 0 30px rgba(125, 213, 255, 0.28);
}

body[data-page="index"] .landing-pixel-card::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(227, 250, 255, 0.18) 1px, transparent 1px),
    linear-gradient(0deg, rgba(227, 250, 255, 0.14) 1px, transparent 1px);
  background-size: 34px 34px;
  content: "";
  opacity: 0.46;
  transform: translateZ(0);
}

body[data-page="index"] .landing-pixel-card::after {
  position: absolute;
  top: -9%;
  bottom: -9%;
  left: -46%;
  z-index: 4;
  width: 42%;
  background:
    linear-gradient(90deg, transparent 0%, rgba(198, 244, 255, 0.2) 34%, rgba(246, 254, 255, 0.82) 50%, rgba(136, 226, 255, 0.2) 68%, transparent 100%);
  content: "";
  filter: blur(3px);
  transform: skewX(-9deg);
  animation: landing-pixel-sweep 5.8s cubic-bezier(0.42, 0, 0.2, 1) infinite;
}

body[data-page="index"] .landing-pixel-card__glow {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(circle at 48% 46%, rgba(197, 246, 255, 0.34) 0%, rgba(117, 213, 255, 0.16) 34%, transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, transparent 22%, rgba(119, 213, 255, 0.18) 72%, transparent 100%);
  animation: landing-pixel-glow 4.8s ease-in-out infinite alternate;
}

body[data-page="index"] .landing-pixel-card__grid {
  --pixel-cols: 24;
  --pixel-rows: 18;
  position: absolute;
  inset: 22px 18px;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(var(--pixel-cols), minmax(0, 1fr));
  grid-template-rows: repeat(var(--pixel-rows), minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  opacity: 0;
  transition: opacity 0.36s ease;
}

body[data-page="index"] .landing-pixel-card.is-ready .landing-pixel-card__grid {
  opacity: 1;
}

body[data-page="index"] .landing-pixel-card__pixel {
  width: clamp(3px, 0.42vw, 6px);
  height: clamp(3px, 0.42vw, 6px);
  border-radius: 2px;
  opacity: var(--pixel-opacity, 0.36);
  background: rgba(229, 252, 255, 0.9);
  box-shadow:
    0 0 8px rgba(160, 232, 255, 0.72),
    0 0 1px rgba(255, 255, 255, 0.95);
  transform: scale(var(--pixel-scale, 1));
  animation: landing-pixel-flicker 4.9s ease-in-out infinite;
  animation-delay: var(--pixel-delay, 0s);
  will-change: opacity, transform;
}

body[data-page="index"] .landing-compare-card:hover .landing-pixel-card__pixel {
  animation-duration: 3.2s;
}

@keyframes landing-pixel-sweep {
  0% {
    transform: translateX(0) skewX(-9deg);
    opacity: 0;
  }

  12%,
  68% {
    opacity: 1;
  }

  84%,
  100% {
    transform: translateX(340%) skewX(-9deg);
    opacity: 0;
  }
}

@keyframes landing-pixel-glow {
  from {
    opacity: 0.58;
    transform: scale(0.985);
  }

  to {
    opacity: 0.88;
    transform: scale(1.02);
  }
}

@keyframes landing-pixel-flicker {
  0%,
  100% {
    opacity: var(--pixel-opacity, 0.34);
    transform: scale(var(--pixel-scale, 1));
  }

  34% {
    opacity: 0.1;
    transform: scale(0.58);
  }

  52% {
    opacity: var(--pixel-lit-opacity, 0.82);
    transform: scale(1.42);
  }

  70% {
    opacity: 0.22;
    transform: scale(0.76);
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="index"] .landing-pixel-card::after,
  body[data-page="index"] .landing-pixel-card__glow,
  body[data-page="index"] .landing-pixel-card__pixel {
    animation: none;
  }

  body[data-page="index"] .landing-pixel-card__pixel {
    opacity: var(--pixel-opacity, 0.36);
  }
}

body[data-page="index"] .landing-side-note {
  position: relative;
  display: grid;
  gap: 9px;
  color: #5d6876;
}

body[data-page="index"] .landing-side-note::after {
  position: absolute;
  top: 18px;
  width: 100px;
  height: 1px;
  background: #929eab;
  content: "";
}

body[data-page="index"] .landing-side-note::before {
  position: absolute;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #778391;
  content: "";
}

body[data-page="index"] .landing-side-note--left {
  justify-self: end;
  padding-right: 62px;
  text-align: left;
}

body[data-page="index"] .landing-side-note--left::after {
  right: -44px;
}

body[data-page="index"] .landing-side-note--left::before {
  right: 54px;
}

body[data-page="index"] .landing-side-note--right {
  justify-self: start;
  padding-left: 66px;
  text-align: left;
}

body[data-page="index"] .landing-side-note--right::after {
  left: -44px;
}

body[data-page="index"] .landing-side-note--right::before {
  left: 52px;
}

body[data-page="index"] .landing-side-note strong {
  color: #596575;
  font-size: 1.26rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

body[data-page="index"] .landing-side-note span {
  color: #7b8591;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
}

body[data-page="index"] .landing-flow {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr) 42px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  width: min(1168px, 88vw);
  min-height: 116px;
  margin-top: 76px;
  padding: 20px 50px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 24px 62px rgba(71, 84, 103, 0.13);
  backdrop-filter: blur(18px);
}

body[data-page="index"] .landing-flow-step {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  min-width: 0;
  color: #111720;
  text-decoration: none;
}

body[data-page="index"] .landing-flow-step:hover .landing-flow-icon {
  color: #047c6f;
  transform: translateY(-2px);
}

body[data-page="index"] .landing-flow-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  border: 1px solid rgba(228, 233, 239, 0.92);
  border-radius: 50%;
  color: #05070a;
  font-size: 2rem;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(45, 55, 72, 0.08);
  transition:
    color 0.18s ease,
    transform 0.18s ease;
}

body[data-page="index"] .landing-flow-step span:last-child {
  display: grid;
  gap: 8px;
  min-width: 0;
}

body[data-page="index"] .landing-flow-step strong {
  color: #111720;
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1.1;
}

body[data-page="index"] .landing-flow-step small {
  color: #6f7986;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
}

body[data-page="index"] .landing-flow-arrow {
  justify-self: center;
  color: #6f7986;
  font-size: 1.75rem;
}

body[data-page="index"] .home-landing .home-mock-scenarios {
  padding-top: 58px;
}

body[data-page="index"] .home-feature-intro {
  width: min(1952px, calc(100% - 96px));
  margin: 0 auto;
  padding: 28px 0 54px;
  color: #1c2430;
}

body[data-page="index"] .home-feature-head {
  margin: 0 auto 30px;
  text-align: center;
}

body[data-page="index"] .home-feature-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 22px;
  border-radius: 999px;
  color: #778946;
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1;
  background: rgba(128, 148, 79, 0.12);
}

body[data-page="index"] .home-feature-kicker i {
  font-size: 1.12rem;
}

body[data-page="index"] .home-feature-head h2 {
  margin: 19px 0 10px;
  color: #1b222d;
  font-size: clamp(2.7rem, 3.65vw, 4.45rem);
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: 0;
}

body[data-page="index"] .home-feature-head p {
  max-width: 880px;
  margin: 0 auto;
  color: #66707f;
  font-size: clamp(1rem, 1.35vw, 1.24rem);
  font-weight: 500;
  line-height: 1.7;
}

body[data-page="index"] .home-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

body[data-page="index"] .home-feature-card {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
  gap: 18px;
  min-height: 276px;
  padding: 19px 18px;
  overflow: hidden;
  border: 1px solid rgba(215, 224, 235, 0.95);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 14px 36px rgba(47, 65, 88, 0.05);
}

body[data-page="index"] .home-feature-copy {
  display: grid;
  align-content: start;
  min-width: 0;
}

body[data-page="index"] .home-feature-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  margin-bottom: 15px;
}

body[data-page="index"] .home-feature-title span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 30px;
  flex: 0 0 36px;
  border-radius: 10px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 950;
  line-height: 1;
  background: #839853;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

body[data-page="index"] .home-feature-title h3 {
  margin: 0;
  color: #202733;
  font-size: 1.22rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: nowrap;
}

body[data-page="index"] .home-feature-copy ul {
  display: grid;
  gap: 15px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body[data-page="index"] .home-feature-copy li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  color: #6d7683;
  font-size: 0.98rem;
  font-weight: 760;
  line-height: 1.25;
  white-space: nowrap;
}

body[data-page="index"] .home-feature-copy li::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  align-self: center;
  justify-self: center;
  border: 1.5px solid #9bae79;
  border-radius: 50%;
  color: #789057;
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  content: "\2713";
}

body[data-page="index"] .home-feature-visual {
  display: grid;
  align-content: center;
  min-width: 0;
}

body[data-page="index"] .home-feature-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1.04fr);
  align-items: center;
  gap: 12px;
}

body[data-page="index"] .home-feature-pair > i,
body[data-page="index"] .home-feature-control-row > i {
  justify-self: center;
  color: #6fa5f0;
  font-size: 1.85rem;
  filter: drop-shadow(0 6px 10px rgba(96, 153, 232, 0.28));
}

body[data-page="index"] .home-feature-pair img {
  display: block;
  width: 100%;
  height: 152px;
  object-fit: cover;
  border: 1px solid rgba(207, 216, 226, 0.9);
  border-radius: 9px;
  background: #eef2f6;
  box-shadow: 0 10px 20px rgba(40, 54, 76, 0.09);
}

body[data-page="index"] .home-feature-visual--floorplan .home-feature-pair img {
  object-fit: contain;
  padding: 6px;
  background: #f8fafc;
}

body[data-page="index"] .home-feature-control-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 34px minmax(200px, 1.18fr);
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

body[data-page="index"] .home-feature-upload {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 13px;
  border: 1px solid rgba(218, 226, 236, 0.95);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.86);
}

body[data-page="index"] .home-feature-upload i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  color: #5b93eb;
  font-size: 1.25rem;
  background: rgba(94, 149, 234, 0.12);
}

body[data-page="index"] .home-feature-upload span,
body[data-page="index"] .home-style-strip {
  min-width: 0;
}

body[data-page="index"] .home-feature-upload strong,
body[data-page="index"] .home-style-strip span {
  display: block;
  color: #4a5565;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

body[data-page="index"] .home-feature-upload small {
  display: block;
  margin-top: 4px;
  color: #8a94a3;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

body[data-page="index"] .home-style-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 8px 8px 7px;
  border: 1px solid rgba(218, 226, 236, 0.95);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.86);
}

body[data-page="index"] .home-style-strip span {
  grid-column: 1 / -1;
}

body[data-page="index"] .home-style-strip img {
  display: block;
  width: 100%;
  height: 34px;
  object-fit: cover;
  border: 1px solid rgba(208, 217, 227, 0.9);
  border-radius: 5px;
  background: #f4f6f8;
}

body[data-page="index"] .home-before-after {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(207, 216, 226, 0.95);
  border-radius: 10px;
  background: #edf2f6;
  box-shadow: 0 12px 24px rgba(40, 54, 76, 0.09);
}

body[data-page="index"] .home-before-after img {
  display: block;
  width: 100%;
  height: 238px;
  object-fit: cover;
  object-position: center center;
}

body[data-page="index"] .home-before-after::after {
  position: absolute;
  inset: 0 50% 0 0;
  background: rgba(11, 18, 29, 0.22);
  content: "";
  pointer-events: none;
}

body[data-page="index"] .home-before-after-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(255, 255, 255, 0.96);
  transform: translateX(-50%);
}

body[data-page="index"] .home-before-after-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #202733;
  font-size: 1.18rem;
  background: #ffffff;
  box-shadow: 0 12px 22px rgba(28, 38, 53, 0.18);
  transform: translate(-50%, -50%);
}

body[data-page="index"] .home-before-after-tag {
  position: absolute;
  z-index: 2;
  top: 10px;
  min-height: 25px;
  padding: 6px 10px 0;
  border-radius: 7px;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1;
  background: rgba(37, 45, 58, 0.74);
}

body[data-page="index"] .home-before-after-tag--before {
  left: 10px;
}

body[data-page="index"] .home-before-after-tag--after {
  right: 10px;
}

body[data-page="index"] .home-local-edit-demo {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(207, 216, 226, 0.95);
  border-radius: 10px;
  background: #edf2f6;
}

body[data-page="index"] .home-local-edit-demo > img {
  display: block;
  width: 100%;
  height: 238px;
  object-fit: cover;
  object-position: center center;
}

body[data-page="index"] .home-local-selection {
  position: absolute;
  left: 48%;
  bottom: 25px;
  width: 196px;
  height: 76px;
  border: 2px dashed #5c9df0;
  border-radius: 9px;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.7),
    inset 0 0 18px rgba(92, 157, 240, 0.18);
  transform: translateX(-50%);
}

body[data-page="index"] .home-local-selection::before,
body[data-page="index"] .home-local-selection::after {
  position: absolute;
  bottom: -14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #ffffff;
  font-family: "remixicon";
  font-size: 0.92rem;
  background: #5d94dc;
  box-shadow: 0 8px 16px rgba(57, 100, 166, 0.24);
}

body[data-page="index"] .home-local-selection::before {
  left: 14px;
  content: "\ee4b";
}

body[data-page="index"] .home-local-selection::after {
  right: -13px;
  content: "\ec86";
}

body[data-page="index"] .home-local-panel {
  position: absolute;
  top: 10px;
  right: 10px;
  bottom: 10px;
  display: grid;
  gap: 9px;
  width: 142px;
  padding: 9px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 30px rgba(40, 54, 76, 0.13);
}

body[data-page="index"] .home-local-panel div {
  display: grid;
  gap: 7px;
}

body[data-page="index"] .home-local-panel strong {
  color: #4a5565;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

body[data-page="index"] .home-local-panel img {
  width: 100%;
  height: 62px;
  object-fit: cover;
  border-radius: 6px;
  background: #f4f6f8;
}

body[data-page="index"] .home-local-panel button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 31px;
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 900;
  background: #4f86d6;
}

body[data-page="index"] .home-feature-process,
body[data-page="index"] .home-feature-proof {
  display: grid;
  align-items: center;
  margin-top: 20px;
  border: 1px solid rgba(211, 224, 242, 0.92);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(244, 249, 255, 0.86)),
    #f5f9ff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 16px 34px rgba(51, 84, 128, 0.06);
}

body[data-page="index"] .home-feature-process {
  display: flex;
  justify-content: space-between;
  gap: 0;
  min-height: 108px;
  padding: 18px 62px;
}

body[data-page="index"] .home-feature-process > div,
body[data-page="index"] .home-feature-proof > div {
  display: grid;
  grid-template-columns: 62px minmax(0, auto);
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
  gap: 18px;
}

body[data-page="index"] .home-feature-process > i {
  position: relative;
  flex: 1 1 78px;
  min-width: 54px;
  margin: 0 18px;
  color: transparent;
  font-size: 0;
}

body[data-page="index"] .home-feature-process > i::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(52px, 100%);
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(185, 214, 255, 0.28), rgba(112, 164, 238, 0.92));
  content: "";
  transform: translate(-50%, -50%);
}

body[data-page="index"] .home-feature-process > i::after {
  position: absolute;
  top: 50%;
  left: calc(50% + min(20px, 39%));
  width: 10px;
  height: 10px;
  border-top: 2px solid rgba(112, 164, 238, 0.95);
  border-right: 2px solid rgba(112, 164, 238, 0.95);
  content: "";
  transform: translate(-50%, -50%) rotate(45deg);
}

body[data-page="index"] .home-feature-process span,
body[data-page="index"] .home-feature-proof-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border: 1px solid rgba(222, 229, 239, 0.96);
  border-radius: 13px;
  color: #5b93eb;
  font-size: 2rem;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(51, 69, 96, 0.08);
}

body[data-page="index"] .home-feature-process strong,
body[data-page="index"] .home-feature-proof strong {
  display: block;
  color: #1f2733;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

body[data-page="index"] .home-feature-process small,
body[data-page="index"] .home-feature-proof small {
  display: block;
  margin-top: 7px;
  color: #747f8d;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
}

body[data-page="index"] .home-feature-proof {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 104px;
  margin-top: 16px;
  padding: 20px 66px;
  gap: 48px;
}

body[data-page="index"] .home-feature-proof > div + div {
  position: relative;
}

body[data-page="index"] .home-feature-proof > div + div::before {
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: -24px;
  width: 1px;
  background: rgba(185, 196, 210, 0.74);
  content: "";
}

body[data-page="index"] .home-feature-proof-icon--green {
  color: #ffffff;
  background: linear-gradient(135deg, #9aaf52, #6f8d34);
}

body[data-page="index"] .home-feature-proof-icon--blue {
  color: #ffffff;
  background: linear-gradient(135deg, #7db5ff, #4f86d6);
}

body[data-page="index"] .home-feature-proof-icon--yellow {
  color: #ffffff;
  background: linear-gradient(135deg, #ffd46d, #f5ad34);
}

body[data-page="index"] .home-feature-proof-icon--purple {
  color: #ffffff;
  background: linear-gradient(135deg, #ad8cf2, #7c64d8);
}

body[data-page="index"].has-feature-reveal .home-feature-kicker,
body[data-page="index"].has-feature-reveal .home-feature-head h2,
body[data-page="index"].has-feature-reveal .home-feature-head p,
body[data-page="index"].has-feature-reveal .home-feature-card,
body[data-page="index"].has-feature-reveal .home-feature-process,
body[data-page="index"].has-feature-reveal .home-feature-proof {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  transition:
    opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

body[data-page="index"].has-feature-reveal .home-feature-head h2 {
  transform: translate3d(0, 36px, 0);
}

body[data-page="index"].has-feature-reveal .home-feature-card {
  transform: translate3d(0, 38px, 0) scale(0.985);
}

body[data-page="index"].has-feature-reveal .home-feature-process,
body[data-page="index"].has-feature-reveal .home-feature-proof {
  transform: translate3d(0, 34px, 0) scale(0.992);
}

body[data-page="index"].has-feature-reveal .home-feature-card img,
body[data-page="index"].has-feature-reveal .home-before-after img,
body[data-page="index"].has-feature-reveal .home-local-edit-demo > img {
  transform: scale(1.035);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

body[data-page="index"].has-feature-reveal .home-feature-process > i::before {
  opacity: 0;
  transform: translate(-50%, -50%) scaleX(0.18);
  transform-origin: left center;
  transition:
    opacity 0.46s ease,
    transform 0.68s cubic-bezier(0.22, 1, 0.36, 1);
}

body[data-page="index"].has-feature-reveal .home-feature-process > i::after {
  opacity: 0;
  transform: translate(-70%, -50%) rotate(45deg);
  transition:
    opacity 0.42s ease,
    transform 0.58s cubic-bezier(0.22, 1, 0.36, 1);
}

body[data-page="index"].has-feature-reveal .home-feature-intro.is-visible .home-feature-kicker,
body[data-page="index"].has-feature-reveal .home-feature-intro.is-visible .home-feature-head h2,
body[data-page="index"].has-feature-reveal .home-feature-intro.is-visible .home-feature-head p,
body[data-page="index"].has-feature-reveal .home-feature-intro.is-visible .home-feature-card,
body[data-page="index"].has-feature-reveal .home-feature-intro.is-visible .home-feature-process,
body[data-page="index"].has-feature-reveal .home-feature-intro.is-visible .home-feature-proof {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

body[data-page="index"].has-feature-reveal .home-feature-intro.is-visible .home-feature-card img,
body[data-page="index"].has-feature-reveal .home-feature-intro.is-visible .home-before-after img,
body[data-page="index"].has-feature-reveal .home-feature-intro.is-visible .home-local-edit-demo > img {
  transform: scale(1);
}

body[data-page="index"].has-feature-reveal .home-feature-intro.is-visible .home-feature-process > i::before {
  opacity: 1;
  transform: translate(-50%, -50%) scaleX(1);
}

body[data-page="index"].has-feature-reveal .home-feature-intro.is-visible .home-feature-process > i::after {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(45deg);
}

body[data-page="index"].has-feature-reveal .home-feature-intro.is-visible .home-feature-kicker {
  transition-delay: 0.02s;
}

body[data-page="index"].has-feature-reveal .home-feature-intro.is-visible .home-feature-head h2 {
  transition-delay: 0.1s;
}

body[data-page="index"].has-feature-reveal .home-feature-intro.is-visible .home-feature-head p {
  transition-delay: 0.18s;
}

body[data-page="index"].has-feature-reveal .home-feature-intro.is-visible .home-feature-card:nth-child(1) {
  transition-delay: 0.26s;
}

body[data-page="index"].has-feature-reveal .home-feature-intro.is-visible .home-feature-card:nth-child(2) {
  transition-delay: 0.34s;
}

body[data-page="index"].has-feature-reveal .home-feature-intro.is-visible .home-feature-card:nth-child(3) {
  transition-delay: 0.42s;
}

body[data-page="index"].has-feature-reveal .home-feature-intro.is-visible .home-feature-card:nth-child(4) {
  transition-delay: 0.5s;
}

body[data-page="index"].has-feature-reveal .home-feature-intro.is-visible .home-feature-process {
  transition-delay: 0.58s;
}

body[data-page="index"].has-feature-reveal .home-feature-intro.is-visible .home-feature-process > i::before,
body[data-page="index"].has-feature-reveal .home-feature-intro.is-visible .home-feature-process > i::after {
  transition-delay: 0.78s;
}

body[data-page="index"].has-feature-reveal .home-feature-intro.is-visible .home-feature-proof {
  transition-delay: 0.68s;
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="index"].has-feature-reveal .home-feature-kicker,
  body[data-page="index"].has-feature-reveal .home-feature-head h2,
  body[data-page="index"].has-feature-reveal .home-feature-head p,
  body[data-page="index"].has-feature-reveal .home-feature-card,
  body[data-page="index"].has-feature-reveal .home-feature-process,
  body[data-page="index"].has-feature-reveal .home-feature-proof,
  body[data-page="index"].has-feature-reveal .home-feature-card img,
  body[data-page="index"].has-feature-reveal .home-before-after img,
  body[data-page="index"].has-feature-reveal .home-local-edit-demo > img,
  body[data-page="index"].has-feature-reveal .home-feature-process > i::before,
  body[data-page="index"].has-feature-reveal .home-feature-process > i::after {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

body[data-page="index"].has-feature-scroll-motion .home-feature-kicker,
body[data-page="index"].has-feature-scroll-motion .home-feature-head h2,
body[data-page="index"].has-feature-scroll-motion .home-feature-head p,
body[data-page="index"].has-feature-scroll-motion .home-feature-card,
body[data-page="index"].has-feature-scroll-motion .home-feature-process,
body[data-page="index"].has-feature-scroll-motion .home-feature-proof {
  opacity: var(--motion-opacity, 1);
  filter: blur(var(--motion-blur, 0px));
  transform: translate3d(var(--motion-x, 0px), var(--motion-y, 0px), 0) scale(var(--motion-scale, 1));
  transform-origin: center top;
  transition:
    opacity 0.08s linear,
    filter 0.08s linear,
    transform 0.08s linear;
  will-change: opacity, filter, transform;
}

body[data-page="index"].has-feature-scroll-motion .home-feature-card {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 18px 42px rgba(47, 65, 88, 0.06);
}

body[data-page="index"].has-feature-scroll-motion .home-feature-card img,
body[data-page="index"].has-feature-scroll-motion .home-before-after img,
body[data-page="index"].has-feature-scroll-motion .home-local-edit-demo > img {
  transform: scale(var(--image-scale, 1));
  transition: transform 0.08s linear;
  will-change: transform;
}

body[data-page="index"].has-feature-scroll-motion .home-feature-title span,
body[data-page="index"].has-feature-scroll-motion .home-feature-copy li::before,
body[data-page="index"].has-feature-scroll-motion .home-feature-process span,
body[data-page="index"].has-feature-scroll-motion .home-feature-proof-icon {
  transform: translateY(var(--motion-inner-y, 0px));
  transition: transform 0.08s linear;
}

body[data-page="index"].has-feature-scroll-motion .home-feature-process > i::before {
  opacity: var(--motion-arrow-opacity, 1);
  transform: translate(-50%, -50%) scaleX(var(--motion-arrow-progress, 1));
  transform-origin: left center;
  transition:
    opacity 0.08s linear,
    transform 0.08s linear;
}

body[data-page="index"].has-feature-scroll-motion .home-feature-process > i::after {
  opacity: var(--motion-arrow-opacity, 1);
  transform: translate(calc(-50% + var(--motion-arrow-tip, 0px)), -50%) rotate(45deg);
  transition:
    opacity 0.08s linear,
    transform 0.08s linear;
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="index"].has-feature-scroll-motion .home-feature-kicker,
  body[data-page="index"].has-feature-scroll-motion .home-feature-head h2,
  body[data-page="index"].has-feature-scroll-motion .home-feature-head p,
  body[data-page="index"].has-feature-scroll-motion .home-feature-card,
  body[data-page="index"].has-feature-scroll-motion .home-feature-process,
  body[data-page="index"].has-feature-scroll-motion .home-feature-proof,
  body[data-page="index"].has-feature-scroll-motion .home-feature-card img,
  body[data-page="index"].has-feature-scroll-motion .home-before-after img,
  body[data-page="index"].has-feature-scroll-motion .home-local-edit-demo > img,
  body[data-page="index"].has-feature-scroll-motion .home-feature-process > i::before,
  body[data-page="index"].has-feature-scroll-motion .home-feature-process > i::after {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }
}

body[data-page="index"] .home-info-footer {
  width: 100%;
  padding: 28px 0 52px;
  background:
    radial-gradient(circle at 20% 0%, rgba(123, 176, 236, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(245, 249, 253, 0.92) 0%, #eef4f9 100%);
}

body[data-page="index"] .home-info-shell {
  width: min(1952px, calc(100% - 96px));
  margin: 0 auto;
  padding: 34px 38px 22px;
  border: 1px solid rgba(211, 224, 238, 0.95);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 18px 46px rgba(50, 72, 98, 0.07);
}

body[data-page="index"] .home-info-brand {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin-bottom: 26px;
}

body[data-page="index"] .home-info-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  color: #ffffff;
  font-size: 2rem;
  background: linear-gradient(135deg, #8da150, #6f893e);
  box-shadow: 0 16px 30px rgba(111, 137, 62, 0.24);
}

body[data-page="index"] .home-info-brand strong {
  display: block;
  color: #1f2733;
  font-size: 1.8rem;
  font-weight: 950;
  line-height: 1.15;
}

body[data-page="index"] .home-info-brand p {
  max-width: 780px;
  margin: 8px 0 0;
  color: #647080;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.65;
}

body[data-page="index"] .home-info-grid {
  display: grid;
  grid-template-columns: 1.28fr 1fr 1fr 1.12fr;
  gap: 16px;
}

body[data-page="index"] .home-info-block {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  min-height: 188px;
  padding: 22px;
  border: 1px solid rgba(218, 227, 238, 0.9);
  border-radius: 14px;
  background: rgba(250, 252, 255, 0.78);
}

body[data-page="index"] .home-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  color: #ffffff;
  font-size: 1.55rem;
}

body[data-page="index"] .home-info-icon--green {
  background: linear-gradient(135deg, #9aaf52, #6f8d34);
}

body[data-page="index"] .home-info-icon--blue {
  background: linear-gradient(135deg, #7db5ff, #4f86d6);
}

body[data-page="index"] .home-info-icon--purple {
  background: linear-gradient(135deg, #ad8cf2, #7c64d8);
}

body[data-page="index"] .home-info-icon--yellow {
  background: linear-gradient(135deg, #ffd46d, #f5ad34);
}

body[data-page="index"] .home-info-block h2 {
  margin: 0 0 12px;
  color: #202836;
  font-size: 1.15rem;
  font-weight: 950;
  line-height: 1.2;
}

body[data-page="index"] .home-info-block p,
body[data-page="index"] .home-info-block li,
body[data-page="index"] .home-info-block a {
  color: #687485;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.62;
}

body[data-page="index"] .home-info-block p {
  margin: 0;
}

body[data-page="index"] .home-info-block a {
  display: block;
  width: max-content;
  max-width: 100%;
  color: #3f6fb3;
  text-decoration: none;
  word-break: break-all;
}

body[data-page="index"] .home-info-block a:hover {
  color: #235ca6;
}

body[data-page="index"] .home-info-block ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

body[data-page="index"] .home-info-block li {
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(112, 142, 184, 0.09);
  white-space: nowrap;
}

body[data-page="index"] .home-info-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(200, 213, 229, 0.76);
  color: #768294;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.5;
}

body[data-page="index"] .home-info-bottom a {
  color: #768294;
  text-decoration: none;
}

body[data-page="index"] .home-info-bottom a:hover {
  color: #3f6fb3;
}

body[data-page="index"] .home-info-footer {
  padding: 42px 0 40px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f7fbfe 42%, #eef5fa 100%);
}

body[data-page="index"] .home-footer-cta {
  position: relative;
  width: min(1952px, calc(100% - 72px));
  min-height: 640px;
  margin: 0 auto 48px;
  overflow: hidden;
  border: 1px solid rgba(215, 224, 235, 0.86);
  border-radius: 16px;
  background: #eef5fb;
  box-shadow: 0 28px 76px rgba(52, 73, 96, 0.1);
}

body[data-page="index"] .home-footer-cta::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: -39%;
  left: -19%;
  width: 65%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 48%, rgba(255, 255, 255, 0.98) 0%, rgba(245, 250, 255, 0.96) 48%, rgba(226, 238, 248, 0.86) 78%, rgba(220, 234, 246, 0.28) 100%);
}

body[data-page="index"] .home-footer-cta::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(244, 250, 255, 0.85) 0%, rgba(244, 250, 255, 0.64) 36%, rgba(255, 255, 255, 0.06) 68%),
    linear-gradient(180deg, rgba(255, 255, 255, 0) 72%, rgba(255, 255, 255, 0.42) 100%);
  pointer-events: none;
}

body[data-page="index"] .home-footer-cta__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

body[data-page="index"] .home-footer-cta__copy {
  position: relative;
  z-index: 2;
  width: min(720px, 48%);
  padding: 176px 0 0 92px;
}

body[data-page="index"] .home-footer-cta__copy h2 {
  margin: 0;
  color: #1f2733;
  font-size: 3.35rem;
  font-weight: 950;
  line-height: 1.18;
  letter-spacing: 0;
}

body[data-page="index"] .home-footer-cta__copy p {
  margin: 32px 0 0;
  color: #606b7a;
  font-size: 1.42rem;
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: 0;
}

body[data-page="index"] .home-footer-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 58px;
}

body[data-page="index"] .home-footer-cta__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-width: 286px;
  min-height: 84px;
  padding: 0 38px;
  border-radius: 12px;
  font-size: 1.38rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  letter-spacing: 0;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

body[data-page="index"] .home-footer-cta__actions a:hover {
  transform: translateY(-2px);
}

body[data-page="index"] .home-footer-cta__primary {
  color: #ffffff;
  background: linear-gradient(135deg, #7a9b67, #557943);
  box-shadow: 0 20px 34px rgba(91, 123, 70, 0.28);
}

body[data-page="index"] .home-footer-cta__secondary {
  border: 2px solid rgba(31, 39, 51, 0.86);
  color: #1f2733;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

body[data-page="index"] .home-footer-cta__secondary:hover {
  border-color: #557943;
}

body[data-page="index"] .home-footer-steps {
  position: absolute;
  z-index: 3;
  top: 26px;
  right: 46px;
  bottom: 26px;
  width: 264px;
  padding: 16px 14px;
  border: 1px solid rgba(220, 226, 232, 0.92);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 24px 58px rgba(38, 54, 75, 0.13);
  backdrop-filter: blur(16px);
}

body[data-page="index"] .home-footer-steps::before {
  content: "";
  position: absolute;
  top: 44px;
  bottom: 44px;
  left: 29px;
  border-left: 1px dashed rgba(171, 190, 205, 0.92);
}

body[data-page="index"] .home-footer-step {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 7px 10px;
  min-height: 138px;
  padding: 5px 0 12px;
}

body[data-page="index"] .home-footer-step:last-child {
  min-height: 0;
  padding-bottom: 0;
}

body[data-page="index"] .home-footer-step span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 33px;
  height: 33px;
  border-radius: 999px;
  color: #79a7d9;
  font-size: 0.9rem;
  font-weight: 900;
  background: #eaf4ff;
}

body[data-page="index"] .home-footer-step:nth-child(3) span,
body[data-page="index"] .home-footer-step:nth-child(4) span {
  color: #6f934f;
  background: #e9f3e4;
}

body[data-page="index"] .home-footer-step strong {
  display: block;
  align-self: center;
  min-width: 0;
  color: #5d6672;
  font-size: 0.91rem;
  font-weight: 850;
  line-height: 1.35;
  letter-spacing: 0;
}

body[data-page="index"] .home-footer-step:nth-child(2) strong {
  color: #6aa0df;
}

body[data-page="index"] .home-footer-step img {
  grid-column: 2;
  width: 100%;
  height: 68px;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(223, 228, 234, 0.9);
  border-radius: 7px;
  background: #f7f9fb;
}

body[data-page="index"] .home-footer-main {
  display: grid;
  grid-template-columns: minmax(270px, 0.86fr) minmax(350px, 1.06fr) minmax(250px, 0.82fr) 208px;
  column-gap: clamp(28px, 2.7vw, 58px);
  row-gap: 28px;
  width: min(1640px, calc(100% - 96px));
  margin: 0 auto;
  padding: 20px 0 0;
  align-items: start;
  box-sizing: border-box;
}

body[data-page="index"] .home-footer-brand-panel {
  min-width: 0;
}

body[data-page="index"] .home-footer-brand-lockup {
  display: flex;
  align-items: center;
  gap: 24px;
}

body[data-page="index"] .home-footer-brand-lockup img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  filter: none;
}

body[data-page="index"] .home-footer-brand-lockup strong {
  color: #050607;
  font-size: 2.48rem;
  font-weight: 950;
  line-height: 1.1;
  letter-spacing: 0;
}

body[data-page="index"] .home-footer-brand-slogan {
  margin: 25px 0 0 60px;
  color: #638a52;
  font-size: 1.32rem;
  font-weight: 850;
  line-height: 1.35;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

body[data-page="index"] .home-footer-brand-note {
  margin: 30px 0 0;
  color: #5f6974;
  font-size: 1.12rem;
  font-weight: 760;
  line-height: 1.5;
  letter-spacing: 0;
}

body[data-page="index"] .home-footer-sketch {
  display: block;
  width: min(350px, 100%);
  height: 138px;
  margin-top: 28px;
  object-fit: contain;
  object-position: left center;
  opacity: 0.82;
  mix-blend-mode: multiply;
}

body[data-page="index"] .home-footer-column {
  min-width: 0;
  padding-top: 8px;
}

body[data-page="index"] .home-footer-column h2 {
  position: relative;
  margin: 0 0 32px;
  color: #29313b;
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0;
}

body[data-page="index"] .home-footer-column h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -16px;
  width: 40px;
  height: 3px;
  border-radius: 999px;
  background: #6f914e;
}

body[data-page="index"] .home-footer-list,
body[data-page="index"] .home-footer-contact-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

body[data-page="index"] .home-footer-list li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  min-height: 66px;
  border-bottom: 1px solid rgba(202, 211, 222, 0.86);
  color: #596573;
  font-size: 1.05rem;
  font-weight: 780;
  line-height: 1.35;
  letter-spacing: 0;
}

body[data-page="index"] .home-footer-list li:first-child {
  border-top: 0;
}

body[data-page="index"] .home-footer-list i,
body[data-page="index"] .home-footer-contact-list i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #5f82a5;
  font-size: 1.24rem;
  background: #e5f0fb;
}

body[data-page="index"] .home-footer-list li:nth-child(even) i {
  color: #668d57;
  background: #e7f1e3;
}

body[data-page="index"] .home-footer-contact-list {
  gap: 26px;
}

body[data-page="index"] .home-footer-contact-list li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-width: 0;
  color: #454d58;
  font-size: 1.13rem;
  font-weight: 780;
  line-height: 1.35;
  letter-spacing: 0;
}

body[data-page="index"] .home-footer-contact-list a {
  min-width: 0;
  color: #454d58;
  text-decoration: none;
  word-break: break-all;
}

body[data-page="index"] .home-footer-contact-list a:hover {
  color: #4f7d41;
}

body[data-page="index"] .home-footer-qr {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 10px;
  padding-top: 28px;
  text-align: center;
}

body[data-page="index"] .home-footer-qr img {
  width: 184px;
  height: 184px;
  padding: 12px;
  border: 1px solid rgba(205, 213, 222, 0.95);
  border-radius: 8px;
  background: #ffffff;
}

body[data-page="index"] .home-footer-qr strong {
  margin-top: 10px;
  color: #6e7884;
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.3;
  letter-spacing: 0;
}

body[data-page="index"] .home-footer-qr span {
  color: #6e7884;
  font-size: 1rem;
  font-weight: 760;
  line-height: 1.45;
  letter-spacing: 0;
}

body[data-page="index"] .home-footer-legal {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  margin-top: 2px;
  border-top: 1px solid rgba(202, 211, 222, 0.86);
  color: #747d89;
  font-size: 0.98rem;
  font-weight: 760;
  line-height: 1.5;
  letter-spacing: 0;
}

body[data-page="index"] .home-footer-legal nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}

body[data-page="index"] .home-footer-legal a {
  color: #747d89;
  text-decoration: none;
}

body[data-page="index"] .home-footer-legal a + a::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 16px;
  margin: 0 30px;
  vertical-align: -3px;
  background: rgba(168, 179, 192, 0.8);
}

body[data-page="index"] .home-footer-legal a:hover {
  color: #4f7d41;
}

body[data-page="index"] .container--home .home-footer-contact-list {
  display: grid;
  gap: 26px;
  justify-items: stretch;
}

body[data-page="index"] .container--home .home-footer-contact-list span,
body[data-page="index"] .container--home .home-footer-contact-list a {
  color: #454d58;
  font-size: 1.13rem;
  font-weight: 780;
  line-height: 1.35;
}

body[data-page="index"] .container--home .home-footer-contact-list a:hover {
  color: #4f7d41;
}

@media (max-width: 1280px) {
  body[data-page="index"] .home-feature-card {
    grid-template-columns: 154px minmax(0, 1fr);
    gap: 14px;
  }

  body[data-page="index"] .home-feature-control-row {
    grid-template-columns: minmax(138px, 1fr) 30px minmax(180px, 1.12fr);
  }

  body[data-page="index"] .home-feature-process,
  body[data-page="index"] .home-feature-proof {
    padding-right: 28px;
    padding-left: 28px;
  }

  body[data-page="index"] .home-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="index"] .home-footer-cta {
    min-height: 560px;
  }

  body[data-page="index"] .home-footer-cta__copy {
    width: min(620px, 52%);
    padding: 138px 0 0 58px;
  }

  body[data-page="index"] .home-footer-cta__copy h2 {
    font-size: 2.8rem;
  }

  body[data-page="index"] .home-footer-cta__actions a {
    min-width: 232px;
    min-height: 72px;
    font-size: 1.15rem;
  }

  body[data-page="index"] .home-footer-steps {
    right: 28px;
    width: 238px;
  }

  body[data-page="index"] .home-footer-step {
    min-height: 118px;
  }

  body[data-page="index"] .home-footer-step img {
    height: 58px;
  }

  body[data-page="index"] .home-footer-main {
    grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr) minmax(270px, 0.95fr);
    gap: 44px;
    padding-right: 58px;
    padding-left: 58px;
  }

  body[data-page="index"] .home-footer-qr {
    grid-column: 1 / -1;
    grid-template-columns: auto minmax(0, 1fr);
    justify-items: start;
    align-items: center;
    text-align: left;
  }

  body[data-page="index"] .home-footer-qr img {
    grid-row: span 2;
    width: 152px;
    height: 152px;
  }

  body[data-page="index"] .home-feature-process {
    gap: 0;
  }

  body[data-page="index"] .home-feature-process > div {
    grid-template-columns: 52px minmax(0, auto);
    gap: 12px;
  }

  body[data-page="index"] .home-feature-process > i {
    min-width: 32px;
    margin: 0 8px;
  }

  body[data-page="index"] .home-feature-process span {
    width: 52px;
    height: 52px;
    font-size: 1.65rem;
  }

  body[data-page="index"] .home-feature-process strong {
    font-size: 0.92rem;
  }

  body[data-page="index"] .home-feature-process small {
    font-size: 0.75rem;
  }
}

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

  body[data-page="index"] .home-feature-card {
    grid-template-columns: 160px minmax(0, 1fr);
  }

  body[data-page="index"] .home-feature-process {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 22px;
  }

  body[data-page="index"] .home-feature-process > i {
    display: none;
  }

  body[data-page="index"] .home-feature-proof {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
  }

  body[data-page="index"] .home-feature-proof > div + div::before {
    display: none;
  }

  body[data-page="index"] .home-footer-cta {
    display: grid;
    min-height: 0;
  }

  body[data-page="index"] .home-footer-cta::before {
    top: -22%;
    left: -28%;
    width: 86%;
  }

  body[data-page="index"] .home-footer-cta__image {
    position: relative;
    height: 360px;
    grid-row: 1;
  }

  body[data-page="index"] .home-footer-cta__copy {
    width: auto;
    padding: 54px 44px 38px;
    grid-row: 1;
  }

  body[data-page="index"] .home-footer-steps {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    width: auto;
    margin: 0 36px 36px;
  }

  body[data-page="index"] .home-footer-step {
    min-height: 116px;
  }

  body[data-page="index"] .home-footer-main {
    grid-template-columns: 1fr 1fr;
  }

  body[data-page="index"] .home-footer-brand-panel,
  body[data-page="index"] .home-footer-qr,
  body[data-page="index"] .home-footer-legal {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  body[data-page="index"] .home-feature-intro {
    width: calc(100% - 32px);
    padding-top: 46px;
  }

  body[data-page="index"] .home-feature-head {
    margin-bottom: 22px;
  }

  body[data-page="index"] .home-feature-head h2 {
    font-size: clamp(2.15rem, 9vw, 3.4rem);
  }

  body[data-page="index"] .home-feature-card {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 16px;
  }

  body[data-page="index"] .home-feature-copy ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
  }

  body[data-page="index"] .home-feature-copy li {
    white-space: normal;
  }

  body[data-page="index"] .home-feature-pair {
    grid-template-columns: minmax(0, 1fr) 26px minmax(0, 1fr);
    gap: 8px;
  }

  body[data-page="index"] .home-feature-pair img,
  body[data-page="index"] .home-before-after img,
  body[data-page="index"] .home-local-edit-demo > img {
    height: 190px;
  }

  body[data-page="index"] .home-feature-control-row {
    grid-template-columns: 1fr;
  }

  body[data-page="index"] .home-feature-control-row > i {
    display: none;
  }

  body[data-page="index"] .home-before-after,
  body[data-page="index"] .home-local-edit-demo {
    min-height: 190px;
  }

  body[data-page="index"] .home-local-panel {
    display: none;
  }

  body[data-page="index"] .home-local-selection {
    left: 50%;
    right: auto;
    bottom: 24px;
    width: 48%;
  }

  body[data-page="index"] .home-feature-proof {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  body[data-page="index"] .home-info-footer {
    padding-bottom: 34px;
  }

  body[data-page="index"] .home-footer-cta,
  body[data-page="index"] .home-footer-main {
    width: calc(100% - 32px);
  }

  body[data-page="index"] .home-footer-cta {
    margin-bottom: 32px;
  }

  body[data-page="index"] .home-footer-cta__image {
    height: 280px;
  }

  body[data-page="index"] .home-footer-cta__copy {
    padding: 36px 24px 28px;
  }

  body[data-page="index"] .home-footer-cta__copy h2 {
    font-size: 2.18rem;
  }

  body[data-page="index"] .home-footer-cta__copy p {
    margin-top: 18px;
    font-size: 1.05rem;
  }

  body[data-page="index"] .home-footer-cta__actions {
    gap: 14px;
    margin-top: 30px;
  }

  body[data-page="index"] .home-footer-cta__actions a {
    width: 100%;
    min-width: 0;
    min-height: 58px;
    border-radius: 10px;
    font-size: 1rem;
  }

  body[data-page="index"] .home-footer-steps {
    margin: 0 16px 20px;
  }

  body[data-page="index"] .home-footer-main {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 8px 8px 0;
  }

  body[data-page="index"] .home-footer-brand-lockup img {
    width: 56px;
    height: 56px;
  }

  body[data-page="index"] .home-footer-brand-lockup strong {
    font-size: 2rem;
  }

  body[data-page="index"] .home-footer-brand-slogan {
    margin-left: 0;
    font-size: 1.1rem;
    letter-spacing: 0.16em;
  }

  body[data-page="index"] .home-footer-sketch {
    height: 130px;
  }

  body[data-page="index"] .home-footer-qr {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  body[data-page="index"] .home-footer-legal {
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
    padding-top: 24px;
    padding-bottom: 8px;
  }

  body[data-page="index"] .home-footer-legal nav {
    row-gap: 10px;
  }

  body[data-page="index"] .home-footer-legal a + a::before {
    margin: 0 16px;
  }

  body[data-page="index"] .home-info-shell {
    width: calc(100% - 32px);
    padding: 22px 18px 18px;
  }

  body[data-page="index"] .home-info-brand {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px;
  }

  body[data-page="index"] .home-info-brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    font-size: 1.6rem;
  }

  body[data-page="index"] .home-info-brand strong {
    font-size: 1.45rem;
  }

  body[data-page="index"] .home-info-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="index"] .home-info-block {
    min-height: 0;
    padding: 18px;
  }
}

@media (max-width: 500px) {
  body[data-page="index"] .home-feature-copy ul {
    grid-template-columns: 1fr;
  }

  body[data-page="index"] .home-feature-pair {
    grid-template-columns: 1fr;
  }

  body[data-page="index"] .home-feature-pair > i {
    transform: rotate(90deg);
  }

  body[data-page="index"] .home-feature-pair img {
    height: 172px;
  }

  body[data-page="index"] .home-feature-process > div,
  body[data-page="index"] .home-feature-proof > div {
    gap: 13px;
  }

  body[data-page="index"] .home-feature-process strong,
  body[data-page="index"] .home-feature-proof strong,
  body[data-page="index"] .home-feature-process small,
  body[data-page="index"] .home-feature-proof small {
    white-space: normal;
  }

  body[data-page="index"] .home-info-block {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 13px;
  }

  body[data-page="index"] .home-info-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 1.35rem;
  }

  body[data-page="index"] .home-info-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 1180px) {
  body[data-page="index"] .landing-nav {
    padding-right: 34px;
    padding-left: 34px;
  }

  body[data-page="index"] .landing-menu {
    gap: 34px;
  }

  body[data-page="index"] .landing-stage {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 18px;
    width: min(940px, 100%);
  }

  body[data-page="index"] .landing-side-note {
    display: none;
  }

  body[data-page="index"] .landing-flow {
    width: min(920px, 92vw);
    padding-right: 28px;
    padding-left: 28px;
  }

  body[data-page="index"] .landing-flow-step {
    gap: 16px;
  }
}

@media (max-width: 840px) {
  body[data-page="index"] .landing-nav {
    grid-template-columns: 1fr auto;
    height: 84px;
    padding: 20px 22px 12px;
  }

  body[data-page="index"] .landing-menu {
    display: none;
  }

  body[data-page="index"] .landing-brand-mark {
    width: 31px;
    height: 33px;
    border-width: 7px;
  }

  body[data-page="index"] .landing-brand strong {
    font-size: 1.32rem;
  }

  body[data-page="index"] .landing-login {
    min-width: 112px;
    height: 40px;
    padding: 0 16px;
    font-size: 0.9rem;
  }

  body[data-page="index"] .landing-hero {
    min-height: 800px;
    padding: 22px 20px 34px;
  }

  body[data-page="index"] .landing-copy h1 {
    font-size: clamp(3.1rem, 13vw, 4.8rem);
  }

  body[data-page="index"] .landing-copy p {
    font-size: 1.08rem;
  }

  body[data-page="index"] .landing-action-row {
    flex-direction: column;
    gap: 0;
  }

  body[data-page="index"] .landing-primary {
    --landing-button-width: 246px;
    --landing-button-height: 52px;
    --landing-button-panel: 41%;
    gap: 13px;
    padding: 0 28px 0 46px;
  }

  body[data-page="index"] .landing-primary__icon {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    font-size: 1.04rem;
  }

  body[data-page="index"] .landing-primary__text-wrap {
    min-width: 86px;
    font-size: 1.18rem;
  }

  body[data-page="index"] .landing-stage {
    margin-top: 24px;
  }

  body[data-page="index"] .landing-compare-card {
    width: min(100%, 680px);
    aspect-ratio: 1.72;
    border-radius: 16px;
  }

  body[data-page="index"] .landing-pixel-card {
    left: 32%;
    width: 36.5%;
    opacity: 0.82;
  }

  body[data-page="index"] .landing-pixel-card__grid {
    inset: 16px 12px;
  }

  body[data-page="index"] .landing-ai-state--stage {
    top: 45%;
    gap: 7px;
    font-size: 0.88rem;
  }

  body[data-page="index"] .landing-ai-state--stage .landing-ai-spinner {
    width: 17px;
    height: 17px;
    border-width: 2px;
  }

  body[data-page="index"] .landing-flow {
    grid-template-columns: 1fr;
    gap: 12px;
    width: min(520px, 100%);
    min-height: 0;
    margin-top: 22px;
    padding: 18px;
  }

  body[data-page="index"] .landing-flow-arrow {
    display: none;
  }

  body[data-page="index"] .landing-flow-step {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 14px;
  }

  body[data-page="index"] .landing-flow-icon {
    width: 52px;
    height: 52px;
    font-size: 1.55rem;
  }

  body[data-page="index"] .landing-flow-step strong {
    font-size: 1.06rem;
  }

  body[data-page="index"] .landing-flow-step small {
    white-space: normal;
  }
}

@media (max-width: 460px) {
  body[data-page="index"] .landing-brand {
    gap: 9px;
  }

  body[data-page="index"] .landing-brand strong {
    font-size: 1.16rem;
  }

  body[data-page="index"] .landing-login {
    min-width: 96px;
    padding: 0 12px;
    font-size: 0.82rem;
  }

  body[data-page="index"] .landing-hero {
    min-height: 738px;
  }

  body[data-page="index"] .landing-copy h1 {
    font-size: clamp(2.56rem, 12.5vw, 3.4rem);
  }

  body[data-page="index"] .landing-primary {
    --landing-button-width: 220px;
    --landing-button-height: 46px;
    --landing-button-panel: 40%;
    gap: 11px;
    padding: 0 22px 0 34px;
  }

  body[data-page="index"] .landing-primary__icon {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
    border-radius: 11px;
    font-size: 0.96rem;
  }

  body[data-page="index"] .landing-primary__text-wrap {
    min-width: 78px;
    font-size: 1.02rem;
  }

  body[data-page="index"] .landing-compare-card {
    aspect-ratio: 1.5;
  }

  body[data-page="index"] .landing-pixel-card {
    left: 30.5%;
    width: 39%;
  }

  body[data-page="index"] .landing-pixel-card__grid {
    inset: 12px 9px;
  }

  body[data-page="index"] .landing-ai-state--stage {
    gap: 6px;
    font-size: 0.76rem;
  }
}

/* ========== 2026-06-18 Local Edit Designer Desk ========== */
body[data-page="local-edit"] {
  color: #182230;
  background: #f4efe8;
}

body[data-page="local-edit"]::before {
  background:
    linear-gradient(180deg, rgba(249, 246, 241, 0.92) 0%, rgba(239, 233, 224, 0.96) 100%),
    url("home-v2/home-hero-user.jpg?v=20260617b") center / cover fixed no-repeat;
}

body[data-page="local-edit"] .container {
  max-width: 1440px;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 24px;
}

body[data-page="local-edit"] .topbar {
  width: min(1320px, calc(100% - 40px));
  min-height: 70px;
  padding: 12px 16px;
  border: 1px solid rgba(31, 42, 61, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 48px rgba(71, 55, 34, 0.1);
  backdrop-filter: blur(18px);
}

body[data-page="local-edit"] .topbar .brand,
body[data-page="local-edit"] .topbar .brand-title {
  color: #172033;
}

body[data-page="local-edit"] .topbar .brand-tagline {
  color: #7b684f;
  text-shadow: none;
}

body[data-page="local-edit"] .topbar .nav a {
  min-height: 38px;
  border: 1px solid rgba(31, 42, 61, 0.1);
  border-radius: 999px;
  color: #25324a;
  background: rgba(255, 255, 255, 0.68);
}

body[data-page="local-edit"] .container > .section {
  width: min(1320px, calc(100% - 40px));
  padding: clamp(22px, 2.2vw, 32px);
  border: 1px solid rgba(31, 42, 61, 0.08);
  border-radius: 20px;
  color: #182230;
  background: rgba(255, 253, 249, 0.94);
  box-shadow: 0 28px 70px rgba(71, 55, 34, 0.12);
  backdrop-filter: blur(16px);
}

body[data-page="local-edit"] .section-title--compact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  align-items: end;
  gap: 24px;
  margin-bottom: 18px;
}

body[data-page="local-edit"] .local-edit-eyebrow {
  display: inline-flex;
  margin-bottom: 8px;
  color: #9a7a4f;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

body[data-page="local-edit"] .section-title--compact h2,
body[data-page="local-edit"]:not([data-page="index"]) .container > .section > .section-title.section-title--compact h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0;
}

body[data-page="local-edit"] .section-title--compact p,
body[data-page="local-edit"]:not([data-page="index"]) .container > .section > .section-title.section-title--compact p {
  justify-self: end;
  max-width: 380px;
  margin: 0;
  color: #5f6c80;
  text-align: right;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.7;
}

body[data-page="local-edit"] .local-edit-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px;
  border: 1px solid rgba(31, 42, 61, 0.08);
  border-radius: 16px;
  background: rgba(248, 244, 238, 0.78);
}

body[data-page="local-edit"] .local-edit-flow-step {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  color: #667085;
}

body[data-page="local-edit"] .local-edit-flow-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #ffffff;
  color: #9a7a4f;
  font-size: 0.78rem;
  font-weight: 900;
}

body[data-page="local-edit"] .local-edit-flow-step strong {
  min-width: 0;
  overflow: hidden;
  font-size: 0.88rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page="local-edit"] .local-edit-flow-step.is-active {
  color: #172033;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(71, 55, 34, 0.08);
}

body[data-page="local-edit"] .local-edit-flow-step.is-active span {
  color: #ffffff;
  background: #1677ff;
}

body[data-page="local-edit"] .local-edit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(340px, 0.72fr);
  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(31, 42, 61, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 44px rgba(71, 55, 34, 0.08);
}

body[data-page="local-edit"] .local-edit-workspace {
  display: grid;
  gap: 10px;
  min-height: 584px;
  padding: 12px;
  background: #ffffff;
}

body[data-page="local-edit"] .local-edit-upload {
  position: relative;
  min-height: clamp(470px, 58vh, 650px);
  overflow: hidden;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 24px;
  border: 1px solid rgba(31, 42, 61, 0.08);
  border-radius: 12px;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(18, 15, 12, 0.04) 0%, rgba(18, 15, 12, 0.72) 100%),
    url("home-v2/scenario-local-edit-clean.jpg?v=20260616a") center / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

body[data-page="local-edit"] .local-edit-upload::before {
  display: none !important;
  content: none !important;
}

body[data-page="local-edit"] .local-edit-upload-copy {
  display: grid;
  gap: 8px;
  width: min(360px, 100%);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  background: rgba(17, 24, 39, 0.58);
  backdrop-filter: blur(14px);
}

body[data-page="local-edit"] .local-edit-upload-copy span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
}

body[data-page="local-edit"] .local-edit-upload h3 {
  margin: 0;
  color: #ffffff;
  font-size: 1.36rem;
  font-weight: 900;
  line-height: 1.2;
}

body[data-page="local-edit"] .local-edit-upload p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.6;
}

body[data-page="local-edit"] .local-edit-workspace-head {
  min-height: 44px;
  padding: 8px 10px 8px 14px;
  border: 1px solid rgba(31, 42, 61, 0.08);
  border-radius: 12px;
  background: #fbfaf8;
}

body[data-page="local-edit"] #localEditImageMeta {
  color: #5f6c80;
}

body[data-page="local-edit"] .local-edit-toolbar {
  width: max-content;
  max-width: 100%;
  justify-content: flex-start;
  padding: 6px;
  border: 1px solid rgba(31, 42, 61, 0.08);
  border-radius: 999px;
  background: #fbfaf8;
}

body[data-page="local-edit"] .local-edit-toolbar span {
  min-width: 56px;
  color: #5f6c80;
  font-size: 0.84rem;
  font-weight: 900;
  text-align: center;
}

body[data-page="local-edit"] .local-edit-mini-btn,
body[data-page="local-edit"] .local-edit-tool-btn,
body[data-page="local-edit"] .local-edit-mode-tab {
  border: 1px solid rgba(31, 42, 61, 0.1);
  background: #ffffff;
  color: #25324a;
  box-shadow: none;
}

body[data-page="local-edit"] .local-edit-tool-btn {
  min-width: 38px;
  min-height: 34px;
  border-radius: 999px;
}

body[data-page="local-edit"] .local-edit-canvas-viewport {
  min-height: clamp(470px, 58vh, 650px);
  max-height: clamp(520px, 68vh, 740px);
  padding: 12px;
  border: 1px solid rgba(31, 42, 61, 0.08);
  border-radius: 12px;
  background: #f4f0ea;
}

body[data-page="local-edit"] .local-edit-canvas-wrap {
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(71, 55, 34, 0.12);
}

body[data-page="local-edit"] .local-edit-canvas-viewport.is-processing::after {
  content: '生成中...';
  color: #172033;
}

body[data-page="local-edit"] .local-edit-panel {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 18px;
  padding: 20px;
  background: #fffefa;
}

body[data-page="local-edit"] .local-edit-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(31, 42, 61, 0.08);
}

body[data-page="local-edit"] .local-edit-panel-head strong {
  display: block;
  color: #111827;
  font-size: 1.08rem;
  font-weight: 900;
}

body[data-page="local-edit"] .local-edit-panel-head p {
  margin: 6px 0 0;
  color: #7c8798;
  font-size: 0.82rem;
  line-height: 1.45;
}

body[data-page="local-edit"] #localEditReadyHint {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f1ece5;
  color: #8a6b42;
  font-size: 0.76rem;
  font-weight: 900;
}

body[data-page="local-edit"] #localEditReadyHint.is-ready {
  background: #e8f6ef;
  color: #0f7a4d;
}

body[data-page="local-edit"] .local-edit-controls {
  gap: 15px;
}

body[data-page="local-edit"] .local-edit-controls label,
body[data-page="local-edit"] .local-edit-reference {
  gap: 8px;
  color: #344054;
  font-size: 0.88rem;
  font-weight: 900;
}

body[data-page="local-edit"] .local-edit-mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(31, 42, 61, 0.08);
  border-radius: 12px;
  background: #f6f1ea;
}

body[data-page="local-edit"] .local-edit-mode-tab {
  min-height: 40px;
  border-radius: 9px;
  font-size: 0.84rem;
}

body[data-page="local-edit"] .local-edit-mode-tab.is-active {
  border-color: #1677ff;
  color: #ffffff;
  background: #1677ff;
  box-shadow: 0 10px 22px rgba(22, 119, 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: 122px;
  border: 1px solid rgba(31, 42, 61, 0.1);
  border-radius: 12px;
  background: #ffffff;
  color: #182230;
  line-height: 1.55;
  box-shadow: inset 0 1px 0 rgba(17, 24, 39, 0.03);
}

body[data-page="local-edit"] .local-edit-controls textarea::placeholder {
  color: #98a2b3;
}

body[data-page="local-edit"] .local-edit-reference-upload {
  min-height: 76px;
  border: 1px dashed rgba(154, 122, 79, 0.36);
  border-radius: 12px;
  background: #fbfaf8;
  color: #344054;
}

body[data-page="local-edit"] .local-edit-reference-preview {
  border-radius: 12px;
}

body[data-page="local-edit"] .local-edit-brush-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

body[data-page="local-edit"] #localEditBrushValue {
  min-width: 40px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f1ece5;
  color: #8a6b42;
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
}

body[data-page="local-edit"] .local-edit-controls input[type="range"] {
  accent-color: #1677ff;
}

body[data-page="local-edit"] .local-edit-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 10px;
  margin-top: 0;
}

body[data-page="local-edit"] .local-edit-actions .btn,
body[data-page="local-edit"] .local-edit-result .btn {
  width: 100%;
  min-height: 48px;
  justify-content: center;
  border-radius: 12px;
  font-size: 0.94rem;
  font-weight: 900;
}

body[data-page="local-edit"] #localEditClearMaskBtn {
  border-color: rgba(180, 35, 24, 0.2);
  color: #b42318;
  background: #fff8f7;
  box-shadow: none;
}

body[data-page="local-edit"] #localEditGenerateBtn,
body[data-page="local-edit"] #localEditDownloadBtn {
  border-color: #1677ff;
  color: #ffffff;
  background: #1677ff;
  box-shadow: 0 14px 28px rgba(22, 119, 255, 0.22);
}

body[data-page="local-edit"] #localEditGenerateBtn:disabled {
  border-color: rgba(31, 42, 61, 0.08);
  color: #7c8798;
  background: #e9edf3;
  box-shadow: none;
}

body[data-page="local-edit"] .local-edit-generation-time {
  margin-top: 0;
  border-radius: 12px;
  background: #f2f7ff;
  color: #315f9b;
}

body[data-page="local-edit"] .local-edit-result {
  grid-template-columns: minmax(220px, 0.48fr) minmax(0, 1fr) minmax(180px, 220px);
  align-items: center;
  gap: 18px;
  margin-top: 18px;
  padding: 16px;
}

body[data-page="local-edit"] .local-edit-result[hidden] {
  display: none !important;
}

body[data-page="local-edit"] .local-edit-result .section-title--compact {
  display: block;
  margin: 0;
}

body[data-page="local-edit"] .local-edit-result .section-title--compact h2 {
  color: #111827;
  font-size: 1.15rem;
}

body[data-page="local-edit"] .local-edit-result .section-title--compact p {
  margin-top: 8px;
  color: #667085;
  text-align: left;
}

body[data-page="local-edit"] .local-edit-result-preview {
  min-height: 154px;
  border: 1px solid rgba(31, 42, 61, 0.08);
  border-radius: 12px;
  background: #f6f1ea;
}

body[data-page="local-edit"] .local-edit-result-preview img {
  max-height: 260px;
  object-fit: contain;
  box-shadow: 0 12px 28px rgba(71, 55, 34, 0.12);
}

body[data-page="local-edit"] .local-edit-result .btnrow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 0;
}

body[data-page="local-edit"] .local-edit-lead-card {
  margin-top: 18px;
}

body[data-page="local-edit"] .footer {
  display: none !important;
}

@media (max-width: 1080px) {
  body[data-page="local-edit"] .local-edit-layout,
  body[data-page="local-edit"] .local-edit-result {
    grid-template-columns: 1fr;
  }

  body[data-page="local-edit"] .local-edit-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  body[data-page="local-edit"] .topbar,
  body[data-page="local-edit"] .container > .section {
    width: calc(100% - 24px);
  }

  body[data-page="local-edit"] .section-title--compact,
  body[data-page="local-edit"] .local-edit-flow {
    grid-template-columns: 1fr;
  }

  body[data-page="local-edit"] .section-title--compact p,
  body[data-page="local-edit"]:not([data-page="index"]) .container > .section > .section-title.section-title--compact p {
    justify-self: start;
    text-align: left;
  }

  body[data-page="local-edit"] .local-edit-workspace,
  body[data-page="local-edit"] .local-edit-panel,
  body[data-page="local-edit"] .local-edit-result {
    padding: 14px;
  }

  body[data-page="local-edit"] .local-edit-upload,
  body[data-page="local-edit"] .local-edit-canvas-viewport {
    min-height: 360px;
  }

  body[data-page="local-edit"] .local-edit-toolbar {
    width: 100%;
    justify-content: center;
  }
}

body[data-page="local-edit"] .container > .topbar {
  width: min(1320px, calc(100% - 40px));
  min-height: 70px;
  padding: 12px 16px;
  border: 1px solid rgba(31, 42, 61, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 48px rgba(71, 55, 34, 0.1);
  backdrop-filter: blur(18px);
}

body[data-page="local-edit"] .container > .topbar .brand,
body[data-page="local-edit"] .container > .topbar .brand-title {
  color: #172033;
}

body[data-page="local-edit"] .container > .topbar .brand-tagline {
  color: #7b684f;
  text-shadow: none;
}

body[data-page="local-edit"] .container > .topbar .nav a {
  color: #25324a;
  background: rgba(255, 255, 255, 0.72);
}

body[data-page="local-edit"] .local-edit-upload .local-edit-upload-copy h3 {
  color: #ffffff;
}

body[data-page="local-edit"] .local-edit-upload .local-edit-upload-copy p {
  color: rgba(255, 255, 255, 0.82);
}

/* ========== 2026-06-18 Local Edit Exact Direction 2 ========== */
body[data-page="local-edit"] {
  color: #162033;
  background: #f2eee8;
}

body[data-page="local-edit"]::before {
  background:
    linear-gradient(180deg, rgba(248, 245, 239, 0.98) 0%, rgba(237, 231, 222, 0.98) 100%) !important;
}

body[data-page="local-edit"] .container {
  max-width: 1440px;
  gap: 14px;
  padding-top: 18px;
  padding-bottom: 22px;
}

body[data-page="local-edit"] .container > .topbar {
  width: min(1320px, calc(100% - 40px));
  min-height: 68px;
  padding: 12px 16px;
  border: 1px solid rgba(31, 42, 61, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 46px rgba(80, 62, 37, 0.09);
  backdrop-filter: blur(16px);
}

body[data-page="local-edit"] .container > .topbar .brand,
body[data-page="local-edit"] .container > .topbar .brand-title {
  color: #162033;
}

body[data-page="local-edit"] .container > .topbar .brand-tagline {
  color: #806a4c;
  text-shadow: none;
}

body[data-page="local-edit"] .container > .topbar .nav a {
  min-height: 38px;
  border: 1px solid rgba(31, 42, 61, 0.09);
  border-radius: 999px;
  color: #344054;
  background: #ffffff;
  box-shadow: none;
}

body[data-page="local-edit"] .container > .section {
  width: min(1320px, calc(100% - 40px));
  padding: 28px;
  border: 1px solid rgba(31, 42, 61, 0.08);
  border-radius: 20px;
  background: rgba(255, 253, 249, 0.96);
  box-shadow: 0 28px 74px rgba(80, 62, 37, 0.12);
}

body[data-page="local-edit"] .section-title--compact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 460px);
  gap: 24px;
  align-items: end;
  margin: 0 0 18px;
}

body[data-page="local-edit"] .local-edit-eyebrow {
  display: block;
  margin: 0 0 9px;
  color: #9a784c;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

body[data-page="local-edit"] .section-title--compact h2,
body[data-page="local-edit"]:not([data-page="index"]) .container > .section > .section-title.section-title--compact h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(2.15rem, 3vw, 3.15rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: 0;
}

body[data-page="local-edit"] .section-title--compact p,
body[data-page="local-edit"]:not([data-page="index"]) .container > .section > .section-title.section-title--compact p {
  justify-self: end;
  max-width: 430px;
  margin: 0;
  color: #344054;
  text-align: right;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.65;
}

body[data-page="local-edit"] .local-edit-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 16px;
  padding: 8px;
  border: 1px solid rgba(31, 42, 61, 0.08);
  border-radius: 14px;
  background: #f7f2eb;
}

body[data-page="local-edit"] .local-edit-flow-step {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  color: #667085;
}

body[data-page="local-edit"] .local-edit-flow-step span {
  width: 24px;
  height: 24px;
  background: #fffefa;
  color: #9a784c;
}

body[data-page="local-edit"] .local-edit-flow-step.is-active {
  color: #162033;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(80, 62, 37, 0.07);
}

body[data-page="local-edit"] .local-edit-flow-step.is-active span {
  color: #ffffff;
  background: #1677ff;
}

body[data-page="local-edit"] .local-edit-flow-step.is-done span {
  color: #ffffff;
  background: #2f9e73;
}

body[data-page="local-edit"] .local-edit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

body[data-page="local-edit"] .local-edit-left-stack {
  display: grid;
  gap: 14px;
  min-width: 0;
}

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(31, 42, 61, 0.08);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(80, 62, 37, 0.08);
}

body[data-page="local-edit"] .local-edit-workspace {
  display: grid;
  gap: 10px;
  min-height: 548px;
  padding: 12px;
}

body[data-page="local-edit"] .local-edit-upload {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(430px, 52vh, 590px);
  padding: 28px;
  border: 1px dashed rgba(154, 120, 76, 0.34);
  border-radius: 12px;
  color: #182230;
  background:
    linear-gradient(180deg, #fbfaf7 0%, #f4efe8 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

body[data-page="local-edit"] .local-edit-upload::before {
  display: none !important;
  content: none !important;
}

body[data-page="local-edit"] .local-edit-upload-copy {
  display: grid;
  gap: 8px;
  width: min(380px, 100%);
  padding: 26px;
  border: 1px solid rgba(31, 42, 61, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  text-align: center;
  backdrop-filter: blur(10px);
}

body[data-page="local-edit"] .local-edit-upload-copy span {
  color: #9a784c;
  font-size: 0.78rem;
  font-weight: 900;
}

body[data-page="local-edit"] .local-edit-upload .local-edit-upload-copy h3,
body[data-page="local-edit"] .local-edit-upload h3 {
  margin: 0;
  color: #111827;
  font-size: 1.56rem;
  font-weight: 900;
  line-height: 1.18;
}

body[data-page="local-edit"] .local-edit-upload .local-edit-upload-copy p,
body[data-page="local-edit"] .local-edit-upload p {
  margin: 0;
  color: #667085;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.65;
}

body[data-page="local-edit"] .local-edit-workspace-head {
  min-height: 42px;
  padding: 7px 10px 7px 12px;
  border: 1px solid rgba(31, 42, 61, 0.08);
  border-radius: 10px;
  background: #fbfaf7;
}

body[data-page="local-edit"] .local-edit-workspace-head[hidden],
body[data-page="local-edit"] .local-edit-toolbar[hidden],
body[data-page="local-edit"] .local-edit-canvas-viewport[hidden] {
  display: none !important;
}

body[data-page="local-edit"] .local-edit-toolbar {
  width: max-content;
  max-width: 100%;
  justify-content: flex-start;
  padding: 5px;
  border: 1px solid rgba(31, 42, 61, 0.08);
  border-radius: 999px;
  background: #fbfaf7;
}

body[data-page="local-edit"] .local-edit-toolbar span {
  min-width: 54px;
  color: #667085;
  font-size: 0.82rem;
  font-weight: 900;
  text-align: center;
}

body[data-page="local-edit"] .local-edit-canvas-viewport {
  min-height: clamp(430px, 52vh, 590px);
  max-height: clamp(500px, 65vh, 700px);
  padding: 12px;
  border: 1px solid rgba(31, 42, 61, 0.08);
  border-radius: 12px;
  background: #f4efe8;
}

body[data-page="local-edit"] .local-edit-canvas-wrap {
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(80, 62, 37, 0.12);
}

body[data-page="local-edit"] .local-edit-canvas-viewport.is-processing::after {
  content: "Generating...";
}

body[data-page="local-edit"] .local-edit-panel {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 16px;
  padding: 20px;
  background: #fffefa;
}

body[data-page="local-edit"] .local-edit-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(31, 42, 61, 0.08);
}

body[data-page="local-edit"] .local-edit-panel-head strong {
  color: #111827;
  font-size: 1.08rem;
  font-weight: 900;
}

body[data-page="local-edit"] .local-edit-panel-head p {
  margin: 6px 0 0;
  color: #7c8798;
  font-size: 0.82rem;
  line-height: 1.45;
}

body[data-page="local-edit"] #localEditReadyHint {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f3eee7;
  color: #8a6a43;
  font-size: 0.76rem;
  font-weight: 900;
}

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: #344054;
  font-size: 0.88rem;
  font-weight: 900;
}

body[data-page="local-edit"] .local-edit-mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(31, 42, 61, 0.08);
  border-radius: 12px;
  background: #f7f2eb;
}

body[data-page="local-edit"] .local-edit-mode-tab {
  min-height: 40px;
  border: 1px solid rgba(31, 42, 61, 0.08);
  border-radius: 9px;
  background: #ffffff;
  color: #344054;
  box-shadow: none;
}

body[data-page="local-edit"] .local-edit-mode-tab.is-active {
  border-color: #1677ff;
  color: #ffffff;
  background: #1677ff;
  box-shadow: 0 10px 22px rgba(22, 119, 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: 126px;
  border: 1px solid rgba(31, 42, 61, 0.1);
  border-radius: 12px;
  background: #ffffff;
  color: #182230;
  line-height: 1.55;
}

body[data-page="local-edit"] .local-edit-reference-upload {
  min-height: 76px;
  border: 1px dashed rgba(154, 120, 76, 0.36);
  border-radius: 12px;
  background: #fbfaf7;
}

body[data-page="local-edit"] #localEditBrushValue {
  min-width: 40px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f3eee7;
  color: #8a6a43;
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
}

body[data-page="local-edit"] .local-edit-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 10px;
  margin-top: 0;
}

body[data-page="local-edit"] .local-edit-actions .btn,
body[data-page="local-edit"] .local-edit-result .btn {
  width: 100%;
  min-height: 48px;
  justify-content: center;
  border-radius: 12px;
  font-size: 0.94rem;
  font-weight: 900;
}

body[data-page="local-edit"] #localEditGenerateBtn,
body[data-page="local-edit"] #localEditDownloadBtn {
  border-color: #1677ff;
  color: #ffffff;
  background: #1677ff;
  box-shadow: 0 14px 28px rgba(22, 119, 255, 0.22);
}

body[data-page="local-edit"] #localEditGenerateBtn:disabled {
  border-color: rgba(31, 42, 61, 0.08);
  color: #7c8798;
  background: #e9edf3;
  box-shadow: none;
}

body[data-page="local-edit"] .local-edit-result {
  grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1fr) minmax(160px, 190px);
  gap: 14px;
  align-items: center;
  margin: 0;
  padding: 14px;
}

body[data-page="local-edit"] .local-edit-result[hidden] {
  display: none !important;
}

body[data-page="local-edit"] .local-edit-result .section-title--compact {
  display: block;
  margin: 0;
}

body[data-page="local-edit"] .local-edit-result .section-title--compact h2 {
  color: #111827;
  font-size: 1.12rem;
}

body[data-page="local-edit"] .local-edit-result .section-title--compact p {
  margin-top: 8px;
  color: #667085;
  text-align: left;
}

body[data-page="local-edit"] .local-edit-result-preview {
  min-height: 136px;
  border: 1px solid rgba(31, 42, 61, 0.08);
  border-radius: 10px;
  background: #f4efe8;
}

body[data-page="local-edit"] .local-edit-result .btnrow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0;
}

@media (max-width: 1080px) {
  body[data-page="local-edit"] .local-edit-layout,
  body[data-page="local-edit"] .local-edit-result {
    grid-template-columns: 1fr;
  }

  body[data-page="local-edit"] .local-edit-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  body[data-page="local-edit"] .container > .topbar,
  body[data-page="local-edit"] .container > .section {
    width: calc(100% - 24px);
  }

  body[data-page="local-edit"] .section-title--compact,
  body[data-page="local-edit"] .local-edit-flow {
    grid-template-columns: 1fr;
  }

  body[data-page="local-edit"] .section-title--compact p,
  body[data-page="local-edit"]:not([data-page="index"]) .container > .section > .section-title.section-title--compact p {
    justify-self: start;
    text-align: left;
  }

  body[data-page="local-edit"] .container > .section {
    padding: 18px;
  }

  body[data-page="local-edit"] .local-edit-upload,
  body[data-page="local-edit"] .local-edit-canvas-viewport {
    min-height: 340px;
  }
}

/* ========== 2026-06-18 Local Edit Pixel Rebuild ========== */
body[data-page="local-edit"] {
  min-width: 0;
  color: #211914;
  background: #ffffff !important;
}

body[data-page="local-edit"]::before {
  display: none !important;
  content: none !important;
}

body[data-page="local-edit"] .container {
  display: block;
  width: 100%;
  max-width: none;
  min-height: 100vh;
  padding: 0;
  background: #ffffff;
}

body[data-page="local-edit"] .container > .topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 88px;
  margin: 0;
  padding: 0 clamp(28px, 2vw, 32px);
  border: 0;
  border-bottom: 1px solid #e8e2db;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
  backdrop-filter: none;
}

body[data-page="local-edit"] .topbar .brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: #211914;
  text-decoration: none;
}

body[data-page="local-edit"] .brand-logo {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
  box-shadow: none;
}

body[data-page="local-edit"] .topbar .brand-copy {
  display: grid;
  gap: 2px;
}

body[data-page="local-edit"] .topbar .brand-title {
  color: #211914;
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0;
}

body[data-page="local-edit"] .topbar .brand-tagline {
  color: #8f8379;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: none;
}

body[data-page="local-edit"] .topbar .nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

body[data-page="local-edit"] .topbar .nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  min-height: 42px;
  padding: 0 22px;
  border: 1px solid #ded8d1;
  border-radius: 8px;
  color: #2c2926;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  background: #ffffff;
  box-shadow: none;
}

body[data-page="local-edit"] .topbar .nav a:last-child {
  border-color: #a57948;
  color: #ffffff;
  background: #a57948;
}

body[data-page="local-edit"] .container > .section {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 clamp(24px, 2vw, 30px) 40px;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
  backdrop-filter: none;
}

body[data-page="local-edit"] .local-edit-flow {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) 42px minmax(190px, 1fr) 42px minmax(220px, 1fr) 42px minmax(190px, 1fr);
  align-items: center;
  gap: 0;
  width: calc(100% + clamp(48px, 4vw, 60px));
  margin: 0 calc(clamp(24px, 2vw, 30px) * -1) 32px;
  padding: 14px clamp(30px, 3vw, 54px) 14px clamp(72px, 8.6vw, 132px);
  border: 0;
  border-bottom: 1px solid #e8e2db;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

body[data-page="local-edit"] .local-edit-flow > i {
  display: block;
  color: #b6aa9d;
  font-style: normal;
  font-size: 2rem;
  font-weight: 300;
  text-align: center;
  line-height: 1;
}

body[data-page="local-edit"] .local-edit-flow-step {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 58px;
  padding: 0;
  border-radius: 0;
  color: #251f1b;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-page="local-edit"] .local-edit-flow-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 1px solid #ded8d1;
  border-radius: 999px;
  color: #8b7e72;
  background: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

body[data-page="local-edit"] .local-edit-flow-step.is-active span {
  border-color: #a57948;
  color: #ffffff;
  background: #a57948;
}

body[data-page="local-edit"] .local-edit-flow-step.is-done span {
  border-color: #b28a5c;
  color: #ffffff;
  background: #b28a5c;
}

body[data-page="local-edit"] .local-edit-flow-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

body[data-page="local-edit"] .local-edit-flow-step strong {
  color: #211914;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

body[data-page="local-edit"] .local-edit-flow-step small {
  display: block;
  overflow: hidden;
  color: #a19a93;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page="local-edit"] .local-edit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 20px;
  align-items: start;
  width: min(1480px, 100%);
  margin: 0 auto;
}

body[data-page="local-edit"] .local-edit-left-stack {
  display: grid;
  gap: 20px;
  min-width: 0;
}

body[data-page="local-edit"] .local-edit-workspace {
  position: relative;
  display: block;
  min-height: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-page="local-edit"] .local-edit-upload {
  display: grid;
  place-items: center;
  width: 100%;
  height: clamp(430px, 39.8vw, 612px);
  min-height: 0;
  padding: 24px;
  overflow: hidden;
  border: 1px solid #ded8d1;
  border-radius: 10px;
  color: #211914;
  background: #fbfaf8;
  box-shadow: none;
  cursor: pointer;
}

body[data-page="local-edit"] .local-edit-upload::before {
  display: none !important;
  content: none !important;
}

body[data-page="local-edit"] .local-edit-upload-copy {
  display: grid;
  gap: 8px;
  place-items: center;
  width: min(390px, 82%);
  min-height: 148px;
  padding: 28px;
  border: 1px solid #e4dfd8;
  border-radius: 10px;
  background: #ffffff;
  text-align: center;
  box-shadow: 0 10px 26px rgba(46, 38, 29, 0.04);
  backdrop-filter: none;
}

body[data-page="local-edit"] .local-edit-upload-copy span {
  color: #9b7a52;
  font-size: 0.78rem;
  font-weight: 800;
}

body[data-page="local-edit"] .local-edit-upload .local-edit-upload-copy h3,
body[data-page="local-edit"] .local-edit-upload h3 {
  margin: 0;
  color: #111827;
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1.15;
}

body[data-page="local-edit"] .local-edit-upload .local-edit-upload-copy p,
body[data-page="local-edit"] .local-edit-upload p {
  margin: 0;
  color: #687386;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.55;
}

body[data-page="local-edit"] .local-edit-workspace-head {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: rgba(30, 24, 18, 0.88);
  box-shadow: none;
}

body[data-page="local-edit"] .local-edit-workspace-head[hidden],
body[data-page="local-edit"] .local-edit-toolbar[hidden],
body[data-page="local-edit"] .local-edit-canvas-viewport[hidden],
body[data-page="local-edit"] #localEditReadyHint[hidden] {
  display: none !important;
}

body[data-page="local-edit"] #localEditImageMeta {
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
}

body[data-page="local-edit"] #localEditImageMeta::before {
  content: "原图 ";
  margin-right: 5px;
}

body[data-page="local-edit"] .local-edit-mini-btn {
  display: none;
}

body[data-page="local-edit"] .local-edit-canvas-viewport {
  display: grid;
  place-items: center;
  width: 100%;
  height: clamp(430px, 39.8vw, 612px);
  min-height: 0;
  max-height: none;
  padding: 0;
  overflow: auto;
  border: 1px solid #ded8d1;
  border-radius: 10px;
  background: #f3eee8;
  box-shadow: none;
  overscroll-behavior: contain;
}

body[data-page="local-edit"] .local-edit-canvas-wrap {
  overflow: hidden;
  margin: 0 auto;
  border-radius: 9px;
  background: #f3eee8;
  box-shadow: none;
  touch-action: none;
}

body[data-page="local-edit"] .local-edit-canvas-wrap canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}

body[data-page="local-edit"] #localEditMaskCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: none;
}

body[data-page="local-edit"] .local-edit-toolbar {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: auto;
  max-width: calc(100% - 40px);
  padding: 0;
  overflow: hidden;
  border: 1px solid #e2dcd4;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(34, 28, 22, 0.14);
  transform: translateX(-50%);
}

body[data-page="local-edit"] .local-edit-tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-right: 1px solid #eee9e2;
  border-radius: 0;
  color: #433b34;
  background: #ffffff;
  box-shadow: none;
  font-size: 0.9rem;
  font-weight: 800;
}

body[data-page="local-edit"] .local-edit-tool-btn:last-child {
  min-width: 100px;
  border-right: 0;
}

body[data-page="local-edit"] .local-edit-toolbar span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  min-height: 42px;
  border-right: 1px solid #eee9e2;
  color: #433b34;
  font-size: 0.9rem;
  font-weight: 800;
}

body[data-page="local-edit"] .local-edit-canvas-viewport.is-processing::before {
  position: absolute;
  inset: 0;
  z-index: 7;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.72);
  content: "";
}

body[data-page="local-edit"] .local-edit-canvas-viewport.is-processing::after {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 8;
  min-width: 138px;
  padding: 13px 20px;
  border-radius: 999px;
  color: #211914;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(34, 28, 22, 0.14);
  font-size: 0.95rem;
  font-weight: 900;
  text-align: center;
  transform: translate(-50%, -50%);
  content: "生成中...";
}

body[data-page="local-edit"] .local-edit-result-tray {
  display: grid;
  gap: 18px;
  min-height: 206px;
  padding: 18px;
  border: 1px solid #e5ded6;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: none;
}

body[data-page="local-edit"] .local-edit-result-tray h3 {
  margin: 0;
  color: #332820;
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.25;
}

body[data-page="local-edit"] .local-edit-result-strip {
  display: flex;
  align-items: stretch;
  gap: 14px;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 2px;
}

body[data-page="local-edit"] .local-edit-result-empty {
  display: grid;
  place-items: center;
  flex: 1 0 100%;
  min-height: 122px;
  margin: 0;
  border: 1px dashed #d9d1c7;
  border-radius: 8px;
  color: #8f857a;
  background: #fffdfb;
  font-size: 0.9rem;
  font-weight: 800;
}

body[data-page="local-edit"] .local-edit-result-empty[hidden] {
  display: none !important;
}

body[data-page="local-edit"] .local-edit-result-thumb {
  position: relative;
  flex: 0 0 176px;
  min-height: 122px;
  padding: 0;
  border: 1px solid #e5ded6;
  border-radius: 8px;
  background: #f8f3ec;
  box-shadow: none;
  cursor: pointer;
  overflow: hidden;
}

body[data-page="local-edit"] .local-edit-result-thumb img {
  display: block;
  width: 100%;
  height: 122px;
  object-fit: cover;
}

body[data-page="local-edit"] .local-edit-result-thumb span {
  position: absolute;
  left: 10px;
  bottom: 8px;
  padding: 5px 8px;
  border-radius: 6px;
  color: #ffffff;
  background: rgba(35, 25, 16, 0.76);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
}

body[data-page="local-edit"] .local-edit-result-thumb:hover {
  border-color: #a77945;
}

body[data-page="local-edit"] .local-edit-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 32px;
  background: rgba(22, 17, 12, 0.72);
  backdrop-filter: blur(8px);
}

body[data-page="local-edit"] .local-edit-lightbox[hidden] {
  display: none !important;
}

body[data-page="local-edit"] .local-edit-lightbox-panel {
  position: relative;
  display: grid;
  place-items: center;
  width: min(1120px, 94vw);
  max-height: 90vh;
}

body[data-page="local-edit"] .local-edit-lightbox-panel img {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
  object-fit: contain;
}

body[data-page="local-edit"] .local-edit-lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  min-width: 64px;
  height: 36px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(20, 14, 9, 0.72);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 900;
  cursor: pointer;
}

body[data-page="local-edit"] .local-edit-new-result {
  display: none !important;
}

body[data-page="local-edit"] .local-edit-panel {
  position: sticky;
  top: 22px;
  display: grid;
  gap: 24px;
  min-height: 836px;
  padding: 28px 24px 24px;
  border: 1px solid #e5ded6;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: none;
}

body[data-page="local-edit"] .local-edit-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0;
  border: 0;
}

body[data-page="local-edit"] .local-edit-panel-head strong {
  display: block;
  color: #332820;
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.25;
}

body[data-page="local-edit"] .local-edit-help {
  color: #9d948b;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

body[data-page="local-edit"] .local-edit-controls {
  display: grid;
  gap: 24px;
}

body[data-page="local-edit"] .local-edit-controls label,
body[data-page="local-edit"] .local-edit-reference {
  display: grid;
  gap: 12px;
  color: #332820;
  font-size: 0.92rem;
  font-weight: 900;
}

body[data-page="local-edit"] .local-edit-controls > label:first-child > span {
  display: none;
}

body[data-page="local-edit"] .local-edit-mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid #ded8d1;
  border-radius: 8px;
  background: #ffffff;
}

body[data-page="local-edit"] .local-edit-mode-tab {
  min-height: 44px;
  border: 0;
  border-right: 1px solid #ebe5de;
  border-radius: 0;
  color: #332820;
  background: #ffffff;
  box-shadow: none;
  font-size: 0.92rem;
  font-weight: 900;
}

body[data-page="local-edit"] .local-edit-mode-tab:last-child {
  border-right: 0;
}

body[data-page="local-edit"] .local-edit-mode-tab.is-active {
  border-color: #a57948;
  color: #ffffff;
  background: #a57948;
  box-shadow: none;
}

body[data-page="local-edit"] .local-edit-native-select {
  display: none;
}

body[data-page="local-edit"] .local-edit-textarea-shell {
  position: relative;
}

body[data-page="local-edit"] .local-edit-controls textarea {
  width: 100%;
  min-height: 170px;
  padding: 16px 16px 32px;
  border: 1px solid #e1dad2;
  border-radius: 9px;
  color: #332820;
  background: #ffffff;
  box-shadow: none;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.65;
  resize: vertical;
}

body[data-page="local-edit"] .local-edit-controls textarea::placeholder {
  color: #aaa39c;
  font-weight: 700;
}

body[data-page="local-edit"] #localEditPromptCount {
  position: absolute;
  right: 14px;
  bottom: 12px;
  color: #9a928a;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}

body[data-page="local-edit"] .local-edit-brush-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body[data-page="local-edit"] #localEditBrushValue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid #e2dcd4;
  border-radius: 6px;
  color: #332820;
  background: #ffffff;
  font-size: 0.9rem;
  font-weight: 900;
  text-align: center;
}

body[data-page="local-edit"] #localEditBrushValue::after {
  content: " px";
  margin-left: 5px;
  color: #8f867c;
  font-weight: 700;
}

body[data-page="local-edit"] .local-edit-controls input[type="range"] {
  width: 100%;
  accent-color: #a57948;
}

body[data-page="local-edit"] .local-edit-reference {
  gap: 14px;
}

body[data-page="local-edit"] .local-edit-reference.is-hidden,
body[data-page="local-edit"] .local-edit-reference-preview.is-hidden {
  display: none !important;
}

body[data-page="local-edit"] .local-edit-reference-upload {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  width: 100%;
  min-height: 150px;
  padding: 18px;
  border: 1px dashed #d9d1c7;
  border-radius: 8px;
  color: #332820;
  background: #fffdfb;
  font: inherit;
  text-align: center;
  cursor: pointer;
}

body[data-page="local-edit"] .local-edit-reference-upload strong {
  color: #67594b;
  font-size: 0.92rem;
  font-weight: 900;
}

body[data-page="local-edit"] .local-edit-reference-upload small {
  color: #aaa39c;
  font-size: 0.78rem;
  font-weight: 700;
}

body[data-page="local-edit"] .local-edit-reference-preview {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid #e5ded6;
  border-radius: 8px;
  background: #ffffff;
}

body[data-page="local-edit"] .local-edit-reference-preview img {
  width: 86px;
  height: 70px;
  object-fit: contain;
  border-radius: 6px;
  background: #f6f2ed;
}

body[data-page="local-edit"] .local-edit-reference-preview p {
  margin: 0 0 8px;
  overflow: hidden;
  color: #332820;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page="local-edit"] .local-edit-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.28fr);
  gap: 14px;
  align-self: end;
  margin-top: auto;
}

body[data-page="local-edit"] .local-edit-actions .btn,
body[data-page="local-edit"] .local-edit-result .btn {
  width: 100%;
  min-height: 60px;
  justify-content: center;
  border-radius: 8px;
  box-shadow: none;
  font-size: 0.96rem;
  font-weight: 900;
}

body[data-page="local-edit"] #localEditClearMaskBtn,
body[data-page="local-edit"] #localEditReferenceRemoveBtn,
body[data-page="local-edit"] #localEditContinueBtn {
  border: 1px solid #e4ded6;
  color: #5c5147;
  background: #ffffff;
  box-shadow: none;
}

body[data-page="local-edit"] #localEditGenerateBtn,
body[data-page="local-edit"] #localEditDownloadBtn {
  border: 1px solid #a57948;
  color: #ffffff;
  background: #a57948;
  box-shadow: none;
}

body[data-page="local-edit"] #localEditGenerateBtn:disabled {
  border-color: #dde1e7;
  color: #8b95a4;
  background: #e9edf3;
  box-shadow: none;
  cursor: not-allowed;
}

body[data-page="local-edit"] .local-edit-toolbar #localEditClearMaskBtn {
  min-width: 92px;
  border: 0;
  border-right: 1px solid #eee9e2;
  color: #b42318;
  background: #fff7f7;
}

body[data-page="local-edit"] .local-edit-toolbar #localEditClearMaskBtn:hover {
  color: #991b1b;
  background: #fff0f0;
}

body[data-page="local-edit"] .local-edit-toolbar #localEditClearMaskBtn:disabled {
  color: #b8a9a1;
  background: #faf7f4;
  cursor: not-allowed;
}

body[data-page="local-edit"] .local-edit-generation-time {
  min-height: 34px;
  margin: 0;
  padding: 8px 12px;
  border-radius: 8px;
  color: #6d5c49;
  background: #f6f0e8;
  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: 0;
  padding: 18px;
  border: 1px solid #e5ded6;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: none;
}

body[data-page="local-edit"] .local-edit-result[hidden] {
  display: none !important;
}

body[data-page="local-edit"] .local-edit-lead-card,
body[data-page="local-edit"] .footer {
  display: none !important;
}

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

  body[data-page="local-edit"] .local-edit-panel {
    position: static;
    min-height: 0;
  }
}

@media (max-width: 860px) {
  body[data-page="local-edit"] .container > .topbar {
    min-height: 78px;
    padding-inline: 18px;
  }

  body[data-page="local-edit"] .topbar .brand-tagline {
    display: none;
  }

  body[data-page="local-edit"] .topbar .nav {
    gap: 8px;
  }

  body[data-page="local-edit"] .topbar .nav a {
    min-width: 82px;
    min-height: 38px;
    padding-inline: 14px;
    font-size: 0.86rem;
  }

  body[data-page="local-edit"] .container > .section {
    padding-inline: 14px;
  }

  body[data-page="local-edit"] .local-edit-flow {
    grid-template-columns: 1fr;
    gap: 14px;
    width: calc(100% + 28px);
    margin-inline: -14px;
    padding: 18px;
  }

  body[data-page="local-edit"] .local-edit-flow > i {
    display: none;
  }

  body[data-page="local-edit"] .local-edit-upload,
  body[data-page="local-edit"] .local-edit-canvas-viewport {
    height: 360px;
  }

  body[data-page="local-edit"] .local-edit-panel {
    padding: 20px;
  }
}

body[data-page="local-edit"]:not([data-page="index"]) .container {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #ffffff !important;
}

body[data-page="local-edit"]:not([data-page="index"]) .container > .topbar {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

body[data-page="local-edit"]:not([data-page="index"]) .container > .section {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

body[data-page="local-edit"] .local-edit-canvas-viewport {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: clamp(430px, 39.8vw, 612px) !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: hidden !important;
  border-radius: 10px !important;
  background: #f3eee8 !important;
  scrollbar-width: none;
  touch-action: none;
}

body[data-page="local-edit"] .local-edit-canvas-viewport::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body[data-page="local-edit"] .local-edit-canvas-wrap {
  position: absolute !important;
  left: 50%;
  top: 50%;
  margin: 0 !important;
  overflow: hidden !important;
  border-radius: 9px !important;
  background: #f3eee8 !important;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  will-change: transform, width, height;
}

body[data-page="local-edit"] #localEditMaskCanvas {
  cursor: crosshair;
}

body[data-page="local-edit"] .local-edit-canvas-viewport.is-pan-mode #localEditMaskCanvas {
  cursor: grab;
}

body[data-page="local-edit"] .local-edit-canvas-viewport.is-dragging #localEditMaskCanvas {
  cursor: grabbing;
}

body[data-page="local-edit"] .local-edit-tool-btn.is-active {
  color: #ffffff;
  background: #a57948;
}

/* ========== Step1 高级展示页 ========== */
body[data-page="step1"] {
  height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  color: #fffaf0;
  background: #040403 url("home-v2/home-hero-user.jpg?v=20260617b") 52% center / cover fixed no-repeat;
}

body[data-page="step1"]::before {
  background:
    linear-gradient(90deg, rgba(4, 4, 3, 0.96) 0%, rgba(7, 6, 5, 0.84) 34%, rgba(9, 8, 7, 0.56) 68%, rgba(4, 4, 4, 0.74) 100%),
    linear-gradient(180deg, rgba(4, 3, 2, 0.72) 0%, rgba(4, 3, 2, 0.34) 42%, rgba(3, 3, 2, 0.86) 100%);
  animation: none;
}

body[data-page="step1"]::after {
  background:
    radial-gradient(circle at 18% 66%, rgba(220, 169, 73, 0.12), transparent 28%),
    radial-gradient(circle at 78% 10%, rgba(255, 255, 255, 0.08), transparent 31%);
  opacity: 0.65;
}

body[data-page="step1"] .step1-container {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr);
  align-items: stretch;
  justify-content: stretch !important;
  gap: clamp(16px, 2.7vh, 30px) !important;
  width: 100% !important;
  max-width: none !important;
  height: 100svh !important;
  min-height: 100svh !important;
  margin: 0 !important;
  padding: clamp(16px, 2.2vh, 30px) clamp(16px, 2.6vw, 40px) 72px !important;
}

body[data-page="step1"] .step1-container > .step1-topbar,
body[data-page="step1"] .step1-container > .step1-hero,
body[data-page="step1"] .step1-container > .step1-footer {
  width: min(1328px, 100%) !important;
  margin-inline: auto !important;
}

body[data-page="step1"] .step1-topbar {
  min-height: clamp(70px, 9.5vh, 84px);
  padding: 12px clamp(18px, 2.6vw, 38px) !important;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background: linear-gradient(110deg, rgba(22, 27, 32, 0.86), rgba(17, 20, 24, 0.72));
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(24px);
}

body[data-page="step1"] .step1-brand {
  gap: 14px;
}

body[data-page="step1"] .step1-brand-logo {
  width: clamp(44px, 5.8vh, 54px);
  height: clamp(44px, 5.8vh, 54px);
  border-radius: 17px;
  background: #fffaf3;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

body[data-page="step1"] .brand-title {
  color: #fffaf2;
  font-size: clamp(1.34rem, 1.65vw, 1.82rem);
  font-weight: 800;
  letter-spacing: 0;
}

body[data-page="step1"] .brand-tagline {
  margin-top: 2px;
  color: rgba(255, 247, 232, 0.72);
  font-size: clamp(0.8rem, 1vw, 0.92rem);
  font-weight: 500;
}

body[data-page="step1"] .step1-nav {
  gap: 10px;
}

body[data-page="step1"] .step1-nav a {
  min-height: 42px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 247, 232, 0.88);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

body[data-page="step1"] .step1-nav a:hover {
  color: #fff;
  border-color: rgba(239, 199, 124, 0.42);
  background: rgba(255, 255, 255, 0.16);
}

body[data-page="step1"] .step1-hero {
  display: grid;
  align-content: start;
  gap: clamp(18px, 3vh, 34px);
  min-height: 0;
  padding: clamp(18px, 4.4vh, 42px) clamp(8px, 1vw, 14px) 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

body[data-page="step1"] .step1-copy {
  max-width: 720px;
}

body[data-page="step1"] .step1-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 10px;
  padding: 0 12px;
  border: 1px solid rgba(239, 199, 124, 0.32);
  border-radius: 999px;
  color: #f0cd8a;
  background: rgba(239, 199, 124, 0.1);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body[data-page="step1"] .step1-copy h1 {
  margin: 0;
  color: #fff9ef;
  font-size: clamp(2.75rem, 4.8vw, 4.55rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: 0 16px 42px rgba(0, 0, 0, 0.42);
}

body[data-page="step1"] .step1-copy h1 span {
  color: #efc77c;
}

body[data-page="step1"] .step1-copy p {
  margin: 14px 0 0;
  color: rgba(255, 247, 232, 0.78);
  font-size: clamp(0.98rem, 1.45vw, 1.22rem);
  font-weight: 500;
}

body[data-page="step1"] .step1-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

body[data-page="step1"] .step1-facts span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 247, 232, 0.9);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
  font-size: 0.88rem;
  font-weight: 700;
}

body[data-page="step1"] .step1-facts img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

body[data-page="step1"] .step1-card-grid {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: clamp(14px, 1.6vw, 22px) !important;
  margin-top: 0 !important;
}

body[data-page="step1"] .step1-card-grid::before {
  content: "";
  position: absolute;
  inset: -18px;
  z-index: -1;
  border-radius: 32px;
  background: linear-gradient(90deg, rgba(5, 5, 4, 0.18), rgba(5, 5, 4, 0.42));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
  pointer-events: none;
}

body[data-page="step1"] .step1-card {
  position: relative;
  z-index: 1;
  min-height: clamp(286px, 42vh, 350px);
  padding: 0 !important;
  gap: 0 !important;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.34) !important;
  border-radius: 22px !important;
  background: rgba(12, 11, 10, 0.94) !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
  backdrop-filter: blur(16px);
  transform: translateY(0);
  transition: transform 0.32s var(--ease-out-expo), border-color 0.32s var(--ease-out-expo), box-shadow 0.32s var(--ease-out-expo), background 0.32s var(--ease-out-expo);
}

body[data-page="step1"] .step1-card:hover,
body[data-page="step1"] .step1-card.selected {
  transform: translateY(-5px);
  border-color: rgba(239, 199, 124, 0.55) !important;
  background: rgba(24, 21, 17, 0.88) !important;
  box-shadow: 0 28px 76px rgba(0, 0, 0, 0.46), 0 0 0 1px rgba(239, 199, 124, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

body[data-page="step1"] .step1-card--featured {
  border-color: rgba(239, 199, 124, 0.62) !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.46), 0 0 36px rgba(239, 199, 124, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

body[data-page="step1"] .step1-card .room-type-media {
  aspect-ratio: 16 / 9.6 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

body[data-page="step1"] .step1-card .room-type-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  background: linear-gradient(180deg, transparent 0%, rgba(16, 14, 12, 0.72) 56%, rgba(10, 9, 8, 0.96) 100%);
  pointer-events: none;
}

body[data-page="step1"] .step1-card .room-type-media img {
  opacity: 1;
  filter: saturate(1.02) contrast(1.06);
}

body[data-page="step1"] .step1-card:hover .room-type-media img,
body[data-page="step1"] .step1-card.selected .room-type-media img {
  opacity: 1;
  transform: scale(1.055);
  filter: saturate(1.04) contrast(1.04);
}

body[data-page="step1"] .step1-card-badge {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 1;
  min-height: 29px;
  padding: 0 12px;
  border: 1px solid rgba(239, 199, 124, 0.7);
  border-radius: 999px;
  color: #ffe4a7;
  background: rgba(24, 18, 10, 0.58);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 29px;
}

body[data-page="step1"] .step1-card .room-type-meta {
  display: block !important;
  min-height: 78px;
  padding: 17px 20px 4px !important;
  background: linear-gradient(180deg, rgba(12, 11, 10, 0.8), rgba(12, 11, 10, 0.92));
}

body[data-page="step1"] .step1-card .room-type-meta h3 {
  color: #fff8ec;
  font-size: clamp(1.18rem, 1.65vw, 1.55rem) !important;
  font-weight: 900;
  line-height: 1.14 !important;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.72);
  white-space: normal !important;
}

body[data-page="step1"] .step1-card .room-type-meta p {
  margin-top: 6px;
  color: rgba(255, 247, 232, 0.84);
  font-size: 0.88rem !important;
  font-weight: 600;
  line-height: 1.45 !important;
  text-align: left;
  white-space: normal !important;
}

body[data-page="step1"] .step1-card .room-type-btn {
  width: calc(100% - 40px) !important;
  min-height: 46px !important;
  margin: 7px 20px 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 16px !important;
  color: rgba(255, 247, 232, 0.96) !important;
  background: rgba(255, 255, 255, 0.14) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  font-size: 0.92rem !important;
  font-weight: 800;
  transition: transform 0.28s var(--ease-out-expo), border-color 0.28s var(--ease-out-expo), background 0.28s var(--ease-out-expo), color 0.28s var(--ease-out-expo);
}

body[data-page="step1"] .step1-card--featured .room-type-btn,
body[data-page="step1"] .step1-card.selected .room-type-btn {
  border-color: rgba(239, 199, 124, 0.76) !important;
  color: #21170a !important;
  background: linear-gradient(135deg, #d7a84c 0%, #ffd58a 100%) !important;
  box-shadow: 0 16px 34px rgba(239, 199, 124, 0.22) !important;
}

body[data-page="step1"] .step1-card:hover .room-type-btn {
  transform: translateY(-2px);
  border-color: rgba(239, 199, 124, 0.55) !important;
}

body[data-page="step1"] .step1-container > .footer.step1-footer {
  display: none !important;
}

body[data-page="step1"] .step1-fixed-note {
  display: flex;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 36px;
  z-index: 20;
  justify-content: center;
  align-items: center;
  min-height: 28px;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  color: rgba(255, 247, 232, 0.82);
  background: transparent !important;
  box-shadow: none !important;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.72);
  pointer-events: none;
}

body[data-page="step1"] .icp-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 9px;
  z-index: 20;
  width: auto;
  margin: 0;
  padding: 0;
  color: rgba(255, 247, 232, 0.48);
  background: transparent;
  font-size: 0.66rem;
  line-height: 1;
  text-align: center;
  pointer-events: auto;
}

body[data-page="step1"] .icp-footer a {
  color: inherit;
}

@media (max-width: 1400px) {
  body[data-page="step1"] {
    height: auto;
    min-height: 100svh;
    overflow-y: auto;
    background-position: 58% center;
  }

  body[data-page="step1"] .step1-container {
    height: auto !important;
    min-height: 100svh !important;
  }

  body[data-page="step1"] .step1-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  body[data-page="step1"] {
    height: auto;
    min-height: 100svh;
    overflow-y: auto;
    background-attachment: scroll;
    background-position: 62% center;
  }

  body[data-page="step1"] .step1-container {
    display: block !important;
    height: auto !important;
    min-height: 100svh !important;
    padding: 14px 14px 24px !important;
  }

  body[data-page="step1"] .step1-topbar {
    min-height: 72px;
    padding: 12px 14px !important;
    border-radius: 20px;
  }

  body[data-page="step1"] .step1-brand {
    gap: 10px;
  }

  body[data-page="step1"] .step1-brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  body[data-page="step1"] .brand-title {
    font-size: 1.1rem;
  }

  body[data-page="step1"] .brand-tagline {
    display: none;
  }

  body[data-page="step1"] .step1-nav {
    width: auto;
    gap: 8px;
  }

  body[data-page="step1"] .step1-nav a {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.84rem;
  }

  body[data-page="step1"] .step1-hero {
    padding: 52px 0 0 !important;
  }

  body[data-page="step1"] .step1-kicker {
    min-height: 30px;
    font-size: 0.7rem;
  }

  body[data-page="step1"] .step1-copy h1 {
    font-size: clamp(2.6rem, 14vw, 4rem);
  }

  body[data-page="step1"] .step1-copy p {
    font-size: 1rem;
  }

  body[data-page="step1"] .step1-facts {
    gap: 8px;
    margin-top: 20px;
  }

  body[data-page="step1"] .step1-facts span {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.82rem;
  }

  body[data-page="step1"] .step1-card-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    margin-top: 28px !important;
  }

  body[data-page="step1"] .step1-card {
    min-height: auto;
    border-radius: 20px !important;
  }

  body[data-page="step1"] .step1-card .room-type-media {
    aspect-ratio: 16 / 9 !important;
  }

  body[data-page="step1"] .step1-card .room-type-meta {
    min-height: auto;
    padding: 18px 18px 6px !important;
  }

  body[data-page="step1"] .step1-card .room-type-meta h3 {
    font-size: 1.45rem !important;
  }

  body[data-page="step1"] .step1-card .room-type-btn {
    width: calc(100% - 36px) !important;
    min-height: 50px !important;
    margin: 8px 18px 18px !important;
    border-radius: 15px !important;
  }

  body[data-page="step1"] .step1-container > .footer.step1-footer {
    display: none !important;
  }

  body[data-page="step1"] .step1-fixed-note {
    display: none;
  }

  body[data-page="step1"] .icp-footer {
    position: static;
    margin: 22px 0 0;
    padding-bottom: 0;
    font-size: 0.68rem;
  }
}

/* Step 1 final mock lock: keep this after older Step1 overrides */
body[data-page="step1"] {
  --step1-cream: #fff8ea;
  --step1-muted: rgba(255, 248, 234, 0.76);
  --step1-gold: #f0c675;
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
  color: var(--step1-cream);
  background: #050504 url("home-v2/step1-hero-bg-generated-optimized.webp?v=20260622a") center center / cover no-repeat;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

body[data-page="step1"]::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 22% 22%, rgba(255, 219, 153, 0.14), transparent 28%),
    linear-gradient(90deg, rgba(2, 3, 3, 0.62) 0%, rgba(6, 7, 7, 0.42) 46%, rgba(6, 7, 7, 0.12) 76%, rgba(2, 3, 3, 0.34) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.1) 42%, rgba(0, 0, 0, 0.52) 100%);
  opacity: 1;
  animation: none;
}

body[data-page="step1"]::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 42%, rgba(0, 0, 0, 0.42) 100%);
  opacity: 0.9;
  animation: none;
}

body[data-page="step1"] .step1-stage,
body[data-page="step1"] .step1-stage * {
  box-sizing: border-box;
}

body[data-page="step1"] .step1-stage {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100svh;
  min-height: 100svh;
  padding: clamp(24px, 3vh, 34px) clamp(44px, 3vw, 58px) 0;
}

body[data-page="step1"] .step1-stage a {
  color: inherit;
  text-decoration: none;
}

body[data-page="step1"] .step1-progress {
  display: none !important;
}

body[data-page="step1"] .step1-glassbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: clamp(82px, 8.9vh, 96px);
  padding: 0 clamp(22px, 3.2vw, 48px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 26px;
  background: linear-gradient(90deg, rgba(34, 35, 34, 0.58), rgba(54, 51, 46, 0.46));
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(22px) saturate(128%);
}

body[data-page="step1"] .step1-logo {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 16px;
}

body[data-page="step1"] .step1-logo img {
  display: block;
  width: clamp(48px, 4vw, 58px);
  height: clamp(48px, 4vw, 58px);
  border-radius: 18px;
  background: #fff9ef;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

body[data-page="step1"] .step1-logo-title {
  color: #fffaf1;
  font-size: clamp(1.55rem, 2vw, 2.15rem);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

body[data-page="step1"] .step1-logo-tagline {
  margin-left: 2px;
  color: rgba(255, 248, 234, 0.74);
  font-size: clamp(0.9rem, 1.1vw, 1.05rem);
  font-weight: 500;
  white-space: nowrap;
}

body[data-page="step1"] .step1-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

body[data-page="step1"] .step1-action {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  height: 54px;
  padding: 0 26px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 248, 234, 0.92);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font: inherit;
  font-size: 0.98rem;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.24s var(--ease-out-expo), background 0.24s var(--ease-out-expo), transform 0.24s var(--ease-out-expo);
}

body[data-page="step1"] .step1-action::before {
  content: none !important;
  display: none !important;
}

body[data-page="step1"] .step1-action[href]::before {
  content: none !important;
}

body[data-page="step1"] button.step1-action::before {
  content: none !important;
}

body[data-page="step1"] .step1-action:hover {
  border-color: rgba(240, 198, 117, 0.4);
  background: rgba(255, 255, 255, 0.13);
  transform: translateY(-1px);
}

body[data-page="step1"] .step1-copy {
  width: min(940px, 70vw);
  max-width: none;
  margin-top: clamp(74px, 10.8vh, 116px);
  margin-left: clamp(36px, 2.2vw, 44px);
}

body[data-page="step1"] .step1-copy h1 {
  display: inline-flex;
  align-items: center;
  margin: 0;
  color: #fffaf0;
  font-family: "STZhongsong", "SimSun", "Songti SC", "Noto Serif CJK SC", serif;
  font-size: clamp(3.7rem, 4.35vw, 5.25rem);
  font-weight: 950;
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: nowrap;
  text-shadow: 0 24px 55px rgba(0, 0, 0, 0.54);
}

body[data-page="step1"] .step1-copy h1::after {
  content: "";
  flex: 0 0 clamp(78px, 7vw, 124px);
  height: 2px;
  margin-left: 24px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(240, 198, 117, 0.9), rgba(240, 198, 117, 0));
  box-shadow: 0 0 18px rgba(240, 198, 117, 0.42);
}

body[data-page="step1"] .step1-copy h1 span {
  color: var(--step1-gold);
  background: linear-gradient(135deg, #fff0b9 0%, #f2c66f 42%, #d99c3f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

body[data-page="step1"] .step1-copy p {
  margin: 24px 0 0;
  color: rgba(255, 248, 234, 0.82);
  font-size: clamp(1.25rem, 1.72vw, 1.78rem);
  font-weight: 650;
  line-height: 1.35;
  text-shadow: 0 14px 32px rgba(0, 0, 0, 0.62);
}

body[data-page="step1"] .step1-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(28px, 3.6vh, 42px);
}

body[data-page="step1"] .step1-facts span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  min-height: 0;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 999px;
  color: rgba(255, 248, 234, 0.9);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 14px 32px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px);
  font-size: clamp(0.92rem, 1vw, 1.05rem);
  font-weight: 800;
  white-space: nowrap;
}

body[data-page="step1"] .step1-facts img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(1.22);
}

body[data-page="step1"] .step1-options {
  position: absolute;
  left: clamp(72px, 5.4vw, 106px);
  right: clamp(72px, 5.4vw, 106px);
  bottom: clamp(92px, 11.8vh, 132px);
  display: grid;
  grid-template-columns: 1.05fr 1fr 1fr 1fr;
  gap: clamp(16px, 1.55vw, 26px);
}

body[data-page="step1"] .step1-option {
  position: relative;
  display: flex;
  flex-direction: column;
  height: clamp(350px, 43.2vh, 450px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 26px;
  color: var(--step1-cream);
  background: linear-gradient(180deg, rgba(18, 17, 15, 0.7) 0%, rgba(6, 6, 5, 0.92) 100%);
  box-shadow: 0 28px 74px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.09);
  cursor: pointer;
  outline: none;
  isolation: isolate;
  transition: transform 0.3s var(--ease-out-expo), border-color 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-out-expo);
}

body[data-page="step1"] .step1-option::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

body[data-page="step1"] .step1-option:hover,
body[data-page="step1"] .step1-option:focus-visible,
body[data-page="step1"] .step1-option.selected {
  transform: translateY(-5px);
  border-color: rgba(240, 198, 117, 0.6);
  box-shadow: 0 34px 84px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(240, 198, 117, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body[data-page="step1"] .step1-option--featured {
  border-color: rgba(240, 198, 117, 0.72);
  box-shadow: 0 34px 86px rgba(0, 0, 0, 0.5), 0 0 42px rgba(240, 198, 117, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body[data-page="step1"] .step1-option-media {
  position: relative;
  height: 56%;
  min-height: 0;
  overflow: hidden;
  background: #14110e;
}

body[data-page="step1"] .step1-option-media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 58%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 5, 4, 0) 0%, rgba(5, 5, 4, 0.34) 52%, rgba(5, 5, 4, 0.78) 100%);
}

body[data-page="step1"] .step1-option-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.99;
  filter: saturate(1.04) contrast(1.04);
  transition: transform 0.55s var(--ease-out-expo), filter 0.55s var(--ease-out-expo);
}

body[data-page="step1"] .step1-option:hover .step1-option-media img,
body[data-page="step1"] .step1-option.selected .step1-option-media img {
  transform: scale(1.045);
  filter: saturate(1.08) contrast(1.05);
}

body[data-page="step1"] .step1-option:nth-child(2) .step1-option-media img {
  object-position: center 50%;
}

body[data-page="step1"] .step1-option:nth-child(3) .step1-option-media img {
  object-position: center 54%;
}

body[data-page="step1"] .step1-option-badge {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid rgba(240, 198, 117, 0.72);
  border-radius: 999px;
  color: #ffe6ae;
  background: rgba(31, 22, 9, 0.66);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(14px);
  font-size: 0.86rem;
  font-weight: 850;
}

body[data-page="step1"] .step1-option-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: clamp(18px, 2vw, 26px) clamp(20px, 2.1vw, 28px) clamp(20px, 2vw, 26px);
  background: linear-gradient(180deg, rgba(7, 7, 6, 0.68), rgba(5, 5, 4, 0.94));
}

body[data-page="step1"] .step1-option h3 {
  margin: 0;
  color: #fffaf0;
  font-size: clamp(1.55rem, 1.95vw, 2.15rem);
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: 0;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.64);
}

body[data-page="step1"] .step1-option p {
  margin: 10px 0 0;
  color: rgba(255, 248, 234, 0.82);
  font-size: clamp(0.96rem, 1.08vw, 1.08rem);
  font-weight: 750;
  line-height: 1.28;
}

body[data-page="step1"] .step1-option-button {
  all: unset;
  box-sizing: border-box;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  width: 100% !important;
  height: clamp(50px, 5.5vh, 58px) !important;
  margin-top: auto !important;
  padding: 0 clamp(20px, 2.2vw, 26px) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 17px !important;
  color: rgba(255, 248, 234, 0.94) !important;
  background: rgba(255, 255, 255, 0.105) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  font-size: 1rem !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  cursor: pointer;
  transition: color 0.26s var(--ease-out-expo), background 0.26s var(--ease-out-expo), border-color 0.26s var(--ease-out-expo), transform 0.26s var(--ease-out-expo);
}

body[data-page="step1"] .step1-option-button span:last-child {
  font-size: 1.25rem;
  line-height: 1;
}

body[data-page="step1"] .step1-option--featured .step1-option-button,
body[data-page="step1"] .step1-option.selected .step1-option-button {
  border-color: rgba(255, 224, 154, 0.82) !important;
  color: #211407 !important;
  background: linear-gradient(135deg, #d9a94f 0%, #ffd98b 100%) !important;
  box-shadow: 0 16px 34px rgba(240, 198, 117, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.34) !important;
}

body[data-page="step1"] .step1-option:hover .step1-option-button,
body[data-page="step1"] .step1-option:focus-visible .step1-option-button {
  transform: translateY(-2px);
  border-color: rgba(240, 198, 117, 0.54) !important;
}

body[data-page="step1"] .step1-note {
  position: fixed;
  left: 50%;
  bottom: 36px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  transform: translateX(-50%);
  color: rgba(255, 248, 234, 0.84);
  font-size: clamp(0.9rem, 1vw, 1.02rem);
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
  text-shadow: 0 9px 22px rgba(0, 0, 0, 0.72);
  pointer-events: none;
}

body[data-page="step1"] .step1-note::before {
  content: "";
  width: 15px;
  height: 15px;
  border: 1px solid rgba(240, 198, 117, 0.62);
  border-radius: 50% 50% 45% 45%;
  background: radial-gradient(circle at center, rgba(240, 198, 117, 0.72) 0 2px, transparent 3px);
  box-shadow: 0 0 18px rgba(240, 198, 117, 0.2);
}

body[data-page="step1"] .icp-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 5;
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  color: rgba(255, 248, 234, 0.44);
  background: transparent;
  box-shadow: none;
  font-size: 0.68rem;
  line-height: 1;
  text-align: center;
  pointer-events: auto;
}

body[data-page="step1"] .icp-footer a {
  color: inherit;
}

@media (max-height: 820px) and (min-width: 1181px) {
  body[data-page="step1"] .step1-stage {
    padding-top: 22px;
  }

  body[data-page="step1"] .step1-glassbar {
    height: 78px;
    border-radius: 23px;
  }

  body[data-page="step1"] .step1-logo img {
    width: 48px;
    height: 48px;
  }

  body[data-page="step1"] .step1-copy {
    margin-top: 62px;
  }

  body[data-page="step1"] .step1-copy h1 {
    font-size: clamp(3.25rem, 4.05vw, 4.7rem);
  }

  body[data-page="step1"] .step1-copy p {
    margin-top: 16px;
  }

  body[data-page="step1"] .step1-facts {
    margin-top: 22px;
  }

  body[data-page="step1"] .step1-options {
    bottom: 80px;
  }

  body[data-page="step1"] .step1-option {
    height: clamp(326px, 41vh, 360px);
  }

  body[data-page="step1"] .step1-note {
    bottom: 30px;
  }
}

@media (max-width: 1180px) {
  body[data-page="step1"] {
    height: auto;
    min-height: 100svh;
    overflow-x: hidden;
    overflow-y: auto;
    background-attachment: scroll;
    background-position: 58% center;
  }

  body[data-page="step1"] .step1-stage {
    height: auto;
    min-height: 100svh;
    padding: 18px 20px 40px;
  }

  body[data-page="step1"] .step1-glassbar {
    height: auto;
    min-height: 76px;
    padding: 14px 16px;
    border-radius: 22px;
  }

  body[data-page="step1"] .step1-logo-title {
    font-size: 1.42rem;
  }

  body[data-page="step1"] .step1-logo-tagline {
    display: none;
  }

  body[data-page="step1"] .step1-action {
    min-width: auto;
    height: 44px;
    padding: 0 16px;
  }

  body[data-page="step1"] .step1-copy {
    width: 100%;
    margin: 64px 0 0;
  }

  body[data-page="step1"] .step1-copy h1 {
    font-size: clamp(3.25rem, 8.2vw, 5rem);
    text-wrap: balance;
  }

  body[data-page="step1"] .step1-copy h1::after {
    display: none;
  }

  body[data-page="step1"] .step1-copy p {
    font-size: clamp(1.05rem, 2.6vw, 1.45rem);
  }

  body[data-page="step1"] .step1-options {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 42px;
  }

  body[data-page="step1"] .step1-option {
    height: 380px;
  }

  body[data-page="step1"] .step1-note,
  body[data-page="step1"] .icp-footer {
    position: static;
    display: flex;
    justify-content: center;
    transform: none;
    margin-top: 30px;
    white-space: normal;
  }

  body[data-page="step1"] .icp-footer {
    margin-top: 14px;
  }
}

@media (max-width: 680px) {
  body[data-page="step1"] .step1-stage {
    padding: 14px 14px 28px;
  }

  body[data-page="step1"] .step1-glassbar {
    gap: 12px;
  }

  body[data-page="step1"] .step1-logo {
    gap: 10px;
  }

  body[data-page="step1"] .step1-logo img {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  body[data-page="step1"] .step1-logo-title {
    font-size: 1.18rem;
  }

  body[data-page="step1"] .step1-actions {
    gap: 8px;
  }

  body[data-page="step1"] .step1-action {
    height: 38px;
    padding: 0 11px;
    font-size: 0.82rem;
  }

  body[data-page="step1"] .step1-action::before {
    display: none;
  }

  body[data-page="step1"] .step1-copy {
    margin-top: 48px;
  }

  body[data-page="step1"] .step1-copy h1 {
    font-size: clamp(2.6rem, 13vw, 4.2rem);
  }

  body[data-page="step1"] .step1-facts {
    gap: 9px;
  }

  body[data-page="step1"] .step1-facts span {
    height: 40px;
    padding: 0 13px;
    font-size: 0.82rem;
  }

  body[data-page="step1"] .step1-options {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  body[data-page="step1"] .step1-option {
    height: 350px;
    border-radius: 22px;
  }

  body[data-page="step1"] .step1-option h3 {
    font-size: 1.55rem;
  }
}

/* ========== 2026-07-02 Step1 Apple Cover Flow ========== */
body[data-page="step1"] {
  --step1-ink: #17202a;
  --step1-subtle: #6a7280;
  --step1-soft: #f7f3ec;
  --step1-panel: rgba(255, 255, 255, 0.72);
  --step1-panel-strong: rgba(255, 255, 255, 0.88);
  --step1-blue: #3178ff;
  --step1-sage: #6fa68c;
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
  color: var(--step1-ink);
  background:
    linear-gradient(135deg, #fffefd 0%, #fbf7f0 42%, #f4efe6 100%);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

body[data-page="step1"]::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.28) 46%, rgba(221, 233, 246, 0.34) 100%),
    url("home-landing/feature-local-edit-room-960.webp?v=20260701imgopt1") right bottom / min(60vw, 820px) auto no-repeat;
  opacity: 0.58;
  filter: saturate(0.9);
  animation: none;
}

body[data-page="step1"]::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.2) 40%, rgba(244, 240, 233, 0.86) 100%);
  opacity: 1;
  animation: none;
}

body[data-page="step1"][data-page] {
  color: var(--step1-ink) !important;
  background:
    linear-gradient(135deg, #fffefd 0%, #fbf7f0 42%, #f4efe6 100%) !important;
}

body[data-page="step1"][data-page]::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.28) 46%, rgba(221, 233, 246, 0.34) 100%),
    url("home-landing/feature-local-edit-room-960.webp?v=20260701imgopt1") right bottom / min(60vw, 820px) auto no-repeat !important;
}

body[data-page="step1"][data-page]::after {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.2) 40%, rgba(244, 240, 233, 0.86) 100%) !important;
}

body[data-page="step1"] .step1-coverflow {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100svh;
  min-height: 100svh;
  padding: clamp(20px, 2.6vw, 42px);
  overflow: hidden;
}

body[data-page="step1"] .step1-coverflow-nav {
  height: 72px;
  width: min(1250px, 100%);
  margin: 0 auto;
  padding: 10px 14px 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 28px;
  color: var(--step1-ink);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 22px 60px rgba(69, 79, 95, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(26px) saturate(150%);
}

body[data-page="step1"] .step1-logo {
  gap: 12px;
  min-width: 0;
}

body[data-page="step1"] .step1-logo img {
  width: 50px;
  height: 50px;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(66, 76, 92, 0.12);
}

body[data-page="step1"] .step1-logo-title {
  color: var(--step1-ink);
  font-size: 1.32rem;
  font-weight: 820;
  line-height: 1;
  letter-spacing: 0;
}

body[data-page="step1"] .step1-logo-tagline {
  color: rgba(23, 32, 42, 0.54);
  font-size: 0.9rem;
  font-weight: 600;
}

body[data-page="step1"] .step1-actions {
  gap: 8px;
}

body[data-page="step1"] .step1-action {
  min-width: 0;
  height: 46px;
  padding: 0 20px;
  border: 1px solid rgba(220, 225, 233, 0.78);
  border-radius: 999px;
  color: #273241;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: none;
  font-size: 0.92rem;
  font-weight: 740;
}

body[data-page="step1"] .step1-action:hover,
body[data-page="step1"] .step1-action:focus-visible {
  border-color: rgba(49, 120, 255, 0.28);
  background: rgba(255, 255, 255, 0.86);
  transform: translateY(-1px);
}

body[data-page="step1"] .step1-coverflow-copy {
  position: absolute;
  left: clamp(56px, 7vw, 112px);
  top: clamp(150px, 18vh, 190px);
  z-index: 7;
  width: min(460px, 36vw);
  max-width: none;
  margin: 0;
}

body[data-page="step1"] .step1-coverflow-kicker {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border: 1px solid rgba(49, 120, 255, 0.16);
  border-radius: 999px;
  color: #2764d8;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 12px 26px rgba(71, 96, 130, 0.08);
  backdrop-filter: blur(18px);
  font-size: 0.75rem;
  font-weight: 820;
  letter-spacing: 0.04em;
}

body[data-page="step1"] .step1-coverflow-copy h1 {
  display: block;
  margin: 18px 0 0;
  color: var(--step1-ink);
  font-size: clamp(3.3rem, 5vw, 5.45rem);
  font-weight: 860;
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: none;
}

body[data-page="step1"] .step1-coverflow-copy h1::after {
  display: none;
}

body[data-page="step1"] .step1-coverflow-copy h1 span {
  color: #1a74f5;
  background: linear-gradient(135deg, #1a74f5 0%, #49a3ff 44%, #6fa68c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

body[data-page="step1"] .step1-coverflow-copy p {
  max-width: 350px;
  margin: 18px 0 0;
  color: var(--step1-subtle);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  font-weight: 560;
  line-height: 1.7;
  text-shadow: none;
}

body[data-page="step1"] .step1-mode-tabs {
  display: inline-flex;
  gap: 4px;
  margin-top: 26px;
  padding: 5px;
  border: 1px solid rgba(223, 228, 236, 0.86);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 16px 36px rgba(79, 91, 109, 0.09);
  backdrop-filter: blur(20px);
}

body[data-page="step1"] .step1-mode-tabs button {
  appearance: none;
  height: 38px;
  padding: 0 17px;
  border: 0;
  border-radius: 999px;
  color: #6b7482;
  background: transparent;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 760;
  cursor: pointer;
}

body[data-page="step1"] .step1-mode-tabs button.is-active {
  color: #182231;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(80, 92, 110, 0.12);
}

body[data-page="step1"] .step1-coverflow-shell {
  position: absolute;
  left: 0;
  right: 0;
  top: 126px;
  bottom: 0;
  z-index: 3;
  pointer-events: none;
}

body[data-page="step1"] .step1-coverflow-stage {
  position: absolute;
  left: 50%;
  top: 51%;
  width: min(960px, 64vw);
  height: min(670px, 68vh);
  transform: translate(-36%, -48%);
  perspective: 1350px;
  transform-style: preserve-3d;
  pointer-events: auto;
}

body[data-page="step1"] .step1-cover-card {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  width: clamp(370px, 35vw, 520px);
  height: clamp(470px, 58vh, 620px);
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.86) !important;
  border-radius: 46px !important;
  color: var(--step1-ink) !important;
  background: rgba(255, 255, 255, 0.72) !important;
  box-shadow:
    0 36px 90px rgba(72, 84, 102, 0.2),
    0 8px 24px rgba(72, 84, 102, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(28px) saturate(148%);
  isolation: isolate;
  cursor: pointer;
  pointer-events: auto;
  opacity: var(--cover-opacity, 1);
  filter: blur(var(--cover-blur, 0px)) saturate(var(--cover-saturate, 1));
  transform:
    translate(-50%, -50%)
    translateX(var(--cover-x, 0px))
    translateY(var(--cover-y, 0px))
    translateZ(var(--cover-z, 0px))
    rotateY(var(--cover-rotate, 0deg))
    scale(var(--cover-scale, 1));
  transition:
    transform 0.72s cubic-bezier(0.2, 1, 0.2, 1),
    opacity 0.45s ease,
    filter 0.58s ease,
    box-shadow 0.45s ease,
    border-color 0.45s ease;
  will-change: transform, opacity, filter;
}

body[data-page="step1"] .step1-cover-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 3;
  border-radius: 45px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  pointer-events: none;
  box-shadow: none;
}

body[data-page="step1"] .step1-cover-card::after {
  content: "";
  position: absolute;
  inset: auto 34px 18px;
  height: 24px;
  border-radius: 999px;
  background: rgba(70, 120, 185, 0.1);
  filter: blur(18px);
  pointer-events: none;
}

body[data-page="step1"] .step1-cover-card.is-active,
body[data-page="step1"] .step1-cover-card.selected {
  border-color: rgba(116, 166, 255, 0.78) !important;
  box-shadow:
    0 44px 100px rgba(71, 97, 141, 0.22),
    0 0 0 8px rgba(99, 154, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.96) !important;
}

body[data-page="step1"] .step1-cover-card.is-committing {
  transform:
    translate(-50%, -50%)
    translateX(var(--cover-x, 0px))
    translateY(calc(var(--cover-y, 0px) - 10px))
    translateZ(var(--cover-z, 0px))
    rotateY(var(--cover-rotate, 0deg))
    scale(calc(var(--cover-scale, 1) + 0.018));
}

body[data-page="step1"] .step1-cover-card .step1-option-media {
  position: relative;
  height: 61%;
  min-height: 0;
  overflow: hidden;
  border: 0 !important;
  border-radius: 0 !important;
  background: #f1f4f7 !important;
}

body[data-page="step1"] .step1-cover-card .step1-option-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 42%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.84) 100%);
  pointer-events: none;
}

body[data-page="step1"] .step1-cover-card .step1-option-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  filter: saturate(0.98) contrast(1.01);
  transform: scale(1.02);
  transition: transform 0.72s cubic-bezier(0.2, 1, 0.2, 1), filter 0.5s ease;
}

body[data-page="step1"] .step1-cover-card.is-active .step1-option-media img {
  transform: scale(1.055);
  filter: saturate(1.02) contrast(1.02);
}

body[data-page="step1"] .step1-cover-card .step1-option-body {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  padding: 24px 30px 28px;
  background: rgba(255, 255, 255, 0.9) !important;
}

body[data-page="step1"] .step1-option-index {
  display: inline-flex;
  align-items: center;
  width: max-content;
  height: 28px;
  margin-bottom: 13px;
  padding: 0 12px;
  border-radius: 999px;
  color: #2d72df;
  background: rgba(49, 120, 255, 0.1);
  font-size: 0.78rem;
  font-weight: 820;
}

body[data-page="step1"] .step1-cover-card h3 {
  margin: 0;
  color: var(--step1-ink);
  font-size: clamp(1.72rem, 2vw, 2.1rem);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: 0;
  text-shadow: none;
}

body[data-page="step1"] .step1-cover-card p {
  max-width: 26em;
  margin: 10px 0 0;
  color: #697484;
  font-size: 0.98rem;
  font-weight: 560;
  line-height: 1.55;
}

body[data-page="step1"] .step1-cover-card .step1-option-button {
  all: unset;
  box-sizing: border-box;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  width: 100% !important;
  height: 52px !important;
  margin-top: auto !important;
  padding: 0 18px 0 21px !important;
  border: 1px solid rgba(205, 216, 230, 0.78) !important;
  border-radius: 999px !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #2d7dff 0%, #62b5ff 100%) !important;
  box-shadow: 0 14px 28px rgba(49, 120, 255, 0.22) !important;
  font-size: 0.98rem !important;
  font-weight: 790 !important;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

body[data-page="step1"] .step1-cover-card .step1-option-button i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #2370ee;
  background: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
}

body[data-page="step1"] .step1-cover-card .step1-option-button:hover,
body[data-page="step1"] .step1-cover-card .step1-option-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(49, 120, 255, 0.26) !important;
}

body[data-page="step1"][data-page] .step1-coverflow-stage {
  top: 45%;
  transform: translate(-36%, -48%);
}

body[data-page="step1"][data-page] .step1-cover-card.step1-option {
  width: clamp(390px, 35vw, 510px) !important;
  height: clamp(318px, 44.5vh, 430px) !important;
  border-radius: 42px !important;
  background: rgba(255, 255, 255, 0.76) !important;
}

body[data-page="step1"][data-page] .step1-cover-card .step1-option-media {
  height: 53% !important;
  aspect-ratio: auto !important;
}

body[data-page="step1"][data-page] .step1-cover-card .step1-option-body {
  padding: clamp(16px, 1.6vw, 23px) clamp(20px, 2vw, 28px) clamp(17px, 1.9vw, 24px) !important;
  background: rgba(255, 255, 255, 0.92) !important;
}

body[data-page="step1"][data-page] .step1-cover-card h3 {
  color: var(--step1-ink) !important;
  font-size: clamp(1.34rem, 1.72vw, 1.95rem) !important;
  line-height: 1.08 !important;
  text-shadow: none !important;
}

body[data-page="step1"][data-page] .step1-cover-card p {
  display: block !important;
  margin-top: 8px !important;
  color: #697484 !important;
  font-size: clamp(0.82rem, 1vw, 0.96rem) !important;
  line-height: 1.48 !important;
  text-shadow: none !important;
}

body[data-page="step1"][data-page] .step1-cover-card .step1-option-button,
body[data-page="step1"][data-page] .step1-cover-card.step1-option.selected .step1-option-button,
body[data-page="step1"][data-page] .step1-cover-card.step1-option.is-active .step1-option-button {
  height: clamp(43px, 5.5vh, 52px) !important;
  margin-top: auto !important;
  border: 1px solid rgba(205, 216, 230, 0.78) !important;
  border-radius: 999px !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #2d7dff 0%, #62b5ff 100%) !important;
  box-shadow: 0 14px 28px rgba(49, 120, 255, 0.22) !important;
}

body[data-page="step1"][data-page] .step1-coverflow-detail {
  top: clamp(126px, 18vh, 166px);
  bottom: auto;
}

body[data-page="step1"][data-page] .step1-coverflow-controls {
  transform: translateX(-94%);
}

body[data-page="step1"] .step1-coverflow-controls {
  position: absolute;
  left: 50%;
  bottom: clamp(54px, 7vh, 76px);
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  transform: translateX(-20%);
  pointer-events: auto;
}

body[data-page="step1"] .step1-coverflow-arrow {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(218, 226, 236, 0.9);
  border-radius: 50%;
  color: #253140;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 15px 36px rgba(71, 83, 101, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  font-size: 1.35rem;
  cursor: pointer;
  transition: transform 0.22s ease, background 0.22s ease;
}

body[data-page="step1"] .step1-coverflow-arrow:hover,
body[data-page="step1"] .step1-coverflow-arrow:focus-visible {
  background: #ffffff;
  transform: translateY(-2px);
}

body[data-page="step1"] .step1-coverflow-dots {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 86px;
  justify-content: center;
}

body[data-page="step1"] .step1-coverflow-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(39, 49, 64, 0.2);
  transition: width 0.28s ease, background 0.28s ease;
}

body[data-page="step1"] .step1-coverflow-dot.is-active {
  width: 25px;
  background: #2f7cff;
}

body[data-page="step1"] .step1-coverflow-detail {
  position: absolute;
  right: clamp(48px, 5.5vw, 92px);
  bottom: clamp(58px, 7.6vh, 86px);
  z-index: 7;
  display: grid;
  gap: 8px;
  width: min(270px, 22vw);
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 26px;
  color: var(--step1-ink);
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 24px 56px rgba(70, 82, 100, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(22px) saturate(150%);
  pointer-events: none;
}

body[data-page="step1"] .step1-coverflow-detail span {
  color: #2d72df;
  font-size: 0.78rem;
  font-weight: 850;
}

body[data-page="step1"] .step1-coverflow-detail strong {
  color: var(--step1-ink);
  font-size: 1.1rem;
  font-weight: 840;
  line-height: 1.2;
}

body[data-page="step1"] .step1-coverflow-detail small {
  color: #697484;
  font-size: 0.86rem;
  font-weight: 560;
  line-height: 1.52;
}

body[data-page="step1"] .step1-note {
  position: fixed;
  left: clamp(56px, 7vw, 112px);
  bottom: clamp(42px, 6vh, 68px);
  z-index: 7;
  transform: none;
  color: #687484;
  font-size: 0.94rem;
  font-weight: 650;
  text-shadow: none;
}

body[data-page="step1"] .step1-note::before {
  width: 9px;
  height: 9px;
  border: 0;
  background: #6fa68c;
  box-shadow: 0 0 0 5px rgba(111, 166, 140, 0.15);
}

body[data-page="step1"] .icp-footer {
  color: rgba(43, 52, 66, 0.42);
  text-shadow: none;
}

body[data-page="step1"].is-step1-navigating .step1-cover-card:not(.is-committing) {
  opacity: 0.28;
  filter: blur(8px) saturate(0.8);
}

@media (max-width: 1180px) {
  body[data-page="step1"] {
    height: auto;
    min-height: 100svh;
    overflow-x: hidden;
    overflow-y: auto;
  }

  body[data-page="step1"]::before {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.42)),
      url("home-landing/feature-local-edit-room-960.webp?v=20260701imgopt1") center bottom / 100% auto no-repeat;
  }

  body[data-page="step1"] .step1-coverflow {
    height: auto;
    min-height: 100svh;
    padding: 18px 18px 42px;
  }

  body[data-page="step1"] .step1-coverflow-nav {
    height: auto;
    min-height: 70px;
    border-radius: 24px;
  }

  body[data-page="step1"] .step1-logo-tagline {
    display: none;
  }

  body[data-page="step1"] .step1-coverflow-copy {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    margin: 54px auto 0;
    text-align: center;
  }

  body[data-page="step1"] .step1-coverflow-copy p {
    margin-inline: auto;
  }

  body[data-page="step1"] .step1-coverflow-shell {
    position: relative;
    top: auto;
    bottom: auto;
    min-height: 610px;
    margin-top: 24px;
  }

  body[data-page="step1"] .step1-coverflow-stage {
    top: 290px;
    width: 100%;
    height: 530px;
    transform: translate(-50%, -50%);
  }

  body[data-page="step1"] .step1-cover-card {
    width: min(430px, 72vw);
    height: 500px;
  }

  body[data-page="step1"] .step1-coverflow-controls {
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
  }

  body[data-page="step1"] .step1-coverflow-detail,
  body[data-page="step1"] .step1-note {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
    width: min(460px, 100%);
    margin: 12px auto 0;
    text-align: center;
  }

  body[data-page="step1"] .step1-note {
    justify-content: center;
  }
}

@media (max-width: 680px) {
  body[data-page="step1"] .step1-coverflow {
    padding: 14px 14px 30px;
  }

  body[data-page="step1"] .step1-coverflow-nav {
    padding: 10px;
  }

  body[data-page="step1"] .step1-logo img {
    width: 44px;
    height: 44px;
    border-radius: 15px;
  }

  body[data-page="step1"] .step1-logo-title {
    font-size: 1.12rem;
  }

  body[data-page="step1"] .step1-action {
    height: 38px;
    padding: 0 12px;
    font-size: 0.82rem;
  }

  body[data-page="step1"] .step1-coverflow-copy {
    margin-top: 38px;
  }

  body[data-page="step1"] .step1-coverflow-copy h1 {
    font-size: clamp(2.65rem, 13vw, 4.1rem);
  }

  body[data-page="step1"] .step1-mode-tabs {
    width: 100%;
    justify-content: space-between;
  }

  body[data-page="step1"] .step1-mode-tabs button {
    flex: 1 1 0;
    padding: 0 8px;
    font-size: 0.82rem;
  }

  body[data-page="step1"] .step1-coverflow-shell {
    min-height: 565px;
  }

  body[data-page="step1"] .step1-coverflow-stage {
    top: 260px;
    height: 500px;
  }

  body[data-page="step1"] .step1-cover-card {
    width: min(330px, 84vw);
    height: 455px;
    border-radius: 34px !important;
  }

  body[data-page="step1"] .step1-cover-card::before {
    border-radius: 33px;
  }

  body[data-page="step1"] .step1-cover-card .step1-option-body {
    padding: 20px 22px 22px;
  }

  body[data-page="step1"] .step1-cover-card h3 {
    font-size: 1.42rem;
  }

  body[data-page="step1"] .step1-cover-card p {
    font-size: 0.9rem;
  }
}

@media (max-width: 1180px) {
  body[data-page="step1"][data-page] .step1-coverflow {
    overflow: visible;
  }

  body[data-page="step1"][data-page] .step1-coverflow-stage {
    top: 290px;
    transform: translate(-76%, -50%);
  }

  body[data-page="step1"][data-page] .step1-cover-card.step1-option {
    width: min(430px, 72vw) !important;
    height: 500px !important;
  }

  body[data-page="step1"][data-page] .step1-coverflow-controls {
    transform: translateX(-50%);
  }

  body[data-page="step1"][data-page] .step1-coverflow-detail {
    top: auto;
    bottom: auto;
  }
}

@media (max-width: 680px) {
  body[data-page="step1"][data-page] .step1-coverflow-shell {
    min-height: 520px;
  }

  body[data-page="step1"][data-page] .step1-coverflow-stage {
    top: 100px;
    height: 380px;
    transform: translate(-92%, -50%);
  }

  body[data-page="step1"][data-page] .step1-cover-card.step1-option {
    width: min(330px, 84vw) !important;
    height: 330px !important;
  }

  body[data-page="step1"][data-page] .step1-coverflow-controls {
    top: 148px;
    bottom: auto;
    transform: translateX(-50%);
  }
}

@media (min-width: 1181px) {
  body[data-page="step1"][data-page] .step1-coverflow {
    padding: clamp(18px, 1.55vw, 32px) 0 0;
  }

  body[data-page="step1"][data-page] .step1-coverflow-nav {
    width: calc(100% - clamp(220px, 17.2vw, 352px));
    height: clamp(70px, 5.4vw, 111px);
    padding: clamp(8px, 0.95vw, 18px) clamp(13px, 1.35vw, 28px);
    border-radius: clamp(26px, 1.7vw, 36px);
    box-shadow: 0 28px 78px rgba(70, 82, 100, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.96);
  }

  body[data-page="step1"][data-page] .step1-logo img {
    width: clamp(44px, 3.05vw, 62px);
    height: clamp(44px, 3.05vw, 62px);
    border-radius: clamp(15px, 1vw, 21px);
  }

  body[data-page="step1"][data-page] .step1-logo-title {
    font-size: clamp(1.34rem, 1.68vw, 2.15rem);
  }

  body[data-page="step1"][data-page] .step1-logo-tagline {
    font-size: clamp(0.78rem, 0.84vw, 1.08rem);
  }

  body[data-page="step1"][data-page] .step1-action {
    height: clamp(42px, 3.15vw, 64px);
    padding-inline: clamp(20px, 1.55vw, 32px);
    font-size: clamp(0.88rem, 0.86vw, 1.1rem);
  }

  body[data-page="step1"][data-page] .step1-coverflow-copy {
    left: clamp(88px, 6.95vw, 142px);
    top: clamp(168px, 14.4vw, 294px);
    width: clamp(610px, 40vw, 820px);
    margin: 0 !important;
  }

  body[data-page="step1"][data-page] .step1-coverflow-copy h1 {
    font-size: clamp(3.15rem, 3.55vw, 4.1rem);
    white-space: nowrap;
  }

  body[data-page="step1"][data-page] .step1-coverflow-copy p {
    max-width: clamp(315px, 24vw, 492px);
    font-size: clamp(1.05rem, 1.48vw, 1.9rem);
    font-weight: 700;
  }

  body[data-page="step1"][data-page] .step1-mode-tabs {
    margin-top: clamp(30px, 2.55vw, 52px);
  }

  body[data-page="step1"][data-page] .step1-coverflow-stage {
    top: 44%;
    width: 64vw;
    height: min(68vh, 795px);
    transform: translate(-36%, -48%);
  }

  body[data-page="step1"][data-page] .step1-cover-card.step1-option {
    width: clamp(430px, 33.6vw, 688px) !important;
    height: clamp(320px, 24.3vw, 498px) !important;
    border-radius: clamp(34px, 2.35vw, 48px) !important;
  }

  body[data-page="step1"][data-page] .step1-cover-card::before {
    border-radius: clamp(33px, 2.28vw, 47px);
  }

  body[data-page="step1"][data-page] .step1-cover-card .step1-option-media {
    height: 51% !important;
  }

  body[data-page="step1"][data-page] .step1-cover-card .step1-option-body {
    padding: clamp(18px, 1.85vw, 38px) clamp(24px, 1.8vw, 37px) clamp(19px, 1.75vw, 36px) !important;
  }

  body[data-page="step1"][data-page] .step1-option-index {
    height: clamp(28px, 1.8vw, 37px);
    padding-inline: clamp(12px, 0.8vw, 16px);
    font-size: clamp(0.78rem, 0.84vw, 1.08rem);
  }

  body[data-page="step1"][data-page] .step1-cover-card h3 {
    font-size: clamp(1.7rem, 1.95vw, 2.5rem) !important;
  }

  body[data-page="step1"][data-page] .step1-cover-card p {
    font-size: clamp(0.9rem, 1.04vw, 1.34rem) !important;
    font-weight: 700;
  }

  body[data-page="step1"][data-page] .step1-cover-card .step1-option-button,
  body[data-page="step1"][data-page] .step1-cover-card.step1-option.selected .step1-option-button,
  body[data-page="step1"][data-page] .step1-cover-card.step1-option.is-active .step1-option-button {
    height: clamp(35px, 2.7vw, 55px) !important;
    font-size: clamp(0.92rem, 1vw, 1.28rem) !important;
  }

  body[data-page="step1"][data-page] .step1-cover-card .step1-option-button i {
    width: clamp(28px, 2.05vw, 42px);
    height: clamp(28px, 2.05vw, 42px);
    font-size: clamp(1rem, 1.18vw, 1.5rem);
  }

  body[data-page="step1"][data-page] .step1-coverflow-detail {
    top: clamp(106px, 10vw, 205px);
    right: 5.5vw;
    width: clamp(230px, 17.9vw, 366px);
    padding: clamp(16px, 1.35vw, 28px) clamp(18px, 1.45vw, 30px);
    border-radius: clamp(24px, 1.7vw, 35px);
  }

  body[data-page="step1"][data-page] .step1-coverflow-detail span {
    font-size: clamp(0.8rem, 0.86vw, 1.1rem);
  }

  body[data-page="step1"][data-page] .step1-coverflow-detail strong {
    font-size: clamp(1.05rem, 1.33vw, 1.7rem);
  }

  body[data-page="step1"][data-page] .step1-coverflow-detail small {
    font-size: clamp(0.86rem, 0.95vw, 1.2rem);
    font-weight: 700;
  }

  body[data-page="step1"][data-page] .step1-coverflow-arrow {
    width: clamp(44px, 3.1vw, 64px);
    height: clamp(44px, 3.1vw, 64px);
    font-size: clamp(1.24rem, 1.45vw, 1.85rem);
  }

  body[data-page="step1"][data-page] .step1-coverflow-controls {
    bottom: clamp(54px, 3.6vw, 108px);
    gap: clamp(12px, 1.35vw, 28px);
  }

  body[data-page="step1"][data-page] .step1-coverflow-dot {
    width: clamp(7px, 0.46vw, 9px);
    height: clamp(7px, 0.46vw, 9px);
  }

  body[data-page="step1"][data-page] .step1-coverflow-dot.is-active {
    width: clamp(25px, 1.55vw, 32px);
  }

  body[data-page="step1"][data-page] .step1-note {
    left: clamp(86px, 6.65vw, 136px);
    bottom: clamp(30px, 2vw, 60px);
    font-size: clamp(0.88rem, 0.95vw, 1.22rem);
    font-weight: 760;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="step1"] .step1-cover-card,
  body[data-page="step1"] .step1-cover-card .step1-option-media img,
  body[data-page="step1"] .step1-coverflow-dot,
  body[data-page="step1"] .step1-coverflow-arrow {
    transition: none;
  }
}

/* ========== 2026-06-29 Floorplan Guided Canvas ========== */
body[data-page="floorplan"] {
  min-height: 100vh;
  overflow-x: hidden;
  background: #f4f1eb;
  color: #18222e;
}

body[data-page="floorplan"] .floorplan-container-v2 {
  width: 100% !important;
  max-width: none !important;
  min-height: 100vh;
  padding: 0 !important;
}

body[data-page="floorplan"] .floorplan-shell-v2 {
  display: grid;
  grid-template-columns: 184px minmax(0, 1fr);
  min-height: 100vh;
  background: #f4f1eb;
}

body[data-page="floorplan"] .floorplan-sidebar-v2 {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 28px;
  height: 100vh;
  padding: 24px 18px;
  background: linear-gradient(180deg, #202a33 0%, #12171d 100%);
  color: #f7f1e6;
}

body[data-page="floorplan"] .floorplan-side-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f7f1e6;
  text-decoration: none;
  font-size: 1.12rem;
  font-weight: 900;
}

body[data-page="floorplan"] .floorplan-side-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(237, 199, 130, 0.38);
  border-radius: 9px;
  background: rgba(237, 199, 130, 0.14);
  color: #e8bd72;
  font-size: 1.16rem;
}

body[data-page="floorplan"] .floorplan-flow-v2 {
  display: grid;
  align-content: start;
  gap: 18px;
  margin-top: 18px;
}

body[data-page="floorplan"] .floorplan-flow-step {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  min-height: 68px;
  color: rgba(247, 241, 230, 0.54);
}

body[data-page="floorplan"] .floorplan-flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 38px;
  width: 1px;
  height: 44px;
  background: rgba(247, 241, 230, 0.15);
}

body[data-page="floorplan"] .floorplan-flow-step.is-current,
body[data-page="floorplan"] .floorplan-flow-step.is-done {
  color: #fff7ea;
}

body[data-page="floorplan"] .floorplan-flow-step.is-done:not(:last-child)::after {
  background: rgba(232, 189, 114, 0.62);
}

body[data-page="floorplan"] .floorplan-flow-index {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(247, 241, 230, 0.66);
  font-weight: 900;
}

body[data-page="floorplan"] .floorplan-flow-step.is-current .floorplan-flow-index {
  background: #e2ad5f;
  color: #1f252b;
}

body[data-page="floorplan"] .floorplan-flow-step.is-done .floorplan-flow-index {
  background: rgba(64, 177, 123, 0.18);
  color: #73d79e;
}

body[data-page="floorplan"] .floorplan-flow-step strong {
  display: block;
  margin-top: 2px;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.35;
}

body[data-page="floorplan"] .floorplan-flow-step small {
  display: block;
  margin-top: 5px;
  color: currentColor;
  font-size: 0.76rem;
  font-weight: 750;
  opacity: 0.72;
}

body[data-page="floorplan"] .floorplan-help-card {
  position: relative;
  display: grid;
  gap: 8px;
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff7ea;
  text-align: left;
  cursor: pointer;
}

body[data-page="floorplan"] .floorplan-help-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 9px;
}

body[data-page="floorplan"] .floorplan-help-play {
  position: absolute;
  top: 27px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(16, 22, 28, 0.58);
  color: #fff7ea;
  font-size: 1.24rem;
}

body[data-page="floorplan"] .floorplan-help-card strong {
  font-size: 0.86rem;
  font-weight: 900;
}

body[data-page="floorplan"] .floorplan-help-card small {
  color: rgba(247, 241, 230, 0.66);
  font-size: 0.72rem;
  font-weight: 750;
}

body[data-page="floorplan"] .floorplan-main-v2 {
  min-width: 0;
  padding: 26px 32px 30px;
}

body[data-page="floorplan"] .floorplan-page-header-v2 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

body[data-page="floorplan"] .floorplan-page-header-v2 h1 {
  margin: 0;
  color: #1b2530;
  font-size: 2rem;
  font-weight: 950;
  line-height: 1.14;
  letter-spacing: 0;
}

body[data-page="floorplan"] .floorplan-page-header-v2 p {
  margin: 7px 0 0;
  color: #788391;
  font-size: 0.95rem;
  font-weight: 760;
}

body[data-page="floorplan"] .floorplan-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

body[data-page="floorplan"] .floorplan-quiet-link,
body[data-page="floorplan"] .floorplan-reset-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(35, 46, 58, 0.11);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.72);
  color: #263240;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 850;
}

body[data-page="floorplan"] .floorplan-reset-btn {
  background: rgba(255, 255, 255, 0.86);
  color: #263240;
}

body[data-page="floorplan"] .floorplan-stage-v2 {
  display: grid;
  gap: 16px;
}

body[data-page="floorplan"] .floorplan-comparison-v2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  min-height: 548px;
}

body[data-page="floorplan"] .floorplan-pane-v2 {
  min-width: 0;
  border: 1px solid #ded9cf;
  background: rgba(255, 255, 255, 0.78);
}

body[data-page="floorplan"] .floorplan-input-pane-v2 {
  border-radius: 16px 0 0 16px;
  padding: 18px;
}

body[data-page="floorplan"] .floorplan-output-pane-v2 {
  border-radius: 0 16px 16px 0;
  padding: 18px;
}

body[data-page="floorplan"] .floorplan-pane-head-v2,
body[data-page="floorplan"] .floorplan-setting-head-v2 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

body[data-page="floorplan"] .floorplan-pane-head-v2 h2,
body[data-page="floorplan"] .floorplan-setting-head-v2 h2,
body[data-page="floorplan"] .floorplan-reference-upload h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #202b38;
  font-size: 1.02rem;
  font-weight: 950;
  letter-spacing: 0;
}

body[data-page="floorplan"] .floorplan-setting-head-v2 p {
  margin: 5px 0 0;
  color: #7a8490;
  font-size: 0.78rem;
  font-weight: 720;
  line-height: 1.45;
}

body[data-page="floorplan"] .floorplan-status-pill,
body[data-page="floorplan"] #floorplanSpaceStatus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 25px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef2f4;
  color: #647183;
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
}

body[data-page="floorplan"] .floorplan-status-pill.is-done {
  background: rgba(64, 177, 123, 0.12);
  color: #21825a;
}

body[data-page="floorplan"] .floorplan-status-pill.is-loading {
  background: rgba(36, 105, 178, 0.12);
  color: #2c6da6;
}

body[data-page="floorplan"] .floorplan-status-pill.is-error {
  background: rgba(191, 67, 67, 0.12);
  color: #a33a3a;
}

body[data-page="floorplan"] .floorplan-upload-zone {
  position: relative;
  display: block;
  width: 100%;
  min-height: 410px;
  height: 410px;
  border: 1px dashed #b9c8d7;
  border-radius: 12px;
  background: #fbfaf6;
  color: #1e2936;
  cursor: pointer;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

body[data-page="floorplan"] .floorplan-upload-zone img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 0;
  object-fit: contain;
  background: #fbfaf6;
}

body[data-page="floorplan"] .floorplan-upload-zone img[hidden],
body[data-page="floorplan"] .floorplan-upload-zone img:not([src]) {
  display: none;
}

body[data-page="floorplan"] .floorplan-upload-zone.has-image {
  padding: 0;
  border-style: solid;
  border-color: #d8d7d1;
  background: #ffffff;
}

body[data-page="floorplan"] .floorplan-upload-zone.has-image .floorplan-upload-placeholder-img,
body[data-page="floorplan"] .floorplan-upload-zone.has-image .floorplan-upload-overlay {
  display: none;
}

body[data-page="floorplan"] .floorplan-upload-overlay {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: #253140;
  box-shadow: 0 12px 30px rgba(32, 43, 56, 0.12);
}

body[data-page="floorplan"] .floorplan-upload-overlay i {
  color: #d09a45;
  font-size: 1.4rem;
}

body[data-page="floorplan"] .floorplan-upload-overlay strong {
  font-size: 1rem;
  font-weight: 950;
}

body[data-page="floorplan"] .floorplan-upload-overlay small {
  color: #768292;
  font-size: 0.78rem;
  font-weight: 760;
  text-align: center;
}

body[data-page="floorplan"] .floorplan-upload-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

body[data-page="floorplan"] .floorplan-upload-action-btn,
body[data-page="floorplan"] .floorplan-secondary-btn,
body[data-page="floorplan"] .floorplan-result-actions .btn,
body[data-page="floorplan"] .floorplan-lead-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  border-radius: 10px !important;
  font-size: 0.86rem;
  font-weight: 900;
}

body[data-page="floorplan"] .floorplan-upload-action-btn,
body[data-page="floorplan"] .floorplan-result-actions .btn,
body[data-page="floorplan"] .floorplan-lead-submit {
  border: 0 !important;
  background: #253344 !important;
  color: #fff7ea !important;
  box-shadow: none !important;
}

body[data-page="floorplan"] .floorplan-upload-action-btn:disabled,
body[data-page="floorplan"] .floorplan-secondary-btn:disabled,
body[data-page="floorplan"] .floorplan-generate-btn:disabled {
  cursor: not-allowed;
  background: #dfe4ea !important;
  color: #9ba6b3 !important;
  box-shadow: none !important;
}

body[data-page="floorplan"] .floorplan-secondary-btn {
  border: 1px solid #d6dbe0;
  background: #ffffff;
  color: #2d3947;
}

body[data-page="floorplan"] .floorplan-preview[hidden],
body[data-page="floorplan"] .floorplan-reference-preview[hidden],
body[data-page="floorplan"] .floorplan-results[hidden],
body[data-page="floorplan"] .floorplan-output-empty[hidden],
body[data-page="floorplan"] .floorplan-lead-card[hidden],
body[data-page="floorplan"] .floorplan-style-empty[hidden] {
  display: none !important;
}

body[data-page="floorplan"] .floorplan-ai-bridge-v2 {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 9px;
  border-top: 1px solid #ded9cf;
  border-bottom: 1px solid #ded9cf;
  background: #ebe8e0;
  color: #65717f;
  font-size: 0.78rem;
  font-weight: 950;
}

body[data-page="floorplan"] .floorplan-ai-bridge-v2 i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #ffffff;
  color: #c78a2f;
  font-size: 1.26rem;
  box-shadow: 0 10px 24px rgba(32, 43, 56, 0.09);
}

body[data-page="floorplan"] .floorplan-output-surface {
  position: relative;
  display: grid;
  min-height: 466px;
  height: 466px;
  overflow: hidden;
  border: 1px solid #e1dfd8;
  border-radius: 12px;
  background: #fbfaf6;
}

body[data-page="floorplan"] .floorplan-output-empty {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100%;
}

body[data-page="floorplan"] .floorplan-output-empty img {
  width: 96%;
  max-width: 620px;
  height: auto;
  object-fit: contain;
  opacity: 0.46;
  filter: saturate(0.9);
}

body[data-page="floorplan"] .floorplan-output-wait {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  justify-items: center;
  gap: 8px;
  width: min(330px, calc(100% - 48px));
  padding: 18px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
  color: #273342;
  text-align: center;
  box-shadow: 0 16px 38px rgba(32, 43, 56, 0.13);
}

body[data-page="floorplan"] .floorplan-output-wait i {
  color: #c78a2f;
  font-size: 1.45rem;
}

body[data-page="floorplan"] .floorplan-output-wait strong {
  font-size: 1.02rem;
  font-weight: 950;
}

body[data-page="floorplan"] .floorplan-output-wait small {
  color: #717d8b;
  font-size: 0.78rem;
  font-weight: 760;
  line-height: 1.55;
}

body[data-page="floorplan"] .floorplan-results {
  display: grid;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-page="floorplan"] .floorplan-result-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: 100%;
  min-height: 100%;
}

body[data-page="floorplan"] .floorplan-result-card {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
  width: 100%;
  height: 100%;
  padding: 12px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: none;
}

body[data-page="floorplan"] .floorplan-result-media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 315px;
  aspect-ratio: auto;
  border-radius: 10px;
  background: #f7f5ef;
}

body[data-page="floorplan"] .floorplan-result-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

body[data-page="floorplan"] .floorplan-result-download-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(222, 217, 207, 0.88);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #223246;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(32, 43, 56, 0.14);
  backdrop-filter: blur(10px);
}

body[data-page="floorplan"] .floorplan-result-download-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #ffffff;
}

body[data-page="floorplan"] .floorplan-result-download-btn:disabled {
  cursor: wait;
  opacity: 0.72;
}

body[data-page="floorplan"] .floorplan-result-placeholder {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  min-height: 240px;
  color: #2c6da6;
  font-weight: 950;
  text-align: center;
}

body[data-page="floorplan"] .floorplan-result-placeholder i {
  font-size: 1.6rem;
}

body[data-page="floorplan"] .floorplan-loading-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2c6da6;
  font-size: 1rem;
  font-weight: 950;
  line-height: 1;
}

body[data-page="floorplan"] .floorplan-loading-dots {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  margin-left: 4px;
  height: 0.9em;
}

body[data-page="floorplan"] .floorplan-loading-dots span {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  animation: floorplan-loading-dot 0.9s ease-in-out infinite;
}

body[data-page="floorplan"] .floorplan-loading-dots span:nth-child(2) {
  animation-delay: 0.12s;
}

body[data-page="floorplan"] .floorplan-loading-dots span:nth-child(3) {
  animation-delay: 0.24s;
}

body[data-page="floorplan"] .floorplan-result-state.is-loading {
  display: none;
}

@keyframes floorplan-loading-dot {
  0%, 80%, 100% {
    opacity: 0.45;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-5px);
  }
}

body[data-page="floorplan"] .floorplan-result-copy h4 {
  margin: 0;
  color: #202b38;
  font-size: 0.96rem;
  font-weight: 950;
}

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

body[data-page="floorplan"] .floorplan-settings-band-v2 {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) 260px 340px;
  gap: 14px;
  align-items: stretch;
}

body[data-page="floorplan"] .floorplan-setting-card-v2 {
  min-width: 0;
  border: 1px solid #ded9cf;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  padding: 16px;
}

body[data-page="floorplan"] .floorplan-style-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 10px;
}

body[data-page="floorplan"] .floorplan-style-search {
  position: relative;
  display: flex;
  align-items: center;
  width: min(280px, 100%);
  min-height: 36px;
  margin: 0;
  color: #81909e;
  font-weight: 800;
}

body[data-page="floorplan"] .floorplan-style-search i {
  position: absolute;
  left: 11px;
  color: #8b96a3;
  font-size: 1rem;
}

body[data-page="floorplan"] .floorplan-style-search input {
  width: 100%;
  min-height: 36px;
  border: 1px solid #d9dde1;
  border-radius: 10px;
  padding: 0 12px 0 34px;
  background: #ffffff;
  color: #202b38;
  font-size: 0.82rem;
  font-weight: 800;
  outline: none;
  box-shadow: none;
}

body[data-page="floorplan"] .floorplan-style-search input:focus {
  border-color: #c78a2f;
  box-shadow: 0 0 0 3px rgba(199, 138, 47, 0.13);
}

body[data-page="floorplan"] .floorplan-style-rail-wrap {
  position: relative;
  min-width: 0;
}

body[data-page="floorplan"] .floorplan-style-grid {
  display: flex;
  grid-template-columns: none;
  gap: 10px;
  max-height: none;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 46px 6px 2px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(39, 51, 66, 0.28) transparent;
}

body[data-page="floorplan"] .floorplan-style-card {
  position: relative;
  display: grid;
  flex: 0 0 116px;
  width: 116px;
  gap: 7px;
  scroll-snap-align: start;
  padding: 7px;
  border: 2px solid transparent;
  border-radius: 12px;
  background: #ffffff;
  color: #202b38;
  box-shadow: 0 10px 22px rgba(32, 43, 56, 0.07);
}

body[data-page="floorplan"] .floorplan-style-card.is-selected {
  border-color: #2f75b8;
  box-shadow: 0 0 0 3px rgba(47, 117, 184, 0.14);
}

body[data-page="floorplan"] .floorplan-style-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
}

body[data-page="floorplan"] .floorplan-style-card > span:not(.floorplan-style-check) {
  color: #1d2835;
  font-size: 0.82rem;
  font-weight: 950;
  text-align: center;
}

body[data-page="floorplan"] .floorplan-style-check {
  position: absolute;
  top: 10px;
  right: 10px;
  display: none;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #2f75b8;
  color: #ffffff;
  font-size: 0.92rem;
  box-shadow: 0 6px 12px rgba(32, 43, 56, 0.18);
}

body[data-page="floorplan"] .floorplan-style-card.is-selected .floorplan-style-check {
  display: grid;
}

body[data-page="floorplan"] .floorplan-style-next-btn {
  position: absolute;
  top: 50%;
  right: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 46px;
  transform: translateY(-50%);
  border: 1px solid #d7dce1;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  color: #273342;
  font-size: 1.35rem;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(32, 43, 56, 0.09);
}

body[data-page="floorplan"] .floorplan-style-empty {
  display: grid;
  place-items: center;
  min-height: 72px;
  border: 1px dashed #d2d6dc;
  border-radius: 12px;
  background: #fbfaf6;
  color: #768292;
  font-size: 0.86rem;
  font-weight: 900;
}

body[data-page="floorplan"] .floorplan-reference-upload {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  margin: 0;
  padding: 16px;
}

body[data-page="floorplan"] .floorplan-reference-drop {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  width: 100%;
  min-height: 140px;
  border: 1px dashed #c6cfd8;
  border-radius: 12px;
  background: #fbfaf6;
  color: #273342;
  cursor: pointer;
}

body[data-page="floorplan"] .floorplan-reference-drop i {
  color: #c78a2f;
  font-size: 1.6rem;
}

body[data-page="floorplan"] .floorplan-reference-drop strong {
  font-size: 0.9rem;
  font-weight: 950;
}

body[data-page="floorplan"] .floorplan-reference-drop small {
  max-width: 160px;
  color: #778290;
  font-size: 0.74rem;
  font-weight: 750;
  text-align: center;
  line-height: 1.45;
}

body[data-page="floorplan"] .floorplan-reference-preview {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid #e1dfd8;
  border-radius: 10px;
  background: #ffffff;
}

body[data-page="floorplan"] .floorplan-reference-preview img {
  width: 64px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}

body[data-page="floorplan"] .floorplan-reference-preview span {
  color: #273342;
  font-size: 0.8rem;
  font-weight: 900;
}

body[data-page="floorplan"] .floorplan-options-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 10px;
}

body[data-page="floorplan"] .floorplan-extra {
  position: relative;
  display: block;
  margin: 0;
}

body[data-page="floorplan"] .floorplan-extra textarea {
  display: block;
  width: 100%;
  min-height: 112px;
  resize: vertical;
  border: 1px solid #d9dde1;
  border-radius: 12px;
  padding: 12px 14px 30px;
  background: #ffffff;
  color: #202b38;
  font-size: 0.88rem;
  font-weight: 760;
  line-height: 1.55;
  outline: none;
}

body[data-page="floorplan"] .floorplan-extra textarea:focus {
  border-color: #c78a2f;
  box-shadow: 0 0 0 3px rgba(199, 138, 47, 0.13);
}

body[data-page="floorplan"] #floorplanPromptCount {
  position: absolute;
  right: 12px;
  bottom: 10px;
  color: #8b96a3;
  font-size: 0.72rem;
  font-weight: 850;
}

body[data-page="floorplan"] .floorplan-generate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  margin: 0;
  border: 0 !important;
  border-radius: 11px !important;
  background: #d6dee8 !important;
  color: #8d99a6 !important;
  font-size: 0.94rem;
  font-weight: 950;
  box-shadow: none !important;
}

body[data-page="floorplan"] .floorplan-generate-btn.is-ready {
  background: #c8913e !important;
  color: #fff7ea !important;
  box-shadow: 0 16px 28px rgba(170, 111, 35, 0.2) !important;
}

body[data-page="floorplan"] .floorplan-cost-note {
  display: block;
  color: #838d99;
  font-size: 0.74rem;
  font-weight: 780;
  text-align: center;
}

body[data-page="floorplan"] .floorplan-lead-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0;
  padding: 12px;
  border: 1px solid #dfded8;
  border-radius: 12px;
  background: #fbfaf6;
  box-shadow: none;
}

body[data-page="floorplan"] .floorplan-lead-copy h3 {
  margin: 0 0 4px;
  color: #202b38;
  font-size: 0.92rem;
  font-weight: 950;
}

body[data-page="floorplan"] .floorplan-lead-copy p,
body[data-page="floorplan"] .floorplan-lead-status {
  color: #768292;
  font-size: 0.76rem;
  font-weight: 750;
}

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

body[data-page="floorplan"] .floorplan-lead-form input,
body[data-page="floorplan"] .floorplan-lead-form select,
body[data-page="floorplan"] .floorplan-lead-form textarea {
  min-height: 38px;
  border: 1px solid #d9dde1;
  border-radius: 9px;
  background: #ffffff;
  color: #202b38;
  font-size: 0.8rem;
}

body[data-page="floorplan"] .floorplan-lead-form textarea,
body[data-page="floorplan"] .floorplan-lead-submit,
body[data-page="floorplan"] .floorplan-lead-status {
  grid-column: 1 / -1;
}

body[data-page="floorplan"] .floorplan-lightbox {
  background: rgba(15, 20, 25, 0.76);
}

body[data-page="floorplan"] .floorplan-lightbox-panel {
  border-radius: 16px;
  background: #f4f1eb;
}

body[data-page="floorplan"] .floorplan-lightbox-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  background: #253344 !important;
  color: #fff7ea !important;
}

/* ========== 2026-06-30 Floorplan Visual QA Refinements ========== */
body[data-page="floorplan"] .floorplan-upload-zone .floorplan-upload-placeholder-img {
  width: 84%;
  height: calc(100% - 76px);
  margin: 8px auto 0;
  object-fit: contain;
}

body[data-page="floorplan"] .floorplan-upload-overlay {
  left: 38px;
  right: 38px;
  bottom: 28px;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 34px rgba(32, 43, 56, 0.1);
}

body[data-page="floorplan"] .floorplan-upload-overlay strong {
  font-size: 0.98rem;
}

body[data-page="floorplan"] .floorplan-upload-overlay small {
  font-size: 0.74rem;
}

body[data-page="floorplan"] .floorplan-output-empty img {
  width: 82%;
  max-width: 560px;
  opacity: 0.38;
}

body[data-page="floorplan"] .floorplan-output-wait {
  width: min(310px, calc(100% - 56px));
  padding: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 34px rgba(32, 43, 56, 0.11);
}

body[data-page="floorplan"] .floorplan-output-wait strong {
  font-size: 0.96rem;
}

body[data-page="floorplan"] .floorplan-output-wait small {
  font-size: 0.74rem;
}

body[data-page="floorplan"] .floorplan-style-grid {
  padding-right: 66px;
  padding-bottom: 10px;
}

body[data-page="floorplan"] .floorplan-style-grid::after {
  content: "";
  flex: 0 0 52px;
}

body[data-page="floorplan"] .floorplan-style-card {
  flex-basis: 112px;
  width: 112px;
  gap: 6px;
}

body[data-page="floorplan"] .floorplan-style-next-btn {
  right: 4px;
  width: 34px;
  height: 44px;
}

body[data-page="floorplan"] .floorplan-reference-drop {
  min-height: 152px;
}

body[data-page="floorplan"] .floorplan-extra textarea {
  min-height: 126px;
}

body[data-page="floorplan"] .floorplan-cost-note {
  margin-top: -2px;
}

body[data-page="floorplan"] .floorplan-pane-head-v2 .floorplan-status-pill,
body[data-page="floorplan"] .floorplan-setting-head-v2 > .floorplan-status-pill,
body[data-page="floorplan"] #floorplanSpaceStatus {
  display: none;
}

body[data-page="floorplan"] .floorplan-style-rail-wrap {
  display: flex;
  align-items: center;
}

body[data-page="floorplan"] .floorplan-style-grid {
  width: 100%;
}

body[data-page="floorplan"] .floorplan-style-next-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}

body[data-page="floorplan"] .floorplan-style-next-btn i {
  display: block;
  line-height: 1;
}

@media (max-width: 1320px) {
  body[data-page="floorplan"] .floorplan-shell-v2 {
    grid-template-columns: 164px minmax(0, 1fr);
  }

  body[data-page="floorplan"] .floorplan-main-v2 {
    padding: 22px;
  }

  body[data-page="floorplan"] .floorplan-comparison-v2 {
    grid-template-columns: minmax(0, 1fr) 70px minmax(0, 1fr);
  }

  body[data-page="floorplan"] .floorplan-settings-band-v2 {
    grid-template-columns: minmax(0, 1.3fr) 230px 300px;
  }

  body[data-page="floorplan"] .floorplan-upload-zone {
    height: 380px;
    min-height: 380px;
  }

  body[data-page="floorplan"] .floorplan-output-surface {
    height: 436px;
    min-height: 436px;
  }
}

@media (max-width: 1080px) {
  body[data-page="floorplan"] .floorplan-shell-v2 {
    grid-template-columns: 1fr;
  }

  body[data-page="floorplan"] .floorplan-sidebar-v2 {
    position: static;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto;
    align-items: center;
    height: auto;
    padding: 16px;
  }

  body[data-page="floorplan"] .floorplan-flow-v2 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
  }

  body[data-page="floorplan"] .floorplan-flow-step {
    min-height: 46px;
  }

  body[data-page="floorplan"] .floorplan-flow-step::after {
    display: none;
  }

  body[data-page="floorplan"] .floorplan-help-card {
    width: 150px;
  }

  body[data-page="floorplan"] .floorplan-comparison-v2 {
    grid-template-columns: 1fr;
  }

  body[data-page="floorplan"] .floorplan-input-pane-v2,
  body[data-page="floorplan"] .floorplan-output-pane-v2 {
    border-radius: 16px;
  }

  body[data-page="floorplan"] .floorplan-ai-bridge-v2 {
    min-height: 64px;
    border: 1px solid #ded9cf;
    border-top: 0;
    border-bottom: 0;
  }

  body[data-page="floorplan"] .floorplan-ai-bridge-v2 i {
    transform: rotate(90deg);
  }

  body[data-page="floorplan"] .floorplan-settings-band-v2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body[data-page="floorplan"] .floorplan-main-v2 {
    padding: 16px;
  }

  body[data-page="floorplan"] .floorplan-page-header-v2,
  body[data-page="floorplan"] .floorplan-header-actions {
    flex-direction: column;
    align-items: stretch;
  }

  body[data-page="floorplan"] .floorplan-page-header-v2 h1 {
    font-size: 1.7rem;
  }

  body[data-page="floorplan"] .floorplan-sidebar-v2 {
    grid-template-columns: 1fr;
  }

  body[data-page="floorplan"] .floorplan-flow-v2 {
    grid-template-columns: 1fr;
  }

  body[data-page="floorplan"] .floorplan-help-card {
    width: 100%;
  }

  body[data-page="floorplan"] .floorplan-comparison-v2 {
    min-height: 0;
  }

  body[data-page="floorplan"] .floorplan-input-pane-v2,
  body[data-page="floorplan"] .floorplan-output-pane-v2,
  body[data-page="floorplan"] .floorplan-setting-card-v2 {
    padding: 14px;
    border-radius: 14px;
  }

  body[data-page="floorplan"] .floorplan-upload-zone,
  body[data-page="floorplan"] .floorplan-output-surface {
    height: 330px;
    min-height: 330px;
  }

  body[data-page="floorplan"] .floorplan-upload-actions,
  body[data-page="floorplan"] .floorplan-lead-form {
    grid-template-columns: 1fr;
  }

  body[data-page="floorplan"] .floorplan-style-card {
    flex-basis: 108px;
    width: 108px;
  }

body[data-page="floorplan"] .floorplan-output-wait {
    width: calc(100% - 28px);
    padding: 14px;
  }
}

/* ========== 2026-07-02 Step1 Bright Showcase Reference Match ========== */
body[data-page="step1"][data-page] {
  --show-ink: #25272f;
  --show-muted: #747781;
  --show-blue: #6f97ff;
  --show-blue-strong: #4f82ff;
  --show-bronze: #9a6f38;
  height: 100svh !important;
  min-height: 720px !important;
  overflow: hidden !important;
  color: var(--show-ink) !important;
  background: #f6f0e8 !important;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Microsoft YaHei", Arial, sans-serif !important;
}

body[data-page="step1"][data-page]::before {
  content: "" !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 0 !important;
  pointer-events: none !important;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.52) 36%, rgba(255, 255, 255, 0.08) 74%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.1) 62%, rgba(246, 240, 232, 0.74) 100%),
    url("home-landing/footer-cta-room-1400.webp?v=20260702showcase2") center center / cover no-repeat !important;
  opacity: 1 !important;
  filter: saturate(0.92) brightness(1.08) !important;
}

body[data-page="step1"][data-page]::after {
  content: "" !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 0 !important;
  pointer-events: none !important;
  background:
    radial-gradient(circle at 50% 58%, rgba(255, 255, 255, 0.2), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0.03) 48%, rgba(241, 234, 224, 0.72) 100%) !important;
  opacity: 1 !important;
}

body[data-page="step1"][data-page] .step1-showcase,
body[data-page="step1"][data-page] .step1-showcase * {
  box-sizing: border-box;
}

body[data-page="step1"][data-page] .step1-showcase {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100svh;
  min-height: 720px;
  padding: 24px clamp(28px, 3.1vw, 46px);
  overflow: hidden;
}

@media (min-width: 981px) {
  body[data-page="step1"][data-page] {
    --step1-visual-scale: 0.75;
  }

  body[data-page="step1"][data-page] .step1-showcase {
    width: calc(100% / var(--step1-visual-scale));
    height: calc(100svh / var(--step1-visual-scale));
    min-height: 960px;
    padding: 32px 61px;
    transform: scale(var(--step1-visual-scale));
    transform-origin: top left;
  }
}

body[data-page="step1"][data-page] .step1-showcase-nav {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: clamp(64px, 4.6vw, 68px);
  padding: 0 clamp(17px, 1.55vw, 24px);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: clamp(16px, 1.42vw, 22px);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 52px rgba(80, 82, 88, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(22px) saturate(145%);
}

body[data-page="step1"][data-page] .step1-showcase-logo {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.2vw, 18px);
  min-width: 0;
  color: var(--show-ink);
  text-decoration: none;
}

body[data-page="step1"][data-page] .step1-showcase-mark {
  display: grid;
  place-items: center;
  width: clamp(34px, 2.65vw, 44px);
  height: clamp(34px, 2.65vw, 44px);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
}

body[data-page="step1"][data-page] .step1-showcase-mark img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  filter: sepia(1) saturate(1.7) hue-rotate(346deg) brightness(0.68);
}

body[data-page="step1"][data-page] .step1-showcase-brand {
  color: #202329;
  font-size: clamp(1.28rem, 1.85vw, 1.78rem);
  font-weight: 860;
  letter-spacing: 0;
  line-height: 1;
}

body[data-page="step1"][data-page] .step1-showcase-divider {
  width: 1px;
  height: clamp(24px, 2.4vw, 34px);
  background: rgba(44, 49, 58, 0.12);
}

body[data-page="step1"][data-page] .step1-showcase-tagline {
  color: #85878d;
  font-size: clamp(0.78rem, 0.94vw, 0.98rem);
  font-weight: 560;
  white-space: nowrap;
}

body[data-page="step1"][data-page] .step1-showcase-actions {
  display: inline-flex;
  align-items: center;
  gap: clamp(12px, 1.45vw, 20px);
}

body[data-page="step1"][data-page] .step1-showcase-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: clamp(86px, 7.4vw, 110px);
  height: clamp(42px, 3.55vw, 52px);
  padding: 0 clamp(16px, 1.35vw, 22px);
  border: 1px solid rgba(216, 218, 224, 0.82);
  border-radius: 999px;
  color: #50535c;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 22px rgba(78, 82, 91, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  font: inherit;
  font-size: clamp(0.82rem, 0.96vw, 0.98rem);
  font-weight: 680;
  text-decoration: none;
  cursor: pointer;
}

body[data-page="step1"][data-page] .step1-showcase-action i {
  font-size: 1.1em;
}

body[data-page="step1"][data-page] .step1-showcase-copy {
  position: absolute;
  left: clamp(58px, 6.7vw, 100px);
  top: clamp(128px, 14.7vh, 156px);
  z-index: 10;
  width: min(520px, 43vw);
}

body[data-page="step1"][data-page] .step1-showcase-copy h1 {
  margin: 0;
  color: #25272f;
  font-size: clamp(2.35rem, 3.85vw, 3.62rem);
  font-weight: 860;
  line-height: 1.12;
  letter-spacing: 0;
  white-space: nowrap;
}

body[data-page="step1"][data-page] .step1-showcase-copy h1 span {
  color: var(--show-blue-strong);
  background: linear-gradient(135deg, #4d7fff 0%, #7fa8ff 72%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

body[data-page="step1"][data-page] .step1-showcase-copy p {
  margin: clamp(10px, 1.22vw, 18px) 0 0;
  color: #6f7179;
  font-size: clamp(0.98rem, 1.26vw, 1.18rem);
  font-weight: 500;
  line-height: 1.65;
}

body[data-page="step1"][data-page] .step1-showcase-copy .step1-mode-tabs {
  margin-top: clamp(22px, 2.4vw, 36px);
}

body[data-page="step1"][data-page] .step1-mode-tabs {
  display: inline-flex;
  gap: 0;
  padding: 4px;
  border: 1px solid rgba(221, 225, 233, 0.86);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 14px 32px rgba(80, 87, 101, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
}

body[data-page="step1"][data-page] .step1-mode-tabs button {
  width: clamp(86px, 6.8vw, 100px);
  height: clamp(38px, 3.1vw, 46px);
  border: 0;
  border-radius: 999px;
  color: #74777f;
  background: transparent;
  font: inherit;
  font-size: clamp(0.86rem, 1vw, 1rem);
  font-weight: 620;
  cursor: pointer;
  transition: color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease, transform 0.18s ease;
}

body[data-page="step1"][data-page] .step1-mode-tabs button.is-active {
  color: var(--show-blue-strong);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 8px 18px rgba(92, 124, 190, 0.14), inset 0 0 0 1px rgba(111, 151, 255, 0.18);
}

body[data-page="step1"][data-page] .step1-mode-tabs button:hover {
  color: #557eff;
  background: rgba(255, 255, 255, 0.52);
}

body[data-page="step1"][data-page] .step1-mode-tabs button:active,
body[data-page="step1"][data-page] .step1-mode-tabs button.is-pressing {
  color: #ffffff;
  background: linear-gradient(135deg, #7ca0ff 0%, #4e7cff 100%);
  box-shadow: 0 10px 22px rgba(82, 124, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.34);
  transform: scale(0.96);
}

body[data-page="step1"][data-page] .step1-mode-tabs button:focus-visible {
  outline: 2px solid rgba(86, 128, 255, 0.45);
  outline-offset: 3px;
}

body[data-page="step1"][data-page] .step1-showcase-carousel {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
}

body[data-page="step1"][data-page] .step1-showcase-stage {
  position: absolute;
  left: 50%;
  left: 51.7%;
  top: 52.35%;
  width: min(1160px, 92vw);
  height: min(560px, 58vh);
  transform: translate(-50%, -50%);
  perspective: 1200px;
  transform-style: preserve-3d;
}

body[data-page="step1"][data-page] .step1-showcase-card.step1-option {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  flex-direction: column;
  width: clamp(248px, 18.4vw, 292px) !important;
  height: clamp(352px, 37vh, 402px) !important;
  margin: 0 !important;
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.74) !important;
  border-radius: clamp(28px, 2.6vw, 40px) !important;
  color: var(--show-ink) !important;
  background: rgba(255, 255, 255, 0.52) !important;
  box-shadow: 0 24px 58px rgba(70, 76, 88, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.86) !important;
  backdrop-filter: blur(10px) saturate(130%);
  pointer-events: auto;
  cursor: pointer;
  opacity: var(--cover-opacity, 1);
  filter: blur(var(--cover-blur, 0px)) saturate(var(--cover-saturate, 1));
  transform:
    translate(-50%, -50%)
    translateX(var(--cover-x, 0px))
    translateY(var(--cover-y, 0px))
    translateZ(var(--cover-z, 0px))
    rotateY(var(--cover-rotate, 0deg))
    scale(var(--cover-scale, 1));
  transition: transform 0.72s cubic-bezier(0.2, 1, 0.2, 1), opacity 0.38s ease, filter 0.38s ease, box-shadow 0.38s ease;
  will-change: transform, opacity, filter;
}

body[data-page="step1"][data-page] .step1-showcase-card.step1-option.is-active {
  width: clamp(540px, 38.7vw, 585px) !important;
  height: clamp(500px, 51.5vh, 552px) !important;
  border-width: 16px !important;
  border-color: rgba(255, 255, 255, 0.82) !important;
  border-radius: clamp(34px, 3vw, 48px) !important;
  background: rgba(255, 255, 255, 0.82) !important;
  box-shadow: 0 30px 76px rgba(72, 82, 102, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.96) !important;
}

body[data-page="step1"][data-page] .step1-showcase-card::before,
body[data-page="step1"][data-page] .step1-showcase-card::after {
  display: none !important;
}

body[data-page="step1"][data-page] .step1-showcase-media {
  position: relative;
  width: 100%;
  height: 100% !important;
  min-height: 0;
  overflow: hidden;
  border: 0 !important;
  border-radius: calc(clamp(28px, 2.6vw, 40px) - 12px) !important;
  background: #f3eee7 !important;
}

body[data-page="step1"][data-page] .step1-showcase-card.is-active .step1-showcase-media {
  height: 68% !important;
  border-radius: calc(clamp(34px, 3vw, 48px) - 18px) calc(clamp(34px, 3vw, 48px) - 18px) 0 0 !important;
}

body[data-page="step1"][data-page] .step1-showcase-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  height: 34%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.58));
  pointer-events: none;
}

body[data-page="step1"][data-page] .step1-showcase-card:not(.is-active) .step1-showcase-media::after {
  height: 46%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(245, 239, 231, 0.76));
}

body[data-page="step1"][data-page] .step1-showcase-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.96) contrast(1.01);
  transform: none !important;
}

body[data-page="step1"][data-page] .step1-showcase-ai {
  position: absolute;
  left: 50%;
  top: 52%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: clamp(48px, 4.1vw, 62px);
  height: clamp(48px, 4.1vw, 62px);
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  color: #ffffff;
  background: radial-gradient(circle at 35% 30%, #b6c7ff, #6f8dff 70%);
  box-shadow: 0 0 34px rgba(94, 132, 255, 0.48);
  transform: translate(-50%, -50%);
  font-size: clamp(1.3rem, 1.8vw, 1.8rem);
}

body[data-page="step1"][data-page] .step1-showcase-card-body {
  position: absolute;
  inset: auto 16px 16px;
  z-index: 5;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 !important;
  background: transparent !important;
}

body[data-page="step1"][data-page] .step1-showcase-card.is-active .step1-showcase-card-body {
  position: relative;
  inset: auto;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(160px, 13.8vw, 205px);
  grid-template-rows: auto auto auto;
  column-gap: clamp(18px, 1.9vw, 28px);
  align-content: center;
  padding: clamp(22px, 2vw, 30px) clamp(22px, 2vw, 30px) clamp(20px, 1.9vw, 28px) !important;
  background: rgba(255, 255, 255, 0.9) !important;
}

body[data-page="step1"][data-page] .step1-showcase-card:not(.is-active) .step1-showcase-card-body h3,
body[data-page="step1"][data-page] .step1-showcase-card:not(.is-active) .step1-showcase-card-body p {
  display: none !important;
}

body[data-page="step1"][data-page] .step1-showcase-card.is-active .step1-option-index {
  display: none;
}

body[data-page="step1"][data-page] .step1-showcase-card h3 {
  grid-column: 1;
  margin: 0;
  color: #25272f !important;
  font-size: clamp(1.42rem, 1.9vw, 2rem) !important;
  font-weight: 760;
  line-height: 1.12 !important;
  letter-spacing: 0;
}

body[data-page="step1"][data-page] .step1-showcase-card p {
  grid-column: 1;
  margin: 9px 0 0 !important;
  color: #888a91 !important;
  font-size: clamp(0.9rem, 1vw, 1.05rem) !important;
  font-weight: 520;
  line-height: 1.42 !important;
}

body[data-page="step1"][data-page] .step1-showcase-card .step1-option-button,
body[data-page="step1"][data-page] .step1-showcase-card.step1-option.selected .step1-option-button,
body[data-page="step1"][data-page] .step1-showcase-card.step1-option.is-active .step1-option-button {
  all: unset;
  box-sizing: border-box;
  display: inline-flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 42px !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 8px 0 18px !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: #3e4047 !important;
  background: rgba(255, 255, 255, 0.86) !important;
  box-shadow: 0 10px 22px rgba(58, 64, 76, 0.12) !important;
  font-size: clamp(0.9rem, 1vw, 1rem) !important;
  font-weight: 640 !important;
  cursor: pointer;
}

body[data-page="step1"][data-page] .step1-showcase-card.is-active .step1-option-button {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  width: 100% !important;
  height: clamp(48px, 4.25vw, 58px) !important;
  padding: 0 10px 0 clamp(24px, 2.1vw, 30px) !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #7ca0ff 0%, #4e7cff 100%) !important;
  box-shadow: 0 14px 28px rgba(75, 118, 255, 0.28) !important;
  font-size: clamp(1rem, 1.15vw, 1.15rem) !important;
}

body[data-page="step1"][data-page] .step1-showcase-card.step1-option.is-active .step1-option-button {
  grid-column: 2 !important;
  grid-row: 1 / span 2 !important;
  align-self: center !important;
  width: 100% !important;
  height: clamp(48px, 4.25vw, 58px) !important;
  padding: 0 10px 0 clamp(24px, 2.1vw, 30px) !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #7ca0ff 0%, #4e7cff 100%) !important;
  box-shadow: 0 14px 28px rgba(75, 118, 255, 0.28) !important;
  font-size: clamp(1rem, 1.15vw, 1.15rem) !important;
}

body[data-page="step1"][data-page] .step1-showcase-card .step1-option-button i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #6b83d8;
  background: rgba(255, 255, 255, 0.92);
  font-size: 1.15rem;
}

body[data-page="step1"][data-page] .step1-showcase-card.is-active .step1-option-button i {
  width: 34px;
  height: 34px;
  color: #557eff;
}

body[data-page="step1"][data-page] .step1-showcase-helper {
  grid-column: 2;
  margin-top: 10px;
  color: #a3a4aa;
  font-size: clamp(0.74rem, 0.82vw, 0.85rem);
  font-weight: 500;
  text-align: center;
}

body[data-page="step1"][data-page] .step1-showcase-dots {
  position: absolute;
  left: 50%;
  bottom: clamp(138px, 16.5vh, 176px);
  z-index: 11;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  transform: translateX(-50%);
}

body[data-page="step1"][data-page] .step1-showcase-dots .step1-coverflow-dot {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 2px 8px rgba(59, 68, 82, 0.12);
}

body[data-page="step1"][data-page] .step1-showcase-dots .step1-coverflow-dot.is-active {
  width: 12px;
  background: #6f97ff;
}

body[data-page="step1"][data-page] .step1-showcase-controls {
  display: none !important;
}

body[data-page="step1"][data-page] .step1-process-dock {
  position: absolute;
  left: 50%;
  bottom: clamp(58px, 5.4vh, 72px);
  z-index: 12;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.4vw, 22px);
  width: min(720px, 58vw);
  min-height: 72px;
  padding: 12px 22px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 52px rgba(72, 78, 92, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px) saturate(145%);
  transform: translateX(-50%);
}

body[data-page="step1"][data-page] .icp-footer {
  bottom: 10px;
  z-index: 11;
  color: rgba(43, 52, 66, 0.36);
  font-size: 12px;
  line-height: 1;
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.72);
}

body[data-page="step1"][data-page] .step1-process-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  min-width: 0;
}

body[data-page="step1"][data-page] .step1-process-item i {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #6b92ff;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 0 0 1px rgba(110, 148, 255, 0.14);
  font-size: 1.12rem;
}

body[data-page="step1"][data-page] .step1-process-item strong {
  min-width: 0;
  color: #454850;
  font-size: clamp(0.82rem, 0.95vw, 0.98rem);
  font-weight: 760;
  white-space: nowrap;
}

body[data-page="step1"][data-page] .step1-process-item span {
  min-width: 0;
  color: #9a9ca3;
  font-size: clamp(0.68rem, 0.78vw, 0.78rem);
  white-space: nowrap;
}

@media (max-width: 980px) {
  body[data-page="step1"][data-page] {
    height: auto !important;
    min-height: 100svh !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  body[data-page="step1"][data-page] .step1-showcase {
    height: auto;
    min-height: 100svh;
    padding: 16px 16px 30px;
    overflow: visible;
  }

  body[data-page="step1"][data-page] .step1-showcase-nav {
    height: auto;
    min-height: 68px;
  }

  body[data-page="step1"][data-page] .step1-showcase-tagline,
  body[data-page="step1"][data-page] .step1-showcase-divider {
    display: none;
  }

  body[data-page="step1"][data-page] .step1-showcase-copy {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    margin: 54px auto 0;
    text-align: center;
  }

  body[data-page="step1"][data-page] .step1-showcase-copy h1 {
    white-space: normal;
  }

  body[data-page="step1"][data-page] .step1-showcase-carousel {
    position: relative;
    inset: auto;
    min-height: 520px;
    margin-top: 18px;
  }

  body[data-page="step1"][data-page] .step1-showcase-stage {
    top: 245px;
    width: 100%;
    height: 430px;
  }

  body[data-page="step1"][data-page] .step1-showcase-card.step1-option {
    width: min(230px, 52vw) !important;
    height: 330px !important;
  }

  body[data-page="step1"][data-page] .step1-showcase-card.step1-option.is-active {
    width: min(430px, 86vw) !important;
    height: 430px !important;
  }

  body[data-page="step1"][data-page] .step1-showcase-dots {
    bottom: 8px;
  }

  body[data-page="step1"][data-page] .step1-process-dock {
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
    margin: 28px auto 0;
    border-radius: 28px;
    transform: none;
  }
}

@media (max-width: 620px) {
  body[data-page="step1"][data-page] .step1-showcase-actions {
    gap: 8px;
  }

  body[data-page="step1"][data-page] .step1-showcase-action {
    min-width: 44px;
    padding-inline: 12px;
  }

  body[data-page="step1"][data-page] .step1-showcase-action span {
    display: none;
  }

  body[data-page="step1"][data-page] .step1-showcase-copy {
    margin-top: 42px;
  }

  body[data-page="step1"][data-page] .step1-showcase-copy h1 {
    font-size: clamp(2.25rem, 11vw, 3.1rem);
  }

  body[data-page="step1"][data-page] .step1-showcase-carousel {
    min-height: 480px;
  }

  body[data-page="step1"][data-page] .step1-showcase-stage {
    top: 222px;
    height: 390px;
  }

  body[data-page="step1"][data-page] .step1-showcase-card.step1-option.is-active {
    width: min(340px, 88vw) !important;
    height: 380px !important;
    border-width: 12px !important;
  }

  body[data-page="step1"][data-page] .step1-showcase-card.step1-option {
    width: min(190px, 48vw) !important;
    height: 280px !important;
    border-width: 8px !important;
  }

  body[data-page="step1"][data-page] .step1-showcase-card.is-active .step1-showcase-card-body {
    grid-template-columns: 1fr;
    padding: 18px !important;
  }

  body[data-page="step1"][data-page] .step1-showcase-card.is-active .step1-option-button {
    grid-column: 1;
    grid-row: auto;
    margin-top: 12px !important;
  }

  body[data-page="step1"][data-page] .step1-showcase-helper {
    display: none;
  }

body[data-page="step1"][data-page] .step1-process-dock {
    grid-template-columns: 1fr 1fr;
    border-radius: 24px;
  }
}

/* Homepage hero CTA: clean black version. */
body[data-page="index"] .landing-primary {
  --landing-button-height: 54px;
  width: auto;
  min-width: 202px;
  height: var(--landing-button-height);
  justify-content: center;
  gap: 12px;
  padding: 0 26px;
  border-color: #000;
  color: #fff;
  background: #000;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.16);
}

body[data-page="index"] .landing-primary::before,
body[data-page="index"] .landing-primary::after,
body[data-page="index"] .landing-primary__icon::after {
  display: none;
}

body[data-page="index"] .landing-primary__icon {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #fff;
  font-size: 1.16rem;
}

body[data-page="index"] .landing-primary__text-wrap {
  min-width: auto;
  color: #fff;
  font-size: 1.24rem;
  text-shadow: none;
}

body[data-page="index"] .landing-primary:hover,
body[data-page="index"] .landing-primary:focus-visible {
  border-color: #000;
  background: #000;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.2);
}

body[data-page="index"] .landing-primary:hover .landing-primary__icon,
body[data-page="index"] .landing-primary:focus-visible .landing-primary__icon {
  border-color: transparent;
  box-shadow: none;
  transform: scale(1.04);
}

body[data-page="index"] .landing-primary:hover .landing-primary__letter,
body[data-page="index"] .landing-primary:focus-visible .landing-primary__letter {
  text-shadow: none;
}

@media (max-width: 760px) {
  body[data-page="index"] .landing-primary {
    --landing-button-height: 48px;
    min-width: 178px;
    padding: 0 22px;
    gap: 10px;
  }

  body[data-page="index"] .landing-primary__icon {
    flex-basis: 22px;
    width: 22px;
    height: 22px;
    font-size: 1.06rem;
  }

body[data-page="index"] .landing-primary__text-wrap {
  font-size: 1.06rem;
  }
}

body[data-page="index"] .landing-action-row {
  align-items: center;
  gap: 16px;
}

body[data-page="index"] .landing-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid rgba(16, 23, 35, 0.16);
  border-radius: 999px;
  color: #161c27;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 24px rgba(40, 57, 78, 0.08);
  font-size: 1rem;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

body[data-page="index"] .landing-secondary:hover,
body[data-page="index"] .landing-secondary:focus-visible {
  border-color: rgba(16, 23, 35, 0.28);
  box-shadow: 0 16px 30px rgba(40, 57, 78, 0.12);
  transform: translateY(-1px);
}

body[data-page="index"] .landing-secondary i {
  font-size: 1.2rem;
}

body[data-page][data-page="factory-direct"] {
  min-height: 100vh;
  color: #11151d;
  background:
    linear-gradient(180deg, #ffffff 0%, #f7fafc 57%, #ffffff 100%);
}

body[data-page][data-page="factory-direct"]::before,
body[data-page][data-page="factory-direct"]::after {
  content: none;
  display: none;
}

body[data-page="factory-direct"] .factory-page {
  position: relative;
  z-index: 1;
}

body[data-page="factory-direct"] .factory-page,
body[data-page="factory-direct"] .factory-page * {
  box-sizing: border-box;
}

body[data-page="factory-direct"] .factory-nav {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(210px, 1fr);
  align-items: center;
  min-height: 68px;
  padding: 0 40px;
  border-bottom: 1px solid rgba(216, 224, 234, 0.72);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

body[data-page="factory-direct"] .factory-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  color: #050607;
  text-decoration: none;
}

body[data-page="factory-direct"] .factory-brand-mark {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

body[data-page="factory-direct"] .factory-brand strong {
  font-size: 1.42rem;
  font-weight: 950;
  line-height: 1;
}

body[data-page="factory-direct"] .factory-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  min-width: 0;
}

body[data-page="factory-direct"] .factory-menu a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 68px;
  color: #232832;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

body[data-page="factory-direct"] .factory-menu a.is-active {
  color: #050607;
}

body[data-page="factory-direct"] .factory-menu a.is-active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: #050607;
}

body[data-page="factory-direct"] .factory-login {
  justify-self: end;
  min-width: 128px;
  height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #050607;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.16);
  font-size: 0.95rem;
  font-weight: 850;
  cursor: pointer;
}

body[data-page="factory-direct"] .factory-main {
  width: min(1320px, calc(100% - 72px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

body[data-page="factory-direct"] .factory-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, 0.72fr) minmax(0, 1.28fr);
  align-items: center;
  min-height: 210px;
  overflow: hidden;
}

body[data-page="factory-direct"] .factory-hero-copy {
  position: relative;
  z-index: 2;
  padding-left: 2px;
}

body[data-page="factory-direct"] .factory-hero h1 {
  margin: 0;
  color: #090d14;
  font-size: 3.25rem;
  font-weight: 950;
  line-height: 1.06;
}

body[data-page="factory-direct"] .factory-hero p {
  margin: 18px 0 0;
  color: #596272;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.55;
}

body[data-page="factory-direct"] .factory-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  margin-top: 22px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: #050607;
  box-shadow: none;
  font-size: 0.95rem;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

body[data-page="factory-direct"] .factory-hero-image {
  width: 100%;
  height: 206px;
  object-fit: cover;
  object-position: center;
  opacity: 0.86;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.18) 8%, #000 29%, #000 100%);
}

body[data-page="factory-direct"] .factory-catalog {
  margin-top: 10px;
  padding: 20px 20px 22px;
  border: 1px solid rgba(212, 222, 233, 0.96);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 20px 48px rgba(32, 45, 63, 0.06);
}

body[data-page="factory-direct"] .factory-toolbar {
  display: grid;
  grid-template-columns: minmax(210px, 245px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
}

body[data-page="factory-direct"] .factory-search {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(210, 219, 230, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: #8a93a0;
}

body[data-page="factory-direct"] .factory-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: #161c27;
  background: transparent;
  font-size: 0.92rem;
  font-weight: 650;
}

body[data-page="factory-direct"] .factory-search input::placeholder {
  color: #9098a5;
}

body[data-page="factory-direct"] .factory-tabs,
body[data-page="factory-direct"] .factory-filter-chips {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

body[data-page="factory-direct"] .factory-tabs {
  justify-content: center;
}

body[data-page="factory-direct"] .factory-tabs button,
body[data-page="factory-direct"] .factory-filter-chips button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #343b48;
  font-size: 0.92rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

body[data-page="factory-direct"] .factory-tabs button {
  min-width: 68px;
  padding: 0 18px;
}

body[data-page="factory-direct"] .factory-filter-chips button {
  min-width: 84px;
  padding: 0 16px;
  border-color: rgba(216, 224, 234, 0.95);
  background: rgba(255, 255, 255, 0.74);
}

body[data-page="factory-direct"] .factory-tabs button.is-active,
body[data-page="factory-direct"] .factory-filter-chips button.is-active {
  border-color: #050607;
  color: #ffffff;
  background: #050607;
}

body[data-page="factory-direct"] .factory-grid-head {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 26px 0 16px;
  color: #68717e;
  font-size: 0.9rem;
  font-weight: 750;
}

body[data-page="factory-direct"] .factory-grid-head label {
  display: inline-block;
  align-items: center;
}

body[data-page="factory-direct"] .factory-grid-head label span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

body[data-page="factory-direct"] .factory-grid-head select {
  width: 126px;
  appearance: none;
  height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(216, 224, 234, 0.95);
  border-radius: 999px;
  color: #394150;
  background: #ffffff;
  font-size: 0.88rem;
  font-weight: 760;
  text-align: center;
}

body[data-page="factory-direct"] .factory-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 22px;
  margin-top: 22px;
}

body[data-page="factory-direct"] .factory-product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(218, 226, 235, 0.96);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(35, 48, 68, 0.05);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

body[data-page="factory-direct"] .factory-product-card:hover,
body[data-page="factory-direct"] .factory-product-card:focus-visible {
  border-color: rgba(96, 111, 132, 0.35);
  box-shadow: 0 18px 38px rgba(35, 48, 68, 0.08);
  outline: 0;
  transform: translateY(-2px);
}

body[data-page="factory-direct"] .factory-product-media {
  width: 100%;
  aspect-ratio: 1.62;
  overflow: hidden;
  background: #eef2f5;
}

body[data-page="factory-direct"] .factory-product-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

body[data-page="factory-direct"] .factory-product-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  padding: 15px 16px 16px;
}

body[data-page="factory-direct"] .factory-product-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

body[data-page="factory-direct"] .factory-product-title-row h2 {
  min-width: 0;
  margin: 0;
  color: #151a23;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.32;
}

body[data-page="factory-direct"] .factory-product-title-row span {
  flex: 0 0 auto;
  color: #7b8491;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
}

body[data-page="factory-direct"] .factory-product-body > strong {
  display: block;
  margin-top: 7px;
  color: #050607;
  font-size: 1.14rem;
  font-weight: 950;
  line-height: 1.25;
}

body[data-page="factory-direct"] .factory-product-body dl {
  display: grid;
  gap: 3px;
  margin: 10px 0 0;
}

body[data-page="factory-direct"] .factory-product-body dl div {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
}

body[data-page="factory-direct"] .factory-product-body dt,
body[data-page="factory-direct"] .factory-product-body dd {
  margin: 0;
  color: #697380;
  font-size: 0.8rem;
  font-weight: 690;
  line-height: 1.45;
}

body[data-page="factory-direct"] .factory-product-body dd {
  color: #4f5866;
}

body[data-page="factory-direct"] .factory-product-body button {
  display: inline-flex;
  align-items: center;
  align-self: flex-end;
  gap: 6px;
  min-height: 30px;
  margin-top: auto;
  padding: 0;
  border: 0;
  color: #11151d;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 850;
  cursor: pointer;
}

body[data-page="factory-direct"] .factory-empty {
  display: grid;
  place-items: center;
  min-height: 220px;
  color: #7c8795;
  font-size: 0.98rem;
  font-weight: 750;
}

body[data-page="factory-direct"] .factory-empty[hidden] {
  display: none;
}

body[data-page="factory-direct"] .factory-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

body[data-page="factory-direct"] .factory-pagination[hidden] {
  display: none;
}

body[data-page="factory-direct"] .factory-pagination-button {
  min-width: 96px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(216, 224, 234, 0.95);
  border-radius: 999px;
  color: #202631;
  background: #ffffff;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
}

body[data-page="factory-direct"] .factory-pagination-button:not(:disabled):hover {
  border-color: #050607;
  color: #ffffff;
  background: #050607;
}

body[data-page="factory-direct"] .factory-pagination-button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

body[data-page="factory-direct"] .factory-pagination-status {
  min-width: 88px;
  color: #68717e;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 750;
}

body[data-page="factory-direct"] .factory-detail[hidden] {
  display: none;
}

body[data-page="factory-direct"] .factory-detail {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 32px;
}

body[data-page="factory-direct"] .factory-detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 20, 29, 0.38);
  backdrop-filter: blur(10px);
}

body[data-page="factory-direct"] .factory-detail-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1fr);
  width: min(980px, 100%);
  overflow: hidden;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.22);
}

body[data-page="factory-direct"] .factory-detail-close {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(210, 219, 230, 0.9);
  border-radius: 999px;
  color: #171c25;
  background: rgba(255, 255, 255, 0.88);
  font-size: 1.2rem;
  cursor: pointer;
}

body[data-page="factory-direct"] .factory-detail-media {
  display: grid;
  place-items: center;
  min-height: 520px;
  background: #eef2f5;
}

body[data-page="factory-direct"] .factory-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

body[data-page="factory-direct"] .factory-detail-copy {
  padding: 56px 54px 44px;
}

body[data-page="factory-direct"] .factory-detail-kicker {
  color: #7b8491;
  font-size: 0.86rem;
  font-weight: 850;
}

body[data-page="factory-direct"] .factory-detail-copy h2 {
  margin: 12px 0 10px;
  color: #0f141d;
  font-size: 2rem;
  font-weight: 950;
  line-height: 1.18;
}

body[data-page="factory-direct"] .factory-detail-copy p {
  margin: 0;
  color: #616b78;
  font-size: 0.98rem;
  font-weight: 680;
  line-height: 1.72;
}

body[data-page="factory-direct"] .factory-detail-specs {
  display: grid;
  margin: 28px 0 0;
  border-top: 1px solid rgba(220, 227, 235, 0.94);
}

body[data-page="factory-direct"] .factory-detail-specs div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  min-height: 46px;
  align-items: center;
  border-bottom: 1px solid rgba(220, 227, 235, 0.94);
}

body[data-page="factory-direct"] .factory-detail-specs dt,
body[data-page="factory-direct"] .factory-detail-specs dd {
  margin: 0;
  color: #7a8491;
  font-size: 0.92rem;
  font-weight: 760;
}

body[data-page="factory-direct"] .factory-detail-specs dd {
  color: #222936;
  font-weight: 820;
}

body[data-page="factory-direct"] .factory-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

body[data-page="factory-direct"] .factory-detail-actions a,
body[data-page="factory-direct"] .factory-detail-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

body[data-page="factory-direct"] .factory-detail-actions a {
  border: 1px solid #050607;
  color: #ffffff;
  background: #050607;
}

body[data-page="factory-direct"] .factory-detail-actions button {
  border: 1px solid rgba(210, 219, 230, 0.94);
  color: #202631;
  background: #ffffff;
}

body[data-page="factory-direct"] .factory-detail-actions button[data-factory-service-open] {
  border-color: #050607;
  color: #ffffff;
  background: #050607;
}

body[data-page="factory-direct"] .factory-service[hidden] {
  display: none;
}

body[data-page="factory-direct"] .factory-service {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

body[data-page="factory-direct"] .factory-service-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 20, 29, 0.4);
  backdrop-filter: blur(8px);
}

body[data-page="factory-direct"] .factory-service-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(440px, 100%);
  min-height: 520px;
  max-height: min(680px, calc(100vh - 48px));
  overflow: hidden;
  border: 1px solid rgba(217, 225, 234, 0.96);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.22);
}

body[data-page="factory-direct"] .factory-service-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 22px 16px;
  border-bottom: 1px solid rgba(224, 230, 237, 0.9);
}

body[data-page="factory-direct"] .factory-service-head span {
  display: block;
  color: #738092;
  font-size: 0.74rem;
  font-weight: 800;
}

body[data-page="factory-direct"] .factory-service-head h2 {
  margin: 3px 0 0;
  color: #10151e;
  font-size: 1.32rem;
  font-weight: 900;
}

body[data-page="factory-direct"] .factory-service-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(214, 222, 231, 0.96);
  border-radius: 50%;
  color: #354050;
  background: #ffffff;
  font-size: 1.15rem;
  cursor: pointer;
}

body[data-page="factory-direct"] .factory-service-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 14px 22px;
}

body[data-page="factory-direct"] .factory-service-tabs button {
  min-height: 38px;
  border: 1px solid rgba(219, 226, 235, 0.96);
  border-radius: 10px;
  color: #6d7785;
  background: #f8fafc;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
}

body[data-page="factory-direct"] .factory-service-tabs button.is-active {
  border-color: #050607;
  color: #ffffff;
  background: #050607;
}

body[data-page="factory-direct"] .factory-service-ai {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  padding: 0 16px 16px;
}

body[data-page="factory-direct"] .factory-service-ai[hidden],
body[data-page="factory-direct"] .factory-service-human[hidden] {
  display: none;
}

body[data-page="factory-direct"] .factory-service-messages {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 6px 16px;
}

body[data-page="factory-direct"] .factory-service-message {
  max-width: 86%;
  margin: 0;
  padding: 11px 13px;
  border-radius: 14px 14px 14px 4px;
  color: #27313d;
  background: #f2f5f8;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.58;
  white-space: pre-wrap;
}

body[data-page="factory-direct"] .factory-service-message.is-user {
  align-self: flex-end;
  border-radius: 14px 14px 4px 14px;
  color: #ffffff;
  background: #050607;
}

body[data-page="factory-direct"] .factory-service-message.is-pending {
  color: #758092;
  font-style: italic;
}

body[data-page="factory-direct"] .factory-service-recommendations {
  display: grid;
  gap: 8px;
  width: 100%;
  margin: 2px 0 4px;
}

body[data-page="factory-direct"] .factory-service-recommendations-title {
  margin: 0 4px;
  color: #6b7685;
  font-size: 0.76rem;
  font-weight: 800;
}

body[data-page="factory-direct"] .factory-service-recommendations-list {
  display: grid;
  gap: 8px;
}

body[data-page="factory-direct"] .factory-service-recommendation {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(214, 222, 231, 0.96);
  border-radius: 12px;
  color: #1e2733;
  background: #ffffff;
  text-align: left;
  cursor: pointer;
}

body[data-page="factory-direct"] .factory-service-recommendation:hover {
  border-color: rgba(5, 6, 7, 0.58);
  background: #f8fafc;
}

body[data-page="factory-direct"] .factory-service-recommendation img {
  display: block;
  width: 62px;
  height: 62px;
  border-radius: 8px;
  object-fit: cover;
  background: #eef1f4;
}

body[data-page="factory-direct"] .factory-service-recommendation-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

body[data-page="factory-direct"] .factory-service-recommendation-copy strong,
body[data-page="factory-direct"] .factory-service-recommendation-copy small,
body[data-page="factory-direct"] .factory-service-recommendation-copy em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page="factory-direct"] .factory-service-recommendation-copy strong {
  color: #17202b;
  font-size: 0.84rem;
  font-weight: 850;
}

body[data-page="factory-direct"] .factory-service-recommendation-copy small {
  color: #718092;
  font-size: 0.72rem;
  font-weight: 650;
}

body[data-page="factory-direct"] .factory-service-recommendation-copy em {
  color: #10151e;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
}

body[data-page="factory-direct"] .factory-service-recommendation > i {
  color: #7a8592;
  font-size: 1.18rem;
}

body[data-page="factory-direct"] .factory-service-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(216, 224, 234, 0.96);
  border-radius: 14px;
  background: #ffffff;
}

body[data-page="factory-direct"] .factory-service-input input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: #17202b;
  background: transparent;
  font: inherit;
  font-size: 0.9rem;
}

body[data-page="factory-direct"] .factory-service-input button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 10px;
  color: #ffffff;
  background: #050607;
  font-size: 1.05rem;
  cursor: pointer;
}

body[data-page="factory-direct"] .factory-service-input button:disabled {
  opacity: 0.46;
  cursor: wait;
}

body[data-page="factory-direct"] .factory-service-human {
  display: grid;
  flex: 1 1 auto;
  place-content: center;
  justify-items: center;
  gap: 12px;
  padding: 32px 28px;
  text-align: center;
}

body[data-page="factory-direct"] .factory-service-human > i {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: #ffffff;
  background: #050607;
  font-size: 1.5rem;
}

body[data-page="factory-direct"] .factory-service-human h3 {
  margin: 8px 0 0;
  color: #111720;
  font-size: 1.16rem;
  font-weight: 900;
}

body[data-page="factory-direct"] .factory-service-human p {
  max-width: 290px;
  margin: 0;
  color: #707b89;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.65;
}

body[data-page="factory-direct"] .factory-service-human a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 10px;
  padding: 0 22px;
  border-radius: 999px;
  color: #ffffff;
  background: #050607;
  font-size: 0.9rem;
  font-weight: 850;
  text-decoration: none;
}

body.factory-detail-open,
body.factory-service-open {
  overflow: hidden;
}

@media (max-width: 1180px) {
  body[data-page="factory-direct"] .factory-nav {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  body[data-page="factory-direct"] .factory-menu {
    gap: 28px;
  }

  body[data-page="factory-direct"] .factory-toolbar {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  body[data-page="factory-direct"] .factory-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  body[data-page="factory-direct"] .factory-filter-chips {
    flex-wrap: wrap;
  }

  body[data-page="factory-direct"] .factory-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  body[data-page="index"] .landing-secondary {
    min-height: 48px;
    margin-top: 12px;
    padding: 0 20px;
  }

  body[data-page="factory-direct"] .factory-nav {
    grid-template-columns: 1fr auto;
    min-height: 76px;
    padding: 16px 22px;
  }

  body[data-page="factory-direct"] .factory-menu {
    display: none;
  }

  body[data-page="factory-direct"] .factory-login {
    min-width: 104px;
    height: 40px;
    padding: 0 14px;
    font-size: 0.82rem;
  }

  body[data-page="factory-direct"] .factory-main {
    width: calc(100% - 32px);
    padding-top: 28px;
  }

  body[data-page="factory-direct"] .factory-hero {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  body[data-page="factory-direct"] .factory-hero h1 {
    font-size: 2.42rem;
  }

  body[data-page="factory-direct"] .factory-hero p {
    font-size: 1rem;
  }

  body[data-page="factory-direct"] .factory-hero-image {
    height: 220px;
    border-radius: 8px;
    mask-image: none;
  }

  body[data-page="factory-direct"] .factory-catalog {
    padding: 16px;
  }

  body[data-page="factory-direct"] .factory-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="factory-direct"] .factory-detail-dialog {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
  }

  body[data-page="factory-direct"] .factory-detail-media {
    min-height: 260px;
  }

  body[data-page="factory-direct"] .factory-detail-copy {
    padding: 34px 24px 26px;
  }

  body[data-page="factory-direct"] .factory-service {
    padding: 16px;
  }

  body[data-page="factory-direct"] .factory-service-dialog {
    min-height: min(540px, calc(100vh - 32px));
    max-height: calc(100vh - 32px);
  }
}

@media (max-width: 560px) {
  body[data-page="factory-direct"] .factory-brand strong {
    font-size: 1.12rem;
  }

  body[data-page="factory-direct"] .factory-brand-mark {
    width: 28px;
    height: 28px;
  }

  body[data-page="factory-direct"] .factory-product-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="factory-direct"] .factory-grid-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

body.admin-page .factory-file #imagePreview[src*="footer-cta-room"] {
  opacity: 0 !important;
  visibility: hidden !important;
}

body.admin-page .factory-file input[type="file"] {
  max-width: 100%;
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 700;
}

body.admin-page .factory-file input[type="file"]::file-selector-button {
  min-height: 38px;
  margin-right: 12px;
  padding: 0 16px;
  border: 1px solid rgba(201, 169, 98, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
}

/* ========== 2026-07-17 Floorplan Canvas Studio ========== */
body[data-page="floorplan"] {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: #f7f5f0;
  color: #202831;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

body[data-page="floorplan"] button,
body[data-page="floorplan"] input,
body[data-page="floorplan"] textarea,
body[data-page="floorplan"] select {
  font: inherit;
}

body[data-page="floorplan"] .floorplan-container-v3 {
  width: 100% !important;
  max-width: none !important;
  min-height: 100vh;
  padding: 0 !important;
}

body[data-page="floorplan"] .floorplan-topbar-v3 {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 78px;
  padding: 0 32px;
  border-bottom: 1px solid #e6e0d6;
  background: rgba(255, 253, 249, 0.96);
}

body[data-page="floorplan"] .floorplan-brand-v3 {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #202831;
  text-decoration: none;
  font-size: 1.06rem;
  font-weight: 900;
  white-space: nowrap;
}

body[data-page="floorplan"] .floorplan-brand-v3 img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: contain;
}

body[data-page="floorplan"] .floorplan-topbar-divider {
  width: 1px;
  height: 28px;
  background: #d9d2c7;
}

body[data-page="floorplan"] .floorplan-title-v3 {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 16px;
}

body[data-page="floorplan"] .floorplan-title-v3 h1 {
  margin: 0;
  color: #1c232b;
  font-size: 1.36rem;
  font-weight: 950;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

body[data-page="floorplan"] #floorplanHeaderStatus {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #8a8174;
  font-size: 0.78rem;
  font-weight: 760;
  white-space: nowrap;
}

body[data-page="floorplan"] #floorplanHeaderStatus i {
  color: #c68b32;
  font-size: 0.95rem;
}

body[data-page="floorplan"] .floorplan-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

body[data-page="floorplan"] .floorplan-topbar-actions button,
body[data-page="floorplan"] .floorplan-topbar-actions a,
body[data-page="floorplan"] .floorplan-canvas-actions-v3 button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #ddd7cd;
  border-radius: 10px;
  background: #fffefa;
  color: #2c333b;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 820;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

body[data-page="floorplan"] .floorplan-topbar-actions button:hover,
body[data-page="floorplan"] .floorplan-topbar-actions a:hover,
body[data-page="floorplan"] .floorplan-canvas-actions-v3 button:hover:not(:disabled) {
  border-color: #c8b89f;
  background: #ffffff;
  transform: translateY(-1px);
}

body[data-page="floorplan"] .floorplan-studio-v3 {
  display: grid;
  grid-template-rows: auto auto;
  gap: 16px;
  width: 100%;
  min-height: 0;
  padding: 18px 30px 24px;
}

body[data-page="floorplan"] .floorplan-comparison-v3 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 74px minmax(0, 1fr);
  height: clamp(520px, calc(100vh - 486px), 650px);
  min-height: 520px;
  transition: grid-template-columns 220ms ease;
}

body[data-page="floorplan"] .floorplan-canvas-v3 {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #e1dbd1;
  background: #fffefa;
}

body[data-page="floorplan"] .floorplan-source-v3 {
  border-radius: 16px 0 0 16px;
}

body[data-page="floorplan"] .floorplan-result-v3 {
  border-radius: 0 16px 16px 0;
}

body[data-page="floorplan"] .floorplan-canvas-head-v3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 10px 16px;
  border-bottom: 1px solid #eee9e1;
}

body[data-page="floorplan"] .floorplan-canvas-head-v3 > div:first-child {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

body[data-page="floorplan"] .floorplan-canvas-head-v3 h2 {
  margin: 0;
  color: #222a32;
  font-size: 1rem;
  font-weight: 930;
  white-space: nowrap;
}

body[data-page="floorplan"] .floorplan-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #f2f0eb;
  color: #837a6f;
  font-size: 0.7rem;
  font-weight: 800;
  white-space: nowrap;
}

body[data-page="floorplan"] .floorplan-status-pill.is-done {
  background: #eaf6ef;
  color: #2a7853;
}

body[data-page="floorplan"] .floorplan-status-pill.is-loading {
  background: #fff4df;
  color: #a36d1f;
}

body[data-page="floorplan"] .floorplan-status-pill.is-error {
  background: #fbecec;
  color: #a64343;
}

body[data-page="floorplan"] .floorplan-canvas-actions-v3 {
  display: flex;
  align-items: center;
  gap: 8px;
}

body[data-page="floorplan"] .floorplan-canvas-actions-v3 button {
  min-height: 34px;
  padding: 0 11px;
  border-radius: 9px;
  background: #ffffff;
  font-size: 0.76rem;
}

body[data-page="floorplan"] .floorplan-canvas-actions-v3 button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

body[data-page="floorplan"] .floorplan-upload-zone,
body[data-page="floorplan"] .floorplan-output-surface {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #fffefa;
}

body[data-page="floorplan"] .floorplan-upload-zone {
  cursor: pointer;
}

body[data-page="floorplan"] .floorplan-upload-zone:not(.has-image),
body[data-page="floorplan"] .floorplan-output-empty {
  place-items: center;
  background: #fffefa;
}

body[data-page="floorplan"] .floorplan-upload-zone > img,
body[data-page="floorplan"] .floorplan-output-empty > img,
body[data-page="floorplan"] .floorplan-result-media > img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  transform-origin: center;
  transition: transform 180ms ease;
}

body[data-page="floorplan"] .floorplan-upload-zone .floorplan-upload-placeholder-img {
  width: 86%;
  height: 86%;
  margin: auto;
  opacity: 0.94;
}

body[data-page="floorplan"] .floorplan-upload-zone.has-image .floorplan-upload-placeholder-img,
body[data-page="floorplan"] .floorplan-upload-zone.has-image .floorplan-upload-overlay,
body[data-page="floorplan"] .floorplan-upload-zone img[hidden] {
  display: none;
}

body[data-page="floorplan"] .floorplan-upload-overlay {
  position: static;
  display: grid;
  justify-items: center;
  gap: 7px;
  width: min(330px, calc(100% - 48px));
  padding: 28px 24px;
  border: 1px dashed #d9d1c5;
  border-radius: 14px;
  background: #fbfaf6;
  color: #29323b;
  box-shadow: none;
}

body[data-page="floorplan"] .floorplan-upload-overlay i {
  color: #c48b34;
  font-size: 1.25rem;
}

body[data-page="floorplan"] .floorplan-upload-overlay strong {
  font-size: 0.88rem;
  font-weight: 900;
}

body[data-page="floorplan"] .floorplan-upload-overlay small {
  color: #857c70;
  font-size: 0.7rem;
  font-weight: 720;
  text-align: center;
}

body[data-page="floorplan"] .floorplan-ai-bridge-v3 {
  position: relative;
  z-index: 2;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  border-top: 1px solid #e1dbd1;
  border-bottom: 1px solid #e1dbd1;
  background: #f7f5f0;
  color: #c3934c;
}

body[data-page="floorplan"] .floorplan-ai-bridge-v3 span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid #e6d9c6;
  border-radius: 999px;
  background: #fffefa;
  font-size: 1.12rem;
  font-weight: 950;
  box-shadow: 0 10px 26px rgba(108, 78, 35, 0.1);
}

body[data-page="floorplan"] .floorplan-ai-bridge-v3 i {
  font-size: 1.25rem;
}

body[data-page="floorplan"] .floorplan-output-empty {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 100%;
}

body[data-page="floorplan"] .floorplan-output-empty > img {
  width: 88%;
  height: 88%;
  margin: auto;
  opacity: 0.78;
}

body[data-page="floorplan"] .floorplan-output-wait {
  position: static;
  left: auto;
  top: auto;
  display: grid;
  justify-items: center;
  gap: 7px;
  width: min(300px, calc(100% - 48px));
  padding: 28px 24px;
  transform: none;
  border: 1px dashed #e0d8cc;
  border-radius: 14px;
  background: #fbfaf6;
  color: #29323b;
  text-align: center;
  box-shadow: none;
}

body[data-page="floorplan"] .floorplan-output-wait i {
  color: #c48b34;
  font-size: 1.25rem;
}

body[data-page="floorplan"] .floorplan-output-wait strong {
  font-size: 0.9rem;
  font-weight: 900;
}

body[data-page="floorplan"] .floorplan-output-wait small {
  color: #857c70;
  font-size: 0.7rem;
  font-weight: 720;
  line-height: 1.5;
}

body[data-page="floorplan"] .floorplan-zoom-v3 {
  position: absolute;
  z-index: 4;
  left: 16px;
  bottom: 14px;
  display: inline-grid;
  grid-template-columns: 34px 54px 34px;
  align-items: center;
  min-height: 36px;
  overflow: hidden;
  border: 1px solid #ded7cc;
  border-radius: 999px;
  background: rgba(255, 254, 250, 0.92);
  color: #4a5057;
  box-shadow: 0 8px 22px rgba(56, 47, 36, 0.08);
  backdrop-filter: blur(10px);
}

body[data-page="floorplan"] .floorplan-result-zoom-v3 {
  left: auto;
  right: 16px;
}

body[data-page="floorplan"] .floorplan-zoom-v3 button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #4a5057;
  cursor: pointer;
}

body[data-page="floorplan"] .floorplan-zoom-v3 button:hover {
  background: #f2eee7;
}

body[data-page="floorplan"] .floorplan-zoom-v3 span {
  font-size: 0.72rem;
  font-weight: 820;
  text-align: center;
}

body[data-page="floorplan"] .floorplan-results {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

body[data-page="floorplan"] .floorplan-result-grid,
body[data-page="floorplan"] .floorplan-result-card,
body[data-page="floorplan"] .floorplan-result-media {
  width: 100%;
  height: 100%;
  min-height: 0;
}

body[data-page="floorplan"] .floorplan-result-card {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fffefa;
  box-shadow: none;
}

body[data-page="floorplan"] .floorplan-result-media {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: #fffefa;
}

body[data-page="floorplan"] .floorplan-result-media > img {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: calc(100% - 28px);
  height: calc(100% - 28px);
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
  transform: translate(-50%, -50%) scale(var(--floorplan-result-scale, 1));
  transform-origin: center center;
  will-change: transform;
}

body[data-page="floorplan"] .floorplan-result-toolbar-v3 {
  position: absolute;
  z-index: 5;
  top: 14px;
  right: 14px;
  display: flex;
  gap: 7px;
}

body[data-page="floorplan"] .floorplan-result-toolbar-v3 button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid #ded7cc;
  border-radius: 9px;
  background: rgba(255, 254, 250, 0.94);
  color: #303841;
  font-size: 0.74rem;
  font-weight: 820;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(56, 47, 36, 0.08);
  backdrop-filter: blur(10px);
}

body[data-page="floorplan"] .floorplan-result-placeholder {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  min-height: 100%;
  color: #a36d1f;
  font-weight: 880;
}

body[data-page="floorplan"] .floorplan-dock-v3 {
  display: grid;
  grid-template-columns: minmax(380px, 1.5fr) 108px minmax(270px, 1fr) 220px;
  align-items: stretch;
  gap: 10px;
  width: min(1120px, calc(100% - 44px));
  min-height: 166px;
  margin: 0 auto;
  padding: 10px;
  overflow: visible;
  border: 1px solid #ded7cc;
  border-radius: 18px;
  background: #f3f0ea;
  box-shadow: 0 16px 38px rgba(57, 48, 36, 0.1);
}

body[data-page="floorplan"] .floorplan-dock-section {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #e5ded3;
  border-radius: 13px;
  background: #fffefa;
  box-shadow: 0 3px 10px rgba(63, 53, 40, 0.035);
}

body[data-page="floorplan"] .floorplan-dock-section + .floorplan-dock-section {
  border-left: 1px solid #e5ded3;
}

body[data-page="floorplan"] .floorplan-dock-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

body[data-page="floorplan"] .floorplan-dock-label strong {
  color: #29313a;
  font-size: 0.82rem;
  font-weight: 900;
}

body[data-page="floorplan"] .floorplan-dock-label span {
  max-width: 110px;
  overflow: hidden;
  color: #9a8668;
  font-size: 0.7rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page="floorplan"] .floorplan-style-rail-wrap {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto 30px;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

body[data-page="floorplan"] .floorplan-style-grid {
  display: flex;
  grid-column: 1 / -1;
  grid-row: 1;
  gap: 9px;
  width: 100%;
  max-height: none;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 0 4px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

body[data-page="floorplan"] .floorplan-style-grid::-webkit-scrollbar {
  display: none;
}

body[data-page="floorplan"] .floorplan-style-card {
  position: relative;
  display: grid;
  flex: 0 0 82px;
  gap: 4px;
  width: 82px;
  padding: 4px;
  scroll-snap-align: start;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #29313a;
  box-shadow: none;
  cursor: pointer;
}

body[data-page="floorplan"] .floorplan-style-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 7px;
  object-fit: cover;
}

body[data-page="floorplan"] .floorplan-style-card > span:not(.floorplan-style-check) {
  color: #353c43;
  font-size: 0.68rem;
  font-weight: 820;
  text-align: center;
}

body[data-page="floorplan"] .floorplan-style-card.is-selected {
  border-color: #ca913c;
  background: #fff9ed;
  box-shadow: 0 0 0 2px rgba(202, 145, 60, 0.12);
}

body[data-page="floorplan"] .floorplan-style-check {
  position: absolute;
  top: 7px;
  right: 7px;
  display: none;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 999px;
  background: #c98e38;
  color: #ffffff;
  font-size: 0.74rem;
}

body[data-page="floorplan"] .floorplan-style-card.is-selected .floorplan-style-check {
  display: grid;
}

body[data-page="floorplan"] .floorplan-style-prev-btn,
body[data-page="floorplan"] .floorplan-style-next-btn {
  position: static;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  transform: none;
  border: 1px solid #ded7cc;
  border-radius: 9px;
  background: #fffefa;
  color: #4f555c;
  cursor: pointer;
}

body[data-page="floorplan"] .floorplan-style-prev-btn {
  grid-column: 1;
  grid-row: 2;
  justify-self: start;
}

body[data-page="floorplan"] .floorplan-style-next-btn {
  grid-column: 3;
  grid-row: 2;
  justify-self: end;
}

body[data-page="floorplan"] .floorplan-reference-upload {
  display: grid;
  grid-template-rows: auto;
  place-items: center;
  align-content: center;
  gap: 8px;
}

body[data-page="floorplan"] .floorplan-reference-drop {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  width: 100%;
  min-height: 86px;
  border: 1px solid #e5d8c5;
  border-radius: 11px;
  background: #f8f3e9;
  color: #313942;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

body[data-page="floorplan"] .floorplan-reference-drop:hover {
  transform: translateY(-1px);
  border-color: #cfaa72;
  background: #fff8ea;
}

body[data-page="floorplan"] .floorplan-reference-drop i {
  color: #a87832;
  font-size: 1.34rem;
}

body[data-page="floorplan"] .floorplan-reference-drop span {
  display: grid;
  gap: 2px;
}

body[data-page="floorplan"] .floorplan-reference-drop strong {
  font-size: 0.76rem;
  font-weight: 900;
}

body[data-page="floorplan"] .floorplan-reference-drop small {
  color: #92897e;
  font-size: 0.65rem;
}

body[data-page="floorplan"] .floorplan-reference-preview {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 5px;
  border: 1px solid #e2dcd2;
  border-radius: 8px;
  background: #fff;
}

body[data-page="floorplan"] .floorplan-reference-preview img {
  width: 34px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
}

body[data-page="floorplan"] .floorplan-reference-preview span {
  font-size: 0.66rem;
  font-weight: 800;
}

body[data-page="floorplan"] .floorplan-extra {
  position: relative;
  display: block;
}

body[data-page="floorplan"] .floorplan-extra textarea {
  display: block;
  width: 100%;
  min-height: 76px;
  resize: none;
  border: 1px solid #e2dbd0;
  border-radius: 10px;
  padding: 10px 12px 24px;
  background: #fbfaf7;
  color: #2e363f;
  font-size: 0.76rem;
  font-weight: 720;
  line-height: 1.45;
  outline: none;
}

body[data-page="floorplan"] .floorplan-extra textarea:focus {
  border-color: #c79345;
  box-shadow: 0 0 0 3px rgba(199, 147, 69, 0.12);
}

body[data-page="floorplan"] #floorplanPromptCount {
  position: absolute;
  right: 10px;
  bottom: 8px;
  color: #9a9288;
  font-size: 0.64rem;
  font-weight: 780;
}

body[data-page="floorplan"] .floorplan-generate-wrap-v3 {
  display: grid;
  align-content: center;
  gap: 8px;
  border-color: #e5d9c7;
  background: linear-gradient(180deg, #fffaf1 0%, #f8f3e9 100%);
}

body[data-page="floorplan"] .floorplan-generate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 58px;
  border: 0 !important;
  border-radius: 11px !important;
  background: #e5e1da !important;
  color: #a19b92 !important;
  font-size: 0.9rem;
  font-weight: 920;
  box-shadow: none !important;
}

body[data-page="floorplan"] .floorplan-generate-btn.is-ready {
  cursor: pointer;
  background: #ca913c !important;
  color: #fffdf8 !important;
  box-shadow: 0 12px 22px rgba(164, 109, 31, 0.2) !important;
}

body[data-page="floorplan"] .floorplan-cost-note {
  color: #91897e;
  font-size: 0.68rem;
  font-weight: 760;
  text-align: center;
}

body[data-page="floorplan"] .floorplan-comparison-v3.is-result-focus {
  grid-template-columns: minmax(0, 0.08fr) 54px minmax(0, 1.92fr);
}

body[data-page="floorplan"] .floorplan-comparison-v3.is-result-focus .floorplan-source-v3 {
  opacity: 0.32;
  pointer-events: none;
}

body[data-page="floorplan"] .floorplan-lightbox {
  background: rgba(23, 25, 27, 0.78);
}

body[data-page="floorplan"] .floorplan-lightbox-panel {
  border-radius: 16px;
  background: #f7f5f0;
}

body[data-page="floorplan"] .floorplan-lightbox-close {
  border-radius: 10px;
  background: #293541 !important;
  color: #ffffff !important;
}

body[data-page="floorplan"] .floorplan-lead-card {
  margin: 12px;
  padding: 12px;
  border: 1px solid #e2dcd2;
  border-radius: 12px;
  background: #fbfaf6;
}

@media (max-width: 1180px) {
  body[data-page="floorplan"] .floorplan-studio-v3 {
    height: auto;
    min-height: calc(100vh - 78px);
  }

  body[data-page="floorplan"] .floorplan-dock-v3 {
    grid-template-columns: minmax(320px, 1.3fr) 100px minmax(230px, 1fr) 200px;
    width: 100%;
  }

  body[data-page="floorplan"] .floorplan-canvas-actions-v3 button span {
    display: none;
  }
}

@media (max-width: 920px) {
  body[data-page="floorplan"] .floorplan-title-v3 > span,
  body[data-page="floorplan"] .floorplan-topbar-actions button {
    display: none;
  }

  body[data-page="floorplan"] .floorplan-studio-v3 {
    padding: 14px 16px 20px;
  }

  body[data-page="floorplan"] .floorplan-comparison-v3 {
    grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);
  }

  body[data-page="floorplan"] .floorplan-dock-v3 {
    grid-template-columns: minmax(0, 1fr) 100px minmax(0, 1fr);
  }

  body[data-page="floorplan"] .floorplan-generate-wrap-v3 {
    grid-column: 1 / -1;
    border: 1px solid #e5d9c7 !important;
  }
}

@media (max-width: 700px) {
  body[data-page="floorplan"] .floorplan-topbar-v3 {
    min-height: 66px;
    padding: 0 14px;
  }

  body[data-page="floorplan"] .floorplan-brand-v3 span,
  body[data-page="floorplan"] .floorplan-topbar-divider {
    display: none;
  }

  body[data-page="floorplan"] .floorplan-title-v3 h1 {
    font-size: 1.04rem;
  }

  body[data-page="floorplan"] .floorplan-topbar-actions a {
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.74rem;
  }

  body[data-page="floorplan"] .floorplan-studio-v3 {
    grid-template-rows: auto auto;
    min-height: 0;
  }

  body[data-page="floorplan"] .floorplan-comparison-v3,
  body[data-page="floorplan"] .floorplan-comparison-v3.is-result-focus {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body[data-page="floorplan"] .floorplan-canvas-v3 {
    min-height: 430px;
    border-radius: 14px;
  }

  body[data-page="floorplan"] .floorplan-ai-bridge-v3 {
    display: none;
  }

  body[data-page="floorplan"] .floorplan-comparison-v3.is-result-focus .floorplan-source-v3 {
    display: none;
  }

  body[data-page="floorplan"] .floorplan-dock-v3 {
    grid-template-columns: 1fr;
    border-radius: 14px;
  }

  body[data-page="floorplan"] .floorplan-dock-section + .floorplan-dock-section {
    border: 1px solid #e5ded3;
  }

  body[data-page="floorplan"] .floorplan-reference-upload {
    display: none;
  }

  body[data-page="floorplan"] .floorplan-canvas-head-v3 {
    padding: 9px 12px;
  }
}

body[data-page="floorplan"][data-page] {
  background: #f7f5f0 !important;
  color: #202831 !important;
}

body[data-page="floorplan"][data-page]::before,
body[data-page="floorplan"][data-page]::after,
body[data-page="floorplan"][data-page] .floorplan-container-v3::before {
  display: none !important;
  content: none !important;
}

body[data-page="floorplan"] .floorplan-options-panel {
  display: block;
}

body[data-page="floorplan"] footer,
body[data-page="floorplan"] .footer {
  display: none !important;
}
