/* SportCV cyclic profile navigation, profile actions, name protection, and responsive content polish — v715. */
.scv-profile-section-nav-shell {
  position: sticky;
  z-index: 30;
  top: var(--scv-header-height, 70px);
  margin: 0;
  overflow: hidden;
  border: 1px solid #dce6f1;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(23, 51, 82, 0.06);
}

.scv-profile-section-nav {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  align-items: stretch;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
}

.scv-profile-section-nav button {
  position: relative;
  display: flex;
  min-width: 108px;
  flex: 1 0 auto;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 8px 12px;
  background: transparent;
  color: #53657a;
  font: inherit;
  font-size: 13px;
  font-weight: 780;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  appearance: none;
  transition: color 160ms ease, background-color 160ms ease;
}

.scv-profile-section-nav button + button {
  border-left: 1px solid #edf2f7;
}

.scv-profile-section-nav button::after {
  position: absolute;
  right: 14px;
  bottom: 0;
  left: 14px;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: transparent;
  content: "";
}

.scv-profile-section-nav button:hover {
  background: #f7faff;
  color: #1d4ed8;
}

.scv-profile-section-nav button[aria-current="true"] {
  color: #1d4ed8;
}

.scv-profile-section-nav button[aria-current="true"]::after {
  background: #2563eb;
}

.scv-profile-section-nav button:focus-visible {
  z-index: 1;
  border-radius: 10px;
  outline: 3px solid rgba(37, 99, 235, 0.42);
  outline-offset: -4px;
}

.scv-profile-section-nav button[hidden] {
  display: none !important;
}

.scv-profile-section-nav .scv-profile-more-button,
.scv-profile-more-menu {
  display: none;
}

.scv-profile-tab-panel {
  min-width: 0;
  scroll-margin-top: calc(var(--scv-header-height, 70px) + 72px);
  outline: none;
}

.scv-profile-tab-panel > .card {
  margin-bottom: 0;
}

.scv-profile-main-column {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 10px;
}

@media (min-width: 761px) {
  .content-grid {
    margin-top: 10px !important;
  }
}

.scv-profile-media-panel {
  display: grid;
  gap: 14px;
}

.scv-profile-section-empty {
  display: grid;
  min-height: 150px;
  place-items: center;
  margin: 0;
  border: 1px dashed #cbd9e8;
  border-radius: 14px;
  padding: 28px 20px;
  background: #f8fbff;
  color: #53657a;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
  text-align: center;
}

.scv-profile-section-empty[hidden] {
  display: none !important;
}

/* One consistent portrait action stack on every profile renderer:
   square photo edge, attached green slug strip, then the primary share action. */
.hero .portrait-stack {
  min-width: 0;
}

.hero .portrait-stack > .scv-portrait-media {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 0;
  align-content: start;
}

.hero .portrait-stack > .scv-portrait-media > .portrait {
  margin-bottom: 0 !important;
  border-bottom-right-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}

.hero .portrait-stack > .scv-portrait-media > .portrait-slug,
.hero .portrait-stack > .scv-portrait-media > .portrait-slug:hover,
.hero .portrait-stack > .scv-portrait-media > .portrait-slug:focus-within {
  display: flex !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  min-height: 40px !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 8px 12px !important;
  border: 1px solid #b4d8be !important;
  border-top: 0 !important;
  border-radius: 0 0 14px 14px !important;
  background: #d2ebd8 !important;
  color: #084a9c !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  transform: none !important;
}

