/* FM27 V10.73: coherent recruitment/profile presentation only. */
body.fm27-midnight .fm27-recruitment-bands{display:grid;gap:7px;margin-bottom:16px;color:#eefbf8;min-width:0}
body.fm27-midnight .fm27-recruitment-primary,body.fm27-midnight .fm27-recruitment-secondary{background:linear-gradient(110deg,#125c54,#134e48);border:1px solid #417e73;color:#f5fffd;box-shadow:inset 0 1px 0 #ffffff12}
body.fm27-midnight .fm27-recruitment-primary{border-radius:12px 12px 3px 3px;padding:12px 16px;display:flex;align-items:center;flex-wrap:wrap;gap:12px 22px;min-height:65px}
body.fm27-midnight .fm27-recruitment-kicker{display:flex;align-items:center;gap:8px;color:#edfaf6;font-size:13px;font-weight:820;letter-spacing:.03em;min-width:128px;margin-right:auto}
body.fm27-midnight .fm27-recruitment-kicker i{font-size:17px;color:#9fe9d7}
body.fm27-midnight .fm27-recruitment-stat{display:flex;flex-direction:column;gap:3px;min-width:92px;max-width:260px;border-left:1px solid #d6f0e52c;padding-left:15px}
body.fm27-midnight .fm27-recruitment-stat>span{font-size:11px;color:#b9e0d7;font-weight:650}
body.fm27-midnight .fm27-recruitment-stat>strong{font-size:15px;font-weight:800;color:#fff;line-height:1.25;overflow-wrap:anywhere}
body.fm27-midnight .fm27-recruitment-stat a{color:#fff;text-decoration:none}
body.fm27-midnight .fm27-recruitment-stat a:hover{text-decoration:underline}
body.fm27-midnight .fm27-recruitment-secondary{display:flex;flex-wrap:wrap;gap:6px;min-height:47px;align-items:center;padding:6px 10px;border-radius:3px 3px 11px 11px}
body.fm27-midnight .fm27-recruitment-secondary a{display:inline-flex;align-items:center;justify-content:center;gap:7px;text-decoration:none;color:#c4e7df;padding:8px 11px;font-size:12px;font-weight:650;border:1px solid transparent;border-radius:8px;white-space:nowrap;transition:background .13s,color .13s}
body.fm27-midnight .fm27-recruitment-secondary a:hover,body.fm27-midnight .fm27-recruitment-secondary a:focus-visible{background:#ffffff19;color:#fff;border-color:#ffffff3c}
body.fm27-midnight .fm27-recruitment-secondary a.is-active{background:#129784;color:#fff;border-color:#66c5b3}
/* Market filters, list, actions */
body.fm27-recruitment-page #market-search.fm27-recruitment-filters{margin-top:0!important;margin-bottom:12px!important;border-radius:12px;background:#202b42;border:1px solid #3e4e6b;box-shadow:none}
body.fm27-recruitment-page #market-search.fm27-recruitment-filters>.card-body{padding:13px 15px}
body.fm27-recruitment-page #market-search .form-label{font-size:11px;font-weight:720;color:#bfcde6}
body.fm27-recruitment-page #market-search .btn-check:checked+.btn{background:#7359d4;color:#fff;border-color:#9f88f2}
body.fm27-midnight .fm27-list-count{margin:0 0 12px;font-size:12px}
body.fm27-midnight .fm27-recruitment-table{margin:0;width:100%;font-variant-numeric:tabular-nums}
body.fm27-midnight .fm27-recruitment-table>thead>tr>th{font-size:11px;text-transform:none;letter-spacing:.01em;font-weight:760;background:#202e46;color:#cdd9ef;padding:12px 10px}
body.fm27-midnight .fm27-recruitment-table>tbody>tr>td{padding:11px 10px;vertical-align:middle;font-size:12.5px}
body.fm27-midnight .fm27-recruitment-table a:not(.btn){color:#e5dcff;text-decoration:none;font-weight:650}
body.fm27-midnight .fm27-recruitment-table a:not(.btn):hover{text-decoration:underline;color:#fff}
body.fm27-midnight .fm27-recruitment-table td>strong{color:#fff;font-weight:780}
body.fm27-midnight .fm27-recruitment-table td>.small{font-size:11px;margin-top:3px}
body.fm27-midnight .fm27-recruitment-table .badge{font-size:11px;font-weight:730;border-radius:6px;padding:5px 7px}
body.fm27-midnight .fm27-recruitment-table td:last-child .btn{white-space:nowrap}
body.fm27-midnight .fm27-market-player-name{display:flex;align-items:center;gap:8px;min-width:170px;flex-wrap:nowrap}
body.fm27-midnight .fm27-market-player-name>a:first-child{min-width:0;overflow-wrap:anywhere}
body.fm27-midnight .fm27-club-mark{width:26px;height:26px;min-width:26px;display:flex;align-items:center;justify-content:center;border:1px solid #4c607b;background:#17283d;border-radius:7px;overflow:hidden;color:#c9d2e8!important}
body.fm27-midnight .fm27-club-mark img{max-width:22px;max-height:22px;object-fit:contain;display:block}
body.fm27-midnight .fm27-club-mark .bi{font-size:16px}
body.fm27-midnight .fm27-contract-seasons{white-space:nowrap;color:#e9f0ff}
body.fm27-midnight .fm27-player-status-line{font-size:11px;color:#aebbd0}
body.fm27-midnight .fm27-history-controls{background:#1d2a41;border:1px solid #3b4e69;padding:10px 12px;border-radius:9px}
body.fm27-recruitment-page .fm27-recruitment-offers .ows-offer-actions{min-width:200px}
body.fm27-recruitment-page .fm27-recruitment-offers .ows-offer-actions form{gap:6px;margin:0}
body.fm27-recruitment-page .fm27-recruitment-offers .ows-offer-actions input[name=counter]{max-width:240px}
/* Profile uses raw discrete values for strength & technique. */
body.fm27-squad-page .fm27-player-hero-v1073{margin:0 0 15px;min-height:155px;padding:14px 18px;background:linear-gradient(105deg,#1d2b45,#202943 75%,#30284b);border-radius:12px}
body.fm27-squad-page .fm27-player-hero-v1073 .fm27-player-portrait{width:125px;height:125px;min-width:125px;background:#13213a;border-radius:11px}
body.fm27-squad-page .fm27-player-hero-v1073 .fm27-player-hero-copy h2{font-size:clamp(1.2rem,2.25vw,1.8rem)}
body.fm27-squad-page .fm27-player-hero-v1073 .fm27-player-meta{font-size:12px}
body.fm27-squad-page .fm27-profile-tabs{margin-top:4px;border-bottom:1px solid #42776f}
body.fm27-squad-page .fm27-profile-tabs .nav-link{padding:10px 14px!important}
body.fm27-squad-page .fm27-profile-tabs .nav-link.active{background:#165951;color:#fff;border-bottom:2px solid #8ae0c8}
body.fm27-squad-page .fm27-profile-pane{background:#1b2840;border:1px solid #354968;padding:17px 18px;border-radius:0 0 11px 11px;margin-top:-1px}
body.fm27-squad-page .fm27-profile-pane dt{color:#b6c3da!important}
body.fm27-squad-page .fm27-profile-pane dd{color:#eff4ff!important}
body.fm27-midnight .fm27-panel-title{font-size:15px;font-weight:780;color:#edf4ff;margin:14px 0 12px}
body.fm27-squad-page .fm27-profile-ability-pair{display:grid;grid-template-columns:repeat(2,minmax(100px,1fr));gap:10px;margin:0 0 16px;max-width:470px}
body.fm27-squad-page .fm27-profile-ability{display:flex;flex-direction:column;gap:2px;background:#14283b;border:1px solid #387368;border-radius:10px;padding:12px 16px}
body.fm27-squad-page .fm27-profile-ability span{font-size:12px;color:#c4e4da}
body.fm27-squad-page .fm27-profile-ability strong{font-size:26px;color:#fff;line-height:1.13;font-weight:830;font-variant-numeric:tabular-nums}
body.fm27-squad-page .fm27-profile-ability small{font-size:10px;color:#9bbbad!important}
body.fm27-squad-page .fm27-profile-pane .progress{height:8px;max-width:480px;margin-bottom:12px}
/* AJAX search, keep existing form field names, autocomplete and paginator. */
body.fm27-recruitment-page .fm27-recruitment-search{margin:0 0 15px!important;padding:14px!important}
body.fm27-recruitment-page .fm27-recruitment-search>.mb-3{margin:0!important;flex:1 1 220px}
body.fm27-recruitment-page .fm27-recruitment-search>.d-flex{width:100%;justify-content:flex-end!important;padding:7px 0 0!important}
body.fm27-recruitment-page #playerssearch-results_block .fm27-search-strengths{padding:0;margin:0;list-style:none}
body.fm27-recruitment-page .fm27-recruitment-search label{font-size:12px;font-weight:710}
body.fm27-recruitment-page .fm27-deal-facts{display:grid;grid-template-columns:minmax(120px,210px) minmax(180px,1fr);max-width:730px;gap:9px 18px;border:1px solid #3c516b;border-radius:11px;background:#1d2a40;padding:18px;margin-bottom:20px}
body.fm27-recruitment-page .fm27-deal-facts dt,body.fm27-recruitment-page .fm27-deal-facts dd{margin:0;font-size:13px;line-height:1.45}
body.fm27-recruitment-page .fm27-deal-facts dt{color:#b7cce2}
body.fm27-recruitment-page .fm27-deal-facts dd{color:#f1f4ff}
@media(max-width:1100px){body.fm27-midnight .fm27-recruitment-primary{gap:10px 15px}body.fm27-midnight .fm27-recruitment-kicker{margin-right:15px}body.fm27-midnight .fm27-recruitment-stat{padding-left:10px}}
@media(max-width:720px){body.fm27-midnight .fm27-recruitment-primary{padding:10px 12px}body.fm27-midnight .fm27-recruitment-kicker{width:100%;min-width:0}body.fm27-midnight .fm27-recruitment-stat{flex:1 1 120px}body.fm27-midnight .fm27-recruitment-secondary{gap:3px}body.fm27-midnight .fm27-recruitment-secondary a{flex:1 1 auto;padding:8px;font-size:11px}body.fm27-squad-page .fm27-player-hero-v1073 .fm27-player-portrait{width:90px;height:105px;min-width:90px}body.fm27-recruitment-page .fm27-deal-facts{grid-template-columns:1fr;gap:4px;padding:12px}body.fm27-recruitment-page .fm27-deal-facts dd{margin-bottom:10px}}
@media(prefers-reduced-motion:reduce){body.fm27-midnight .fm27-recruitment-secondary a{transition:none}}
