.sport-profile, .sport-profile-body {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.sport-profile-navigation {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 6px;
}

#panel-content .sport-profile-navigation button[aria-pressed="true"] {
  color: #fff;
  background: #182646;
  border-color: #182646;
}

.sport-profile-card {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}

.sport-profile-local { background: var(--ice); }
.sport-profile-card h4 { margin: 5px 0 0; }
.sport-profile-card small { color: var(--muted); }
.sport-profile-status:empty, .sport-profile-match:empty { display: none; }

.sport-profile-form {
  display: grid;
  gap: 8px;
  align-items: start;
}

#panel-content .sport-profile-form label { margin: 0; }
.sport-profile-form > button { justify-self: start; }

#panel-content .sport-profile-form .sport-profile-choice {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

.sport-profile-choice input { width: 18px; height: 18px; flex: 0 0 auto; }

.sport-profile-code {
  justify-self: start;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--ice);
  font-weight: 700;
  overflow-wrap: anywhere;
  user-select: all;
}

.sport-profile-measures {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(118px,1fr));
  gap: 7px;
  margin: 0;
}

.sport-profile-measures > div { padding: 6px 8px; }
.sport-profile-measures dt { color: var(--muted); font-size: .8rem; }
.sport-profile-measures dd { margin: 2px 0 0; font-weight: 740; font-variant-numeric: tabular-nums; }

.sport-profile-match, .sport-profile-people li, .sport-profile-people li > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

#panel-content .sport-profile-people { margin: 0; padding: 0; list-style: none; }
.sport-profile-people li { justify-content: space-between; }
.sport-profile-people li > strong, .sport-profile-rank-row > span { overflow-wrap: anywhere; }

.sport-profile-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(110px,1fr));
  gap: 8px;
}

.sport-profile-own-rank { padding: 7px 9px; border-radius: 6px; background: #c7f1e8; }
.sport-profile-ranks { margin: 7px 0 0; padding-inline-start: 2.2rem; }
.sport-profile-ranks li::marker { font-variant-numeric: tabular-nums; color: var(--muted); }
.sport-profile-rank-row { display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px; border-radius: 6px; }
.sport-profile-my-row .sport-profile-rank-row { background: #c7f1e8; }
.sport-profile-rank-row > strong { flex: 0 0 auto; font-variant-numeric: tabular-nums; }
