/* Partner editing: a single scroll surface, useful spacing and visible touch targets. */
.partner-row-editable{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 48px;align-items:center;gap:0;border:1px solid #e9e4ef;border-radius:24px;background:#fff;overflow:hidden}.partner-row-editable .partner-row{border:0!important;border-radius:0!important;padding-right:4px!important;min-width:0}.partner-row-editable .partner-row-copy{min-width:0}.partner-row-editable .partner-score{min-width:46px}.profile-edit-button{width:44px;height:48px;display:grid;place-items:center;background:transparent;border:0;color:#8250ed;padding:10px;cursor:pointer;border-radius:12px}.profile-edit-button:focus-visible,.profile-identity-edit:focus-visible{outline:3px solid #8250ed;outline-offset:-3px}.profile-identity-edit{display:flex;align-items:center;gap:16px;width:100%;border:0;background:transparent;text-align:left;padding:8px 0;color:inherit;cursor:pointer}.profile-identity-edit>div{min-width:0;flex:1}.profile-identity-edit h2{overflow-wrap:anywhere}.profile-identity-pencil{color:#8250ed;display:flex;align-items:center;gap:6px;min-height:44px;font-size:13px;font-weight:700}.profile-editor{box-sizing:border-box;width:calc(100% - 32px);max-width:620px;max-height:92dvh;margin:auto;padding:0;border:0;border-radius:28px;background:#faf8fc;color:#242326;overflow:auto;overscroll-behavior:contain}.profile-editor::backdrop{background:rgba(23,17,32,.48)}.profile-editor form{padding:0 24px}.profile-editor-top{position:sticky;top:0;display:flex;align-items:center;justify-content:space-between;gap:16px;background:#faf8fc;z-index:2;padding:20px 0 16px;border-bottom:1px solid #e9e4ef}.profile-editor-top h2{font-size:25px;line-height:1.2;margin:4px 0;overflow-wrap:anywhere}.profile-editor-top .eyebrow{margin:0;font-size:12px}.profile-editor-top .icon-button{flex:none;width:44px;height:44px;min-height:44px}.profile-editor-hint{font-size:14px;line-height:1.5;color:#77717e;margin:16px 0 24px}.profile-editor-section{margin:0;border-bottom:1px solid #e9e4ef;padding:20px 0}.profile-editor-section:first-child{padding-top:0}.profile-editor-section>h3{margin:0 0 20px;font-size:20px}.profile-editor-section>summary{min-height:48px;font-size:18px;font-weight:700;line-height:1.4;cursor:pointer;padding:10px 0;list-style-position:outside;margin-left:18px}.profile-editor-section[open]>summary{margin-bottom:18px}.profile-editor label:not(.checkbox):not(.photo-label){display:block;font-size:14px;font-weight:600;margin:18px 0 8px}.profile-editor input:not([type=checkbox]):not([type=file]),.profile-editor textarea,.profile-editor select{display:block;box-sizing:border-box;width:100%;max-width:100%;min-height:48px;padding:12px 14px;border:1px solid #dcd4e8;border-radius:14px;background:#fff;color:#262329;font:inherit;font-size:16px}.profile-editor input[type=date]{min-width:0;appearance:none}.profile-editor textarea{resize:vertical;line-height:1.5}.profile-editor input:focus-visible,.profile-editor textarea:focus-visible,.profile-editor select:focus-visible{outline:2px solid #8250ed;outline-offset:2px}.profile-editor .field-help{font-size:13px;line-height:1.5;margin:10px 0 16px;color:#77717e}.profile-editor .checkbox{align-items:flex-start;line-height:1.5;font-size:14px;margin:18px 0;display:flex;gap:10px}.profile-editor .checkbox input{flex:none;min-width:20px;min-height:20px;margin-top:2px;accent-color:#8250ed}.profile-editor-photo{display:flex;align-items:center;gap:20px;margin-top:20px}.profile-editor-photo img,.profile-editor-photo .partner-avatar{width:84px;height:84px;border-radius:50%;object-fit:cover;display:block;flex:none}.profile-editor-photo-actions{display:flex;align-items:flex-start;flex-direction:column;gap:8px;min-width:0}.profile-editor-photo-actions .photo-label{margin:0;padding:10px 16px;font-size:14px;min-height:44px;display:flex;align-items:center}.profile-editor-photo-actions .text-button{min-height:44px;padding:6px 0}.profile-editor-choices{border:0;padding:0;min-width:0;margin:22px 0 16px}.profile-editor-choices legend{font-size:14px;line-height:1.5;font-weight:600;padding:0;margin-bottom:10px}.profile-editor-choices .touch-options{display:flex;gap:8px;flex-wrap:wrap;margin:0}.profile-editor-choices button{font:inherit;font-size:14px;line-height:1.4;min-height:44px;padding:10px 14px;border:1px solid #e2d8f3;border-radius:14px;background:#fff;color:#534a62;cursor:pointer;max-width:100%}.profile-editor-choices button[aria-pressed=true]{background:#8250ed;color:#fff;border-color:#8250ed}.profile-editor-list>div{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #e9e4ef}.profile-editor-list>div>span{flex:1;overflow-wrap:anywhere;font-size:14px;line-height:1.5}.profile-editor-list button{min-height:44px;flex:none}.profile-editor-section h4{font-size:16px;margin:24px 0 12px}.profile-editor-section>.button{width:auto;margin-top:16px;min-height:48px}.profile-editor-footer{position:sticky;bottom:0;padding:12px 0 max(16px,env(safe-area-inset-bottom));background:#faf8fc;border-top:1px solid #e9e4ef;z-index:2}.profile-editor-footer>div{display:grid;grid-template-columns:1fr 1.5fr;gap:12px}.profile-editor-footer .button{min-height:48px;padding:12px 16px;font-size:15px}.profile-editor-footer p{margin:0;font-size:13px;line-height:1.5;color:#a83351}.profile-editor-footer p:not(:empty){margin:0 0 12px}.profile-editor [hidden]{display:none!important}.profile-editor .text-button{font-size:14px}.profile-editor-section:last-child{border-bottom:0;margin-bottom:20px}
@media(max-width:600px){.profile-editor{width:100%;height:100dvh;max-height:100dvh;border-radius:0}.profile-editor form{padding:0 20px}.profile-editor-top{padding-top:max(16px,env(safe-area-inset-top));}.profile-editor-top h2{font-size:23px}.profile-identity-pencil>span{display:none}.profile-identity-pencil{width:44px;justify-content:center;flex:none}.partner-row-editable .partner-row{gap:10px!important;padding-left:12px!important}.partner-row-editable .partner-row .partner-avatar{width:44px;height:44px}.partner-row-editable .partner-score strong{font-size:23px}.partner-row-editable .partner-row-copy>span{font-size:11px}.profile-editor-footer{padding-bottom:max(16px,env(safe-area-inset-bottom))}}
@media(max-width:350px){.profile-editor form{padding:0 16px}.profile-editor-photo{gap:14px}.profile-editor-photo img,.profile-editor-photo .partner-avatar{width:72px;height:72px}.partner-row-editable{grid-template-columns:minmax(0,1fr) 44px}.partner-row-editable .partner-row{gap:8px!important}.partner-row-editable .partner-row .partner-avatar{width:40px;height:40px}.partner-row-editable .partner-score{min-width:40px}}
@media(prefers-reduced-motion:reduce){.profile-editor{animation:none!important;scroll-behavior:auto}}

body .profile-editor .profile-editor-top{display:flex!important}body .profile-editor .profile-editor-footer{display:block!important}

body .profile-editor .profile-editor-top::before,body .profile-editor .profile-editor-top::after{display:none!important;content:none!important}body .profile-editor .profile-editor-top{flex-wrap:nowrap;color:#242326}body .profile-editor .profile-editor-top>div{min-width:0;flex:1}body .profile-editor .profile-editor-footer{margin:0}.profile-editor-optional{margin-top:20px}.profile-editor-optional summary{min-height:44px;padding:10px 0;cursor:pointer;font-size:14px}.profile-editor-section{scroll-margin-top:120px}.profile-editor input,.profile-editor textarea,.profile-editor select,.profile-editor button{scroll-margin-block:130px 100px}

/* Clear controls stay outside native date/select controls and remain easy to tap. */
.profile-editor-input-row{display:flex;align-items:flex-start;gap:8px;min-width:0}
.profile-editor-input-row>input,.profile-editor-input-row>select,.profile-editor-input-row>textarea{flex:1;min-width:0}
.profile-editor-clear{display:grid;place-items:center;flex:0 0 44px;width:44px;height:48px;min-height:44px;padding:0;border:1px solid #e2d8f3;border-radius:14px;color:#70657d;background:#f0ebf6;font-size:24px;line-height:1;cursor:pointer}
.profile-editor-clear:focus-visible,.profile-editor-choice-clear:focus-visible{outline:2px solid #8250ed;outline-offset:2px}
.profile-editor-choices .profile-editor-choice-clear{margin-top:8px;background:transparent;border-color:transparent;color:#6b5b7a;font-size:13px;padding:8px 4px}
.profile-editor [aria-invalid=true]{border-color:#b92848!important;box-shadow:0 0 0 1px #b92848;background:#fff8f9!important}
.profile-editor [aria-invalid=true]:focus-visible{outline-color:#b92848}
.profile-editor .profile-editor-field-error{color:#a22541;font-size:13px;line-height:1.5;margin:8px 0 16px}
.profile-editor .checkbox{min-height:44px}
