/* Profile details and optional copies share one appearance in each theme. */
:root .profile-copy-dialog {
 --copy-bg:#241a12;--copy-ink:#f6e8cb;--copy-muted:#c8b68f;--copy-line:#98743b;--copy-field:#19120d;
 position:fixed;inset:0;width:min(540px,calc(100vw - 28px));max-height:88dvh;overflow-y:auto;
 margin:auto;padding:25px;border:1px solid var(--copy-line)!important;border-radius:16px;
 color:var(--copy-ink)!important;--light-text:var(--copy-ink);background:var(--copy-bg)!important;box-shadow:0 20px 70px #0006;
}
:root[data-theme=heirloom_light] .profile-copy-dialog {--copy-bg:#fff8ea;--copy-ink:#3d2919;--copy-muted:#725c43;--copy-line:#b89559;--copy-field:#fffdf7}
:root body[data-page=church-family] .profile-copy-dialog {--copy-bg:var(--church-panel);--copy-ink:var(--church-ink);--copy-muted:var(--church-muted);--copy-line:var(--church-line);--copy-field:var(--church-field)}
:root .profile-copy-dialog::backdrop {background:#09131bb8;backdrop-filter:blur(3px)}
:root .profile-copy-dialog h2 {margin:0 0 12px;font:600 29px/1.15 Georgia,serif;color:var(--copy-ink)!important}
:root .profile-copy-dialog p {font:15px/1.5 system-ui,sans-serif;color:var(--copy-ink)!important;margin:10px 0}
:root .profile-copy-dialog .profile-copy-eyebrow {font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--copy-muted)!important;margin:0 0 9px}
:root .profile-copy-dialog fieldset {padding:0;margin:22px 0;border:0;min-width:0}
:root .profile-copy-dialog legend {padding:0;margin-bottom:9px;font:600 18px/1.3 Georgia,serif;color:var(--copy-ink)!important}
:root .profile-copy-dialog :is(.profile-copy-target,.profile-copy-field) {display:flex;align-items:flex-start;gap:11px;margin:7px 0;padding:12px;border:1px solid var(--copy-line);border-radius:9px;background:var(--copy-field);cursor:pointer;font:15px/1.4 system-ui,sans-serif}
:root .profile-copy-dialog :is(.profile-copy-target,.profile-copy-field)>input {flex:none;width:20px;height:20px;min-height:20px;margin:2px 0 0;padding:0;accent-color:#c39a45}
:root .profile-copy-dialog :is(.profile-copy-target,.profile-copy-field)>span {display:grid;gap:3px;min-width:0;overflow-wrap:anywhere}
:root .profile-copy-dialog :is(strong,small,span,dd,dt) {color:var(--copy-ink)!important;--light-text:var(--copy-ink)}
:root .profile-copy-dialog .profile-copy-target small {font:12px/1.4 system-ui,sans-serif;color:var(--copy-muted)!important}
:root .profile-copy-dialog .profile-copy-field {padding:8px 12px;border-color:transparent;background:transparent}
:root .profile-copy-dialog .profile-copy-field strong {font-size:12px;color:var(--copy-muted)!important}
:root .profile-copy-dialog .profile-copy-existing {padding:0 10px;margin:0 0 12px}
:root .profile-copy-dialog .profile-copy-existing summary {font:12px/1.4 system-ui,sans-serif;color:var(--copy-muted)!important;min-height:30px;cursor:pointer}
:root .profile-copy-dialog dl {margin:8px 0 12px;font:13px/1.4 system-ui,sans-serif}
:root .profile-copy-dialog dl>div {display:grid;grid-template-columns:40% minmax(0,1fr);gap:8px;margin:6px 0}
:root .profile-copy-dialog dd {margin:0;overflow-wrap:anywhere}
:root .profile-copy-dialog .profile-copy-note {font-size:12px;color:var(--copy-muted)!important}
:root .profile-copy-dialog .profile-copy-status {font-size:13px;margin:10px 0}
:root .profile-copy-dialog .profile-copy-status:empty {display:none}
:root .profile-copy-dialog .profile-copy-actions {display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px;margin-top:17px}
:root .profile-copy-dialog button {min-height:44px;padding:10px 17px;border:1px solid var(--copy-line)!important;border-radius:9px;background:var(--copy-field)!important;color:var(--copy-ink)!important;--light-text:var(--copy-ink);font:16px/1.3 Georgia,serif;box-shadow:none!important}
:root .profile-copy-dialog button[type=submit] {background:linear-gradient(115deg,#ffda88,#e1b050)!important;color:#262017!important;--light-text:#262017;border-color:#d8ac58!important}
:root .profile-copy-dialog button:disabled {opacity:.5;cursor:default}
:root .profile-copy-dialog :is(input,button,summary):focus-visible {outline:2px solid #d8ac58!important;outline-offset:3px}
:root .profile-details-form {display:grid;gap:12px;margin:10px 0 16px;min-width:0}
:root .profile-details-form>label {display:flex;flex-wrap:wrap;gap:4px 6px;margin:0;font:15px/1.45 system-ui,sans-serif}
:root .profile-details-form>label>input {display:block;flex-basis:100%;width:100%;min-width:0;min-height:44px;margin:0;padding:10px 12px;font:16px/1.4 system-ui,sans-serif}
:root .profile-details-form>button {justify-self:start;min-height:44px;padding:10px 18px}
:root .profile-details-form p {margin:0}
:root .profile-details-form h2 {margin:0 0 4px}
:root .profile-self-choice {display:flex!important;align-items:center;gap:10px;font:15px/1.4 system-ui,sans-serif}
:root .profile-self-choice input {flex:none;width:20px!important;min-width:20px!important;height:20px!important;min-height:20px!important;margin:0}
:root .directory-my-profile {display:flex;justify-content:flex-end;margin:0 0 14px;font:13px/1.4 system-ui,sans-serif}
:root .directory-my-profile a {color:var(--church-accent);text-underline-offset:4px;min-height:35px;display:inline-flex;align-items:center}
@media(max-width:400px) {
 :root .profile-copy-dialog {padding:19px}
 :root .profile-copy-dialog h2 {font-size:25px}
 :root .profile-copy-dialog .profile-copy-actions button {flex:1;padding-inline:11px}
}
