/* AFM Desktop Reset v1 — desktop only, loaded last. Mobile <901px untouched. */
@media (min-width:901px){
  :root{
    --dr-text:#eef4f7;
    --dr-muted:#9fb1be;
    --dr-meta:#8fa4b3;
    --dr-line:rgba(132,160,181,.20);
  }

  /* Global desktop readability */
  body.afm-desktop-v4{font-size:13px!important}
  body.afm-desktop-v4 .afm-d4-brand small{font-size:10px!important}
  body.afm-desktop-v4 .afm-d4-label{font-size:10px!important;letter-spacing:.11em!important;margin-top:13px!important}
  body.afm-desktop-v4 .afm-d4-nav a{font-size:13px!important;min-height:42px!important}
  body.afm-desktop-v4 .afm-d4-page small{font-size:10px!important}
  body.afm-desktop-v4 .afm-d4-page strong{font-size:17px!important}
  body.afm-desktop-v4 .afm-d4-actions a,
  body.afm-desktop-v4 .afm-d4-actions button{font-size:12px!important;min-height:38px!important}
  body.afm-desktop-v4 .back-link{font-size:11px!important;min-height:34px!important}
  body.afm-desktop-v4 .eyebrow,
  body.afm-desktop-v4 .kicker{font-size:11px!important;letter-spacing:.11em!important}
  body.afm-desktop-v4 input,
  body.afm-desktop-v4 select,
  body.afm-desktop-v4 textarea,
  body.afm-desktop-v4 button{font-size:12px!important}

  /* Home — remove stretched 640x360 page background; use the existing hi-res stadium source. */
  body.afm-desktop-v4.afm-home main.shell.home{
    background:
      linear-gradient(90deg,rgba(3,10,17,.95) 0%,rgba(3,10,17,.68) 38%,rgba(3,10,17,.27) 70%,rgba(3,10,17,.45) 100%),
      linear-gradient(180deg,rgba(3,10,16,.10),rgba(3,10,16,.80)),
      url("https://images.unsplash.com/photo-1522778119026-d647f0596c20?auto=format&fit=crop&w=2200&q=90") center 56%/cover no-repeat fixed!important;
  }
  body.afm-desktop-v4.afm-home .dh-hero{
    background:linear-gradient(145deg,rgba(5,20,31,.50),rgba(3,11,18,.28))!important
  }
  body.afm-desktop-v4.afm-home .dh-btn{font-size:12px!important;min-height:42px!important}
  body.afm-desktop-v4.afm-home .dh-club-copy p{font-size:13px!important}
  body.afm-desktop-v4.afm-home .dh-country-leagues span{font-size:11px!important}
  body.afm-desktop-v4.afm-home .dh-country-name{font-size:14px!important}
  body.afm-desktop-v4.afm-home .dh-fixture small,
  body.afm-desktop-v4.afm-home .dh-lineup span,
  body.afm-desktop-v4.afm-home .dh-country-footer span,
  body.afm-desktop-v4.afm-home .dh-panel-head div small,
  body.afm-desktop-v4.afm-home .dh-panel-head a,
  body.afm-desktop-v4.afm-home .dh-row em,
  body.afm-desktop-v4.afm-home .dh-metric small,
  body.afm-desktop-v4.afm-home .dh-metric span,
  body.afm-desktop-v4.afm-home .dh-mc-title small,
  body.afm-desktop-v4.afm-home .dh-mc-title a,
  body.afm-desktop-v4.afm-home .dh-mc-main>small,
  body.afm-desktop-v4.afm-home .dh-mc-side-head span,
  body.afm-desktop-v4.afm-home .dh-mc-side-head a{font-size:10px!important}
  body.afm-desktop-v4.afm-home .dh-quick a{font-size:11px!important;min-height:46px!important}
  body.afm-desktop-v4.afm-home .dh-day,
  body.afm-desktop-v4.afm-home .dh-mc-side .dh-day{font-size:10px!important;min-width:36px!important;height:28px!important}
  body.afm-desktop-v4.afm-home .dh-fixture-copy strong{font-size:12px!important}
  body.afm-desktop-v4.afm-home .dh-fixture-copy strong span,
  body.afm-desktop-v4.afm-home .dh-fixture-copy small{font-size:10px!important}
  body.afm-desktop-v4.afm-home .dh-next-pill,
  body.afm-desktop-v4.afm-home .dh-mc-side .dh-next-pill{font-size:10px!important;min-height:30px!important}
  body.afm-desktop-v4.afm-home .dh-mc-main p{font-size:11px!important}
  body.afm-desktop-v4.afm-home .dh-mc-main>a{font-size:11px!important;min-height:38px!important}
  body.afm-desktop-v4.afm-home .dh-mc-versus span{font-size:10px!important}
  body.afm-desktop-v4.afm-home .dh-empty-mini{font-size:10px!important}

  /* Competition / standings */
  body.afm-desktop-v4.afm-competition .competition-brand .eyebrow{font-size:11px!important}
  body.afm-desktop-v4.afm-competition .competition-brand p{font-size:13px!important}
  body.afm-desktop-v4.afm-competition .tabs button{font-size:12px!important;min-height:42px!important}
  body.afm-desktop-v4.afm-competition table.standings{font-size:13px!important}
  body.afm-desktop-v4.afm-competition table.standings th{font-size:11px!important;height:42px!important}
  body.afm-desktop-v4.afm-competition table.standings td{font-size:13px!important;height:56px!important}
  body.afm-desktop-v4.afm-competition .team-cell strong{font-size:13px!important}

  /* Club */
  body.afm-desktop-v4.afm-club .club-page>.back-link{font-size:11px!important}
  body.afm-desktop-v4.afm-club .club-identity .eyebrow{font-size:10px!important}
  body.afm-desktop-v4.afm-club .club-identity p{font-size:12px!important}
  body.afm-desktop-v4.afm-club .club-v4-title small,
  body.afm-desktop-v4.afm-club .club-v4-sport-head small{font-size:10px!important}
  body.afm-desktop-v4.afm-club .club-v4-title>a,
  body.afm-desktop-v4.afm-club .club-v4-sport-head>a{font-size:11px!important;min-height:32px!important;padding:0 10px!important}
  body.afm-desktop-v4.afm-club .club-v3-metrics a{min-height:82px!important;padding:12px!important}
  body.afm-desktop-v4.afm-club .club-v3-metrics small{font-size:10px!important}
  body.afm-desktop-v4.afm-club .club-v3-metrics strong{font-size:20px!important}
  body.afm-desktop-v4.afm-club .club-v4-links a{min-height:84px!important;padding:12px 30px 11px 12px!important}
  body.afm-desktop-v4.afm-club .club-v4-links a>strong{font-size:12px!important}
  body.afm-desktop-v4.afm-club .club-v4-links a>small{font-size:10px!important;line-height:1.35!important}
  body.afm-desktop-v4.afm-club .club-league-summary>div{min-height:64px!important}
  body.afm-desktop-v4.afm-club .club-league-summary small{font-size:10px!important}
  body.afm-desktop-v4.afm-club .club-v4-sport-grid>a,
  body.afm-desktop-v4.afm-club .club-v4-sport-grid>div{min-height:82px!important;padding:12px!important}
  body.afm-desktop-v4.afm-club .club-v4-sport-grid small{font-size:10px!important}
  body.afm-desktop-v4.afm-club .club-v4-sport-grid strong{font-size:12px!important}

  /* Roster desktop rules are maintained in desktop-v4.css, section 3. */

  /* Credits */
  body.afm-desktop-v4.afm-credits .club-subpage>.back-link{font-size:11px!important}
  body.afm-desktop-v4.afm-credits .afm-subhead-v5 p{font-size:12px!important}
  body.afm-desktop-v4.afm-credits .credit-balance small{font-size:10px!important}
  body.afm-desktop-v4.afm-credits .credit-balance span{font-size:11px!important}
  body.afm-desktop-v4.afm-credits .credit-summary>div{min-height:72px!important;padding:10px 12px!important}
  body.afm-desktop-v4.afm-credits .credit-summary small{font-size:10px!important}
  body.afm-desktop-v4.afm-credits .credit-summary span{font-size:10px!important}
  body.afm-desktop-v4.afm-credits .credit-history-count{font-size:10px!important;padding:5px 9px!important}
  body.afm-desktop-v4.afm-credits .credit-movement{
    min-height:54px!important;padding:7px 8px!important;
    grid-template-columns:64px minmax(0,1fr) 88px 96px!important
  }
  body.afm-desktop-v4.afm-credits .credit-move-date small{font-size:10px!important}
  body.afm-desktop-v4.afm-credits .credit-move-copy strong{font-size:12px!important}
  body.afm-desktop-v4.afm-credits .credit-movement>b{font-size:12px!important}
  body.afm-desktop-v4.afm-credits .credit-balance-after small{font-size:9.5px!important}
  body.afm-desktop-v4.afm-credits .credit-balance-after strong{font-size:11px!important}

  /* Listone */
  body.afm-desktop-v4.afm-listone .list-shell>.back-link{font-size:11px!important}
  body.afm-desktop-v4.afm-listone .list-head{min-height:76px!important;padding:10px 13px!important}
  body.afm-desktop-v4.afm-listone .list-head h1{font-size:24px!important}
  body.afm-desktop-v4.afm-listone .list-head p{font-size:11px!important}
  body.afm-desktop-v4.afm-listone .list-tools input,
  body.afm-desktop-v4.afm-listone .list-tools select{height:38px!important;min-height:38px!important;font-size:12px!important}
  body.afm-desktop-v4.afm-listone .role-tabs button{height:38px!important;min-height:38px!important;font-size:11px!important}
  body.afm-desktop-v4.afm-listone .list-summary div{min-height:54px!important;padding:8px 10px!important}
  body.afm-desktop-v4.afm-listone .list-summary small{font-size:10px!important}
  body.afm-desktop-v4.afm-listone .list-summary strong{font-size:13px!important}
  body.afm-desktop-v4.afm-listone .list-result-bar{min-height:36px!important;font-size:11px!important}
  body.afm-desktop-v4.afm-listone .player-row{
    min-height:56px!important;contain-intrinsic-size:56px!important;
    grid-template-columns:42px minmax(0,1.35fr) minmax(120px,.72fr) 74px 18px!important;
    padding:6px 5px!important
  }
  body.afm-desktop-v4.afm-listone .player-role{width:36px!important;height:36px!important;font-size:10px!important}
  body.afm-desktop-v4.afm-listone .player-row strong{font-size:13px!important}
  body.afm-desktop-v4.afm-listone .player-row small{font-size:10px!important}
  body.afm-desktop-v4.afm-listone .player-team{font-size:11px!important}
  body.afm-desktop-v4.afm-listone .role-chip{font-size:10px!important;height:24px!important}
  body.afm-desktop-v4.afm-listone .player-open{font-size:12px!important}

  /* Nation dashboard */
  body.afm-desktop-v4.afm-nation .nation-dashboard>.back-link{font-size:11px!important}
  body.afm-desktop-v4.afm-nation .nation-hero-content .eyebrow{font-size:10px!important}
  body.afm-desktop-v4.afm-nation .nation-season{font-size:12px!important}
  body.afm-desktop-v4.afm-nation .nation-motto{font-size:13px!important}
  body.afm-desktop-v4.afm-nation .section-head .kicker,
  body.afm-desktop-v4.afm-nation .panel-head .kicker{font-size:10px!important}
  body.afm-desktop-v4.afm-nation #seasonLabel{font-size:11px!important}
  body.afm-desktop-v4.afm-nation .tier,
  body.afm-desktop-v4.afm-nation .division-clubs{font-size:10px!important}
  body.afm-desktop-v4.afm-nation .division-meta{font-size:11px!important}
  body.afm-desktop-v4.afm-nation .nation-division-card .go{font-size:11px!important}
  body.afm-desktop-v4.afm-nation .nation-match-row{min-height:48px!important;padding:7px 9px!important}
  body.afm-desktop-v4.afm-nation .nation-match-row strong{font-size:12px!important}
  body.afm-desktop-v4.afm-nation .nation-match-row .score{font-size:12px!important;min-height:26px!important}
  body.afm-desktop-v4.afm-nation .nation-match-row small{font-size:10px!important}
  body.afm-desktop-v4.afm-nation .honour-tile{min-height:50px!important}
  body.afm-desktop-v4.afm-nation .honour-tile span,
  body.afm-desktop-v4.afm-nation .honour-tile small{font-size:10px!important}
  body.afm-desktop-v4.afm-nation .honour-tile strong{font-size:12px!important}
  body.afm-desktop-v4.afm-nation .nation-summary small{font-size:10px!important}
  body.afm-desktop-v4.afm-nation .division-top3>div:not(.division-top3-empty){min-height:30px!important}
  body.afm-desktop-v4.afm-nation .division-top3>div>span{width:22px!important;height:22px!important;font-size:10px!important}
  body.afm-desktop-v4.afm-nation .division-top3 b{font-size:11px!important}
  body.afm-desktop-v4.afm-nation .division-top3 strong,
  body.afm-desktop-v4.afm-nation .division-top3-empty{font-size:10px!important}

  /* Trades */
  body.afm-desktop-v4.afm-trades .trade-shell>.back-link{font-size:11px!important}
  body.afm-desktop-v4.afm-trades .trade-note{font-size:12px!important;line-height:1.5!important}
  body.afm-desktop-v4.afm-trades #marketState{font-size:11px!important;min-height:48px!important}
  body.afm-desktop-v4.afm-trades #history>.status{font-size:11px!important;min-width:260px!important;padding:8px 10px!important}
  body.afm-desktop-v4.afm-trades #history>.status small{font-size:10px!important}
  body.afm-desktop-v4.afm-trades #tradeCreate>summary{font-size:12px!important;min-height:42px!important}
  body.afm-desktop-v4.afm-trades label{font-size:11px!important}
  body.afm-desktop-v4.afm-trades #clubA,
  body.afm-desktop-v4.afm-trades #clubB{height:40px!important;min-height:40px!important;font-size:12px!important}
  body.afm-desktop-v4.afm-trades .trade-overview{min-height:62px!important}
  body.afm-desktop-v4.afm-trades .trade-overview small{font-size:10px!important}
  body.afm-desktop-v4.afm-trades .trade-overview span{font-size:10px!important}
  body.afm-desktop-v4.afm-trades .trade-overview-center span{font-size:11px!important}
  body.afm-desktop-v4.afm-trades .pick-list{height:300px!important;max-height:300px!important}
  body.afm-desktop-v4.afm-trades .pick{min-height:50px!important;grid-template-columns:18px 34px minmax(0,1fr)!important;padding:6px 8px!important}
  body.afm-desktop-v4.afm-trades .pick input[type="checkbox"]{width:16px!important;height:16px!important;min-height:16px!important}
  body.afm-desktop-v4.afm-trades .trade-player-avatar{width:32px!important;height:32px!important;font-size:9px!important}
  body.afm-desktop-v4.afm-trades .trade-player-copy>b,
  body.afm-desktop-v4.afm-trades .pick b{font-size:12px!important}
  body.afm-desktop-v4.afm-trades .trade-player-copy em,
  body.afm-desktop-v4.afm-trades .pick small{font-size:10px!important}
  body.afm-desktop-v4.afm-trades .trade-role-badge{font-size:9px!important;height:17px!important}
  body.afm-desktop-v4.afm-trades .trade-create-body>.trade-grid:nth-of-type(3):before,
  body.afm-desktop-v4.afm-trades .trade-create-body>.trade-grid:nth-of-type(3) label,
  body.afm-desktop-v4.afm-trades .trade-create-body>label{font-size:10px!important}
  body.afm-desktop-v4.afm-trades .trade-create-body>.trade-grid:nth-of-type(3) select,
  body.afm-desktop-v4.afm-trades .trade-create-body>.trade-grid:nth-of-type(3) input{height:36px!important;min-height:36px!important;font-size:12px!important}
  body.afm-desktop-v4.afm-trades .afm-value-box small{font-size:10px!important}
  body.afm-desktop-v4.afm-trades .trade-create-body>textarea{height:54px!important;min-height:54px!important;font-size:12px!important}
  body.afm-desktop-v4.afm-trades .trade-create-body>.trade-rule-state{font-size:11px!important;min-height:58px!important}
  body.afm-desktop-v4.afm-trades .trade-create-body>#submitTrade{font-size:13px!important;min-height:42px!important;height:42px!important}

  /* Stadium — hi-res source + readable data */
  body.afm-desktop-v4.afm-stadium .club-subpage>.back-link{font-size:11px!important}
  body.afm-desktop-v4.afm-stadium .afm-subhead-v5 p{font-size:12px!important}
  body.afm-desktop-v4.afm-stadium .stadium-premium-hero{
    background:
      linear-gradient(90deg,rgba(2,9,15,.90) 0%,rgba(2,9,15,.56) 42%,rgba(2,9,15,.16) 72%,rgba(2,9,15,.35) 100%),
      linear-gradient(180deg,rgba(2,9,15,.05),rgba(2,9,15,.68)),
      url("https://images.unsplash.com/photo-1522778119026-d647f0596c20?auto=format&fit=crop&w=2200&q=90") center 58%/cover no-repeat!important;
  }
  body.afm-desktop-v4.afm-stadium .stadium-premium-hero:before{display:none!important}
  body.afm-desktop-v4.afm-stadium .stadium-hero-content{min-height:270px!important}
  body.afm-desktop-v4.afm-stadium .stadium-hero-kicker{font-size:10px!important}
  body.afm-desktop-v4.afm-stadium .stadium-hero-content p{font-size:12px!important;line-height:1.4!important}
  body.afm-desktop-v4.afm-stadium .stadium-hero-badges>span{font-size:11px!important;min-height:34px!important;padding:0 10px!important}
  body.afm-desktop-v4.afm-stadium .stadium-state-badge{font-size:10px!important;min-height:22px!important;padding:0 7px!important}
  body.afm-desktop-v4.afm-stadium .stadium-stat{min-height:32px!important}
  body.afm-desktop-v4.afm-stadium .stadium-stat i,
  body.afm-desktop-v4.afm-stadium .stadium-results i{font-size:10px!important}
  body.afm-desktop-v4.afm-stadium .stadium-stat strong,
  body.afm-desktop-v4.afm-stadium .stadium-results strong{font-size:12px!important}
  body.afm-desktop-v4.afm-stadium .stadium-level-panel>.rule-note{font-size:11px!important;line-height:1.45!important}
  body.afm-desktop-v4.afm-stadium .stadium-placeholder .empty strong{font-size:11px!important}
  body.afm-desktop-v4.afm-stadium .stadium-placeholder .empty p{font-size:10px!important}

  /* Lineup — single desktop layout; mobile rules stay in formazione.html. */
  body.afm-desktop-v4.afm-lineup .page{
    display:grid!important;width:auto!important;max-width:1440px!important;margin:0 auto!important;padding:18px 24px 32px!important;
    grid-template-columns:minmax(0,1fr) 320px!important;gap:8px 12px!important;align-items:start!important
  }
  body.afm-desktop-v4.afm-lineup .page>*{min-width:0!important;margin:0!important;order:0!important;grid-column:1/-1!important;grid-row:auto!important}
  body.afm-desktop-v4.afm-lineup .page>[hidden]{display:none!important}
  body.afm-desktop-v4.afm-lineup .page>.top{grid-area:1 / 1 / 2 / -1!important;padding:0!important;min-height:36px!important;height:42px!important;border:0!important}
  body.afm-desktop-v4.afm-lineup .top .title{font-size:14px!important}
  body.afm-desktop-v4.afm-lineup .top .day{font-size:12px!important}
  body.afm-desktop-v4.afm-lineup .page>.hero{grid-area:2 / 1 / 3 / 2!important;padding:8px 16px!important;min-height:84px!important;border-radius:12px!important}
  body.afm-desktop-v4.afm-lineup .hero h1{font-size:28px!important;margin:5px 0!important}
  body.afm-desktop-v4.afm-lineup .hero small{font-size:11px!important}
  body.afm-desktop-v4.afm-lineup .hero .manager{font-size:13px!important}
  body.afm-desktop-v4.afm-lineup .club-logo{width:54px!important;height:54px!important}
  body.afm-desktop-v4.afm-lineup .hero>.module-card{
    margin:8px 0 0!important;
    min-height:58px!important;
    padding:8px 12px!important;
    display:grid!important;
    grid-template-columns:auto minmax(180px,320px)!important;
    justify-content:start!important;
    gap:14px!important;
    border-radius:12px!important;
  }
  body.afm-desktop-v4.afm-lineup .hero>.module-card label{font-size:14px!important}
  body.afm-desktop-v4.afm-lineup .hero>.module-card select{
    min-height:46px!important;
    width:280px!important;
    max-width:100%!important;
    font-size:23px!important;
    padding:0 16px!important;
  }
  body.afm-desktop-v4.afm-lineup .hero>.submission-banner{
    margin:8px 0 0!important;
    min-height:52px!important;
    padding:8px 10px!important;
  }
  body.afm-desktop-v4.afm-lineup .page>.timing{grid-area:2 / 2 / 3 / 3!important;display:grid!important;grid-template-columns:1fr!important;gap:4px!important;width:100%!important;max-width:none!important}
  body.afm-desktop-v4.afm-lineup .page>.timing>div{display:block!important;min-width:0!important;width:auto!important;max-width:none!important;padding:5px 10px!important;min-height:0!important;height:auto!important;border-radius:9px!important}
  body.afm-desktop-v4.afm-lineup .timing small{display:block!important;font-size:11px!important}
  body.afm-desktop-v4.afm-lineup .timing strong{display:block!important;font-size:13px!important;line-height:1.4!important;margin:3px 0 0!important;white-space:normal!important}
  body.afm-desktop-v4.afm-lineup .timing em{display:block!important;font-size:11px!important;line-height:1.4!important;margin-top:3px!important}
  body.afm-desktop-v4.afm-lineup .page>.submission-banner{grid-area:3 / 1 / 4 / 2!important;padding:10px 12px!important;min-height:64px!important}
  body.afm-desktop-v4.afm-lineup .submission-copy small,body.afm-desktop-v4.afm-lineup .submission-copy em{font-size:11px!important}
  body.afm-desktop-v4.afm-lineup .submission-copy strong{font-size:15px!important}
  body.afm-desktop-v4.afm-lineup .page>.lineup-state{grid-area:3 / 2 / 4 / 3!important;min-height:64px!important;padding:10px 12px!important}
  body.afm-desktop-v4.afm-lineup .lineup-state strong,body.afm-desktop-v4.afm-lineup .countdown,body.afm-desktop-v4.afm-lineup .state-pill{font-size:11px!important;line-height:1.4!important}
  body.afm-desktop-v4.afm-lineup .page>.stadium-banner{display:none!important}
  body.afm-desktop-v4.afm-lineup .stadium-banner>img,
  body.afm-desktop-v4.afm-lineup .stadium-banner>.stadium-copy{display:none!important}
  body.afm-desktop-v4.afm-lineup .lineup-stadium-premium{
    position:absolute!important;inset:0!important;z-index:2!important;
    display:flex!important;align-items:center!important;justify-content:space-between!important;
    gap:18px!important;padding:16px 18px!important;
    background:
      radial-gradient(circle at 88% 20%,rgba(238,196,88,.18),transparent 26%),
      linear-gradient(135deg,rgba(5,16,27,.78),rgba(7,26,41,.62))!important;
  }
  body.afm-desktop-v4.afm-lineup .lineup-stadium-brand{display:flex!important;align-items:center!important;gap:14px!important;min-width:0!important}
  body.afm-desktop-v4.afm-lineup .lineup-stadium-logo{
    width:66px!important;height:66px!important;flex:0 0 66px!important;border-radius:17px!important;
    display:grid!important;place-items:center!important;background:rgba(255,255,255,.07)!important;
    border:1px solid rgba(255,255,255,.08)!important;box-shadow:inset 0 0 0 1px rgba(225,184,77,.05)!important
  }
  body.afm-desktop-v4.afm-lineup .lineup-stadium-logo img{width:52px!important;height:52px!important;object-fit:contain!important}
  body.afm-desktop-v4.afm-lineup .lineup-stadium-copy-premium{min-width:0!important}
  body.afm-desktop-v4.afm-lineup .lineup-stadium-copy-premium small{
    display:block!important;color:#d9bd67!important;font-size:10px!important;font-weight:1000!important;
    letter-spacing:.14em!important;margin-bottom:4px!important
  }
  body.afm-desktop-v4.afm-lineup .lineup-stadium-copy-premium strong{
    display:block!important;color:#fff!important;font-size:25px!important;line-height:1.05!important;
    white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:560px!important
  }
  body.afm-desktop-v4.afm-lineup .lineup-stadium-copy-premium span{
    display:block!important;margin-top:7px!important;color:#b9c5cf!important;font-size:12px!important;font-weight:700!important
  }
  body.afm-desktop-v4.afm-lineup .lineup-stadium-badge{
    min-width:108px!important;height:76px!important;padding:10px 14px!important;border-radius:16px!important;
    display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
    background:linear-gradient(180deg,rgba(225,184,77,.18),rgba(225,184,77,.07))!important;
    border:1px solid rgba(225,184,77,.24)!important
  }
  body.afm-desktop-v4.afm-lineup .lineup-stadium-badge small{
    color:#d8c58c!important;font-size:9px!important;font-weight:900!important;letter-spacing:.09em!important;white-space:nowrap!important
  }
  body.afm-desktop-v4.afm-lineup .lineup-stadium-badge strong{
    margin-top:5px!important;color:#ffe59a!important;font-size:29px!important;line-height:1!important;font-weight:1000!important
  }
  body.afm-desktop-v4.afm-lineup .page>.module-card:not(#competitionScope){
    grid-area:4 / 1 / 5 / 2!important;
    min-height:64px!important;
    padding:10px 16px!important;
    gap:16px!important;
  }
  body.afm-desktop-v4.afm-lineup .module-card label{font-size:14px!important}
  body.afm-desktop-v4.afm-lineup .module-card select{
    min-height:48px!important;
    max-width:320px!important;
    font-size:24px!important;
    padding:0 16px!important;
  }
  body.afm-desktop-v4.afm-lineup .page>.manager-strip{grid-area:4 / 2 / 5 / 3!important;gap:8px!important}
  body.afm-desktop-v4.afm-lineup .manager-chip{padding:8px!important}
  body.afm-desktop-v4.afm-lineup .manager-chip small{font-size:10px!important}
  body.afm-desktop-v4.afm-lineup .manager-chip strong{font-size:13px!important}
  body.afm-desktop-v4.afm-lineup .page>.pitch{grid-area:3 / 1 / 4 / 2!important;width:100%!important;height:680px!important;min-height:680px!important;max-height:none!important;aspect-ratio:auto!important}
  body.afm-desktop-v4.afm-lineup .pitch .line{left:2%!important;right:2%!important}
  body.afm-desktop-v4.afm-lineup .pitch .line.P{top:5%!important}
  body.afm-desktop-v4.afm-lineup .pitch .line.D{top:28%!important}
  body.afm-desktop-v4.afm-lineup .pitch .line.C{top:51%!important}
  body.afm-desktop-v4.afm-lineup .pitch .line.A{top:75%!important}
  body.afm-desktop-v4.afm-lineup .slot{width:100px!important;min-width:0!important;min-height:98px!important}
  body.afm-desktop-v4.afm-lineup .bubble{width:56px!important;height:56px!important}
  body.afm-desktop-v4.afm-lineup .pname{font-size:13px!important;line-height:1.25!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere!important}
  body.afm-desktop-v4.afm-lineup .page>.bench{grid-area:3 / 2 / 4 / 3!important;height:680px!important;max-height:680px!important;overflow-y:auto!important;padding:12px!important;position:static!important}
  body.afm-desktop-v4.afm-lineup .bench>.lineup-state{
    margin:0 0 8px!important;
    min-height:54px!important;
    padding:8px 10px!important;
  }
  body.afm-desktop-v4.afm-lineup .bench>.manager-strip{
    margin:0 0 12px!important;
    gap:6px!important;
  }
  body.afm-desktop-v4.afm-lineup .bench>.manager-strip .manager-chip{padding:7px!important}
  body.afm-desktop-v4.afm-lineup .bench h2{font-size:20px!important}
  body.afm-desktop-v4.afm-lineup .bench p{font-size:12px!important;margin:6px 0 12px!important}
  body.afm-desktop-v4.afm-lineup .bench-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  body.afm-desktop-v4.afm-lineup .bench-slot{min-height:100px!important;padding:8px 5px!important}
  body.afm-desktop-v4.afm-lineup .bench-slot .mini{width:42px!important;height:42px!important}
  body.afm-desktop-v4.afm-lineup .bench-slot small{font-size:12px!important;line-height:1.3!important;white-space:normal!important;overflow:visible!important}
  body.afm-desktop-v4.afm-lineup .bench-flags span{font-size:10px!important;min-height:18px!important}
  body.afm-desktop-v4.afm-lineup .page>.switch-plus{grid-area:4 / 1 / 5 / -1!important;padding:14px!important}
  body.afm-desktop-v4.afm-lineup .switch-plus h3{font-size:16px!important}
  body.afm-desktop-v4.afm-lineup .switch-plus p,body.afm-desktop-v4.afm-lineup .switch-note{font-size:12px!important;line-height:1.5!important}
  body.afm-desktop-v4.afm-lineup .switch-grid select{font-size:14px!important;min-height:42px!important}
  body.afm-desktop-v4.afm-lineup .page>#competitionScope{grid-area:5 / 1 / 6 / -1!important;display:block!important;padding:12px!important}
  body.afm-desktop-v4.afm-lineup .page>#competitionScope[hidden]{display:none!important}
  body.afm-desktop-v4.afm-lineup #competitionScope label{display:flex!important;align-items:flex-start!important;width:100%!important;gap:10px!important}
  body.afm-desktop-v4.afm-lineup #competitionScope input{flex:0 0 20px!important}
  body.afm-desktop-v4.afm-lineup #competitionScope label>span{display:block!important;min-width:0!important}
  body.afm-desktop-v4.afm-lineup #competitionScope strong,body.afm-desktop-v4.afm-lineup #competitionScope small{display:block!important;white-space:normal!important;font-size:13px!important;letter-spacing:normal!important;line-height:1.5!important}
  body.afm-desktop-v4.afm-lineup .page>.save{grid-area:6 / 1 / 7 / -1!important;width:100%!important;min-height:48px!important;font-size:16px!important}
  body.afm-desktop-v4.afm-lineup .page>.save-note{grid-area:7 / 1 / 8 / -1!important;font-size:12px!important}
  body.afm-desktop-v4.afm-lineup .page>#locked{grid-area:8 / 1 / 9 / -1!important;font-size:14px!important}
  body.afm-desktop-v4.afm-lineup .page>#indexLine{grid-area:9 / 1 / 10 / -1!important;font-size:13px!important}
  body.afm-desktop-v4.afm-lineup .page>.livebar{grid-area:10 / 1 / 11 / -1!important;display:flex!important;flex-wrap:wrap!important;gap:12px!important;padding:12px!important}
  body.afm-desktop-v4.afm-lineup .livebar>div{display:flex!important;flex-wrap:wrap!important;gap:8px!important;align-items:center!important}
  body.afm-desktop-v4.afm-lineup .livebar strong,body.afm-desktop-v4.afm-lineup .livebar small,body.afm-desktop-v4.afm-lineup .live-open-link{font-size:12px!important}
  body.afm-desktop-v4.afm-lineup .page>#opponent{grid-area:11 / 1 / 12 / 2!important;width:100%!important;max-width:none!important;padding:12px!important}
  body.afm-desktop-v4.afm-lineup .page>.afm-form{grid-area:11 / 2 / 12 / 3!important;width:100%!important;max-width:none!important;padding:12px!important}
  body.afm-desktop-v4.afm-lineup .page>.stadium-banner{display:none!important}
  @media(max-width:1100px){
    body.afm-desktop-v4.afm-lineup .page{grid-template-columns:minmax(0,1fr)!important}
    body.afm-desktop-v4.afm-lineup .page>*{grid-area:auto / 1!important}
    body.afm-desktop-v4.afm-lineup .page>.bench{height:auto!important;max-height:none!important}
    body.afm-desktop-v4.afm-lineup .bench-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  }

  /* Diretta Gol — desktop: no stretched global background, stronger live readability */
  body.afm-desktop-v4.afm-diretta-gol{
    background-color:#04101a!important;
    background-image:
      radial-gradient(circle at 84% 6%,rgba(36,98,136,.14),transparent 28%),
      radial-gradient(circle at 18% 92%,rgba(230,191,84,.05),transparent 30%),
      linear-gradient(180deg,#03101a 0%,#061724 100%)!important;
    background-size:auto!important;
    background-position:center!important;
    background-repeat:no-repeat!important;
    background-attachment:fixed!important;
  }
  body.afm-desktop-v4.afm-diretta-gol .afm-page-watermark{display:none!important}
  body.afm-desktop-v4.afm-diretta-gol .dg{
    width:calc(100% - 56px)!important;
    max-width:1380px!important;
    margin:0 auto!important;
    padding:26px 0 60px!important;
  }
  body.afm-desktop-v4.afm-diretta-gol .dg-head{
    margin:0 0 18px!important;
    padding:22px 26px 20px!important;
    border:1px solid rgba(139,164,184,.16)!important;
    border-radius:18px!important;
    background:
      radial-gradient(circle at 88% 18%,rgba(230,191,84,.10),transparent 30%),
      linear-gradient(135deg,#0a2436,#071722 78%)!important;
    box-shadow:0 18px 46px rgba(0,0,0,.18)!important;
  }
  body.afm-desktop-v4.afm-diretta-gol .dg-head:after{
    width:170px!important;height:170px!important;right:18px!important;top:-26px!important;opacity:.045!important
  }
  body.afm-desktop-v4.afm-diretta-gol .dg-head .eyebrow{
    font-size:11px!important;letter-spacing:.14em!important;color:#e4bd58!important;font-weight:950!important
  }
  body.afm-desktop-v4.afm-diretta-gol .dg-head h1{
    margin:6px 0 5px!important;font-size:42px!important;line-height:1.05!important;letter-spacing:-.03em!important
  }
  body.afm-desktop-v4.afm-diretta-gol .dg-head p{
    font-size:13px!important;line-height:1.45!important;color:#b8c7d1!important
  }
  body.afm-desktop-v4.afm-diretta-gol .games{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:14px!important;margin-top:0!important
  }
  body.afm-desktop-v4.afm-diretta-gol .game{
    min-height:170px!important;
    padding:18px!important;
    border-radius:17px!important;
    border:1px solid rgba(120,156,183,.22)!important;
    background:linear-gradient(180deg,#081d2b,#061722)!important;
    box-shadow:0 14px 34px rgba(0,0,0,.16)!important;
  }
  body.afm-desktop-v4.afm-diretta-gol .game:has(.live-dot){
    border-color:rgba(230,191,84,.62)!important;
    background:
      radial-gradient(circle at 50% -10%,rgba(230,191,84,.10),transparent 38%),
      linear-gradient(180deg,#0a2637,#071824)!important;
    box-shadow:0 0 0 1px rgba(230,191,84,.10) inset,0 16px 38px rgba(0,0,0,.20)!important
  }
  body.afm-desktop-v4.afm-diretta-gol .game-top{
    margin-bottom:15px!important;font-size:12px!important;line-height:1.3!important;color:#b8c7d1!important;font-weight:800!important
  }
  body.afm-desktop-v4.afm-diretta-gol .live-dot{
    width:10px!important;height:10px!important;margin-right:7px!important;box-shadow:0 0 0 4px rgba(230,83,83,.10)!important
  }
  body.afm-desktop-v4.afm-diretta-gol .teams{
    grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;
    gap:14px!important
  }
  body.afm-desktop-v4.afm-diretta-gol .team{
    gap:10px!important;font-size:16px!important;line-height:1.25!important;color:#f3f6f8!important;font-weight:900!important
  }
  body.afm-desktop-v4.afm-diretta-gol .team img{
    width:42px!important;height:42px!important
  }
  body.afm-desktop-v4.afm-diretta-gol .score{
    min-width:88px!important;
    padding:8px 10px!important;
    border-radius:12px!important;
    background:rgba(230,191,84,.08)!important;
    font-size:30px!important;line-height:1!important;color:#f0ca65!important;text-align:center!important
  }
  body.afm-desktop-v4.afm-diretta-gol .events{
    margin-top:14px!important;padding-top:11px!important;
    border-color:rgba(122,154,178,.16)!important;
    font-size:12px!important;line-height:1.55!important;color:#d0dae1!important
  }
  body.afm-desktop-v4.afm-diretta-gol .event{padding:3px 0!important}
  body.afm-desktop-v4.afm-diretta-gol .empty{
    grid-column:1/-1!important;
    min-height:170px!important;
    display:grid!important;place-items:center!important;
    padding:28px!important;
    border:1px solid rgba(130,160,182,.16)!important;
    border-radius:17px!important;
    background:#071925!important;
    color:#b9c8d2!important;
    font-size:14px!important;line-height:1.6!important
  }
  body.afm-desktop-v4.afm-diretta-gol .empty strong{font-size:18px!important;color:#f0f3f5!important}
  body.afm-desktop-v4.afm-diretta-gol .back-link{font-size:12px!important;margin-bottom:12px!important}

  /* Reconfirmations / releases */
  body.afm-desktop-v4.afm-reconfirmations main.s,
  body.afm-desktop-v4.afm-releases main.s{max-width:1120px!important}
  body.afm-desktop-v4.afm-reconfirmations .p,
  body.afm-desktop-v4.afm-releases .p{min-height:48px!important;padding:6px 9px!important}
  body.afm-desktop-v4.afm-reconfirmations .p img,
  body.afm-desktop-v4.afm-releases .p img{width:34px!important;height:34px!important}
  body.afm-desktop-v4.afm-reconfirmations .pMain>b,
  body.afm-desktop-v4.afm-releases .pMain>b{font-size:12px!important}
  body.afm-desktop-v4.afm-reconfirmations .pMain>small,
  body.afm-desktop-v4.afm-releases .pMain>small{font-size:10px!important}
  body.afm-desktop-v4.afm-reconfirmations .pStats small,
  body.afm-desktop-v4.afm-releases .pStats small{font-size:9.5px!important}
  body.afm-desktop-v4.afm-reconfirmations .pStats b,
  body.afm-desktop-v4.afm-releases .pStats b{font-size:11px!important}
  body.afm-desktop-v4.afm-releases .p button{font-size:11px!important;height:34px!important}

  /* Lineup history */
  body.afm-desktop-v4.afm-lineup-history .list{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  body.afm-desktop-v4.afm-lineup-history .top .back{font-size:11px!important}
  body.afm-desktop-v4.afm-lineup-history .sub,
  body.afm-desktop-v4.afm-lineup-history .meta{font-size:10px!important}
  body.afm-desktop-v4.afm-lineup-history .pill{font-size:10px!important;padding:5px 8px!important}
  body.afm-desktop-v4.afm-lineup-history .match{font-size:11px!important;min-height:50px!important}
  body.afm-desktop-v4.afm-lineup-history .box small{font-size:9.5px!important}
  body.afm-desktop-v4.afm-lineup-history .box strong{font-size:12px!important}
  body.afm-desktop-v4.afm-lineup-history .subs{font-size:10px!important}

  /* Rules / privacy / secondary pages */
  body.afm-desktop-v4 .rule-card p,
  body.afm-desktop-v4 .rule-card li{font-size:13px!important;line-height:1.65!important}
  body.afm-desktop-v4 .privacy-card p,
  body.afm-desktop-v4 .privacy-card li{font-size:13px!important;line-height:1.6!important}
  body.afm-desktop-v4 .privacy-card a{font-size:11px!important}
  body.afm-desktop-v4 .rules-nav a{font-size:11px!important}
  body.afm-desktop-v4 .profile-card label,
  body.afm-desktop-v4 .status-line{font-size:11px!important}

  /* Market hub */
  body.afm-desktop-v4 .hero .ey{font-size:11px!important}
  body.afm-desktop-v4 main.shell>.hero p{font-size:13px!important}
  body.afm-desktop-v4 main.shell>.grid .card small{font-size:11px!important;line-height:1.45!important}
  body.afm-desktop-v4 main.shell>.grid .card .go{font-size:12px!important}
  body.afm-desktop-v4 main.shell>.note{font-size:11px!important}

  /* Notifications */
  body.afm-desktop-v4 .mark-all{font-size:11px!important;min-height:40px!important}
  body.afm-desktop-v4 .notice-kpis small{font-size:10px!important}
  body.afm-desktop-v4 .notice-kpis strong{font-size:14px!important}
  body.afm-desktop-v4 .notice-filters button{font-size:11px!important;min-height:38px!important}
  body.afm-desktop-v4 .notice-card h2{font-size:14px!important}
  body.afm-desktop-v4 .notice-card p{font-size:12px!important;line-height:1.5!important}
  body.afm-desktop-v4 .notice-card time,
  body.afm-desktop-v4 .notice-card .dot{font-size:10px!important}
  body.afm-desktop-v4 .notice-card button{font-size:11px!important;min-height:36px!important}
  body.afm-desktop-v4 .empty-state{font-size:11px!important}

  /* Profile */
  body.afm-desktop-v4 .profile-hero p{font-size:12px!important}
  body.afm-desktop-v4 .profile-stats small{font-size:10px!important}
  body.afm-desktop-v4 .profile-stats strong{font-size:13px!important}
  body.afm-desktop-v4 .profile-card a[href="/privacy.html"]{font-size:11px!important}

  /* Player */
  body.afm-desktop-v4 .player-hero p{font-size:12px!important}
  body.afm-desktop-v4 .favorite-btn{font-size:11px!important;min-height:38px!important}
  body.afm-desktop-v4 .player-badges span{font-size:10px!important}
  body.afm-desktop-v4 .info-grid small,
  body.afm-desktop-v4 .player-stat-highlight small{font-size:10px!important}
  body.afm-desktop-v4 .info-grid strong{font-size:12px!important}
  body.afm-desktop-v4 .next-note{font-size:11px!important}
  body.afm-desktop-v4 #ownerships small{font-size:10px!important}
  body.afm-desktop-v4 #ownerships b{font-size:12px!important}

  /* Cups */
  body.afm-desktop-v4 .back-cups{font-size:11px!important}
  body.afm-desktop-v4 .cups-hero small,
  body.afm-desktop-v4 .cup-group-head small,
  body.afm-desktop-v4 .cup-card-top small,
  body.afm-desktop-v4 .cup-detail-head small,
  body.afm-desktop-v4 .cup-preview-grid small,
  body.afm-desktop-v4 .cup-premium-copy small,
  body.afm-desktop-v4 .cup-side-card small,
  body.afm-desktop-v4 .cup-brand-seal span{font-size:10px!important}
  body.afm-desktop-v4 .cups-hero p,
  body.afm-desktop-v4 .cup-group-head p,
  body.afm-desktop-v4 .cup-detail-head p,
  body.afm-desktop-v4 .cup-preview-message span,
  body.afm-desktop-v4 .cup-premium-copy p{font-size:12px!important}
  body.afm-desktop-v4 .preview-pill,
  body.afm-desktop-v4 .cup-meta b,
  body.afm-desktop-v4 .cup-side-stat span{font-size:10px!important}
  body.afm-desktop-v4 .cup-tabs button{font-size:11px!important;min-height:40px!important}
  body.afm-desktop-v4 .cup-match{font-size:12px!important}
  body.afm-desktop-v4 .cup-table-row .team{font-size:12px!important}
  body.afm-desktop-v4 .cup-table-row span{font-size:10px!important}

  /* Diretta Gol */
  body.afm-desktop-v4 .dg-head p{font-size:12px!important}
  body.afm-desktop-v4 .game-top{font-size:11px!important}
  body.afm-desktop-v4 .events{font-size:11px!important;line-height:1.45!important}

  /* Floating assistant: compact icon, no long pill over content */
  .afm-help-launch{
    right:18px!important;bottom:18px!important;
    width:52px!important;height:52px!important;min-height:52px!important;
    padding:0!important;justify-content:center!important;gap:0!important
  }
  body.afm-desktop-v4 .afm-help-launch{
    left:174px!important;right:auto!important;bottom:18px!important
  }
  .afm-help-launch>span{display:none!important}
  .afm-help-robot{width:38px!important;height:38px!important}
  .afm-help-panel{right:18px!important;bottom:82px!important}
  body.afm-desktop-v4 .afm-help-panel{
    left:252px!important;right:auto!important;bottom:18px!important
  }
}

/* Auction desktop */
@media (min-width:901px){
  .app .brand small{font-size:11px!important}
  .app .exitBtn{font-size:12px!important}
  .app .livecopy .eyebrow{font-size:10px!important}
  .app .livecopy h1{font-size:16px!important}
  .app .metaChip,.app .online,.app .livebar .hostPanel .runtimeMsg{font-size:10px!important}
  .app .livebar .hostPanel button,.app .livebar .hostPanel select{font-size:10px!important;height:32px!important}
  .app #viewAsta>.creditRank .creditRankItem{min-height:28px!important;padding:5px 8px 5px 18px!important}
  .app #viewAsta>.creditRank .creditRankItem b,
  .app #viewAsta>.creditRank .creditRankItem strong{font-size:11px!important}
  .app .stat small,.app .timerWrap small,.app .auctionbox small{font-size:11px!important}
  .app .offerTop .label,.app .offerTop .max{font-size:11px!important}
  .app .offerButtons button{font-size:12px!important;height:44px!important}
  .app .squadHead small{font-size:10px!important}
  .app .squadHead strong{font-size:13px!important}
  .app #viewAsta>.squad .role span{font-size:10px!important}
  .app #viewAsta>.squad .role b{font-size:12px!important}
  .app #viewAsta>.squad #finishTeamBtn{font-size:11px!important;height:36px!important}
  .app .desktopListoneHead b{font-size:11px!important}
  .app .desktopListoneSearch input{font-size:11px!important;height:34px!important}
  .app .desktopListonePlayer{min-height:44px!important;grid-template-columns:32px minmax(0,1fr) 24px!important}
  .app .desktopListonePlayer img{width:32px!important;height:32px!important}
  .app .desktopListonePlayer b{font-size:10.5px!important}
  .app .desktopListonePlayer small{font-size:9.5px!important}
  .app .desktopListonePlayer strong{font-size:10px!important}
  .app .desktopPurchaseRow{height:38px!important}
  .app .desktopPurchaseRow b,.app .desktopPurchaseRow strong{font-size:10.5px!important}
  .app .desktopPurchaseRow small{font-size:9.5px!important}
  .app .homeRostersHead b{font-size:11px!important}
  .app .homeRostersHead small{font-size:10px!important}
  .app .miniRosterColumn{width:122px!important;flex-basis:122px!important;min-width:122px!important}
  .app .miniPlayer b,.app .miniPlayer strong{font-size:10px!important}
  .app .miniRosterColumn .rosterClub{min-height:30px!important;grid-template-columns:20px minmax(0,1fr) auto!important}
  .app .miniRosterColumn .rosterClub img{width:20px!important;height:20px!important}
  .app .miniRosterColumn .rosterClub b{font-size:10px!important}
  .app .miniRosterColumn .rosterClub small{font-size:9px!important}
  .app .miniRosterColumn .rosterCredits{font-size:11px!important}
  .app .miniRosterColumn .rosterCredits small{font-size:9px!important}
  .app .miniRosterColumn .roleHeader{height:20px!important;font-size:9px!important}
  .app .miniRosterColumn .playerLine{min-height:22px!important;grid-template-columns:16px minmax(0,1fr) auto!important}
  .app .miniRosterColumn .playerLine img{width:16px!important;height:16px!important}
  .app .miniRosterColumn .playerLine b,
  .app .miniRosterColumn .playerLine .buyPrice{font-size:9.5px!important}
  .app .sectionCard>p{font-size:11px!important}
  .app .searchLine input,.app .searchLine select{font-size:12px!important}
  .app .dataRow{min-height:68px!important}
  .app .dataRow b{font-size:12px!important}
  .app .dataRow small{font-size:10px!important}
  .app .auctionNav button{font-size:11px!important}
/* Asta Live desktop v945 — override finale dopo il CSS dedicato */
  .app #viewAsta.active{
    display:block!important;
    position:relative!important;
    width:min(1400px,calc(100vw - 8px))!important;
    margin:10px auto 0!important
  }
  .app #viewAsta>.stage,
  .app #viewAsta>.offerDock{
    position:relative!important;
    width:calc(100% - 450px)!important;
    max-width:980px!important;
    min-width:760px!important;
    margin-left:auto!important;
    margin-right:auto!important
  }
  .app .playerHero{grid-template-columns:200px minmax(0,1fr) 145px!important;min-height:228px!important}
  .app .portrait{height:200px!important}
  .app .pinfo h2{font-size:46px!important}
  .app .timer{width:136px!important;height:136px!important;font-size:60px!important}
  .app .price{font-size:48px!important}
  .app .leader img{width:46px!important;height:46px!important}
  .app .leader b{font-size:23px!important}
  .app #viewAsta>.offerDock{transform:none!important;margin-top:10px!important}
  .app .offerButtons button{font-size:12px!important;height:44px!important}

  .app #viewAsta>.creditRank{
    position:absolute!important;
    left:0!important;
    top:0!important;
    width:215px!important;
    max-width:215px!important;
    max-height:520px!important;
    padding:10px!important
  }
  .app #viewAsta>.creditRank .creditRankItem{
    min-height:34px!important;
    padding:6px 10px 6px 20px!important
  }
  .app #viewAsta>.creditRank .creditRankItem b,
  .app #viewAsta>.creditRank .creditRankItem strong{font-size:12px!important}

  .app #viewAsta>.squad{
    position:absolute!important;
    right:0!important;
    top:0!important;
    width:205px!important;
    max-width:205px!important
  }
  .app #viewAsta>.desktopListoneDrawer,
  .app #viewAsta>.desktopPurchasesDrawer{
    position:absolute!important;
    right:0!important;
    left:auto!important;
    top:260px!important;
    width:205px!important;
    max-width:205px!important
  }
  .app #viewAsta>.squad #finishTeamBtn{font-size:10px!important;height:38px!important}

  .app #viewAsta>.homeRosters{
    position:relative!important;
    left:50%!important;
    transform:translateX(-50%)!important;
    margin:14px 0 0!important;
    width:calc(100vw - 12px)!important;
    max-width:none!important
  }
  .app .miniRosterColumn{
    width:202px!important;
    flex-basis:202px!important;
    min-width:202px!important
  }
  .app .miniRosterColumn .rosterClub{
    min-height:76px!important;
    grid-template-columns:36px minmax(0,1fr) auto!important;
    padding:9px!important
  }
  .app .miniRosterColumn .rosterClub img{width:36px!important;height:36px!important}
  .app .miniRosterColumn .rosterClub .miniRosterIdentity>b{
    font-size:20px!important;
    color:#f2c14e!important;
    font-weight:1000!important
  }
  .app .miniRosterSummary{
    display:flex!important;
    flex-wrap:wrap!important;
    gap:4px!important;
    margin-top:7px!important
  }
  .app .miniRosterCount,
  .app .miniSlot{font-size:11px!important;font-weight:1000!important}
  .app .miniRosterColumn .rosterCredits{font-size:16px!important}
  .app .miniRosterColumn .rosterCredits small{font-size:10px!important}
  .app .miniRosterPlayers{display:grid!important}
  .app .miniRosterPlayer{min-height:30px!important}
  .app .miniRosterPlayer b{font-size:11.5px!important}
  .app .miniRosterPlayer strong{font-size:10.5px!important}
}

