﻿:root {
  --bg: #faf9f7;
  --surface: #ffffff;
  --beige: #f2efe9;
  --text: #111111;
  --muted: #6b6b6b;
  --border: #d8d4cc;
  --black: #111111;
  --max-w: 920px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

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

#app {
  min-height: 100vh;
  padding: 0 24px 48px;
}

#app.is-customize {
  background: #f3f2ef;
  padding: 0 0 48px;
}

#app.is-results {
  background: #f3f2ef;
  padding-left: 32px;
  padding-right: 32px;
}

.site-header,
.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-sep {
  width: 1px;
  height: 16px;
  background: var(--border);
}

.brand-sub {
  color: var(--muted);
  font-weight: 400;
}

.exit-link,
.back-link,
.nav-prev {
  background: none;
  border: none;
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text);
  cursor: pointer;
  padding: 0;
}

.exit-link span {
  font-size: 18px;
  margin-right: 4px;
  vertical-align: middle;
}

.nav-prev.disabled {
  color: var(--muted);
  cursor: default;
}

.step-panel {
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}

.progress-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.progress-bar {
  flex: 1;
  height: 2px;
  background: #e5e2dc;
  position: relative;
}

.progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: var(--black);
  transition: width 0.3s ease;
}

.step-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.page-title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.page-title.left,
.page-subtitle.left {
  text-align: left;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.page-subtitle {
  color: var(--muted);
  margin: 0 0 32px;
  font-size: 15px;
}

.info-box {
  background: var(--beige);
  padding: 24px 28px;
  text-align: left;
  margin-bottom: 24px;
}

.info-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.info-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.info-columns strong {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

.size-practices-box {
  background: var(--beige);
  padding: 20px 24px;
  text-align: left;
  margin: 0 0 24px;
  border-radius: 2px;
}

.size-tier-label {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--black);
}

.size-practices-list {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.5;
  color: #444;
}

.size-practices-list li + li {
  margin-top: 6px;
}

.info-columns p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.upload-zone {
  border: 1px solid var(--border);
  background: var(--surface);
  min-height: 200px;
  padding: 24px;
  margin-bottom: 40px;
  cursor: pointer;
}

.upload-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 152px;
  color: var(--muted);
}

.upload-primary {
  margin: 0;
  color: var(--text);
  font-size: 14px;
}

.upload-secondary {
  margin: 0;
  font-size: 12px;
}

.upload-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
}

.thumb {
  position: relative;
  width: 140px;
  height: 140px;
  flex-shrink: 0;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid var(--border);
}

.thumb-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.upload-add {
  width: 140px;
  height: 140px;
  border: 1px dashed var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
  padding: 8px;
}

.shape-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.shape-card {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font: inherit;
  color: inherit;
}

.shape-icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 12px;
  border: 2px solid transparent;
  background: var(--beige);
  position: relative;
  transition: border-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5c554c;
}

.shape-card.selected .shape-icon {
  border-color: var(--black);
  color: var(--black);
}

.shape-card span {
  font-size: 13px;
}

.room-card,
.shape-card,
.style-card,
.palette-card,
.material-card,
.entry-card {
  cursor: pointer;
}

.style-grid-ow {
  grid-template-columns: repeat(7, 1fr);
}

.wizard-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.style-tag {
  font-weight: 400;
  font-size: 11px;
  color: var(--muted);
}

.u-diagram-wrap {
  max-width: 480px;
  width: 100%;
  margin: 0 auto 24px;
}

.u-diagram-svg {
  display: block;
  width: 100%;
  height: auto;
}

.u-overall-dims {
  margin-top: 16px;
}

#scratch-dim-diameter,
#inspo-dim-diameter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 220px;
  margin: 0 auto 40px;
}

#scratch-dim-diameter input,
#inspo-dim-diameter input {
  width: 100%;
}

.shape-rect::after,
.shape-round::after,
.shape-runner::after,
.shape-u::after {
  display: none;
}

