/* Public team profile jersey – V27 */
#spaRouteView[data-route="team"] .history-hero-content.has-public-jersey-v2 > .team-public-jersey-v1{
  align-self:start;
  justify-self:end;
}
@media(min-width:1281px){
  #spaRouteView[data-route="team"] .history-hero-content.has-public-jersey-v2{
    grid-template-columns:168px minmax(0,1fr) 205px !important;
    gap:0 18px !important;
  }
  #spaRouteView[data-route="team"] .history-hero-content.has-public-jersey-v2 > .history-team-identity{
    grid-column:1;
    grid-row:1;
  }
  #spaRouteView[data-route="team"] .history-hero-content.has-public-jersey-v2 > .history-profile-copy{
    grid-column:2;
    grid-row:1;
  }
  #spaRouteView[data-route="team"] .history-hero-content.has-public-jersey-v2 > .team-public-jersey-v1{
    grid-column:3;
    grid-row:1;
    width:205px;
  }
  #spaRouteView[data-route="team"] .history-hero-content.has-public-jersey-v2 > .team-public-jersey-v1 .team-public-jersey-v1__stage{
    height:215px;
  }
  #spaRouteView[data-route="team"] .history-hero-content.has-public-jersey-v2 > .team-public-jersey-v1 .team-public-jersey-v1__stage svg{
    width:194px;
  }
  #spaRouteView[data-route="team"] .history-hero-content.has-public-jersey-v2 > .history-leaders,
  #spaRouteView[data-route="team"] .history-hero-content.has-public-jersey-v2 > .history-hero-footer-v1284{
    grid-column:1 / -1 !important;
  }
}
@media(min-width:921px) and (max-width:1280px){
  #spaRouteView[data-route="team"] .history-hero-content.has-public-jersey-v2 > .team-public-jersey-v1{
    grid-column:1 / -1;
    grid-row:auto;
    justify-self:start;
    width:205px;
    margin-top:14px;
  }
  #spaRouteView[data-route="team"] .history-hero-content.has-public-jersey-v2 > .team-public-jersey-v1 .team-public-jersey-v1__stage{
    height:210px;
  }
  #spaRouteView[data-route="team"] .history-hero-content.has-public-jersey-v2 > .team-public-jersey-v1 .team-public-jersey-v1__stage svg{
    width:190px;
  }
}
.team-public-jersey-v1{
  width:228px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.09);
  border-radius:16px;
  background:
    radial-gradient(circle at 50% 28%,color-mix(in srgb,var(--player-card-team-primary,#123b67) 26%,transparent),transparent 62%),
    rgba(2,7,11,.72);
  box-shadow:0 18px 38px rgba(0,0,0,.22),inset 0 1px rgba(255,255,255,.035);
}
.team-public-jersey-v1__head{
  min-height:42px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:7px 9px 7px 12px;
  border-bottom:1px solid rgba(255,255,255,.07);
}
.team-public-jersey-v1__head>span{
  color:#ffd000;
  font-size:.58rem;
  font-weight:950;
  letter-spacing:.13em;
}
.team-public-jersey-v1__toggle{display:flex;gap:4px}
.team-public-jersey-v1__toggle button{
  min-height:27px;
  padding:0 8px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:999px;
  background:rgba(255,255,255,.025);
  color:rgba(244,243,239,.68);
  font-size:.56rem;
  font-weight:900;
  cursor:pointer;
}
.team-public-jersey-v1__toggle button.is-active{
  border-color:color-mix(in srgb,var(--player-card-team-secondary,#ffd000) 62%,rgba(255,255,255,.12));
  color:#050707;
  background:#ffd000;
}
.team-public-jersey-v1__stage{
  height:250px;
  display:grid;
  place-items:center;
  padding:0 4px 4px;
}
.team-public-jersey-v1__stage svg{
  display:block;
  width:220px;
  max-width:100%;
  height:auto;
  filter:drop-shadow(0 13px 22px rgba(0,0,0,.34));
}
@media(max-width:920px){
  #spaRouteView[data-route="team"] .history-hero-content.has-public-jersey-v2 > .team-public-jersey-v1{
    grid-column:1 / -1;
    grid-row:auto;
    justify-self:start;
    width:min(220px,100%);
    margin-top:4px;
  }
  #spaRouteView[data-route="team"] .history-hero-content.has-public-jersey-v2 > .team-public-jersey-v1 .team-public-jersey-v1__stage{
    height:224px;
  }
  #spaRouteView[data-route="team"] .history-hero-content.has-public-jersey-v2 > .team-public-jersey-v1 .team-public-jersey-v1__stage svg{
    width:200px;
  }
}


/* V2 – admin/captain jersey editor */
.team-public-jersey-v1__owner{
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  padding:8px 10px 10px;border-top:1px solid rgba(255,255,255,.06);
}
.team-public-jersey-v1__owner[hidden]{display:none}
.team-public-jersey-v1__owner button{
  min-height:31px;padding:0 11px;border:1px solid rgba(255,208,0,.34);border-radius:9px;
  background:rgba(255,208,0,.08);color:#ffd000;font-size:.62rem;font-weight:950;cursor:pointer;
}
.team-public-jersey-v1__owner span{color:rgba(244,243,239,.42);font-size:.52rem;font-weight:900;letter-spacing:.09em}
.team-public-jersey-v1__editor{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;padding:11px;
  border-top:1px solid rgba(255,255,255,.07);background:rgba(0,0,0,.28);
}
.team-public-jersey-v1__editor[hidden]{display:none}
.team-public-jersey-v1__editor-head{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:8px}
.team-public-jersey-v1__editor-head strong{color:#f6f4ee;font-size:.72rem;letter-spacing:.02em}
.team-public-jersey-v1__editor-head button{
  width:28px;height:28px;border:0;border-radius:50%;background:rgba(255,255,255,.06);
  color:#dfe4e8;font-size:1.1rem;cursor:pointer;
}
.team-public-jersey-v1__editor label{display:grid;gap:5px}
.team-public-jersey-v1__editor label>span{
  color:rgba(244,243,239,.56);font-size:.52rem;font-weight:900;text-transform:uppercase;letter-spacing:.06em;
}
.team-public-jersey-v1__editor input[type="color"]{
  width:100%;height:34px;padding:2px;border:1px solid rgba(255,255,255,.11);border-radius:8px;background:#071018;cursor:pointer;
}
.team-public-jersey-v1__pattern{grid-column:1/-1}
.team-public-jersey-v1__editor select{
  width:100%;min-height:34px;padding:0 8px;border:1px solid rgba(255,255,255,.11);
  border-radius:8px;background:#071018;color:#f2f3ef;font-size:.66rem;font-weight:800;
}
.team-public-jersey-v1__editor-actions{grid-column:1/-1;display:grid;gap:6px}
.team-public-jersey-v1__editor-actions button{
  min-height:32px;padding:0 9px;border:1px solid rgba(255,255,255,.1);border-radius:8px;
  background:rgba(255,255,255,.035);color:rgba(244,243,239,.8);font-size:.58rem;font-weight:900;cursor:pointer;
}
.team-public-jersey-v1__editor-actions button.is-primary{border-color:#ffd000;background:#ffd000;color:#050707}
.team-public-jersey-v1__editor-actions button:disabled{opacity:.55;cursor:wait}
.team-public-jersey-v1__status{grid-column:1/-1;min-height:1.2em;margin:0;color:#8eddd6;font-size:.56rem;line-height:1.35}


/* V3 – Webapp native team jersey */
body.seh-content-mode .seh-team-native-jersey.team-public-jersey-v1{
  width:100%!important;
  margin:7px 0 0!important;
  border-radius:14px!important;
  box-sizing:border-box!important;
}
body.seh-content-mode .seh-team-native-jersey .team-public-jersey-v1__stage{
  height:226px!important;
}
body.seh-content-mode .seh-team-native-jersey .team-public-jersey-v1__stage svg{
  width:205px!important;
  max-width:205px!important;
}
body.seh-content-mode .seh-team-native-jersey .team-public-jersey-v1__head{
  min-height:40px!important;
}
body.seh-content-mode .seh-team-native-jersey .team-public-jersey-v1__owner{
  padding:8px 10px 9px!important;
}
body.seh-content-mode .seh-team-native-jersey .team-public-jersey-v1__editor{
  padding:10px!important;
}


/* V4 – logo column must match the actual desktop team logo size */
@media(min-width:1281px){
  #spaRouteView[data-route="team"] .history-hero-content.has-public-jersey-v2 > .history-team-identity{
    width:168px !important;
    min-width:168px !important;
    overflow:visible !important;
  }

  #spaRouteView[data-route="team"] .history-hero-content.has-public-jersey-v2 > .history-profile-copy{
    min-width:0 !important;
    padding-left:0 !important;
  }
}
