.athlete-profile-header-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}
.site-header-row .athlete-profile-header-actions button {
  width: 44px;
  min-height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
}
.site-header-row .athlete-profile-header-actions button:disabled { color: var(--muted); border-color: transparent; }
.athlete-profile-header-actions svg,
.athlete-profile-settings-icon {
  display: block;
  width: var(--header-icon-size,24px);
  height: var(--header-icon-size,24px);
}
.athlete-profile-settings-icon {
  background: currentColor;
  mask: url("/icons/settings.svg") center / contain no-repeat;
}
.site-header-row .athlete-profile-header-actions button:not(:disabled):hover,
.site-header-row .athlete-profile-header-actions button:not(:disabled):active {
  color: var(--accent);
  background: var(--accent-tint);
}
.athlete-profile-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.site-header + .athlete-profile-page {
  --profile-space: var(--layout-submenu-content-gap);
  padding-top: var(--profile-space);
}
.athlete-profile-page > section + section {
  position: relative;
  margin-top: var(--profile-space);
}
.athlete-profile-page > section + section::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: calc(var(--profile-space) / -2);
  border-block-start: 1px solid #ffffff24;
}
.athlete-profile-identity-row {
  display: grid;
  grid-template-columns: clamp(50px,17vw,80px) minmax(0,1fr);
  align-items: center;
  gap: clamp(5px,2vw,14px);
}
.athlete-profile-summary { min-width: 0; }
.athlete-profile-display-name {
  margin: 0 0 6px;
  color: #fff;
  font-size: 1.125rem;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}
