/* RUMAROW v1.4.4 app screen polish */

#athlete-home .athlete-home-grid {
  grid-template-areas:
    "profile side"
    "progress side";
}

#athlete-home #athleteCard {
  grid-area: profile;
  min-height: 580px;
}

#athlete-home #athleteCard::after {
  inset: 0 -6% -8% 36%;
  height: auto;
  background:
    linear-gradient(90deg, rgba(10, 22, 36, 0.9) 0%, rgba(10, 22, 36, 0.34) 28%, rgba(5, 12, 22, 0) 58%, rgba(5, 12, 22, 0.58) 100%),
    linear-gradient(180deg, rgba(5, 12, 22, 0) 0%, rgba(5, 12, 22, 0.56) 100%),
    var(--athlete-art);
  background-size: cover, cover, auto 152%;
  background-position: center, center, center 77%;
  opacity: 0.92;
  filter: saturate(1.14) contrast(1.12);
}

#athlete-home #athleteCard .athlete-profile-right {
  margin-right: 0;
  max-width: 360px;
}

#athlete-home #athleteCard .profile-lines {
  background: rgba(5, 14, 24, 0.64);
  backdrop-filter: blur(3px);
}

#athlete-home .home-side {
  grid-area: side;
}

#athlete-home #progressCard {
  grid-area: progress;
  margin-top: 0;
}

@media (max-width: 980px) {
  body.app-mode .topbar {
    padding: 12px 14px;
  }

  body.app-mode .topbar .brand-word,
  body.app-mode .topbar .brand-sub {
    display: none;
  }

  body.app-mode .topbar-actions {
    gap: 8px;
  }

  body.app-mode .topbar-actions .ghost-pill,
  body.app-mode .avatar-mini {
    width: 42px;
    height: 42px;
    padding: 0;
  }

  #athlete-home .athlete-home-grid {
    grid-template-areas:
      "profile"
      "progress"
      "side";
    min-width: 0;
    overflow: hidden;
  }

  #athlete-home #athleteCard,
  #athlete-home #progressCard,
  #athlete-home .home-side,
  #athlete-home .coach-mini-card,
  #athlete-home .people-preview-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  #athlete-home .athlete-profile-left,
  #athlete-home .athlete-profile-right,
  #athlete-home .profile-lines,
  #athlete-home .line-chart {
    min-width: 0;
  }

  #athlete-home .primary-btn.nav-target {
    max-width: 100%;
    white-space: normal;
  }

  #athlete-home #athleteCard::after {
    inset: auto -16% -6% 6%;
    height: 48%;
    background-size: cover, cover, cover;
    background-position: center, center, center 72%;
    opacity: 0.5;
  }

  #athlete-home #progressCard .chart-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #athlete-home #progressCard .chart-tab {
    width: 100%;
    min-width: 0;
    padding-left: 8px;
    padding-right: 8px;
    font-size: 13px;
  }
}
