/* R72 – manager menu, safe first-login guide and clearly marked editorial demos */
.fm72-manager-links{display:grid;grid-template-columns:1fr 1fr;gap:.4rem;margin-top:.55rem}.fm72-manager-links>a,.fm72-intro-replay{min-width:0;display:flex;align-items:center;gap:.45rem;padding:.65rem .55rem;border-radius:9px;border:1px solid #e1e6ed;background:#f8fafc;text-decoration:none!important;font-size:.76rem;font-weight:700;color:#314765!important}
.fm72-manager-links>a:hover,.fm72-intro-replay:hover{background:#edf3fa}.fm72-manager-links .badge{margin-left:auto}.fm72-intro-replay{margin-top:.4rem;border-color:#d7e4f2;background:#f0f6ff;color:#2b5989!important}
#fm72-intro-root[hidden]{display:none!important}#fm72-intro-root{position:fixed;inset:0;z-index:21000;display:flex;align-items:flex-end;justify-content:center;pointer-events:none}
.fm72-intro-backdrop{position:absolute;inset:0;background:rgba(9,24,46,.58);backdrop-filter:blur(2px);pointer-events:auto}
.fm72-intro-dialog{position:relative;z-index:2;width:min(520px,calc(100vw - 32px));margin:0 18px 3.5vh auto;padding:1.6rem 1.65rem;background:#fff;border:1px solid #d1deed;border-radius:20px;box-shadow:0 24px 100px rgba(7,20,41,.4);pointer-events:auto;max-height:90vh;overflow-y:auto;color:#1d3049;outline:none}
.fm72-intro-top{display:flex;align-items:center;justify-content:space-between;gap:.5rem;color:#4073a5;font-size:.7rem;font-weight:850;letter-spacing:.12em}
.fm72-intro-top button{border:0;background:#f3f5f8;color:#657991;border-radius:9px;width:32px;height:32px;display:grid;place-items:center;cursor:pointer}
.fm72-intro-progress{margin:1rem 0 1.1rem;font-size:.73rem;font-weight:750;color:#607389}.fm72-intro-progress-track{width:100%;height:6px;margin-top:.5rem;background:#eaf0f5;border-radius:99px;overflow:hidden}.fm72-intro-progress-track>div{height:100%;background:#4f77c1;border-radius:99px;transition:width .2s}
.fm72-intro-dialog h2{font-size:1.5rem;letter-spacing:-.025em;margin:0 0 .7rem;font-weight:800;line-height:1.15}.fm72-intro-dialog p{font-size:.91rem;line-height:1.6;color:#526379;margin:0 0 .9rem}.fm72-intro-dialog .fm72-intro-tip{background:#f1f6fc;color:#4b6381;padding:.75rem .9rem;border-radius:11px;border-left:3px solid #7d9ed3;font-size:.8rem}
.fm72-intro-buttons{display:flex;gap:.7rem;margin-top:1.3rem}.fm72-intro-buttons button{border:0;border-radius:10px;padding:.85rem 1rem;font-weight:800;cursor:pointer}.fm72-intro-quiet{background:#eef2f7;color:#375075}.fm72-intro-quiet:disabled{opacity:.35;cursor:not-allowed}.fm72-intro-primary{background:#2857a5;color:#fff;flex:1}.fm72-intro-primary:hover{background:#1b488f}.fm72-intro-skip-text{display:block;margin:.8rem auto 0;border:0;background:none;color:#6c7a8c;font-size:.75rem;text-decoration:underline;cursor:pointer}
.fm72-intro-highlight{position:relative!important;z-index:21001!important;outline:3px solid #f2c866!important;outline-offset:5px;box-shadow:0 0 0 8px rgba(244,199,91,.25)!important}
.fm72-editorial-demo{background:#f9fbfe;padding:1rem 1.15rem;border:1px solid #e0e7ee;border-radius:13px;margin:.8rem 0 1.1rem;color:#203650}.fm72-editorial-demo .fm72-demo-flag{display:inline-block;letter-spacing:.1em;border-radius:5px;background:#ffefd6;color:#875710;padding:.25rem .45rem;font-size:.69rem;font-weight:900;margin-bottom:.65rem}
.fm72-editorial-demo .fm72-demo-lead{font-size:1.05rem;font-weight:760;line-height:1.5}.fm72-editorial-demo .fm72-demo-meta{font-size:.75rem;color:#8290a1}
.fm72-demo-score{display:flex;align-items:center;justify-content:center;gap:1.5rem;padding:1.25rem .9rem;border-radius:11px;background:linear-gradient(125deg,#132c50,#254b7b);color:#fff;text-align:center}.fm72-demo-score strong{font-size:2.3rem;font-weight:900;letter-spacing:-.07em}.fm72-demo-score span{font-size:.85rem;font-weight:750;flex:1;min-width:0}.fm72-demo-score small{display:block;font-size:.67rem;font-weight:500;opacity:.7}
.fm72-demo-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem;margin:1rem 0}.fm72-demo-stat{text-align:center;padding:.7rem .45rem;background:#eef3f9;border-radius:8px}.fm72-demo-stat strong{display:block;font-size:1.35rem;font-weight:850}.fm72-demo-stat small{display:block;font-size:.7rem;color:#607389}
.fm72-bestxi-field{background:linear-gradient(180deg,#357c66,#1b584a);border:5px solid #e5f0e8;border-radius:15px;padding:1rem .65rem;box-shadow:inset 0 0 0 1px #7bb29e;max-width:640px;margin:1rem auto;color:#fff;text-align:center;position:relative}
.fm72-bestxi-field:before{content:'';position:absolute;inset:10px;border:1px solid rgba(255,255,255,.35);border-radius:6px;pointer-events:none}.fm72-bestxi-row{position:relative;display:flex;justify-content:space-around;gap:.5rem;margin:.7rem 0}.fm72-bestxi-player{width:22%;min-width:0;display:flex;flex-direction:column;align-items:center;gap:.18rem}.fm72-bestxi-player .fm72-player-pos{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#fff;color:#1c624e;font-size:.64rem;font-weight:900}.fm72-bestxi-player strong{font-size:.72rem;line-height:1.2;overflow-wrap:anywhere}.fm72-bestxi-player small{font-size:.57rem;opacity:.8}
.fm72-demo-table{border-collapse:collapse;width:100%;font-size:.81rem}.fm72-demo-table th,.fm72-demo-table td{padding:.53rem .5rem;border-bottom:1px solid #dfe7ef;text-align:left}.fm72-demo-table th{font-size:.67rem;color:#688096;text-transform:uppercase;letter-spacing:.04em}
.fm72-editorial-demo .fm72-pills{display:flex;flex-wrap:wrap;gap:.5rem;margin:.75rem 0}.fm72-editorial-demo .fm72-pills span{border-radius:99px;border:1px solid #cdd9e6;background:#fff;padding:.3rem .65rem;font-size:.74rem;font-weight:700}
@media(max-width:680px){.fm72-intro-dialog{margin:0 auto 0;border-radius:18px 18px 0 0;width:100vw;max-width:none;padding:1.2rem 1.05rem;max-height:85dvh}.fm72-intro-dialog h2{font-size:1.28rem}.fm72-intro-buttons button{padding:.75rem}.fm72-manager-links{grid-template-columns:1fr 1fr}.fm72-manager-links>a{font-size:.7rem}.fm72-bestxi-field{padding:.65rem .25rem}.fm72-bestxi-player strong{font-size:.62rem}.fm72-bestxi-player small{font-size:.52rem}.fm72-demo-score{gap:.6rem}.fm72-demo-score strong{font-size:1.6rem}.fm72-demo-stats{gap:.25rem}}
@media(prefers-reduced-motion:reduce){.fm72-intro-progress-track>div{transition:none}}
/* Highlighted controls must never accept clicks while the tour is displayed. */
.fm72-intro-highlight{pointer-events:none!important}

.fm72-demo-crest{display:grid;place-items:center;width:38px;height:38px;margin:0 auto .45rem;border-radius:11px;border:2px solid #e6eefb;background:linear-gradient(140deg,#3768a3,#152d54);color:white;font-style:normal;font-weight:950;font-size:.7rem;box-shadow:0 3px 8px #0b18345c}.fm72-demo-score span:last-child .fm72-demo-crest{background:linear-gradient(140deg,#9a6145,#522f31)}

/* R72.5 - mandatory readable Midnight overlay and safe layer order.
   Highlighting a page section must NEVER place it in front of the guide. */
#fm72-intro-root[hidden]{display:none!important}
#fm72-intro-root{position:fixed!important;inset:0!important;z-index:2147483000!important;isolation:isolate!important;display:flex;align-items:flex-end;justify-content:center;pointer-events:none}
#fm72-intro-root .fm72-intro-backdrop{position:absolute;inset:0;background:rgba(5,12,30,.43)!important;backdrop-filter:blur(.65px)!important;-webkit-backdrop-filter:blur(.65px)!important;pointer-events:auto;z-index:0}
#fm72-intro-root .fm72-intro-dialog{position:relative!important;z-index:1!important;width:min(560px,calc(100vw - 28px));max-height:min(88dvh,720px);overflow-y:auto;overscroll-behavior:contain;box-sizing:border-box;padding:clamp(18px,2vw,26px);margin:0 18px max(22px,4dvh) auto;border-radius:17px;background:linear-gradient(155deg,#192845,#201f3e)!important;border:1px solid #52608b!important;box-shadow:0 24px 80px #020815cc!important;color:#eaf1ff!important;outline:none}
#fm72-intro-root .fm72-intro-top{color:#bcadff!important;letter-spacing:.08em}
#fm72-intro-root .fm72-intro-top button{background:#2e3a5a!important;color:#dce5ff!important;border:1px solid #4b5d84!important}
#fm72-intro-root .fm72-intro-progress{color:#afc1e7!important}
#fm72-intro-root .fm72-intro-progress-track{background:#2d3b61!important}
#fm72-intro-root .fm72-intro-progress-track>div{background:linear-gradient(90deg,#6b9def,#a28aff)!important}
#fm72-intro-root .fm72-intro-dialog h2{color:#f2f4ff!important;font-weight:820!important;text-shadow:none!important;font-size:clamp(1.26rem,3vw,1.65rem)!important;line-height:1.25!important}
#fm72-intro-root .fm72-intro-dialog p:not(.fm72-intro-tip){color:#d5e1f7!important;font-size:.93rem!important;line-height:1.65!important}
#fm72-intro-root .fm72-intro-tip{background:#2c3959!important;color:#cbd9f5!important;border-left:3px solid #a18aff!important;padding:12px!important}
#fm72-intro-root .fm72-intro-quiet{background:#303d5f!important;color:#dce6ff!important;border:1px solid #52668b!important}
#fm72-intro-root .fm72-intro-quiet:disabled{opacity:.42!important}
#fm72-intro-root .fm72-intro-primary{background:linear-gradient(120deg,#465fc5,#7350c5)!important;color:#fff!important;border:1px solid #9584ee!important}
#fm72-intro-root .fm72-intro-primary:hover{background:linear-gradient(120deg,#5270da,#8462dc)!important}
#fm72-intro-root .fm72-intro-skip-text{color:#b8c8ef!important;text-decoration-color:#b8c8ef!important}
#fm72-intro-root :is(button,a):focus-visible{outline:3px solid #bba9ff!important;outline-offset:2px!important}
.fm72-intro-highlight{z-index:1!important;pointer-events:none!important;outline:3px solid #a594ff!important;outline-offset:3px;box-shadow:none!important}
@media(max-width:680px){#fm72-intro-root{align-items:flex-end!important}#fm72-intro-root .fm72-intro-dialog{width:100vw!important;max-width:none!important;margin:0!important;max-height:min(88dvh,750px)!important;border-radius:17px 17px 0 0!important;padding:18px 17px max(20px,env(safe-area-inset-bottom,0px))!important}#fm72-intro-root .fm72-intro-buttons button{min-height:44px}}
@media(max-height:520px){#fm72-intro-root .fm72-intro-dialog{max-height:96dvh!important;margin-bottom:0!important}}

/* R82 · Mini-UI polish. Account drawer only; no change to intro overlay. */
body.fm27-midnight .fm27-account-drawer .fm72-manager-links>a{
  display:flex!important;align-items:center!important;justify-content:center!important;
  box-sizing:border-box!important;height:48px!important;min-height:48px!important;
  padding:8px 9px!important;line-height:1.25!important;
  color:#e6ebff!important;background:rgba(25,24,45,.56)!important;
  border:1px solid rgba(169,149,219,.34)!important;border-radius:8px!important;
}
body.fm27-midnight .fm27-account-drawer .fm72-manager-links>a .bi{color:#ae98f0!important;flex:none}
body.fm27-midnight .fm27-account-drawer .fm72-manager-links>a:hover{
  background:#303155!important;border-color:#9083d3!important;color:#fff!important;
}
body.fm27-midnight .fm27-account-drawer .fm72-intro-replay{
  background:linear-gradient(115deg,#272f50,#322747)!important;
  border:1px solid #615583!important;color:#e3dafe!important;
  min-height:42px;justify-content:center;border-radius:9px;
}
body.fm27-midnight .fm27-account-drawer .fm72-intro-replay .bi{color:#b49cff!important}
body.fm27-midnight .fm27-account-drawer .fm72-intro-replay:hover{
  background:linear-gradient(115deg,#35436b,#46315f)!important;
  border-color:#a08ce4!important;color:#fff!important;
}
/* A little breathing room between a friendlies validation warning and the submit divider. */
body.fm27-midnight .fm27-r27-friendlies .fm27-r66-friendly-feedback.is-error{
  margin-bottom:9px!important;
}


/* R83 – exact menu alignment and compact modern manager profile. Layout-only. */
body.fm27-midnight .fm27-account-drawer .fm72-manager-links{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  align-items:stretch!important;gap:9px!important;
}
body.fm27-midnight .fm27-account-drawer .fm72-manager-links>a{
  display:flex!important;align-items:center!important;justify-content:center!important;
  align-self:stretch!important;box-sizing:border-box!important;
  width:100%!important;height:48px!important;min-height:48px!important;
  margin:0!important;padding:9px 8px!important;line-height:1.2!important;
  vertical-align:middle!important;text-align:center!important;white-space:nowrap;
}
body.fm27-midnight .fm27-account-drawer .fm72-manager-links>a>i{
  flex:0 0 auto!important;line-height:1!important;margin:0!important;
}
body.fm27-midnight .fm27-account-drawer .fm72-manager-links>a>span:not(.badge){
  line-height:1.2!important;overflow:hidden;text-overflow:ellipsis;
}
body.fm27-midnight .fm27-account-drawer .fm72-manager-links>a>.badge{
  position:absolute;top:2px;right:4px;font-size:9px;line-height:1.1;
}
body.fm27-midnight .fm27-account-drawer .fm72-manager-links>a{position:relative}
/* User-details only. Preserve original user fields, linked club and the five tabs. */
body.fm27-midnight.fm83-manager-profile-page #userTab{
  max-width:1120px;margin:8px auto 0!important;gap:5px;
  padding:0 10px;border-bottom:1px solid #3c4163;
}
body.fm27-midnight.fm83-manager-profile-page #userTab .nav-link{
  color:#bac6e3;border:1px solid transparent!important;
  padding:11px 16px;border-radius:8px 8px 0 0;font-weight:650;
}
body.fm27-midnight.fm83-manager-profile-page #userTab .nav-link:hover{
  color:#fff;background:#303254;border-color:#4d5077!important;
}
body.fm27-midnight.fm83-manager-profile-page #userTab .nav-link.active{
  color:#fff!important;background:#32274e!important;border-color:#6d569a!important;
  box-shadow:inset 0 -2px 0 #a587eb;
}
body.fm27-midnight.fm83-manager-profile-page #userTab+.tab-content{
  max-width:1120px;margin:0 auto 36px;padding:18px 10px!important;
}
body.fm27-midnight.fm83-manager-profile-page #general>p{margin:0 0 16px}
body.fm27-midnight.fm83-manager-profile-page #general>p .btn{
  border-radius:8px;padding:9px 15px;border:1px solid #75679f;
  background:#30294d;color:#eee8ff;font-weight:650;
}
body.fm27-midnight.fm83-manager-profile-page #general>.row{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:start;gap:18px;margin:0;
}
body.fm27-midnight.fm83-manager-profile-page #general>.row>.col-md-6{
  width:100%;max-width:100%;min-width:0;padding:0;flex:none;
}
body.fm27-midnight.fm83-manager-profile-page #general .container{
  width:100%!important;max-width:none!important;padding:0!important;margin:0!important;
}
body.fm27-midnight.fm83-manager-profile-page #general .inforow{
  display:grid;grid-template-columns:minmax(110px,38%) minmax(0,1fr);
  align-items:center;gap:12px;min-height:54px;
  padding:12px 16px!important;margin:0 0 9px!important;
  border:1px solid #3c4668;border-radius:9px;
  background:linear-gradient(115deg,#1b2945,#201e38);
}
body.fm27-midnight.fm83-manager-profile-page #general .infolabel,
body.fm27-midnight.fm83-manager-profile-page #general .infovalue{
  display:block!important;width:auto!important;max-width:none!important;
  flex:none!important;margin:0!important;padding:0!important;
  background:none!important;border:0!important;border-radius:0!important;
  box-shadow:none!important;white-space:normal;overflow-wrap:anywhere;
}
body.fm27-midnight.fm83-manager-profile-page #general .infolabel{
  color:#aab8d8!important;font-size:12px!important;line-height:1.4!important;
  letter-spacing:.01em;font-weight:650!important;
}
body.fm27-midnight.fm83-manager-profile-page #general .infovalue{
  color:#f0f2ff!important;font-size:13px!important;font-weight:700!important;
  line-height:1.5!important;
}
body.fm27-midnight.fm83-manager-profile-page #general .infovalue a{color:#c6a8ff!important;text-decoration:none!important}
body.fm27-midnight.fm83-manager-profile-page #general .infovalue a:hover{text-decoration:underline!important}

/* With no optional personal fields, center the populated profile facts rather than
   leaving a large empty second column. Supported by current Firefox/Chromium. */
body.fm27-midnight.fm83-manager-profile-page #general>.row:has(>.col-md-6:nth-child(2):not(:has(.inforow))){
  grid-template-columns:minmax(0,760px);justify-content:center;
}
body.fm27-midnight.fm83-manager-profile-page #general>.row>.col-md-6:nth-child(2):not(:has(.inforow)){
  display:none;
}
@media(max-width:760px){
 body.fm27-midnight.fm83-manager-profile-page #general>.row{grid-template-columns:1fr;gap:0}
 body.fm27-midnight.fm83-manager-profile-page #general .inforow{grid-template-columns:minmax(90px,36%) minmax(0,1fr);min-height:50px}
 body.fm27-midnight.fm83-manager-profile-page #userTab .nav-link{padding:10px 11px;font-size:12px}
}
@media(max-width:390px){
 body.fm27-midnight .fm27-account-drawer .fm72-manager-links{gap:6px!important}
 body.fm27-midnight .fm27-account-drawer .fm72-manager-links>a{font-size:11px!important;padding:7px 4px!important}
 body.fm27-midnight.fm83-manager-profile-page #general .inforow{padding:10px 11px!important;gap:9px}
}