/* Market envelopes desktop */
@media (min-width:901px){
  body.afm-market-envelopes>.shell .hero #marketMeta{font-size:11px!important}
  body.afm-market-envelopes>.shell .stat small{font-size:10px!important}
  body.afm-market-envelopes>.shell .toolbar input,body.afm-market-envelopes>.shell .toolbar select{height:38px!important;min-height:38px!important;font-size:12px!important}
  body.afm-market-envelopes>.shell .player,body.afm-market-envelopes>.shell .bid,body.afm-market-envelopes>.shell .result{min-height:58px!important;padding:8px 10px!important}
  body.afm-market-envelopes>.shell .player strong,body.afm-market-envelopes>.shell .bid strong,body.afm-market-envelopes>.shell .result strong{font-size:12px!important}
  body.afm-market-envelopes>.shell .player small,body.afm-market-envelopes>.shell .bid small,body.afm-market-envelopes>.shell .result small{font-size:10px!important}
  body.afm-market-envelopes>.shell .offer input{height:36px!important;min-height:36px!important;font-size:12px!important}
  body.afm-market-envelopes>.shell .btn{height:36px!important;min-height:36px!important;font-size:11px!important}
}

/* Admin desktop */
@media (min-width:901px){
  body.afm-admin-desktop .afm-admin-brand small{font-size:10px!important}
  body.afm-admin-desktop .afm-admin-group-label{font-size:10px!important}
  body.afm-admin-desktop .afm-admin-link{font-size:12px!important;min-height:40px!important}
  body.afm-admin-desktop .admin-app-tile strong{font-size:14px!important}
  body.afm-admin-desktop .admin-app-tile small{font-size:11px!important}
  body.afm-admin-desktop .admin-panel-back,
  body.afm-admin-desktop .admin-app-head small{font-size:11px!important}
  body.afm-admin-desktop .admin-quick-strip a{font-size:11px!important;min-height:46px!important}
  body.afm-admin-desktop .admin-card label{font-size:11px!important}
  body.afm-admin-desktop .admin-card input,
  body.afm-admin-desktop .admin-card select,
  body.afm-admin-desktop .admin-card button{font-size:12px!important}
  body.afm-admin-desktop .admin-club strong{font-size:13px!important}
  body.afm-admin-desktop .admin-club small{font-size:10px!important}
  body.afm-admin-desktop .admin-jump-nav a,
  body.afm-admin-desktop .admin-jump-nav button{font-size:11px!important}
  body.afm-admin-desktop .admin-section-title small{font-size:10px!important}
  body.afm-admin-desktop .admin-status-kpis small,
  body.afm-admin-desktop .admin-priority-kpis small,
  body.afm-admin-desktop .admin-secondary-kpis small{font-size:10px!important}
  body.afm-admin-desktop .admin-status-kpis strong,
  body.afm-admin-desktop .admin-secondary-kpis strong{font-size:13px!important}
  body.afm-admin-desktop .admin-status-line strong,
  body.afm-admin-desktop .admin-day-row strong,
  body.afm-admin-desktop .admin-day-compact strong{font-size:12px!important}
  body.afm-admin-desktop .admin-status-line small,
  body.afm-admin-desktop .admin-day-row small,
  body.afm-admin-desktop .admin-day-compact small{font-size:10px!important}
  body.afm-admin-desktop .admin-status-stat span{font-size:9px!important}
  body.afm-admin-desktop .admin-status-stat b{font-size:12px!important}
  body.afm-admin-desktop .admin-status-pill{font-size:10px!important}
  body.afm-admin-desktop .admin-division-stats span{font-size:10px!important}
  body.afm-admin-desktop .admin-division-stats b{font-size:13px!important}
  body.afm-admin-desktop .admin-quick-actions a{font-size:11px!important}
  body.afm-admin-desktop .admin-day-compact button{font-size:11px!important}
  body.afm-admin-desktop .quick-result-row strong{font-size:11px!important}
  body.afm-admin-desktop .quick-result-row small{font-size:10px!important}
  body.afm-admin-desktop .admin-health-ok{font-size:11px!important}
  body.afm-admin-desktop .f-card label{font-size:11px!important}
  body.afm-admin-desktop .movement small,
  body.afm-admin-desktop .pen-row small{font-size:10px!important}
  body.afm-admin-desktop .movement b,
  body.afm-admin-desktop .pen-row strong{font-size:12px!important}
  body.afm-admin-desktop .f-actions a{font-size:11px!important;min-height:40px!important}
  body.afm-admin-desktop .empty-f{font-size:11px!important}
}