.hero .portrait-stack > .scv-portrait-media > .portrait-slug .portrait-slug-display,
.hero .portrait-stack > .scv-portrait-media > .portrait-slug .portrait-slug-input {
  width: auto;
  max-width: 100% !important;
  color: #084a9c !important;
  font-size: 13px !important;
  font-weight: 780 !important;
  line-height: 1.2 !important;
  overflow: hidden !important;
  text-align: center;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.hero .portrait-stack > .scv-portrait-media > .portrait-slug .portrait-slug-display {
  display: inline-block !important;
}

.hero .portrait-stack > .scv-portrait-media > .portrait-slug .portrait-slug-input {
  background: transparent !important;
}

.scv-share-profile-primary {
  display: inline-flex !important;
  width: 100% !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 9px;
  margin: 16px 0 0 !important;
  padding: 0 15px !important;
  border: 1px solid #075dcc !important;
  border-radius: 14px !important;
  background: #0869ed !important;
  color: #ffffff !important;
  font: inherit;
  font-size: 13.5px !important;
  font-weight: 760 !important;
  line-height: 1.15 !important;
  text-decoration: none !important;
  box-shadow: 0 9px 20px rgba(8, 105, 237, 0.20) !important;
  box-sizing: border-box !important;
  cursor: pointer;
  appearance: none;
  transition: background-color 0.18s ease, border-color 0.18s ease,
    box-shadow 0.18s ease, transform 0.18s ease;
}

.scv-share-profile-primary:hover {
  border-color: #0756bb !important;
  background: #075fd9 !important;
  color: #ffffff !important;
  box-shadow: 0 11px 24px rgba(8, 105, 237, 0.25) !important;
  transform: translateY(-1px);
}

.scv-share-profile-primary:active {
  background: #0756c8 !important;
  transform: translateY(0);
}

.scv-share-profile-primary:focus-visible {
  outline: 3px solid rgba(8, 105, 237, 0.32) !important;
  outline-offset: 3px !important;
}

.scv-share-profile-primary svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scv-share-profile-primary.is-copied {
  border-color: #07653b !important;
  background: #087443 !important;
  box-shadow: 0 9px 20px rgba(8, 116, 67, 0.18) !important;
}

/* Desktop and tablet profile actions use one compact 40px height.
   Mobile keeps its existing utility height from the responsive header grid. */
@media (min-width: 761px) {
  .scv-share-profile-primary {
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
  }

  .hero .scv-profile-safety-badge.scv-parent-managed-badge {
    height: 40px;
    min-height: 40px;
    max-height: 40px;
    padding-top: 0;
    padding-bottom: 0;
  }
}

.scv-share-profile-status {
  min-height: 17px;
  margin: 6px 2px 0;
  color: #3e6551;
  font-size: 11.5px;
  font-weight: 620;
  line-height: 1.3;
  text-align: center;
}

.scv-share-profile-status:empty {
  display: none;
}

/* Public profiles: one compact management/safety message anchored at the
   bottom of the photo/share column. This replaces the detached status pills. */
.hero .portrait-stack.scv-youth-safety-stack,
.hero .portrait-stack.scv-adult-safety-stack {
  display: flex !important;
  flex-direction: column !important;
}

@media (min-width: 701px) {
  .hero .portrait-stack.scv-youth-safety-stack,
  .hero .portrait-stack.scv-adult-safety-stack {
    align-self: stretch !important;
  }
}

.hero .scv-profile-safety-slot {
  width: 100%;
  min-width: 0;
  margin-top: auto;
  padding-top: 14px;
  box-sizing: border-box;
}


.hero .scv-profile-safety-badge {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 9px 10px;
  border: 1px solid #b9e4cb;
  border-radius: 12px;
  background: #ecfdf5;
  color: #075b35;
  box-shadow: 0 4px 12px rgba(7, 91, 53, 0.06);
  box-sizing: border-box;
}

.hero .scv-profile-safety-icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: #d5f5e3;
  color: #087443;
}

.hero .scv-profile-safety-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero .scv-profile-safety-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
  line-height: 1.15;
  text-align: left;
}

.hero .scv-profile-safety-badge.scv-parent-managed-badge {
  justify-content: center;
}

.hero .scv-parent-managed-badge .scv-profile-safety-copy {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 0;
  text-align: center;
}

.hero .scv-profile-safety-copy strong {
  color: #065f3b;
  font-size: 11.5px;
  font-weight: 820;
}

.hero .scv-profile-safety-copy > span {
  color: #39705a;
  font-size: 9.5px;
  font-weight: 680;
  overflow-wrap: anywhere;
}

/* Keep long profile values inside their cards without clipping real data. */
.hero-content,
.hero-identity-head,
.hero-identity-primary,
.hero-name-row,
.meta-grid,
.meta-item,
.meta-mini,
.meta-item > span,
.meta-mini > span {
  min-width: 0;
}

.hero .hero-name {
  max-width: 100%;
  font-size: clamp(28px, 3.35vw, 36px) !important;
  overflow-wrap: anywhere;
  word-break: normal;
}

.hero .meta-value,
.hero #metaLocation,
.hero #metaClub,
.hero #metaPhysical {
  display: block;
  max-width: 100%;
  overflow: visible;
  overflow-wrap: anywhere;
  white-space: normal;
  word-break: normal;
  -webkit-box-orient: initial;
  -webkit-line-clamp: unset;
}

/* Compact country identity under the athlete name. The large nationality
   Snapshot card stays removed; this line is presentation-only. */
.hero #subtitleCountry {
  display: none !important;
}

.hero .scv-hero-country-badge {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  align-items: center;
  margin: 2px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #5c7188;
  font-size: 12px;
  font-weight: 680;
  line-height: 1.25;
}

.hero .scv-hero-country-badge[hidden] {
  display: none !important;
}

.hero .scv-hero-country-badge .hero-nationality-value,
.hero .scv-hero-country-badge .flag-inline {
  display: inline-flex;
  min-width: 0;
  max-width: 100%;
  align-items: center;
  gap: 7px;
  color: inherit;
  font: inherit;
  overflow-wrap: anywhere;
  white-space: normal;
}

.hero {
  --scv-profile-flag-width: 36px;
  --scv-profile-flag-height: 23px;
}

