/* Shared pitch identity. Loaded after page styles to avoid divergent mobile themes. */
:root {
    --fi-game-display: "Bahnschrift SemiCondensed", "Arial Narrow Bold", Impact, Haettenschweiler, sans-serif;
    --fi-game-copy: Bahnschrift, "Trebuchet MS", "Segoe UI", sans-serif;
    --fi-electric-orange:#ff7a18;
    --fi-sun:#ffd447;
    --fi-neon:#77e35d;
}

html body { font-family:var(--fi-game-copy) !important; }
html body :is(h1,h2,h3,.dashboard-brand,.market-eyebrow,.market-kicker,.trade-eyebrow,.section-title,.panel-title,.player-name) {
    font-family:var(--fi-game-display) !important; font-stretch:condensed; font-weight:900 !important; letter-spacing:.015em;
}
html body :is(button,.btn,a,.badge,.pill,label,select) { font-family:var(--fi-game-copy) !important; }
html[data-theme="light"] body:not(.auth-page):not(.fi-no-pitch) {
    color: #18382b;
    background: radial-gradient(ellipse at 15% 0, #1c5137 0, transparent 48rem),
        repeating-linear-gradient(90deg, #ffffff02 0 10%, transparent 10% 20%),
        linear-gradient(145deg, #113c27, #082b1c 58%, #061f15) !important;
    background-attachment: fixed !important;
    min-height: 100dvh;
}
html[data-theme="light"] body:not(.auth-page) :is(main,.page,.container)>:is(h1,h2,h3),
html[data-theme="light"] body:not(.auth-page)>h1 { color: #f3faf5 !important; }

/* One real link component, independent of Font Awesome and legacy back-arrow rules. */
html[data-theme="light"] body a.fi-dashboard-back[href="/dashboard"]:any-link {
    position: static !important; inset: auto !important; transform: none !important;
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
    flex: 0 0 auto !important; gap: 8px !important;
    width: auto !important; max-width: 100% !important; min-width: 0 !important;
    min-height: 44px !important; height: auto !important; padding: 10px 13px !important;
    margin: 0 !important; border: 1px solid #a9c6b5 !important; border-radius: 12px !important;
    background: #f2f8f3 !important; color: #133e29 !important;
    font: 700 13px/1.3 Arial, sans-serif !important;
    white-space: nowrap !important; text-decoration: none !important;
    text-overflow: clip !important; overflow: visible !important; box-shadow: 0 2px 6px #04170d14 !important;
}
html[data-theme="light"] body a.fi-dashboard-back::before,
html[data-theme="light"] body a.fi-dashboard-back::after { content: none !important; }
html[data-theme="light"] body a.fi-dashboard-back[href="/dashboard"]:any-link span { color: inherit !important; display: inline !important; font:inherit !important; }
html[data-theme="light"] body a.fi-dashboard-back svg { width: 18px; height: 18px; flex: 0 0 18px; }
html[data-theme="light"] body a.fi-dashboard-back:hover { background: #d9eddf !important; }
html body :is(a,button,input,select,textarea):focus-visible { outline: 3px solid #d29f31 !important; outline-offset: 3px; }

/* Brighter arcade accents; orange remains readable instead of dusty brown. */
html[data-theme="light"] body:not(.auth-page) :is(.role-p,.dock-progress,.progress-pill,.status-pill.pending,.warning,.orange-card) {
    color:#3a1800 !important; border-color:#ff9e3d !important; background:linear-gradient(145deg,#ffd447,#ff861c) !important;
    box-shadow:0 6px 16px #ff7a1838 !important;
}
html[data-theme="light"] body:not(.auth-page) :is(.hero-cta,.submit-btn,.apply-filters,.btn-primary) {
    color:#071b11 !important; border-color:#69db73 !important;
    background:linear-gradient(135deg,#b8f45f,#43d979) !important;
    box-shadow:0 8px 20px #27b85f42 !important;
}

/* Cards read like game tiles: bright surfaces, strong edges and clear hierarchy. */
html[data-theme="light"] body:not(.auth-page) :is(.card,.panel,.dashboard-panel,.content-card,.role-section,.table-panel,.stat-card,.metric) {
    border:1px solid #aacbb3 !important; border-top:5px solid #2ac76f !important;
    background:linear-gradient(145deg,#ffffff,#eaf6e9) !important;
    box-shadow:0 12px 28px #001b1029 !important;
}
html[data-theme="light"] body:not(.auth-page) :is(.card,.panel,.dashboard-panel,.content-card,.role-section,.table-panel,.stat-card,.metric):nth-of-type(4n+2){border-top-color:#ff7a18 !important;background:linear-gradient(145deg,#fffdf7,#fff0c9) !important}
html[data-theme="light"] body:not(.auth-page) :is(.card,.panel,.dashboard-panel,.content-card,.role-section,.table-panel,.stat-card,.metric):nth-of-type(4n+3){border-top-color:#3c8df0 !important;background:linear-gradient(145deg,#fbfdff,#deeffd) !important}
html[data-theme="light"] body:not(.auth-page) :is(.card,.panel,.dashboard-panel,.content-card,.role-section,.table-panel,.stat-card,.metric):nth-of-type(4n){border-top-color:#9b65db !important;background:linear-gradient(145deg,#fffaff,#eadcf8) !important}
html[data-theme="light"] body:not(.auth-page) :is(.card,.panel,.dashboard-panel,.content-card,.role-section,.table-panel) :is(h1,h2,h3,h4,strong){color:#123a28 !important}
html[data-theme="light"] body:not(.auth-page) :is(.eyebrow,.kicker,.market-kicker,.trade-eyebrow){font-weight:900 !important;letter-spacing:.11em !important}

/* Roster and listone share the same collectible-player visual language. */
html[data-theme="light"] body.roster-page .roster-heading{padding:18px 20px;border:1px solid #5d9d71;border-radius:22px;background:radial-gradient(circle at 95% 0,#ffce4933,transparent 13rem),linear-gradient(135deg,#164f32,#0b3020) !important;box-shadow:0 15px 34px #00180e45}
html[data-theme="light"] body.roster-page .roster-heading :is(span,h1,strong){color:#fff !important}.roster-page .roster-total{background:#ffcf3d !important;color:#392300 !important;border:1px solid #ffe899 !important}
html[data-theme="light"] body.roster-page .role-section{overflow:hidden}.roster-page .role-header{border-bottom:1px solid #bad3c0 !important}.roster-page .role-header h2{font-size:24px !important}.roster-page .role-count{color:#133b28 !important;background:#fff !important;border:1px solid #a9c9b1 !important}
html[data-theme="light"] body.roster-page .player-card{border:1px solid #9dbfa6 !important;background:#fff !important;box-shadow:0 7px 18px #0b3f221f !important;transition:transform .16s,box-shadow .16s}
html[data-theme="light"] body.roster-page .player-card:active{transform:scale(.985)}.roster-page .player-body h3{font-family:var(--fi-game-display) !important;font-weight:900 !important;color:#123b28 !important}.roster-page .player-meta,.roster-page .player-meta b{color:#50685b !important}.roster-page .player-footer{border-color:#d7e7da !important}
.roster-page .fan-pill{color:#143d2a !important;background:#d9f3df !important}.roster-page .contract-pill{color:#392356 !important;background:#e9dcf8 !important}.roster-page .value-pill{color:#3b2500 !important;background:#ffd447 !important}
html[data-theme="light"] body.listone-page .hero{border:1px solid #5c9b70 !important;background:radial-gradient(circle at 90% 5%,#ff9b2738,transparent 16rem),linear-gradient(135deg,#164f32,#0a2e1e) !important;box-shadow:0 16px 38px #00190f44 !important}.listone-page .hero :is(h1,p,.eyebrow){color:#fff !important}.listone-page .hero-card{color:#442600 !important;border-color:#f4ca65 !important;background:linear-gradient(145deg,#ffe56d,#ffb62e) !important}.listone-page .hero-card :is(span,strong){color:inherit !important}
html[data-theme="light"] body.listone-page .table-panel{overflow:hidden}.listone-page .table-header{border-bottom:1px solid #b9d3c0 !important}.listone-page .table-button.add{color:#082617 !important;background:linear-gradient(135deg,#a9ee5e,#40d67a) !important}.listone-page .table-button.remove{color:#fff !important;background:linear-gradient(135deg,#f05a58,#ba2f42) !important}

/* News gets the same complete, balanced topbar as the rest of the game. */
.news-topbar-title{display:flex;align-items:center;gap:9px;min-height:44px;padding:7px 11px;border:1px solid #b3cbb9;border-radius:12px;background:#fff}
.news-topbar-title>i{display:grid;width:31px;height:31px;place-items:center;border-radius:9px;color:#fff;background:linear-gradient(145deg,#ff9b25,#ff5f1f)}
.news-topbar-title span{display:grid;text-align:left}.news-topbar-title small{color:#60776a;font-size:9px;font-weight:800;letter-spacing:.09em;text-transform:uppercase}.news-topbar-title strong{color:#123b28;font-size:14px;line-height:1.1}
.news-page .news-coming-soon{border-top:5px solid var(--fi-electric-orange) !important;background:linear-gradient(145deg,#fffaf0,#e5f5e7) !important}
.news-page .news-icon{color:#fff !important;background:linear-gradient(145deg,#ff9f25,#ff5f1f) !important;box-shadow:0 10px 24px #ff651f42 !important}

/* Formation control room. */
.formation-status{display:grid;grid-template-columns:auto auto minmax(0,1fr);gap:9px;align-items:center;padding:10px 13px;border:1px solid #8cb89a;border-radius:16px;background:linear-gradient(135deg,#ecf8e9,#d9efdc);box-shadow:0 8px 20px #00190e1a}
.formation-status>div{display:flex;align-items:baseline;gap:4px;padding:7px 10px;border-radius:11px;background:#123e29;color:#fff}.formation-status>div span{font:900 23px/1 var(--fi-game-display)}.formation-status>div small{color:#cae6d3;font-size:10px;font-weight:800;text-transform:uppercase}.formation-status p{margin:0;color:#234534;font-size:13px;font-weight:700}.formation-status p i{color:#ff681d;margin-right:5px}
.bench-heading{display:grid;gap:2px;padding:15px 16px 10px}.bench-heading span{color:#ff681d;font:900 11px/1 var(--fi-game-copy);letter-spacing:.12em;text-transform:uppercase}.bench-heading strong{color:#143c29;font:900 24px/1.1 var(--fi-game-display)}.bench-heading small{color:#587064;font-size:12px}
.formation-page .pitch{box-shadow:inset 0 0 0 2px #ffffff30,0 15px 35px #00190e35 !important}
.formation-page .player-slot{transition:transform .16s,filter .16s,box-shadow .16s !important}.formation-page .player-slot:hover{filter:saturate(1.15);box-shadow:0 12px 24px #0007 !important}
.formation-page .picker-sheet{border-color:#ff8d27 !important;background:radial-gradient(circle at 100% 0,#ff7a182d,transparent 18rem),linear-gradient(145deg,#123925,#061b12) !important}
.formation-page .picker-player{border-color:#7cad8b55 !important;background:linear-gradient(145deg,#194932,#0b2c1d) !important}.formation-page .picker-player.selected{border-color:#ff8c22 !important;background:linear-gradient(145deg,#5a3514,#16412d) !important}

/* Market: colour signals the destination; copy always stays on an opaque surface. */
html[data-theme="light"] body.market-page .market-hero,
html[data-theme="light"] body.trade-page .trade-hero {
    background: linear-gradient(125deg,#f5f9ed,#dcefdc) !important;
    border: 1px solid #bed6bb !important; box-shadow: 0 16px 36px #00190d24 !important;
}
html[data-theme="light"] body:is(.market-page,.trade-page) :is(.market-hero,.trade-hero) :is(h1,p,.market-eyebrow,.trade-eyebrow) { color: #163e2a !important; }
html[data-theme="light"] body:is(.market-page,.trade-page) :is(.market-balance,.trade-wallet) {
    background: #fff0bf !important; border: 1px solid #d6bc74 !important; border-radius: 18px !important;
}
html[data-theme="light"] body:is(.market-page,.trade-page) :is(.market-balance,.trade-wallet) :is(span,strong,small) { color: #4a370c !important; }
html[data-theme="light"] body.market-page .market-card:nth-child(4n+1) { background: linear-gradient(125deg,#edfff3,#c7ecd6) !important; border-color:#80ba95 !important; }
html[data-theme="light"] body.market-page .market-card:nth-child(4n+2) { background: linear-gradient(125deg,#f5f0ff,#e2d6f7) !important; border-color:#b6a0d3 !important; }
html[data-theme="light"] body.market-page .market-card:nth-child(4n+3) { background: linear-gradient(125deg,#eef9ff,#cde9f5) !important; border-color:#8ab9d2 !important; }
html[data-theme="light"] body.market-page .market-card:nth-child(4n+4) { background: linear-gradient(125deg,#fff8e8,#f6e3b6) !important; border-color:#cfb06a !important; }
html[data-theme="light"] body.market-page .market-card :is(h2,p,.market-kicker,.market-arrow) { color: #203a30 !important; }
html[data-theme="light"] body.market-page .market-card-icon { color:#f4fff8 !important; background:#1b5136 !important; }
html[data-theme="light"] body.market-page .market-guide { background:transparent !important; border:0 !important; box-shadow:none !important; }
html[data-theme="light"] body.market-page .market-guide>div { background:#edf5ed !important; color:#234132 !important; }
html[data-theme="light"] body.market-page .market-guide :is(strong,small) { color:#234132 !important; }
html[data-theme="light"] body.trade-page .trade-list { background:transparent !important; padding:0 !important; }
html[data-theme="light"] body.trade-page .trade-list>h1 { color:#f4fbf5 !important; }
html[data-theme="light"] body.trade-page .trade-tabs { display:flex; gap:8px; padding:6px; border:1px solid #94b69f; background:#eaf4ec !important; }
html[data-theme="light"] body.trade-page .trade-tabs a { flex:1; justify-content:center; color:#163e2a !important; background:#fff !important; border:1px solid #bdd3c3 !important; min-height:44px; }
html[data-theme="light"] body.trade-page .trade-empty { padding:20px; border:1px dashed #a3baab; border-radius:14px; background:#f1f7f2; color:#365542 !important; line-height:1.6; }
html[data-theme="light"] body.trade-page .btn:disabled { opacity:.5; cursor:not-allowed; }
html[data-theme="light"] body.trade-page .card-header { padding:16px 18px !important; }
html[data-theme="light"] body.trade-page .card-header h2 { font-size:18px; }
.trade-page #sceltaGiocatori { margin-top:16px; }
.trade-page #squadraRichiesta { min-height:48px; }
.trade-page .trade-tabs,.trade-page :is(#trattative,#storico,#nuova-offerta,#sceltaGiocatori) { scroll-margin-top:145px; }

@media (max-width:760px) {
    html[data-theme="light"] body:not(.auth-page):not(.fi-no-pitch) { background-attachment:scroll !important; padding-bottom:calc(96px + env(safe-area-inset-bottom)) !important; }
    html[data-theme="light"] body:not(.auth-page) :is(.market-shell,.trade-page .principale) { width:calc(100% - 24px) !important; margin:0 auto !important; padding:12px 0 24px !important; }
    html[data-theme="light"] body:not(.auth-page) :is(.topbar,.market-topbar,.trade-topbar,.csv-topbar,.player-topbar,.page-header) {
        gap:8px !important; flex-wrap:wrap !important; align-items:center !important;
        padding:8px !important; min-height:60px !important; border-radius:16px !important;
    }
    html[data-theme="light"] body a.fi-dashboard-back[href="/dashboard"]:any-link { font-size:12px !important; padding:10px !important; }
    html[data-theme="light"] body.live-lineups-page .live-header:has(.fi-dashboard-back) { grid-template-columns:minmax(0,1fr) 44px !important; }
    html[data-theme="light"] body.live-lineups-page .live-header .fi-dashboard-back { grid-column:1/-1; justify-self:start; }
    html[data-theme="light"] body.market-page .market-club { flex:1 1 90px; max-width:none !important; min-width:0; padding:8px; font-size:12px; }
    html[data-theme="light"] body:not(.auth-page) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea) { font-size:16px !important; }
    html[data-theme="light"] body:not(.auth-page) :is(button,.btn,.table-button,.apply-filters,.reset-filters) { min-height:44px; }
    html[data-theme="light"] body:not(.auth-page) :is(.card,.dashboard-panel,.panel,.market-card,.table-panel) { border-radius:19px !important; box-shadow:0 8px 24px #001a0f22 !important; }
    .news-page .news-shell{width:calc(100% - 24px) !important;margin:0 auto !important;padding:12px 0 24px !important}.news-page .news-topbar{flex-wrap:nowrap !important}.news-topbar-title{margin-left:auto;flex:0 0 auto}.news-page .news-coming-soon{padding:30px 20px !important;border-radius:22px !important}.news-page .news-coming-soon h1{font-size:34px !important;line-height:1.04 !important}
    html[data-theme="light"] body.market-page .market-hero,
    html[data-theme="light"] body.trade-page .trade-hero { padding:23px 19px !important; gap:20px; border-radius:22px !important; }
    html[data-theme="light"] body:is(.market-page,.trade-page) :is(.market-hero,.trade-hero) h1 { font-size:32px !important; line-height:1.08 !important; letter-spacing:-1px; }
    html[data-theme="light"] body:is(.market-page,.trade-page) :is(.market-hero,.trade-hero) p { font-size:15px !important; line-height:1.55; }
    html[data-theme="light"] body.market-page .market-actions { gap:12px; margin-top:16px; }
    html[data-theme="light"] body.market-page .market-card { padding:18px 15px !important; grid-template-columns:44px minmax(0,1fr) 12px; gap:12px; }
    html[data-theme="light"] body.market-page .market-card-icon { width:44px; height:44px; }
    html[data-theme="light"] body.market-page .market-card h2 { font-size:20px !important; line-height:1.2; }
    html[data-theme="light"] body.market-page .market-card p { font-size:14px !important; line-height:1.5; }
    html[data-theme="light"] body.market-page .market-kicker { font-size:11px; letter-spacing:.07em; }
    html[data-theme="light"] body.trade-page .trade-tabs { position:static; flex-wrap:wrap; border-radius:16px; margin:14px 0; }
    html[data-theme="light"] body.trade-page .trade-tabs a { font-size:12px; padding:10px 6px; border-radius:11px; }
    html[data-theme="light"] body.trade-page .trade-list>h1 { font-size:25px !important; text-align:left !important; }
    html[data-theme="light"] body.trade-page .card-body { padding:16px !important; font-size:15px; line-height:1.5; }
    html[data-theme="light"] body.trade-page .form-label { display:block; margin-top:8px; font-weight:700; }
    html[data-theme="light"] body.trade-page select[multiple] { min-height:176px; max-height:none; padding:10px; }
    html[data-theme="light"] body.trade-page .btn { font-size:14px; border-radius:11px; }
    html[data-theme="light"] body.trade-page #sceltaGiocatori button[type=submit],
    html[data-theme="light"] body.trade-page #controffertaForm button[type=submit] { width:100%; min-height:48px; }
    html[data-theme="light"] body.trade-page .trade-list table { background:transparent !important; margin:0; }
    html[data-theme="light"] body.trade-page .trade-list tbody { gap:16px; }
    html[data-theme="light"] body.trade-page .trade-list tbody tr { padding:12px !important; border:1px solid #c2d2c5; border-top:4px solid #6b8cbd; border-radius:16px; background:#f9fcf9 !important; }
    html[data-theme="light"] body.trade-page .trade-list table.table tbody td {
        display:grid !important; grid-template-columns:90px minmax(0,1fr); gap:8px;
        padding:10px 2px !important; font-size:14px !important; line-height:1.45;
        color:#163c29 !important; background:transparent !important; box-shadow:none !important;
        border-bottom:1px solid #dce8df !important;
    }
    html[data-theme="light"] body.trade-page .trade-list td[data-label]::before { content:attr(data-label); color:#52665a; font-size:12px; font-weight:700; }
    html[data-theme="light"] body.trade-page .trade-list table.table td:last-child { display:flex !important; border:0 !important; gap:8px; padding-top:14px !important; }
    html[data-theme="light"] body.trade-page .trade-list td:last-child::before { width:100%; }
    html[data-theme="light"] body.trade-page .trade-list td:last-child .btn { flex:1 1 auto; }
    html[data-theme="light"] body.trade-page .trade-list td .text-truncate { max-width:100% !important; white-space:normal !important; overflow-wrap:anywhere; }
    html[data-theme="light"] body.trade-page .trade-list td .btn-link { grid-column:2; justify-self:start; }
    html[data-theme="light"] body.trade-page .modal-dialog { width:auto !important; max-width:none !important; margin:12px !important; }
    html[data-theme="light"] body.trade-page .modal-content { max-height:calc(100dvh - 24px); }
    html[data-theme="light"] body.trade-page .modal-body { overflow-y:auto; overscroll-behavior:contain; padding:18px; }
    html[data-theme="light"] body.trade-page .modal-header { gap:12px; flex-shrink:0; }
    html[data-theme="light"] body.trade-page .btn-close { min-width:44px; flex-shrink:0; filter:invert(1); }
    html[data-theme="light"] body.listone-page .toolbar { padding:14px !important; }
    html[data-theme="light"] body.listone-page .advanced-filters { display:flex; flex-wrap:wrap; gap:10px; }
    html[data-theme="light"] body.listone-page .advanced-filters>* { min-width:0; flex:1 1 135px; }
    html[data-theme="light"] body.listone-page .filters { flex-wrap:wrap !important; }
    html[data-theme="light"] body.listone-page .filters a { min-height:44px; display:inline-flex; align-items:center; }
    html[data-theme="light"] body.roster-page .page,html[data-theme="light"] body.listone-page .page{width:calc(100% - 20px) !important;margin:0 auto !important;padding:10px 0 24px !important}
    html[data-theme="light"] body.roster-page .roster-heading{display:flex !important;align-items:center !important;flex-direction:row !important;gap:12px;padding:18px 16px !important}.roster-page .roster-heading>div{min-width:0}.roster-page .roster-heading span{font-size:11px !important;letter-spacing:.12em;text-transform:uppercase}.roster-page .roster-heading h1{margin-top:4px !important;font-size:30px !important;line-height:1 !important;overflow-wrap:anywhere}.roster-page .roster-total{margin-left:auto;padding:8px 9px !important;flex:0 0 auto;font-size:10px !important;border-radius:999px !important}
    html[data-theme="light"] body.roster-page .roster{gap:14px !important}.roster-page .role-header{padding:13px 14px !important}.roster-page .role-header p{display:none !important}.roster-page .role-icon{width:46px !important;height:46px !important;flex-basis:46px !important}.roster-page .role-header h2{font-size:22px !important}.roster-page .role-count{padding:7px 9px !important;font-size:10px !important}
    html[data-theme="light"] body.roster-page .players-grid{grid-template-columns:1fr !important;gap:11px !important;padding:12px !important}.roster-page .player-card{grid-template-columns:112px minmax(0,1fr) !important;grid-template-rows:minmax(70px,auto) auto !important;min-height:136px !important;border-radius:18px !important;overflow:hidden}.roster-page .player-photo{grid-row:1/span 2 !important;width:112px !important;height:100% !important;min-height:136px !important}.roster-page .player-photo img{width:102px !important;height:112px !important;object-fit:contain !important;filter:drop-shadow(0 10px 10px #001a1160)}.roster-page .player-photo::after{right:7px !important;bottom:7px !important;width:34px !important;height:34px !important;font-size:16px !important}.roster-page .player-body{padding:15px 13px 4px !important}.roster-page .player-body h3{font-size:22px !important;line-height:1.05 !important;white-space:normal !important}.roster-page .player-meta{margin-top:8px !important;font-size:12px !important}.roster-page .player-footer{align-content:start;justify-content:flex-start !important;gap:5px !important;padding:7px 11px 12px !important}.roster-page :is(.role-pill,.value-pill,.fan-pill,.contract-pill){min-height:25px !important;padding:4px 7px !important;font-size:9px !important}
    html[data-theme="light"] body.listone-page .hero{padding:22px 18px !important;border-radius:22px !important}.listone-page .hero h1{font-size:34px !important;line-height:1 !important}.listone-page .hero>div>p:last-child{font-size:14px !important;line-height:1.5}.listone-page .hero-card{padding:14px !important}.listone-page .hero-card strong{font-size:30px !important}
    html[data-theme="light"] body.listone-page .toolbar{position:relative !important;padding:12px !important;border-radius:18px !important}.listone-page .search-box{min-height:52px !important}.listone-page .filters{display:flex !important;flex-wrap:nowrap !important;gap:7px !important;overflow-x:auto;padding:2px 0 6px;scrollbar-width:none}.listone-page .filter-button{flex:0 0 auto;min-width:58px;min-height:42px !important}.listone-page .filter-button.active{color:#fff !important;background:#14543a !important;box-shadow:0 5px 12px #0c472a38}.listone-page .advanced-filters{display:grid !important;grid-template-columns:1fr 1fr !important}.listone-page .advanced-filters>*{width:100%;min-width:0 !important}.listone-page .advanced-filters :is(.apply-filters,.reset-filters){justify-content:center}
    html[data-theme="light"] body.listone-page .stats-grid{grid-template-columns:1fr 1fr !important;gap:8px !important}.listone-page .stat{min-height:90px !important;padding:12px !important}.listone-page .stat strong{font-size:18px !important}
    .listone-page .mobile-list-legend{display:none !important}.listone-page .table-header{padding:16px !important}.listone-page .table-header h2{font-size:25px !important}.listone-page .table-header>.muted-text{font-size:12px !important}.listone-page .table-wrapper{padding:10px !important;background:transparent !important}.listone-page #playerTable{display:grid !important;gap:13px !important}.listone-page #playerTable>tr{padding:0 13px 13px !important;border:1px solid #9fbfa8 !important;border-top:5px solid #36a768 !important;border-radius:19px !important;background:linear-gradient(145deg,#fff,#e9f5e9) !important;box-shadow:0 8px 20px #062d191f !important;overflow:hidden}.listone-page #playerTable>tr:nth-child(4n+2){border-top-color:#ef8a23 !important;background:linear-gradient(145deg,#fffdf8,#fff0cc) !important}.listone-page #playerTable>tr:nth-child(4n+3){border-top-color:#448bdc !important;background:linear-gradient(145deg,#fff,#e2f0fb) !important}.listone-page #playerTable>tr:nth-child(4n){border-top-color:#9b67d6 !important;background:linear-gradient(145deg,#fff,#ecdef8) !important}.listone-page #playerTable td{grid-template-columns:90px minmax(0,1fr) !important;gap:10px !important;padding:9px 0 !important;background:transparent !important;box-shadow:none !important;border-bottom:1px solid #d3e2d6 !important}.listone-page #playerTable td:first-child{display:block !important;padding:12px 0 !important}.listone-page #playerTable td:first-child::before{display:none !important}.listone-page .player-identity{display:grid !important;grid-template-columns:96px minmax(0,1fr) 20px !important;gap:12px !important;min-height:112px !important}.listone-page .listone-photo{width:96px !important;height:112px !important;object-fit:contain !important;border:2px solid #fff !important;border-radius:16px !important;background:linear-gradient(145deg,#1b593b,#0b3120) !important;box-shadow:0 8px 18px #001b1044 !important}.listone-page .player-name{font-family:var(--fi-game-display) !important;font-size:22px !important;font-weight:900 !important;line-height:1.05 !important;white-space:normal !important;color:#123b29 !important}.listone-page .player-team{display:block;margin-top:7px;color:#52695d !important;font-size:12px !important}.listone-page .player-open-icon{color:#ef6d1e !important;font-size:16px}.listone-page #playerTable td::before{font-size:10px !important;color:#61766a !important}.listone-page #playerTable :is(.role-pill,.value-pill,.fan-pill,.status-pill){font-size:10px !important}.listone-page #playerTable td:last-child{border-bottom:0 !important}.listone-page #playerTable td form,.listone-page #playerTable .table-button{width:100%}
    html body:not(.auth-page):not(.fi-no-smart-dock) .mobile-dock.is-scroll-hidden { transform:translateY(calc(100% + env(safe-area-inset-bottom) + 20px)) !important; pointer-events:none; }
    html body:not(.auth-page).formation-page.player-picker-open .mobile-dock { display:none !important; }
    html body:not(.auth-page).modal-open .mobile-dock { display:none !important; }
    html[data-theme="light"] body.watchlist-page .watchlist-table { display:block; overflow:visible; white-space:normal; background:transparent !important; box-shadow:none; }
    .watchlist-page .watchlist-table thead { display:none; }
    .watchlist-page .watchlist-table tbody { display:grid; gap:12px; }
    html[data-theme="light"] body.watchlist-page .watchlist-table tr { display:block; padding:12px; border-radius:16px; background:#eff7ee !important; }
    .watchlist-page .watchlist-table td { display:grid; grid-template-columns:85px minmax(0,1fr); gap:12px; padding:9px; font-size:14px; overflow-wrap:anywhere; }
    .watchlist-page .watchlist-table td::before { content:attr(data-label); font-weight:700; }
    .formation-page .formation-form{gap:12px !important}.formation-page .toolbar{position:sticky !important;top:77px !important;z-index:65 !important;padding:7px !important;border:1px solid #8fb29a !important;background:#eaf5ebee !important;backdrop-filter:blur(14px)}
    .formation-page .tool-card{border:1px solid #b2cdb8 !important;background:#fff !important}.formation-page .tool-card label,.formation-page .tool-card>span{font-size:10px !important;letter-spacing:.07em;text-transform:uppercase}.formation-page .module-select{font-weight:900;color:#123d28 !important}
    .formation-status{grid-template-columns:1fr 1fr;padding:9px}.formation-status>div{justify-content:center}.formation-status p{grid-column:1/-1;padding:3px 4px;font-size:12px;text-align:center}
    .formation-page .pitch{min-height:680px !important;border-width:4px !important;border-color:#072819 !important;border-radius:24px !important;background:radial-gradient(circle at 50% 50%,#5dec8b24,transparent 38%),repeating-linear-gradient(90deg,#168b51 0 12.5%,#107842 12.5% 25%) !important}
    .formation-page .player-slot{width:72px !important;min-height:82px !important;border:2px solid #ffffffb5 !important;border-radius:16px !important}.formation-page .player-slot .selected-name{display:block !important;max-width:62px !important;overflow:hidden !important;font-size:10px !important;line-height:1.05 !important;text-overflow:ellipsis !important;white-space:nowrap !important;text-shadow:0 2px 4px #000 !important}.formation-page .player-slot:not(.has-player){outline:2px dashed #ffffff55;outline-offset:2px}.formation-page .player-slot:not(.has-player) .role-badge{box-shadow:0 0 0 4px #ffffff24}.formation-page .player-slot.has-player .player-photo{width:50px !important;height:50px !important;border-radius:14px !important}.formation-page .player-slot.has-player{min-height:94px !important}
    .formation-page .layout-grid>.panel+ .panel{background:#edf6ed !important}.formation-page .bench-list{grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:9px !important;padding:10px 12px 15px !important}.formation-page .bench-card{min-height:68px !important;padding:10px !important;border:1px solid #91b69b !important;background:#fff !important}.formation-page .bench-card label{color:#587064 !important;font-size:10px !important}.formation-page .bench-add b{font-size:12px}.formation-page .leadership-panel{border-top:5px solid #8b5cf6 !important}.formation-page .submit-area{position:sticky;bottom:calc(74px + env(safe-area-inset-bottom));z-index:60;padding:9px !important;border-radius:16px;background:#08291cee !important;backdrop-filter:blur(12px)}.formation-page .submit-btn{min-height:54px !important;font-size:17px !important;font-weight:900 !important;text-transform:uppercase;letter-spacing:.035em}
    .formation-page .picker-sheet{max-height:92dvh !important;padding:14px !important}.formation-page .picker-list{max-height:calc(92dvh - 150px) !important}.formation-page .picker-player{grid-template-columns:54px minmax(0,1fr) auto;min-height:76px}.formation-page .picker-player strong{font-size:15px !important}
    html[data-theme="light"] body.listone-page main.page section.table-panel div.table-wrapper table tbody#playerTable>tr{color:#163b29 !important;border:1px solid #9fbfa8 !important;border-top:5px solid #36a768 !important;background:linear-gradient(145deg,#fff,#e9f5e9) !important;box-shadow:0 8px 20px #062d191f !important}
    html[data-theme="light"] body.listone-page main.page section.table-panel div.table-wrapper table tbody#playerTable>tr:nth-child(4n+2){border-top-color:#ef8a23 !important;background:linear-gradient(145deg,#fffdf8,#fff0cc) !important}
    html[data-theme="light"] body.listone-page main.page section.table-panel div.table-wrapper table tbody#playerTable>tr:nth-child(4n+3){border-top-color:#448bdc !important;background:linear-gradient(145deg,#fff,#e2f0fb) !important}
    html[data-theme="light"] body.listone-page main.page section.table-panel div.table-wrapper table tbody#playerTable>tr:nth-child(4n){border-top-color:#9b67d6 !important;background:linear-gradient(145deg,#fff,#ecdef8) !important}
    html[data-theme="light"] body.listone-page main.page #playerTable>tr>td{color:#173c2a !important;background:transparent !important}
    html[data-theme="light"] body.listone-page main.page #playerTable>tr>td :is(span,b,strong,a){color:inherit}
}
@media(prefers-reduced-motion:reduce) {
    html body .mobile-dock,html body .market-card { transition:none !important; }
    html { scroll-behavior:auto !important; }
}

/* Dashboard: stronger separation from the pitch background and richer player impact. */
html[data-theme="light"] body.dashboard-page .hero-scorecard {
    color:#17382a !important;border:1px solid #e0b44d !important;
    background:linear-gradient(145deg,#fff9de,#e6f3df) !important;
    box-shadow:0 16px 36px #00180f38 !important;backdrop-filter:blur(16px);
}
html[data-theme="light"] body.dashboard-page .hero-scorecard :is(.scorecard-label,.scorecard-note,span,small){color:#5b6e61 !important}
html[data-theme="light"] body.dashboard-page .hero-scorecard :is(strong,b){color:#17382a !important}
html[data-theme="light"] body.dashboard-page .hero-scorecard .scorecard-main i{color:#e27a20 !important}
html[data-theme="light"] body.dashboard-page .hero-scorecard .scorecard-breakdown span{border-color:#c9d7c7 !important;background:#fff !important}
.dashboard-page .fan-impact-total{display:grid;grid-template-columns:54px minmax(0,1fr);gap:13px;align-items:center;margin:0 18px 12px;padding:15px;border:1px solid #83b593;border-radius:17px;background:linear-gradient(135deg,#174d34,#0c3222);box-shadow:0 10px 24px #0428192b}
.dashboard-page .fan-impact-total>i{display:grid;width:54px;height:54px;place-items:center;border-radius:16px;color:#372200;background:linear-gradient(145deg,#ffe363,#ffac2e);font-size:22px}
.dashboard-page .fan-impact-total :is(span,strong,small){display:block}.dashboard-page .fan-impact-total span{color:#a8d8b9;font-size:10px;font-weight:900;text-transform:uppercase}.dashboard-page .fan-impact-total strong{margin-top:3px;color:#fff !important;font:900 28px/1 var(--fi-game-display)}.dashboard-page .fan-impact-total small{margin-top:4px;color:#c8dfd0}
.dashboard-page .fan-player{grid-template-columns:28px 48px minmax(0,1fr) auto !important;gap:10px !important;align-items:center !important}
.dashboard-page .fan-photo{width:48px;height:54px;object-fit:contain;border:1px solid #a7c9b1;border-radius:13px;background:linear-gradient(145deg,#e7f4e8,#cbe4d0);filter:drop-shadow(0 6px 7px #00180f35)}

@media(max-width:760px){
    html[data-theme="light"] body.dashboard-page .mobile-club-summary{
        color:#17382a !important;border-color:#76a987 !important;border-top-color:#f09a2c !important;
        background:radial-gradient(circle at 100% 0,#ffb43b35,transparent 12rem),linear-gradient(145deg,#f8fff2,#cfe9d2) !important;
        box-shadow:0 13px 28px #06321f2c !important;
    }
    html[data-theme="light"] body.dashboard-page .mobile-club-summary::after{border-color:#1a714513 !important}
    html[data-theme="light"] body.dashboard-page .mobile-club-identity>span{color:#bd5e13 !important}
    html[data-theme="light"] body.dashboard-page .mobile-club-identity h1{color:#153b29 !important;text-shadow:none !important}
    html[data-theme="light"] body.dashboard-page .mobile-lineup-cta,
    html[data-theme="light"] body.dashboard-page .lineup-primary-cta{
        color:#fff !important;border:1px solid #5d78d8 !important;
        background:linear-gradient(135deg,#634ad7,#237ec9) !important;
        box-shadow:0 9px 22px #253da93d !important;
    }
    html[data-theme="light"] body.dashboard-page .mobile-lineup-cta :is(i,span),
    html[data-theme="light"] body.dashboard-page .lineup-primary-cta :is(i,span){color:#fff !important}
    .dashboard-page .fan-impact-total{margin:0 12px 10px;padding:12px}.dashboard-page .fan-impact-total>i{width:46px;height:46px}.dashboard-page .fan-impact-total{grid-template-columns:46px minmax(0,1fr)}
    .dashboard-page .fan-player{grid-template-columns:24px 52px minmax(0,1fr) auto !important;padding:9px !important}.dashboard-page .fan-photo{width:52px;height:58px}
}

/* v10: viewport pieno, hero stabili e rosa con identità cromatica per ruolo. */
html {
    min-height:100%;
    background:#082b1c;
}
html[data-theme="light"] body:not(.auth-page):not(.fi-no-pitch) {
    min-height:100vh;
    min-height:100dvh;
    background:
        radial-gradient(ellipse at 12% -5%,#236044 0,transparent 45rem),
        repeating-linear-gradient(90deg,rgba(255,255,255,.012) 0 10%,transparent 10% 20%),
        linear-gradient(145deg,#123f2a,#092f20 58%,#061f15) !important;
    background-attachment:fixed!important;
    background-repeat:no-repeat!important;
    background-size:cover!important;
}

html[data-theme="light"] body.listone-page .hero {
    color:#fff!important;
    border-color:#8fc4a1!important;
    background:
        linear-gradient(110deg,rgba(3,20,12,.91),rgba(9,74,42,.62)),
        url('/img/campo-da-calcio.png') center / cover no-repeat!important;
    box-shadow:0 18px 42px rgba(0,14,8,.42)!important;
}
html[data-theme="light"] body.listone-page .hero :is(h1,p,.eyebrow) {
    color:#fff!important;
    text-shadow:0 2px 10px rgba(0,0,0,.62)!important;
}
html[data-theme="light"] body.listone-page .hero .eyebrow {color:#9cf0b1!important}
html[data-theme="light"] body.listone-page .hero-card {
    color:#30220a!important;border-color:#ffe49a!important;
    background:linear-gradient(145deg,#ffe886,#f1b938)!important;
    box-shadow:0 10px 24px rgba(0,0,0,.30)!important;
}

html[data-theme="light"] body.roster-page .roster>.role-section {
    overflow:hidden!important;
    border-width:1px!important;
    border-top-width:6px!important;
    box-shadow:0 14px 34px rgba(0,18,10,.25)!important;
}
html[data-theme="light"] body.roster-page .roster>.role-section:nth-child(1) {
    border-color:#d99316!important;background:linear-gradient(145deg,#fffdf5,#ffe6a4)!important;
}
html[data-theme="light"] body.roster-page .roster>.role-section:nth-child(2) {
    border-color:#327cc8!important;background:linear-gradient(145deg,#fbfdff,#d8ebff)!important;
}
html[data-theme="light"] body.roster-page .roster>.role-section:nth-child(3) {
    border-color:#8055bb!important;background:linear-gradient(145deg,#fdfaff,#eadcf8)!important;
}
html[data-theme="light"] body.roster-page .roster>.role-section:nth-child(4) {
    border-color:#cf4254!important;background:linear-gradient(145deg,#fffafb,#f8dce2)!important;
}
html[data-theme="light"] body.roster-page .roster>.role-section:nth-child(1) .role-header {background:linear-gradient(135deg,#f7bd3d,#dd8217)!important}
html[data-theme="light"] body.roster-page .roster>.role-section:nth-child(2) .role-header {background:linear-gradient(135deg,#4a9be9,#2864b5)!important}
html[data-theme="light"] body.roster-page .roster>.role-section:nth-child(3) .role-header {background:linear-gradient(135deg,#a778d4,#7045aa)!important}
html[data-theme="light"] body.roster-page .roster>.role-section:nth-child(4) .role-header {background:linear-gradient(135deg,#ef6b73,#bd3348)!important}
html[data-theme="light"] body.roster-page .role-header {border-bottom-color:rgba(255,255,255,.38)!important}
html[data-theme="light"] body.roster-page .role-header :is(h2,p) {color:#fff!important;text-shadow:0 1px 5px rgba(0,0,0,.32)!important}
html[data-theme="light"] body.roster-page .role-count {color:#183328!important;border-color:rgba(255,255,255,.82)!important;background:#fff!important;box-shadow:0 5px 14px rgba(0,0,0,.18)!important}

html[data-theme="light"] body.roster-page .roster>.role-section:nth-child(1) .player-card {border-color:#e0ad48!important;background:linear-gradient(145deg,#fff,#fff4d5)!important}
html[data-theme="light"] body.roster-page .roster>.role-section:nth-child(2) .player-card {border-color:#75a8dc!important;background:linear-gradient(145deg,#fff,#eaf4ff)!important}
html[data-theme="light"] body.roster-page .roster>.role-section:nth-child(3) .player-card {border-color:#a98aca!important;background:linear-gradient(145deg,#fff,#f1e9fa)!important}
html[data-theme="light"] body.roster-page .roster>.role-section:nth-child(4) .player-card {border-color:#df8996!important;background:linear-gradient(145deg,#fff,#fde9ed)!important}
html[data-theme="light"] body.roster-page .player-card {
    box-shadow:0 9px 22px rgba(10,31,20,.16)!important;
    transition:transform .17s ease,box-shadow .17s ease!important;
}
html[data-theme="light"] body.roster-page .player-card:hover {transform:translateY(-3px)!important;box-shadow:0 15px 28px rgba(7,28,16,.22)!important}
html[data-theme="light"] body.roster-page .player-body h3 {color:#102f22!important}
html[data-theme="light"] body.roster-page .player-meta,
html[data-theme="light"] body.roster-page .player-meta b {color:#465d51!important}
html[data-theme="light"] body.roster-page .player-footer {border-top-color:rgba(43,76,57,.16)!important}

@media(max-width:760px) {
    html[data-theme="light"] body:not(.auth-page):not(.fi-no-pitch) {background-attachment:scroll!important}
    html[data-theme="light"] body.roster-page .roster>.role-section {background-image:none!important}
    html[data-theme="light"] body.roster-page .players-grid {background:rgba(255,255,255,.18)!important}
}

/* v8: dashboard e aree societarie con gerarchia più energica e nessuna testata verde su verde. */
.section-heading-icon {
    display:grid;width:44px;height:44px;flex:0 0 44px;place-items:center;
    border-radius:14px;color:#fff!important;background:linear-gradient(145deg,#5571d5,#3550a9);
    box-shadow:0 8px 18px rgba(49,67,154,.24);text-decoration:none;
}
.sponsor-link{background:linear-gradient(145deg,#f2982e,#cb5a1d)}
.roster-heading-icon{display:grid;width:60px;height:60px;flex:0 0 60px;place-items:center;border-radius:18px;color:#fff;background:linear-gradient(145deg,#7f63ce,#4d62b7);font-size:24px;box-shadow:0 10px 22px rgba(65,59,154,.25)}

html[data-theme="light"] body.society-page .club-overview-head {
    color:#fff!important;border-bottom-color:#8fa9d4!important;
    background:radial-gradient(circle at 92% 0,rgba(255,194,78,.35),transparent 11rem),linear-gradient(135deg,#5366c4,#337cac)!important;
}
html[data-theme="light"] body.society-page .club-overview-head :is(span,h2){color:#fff!important}
html[data-theme="light"] body.society-page .club-overview-head span{color:#dfe8ff!important}
html[data-theme="light"] body.society-page .club-metric:nth-child(4n+1){background:#fff8e5!important}
html[data-theme="light"] body.society-page .club-metric:nth-child(4n+2){background:#eef6ff!important}
html[data-theme="light"] body.society-page .club-metric:nth-child(4n+3){background:#f7efff!important}
html[data-theme="light"] body.society-page .club-metric:nth-child(4n){background:#fff0f3!important}
html[data-theme="light"] body.society-page .sponsor-toolbar {
    color:#fff!important;border-bottom-color:#d28c46!important;
    background:radial-gradient(circle at 90% 0,rgba(255,230,135,.32),transparent 12rem),linear-gradient(135deg,#ec8b2a,#c65320)!important;
}
html[data-theme="light"] body.society-page .sponsor-toolbar :is(.kicker,h2,p){color:#fff!important}
html[data-theme="light"] body.society-page .sponsor-counter{color:#54300a!important;border:1px solid #f5d27a;background:#fff0ba!important}
html[data-theme="light"] body.society-page .sponsor-card{overflow:hidden;padding-top:20px!important}
html[data-theme="light"] body.society-page .sponsor-card__top{margin:-20px -20px 15px;padding:16px 19px;background:linear-gradient(135deg,#5369c9,#397eb0)}
html[data-theme="light"] body.society-page .sponsor-card:nth-child(4n+2) .sponsor-card__top{background:linear-gradient(135deg,#eb8a28,#c95b20)}
html[data-theme="light"] body.society-page .sponsor-card:nth-child(4n+3) .sponsor-card__top{background:linear-gradient(135deg,#9162c9,#6545a3)}
html[data-theme="light"] body.society-page .sponsor-card:nth-child(4n) .sponsor-card__top{background:linear-gradient(135deg,#db586c,#ad384f)}
html[data-theme="light"] body.society-page .sponsor-card__top .sponsor-name{color:#fff!important}
html[data-theme="light"] body.society-page .sponsor-card__top .sponsor-badge{color:#4b3208!important;background:#ffe6a2!important}

@media(max-width:760px){
    html[data-theme="light"] body.dashboard-page .mobile-club-summary{
        gap:15px!important;color:#26334f!important;border-color:#9a84cb!important;border-top:6px solid #f2a13a!important;
        background:radial-gradient(circle at 100% 0,rgba(239,154,55,.28),transparent 12rem),linear-gradient(145deg,#fffaf0,#e7def6)!important;
        box-shadow:0 15px 32px rgba(0,21,13,.25)!important;
    }
    html[data-theme="light"] body.dashboard-page .mobile-club-summary::after{border-color:rgba(96,72,160,.09)!important}
    html[data-theme="light"] body.dashboard-page .mobile-club-identity>span{color:#b45b1b!important}
    html[data-theme="light"] body.dashboard-page .mobile-club-identity h1{color:#273451!important;text-shadow:none!important}
    html body.dashboard-page .mobile-vital{grid-template-columns:46px minmax(0,1fr)!important;min-height:88px!important;padding:11px!important}
    html body.dashboard-page .mobile-vital>i{display:grid!important;width:46px!important;height:46px!important;place-items:center!important;border-radius:15px!important;color:#fff!important;font-size:20px!important;opacity:1!important;visibility:visible!important}
    html body.dashboard-page .ranking-vital>i{background:linear-gradient(145deg,#4f7cc3,#2e5592)!important;box-shadow:0 7px 15px rgba(42,74,137,.27)!important}
    html body.dashboard-page .stadium-vital>i{background:linear-gradient(145deg,#ed9b2f,#bd5c1c)!important;box-shadow:0 7px 15px rgba(175,82,20,.25)!important}
    html body.dashboard-page .mobile-vital small{font-size:9px!important;opacity:.9!important}
    html body.dashboard-page .mobile-vital>b{font-size:9px!important;opacity:.82!important}
    html[data-theme="light"] body.dashboard-page .mobile-match-center{
        gap:12px!important;color:#3f2d10!important;border-color:#d4a84f!important;border-top:6px solid #7554bf!important;
        background:radial-gradient(circle at 100% 0,rgba(122,83,192,.20),transparent 12rem),linear-gradient(145deg,#fffdf7,#ffdda0)!important;
        box-shadow:0 14px 30px rgba(0,23,13,.23)!important;
    }
    html body.dashboard-page .mobile-match-topline{border-bottom-color:rgba(126,78,25,.22)!important}
    html body.dashboard-page .mobile-match-topline :is(span,a,i){color:#8c4817!important}
    html body.dashboard-page .mobile-round{display:inline-flex!important;width:max-content;padding:6px 9px;border-radius:999px;color:#fff!important;background:#7655bd!important;font-size:9px!important;font-weight:950!important;text-transform:uppercase}
    html body.dashboard-page .mobile-current-match h2 span{color:#392b17!important}
    html body.dashboard-page .mobile-current-match h2 b{background:#df7623!important;box-shadow:0 5px 12px rgba(173,78,18,.24)!important}
    html body.dashboard-page .mobile-standings-line span{color:#765222!important}
    html body.dashboard-page .formation-deadline{border-color:#ddbb70!important;background:rgba(255,255,255,.74)!important}
    html body.dashboard-page .formation-deadline :is(i,small,strong){color:#4d3a1b!important}
    html body.dashboard-page .mobile-last-result{border-top-color:#d1aa61!important}.dashboard-page .mobile-last-result span{color:#8a632b!important}.dashboard-page .mobile-last-result strong{color:#3c2e18!important}
    html[data-theme="light"] body.dashboard-page .fan-impact-panel{
        border-color:#8caed3!important;border-top:6px solid #3e7fbd!important;background:linear-gradient(145deg,#f9fcff,#dceaf8)!important;
    }
    html[data-theme="light"] body.dashboard-page .fan-impact-panel .section-heading-icon{background:linear-gradient(145deg,#477fc0,#28568f)!important}
    html[data-theme="light"] body.dashboard-page .fan-impact-total{border-color:#af99ce!important;background:linear-gradient(135deg,#f9f4ff,#e1d3f1)!important;box-shadow:0 8px 18px rgba(64,43,112,.14)!important}
    html[data-theme="light"] body.dashboard-page .fan-impact-total>i{color:#fff!important;background:linear-gradient(145deg,#9568ca,#6547a4)!important}
    html[data-theme="light"] body.dashboard-page .fan-impact-total :is(span,strong,small){color:#45335b!important}
    html[data-theme="light"] body.dashboard-page .fan-player:nth-child(odd){background:#fff!important;border-color:#9dbbd4!important}
    html[data-theme="light"] body.dashboard-page .fan-player:nth-child(even){background:#f7f0ff!important;border-color:#b5a0ce!important}
    html[data-theme="light"] body.dashboard-page .fan-formula{color:#68441a!important;border-color:#e0b86e!important;background:#fff3ce!important}
    html[data-theme="light"] body.dashboard-page .sponsor-goals-panel{
        border-color:#d8ac56!important;border-top:6px solid #e37725!important;background:linear-gradient(145deg,#fffdf7,#ffe6b2)!important;
    }
    html[data-theme="light"] body.dashboard-page .sponsor-goals-panel .section-heading{padding:12px!important;border-radius:15px;background:linear-gradient(135deg,#f0942d,#cb591d)!important}
    html[data-theme="light"] body.dashboard-page .sponsor-goals-panel .section-heading :is(span,h2){color:#fff!important}
    html[data-theme="light"] body.dashboard-page .sponsor-summary article{border-color:#a99ac7!important;background:linear-gradient(145deg,#fff,#eee5f8)!important}
    html[data-theme="light"] body.dashboard-page .sponsor-summary article:nth-child(even){border-color:#8eafd0!important;background:linear-gradient(145deg,#fff,#e0edf9)!important}
    html[data-theme="light"] body.dashboard-page .sponsor-summary article :is(strong,small,span){color:#49395b!important}
    html[data-theme="light"] body.dashboard-page .sponsor-mini-progress{background:#d7cce5!important}.dashboard-page .sponsor-mini-progress i{background:linear-gradient(90deg,#875fc1,#ee8a2b)!important}
    html[data-theme="light"] body.roster-page .roster-heading{
        display:grid!important;grid-template-columns:58px minmax(0,1fr) auto!important;align-items:center!important;
        color:#293451!important;border-color:#9b86ca!important;border-top:6px solid #ed9731!important;
        background:radial-gradient(circle at 100% 0,rgba(238,151,47,.25),transparent 11rem),linear-gradient(145deg,#fffaf0,#e6ddf4)!important;
        box-shadow:0 14px 30px rgba(0,23,13,.23)!important;
    }
    html[data-theme="light"] body.roster-page .roster-heading :is(span,h1,strong){color:#293451!important;text-shadow:none!important}
    html[data-theme="light"] body.roster-page .roster-heading>div>span{color:#b15b1b!important}
    html[data-theme="light"] body.roster-page .roster-total{color:#fff!important;border-color:#6355ae!important;background:linear-gradient(145deg,#7d63c7,#4e61b3)!important}
    html body.roster-page .roster-heading-icon{width:58px;height:58px;flex-basis:58px}
    html[data-theme="light"] body.society-page .club-overview-card{border-top:6px solid #ee962f!important}
    html[data-theme="light"] body.society-page .club-overview-head{padding:16px!important}
    html[data-theme="light"] body.society-page .sponsor-toolbar{margin:-1px -1px 0;padding:17px!important}
    html[data-theme="light"] body.society-page .sponsor-card__top{margin:-20px -20px 15px!important;padding:15px 17px!important}
}

@media(max-width:380px){
    html[data-theme="light"] body.roster-page .roster-heading{grid-template-columns:50px minmax(0,1fr)!important}
    html body.roster-page .roster-heading-icon{width:50px;height:50px;grid-row:1/3}
    html[data-theme="light"] body.roster-page .roster-total{grid-column:2;margin:0!important;justify-self:start}
}

/* Selected substitutes remain recognisable at a glance on mobile. */
.formation-page .bench-add{display:grid !important;grid-template-columns:30px 0 minmax(0,1fr);gap:9px;align-items:center !important}
.formation-page .bench-add .bench-photo{width:0;height:48px;object-fit:contain;border-radius:12px;background:#dcecdf;opacity:0;transition:width .16s,opacity .16s}
.formation-page .bench-add .bench-copy{display:block;min-width:0}.formation-page .bench-add .bench-copy :is(b,small){display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.formation-page .bench-add .bench-copy small{margin-top:3px;color:#66776d !important;font-size:9px;font-weight:900;text-transform:uppercase}
.formation-page .bench-card.has-player .bench-add{grid-template-columns:30px 52px minmax(0,1fr);min-height:64px !important}
.formation-page .bench-card.has-player .bench-add .bench-photo{width:52px;opacity:1}
.formation-page .bench-card.has-player .bench-add .bench-copy b{color:#153b29 !important;font-size:14px}

/* Trade composer: photo cards ordered by role, while the native select keeps form compatibility. */
.trade-page .trade-native-select{position:absolute !important;width:1px !important;height:1px !important;min-height:0 !important;padding:0 !important;overflow:hidden !important;clip-path:inset(50%);opacity:0;pointer-events:none}
.trade-page .trade-player-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:9px;max-height:420px;padding:10px;overflow-y:auto;border:1px solid #b8d0bd;border-radius:16px;background:#eaf4e9}
.trade-page .trade-role-heading{display:flex;grid-column:1/-1;align-items:center;gap:9px;margin-top:4px;color:#31513e;font:900 11px/1 var(--fi-game-copy);letter-spacing:.1em}.trade-page .trade-role-heading i{height:1px;flex:1;background:#afc9b6}
.trade-page .trade-player-card{display:grid;grid-template-columns:58px minmax(0,1fr) 24px;gap:10px;align-items:center;min-height:76px;padding:8px !important;border:1px solid #aec8b4 !important;border-radius:15px !important;text-align:left;background:#fff !important;box-shadow:0 6px 14px #0a3b2117 !important}
.trade-page .trade-player-card img{width:58px;height:62px;object-fit:contain;border-radius:12px;background:linear-gradient(145deg,#e8f3e8,#cfe4d1)}.trade-page .trade-player-card span{min-width:0}.trade-page .trade-player-card :is(strong,small){display:block}.trade-page .trade-player-card strong{overflow:hidden;color:#163b29 !important;font-size:14px;text-overflow:ellipsis;white-space:nowrap}.trade-page .trade-player-card small{margin-top:5px;color:#62776a !important;font-size:9px;font-weight:900}.trade-page .trade-player-card>i{display:grid;width:22px;height:22px;place-items:center;border-radius:50%;color:#799184 !important;background:#e1ece4;opacity:.45}.trade-page .trade-player-card.selected{border-color:#ef8326 !important;background:linear-gradient(145deg,#fffdf6,#ffedc7) !important;box-shadow:0 0 0 2px #f49a3b38,0 8px 17px #8b4d1524 !important}.trade-page .trade-player-card.selected>i{color:#fff !important;background:#e86f1d;opacity:1}.trade-page .trade-player-empty{grid-column:1/-1;margin:0;padding:18px;text-align:center;color:#607467}
@media(max-width:760px){.trade-page .trade-player-picker{grid-template-columns:1fr;max-height:52dvh;padding:8px}.trade-page .trade-player-card{grid-template-columns:64px minmax(0,1fr) 26px;min-height:82px}.trade-page .trade-player-card img{width:64px;height:68px}.trade-page .trade-player-card strong{font-size:16px}}

/* v5: lo sfondo resta verde profondo, le superfici di gioco sono sempre chiare e riconoscibili. */
body:not(.auth-page):not(.live-lineups-page) :is(.card,.panel,.dashboard-panel,.content-card,.table-panel,.role-section) {
    color:#17372a!important;
    border-color:#9dbca5!important;
    background:linear-gradient(145deg,#fffef9,#edf6ec)!important;
    box-shadow:0 10px 28px rgba(0,24,14,.2)!important;
}
body:not(.auth-page):not(.live-lineups-page) :is(.card,.panel,.dashboard-panel,.content-card,.table-panel,.role-section) :is(h1,h2,h3,h4,strong) {color:#143a28!important}
body:not(.auth-page):not(.live-lineups-page) :is(.card,.panel,.dashboard-panel,.content-card,.table-panel,.role-section) :is(p,small,label) {color:#5c7064}
body:not(.auth-page):not(.live-lineups-page) :is(.card,.panel,.dashboard-panel,.content-card,.table-panel,.role-section):nth-of-type(3n+2) {background:linear-gradient(145deg,#fffaf0,#ffe9bd)!important;border-color:#d6ac58!important}
body:not(.auth-page):not(.live-lineups-page) :is(.card,.panel,.dashboard-panel,.content-card,.table-panel,.role-section):nth-of-type(3n) {background:linear-gradient(145deg,#f9fbff,#dfebfb)!important;border-color:#98b6da!important}

/* Campionato: intestazione ridotta alle due azioni richieste. */
.competition-page .competition-tabs {display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 18px}
.competition-page .competition-tabs a {display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:10px;align-items:center;min-height:68px;padding:12px 16px;border:1px solid #8fb2d6;border-radius:17px;color:#153d57;background:linear-gradient(145deg,#f8fcff,#dcecff);box-shadow:0 10px 24px rgba(3,32,51,.2);text-decoration:none;font-weight:950;text-transform:uppercase}
.competition-page .competition-tabs a+ a {color:#563812;border-color:#e0b56c;background:linear-gradient(145deg,#fffdf7,#ffe4ad)}
.competition-page .competition-tabs i {display:grid;width:42px;height:42px;place-items:center;border-radius:12px;color:#fff;background:#2f78bb;font-size:18px}.competition-page .competition-tabs a+a i{background:#dc7924}
.competition-page .competition-tabs b {display:grid;min-width:29px;height:29px;place-items:center;border-radius:50%;color:#fff!important;background:#173d59}
.competition-page .content-grid>.panel:first-child {background:linear-gradient(145deg,#fbfdff,#dcecff)!important;border-top:5px solid #3984c8!important}
.competition-page .content-grid>.panel:last-child {background:linear-gradient(145deg,#fffdf7,#ffe7b6)!important;border-top:5px solid #e17a24!important}

/* Rose e partecipanti: nessuna card scura sul campo scuro. */
body.roster-page .role-section:nth-child(4n+1){background:linear-gradient(145deg,#fffaf0,#ffe9bd)!important;border-top:5px solid #e49a22!important}
body.roster-page .role-section:nth-child(4n+2){background:linear-gradient(145deg,#f7fbff,#dcecff)!important;border-top:5px solid #3f85cc!important}
body.roster-page .role-section:nth-child(4n+3){background:linear-gradient(145deg,#f6fff9,#d7f1df)!important;border-top:5px solid #34a665!important}
body.roster-page .role-section:nth-child(4n){background:linear-gradient(145deg,#fff8fa,#f7dce3)!important;border-top:5px solid #d65263!important}
body.roster-page .player-card {color:#163a29!important;border-color:#a9c4b0!important;background:#fff!important}
.league-teams-page .participants-section {color:#17372a!important;border-color:#a7bea9!important;background:linear-gradient(145deg,#f8fcf7,#e2efe1)!important}
.league-teams-page .team-card {color:#17372a!important;border:1px solid #a5bca9!important;background:#fff!important;box-shadow:0 8px 20px rgba(0,35,18,.14)}
.league-teams-page .team-card:nth-child(3n+2){background:linear-gradient(145deg,#fffdf7,#ffeabe)!important;border-top:5px solid #e48b22!important}.league-teams-page .team-card:nth-child(3n){background:linear-gradient(145deg,#fbf9ff,#e8ddf7)!important;border-top:5px solid #8d65c8!important}

/* Società: avorio, azzurro e lilla distinguono le aree operative. */
.society-page :is(.club-overview-card,.sponsor-card,.reserve-card,.outcome-card,.stadium-summary,.stadium-upgrade) {color:#17372a!important;border-color:#aabdad!important;background:linear-gradient(145deg,#fffef8,#f2ead7)!important;box-shadow:0 8px 22px rgba(0,26,14,.16)!important}
.society-page .sponsor-card:nth-child(even){background:linear-gradient(145deg,#f8fbff,#e0ebf8)!important;border-color:#9db5d2!important}.society-page .sponsor-card:nth-child(3n){background:linear-gradient(145deg,#fcf9ff,#e9ddf5)!important;border-color:#b5a1ce!important}
.society-page :is(.club-overview-card,.sponsor-card,.reserve-card,.outcome-card,.stadium-summary,.stadium-upgrade) :is(h2,h3,h4,strong){color:#17372a!important}

/* Scheda calciatore. */
.player-detail-page .profile-birth {display:flex;align-items:center;gap:8px;width:max-content;max-width:100%;margin-top:10px;padding:7px 10px;border:1px solid #aac6b1;border-radius:999px;color:#315844;background:#eef8ec;font-size:12px}.player-detail-page .profile-birth i{color:#cf7523}.player-detail-page .profile-birth b{color:#173b29}
.player-detail-page .fantasy-stat {border-color:#e0aa4f!important;background:linear-gradient(145deg,#fff8dd,#ffe19b)!important}.player-detail-page .fantasy-stat>i{color:#d76918!important}

/* Giornale della lega. */
.news-page .news-masthead {display:flex;align-items:center;justify-content:space-between;gap:20px;margin:16px 0;padding:20px 24px;border:1px solid #d8b867;border-radius:20px;color:#3b2b10;background:linear-gradient(145deg,#fffdf4,#f5dfaa);box-shadow:0 12px 30px rgba(0,25,14,.22)}
.news-page .news-masthead span{font-size:10px;font-weight:950;letter-spacing:.14em;text-transform:uppercase}.news-page .news-masthead h1{margin:3px 0 0;color:#221b0d!important;font-size:clamp(30px,5vw,52px)}.news-page .news-masthead p{margin:4px 0 0;color:#6c5830}.news-page .news-masthead>i{font-size:42px;color:#a67518}
.news-page .league-news-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.news-page .league-article {display:grid;grid-template-columns:150px minmax(0,1fr);min-height:220px;overflow:hidden;border:1px solid #b8b6a7;border-top:5px solid #cf8126;border-radius:18px;color:#26271f;background:#f8f5ea;box-shadow:0 10px 25px rgba(0,24,14,.2)}
.news-page .league-article.lead-story {grid-column:1/-1;grid-template-columns:minmax(240px,38%) minmax(0,1fr);min-height:320px;border-top-color:#2f7d4f}.news-page .league-article:nth-child(3n){border-top-color:#486fa4;background:#f2f6fa}.news-page .league-article:nth-child(3n+2){border-top-color:#8b66ad;background:#f7f2fa}
.news-page .article-photo{position:relative;display:grid;place-items:end center;min-height:100%;overflow:hidden;background:linear-gradient(145deg,#b9c6b9,#718278)}.news-page .article-photo::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 45%,rgba(8,18,12,.68))}.news-page .article-photo img{width:100%;height:100%;min-height:220px;object-fit:contain;filter:grayscale(.82) contrast(1.08);mix-blend-mode:multiply}.news-page .article-photo span{position:absolute;z-index:2;right:10px;bottom:10px;padding:6px 9px;border-radius:8px;color:#fff;background:#101c16;font:950 18px/1 var(--fi-game-display)}
.news-page .article-copy{padding:17px}.news-page .article-meta{display:flex;justify-content:space-between;gap:10px;color:#765919;font-size:9px;font-weight:950;text-transform:uppercase}.news-page .article-kicker{margin:12px 0 4px;color:#577063;font-size:10px;font-weight:900;text-transform:uppercase}.news-page .article-copy h2{margin:0;color:#1f2b23!important;font-size:25px;line-height:1}.news-page .article-copy>p:not(.article-kicker){margin:10px 0;color:#4d594f;line-height:1.5}.news-page .article-copy small{color:#6d5a2c}.news-page .article-copy small i{color:#d49322}.news-page .news-empty{padding:50px 22px;text-align:center;border:1px solid #c4b580;border-radius:20px;color:#324b3d;background:#fbf7e9}.news-page .news-empty>i{font-size:34px;color:#c18320}

@media(max-width:760px){
    .competition-page .competition-tabs{position:sticky;z-index:30;top:7px;gap:7px}.competition-page .competition-tabs a{grid-template-columns:34px minmax(0,1fr) auto;min-height:56px;padding:8px 10px;border-radius:14px;font-size:12px}.competition-page .competition-tabs i{width:34px;height:34px;border-radius:10px;font-size:14px}
    .news-page .news-masthead{padding:16px}.news-page .news-masthead h1{font-size:34px}.news-page .news-masthead>i{font-size:30px}.news-page .league-news-grid{grid-template-columns:1fr}.news-page .league-article,.news-page .league-article.lead-story{grid-column:auto;grid-template-columns:112px minmax(0,1fr);min-height:210px}.news-page .article-photo img{min-height:210px}.news-page .article-copy{padding:14px 12px}.news-page .article-copy h2{font-size:21px}.news-page .article-copy>p:not(.article-kicker){font-size:13px;line-height:1.42}.player-detail-page .profile-birth{font-size:11px}
}

@media(max-width:390px){.news-page .league-article,.news-page .league-article.lead-story{grid-template-columns:96px minmax(0,1fr)}.news-page .article-copy h2{font-size:19px}.news-page .article-copy>p:not(.article-kicker){font-size:12px}.competition-page .competition-tabs a{font-size:11px}}

/* v6: rifinitura mobile completa di formazione, rosa, società e notizie. */
.news-page .news-coming-soon {
    display:grid;justify-items:center;max-width:720px;margin:22px auto;padding:clamp(28px,7vw,70px) 22px;
    border:1px solid #d9b765;border-top:6px solid #e78222;border-radius:24px;
    color:#26392e;text-align:center;background:linear-gradient(145deg,#fffdf6,#f6e8bd);
    box-shadow:0 16px 34px rgba(0,23,13,.22);
}
.news-page .news-icon {display:grid;width:78px;height:78px;place-items:center;border-radius:23px;color:#fff;background:linear-gradient(145deg,#ec8f27,#bb5017);font-size:32px;box-shadow:0 12px 24px #9d461936}
.news-page .news-kicker {margin:20px 0 5px;color:#9d571c!important;font-size:10px;font-weight:950;letter-spacing:.16em;text-transform:uppercase}
.news-page .news-coming-soon h1 {margin:0;color:#24362c!important;font-size:clamp(34px,6vw,55px)}
.news-page .progress-pill {margin-top:15px;padding:8px 12px;border-radius:999px;color:#254b37;background:#dfeee0;font-size:10px;font-weight:950;text-transform:uppercase}
.news-page .news-copy {max-width:520px;margin:18px 0 0;color:#59695f!important;line-height:1.55}

@media(max-width:760px) {
    html body.formation-page :is(.formation-form>.panel,.layout-grid>.panel,.leadership-panel) {
        color:#17372a!important;border-color:#9fb6a5!important;
        background:linear-gradient(145deg,#fffefb,#edf2f8)!important;
        box-shadow:0 9px 24px rgba(0,24,14,.2)!important;
    }
    html body.formation-page .tool-card:nth-child(odd){border-color:#93b5da!important;background:linear-gradient(145deg,#fff,#e1edfb)!important}
    html body.formation-page .tool-card:nth-child(even){border-color:#ddbc73!important;background:linear-gradient(145deg,#fffdf8,#ffe9ba)!important}
    html body.formation-page .player-slot {
        color:#17372a!important;border-color:rgba(255,255,255,.88)!important;
        background:#fff!important;box-shadow:0 7px 15px rgba(0,25,14,.22)!important;
    }
    html body.formation-page .player-slot[id^="portiere"]{background:linear-gradient(145deg,#fff8da,#f3c866)!important}
    html body.formation-page .player-slot[id^="difensore"]{background:linear-gradient(145deg,#f4faff,#bcd9f5)!important}
    html body.formation-page .player-slot[id^="centrocampista"]{background:linear-gradient(145deg,#faf5ff,#d5bbed)!important}
    html body.formation-page .player-slot[id^="attaccante"]{background:linear-gradient(145deg,#fff5f7,#eeb7c3)!important}
    html body.formation-page .player-slot .selected-name {color:#15372a!important;text-shadow:0 1px 1px rgba(255,255,255,.8)!important}
    html body.formation-page .bench-card {color:#17372a!important;border-color:#9fb4c8!important;background:#fff!important;box-shadow:0 6px 15px rgba(0,24,14,.12)!important}
    html body.formation-page .bench-card:nth-child(4n+1){border-left:5px solid #e09b24!important;background:linear-gradient(145deg,#fffdf8,#ffedc7)!important}
    html body.formation-page .bench-card:nth-child(4n+2){border-left:5px solid #3e84ca!important;background:linear-gradient(145deg,#fbfdff,#dfedfb)!important}
    html body.formation-page .bench-card:nth-child(4n+3){border-left:5px solid #8e63c5!important;background:linear-gradient(145deg,#fdfaff,#eadff5)!important}
    html body.formation-page .bench-card:nth-child(4n){border-left:5px solid #d95768!important;background:linear-gradient(145deg,#fffafb,#f7dfe5)!important}
    html body.formation-page .bench-card.has-player .bench-add>i {display:none!important}
    html body.formation-page .bench-card.has-player .bench-add {grid-template-columns:58px minmax(0,1fr)!important}
    html body.formation-page .bench-card.has-player .bench-photo {width:58px!important;height:64px!important;opacity:1!important;background:rgba(255,255,255,.65)!important}
    html body.formation-page .bench-card.has-player .bench-copy b {font-size:15px!important;color:#17372a!important}
    html body.formation-page .bench-card.has-player .bench-copy small {font-size:10px!important;color:#5d6e64!important}
    html body.roster-page .role-section {color:#17372a!important;background:#fff!important}
    html body.roster-page .player-card {color:#17372a!important;border:1px solid #9fb6a6!important;background:#fff!important;box-shadow:0 7px 17px rgba(0,25,14,.13)!important}
    html body.roster-page .player-photo {width:86px!important;height:102px!important;border-radius:15px!important}
    html body.roster-page .player-photo.keeper-photo {background:linear-gradient(145deg,#fff5ce,#efc14e)!important}
    html body.roster-page .player-photo.defender-photo {background:linear-gradient(145deg,#eef8ff,#98c7ef)!important}
    html body.roster-page .player-photo.midfielder-photo {background:linear-gradient(145deg,#faf2ff,#caa9e8)!important}
    html body.roster-page .player-photo.forward-photo {background:linear-gradient(145deg,#fff1f4,#e99bab)!important}
    html body.roster-page .player-photo img {width:100%!important;height:100%!important;object-fit:contain!important;background:transparent!important}
    html body.society-page .society-nav {display:none!important}
    html body.society-page :is(.club-overview-card,.panel,.budget-balances,.reserve-card,.outcome-card,.sponsor-card,.stadium-summary,.stadium-upgrade,.tier-row,.contract-row,.movement-row,.mission-row,.club-action,.club-metric) {
        color:#17372a!important;border-color:#a7b9ab!important;background:linear-gradient(145deg,#fffef9,#edf3f8)!important;box-shadow:0 7px 19px rgba(0,23,13,.15)!important;
    }
    html body.society-page .club-action:nth-child(2),html body.society-page .club-metric:nth-child(3n+2),html body.society-page .outcome-card.draw {background:linear-gradient(145deg,#fffdf7,#ffe8b4)!important;border-color:#d9b56b!important}
    html body.society-page .club-action:nth-child(3),html body.society-page .club-metric:nth-child(3n),html body.society-page .sponsor-card:nth-child(even){background:linear-gradient(145deg,#fbf9ff,#e8ddf5)!important;border-color:#b3a0ce!important}
    html body.society-page :is(.club-action,.club-metric,.tier-row,.contract-row,.movement-row,.mission-row) :is(strong,h3,b){color:#17372a!important}
    html body.society-page :is(.club-action,.club-metric,.tier-row,.contract-row,.movement-row,.mission-row) :is(span,small,p){color:#5c6d63!important}
    .news-page .news-coming-soon {margin:14px 0;padding:36px 17px}.news-page .news-icon{width:66px;height:66px;border-radius:19px;font-size:27px}.news-page .news-copy{font-size:14px}
}

/* v7: nessuna card verde scuro sopra il campo verde; superfici più nette per mercato e società. */
html[data-theme="light"] body.formation-page .pitch .field-lines :is(.penalty-box,.goal-box),
html[data-theme="light"] body.live-lineups-page .vertical-pitch :is(.penalty-box,.goal-box) {
    background:transparent!important;
    background-image:none!important;
    box-shadow:none!important;
    filter:none!important;
}
html[data-theme="light"] body.listone-page .hero {
    color:#33270d!important;border-color:#dfb85b!important;
    background:radial-gradient(circle at 93% 0,#8e64cf24,transparent 15rem),linear-gradient(145deg,#fffdf5,#f5d992)!important;
    box-shadow:0 16px 36px rgba(0,24,14,.24)!important;
}
html[data-theme="light"] body.listone-page .hero :is(h1,p,.eyebrow){color:#33270d!important;text-shadow:none!important}
html[data-theme="light"] body.listone-page .hero .eyebrow{color:#a05418!important}
html[data-theme="light"] body.listone-page .hero-card{color:#fff!important;border-color:#7964bf!important;background:linear-gradient(145deg,#7d62c9,#485faf)!important;box-shadow:0 9px 20px rgba(61,59,145,.25)!important}
html[data-theme="light"] body.listone-page :is(.toolbar,.table-panel,.stats-grid){border-color:#9eb6d2!important;background:linear-gradient(145deg,#fbfdff,#e4eef9)!important}
html[data-theme="light"] body.trade-page .trade-deals-panel{border-color:#9db5d1!important;background:linear-gradient(145deg,#fff,#e5eef9)!important}
html[data-theme="light"] body.trade-page .trade-hero{border-color:#8fa6d2!important;background:radial-gradient(circle at 92% 0,#f1a43c33,transparent 16rem),linear-gradient(135deg,#4f5fbd,#2f6d9c)!important}
html[data-theme="light"] body.trade-page .trade-wallet{border-color:#f0d188!important;background:linear-gradient(145deg,#fff8dc,#f3d586)!important}
html[data-theme="light"] body.trade-page .trade-wallet :is(span,strong){color:#49350e!important}
html[data-theme="light"] body.trade-page .trade-deals-panel>.card-header{background:linear-gradient(135deg,#5266c4,#347eb1)!important}
html[data-theme="light"] body.trade-page .trade-deals-panel:nth-of-type(even)>.card-header{background:linear-gradient(135deg,#e78324,#c3551d)!important}
html[data-theme="light"] body.society-page .hero{color:#3a2c12!important;border-color:#dbb867!important;background:radial-gradient(circle at 92% 0,#7a60c82b,transparent 14rem),linear-gradient(145deg,#fffdf5,#f3dfa9)!important;box-shadow:0 14px 32px rgba(0,24,14,.22)!important}
html[data-theme="light"] body.society-page .hero :is(h1,p,.eyebrow){color:#3a2c12!important;text-shadow:none!important}
html[data-theme="light"] body.society-page .club-overview-card{background:linear-gradient(145deg,#fbfdff,#dceafb)!important;border-color:#8eaed3!important}
html[data-theme="light"] body.society-page .sponsor-section{background:linear-gradient(145deg,#fffdf7,#f6e7bd)!important;border-color:#d8b467!important}
html[data-theme="light"] body.society-page .sponsor-card.is-signed{background:linear-gradient(145deg,#fdfaff,#e8ddf5)!important;border-color:#ae98c9!important}
@media(max-width:760px){
    html[data-theme="light"] body.listone-page .hero{padding:20px 17px!important}
    html[data-theme="light"] body.listone-page :is(.toolbar,.table-panel){background:linear-gradient(145deg,#fff,#e2edf9)!important}
    html[data-theme="light"] body.trade-page :is(.trade-step,.trade-deals-panel,.card.my-4){background:linear-gradient(145deg,#fff,#e8eff8)!important;border-color:#9fb5cf!important}
    html[data-theme="light"] body.trade-page .trade-step>.card-header{background:linear-gradient(135deg,#5967c5,#3a7dae)!important}
    html[data-theme="light"] body.society-page :is(.panel,.club-overview-card,.club-action,.club-metric,.sponsor-card,.mission-row,.contract-row,.movement-row,.reserve-card,.stadium-summary,.stadium-upgrade){background:linear-gradient(145deg,#fff,#e8eff8)!important;border-color:#a3b4c8!important}
    html[data-theme="light"] body.society-page .sponsor-section{background:linear-gradient(145deg,#fffdf8,#f7e8bd)!important;border-color:#d7b46b!important}
    html[data-theme="light"] body.society-page .sponsor-card.is-signed{background:linear-gradient(145deg,#fcf9ff,#e7dcf3)!important;border-color:#b29dcb!important}
}

/* v9: leggibilità giornata, campionato a scorrimento e conferma formazione evidente. */
.competition-page .mobile-standings-list{display:none}
html[data-theme="light"] body.competition-page .standings-panel{
    color:#213754!important;border-color:#8aaad0!important;border-top:6px solid #4d69c5!important;
    background:linear-gradient(145deg,#fbfdff,#dce9f8)!important;
}
html[data-theme="light"] body.competition-page .standings-panel>.panel-header{
    color:#fff!important;border-bottom-color:#91a7d0!important;
    background:radial-gradient(circle at 94% 0,rgba(255,191,72,.30),transparent 11rem),linear-gradient(135deg,#5267c5,#337aad)!important;
}
html[data-theme="light"] body.competition-page .standings-panel>.panel-header :is(h2,p){color:#fff!important}
html[data-theme="light"] body.competition-page .standings-table thead{color:#fff!important;background:linear-gradient(135deg,#263f72,#356c9b)!important}
html[data-theme="light"] body.competition-page .standings-table th{color:#fff!important;border-bottom-color:#6685ad!important}
html[data-theme="light"] body.competition-page .standings-table tbody tr:nth-child(odd){background:#fff!important}
html[data-theme="light"] body.competition-page .standings-table tbody tr:nth-child(even){background:#edf4fc!important}
html[data-theme="light"] body.competition-page .standings-table tbody tr:first-child{background:linear-gradient(90deg,#fff6d6,#ffe4a0)!important}
html[data-theme="light"] body.competition-page .fixtures-panel{
    color:#493415!important;border-color:#daa951!important;border-top:6px solid #e47724!important;
    background:linear-gradient(145deg,#fffdf7,#ffe6b0)!important;
}
html[data-theme="light"] body.competition-page .fixtures-panel>.panel-header{border-bottom-color:#dcba75!important;background:rgba(255,255,255,.48)!important}
.competition-page .round-selector{display:grid!important;grid-template-columns:auto minmax(130px,1fr) auto!important;gap:8px!important}
.competition-page .round-selector select{width:100%;min-height:48px!important;border:2px solid #8664c5!important;border-radius:14px!important;color:#3d2f58!important;background:#f8f2ff!important;text-align:center;font-weight:950!important}
.competition-page .round-step{display:flex;min-width:48px;height:48px;align-items:center;justify-content:center;gap:5px;padding:0 10px;border:0;border-radius:14px;color:#fff!important;background:linear-gradient(145deg,#7e60c4,#4d5fae);box-shadow:0 7px 16px rgba(66,54,147,.23);font-size:11px;font-weight:950;text-decoration:none}
.competition-page .match-card{border:1px solid #9eb6d2!important;border-left:6px solid #527ec0!important;color:#203a51!important;background:linear-gradient(145deg,#fff,#e5effa)!important;box-shadow:0 9px 21px rgba(0,26,45,.15)!important}
.competition-page .match-card:nth-child(even){border-color:#b29bce!important;border-left-color:#8d61c4!important;background:linear-gradient(145deg,#fdfaff,#e9ddf5)!important}
.competition-page .match-card.played{border-left-color:#e07825!important;background:linear-gradient(145deg,#fffdf8,#ffe7b5)!important}
.competition-page .match-card .score{color:#fff!important;background:linear-gradient(145deg,#536bc6,#347cae)!important;box-shadow:0 6px 14px rgba(45,67,154,.22)!important}
.competition-page .match-card.played .score{background:linear-gradient(145deg,#ed8b29,#c65a1f)!important}
.competition-page .match-card :is(.team strong,.match-meta,.meta-pill){color:#24394b!important}
.competition-page .match-card .button-link{border-color:#6379c3!important;color:#fff!important;background:linear-gradient(145deg,#6574cc,#3e65a8)!important}
.competition-page .match-card .button-link.primary{background:linear-gradient(145deg,#ef9330,#ce5d1f)!important}

@media(max-width:760px){
    html body.dashboard-page .mobile-round,
    html body.dashboard-page .mobile-round *{color:#fff!important}
    html body.dashboard-page .mobile-current-match h2>b,
    html body.dashboard-page .mobile-current-match h2>b *{color:#fff!important;text-shadow:none!important}
    html[data-theme="light"] body.dashboard-page .fan-impact-panel .section-heading{justify-content:flex-start!important}
    html[data-theme="light"] body.dashboard-page .fan-impact-total{grid-template-columns:58px minmax(0,1fr)!important;padding:14px!important}
    html[data-theme="light"] body.dashboard-page .fan-impact-total>i{display:grid!important;width:58px!important;height:58px!important;place-items:center!important;border-radius:18px!important;color:#fff!important;background:linear-gradient(145deg,#9567ca,#6544a4)!important;font-size:24px!important;visibility:visible!important;opacity:1!important}
    html[data-theme="light"] body.dashboard-page .fan-impact-total strong{color:#3f2d57!important;font-size:30px!important}
    .competition-page .competition-tabs{display:none!important}
    html[data-theme="light"] body.competition-page .content-grid{gap:16px!important}
    html[data-theme="light"] body.competition-page .standings-panel>.panel-header,
    html[data-theme="light"] body.competition-page .fixtures-panel>.panel-header{padding:16px!important}
    .competition-page .standings-panel .table-wrapper{padding:10px!important;overflow:visible!important;background:transparent!important}
    .competition-page .standings-panel .standings-table{display:none!important}
    .competition-page .mobile-standings-list{display:grid!important;gap:10px}
    .competition-page .mobile-standing-card{display:grid;grid-template-columns:42px minmax(0,1fr) 58px;gap:9px;align-items:center;padding:12px;border:1px solid #a5bad2;border-left:5px solid #4c78b7;border-radius:16px;background:#fff;box-shadow:0 6px 15px rgba(20,47,75,.12)}
    .competition-page .mobile-standing-card:nth-child(even){border-color:#b5a3cc;border-left-color:#8960bc;background:#faf6ff}
    .competition-page .mobile-standing-card.leader{border-color:#d5a94d;border-left-color:#e27b24;background:linear-gradient(145deg,#fffdf5,#ffe5aa)}
    .competition-page .mobile-standing-position{display:grid;width:38px;height:38px;place-items:center;border-radius:12px;color:#fff!important;background:#4d6db4;font:950 20px/1 var(--fi-game-display)}
    .competition-page .mobile-standing-card.leader .mobile-standing-position{color:#4a2e05!important;background:#ffd25d}
    .competition-page .mobile-standing-team{min-width:0}.competition-page .mobile-standing-team :is(small,strong){display:block}.competition-page .mobile-standing-team small{color:#708093!important;font-size:8px;font-weight:900;text-transform:uppercase}.competition-page .mobile-standing-team strong{overflow:hidden;color:#213754!important;font-size:17px!important;text-overflow:ellipsis;white-space:nowrap}
    .competition-page .mobile-standing-points{text-align:right}.competition-page .mobile-standing-points strong,.competition-page .mobile-standing-points small{display:block}.competition-page .mobile-standing-points strong{color:#d56d20!important;font-size:24px!important}.competition-page .mobile-standing-points small{color:#72512a!important;font-size:8px;font-weight:900;text-transform:uppercase}
    .competition-page .mobile-standing-stats{display:grid;grid-column:1/-1;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;padding-top:9px;border-top:1px solid #d8e1eb}
    .competition-page .mobile-standing-stats span{padding:6px 2px;border-radius:8px;text-align:center;background:#edf3fa}.competition-page .mobile-standing-stats :is(b,small){display:block}.competition-page .mobile-standing-stats b{color:#28405a!important;font-size:12px}.competition-page .mobile-standing-stats small{margin-top:2px;color:#728292!important;font-size:7px;font-weight:950}
    .competition-page .fixtures-panel>.panel-header{align-items:stretch!important;flex-direction:column!important;gap:13px!important}
    .competition-page .round-selector{width:100%}
    .competition-page .matches-grid{gap:11px!important;padding:11px!important}
    .competition-page .match-card{padding:14px!important;border-radius:17px!important}
    .competition-page .match-main{grid-template-columns:minmax(0,1fr) 62px minmax(0,1fr)!important;gap:7px!important}
    .competition-page .match-card .score{display:grid;min-height:44px;place-items:center;border-radius:13px;font-size:17px!important}
    .competition-page .match-actions{display:grid!important;grid-template-columns:1fr!important}.competition-page .match-actions .button-link{width:100%;min-height:46px;justify-content:center;border-radius:13px!important}
    html body.formation-page .submit-panel{position:sticky!important;z-index:75!important;bottom:calc(78px + env(safe-area-inset-bottom))!important;padding:0!important;border:2px solid #e3ad51!important;border-radius:19px!important;background:linear-gradient(145deg,#fff8dc,#f4d58d)!important;box-shadow:0 15px 34px rgba(0,16,9,.34)!important}
    html body.formation-page .submit-area{position:static!important;display:block!important;padding:9px!important;border:0!important;border-radius:17px!important;background:transparent!important;backdrop-filter:none!important}
    html body.formation-page .submit-btn{display:grid!important;width:100%!important;min-height:62px!important;grid-template-columns:42px minmax(0,1fr)!important;gap:11px!important;align-items:center!important;padding:10px 15px!important;border:1px solid #6655b6!important;border-radius:14px!important;color:#fff!important;background:linear-gradient(135deg,#755bc3,#3d69ae)!important;box-shadow:0 9px 20px rgba(51,54,147,.3)!important;text-align:left!important}
    html body.formation-page .submit-btn>i{display:grid;width:42px;height:42px;place-items:center;border-radius:12px;color:#523308!important;background:#ffd468!important;font-size:18px!important}
    html body.formation-page .submit-btn>span,html body.formation-page .submit-btn :is(strong,small){display:block;color:#fff!important}
    html body.formation-page .submit-btn strong{font-size:17px!important;letter-spacing:.03em;text-transform:uppercase}
    html body.formation-page .submit-btn small{margin-top:3px;font-size:9px!important;opacity:.84;text-transform:none!important;letter-spacing:0!important}
}

/* v10-final: questo blocco resta per ultimo, così i temi legacy non possono riaccendere card e hero scuri. */
html{min-height:100%;background:#082b1c}
html[data-theme="light"] body:not(.auth-page):not(.fi-no-pitch){
    min-height:100vh;min-height:100dvh;
    background:radial-gradient(ellipse at 12% -5%,#236044 0,transparent 45rem),repeating-linear-gradient(90deg,rgba(255,255,255,.012) 0 10%,transparent 10% 20%),linear-gradient(145deg,#123f2a,#092f20 58%,#061f15)!important;
    background-attachment:fixed!important;background-repeat:no-repeat!important;background-size:cover!important;
}

/* v20: il match center mobile diventa il tabellone principale della dashboard. */
@media(max-width:760px){
    html[data-theme="light"] body.dashboard-page .mobile-match-center{
        gap:0!important;padding:0!important;overflow:hidden!important;
        border:1px solid #b79857!important;border-top:6px solid #f09a34!important;border-radius:23px!important;
        background:
            linear-gradient(145deg,rgba(255,253,247,.91),rgba(236,226,199,.95)),
            url('/img/campo-da-calcio.png') center/cover no-repeat!important;
        box-shadow:0 18px 42px rgba(0,0,0,.46)!important;
    }
    html[data-theme="light"] body.dashboard-page .mobile-match-center::before,
    html[data-theme="light"] body.dashboard-page .mobile-match-center::after{display:none!important}
    html[data-theme="light"] body.dashboard-page .mobile-match-topline{
        margin:0!important;padding:13px 15px!important;border:0!important;
        background:linear-gradient(135deg,#344f9f,#714eb3)!important;
    }
    html[data-theme="light"] body.dashboard-page .mobile-match-topline>span{
        display:flex!important;align-items:center!important;gap:7px!important;font-size:10px!important;font-weight:950!important;letter-spacing:.12em!important;
    }
    html[data-theme="light"] body.dashboard-page .mobile-match-topline>a{
        min-height:32px!important;padding:7px 11px!important;border:1px solid rgba(255,255,255,.55)!important;
        border-radius:10px!important;background:rgba(255,255,255,.15)!important;font-size:9px!important;font-weight:950!important;
    }
    html[data-theme="light"] body.dashboard-page .mobile-current-match{
        display:grid!important;gap:12px!important;padding:15px 15px 14px!important;
    }
    html[data-theme="light"] body.dashboard-page .mobile-round{
        min-height:28px!important;margin:0 auto!important;padding:5px 12px!important;border:0!important;
        color:#fff!important;background:linear-gradient(135deg,#f1962f,#d4631d)!important;
        box-shadow:0 7px 16px rgba(157,73,18,.28)!important;font-size:10px!important;
    }
    html[data-theme="light"] body.dashboard-page .mobile-current-match h2{
        grid-template-columns:minmax(0,1fr) 48px minmax(0,1fr)!important;gap:8px!important;align-items:center!important;
        margin:0!important;font-size:clamp(18px,5.5vw,23px)!important;line-height:1.02!important;
    }
    html[data-theme="light"] body.dashboard-page .mobile-current-match h2 span{
        color:#273047!important;font-family:var(--fi-game-display)!important;font-weight:950!important;overflow-wrap:anywhere!important;
    }
    html[data-theme="light"] body.dashboard-page .mobile-current-match h2 b{
        width:46px!important;height:46px!important;border:3px solid #fff!important;
        color:#fff!important;background:linear-gradient(145deg,#f08a28,#cf5018)!important;
        box-shadow:0 8px 18px rgba(166,67,15,.32)!important;font-size:12px!important;
    }
    html[data-theme="light"] body.dashboard-page .mobile-standings-line{
        display:grid!important;grid-template-columns:1fr 1fr!important;gap:56px!important;margin:-7px 0 0!important;
    }
    html[data-theme="light"] body.dashboard-page .mobile-standings-line span{
        color:#65583e!important;font-size:10px!important;font-weight:900!important;
    }
    html[data-theme="light"] body.dashboard-page .mobile-standings-line span:last-child{text-align:right!important}
    html[data-theme="light"] body.dashboard-page .mobile-match-actions{display:grid!important;gap:9px!important}
    html[data-theme="light"] body.dashboard-page .formation-deadline{
        display:grid!important;grid-template-columns:45px minmax(0,1fr)!important;align-items:center!important;gap:11px!important;
        min-height:70px!important;margin:0!important;padding:9px 12px!important;border:1px solid #324c78!important;border-radius:16px!important;
        background:linear-gradient(135deg,#243a62,#172944)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.09)!important;
    }
    html[data-theme="light"] body.dashboard-page .formation-deadline .deadline-icon{
        display:grid!important;width:45px!important;height:45px!important;place-items:center!important;border-radius:13px!important;
        color:#3c2607!important;background:linear-gradient(145deg,#ffe078,#f3a733)!important;font-size:17px!important;
    }
    html[data-theme="light"] body.dashboard-page .formation-deadline .deadline-icon i{color:inherit!important;background:none!important}
    html[data-theme="light"] body.dashboard-page .formation-deadline .deadline-copy{display:grid!important;gap:2px!important;min-width:0!important}
    html[data-theme="light"] body.dashboard-page .formation-deadline .deadline-copy small{
        color:#b9c8dc!important;font-size:9px!important;font-weight:900!important;letter-spacing:.12em!important;text-transform:uppercase!important;
    }
    html[data-theme="light"] body.dashboard-page .formation-deadline .deadline-copy strong{
        color:#fff!important;font-family:var(--fi-game-display)!important;font-size:clamp(21px,6vw,27px)!important;font-weight:950!important;line-height:1!important;letter-spacing:.025em!important;
    }
    html[data-theme="light"] body.dashboard-page .formation-deadline.unavailable .deadline-copy strong{font-size:14px!important;line-height:1.2!important}
    html[data-theme="light"] body.dashboard-page .mobile-lineup-cta{
        min-height:56px!important;padding:12px 15px!important;border:1px solid #79a7ee!important;border-radius:15px!important;
        color:#fff!important;background:linear-gradient(135deg,#526de0,#276ac3)!important;
        box-shadow:0 10px 22px rgba(40,77,169,.28)!important;font-size:14px!important;font-weight:950!important;
    }
    html[data-theme="light"] body.dashboard-page .mobile-lineup-cta :is(i,span){color:#fff!important}
    html[data-theme="light"] body.dashboard-page .mobile-last-result{
        display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:10px!important;align-items:center!important;
        margin:0!important;padding:13px 15px!important;border:0!important;border-top:1px solid #d2bd91!important;
        background:rgba(255,255,255,.58)!important;
    }
    html[data-theme="light"] body.dashboard-page .mobile-last-result>div>span{color:#9a531b!important;font-size:8px!important;font-weight:950!important;letter-spacing:.12em!important;text-transform:uppercase!important}
    html[data-theme="light"] body.dashboard-page .mobile-last-result>div>strong{color:#283448!important;font-size:11px!important;line-height:1.25!important}
    html[data-theme="light"] body.dashboard-page .mobile-review-lineup{
        display:inline-flex!important;min-height:48px!important;align-items:center!important;justify-content:center!important;gap:8px!important;
        padding:10px 13px!important;border:1px solid #e38b2f!important;border-radius:13px!important;
        color:#fff!important;background:linear-gradient(135deg,#ed902f,#c45a1c)!important;
        box-shadow:0 8px 18px rgba(163,73,18,.25)!important;font-size:11px!important;font-weight:950!important;white-space:nowrap!important;
    }
    html[data-theme="light"] body.dashboard-page .mobile-review-lineup :is(i,span){color:#fff!important;font-size:11px!important}
}
@media(max-width:380px){
    html[data-theme="light"] body.dashboard-page .mobile-last-result{grid-template-columns:1fr!important}
    html[data-theme="light"] body.dashboard-page .mobile-review-lineup{width:100%!important}
}
html[data-theme="light"] body.listone-page .hero{
    color:#fff!important;border-color:#8fc4a1!important;
    background:linear-gradient(110deg,rgba(3,20,12,.91),rgba(9,74,42,.62)),url('/img/campo-da-calcio.png') center/cover no-repeat!important;
    box-shadow:0 18px 42px rgba(0,14,8,.42)!important;
}
html[data-theme="light"] body.listone-page .hero :is(h1,p,.eyebrow){color:#fff!important;text-shadow:0 2px 10px rgba(0,0,0,.62)!important}
html[data-theme="light"] body.listone-page .hero .eyebrow{color:#9cf0b1!important}
html[data-theme="light"] body.listone-page .hero-card{color:#30220a!important;border-color:#ffe49a!important;background:linear-gradient(145deg,#ffe886,#f1b938)!important;box-shadow:0 10px 24px rgba(0,0,0,.30)!important}

html[data-theme="light"] body.roster-page .roster>.role-section{overflow:hidden!important;border-width:1px!important;border-top-width:6px!important;box-shadow:0 14px 34px rgba(0,18,10,.25)!important}
html[data-theme="light"] body.roster-page .roster>.role-section:nth-child(1){border-color:#d99316!important;background:linear-gradient(145deg,#fffdf5,#ffe6a4)!important}
html[data-theme="light"] body.roster-page .roster>.role-section:nth-child(2){border-color:#327cc8!important;background:linear-gradient(145deg,#fbfdff,#d8ebff)!important}
html[data-theme="light"] body.roster-page .roster>.role-section:nth-child(3){border-color:#8055bb!important;background:linear-gradient(145deg,#fdfaff,#eadcf8)!important}
html[data-theme="light"] body.roster-page .roster>.role-section:nth-child(4){border-color:#cf4254!important;background:linear-gradient(145deg,#fffafb,#f8dce2)!important}
html[data-theme="light"] body.roster-page .roster>.role-section:nth-child(1) .role-header{background:linear-gradient(135deg,#f7bd3d,#dd8217)!important}
html[data-theme="light"] body.roster-page .roster>.role-section:nth-child(2) .role-header{background:linear-gradient(135deg,#4a9be9,#2864b5)!important}
html[data-theme="light"] body.roster-page .roster>.role-section:nth-child(3) .role-header{background:linear-gradient(135deg,#a778d4,#7045aa)!important}
html[data-theme="light"] body.roster-page .roster>.role-section:nth-child(4) .role-header{background:linear-gradient(135deg,#ef6b73,#bd3348)!important}
html[data-theme="light"] body.roster-page .role-header{border-bottom-color:rgba(255,255,255,.38)!important}
html[data-theme="light"] body.roster-page .role-header :is(h2,p){color:#fff!important;text-shadow:0 1px 5px rgba(0,0,0,.32)!important}
html[data-theme="light"] body.roster-page .role-count{color:#183328!important;border-color:rgba(255,255,255,.82)!important;background:#fff!important;box-shadow:0 5px 14px rgba(0,0,0,.18)!important}
html[data-theme="light"] body.roster-page .roster>.role-section:nth-child(1) .player-card{border-color:#e0ad48!important;background:linear-gradient(145deg,#fff,#fff4d5)!important}
html[data-theme="light"] body.roster-page .roster>.role-section:nth-child(2) .player-card{border-color:#75a8dc!important;background:linear-gradient(145deg,#fff,#eaf4ff)!important}
html[data-theme="light"] body.roster-page .roster>.role-section:nth-child(3) .player-card{border-color:#a98aca!important;background:linear-gradient(145deg,#fff,#f1e9fa)!important}
html[data-theme="light"] body.roster-page .roster>.role-section:nth-child(4) .player-card{border-color:#df8996!important;background:linear-gradient(145deg,#fff,#fde9ed)!important}
html[data-theme="light"] body.roster-page .player-card{box-shadow:0 9px 22px rgba(10,31,20,.16)!important;transition:transform .17s ease,box-shadow .17s ease!important}
html[data-theme="light"] body.roster-page .player-card:hover{transform:translateY(-3px)!important;box-shadow:0 15px 28px rgba(7,28,16,.22)!important}
html[data-theme="light"] body.roster-page .player-body h3{color:#102f22!important}
html[data-theme="light"] body.roster-page .player-meta,html[data-theme="light"] body.roster-page .player-meta b{color:#465d51!important}
html[data-theme="light"] body.roster-page .player-footer{border-top-color:rgba(43,76,57,.16)!important}
@media(max-width:760px){
    html[data-theme="light"] body:not(.auth-page):not(.fi-no-pitch){background-attachment:scroll!important}
    html[data-theme="light"] body.roster-page .players-grid{background:rgba(255,255,255,.18)!important}
}

/* v11: il listone parte dai filtri; la partita della dashboard è leggibile al primo sguardo. */
html[data-theme="light"] body.listone-page .toolbar{margin-top:0!important}

@media(max-width:760px){
    html[data-theme="light"] body.dashboard-page .mobile-match-center{
        gap:13px!important;padding:14px!important;overflow:hidden!important;
        color:#24324a!important;border:1px solid #9d8bc8!important;border-top:6px solid #6d56bd!important;
        background:radial-gradient(circle at 100% 30%,rgba(108,82,188,.13),transparent 12rem),linear-gradient(145deg,#fffdf8,#f3e4bd)!important;
        box-shadow:0 15px 32px rgba(0,20,12,.27)!important;
    }
    html body.dashboard-page .mobile-match-center::after{display:none!important}
    html body.dashboard-page .mobile-match-topline{
        margin:-14px -14px 0!important;padding:12px 14px!important;border:0!important;
        background:linear-gradient(135deg,#5168c7,#7453b8)!important;
    }
    html body.dashboard-page .mobile-match-topline :is(span,a,i){color:#fff!important}
    html body.dashboard-page .mobile-match-topline>span{font-size:10px!important;letter-spacing:.11em!important}
    html body.dashboard-page .mobile-match-topline>a{
        padding:6px 9px!important;border:1px solid rgba(255,255,255,.42)!important;border-radius:999px!important;
        background:rgba(255,255,255,.13)!important;font-size:9px!important;text-transform:uppercase!important;
    }
    html body.dashboard-page .mobile-current-match{gap:11px!important}
    html body.dashboard-page .mobile-round{
        display:inline-flex!important;width:max-content!important;min-height:30px!important;align-items:center!important;
        padding:6px 11px!important;border:1px solid #d56c1c!important;border-radius:999px!important;
        color:#fff!important;background:linear-gradient(135deg,#f18a28,#d45b19)!important;
        box-shadow:0 6px 14px rgba(180,76,17,.22)!important;font-size:11px!important;font-weight:950!important;letter-spacing:.04em!important;text-transform:uppercase!important;
    }
    html body.dashboard-page .mobile-current-match h2{
        grid-template-columns:minmax(0,1fr) 46px minmax(0,1fr)!important;gap:9px!important;
        margin:0!important;font-size:clamp(17px,5vw,21px)!important;line-height:1.08!important;
    }
    html body.dashboard-page .mobile-current-match h2 span{color:#25314b!important;font-weight:950!important;text-shadow:none!important}
    html body.dashboard-page .mobile-current-match h2 b{
        display:grid!important;width:44px!important;height:44px!important;place-items:center!important;
        padding:0!important;border:3px solid #fff!important;border-radius:50%!important;
        color:#fff!important;background:linear-gradient(145deg,#7959c5,#4d67b8)!important;
        box-shadow:0 7px 17px rgba(65,55,151,.28)!important;font-size:12px!important;line-height:1!important;letter-spacing:.03em!important;
    }
    html body.dashboard-page .mobile-standings-line{margin-top:-4px!important}
    html body.dashboard-page .mobile-standings-line span{color:#70552d!important;font-size:10px!important;font-weight:900!important}
    html body.dashboard-page .formation-deadline{border-color:#d2aa5c!important;background:rgba(255,255,255,.82)!important}
    html body.dashboard-page .formation-deadline>i{color:#fff!important;background:linear-gradient(145deg,#e28b29,#bd551b)!important}
    html body.dashboard-page .formation-deadline :is(small,strong){color:#3c3527!important}
    html body.dashboard-page .mobile-last-result{border-top-color:#c7aa73!important}
}

/* v12: contrasti definitivi, riserve compatte, rose essenziali e movimenti stadio per giornata. */
@media(max-width:760px){
    html[data-theme="light"] body.dashboard-page .mobile-match-center .mobile-match-topline>span,
    html[data-theme="light"] body.dashboard-page .mobile-match-center .mobile-match-topline>span i,
    html[data-theme="light"] body.dashboard-page .mobile-match-center .mobile-match-topline>a{
        color:#fff!important;-webkit-text-fill-color:#fff!important;text-shadow:0 1px 5px rgba(20,14,70,.38)!important;
    }
    html[data-theme="light"] body.competition-page .mobile-standing-card:not(.leader) .mobile-standing-position{
        color:#fff!important;-webkit-text-fill-color:#fff!important;text-shadow:0 1px 4px rgba(0,20,50,.42)!important;
    }
    html[data-theme="light"] body.formation-page .bench-list{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;padding:9px!important}
    html[data-theme="light"] body.formation-page .bench-card{min-width:0!important;min-height:76px!important;padding:7px!important}
    html[data-theme="light"] body.formation-page .bench-card label{max-width:100%!important;margin-bottom:5px!important;padding:3px 6px!important;font-size:8px!important}
    html[data-theme="light"] body.formation-page .bench-card.has-player .bench-add{
        display:grid!important;min-width:0!important;min-height:48px!important;grid-template-columns:40px minmax(0,1fr)!important;
        gap:7px!important;padding:5px 6px!important;align-items:center!important;
    }
    html[data-theme="light"] body.formation-page .bench-card.has-player .bench-photo{
        display:block!important;width:40px!important;height:46px!important;min-width:40px!important;object-fit:contain!important;border-radius:9px!important;
    }
    html[data-theme="light"] body.formation-page .bench-card.has-player .bench-copy{display:block!important;min-width:0!important;overflow:hidden!important}
    html[data-theme="light"] body.formation-page .bench-card.has-player .bench-copy b{
        display:block!important;max-width:100%!important;overflow:hidden!important;color:#18364b!important;font-size:12px!important;line-height:1.1!important;text-overflow:ellipsis!important;white-space:nowrap!important;
    }
    html[data-theme="light"] body.formation-page .bench-card.has-player .bench-copy small{
        display:block!important;max-width:100%!important;margin-top:4px!important;overflow:hidden!important;color:#61448d!important;font-size:8px!important;font-weight:950!important;text-overflow:ellipsis!important;white-space:nowrap!important;text-transform:uppercase!important;
    }
}

html[data-theme="light"] body.league-teams-page .participants-section{
    margin-top:12px!important;padding:0!important;overflow:visible!important;border:0!important;background:transparent!important;box-shadow:none!important;
}
html[data-theme="light"] body.league-teams-page .teams-grid{padding:0!important}
html[data-theme="light"] body.league-teams-page .team-actions{display:grid!important;grid-template-columns:auto minmax(120px,1fr)!important;gap:9px!important}
html[data-theme="light"] body.league-teams-page .view-team-btn{grid-column:1/-1!important}
html[data-theme="light"] body.league-teams-page .team-wallet{
    display:grid!important;min-width:0!important;grid-template-columns:30px minmax(0,1fr)!important;gap:7px!important;align-items:center!important;
    padding:7px 9px!important;border:1px solid #d8ae55!important;border-radius:12px!important;background:linear-gradient(145deg,#fff8d9,#f2d27e)!important;
}
html[data-theme="light"] body.league-teams-page .team-wallet>i{display:grid!important;width:30px!important;height:30px!important;place-items:center!important;border-radius:9px!important;color:#fff!important;background:#d77620!important}
html[data-theme="light"] body.league-teams-page .team-wallet :is(small,strong){display:block!important;color:#493514!important}
html[data-theme="light"] body.league-teams-page .team-wallet small{font-size:7px!important;font-weight:950!important;text-transform:uppercase!important}
html[data-theme="light"] body.league-teams-page .team-wallet strong{margin-top:2px!important;font-size:15px!important}

html[data-theme="light"] body.society-page .movement-row{
    display:grid!important;grid-template-columns:46px minmax(0,1fr) auto!important;gap:11px!important;align-items:center!important;
    padding:12px!important;border-left:5px solid #6574c6!important;background:linear-gradient(145deg,#fbfdff,#e2ebf8)!important;
}
html[data-theme="light"] body.society-page .movement-row.stadium-income{border-color:#d79b2f!important;border-left-color:#e07a21!important;background:linear-gradient(145deg,#fffdf7,#ffe8b2)!important}
html[data-theme="light"] body.society-page .movement-icon{display:grid;width:44px;height:44px;place-items:center;border-radius:13px;color:#fff!important;background:linear-gradient(145deg,#6676cd,#425aa9)!important;font-size:17px!important}
html[data-theme="light"] body.society-page .stadium-income .movement-icon{background:linear-gradient(145deg,#ee932f,#c65b1d)!important}
html[data-theme="light"] body.society-page .movement-copy{display:grid!important;min-width:0!important;gap:3px!important}
html[data-theme="light"] body.society-page .movement-day{width:max-content!important;padding:4px 7px!important;border-radius:999px!important;color:#fff!important;background:#7257ba!important;font-size:8px!important;font-weight:950!important;text-transform:uppercase!important}
html[data-theme="light"] body.society-page .stadium-income .movement-day{background:#d66c1d!important}
html[data-theme="light"] body.society-page .movement-row .row-title{overflow:hidden!important;color:#26354d!important;font-size:14px!important;line-height:1.2!important;text-overflow:ellipsis!important;white-space:nowrap!important}
html[data-theme="light"] body.society-page .movement-row .row-meta{color:#6e6657!important;font-size:9px!important;line-height:1.3!important}
html[data-theme="light"] body.society-page .movement-amount{padding:7px 9px!important;border-radius:10px!important;color:#fff!important;background:#6676c5!important;font-size:13px!important;white-space:nowrap!important}
html[data-theme="light"] body.society-page .movement-amount.positive{background:#21875a!important}
html[data-theme="light"] body.society-page .movement-amount.negative{background:#c94d4d!important}
@media(max-width:480px){
    html[data-theme="light"] body.society-page .movement-row{grid-template-columns:40px minmax(0,1fr)!important}
    html[data-theme="light"] body.society-page .movement-icon{width:40px;height:40px!important}
    html[data-theme="light"] body.society-page .movement-amount{grid-column:2!important;width:max-content!important;margin-top:3px!important}
}

/* v13: verde prato più luminoso, con fasce leggere da campo da calcio. */
html{background:#174c32}
html[data-theme="light"] body:not(.auth-page):not(.fi-no-pitch){
    background:
        radial-gradient(ellipse at 12% -8%,rgba(69,145,98,.72) 0,transparent 46rem),
        repeating-linear-gradient(0deg,rgba(255,255,255,.018) 0 72px,rgba(0,0,0,.022) 72px 144px),
        linear-gradient(145deg,#2b704b,#205d3d 58%,#174a31)!important;
    background-attachment:fixed!important;
    background-repeat:no-repeat!important;
    background-size:cover!important;
}
@media(max-width:760px){
    html[data-theme="light"] body:not(.auth-page):not(.fi-no-pitch){background-attachment:scroll!important}
}

/* v14: referto panchine affiancato, mercato diretto e palette da gioco di calcio. */
html[data-theme="light"] body.market-page .market-actions{margin-top:14px!important}

html[data-theme="light"] body.dashboard-page .dashboard-metric.contract-cost{
    color:#183653!important;border-color:#4b77aa!important;
    background:linear-gradient(145deg,#eef5fc,#b9d3eb)!important;
}
html[data-theme="light"] body.dashboard-page .dashboard-metric.contract-cost .metric-top i{color:#fff!important;background:linear-gradient(145deg,#487ab2,#284f80)!important}
html[data-theme="light"] body.dashboard-page .awards-grid article,
html[data-theme="light"] body.dashboard-page .awards-grid article.mine{
    color:#49350d!important;border-color:#d0a243!important;
    background:linear-gradient(145deg,#fffbea,#f0d77d)!important;
}
html[data-theme="light"] body.dashboard-page .awards-grid article:nth-child(even){
    color:#193853!important;border-color:#6590bd!important;
    background:linear-gradient(145deg,#f4f9ff,#c9def1)!important;
}
html[data-theme="light"] body.dashboard-page .awards-grid article :is(strong,span,small,b){color:inherit!important}

@media(max-width:700px){
    html[data-theme="light"] body.live-lineups-page .match-details{
        display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;margin-top:10px!important;
    }
    html[data-theme="light"] body.live-lineups-page .team-details{
        min-width:0!important;padding:7px!important;border:1px solid #87a2bc!important;border-top:5px solid #3d79b4!important;border-radius:14px!important;
        background:linear-gradient(145deg,#f7fbff,#dbe9f6)!important;box-shadow:0 8px 19px rgba(0,23,39,.2)!important;
    }
    html[data-theme="light"] body.live-lineups-page .team-details:nth-child(2){border-color:#c69b4e!important;border-top-color:#dd7a22!important;background:linear-gradient(145deg,#fffdf8,#f7e4b5)!important}
    html[data-theme="light"] body.live-lineups-page .details-heading{min-width:0!important;gap:4px!important}
    html[data-theme="light"] body.live-lineups-page .details-heading>div{min-width:0!important}
    html[data-theme="light"] body.live-lineups-page .details-heading span{font-size:6px!important;letter-spacing:.07em!important}
    html[data-theme="light"] body.live-lineups-page .details-heading h2{overflow:hidden!important;color:#173550!important;font-size:14px!important;text-overflow:ellipsis!important;white-space:nowrap!important}
    html[data-theme="light"] body.live-lineups-page .details-heading>strong{color:#275e8d!important;font-size:18px!important}
    html[data-theme="light"] body.live-lineups-page .bench-list{display:grid!important;grid-template-columns:1fr!important;gap:5px!important;margin-top:8px!important}
    html[data-theme="light"] body.live-lineups-page .bench-player{
        display:grid!important;min-width:0!important;min-height:52px!important;grid-template-columns:30px minmax(0,1fr) 48px!important;
        gap:4px!important;padding:5px!important;border-left-width:4px!important;border-radius:9px!important;
    }
    html[data-theme="light"] body.live-lineups-page .bench-player-photo{width:30px!important;height:38px!important;border-radius:7px!important}
    html[data-theme="light"] body.live-lineups-page .bench-player-copy{min-width:0!important}
    html[data-theme="light"] body.live-lineups-page .bench-player-copy strong{font-size:10px!important;line-height:1!important}
    html[data-theme="light"] body.live-lineups-page .bench-player-copy small{margin-top:3px!important;font-size:6px!important}
    html[data-theme="light"] body.live-lineups-page .bench-player-copy em{margin-top:3px!important;font-size:6px!important}
    html[data-theme="light"] body.live-lineups-page .official-bench-vote{
        display:grid!important;width:48px!important;grid-template-columns:23px 23px!important;gap:2px!important;align-items:center!important;
    }
    html[data-theme="light"] body.live-lineups-page .official-bench-vote .vote-box{padding:4px 1px!important;border:1px solid rgba(255,255,255,.48)!important;background:#315f91!important}
    html[data-theme="light"] body.live-lineups-page .official-bench-vote .vote-box.total{background:#187851!important}
    html[data-theme="light"] body.live-lineups-page .official-bench-vote .vote-box em{color:#dcecff!important;-webkit-text-fill-color:#dcecff!important;font-size:5px!important}
    html[data-theme="light"] body.live-lineups-page .official-bench-vote .vote-box strong{
        color:#fff!important;-webkit-text-fill-color:#fff!important;font-size:9px!important;text-shadow:0 1px 2px rgba(0,0,0,.35)!important;
    }
    html[data-theme="light"] body.live-lineups-page .official-bench-vote .vote-events{grid-column:1/-1!important;min-height:10px!important;padding:1px!important;background:#132a3e!important}
    html[data-theme="light"] body.live-lineups-page .bench-sv{min-width:30px!important;height:28px!important;color:#394c43!important;-webkit-text-fill-color:#394c43!important;background:#fff!important}
}

@media(max-width:360px){
    html[data-theme="light"] body.live-lineups-page .match-details{gap:4px!important}
    html[data-theme="light"] body.live-lineups-page .team-details{padding:5px!important}
    html[data-theme="light"] body.live-lineups-page .bench-player{grid-template-columns:27px minmax(0,1fr) 45px!important;padding:4px!important}
    html[data-theme="light"] body.live-lineups-page .bench-player-photo{width:27px!important;height:35px!important}
    html[data-theme="light"] body.live-lineups-page .official-bench-vote{width:45px!important;grid-template-columns:22px 22px!important}
}

/* v18: notte allo stadio, card coerenti e feedback delle azioni in primo piano. */
html[data-theme="light"] body:not(.auth-page):not(.fi-no-pitch){
    background:
        radial-gradient(ellipse at 14% -10%,rgba(37,139,77,.28) 0,transparent 42rem),
        radial-gradient(ellipse at 90% 108%,rgba(22,92,55,.18) 0,transparent 45rem),
        repeating-linear-gradient(90deg,rgba(255,255,255,.012) 0 12.5%,rgba(0,0,0,.10) 12.5% 25%),
        linear-gradient(145deg,#101412,#080b09 56%,#030504)!important;
    background-attachment:fixed!important;
}

/* v20-final: priorita assoluta al nuovo match center mobile. */
@media(max-width:760px){
    html[data-theme="light"] body.dashboard-page .mobile-match-center{
        gap:0!important;padding:0!important;overflow:hidden!important;border:1px solid #b79857!important;border-top:6px solid #f09a34!important;border-radius:23px!important;
        background:linear-gradient(145deg,rgba(255,253,247,.91),rgba(236,226,199,.95)),url('/img/campo-da-calcio.png') center/cover no-repeat!important;
        box-shadow:0 18px 42px rgba(0,0,0,.46)!important;
    }
    html[data-theme="light"] body.dashboard-page .mobile-match-center::before,html[data-theme="light"] body.dashboard-page .mobile-match-center::after{display:none!important}
    html[data-theme="light"] body.dashboard-page .mobile-match-topline{margin:0!important;padding:13px 15px!important;border:0!important;background:linear-gradient(135deg,#344f9f,#714eb3)!important}
    html[data-theme="light"] body.dashboard-page .mobile-match-topline>span{display:flex!important;align-items:center!important;gap:7px!important;font-size:10px!important;font-weight:950!important;letter-spacing:.12em!important}
    html[data-theme="light"] body.dashboard-page .mobile-match-topline>a{min-height:32px!important;padding:7px 11px!important;border:1px solid rgba(255,255,255,.55)!important;border-radius:10px!important;background:rgba(255,255,255,.15)!important;font-size:9px!important;font-weight:950!important}
    html[data-theme="light"] body.dashboard-page .mobile-current-match{display:grid!important;gap:12px!important;padding:15px 15px 14px!important}
    html[data-theme="light"] body.dashboard-page .mobile-round{min-height:28px!important;margin:0 auto!important;padding:5px 12px!important;border:0!important;color:#fff!important;background:linear-gradient(135deg,#f1962f,#d4631d)!important;box-shadow:0 7px 16px rgba(157,73,18,.28)!important;font-size:10px!important}
    html[data-theme="light"] body.dashboard-page .mobile-current-match h2{grid-template-columns:minmax(0,1fr) 48px minmax(0,1fr)!important;gap:8px!important;align-items:center!important;margin:0!important;font-size:clamp(18px,5.5vw,23px)!important;line-height:1.02!important}
    html[data-theme="light"] body.dashboard-page .mobile-current-match h2 span{color:#273047!important;font-family:var(--fi-game-display)!important;font-weight:950!important;overflow-wrap:anywhere!important}
    html[data-theme="light"] body.dashboard-page .mobile-current-match h2 b{width:46px!important;height:46px!important;border:3px solid #fff!important;color:#fff!important;background:linear-gradient(145deg,#f08a28,#cf5018)!important;box-shadow:0 8px 18px rgba(166,67,15,.32)!important;font-size:12px!important}
    html[data-theme="light"] body.dashboard-page .mobile-standings-line{display:grid!important;grid-template-columns:1fr 1fr!important;gap:56px!important;margin:-7px 0 0!important}
    html[data-theme="light"] body.dashboard-page .mobile-standings-line span{color:#65583e!important;font-size:10px!important;font-weight:900!important}.dashboard-page .mobile-standings-line span:last-child{text-align:right!important}
    html[data-theme="light"] body.dashboard-page .mobile-match-actions{display:grid!important;gap:9px!important}
    html[data-theme="light"] body.dashboard-page .formation-deadline{display:grid!important;grid-template-columns:45px minmax(0,1fr)!important;align-items:center!important;gap:11px!important;min-height:70px!important;margin:0!important;padding:9px 12px!important;border:1px solid #324c78!important;border-radius:16px!important;background:linear-gradient(135deg,#243a62,#172944)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.09)!important}
    html[data-theme="light"] body.dashboard-page .formation-deadline .deadline-icon{display:grid!important;width:45px!important;height:45px!important;place-items:center!important;border-radius:13px!important;color:#3c2607!important;background:linear-gradient(145deg,#ffe078,#f3a733)!important;font-size:17px!important}
    html[data-theme="light"] body.dashboard-page .formation-deadline .deadline-icon i{color:inherit!important;background:none!important}
    html[data-theme="light"] body.dashboard-page .formation-deadline .deadline-copy{display:grid!important;gap:2px!important;min-width:0!important}
    html[data-theme="light"] body.dashboard-page .formation-deadline .deadline-copy small{color:#b9c8dc!important;font-size:9px!important;font-weight:900!important;letter-spacing:.12em!important;text-transform:uppercase!important}
    html[data-theme="light"] body.dashboard-page .formation-deadline .deadline-copy strong{color:#fff!important;font-family:var(--fi-game-display)!important;font-size:clamp(21px,6vw,27px)!important;font-weight:950!important;line-height:1!important;letter-spacing:.025em!important}
    html[data-theme="light"] body.dashboard-page .formation-deadline.unavailable .deadline-copy strong{font-size:14px!important;line-height:1.2!important}
    html[data-theme="light"] body.dashboard-page .mobile-lineup-cta{min-height:56px!important;padding:12px 15px!important;border:1px solid #79a7ee!important;border-radius:15px!important;color:#fff!important;background:linear-gradient(135deg,#526de0,#276ac3)!important;box-shadow:0 10px 22px rgba(40,77,169,.28)!important;font-size:14px!important;font-weight:950!important}
    html[data-theme="light"] body.dashboard-page .mobile-lineup-cta :is(i,span){color:#fff!important}
    html[data-theme="light"] body.dashboard-page .mobile-last-result{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:10px!important;align-items:center!important;margin:0!important;padding:13px 15px!important;border:0!important;border-top:1px solid #d2bd91!important;background:rgba(255,255,255,.58)!important}
    html[data-theme="light"] body.dashboard-page .mobile-last-result>div>span{color:#9a531b!important;font-size:8px!important;font-weight:950!important;letter-spacing:.12em!important;text-transform:uppercase!important}
    html[data-theme="light"] body.dashboard-page .mobile-last-result>div>strong{color:#283448!important;font-size:11px!important;line-height:1.25!important}
    html[data-theme="light"] body.dashboard-page .mobile-review-lineup{display:inline-flex!important;min-height:48px!important;align-items:center!important;justify-content:center!important;gap:8px!important;padding:10px 13px!important;border:1px solid #e38b2f!important;border-radius:13px!important;color:#fff!important;background:linear-gradient(135deg,#ed902f,#c45a1c)!important;box-shadow:0 8px 18px rgba(163,73,18,.25)!important;font-size:11px!important;font-weight:950!important;white-space:nowrap!important}
    html[data-theme="light"] body.dashboard-page .mobile-review-lineup :is(i,span){color:#fff!important;font-size:11px!important}
}
@media(max-width:380px){html[data-theme="light"] body.dashboard-page .mobile-last-result{grid-template-columns:1fr!important}html[data-theme="light"] body.dashboard-page .mobile-review-lineup{width:100%!important}}

/* v27: leggibilità e impaginazione delle schermate di gara e stadio. */
html[data-theme="light"] body.society-page .stadium-heading-copy{display:flex;align-items:center;gap:13px;min-width:0}
html[data-theme="light"] body.society-page .stadium-heading-copy>div{min-width:0}
html[data-theme="light"] body.society-page .stadium-heading-icon{display:grid;width:48px;height:48px;flex:0 0 48px;place-items:center;border-radius:14px;color:#fff;background:#875019;box-shadow:0 8px 16px rgba(110,61,12,.2);font-size:21px}
html[data-theme="light"] body.society-page .stadium-heading-icon i{color:#fff!important}
html[data-theme="light"] body.society-page .stadium-panel .panel-header{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important}
html[data-theme="light"] body.society-page .stadium-level{display:grid!important;min-width:94px!important;min-height:66px!important;gap:3px!important;align-content:center!important;padding:8px!important;text-align:center!important}
html[data-theme="light"] body.society-page .stadium-level strong{font-size:26px!important;white-space:nowrap!important}
html[data-theme="light"] body.society-page .stadium-data{border-color:#294f75!important;background:linear-gradient(145deg,#355e86,#234363)!important}
html[data-theme="light"] body.society-page .stadium-data :is(span,strong){color:#fff!important}
html[data-theme="light"] body.society-page .outcome-card.win{border-color:#1e7e48!important;background:linear-gradient(145deg,#32a665,#19774a)!important}
html[data-theme="light"] body.society-page .outcome-card.draw{border-color:#a3690d!important;background:linear-gradient(145deg,#e7a92d,#b97813)!important}
html[data-theme="light"] body.society-page .outcome-card.loss{border-color:#a44034!important;background:linear-gradient(145deg,#d76557,#aa4236)!important}
html[data-theme="light"] body.society-page .outcome-card :is(span,strong){color:#fff!important;text-shadow:0 1px 2px rgba(0,0,0,.25)!important}
html[data-theme="light"] body.society-page .stadium-upgrade.locked{border:1px solid #afbac2!important;background:#e8eef2!important}
html[data-theme="light"] body.society-page .stadium-upgrade.locked :is(small,button,button span,button strong){color:#263c4c!important}

html[data-theme="light"] body.dashboard-page .mobile-current-match h2>span{display:grid!important;align-content:center!important;gap:5px!important;min-width:0!important}
html[data-theme="light"] body.dashboard-page .mobile-current-match h2>span>strong{color:#273047!important;font:inherit!important;overflow-wrap:anywhere!important}
html[data-theme="light"] body.dashboard-page .mobile-current-match .match-form{display:flex!important;align-items:center!important;gap:3px!important;min-height:19px!important}
html[data-theme="light"] body.dashboard-page .mobile-current-match h2>span:last-child .match-form{justify-content:flex-end!important}
html[data-theme="light"] body.dashboard-page .mobile-current-match .match-form b{display:grid!important;width:19px!important;height:19px!important;place-items:center!important;border-radius:6px!important;color:#fff!important;font:900 10px/1 Inter,Arial,sans-serif!important}
html[data-theme="light"] body.dashboard-page .mobile-current-match .match-form .form-win{background:#188452!important}
html[data-theme="light"] body.dashboard-page .mobile-current-match .match-form .form-draw{background:#bc841c!important}
html[data-theme="light"] body.dashboard-page .mobile-current-match .match-form .form-loss{background:#be5145!important}

html[data-theme="light"] body.live-lineups-page .live-header{display:grid!important;grid-template-columns:48px minmax(0,1fr) 48px!important;gap:8px!important;align-items:center!important}
html[data-theme="light"] body.live-lineups-page .live-header .round-heading{min-width:0!important}
html[data-theme="light"] body.live-lineups-page .live-header .round-heading h1{font-size:clamp(24px,7vw,34px)!important;white-space:nowrap!important}
html[data-theme="light"] body.live-lineups-page .match-scoreboard{grid-template-columns:minmax(0,1fr) minmax(94px,auto) minmax(0,1fr)!important;gap:8px!important}
html[data-theme="light"] body.live-lineups-page .score-team strong{white-space:normal!important;overflow-wrap:anywhere!important;line-height:1.02!important}
html[data-theme="light"] body.live-lineups-page .score-center b{color:#172d24!important;font-size:clamp(34px,9vw,52px)!important;line-height:1!important;white-space:nowrap!important}
html[data-theme="light"] body.live-lineups-page .score-center .score-fantapoints{display:block!important;margin-top:5px!important;color:#425345!important;font-size:11px!important;font-weight:900!important;white-space:nowrap!important}

html[data-theme="light"] body.player-detail-page .contract-section .contract{border:1px solid #d8983e!important;border-left:5px solid #e38325!important;background:linear-gradient(145deg,#fff9eb,#f0e0bf)!important}
html[data-theme="light"] body.player-detail-page .contract-data>span{min-width:0;padding:10px 12px;border-radius:12px;background:#fffdf7!important}
html[data-theme="light"] body.player-detail-page .contract-data>span:last-child{background:#315277!important}
html[data-theme="light"] body.player-detail-page .contract-data>span:last-child :is(small,strong){color:#fff!important}

@media(max-width:560px){
    html[data-theme="light"] body.society-page .stadium-panel .panel-header{padding:12px!important}
    html[data-theme="light"] body.society-page .stadium-heading-copy{gap:8px!important}
    html[data-theme="light"] body.society-page .stadium-heading-icon{width:37px!important;height:37px!important;flex-basis:37px!important;font-size:16px!important}
    html[data-theme="light"] body.society-page .stadium-panel .kicker{font-size:8px!important;line-height:1.2!important;letter-spacing:.05em!important}
    html[data-theme="light"] body.society-page .stadium-panel .panel-header h2{font-size:clamp(19px,5.6vw,25px)!important;line-height:1!important}
    html[data-theme="light"] body.society-page .stadium-level{min-width:68px!important;min-height:53px!important;padding:5px!important;border-radius:12px!important}
    html[data-theme="light"] body.society-page .stadium-level span{font-size:8px!important}
    html[data-theme="light"] body.society-page .stadium-level strong{font-size:18px!important}
    html[data-theme="light"] body.society-page .stadium-summary{gap:7px!important;padding:7px!important}
    html[data-theme="light"] body.society-page .stadium-data{padding:10px 8px!important}
    html[data-theme="light"] body.society-page .stadium-data strong{font-size:clamp(16px,5vw,21px)!important;overflow-wrap:anywhere!important}
    html[data-theme="light"] body.society-page .outcome-grid{grid-template-columns:1fr!important}
    html[data-theme="light"] body.society-page .outcome-card{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important}
    html[data-theme="light"] body.live-lineups-page .match-scoreboard{padding:13px 10px!important;gap:5px!important}
    html[data-theme="light"] body.live-lineups-page .score-team strong{font-size:clamp(16px,4.7vw,22px)!important}
    html[data-theme="light"] body.live-lineups-page .score-team small{display:none!important}
    html[data-theme="light"] body.live-lineups-page .score-center .score-fantapoints{font-size:9px!important}
}

/* v25-final: nessuna immagine legacy nella card mobile La tua lega. */
@media(max-width:760px){
    html[data-theme="light"] body.dashboard-page .mobile-club-hub{
        position:relative!important;overflow:hidden!important;border:2px solid #69a77b!important;border-top:6px solid #f0a038!important;
        background-color:#c9eac8!important;
        background-image:repeating-linear-gradient(90deg,rgba(255,255,255,.10) 0 12.5%,rgba(35,120,64,.08) 12.5% 25%),linear-gradient(145deg,#e2f6de,#addcaf)!important;
        background-repeat:no-repeat!important;background-size:cover!important;background-position:center!important;
        box-shadow:0 16px 34px rgba(0,24,13,.3)!important;
    }
    html[data-theme="light"] body.dashboard-page .mobile-club-hub::before{
        content:""!important;position:absolute!important;inset:13px!important;width:auto!important;height:auto!important;right:13px!important;bottom:13px!important;
        border:2px solid rgba(255,255,255,.82)!important;border-radius:13px!important;pointer-events:none!important;
        background-image:linear-gradient(90deg,transparent 49.6%,rgba(255,255,255,.82) 49.6% 50.4%,transparent 50.4%),linear-gradient(90deg,transparent 0 10%,rgba(255,255,255,.72) 10% 10.8%,transparent 10.8% 89.2%,rgba(255,255,255,.72) 89.2% 90%,transparent 90%)!important;
        background-color:transparent!important;
    }
    html[data-theme="light"] body.dashboard-page .mobile-club-hub::after{
        content:""!important;position:absolute!important;left:50%!important;top:50%!important;width:72px!important;height:72px!important;transform:translate(-50%,-50%)!important;
        border:2px solid rgba(255,255,255,.82)!important;border-radius:50%!important;background:none!important;pointer-events:none!important;
    }
    html[data-theme="light"] body.dashboard-page .mobile-club-hub>*{position:relative!important;z-index:2!important}
}

/* v24: rose della lega ricostruite senza dipendenze dal vecchio layout. */
html[data-theme="light"] body.league-teams-page .participants-section{margin-top:14px!important;padding:0!important;overflow:visible!important;border:0!important;background:transparent!important;box-shadow:none!important}
html[data-theme="light"] body.league-teams-page .teams-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px!important;padding:0!important}
html[data-theme="light"] body.league-teams-page .team-card{
    display:grid!important;min-width:0!important;min-height:0!important;gap:0!important;padding:0!important;overflow:hidden!important;
    border:2px solid #91a9c7!important;border-top:0!important;border-radius:22px!important;color:#20352c!important;
    background:#f8fbf8!important;box-shadow:0 16px 34px rgba(0,0,0,.27)!important;
}
html[data-theme="light"] body.league-teams-page .team-card-head{
    display:grid!important;grid-template-columns:minmax(0,1fr) 76px!important;align-items:center!important;gap:12px!important;min-height:112px!important;padding:17px!important;
    color:#fff!important;background:radial-gradient(circle at 96% 0,rgba(255,202,94,.35),transparent 10rem),linear-gradient(135deg,#3d65ad,#684cac)!important;
}
html[data-theme="light"] body.league-teams-page .team-card:nth-child(4n+2) .team-card-head{background:radial-gradient(circle at 96% 0,rgba(255,236,157,.3),transparent 10rem),linear-gradient(135deg,#df7b21,#bd481d)!important}
html[data-theme="light"] body.league-teams-page .team-card:nth-child(4n+3) .team-card-head{background:radial-gradient(circle at 96% 0,rgba(180,240,205,.25),transparent 10rem),linear-gradient(135deg,#258663,#17634e)!important}
html[data-theme="light"] body.league-teams-page .team-card:nth-child(4n) .team-card-head{background:radial-gradient(circle at 96% 0,rgba(255,196,216,.24),transparent 10rem),linear-gradient(135deg,#a44672,#713a89)!important}
html[data-theme="light"] body.league-teams-page .team-main{display:flex!important;min-width:0!important;align-items:center!important;gap:12px!important}
html[data-theme="light"] body.league-teams-page .team-badge{display:grid!important;width:52px!important;height:52px!important;flex:0 0 52px!important;place-items:center!important;border:1px solid rgba(255,255,255,.5)!important;border-radius:16px!important;color:#fff!important;background:rgba(255,255,255,.17)!important;box-shadow:inset 0 1px rgba(255,255,255,.26)!important;font-size:22px!important}
html[data-theme="light"] body.league-teams-page .team-copy{min-width:0!important}
html[data-theme="light"] body.league-teams-page .team-copy h3{display:block!important;margin:0!important;overflow:hidden!important;color:#fff!important;font-size:clamp(19px,2.2vw,25px)!important;line-height:1!important;text-overflow:ellipsis!important;white-space:nowrap!important;text-shadow:0 2px 7px rgba(0,0,0,.22)!important}
html[data-theme="light"] body.league-teams-page .owner{display:flex!important;align-items:center!important;gap:7px!important;margin-top:9px!important;color:rgba(255,255,255,.83)!important}
html[data-theme="light"] body.league-teams-page .owner>i{font-size:11px!important}
html[data-theme="light"] body.league-teams-page .owner span{display:flex!important;min-width:0!important;align-items:center!important;gap:5px!important;color:inherit!important}
html[data-theme="light"] body.league-teams-page .owner small{color:rgba(255,255,255,.72)!important;font-size:8px!important;font-weight:900!important;letter-spacing:.06em!important;text-transform:uppercase!important}
html[data-theme="light"] body.league-teams-page .owner b{overflow:hidden!important;color:#fff!important;font-size:11px!important;text-overflow:ellipsis!important;white-space:nowrap!important}
html[data-theme="light"] body.league-teams-page .standing-badge{display:grid!important;width:76px!important;min-height:78px!important;place-content:center!important;text-align:center!important;border:1px solid rgba(255,255,255,.65)!important;border-radius:18px!important;color:#432c0d!important;background:linear-gradient(145deg,#fff8cf,#ffd774)!important;box-shadow:0 9px 19px rgba(0,0,0,.18)!important}
html[data-theme="light"] body.league-teams-page .standing-badge small{color:#76551c!important;font-size:7px!important;font-weight:950!important;letter-spacing:.08em!important;text-transform:uppercase!important}
html[data-theme="light"] body.league-teams-page .standing-badge strong{margin:2px 0!important;color:#372309!important;font-size:27px!important;line-height:1!important}
html[data-theme="light"] body.league-teams-page .standing-badge span{color:#76551c!important;font-size:9px!important;font-weight:900!important}
html[data-theme="light"] body.league-teams-page .team-data-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:9px!important;padding:13px!important;background:linear-gradient(145deg,#f9fbf8,#edf2ed)!important}
html[data-theme="light"] body.league-teams-page .team-data{display:grid!important;min-width:0!important;min-height:82px!important;grid-template-columns:34px minmax(0,1fr)!important;gap:8px!important;align-items:center!important;padding:10px!important;border:1px solid!important;border-radius:14px!important}
html[data-theme="light"] body.league-teams-page .team-data>i{display:grid!important;width:34px!important;height:34px!important;place-items:center!important;border-radius:10px!important;color:#fff!important;font-size:14px!important}
html[data-theme="light"] body.league-teams-page .team-data>span{display:block!important;min-width:0!important}
html[data-theme="light"] body.league-teams-page .team-data :is(small,strong,em){display:block!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
html[data-theme="light"] body.league-teams-page .team-data small{font-size:7px!important;font-weight:950!important;letter-spacing:.03em!important;text-transform:uppercase!important}
html[data-theme="light"] body.league-teams-page .team-data strong{margin-top:4px!important;font-size:15px!important;line-height:1!important}
html[data-theme="light"] body.league-teams-page .team-data em{margin-top:3px!important;font-size:8px!important;font-style:normal!important;font-weight:800!important}
html[data-theme="light"] body.league-teams-page .team-data.credits{border-color:#e2b750!important;background:#fff4c9!important}.league-teams-page .team-data.credits>i{background:#d88a19!important}
html[data-theme="light"] body.league-teams-page .team-data.fans{border-color:#a491cc!important;background:#eee6fb!important}.league-teams-page .team-data.fans>i{background:#7254b3!important}
html[data-theme="light"] body.league-teams-page .team-data.stadium{border-color:#7eb59a!important;background:#e2f5e9!important}.league-teams-page .team-data.stadium>i{background:#25805a!important}
html[data-theme="light"] body.league-teams-page .view-team-btn{display:grid!important;width:auto!important;min-height:50px!important;grid-template-columns:22px minmax(0,1fr) 18px!important;align-items:center!important;gap:8px!important;margin:0 13px 13px!important;padding:11px 14px!important;border:0!important;border-radius:14px!important;color:#fff!important;background:linear-gradient(135deg,#3569c5,#684dac)!important;box-shadow:0 9px 19px rgba(47,57,133,.22)!important;font-size:13px!important;font-weight:950!important;text-decoration:none!important}
html[data-theme="light"] body.league-teams-page .view-team-btn :is(i,span){color:#fff!important}.league-teams-page .view-team-btn i:last-child{justify-self:end!important;font-size:11px!important}
@media(max-width:980px){html[data-theme="light"] body.league-teams-page .teams-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:640px){
    html[data-theme="light"] body.league-teams-page .teams-grid{grid-template-columns:1fr!important;gap:13px!important}
    html[data-theme="light"] body.league-teams-page .team-card-head{grid-template-columns:minmax(0,1fr) 70px!important;min-height:104px!important;padding:14px!important}
    html[data-theme="light"] body.league-teams-page .standing-badge{width:70px!important;min-height:72px!important}
    html[data-theme="light"] body.league-teams-page .team-data-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;padding:11px!important}
    html[data-theme="light"] body.league-teams-page .team-data.stadium{grid-column:1/-1!important}
    html[data-theme="light"] body.league-teams-page .team-data{min-height:70px!important}
    html[data-theme="light"] body.league-teams-page .view-team-btn{margin:0 11px 11px!important}
}

/* v22: navigazione compatta, card piu leggibili e linguaggio visivo da gioco. */
html[data-theme="light"] body a.fi-dashboard-back{
    display:inline-grid!important;width:46px!important;min-width:46px!important;max-width:46px!important;height:46px!important;min-height:46px!important;
    place-items:center!important;padding:0!important;overflow:hidden!important;border-radius:14px!important;
}
html[data-theme="light"] body a.fi-dashboard-back>span{display:none!important}
html[data-theme="light"] body a.fi-dashboard-back :is(svg,i){width:20px!important;height:20px!important;margin:0!important}

html[data-theme="light"] body.live-lineups-page .score-center{align-self:stretch!important;display:flex!important;min-width:82px!important;flex-direction:column!important;align-items:center!important;justify-content:center!important}
html[data-theme="light"] body.live-lineups-page .score-fantapoints{display:block!important;margin-top:4px!important;padding:4px 7px!important;border-radius:999px!important;color:#174633!important;background:#e4f6e9!important;font-size:9px!important;font-weight:950!important;white-space:nowrap!important}
html[data-theme="light"] body.live-lineups-page .bench-player.bench-substitute{border:2px solid #e08a24!important;background:linear-gradient(145deg,#fff7d8,#ffe1a1)!important;box-shadow:0 9px 22px rgba(167,92,15,.2)!important}
html[data-theme="light"] body.live-lineups-page .substitute-label{display:inline-flex!important;align-items:center!important;gap:4px!important;margin-top:4px!important;padding:3px 6px!important;border-radius:999px!important;color:#fff!important;background:#d86b1d!important;font-size:9px!important;font-weight:950!important;font-style:normal!important;text-transform:uppercase!important}

html[data-theme="light"] body.trade-page .trade-history-panel{border:2px solid #d5b05a!important;background:#fffaf0!important}
html[data-theme="light"] body.trade-page .trade-history-heading{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;background:linear-gradient(135deg,#7242aa,#3e55a8)!important}
html[data-theme="light"] body.trade-page .trade-history-heading small{display:block!important;color:#eadfff!important;font-size:9px!important;font-weight:900!important;letter-spacing:.1em!important;text-transform:uppercase!important}
html[data-theme="light"] body.trade-page .trade-history-heading>span{padding:6px 9px!important;border:1px solid rgba(255,255,255,.4)!important;border-radius:999px!important;color:#fff!important;background:rgba(255,255,255,.13)!important;font-size:10px!important;font-weight:900!important}
html[data-theme="light"] body.trade-page .trade-deal-card.completed{border-top:5px solid #714db3!important;background:linear-gradient(145deg,#fff,#f2e9ff)!important}
html[data-theme="light"] body.trade-page .trade-status.accepted{color:#07572e!important;background:#c9f1d8!important}
html[data-theme="light"] body.trade-page .trade-status.rejected{color:#8e2929!important;background:#ffdddd!important}

html[data-theme="light"] body.dashboard-page .fan-impact-panel{
    overflow:hidden!important;border:2px solid #8fa8d3!important;border-top:6px solid #7653bd!important;
    background:linear-gradient(145deg,#fbfdff,#e5eafa)!important;box-shadow:0 18px 38px rgba(0,0,0,.3)!important;
}
html[data-theme="light"] body.dashboard-page .fan-impact-panel>.section-heading{
    margin:-1px -1px 14px!important;padding:15px 16px!important;border-radius:15px!important;
    background:radial-gradient(circle at 92% 0,rgba(255,197,92,.34),transparent 10rem),linear-gradient(135deg,#6f58bd,#3e6dac)!important;
}
html[data-theme="light"] body.dashboard-page .fan-impact-panel>.section-heading :is(span,h2){color:#fff!important}
html[data-theme="light"] body.dashboard-page .fan-impact-total{margin:0 16px 12px!important;border:1px solid #d59d43!important;background:linear-gradient(145deg,#fff9e6,#ffe5a8)!important;box-shadow:0 9px 22px rgba(137,82,16,.16)!important}
html[data-theme="light"] body.dashboard-page .fan-impact-total>i{color:#fff!important;background:linear-gradient(145deg,#ee962d,#bf541b)!important}
html[data-theme="light"] body.dashboard-page .fan-list{padding:0 16px!important}
html[data-theme="light"] body.dashboard-page .fan-player{border:1px solid #9fb2d0!important;background:#fff!important;box-shadow:0 6px 14px rgba(46,66,102,.1)!important}
html[data-theme="light"] body.dashboard-page .fan-player:nth-child(even){background:#f3edff!important;border-color:#baa5dc!important}
html[data-theme="light"] body.dashboard-page .fan-rank{color:#fff!important;background:linear-gradient(145deg,#7653bd,#4e3b91)!important}
html[data-theme="light"] body.dashboard-page .fan-formula{margin:12px 16px 16px!important;border:1px solid #6fa58d!important;color:#24513e!important;background:#e3f6ec!important}

html[data-theme="light"] body.dashboard-page .sponsor-goals-panel{
    overflow:hidden!important;border:2px solid #d5a548!important;border-top:6px solid #ed8928!important;
    background:linear-gradient(145deg,#fffdf6,#ffedc8)!important;box-shadow:0 18px 38px rgba(0,0,0,.3)!important;
}
html[data-theme="light"] body.dashboard-page .sponsor-goals-panel>.section-heading{
    display:grid!important;grid-template-columns:minmax(0,1fr) 78px!important;align-items:center!important;gap:16px!important;
    min-height:116px!important;margin:-1px -1px 14px!important;padding:18px 18px 18px 20px!important;border-radius:16px!important;
    background:radial-gradient(circle at 92% 12%,rgba(255,234,153,.34),transparent 10rem),linear-gradient(135deg,#f29127,#cf571c)!important;
}
html[data-theme="light"] body.dashboard-page .sponsor-goals-panel>.section-heading :is(span,h2){color:#fff!important}
html[data-theme="light"] body.dashboard-page .sponsor-goals-panel>.section-heading h2{margin:0!important;font-size:clamp(27px,3vw,36px)!important;line-height:.95!important;text-shadow:0 2px 8px rgba(105,38,5,.2)!important}
html[data-theme="light"] body.dashboard-page .sponsor-goals-panel .sponsor-link{
    display:grid!important;width:74px!important;height:74px!important;place-items:center!important;justify-self:end!important;
    border:2px solid rgba(255,255,255,.72)!important;border-radius:22px!important;color:#fff!important;
    background:linear-gradient(145deg,rgba(255,255,255,.28),rgba(255,255,255,.1))!important;
    box-shadow:0 10px 22px rgba(117,42,7,.24),inset 0 1px rgba(255,255,255,.35)!important;font-size:30px!important;
}
html[data-theme="light"] body.dashboard-page .sponsor-summary{padding:0 16px 16px!important}
html[data-theme="light"] body.dashboard-page .sponsor-summary article{border:1px solid #a99bc6!important;background:linear-gradient(145deg,#fff,#eee6fb)!important;box-shadow:0 7px 16px rgba(61,43,94,.11)!important}
html[data-theme="light"] body.dashboard-page .sponsor-summary article:nth-child(even){border-color:#84a9ca!important;background:linear-gradient(145deg,#fff,#e4f1fb)!important}
html[data-theme="light"] body.dashboard-page .sponsor-summary>article>span{padding:5px 8px!important;border-radius:999px!important;color:#fff!important;background:#6950ae!important;font-size:11px!important}
html[data-theme="light"] body.dashboard-page .sponsor-mini-progress{height:8px!important;background:#d8cce8!important}
html[data-theme="light"] body.dashboard-page .sponsor-mini-progress i{background:linear-gradient(90deg,#7555bd,#ef912c)!important}

@media(max-width:760px){
    html body:not(.auth-page):not(.fi-no-smart-dock) .mobile-dock{
        right:8px!important;bottom:calc(8px + env(safe-area-inset-bottom))!important;left:8px!important;width:auto!important;height:82px!important;
        grid-template-columns:repeat(5,minmax(0,1fr))!important;align-items:stretch!important;gap:4px!important;padding:7px 6px!important;
        border:1px solid rgba(117,151,124,.72)!important;border-radius:24px!important;background:rgba(249,253,247,.97)!important;
        box-shadow:0 -4px 24px rgba(0,0,0,.18),0 14px 34px rgba(0,0,0,.32)!important;backdrop-filter:blur(18px)!important;
    }
    html body:not(.auth-page):not(.fi-no-smart-dock) .mobile-dock>a{
        min-height:66px!important;gap:5px!important;padding:6px 2px!important;border-radius:16px!important;color:#425c4d!important;font-size:9px!important;font-weight:900!important;
    }
    html body:not(.auth-page):not(.fi-no-smart-dock) .mobile-dock>a>i:not(.dock-action-icon){
        display:grid!important;width:38px!important;height:38px!important;place-items:center!important;border-radius:12px!important;
        color:#245e3e!important;background:#e2f0e3!important;font-size:20px!important;box-shadow:inset 0 0 0 1px #bfd6c3!important;
    }
    html body:not(.auth-page):not(.fi-no-smart-dock) .mobile-dock>a.is-active{color:#123e29!important;background:#ddede0!important;box-shadow:inset 0 0 0 2px #84ae8c!important}
    html body:not(.auth-page):not(.fi-no-smart-dock) .mobile-dock>a.is-active>i:not(.dock-action-icon){color:#fff!important;background:linear-gradient(145deg,#2f8b58,#17633c)!important;box-shadow:0 7px 15px rgba(19,94,55,.25)!important}
    html body:not(.auth-page):not(.fi-no-smart-dock) .mobile-dock .dock-match-action{min-height:66px!important;margin-top:-17px!important;background:transparent!important}
    html body:not(.auth-page):not(.fi-no-smart-dock) .mobile-dock .dock-match-action .dock-action-icon{
        width:60px!important;height:60px!important;flex:0 0 60px!important;border:5px solid #f9fdf7!important;
        color:#173c29!important;background:radial-gradient(circle at 34% 27%,#fff 0 32%,#edf4ed 62%,#c5dbc9 100%)!important;
        box-shadow:0 11px 24px rgba(8,66,37,.42),0 0 0 3px #24764a,0 0 0 5px rgba(240,160,56,.82)!important;font-size:27px!important;
        text-shadow:0 1px 0 #fff!important;transform:translateY(-1px)!important;
    }
    html body:not(.auth-page):not(.fi-no-smart-dock) .mobile-dock .dock-match-action>span{margin-top:-2px!important;color:#174b30!important;font-size:9px!important;font-weight:950!important}
    html body:not(.auth-page):not(.fi-no-smart-dock) .mobile-dock .dock-progress{top:-2px!important;right:0!important;padding:3px 5px!important;background:#e67822!important;font-size:6px!important;box-shadow:0 4px 9px rgba(125,53,7,.24)!important}

    html[data-theme="light"] body.dashboard-page .mobile-club-hub{
        position:relative!important;overflow:hidden!important;border:2px solid #69a77b!important;border-top:6px solid #f0a038!important;
        background-color:#c9eac8!important;background-image:
            repeating-linear-gradient(90deg,rgba(255,255,255,.09) 0 12.5%,rgba(40,126,67,.08) 12.5% 25%),
            linear-gradient(145deg,#e0f5dc,#addcaf)!important;
        background-size:auto!important;background-position:center!important;box-shadow:0 16px 34px rgba(0,24,13,.3)!important;
    }
    html[data-theme="light"] body.dashboard-page .mobile-club-hub::before{
        content:""!important;position:absolute!important;inset:13px!important;width:auto!important;height:auto!important;right:13px!important;bottom:13px!important;
        border:2px solid rgba(255,255,255,.78)!important;border-radius:13px!important;pointer-events:none!important;
        background:
            linear-gradient(90deg,transparent 49.6%,rgba(255,255,255,.78) 49.6% 50.4%,transparent 50.4%),
            linear-gradient(90deg,transparent 0 10%,rgba(255,255,255,.7) 10% 10.7%,transparent 10.7% 89.3%,rgba(255,255,255,.7) 89.3% 90%,transparent 90%)!important;
    }
    html[data-theme="light"] body.dashboard-page .mobile-club-hub::after{
        content:""!important;position:absolute!important;left:50%!important;top:50%!important;width:70px!important;height:70px!important;transform:translate(-50%,-50%)!important;
        border:2px solid rgba(255,255,255,.72)!important;border-radius:50%!important;pointer-events:none!important;
    }
    html[data-theme="light"] body.dashboard-page .mobile-club-hub>*{position:relative!important;z-index:2!important}
    html[data-theme="light"] body.dashboard-page .mobile-hub-heading{padding:2px 2px 9px!important}
    html[data-theme="light"] body.dashboard-page .mobile-hub-heading span{color:#8d3f0d!important}
    html[data-theme="light"] body.dashboard-page .mobile-hub-heading strong{color:#103b25!important;text-shadow:0 1px rgba(255,255,255,.7)!important}
    html[data-theme="light"] body.dashboard-page .mobile-hub-grid>a{background:rgba(255,255,255,.9)!important;backdrop-filter:blur(5px)!important}
    html[data-theme="light"] body.formation-page .bench-card.has-player .bench-copy{display:flex!important;min-height:52px!important;flex-direction:column!important;justify-content:center!important}
    html[data-theme="light"] body.formation-page .bench-card.has-player .bench-copy b{order:2!important;margin-top:3px!important;color:#17372a!important;font-size:13px!important}
    html[data-theme="light"] body.formation-page .bench-card.has-player .bench-copy small{order:1!important;display:inline-flex!important;align-self:flex-start!important;margin:0!important;padding:3px 6px!important;border-radius:999px!important;color:#fff!important;background:#315f91!important;font-size:8px!important}
    html[data-theme="light"] body.society-page .stadium-panel{border-radius:22px!important}
    html[data-theme="light"] body.society-page .stadium-panel .panel-header{grid-template-columns:minmax(0,1fr) 68px!important;align-items:center!important}
    html[data-theme="light"] body.society-page .stadium-grid{gap:14px!important}
    html[data-theme="light"] body.society-page .stadium-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important}
    html[data-theme="light"] body.society-page .outcome-grid{grid-template-columns:1fr!important}
    html[data-theme="light"] body.society-page .outcome-card{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important}
    html[data-theme="light"] body.society-page .outcome-card strong{margin:0!important}
    html[data-theme="light"] body.trade-page .trade-history-heading{padding:14px!important}
}

/* v21-top-priority */
@media(max-width:700px){
    html[data-theme="light"] body.live-lineups-page .live-header,
    html[data-theme="light"] body.live-lineups-page .live-header:has(.fi-dashboard-back){display:grid!important;grid-template-columns:44px minmax(0,1fr) 44px!important;grid-template-areas:"back round calendar"!important;align-items:center!important;gap:8px!important;min-height:68px!important;margin-bottom:10px!important;padding:9px 10px!important;border-radius:19px!important}
    html[data-theme="light"] body.live-lineups-page .live-header .back-button,
    html[data-theme="light"] body.live-lineups-page .live-header .fi-dashboard-back{grid-area:back!important;grid-column:auto!important;grid-row:auto!important;justify-self:start!important;width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;min-height:44px!important;margin:0!important;padding:0!important;overflow:hidden!important}
    html[data-theme="light"] body.live-lineups-page .live-header .back-button span{display:none!important}
    html[data-theme="light"] body.live-lineups-page .live-header .back-button :is(i,svg){width:19px!important;height:19px!important;margin:0!important;flex:0 0 19px!important}
    html[data-theme="light"] body.live-lineups-page .live-header .round-heading{grid-area:round!important;grid-column:auto!important;grid-row:auto!important;width:100%!important;min-width:0!important;margin:0!important;padding:0!important;text-align:center!important}
    html[data-theme="light"] body.live-lineups-page .live-header .round-heading span{display:block!important;overflow:hidden!important;font-size:8px!important;line-height:1!important;letter-spacing:.13em!important;text-overflow:ellipsis!important;white-space:nowrap!important}
    html[data-theme="light"] body.live-lineups-page .live-header .round-heading h1{overflow:hidden!important;margin:4px 0 0!important;font-size:clamp(22px,7vw,29px)!important;line-height:.9!important;text-overflow:ellipsis!important;white-space:nowrap!important}
    html[data-theme="light"] body.live-lineups-page .live-header .calendar-button{grid-area:calendar!important;grid-column:auto!important;grid-row:auto!important;justify-self:end!important;width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;margin:0!important;padding:0!important}
}

/* v21: testata live unita e panchinari coerenti per tutti i ruoli. */
html[data-theme="light"] body.live-lineups-page .bench-player.role-p{
    color:#17372a!important;border-color:#b8c7bc!important;border-left-color:var(--role-p)!important;
    background:linear-gradient(145deg,#fffdf7,#ffe7b4)!important;box-shadow:0 7px 16px rgba(0,28,15,.13)!important;
}
html[data-theme="light"] body.live-lineups-page .bench-player.bench-dnp,
html[data-theme="light"] body.live-lineups-page .bench-player.role-p.bench-dnp{
    color:#17372a!important;border-color:#c2cbc4!important;border-left-color:#929e96!important;
    background:linear-gradient(145deg,#f5f7f5,#e3e8e4)!important;box-shadow:0 5px 13px rgba(0,28,15,.10)!important;
    filter:saturate(.55)!important;opacity:.76!important;
}
html[data-theme="light"] body.live-lineups-page .bench-player.bench-dnp .bench-player-photo{filter:grayscale(1)!important;opacity:.72!important}

@media(max-width:700px){
    html[data-theme="light"] body.live-lineups-page .live-header,
    html[data-theme="light"] body.live-lineups-page .live-header:has(.fi-dashboard-back){
        display:grid!important;grid-template-columns:44px minmax(0,1fr) 44px!important;
        grid-template-areas:"back round calendar"!important;align-items:center!important;gap:8px!important;
        min-height:68px!important;margin-bottom:10px!important;padding:9px 10px!important;border-radius:19px!important;
    }
    html[data-theme="light"] body.live-lineups-page .live-header .back-button,
    html[data-theme="light"] body.live-lineups-page .live-header .fi-dashboard-back{
        grid-area:back!important;grid-column:auto!important;grid-row:auto!important;justify-self:start!important;
        width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;min-height:44px!important;
        margin:0!important;padding:0!important;overflow:hidden!important;
    }
    html[data-theme="light"] body.live-lineups-page .live-header .back-button span{display:none!important}
    html[data-theme="light"] body.live-lineups-page .live-header .back-button :is(i,svg){width:19px!important;height:19px!important;margin:0!important;flex:0 0 19px!important}
    html[data-theme="light"] body.live-lineups-page .live-header .round-heading{
        grid-area:round!important;grid-column:auto!important;grid-row:auto!important;width:100%!important;min-width:0!important;
        margin:0!important;padding:0!important;text-align:center!important;
    }
    html[data-theme="light"] body.live-lineups-page .live-header .round-heading span{
        display:block!important;overflow:hidden!important;font-size:8px!important;line-height:1!important;letter-spacing:.13em!important;text-overflow:ellipsis!important;white-space:nowrap!important;
    }
    html[data-theme="light"] body.live-lineups-page .live-header .round-heading h1{
        overflow:hidden!important;margin:4px 0 0!important;font-size:clamp(22px,7vw,29px)!important;line-height:.9!important;text-overflow:ellipsis!important;white-space:nowrap!important;
    }
    html[data-theme="light"] body.live-lineups-page .live-header .calendar-button{
        grid-area:calendar!important;grid-column:auto!important;grid-row:auto!important;justify-self:end!important;
        width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;margin:0!important;padding:0!important;
    }
}

html[data-theme="light"] body:not(.auth-page) :is(.card,.panel,.dashboard-panel,.content-card,.table-panel,.role-section,.club-overview-card,.sponsor-section,.trade-step,.trade-deals-panel){
    border:1px solid #cdbf9f!important;
    border-top:5px solid #e98a2d!important;
    border-radius:22px!important;
    background:linear-gradient(145deg,#fffdf7,#eee7d8)!important;
    box-shadow:0 16px 34px rgba(0,0,0,.34)!important;
}
html[data-theme="light"] body:not(.auth-page) :is(.card,.panel,.dashboard-panel,.content-card,.table-panel,.role-section,.club-overview-card,.sponsor-section,.trade-step,.trade-deals-panel):nth-of-type(3n+2){
    border-color:#9db7d4!important;border-top-color:#4b88cf!important;background:linear-gradient(145deg,#fbfdff,#dfeaf6)!important;
}
html[data-theme="light"] body:not(.auth-page) :is(.card,.panel,.dashboard-panel,.content-card,.table-panel,.role-section,.club-overview-card,.sponsor-section,.trade-step,.trade-deals-panel):nth-of-type(3n){
    border-color:#b6a5ce!important;border-top-color:#8a60c6!important;background:linear-gradient(145deg,#fefbff,#e9def4)!important;
}
html[data-theme="light"] body:not(.auth-page) :is(.card,.panel,.dashboard-panel,.content-card,.table-panel,.role-section,.club-overview-card,.sponsor-section,.trade-step,.trade-deals-panel) :is(h1,h2,h3,h4,strong){color:#182c25!important}
html[data-theme="light"] body:not(.auth-page) :is(.card,.panel,.dashboard-panel,.content-card,.table-panel,.role-section,.club-overview-card,.sponsor-section,.trade-step,.trade-deals-panel) :is(p,small,label){color:#53645d!important}

.fi-action-alert{
    position:fixed!important;z-index:9999!important;top:max(12px,env(safe-area-inset-top))!important;left:50%!important;
    display:grid!important;grid-template-columns:42px minmax(0,1fr) 34px!important;align-items:center!important;gap:11px!important;
    width:min(570px,calc(100vw - 24px))!important;min-height:68px!important;margin:0!important;padding:11px 10px 11px 12px!important;
    border:2px solid!important;border-radius:18px!important;color:#fff!important;background:#14261f!important;
    box-shadow:0 18px 52px rgba(0,0,0,.52)!important;font-size:14px!important;font-weight:850!important;line-height:1.35!important;
    opacity:0!important;transform:translate(-50%,-18px) scale(.97)!important;pointer-events:auto!important;
    transition:opacity .22s ease,transform .22s ease!important;
}
.fi-action-alert::before{
    display:grid!important;width:42px!important;height:42px!important;place-items:center!important;border-radius:13px!important;
    color:#102319!important;background:#fff!important;font:950 22px/1 Arial,sans-serif!important;
}
.fi-action-alert.is-success{border-color:#55dc86!important;background:linear-gradient(135deg,#17683e,#0d4a2d)!important}
.fi-action-alert.is-success::before{content:"✓"!important;color:#14613a!important;background:#d9ffe6!important}
.fi-action-alert.is-error{border-color:#ff8274!important;background:linear-gradient(135deg,#8d302f,#5c1f25)!important}
.fi-action-alert.is-error::before{content:"!"!important;color:#8d302f!important;background:#ffe4df!important}
.fi-action-alert :is(span,strong,p){min-width:0!important;margin:0!important;color:#fff!important}
.fi-action-alert.is-visible{opacity:1!important;transform:translate(-50%,0) scale(1)!important}
.fi-action-alert.is-leaving{opacity:0!important;transform:translate(-50%,-14px) scale(.98)!important}
.fi-alert-close{
    display:grid!important;width:32px!important;height:32px!important;place-items:center!important;padding:0!important;border:0!important;
    border-radius:10px!important;color:#fff!important;background:rgba(255,255,255,.14)!important;font:700 25px/1 Arial,sans-serif!important;cursor:pointer!important;
}
body.formation-page #error-message.fi-action-alert{display:grid!important}
@media(max-width:560px){
    .fi-action-alert{top:max(8px,env(safe-area-inset-top))!important;grid-template-columns:36px minmax(0,1fr) 30px!important;gap:9px!important;min-height:60px!important;border-radius:15px!important;font-size:13px!important}
    .fi-action-alert::before{width:36px!important;height:36px!important;border-radius:11px!important;font-size:19px!important}
    .fi-alert-close{width:30px!important;height:30px!important}
}

/* v17: un campo piu luminoso, saturo e leggibile su web e mobile. */
html[data-theme="light"] body:not(.auth-page):not(.fi-no-pitch){
    background:
        radial-gradient(ellipse at 12% -8%,rgba(92,180,108,.52) 0,transparent 43rem),
        radial-gradient(ellipse at 92% 108%,rgba(5,43,25,.45) 0,transparent 46rem),
        repeating-linear-gradient(90deg,rgba(255,255,255,.025) 0 12.5%,rgba(0,0,0,.025) 12.5% 25%),
        linear-gradient(145deg,#286f46,#1b5b38 54%,#12462c)!important;
    background-attachment:fixed!important;
    background-size:auto,auto,100% 100%,auto!important;
}
html[data-theme="light"] body.society-page .stadium-upgrade.locked{
    border-color:#b1a384!important;background:linear-gradient(145deg,#fffdf8,#eee7d7)!important;
}
html[data-theme="light"] body.society-page .stadium-upgrade.locked button{
    cursor:not-allowed!important;filter:saturate(.55)!important;opacity:.62!important;
}
html[data-theme="light"] body.society-page .upgrade-market-note{
    display:flex!important;align-items:center!important;gap:7px!important;margin-top:9px!important;
    color:#704414!important;font-weight:850!important;line-height:1.35!important;
}
html[data-theme="light"] body.society-page .upgrade-market-note i{color:#d47720!important}

/* v15: notizie fluide e dashboard con superfici ispirate al campo. */
html[data-theme="light"] body.news-page{max-width:100%!important;overflow-x:hidden!important}
html[data-theme="light"] body.news-page .news-shell{
    width:min(920px,calc(100% - 24px))!important;max-width:100%!important;margin:0 auto!important;
    padding:12px 0 calc(104px + env(safe-area-inset-bottom))!important;
}
html[data-theme="light"] body.news-page .news-topbar{
    display:grid!important;width:100%!important;min-width:0!important;grid-template-columns:minmax(0,1fr) auto!important;
    gap:8px!important;align-items:center!important;padding:7px!important;
}
html[data-theme="light"] body.news-page .news-topbar .fi-dashboard-back{
    width:max-content!important;max-width:100%!important;min-width:0!important;padding:9px 10px!important;
}
html[data-theme="light"] body.news-page .news-topbar-title{min-width:0!important;margin:0!important;padding:6px 8px!important}
html[data-theme="light"] body.news-page .news-coming-soon{
    width:100%!important;max-width:100%!important;min-height:min(60vh,520px)!important;margin:12px 0 0!important;
    padding:clamp(25px,7vw,52px) clamp(15px,5vw,34px)!important;overflow:hidden!important;border-radius:21px!important;
}
html[data-theme="light"] body.news-page .news-coming-soon h1{max-width:100%!important;font-size:clamp(29px,9vw,52px)!important;overflow-wrap:anywhere!important}
html[data-theme="light"] body.news-page .news-copy{max-width:100%!important;font-size:14px!important;line-height:1.5!important}
@media(max-width:390px){
    html[data-theme="light"] body.news-page .news-shell{width:calc(100% - 16px)!important}
    html[data-theme="light"] body.news-page .news-topbar .fi-dashboard-back span{font-size:11px!important}
    html[data-theme="light"] body.news-page .news-topbar-title small{display:none!important}
    html[data-theme="light"] body.news-page .news-topbar-title strong{font-size:12px!important}
    html[data-theme="light"] body.news-page .news-topbar-title>i{width:28px!important;height:28px!important}
}

html[data-theme="light"] body.society-page .club-metric.stadium-metric{
    border-color:#d1a145!important;background:linear-gradient(145deg,#fff9df,#efd375)!important;
}
html[data-theme="light"] body.society-page .club-metric.stadium-metric>i{
    display:grid!important;width:42px!important;height:42px!important;place-items:center!important;visibility:visible!important;opacity:1!important;
    border-radius:13px!important;color:#fff!important;background:linear-gradient(145deg,#e8912b,#bd551b)!important;font-size:18px!important;
}
html[data-theme="light"] body.society-page .club-metric.stadium-metric :is(span,strong,small){color:#49350f!important}

/* v26: league roster cards, readable role badges and stadium page */
html[data-theme="light"] body.league-teams-page .team-main{
    grid-template-columns:minmax(0,1fr)!important;
}
html[data-theme="light"] body.league-teams-page .team-data>i{
    display:grid!important;
    width:38px!important;
    height:38px!important;
    flex:0 0 38px!important;
    place-items:center!important;
    border-radius:12px!important;
    color:#fff!important;
    font-size:17px!important;
    box-shadow:0 7px 16px rgba(21,36,65,.2)!important;
}
html[data-theme="light"] body.league-teams-page .team-data.fans>i{background:linear-gradient(145deg,#855be0,#5940aa)!important}
html[data-theme="light"] body.league-teams-page .team-data.stadium>i{background:linear-gradient(145deg,#ef9d35,#c95e21)!important}

html[data-theme="light"] body.roster-page .role-header .role-count{
    color:#fff!important;
    border:1px solid #a9baff!important;
    background:linear-gradient(135deg,#314d91,#6650b7)!important;
    box-shadow:0 7px 16px rgba(49,58,125,.24)!important;
    text-shadow:0 1px 2px rgba(0,0,0,.28)!important;
}

html[data-theme="light"] body.society-page .stadium-panel{
    color:#173229!important;
    border:2px solid #e6ad45!important;
    background:
        radial-gradient(circle at 100% 0,rgba(255,196,84,.38),transparent 21rem),
        linear-gradient(145deg,#fffaf0,#edf7f1 58%,#e5effb)!important;
    box-shadow:0 18px 42px rgba(3,27,17,.24)!important;
}
html[data-theme="light"] body.society-page .stadium-panel .panel-header{
    border-bottom:1px solid #e4c58e!important;
    background:linear-gradient(120deg,#fff0c5,#ffd477 55%,#f2a13d)!important;
}
html[data-theme="light"] body.society-page .stadium-panel .panel-header :is(h2,.kicker){color:#4d2b0a!important}
html[data-theme="light"] body.society-page .stadium-level{
    border-color:#d3912d!important;
    background:#fff9e9!important;
    box-shadow:0 8px 18px rgba(135,80,15,.18)!important;
}
html[data-theme="light"] body.society-page .stadium-level :is(span,strong){color:#713b08!important}
html[data-theme="light"] body.society-page .stadium-summary{
    padding:10px!important;
    border:1px solid #bfd2c4!important;
    border-radius:17px!important;
    background:#f7fbf8!important;
    box-shadow:none!important;
}
html[data-theme="light"] body.society-page .stadium-data{
    color:#17384c!important;
    border-color:#9abbd0!important;
    background:linear-gradient(145deg,#f8fcff,#dcecf8)!important;
}
html[data-theme="light"] body.society-page .stadium-data :is(span,strong){color:#17384c!important}
html[data-theme="light"] body.society-page .outcome-card.win{border-color:#74bf8e!important;background:linear-gradient(145deg,#effcf3,#ccefd7)!important}
html[data-theme="light"] body.society-page .outcome-card.draw{border-color:#e2bb49!important;background:linear-gradient(145deg,#fffbed,#ffe8a7)!important}
html[data-theme="light"] body.society-page .outcome-card.loss{border-color:#db8a81!important;background:linear-gradient(145deg,#fff6f3,#ffd7d1)!important}
html[data-theme="light"] body.society-page .outcome-card.win :is(span,strong){color:#12643b!important}
html[data-theme="light"] body.society-page .outcome-card.draw :is(span,strong){color:#775009!important}
html[data-theme="light"] body.society-page .outcome-card.loss :is(span,strong){color:#8b312a!important}
html[data-theme="light"] body.society-page .stadium-note{
    color:#354b42!important;
    border:1px solid #c6d7ca!important;
    background:#f8fbf8!important;
}
html[data-theme="light"] body.society-page .tier-row{
    color:#243a31!important;
    border-color:#ccd8ce!important;
    background:linear-gradient(90deg,#fff,#edf5ee)!important;
}
html[data-theme="light"] body.society-page .tier-row span{color:#40584d!important}
html[data-theme="light"] body.society-page .tier-row strong{color:#a44908!important}

@media(max-width:560px){
    html[data-theme="light"] body.society-page .stadium-panel .panel-body{padding:14px!important}
    html[data-theme="light"] body.society-page .stadium-panel .panel-header{padding:15px!important}
    html[data-theme="light"] body.society-page .stadium-panel .panel-header h2{color:#4d2b0a!important;font-size:24px!important}
    html[data-theme="light"] body.society-page .stadium-panel .kicker{color:#743e08!important}
    html[data-theme="light"] body.society-page .stadium-grid{grid-template-columns:1fr!important}
    html[data-theme="light"] body.society-page .stadium-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important}
    html[data-theme="light"] body.society-page .outcome-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important}
    html[data-theme="light"] body.society-page .outcome-card{min-width:0!important;padding:10px 8px!important}
    html[data-theme="light"] body.society-page .outcome-card span{font-size:9px!important}
    html[data-theme="light"] body.society-page .outcome-card strong{font-size:19px!important}
}
html[data-theme="light"] body.society-page .contracts-watch-panel{
    overflow:hidden!important;color:#193853!important;border-color:#78a2c7!important;border-top:6px solid #3d78b0!important;
    background:linear-gradient(145deg,#f9fcff,#dbeaf7)!important;box-shadow:0 12px 28px rgba(0,27,46,.18)!important;
}
html[data-theme="light"] body.society-page .contracts-watch-panel>.panel-header{
    margin:0!important;padding:15px 17px!important;border-bottom:1px solid #86a9c9!important;background:linear-gradient(135deg,#4e82b8,#315d90)!important;
}
html[data-theme="light"] body.society-page .contracts-watch-panel>.panel-header :is(.kicker,h2){color:#fff!important}
html[data-theme="light"] body.society-page .contracts-watch-panel .money-pill{color:#3f2c08!important;border-color:#f3d687!important;background:#ffe9a7!important}
html[data-theme="light"] body.society-page .contracts-watch-panel .panel-body{background:transparent!important}
html[data-theme="light"] body.society-page .contracts-watch-panel .contract-row{
    color:#193853!important;border-color:#9cb8d2!important;background:#fff!important;box-shadow:0 6px 15px rgba(26,65,99,.11)!important;
}
html[data-theme="light"] body.society-page .contracts-watch-panel .contract-row :is(.row-title,.row-meta){color:#193853!important}

html[data-theme="light"] body.society-page .accounting-panel{
    overflow:hidden!important;color:#49350f!important;border-color:#d3ad5e!important;border-top:6px solid #df7c22!important;
    background:linear-gradient(145deg,#fffdf8,#f7e6b9)!important;box-shadow:0 12px 28px rgba(72,43,4,.17)!important;
}
html[data-theme="light"] body.society-page .accounting-panel>.panel-header{
    margin:0!important;padding:15px 17px!important;border-bottom:1px solid #d8b671!important;background:linear-gradient(135deg,#ed932f,#bd581d)!important;
}
html[data-theme="light"] body.society-page .accounting-panel>.panel-header :is(.kicker,h2){color:#fff!important}
html[data-theme="light"] body.society-page .accounting-panel .panel-body{background:transparent!important}

@media(max-width:760px){
    html[data-theme="light"] body.dashboard-page .mobile-match-center{
        position:relative!important;
        background:
            linear-gradient(145deg,rgba(255,253,247,.83),rgba(242,235,210,.90)),
            url('/img/campo-da-calcio.png') center/cover no-repeat!important;
        border-color:#b69752!important;border-top-color:#6c55ba!important;
    }
    html[data-theme="light"] body.dashboard-page .mobile-match-center::before{
        content:""!important;position:absolute!important;z-index:0!important;inset:0!important;pointer-events:none!important;
        background:linear-gradient(90deg,transparent 49.65%,rgba(255,255,255,.44) 49.65% 50.35%,transparent 50.35%)!important;
        opacity:.45!important;
    }
    html[data-theme="light"] body.dashboard-page .mobile-match-center>*{position:relative!important;z-index:1!important}
    html[data-theme="light"] body.dashboard-page .mobile-club-hub{
        position:relative!important;overflow:hidden!important;border:2px solid #69a77b!important;border-top:6px solid #f0a038!important;
        background-color:#c9eac8!important;
        background-image:repeating-linear-gradient(90deg,rgba(255,255,255,.10) 0 12.5%,rgba(35,120,64,.08) 12.5% 25%),linear-gradient(145deg,#e2f6de,#addcaf)!important;
        background-repeat:no-repeat!important;background-size:cover!important;background-position:center!important;
        box-shadow:0 16px 34px rgba(0,24,13,.3)!important;
    }
    html[data-theme="light"] body.dashboard-page .mobile-club-hub::before{
        content:""!important;position:absolute!important;inset:13px!important;width:auto!important;height:auto!important;
        border:2px solid rgba(255,255,255,.82)!important;border-radius:13px!important;pointer-events:none!important;
        background-image:linear-gradient(90deg,transparent 49.6%,rgba(255,255,255,.82) 49.6% 50.4%,transparent 50.4%),linear-gradient(90deg,transparent 0 10%,rgba(255,255,255,.72) 10% 10.8%,transparent 10.8% 89.2%,rgba(255,255,255,.72) 89.2% 90%,transparent 90%)!important;
        background-color:transparent!important;
    }
    html[data-theme="light"] body.dashboard-page .mobile-club-hub::after{
        content:""!important;position:absolute!important;left:50%!important;top:50%!important;width:72px!important;height:72px!important;transform:translate(-50%,-50%)!important;
        border:2px solid rgba(255,255,255,.82)!important;border-radius:50%!important;background:none!important;pointer-events:none!important;
    }
    html[data-theme="light"] body.dashboard-page .mobile-club-hub>*{position:relative!important;z-index:2!important}
    html[data-theme="light"] body.dashboard-page .mobile-hub-heading span{color:#b45b18!important;font-weight:950!important;letter-spacing:.08em!important;text-transform:uppercase!important}
    html[data-theme="light"] body.dashboard-page .mobile-hub-heading strong{color:#163d29!important;font-size:20px!important}
    html[data-theme="light"] body.dashboard-page .mobile-hub-grid>a{
        border-width:2px!important;box-shadow:0 8px 18px rgba(0,35,18,.16)!important;
    }
    html[data-theme="light"] body.dashboard-page .mobile-hub-grid>a:nth-child(1){border-color:#4d82b2!important;background:linear-gradient(145deg,#f5fbff,#c8e0f2)!important}
    html[data-theme="light"] body.dashboard-page .mobile-hub-grid>a:nth-child(2){border-color:#b68b35!important;background:linear-gradient(145deg,#fffbed,#f1d680)!important}
    html[data-theme="light"] body.dashboard-page .mobile-hub-grid>a:nth-child(3){border-color:#4c9563!important;background:linear-gradient(145deg,#f4fcf3,#bfe3c6)!important}
    html[data-theme="light"] body.dashboard-page .mobile-hub-grid>a:nth-child(1)>i:first-child{background:linear-gradient(145deg,#477fba,#28578c)!important}
    html[data-theme="light"] body.dashboard-page .mobile-hub-grid>a:nth-child(2)>i:first-child{background:linear-gradient(145deg,#e59a2d,#bc5d1c)!important}
    html[data-theme="light"] body.dashboard-page .mobile-hub-grid>a:nth-child(3)>i:first-child{background:linear-gradient(145deg,#3f9b61,#22663d)!important}
}

/* v21-final: barra unica, simmetrica e senza rotture sui telefoni. */
@media(max-width:700px){
    html[data-theme="light"] body.live-lineups-page .live-header,
    html[data-theme="light"] body.live-lineups-page .live-header:has(.fi-dashboard-back){display:grid!important;grid-template-columns:44px minmax(0,1fr) 44px!important;grid-template-areas:"back round calendar"!important;align-items:center!important;gap:8px!important;min-height:68px!important;margin-bottom:10px!important;padding:9px 10px!important;border-radius:19px!important}
    html[data-theme="light"] body.live-lineups-page .live-header .back-button,html[data-theme="light"] body.live-lineups-page .live-header .fi-dashboard-back{grid-area:back!important;grid-column:auto!important;grid-row:auto!important;justify-self:start!important;width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;min-height:44px!important;margin:0!important;padding:0!important;overflow:hidden!important}
    html[data-theme="light"] body.live-lineups-page .live-header .back-button span{display:none!important}
    html[data-theme="light"] body.live-lineups-page .live-header .back-button :is(i,svg){width:19px!important;height:19px!important;margin:0!important;flex:0 0 19px!important}
    html[data-theme="light"] body.live-lineups-page .live-header .round-heading{grid-area:round!important;grid-column:auto!important;grid-row:auto!important;width:100%!important;min-width:0!important;margin:0!important;padding:0!important;text-align:center!important}
    html[data-theme="light"] body.live-lineups-page .live-header .round-heading span{display:block!important;overflow:hidden!important;font-size:8px!important;line-height:1!important;letter-spacing:.13em!important;text-overflow:ellipsis!important;white-space:nowrap!important}
    html[data-theme="light"] body.live-lineups-page .live-header .round-heading h1{overflow:hidden!important;margin:4px 0 0!important;font-size:clamp(22px,7vw,29px)!important;line-height:.9!important;text-overflow:ellipsis!important;white-space:nowrap!important}
    html[data-theme="light"] body.live-lineups-page .live-header .calendar-button{grid-area:calendar!important;grid-column:auto!important;grid-row:auto!important;justify-self:end!important;width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;margin:0!important;padding:0!important}
}

/* v18-final: il nero carbone prevale su ogni precedente variante verde. */
html[data-theme="light"] body:not(.auth-page):not(.fi-no-pitch){
    background:
        radial-gradient(ellipse at 14% -10%,rgba(37,139,77,.28) 0,transparent 42rem),
        radial-gradient(ellipse at 90% 108%,rgba(22,92,55,.18) 0,transparent 45rem),
        repeating-linear-gradient(90deg,rgba(255,255,255,.012) 0 12.5%,rgba(0,0,0,.10) 12.5% 25%),
        linear-gradient(145deg,#101412,#080b09 56%,#030504)!important;
    background-attachment:fixed!important;
}

/* v20-top-priority */
@media(max-width:760px){
    html[data-theme="light"] body.dashboard-page .mobile-match-center{gap:0!important;padding:0!important;overflow:hidden!important;border:1px solid #b79857!important;border-top:6px solid #f09a34!important;border-radius:23px!important;background:linear-gradient(145deg,rgba(255,253,247,.91),rgba(236,226,199,.95)),url('/img/campo-da-calcio.png') center/cover no-repeat!important;box-shadow:0 18px 42px rgba(0,0,0,.46)!important}
    html[data-theme="light"] body.dashboard-page .mobile-match-center::before,html[data-theme="light"] body.dashboard-page .mobile-match-center::after{display:none!important}
    html[data-theme="light"] body.dashboard-page .mobile-match-topline{margin:0!important;padding:13px 15px!important;border:0!important;background:linear-gradient(135deg,#344f9f,#714eb3)!important}
    html[data-theme="light"] body.dashboard-page .mobile-match-topline>a{min-height:32px!important;padding:7px 11px!important;border:1px solid rgba(255,255,255,.55)!important;border-radius:10px!important;background:rgba(255,255,255,.15)!important;font-size:9px!important}
    html[data-theme="light"] body.dashboard-page .mobile-current-match{display:grid!important;gap:12px!important;padding:15px 15px 14px!important}
    html[data-theme="light"] body.dashboard-page .mobile-round{margin:0 auto!important;color:#fff!important;background:linear-gradient(135deg,#f1962f,#d4631d)!important}
    html[data-theme="light"] body.dashboard-page .mobile-current-match h2{grid-template-columns:minmax(0,1fr) 48px minmax(0,1fr)!important;gap:8px!important;margin:0!important;font-size:clamp(18px,5.5vw,23px)!important}
    html[data-theme="light"] body.dashboard-page .mobile-current-match h2 span{color:#273047!important;font-weight:950!important}
    html[data-theme="light"] body.dashboard-page .mobile-current-match h2 b{width:46px!important;height:46px!important;color:#fff!important;background:linear-gradient(145deg,#f08a28,#cf5018)!important}
    html[data-theme="light"] body.dashboard-page .mobile-match-actions{display:grid!important;gap:9px!important}
    html[data-theme="light"] body.dashboard-page .formation-deadline{display:grid!important;grid-template-columns:45px minmax(0,1fr)!important;align-items:center!important;gap:11px!important;min-height:70px!important;margin:0!important;padding:9px 12px!important;border:1px solid #324c78!important;border-radius:16px!important;background:linear-gradient(135deg,#243a62,#172944)!important}
    html[data-theme="light"] body.dashboard-page .formation-deadline .deadline-icon{display:grid!important;width:45px!important;height:45px!important;place-items:center!important;border-radius:13px!important;color:#3c2607!important;background:linear-gradient(145deg,#ffe078,#f3a733)!important;font-size:17px!important}
    html[data-theme="light"] body.dashboard-page .formation-deadline .deadline-icon i{color:inherit!important;background:none!important}
    html[data-theme="light"] body.dashboard-page .formation-deadline .deadline-copy{display:grid!important;gap:2px!important;min-width:0!important}
    html[data-theme="light"] body.dashboard-page .formation-deadline .deadline-copy small{color:#b9c8dc!important;font-size:9px!important;font-weight:900!important;letter-spacing:.12em!important;text-transform:uppercase!important}
    html[data-theme="light"] body.dashboard-page .formation-deadline .deadline-copy strong{color:#fff!important;font-family:var(--fi-game-display)!important;font-size:clamp(21px,6vw,27px)!important;font-weight:950!important;line-height:1!important}
    html[data-theme="light"] body.dashboard-page .mobile-lineup-cta{min-height:56px!important;padding:12px 15px!important;border-radius:15px!important;color:#fff!important;background:linear-gradient(135deg,#526de0,#276ac3)!important;font-size:14px!important;font-weight:950!important}
    html[data-theme="light"] body.dashboard-page .mobile-lineup-cta :is(i,span){color:#fff!important}
    html[data-theme="light"] body.dashboard-page .mobile-last-result{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:10px!important;align-items:center!important;margin:0!important;padding:13px 15px!important;border:0!important;border-top:1px solid #d2bd91!important;background:rgba(255,255,255,.58)!important}
    html[data-theme="light"] body.dashboard-page .mobile-review-lineup{display:inline-flex!important;min-height:48px!important;align-items:center!important;justify-content:center!important;gap:8px!important;padding:10px 13px!important;border:1px solid #e38b2f!important;border-radius:13px!important;color:#fff!important;background:linear-gradient(135deg,#ed902f,#c45a1c)!important;font-size:11px!important;font-weight:950!important;white-space:nowrap!important}
    html[data-theme="light"] body.dashboard-page .mobile-review-lineup :is(i,span){color:#fff!important;font-size:11px!important}
}
@media(max-width:380px){html[data-theme="light"] body.dashboard-page .mobile-last-result{grid-template-columns:1fr!important}html[data-theme="light"] body.dashboard-page .mobile-review-lineup{width:100%!important}}
