body[data-page="home"] .app-topbar-v2,body.dx-software-shell-active[data-page="home"] .app-topbar-v2{overflow:visible !important;contain:none !important;isolation:isolate !important}body[data-page="home"] .profile-area-v3,body.dx-software-shell-active[data-page="home"] .profile-area-v3,body[data-page="home"] .dx-notification-center-v115{position:relative !important;overflow:visible !important;contain:none !important;z-index:1305 !important}body[data-page="home"] .profile-avatar-button-v3,body[data-page="home"] .dx-notification-button-v115{position:relative !important;z-index:1310 !important;transform:none !important;-webkit-tap-highlight-color:transparent !important;pointer-events:auto !important}body[data-page="home"] .profile-avatar-button-v3:hover,body[data-page="home"] .profile-avatar-button-v3[aria-expanded="true"]{transform:none !important}body[data-page="home"] #profileMenu.profile-menu-v3,body[data-page="home"] #dxNotificationPanel.dx-notification-panel-v115{contain:none !important;overflow:visible !important;z-index:1400 !important;pointer-events:auto !important}body[data-page="home"] #profileMenu.profile-menu-v3:not(.hidden),body[data-page="home"] #dxNotificationPanel.dx-notification-panel-v115:not(.hidden){display:block !important;opacity:1 !important;visibility:visible !important}body[data-page="home"] #profileMenu.profile-menu-v3{max-height:min(680px,calc(100dvh - 92px)) !important;overflow-y:auto !important;overflow-x:hidden !important;-webkit-overflow-scrolling:touch !important}body[data-page="home"] #dxNotificationPanel.dx-notification-panel-v115{overflow:hidden !important}body[data-page="home"] #dxNotificationPanel.dx-notification-panel-v115:not(.hidden){display:flex !important;flex-direction:column !important}@media (max-width:740px){body[data-page="home"] .profile-area-v3{align-self:center !important}body[data-page="home"] .profile-avatar-button-v3,body[data-page="home"] .dx-notification-button-v115{margin-top:0 !important;margin-bottom:0 !important}body[data-page="home"] #profileMenu.profile-menu-v3{position:fixed !important;top:calc(var(--dx-beta-banner-h-v237,32px) + 64px) !important;right:10px !important;left:auto !important;width:min(360px,calc(100vw - 20px)) !important;max-height:calc(100dvh - var(--dx-beta-banner-h-v237,32px) - 84px) !important}body[data-page="home"] #dxNotificationPanel.dx-notification-panel-v115{position:fixed !important;top:calc(var(--dx-beta-banner-h-v237,32px) + 64px) !important;right:10px !important;left:10px !important;width:auto !important;max-height:calc(100dvh - var(--dx-beta-banner-h-v237,32px) - 84px) !important}}
/* v262: mobile-only topbar/profile stability fix. Desktop intentionally unchanged. */
@media (max-width: 900px){
  body[data-page="home"] .app-topbar-v2{
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:10px !important;
    min-height:72px !important;
    padding-left:max(10px, env(safe-area-inset-left, 0px)) !important;
    padding-right:max(10px, env(safe-area-inset-right, 0px)) !important;
    overflow:visible !important;
  }
  body[data-page="home"] .tablet-menu-button-v49{
    flex:0 0 42px !important;
    width:42px !important;
    min-width:42px !important;
    max-width:42px !important;
    height:42px !important;
    min-height:42px !important;
  }
  body[data-page="home"] .app-topbar-left{
    flex:1 1 auto !important;
    min-width:0 !important;
    max-width:none !important;
    overflow:hidden !important;
  }
  body[data-page="home"] .app-topbar-left > div:not(.app-topbar-mark){
    min-width:0 !important;
    overflow:hidden !important;
  }
  body[data-page="home"] .app-topbar-left strong,
  body[data-page="home"] .app-topbar-left span{
    max-width:100% !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
  }
  body[data-page="home"] .app-topbar-mark,
  body[data-page="home"] .dx-logo-mark{
    flex:0 0 42px !important;
    width:42px !important;
    min-width:42px !important;
    max-width:42px !important;
    height:42px !important;
    min-height:42px !important;
    border-radius:14px !important;
    overflow:hidden !important;
  }
  body[data-page="home"] .dx-logo-img{
    display:block !important;
    width:42px !important;
    height:42px !important;
    max-width:42px !important;
    max-height:42px !important;
    object-fit:contain !important;
  }
  body[data-page="home"] .profile-area-v3{
    flex:0 0 auto !important;
    min-width:0 !important;
    width:auto !important;
    max-width:calc(100vw - 132px) !important;
    display:flex !important;
    flex-wrap:nowrap !important;
    align-items:center !important;
    justify-content:flex-end !important;
    gap:8px !important;
    overflow:visible !important;
  }
  body[data-page="home"] .profile-area-v3 > *{
    flex-shrink:0 !important;
  }
  body[data-page="home"] .guest-register-pill-v81{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    flex:0 0 auto !important;
    min-width:0 !important;
    max-width:118px !important;
    min-height:34px !important;
    height:34px !important;
    padding:0 11px !important;
    line-height:1 !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    margin:0 !important;
  }
  body[data-page="home"] .guest-register-pill-v81.hidden{display:none !important;}
  body[data-page="home"] .dx-notification-center-v115{
    flex:0 0 auto !important;
    min-width:0 !important;
    width:auto !important;
  }
  body[data-page="home"] .dx-notification-center-v115.hidden{display:none !important;}
  body[data-page="home"] .dx-notification-button-v115{
    width:40px !important;
    min-width:40px !important;
    max-width:40px !important;
    height:40px !important;
    min-height:40px !important;
    max-height:40px !important;
    padding:0 !important;
    flex:0 0 40px !important;
    display:inline-grid !important;
    place-items:center !important;
  }
  body[data-page="home"] .profile-avatar-button-v3{
    width:44px !important;
    min-width:44px !important;
    max-width:44px !important;
    height:44px !important;
    min-height:44px !important;
    max-height:44px !important;
    aspect-ratio:1 / 1 !important;
    padding:0 !important;
    flex:0 0 44px !important;
    display:inline-grid !important;
    place-items:center !important;
    overflow:hidden !important;
    border-radius:999px !important;
    transform:none !important;
  }
  body[data-page="home"] .profile-avatar-button-v3 .profile-avatar-v2,
  body[data-page="home"] #profileAvatar.profile-avatar-v2{
    width:38px !important;
    min-width:38px !important;
    max-width:38px !important;
    height:38px !important;
    min-height:38px !important;
    max-height:38px !important;
    aspect-ratio:1 / 1 !important;
    flex:0 0 38px !important;
    display:grid !important;
    place-items:center !important;
    overflow:hidden !important;
    border-radius:999px !important;
    line-height:1 !important;
    font-size:16px !important;
    font-weight:950 !important;
    letter-spacing:0 !important;
    text-align:center !important;
    box-sizing:border-box !important;
    transform:none !important;
  }
  body[data-page="home"].is-guest-user #profileAvatar.profile-avatar-v2.profile-guest-avatar-v83::before,
  html[data-auth-state="guest"] body[data-page="home"] #profileAvatar.profile-avatar-v2.profile-guest-avatar-v83::before{
    width:10px !important;
    height:10px !important;
    top:8px !important;
    left:50% !important;
    transform:translateX(-50%) !important;
    box-shadow:0 16px 0 7px rgba(255,255,255,.92) !important;
  }
  body[data-page="home"].is-guest-user #profileAvatar.profile-avatar-v2.profile-guest-avatar-v83::after,
  html[data-auth-state="guest"] body[data-page="home"] #profileAvatar.profile-avatar-v2.profile-guest-avatar-v83::after{
    inset:2px !important;
  }
}
@media (max-width: 380px){
  body[data-page="home"] .app-topbar-v2{gap:8px !important;padding-left:8px !important;padding-right:8px !important;}
  body[data-page="home"] .tablet-menu-button-v49{width:40px !important;min-width:40px !important;max-width:40px !important;height:40px !important;flex-basis:40px !important;}
  body[data-page="home"] .app-topbar-left{gap:8px !important;}
  body[data-page="home"] .app-topbar-mark,
  body[data-page="home"] .dx-logo-mark,
  body[data-page="home"] .dx-logo-img{width:38px !important;min-width:38px !important;max-width:38px !important;height:38px !important;}
  body[data-page="home"] .app-topbar-left strong{font-size:13px !important;}
  body[data-page="home"] .app-topbar-left span{font-size:11px !important;}
  body[data-page="home"] .profile-area-v3{gap:6px !important;max-width:calc(100vw - 112px) !important;}
  body[data-page="home"] .guest-register-pill-v81{max-width:96px !important;height:32px !important;min-height:32px !important;padding:0 9px !important;font-size:11px !important;}
  body[data-page="home"] .dx-notification-button-v115{width:38px !important;min-width:38px !important;max-width:38px !important;height:38px !important;min-height:38px !important;max-height:38px !important;flex-basis:38px !important;}
  body[data-page="home"] .profile-avatar-button-v3{width:42px !important;min-width:42px !important;max-width:42px !important;height:42px !important;min-height:42px !important;max-height:42px !important;flex-basis:42px !important;}
  body[data-page="home"] .profile-avatar-button-v3 .profile-avatar-v2,
  body[data-page="home"] #profileAvatar.profile-avatar-v2{width:36px !important;min-width:36px !important;max-width:36px !important;height:36px !important;min-height:36px !important;max-height:36px !important;flex-basis:36px !important;font-size:15px !important;}
}
/* v263: mobile-only order fix - Register stays directly left of profile circle. Desktop unchanged. */
@media (max-width: 900px){
  body[data-page="home"] .profile-area-v3{
    flex-direction:row !important;
    justify-content:flex-end !important;
  }
  body[data-page="home"] .dx-notification-center-v115{
    order:1 !important;
  }
  body[data-page="home"] .guest-register-pill-v81{
    order:2 !important;
    margin-left:0 !important;
    margin-right:0 !important;
  }
  body[data-page="home"] #profileButton.profile-avatar-button-v3{
    order:3 !important;
  }
  body[data-page="home"] #profileMenu.profile-menu-v3{
    order:4 !important;
  }
}
/* v264: mobile-only register button fixed to left display edge; desktop unchanged. */
@media (max-width: 900px){
  html[data-auth-state="guest"] body[data-page="home"] .app-topbar-v2,
  body[data-page="home"].is-guest-user .app-topbar-v2{
    padding-left:calc(max(10px, env(safe-area-inset-left, 0px)) + 126px) !important;
  }
  html[data-auth-state="guest"] body[data-page="home"] #guestRegisterButton.guest-register-pill-v81:not(.hidden),
  body[data-page="home"].is-guest-user #guestRegisterButton.guest-register-pill-v81:not(.hidden){
    position:fixed !important;
    left:max(10px, env(safe-area-inset-left, 0px)) !important;
    top:calc(var(--dx-beta-banner-h-v237, 32px) + 19px + env(safe-area-inset-top, 0px)) !important;
    z-index:1320 !important;
    order:0 !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:auto !important;
    min-width:108px !important;
    max-width:118px !important;
    height:34px !important;
    min-height:34px !important;
    max-height:34px !important;
    padding:0 11px !important;
    margin:0 !important;
    line-height:1 !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    transform:none !important;
    pointer-events:auto !important;
  }
  body[data-page="home"] #guestRegisterButton.guest-register-pill-v81.hidden{
    display:none !important;
  }
}
@media (max-width: 380px){
  html[data-auth-state="guest"] body[data-page="home"] .app-topbar-v2,
  body[data-page="home"].is-guest-user .app-topbar-v2{
    padding-left:calc(max(8px, env(safe-area-inset-left, 0px)) + 104px) !important;
  }
  html[data-auth-state="guest"] body[data-page="home"] #guestRegisterButton.guest-register-pill-v81:not(.hidden),
  body[data-page="home"].is-guest-user #guestRegisterButton.guest-register-pill-v81:not(.hidden){
    left:max(8px, env(safe-area-inset-left, 0px)) !important;
    top:calc(var(--dx-beta-banner-h-v237, 32px) + 20px + env(safe-area-inset-top, 0px)) !important;
    min-width:92px !important;
    max-width:96px !important;
    height:32px !important;
    min-height:32px !important;
    max-height:32px !important;
    padding:0 9px !important;
    font-size:11px !important;
  }
}