/* One component for Country and Location. Legacy img rules do not size this SVG viewport. */
.hero .scv-profile-flag {
  display: block;
  width: var(--scv-profile-flag-width);
  height: var(--scv-profile-flag-height);
  min-width: var(--scv-profile-flag-width);
  max-width: var(--scv-profile-flag-width);
  flex: 0 0 var(--scv-profile-flag-width);
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  box-shadow: none;
  object-fit: fill;
  overflow: hidden;
  vertical-align: middle;
}

@media (max-width: 760px) {
  .hero {
    --scv-profile-flag-width: 32px;
    --scv-profile-flag-height: 20px;
  }
}

#profileControlsCard.scv-owner-controls-bar {
  margin: 34px 0 0;
  overflow: hidden;
  border: 0;
  border-radius: 11px;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(20, 60, 100, 0.08);
}

#profileControlsCard.scv-owner-controls-bar .card-body {
  display: block;
  padding: 0;
}

#profileControlsCard.scv-owner-controls-bar .profile-controls-grid {
  display: grid;
  gap: 0;
  margin: 0;
}

#profileControlsCard.scv-owner-controls-adult .profile-controls-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#profileControlsCard.scv-owner-controls-parent .profile-controls-grid {
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
}

#profileControlsCard.scv-owner-controls-bar .profile-control-btn {
  display: inline-flex;
  min-width: 0;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0;
  border: 0;
  border-right: 1px solid #dce6f2;
  border-radius: 0;
  padding: 10px 12px;
  background: #ffffff;
  color: #16324f;
  font-size: 12.5px;
  font-weight: 760;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: none;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}


#profileControlsCard.scv-owner-controls-bar .profile-control-btn[hidden] {
  display: none !important;
}
#profileControlsCard.scv-owner-controls-bar .profile-control-btn:last-child {
  border-right: 0;
}

#profileControlsCard.scv-owner-controls-bar .profile-control-btn:visited {
  color: #16324f;
}

#profileControlsCard.scv-owner-controls-bar .profile-control-btn:hover {
  background: #eef6ff;
  color: #16324f;
  transform: none;
}

#profileControlsCard.scv-owner-controls-bar .profile-control-btn:active {
  background: #dceeff;
  color: #16324f;
  transform: none;
}

#profileControlsCard.scv-owner-controls-bar .profile-control-btn:focus-visible {
  position: relative;
  z-index: 1;
  outline: 3px solid #1473e6;
  outline-offset: -3px;
  background: #eef6ff;
}

#profileControlsCard.scv-owner-controls-bar .profile-control-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: none;
  stroke: #1473e6;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#profileControlsCard.scv-owner-controls-bar .scv-profile-control-primary,
#profileControlsCard.scv-owner-controls-bar .scv-profile-control-primary:visited {
  background: #1473e6 !important;
  color: #ffffff !important;
}

#profileControlsCard.scv-owner-controls-bar .scv-profile-control-primary .profile-control-icon {
  stroke: #ffffff !important;
}

#profileControlsCard.scv-owner-controls-bar .scv-profile-control-primary:hover {
  background: #0f64c8 !important;
  color: #ffffff !important;
}

#profileControlsCard.scv-owner-controls-bar .scv-profile-control-primary:active {
  background: #0b57ad !important;
  color: #ffffff !important;
}

#profileControlsCard.scv-owner-controls-bar .scv-profile-control-primary:focus-visible {
  background: #1473e6 !important;
  color: #ffffff !important;
  outline-color: #ffffff;
  box-shadow: inset 0 0 0 1px #0b57ad;
}

#profileControlsCard.scv-owner-controls-bar .scv-contact-requests-control {
  position: relative;
}

#profileControlsCard.scv-owner-controls-bar .scv-owner-request-badge {
  position: absolute;
  top: 6px;
  right: 8px;
  z-index: 2;
  display: inline-flex;
  min-width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border-radius: 999px;
  background: #dc2626;
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(190, 24, 57, 0.2);
  font-size: 10.5px;
  font-weight: 900;
  line-height: 1;
}

#profileControlsCard.scv-owner-controls-bar .scv-owner-inbox-badges {
  position: absolute;
  top: 4px;
  right: 6px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  pointer-events: none;
}

#profileControlsCard.scv-owner-controls-bar .scv-owner-inbox-badges .scv-owner-request-badge,
#profileControlsCard.scv-owner-controls-bar .scv-owner-inbox-badges .scv-owner-message-badge {
  position: static;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

#profileControlsCard.scv-owner-controls-bar .scv-owner-inbox-badges .scv-owner-message-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #dc2626;
  box-shadow: 0 6px 14px rgba(190, 24, 57, 0.2);
}

#profileControlsCard.scv-owner-controls-bar .scv-owner-message-badge[hidden] {
  display: none !important;
}

#profileControlsCard.scv-owner-controls-parent .profile-controls-grid:not(.scv-has-under13-consent-action) .scv-sportcv-pdf-control {
  border-right: 0;
}

