:root {
  --team-ink: #111827;
  --team-navy: #101a30;
  --team-violet: #5138dc;
  --team-lime: #c9f24c;
  --team-coral: #ff705d;
  --team-paper: #fffdf8;
  --team-canvas: #eef0f7;
  --team-line: #d9dde7;
  --team-muted: #667085;
}

.team-detail-body .app-content {
  background: radial-gradient(circle at 12% 8%, rgba(201, 242, 76, .16), transparent 24rem), radial-gradient(circle at 92% 31%, rgba(81, 56, 220, .12), transparent 34rem), var(--team-canvas);
}

.team-detail-body .quag-layout-container { padding: 0 clamp(.75rem, 2vw, 2rem); }

.team-page-shell {
  width: min(100%, 1360px);
  margin: 0 auto;
  padding: clamp(.65rem, 1.5vw, 1.5rem) 0 5rem;
  color: var(--team-ink);
}

.team-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 34px 34px 12px 34px;
  color: #fff;
  background: linear-gradient(118deg, rgba(81, 56, 220, .97), rgba(16, 26, 48, .98) 56%), var(--team-navy);
  box-shadow: 0 26px 64px rgba(16, 26, 48, .25);
}

.team-hero::after {
  position: absolute;
  z-index: -1;
  right: 26%;
  bottom: -165px;
  width: 310px;
  height: 310px;
  border: 44px solid rgba(255, 255, 255, .06);
  border-radius: 50%;
  content: "";
}

.team-hero__glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(20px); pointer-events: none; }
.team-hero__glow--lime { top: -170px; left: 38%; width: 270px; height: 270px; background: rgba(201, 242, 76, .48); }
.team-hero__glow--coral { right: -120px; bottom: -210px; width: 360px; height: 360px; background: rgba(255, 112, 93, .7); }

.team-hero__main {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .7fr);
  align-items: stretch;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  min-height: 270px;
  padding: clamp(1.7rem, 4vw, 3.7rem);
}

.team-hero__main--identity-only {
  grid-template-columns: minmax(0, 1fr);
  min-height: 230px;
}

.team-hero__identity { display: flex; min-width: 0; flex-direction: column; justify-content: space-between; gap: 1.5rem; }

.team-hero__eyebrow, .team-panel__eyebrow, .team-section-intro__eyebrow, .team-score-story__eyebrow, .team-pulse__eyebrow {
  font-size: .74rem;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.team-hero__eyebrow { display: flex; align-items: center; gap: .65rem; margin-bottom: 1.25rem; color: var(--team-lime); }
.team-hero__eyebrow span { width: 2rem; height: 3px; border-radius: 999px; background: currentColor; transform: rotate(-4deg); }
.team-hero__title-row { display: flex; align-items: center; gap: clamp(1rem, 2.3vw, 1.75rem); min-width: 0; }

.team-hero__emblem {
  flex: 0 0 auto;
  width: clamp(68px, 7vw, 88px);
  height: clamp(68px, 7vw, 88px);
  border: 4px solid rgba(255, 255, 255, .2);
  border-radius: 18px 38px 38px 38px;
  object-fit: cover;
  background: rgba(255, 255, 255, .1);
  box-shadow: 0 16px 32px rgba(7, 13, 28, .25);
  transform: rotate(-2deg);
}

.team-hero__emblem--symbol { display: grid; place-items: center; color: var(--team-navy); background: var(--team-lime); font-size: clamp(1.7rem, 3vw, 2.6rem); }
.team-hero__copy { min-width: 0; }

.team-hero__title {
  max-width: 820px;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: clamp(2.1rem, 4vw, 4.25rem);
  font-weight: 900;
  line-height: .94;
  letter-spacing: -.055em;
}

.team-hero__meta { display: flex; flex-wrap: wrap; gap: .55rem 1rem; margin-top: 1rem; color: rgba(255, 255, 255, .75); font-size: .88rem; font-weight: 650; }
.team-hero__meta a, .team-hero__meta span { display: inline-flex; align-items: center; gap: .42rem; color: inherit; text-decoration: none; }
.team-hero__meta a:hover { color: var(--team-lime); }
.team-hero__actions { display: flex; align-items: center; gap: .7rem; }

.team-hero .favorite-btn, .team-hero__edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, .28);
  color: #fff;
  background: rgba(255, 255, 255, .09);
  backdrop-filter: blur(8px);
  transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.team-hero .favorite-btn { width: 46px; padding: 0; border-radius: 50%; font-size: 1.05rem; }