/* v265: mobile topbar level fix - register left edge and profile circle right edge on same vertical center. Desktop unchanged. */
@media (max-width: 900px){
  html[data-auth-state="guest"] body[data-page="home"] .app-topbar-v2,
  body[data-page="home"].is-guest-user .app-topbar-v2{
    position:sticky !important;
    align-items:center !important;
    min-height:72px !important;
    padding-left:calc(max(10px, env(safe-area-inset-left, 0px)) + 126px) !important;
    padding-right:max(10px, env(safe-area-inset-right, 0px)) !important;
    overflow:visible !important;
  }
  html[data-auth-state="guest"] body[data-page="home"] .profile-area-v3,
  body[data-page="home"].is-guest-user .profile-area-v3{
    position:static !important;
    align-self:center !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-end !important;
    gap:8px !important;
    min-height:44px !important;
    margin:0 !important;
    padding:0 !important;
    transform:none !important;
  }
  html[data-auth-state="guest"] body[data-page="home"] #guestRegisterButton.guest-register-pill-v81:not(.hidden),
  body[data-page="home"].is-guest-user #guestRegisterButton.guest-register-pill-v81:not(.hidden){
    position:absolute !important;
    left:max(10px, env(safe-area-inset-left, 0px)) !important;
    top:50% !important;
    transform:translateY(-50%) !important;
    z-index:1320 !important;
    order:0 !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:auto !important;
    min-width:108px !important;
    max-width:118px !important;
    height:34px !important;
    min-height:34px !important;
    max-height:34px !important;
    padding:0 11px !important;
    margin:0 !important;
    line-height:1 !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    pointer-events:auto !important;
  }
  html[data-auth-state="guest"] body[data-page="home"] #profileButton.profile-avatar-button-v3,
  body[data-page="home"].is-guest-user #profileButton.profile-avatar-button-v3{
    align-self:center !important;
    margin:0 !important;
    transform:none !important;
  }
  body[data-page="home"] #guestRegisterButton.guest-register-pill-v81.hidden{
    display:none !important;
  }
}
@media (max-width: 380px){
  html[data-auth-state="guest"] body[data-page="home"] .app-topbar-v2,
  body[data-page="home"].is-guest-user .app-topbar-v2{
    padding-left:calc(max(8px, env(safe-area-inset-left, 0px)) + 104px) !important;
    padding-right:max(8px, env(safe-area-inset-right, 0px)) !important;
  }
  html[data-auth-state="guest"] body[data-page="home"] #guestRegisterButton.guest-register-pill-v81:not(.hidden),
  body[data-page="home"].is-guest-user #guestRegisterButton.guest-register-pill-v81:not(.hidden){
    left:max(8px, env(safe-area-inset-left, 0px)) !important;
    top:50% !important;
    min-width:92px !important;
    max-width:96px !important;
    height:32px !important;
    min-height:32px !important;
    max-height:32px !important;
    padding:0 9px !important;
    font-size:11px !important;
  }
}