button.athlete-profile-avatar {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--card);
  font-size: clamp(1.1rem,6vw,1.5rem);
  font-weight: 750;
}
button.athlete-profile-avatar:disabled { opacity: 1; }
button.athlete-profile-avatar:disabled > * { opacity: .75; }
button.athlete-profile-avatar:not(:disabled):is(:hover,:active) {
  background: var(--accent-tint);
  border-color: #fff;
}
.athlete-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.athlete-profile-counts,
.athlete-profile-workout dl {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 4px;
  margin: 0;
  text-align: center;
}
.athlete-profile-counts > div {
  display: flex;
  min-width: 0;
  flex-direction: column-reverse;
  gap: 4px;
}
.athlete-profile-summary .athlete-profile-counts { text-align: left; }
.athlete-profile-counts dt,
.athlete-profile-workout dt {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: .8rem;
}
.athlete-profile-counts dd,
.athlete-profile-workout dd {
  margin: 0;
  color: #fff;
  font-weight: 720;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.athlete-profile-counts dd { font-size: 1.125rem; }
.athlete-profile-bio {
  margin: var(--profile-space) 0 0;
  color: #fff;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.athlete-profile-public-link {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}
.athlete-profile-privacy {
  margin: var(--profile-space) 0 0;
  font-size: .875rem;
}
.athlete-profile-status,
.athlete-profile-sheet-message { margin: 9px 0 0; }
.athlete-profile-status:empty,
.athlete-profile-sheet-message:empty { margin: 0; }
.athlete-profile-page .athlete-profile-status:not(:empty) { margin-top: var(--profile-space); }
.athlete-profile-page button[hidden],
#sheet .athlete-profile-sheet button[hidden] { display: none; }
.athlete-profile-identity button[data-profile-action^="retry"],
.athlete-profile-history-actions:has(button:not([hidden])) { margin-block-start: var(--profile-space); }
.athlete-profile-section-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin: 0 0 var(--profile-space);
}
.athlete-profile-section-heading h2 { margin: 0; }
#athlete-profile-activity,
#athlete-profile-workouts { font-size: 1.125rem; }
.athlete-profile-section-heading label { max-width: 100%; }
.athlete-profile-section-heading select,
.athlete-profile-field :is(select,textarea) {
  max-width: 100%;
  min-height: 44px;
  border: 1px solid var(--action-border);
  border-radius: 8px;
  background: var(--action-surface);
  color: #fff;
  font: inherit;
  padding: 8px;
}
.athlete-profile-metrics {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 4px;
}
.athlete-profile-metrics button {
  min-height: 44px;
  padding: 4px;
  border: 1px solid var(--action-border);
  border-radius: 8px;
  background: var(--action-surface);
  color: #fff;
  font-size: .875rem;
  overflow-wrap: anywhere;
}
.athlete-profile-metrics button[aria-pressed="true"] {
  background: var(--accent-tint);
  border-color: var(--accent);
  color: var(--accent);
}
.athlete-profile-metrics button:hover { border-color: var(--accent); }
.athlete-profile-metrics button:active { background: var(--accent-tint); }
.athlete-profile-page :is(button,a,select,summary):focus-visible,
.athlete-profile-header-actions button:focus-visible,
.athlete-profile-field :is(input,select,textarea):focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.athlete-profile-chart-total,
.athlete-profile-chart-empty { margin: var(--profile-space) 0 6px; }
.athlete-profile-chart-total {
  font-weight: 650;
  color: #fff;
}
.athlete-profile-plot { position: relative; min-width: 0; padding-top: 72px; }
.athlete-profile-bar-scroll { overflow-x: auto; padding: 4px; overscroll-behavior-x: contain; }
.athlete-profile-bars { display: flex; width: 100%; min-width: max-content; height: clamp(90px,30vw,140px); gap: 2px; background: repeating-linear-gradient(to top,#ffffff30 0 1px,transparent 1px 50%); }
.athlete-profile-bars button { display: flex; align-items: end; justify-content: center; flex: 1 0 24px; height: 100%; min-width: 24px; min-height: 24px; padding: 0 4px; border: 0; border-radius: 2px; background: transparent; cursor: pointer; }
.athlete-profile-bars button > span { display: block; width: 100%; min-height: 1px; border-radius: 2px 2px 0 0; background: var(--accent); pointer-events: none; }
.athlete-profile-bars button:hover,.athlete-profile-bars button:focus-visible { background: var(--accent-tint); }
.athlete-profile-bars button:active { background: #ffffff30; }
.athlete-profile-bars button > .athlete-profile-bar-unknown { background: var(--muted); }
.athlete-profile-tooltip { position: absolute; z-index: 2; max-width: min(280px,calc(100% - 16px)); padding: 6px 8px; border: 1px solid #fff; border-radius: 6px; background: #151515; color: #fff; font-size: .75rem; line-height: 1.3; overflow-wrap: anywhere; pointer-events: auto; }
.athlete-profile-grouping { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 8px; }
.athlete-profile-grouping > span { margin-right: 4px; }
.athlete-profile-grouping button { min-height: 44px; padding: 4px 10px; border: 1px solid var(--action-border); border-radius: 8px; background: var(--action-surface); color: #fff; font-size: .875rem; }
.athlete-profile-grouping button[aria-pressed="true"] { background: var(--accent-tint); border-color: var(--accent); color: var(--accent); }
.athlete-profile-grouping button:hover { border-color: var(--accent); }
.athlete-profile-grouping button:active { background: var(--accent-tint); }
.athlete-profile-range {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px;
  color: var(--muted);
  font-size: .75rem;
  margin-top: 4px;
}
.athlete-profile-chart-data summary {
  display: list-item;
  align-content: center;
  width: fit-content;
  min-height: 44px;
  padding: 9px 5px;
  color: var(--accent);
  cursor: pointer;
}
.athlete-profile-chart-data table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}
.athlete-profile-chart-data :is(caption,th,td) {
  padding: 7px 5px;
  text-align: start;
  overflow-wrap: anywhere;
}
.athlete-profile-chart-data caption { color: var(--muted); }
.athlete-profile-chart-data tr { border-bottom: 1px solid #ffffff30; }
.athlete-profile-chart-data th:first-child { width: 70%; }
.athlete-profile-chart-data :is(thead,tfoot) { background: var(--card); }
.athlete-profile-cards {
  display: grid;
  gap: var(--layout-submenu-content-gap);
}
.athlete-profile-cards > p { margin: 4px 0 0; }
.athlete-profile-page .athlete-profile-cards > p { margin: 0; }
.athlete-profile-history .athlete-profile-section-heading { margin-bottom: 0; }
.athlete-profile-history .athlete-profile-cards,
.athlete-profile-history button[data-profile-action="load-more"] { margin-top: var(--profile-space); }
.athlete-profile-workout {
  display: block;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
.card.athlete-profile-workout {
  display: grid;
  gap: var(--layout-submenu-content-gap);
  margin: 0;
  padding: var(--layout-submenu-content-gap);
}
.card.athlete-profile-workout > * { margin: 0; }
.athlete-profile-workout:is(:hover,:active) { border-color: var(--accent); }
.saved-workout-date,
.saved-workout-date-unavailable {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .035em;
  overflow-wrap: anywhere;
}
.saved-workout-date {
  color: var(--accent);
  text-transform: uppercase;
}
.saved-workout-title {
  margin: 0 0 8px;
  font-size: 1.06rem;
  overflow-wrap: anywhere;
}
.saved-workout-location,
.saved-workout-incomplete {
  font-size: .875rem;
  overflow-wrap: anywhere;
}
.saved-workout-location { margin: 0 0 8px; }
.saved-workout-incomplete { margin: 8px 0 0; }
.athlete-profile-workout dl {
  grid-template-columns: repeat(auto-fit,minmax(min(100%,3.35rem),1fr));
}
.athlete-profile-workout dd { margin-top: 3px; }
.athlete-profile-sheet fieldset {
  display: grid;
  gap: 9px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.athlete-profile-field {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: #fff;
}
.athlete-profile-field textarea {
  width: 100%;
  font-size: max(16px,1rem);
  resize: vertical;
}
.athlete-profile-character-count {
  margin: -3px 0 0;
  text-align: end;
  font-size: .8125rem;
}
.athlete-profile-crop-preview {
  display: block;
  width: min(54vw,172px);
  height: auto;
  margin-inline: auto;
  border-radius: 50%;
  background: var(--action-surface);
}
.athlete-profile-field input[type="range"] {
  min-height: 44px;
  margin: 0;
  padding-block: 2px;
  accent-color: var(--accent);
}
@media (max-width: 340px) {
  .athlete-profile-counts dt,
  .athlete-profile-workout dt { font-size: .75rem; }
  .athlete-profile-section-heading { align-items: start; }
}

.athlete-profile-bars button > span[data-profile-has-activity="true"] { min-height: 8px; }
table.athlete-profile-visually-hidden { display: block; max-width: 1px; min-width: 0; overflow: hidden; }
