/* Candidate18 only. Native dialogs keep their handlers, focus and hidden state. */
body dialog:is(#overliveContactProfile,#liveUserProfile).profile-sheet{
 box-sizing:border-box;inset:auto max(0px,env(safe-area-inset-right)) 0 max(0px,env(safe-area-inset-left));
 width:min(520px,100vw);max-width:calc(100vw - env(safe-area-inset-left) - env(safe-area-inset-right));
 max-height:min(86dvh,var(--fit-height,86dvh));margin:0 auto;
 padding:24px 18px max(18px,env(safe-area-inset-bottom));
 border:1px solid rgb(225 225 244 / .16)!important;border-bottom:0!important;
 border-radius:24px 24px 0 0;background:rgb(10 12 21 / .98)!important;color:#f5f1f6!important;
 box-shadow:0 -12px 40px rgb(0 0 0 / .38);overflow-y:auto;overflow-x:hidden;
 overscroll-behavior:contain;scroll-padding-block:18px;
}
body dialog:is(#overliveContactProfile,#liveUserProfile).profile-sheet[open]{display:block;}
body dialog:is(#overliveContactProfile,#liveUserProfile).profile-sheet::backdrop{
 background:rgb(2 4 8 / .62);backdrop-filter:none;-webkit-backdrop-filter:none;
}
body dialog:is(#overliveContactProfile,#liveUserProfile).profile-sheet :is(.social-close,.close){
 position:absolute;top:10px;right:10px;min-width:44px;min-height:44px;
 border:1px solid rgb(225 225 244 / .16);border-radius:14px;
 background:rgb(22 24 37 / .96)!important;color:#f5f1f6!important;
}
body #overliveContactProfile.profile-sheet .social-contact-heading,
body #liveUserProfile.profile-sheet{text-align:center;}
body #overliveContactProfile.profile-sheet .social-avatar-wrap,
body #liveUserProfile.profile-sheet .live-user-avatar{
 position:relative;display:grid;place-items:center;box-sizing:border-box;overflow:visible;
 width:96px;height:96px;margin:6px auto 12px;border:1px solid rgb(255 155 69 / .38);
 border-radius:24px;background:rgb(16 18 29 / .94);box-shadow:none;
}
body #overliveContactProfile.profile-sheet .social-avatar,
body #liveUserProfile.profile-sheet .live-user-avatar>img{
 width:100%;height:100%;margin:0;object-fit:contain;object-position:center;border-radius:23px;
}
body #overliveContactProfile.profile-sheet .social-contact-heading h2,
body #liveUserProfile.profile-sheet #liveUserProfileTitle{
 margin:8px 0 4px;font:700 25px/1.2 'Space Grotesk',system-ui,sans-serif;
 letter-spacing:-.5px;color:#f5f1f6;overflow-wrap:anywhere;
}
body #overliveContactProfile.profile-sheet .social-contact-heading p,
body #liveUserProfile.profile-sheet :is(#liveUserHandle,#liveUserRole){
 margin:4px 0 10px;color:#b1afc0;font-size:13px;line-height:1.4;
}
body dialog.profile-sheet .profile-private-label,
body dialog.profile-sheet .profile-public-photos[data-restricted='true']{
 color:#d9dfeb;background:rgb(22 24 37 / .96);border:1px solid rgb(225 225 244 / .16);
 border-radius:12px;padding:8px 12px;font-size:12px;line-height:1.4;
}
body dialog.profile-sheet .profile-private-label[hidden]{display:none!important;}
body dialog.profile-sheet :is(.social-contact-actions,.live-profile-social-actions),
body #liveUserProfile.profile-sheet #liveUserActions{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:16px;
}
body #liveUserProfile.profile-sheet .live-profile-social-actions{grid-column:1/-1;margin:0;}
body dialog.profile-sheet :is(.social-contact-button,#liveUserActions>.btn){
 box-sizing:border-box;min-width:0;min-height:46px;width:100%;padding:11px 12px;
 border:1px solid rgb(225 225 244 / .16)!important;border-radius:14px;
 font:600 13px/1.4 system-ui,sans-serif;white-space:normal;overflow-wrap:anywhere;
 background:rgb(22 24 37 / .96)!important;color:#f5f1f6!important;box-shadow:none!important;
}
body #liveUserProfile.profile-sheet #liveUserActions>.btn.danger{
 background:#7d2438!important;border-color:#bf586e!important;color:#fff!important;
}
body dialog.profile-sheet .profile-public-photos{
 display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin:14px 0;
}
body dialog.profile-sheet .profile-public-photos[hidden]{display:none!important;}
body dialog.profile-sheet .profile-public-photos[data-restricted='true']{display:block;}
body dialog.profile-sheet .profile-public-photos>img{
 width:100%;aspect-ratio:1;object-fit:contain;border:1px solid rgb(225 225 244 / .16);border-radius:12px;
}
body #overliveAccountPanel .account-identity>.profile-privacy-toggle,
body dialog.profile-sheet .profile-privacy-toggle{
 display:inline-grid;place-items:center;align-self:flex-start;box-sizing:border-box;
 width:44px;height:44px;min-width:44px;min-height:44px;padding:10px;border-radius:13px;
 background:rgb(22 24 37 / .96)!important;color:#f5f1f6!important;
 border:1px solid rgb(225 225 244 / .24)!important;box-shadow:none!important;cursor:pointer;
}
body dialog.profile-sheet .profile-privacy-toggle{display:inline-grid;margin-inline:6px;vertical-align:middle;}
body .profile-privacy-toggle>svg{display:block;width:20px;height:20px;pointer-events:none;}
body .profile-privacy-toggle[hidden],body .profile-privacy-status[hidden]{display:none!important;}
body .profile-privacy-status{display:block;color:#ffd4df;font-size:12px;line-height:1.4;}
body .profile-privacy-toggle:focus-visible,
body dialog.profile-sheet :is(button,[tabindex]):focus-visible{outline:2px solid #ffbd86!important;outline-offset:2px;}
@media(max-height:500px){
 body dialog:is(#overliveContactProfile,#liveUserProfile).profile-sheet{max-height:calc(100dvh - 12px);padding-top:16px;}
 body #overliveContactProfile.profile-sheet .social-avatar-wrap,
 body #liveUserProfile.profile-sheet .live-user-avatar{width:72px;height:72px;margin-top:0;}
}
@media(prefers-reduced-motion:reduce){body dialog.profile-sheet,body dialog.profile-sheet *{animation:none;transition:none;}}