/* v266: hard mobile split - register left, profile circle right, same topbar level. Desktop unchanged. */
@media (max-width: 900px){
  body[data-page="home"] .app-topbar-v2{
    position:sticky !important;
    align-items:center !important;
    min-height:72px !important;
    padding-right:calc(max(10px, env(safe-area-inset-right, 0px)) + 58px) !important;
    overflow:visible !important;
    isolation:isolate !important;
  }
  html[data-auth-state="guest"] body[data-page="home"] .app-topbar-v2,
  body[data-page="home"].is-guest-user .app-topbar-v2{
    padding-left:calc(max(10px, env(safe-area-inset-left, 0px)) + 122px) !important;
  }
  body[data-page="home"] .profile-area-v3{
    position:absolute !important;
    left:0 !important;
    right:0 !important;
    top:50% !important;
    bottom:auto !important;
    transform:translateY(-50%) !important;
    z-index:1320 !important;
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:8px !important;
    width:auto !important;
    max-width:none !important;
    min-width:0 !important;
    min-height:44px !important;
    height:44px !important;
    margin:0 !important;
    padding-left:max(10px, env(safe-area-inset-left, 0px)) !important;
    padding-right:max(10px, env(safe-area-inset-right, 0px)) !important;
    overflow:visible !important;
    pointer-events:none !important;
  }
  body[data-page="home"] .profile-area-v3 > *{
    pointer-events:auto !important;
    flex-shrink:0 !important;
  }
  body[data-page="home"] #guestRegisterButton.guest-register-pill-v81{
    order:1 !important;
    position:static !important;
    left:auto !important;
    right:auto !important;
    top:auto !important;
    bottom:auto !important;
    transform:none !important;
    margin:0 !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:auto !important;
    min-width:108px !important;
    max-width:118px !important;
    height:34px !important;
    min-height:34px !important;
    max-height:34px !important;
    padding:0 11px !important;
    line-height:1 !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
  }
  body[data-page="home"] #guestRegisterButton.guest-register-pill-v81.hidden{
    display:none !important;
  }
  body[data-page="home"] .dx-notification-center-v115{
    order:2 !important;
    margin-left:auto !important;
  }
  body[data-page="home"] .dx-notification-center-v115.hidden{
    display:none !important;
  }
  body[data-page="home"] #profileButton.profile-avatar-button-v3{
    order:3 !important;
    margin-left:auto !important;
    margin-right:0 !important;
    align-self:center !important;
    transform:none !important;
  }
  body[data-page="home"] .profile-area-v3:has(.dx-notification-center-v115:not(.hidden)) #profileButton.profile-avatar-button-v3{
    margin-left:0 !important;
  }
  body[data-page="home"] #profileMenu.profile-menu-v3{
    order:4 !important;
  }
}
@media (max-width: 380px){
  body[data-page="home"] .app-topbar-v2{
    padding-right:calc(max(8px, env(safe-area-inset-right, 0px)) + 54px) !important;
  }
  html[data-auth-state="guest"] body[data-page="home"] .app-topbar-v2,
  body[data-page="home"].is-guest-user .app-topbar-v2{
    padding-left:calc(max(8px, env(safe-area-inset-left, 0px)) + 98px) !important;
  }
  body[data-page="home"] .profile-area-v3{
    padding-left:max(8px, env(safe-area-inset-left, 0px)) !important;
    padding-right:max(8px, env(safe-area-inset-right, 0px)) !important;
  }
  body[data-page="home"] #guestRegisterButton.guest-register-pill-v81{
    min-width:92px !important;
    max-width:96px !important;
    height:32px !important;
    min-height:32px !important;
    max-height:32px !important;
    padding:0 9px !important;
    font-size:11px !important;
  }
}

