[hidden] { display: none !important; }
button:disabled { opacity: .6; cursor: wait; }
input { accent-color: var(--wine); caret-color: var(--wine); }
input::placeholder { color: #896674; }
body { scrollbar-color: #b3748d var(--paper-soft); }
.site-header { height: 76px; }
.brand-lockup { align-items: center; }
.header-back { width: 44px; height: 44px; flex: 0 0 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; color: var(--wine); }
.header-back svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.header-back:hover { background: var(--pink-soft); }
.header-back:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
body:is(.in-photos, .in-checkout) > .site-header { position: sticky; top: 0; z-index: 40; }
.hero { min-height: calc(100svh - 76px); }
.hero-copy > p { max-width: 28ch; }
.hero-start { margin-top: 24px; }
.copy-paw-trail { height: 112px; }
.home-invite { padding: 60px 24px 90px; text-align: center; }
.home-invite h2 { margin: 0 0 24px; font: 400 clamp(34px, 4vw, 56px)/1.08 var(--display); }
.home-invite p { font-size: 15px; color: var(--muted); }
.site-footer { min-height: 270px; }
.text-link, .text-button { min-height: 44px; display: inline-flex; align-items: center; padding: 8px 0; border: 0; background: transparent; color: var(--wine); font-size: 14px; font-weight: 800; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; cursor: pointer; }
.text-link:hover, .text-button:hover { color: var(--wine-deep); }
.flow-page { max-width: 1220px; margin: 0 auto; padding: 30px 48px 80px; }
.page-heading { margin: 26px 0 40px; }
.flow-page h1, .maker-heading h1 { margin: 0; font-family: var(--display); font-weight: 400; letter-spacing: -.025em; line-height: 1.02; }
.flow-page h1 { font-size: clamp(48px, 5.4vw, 70px); }
.flow-page h1:focus, .maker-heading h1:focus { outline: none; }
.page-heading > p, .maker-heading p { color: var(--muted); margin: 14px 0 0; max-width: 50ch; }
.in-maker:not(.in-photos) { height: 100dvh; overflow: hidden; }
.maker-workspace { height: calc(100dvh - 100px); width: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto auto; gap: 8px; padding: 18px 38px 0; overflow: hidden; background: var(--paper-soft); }
.flow-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.stepper { display: flex; align-items: center; list-style: none; gap: 10px; margin: 0; padding: 0; }
.stepper button { min-height: 44px; border: 0; background: transparent; color: var(--muted); display: flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 800; padding: 6px 10px; border-radius: 12px; }
.stepper [aria-current="step"] { color: var(--wine); background: var(--pink-soft); }
.maker-heading { min-width: 0; flex: 1 1 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 4px 0 6px; position: relative; z-index: 20; }
.maker-heading h1 { font-size: clamp(38px, 4.3vw, 58px); }
.maker-heading h1 .title-soft { font-size: .56em; letter-spacing: -.01em; color: var(--wine); white-space: nowrap; }
.maker-heading p { margin-top: 8px; font-size: 15px; }
.photos-panel { min-height: 0; display: grid; grid-template-columns: minmax(280px, 390px) minmax(430px, 560px); align-items: center; justify-content: center; gap: clamp(34px, 5vw, 72px); position: relative; padding: 14px 24px; overflow-x: clip; overflow-y: auto; }
.photos-choice-summary { min-width: 0; display: grid; gap: 14px; }
.photos-choice-stage { width: 100%; aspect-ratio: 4 / 3; position: relative; isolation: isolate; }
.photos-choice-digital { position: absolute; inset: 4%; z-index: 1; margin: 0; padding: 7px; background: var(--white); box-shadow: var(--photo-shadow); transform: rotate(-1.5deg); transition: opacity .24s ease, transform .45s var(--ease-out); }
.photos-choice-digital img { width: 100%; height: 100%; object-fit: cover; }
.photos-choice-frame { position: absolute; inset: 1% 2% 3%; z-index: 2; display: grid; place-items: center; opacity: 0; transform: rotate(-1.5deg) scale(.96); transition: opacity .24s ease, transform .5s var(--ease-out); }
.photos-frame-outer { width: 94%; aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 14px; background: linear-gradient(135deg, #6d3926 0%, #3f1e17 45%, #7d4b31 76%, #321712 100%); box-shadow: inset 0 0 0 2px rgba(255,255,255,.16), inset 0 0 0 6px rgba(25,7,8,.36), 0 20px 34px rgba(59,24,36,.24); }
.photos-frame-mat { width: 100%; height: 100%; display: grid; place-items: center; padding: 12px; background: #fffaf2; }
.photos-frame-mat img { width: 100%; height: 100%; object-fit: cover; }
.photos-choice-stage.show-frame .photos-choice-digital { opacity: 0; transform: rotate(-1.5deg) scale(.96); }
.photos-choice-stage.show-frame .photos-choice-frame { opacity: 1; transform: rotate(-1deg) scale(1); }
.photos-choice-mug { width: 42%; aspect-ratio: 1.2; position: absolute; right: -5%; bottom: -5%; z-index: 4; opacity: 0; transform: rotate(7deg) translateY(10px) scale(.94); transition: opacity .24s ease, transform .5s var(--ease-out); }
.photos-choice-stage.show-mug .photos-choice-mug { opacity: 1; transform: rotate(7deg) translateY(0) scale(1); }
.photos-choice-mug::after { content: ''; width: 54%; height: 64%; position: absolute; left: 11%; top: 20%; z-index: 3; border-radius: 42% 22% 22% 42%; background: linear-gradient(90deg, rgba(255,255,255,.42), transparent 28%, transparent 76%, rgba(255,255,255,.2)); pointer-events: none; }
.photos-choice-meta { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 16px; align-items: center; padding-inline: 8px; }
.photos-choice-meta > span { grid-column: 1; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.photos-choice-meta > strong { grid-column: 1; font: 400 23px/1.1 var(--display); }
.photos-choice-meta > small { grid-column: 1; color: var(--muted); font-size: 12px; }
.photos-choice-meta > .text-button { grid-column: 2; grid-row: 1 / 4; align-self: center; }
.photo-upload-section { width: 100%; height: 100%; min-width: 0; min-height: 316px; max-height: 468px; display: grid; grid-template-rows: minmax(210px, 1fr) auto; gap: 24px; align-content: center; }
.photo-upload-pair { min-width: 0; height: 100%; display: flex; align-items: center; justify-content: center; gap: 28px; }
.upload-paper { width: min(28vw, 260px); height: min(100%, 360px); display: flex; flex-direction: column; position: relative; padding: 10px 10px 14px; background: var(--white); box-shadow: var(--photo-shadow); transform: rotate(-4deg); text-align: center; }
.pet-upload-paper { transform: rotate(5deg); }
.upload-photo { width: 100%; flex: 1; min-height: 70px; display: block; background: var(--paper-warm); position: relative; overflow: hidden; }
.upload-photo > img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.upload-empty { display: flex; height: 100%; flex-direction: column; gap: 14px; justify-content: center; align-items: center; color: var(--wine); font-size: 15px; font-weight: 800; }
.upload-symbol { width: 88px; height: 88px; flex: 0 0 auto; display: grid; place-items: center; position: relative; border-radius: 50%; background: var(--pink-soft); }
.upload-symbol > svg { width: 56px; height: 56px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.upload-symbol .upload-symbol-add { position: absolute; right: -2px; bottom: 0; width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: var(--wine); color: var(--white); }
.upload-paper.has-file .upload-empty { display: none; }
.upload-paper > strong { flex-shrink: 0; display: block; margin-top: 7px; font: 400 29px/1 var(--display); }
.upload-paper > small { flex-shrink: 0; display: block; margin-top: 8px; min-height: 28px; font-size: 12px; line-height: 1.4; color: var(--muted); }
.photo-error { flex-shrink: 0; display: block; padding: 0 3px 4px; color: #8f244c; font-size: 12px; line-height: 1.45; text-align: left; }
.has-photo-error { outline: 2px solid #a62e5a; outline-offset: 4px; }
.upload-paper.has-photo-error > small { color: #8f244c; font-weight: 800; }
.photo-check-note { max-width: 68ch; margin-top: 10px; font-size: 13px; line-height: 1.5; color: #644752; }
.photo-check-note.has-error { color: #8f244c; }
.photo-check-note .text-button { font-size: inherit; padding-block: 0; }
.is-checking .upload-photo::after { content: ''; position: absolute; inset: auto 0 0; height: 2px; background: var(--wine); animation: photo-check-sweep 1.4s ease-in-out infinite; transform-origin: left; }
@keyframes photo-check-sweep { 0%, 100% { transform: scaleX(.15); } 50% { transform: scaleX(1); } }
.upload-paper input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.upload-paper:focus-within { outline: 3px solid var(--focus); outline-offset: 5px; }
.photo-plus { font: 400 48px/1 var(--display); color: #aa597d; }
.photo-guidance { width: 100%; position: static; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.6; margin: 0; }
.photo-guidance p { margin: 0; }
.photo-guidance .text-button { margin-top: 4px; }
.maker-workspace .effect-panel { min-width: 0; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) 92px; gap: 8px; margin-top: 80px; }
.maker-workspace .composition-panel { min-height: 0; margin-inline: -38px; width: calc(100% + 76px); position: relative; }
.maker-workspace .composition-gallery { position: relative; padding-block: 10px 18px; }
.maker-workspace .composition-option { height: min(100% - 8px, 440px); flex-basis: min(43vw, 570px); }
.maker-workspace .scene-ring .composition-option[data-deck-position="0"] { padding: 8px; }
.maker-workspace .scene-ring .composition-option[data-deck-position="0"] > img { object-fit: contain; object-position: center; }
.maker-workspace .scene-ring .composition-option[data-deck-position="0"]::after {
  content: '';
  position: absolute;
  inset: auto 8px 8px;
  height: 46%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(42, 14, 27, .08) 34%, rgba(42, 14, 27, .72) 100%);
  transition: opacity .2s ease;
}
.maker-workspace .scene-ring .composition-option[data-deck-position="0"] .option-copy {
  left: auto;
  right: 18px;
  bottom: 16px;
  width: fit-content;
  max-width: min(58%, 290px);
  padding: 0;
  z-index: 2;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 2px;
  text-align: right;
  color: var(--white);
  background: transparent;
  text-shadow: 0 2px 12px rgba(31, 8, 18, .82);
  transition: opacity .2s ease;
}
.maker-workspace .scene-ring .composition-option[data-deck-position="0"] .option-copy strong,
.maker-workspace .scene-ring .composition-option[data-deck-position="0"] .option-copy small { display: block; max-width: 100%; white-space: nowrap; }
.maker-workspace .scene-ring .composition-option[data-deck-position="0"] .option-copy strong { font-size: 18px; }
.maker-workspace .scene-ring .composition-option[data-deck-position="0"] .option-copy small { color: rgba(255, 255, 255, .84); font-size: 11px; }
.maker-workspace .style-panel { min-height: 0; display: flex; gap: 13px; align-items: center; justify-content: center; position: relative; z-index: 20; overflow: visible; }
.maker-workspace .effect-label { display: none; }
.maker-workspace .style-grid {
  width: max-content;
  min-height: 80px;
  display: flex;
  gap: 4px;
  align-items: flex-end;
  padding: 7px 12px 6px;
  position: relative;
  isolation: isolate;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .66), rgba(255, 231, 240, .42));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .92), inset 0 -1px 0 rgba(125, 32, 71, .09), 0 18px 48px rgba(76, 28, 48, .16);
  backdrop-filter: blur(24px) saturate(1.45);
  -webkit-backdrop-filter: blur(24px) saturate(1.45);
  touch-action: pan-y;
}
.maker-workspace .style-grid::before { content: ''; position: absolute; inset: 5px 10% auto; height: 34%; z-index: -1; border-radius: 999px; background: linear-gradient(180deg, rgba(255, 255, 255, .72), transparent); filter: blur(5px); pointer-events: none; }
.maker-workspace .style-option {
  --dock-scale: 1;
  --dock-lift: 0px;
  width: 61px;
  height: 65px;
  flex: 0 0 61px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  padding: 0;
  border: 0;
  position: relative;
  overflow: visible;
  color: var(--ink);
  background: transparent;
  box-shadow: none;
  transform: translateY(var(--dock-lift)) scale(var(--dock-scale));
  transform-origin: center bottom;
  transition: transform .16s cubic-bezier(.2, .9, .25, 1.25), color .2s ease;
  will-change: transform;
}
.maker-workspace .style-option:nth-child(even), .maker-workspace .style-option:hover,
.maker-workspace .style-option.is-selected { transform: translateY(var(--dock-lift)) scale(var(--dock-scale)); }
.maker-workspace .style-option img { width: 46px; height: 46px; flex: 0 0 46px; border: 2px solid rgba(255, 255, 255, .84); border-radius: 50%; object-fit: cover; box-shadow: 0 7px 16px rgba(76, 28, 48, .18); transition: box-shadow .2s ease, border-color .2s ease; }
.maker-workspace .style-option span { max-width: 66px; margin: 0; overflow: hidden; font-size: 10px; font-weight: 800; line-height: 1.05; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.maker-workspace .style-option.is-previewing img { border-color: rgba(125, 32, 71, .52); box-shadow: 0 0 0 4px rgba(255, 255, 255, .64), 0 9px 22px rgba(76, 28, 48, .24); }
.maker-workspace .style-option.is-selected { outline: none; outline-offset: 0; color: var(--wine); }
.maker-workspace .style-option.is-selected img { border-color: var(--wine); box-shadow: 0 0 0 3px rgba(255, 255, 255, .82), 0 9px 24px rgba(76, 28, 48, .28); }
.maker-workspace .style-option.is-selected::after { content: ''; width: 5px; height: 5px; position: absolute; bottom: -5px; border-radius: 50%; background: var(--wine); }
.maker-workspace .style-option:focus-visible { outline: none; }
.maker-workspace .style-option:focus-visible img { box-shadow: 0 0 0 3px var(--paper-soft), 0 0 0 6px var(--focus), 0 9px 24px rgba(76, 28, 48, .24); }
.format-showcase {
  width: min(60vw, 760px);
  height: min(58dvh, 480px);
  position: absolute;
  left: 50%;
  top: 48%;
  z-index: 14;
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: drop-shadow(0 24px 32px rgba(66, 26, 43, .2));
}
.format-showcase[hidden] { display: none; }
.format-object { position: absolute; inset: 0; display: grid; place-items: center; }
.format-frame { opacity: 0; transform: translateY(12px) rotate(-1.5deg) scale(.96); }
.format-showcase.show-frame .format-frame { opacity: 1; transform: translateY(0) rotate(-1deg) scale(1); transition: opacity .26s ease, transform .55s cubic-bezier(.16, 1, .3, 1); }
.frame-outer {
  width: min(82%, 600px);
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  padding: 20px;
  position: relative;
  background: linear-gradient(135deg, #6d3926 0%, #3f1e17 45%, #7d4b31 76%, #321712 100%);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.16), inset 0 0 0 8px rgba(25,7,8,.36), 0 22px 38px rgba(59,24,36,.26);
}
.frame-outer::before { content: ''; position: absolute; inset: 8px; border: 1px solid rgba(255, 229, 202, .38); pointer-events: none; }
.frame-mat { width: 100%; height: 100%; display: grid; place-items: center; padding: 18px; background: #fffaf2; box-shadow: inset 0 0 16px rgba(92, 64, 50, .16); }
.frame-mat img { width: 100%; height: 100%; object-fit: cover; box-shadow: 0 3px 9px rgba(55, 30, 27, .2); }
.frame-floor-shadow { position: absolute; left: 50%; bottom: 1%; width: 70%; height: 22px; border-radius: 50%; background: rgba(66, 26, 43, .22); filter: blur(13px); transform: translateX(-50%); z-index: -1; }
.format-mug-real { width: 420px; height: 350px; inset: auto; left: 50%; top: 50%; z-index: 18; opacity: 0; transform: translate(-50%, -46%) rotate(2deg) scale(.94); transition: opacity .26s ease, transform .55s cubic-bezier(.16, 1, .3, 1); }
.format-showcase.show-mug .format-mug-real { width: 250px; height: 210px; left: auto; right: -3%; top: auto; bottom: -1%; opacity: 1; transform: rotate(7deg) scale(1); }
.mug-product-photo { width: 100%; height: 100%; position: absolute; inset: 0; z-index: 1; object-fit: contain; filter: drop-shadow(0 20px 18px rgba(62, 21, 40, .24)); }
.mug-live-print { width: 47%; height: 43%; position: absolute; left: 18.5%; top: 30%; z-index: 2; overflow: hidden; border-radius: 5% 7% 11% 9% / 8% 8% 14% 14%; opacity: .88; mix-blend-mode: multiply; transform: perspective(440px) rotateY(-4deg); mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 91%, transparent 100%); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 91%, transparent 100%); }
.mug-live-print img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) contrast(.96); }
.format-mug-real::after { content: ''; width: 54%; height: 64%; position: absolute; left: 11%; top: 20%; z-index: 3; border-radius: 42% 22% 22% 42%; background: linear-gradient(90deg, rgba(255,255,255,.42), transparent 28%, transparent 76%, rgba(255,255,255,.2)); pointer-events: none; }
.has-format-preview .scene-ring .composition-option[data-deck-position="0"] { opacity: .09; filter: blur(2px) saturate(.7); transform: translate3d(calc(-50% + var(--deck-drag-x)), -50%, 110px) rotateY(0) rotateZ(-1deg) scale(.9); }
.maker-footer { position: relative; z-index: 15; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 12px 0 4px; background: var(--paper-soft); }
.maker-footer > .primary-action { justify-self: end; }
.maker-footer > .text-button { justify-self: start; }
.format-picker { display: none; align-items: center; gap: 9px; justify-self: start; min-width: 0; padding: 6px 7px 6px 12px; border-radius: 15px; background: rgba(255,255,255,.64); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 8px 22px rgba(76,28,48,.08); }
.maker-footer:has(#maker-back[hidden]) .format-picker { display: flex; grid-column: 1; }
.format-picker-label { display: grid; gap: 1px; white-space: nowrap; }
.format-picker-label strong { color: var(--ink); font: 400 15px/1.05 var(--display); }
.format-picker-label small { color: var(--muted); font-size: 9px; font-weight: 800; }
.format-picker-options { display: flex; align-items: center; gap: 3px; padding: 4px; border-radius: 15px; background: rgba(255,255,255,.7); box-shadow: inset 0 1px 0 #fff, 0 8px 22px rgba(76,28,48,.1); }
.format-option { min-width: 104px; min-height: 48px; display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: center; gap: 6px; padding: 5px 8px; border: 0; border-radius: 11px; color: var(--muted); background: transparent; text-align: left; cursor: pointer; transition: color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease; }
.format-option svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.format-option-copy { min-width: 0; display: grid; gap: 1px; }
.format-option-copy strong { font-size: 10px; line-height: 1.1; }
.format-option-copy small { max-width: 92px; color: var(--muted); font-size: 8px; font-weight: 800; line-height: 1.15; white-space: normal; }
.format-option.is-selected .format-option-copy small { color: var(--wine); }
.format-option:hover { color: var(--wine); transform: translateY(-1px); }
.format-option.is-selected { color: var(--wine-deep); background: var(--white); box-shadow: 0 5px 13px rgba(76,28,48,.13); }
.format-option:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.flow-feedback { min-height: 20px; color: #9b234d; font-size: 14px; margin: 0; line-height: 1.5; }
.maker-workspace .flow-feedback { text-align: right; font-size: 12px; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 80px; align-items: start; }
.checkout-portrait { padding: 8px 20px 0 8px; }
.reference-paper { margin: 0; padding: 12px 12px 18px; transform: rotate(-3deg); background: var(--white); box-shadow: var(--photo-shadow); }
.reference-paper img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.reference-paper figcaption { margin: 12px 0 0; text-align: center; font-size: 12px; color: var(--muted); }
.checkout-source-pair { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 0; }
.checkout-source-pair img { width: 74px; height: 88px; object-fit: cover; background: var(--white); padding: 4px 4px 15px; box-shadow: var(--photo-shadow); transform: rotate(-5deg); }
.checkout-source-pair img:nth-of-type(2) { transform: rotate(5deg); }
.checkout-source-pair > span { font: 400 28px/1 var(--display); }
.checkout-combine-row { position: relative; display: grid; justify-items: center; gap: 2px; margin: 4px 0 24px; }
.checkout-combine-arrow { width: 160px; height: 56px; fill: none; stroke: var(--wine); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.checkout-combine-row > span { color: var(--muted); font-size: 13px; line-height: 1.4; text-align: center; }
.checkout-combine-row > .text-button { position: absolute; right: 0; top: 5px; }
.order-spec > span:first-child { display: block; font-size: 12px; font-weight: 800; color: var(--muted); }
.order-spec { display: grid; gap: 5px; padding: 20px 0; }
.order-spec strong { font-size: 17px; }
.order-spec > span:last-child { font-size: 13px; color: var(--muted); }
.checkout-keepsakes { margin: 2px 0 20px; padding: 14px 16px; border-radius: 14px; background: var(--paper-warm); }
.checkout-keepsakes-heading, .checkout-keepsake-row { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; }
.checkout-keepsakes-heading { padding-bottom: 9px; border-bottom: 1px solid #7d20471f; }
.checkout-keepsakes-heading span { font: 400 18px/1.1 var(--display); }
.checkout-keepsakes-heading strong { color: var(--wine); font-size: 11px; }
.checkout-keepsake-row { align-items: center; gap: 12px; padding-top: 9px; font-size: 12px; }
.checkout-keepsake-row span { color: var(--muted); }
.checkout-keepsake-row > strong { flex: 0 0 auto; white-space: nowrap; }
.checkout-keepsake-item { min-width: 0; display: flex; align-items: center; gap: 10px; line-height: 1.4; }
.checkout-keepsake-thumb { width: 52px; height: 52px; flex: 0 0 52px; display: grid; place-items: center; position: relative; }
.checkout-frame-thumb > img { width: 48px; height: 38px; padding: 3px; border: 3px solid #6d3926; background: #fffaf2; object-fit: cover; transform: rotate(-3deg); }
.checkout-mug-thumb { width: 100%; aspect-ratio: 25 / 21; position: relative; }
.checkout-keepsake-thumb .mug-product-photo { filter: none; }
.checkout-keepsake-thumb img { display: block; }
.checkout-keepsakes > small { display: block; margin-top: 9px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.email-field { display: grid; gap: 8px; font-size: 14px; font-weight: 800; margin: 10px 0 20px; }
.email-field input { width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 13px; border: 1px solid #a5778d; background: var(--white); color: var(--ink); font-weight: 600; }
.email-field small { color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.5; }
.checkout-consent { margin: 12px 0 0; font-size: 12px; line-height: 1.6; color: var(--muted); }
.test-total { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; padding: 18px 20px; background: var(--pink-soft); border-radius: 14px; }
.test-total > strong { font-size: 30px; font-variant-numeric: tabular-nums; }
.test-total > div { display: grid; gap: 3px; }
.test-total span { font-size: 12px; color: var(--muted); }
.policy-note { font-size: 12px; color: var(--muted); margin: 12px 0 20px; }
.checkout-details > .primary-action { width: 100%; }
.checkout-details > .flow-feedback { margin-top: 12px; }
.payment-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; padding-top: 34px; align-items: start; }
.payment-intro > p { max-width: 32ch; color: var(--muted); line-height: 1.6; }
.payment-reference { width: 82%; margin: 36px 0 0 12px; padding: 10px 10px 18px; background: var(--white); box-shadow: var(--photo-shadow); transform: rotate(-5deg); }
.payment-reference img { aspect-ratio: 4/3; width: 100%; object-fit: cover; }
.payment-reference figcaption { margin-top: 12px; font-size: 13px; text-align: center; }
.payment-sheet { background: var(--white); padding: 32px; box-shadow: 0 18px 54px #4c1c3014; border-radius: 16px; }
.test-banner { display: flex; align-items: center; gap: 9px; color: var(--wine); background: var(--pink-soft); border-radius: 10px; padding: 12px; font-size: 12px; font-weight: 800; }
.test-banner svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.payment-sheet h2 { font: 400 36px/1.05 var(--display); margin: 26px 0 10px; }
.payment-sheet > p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.receipt-row { display: flex; align-items: start; justify-content: space-between; gap: 20px; font-size: 14px; padding: 16px 0; border-bottom: 1px solid #7d20471f; }
.receipt-row strong { text-align: right; overflow-wrap: anywhere; }
.payment-sheet .primary-action { width: 100%; margin-top: 10px; }
.payment-sheet > .text-button { width: 100%; justify-content: center; }
.payment-sheet .payment-mode-note { padding: 14px 0 4px; font-size: 12px; }
.payment-sheet > .flow-feedback { color: #9b234d; }
.order-topline { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 12px; }
.order-topline > span:first-of-type { margin-left: auto; font-variant-numeric: tabular-nums; }
.test-order-label { color: var(--wine); background: var(--pink-soft); padding: 6px 10px; border-radius: 9px; }
.order-payment-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.order-payment-summary > div { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding: 13px 15px; border: 1px solid #7d20471f; border-radius: 12px; background: rgba(255,255,255,.62); }
.order-payment-summary span { color: var(--muted); font-size: 12px; }
.order-payment-summary strong { max-width: 70%; text-align: right; font-size: 13px; line-height: 1.35; }
.order-loading { padding: 100px 0; }
.order-loading p { color: var(--muted); }
.progress-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: 64px 0 0; align-items: center; }
.progress-copy > p { max-width: 38ch; color: var(--muted); }
.generation-stages { list-style: none; padding: 0; margin: 32px 0; display: grid; gap: 18px; }
.generation-stages li { display: flex; gap: 14px; color: var(--muted); }
.generation-stages li > span { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; border: 1.5px solid #b5889d; position: relative; }
.generation-stages li strong { font-size: 15px; font-weight: 800; }
.generation-stages li small { display: block; font-size: 12px; margin-top: 3px; }
.generation-stages .is-complete { color: var(--ink); }
.generation-stages .is-complete > span { background: var(--wine); border-color: var(--wine); }
.generation-stages .is-complete > span::after { content: ''; position: absolute; width: 7px; height: 4px; left: 5px; top: 5px; border: solid var(--white); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.generation-stages .is-current { color: var(--wine); }
.generation-stages .is-current > span { border: 2px solid var(--wine); border-top-color: var(--pink-soft); animation: waiting-turn 1.2s linear infinite; }
@keyframes waiting-turn { to { transform: rotate(360deg); } }
.quiet-copy { font-size: 12px; color: var(--muted); line-height: 1.6; }
.progress-copy > .text-button { margin-left: 16px; }
.progress-art { height: 460px; position: relative; }
.progress-art figure { position: absolute; margin: 0; padding: 9px 9px 32px; width: 47%; background: var(--white); box-shadow: var(--photo-shadow); }
.progress-art img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.making-person { left: 4%; top: 0; transform: rotate(-10deg); }
.making-pet { right: 1%; top: 25%; transform: rotate(10deg); }
.making-lines { position: absolute; width: 54%; left: 4%; top: 61%; transform: rotate(5deg); }
.making-lines svg { width: 100%; fill: none; stroke: var(--wine); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.making-lines span { display: block; max-width: 20ch; font: 400 22px/1.2 var(--display); }
.failure-content { padding: 90px 0; max-width: 650px; }
.failure-content > p { color: var(--muted); max-width: 48ch; }
.failure-content > .primary-action { margin: 20px 0 10px; }
.failure-content > .text-button { display: flex; }
.ready-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; gap: 76px; padding: 60px 0 0; }
.finished-paper { margin: 0; padding: 12px 12px 25px; background: var(--white); box-shadow: var(--photo-shadow); transform: rotate(-2.5deg); animation: portrait-reveal .75s var(--ease-out) both; }
.finished-paper button { display: block; border: 0; padding: 0; width: 100%; background: transparent; cursor: zoom-in; }
.finished-paper img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.finished-paper figcaption { text-align: center; font: 400 26px/1 var(--display); margin-top: 18px; }
@keyframes portrait-reveal { from { opacity: .3; transform: translateY(22px) rotate(0); filter: blur(5px); } to { opacity: 1; transform: translateY(0) rotate(-2.5deg); filter: blur(0); } }
.ready-copy > p { color: var(--muted); }
.ready-copy > .primary-action, .ready-copy > .secondary-action, .ready-copy > .text-button { display: flex; width: 100%; margin-top: 12px; justify-content: center; }
.ready-copy .test-banner { color: var(--wine); font-size: 12px; }
.result-details { display: grid; gap: 10px; padding: 22px 0; margin: 0 0 8px; }
.result-details > div { display: grid; grid-template-columns: 70px 1fr; gap: 15px; font-size: 14px; }
.result-details dt { color: var(--muted); }
.result-details dd { margin: 0; font-weight: 800; }
.product-interest { margin: 24px 0 8px; padding: 20px; border-radius: 15px; background: var(--pink-soft); }
.product-interest > span { display: block; color: var(--wine); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.product-interest h2 { margin: 8px 0 5px; font: 400 27px/1.1 var(--display); }
.product-interest > p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.product-preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 15px; }
.product-preview-card { min-width: 0; padding: 8px 8px 11px; border: 1px solid #7d20472e; border-radius: 14px; position: relative; overflow: hidden; color: var(--ink); background: rgba(255, 255, 255, .72); text-align: left; transition: transform .25s var(--ease-out), border-color .2s ease, background .2s ease; }
.product-preview-card:hover { transform: translateY(-3px); border-color: #7d204766; background: var(--white); }
.product-preview-card.is-selected { border-color: var(--wine); background: var(--white); box-shadow: 0 9px 24px #4c1c3014; }
.product-preview-card:disabled { cursor: wait; opacity: .65; }
.product-mockup { height: 110px; display: grid; place-items: center; border-radius: 10px; background: var(--paper-warm); }
.frame-shell { width: 82px; height: 88px; padding: 8px; display: block; background: var(--wine-deep); box-shadow: 0 12px 20px #4c1c3026, inset 0 0 0 2px #fff7fa42; transform: rotate(-2deg); }
.frame-shell img { width: 100%; height: 100%; object-fit: cover; background: var(--paper); }
.order-mug-real { width: 132px; height: 110px; position: relative; display: block; transform: rotate(4deg); }
.order-mug-real::after { content: ''; width: 54%; height: 64%; position: absolute; left: 11%; top: 20%; z-index: 3; border-radius: 42% 22% 22% 42%; background: linear-gradient(90deg, rgba(255,255,255,.42), transparent 28%, transparent 76%, rgba(255,255,255,.2)); pointer-events: none; }
.product-preview-copy { display: block; padding: 10px 3px 0; }
.product-preview-copy strong { display: block; font: 400 18px/1.1 var(--display); }
.product-preview-copy .product-price { display: block; margin-top: 4px; color: var(--wine-deep); font-size: 12px; font-weight: 900; line-height: 1.25; font-variant-numeric: tabular-nums; }
.product-preview-copy small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.25; }
.product-check { position: absolute; right: 7px; top: 7px; padding: 5px 7px; border-radius: 8px; color: var(--white); background: var(--wine); font-size: 11px; font-weight: 800; opacity: 0; transform: translateY(-4px); transition: opacity .2s ease, transform .25s var(--ease-out); }
.product-preview-card.is-selected .product-check { opacity: 1; transform: translateY(0); }
.keepsake-next-step { display: grid; justify-items: start; gap: 16px; margin-top: 20px; }
.keepsake-next-step .product-boundary { max-width: 42ch; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.product-interest #interest-feedback { min-width: 0; max-width: 100%; margin: 0; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.product-interest #interest-feedback:not(:empty) { margin-top: 16px; }
.product-interest .keepsake-delivery-note { margin-top: 20px; padding-top: 16px; border-top: 1px solid #7d204722; font-size: 11px; line-height: 1.6; }
.keepsake-delivery-note > span { display: block; }
@media (max-width: 700px) {
  .keepsake-next-step { justify-items: stretch; }
  .keepsake-next-step > .primary-action { width: 100%; }
}
.portrait-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 38px; }
.portrait-history-card { display: grid; padding: 10px 10px 20px; background: var(--white); box-shadow: var(--photo-shadow); transform: rotate(-1deg); }
.portrait-history-card:nth-child(even) { transform: rotate(1deg); }
.portrait-history-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.history-status { justify-self: start; font-size: 12px; color: var(--wine); font-weight: 800; margin: 15px 5px 6px; }
.portrait-history-card > strong { margin: 0 5px; font: 400 25px/1.2 var(--display); }
.portrait-history-card > small { margin: 6px 5px 0; font-size: 12px; color: var(--muted); }
.portraits-empty { display: flex; align-items: center; gap: 70px; padding: 30px 20px; }
.portraits-empty > img { width: 35%; padding: 10px 10px 35px; transform: rotate(-5deg); background: var(--white); box-shadow: var(--photo-shadow); }
.portraits-empty h2 { font: 400 40px/1.1 var(--display); }
.portraits-empty p { color: var(--muted); }
.image-lightbox { width: 100vw; max-width: none; height: 100dvh; max-height: none; padding: 40px; border: 0; background: rgba(255, 247, 250, .95); }
.image-lightbox::backdrop { background: #4c1c3066; backdrop-filter: blur(12px); }
.image-lightbox[open] { display: grid; place-items: center; }
.image-lightbox img { max-height: calc(100dvh - 80px); max-width: 100%; object-fit: contain; }
.image-lightbox .dialog-close { position: absolute; right: 24px; top: 24px; z-index: 2; }
body:has(.image-lightbox[open]) { overflow: hidden; }
@media (max-width: 1000px) {
  .site-header nav > a.content-link { display: inline-flex; }
  .site-header nav:has(.portraits-link:not([hidden])) > a.content-link { display: none; }
  .flow-page { padding-inline: 28px; }
  .checkout-layout { gap: 40px; }
  .payment-layout { gap: 40px; }
  .ready-layout { gap: 40px; }
  .progress-layout { gap: 24px; }
  .progress-art { height: 380px; }
}
@media (max-width: 700px) {
  .site-header { height: 68px; padding-inline: 18px; }
  .site-header nav { gap: 14px; font-size: 12px; }
  .site-header .brand { font-size: 23px; }
  .header-action { min-height: 42px; padding: 8px 12px; font-size: 12px; box-shadow: none; }
  .hero { padding-top: 34px; }
  .hero-start { font-size: 14px; min-height: 48px; margin-top: 10px; }
  .copy-paw-trail { height: 52px; margin-top: 4px; }
  .portrait-desk { height: 535px; margin-top: 12px; }
  .maker-status { bottom: 0; }
  .hero h1 { font-size: 62px; }
  .hero-copy > p { font-size: 16px; margin-top: 18px; }
  .home-invite { padding: 50px 22px 65px; }
  .home-invite h2 { font-size: 39px; }
  .flow-page { padding: 20px 20px 48px; }
  .flow-page h1 { font-size: 49px; }
  .page-heading { margin: 20px 0 30px; }
  .page-heading > p { font-size: 15px; }
  .maker-workspace { height: calc(100dvh - 92px); grid-template-rows: auto minmax(0, 1fr) auto auto auto; padding: 0 18px; gap: 4px; }
  .flow-top { flex-direction: column; gap: 0; }
  .stepper { width: 100%; gap: 0; justify-content: space-between; }
  .flow-top > .stepper { order: -1; min-height: 56px; }
  .stepper button { font-size: 12px; gap: 5px; padding: 7px; }
  .maker-heading { width: 100%; padding: 8px 0; gap: 8px; }
  .maker-heading h1 { font-size: 36px; max-width: 16ch; }
  .maker-heading p { font-size: 13px; max-width: 37ch; margin-top: 7px; }
  .photos-panel { width: 100%; min-width: 0; grid-template-columns: minmax(0, 1fr); grid-auto-rows: max-content; align-items: start; align-content: start; gap: 15px; padding: 8px 0 18px; overflow-x: clip; overflow-y: auto; }
  .photo-upload-section { grid-row: 1; height: auto; min-height: auto; max-height: none; grid-template-rows: auto auto; gap: 22px; }
  .photos-choice-summary { grid-row: 2; grid-template-columns: minmax(128px, 42%) minmax(0, 1fr); gap: 12px; align-items: center; }
  .photos-choice-stage { width: 100%; }
  .photos-choice-meta { display: grid; padding: 0; }
  .photos-choice-meta > strong { font-size: 19px; white-space: normal; }
  .photos-choice-meta > .text-button { grid-column: 1; grid-row: auto; justify-self: start; min-height: 36px; padding-block: 4px; }
  .photo-upload-pair { grid-row: 1; width: 100%; min-width: 0; height: min(35dvh, 310px); gap: 10px; padding-inline: 4px; }
  .upload-paper { width: 40%; flex: 0 1 40%; padding: 7px 7px 10px; }
  .upload-photo { min-height: 60px; }
  .upload-paper > strong { font-size: 27px; }
  .upload-paper > small { font-size: 11px; line-height: 1.4; min-height: 30px; }
  .photo-error { font-size: 11px; }
  .photo-check-note { font-size: 12px; }
  .upload-empty { font-size: 12px; padding: 8px; }
  .upload-symbol { width: 72px; height: 72px; }
  .upload-symbol > svg { width: 48px; height: 48px; }
  .upload-symbol .upload-symbol-add { width: 24px; height: 24px; }
  .photo-plus { font-size: 30px; }
  .photo-guidance { grid-row: 2; position: static; }
  .maker-workspace .effect-panel { grid-template-rows: minmax(0, 1fr) 76px; gap: 4px; margin-top: 0; }
  .maker-workspace .composition-panel { width: calc(100% + 36px); margin-inline: -18px; }
  .maker-workspace .composition-gallery { padding: 0; }
  .maker-workspace .composition-option { width: min(83vw, 370px); height: min(39dvh, calc(100% - 34px)); max-height: 350px; padding: 8px 8px 62px; top: 43%; }
  .maker-workspace .scene-ring .composition-option[data-deck-position="0"] { width: min(94vw, 430px); height: auto; max-height: none; aspect-ratio: 4 / 3; }
  .maker-workspace .scene-ring .composition-option[data-deck-position="0"] .option-copy { right: 14px; bottom: 14px; max-width: 72%; padding: 8px 10px; }
  .option-copy strong { font-size: 20px; }
  .maker-workspace .scene-ring .composition-option[data-deck-position="0"] .option-copy strong { font-size: 17px; }
  .maker-workspace .scene-ring .composition-option[data-deck-position="0"] .option-copy small { font-size: 10px; }
  .maker-workspace .style-panel { width: calc(100% + 36px); margin-inline: -18px; padding: 0; overflow: visible; }
  .maker-workspace .effect-label { display: none; }
  .maker-workspace .style-grid { min-height: 70px; gap: 1px; padding: 6px 7px 5px; }
  .maker-workspace .style-option { width: 52px; height: 58px; flex-basis: 52px; gap: 3px; }
  .maker-workspace .style-option img { width: 40px; height: 40px; flex-basis: 40px; }
  .maker-workspace .style-option span { max-width: 53px; font-size: 9px; }
  .maker-footer { grid-template-columns: auto 1fr; gap: 8px 14px; padding: 10px 0 0; }
  .maker-footer > .text-button { grid-column: 1; grid-row: 1; }
  .maker-footer > * { min-width: 0; }
  .maker-footer > .primary-action { width: 100%; max-width: 100%; grid-column: 2; grid-row: 1; min-height: 48px; padding: 12px 13px; font-size: 14px; text-align: center; white-space: normal; }
  .maker-footer:has(#maker-back[hidden]) > .primary-action { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  .maker-footer:has(#maker-back[hidden]) .format-picker { width: 100%; grid-row: 1; grid-column: 1 / -1; justify-content: space-between; }
  .format-picker { padding: 5px 6px 5px 10px; }
  .format-picker-label strong { font-size: 14px; }
  .format-picker-label small { font-size: 8px; }
  .format-picker-options { padding: 3px; }
  .format-option { min-width: 96px; min-height: 42px; grid-template-columns: 18px minmax(0, 1fr); gap: 5px; padding: 4px 7px; }
  .format-option svg { width: 18px; height: 18px; }
  .format-option-copy strong { font-size: 9px; }
  .format-option-copy small { max-width: 82px; font-size: 7.5px; }
  .format-showcase { width: calc(100vw - 8px); height: min(42dvh, 350px); top: 43%; }
  .frame-outer { width: min(94%, 360px); padding: 13px; }
  .frame-mat { padding: 11px; }
  .format-mug-real { width: 270px; height: 225px; }
  .format-showcase.show-mug .format-mug-real { width: 154px; height: 130px; right: -1%; bottom: 1%; }
  .maker-workspace .flow-feedback { text-align: left; font-size: 11px; }
  .checkout-layout { grid-template-columns: 1fr; gap: 28px; }
  .checkout-portrait { padding: 5px 9px 0; }
  .reference-paper { padding: 8px 8px 14px; }
  .reference-paper figcaption { font-size: 11px; }
  .checkout-source-pair { margin: 0; gap: 12px; }
  .checkout-source-pair img { width: 57px; height: 68px; }
  .checkout-combine-arrow { width: 140px; height: 50px; }
  .checkout-combine-row > .text-button { font-size: 12px; }
  .checkout-details { padding-top: 0; }
  .payment-layout { grid-template-columns: 1fr; padding-top: 24px; gap: 22px; }
  .payment-intro > p { font-size: 15px; max-width: 38ch; }
  .payment-reference { display: none; }
  .payment-sheet { padding: 23px; }
  .payment-sheet h2 { font-size: 32px; margin-top: 24px; }
  .payment-sheet > p { font-size: 13px; }
  .order-topline { gap: 6px 14px; }
  .order-topline > span:first-of-type { font-size: 10px; }
  .test-order-label { font-size: 11px; }
  .order-payment-summary { grid-template-columns: 1fr; margin-top: 14px; }
  .progress-layout { padding-top: 35px; grid-template-columns: 1fr; gap: 24px; }
  .progress-copy h1 { font-size: 48px; }
  .progress-copy > p { font-size: 15px; }
  .generation-stages { margin: 26px 0; gap: 17px; }
  .progress-copy > .text-button { margin-left: 12px; font-size: 12px; }
  .progress-copy > .secondary-action { font-size: 12px; padding-inline: 14px; }
  .progress-art { height: 315px; max-width: 370px; width: 100%; margin-inline: auto; }
  .progress-art figure { width: 40%; }
  .making-lines { top: 59%; }
  .making-lines span { font-size: 19px; }
  .ready-layout { padding-top: 32px; grid-template-columns: 1fr; gap: 38px; }
  .finished-paper { max-width: 420px; margin-inline: 6px; padding: 8px 8px 22px; }
  .finished-paper figcaption { font-size: 24px; margin-top: 15px; }
  .ready-copy h1 br { display: none; }
  .ready-copy h1 { font-size: 45px; }
  .ready-copy > p { font-size: 14px; }
  .ready-copy > .quiet-copy { font-size: 12px; }
  .result-details { padding-top: 12px; }
  .portrait-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; }
  .portrait-history-card { padding: 7px 7px 15px; }
  .portrait-history-card > strong { font-size: 20px; }
  .portrait-history-card > small { font-size: 10px; }
  .history-status { font-size: 10px; margin-top: 10px; }
  .portraits-empty { padding: 20px 4px; flex-direction: column; align-items: flex-start; gap: 25px; }
  .portraits-empty > img { width: 67%; margin-inline: auto; }
  .portraits-empty h2 { font-size: 34px; }
  .image-lightbox { padding: 15px; }
  .image-lightbox img { max-height: calc(100dvh - 30px); }
}

@media (max-width: 460px) {
  .format-picker-label { display: none; }
  .format-picker-options { width: 100%; }
  .format-option { flex: 1 1 0; }
  .photos-choice-summary { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .photos-choice-stage { width: min(74vw, 280px); justify-self: center; }
  .photos-choice-meta { width: 100%; grid-template-columns: minmax(0, 1fr) auto; padding-inline: 4px; }
  .photos-choice-meta > .text-button { grid-column: 2; grid-row: 1 / 4; align-self: center; }
  .photo-upload-pair { gap: 8px; padding-inline: 0; }
  .upload-paper { width: min(38vw, 145px); flex: 0 0 min(38vw, 145px); }
}
@media (prefers-reduced-motion: reduce) {
  .finished-paper { animation: none; }
  .generation-stages .is-current > span { animation: none; border-color: var(--wine); }
}
/* Keep the checkout action alongside the portrait rather than below a page-wide title. */
.checkout-layout { margin-top: 0; }
#checkout-view { padding-top: 20px; }
.checkout-portrait { padding-top: 0; }
.checkout-portrait .page-heading { margin: 0 0 20px; }
.checkout-portrait .page-heading h1 { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; scroll-margin-top: 96px; }
.checkout-portrait .page-heading p { margin-top: 8px; font-size: 14px; }
.checkout-details { padding-top: 0; }
.maker-heading > div { min-width: 0; }
@media (max-width: 700px) {
  #checkout-view { padding-top: 16px; }
  .maker-workspace .composition-option:not([data-deck-position="0"]) { padding-bottom: 8px; }
}

/* Homepage look picker: the product experience starts with choosing the result. */
.hero {
  grid-template-columns: minmax(260px, 30%) minmax(0, 70%);
  gap: clamp(18px, 2.5vw, 44px);
  padding-top: 28px;
  padding-bottom: 36px;
}
.hero-copy { padding-top: clamp(30px, 8vh, 84px); }
.hero-copy > p { max-width: 26ch; }
.hero-look-picker {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(390px, 1.28fr) minmax(260px, .72fr);
  gap: clamp(18px, 2.2vw, 34px);
  align-items: center;
}
.hero-look-stage {
  min-width: 0;
  height: min(68vw, 620px);
  max-height: calc(100svh - 112px);
  min-height: 520px;
  position: relative;
  isolation: isolate;
}
.hero-look-card {
  width: 84%;
  margin: 0;
  padding: 11px 11px 20px;
  position: absolute;
  left: 7%;
  top: 8%;
  z-index: 4;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 34px 74px rgba(76, 28, 48, .2);
  transform: rotate(-2.5deg);
  animation: hero-look-in .72s var(--ease-out) both;
}
.hero-look-card > img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--paper-warm);
  transition: opacity .18s ease, transform .6s var(--ease-out);
}
.hero-look-card figcaption {
  min-height: 67px;
  padding: 15px 5px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.hero-look-card figcaption > span:first-child { display: grid; gap: 2px; }
.hero-look-card strong { font: 400 clamp(23px, 2vw, 31px)/1 var(--display); }
.hero-look-card small { color: var(--muted); font-size: 13px; font-weight: 700; }
.hero-selected-stamp {
  margin-top: 2px;
  padding: 7px 10px;
  color: var(--wine);
  background: var(--pink-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  transform: rotate(3deg);
}
.hero-look-back {
  width: 52%;
  padding: 7px 7px 24px;
  position: absolute;
  display: block;
  background: var(--white);
  box-shadow: 0 22px 46px rgba(76, 28, 48, .13);
  overflow: hidden;
}
.hero-look-back img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-look-back-one { right: -2%; top: 1%; z-index: 2; transform: rotate(8deg); }
.hero-look-back-two { right: -5%; bottom: 7%; z-index: 1; transform: rotate(-8deg); }
.hero-look-arrows {
  position: absolute;
  left: 1%;
  bottom: 8%;
  z-index: 6;
  display: flex;
  gap: 8px;
}
.hero-look-arrows button {
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(125, 32, 71, .28);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--wine);
  background: rgba(255, 253, 253, .94);
  box-shadow: 0 8px 20px rgba(76, 28, 48, .1);
  transition: transform .24s var(--ease-out), background .2s ease;
}
.hero-look-arrows button:hover { background: var(--white); transform: translateY(-3px) rotate(-4deg); }
.hero-look-arrows button + button:hover { transform: translateY(-3px) rotate(4deg); }
.hero-look-arrows svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero-paw-one { left: -2%; top: 2%; width: 62px; height: 62px; transform: rotate(-21deg); }
.hero-paw-two { right: 1%; bottom: 0; width: 76px; height: 76px; transform: rotate(18deg); }
.hero-look-controls { min-width: 0; align-self: center; }
.hero-control-heading {
  margin-bottom: 9px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}
.hero-control-heading > span { color: var(--wine); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hero-control-heading > strong { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.hero-finish-heading { margin-top: 20px; }
.hero-scene-rail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.hero-scene-option {
  min-width: 0;
  min-height: 45px;
  padding: 5px 8px 5px 5px;
  border: 1px solid transparent;
  border-radius: 10px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  color: var(--ink);
  background: transparent;
  text-align: left;
  transition: border-color .2s ease, background .2s ease, transform .22s var(--ease-out);
}
.hero-scene-option img { width: 42px; height: 34px; object-fit: cover; }
.hero-scene-option span { overflow: hidden; font-size: 12px; font-weight: 800; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.hero-scene-option:hover { background: rgba(255, 255, 255, .7); transform: translateX(2px); }
.hero-scene-option.is-selected { border-color: rgba(125, 32, 71, .38); background: var(--white); }
.hero-scene-option.is-selected::after { content: '✓'; justify-self: end; color: var(--wine); font-weight: 900; }
.hero-scene-option.is-selected { grid-template-columns: 42px minmax(0, 1fr) auto; }
.hero-style-rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hero-style-option {
  min-width: 0;
  padding: 4px 4px 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--ink);
  background: transparent;
  text-align: center;
  transition: transform .22s var(--ease-out), border-color .2s ease, background .2s ease;
}
.hero-style-option img { width: 100%; height: 48px; object-fit: cover; }
.hero-style-option span { display: block; margin-top: 6px; overflow: hidden; font-size: 11px; font-weight: 800; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.hero-style-option:hover { transform: translateY(-3px) rotate(-1deg); }
.hero-style-option.is-selected { border-color: var(--wine); background: var(--white); box-shadow: 0 8px 18px rgba(76, 28, 48, .08); }
.hero-use-scene { width: 100%; margin-top: 20px; }
.hero-full-deck { width: 100%; justify-content: center; min-height: 38px; padding-bottom: 3px; font-size: 12px; }
.hero-look-controls .maker-status { position: static; max-width: none; margin-top: 5px; font-size: 12px; line-height: 1.35; text-align: center; }
@keyframes hero-look-in {
  from { opacity: 0; transform: translate(26px, 18px) rotate(1deg); }
  to { opacity: 1; transform: rotate(-2.5deg); }
}

@media (min-width: 701px) {
  .maker-workspace .scene-ring {
    --deck-drag-x: 0px;
    display: block;
    position: relative;
    overflow: visible;
    perspective: 1400px;
    transform-style: preserve-3d;
    touch-action: pan-y;
    cursor: grab;
  }
  .maker-workspace .scene-ring.is-dragging { cursor: grabbing; }
  .maker-workspace .scene-ring::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 2%;
    width: min(78vw, 1080px);
    height: 34%;
    border: 1px solid rgba(125, 32, 71, .13);
    border-top-color: transparent;
    border-radius: 50%;
    transform: translateX(-50%);
    pointer-events: none;
  }
  .maker-workspace .scene-ring .composition-option {
    position: absolute;
    left: 50%;
    top: 48%;
    width: min(42vw, 560px);
    height: min(calc(100% - 16px), 430px);
    margin: 0;
    flex: none;
    opacity: 0;
    filter: blur(2px) saturate(.65);
    pointer-events: none;
    transform-origin: center;
    transition: transform .58s cubic-bezier(.16, 1, .3, 1), opacity .32s ease, filter .32s ease;
    will-change: transform;
  }
  .maker-workspace .scene-ring.is-dragging .composition-option { transition-duration: .12s; }
  .maker-workspace .scene-ring .composition-option[data-deck-position="0"] {
    z-index: 10;
    width: auto;
    height: min(56dvh, 460px);
    aspect-ratio: 4 / 3;
    opacity: 1;
    filter: none;
    pointer-events: auto;
    transform: translate3d(calc(-50% + var(--deck-drag-x)), -50%, 150px) rotateY(0deg) rotateZ(-1deg) scale(.96);
  }
  .maker-workspace .scene-ring .composition-option[data-deck-position="0"] .option-copy { bottom: 84px; }
  .maker-workspace .scene-ring .composition-option[data-deck-position="1"] {
    z-index: 8;
    opacity: .72;
    filter: saturate(.84);
    pointer-events: auto;
    transform: translate3d(calc(-50% + var(--deck-near-offset, clamp(230px, 25vw, 340px)) + var(--deck-drag-x)), -48%, 10px) rotateY(-42deg) rotateZ(2deg) scale(.78);
  }
  .maker-workspace .scene-ring .composition-option[data-deck-position="2"] {
    z-index: 6;
    opacity: .36;
    filter: blur(.5px) saturate(.72);
    pointer-events: auto;
    transform: translate3d(calc(-50% + var(--deck-middle-offset, clamp(400px, 39vw, 560px)) + var(--deck-drag-x)), -44%, -180px) rotateY(-56deg) rotateZ(3deg) scale(.64);
  }
  .maker-workspace .scene-ring .composition-option[data-deck-position="3"] {
    z-index: 4;
    opacity: .13;
    transform: translate3d(calc(-50% + var(--deck-outer-offset, clamp(520px, 50vw, 700px)) + var(--deck-drag-x)), -38%, -300px) rotateY(-64deg) rotateZ(4deg) scale(.54);
  }
  .maker-workspace .scene-ring .composition-option[data-deck-position="9"] {
    z-index: 9;
    opacity: .72;
    filter: saturate(.84);
    pointer-events: auto;
    transform: translate3d(calc(-50% - var(--deck-near-offset, clamp(230px, 25vw, 340px)) + var(--deck-drag-x)), -48%, 10px) rotateY(42deg) rotateZ(-2deg) scale(.78);
  }
  .maker-workspace .scene-ring .composition-option[data-deck-position="8"] {
    z-index: 7;
    opacity: .36;
    filter: blur(.5px) saturate(.72);
    pointer-events: auto;
    transform: translate3d(calc(-50% - var(--deck-middle-offset, clamp(400px, 39vw, 560px)) + var(--deck-drag-x)), -44%, -180px) rotateY(56deg) rotateZ(-3deg) scale(.64);
  }
  .maker-workspace .scene-ring .composition-option[data-deck-position="7"] {
    z-index: 5;
    opacity: .13;
    transform: translate3d(calc(-50% - var(--deck-outer-offset, clamp(520px, 50vw, 700px)) + var(--deck-drag-x)), -38%, -300px) rotateY(64deg) rotateZ(-4deg) scale(.54);
  }
  .maker-workspace .scene-ring .composition-option[data-deck-position="4"],
  .maker-workspace .scene-ring .composition-option[data-deck-position="5"],
  .maker-workspace .scene-ring .composition-option[data-deck-position="6"] {
    z-index: 0;
    opacity: 0;
    transform: translate3d(-50%, -32%, -420px) scale(.46);
  }
  .maker-workspace .scene-ring .composition-option:not([data-deck-position="0"]) .option-copy { opacity: 0; }
}

@media (max-width: 1120px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding-top: 10px; }
  .hero-copy > p { max-width: 36ch; }
  .copy-paw-trail { position: absolute; left: 56%; top: 18%; width: 300px; }
  .hero-look-picker { grid-template-columns: minmax(390px, 1.15fr) minmax(280px, .85fr); }
  .hero-look-stage { height: 540px; min-height: 500px; max-height: none; }
}

@media (max-width: 760px) {
  .hero { gap: 8px; padding: 30px 18px 44px; }
  .hero-copy { padding-top: 0; }
  .hero h1 { font-size: clamp(54px, 15.5vw, 68px); }
  .hero-copy > p { max-width: 31ch; margin-top: 18px; font-size: 16px; }
  .copy-paw-trail { display: none; }
  .hero-look-picker { grid-template-columns: 1fr; gap: 8px; }
  .hero-look-stage { height: min(96vw, 390px); min-height: 330px; }
  .hero-look-card { width: 82%; left: 5%; top: 9%; padding: 7px 7px 12px; transform: rotate(-2deg); }
  .hero-look-card figcaption { min-height: 54px; padding: 10px 3px 0; }
  .hero-look-card strong { font-size: 22px; }
  .hero-look-card small { font-size: 11px; }
  .hero-selected-stamp { padding: 6px 8px; font-size: 11px; }
  .hero-look-back { width: 47%; padding: 5px 5px 17px; }
  .hero-look-back-one { right: -1%; top: 3%; }
  .hero-look-back-two { right: -2%; bottom: 6%; }
  .hero-look-arrows { left: 0; bottom: 4%; }
  .hero-look-arrows button { width: 44px; height: 44px; }
  .hero-paw-one { display: none; }
  .hero-paw-two { width: 54px; height: 54px; right: 0; }
  .hero-control-heading { margin: 13px 0 8px; }
  .hero-finish-heading { margin-top: 18px; }
  .hero-scene-rail, .hero-style-rail {
    width: calc(100% + 36px);
    margin-inline: -18px;
    padding: 3px 18px 10px;
    display: flex;
    gap: 9px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .hero-scene-rail::-webkit-scrollbar, .hero-style-rail::-webkit-scrollbar { display: none; }
  .hero-scene-option { flex: 0 0 142px; scroll-snap-align: start; background: rgba(255, 255, 255, .56); }
  .hero-style-option { flex: 0 0 104px; scroll-snap-align: start; background: rgba(255, 255, 255, .5); }
  .hero-style-option img { height: 58px; }
  .hero-use-scene { margin-top: 16px; min-height: 54px; }
  .hero-look-controls .maker-status { margin-bottom: 0; }
}

/* A product preview temporarily replaces the centre print without moving the deck. */
.maker-workspace .effect-panel.has-format-preview .scene-ring .composition-option[data-deck-position="0"] {
  opacity: .07 !important;
  filter: blur(3px) saturate(.65) !important;
}
.maker-workspace .effect-panel.has-format-preview .scene-ring .composition-option[data-deck-position="0"] .option-copy {
  opacity: 0 !important;
}
.maker-workspace .effect-panel.has-keepsake-preview .scene-ring .composition-option[data-deck-position="0"]::after,
.maker-workspace .effect-panel.has-keepsake-preview .scene-ring .composition-option[data-deck-position="0"] .option-copy {
  opacity: 0 !important;
}

.merchant-credit { height: 24px; margin: 0; padding: 0 20px; display: flex; align-items: center; justify-content: center; background: var(--paper-soft); }
.merchant-credit .merchant-mark { font-size: 11px; line-height: 16px; letter-spacing: .02em; }
.merchant-credit { gap: 20px; }
.merchant-credit nav { display: flex; align-items: center; gap: 14px; }
.merchant-credit nav a { display: inline-flex; align-items: center; min-height: 24px; padding: 0 3px; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.checkout-consent a { color: var(--wine); text-decoration: underline; text-underline-offset: 3px; }

/* Photos scrolls with the document; only navigation and the existing actions stay available. */
.in-photos .maker-workspace { height: auto; min-height: calc(100dvh - 100px); grid-template-rows: auto 1fr auto auto; gap: 16px; padding-top: 16px; overflow: visible; }
.in-photos .flow-top { align-items: center; }
.in-photos .maker-heading { padding-block: 0; }
.in-photos .maker-heading h1 { font-size: 36px; scroll-margin-top: 96px; }
.in-photos .photos-panel { grid-template-columns: minmax(0, 390px) minmax(0, 560px); overflow: visible; }
.in-photos .photo-upload-section { height: clamp(360px, 50dvh, 468px); }
.in-photos .maker-footer { position: sticky; bottom: 0; padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px)); }
.in-photos #maker-feedback:empty { display: none; }
@media (min-width: 701px) and (max-width: 1000px) {
  .in-photos .photos-panel { grid-template-columns: minmax(0, 560px); padding-inline: 0; }
  .in-photos .photo-upload-section { grid-row: 1; }
  .in-photos .photos-choice-summary { grid-row: 2; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
  .in-photos .photos-choice-meta { grid-template-columns: minmax(0, 1fr); }
  .in-photos .photos-choice-meta > .text-button { grid-column: 1; grid-row: auto; justify-self: start; }
}
@media (max-width: 700px) {
  body:is(.in-photos, .in-checkout) .site-header nav > a.content-link { display: none; }
  .in-photos .maker-workspace { min-height: calc(100dvh - 92px); gap: 12px; padding-top: 0; }
  .in-photos .flow-top { align-items: stretch; gap: 8px; }
  .in-photos .maker-heading h1 { font-size: 28px; max-width: none; }
  .in-photos .photos-panel { grid-template-columns: minmax(0, 1fr); }
  .in-photos .photo-upload-section { height: auto; }
  .in-photos .maker-heading h1, .checkout-portrait .page-heading h1 { scroll-margin-top: 84px; }
}

/* Hints have their own row; artwork stays inside the measured preview area. */
.maker-hints { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 14px; min-width: 0; min-height: 22px; }
.maker-hints #maker-instruction { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.maker-hints .photo-check-note { margin: 0; max-width: 100%; }
.maker-workspace .composition-panel { container-type: size; overflow: clip; }
.maker-workspace .composition-gallery { height: 100%; }
.maker-workspace .format-showcase { width: min(60vw, 760px, calc((100cqh - 28px) * 4 / 3)); height: calc(100% - 24px); max-height: 480px; top: 50%; }
.maker-workspace .format-showcase.show-mug .format-mug-real { width: min(250px, 55cqh); height: auto; aspect-ratio: 25 / 21; right: 2%; bottom: 4%; }
.maker-workspace .format-showcase.show-frame.show-mug { --preview-mug-width: min(250px, 55cqh); }
.maker-workspace .format-showcase.show-frame.show-mug .format-mug-real {
  width: var(--preview-mug-width);
  right: calc(var(--preview-mug-width) * -.65);
}
@media (min-width: 701px) {
  .maker-workspace .effect-panel { margin-top: 16px; }
  .maker-workspace .has-format-preview .composition-panel {
    --scene-preview-width: min(56cqw, 880px, calc((100cqh - 28px) * 4 / 3));
    --deck-near-offset: calc(var(--scene-preview-width) * .66);
    --deck-middle-offset: calc(var(--scene-preview-width) * 1.1);
    --deck-outer-offset: calc(var(--scene-preview-width) * 1.42);
  }
  .maker-workspace .has-format-preview .format-showcase {
    width: var(--scene-preview-width);
    height: calc(var(--scene-preview-width) * 3 / 4);
    max-height: none;
  }
  .maker-workspace .has-format-preview .format-showcase.show-frame.show-mug {
    --preview-mug-width: min(250px, calc(var(--scene-preview-width) * .44));
  }
  /* Keep neighbouring scenes smaller than the framed artwork, even on short displays. */
  .maker-workspace .has-format-preview .scene-ring .composition-option:not([data-deck-position="0"]) {
    width: calc(var(--scene-preview-width) * .84);
    height: auto;
    aspect-ratio: 4 / 3;
  }
  .maker-workspace .has-format-preview .scene-ring .composition-option:is([data-deck-position="1"], [data-deck-position="9"]) {
    opacity: .56;
    filter: saturate(.72);
  }
  .maker-workspace .format-showcase .frame-outer {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
  }
  .maker-workspace .format-showcase .frame-mat { min-width: 0; min-height: 0; }
  .maker-workspace .scene-ring .composition-option[data-deck-position="0"] { height: min(56dvh, 460px, calc(86cqh - 24px)); top: 50%; }
}
@media (min-width: 1200px) {
  /* Share the wide footer with the style dock so the portrait gains its own row's height. */
  .in-maker:not(.in-photos) .maker-workspace .flow-top { grid-area: 1 / 1; }
  .in-maker:not(.in-photos) .maker-workspace .effect-panel { display: contents; }
  .in-maker:not(.in-photos) .maker-workspace .composition-panel { grid-area: 2 / 1; margin-top: 16px; }
  .in-maker:not(.in-photos) .maker-workspace .maker-hints { grid-area: 3 / 1; }
  .in-maker:not(.in-photos) .maker-workspace .maker-footer { grid-area: 4 / 1; }
  .in-maker:not(.in-photos) .maker-workspace .style-panel {
    grid-area: 4 / 1;
    place-self: center;
    width: max-content;
    height: 92px;
    transform: translateY(-24px);
  }
  .in-maker:not(.in-photos) .maker-workspace #maker-feedback { grid-area: 5 / 1; }
}
@media (max-width: 700px) {
  .maker-hints #maker-instruction { font-size: 12px; }
  .maker-hints .photo-check-note { font-size: 12px; }
  .maker-workspace .format-showcase { width: min(calc(100vw - 8px), calc((100cqh - 28px) * 4 / 3)); max-height: 350px; top: 50%; }
  .maker-workspace .format-showcase.show-mug .format-mug-real { width: min(154px, 55cqh); }
  .maker-workspace .scene-ring .composition-option[data-deck-position="0"] { width: min(94vw, 430px, calc((100cqh - 28px) * 4 / 3)); height: auto; aspect-ratio: 4 / 3; top: 50%; }
}

.maker-workspace #maker-feedback:empty { display: none; }
@media (max-width: 700px) and (max-height: 740px) {
  .flow-top > .stepper { min-height: 44px; }
  .maker-heading { padding-block: 4px; }
  .maker-heading h1 { font-size: 30px; }
}

/* Horizontal scene selection keeps neighbouring compositions visible on phones. */
.scene-arrow { display: none; }
.maker-workspace .composition-gallery { touch-action: pan-y; }
.maker-workspace .format-showcase {
  transform: translate(calc(-50% + var(--preview-drag-x, 0px)), -50%);
  transition: transform .38s cubic-bezier(.16, 1, .3, 1);
}
.maker-workspace .composition-panel:has(.scene-ring.is-dragging) .format-showcase { transition: none; }
@media (max-width: 700px) {
  .maker-workspace .scene-ring { --deck-drag-x: 0px; }
  .maker-workspace .scene-ring .composition-option[data-deck-position] {
    width: min(76vw, 430px, calc((100cqh - 28px) * 4 / 3));
    height: auto;
    aspect-ratio: 4 / 3;
    top: 50%;
    left: 50%;
    z-index: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    filter: none;
    transform: translate3d(calc(-50% + var(--deck-drag-x)), -50%, 0) scale(.84);
    transition: transform .38s cubic-bezier(.16, 1, .3, 1), opacity .3s ease, filter .3s ease;
  }
  .maker-workspace .scene-ring .composition-option[data-deck-position="0"] {
    z-index: 10;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(calc(-50% + var(--deck-drag-x)), -50%, 0) rotate(-1deg);
  }
  .maker-workspace .scene-ring .composition-option[data-deck-position="1"],
  .maker-workspace .scene-ring .composition-option[data-deck-position="9"] {
    z-index: 8;
    opacity: .88;
    visibility: visible;
    pointer-events: auto;
    filter: saturate(.9);
  }
  .maker-workspace .scene-ring .composition-option[data-deck-position="1"] {
    transform: translate3d(calc(-50% + 54vw + var(--deck-drag-x)), -50%, 0) scale(.84) rotate(2deg);
  }
  .maker-workspace .scene-ring .composition-option[data-deck-position="9"] {
    transform: translate3d(calc(-50% - 54vw + var(--deck-drag-x)), -50%, 0) scale(.84) rotate(-2deg);
  }
  .maker-workspace .scene-ring.is-dragging .composition-option { transition: none; }
  .maker-workspace .format-showcase { width: min(78vw, 430px, calc((100cqh - 28px) * 4 / 3)); }
  .maker-workspace .format-showcase.show-mug .format-mug-real { width: min(118px, 55cqh); right: 4%; }
  .maker-workspace .format-showcase.show-frame.show-mug { --preview-mug-width: min(94px, 44cqh); }
  .maker-workspace .format-showcase.show-frame.show-mug .format-mug-real {
    /* Keep the cup outside the frame while reserving an 8px screen-edge gap. */
    right: max(calc(var(--preview-mug-width) * -.65), calc((100% - 100cqw) / 2 + 8px));
  }
  .maker-workspace .format-showcase.show-frame.show-mug .format-frame { transform: translateX(-10px) rotate(-1deg) scale(1); }
  .scene-arrow {
    width: 44px;
    height: 44px;
    position: absolute;
    top: 50%;
    z-index: 20;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(76, 28, 48, .16);
    border-radius: 50%;
    background: var(--paper-soft);
    color: var(--wine);
    box-shadow: 0 3px 10px rgba(76, 28, 48, .12);
    transform: translateY(-50%);
    cursor: pointer;
  }
  .scene-arrow-prev { left: 4px; }
  .scene-arrow-next { right: 4px; }
  .scene-arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .scene-arrow:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
  .scene-arrow:active { transform: translateY(-50%) scale(.94); }
}
@media (prefers-reduced-motion: reduce) {
  .maker-workspace .format-showcase,
  .maker-workspace .scene-ring .composition-option[data-deck-position] { transition: none; }
}

/* A real checkbox makes the two independent preview choices explicit. */
.format-picker { width: min(100%, 460px); flex-direction: column; align-items: stretch; gap: 6px; padding: 8px; background: transparent; box-shadow: none; }
.format-picker-label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.format-picker-options { align-items: stretch; gap: 8px; padding: 0; background: transparent; box-shadow: none; }
.format-option { flex: 1 1 0; min-width: 120px; min-height: 52px; grid-template-columns: 18px 20px minmax(0, 1fr); gap: 6px; padding: 6px 8px; border: 1px solid #b98b9f; background: var(--white); box-shadow: none; }
.format-checkbox { width: 18px; height: 18px; margin: 0; cursor: pointer; accent-color: var(--wine); }
.format-option-copy strong { font-size: 12px; }
.format-option-copy small { max-width: none; font-size: 10px; }
.format-option[data-format="frame"] { flex-grow: 1.35; }
@media (min-width: 1200px) {
  .format-picker { width: min(460px, calc(50vw - 260px)); }
}
.format-option.is-selected { border-color: var(--wine); background: var(--pink-soft); box-shadow: none; }
.format-option:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.checkout-sheet-handle, .checkout-items-toggle, .consent-mobile { display: none; }
.checkout-sheet-actions > .primary-action { width: 100%; }

@media (max-width: 700px) {
  .format-picker-label { display: none; }
  .format-picker-options { width: 100%; }
  .format-option { min-width: 0; min-height: 52px; grid-template-columns: 16px 16px minmax(0, 1fr); gap: 5px; padding: 6px; }
  .format-checkbox { width: 16px; height: 16px; }
  .format-option svg { width: 16px; height: 16px; }
  .format-option-copy strong { font-size: 11px; }
  .format-option-copy small { font-size: 9px; }
  .in-checkout #checkout-view { padding-bottom: calc(180px + env(safe-area-inset-bottom, 0px)); }
  .checkout-sheet {
    position: fixed;
    z-index: 50;
    left: 0;
    right: 0;
    bottom: var(--checkout-keyboard-inset, 0px);
    height: calc(var(--checkout-sheet-height, 148px) + env(safe-area-inset-bottom, 0px));
    max-height: var(--checkout-viewport-height, 100dvh);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 44px minmax(0, 1fr) auto;
    padding: 0 0 env(safe-area-inset-bottom, 0px);
    border-radius: 20px 20px 0 0;
    background: var(--paper-soft);
    box-shadow: 0 -12px 36px rgba(76, 28, 48, .16);
    transition: height .28s cubic-bezier(.16, 1, .3, 1);
    contain: layout style;
  }
  .checkout-sheet.is-dragging { transition: none; }
  .checkout-sheet-handle {
    grid-row: 1;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    padding: 10px 18px 0;
    border: 0;
    background: transparent;
    color: var(--wine);
    text-align: left;
    font-size: 12px;
    cursor: ns-resize;
    touch-action: none;
    user-select: none;
  }
  .checkout-sheet-grip { position: absolute; top: 7px; left: calc(50% - 18px); width: 36px; height: 4px; border-radius: 2px; background: #b98b9f; }
  #checkout-sheet-stage { margin-left: auto; font-size: 11px; }
  .checkout-sheet-handle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .checkout-sheet[data-detent="full"] .checkout-sheet-handle svg { transform: rotate(180deg); }
  .checkout-sheet-handle:focus-visible { outline: 3px solid var(--focus); outline-offset: -4px; border-radius: 20px 20px 0 0; }
  .checkout-sheet-content { grid-row: 2; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; padding: 0 18px 12px; }
  .checkout-sheet-content .email-field { order: -1; margin: 8px 0 12px; }
  .checkout-sheet-content .email-field input { font-size: 16px; }
  .checkout-sheet-content .order-spec { padding: 8px 0 12px; }
  .checkout-sheet-content .order-spec strong { font-size: 16px; }
  .checkout-sheet-content .checkout-keepsakes { margin-bottom: 12px; flex: 0 0 auto; }
  .checkout-sheet-content .policy-note { margin: 4px 0 8px; }
  .checkout-sheet[data-detent="peek"] .checkout-sheet-content { display: none; }
  .checkout-sheet[data-detent="half"] .checkout-keepsakes,
  .checkout-sheet[data-detent="half"] .policy-note { display: none; }
  .checkout-sheet[data-detent="half"] .checkout-items-toggle { display: block; min-height: 44px; flex: 0 0 auto; padding: 10px 0; border: 0; background: transparent; color: var(--wine); font-weight: 800; text-align: left; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
  .checkout-sheet-actions { grid-row: 3; display: grid; grid-template-columns: minmax(80px, .75fr) minmax(0, 1.75fr); align-items: center; gap: 4px 12px; padding: 0 18px 10px; }
  .checkout-sheet-actions .test-total { display: flex; flex-direction: column; align-items: flex-start; gap: 0; margin: 0; padding: 0; border-radius: 0; background: transparent; }
  .checkout-sheet-actions .test-total > div { display: contents; }
  #checkout-total-label { order: 0; font-size: 11px; }
  #checkout-total-amount { order: 1; font-size: 24px; line-height: 1.2; }
  #checkout-total-note { order: 2; font-size: 10px; line-height: 1.3; }
  .checkout-sheet-actions > .primary-action { min-height: 48px; padding: 10px; gap: 6px; font-size: 14px; line-height: 1.2; white-space: normal; }
  .checkout-sheet-actions > .primary-action svg { width: 18px; flex: 0 0 18px; }
  .checkout-sheet-actions .checkout-consent { grid-column: 1 / -1; margin: 0; font-size: 11px; line-height: 1.35; }
  .consent-desktop { display: none; }
  .consent-mobile { display: inline; }
  .checkout-sheet-actions .flow-feedback { grid-column: 1 / -1; margin: 0; font-size: 12px; max-height: 56px; overflow-y: auto; }
  .checkout-sheet-actions .flow-feedback:empty { display: none; }
  .checkout-sheet-actions > .text-button { grid-column: 1 / -1; justify-self: end; min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .checkout-sheet { transition: none; }
}

/* Only return/recovery states use a page; forward checkout opens its cashier. */
.payment-recovery { max-width: 720px; padding-top: 72px; }
.payment-recovery h1 { margin: 18px 0; font-size: 44px; }
.payment-recovery > p { line-height: 1.6; }
.payment-recovery > .primary-action { width: 100%; margin-top: 22px; }
.payment-recovery > .text-button { margin-right: 24px; }
.payment-reference-number { margin: 0; color: var(--muted); font-size: 12px; font-weight: 800; }
.simulated-cashier { width: min(calc(100vw - 32px), 440px); max-height: calc(100dvh - 32px); padding: 26px; border: 0; border-radius: 20px; background: var(--paper-soft); color: var(--ink); box-shadow: 0 20px 70px rgba(76, 28, 48, .24); overflow-y: auto; overscroll-behavior: contain; }
.simulated-cashier::backdrop { background: rgba(76, 28, 48, .4); backdrop-filter: blur(3px); }
.simulated-cashier h2 { margin: 10px 0; font: 400 34px/1.1 var(--display); }
.simulated-cashier > p:not(.payment-reference-number) { margin: 12px 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.simulated-cashier-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 20px 0; padding: 16px; border-radius: 12px; background: var(--pink-soft); font-size: 14px; }
.simulated-cashier-total strong { font-size: 28px; font-variant-numeric: tabular-nums; }
.simulated-cashier > .primary-action { width: 100%; margin-top: 18px; }
.simulated-cashier-alternatives { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.simulated-cashier #simulated-cashier-feedback:empty { display: none; }
@media (max-width: 700px) {
  .payment-recovery { padding-top: 40px; }
  .payment-recovery h1 { font-size: 36px; }
  .simulated-cashier { padding: 22px; }
}
