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

:root {
  color-scheme: light;
  --ink: #292d2c;
  --muted: #777d7b;
  --subtle: #9ca19f;
  --paper: #f7f8f7;
  --surface: #ffffff;
  --line: #e7ebe9;
  --mint: #8ad5c7;
  --mint-deep: #4b9e90;
  --mint-soft: #eaf6f3;
  --shadow: 0 12px 34px rgba(31, 45, 41, .055);
  --radius: 18px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible + * { outline: 3px solid rgba(75, 158, 144, .32); outline-offset: 3px; }

.topbar {
  height: 74px;
  padding: 0 max(24px, calc((100vw - 1370px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; width: 150px; max-height: 50px; object-fit: contain; }
.topbar-label { display: inline-flex; align-items: center; gap: 8px; color: #757d7a; font-size: 11px; font-weight: 600; letter-spacing: .035em; }
.brand-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint-deep); box-shadow: 0 0 0 4px var(--mint-soft); }
.top-link { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); text-decoration: none; font-size: 12px; font-weight: 600; }
.top-link span, .site-footer a span { color: var(--mint-deep); font-size: 15px; }
.top-link:hover, .site-footer a:hover { color: var(--mint-deep); }

.app-shell { max-width: 1370px; margin: 0 auto; padding: 38px 30px 76px; }
.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .78fr);
  align-items: end;
  gap: 42px;
  margin: 0 0 27px;
}
.intro-copy-block { max-width: 670px; }
.eyebrow, .panel-kicker {
  margin: 0 0 8px;
  color: var(--mint-deep);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.4;
  text-transform: uppercase;
}
.eyebrow span { color: #73cbbb; margin-right: 5px; font-size: 12px; }
.intro h1 {
  margin: 0;
  color: #242827;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(38px, 4.25vw, 55px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.045em;
}
.intro-copy { max-width: 600px; margin: 11px 0 0; color: #6f7673; font-size: 14px; line-height: 1.65; }
.progress-steps { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 0 0 5px; }
.progress-step { display: flex; align-items: center; gap: 9px; color: #a0a5a3; font-size: 11px; font-weight: 600; white-space: nowrap; transition: color .2s; }
.progress-number {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid #dfe4e2;
  border-radius: 50%;
  background: #fff;
  color: #909795;
  font-size: 9px;
  font-weight: 700;
  transition: .2s ease;
}
.progress-step.is-active { color: var(--ink); }
.progress-step.is-active .progress-number { border-color: var(--mint); background: var(--mint); color: #26302e; box-shadow: 0 0 0 4px rgba(138, 213, 199, .17); }
.progress-step.is-complete { color: #52635f; }
.progress-step.is-complete .progress-number { border-color: #b5e4db; background: var(--mint-soft); color: var(--mint-deep); }
.progress-connector { width: clamp(16px, 3vw, 42px); height: 1px; background: #dfe4e2; }

.workspace { display: grid; grid-template-columns: minmax(340px, .82fr) minmax(0, 1.18fr); gap: 22px; align-items: start; }
.setup-column { display: grid; gap: 16px; min-width: 0; }
.panel { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.section-heading { display: flex; align-items: center; gap: 12px; min-width: 0; }
.step-number { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 50%; background: var(--mint-soft); color: var(--mint-deep); font-size: 10px; font-weight: 700; }
.heading-copy { min-width: 0; }
.panel-kicker { margin: 0 0 2px; color: #8c9793; font-size: 8px; letter-spacing: .13em; }
.section-heading h2, .result-heading h2 { margin: 0; color: var(--ink); font-size: 17px; font-weight: 700; letter-spacing: -.035em; line-height: 1.25; }
.step-state { margin-left: auto; padding: 6px 9px; border: 1px solid var(--line); border-radius: 20px; color: #929a97; font-size: 9px; font-weight: 600; white-space: nowrap; }
.step-state.is-done { border-color: #cdebe4; background: var(--mint-soft); color: #4e8c80; }
.panel-intro { margin: 13px 0 12px 46px; color: var(--muted); font-size: 11px; line-height: 1.5; }

.upload-area {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 155px;
  overflow: hidden;
  border: 1px dashed #cad5d1;
  border-radius: 13px;
  background: #fafcfb;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.upload-area:hover { border-color: var(--mint-deep); background: #f5fbf9; }
.upload-area:focus-within { outline: 3px solid rgba(75, 158, 144, .2); outline-offset: 2px; }
.upload-area input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.upload-placeholder { display: flex; align-items: center; flex-direction: column; gap: 4px; padding: 16px; text-align: center; }
.upload-symbol { position: relative; width: 40px; height: 40px; display: grid; place-items: center; margin-bottom: 3px; border-radius: 50%; background: var(--mint-soft); color: #579f92; }
.upload-symbol svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.upload-placeholder strong { font-size: 12px; font-weight: 700; }
.upload-placeholder > span:not(.upload-symbol) { color: #6f7975; font-size: 10px; }
.upload-placeholder small { margin-top: 3px; color: #a0a7a4; font-size: 9px; }
#photoPreview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 34%; background: #edf0ee; }
.photo-overlay { position: absolute; right: 10px; bottom: 10px; display: none; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.48); border-radius: 20px; background: rgba(35, 42, 40, .72); color: #fff; font-size: 9px; font-weight: 600; backdrop-filter: blur(6px); }
.photo-overlay span { font-size: 13px; line-height: 1; }
.upload-area.has-photo { border-style: solid; border-color: #d5e2de; background: #edf1ef; }
.upload-area.has-photo .upload-placeholder { display: none; }
.upload-area.has-photo .photo-overlay { display: inline-flex; }
.photo-actions { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.camera-button, .secondary-button {
  min-height: 41px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid #dce3e0;
  border-radius: 8px;
  background: #fff;
  color: #343b39;
  font-size: 10px;
  font-weight: 700;
  transition: .18s ease;
}
.camera-button { flex: 1; }
.camera-button:hover, .secondary-button:hover { border-color: var(--mint-deep); background: #f6fbf9; }
.camera-button svg { width: 17px; height: 17px; fill: none; stroke: var(--mint-deep); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.text-button { padding: 8px 2px; border: 0; background: none; color: #6e7874; font-size: 10px; font-weight: 600; }
.text-button:hover { color: #9b504a; }
.photo-tip { display: flex; gap: 9px; align-items: flex-start; margin: 14px 0 0; padding: 10px 11px; border-radius: 9px; background: #f4f8f6; }
.tip-mark { flex: 0 0 auto; color: #6dbdad; font-size: 13px; }
.photo-tip p { margin: 0; color: #737c78; font-size: 9px; line-height: 1.55; }
.photo-tip strong { color: #4b5854; font-size: 9px; }
.privacy-note { margin: 11px 0 0; color: #929a97; font-size: 9px; line-height: 1.55; }

.catalog-panel { padding-bottom: 18px; }
.search-box { height: 40px; display: flex; align-items: center; gap: 9px; margin: 16px 0 12px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #8b9490; }
.search-box:focus-within { border-color: var(--mint-deep); box-shadow: 0 0 0 3px rgba(138, 213, 199, .17); }
.search-box svg { width: 16px; height: 16px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 10px; }
.search-box input::placeholder { color: #a2a9a6; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.filters { display: flex; gap: 6px; }
.filter-button { min-height: 29px; padding: 6px 11px; border: 1px solid transparent; border-radius: 20px; background: transparent; color: #7b8480; font-size: 9px; font-weight: 600; transition: .18s ease; }
.filter-button:hover { background: #f4f7f5; color: var(--ink); }
.filter-button.is-active { border-color: #ccebe4; background: var(--mint-soft); color: #3f7d71; }
.catalog-count { color: #9da5a2; font-size: 9px; }
.catalog-status { min-height: 16px; margin: 10px 0 8px; color: #919a96; font-size: 9px; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.product-card { position: relative; min-width: 0; overflow: hidden; padding: 0; border: 1px solid #e9edeb; border-radius: 10px; background: #fff; color: var(--ink); text-align: left; transition: border-color .16s, box-shadow .16s, transform .16s; }
.product-card:hover { transform: translateY(-1px); border-color: #bcded5; box-shadow: 0 5px 16px rgba(31, 45, 41, .07); }
.product-card.is-selected { border: 1.5px solid var(--mint-deep); box-shadow: 0 0 0 3px rgba(138, 213, 199, .2); }
.product-image { height: 92px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #f7f8f7; }
.product-image img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.product-info { display: block; padding: 8px 9px 9px; }
.product-name { display: block; overflow: hidden; color: #3c4240; font-size: 9px; font-weight: 700; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.product-category { display: block; margin-top: 3px; color: #98a09d; font-size: 8px; }
.stock-badge { position: absolute; z-index: 1; top: 6px; left: 6px; padding: 4px 6px; border-radius: 12px; background: rgba(49, 54, 52, .84); color: #fff; font-size: 7px; letter-spacing: .025em; }
.stock-badge.available { background: rgba(75, 125, 111, .9); }
.selected-dot { position: absolute; z-index: 2; top: 6px; right: 6px; width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid rgba(41, 45, 44, .12); border-radius: 50%; background: #fff; color: #4b9e90; font-size: 10px; opacity: 0; }
.is-selected .selected-dot { opacity: 1; }
.more-button { width: 100%; margin-top: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #59615e; font-size: 9px; font-weight: 700; }
.more-button:hover:not(:disabled) { border-color: var(--mint-deep); background: #f7fbfa; }
.more-button:disabled { opacity: .55; cursor: wait; }
.catalog-footnote { margin: 10px 0 0; color: #a0a7a4; font-size: 8px; }

.result-panel { padding: 22px; }
.result-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.result-heading .section-heading { gap: 12px; }
.result-heading h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 25px; font-weight: 500; letter-spacing: -.035em; }
.ai-badge { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; padding: 7px 10px; border: 1px solid #e4e9e7; border-radius: 20px; background: #fafcfb; color: #78817d; font-size: 9px; font-weight: 700; white-space: nowrap; }
.ai-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: #bbc2bf; }
.ai-badge.is-ready { border-color: #cfebe5; background: var(--mint-soft); color: #467e73; }
.ai-badge.is-ready .ai-badge-dot { background: #5eb5a5; box-shadow: 0 0 0 3px rgba(138, 213, 199, .18); }
.ai-badge.is-unavailable { border-color: #efddda; background: #fcf3f2; color: #9b504a; }
.ai-badge.is-unavailable .ai-badge-dot { background: #c97970; }
.selection-summary { min-height: 40px; display: flex; align-items: center; gap: 9px; margin: 16px 0 11px; padding: 8px 11px; border: 1px solid #edf0ee; border-radius: 9px; background: #fafcfb; color: #79817e; font-size: 10px; line-height: 1.45; }
.selection-summary.is-ready { border-color: #d8eee8; background: #f4faf8; color: #4f6962; }
.summary-mark { display: grid; width: 21px; height: 21px; flex: 0 0 21px; place-items: center; border-radius: 50%; background: var(--mint-soft); color: var(--mint-deep); font-size: 10px; }
.selected-gallery { display: flex; gap: 7px; overflow-x: auto; margin: -2px 0 10px; padding: 0 0 2px; }
.selected-gallery[hidden] { display: none; }
.gallery-thumb { width: 49px; height: 42px; flex: 0 0 49px; padding: 2px; border: 1px solid var(--line); border-radius: 7px; background: #fff; cursor: pointer; }
.gallery-thumb.is-active { border: 1.5px solid var(--mint-deep); box-shadow: 0 0 0 2px rgba(138, 213, 199, .16); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.result-image-wrap { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: clamp(390px, 43vw, 560px); min-height: 360px; overflow: hidden; border: 1px solid #edf0ee; border-radius: 13px; background: linear-gradient(145deg, #f7f9f8, #f1f4f2); }
.result-image-wrap::before { position: absolute; inset: 12px; border: 1px solid rgba(188, 203, 197, .32); border-radius: 8px; content: ''; pointer-events: none; }
.result-image-wrap > img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; }
.result-image-wrap.has-result { background: #f2f3f2; }
.result-image-wrap.has-result::before { display: none; }
.result-image-wrap.has-history { display: block; height: auto; min-height: 0; overflow: visible; border: 0; background: transparent; }
.result-image-wrap.has-history::before { display: none; }
.tryon-results { display: grid; gap: 12px; width: 100%; }
.tryon-results-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #3c4843; }
.tryon-results-heading strong { font-size: 13px; }
.tryon-results-heading span { padding: 5px 9px; border-radius: 20px; background: var(--mint-soft); color: #467e73; font-size: 9px; font-weight: 700; }
.tryon-results-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tryon-result-card { min-width: 0; display: grid; align-content: start; gap: 9px; padding: 9px; border: 1px solid #e5ebe8; border-radius: 13px; background: #fff; box-shadow: 0 5px 16px rgba(31, 45, 41, .045); }
.tryon-result-title { min-width: 0; display: grid; gap: 4px; }
.tryon-result-title strong { overflow: hidden; color: #37413d; font-size: 10px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.tryon-result-title span { color: #98a09d; font-size: 8px; font-weight: 600; text-transform: uppercase; letter-spacing: .055em; }
.tryon-result-photo-frame { aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid #edf0ee; border-radius: 9px; background: #f3f5f4; }
.tryon-result-photo { display: block; width: 100%; height: 100%; object-fit: contain; }
.tryon-choice-button { position: relative; min-width: 0; min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border: 1px solid #71c4b4; border-radius: 11px; background: var(--mint); box-shadow: 0 5px 13px rgba(75, 158, 144, .19); color: #253b36; text-align: left; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.tryon-choice-button:hover { transform: translateY(-2px); background: #79cdbc; box-shadow: 0 8px 18px rgba(75, 158, 144, .26); }
.tryon-choice-button:focus-visible { outline: 3px solid rgba(75, 158, 144, .32); outline-offset: 3px; }
.tryon-choice-copy { min-width: 0; display: grid; gap: 4px; }
.tryon-choice-copy strong { font-size: 14px; font-weight: 700; line-height: 1.25; }
.tryon-choice-copy small { color: #426b62; font-size: 9px; line-height: 1.3; }
.tryon-choice-arrow { flex: 0 0 auto; color: #347f72; font-size: 21px; font-weight: 500; }
.empty-state { position: relative; z-index: 1; display: flex; align-items: center; flex-direction: column; justify-content: center; width: min(300px, 85%); padding: 22px; color: #69736f; text-align: center; }
.empty-art { position: relative; width: 140px; height: 112px; display: grid; place-items: center; margin-bottom: 13px; border-radius: 50%; background: radial-gradient(circle, #e8f5f1 0, rgba(234, 246, 243, .34) 65%, transparent 66%); }
.empty-art svg { width: 140px; height: 100px; stroke: #82bdb1; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.empty-art-spark { position: absolute; z-index: 1; top: 6px; right: 15px; color: #67bcae; font-size: 19px; }
.empty-state strong { color: #3e4945; font-size: 13px; font-weight: 700; }
.empty-state p { max-width: 250px; margin: 7px 0 0; color: #8b9490; font-size: 10px; line-height: 1.6; }
.loading-state { position: relative; z-index: 1; display: flex; align-items: center; flex-direction: column; gap: 12px; max-width: 290px; padding: 22px; color: #65716c; text-align: center; }
.result-image-wrap.is-loading .loading-state { position: absolute; z-index: 3; inset: 0; width: 100%; max-width: none; justify-content: center; background: rgba(248, 250, 249, .88); backdrop-filter: blur(3px); }
.result-image-wrap.has-history.is-loading { overflow: visible; }
.result-image-wrap.has-history.is-loading .loading-state { position: relative; inset: auto; width: min(300px, 100%); min-height: 220px; margin: 0 auto 12px; border: 1px solid #e5ebe8; border-radius: 12px; }
.loading-spinner { width: 31px; height: 31px; border: 2px solid #d6e9e4; border-top-color: #55a898; border-radius: 50%; animation: spin .9s linear infinite; }
.loading-state strong { font-size: 12px; }
.loading-state .loading-detail { color: #8a9490; font-size: 10px; line-height: 1.55; }
.loading-message { min-height: 18px; margin: 0; color: var(--mint-deep); font-size: 11px; font-weight: 700; line-height: 1.5; }
.loading-progress { width: min(260px, 100%); padding: 3px; border: 1px solid #e4efeb; border-radius: 999px; background: rgba(255, 255, 255, .84); }
.loading-progress-track { display: block; height: 8px; overflow: hidden; border-radius: inherit; background: #edf4f1; }
.loading-progress-fill { position: relative; display: block; width: 8%; height: 100%; overflow: hidden; border-radius: inherit; background: linear-gradient(90deg, #79c7b8, #a7d9cc 68%, #c9a27d); transition: width .3s ease; }
.loading-progress-fill::after { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 18%, rgba(255, 255, 255, .62) 48%, transparent 78%); animation: loading-shimmer 1.7s ease-in-out infinite; content: ''; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes loading-shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.ai-status { min-height: 17px; margin: 10px 2px 9px; color: #85908b; font-size: 9px; line-height: 1.5; }
.ai-status:empty { min-height: 17px; }
.ai-status.is-error { color: #a24f49; }
.result-actions { display: grid; grid-template-columns: minmax(0, 1fr) 46px; gap: 8px; }
.primary-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 14px;
  border: 1px solid #282e2c;
  border-radius: 9px;
  background: #282e2c;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  transition: transform .16s, background .16s, border-color .16s, box-shadow .16s;
}
.primary-button:hover:not(:disabled) { transform: translateY(-1px); border-color: #3c8174; background: #3c8174; box-shadow: 0 5px 14px rgba(45, 108, 95, .16); }
.primary-button:disabled { border-color: #d8ddda; background: #e6e9e7; color: #929a96; cursor: not-allowed; box-shadow: none; }
.button-spark { color: var(--mint); font-size: 15px; }
.primary-button:disabled .button-spark { color: #adb6b2; }
.button-arrow { margin-left: auto; color: var(--mint); font-size: 16px; font-weight: 500; }
.download-button { width: 46px; min-height: 48px; display: grid; place-items: center; border: 1px solid #dfe5e2; border-radius: 9px; background: #fff; color: #58635e; font-size: 19px; transition: .16s; }
.download-button:hover:not(:disabled) { border-color: var(--mint-deep); background: var(--mint-soft); color: #417f73; }
.download-button:disabled { color: #b6bdb9; cursor: not-allowed; }
.result-journey { display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; margin-top: 11px; }
.journey-continue { position: relative; min-width: 0; min-height: 68px; display: flex; align-items: center; gap: 10px; overflow: hidden; padding: 11px 13px; border: 1px solid #e4eae7; border-radius: 10px; background: #f8fbfa; color: var(--ink); text-align: left; text-decoration: none; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease; }
.journey-continue:hover { transform: translateY(-2px); border-color: #b9ded5; background: #f1f9f7; box-shadow: 0 7px 18px rgba(43, 51, 48, .1); }
.journey-icon { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.13); color: #d8eee8; font-size: 14px; }
.journey-continue .journey-icon { background: var(--mint-soft); color: var(--mint-deep); }
.journey-copy { min-width: 0; display: grid; gap: 4px; }
.journey-copy strong { font-size: 10px; font-weight: 700; line-height: 1.25; }
.journey-copy small { color: rgba(255,255,255,.72); font-size: 8px; line-height: 1.35; }
.journey-continue .journey-copy small { color: #7f8985; }
.journey-chevron { margin-left: auto; color: var(--mint-deep); font-size: 15px; }
.result-journey.is-visible { animation: journey-appear .42s cubic-bezier(.2,.8,.25,1) both; }
@keyframes journey-appear { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
.disclaimer { margin: 12px 2px 0; color: #99a19e; font-size: 9px; line-height: 1.55; }

.site-footer { min-height: 70px; display: flex; align-items: center; gap: 10px; padding: 18px max(24px, calc((100vw - 1370px) / 2)); border-top: 1px solid var(--line); background: #fff; color: #848d89; font-size: 10px; }
.footer-brand { color: #4c5551; font-weight: 700; }
.footer-tagline { padding-left: 10px; border-left: 1px solid #dce3e0; color: #8b9490; }
.site-footer a { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; color: #606a66; font-size: 10px; font-weight: 600; text-decoration: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.camera-dialog { width: min(520px, calc(100vw - 28px)); max-width: none; padding: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); box-shadow: 0 24px 80px rgba(27, 38, 34, .24); }
.camera-dialog::backdrop { background: rgba(27, 33, 31, .62); backdrop-filter: blur(4px); }
.camera-dialog-content { padding: 23px; }
.camera-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.camera-dialog-heading .eyebrow { margin-bottom: 5px; }
.camera-dialog-heading h2 { margin: 0; font-family: 'Playfair Display', Georgia, serif; font-size: 29px; font-weight: 500; line-height: 1.1; }
.camera-close { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--muted); font-size: 24px; line-height: 1; }
.camera-instructions { margin: 13px 0; color: var(--muted); font-size: 11px; }
.camera-preview-wrap { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 11px; background: #202624; }
.camera-preview-wrap video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.camera-status { min-height: 17px; color: #728079; font-size: 10px; line-height: 1.5; }
.camera-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 14px; }
.camera-actions .primary-button { min-height: 42px; }

@media (max-width: 1000px) {
  .app-shell { padding-right: 22px; padding-left: 22px; }
  .intro { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .progress-steps { justify-content: flex-start; }
  .workspace { grid-template-columns: minmax(300px, .88fr) minmax(0, 1.12fr); gap: 15px; }
  .panel { padding: 18px; }
  .result-panel { padding: 18px; }
  .result-image-wrap { height: clamp(380px, 50vw, 520px); }
}
@media (max-width: 760px) {
  .topbar { height: 66px; padding: 0 18px; }
  .brand img { width: 134px; max-height: 44px; }
  .topbar-label { display: none; }
  .app-shell { padding: 30px 18px 52px; }
  .intro { gap: 17px; margin-bottom: 19px; }
  .intro h1 { font-size: clamp(38px, 8vw, 49px); }
  .intro-copy { max-width: 560px; font-size: 12px; }
  .progress-steps { gap: 8px; }
  .progress-step { gap: 6px; font-size: 9px; }
  .progress-number { width: 27px; height: 27px; font-size: 8px; }
  .progress-connector { width: clamp(14px, 5vw, 42px); }
  .workspace { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .setup-column { gap: 13px; }
  .panel, .result-panel { padding: 17px; border-radius: 15px; }
  .upload-area { min-height: 145px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-image { height: 112px; }
  .result-heading h2 { font-size: 23px; }
  .result-image-wrap { height: min(112vw, 570px); min-height: 380px; }
  .result-journey { grid-template-columns: minmax(0, 1fr); }
  .tryon-results-grid { grid-template-columns: minmax(0, 1fr); }
  .site-footer { padding: 18px; }
}
@media (max-width: 430px) {
  .topbar { padding: 0 14px; }
  .brand img { width: 122px; }
  .top-link { font-size: 10px; }
  .app-shell { padding: 25px 12px 40px; }
  .intro h1 { font-size: 38px; }
  .desktop-break { display: none; }
  .progress-steps { justify-content: space-between; gap: 5px; }
  .progress-step { gap: 5px; font-size: 8px; }
  .progress-number { width: 25px; height: 25px; }
  .progress-connector { flex: 1; width: auto; max-width: 24px; }
  .panel, .result-panel { padding: 14px; }
  .step-number { width: 31px; height: 31px; flex-basis: 31px; }
  .step-state { padding: 5px 7px; font-size: 8px; }
  .panel-intro { margin-left: 43px; }
  .upload-area { min-height: 142px; }
  .camera-button { font-size: 9px; }
  .filter-button { padding-right: 9px; padding-left: 9px; }
  .result-heading { align-items: flex-start; }
  .result-heading .section-heading { gap: 9px; }
  .result-heading h2 { font-size: 21px; }
  .ai-badge { padding: 6px 8px; font-size: 8px; }
  .result-image-wrap { height: min(108vw, 500px); min-height: 340px; }
  .journey-continue { min-height: 62px; padding: 10px 11px; }
  .site-footer { flex-wrap: wrap; gap: 7px; padding: 16px 12px; font-size: 9px; }
  .footer-tagline { padding-left: 7px; }
  .site-footer a { font-size: 9px; }
  .camera-dialog-content { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .result-journey.is-visible, .loading-spinner, .loading-progress-fill::after { animation: none; }
  .journey-continue, .tryon-choice-button { transition: none; }
  .loading-progress-fill { transition: none; }
}
