.home-shell > :not(.app-main-nav):not(.ss-simple-profile-context):not(.home-hero):not(.guided-journey-v137):not(.simple-role-access):not(.simple-home-dashboard):not(.follow-through-card) {
  display: none !important;
}

body:is([data-v135-role="loading"], [data-v135-role="protected"], [data-v135-role="parent"]) .home-shell > :is(.ss-simple-profile-context, .simple-role-access) {
  display: flex !important;
}

body:is([data-v135-role="loading"], [data-v135-role="protected"], [data-v135-role="parent"]) .home-shell > :is(.guided-journey-v137, .simple-home-dashboard) {
  display: grid !important;
}

body:is([data-v135-role="loading"], [data-v135-role="protected"], [data-v135-role="parent"]) .home-hero .home-actions {
  display: flex !important;
}

body:is([data-v135-role="loading"], [data-v135-role="protected"], [data-v135-role="parent"]) .home-hero p {
  display: block;
}

.simple-role-access,
.simple-home-dashboard {
  margin: 18px 0;
  border: 1px solid #d4e3ef;
  border-radius: 26px;
  background: #fff;
  color: #10243f;
  box-shadow: 0 18px 48px rgba(8, 49, 86, .09);
}

.simple-role-access {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(20px, 3vw, 30px);
}

.simple-role-access > header,
.simple-home-dashboard > header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.simple-role-access > header > div,
.simple-home-dashboard > header > div {
  display: grid;
  gap: 5px;
}

.simple-role-access > header span,
.simple-home-dashboard > header span,
.simple-role-grid article > div > span,
.simple-dashboard-grid article > span {
  color: #53718e;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .1em;
}

.simple-role-access h2,
.simple-home-dashboard h2 {
  margin: 0;
  color: #082f55;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
}

.simple-role-access > header p {
  max-width: 560px;
  margin: 0;
  color: #607790;
  line-height: 1.55;
}

.simple-role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.simple-role-grid article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  min-height: 220px;
  padding: 20px;
  border: 1px solid #d8e6f1;
  border-radius: 20px;
  background: linear-gradient(145deg, #fbfdff, #f1f7fb);
}

.simple-role-grid article.is-current {
  border-color: #0b6cae;
  box-shadow: inset 0 0 0 2px rgba(11, 108, 174, .13);
}

.simple-role-grid article > .button-link {
  grid-column: 1 / -1;
  align-self: end;
  justify-self: stretch;
  text-align: center;
}

.simple-role-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  background: #e2f0ff;
  color: #075a99;
  font-size: 1.2rem;
  font-weight: 900;
}

.simple-role-grid h3 {
  margin: 5px 0 6px;
  color: #0c355b;
}

.simple-role-grid p,
.simple-dashboard-grid p {
  margin: 0;
  color: #607790;
  line-height: 1.5;
}

.simple-home-dashboard {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3vw, 30px);
  background:
    radial-gradient(circle at 94% 4%, rgba(23, 191, 165, .13), transparent 30%),
    linear-gradient(145deg, #f8fcff, #edf6ff);
}

#simpleHomeAthleteSwitch {
  display: grid;
  gap: 5px;
  color: #53718e;
  font-size: .74rem;
  font-weight: 850;
}

#simpleHomeAthleteSelect {
  min-width: 210px;
  min-height: 42px;
  border: 1px solid #bdd3e5;
  border-radius: 11px;
  background: #fff;
  color: #133c61;
  font: inherit;
}

.simple-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.simple-dashboard-grid article {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 180px;
  padding: 20px;
  border: 1px solid #d6e5f0;
  border-radius: 19px;
  background: rgba(255, 255, 255, .94);
}

.simple-dashboard-grid article > strong,
.simple-dashboard-grid article h3 {
  margin: 0;
  color: #0b355b;
  font-size: 1.25rem;
}

.simple-dashboard-grid article > a:not(.button-link) {
  align-self: end;
  margin-top: auto;
  color: #0a66a8;
  font-weight: 850;
  text-decoration: none;
}