.dimensions-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}

.dimensions-row label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 12px;
  color: var(--muted);
  gap: 6px;
}

.dimensions-row input {
  width: 120px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  font: inherit;
  font-size: 15px;
  background: var(--surface);
}

.dim-x {
  padding-bottom: 12px;
  color: var(--muted);
}

.step-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.btn-primary {
  flex: 1;
  max-width: 480px;
  margin: 0 auto;
  display: block;
  padding: 16px 24px;
  background: var(--black);
  color: #fff;
  border: none;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  cursor: pointer;
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-outline {
  padding: 14px 28px;
  background: transparent;
  border: 1px solid var(--black);
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  white-space: nowrap;
}

.loading-box {
  padding: 80px 24px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 2px solid var(--border);
  border-top-color: var(--black);
  border-radius: 50%;
  margin: 0 auto 24px;
  animation: spin 0.8s linear infinite;
}

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

.loading-box h2 {
  font-size: 1.25rem;
  margin: 0 0 8px;
}

.loading-status {
  font-size: 15px;
  color: var(--text);
  margin: 0;
  min-height: 1.5em;
  transition: opacity 0.18s ease;
}

.loading-status.is-fading {
  opacity: 0.35;
}

.loading-note {
  font-size: 13px;
  color: var(--muted);
  max-width: 420px;
  margin: 16px auto 0;
  line-height: 1.5;
}

#step-results {
  max-width: 1100px;
}

.brief-bar {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  background: var(--beige);
  padding: 20px 24px;
  margin: 32px 0 40px;
  text-align: left;
}

.brief-item {
  padding: 0 16px;
  border-right: 1px solid var(--border);
}

.brief-item:last-child {
  border-right: none;
}

.brief-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.concepts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
  align-items: start;
}

.concepts-grid[data-orientation="portrait"],
.concepts-grid[data-orientation="round"] {
  grid-template-columns: 1fr 1fr;
}

.concepts-grid[data-orientation="landscape"] {
  grid-template-columns: 1fr;
  max-width: 900px;
}

.concept-card {
  text-align: left;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  padding: 24px 24px 28px;
  border: 1px solid #e8e4de;
}

.concept-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.concept-sub {
  display: block;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-top: 4px;
}

.concept-zoom {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  --rug-aspect: 3 / 4;
  --zoom-scale: 2.5;
  --concept-max-h: min(92vh, 2400px);
  aspect-ratio: var(--rug-aspect);
  max-height: var(--concept-max-h);
  background: var(--beige);
  margin: 0 auto 16px;
  overflow: visible;
}

.concept-zoom:has(img) {
  aspect-ratio: auto;
  max-height: none;
  height: auto;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  cursor: zoom-in;
}

.concept-zoom:has(img).is-zoomed {
  overflow: hidden;
}

.concept-zoom-hint {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 2;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #444;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.concept-zoom:has(img):hover .concept-zoom-hint,
.concept-zoom.is-zoomed .concept-zoom-hint {
  opacity: 1;
}

.concept-zoom.is-zoomed {
  cursor: crosshair;
}

.concept-zoom.rug-round {
  --rug-aspect: 1;
  --concept-max-h: min(72vh, 420px);
}

.concept-zoom.rug-round:not(:has(img)) {
  border-radius: 50%;
  width: min(100%, 420px);
}

.concept-zoom.rug-round:has(img) {
  width: auto;
  max-width: min(100%, 420px);
  border-radius: 50%;
  overflow: hidden;
}

.concept-zoom.rug-round:has(img).is-zoomed {
  overflow: hidden;
}

.concept-zoom.rug-runner {
  --concept-max-h: min(78vh, 820px);
}

.concept-zoom.rug-runner:not(:has(img)) {
  width: auto;
  max-width: min(100%, 360px);
  margin-inline: auto;
}

.concept-zoom.rug-runner:has(img) {
  max-width: min(100%, 360px);
  margin-inline: auto;
}

.concept-zoom.rug-landscape,
.concepts-grid[data-orientation="landscape"] .concept-zoom {
  --concept-max-h: min(70vh, 560px);
}

.concept-zoom.rug-landscape:not(:has(img)),
.concepts-grid[data-orientation="landscape"] .concept-zoom:not(:has(img)) {
  max-height: none;
  width: 100%;
}

.concept-zoom img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: var(--concept-max-h);
  height: auto;
  object-fit: contain;
  object-position: center;
  transform: scale(1);
  transform-origin: center center;
  transition: transform 0.18s ease-out, opacity 0.35s ease;
  will-change: transform;
}