/* Public tour desktop */
@media (min-width:901px){
  body.afm-tour-public .brand small{font-size:10px!important}
  body.afm-tour-public .live-pill{font-size:10px!important}
  body.afm-tour-public .hero-stat small{font-size:10px!important}
  body.afm-tour-public .section-head .eyebrow{font-size:10px!important}
  body.afm-tour-public .section-head p{font-size:12px!important}
  body.afm-tour-public .value-card strong{font-size:13px!important}
  body.afm-tour-public .value-card p{font-size:11px!important}
  body.afm-tour-public .league-live{font-size:10px!important}
  body.afm-tour-public .league-card small{font-size:11px!important}
  body.afm-tour-public .search-result strong{font-size:12px!important}
  body.afm-tour-public .search-result small{font-size:10px!important}
  body.afm-tour-public .stage-title small{font-size:10px!important}
  body.afm-tour-public .stage-tabs button{font-size:11px!important;min-height:36px!important}
  body.afm-tour-public .standings-head{font-size:10px!important}
  body.afm-tour-public .standings-row{font-size:12px!important;min-height:48px!important}
  body.afm-tour-public .match{font-size:12px!important;min-height:48px!important}
  body.afm-tour-public .hold-hint{font-size:10px!important}
  body.afm-tour-public .show-more-btn{font-size:11px!important;min-height:38px!important}
  body.afm-tour-public .team-card{min-height:64px!important}
  body.afm-tour-public .team-card strong{font-size:12px!important}
  body.afm-tour-public .team-card small{font-size:10px!important}
  body.afm-tour-public .empty{font-size:11px!important}
  body.afm-tour-public .honour{font-size:11px!important}
  body.afm-tour-public .final-cta p{font-size:12px!important}
  body.afm-tour-public .public-note{font-size:10px!important}
}