#profileControlsCard.scv-owner-controls-bar .scv-owner-request-badge[hidden] {
  display: none !important;
}

#profileControlsCard.scv-owner-controls-bar .scv-contact-requests-control.scv-has-pending-contact-requests {
  background: linear-gradient(180deg, #fff7f7 0%, #ffffff 100%);
  color: #9f1239;
}

#profileControlsCard.scv-owner-controls-bar .scv-contact-requests-control.scv-has-pending-contact-requests:visited {
  color: #9f1239;
}

#profileControlsCard.scv-owner-controls-bar .scv-contact-requests-control.scv-has-pending-contact-requests .profile-control-icon {
  stroke: #dc2626;
}

#profileControlsCard.scv-owner-controls-bar .scv-contact-requests-control.scv-has-pending-contact-requests:hover {
  background: #fff1f2;
  color: #9f1239;
}

.scv-profile-tab-panel:focus-visible {
  border-radius: 14px;
  outline: 3px solid rgba(37, 99, 235, 0.42);
  outline-offset: 3px;
}

.scv-performance-skills {
  margin-top: 22px;
  border-top: 1px solid #e6edf5;
  padding-top: 20px;
}

.scv-tab-subheading {
  margin: 0 0 14px;
  color: #23364d;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#profileSportStatsBlock {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}

@media (max-width: 760px) {
  .content-grid {
    gap: 0 !important;
    margin-top: 0 !important;
  }

  .scv-profile-main-column {
    display: contents;
  }

  .scv-profile-main-column > .left-col {
    margin-bottom: 16px;
  }

  .scv-profile-section-nav-shell {
    margin: 10px 0 18px;
    overflow: hidden;
    border-radius: 12px;
  }

  .scv-profile-section-nav {
    display: flex;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .scv-profile-section-nav button {
    width: auto;
    height: 50px;
    min-width: 112px;
    min-height: 50px;
    max-height: 50px;
    flex: 0 0 auto;
    padding: 5px 12px;
    box-sizing: border-box;
    font-size: 12px;
    line-height: 1.15;
    white-space: nowrap;
  }

  .scv-profile-section-nav button::after {
    right: 8px;
    left: 8px;
  }

  .scv-profile-tab-panel {
    margin-bottom: 18px;
  }

  .scv-profile-section-empty {
    min-height: 112px;
    border-color: #cddbea;
    border-radius: 14px;
    padding: 22px 16px;
    background: linear-gradient(145deg, #ffffff 0%, #f5f9fd 100%);
    color: #60748a;
    font-size: 13px;
    box-shadow: 0 5px 16px rgba(23, 51, 82, 0.05);
  }

  #achievementsCard.dark-card {
    border: 1px solid #dce6f1 !important;
    background: linear-gradient(145deg, #ffffff 0%, #f8fbfe 100%) !important;
    color: #23364d !important;
    box-shadow: 0 6px 18px rgba(23, 51, 82, 0.06) !important;
  }

  #achievementsCard.dark-card .card-title,
  #achievementsCard.dark-card .award-list,
  #achievementsCard.dark-card .award-list * {
    color: #23364d !important;
  }

  #performanceStatsCard .card-body,
  #sportDetailsCard .card-body {
    padding: 15px !important;
  }

  #performanceStatsCard .profile-performance-grid,
  #sportDetailsCard .profile-performance-grid {
    gap: 7px !important;
  }

  #performanceStatsCard .profile-performance-item,
  #performanceStatsCard .profile-performance-grid > *,
  #sportDetailsCard .profile-performance-item,
  #sportDetailsCard .profile-performance-grid > * {
    gap: 3px !important;
    padding: 10px 11px !important;
    border-radius: 11px !important;
  }

  #performanceStatsCard .profile-performance-note,
  #sportDetailsCard .profile-performance-note {
    margin-bottom: 9px !important;
    line-height: 1.35 !important;
  }

  .scv-performance-skills {
    margin-top: 15px;
    padding-top: 14px;
  }

  .scv-discover-card {
    margin-top: 8px !important;
  }

  .scv-discover-card .card-body {
    padding: 15px !important;
  }

  .scv-discover-title {
    font-size: 19px !important;
  }

  .scv-discover-subtitle {
    margin-top: 5px !important;
    font-size: 11.5px !important;
    line-height: 1.4 !important;
  }

  .scv-discover-filters {
    gap: 5px !important;
    margin: 11px 0 10px !important;
  }

  .scv-discover-list {
    gap: 7px !important;
  }

  .scv-discover-item {
    grid-template-columns: 34px minmax(0, 1fr) auto !important;
    gap: 8px !important;
    padding: 9px !important;
    border-radius: 12px !important;
  }

  .scv-discover-icon {
    width: 34px !important;
    height: 34px !important;
    border-radius: 10px !important;
    font-size: 15px !important;
  }

  .scv-discover-copy strong {
    font-size: 12px !important;
  }

  .scv-discover-copy span,
  .scv-discover-coming {
    font-size: 10.5px !important;
  }

  .scv-discover-action,
  .scv-discover-coming {
    grid-column: 3 !important;
    justify-self: end !important;
  }

  .scv-discover-all {
    min-height: 44px !important;
    margin-top: 10px !important;
  }

  #profileControlsCard.scv-owner-controls-bar {
    margin-top: 12px;
  }

  .hero .hero-name {
    font-size: clamp(18px, 5.2vw, 22px) !important;
  }

  .hero .scv-hero-country-badge {
    margin-top: 0;
    font-size: 11px;
  }


  .hero .portrait-stack > .scv-portrait-media > .portrait-slug,
  .hero .portrait-stack > .scv-portrait-media > .portrait-slug:hover,
  .hero .portrait-stack > .scv-portrait-media > .portrait-slug:focus-within {
    padding: 5px 7px !important;
    border-radius: 0 0 11px 11px !important;
  }

  .hero .portrait-stack > .scv-portrait-media > .portrait-slug .portrait-slug-display,
  .hero .portrait-stack > .scv-portrait-media > .portrait-slug .portrait-slug-input {
    font-size: var(--scv-mobile-profile-utility-font-size) !important;
    line-height: 16px !important;
  }

  /* One authoritative mobile profile-header grid. */
  .hero .hero-grid {
    --scv-mobile-profile-utility-height: 38px;
    --scv-mobile-profile-utility-font-size: 11px;
    grid-template-areas: none !important;
    grid-template-columns:
      minmax(96px, 30%)
      8px
      minmax(0, 1fr)
      8px
      minmax(0, 1fr) !important;
    grid-template-rows: auto var(--scv-mobile-profile-utility-height) auto auto auto auto auto !important;
    column-gap: 0 !important;
    row-gap: 0 !important;
    grid-auto-flow: row !important;
    align-content: start !important;
    align-items: start !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 12px !important;
    box-sizing: border-box !important;
  }

  .hero .portrait-stack,
  .hero .portrait-stack.scv-youth-safety-stack,
  .hero .portrait-stack.scv-adult-safety-stack {
    display: contents !important;
  }

  .hero .portrait-stack > .scv-portrait-media {
    grid-column: 1 !important;
    grid-row: 1 / 3 !important;
    width: 100% !important;
    min-width: 0 !important;
    align-self: start !important;
    margin: 0 !important;
  }

  .hero .portrait-stack > .scv-portrait-media > .portrait {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 1 / 1 !important;
    margin: 0 !important;
  }

  .hero .portrait-stack > .scv-portrait-media > .portrait-slug {
    grid-column: 1 !important;
    grid-row: 2 !important;
    width: 100% !important;
    height: var(--scv-mobile-profile-utility-height) !important;
    min-height: var(--scv-mobile-profile-utility-height) !important;
    max-height: var(--scv-mobile-profile-utility-height) !important;
    margin: 0 !important;
  }

  .hero .hero-content {
    display: contents !important;
  }

  .hero .hero-identity-head {
    display: block !important;
    grid-column: 3 / 6 !important;
    grid-row: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    align-self: start !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    transform: none !important;
  }

  .hero .hero-identity-primary {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    row-gap: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
  }

  .hero .hero-name-row {
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
  }

  .hero .hero-name-row .hero-name {
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
    font-size: clamp(19px, 5.6vw, 24px) !important;
    overflow-wrap: anywhere !important;
  }

  .hero .hero-identity-primary > .subtitle-meta {
    width: 100% !important;
    min-width: 0 !important;
    margin: 2px 0 0 !important;
    padding: 0 !important;
    row-gap: 4px !important;
    text-align: left !important;
  }

  .hero #heroRole {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
  }

  .hero #heroRole .sport-inline {
    display: flex !important;
    flex-flow: row wrap !important;
    align-items: baseline !important;
    column-gap: 6px !important;
    row-gap: 2px !important;
  }

  .hero #heroRole .hero-sport-line,
  .hero #heroRole .hero-sport-text,
  .hero #heroRole .hero-role-line {
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
  }

  .hero #heroRole .hero-sport-line {
    display: inline-flex !important;
    align-items: baseline !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: normal !important;
    overflow: visible !important;
  }

  .hero #heroRole .hero-sport-line .sport-icon-media {
    transform: translateY(2px) !important;
  }

  .hero #heroRole .hero-sport-text {
    min-width: 0 !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    overflow-wrap: anywhere !important;
  }

  .hero #heroRole .hero-role-line {
    display: inline-flex !important;
    align-items: baseline !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #64748b !important;
    overflow: visible !important;
    overflow-wrap: anywhere !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: initial !important;
  }

  .hero #heroRole .hero-role-separator {
    display: none !important;
  }

  .hero .portrait-stack > .scv-share-profile-primary {
    position: static !important;
    inset: auto !important;
    grid-column: 3 !important;
    grid-row: 2 !important;
    width: 100% !important;
    height: var(--scv-mobile-profile-utility-height) !important;
    min-width: 0 !important;
    min-height: var(--scv-mobile-profile-utility-height) !important;
    max-height: var(--scv-mobile-profile-utility-height) !important;
    align-self: stretch !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 0 8px !important;
    font-size: var(--scv-mobile-profile-utility-font-size) !important;
    transform: none !important;
  }

  .hero .portrait-stack > .scv-share-profile-primary:hover,
  .hero .portrait-stack > .scv-share-profile-primary:active {
    transform: none !important;
  }

  .hero .portrait-stack > .scv-share-profile-primary svg {
    width: 14px;
    height: 14px;
    flex-basis: 14px;
  }

  .hero .scv-profile-safety-slot {
    grid-column: 5 !important;
    grid-row: 2 !important;
    align-self: stretch !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .hero .scv-profile-safety-badge {
    height: var(--scv-mobile-profile-utility-height);
    min-height: var(--scv-mobile-profile-utility-height);
    max-height: var(--scv-mobile-profile-utility-height);
    justify-content: center;
    gap: 6px;
    padding: 6px 7px;
    border-radius: 10px;
  }

  .hero .scv-profile-safety-icon {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
    border-radius: 6px;
  }

  .hero .scv-profile-safety-icon svg {
    width: 12px;
    height: 12px;
  }

  .hero .scv-profile-safety-copy {
    flex: 0 1 auto;
    gap: 0;
  }

  .hero .scv-profile-safety-copy strong {
    font-size: var(--scv-mobile-profile-utility-font-size);
    white-space: nowrap;
  }

  .hero .scv-profile-safety-copy > span {
    display: none;
  }

  .hero .portrait-stack > .scv-share-profile-status {
    position: static !important;
    inset: auto !important;
    grid-column: 3 / 6 !important;
    grid-row: 7 !important;
    width: 100% !important;
    margin-top: 5px !important;
  }

  body:not(.owner-mode) .hero .hero-divider {
    grid-column: 1 / 6 !important;
    grid-row: 3 !important;
    width: 100% !important;
    margin-top: 18px !important;
  }

  body:not(.owner-mode) .hero .meta-grid {
    grid-column: 1 / 6 !important;
    grid-row: 4 !important;
    width: 100% !important;
  }

  body.owner-mode .hero-grid > #profileViewsCard {
    grid-area: auto !important;
    grid-column: 1 / 6 !important;
    grid-row: 3 !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 12px 0 0 !important;
    position: static !important;
    inset: auto !important;
    align-self: start !important;
    transform: none !important;
  }

  body.owner-mode .hero .hero-divider {
    grid-column: 1 / 6 !important;
    grid-row: 4 !important;
    width: 100% !important;
    margin-top: 18px !important;
  }

  body.owner-mode .hero .meta-grid {
    grid-column: 1 / 6 !important;
    grid-row: 5 !important;
    width: 100% !important;
  }

  body.owner-mode .hero #profileControlsCard.scv-owner-controls-bar {
    grid-column: 1 / 6 !important;
    grid-row: 6 !important;
    width: 100% !important;
    margin: 12px 0 0 !important;
  }

  .hero-grid > #profileViewsCard .profile-summary-completion-title,
  .hero-grid > #profileViewsCard .profile-summary-completion-value {
    font-size: 12.5px;
  }

  .hero-grid > #profileViewsCard .profile-summary-views {
    flex-wrap: wrap;
    gap: 4px 6px;
    font-size: 11.5px;
    white-space: normal;
  }

  .hero-grid > #profileViewsCard .profile-summary-view-stat::before {
    content: "↗";
    display: inline-block;
    color: #159b4e;
    font-weight: 800;
    line-height: 1;
  }

  .hero-grid > #profileViewsCard .profile-summary-view-separator {
    display: none;
  }
  #profileControlsCard.scv-owner-controls-bar .card-body {
    padding: 0;
  }

  #profileControlsCard.scv-owner-controls-parent .profile-controls-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
  }

  #profileControlsCard.scv-owner-controls-adult .profile-controls-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
  }

  #profileControlsCard.scv-owner-controls-bar .profile-control-btn {
    box-sizing: border-box;
    font-size: 12.5px;
    font-weight: 800;
    white-space: nowrap;
  }

  #profileControlsCard.scv-owner-controls-parent .profile-control-btn {
    flex-direction: column;
    height: 40px;
    min-height: 40px;
    max-height: 40px;
    gap: 2px;
    padding: 3px 2px;
    font-size: 10.5px;
    line-height: 1.05;
  }

  #profileControlsCard.scv-owner-controls-parent .profile-control-icon {
    width: 19px;
    height: 19px;
    flex-basis: 19px;
  }

  #profileControlsCard.scv-owner-controls-parent .profile-control-btn {
    border-right: 1px solid #dce6f2;
    border-bottom: 1px solid #dce6f2;
  }

  #profileControlsCard.scv-owner-controls-parent .profile-control-btn:nth-child(2n) {
    border-right: 0;
  }

  #profileControlsCard.scv-owner-controls-parent .profile-control-btn:nth-child(3),
  #profileControlsCard.scv-owner-controls-parent .profile-control-btn:nth-child(4) {
    border-bottom: 0;
  }

  #profileControlsCard.scv-owner-controls-parent .profile-controls-grid.scv-has-under13-consent-action .profile-control-btn:nth-child(3),
  #profileControlsCard.scv-owner-controls-parent .profile-controls-grid.scv-has-under13-consent-action .profile-control-btn:nth-child(4) {
    border-bottom: 1px solid #dce6f2;
  }

  #profileControlsCard.scv-owner-controls-parent #under13PageCompactAction:not([hidden]) {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 0;
  }

  #profileControlsCard.scv-owner-controls-adult .profile-control-btn {
    height: 40px;
    min-height: 40px;
    max-height: 40px;
    gap: 5px;
    padding: 5px 6px;
  }

  #profileControlsCard.scv-owner-controls-adult .profile-control-icon {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }

  #profileControlsCard.scv-owner-controls-adult .profile-control-btn {
    border-right: 1px solid #dce6f2;
    border-bottom: 1px solid #dce6f2;
  }

  #profileControlsCard.scv-owner-controls-adult .profile-control-btn:nth-child(2n) {
    border-right: 0;
  }

  #profileControlsCard.scv-owner-controls-adult .profile-control-btn:nth-child(n + 3) {
    border-bottom: 0;
  }

  #profileControlsCard.scv-owner-controls-bar .scv-owner-request-badge {
    top: 4px;
    right: 6px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    font-size: 10px;
  }

}

