
.memory-dialog{width:min(1060px,calc(100vw - 28px));max-height:min(88vh,900px);border:1px solid #d8dfd0;border-radius:24px;background:#fffefa;color:var(--ink);padding:0;box-shadow:0 24px 80px #20331f33}.memory-dialog::backdrop{background:#1c2a1ca8;backdrop-filter:blur(3px)}.memory-wrap{padding:28px}.memory-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:20px}.memory-head h2{font-size:34px;margin:4px 0 7px}.memory-head p{margin:0;color:var(--muted);font-size:12px;line-height:1.6;max-width:720px}.memory-top-button{display:inline-flex;align-items:center;gap:6px;border:1px solid #d7dfce;border-radius:999px;padding:8px 11px;font-size:10px;color:var(--green-dark);background:#fff}.memory-top-button .icon{width:15px;height:15px}.memory-count{display:grid;place-items:center;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#e8efe2;font-size:9px;font-weight:700}.memory-grid{display:grid;grid-template-columns:340px minmax(0,1fr);gap:18px}.memory-card{border:1px solid var(--line);border-radius:18px;padding:17px;background:#fbfaf5;min-width:0}.memory-card h3{font-size:22px;margin:3px 0 10px}.memory-card p{font-size:11px;line-height:1.6;color:var(--muted)}.memory-scope{display:grid;gap:8px;margin:14px 0}.memory-scope label{display:grid;grid-template-columns:auto minmax(0,1fr);gap:9px;align-items:start;padding:10px 11px;border:1px solid #d8e0d2;border-radius:12px;background:#fff;cursor:pointer}.memory-scope input{margin-top:3px}.memory-scope b,.memory-scope small{display:block}.memory-scope b{font-size:11px}.memory-scope small{font-size:9px;color:var(--muted);line-height:1.45;margin-top:2px}.memory-capture-actions{display:flex;gap:8px;flex-wrap:wrap}.memory-capture-actions .button{flex:1;min-width:130px}.memory-status{min-height:1.4em;margin-top:9px;font-size:10px;color:#6b765f}.memory-book-callout{margin-top:14px;padding:13px 14px;border-radius:13px;background:#eef2e8}.memory-book-callout b,.memory-book-callout span{display:block}.memory-book-callout b{font-size:11px;color:var(--green-dark)}.memory-book-callout span{font-size:10px;line-height:1.5;color:var(--muted);margin:3px 0 10px}.memory-gallery-head{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:12px}.memory-gallery-head h3{margin:0}.memory-gallery-head span{font-size:10px;color:var(--muted)}.memory-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.memory-photo{border:1px solid #dbe2d5;border-radius:14px;overflow:hidden;background:#fff;min-width:0}.memory-photo-image{aspect-ratio:4/3;background:#edf0e8;position:relative;overflow:hidden}.memory-photo-image img{width:100%;height:100%;object-fit:cover;display:block}.memory-photo-owner{position:absolute;left:7px;bottom:7px;max-width:calc(100% - 14px);font-size:8px;line-height:1.2;padding:4px 6px;border-radius:999px;background:#fffdf1df;color:#5d6958;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.memory-photo-body{padding:9px}.memory-photo-body b,.memory-photo-body small{display:block}.memory-photo-body b{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.memory-photo-body small{font-size:8px;color:var(--muted);margin-top:3px;line-height:1.4}.memory-photo-actions{display:flex;gap:5px;margin-top:8px}.memory-photo-actions button{flex:1;min-height:32px;border:1px solid #d7dfcf;border-radius:8px;padding:5px 7px;font-size:8px;background:#fafbf7}.memory-photo-actions button.active{background:#e8efe2;color:var(--green-dark);border-color:#bfcdb5}.memory-photo-actions .danger{flex:0 0 32px;color:#91614d}.memory-empty{grid-column:1/-1;padding:30px 20px;border:1px dashed #d8e0d1;border-radius:14px;text-align:center;color:var(--muted);font-size:11px}.memory-prototype{margin-top:14px;padding:10px 12px;border-radius:10px;background:#f5efe6;border:1px solid #e4d5c0;font-size:9px;line-height:1.5;color:#7c705f}.memory-prototype b{color:#8c5c31}.memory-book-dialog{width:min(1080px,calc(100vw - 28px));max-height:min(90vh,940px)}.memory-book-tools{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}.memory-book{background:#f7f4eb;border:1px solid #ddd7c9;border-radius:18px;overflow:hidden}.memory-cover{min-height:290px;display:grid;place-items:center;text-align:center;padding:44px 24px;background:linear-gradient(180deg,#eef1e4,#f8f1df)}.memory-cover .brand-symbol{width:50px;height:62px;color:var(--copper);margin-bottom:15px}.memory-cover h3{font-size:40px;margin:0 0 9px}.memory-cover p{max-width:560px;margin:0 auto;color:#687261;font-size:12px;line-height:1.65}.memory-cover .memory-cover-names{font-family:var(--serif);font-size:20px;color:var(--green-dark);margin-top:17px}.memory-day{padding:24px;border-top:1px solid #ddd7c9}.memory-day h4{font-family:var(--serif);font-size:25px;font-weight:400;margin:0 0 14px}.memory-book-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.memory-book-photo{background:#fff;border-radius:12px;overflow:hidden;border:1px solid #e1ddd2}.memory-book-photo img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block}.memory-book-copy{padding:11px 12px}.memory-book-copy b,.memory-book-copy small{display:block}.memory-book-copy b{font-family:var(--serif);font-size:17px;font-weight:400}.memory-book-copy small{font-size:9px;color:var(--muted);margin-top:4px;line-height:1.45}.memory-book-ending{padding:34px 24px;text-align:center;border-top:1px solid #ddd7c9}.memory-book-ending p{font-family:var(--serif);font-size:22px;margin:0;color:var(--green-dark)}
@media(max-width:820px){.memory-dialog,.memory-book-dialog{width:100%;max-width:100%;height:100dvh;max-height:100dvh;border:0;border-radius:0;margin:0}.memory-wrap{padding:20px 16px max(28px,env(safe-area-inset-bottom))}.memory-head h2{font-size:30px}.memory-grid{grid-template-columns:1fr}.memory-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.memory-book-grid{grid-template-columns:1fr}.memory-cover{min-height:250px}.memory-cover h3{font-size:33px}.memory-day{padding:18px 14px}.memory-top-button{padding:8px}.memory-top-button>span:not(.memory-count){display:none}}
@media(max-width:390px){.memory-gallery{grid-template-columns:1fr 1fr;gap:8px}.memory-photo-actions button{font-size:7px;padding:4px}.memory-capture-actions{display:grid;grid-template-columns:1fr 1fr}.memory-capture-actions .button{min-width:0;padding:10px 8px;font-size:11px}}
@media(max-width:480px){.top-right>.icon-btn[data-action="about"]{display:none}}
@media(max-width:380px){.auth-button span:last-child{display:none}.auth-button{width:34px;padding:8px;justify-content:center}.profile-mini-name{max-width:54px}}
.memory-share-dialog{width:min(1120px,calc(100vw - 28px));max-height:min(90vh,940px)}
.memory-share-layout{display:grid;grid-template-columns:380px minmax(0,1fr);gap:18px}
.memory-share-list{display:grid;gap:8px;margin:10px 0 16px}
.memory-share-photo{display:grid;grid-template-columns:74px minmax(0,1fr) auto;gap:10px;align-items:center;padding:8px;border:1px solid #dbe2d5;border-radius:12px;background:#fff;cursor:pointer}
.memory-share-photo.other{cursor:default}.memory-share-photo.approved{background:#f2f6ee}
.memory-share-thumb{width:74px;aspect-ratio:4/3;border-radius:9px;overflow:hidden;background:#edf0e8}.memory-share-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.memory-share-copy{min-width:0}.memory-share-copy b,.memory-share-copy small,.memory-share-copy span{display:block}.memory-share-copy b{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.memory-share-copy small{font-size:8px;color:var(--muted);margin-top:2px}.memory-share-copy span{font-size:8px;color:var(--green-dark);margin-top:5px}
.memory-share-photo input{width:18px;height:18px}.memory-share-others-title{margin-top:18px}.memory-share-preview{min-height:260px}.memory-share-cover{text-align:center;padding:28px 18px;border-radius:14px;background:linear-gradient(180deg,#eef1e4,#f8f1df);margin-bottom:13px}.memory-share-cover>div{font-size:9px;letter-spacing:.16em}.memory-share-cover h3{font-size:31px;margin:8px 0}.memory-share-cover p{font-size:10px;line-height:1.6;max-width:560px;margin:0 auto;color:var(--muted)}.memory-share-cover strong{display:block;font-family:var(--serif);font-size:16px;font-weight:400;color:var(--green-dark);margin-top:13px}
.memory-share-preview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.memory-share-preview-grid figure{margin:0;border:1px solid #dfe4da;border-radius:11px;overflow:hidden;background:#fff}.memory-share-preview-grid img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block}.memory-share-preview-grid figcaption{padding:7px 8px;font-size:8px;color:var(--muted)}
.memory-share-story{margin-top:13px;padding:13px 14px;border:1px solid #dfe4da;border-radius:12px;background:#fff}.memory-share-story b{font-size:10px}.memory-share-story p{margin:5px 0 0;font-size:10px;line-height:1.6;color:var(--muted)}.memory-share-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:13px}.memory-share-hint{font-size:9px!important;margin:9px 0 0!important}
@media(max-width:820px){.memory-share-dialog{width:100%;max-width:100%;height:100dvh;max-height:100dvh;border:0;border-radius:0;margin:0}.memory-share-layout{grid-template-columns:1fr}.memory-share-preview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:390px){.memory-share-photo{grid-template-columns:62px minmax(0,1fr) auto}.memory-share-thumb{width:62px}.memory-share-preview-grid{grid-template-columns:1fr 1fr}}

.memory-print-dialog{width:min(960px,calc(100vw - 28px));max-height:min(90vh,900px)}
.memory-print-layout{display:grid;grid-template-columns:minmax(300px,.9fr) minmax(320px,1.1fr);gap:18px}
.memory-print-product{display:flex;flex-direction:column;justify-content:space-between}.memory-print-book-art{display:grid;place-items:center;padding:26px 10px 30px}.memory-print-book-cover{width:min(230px,72%);aspect-ratio:210/297;padding:24px 20px;display:flex;flex-direction:column;justify-content:space-between;background:linear-gradient(155deg,#eef1e4,#f5ead6);border:1px solid #d8d1bf;border-radius:3px 14px 14px 3px;box-shadow:12px 12px 24px #31453220,-4px 0 0 #ded7c8;color:var(--green-dark)}.memory-print-book-cover span{font-size:8px;letter-spacing:.13em}.memory-print-book-cover b{font:400 29px/1.05 var(--serif)}.memory-print-book-cover small{font-size:10px}.memory-print-meta{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.memory-print-meta span{padding:9px;border-radius:10px;background:#fff;border:1px solid #e0e5da;font-size:9px;color:var(--muted)}.memory-print-meta b{display:block;font-size:8px;text-transform:uppercase;letter-spacing:.08em;color:var(--green-dark);margin-bottom:3px}.memory-print-form{display:grid;gap:13px}.memory-print-form>label{display:grid;gap:6px}.memory-print-form>label>span{font-size:10px;font-weight:700;color:var(--green-dark)}.memory-print-form select{width:100%;min-height:44px;border:1px solid #d7dfcf;border-radius:10px;background:#fff;padding:9px 11px;font:inherit;color:var(--ink)}.memory-print-note{padding:12px 13px;border-radius:12px;background:#f3f5ef;border:1px solid #dfe5d8}.memory-print-note b{font-size:10px;color:var(--green-dark)}.memory-print-note p{margin:4px 0 0;font-size:9px;line-height:1.55;color:var(--muted)}
@media(max-width:820px){.memory-print-dialog{width:100%;max-width:100%;height:100dvh;max-height:100dvh;border:0;border-radius:0;margin:0}.memory-print-layout{grid-template-columns:1fr}.memory-print-book-art{padding:16px 8px}.memory-print-book-cover{width:min(190px,62%)}.memory-print-meta{grid-template-columns:1fr 1fr}.memory-print-meta span:last-child{grid-column:1/-1}}

.memory-print-quote{display:grid;gap:8px}.memory-print-live-head{display:flex;justify-content:space-between;gap:12px;align-items:end;padding:2px 1px 6px}.memory-print-live-head span{font-size:9px;color:var(--muted)}.memory-print-live-head strong{font:600 16px/1 var(--serif);color:var(--green-dark);white-space:nowrap}.memory-print-shipping-list{display:grid;gap:7px}.memory-print-shipping{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;padding:10px 11px;border:1px solid #dfe5d8;border-radius:11px;background:#fff;cursor:pointer}.memory-print-shipping.selected{border-color:#8ca184;box-shadow:0 0 0 2px #8ca18422;background:#fbfcf8}.memory-print-shipping input{accent-color:var(--green-dark)}.memory-print-shipping span{display:grid;gap:2px}.memory-print-shipping b{font-size:10px;text-transform:capitalize;color:var(--green-dark)}.memory-print-shipping small{font-size:8px;color:var(--muted)}.memory-print-shipping strong{font:600 14px/1 var(--serif);color:var(--green-dark);white-space:nowrap}.memory-print-retail-note{margin:6px 2px 0;font-size:8px;line-height:1.45;color:var(--muted)}.memory-print-quote-loading,.memory-print-quote-error{min-height:56px;display:flex;align-items:center;gap:9px;padding:11px 12px;border-radius:11px;background:#f7f8f4;border:1px solid #e2e6dc;font-size:9px;color:var(--muted)}.memory-print-quote-error{background:#fbf7f1}.memory-print-spinner{width:15px;height:15px;border-radius:50%;border:2px solid #d5ddd0;border-top-color:var(--green-dark);animation:memory-spin .9s linear infinite}@keyframes memory-spin{to{transform:rotate(360deg)}}#memoryPrintPriceValue{font:600 13px/1.2 var(--serif);color:var(--green-dark)}