/* v268: final mobile/tablet right alignment override. Keeps register button + profile circle on the RIGHT on phones, iPhone Pro Max sizes, iPad Mini and iPad Air. Desktop is not targeted. */
@media (max-width: 900px), (min-width: 901px) and (max-width: 1366px) and (pointer: coarse), (min-width: 901px) and (max-width: 1366px) and (hover: none){
  body[data-page="home"] .app-topbar-v2{
    position:sticky !important;
    align-items:center !important;
    justify-content:flex-start !important;
    min-height:72px !important;
    padding-left:max(10px, env(safe-area-inset-left, 0px)) !important;
    padding-right:calc(max(10px, env(safe-area-inset-right, 0px)) + 112px) !important;
    overflow:visible !important;
    isolation:isolate !important;
  }
  html[data-auth-state="guest"] body[data-page="home"] .app-topbar-v2,
  body[data-page="home"].is-guest-user .app-topbar-v2{
    padding-left:max(10px, env(safe-area-inset-left, 0px)) !important;
    padding-right:calc(max(10px, env(safe-area-inset-right, 0px)) + 176px) !important;
  }
  body[data-page="home"] .app-topbar-left{
    flex:1 1 auto !important;
    min-width:0 !important;
    max-width:100% !important;
    overflow:hidden !important;
  }
  body[data-page="home"] .profile-area-v3,
  html[data-auth-state="guest"] body[data-page="home"] .profile-area-v3,
  body[data-page="home"].is-guest-user .profile-area-v3{
    position:absolute !important;
    left:auto !important;
    right:max(10px, env(safe-area-inset-right, 0px)) !important;
    top:50% !important;
    bottom:auto !important;
    transform:translateY(-50%) !important;
    z-index:1320 !important;
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    justify-content:flex-end !important;
    gap:8px !important;
    width:auto !important;
    max-width:calc(100vw - 20px) !important;
    min-width:0 !important;
    min-height:44px !important;
    height:44px !important;
    margin:0 !important;
    padding:0 !important;
    overflow:visible !important;
    pointer-events:auto !important;
  }
  body[data-page="home"] .profile-area-v3 > *{
    pointer-events:auto !important;
    flex-shrink:0 !important;
  }
  body[data-page="home"] #guestRegisterButton.guest-register-pill-v81,
  html[data-auth-state="guest"] body[data-page="home"] #guestRegisterButton.guest-register-pill-v81:not(.hidden),
  body[data-page="home"].is-guest-user #guestRegisterButton.guest-register-pill-v81:not(.hidden){
    order:1 !important;
    position:static !important;
    left:auto !important;
    right:auto !important;
    top:auto !important;
    bottom:auto !important;
    transform:none !important;
    margin:0 !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:auto !important;
    min-width:108px !important;
    max-width:118px !important;
    height:34px !important;
    min-height:34px !important;
    max-height:34px !important;
    padding:0 11px !important;
    line-height:1 !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    pointer-events:auto !important;
  }
  body[data-page="home"] #guestRegisterButton.guest-register-pill-v81.hidden{
    display:none !important;
  }
  body[data-page="home"] .dx-notification-center-v115{
    order:2 !important;
    margin-left:0 !important;
  }
  body[data-page="home"] .dx-notification-center-v115.hidden{
    display:none !important;
  }
  body[data-page="home"] #profileButton.profile-avatar-button-v3,
  html[data-auth-state="guest"] body[data-page="home"] #profileButton.profile-avatar-button-v3,
  body[data-page="home"].is-guest-user #profileButton.profile-avatar-button-v3{
    order:3 !important;
    margin-left:0 !important;
    margin-right:0 !important;
    align-self:center !important;
    transform:none !important;
  }
  body[data-page="home"] .profile-area-v3:has(.dx-notification-center-v115:not(.hidden)) #profileButton.profile-avatar-button-v3{
    margin-left:0 !important;
  }
  body[data-page="home"] #profileMenu.profile-menu-v3{
    order:4 !important;
  }
}
@media (max-width: 380px){
  body[data-page="home"] .app-topbar-v2{
    padding-left:max(8px, env(safe-area-inset-left, 0px)) !important;
    padding-right:calc(max(8px, env(safe-area-inset-right, 0px)) + 104px) !important;
  }
  html[data-auth-state="guest"] body[data-page="home"] .app-topbar-v2,
  body[data-page="home"].is-guest-user .app-topbar-v2{
    padding-left:max(8px, env(safe-area-inset-left, 0px)) !important;
    padding-right:calc(max(8px, env(safe-area-inset-right, 0px)) + 146px) !important;
  }
  body[data-page="home"] .profile-area-v3,
  html[data-auth-state="guest"] body[data-page="home"] .profile-area-v3,
  body[data-page="home"].is-guest-user .profile-area-v3{
    right:max(8px, env(safe-area-inset-right, 0px)) !important;
    gap:6px !important;
    max-width:calc(100vw - 16px) !important;
  }
  body[data-page="home"] #guestRegisterButton.guest-register-pill-v81,
  html[data-auth-state="guest"] body[data-page="home"] #guestRegisterButton.guest-register-pill-v81:not(.hidden),
  body[data-page="home"].is-guest-user #guestRegisterButton.guest-register-pill-v81:not(.hidden){
    min-width:92px !important;
    max-width:96px !important;
    height:32px !important;
    min-height:32px !important;
    max-height:32px !important;
    padding:0 9px !important;
    font-size:11px !important;
  }
}

