.memly-body{scroll-padding-top:100px}.memly-body :is(h1,h2,[id^="memly"],[id^="lenticular"]){scroll-margin-top:105px}.memly-body .m-header{position:sticky;top:0;z-index:60;background:var(--m-paper)}
.m-menu-open{display:none}.m-mobile-menu{width:min(460px,calc(100% - 24px));max-height:calc(100dvh - 24px);padding:24px;border:1px solid var(--m-line);border-radius:14px;background:var(--m-paper);color:var(--m-ink);overscroll-behavior:contain}.m-mobile-menu::backdrop{background:#18271fc2;backdrop-filter:blur(3px)}.m-mobile-menu-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:14px}.m-mobile-menu-head strong{font:30px/1.15 var(--m-serif)}.m-mobile-menu-head button{width:44px;min-height:44px;border:1px solid var(--m-line);border-radius:50%;background:transparent;color:inherit;flex-shrink:0}.m-mobile-menu nav{display:grid;margin-bottom:24px}.m-mobile-menu nav a{display:flex;align-items:center;justify-content:space-between;min-height:52px;padding:12px 0;border-bottom:1px solid var(--m-line);font-size:15px}.m-mobile-menu nav a:first-child{font-weight:700}.m-menu-settings{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:20px}.m-menu-settings label{display:grid;gap:6px;font-size:12px}.m-menu-settings select{width:100%;min-height:48px;padding:10px;background:#fffdf8;border:1px solid var(--m-line);border-radius:6px;color:var(--m-ink)}
.m-purchase-totals{display:grid;gap:8px;margin:16px 0;color:var(--m-muted);font-size:12px}.m-purchase-totals>div{display:flex;justify-content:space-between;gap:18px;align-items:baseline}.m-purchase-totals dd{margin:0;white-space:nowrap}.m-purchase-totals .m-purchase-total{padding-top:10px;border-top:1px solid var(--m-line);color:var(--m-ink);font-weight:600;font-size:14px}
.m-flowbar{position:fixed;z-index:70;bottom:18px;left:50%;transform:translateX(-50%);width:min(680px,calc(100% - 32px));display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 18px;border:1px solid #cdd4c8;border-radius:12px;background:#fffdf8;box-shadow:0 8px 38px #1b302725}.m-flowbar-copy{display:grid;gap:2px;min-width:0}.m-flowbar-copy strong{font-size:21px;font-weight:650;line-height:1.25}.m-flowbar-copy span{font-size:11px;color:var(--m-muted);line-height:1.4}.m-flowbar .m-button{min-height:48px;min-width:180px;padding:12px 20px;gap:10px;font-size:13px}.memly-body.m-has-flowbar{padding-bottom:110px}.memly-body:has(dialog[open]) .m-flowbar{visibility:hidden}
.m-preview-empty{display:grid;place-items:center;gap:12px;padding:20px;max-width:320px;text-align:center;color:var(--m-muted)}.m-preview-empty svg{width:48px;height:48px}.m-preview-empty strong{font:28px/1.1 var(--m-serif);color:var(--m-ink)}.m-preview-empty p{font-size:12px;line-height:1.6}.m-editor-progress a{display:flex;align-items:center;gap:7px;min-height:44px}.m-studio-details{margin:14px 0;border-top:1px solid var(--m-line);font-size:12px}.m-studio-details summary{display:flex;align-items:center;min-height:44px;cursor:pointer;font-weight:550}.m-studio-details>p{padding-bottom:12px}.m-editor-controls .m-approval,.ml-options .m-approval{scroll-margin-block:130px}
@media(max-width:800px){.memly-body .m-header{width:100%;padding-inline:max(20px,env(safe-area-inset-left));gap:14px;min-height:72px}.m-header-actions{margin-left:auto}.m-header-actions>.m-select-label{display:none}.m-menu-open{display:grid;place-items:center;width:44px;min-height:44px;padding:9px;border:1px solid var(--m-line);border-radius:6px;background:transparent;color:var(--m-ink)}.m-menu-open svg{width:23px;height:23px}.m-header-actions .m-button-small{min-height:44px!important;font-size:11px!important}.memly-body .m-flowbar{bottom:0;width:100%;gap:12px;padding:12px max(16px,env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom));border-radius:12px 12px 0 0;border-bottom:0}.m-flowbar .m-button{min-width:0;max-width:57%;flex-shrink:0;padding-inline:15px}.m-flowbar-copy strong{font-size:19px}.memly-body.m-has-flowbar{padding-bottom:calc(110px + env(safe-area-inset-bottom))}.m-editor[data-flow-stage="photo"] .m-preview-stage{min-height:185px;max-height:240px;aspect-ratio:auto;padding:18px}.m-editor-progress{gap:12px!important;font-size:10px!important}.memly-body .m-product-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.memly-body .m-product-card{position:relative;padding:12px 28px 12px 12px;min-height:92px;align-items:start}.m-product-card-icon{display:none!important}.m-product-card-copy strong{font-size:14px!important}.m-product-card-copy>span{font-size:11px!important;line-height:1.45}.m-product-card-mark{position:absolute;right:9px;top:11px}.memly-body .m-product-choice{margin-bottom:20px}.memly-body :is(.ml-views button,.mg-angle-controls button,.mg-filters button,.mg-sizes button,.m-view-tabs button,.m-preview-actions button,.m-palette){min-height:44px}.ml-canvas-wrap canvas,.mg-stage canvas{touch-action:pan-y!important}.m-flowbar-copy span{font-size:10px}}
@media(prefers-reduced-motion:reduce){.memly-body *{scroll-behavior:auto!important}}

#memlyOrderRefresh{display:inline-flex;align-items:center;min-height:44px;padding:8px 0;border:0;border-bottom:1px solid var(--m-line);background:none;color:var(--m-ink);font:inherit;font-size:12px;cursor:pointer}#memlyOrderRefresh:disabled{opacity:.55;cursor:wait}
button.m-preview-empty{position:absolute;inset:0;width:100%;height:100%;max-width:none;border:0;border-radius:inherit;background:transparent;font:inherit;cursor:pointer;align-content:center}
button.m-preview-empty>strong,button.m-preview-empty>.m-preview-empty-hint{max-width:320px}
.m-preview-empty-hint{font-size:12px;line-height:1.6}
button.m-preview-empty:hover{background:#243c2f08}
button.m-preview-empty:focus-visible{outline:3px solid #849575;outline-offset:-5px}
button.m-preview-empty:disabled{cursor:wait}
.m-preview-loading{position:absolute;inset:0;z-index:4;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:24px;background:#fbfcf5ed;backdrop-filter:blur(3px);text-align:center;color:var(--m-ink);border-radius:inherit}
.m-preview-loading:before{content:"";width:30px;height:30px;flex-shrink:0;border:2px solid #d6ddcd;border-top-color:#2e4327;border-radius:50%;animation:m-loading-spin .85s linear infinite}
.m-preview-loading-copy{display:grid;gap:8px;max-width:300px;font-size:13px;line-height:1.65}
.m-preview-loading strong{font:26px/1.15 var(--m-serif)}
.m-preview-loading p{font-size:12px;line-height:1.65;color:var(--m-muted);max-width:300px}
.m-preview-loading:has(.m-preview-retry:not([hidden])):before{display:none}
.m-preview-retry{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;border:1px solid var(--m-line);border-radius:7px;background:#fffdf8;color:var(--m-ink);font:inherit;font-size:12px;cursor:pointer}
.m-checkout-hint{margin:12px 0;font-size:12px;line-height:1.7;color:var(--m-muted)}
.m-button[data-busy=true]:before,.m-status[data-busy=true]:not(:empty):before{content:"";display:inline-block;vertical-align:middle;flex-shrink:0;width:15px;height:15px;margin-right:8px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:m-loading-spin .85s linear infinite}
.m-button:disabled{cursor:default}.m-button[data-busy=true]{cursor:wait}
.memly-body .m-camera-control{display:inline-flex;align-items:center;min-height:44px;padding:8px 0;border:0;background:transparent;color:var(--m-ink);font:inherit;font-size:12px;text-decoration:underline;text-underline-offset:4px;cursor:pointer}
.m-upload-footer{align-items:center;gap:16px;flex-wrap:wrap}
.m-product-card[aria-current=page]{cursor:default}
.m-flowbar .m-flow-preview{display:inline-flex;min-width:112px;margin-left:auto;justify-content:center;background:#e9efdf;color:#243c2f!important;border:1px solid #6b8060;font-weight:650}
.m-flowbar .m-flow-preview:hover,.m-flowbar .m-flow-preview:active{background:#dce6ce;color:#243c2f!important}
.memly-body :is(button,a,input,select,summary):focus-visible{outline:3px solid #849575;outline-offset:3px}
@keyframes m-loading-spin{to{transform:rotate(360deg)}}
@media(max-width:800px){
 .memly-body .m-flowbar:has([data-lenti-flow-preview]:not([hidden])){display:grid;grid-template-columns:minmax(72px,.85fr) auto minmax(0,1.5fr);gap:8px}
 .memly-body .m-flowbar .m-flow-preview{display:inline-flex;min-width:0;max-width:none;padding:10px;min-height:48px;font-size:12px;white-space:normal;text-align:center;justify-content:center}
 .memly-body .m-flowbar [data-lenti-flow-action]{max-width:none;min-width:0;white-space:normal;text-align:center;justify-content:center;font-size:12px;padding-inline:10px;line-height:1.35}
 .m-flowbar-copy strong{overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
 .m-flowbar-copy span{line-height:1.45}
 .m-editor :is(select,input[type=text],input[type=email]),.ml-options select{font-size:16px}
 .m-preview-loading{padding:18px}.m-preview-loading strong{font-size:23px}
 .memly-body :is(.m-camera-control,.m-reference-link,.m-under-link,.m-preview-retry){min-height:44px}
 .m-approval{min-height:52px;align-items:start;padding-block:12px}
 .m-approval input{min-width:20px;min-height:20px;flex-shrink:0}
 .m-order-steps{flex-wrap:wrap}.m-order-steps li{min-height:32px;display:flex;align-items:center}
 .m-three-dialog,.m-dialog{overscroll-behavior:contain;max-height:calc(100dvh - 24px)}
}
@media(prefers-reduced-motion:reduce){.m-preview-loading:before,.m-button[data-busy=true]:before,.m-status[data-busy=true]:before{animation:none}}
.m-payment-recovery{display:grid;gap:14px;margin-top:22px;padding:20px;border:1px solid var(--m-line);border-radius:10px;background:#fbfcf5;font-size:13px;line-height:1.7}
.m-payment-recovery .m-button{justify-self:start;min-height:48px}
#memlyOrderRefresh[data-busy=true]:after{content:"";display:inline-block;width:12px;height:12px;margin-left:10px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:m-loading-spin .85s linear infinite}
@media(prefers-reduced-motion:reduce){#memlyOrderRefresh[data-busy=true]:after{animation:none}}
.m-creation-progress{display:grid;grid-template-columns:92px minmax(0,1fr);gap:16px;margin:16px 0;padding:18px;border:1px solid #cbd7bf;border-radius:12px;background:linear-gradient(135deg,#f0f4e7,#fbfcf5);color:var(--m-ink);overflow:hidden}
.m-creation-visual{position:relative;aspect-ratio:1;align-self:center;overflow:hidden;border:1px solid #d2dac8;border-radius:9px;background:#fffdf8;isolation:isolate}
.m-creation-visual img{width:100%;height:100%;object-fit:cover;opacity:.32;filter:grayscale(1);animation:m-photo-breathe 5s ease-in-out infinite}
.m-creation-visual svg{position:absolute;inset:0;width:100%;height:100%;stroke:#344b37;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:360;animation:m-art-draw 6s ease-in-out infinite}
.m-creation-eyebrow{font-size:9px;letter-spacing:.09em;font-weight:650;color:#627458;margin-bottom:7px}
.m-creation-copy h3{font:26px/1.15 var(--m-serif);margin:0 0 8px}
.m-creation-copy .m-creation-phase{font-size:12px;line-height:1.65;color:#526448;margin:0}
.m-creation-activity{grid-column:1/-1;height:4px;border-radius:4px;overflow:hidden;background:#dae3d0}
.m-creation-activity span{display:block;width:38%;height:100%;border-radius:4px;background:#607b4d;animation:m-art-activity 2.5s ease-in-out infinite}
.m-creation-steps{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;list-style:none;padding:0;margin:0;counter-reset:creation}
.m-creation-steps li{font-size:11px;line-height:1.5;color:#68775f;display:flex;gap:6px;align-items:center;counter-increment:creation}
.m-creation-steps li:before{content:counter(creation);display:grid;place-items:center;flex-shrink:0;width:21px;height:21px;border:1px solid #bdcbb1;border-radius:50%;font-size:10px}
.m-creation-steps [aria-current=step]{font-weight:650;color:#2e4327}
.m-creation-steps [aria-current=step]:before{background:#344b37;color:#fff;border-color:#344b37;box-shadow:0 0 0 3px #dce6d0}
.m-creation-footer{grid-column:1/-1;display:flex;justify-content:space-between;align-items:start;gap:12px;font-size:11px;line-height:1.6;color:#627458;min-height:36px}
#memlyCreationElapsed{font-variant-numeric:tabular-nums;white-space:nowrap;padding:2px 7px;border:1px solid #d2dac8;border-radius:5px;background:#ffffff8a}
#memlyGenerate[data-busy=true]{opacity:1;background:#344b37;color:#fff!important}
@keyframes m-art-draw{0%{stroke-dashoffset:360;opacity:.2}55%,85%{stroke-dashoffset:0;opacity:1}100%{stroke-dashoffset:-360;opacity:.2}}
@keyframes m-photo-breathe{0%,100%{opacity:.22;transform:scale(1)}50%{opacity:.45;transform:scale(1.05)}}
@keyframes m-art-activity{0%{transform:translateX(-110%)}100%{transform:translateX(370%)}}
@media(max-width:400px){.m-creation-progress{grid-template-columns:76px minmax(0,1fr);padding:14px;gap:12px}.m-creation-copy h3{font-size:23px}.m-creation-steps li{font-size:10px;gap:5px}}
@media(prefers-reduced-motion:reduce){.m-creation-visual img,.m-creation-visual svg,.m-creation-activity span{animation:none}.m-creation-visual svg{stroke-dasharray:none}.m-creation-activity span{width:100%;opacity:.4}}
.m-review-order-open{width:100%;margin:0 0 18px;min-height:48px}


.m-artwork-reveal{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;margin:18px 0;padding:20px;border:1px solid #aac39a;border-radius:12px;background:#eef4e4}.m-artwork-reveal>img{grid-column:1/-1;width:100%;height:190px;object-fit:contain;background:#ebe8df;border-radius:8px}.m-artwork-reveal>span{width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:#344b37;color:white}.m-artwork-reveal strong{font:27px/1.15 var(--m-serif)}.m-artwork-reveal p{font-size:12px;color:var(--m-muted);margin-top:7px;line-height:1.7}.m-reveal-actions{grid-column:1/-1;display:flex;gap:8px;flex-wrap:wrap}.m-reveal-actions button{flex:1;min-height:44px;padding:9px;border:1px solid #a9b99e;border-radius:6px;background:#fffdf8;color:#243c2f;font:inherit;font-size:12px;cursor:pointer}.m-artwork-reveal.is-revealing{animation:m-art-reveal .6s ease-out}.m-art-revealed{animation:m-art-reveal .8s ease-out}
.m-selected-photo-actions{display:flex;gap:8px;margin-left:auto;flex-wrap:wrap}.m-selected-photo-actions button{min-height:44px;padding:8px 10px;border:1px solid #c5d1bc;border-radius:6px;background:#f6f8f0;color:#243c2f;font:inherit;font-size:11px;cursor:pointer}.m-photo-selected{flex-wrap:wrap}.m-photo-selected span{flex:1;min-width:100px}
.m-artwork-compare{position:absolute;inset:0;overflow:hidden;--compare:50%;background:#fafaf7}.m-artwork-compare img{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.m-compare-original{position:absolute;inset:0;clip-path:inset(0 calc(100% - var(--compare)) 0 0);background:#ebe8df}.m-compare-divider{position:absolute;left:var(--compare);top:0;bottom:0;width:2px;background:#fff;box-shadow:0 0 2px #243c2f;display:grid;place-items:center;color:#243c2f;pointer-events:none}.m-compare-divider:after{content:"↔";display:grid;place-items:center;width:34px;height:34px;background:#fff;border-radius:50%;border:1px solid #a2b393;position:absolute;top:50%;transform:translate(-50%,-50%);box-shadow:0 2px 8px #0002}.m-artwork-compare input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:ew-resize;margin:0;touch-action:pan-y}.m-artwork-compare:focus-within{outline:3px solid #849575;outline-offset:3px}.m-compare-label{position:absolute;top:8px;padding:4px 6px;background:#fffdf8e8;color:#243c2f;font-size:10px;pointer-events:none}.m-compare-label-original{left:8px}.m-compare-label-art{right:8px}
.m-review-sheet{width:min(540px,calc(100% - 24px));max-height:92dvh;border:1px solid #c5d1bc;border-radius:16px;padding:0;background:#fbfcf5;color:#243c2f;overflow:hidden}.m-review-sheet[open]{display:flex;flex-direction:column}.m-review-sheet::backdrop{background:#14221cc2;backdrop-filter:blur(4px)}.m-review-sheet header{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 20px;border-bottom:1px solid #d6ddcd;flex-shrink:0}.m-review-sheet header h2{font:28px/1.15 var(--m-serif);margin:6px 0 0}.m-review-sheet header button{width:44px;height:44px;border:1px solid #c5d1bc;border-radius:50%;background:transparent;color:#243c2f;font-size:23px;flex-shrink:0}.m-review-scroll{overflow:auto;overscroll-behavior:contain;padding:18px 20px;min-height:0}.m-review-image{display:block;width:100%;height:230px;max-height:30dvh;object-fit:contain;border-radius:8px;background:#ebe8df}.m-review-choices{margin-top:16px}.m-review-choices>div{display:grid;grid-template-columns:70px minmax(0,1fr) auto;gap:10px;align-items:center;border-bottom:1px solid #d6ddcd;font-size:12px;line-height:1.5;min-height:54px}.m-review-choices dd{margin:0}.m-review-choices button{min-height:44px;border:0;background:none;color:#344b37;text-decoration:underline;padding:8px;font:inherit;cursor:pointer}.m-review-totals{display:grid;gap:10px;margin:18px 0;font-size:13px}.m-review-totals>div{display:flex;justify-content:space-between;gap:14px}.m-review-totals dd{margin:0;white-space:nowrap}.m-review-totals>div:last-child{font-weight:650;padding-top:12px;border-top:1px solid #c5d1bc}.m-review-sheet footer{flex-shrink:0;padding:14px 20px calc(14px + env(safe-area-inset-bottom));border-top:1px solid #c5d1bc;background:#fbfcf5}.m-review-sheet footer .m-button{width:100%;justify-content:center;min-height:50px}.m-review-sheet .m-approval{font-size:12px;line-height:1.7;display:flex;gap:10px;align-items:start;min-height:52px}.m-review-sheet .m-approval input{margin-top:3px;min-width:20px;min-height:20px}
.m-order-toast{position:fixed;z-index:85;left:50%;bottom:calc(115px + env(safe-area-inset-bottom));transform:translateX(-50%);width:max-content;max-width:calc(100% - 32px);padding:12px 18px;border-radius:9px;background:#243c2f;color:#fff;font-size:13px;line-height:1.5;box-shadow:0 5px 20px #10251b30;pointer-events:none}
@keyframes m-art-reveal{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:600px){.m-review-sheet{position:fixed;inset:auto 0 0;width:100%;max-height:94dvh;margin:auto 0 0;border-radius:18px 18px 0 0}.m-review-scroll{padding:14px 18px}.m-review-sheet header{padding:16px 18px}.m-preview-toolbar{flex-wrap:wrap}.m-view-tabs{flex-wrap:wrap}.m-selected-photo-actions{width:100%;margin:0}.m-selected-photo-actions button{flex:1}.m-artwork-reveal{padding:16px}.m-reveal-actions button{font-size:11px}}
@media(prefers-reduced-motion:reduce){.m-artwork-reveal.is-revealing,.m-art-revealed{animation:none}}
@media(max-width:800px){.mg-stage canvas{pointer-events:none;touch-action:pan-y!important}}
