/* The private family workspace is deliberately separate from the public memorial. */
html:has(.family-design .ms-panel[open]){overflow:hidden}
.family-design .pfd-dashboard{--pfd-green:#263f33;--pfd-green-soft:#e8eee7;--pfd-accent:#ae884a;width:min(1220px,calc(100vw - 32px));max-width:none;height:min(880px,calc(100dvh - 32px));max-height:calc(100dvh - 32px);padding:0;border-radius:22px;background:var(--pfm-card);overflow:auto;box-shadow:0 24px 100px #101b1838;font-family:var(--pfm-ui)}
.family-design .pfd-dashboard>header{position:sticky;top:0;z-index:3;align-items:center;min-height:88px;padding:18px 26px;border-bottom:1px solid var(--pfm-line);background:var(--pfm-card);gap:20px}
.family-design .pfd-dashboard>header h2{font-size:32px;margin:0;line-height:1.1;letter-spacing:-.035em}
.family-design .pfd-dashboard>header [data-close]{font-size:15px;min-height:44px;background:transparent;padding:9px 16px;white-space:nowrap}
.pfd-layout{display:grid;grid-template-columns:224px minmax(0,1fr);min-height:calc(100% - 88px)}
.pfd-sidebar{background:var(--pfm-soft);border-right:1px solid var(--pfm-line);padding:22px 14px;display:flex;flex-direction:column;gap:24px}
.pfd-person{display:flex;gap:12px;padding:0 8px;align-items:center;font-size:12px;line-height:1.45;color:var(--pfm-muted)}
.family-design .pfd-person img{width:48px;height:62px;object-fit:cover;border-radius:24px 24px 4px 4px;flex-shrink:0}
.pfd-person strong{display:block;font-size:14px;line-height:1.45;font-weight:600;color:var(--pfm-ink);margin-top:3px;overflow-wrap:anywhere}
.pfd-nav{display:grid;gap:4px}
.family-design .pfd-dashboard .pfd-nav button{display:flex;align-items:center;justify-content:flex-start;gap:12px;background:transparent;border:0;min-height:46px;font-size:14px;text-align:left;line-height:1.35;padding:10px 12px;color:var(--pfm-ink2);font-weight:500;border-radius:8px;white-space:normal}
.pfd-nav svg{width:20px;height:20px;flex-shrink:0;color:var(--pfm-muted)}
.family-design .pfd-dashboard .pfd-nav button[aria-current=page]{background:var(--pfd-green);color:#fff;font-weight:600}
.pfd-nav button[aria-current=page] svg{color:#e7d6ad}
.family-design .pfd-dashboard .pfd-nav button:hover:not([aria-current]){background:var(--pfm-card)}
.pfd-help{margin-top:auto;border-top:1px solid var(--pfm-line);padding:18px 8px 0;display:grid;gap:5px;text-decoration:none;font-size:12px;line-height:1.7;color:var(--pfm-muted)}
.pfd-help strong{color:var(--pfm-ink);font-size:18px}
.pfd-content{padding:22px 30px 36px;min-width:0;background:var(--pfm-card)}
.pfd-private{display:flex;align-items:flex-start;gap:9px;font-size:12px;line-height:1.6;color:var(--pfm-muted);padding-bottom:14px;border-bottom:1px solid var(--pfm-line);margin-bottom:24px}
.pfd-private svg{width:15px;height:18px;flex-shrink:0;margin-top:1px}
.family-design .pfd-welcome>p:first-child{font-size:13px;font-weight:500;color:var(--pfm-muted);margin:0 0 7px}
.family-design .pfd-welcome h3{font-family:var(--pfm-display);font-size:40px;font-weight:600;line-height:1.1;letter-spacing:-.025em;margin:0 0 12px;color:var(--pfm-ink)}
.family-design .pfd-welcome>p:last-child{font-size:15px;color:var(--pfm-muted);margin:0;max-width:65ch;line-height:1.6}
.pfd-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin:24px 0}
.family-design .pfd-dashboard .pfd-card{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;text-align:left;position:relative;gap:12px;min-height:193px;padding:20px 18px;border:1px solid var(--pfm-line);border-radius:14px;background:var(--pfm-card);color:var(--pfm-ink);box-shadow:none;transition:border-color .16s,background .16s}
.family-design .pfd-dashboard .pfd-card:hover{background:var(--pfm-soft);border-color:var(--pfd-accent)}
.pfd-card-icon{display:grid;place-items:center;width:42px;height:42px;background:var(--pfm-soft);border-radius:11px;color:var(--pfd-green)}
.pfd-card-icon svg{width:25px;height:25px}
.pfd-card strong{font-size:19px;font-weight:600;line-height:1.35;overflow-wrap:anywhere}
.pfd-card>span:not(.pfd-card-icon):not(.pfd-card-arrow){font-size:13px;font-weight:400;color:var(--pfm-muted);line-height:1.6}
.pfd-card .pfd-card-arrow{position:absolute;right:16px;top:21px;font-size:20px;font-weight:400;color:var(--pfm-muted)}
.family-design .pfd-dashboard .pfd-card-main{background:var(--pfd-green);border-color:var(--pfd-green);color:#fff}
.family-design .pfd-dashboard .pfd-card-main:hover{background:#334e40;color:#fff}
.pfd-card-main .pfd-card-icon{background:#ffffff16;color:#efcf8e}
.pfd-card-main>span:not(.pfd-card-icon):not(.pfd-card-arrow),.pfd-card-main .pfd-card-arrow{color:#d8e2dc}
.pfd-updates{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:28px}
.pfd-updates>section{padding:21px 0;border-top:1px solid var(--pfm-line)}
.pfd-section-title{display:flex;align-items:center;gap:9px;margin-bottom:14px}
.pfd-section-title svg{width:20px;height:20px;color:var(--pfd-accent)}
.family-design .pfd-section-title h4{font-size:15px;font-weight:600;color:var(--pfm-ink);margin:0}
.pfd-updates section>strong{display:block;font-family:var(--pfm-display);font-size:28px;font-weight:600;line-height:1.3;margin-bottom:9px}
.family-design .pfd-dashboard .pfd-updates p{font-size:14px;line-height:1.6;color:var(--pfm-muted);margin:5px 0}
.family-design .pfd-dashboard .pfd-updates button{background:transparent;font-size:13px;padding:9px 12px;min-height:43px;margin-top:12px;border-width:1px}
.family-design .pfd-mobile-nav{display:none}
.family-design .pfd-dashboard .ms-error,.family-design .pfd-dashboard .ms-status{margin:0;padding:12px 30px 12px 254px;font-size:15px;position:sticky;bottom:0;background:var(--pfm-card);z-index:4}
.family-design .pfd-dashboard :is(.ms-error,.ms-status):empty{display:none}
.family-design .pfd-page-heading h3,.family-design .pfd-content>div[data-pane]>form>h3{font:600 36px/1.15 var(--pfm-display);margin:0 0 12px}
.family-design .pfd-page-heading p{font-size:16px;line-height:1.6;color:var(--pfm-muted);max-width:64ch}
.family-design .pfd-page-heading button{margin:8px 0 18px}
.pfd-page-heading button svg{width:20px;height:20px}
.family-design .pfd-dashboard :is(input,textarea,select){font-size:17px;border-width:1px;min-height:49px;border-radius:9px;background:var(--pfm-card)}
.family-design .pfd-dashboard label{font-size:15px;line-height:1.5}
.family-design .pfd-dashboard .ms-primary{background:var(--pfd-green);color:#fff;border-color:var(--pfd-green)}
.family-design .pfd-dashboard .ms-primary:hover{background:#334e40}
.family-design .pfd-dashboard [data-pane]>.ms-actions:first-child{margin-top:0}
.family-design .pfd-dashboard .ms-manage-item{padding:20px 0;border-color:var(--pfm-line)}
.family-design .pfd-dashboard .ms-manage-item b{font-size:18px;font-weight:600;line-height:1.5}
.family-design .pfd-dashboard .ms-manage-item p{font-size:16px;line-height:1.6}
.family-design .pfd-dashboard .ms-manage-item .ms-actions button{font-size:14px;min-height:44px;border-width:1px;padding:8px 13px}
.pfd-photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.family-design .pfd-dashboard .pfd-photo-grid button{display:flex;flex-direction:column;gap:8px;padding:0 0 18px;overflow:hidden;border:1px solid var(--pfm-line);background:var(--pfm-card);align-items:flex-start;text-align:left;border-radius:12px}
.family-design .pfd-dashboard .pfd-photo-grid img{width:100%;height:190px;object-fit:cover;max-height:none;background:var(--pfm-soft)}
.pfd-photo-grid strong,.pfd-photo-grid span{padding-inline:16px}
.pfd-photo-grid strong{font-size:17px;line-height:1.5}
.pfd-photo-grid span{font-size:13px;color:var(--pfm-muted)}
.pfd-empty{border:1px dashed var(--pfm-line);padding:35px 28px;border-radius:14px;background:var(--pfm-soft)}
.family-design .pfd-empty h4{font:600 28px/1.25 var(--pfm-display);margin:0 0 14px}
.family-design .pfd-empty p{font-size:16px;line-height:1.7;margin:0;color:var(--pfm-muted)}
.pfd-event-row{display:grid;grid-template-columns:112px minmax(0,1fr);gap:22px;padding:24px 0;border-top:1px solid var(--pfm-line)}
.pfd-event-row>div:first-child{display:flex;flex-direction:column;gap:7px;padding:15px 11px;background:var(--pfm-soft);border-radius:10px;align-self:start;text-align:center;font-size:14px}
.pfd-event-row h4{font:600 27px/1.2 var(--pfm-display);margin:0 0 9px}
.family-design .pfd-event-row p{font-size:15px;color:var(--pfm-muted);margin:0}
.family-design .pfd-dashboard .pfd-event-row button{font-size:13px;padding:8px 10px;min-height:43px;border-width:1px}
.family-design .pfd-editor{width:min(720px,calc(100vw - 24px))}
.family-design .pfd-editor .pfd-upload{padding:18px;border:1px dashed var(--pfm-muted);border-radius:12px;background:var(--pfm-soft)}
.family-design .pfd-editor input[type=file]{padding:10px;font-size:14px;background:var(--pfm-card);border:0;line-height:1.7}
.family-design .pfd-editor input[type=file]::file-selector-button{padding:9px 12px;border:0;border-radius:6px;background:#263f33;color:white;font:500 14px var(--pfm-ui);margin-right:12px;cursor:pointer}
.family-design .pfd-editor .pfd-image-preview{width:100%;height:auto;max-height:300px;object-fit:contain;background:var(--pfm-soft);border-radius:10px;display:block;margin:15px 0}
.family-design .pfd-editor .pfd-image-preview[hidden]{display:none}
.family-design .pfd-dashboard :is(button,a,input,select,textarea):focus-visible,.family-design .pfd-editor :focus-visible{outline:3px solid #a98243;outline-offset:3px}
html[data-family-theme=dark] .pfd-dashboard{--pfd-green:#294938;--pfd-green-soft:#263b30;--pfd-accent:#dbb879}
html[data-family-theme=dark] .pfd-card-icon{color:#d9bc7c}
html[data-family-theme=dark] .pfd-dashboard .pfd-help{color:var(--pfm-muted)}
@media(min-width:1400px){.pfd-content{padding:28px 38px 40px}.pfd-cards{gap:16px}.family-design .pfd-dashboard .pfd-card{padding:24px 22px;min-height:208px}}
@media(max-width:960px){.pfd-layout{grid-template-columns:190px minmax(0,1fr)}.pfd-content{padding:20px}.pfd-sidebar{padding:20px 10px}.pfd-person{padding:0;gap:8px}.pfd-person img{display:none}.pfd-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.family-design .pfd-welcome h3{font-size:35px}.family-design .pfd-dashboard .ms-error,.family-design .pfd-dashboard .ms-status{padding-left:210px}}
@media(max-width:650px){
 .family-design .pfd-dashboard{width:100%;height:100dvh;max-height:100dvh;max-width:100vw;border:0;border-radius:0;margin:0;padding:0}
 .family-design .pfd-dashboard>header{padding:16px;min-height:75px;gap:10px}
 .family-design .pfd-dashboard>header h2{font-size:26px;max-width:52%}
 .family-design .pfd-dashboard>header [data-close]{font-size:12px;padding:9px 10px;min-width:0;border-width:1px;min-height:44px}
 .pfd-layout{display:block;min-height:0}.pfd-sidebar{display:none}.pfd-content{padding:16px 16px 28px}
 .family-design .pfd-mobile-nav{display:grid;gap:5px;margin:0 0 15px;font-size:13px;color:var(--pfm-muted)}
 .family-design .pfd-mobile-nav select{background:var(--pfm-soft);font-size:16px;font-weight:500;border:1px solid var(--pfm-line);min-height:48px}
 .pfd-private{font-size:11px;gap:7px;padding-bottom:13px;margin-bottom:21px}
 .family-design .pfd-welcome h3{font-size:34px}.family-design .pfd-welcome>p:last-child{font-size:14px}
 .pfd-cards{gap:10px;margin:22px 0}.family-design .pfd-dashboard .pfd-card{min-height:177px;padding:16px 13px;gap:11px;border-radius:12px}
 .pfd-card-icon{width:34px;height:34px;border-radius:9px}.pfd-card-icon svg{width:22px;height:22px}
 .pfd-card strong{font-size:16px;line-height:1.4}.pfd-card>span:not(.pfd-card-icon):not(.pfd-card-arrow){font-size:12px;line-height:1.5}.pfd-card .pfd-card-arrow{top:16px;right:12px;font-size:17px}
 .pfd-updates{grid-template-columns:1fr;gap:0;margin-top:20px}.pfd-updates>section{padding:20px 0}
 .family-design .pfd-dashboard .ms-error,.family-design .pfd-dashboard .ms-status{padding:12px 16px}
 .pfd-photo-grid{gap:12px}.family-design .pfd-dashboard .pfd-photo-grid img{height:145px}.pfd-photo-grid strong{font-size:15px}.pfd-photo-grid strong,.pfd-photo-grid span{padding-inline:12px}
 .pfd-event-row{grid-template-columns:1fr;gap:12px}.pfd-event-row>div:first-child{flex-direction:row;align-items:center;justify-content:flex-start;gap:12px;padding:11px 14px;text-align:left}.pfd-event-row h4{font-size:26px}
 .family-design .pfd-page-heading h3{font-size:32px}.pfd-empty{padding:25px 20px}
}
@media(max-width:350px){.pfd-cards{grid-template-columns:1fr}.family-design .pfd-dashboard .pfd-card{min-height:140px}.pfd-photo-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.family-design .pfd-dashboard .pfd-card{transition:none}}
