[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; }
.site-header nav > .portraits-link { display: inline !important; }
.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 { height: 100dvh; overflow: hidden; }
.maker-workspace { height: calc(100dvh - 76px); width: 100%; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto 22px; gap: 8px; padding: 18px 38px 0; overflow: hidden; background: var(--paper-soft); }
.flow-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.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 { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 0 6px; }
.maker-heading h1 { font-size: clamp(38px, 4.3vw, 58px); }
.maker-heading p { margin-top: 8px; font-size: 15px; }
.mini-photos { display: flex; flex: 0 0 auto; align-items: center; padding: 10px; min-height: 62px; border: 0; background: transparent; }
.mini-photos img { width: 45px; height: 53px; object-fit: cover; padding: 3px 3px 10px; background: var(--white); box-shadow: 0 5px 16px #4c1c3026; transform: rotate(-8deg); }
.mini-photos img + img { margin-left: -4px; transform: rotate(8deg); }
.photos-panel { min-height: 0; display: flex; align-items: center; justify-content: center; gap: 34px; position: relative; padding: 14px 24px 76px; }
.photos-panel:has(#use-demo-photos:not([hidden])) { padding-bottom: 110px; }
.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-empty svg { width: 48px; height: 48px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.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: 3px; 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 { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.6; margin: 0; }
.maker-workspace .composition-panel { min-height: 0; margin-inline: -38px; width: calc(100% + 76px); }
.maker-workspace .composition-gallery { position: relative; padding-block: 20px 32px; }
.maker-workspace .composition-option { height: min(100% - 12px, 440px); flex-basis: min(43vw, 570px); }
.maker-workspace .style-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); max-width: 1340px; margin: auto; padding: 20px 8px; }
.maker-workspace .style-option img { max-height: min(35dvh, 320px); }
.maker-footer { position: relative; z-index: 15; display: grid; grid-template-columns: 1fr 1fr 1fr; 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; }
.choice-selection { display: flex; gap: 10px; align-items: center; justify-content: center; font-size: 13px; }
.choice-selection > span { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.choice-selection > strong { font-weight: 800; }
.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-top: 38px; }
.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-source-pair > button { margin-left: 10px; }
.edit-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid #7d204726; }
.edit-row span, .order-spec > span:first-child { display: block; font-size: 12px; font-weight: 800; color: var(--muted); }
.edit-row strong { display: block; font-size: 19px; margin-top: 4px; }
.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); }
.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; }
.consent-field { display: flex; gap: 10px; align-items: start; font-size: 12px; line-height: 1.6; color: var(--muted); cursor: pointer; }
.consent-field input { flex: 0 0 auto; width: 20px; height: 20px; margin: 0; }
.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-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: center; 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: 1px solid #7d204726; 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 25px/1.15 var(--display); }
.product-interest > p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.product-interest > div { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 15px; }
.product-interest button { min-height: 44px; padding: 9px 11px; border: 1px solid #9b5d79; border-radius: 11px; background: var(--white); color: var(--wine); font: 800 12px/1.2 var(--sans); cursor: pointer; }
.product-interest button:hover, .product-interest button:focus-visible, .product-interest button.is-selected { color: var(--white); background: var(--wine); }
.product-interest button.is-selected::before { content: '✓ '; }
.product-interest button:disabled { cursor: wait; opacity: .65; }
.product-interest #interest-feedback { min-height: 18px; margin-top: 9px; }
.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) {
  .flow-page { padding-inline: 28px; }
  .checkout-layout { gap: 40px; }
  .payment-layout { gap: 40px; }
  .maker-workspace .style-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 650px; gap: 26px; }
  .maker-workspace .style-option img { max-height: 240px; }
  .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 - 68px); grid-template-rows: 56px auto minmax(0, 1fr) auto 30px; padding: 0 18px; gap: 4px; }
  .flow-top > .text-link { display: none; }
  .flow-top { justify-content: center; }
  .stepper { width: 100%; gap: 0; justify-content: space-between; }
  .stepper button { font-size: 12px; gap: 5px; padding: 7px; }
  .maker-heading { 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; }
  .mini-photos { padding: 4px; }
  .mini-photos img { width: 30px; height: 39px; }
  .photos-panel { gap: 15px; padding: 15px 0 76px; }
  .upload-paper { width: 42%; 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-empty svg { width: 40px; height: 40px; }
  .photo-plus { font-size: 30px; }
  .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(43dvh, calc(100% - 75px)); max-height: 380px; padding: 8px 8px 62px; top: 40%; }
  .option-copy strong { font-size: 20px; }
  .maker-workspace .style-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px 8px 30px; gap: 22px; }
  .maker-workspace .style-option img { max-height: none; }
  .maker-workspace .style-panel { padding: 0; margin: 0; }
  .maker-footer { grid-template-columns: auto 1fr; gap: 8px 14px; padding: 10px 0 0; }
  .maker-footer .choice-selection { grid-row: 1; grid-column: 1 / -1; font-size: 12px; justify-content: flex-start; }
  .maker-footer > .text-button { grid-column: 1; grid-row: 2; }
  .maker-footer > .primary-action { grid-column: 2; grid-row: 2; min-height: 48px; font-size: 14px; padding: 12px 18px; }
  .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: 10px; }
  .checkout-source-pair { margin-top: 25px; gap: 12px; }
  .checkout-source-pair img { width: 57px; height: 68px; }
  .checkout-source-pair > button { margin-left: 5px; 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: 10px; }
  .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 (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: 20px; }
.checkout-portrait .page-heading { margin: 0 0 30px; }
.checkout-portrait .page-heading h1 { font-size: 62px; }
.checkout-details { padding-top: 0; }
.maker-heading > div { min-width: 0; }
@media (max-width: 700px) {
  .checkout-portrait .page-heading h1 { font-size: 49px; }
  .maker-workspace .composition-option:not([data-deck-position="0"]) { padding-bottom: 8px; }
  .photos-panel:has(#use-demo-photos:not([hidden])) { padding-bottom: 110px; }
}
