.premium-intro{padding:70px 0 40px;max-width:800px}.premium-intro h1{font-size:clamp(42px,6vw,76px);line-height:1.08}.premium-gallery{padding:40px 0}.premium-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:26px;margin:28px 0 60px}.premium-card{background:#fff;border:1px solid #e9e0d4;border-radius:16px;overflow:hidden;box-shadow:0 10px 24px #48352909}.premium-card>a{display:block;background:#eee6d9;padding:16px;height:310px}.premium-card img{height:100%;width:100%;object-fit:contain;filter:drop-shadow(0 7px 5px #30251922)}.premium-card>div{padding:18px}.premium-card h3{font-size:21px;min-height:50px;margin:8px 0}.premium-card .eyebrow{font-size:10px;min-height:24px}.premium-card .button{width:100%;margin-top:15px;font-size:12px;padding:12px 7px}.premium-gallery h2,.premium-home h2{font-size:clamp(34px,5vw,58px)}.premium-home{padding:70px max(24px,calc((100% - 1150px)/2));background:#f3eee4}.premium-home .premium-grid{margin-bottom:30px}.premium-filters{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.premium-filters button,.premium-steps button,.premium-side button{border:1px solid #d9cfc3;border-radius:30px;padding:11px 16px;background:#fffaf3;color:#493942;cursor:pointer}.premium-filters button[aria-pressed=true],.premium-steps button[aria-pressed=true],.premium-side button[aria-pressed=true]{background:#6f4054;color:white;border-color:#6f4054}.premium-search{max-width:450px;display:block}.premium-studio{padding:40px 0;border-top:1px solid #e8ddd0}.premium-studio h2{font-size:48px}.premium-steps{display:flex;gap:10px;flex-wrap:wrap;margin:25px 0}.premium-workspace{display:grid;grid-template-columns:420px minmax(0,1fr);gap:50px}.premium-controls{background:#fff;border-radius:18px;padding:25px;border:1px solid #e4dbcf}.premium-controls label{display:block;font-size:14px;margin:15px 0}.premium-controls input:not([type=range]):not([type=color]),.premium-controls select,.premium-controls textarea,.premium-search{width:100%;border:1px solid #cfc1b2;border-radius:7px;padding:12px;margin-top:7px;background:#fffdf9;color:#3c3036;font:inherit;box-sizing:border-box}.premium-controls input[type=range]{width:100%;margin-top:10px;accent-color:#6f4054}.premium-controls input[type=color]{display:block;width:80px;height:40px;margin-top:8px}.premium-controls textarea{resize:vertical}.premium-controls .button{margin:7px 0}.premium-photo{padding:13px;margin:12px 0;border:1px solid #e3d7c8;border-radius:8px}.premium-photo summary,.premium-type summary{cursor:pointer;font-weight:600}.premium-photo img{height:100px;max-width:100%;object-fit:contain}.premium-type{padding-top:18px;border-top:1px solid #e4d8cc;margin-top:20px}.premium-status{padding:12px;background:#f5efe5;font-size:13px;border-radius:8px}.premium-preview{position:sticky;top:30px;align-self:start;display:flex;flex-direction:column;align-items:center}.premium-side{display:flex;gap:10px;margin-bottom:20px}.premium-envelope{position:relative;width:100%;max-width:470px;background:#e9dfcf;padding:28px;border-radius:12px;perspective:1200px;box-shadow:0 14px 40px #49352b19}.premium-live{width:100%;height:auto;max-height:650px;object-fit:contain;display:block;transform-origin:left center;transition:transform .75s ease,opacity .4s;filter:drop-shadow(0 7px 8px #2b1a191f)}.premium-envelope-flap{position:absolute;inset:0 0 auto;height:45%;background:#d9c9b5;clip-path:polygon(0 0,100% 0,50% 100%);transform-origin:top;opacity:0;z-index:2;transition:transform .7s,opacity .2s}.is-opening .premium-envelope-flap{opacity:1;transform:rotateX(150deg)}.is-opening .premium-live{transform:rotateY(-75deg);opacity:.15}.premium-card[hidden],[data-panel][hidden]{display:none!important}@media(max-width:1000px){.premium-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.premium-workspace{grid-template-columns:360px minmax(0,1fr);gap:24px}}@media(max-width:760px){.premium-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.premium-card>a{height:230px;padding:10px}.premium-card>div{padding:12px}.premium-card h3{font-size:17px;min-height:42px}.premium-workspace{display:flex;flex-direction:column}.premium-preview{position:static;order:-1}.premium-envelope{max-width:330px;padding:15px}.premium-live{max-height:420px}.premium-controls{padding:18px}.premium-steps{gap:6px}.premium-steps button{font-size:12px;padding:10px}.premium-intro{padding-top:35px}.premium-home{padding:40px 20px}.premium-studio h2{font-size:36px}}@media(prefers-reduced-motion:reduce){.premium-live,.premium-envelope-flap{transition:none}}

.premium-workspace{grid-template-columns:330px minmax(0,1fr);gap:28px}.premium-envelope.spread{max-width:900px;padding:12px;background:#ded3c2}.premium-envelope.spread .premium-live{max-height:none;filter:drop-shadow(0 10px 10px #392d2930)}.premium-envelope-address{display:none;min-height:290px;align-items:center;justify-content:center;flex-direction:column;gap:18px;text-align:center;padding:30px;background:linear-gradient(135deg,#f7efe1,#e2d3be);border:1px solid #cebaa0}.premium-envelope-address small{letter-spacing:4px;font-size:11px;color:#8c7258}.premium-envelope-address strong{font-family:Georgia,serif;font-size:34px;color:#6f4054}.premium-envelope-address span{font-size:16px}.premium-envelope.sealed .premium-live{visibility:hidden;position:absolute}.premium-envelope.sealed .premium-envelope-address{display:flex}.premium-envelope.sealed .premium-envelope-flap{opacity:1;height:33%}.premium-envelope.sealed.is-opening .premium-envelope-flap{transform:rotateX(150deg)}.premium-add-photo{width:100%}.premium-photo input[type=file]{font-size:12px}.premium-side{flex-wrap:wrap;justify-content:center}.premium-side button{font-size:12px}.premium-steps button{font-size:13px}.premium-envelope{box-sizing:border-box}.premium-controls{min-width:0}.premium-undo{font-size:12px}
@media(max-width:760px){.premium-workspace{display:flex}.premium-envelope.spread{max-width:100%;overflow:hidden}.premium-envelope.spread.page-left .premium-live,.premium-envelope.spread.page-right .premium-live{width:200%;max-width:none}.premium-envelope.spread.page-right .premium-live{margin-left:-100%}.premium-side{gap:5px}.premium-envelope-address{min-height:230px}.premium-envelope.spread .premium-live{max-height:none}.premium-steps{position:sticky;top:0;z-index:5;background:#fffaf3;padding:8px 0}.premium-steps button{padding:9px 11px}.premium-envelope:not(.spread){max-width:330px}}
/* The four-step gift studio. Artwork assets and existing renderers are retained. */
.premium-intro{padding:28px 0 16px;max-width:none}.premium-intro h1{font-size:clamp(34px,4vw,52px);margin:8px 0}.premium-intro p{margin:8px 0}.premium-studio{padding:4px 0 30px;border:0}.premium-steps{margin:12px 0 22px;display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.premium-steps button{font-size:14px;padding:13px 10px}.premium-workspace{grid-template-columns:minmax(0,1fr) 320px;gap:28px;align-items:start}.premium-preview{position:sticky;top:24px;grid-column:1;grid-row:1;background:radial-gradient(ellipse,#eee5d6,#f8f4ec 70%);padding:24px 18px;border-radius:18px;min-height:480px;justify-content:center;box-sizing:border-box}.premium-preview-caption{margin:12px 0 0;text-align:center}.premium-envelope{max-width:480px;border-radius:7px;padding:16px}.premium-live{max-height:580px}.premium-envelope.spread{max-width:100%;padding:8px}.premium-envelope.spread .premium-live{max-height:600px;object-fit:contain}.premium-controls{grid-column:2;grid-row:1;padding:20px;max-height:670px;overflow:auto;background:#fffdf8;border-radius:14px}.premium-controls h2{font:24px Georgia,serif;margin:0 0 16px;color:#493942}.premium-controls label{margin:13px 0;font-size:13px}.premium-controls details{border:1px solid #e5d9ca;border-radius:8px;padding:12px;margin:12px 0}.premium-controls details details{border:0;padding:0}.premium-controls summary{cursor:pointer;font-size:13px;font-weight:600;line-height:1.5}.premium-controls .text-button{color:#7f4356;font-weight:600;font-size:13px;display:inline-block;margin-bottom:8px}.premium-controls textarea{line-height:1.65}.premium-controls .premium-type{padding:12px}.premium-style-pair{display:grid;grid-template-columns:1fr 65px;gap:12px;align-items:center}.premium-photo{padding:10px!important}.premium-photo summary{font-size:12px}.premium-photo img{width:100%;height:85px;border-radius:4px;object-fit:cover}.premium-photo input[type=file]{font-size:11px!important;padding:8px!important}.premium-photo button{background:#fffaf3;border:1px solid #d7c6b4;border-radius:5px;padding:8px;color:#6f4054;font-size:12px;cursor:pointer}.premium-controls .premium-add-photo{margin:0;width:100%}.premium-type input[type=range]{min-height:30px}.premium-status{margin:12px 0 0;font-size:12px;line-height:1.45}.premium-page-switch{display:none}.premium-actions{display:flex;align-items:center;gap:14px;justify-content:flex-end;padding:18px 0}.premium-actions .premium-continue{margin-left:auto}.premium-actions .text-button{font-size:13px;color:#7d4558;padding:10px;cursor:pointer}.premium-actions .text-button:disabled{opacity:.4}.premium-browse,.gift-browse{margin:20px 0 40px;padding:20px;border:1px solid #dfd0be;border-radius:12px}.premium-browse>summary,.gift-browse>summary{font:21px Georgia,serif;cursor:pointer;color:#704154}.premium-buy{width:100%;font-size:14px;margin-top:20px!important}.premium-open{width:100%;font-size:14px}.gift-choice{padding:28px 0}.gift-choice h1{font:clamp(34px,4.5vw,54px)/1.13 Georgia,serif;max-width:750px;margin:12px 0}.gift-choices{display:grid;grid-template-columns:1.15fr 1fr 1fr;gap:22px;margin:28px 0}.gift-choice-card{background:#fff;border:1px solid #e3d8c7;border-radius:16px;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 7px 20px #4d32250a}.gift-first{border:2px solid #8e4e61}.gift-choice-card>a img{width:100%;height:230px;object-fit:cover}.gift-choice-card>div{padding:22px;display:flex;flex-direction:column;flex:1}.gift-choice-card h2{font:25px Georgia,serif;margin:4px 0 12px}.gift-choice-card strong{font-size:24px;color:#783c49}.gift-choice-card p{font-size:14px;line-height:1.7}.gift-choice-card .button{margin-top:auto;font-size:13px;width:100%}.gift-choice-card small{display:block;text-align:center;margin:12px 0 0;font-size:11px}.gift-poem-proof{background:#f2ebde;border-radius:12px;border:1px solid #ddccb7;padding:18px 22px;max-width:680px;margin-top:24px}.gift-poem-proof summary{font-size:13px;color:#783c49;cursor:pointer;font-weight:600}.gift-poem-proof pre{font:16px/1.8 Georgia,serif;white-space:pre-wrap;max-height:160px;overflow:auto;margin:14px 0}.gift-poem-proof p{font-size:11px;margin:8px 0 0}.poem-extra{margin-top:22px;border-top:1px solid #e4d6c5;padding-top:16px}.poem-extra summary{cursor:pointer;font-size:13px;color:#783c49}#copy-poem{display:block;margin:14px auto 0;color:#783c49}.premium-controls [hidden],.premium-page-switch[hidden]{display:none!important}
@media(max-width:1000px) and (min-width:761px){.premium-workspace{grid-template-columns:minmax(0,1fr) 290px;gap:16px}.premium-controls{padding:16px}}
@media(max-width:760px){.premium-intro{padding:20px 0 8px}.premium-intro h1{font-size:35px}.premium-intro>p{font-size:13px;line-height:1.6}.premium-steps{grid-template-columns:repeat(4,1fr);position:sticky;top:0;padding:8px 0;margin:4px 0 14px;gap:4px;z-index:5}.premium-steps button{border-radius:10px;font-size:11px;padding:10px 4px;line-height:1.4}.premium-workspace{display:flex;flex-direction:column;gap:14px}.premium-preview{width:100%;min-height:0;padding:14px;order:0;position:static}.premium-envelope{max-width:245px;padding:8px}.premium-live{max-height:330px}.premium-envelope.spread{max-width:100%;overflow:hidden;padding:6px}.premium-envelope.spread .premium-live{max-height:none}.premium-envelope.spread.page-left .premium-live,.premium-envelope.spread.page-right .premium-live{width:200%;max-width:none;height:auto}.premium-envelope.spread.page-right .premium-live{margin-left:-100%}.premium-preview-caption{font-size:11px!important}.premium-controls{order:1;max-height:none;width:100%;box-sizing:border-box;padding:18px}.premium-page-switch{display:flex;gap:8px;margin-bottom:16px}.premium-page-switch button{flex:1;border:1px solid #d7c6b3;background:#fffaf3;border-radius:8px;padding:12px 7px;color:#6f4054;font-size:13px}.premium-page-switch button[aria-pressed=true]{background:#7c4559;color:#fff}.premium-studio[data-step=inside][data-page=right] [data-panel=left]{display:none!important}.premium-studio[data-step=inside][data-page=left] [data-panel=inside]{display:none!important}.premium-actions{position:sticky;bottom:0;background:#fffaf3eF;box-shadow:0 -3px 14px #38201612;z-index:4;margin:0 -12px;padding:12px;gap:3px}.premium-actions .premium-continue{font-size:12px;padding:12px 10px}.premium-actions .text-button{font-size:11px;padding:8px 5px}.premium-controls textarea{font-size:16px!important}.premium-controls input,.premium-controls select{font-size:16px!important}.premium-browse,.gift-browse{padding:16px}.gift-choices{grid-template-columns:1fr;gap:16px}.gift-choice-card{display:grid;grid-template-columns:115px minmax(0,1fr)}.gift-choice-card>a img{height:100%;min-height:260px}.gift-choice-card>div{padding:16px}.gift-choice-card h2{font-size:22px}.gift-choice-card .button{font-size:12px;padding:12px 10px}.gift-choice-card p{font-size:13px}.gift-poem-proof{padding:16px}.gift-poem-proof pre{max-height:110px;font-size:14px}.gift-choice h1{font-size:36px}.p3-editor textarea{font-size:16px}}

/* Readable fixed-proportion inside pages; editor-only layout overrides. */
.p2-main:has(.premium-studio){max-width:1480px;padding:24px 28px}.premium-workspace{grid-template-columns:minmax(0,1fr) 310px;gap:22px}.premium-preview{padding:16px 12px;min-height:0;position:sticky;top:18px}.premium-envelope.spread .premium-live{max-height:none;width:100%;height:auto}.premium-controls{max-height:none;overflow:visible;padding:18px}.premium-studio[data-step=inside] .premium-page-switch{display:flex;gap:6px}.premium-page-switch button{flex:1;padding:11px;border:1px solid #d8c7b7;border-radius:8px;background:#fffaf3;color:#74384a;cursor:pointer}.premium-page-switch button[aria-pressed=true]{background:#74384a;color:white}.premium-studio[data-step=inside][data-page=left] [data-panel=inside],.premium-studio[data-step=inside][data-page=right] [data-panel=left]{display:none!important}.premium-controls details{margin:10px 0;padding:10px}.premium-type[hidden]{display:none!important}.premium-reading-nav{display:flex;align-items:center;justify-content:center;gap:16px;margin:14px 0;font-size:14px}.premium-reading-nav[hidden]{display:none}.premium-reading-nav button,.premium-recipient-switch button,.premium-large button{border:1px solid #d7c5b2;border-radius:8px;background:#fffaf3;color:#74384a;padding:12px;cursor:pointer}.premium-reading-nav button:disabled{opacity:.4;cursor:default}.premium-enlarge{padding:10px;color:#74384a;cursor:pointer;font-size:14px}.premium-large{width:min(1400px,96vw);max-width:96vw;max-height:94vh;border:1px solid #ddc9b4;border-radius:14px;padding:20px;background:#f6eee1;box-sizing:border-box}.premium-large::backdrop{background:#30202dcc}.premium-large img{display:block;width:100%;height:auto;max-height:none;margin:14px auto}.premium-large>div{display:flex;justify-content:center;gap:16px;align-items:center;margin:12px}.p3-shared .premium-envelope.spread{width:100%;max-width:1200px}.p3-shared .premium-live{max-height:none}.premium-recipient-switch{display:none}.premium-photo[hidden]{display:none!important}.premium-controls input[type=file]{max-width:100%}
@media(max-width:760px){.p2-main:has(.premium-studio){padding:16px 12px}.premium-preview{padding:10px 6px;position:static}.premium-envelope.spread{padding:4px}.premium-controls{padding:16px}.premium-steps{position:static}.premium-reading-nav{gap:8px;font-size:13px}.premium-reading-nav button{padding:11px 8px}.premium-large{padding:10px;width:98vw;max-width:98vw}.premium-large img{width:200%;max-width:none}.premium-large{overflow:auto}.premium-recipient-switch{display:flex;gap:12px;justify-content:center}.p3-shared .premium-envelope.spread{overflow:hidden;padding:6px}.p3-shared .premium-envelope.spread .premium-live{width:200%;max-width:none;height:auto}.p3-shared .premium-envelope.spread.page-right .premium-live{margin-left:-100%}.premium-status{font-size:13px}}

.premium-size-note{margin:8px 0!important}.premium-size-value,#premium-size-value{display:inline-block;min-width:30px;padding:3px 8px;border-radius:6px;background:#efe4d8;color:#74384a;font-weight:600}.premium-reader{max-width:720px;width:calc(100% - 24px);max-height:90vh;border:1px solid #dbc6b2;border-radius:14px;padding:24px;box-sizing:border-box;background:#fffaf3;color:#3c3036}.premium-reader::backdrop{background:#30202dbb}.premium-reader-text{white-space:pre-wrap;font:20px/1.65 Georgia,serif;margin-top:20px}.premium-reader button{padding:10px 20px;border-radius:8px;border:1px solid #ccb6a0;background:#fffdf8;color:#74384a}@media(max-width:760px){.premium-reader-text{font-size:18px}.premium-reader{padding:18px}}