/* v269: logged-in mobile/tablet notification + profile right edge fix. Desktop is untouched. */
@media (max-width: 900px), (min-width: 901px) and (max-width: 1366px) and (pointer: coarse), (min-width: 901px) and (max-width: 1366px) and (hover: none){
  html[data-auth-state="auth"] body[data-page="home"] .app-topbar-v2,
  body[data-page="home"].is-auth-user .app-topbar-v2,
  body[data-page="home"].app-protected .app-topbar-v2{
    position:sticky !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    min-height:72px !important;
    padding-left:max(10px, env(safe-area-inset-left, 0px)) !important;
    padding-right:calc(max(10px, env(safe-area-inset-right, 0px)) + 104px) !important;
    overflow:visible !important;
    isolation:isolate !important;
  }
  html[data-auth-state="auth"] body[data-page="home"] .app-topbar-left,
  body[data-page="home"].is-auth-user .app-topbar-left,
  body[data-page="home"].app-protected .app-topbar-left{
    flex:1 1 auto !important;
    min-width:0 !important;
    max-width:100% !important;
    overflow:hidden !important;
  }
  html[data-auth-state="auth"] body[data-page="home"] .profile-area-v3,
  body[data-page="home"].is-auth-user .profile-area-v3,
  body[data-page="home"].app-protected .profile-area-v3{
    position:absolute !important;
    left:auto !important;
    right:max(10px, env(safe-area-inset-right, 0px)) !important;
    top:50% !important;
    bottom:auto !important;
    transform:translateY(-50%) !important;
    z-index:1600 !important;
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    justify-content:flex-end !important;
    gap:8px !important;
    width:auto !important;
    min-width:0 !important;
    max-width:104px !important;
    min-height:44px !important;
    height:44px !important;
    margin:0 !important;
    padding:0 !important;
    overflow:visible !important;
    pointer-events:auto !important;
    justify-self:auto !important;
    align-self:auto !important;
  }
  html[data-auth-state="auth"] body[data-page="home"] #guestRegisterButton.guest-register-pill-v81,
  body[data-page="home"].is-auth-user #guestRegisterButton.guest-register-pill-v81,
  body[data-page="home"].app-protected #guestRegisterButton.guest-register-pill-v81{
    display:none !important;
  }
  html[data-auth-state="auth"] body[data-page="home"] .dx-notification-center-v115,
  body[data-page="home"].is-auth-user .dx-notification-center-v115,
  body[data-page="home"].app-protected .dx-notification-center-v115{
    order:1 !important;
    position:relative !important;
    left:auto !important;
    right:auto !important;
    top:auto !important;
    bottom:auto !important;
    transform:none !important;
    margin:0 !important;
    padding:0 !important;
    flex:0 0 auto !important;
    min-width:0 !important;
    width:auto !important;
  }
  html[data-auth-state="auth"] body[data-page="home"] .dx-notification-center-v115:not(.hidden),
  body[data-page="home"].is-auth-user .dx-notification-center-v115:not(.hidden),
  body[data-page="home"].app-protected .dx-notification-center-v115:not(.hidden){
    display:flex !important;
    align-items:center !important;
  }
  html[data-auth-state="auth"] body[data-page="home"] .dx-notification-button-v115,
  body[data-page="home"].is-auth-user .dx-notification-button-v115,
  body[data-page="home"].app-protected .dx-notification-button-v115{
    width:40px !important;
    min-width:40px !important;
    max-width:40px !important;
    height:40px !important;
    min-height:40px !important;
    max-height:40px !important;
    flex:0 0 40px !important;
    padding:0 !important;
    display:inline-grid !important;
    place-items:center !important;
  }
  html[data-auth-state="auth"] body[data-page="home"] #profileButton.profile-avatar-button-v3,
  body[data-page="home"].is-auth-user #profileButton.profile-avatar-button-v3,
  body[data-page="home"].app-protected #profileButton.profile-avatar-button-v3{
    order:2 !important;
    position:relative !important;
    left:auto !important;
    right:auto !important;
    top:auto !important;
    bottom:auto !important;
    transform:none !important;
    margin:0 !important;
    align-self:center !important;
    width:44px !important;
    min-width:44px !important;
    max-width:44px !important;
    height:44px !important;
    min-height:44px !important;
    max-height:44px !important;
    flex:0 0 44px !important;
    display:inline-grid !important;
    place-items:center !important;
  }
  html[data-auth-state="auth"] body[data-page="home"] #profileMenu.profile-menu-v3,
  body[data-page="home"].is-auth-user #profileMenu.profile-menu-v3,
  body[data-page="home"].app-protected #profileMenu.profile-menu-v3,
  html[data-auth-state="auth"] body[data-page="home"] #dxNotificationPanel.dx-notification-panel-v115,
  body[data-page="home"].is-auth-user #dxNotificationPanel.dx-notification-panel-v115,
  body[data-page="home"].app-protected #dxNotificationPanel.dx-notification-panel-v115{
    position:fixed !important;
    left:auto !important;
    right:max(10px, env(safe-area-inset-right, 0px)) !important;
  }
}
@media (max-width: 380px){
  html[data-auth-state="auth"] body[data-page="home"] .app-topbar-v2,
  body[data-page="home"].is-auth-user .app-topbar-v2,
  body[data-page="home"].app-protected .app-topbar-v2{
    padding-left:max(8px, env(safe-area-inset-left, 0px)) !important;
    padding-right:calc(max(8px, env(safe-area-inset-right, 0px)) + 96px) !important;
  }
  html[data-auth-state="auth"] body[data-page="home"] .profile-area-v3,
  body[data-page="home"].is-auth-user .profile-area-v3,
  body[data-page="home"].app-protected .profile-area-v3{
    right:max(8px, env(safe-area-inset-right, 0px)) !important;
    gap:6px !important;
    max-width:96px !important;
  }
  html[data-auth-state="auth"] body[data-page="home"] .dx-notification-button-v115,
  body[data-page="home"].is-auth-user .dx-notification-button-v115,
  body[data-page="home"].app-protected .dx-notification-button-v115{
    width:38px !important;
    min-width:38px !important;
    max-width:38px !important;
    height:38px !important;
    min-height:38px !important;
    max-height:38px !important;
    flex-basis:38px !important;
  }
  html[data-auth-state="auth"] body[data-page="home"] #profileButton.profile-avatar-button-v3,
  body[data-page="home"].is-auth-user #profileButton.profile-avatar-button-v3,
  body[data-page="home"].app-protected #profileButton.profile-avatar-button-v3{
    width:42px !important;
    min-width:42px !important;
    max-width:42px !important;
    height:42px !important;
    min-height:42px !important;
    max-height:42px !important;
    flex-basis:42px !important;
  }
}
@supports (-webkit-touch-callout: none){
  @media (min-width: 901px) and (max-width: 1366px){
    html[data-auth-state="auth"] body[data-page="home"] .app-topbar-v2,
    body[data-page="home"].is-auth-user .app-topbar-v2,
    body[data-page="home"].app-protected .app-topbar-v2{
      position:sticky !important;
      display:flex !important;
      align-items:center !important;
      justify-content:flex-start !important;
      min-height:72px !important;
      padding-left:max(10px, env(safe-area-inset-left, 0px)) !important;
      padding-right:calc(max(10px, env(safe-area-inset-right, 0px)) + 104px) !important;
      overflow:visible !important;
      isolation:isolate !important;
    }
    html[data-auth-state="auth"] body[data-page="home"] .profile-area-v3,
    body[data-page="home"].is-auth-user .profile-area-v3,
    body[data-page="home"].app-protected .profile-area-v3{
      position:absolute !important;
      left:auto !important;
      right:max(10px, env(safe-area-inset-right, 0px)) !important;
      top:50% !important;
      bottom:auto !important;
      transform:translateY(-50%) !important;
      z-index:1600 !important;
      display:flex !important;
      flex-direction:row !important;
      align-items:center !important;
      justify-content:flex-end !important;
      gap:8px !important;
      width:auto !important;
      min-width:0 !important;
      max-width:104px !important;
      height:44px !important;
      margin:0 !important;
      padding:0 !important;
      overflow:visible !important;
      pointer-events:auto !important;
      justify-self:auto !important;
      align-self:auto !important;
    }
    html[data-auth-state="auth"] body[data-page="home"] #guestRegisterButton.guest-register-pill-v81,
    body[data-page="home"].is-auth-user #guestRegisterButton.guest-register-pill-v81,
    body[data-page="home"].app-protected #guestRegisterButton.guest-register-pill-v81{display:none !important;}
    html[data-auth-state="auth"] body[data-page="home"] .dx-notification-center-v115,
    body[data-page="home"].is-auth-user .dx-notification-center-v115,
    body[data-page="home"].app-protected .dx-notification-center-v115{order:1 !important;margin:0 !important;transform:none !important;flex:0 0 auto !important;}
    html[data-auth-state="auth"] body[data-page="home"] #profileButton.profile-avatar-button-v3,
    body[data-page="home"].is-auth-user #profileButton.profile-avatar-button-v3,
    body[data-page="home"].app-protected #profileButton.profile-avatar-button-v3{order:2 !important;margin:0 !important;transform:none !important;align-self:center !important;}
  }
}

