.media-edit-dialog{width:min(92vw,850px);max-height:92vh;overflow:auto;border:0;border-radius:10px;padding:18px;color:#183340}.media-edit-dialog::backdrop{background:#102635aa}.media-edit-dialog header{display:flex;justify-content:space-between;margin-bottom:10px}.media-edit-dialog canvas{display:block;max-width:100%;max-height:65vh;margin:auto;touch-action:none;cursor:crosshair}.profile-contact{padding:8px 0;border-bottom:1px solid #d5e1e6}.profile-contact p{margin:4px 0}.profile-contact small{display:block}
dialog.subject-dialog:not([open]){display:none!important}dialog.subject-dialog[open]{display:block!important;position:fixed!important;inset:0!important;margin:auto!important;width:92vw!important;height:86vh!important;max-height:90vh!important;box-sizing:border-box;z-index:2147483647}#subject-map-large{height:calc(86vh - 60px)!important;min-height:300px}

.profile-media-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:10px;margin:12px 0}.profile-media-grid img,.profile-media-grid video{width:100%;height:110px;object-fit:contain}.upload-thumbnail{width:90px;height:90px;object-fit:contain;margin:6px;vertical-align:middle}[data-profile-panel][hidden]{display:none!important}[data-profile-tab]{padding:8px 12px!important;background:transparent!important;color:#174854!important;border:0!important}[data-profile-tab][aria-selected=true]{border-bottom:2px solid #067b8b!important}#profile-editor .record-field{gap:8px;margin:8px 0}#profile-contacts h2{font-size:16px}

/* Shared Person and Entity editor: one bounded layout for all contact rows. */
#profile-editor,#profile-contacts,#profile-claim{min-width:0;color:#183340}
#profile-editor .record-field{display:block;margin:0 0 12px;min-width:0}
#profile-editor .record-field>label{display:block;margin:0 0 5px;font-weight:600}
#profile-editor input:not([type=hidden]):not([type=checkbox]):not([type=radio]),#profile-editor select,#profile-editor textarea,#profile-contacts input:not([type=hidden]),#profile-contacts select,#profile-contacts textarea,#profile-claim input:not([type=hidden]):not([type=checkbox]):not([type=radio]),#profile-claim select,#profile-claim textarea{box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;border:1px solid #829da9!important;border-radius:4px!important;background-color:#fff!important;color:#183340!important;font-size:13px!important;padding:7px 8px!important;box-shadow:none!important}
#profile-editor input:not([type=hidden]),#profile-editor select,#profile-contacts input:not([type=hidden]),#profile-contacts select,#profile-claim select{min-height:36px}
#profile-editor :is(input,select,textarea):focus,#profile-contacts :is(input,select,textarea):focus,#profile-claim :is(input,select,textarea):focus{outline:2px solid #087c8c;outline-offset:1px}
#profile-contacts{container-type:inline-size;overflow-wrap:anywhere}
#profile-contacts h2{font-size:16px;margin:0 0 12px}
#profile-contacts fieldset{border:0;padding:0;margin:0;min-width:0}
#profile-contacts .phone-contact-row,#profile-contacts .compact-contact-row{display:grid;grid-template-columns:minmax(0,1fr) 78px 60px 54px;gap:6px;align-items:end;margin:0 0 12px;padding:0 0 12px;border-bottom:1px solid #e0e8ec;min-width:0}
#profile-contacts .phone-contact-row{grid-template-columns:64px minmax(70px,1fr) 78px 60px 54px}
#profile-contacts .phone-contact-row label,#profile-contacts .compact-contact-row label{display:flex;flex-direction:column;align-items:stretch;gap:5px;width:auto!important;min-width:0!important;margin:0!important;font-size:12px;font-weight:600;line-height:1.3;white-space:normal}
#profile-contacts button{box-sizing:border-box;min-height:36px;max-width:100%;padding:6px!important;font-size:12px;line-height:1.2;white-space:normal}
#profile-contacts .social-row{grid-template-columns:minmax(0,1fr) 105px 54px}
#profile-contacts .social-row label:first-of-type{grid-column:1/-1}
#profile-contacts .notification-row{margin:0 0 12px}
#profile-contacts .notification-row p{display:grid;grid-template-columns:100px minmax(0,1fr);align-items:center;gap:8px;margin:0}
#profile-contacts textarea.international-address{height:126px!important;min-height:126px;resize:vertical;line-height:23px!important;background-image:repeating-linear-gradient(to bottom,transparent 0,transparent 22px,#d7e3e8 22px,#d7e3e8 23px);background-origin:content-box;background-attachment:local}
#profile-contacts .address-row{align-items:start}
#profile-contacts .address-row button{margin-top:21px}
#profile-contacts .address-row label:nth-of-type(4){grid-column:1/3}
#profile-contacts .address-row>button[data-add-contact]{grid-column:4;grid-row:1}
#profile-contacts .compact-contact-row label:nth-of-type(4){grid-column:1/3}
#profile-contacts .compact-contact-row>button[data-add-contact]{grid-column:4;grid-row:1}
#profile-contacts .phone-contact-row label:nth-of-type(5){grid-column:2/5}
#profile-contacts .phone-contact-row>button[data-add-phone]{grid-column:5;grid-row:1}
#profile-contacts .social-row>button[data-add-contact]{grid-column:3;grid-row:2}
.public-profile-contact{overflow-wrap:anywhere;line-height:1.5;padding:8px 0;border-bottom:1px solid #e0e8ec}
@container(max-width:370px){#profile-contacts .phone-contact-row label:nth-of-type(5){grid-column:1/3}#profile-contacts .phone-contact-row>button[data-add-phone]{grid-column:3;grid-row:2}#profile-contacts .compact-contact-row>button[data-add-contact]{grid-column:3;grid-row:2}#profile-contacts .social-row>button[data-add-contact]{grid-column:3;grid-row:2}}
#profile-contacts [data-cancel-contact]{grid-column:1/-1;justify-self:end;background:#fff;color:#155466;border:1px solid #829da9;border-radius:4px;min-height:30px;padding:4px 10px!important}
#profile-contacts .select2-container,#profile-editor .select2-container,#profile-claim .select2-container{width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
#profile-contacts .select2-selection,#profile-contacts .select2-choice,#profile-editor .select2-selection,#profile-editor .select2-choice,#profile-claim .select2-selection,#profile-claim .select2-choice{border:1px solid #829da9!important;border-radius:4px!important;background:#fff!important;color:#183340!important;min-height:36px!important;box-sizing:border-box!important}
#profile-contacts .select2-selection__rendered,#profile-contacts .select2-chosen{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;max-width:100%!important;color:#183340!important}
#profile-contacts label>.select2-container{display:block!important;flex:none!important}
#profile-claim form p{margin:0 0 12px;line-height:1.4}
#profile-claim form p>label{display:block;margin-bottom:5px;font-weight:600}
#profile-claim [data-country-document-row]{border:1px solid #c4d3da;border-radius:5px;padding:10px;margin:10px 0}
.profile-media-grid form{display:inline}.profile-media-grid button{margin:3px 0}
@container(max-width:370px){#profile-contacts .phone-contact-row{grid-template-columns:64px minmax(0,1fr) 78px}#profile-contacts .phone-contact-row label:nth-of-type(4){grid-column:2}#profile-contacts .compact-contact-row{grid-template-columns:minmax(0,1fr) 78px 60px}#profile-contacts .compact-contact-row>button{grid-column:3;justify-self:end}#profile-contacts .social-row{grid-template-columns:minmax(0,1fr) 90px 54px}}
@container(max-width:260px){#profile-contacts .phone-contact-row,#profile-contacts .compact-contact-row,#profile-contacts .social-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}#profile-contacts .phone-contact-row label:nth-of-type(2),#profile-contacts .compact-contact-row label:first-of-type{grid-column:1/-1}#profile-contacts .compact-contact-row>button{grid-column:2}}

[data-repeat-entities]{min-width:0;max-width:100%}[data-entity-row]{display:flex;gap:6px;align-items:center;margin:6px 0}[data-entity-row] select{flex:1;min-width:0!important;width:100%!important;max-width:100%!important}[data-entity-row] .select2-container{flex:1;width:100%!important;min-width:0!important;max-width:100%!important}[data-entity-row] button{flex:none}#profile-claim form p:has([data-repeat-entities]){display:block}

/* Named addresses: one full-width location name, then address/type/primary. */
#profile-contacts .address-row:has([name$="-contact_location"]) label{grid-column:auto;grid-row:auto}
#profile-contacts .address-row label:has([name$="-contact_location"]){grid-column:1/-1!important;grid-row:1!important}
#profile-contacts .address-row:has([name$="-contact_location"]) label:has([name$="-contact_value"]){grid-column:1;grid-row:2}
#profile-contacts .address-row:has([name$="-contact_location"]) label:has([name$="-contact_use"]){grid-column:2;grid-row:2}
#profile-contacts .address-row:has([name$="-contact_location"]) label:has([name$="-contact_priority"]){grid-column:3;grid-row:2}
#profile-contacts .address-row:has([name$="-contact_location"]) label:has([name$="-contact_public"]){grid-column:1/4;grid-row:3}
#profile-contacts .address-row:has([name$="-contact_location"])>button[data-add-contact]{grid-column:4;grid-row:2}
@container(max-width:370px){#profile-contacts .address-row:has([name$="-contact_location"]) label:has([name$="-contact_value"]){grid-column:1/-1;grid-row:2}#profile-contacts .address-row:has([name$="-contact_location"]) label:has([name$="-contact_use"]){grid-column:1;grid-row:3}#profile-contacts .address-row:has([name$="-contact_location"]) label:has([name$="-contact_priority"]){grid-column:2;grid-row:3}#profile-contacts .address-row:has([name$="-contact_location"])>button[data-add-contact]{grid-column:3;grid-row:3}#profile-contacts .address-row:has([name$="-contact_location"]) label:has([name$="-contact_public"]){grid-column:1/-1;grid-row:4}}
@container(max-width:260px){#profile-contacts .address-row:has([name$="-contact_location"])>button[data-add-contact]{grid-column:2;grid-row:5}}

#profile-contacts .entity-location-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(70px,.45fr);gap:8px;padding:12px 0;border-bottom:1px solid #8a9eaa;min-width:0;scroll-margin-top:80px}
#profile-contacts .entity-location-row label{display:flex;flex-direction:column;gap:5px;min-width:0;font-weight:600;font-size:12px}
#profile-contacts .entity-location-row label:has([name$="-location_label"]),#profile-contacts .entity-location-row label:has([name$="-location_address"]),#profile-contacts .entity-location-row label:has([name$="-location_admin"]),#profile-contacts .entity-location-row small{grid-column:1/-1}
#profile-contacts .entity-location-row input,#profile-contacts .entity-location-row select,#profile-contacts .entity-location-row textarea{box-sizing:border-box;width:100%!important;min-width:0!important;border:1px solid #8a9eaa;background:#fff;color:#173442;padding:8px;border-radius:4px}
#profile-contacts .entity-location-row:target{outline:2px solid #007e91}

.location-contact-groups{grid-column:1/-1;min-width:0}.location-contact-groups fieldset{min-width:0;border:0;margin:8px 0;padding:0}.entity-location-row{margin-bottom:18px;padding:12px;border:1px solid #8ca3b4;border-radius:4px}.location-contact-groups h3{font-size:14px;margin:10px 0 6px}
