.booking-preview span:first-child {
  background: #fff8d0 !important;
  color: #6b5712 !important;
  border-color: #efd66e !important;
}

.booking-preview span:nth-child(2) {
  background: #e7f6ed;
  color: #087a4f;
  border-color: #91cfac;
}

.community-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid #edf0f3;
}

.community-strip:last-child { border-bottom: 0; }

.community-face {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ffd735;
  color: #087a4f;
  font-weight: 900;
}

.community-strip:nth-child(2) .community-face { background: #e32636; color: #fff; }
.community-strip:nth-child(3) .community-face { background: #087a4f; color: #fff; }
.community-copy { min-width: 0; }
.community-copy b { display: block; }
.community-copy small { color: #667085; }

.booking-note {
  margin-top: 10px;
  color: #667085;
  font-size: .8rem;
  text-align: center;
}

.response.booking-actions {
  grid-template-columns: 1.25fr 1fr !important;
}

.response.booking-actions button {
  min-height: 44px;
}

.response.booking-actions .book-button {
  background: #e7f6ed;
  border-color: #087a4f;
  color: #087a4f;
}

.response.booking-actions .book-button.waiting {
  background: #fff3a8;
  border-color: #d8b82e;
  color: #5f4b00;
}

.network-card .section-head { padding-bottom: 4px; }
.network-card .list { padding-top: 8px; }

.welcome-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.shared-match {
  outline: 3px solid #ffd735;
  outline-offset: 3px;
}

.create-success {
  padding: 30px 22px;
  text-align: center;
}

.create-success strong {
  display: block;
  color: #087a4f;
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.create-success p {
  color: #667085;
  margin: 0 auto 20px;
  max-width: 390px;
}

.create-success-actions { justify-content: center; }

.app-view[hidden] { display: none !important; }
.app-view.active { display: block; }
.tab-screen { animation: tab-in .18s ease-out; }

@keyframes tab-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.screen-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.screen-head h1 {
  margin: 5px 0 5px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -.045em;
  color: #123d2d;
}

.screen-head p { margin: 0; color: #667085; font-size: 1rem; }
.screen-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.mini-avatar { cursor: pointer; }

.discovery-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1.6fr) 1fr 1fr;
  gap: 13px;
  padding: 18px;
  margin-bottom: 20px;
}

.discovery-toolbar label,
.compact-select {
  display: grid;
  gap: 5px;
  color: #667085;
  font-size: .8rem;
  font-weight: 800;
}

.discovery-toolbar input,
.discovery-toolbar select,
.compact-select select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #c7d0cb;
  border-radius: 7px;
  background: #fff;
  color: #17352b;
  padding: 9px 11px;
  font: inherit;
  font-size: .95rem;
}

.player-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}

.player-card { padding: 21px; }
.player-card[hidden], .team-directory-card[hidden], .match-list-card[hidden] { display: none !important; }

.player-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
}

.player-card-head h2 { margin: 0 0 2px; font-size: 1.08rem; }
.player-card-head div > span { color: #667085; font-size: .8rem; }

.player-photo,
.profile-big-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #087a4f;
  color: #fff;
  font-weight: 900;
}