.concepts-grid[data-orientation="landscape"] .concept-zoom img {
  max-width: min(100%, 900px);
}

@media (hover: hover) {
  .concept-zoom.is-zoomed img {
    transform: scale(var(--zoom-scale));
  }
}

.concept-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(18, 18, 18, 0.88);
  backdrop-filter: blur(4px);
}

.concept-lightbox.hidden,
.concept-lightbox[hidden] {
  display: none !important;
}

.concept-lightbox img {
  max-width: min(96vw, 2400px);
  max-height: 96vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.concept-lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #222;
}

.concept-lightbox-caption {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.concept-card.is-loading .concept-zoom {
  cursor: default;
}

.concept-skeleton {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    var(--beige) 8%,
    #e8e0d4 18%,
    var(--beige) 33%
  );
  background-size: 200% 100%;
  animation: concept-shimmer 1.4s linear infinite;
}

.concept-skeleton-label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}

@keyframes concept-shimmer {
  to {
    background-position-x: -200%;
  }
}

.concept-card.is-loading .concept-feedback {
  opacity: 0.45;
  pointer-events: none;
}

.results-progress {
  font-size: 13px;
  color: var(--muted);
  margin: -8px 0 20px;
}

@media (prefers-reduced-motion: reduce) {
  .concept-zoom img {
    transition: none;
  }

  .concept-zoom.is-zoomed img {
    transform: none;
  }
}

.concept-card p {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 20px;
  line-height: 1.6;
}

.concept-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.concept-feedback {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  margin-top: 4px;
  width: 100%;
}

.concept-feedback-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.concept-feedback-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.concept-feedback-note {
  width: 100%;
  min-height: 72px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 0;
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--surface);
  resize: vertical;
}

.concept-feedback-note:focus {
  outline: none;
  border-color: var(--text);
}

.concept-feedback-note:disabled {
  opacity: 0.6;
  cursor: wait;
}

.concept-feedback-save {
  padding: 10px 16px;
  background: transparent;
  border: 1px solid var(--black);
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.concept-feedback-save:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.concept-feedback-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.concept-feedback-btn:hover:not(:disabled) {
  color: var(--text);
  border-color: var(--text);
}

.concept-feedback-btn.is-selected {
  color: #fff;
  background: var(--text);
  border-color: var(--text);
}

.concept-feedback-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.btn-link {
  background: none;
  border: none;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.regenerate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  text-align: left;
}

.regenerate-row p {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--black);
  color: #fff;
  padding: 12px 20px;
  font-size: 13px;
  border-radius: 4px;
  z-index: 100;
}

@media (max-width: 768px) {
  .info-columns,
  .shape-grid,
  .brief-bar,
  .concepts-grid,
  .room-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .room-card:nth-child(n) {
    grid-column: auto;
  }

  .style-grid.style-grid-ow {
    grid-template-columns: repeat(2, 1fr);
  }
  .style-grid,
  .palette-grid,
  .material-grid,
  .entry-grid {
    grid-template-columns: 1fr;
  }

  /* Entry fold-fit: keep both cards side-by-side so CTA stays visible */
  body:has(#step-entry:not([hidden])) .entry-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  body:has(#step-entry:not([hidden])) #step-entry .entry-img {
    max-height: min(28vh, 200px);
  }

  .concepts-grid[data-orientation="landscape"] {
    grid-template-columns: 1fr;
  }

  .concept-zoom.rug-runner:has(img) {
    max-width: min(85vw, 360px);
  }

  .concept-zoom.rug-runner img {
    max-height: min(70vh, 700px);
  }

  .concept-zoom.rug-round:has(img) {
    max-width: min(85vw, 360px);
  }

  .brief-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
  }

  .regenerate-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