.team-hero .favorite-btn[aria-pressed="false"] { border-color: rgba(255, 255, 255, .28); color: rgba(255, 255, 255, .68); background: rgba(255, 255, 255, .07); box-shadow: none; }
.team-hero .favorite-btn[aria-pressed="false"] i { color: rgba(255, 255, 255, .68); text-shadow: none; }
.team-hero .favorite-btn[aria-pressed="true"] { border-color: var(--team-lime); color: var(--team-navy); background: var(--team-lime); box-shadow: 0 0 0 4px rgba(201, 242, 76, .16); }
.team-hero .favorite-btn[aria-pressed="true"] i { color: var(--team-navy); text-shadow: none; }
.team-hero .favorite-btn:focus-visible { outline: 3px solid rgba(201, 242, 76, .48); outline-offset: 3px; }
.team-hero .favorite-btn[aria-pressed="false"]:hover { border-color: rgba(201, 242, 76, .72); color: var(--team-lime); background: rgba(255, 255, 255, .16); transform: translateY(-2px); }
.team-hero .favorite-btn[aria-pressed="false"]:hover i { color: var(--team-lime); }
.team-hero .favorite-btn[aria-pressed="true"]:hover { border-color: #dcff73; color: var(--team-navy); background: #dcff73; transform: translateY(-2px); }
.team-hero .favorite-btn[aria-pressed="true"]:hover i { color: var(--team-navy); }
.team-hero__edit { gap: .55rem; padding: .72rem 1rem; border-radius: 8px 18px 18px 18px; font-size: .86rem; font-weight: 800; text-decoration: none; }
.team-hero__edit:hover { color: var(--team-navy); background: var(--team-lime); transform: translateY(-2px); }

.team-pulse {
  position: relative;
  align-self: center;
  display: flex;
  min-height: 190px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.3rem, 2.6vw, 2rem);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 12px 30px 30px 30px;
  color: #fff;
  background: rgba(8, 15, 31, .48);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 36px rgba(6, 12, 25, .18);
  text-decoration: none;
  transform: rotate(1deg);
}

