/* AwayDay v2.3.3 — readable account controls and wider desktop application pages. */
.ad-next-app .ad-next-top-actions .ad-next-notification-link {
  position:relative; display:inline-flex; justify-content:center; align-items:center;
  color:var(--nx-fg)!important; flex:0 0 auto; text-decoration:none;
  width:44px; height:44px; border-radius:15px;
  background:rgba(161,187,221,.07); border:1px solid var(--nx-border);
}
.ad-next-app .ad-next-notification-link:hover {
  background:var(--nx-card)!important; border-color:var(--nx-line);
}
.ad-next-app .ad-next-notification-link .adp-icon {width:20px;height:20px;}
.ad-next-app .ad-next-notification-count {
  position:absolute; top:-5px;right:-7px;min-width:19px;height:19px;
  display:flex;align-items:center;justify-content:center;padding:0 4px;
  border-radius:10px;background:#e0ed87;color:#16243a;
  font:800 10px/1 var(--nx-font);box-shadow:0 0 0 2px var(--nx-bg);
}
/* The mobile menu already contains Notifications. Never duplicate it over the dock. */
@media(max-width:740px){
  .ad-next-app .ad-next-top-actions .ad-next-notification-link {display:none!important;}
  body:has(.ad-next-app) #awayday-notif-bell {display:none!important;}
}

/* Legacy plugin caps (860px profile, 900px dashboard) created huge right gutters.
   Keep readable page structures but distribute dashboard cards across desktop width. */
@media(min-width:900px) {
  .ad-next-app .page-content .ad-profile,
  .ad-next-app .page-content .ad-dashboard,
  .ad-next-app .page-content .ad-rankings,
  .ad-next-app .page-content .ad-leaderboard {
    box-sizing:border-box;width:100%!important;max-width:1360px!important;
    margin-inline:auto!important;
  }
  .ad-next-app .page-content .ad-club-page {
    box-sizing:border-box;width:100%!important;max-width:1200px!important;
    margin-inline:auto!important;
  }
  .ad-next-app .page-content .ad-settings {
    box-sizing:border-box;width:100%!important;max-width:1130px!important;
    margin-inline:auto!important;
  }
}
/* The profile header should use its additional width without stretching controls. */
.ad-next-app .ad-profile .ad-profile-header {min-width:0;gap:clamp(17px,2vw,30px);}
.ad-next-app .ad-profile .ad-profile-header .ad-profile-meta {min-width:0;}
.ad-next-app .ad-profile .ad-profile-header .ad-profile-actions {flex:0 0 clamp(140px,15vw,180px);}
.ad-next-app .ad-profile .ad-profile-avatar {color:#e9f2ff!important;border-color:#667a9b!important;}
.ad-next-app .ad-profile .ad-profile-tier {font-weight:750;}
.ad-next-app .ad-profile .ad-profile-next {color:var(--nx-sub)!important;}
body.light-mode .ad-next-app .ad-profile .ad-profile-avatar {color:#1a2b43!important;border-color:#9aacc8!important;}
@media(max-width:740px) {
  .ad-next-app .page-content :is(.ad-profile,.ad-dashboard,.ad-settings,.ad-rankings,.ad-leaderboard,.ad-club-page) {
    width:100%!important;max-width:100%!important;margin:0!important;
  }
  .ad-next-app .ad-profile .ad-profile-header .ad-profile-actions {flex:1 1 100%;width:100%;}
}
/* Onboarding card: enforce contrast independently of legacy inline dark blues. */
#profile-prompt.adp-profile-prompt {
  box-sizing:border-box!important;width:min(350px,calc(100vw - 32px))!important;
  color:#eef5ff!important;background:#172238!important;
  border:1px solid #506787!important;border-radius:17px!important;
  box-shadow:0 18px 55px rgba(0,0,0,.38)!important;
  padding:20px!important;z-index:2450!important;
}
#profile-prompt.adp-profile-prompt strong {color:#f6f8ff!important;font-size:15px!important;}
#profile-prompt.adp-profile-prompt .adp-prompt-close {color:#d0d9e8!important;min-height:30px;min-width:30px;}
#profile-prompt.adp-profile-prompt .adp-prompt-progress {background:#354359!important;height:7px;}
#profile-prompt.adp-profile-prompt .adp-prompt-progress>div {background:#ddeb91!important;}
#profile-prompt.adp-profile-prompt .adp-prompt-counter {color:#cad4e4!important;font-size:12px!important;}
#profile-prompt.adp-profile-prompt .adp-prompt-step {
  background:#24344f!important;border:1px solid #465875!important;
  color:#f5f8ff!important;line-height:1.35!important;padding:12px!important;border-radius:10px!important;
}
#profile-prompt.adp-profile-prompt .adp-prompt-step:hover {background:#304260!important;}
#profile-prompt.adp-profile-prompt .adp-prompt-step>span {color:#e0ed87!important;font-size:14px!important;}
@media(max-width:740px){
  #profile-prompt.adp-profile-prompt {bottom:calc(96px + env(safe-area-inset-bottom,0px))!important;right:16px!important;}
}
/* Match the profile reminder to the active appearance mode, with real contrast. */
body.light-mode #profile-prompt.adp-profile-prompt {
  background:#fff!important;color:#1b2b43!important;border-color:#bdccdf!important;
  box-shadow:0 18px 55px rgba(23,46,78,.18)!important;
}
body.light-mode #profile-prompt.adp-profile-prompt strong {color:#17263c!important;}
body.light-mode #profile-prompt.adp-profile-prompt .adp-prompt-close,
body.light-mode #profile-prompt.adp-profile-prompt .adp-prompt-counter {color:#4e6076!important;}
body.light-mode #profile-prompt.adp-profile-prompt .adp-prompt-progress {background:#e5eaf2!important;}
body.light-mode #profile-prompt.adp-profile-prompt .adp-prompt-progress>div {background:#607a22!important;}
body.light-mode #profile-prompt.adp-profile-prompt .adp-prompt-step {
  background:#f1f5fb!important;color:#1c304a!important;border-color:#cfdaea!important;
}
body.light-mode #profile-prompt.adp-profile-prompt .adp-prompt-step:hover {background:#e8eff8!important;}
body.light-mode #profile-prompt.adp-profile-prompt .adp-prompt-step>span {color:#426526!important;}