#step-entry,
.scratch-panel {
  max-width: 1100px;
}

/* Entry page only: keep cards + GET STARTED above the fold */
body:has(#step-entry:not([hidden])) #app {
  min-height: 100dvh;
  height: 100dvh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-bottom: 16px;
  overflow: hidden;
  box-sizing: border-box;
}

body:has(#step-entry:not([hidden])) .site-header {
  flex-shrink: 0;
}

#step-entry {
  max-width: 1100px;
  padding-top: 8px;
}

body:has(#step-entry:not([hidden])) #step-entry {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

body:has(#step-entry:not([hidden])) #step-entry .page-title {
  margin-bottom: 10px;
  flex-shrink: 0;
}

.entry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 12px;
  text-align: left;
}

body:has(#step-entry:not([hidden])) #step-entry .entry-grid {
  flex: 1 1 auto;
  min-height: 0;
  align-items: stretch;
}

.entry-col {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.entry-col .entry-card {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.entry-card {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: left;
  transition: border-color 0.2s;
  overflow: hidden;
}

.entry-card.selected {
  border-color: var(--black);
  border-width: 2px;
}

.entry-card strong {
  display: block;
  padding: 10px 14px 2px;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.entry-card p {
  margin: 0;
  padding: 0 14px 10px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
  flex-shrink: 0;
}

.entry-img {
  position: relative;
  aspect-ratio: 16 / 10;
  flex: 1 1 auto;
  min-height: 0;
  max-height: min(36vh, 300px);
  overflow: hidden;
  line-height: 0;
}

.entry-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.entry-img-scratch img {
  object-position: center 55%;
}

.entry-start {
  width: 100%;
  max-width: none;
  flex: none;
}

body:has(#step-entry:not([hidden])) #step-entry .entry-start {
  margin-top: auto;
  flex-shrink: 0;
  padding-top: 8px;
}

/* ── Entry card inline image picker ─────────────────────────────────── */
.entry-upload {
  border: 1px solid var(--border);
  border-top: none;
  background: var(--beige);
  padding: 8px 12px;
  flex-shrink: 0;
}

.entry-upload-trigger {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
  padding: 4px 0;
  transition: color 0.15s;
}

.entry-upload-trigger:hover {
  color: var(--text);
}

.entry-upload-trigger em {
  font-style: normal;
  font-weight: 400;
  color: var(--muted);
}

.entry-upload-trigger svg {
  flex-shrink: 0;
}

.entry-upload-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.entry-thumb {
  position: relative;
  width: 60px;
  height: 60px;
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  background: #fff;
  flex-shrink: 0;
}

.entry-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.entry-thumb-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  font-size: 11px;
  line-height: 16px;
  text-align: center;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s;
}

.entry-thumb:hover .entry-thumb-remove {
  opacity: 1;
}

.entry-upload-add {
  width: 60px;
  height: 60px;
  border: 1px dashed var(--border);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  transition: border-color 0.15s, color 0.15s;
}

.entry-upload-add:hover {
  border-color: var(--text);
  color: var(--text);
}

/* Room grid */
.room-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.room-card {
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: center;
}

.room-card:nth-child(7) {
  grid-column: 2;
}

.room-card:nth-child(8) {
  grid-column: 3;
}

.room-card:nth-child(9) {
  grid-column: 4;
}

.room-thumb {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 2px solid transparent;
  margin-bottom: 8px;
  border-radius: 0;
  line-height: 0;
}

.room-card.selected .room-thumb {
  border-color: var(--black);
}

.room-card.selected span {
  font-weight: 700;
}

.room-card span {
  display: block;
  font-size: 13px;
}

/* Style grid */
.style-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.style-card {
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  font: inherit;
  text-align: center;
}

.style-thumb {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 2px solid transparent;
  margin-bottom: 8px;
  border-radius: 0;
  line-height: 0;
}

.style-card.selected strong {
  font-weight: 700;
}

.style-card.selected .style-thumb {
  border-color: var(--black);
}

.style-card.selected .style-thumb,
.material-card.selected .material-thumb {
  color: var(--text);
}

.style-card strong {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

.style-card p {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}

/* Palette grid */
.palette-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.palette-card {
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  font: inherit;
  text-align: center;
}

.palette-swatches {
  display: flex;
  height: 32px;
  border: 2px solid transparent;
  margin-bottom: 8px;
  overflow: hidden;
}

.palette-card.selected .palette-swatches {
  border-color: var(--black);
}

.palette-swatch {
  flex: 1;
  min-width: 0;
}

.palette-card span {
  font-size: 12px;
}

/* Material grid */
.material-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.material-card {
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  font: inherit;
  text-align: center;
}

.material-thumb {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 2px solid transparent;
  margin-bottom: 8px;
  line-height: 0;
}

.material-card.selected .material-thumb {
  border-color: var(--black);
}

.material-card.selected strong {
  font-weight: 700;
}

.wizard-icon {
  flex-shrink: 0;
  color: inherit;
}

.room-thumb .wizard-icon,
.style-thumb .wizard-icon,
.material-thumb .wizard-icon {
  width: 44px;
  height: 44px;
}

.shape-icon .wizard-icon {
  width: 52px;
  height: 52px;
}

.material-card strong {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

.material-card p {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}

.material-info p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

/* U-shaped size */
.u-size-wrap {
  margin-bottom: 32px;
}

.u-diagram {
  width: 200px;
  height: 160px;
  margin: 0 auto 24px;
  position: relative;
  background: var(--beige);
}

.u-bed {
  position: absolute;
  top: 20%;
  left: 25%;
  width: 50%;
  height: 45%;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: inset 0 -20px 0 #f5f5f5;
}

.u-dim-bar {
  display: flex;
  gap: 0;
  background: #e5e2dc;
  max-width: 640px;
  margin: 0 auto 24px;
}

.u-dim {
  flex: 1;
  padding: 12px;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
}

.u-dim.active {
  background: var(--black);
  color: #fff;
}

.u-dim input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 8px;
  border: none;
  font: inherit;
  text-align: center;
  background: transparent;
  color: inherit;
}

.brief-bar {
  grid-template-columns: repeat(7, 1fr);
}



/* —— Results concept select actions —— */
.concept-select-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

.concept-select-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border: none;
  border-radius: 0;
  background: var(--black);
  color: #fff;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.concept-select-btn:hover { opacity: 0.88; }

.concept-use-btn {
  display: inline-flex;
  padding: 0;
  border: none;
  background: none;
  color: var(--black);
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 5px;
  cursor: pointer;
}

.concept-use-btn:hover { opacity: 0.7; }

#step-results .page-title {
  margin-top: 28px;
}

#step-results .concepts-grid {
  gap: 28px;
}

#step-results .concept-card p {
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  margin: 4px 0 8px;
}

