/* v4.16.2 — active Squad club crest renderer */
.squad-club-logo-header-v4162{
  width:44px!important;
  min-width:44px!important;
  max-width:44px!important;
  text-align:center!important;
  padding-left:4px!important;
  padding-right:4px!important;
}
.squad-club-logo-cell-v41113{
  width:44px!important;
  min-width:44px!important;
  max-width:44px!important;
  text-align:center!important;
  vertical-align:middle!important;
  padding-left:4px!important;
  padding-right:4px!important;
  line-height:0!important;
}
.squad-club-crest-v41113{
  appearance:none;
  -webkit-appearance:none;
  border:0!important;
  background:transparent!important;
  color:var(--text,#fff);
  display:flex;
  align-items:center;
  justify-content:center;
  width:25px;
  height:25px;
  min-width:25px;
  min-height:25px;
  padding:0!important;
  margin:0 auto!important;
  border-radius:0!important;
  vertical-align:middle;
  cursor:help;
  box-sizing:border-box;
  box-shadow:none!important;
}
.squad-club-crest-v41113.is-editable{cursor:pointer}
.squad-club-crest-v41113.is-editable:hover,.squad-club-crest-v41113.is-editable:focus-visible{
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  outline:none;
  filter:brightness(1.15) drop-shadow(0 0 3px rgba(85,232,132,.45));
}
.squad-club-crest-v41113 img{
  display:block;
  width:25px;
  height:25px;
  max-width:25px;
  max-height:25px;
  object-fit:contain;
  object-position:center center;
  margin:0!important;
  padding:0!important;
}
.squad-club-crest-v41113>span{font-size:9px;font-weight:900;line-height:1;color:var(--text,#fff)}
.squad-club-crest-v41113.is-empty{opacity:.55}
.squad-club-logo-cell-v41113 .squad-club-name-fallback-v41114{white-space:nowrap;max-width:150px;overflow:hidden;text-overflow:ellipsis;line-height:normal}

/* Keep written club names in Squad Planner and give them room. */
.planner-club-col-v41041{min-width:210px!important;width:210px!important}
.planner-table-v41041 td:nth-child(6) input,.planner-table-v41041 td:nth-child(6) select{min-width:195px!important;width:100%!important}

@media(max-width:700px){
  .squad-club-logo-header-v4162,.squad-club-logo-cell-v41113{width:42px!important;min-width:42px!important;max-width:42px!important;padding-left:3px!important;padding-right:3px!important}
  .squad-club-crest-v41113{width:25px;height:25px;min-width:25px;min-height:25px}
  .squad-club-crest-v41113 img{width:25px;height:25px;max-width:25px;max-height:25px}
  .planner-club-col-v41041{min-width:185px!important}
}


/* v4.16.3 — manager correction for unresolved club names */
.squad-club-name-fallback-v41114.is-editable{
  cursor:pointer;
  text-decoration:underline;
  text-decoration-style:dotted;
  text-underline-offset:3px;
}
.club-correction-dialog-v4163{
  width:min(520px,calc(100vw - 28px));
  border:1px solid var(--line,#294236);
  border-radius:14px;
  background:#0c1511;
  color:var(--text,#fff);
  padding:0;
  box-shadow:0 24px 80px rgba(0,0,0,.55);
}
.club-correction-dialog-v4163::backdrop{background:rgba(0,0,0,.68);backdrop-filter:blur(2px)}
#clubCorrectionFormV4163{padding:20px}
.club-correction-head-v4163{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:8px}
.club-correction-head-v4163 small{color:var(--muted,#9ba9a1);text-transform:uppercase;letter-spacing:.08em}
.club-correction-head-v4163 h3{margin:3px 0 0;font-size:20px}
.club-correction-close-v4163{border:0;background:transparent;color:inherit;font-size:28px;line-height:1;cursor:pointer;padding:0 4px}
.club-correction-help-v4163{color:var(--muted,#a5b2aa);line-height:1.45;margin:0 0 16px}
.club-correction-label-v4163{display:grid;gap:7px;font-weight:700}
.club-correction-label-v4163 input{
  width:100%;box-sizing:border-box;border:1px solid var(--line,#294236);border-radius:9px;
  background:#07120d;color:var(--text,#fff);padding:11px 12px;font:inherit;outline:none;
}
.club-correction-label-v4163 input:focus{border-color:#55e884;box-shadow:0 0 0 2px rgba(85,232,132,.12)}
.club-correction-error-v4163{margin-top:9px;color:#ff9b8d;font-size:13px}
.club-correction-actions-v4163{display:flex;justify-content:flex-end;gap:9px;margin-top:18px}


/* v4.16.4 — manual squad-player image upload fallback */
.player-photo-upload-v4164{
  position:relative;
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  flex:0 0 40px;
  border-radius:50%;
  cursor:pointer;
}
.player-photo-upload-v4164 .player-photo-fallback{
  width:40px;
  height:40px;
}
.player-photo-camera-v4164{
  position:absolute;
  right:-3px;
  bottom:-3px;
  display:grid;
  place-items:center;
  width:18px;
  height:18px;
  border-radius:50%;
  background:#0b1711;
  border:1px solid #3f7258;
  font-size:10px;
  line-height:1;
  box-shadow:0 2px 7px rgba(0,0,0,.38);
}
.player-photo-upload-v4164:hover .player-photo-camera-v4164{
  transform:scale(1.08);
  border-color:#66e494;
}


/* v4.16.4.2 — larger real squad player photos */
.player-photo-link:has(> .player-photo){
  width:50px !important;
  height:50px !important;
  min-width:50px !important;
  flex-basis:50px !important;
}
.player-photo-link > .player-photo{
  width:50px !important;
  height:50px !important;
  max-width:50px !important;
  max-height:50px !important;
  object-fit:cover !important;
  border-radius:4px !important;
  margin:0 !important;
}
/* Missing-photo fallback stays at the compact original size. */
.player-photo-link:not(:has(> .player-photo)){
  width:40px !important;
  height:40px !important;
  min-width:40px !important;
  flex-basis:40px !important;
}


/* v4.16.4.3 — final squad headshot sizing/alignment */
.player-photo-link:has(> .player-photo){
  width:55px !important;
  height:55px !important;
  min-width:55px !important;
  flex-basis:55px !important;
  margin-right:8px !important;
  align-self:center !important;
}
.player-photo-link > .player-photo{
  width:55px !important;
  height:55px !important;
  max-width:55px !important;
  max-height:55px !important;
  object-fit:cover !important;
  border-radius:4px !important;
  margin:0 !important;
  display:block !important;
}
.player-photo-upload-v4164{
  margin-right:8px !important;
  align-self:center !important;
}

/* v4.20.5.12 — admin-only replacement control on existing squad headshots.
   Intentionally does NOT change the existing real-photo sizing. */
.player-photo-admin-wrap-v420512{
  position:relative;
  display:inline-flex;
  align-items:center;
  flex:0 0 auto;
}
.player-photo-admin-wrap-v420512 > .player-photo-link{
  margin-right:8px !important;
}
.player-photo-replace-v420512{
  position:absolute;
  right:4px;
  bottom:-3px;
  width:18px;
  height:18px;
  cursor:pointer;
  z-index:2;
}
.player-photo-replace-v420512 .player-photo-camera-v4164{
  right:0;
  bottom:0;
}
.player-photo-replace-v420512:hover .player-photo-camera-v4164{
  transform:scale(1.08);
  border-color:#66e494;
}