@media (max-width: 640px) {
  .scv-profile-main-column > .left-col {
    margin-bottom: 14px;
  }
}

@media (max-width: 360px) {
  .hero .hero-grid {
    grid-template-columns:
      minmax(96px, 30%)
      6px
      minmax(0, 1fr)
      6px
      minmax(0, 1fr) !important;
  }

  body:not(.owner-mode) .hero .scv-profile-safety-badge {
    gap: 4px;
    padding: 3px 5px;
  }

  .hero .scv-profile-safety-icon {
    display: none;
  }

  .hero .portrait-stack > .scv-share-profile-primary {
    padding-right: 4px !important;
    padding-left: 4px !important;
  }

  .scv-profile-section-nav button {
    padding-right: 2px;
    padding-left: 2px;
    font-size: 10.5px;
  }

}

@media (min-width: 761px) and (max-width: 1100px) {
  .hero .hero-name {
    font-size: clamp(29px, 4.1vw, 37px) !important;
  }

  .hero .hero-identity-primary > .subtitle-meta {
    margin: 2px 0 0 !important;
    row-gap: 4px !important;
  }

  .hero .scv-hero-country-badge {
    margin-top: 0 !important;
  }
}

/* v715: compact, sticky, priority-based phone navigation. */
@media (max-width: 600px) {
  .scv-profile-section-nav-shell {
    position: sticky;
    z-index: 35;
    top: var(--scv-header-height, 64px);
    margin: 3px 0 10px;
    overflow: visible;
    border-radius: 10px;
  }

  .scv-profile-section-nav {
    display: grid;
    width: 100%;
    grid-template-columns: 0.78fr 1.48fr 1.35fr 1.42fr 0.75fr;
    overflow: visible;
  }

  .scv-profile-section-nav button {
    width: 100%;
    height: 40px;
    min-width: 0;
    min-height: 40px;
    max-height: 40px;
    flex: none;
    padding: 2px 3px !important;
    box-sizing: border-box;
    font-size: clamp(10px, 3vw, 12px) !important;
    line-height: 1.1;
    white-space: nowrap;
  }

  .scv-profile-section-nav button + button {
    border-left: 0;
  }

  .scv-profile-section-nav [data-scv-profile-tab="media"] {
    order: 1;
  }

  .scv-profile-section-nav [data-scv-profile-tab="sport-details"] {
    order: 2;
  }

  .scv-profile-section-nav [data-scv-profile-tab="performance"] {
    order: 3;
  }

  .scv-profile-section-nav [data-scv-profile-tab="achievements"] {
    order: 4;
  }

  .scv-profile-section-nav [data-scv-profile-tab="development"],
  .scv-profile-section-nav [data-scv-profile-tab="about"] {
    display: none !important;
  }

  .scv-profile-section-nav .scv-profile-more-button {
    display: flex;
    order: 5;
  }

  .scv-profile-section-nav [data-scv-profile-tab="sport-details"],
  .scv-profile-section-nav [data-scv-profile-tab="performance"],
  .scv-profile-section-nav [data-scv-profile-tab="achievements"],
  .scv-profile-section-nav .scv-profile-more-button {
    border-left: 1px solid #edf2f7;
  }

  .scv-profile-section-nav button::after {
    right: 5px;
    left: 5px;
    height: 3px;
  }

  .scv-profile-more-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 3px;
    display: grid;
    width: min(174px, calc(100vw - 32px));
    overflow: hidden;
    border: 1px solid #d6e2f0;
    border-radius: 12px;
    padding: 5px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(15, 43, 77, 0.18);
  }

  .scv-profile-more-menu[hidden] {
    display: none !important;
  }

  .scv-profile-more-menu button {
    min-height: 40px;
    border: 0;
    border-radius: 8px;
    padding: 8px 11px;
    background: #fff;
    color: #34475e;
    font: inherit;
    font-size: 12px;
    font-weight: 780;
    line-height: 1.2;
    text-align: left;
    cursor: pointer;
  }

  .scv-profile-more-menu button:hover,
  .scv-profile-more-menu button:focus-visible {
    background: #f0f6ff;
    color: #1d4ed8;
    outline: none;
  }

  .scv-profile-more-menu button[aria-current="true"] {
    background: #e8f2ff;
    color: #1d4ed8;
  }

  .scv-profile-more-menu button[aria-current="true"]::after {
    float: right;
    content: "✓";
  }

  .scv-profile-tab-panel {
    scroll-margin-top: calc(var(--scv-header-height, 64px) + 54px);
  }
}

