/* FM27 V10.85.29 – only the signed-in manager homepage. No left navigation. */
body.fm27-midnight .ws-app.fm27-app:has(#fm27-manager-portal){max-width:1980px;padding-inline:clamp(11px,1.4vw,26px)}
body.fm27-midnight .fm27-home-dashboard{width:100%;max-width:none;margin:0;color:#f3f6ff}
body.fm27-midnight .fm27-home-dashboard *{box-sizing:border-box}
body.fm27-midnight .fm27-home-dashboard .fmh-hero{display:flex;justify-content:space-between;align-items:center;gap:22px;min-height:122px;margin:0 0 12px;padding:14px 18px;background:radial-gradient(ellipse at 45% 0%,#1b3155 0%,transparent 70%),linear-gradient(110deg,#131f35,#101b2f);border:1px solid #293f60;border-radius:12px}
body.fm27-midnight .fmh-kicker{display:block;color:#72d9ad;font-size:.67rem;letter-spacing:.15em;font-weight:800;text-transform:uppercase}
body.fm27-midnight .fmh-intro h1{font-size:clamp(1.35rem,2.45vw,2rem);line-height:1.14;margin:7px 0 5px;color:#fff;letter-spacing:-.02em;font-weight:800}
body.fm27-midnight .fmh-intro p{margin:0;color:#adbfdc;font-size:.88rem}
body.fm27-midnight .fmh-hero-status{display:flex;align-items:center;gap:20px;font-size:.83rem}
body.fm27-midnight .fmh-hero-status a{color:#dce7fb;text-decoration:none}
body.fm27-midnight .fmh-hero-status a:hover{color:#65e3ac}
body.fm27-midnight .fmh-hero-club{display:flex;gap:11px;align-items:center}
body.fm27-midnight .fmh-hero-club img{height:44px;width:44px;object-fit:contain}
body.fm27-midnight .fmh-hero-club span,body.fm27-midnight .fmh-hero-next{display:flex;flex-direction:column;gap:4px}
body.fm27-midnight .fmh-hero-club small{color:#9cb2d0;font-size:.7rem}
body.fm27-midnight .fmh-hero-next{padding-left:20px;border-left:1px solid #415476;color:#a2b6d3;font-size:.71rem}
body.fm27-midnight .fmh-hero-next strong{color:#edf4ff;font-size:.83rem}
body.fm27-midnight .fmh-top,body.fm27-midnight .fmh-bottom{display:grid;gap:10px;margin-bottom:10px;align-items:stretch}
body.fm27-midnight .fmh-top{grid-template-columns:minmax(0,1.04fr) minmax(0,1.06fr) minmax(0,1fr)}
body.fm27-midnight .fmh-bottom{grid-template-columns:minmax(0,1.05fr) minmax(0,1.05fr) minmax(0,1fr) minmax(0,1.04fr)}
body.fm27-midnight .fmh-panel{min-width:0;overflow:hidden;background:linear-gradient(162deg,#122139,#0c192f);border:1px solid #354f79;border-radius:10px;box-shadow:0 7px 22px rgba(0,0,0,.14);padding:0;display:flex;flex-direction:column}
body.fm27-midnight .fmh-panel-head{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:47px;padding:11px 15px;margin:0;border-bottom:1px solid #2d4264;background:linear-gradient(105deg,#172942,#14233b)}
body.fm27-midnight .fmh-panel-head a{text-decoration:none}
body.fm27-midnight .fmh-panel-title{display:inline-flex;gap:7px;align-items:center;color:#f1f5ff;font-size:.91rem;font-weight:850;text-transform:uppercase;letter-spacing:.012em;line-height:1.25}
body.fm27-midnight .fmh-panel-title .bi{color:#afc5e7;font-size:.69rem}
body.fm27-midnight .fmh-panel-title:hover{color:#52e9a6}
body.fm27-midnight .fmh-head-link{color:#a9bfe5;font-size:.72rem;white-space:nowrap}
body.fm27-midnight .fmh-head-link:hover{color:#fff}
body.fm27-midnight .fmh-competition{display:inline-flex;align-items:center;gap:6px;min-width:0;color:#b9d0ec;font-size:.71rem;text-align:right}
body.fm27-midnight .fmh-competition img{width:21px;height:21px;object-fit:contain}
body.fm27-midnight .fmh-next{min-height:380px}
body.fm27-midnight .fmh-fixture-main{display:grid;grid-template-columns:minmax(0,1fr) 32px minmax(0,1fr);align-items:center;gap:6px;padding:29px 15px 12px;flex:1}
body.fm27-midnight .fmh-team{min-width:0;display:flex;align-items:center;flex-direction:column;gap:7px;text-decoration:none;text-align:center;color:#f5f9ff}
body.fm27-midnight .fmh-team:hover strong{color:#4ce39c}
body.fm27-midnight .fmh-team-logo{display:grid;place-items:center;width:90px;height:90px;background:transparent!important;box-shadow:none!important;border:0!important;padding:0!important}
body.fm27-midnight .fmh-team-logo img{width:100%;height:100%;object-fit:contain}
body.fm27-midnight .fmh-team-logo .bi{font-size:2.5rem;color:#759abe}
body.fm27-midnight .fmh-team strong{display:block;font-size:clamp(.74rem,.88vw,.95rem);line-height:1.25;overflow-wrap:anywhere}
body.fm27-midnight .fmh-team small{color:#adbed8;font-size:.72rem}
body.fm27-midnight .fmh-vs{font-size:1.05rem;color:#b5c8e7;font-weight:800;text-align:center}
body.fm27-midnight .fmh-fixture-meta{display:flex;justify-content:center;align-items:center;gap:9px;color:#c1d2e8;font-size:.81rem;padding:4px 14px;text-align:center}
body.fm27-midnight .fmh-fixture-meta .bi{color:#9ebbf3;font-size:.9rem}
body.fm27-midnight .fmh-primary{display:flex;align-items:center;justify-content:center;gap:10px;background:#32df94;color:#032516;font-weight:800;text-decoration:none;padding:13px 10px;border-radius:7px;margin:19px 15px 15px;min-height:42px}
body.fm27-midnight .fmh-primary:hover{color:#002c15;background:#67f6af}
body.fm27-midnight .fmh-live{min-height:380px}
body.fm27-midnight .fmh-live-content{display:flex;flex:1;flex-direction:column;padding:4px 15px 10px}
body.fm27-midnight .fmh-live-row{display:grid;grid-template-columns:54px minmax(0,1fr);gap:9px;min-height:60px;align-items:center;color:#ebf3ff;text-decoration:none;border-bottom:1px solid rgba(81,106,145,.29);padding:5px 0}
body.fm27-midnight .fmh-live-row:last-child{border-bottom:0}
body.fm27-midnight .fmh-live-row:hover{color:#59e4ab}
body.fm27-midnight .fmh-minute{display:inline-grid;place-items:center;background:linear-gradient(#155c49,#0e443d);color:#b0ffda;border:1px solid #25c57b;border-radius:5px;padding:7px 3px;font-size:.77rem;font-weight:800;font-variant-numeric:tabular-nums}
body.fm27-midnight .fmh-live-match{display:flex;flex-direction:column;min-width:0;gap:2px}
body.fm27-midnight .fmh-live-teams{display:grid;grid-template-columns:minmax(0,1fr) 56px minmax(0,1fr);gap:4px;align-items:center}
body.fm27-midnight .fmh-live-team{display:flex;align-items:center;min-width:0;gap:5px;font-size:.73rem;font-weight:700}
body.fm27-midnight .fmh-live-team.is-home{justify-content:flex-end;text-align:right}
body.fm27-midnight .fmh-live-team.is-away{justify-content:flex-start}
body.fm27-midnight .fmh-live-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.fm27-midnight .fmh-live-team img{height:24px;width:24px;flex:0 0 24px;object-fit:contain}
body.fm27-midnight .fmh-score{font-size:.97rem;text-align:center;white-space:nowrap;font-variant-numeric:tabular-nums}
body.fm27-midnight .fmh-live-match>small{color:#91aacf;text-align:center;font-size:.68rem}
body.fm27-midnight .fmh-finance{min-height:380px}
body.fm27-midnight .fmh-finance-list{padding:7px 13px;flex:1;display:flex;flex-direction:column}
body.fm27-midnight .fmh-finance-item{min-width:0;display:grid;grid-template-columns:35px minmax(0,1fr) auto;gap:8px;align-items:center;border-bottom:1px solid rgba(85,111,149,.30);flex:1;padding:7px 0;font-size:.8rem}
body.fm27-midnight .fmh-finance-item:last-child{border-bottom:0}
body.fm27-midnight .fmh-finance-item>.bi{width:33px;height:33px;display:grid;place-items:center;border-radius:8px;background:#1c3053;border:1px solid #385580;color:#9cb9f1;font-size:1rem}
body.fm27-midnight .fmh-finance-item span{color:#c2d0e5}
body.fm27-midnight .fmh-finance-item span small{display:block;color:#869ec1;font-size:.66rem}
body.fm27-midnight .fmh-finance-item strong{color:#f9fbff;font-size:.82rem;text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
body.fm27-midnight .fmh-financial-health{display:flex;align-items:center;gap:11px;margin:4px 12px 13px;padding:10px 11px;background:#142742;border:1px solid #344c72;border-radius:9px;font-size:.75rem}
body.fm27-midnight .fmh-financial-health>.bi{color:#31df98;font-size:1.65rem}
body.fm27-midnight .fmh-financial-health>span{display:flex;flex-direction:column;gap:4px}
body.fm27-midnight .fmh-financial-health>span small{color:#9cb1cc}
body.fm27-midnight .fmh-financial-health>span strong{color:#42e5a0;font-size:1.05rem}
body.fm27-midnight .fmh-financial-health>small{margin-left:auto;max-width:45%;color:#aabbd5}
body.fm27-midnight .fmh-bottom .fmh-panel{min-height:355px}
body.fm27-midnight .fmh-news-placeholder{flex:1;display:flex;align-items:flex-start;justify-content:center;flex-direction:column;gap:11px;padding:24px 20px;color:#afc1df}
body.fm27-midnight .fmh-news-placeholder>.bi{font-size:1.65rem;color:#5bdaa1}
body.fm27-midnight .fmh-news-placeholder h3{font-size:1rem;color:#f2f7ff;margin:0}
body.fm27-midnight .fmh-news-placeholder p{font-size:.85rem;line-height:1.6;margin:0}
body.fm27-midnight .fmh-news-placeholder>span{color:#6fdca5;font-size:.75rem}
body.fm27-midnight .fmh-form{display:flex;gap:9px;justify-content:space-around;padding:14px 12px 8px}
body.fm27-midnight .fmh-form-chip{display:inline-grid;place-items:center;border-radius:5px;min-width:30px;height:29px;padding:0 6px;font-weight:800;font-size:.77rem;background:#263956;color:#b5c7e4}
body.fm27-midnight .fmh-form-S{background:#24d78a;color:#093522}
body.fm27-midnight .fmh-form-U{background:#607caa;color:#fff}
body.fm27-midnight .fmh-form-N{background:#ac5062;color:#fff}
body.fm27-midnight .fmh-recent-list{display:flex;flex-direction:column;padding:2px 10px 10px}
body.fm27-midnight .fmh-result-row{display:grid;grid-template-columns:64px 22px minmax(0,1fr) 43px 26px;gap:6px;align-items:center;padding:8px 4px;color:#e4edff;text-decoration:none;border-bottom:1px solid rgba(84,115,162,.25)}
body.fm27-midnight .fmh-result-row:hover{color:#42dfa0}
body.fm27-midnight .fmh-result-row:last-child{border:0}
body.fm27-midnight .fmh-result-row time{color:#92aaca;font-size:.66rem}
body.fm27-midnight .fmh-result-row img{width:21px;height:21px;object-fit:contain}
body.fm27-midnight .fmh-result-club{min-width:0;display:flex;flex-direction:column;gap:3px}
body.fm27-midnight .fmh-result-club strong{font-size:.73rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
body.fm27-midnight .fmh-result-club small{font-size:.65rem;color:#90a8cc;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.fm27-midnight .fmh-result-score{text-align:center;white-space:nowrap;font-size:.75rem;font-weight:750}
body.fm27-midnight .fmh-result-row .fmh-form-chip{min-width:25px;height:25px;font-size:.68rem}
body.fm27-midnight .fmh-squad-summary{padding:8px 14px}
body.fm27-midnight .fmh-squad-summary>div{display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:8px;padding:8px 0;border-bottom:1px solid rgba(84,115,162,.27);font-size:.72rem}
body.fm27-midnight .fmh-squad-summary>div>.bi{display:grid;place-items:center;border-radius:6px;background:#233557;color:#9fbded;width:27px;height:27px;font-size:.92rem}
body.fm27-midnight .fmh-squad-summary>div span{color:#b6c8e4}
body.fm27-midnight .fmh-squad-summary>div strong{color:#fff;font-size:.83rem;white-space:nowrap}
body.fm27-midnight .fmh-squad-summary>div small{grid-column:2/4;color:#9cb0c9;font-size:.66rem;margin-top:-5px}
body.fm27-midnight .fmh-subtitle{display:flex;justify-content:space-between;color:#abc4e5;font-size:.69rem;padding:10px 13px 6px;border-bottom:1px solid rgba(84,115,162,.22)}
body.fm27-midnight .fmh-subtitle span{font-size:.61rem;color:#8da6ca}
body.fm27-midnight .fmh-top-players{padding:2px 11px 10px;display:flex;flex-direction:column}
body.fm27-midnight .fmh-top-player{display:grid;grid-template-columns:32px minmax(0,1fr) auto;gap:7px;align-items:center;padding:6px 0;text-decoration:none;color:#eff5ff;font-size:.69rem}
body.fm27-midnight .fmh-top-player:hover{color:#4cdea3}
body.fm27-midnight .fmh-top-player img,body.fm27-midnight .fmh-top-player>.bi{width:30px;height:32px;object-fit:cover;object-position:center top;border-radius:5px;background:#253754}
body.fm27-midnight .fmh-top-player strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.fm27-midnight .fmh-top-player span{color:#c3d1e8;font-variant-numeric:tabular-nums}
body.fm27-midnight .fmh-right-stack{min-width:0;display:flex;flex-direction:column;gap:10px}
body.fm27-midnight .fmh-right-stack .fmh-panel{min-height:0;flex:1}
body.fm27-midnight .fmh-incident{display:grid;grid-template-columns:35px minmax(0,1fr) 10px;gap:8px;align-items:center;padding:8px 13px;color:#ecf3ff;text-decoration:none;border-bottom:1px solid rgba(84,115,162,.23);font-size:.75rem}
body.fm27-midnight .fmh-incident:hover{color:#49e1a5}
body.fm27-midnight .fmh-incident>img,body.fm27-midnight .fmh-incident>.bi:first-child{width:33px;height:35px;object-fit:cover;object-position:top;border-radius:5px;background:#283b5b}
body.fm27-midnight .fmh-incident span{display:flex;flex-direction:column;gap:3px;min-width:0}
body.fm27-midnight .fmh-incident span strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.fm27-midnight .fmh-incident span small{color:#a3b6ce;font-size:.66rem}
body.fm27-midnight .fmh-incident>.bi:last-child{color:#7996bc;font-size:.65rem}
body.fm27-midnight .fmh-incident .is-injured{color:#ff6378}
body.fm27-midnight .fmh-incident .is-blocked{color:#ffda5d}
body.fm27-midnight .fmh-calendar-row{display:grid;grid-template-columns:58px 20px minmax(0,1fr) 41px;align-items:center;gap:6px;padding:7px 11px;border-bottom:1px solid rgba(84,115,162,.2);color:#e8f0ff;text-decoration:none;font-size:.69rem}
body.fm27-midnight .fmh-calendar-row:hover{color:#52e2a7}
body.fm27-midnight .fmh-calendar-row time{white-space:nowrap;color:#a3b9d7;font-size:.65rem}
body.fm27-midnight .fmh-calendar-row img{height:19px;width:19px;object-fit:contain}
body.fm27-midnight .fmh-calendar-row span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.fm27-midnight .fmh-calendar-row span small{display:block;color:#839fcb;font-size:.63rem;overflow:hidden;text-overflow:ellipsis}
body.fm27-midnight .fmh-calendar-row>strong{text-align:right;font-size:.67rem}
body.fm27-midnight .fmh-empty{display:flex;flex:1;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:9px;padding:20px 14px;color:#a8bcd9;min-height:160px}
body.fm27-midnight .fmh-empty .bi{font-size:1.5rem;color:#76c4e6}
body.fm27-midnight .fmh-empty strong{color:#f0f6ff;font-size:.87rem}
body.fm27-midnight .fmh-empty span{font-size:.76rem;line-height:1.45}
body.fm27-midnight .fmh-large-empty{min-height:240px}
body.fm27-midnight .fmh-quiet-link{text-align:center;color:#90e4bd;text-decoration:none;padding:0 10px 16px;font-size:.8rem}
body.fm27-midnight .fmh-inline-empty{padding:15px 13px;margin:0;color:#a6bad6;font-size:.73rem;line-height:1.5}
body.fm27-midnight .fmh-inline-empty.fmh-clean{display:flex;align-items:center;gap:8px}
body.fm27-midnight .fmh-inline-empty.fmh-clean .bi{color:#32de96}
body.fm27-midnight .fmh-no-club{padding:28px;border:1px solid #385079;border-radius:12px;background:#16283f}
@media(max-width:1340px){body.fm27-midnight .fmh-bottom{grid-template-columns:repeat(2,minmax(0,1fr))}body.fm27-midnight .fmh-top{grid-template-columns:repeat(3,minmax(0,1fr))}body.fm27-midnight .fmh-team-logo{width:72px;height:72px}body.fm27-midnight .fmh-live-team{font-size:.67rem}body.fm27-midnight .fmh-live-team img{width:18px;height:18px;flex-basis:18px}}
@media(max-width:980px){body.fm27-midnight .fmh-top{grid-template-columns:repeat(2,minmax(0,1fr))}body.fm27-midnight .fmh-finance{grid-column:1/-1;min-height:0}body.fm27-midnight .fmh-finance-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}body.fm27-midnight .fmh-finance-item{padding:13px 0}body.fm27-midnight .fmh-hero{flex-wrap:wrap}}
@media(max-width:680px){body.fm27-midnight .fmh-top,body.fm27-midnight .fmh-bottom{grid-template-columns:minmax(0,1fr)}body.fm27-midnight .fmh-finance-list{display:flex}body.fm27-midnight .fmh-hero{min-height:0;padding:14px}body.fm27-midnight .fmh-hero-status{flex-wrap:wrap;gap:9px}body.fm27-midnight .fmh-hero-next{padding-left:0;border-left:0}body.fm27-midnight .fmh-team-logo{width:80px;height:80px}body.fm27-midnight .fmh-next,body.fm27-midnight .fmh-live{min-height:0}body.fm27-midnight .fmh-panel-head{padding:10px 12px}body.fm27-midnight .fmh-panel-title{font-size:.84rem}body.fm27-midnight .fmh-head-link{font-size:.65rem}body.fm27-midnight .fmh-financial-health>small{font-size:.68rem}}
@media(prefers-reduced-motion:reduce){body.fm27-midnight .fm27-home-dashboard *{transition:none!important}}
