/* FM27 V10.63 – Managerportal, additive to V10.62 Midnight theme. No JavaScript. */
body.fm27-midnight .fm27-portal{max-width:1520px;margin-inline:auto;color:var(--fm-text);}
body.fm27-midnight .fm27-portal-feedback:empty{display:none;}
body.fm27-midnight .fm27-portal-eyebrow{font-size:.70rem;font-weight:790;letter-spacing:.11em;color:#c1acfc;}
body.fm27-midnight .fm27-portal-separator{opacity:.55;padding:0 .4rem;}
body.fm27-midnight .fm27-portal-identity{display:flex;justify-content:space-between;align-items:center;gap:1.8rem;padding:clamp(1.2rem,2.6vw,2.2rem);background:linear-gradient(115deg,#202344 0%,#202e47 49%,#171f37 100%);border:1px solid #4b486e;border-radius:20px;box-shadow:0 22px 50px #03091750;margin-bottom:1.3rem;}
body.fm27-midnight .fm27-portal-identity-left{display:flex;gap:1.25rem;align-items:center;min-width:0;}
body.fm27-midnight .fm27-portal-club-logo{display:grid;place-items:center;flex:0 0 94px;width:94px;height:94px;padding:10px;border-radius:18px;background:#11192d;border:1px solid #505879;}
body.fm27-midnight .fm27-portal-club-logo img{max-width:100%;max-height:100%;object-fit:contain;}
body.fm27-midnight .fm27-portal-club-logo>.bi{font-size:2.55rem;color:#bca6fd;}
body.fm27-midnight .fm27-portal-identity-copy{min-width:0;}
body.fm27-midnight .fm27-portal-identity-copy h1{font-size:clamp(1.6rem,2.35vw,2.45rem)!important;font-weight:790;margin:.4rem 0 .45rem;letter-spacing:-.045em;line-height:1.1;}
body.fm27-midnight .fm27-portal-identity-copy p{margin:0;color:#acb9d5;font-size:.91rem;}
body.fm27-midnight .fm27-portal-identity-right{display:flex;align-items:flex-end;flex-direction:column;gap:.55rem;flex:0 0 auto;}
body.fm27-midnight .fm27-portal-budget{display:flex;flex-direction:column;gap:.25rem;padding:.85rem 1.25rem;text-decoration:none;border-radius:11px;border:1px solid #4a5279;background:#111a2e;color:#eaf0fc;text-align:right;}
body.fm27-midnight .fm27-portal-budget span{font-size:.78rem;color:#acb9d5;}
body.fm27-midnight .fm27-portal-budget strong{font-size:1.3rem;letter-spacing:-.03em;color:#fff;white-space:nowrap;}
body.fm27-midnight .fm27-portal-identity-link,body.fm27-midnight .fm27-portal-unread{font-size:.81rem;text-decoration:none;color:#c7b2ff;}
body.fm27-midnight .fm27-portal-unread{color:#b5c4df;}
body.fm27-midnight .fm27-portal-grid{display:grid;gap:1.25rem;margin:0 0 1.25rem;}
body.fm27-midnight .fm27-portal-grid-primary{grid-template-columns:1.15fr .85fr;}
body.fm27-midnight .fm27-portal-grid-secondary{grid-template-columns:.83fr 1.17fr;}
body.fm27-midnight .fm27-portal-grid-bottom{grid-template-columns:1fr 1fr;}
body.fm27-midnight .fm27-portal-panel{min-width:0;background:var(--fm-card);border:1px solid var(--fm-divider);border-radius:17px;padding:clamp(1rem,2vw,1.6rem);box-shadow:0 12px 28px #00000020;}
body.fm27-midnight .fm27-portal-panel-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:.5rem;margin-bottom:1.15rem;}
body.fm27-midnight .fm27-portal-panel-heading h2{font-weight:760;font-size:1.21rem;margin:.35rem 0 0;letter-spacing:-.035em;}
body.fm27-midnight .fm27-portal-small-link{color:#bda8ff;font-size:.79rem;font-weight:620;text-decoration:none;white-space:nowrap;margin-top:.2rem;}
body.fm27-midnight .fm27-portal-small-link:hover{color:#e9ddff;text-decoration:underline;}
body.fm27-midnight .fm27-portal-empty{min-height:205px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;text-align:center;padding:1.1rem;border:1px dashed #4c5474;border-radius:13px;color:#aebad4;background:#141d31;}
body.fm27-midnight .fm27-portal-empty strong{color:#edf1fd;font-size:.97rem;}
body.fm27-midnight .fm27-portal-empty span{font-size:.85rem;max-width:340px;}
body.fm27-midnight .fm27-portal-empty-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:11px;background:#2e2950;color:#beacff;margin-bottom:.25rem;}
body.fm27-midnight .fm27-portal-empty-icon .bi{font-size:1.35rem;}
body.fm27-midnight .fm27-portal-empty a{color:#c6afff;text-decoration:none;font-weight:650;font-size:.84rem;margin-top:.4rem;}
body.fm27-midnight .fm27-portal-empty-compact{min-height:175px;}
body.fm27-midnight .fm27-portal-match-details{border:1px solid #4a516e;border-radius:13px;padding:1.3rem;background:#152038;}
body.fm27-midnight .fm27-portal-match-date{display:flex;gap:.45rem;align-items:center;flex-wrap:wrap;color:#b5c2da;font-size:.83rem;}
body.fm27-midnight .fm27-portal-match-type{color:#c1abff;margin-left:.4rem;}
body.fm27-midnight .fm27-portal-fixture{display:flex;align-items:center;gap:.9rem;flex-wrap:wrap;margin:1.3rem 0;font-size:1.12rem;font-weight:760;}
body.fm27-midnight .fm27-portal-fixture a{color:#eff1ff;text-decoration:none;}
body.fm27-midnight .fm27-portal-fixture-vs{font-size:.74rem;color:#a5b0c9;font-weight:600;}
body.fm27-midnight .fm27-portal-match-buttons{display:flex;gap:.6rem;flex-wrap:wrap;}
body.fm27-midnight .fm27-portal-actions{display:grid;gap:.5rem;}
body.fm27-midnight .fm27-portal-action{display:flex;align-items:center;gap:.8rem;padding:.72rem .8rem;border:1px solid #3c4863;border-radius:11px;text-decoration:none;color:#eff2ff;background:#1e2a43;}
body.fm27-midnight .fm27-portal-action:hover{background:#2c3154;border-color:#8570c1;color:white;}
body.fm27-midnight .fm27-portal-action-icon{display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;background:#342a54;border-radius:9px;color:#c3adff;}
body.fm27-midnight .fm27-portal-action>span:nth-child(2){display:flex;flex-direction:column;gap:.16rem;flex:1;min-width:0;}
body.fm27-midnight .fm27-portal-action strong{font-size:.88rem;}
body.fm27-midnight .fm27-portal-action small{font-size:.74rem;color:#aab8d2!important;}
body.fm27-midnight .fm27-portal-action>.bi{color:#a1afc8;font-size:.77rem;}
body.fm27-midnight .fm27-portal-footnote{color:#9daac5;font-size:.76rem;margin:1rem 0 0;line-height:1.5;}
body.fm27-midnight .fm27-portal-finance-list{display:grid;gap:.3rem;}
body.fm27-midnight .fm27-portal-finance-row{display:flex;align-items:center;justify-content:space-between;gap:.8rem;border-bottom:1px solid #37435d;padding:.8rem 0;font-size:.85rem;}
body.fm27-midnight .fm27-portal-finance-row>span{color:#b9c5dc;}
body.fm27-midnight .fm27-portal-finance-row strong{white-space:nowrap;font-variant-numeric:tabular-nums;}
body.fm27-midnight .fm27-portal-finance-row strong.is-negative{color:#ff96a5;}
body.fm27-midnight .fm27-portal-bottom-link{display:inline-block;margin-top:.8rem;text-decoration:none;font-size:.8rem;font-weight:650;color:#c9b5ff;}
body.fm27-midnight .fm27-portal-news-content .box{background:transparent;border:none;box-shadow:none;padding:0;margin:0;}
body.fm27-midnight .fm27-portal-news-content h4{display:none;}
body.fm27-midnight .fm27-portal-news-content ul{list-style:none;padding:0;margin:0;}
body.fm27-midnight .fm27-portal-news-content li{padding:.8rem 0;border-bottom:1px solid #37435d;font-size:.88rem;line-height:1.4;}
body.fm27-midnight .fm27-portal-news-content li small{display:block;margin-bottom:.2rem;color:#93a3c2!important;font-size:.72rem;}
body.fm27-midnight .fm27-portal-news-content li a{text-decoration:none;color:#e1e6f5;}
body.fm27-midnight .fm27-portal-news-content li a:hover{color:#cbb5ff;}
body.fm27-midnight .fm27-portal-news-content p{margin:.9rem 0 0;font-size:.82rem;}
body.fm27-midnight .fm27-portal-ajax{min-height:85px;}
body.fm27-midnight .fm27-portal-ajax .box{background:transparent;border:0;padding:0;box-shadow:none;}
body.fm27-midnight .fm27-portal-placeholder{color:#899bb9;font-size:.81rem;}

@media(max-width:1100px){body.fm27-midnight .fm27-portal-grid-primary,body.fm27-midnight .fm27-portal-grid-secondary{grid-template-columns:1fr 1fr;}}
@media(max-width:850px){body.fm27-midnight .fm27-portal-identity{align-items:flex-start;}body.fm27-midnight .fm27-portal-identity-right{align-items:flex-start;}body.fm27-midnight .fm27-portal-grid{grid-template-columns:1fr;}}
@media(max-width:620px){body.fm27-midnight .fm27-portal-identity{flex-direction:column;}body.fm27-midnight .fm27-portal-identity-left{gap:.85rem;}body.fm27-midnight .fm27-portal-club-logo{width:64px;height:64px;flex-basis:64px;border-radius:13px;}body.fm27-midnight .fm27-portal-identity-right{width:100%;}body.fm27-midnight .fm27-portal-budget{width:100%;text-align:left;}body.fm27-midnight .fm27-portal-panel-heading{flex-wrap:wrap;}body.fm27-midnight .fm27-portal-fixture{font-size:1rem;}}
@media(prefers-reduced-motion:reduce){body.fm27-midnight .fm27-portal a{scroll-behavior:auto!important;}}