/* Public club desktop */
@media (min-width:901px){
  body.afm-club-public .shellx{max-width:1180px!important;padding:16px!important}
  body.afm-club-public .top{margin-bottom:12px!important}
  body.afm-club-public .brand img{width:52px!important;height:52px!important}
  body.afm-club-public .brand strong{font-size:18px!important}
  body.afm-club-public .brand small{font-size:10px!important}
  body.afm-club-public .btn{font-size:12px!important;min-height:40px!important}
  body.afm-club-public .hero,
  body.afm-club-public .panel{padding:16px!important;border-radius:14px!important;margin-bottom:10px!important}
  body.afm-club-public .hero h1{font-size:32px!important}
  body.afm-club-public .hero p{font-size:12px!important}
  body.afm-club-public .club-logo{width:74px!important;height:74px!important}
  body.afm-club-public .stats{gap:8px!important;margin-top:14px!important}
  body.afm-club-public .stats div{padding:10px!important}
  body.afm-club-public .stats small{font-size:10px!important}
  body.afm-club-public .stats b{font-size:14px!important}
  body.afm-club-public .panel h2{font-size:18px!important;margin-bottom:10px!important}
  body.afm-club-public .row{
    grid-template-columns:34px minmax(0,1.35fr) minmax(120px,1fr) 40px!important;
    min-height:48px!important;padding:8px 2px!important;font-size:12px!important
  }
  body.afm-club-public .match{min-height:48px!important;padding:9px 2px!important;font-size:12px!important}
  body.afm-club-public .movement{min-height:48px!important;padding:9px 2px!important;font-size:12px!important}
  body.afm-club-public .empty{font-size:11px!important}
}
/* AFM v1184 — patch finale nel foglio caricato per ultimo.
   Tablet orizzontali 901–1099: asta reale senza sovrapposizione pannelli.
   Soltanto geometria: non influisce su timer, offerte o eventi. */