.player-photo.red, .team-emblem.red { background: #e32636; color: #fff; }
.player-photo.yellow, .team-emblem.yellow { background: #ffd735; color: #123d2d; }
.player-photo.dark, .team-emblem.dark { background: #123d2d; color: #fff; }
.player-photo.green, .team-emblem.green { background: #087a4f; color: #fff; }

.network-status {
  align-self: start;
  white-space: nowrap;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 900;
}

.network-status.available { background: #e7f7ed; color: #087a4f; }
.network-status.looking { background: #fff3a8; color: #6a5200; }
.network-status.pits { background: #f1f2f4; color: #59636e; }

.player-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.player-tags span { padding: 6px 9px; border-radius: 5px; background: #edf8f1; color: #326b52; font-size: .78rem; font-weight: 800; }

.player-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid #edf0f3;
}

.player-card-foot b { color: #123d2d; font-size: .88rem; }
.player-card-foot .outline { padding: 8px 11px; }
.empty-results { padding: 35px; text-align: center; color: #667085; }

.my-team-panel { overflow: hidden; margin-bottom: 32px; }
.no-team-card { display: flex; align-items: center; gap: 18px; padding: 26px; margin-bottom: 32px; }
.no-team-card h2 { margin: 4px 0 4px; }
.no-team-card p { margin: 0 0 15px; color: #667085; }
.team-color { height: 8px; background: linear-gradient(90deg, #087a4f 0 55%, #ffd735 55% 78%, #e32636 78%); }

.my-team-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 25px;
}

.my-team-main h2 { margin: 4px 0 2px; font-size: 1.6rem; }
.my-team-main p { margin: 0; color: #667085; }

.team-emblem {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #087a4f;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 900;
}

.roster-faces { display: flex; margin-top: 14px; }
.roster-faces span {
  width: 34px;
  height: 34px;
  margin-left: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #edf8f1;
  color: #087a4f;
  font-size: .67rem;
  font-weight: 900;
}

.roster-faces span + span { margin-left: -7px; }
.team-code-box { text-align: right; }
.team-code-box small { display: block; color: #667085; font-size: .7rem; font-weight: 800; }
.team-code-box strong { display: block; margin: 3px 0 9px; letter-spacing: .08em; }
.team-code-box .outline { padding: 8px 11px; }
.team-rule { padding: 13px 25px; border-top: 1px solid #e7ebe8; background: #f8faf9; color: #5b6963; font-size: .86rem; }

.section-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.section-row h2 { margin: 4px 0 0; font-size: 1.55rem; }
.compact-select { min-width: 190px; }
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.team-directory-card { padding: 20px; }
.team-directory-card .team-emblem { width: 48px; height: 48px; font-size: 1rem; }
.team-directory-card h3 { margin: 15px 0 4px; }
.team-directory-card p { margin: 0; color: #667085; font-size: .86rem; min-height: 42px; }
.team-form { display: block; margin: 14px 0; color: #087a4f; font-size: .78rem; font-weight: 900; letter-spacing: .09em; }
.team-directory-card .outline { width: 100%; padding: 9px 8px; }

.match-filter { display: flex; gap: 7px; margin-bottom: 18px; overflow-x: auto; }
.match-filter button {
  border: 1px solid #ccd5d0;
  border-radius: 999px;
  background: #fff;
  color: #607069;
  padding: 9px 14px;
  white-space: nowrap;
  font-weight: 850;
}
.match-filter button.active { background: #087a4f; border-color: #087a4f; color: #fff; }
.match-directory { display: grid; gap: 15px; }
.match-list-card { padding: 21px 23px; }
.match-list-card.featured { border-top: 6px solid #ffd735; }
.match-list-top, .match-list-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.match-list-top h2 { margin: 4px 0 3px; font-size: 1.22rem; }
.match-list-top p { margin: 0; color: #667085; }
.match-kind { color: #e32636; font-size: .72rem; font-weight: 900; letter-spacing: .1em; }
.match-kind.casual { color: #087a4f; }
.match-kind.pending-kind { color: #8a6c00; }
.spot-pill, .result-pill { flex: 0 0 auto; padding: 7px 10px; border-radius: 999px; background: #fff3a8; color: #5f4b00; font-size: .76rem; font-weight: 900; }
.spot-pill.full { background: #eef0f2; color: #59636e; }
.result-pill { border-radius: 7px; background: #087a4f; color: #fff; font-size: 1.1rem; }
.result-pill.pending { background: #fff3a8; color: #5f4b00; }
.spot-progress { height: 7px; margin: 18px 0 14px; border-radius: 10px; overflow: hidden; background: #e7e9ed; }
.spot-progress span { display: block; height: 100%; border-radius: inherit; background: #087a4f; transition: width .2s ease; }
.match-list-foot > div { display: flex; gap: 8px; }
.match-list-foot button { padding: 9px 12px; }
.spot-copy { color: #667085; font-size: .85rem; }

.profile-network-card { overflow: hidden; }
.profile-cover { height: 86px; background: linear-gradient(115deg, #087a4f, #16a35f 58%, #ffd735 58% 72%, #e32636 72%); }
.profile-network-main { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 0 25px 24px; }
.profile-big-avatar { width: 92px; height: 92px; margin-top: -35px; border: 5px solid #fff; font-size: 1.6rem; }
.profile-identity h2 { margin: 15px 0 0; font-size: 1.55rem; }
.profile-identity p { margin: 1px 0 0; color: #667085; }
.profile-rating { text-align: center; }
.profile-rating strong { display: block; color: #087a4f; font-size: 2.3rem; line-height: 1; }
.profile-rating span { display: block; margin-top: 4px; color: #667085; font-size: .68rem; font-weight: 900; }
.profile-number-row { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #e5e9e7; }
.profile-number-row div { padding: 17px 20px; border-right: 1px solid #e5e9e7; }
.profile-number-row div:last-child { border-right: 0; }
.profile-number-row b, .profile-number-row span { display: block; }
.profile-number-row b { font-size: 1.2rem; }
.profile-number-row span { color: #667085; font-size: .78rem; }
.profile-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; margin-top: 17px; }
.profile-section-body { padding: 17px 22px 22px; }
.profile-section-body > p { margin: 0 0 14px; color: #667085; }
.status-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.status-toggle button { min-height: 42px; border: 1px solid #ccd5d0; border-radius: 7px; background: #fff; color: #667085; font-weight: 850; }
.status-toggle button.active { background: #e7f7ed; border-color: #087a4f; color: #087a4f; }
.status-message { margin-top: 11px; color: #667085; font-size: .8rem; }
.team-membership { display: flex; align-items: center; gap: 13px; }
.team-membership p { margin: 2px 0 0; color: #667085; }
.recent-profile { margin-top: 17px; padding-bottom: 8px; }
.profile-match-row { display: grid; grid-template-columns: 85px 1fr auto; gap: 13px; align-items: center; margin: 0 22px; padding: 14px 0; border-top: 1px solid #edf0f3; }
.profile-match-row span { color: #667085; font-size: .75rem; font-weight: 800; }
.profile-match-row em { min-width: 42px; text-align: center; border-radius: 6px; background: #e7f7ed; color: #087a4f; padding: 6px; font-style: normal; font-weight: 900; }

.network-modal-body { padding: 22px; }
.modal-profile { text-align: center; }
.modal-profile .profile-big-avatar { margin: 0 auto; width: 76px; height: 76px; }
.modal-profile p { color: #667085; }
.modal-profile .player-tags { justify-content: center; margin-bottom: 20px; }
.stats-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 20px; }
.stats-mini div { padding: 17px 8px; text-align: center; border-radius: 8px; background: #f4f8f6; }
.stats-mini b, .stats-mini span { display: block; }
.stats-mini b { color: #087a4f; font-size: 1.35rem; }
.stats-mini span { color: #667085; font-size: .75rem; }
.notification-list p { margin: 0; padding: 12px 0; border-bottom: 1px solid #edf0f3; }
.notification-list p:first-child { padding-top: 0; }
.notification-list p:last-child { border-bottom: 0; }
.notification-list b, .notification-list span { display: block; }
.notification-list span { margin-top: 2px; color: #667085; font-size: .82rem; }
.organizer-note { display: flex; justify-content: space-between; gap: 12px; padding: 11px 12px; border-radius: 7px; background: #edf8f1; color: #326b52; font-size: .84rem; }
.mobile-nav { grid-template-columns: repeat(5, 1fr) !important; }

@media (max-width: 560px) {
  .community-match .match-head { gap: 12px; }
  .booking-preview { grid-template-columns: 1fr 1.4fr 1fr; }
  .response.booking-actions { grid-template-columns: 1fr !important; }
  .welcome-actions .outline { display: none !important; }
  .welcome-actions { width: 100%; display: grid; grid-template-columns: 1fr; }
  .screen-head { display: block; }
  .screen-head .screen-actions, .screen-head > button { width: 100%; margin-top: 15px; }
  .screen-head .screen-actions { display: grid; }
  .screen-head > button { min-height: 44px; }
  .discovery-toolbar { grid-template-columns: 1fr; }
  .player-grid, .team-grid, .profile-columns { grid-template-columns: 1fr; }
  .player-card-head { grid-template-columns: auto minmax(0, 1fr); }
  .network-status { grid-column: 2; justify-self: start; }
  .my-team-main { grid-template-columns: auto 1fr; padding: 20px 17px; }
  .team-code-box { grid-column: 1 / -1; text-align: left; padding-top: 14px; border-top: 1px solid #edf0f3; }
  .team-rule { padding: 13px 17px; }
  .section-row { display: block; }
  .compact-select { margin-top: 13px; }
  .match-list-top, .match-list-foot { align-items: flex-start; }
  .match-list-foot { display: grid; }
  .match-list-foot > div { display: grid; grid-template-columns: 1fr; }
  .match-list-foot button { width: 100%; }
  .profile-network-main { grid-template-columns: auto 1fr; padding: 0 17px 20px; }
  .profile-rating { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; text-align: left; }
  .profile-rating strong { font-size: 1.8rem; }
  .profile-number-row { grid-template-columns: repeat(2, 1fr); }
  .profile-number-row div:nth-child(2) { border-right: 0; }
  .profile-number-row div:nth-child(-n+2) { border-bottom: 1px solid #e5e9e7; }
  .profile-match-row { grid-template-columns: 68px 1fr auto; margin: 0 15px; font-size: .84rem; }
  .mobile-nav { grid-template-columns: repeat(5, 1fr) !important; }
  .mobile-nav button { font-size: .66rem !important; }
}

@media (min-width: 561px) and (max-width: 900px) {
  .player-grid, .profile-columns { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .discovery-toolbar { grid-template-columns: 1fr 1fr; }
  .discovery-toolbar .search-field { grid-column: 1 / -1; }
}

.footer .footer-contact{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:12px 22px;padding-top:16px;font-size:13px}.footer-contact a{overflow-wrap:anywhere;text-decoration:underline;text-underline-offset:4px}.footer-contact a:focus-visible{outline:2px solid #ffd83d;outline-offset:4px}@media(max-width:560px){.footer .footer-contact{justify-content:center;font-size:12px}}
