/* R8.248 LIVE — approved Window 1 Teams transfer presentation on handset only. */
@media (max-width:760px), (max-width:960px) and (max-height:520px){
  #appView .squad-row.r8248-transferred-in{position:relative!important;overflow:hidden}
  #appView .squad-row.r8248-transferred-in::before{content:'';position:absolute;top:0;left:0;width:16px;height:16px;pointer-events:none;z-index:2;clip-path:polygon(0 0,100% 0,0 100%);background:linear-gradient(135deg,rgba(244,204,54,.48) 0%,rgba(246,215,92,.22) 46%,rgba(255,244,180,0) 82%);filter:blur(.15px);opacity:.72}
  body.r8248-transfer-details #appView .team-card.r8248-has-transfers{background:linear-gradient(180deg,rgba(255,249,220,.54),rgba(255,255,255,.96) 22%,rgba(255,255,255,.99))!important;box-shadow:inset 0 0 0 1px rgba(215,177,51,.18),0 8px 24px rgba(5,34,24,.07)!important}
  body.r8248-transfer-details #appView .squad-row.r8248-transferred-in{background:linear-gradient(90deg,rgba(255,229,82,.27),rgba(255,244,171,.12) 70%,rgba(255,255,255,0))!important;box-shadow:inset 3px 0 0 rgba(205,165,29,.38)!important}
  body:not(.r8248-transfer-details) #appView .squad-row.r8248-transferred-in{background:inherit!important;box-shadow:none!important}
  #appView .r8248-transfer-history{width:100%!important;max-width:100%!important;box-sizing:border-box!important;overflow:hidden!important;margin:8px 0 2px!important;border:1px solid rgba(204,164,37,.28);border-radius:10px;background:rgba(255,249,222,.64)}
  #appView .r8248-transfer-history summary{display:grid;grid-template-columns:minmax(0,1fr) auto 12px;gap:6px;align-items:center;padding:8px 9px;list-style:none;font-size:10px;text-transform:uppercase;letter-spacing:.045em;color:#66500b;font-weight:900}
  #appView .r8248-transfer-history summary::-webkit-details-marker{display:none}
  #appView .r8248-transfer-history summary b{font-size:9px;color:#836d25}
  #appView .r8248-transfer-history summary i{font-style:normal;transform:rotate(180deg)}
  #appView .r8248-history-box{width:100%;box-sizing:border-box;padding:0 8px 8px;overflow:hidden}
  #appView .r8248-history-window{font-size:9px;color:#8a742b;padding:1px 1px 6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  #appView .r8248-history-head,#appView .r8248-history-row{display:grid;grid-template-columns:28px minmax(0,1fr) 38px 42px 48px;gap:4px;align-items:center;width:100%;box-sizing:border-box;overflow:hidden}
  #appView .r8248-history-head{padding:5px 2px;border-top:1px solid rgba(179,145,34,.18);border-bottom:1px solid rgba(179,145,34,.18);font-size:8px;text-transform:uppercase;letter-spacing:.05em;color:#83712f;font-weight:900}
  #appView .r8248-history-row{padding:5px 2px;border-bottom:1px solid rgba(179,145,34,.10);font-size:9px;color:#26342e}
  #appView .r8248-history-row>*{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  #appView .r8248-history-row>*:last-child,#appView .r8248-history-head>*:last-child{text-align:right}
  html body #appView #view-teams .teams-toolbar,html body #appView #view-teams .teams-toolbar:not(:has(#r643AllTransfers)){display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-template-areas:'mode mode club transfer' 'status status actions actions'!important;grid-template-rows:auto auto!important;gap:8px!important;align-items:stretch!important;margin-bottom:12px!important}
  html body #appView #view-teams .teams-mode-toggle{grid-area:mode!important;min-width:0!important;width:100%!important}
  html body #appView #view-teams .teams-club-filter{grid-area:club!important;min-width:0!important;width:100%!important;margin:0!important}
  html body #appView #view-teams .team-actions{grid-area:actions!important;grid-column:auto!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;min-width:0!important;width:100%!important;margin:0!important}
  html body #appView #view-teams #r8248TransfersToggle{grid-area:transfer!important;width:100%!important;min-width:0!important;min-height:42px!important;height:100%!important;margin:0!important;padding:0 7px!important;position:static!important;inset:auto!important;transform:none!important;box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:center!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;font-size:10px!important;line-height:1.05!important}
  #appView #r8248TransfersToggle.active{border-color:#d6b13a!important;background:linear-gradient(180deg,#fff8d8,#f4e5a6)!important;color:#4c3a00!important}
  html body #appView #view-teams .teams-club-filter .club-picker,html body #appView #view-teams .teams-club-filter .club-picker-button{width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
  html body #appView #view-teams .team-actions .button{min-width:0!important;width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;padding-inline:6px!important;box-sizing:border-box!important}
}
@media (max-width:960px) and (max-height:520px){html body #appView #view-teams #r8248TransfersToggle{min-height:38px!important}html body #appView #view-teams .teams-toolbar{gap:7px!important;margin-bottom:10px!important}}
