/* A single viewport Back on phone sub-screens. Dialogs/scoring keep their own controls. */
#pb747MobileBack{display:none}
@media(max-width:760px), (orientation:landscape) and (max-height:520px) and (max-width:950px) and (pointer:coarse){
 html body #pb747MobileBack:not([hidden]){display:block!important;position:fixed!important;inset:auto 12px calc(12px + env(safe-area-inset-bottom,0px)) 12px!important;width:calc(100% - 24px)!important;min-height:48px!important;margin:0!important;padding:10px 16px!important;z-index:100001!important;background:#1d252b!important;color:#f7f7f7!important;border:1px solid #687783!important;border-radius:12px;box-shadow:0 4px 20px #0008}
 html body.pb747-back-active .pb747-back-space{padding-bottom:calc(88px + env(safe-area-inset-bottom,0px))!important}
 html body.pb747-back-active .pb747-back-space :is(input,select,textarea,button,a){scroll-margin-bottom:calc(88px + env(safe-area-inset-bottom,0px))}
 html:has(body.pb747-back-active){scroll-padding-bottom:calc(88px + env(safe-area-inset-bottom,0px))}
 /* Existing controls remain wired for the proxy, but do not duplicate its bar. */
 html body.pb747-back-active:has(#myProfile:not(.hidden):not([hidden])) #pb455PlayerBack,html body.pb747-back-active #pb455PlayerBack,html body.pb747-back-active #pb354Back{display:none!important}
 /* A filtered player-home list is a sub-screen, not the starting Dashboard. */
 html body.pb-authenticated.pb747-player-list:has(#playerHome:not(.hidden):not([hidden])):has(#pbRoleControls:not([hidden]) #pbTdView:not([hidden])) #pbRoleControls,html body.pb747-player-list #pbFirebaseAccount #pbRoleControls{display:none!important}
 /* Save/Back footer stays above the new bar; never cover Save or its status. */
 html body.pb747-back-active .pb416-footer{position:static!important;margin-bottom:12px!important}
}

/* .748: the floating control replaces these known, navigation-only duplicates.
   Keep the original nodes/handlers intact: the proxy clicks them even while hidden.
   Scope to the current padded page and an active phone bar, never dialogs or desktop.
   The footer's FIRST button is Save; only its existing SECOND, pure Back is hidden. */
@media(max-width:760px), (orientation:landscape) and (max-height:520px) and (max-width:950px) and (pointer:coarse){
 html body.pb747-back-active #pb595MobileView.pb747-back-space > .head > [data-back],
 html body.pb747-back-active #playerHome.pb747-back-space [data-inline-back],
 html body.pb747-back-active #playerHome.pb747-back-space [data-exit-cup],
 html body.pb747-back-active #playerHome.pb747-back-space #playerRegistrations [data-player-list-home],
 html body.pb747-back-active #chipPlayerLivePage.pb747-back-space #chipPlayerLiveBack,
 html body.pb747-back-active #publicTournament.pb747-back-space #backTournaments,
 html body.pb747-back-active #calendar.pb747-back-space #pb621CalendarBack,
 html body.pb747-back-active #profiles.pb747-back-space #pb421AccountBack,
 html body.pb747-back-active .pb747-back-space :is(#pb413Back,#pb430PayoutBack,#pb431PrizeBack,#pb433RatingBack,#pb452ManagementBack),
 html body.pb747-back-active .pb747-back-space .pb416-footer > button:nth-of-type(2):not(.primary){display:none!important}
}