/* Profile names use one balanced desktop size. Long and legacy-invalid names
   receive the smaller treatment and are clipped after line two. */
.hero .hero-content,
.hero .hero-name-row,
.hero .subtitle-meta {
  min-width: 0 !important;
}

.hero .hero-identity-primary {
  row-gap: 0 !important;
}

.hero .hero-name-row .hero-name {
  display: -webkit-box !important;
  max-width: 100% !important;
  padding: 0 0 3px !important;
  line-height: 1.15 !important;
  overflow: hidden !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}

.hero .hero-name.scv-name-legacy-overflow {
  text-overflow: ellipsis !important;
}

@media (min-width: 761px) and (max-width: 1100px) {
  .hero .hero-name.scv-name-long {
    font-size: clamp(26px, 3.4vw, 30px) !important;
  }
}

@media (min-width: 1101px) {
  .hero .hero-identity-primary > .subtitle-meta {
    margin: 8px 0 0 !important;
  }

  .hero .hero-name {
    font-size: 31px !important;
  }

  .hero .hero-name.scv-name-long {
    font-size: 30px !important;
  }
}

@media (max-width: 760px) {
  .hero .hero-name.scv-name-long {
    font-size: clamp(16px, 4.5vw, 18px) !important;
  }
}

@media (min-width: 761px) {
  body.owner-mode .hero-grid > #profileViewsCard {
    margin-top: 10px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scv-profile-section-nav button,
  .scv-share-profile-primary {
    transition: none;
  }
}