/* ===== v277: modern profile popover that grows out of the profile circle ===== */
body[data-page="home"] #profileMenu.dx-profile-popover-v277{
  --dx-profile-origin-x:calc(100% - 22px);
  --dx-profile-origin-y:22px;
  --dx-profile-anchor-radius:22px;
  --dx-profile-enter-x:0px;
  --dx-profile-enter-y:0px;
  transform-origin:var(--dx-profile-origin-x) var(--dx-profile-origin-y) !important;
  will-change:transform,opacity,clip-path;
  isolation:isolate !important;
  border-radius:28px !important;
  background:
    radial-gradient(circle at var(--dx-profile-origin-x) var(--dx-profile-origin-y),rgba(88,202,255,.16),transparent 92px),
    linear-gradient(180deg,rgba(31,39,52,.985),rgba(16,22,31,.99)) !important;
  border:1px solid rgba(154,216,255,.18) !important;
  box-shadow:0 28px 80px rgba(0,0,0,.52),0 0 0 1px rgba(255,255,255,.035) inset,0 1px 0 rgba(255,255,255,.10) inset !important;
  backdrop-filter:blur(24px) saturate(1.18) !important;
  -webkit-backdrop-filter:blur(24px) saturate(1.18) !important;
}

body[data-page="home"] #profileMenu.dx-profile-popover-v277:not(.hidden){
  display:block !important;
  visibility:visible !important;
  opacity:0 !important;
  transform:translate3d(var(--dx-profile-enter-x),var(--dx-profile-enter-y),0) scale(.14) !important;
  clip-path:circle(var(--dx-profile-anchor-radius) at var(--dx-profile-origin-x) var(--dx-profile-origin-y));
  transition:
    opacity .20s ease,
    transform .38s cubic-bezier(.16,1,.3,1),
    clip-path .42s cubic-bezier(.16,1,.3,1),
    border-radius .34s ease !important;
}

body[data-page="home"] #profileMenu.dx-profile-popover-v277.is-open-v277:not(.hidden){
  opacity:1 !important;
  transform:translate3d(0,0,0) scale(1) !important;
  clip-path:circle(170% at var(--dx-profile-origin-x) var(--dx-profile-origin-y));
}

body[data-page="home"] #profileMenu.dx-profile-popover-v277.is-measuring-v277:not(.hidden){
  opacity:0 !important;
  transform:none !important;
  clip-path:none !important;
  transition:none !important;
}