.simple-dashboard-grid .simple-next-card {
  grid-column: span 3;
  min-height: 0;
  color: #fff;
  background: linear-gradient(135deg, #073d73, #0878b7);
}

.simple-next-card > span,
.simple-next-card h3,
.simple-next-card p { color: #fff !important; }
.simple-next-card p { opacity: .86; }
.simple-next-card .button-link { justify-self: start; margin-top: 4px; }

@media (max-width: 820px) {
  .simple-role-access > header,
  .simple-home-dashboard > header { align-items: flex-start; flex-direction: column; }
  .simple-role-grid,
  .simple-dashboard-grid { grid-template-columns: 1fr; }
  .simple-dashboard-grid .simple-next-card { grid-column: auto; }
  #simpleHomeAthleteSwitch, #simpleHomeAthleteSelect { width: 100%; }
}

@media (max-width: 520px) {
  .simple-role-access,
  .simple-home-dashboard { border-radius: 19px; }
  .home-actions, .home-actions a { width: 100%; }
}

/* v13.8 personalized Home refresh */
body {
  background:
    radial-gradient(circle at 8% 8%, rgba(31, 174, 218, .12), transparent 24rem),
    linear-gradient(180deg, #f4faff 0, #f8fbfd 38rem, #eef5f9 100%);
}

.home-shell { width: min(1180px, 100%); }

.home-hero {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  align-items: center;
  border: 0;
  border-radius: 30px;
  background:
    radial-gradient(circle at 85% 15%, rgba(83, 232, 207, .3), transparent 30%),
    radial-gradient(circle at 15% 110%, rgba(47, 164, 232, .38), transparent 42%),
    linear-gradient(135deg, #052f62 0%, #075c91 58%, #078e9a 100%);
  box-shadow: 0 26px 70px rgba(4, 48, 89, .22);
}

.home-hero::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -90px;
  bottom: -210px;
  border: 34px solid rgba(255, 255, 255, .09);
  border-radius: 50%;
  pointer-events: none;
}

.home-hero-copy,
.home-actions { position: relative; z-index: 1; }

.home-hero > .home-hero-copy > span { color: #7ff0dd; }
.home-hero h1 {
  max-width: 760px;
  margin: 10px 0 0;
  color: #fff;
  font-size: clamp(2.6rem, 6.6vw, 5.4rem);
  letter-spacing: -.045em;
  line-height: .96;
}
.home-hero p { color: #d9edf7; font-weight: 650; line-height: 1.55; }

.home-hero-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.home-hero-status span {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  background: rgba(2, 31, 59, .28);
  color: #e8f8ff;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: none;
}
.home-hero-status span.is-caution { border-color: #ffd37c; color: #ffe9b4; }

.home-actions { min-width: 220px; }
.home-actions .button-link {
  min-height: 46px;
  border-color: rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .1);
  color: #fff;
  backdrop-filter: blur(8px);
}
.home-actions .home-primary-action {
  min-height: 54px;
  border: 0;
  background: #fff;
  color: #075b95;
  box-shadow: 0 12px 30px rgba(1, 28, 52, .2);
}

body.simple-home-signed-out .guided-journey-v137,
body.simple-home-signed-out .simple-home-dashboard,
body.simple-home-signed-out .follow-through-card { display: none !important; }
body.simple-home-signed-in .simple-role-access { display: none !important; }

.simple-role-access,
.simple-home-dashboard,
.guided-journey-v137 { border-radius: 24px; box-shadow: 0 16px 42px rgba(8, 49, 86, .07); }

.simple-role-access > header { align-items: center; }
.simple-role-grid article {
  min-height: 205px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.simple-role-grid article:hover {
  transform: translateY(-3px);
  border-color: #91bfdc;
  box-shadow: 0 14px 30px rgba(8, 69, 111, .1);
}

.simple-home-dashboard > header > div { max-width: 720px; }
#simpleDashboardIntro { margin: 3px 0 0; color: #607790; line-height: 1.5; }

.simple-dashboard-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.simple-dashboard-grid article {
  position: relative;
  min-height: 195px;
  overflow: hidden;
  border-color: #d7e5ee;
  box-shadow: 0 8px 22px rgba(8, 49, 86, .05);
}
.simple-dashboard-grid article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #66a8cc;
}
.simple-dashboard-grid article[data-status="complete"]::before { background: #18a87f; }
.simple-dashboard-grid article[data-status="attention"]::before { background: #e0a329; }
.simple-dashboard-grid article[data-status="next"]::before { background: #0b75b3; }
.simple-dashboard-grid .simple-step-card::after {
  content: attr(data-home-step);
  position: absolute;
  top: 15px;
  right: 16px;
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 50%;
  background: #e9f3fa;
  color: #0b5e93;
  font-size: .78rem;
  font-weight: 900;
}
.simple-dashboard-grid .simple-step-card > span { padding-right: 38px; }

@media (max-width: 820px) {
  .home-hero { min-height: 0; border-radius: 23px; }
  .home-hero h1 { font-size: clamp(2.45rem, 12vw, 4.2rem); }
  .home-actions { grid-template-columns: 1fr 1fr; }
  .home-actions .home-primary-action { grid-column: 1 / -1; }
  .simple-dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .home-hero { padding: 24px 18px; }
  .home-actions { grid-template-columns: 1fr; }
  .home-actions .home-primary-action { grid-column: auto; }
  .home-hero-status { display: grid; grid-template-columns: 1fr; }
  .home-hero-status span { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .simple-role-grid article { transition: none; }
}

/* v13.8 compact Home viewport patch */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.home-shell {
  width: 100% !important;
  max-width: 1040px !important;
  gap: 12px !important;
  padding: 20px 18px 48px !important;
}

.home-shell > *,
.home-hero > *,
.guided-journey-v137 > *,
.journey-step-list > *,
.journey-workspace > *,
.simple-role-access > *,
.simple-home-dashboard > *,
.simple-role-grid > *,
.simple-dashboard-grid > * {
  min-width: 0;
}

.home-shell > .guided-journey-v137 {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.home-hero {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 260px) !important;
  gap: 22px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 24px !important;
  border: 0 !important;
  border-radius: 20px !important;
  background:
    radial-gradient(circle at 90% 5%, rgba(83, 232, 207, .25), transparent 34%),
    linear-gradient(135deg, #052f62, #087f91) !important;
  box-shadow: 0 14px 34px rgba(4, 48, 89, .16) !important;
}

.home-hero::after {
  display: none !important;
}

.home-hero h1 {
  max-width: 650px;
  margin: 6px 0 0 !important;
  color: #fff !important;
  font-size: clamp(1.9rem, 4.2vw, 3.25rem) !important;
  line-height: 1.02 !important;
}

.home-hero p {
  max-width: 600px;
  margin: 7px 0 0 !important;
  color: #d9edf7 !important;
  font-size: .92rem !important;
  line-height: 1.42 !important;
}

.home-hero > .home-hero-copy > span {
  margin-bottom: 0;
  color: #7ff0dd !important;
  font-size: .68rem !important;
}

.home-hero-status {
  gap: 6px;
  margin-top: 12px;
}

.home-hero-status span {
  max-width: 100%;
  padding: 5px 8px;
  overflow-wrap: anywhere;
  font-size: .68rem;
}

.home-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: center;
  min-width: 0;
  width: 100%;
  gap: 7px !important;
}

.home-actions > * {
  width: 100%;
  min-width: 0;
  min-height: 38px !important;
  padding: 7px 10px !important;
  white-space: normal;
}

.home-actions .home-primary-action {
  grid-column: 1 / -1;
  min-height: 42px !important;
  border-color: #fff !important;
  background: #fff !important;
  color: #075b95 !important;
}

.home-actions .button-link:not(.home-primary-action),
.home-actions button {
  border-color: rgba(255, 255, 255, .35) !important;
  background: rgba(255, 255, 255, .1) !important;
  color: #fff !important;
}

.simple-role-access,
.simple-home-dashboard {
  gap: 12px;
  margin: 0;
  padding: 17px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(8, 49, 86, .06);
}

.simple-role-access > header,
.simple-home-dashboard > header {
  align-items: center;
  gap: 14px;
}

.simple-role-access h2,
.simple-home-dashboard h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem) !important;
}

.simple-role-access > header p,
#simpleDashboardIntro {
  max-width: 520px;
  font-size: .85rem;
  line-height: 1.4;
}

.simple-role-grid,
.simple-dashboard-grid {
  gap: 10px;
}

.simple-role-grid article {
  gap: 10px;
  min-height: 154px;
  padding: 13px;
  border-radius: 13px;
}

.simple-role-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 1rem;
}

.simple-role-grid h3 {
  margin: 2px 0 3px;
  font-size: .95rem !important;
}

.simple-role-grid p,
.simple-dashboard-grid p {
  font-size: .82rem;
  line-height: 1.38;
}

.simple-role-grid article > .button-link {
  min-height: 36px !important;
  padding: 7px 10px !important;
}

#simpleHomeAthleteSelect {
  min-width: 180px;
  min-height: 38px;
}

.simple-dashboard-grid article {
  gap: 7px;
  min-height: 132px;
  padding: 14px;
  border-radius: 13px;
  box-shadow: none;
}

.simple-dashboard-grid .simple-next-card {
  min-height: 0;
  padding: 14px 16px;
}

.simple-dashboard-grid article > strong,
.simple-dashboard-grid article h3 {
  font-size: 1.02rem !important;
}

.simple-dashboard-grid .simple-step-card::after {
  top: 11px;
  right: 11px;
  width: 25px;
  height: 25px;
  font-size: .7rem;
}

.simple-dashboard-grid .simple-step-card > span {
  padding-right: 28px;
}

@media (min-width: 960px) {
  .home-shell {
    padding: 24px 22px 44px !important;
  }
}

@media (max-width: 820px) {
  .home-shell {
    gap: 10px !important;
    padding: 12px 10px 78px !important;
  }

  .home-hero {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    padding: 18px !important;
    border-radius: 16px !important;
  }

  .home-hero h1 {
    font-size: clamp(1.7rem, 8.5vw, 2.35rem) !important;
  }

  .home-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .simple-role-access,
  .simple-home-dashboard {
    padding: 14px;
    border-radius: 14px;
  }

  .simple-role-access > header,
  .simple-home-dashboard > header {
    align-items: flex-start;
    gap: 8px;
  }

  .simple-role-grid,
  .simple-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .simple-role-grid article,
  .simple-dashboard-grid article {
    min-height: 0;
  }

  .simple-dashboard-grid .simple-next-card {
    grid-column: auto;
  }
}

@media (max-width: 420px) {
  .home-hero-status {
    display: flex;
  }

  .home-actions {
    grid-template-columns: 1fr 1fr !important;
  }

  .home-actions .home-primary-action,
  .home-actions #homeAccountAction {
    grid-column: 1 / -1;
  }

  .simple-role-grid article {
    grid-template-columns: 36px minmax(0, 1fr);
  }
}
