/* Shared controls use their content height, balanced padding and centered line boxes. */
.letter-form .v27-draft-bar{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:44px;height:auto;padding:10px 14px;border-radius:10px;text-align:center;line-height:1.65}
.letter-form [data-v27-draft-status]{display:block;width:100%;line-height:1.65;text-align:center;overflow-wrap:anywhere}
.letter-form [data-v27-recovery-actions]{justify-content:center;flex-wrap:wrap;align-items:center;width:100%;gap:8px}
.letter-form [data-v27-recovery-actions]:empty{display:none}
.letter-form .v27-draft-bar button{display:inline-flex;align-items:center;justify-content:center;margin:0;min-height:36px;padding:6px 12px;text-align:center;line-height:1.5}
:is(.primary-button,.secondary-button,.submit-button,.shared-primary,.shared-secondary,.my-primary,.login-dialog-card form>button,.login-text-button,.account-panel-actions>button,.account-profile-link-v58,.v28-public-preview,.share-actions button,.copy-button,.receipt-links button){display:inline-flex;align-items:center;justify-content:center;text-align:center;line-height:1.5;height:auto}
.account-profile-link-v58{min-height:44px;padding:8px 10px;color:#315747;text-decoration:underline;text-underline-offset:4px;font-size:13px}
.login-dialog-card :is(.login-notice,.login-error){display:flex;align-items:center;justify-content:center;min-height:44px;box-sizing:border-box;padding:10px 14px;margin:14px 0 0;line-height:1.65;text-align:center;overflow-wrap:anywhere}
.site-shell .topbar .topbar-actions .account-button.is-signed-in{display:block;max-width:160px;min-width:44px;width:auto;height:44px;padding:0 14px;border-radius:24px;line-height:44px;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-name-v58{display:inline-flex!important;align-items:center;justify-content:center;max-width:160px;min-height:44px;box-sizing:border-box;padding:8px 14px!important;border:1px solid #d5dedb;border-radius:24px;text-align:center;font:500 13px/1.5 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;color:#315747;text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.account-profile-v58{margin:0 0 28px;padding:24px;border:1px solid #d8e2d9;border-radius:16px;background:#f2f6f1;color:#203b4d}
.account-profile-row-v58{display:flex;align-items:center;gap:16px}
.account-profile-mark-v58{display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;border-radius:50%;background:#fff}
.account-profile-mark-v58 img{display:block;width:34px;height:34px;object-fit:contain}
.account-profile-copy-v58{flex:1;min-width:0}
.account-profile-copy-v58 h2{margin:0;font:600 22px/1.5 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;overflow-wrap:anywhere}
.account-profile-copy-v58 p{margin:5px 0 0;color:#617466;font-size:13px;line-height:1.75}
.account-profile-v58 button{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:44px;padding:10px 16px;border:1px solid #b6c7b7;border-radius:10px;background:#fff;color:#315747;font:500 14px/1.5 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;text-align:center;cursor:pointer}
.account-profile-edit-v58{flex-shrink:0}
.account-profile-form-v58{display:grid;gap:10px;margin-top:22px;padding-top:20px;border-top:1px solid #d8e2d9}
.account-profile-form-v58[hidden]{display:none}
.account-profile-form-v58 label{font-size:14px;font-weight:600}
.account-profile-form-v58 input{box-sizing:border-box;width:100%;min-width:0;min-height:48px;padding:10px 12px;border:1px solid #b6c7b7;border-radius:10px;background:#fff;color:#203b4d;font:400 16px/1.5 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif}
.account-profile-form-v58 small{font-size:12px;line-height:1.75;color:#617466}
.account-profile-actions-v58{display:flex;gap:10px;margin-top:4px}
.account-profile-actions-v58>button:first-child{background:#315747;color:#fff;border-color:#315747}
.account-profile-form-v58 p{margin:0;font-size:13px;line-height:1.6;color:#315747}
.account-profile-v58 button:disabled{opacity:.6;cursor:wait}
@media(max-width:640px){
 .site-shell .topbar .topbar-actions .account-button.is-signed-in,.account-name-v58{max-width:112px;padding-inline:12px!important;font-size:13px}
 .account-name-v58{display:block!important;line-height:26px}
 .letter-form .v27-price-clarity{padding:14px 12px;gap:8px;align-items:center}
 .letter-form .v27-price-clarity>small{text-align:center;margin:0;line-height:1.65}
 .letter-form :is(.v27-mode-tabs,.v27-quick-guide) button{display:flex;align-items:center;justify-content:center;text-align:center;line-height:1.6;padding:10px 12px;height:auto}
 :is(.v28-private-badge,.availability,.my-state,.my-source,.shared-status){display:inline-flex;align-items:center;justify-content:center;line-height:1.5;min-height:28px;box-sizing:border-box;padding-block:5px;text-align:center}
 .privacy-line{align-items:center;justify-content:center;text-align:center}
 .site-shell .toast{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:max-content;max-width:calc(100vw - 32px);min-height:44px;padding:12px 18px;line-height:1.6;text-align:center;bottom:calc(20px + env(safe-area-inset-bottom));border-radius:16px;overflow-wrap:anywhere}
 .account-panel{gap:12px}.account-panel-actions{justify-content:center;align-items:center;flex-wrap:wrap}
 .account-profile-v58{padding:18px 16px;margin-bottom:22px}
 .account-profile-row-v58{display:grid;grid-template-columns:44px minmax(0,1fr);gap:12px}
 .account-profile-mark-v58{width:44px;height:44px}
 .account-profile-copy-v58 h2{font-size:20px}
 .account-profile-edit-v58{grid-column:1/-1;justify-self:stretch;margin-top:2px}
 .account-profile-actions-v58>button{flex:1}
 .shared-topbar{flex-wrap:nowrap}.shared-topbar>.account-name-v58{margin-left:auto;min-width:0;flex-shrink:1}
}
@media(max-width:360px){.site-shell .topbar .topbar-actions .account-button.is-signed-in,.account-name-v58{max-width:92px;font-size:12px}}
/* Reserve room for the account name on narrow screens. */
@media(max-width:640px){
 .my-top>nav>a:not(.account-name-v58),.discover-header>nav>.nav-write{display:none!important}
 .my-top>nav,.discover-header>nav{gap:10px}
}

/* Keep the footer information and the smaller mini-program code together. */
.site-footer-v56{display:grid!important;grid-template-columns:minmax(0,540px) 144px;justify-content:center;align-items:center;gap:8px 32px;text-align:center!important;padding:36px 24px}
.site-footer-v56> :not(.mini-program-footer-v56){grid-column:1;justify-self:center;justify-content:center;max-width:100%;margin:0;text-align:center}
.site-footer-v56>nav{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:4px 18px}
.site-footer-v56>.mini-program-footer-v56{grid-column:2;grid-row:1/span 5;align-self:center;justify-self:center;order:initial;width:144px;max-width:100%;gap:8px;margin:0;padding:0;border:0}
.discover-footer.site-footer-v56>.mini-program-footer-v56{grid-row:1/span 4}
:is(.shared-footer,.my-footer).site-footer-v56>.mini-program-footer-v56{grid-row:1/span 3}
.site-footer-v56 .mini-program-code-v56{width:132px;height:132px;padding:9px;border-radius:14px}
.site-footer-v56 .mini-program-code-v56 img{width:112px!important;height:112px!important}
.site-footer-v56 .mini-program-footer-v56 strong{font-size:13px;line-height:1.5}
.site-footer-v56 .mini-program-footer-v56 span{font-size:11px;line-height:1.65}

/* Show the complete existing plan list without enabling paid services. */
.keepsake-plan-grid>button:nth-child(n),.v27-home-enhanced .keepsake-plan-grid>button:nth-child(n){display:grid;grid-template-rows:auto auto 1fr auto;align-content:start;gap:8px;min-height:170px;height:auto;padding:18px}
.keepsake-plan-grid>button small{max-width:none}
.keepsake-plan-grid>button em{position:static;justify-self:end;align-self:end;margin-top:2px}
.capsule-collection-stage .collection-cta{display:none!important}

@media(max-width:680px){
 .site-footer-v56{grid-template-columns:minmax(0,1fr) 112px;gap:8px 20px;padding:28px 20px}
 .site-footer-v56>.mini-program-footer-v56{width:112px}
 .site-footer-v56 .mini-program-code-v56{width:112px;height:112px;padding:8px;border-radius:12px}
 .site-footer-v56 .mini-program-code-v56 img{width:94px!important;height:94px!important}
 .site-footer-v56>nav{gap:0 12px}
 .site-footer-v56>p{font-size:13px;line-height:1.7}
 .site-footer-v56 :is(.brand,.discover-brand){font-size:18px;gap:8px}
 .site-footer-v56>small{font-size:11px;line-height:1.65}
 .keepsake-plan-grid>button:nth-child(n),.v27-home-enhanced .keepsake-plan-grid>button:nth-child(n){min-height:158px;padding:18px}
}
@media(max-width:360px){.site-footer-v56{column-gap:12px;padding-inline:16px}}
