:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --ink: #172033;
  --muted: #6b7280;
  --line: #e9edf5;
  --blue: #1677ff;
  --cyan: #13c2c2;
  --green: #00a870;
  --orange: #fa8c16;
  --shadow: 0 18px 46px rgba(17, 34, 68, 0.08);
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
}

/* Furniture commerce prototype */
.cart-trigger{display:flex;align-items:center;gap:8px;padding:8px 10px;border:0;background:transparent;color:#292823;font:600 11px "Montserrat",sans-serif;cursor:pointer}.cart-trigger .cart-icon{padding:5px 7px;border:1px solid #bcb8ab;font-size:8px;letter-spacing:.08em;text-transform:uppercase}.cart-trigger b{display:grid;min-width:19px;height:19px;place-items:center;border-radius:50%;background:#65745d;color:#fff;font-size:9px}.catalog-card{appearance:none}.catalog-card:focus-visible{outline:2px solid #65745d;outline-offset:3px}.catalog-copy{cursor:default}.product-name{display:block;width:100%;padding:0;border:0;background:none;color:#212120;text-align:left;font:700 13px "Montserrat",sans-serif;cursor:pointer}.product-name:hover{color:#65745d;text-decoration:underline;text-underline-offset:4px}.product-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:14px;padding-top:12px;border-top:1px solid #ece9e1}.product-meta>strong{font-size:14px}.add-cart-button{padding:8px 10px;border:1px solid #65745d;background:#65745d;color:#fff;font-size:10px;font-weight:700;cursor:pointer;transition:background .2s,color .2s}.add-cart-button:hover{background:#fff;color:#65745d}.cart-list{display:grid;gap:14px}.cart-line{display:grid;grid-template-columns:64px 1fr auto;align-items:center;gap:12px;padding-bottom:14px;border-bottom:1px solid #e7e3da}.cart-swatch{height:58px}.cart-line strong,.cart-line small{display:block}.cart-line small{margin-top:6px;color:#777269}.cart-line button{border:0;background:none;color:#8b574d;font-size:10px;cursor:pointer}.cart-total{display:flex;justify-content:space-between;padding:14px 0}.cart-total span{color:#777269}.cart-total strong{font-size:18px}.cart-empty{display:grid;place-items:center;min-height:330px;text-align:center}.cart-empty span{font:700 54px Georgia,serif;color:#d6d1c5}.cart-empty small{margin-top:8px;color:#777269}.product-detail{display:grid;grid-template-columns:1.08fr .92fr;min-height:390px;overflow:hidden}.product-detail-visual{position:relative;min-height:390px}.product-detail-visual i{position:absolute;left:14%;right:14%;bottom:22%;height:28%;border-radius:50% 50% 8px 8px;background:rgba(255,255,255,.68);box-shadow:0 22px 30px rgba(30,28,24,.18)}.product-detail-copy{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:42px;background:#f7f5ef}.product-detail-copy>span{color:#77715f;font-size:9px;font-weight:700;letter-spacing:.14em;text-transform:uppercase}.product-detail-copy h2{margin:12px 0;font:700 27px "Montserrat",sans-serif}.product-detail-copy p{color:#67635a;line-height:1.7}.product-detail-copy>strong{margin:14px 0;font-size:22px}.product-detail-copy>small{margin-bottom:24px;color:#8b867d;line-height:1.5}@media(max-width:760px){.product-detail{grid-template-columns:1fr}.product-detail-visual{min-height:230px}.product-detail-copy{padding:28px}.cart-trigger>span:nth-child(2){display:none}}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
}

[v-cloak] {
  display: none;
}

.auth-screen {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 40px 18px 72px;
  background:
    radial-gradient(circle at 82% 26%, rgba(30, 95, 220, 0.42), transparent 24rem),
    radial-gradient(circle at 16% 80%, rgba(24, 144, 255, 0.28), transparent 20rem),
    linear-gradient(140deg, #05081b 0%, #0b1637 48%, #071022 100%);
}

.auth-screen::before,
.auth-screen::after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
}

.auth-screen::before {
  top: -170px;
  right: -120px;
}

.auth-screen::after {
  left: -150px;
  bottom: -180px;
}

.star-field {
  position: absolute;
  inset: 0;
}

.star-field span {
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.72);
}

.auth-card.ant-card {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  border-radius: 22px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}

.auth-card .ant-card-body {
  padding: 42px;
}

.brand-lockup,
.side-brand,
.side-account,
.topbar,
.top-actions,
.preview-strip,
.builder-actions,
.result-actions {
  display: flex;
  align-items: center;
}

.brand-lockup {
  gap: 14px;
}

.auth-brand {
  justify-content: center;
  margin-bottom: 24px;
  text-align: left;
}

.brand-lockup strong,
.side-brand strong {
  display: block;
  color: #123b9b;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 900;
}

.brand-lockup small,
.side-brand small {
  display: block;
  margin-top: 4px;
  color: #8791a3;
  font-size: 13px;
}