#step-results .concept-feedback {
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid #ece8e2;
}

/* —— Customize page (match mockup) —— */
.step-customize {
  max-width: none !important;
  width: 100%;
  text-align: left;
  padding-bottom: 24px;
}

.customize-top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 10px max(48px, calc(50% - 560px));
  border-bottom: 1px solid #e8e4de;
  background: #fff;
  box-sizing: border-box;
}

.customize-top-header .back-link {
  letter-spacing: 0.08em;
  font-weight: 500;
}

.customize-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px 32px;
}

.customize-top-bar {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 16px 0 12px;
  flex-wrap: wrap;
}

.customize-page-title {
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-align: left;
  color: var(--black);
}

.customize-specs-box {
  background: #ebe8e2;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.customize-specs-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
}

.customize-specs-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 12px;
  align-items: center;
}

.customize-u-shaped-controls {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 12px;
  align-items: center;
}

.customize-u-shaped-controls > .spec-label:first-child {
  grid-column: 1 / -1;
  margin: 6px 0 0;
}

.spec-label {
  font-size: 13px;
  color: var(--muted);
}

.spec-select,
.spec-input {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #d0ccc4;
  border-radius: 4px;
  padding: 6px 26px 6px 10px;
  font: inherit;
  font-size: 13px;
  color: var(--black);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.spec-select {
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23999'/%3E%3C/svg%3E") no-repeat right 8px center;
}

.spec-input {
  cursor: text;
  padding-right: 10px;
}

.spec-select:hover,
.spec-select:focus,
.spec-input:hover,
.spec-input:focus {
  border-color: #999;
  outline: none;
}

/* Single white content panel on light-gray page (mockup) */
.customize-shell {
  background: #fff;
  border: none;
  box-shadow: none;
  padding: 24px 32px 28px;
}

.customize-layout {
  display: grid;
  grid-template-columns: minmax(240px, 1.05fr) minmax(260px, 1fr) minmax(220px, 0.85fr);
  gap: 24px 28px;
  align-items: start;
}

.customize-preview {
  min-width: 0;
}

.customize-adjust {
  min-width: 0;
  padding-top: 2px;
}

.customize-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 2px;
  min-width: 0;
}

