/* App mode: another member's profile (partails/profile-app.php, assets/js/app-profile.js) and the report sheet
   (assets/js/app-report.js). Phones up to 675px; wider screens keep the two-column profile and the report dialog.
   The profile is a screen of its own: no top bar (the photos run under the status bar, with their own back and more
   buttons) and no tab bar - the page's like / pass / chat buttons (.dt_user_pro_info) become the bar at the bottom. */
.app-pf,.app-pf-ico {display:none;}
@keyframes app-pf-fade {from {opacity:0;}}
@media(max-width:675px) {
 .member-app[data-app-page="profile"] {padding-top:0;padding-bottom:calc(112px + var(--app-safe-bottom));}
 .member-app[data-app-page="profile"] #nav-logged-in,.member-app[data-app-page="profile"] .to_sidebar_mini.app-tabs {display:none !important;}
 /* A sideways entrance would carry the fixed action bar with it (a transformed ancestor): fade instead. */
 .member-app[data-app-page="profile"] #container.app-enter,.member-app[data-app-page="profile"] #container.app-enter-back {animation-name:app-pf-fade;}
 .member-app #container > .container.app-profile {margin:0;padding:0;}
 .app-profile > .row {margin:0;}
 .app-profile > .row > .col {min-height:0;padding:0;}
 .app-profile .dt_user_info,.app-profile .to_user_media .avatar,.app-profile .dt_avatar_progress,.app-profile .admin_avatar_imgprogress {display:none !important;}
 .app-profile .to_user_media {margin:0;padding:0;border:0;background:none;box-shadow:none;}

 .app-pf {display:block;color:var(--app-text);}
 /* Photos */
 .app-pf-hero {position:relative;height:min(115vw,70vh);height:min(115vw,70svh);min-height:300px;overflow:hidden;background:var(--app-card);touch-action:pan-y;-webkit-user-select:none;user-select:none;}
 .app-pf-photos img {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 25%;opacity:0;transition:opacity .2s var(--app-ease);}
 .app-pf-photos img.is-on {opacity:1;}
 .app-pf-hero::after {content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(180deg,#00000059 0,#0000 22%,#0000 58%,var(--app-night) 100%);}
 .app-pf-segs {position:absolute;z-index:3;top:calc(var(--app-safe-top) + 8px);left:12px;right:12px;display:flex;gap:5px;pointer-events:none;}
 .app-pf-segs b {flex:1;height:3.5px;border-radius:2px;background:#ffffff61;box-shadow:0 1px 2px #0003;}
 .app-pf-segs b.is-on {background:#fff;}
 .app-pf-tap {position:absolute;inset:0;z-index:2;display:flex;}
 .app-pf-tap button {flex:3 1 0;min-width:0;margin:0;padding:0;border:0;border-radius:0;background:transparent;cursor:pointer;-webkit-tap-highlight-color:transparent;}
 .app-pf-tap [data-app-pf-open] {flex-grow:4;}
 .app-pf-tap button:focus-visible {outline:2px solid #fff;outline-offset:-4px;}
 .app-pf-bar {position:absolute;z-index:4;top:calc(var(--app-safe-top) + 20px);left:14px;right:14px;display:flex;justify-content:space-between;pointer-events:none;}
 .app-pf-glass {display:grid;place-items:center;box-sizing:border-box;width:44px;height:44px;margin:0;padding:0;border:0;border-radius:50%;background:#0000006b;color:#fff !important;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);pointer-events:auto;cursor:pointer;-webkit-tap-highlight-color:transparent;}
 .app-pf-glass svg {width:22px;height:22px;}
 .app-pf-glass:active {transform:scale(.94);}

 /* Name and facts */
 .app-pf-head {position:relative;z-index:2;margin-top:-74px;padding:0 20px;}
 .app-pf-head h1 {display:flex;flex-wrap:wrap;align-items:center;gap:4px 9px;margin:0;color:var(--app-text);font:800 30px/1.12 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;letter-spacing:-.02em;overflow-wrap:anywhere;text-shadow:0 1px 12px #0006;}
 .app-pf-head h1 small {font-size:26px;font-weight:500;}
 .app-pf-head .app-verified {width:24px;height:24px;}
 .app-pf-head .app-verified svg {width:14px;height:14px;}
 .app-pf-where {display:flex;align-items:flex-start;gap:6px;margin:6px 0 0;color:var(--app-mut);font-size:15px;line-height:1.35;}
 .app-pf-where svg {flex:none;width:16px;height:16px;margin-top:2px;}
 .app-pf ul.app-pf-facts {display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 14px;padding:0 20px;list-style:none;}
 .app-pf-facts li.app-chip {min-height:34px;padding:6px 13px;font-size:13.5px;}
 .app-pf-facts svg {flex:none;width:15px;height:15px;color:var(--app-teal);}
 .app-pf-sr {position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;}

 /* Texts, interests, everything else */
 .app-pf > .app-card {margin:0 16px 12px;}
 .app-pf > .app-card > p {overflow-wrap:anywhere;}
 .app-pf-section {margin:6px 20px 16px;}
 .app-pf-section h2,.app-pf-more h3 {margin:0 0 10px;color:var(--app-mut);font:700 12.5px/1.3 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;letter-spacing:.06em;text-transform:uppercase;}
 .app-pf ul.app-pf-chips {display:flex;flex-wrap:wrap;gap:7px;margin:0;padding:0;list-style:none;}
 .app-pf-chips .app-chip {color:var(--app-text);text-decoration:none;}
 .app-pf-chips .app-chip-same {color:#fff;}
 .app-pf-more {margin:0 16px 12px;padding:0;overflow:hidden;}
 .app-pf-more summary {display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px;padding:0 18px 0 16px;font-weight:700;font-size:16px;cursor:pointer;list-style:none;-webkit-tap-highlight-color:transparent;}
 .app-pf-more summary::-webkit-details-marker {display:none;}
 .app-pf-more summary::after {content:"";flex:none;width:8px;height:8px;border-right:2px solid var(--app-mut);border-bottom:2px solid var(--app-mut);transform:translateY(-2px) rotate(45deg);transition:transform .2s var(--app-ease);}
 .app-pf-more[open] summary::after {transform:translateY(2px) rotate(-135deg);}
 .app-pf-more h3 {margin:10px 16px 2px;}
 .app-pf-more dl {margin:0 0 6px;padding:0 16px;}
 .app-pf-more dl > div {display:flex;justify-content:space-between;gap:16px;padding:10px 0;border-top:1px solid var(--app-line);font-size:15px;line-height:1.35;}
 .app-pf-more dl > div:first-child {border-top:0;}
 .app-pf-more dt {flex:0 1 44%;color:var(--app-mut);}
 .app-pf-more dd {flex:1 1 56%;margin:0;text-align:right;overflow-wrap:anywhere;}
 .app-pf-social {padding:4px 20px 8px;}
 .app-pf-social .dt_user_social {display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:0;padding:0;list-style:none;}
 .app-pf-social .dt_user_social li {margin:0;padding:0;}
 .app-pf-social .dt_user_social a {display:grid;place-items:center;width:44px;height:44px;margin:0;padding:0;border:1px solid var(--app-line);border-radius:50%;background:var(--app-card);color:var(--app-mut);}
 .app-pf-social .dt_user_social svg {width:18px;height:18px;}

 /* The action bar: the page's own buttons, pass - like - chat. */
 .member-app .app-profile .dt_user_pro_info {position:fixed;z-index:90;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;gap:22px;margin:0;padding:34px 16px calc(14px + var(--app-safe-bottom));background:linear-gradient(180deg,#0f141c00,var(--app-night) 48%);pointer-events:none;}
 .member-app .app-profile .dt_user_pro_info > a {display:grid;place-items:center;flex:none;box-sizing:border-box;width:62px;height:62px;margin:0;padding:0;border:1px solid var(--app-line);border-radius:50%;background:var(--app-card);color:var(--app-mut);line-height:1;box-shadow:0 6px 18px #0000004d;pointer-events:auto;transition:transform .18s var(--app-ease),width .2s var(--app-ease),height .2s var(--app-ease);-webkit-tap-highlight-color:transparent;}
 .member-app .app-profile .dt_user_pro_info > a > svg {display:none;}
 .member-app .app-profile .dt_user_pro_info .app-pf-ico {display:grid;place-items:center;}
 .member-app .app-profile .dt_user_pro_info .app-pf-ico svg {width:28px;height:28px;border-radius:0;background:none !important;}
 /* night.css paints the desktop's liked / passed icons (.lk_active / .dk_active svg); these icons follow the button. */
 .member-app .app-profile .dt_user_pro_info .app-pf-ico svg[fill="currentColor"] path {fill:currentColor !important;}
 .member-app .app-profile .dt_user_pro_info .app-pf-ico svg[fill="none"] path {fill:none !important;}
 .member-app .app-profile .dt_user_pro_info > a.btn.lk_active,.member-app .app-profile .dt_user_pro_info > a.btn.dk_active {background-color:var(--app-card);}
 .member-app .app-profile .dt_user_pro_info > a:active {transform:scale(.92);}
 .member-app .app-profile #dislike_btn {order:1;}
 .member-app .app-profile #like_btn {order:2;width:76px;height:76px;border:0;background:var(--app-water);color:#fff;box-shadow:0 10px 28px #0697db73;}
 .member-app .app-profile #like_btn .app-pf-ico svg {width:36px;height:36px;}
 .member-app .app-profile #btn_open_private_conversation {order:3;}
 .member-app .app-profile #btn_open_private_conversation .app-pf-ico svg {width:27px;height:27px;}
 /* Already liked: the heart stays, as an outline in the colour of the like. */
 .member-app .app-profile.is-liked #like_btn {border:2px solid var(--app-teal);background:var(--app-card);color:var(--app-teal);box-shadow:0 6px 18px #0000004d;}
 /* Passed: the cross shows it (tap again takes it back). */
 .member-app .app-profile.is-passed #dislike_btn {border-color:var(--app-text);background:var(--app-raised);color:var(--app-text);}
 /* A match: the heart says so, writing is the one thing to do now. */
 .member-app .app-profile.is-matched #dislike_btn {display:none;}
 .member-app .app-profile.is-matched #like_btn {width:62px;height:62px;border:2px solid var(--app-teal);background:var(--app-card);color:var(--app-teal);box-shadow:0 6px 18px #0000004d;}
 .member-app .app-profile.is-matched #like_btn .app-pf-ico svg {width:28px;height:28px;}
 .member-app .app-profile.is-matched #btn_open_private_conversation {width:76px;height:76px;border:0;background:var(--app-water);color:#fff;box-shadow:0 10px 28px #0697db73;}
 .member-app .app-profile.is-matched #btn_open_private_conversation .app-pf-ico svg {width:34px;height:34px;}

 /* ---- Report sheet ---- */
 .app-report-sheet .app-sheet-text {line-height:1.4;}
 .app-report-sheet .app-list {margin:0 0 12px;}
 .app-report-sheet .app-list:last-child {margin-bottom:0;}
 .app-report-label {flex:1 1 auto;min-width:0;}
 .app-report-hint {flex:none;margin-left:auto;color:var(--app-mut);font-size:14px;font-weight:400;}
 .app-report-note {margin:0 6px 14px;color:var(--app-text);}
 .app-report-details form[data-report-form] {margin:0;padding:0;background:none;}
 .app-report-details form[data-report-form] > h4,.app-report-details label[for="report_category"],.app-report-details #report_category {display:none;}
 .app-report-details .to_mat_input {display:flex;flex-direction:column-reverse;gap:8px;margin:0;padding:0;}
 .app-report-details .to_mat_input label {position:static !important;transform:none !important;margin:0 6px;color:var(--app-mut) !important;font-size:14px;line-height:1.4;pointer-events:auto;}
 .app-report-details #report_content {box-sizing:border-box;width:100%;min-height:128px;height:auto;margin:0;padding:12px 14px;border:1px solid var(--app-line);border-radius:14px;background:var(--app-card);color:var(--app-text);font:400 16px/1.45 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;resize:vertical;box-shadow:none;}
 .app-report-details #report_content:focus {border-color:var(--app-teal);outline:none;box-shadow:none !important;}
 .app-report-optional {margin:6px 6px 12px;color:var(--app-mut);font-size:13px;}
 .app-report-details #send_report_btn {display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:auto;min-height:52px;margin:0;padding:12px 22px;border:0;border-radius:26px;background:var(--app-water);color:#fff !important;font:700 16px/1.25 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;text-transform:none;letter-spacing:0;box-shadow:0 10px 26px #0697db4d;}
 .app-report-details #send_report_btn[disabled] {opacity:.55;box-shadow:none;}
}
@media(max-width:675px) and (prefers-reduced-motion:reduce) {
 .app-pf-photos img,.app-pf-more summary::after,.member-app .app-profile .dt_user_pro_info > a {transition:none;}
}
