.memory-wizard,.memory-export{max-width:780px;margin:0 auto;padding:12px 0 40px}.memory-step-title{font-family:var(--font-display,Georgia,serif);letter-spacing:-.035em;margin:30px 0;font-size:clamp(30px,4.8vw,48px);font-weight:500;line-height:1.13}.memory-step-title:focus{outline:none}.memory-steps{justify-content:center;gap:clamp(12px,3vw,32px);padding:0;list-style:none;display:flex}.memory-steps li{color:var(--muted);align-items:center;gap:7px;font-size:12px;display:flex}.memory-steps li span{border:1px solid var(--line);border-radius:50%;place-items:center;width:22px;height:22px;font-size:11px;display:grid}.memory-steps li[aria-current]{color:var(--ink);font-weight:700}.memory-steps li[aria-current] span{background:var(--ink);color:var(--canvas)}.memory-step-fields{border:0;min-width:0;margin:0;padding:0}.memory-step-fields>label,.memory-address label{flex-direction:column;gap:8px;font-size:14px;display:flex}.memory-step-fields input{border:1px solid var(--line);background:var(--surface);min-width:0;color:var(--ink);border-radius:12px;padding:13px;font-size:17px}.memory-photo-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;display:grid}.memory-photo-grid button{aspect-ratio:1;background:var(--surface);border:3px solid #0000;border-radius:16px;position:relative;overflow:hidden}.memory-photo-grid button.selected{border-color:var(--ink)}.memory-photo-grid img{object-fit:cover;width:100%;height:100%}.memory-photo-grid button span{background:var(--surface);border-radius:10px;padding:2px 8px;position:absolute;bottom:6px;left:8px}.memory-photo-grid.single{max-width:430px;margin:auto;display:block}.memory-photo-grid.single button{aspect-ratio:4/3;width:100%}.memory-choice-row{flex-wrap:wrap;align-items:center;gap:8px;margin:18px 0;display:flex}.memory-choice-row>span{min-width:54px;color:var(--muted);font-size:13px}.memory-choice-row button{border:1px solid var(--line);background:var(--surface);border-radius:24px;min-height:44px;padding:10px 15px}.memory-choice-row button[aria-pressed=true]{background:var(--ink);color:var(--canvas)}.memory-step-footer{border-top:1px solid var(--line);justify-content:space-between;align-items:center;gap:16px;margin-top:28px;padding-top:20px;display:flex}.memory-writing{grid-template-columns:minmax(0,.65fr) minmax(0,1fr);align-items:start;gap:26px;display:grid}.memory-writing>img{object-fit:cover;border-radius:16px;width:100%;max-height:330px;transform:rotate(-2deg)}.memory-writing textarea{resize:vertical;border:1px solid var(--line);background:var(--surface);width:100%;min-height:190px;color:var(--ink);border-radius:12px;padding:14px}.memory-moment-nav{justify-content:center;align-items:center;gap:16px;margin:16px 0;font-size:13px;display:flex}.memory-moment-nav img{object-fit:cover;border-radius:6px;width:40px;height:40px}.memory-quiet-actions{flex-wrap:wrap;justify-content:center;align-items:center;gap:15px;margin:20px 0;display:flex}.memory-address{background:var(--surface);border:1px solid var(--line);border-radius:20px;max-width:510px;margin:auto;padding:25px}.memory-address label+label{margin-top:20px}.memory-address label span{color:var(--muted);font-size:12px}.memory-address label input{background:0 0;border-width:0 0 1px;border-radius:0}.memory-envelope{text-align:right;color:var(--muted);font-size:35px}.memory-map svg{width:100%;max-height:230px}.memory-journey-heading{justify-content:space-between;align-items:center;font-size:14px;display:flex}.memory-hint,.memory-export-note{color:var(--muted);text-align:center;font-size:13px}.memory-format-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;display:grid}.memory-format-grid button{text-align:left;border:1px solid var(--line);background:var(--surface);border-radius:20px;flex-direction:column;align-items:flex-start;gap:16px;min-height:180px;padding:24px;display:flex;position:relative}.memory-format-grid button.selected{border:2px solid var(--ink);padding:23px}.memory-format-grid button strong{font-size:19px}.memory-format-grid button span{color:var(--muted);font-size:13px;line-height:1.5}.memory-format-check{position:absolute;top:14px;right:14px}.memory-export-note{justify-content:center;align-items:center;gap:8px;margin-top:22px;display:flex}.memory-eyebrow{text-transform:uppercase;letter-spacing:.13em;color:var(--muted);font-size:11px}.memory-rendering{text-align:center;flex-direction:column;justify-content:center;align-items:center;min-height:75dvh;display:flex}.memory-rendering .memory-step-title{max-width:500px}.memory-rendering progress{width:min(320px,80vw);height:5px;accent-color:var(--ink)}.memory-rendering>p{color:var(--muted);margin:16px;font-size:13px}.memory-render-art{max-width:220px;animation:2.5s ease-in-out infinite memory-breathe;position:relative;transform:rotate(-5deg)}.memory-render-art img{aspect-ratio:4/5;object-fit:cover;border:10px solid var(--surface);width:100%;box-shadow:0 15px 45px #18352d20}.memory-render-art span{background:var(--surface);border:1px dashed;padding:10px;font-size:12px;position:absolute;bottom:22px;right:18px}.memory-ready{text-align:center}.memory-saved-stamp{border:1px dashed var(--line);border-radius:6px;align-items:center;gap:7px;padding:8px 12px;font-size:12px;animation:.22s ease-out memory-stamp;display:inline-flex;transform:rotate(-3deg)}.memory-final-media{border-radius:16px;max-width:100%;max-height:520px;margin:0 auto;display:block}.memory-final-actions{flex-wrap:wrap;justify-content:center;gap:12px;margin:24px 0 12px;display:flex}.memory-export .story-reader{padding-top:0}.memory-export .story-reader-nav{justify-content:center}.memory-step-fields button:disabled,.memory-export button:disabled{opacity:.45;cursor:not-allowed}body:has(.memory-rendering) .bt-chrome{display:none}body:has(.memory-rendering) nav[aria-label=Mobile\ navigation]{display:none}body:has(.memory-rendering) .story-toolbar{display:none}@keyframes memory-breathe{50%{transform:rotate(2deg)translateY(-8px)}}@keyframes memory-stamp{0%{opacity:0;transform:rotate(-9deg)scale(1.15)}to{opacity:1;transform:rotate(-3deg)scale(1)}}@media (max-width:600px){.memory-wizard,.memory-export{padding-bottom:24px}.memory-step-title{margin:24px 0}.memory-steps{justify-content:flex-start;gap:12px}.memory-steps li{gap:4px;font-size:10px}.memory-steps li span{width:19px;height:19px}.memory-writing{grid-template-columns:1fr}.memory-writing>img{max-width:230px;max-height:150px;margin:0 auto;transform:none}.memory-format-grid{grid-template-columns:1fr}.memory-format-grid button{grid-template-columns:32px 1fr;gap:7px 18px;min-height:96px;padding:18px;display:grid}.memory-format-grid button.selected{padding:17px}.memory-format-grid button>svg:first-child{grid-row:span 2}.memory-format-grid button span{grid-column:2}.memory-photo-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.memory-step-footer{background:var(--paper,var(--surface));z-index:5;margin-top:20px;padding:14px 0;position:sticky;bottom:80px}.memory-choice-row button{padding:8px 12px}.memory-address{padding:20px}.memory-final-media{max-height:460px}}@media (prefers-reduced-motion:reduce){.memory-render-art,.memory-saved-stamp{animation:none;transform:none}.memory-writing>img{transform:none}}.memory-step-photo .memory-step-title{margin:20px 0}.memory-step-photo .memory-quiet-actions{margin:14px 0}.memory-step-photo .memory-choice-row{margin:12px 0}.memory-ready .memory-step-title{margin:16px 0;font-size:clamp(28px,3.5vw,38px)}.memory-final-actions{margin:16px 0 22px}.memory-final-media{max-height:clamp(230px,100dvh - 360px,460px)}.memory-step-photo .memory-step-footer{margin-top:14px;padding-top:14px}.memory-step-photo .story-photo-details{margin:12px 0}.memory-cover-preview{color:#18352d;background:#f7f3e9;border-left:8px solid #18352d1a;border-radius:3px 12px 12px 3px;max-width:300px;margin:0 auto 24px;padding:24px;transform:rotate(-2deg);box-shadow:0 12px 34px #18352d18}.memory-cover-preview.night{color:#f7f3e9;background:#18352d}.memory-cover-preview h2{overflow-wrap:anywhere;margin-bottom:16px;font-family:Georgia,serif;font-size:27px;line-height:1.15}.memory-cover-preview img{object-fit:cover;width:100%;height:175px}.memory-cover-preview span{margin-top:16px;font-size:10px;display:block}.memory-more-formats{color:var(--muted);margin-top:16px;font-size:13px}.memory-more-formats summary{cursor:pointer;padding:10px 0}@media (prefers-reduced-motion:reduce){.memory-cover-preview{transform:none}}@media (max-width:600px){.memory-step-footer{bottom:calc(7rem + env(safe-area-inset-bottom,0px))}.memory-cover-preview{max-width:245px;padding:18px}.memory-cover-preview img{height:145px}}.memory-photo-grid.single{max-width:250px}.memory-lettering{color:#63497e;touch-action:pan-y;background:#eee5f6;border-radius:24px;justify-content:center;align-items:center;gap:20px;margin-top:12px;padding:12px 16px;display:flex}.memory-lettering>button{background:#ffffff9c;border-radius:50%;place-items:center;width:44px;height:44px;display:grid}.memory-lettering>div{text-align:center;min-width:120px}.memory-lettering small{letter-spacing:1.5px;font-size:9px;display:block}.memory-lettering strong{margin-top:4px;font-size:25px;font-weight:500;line-height:1.3;display:block}.memory-lettering-dots{justify-content:center;display:flex}.memory-lettering-dots>button{place-items:center;width:32px;height:28px;display:grid}.memory-lettering-dots span{background:#63497e55;border-radius:50%;width:6px;height:6px}.memory-lettering-dots button[aria-pressed=true] span{background:#63497e;border-radius:4px;width:18px}.memory-writing-help{border:1px solid var(--line);border-radius:20px;align-items:center;gap:8px;min-height:48px;margin-top:16px;padding:10px 14px;font-size:14px;font-weight:650;display:flex}.memory-writing-help>svg:last-child{margin-left:auto}.memory-writing-dialog-heading{align-items:center;gap:12px;margin-bottom:22px;display:flex}.memory-writing-spark{color:#846019;background:#ffedbd;border-radius:18px;flex-shrink:0;place-items:center;width:52px;height:52px;display:grid}.memory-writing-dialog-heading h2{font-size:25px;font-weight:800;line-height:1.2}.memory-writing-dialog-heading p{color:var(--muted);margin-top:5px;font-size:13px}.memory-writing-dialog-heading>button{place-items:center;min-width:44px;min-height:44px;margin-left:auto;display:grid}.memory-writing-dialog .story-caption-label{flex-direction:column;gap:8px;font-size:14px;font-weight:650;display:flex}.memory-writing-dialog textarea{border:1px solid var(--line);background:var(--surface);border-radius:18px;width:100%;padding:14px;font-size:16px;font-weight:400;line-height:1.5}.memory-writing-dialog .story-voices{gap:8px;margin:14px 0}.memory-writing-dialog .story-voices button{border:1px solid var(--line);border-radius:22px;min-height:44px;padding:9px 14px;font-size:13px}.memory-writing-dialog .story-voices button[aria-pressed=true]{background:var(--forest);color:#fff}.memory-writing-dialog .story-footnote{color:var(--muted);margin:10px 0;font-size:12px;line-height:1.6;display:block}.memory-writing-dialog .bt-secondary,.memory-writing-dialog .bt-primary{border-radius:24px}.memory-writing-dialog .story-suggestion{background:#f4eadb;border-radius:20px;margin-top:18px;padding:18px}.memory-writing-dialog .story-suggestion>p{margin:12px 0;font-size:17px;line-height:1.65}.memory-writing-error{color:var(--danger);background:var(--danger-bg,#ffede7);border-radius:16px;margin-top:14px;padding:14px;font-size:14px}.memory-step-footer>.bt-primary{border-radius:28px;min-height:52px}.memory-steps li[aria-current=step] span{color:#60427a;background:#e9d8f6}.memory-photo-tile{min-width:0}.memory-photo-tile>button:first-child{aspect-ratio:1;border:3px solid #0000;border-radius:18px;width:100%;padding:0;display:block;position:relative;overflow:hidden}.memory-photo-tile>button.selected{border-color:var(--accent,#087f70)}.memory-photo-tile img{object-fit:cover;width:100%;height:100%}.memory-photo-tile span{background:#fff;border-radius:20px;padding:3px 8px;position:absolute;bottom:8px;left:8px}.memory-photo-tile .memory-photo-remove{color:#b63333;background:0 0;border:0;justify-content:center;align-items:center;gap:6px;width:100%;min-height:44px;font-size:14px;display:flex}.memory-photo-grid .memory-add-photo,.memory-add-photo{aspect-ratio:1;background:var(--lilac,#eee4fa);width:100%;min-width:44px;max-width:180px;min-height:44px;color:var(--ink);cursor:pointer;border:0;border-radius:18px;align-self:start;place-items:center;display:grid}.memory-add-photo:disabled{opacity:.4;cursor:default}.memory-photo-grid .memory-photo-remove{aspect-ratio:auto}.memory-ready{flex-direction:column;min-height:calc(100dvh - 150px);padding-bottom:0;display:flex}.memory-export-dock{z-index:5;background:var(--canvas,#f7fafb);border-top:1px solid var(--line);padding:12px 0 max(12px,env(safe-area-inset-bottom));max-height:45dvh;margin-top:auto;position:sticky;bottom:0;overflow-y:auto}.memory-export-dock .memory-final-actions{flex-wrap:wrap;gap:10px;margin:0;display:flex}.memory-export-dock .memory-final-actions>button{flex:1;min-height:48px}.memory-export-dock .memory-quiet-actions{margin:8px 0 0}.memory-cover-interstitial{background:var(--canvas,#f7fafb);text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:20px;width:100vw;height:100dvh;padding:24px;display:flex;overflow:auto}.memory-cover-interstitial h2{font-size:32px}.memory-cover-interstitial progress{max-width:280px}.memory-cover-interstitial .memory-render-art{flex-shrink:0}@media (prefers-reduced-motion:reduce){.memory-cover-interstitial *{transition:none!important;animation:none!important}}