.customize-col-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
}

.customize-history-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.customize-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  color: #6b6b6b;
}

.customize-icon-btn svg {
  flex-shrink: 0;
}

.customize-icon-btn:hover:not(:disabled) { color: var(--black); }
.customize-icon-btn:disabled { opacity: 0.35; cursor: not-allowed; text-decoration: none; }

.customize-rug-frame,
.customize-rug-frame.concept-zoom,
.customize-rug-frame.concept-zoom:has(img) {
  position: relative;
  width: 100%;
  /* Let the image define height — no fixed aspect box that letterboxes */
  aspect-ratio: unset;
  height: auto;
  max-height: none;
  margin: 0;
  background: transparent;
  border: none;
  display: block;
  overflow: hidden;
  --zoom-scale: 2.5;
  --concept-max-h: none;
  cursor: zoom-in;
}

.customize-rug-frame .concept-zoom-hint {
  display: none;
}

.customize-rug-frame.concept-zoom.is-zoomed {
  overflow: hidden;
  cursor: crosshair;
}

.customize-rug-frame img {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
  object-fit: unset;
  display: block;
  transition: transform 0.05s linear;
}

.customize-rug-frame .concept-zoom-hint { bottom: 10px; }
.customize-rug-frame .customize-refining { z-index: 3; pointer-events: none; }

.customize-refining {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(244, 242, 237, 0.85);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  backdrop-filter: blur(2px);
}

.customize-refining::before {
  content: "";
  width: 32px;
  height: 32px;
  border: 2px solid #d4d4d4;
  border-top-color: var(--black);
  border-radius: 50%;
  animation: refine-spin 0.8s linear infinite;
}

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

.customize-refining::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 30%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 70%
  );
  animation: refine-shimmer 1.8s ease-in-out infinite;
}

@keyframes refine-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.customize-rate {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  font-size: 13px;
  color: #6b6b6b;
}

#customize-rate-actions .concept-feedback-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #555;
  box-shadow: none;
}

#customize-rate-actions .concept-feedback-btn:hover:not(:disabled) {
  color: var(--black);
  background: transparent;
}

#customize-rate-actions .concept-feedback-btn.is-selected {
  color: var(--black);
  background: transparent;
}

.customize-section-title {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
}

.customize-section-sub {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.45;
  color: #7a7a7a;
}

.customize-palette-block {
  margin-top: 0;
  margin-bottom: 4px;
}