@media (min-width:901px) and (max-width:1199px){
 html,html body:has(.app){min-width:0!important;max-width:100%!important;overflow-x:clip!important}
 html body .app #viewAsta.active{
   display:grid!important;position:relative!important;
   width:calc(100vw - 16px)!important;max-width:100%!important;min-width:0!important;
   margin:4px auto 0!important;
   grid-template-columns:minmax(145px,17vw) minmax(0,1fr) minmax(145px,17vw)!important;
   grid-auto-rows:min-content!important;gap:8px!important;
   align-items:start!important;justify-content:stretch!important;
 }
 html body .app #viewAsta.active>.creditRank{
   position:absolute!important;left:0!important;right:auto!important;top:0!important;
   grid-column:auto!important;grid-row:auto!important;
   width:clamp(145px,17vw,202px)!important;max-width:202px!important;min-width:0!important;
   max-height:440px!important;overflow-y:auto!important;margin:0!important;padding:7px!important;
 }
 html body .app #viewAsta.active>.stage{
   position:relative!important;left:auto!important;right:auto!important;top:auto!important;
   grid-column:2!important;grid-row:1!important;
   width:100%!important;max-width:100%!important;min-width:0!important;
   margin:0!important;transform:none!important;justify-self:stretch!important;
 }
 html body .app #viewAsta.active>.offerDock{
   position:relative!important;left:auto!important;right:auto!important;top:auto!important;
   grid-column:2!important;grid-row:2!important;
   width:100%!important;max-width:100%!important;min-width:0!important;
   margin:0!important;transform:none!important;justify-self:stretch!important;
 }
 html body .app #viewAsta.active>.squad{
   position:absolute!important;left:auto!important;right:0!important;top:0!important;
   grid-column:auto!important;grid-row:auto!important;
   width:clamp(145px,17vw,202px)!important;max-width:202px!important;min-width:0!important;
   margin:0!important;padding:7px!important;
 }
 html body .app #viewAsta.active>.homeRosters{
   position:relative!important;left:auto!important;right:auto!important;top:auto!important;
   grid-column:1/-1!important;grid-row:3!important;
   width:100%!important;max-width:100%!important;min-width:0!important;
   transform:none!important;margin:6px 0 0!important;
 }
 html body .app #viewAsta.active>.desktopListoneDrawer,
 html body .app #viewAsta.active>.desktopPurchasesDrawer{
   position:absolute!important;left:auto!important;right:0!important;
   width:min(200px,22vw)!important;max-width:200px!important;min-width:0!important;
   top:210px!important;
 }
}