/* Person editor: mockup label/value tables, no shared layout overrides. */
#profile-contacts.person-contact-editor .contact-edit-card{min-width:0;margin:0 0 12px;padding:0}
#profile-contacts.person-contact-editor :is(h2,h3){font-size:inherit;margin:0 0 5px;font-weight:600}
#profile-contacts.person-contact-editor .contact-subsection{margin-top:12px;padding-top:0;border:0}
#profile-contacts.person-contact-editor fieldset{padding:0;margin:0;border:0;min-width:0}
#profile-contacts.person-contact-editor :is(.compact-contact-row,.phone-contact-row){display:flex!important;flex-direction:column;gap:0!important;padding:0!important;margin:0 0 10px;border:1px solid #c4ced6;min-width:0}
#profile-contacts.person-contact-editor :is(.compact-contact-row,.phone-contact-row)>label[data-contact-field]{display:grid!important;grid-template-columns:minmax(0,34fr) minmax(0,66fr);align-items:stretch;gap:0!important;margin:0!important;padding:0!important;border-bottom:1px solid #d0dae1;min-width:0}
#profile-contacts.person-contact-editor .contact-field-caption{display:flex;align-items:center;padding:10px 9px;background:#596c80;color:#fff;font-weight:400;line-height:1.35;min-width:0}
#profile-contacts.person-contact-editor label[data-contact-field]>:is(input,select,textarea,.select2-container){box-sizing:border-box;width:calc(100% - 12px)!important;min-width:0!important;max-width:calc(100% - 12px)!important;margin:6px!important;align-self:center}
#profile-contacts.person-contact-editor label[data-contact-field]>textarea{resize:vertical}
#profile-contacts.person-contact-editor label[data-contact-field]>.errorlist{grid-column:2}
#profile-contacts.person-contact-editor :is([data-add-phone],[data-add-contact],[data-cancel-contact]){align-self:flex-start;margin:5px 0;max-width:100%}
#profile-contacts.person-contact-editor .notification-row{border-top:1px solid #c4ced6;margin-top:12px;padding-top:10px}
#profile-contacts.person-contact-editor form[data-profile-contacts]>button[type=submit]{width:100%}
@container(max-width:240px){#profile-contacts.person-contact-editor .contact-field-caption{padding:7px 5px;font-size:.9em}}

#profile-contacts.person-contact-editor .phone-contact-row>[data-contact-field="contact_phone_country"]{order:1}
#profile-contacts.person-contact-editor .phone-contact-row>[data-contact-field="contact_value"]{order:2}
#profile-contacts.person-contact-editor .phone-contact-row>[data-contact-field="contact_kind"]{order:3}
#profile-contacts.person-contact-editor .phone-contact-row>[data-contact-field="contact_priority"]{order:4}
#profile-contacts.person-contact-editor .phone-contact-row>[data-contact-field="contact_public"]{order:5}
#profile-contacts.person-contact-editor :is(.phone-contact-row,.compact-contact-row)>button{order:20}

#profile-contacts.person-contact-editor :is(.compact-contact-row,.phone-contact-row){align-items:stretch!important}
#profile-contacts.person-contact-editor :is(.compact-contact-row,.phone-contact-row)>label[data-contact-field]{width:100%!important;max-width:100%!important;box-sizing:border-box;align-self:stretch}
#profile-contacts.person-contact-editor label[data-contact-field]>.contact-field-caption{width:auto!important;max-width:none!important}

/* Repeat-record actions have one size, including newly added rows. */
#profile-contacts.person-contact-editor :is([data-add-phone],[data-add-contact]){box-sizing:border-box;width:200px;min-height:38px;padding:8px 12px;text-align:center;white-space:normal;line-height:1.3;max-width:100%}

/* Notifications use the same compact label/value table as contact records. */
#profile-contacts.person-contact-editor .notification-table label{display:grid!important;grid-template-columns:minmax(0,34fr) minmax(0,66fr);width:100%!important;margin:0!important;gap:0;border:1px solid #c4ced6;box-sizing:border-box;min-width:0}
#profile-contacts.person-contact-editor .notification-table select{box-sizing:border-box;width:calc(100% - 12px)!important;min-width:0;max-width:calc(100% - 12px);margin:6px;align-self:center}
#profile-contacts.person-contact-editor .notification-table .errorlist{grid-column:2}
#profile-contacts.person-contact-editor .social-access-status{font-size:12px;margin:5px 0;line-height:1.4}

/* Entity locations reuse the same label/value presentation and nested contacts. */
#profile-contacts.person-contact-editor .entity-location-row{display:block!important;min-width:0;margin:0 0 14px;padding:0;border:1px solid #c4ced6}
#profile-contacts.person-contact-editor .entity-location-row>label[data-contact-field]{display:grid!important;grid-template-columns:minmax(0,34fr) minmax(0,66fr);gap:0!important;margin:0!important;width:100%!important;max-width:100%!important;border-bottom:1px solid #d0dae1;box-sizing:border-box;min-width:0}
#profile-contacts.person-contact-editor .location-contact-groups{padding:8px;min-width:0}
#profile-contacts.person-contact-editor [data-add-entity-location]{box-sizing:border-box;width:200px;min-height:38px;padding:8px 12px;max-width:100%;white-space:normal}