.customize-palette-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
  margin: 10px 0 4px;
}

.palette-dropdown {
  position: relative;
}

.palette-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  font: inherit;
  font-size: 12px;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s;
}

.palette-dropdown-trigger:hover {
  border-color: #999;
}

.palette-dropdown-dots {
  display: flex;
  gap: 3px;
  flex-shrink: 0;
}

.palette-dropdown-label {
  flex: 1;
  text-align: left;
}

.palette-dropdown-arrow {
  flex-shrink: 0;
  opacity: 0.5;
  transition: transform 0.15s;
}

.palette-dropdown-menu:not(.hidden) ~ .palette-dropdown-trigger .palette-dropdown-arrow,
.palette-dropdown:has(.palette-dropdown-menu:not(.hidden)) .palette-dropdown-arrow {
  transform: rotate(180deg);
}

.palette-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  z-index: 10;
  max-height: 240px;
  overflow-y: auto;
  padding: 4px;
}

.color-pickers {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.color-picker-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: #666;
  letter-spacing: 0.03em;
}
.color-picker-item input[type="color"] {
  width: 34px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px;
  cursor: pointer;
  background: transparent;
}

.palette-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 10px;
  border: none;
  border-radius: 3px;
  background: transparent;
  font: inherit;
  font-size: 12px;
  color: #444;
  cursor: pointer;
  transition: background 0.1s;
}

.palette-dropdown-item:hover {
  background: #f5f3ef;
}

.palette-dropdown-item.is-selected {
  background: #f0ede7;
  font-weight: 600;
  color: var(--black);
}

.palette-option {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 8px 10px;
  border: 2px solid #e0dbd4;
  border-radius: 6px;
  cursor: pointer;
  background: #fff;
  font: inherit;
  font-size: 12px;
  color: #444;
  transition: border-color 0.15s;
}

.palette-option:hover { border-color: #999; }

.palette-option.is-selected {
  border-color: var(--black);
  color: var(--black);
  font-weight: 600;
}

.palette-option-swatches {
  display: flex;
  gap: 2px;
  margin-right: 8px;
  flex-shrink: 0;
}

.palette-option-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.palette-option-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.customize-control { margin-top: 14px; }

.customize-slider-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--black);
}

.info-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid #c4c4c4;
  font-size: 9px;
  font-weight: 600;
  font-style: normal;
  color: #999;
  cursor: help;
  flex-shrink: 0;
  line-height: 1;
}

.slider-value {
  font-size: 11px;
  font-weight: 600;
  color: #666;
  min-width: 20px;
  text-align: center;
}


.customize-slider-block {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  column-gap: 10px;
  align-items: center;
  font-size: 11px;
  color: #9a9a9a;
}

.customize-slider-row {
  display: contents;
}

.customize-slider-row > span:last-child {
  text-align: right;
}

.slider-ticks {
  grid-column: 2;
  display: flex;
  justify-content: space-between;
  padding: 2px 5px 0;
  font-size: 9px;
  color: #b5b5b5;
  letter-spacing: 0.02em;
  pointer-events: none;
}

.slider-ticks span {
  flex: 0 0 auto;
  width: 0;
  overflow: visible;
  text-align: center;
  white-space: nowrap;
}

.border-style-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.border-style-chip {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  font: inherit;
  font-size: 12px;
  color: #555;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.border-style-chip:hover {
  border-color: #999;
}

.border-style-chip.is-selected {
  border-color: var(--black);
  background: var(--black);
  color: #fff;
  font-weight: 600;
}

.change-summary {
  background: #f0ede7;
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 10px 14px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 12px;
}

.change-summary strong {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.customize-slider-row input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 24px;
  background: transparent;
  border-radius: 0;
  outline: none;
  cursor: pointer;
  margin: 0;
  padding: 0;
}

.customize-slider-row input[type="range"]::-webkit-slider-runnable-track {
  height: 2px;
  background: #d4d4d4;
}

