/* Football Bartar v5.92 — reference dashboard layout.
   Structural cards and all club/team logos intentionally stay untouched. */
:root{
  --ref-line:rgba(72,222,200,.2);
  --ref-line-strong:rgba(65,235,207,.42);
  --ref-card:linear-gradient(145deg,rgba(8,25,33,.94),rgba(3,15,22,.9));
  --ref-soft:rgba(10,38,45,.66);
  --ref-cyan:#35e4c0;
}

.fb-reference-dashboard .page>.wrap{align-items:start}
.fb-ref-page-head{
  grid-column:1/-1!important;display:flex;align-items:center;gap:13px;min-width:0;
  margin:0 0 2px;padding:7px 4px 15px;border-bottom:1px solid var(--ref-line)
}
.fb-ref-page-icon{
  width:42px;height:42px;flex:0 0 42px;display:grid;place-items:center;border-radius:50%;
  color:var(--ref-cyan);background:radial-gradient(circle at 35% 30%,rgba(53,228,192,.19),rgba(8,35,39,.78));
  border:1px solid rgba(53,228,192,.25);box-shadow:inset 0 0 18px rgba(53,228,192,.08),0 10px 25px rgba(0,0,0,.22)
}
.fb-ref-page-icon svg{width:22px;height:22px}
.fb-ref-page-copy{min-width:0}.fb-ref-page-copy h1{margin:0;color:#ecfffb;font-size:clamp(19px,2vw,27px);line-height:1.35}
.fb-ref-page-copy p{margin:4px 0 0;color:var(--ts);font-size:10px;line-height:1.8}
.fb-ref-page-kicker{display:block;margin-bottom:1px;color:var(--ref-cyan);font-size:8px;font-weight:900;letter-spacing:1.7px}
.fb-ref-page-lines{margin-inline-start:auto;display:grid;gap:5px;width:82px;opacity:.7}
.fb-ref-page-lines i{display:block;height:2px;border-radius:4px;background:linear-gradient(90deg,transparent,var(--ref-cyan))}
.fb-ref-page-lines i:nth-child(2){width:70%;margin-inline-start:auto}.fb-ref-page-lines i:nth-child(3){width:42%;margin-inline-start:auto}

.fb-reference-dashboard .pnl,
.fb-reference-dashboard .profile-centre,
.fb-reference-dashboard .disc-skin-picker,
.fb-reference-dashboard .fb-hub-card{
  background:var(--ref-card);border-color:var(--ref-line);border-radius:13px;
  box-shadow:0 16px 38px rgba(0,0,0,.24),inset 0 1px rgba(255,255,255,.025)
}
.fb-reference-dashboard .pnl:hover,.fb-reference-dashboard .fb-hub-card:hover{border-color:rgba(70,228,201,.35)}
.fb-reference-dashboard .ph{min-height:46px;padding:9px 13px;background:linear-gradient(90deg,rgba(9,34,41,.72),rgba(2,14,20,.45));border-bottom-color:rgba(68,216,193,.13)}
.fb-reference-dashboard .ph .pt{display:inline-flex;align-items:center;gap:8px;color:#dffff8;font-weight:800}
.fb-reference-dashboard .ph .pt>span:first-child{
  width:28px;height:28px;display:inline-grid!important;place-items:center;border-radius:50%;
  background:rgba(38,220,184,.08);border:1px solid rgba(53,228,192,.17);color:var(--ref-cyan)
}
.fb-reference-dashboard .ph .pt>span:first-child svg{width:15px;height:15px}
.fb-reference-dashboard .cs,.fb-reference-dashboard .tm-stat,.fb-reference-dashboard .fcard,.fb-reference-dashboard .stcard,.fb-reference-dashboard .upgrow,.fb-reference-dashboard .ally-card{
  background:linear-gradient(145deg,rgba(10,36,42,.7),rgba(3,17,23,.74));border-color:rgba(70,220,196,.14)
}
.fb-reference-dashboard .cs{position:relative;overflow:hidden;min-height:70px;display:flex;flex-direction:column;align-items:center;justify-content:center}
.fb-reference-dashboard .cs:after{content:"";position:absolute;inset:auto 14% 0;height:2px;background:linear-gradient(90deg,transparent,var(--ref-cyan),transparent);opacity:.55}
.fb-reference-dashboard .cs .v{font-variant-numeric:tabular-nums}

/* Home: compact two-column command dashboard. */
#page-home>.wrap{grid-template-columns:minmax(0,1.5fr) minmax(320px,.72fr)!important;gap:14px!important;max-width:1500px}
#page-home>.wrap>.fb-wide-column{grid-column:auto!important;width:auto!important}
#page-home>.wrap>div:not(.rcol):not(.fb-ref-page-head){grid-column:1;min-width:0}
#page-home>.wrap>.rcol{grid-column:2;min-width:0;align-self:start}
#page-home .dstrip{padding:9px!important;gap:6px!important;background:transparent!important}
#page-home .dstrip .dc{min-width:70px!important;min-height:67px!important;padding:8px 5px!important;border-radius:9px!important}
#page-home .dstrip .dn{font-size:17px!important}
#page-home .matchcard.fb-home-selected-match{min-height:286px!important;margin:8px!important;padding:15px!important;background-position:center 56%!important}
#page-home .fb-match-layout{min-height:250px!important}
#page-home .news-poster-grid{gap:8px!important}
#page-home .news-poster{min-height:108px!important;border-radius:10px!important}
#page-home .news-poster.featured{min-height:188px!important}
#page-home .league-home-table tbody tr:nth-child(n+7){display:none}
#page-home .league-home-table-scroll{max-height:365px;overflow:auto}
#page-home .league-home-table{min-width:0!important;width:100%!important;table-layout:auto!important;font-size:10px!important}
#page-home .league-home-table th,#page-home .league-home-table td{padding:7px 5px!important}
#page-home .league-home-table th:nth-child(n+4):not(:last-child),#page-home .league-home-table td:nth-child(n+4):not(:last-child){display:none!important}
#page-home .league-home-table th:nth-child(2),#page-home .league-home-table td:nth-child(2){width:auto!important;max-width:154px}
#page-home .chat-area{height:210px!important;max-height:210px!important}

/* Team management: pitch and controls beside a compact squad rail. */
#page-team>#team-tab-lineup{min-height:0!important;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(300px,360px);gap:14px;align-items:start;max-width:1500px;margin-inline:auto}
#page-team>#team-tab-lineup>.fb-ref-page-head{grid-column:1/-1;grid-row:1;margin-bottom:0}
#page-team>#team-tab-lineup>#disc-team-v40{grid-column:1;grid-row:2;min-width:0;margin:0}
#page-team>#team-tab-lineup>#tm-pro-root{grid-column:1/-1;grid-row:3;width:100%;margin:0}
#page-team>#team-tab-lineup>.wrap{grid-column:2;grid-row:2;display:block!important;width:auto!important;min-width:0;margin:0!important;padding:0!important}
#page-team>#team-tab-lineup>.wrap>.fb-ref-page-head,
#page-team>#team-tab-lineup>.wrap>div:not(.rcol):not(#team-injuries-panel){display:none!important}
#page-team>#team-tab-lineup>.wrap>.rcol{display:block!important;width:auto!important;min-width:0;margin:0!important}
#page-team>#team-tab-lineup>.wrap>#team-injuries-panel{margin-top:14px!important}
#page-team>#team-tab-lineup>.wrap .squad-list{grid-template-columns:1fr!important;max-height:720px;overflow:auto}
#page-team>.wrap{grid-template-columns:minmax(0,1fr) minmax(300px,370px)!important;gap:14px!important;max-width:1500px}
#page-team>.wrap>.fb-wide-column{grid-column:auto!important;width:auto!important}
#page-team>.wrap>div:not(.rcol):not(.fb-ref-page-head){grid-column:1;min-width:0}
#page-team>.wrap>.rcol{grid-column:2!important;min-width:0;align-self:start}
#page-team>.wrap>#team-injuries-panel{grid-column:1/-1!important}
#page-team .team-club-status-panel .csgrid{grid-template-columns:repeat(3,1fr)}
#page-team .field{border-radius:12px!important;box-shadow:inset 0 0 70px rgba(0,0,0,.3),0 16px 30px rgba(0,0,0,.18)!important}
#page-team .squad-list{grid-template-columns:1fr!important;max-height:760px;overflow:auto;padding-inline-end:3px}

/* Stadium: summary and controls on the left, live growth chart on the right. */
#page-stadium>.wrap{grid-template-columns:minmax(0,1fr) minmax(300px,360px)!important;gap:14px!important;max-width:1500px}
#page-stadium>.wrap>.fb-wide-column{grid-column:auto!important;width:auto!important}
#page-stadium>.wrap>div:not(.rcol):not(.fb-ref-page-head){grid-column:1;min-width:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}
#page-stadium>.wrap>.rcol{grid-column:2;min-width:0;align-self:start}
#page-stadium>.wrap>div:not(.rcol):not(.fb-ref-page-head)>.pnl:first-child{grid-column:1/-1}
#page-stadium>.wrap>div:not(.rcol):not(.fb-ref-page-head)>.pnl{margin-bottom:0}
#page-stadium .upg-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:10px}
#page-stadium .upgrow{margin:0!important;min-height:95px}
#page-stadium .rcol .pnl{position:sticky;top:74px}
#page-stadium .btrack{height:8px}

/* Alliances: discovery/news/chat with the table as a side panel. */
#page-alliances>.wrap{grid-template-columns:minmax(0,1.45fr) minmax(310px,.72fr)!important;gap:14px!important;max-width:1500px}
#page-alliances>.wrap>.fb-wide-column{grid-column:auto!important;width:auto!important}
#page-alliances>.wrap>div:not(.rcol):not(.fb-ref-page-head){grid-column:1;min-width:0;display:grid;grid-template-columns:1.1fr .9fr;gap:14px;align-items:start}
#page-alliances>.wrap>.rcol{grid-column:2;min-width:0;align-self:start}
#page-alliances>.wrap>div:not(.rcol):not(.fb-ref-page-head)>.pnl{margin:0}
#page-alliances>.wrap>div:not(.rcol):not(.fb-ref-page-head)>.pnl:nth-child(3){grid-column:1/-1}
#page-alliances .chat-area{height:240px!important;max-height:240px!important}
#page-alliances .ally-card{min-height:74px}

/* Profile: identity/history on one row, choices in compact grids. */
#page-profile>.wrap{display:grid!important;grid-template-columns:repeat(12,minmax(0,1fr))!important;gap:14px!important;width:min(1500px,100%)!important;max-width:1500px!important}
#page-profile>.wrap>.fb-wide-column{grid-column:auto!important;width:auto!important}
#page-profile>.wrap>.fb-ref-page-head{grid-column:1/-1!important}
#page-profile>.wrap>.pnl:first-of-type{grid-column:1/7!important;margin:0;height:100%}
#page-profile>.wrap>div:nth-of-type(2){grid-column:7/13!important;min-width:0}
#page-profile>.wrap>#fb-disc-skin-picker,#page-profile>.wrap>#fb-profile-centre{grid-column:1/-1!important;width:auto!important;margin:0}
#page-profile .profile-option-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;align-items:start}
#page-profile .profile-option-card{height:auto!important;min-height:205px}
#page-profile .profile-security{grid-column:span 2}
#page-profile .profile-session-list{max-height:350px;overflow:auto;padding-inline-end:3px}
#page-profile .disc-skin-grid{grid-template-columns:repeat(auto-fill,minmax(92px,1fr))!important}

/* Club history: timeline, trophies and record tiles. */
#page-clubhistory>.wrap{grid-template-columns:repeat(12,minmax(0,1fr))!important;gap:14px!important;max-width:1500px}
#page-clubhistory>.wrap>.fb-wide-column{width:auto!important}
#page-clubhistory>.wrap>.fb-ref-page-head,#page-clubhistory>.wrap>.pnl:first-of-type{grid-column:1/-1!important}
#page-clubhistory>.wrap>.pnl:nth-of-type(2){grid-column:1/8!important}
#page-clubhistory>.wrap>.pnl:nth-of-type(3){grid-column:8/13!important}
#club-history-content{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;padding:12px!important;position:relative}
#club-history-content:before{content:"";position:absolute;top:50%;right:6%;left:6%;height:1px;background:linear-gradient(90deg,transparent,var(--ref-cyan),transparent);opacity:.4}
#club-history-content .history-card{position:relative;z-index:1;margin:0!important;background:linear-gradient(145deg,rgba(12,42,47,.94),rgba(4,19,25,.96))!important;border:1px solid var(--ref-line)!important;border-radius:10px!important;padding:12px!important}
#club-trophies-content{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:12px!important}
#club-records-content{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:12px!important}
#club-trophies-content .history-card,#club-records-content>div{margin:0!important;border:1px solid var(--ref-line)!important;border-radius:9px!important;background:var(--ref-soft)!important}

/* Progress centre: full-width horizontal tabs and compact metric cards. */
#page-managerhub>.fb-hub-wrap{display:block!important;max-width:1500px!important;padding-top:18px!important}
#page-managerhub .fb-ref-page-head{margin-bottom:14px}
#page-managerhub .fb-hub-head{min-height:140px;margin-bottom:12px;background:linear-gradient(135deg,rgba(22,115,101,.18),rgba(4,18,25,.95));border-color:var(--ref-line-strong)}
#page-managerhub .fb-hub-tabs{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin-bottom:12px}
#page-managerhub .fb-hub-tabs button{min-height:52px;display:flex;align-items:center;justify-content:center}
#page-managerhub .fb-hub-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
#page-managerhub .fb-hub-card{min-height:165px;display:flex;flex-direction:column}
#page-managerhub .fb-hub-progress,.fb-reference-dashboard .btrack,.fb-reference-dashboard .tm-progress{height:7px;border-radius:99px;background:rgba(74,122,126,.2);overflow:hidden}
#page-managerhub .fb-hub-progress i,.fb-reference-dashboard .bfill,.fb-reference-dashboard .tm-progress i{background:linear-gradient(90deg,#0da98b,#39e4bb)!important;box-shadow:0 0 15px rgba(50,225,188,.24)}

/* Transfer market: compact overview, market table and watch rail. */
#page-transfer>.wrap{display:grid!important;grid-template-columns:repeat(12,minmax(0,1fr))!important;gap:14px!important;max-width:1500px!important;align-items:start}
#page-transfer>.wrap>.fb-ref-page-head{grid-column:1/-1!important;grid-row:1}
#page-transfer>.wrap>#league-slot-market{grid-column:1/7!important;grid-row:2;margin:0!important;height:100%}
#page-transfer>.wrap>#mp-market{grid-column:7/13!important;grid-row:2;margin:0!important;height:100%}
#page-transfer>.wrap>div:not(.rcol):not(.pnl):not(.fb-ref-page-head){grid-column:1/9!important;grid-row:3;min-width:0}
#page-transfer>.wrap>.rcol{grid-column:9/13!important;grid-row:3;min-width:0;align-self:start}
#page-transfer>.wrap>div:not(.rcol):not(.pnl):not(.fb-ref-page-head)>.pnl,#page-transfer>.wrap>.rcol>.pnl{margin-bottom:14px!important}
#page-transfer .market-filters,#page-transfer .transfer-filters{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}
#page-transfer .gtbl{font-size:10px}
#page-transfer .gtbl th,#page-transfer .gtbl td{padding:7px 6px!important}
#page-transfer .rcol .pnl{overflow:hidden}

/* Match centre: table and next match share the hero row; recent games stay compact. */
#page-matches>.fb-ref-page-head{width:min(1500px,calc(100% - 24px));margin:0 auto 12px;box-sizing:border-box}
#page-matches>.results-unified-tabs,#page-matches>.results-unified-shell{width:min(1500px,calc(100% - 24px))!important;margin-inline:auto!important}
#page-matches>#results-panel-matches{min-width:0}
#page-matches #results-panel-matches>.wrap{display:grid!important;grid-template-columns:repeat(12,minmax(0,1fr))!important;gap:14px!important;align-items:start;width:100%!important;padding:0!important}
#page-matches #results-panel-matches>.wrap>#league-registration-panel{grid-column:1/-1!important;grid-row:1;margin:0!important;max-height:210px;overflow:auto}
#page-matches #results-panel-matches>.wrap>.league-table-panel-wide:not(#league-registration-panel){grid-column:1/6!important;grid-row:2;margin:0!important;max-height:610px;overflow:hidden}
#page-matches #league-table-area{max-height:455px;overflow:auto}
#page-matches #results-panel-matches>.wrap>div:nth-child(3),#page-matches #results-panel-matches>.wrap>.rcol{display:contents!important}
#page-matches #fb-next-weather-panel{grid-column:6/13;grid-row:2;align-self:start;margin:0!important;z-index:2}
#page-matches #results-panel-matches>.wrap>div:nth-child(3)>.pnl:nth-child(3){grid-column:6/13!important;grid-row:2;margin:95px 0 0!important;max-height:515px;overflow:auto}
#page-matches #results-panel-matches>.wrap>div:nth-child(3)>.pnl:nth-child(4){grid-column:1/-1!important;grid-row:3;margin:0!important;max-height:370px;overflow:auto}
#page-matches #friendly-centre{grid-column:1/-1!important;grid-row:4;margin:0!important;max-height:680px;overflow:auto}
#page-matches #results-panel-matches>.wrap>.rcol>.pnl:nth-child(1){grid-column:1/6!important;grid-row:5;margin:0!important;height:100%}
#page-matches #results-panel-matches>.wrap>.rcol>.pnl:nth-child(2){grid-column:6/13!important;grid-row:5;margin:0!important;height:100%}

/* Cups: bracket hero with honours, prizes and tournament controls below. */
#page-cups>.wrap{display:grid!important;grid-template-columns:repeat(12,minmax(0,1fr))!important;gap:14px!important;max-width:1500px!important;align-items:start}
#page-cups>.wrap>.fb-ref-page-head{grid-column:1/-1!important}
#page-cups>.wrap>div:not(.fb-ref-page-head){display:contents!important}
#page-cups>.wrap>div:first-of-type>.pnl:nth-child(1){grid-column:1/7!important;grid-row:2;margin:0!important;height:100%}
#page-cups>.wrap>div:first-of-type>.pnl:nth-child(2){grid-column:7/13!important;grid-row:2;margin:0!important;height:100%}
#page-cups>.wrap>.rcol>.pnl:nth-child(1){grid-column:1/5!important;grid-row:3;margin:0!important;height:100%}
#page-cups>.wrap>.rcol>.pnl:nth-child(2){grid-column:5/9!important;grid-row:3;margin:0!important;height:100%}
#page-cups>.wrap>.rcol>.pnl:nth-child(3){grid-column:9/13!important;grid-row:3;margin:0!important;height:100%}
#page-cups>.wrap>.rcol>.pnl:nth-child(4){grid-column:1/7!important;grid-row:4;margin:0!important}
#page-cups>.wrap>.rcol>.pnl:nth-child(5){grid-column:7/13!important;grid-row:4;margin:0!important}
#page-cups .cup-progress,#page-cups .btrack{height:8px!important;border-radius:99px}

/* Finance: summary, bar chart, transactions, salaries and withdrawal in a dense grid. */
#page-finance>.wrap{display:grid!important;grid-template-columns:repeat(12,minmax(0,1fr))!important;gap:14px!important;max-width:1500px!important;align-items:start}
#page-finance>.wrap>.fb-ref-page-head{grid-column:1/-1!important;grid-row:1}
#page-finance>.wrap>div:not(.fb-ref-page-head){display:contents!important}
#page-finance>.wrap>div:first-of-type>.pnl:nth-child(2){grid-column:1/-1!important;grid-row:2;margin:0!important}
#page-finance>.wrap>div:first-of-type>.pnl:nth-child(4){grid-column:1/6!important;grid-row:3;margin:0!important;height:100%;min-height:310px}
#page-finance>.wrap>div:first-of-type>.pnl:nth-child(5){grid-column:6/13!important;grid-row:3;margin:0!important;max-height:460px;overflow:auto}
#page-finance>.wrap>div:first-of-type>.pnl:nth-child(3){grid-column:1/7!important;grid-row:4;margin:0!important;max-height:480px;overflow:auto}
#page-finance>.wrap>div:first-of-type>.pnl:nth-child(1){grid-column:7/13!important;grid-row:4;margin:0!important;height:100%}
#page-finance>.wrap>.rcol>.pnl:nth-child(1){grid-column:1/7!important;grid-row:5;margin:0!important;height:100%}
#page-finance>.wrap>.rcol>.pnl:nth-child(2){grid-column:7/13!important;grid-row:5;margin:0!important;height:100%}
#page-finance .fin-summary,#page-finance .fstats,#page-finance .finance-summary{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px}
#page-finance .bar{border-radius:3px 3px 0 0;background:linear-gradient(180deg,#39e4bb,#0b947d)!important}
#page-finance .finance-dual-bars{width:74px!important;height:120px!important;min-height:120px!important}
#page-finance .finance-dual-bars i{width:24px!important;flex:0 0 24px}

.fb-reference-dashboard table{border-collapse:separate;border-spacing:0}
.fb-reference-dashboard .gtbl th{background:rgba(10,42,47,.72);color:#91bab5;border-bottom-color:rgba(62,215,190,.15)}
.fb-reference-dashboard .gtbl tbody tr{transition:background .18s ease}.fb-reference-dashboard .gtbl tbody tr:hover{background:rgba(48,224,190,.05)}

@media(max-width:1180px){
  #page-home>.wrap,#page-team>.wrap,#page-stadium>.wrap,#page-alliances>.wrap{grid-template-columns:minmax(0,1fr) 300px!important}
  #page-profile .profile-option-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  #page-profile .profile-security{grid-column:auto}
  #page-managerhub .fb-hub-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  #page-transfer>.wrap{grid-template-columns:repeat(12,minmax(0,1fr))!important}
}
@media(max-width:820px){
  .fb-ref-page-head{padding-inline:2px}.fb-ref-page-lines{display:none}
  #page-home>.wrap,#page-team>.wrap,#page-stadium>.wrap,#page-alliances>.wrap{grid-template-columns:minmax(0,1fr)!important}
  #page-home>.wrap>div,#page-team>.wrap>div,#page-team>.wrap>.rcol,#page-stadium>.wrap>div,#page-alliances>.wrap>div{grid-column:1!important}
  #page-stadium>.wrap>div:not(.rcol):not(.fb-ref-page-head),#page-alliances>.wrap>div:not(.rcol):not(.fb-ref-page-head){grid-template-columns:1fr}
  #page-stadium>.wrap>div:not(.rcol):not(.fb-ref-page-head)>.pnl,#page-alliances>.wrap>div:not(.rcol):not(.fb-ref-page-head)>.pnl{grid-column:1!important}
  #page-stadium .rcol .pnl{position:static}
  #page-profile>.wrap{grid-template-columns:1fr!important}
  #page-profile>.wrap>*{grid-column:1!important}
  #page-profile .profile-option-grid{grid-template-columns:1fr!important}
  #page-clubhistory>.wrap{grid-template-columns:1fr!important}
  #page-clubhistory>.wrap>*{grid-column:1!important}
  #club-history-content{grid-template-columns:repeat(2,minmax(0,1fr))}
  #page-managerhub .fb-hub-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}
  #page-managerhub .fb-hub-grid{grid-template-columns:1fr}
  #page-team>#team-tab-lineup{grid-template-columns:minmax(0,1fr)!important}
  #page-team>#team-tab-lineup>#disc-team-v40,#page-team>#team-tab-lineup>.wrap,#page-team>#team-tab-lineup>#tm-pro-root{grid-column:1!important}
  #page-transfer>.wrap,#page-cups>.wrap,#page-finance>.wrap,#page-matches #results-panel-matches>.wrap{grid-template-columns:minmax(0,1fr)!important}
  #page-transfer>.wrap>*,#page-transfer>.wrap>div,#page-cups>.wrap .pnl,#page-finance>.wrap .pnl,#page-matches #results-panel-matches>.wrap>*{grid-column:1!important;grid-row:auto!important;height:auto!important}
  #page-transfer>.wrap>#league-slot-market,#page-transfer>.wrap>#mp-market{height:auto}
  #page-matches #fb-next-weather-panel{grid-column:1!important;grid-row:auto!important}
  #page-matches #results-panel-matches>.wrap>div:nth-child(3)>.pnl:nth-child(3){margin:0!important}
  #page-matches #results-panel-matches>.wrap>.league-table-panel-wide:not(#league-registration-panel){max-height:620px}
  #page-finance>.wrap>div:first-of-type>.pnl:nth-child(5),#page-finance>.wrap>div:first-of-type>.pnl:nth-child(3){max-height:520px}
}
@media(max-width:520px){
  .fb-ref-page-icon{width:36px;height:36px;flex-basis:36px}.fb-ref-page-copy h1{font-size:18px}.fb-ref-page-copy p{font-size:9px}
  #page-home .matchcard.fb-home-selected-match{min-height:0!important}
  #page-stadium .upg-list,#club-history-content,#club-trophies-content,#club-records-content{grid-template-columns:1fr!important}
  #page-transfer .market-filters,#page-transfer .transfer-filters,#page-finance .fin-summary,#page-finance .fstats,#page-finance .finance-summary{grid-template-columns:1fr 1fr!important}
}
