/* FM27 R27.36 – dashboard/read-only UI polish only. Loaded after R27.35. */
/* Smaller information-dense cards; avoid a very tall news column stretching other cards. */
body.fm27-midnight .fm27-home-dashboard .fmh-top>.fmh-panel{min-height:0!important;}
body.fm27-midnight .fm27-home-dashboard .fmh-live-row{min-height:49px;padding:4px 0;}
body.fm27-midnight .fm27-home-dashboard .fmh-live-content{padding:4px 13px 8px;}
body.fm27-midnight .fm27-home-dashboard .fmh-finance-list{flex:0 0 auto;padding:4px 12px;}
body.fm27-midnight .fm27-home-dashboard .fmh-finance-item{flex:0 0 auto;min-height:46px;padding:5px 0;}
body.fm27-midnight .fm27-home-dashboard .fmh-financial-health{min-height:0;display:grid;grid-template-columns:22px minmax(105px,auto) minmax(0,1fr);align-items:center;gap:8px;margin:4px 11px 9px;padding:7px 9px;}
body.fm27-midnight .fm27-home-dashboard .fmh-financial-health>.bi{font-size:1.3rem;}
body.fm27-midnight .fm27-home-dashboard .fmh-financial-health>span{gap:1px;}
body.fm27-midnight .fm27-home-dashboard .fmh-financial-health>span strong{font-size:.83rem;line-height:1.2;}
body.fm27-midnight .fm27-home-dashboard .fmh-financial-health>small{margin-left:0;max-width:none;font-size:.65rem;text-align:right;line-height:1.3;}
body.fm27-midnight .fm27-home-dashboard .fmh-bottom{align-items:start;}
body.fm27-midnight .fm27-home-dashboard .fmh-bottom>.fmh-panel{min-height:0;height:auto;}
body.fm27-midnight .fm27-home-dashboard .fmh-right-stack{align-self:start;gap:9px;}
body.fm27-midnight .fm27-home-dashboard .fmh-right-stack .fmh-panel{min-height:0;flex:0 0 auto;}
body.fm27-midnight .fm27-home-dashboard .fmh-editorial-card{padding:6px 0;gap:8px;}
body.fm27-midnight .fm27-home-dashboard .fmh-editorial-card img{height:60px;}
body.fm27-midnight .fm27-home-dashboard .fmh-editorial-copy{gap:2px;}
body.fm27-midnight .fm27-home-dashboard .fmh-editorial-copy strong{line-height:1.22;}
body.fm27-midnight .fm27-home-dashboard .fmh-editorial-copy>span{-webkit-line-clamp:1;line-height:1.3;}
body.fm27-midnight .fm27-home-dashboard .fmh-form{padding:10px 9px 5px;}
body.fm27-midnight .fm27-home-dashboard .fmh-result-row{min-height:45px;}
/* Compact structured scorer stats, not a cryptic three-number string. */
body.fm27-midnight .fm27-home-dashboard .fmh-subtitle{display:flex;justify-content:space-between;align-items:center;gap:5px;}
body.fm27-midnight .fm27-home-dashboard .fmh-top-stats-heading,body.fm27-midnight .fm27-home-dashboard .fmh-player-stats{display:grid;grid-template-columns:repeat(3,40px);gap:4px;align-items:center;flex:0 0 auto;font-variant-numeric:tabular-nums;}
body.fm27-midnight .fm27-home-dashboard .fmh-top-stats-heading b{font-size:.6rem;font-weight:600;color:#9cb5d6;text-align:center;}
body.fm27-midnight .fm27-home-dashboard .fmh-top-player{grid-template-columns:32px minmax(0,1fr) auto;gap:8px;padding:5px 0;}
body.fm27-midnight .fm27-home-dashboard .fmh-player-stats b{font-size:.7rem;font-weight:750;text-align:center;color:#e1edff;background:#20334e;border:1px solid #33496c;border-radius:5px;padding:5px 1px;}
body.fm27-midnight .fm27-home-dashboard .fmh-player-stats b:first-child{color:#64e3ba;}
body.fm27-midnight .fm27-home-dashboard .fmh-player-stats b:last-child{color:#e1c9ff;}
body.fm27-midnight .fm27-home-dashboard .fmh-comp-round{display:inline-block;color:#ebf2ff;font-weight:800;margin-left:5px;white-space:nowrap;}
/* Transfer status stays first above fixtures, with exact next open/close date if configured. */
body.fm27-midnight .fm27-home-dashboard .fmh-transfer-phase{display:flex;align-items:center;min-height:60px;gap:10px;margin:8px 10px 4px;padding:9px 11px;}
body.fm27-midnight .fm27-home-dashboard .fmh-transfer-phase>span:nth-child(2){min-width:0;flex:1;}
body.fm27-midnight .fm27-home-dashboard .fmh-transfer-phase .fmh-phase-date{margin-top:3px;color:#b8cbea;font-weight:600;white-space:normal;line-height:1.2;}
/* Shared subdued league-type mark until actual competition branding is supplied. */
body.fm27-midnight .fm27-r2736-results-comp{vertical-align:middle;object-fit:contain;display:inline-block;flex:0 0 auto;margin-right:5px;}
body.fm27-midnight .fm27-w79-league-option{display:flex;align-items:center;}
/* Settings drawer visual refactor, keeping original Bootstrap offcanvas and all controls. */
body.fm27-midnight .fm27-r2736-settings{--bs-offcanvas-width:min(400px,100vw);--bs-offcanvas-bg:#121d31;background:linear-gradient(165deg,#1b233e,#101b30 64%);border-left:1px solid #41587b;box-shadow:-20px 0 55px rgba(0,0,0,.4);}
body.fm27-midnight .fm27-r2736-settings .offcanvas-header{background:linear-gradient(105deg,#2d2651,#1d2c49)!important;border-bottom:1px solid #4b527f;padding:19px 22px;}
body.fm27-midnight .fm27-r2736-settings .offcanvas-title{font-size:1.02rem;letter-spacing:.008em;}
body.fm27-midnight .fm27-r2736-settings .offcanvas-title .bi{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:#3f346a;color:#dfcdfd;}
body.fm27-midnight .fm27-r2736-settings .offcanvas-body{padding:15px;}
body.fm27-midnight .fm27-r2736-settings .ws-sidebar-usercard{border-radius:13px;background:linear-gradient(135deg,#232d4b,#181f36);border:1px solid #44597b;box-shadow:0 9px 24px rgba(0,0,0,.2);padding:15px;}
body.fm27-midnight .fm27-r2736-settings .ws-sidebar-account-row,body.fm27-midnight .fm27-r2736-settings .ws-sidebar-inbox-link,body.fm27-midnight .fm27-r2736-settings .ws-sidebar-profile-link{border-radius:9px;background:#202f4b;border:1px solid #3f5274;transition:background .15s,border-color .15s;}
body.fm27-midnight .fm27-r2736-settings .ws-sidebar-account-row:hover,body.fm27-midnight .fm27-r2736-settings .ws-sidebar-inbox-link:hover,body.fm27-midnight .fm27-r2736-settings .ws-sidebar-profile-link:hover{background:#2d3d61;border-color:#8d79e0;}
body.fm27-midnight .fm27-r2736-settings .fm27-logout{border-radius:9px;background:#2a2847;border:1px solid #57517c;}
@media(max-width:1200px){body.fm27-midnight .fm27-home-dashboard .fmh-financial-health{grid-template-columns:22px minmax(0,1fr);}body.fm27-midnight .fm27-home-dashboard .fmh-financial-health>small{grid-column:2;text-align:left;}}
@media(max-width:480px){body.fm27-midnight .fm27-home-dashboard .fmh-top-stats-heading,body.fm27-midnight .fm27-home-dashboard .fmh-player-stats{grid-template-columns:repeat(3,31px);gap:2px;}body.fm27-midnight .fm27-home-dashboard .fmh-subtitle{font-size:.65rem;}body.fm27-midnight .fm27-home-dashboard .fmh-top-stats-heading b{font-size:.53rem;}body.fm27-midnight .fm27-home-dashboard .fmh-financial-health{grid-template-columns:20px minmax(0,1fr);}}

body.fm27-midnight .fm27-home-dashboard .fmh-inline-competition{display:inline-flex;align-items:center;justify-content:center;gap:4px;white-space:normal;min-width:0;line-height:1.2;}
body.fm27-midnight .fm27-home-dashboard .fmh-inline-competition img{height:15px;width:15px;object-fit:contain;display:inline-block;flex:0 0 15px;}
body.fm27-midnight .fm27-home-dashboard .fmh-calendar-row .fmh-inline-competition{justify-content:flex-start;}
body.fm27-midnight .fm27-home-dashboard .fmh-calendar-row .fmh-inline-competition img{height:13px;width:13px;flex:0 0 13px;}