.customize-slider-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 11px;
  height: 11px;
  margin-top: -4.5px;
  background: var(--black);
  border: none;
  border-radius: 0;
  cursor: pointer;
}

.customize-slider-row input[type="range"]::-moz-range-track {
  height: 2px;
  background: #d4d4d4;
  border: none;
}

.customize-slider-row input[type="range"]::-moz-range-thumb {
  width: 11px;
  height: 11px;
  background: var(--black);
  border: none;
  border-radius: 0;
  cursor: pointer;
}

.customize-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 28px 0 24px;
  font-size: 13px;
  font-weight: 500;
  color: var(--black);
}

.customize-toggle-row .customize-slider-label {
  margin: 0;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-switch input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #cfcfcf;
  transition: 0.2s;
  border-radius: 24px;
}

.toggle-slider::before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  transition: 0.2s;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.toggle-switch input:checked + .toggle-slider { background: var(--black); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }

.customize-footer-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 28px 24px 24px;
  padding: 0;
}

.customize-update-btn.btn-primary,
.btn-primary.customize-update-btn {
  width: auto;
  min-width: 220px;
  max-width: 320px;
  flex: none;
  margin: 0;
  display: inline-block;
  padding: 14px 28px;
  letter-spacing: 0.12em;
  font-size: 11px;
}

.customize-finalize-btn.btn-secondary {
  width: auto;
  min-width: 220px;
  max-width: 320px;
  flex: none;
  margin: 0;
  display: inline-block;
  padding: 12px 28px;
  letter-spacing: 0.12em;
  font-size: 11px;
  background: transparent;
  border: 1.5px solid var(--black);
  color: var(--black);
  cursor: pointer;
  border-radius: 0;
  text-transform: uppercase;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}
.customize-finalize-btn.btn-secondary:hover {
  background: var(--black);
  color: #fff;
}

.customize-specs { margin: 0; padding: 0; }

.link-btn {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 12px;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  color: #8a8a8a;
}

.link-btn:hover { color: var(--black); }

.customize-specs-list {
  margin: 8px 0 0;
  padding: 0;
  border-top: 1px solid #e8e4de;
}

.customize-specs-list > div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #e8e4de;
  font-size: 13px;
}

.customize-specs-list dt {
  margin: 0;
  color: #8a8a8a;
  font-weight: 400;
}

.customize-specs-list dd {
  margin: 0;
  color: var(--black);
  text-align: right;
}

.customize-ai-box {
  background: #ebe8e2;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.customize-ai-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--black);
}

.customize-ai-chips {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.ai-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  flex-shrink: 0;
  box-sizing: border-box;
  padding: 10px 14px;
  border: 1px solid #d0ccc4;
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 13px;
  text-align: center;
  cursor: pointer;
  color: var(--black);
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}

.ai-chip svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.ai-chip:hover:not(:disabled) {
  border-color: #999;
  background: #fafafa;
}

.ai-chip.is-selected {
  background: var(--black);
  color: #fff;
  border-color: var(--black);
}

.ai-chip.is-selected svg {
  opacity: 1;
}

.ai-chip:disabled { opacity: 0.5; cursor: not-allowed; }



@media (max-width: 1100px) {
  #app.is-results {
    padding-left: 20px;
    padding-right: 20px;
  }

  .step-customize .customize-top-header,
  .customize-top-header {
    padding-left: 20px;
    padding-right: 20px;
  }

  .customize-page {
    padding-left: 20px;
    padding-right: 20px;
  }

  .customize-shell { padding: 24px; }
  .customize-layout {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .customize-side {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .customize-page-title { margin-top: 24px; }
  .customize-layout,
  .customize-side { grid-template-columns: 1fr; }
  .customize-rug-frame,
  .customize-rug-frame.concept-zoom:has(img) {
    max-height: none;
  }
  .customize-slider-block {
    grid-template-columns: 56px minmax(0, 1fr) 56px;
  }
  .concept-select-actions { gap: 14px; }
}