/* v684: unified 40px owner controls, compact one-photo media, and mobile youth badge alignment. */
@media (min-width: 761px) and (max-width: 1100px) {
  #profileControlsCard.scv-owner-controls-parent .profile-controls-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  #profileControlsCard.scv-owner-controls-parent .profile-controls-grid.scv-has-under13-consent-action {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  #profileControlsCard.scv-owner-controls-parent .profile-control-btn {
    height: 40px;
    min-height: 40px;
    max-height: 40px;
    flex-direction: column;
    gap: 2px;
    padding: 2px 4px;
  }

  #profileControlsCard.scv-owner-controls-parent .profile-control-icon {
    width: 17px;
    height: 17px;
    flex-basis: 17px;
  }

  #profileControlsCard.scv-owner-controls-parent .profile-controls-grid:not(.scv-has-under13-consent-action) .profile-control-btn:nth-child(4) {
    border-right: 0;
  }
}

.scv-profile-media-panel #photoCard:has(#photoGrid > :only-child) {
  width: min(100%, 500px);
  justify-self: start;
}

.scv-profile-media-panel #photoGrid:has(> :only-child) {
  grid-template-columns: minmax(240px, 440px) !important;
}

@media (max-width: 760px) {
  .hero .scv-parent-managed-badge .scv-profile-safety-copy {
    transform: translateX(-1px);
  }

  .scv-profile-media-panel #photoCard:has(#photoGrid > :only-child) {
    width: 100%;
  }

  .scv-profile-media-panel #photoGrid:has(> :only-child) {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* SportCV 2026-09-07 accepted profile identity/navigation baseline. */
.hero .meta-label,
.hero .meta-value,
.hero .meta-mini .meta-value,
.hero .meta-value .flag-inline {
  font-weight: 700 !important;
}

/* Country remains typographically equal to Sport/Role but visually secondary by color. */
.hero .scv-hero-country-badge {
  margin-left: 4px !important;
}
@media (max-width: 760px) {
  .hero .scv-hero-country-badge {
    margin-left: 2px !important;
  }
}