.brand-mark {
  position: relative;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border-radius: 16px;
  background: linear-gradient(135deg, #1677ff, #13c2c2);
  box-shadow: 0 14px 28px rgba(22, 119, 255, 0.26);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
}

.brand-mark::before {
  left: 13px;
  top: 14px;
  width: 28px;
  height: 8px;
}

.brand-mark::after {
  left: 13px;
  top: 28px;
  width: 20px;
  height: 8px;
}

.brand-mark.small {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.brand-mark.small::before {
  left: 10px;
  top: 11px;
  width: 22px;
  height: 7px;
}

.brand-mark.small::after {
  left: 10px;
  top: 23px;
  width: 16px;
  height: 7px;
}

.auth-tabs .ant-tabs-nav {
  margin-bottom: 24px;
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -4px 0 18px;
}

.plain-link {
  padding-right: 0;
}

.demo-alert {
  margin-top: 22px;
  border-radius: 10px;
}

.auth-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  z-index: 1;
  color: rgba(255, 255, 255, 0.66);
  text-align: center;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  min-height: 100vh;
  background: #fff !important;
  border-right: 1px solid var(--line);
  box-shadow: 8px 0 24px rgba(15, 34, 67, 0.03);
}

.side-brand {
  height: 82px;
  gap: 12px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
}

.side-brand strong {
  font-size: 22px;
}

.side-menu {
  padding: 14px 8px;
  border-inline-end: 0 !important;
}

.side-menu .ant-menu-item {
  height: 46px;
  line-height: 46px;
  border-radius: 8px;
}

.menu-symbol {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  margin-right: 10px;
  border-radius: 6px;
  background: #eef4ff;
  color: #1677ff;
  font-size: 13px;
  font-weight: 800;
}

.side-account {
  gap: 12px;
  margin: auto 18px 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.side-account strong,
.side-account small {
  display: block;
}

.side-account small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.topbar.ant-layout-header {
  height: 82px;
  justify-content: space-between;
  padding: 0 28px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  line-height: 1.2;
}

.topbar h1 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
}

.topbar p {
  margin: 5px 0 0;
  color: var(--muted);
}

.top-actions {
  gap: 14px;
}

.dropdown-caret {
  margin-left: 6px;
}

.main-content {
  padding: 24px;
}

.workspace-grid {
  max-width: 1180px;
  margin: 0 auto;
}

.flow-card.ant-card,
.result-column .ant-card,
.page-stack .ant-card {
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.flow-card .ant-card-body {
  padding: 28px;
}

.builder-section {
  margin-top: 30px;
}

.builder-section h2 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.step-panel {
  min-height: 420px;
}

.option-block {
  margin-top: 24px;
}

.option-block:first-of-type {
  margin-top: 0;
}

.option-block h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

.selection-substeps {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 22px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
}

.selection-substeps span {
  min-width: 0;
  padding: 8px 12px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.selection-substeps span.active {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 8px 18px rgba(22, 119, 255, 0.18);
}

.selection-substeps span.done {
  color: var(--blue);
  background: #eef4ff;
}

.option-block .ant-radio-group {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
}

.option-block .ant-radio-button-wrapper {
  min-width: 0;
  height: 40px;
  padding: 0 10px;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.option-block .ant-segmented {
  width: 100%;
}

.option-block .ant-segmented-group {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
}

.option-block .ant-segmented-item {
  min-width: 0;
  width: 100%;
  justify-self: stretch;
  text-align: center;
}

.option-block .ant-segmented-item-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-icon {
  margin: 0;
  color: var(--blue);
  font-size: 46px;
  line-height: 1;
}

.preview-strip {
  gap: 14px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcff;
}

.preview-strip img {
  width: 76px;
  height: 58px;
  object-fit: cover;
  border-radius: 8px;
}

.preview-strip div {
  min-width: 0;
  margin-right: auto;
}

.preview-strip strong,
.preview-strip small {
  display: block;
}

.preview-strip small {
  color: var(--muted);
}

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

.style-tile {
  min-height: 104px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.style-tile:hover,
.style-tile.active {
  border-color: var(--blue);
  box-shadow: 0 10px 24px rgba(22, 119, 255, 0.12);
  transform: translateY(-1px);
}

.style-tile span {
  display: block;
  width: 100%;
  height: 28px;
  margin-bottom: 12px;
  border-radius: 8px;
}

.style-tile strong,
.style-tile small {
  display: block;
}

.style-tile small {
  margin-top: 4px;
  color: var(--muted);
}

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

.furniture-card {
  overflow: hidden;
  min-height: 196px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.furniture-card:hover,
.furniture-card.active {
  border-color: var(--blue);
  box-shadow: 0 10px 24px rgba(22, 119, 255, 0.12);
  transform: translateY(-1px);
}

.furniture-card.active .furniture-image::after {
  content: "已选";
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.furniture-image {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid var(--line);
}

.furniture-image::before {
  content: "";
  position: absolute;
  left: 11%;
  right: 11%;
  bottom: 18%;
  height: 26%;
  border-radius: 999px 999px 12px 12px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 18px 22px rgba(15, 23, 42, 0.12);
}

.furniture-info {
  display: block;
  padding: 12px 14px 14px;
}

.furniture-info strong,
.furniture-info small {
  display: block;
}

.furniture-info small {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.5;
}

.selected-furniture {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcff;
}

.selected-furniture span {
  flex: 0 0 auto;
  color: var(--muted);
}

.selected-furniture strong {
  color: var(--ink);
  font-weight: 800;
  line-height: 1.5;
}

.builder-actions {
  justify-content: flex-end;
  gap: 12px;
  margin-top: 30px;
}

.generation-card {
  display: grid;
  align-content: center;
}

.generation-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 22px 0 26px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcff;
}

.generation-summary img {
  width: 128px;
  aspect-ratio: 4 / 3;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 8px;
  background: #eef2f7;
}

.generation-summary strong,
.generation-summary small {
  display: block;
}

.generation-summary small {
  margin-top: 6px;
  color: var(--muted);
}

.result-card {
  min-height: 0;
}

.result-column {
  display: grid;
  gap: 20px;
  align-content: start;
}

.status-line {
  margin-top: 18px;
}

.result-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.result-compare span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.result-compare img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  background: #eef2f7;
}

.result-actions {
  justify-content: flex-end;
  gap: 10px;
}

.page-stack {
  display: grid;
  gap: 20px;
}

.metric-grid .ant-card {
  min-height: 132px;
}

.metric-note {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 20px;
}

.trend-bars {
  display: grid;
  gap: 18px;
  padding: 4px 0;
}

.trend-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 14px;
}

.trend-item span,
.trend-item strong {
  color: var(--muted);
  font-size: 13px;
}

.trend-item strong {
  color: var(--ink);
  text-align: right;
}

.trend-item div {
  overflow: hidden;
  height: 12px;
  border-radius: 999px;
  background: #edf2f7;
}

.trend-item i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1677ff, #13c2c2);
}

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

.status-range-select {
  width: 132px;
}

.status-range-select .ant-select-selector {
  border-color: #d9d4c8 !important;
  background: #fbfaf7 !important;
}

.status-grid div {
  min-height: 96px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcff;
}

.status-grid span,
.style-swatch {
  display: block;
}

.status-grid span {
  width: 10px;
  height: 10px;
  margin-bottom: 16px;
  border-radius: 999px;
}

.status-grid span.blue {
  background: var(--blue);
}

.status-grid span.green {
  background: var(--green);
}

.status-grid span.orange {
  background: var(--orange);
}

.status-grid span.gray {
  background: #94a3b8;
}

.status-grid strong,
.status-grid small {
  display: block;
}

.status-grid strong {
  font-size: 28px;
  line-height: 1;
}

.status-grid small {
  margin-top: 8px;
  color: var(--muted);
}

.thumb-pair {
  display: flex;
  align-items: center;
}

.thumb-pair img {
  width: 58px;
  height: 44px;
  object-fit: cover;
  border: 2px solid #fff;
  border-radius: 8px;
  background: #eef2f7;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.thumb-pair img + img {
  margin-left: -14px;
}

.style-swatch {
  width: 46px;
  height: 30px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-cell strong,
.user-cell small {
  display: block;
}

.user-cell small {
  margin-top: 2px;
  color: var(--muted);
}

.image-viewer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.image-viewer span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.image-viewer img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  background: #eef2f7;
}

.image-viewer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #e6e8ec;
}

.image-viewer-task {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
}

@media (max-width: 760px) {
  .auth-card .ant-card-body {
    padding: 28px 20px;
  }

  .auth-brand {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .brand-lockup strong {
    font-size: 20px;
  }

  .topbar.ant-layout-header {
    height: auto;
    align-items: flex-start;
    flex-direction: column;
    padding: 16px;
  }

  .main-content {
    padding: 14px;
  }

  .flow-card .ant-card-body {
    padding: 18px;
  }

  .style-grid,
  .furniture-grid,
  .result-column,
  .result-compare,
  .dashboard-layout,
  .image-viewer {
    grid-template-columns: 1fr;
  }

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

  .selection-substeps {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
  }

  .selection-substeps span {
    min-width: 0;
  }

  .image-viewer-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .image-viewer-actions .ant-space,
  .image-viewer-actions .ant-space-item,
  .image-viewer-actions .ant-btn {
    width: 100%;
  }

  .preview-strip,
  .generation-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .builder-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .builder-actions .ant-btn {
    width: 100%;
  }
}

/* Yeeham-inspired editorial furniture theme. Functional layout remains unchanged. */
:root {
  --bg: #f3f1ec;
  --panel: #fffefb;
  --ink: #212120;
  --muted: #76736b;
  --line: #dedbd2;
  --blue: #7f7659;
  --cyan: #9b9275;
  --green: #65745d;
  --orange: #a47745;
  --shadow: 0 12px 36px rgba(47, 43, 34, 0.07);
  font-family: var(--font-body);
}

body {
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

.auth-screen {
  background:
    linear-gradient(90deg, rgba(29, 27, 23, 0.52), rgba(29, 27, 23, 0.14)),
    url("https://images.unsplash.com/photo-1618221195710-dd6b41faaea6?auto=format&fit=crop&w=1800&q=85") center / cover;
}

.auth-screen::before,
.auth-screen::after {
  border-color: rgba(255, 255, 255, 0.24);
  border-radius: 0;
}

.star-field span { display: none; }

.auth-card.ant-card {
  overflow: hidden;
  border-radius: 2px;
  background: rgba(255, 254, 251, 0.96);
  box-shadow: 0 28px 80px rgba(31, 28, 22, 0.24);
}

.auth-card::before {
  content: "AI INTERIOR STUDIO";
  display: block;
  padding: 10px 14px;
  background: #7f7659;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-align: center;
}

.brand-lockup strong,
.side-brand strong,
.topbar h1,
.builder-section h2,
.option-block h3,
.ant-card-head-title,
.ant-statistic-title {
  color: var(--ink);
  font-family: var(--font-heading);
  font-weight: 700;
}

.brand-mark {
  border-radius: 1px;
  background: #7f7659;
  box-shadow: none;
}

.brand-mark::before,
.brand-mark::after { border-radius: 0; }

.sidebar,
.topbar.ant-layout-header { background: #fffefb !important; }
.sidebar { box-shadow: none; }

.main-content {
  padding: 30px;
  background:
    linear-gradient(rgba(127, 118, 89, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 118, 89, 0.025) 1px, transparent 1px),
    var(--bg);
  background-size: 32px 32px;
}

.flow-card.ant-card,
.result-column .ant-card,
.page-stack .ant-card {
  border: 1px solid var(--line);
  border-radius: 2px;
}

.menu-symbol,
.side-menu .ant-menu-item,
.selection-substeps,
.selection-substeps span,
.preview-strip,
.preview-strip img,
.style-tile,
.style-tile span,
.furniture-card,
.selected-furniture,
.generation-summary,
.generation-summary img,
.result-compare img,
.image-viewer img,
.thumb-pair img,
.style-swatch,
.status-grid div {
  border-radius: 1px;
}

.menu-symbol,
.selection-substeps span.done {
  background: #e7e2d5;
  color: #5f5843;
}

.selection-substeps,
.preview-strip,
.selected-furniture,
.generation-summary,
.status-grid div { background: #ebe8e0; }

.selection-substeps span.active,
.furniture-card.active .furniture-image::after { background: #7f7659; }

.selection-substeps span.active { box-shadow: none; }

.style-tile:hover,
.style-tile.active,
.furniture-card:hover,
.furniture-card.active {
  border-color: #7f7659;
  box-shadow: 0 12px 26px rgba(47, 43, 34, 0.1);
  transform: translateY(-2px);
}

.trend-item i { background: #7f7659; }

.ant-btn,
.ant-input,
.ant-input-affix-wrapper,
.ant-select-selector,
.ant-upload-drag,
.ant-alert,
.ant-modal-content,
.ant-segmented,
.ant-radio-button-wrapper { border-radius: 1px !important; }

.ant-btn-primary,
.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled),
.ant-segmented-item-selected {
  border-color: #7f7659 !important;
  background: #7f7659 !important;
  color: #fff !important;
  box-shadow: none !important;
}

.ant-btn-primary:hover,
.ant-btn-primary:focus {
  border-color: #5f5843 !important;
  background: #5f5843 !important;
}

.ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn,
.ant-btn-link,
.ant-steps-item-finish .ant-steps-item-icon > .ant-steps-icon { color: #7f7659 !important; }

.ant-tabs-ink-bar,
.ant-progress-bg { background: #7f7659 !important; }

.ant-checkbox-checked .ant-checkbox-inner {
  border-color: #7f7659 !important;
  background: #7f7659 !important;
}

.demo-alert.ant-alert-info {
  border-color: #d8d1bd;
  background: #f0ede5;
}

.demo-alert.ant-alert-info .ant-alert-icon,
.demo-alert.ant-alert-info .ant-alert-message { color: #5f5843; }

.side-menu.ant-menu-light .ant-menu-item-selected {
  background: #e7e2d5;
  color: #5f5843;
}

.ant-statistic-content {
  color: var(--ink) !important;
  font-family: var(--font-editorial);
  font-size: 34px !important;
  font-weight: 600;
}

@media (max-width: 760px) {
  .main-content { padding: 14px; }
}

/* Exact Yeeham type system: Inter body, Montserrat UI headings, Cormorant editorial accents. */
html,
body,
button,
input,
textarea,
select,
#app,
.ant-app,
.ant-layout,
.ant-menu,
.ant-card,
.ant-form,
.ant-form-item,
.ant-input,
.ant-input-affix-wrapper,
.ant-btn,
.ant-tabs,
.ant-alert,
.ant-table-wrapper,
.ant-modal,
.ant-segmented,
.ant-radio-group,
.ant-upload-wrapper,
.ant-steps,
.ant-dropdown,
.ant-tag,
.ant-badge,
.ant-checkbox-wrapper {
  font-family: "Inter", sans-serif !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand-lockup strong,
.side-brand strong,
.topbar h1,
.builder-section h2,
.option-block h3,
.ant-card-head-title,
.ant-modal-title,
.ant-statistic-title,
.ant-table-thead > tr > th,
.ant-steps-item-title {
  font-family: "Montserrat", sans-serif !important;
  letter-spacing: -0.02em;
}

.auth-brand strong {
  font-family: "Cormorant", serif !important;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.side-brand strong {
  font-family: "Cormorant", serif !important;
  font-size: 27px;
  font-weight: 600;
}

.ant-statistic-content,
.status-grid strong {
  font-family: "Cormorant", serif !important;
}

.auth-card::before,
.side-menu,
.topbar p,
.builder-actions,
.ant-btn,
.ant-tabs-tab,
.ant-form-item-label,
.ant-table,
.ant-alert,
.ant-tag {
  letter-spacing: 0.01em;
}

/* Yeeham-style top navigation */
.app-shell {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  background: var(--bg);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
  background: #fffefb;
  box-shadow: 0 1px 0 var(--line);
}

.announcement-bar {
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0 20px;
  background: #292824;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-align: center;
}

.site-nav {
  width: min(1480px, 100%);
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  grid-template-rows: 68px 48px;
  align-items: center;
  column-gap: 26px;
  row-gap: 0;
  margin: 0 auto;
  padding: 0 28px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  grid-column: 2;
  justify-self: center;
  text-align: center;
}

.site-brand > span:last-child,
.site-brand strong,
.site-brand small,
.account-copy,
.account-copy strong,
.account-copy small {
  display: block;
}

.site-brand strong {
  font-family: "Cormorant", serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
}

.site-brand small {
  margin-top: 4px;
  color: var(--muted);
  font-family: "Inter", sans-serif;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.top-menu.ant-menu-horizontal {
  min-width: 0;
  grid-column: 1 / -1;
  grid-row: 2;
  justify-content: center;
  border-bottom: 0;
  background: transparent;
  line-height: 48px;
}

.top-menu.ant-menu-horizontal > .ant-menu-item {
  height: 48px;
  padding-inline: 18px;
  color: #292824;
  font-family: "Montserrat", sans-serif !important;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.top-menu.ant-menu-horizontal > .ant-menu-item::after {
  right: 18px;
  bottom: 7px;
  left: 18px;
  border-bottom-width: 1px;
  border-bottom-color: #7f7659;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease, opacity 180ms ease;
}

.top-menu.ant-menu-horizontal > .ant-menu-item-selected,
.top-menu.ant-menu-horizontal > .ant-menu-item:hover {
  color: #5f5843 !important;
  background: transparent !important;
}

.top-menu.ant-menu-horizontal > .ant-menu-item-selected::after,
.top-menu.ant-menu-horizontal > .ant-menu-item:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.top-menu.ant-menu-horizontal > .ant-menu-item:not(.ant-menu-item-selected):not(:hover)::after {
  opacity: 0 !important;
  transform: scaleX(0) !important;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  grid-column: 3;
  justify-self: end;
}

.account-button {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.account-button:hover,
.account-button:focus-visible {
  color: #5f5843;
  border-color: #d9d4c8;
  background: #fbfaf7;
  outline: 0;
}

.account-icon {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-copy {
  min-width: 92px;
  text-align: left;
}

.account-copy strong {
  overflow: hidden;
  max-width: 125px;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-copy small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.content-layout {
  width: 100%;
  min-height: calc(100vh - 96px);
  background: var(--bg);
}

.topbar.ant-layout-header {
  width: 100%;
  height: auto;
  min-height: 104px;
  padding: 24px max(28px, calc((100vw - 1180px) / 2));
  background: #fffefb !important;
}

.topbar h1 {
  font-size: 30px;
  letter-spacing: -0.035em;
}

.topbar p {
  max-width: 650px;
  font-size: 13px;
}

.topbar-kicker {
  color: #8b846f;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
}

@media (max-width: 980px) {
  .site-nav {
    grid-template-columns: minmax(100px, 1fr) auto minmax(100px, 1fr);
    grid-template-rows: 58px 44px;
    column-gap: 12px;
    row-gap: 0;
    padding: 0 18px;
  }

  .top-menu.ant-menu-horizontal {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    border-top: 1px solid var(--line);
    line-height: 44px;
    scrollbar-width: none;
  }

  .top-menu.ant-menu-horizontal::-webkit-scrollbar { display: none; }

  .top-menu.ant-menu-horizontal > .ant-menu-item {
    height: 44px;
    flex: 0 0 auto;
    padding-inline: 14px;
    line-height: 44px;
  }

  .top-menu.ant-menu-horizontal > .ant-menu-item::after {
    right: 14px;
    bottom: 6px;
    left: 14px;
  }

  .site-nav { padding-top: 0; }
}

@media (max-width: 620px) {
  .announcement-bar {
    height: 22px;
    font-size: 7px;
    letter-spacing: 0.09em;
  }

  .site-brand small,
  .account-copy { display: none; }

  .site-brand strong { font-size: 21px; }
  .nav-actions { gap: 7px; }
  .account-button { width: 38px; height: 38px; }

  .topbar.ant-layout-header {
    min-height: 0;
    gap: 16px;
    padding: 19px 16px;
  }

  .topbar h1 { font-size: 25px; }
  .topbar-kicker { display: none; }
}

/* Pure-white application canvas; the announcement bar remains black. */
body,
.app-shell,
.content-layout,
.main-content,
.site-header,
.site-nav,
.topbar.ant-layout-header,
.flow-card.ant-card,
.page-stack .ant-card,
.result-column .ant-card,
.ant-card,
.ant-card-body,
.ant-card-head,
.selection-substeps,
.preview-strip,
.selected-furniture,
.generation-summary,
.status-grid div,
.style-tile,
.furniture-card,
.ant-upload-wrapper .ant-upload-drag,
.ant-table-wrapper .ant-table,
.ant-table-wrapper .ant-table-container,
.ant-modal-content,
.ant-modal-header,
.ant-segmented {
  background: #ffffff !important;
}

.main-content {
  background-image: none !important;
}

.announcement-bar {
  background: #292824 !important;
}

.selection-substeps,
.preview-strip,
.selected-furniture,
.generation-summary,
.status-grid div {
  border-color: #e6e3dc;
}

.demo-alert.ant-alert-info {
  background: #ffffff !important;
}

/* Single-page interior design workbench */
.workspace-grid { width: 100%; max-width: none; margin: 0; }
.design-workbench { display: grid; grid-template-columns: 330px minmax(0, 1fr); max-width: 1540px; min-height: 760px; margin: 0 auto; border: 1px solid #dedbd2; background: #fff; box-shadow: 0 18px 50px rgba(47,43,34,.06); }
.upload-panel { padding: 30px 26px; border-right: 1px solid #dedbd2; background: #fbfaf7; }
.section-heading { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 24px; }
.section-heading > span { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border: 1px solid #7f7659; color: #5f5843; font: 700 11px "Montserrat",sans-serif; }
.section-heading h1,.section-heading h2 { margin: 0; color: #212120; font: 700 22px/1.2 "Montserrat",sans-serif !important; letter-spacing: -.035em; }
.section-heading p { margin: 6px 0 0; color: #76736b; font-size: 12px; line-height: 1.55; }
.studio-uploader .ant-upload-drag { min-height: 300px; border: 1px dashed #aaa596 !important; background: #fff !important; }
.studio-uploader .ant-upload { padding: 32px 18px !important; }
.upload-glyph { color: #292824; font-size: 42px; line-height: 1; }
.studio-uploader .ant-upload-text { margin: 20px 0 4px !important; color: #292824 !important; font-weight: 700; }
.upload-or { margin: 3px 0 14px; color: #8a877f; }
.upload-cta { display: inline-block; padding: 11px 24px; background: #5f5843; color: #fff; font-weight: 700; }
.studio-uploader .ant-upload-hint { margin-top: 14px !important; color: #8a877f !important; font-size: 11px !important; }
.upload-file { display: grid; grid-template-columns: 64px minmax(0,1fr) 32px; gap: 12px; align-items: center; margin-top: 16px; padding: 10px; border: 1px solid #dedbd2; background: #fff; }
.upload-file img { width: 64px; height: 52px; object-fit: cover; }
.upload-file strong,.upload-file small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-file strong { font-size: 12px; }.upload-file small { margin-top: 4px; color: #8a877f; font-size: 10px; }
.upload-file button { width: 30px; height: 30px; border: 0; background: #f0eee8; color: #5f5843; cursor: pointer; font-size: 20px; }
.upload-tips { margin-top: 24px; padding-top: 20px; border-top: 1px solid #dedbd2; }.upload-tips strong { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }.upload-tips p { margin: 8px 0 0; color: #76736b; font-size: 11px; line-height: 1.6; }
.studio-main { min-width: 0; padding: 30px; }
.preview-toolbar,.furniture-title-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }.eyebrow { color: #8b846f; font-size: 9px; font-weight: 700; letter-spacing: .16em; }.preview-toolbar h2 { margin: 4px 0 0; font: 700 26px "Montserrat",sans-serif !important; letter-spacing: -.04em; }.preview-actions { display: flex; gap: 10px; }
.image-stage { position: relative; display: grid; min-height: 390px; margin-top: 20px; border: 1px solid #dedbd2; background: #f4f2ed; }.image-stage.has-result { grid-template-columns: repeat(2,minmax(0,1fr)); }.image-frame { position: relative; min-width: 0; }.image-frame + .image-frame { border-left: 1px solid #fff; }.image-frame img { display: block; width: 100%; height: 100%; min-height: 390px; object-fit: cover; }.image-label { position: absolute; z-index: 2; top: 14px; left: 14px; padding: 7px 10px; background: rgba(32,31,28,.84); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.empty-preview { display: grid; place-content: center; justify-items: center; min-height: 390px; color: #817d72; }.empty-preview span { font: 300 48px serif; }.empty-preview strong { margin-top: 10px; color: #47453f; }.empty-preview small { margin-top: 6px; }
.generation-overlay { position: absolute; inset: 0; z-index: 5; display: grid; place-content: center; justify-items: center; background: rgba(248,247,243,.9); backdrop-filter: blur(5px); }.generation-overlay strong { margin-top: 18px; font: 700 17px "Montserrat",sans-serif; }.generation-overlay small { margin-top: 7px; color: #76736b; }.generation-orbit { width: 42px; height: 42px; border: 2px solid #d6d1c4; border-top-color: #5f5843; border-radius: 50%; animation: studio-spin .8s linear infinite; } @keyframes studio-spin { to { transform: rotate(360deg); } }
.furniture-section { margin-top: 34px; padding-top: 28px; border-top: 1px solid #dedbd2; }.section-heading.compact { margin: 0; }.section-heading.compact h2 { font-size: 20px; }.selection-count { padding: 7px 10px; background: #eeece5; color: #5f5843; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.filter-bar { display: grid; grid-template-columns: minmax(220px,1fr) repeat(3,minmax(150px,.42fr)); gap: 10px; margin: 22px 0 18px; }.filter-bar .ant-select { width: 100%; }
.furniture-catalog { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }.catalog-card { overflow: hidden; padding: 0; border: 1px solid #dedbd2; background: #fff; color: #212120; text-align: left; cursor: pointer; transition: transform .2s,border-color .2s,box-shadow .2s; }.catalog-card:hover,.catalog-card.active { transform: translateY(-3px); border-color: #65745d; box-shadow: 0 14px 28px rgba(47,43,34,.1); }.catalog-visual { position: relative; display: block; height: 150px; overflow: hidden; }.catalog-visual i { position: absolute; left: 13%; right: 13%; bottom: 19%; height: 28%; border-radius: 50% 50% 8px 8px; background: rgba(255,255,255,.68); box-shadow: 0 18px 24px rgba(30,28,24,.16); }.catalog-visual b { position: absolute; top: 10px; right: 10px; padding: 6px 9px; background: rgba(255,255,255,.9); color: #5f5843; font-size: 9px; text-transform: uppercase; letter-spacing: .05em; }.catalog-card.active .catalog-visual b { background: #65745d; color: #fff; }.catalog-copy { display: block; min-height: 92px; padding: 14px; }.catalog-copy strong,.catalog-copy small { display: block; }.catalog-copy strong { font: 700 13px "Montserrat",sans-serif; }.catalog-copy small { margin-top: 7px; color: #76736b; font-size: 10px; line-height: 1.45; }.catalog-empty { grid-column: 1/-1; padding: 40px; border: 1px dashed #c8c4b9; color: #76736b; text-align: center; }
@media (max-width:1100px) { .design-workbench { grid-template-columns: 270px minmax(0,1fr); }.filter-bar { grid-template-columns: 1fr 1fr; }.furniture-catalog { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width:760px) { .design-workbench { display:block; }.upload-panel { border-right:0; border-bottom:1px solid #dedbd2; }.studio-main { padding:20px 16px; }.preview-toolbar,.furniture-title-row { align-items:flex-start; flex-direction:column; }.image-stage.has-result { grid-template-columns:1fr; }.image-frame + .image-frame { border-top:1px solid #fff; border-left:0; }.filter-bar,.furniture-catalog { grid-template-columns:1fr; }.preview-actions { width:100%; }.preview-actions .ant-btn { flex:1; } }

.guest-entry { margin-top: 10px; }
.generation-error { margin-top: 12px; }
.image-stage.has-result { display: block; }
.compare-frame { position: relative; width: 100%; min-height: 420px; overflow: hidden; background: #e8e6df; }
.compare-frame img { display: block; width: 100%; height: 420px; object-fit: cover; }
.compare-after { position: absolute; inset: 0; width: 100%; overflow: hidden; clip-path: inset(0 calc(100% - var(--compare)) 0 0); }
.compare-after img { width: 100%; }
.compare-range { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--compare); z-index: 3; width: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.15); transform: translateX(-1px); pointer-events: none; }
.compare-handle::after { content: "↔"; position: absolute; top: 50%; left: 50%; display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(0,0,0,.18); border-radius: 50%; background: #fff; color: #292824; font-size: 17px; transform: translate(-50%,-50%); }
.compare-label-before { left: 12px; right: auto; }
.compare-label-after { right: 12px; left: auto; }
.crop-workspace { display: grid; place-items: center; width: 100%; }
.crop-choice { display: grid; grid-template-columns: 150px 1fr; gap: 22px; align-items: center; }
.crop-choice-preview { width: 150px; aspect-ratio: 4 / 3; overflow: hidden; background: #efeee9; }
.crop-choice-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.crop-choice-copy h3 { margin: 7px 0 8px; color: #23231f; font-family: Georgia, serif; font-size: 24px; font-weight: 500; line-height: 1.15; }
.crop-choice-copy p { margin: 0; color: #73736c; font-size: 14px; line-height: 1.55; }
.crop-choice-actions { grid-column: 2; display: flex; justify-content: flex-end; gap: 10px; padding-top: 4px; }
.crop-preview { position: relative; width: min(100%, 680px); min-height: 320px; overflow: hidden; background: #1d1d1b; touch-action: none; user-select: none; }
.crop-preview > img { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.crop-selection { position: absolute; z-index: 1; box-sizing: border-box; border: 2px solid #fff; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .54), 0 0 0 1px rgba(0, 0, 0, .4); cursor: move; touch-action: none; }
.crop-grid { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to right, transparent 33.1%, rgba(255,255,255,.65) 33.3%, rgba(255,255,255,.65) 33.8%, transparent 34%), linear-gradient(to right, transparent 66.1%, rgba(255,255,255,.65) 66.3%, rgba(255,255,255,.65) 66.8%, transparent 67%), linear-gradient(to bottom, transparent 33.1%, rgba(255,255,255,.65) 33.3%, rgba(255,255,255,.65) 33.8%, transparent 34%), linear-gradient(to bottom, transparent 66.1%, rgba(255,255,255,.65) 66.3%, rgba(255,255,255,.65) 66.8%, transparent 67%); }
.crop-handle { position: absolute; z-index: 2; width: 16px; height: 16px; padding: 0; border: 2px solid #fff; border-radius: 2px; background: #1e1d1a; box-shadow: 0 1px 4px rgba(0,0,0,.45); transform: translate(-50%, -50%); cursor: pointer; touch-action: none; }
.crop-handle-nw { top: 0; left: 0; cursor: nwse-resize; }
.crop-handle-n { top: 0; left: 50%; cursor: ns-resize; }
.crop-handle-ne { top: 0; left: 100%; cursor: nesw-resize; }
.crop-handle-e { top: 50%; left: 100%; cursor: ew-resize; }
.crop-handle-se { top: 100%; left: 100%; cursor: nwse-resize; }
.crop-handle-s { top: 100%; left: 50%; cursor: ns-resize; }
.crop-handle-sw { top: 100%; left: 0; cursor: nesw-resize; }
.crop-handle-w { top: 50%; left: 0; cursor: ew-resize; }
@media (max-width:760px) { .compare-frame,.compare-frame img { min-height: 300px; height: 300px; }.crop-workspace { grid-template-columns: 1fr; }.crop-preview { min-height: 260px; }.crop-choice { grid-template-columns: 1fr; gap: 16px; }.crop-choice-preview { width: 100%; max-height: 190px; }.crop-choice-actions { grid-column: 1; justify-content: stretch; }.crop-choice-actions .ant-btn { flex: 1; } }

/* Page-level three-module layout: upload + preview, then a full-width catalog. */
.main-content { width: 100%; padding: 20px 20px 32px; }
.design-workbench {
  display: grid;
  grid-template-columns: minmax(280px, 31%) minmax(0, 1fr);
  grid-template-rows: auto 460px auto;
  grid-template-areas: "upload toolbar" "upload preview" "furniture furniture";
  gap: 0 28px;
  max-width: none;
  min-height: 0;
  margin: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.upload-panel {
  grid-area: upload;
  height: 100%;
  padding: 26px;
  border: 1px solid #dedbd2;
  background: #fbfaf7;
}
.studio-main { display: contents; }
.preview-toolbar { grid-area: toolbar; min-height: 92px; }
.image-stage { grid-area: preview; min-width: 0; min-height: 0; height: 460px; margin-top: 0; overflow: hidden; }
.image-frame { width: 100%; height: 100%; min-width: 0; min-height: 0; overflow: hidden; }
.image-frame img { display: block; width: 100%; height: 100%; min-height: 0; max-height: 100%; object-fit: cover; }
.empty-preview { min-height: 0; height: 100%; }
.furniture-section { position: relative; z-index: 2; grid-area: furniture; margin-top: 30px; padding: 28px 0 0; border-top: 1px solid #dedbd2; background: #fff; }
.studio-uploader { display: block; height: auto !important; }
.studio-uploader .ant-upload-drag {
  height: 260px !important;
  min-height: 0;
  max-height: 260px;
  overflow: hidden;
}
.studio-uploader .ant-upload { height: 100%; padding: 18px 16px !important; }
.studio-uploader .upload-glyph { font-size: 34px; }
.studio-uploader .ant-upload-text { margin-top: 12px !important; }
.studio-uploader .upload-cta { white-space: nowrap; }
.studio-uploader .ant-upload-hint { margin-top: 10px !important; }
.upload-tips { margin-top: 18px; padding-top: 16px; }

@media (max-width: 900px) {
  .design-workbench {
    grid-template-columns: minmax(235px, 34%) minmax(0, 1fr);
    grid-template-rows: auto 400px auto;
    gap: 0 18px;
  }
  .image-stage { height: 400px; }
  .upload-panel { padding: 20px; }
  .studio-uploader .ant-upload-drag { height: 225px !important; min-height: 0; max-height: 225px; }
}

@media (max-width: 700px) {
  .main-content { padding: 18px 16px; }
  .design-workbench {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 380px auto;
    grid-template-areas: "upload" "toolbar" "preview" "furniture";
    gap: 20px 0;
  }
  .studio-main { display: contents; padding: 0; }
  .upload-panel { height: auto; border: 1px solid #dedbd2; }
  .studio-uploader .ant-upload-drag { height: 250px !important; max-height: 250px; }
  .preview-toolbar { min-height: 0; }
  .image-stage { height: 380px; }
  .furniture-section { margin-top: 0; }
}
.record-user {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.record-user small {
  color: #8c8c8c;
}

.furniture-ranking .trend-item > span {
  font-variant-numeric: tabular-nums;
  color: #8c846d;
}

.furniture-ranking .trend-item {
  grid-template-columns: 48px minmax(100px, 1fr) minmax(190px, 260px);
}

.furniture-ranking .trend-item > strong {
  min-width: 0;
  text-align: left;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .furniture-ranking .trend-item {
    grid-template-columns: 36px minmax(80px, 0.72fr) minmax(170px, 1fr);
    gap: 10px;
  }
}

/* Five-scene design journey */
.design-flow {
  width: min(1480px, 100%);
  margin: 0 auto;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(47, 43, 34, 0.055);
}

.flow-header {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(520px, 0.95fr);
  gap: 48px;
  align-items: end;
  padding: 30px 38px 26px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.flow-heading h1,
.flow-heading p { margin: 0; }
.flow-heading h1 { margin-top: 5px; font: 600 26px/1.1 var(--font-heading) !important; letter-spacing: -0.04em; }
.flow-heading p { max-width: 590px; margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.flow-kicker,
.step-note { color: var(--brand); font-size: 9px; font-weight: 700; letter-spacing: 0.16em; }
.preview-mode-label { display: inline-block; margin-left: 8px; padding: 3px 6px; border: 1px solid #b9b19b; color: #6c654f; font-size: 7px; letter-spacing: 0.1em; vertical-align: 1px; }

.flow-progress { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.flow-progress button { position: relative; display: grid; gap: 6px; justify-items: start; padding: 0 8px 12px; border: 0; border-bottom: 2px solid #e7e3da; background: transparent; color: #9a968d; text-align: left; cursor: pointer; transition: color 180ms ease, border-color 180ms ease; }
.flow-progress button::after { position: absolute; right: 0; bottom: -5px; width: 8px; height: 8px; border: 2px solid #fff; border-radius: 50%; background: #d7d3ca; content: ""; }
.flow-progress button span { font-family: var(--font-editorial); font-size: 17px; font-weight: 600; }
.flow-progress button small { font-size: 9px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.flow-progress button.done { border-bottom-color: #9d967c; color: #6d674f; }
.flow-progress button.active { border-bottom-color: var(--ink); color: var(--ink); }
.flow-progress button.done::after { background: #9d967c; }
.flow-progress button.active::after { background: var(--ink); }

.flow-page { min-height: 640px; }
.studio-page-enter-active,
.studio-page-leave-active { transition: opacity 180ms ease, transform 180ms ease; }
.studio-page-enter-from { opacity: 0; transform: translateY(8px); }
.studio-page-leave-to { opacity: 0; transform: translateY(-5px); }
.flow-actions { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 18px 28px; border-top: 1px solid var(--line); background: #fff; }
.flow-actions > span { color: var(--muted); font-size: 11px; text-align: center; }
.flow-actions .ant-btn-primary { min-width: 220px; }

/* 01 — upload */
.upload-step { display: grid; grid-template-columns: minmax(320px, 0.72fr) minmax(470px, 1.28fr); grid-template-rows: minmax(550px, auto) auto; min-height: 680px; }
.upload-story { position: relative; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: 64px clamp(40px, 5vw, 86px); border-right: 1px solid var(--line); background: #f5f2eb; }
.upload-story::after { position: absolute; right: -100px; bottom: -118px; width: 310px; height: 310px; border: 1px solid rgba(127, 118, 89, 0.22); border-radius: 50%; box-shadow: 0 0 0 38px rgba(127, 118, 89, 0.035), 0 0 0 76px rgba(127, 118, 89, 0.025); content: ""; }
.editorial-number { position: absolute; top: 34px; right: 34px; color: rgba(95, 88, 67, 0.12); font: 600 82px/1 var(--font-editorial); }
.upload-story h2 { max-width: 520px; margin: 15px 0 18px; font: 600 clamp(40px, 4vw, 62px)/0.98 var(--font-editorial) !important; letter-spacing: -0.045em; }
.story-copy { max-width: 520px; margin: 0; color: #6f6a5e; font-size: 13px; line-height: 1.75; }
.photo-guidance { display: grid; gap: 0; max-width: 480px; margin-top: 38px; border-top: 1px solid #d6d0c1; }
.photo-guidance span { display: grid; grid-template-columns: 38px 1fr; align-items: center; padding: 13px 0; border-bottom: 1px solid #d6d0c1; color: #57534a; font-size: 11px; }
.photo-guidance b { color: #9a9277; font: 600 13px var(--font-editorial); }
.upload-stage { display: grid; padding: clamp(28px, 4vw, 58px); background-color: #fff; background-image: linear-gradient(#eeeae1 1px, transparent 1px), linear-gradient(90deg, #eeeae1 1px, transparent 1px); background-size: 34px 34px; }
.flow-uploader { min-height: 440px; }
.flow-uploader .ant-upload-drag { height: 100%; border: 1px dashed #aaa38f !important; border-radius: 0 !important; background: rgba(255, 255, 255, 0.94) !important; }
.flow-uploader .ant-upload { display: flex !important; flex-direction: column; align-items: center; justify-content: center; padding: 46px 30px !important; }
.upload-line-icon { position: relative; display: block; width: 72px; height: 72px; margin-bottom: 18px; border: 1px solid #b9b3a4; border-radius: 50%; }
.upload-line-icon::before,
.upload-line-icon::after { position: absolute; top: 50%; left: 50%; background: #706951; content: ""; transform: translate(-50%, -50%); }
.upload-line-icon::before { width: 24px; height: 1px; }
.upload-line-icon::after { width: 1px; height: 24px; }
.flow-uploader .ant-upload-text { margin: 0 !important; color: var(--ink) !important; font: 600 21px var(--font-heading) !important; letter-spacing: -0.035em; }
.flow-uploader .ant-upload-hint { margin: 8px 0 24px !important; color: var(--muted) !important; font-size: 12px !important; }
.flow-uploader .browse-button { display: inline-block; min-width: 168px; padding: 12px 20px; background: var(--brand-dark); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.flow-uploader small { margin-top: 14px; color: #99958b; font-size: 9px; letter-spacing: 0.04em; }
.uploaded-room { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.uploaded-room > img { width: 100%; height: 100%; min-height: 410px; object-fit: cover; }
.room-ready-badge { position: absolute; top: 18px; left: 18px; padding: 8px 11px; background: rgba(33, 33, 32, 0.86); color: #fff; font-size: 9px; font-weight: 700; letter-spacing: 0.09em; }
.uploaded-room-meta { display: flex; gap: 20px; align-items: center; justify-content: space-between; padding: 16px 18px; }
.uploaded-room-meta strong,
.uploaded-room-meta small { display: block; overflow: hidden; max-width: 340px; text-overflow: ellipsis; white-space: nowrap; }
.uploaded-room-meta strong { font-size: 12px; }
.uploaded-room-meta small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.uploaded-room-meta button { padding: 8px 0; border: 0; border-bottom: 1px solid #8c846b; background: transparent; color: #5f5843; font-size: 10px; font-weight: 700; cursor: pointer; }
.upload-actions { grid-column: 1 / -1; }

/* 02 — furniture curation */
.catalog-toolbar { display: grid; grid-template-columns: minmax(240px, 1fr) 190px 200px auto; gap: 10px; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--line); background: #faf9f6; }
.catalog-toolbar .ant-select { width: 100%; }
.selection-limit { padding-left: 18px; color: var(--brand-dark); font-size: 10px; font-weight: 700; letter-spacing: 0.07em; text-align: right; text-transform: uppercase; }
.catalog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; min-height: 610px; }
.selection-rail > div:first-child span { display: block; margin: 0 10px 15px; color: #99917a; font-size: 9px; font-weight: 700; letter-spacing: 0.13em; }
.catalog-content { min-width: 0; padding: 27px 24px 30px; }
.catalog-intro { display: flex; gap: 30px; align-items: end; justify-content: space-between; margin-bottom: 22px; }
.catalog-intro span { color: var(--brand); font-size: 9px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.catalog-intro h2 { margin: 5px 0 0; font: 600 27px var(--font-heading) !important; letter-spacing: -0.045em; }
.catalog-intro p { max-width: 340px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; text-align: right; }
.curation-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.curation-card { overflow: hidden; border: 1px solid var(--line); background: #fff; cursor: pointer; transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease; }
.curation-card:hover { transform: translateY(-3px); box-shadow: 0 14px 26px rgba(47, 43, 34, 0.085); }
.curation-card.active { border-color: #777158; box-shadow: inset 0 0 0 1px #777158; }
.curation-visual { position: relative; display: block; height: 168px; background-position: center !important; background-size: cover !important; }
.curation-visual > b { position: absolute; top: 10px; right: 10px; display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid rgba(95, 88, 67, 0.28); border-radius: 50%; background: rgba(255, 255, 255, 0.9); color: var(--brand-dark); font-size: 16px; }
.curation-card.active .curation-visual > b { background: var(--brand-dark); color: #fff; }
.curation-visual > small { position: absolute; bottom: 9px; left: 9px; padding: 5px 7px; background: rgba(255, 255, 255, 0.86); color: #6f6957; font-size: 8px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.curation-copy { display: block; min-height: 118px; padding: 13px; }
.curation-copy > .product-name { overflow: hidden; width: 100%; padding: 0; border: 0; background: transparent; color: var(--ink); font: 600 12px/1.3 var(--font-heading); text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.curation-copy > small { display: -webkit-box; overflow: hidden; min-height: 30px; margin-top: 6px; color: var(--muted); font-size: 9px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.curation-copy > span { display: flex; align-items: center; justify-content: space-between; margin-top: 11px; padding-top: 9px; border-top: 1px solid #ece9e2; }
.curation-copy > span strong { font-size: 10px; }
.curation-copy > span button { display: inline-flex; min-width: 96px; min-height: 34px; align-items: center; justify-content: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--brand-dark); background: var(--brand-dark); color: #fff; font-size: 9px; font-weight: 700; letter-spacing: 0.04em; cursor: pointer; transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease; }
.curation-copy > span button::before { font-size: 14px; font-weight: 400; line-height: 1; content: "+"; }
.curation-copy > span button:hover,
.curation-copy > span button:focus-visible { border-color: var(--ink); background: var(--ink); outline: 0; transform: translateY(-1px); }
.curation-copy > span button:disabled { border-color: #b8b4aa; background: #b8b4aa; cursor: not-allowed; transform: none; }
.catalog-error-state { color: var(--danger); }
.selection-rail { padding: 26px 18px; border-left: 1px solid var(--line); background: #fbfaf7; }
.selection-rail > div:first-child { display: flex; align-items: center; justify-content: space-between; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.selection-rail > div:first-child span { margin: 0; }
.selection-rail > div:first-child strong { font-size: 11px; }
.selected-stack { display: grid; gap: 9px; margin-top: 14px; }
.selected-stack article { display: grid; grid-template-columns: 54px minmax(0, 1fr) 22px; gap: 9px; align-items: center; padding: 8px; border: 1px solid #e3dfd5; background: #fff; }
.selected-stack article > span { width: 54px; height: 44px; background-position: center !important; background-size: cover !important; }
.selected-stack strong,
.selected-stack small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.selected-stack strong { font-size: 9px; }
.selected-stack small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.selected-stack button { border: 0; background: transparent; color: #8e897e; font-size: 16px; cursor: pointer; }
.selection-empty { display: grid; min-height: 280px; place-content: center; justify-items: center; color: #a19c91; text-align: center; }
.selection-empty span { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid #cfc9bb; border-radius: 50%; font: 300 21px serif; }
.selection-empty p { max-width: 130px; margin: 12px 0 0; font-size: 10px; line-height: 1.55; }

/* 03 — review */
.review-grid { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(420px, 0.84fr); min-height: 650px; }
.review-room { position: relative; min-height: 650px; margin: 0; overflow: hidden; background: #eae7df; }
.review-room > img { width: 100%; height: 100%; min-height: 650px; object-fit: cover; }
.review-room::after { position: absolute; inset: 0; border: 18px solid rgba(255, 255, 255, 0.13); content: ""; pointer-events: none; }
.review-room figcaption { position: absolute; right: 26px; bottom: 24px; left: 26px; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 13px 15px; background: rgba(32, 31, 28, 0.82); color: #fff; backdrop-filter: blur(6px); }
.review-room figcaption span { font-size: 9px; font-weight: 700; letter-spacing: 0.1em; }
.review-room figcaption button { border: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.6); background: transparent; color: #fff; font-size: 9px; cursor: pointer; }
.review-brief { padding: 48px clamp(30px, 4vw, 64px); border-left: 1px solid var(--line); }
.review-brief h2 { margin: 11px 0 29px; font: 600 42px/1.02 var(--font-editorial) !important; letter-spacing: -0.04em; }
.brief-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; max-width: 460px; }
.brief-fields label { display: grid; gap: 7px; color: #777167; font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.brief-fields .ant-select { width: 100%; }
.brief-selection { margin-top: 27px; padding-top: 20px; border-top: 1px solid var(--line); }
.brief-selection > div:first-child { display: flex; align-items: center; justify-content: space-between; }
.brief-selection > div:first-child span { font-size: 9px; font-weight: 700; letter-spacing: 0.1em; }
.brief-selection > div:first-child button { border: 0; border-bottom: 1px solid #a69e85; background: transparent; color: var(--brand-dark); font-size: 9px; cursor: pointer; }
.brief-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.brief-products article { min-width: 0; }
.brief-products article span { display: block; height: 70px; background-position: center !important; background-size: cover !important; }
.brief-products strong { display: block; overflow: hidden; margin-top: 5px; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.generation-prompt { margin-top: 20px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.generation-prompt summary { color: #5f5843; font-size: 9px; font-weight: 700; letter-spacing: 0.07em; cursor: pointer; text-transform: uppercase; }
.generation-prompt p { margin: 10px 0 0; color: var(--muted); font-size: 9px; line-height: 1.6; }
.generate-button { height: 62px !important; margin-top: 22px; }
.generate-button > span { display: grid; gap: 3px; }
.generate-button small { color: rgba(255, 255, 255, 0.72); font-size: 8px; font-weight: 400; letter-spacing: 0.04em; }
.review-actions { grid-template-columns: auto 1fr; }

/* 04 — generation */
.generating-step { padding: 32px; background: #f6f3ed; }
.generation-canvas { position: relative; min-height: 540px; overflow: hidden; border: 1px solid #ded9cd; background: #dedbd2; }
.generation-canvas > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.3); transform: scale(1.025); }
.generation-wash { position: absolute; inset: 0; background: rgba(247, 245, 240, 0.88); backdrop-filter: blur(5px); }
.generation-wash::after { position: absolute; inset: 22px; border: 1px solid rgba(127, 118, 89, 0.18); content: ""; }
.generation-status { position: relative; z-index: 1; display: flex; min-height: 540px; flex-direction: column; align-items: center; justify-content: center; padding: 50px 24px; text-align: center; }
.generation-seal { display: grid; width: 88px; height: 88px; margin-bottom: 24px; place-items: center; border-radius: 50%; background: conic-gradient(var(--brand-dark) var(--progress), #ded9cd 0); }
.generation-seal::before { position: absolute; width: 76px; height: 76px; border-radius: 50%; background: #f7f5f0; content: ""; }
.generation-seal span { position: relative; z-index: 1; font: 600 24px var(--font-editorial); }
.generation-status h2 { margin: 12px 0 10px; font: 600 42px/1.05 var(--font-editorial) !important; letter-spacing: -0.04em; }
.generation-status p { max-width: 520px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.generation-progress { width: min(420px, 80vw); height: 3px; margin-top: 28px; background: #ddd8cb; }
.generation-progress i { display: block; height: 100%; background: var(--brand-dark); transition: width 400ms ease; }
.generation-status > strong { margin-top: 9px; color: var(--brand-dark); font: 600 18px var(--font-editorial); }
.error-status .error-mark { display: grid; width: 60px; height: 60px; margin-bottom: 20px; place-items: center; border: 1px solid var(--danger); border-radius: 50%; color: var(--danger); font: 600 24px var(--font-editorial); }
.error-status > div { display: flex; gap: 10px; margin-top: 24px; }
.design-selection-dock { display: grid; grid-template-columns: 86px minmax(190px, 0.35fr) 1fr auto; gap: 16px; align-items: center; margin-top: 12px; padding: 10px; border: 1px solid var(--line); background: #fff; }
.design-selection-dock > img { width: 86px; height: 62px; object-fit: cover; }
.dock-copy span,
.dock-copy strong { display: block; }
.dock-copy span { color: var(--brand-dark); font-size: 9px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }
.dock-copy strong { margin-top: 4px; font-size: 11px; }
.dock-products { display: flex; gap: 8px; overflow: hidden; }
.dock-products span { width: 66px; height: 50px; flex: 0 0 auto; border: 1px solid #e1ddd3; background-position: center !important; background-size: cover !important; }

/* 05 — result comparison */
.result-step { padding: 30px 34px 34px; background: #fff; }
.result-toolbar { display: flex; gap: 30px; align-items: end; justify-content: space-between; margin-bottom: 24px; }
.result-toolbar h2 { margin: 6px 0 0; font: 600 38px/1 var(--font-editorial) !important; letter-spacing: -0.04em; }
.result-toolbar > div:last-child { display: flex; gap: 10px; }
.result-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.result-image-panel { min-width: 0; margin: 0; border: 1px solid var(--line); background: #f6f3ed; }
.result-image-panel figcaption { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 9px; align-items: center; min-height: 46px; padding: 9px 13px; border-bottom: 1px solid var(--line); }
.result-image-panel figcaption span { color: #918970; font: 600 15px var(--font-editorial); }
.result-image-panel figcaption strong { overflow: hidden; font-size: 10px; letter-spacing: 0.08em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.result-image-panel figcaption small { color: #9a958a; font-size: 8px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.result-image-panel > img { display: block; width: 100%; height: clamp(360px, 40vw, 560px); object-fit: cover; }
.concept-panel { border-color: #a9a18b; }
.concept-panel figcaption { background: var(--brand-dark); color: #fff; }
.concept-panel figcaption span,
.concept-panel figcaption small { color: rgba(255, 255, 255, 0.68); }
.result-purchase-bar { display: grid; grid-template-columns: minmax(270px, 0.9fr) 1fr auto; gap: 22px; align-items: center; margin-top: 14px; padding: 18px 20px; border: 1px solid #a9a18b; background: #f5f2eb; }
.purchase-message span,
.purchase-message strong,
.purchase-message small { display: block; }
.purchase-message span { color: var(--brand); font-size: 8px; font-weight: 700; letter-spacing: 0.13em; }
.purchase-message strong { margin-top: 5px; font: 600 16px/1.25 var(--font-heading); letter-spacing: 0; }
.purchase-message small { margin-top: 5px; color: var(--muted); font-size: 9px; }
.purchase-products span { width: 72px; height: 56px; border-color: #d4cdbc; background-color: #fff; }
.purchase-actions { display: flex; gap: 10px; align-items: center; }
.purchase-actions button { min-height: 42px; cursor: pointer; }
.purchase-adjust { padding: 9px 12px; border: 0; border-bottom: 1px solid #9b9277; background: transparent; color: var(--brand-dark); font-size: 9px; font-weight: 700; }
.purchase-cart { display: inline-flex; min-width: 166px; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--brand-dark); background: var(--brand-dark); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 0.04em; transition: background-color 160ms ease, transform 160ms ease; }
.purchase-cart span { font-size: 18px; font-weight: 400; line-height: 1; }
.purchase-cart:hover,
.purchase-cart:focus-visible { background: var(--ink); outline: 0; transform: translateY(-1px); }

/* Primary commerce action in the site header. */
.nav-actions .cart-trigger { min-height: 42px; gap: 9px; padding: 8px 10px 8px 12px; border: 1px solid #292824; background: #292824; color: #fff; font-size: 10px; letter-spacing: 0.04em; transition: background-color 160ms ease, transform 160ms ease; }
.nav-actions .cart-trigger:hover,
.nav-actions .cart-trigger:focus-visible { background: #4f4b3e; outline: 0; transform: translateY(-1px); }
.nav-actions .cart-trigger .cart-icon { padding: 4px 7px; border-color: rgba(255,255,255,.48); color: #fff; }
.nav-actions .cart-trigger b { min-width: 23px; height: 23px; background: #fff; color: #292824; font-size: 10px; }

.admin-access-denied { min-height: calc(100vh - 170px); display: grid; place-items: center; padding: 48px 24px; background: #f4f1eb; }
.admin-access-panel { width: min(560px, 100%); padding: 54px 56px; border: 1px solid #d9d2c6; border-top: 5px solid #292824; background: #fffdf9; box-shadow: 0 18px 50px rgba(41,40,36,.08); }
.admin-panel-kicker { display: block; margin-bottom: 18px; color: #827869; font-size: 10px; font-weight: 700; letter-spacing: .18em; }
.admin-access-panel h1 { margin: 0 0 14px; color: #292824; font-family: Cormorant, Georgia, serif; font-size: clamp(36px, 5vw, 56px); font-weight: 600; line-height: .95; }
.admin-access-panel p { margin: 0 0 28px; color: #6f6a61; font-size: 14px; line-height: 1.7; }

body:has(.admin-access-denied) .site-header { border-bottom-color: #292824; }

@media (max-width: 1180px) {
  .flow-header { grid-template-columns: 1fr; gap: 22px; }
  .catalog-layout { grid-template-columns: minmax(0, 1fr) 240px; }
  .curation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .main-content { padding: 14px; }
  .flow-header { padding: 24px 22px; }
  .upload-step { grid-template-columns: 1fr; grid-template-rows: auto auto auto; }
  .upload-story { padding: 50px 38px; border-right: 0; border-bottom: 1px solid var(--line); }
  .upload-stage { min-height: 500px; }
  .upload-actions { grid-column: 1; }
  .catalog-toolbar { grid-template-columns: 1fr 1fr; }
  .selection-limit { text-align: left; }
  .catalog-layout { grid-template-columns: minmax(0, 1fr); }
  .selection-rail { grid-column: 1 / -1; border-top: 1px solid var(--line); border-left: 0; }
  .selected-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-grid { grid-template-columns: 1fr; }
  .review-room,
  .review-room > img { min-height: 480px; }
  .review-brief { border-top: 1px solid var(--line); border-left: 0; }
  .result-image-panel > img { height: 440px; }
}

@media (max-width: 640px) {
  .main-content { padding: 0; }
  .design-flow { border-right: 0; border-left: 0; }
  .flow-header { gap: 18px; padding: 20px 16px; }
  .flow-heading h1 { font-size: 22px; }
  .flow-progress button { padding: 0 3px 9px; }
  .flow-progress button small { display: none; }
  .flow-progress button span { font-size: 14px; }
  .upload-story { padding: 48px 24px; }
  .upload-story h2 { font-size: 42px; }
  .editorial-number { font-size: 60px; }
  .upload-stage { min-height: 410px; padding: 18px; }
  .flow-uploader { min-height: 370px; }
  .uploaded-room > img { min-height: 340px; }
  .flow-actions { grid-template-columns: 1fr; padding: 14px 16px; }
  .flow-actions > span { grid-row: 1; }
  .flow-actions .ant-btn { width: 100%; }
  .catalog-toolbar { grid-template-columns: 1fr; padding: 14px 16px; }
  .catalog-layout { display: block; }
  .catalog-content { padding: 22px 16px; }
  .catalog-intro { display: block; }
  .catalog-intro p { margin-top: 10px; text-align: left; }
  .curation-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .curation-visual { height: 130px; }
  .curation-copy { min-height: 110px; padding: 10px; }
  .selection-rail { padding: 20px 16px; }
  .selected-stack { grid-template-columns: 1fr; }
  .review-room,
  .review-room > img { min-height: 360px; }
  .review-brief { padding: 36px 20px; }
  .review-brief h2 { font-size: 35px; }
  .brief-fields { grid-template-columns: 1fr; }
  .brief-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .generating-step { padding: 16px; }
  .generation-status h2 { font-size: 34px; }
  .design-selection-dock { grid-template-columns: 68px 1fr; }
  .design-selection-dock > img { width: 68px; height: 54px; }
  .dock-products { grid-column: 1 / -1; }
  .result-step { padding: 22px 16px; }
  .result-toolbar { align-items: flex-start; flex-direction: column; }
  .result-toolbar > div:last-child { width: 100%; }
  .result-toolbar .ant-btn { flex: 1; }
  .result-comparison { grid-template-columns: 1fr; }
  .result-image-panel > img { height: 300px; }
  .result-purchase-bar { grid-template-columns: 1fr; padding: 17px; }
  .purchase-products { grid-column: 1; }
  .purchase-actions { display: grid; grid-template-columns: 0.75fr 1.25fr; }
  .purchase-actions button { width: 100%; }
}
