/* FM27 V10.72.3 – reusable contextual double-bands (first use: Kader).
   Keep the established dark table; change only its metric/toolbar surfaces.
   Inspired by the green tactics header, with standalone classes for future pages. */
body:is(.fm27-squad-page,.fm27-r272523-ui-page) .fm27-context-band{
  box-sizing:border-box;color:#eefbf8;border:1px solid #447d72;
  min-width:0;
}
body:is(.fm27-squad-page,.fm27-r272523-ui-page) .fm27-roster-metrics.fm27-context-band-primary{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  gap:0;margin:.25rem 0 .65rem;padding:.25rem .35rem;
  background:linear-gradient(110deg,#135d55,#134d48);
  border-radius:12px 12px 0 0;box-shadow:none;
}
body:is(.fm27-squad-page,.fm27-r272523-ui-page) .fm27-context-band-primary .fm27-roster-metric{
  min-width:0;min-height:50px;margin:0;
  display:flex;flex-direction:column;justify-content:center;gap:2px;
  background:transparent;box-shadow:none;border:0;border-radius:0;
  padding:.33rem .8rem;
}
body:is(.fm27-squad-page,.fm27-r272523-ui-page) .fm27-context-band-primary .fm27-roster-metric:not(:last-child){border-right:1px solid #ffffff25}
body:is(.fm27-squad-page,.fm27-r272523-ui-page) .fm27-context-band-primary .fm27-roster-metric>span{
  font-size:.7rem;font-weight:650;color:#c5e7de;letter-spacing:0;
}
body:is(.fm27-squad-page,.fm27-r272523-ui-page) .fm27-context-band-primary .fm27-roster-metric>strong{
  font-size:clamp(.96rem,1.3vw,1.17rem);font-weight:820;
  line-height:1.3;color:#fff;overflow-wrap:anywhere;
}
body:is(.fm27-squad-page,.fm27-r272523-ui-page) .fm27-context-band-primary .fm27-roster-metric>strong small{font-size:.78em;color:#d0ede5}
body:is(.fm27-squad-page,.fm27-r272523-ui-page) .fm27-roster-panel-head.fm27-context-band-secondary{
  display:flex;align-items:center;justify-content:space-between;gap:.65rem;
  padding:.47rem .85rem;min-height:52px;margin:0 0 .65rem;
  background:linear-gradient(110deg,#154c48,#154842);
  border:1px solid #447d72;border-radius:0 0 12px 12px;
}
body:is(.fm27-squad-page,.fm27-r272523-ui-page) .fm27-context-band-caption{
  flex:0 0 auto;color:#f1fbfa;font-weight:800;font-size:.83rem;white-space:nowrap;
}
body:is(.fm27-squad-page,.fm27-r272523-ui-page) .fm27-context-band-secondary .fm27-roster-controls{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;
  min-width:0;gap:.48rem;
}
body:is(.fm27-squad-page,.fm27-r272523-ui-page) .fm27-context-band-secondary .fm27-roster-controls .form-select,
body:is(.fm27-squad-page,.fm27-r272523-ui-page) .fm27-context-band-secondary .fm27-roster-controls .form-control{
  height:34px;background:#143747!important;color:#effbf8!important;
  border:1px solid #66847e!important;border-radius:7px;font-size:.76rem;
}
body:is(.fm27-squad-page,.fm27-r272523-ui-page) .fm27-context-band-secondary .fm27-roster-search i{color:#b7e0d3}
body:is(.fm27-squad-page,.fm27-r272523-ui-page) .fm27-context-band-secondary .fm27-roster-controls .btn{
  background:#155b55;color:#f3fafa;border:1px solid #6da89c;
  border-radius:7px;padding:.35rem .55rem;font-size:.75rem;white-space:nowrap;
}
body:is(.fm27-squad-page,.fm27-r272523-ui-page) .fm27-context-band-secondary .fm27-roster-controls .btn:hover,
body:is(.fm27-squad-page,.fm27-r272523-ui-page) .fm27-context-band-secondary .fm27-roster-controls .btn:focus-visible{
  background:#266f65;color:#fff;border-color:#9edbd0;
}
body:is(.fm27-squad-page,.fm27-r272523-ui-page) .fm27-context-band-secondary .fm27-roster-controls .btn:focus-visible{outline:2px solid #b8a6ff;outline-offset:2px}
body:is(.fm27-squad-page,.fm27-r272523-ui-page) .fm27-context-band-secondary .fm27-roster-controls .dropdown-menu{
  background:#1a2a42;color:#f4f8ff;border:1px solid #5c6d8b;
}
body:is(.fm27-squad-page,.fm27-r272523-ui-page) .fm27-roster-panel{margin-top:0}
@media(max-width:1080px){
  body:is(.fm27-squad-page,.fm27-r272523-ui-page) .fm27-roster-panel-head.fm27-context-band-secondary{align-items:flex-start;flex-wrap:wrap}
  body:is(.fm27-squad-page,.fm27-r272523-ui-page) .fm27-context-band-secondary .fm27-roster-controls{justify-content:flex-start;width:100%}
}
@media(max-width:750px){
  body:is(.fm27-squad-page,.fm27-r272523-ui-page) .fm27-roster-metrics.fm27-context-band-primary{grid-template-columns:repeat(2,minmax(0,1fr))}
  body:is(.fm27-squad-page,.fm27-r272523-ui-page) .fm27-context-band-primary .fm27-roster-metric:nth-child(2){border-right:0}
  body:is(.fm27-squad-page,.fm27-r272523-ui-page) .fm27-context-band-primary .fm27-roster-metric:nth-child(-n+2){border-bottom:1px solid #ffffff25}
  body:is(.fm27-squad-page,.fm27-r272523-ui-page) .fm27-roster-panel-head.fm27-context-band-secondary{padding:.65rem}
  body:is(.fm27-squad-page,.fm27-r272523-ui-page) .fm27-context-band-secondary .fm27-roster-controls .fm27-roster-search{flex:1 1 170px}
  body:is(.fm27-squad-page,.fm27-r272523-ui-page) .fm27-context-band-secondary .fm27-roster-search input{max-width:none;width:100%}
  body:is(.fm27-squad-page,.fm27-r272523-ui-page) .fm27-context-band-secondary .fm27-roster-controls .fm27-v70-roster-actions{width:auto;max-width:100%}
}
@media(max-width:420px){
  body:is(.fm27-squad-page,.fm27-r272523-ui-page) .fm27-context-band-primary .fm27-roster-metric{padding:.35rem .48rem}
  body:is(.fm27-squad-page,.fm27-r272523-ui-page) .fm27-context-band-primary .fm27-roster-metric>strong{font-size:.92rem}
}
/* Pitch markers: orange = OWS secondary/same broad group, red = wrong group.
   The color is independent of the absolute star rating. Neutral stays neutral. */
body:is(.fm27-squad-page,.fm27-r272523-ui-page).fm27-v72-ready #pitch .fm27-v722-pitch-body.fm27-v723-tier-secondary{
  box-shadow:0 0 0 1.5px rgba(244,174,86,.94),0 0 9px rgba(244,174,86,.20),0 2px 5px rgba(0,0,0,.30);
}
body:is(.fm27-squad-page,.fm27-r272523-ui-page).fm27-v72-ready #pitch .fm27-v722-pitch-body.fm27-v723-tier-wrong{
  box-shadow:0 0 0 1.5px rgba(243,105,112,.94),0 0 9px rgba(243,105,112,.20),0 2px 5px rgba(0,0,0,.30);
}

/* V10.85.26: same-group placement (35% penalty) differs from explicit secondary (10%). */
body:is(.fm27-squad-page,.fm27-r272523-ui-page).fm27-v72-ready #pitch .fm27-v722-pitch-body.fm27-v723-tier-related {
  --fm27-position-accent:#e7ad65;
  border-color:#d6a15d;
}
body:is(.fm27-squad-page,.fm27-r272523-ui-page).fm27-v72-ready #pitch .fm27-v722-pitch-body.fm27-v723-tier-related .fm27-v72-pitch-position {
  color:#f7c78b;
}
