/* V10.71 – only presentation; all current OWS forms, POST fields and handlers remain authoritative. */
body.fm27-squad-page .fm27-v71-name-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
body.fm27-squad-page .fm27-v71-name-actions>p{margin:0;min-width:0;line-height:1.28}
body.fm27-squad-page .fm27-v71-name-actions>.btn-group,
body.fm27-squad-page .fm27-v71-name-actions>.dropdown{flex:0 0 auto;white-space:nowrap}
body.fm27-squad-page .fm27-v71-name-actions .btn{padding:.23rem .55rem;font-size:.75rem}
body.fm27-squad-page.fm27-v71-ready #formationForm .fm27-lineup-layout>.pitchColumn{flex:0 0 34%;max-width:34%;min-width:0}
body.fm27-squad-page.fm27-v71-ready #formationForm .fm27-lineup-layout>.playersColumn{flex:0 0 66%;max-width:66%;min-width:0}
/* A modern, locally bundled pitch asset replaces the old external PNG via the CSS layer. */
body.fm27-squad-page.fm27-v71-ready #formationForm #pitch{background-image:url('fm27-pitch-v1071.svg')!important;background-color:#102b35;background-position:center center;background-repeat:no-repeat;background-size:100% 100%;border:1px solid #456b68;border-radius:10px;box-shadow:inset 0 0 35px #051820,0 2px 14px rgba(0,0,0,.22)}
body.fm27-squad-page.fm27-v71-ready #pitch .playerinfoStrength{display:none!important}
body.fm27-squad-page.fm27-v71-ready #pitch .fm27-v71-pitch-rating{position:absolute;z-index:7;display:block;min-width:23px;padding:2px 4px;left:50%;transform:translateX(-50%);bottom:0;border:1px solid #4ea993;border-radius:6px;background:#092e38;box-shadow:0 2px 7px rgba(0,0,0,.45);color:#c2f6e7;font:800 11px/1.1 system-ui,sans-serif;text-align:center;pointer-events:none}
body.fm27-squad-page.fm27-v71-ready #pitch .fm27-v71-pitch-rating.fm27-v71-reduced{border-color:#e1ab68;color:#ffd797;background:#493525}
body.fm27-squad-page.fm27-v71-ready .fm27-v71-list-shell{--fm27-v71-list-height:720px;max-height:var(--fm27-v71-list-height);overflow:auto;overscroll-behavior:contain;border:1px solid #37476c;border-radius:10px;scrollbar-color:#65569a #1a253e;scrollbar-width:thin}
body.fm27-squad-page.fm27-v71-ready .fm27-v71-list-shell .fm27-v70-heading{position:sticky;top:0;z-index:4;border:0;border-bottom:1px solid #53638d;border-radius:0;background:#1c2947}
body.fm27-squad-page.fm27-v71-ready .fm27-v71-list-shell .fm27-v69-lineup-table{min-height:unset!important;max-height:none!important;overflow:visible!important;border-radius:0!important}
body.fm27-squad-page.fm27-v71-ready .fm27-v71-list-shell .fm27-v70-heading,
body.fm27-squad-page.fm27-v71-ready .fm27-v71-list-shell .fm27-v69-lineup-row{min-width:890px;width:100%;display:grid;grid-template-columns:35px 76px 34px minmax(120px,1.35fr) 68px 43px 72px 39px 41px 48px 34px 43px 42px 23px;gap:3px;align-items:center;box-sizing:border-box;padding:5px 6px}
body.fm27-squad-page.fm27-v71-ready .fm27-v71-list-shell .fm27-v69-lineup-row{min-height:37px;height:37px;font-size:.72rem}
body.fm27-squad-page.fm27-v71-ready .fm27-v71-list-shell .fm27-v70-heading{min-height:38px;height:38px;font-size:.59rem;letter-spacing:-.015em}
body.fm27-squad-page.fm27-v71-ready .fm27-v71-list-shell .fm27-v70-heading>span{overflow:visible;white-space:normal;text-align:center}
body.fm27-squad-page.fm27-v71-ready .fm27-v71-list-shell .fm27-v70-heading>span:nth-child(4){text-align:left}
body.fm27-squad-page.fm27-v71-ready .fm27-v71-list-shell .fm27-v70-heading>span:nth-child(2){color:#dcc992}
body.fm27-squad-page.fm27-v71-ready .fm27-v71-stars{color:#b5a071;font-size:12px;letter-spacing:0;white-space:nowrap;justify-self:center;font-family:Georgia,serif;line-height:1;user-select:none}
body.fm27-squad-page.fm27-v71-ready .fm27-v71-portrait{display:flex;width:27px;height:28px;align-items:center;justify-content:center;overflow:hidden;border-radius:5px;background:#273450;border:1px solid #4b5375;justify-self:center}
body.fm27-squad-page.fm27-v71-ready .fm27-v71-portrait img{width:100%;height:100%;object-fit:cover;object-position:center top}
body.fm27-squad-page.fm27-v71-ready .fm27-v71-portrait-empty{color:#96a0bb;font-size:15px}
body.fm27-squad-page.fm27-v71-ready .fm27-v71-positions{font-size:.65rem;line-height:1.1;color:#c2cce1;text-align:center;overflow-wrap:anywhere}
body.fm27-squad-page.fm27-v71-ready .fm27-v71-list-shell .fm27-v69-lineup-row select.fm27-v71-native-select{display:none!important}
body.fm27-squad-page.fm27-v71-ready .fm27-v71-list-shell .fm27-v69-lineup-row select.fm27-v71-player-choice{display:block!important;width:100%;height:28px;min-width:0;max-width:200px;padding:2px 16px 2px 4px;font-size:.67rem;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border:1px solid #566487;border-radius:5px;background-color:#1c2943;color:#e6ebff;cursor:pointer}
body.fm27-squad-page.fm27-v71-ready .fm27-v71-list-shell .fm27-v69-lineup-row select.fm27-v71-player-choice:focus{border-color:#a38df5;outline:2px solid #8668ed;outline-offset:1px}
body.fm27-squad-page.fm27-v71-ready .fm27-v71-list-shell .fm27-v69-lineup-row .fm27-v69-val,
body.fm27-squad-page.fm27-v71-ready .fm27-v71-strength{font-weight:800;font-variant-numeric:tabular-nums;text-align:center;color:#eee4ff}
body.fm27-squad-page.fm27-v71-ready .fm27-v71-reduced{color:#ffd797!important}
body.fm27-squad-page.fm27-v71-ready .fm27-v71-slot,
body.fm27-squad-page.fm27-v71-ready .fm27-v71-text{text-align:center;color:#bfc8e3;font-size:.67rem}
body.fm27-squad-page.fm27-v71-ready .fm27-v71-bench-row{background:#202b45;border-left:2px solid #9677e4}
body.fm27-squad-page.fm27-v71-ready .fm27-v71-bench-row .fm27-v71-select-wrap{min-width:0}
body.fm27-squad-page.fm27-v71-ready .fm27-v71-reserve-row{background:#182239;opacity:.55;border-left:2px solid #5a6681;pointer-events:none;user-select:none}
body.fm27-squad-page.fm27-v71-ready .fm27-v71-reserve-name{color:#8792aa;font-size:.68rem}
body.fm27-squad-page.fm27-v71-ready .fm27-v71-feedback{padding:6px 12px;margin:4px 0;background:#66313b;border:1px solid #c96673;color:#ffe2e5;font-size:.78rem;border-radius:6px}
body.fm27-squad-page.fm27-v71-ready .fm27-v71-feedback[hidden]{display:none}
body.fm27-squad-page.fm27-v71-ready .fm27-v69-lineup-row .fm27-v70-info{font-size:.66rem}
body.fm27-squad-page.fm27-v71-ready .fm27-v69-lineup-row .fm27-v70-heart{font-size:17px}
body.fm27-squad-page.fm27-v71-ready .fm27-v69-lineup-row .fm27-v70-moral{font-size:16px}
@media(max-width:1299px){
 body.fm27-squad-page.fm27-v71-ready #formationForm .fm27-lineup-layout>.pitchColumn,
 body.fm27-squad-page.fm27-v71-ready #formationForm .fm27-lineup-layout>.playersColumn{flex:0 0 100%;max-width:100%}
 body.fm27-squad-page.fm27-v71-ready .fm27-v71-list-shell{max-height:680px}
}
@media(max-width:750px){
 body.fm27-squad-page .fm27-v71-name-actions{gap:7px}
 body.fm27-squad-page .fm27-v71-name-actions .btn{font-size:.65rem;padding:.18rem .35rem}
 body.fm27-squad-page.fm27-v71-ready .fm27-v71-list-shell{max-height:590px}
}
@media(prefers-reduced-motion:reduce){body.fm27-squad-page.fm27-v71-ready *{scroll-behavior:auto}}

/* V10.71.1 – real-source corrective patch */
body.fm27-squad-page .fm27-v711-name-actions{display:flex;align-items:center;justify-content:space-between;gap:.65rem;min-width:0;width:100%}
body.fm27-squad-page .fm27-v711-player-description{flex:1 1 auto;min-width:0}
body.fm27-squad-page .fm27-v711-player-description .fm27-roster-name{margin:0!important;line-height:1.18!important}
body.fm27-squad-page .fm27-v711-player-description .fm27-roster-player-subline{display:block;margin-top:2px;line-height:1.15}
body.fm27-squad-page .fm27-v711-name-actions>.btn-group{flex:0 0 auto;white-space:nowrap;margin:0}
body.fm27-squad-page .fm27-v711-name-actions>.btn-group>.btn{font-size:.72rem;padding:.2rem .45rem}
body.fm27-squad-page.fm27-v71-ready #pitch .fm27-pitch-ability{display:none!important}
body.fm27-squad-page.fm27-v71-ready #pitch .fm27-v71-pitch-rating{z-index:10;border-color:#73829d;color:#f6f8ff;background:#17263d}
body.fm27-squad-page.fm27-v71-ready .fm27-v71-list-shell .fm27-v69-lineup-row .fm27-v711-main,
body.fm27-squad-page.fm27-v71-ready #pitch .fm27-v71-pitch-rating.fm27-v711-main{color:#f6f8ff!important}
body.fm27-squad-page.fm27-v71-ready .fm27-v71-list-shell .fm27-v69-lineup-row .fm27-v711-secondary,
body.fm27-squad-page.fm27-v71-ready #pitch .fm27-v71-pitch-rating.fm27-v711-secondary{color:#ffbd70!important}
body.fm27-squad-page.fm27-v71-ready #pitch .fm27-v71-pitch-rating.fm27-v711-secondary{border-color:#e1ab68;background:#493525}
body.fm27-squad-page.fm27-v71-ready .fm27-v71-list-shell .fm27-v69-lineup-row .fm27-v711-wrong,
body.fm27-squad-page.fm27-v71-ready #pitch .fm27-v71-pitch-rating.fm27-v711-wrong{color:#ff7387!important}
body.fm27-squad-page.fm27-v71-ready #pitch .fm27-v71-pitch-rating.fm27-v711-wrong{border-color:#ea627d;background:#4b2535}
body.fm27-squad-page.fm27-v71-ready .fm27-v71-list-shell{overscroll-behavior:auto!important;overflow-y:auto;overflow-x:auto}
body.fm27-squad-page.fm27-v71-ready .fm27-v71-list-shell .fm27-v70-heading>span:nth-child(2){color:#e8eefb!important}
body.fm27-squad-page.fm27-v71-ready .fm27-v71-list-shell .fm27-v70-heading>span:nth-child(4){padding-left:.3rem}
body.fm27-squad-page.fm27-v71-ready .fm27-v71-list-shell .fm27-v69-lineup-row>.fm27-v71-positions{min-width:0}
/* Use space across all columns rather than a very wide empty Spieler cell. */
body.fm27-squad-page.fm27-v71-ready .fm27-v71-list-shell .fm27-v70-heading,
body.fm27-squad-page.fm27-v71-ready .fm27-v71-list-shell .fm27-v69-lineup-row{
  min-width:940px;
  grid-template-columns:35px 85px 34px 205px 70px 45px 95px 44px 42px 48px 37px 51px 49px 23px;
  justify-content:space-between;
}
body.fm27-squad-page.fm27-v71-ready .fm27-v71-list-shell .fm27-v69-lineup-row select.fm27-v71-player-choice{max-width:205px}

/* V10.71.2 – thirteen TRUE columns; photo and dropdown share one Spieler cell */
body.fm27-squad-page.fm27-v71-ready .fm27-v71-list-shell .fm27-v70-heading,
body.fm27-squad-page.fm27-v71-ready .fm27-v71-list-shell .fm27-v69-lineup-row{
  min-width:940px;
  grid-template-columns:35px 85px minmax(236px,1fr) 68px 45px 83px 44px 42px 48px 38px 49px 46px 23px;
  justify-content:space-between;
}
body.fm27-squad-page.fm27-v71-ready .fm27-v71-list-shell .fm27-v70-heading>span:nth-child(3){text-align:left;padding-left:37px}
body.fm27-squad-page.fm27-v71-ready .fm27-v71-list-shell .fm27-v70-heading>span:nth-child(4){padding-left:0;text-align:center}
body.fm27-squad-page.fm27-v71-ready .fm27-v712-player-cell{display:flex;gap:6px;align-items:center;min-width:0;overflow:visible}
body.fm27-squad-page.fm27-v71-ready .fm27-v712-player-cell>.fm27-v71-portrait{flex:0 0 27px;width:27px;height:28px;margin:0}
body.fm27-squad-page.fm27-v71-ready .fm27-v712-player-cell>.fm27-v71-select-wrap{flex:1 1 auto;min-width:0}
body.fm27-squad-page.fm27-v71-ready .fm27-v712-player-cell>select.fm27-v71-player-choice{flex:1 1 auto;min-width:0;width:100%;max-width:none}
body.fm27-squad-page.fm27-v71-ready .fm27-v712-player-cell .fm27-v71-player-choice{width:100%;max-width:none!important}
body.fm27-squad-page.fm27-v71-ready .fm27-v712-player-cell .fm27-v71-reserve-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.fm27-squad-page.fm27-v71-ready .fm27-v71-bench-row .fm27-v70-fresh-track{width:100%}
/* Standardschütze: full-width selection, useful empty state, original OWS field */
body.fm27-squad-page .fm27-v69-setpieces #fm27V69FreekickSlot{min-width:194px;max-width:235px;flex:1 1 210px}
body.fm27-squad-page .fm27-v69-setpieces .fm27-v712-setpiece-field{display:flex;align-items:center;gap:7px;min-width:0;width:100%;padding:3px 7px;border:1px solid #64799a;background:#182a43;border-radius:7px;transition:border-color .15s,background-color .15s}
body.fm27-squad-page .fm27-v69-setpieces .fm27-v712-setpiece-field:focus-within{border-color:#ac91ef;outline:1px solid #ac91ef}
body.fm27-squad-page .fm27-v69-setpieces .fm27-v712-setpiece-field>i{flex:0 0 auto;color:#b4a0ed;font-size:15px}
body.fm27-squad-page .fm27-v69-setpieces .fm27-v712-setpiece-field select#freekickplayer{width:100%!important;min-width:0;max-width:none!important;flex:1 1 auto;background:#182a43!important;color:#c9d3e9;border:none!important;box-shadow:none!important;padding:3px 12px 3px 2px!important;height:28px;cursor:pointer}
body.fm27-squad-page .fm27-v69-setpieces .fm27-v712-setpiece-field.is-chosen select#freekickplayer{color:#fff}
@media(max-width:580px){body.fm27-squad-page .fm27-v69-setpieces #fm27V69FreekickSlot{min-width:176px;max-width:100%}}

/* V10.71.3 – subtle visual separation, preserve the 34/66 split. */
@media (min-width:1300px) {
  body.fm27-squad-page.fm27-v71-ready #formationForm .fm27-lineup-layout {
    --bs-gutter-x:0;
    column-gap:12px;
    margin-left:0;
    margin-right:0;
  }
  body.fm27-squad-page.fm27-v71-ready #formationForm .fm27-lineup-layout>.pitchColumn {
    flex:0 0 calc((100% - 12px) * .34);
    max-width:calc((100% - 12px) * .34);
  }
  body.fm27-squad-page.fm27-v71-ready #formationForm .fm27-lineup-layout>.playersColumn {
    flex:0 0 calc((100% - 12px) * .66);
    max-width:calc((100% - 12px) * .66);
  }
}
/* Counter: THREE nearby teammates exchanging several fast short passes.
   The original long-ball illustration retains its separate longer trajectory. */
body.fm27-squad-page .fm27-v69-counter-demo b:nth-of-type(1) {left:17%;top:45px}
body.fm27-squad-page .fm27-v69-counter-demo b:nth-of-type(2) {left:45%;top:17px}
body.fm27-squad-page .fm27-v69-counter-demo b:nth-of-type(3) {left:76%;top:42px}
body.fm27-squad-page .fm27-v69-counter-demo::before {
  content:'';position:absolute;inset:0;pointer-events:none;opacity:.48;
  background:linear-gradient(135deg,transparent 49%,#d2ede0 50%,transparent 51%) 19% 27px/65px 27px no-repeat,
  linear-gradient(35deg,transparent 49%,#d2ede0 50%,transparent 51%) 49% 21px/65px 27px no-repeat;
}
body.fm27-squad-page .fm27-v69-counter-demo i {
  animation:fm27-v713-short-passes 3.1s linear infinite;
  left:19%;top:48px;
}
@keyframes fm27-v713-short-passes {
  0%,7%{left:19%;top:48px}
  23%,28%{left:47%;top:20px}
  44%,49%{left:78%;top:45px}
  65%,70%{left:47%;top:20px}
  90%,100%{left:19%;top:48px}
}
@media(prefers-reduced-motion:reduce){
  body.fm27-squad-page .fm27-v69-counter-demo i{animation:none;left:47%;top:20px}
}

/* V10.85.5 – compact, accessible bench substitution summaries */
body.fm27-squad-page #formationForm .ws-formation-table .benchposition{
 min-height:55px!important;align-items:flex-start!important;padding:7px 6px 23px!important;
}
body.fm27-squad-page #formationForm .ws-formation-table .benchposition td:first-child{
 min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
body.fm27-squad-page #formationForm .ws-formation-table .benchposition .benchPlayerSubAdd{
 position:absolute;right:5px;bottom:4px;margin:0;
}
body.fm27-squad-page #formationForm .ws-formation-table .benchposition .benchPlayerSubInfo.fm27-v855-subcompact{
 position:absolute;right:5px;bottom:3px;display:flex;align-items:center;gap:6px;
 max-width:calc(100% - 14px);padding:1px 4px;border-radius:5px;
 font-size:.65rem;line-height:1.2;white-space:nowrap;background:#15383b;
}
body.fm27-squad-page #formationForm .ws-formation-table .benchPlayerSubInfo.ws-hidden{display:none!important}
body.fm27-squad-page #formationForm .fm27-v855-subcompact .fm27-v855-sub-meta{display:none!important}
body.fm27-squad-page #formationForm .fm27-v855-sub-chip{font-weight:800;color:#e4d9ff}
body.fm27-squad-page #formationForm .fm27-v855-sub-hint{color:#aac6e8;cursor:help;font-size:.78rem;line-height:1;outline-offset:2px}
body.fm27-squad-page #formationForm .fm27-v855-subcompact .removeSubstitutionBtn{color:#f4b2bf;line-height:1}
body.fm27-squad-page #formationForm .fm27-v855-sub-hint:is(:hover,:focus-visible)::after{
 content:attr(data-fm27-hint);position:absolute;right:0;bottom:calc(100% + 5px);
 width:max-content;max-width:240px;white-space:normal;overflow-wrap:anywhere;
 padding:8px 10px;background:#111c32;color:#f4f6ff;border:1px solid #7485aa;
 border-radius:7px;box-shadow:0 4px 12px #0009;z-index:1100;pointer-events:none;
 font:500 12px/1.4 system-ui,sans-serif;
}
body.fm27-squad-page #formationForm .fm27-v855-window-choices{display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin:6px 0 12px;color:#adbdd9;font-size:.72rem}
body.fm27-squad-page #formationForm .fm27-v855-minute-choice{padding:3px 6px;border:1px solid #7d6db4;color:#e9dbff;background:#293350;border-radius:5px;font-size:.72rem;cursor:pointer}
body.fm27-squad-page #formationForm .fm27-v855-minute-choice:hover{background:#473a73}

/* V10.85.6 – match form field alignment (Bootstrap modal-body inset). */
body.fm27-squad-page #formationForm .fm27-sub-modal-error{
  display:block;width:auto;margin:0 16px 12px;max-width:calc(100% - 32px);
}
body.fm27-squad-page #formationForm .fm27-sub-modal-error[hidden]{display:none!important}
body.fm27-squad-page #formationForm .fm27-v855-window-choices{display:none!important}

/* FM27 V10.85.7: diagnose orphaned substitutions; do not silently discard plans. */
.fm27-v857-plan-error{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:8px;padding:8px 10px;border:1px solid rgba(226,89,103,.58);border-radius:8px;background:rgba(99,27,40,.24);color:#ffbdc6;font-size:12px}
.fm27-v857-plan-error[hidden]{display:none}
.fm27-v857-repair-plan{border:1px solid currentColor;border-radius:5px;padding:4px 8px;color:inherit;background:transparent;cursor:pointer}
.fm27-v857-repair-plan:hover{background:rgba(255,255,255,.10)}

/* FM27 V10.85.26: related-but-not-secondary (35% penalty) receives distinct amber cue. */
.fm27-v711-related { color:#f7bd79!important; }
