.profile-hub {
  padding-top: 26px !important;
}
.profile-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  padding: 0 0 24px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.profile-nav a {
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
  font-size: 14px;
}
.profile-nav a:hover {
  text-decoration: underline;
}
.profile-hub .profile-hero {
  padding: 0;
  overflow: hidden;
}
.profile-cover {
  height: 240px;
  position: relative;
  background: #dce7bf;
}
.profile-cover > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-cover-pattern {
  background: linear-gradient(
    125deg,
    #183e32 0 42%,
    #35634c 42% 43%,
    #a3bc70 43% 67%,
    #d9ec9b 67%
  );
}
.profile-cover-pattern:before {
  content: "";
  position: absolute;
  inset: 40px 8%;
  border: 2px solid #ffffff5c;
  border-radius: 6px;
}
.profile-visibility {
  position: absolute;
  right: 20px;
  top: 20px;
  background: #f5f6f0ed;
  color: #173e32;
  padding: 8px 14px;
  border-radius: 24px;
  font-size: 12px;
  font-weight: 650;
}
.profile-summary {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 0 32px;
  margin-top: -38px;
  position: relative;
}
.profile-summary > .courtly-avatar {
  width: 132px !important;
  height: 132px !important;
  border: 6px solid white;
  box-shadow: 0 4px 20px #173e3214;
}
.profile-summary h1 {
  font-size: clamp(28px, 4vw, 44px) !important;
}
.profile-summary > div {
  padding-top: 42px;
  flex: 1;
}
.profile-summary > .courtly-button {
  margin-top: 42px;
}
.profile-bio {
  padding: 18px 32px 0;
  max-width: 820px;
}
.profile-hero > .courtly-tags,
.profile-actions,
.profile-counts {
  margin-left: 32px !important;
  margin-right: 32px !important;
}
.profile-counts {
  display: flex;
  gap: 44px;
  margin: 24px 0;
}
.profile-counts > a,
.profile-counts > span {
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font-size: 13px;
  text-decoration: none;
}
.profile-counts strong {
  font-size: 24px;
}
.profile-actions {
  padding-bottom: 28px;
}
.person-link {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
  margin-bottom: 18px;
}
.person-link span:last-child {
  display: grid;
  gap: 4px;
}
.person-link small {
  color: #546756;
  font-size: 12px;
}
.person-link strong {
  font-size: 18px;
}
.tennis-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.tennis-facts > div {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.tennis-facts dt {
  font-size: 12px;
  color: #546756;
}
.tennis-facts dd {
  margin: 5px 0 0;
  font-size: 18px;
  font-weight: 600;
}
.profile-posts {
  display: grid;
  gap: 20px;
}
.profile-posts > article {
  margin: 0;
}
.profile-preview-card {
  padding: 24px;
  background: #f5f7ef;
  border-radius: 14px;
  margin-top: 20px;
}
.image-edit-preview {
  height: 130px;
  width: 100%;
  object-fit: contain;
  background: #edf1e8;
  border-radius: 12px;
}
.availability-row {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}
.notification.is-unread {
  border-left: 5px solid #84a33b;
}
.unread-count {
  display: inline-block;
  background: #dcf276;
  border-radius: 12px;
  padding: 1px 7px;
  font-size: 12px;
}
.danger {
  background: #fbe7df !important;
  color: #8c2f17 !important;
  border-color: #e4b8a6 !important;
}
.profile-hub dialog {
  width: min(650px, 96vw) !important;
}
.profile-hub .courtly-avatar img[src*="profile-assets"],
#courtly-app .courtly-avatar img[src*="profile-assets"] {
  object-fit: cover;
}
.profile-hub fieldset {
  min-width: 0;
}
.profile-hub label small {
  font-weight: 400;
}
.profile-hub h1 {
  margin-bottom: 22px !important;
}
.profile-hero h1 {
  margin-bottom: 0 !important;
}
@media (max-width: 650px) {
  .profile-nav {
    gap: 14px;
  }
  .profile-nav a {
    font-size: 12px;
  }
  .profile-cover {
    height: 170px;
  }
  .profile-summary {
    padding: 0 18px;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: -30px;
  }
  .profile-summary > .courtly-avatar {
    width: 92px !important;
    height: 92px !important;
    border-width: 4px;
  }
  .profile-summary > div {
    padding-top: 30px;
    min-width: 130px;
  }
  .profile-summary > .courtly-button {
    margin-top: 0;
    margin-left: 106px;
  }
  .profile-bio {
    padding: 18px 18px 0;
  }
  .profile-hero > .courtly-tags,
  .profile-actions,
  .profile-counts {
    margin-left: 18px !important;
    margin-right: 18px !important;
  }
  .profile-counts {
    gap: 28px;
  }
  .tennis-facts {
    grid-template-columns: 1fr;
  }
  .profile-actions > button {
    flex: 1;
  }
  .profile-visibility {
    right: 12px;
    top: 12px;
  }
  .profile-hub .courtly-grid {
    grid-template-columns: 1fr;
  }
}
/* MATCH01 */
.match-hub{display:grid;gap:1rem;min-width:0}.match-totals{display:flex;flex-wrap:wrap;gap:1.5rem;margin:1.5rem 0}.match-totals span{display:grid;color:#53665d}.match-totals strong{font-size:2rem;color:#193d2d}.match-table{overflow-x:auto}.match-table table{width:100%;border-collapse:collapse;text-align:left}.match-table th,.match-table td{padding:.7rem;border-bottom:1px solid #dfe8df}.match-table caption{text-align:left;font-weight:700;padding:.5rem 0}.match-score{font-size:1.5rem;font-weight:700;letter-spacing:.04em}.match-set{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap;margin:.8rem 0}.match-set input{width:4.5rem!important;min-width:0}.match-set label{max-width:13rem}.match-search{display:flex;gap:.7rem;align-items:end;flex-wrap:wrap}.match-search label{flex:1}.match-filter{display:flex!important;align-items:center;gap:.5rem}.match-filter input{width:auto!important}.match-card h3{overflow-wrap:anywhere}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:600px){.match-set{border-bottom:1px solid #dfe8df;padding-bottom:1rem}.match-set>span:first-child{width:100%}.match-totals{gap:1rem}.match-card .courtly-actions>*{max-width:100%;white-space:normal}}

/* Constrain statistics grid tracks so table overflow stays inside their scroll area. */
.match-hub{grid-template-columns:minmax(0,1fr)}
.match-hub>*{min-width:0}
.match-table{max-width:100%}

/* Keep the shared header and both navigation levels visible while scrolling. */
:root{--courtly-header-height:88px;--courtly-main-nav-height:0px}
html{scroll-padding-top:calc(var(--courtly-header-height) + var(--courtly-main-nav-height) + 80px)}
.courtly-site-header{position:sticky;top:0;z-index:60}
.profile-nav{position:sticky;top:var(--courtly-header-height);z-index:40;background:#f5f6f0;padding:12px 0;box-shadow:0 5px 8px -8px #173e3266}
.profile-nav.courtly-module-nav{padding:12px 24px;margin:0 auto;max-width:1280px}
#courtly-app>.courtly-tabs{position:sticky;top:calc(var(--courtly-header-height) + var(--courtly-main-nav-height));z-index:30;background:#f5f6f0;padding-top:10px;padding-bottom:10px;box-shadow:0 5px 8px -8px #173e3266}
.platform-admin>nav{position:sticky;top:var(--courtly-header-height);z-index:40;background:#f5f6f0;padding:12px 0;box-shadow:0 5px 8px -8px #173e3266}
@media(max-width:650px){.profile-nav{flex-wrap:nowrap;overflow-x:auto;gap:18px}.profile-nav>a,.profile-nav>button{flex-shrink:0;white-space:nowrap}.profile-nav.courtly-module-nav{padding:12px 14px}.platform-admin>nav{flex-wrap:nowrap;overflow-x:auto}.platform-admin>nav button{white-space:nowrap;flex-shrink:0}}

.courtly-module-nav{--ink:#173e32;--line:#dce3d9;font:16px/1.6 system-ui,sans-serif}

/* CT-100: keep the statistics anchor below the sticky page navigation. */
#matchstatistik{scroll-margin-top:14rem}