.team-pulse--upcoming:hover { color: #fff; background: rgba(8, 15, 31, .7); transform: translateY(-3px); }
.team-pulse__eyebrow { margin-bottom: .8rem; color: var(--team-coral); }
.team-pulse__date { display: flex; align-items: baseline; gap: .7rem; }
.team-pulse__date strong { font-size: clamp(2.1rem, 3.4vw, 3.5rem); font-weight: 900; line-height: .95; letter-spacing: -.06em; }
.team-pulse__date span { color: var(--team-lime); font-size: 1.05rem; font-weight: 850; }
.team-pulse__title { margin-top: 1rem; font-size: 1.05rem; font-weight: 850; line-height: 1.25; }
.team-pulse__meta { margin-top: .3rem; color: rgba(255, 255, 255, .68); font-size: .82rem; }
.team-pulse__action { display: inline-flex; align-items: center; gap: .45rem; width: fit-content; margin-top: 1rem; color: #fff; font-size: .8rem; font-weight: 800; text-decoration: none; }

.team-admin-contacts { border-top: 1px solid rgba(255, 255, 255, .12); background: rgba(5, 11, 25, .24); }
.team-admin-contacts > button { display: flex; align-items: center; gap: .5rem; width: 100%; padding: .8rem clamp(2rem, 5vw, 4.4rem); border: 0; color: rgba(255, 255, 255, .76); background: transparent; font-size: .8rem; font-weight: 750; text-align: left; }
.team-admin-contacts ul { display: flex; flex-wrap: wrap; gap: .75rem 2rem; margin: 0; padding: 0 clamp(2rem, 5vw, 4.4rem) 1rem; list-style: none; }
.team-admin-contacts li, .team-admin-contacts li span { display: flex; align-items: center; gap: .45rem; }
.team-admin-contacts li { flex-wrap: wrap; color: rgba(255, 255, 255, .72); font-size: .8rem; }
.team-admin-contacts li strong { color: #fff; }

.team-section-nav {
  position: sticky;
  z-index: 20;
  top: 0;
  width: calc(100% - clamp(1rem, 4vw, 4rem));
  margin: .85rem auto 0;
  padding: .55rem;
  border: 1px solid rgba(17, 24, 39, .09);
  border-radius: 10px 24px 24px 24px;
  background: rgba(255, 253, 248, .94);
  box-shadow: 0 18px 42px rgba(17, 24, 39, .13);
  backdrop-filter: blur(14px);
}

.team-section-nav__track { display: flex; align-items: center; gap: .35rem; }
.team-section-nav__link { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: .65rem clamp(.8rem, 2vw, 1.25rem); border-radius: 8px 17px 17px 17px; color: #4e5667; font-size: .88rem; font-weight: 800; text-decoration: none; transition: color 150ms ease, background-color 150ms ease, transform 150ms ease; }
.team-section-nav__link:hover { color: var(--team-violet); background: #f1efff; }
.team-section-nav__link.is-active { color: #fff; background: var(--team-violet); box-shadow: 0 8px 20px rgba(81, 56, 220, .24); transform: rotate(-1deg); }


.team-section-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .55fr); align-items: end; gap: 2rem; margin: clamp(3rem, 6vw, 5.5rem) 0 clamp(1.4rem, 3vw, 2.2rem); padding-inline: clamp(.25rem, 2vw, 1.5rem); }
.team-section-intro > div, .team-section-intro > div > div { display: flex; align-items: center; }
.team-section-intro > div { gap: 1.1rem; }
.team-section-intro > div > div { align-items: flex-start; flex-direction: column; }
.team-section-intro__eyebrow, .team-panel__eyebrow { color: var(--team-coral); }
.team-section-intro h2, .team-panel__header h2, .team-leagues__header h2, .team-roster-group h2 { margin: .2rem 0 0; font-weight: 900; letter-spacing: -.035em; }
.team-section-intro h2 { font-size: clamp(1.8rem, 3vw, 3rem); }
.team-section-intro > p { max-width: 440px; margin: 0; color: var(--team-muted); font-size: 1rem; line-height: 1.55; }

.team-panel, .team-leagues { border: 1px solid rgba(17, 24, 39, .1); border-radius: 12px 30px 30px 30px; background: var(--team-paper); box-shadow: 0 18px 46px rgba(17, 24, 39, .09); }
.team-panel { padding: clamp(1.2rem, 3vw, 2.2rem); }
.team-panel__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.5rem; }
.team-panel__header h2, .team-leagues__header h2 { font-size: clamp(1.4rem, 2.4vw, 2.1rem); }
.team-panel__counter { flex: 0 0 auto; padding: .5rem .8rem; border-radius: 999px; color: var(--team-navy); background: var(--team-lime); font-size: .78rem; font-weight: 850; }

.team-filter-bar { display: flex; flex-wrap: wrap; align-items: end; gap: .7rem; }
.team-filter-bar label { display: grid; gap: .3rem; }
.team-filter-bar label > span { color: var(--team-muted); font-size: .7rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.team-filter-bar select { min-height: 42px; padding: .55rem 2.3rem .55rem .75rem; border: 1px solid var(--team-line); border-radius: 8px 14px 14px 14px; color: var(--team-ink); background-color: #fff; font-size: .84rem; font-weight: 700; }
.team-filter-bar select:focus-visible { border-color: var(--team-violet); outline: 3px solid rgba(81, 56, 220, .14); }

.team-empty-state { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 1rem; padding: clamp(1.2rem, 3vw, 2rem); border: 2px dashed rgba(81, 56, 220, .25); border-radius: 9px 22px 22px 22px; background: #f8f7ff; }
.team-empty-state > i { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 8px 18px 18px 18px; color: #fff; background: var(--team-violet); font-size: 1.25rem; }
.team-empty-state div { display: grid; gap: .2rem; }
.team-empty-state strong { font-size: 1rem; }
.team-empty-state span { color: var(--team-muted); font-size: .86rem; }

.team-overview-grid { display: grid; grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr); align-items: stretch; gap: clamp(1rem, 2.5vw, 2rem); }
.team-score-story { position: relative; min-height: 390px; padding: clamp(1.8rem, 4vw, 3rem); overflow: hidden; border-radius: 34px 12px 34px 34px; color: #fff; background: var(--team-navy); box-shadow: 0 22px 52px rgba(16, 26, 48, .2); }
.team-score-story::after { position: absolute; right: -78px; bottom: -90px; width: 250px; height: 250px; border-radius: 50%; background: var(--team-violet); content: ""; opacity: .68; }
.team-score-story__eyebrow { color: var(--team-lime); }
.team-score-story__value { position: relative; z-index: 1; margin-top: clamp(2.4rem, 6vw, 5.2rem); font-size: clamp(5rem, 10vw, 9.5rem); font-weight: 900; line-height: .78; letter-spacing: -.09em; }
.team-score-story p { position: relative; z-index: 1; max-width: 330px; margin: 1.4rem 0 0; color: rgba(255, 255, 255, .7); line-height: 1.5; }
.team-score-story__stroke { position: relative; z-index: 1; width: 72px; height: 5px; margin-top: 1.5rem; border-radius: 999px; background: var(--team-coral); transform: rotate(-4deg); }

.team-records-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.8rem, 1.8vw, 1.25rem); }
.team-record { position: relative; display: flex; min-height: 180px; flex-direction: column; justify-content: flex-end; padding: clamp(1.15rem, 2.5vw, 1.8rem); overflow: hidden; border: 1px solid rgba(17, 24, 39, .1); border-radius: 10px 26px 26px 26px; background: var(--team-paper); box-shadow: 0 14px 34px rgba(17, 24, 39, .08); }
.team-record > span { color: var(--team-coral); font-size: .72rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.team-record strong { margin-top: .35rem; font-size: clamp(2.5rem, 5vw, 4.7rem); font-weight: 900; line-height: .9; letter-spacing: -.07em; }
.team-record small { margin-top: .7rem; color: var(--team-muted); line-height: 1.35; }
.team-record--peak { color: var(--team-navy); background: var(--team-lime); }
.team-record--peak > span, .team-record--peak small { color: rgba(16, 26, 48, .68); }
.team-record--peak > i { position: absolute; top: 1rem; right: 1.2rem; font-size: 2rem; transform: rotate(10deg); }
.team-record--placement { grid-column: 1 / -1; min-height: 160px; color: #fff; background: var(--team-navy); }
.team-record--placement > span { color: var(--team-lime); }
.team-record--placement strong { font-size: clamp(2.2rem, 4vw, 4rem); letter-spacing: -.05em; }
.team-record--placement small { color: rgba(255, 255, 255, .72); }
.team-record--streak { color: #fff; background: var(--team-violet); }
.team-record--streak > span { color: var(--team-lime); }
.team-record--streak small { color: rgba(255, 255, 255, .7); }

.team-leagues { margin-top: clamp(3rem, 7vw, 6rem); padding: clamp(1.25rem, 3.5vw, 2.8rem); }
.team-leagues__header { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1.5rem; }
.team-leagues__header p { max-width: 390px; margin: 0; color: var(--team-muted); }
.team-leagues__list { display: grid; gap: 1.25rem; }
.team-league-card { position: relative; padding: clamp(1.15rem, 3vw, 2rem); overflow: hidden; border: 1px solid rgba(81, 56, 220, .17); border-radius: 9px 28px 28px 28px; background: linear-gradient(130deg, #fff 0 55%, #f3f1ff 100%); }
.team-league-card__head, .team-league-card__identity, .team-league-card__rating { display: flex; align-items: center; }
.team-league-card__head { justify-content: space-between; gap: 1.5rem; }
.team-league-card__identity { min-width: 0; gap: .85rem; }
.team-league-card__emblem { display: block; flex: 0 0 auto; width: 52px; height: 52px; object-fit: contain; object-position: center; }
.team-league-card__identity > div { display: grid; gap: .2rem; min-width: 0; }
.team-league-card__identity a { overflow: hidden; color: var(--team-ink); font-size: clamp(1.15rem, 2vw, 1.55rem); font-weight: 900; text-overflow: ellipsis; text-decoration: none; white-space: nowrap; }
.team-league-card__identity a:hover { color: var(--team-violet); }
.team-league-card__identity small { color: var(--team-muted); }
.team-league-card__rating { flex: 0 0 auto; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: .1rem .65rem; min-width: 205px; padding: .9rem 1rem; border-radius: 9px 21px 21px 21px; color: #fff; background: var(--team-navy); text-decoration: none; }
.team-league-card__rating > span { grid-column: 1; grid-row: 1; color: var(--team-lime); font-size: .66rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.team-league-card__rating strong { grid-column: 1 / -1; grid-row: 2; font-size: 2rem; line-height: .9; letter-spacing: -.05em; }
.team-league-card__rating small { grid-column: 2; grid-row: 1; min-width: 0; align-self: center; justify-self: end; color: rgba(255, 255, 255, .62); font-size: .68rem; }
.team-league-card__rating i { grid-column: 3; grid-row: 1; align-self: center; }
.team-league-card__visuals { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(290px, .8fr); gap: 1rem; margin-top: 1.35rem; }
.team-league-card__journey, .team-league-card__podium { min-width: 0; padding: 1.25rem; border-radius: 8px 22px 22px 22px; }
.team-league-card__journey { display: grid; grid-template-columns: minmax(0, 1fr) auto; background: #fff; border: 1px solid #e6e8f0; }
.team-league-card__journey-title { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; grid-column: 1 / -1; }
.team-league-card__journey-title span, .team-league-card__score span, .team-league-card__podium header span { color: var(--team-muted); font-size: .67rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.team-league-card__journey-title strong { font-size: 1rem; }
.team-league-card__journey-axis { display: grid; grid-template-columns: 12px minmax(60px, 1fr) 12px; align-items: center; grid-column: 1 / -1; margin-top: 1.1rem; }
.team-league-card__journey-axis i { width: 12px; height: 12px; border: 3px solid var(--team-violet); border-radius: 50%; background: #fff; }
.team-league-card__journey-axis i:last-child { border-color: var(--team-coral); }
.team-league-card__journey-axis span { height: 3px; background: linear-gradient(90deg, var(--team-violet), var(--team-coral)); }
.team-league-card__journey-dates { display: flex; justify-content: space-between; gap: 1rem; grid-column: 1 / -1; margin-top: .5rem; }
.team-league-card__journey-dates > div { display: grid; gap: .18rem; }
.team-league-card__journey-dates > div:last-child { text-align: right; }
.team-league-card__journey-dates span { color: var(--team-muted); font-size: .64rem; font-weight: 750; text-transform: uppercase; }
.team-league-card__journey-dates strong { font-size: .83rem; }
.team-league-card__score { align-self: end; display: grid; gap: .25rem; grid-column: 1 / -1; margin-top: 1.2rem; padding-top: .9rem; border-top: 1px solid #eceef3; }
.team-league-card__score strong { font-size: 1.65rem; line-height: 1; letter-spacing: -.04em; }
.team-league-card__podium { color: #fff; background: var(--team-violet); }
.team-league-card__podium header { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.team-league-card__podium header > div { display: grid; gap: .15rem; }
.team-league-card__podium header span { color: var(--team-lime); }
.team-league-card__podium header strong { font-size: 2rem; line-height: 1; }
.team-league-card__podium header > small { display: grid; gap: .15rem; max-width: 145px; color: rgba(255, 255, 255, .68); text-align: right; }
.team-league-card__podium header > small b { color: #fff; font-size: 1.1rem; line-height: 1; }
.team-league-card__podium header > small span { color: inherit; font-size: .67rem; line-height: 1.25; }
.team-league-card__podium > p { margin: 1.25rem 0 0; color: rgba(255, 255, 255, .72); }
.team-podium-composition { display: flex; gap: 3px; height: 18px; margin-top: 1.2rem; overflow: hidden; border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; background: rgba(255, 255, 255, .1); }
.team-podium-composition__segment { flex: var(--team-podium-share) 1 0; min-width: 3px; }
.team-podium-composition__segment--first, .team-podium-legend__mark--first { background: #f6d365; }
.team-podium-composition__segment--second, .team-podium-legend__mark--second { background: #d9e0ec; }
.team-podium-composition__segment--third, .team-podium-legend__mark--third { background: #f2a36f; }
.team-podium-legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin: .85rem 0 0; }
.team-podium-legend > div { min-width: 0; padding-top: .65rem; border-top: 1px solid rgba(255, 255, 255, .16); }
.team-podium-legend dt { display: flex; align-items: center; gap: .35rem; color: rgba(255, 255, 255, .7); font-size: .64rem; font-weight: 800; text-transform: uppercase; }
.team-podium-legend__mark { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; }
.team-podium-legend dd { display: flex; align-items: baseline; gap: .3rem; margin: .3rem 0 0; }
.team-podium-legend dd strong { color: #fff; font-size: 1.05rem; line-height: 1; }
.team-podium-legend dd small { color: rgba(255, 255, 255, .58); font-size: .65rem; }

@media (hover: hover) and (pointer: fine) {
  .team-league-card__rating:hover { color: var(--team-navy); background: var(--team-lime); }
  .team-league-card__rating:hover > span, .team-league-card__rating:hover small { color: rgba(16, 26, 48, .68); }
}

.team-analytics-scope { display: flex; align-items: center; gap: .65rem; width: fit-content; max-width: 100%; margin: 0 0 1rem auto; padding: .6rem .85rem; border-radius: 8px 18px 18px 18px; color: #3d307e; background: #e9e5ff; font-size: .78rem; font-weight: 750; }
.team-analytics-stage__header { align-items: end; }
.team-analytics-layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; align-items: stretch; gap: 1rem; }
.team-chart-canvas { min-width: 0; padding: clamp(.5rem, 2vw, 1.25rem); border: 1px solid #e7e9ef; border-radius: 10px 24px 24px 24px; background: #fff; }
.rating-chart-wrap { position: relative; height: 380px; }
.team-analytics-summary { display: grid; gap: .75rem; }
.team-analytics-summary__item { display: flex; min-height: 112px; flex-direction: column; justify-content: center; padding: 1rem; border-radius: 8px 20px 20px 20px; color: #fff; background: var(--team-navy); }
.team-analytics-summary__item:nth-child(2) { color: var(--team-navy); background: var(--team-lime); transform: translateX(-.75rem); }
.team-analytics-summary__item--trend { background: var(--team-violet); }
.team-analytics-summary__item > span { color: var(--team-coral); font-size: .68rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.team-analytics-summary__item:nth-child(2) > span { color: rgba(16, 26, 48, .65); }
.team-analytics-summary__item strong { margin-top: .3rem; font-size: clamp(1.6rem, 3vw, 2.6rem); font-weight: 900; line-height: 1; letter-spacing: -.045em; }
.team-analytics-summary__item--trend strong { font-size: 1.15rem; line-height: 1.2; }
.team-analytics-summary__item small { margin-top: .45rem; color: rgba(255, 255, 255, .62); }
.team-analytics-summary__item:nth-child(2) small { color: rgba(16, 26, 48, .62); }

.team-strengths-loading { display: flex; align-items: center; justify-content: center; gap: .7rem; min-height: 110px; margin-top: 1rem; color: var(--team-muted); }
.team-strengths-loading.is-error { color: #8d3124; background: #fff3f0; }
.team-strengths-panel { margin-top: 1rem; }
.team-strengths-panel__header { margin-bottom: 1.25rem; }
.team-strengths-panel__header p { margin: .35rem 0 0; color: var(--team-muted); }
.team-strengths-panel .badge { padding: .55rem .7rem; border-radius: 7px 14px 14px 14px; }

.team-games-toolbar { margin-bottom: 1.25rem; padding: 1rem; border-radius: 8px 20px 20px 20px; background: #f3f1ff; }
.team-game-timeline { display: grid; gap: .8rem; }
.team-game-row { position: relative; display: grid; grid-template-columns: 105px minmax(0, 1fr) minmax(210px, auto); align-items: center; gap: clamp(1rem, 2.5vw, 2rem); min-height: 125px; padding: 1rem 1.2rem; overflow: hidden; border: 1px solid rgba(81, 56, 220, .18); border-radius: 9px 23px 23px 23px; color: var(--team-ink); background: linear-gradient(94deg, #f3f1ff, #fff 62%); text-decoration: none; transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease; }
.team-game-row:nth-child(even) { width: calc(100% - clamp(1rem, 3vw, 2.4rem)); margin-left: clamp(1rem, 3vw, 2.4rem); }
.team-game-row::before { position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--team-violet); content: ""; }
.team-game-row--upcoming { border-color: rgba(116, 166, 0, .38); background: linear-gradient(94deg, #f0ffc9, #fff 58%); }
.team-game-row--upcoming::before { background: #74a600; }
.team-game-row--waiting_results::before { background: var(--team-coral); }
.team-game-row:hover { color: var(--team-ink); background: #f5f3ff; box-shadow: 0 16px 34px rgba(81, 56, 220, .13); transform: translateY(-2px); }
.team-game-row__date { display: grid; align-self: stretch; align-content: center; justify-items: start; padding-right: 1rem; border-right: 1px solid var(--team-line); }
.team-game-row__date strong { font-size: 2rem; font-weight: 900; line-height: .9; letter-spacing: -.06em; }
.team-game-row__date span { margin-top: .25rem; color: var(--team-muted); font-size: .7rem; font-weight: 800; }
.team-game-row__date time { margin-top: .65rem; color: var(--team-violet); font-size: 1rem; font-weight: 900; }
.team-game-row__story { min-width: 0; }
.team-game-row__status { display: inline-flex; padding: .26rem .48rem; border-radius: 999px; color: #4f3ea8; background: #ebe7ff; font-size: .68rem; font-weight: 850; }
.team-game-row--upcoming .team-game-row__status { color: #405e00; background: #ddf69f; }
.team-game-row--waiting_results .team-game-row__status { color: #863426; background: #ffe0da; }
.team-game-row__story h3 { margin: .55rem 0 0; overflow-wrap: anywhere; font-size: clamp(1rem, 1.8vw, 1.25rem); font-weight: 900; line-height: 1.25; }
.team-game-row__league { display: flex; align-items: center; gap: .4rem; margin-top: .45rem; color: var(--team-muted); font-size: .8rem; font-weight: 700; }
.team-game-row__result { display: flex; align-items: center; justify-content: flex-end; gap: .9rem; }
.team-game-row__result > span:not(.team-game-row__pending) { display: grid; gap: .2rem; color: var(--team-muted); font-size: .7rem; text-transform: uppercase; }
.team-game-row__result strong { color: var(--team-ink); font-size: 1.15rem; font-weight: 900; }
.team-game-row__result > i { display: grid; flex: 0 0 auto; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #fff; background: var(--team-violet); }
.team-game-row__pending { color: var(--team-muted); font-size: .78rem; font-weight: 750; }
.team-pagination ul { display: flex; justify-content: center; gap: .35rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.team-pagination a, .team-pagination span { display: grid; place-items: center; min-width: 38px; height: 38px; border-radius: 10px; color: var(--team-ink); text-decoration: none; }
.team-pagination a:hover, .team-pagination .is-current { color: #fff; background: var(--team-violet); }

.team-roster-group + .team-roster-group { margin-top: clamp(2rem, 5vw, 4rem); }
.team-roster-group > header, .team-roster-group > header > div { display: flex; align-items: center; }
.team-roster-group > header { justify-content: space-between; gap: 1.5rem; margin-bottom: 1rem; padding-inline: .3rem; }
.team-roster-group > header > div { gap: .8rem; }
.team-roster-group > header > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #fff; background: var(--team-violet); font-weight: 850; }
.team-roster-group__mark { width: 10px; height: 42px; border-radius: 999px; background: var(--team-lime); transform: rotate(4deg); }
.team-roster-group--inactive .team-roster-group__mark { background: var(--team-coral); }
.team-roster-group h2 { font-size: clamp(1.35rem, 2.4vw, 2rem); }
.team-roster-group header p { max-width: 620px; margin: .25rem 0 0; color: var(--team-muted); font-size: .82rem; }
.roster-players-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.roster-player-card { position: relative; overflow: hidden; border: 1px solid rgba(17, 24, 39, .11); border-radius: 10px 26px 26px 26px; background: var(--team-paper); box-shadow: 0 16px 38px rgba(17, 24, 39, .09); transition: box-shadow 160ms ease, transform 160ms ease; }
.roster-player-card:nth-child(even) { transform: translateY(.8rem); }
.roster-player-card:hover, .roster-player-card:focus-within { box-shadow: 0 20px 44px rgba(81, 56, 220, .14); transform: translateY(-2px); }
.roster-player-card::before { position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--team-lime); content: ""; }
.roster-player-card--inactive::before { background: var(--team-coral); }
.roster-player-card__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.25rem 1rem 1.4rem; }
.roster-player-card__identity { display: flex; align-items: center; gap: .8rem; min-width: 0; }
.roster-player-card__avatar { display: grid; flex: 0 0 auto; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: #fff; background: var(--team-violet); box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .16); }
.roster-player-card--inactive .roster-player-card__avatar { color: var(--team-navy); background: #ffd2ca; }
.roster-player-card__identity-copy { min-width: 0; }
.roster-player-card__name-row { display: flex; align-items: center; gap: .45rem; min-width: 0; }
.roster-player-card__name { overflow: hidden; font-size: 1rem; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.roster-player-card__role { flex: 0 0 auto; padding: .22rem .45rem; border-radius: 999px; color: #355200; background: #dff7a4; font-size: .65rem; font-weight: 850; }
.roster-player-card__role--other { color: #4f3ea8; background: #e9e5ff; }
.roster-player-card__submeta { margin-top: .25rem; color: var(--team-muted); font-size: .74rem; }
.roster-player-card__games { flex: 0 0 auto; padding: .42rem .58rem; border-radius: 999px; color: var(--team-navy); background: #eef0f5; font-size: .72rem; font-weight: 850; }
.roster-player-card__body { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 1rem; padding: 1rem 1.25rem 1.2rem 1.4rem; border-top: 1px solid #eceef3; }
.roster-player-main-metrics { display: grid; gap: .2rem; }
.roster-player-metric-line { display: contents; }
.roster-player-metric-line__label { color: var(--team-muted); font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.roster-player-metric-line__value { font-size: 1.65rem; font-weight: 900; line-height: 1; letter-spacing: -.04em; }
.roster-player-more { align-self: center; }
.roster-player-more__toggle { display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; padding: .48rem .7rem; border: 0; border-radius: 8px 14px 14px 14px; color: #4332a1; background: #efedff; font-size: .76rem; font-weight: 800; }
.roster-player-more__toggle[aria-expanded="true"] i { transform: rotate(180deg); }
.roster-player-more__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; grid-column: 1 / -1; margin-top: .7rem; }
.roster-player-more__item { padding: .65rem; border: 1px solid #e7e9ef; border-radius: 8px 14px 14px 14px; background: #fff; }
.roster-player-more__item .label { color: var(--team-muted); font-size: .62rem; font-weight: 800; text-transform: uppercase; }
.roster-player-more__item .value { margin-top: .2rem; font-size: 1rem; font-weight: 900; }

@media (max-width: 1199.98px) {
  .team-hero__main { grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 2rem; }
  .team-hero__main--identity-only { grid-template-columns: minmax(0, 1fr); }
  .team-overview-grid { grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr); }
  .team-analytics-stage__header { align-items: flex-start; flex-direction: column; }
  .team-analytics-stage__header .team-filter-bar { width: 100%; }
}

@media (max-width: 991.98px) {
  .team-hero__main { grid-template-columns: 1fr; min-height: 0; }
  .team-pulse { width: min(100%, 520px); min-height: 190px; transform: none; }
  .team-section-intro { grid-template-columns: minmax(0, 1fr) minmax(230px, .6fr); }
  .team-overview-grid { grid-template-columns: 1fr; }
  .team-score-story { min-height: 315px; }
  .team-score-story__value { margin-top: 3rem; }
  .team-league-card__visuals { grid-template-columns: 1fr; }
  .team-analytics-layout { grid-template-columns: 1fr; }
  .team-analytics-summary { grid-auto-columns: minmax(175px, 1fr); grid-auto-flow: column; overflow-x: auto; padding: .2rem .1rem .5rem; scroll-snap-type: x proximity; }
  .team-analytics-summary__item { scroll-snap-align: start; }
  .team-analytics-summary__item:nth-child(2) { transform: none; }
  .team-game-row { grid-template-columns: 92px minmax(0, 1fr); }
  .team-game-row__result { grid-column: 2; justify-content: flex-start; }
  .roster-players-grid { grid-template-columns: 1fr; }
  .roster-player-card:nth-child(even) { transform: none; }
}

@media (max-width: 767.98px) {
  .team-detail-body .quag-layout-container { padding-inline: .65rem; }
  .team-page-shell { padding-top: .65rem; }
  .team-hero { border-radius: 24px 24px 9px 24px; }
  .team-hero__main { gap: 1.5rem; padding: 1.5rem 1.25rem 2.2rem; }
  .team-hero__identity { gap: 1.6rem; }
  .team-hero__title-row { align-items: flex-start; }
  .team-hero__emblem { width: 68px; height: 68px; border-width: 3px; border-radius: 12px 25px 25px 25px; }
  .team-hero__title { font-size: clamp(2rem, 10vw, 3.15rem); line-height: .98; }
  .team-hero__meta { display: grid; gap: .35rem; margin-top: .75rem; }
  .team-hero__actions { align-items: stretch; }
  .team-hero__edit { flex: 1 1 auto; }
  .team-pulse { min-height: 175px; padding: 1.25rem; border-radius: 9px 24px 24px 24px; }
  .team-admin-contacts > button, .team-admin-contacts ul { padding-inline: 1.25rem; }

  .team-section-nav { top: 0; width: calc(100% - .8rem); padding: .4rem; border-radius: 8px 19px 19px 19px; }
  .team-section-nav__track { overflow-x: auto; scrollbar-width: none; }
  .team-section-nav__track::-webkit-scrollbar { display: none; }
  .team-section-nav__link { flex: 1 0 auto; min-height: 44px; padding: .55rem .7rem; font-size: .78rem; }

  .team-section-intro { grid-template-columns: 1fr; gap: .75rem; margin: 3rem 0 1.3rem; padding-inline: .25rem; }
  .team-section-intro h2 { font-size: 1.75rem; }
  .team-section-intro > p { font-size: .88rem; }
  .team-panel, .team-leagues { border-radius: 9px 23px 23px 23px; }
  .team-panel { padding: 1rem; }
  .team-panel__header, .team-leagues__header { align-items: flex-start; flex-direction: column; gap: .75rem; }
  .team-filter-bar, .team-filter-bar label, .team-filter-bar select { width: 100%; }

  .team-score-story { min-height: 285px; padding: 1.5rem; border-radius: 25px 9px 25px 25px; }
  .team-score-story__value { margin-top: 2.7rem; font-size: clamp(5rem, 24vw, 7.2rem); }
  .team-records-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-record { min-height: 155px; padding: 1rem; border-radius: 8px 20px 20px 20px; }
  .team-record strong { font-size: clamp(2.2rem, 12vw, 3.3rem); }
  .team-record small { font-size: .72rem; }

  .team-leagues { margin-top: 3.5rem; padding: 1rem; }
  .team-league-card { width: 100%; }
  .team-league-card__head { align-items: flex-start; flex-direction: column; }
  .team-league-card__rating { align-self: stretch; justify-content: space-between; }
  .team-league-card__visuals { gap: .75rem; }
  .team-league-card__journey, .team-league-card__podium { padding: 1rem; }
  .team-league-card__rating { min-width: 0; }
  .team-league-card__journey-dates { gap: .5rem; }
  .team-league-card__journey-dates strong { font-size: .76rem; }

  .team-analytics-scope { margin-left: 0; }
  .rating-chart-wrap { height: 285px; }
  .team-games-toolbar { padding: .8rem; }
  .team-game-row, .team-game-row:nth-child(even) { width: 100%; margin-left: 0; }
  .team-game-row__result > i { margin-left: auto; }

  .team-roster-group > header, .team-roster-group > header > div { align-items: flex-start; }
  .roster-player-card__body { grid-template-columns: 110px minmax(0, 1fr); }
  .roster-player-more__grid { grid-template-columns: 1fr; }
}

@media (max-width: 419.98px) {
  .team-hero__title-row { gap: .8rem; }
  .team-hero__emblem { width: 56px; height: 56px; }
  .team-hero__title { font-size: clamp(1.8rem, 10vw, 2.55rem); }
  .team-hero__actions { display: grid; grid-template-columns: 46px minmax(0, 1fr); }
  .team-hero__edit { padding-inline: .75rem; }
  .team-section-nav__link { min-width: 68px; gap: 0; padding-inline: .5rem; }
  .team-section-nav__link i { display: none; }
  .team-section-intro > p { padding-left: 0; }
  .team-records-grid { gap: .65rem; }
  .team-record { min-height: 145px; padding: .85rem; }
  .team-record > span { font-size: .63rem; }
  .team-record strong { font-size: 2.25rem; }
  .team-game-row { grid-template-columns: 1fr; gap: .8rem; padding: 1rem; }
  .team-game-row__date { display: flex; align-items: baseline; gap: .5rem; padding: 0 0 .7rem; border-right: 0; border-bottom: 1px solid var(--team-line); }
  .team-game-row__date strong { font-size: 1.55rem; }
  .team-game-row__date span, .team-game-row__date time { margin-top: 0; }
  .team-game-row__date time { margin-left: auto; }
  .team-game-row__result { grid-column: 1; }
  .roster-player-card__head { align-items: flex-start; }
  .roster-player-card__avatar { width: 42px; height: 42px; }
  .roster-player-card__body { grid-template-columns: 1fr; }
  .roster-player-more__toggle { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .team-hero .favorite-btn, .team-hero__edit, .team-section-nav__link, .team-game-row, .roster-player-card { transition: none; }
  .team-hero__emblem, .team-pulse, .team-section-nav__link.is-active, .roster-player-card:nth-child(even) { transform: none; }
}

.team-strengths-panel__header h2 { margin: .2rem 0 0; font-size: clamp(1.4rem, 2.4vw, 2.1rem); font-weight: 900; letter-spacing: -.035em; }
.roster-player-more__grid.show { display: grid; }

.team-section-nav + .alert.alert-primary { width: calc(100% - clamp(1rem, 4vw, 4rem)); margin: 1rem auto 0; border: 1px dashed rgba(81, 56, 220, .3); border-radius: 9px 20px 20px 20px; color: var(--team-ink); background: rgba(255, 253, 248, .94); box-shadow: 0 12px 28px rgba(17, 24, 39, .08); }
.team-section-nav + .alert.alert-primary .btn-primary { border-color: var(--team-violet); background: var(--team-violet); }
.team-section-nav + .alert.alert-primary .btn-outline-secondary { border-color: var(--team-line); color: var(--team-muted); }

@media (max-width: 767.98px) { .team-section-nav + .alert.alert-primary { width: calc(100% - .8rem); font-size: .82rem; } }
