.vun-session-action{position:relative;display:inline-flex;align-items:center;justify-self:end;flex:none}
.vun-session-action>button,.topbar button.vun-home-signout,.finder-header button.vun-owner-signout{
  box-sizing:border-box;min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:7px;
  padding:0 12px;border:1px solid #91a99f;border-radius:9px;background:#fff;color:#15473b;
  font:650 14px/1.2 system-ui,sans-serif;white-space:nowrap;cursor:pointer
}
.vun-session-action>button:hover,.topbar button.vun-home-signout:hover,.finder-header button.vun-owner-signout:hover{background:#ebf3ef}
.vun-session-action>button:focus-visible,.topbar button.vun-home-signout:focus-visible,.finder-header button.vun-owner-signout:focus-visible{outline:3px solid #28755d;outline-offset:2px}
.vun-session-action>button:disabled,.topbar button.vun-home-signout:disabled{opacity:.65;cursor:wait}
.vun-signout-error{position:absolute;z-index:10;right:0;top:100%;width:190px;border:1px solid #dcaaa1;background:#fff4ef;border-radius:7px;padding:8px;color:#782a21;font:13px/1.4 system-ui,sans-serif}
.profiles-page header:has(>.vun-session-action)>a:nth-child(2),header:has(>.vun-session-action)>nav{margin-left:auto}
header:has(>.vun-session-action)>nav a[href="/login"],header:has(>.vun-session-action)>nav a[href^="/login?"]{display:none}
.court-profile-nav>.vun-session-action{margin-left:auto}
@media(max-width:650px){
  header.pr-header:has(>.vun-session-action), header.sv-header:has(>.vun-session-action),
  header.coach-header:has(>.vun-session-action),header.finder-header:has(>.vun-session-action),
  header.header:has(>.vun-session-action){
    display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:2px 10px;height:auto;min-height:64px;padding-block:8px
  }
  header:has(>.vun-session-action)>.vun-session-action{grid-column:2;grid-row:1}
  header:has(>.vun-session-action)>nav{grid-column:1/-1;grid-row:2;width:auto;margin-left:0;justify-content:flex-start;flex-wrap:wrap}
  header.header:has(>.vun-session-action)>.manager-link{grid-row:2;grid-column:2}
}
@media(max-width:650px){
  .topbar-actions:has(.vun-home-signout:not([hidden])) #accountIcon{display:none}
}
@media(max-width:380px){
  .topbar:has(.vun-home-signout:not([hidden])) .wordmark-name{display:none}
}
@media(max-width:480px){
  .court-profile-nav:has(>.vun-session-action){display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px;padding:6px 12px}
  .court-profile-nav:has(>.vun-session-action)>a{font-size:13px}
}
@media(max-width:420px){
  .profiles-page header:has(>.vun-session-action)>a:first-child b,.auth-header:has(>.vun-session-action) .auth-brand span{display:none}
  .profiles-page header:has(>.vun-session-action){gap:10px}
}

/* Keep account controls away from phone corners and give every tap a full target. */
@media(max-width:760px){
  html body :is(.topbar,.auth-header,.pr-header,.sv-header,.coach-header,.finder-header,header.header,.court-profile-nav,.pb-app-header-inner,.profiles-page>header,.listing-header){
    height:auto!important;min-height:80px!important;
    padding-top:calc(16px + env(safe-area-inset-top,0px))!important;
    padding-bottom:12px!important
  }
  html body :is(.auth-header,header.header,.court-profile-nav,.pb-app-header-inner,.listing-header){
    padding-left:max(20px,env(safe-area-inset-left,0px))!important;
    padding-right:max(20px,env(safe-area-inset-right,0px))!important
  }
  /* These headers already sit inside a padded page container. */
  html body :is(.topbar,.pr-header,.sv-header,.coach-header,.finder-header,.profiles-page>header){
    padding-left:max(4px,env(safe-area-inset-left,0px))!important;
    padding-right:max(4px,env(safe-area-inset-right,0px))!important
  }
  html body .vun-session-action>button,
  html body .topbar button.vun-home-signout,
  html body .finder-header button.vun-owner-signout,
  html body .listing-header nav>button,
  html body header a:is([href='/login'],[href^='/login?'],[href='/court-owner']),
  html body .topbar-actions a[data-member-link]{
    min-height:52px!important;min-width:52px;padding:12px 17px;font-size:16px;font-weight:700;
    display:inline-flex;align-items:center;justify-content:center;gap:9px;
    border-radius:12px;line-height:1.3;touch-action:manipulation
  }
  html body .vun-session-action>button svg,
  html body .listing-header nav>button svg{width:20px;height:20px}
  html body :is(.pb-app-header nav,.court-profile-nav,.auth-header,.pr-header nav,.sv-header nav,.coach-header nav,.finder-header nav,.profiles-page>header,.listing-header nav)>a{
    min-height:48px;min-width:48px;display:inline-flex;align-items:center;touch-action:manipulation
  }
  html body .pb-app-header nav>a{min-height:48px;padding-top:12px;padding-bottom:12px}
  html body .topbar-actions{gap:8px}
  html body .topbar-actions:has([data-member-link]) #accountIcon{display:none}
  html body .auth-card .auth-primary{min-height:56px;font-size:16px;touch-action:manipulation}
}

@media(max-width:360px){
  html body .pb-app-header nav>a{flex-direction:column;gap:4px;padding:8px 2px;font-size:14px;min-height:64px}
  html body .pb-app-header nav>a svg{flex-shrink:0}
  html body .pb-overview strong{white-space:nowrap}
}
@media(max-width:760px){
  html body .topbar{gap:10px}
  html body .topbar-actions a[data-member-link]{padding-inline:14px;white-space:nowrap}
}