body[data-page="home"] #profileMenu.dx-profile-popover-v277.is-closing-v277:not(.hidden){
  pointer-events:none !important;
  transition-duration:.18s,.24s,.24s,.20s !important;
}

body[data-page="home"] #profileMenu.dx-profile-popover-v277::before{
  content:"";
  position:absolute;
  z-index:0;
  top:0;
  right:0;
  width:58px;
  height:58px;
  border-radius:0 28px 0 34px;
  background:radial-gradient(circle at 31px 23px,rgba(91,203,255,.22),rgba(91,203,255,.07) 45%,transparent 72%);
  pointer-events:none;
}

body[data-page="home"] #profileMenu.dx-profile-popover-v277 > *{
  position:relative;
  z-index:1;
}

body[data-page="home"] #profileMenu.dx-profile-popover-v277 .profile-menu-close-v12{
  display:grid !important;
  position:absolute !important;
  z-index:8 !important;
  place-items:center !important;
  width:44px !important;
  min-width:44px !important;
  height:44px !important;
  min-height:44px !important;
  padding:0 !important;
  border-radius:999px !important;
  border:1px solid rgba(149,219,255,.28) !important;
  background:linear-gradient(145deg,rgba(50,67,87,.98),rgba(22,29,40,.98)) !important;
  color:#f7fcff !important;
  box-shadow:0 10px 28px rgba(0,0,0,.36),0 0 0 3px rgba(50,177,255,.09),inset 0 1px 0 rgba(255,255,255,.16) !important;
  font-size:18px !important;
  line-height:1 !important;
  cursor:pointer !important;
  transition:background .18s ease,border-color .18s ease,box-shadow .18s ease !important;
}

body[data-page="home"] #profileMenu.dx-profile-popover-v277 .profile-menu-close-v12:hover,
body[data-page="home"] #profileMenu.dx-profile-popover-v277 .profile-menu-close-v12:focus-visible{
  background:linear-gradient(145deg,rgba(62,83,108,.99),rgba(26,36,50,.99)) !important;
  border-color:rgba(155,225,255,.52) !important;
  box-shadow:0 12px 32px rgba(0,0,0,.40),0 0 0 4px rgba(50,177,255,.13),inset 0 1px 0 rgba(255,255,255,.18) !important;
  outline:none !important;
}

body[data-page="home"] #profileButton.profile-avatar-button-v3{
  transition:opacity .20s ease,filter .20s ease,scale .28s cubic-bezier(.16,1,.3,1),border-color .20s ease !important;
}

html.dx-profile-menu-open-v277 body[data-page="home"] #profileButton.profile-avatar-button-v3[aria-expanded="true"]{
  opacity:0 !important;
  scale:.72 !important;
  filter:brightness(1.25) blur(1px) !important;
  pointer-events:none !important;
}

@media (max-width:900px), (max-width:1366px) and (pointer:coarse), (max-width:1366px) and (hover:none){
  body[data-page="home"] #profileMenu.dx-profile-popover-v277{
    border-top-right-radius:23px !important;
    max-height:calc(100dvh - var(--dx-beta-banner-h-v237,32px) - 18px) !important;
  }

  body[data-page="home"] #profileMenu.dx-profile-popover-v277 .profile-menu-head-v3{
    padding-right:48px !important;
  }
}

@media (max-width:430px){
  body[data-page="home"] #profileMenu.dx-profile-popover-v277{
    width:min(360px,calc(100vw - 16px)) !important;
    border-radius:24px !important;
  }
}

@media (prefers-reduced-motion:reduce){
  body[data-page="home"] #profileMenu.dx-profile-popover-v277:not(.hidden),
  body[data-page="home"] #profileButton.profile-avatar-button-v3{
    transition:none !important;
  }
}


/* ===== v278: fixed close-button position + smooth internal profile scrolling ===== */
body[data-page="home"] #profileMenu.dx-profile-popover-v277{
  overscroll-behavior:contain !important;
  scroll-behavior:auto !important;
  touch-action:pan-y !important;
  scrollbar-gutter:stable !important;
  contain:layout paint !important;
}

body[data-page="home"] #profileMenu.dx-profile-popover-v277 .profile-menu-close-v12{
  top:12px !important;
  right:12px !important;
  left:auto !important;
  bottom:auto !important;
  width:30px !important;
  min-width:30px !important;
  max-width:30px !important;
  height:30px !important;
  min-height:30px !important;
  max-height:30px !important;
  border-radius:10px !important;
  font-size:13px !important;
  font-weight:800 !important;
  line-height:1 !important;
  box-shadow:0 6px 16px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.12) !important;
  transform:none !important;
}

body[data-page="home"] #profileMenu.dx-profile-popover-v277 .profile-menu-close-v12:hover,
body[data-page="home"] #profileMenu.dx-profile-popover-v277 .profile-menu-close-v12:focus-visible{
  box-shadow:0 7px 18px rgba(0,0,0,.32),0 0 0 3px rgba(50,177,255,.10),inset 0 1px 0 rgba(255,255,255,.14) !important;
}

body[data-page="home"] #profileMenu.dx-profile-popover-v277 .profile-menu-head-v3{
  padding-right:42px !important;
}

body[data-page="home"] #profileMenu.dx-profile-popover-v277.is-settled-v278:not(.hidden){
  clip-path:none !important;
  transform:none !important;
  will-change:auto !important;
  transition:none !important;
}

@media (max-width:900px), (max-width:1366px) and (pointer:coarse), (max-width:1366px) and (hover:none){
  body[data-page="home"] #profileMenu.dx-profile-popover-v277{
    -webkit-overflow-scrolling:touch !important;
    backdrop-filter:none !important;
    -webkit-backdrop-filter:none !important;
    background:linear-gradient(180deg,rgba(31,39,52,.998),rgba(16,22,31,.998)) !important;
  }
}


