/* FM27 R27.21.2 - compact 20-value player report, inspired by the familiar FM
   technical / mental / physical layout. Pure presentation: no gameplay changes. */
body.fm27-midnight .fm27-report-layout {grid-template-columns:minmax(240px,.8fr) minmax(0,2.25fr)}
body.fm27-midnight .fm27-r27212-report {display:grid;gap:13px;min-width:0}
body.fm27-midnight .fm27-r27212-overall {display:flex;justify-content:space-between;align-items:center;gap:8px;padding:6px 9px;border-bottom:1px solid rgba(172,191,217,.25)}
body.fm27-midnight .fm27-r27212-overall span {font-size:12px;color:#aebeda;font-weight:700}
body.fm27-midnight .fm27-r27212-overall strong {font-size:17px;color:#f1f5ff;font-variant-numeric:tabular-nums}
body.fm27-midnight .fm27-r27212-columns {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:clamp(8px,1vw,17px);min-width:0}
body.fm27-midnight .fm27-r27212-category {min-width:0}
body.fm27-midnight .fm27-r27212-category h4 {font-size:12px;font-weight:800;margin:0 0 6px;color:#e4e8f8;padding:0 4px 7px;border-bottom:1px solid rgba(160,181,212,.42)}
body.fm27-midnight .fm27-r27212-values {display:grid;gap:2px}
body.fm27-midnight .fm27-r27212-entry {min-height:28px;padding:3px 4px;display:grid;grid-template-columns:minmax(0,1fr) 29px;gap:4px;align-items:center;background:rgba(105,121,151,.10);border-left:2px solid transparent;border-radius:3px}
body.fm27-midnight .fm27-r27212-entry:nth-child(even) {background:rgba(112,132,160,.19)}
body.fm27-midnight .fm27-r27212-entry.is-primary {border-left-color:rgba(117,200,158,.78)}
body.fm27-midnight .fm27-r27212-name {min-width:0;font-size:11px;line-height:1.15;color:#dee5f2;overflow-wrap:anywhere}
body.fm27-midnight .fm27-r27212-score {display:block;text-align:right;font-size:13px;line-height:1.35;letter-spacing:.01em;font-variant-numeric:tabular-nums;font-weight:850;padding:1px 3px;border-radius:3px;background:rgba(17,25,43,.6)}
body.fm27-midnight .fm27-r27212-score.is-excellent {color:#64df8b}
body.fm27-midnight .fm27-r27212-score.is-good {color:#a6db69}
body.fm27-midnight .fm27-r27212-score.is-average {color:#f1cf70}
body.fm27-midnight .fm27-r27212-score.is-low {color:#d8a5a5}
@media(max-width:1120px) {
  body.fm27-midnight .fm27-report-layout {grid-template-columns:1fr}
  body.fm27-midnight .fm27-r27212-columns {gap:15px}
}
@media(max-width:630px) {
  body.fm27-midnight .fm27-r27212-columns {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  body.fm27-midnight .fm27-r27212-category:last-child {grid-column:1/-1}
  body.fm27-midnight .fm27-r27212-name {font-size:12px}
}
@media(max-width:410px) {
  body.fm27-midnight .fm27-r27212-columns {grid-template-columns:1fr}
  body.fm27-midnight .fm27-r27212-category:last-child {grid-column:auto}
}


/* R27.25.5 - streamlined two-block profile values: four gameplay-relevant skills plus fitness/morale. */
body.fm27-midnight .fm27-r27255-profile-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:clamp(8px,1vw,17px);min-width:0}
body.fm27-midnight .fm27-r27255-category{min-width:0}
body.fm27-midnight .fm27-r27255-category h4{font-size:12px;font-weight:800;margin:0 0 6px;color:#e4e8f8;padding:0 4px 7px;border-bottom:1px solid rgba(160,181,212,.42)}
body.fm27-midnight .fm27-r27255-values{display:grid;gap:2px}
body.fm27-midnight .fm27-r27255-entry{min-height:28px;padding:3px 4px;display:grid;grid-template-columns:minmax(0,1fr) 29px;gap:4px;align-items:center;background:rgba(105,121,151,.10);border-left:2px solid rgba(117,200,158,.78);border-radius:3px}
body.fm27-midnight .fm27-r27255-entry:nth-child(even){background:rgba(112,132,160,.19)}
body.fm27-midnight .fm27-r27255-name{min-width:0;font-size:11px;line-height:1.15;color:#dee5f2;overflow-wrap:anywhere}
body.fm27-midnight .fm27-r27255-score{display:block;text-align:right;font-size:13px;line-height:1.35;letter-spacing:.01em;font-variant-numeric:tabular-nums;font-weight:850;padding:1px 3px;border-radius:3px;background:rgba(17,25,43,.6)}
body.fm27-midnight .fm27-r27255-score.is-excellent{color:#64df8b}
body.fm27-midnight .fm27-r27255-score.is-good{color:#a6db69}
body.fm27-midnight .fm27-r27255-score.is-average{color:#f1cf70}
body.fm27-midnight .fm27-r27255-score.is-low{color:#d8a5a5}
body.fm27-midnight .fm27-r27255-values-compact{gap:10px}
body.fm27-midnight .fm27-r27255-meter{display:grid;gap:5px;padding:4px 2px}
body.fm27-midnight .fm27-r27255-meter-head{display:flex;justify-content:space-between;gap:8px;align-items:center;color:#dee5f2;font-size:11px}
body.fm27-midnight .fm27-r27255-meter-head strong{font-size:12px;color:#f5f9ff}
body.fm27-midnight .fm27-r27255-empty{min-height:1px}
@media(max-width:630px){body.fm27-midnight .fm27-r27255-profile-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}body.fm27-midnight .fm27-r27255-empty{display:none}}
@media(max-width:410px){body.fm27-midnight .fm27-r27255-profile-grid{grid-template-columns:1fr}}
