/* Dejtify v86.258 — Profile v1 production + candidate shell. */
body.dejtify-profile-candidate-v251 .entry-content,
body.dejtify-profile-candidate-v251 .page-content,
body.dejtify-profile-candidate-v251 main,
body.dejtify-profile-live-v258 .entry-content,
body.dejtify-profile-live-v258 .page-content,
body.dejtify-profile-live-v258 main{overflow:visible}
.dejtify-profile-public-v251{width:min(1180px,calc(100% - 32px));margin:28px auto 44px;color:#3e312d;font-family:inherit}
.dejtify-profile-public-v251 *{box-sizing:border-box}
.dejtify-profile-public-v251 a{text-decoration:none}
.djpf-v251-banner{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 14px;padding:12px 15px;border:1px solid #eadfd8;border-radius:14px;background:#fff;color:#64534d;font-size:13px;box-shadow:0 6px 20px rgba(63,44,38,.04)}
.djpf-v251-banner strong{color:#3e312d}.djpf-v251-banner span{color:#8a7b75}
.djpf-v251-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:22px;align-items:start}
.djpf-v251-profile{overflow:hidden;border:1px solid #eadfd8;border-radius:22px;background:#fff;box-shadow:0 16px 44px rgba(75,48,39,.08)}
.djpf-v251-hero{display:grid;grid-template-columns:minmax(320px,45%) 1fr;background:linear-gradient(135deg,#fffaf6 0%,#f7ece6 100%)}
.djpf-v251-photo{min-height:500px;background:#eee5e1;overflow:hidden}
.djpf-v251-photo img{display:block;width:100%;height:100%;min-height:500px;object-fit:cover;object-position:center;max-width:none!important;border:0!important;border-radius:0!important;clip-path:none!important;-webkit-clip-path:none!important;mask:none!important;-webkit-mask:none!important;filter:none!important}
.djpf-v251-no-photo{min-height:500px;display:flex;align-items:center;justify-content:center;color:#8b7c76}
.djpf-v251-summary{padding:46px 44px;display:flex;flex-direction:column;justify-content:center}
.djpf-v251-status{display:flex;align-items:center;gap:9px;color:#81716b;font-weight:800;font-size:12px;text-transform:uppercase;letter-spacing:.08em}
.djpf-v251-status i{display:block;width:11px;height:11px;border-radius:50%;background:#c8bdb7}.djpf-v251-status.is-online i{background:#36c27a;box-shadow:0 0 0 5px rgba(54,194,122,.12)}
.djpf-v251-summary h1{margin:14px 0 8px;font-family:Georgia,'Times New Roman',serif;font-size:50px;line-height:1.02;color:#3d302c;overflow-wrap:anywhere}
.djpf-v251-subline{font-size:20px;color:#765f57}.djpf-v251-subline b{font-weight:500}.djpf-v251-subline span{margin:0 7px;color:#b5a29a}
.djpf-v251-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:26px 0 22px}
.djpf-v251-fact{padding:13px 14px;border:1px solid #e8dbd4;border-radius:14px;background:rgba(255,255,255,.72)}
.djpf-v251-fact small{display:block;margin-bottom:5px;color:#9b8880;font-size:11px;letter-spacing:.07em;text-transform:uppercase}.djpf-v251-fact strong{font-size:15px;color:#433632}
.djpf-v251-own-credit{display:inline-flex;align-items:center;gap:7px;margin:0 0 18px;padding:8px 12px;border-radius:999px;background:#fff;border:1px solid #e7d9d2;color:#6c5b55;font-size:13px;font-weight:750;width:max-content}
.djpf-v251-actions{display:flex;gap:10px;flex-wrap:wrap}.djpf-v251-action{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 19px;border-radius:999px;border:1px solid #e1d5cf;background:#fff;color:#65534c;font-weight:800;transition:transform .12s ease,box-shadow .12s ease}.djpf-v251-action:hover{transform:translateY(-1px);box-shadow:0 6px 16px rgba(74,50,42,.08)}.djpf-v251-action.is-primary{border-color:#ef7774;background:#ef7774;color:#fff}
.djpf-v251-content{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:18px;padding:24px;background:#fff}
.djpf-v251-main{display:grid;gap:15px}.djpf-v251-section{padding:21px 22px;border:1px solid #eee5df;border-radius:17px;background:#fff;box-shadow:0 4px 16px rgba(70,45,36,.03)}
.djpf-v251-section h2{margin:0 0 11px;font-family:Georgia,'Times New Roman',serif;font-size:27px;line-height:1.08;color:#44342f}.djpf-v251-section p{margin:0;color:#5e504b;font-size:15px;line-height:1.72;white-space:normal}.djpf-v251-empty{color:#9a8b85!important}
.djpf-v251-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.djpf-v251-thumb{appearance:none;padding:0;border:0;border-radius:12px;overflow:hidden;aspect-ratio:1/1;background:#eee;cursor:pointer}.djpf-v251-thumb img{display:block;width:100%;height:100%;object-fit:cover}.djpf-v251-thumb.is-current{outline:2px solid #ef6d69;outline-offset:2px}
.djpf-v251-side{display:grid;gap:16px;position:sticky;top:90px}.djpf-v251-meet{min-height:0}.djpf-v251-meet.dsp_meet_me{width:100%}
.djpf-v251-note{padding:13px 14px;border:1px solid #eadfd8;border-radius:14px;background:#fffaf6;color:#7e6e68;font-size:12px;line-height:1.5}
@media(max-width:980px){.djpf-v251-layout{grid-template-columns:1fr}.djpf-v251-side{position:static;grid-template-columns:minmax(250px,340px) 1fr;align-items:start}.djpf-v251-content{grid-template-columns:1fr 260px}}
@media(max-width:760px){.dejtify-profile-public-v251{width:100%;margin:0 auto 28px}.djpf-v251-banner{margin:0 14px 12px;border-radius:12px;align-items:flex-start;flex-direction:column}.djpf-v251-layout{gap:14px}.djpf-v251-profile{border-left:0;border-right:0;border-radius:0;box-shadow:none}.djpf-v251-hero{grid-template-columns:1fr}.djpf-v251-photo,.djpf-v251-photo img,.djpf-v251-no-photo{min-height:0;aspect-ratio:4/5}.djpf-v251-summary{padding:24px 20px}.djpf-v251-summary h1{font-size:39px}.djpf-v251-subline{font-size:18px}.djpf-v251-facts{grid-template-columns:1fr 1fr;gap:9px;margin:22px 0 18px}.djpf-v251-fact:last-child{grid-column:1/-1}.djpf-v251-actions{display:grid;grid-template-columns:1fr}.djpf-v251-action{width:100%}.djpf-v251-content{grid-template-columns:1fr;padding:15px}.djpf-v251-section{padding:18px}.djpf-v251-section h2{font-size:26px}.djpf-v251-side{grid-template-columns:1fr;padding:0 14px}.djpf-v251-side .dejtify-meet-core-host-v241{width:min(340px,100%)!important;max-width:340px!important}.djpf-v251-note{display:none}}
@media(max-width:420px){.djpf-v251-summary{padding:21px 18px}.djpf-v251-summary h1{font-size:35px}.djpf-v251-content{padding:12px}.djpf-v251-section{padding:16px}.djpf-v251-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* v86.261: lightweight image interaction protection on Dejtify-owned Profile. */
.dejtify-profile-public-v251 .djpf-v251-photo img,.dejtify-profile-public-v251 .djpf-v251-gallery img{-webkit-user-drag:none;-webkit-touch-callout:none;user-select:none}


/* v86.269 – first-party own-profile navigation & safe profile text editor. */
.djpf-v269-nav{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px;padding:10px;background:#fff;border:1px solid #eee5df;border-radius:16px}
.djpf-v269-nav a{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:9px 14px;border-radius:999px;color:#66544e;font-size:14px;font-weight:700;text-decoration:none;background:#fff8f5}
.djpf-v269-nav a:focus-visible,.djpf-v269-nav a:hover{outline:2px solid #ee7978;outline-offset:2px;color:#533a37}
.djpf-v269-nav .djpf-v269-edit-link{background:#ed7777;color:#fff}
.dejtify-profile-public-v251 [id^="djpf-"]{scroll-margin-top:105px}
.djpf-v269-edit{max-width:900px}
.djpf-v269-edit-card{border:1px solid #eee0d8;border-radius:22px;background:#fff;box-shadow:0 12px 34px rgba(75,48,39,.06);padding:clamp(20px,4vw,40px)}
.djpf-v269-edit-head h1{font:700 clamp(29px,4vw,42px)/1.12 Georgia,serif;color:#41332e;margin:0 0 14px}
.djpf-v269-edit-head p{font-size:15px;color:#6c5e58;line-height:1.55;margin:0 0 14px}
.djpf-v269-form{display:grid;gap:12px;max-width:760px}
.djpf-v269-form label{font-weight:750;color:#443631;margin-top:8px}
.djpf-v269-form textarea{display:block;box-sizing:border-box;width:100%;min-height:108px;resize:vertical;border:1px solid #ddcdc5!important;border-radius:14px!important;background:#fff!important;color:#41312f!important;outline:0;padding:14px 16px!important;font:400 16px/1.5 system-ui!important}
.djpf-v269-form textarea:focus{border-color:#e56d75!important;box-shadow:0 0 0 3px rgba(229,109,117,.12)!important}
.djpf-v269-form-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:8px}
.djpf-v269-form button:disabled{opacity:.65;cursor:wait}
.djpf-v269-feedback{margin:3px 0;color:#24764a;font-size:14px;min-height:1em}
.djpf-v269-feedback.is-error{color:#a62637}
@media(max-width:760px){
 .djpf-v269-nav{margin:10px 12px;padding:8px;display:flex;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
 .djpf-v269-nav a{white-space:nowrap;flex:0 0 auto;font-size:13px;min-height:40px}
 .dejtify-profile-public-v251[data-dejtify-own-profile="1"] .djpf-v251-photo,.dejtify-profile-public-v251[data-dejtify-own-profile="1"] .djpf-v251-photo img{aspect-ratio:4/3;max-height:420px;object-position:center 30%}
 .dejtify-profile-public-v251[data-dejtify-own-profile="1"] .djpf-v251-summary{padding:20px}
 .dejtify-profile-public-v251[data-dejtify-own-profile="1"] .djpf-v251-facts{margin:14px 0}
 .djpf-v269-edit-card{border-radius:17px;padding:20px 16px}
 .djpf-v269-form-actions{display:grid;grid-template-columns:1fr}
}


/* v86.270 — own-profile dashboard refinement. Scoped: no other member, Meet Me,
 * Members or WP Dating subroute layout is modified by these selectors. */
.dejtify-profile-public-v251[data-dejtify-own-profile="1"] .djpf-v270-heading{display:flex;justify-content:space-between;align-items:end;gap:14px;padding:14px 2px 16px}
.djpf-v270-heading span{font:750 11px/1.2 system-ui,sans-serif;color:#b35d68;letter-spacing:.13em}
.djpf-v270-heading h2{font:700 clamp(28px,3.4vw,39px)/1.12 Georgia,serif;color:#40332f;margin:5px 0 0}
.djpf-v270-heading p{font:400 13px/1.4 system-ui,sans-serif;color:#786963;margin:0}
.dejtify-profile-public-v251[data-dejtify-own-profile="1"] .djpf-v251-hero{grid-template-columns:minmax(180px,245px) minmax(0,1fr);min-height:0}
.dejtify-profile-public-v251[data-dejtify-own-profile="1"] .djpf-v251-photo{min-height:0;aspect-ratio:3/4}
.dejtify-profile-public-v251[data-dejtify-own-profile="1"] .djpf-v251-photo img,.dejtify-profile-public-v251[data-dejtify-own-profile="1"] .djpf-v251-no-photo{min-height:0;width:100%;height:100%;aspect-ratio:auto;object-fit:cover;object-position:center 30%;max-height:none}
.dejtify-profile-public-v251[data-dejtify-own-profile="1"] .djpf-v251-summary{padding:clamp(18px,3vw,32px);min-width:0}
.dejtify-profile-public-v251[data-dejtify-own-profile="1"] .djpf-v251-summary h1{font-size:clamp(28px,3vw,40px);overflow-wrap:anywhere}
.dejtify-profile-public-v251[data-dejtify-own-profile="1"] .djpf-v251-facts{margin:18px 0 16px}
.dejtify-profile-public-v251[data-dejtify-own-profile="1"] .djpf-v251-own-credit{margin-bottom:13px}
.dejtify-profile-public-v251[data-dejtify-own-profile="1"] .djpf-v251-actions{display:flex;gap:8px}
.dejtify-profile-public-v251[data-dejtify-own-profile="1"] .djpf-v251-action{font-size:14px}
/* v86.271: keep a REAL summary box on mobile. v86.270 display:contents
 * promoted all its children into the parent's grid and could reorder/clip the
 * entire profile when the host theme applied its own grid/contain rules. */
@media(max-width:760px){
 .dejtify-profile-public-v251[data-dejtify-own-profile="1"] .djpf-v270-heading{padding:14px 19px 9px;align-items:flex-start;flex-direction:column;gap:4px}
 .dejtify-profile-public-v251[data-dejtify-own-profile="1"] .djpf-v270-heading p{font-size:12px}
 .dejtify-profile-public-v251[data-dejtify-own-profile="1"] .djpf-v251-hero{display:flex;flex-direction:column;padding:0;min-height:0;gap:0}
 .dejtify-profile-public-v251[data-dejtify-own-profile="1"] .djpf-v251-photo{width:100%;height:clamp(180px,37vw,265px);aspect-ratio:auto;min-height:0;border-radius:0;overflow:hidden;flex:none}
 .dejtify-profile-public-v251[data-dejtify-own-profile="1"] .djpf-v251-photo img,.dejtify-profile-public-v251[data-dejtify-own-profile="1"] .djpf-v251-no-photo{width:100%;height:100%;min-height:0;aspect-ratio:auto;object-fit:cover;object-position:center 36%}
 .dejtify-profile-public-v251[data-dejtify-own-profile="1"] .djpf-v251-summary{display:flex;flex-direction:column;gap:0;padding:20px 18px 22px;min-width:0}
 .dejtify-profile-public-v251[data-dejtify-own-profile="1"] .djpf-v251-summary h1{font-size:clamp(27px,7vw,36px);line-height:1.13;margin:10px 0 8px;overflow-wrap:anywhere}
 .dejtify-profile-public-v251[data-dejtify-own-profile="1"] .djpf-v251-status{font-size:11px}
 .dejtify-profile-public-v251[data-dejtify-own-profile="1"] .djpf-v251-subline{font-size:16px;line-height:1.5;overflow-wrap:anywhere}
 .dejtify-profile-public-v251[data-dejtify-own-profile="1"] .djpf-v251-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:17px 0 13px}
 .dejtify-profile-public-v251[data-dejtify-own-profile="1"] .djpf-v251-fact{min-width:0;padding:11px 12px}
 .dejtify-profile-public-v251[data-dejtify-own-profile="1"] .djpf-v251-fact:last-child{grid-column:1/-1}
 .dejtify-profile-public-v251[data-dejtify-own-profile="1"] .djpf-v251-own-credit{width:max-content;max-width:100%;margin:0 0 14px}
 .dejtify-profile-public-v251[data-dejtify-own-profile="1"] .djpf-v251-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:9px;width:100%}
 .dejtify-profile-public-v251[data-dejtify-own-profile="1"] .djpf-v251-action{width:100%;font-size:13px;padding:10px 7px;text-align:center;min-width:0}
 .dejtify-profile-public-v251[data-dejtify-own-profile="1"] .djpf-v269-nav{margin:7px 12px 10px}
}
@media(max-width:390px){
 .dejtify-profile-public-v251[data-dejtify-own-profile="1"] .djpf-v251-photo{height:185px}
 .dejtify-profile-public-v251[data-dejtify-own-profile="1"] .djpf-v251-summary{padding:18px 15px 20px}
}

/* v86.272 — independent, visible profile document for every screen size.
 * Never style or hide global WP Dating components outside our document. */
body.dejtify-profile-live-v258 #dejtify-profile-document-v272{
 display:block!important;visibility:visible!important;opacity:1!important;
 position:relative!important;float:none!important;clear:both!important;
 width:100%!important;max-width:none!important;min-width:0!important;
 min-height:60vh;background:#fffaf6;color:#3e312d;
 overflow:visible!important;contain:none!important;margin:0!important;padding:14px 0 32px!important;
}
#dejtify-profile-document-v272 .dejtify-profile-public-v251{
 display:block!important;visibility:visible!important;opacity:1!important;
 position:relative!important;width:min(1180px,calc(100% - 32px));
 margin:0 auto 32px!important;max-width:1180px;min-width:0;
}
#dejtify-profile-document-v272 .djpf-v251-layout{display:grid!important;min-width:0}
#dejtify-profile-document-v272 .djpf-v251-profile{display:block!important;visibility:visible!important;min-width:0}
#dejtify-profile-document-v272 .djpf-v251-side{min-width:0}
#dejtify-profile-document-v272 .djpf-v272-error{
 max-width:700px;margin:32px auto;padding:24px;background:#fff;
 border:1px solid #ecdcd4;border-radius:16px;color:#604a44;
}
@media(max-width:980px){
 #dejtify-profile-document-v272 .djpf-v251-layout{grid-template-columns:minmax(0,1fr)!important}
 #dejtify-profile-document-v272 .djpf-v251-side{position:static!important}
}
@media(max-width:760px){
 body.dejtify-profile-live-v258 #dejtify-profile-document-v272{padding:0 0 22px!important}
 #dejtify-profile-document-v272 .dejtify-profile-public-v251{width:100%;margin:0 auto 20px!important}
 #dejtify-profile-document-v272 .djpf-v251-layout{grid-template-columns:minmax(0,1fr)!important}
 #dejtify-profile-document-v272 .djpf-v251-side{display:grid;grid-template-columns:minmax(0,1fr)!important;padding:0 14px}
 #dejtify-profile-document-v272 .djpf-v251-hero{display:flex;flex-direction:column}
 #dejtify-profile-document-v272 .djpf-v251-content{grid-template-columns:minmax(0,1fr)}
}

/* v86.273 — one native Profile document; only account/diagnostic fallbacks. */
#dejtify-profile-document-v272 .djpf-v273-account-note{padding:15px 20px;margin:0 0 12px;background:#fff3e9;border:1px solid #ecd7c7;border-radius:15px;color:#65483c;font-size:14px;line-height:1.55}
#dejtify-profile-document-v272 .djpf-v273-debug{max-width:1180px;margin:0 auto 16px;padding:12px 16px;background:#f4f8fb;border:1px solid #d5e3ed;border-radius:13px;color:#31414b;font:14px/1.5 system-ui,sans-serif}
#dejtify-profile-document-v272 .djpf-v273-debug dl{display:grid;grid-template-columns:minmax(120px,1fr) 2fr;gap:5px 14px;margin:10px 0 0}
#dejtify-profile-document-v272 .djpf-v273-debug dt{font-weight:650}
#dejtify-profile-document-v272 .djpf-v273-debug dd{margin:0;overflow-wrap:anywhere}
@media(max-width:760px){#dejtify-profile-document-v272 .djpf-v273-debug{margin:8px 12px 14px}#dejtify-profile-document-v272 .djpf-v273-debug dl{grid-template-columns:1fr}#dejtify-profile-document-v272 .djpf-v273-debug dd{margin-bottom:7px}}

/* v86.275 — functional profile navigation and fuller, balanced account view.
 * Scoped to Dejtify's live profile document, never to WP Dating pages. */
#dejtify-profile-document-v272 .djpf-v269-nav{display:flex;flex-wrap:wrap;gap:8px;overflow:visible;max-width:100%;scrollbar-width:none;padding:9px!important;border:1px solid #eddfd8;border-radius:15px;background:#fff}
#dejtify-profile-document-v272 .djpf-v269-nav a{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;padding:10px 14px;border-radius:999px;background:#fff8f5;color:#5d4d47;font-size:14px;font-weight:650;min-height:42px;text-decoration:none}
#dejtify-profile-document-v272 .djpf-v269-nav a:hover,#dejtify-profile-document-v272 .djpf-v269-nav a:focus-visible{background:#fae5e4;color:#a43f51;outline:2px solid #db8c91;outline-offset:2px}
#dejtify-profile-document-v272 .djpf-v269-nav .djpf-v269-edit-link{background:#ee777c;color:#fff}
#dejtify-profile-document-v272 .djpf-v269-nav .djpf-v269-edit-link:hover{background:#cf5d66;color:#fff}
#dejtify-profile-document-v272 :is(#djpf-about,#djpf-interests,#djpf-match,#djpf-pictures,#djpf-meet){scroll-margin-top:120px}
#dejtify-profile-document-v272 .djpf-v275-account-summary{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 16px;padding:0 0 15px;margin:5px 0 14px;border-bottom:1px solid #f0e3dc;color:#78625b;font-size:13px;font-weight:600}
#dejtify-profile-document-v272 .djpf-v275-account-summary span:first-child{color:#9f4b58;font-weight:750}
#dejtify-profile-document-v272 .djpf-v251-profile .djpf-v251-section h2{font-size:clamp(25px,3vw,39px);line-height:1.16;margin:0 0 12px}
#dejtify-profile-document-v272 .djpf-v251-section{scroll-margin-top:110px}
@media(max-width:760px){
 #dejtify-profile-document-v272 .dejtify-profile-public-v251[data-dejtify-own-profile="1"] .djpf-v269-nav{margin:12px 16px 14px!important;gap:7px;padding:10px!important}
 #dejtify-profile-document-v272 .dejtify-profile-public-v251[data-dejtify-own-profile="1"] .djpf-v269-nav a{font-size:13px;min-height:42px;padding:10px 12px}
 #dejtify-profile-document-v272 .dejtify-profile-public-v251[data-dejtify-own-profile="1"] .djpf-v251-hero{display:flex!important;flex-direction:column!important}
 #dejtify-profile-document-v272 .dejtify-profile-public-v251[data-dejtify-own-profile="1"] .djpf-v251-summary{order:0;padding:22px 20px!important}
 #dejtify-profile-document-v272 .dejtify-profile-public-v251[data-dejtify-own-profile="1"] .djpf-v251-photo{order:1;height:clamp(210px,58vw,320px);border-radius:0 0 15px 15px}
 #dejtify-profile-document-v272 .dejtify-profile-public-v251[data-dejtify-own-profile="1"] .djpf-v251-photo img{object-position:center 34%}
 #dejtify-profile-document-v272 .djpf-v251-section{margin:0 0 16px;padding:22px 20px}
 #dejtify-profile-document-v272 .djpf-v251-section h2{font-size:30px!important}
}

/* v86.276 first-party profile editor sections; no theme/WP Dating DOM patches. */
#dejtify-profile-document-v272 .djpf-v276-county,#dejtify-profile-document-v272 .djpf-v276-images{margin-top:16px}
#dejtify-profile-document-v272 .djpf-v276-county h2,#dejtify-profile-document-v272 .djpf-v276-images h2{font-size:clamp(25px,3vw,35px);margin:0 0 10px}
#dejtify-profile-document-v272 .djpf-v276-county form{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:15px}
#dejtify-profile-document-v272 .djpf-v276-county select{flex:1 1 230px;min-height:46px;padding:9px 13px;border:1px solid #e1d5cf;border-radius:13px;background:#fff;color:#423635;font-size:16px;font-weight:600;line-height:1.4}
#dejtify-profile-document-v272 .djpf-v276-county label{font-weight:700}
#dejtify-profile-document-v272 .djpf-v276-image-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:12px;margin-top:14px}
#dejtify-profile-document-v272 .djpf-v276-image-grid figure{margin:0;border:1px solid #eadbd3;border-radius:13px;overflow:hidden;background:#fff}
#dejtify-profile-document-v272 .djpf-v276-image-grid img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover;border:0!important}
#dejtify-profile-document-v272 .djpf-v276-image-grid figcaption{padding:8px 10px;font-size:13px;color:#705b52}
@media(max-width:760px){#dejtify-profile-document-v272 .djpf-v276-county form{align-items:stretch;flex-direction:column}#dejtify-profile-document-v272 .djpf-v276-county select,#dejtify-profile-document-v272 .djpf-v276-county form button{width:100%;flex:auto}}

/* v86.279 – full first-party mobile/desktop profile photo edit. */
.djpf-v279-photo-upload{display:grid;gap:12px;margin:18px 0 26px;padding:clamp(12px,2.5vw,22px);background:#fff9f5;border:1px solid #eadbd4;border-radius:16px}
.djpf-v279-photo-upload label{font-weight:750;color:#413632}
.djpf-v279-photo-upload input[type=file]{width:100%;max-width:100%;box-sizing:border-box;background:#fff;border:1px solid #ded0c8;border-radius:12px;padding:11px;font:500 15px/1.4 system-ui;min-height:48px}
.djpf-v279-photo-hint{font:400 13px/1.5 system-ui;color:#725f56;margin:0}
.djpf-v279-photo-actions{display:flex;flex-wrap:wrap;gap:10px}.djpf-v279-photo-actions button{min-height:46px;flex:1 1 175px}
.djpf-v279-select-primary{display:block;width:100%;min-height:42px;border:1px solid #e9ccd0;border-radius:12px;background:#fff6f5;color:#914357;font:700 13px/1.3 system-ui;padding:8px;cursor:pointer}
.djpf-v276-image-grid figure{min-width:0;overflow:hidden}.djpf-v276-image-grid figure img{width:100%;max-width:100%;display:block;object-fit:cover;aspect-ratio:4/5}.djpf-v276-image-grid figcaption{padding:9px 2px}
@media(max-width:620px){.djpf-v279-photo-actions{display:grid;grid-template-columns:1fr}.djpf-v279-photo-actions button{width:100%}.djpf-v276-image-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* v357: native Swedish profile editor, readable on small and large screens. */
#dejtify-profile-edit-v269 .djpf-v357-counter{display:block;justify-self:end;font-size:12px;color:#77645b;margin:-7px 2px 6px;font-variant-numeric:tabular-nums}
#dejtify-profile-edit-v269 .djpf-v269-form.djpf-v357-dirty .djpf-v269-feedback:not(.is-error){color:#80513c}
#dejtify-profile-edit-v269 .djpf-v269-form textarea{max-width:100%;min-width:0;scroll-margin-top:115px}
#dejtify-profile-edit-v269 .djpf-v269-form-actions{position:relative;z-index:1}
@media(max-width:760px){#dejtify-profile-edit-v269 .djpf-v269-form textarea{min-height:120px;font-size:16px!important}#dejtify-profile-edit-v269 .djpf-v269-form-actions button{min-height:46px}}

/* v358: one verified, responsive Dejtify route bar; only inside our own pages. */
.djtf-v358-route-nav{display:flex;align-items:center;flex-wrap:wrap;gap:9px;min-width:0;margin:0 0 17px;padding:10px 12px;border:1px solid #eddfd8;border-radius:15px;background:#fff;box-shadow:0 4px 13px rgba(64,43,39,.035)}
.djtf-v358-route-nav a{display:inline-flex;align-items:center;justify-content:center;min-height:42px;max-width:100%;padding:9px 15px;border-radius:11px;background:#fff1f2;color:#713747!important;font-size:14px;line-height:1.25;font-weight:700;text-decoration:none!important;white-space:normal;overflow-wrap:anywhere}
.djtf-v358-route-nav a:hover,.djtf-v358-route-nav a:focus-visible{background:#f8dce2;color:#68293d!important;outline:2px solid #d98a9c;outline-offset:2px}
@media(max-width:540px){.djtf-v358-route-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:10px;margin:0 0 13px}.djtf-v358-route-nav a{min-width:0;padding:9px 8px;text-align:center}.djtf-v358-route-nav a:first-child:nth-last-child(3){grid-column:span 2}}
@media(prefers-reduced-motion:reduce){.djtf-v358-route-nav a{transition:none}}

/* v361: Mobile profile route links must not form a tall, partially obscured grid.
 * Only first-party profile navigation is affected: WP Dating menus are untouched. */
#dejtify-profile-document-v272 .djtf-v358-route-nav { box-sizing:border-box; max-width:100%; }
#dejtify-profile-document-v272 .djtf-v358-route-nav a { box-sizing:border-box; }
#dejtify-profile-document-v272 .djpf-v361-gallery-status { min-height:0; margin:9px 0 0; color:#725e66; font-size:13px; line-height:1.4; }
#dejtify-profile-document-v272 .djpf-v361-gallery-status:empty { display:none; }
#dejtify-profile-document-v272 .djpf-v251-thumb[aria-busy="true"] { outline:2px solid #aa4a7d; outline-offset:2px; opacity:.72; }
#dejtify-profile-document-v272 :is(#dejtify-profile-public-v251,#djpf-about,#djpf-interests,#djpf-match,#djpf-pictures,#djpf-meet) { scroll-margin-top:clamp(110px,19vh,205px); }
@media(max-width:760px) {
 #dejtify-profile-document-v272 .dejtify-profile-public-v251 > .djtf-v358-route-nav,
 #dejtify-profile-document-v272 #dejtify-profile-edit-v269 > .djtf-v358-route-nav {
  display:flex!important; flex-flow:row nowrap!important; grid-template-columns:none!important;
  align-items:center; width:auto; max-width:calc(100% - 24px); min-width:0;
  margin:8px 12px 14px!important; padding:8px!important; gap:7px!important;
  overflow-x:auto!important; overflow-y:hidden; overscroll-behavior-x:contain;
  -webkit-overflow-scrolling:touch; scrollbar-width:thin;
 }
 #dejtify-profile-document-v272 .dejtify-profile-public-v251 > .djtf-v358-route-nav a,
 #dejtify-profile-document-v272 #dejtify-profile-edit-v269 > .djtf-v358-route-nav a {
  flex:0 0 auto!important; grid-column:auto!important; width:auto!important; max-width:none;
  min-height:42px; white-space:nowrap!important; padding:9px 13px!important;
 }
}

/* v365: keep first-party own-profile sections in one scrollable row on phones.
   Legacy multiple rows pushed the hero and live credit balance below the fold.
   Leave desktop's full multi-row navigation and all chat UI untouched. */
@media (max-width:760px) {
 #dejtify-profile-document-v272 .dejtify-profile-public-v251[data-dejtify-own-profile="1"] > .djpf-v269-nav {
  display:flex!important;flex-flow:row nowrap!important;justify-content:flex-start!important;
  overflow-x:auto!important;overflow-y:hidden!important;overscroll-behavior-x:contain;
  scrollbar-width:thin;-webkit-overflow-scrolling:touch;max-width:calc(100% - 24px);
  min-width:0;box-sizing:border-box;padding:8px!important;margin:8px 12px 12px!important;
 }
 #dejtify-profile-document-v272 .dejtify-profile-public-v251[data-dejtify-own-profile="1"] > .djpf-v269-nav a {
  flex:0 0 auto!important;min-width:max-content;white-space:nowrap!important;
 }
}