/* ===== v279: compact legal links + desktop-style authenticated mobile profile header ===== */
body[data-page="home"] #profileMenu.profile-menu-v3 .profile-legal-brand-v212,
body[data-page="home"] #profileMenu.profile-menu-v3 .profile-legal-nav-v212 > span{
  display:none !important;
}
body[data-page="home"] #profileMenu.profile-menu-v3 .profile-legal-v212{
  gap:0 !important;
  padding:10px !important;
}
body[data-page="home"] #profileMenu.profile-menu-v3 .profile-legal-nav-v212{
  gap:0 !important;
}

@media (max-width:900px), (max-width:1366px) and (pointer:coarse), (max-width:1366px) and (hover:none){
  html[data-auth-state="auth"] body[data-page="home"] #profileMenu.profile-menu-v3 .profile-menu-head-v3,
  body[data-page="home"].is-auth-user #profileMenu.profile-menu-v3 .profile-menu-head-v3,
  body[data-page="home"].app-protected #profileMenu.profile-menu-v3 .profile-menu-head-v3{
    display:grid !important;
    grid-template-columns:44px minmax(0,1fr) !important;
    align-items:center !important;
    justify-items:stretch !important;
    gap:10px !important;
    min-height:64px !important;
    padding:9px 42px 9px 10px !important;
    margin-bottom:10px !important;
    border-radius:17px !important;
    background:#171d26 !important;
    border:1px solid rgba(255,255,255,.08) !important;
    text-align:left !important;
  }
  html[data-auth-state="auth"] body[data-page="home"] #profileMenu.profile-menu-v3 .profile-menu-head-v3 > div,
  body[data-page="home"].is-auth-user #profileMenu.profile-menu-v3 .profile-menu-head-v3 > div,
  body[data-page="home"].app-protected #profileMenu.profile-menu-v3 .profile-menu-head-v3 > div{
    display:block !important;
    min-width:0 !important;
    width:100% !important;
    text-align:left !important;
  }
  html[data-auth-state="auth"] body[data-page="home"] #profileMenu.profile-menu-v3 .profile-menu-avatar-v3,
  body[data-page="home"].is-auth-user #profileMenu.profile-menu-v3 .profile-menu-avatar-v3,
  body[data-page="home"].app-protected #profileMenu.profile-menu-v3 .profile-menu-avatar-v3{
    grid-column:1 !important;
    grid-row:1 !important;
    justify-self:start !important;
    width:44px !important;
    min-width:44px !important;
    max-width:44px !important;
    height:44px !important;
    min-height:44px !important;
    max-height:44px !important;
    margin:0 !important;
    border-radius:999px !important;
    font-size:17px !important;
    line-height:1 !important;
    box-shadow:0 0 0 2px rgba(56,189,248,.22) !important;
  }
  html[data-auth-state="auth"] body[data-page="home"] #profileMenu.profile-menu-v3 .profile-menu-head-v3 small,
  body[data-page="home"].is-auth-user #profileMenu.profile-menu-v3 .profile-menu-head-v3 small,
  body[data-page="home"].app-protected #profileMenu.profile-menu-v3 .profile-menu-head-v3 small{
    display:block !important;
    margin:0 0 2px !important;
    color:#8f98a7 !important;
    font-size:9px !important;
    font-weight:900 !important;
    line-height:1.15 !important;
    letter-spacing:.10em !important;
    text-transform:uppercase !important;
    text-align:left !important;
  }
  html[data-auth-state="auth"] body[data-page="home"] #profileMenu.profile-menu-v3 .profile-menu-head-v3 strong,
  body[data-page="home"].is-auth-user #profileMenu.profile-menu-v3 .profile-menu-head-v3 strong,
  body[data-page="home"].app-protected #profileMenu.profile-menu-v3 .profile-menu-head-v3 strong{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    margin:0 !important;
    color:#f4f6f8 !important;
    font-size:14px !important;
    font-weight:900 !important;
    line-height:1.18 !important;
    text-align:left !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
  }
  html[data-auth-state="auth"] body[data-page="home"] #profileMenu.profile-menu-v3 .profile-email-v3,
  body[data-page="home"].is-auth-user #profileMenu.profile-menu-v3 .profile-email-v3,
  body[data-page="home"].app-protected #profileMenu.profile-menu-v3 .profile-email-v3{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    margin-top:3px !important;
    color:#aeb7c5 !important;
    font-size:11px !important;
    line-height:1.2 !important;
    text-align:left !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
  }
}

@media (max-width:380px){
  html[data-auth-state="auth"] body[data-page="home"] #profileMenu.profile-menu-v3 .profile-menu-head-v3,
  body[data-page="home"].is-auth-user #profileMenu.profile-menu-v3 .profile-menu-head-v3,
  body[data-page="home"].app-protected #profileMenu.profile-menu-v3 .profile-menu-head-v3{
    grid-template-columns:40px minmax(0,1fr) !important;
    min-height:58px !important;
    gap:9px !important;
    padding:8px 40px 8px 9px !important;
  }
  html[data-auth-state="auth"] body[data-page="home"] #profileMenu.profile-menu-v3 .profile-menu-avatar-v3,
  body[data-page="home"].is-auth-user #profileMenu.profile-menu-v3 .profile-menu-avatar-v3,
  body[data-page="home"].app-protected #profileMenu.profile-menu-v3 .profile-menu-avatar-v3{
    width:40px !important;
    min-width:40px !important;
    max-width:40px !important;
    height:40px !important;
    min-height:40px !important;
    max-height:40px !important;
    font-size:15px !important;
  }
  html[data-auth-state="auth"] body[data-page="home"] #profileMenu.profile-menu-v3 .profile-menu-head-v3 strong,
  body[data-page="home"].is-auth-user #profileMenu.profile-menu-v3 .profile-menu-head-v3 strong,
  body[data-page="home"].app-protected #profileMenu.profile-menu-v3 .profile-menu-head-v3 strong{
    font-size:13px !important;
  }
  html[data-auth-state="auth"] body[data-page="home"] #profileMenu.profile-menu-v3 .profile-email-v3,
  body[data-page="home"].is-auth-user #profileMenu.profile-menu-v3 .profile-email-v3,
  body[data-page="home"].app-protected #profileMenu.profile-menu-v3 .profile-email-v3{
    font-size:10px !important;
  }
}
