/* R8.276: one accessible rank badge, with context once above the ownership list. */
html body #teamModal #teamModalBody .owner-ranking-label{font-size:12px!important;line-height:1.4!important;color:#64798b!important;margin:0 0 10px!important}
html body #teamModal #teamModalBody .r8276-owner-list{display:grid!important;gap:5px!important;margin-top:0!important}
html body #teamModal #teamModalBody .r8276-owner-list>button{display:grid!important;grid-template-columns:34px minmax(0,1fr) auto!important;align-items:center!important;gap:10px!important;min-height:54px!important;padding:7px 10px!important;line-height:1.3!important;text-align:left!important}
html body #teamModal #teamModalBody .r8276-owner-list .owner-rank{display:flex!important;align-items:center!important;justify-content:center!important;width:32px!important;height:32px!important;padding:0!important;border:0!important;border-radius:50%!important;background:#edf2f5!important;color:#34536b!important;font-size:15px!important;font-weight:800!important;line-height:1!important;font-variant-numeric:tabular-nums}
html body #teamModal #teamModalBody .r8276-owner-list .owner-team{display:grid!important;grid-template-columns:34px minmax(0,1fr)!important;column-gap:9px!important;align-items:center!important;min-width:0!important}
html body #teamModal #teamModalBody .r8276-owner-list .owner-team .team-logo{grid-column:1!important;grid-row:1 / span 2!important;width:34px!important;height:34px!important;min-width:34px!important}
html body #teamModal #teamModalBody .r8276-owner-list .owner-team>b{grid-column:2!important;font-size:14px!important;line-height:1.3!important;margin:0!important;overflow-wrap:anywhere}
html body #teamModal #teamModalBody .r8276-owner-list .owner-team>small{grid-column:2!important;font-size:11px!important;line-height:1.3!important;margin:2px 0 0!important}
html body #teamModal #teamModalBody .r8276-owner-list>button>em{font-size:11px!important;line-height:1.3!important;white-space:nowrap!important;margin:0!important;justify-self:end!important}
html body #teamModal .team-modal-card:has(.r8276-owner-list)>.modal-head{position:sticky!important;top:-1px!important;z-index:140!important;margin:0 0 12px!important;padding:2px 0 8px!important;background:#fff!important}
@media(max-width:600px){
  html body #teamModal #teamModalBody .r8276-owner-list>button{grid-template-columns:30px minmax(0,1fr) 12px!important;gap:7px!important;padding:7px!important}
  html body #teamModal #teamModalBody .r8276-owner-list .owner-rank{width:28px!important;height:28px!important;font-size:14px!important}
  html body #teamModal #teamModalBody .r8276-owner-list .owner-team{column-gap:7px!important}
  html body #teamModal #teamModalBody .r8276-owner-list .owner-team>b{font-size:13px!important}
  html body #teamModal #teamModalBody .r8276-owner-list>button>em>span{display:none!important}
  html body #teamModal #teamModalBody .r8276-owner-list>button>em{font-size:20px!important}
}
/* R8.268 LIVE — responsive recovery + monthly leader visual correction. */
#view-table .season-table tbody tr:not(.is-mine) td.period-cell.current{background:transparent!important;box-shadow:none!important}
#view-table td.r8268-month-leader-cell{background:linear-gradient(180deg,rgba(247,249,250,.96),rgba(221,226,230,.88))!important;box-shadow:inset 0 0 0 1.5px rgba(118,128,138,.42),0 2px 7px rgba(50,60,70,.06)!important;border-radius:12px!important;color:#334556!important;font-weight:900!important}
#view-table tbody tr.is-mine td.period-cell.current{background:inherit}
/* Honour the club/in-play filter even when responsive squad styling sets display:grid. */
html body #appView #view-teams .team-card .squad-list > .squad-row[hidden]{display:none!important}
/* Desktop team squads only: leave touch tablets, phones and other modal types unchanged. */
@media (min-width:1100px) and (hover:hover) and (pointer:fine){
  html body #teamModal .team-modal-card:has(#teamModalBody .modal-squad){width:min(820px,calc(100vw - 64px))!important;max-width:820px!important;max-height:calc(100dvh - 40px)!important}
  html body #teamModal:has(.modal-squad) #teamModalBody .team-modal-head h2{font-size:26px!important;line-height:1.2!important}
  html body #teamModal:has(.modal-squad) #teamModalBody .team-modal-head p{font-size:13px!important;line-height:1.4!important}
  html body #teamModal:has(.modal-squad) #teamModalBody .modal-squad-grid{grid-template-columns:42px minmax(0,1fr) 46px 58px 52px 58px!important;column-gap:8px!important}
  html body #teamModal:has(.modal-squad) #teamModalBody .squad-head{font-size:11px!important;line-height:1.3!important;padding:7px 8px!important}
  html body #teamModal:has(.modal-squad) #teamModalBody .squad-row{font-size:15px!important;line-height:1.3!important;min-height:34px!important;padding:6px 8px!important}
  html body #teamModal:has(.modal-squad) #teamModalBody .squad-row > *{font-size:15px!important;line-height:1.3!important}
  html body #teamModal:has(.modal-squad) #teamModalBody .squad-row > :nth-child(2){font-weight:600!important}
  html body #teamModal:has(.modal-squad) #teamModalBody .team-modal-scorebar{flex-wrap:wrap!important;gap:8px 12px!important}
  html body #teamModal:has(.modal-squad) #teamModalBody .team-modal-scorebar small{font-size:12px!important;line-height:1.4!important;flex:1 1 300px!important}
  html body #teamModal:has(.modal-squad) #teamModalBody .team-modal-scorebar span{font-size:10px!important}
  html body #teamModal:has(.modal-squad) #teamModalBody .team-modal-scorebar strong{font-size:20px!important}
  html body #teamModal:has(.modal-squad) #teamModalBody .team-value span{font-size:11px!important}
  html body #teamModal:has(.modal-squad) #teamModalBody .team-value strong{font-size:18px!important}
}
/* One consistent summary beneath the squad, across every team popup and screen size. */
html body #teamModal #teamModalBody .team-modal-scorebar.team-modal-summary{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;align-items:end!important;gap:8px 0!important;margin:12px 0 0!important;padding:12px!important;border:1px solid #dce7e2!important;border-radius:12px!important;background:#f4f8f6!important}
html body #teamModal #teamModalBody .team-modal-scorebar.team-modal-summary > .team-value{display:flex!important;align-items:baseline!important;justify-content:flex-start!important;align-self:end!important;margin:0!important;padding:0 10px 0 0!important;border:0!important;background:none!important;min-width:0!important}
html body #teamModal #teamModalBody .team-modal-scorebar.team-modal-summary > .team-modal-prov,
html body #teamModal #teamModalBody .team-modal-scorebar.team-modal-summary > .team-modal-total{display:flex!important;flex-direction:column!important;align-items:flex-end!important;justify-content:flex-end!important;gap:4px!important;padding:0 12px!important;margin:0!important;border:0!important;border-left:1px solid #dce7e2!important;border-radius:0!important;background:none!important;box-shadow:none!important}
html body #teamModal #teamModalBody .team-modal-scorebar.team-modal-summary > .team-modal-total{padding-right:0!important}
html body #teamModal #teamModalBody .team-modal-scorebar.team-modal-summary strong{font-size:20px!important;line-height:1.1!important;white-space:nowrap!important;font-variant-numeric:tabular-nums}
html body #teamModal #teamModalBody .team-modal-scorebar.team-modal-summary .team-value strong{font-size:20px!important;line-height:1.1!important}
html body #teamModal #teamModalBody .team-modal-scorebar.team-modal-summary span{font-size:10px!important;line-height:1.2!important;letter-spacing:.04em!important}
html body #teamModal #teamModalBody .team-modal-scorebar.team-modal-summary > small{grid-column:1 / -1!important;margin:0!important;font-size:10px!important;line-height:1.35!important;text-align:right!important;color:#687d88!important}
@media (min-width:1100px) and (hover:hover) and (pointer:fine){
  html body #teamModal #teamModalBody .team-modal-scorebar.team-modal-summary{padding:14px 16px!important}
  html body #teamModal #teamModalBody .team-modal-scorebar.team-modal-summary strong,
  html body #teamModal #teamModalBody .team-modal-scorebar.team-modal-summary .team-value strong{font-size:22px!important}
  html body #teamModal #teamModalBody .team-modal-scorebar.team-modal-summary > small{font-size:11px!important}
}
@media (max-width:420px){
  html body #teamModal #teamModalBody .team-modal-scorebar.team-modal-summary{padding:10px!important}
  html body #teamModal #teamModalBody .team-modal-scorebar.team-modal-summary strong,
  html body #teamModal #teamModalBody .team-modal-scorebar.team-modal-summary .team-value strong{font-size:18px!important}
  html body #teamModal #teamModalBody .team-modal-scorebar.team-modal-summary > .team-modal-prov,
  html body #teamModal #teamModalBody .team-modal-scorebar.team-modal-summary > .team-modal-total{padding-left:10px!important;padding-right:10px!important}
  html body #teamModal #teamModalBody .team-modal-scorebar.team-modal-summary > .team-modal-total{padding-right:0!important}
}

.r8266-maintenance{display:none!important}
