/* Personal details and account settings share one focused content panel. */
.pf-page.ws-page{--pf-muted:#d3ddc9;background:#3b4435;color:#faf6e9;padding:32px 0 44px}
.pf-page>.ws-wrap{width:min(1120px,calc(100% - 80px))}
.pf-page-head{margin-bottom:24px}
.pf-page-head h1{font-family:inherit;font-size:30px;font-weight:600;line-height:1.4;margin:0}
.pf-page-head p{font-size:14px;line-height:1.6;color:var(--pf-muted);margin:6px 0 0}
.pf-account-layout{display:grid;grid-template-columns:180px minmax(0,1fr);gap:24px;align-items:start}
.pf-account-nav,.pf-account-main{min-width:0}
.pf-account-identity{display:grid;justify-items:start;gap:6px;padding:0 16px 20px}
.pf-page .pf-avatar{display:grid;place-items:center;width:72px;height:72px;margin-bottom:8px;padding:0;border:1px solid #a8b792;border-radius:50%;background:#dce3cd;overflow:hidden}
.pf-page .pf-avatar img{display:block;width:100%;height:100%;object-fit:cover}
.pf-account-name{max-width:100%;font-size:16px;font-weight:600;line-height:1.6;overflow-wrap:anywhere}
.pf-account-state{font-size:12px;line-height:1.6;color:var(--pf-muted)}
.pf-menu{display:grid;gap:4px}
.pf-menu>button{width:100%;min-height:44px;padding:10px 16px;border:1px solid transparent;border-radius:6px;background:transparent;color:#f0ecdf;text-align:left;font-size:14px;line-height:1.6;cursor:pointer;transition:background .18s,color .18s}
.pf-menu>button[aria-pressed=true]{border-color:#d3d7c3;background:#f4f1e7;color:#285a50;font-weight:600}
.pf-nav-footer{display:grid;gap:10px;margin-top:24px;padding-top:16px;border-top:1px solid #aab59d45}
.pf-page .pf-nav-footer>.ws-button{width:100%;min-height:44px;padding:8px 12px;border-color:#a8b792;color:#f0ecdf;font-size:14px}
.pf-page .pf-nav-footer>.pf-text-action{justify-self:start;padding:10px 16px;color:#f0ecdf;text-align:left}
.pf-page .pf-nav-footer .pf-admin-entry{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:64px;padding:10px 12px;border:1px solid #a8b792;border-radius:6px;background:transparent;color:#f1dfb6;font-size:14px;line-height:1.5;text-align:left}
.pf-nav-footer .pf-admin-entry span{display:grid;gap:3px;min-width:0;overflow-wrap:anywhere}
.pf-nav-footer .pf-admin-entry small{font-size:12px;line-height:1.5;color:var(--pf-muted)}
.pf-page .pf-section{min-width:0;padding:24px;border:1px solid #d2d7c6;border-radius:8px;background:#f4f1e7;color:#303b2c}
.pf-page .pf-section[hidden]{display:none!important}
.pf-page .pf-section .ws-button{min-height:44px;font-size:14px}
.pf-section-head{padding-bottom:20px;border-bottom:1px solid #d5d8c7}
.pf-section-head:has(>button){display:flex;align-items:center;justify-content:space-between;gap:16px}
.pf-section-head h2,.pf-section .bg-mine>h2{font-family:inherit;font-size:22px;font-weight:600;line-height:1.5;margin:0 0 6px}
.pf-section-head p,.pf-section .bg-mine>p{font-size:14px;line-height:1.6;color:#65705f;margin:0}
.pf-section-head>.ws-button{flex:none;min-height:44px;font-size:14px}
.pf-setting-row{display:grid;grid-template-columns:112px minmax(0,1fr) auto;align-items:center;gap:20px;padding:22px 0;border-bottom:1px solid #d5d8c7}
.pf-setting-row:last-child{border-bottom:0;padding-bottom:0}
.pf-row-label{font-size:14px;line-height:1.6;color:#65705f}
.pf-row-value{min-width:0;font-size:16px;line-height:1.6;overflow-wrap:anywhere}
.pf-row-value strong{display:block;font-size:16px;font-weight:500;line-height:1.6}
.pf-row-value small{display:block;margin-top:4px;font-size:12px;line-height:1.6;color:#65705f}
.pf-row-avatar img{display:block;width:56px;height:56px;border-radius:50%;object-fit:cover}
.pf-row-action{min-width:0;justify-self:end;text-align:right}
.pf-page .pf-text-action{min-width:44px;min-height:44px;padding:10px 0;border:0;background:transparent;color:#285a50;font-size:14px;line-height:1.6;cursor:pointer}
.pf-bound-state{display:inline-block;font-size:12px;line-height:1.6;color:#65705f}
.pf-setting-note{margin:20px 0 0;padding-top:16px;border-top:1px solid #d5d8c7;font-size:13px;line-height:1.6;color:#65705f}
.pf-page .pf-reminder{display:flex;align-items:center;gap:16px;margin:0 0 16px;padding:16px;border:1px solid #e0cc9e;border-radius:8px;background:#e7d6ae;color:#424732}
.pf-page .pf-reminder>div{min-width:0;flex:1}
.pf-page .pf-reminder strong{font-size:14px;line-height:1.6;font-weight:600}
.pf-page .pf-reminder p{margin:4px 0 0;font-size:13px;line-height:1.6;color:#53543d}
.pf-page .pf-reminder button{min-height:44px;padding:8px 0;font-size:14px;line-height:1.6;color:#285a50}
.pf-account-main>.ws-note-inline{margin:0 0 16px;font-size:14px;line-height:1.6;overflow-wrap:anywhere}
.pf-page .pf-upcoming{padding:0;border:0;border-radius:0;background:transparent;color:#303b2c;box-shadow:none}
.pf-page .pf-upcoming article{display:flex;align-items:flex-start;gap:16px;padding:22px 0;border-bottom:1px solid #d5d8c7}
.pf-page .pf-upcoming article:last-child{border-bottom:0;padding-bottom:0}
.pf-page .pf-upcoming article>div:only-child{min-width:0;flex:1}
.pf-page .pf-upcoming article>div:only-child h3{font-family:inherit;font-size:16px;line-height:1.6;margin:0 0 6px}
.pf-page .pf-upcoming article>div:only-child p{font-size:14px;line-height:1.6;color:#65705f;margin:0 0 16px}
.pf-page .pf-date{display:grid;flex:none;width:58px;gap:5px;margin:0;padding:4px 14px 0 0;border-right:1px solid #cdd3be;text-align:center}
.pf-page .pf-date strong{font-family:inherit;font-size:28px;font-weight:500;line-height:1}
.pf-page .pf-date>span{font-size:12px;line-height:1.6;color:#65705f;white-space:nowrap}
.pf-page .pf-event-info{display:block;min-width:0;width:auto;flex:1}
.pf-page .pf-category{font-size:12px;line-height:1.6;color:#4c6c48;letter-spacing:0}
.pf-page .pf-event-info h3{font-family:inherit;font-size:16px;font-weight:600;line-height:1.6;margin:4px 0;overflow-wrap:anywhere}
.pf-page .pf-event-info p{font-size:14px;line-height:1.6;margin:0 0 8px;color:#65705f}
.pf-page .pf-event-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 16px}
.pf-page .pf-state{font-size:12px;line-height:1.6;padding:3px 8px;border-radius:4px;background:#dde7d5;color:#3b5c38}
.pf-page .pf-detail{flex:none;min-height:44px;margin:0;padding:10px 0;font-size:14px;line-height:1.6;color:#285a50;white-space:nowrap}
.pf-page .pf-section .bg-mine{margin:0}
.pf-section .bg-mine>h2{margin:0 0 6px}
.pf-section .bg-mine>p{margin:0 0 20px}
.pf-section .bg-mine-list article{gap:16px;padding:20px 0}
.pf-section .bg-mine-list article>div{min-width:0;overflow-wrap:anywhere}
.pf-section .bg-mine-list strong{font-size:16px;font-weight:500;line-height:1.6}
.pf-section .bg-mine-list p{font-size:14px;line-height:1.6;margin:4px 0 0;color:#65705f}
.pf-section .bg-mine-list .ws-button{flex:none;min-height:44px;font-size:14px}
.pf-page :is(.pf-text-action,.pf-detail):focus-visible{outline:2px solid #866426;outline-offset:3px}
.pf-page :is(.pf-menu>button,.pf-nav-footer button,.pf-avatar):focus-visible{outline:2px solid #e5c78c;outline-offset:3px}
@media(hover:hover) and (pointer:fine){.pf-menu>button:not([aria-pressed=true]):hover{background:#b7c2a51a}.pf-page .pf-text-action:hover,.pf-page .pf-detail:hover{text-decoration:underline;text-underline-offset:3px}}

/* Keep the existing personal-record dialogs unchanged. */
.ws-dialog:has(.pf-dialog-content) .ws-dialog-body{padding:20px 24px}
.pf-dialog-content>.ws-eyebrow{font-size:10px;margin:0 0 5px}
.pf-dialog-content h2{font-family:inherit;font-size:23px;line-height:1.4;margin:0 0 10px}
.pf-dialog-content h3{font-family:inherit;font-size:16px;line-height:1.5;margin:16px 0 8px}
.pf-dialog-content p{font-size:13px;line-height:1.6;margin-bottom:12px}
.pf-dialog-content form{gap:12px}
.pf-dialog-content .ws-field{font-size:13px;gap:6px;margin-bottom:12px}
.pf-dialog-content input,.pf-dialog-content select{font-size:16px;min-height:44px;padding:9px 11px}
.pf-dialog-content .ws-panel{padding:14px}
.pf-dialog-content .ws-note,.pf-dialog-content .ws-note-inline{font-size:12px;line-height:1.6}
.pf-dialog-content .ws-modal-note{font-size:11px;line-height:1.5}
.pf-dialog-content .ws-dialog-actions{gap:10px;margin-top:14px;flex-wrap:wrap}
.pf-dialog-content .ws-button{font-size:13px;min-height:44px;padding:8px 12px}
@media(max-width:900px){.pf-page>.ws-wrap{width:calc(100% - 48px)}}
@media(max-width:800px){
 .pf-page.ws-page{padding:24px 0 36px}
 .pf-page-head{margin-bottom:20px}
 .pf-page-head h1{font-size:28px}
 .pf-account-layout{grid-template-columns:minmax(0,1fr);gap:20px}
 .pf-account-identity{grid-template-columns:64px minmax(0,1fr);align-items:center;column-gap:12px;row-gap:2px;padding:0 0 16px}
 .pf-page .pf-account-identity .pf-avatar{grid-column:1;grid-row:1 / 3;width:64px;height:64px;margin:0}
 .pf-account-name{align-self:end}
 .pf-account-state{align-self:start}
 .pf-menu{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
 .pf-menu>button{padding:10px 4px;text-align:center;font-size:14px}
 .pf-nav-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:10px;margin-top:12px;padding-top:12px}
 .pf-page .pf-nav-footer>.ws-button{width:auto}
 .pf-page .pf-nav-footer .pf-admin-entry{flex:1;min-height:44px;padding:8px 12px}
 .pf-page .pf-section{padding:20px}
 .pf-section-head h2,.pf-section .bg-mine>h2{font-size:21px}
 .pf-setting-row{grid-template-columns:minmax(0,1fr) auto;gap:4px 16px;padding:18px 0}
 .pf-row-label{grid-column:1 / -1}
 .pf-row-value{grid-column:1}
 .pf-row-action{grid-column:2;grid-row:auto}
 .pf-page .pf-reminder{align-items:flex-start;flex-wrap:wrap;gap:8px 12px}
 .pf-page .pf-reminder button{margin-left:auto}
 .pf-page .pf-upcoming article{gap:12px;padding:20px 0;flex-wrap:nowrap}
 .pf-page .pf-date{width:44px;padding-right:10px}
 .pf-page .pf-date strong{font-size:26px}
 .pf-page .pf-date>span{font-size:12px;white-space:normal}
 .pf-page .pf-event-info{width:auto}
 .pf-page .pf-detail{margin:0;min-height:44px}
}
@media(max-width:650px){
 .ws-dialog:has(.pf-dialog-content) .ws-dialog-body{padding:16px 18px calc(16px + env(safe-area-inset-bottom))}
 .pf-dialog-content h2{font-size:21px}
 .pf-dialog-content .ws-rating-stars{gap:6px;padding:12px 0}
 .pf-dialog-content .ws-rating-stars button{min-width:44px;min-height:44px;font-size:30px}
}
@media(max-width:600px){.pf-page>.ws-wrap{width:calc(100% - 32px)}.pf-page-head h1{font-size:26px}}
@media(max-width:360px){.pf-page .pf-section{padding:16px}.pf-menu>button{font-size:13px}}
@media(prefers-reduced-motion:reduce){.pf-menu>button{transition:none}}
